@asgardeo/react 0.5.22 → 0.5.24

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 (22) hide show
  1. package/dist/cjs/index.js +941 -877
  2. package/dist/cjs/index.js.map +4 -4
  3. package/dist/components/presentation/SignIn/options/SignInOptionFactory.d.ts +3 -3
  4. package/dist/components/presentation/SignUp/options/SignUpOptionFactory.d.ts +1 -1
  5. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +3 -0
  6. package/dist/components/presentation/UserProfile/UserProfile.d.ts +10 -0
  7. package/dist/components/presentation/{SignIn/options → options}/FacebookButton.d.ts +3 -3
  8. package/dist/components/presentation/{SignIn/options → options}/GitHubButton.d.ts +3 -3
  9. package/dist/components/presentation/{SignIn/options → options}/GoogleButton.d.ts +3 -3
  10. package/dist/components/presentation/{SignIn/options → options}/LinkedInButton.d.ts +3 -3
  11. package/dist/components/presentation/{SignIn/options → options}/MicrosoftButton.d.ts +3 -3
  12. package/dist/components/presentation/{SignIn/options → options}/SignInWithEthereumButton.d.ts +3 -3
  13. package/dist/components/presentation/{SignIn/options → options}/SocialButton.d.ts +3 -3
  14. package/dist/components/primitives/Avatar/Avatar.d.ts +4 -0
  15. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +1 -0
  16. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +6 -5
  17. package/dist/index.d.ts +8 -8
  18. package/dist/index.js +686 -618
  19. package/dist/index.js.map +4 -4
  20. package/package.json +2 -2
  21. package/dist/components/presentation/SignUp/options/GoogleButton.d.ts +0 -25
  22. 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
 
@@ -35,7 +36,8 @@ var AsgardeoContext = createContext({
35
36
  signInOptions: {},
36
37
  getDecodedIdToken: null,
37
38
  getAccessToken: null,
38
- exchangeToken: null
39
+ exchangeToken: null,
40
+ storage: "sessionStorage"
39
41
  });
40
42
  AsgardeoContext.displayName = "AsgardeoContext";
41
43
  var AsgardeoContext_default = AsgardeoContext;
@@ -50,7 +52,9 @@ import {
50
52
  executeEmbeddedSignUpFlow,
51
53
  executeEmbeddedSignInFlow,
52
54
  deriveOrganizationHandleFromBaseUrl,
53
- extractUserClaimsFromIdToken
55
+ extractUserClaimsFromIdToken,
56
+ navigate,
57
+ getRedirectBasedSignUpUrl
54
58
  } from "@asgardeo/browser";
55
59
 
56
60
  // src/__temp__/api.ts
@@ -713,29 +717,16 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
713
717
  return Promise.resolve(String(response));
714
718
  }
715
719
  async signUp(...args) {
716
- if (args.length === 0) {
717
- throw new AsgardeoRuntimeError(
718
- "No arguments provided for signUp method.",
719
- "react-AsgardeoReactClient-ValidationError-001",
720
- "react",
721
- "The signUp method requires at least one argument, either a SignUpOptions object or an EmbeddedFlowExecuteRequestPayload."
722
- );
723
- }
720
+ const configData = await this.asgardeo.getConfigData();
724
721
  const firstArg = args[0];
725
722
  if (typeof firstArg === "object" && "flowType" in firstArg) {
726
- const configData = await this.asgardeo.getConfigData();
727
723
  const baseUrl = configData?.baseUrl;
728
724
  return executeEmbeddedSignUpFlow({
729
725
  baseUrl,
730
726
  payload: firstArg
731
727
  });
732
728
  }
733
- throw new AsgardeoRuntimeError(
734
- "Not implemented",
735
- "react-AsgardeoReactClient-ValidationError-002",
736
- "react",
737
- "The signUp method with SignUpOptions is not implemented in the React client."
738
- );
729
+ navigate(getRedirectBasedSignUpUrl(configData));
739
730
  }
740
731
  async request(requestConfig) {
741
732
  return this.asgardeo.httpRequest(requestConfig);
@@ -1108,7 +1099,8 @@ import {
1108
1099
  createTheme,
1109
1100
  detectThemeMode,
1110
1101
  createClassObserver,
1111
- createMediaQueryListener
1102
+ createMediaQueryListener,
1103
+ DEFAULT_THEME
1112
1104
  } from "@asgardeo/browser";
1113
1105
 
1114
1106
  // src/contexts/Theme/ThemeContext.ts
@@ -1146,7 +1138,7 @@ var applyThemeToDOM = (theme) => {
1146
1138
  var ThemeProvider = ({
1147
1139
  children,
1148
1140
  theme: themeConfig,
1149
- mode = "system",
1141
+ mode = DEFAULT_THEME,
1150
1142
  detection = {},
1151
1143
  inheritFromBranding = true
1152
1144
  }) => {
@@ -1641,12 +1633,6 @@ var AsgardeoProvider = ({
1641
1633
  setIsLoadingSync(asgardeo.isLoading());
1642
1634
  }
1643
1635
  };
1644
- const isDarkMode = useMemo6(() => {
1645
- if (!preferences?.theme?.mode || preferences.theme.mode === "system") {
1646
- return window.matchMedia("(prefers-color-scheme: dark)").matches;
1647
- }
1648
- return preferences.theme.mode === "dark";
1649
- }, [preferences?.theme?.mode]);
1650
1636
  const handleProfileUpdate = (payload) => {
1651
1637
  setUser(payload);
1652
1638
  setUserProfile((prev) => ({
@@ -1714,7 +1700,7 @@ var AsgardeoProvider = ({
1714
1700
  {
1715
1701
  inheritFromBranding: preferences?.theme?.inheritFromBranding,
1716
1702
  theme: preferences?.theme?.overrides,
1717
- mode: isDarkMode ? "dark" : "light",
1703
+ mode: getActiveTheme(preferences.theme.mode),
1718
1704
  children: /* @__PURE__ */ jsx7(FlowProvider_default, { children: /* @__PURE__ */ jsx7(UserProvider_default, { profile: userProfile, onUpdateProfile: handleProfileUpdate, children: /* @__PURE__ */ jsx7(
1719
1705
  OrganizationProvider_default,
1720
1706
  {
@@ -2229,6 +2215,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2229
2215
  background-color: ${theme.vars.colors.primary.main};
2230
2216
  opacity: 0.8;
2231
2217
  }
2218
+ &:focus:not(:disabled) {
2219
+ background-color: ${theme.vars.colors.primary.main};
2220
+ opacity: 0.8;
2221
+ }
2232
2222
  `,
2233
2223
  "primary-outline": css2`
2234
2224
  background-color: transparent;
@@ -2243,30 +2233,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2243
2233
  color: ${theme.vars.colors.primary.contrastText};
2244
2234
  opacity: 0.9;
2245
2235
  }
2236
+ &:focus:not(:disabled) {
2237
+ background-color: ${theme.vars.colors.primary.main};
2238
+ color: ${theme.vars.colors.primary.contrastText};
2239
+ opacity: 0.9;
2240
+ }
2246
2241
  `,
2247
2242
  "primary-text": css2`
2248
2243
  background-color: transparent;
2249
2244
  color: ${theme.vars.colors.primary.main};
2250
2245
  border-color: transparent;
2251
2246
  &:hover:not(:disabled) {
2247
+ border-color: transparent;
2252
2248
  background-color: ${theme.vars.colors.action.hover};
2253
2249
  }
2254
2250
  &:active:not(:disabled) {
2251
+ border-color: transparent;
2255
2252
  background-color: ${theme.vars.colors.action.selected};
2256
2253
  }
2254
+ &:focus:not(:disabled) {
2255
+ border-color: transparent;
2256
+ background-color: ${theme.vars.colors.action.focus};
2257
+ outline: none;
2258
+ }
2257
2259
  `,
2258
2260
  "primary-icon": css2`
2259
2261
  background-color: transparent;
2260
2262
  color: ${theme.vars.colors.primary.main};
2261
2263
  border-color: transparent;
2262
2264
  &:hover:not(:disabled) {
2265
+ border-color: transparent;
2263
2266
  background-color: ${theme.vars.colors.action.hover};
2264
2267
  color: ${theme.vars.colors.primary.dark};
2265
2268
  }
2266
2269
  &:active:not(:disabled) {
2270
+ border-color: transparent;
2267
2271
  background-color: ${theme.vars.colors.action.selected};
2268
2272
  color: ${theme.vars.colors.primary.dark};
2269
2273
  }
2274
+ &:focus:not(:disabled) {
2275
+ border-color: transparent;
2276
+ background-color: ${theme.vars.colors.action.focus};
2277
+ color: ${theme.vars.colors.primary.dark};
2278
+ outline: none;
2279
+ }
2270
2280
  `,
2271
2281
  "secondary-solid": css2`
2272
2282
  background-color: ${theme.vars.colors.secondary.main};
@@ -2280,6 +2290,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2280
2290
  background-color: ${theme.vars.colors.secondary.main};
2281
2291
  opacity: 0.8;
2282
2292
  }
2293
+ &:focus:not(:disabled) {
2294
+ background-color: ${theme.vars.colors.secondary.main};
2295
+ opacity: 0.8;
2296
+ }
2283
2297
  `,
2284
2298
  "secondary-outline": css2`
2285
2299
  background-color: transparent;
@@ -2294,30 +2308,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2294
2308
  color: ${theme.vars.colors.secondary.contrastText};
2295
2309
  opacity: 0.9;
2296
2310
  }
2311
+ &:focus:not(:disabled) {
2312
+ background-color: ${theme.vars.colors.secondary.main};
2313
+ color: ${theme.vars.colors.secondary.contrastText};
2314
+ opacity: 0.9;
2315
+ }
2297
2316
  `,
2298
2317
  "secondary-text": css2`
2299
2318
  background-color: transparent;
2300
2319
  color: ${theme.vars.colors.secondary.main};
2301
2320
  border-color: transparent;
2302
2321
  &:hover:not(:disabled) {
2322
+ border-color: transparent;
2303
2323
  background-color: ${theme.vars.colors.action.hover};
2304
2324
  }
2305
2325
  &:active:not(:disabled) {
2326
+ border-color: transparent;
2306
2327
  background-color: ${theme.vars.colors.action.selected};
2307
2328
  }
2329
+ &:focus:not(:disabled) {
2330
+ border-color: transparent;
2331
+ background-color: ${theme.vars.colors.action.focus};
2332
+ outline: none;
2333
+ }
2308
2334
  `,
2309
2335
  "secondary-icon": css2`
2310
2336
  background-color: transparent;
2311
2337
  color: ${theme.vars.colors.secondary.main};
2312
2338
  border-color: transparent;
2313
2339
  &:hover:not(:disabled) {
2340
+ border-color: transparent;
2314
2341
  background-color: ${theme.vars.colors.action.hover};
2315
2342
  color: ${theme.vars.colors.secondary.dark};
2316
2343
  }
2317
2344
  &:active:not(:disabled) {
2345
+ border-color: transparent;
2318
2346
  background-color: ${theme.vars.colors.action.selected};
2319
2347
  color: ${theme.vars.colors.secondary.dark};
2320
2348
  }
2349
+ &:focus:not(:disabled) {
2350
+ border-color: transparent;
2351
+ background-color: ${theme.vars.colors.action.focus};
2352
+ color: ${theme.vars.colors.secondary.dark};
2353
+ outline: none;
2354
+ }
2321
2355
  `,
2322
2356
  "tertiary-solid": css2`
2323
2357
  background-color: ${theme.vars.colors.text.secondary};
@@ -2332,6 +2366,11 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2332
2366
  color: ${theme.vars.colors.background.surface};
2333
2367
  opacity: 0.9;
2334
2368
  }
2369
+ &:focus:not(:disabled) {
2370
+ background-color: ${theme.vars.colors.text.primary};
2371
+ color: ${theme.vars.colors.background.surface};
2372
+ opacity: 0.9;
2373
+ }
2335
2374
  `,
2336
2375
  "tertiary-outline": css2`
2337
2376
  background-color: transparent;
@@ -2345,32 +2384,52 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2345
2384
  background-color: ${theme.vars.colors.action.selected};
2346
2385
  border-color: ${theme.vars.colors.text.primary};
2347
2386
  }
2387
+ &:focus:not(:disabled) {
2388
+ background-color: ${theme.vars.colors.action.focus};
2389
+ border-color: ${theme.vars.colors.text.primary};
2390
+ }
2348
2391
  `,
2349
2392
  "tertiary-text": css2`
2350
2393
  background-color: transparent;
2351
2394
  color: ${theme.vars.colors.text.secondary};
2352
2395
  border-color: transparent;
2353
2396
  &:hover:not(:disabled) {
2397
+ border-color: transparent;
2354
2398
  background-color: ${theme.vars.colors.action.hover};
2355
2399
  color: ${theme.vars.colors.text.primary};
2356
2400
  }
2357
2401
  &:active:not(:disabled) {
2402
+ border-color: transparent;
2358
2403
  background-color: ${theme.vars.colors.action.selected};
2359
2404
  color: ${theme.vars.colors.text.primary};
2360
2405
  }
2406
+ &:focus:not(:disabled) {
2407
+ border-color: transparent;
2408
+ background-color: ${theme.vars.colors.action.focus};
2409
+ color: ${theme.vars.colors.text.primary};
2410
+ outline: none;
2411
+ }
2361
2412
  `,
2362
2413
  "tertiary-icon": css2`
2363
2414
  background-color: transparent;
2364
2415
  color: ${theme.vars.colors.text.secondary};
2365
2416
  border-color: transparent;
2366
2417
  &:hover:not(:disabled) {
2418
+ border-color: transparent;
2367
2419
  background-color: ${theme.vars.colors.action.hover};
2368
2420
  color: ${theme.vars.colors.text.primary};
2369
2421
  }
2370
2422
  &:active:not(:disabled) {
2423
+ border-color: transparent;
2371
2424
  background-color: ${theme.vars.colors.action.selected};
2372
2425
  color: ${theme.vars.colors.text.primary};
2373
2426
  }
2427
+ &:focus:not(:disabled) {
2428
+ border-color: transparent;
2429
+ background-color: ${theme.vars.colors.action.focus};
2430
+ color: ${theme.vars.colors.text.primary};
2431
+ outline: none;
2432
+ }
2374
2433
  `
2375
2434
  };
2376
2435
  const spinnerStyles = css2`
@@ -2506,7 +2565,7 @@ BaseSignInButton.displayName = "BaseSignInButton";
2506
2565
  var BaseSignInButton_default = BaseSignInButton;
2507
2566
 
2508
2567
  // src/components/actions/SignInButton/SignInButton.tsx
2509
- import { AsgardeoRuntimeError as AsgardeoRuntimeError4 } from "@asgardeo/browser";
2568
+ import { AsgardeoRuntimeError as AsgardeoRuntimeError4, navigate as navigate2 } from "@asgardeo/browser";
2510
2569
  import { forwardRef as forwardRef3, useState as useState9 } from "react";
2511
2570
  import { jsx as jsx11 } from "react/jsx-runtime";
2512
2571
  var SignInButton = forwardRef3(({ children, onClick, preferences, signInOptions: overriddenSignInOptions = {}, ...rest }, ref) => {
@@ -2517,8 +2576,7 @@ var SignInButton = forwardRef3(({ children, onClick, preferences, signInOptions:
2517
2576
  try {
2518
2577
  setIsLoading(true);
2519
2578
  if (signInUrl) {
2520
- window.history.pushState(null, "", signInUrl);
2521
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2579
+ navigate2(signInUrl);
2522
2580
  } else {
2523
2581
  await signIn(overriddenSignInOptions ?? signInOptions);
2524
2582
  }
@@ -2527,7 +2585,7 @@ var SignInButton = forwardRef3(({ children, onClick, preferences, signInOptions:
2527
2585
  }
2528
2586
  } catch (error) {
2529
2587
  throw new AsgardeoRuntimeError4(
2530
- `Sign in failed: ${error instanceof Error ? error.message : String(error)}`,
2588
+ `Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`,
2531
2589
  "SignInButton-handleSignIn-RuntimeError-001",
2532
2590
  "react",
2533
2591
  "Something went wrong while trying to sign in. Please try again later."
@@ -2645,6 +2703,8 @@ var BaseSignUpButton = forwardRef6(
2645
2703
  disabled: isLoading,
2646
2704
  loading: isLoading,
2647
2705
  type: "button",
2706
+ color: "primary",
2707
+ variant: "solid",
2648
2708
  ...rest,
2649
2709
  children
2650
2710
  }
@@ -2656,6 +2716,7 @@ var BaseSignUpButton_default = BaseSignUpButton;
2656
2716
 
2657
2717
  // src/components/actions/SignUpButton/SignUpButton.tsx
2658
2718
  import { AsgardeoRuntimeError as AsgardeoRuntimeError6 } from "@asgardeo/browser";
2719
+ import { navigate as navigate3 } from "@asgardeo/browser";
2659
2720
  import { forwardRef as forwardRef7, useState as useState11 } from "react";
2660
2721
  import { jsx as jsx15 } from "react/jsx-runtime";
2661
2722
  var SignUpButton = forwardRef7(({ children, onClick, preferences, ...rest }, ref) => {
@@ -2666,8 +2727,7 @@ var SignUpButton = forwardRef7(({ children, onClick, preferences, ...rest }, ref
2666
2727
  try {
2667
2728
  setIsLoading(true);
2668
2729
  if (signUpUrl) {
2669
- window.history.pushState(null, "", signUpUrl);
2670
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2730
+ navigate3(signUpUrl);
2671
2731
  } else {
2672
2732
  await signUp();
2673
2733
  }
@@ -4320,13 +4380,13 @@ var UsernamePassword = ({
4320
4380
  /* @__PURE__ */ jsx31(
4321
4381
  Button_default,
4322
4382
  {
4383
+ fullWidth: true,
4323
4384
  type: "submit",
4385
+ color: "primary",
4386
+ variant: "solid",
4324
4387
  disabled: isLoading,
4325
4388
  loading: isLoading,
4326
4389
  className: buttonClassName,
4327
- color: "primary",
4328
- variant: "solid",
4329
- fullWidth: true,
4330
4390
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4331
4391
  children: t("username.password.submit.button")
4332
4392
  }
@@ -4376,13 +4436,13 @@ var IdentifierFirst = ({
4376
4436
  /* @__PURE__ */ jsx32(
4377
4437
  Button_default,
4378
4438
  {
4439
+ fullWidth: true,
4379
4440
  type: "submit",
4441
+ color: "primary",
4442
+ variant: "solid",
4380
4443
  disabled: isLoading,
4381
4444
  loading: isLoading,
4382
4445
  className: buttonClassName,
4383
- color: "primary",
4384
- variant: "solid",
4385
- fullWidth: true,
4386
4446
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4387
4447
  children: t("identifier.first.submit.button")
4388
4448
  }
@@ -4391,29 +4451,24 @@ var IdentifierFirst = ({
4391
4451
  };
4392
4452
  var IdentifierFirst_default = IdentifierFirst;
4393
4453
 
4394
- // src/components/presentation/SignIn/options/GoogleButton.tsx
4454
+ // src/components/presentation/options/GoogleButton.tsx
4395
4455
  import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
4396
4456
  var GoogleButton = ({
4397
- authenticator,
4398
4457
  isLoading,
4399
- onSubmit,
4400
- buttonClassName = "",
4401
- preferences
4458
+ preferences,
4459
+ children,
4460
+ ...rest
4402
4461
  }) => {
4403
4462
  const { t } = useTranslation_default(preferences?.i18n);
4404
- const handleClick = () => {
4405
- onSubmit(authenticator);
4406
- };
4407
4463
  return /* @__PURE__ */ jsx33(
4408
4464
  Button_default,
4409
4465
  {
4466
+ ...rest,
4467
+ fullWidth: true,
4410
4468
  type: "button",
4411
- variant: "solid",
4412
4469
  color: "secondary",
4413
- fullWidth: true,
4470
+ variant: "solid",
4414
4471
  disabled: isLoading,
4415
- onClick: handleClick,
4416
- className: buttonClassName,
4417
4472
  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: [
4418
4473
  /* @__PURE__ */ jsx33(
4419
4474
  "path",
@@ -4448,35 +4503,30 @@ var GoogleButton = ({
4448
4503
  }
4449
4504
  )
4450
4505
  ] }) }),
4451
- children: t("elements.buttons.google")
4506
+ children: children ?? t("elements.buttons.google")
4452
4507
  }
4453
4508
  );
4454
4509
  };
4455
4510
  var GoogleButton_default = GoogleButton;
4456
4511
 
4457
- // src/components/presentation/SignIn/options/GitHubButton.tsx
4512
+ // src/components/presentation/options/GitHubButton.tsx
4458
4513
  import { jsx as jsx34 } from "react/jsx-runtime";
4459
4514
  var GitHubButton = ({
4460
- authenticator,
4461
4515
  isLoading,
4462
- onSubmit,
4463
- buttonClassName = "",
4464
- preferences
4516
+ preferences,
4517
+ children,
4518
+ ...rest
4465
4519
  }) => {
4466
4520
  const { t } = useTranslation_default(preferences?.i18n);
4467
- const handleClick = () => {
4468
- onSubmit(authenticator);
4469
- };
4470
4521
  return /* @__PURE__ */ jsx34(
4471
4522
  Button_default,
4472
4523
  {
4524
+ ...rest,
4525
+ fullWidth: true,
4473
4526
  type: "button",
4474
- variant: "solid",
4475
4527
  color: "secondary",
4476
- fullWidth: true,
4528
+ variant: "solid",
4477
4529
  disabled: isLoading,
4478
- onClick: handleClick,
4479
- className: buttonClassName,
4480
4530
  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(
4481
4531
  "path",
4482
4532
  {
@@ -4484,35 +4534,30 @@ var GitHubButton = ({
4484
4534
  fill: "#ffffff"
4485
4535
  }
4486
4536
  ) }) }),
4487
- children: t("elements.buttons.github")
4537
+ children: children ?? t("elements.buttons.github")
4488
4538
  }
4489
4539
  );
4490
4540
  };
4491
4541
  var GitHubButton_default = GitHubButton;
4492
4542
 
4493
- // src/components/presentation/SignIn/options/MicrosoftButton.tsx
4543
+ // src/components/presentation/options/MicrosoftButton.tsx
4494
4544
  import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
4495
4545
  var MicrosoftButton = ({
4496
- authenticator,
4497
4546
  isLoading,
4498
- onSubmit,
4499
- buttonClassName = "",
4500
- preferences
4547
+ preferences,
4548
+ children,
4549
+ ...rest
4501
4550
  }) => {
4502
4551
  const { t } = useTranslation_default(preferences?.i18n);
4503
- const handleClick = () => {
4504
- onSubmit(authenticator);
4505
- };
4506
4552
  return /* @__PURE__ */ jsx35(
4507
4553
  Button_default,
4508
4554
  {
4509
- type: "button",
4510
- variant: "outline",
4511
- color: "primary",
4555
+ ...rest,
4512
4556
  fullWidth: true,
4557
+ type: "button",
4558
+ color: "secondary",
4559
+ variant: "solid",
4513
4560
  disabled: isLoading,
4514
- onClick: handleClick,
4515
- className: buttonClassName,
4516
4561
  startIcon: /* @__PURE__ */ jsxs14("svg", { width: "14", height: "14", viewBox: "0 0 23 23", xmlns: "http://www.w3.org/2000/svg", children: [
4517
4562
  /* @__PURE__ */ jsx35("path", { fill: "#f3f3f3", d: "M0 0h23v23H0z" }),
4518
4563
  /* @__PURE__ */ jsx35("path", { fill: "#f35325", d: "M1 1h10v10H1z" }),
@@ -4520,36 +4565,30 @@ var MicrosoftButton = ({
4520
4565
  /* @__PURE__ */ jsx35("path", { fill: "#05a6f0", d: "M1 12h10v10H1z" }),
4521
4566
  /* @__PURE__ */ jsx35("path", { fill: "#ffba08", d: "M12 12h10v10H12z" })
4522
4567
  ] }),
4523
- children: t("elements.buttons.microsoft")
4568
+ children: children ?? t("elements.buttons.microsoft")
4524
4569
  }
4525
4570
  );
4526
4571
  };
4527
4572
  var MicrosoftButton_default = MicrosoftButton;
4528
4573
 
4529
- // src/components/presentation/SignIn/options/FacebookButton.tsx
4574
+ // src/components/presentation/options/FacebookButton.tsx
4530
4575
  import { jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
4531
4576
  var FacebookButton = ({
4532
- authenticator,
4533
4577
  isLoading,
4534
- onSubmit,
4535
- buttonClassName = "",
4536
- submitButtonText,
4537
- preferences
4578
+ preferences,
4579
+ children,
4580
+ ...rest
4538
4581
  }) => {
4539
4582
  const { t } = useTranslation_default(preferences?.i18n);
4540
- const handleClick = () => {
4541
- onSubmit(authenticator);
4542
- };
4543
4583
  return /* @__PURE__ */ jsx36(
4544
4584
  Button_default,
4545
4585
  {
4586
+ ...rest,
4587
+ fullWidth: true,
4546
4588
  type: "button",
4547
- variant: "solid",
4548
4589
  color: "primary",
4549
- fullWidth: true,
4590
+ variant: "solid",
4550
4591
  disabled: isLoading,
4551
- onClick: handleClick,
4552
- className: buttonClassName,
4553
4592
  startIcon: /* @__PURE__ */ jsxs15("svg", { width: "18", height: "18", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg", children: [
4554
4593
  /* @__PURE__ */ jsx36(
4555
4594
  "path",
@@ -4566,35 +4605,30 @@ var FacebookButton = ({
4566
4605
  }
4567
4606
  )
4568
4607
  ] }),
4569
- children: t("elements.buttons.facebook")
4608
+ children: children ?? t("elements.buttons.facebook")
4570
4609
  }
4571
4610
  );
4572
4611
  };
4573
4612
  var FacebookButton_default = FacebookButton;
4574
4613
 
4575
- // src/components/presentation/SignIn/options/LinkedInButton.tsx
4614
+ // src/components/presentation/options/LinkedInButton.tsx
4576
4615
  import { jsx as jsx37 } from "react/jsx-runtime";
4577
4616
  var LinkedInButton = ({
4578
- authenticator,
4579
4617
  isLoading,
4580
- onSubmit,
4581
- buttonClassName = "",
4582
- preferences
4618
+ preferences,
4619
+ children,
4620
+ ...rest
4583
4621
  }) => {
4584
4622
  const { t } = useTranslation_default(preferences?.i18n);
4585
- const handleClick = () => {
4586
- onSubmit(authenticator);
4587
- };
4588
4623
  return /* @__PURE__ */ jsx37(
4589
4624
  Button_default,
4590
4625
  {
4591
- type: "button",
4592
- variant: "outline",
4593
- color: "primary",
4626
+ ...rest,
4594
4627
  fullWidth: true,
4628
+ type: "button",
4629
+ color: "secondary",
4630
+ variant: "solid",
4595
4631
  disabled: isLoading,
4596
- onClick: handleClick,
4597
- className: buttonClassName,
4598
4632
  startIcon: /* @__PURE__ */ jsx37("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx37(
4599
4633
  "path",
4600
4634
  {
@@ -4602,35 +4636,30 @@ var LinkedInButton = ({
4602
4636
  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"
4603
4637
  }
4604
4638
  ) }),
4605
- children: t("elements.buttons.linkedin")
4639
+ children: children ?? t("elements.buttons.linkedin")
4606
4640
  }
4607
4641
  );
4608
4642
  };
4609
4643
  var LinkedInButton_default = LinkedInButton;
4610
4644
 
4611
- // src/components/presentation/SignIn/options/SignInWithEthereumButton.tsx
4645
+ // src/components/presentation/options/SignInWithEthereumButton.tsx
4612
4646
  import { jsx as jsx38 } from "react/jsx-runtime";
4613
4647
  var SignInWithEthereumButton = ({
4614
- authenticator,
4615
4648
  isLoading,
4616
- onSubmit,
4617
- buttonClassName = "",
4618
- preferences
4649
+ preferences,
4650
+ children,
4651
+ ...rest
4619
4652
  }) => {
4620
4653
  const { t } = useTranslation_default(preferences?.i18n);
4621
- const handleClick = () => {
4622
- onSubmit(authenticator);
4623
- };
4624
4654
  return /* @__PURE__ */ jsx38(
4625
4655
  Button_default,
4626
4656
  {
4657
+ ...rest,
4658
+ fullWidth: true,
4627
4659
  type: "button",
4628
- variant: "outline",
4629
4660
  color: "secondary",
4630
- fullWidth: true,
4661
+ variant: "solid",
4631
4662
  disabled: isLoading,
4632
- onClick: handleClick,
4633
- className: buttonClassName,
4634
4663
  startIcon: /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
4635
4664
  "path",
4636
4665
  {
@@ -4638,7 +4667,7 @@ var SignInWithEthereumButton = ({
4638
4667
  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"
4639
4668
  }
4640
4669
  ) }),
4641
- children: t("elements.buttons.ethereum")
4670
+ children: children ?? t("elements.buttons.ethereum")
4642
4671
  }
4643
4672
  );
4644
4673
  };
@@ -4697,13 +4726,13 @@ var EmailOtp = ({
4697
4726
  /* @__PURE__ */ jsx39(
4698
4727
  Button_default,
4699
4728
  {
4729
+ fullWidth: true,
4700
4730
  type: "submit",
4731
+ color: "primary",
4732
+ variant: "solid",
4701
4733
  disabled: isLoading,
4702
4734
  loading: isLoading,
4703
4735
  className: buttonClassName,
4704
- color: "primary",
4705
- variant: "solid",
4706
- fullWidth: true,
4707
4736
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4708
4737
  children: t("email.otp.submit.button")
4709
4738
  }
@@ -4765,13 +4794,13 @@ var Totp = ({
4765
4794
  /* @__PURE__ */ jsx40(
4766
4795
  Button_default,
4767
4796
  {
4797
+ fullWidth: true,
4768
4798
  type: "submit",
4799
+ color: "primary",
4800
+ variant: "solid",
4769
4801
  disabled: isLoading,
4770
4802
  loading: isLoading,
4771
4803
  className: buttonClassName,
4772
- color: "primary",
4773
- variant: "solid",
4774
- fullWidth: true,
4775
4804
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4776
4805
  children: t("totp.submit.button")
4777
4806
  }
@@ -4833,13 +4862,13 @@ var SmsOtp = ({
4833
4862
  /* @__PURE__ */ jsx41(
4834
4863
  Button_default,
4835
4864
  {
4865
+ fullWidth: true,
4836
4866
  type: "submit",
4867
+ color: "primary",
4868
+ variant: "solid",
4837
4869
  disabled: isLoading,
4838
4870
  loading: isLoading,
4839
4871
  className: buttonClassName,
4840
- color: "primary",
4841
- variant: "solid",
4842
- fullWidth: true,
4843
4872
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4844
4873
  children: t("sms.otp.submit.button")
4845
4874
  }
@@ -4848,33 +4877,24 @@ var SmsOtp = ({
4848
4877
  };
4849
4878
  var SmsOtp_default = SmsOtp;
4850
4879
 
4851
- // src/components/presentation/SignIn/options/SocialButton.tsx
4880
+ // src/components/presentation/options/SocialButton.tsx
4852
4881
  import { jsx as jsx42 } from "react/jsx-runtime";
4853
4882
  var SocialLogin = ({
4854
- authenticator,
4855
4883
  isLoading,
4856
- onSubmit,
4857
- buttonClassName = "",
4858
- preferences
4884
+ preferences,
4885
+ children,
4886
+ ...rest
4859
4887
  }) => {
4860
4888
  const { t } = useTranslation_default(preferences?.i18n);
4861
- const getDisplayName = () => {
4862
- const providerName = authenticator.idp;
4863
- return t("elements.buttons.social", { connection: providerName });
4864
- };
4865
- const handleClick = () => {
4866
- onSubmit(authenticator);
4867
- };
4868
4889
  return /* @__PURE__ */ jsx42(
4869
4890
  Button_default,
4870
4891
  {
4892
+ ...rest,
4893
+ fullWidth: true,
4871
4894
  type: "button",
4872
- variant: "outline",
4873
4895
  color: "secondary",
4874
- fullWidth: true,
4896
+ variant: "outline",
4875
4897
  disabled: isLoading,
4876
- onClick: handleClick,
4877
- className: buttonClassName,
4878
4898
  startIcon: /* @__PURE__ */ jsx42("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx42(
4879
4899
  "path",
4880
4900
  {
@@ -4882,7 +4902,7 @@ var SocialLogin = ({
4882
4902
  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"
4883
4903
  }
4884
4904
  ) }),
4885
- children: getDisplayName()
4905
+ children: t("elements.buttons.social", { connection: children })
4886
4906
  }
4887
4907
  );
4888
4908
  };
@@ -4971,10 +4991,10 @@ var MultiOptionButton = ({
4971
4991
  return /* @__PURE__ */ jsx43(
4972
4992
  Button_default,
4973
4993
  {
4974
- type: "button",
4975
- variant: "outline",
4976
- color: "primary",
4977
4994
  fullWidth: true,
4995
+ type: "button",
4996
+ color: "secondary",
4997
+ variant: "solid",
4978
4998
  disabled: isLoading,
4979
4999
  onClick: handleClick,
4980
5000
  className: buttonClassName,
@@ -4987,40 +5007,109 @@ var MultiOptionButton_default = MultiOptionButton;
4987
5007
 
4988
5008
  // src/components/presentation/SignIn/options/SignInOptionFactory.tsx
4989
5009
  import { jsx as jsx44 } from "react/jsx-runtime";
4990
- var createSignInOption = (props) => {
4991
- const { authenticator, ...optionProps } = props;
5010
+ var createSignInOption = ({
5011
+ authenticator,
5012
+ onSubmit,
5013
+ buttonClassName,
5014
+ preferences,
5015
+ ...rest
5016
+ }) => {
4992
5017
  const hasParams = authenticator.metadata?.params && authenticator.metadata.params.length > 0;
4993
5018
  switch (authenticator.authenticatorId) {
4994
5019
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.UsernamePassword:
4995
- return /* @__PURE__ */ jsx44(UsernamePassword_default, { ...props });
5020
+ return /* @__PURE__ */ jsx44(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
4996
5021
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.IdentifierFirst:
4997
- return /* @__PURE__ */ jsx44(IdentifierFirst_default, { ...props });
5022
+ return /* @__PURE__ */ jsx44(IdentifierFirst_default, { authenticator, preferences, onSubmit, ...rest });
4998
5023
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Google:
4999
- return /* @__PURE__ */ jsx44(GoogleButton_default, { ...props });
5024
+ return /* @__PURE__ */ jsx44(
5025
+ GoogleButton_default,
5026
+ {
5027
+ className: buttonClassName,
5028
+ onClick: () => onSubmit(authenticator),
5029
+ authenticator,
5030
+ preferences,
5031
+ ...rest
5032
+ }
5033
+ );
5000
5034
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.GitHub:
5001
- return /* @__PURE__ */ jsx44(GitHubButton_default, { ...props });
5035
+ return /* @__PURE__ */ jsx44(
5036
+ GitHubButton_default,
5037
+ {
5038
+ authenticator,
5039
+ preferences,
5040
+ className: buttonClassName,
5041
+ onClick: () => onSubmit(authenticator),
5042
+ ...rest
5043
+ }
5044
+ );
5002
5045
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Microsoft:
5003
- return /* @__PURE__ */ jsx44(MicrosoftButton_default, { ...props });
5046
+ return /* @__PURE__ */ jsx44(
5047
+ MicrosoftButton_default,
5048
+ {
5049
+ authenticator,
5050
+ preferences,
5051
+ className: buttonClassName,
5052
+ onClick: () => onSubmit(authenticator),
5053
+ ...rest
5054
+ }
5055
+ );
5004
5056
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Facebook:
5005
- return /* @__PURE__ */ jsx44(FacebookButton_default, { ...props });
5057
+ return /* @__PURE__ */ jsx44(
5058
+ FacebookButton_default,
5059
+ {
5060
+ authenticator,
5061
+ preferences,
5062
+ className: buttonClassName,
5063
+ onClick: () => onSubmit(authenticator),
5064
+ ...rest
5065
+ }
5066
+ );
5006
5067
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.LinkedIn:
5007
- return /* @__PURE__ */ jsx44(LinkedInButton_default, { ...props });
5068
+ return /* @__PURE__ */ jsx44(
5069
+ LinkedInButton_default,
5070
+ {
5071
+ authenticator,
5072
+ preferences,
5073
+ className: buttonClassName,
5074
+ onClick: () => onSubmit(authenticator),
5075
+ ...rest
5076
+ }
5077
+ );
5008
5078
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.SignInWithEthereum:
5009
- return /* @__PURE__ */ jsx44(SignInWithEthereumButton_default, { ...props });
5079
+ return /* @__PURE__ */ jsx44(
5080
+ SignInWithEthereumButton_default,
5081
+ {
5082
+ authenticator,
5083
+ preferences,
5084
+ className: buttonClassName,
5085
+ onClick: () => onSubmit(authenticator),
5086
+ ...rest
5087
+ }
5088
+ );
5010
5089
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.EmailOtp:
5011
- return hasParams ? /* @__PURE__ */ jsx44(EmailOtp_default, { ...props }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5090
+ return hasParams ? /* @__PURE__ */ jsx44(EmailOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5012
5091
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Totp:
5013
- return hasParams ? /* @__PURE__ */ jsx44(Totp_default, { ...props }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5092
+ return hasParams ? /* @__PURE__ */ jsx44(Totp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5014
5093
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.SmsOtp:
5015
- return hasParams ? /* @__PURE__ */ jsx44(SmsOtp_default, { ...props }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5094
+ return hasParams ? /* @__PURE__ */ jsx44(SmsOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5016
5095
  default:
5017
5096
  if (authenticator.idp !== EmbeddedSignInFlowAuthenticatorKnownIdPType2.Local) {
5018
- return /* @__PURE__ */ jsx44(SocialButton_default, { ...props });
5097
+ return /* @__PURE__ */ jsx44(
5098
+ SocialButton_default,
5099
+ {
5100
+ authenticator,
5101
+ preferences,
5102
+ className: buttonClassName,
5103
+ onClick: () => onSubmit(authenticator),
5104
+ ...rest,
5105
+ children: authenticator.idp
5106
+ }
5107
+ );
5019
5108
  }
5020
5109
  if (hasParams) {
5021
- return /* @__PURE__ */ jsx44(UsernamePassword_default, { ...props });
5110
+ return /* @__PURE__ */ jsx44(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5022
5111
  } else {
5023
- return /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5112
+ return /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5024
5113
  }
5025
5114
  }
5026
5115
  };
@@ -6908,75 +6997,8 @@ var FormContainer = (props) => {
6908
6997
  };
6909
6998
  var FormContainer_default = FormContainer;
6910
6999
 
6911
- // src/components/presentation/SignUp/options/GoogleButton.tsx
6912
- import { jsx as jsx57, jsxs as jsxs27 } from "react/jsx-runtime";
6913
- var GoogleButton2 = ({
6914
- component,
6915
- isLoading,
6916
- buttonClassName = "",
6917
- size = "medium",
6918
- onSubmit
6919
- }) => {
6920
- const config = component.config || {};
6921
- const buttonText = config["text"] || config["label"] || "Continue with Google";
6922
- const handleClick = () => {
6923
- if (onSubmit) {
6924
- onSubmit(component, {});
6925
- }
6926
- };
6927
- return /* @__PURE__ */ jsx57(
6928
- Button_default,
6929
- {
6930
- type: "button",
6931
- variant: "solid",
6932
- color: "secondary",
6933
- size,
6934
- disabled: isLoading,
6935
- onClick: handleClick,
6936
- className: buttonClassName,
6937
- style: { width: "100%" },
6938
- 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: [
6939
- /* @__PURE__ */ jsx57(
6940
- "path",
6941
- {
6942
- 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",
6943
- transform: "translate(0 -119.93)",
6944
- fill: "#fbbb00"
6945
- }
6946
- ),
6947
- /* @__PURE__ */ jsx57(
6948
- "path",
6949
- {
6950
- 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",
6951
- transform: "translate(-226.93 -180.567)",
6952
- fill: "#518ef8"
6953
- }
6954
- ),
6955
- /* @__PURE__ */ jsx57(
6956
- "path",
6957
- {
6958
- 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",
6959
- transform: "translate(-26.463 -268.374)",
6960
- fill: "#28b446"
6961
- }
6962
- ),
6963
- /* @__PURE__ */ jsx57(
6964
- "path",
6965
- {
6966
- 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",
6967
- transform: "translate(-24.828)",
6968
- fill: "#f14336"
6969
- }
6970
- )
6971
- ] }) }),
6972
- children: buttonText
6973
- }
6974
- );
6975
- };
6976
- var GoogleButton_default2 = GoogleButton2;
6977
-
6978
7000
  // src/components/presentation/SignUp/options/ImageComponent.tsx
6979
- import { jsx as jsx58 } from "react/jsx-runtime";
7001
+ import { jsx as jsx57 } from "react/jsx-runtime";
6980
7002
  var ImageComponent = ({ component }) => {
6981
7003
  const { theme } = useTheme_default();
6982
7004
  const config = component.config || {};
@@ -6993,7 +7015,7 @@ var ImageComponent = ({ component }) => {
6993
7015
  if (!src) {
6994
7016
  return null;
6995
7017
  }
6996
- return /* @__PURE__ */ jsx58("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ jsx58(
7018
+ return /* @__PURE__ */ jsx57("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ jsx57(
6997
7019
  "img",
6998
7020
  {
6999
7021
  src,
@@ -7096,7 +7118,7 @@ var PasswordInput = ({
7096
7118
  var PasswordInput_default = PasswordInput;
7097
7119
 
7098
7120
  // src/components/presentation/SignUp/options/SubmitButton.tsx
7099
- import { jsx as jsx59 } from "react/jsx-runtime";
7121
+ import { jsx as jsx58 } from "react/jsx-runtime";
7100
7122
  var ButtonComponent = ({
7101
7123
  component,
7102
7124
  isLoading,
@@ -7129,7 +7151,7 @@ var ButtonComponent = ({
7129
7151
  onSubmit(component);
7130
7152
  }
7131
7153
  };
7132
- return /* @__PURE__ */ jsx59(
7154
+ return /* @__PURE__ */ jsx58(
7133
7155
  Button_default,
7134
7156
  {
7135
7157
  type: buttonType === "submit" ? "submit" : "button",
@@ -7140,7 +7162,7 @@ var ButtonComponent = ({
7140
7162
  onClick: buttonType !== "submit" ? handleClick : void 0,
7141
7163
  className: buttonClassName,
7142
7164
  style: { width: "100%" },
7143
- children: isLoading ? /* @__PURE__ */ jsx59(Spinner_default, { size: "small" }) : buttonText
7165
+ children: isLoading ? /* @__PURE__ */ jsx58(Spinner_default, { size: "small" }) : buttonText
7144
7166
  },
7145
7167
  component.id
7146
7168
  );
@@ -7148,7 +7170,7 @@ var ButtonComponent = ({
7148
7170
  var SubmitButton_default = ButtonComponent;
7149
7171
 
7150
7172
  // src/components/presentation/SignUp/options/TelephoneInput.tsx
7151
- import { jsx as jsx60 } from "react/jsx-runtime";
7173
+ import { jsx as jsx59 } from "react/jsx-runtime";
7152
7174
  var TelephoneInput = ({
7153
7175
  component,
7154
7176
  formValues,
@@ -7161,7 +7183,7 @@ var TelephoneInput = ({
7161
7183
  const fieldName = config["identifier"] || config["name"] || component.id;
7162
7184
  const value = formValues[fieldName] || "";
7163
7185
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7164
- return /* @__PURE__ */ jsx60(
7186
+ return /* @__PURE__ */ jsx59(
7165
7187
  TextField_default,
7166
7188
  {
7167
7189
  name: fieldName,
@@ -7209,7 +7231,7 @@ var TextInput = ({
7209
7231
  var TextInput_default = TextInput;
7210
7232
 
7211
7233
  // src/components/presentation/SignUp/options/Typography.tsx
7212
- import { jsx as jsx61 } from "react/jsx-runtime";
7234
+ import { jsx as jsx60 } from "react/jsx-runtime";
7213
7235
  var TypographyComponent = ({ component }) => {
7214
7236
  const { theme } = useTheme_default();
7215
7237
  const config = component.config || {};
@@ -7250,7 +7272,7 @@ var TypographyComponent = ({ component }) => {
7250
7272
  default:
7251
7273
  typographyVariant = "body1";
7252
7274
  }
7253
- return /* @__PURE__ */ jsx61(
7275
+ return /* @__PURE__ */ jsx60(
7254
7276
  Typography_default,
7255
7277
  {
7256
7278
  variant: typographyVariant,
@@ -7263,50 +7285,66 @@ var TypographyComponent = ({ component }) => {
7263
7285
  var Typography_default2 = TypographyComponent;
7264
7286
 
7265
7287
  // src/components/presentation/SignUp/options/SignUpOptionFactory.tsx
7266
- import { jsx as jsx62 } from "react/jsx-runtime";
7267
- var createSignUpComponent = (props) => {
7268
- const { component } = props;
7288
+ import { jsx as jsx61 } from "react/jsx-runtime";
7289
+ var createSignUpComponent = ({ component, onSubmit, ...rest }) => {
7269
7290
  switch (component.type) {
7270
7291
  case EmbeddedFlowComponentType.Typography:
7271
- return /* @__PURE__ */ jsx62(Typography_default2, { ...props });
7292
+ return /* @__PURE__ */ jsx61(Typography_default2, { component, onSubmit, ...rest });
7272
7293
  case EmbeddedFlowComponentType.Input:
7273
7294
  const inputVariant = component.variant?.toUpperCase();
7274
7295
  const inputType = component.config["type"]?.toLowerCase();
7275
7296
  if (inputVariant === "EMAIL" || inputType === "email") {
7276
- return /* @__PURE__ */ jsx62(EmailInput_default, { ...props });
7297
+ return /* @__PURE__ */ jsx61(EmailInput_default, { component, onSubmit, ...rest });
7277
7298
  }
7278
7299
  if (inputVariant === "PASSWORD" || inputType === "password") {
7279
- return /* @__PURE__ */ jsx62(PasswordInput_default, { ...props });
7300
+ return /* @__PURE__ */ jsx61(PasswordInput_default, { component, onSubmit, ...rest });
7280
7301
  }
7281
7302
  if (inputVariant === "TELEPHONE" || inputType === "tel") {
7282
- return /* @__PURE__ */ jsx62(TelephoneInput_default, { ...props });
7303
+ return /* @__PURE__ */ jsx61(TelephoneInput_default, { component, onSubmit, ...rest });
7283
7304
  }
7284
7305
  if (inputVariant === "NUMBER" || inputType === "number") {
7285
- return /* @__PURE__ */ jsx62(NumberInput_default, { ...props });
7306
+ return /* @__PURE__ */ jsx61(NumberInput_default, { component, onSubmit, ...rest });
7286
7307
  }
7287
7308
  if (inputVariant === "DATE" || inputType === "date") {
7288
- return /* @__PURE__ */ jsx62(DateInput_default, { ...props });
7309
+ return /* @__PURE__ */ jsx61(DateInput_default, { component, onSubmit, ...rest });
7289
7310
  }
7290
7311
  if (inputVariant === "CHECKBOX" || inputType === "checkbox") {
7291
- return /* @__PURE__ */ jsx62(CheckboxInput_default, { ...props });
7312
+ return /* @__PURE__ */ jsx61(CheckboxInput_default, { component, onSubmit, ...rest });
7292
7313
  }
7293
- return /* @__PURE__ */ jsx62(TextInput_default, { ...props });
7314
+ return /* @__PURE__ */ jsx61(TextInput_default, { component, onSubmit, ...rest });
7294
7315
  case EmbeddedFlowComponentType.Button: {
7295
7316
  const buttonVariant = component.variant?.toUpperCase();
7296
7317
  const buttonText = component.config["text"] || component.config["label"] || "";
7297
- if (buttonVariant === "SOCIAL" && buttonText.toLowerCase().includes("google")) {
7298
- return /* @__PURE__ */ jsx62(GoogleButton_default2, { ...props });
7318
+ if (buttonVariant === "SOCIAL") {
7319
+ if (buttonText.toLowerCase().includes("google")) {
7320
+ return /* @__PURE__ */ jsx61(GoogleButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7321
+ }
7322
+ if (buttonText.toLowerCase().includes("github")) {
7323
+ return /* @__PURE__ */ jsx61(GitHubButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7324
+ }
7325
+ if (buttonText.toLowerCase().includes("microsoft")) {
7326
+ return /* @__PURE__ */ jsx61(MicrosoftButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7327
+ }
7328
+ if (buttonText.toLowerCase().includes("facebook")) {
7329
+ return /* @__PURE__ */ jsx61(FacebookButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7330
+ }
7331
+ if (buttonText.toLowerCase().includes("linkedin")) {
7332
+ return /* @__PURE__ */ jsx61(LinkedInButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7333
+ }
7334
+ if (buttonText.toLowerCase().includes("ethereum")) {
7335
+ return /* @__PURE__ */ jsx61(SignInWithEthereumButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7336
+ }
7299
7337
  }
7300
- return /* @__PURE__ */ jsx62(SubmitButton_default, { ...props });
7338
+ return /* @__PURE__ */ jsx61(SubmitButton_default, { component, onSubmit, ...rest });
7301
7339
  }
7302
7340
  case EmbeddedFlowComponentType.Form:
7303
- return /* @__PURE__ */ jsx62(FormContainer_default, { ...props });
7341
+ return /* @__PURE__ */ jsx61(FormContainer_default, { component, onSubmit, ...rest });
7304
7342
  case EmbeddedFlowComponentType.Divider:
7305
- return /* @__PURE__ */ jsx62(DividerComponent_default, { ...props });
7343
+ return /* @__PURE__ */ jsx61(DividerComponent_default, { component, onSubmit, ...rest });
7306
7344
  case EmbeddedFlowComponentType.Image:
7307
- return /* @__PURE__ */ jsx62(ImageComponent_default, { ...props });
7345
+ return /* @__PURE__ */ jsx61(ImageComponent_default, { component, onSubmit, ...rest });
7308
7346
  default:
7309
- return /* @__PURE__ */ jsx62("div", {});
7347
+ return /* @__PURE__ */ jsx61("div", {});
7310
7348
  }
7311
7349
  };
7312
7350
  var createSignUpOptionFromComponent = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => createSignUpComponent({
@@ -7478,13 +7516,13 @@ var useStyles17 = (theme, colorScheme) => {
7478
7516
  var BaseSignUp_styles_default = useStyles17;
7479
7517
 
7480
7518
  // src/components/presentation/SignUp/BaseSignUp.tsx
7481
- import { jsx as jsx63, jsxs as jsxs28 } from "react/jsx-runtime";
7519
+ import { jsx as jsx62, jsxs as jsxs27 } from "react/jsx-runtime";
7482
7520
  var BaseSignUp = (props) => {
7483
7521
  const { theme, colorScheme } = useTheme_default();
7484
7522
  const styles = BaseSignUp_styles_default(theme, colorScheme);
7485
- return /* @__PURE__ */ jsxs28("div", { children: [
7486
- /* @__PURE__ */ jsx63("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx63(Logo_default, { size: "large" }) }),
7487
- /* @__PURE__ */ jsx63(FlowProvider_default, { children: /* @__PURE__ */ jsx63(BaseSignUpContent, { ...props }) })
7523
+ return /* @__PURE__ */ jsxs27("div", { children: [
7524
+ /* @__PURE__ */ jsx62("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx62(Logo_default, { size: "large" }) }),
7525
+ /* @__PURE__ */ jsx62(FlowProvider_default, { children: /* @__PURE__ */ jsx62(BaseSignUpContent, { ...props }) })
7488
7526
  ] });
7489
7527
  };
7490
7528
  var BaseSignUpContent = ({
@@ -7842,30 +7880,30 @@ var BaseSignUpContent = ({
7842
7880
  t
7843
7881
  ]);
7844
7882
  if (!isFlowInitialized && isLoading) {
7845
- 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" }) }) }) });
7883
+ 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" }) }) }) });
7846
7884
  }
7847
7885
  if (!currentFlow) {
7848
- 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: [
7849
- /* @__PURE__ */ jsx63(Alert_default.Title, { children: t("errors.title") || "Error" }),
7850
- /* @__PURE__ */ jsx63(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7886
+ 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: [
7887
+ /* @__PURE__ */ jsx62(Alert_default.Title, { children: t("errors.title") || "Error" }),
7888
+ /* @__PURE__ */ jsx62(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7851
7889
  ] }) }) });
7852
7890
  }
7853
- return /* @__PURE__ */ jsxs28(Card_default, { className: cx20(containerClasses, styles.card), variant, children: [
7854
- 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(
7891
+ return /* @__PURE__ */ jsxs27(Card_default, { className: cx20(containerClasses, styles.card), variant, children: [
7892
+ 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(
7855
7893
  Alert_default,
7856
7894
  {
7857
7895
  variant: message.type?.toLowerCase() === "error" ? "error" : "info",
7858
7896
  className: cx20(styles.messageItem, messageClasses),
7859
- children: /* @__PURE__ */ jsx63(Alert_default.Description, { children: message.message })
7897
+ children: /* @__PURE__ */ jsx62(Alert_default.Description, { children: message.message })
7860
7898
  },
7861
7899
  message.id || index
7862
7900
  )) }) }),
7863
- /* @__PURE__ */ jsxs28(Card_default.Content, { children: [
7864
- error && /* @__PURE__ */ jsxs28(Alert_default, { variant: "error", className: cx20(styles.errorContainer, errorClasses), children: [
7865
- /* @__PURE__ */ jsx63(Alert_default.Title, { children: t("errors.title") || "Error" }),
7866
- /* @__PURE__ */ jsx63(Alert_default.Description, { children: error })
7901
+ /* @__PURE__ */ jsxs27(Card_default.Content, { children: [
7902
+ error && /* @__PURE__ */ jsxs27(Alert_default, { variant: "error", className: cx20(styles.errorContainer, errorClasses), children: [
7903
+ /* @__PURE__ */ jsx62(Alert_default.Title, { children: t("errors.title") || "Error" }),
7904
+ /* @__PURE__ */ jsx62(Alert_default.Description, { children: error })
7867
7905
  ] }),
7868
- /* @__PURE__ */ jsx63("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
7906
+ /* @__PURE__ */ jsx62("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
7869
7907
  ] })
7870
7908
  ] });
7871
7909
  };
@@ -7876,7 +7914,7 @@ import {
7876
7914
  EmbeddedFlowResponseType as EmbeddedFlowResponseType2,
7877
7915
  EmbeddedFlowType
7878
7916
  } from "@asgardeo/browser";
7879
- import { jsx as jsx64 } from "react/jsx-runtime";
7917
+ import { jsx as jsx63 } from "react/jsx-runtime";
7880
7918
  var SignUp = ({
7881
7919
  className,
7882
7920
  size = "medium",
@@ -7903,7 +7941,7 @@ var SignUp = ({
7903
7941
  window.location.href = response.data.redirectURL;
7904
7942
  }
7905
7943
  };
7906
- return /* @__PURE__ */ jsx64(
7944
+ return /* @__PURE__ */ jsx63(
7907
7945
  BaseSignUp_default,
7908
7946
  {
7909
7947
  afterSignUpUrl,
@@ -7921,41 +7959,41 @@ var SignUp = ({
7921
7959
  var SignUp_default = SignUp;
7922
7960
 
7923
7961
  // src/components/presentation/User/BaseUser.tsx
7924
- import { Fragment as Fragment12, jsx as jsx65 } from "react/jsx-runtime";
7962
+ import { Fragment as Fragment12, jsx as jsx64 } from "react/jsx-runtime";
7925
7963
  var BaseUser = ({ user, children, fallback = null }) => {
7926
7964
  if (!user) {
7927
- return /* @__PURE__ */ jsx65(Fragment12, { children: fallback });
7965
+ return /* @__PURE__ */ jsx64(Fragment12, { children: fallback });
7928
7966
  }
7929
- return /* @__PURE__ */ jsx65(Fragment12, { children: children(user) });
7967
+ return /* @__PURE__ */ jsx64(Fragment12, { children: children(user) });
7930
7968
  };
7931
7969
  BaseUser.displayName = "BaseUser";
7932
7970
  var BaseUser_default = BaseUser;
7933
7971
 
7934
7972
  // src/components/presentation/User/User.tsx
7935
- import { jsx as jsx66 } from "react/jsx-runtime";
7973
+ import { jsx as jsx65 } from "react/jsx-runtime";
7936
7974
  var User5 = ({ children, fallback = null }) => {
7937
7975
  const { user } = useAsgardeo_default();
7938
- return /* @__PURE__ */ jsx66(BaseUser_default, { user, fallback, children });
7976
+ return /* @__PURE__ */ jsx65(BaseUser_default, { user, fallback, children });
7939
7977
  };
7940
7978
  User5.displayName = "User";
7941
7979
  var User_default = User5;
7942
7980
 
7943
7981
  // src/components/presentation/Organization/BaseOrganization.tsx
7944
- import { Fragment as Fragment13, jsx as jsx67 } from "react/jsx-runtime";
7982
+ import { Fragment as Fragment13, jsx as jsx66 } from "react/jsx-runtime";
7945
7983
  var BaseOrganization = ({ children, fallback = null, organization }) => {
7946
7984
  if (!organization) {
7947
- return /* @__PURE__ */ jsx67(Fragment13, { children: fallback });
7985
+ return /* @__PURE__ */ jsx66(Fragment13, { children: fallback });
7948
7986
  }
7949
- return /* @__PURE__ */ jsx67(Fragment13, { children: children(organization) });
7987
+ return /* @__PURE__ */ jsx66(Fragment13, { children: children(organization) });
7950
7988
  };
7951
7989
  BaseOrganization.displayName = "BaseOrganization";
7952
7990
  var BaseOrganization_default = BaseOrganization;
7953
7991
 
7954
7992
  // src/components/presentation/Organization/Organization.tsx
7955
- import { jsx as jsx68 } from "react/jsx-runtime";
7993
+ import { jsx as jsx67 } from "react/jsx-runtime";
7956
7994
  var Organization5 = ({ children, fallback = null }) => {
7957
7995
  const { currentOrganization } = useOrganization_default();
7958
- return /* @__PURE__ */ jsx68(BaseOrganization_default, { organization: currentOrganization, fallback, children });
7996
+ return /* @__PURE__ */ jsx67(BaseOrganization_default, { organization: currentOrganization, fallback, children });
7959
7997
  };
7960
7998
  Organization5.displayName = "Organization";
7961
7999
  var Organization_default = Organization5;
@@ -8043,18 +8081,25 @@ var useStyles18 = (theme, colorScheme, size, variant, backgroundColor) => {
8043
8081
  }
8044
8082
  }
8045
8083
  `;
8084
+ const iconStyles = css18`
8085
+ width: 60%;
8086
+ height: 60%;
8087
+ fill: ${backgroundColor ? "#ffffff" : theme.vars.colors.text.secondary};
8088
+ opacity: 0.8;
8089
+ `;
8046
8090
  return {
8047
8091
  avatar: baseAvatar,
8048
8092
  variant: variantStyles[variant],
8049
8093
  image: imageStyles,
8050
- skeleton: skeletonStyles
8094
+ skeleton: skeletonStyles,
8095
+ icon: iconStyles
8051
8096
  };
8052
8097
  }, [theme, colorScheme, size, variant, backgroundColor]);
8053
8098
  };
8054
8099
  var Avatar_styles_default = useStyles18;
8055
8100
 
8056
8101
  // src/components/primitives/Avatar/Avatar.tsx
8057
- import { jsx as jsx69 } from "react/jsx-runtime";
8102
+ import { jsx as jsx68 } from "react/jsx-runtime";
8058
8103
  var Avatar = ({
8059
8104
  alt = "User avatar",
8060
8105
  background = "random",
@@ -8062,7 +8107,8 @@ var Avatar = ({
8062
8107
  imageUrl,
8063
8108
  name,
8064
8109
  size = 64,
8065
- variant = "circular"
8110
+ variant = "circular",
8111
+ isLoading = false
8066
8112
  }) => {
8067
8113
  const { theme, colorScheme } = useTheme_default();
8068
8114
  const generateBackgroundColor = (inputString) => {
@@ -8096,17 +8142,29 @@ var Avatar = ({
8096
8142
  return background;
8097
8143
  }, [background, name, imageUrl]);
8098
8144
  const styles = Avatar_styles_default(theme, colorScheme, size, variant, backgroundColor);
8145
+ const isDefaultState = !imageUrl && !name && !isLoading;
8099
8146
  const getInitials = (fullName) => fullName.split(" ").map((part) => part[0]).slice(0, 2).join("").toUpperCase();
8100
8147
  const renderContent = () => {
8101
8148
  if (imageUrl) {
8102
- return /* @__PURE__ */ jsx69("img", { src: imageUrl, alt, className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "image")), styles.image) });
8149
+ return /* @__PURE__ */ jsx68("img", { src: imageUrl, alt, className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "image")), styles.image) });
8103
8150
  }
8104
8151
  if (name) {
8105
8152
  return getInitials(name);
8106
8153
  }
8107
- return /* @__PURE__ */ jsx69("div", { className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "skeleton")), styles.skeleton) });
8154
+ if (isLoading) {
8155
+ return /* @__PURE__ */ jsx68("div", { className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "skeleton")), styles.skeleton) });
8156
+ }
8157
+ return /* @__PURE__ */ jsx68(
8158
+ "svg",
8159
+ {
8160
+ xmlns: "http://www.w3.org/2000/svg",
8161
+ viewBox: "0 0 640 640",
8162
+ className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "icon")), styles.icon),
8163
+ 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" })
8164
+ }
8165
+ );
8108
8166
  };
8109
- return /* @__PURE__ */ jsx69(
8167
+ return /* @__PURE__ */ jsx68(
8110
8168
  "div",
8111
8169
  {
8112
8170
  className: cx21(
@@ -8114,6 +8172,7 @@ var Avatar = ({
8114
8172
  styles.avatar,
8115
8173
  styles.variant,
8116
8174
  withVendorCSSClassPrefix21(bem16("avatar", null, variant)),
8175
+ isDefaultState && withVendorCSSClassPrefix21(bem16("avatar", "default")),
8117
8176
  className
8118
8177
  ),
8119
8178
  children: renderContent()
@@ -8140,8 +8199,8 @@ import { cx as cx22 } from "@emotion/css";
8140
8199
  import React from "react";
8141
8200
 
8142
8201
  // src/components/primitives/Icons/LogOut.tsx
8143
- import { jsx as jsx70, jsxs as jsxs29 } from "react/jsx-runtime";
8144
- var LogOut = (props) => /* @__PURE__ */ jsxs29(
8202
+ import { jsx as jsx69, jsxs as jsxs28 } from "react/jsx-runtime";
8203
+ var LogOut = (props) => /* @__PURE__ */ jsxs28(
8145
8204
  "svg",
8146
8205
  {
8147
8206
  xmlns: "http://www.w3.org/2000/svg",
@@ -8155,17 +8214,17 @@ var LogOut = (props) => /* @__PURE__ */ jsxs29(
8155
8214
  strokeLinejoin: "round",
8156
8215
  ...props,
8157
8216
  children: [
8158
- /* @__PURE__ */ jsx70("path", { d: "m16 17 5-5-5-5" }),
8159
- /* @__PURE__ */ jsx70("path", { d: "M21 12H9" }),
8160
- /* @__PURE__ */ jsx70("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8217
+ /* @__PURE__ */ jsx69("path", { d: "m16 17 5-5-5-5" }),
8218
+ /* @__PURE__ */ jsx69("path", { d: "M21 12H9" }),
8219
+ /* @__PURE__ */ jsx69("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8161
8220
  ]
8162
8221
  }
8163
8222
  );
8164
8223
  var LogOut_default = LogOut;
8165
8224
 
8166
8225
  // src/components/primitives/Icons/Plus.tsx
8167
- import { jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
8168
- var Plus = (props) => /* @__PURE__ */ jsxs30(
8226
+ import { jsx as jsx70, jsxs as jsxs29 } from "react/jsx-runtime";
8227
+ var Plus = (props) => /* @__PURE__ */ jsxs29(
8169
8228
  "svg",
8170
8229
  {
8171
8230
  xmlns: "http://www.w3.org/2000/svg",
@@ -8179,16 +8238,16 @@ var Plus = (props) => /* @__PURE__ */ jsxs30(
8179
8238
  strokeLinejoin: "round",
8180
8239
  ...props,
8181
8240
  children: [
8182
- /* @__PURE__ */ jsx71("path", { d: "M5 12h14" }),
8183
- /* @__PURE__ */ jsx71("path", { d: "M12 5v14" })
8241
+ /* @__PURE__ */ jsx70("path", { d: "M5 12h14" }),
8242
+ /* @__PURE__ */ jsx70("path", { d: "M12 5v14" })
8184
8243
  ]
8185
8244
  }
8186
8245
  );
8187
8246
  var Plus_default = Plus;
8188
8247
 
8189
8248
  // src/components/primitives/Icons/User.tsx
8190
- import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
8191
- var User7 = (props) => /* @__PURE__ */ jsxs31(
8249
+ import { jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
8250
+ var User7 = (props) => /* @__PURE__ */ jsxs30(
8192
8251
  "svg",
8193
8252
  {
8194
8253
  xmlns: "http://www.w3.org/2000/svg",
@@ -8202,16 +8261,16 @@ var User7 = (props) => /* @__PURE__ */ jsxs31(
8202
8261
  strokeLinejoin: "round",
8203
8262
  ...props,
8204
8263
  children: [
8205
- /* @__PURE__ */ jsx72("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8206
- /* @__PURE__ */ jsx72("circle", { cx: "12", cy: "7", r: "4" })
8264
+ /* @__PURE__ */ jsx71("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8265
+ /* @__PURE__ */ jsx71("circle", { cx: "12", cy: "7", r: "4" })
8207
8266
  ]
8208
8267
  }
8209
8268
  );
8210
8269
  var User_default2 = User7;
8211
8270
 
8212
8271
  // src/components/primitives/Icons/X.tsx
8213
- import { jsx as jsx73, jsxs as jsxs32 } from "react/jsx-runtime";
8214
- var X = (props) => /* @__PURE__ */ jsxs32(
8272
+ import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
8273
+ var X = (props) => /* @__PURE__ */ jsxs31(
8215
8274
  "svg",
8216
8275
  {
8217
8276
  xmlns: "http://www.w3.org/2000/svg",
@@ -8225,8 +8284,8 @@ var X = (props) => /* @__PURE__ */ jsxs32(
8225
8284
  strokeLinejoin: "round",
8226
8285
  ...props,
8227
8286
  children: [
8228
- /* @__PURE__ */ jsx73("path", { d: "M18 6 6 18" }),
8229
- /* @__PURE__ */ jsx73("path", { d: "m6 6 12 12" })
8287
+ /* @__PURE__ */ jsx72("path", { d: "M18 6 6 18" }),
8288
+ /* @__PURE__ */ jsx72("path", { d: "m6 6 12 12" })
8230
8289
  ]
8231
8290
  }
8232
8291
  );
@@ -8249,17 +8308,6 @@ var useStyles19 = (theme, colorScheme) => {
8249
8308
  border-radius: ${theme.vars.borderRadius.large};
8250
8309
  box-shadow: 0 2px 8px ${colorScheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.15)"};
8251
8310
  outline: none;
8252
- max-width: 35vw;
8253
- min-width: 35vw;
8254
- @media (max-width: 900px) {
8255
- max-width: 80vw;
8256
- min-width: 80vw;
8257
- }
8258
- @media (max-width: 600px) {
8259
- max-width: 95vw;
8260
- min-width: 95vw;
8261
- }
8262
- max-height: 90vh;
8263
8311
  overflow-y: auto;
8264
8312
  z-index: 10000;
8265
8313
  `;
@@ -8309,7 +8357,7 @@ var useStyles19 = (theme, colorScheme) => {
8309
8357
  var Dialog_styles_default = useStyles19;
8310
8358
 
8311
8359
  // src/components/primitives/Dialog/Dialog.tsx
8312
- import { jsx as jsx74, jsxs as jsxs33 } from "react/jsx-runtime";
8360
+ import { jsx as jsx73, jsxs as jsxs32 } from "react/jsx-runtime";
8313
8361
  function useDialog({
8314
8362
  initialOpen = false,
8315
8363
  open: controlledOpen,
@@ -8355,7 +8403,7 @@ var useDialogContext = () => {
8355
8403
  };
8356
8404
  function Dialog({ children, ...options }) {
8357
8405
  const dialog = useDialog(options);
8358
- return /* @__PURE__ */ jsx74(DialogContext.Provider, { value: dialog, children });
8406
+ return /* @__PURE__ */ jsx73(DialogContext.Provider, { value: dialog, children });
8359
8407
  }
8360
8408
  var DialogTrigger = React.forwardRef(
8361
8409
  ({ children, asChild = false, ...props }, propRef) => {
@@ -8373,7 +8421,7 @@ var DialogTrigger = React.forwardRef(
8373
8421
  })
8374
8422
  );
8375
8423
  }
8376
- return /* @__PURE__ */ jsx74("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8424
+ return /* @__PURE__ */ jsx73("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8377
8425
  }
8378
8426
  );
8379
8427
  var DialogContent = React.forwardRef((props, propRef) => {
@@ -8382,7 +8430,7 @@ var DialogContent = React.forwardRef((props, propRef) => {
8382
8430
  const styles = Dialog_styles_default(theme, colorScheme);
8383
8431
  const ref = useMergeRefs([context.refs.setFloating, propRef]);
8384
8432
  if (!floatingContext.open) return null;
8385
- 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(
8433
+ 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(
8386
8434
  "div",
8387
8435
  {
8388
8436
  ref,
@@ -8404,8 +8452,8 @@ var DialogHeading = React.forwardRef(
8404
8452
  context.setLabelId(id);
8405
8453
  return () => context.setLabelId(void 0);
8406
8454
  }, [id, context.setLabelId]);
8407
- return /* @__PURE__ */ jsxs33("div", { className: cx22(withVendorCSSClassPrefix22(bem17("dialog", "header")), styles.header), children: [
8408
- /* @__PURE__ */ jsx74(
8455
+ return /* @__PURE__ */ jsxs32("div", { className: cx22(withVendorCSSClassPrefix22(bem17("dialog", "header")), styles.header), children: [
8456
+ /* @__PURE__ */ jsx73(
8409
8457
  "h2",
8410
8458
  {
8411
8459
  ...props,
@@ -8415,7 +8463,7 @@ var DialogHeading = React.forwardRef(
8415
8463
  children
8416
8464
  }
8417
8465
  ),
8418
- /* @__PURE__ */ jsx74(
8466
+ /* @__PURE__ */ jsx73(
8419
8467
  Button_default,
8420
8468
  {
8421
8469
  color: "tertiary",
@@ -8424,7 +8472,7 @@ var DialogHeading = React.forwardRef(
8424
8472
  shape: "round",
8425
8473
  onClick: () => context.setOpen(false),
8426
8474
  "aria-label": "Close",
8427
- children: /* @__PURE__ */ jsx74(X_default, { width: 16, height: 16 })
8475
+ children: /* @__PURE__ */ jsx73(X_default, { width: 16, height: 16 })
8428
8476
  }
8429
8477
  )
8430
8478
  ] });
@@ -8440,7 +8488,7 @@ var DialogDescription = React.forwardRef(
8440
8488
  context.setDescriptionId(id);
8441
8489
  return () => context.setDescriptionId(void 0);
8442
8490
  }, [id, context.setDescriptionId]);
8443
- return /* @__PURE__ */ jsx74(
8491
+ return /* @__PURE__ */ jsx73(
8444
8492
  "p",
8445
8493
  {
8446
8494
  ...props,
@@ -8470,7 +8518,7 @@ var DialogClose = React.forwardRef(({ children, asChild = false, ...props }, pro
8470
8518
  onClick: handleClick
8471
8519
  });
8472
8520
  }
8473
- return /* @__PURE__ */ jsx74(
8521
+ return /* @__PURE__ */ jsx73(
8474
8522
  Button_default,
8475
8523
  {
8476
8524
  ...props,
@@ -8593,7 +8641,7 @@ var useStyles20 = (theme, colorScheme, disabled, hasError, canAddMore, canRemove
8593
8641
  var MultiInput_styles_default = useStyles20;
8594
8642
 
8595
8643
  // src/components/primitives/MultiInput/MultiInput.tsx
8596
- import { jsx as jsx75, jsxs as jsxs34 } from "react/jsx-runtime";
8644
+ import { jsx as jsx74, jsxs as jsxs33 } from "react/jsx-runtime";
8597
8645
  var MultiInput = ({
8598
8646
  label,
8599
8647
  error,
@@ -8616,8 +8664,8 @@ var MultiInput = ({
8616
8664
  const canAddMore = !maxFields || values.length < maxFields;
8617
8665
  const canRemove = values.length > minFields;
8618
8666
  const styles = MultiInput_styles_default(theme, colorScheme, !!disabled, !!error, canAddMore, canRemove);
8619
- 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" }) });
8620
- 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" }) });
8667
+ 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" }) });
8668
+ 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" }) });
8621
8669
  const handleAddValue = useCallback11(
8622
8670
  (newValue) => {
8623
8671
  if (newValue.trim() !== "" && (!maxFields || values.length < maxFields)) {
@@ -8661,9 +8709,9 @@ var MultiInput = ({
8661
8709
  };
8662
8710
  switch (fieldType) {
8663
8711
  case "DATE_TIME":
8664
- return /* @__PURE__ */ jsx75(DatePicker_default, { ...commonProps });
8712
+ return /* @__PURE__ */ jsx74(DatePicker_default, { ...commonProps });
8665
8713
  case "BOOLEAN":
8666
- return /* @__PURE__ */ jsx75(
8714
+ return /* @__PURE__ */ jsx74(
8667
8715
  Checkbox_default,
8668
8716
  {
8669
8717
  ...commonProps,
@@ -8672,7 +8720,7 @@ var MultiInput = ({
8672
8720
  }
8673
8721
  );
8674
8722
  default:
8675
- return /* @__PURE__ */ jsx75(TextField_default, { ...commonProps, type });
8723
+ return /* @__PURE__ */ jsx74(TextField_default, { ...commonProps, type });
8676
8724
  }
8677
8725
  },
8678
8726
  [placeholder, disabled, startIcon, endIcon, error, fieldType, type]
@@ -8684,7 +8732,7 @@ var MultiInput = ({
8684
8732
  setCurrentInputValue("");
8685
8733
  }
8686
8734
  }, [currentInputValue, handleAddValue]);
8687
- return /* @__PURE__ */ jsxs34(
8735
+ return /* @__PURE__ */ jsxs33(
8688
8736
  FormControl_default,
8689
8737
  {
8690
8738
  error,
@@ -8692,27 +8740,27 @@ var MultiInput = ({
8692
8740
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input")), className),
8693
8741
  style,
8694
8742
  children: [
8695
- label && /* @__PURE__ */ jsx75(InputLabel_default, { required, error: !!error, children: label }),
8696
- /* @__PURE__ */ jsxs34("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "container")), styles.container), children: [
8697
- /* @__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(
8743
+ label && /* @__PURE__ */ jsx74(InputLabel_default, { required, error: !!error, children: label }),
8744
+ /* @__PURE__ */ jsxs33("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "container")), styles.container), children: [
8745
+ /* @__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(
8698
8746
  currentInputValue,
8699
8747
  setCurrentInputValue,
8700
- canAddMore ? /* @__PURE__ */ jsx75(PlusIcon, { className: styles.plusIcon }) : void 0,
8748
+ canAddMore ? /* @__PURE__ */ jsx74(PlusIcon, { className: styles.plusIcon }) : void 0,
8701
8749
  canAddMore ? handleInputSubmit : void 0
8702
8750
  ) }) }),
8703
- values.length > 0 && /* @__PURE__ */ jsx75("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-container")), styles.listContainer), children: values.map((value, index) => /* @__PURE__ */ jsxs34(
8751
+ values.length > 0 && /* @__PURE__ */ jsx74("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-container")), styles.listContainer), children: values.map((value, index) => /* @__PURE__ */ jsxs33(
8704
8752
  "div",
8705
8753
  {
8706
8754
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-item")), styles.listItem),
8707
8755
  children: [
8708
- /* @__PURE__ */ jsx75(
8756
+ /* @__PURE__ */ jsx74(
8709
8757
  "span",
8710
8758
  {
8711
8759
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-item-text")), styles.listItemText),
8712
8760
  children: value
8713
8761
  }
8714
8762
  ),
8715
- canRemove && /* @__PURE__ */ jsx75(
8763
+ canRemove && /* @__PURE__ */ jsx74(
8716
8764
  "button",
8717
8765
  {
8718
8766
  type: "button",
@@ -8720,7 +8768,7 @@ var MultiInput = ({
8720
8768
  disabled,
8721
8769
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "remove-button")), styles.removeButton),
8722
8770
  title: "Remove value",
8723
- children: /* @__PURE__ */ jsx75(BinIcon, { className: styles.icon })
8771
+ children: /* @__PURE__ */ jsx74(BinIcon, { className: styles.icon })
8724
8772
  }
8725
8773
  )
8726
8774
  ]
@@ -8908,7 +8956,7 @@ var useStyles21 = (theme, colorScheme) => {
8908
8956
  var BaseUserProfile_styles_default = useStyles21;
8909
8957
 
8910
8958
  // src/components/presentation/UserProfile/BaseUserProfile.tsx
8911
- import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs35 } from "react/jsx-runtime";
8959
+ import { Fragment as Fragment14, jsx as jsx75, jsxs as jsxs34 } from "react/jsx-runtime";
8912
8960
  var fieldsToSkip = [
8913
8961
  "roles.default",
8914
8962
  "active",
@@ -8944,13 +8992,31 @@ var BaseUserProfile = ({
8944
8992
  onOpenChange,
8945
8993
  onUpdate,
8946
8994
  open = false,
8947
- error = null
8995
+ error = null,
8996
+ isLoading = false,
8997
+ showFields = [],
8998
+ hideFields = []
8948
8999
  }) => {
8949
9000
  const { theme, colorScheme } = useTheme_default();
8950
9001
  const [editedUser, setEditedUser] = useState17(flattenedProfile || profile);
8951
9002
  const [editingFields, setEditingFields] = useState17({});
8952
9003
  const { t } = useTranslation_default();
8953
- const PencilIcon = () => /* @__PURE__ */ jsx76(
9004
+ const shouldShowField = useCallback12(
9005
+ (fieldName) => {
9006
+ if (fieldsToSkip.includes(fieldName)) {
9007
+ return false;
9008
+ }
9009
+ if (hideFields.length > 0 && hideFields.includes(fieldName)) {
9010
+ return false;
9011
+ }
9012
+ if (showFields.length > 0) {
9013
+ return showFields.includes(fieldName);
9014
+ }
9015
+ return true;
9016
+ },
9017
+ [showFields, hideFields]
9018
+ );
9019
+ const PencilIcon = () => /* @__PURE__ */ jsx75(
8954
9020
  "svg",
8955
9021
  {
8956
9022
  width: "16",
@@ -8961,7 +9027,7 @@ var BaseUserProfile = ({
8961
9027
  strokeWidth: "2",
8962
9028
  strokeLinecap: "round",
8963
9029
  strokeLinejoin: "round",
8964
- children: /* @__PURE__ */ jsx76("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
9030
+ children: /* @__PURE__ */ jsx75("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
8965
9031
  }
8966
9032
  );
8967
9033
  const toggleFieldEdit = useCallback12((fieldName) => {
@@ -8986,12 +9052,12 @@ var BaseUserProfile = ({
8986
9052
  }, []);
8987
9053
  const ObjectDisplay = ({ data }) => {
8988
9054
  if (!data || typeof data !== "object") return null;
8989
- return /* @__PURE__ */ jsx76("table", { className: styles.value, children: /* @__PURE__ */ jsx76("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ jsxs35("tr", { children: [
8990
- /* @__PURE__ */ jsx76("td", { className: styles.objectKey, children: /* @__PURE__ */ jsxs35("strong", { children: [
9055
+ return /* @__PURE__ */ jsx75("table", { className: styles.value, children: /* @__PURE__ */ jsx75("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ jsxs34("tr", { children: [
9056
+ /* @__PURE__ */ jsx75("td", { className: styles.objectKey, children: /* @__PURE__ */ jsxs34("strong", { children: [
8991
9057
  formatLabel(key),
8992
9058
  ":"
8993
9059
  ] }) }),
8994
- /* @__PURE__ */ jsx76("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ jsx76(ObjectDisplay, { data: value }) : String(value) })
9060
+ /* @__PURE__ */ jsx75("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ jsx75(ObjectDisplay, { data: value }) : String(value) })
8995
9061
  ] }, key)) }) });
8996
9062
  };
8997
9063
  function set(obj, path, value) {
@@ -9061,9 +9127,9 @@ var BaseUserProfile = ({
9061
9127
  const { value, displayName, description, name, type, required, mutability, subAttributes, multiValued } = schema;
9062
9128
  const label = displayName || description || name || "";
9063
9129
  if (subAttributes && Array.isArray(subAttributes)) {
9064
- return /* @__PURE__ */ jsx76(Fragment14, { children: subAttributes.map((subAttr, index) => /* @__PURE__ */ jsxs35("div", { className: styles.field, children: [
9065
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9066
- /* @__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) })
9130
+ return /* @__PURE__ */ jsx75(Fragment14, { children: subAttributes.map((subAttr, index) => /* @__PURE__ */ jsxs34("div", { className: styles.field, children: [
9131
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9132
+ /* @__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) })
9067
9133
  ] }, index)) });
9068
9134
  }
9069
9135
  if (Array.isArray(value) || multiValued) {
@@ -9079,9 +9145,9 @@ var BaseUserProfile = ({
9079
9145
  } else {
9080
9146
  fieldValues = [];
9081
9147
  }
9082
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9083
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9084
- /* @__PURE__ */ jsx76("div", { className: styles.value, children: /* @__PURE__ */ jsx76(
9148
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9149
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9150
+ /* @__PURE__ */ jsx75("div", { className: styles.value, children: /* @__PURE__ */ jsx75(
9085
9151
  MultiInput_default,
9086
9152
  {
9087
9153
  values: fieldValues,
@@ -9112,9 +9178,9 @@ var BaseUserProfile = ({
9112
9178
  } else {
9113
9179
  displayValue2 = "-";
9114
9180
  }
9115
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9116
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9117
- /* @__PURE__ */ jsx76("div", { className: cx24(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ jsx76(
9181
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9182
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9183
+ /* @__PURE__ */ jsx75("div", { className: cx24(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ jsx75(
9118
9184
  Button_default,
9119
9185
  {
9120
9186
  onClick: onStartEdit,
@@ -9129,7 +9195,7 @@ var BaseUserProfile = ({
9129
9195
  ] });
9130
9196
  }
9131
9197
  if (type === "COMPLEX" && typeof value === "object") {
9132
- return /* @__PURE__ */ jsx76(ObjectDisplay, { data: value });
9198
+ return /* @__PURE__ */ jsx75(ObjectDisplay, { data: value });
9133
9199
  }
9134
9200
  if (isEditing && onEditValue && mutability !== "READ_ONLY" && !readonlyFields.includes(name || "")) {
9135
9201
  const fieldValue = editedUser && name && editedUser[name] !== void 0 ? editedUser[name] : flattenedProfile && name && flattenedProfile[name] !== void 0 ? flattenedProfile[name] : value || "";
@@ -9144,16 +9210,16 @@ var BaseUserProfile = ({
9144
9210
  let field;
9145
9211
  switch (type) {
9146
9212
  case "STRING":
9147
- field = /* @__PURE__ */ jsx76(TextField_default, { ...commonProps });
9213
+ field = /* @__PURE__ */ jsx75(TextField_default, { ...commonProps });
9148
9214
  break;
9149
9215
  case "DATE_TIME":
9150
- field = /* @__PURE__ */ jsx76(DatePicker_default, { ...commonProps });
9216
+ field = /* @__PURE__ */ jsx75(DatePicker_default, { ...commonProps });
9151
9217
  break;
9152
9218
  case "BOOLEAN":
9153
- field = /* @__PURE__ */ jsx76(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9219
+ field = /* @__PURE__ */ jsx75(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9154
9220
  break;
9155
9221
  case "COMPLEX":
9156
- field = /* @__PURE__ */ jsx76(
9222
+ field = /* @__PURE__ */ jsx75(
9157
9223
  "textarea",
9158
9224
  {
9159
9225
  value: fieldValue,
@@ -9165,11 +9231,11 @@ var BaseUserProfile = ({
9165
9231
  );
9166
9232
  break;
9167
9233
  default:
9168
- field = /* @__PURE__ */ jsx76(TextField_default, { ...commonProps });
9234
+ field = /* @__PURE__ */ jsx75(TextField_default, { ...commonProps });
9169
9235
  }
9170
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9171
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9172
- /* @__PURE__ */ jsx76("div", { className: styles.value, children: field })
9236
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9237
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9238
+ /* @__PURE__ */ jsx75("div", { className: styles.value, children: field })
9173
9239
  ] });
9174
9240
  }
9175
9241
  const hasValue = value !== void 0 && value !== null && value !== "";
@@ -9182,9 +9248,9 @@ var BaseUserProfile = ({
9182
9248
  } else {
9183
9249
  displayValue = "-";
9184
9250
  }
9185
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9186
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9187
- /* @__PURE__ */ jsx76("div", { className: cx24(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ jsx76(
9251
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9252
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9253
+ /* @__PURE__ */ jsx75("div", { className: cx24(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ jsx75(
9188
9254
  Button_default,
9189
9255
  {
9190
9256
  onClick: onStartEdit,
@@ -9212,8 +9278,8 @@ var BaseUserProfile = ({
9212
9278
  alignItems: "center",
9213
9279
  gap: theme.vars.spacing.unit
9214
9280
  };
9215
- return /* @__PURE__ */ jsxs35("div", { className: styles.field, children: [
9216
- /* @__PURE__ */ jsx76("div", { className: styles.fieldInner, children: renderSchemaField(
9281
+ return /* @__PURE__ */ jsxs34("div", { className: styles.field, children: [
9282
+ /* @__PURE__ */ jsx75("div", { className: styles.fieldInner, children: renderSchemaField(
9217
9283
  schema,
9218
9284
  isFieldEditing,
9219
9285
  (value) => {
@@ -9223,21 +9289,21 @@ var BaseUserProfile = ({
9223
9289
  },
9224
9290
  () => toggleFieldEdit(schema.name)
9225
9291
  ) }),
9226
- editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ jsxs35("div", { className: styles.fieldActions, children: [
9227
- isFieldEditing && /* @__PURE__ */ jsxs35(Fragment14, { children: [
9228
- /* @__PURE__ */ jsx76(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9229
- /* @__PURE__ */ jsx76(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9292
+ editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ jsxs34("div", { className: styles.fieldActions, children: [
9293
+ isFieldEditing && /* @__PURE__ */ jsxs34(Fragment14, { children: [
9294
+ /* @__PURE__ */ jsx75(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9295
+ /* @__PURE__ */ jsx75(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9230
9296
  ] }),
9231
- !isFieldEditing && hasValue && /* @__PURE__ */ jsx76(
9297
+ !isFieldEditing && hasValue && /* @__PURE__ */ jsx75(
9232
9298
  Button_default,
9233
9299
  {
9234
9300
  size: "small",
9235
9301
  color: "tertiary",
9236
- variant: "text",
9302
+ variant: "icon",
9237
9303
  onClick: () => toggleFieldEdit(schema.name),
9238
9304
  title: "Edit",
9239
9305
  className: styles.editButton,
9240
- children: /* @__PURE__ */ jsx76(PencilIcon, {})
9306
+ children: /* @__PURE__ */ jsx75(PencilIcon, {})
9241
9307
  }
9242
9308
  )
9243
9309
  ] })
@@ -9266,30 +9332,31 @@ var BaseUserProfile = ({
9266
9332
  const renderProfileWithoutSchemas = () => {
9267
9333
  if (!currentUser) return null;
9268
9334
  const profileEntries = Object.entries(currentUser).filter(([key, value]) => {
9269
- if (fieldsToSkip.includes(key)) return false;
9335
+ if (!shouldShowField(key)) return false;
9270
9336
  return value !== void 0 && value !== "" && value !== null;
9271
9337
  }).sort(([a], [b]) => a.localeCompare(b));
9272
- return /* @__PURE__ */ jsx76(Fragment14, { children: profileEntries.map(([key, value]) => /* @__PURE__ */ jsxs35("div", { className: styles.field, children: [
9273
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: formatLabel(key) }),
9274
- /* @__PURE__ */ jsx76("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9338
+ return /* @__PURE__ */ jsx75(Fragment14, { children: profileEntries.map(([key, value]) => /* @__PURE__ */ jsxs34("div", { className: styles.field, children: [
9339
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: formatLabel(key) }),
9340
+ /* @__PURE__ */ jsx75("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9275
9341
  ] }, key)) });
9276
9342
  };
9277
- const profileContent = /* @__PURE__ */ jsxs35(Card_default, { className: containerClasses, children: [
9278
- error && /* @__PURE__ */ jsxs35(Alert_default, { variant: "error", className: cx24(withVendorCSSClassPrefix25(bem19("user-profile", "alert")), styles.alert), children: [
9279
- /* @__PURE__ */ jsx76(Alert_default.Title, { children: t("errors.title") || "Error" }),
9280
- /* @__PURE__ */ jsx76(Alert_default.Description, { children: error })
9343
+ const profileContent = /* @__PURE__ */ jsxs34(Card_default, { className: containerClasses, children: [
9344
+ error && /* @__PURE__ */ jsxs34(Alert_default, { variant: "error", className: cx24(withVendorCSSClassPrefix25(bem19("user-profile", "alert")), styles.alert), children: [
9345
+ /* @__PURE__ */ jsx75(Alert_default.Title, { children: t("errors.title") || "Error" }),
9346
+ /* @__PURE__ */ jsx75(Alert_default.Description, { children: error })
9281
9347
  ] }),
9282
- /* @__PURE__ */ jsx76("div", { className: styles.header, children: /* @__PURE__ */ jsx76(
9348
+ /* @__PURE__ */ jsx75("div", { className: styles.header, children: /* @__PURE__ */ jsx75(
9283
9349
  Avatar,
9284
9350
  {
9285
9351
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, currentUser),
9286
9352
  name: getDisplayName(),
9287
9353
  size: 80,
9288
- alt: `${getDisplayName()}'s avatar`
9354
+ alt: `${getDisplayName()}'s avatar`,
9355
+ isLoading
9289
9356
  }
9290
9357
  ) }),
9291
- /* @__PURE__ */ jsx76("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9292
- if (fieldsToSkip.includes(schema.name)) return false;
9358
+ /* @__PURE__ */ jsx75("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9359
+ if (!schema.name || !shouldShowField(schema.name)) return false;
9293
9360
  if (!editable) {
9294
9361
  const value = flattenedProfile && schema.name ? flattenedProfile[schema.name] : void 0;
9295
9362
  return value !== void 0 && value !== "" && value !== null;
@@ -9305,13 +9372,13 @@ var BaseUserProfile = ({
9305
9372
  ...schema,
9306
9373
  value
9307
9374
  };
9308
- return /* @__PURE__ */ jsx76("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9375
+ return /* @__PURE__ */ jsx75("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9309
9376
  }) : renderProfileWithoutSchemas() })
9310
9377
  ] });
9311
9378
  if (mode === "popup") {
9312
- return /* @__PURE__ */ jsx76(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs35(Dialog_default.Content, { children: [
9313
- /* @__PURE__ */ jsx76(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9314
- /* @__PURE__ */ jsx76("div", { className: styles.popup, children: profileContent })
9379
+ return /* @__PURE__ */ jsx75(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs34(Dialog_default.Content, { children: [
9380
+ /* @__PURE__ */ jsx75(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9381
+ /* @__PURE__ */ jsx75("div", { className: styles.popup, children: profileContent })
9315
9382
  ] }) });
9316
9383
  }
9317
9384
  return profileContent;
@@ -9352,9 +9419,9 @@ var updateMeProfile_default = updateMeProfile;
9352
9419
 
9353
9420
  // src/components/presentation/UserProfile/UserProfile.tsx
9354
9421
  import { AsgardeoError } from "@asgardeo/browser";
9355
- import { jsx as jsx77 } from "react/jsx-runtime";
9422
+ import { jsx as jsx76 } from "react/jsx-runtime";
9356
9423
  var UserProfile3 = ({ ...rest }) => {
9357
- const { baseUrl } = useAsgardeo_default();
9424
+ const { baseUrl, isLoading } = useAsgardeo_default();
9358
9425
  const { profile, flattenedProfile, schemas, onUpdateProfile } = useUser_default();
9359
9426
  const { t } = useTranslation_default();
9360
9427
  const [error, setError] = useState18(null);
@@ -9371,7 +9438,7 @@ var UserProfile3 = ({ ...rest }) => {
9371
9438
  setError(message);
9372
9439
  }
9373
9440
  };
9374
- return /* @__PURE__ */ jsx77(
9441
+ return /* @__PURE__ */ jsx76(
9375
9442
  BaseUserProfile_default,
9376
9443
  {
9377
9444
  profile,
@@ -9588,7 +9655,7 @@ var useStyles22 = (theme, colorScheme) => {
9588
9655
  var BaseUserDropdown_styles_default = useStyles22;
9589
9656
 
9590
9657
  // src/components/presentation/UserDropdown/BaseUserDropdown.tsx
9591
- import { jsx as jsx78, jsxs as jsxs36 } from "react/jsx-runtime";
9658
+ import { jsx as jsx77, jsxs as jsxs35 } from "react/jsx-runtime";
9592
9659
  var BaseUserDropdown = ({
9593
9660
  fallback = null,
9594
9661
  className = "",
@@ -9647,14 +9714,14 @@ var BaseUserDropdown = ({
9647
9714
  defaultMenuItems.push({
9648
9715
  label: "Manage Profile",
9649
9716
  onClick: onManageProfile,
9650
- icon: /* @__PURE__ */ jsx78(User_default2, { width: "16", height: "16" })
9717
+ icon: /* @__PURE__ */ jsx77(User_default2, { width: "16", height: "16" })
9651
9718
  });
9652
9719
  }
9653
9720
  if (onSignOut) {
9654
9721
  defaultMenuItems.push({
9655
9722
  label: "Sign Out",
9656
9723
  onClick: onSignOut,
9657
- icon: /* @__PURE__ */ jsx78(LogOut_default, { width: "16", height: "16" })
9724
+ icon: /* @__PURE__ */ jsx77(LogOut_default, { width: "16", height: "16" })
9658
9725
  });
9659
9726
  }
9660
9727
  const allMenuItems = [...menuItems];
@@ -9664,8 +9731,8 @@ var BaseUserDropdown = ({
9664
9731
  }
9665
9732
  allMenuItems.push(...defaultMenuItems);
9666
9733
  }
9667
- return /* @__PURE__ */ jsxs36("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown"), className), children: [
9668
- /* @__PURE__ */ jsxs36(
9734
+ return /* @__PURE__ */ jsxs35("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown"), className), children: [
9735
+ /* @__PURE__ */ jsxs35(
9669
9736
  Button_default,
9670
9737
  {
9671
9738
  ref: refs.setReference,
@@ -9675,7 +9742,7 @@ var BaseUserDropdown = ({
9675
9742
  size: "medium",
9676
9743
  ...getReferenceProps(),
9677
9744
  children: [
9678
- /* @__PURE__ */ jsx78(
9745
+ /* @__PURE__ */ jsx77(
9679
9746
  Avatar,
9680
9747
  {
9681
9748
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9684,7 +9751,7 @@ var BaseUserDropdown = ({
9684
9751
  alt: `${getDisplayName()}'s avatar`
9685
9752
  }
9686
9753
  ),
9687
- showTriggerLabel && /* @__PURE__ */ jsx78(
9754
+ showTriggerLabel && /* @__PURE__ */ jsx77(
9688
9755
  Typography_default,
9689
9756
  {
9690
9757
  variant: "body2",
@@ -9695,7 +9762,7 @@ var BaseUserDropdown = ({
9695
9762
  ]
9696
9763
  }
9697
9764
  ),
9698
- isOpen && /* @__PURE__ */ jsx78(FloatingPortal2, { id: portalId, children: /* @__PURE__ */ jsx78(FloatingFocusManager2, { context, modal: false, children: /* @__PURE__ */ jsxs36(
9765
+ isOpen && /* @__PURE__ */ jsx77(FloatingPortal2, { id: portalId, children: /* @__PURE__ */ jsx77(FloatingFocusManager2, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ jsxs35(
9699
9766
  "div",
9700
9767
  {
9701
9768
  ref: refs.setFloating,
@@ -9703,8 +9770,8 @@ var BaseUserDropdown = ({
9703
9770
  style: floatingStyles,
9704
9771
  ...getFloatingProps(),
9705
9772
  children: [
9706
- /* @__PURE__ */ jsxs36("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header"), styles.dropdownHeader), children: [
9707
- /* @__PURE__ */ jsx78(
9773
+ /* @__PURE__ */ jsxs35("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header"), styles.dropdownHeader), children: [
9774
+ /* @__PURE__ */ jsx77(
9708
9775
  Avatar,
9709
9776
  {
9710
9777
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9713,8 +9780,8 @@ var BaseUserDropdown = ({
9713
9780
  alt: `${getDisplayName()}'s avatar`
9714
9781
  }
9715
9782
  ),
9716
- /* @__PURE__ */ jsxs36("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header-info"), styles.headerInfo), children: [
9717
- /* @__PURE__ */ jsx78(
9783
+ /* @__PURE__ */ jsxs35("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header-info"), styles.headerInfo), children: [
9784
+ /* @__PURE__ */ jsx77(
9718
9785
  Typography_default,
9719
9786
  {
9720
9787
  noWrap: true,
@@ -9724,7 +9791,7 @@ var BaseUserDropdown = ({
9724
9791
  children: getDisplayName()
9725
9792
  }
9726
9793
  ),
9727
- /* @__PURE__ */ jsx78(
9794
+ /* @__PURE__ */ jsx77(
9728
9795
  Typography_default,
9729
9796
  {
9730
9797
  noWrap: true,
@@ -9736,7 +9803,7 @@ var BaseUserDropdown = ({
9736
9803
  )
9737
9804
  ] })
9738
9805
  ] }),
9739
- /* @__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(
9806
+ /* @__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(
9740
9807
  "a",
9741
9808
  {
9742
9809
  href: item.href,
@@ -9750,10 +9817,10 @@ var BaseUserDropdown = ({
9750
9817
  onBlur: () => setHoveredItemIndex(null),
9751
9818
  children: [
9752
9819
  item.icon,
9753
- /* @__PURE__ */ jsx78("span", { children: item.label })
9820
+ /* @__PURE__ */ jsx77("span", { children: item.label })
9754
9821
  ]
9755
9822
  }
9756
- ) : /* @__PURE__ */ jsx78(
9823
+ ) : /* @__PURE__ */ jsx77(
9757
9824
  Button_default,
9758
9825
  {
9759
9826
  onClick: () => handleMenuItemClick(item),
@@ -9779,7 +9846,7 @@ var BaseUserDropdown_default = BaseUserDropdown;
9779
9846
 
9780
9847
  // src/components/presentation/UserDropdown/UserDropdown.tsx
9781
9848
  import { useState as useState20 } from "react";
9782
- import { Fragment as Fragment15, jsx as jsx79, jsxs as jsxs37 } from "react/jsx-runtime";
9849
+ import { Fragment as Fragment15, jsx as jsx78, jsxs as jsxs36 } from "react/jsx-runtime";
9783
9850
  var UserDropdown = ({
9784
9851
  children,
9785
9852
  renderTrigger,
@@ -9808,14 +9875,14 @@ var UserDropdown = ({
9808
9875
  closeProfile
9809
9876
  };
9810
9877
  if (children) {
9811
- return /* @__PURE__ */ jsxs37(Fragment15, { children: [
9878
+ return /* @__PURE__ */ jsxs36(Fragment15, { children: [
9812
9879
  children(renderProps),
9813
- /* @__PURE__ */ jsx79(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9880
+ /* @__PURE__ */ jsx78(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9814
9881
  ] });
9815
9882
  }
9816
9883
  if (renderTrigger || renderDropdown) {
9817
- return /* @__PURE__ */ jsxs37(Fragment15, { children: [
9818
- renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ jsx79(
9884
+ return /* @__PURE__ */ jsxs36(Fragment15, { children: [
9885
+ renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ jsx78(
9819
9886
  BaseUserDropdown_default,
9820
9887
  {
9821
9888
  user,
@@ -9825,11 +9892,11 @@ var UserDropdown = ({
9825
9892
  ...rest
9826
9893
  }
9827
9894
  ),
9828
- /* @__PURE__ */ jsx79(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9895
+ /* @__PURE__ */ jsx78(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9829
9896
  ] });
9830
9897
  }
9831
- return /* @__PURE__ */ jsxs37(Fragment15, { children: [
9832
- /* @__PURE__ */ jsx79(
9898
+ return /* @__PURE__ */ jsxs36(Fragment15, { children: [
9899
+ /* @__PURE__ */ jsx78(
9833
9900
  BaseUserDropdown_default,
9834
9901
  {
9835
9902
  user,
@@ -9839,7 +9906,7 @@ var UserDropdown = ({
9839
9906
  ...rest
9840
9907
  }
9841
9908
  ),
9842
- isProfileOpen && /* @__PURE__ */ jsx79(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9909
+ isProfileOpen && /* @__PURE__ */ jsx78(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9843
9910
  ] });
9844
9911
  };
9845
9912
  var UserDropdown_default = UserDropdown;
@@ -9862,9 +9929,9 @@ import { cx as cx26 } from "@emotion/css";
9862
9929
  import { useState as useState21 } from "react";
9863
9930
 
9864
9931
  // src/components/primitives/Icons/Building.tsx
9865
- import { jsx as jsx80, jsxs as jsxs38 } from "react/jsx-runtime";
9866
- 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: [
9867
- /* @__PURE__ */ jsx80(
9932
+ import { jsx as jsx79, jsxs as jsxs37 } from "react/jsx-runtime";
9933
+ 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: [
9934
+ /* @__PURE__ */ jsx79(
9868
9935
  "path",
9869
9936
  {
9870
9937
  d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",
@@ -9874,25 +9941,25 @@ var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PU
9874
9941
  strokeLinejoin: "round"
9875
9942
  }
9876
9943
  ),
9877
- /* @__PURE__ */ jsx80("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9878
- /* @__PURE__ */ jsx80("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9879
- /* @__PURE__ */ jsx80("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9880
- /* @__PURE__ */ jsx80("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9881
- /* @__PURE__ */ jsx80("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9882
- /* @__PURE__ */ jsx80("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
9944
+ /* @__PURE__ */ jsx79("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9945
+ /* @__PURE__ */ jsx79("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9946
+ /* @__PURE__ */ jsx79("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9947
+ /* @__PURE__ */ jsx79("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9948
+ /* @__PURE__ */ jsx79("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9949
+ /* @__PURE__ */ jsx79("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
9883
9950
  ] });
9884
9951
  Building.displayName = "Building";
9885
9952
  var Building_default = Building;
9886
9953
 
9887
9954
  // src/components/primitives/Icons/Check.tsx
9888
- import { jsx as jsx81 } from "react/jsx-runtime";
9889
- 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" }) });
9955
+ import { jsx as jsx80 } from "react/jsx-runtime";
9956
+ 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" }) });
9890
9957
  Check.displayName = "Check";
9891
9958
  var Check_default = Check;
9892
9959
 
9893
9960
  // src/components/primitives/Icons/ChevronDown.tsx
9894
- import { jsx as jsx82 } from "react/jsx-runtime";
9895
- 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" }) });
9961
+ import { jsx as jsx81 } from "react/jsx-runtime";
9962
+ 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" }) });
9896
9963
  ChevronDown.displayName = "ChevronDown";
9897
9964
  var ChevronDown_default = ChevronDown;
9898
9965
 
@@ -10122,7 +10189,7 @@ var useStyles23 = (theme, colorScheme) => {
10122
10189
  var BaseOrganizationSwitcher_styles_default = useStyles23;
10123
10190
 
10124
10191
  // src/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.tsx
10125
- import { Fragment as Fragment16, jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
10192
+ import { Fragment as Fragment16, jsx as jsx82, jsxs as jsxs38 } from "react/jsx-runtime";
10126
10193
  var BaseOrganizationSwitcher = ({
10127
10194
  organizations,
10128
10195
  currentOrganization,
@@ -10175,8 +10242,8 @@ var BaseOrganizationSwitcher = ({
10175
10242
  const switchableOrganizations = organizations.filter(
10176
10243
  (org) => org.id !== currentOrganization?.id
10177
10244
  );
10178
- const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ jsxs39(Fragment16, { children: [
10179
- /* @__PURE__ */ jsx83(
10245
+ const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ jsxs38(Fragment16, { children: [
10246
+ /* @__PURE__ */ jsx82(
10180
10247
  Avatar,
10181
10248
  {
10182
10249
  variant: "square",
@@ -10186,24 +10253,24 @@ var BaseOrganizationSwitcher = ({
10186
10253
  alt: `${organization.name} avatar`
10187
10254
  }
10188
10255
  ),
10189
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.organizationInfo), children: [
10190
- /* @__PURE__ */ jsx83(Typography_default, { variant: "body2", fontWeight: "medium", className: cx26(styles.organizationName), children: organization.name }),
10191
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.organizationMeta), children: [
10192
- showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsxs39("span", { children: [
10256
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.organizationInfo), children: [
10257
+ /* @__PURE__ */ jsx82(Typography_default, { variant: "body2", fontWeight: "medium", className: cx26(styles.organizationName), children: organization.name }),
10258
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.organizationMeta), children: [
10259
+ showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsxs38("span", { children: [
10193
10260
  organization.memberCount,
10194
10261
  " ",
10195
10262
  organization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members")
10196
10263
  ] }),
10197
- showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsx83("span", { children: " \u2022 " }),
10198
- showRole && organization.role && /* @__PURE__ */ jsx83("span", { className: cx26(styles.roleCapitalized), children: organization.role })
10264
+ showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsx82("span", { children: " \u2022 " }),
10265
+ showRole && organization.role && /* @__PURE__ */ jsx82("span", { className: cx26(styles.roleCapitalized), children: organization.role })
10199
10266
  ] })
10200
10267
  ] }),
10201
- isSelected && /* @__PURE__ */ jsx83(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10268
+ isSelected && /* @__PURE__ */ jsx82(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10202
10269
  ] });
10203
- 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") }) });
10204
- const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ jsx83("div", { className: cx26(styles.errorContainer), children: /* @__PURE__ */ jsx83(Typography_default, { variant: "caption", className: cx26(styles.errorText), children: errorMessage }) });
10205
- return /* @__PURE__ */ jsxs39("div", { className: cx26(styles.root, className), style, children: [
10206
- /* @__PURE__ */ jsxs39(
10270
+ 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") }) });
10271
+ const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ jsx82("div", { className: cx26(styles.errorContainer), children: /* @__PURE__ */ jsx82(Typography_default, { variant: "caption", className: cx26(styles.errorText), children: errorMessage }) });
10272
+ return /* @__PURE__ */ jsxs38("div", { className: cx26(styles.root, className), style, children: [
10273
+ /* @__PURE__ */ jsxs38(
10207
10274
  Button_default,
10208
10275
  {
10209
10276
  ref: refs.setReference,
@@ -10213,8 +10280,8 @@ var BaseOrganizationSwitcher = ({
10213
10280
  size: "medium",
10214
10281
  ...getReferenceProps(),
10215
10282
  children: [
10216
- currentOrganization ? /* @__PURE__ */ jsxs39(Fragment16, { children: [
10217
- /* @__PURE__ */ jsx83(
10283
+ currentOrganization ? /* @__PURE__ */ jsxs38(Fragment16, { children: [
10284
+ /* @__PURE__ */ jsx82(
10218
10285
  Avatar,
10219
10286
  {
10220
10287
  variant: "square",
@@ -10224,18 +10291,18 @@ var BaseOrganizationSwitcher = ({
10224
10291
  alt: `${currentOrganization.name} avatar`
10225
10292
  }
10226
10293
  ),
10227
- showTriggerLabel && /* @__PURE__ */ jsx83(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: currentOrganization.name })
10228
- ] }) : /* @__PURE__ */ jsxs39(Fragment16, { children: [
10229
- /* @__PURE__ */ jsx83(Building_default, { width: avatarSize, height: avatarSize }),
10230
- showTriggerLabel && /* @__PURE__ */ jsx83(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10294
+ showTriggerLabel && /* @__PURE__ */ jsx82(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: currentOrganization.name })
10295
+ ] }) : /* @__PURE__ */ jsxs38(Fragment16, { children: [
10296
+ /* @__PURE__ */ jsx82(Building_default, { width: avatarSize, height: avatarSize }),
10297
+ showTriggerLabel && /* @__PURE__ */ jsx82(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10231
10298
  ] }),
10232
- /* @__PURE__ */ jsx83(ChevronDown_default, { width: "16", height: "16" })
10299
+ /* @__PURE__ */ jsx82(ChevronDown_default, { width: "16", height: "16" })
10233
10300
  ]
10234
10301
  }
10235
10302
  ),
10236
- 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: [
10237
- currentOrganization && /* @__PURE__ */ jsxs39("div", { className: cx26(styles.header), children: [
10238
- /* @__PURE__ */ jsx83(
10303
+ 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: [
10304
+ currentOrganization && /* @__PURE__ */ jsxs38("div", { className: cx26(styles.header), children: [
10305
+ /* @__PURE__ */ jsx82(
10239
10306
  Avatar,
10240
10307
  {
10241
10308
  variant: "square",
@@ -10245,10 +10312,10 @@ var BaseOrganizationSwitcher = ({
10245
10312
  alt: `${currentOrganization.name} avatar`
10246
10313
  }
10247
10314
  ),
10248
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.headerInfo), children: [
10249
- /* @__PURE__ */ jsx83(Typography_default, { noWrap: true, className: cx26(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10250
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.headerMeta), children: [
10251
- showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ jsxs39(
10315
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.headerInfo), children: [
10316
+ /* @__PURE__ */ jsx82(Typography_default, { noWrap: true, className: cx26(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10317
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.headerMeta), children: [
10318
+ showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ jsxs38(
10252
10319
  Typography_default,
10253
10320
  {
10254
10321
  noWrap: true,
@@ -10258,17 +10325,17 @@ var BaseOrganizationSwitcher = ({
10258
10325
  currentOrganization.memberCount,
10259
10326
  " ",
10260
10327
  currentOrganization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members"),
10261
- showRole && currentOrganization.role && /* @__PURE__ */ jsxs39("span", { children: [
10328
+ showRole && currentOrganization.role && /* @__PURE__ */ jsxs38("span", { children: [
10262
10329
  " \u2022 ",
10263
10330
  currentOrganization.role
10264
10331
  ] })
10265
10332
  ]
10266
10333
  }
10267
10334
  ),
10268
- 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 })
10335
+ 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 })
10269
10336
  ] })
10270
10337
  ] }),
10271
- onManageProfile && /* @__PURE__ */ jsx83(
10338
+ onManageProfile && /* @__PURE__ */ jsx82(
10272
10339
  Button_default,
10273
10340
  {
10274
10341
  onClick: onManageProfile,
@@ -10277,7 +10344,7 @@ var BaseOrganizationSwitcher = ({
10277
10344
  size: "small",
10278
10345
  "aria-label": "Manage Organization Profile",
10279
10346
  className: cx26(styles.manageButton),
10280
- endIcon: /* @__PURE__ */ jsxs39(
10347
+ endIcon: /* @__PURE__ */ jsxs38(
10281
10348
  "svg",
10282
10349
  {
10283
10350
  width: "16",
@@ -10289,8 +10356,8 @@ var BaseOrganizationSwitcher = ({
10289
10356
  strokeLinecap: "round",
10290
10357
  strokeLinejoin: "round",
10291
10358
  children: [
10292
- /* @__PURE__ */ jsx83("circle", { cx: "12", cy: "12", r: "3" }),
10293
- /* @__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" })
10359
+ /* @__PURE__ */ jsx82("circle", { cx: "12", cy: "12", r: "3" }),
10360
+ /* @__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" })
10294
10361
  ]
10295
10362
  }
10296
10363
  ),
@@ -10298,20 +10365,20 @@ var BaseOrganizationSwitcher = ({
10298
10365
  }
10299
10366
  )
10300
10367
  ] }),
10301
- organizations.length > 1 && /* @__PURE__ */ jsx83(
10368
+ organizations.length > 1 && /* @__PURE__ */ jsx82(
10302
10369
  "div",
10303
10370
  {
10304
10371
  className: cx26(styles.header, styles.sectionHeaderContainer),
10305
10372
  style: {
10306
10373
  borderTop: currentOrganization ? `1px solid ${theme.vars.colors.border}` : "none"
10307
10374
  },
10308
- children: /* @__PURE__ */ jsx83(Typography_default, { variant: "caption", fontWeight: 600, className: cx26(styles.sectionHeader), children: t("organization.switcher.switch.organization") })
10375
+ children: /* @__PURE__ */ jsx82(Typography_default, { variant: "caption", fontWeight: 600, className: cx26(styles.sectionHeader), children: t("organization.switcher.switch.organization") })
10309
10376
  }
10310
10377
  ),
10311
- /* @__PURE__ */ jsx83("div", { className: cx26(styles.menu), children: loading ? renderLoading ? renderLoading() : defaultRenderLoading2() : error ? renderError ? renderError(error) : defaultRenderError2(error) : /* @__PURE__ */ jsxs39(Fragment16, { children: [
10378
+ /* @__PURE__ */ jsx82("div", { className: cx26(styles.menu), children: loading ? renderLoading ? renderLoading() : defaultRenderLoading2() : error ? renderError ? renderError(error) : defaultRenderError2(error) : /* @__PURE__ */ jsxs38(Fragment16, { children: [
10312
10379
  switchableOrganizations.map((organization) => {
10313
10380
  const isSelected = false;
10314
- return /* @__PURE__ */ jsx83(
10381
+ return /* @__PURE__ */ jsx82(
10315
10382
  Button_default,
10316
10383
  {
10317
10384
  onClick: () => handleOrganizationSwitch(organization),
@@ -10329,10 +10396,10 @@ var BaseOrganizationSwitcher = ({
10329
10396
  organization.id
10330
10397
  );
10331
10398
  }),
10332
- menuItems.length > 0 && /* @__PURE__ */ jsxs39(Fragment16, { children: [
10333
- /* @__PURE__ */ jsx83("div", { className: cx26(styles.menuDivider) }),
10399
+ menuItems.length > 0 && /* @__PURE__ */ jsxs38(Fragment16, { children: [
10400
+ /* @__PURE__ */ jsx82("div", { className: cx26(styles.menuDivider) }),
10334
10401
  menuItems.map(
10335
- (item, index) => /* @__PURE__ */ jsx83("div", { children: item.href ? /* @__PURE__ */ jsxs39(
10402
+ (item, index) => /* @__PURE__ */ jsx82("div", { children: item.href ? /* @__PURE__ */ jsxs38(
10336
10403
  "a",
10337
10404
  {
10338
10405
  href: item.href,
@@ -10346,10 +10413,10 @@ var BaseOrganizationSwitcher = ({
10346
10413
  onBlur: () => setHoveredItemIndex(null),
10347
10414
  children: [
10348
10415
  item.icon,
10349
- /* @__PURE__ */ jsx83("span", { children: item.label })
10416
+ /* @__PURE__ */ jsx82("span", { children: item.label })
10350
10417
  ]
10351
10418
  }
10352
- ) : /* @__PURE__ */ jsx83(
10419
+ ) : /* @__PURE__ */ jsx82(
10353
10420
  Button_default,
10354
10421
  {
10355
10422
  onClick: () => handleMenuItemClick(item),
@@ -10523,7 +10590,7 @@ var useStyles24 = (theme, colorScheme) => {
10523
10590
  var BaseCreateOrganization_styles_default = useStyles24;
10524
10591
 
10525
10592
  // src/components/presentation/CreateOrganization/BaseCreateOrganization.tsx
10526
- import { jsx as jsx84, jsxs as jsxs40 } from "react/jsx-runtime";
10593
+ import { jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
10527
10594
  var BaseCreateOrganization = ({
10528
10595
  cardLayout = true,
10529
10596
  className = "",
@@ -10610,13 +10677,13 @@ var BaseCreateOrganization = ({
10610
10677
  console.error("Form submission error:", submitError);
10611
10678
  }
10612
10679
  };
10613
- const createOrganizationContent = /* @__PURE__ */ jsx84("div", { className: cx27(styles.root, cardLayout && styles.card, className), style, children: /* @__PURE__ */ jsxs40("div", { className: cx27(styles.content), children: [
10614
- /* @__PURE__ */ jsxs40("form", { id: "create-organization-form", className: cx27(styles.form), onSubmit: handleSubmit, children: [
10615
- error && /* @__PURE__ */ jsxs40(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10616
- /* @__PURE__ */ jsx84(Alert_default.Title, { children: "Error" }),
10617
- /* @__PURE__ */ jsx84(Alert_default.Description, { children: error })
10680
+ const createOrganizationContent = /* @__PURE__ */ jsx83("div", { className: cx27(styles.root, cardLayout && styles.card, className), style, children: /* @__PURE__ */ jsxs39("div", { className: cx27(styles.content), children: [
10681
+ /* @__PURE__ */ jsxs39("form", { id: "create-organization-form", className: cx27(styles.form), onSubmit: handleSubmit, children: [
10682
+ error && /* @__PURE__ */ jsxs39(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10683
+ /* @__PURE__ */ jsx83(Alert_default.Title, { children: "Error" }),
10684
+ /* @__PURE__ */ jsx83(Alert_default.Description, { children: error })
10618
10685
  ] }),
10619
- /* @__PURE__ */ jsx84("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx84(
10686
+ /* @__PURE__ */ jsx83("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx83(
10620
10687
  TextField_default,
10621
10688
  {
10622
10689
  label: `${t("organization.create.name.label")}`,
@@ -10629,7 +10696,7 @@ var BaseCreateOrganization = ({
10629
10696
  className: cx27(styles.input)
10630
10697
  }
10631
10698
  ) }),
10632
- /* @__PURE__ */ jsx84("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx84(
10699
+ /* @__PURE__ */ jsx83("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx83(
10633
10700
  TextField_default,
10634
10701
  {
10635
10702
  label: `${t("organization.create.handle.label") || "Organization Handle"}`,
@@ -10643,9 +10710,9 @@ var BaseCreateOrganization = ({
10643
10710
  className: cx27(styles.input)
10644
10711
  }
10645
10712
  ) }),
10646
- /* @__PURE__ */ jsx84("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsxs40(FormControl_default, { error: formErrors.description, children: [
10647
- /* @__PURE__ */ jsx84(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10648
- /* @__PURE__ */ jsx84(
10713
+ /* @__PURE__ */ jsx83("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsxs39(FormControl_default, { error: formErrors.description, children: [
10714
+ /* @__PURE__ */ jsx83(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10715
+ /* @__PURE__ */ jsx83(
10649
10716
  "textarea",
10650
10717
  {
10651
10718
  className: cx27(styles.textarea, formErrors.description && styles.textareaError),
@@ -10659,15 +10726,15 @@ var BaseCreateOrganization = ({
10659
10726
  ] }) }),
10660
10727
  renderAdditionalFields && renderAdditionalFields()
10661
10728
  ] }),
10662
- /* @__PURE__ */ jsxs40("div", { className: cx27(styles.actions), children: [
10663
- onCancel && /* @__PURE__ */ jsx84(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10664
- /* @__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") })
10729
+ /* @__PURE__ */ jsxs39("div", { className: cx27(styles.actions), children: [
10730
+ onCancel && /* @__PURE__ */ jsx83(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10731
+ /* @__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") })
10665
10732
  ] })
10666
10733
  ] }) });
10667
10734
  if (mode === "popup") {
10668
- return /* @__PURE__ */ jsx84(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs40(Dialog_default.Content, { children: [
10669
- /* @__PURE__ */ jsx84(Dialog_default.Heading, { children: title }),
10670
- /* @__PURE__ */ jsx84("div", { className: styles.popup, children: createOrganizationContent })
10735
+ return /* @__PURE__ */ jsx83(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs39(Dialog_default.Content, { children: [
10736
+ /* @__PURE__ */ jsx83(Dialog_default.Heading, { children: title }),
10737
+ /* @__PURE__ */ jsx83("div", { className: styles.popup, children: createOrganizationContent })
10671
10738
  ] }) });
10672
10739
  }
10673
10740
  return createOrganizationContent;
@@ -10703,7 +10770,7 @@ var createOrganization = async ({ fetcher, ...requestConfig }) => {
10703
10770
  var createOrganization_default = createOrganization;
10704
10771
 
10705
10772
  // src/components/presentation/CreateOrganization/CreateOrganization.tsx
10706
- import { Fragment as Fragment17, jsx as jsx85 } from "react/jsx-runtime";
10773
+ import { Fragment as Fragment17, jsx as jsx84 } from "react/jsx-runtime";
10707
10774
  var CreateOrganization = ({
10708
10775
  onCreateOrganization,
10709
10776
  fallback = null,
@@ -10719,7 +10786,7 @@ var CreateOrganization = ({
10719
10786
  return fallback;
10720
10787
  }
10721
10788
  if (!isSignedIn) {
10722
- return /* @__PURE__ */ jsx85(Fragment17, {});
10789
+ return /* @__PURE__ */ jsx84(Fragment17, {});
10723
10790
  }
10724
10791
  const parentId = defaultParentId || currentOrganization?.id || "";
10725
10792
  const handleSubmit = async (payload) => {
@@ -10753,7 +10820,7 @@ var CreateOrganization = ({
10753
10820
  setLoading(false);
10754
10821
  }
10755
10822
  };
10756
- return /* @__PURE__ */ jsx85(
10823
+ return /* @__PURE__ */ jsx84(
10757
10824
  BaseCreateOrganization,
10758
10825
  {
10759
10826
  onSubmit: handleSubmit,
@@ -10935,7 +11002,7 @@ var useStyles25 = (theme, colorScheme, disabled, readOnly, hasError) => {
10935
11002
  var KeyValueInput_styles_default = useStyles25;
10936
11003
 
10937
11004
  // src/components/primitives/KeyValueInput/KeyValueInput.tsx
10938
- import { jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
11005
+ import { jsx as jsx85, jsxs as jsxs40 } from "react/jsx-runtime";
10939
11006
  var KeyValueInput = ({
10940
11007
  className = "",
10941
11008
  disabled = false,
@@ -11010,10 +11077,10 @@ var KeyValueInput = ({
11010
11077
  );
11011
11078
  const canAddMore = !maxPairs || pairs.length < maxPairs;
11012
11079
  const isAddDisabled = disabled || readOnly || !canAddMore || !newKey.trim() || !newValue.trim();
11013
- return /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input")), styles.container, className), children: [
11014
- label && /* @__PURE__ */ jsxs41("label", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "label")), styles.label), children: [
11080
+ return /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input")), styles.container, className), children: [
11081
+ label && /* @__PURE__ */ jsxs40("label", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "label")), styles.label), children: [
11015
11082
  label,
11016
- required && /* @__PURE__ */ jsx86(
11083
+ required && /* @__PURE__ */ jsx85(
11017
11084
  "span",
11018
11085
  {
11019
11086
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "required")), styles.requiredIndicator),
@@ -11021,13 +11088,13 @@ var KeyValueInput = ({
11021
11088
  }
11022
11089
  )
11023
11090
  ] }),
11024
- /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "pairs-list")), styles.pairsList), children: [
11025
- 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(
11091
+ /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "pairs-list")), styles.pairsList), children: [
11092
+ 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(
11026
11093
  "div",
11027
11094
  {
11028
11095
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "readonly-pair")), styles.readOnlyPair),
11029
11096
  children: [
11030
- /* @__PURE__ */ jsxs41(
11097
+ /* @__PURE__ */ jsxs40(
11031
11098
  "span",
11032
11099
  {
11033
11100
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "readonly-key")), styles.readOnlyKey),
@@ -11037,7 +11104,7 @@ var KeyValueInput = ({
11037
11104
  ]
11038
11105
  }
11039
11106
  ),
11040
- /* @__PURE__ */ jsx86(
11107
+ /* @__PURE__ */ jsx85(
11041
11108
  "span",
11042
11109
  {
11043
11110
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "readonly-value")), styles.readOnlyValue),
@@ -11047,12 +11114,12 @@ var KeyValueInput = ({
11047
11114
  ]
11048
11115
  },
11049
11116
  `${pair.key}-${index}`
11050
- )) : pairs.map((pair, index) => /* @__PURE__ */ jsxs41(
11117
+ )) : pairs.map((pair, index) => /* @__PURE__ */ jsxs40(
11051
11118
  "div",
11052
11119
  {
11053
11120
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "pair-row")), styles.pairRow),
11054
11121
  children: [
11055
- /* @__PURE__ */ jsx86(
11122
+ /* @__PURE__ */ jsx85(
11056
11123
  TextField_default,
11057
11124
  {
11058
11125
  placeholder: keyPlaceholder,
@@ -11063,7 +11130,7 @@ var KeyValueInput = ({
11063
11130
  "aria-label": `${keyLabel} ${index + 1}`
11064
11131
  }
11065
11132
  ),
11066
- /* @__PURE__ */ jsx86(
11133
+ /* @__PURE__ */ jsx85(
11067
11134
  TextField_default,
11068
11135
  {
11069
11136
  placeholder: valuePlaceholder,
@@ -11074,7 +11141,7 @@ var KeyValueInput = ({
11074
11141
  "aria-label": `${valueLabel} ${index + 1}`
11075
11142
  }
11076
11143
  ),
11077
- !readOnly && /* @__PURE__ */ jsx86(
11144
+ !readOnly && /* @__PURE__ */ jsx85(
11078
11145
  "button",
11079
11146
  {
11080
11147
  type: "button",
@@ -11082,15 +11149,15 @@ var KeyValueInput = ({
11082
11149
  disabled,
11083
11150
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "remove-button")), styles.removeButton),
11084
11151
  "aria-label": `${removeButtonText} ${pair.key}`,
11085
- children: /* @__PURE__ */ jsx86(X_default, { width: 16, height: 16 })
11152
+ children: /* @__PURE__ */ jsx85(X_default, { width: 16, height: 16 })
11086
11153
  }
11087
11154
  )
11088
11155
  ]
11089
11156
  },
11090
11157
  `${pair.key}-${index}`
11091
11158
  )),
11092
- !readOnly && /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "add-row")), styles.addRow), children: [
11093
- /* @__PURE__ */ jsx86(
11159
+ !readOnly && /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "add-row")), styles.addRow), children: [
11160
+ /* @__PURE__ */ jsx85(
11094
11161
  TextField_default,
11095
11162
  {
11096
11163
  placeholder: keyPlaceholder,
@@ -11101,7 +11168,7 @@ var KeyValueInput = ({
11101
11168
  "aria-label": "New key"
11102
11169
  }
11103
11170
  ),
11104
- /* @__PURE__ */ jsx86(
11171
+ /* @__PURE__ */ jsx85(
11105
11172
  TextField_default,
11106
11173
  {
11107
11174
  placeholder: valuePlaceholder,
@@ -11117,7 +11184,7 @@ var KeyValueInput = ({
11117
11184
  }
11118
11185
  }
11119
11186
  ),
11120
- /* @__PURE__ */ jsx86(
11187
+ /* @__PURE__ */ jsx85(
11121
11188
  "button",
11122
11189
  {
11123
11190
  type: "button",
@@ -11125,13 +11192,13 @@ var KeyValueInput = ({
11125
11192
  disabled: isAddDisabled,
11126
11193
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "add-button")), styles.addButton),
11127
11194
  "aria-label": "Add new key-value pair",
11128
- children: /* @__PURE__ */ jsx86(Plus_default, { width: 16, height: 16 })
11195
+ children: /* @__PURE__ */ jsx85(Plus_default, { width: 16, height: 16 })
11129
11196
  }
11130
11197
  )
11131
11198
  ] })
11132
11199
  ] }),
11133
- (helperText || error) && /* @__PURE__ */ jsx86("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "helper-text")), styles.helperText), children: error || helperText }),
11134
- maxPairs && /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "counter")), styles.counterText), children: [
11200
+ (helperText || error) && /* @__PURE__ */ jsx85("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "helper-text")), styles.helperText), children: error || helperText }),
11201
+ maxPairs && /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "counter")), styles.counterText), children: [
11135
11202
  pairs.length,
11136
11203
  " of ",
11137
11204
  maxPairs,
@@ -11298,7 +11365,7 @@ var useStyles26 = (theme, colorScheme) => {
11298
11365
  var BaseOrganizationProfile_styles_default = useStyles26;
11299
11366
 
11300
11367
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
11301
- import { Fragment as Fragment18, jsx as jsx87, jsxs as jsxs42 } from "react/jsx-runtime";
11368
+ import { Fragment as Fragment18, jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
11302
11369
  var BaseOrganizationProfile = ({
11303
11370
  fallback = null,
11304
11371
  className = "",
@@ -11349,7 +11416,7 @@ var BaseOrganizationProfile = ({
11349
11416
  const styles = BaseOrganizationProfile_styles_default(theme, colorScheme);
11350
11417
  const [editedOrganization, setEditedOrganization] = useState25(organization);
11351
11418
  const [editingFields, setEditingFields] = useState25({});
11352
- const PencilIcon = () => /* @__PURE__ */ jsx87(
11419
+ const PencilIcon = () => /* @__PURE__ */ jsx86(
11353
11420
  "svg",
11354
11421
  {
11355
11422
  width: "16",
@@ -11360,7 +11427,7 @@ var BaseOrganizationProfile = ({
11360
11427
  strokeWidth: "2",
11361
11428
  strokeLinecap: "round",
11362
11429
  strokeLinejoin: "round",
11363
- children: /* @__PURE__ */ jsx87("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
11430
+ children: /* @__PURE__ */ jsx86("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
11364
11431
  }
11365
11432
  );
11366
11433
  const toggleFieldEdit = useCallback14((fieldName) => {
@@ -11423,7 +11490,7 @@ var BaseOrganizationProfile = ({
11423
11490
  let fieldInput;
11424
11491
  if (key === "attributes") {
11425
11492
  const attributesValue = typeof fieldValue === "object" && fieldValue !== null ? fieldValue : {};
11426
- fieldInput = /* @__PURE__ */ jsx87(
11493
+ fieldInput = /* @__PURE__ */ jsx86(
11427
11494
  KeyValueInput_default,
11428
11495
  {
11429
11496
  value: attributesValue,
@@ -11461,26 +11528,26 @@ var BaseOrganizationProfile = ({
11461
11528
  }
11462
11529
  );
11463
11530
  } else {
11464
- fieldInput = /* @__PURE__ */ jsx87(TextField_default, { ...commonProps });
11531
+ fieldInput = /* @__PURE__ */ jsx86(TextField_default, { ...commonProps });
11465
11532
  }
11466
- return /* @__PURE__ */ jsxs42(Fragment18, { children: [
11467
- /* @__PURE__ */ jsx87("span", { className: cx29(styles.label), children: label }),
11468
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.value), children: fieldInput })
11533
+ return /* @__PURE__ */ jsxs41(Fragment18, { children: [
11534
+ /* @__PURE__ */ jsx86("span", { className: cx29(styles.label), children: label }),
11535
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.value), children: fieldInput })
11469
11536
  ] });
11470
11537
  }
11471
11538
  const hasValue = value !== void 0 && value !== null && value !== "";
11472
11539
  const isFieldEditable = editable && fieldEditable;
11473
11540
  let displayValue;
11474
11541
  if (hasValue) {
11475
- displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ jsx87(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11542
+ displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ jsx86(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11476
11543
  } else if (isFieldEditable) {
11477
11544
  displayValue = getFieldPlaceholder(key);
11478
11545
  } else {
11479
11546
  displayValue = "-";
11480
11547
  }
11481
- return /* @__PURE__ */ jsxs42(Fragment18, { children: [
11482
- /* @__PURE__ */ jsx87("span", { className: cx29(styles.label), children: label }),
11483
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.value, !hasValue && styles.valueEmpty), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ jsx87(
11548
+ return /* @__PURE__ */ jsxs41(Fragment18, { children: [
11549
+ /* @__PURE__ */ jsx86("span", { className: cx29(styles.label), children: label }),
11550
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.value, !hasValue && styles.valueEmpty), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ jsx86(
11484
11551
  Button_default,
11485
11552
  {
11486
11553
  onClick: onStartEdit,
@@ -11503,8 +11570,8 @@ var BaseOrganizationProfile = ({
11503
11570
  if (!shouldShow) {
11504
11571
  return null;
11505
11572
  }
11506
- return /* @__PURE__ */ jsxs42("div", { className: cx29(styles.field), children: [
11507
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.fieldContent), children: renderField(
11573
+ return /* @__PURE__ */ jsxs41("div", { className: cx29(styles.field), children: [
11574
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.fieldContent), children: renderField(
11508
11575
  field,
11509
11576
  isFieldEditing,
11510
11577
  (value) => {
@@ -11514,8 +11581,8 @@ var BaseOrganizationProfile = ({
11514
11581
  },
11515
11582
  () => toggleFieldEdit(field.key)
11516
11583
  ) }),
11517
- isFieldEditable && /* @__PURE__ */ jsx87("div", { className: cx29(styles.fieldActions), children: isFieldEditing ? /* @__PURE__ */ jsxs42(Fragment18, { children: [
11518
- /* @__PURE__ */ jsx87(
11584
+ isFieldEditable && /* @__PURE__ */ jsx86("div", { className: cx29(styles.fieldActions), children: isFieldEditing ? /* @__PURE__ */ jsxs41(Fragment18, { children: [
11585
+ /* @__PURE__ */ jsx86(
11519
11586
  Button_default,
11520
11587
  {
11521
11588
  onClick: () => handleFieldSave(field.key),
@@ -11526,7 +11593,7 @@ var BaseOrganizationProfile = ({
11526
11593
  children: saveButtonText
11527
11594
  }
11528
11595
  ),
11529
- /* @__PURE__ */ jsx87(
11596
+ /* @__PURE__ */ jsx86(
11530
11597
  Button_default,
11531
11598
  {
11532
11599
  onClick: () => handleFieldCancel(field.key),
@@ -11537,7 +11604,7 @@ var BaseOrganizationProfile = ({
11537
11604
  children: cancelButtonText
11538
11605
  }
11539
11606
  )
11540
- ] }) : hasValue && /* @__PURE__ */ jsx87(
11607
+ ] }) : hasValue && /* @__PURE__ */ jsx86(
11541
11608
  Button_default,
11542
11609
  {
11543
11610
  onClick: () => toggleFieldEdit(field.key),
@@ -11546,7 +11613,7 @@ var BaseOrganizationProfile = ({
11546
11613
  size: "small",
11547
11614
  title: "Edit field",
11548
11615
  className: cx29(styles.editButton),
11549
- children: /* @__PURE__ */ jsx87(PencilIcon, {})
11616
+ children: /* @__PURE__ */ jsx86(PencilIcon, {})
11550
11617
  }
11551
11618
  ) })
11552
11619
  ] }, field.key);
@@ -11554,23 +11621,23 @@ var BaseOrganizationProfile = ({
11554
11621
  if (!organization) {
11555
11622
  return fallback;
11556
11623
  }
11557
- const profileContent = /* @__PURE__ */ jsxs42(Card_default, { className: cx29(styles.root, cardLayout && styles.card, className), children: [
11558
- /* @__PURE__ */ jsxs42("div", { className: cx29(styles.header), children: [
11559
- /* @__PURE__ */ jsx87(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11560
- /* @__PURE__ */ jsxs42("div", { className: cx29(styles.orgInfo), children: [
11561
- /* @__PURE__ */ jsx87("h2", { className: cx29(styles.name), children: organization.name }),
11562
- organization.orgHandle && /* @__PURE__ */ jsxs42("p", { className: cx29(styles.handle), children: [
11624
+ const profileContent = /* @__PURE__ */ jsxs41(Card_default, { className: cx29(styles.root, cardLayout && styles.card, className), children: [
11625
+ /* @__PURE__ */ jsxs41("div", { className: cx29(styles.header), children: [
11626
+ /* @__PURE__ */ jsx86(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11627
+ /* @__PURE__ */ jsxs41("div", { className: cx29(styles.orgInfo), children: [
11628
+ /* @__PURE__ */ jsx86("h2", { className: cx29(styles.name), children: organization.name }),
11629
+ organization.orgHandle && /* @__PURE__ */ jsxs41("p", { className: cx29(styles.handle), children: [
11563
11630
  "@",
11564
11631
  organization.orgHandle
11565
11632
  ] })
11566
11633
  ] })
11567
11634
  ] }),
11568
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11635
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11569
11636
  ] });
11570
11637
  if (mode === "popup") {
11571
- return /* @__PURE__ */ jsx87(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
11572
- /* @__PURE__ */ jsx87(Dialog_default.Heading, { children: title }),
11573
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.popup), children: profileContent })
11638
+ return /* @__PURE__ */ jsx86(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs41(Dialog_default.Content, { children: [
11639
+ /* @__PURE__ */ jsx86(Dialog_default.Heading, { children: title }),
11640
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.popup), children: profileContent })
11574
11641
  ] }) });
11575
11642
  }
11576
11643
  return profileContent;
@@ -11639,7 +11706,7 @@ var updateOrganization = async ({
11639
11706
  var updateOrganization_default = updateOrganization;
11640
11707
 
11641
11708
  // src/components/presentation/OrganizationProfile/OrganizationProfile.tsx
11642
- import { jsx as jsx88 } from "react/jsx-runtime";
11709
+ import { jsx as jsx87 } from "react/jsx-runtime";
11643
11710
  var OrganizationProfile = ({
11644
11711
  organizationId,
11645
11712
  mode = "default",
@@ -11647,8 +11714,8 @@ var OrganizationProfile = ({
11647
11714
  onOpenChange,
11648
11715
  onUpdate,
11649
11716
  popupTitle,
11650
- loadingFallback = /* @__PURE__ */ jsx88("div", { children: "Loading organization..." }),
11651
- errorFallback = /* @__PURE__ */ jsx88("div", { children: "Failed to load organization data" }),
11717
+ loadingFallback = /* @__PURE__ */ jsx87("div", { children: "Loading organization..." }),
11718
+ errorFallback = /* @__PURE__ */ jsx87("div", { children: "Failed to load organization data" }),
11652
11719
  ...rest
11653
11720
  }) => {
11654
11721
  const { baseUrl } = useAsgardeo_default();
@@ -11699,7 +11766,7 @@ var OrganizationProfile = ({
11699
11766
  throw err;
11700
11767
  }
11701
11768
  };
11702
- return /* @__PURE__ */ jsx88(
11769
+ return /* @__PURE__ */ jsx87(
11703
11770
  BaseOrganizationProfile_default,
11704
11771
  {
11705
11772
  organization,
@@ -11949,21 +12016,21 @@ var useStyles27 = (theme, colorScheme) => {
11949
12016
  var BaseOrganizationList_styles_default = useStyles27;
11950
12017
 
11951
12018
  // src/components/presentation/OrganizationList/BaseOrganizationList.tsx
11952
- import { jsx as jsx89, jsxs as jsxs43 } from "react/jsx-runtime";
12019
+ import { jsx as jsx88, jsxs as jsxs42 } from "react/jsx-runtime";
11953
12020
  var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect, showStatus) => {
11954
- return /* @__PURE__ */ jsxs43("div", { className: cx30(styles.organizationItem), children: [
11955
- /* @__PURE__ */ jsxs43("div", { className: cx30(styles.organizationContent), children: [
11956
- /* @__PURE__ */ jsx89(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
11957
- /* @__PURE__ */ jsxs43("div", { className: cx30(styles.organizationInfo), children: [
11958
- /* @__PURE__ */ jsx89(Typography_default, { variant: "h6", className: cx30(styles.organizationName), children: organization.name }),
11959
- /* @__PURE__ */ jsxs43(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationHandle), children: [
12021
+ return /* @__PURE__ */ jsxs42("div", { className: cx30(styles.organizationItem), children: [
12022
+ /* @__PURE__ */ jsxs42("div", { className: cx30(styles.organizationContent), children: [
12023
+ /* @__PURE__ */ jsx88(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
12024
+ /* @__PURE__ */ jsxs42("div", { className: cx30(styles.organizationInfo), children: [
12025
+ /* @__PURE__ */ jsx88(Typography_default, { variant: "h6", className: cx30(styles.organizationName), children: organization.name }),
12026
+ /* @__PURE__ */ jsxs42(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationHandle), children: [
11960
12027
  "@",
11961
12028
  organization.orgHandle
11962
12029
  ] }),
11963
- showStatus && /* @__PURE__ */ jsxs43(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationStatus), children: [
12030
+ showStatus && /* @__PURE__ */ jsxs42(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationStatus), children: [
11964
12031
  t("organization.switcher.status.label"),
11965
12032
  " ",
11966
- /* @__PURE__ */ jsx89(
12033
+ /* @__PURE__ */ jsx88(
11967
12034
  "span",
11968
12035
  {
11969
12036
  className: cx30(
@@ -11976,7 +12043,7 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
11976
12043
  ] })
11977
12044
  ] })
11978
12045
  ] }),
11979
- organization.canSwitch && /* @__PURE__ */ jsx89("div", { className: cx30(styles.organizationActions), children: /* @__PURE__ */ jsx89(
12046
+ organization.canSwitch && /* @__PURE__ */ jsx88("div", { className: cx30(styles.organizationActions), children: /* @__PURE__ */ jsx88(
11980
12047
  Button_default,
11981
12048
  {
11982
12049
  onClick: (e) => {
@@ -11990,17 +12057,17 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
11990
12057
  ) })
11991
12058
  ] }, organization.id);
11992
12059
  };
11993
- var defaultRenderLoading = (t, styles) => /* @__PURE__ */ jsxs43("div", { className: cx30(styles.loadingContainer), children: [
11994
- /* @__PURE__ */ jsx89(Spinner_default, { size: "medium" }),
11995
- /* @__PURE__ */ jsx89(Typography_default, { variant: "body1", color: "textSecondary", className: cx30(styles.loadingText), children: t("organization.switcher.loading.organizations") })
12060
+ var defaultRenderLoading = (t, styles) => /* @__PURE__ */ jsxs42("div", { className: cx30(styles.loadingContainer), children: [
12061
+ /* @__PURE__ */ jsx88(Spinner_default, { size: "medium" }),
12062
+ /* @__PURE__ */ jsx88(Typography_default, { variant: "body1", color: "textSecondary", className: cx30(styles.loadingText), children: t("organization.switcher.loading.organizations") })
11996
12063
  ] });
11997
- var defaultRenderError = (error, t, styles) => /* @__PURE__ */ jsx89("div", { className: cx30(styles.errorContainer), children: /* @__PURE__ */ jsxs43(Typography_default, { variant: "body1", color: "error", children: [
11998
- /* @__PURE__ */ jsx89("strong", { children: t("organization.switcher.error.prefix") }),
12064
+ var defaultRenderError = (error, t, styles) => /* @__PURE__ */ jsx88("div", { className: cx30(styles.errorContainer), children: /* @__PURE__ */ jsxs42(Typography_default, { variant: "body1", color: "error", children: [
12065
+ /* @__PURE__ */ jsx88("strong", { children: t("organization.switcher.error.prefix") }),
11999
12066
  " ",
12000
12067
  error
12001
12068
  ] }) });
12002
- 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") });
12003
- 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") }) });
12069
+ 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") });
12070
+ 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") }) });
12004
12071
  var BaseOrganizationList = ({
12005
12072
  className = "",
12006
12073
  allOrganizations,
@@ -12043,53 +12110,53 @@ var BaseOrganizationList = ({
12043
12110
  const renderLoadMoreWithStyles = renderLoadMore || ((onLoadMore, isLoading2) => defaultRenderLoadMore(onLoadMore, isLoading2, t, styles));
12044
12111
  const renderOrganizationWithStyles = renderOrganization || ((org) => defaultRenderOrganization(org, styles, t, onOrganizationSelect, showStatus));
12045
12112
  if (isLoading && organizationsWithSwitchAccess?.length === 0) {
12046
- const loadingContent = /* @__PURE__ */ jsx89("div", { className: cx30(styles.root, className), style, children: renderLoadingWithStyles() });
12113
+ const loadingContent = /* @__PURE__ */ jsx88("div", { className: cx30(styles.root, className), style, children: renderLoadingWithStyles() });
12047
12114
  if (mode === "popup") {
12048
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12049
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12050
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: loadingContent })
12115
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12116
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12117
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: loadingContent })
12051
12118
  ] }) });
12052
12119
  }
12053
12120
  return loadingContent;
12054
12121
  }
12055
12122
  if (error && organizationsWithSwitchAccess?.length === 0) {
12056
- const errorContent = /* @__PURE__ */ jsx89("div", { className: cx30(styles.root, className), style, children: renderErrorWithStyles(error) });
12123
+ const errorContent = /* @__PURE__ */ jsx88("div", { className: cx30(styles.root, className), style, children: renderErrorWithStyles(error) });
12057
12124
  if (mode === "popup") {
12058
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12059
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12060
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: errorContent })
12125
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12126
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12127
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: errorContent })
12061
12128
  ] }) });
12062
12129
  }
12063
12130
  return errorContent;
12064
12131
  }
12065
12132
  if (!isLoading && organizationsWithSwitchAccess?.length === 0) {
12066
- const emptyContent = /* @__PURE__ */ jsx89("div", { className: cx30(styles.root, className), style, children: renderEmptyWithStyles() });
12133
+ const emptyContent = /* @__PURE__ */ jsx88("div", { className: cx30(styles.root, className), style, children: renderEmptyWithStyles() });
12067
12134
  if (mode === "popup") {
12068
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12069
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12070
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: emptyContent })
12135
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12136
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12137
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: emptyContent })
12071
12138
  ] }) });
12072
12139
  }
12073
12140
  return emptyContent;
12074
12141
  }
12075
- const organizationListContent = /* @__PURE__ */ jsxs43("div", { className: cx30(styles.root, className), style, children: [
12076
- /* @__PURE__ */ jsxs43("div", { className: cx30(styles.header), children: [
12077
- /* @__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", {
12142
+ const organizationListContent = /* @__PURE__ */ jsxs42("div", { className: cx30(styles.root, className), style, children: [
12143
+ /* @__PURE__ */ jsxs42("div", { className: cx30(styles.header), children: [
12144
+ /* @__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", {
12078
12145
  showing: organizationsWithSwitchAccess?.length,
12079
12146
  total: allOrganizations?.organizations?.length || 0
12080
12147
  }) }) }),
12081
- onRefresh && /* @__PURE__ */ jsx89(Button_default, { onClick: onRefresh, className: cx30(styles.refreshButton), type: "button", variant: "outline", size: "small", children: t("organization.switcher.refresh.button") })
12148
+ onRefresh && /* @__PURE__ */ jsx88(Button_default, { onClick: onRefresh, className: cx30(styles.refreshButton), type: "button", variant: "outline", size: "small", children: t("organization.switcher.refresh.button") })
12082
12149
  ] }),
12083
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12150
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12084
12151
  (organization, index) => renderOrganizationWithStyles(organization, index)
12085
12152
  ) }),
12086
- error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ jsx89("div", { className: cx30(styles.errorMargin), children: renderErrorWithStyles(error) }),
12087
- hasMore && fetchMore && /* @__PURE__ */ jsx89("div", { className: cx30(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12153
+ error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ jsx88("div", { className: cx30(styles.errorMargin), children: renderErrorWithStyles(error) }),
12154
+ hasMore && fetchMore && /* @__PURE__ */ jsx88("div", { className: cx30(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12088
12155
  ] });
12089
12156
  if (mode === "popup") {
12090
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12091
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12092
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: organizationListContent })
12157
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12158
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12159
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: organizationListContent })
12093
12160
  ] }) });
12094
12161
  }
12095
12162
  return organizationListContent;
@@ -12166,7 +12233,7 @@ var useStyles28 = (theme, colorScheme) => {
12166
12233
  var OrganizationList_styles_default = useStyles28;
12167
12234
 
12168
12235
  // src/components/presentation/OrganizationList/OrganizationList.tsx
12169
- import { jsx as jsx90 } from "react/jsx-runtime";
12236
+ import { jsx as jsx89 } from "react/jsx-runtime";
12170
12237
  var OrganizationList = ({
12171
12238
  autoFetch = true,
12172
12239
  filter = "",
@@ -12188,7 +12255,7 @@ var OrganizationList = ({
12188
12255
  setAllOrganizations(await getAllOrganizations2());
12189
12256
  })();
12190
12257
  }, []);
12191
- return /* @__PURE__ */ jsx90("div", { className: cx31(styles.root, className), style, children: /* @__PURE__ */ jsx90("div", { className: cx31(styles.container), children: /* @__PURE__ */ jsx90(
12258
+ return /* @__PURE__ */ jsx89("div", { className: cx31(styles.root, className), style, children: /* @__PURE__ */ jsx89("div", { className: cx31(styles.container), children: /* @__PURE__ */ jsx89(
12192
12259
  BaseOrganizationList_default,
12193
12260
  {
12194
12261
  allOrganizations,
@@ -12203,8 +12270,8 @@ var OrganizationList = ({
12203
12270
  var OrganizationList_default = OrganizationList;
12204
12271
 
12205
12272
  // src/components/primitives/Icons/BuildingAlt.tsx
12206
- import { jsx as jsx91, jsxs as jsxs44 } from "react/jsx-runtime";
12207
- var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsxs44(
12273
+ import { jsx as jsx90, jsxs as jsxs43 } from "react/jsx-runtime";
12274
+ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsxs43(
12208
12275
  "svg",
12209
12276
  {
12210
12277
  width,
@@ -12217,13 +12284,13 @@ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @_
12217
12284
  strokeLinecap: "round",
12218
12285
  strokeLinejoin: "round",
12219
12286
  children: [
12220
- /* @__PURE__ */ jsx91("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12221
- /* @__PURE__ */ jsx91("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12222
- /* @__PURE__ */ jsx91("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12223
- /* @__PURE__ */ jsx91("path", { d: "M10 6h4" }),
12224
- /* @__PURE__ */ jsx91("path", { d: "M10 10h4" }),
12225
- /* @__PURE__ */ jsx91("path", { d: "M10 14h4" }),
12226
- /* @__PURE__ */ jsx91("path", { d: "M10 18h4" })
12287
+ /* @__PURE__ */ jsx90("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12288
+ /* @__PURE__ */ jsx90("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12289
+ /* @__PURE__ */ jsx90("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12290
+ /* @__PURE__ */ jsx90("path", { d: "M10 6h4" }),
12291
+ /* @__PURE__ */ jsx90("path", { d: "M10 10h4" }),
12292
+ /* @__PURE__ */ jsx90("path", { d: "M10 14h4" }),
12293
+ /* @__PURE__ */ jsx90("path", { d: "M10 18h4" })
12227
12294
  ]
12228
12295
  }
12229
12296
  );
@@ -12231,7 +12298,7 @@ BuildingAlt.displayName = "BuildingAlt";
12231
12298
  var BuildingAlt_default = BuildingAlt;
12232
12299
 
12233
12300
  // src/components/presentation/OrganizationSwitcher/OrganizationSwitcher.tsx
12234
- import { Fragment as Fragment19, jsx as jsx92, jsxs as jsxs45 } from "react/jsx-runtime";
12301
+ import { Fragment as Fragment19, jsx as jsx91, jsxs as jsxs44 } from "react/jsx-runtime";
12235
12302
  var OrganizationSwitcher = ({
12236
12303
  currentOrganization: propCurrentOrganization,
12237
12304
  fallback = null,
@@ -12255,7 +12322,7 @@ var OrganizationSwitcher = ({
12255
12322
  return fallback;
12256
12323
  }
12257
12324
  if (!isSignedIn) {
12258
- return /* @__PURE__ */ jsx92(Fragment19, {});
12325
+ return /* @__PURE__ */ jsx91(Fragment19, {});
12259
12326
  }
12260
12327
  const organizations = propOrganizations || contextOrganizations || [];
12261
12328
  const currentOrganization = propCurrentOrganization || contextCurrentOrganization;
@@ -12269,19 +12336,19 @@ var OrganizationSwitcher = ({
12269
12336
  const defaultMenuItems = [];
12270
12337
  if (currentOrganization) {
12271
12338
  defaultMenuItems.push({
12272
- icon: /* @__PURE__ */ jsx92(BuildingAlt_default, {}),
12339
+ icon: /* @__PURE__ */ jsx91(BuildingAlt_default, {}),
12273
12340
  label: t("organization.switcher.manage.organizations"),
12274
12341
  onClick: handleManageOrganizations
12275
12342
  });
12276
12343
  }
12277
12344
  defaultMenuItems.push({
12278
- 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" }) }),
12345
+ 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" }) }),
12279
12346
  label: t("organization.switcher.create.organization"),
12280
12347
  onClick: () => setIsCreateOrgOpen(true)
12281
12348
  });
12282
12349
  const menuItems = props.menuItems ? [...defaultMenuItems, ...props.menuItems] : defaultMenuItems;
12283
- return /* @__PURE__ */ jsxs45(Fragment19, { children: [
12284
- /* @__PURE__ */ jsx92(
12350
+ return /* @__PURE__ */ jsxs44(Fragment19, { children: [
12351
+ /* @__PURE__ */ jsx91(
12285
12352
  BaseOrganizationSwitcher_default,
12286
12353
  {
12287
12354
  organizations,
@@ -12294,7 +12361,7 @@ var OrganizationSwitcher = ({
12294
12361
  ...props
12295
12362
  }
12296
12363
  ),
12297
- /* @__PURE__ */ jsx92(
12364
+ /* @__PURE__ */ jsx91(
12298
12365
  CreateOrganization,
12299
12366
  {
12300
12367
  mode: "popup",
@@ -12308,7 +12375,7 @@ var OrganizationSwitcher = ({
12308
12375
  }
12309
12376
  }
12310
12377
  ),
12311
- currentOrganization && /* @__PURE__ */ jsx92(
12378
+ currentOrganization && /* @__PURE__ */ jsx91(
12312
12379
  OrganizationProfile_default,
12313
12380
  {
12314
12381
  organizationId: currentOrganization.id,
@@ -12316,11 +12383,11 @@ var OrganizationSwitcher = ({
12316
12383
  open: isProfileOpen,
12317
12384
  onOpenChange: setIsProfileOpen,
12318
12385
  cardLayout: true,
12319
- loadingFallback: /* @__PURE__ */ jsx92("div", { children: t("organization.profile.loading") }),
12320
- errorFallback: /* @__PURE__ */ jsx92("div", { children: t("organization.profile.error") })
12386
+ loadingFallback: /* @__PURE__ */ jsx91("div", { children: t("organization.profile.loading") }),
12387
+ errorFallback: /* @__PURE__ */ jsx91("div", { children: t("organization.profile.error") })
12321
12388
  }
12322
12389
  ),
12323
- /* @__PURE__ */ jsx92(
12390
+ /* @__PURE__ */ jsx91(
12324
12391
  OrganizationList_default,
12325
12392
  {
12326
12393
  mode: "popup",
@@ -12340,7 +12407,7 @@ var OrganizationSwitcher = ({
12340
12407
  var OrganizationSwitcher_default = OrganizationSwitcher;
12341
12408
 
12342
12409
  // src/index.ts
12343
- import { AsgardeoRuntimeError as AsgardeoRuntimeError7, http } from "@asgardeo/browser";
12410
+ import { AsgardeoRuntimeError as AsgardeoRuntimeError7, http, getActiveTheme as getActiveTheme2 } from "@asgardeo/browser";
12344
12411
  export {
12345
12412
  Alert_default as Alert,
12346
12413
  AlertDescription,
@@ -12439,6 +12506,7 @@ export {
12439
12506
  createPatchOperations,
12440
12507
  createSignInOption,
12441
12508
  createSignInOptionFromAuthenticator,
12509
+ getActiveTheme2 as getActiveTheme,
12442
12510
  getAllOrganizations_default as getAllOrganizations,
12443
12511
  getMeOrganizations_default as getMeOrganizations,
12444
12512
  getScim2Me_default as getMeProfile,