@asgardeo/react 0.5.23 → 0.5.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/AsgardeoReactClient.d.ts +1 -0
  2. package/dist/cjs/index.js +959 -877
  3. package/dist/cjs/index.js.map +4 -4
  4. package/dist/components/presentation/SignIn/options/SignInOptionFactory.d.ts +3 -3
  5. package/dist/components/presentation/SignUp/options/SignUpOptionFactory.d.ts +1 -1
  6. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +3 -0
  7. package/dist/components/presentation/UserProfile/UserProfile.d.ts +10 -0
  8. package/dist/components/presentation/{SignIn/options → options}/FacebookButton.d.ts +3 -3
  9. package/dist/components/presentation/{SignIn/options → options}/GitHubButton.d.ts +3 -3
  10. package/dist/components/presentation/{SignIn/options → options}/GoogleButton.d.ts +3 -3
  11. package/dist/components/presentation/{SignIn/options → options}/LinkedInButton.d.ts +3 -3
  12. package/dist/components/presentation/{SignIn/options → options}/MicrosoftButton.d.ts +3 -3
  13. package/dist/components/presentation/{SignIn/options → options}/SignInWithEthereumButton.d.ts +3 -3
  14. package/dist/components/presentation/{SignIn/options → options}/SocialButton.d.ts +3 -3
  15. package/dist/components/primitives/Avatar/Avatar.d.ts +4 -0
  16. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +1 -0
  17. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +10 -0
  18. package/dist/index.d.ts +8 -8
  19. package/dist/index.js +704 -618
  20. package/dist/index.js.map +4 -4
  21. package/package.json +2 -2
  22. package/dist/components/presentation/SignUp/options/GoogleButton.d.ts +0 -25
  23. package/dist/components/presentation/SignUp/options/index.d.ts +0 -26
package/dist/cjs/index.js CHANGED
@@ -36,7 +36,7 @@ __export(index_exports, {
36
36
  AlertTitle: () => AlertTitle,
37
37
  AsgardeoContext: () => AsgardeoContext_default,
38
38
  AsgardeoProvider: () => AsgardeoProvider_default,
39
- AsgardeoRuntimeError: () => import_browser68.AsgardeoRuntimeError,
39
+ AsgardeoRuntimeError: () => import_browser69.AsgardeoRuntimeError,
40
40
  BaseCreateOrganization: () => BaseCreateOrganization,
41
41
  BaseOrganization: () => BaseOrganization_default,
42
42
  BaseOrganizationList: () => BaseOrganizationList_default,
@@ -125,15 +125,16 @@ __export(index_exports, {
125
125
  UsernamePassword: () => UsernamePassword_default,
126
126
  createField: () => createField,
127
127
  createOrganization: () => createOrganization_default,
128
- createPatchOperations: () => import_browser67.createPatchOperations,
128
+ createPatchOperations: () => import_browser68.createPatchOperations,
129
129
  createSignInOption: () => createSignInOption,
130
130
  createSignInOptionFromAuthenticator: () => createSignInOptionFromAuthenticator,
131
+ getActiveTheme: () => import_browser69.getActiveTheme,
131
132
  getAllOrganizations: () => getAllOrganizations_default,
132
133
  getMeOrganizations: () => getMeOrganizations_default,
133
134
  getMeProfile: () => getScim2Me_default,
134
135
  getOrganization: () => getOrganization_default,
135
136
  getSchemas: () => getSchemas_default,
136
- http: () => import_browser68.http,
137
+ http: () => import_browser69.http,
137
138
  updateMeProfile: () => updateMeProfile_default,
138
139
  updateOrganization: () => updateOrganization_default,
139
140
  useAlertVariant: () => useAlertVariant,
@@ -182,7 +183,8 @@ var AsgardeoContext = (0, import_react.createContext)({
182
183
  getDecodedIdToken: null,
183
184
  getAccessToken: null,
184
185
  exchangeToken: null,
185
- storage: "sessionStorage"
186
+ storage: "sessionStorage",
187
+ reInitialize: null
186
188
  });
187
189
  AsgardeoContext.displayName = "AsgardeoContext";
188
190
  var AsgardeoContext_default = AsgardeoContext;
@@ -662,6 +664,23 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
662
664
  return this.asgardeo.init({ ...config, organizationHandle: resolvedOrganizationHandle });
663
665
  });
664
666
  }
667
+ reInitialize(config) {
668
+ return this.withLoading(async () => {
669
+ let isInitialized;
670
+ try {
671
+ await this.asgardeo.reInitialize(config);
672
+ isInitialized = true;
673
+ } catch (error) {
674
+ throw new import_browser6.AsgardeoRuntimeError(
675
+ `Failed to check if the client is initialized: ${error instanceof Error ? error.message : String(error)}`,
676
+ "AsgardeoReactClient-reInitialize-RuntimeError-001",
677
+ "react",
678
+ "An error occurred while checking the initialization status of the client."
679
+ );
680
+ }
681
+ return isInitialized;
682
+ });
683
+ }
665
684
  async updateUserProfile(payload, userId) {
666
685
  throw new Error("Not implemented");
667
686
  }
@@ -835,29 +854,16 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
835
854
  return Promise.resolve(String(response));
836
855
  }
837
856
  async signUp(...args) {
838
- if (args.length === 0) {
839
- throw new import_browser6.AsgardeoRuntimeError(
840
- "No arguments provided for signUp method.",
841
- "react-AsgardeoReactClient-ValidationError-001",
842
- "react",
843
- "The signUp method requires at least one argument, either a SignUpOptions object or an EmbeddedFlowExecuteRequestPayload."
844
- );
845
- }
857
+ const configData = await this.asgardeo.getConfigData();
846
858
  const firstArg = args[0];
847
859
  if (typeof firstArg === "object" && "flowType" in firstArg) {
848
- const configData = await this.asgardeo.getConfigData();
849
860
  const baseUrl = configData?.baseUrl;
850
861
  return (0, import_browser6.executeEmbeddedSignUpFlow)({
851
862
  baseUrl,
852
863
  payload: firstArg
853
864
  });
854
865
  }
855
- throw new import_browser6.AsgardeoRuntimeError(
856
- "Not implemented",
857
- "react-AsgardeoReactClient-ValidationError-002",
858
- "react",
859
- "The signUp method with SignUpOptions is not implemented in the React client."
860
- );
866
+ (0, import_browser6.navigate)((0, import_browser6.getRedirectBasedSignUpUrl)(configData));
861
867
  }
862
868
  async request(requestConfig) {
863
869
  return this.asgardeo.httpRequest(requestConfig);
@@ -1261,7 +1267,7 @@ var applyThemeToDOM = (theme) => {
1261
1267
  var ThemeProvider = ({
1262
1268
  children,
1263
1269
  theme: themeConfig,
1264
- mode = "system",
1270
+ mode = import_browser11.DEFAULT_THEME,
1265
1271
  detection = {},
1266
1272
  inheritFromBranding = true
1267
1273
  }) => {
@@ -1756,12 +1762,6 @@ var AsgardeoProvider = ({
1756
1762
  setIsLoadingSync(asgardeo.isLoading());
1757
1763
  }
1758
1764
  };
1759
- const isDarkMode = (0, import_react15.useMemo)(() => {
1760
- if (!preferences?.theme?.mode || preferences.theme.mode === "system") {
1761
- return window.matchMedia("(prefers-color-scheme: dark)").matches;
1762
- }
1763
- return preferences.theme.mode === "dark";
1764
- }, [preferences?.theme?.mode]);
1765
1765
  const handleProfileUpdate = (payload) => {
1766
1766
  setUser(payload);
1767
1767
  setUserProfile((prev) => ({
@@ -1792,6 +1792,7 @@ var AsgardeoProvider = ({
1792
1792
  request: asgardeo.request.bind(asgardeo),
1793
1793
  requestAll: asgardeo.requestAll.bind(asgardeo)
1794
1794
  },
1795
+ reInitialize: asgardeo.reInitialize.bind(asgardeo),
1795
1796
  signInOptions,
1796
1797
  getDecodedIdToken: asgardeo.getDecodedIdToken.bind(asgardeo),
1797
1798
  exchangeToken: asgardeo.exchangeToken.bind(asgardeo),
@@ -1829,7 +1830,7 @@ var AsgardeoProvider = ({
1829
1830
  {
1830
1831
  inheritFromBranding: preferences?.theme?.inheritFromBranding,
1831
1832
  theme: preferences?.theme?.overrides,
1832
- mode: isDarkMode ? "dark" : "light",
1833
+ mode: (0, import_browser13.getActiveTheme)(preferences.theme.mode),
1833
1834
  children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FlowProvider_default, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(UserProvider_default, { profile: userProfile, onUpdateProfile: handleProfileUpdate, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1834
1835
  OrganizationProvider_default,
1835
1836
  {
@@ -2342,6 +2343,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2342
2343
  background-color: ${theme.vars.colors.primary.main};
2343
2344
  opacity: 0.8;
2344
2345
  }
2346
+ &:focus:not(:disabled) {
2347
+ background-color: ${theme.vars.colors.primary.main};
2348
+ opacity: 0.8;
2349
+ }
2345
2350
  `,
2346
2351
  "primary-outline": import_css3.css`
2347
2352
  background-color: transparent;
@@ -2356,30 +2361,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2356
2361
  color: ${theme.vars.colors.primary.contrastText};
2357
2362
  opacity: 0.9;
2358
2363
  }
2364
+ &:focus:not(:disabled) {
2365
+ background-color: ${theme.vars.colors.primary.main};
2366
+ color: ${theme.vars.colors.primary.contrastText};
2367
+ opacity: 0.9;
2368
+ }
2359
2369
  `,
2360
2370
  "primary-text": import_css3.css`
2361
2371
  background-color: transparent;
2362
2372
  color: ${theme.vars.colors.primary.main};
2363
2373
  border-color: transparent;
2364
2374
  &:hover:not(:disabled) {
2375
+ border-color: transparent;
2365
2376
  background-color: ${theme.vars.colors.action.hover};
2366
2377
  }
2367
2378
  &:active:not(:disabled) {
2379
+ border-color: transparent;
2368
2380
  background-color: ${theme.vars.colors.action.selected};
2369
2381
  }
2382
+ &:focus:not(:disabled) {
2383
+ border-color: transparent;
2384
+ background-color: ${theme.vars.colors.action.focus};
2385
+ outline: none;
2386
+ }
2370
2387
  `,
2371
2388
  "primary-icon": import_css3.css`
2372
2389
  background-color: transparent;
2373
2390
  color: ${theme.vars.colors.primary.main};
2374
2391
  border-color: transparent;
2375
2392
  &:hover:not(:disabled) {
2393
+ border-color: transparent;
2376
2394
  background-color: ${theme.vars.colors.action.hover};
2377
2395
  color: ${theme.vars.colors.primary.dark};
2378
2396
  }
2379
2397
  &:active:not(:disabled) {
2398
+ border-color: transparent;
2380
2399
  background-color: ${theme.vars.colors.action.selected};
2381
2400
  color: ${theme.vars.colors.primary.dark};
2382
2401
  }
2402
+ &:focus:not(:disabled) {
2403
+ border-color: transparent;
2404
+ background-color: ${theme.vars.colors.action.focus};
2405
+ color: ${theme.vars.colors.primary.dark};
2406
+ outline: none;
2407
+ }
2383
2408
  `,
2384
2409
  "secondary-solid": import_css3.css`
2385
2410
  background-color: ${theme.vars.colors.secondary.main};
@@ -2393,6 +2418,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2393
2418
  background-color: ${theme.vars.colors.secondary.main};
2394
2419
  opacity: 0.8;
2395
2420
  }
2421
+ &:focus:not(:disabled) {
2422
+ background-color: ${theme.vars.colors.secondary.main};
2423
+ opacity: 0.8;
2424
+ }
2396
2425
  `,
2397
2426
  "secondary-outline": import_css3.css`
2398
2427
  background-color: transparent;
@@ -2407,30 +2436,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2407
2436
  color: ${theme.vars.colors.secondary.contrastText};
2408
2437
  opacity: 0.9;
2409
2438
  }
2439
+ &:focus:not(:disabled) {
2440
+ background-color: ${theme.vars.colors.secondary.main};
2441
+ color: ${theme.vars.colors.secondary.contrastText};
2442
+ opacity: 0.9;
2443
+ }
2410
2444
  `,
2411
2445
  "secondary-text": import_css3.css`
2412
2446
  background-color: transparent;
2413
2447
  color: ${theme.vars.colors.secondary.main};
2414
2448
  border-color: transparent;
2415
2449
  &:hover:not(:disabled) {
2450
+ border-color: transparent;
2416
2451
  background-color: ${theme.vars.colors.action.hover};
2417
2452
  }
2418
2453
  &:active:not(:disabled) {
2454
+ border-color: transparent;
2419
2455
  background-color: ${theme.vars.colors.action.selected};
2420
2456
  }
2457
+ &:focus:not(:disabled) {
2458
+ border-color: transparent;
2459
+ background-color: ${theme.vars.colors.action.focus};
2460
+ outline: none;
2461
+ }
2421
2462
  `,
2422
2463
  "secondary-icon": import_css3.css`
2423
2464
  background-color: transparent;
2424
2465
  color: ${theme.vars.colors.secondary.main};
2425
2466
  border-color: transparent;
2426
2467
  &:hover:not(:disabled) {
2468
+ border-color: transparent;
2427
2469
  background-color: ${theme.vars.colors.action.hover};
2428
2470
  color: ${theme.vars.colors.secondary.dark};
2429
2471
  }
2430
2472
  &:active:not(:disabled) {
2473
+ border-color: transparent;
2431
2474
  background-color: ${theme.vars.colors.action.selected};
2432
2475
  color: ${theme.vars.colors.secondary.dark};
2433
2476
  }
2477
+ &:focus:not(:disabled) {
2478
+ border-color: transparent;
2479
+ background-color: ${theme.vars.colors.action.focus};
2480
+ color: ${theme.vars.colors.secondary.dark};
2481
+ outline: none;
2482
+ }
2434
2483
  `,
2435
2484
  "tertiary-solid": import_css3.css`
2436
2485
  background-color: ${theme.vars.colors.text.secondary};
@@ -2445,6 +2494,11 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2445
2494
  color: ${theme.vars.colors.background.surface};
2446
2495
  opacity: 0.9;
2447
2496
  }
2497
+ &:focus:not(:disabled) {
2498
+ background-color: ${theme.vars.colors.text.primary};
2499
+ color: ${theme.vars.colors.background.surface};
2500
+ opacity: 0.9;
2501
+ }
2448
2502
  `,
2449
2503
  "tertiary-outline": import_css3.css`
2450
2504
  background-color: transparent;
@@ -2458,32 +2512,52 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2458
2512
  background-color: ${theme.vars.colors.action.selected};
2459
2513
  border-color: ${theme.vars.colors.text.primary};
2460
2514
  }
2515
+ &:focus:not(:disabled) {
2516
+ background-color: ${theme.vars.colors.action.focus};
2517
+ border-color: ${theme.vars.colors.text.primary};
2518
+ }
2461
2519
  `,
2462
2520
  "tertiary-text": import_css3.css`
2463
2521
  background-color: transparent;
2464
2522
  color: ${theme.vars.colors.text.secondary};
2465
2523
  border-color: transparent;
2466
2524
  &:hover:not(:disabled) {
2525
+ border-color: transparent;
2467
2526
  background-color: ${theme.vars.colors.action.hover};
2468
2527
  color: ${theme.vars.colors.text.primary};
2469
2528
  }
2470
2529
  &:active:not(:disabled) {
2530
+ border-color: transparent;
2471
2531
  background-color: ${theme.vars.colors.action.selected};
2472
2532
  color: ${theme.vars.colors.text.primary};
2473
2533
  }
2534
+ &:focus:not(:disabled) {
2535
+ border-color: transparent;
2536
+ background-color: ${theme.vars.colors.action.focus};
2537
+ color: ${theme.vars.colors.text.primary};
2538
+ outline: none;
2539
+ }
2474
2540
  `,
2475
2541
  "tertiary-icon": import_css3.css`
2476
2542
  background-color: transparent;
2477
2543
  color: ${theme.vars.colors.text.secondary};
2478
2544
  border-color: transparent;
2479
2545
  &:hover:not(:disabled) {
2546
+ border-color: transparent;
2480
2547
  background-color: ${theme.vars.colors.action.hover};
2481
2548
  color: ${theme.vars.colors.text.primary};
2482
2549
  }
2483
2550
  &:active:not(:disabled) {
2551
+ border-color: transparent;
2484
2552
  background-color: ${theme.vars.colors.action.selected};
2485
2553
  color: ${theme.vars.colors.text.primary};
2486
2554
  }
2555
+ &:focus:not(:disabled) {
2556
+ border-color: transparent;
2557
+ background-color: ${theme.vars.colors.action.focus};
2558
+ color: ${theme.vars.colors.text.primary};
2559
+ outline: none;
2560
+ }
2487
2561
  `
2488
2562
  };
2489
2563
  const spinnerStyles = import_css3.css`
@@ -2630,8 +2704,7 @@ var SignInButton = (0, import_react28.forwardRef)(({ children, onClick, preferen
2630
2704
  try {
2631
2705
  setIsLoading(true);
2632
2706
  if (signInUrl) {
2633
- window.history.pushState(null, "", signInUrl);
2634
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2707
+ (0, import_browser18.navigate)(signInUrl);
2635
2708
  } else {
2636
2709
  await signIn(overriddenSignInOptions ?? signInOptions);
2637
2710
  }
@@ -2640,7 +2713,7 @@ var SignInButton = (0, import_react28.forwardRef)(({ children, onClick, preferen
2640
2713
  }
2641
2714
  } catch (error) {
2642
2715
  throw new import_browser18.AsgardeoRuntimeError(
2643
- `Sign in failed: ${error instanceof Error ? error.message : String(error)}`,
2716
+ `Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`,
2644
2717
  "SignInButton-handleSignIn-RuntimeError-001",
2645
2718
  "react",
2646
2719
  "Something went wrong while trying to sign in. Please try again later."
@@ -2754,6 +2827,8 @@ var BaseSignUpButton = (0, import_react31.forwardRef)(
2754
2827
  disabled: isLoading,
2755
2828
  loading: isLoading,
2756
2829
  type: "button",
2830
+ color: "primary",
2831
+ variant: "solid",
2757
2832
  ...rest,
2758
2833
  children
2759
2834
  }
@@ -2765,6 +2840,7 @@ var BaseSignUpButton_default = BaseSignUpButton;
2765
2840
 
2766
2841
  // src/components/actions/SignUpButton/SignUpButton.tsx
2767
2842
  var import_browser22 = require("@asgardeo/browser");
2843
+ var import_browser23 = require("@asgardeo/browser");
2768
2844
  var import_react32 = require("react");
2769
2845
  var import_jsx_runtime15 = require("react/jsx-runtime");
2770
2846
  var SignUpButton = (0, import_react32.forwardRef)(({ children, onClick, preferences, ...rest }, ref) => {
@@ -2775,8 +2851,7 @@ var SignUpButton = (0, import_react32.forwardRef)(({ children, onClick, preferen
2775
2851
  try {
2776
2852
  setIsLoading(true);
2777
2853
  if (signUpUrl) {
2778
- window.history.pushState(null, "", signUpUrl);
2779
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2854
+ (0, import_browser23.navigate)(signUpUrl);
2780
2855
  } else {
2781
2856
  await signUp();
2782
2857
  }
@@ -2853,15 +2928,15 @@ Loading.displayName = "Loading";
2853
2928
  var Loading_default = Loading;
2854
2929
 
2855
2930
  // src/components/presentation/SignIn/BaseSignIn.tsx
2856
- var import_browser44 = require("@asgardeo/browser");
2931
+ var import_browser45 = require("@asgardeo/browser");
2857
2932
  var import_css35 = require("@emotion/css");
2858
2933
  var import_react56 = require("react");
2859
2934
 
2860
2935
  // src/components/presentation/SignIn/options/SignInOptionFactory.tsx
2861
- var import_browser39 = require("@asgardeo/browser");
2936
+ var import_browser40 = require("@asgardeo/browser");
2862
2937
 
2863
2938
  // src/components/presentation/SignIn/options/UsernamePassword.tsx
2864
- var import_browser33 = require("@asgardeo/browser");
2939
+ var import_browser34 = require("@asgardeo/browser");
2865
2940
  var import_react44 = require("react");
2866
2941
 
2867
2942
  // src/components/primitives/TextField/TextField.tsx
@@ -2869,11 +2944,11 @@ var import_css15 = require("@emotion/css");
2869
2944
 
2870
2945
  // src/components/primitives/FormControl/FormControl.tsx
2871
2946
  var import_css11 = require("@emotion/css");
2872
- var import_browser24 = require("@asgardeo/browser");
2947
+ var import_browser25 = require("@asgardeo/browser");
2873
2948
 
2874
2949
  // src/components/primitives/Typography/Typography.tsx
2875
2950
  var import_css9 = require("@emotion/css");
2876
- var import_browser23 = require("@asgardeo/browser");
2951
+ var import_browser24 = require("@asgardeo/browser");
2877
2952
 
2878
2953
  // src/components/primitives/Typography/Typography.styles.ts
2879
2954
  var import_css8 = require("@emotion/css");
@@ -3221,8 +3296,8 @@ var Typography = ({
3221
3296
  }
3222
3297
  };
3223
3298
  const typographyClassName = (0, import_css9.cx)(
3224
- (0, import_browser23.withVendorCSSClassPrefix)((0, import_browser23.bem)("typography")),
3225
- (0, import_browser23.withVendorCSSClassPrefix)((0, import_browser23.bem)("typography", variant)),
3299
+ (0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("typography")),
3300
+ (0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("typography", variant)),
3226
3301
  styles.typography,
3227
3302
  getVariantClass(variant),
3228
3303
  noWrap && styles.typographyNoWrap,
@@ -3272,15 +3347,15 @@ var FormControl = ({
3272
3347
  }) => {
3273
3348
  const { theme, colorScheme } = useTheme_default();
3274
3349
  const styles = FormControl_styles_default(theme, colorScheme, helperTextAlign, helperTextMarginLeft, !!error);
3275
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0, import_css11.cx)((0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("form-control")), styles.formControl, className), children: [
3350
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0, import_css11.cx)((0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("form-control")), styles.formControl, className), children: [
3276
3351
  children,
3277
3352
  (error || helperText) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3278
3353
  Typography_default,
3279
3354
  {
3280
3355
  variant: "caption",
3281
3356
  color: error ? "error" : "textSecondary",
3282
- className: (0, import_css11.cx)((0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("form-control", "helper-text")), styles.helperText, {
3283
- [(0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("form-control", "helper-text", "error"))]: !!error,
3357
+ className: (0, import_css11.cx)((0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("form-control", "helper-text")), styles.helperText, {
3358
+ [(0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("form-control", "helper-text", "error"))]: !!error,
3284
3359
  [styles.helperTextError]: !!error
3285
3360
  }),
3286
3361
  children: error || helperText
@@ -3292,7 +3367,7 @@ var FormControl_default = FormControl;
3292
3367
 
3293
3368
  // src/components/primitives/InputLabel/InputLabel.tsx
3294
3369
  var import_css13 = require("@emotion/css");
3295
- var import_browser25 = require("@asgardeo/browser");
3370
+ var import_browser26 = require("@asgardeo/browser");
3296
3371
 
3297
3372
  // src/components/primitives/InputLabel/InputLabel.styles.ts
3298
3373
  var import_css12 = require("@emotion/css");
@@ -3351,12 +3426,12 @@ var InputLabel = ({
3351
3426
  "label",
3352
3427
  {
3353
3428
  className: (0, import_css13.cx)(
3354
- (0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("input-label")),
3355
- (0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("input-label", variant)),
3429
+ (0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("input-label")),
3430
+ (0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("input-label", variant)),
3356
3431
  styles.label,
3357
3432
  variant === "block" ? styles.block : styles.inline,
3358
3433
  {
3359
- [(0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("input-label", "error"))]: error,
3434
+ [(0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("input-label", "error"))]: error,
3360
3435
  [styles.error]: error
3361
3436
  },
3362
3437
  className
@@ -3365,7 +3440,7 @@ var InputLabel = ({
3365
3440
  ...rest,
3366
3441
  children: [
3367
3442
  children,
3368
- required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: (0, import_css13.cx)((0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("input-label", "required")), styles.requiredIndicator), children: " *" })
3443
+ required && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: (0, import_css13.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("input-label", "required")), styles.requiredIndicator), children: " *" })
3369
3444
  ]
3370
3445
  }
3371
3446
  );
@@ -3373,7 +3448,7 @@ var InputLabel = ({
3373
3448
  var InputLabel_default = InputLabel;
3374
3449
 
3375
3450
  // src/components/primitives/TextField/TextField.tsx
3376
- var import_browser26 = require("@asgardeo/browser");
3451
+ var import_browser27 = require("@asgardeo/browser");
3377
3452
 
3378
3453
  // src/components/primitives/TextField/TextField.styles.ts
3379
3454
  var import_css14 = require("@emotion/css");
@@ -3502,20 +3577,20 @@ var TextField = ({
3502
3577
  const hasEndIcon = !!endIcon;
3503
3578
  const styles = TextField_styles_default(theme, colorScheme, disabled, hasError, hasStartIcon, hasEndIcon);
3504
3579
  const inputClassName = (0, import_css15.cx)(
3505
- (0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "input")),
3580
+ (0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "input")),
3506
3581
  styles.input,
3507
3582
  hasError && styles.inputError,
3508
3583
  disabled && styles.inputDisabled
3509
3584
  );
3510
- const containerClassName = (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "container")), styles.inputContainer);
3511
- const startIconClassName = (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "start-icon")), styles.startIcon);
3512
- const endIconClassName = (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "end-icon")), styles.endIcon);
3585
+ const containerClassName = (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "container")), styles.inputContainer);
3586
+ const startIconClassName = (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "start-icon")), styles.startIcon);
3587
+ const endIconClassName = (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "end-icon")), styles.endIcon);
3513
3588
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3514
3589
  FormControl_default,
3515
3590
  {
3516
3591
  error,
3517
3592
  helperText,
3518
- className: (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field")), className),
3593
+ className: (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field")), className),
3519
3594
  style,
3520
3595
  children: [
3521
3596
  label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(InputLabel_default, { required, error: hasError, children: label }),
@@ -3562,7 +3637,7 @@ var TextField_default = TextField;
3562
3637
 
3563
3638
  // src/components/primitives/Select/Select.tsx
3564
3639
  var import_css17 = require("@emotion/css");
3565
- var import_browser27 = require("@asgardeo/browser");
3640
+ var import_browser28 = require("@asgardeo/browser");
3566
3641
 
3567
3642
  // src/components/primitives/Select/Select.styles.ts
3568
3643
  var import_css16 = require("@emotion/css");
@@ -3660,7 +3735,7 @@ var Select = ({
3660
3735
  const hasError = !!error;
3661
3736
  const styles = Select_styles_default(theme, colorScheme, disabled, hasError);
3662
3737
  const selectClassName = (0, import_css17.cx)(
3663
- (0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("select", "input")),
3738
+ (0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("select", "input")),
3664
3739
  styles.select,
3665
3740
  hasError && styles.selectError,
3666
3741
  disabled && styles.selectDisabled
@@ -3670,7 +3745,7 @@ var Select = ({
3670
3745
  {
3671
3746
  error,
3672
3747
  helperText,
3673
- className: (0, import_css17.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("select")), className),
3748
+ className: (0, import_css17.cx)((0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("select")), className),
3674
3749
  style,
3675
3750
  children: [
3676
3751
  label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(InputLabel_default, { required, error: hasError, children: label }),
@@ -3694,7 +3769,7 @@ var Select_default = Select;
3694
3769
  // src/components/primitives/OtpField/OtpField.tsx
3695
3770
  var import_react39 = require("react");
3696
3771
  var import_css19 = require("@emotion/css");
3697
- var import_browser28 = require("@asgardeo/browser");
3772
+ var import_browser29 = require("@asgardeo/browser");
3698
3773
 
3699
3774
  // src/components/primitives/OtpField/OtpField.styles.ts
3700
3775
  var import_css18 = require("@emotion/css");
@@ -3870,12 +3945,12 @@ var OtpField = ({
3870
3945
  {
3871
3946
  error,
3872
3947
  helperText,
3873
- className: (0, import_css19.cx)((0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field")), className),
3948
+ className: (0, import_css19.cx)((0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field")), className),
3874
3949
  helperTextAlign: "center",
3875
3950
  style,
3876
3951
  children: [
3877
3952
  label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputLabel_default, { required, error: !!error, children: label }),
3878
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: (0, import_css19.cx)((0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field", "input-container")), styles.inputContainer), children: Array.from({ length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3953
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: (0, import_css19.cx)((0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field", "input-container")), styles.inputContainer), children: Array.from({ length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3879
3954
  "input",
3880
3955
  {
3881
3956
  ref: (el) => {
@@ -3887,10 +3962,10 @@ var OtpField = ({
3887
3962
  onChange: (event) => handleChange(index, event),
3888
3963
  onKeyDown: (event) => handleKeyDown(index, event),
3889
3964
  onPaste: handlePaste,
3890
- className: (0, import_css19.cx)((0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field", "input")), styles.input, {
3891
- [(0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field", "input", "error"))]: !!error,
3965
+ className: (0, import_css19.cx)((0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field", "input")), styles.input, {
3966
+ [(0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field", "input", "error"))]: !!error,
3892
3967
  [styles.inputError]: !!error,
3893
- [(0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field", "input", "disabled"))]: !!disabled,
3968
+ [(0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field", "input", "disabled"))]: !!disabled,
3894
3969
  [styles.inputDisabled]: !!disabled
3895
3970
  }),
3896
3971
  maxLength: 1,
@@ -3912,7 +3987,7 @@ var OtpField_default = OtpField;
3912
3987
  // src/components/primitives/PasswordField/PasswordField.tsx
3913
3988
  var import_react41 = require("react");
3914
3989
  var import_css21 = require("@emotion/css");
3915
- var import_browser29 = require("@asgardeo/browser");
3990
+ var import_browser30 = require("@asgardeo/browser");
3916
3991
 
3917
3992
  // src/components/primitives/Icons/Eye.tsx
3918
3993
  var import_jsx_runtime25 = require("react/jsx-runtime");
@@ -4008,7 +4083,7 @@ var PasswordField = ({ onChange, className, disabled, error, ...textFieldProps }
4008
4083
  TextField_default,
4009
4084
  {
4010
4085
  ...textFieldProps,
4011
- className: (0, import_css21.cx)((0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("password-field")), className),
4086
+ className: (0, import_css21.cx)((0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("password-field")), className),
4012
4087
  type: showPassword ? "text" : "password",
4013
4088
  onChange: (e) => onChange(e.target.value),
4014
4089
  autoComplete: "current-password",
@@ -4020,7 +4095,7 @@ var PasswordField = ({ onChange, className, disabled, error, ...textFieldProps }
4020
4095
  width: 16,
4021
4096
  height: 16,
4022
4097
  className: (0, import_css21.cx)(
4023
- (0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("password-field", "toggle-icon")),
4098
+ (0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("password-field", "toggle-icon")),
4024
4099
  styles.toggleIcon,
4025
4100
  showPassword ? styles.visibleIcon : styles.hiddenIcon
4026
4101
  )
@@ -4034,7 +4109,7 @@ var PasswordField_default = PasswordField;
4034
4109
 
4035
4110
  // src/components/primitives/DatePicker/DatePicker.tsx
4036
4111
  var import_css23 = require("@emotion/css");
4037
- var import_browser30 = require("@asgardeo/browser");
4112
+ var import_browser31 = require("@asgardeo/browser");
4038
4113
 
4039
4114
  // src/components/primitives/DatePicker/DatePicker.styles.ts
4040
4115
  var import_css22 = require("@emotion/css");
@@ -4123,7 +4198,7 @@ var DatePicker = ({
4123
4198
  {
4124
4199
  error,
4125
4200
  helperText,
4126
- className: (0, import_css23.cx)((0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker")), className),
4201
+ className: (0, import_css23.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker")), className),
4127
4202
  style,
4128
4203
  children: [
4129
4204
  label && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
@@ -4131,7 +4206,7 @@ var DatePicker = ({
4131
4206
  {
4132
4207
  required,
4133
4208
  error: hasError,
4134
- className: (0, import_css23.cx)((0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "label")), styles.label),
4209
+ className: (0, import_css23.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "label")), styles.label),
4135
4210
  children: label
4136
4211
  }
4137
4212
  ),
@@ -4142,13 +4217,13 @@ var DatePicker = ({
4142
4217
  pattern: "\\d{4}-\\d{2}-\\d{2}",
4143
4218
  placeholder: dateFormat,
4144
4219
  className: (0, import_css23.cx)(
4145
- (0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "input")),
4220
+ (0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "input")),
4146
4221
  styles.input,
4147
4222
  styles.errorInput,
4148
4223
  styles.disabledInput,
4149
4224
  {
4150
- [(0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "input", "error"))]: hasError,
4151
- [(0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "input", "disabled"))]: disabled
4225
+ [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "input", "error"))]: hasError,
4226
+ [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "input", "disabled"))]: disabled
4152
4227
  }
4153
4228
  ),
4154
4229
  disabled,
@@ -4165,7 +4240,7 @@ var DatePicker_default = DatePicker;
4165
4240
 
4166
4241
  // src/components/primitives/Checkbox/Checkbox.tsx
4167
4242
  var import_css25 = require("@emotion/css");
4168
- var import_browser31 = require("@asgardeo/browser");
4243
+ var import_browser32 = require("@asgardeo/browser");
4169
4244
 
4170
4245
  // src/components/primitives/Checkbox/Checkbox.styles.ts
4171
4246
  var import_css24 = require("@emotion/css");
@@ -4238,15 +4313,15 @@ var Checkbox = ({ label, error, className, required, helperText, style = {}, ...
4238
4313
  {
4239
4314
  error,
4240
4315
  helperText,
4241
- className: (0, import_css25.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox")), className),
4316
+ className: (0, import_css25.cx)((0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox")), className),
4242
4317
  helperTextMarginLeft: `calc(${theme.vars.spacing.unit} * 3.5)`,
4243
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { style, className: (0, import_css25.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "container")), styles.container), children: [
4318
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { style, className: (0, import_css25.cx)((0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "container")), styles.container), children: [
4244
4319
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4245
4320
  "input",
4246
4321
  {
4247
4322
  type: "checkbox",
4248
- className: (0, import_css25.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "input")), styles.input, styles.errorInput, {
4249
- [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "input", "error"))]: hasError
4323
+ className: (0, import_css25.cx)((0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "input")), styles.input, styles.errorInput, {
4324
+ [(0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "input", "error"))]: hasError
4250
4325
  }),
4251
4326
  "aria-invalid": hasError,
4252
4327
  "aria-required": required,
@@ -4259,8 +4334,8 @@ var Checkbox = ({ label, error, className, required, helperText, style = {}, ...
4259
4334
  required,
4260
4335
  error: hasError,
4261
4336
  variant: "inline",
4262
- className: (0, import_css25.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "label")), styles.label, styles.errorLabel, {
4263
- [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "label", "error"))]: hasError
4337
+ className: (0, import_css25.cx)((0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "label")), styles.label, styles.errorLabel, {
4338
+ [(0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "label", "error"))]: hasError
4264
4339
  }),
4265
4340
  children: label
4266
4341
  }
@@ -4272,7 +4347,7 @@ var Checkbox = ({ label, error, className, required, helperText, style = {}, ...
4272
4347
  var Checkbox_default = Checkbox;
4273
4348
 
4274
4349
  // src/components/factories/FieldFactory.tsx
4275
- var import_browser32 = require("@asgardeo/browser");
4350
+ var import_browser33 = require("@asgardeo/browser");
4276
4351
  var import_jsx_runtime30 = require("react/jsx-runtime");
4277
4352
  var validateFieldValue = (value, type, required = false, touched = false) => {
4278
4353
  if (required && touched && (!value || value.trim() === "")) {
@@ -4282,7 +4357,7 @@ var validateFieldValue = (value, type, required = false, touched = false) => {
4282
4357
  return null;
4283
4358
  }
4284
4359
  switch (type) {
4285
- case import_browser32.FieldType.Number:
4360
+ case import_browser33.FieldType.Number:
4286
4361
  const numValue = parseInt(value, 10);
4287
4362
  if (isNaN(numValue)) {
4288
4363
  return "Please enter a valid number";
@@ -4318,20 +4393,20 @@ var createField = (config) => {
4318
4393
  placeholder
4319
4394
  };
4320
4395
  switch (type) {
4321
- case import_browser32.FieldType.Password:
4396
+ case import_browser33.FieldType.Password:
4322
4397
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PasswordField_default, { ...commonProps, onChange });
4323
- case import_browser32.FieldType.Text:
4398
+ case import_browser33.FieldType.Text:
4324
4399
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TextField_default, { ...commonProps, type: "text", onChange: (e) => onChange(e.target.value), autoComplete: "off" });
4325
- case import_browser32.FieldType.Email:
4400
+ case import_browser33.FieldType.Email:
4326
4401
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TextField_default, { ...commonProps, type: "email", onChange: (e) => onChange(e.target.value), autoComplete: "email" });
4327
- case import_browser32.FieldType.Date:
4402
+ case import_browser33.FieldType.Date:
4328
4403
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DatePicker_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
4329
- case import_browser32.FieldType.Checkbox:
4404
+ case import_browser33.FieldType.Checkbox:
4330
4405
  const isChecked = value === "true" || value === true;
4331
4406
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Checkbox_default, { ...commonProps, checked: isChecked, onChange: (e) => onChange(e.target.checked.toString()) });
4332
- case import_browser32.FieldType.Otp:
4407
+ case import_browser33.FieldType.Otp:
4333
4408
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(OtpField_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
4334
- case import_browser32.FieldType.Number:
4409
+ case import_browser33.FieldType.Number:
4335
4410
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4336
4411
  TextField_default,
4337
4412
  {
@@ -4341,7 +4416,7 @@ var createField = (config) => {
4341
4416
  helperText: "Enter a numeric value"
4342
4417
  }
4343
4418
  );
4344
- case import_browser32.FieldType.Select:
4419
+ case import_browser33.FieldType.Select:
4345
4420
  const fieldOptions = options.length > 0 ? options : [];
4346
4421
  if (fieldOptions.length > 0) {
4347
4422
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
@@ -4404,7 +4479,7 @@ var UsernamePassword = ({
4404
4479
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
4405
4480
  formFields.map((param) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: createField({
4406
4481
  name: param.param,
4407
- type: param.type === import_browser33.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser33.FieldType.Password : import_browser33.FieldType.Text : import_browser33.FieldType.Text,
4482
+ type: param.type === import_browser34.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser34.FieldType.Password : import_browser34.FieldType.Text : import_browser34.FieldType.Text,
4408
4483
  label: param.displayName,
4409
4484
  required: authenticator.requiredParams.includes(param.param),
4410
4485
  value: formValues[param.param] || "",
@@ -4419,13 +4494,13 @@ var UsernamePassword = ({
4419
4494
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4420
4495
  Button_default,
4421
4496
  {
4497
+ fullWidth: true,
4422
4498
  type: "submit",
4499
+ color: "primary",
4500
+ variant: "solid",
4423
4501
  disabled: isLoading,
4424
4502
  loading: isLoading,
4425
4503
  className: buttonClassName,
4426
- color: "primary",
4427
- variant: "solid",
4428
- fullWidth: true,
4429
4504
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4430
4505
  children: t("username.password.submit.button")
4431
4506
  }
@@ -4435,7 +4510,7 @@ var UsernamePassword = ({
4435
4510
  var UsernamePassword_default = UsernamePassword;
4436
4511
 
4437
4512
  // src/components/presentation/SignIn/options/IdentifierFirst.tsx
4438
- var import_browser34 = require("@asgardeo/browser");
4513
+ var import_browser35 = require("@asgardeo/browser");
4439
4514
  var import_react45 = require("react");
4440
4515
  var import_jsx_runtime32 = require("react/jsx-runtime");
4441
4516
  var IdentifierFirst = ({
@@ -4460,7 +4535,7 @@ var IdentifierFirst = ({
4460
4535
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
4461
4536
  formFields.map((param) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: createField({
4462
4537
  name: param.param,
4463
- type: param.type === import_browser34.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser34.FieldType.Password : import_browser34.FieldType.Text : import_browser34.FieldType.Text,
4538
+ type: param.type === import_browser35.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser35.FieldType.Password : import_browser35.FieldType.Text : import_browser35.FieldType.Text,
4464
4539
  label: param.displayName,
4465
4540
  required: authenticator.requiredParams.includes(param.param),
4466
4541
  value: formValues[param.param] || "",
@@ -4475,13 +4550,13 @@ var IdentifierFirst = ({
4475
4550
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4476
4551
  Button_default,
4477
4552
  {
4553
+ fullWidth: true,
4478
4554
  type: "submit",
4555
+ color: "primary",
4556
+ variant: "solid",
4479
4557
  disabled: isLoading,
4480
4558
  loading: isLoading,
4481
4559
  className: buttonClassName,
4482
- color: "primary",
4483
- variant: "solid",
4484
- fullWidth: true,
4485
4560
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4486
4561
  children: t("identifier.first.submit.button")
4487
4562
  }
@@ -4490,29 +4565,24 @@ var IdentifierFirst = ({
4490
4565
  };
4491
4566
  var IdentifierFirst_default = IdentifierFirst;
4492
4567
 
4493
- // src/components/presentation/SignIn/options/GoogleButton.tsx
4568
+ // src/components/presentation/options/GoogleButton.tsx
4494
4569
  var import_jsx_runtime33 = require("react/jsx-runtime");
4495
4570
  var GoogleButton = ({
4496
- authenticator,
4497
4571
  isLoading,
4498
- onSubmit,
4499
- buttonClassName = "",
4500
- preferences
4572
+ preferences,
4573
+ children,
4574
+ ...rest
4501
4575
  }) => {
4502
4576
  const { t } = useTranslation_default(preferences?.i18n);
4503
- const handleClick = () => {
4504
- onSubmit(authenticator);
4505
- };
4506
4577
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4507
4578
  Button_default,
4508
4579
  {
4580
+ ...rest,
4581
+ fullWidth: true,
4509
4582
  type: "button",
4510
- variant: "solid",
4511
4583
  color: "secondary",
4512
- fullWidth: true,
4584
+ variant: "solid",
4513
4585
  disabled: isLoading,
4514
- onClick: handleClick,
4515
- className: buttonClassName,
4516
4586
  startIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 67.91 67.901", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("g", { transform: "translate(-0.001 -0.001)", children: [
4517
4587
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4518
4588
  "path",
@@ -4547,35 +4617,30 @@ var GoogleButton = ({
4547
4617
  }
4548
4618
  )
4549
4619
  ] }) }),
4550
- children: t("elements.buttons.google")
4620
+ children: children ?? t("elements.buttons.google")
4551
4621
  }
4552
4622
  );
4553
4623
  };
4554
4624
  var GoogleButton_default = GoogleButton;
4555
4625
 
4556
- // src/components/presentation/SignIn/options/GitHubButton.tsx
4626
+ // src/components/presentation/options/GitHubButton.tsx
4557
4627
  var import_jsx_runtime34 = require("react/jsx-runtime");
4558
4628
  var GitHubButton = ({
4559
- authenticator,
4560
4629
  isLoading,
4561
- onSubmit,
4562
- buttonClassName = "",
4563
- preferences
4630
+ preferences,
4631
+ children,
4632
+ ...rest
4564
4633
  }) => {
4565
4634
  const { t } = useTranslation_default(preferences?.i18n);
4566
- const handleClick = () => {
4567
- onSubmit(authenticator);
4568
- };
4569
4635
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4570
4636
  Button_default,
4571
4637
  {
4638
+ ...rest,
4639
+ fullWidth: true,
4572
4640
  type: "button",
4573
- variant: "solid",
4574
4641
  color: "secondary",
4575
- fullWidth: true,
4642
+ variant: "solid",
4576
4643
  disabled: isLoading,
4577
- onClick: handleClick,
4578
- className: buttonClassName,
4579
4644
  startIcon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 67.91 66.233", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("g", { transform: "translate(-386.96 658.072)", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4580
4645
  "path",
4581
4646
  {
@@ -4583,35 +4648,30 @@ var GitHubButton = ({
4583
4648
  fill: "#ffffff"
4584
4649
  }
4585
4650
  ) }) }),
4586
- children: t("elements.buttons.github")
4651
+ children: children ?? t("elements.buttons.github")
4587
4652
  }
4588
4653
  );
4589
4654
  };
4590
4655
  var GitHubButton_default = GitHubButton;
4591
4656
 
4592
- // src/components/presentation/SignIn/options/MicrosoftButton.tsx
4657
+ // src/components/presentation/options/MicrosoftButton.tsx
4593
4658
  var import_jsx_runtime35 = require("react/jsx-runtime");
4594
4659
  var MicrosoftButton = ({
4595
- authenticator,
4596
4660
  isLoading,
4597
- onSubmit,
4598
- buttonClassName = "",
4599
- preferences
4661
+ preferences,
4662
+ children,
4663
+ ...rest
4600
4664
  }) => {
4601
4665
  const { t } = useTranslation_default(preferences?.i18n);
4602
- const handleClick = () => {
4603
- onSubmit(authenticator);
4604
- };
4605
4666
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4606
4667
  Button_default,
4607
4668
  {
4608
- type: "button",
4609
- variant: "outline",
4610
- color: "primary",
4669
+ ...rest,
4611
4670
  fullWidth: true,
4671
+ type: "button",
4672
+ color: "secondary",
4673
+ variant: "solid",
4612
4674
  disabled: isLoading,
4613
- onClick: handleClick,
4614
- className: buttonClassName,
4615
4675
  startIcon: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("svg", { width: "14", height: "14", viewBox: "0 0 23 23", xmlns: "http://www.w3.org/2000/svg", children: [
4616
4676
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#f3f3f3", d: "M0 0h23v23H0z" }),
4617
4677
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#f35325", d: "M1 1h10v10H1z" }),
@@ -4619,36 +4679,30 @@ var MicrosoftButton = ({
4619
4679
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#05a6f0", d: "M1 12h10v10H1z" }),
4620
4680
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#ffba08", d: "M12 12h10v10H12z" })
4621
4681
  ] }),
4622
- children: t("elements.buttons.microsoft")
4682
+ children: children ?? t("elements.buttons.microsoft")
4623
4683
  }
4624
4684
  );
4625
4685
  };
4626
4686
  var MicrosoftButton_default = MicrosoftButton;
4627
4687
 
4628
- // src/components/presentation/SignIn/options/FacebookButton.tsx
4688
+ // src/components/presentation/options/FacebookButton.tsx
4629
4689
  var import_jsx_runtime36 = require("react/jsx-runtime");
4630
4690
  var FacebookButton = ({
4631
- authenticator,
4632
4691
  isLoading,
4633
- onSubmit,
4634
- buttonClassName = "",
4635
- submitButtonText,
4636
- preferences
4692
+ preferences,
4693
+ children,
4694
+ ...rest
4637
4695
  }) => {
4638
4696
  const { t } = useTranslation_default(preferences?.i18n);
4639
- const handleClick = () => {
4640
- onSubmit(authenticator);
4641
- };
4642
4697
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4643
4698
  Button_default,
4644
4699
  {
4700
+ ...rest,
4701
+ fullWidth: true,
4645
4702
  type: "button",
4646
- variant: "solid",
4647
4703
  color: "primary",
4648
- fullWidth: true,
4704
+ variant: "solid",
4649
4705
  disabled: isLoading,
4650
- onClick: handleClick,
4651
- className: buttonClassName,
4652
4706
  startIcon: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg", children: [
4653
4707
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4654
4708
  "path",
@@ -4665,35 +4719,30 @@ var FacebookButton = ({
4665
4719
  }
4666
4720
  )
4667
4721
  ] }),
4668
- children: t("elements.buttons.facebook")
4722
+ children: children ?? t("elements.buttons.facebook")
4669
4723
  }
4670
4724
  );
4671
4725
  };
4672
4726
  var FacebookButton_default = FacebookButton;
4673
4727
 
4674
- // src/components/presentation/SignIn/options/LinkedInButton.tsx
4728
+ // src/components/presentation/options/LinkedInButton.tsx
4675
4729
  var import_jsx_runtime37 = require("react/jsx-runtime");
4676
4730
  var LinkedInButton = ({
4677
- authenticator,
4678
4731
  isLoading,
4679
- onSubmit,
4680
- buttonClassName = "",
4681
- preferences
4732
+ preferences,
4733
+ children,
4734
+ ...rest
4682
4735
  }) => {
4683
4736
  const { t } = useTranslation_default(preferences?.i18n);
4684
- const handleClick = () => {
4685
- onSubmit(authenticator);
4686
- };
4687
4737
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4688
4738
  Button_default,
4689
4739
  {
4690
- type: "button",
4691
- variant: "outline",
4692
- color: "primary",
4740
+ ...rest,
4693
4741
  fullWidth: true,
4742
+ type: "button",
4743
+ color: "secondary",
4744
+ variant: "solid",
4694
4745
  disabled: isLoading,
4695
- onClick: handleClick,
4696
- className: buttonClassName,
4697
4746
  startIcon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4698
4747
  "path",
4699
4748
  {
@@ -4701,35 +4750,30 @@ var LinkedInButton = ({
4701
4750
  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"
4702
4751
  }
4703
4752
  ) }),
4704
- children: t("elements.buttons.linkedin")
4753
+ children: children ?? t("elements.buttons.linkedin")
4705
4754
  }
4706
4755
  );
4707
4756
  };
4708
4757
  var LinkedInButton_default = LinkedInButton;
4709
4758
 
4710
- // src/components/presentation/SignIn/options/SignInWithEthereumButton.tsx
4759
+ // src/components/presentation/options/SignInWithEthereumButton.tsx
4711
4760
  var import_jsx_runtime38 = require("react/jsx-runtime");
4712
4761
  var SignInWithEthereumButton = ({
4713
- authenticator,
4714
4762
  isLoading,
4715
- onSubmit,
4716
- buttonClassName = "",
4717
- preferences
4763
+ preferences,
4764
+ children,
4765
+ ...rest
4718
4766
  }) => {
4719
4767
  const { t } = useTranslation_default(preferences?.i18n);
4720
- const handleClick = () => {
4721
- onSubmit(authenticator);
4722
- };
4723
4768
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4724
4769
  Button_default,
4725
4770
  {
4771
+ ...rest,
4772
+ fullWidth: true,
4726
4773
  type: "button",
4727
- variant: "outline",
4728
4774
  color: "secondary",
4729
- fullWidth: true,
4775
+ variant: "solid",
4730
4776
  disabled: isLoading,
4731
- onClick: handleClick,
4732
- className: buttonClassName,
4733
4777
  startIcon: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4734
4778
  "path",
4735
4779
  {
@@ -4737,14 +4781,14 @@ var SignInWithEthereumButton = ({
4737
4781
  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"
4738
4782
  }
4739
4783
  ) }),
4740
- children: t("elements.buttons.ethereum")
4784
+ children: children ?? t("elements.buttons.ethereum")
4741
4785
  }
4742
4786
  );
4743
4787
  };
4744
4788
  var SignInWithEthereumButton_default = SignInWithEthereumButton;
4745
4789
 
4746
4790
  // src/components/presentation/SignIn/options/EmailOtp.tsx
4747
- var import_browser35 = require("@asgardeo/browser");
4791
+ var import_browser36 = require("@asgardeo/browser");
4748
4792
  var import_react46 = require("react");
4749
4793
  var import_jsx_runtime39 = require("react/jsx-runtime");
4750
4794
  var EmailOtp = ({
@@ -4783,7 +4827,7 @@ var EmailOtp = ({
4783
4827
  }
4784
4828
  ) : createField({
4785
4829
  name: param.param,
4786
- type: param.type === import_browser35.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser35.FieldType.Password : import_browser35.FieldType.Text : import_browser35.FieldType.Text,
4830
+ type: param.type === import_browser36.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser36.FieldType.Password : import_browser36.FieldType.Text : import_browser36.FieldType.Text,
4787
4831
  label: param.displayName,
4788
4832
  required: authenticator.requiredParams.includes(param.param),
4789
4833
  value: formValues[param.param] || "",
@@ -4796,13 +4840,13 @@ var EmailOtp = ({
4796
4840
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4797
4841
  Button_default,
4798
4842
  {
4843
+ fullWidth: true,
4799
4844
  type: "submit",
4845
+ color: "primary",
4846
+ variant: "solid",
4800
4847
  disabled: isLoading,
4801
4848
  loading: isLoading,
4802
4849
  className: buttonClassName,
4803
- color: "primary",
4804
- variant: "solid",
4805
- fullWidth: true,
4806
4850
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4807
4851
  children: t("email.otp.submit.button")
4808
4852
  }
@@ -4812,7 +4856,7 @@ var EmailOtp = ({
4812
4856
  var EmailOtp_default = EmailOtp;
4813
4857
 
4814
4858
  // src/components/presentation/SignIn/options/Totp.tsx
4815
- var import_browser36 = require("@asgardeo/browser");
4859
+ var import_browser37 = require("@asgardeo/browser");
4816
4860
  var import_react47 = require("react");
4817
4861
  var import_jsx_runtime40 = require("react/jsx-runtime");
4818
4862
  var Totp = ({
@@ -4851,7 +4895,7 @@ var Totp = ({
4851
4895
  }
4852
4896
  ) : createField({
4853
4897
  name: param.param,
4854
- type: param.type === import_browser36.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser36.FieldType.Password : import_browser36.FieldType.Text : import_browser36.FieldType.Text,
4898
+ type: param.type === import_browser37.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser37.FieldType.Password : import_browser37.FieldType.Text : import_browser37.FieldType.Text,
4855
4899
  label: param.displayName,
4856
4900
  required: authenticator.requiredParams.includes(param.param),
4857
4901
  value: formValues[param.param] || "",
@@ -4864,13 +4908,13 @@ var Totp = ({
4864
4908
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4865
4909
  Button_default,
4866
4910
  {
4911
+ fullWidth: true,
4867
4912
  type: "submit",
4913
+ color: "primary",
4914
+ variant: "solid",
4868
4915
  disabled: isLoading,
4869
4916
  loading: isLoading,
4870
4917
  className: buttonClassName,
4871
- color: "primary",
4872
- variant: "solid",
4873
- fullWidth: true,
4874
4918
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4875
4919
  children: t("totp.submit.button")
4876
4920
  }
@@ -4880,7 +4924,7 @@ var Totp = ({
4880
4924
  var Totp_default = Totp;
4881
4925
 
4882
4926
  // src/components/presentation/SignIn/options/SmsOtp.tsx
4883
- var import_browser37 = require("@asgardeo/browser");
4927
+ var import_browser38 = require("@asgardeo/browser");
4884
4928
  var import_react48 = require("react");
4885
4929
  var import_jsx_runtime41 = require("react/jsx-runtime");
4886
4930
  var SmsOtp = ({
@@ -4919,7 +4963,7 @@ var SmsOtp = ({
4919
4963
  }
4920
4964
  ) : createField({
4921
4965
  name: param.param,
4922
- type: param.type === import_browser37.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser37.FieldType.Password : import_browser37.FieldType.Text : import_browser37.FieldType.Text,
4966
+ type: param.type === import_browser38.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser38.FieldType.Password : import_browser38.FieldType.Text : import_browser38.FieldType.Text,
4923
4967
  label: param.displayName,
4924
4968
  required: authenticator.requiredParams.includes(param.param),
4925
4969
  value: formValues[param.param] || "",
@@ -4932,13 +4976,13 @@ var SmsOtp = ({
4932
4976
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4933
4977
  Button_default,
4934
4978
  {
4979
+ fullWidth: true,
4935
4980
  type: "submit",
4981
+ color: "primary",
4982
+ variant: "solid",
4936
4983
  disabled: isLoading,
4937
4984
  loading: isLoading,
4938
4985
  className: buttonClassName,
4939
- color: "primary",
4940
- variant: "solid",
4941
- fullWidth: true,
4942
4986
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4943
4987
  children: t("sms.otp.submit.button")
4944
4988
  }
@@ -4947,33 +4991,24 @@ var SmsOtp = ({
4947
4991
  };
4948
4992
  var SmsOtp_default = SmsOtp;
4949
4993
 
4950
- // src/components/presentation/SignIn/options/SocialButton.tsx
4994
+ // src/components/presentation/options/SocialButton.tsx
4951
4995
  var import_jsx_runtime42 = require("react/jsx-runtime");
4952
4996
  var SocialLogin = ({
4953
- authenticator,
4954
4997
  isLoading,
4955
- onSubmit,
4956
- buttonClassName = "",
4957
- preferences
4998
+ preferences,
4999
+ children,
5000
+ ...rest
4958
5001
  }) => {
4959
5002
  const { t } = useTranslation_default(preferences?.i18n);
4960
- const getDisplayName = () => {
4961
- const providerName = authenticator.idp;
4962
- return t("elements.buttons.social", { connection: providerName });
4963
- };
4964
- const handleClick = () => {
4965
- onSubmit(authenticator);
4966
- };
4967
5003
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4968
5004
  Button_default,
4969
5005
  {
5006
+ ...rest,
5007
+ fullWidth: true,
4970
5008
  type: "button",
4971
- variant: "outline",
4972
5009
  color: "secondary",
4973
- fullWidth: true,
5010
+ variant: "outline",
4974
5011
  disabled: isLoading,
4975
- onClick: handleClick,
4976
- className: buttonClassName,
4977
5012
  startIcon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4978
5013
  "path",
4979
5014
  {
@@ -4981,14 +5016,14 @@ var SocialLogin = ({
4981
5016
  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"
4982
5017
  }
4983
5018
  ) }),
4984
- children: getDisplayName()
5019
+ children: t("elements.buttons.social", { connection: children })
4985
5020
  }
4986
5021
  );
4987
5022
  };
4988
5023
  var SocialButton_default = SocialLogin;
4989
5024
 
4990
5025
  // src/components/presentation/SignIn/options/MultiOptionButton.tsx
4991
- var import_browser38 = require("@asgardeo/browser");
5026
+ var import_browser39 = require("@asgardeo/browser");
4992
5027
  var import_jsx_runtime43 = require("react/jsx-runtime");
4993
5028
  var MultiOptionButton = ({
4994
5029
  authenticator,
@@ -5000,7 +5035,7 @@ var MultiOptionButton = ({
5000
5035
  const { t } = useTranslation_default(preferences?.i18n);
5001
5036
  const getDisplayName = () => {
5002
5037
  let authenticatorName = authenticator.authenticator;
5003
- if (authenticator.idp !== import_browser38.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5038
+ if (authenticator.idp !== import_browser39.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5004
5039
  authenticatorName = authenticator.idp;
5005
5040
  }
5006
5041
  switch (authenticatorName) {
@@ -5011,7 +5046,7 @@ var MultiOptionButton = ({
5011
5046
  const getIcon = () => {
5012
5047
  const authenticatorId = authenticator.authenticatorId;
5013
5048
  switch (authenticatorId) {
5014
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5049
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5015
5050
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5016
5051
  "path",
5017
5052
  {
@@ -5019,7 +5054,7 @@ var MultiOptionButton = ({
5019
5054
  d: "M20 15.5c-1.25 0-2.45-.2-3.57-.57a1.02 1.02 0 0 0-1.02.24l-2.2 2.2a15.074 15.074 0 0 1-6.59-6.59l2.2-2.2c.27-.27.35-.67.24-1.02A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1M12 3v10l3-3h6V3z"
5020
5055
  }
5021
5056
  ) });
5022
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5057
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5023
5058
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5024
5059
  "path",
5025
5060
  {
@@ -5027,9 +5062,9 @@ var MultiOptionButton = ({
5027
5062
  d: "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4l-8 5l-8-5V6l8 5l8-5z"
5028
5063
  }
5029
5064
  ) });
5030
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5065
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5031
5066
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { fill: "currentColor", d: "M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5z" }) });
5032
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.PushNotification:
5067
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.PushNotification:
5033
5068
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5034
5069
  "path",
5035
5070
  {
@@ -5037,7 +5072,7 @@ var MultiOptionButton = ({
5037
5072
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m1-13h-2v6h2zm0 8h-2v2h2z"
5038
5073
  }
5039
5074
  ) });
5040
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey:
5075
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey:
5041
5076
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("svg", { fill: "currentColor", width: "18", height: "18", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: [
5042
5077
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
5043
5078
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }),
@@ -5046,7 +5081,7 @@ var MultiOptionButton = ({
5046
5081
  " "
5047
5082
  ] })
5048
5083
  ] });
5049
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.MagicLink:
5084
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.MagicLink:
5050
5085
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5051
5086
  "path",
5052
5087
  {
@@ -5070,10 +5105,10 @@ var MultiOptionButton = ({
5070
5105
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5071
5106
  Button_default,
5072
5107
  {
5073
- type: "button",
5074
- variant: "outline",
5075
- color: "primary",
5076
5108
  fullWidth: true,
5109
+ type: "button",
5110
+ color: "secondary",
5111
+ variant: "solid",
5077
5112
  disabled: isLoading,
5078
5113
  onClick: handleClick,
5079
5114
  className: buttonClassName,
@@ -5086,40 +5121,109 @@ var MultiOptionButton_default = MultiOptionButton;
5086
5121
 
5087
5122
  // src/components/presentation/SignIn/options/SignInOptionFactory.tsx
5088
5123
  var import_jsx_runtime44 = require("react/jsx-runtime");
5089
- var createSignInOption = (props) => {
5090
- const { authenticator, ...optionProps } = props;
5124
+ var createSignInOption = ({
5125
+ authenticator,
5126
+ onSubmit,
5127
+ buttonClassName,
5128
+ preferences,
5129
+ ...rest
5130
+ }) => {
5091
5131
  const hasParams = authenticator.metadata?.params && authenticator.metadata.params.length > 0;
5092
5132
  switch (authenticator.authenticatorId) {
5093
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.UsernamePassword:
5094
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { ...props });
5095
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.IdentifierFirst:
5096
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IdentifierFirst_default, { ...props });
5097
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Google:
5098
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GoogleButton_default, { ...props });
5099
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.GitHub:
5100
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GitHubButton_default, { ...props });
5101
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Microsoft:
5102
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MicrosoftButton_default, { ...props });
5103
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Facebook:
5104
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(FacebookButton_default, { ...props });
5105
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.LinkedIn:
5106
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(LinkedInButton_default, { ...props });
5107
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SignInWithEthereum:
5108
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SignInWithEthereumButton_default, { ...props });
5109
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5110
- return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(EmailOtp_default, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5111
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5112
- return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Totp_default, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5113
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5114
- return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SmsOtp_default, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5133
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.UsernamePassword:
5134
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5135
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.IdentifierFirst:
5136
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IdentifierFirst_default, { authenticator, preferences, onSubmit, ...rest });
5137
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Google:
5138
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5139
+ GoogleButton_default,
5140
+ {
5141
+ className: buttonClassName,
5142
+ onClick: () => onSubmit(authenticator),
5143
+ authenticator,
5144
+ preferences,
5145
+ ...rest
5146
+ }
5147
+ );
5148
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.GitHub:
5149
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5150
+ GitHubButton_default,
5151
+ {
5152
+ authenticator,
5153
+ preferences,
5154
+ className: buttonClassName,
5155
+ onClick: () => onSubmit(authenticator),
5156
+ ...rest
5157
+ }
5158
+ );
5159
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Microsoft:
5160
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5161
+ MicrosoftButton_default,
5162
+ {
5163
+ authenticator,
5164
+ preferences,
5165
+ className: buttonClassName,
5166
+ onClick: () => onSubmit(authenticator),
5167
+ ...rest
5168
+ }
5169
+ );
5170
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Facebook:
5171
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5172
+ FacebookButton_default,
5173
+ {
5174
+ authenticator,
5175
+ preferences,
5176
+ className: buttonClassName,
5177
+ onClick: () => onSubmit(authenticator),
5178
+ ...rest
5179
+ }
5180
+ );
5181
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.LinkedIn:
5182
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5183
+ LinkedInButton_default,
5184
+ {
5185
+ authenticator,
5186
+ preferences,
5187
+ className: buttonClassName,
5188
+ onClick: () => onSubmit(authenticator),
5189
+ ...rest
5190
+ }
5191
+ );
5192
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SignInWithEthereum:
5193
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5194
+ SignInWithEthereumButton_default,
5195
+ {
5196
+ authenticator,
5197
+ preferences,
5198
+ className: buttonClassName,
5199
+ onClick: () => onSubmit(authenticator),
5200
+ ...rest
5201
+ }
5202
+ );
5203
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5204
+ return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(EmailOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5205
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5206
+ return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Totp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5207
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5208
+ return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SmsOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5115
5209
  default:
5116
- if (authenticator.idp !== import_browser39.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5117
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SocialButton_default, { ...props });
5210
+ if (authenticator.idp !== import_browser40.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5211
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5212
+ SocialButton_default,
5213
+ {
5214
+ authenticator,
5215
+ preferences,
5216
+ className: buttonClassName,
5217
+ onClick: () => onSubmit(authenticator),
5218
+ ...rest,
5219
+ children: authenticator.idp
5220
+ }
5221
+ );
5118
5222
  }
5119
5223
  if (hasParams) {
5120
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { ...props });
5224
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5121
5225
  } else {
5122
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5226
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5123
5227
  }
5124
5228
  }
5125
5229
  };
@@ -5137,7 +5241,7 @@ var createSignInOptionFromAuthenticator = (authenticator, formValues, touchedFie
5137
5241
 
5138
5242
  // src/components/primitives/Alert/Alert.tsx
5139
5243
  var import_react50 = require("react");
5140
- var import_browser40 = require("@asgardeo/browser");
5244
+ var import_browser41 = require("@asgardeo/browser");
5141
5245
  var import_css27 = require("@emotion/css");
5142
5246
 
5143
5247
  // src/components/primitives/Icons/CircleCheck.tsx
@@ -5338,16 +5442,16 @@ var Alert = (0, import_react50.forwardRef)(
5338
5442
  role: "alert",
5339
5443
  style,
5340
5444
  className: (0, import_css27.cx)(
5341
- (0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert")),
5445
+ (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert")),
5342
5446
  styles.alert,
5343
5447
  styles.variant,
5344
- (0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", null, variant)),
5448
+ (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", null, variant)),
5345
5449
  className
5346
5450
  ),
5347
5451
  ...rest,
5348
5452
  children: [
5349
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: (0, import_css27.cx)((0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", "icon")), styles.icon), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IconComponent, {}) }),
5350
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: (0, import_css27.cx)((0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", "content")), styles.content), children })
5453
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: (0, import_css27.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", "icon")), styles.icon), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IconComponent, {}) }),
5454
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: (0, import_css27.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", "content")), styles.content), children })
5351
5455
  ]
5352
5456
  }
5353
5457
  ) });
@@ -5365,7 +5469,7 @@ var AlertTitle = (0, import_react50.forwardRef)(({ children, className, style, .
5365
5469
  variant: "h6",
5366
5470
  fontWeight: 600,
5367
5471
  style,
5368
- className: (0, import_css27.cx)((0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", "title")), styles.title, className),
5472
+ className: (0, import_css27.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", "title")), styles.title, className),
5369
5473
  ...filteredRest,
5370
5474
  children
5371
5475
  }
@@ -5383,7 +5487,7 @@ var AlertDescription = (0, import_react50.forwardRef)(
5383
5487
  component: "p",
5384
5488
  variant: "body2",
5385
5489
  style,
5386
- className: (0, import_css27.cx)((0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", "description")), styles.description, className),
5490
+ className: (0, import_css27.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", "description")), styles.description, className),
5387
5491
  ...filteredRest,
5388
5492
  children
5389
5493
  }
@@ -5398,7 +5502,7 @@ Alert.Description = AlertDescription;
5398
5502
  var Alert_default = Alert;
5399
5503
 
5400
5504
  // src/components/primitives/Card/Card.tsx
5401
- var import_browser41 = require("@asgardeo/browser");
5505
+ var import_browser42 = require("@asgardeo/browser");
5402
5506
  var import_css29 = require("@emotion/css");
5403
5507
  var import_react52 = require("react");
5404
5508
 
@@ -5493,13 +5597,13 @@ var Card = (0, import_react52.forwardRef)(
5493
5597
  ref,
5494
5598
  style,
5495
5599
  className: (0, import_css29.cx)(
5496
- (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card")),
5600
+ (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card")),
5497
5601
  styles.card,
5498
5602
  styles.variant,
5499
5603
  styles.clickable,
5500
- (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", null, variant)),
5604
+ (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", null, variant)),
5501
5605
  {
5502
- [(0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", null, "clickable"))]: clickable
5606
+ [(0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", null, "clickable"))]: clickable
5503
5607
  },
5504
5608
  className
5505
5609
  ),
@@ -5517,7 +5621,7 @@ var CardHeader = (0, import_react52.forwardRef)(({ children, className, style, .
5517
5621
  {
5518
5622
  ref,
5519
5623
  style,
5520
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "header")), styles.header, className),
5624
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "header")), styles.header, className),
5521
5625
  ...rest,
5522
5626
  children
5523
5627
  }
@@ -5570,7 +5674,7 @@ var CardTitle = (0, import_react52.forwardRef)(
5570
5674
  component: getComponentFromLevel(level),
5571
5675
  variant: getVariantFromLevel(level),
5572
5676
  style,
5573
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "title")), styles.title, className),
5677
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "title")), styles.title, className),
5574
5678
  fontWeight: 600,
5575
5679
  ...filteredRest,
5576
5680
  children
@@ -5590,7 +5694,7 @@ var CardDescription = (0, import_react52.forwardRef)(
5590
5694
  variant: "body2",
5591
5695
  color: "textSecondary",
5592
5696
  style,
5593
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "description")), styles.description, className),
5697
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "description")), styles.description, className),
5594
5698
  ...filteredRest,
5595
5699
  children
5596
5700
  }
@@ -5605,7 +5709,7 @@ var CardAction = (0, import_react52.forwardRef)(({ children, className, style, .
5605
5709
  {
5606
5710
  ref,
5607
5711
  style,
5608
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "action")), styles.action, className),
5712
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "action")), styles.action, className),
5609
5713
  ...rest,
5610
5714
  children
5611
5715
  }
@@ -5619,7 +5723,7 @@ var CardContent = (0, import_react52.forwardRef)(({ children, className, style,
5619
5723
  {
5620
5724
  ref,
5621
5725
  style,
5622
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "content")), styles.content, className),
5726
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "content")), styles.content, className),
5623
5727
  ...rest,
5624
5728
  children
5625
5729
  }
@@ -5633,7 +5737,7 @@ var CardFooter = (0, import_react52.forwardRef)(({ children, className, style, .
5633
5737
  {
5634
5738
  ref,
5635
5739
  style,
5636
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "footer")), styles.footer, className),
5740
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "footer")), styles.footer, className),
5637
5741
  ...rest,
5638
5742
  children
5639
5743
  }
@@ -5655,7 +5759,7 @@ Card.Footer = CardFooter;
5655
5759
  var Card_default = Card;
5656
5760
 
5657
5761
  // src/components/primitives/Divider/Divider.tsx
5658
- var import_browser42 = require("@asgardeo/browser");
5762
+ var import_browser43 = require("@asgardeo/browser");
5659
5763
  var import_css31 = require("@emotion/css");
5660
5764
 
5661
5765
  // src/components/primitives/Divider/Divider.styles.ts
@@ -5724,8 +5828,8 @@ var Divider = ({
5724
5828
  "div",
5725
5829
  {
5726
5830
  className: (0, import_css31.cx)(
5727
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider")),
5728
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "vertical")),
5831
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider")),
5832
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "vertical")),
5729
5833
  styles.divider,
5730
5834
  styles.vertical,
5731
5835
  className
@@ -5742,9 +5846,9 @@ var Divider = ({
5742
5846
  "div",
5743
5847
  {
5744
5848
  className: (0, import_css31.cx)(
5745
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider")),
5746
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "horizontal")),
5747
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "with-text")),
5849
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider")),
5850
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "horizontal")),
5851
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "with-text")),
5748
5852
  styles.divider,
5749
5853
  styles.horizontal,
5750
5854
  className
@@ -5754,18 +5858,18 @@ var Divider = ({
5754
5858
  "aria-orientation": "horizontal",
5755
5859
  ...rest,
5756
5860
  children: [
5757
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "line")), styles.line) }),
5861
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "line")), styles.line) }),
5758
5862
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5759
5863
  Typography_default,
5760
5864
  {
5761
5865
  variant: "body2",
5762
5866
  color: "textSecondary",
5763
- className: (0, import_css31.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "text")), styles.text),
5867
+ className: (0, import_css31.cx)((0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "text")), styles.text),
5764
5868
  inline: true,
5765
5869
  children
5766
5870
  }
5767
5871
  ),
5768
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "line")), styles.line) })
5872
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "line")), styles.line) })
5769
5873
  ]
5770
5874
  }
5771
5875
  );
@@ -5774,8 +5878,8 @@ var Divider = ({
5774
5878
  "div",
5775
5879
  {
5776
5880
  className: (0, import_css31.cx)(
5777
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider")),
5778
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "horizontal")),
5881
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider")),
5882
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "horizontal")),
5779
5883
  styles.divider,
5780
5884
  styles.horizontal,
5781
5885
  className
@@ -5791,7 +5895,7 @@ var Divider_default = Divider;
5791
5895
 
5792
5896
  // src/components/primitives/Logo/Logo.tsx
5793
5897
  var import_css33 = require("@emotion/css");
5794
- var import_browser43 = require("@asgardeo/browser");
5898
+ var import_browser44 = require("@asgardeo/browser");
5795
5899
 
5796
5900
  // src/components/primitives/Logo/Logo.styles.ts
5797
5901
  var import_css32 = require("@emotion/css");
@@ -5850,8 +5954,8 @@ var Logo = ({ className, src, alt, title, size = "medium" }) => {
5850
5954
  alt: logoAlt,
5851
5955
  title: logoTitle,
5852
5956
  className: (0, import_css33.cx)(
5853
- (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("logo")),
5854
- (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("logo", size)),
5957
+ (0, import_browser44.withVendorCSSClassPrefix)((0, import_browser44.bem)("logo")),
5958
+ (0, import_browser44.withVendorCSSClassPrefix)((0, import_browser44.bem)("logo", size)),
5855
5959
  styles.logo,
5856
5960
  styles.size,
5857
5961
  className
@@ -6117,7 +6221,7 @@ var handleWebAuthnAuthentication = async (challengeData) => {
6117
6221
  throw new Error(`Passkey authentication failed: ${error instanceof Error ? error.message : "Unknown error"}`);
6118
6222
  }
6119
6223
  };
6120
- var isPasskeyAuthenticator = (authenticator) => authenticator.authenticatorId === import_browser44.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey && authenticator.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.InternalPrompt && authenticator.metadata?.additionalData?.challengeData;
6224
+ var isPasskeyAuthenticator = (authenticator) => authenticator.authenticatorId === import_browser45.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey && authenticator.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.InternalPrompt && authenticator.metadata?.additionalData?.challengeData;
6121
6225
  var BaseSignIn = (props) => {
6122
6226
  const { theme } = useTheme_default();
6123
6227
  const styles = BaseSignIn_styles_default(theme, theme.vars.colors.text.primary);
@@ -6203,9 +6307,9 @@ var BaseSignInContent = ({
6203
6307
  touchAllFields();
6204
6308
  };
6205
6309
  const handleRedirectionIfNeeded = (response) => {
6206
- if (response && "nextStep" in response && response.nextStep && response.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.AuthenticatorPrompt && response.nextStep.authenticators && response.nextStep.authenticators.length === 1) {
6310
+ if (response && "nextStep" in response && response.nextStep && response.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.AuthenticatorPrompt && response.nextStep.authenticators && response.nextStep.authenticators.length === 1) {
6207
6311
  const responseAuthenticator = response.nextStep.authenticators[0];
6208
- if (responseAuthenticator.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt && responseAuthenticator.metadata?.additionalData?.redirectUrl) {
6312
+ if (responseAuthenticator.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt && responseAuthenticator.metadata?.additionalData?.redirectUrl) {
6209
6313
  const redirectUrl = responseAuthenticator.metadata?.additionalData?.redirectUrl;
6210
6314
  const popup = window.open(redirectUrl, "oauth_popup", "width=500,height=600,scrollbars=yes,resizable=yes");
6211
6315
  if (!popup) {
@@ -6291,7 +6395,7 @@ var BaseSignInContent = ({
6291
6395
  });
6292
6396
  popup.close();
6293
6397
  onFlowChange?.(response2);
6294
- if (response2?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6398
+ if (response2?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6295
6399
  onSuccess?.(response2.authData);
6296
6400
  }
6297
6401
  }
@@ -6332,11 +6436,11 @@ var BaseSignInContent = ({
6332
6436
  url: currentFlow?.links[0].href
6333
6437
  });
6334
6438
  onFlowChange?.(response);
6335
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6439
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6336
6440
  onSuccess?.(response.authData);
6337
6441
  return;
6338
6442
  }
6339
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6443
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6340
6444
  setError(t("errors.sign.in.flow.completion.failure"));
6341
6445
  return;
6342
6446
  }
@@ -6347,7 +6451,7 @@ var BaseSignInContent = ({
6347
6451
  const nextStepResponse = response;
6348
6452
  setCurrentFlow(nextStepResponse);
6349
6453
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6350
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6454
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6351
6455
  setCurrentAuthenticator(null);
6352
6456
  } else {
6353
6457
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6365,7 +6469,7 @@ var BaseSignInContent = ({
6365
6469
  }
6366
6470
  }
6367
6471
  } catch (err) {
6368
- const errorMessage = err instanceof import_browser44.AsgardeoAPIError ? err.message : t("errors.sign.in.flow.failure");
6472
+ const errorMessage = err instanceof import_browser45.AsgardeoAPIError ? err.message : t("errors.sign.in.flow.failure");
6369
6473
  setError(errorMessage);
6370
6474
  onError?.(err);
6371
6475
  } finally {
@@ -6404,11 +6508,11 @@ var BaseSignInContent = ({
6404
6508
  url: currentFlow?.links[0].href
6405
6509
  });
6406
6510
  onFlowChange?.(response);
6407
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6511
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6408
6512
  onSuccess?.(response.authData);
6409
6513
  return;
6410
6514
  }
6411
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6515
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6412
6516
  setError(t("errors.sign.in.flow.passkeys.completion.failure"));
6413
6517
  return;
6414
6518
  }
@@ -6416,7 +6520,7 @@ var BaseSignInContent = ({
6416
6520
  const nextStepResponse = response;
6417
6521
  setCurrentFlow(nextStepResponse);
6418
6522
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6419
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6523
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6420
6524
  setCurrentAuthenticator(null);
6421
6525
  } else {
6422
6526
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6445,7 +6549,7 @@ var BaseSignInContent = ({
6445
6549
  }
6446
6550
  setError(errorMessage);
6447
6551
  }
6448
- } else if (authenticator.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt) {
6552
+ } else if (authenticator.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt) {
6449
6553
  const payload = {
6450
6554
  flowId: currentFlow.flowId,
6451
6555
  selectedAuthenticator: {
@@ -6458,7 +6562,7 @@ var BaseSignInContent = ({
6458
6562
  url: currentFlow?.links[0].href
6459
6563
  });
6460
6564
  onFlowChange?.(response);
6461
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6565
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6462
6566
  onSuccess?.(response.authData);
6463
6567
  return;
6464
6568
  }
@@ -6481,11 +6585,11 @@ var BaseSignInContent = ({
6481
6585
  url: currentFlow?.links[0].href
6482
6586
  });
6483
6587
  onFlowChange?.(response);
6484
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6588
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6485
6589
  onSuccess?.(response.authData);
6486
6590
  return;
6487
6591
  }
6488
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6592
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6489
6593
  setError("Authentication failed. Please check your credentials and try again.");
6490
6594
  return;
6491
6595
  }
@@ -6496,7 +6600,7 @@ var BaseSignInContent = ({
6496
6600
  const nextStepResponse = response;
6497
6601
  setCurrentFlow(nextStepResponse);
6498
6602
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6499
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6603
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6500
6604
  setCurrentAuthenticator(null);
6501
6605
  } else {
6502
6606
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6532,11 +6636,11 @@ var BaseSignInContent = ({
6532
6636
  url: currentFlow?.links[0].href
6533
6637
  });
6534
6638
  onFlowChange?.(response);
6535
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6639
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6536
6640
  onSuccess?.(response.authData);
6537
6641
  return;
6538
6642
  }
6539
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6643
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6540
6644
  setError("Authentication failed. Please try again.");
6541
6645
  return;
6542
6646
  }
@@ -6547,7 +6651,7 @@ var BaseSignInContent = ({
6547
6651
  const nextStepResponse = response;
6548
6652
  setCurrentFlow(nextStepResponse);
6549
6653
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6550
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6654
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6551
6655
  setCurrentAuthenticator(null);
6552
6656
  } else {
6553
6657
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6574,7 +6678,7 @@ var BaseSignInContent = ({
6574
6678
  }
6575
6679
  }
6576
6680
  } catch (err) {
6577
- const errorMessage = err instanceof import_browser44.AsgardeoAPIError ? err?.message : "Authenticator selection failed";
6681
+ const errorMessage = err instanceof import_browser45.AsgardeoAPIError ? err?.message : "Authenticator selection failed";
6578
6682
  setError(errorMessage);
6579
6683
  onError?.(err);
6580
6684
  } finally {
@@ -6586,7 +6690,7 @@ var BaseSignInContent = ({
6586
6690
  setFormTouched(param, true);
6587
6691
  };
6588
6692
  const hasMultipleOptions = (0, import_react56.useCallback)(
6589
- () => currentFlow && "nextStep" in currentFlow && currentFlow.nextStep?.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && currentFlow.nextStep?.authenticators && currentFlow.nextStep.authenticators.length > 1,
6693
+ () => currentFlow && "nextStep" in currentFlow && currentFlow.nextStep?.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && currentFlow.nextStep?.authenticators && currentFlow.nextStep.authenticators.length > 1,
6590
6694
  [currentFlow]
6591
6695
  );
6592
6696
  const getAvailableAuthenticators = (0, import_react56.useCallback)(() => {
@@ -6597,30 +6701,30 @@ var BaseSignInContent = ({
6597
6701
  }, [currentFlow]);
6598
6702
  const containerClasses = (0, import_css35.cx)(
6599
6703
  [
6600
- (0, import_browser44.withVendorCSSClassPrefix)("signin"),
6601
- (0, import_browser44.withVendorCSSClassPrefix)(`signin--${size}`),
6602
- (0, import_browser44.withVendorCSSClassPrefix)(`signin--${variant}`)
6704
+ (0, import_browser45.withVendorCSSClassPrefix)("signin"),
6705
+ (0, import_browser45.withVendorCSSClassPrefix)(`signin--${size}`),
6706
+ (0, import_browser45.withVendorCSSClassPrefix)(`signin--${variant}`)
6603
6707
  ],
6604
6708
  className
6605
6709
  );
6606
6710
  const inputClasses = (0, import_css35.cx)(
6607
6711
  [
6608
- (0, import_browser44.withVendorCSSClassPrefix)("signin__input"),
6609
- size === "small" && (0, import_browser44.withVendorCSSClassPrefix)("signin__input--small"),
6610
- size === "large" && (0, import_browser44.withVendorCSSClassPrefix)("signin__input--large")
6712
+ (0, import_browser45.withVendorCSSClassPrefix)("signin__input"),
6713
+ size === "small" && (0, import_browser45.withVendorCSSClassPrefix)("signin__input--small"),
6714
+ size === "large" && (0, import_browser45.withVendorCSSClassPrefix)("signin__input--large")
6611
6715
  ],
6612
6716
  inputClassName
6613
6717
  );
6614
6718
  const buttonClasses = (0, import_css35.cx)(
6615
6719
  [
6616
- (0, import_browser44.withVendorCSSClassPrefix)("signin__button"),
6617
- size === "small" && (0, import_browser44.withVendorCSSClassPrefix)("signin__button--small"),
6618
- size === "large" && (0, import_browser44.withVendorCSSClassPrefix)("signin__button--large")
6720
+ (0, import_browser45.withVendorCSSClassPrefix)("signin__button"),
6721
+ size === "small" && (0, import_browser45.withVendorCSSClassPrefix)("signin__button--small"),
6722
+ size === "large" && (0, import_browser45.withVendorCSSClassPrefix)("signin__button--large")
6619
6723
  ],
6620
6724
  buttonClassName
6621
6725
  );
6622
- const errorClasses = (0, import_css35.cx)([(0, import_browser44.withVendorCSSClassPrefix)("signin__error")], errorClassName);
6623
- const messageClasses = (0, import_css35.cx)([(0, import_browser44.withVendorCSSClassPrefix)("signin__messages")], messageClassName);
6726
+ const errorClasses = (0, import_css35.cx)([(0, import_browser45.withVendorCSSClassPrefix)("signin__error")], errorClassName);
6727
+ const messageClasses = (0, import_css35.cx)([(0, import_browser45.withVendorCSSClassPrefix)("signin__messages")], messageClassName);
6624
6728
  (0, import_react56.useEffect)(() => {
6625
6729
  if (isLoading) {
6626
6730
  return;
@@ -6637,12 +6741,12 @@ var BaseSignInContent = ({
6637
6741
  setCurrentFlow(response);
6638
6742
  setIsInitialized(true);
6639
6743
  onFlowChange?.(response);
6640
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6744
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6641
6745
  onSuccess?.(response.authData || {});
6642
6746
  return;
6643
6747
  }
6644
6748
  if (response?.nextStep?.authenticators?.length > 0) {
6645
- if (response.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && response.nextStep.authenticators.length > 1) {
6749
+ if (response.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && response.nextStep.authenticators.length > 1) {
6646
6750
  setCurrentAuthenticator(null);
6647
6751
  } else {
6648
6752
  const authenticator = response.nextStep.authenticators[0];
@@ -6660,7 +6764,7 @@ var BaseSignInContent = ({
6660
6764
  );
6661
6765
  }
6662
6766
  } catch (err) {
6663
- const errorMessage = err instanceof import_browser44.AsgardeoAPIError ? err.message : t("errors.sign.in.initialization");
6767
+ const errorMessage = err instanceof import_browser45.AsgardeoAPIError ? err.message : t("errors.sign.in.initialization");
6664
6768
  setError(errorMessage);
6665
6769
  onError?.(err);
6666
6770
  } finally {
@@ -6677,7 +6781,7 @@ var BaseSignInContent = ({
6677
6781
  if (hasMultipleOptions() && !currentAuthenticator) {
6678
6782
  const availableAuthenticators = getAvailableAuthenticators();
6679
6783
  const userPromptAuthenticators = availableAuthenticators.filter(
6680
- (auth) => auth.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.UserPrompt || // Fallback: LOCAL authenticators with params are typically user prompts
6784
+ (auth) => auth.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.UserPrompt || // Fallback: LOCAL authenticators with params are typically user prompts
6681
6785
  auth.idp === "LOCAL" && auth.metadata?.params && auth.metadata.params.length > 0
6682
6786
  );
6683
6787
  const optionAuthenticators = availableAuthenticators.filter((auth) => !userPromptAuthenticators.includes(auth)).filter((authenticator) => !HIDDEN_AUTHENTICATORS.includes(authenticator.authenticatorId));
@@ -6862,15 +6966,15 @@ var SignIn = ({ className, size = "medium", ...rest }) => {
6862
6966
  var SignIn_default = SignIn;
6863
6967
 
6864
6968
  // src/components/presentation/SignUp/BaseSignUp.tsx
6865
- var import_browser52 = require("@asgardeo/browser");
6969
+ var import_browser53 = require("@asgardeo/browser");
6866
6970
  var import_css37 = require("@emotion/css");
6867
6971
  var import_react58 = require("react");
6868
6972
 
6869
6973
  // src/components/presentation/SignUp/options/SignUpOptionFactory.tsx
6870
- var import_browser51 = require("@asgardeo/browser");
6974
+ var import_browser52 = require("@asgardeo/browser");
6871
6975
 
6872
6976
  // src/components/presentation/SignUp/options/CheckboxInput.tsx
6873
- var import_browser45 = require("@asgardeo/browser");
6977
+ var import_browser46 = require("@asgardeo/browser");
6874
6978
  var CheckboxInput = ({
6875
6979
  component,
6876
6980
  formValues,
@@ -6884,7 +6988,7 @@ var CheckboxInput = ({
6884
6988
  const value = formValues[fieldName] || "";
6885
6989
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
6886
6990
  return createField({
6887
- type: import_browser45.FieldType.Checkbox,
6991
+ type: import_browser46.FieldType.Checkbox,
6888
6992
  name: fieldName,
6889
6993
  label: config["label"] || "",
6890
6994
  placeholder: config["placeholder"] || "",
@@ -6898,7 +7002,7 @@ var CheckboxInput = ({
6898
7002
  var CheckboxInput_default = CheckboxInput;
6899
7003
 
6900
7004
  // src/components/presentation/SignUp/options/DateInput.tsx
6901
- var import_browser46 = require("@asgardeo/browser");
7005
+ var import_browser47 = require("@asgardeo/browser");
6902
7006
  var DateInput = ({
6903
7007
  component,
6904
7008
  formValues,
@@ -6912,7 +7016,7 @@ var DateInput = ({
6912
7016
  const value = formValues[fieldName] || "";
6913
7017
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
6914
7018
  return createField({
6915
- type: import_browser46.FieldType.Date,
7019
+ type: import_browser47.FieldType.Date,
6916
7020
  name: fieldName,
6917
7021
  label: config["label"] || "",
6918
7022
  placeholder: config["placeholder"] || "",
@@ -6945,7 +7049,7 @@ var DividerComponent = ({ component }) => {
6945
7049
  var DividerComponent_default = DividerComponent;
6946
7050
 
6947
7051
  // src/components/presentation/SignUp/options/EmailInput.tsx
6948
- var import_browser47 = require("@asgardeo/browser");
7052
+ var import_browser48 = require("@asgardeo/browser");
6949
7053
  var EmailInput = ({
6950
7054
  component,
6951
7055
  formValues,
@@ -6959,7 +7063,7 @@ var EmailInput = ({
6959
7063
  const value = formValues[fieldName] || "";
6960
7064
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
6961
7065
  return createField({
6962
- type: import_browser47.FieldType.Email,
7066
+ type: import_browser48.FieldType.Email,
6963
7067
  name: fieldName,
6964
7068
  label: config["label"] || "Email",
6965
7069
  placeholder: config["placeholder"] || "Enter your email",
@@ -6997,75 +7101,8 @@ var FormContainer = (props) => {
6997
7101
  };
6998
7102
  var FormContainer_default = FormContainer;
6999
7103
 
7000
- // src/components/presentation/SignUp/options/GoogleButton.tsx
7001
- var import_jsx_runtime57 = require("react/jsx-runtime");
7002
- var GoogleButton2 = ({
7003
- component,
7004
- isLoading,
7005
- buttonClassName = "",
7006
- size = "medium",
7007
- onSubmit
7008
- }) => {
7009
- const config = component.config || {};
7010
- const buttonText = config["text"] || config["label"] || "Continue with Google";
7011
- const handleClick = () => {
7012
- if (onSubmit) {
7013
- onSubmit(component, {});
7014
- }
7015
- };
7016
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7017
- Button_default,
7018
- {
7019
- type: "button",
7020
- variant: "solid",
7021
- color: "secondary",
7022
- size,
7023
- disabled: isLoading,
7024
- onClick: handleClick,
7025
- className: buttonClassName,
7026
- style: { width: "100%" },
7027
- startIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("svg", { width: "18", height: "18", viewBox: "0 0 67.91 67.901", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("g", { transform: "translate(-0.001 -0.001)", children: [
7028
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7029
- "path",
7030
- {
7031
- 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",
7032
- transform: "translate(0 -119.93)",
7033
- fill: "#fbbb00"
7034
- }
7035
- ),
7036
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7037
- "path",
7038
- {
7039
- 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",
7040
- transform: "translate(-226.93 -180.567)",
7041
- fill: "#518ef8"
7042
- }
7043
- ),
7044
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7045
- "path",
7046
- {
7047
- 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",
7048
- transform: "translate(-26.463 -268.374)",
7049
- fill: "#28b446"
7050
- }
7051
- ),
7052
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7053
- "path",
7054
- {
7055
- 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",
7056
- transform: "translate(-24.828)",
7057
- fill: "#f14336"
7058
- }
7059
- )
7060
- ] }) }),
7061
- children: buttonText
7062
- }
7063
- );
7064
- };
7065
- var GoogleButton_default2 = GoogleButton2;
7066
-
7067
7104
  // src/components/presentation/SignUp/options/ImageComponent.tsx
7068
- var import_jsx_runtime58 = require("react/jsx-runtime");
7105
+ var import_jsx_runtime57 = require("react/jsx-runtime");
7069
7106
  var ImageComponent = ({ component }) => {
7070
7107
  const { theme } = useTheme_default();
7071
7108
  const config = component.config || {};
@@ -7082,7 +7119,7 @@ var ImageComponent = ({ component }) => {
7082
7119
  if (!src) {
7083
7120
  return null;
7084
7121
  }
7085
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7122
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7086
7123
  "img",
7087
7124
  {
7088
7125
  src,
@@ -7097,7 +7134,7 @@ var ImageComponent = ({ component }) => {
7097
7134
  var ImageComponent_default = ImageComponent;
7098
7135
 
7099
7136
  // src/components/presentation/SignUp/options/NumberInput.tsx
7100
- var import_browser48 = require("@asgardeo/browser");
7137
+ var import_browser49 = require("@asgardeo/browser");
7101
7138
  var NumberInput = ({
7102
7139
  component,
7103
7140
  formValues,
@@ -7111,7 +7148,7 @@ var NumberInput = ({
7111
7148
  const value = formValues[fieldName] || "";
7112
7149
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7113
7150
  return createField({
7114
- type: import_browser48.FieldType.Number,
7151
+ type: import_browser49.FieldType.Number,
7115
7152
  name: fieldName,
7116
7153
  label: config["label"] || "",
7117
7154
  placeholder: config["placeholder"] || "",
@@ -7125,7 +7162,7 @@ var NumberInput = ({
7125
7162
  var NumberInput_default = NumberInput;
7126
7163
 
7127
7164
  // src/components/presentation/SignUp/options/PasswordInput.tsx
7128
- var import_browser49 = require("@asgardeo/browser");
7165
+ var import_browser50 = require("@asgardeo/browser");
7129
7166
  var PasswordInput = ({
7130
7167
  component,
7131
7168
  formValues,
@@ -7171,7 +7208,7 @@ var PasswordInput = ({
7171
7208
  });
7172
7209
  const hint = validationHints.length > 0 ? validationHints.join(", ") : config["hint"] || "";
7173
7210
  return createField({
7174
- type: import_browser49.FieldType.Password,
7211
+ type: import_browser50.FieldType.Password,
7175
7212
  name: fieldName,
7176
7213
  label: config["label"] || "Password",
7177
7214
  placeholder: config["placeholder"] || "Enter your password",
@@ -7185,7 +7222,7 @@ var PasswordInput = ({
7185
7222
  var PasswordInput_default = PasswordInput;
7186
7223
 
7187
7224
  // src/components/presentation/SignUp/options/SubmitButton.tsx
7188
- var import_jsx_runtime59 = require("react/jsx-runtime");
7225
+ var import_jsx_runtime58 = require("react/jsx-runtime");
7189
7226
  var ButtonComponent = ({
7190
7227
  component,
7191
7228
  isLoading,
@@ -7218,7 +7255,7 @@ var ButtonComponent = ({
7218
7255
  onSubmit(component);
7219
7256
  }
7220
7257
  };
7221
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7258
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7222
7259
  Button_default,
7223
7260
  {
7224
7261
  type: buttonType === "submit" ? "submit" : "button",
@@ -7229,7 +7266,7 @@ var ButtonComponent = ({
7229
7266
  onClick: buttonType !== "submit" ? handleClick : void 0,
7230
7267
  className: buttonClassName,
7231
7268
  style: { width: "100%" },
7232
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Spinner_default, { size: "small" }) : buttonText
7269
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Spinner_default, { size: "small" }) : buttonText
7233
7270
  },
7234
7271
  component.id
7235
7272
  );
@@ -7237,7 +7274,7 @@ var ButtonComponent = ({
7237
7274
  var SubmitButton_default = ButtonComponent;
7238
7275
 
7239
7276
  // src/components/presentation/SignUp/options/TelephoneInput.tsx
7240
- var import_jsx_runtime60 = require("react/jsx-runtime");
7277
+ var import_jsx_runtime59 = require("react/jsx-runtime");
7241
7278
  var TelephoneInput = ({
7242
7279
  component,
7243
7280
  formValues,
@@ -7250,7 +7287,7 @@ var TelephoneInput = ({
7250
7287
  const fieldName = config["identifier"] || config["name"] || component.id;
7251
7288
  const value = formValues[fieldName] || "";
7252
7289
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7253
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7290
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7254
7291
  TextField_default,
7255
7292
  {
7256
7293
  name: fieldName,
@@ -7270,7 +7307,7 @@ var TelephoneInput = ({
7270
7307
  var TelephoneInput_default = TelephoneInput;
7271
7308
 
7272
7309
  // src/components/presentation/SignUp/options/TextInput.tsx
7273
- var import_browser50 = require("@asgardeo/browser");
7310
+ var import_browser51 = require("@asgardeo/browser");
7274
7311
  var TextInput = ({
7275
7312
  component,
7276
7313
  formValues,
@@ -7284,7 +7321,7 @@ var TextInput = ({
7284
7321
  const value = formValues[fieldName] || "";
7285
7322
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7286
7323
  return createField({
7287
- type: import_browser50.FieldType.Text,
7324
+ type: import_browser51.FieldType.Text,
7288
7325
  name: fieldName,
7289
7326
  label: config["label"] || "",
7290
7327
  placeholder: config["placeholder"] || "",
@@ -7298,7 +7335,7 @@ var TextInput = ({
7298
7335
  var TextInput_default = TextInput;
7299
7336
 
7300
7337
  // src/components/presentation/SignUp/options/Typography.tsx
7301
- var import_jsx_runtime61 = require("react/jsx-runtime");
7338
+ var import_jsx_runtime60 = require("react/jsx-runtime");
7302
7339
  var TypographyComponent = ({ component }) => {
7303
7340
  const { theme } = useTheme_default();
7304
7341
  const config = component.config || {};
@@ -7339,7 +7376,7 @@ var TypographyComponent = ({ component }) => {
7339
7376
  default:
7340
7377
  typographyVariant = "body1";
7341
7378
  }
7342
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7379
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7343
7380
  Typography_default,
7344
7381
  {
7345
7382
  variant: typographyVariant,
@@ -7352,50 +7389,66 @@ var TypographyComponent = ({ component }) => {
7352
7389
  var Typography_default2 = TypographyComponent;
7353
7390
 
7354
7391
  // src/components/presentation/SignUp/options/SignUpOptionFactory.tsx
7355
- var import_jsx_runtime62 = require("react/jsx-runtime");
7356
- var createSignUpComponent = (props) => {
7357
- const { component } = props;
7392
+ var import_jsx_runtime61 = require("react/jsx-runtime");
7393
+ var createSignUpComponent = ({ component, onSubmit, ...rest }) => {
7358
7394
  switch (component.type) {
7359
- case import_browser51.EmbeddedFlowComponentType.Typography:
7360
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Typography_default2, { ...props });
7361
- case import_browser51.EmbeddedFlowComponentType.Input:
7395
+ case import_browser52.EmbeddedFlowComponentType.Typography:
7396
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Typography_default2, { component, onSubmit, ...rest });
7397
+ case import_browser52.EmbeddedFlowComponentType.Input:
7362
7398
  const inputVariant = component.variant?.toUpperCase();
7363
7399
  const inputType = component.config["type"]?.toLowerCase();
7364
7400
  if (inputVariant === "EMAIL" || inputType === "email") {
7365
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(EmailInput_default, { ...props });
7401
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(EmailInput_default, { component, onSubmit, ...rest });
7366
7402
  }
7367
7403
  if (inputVariant === "PASSWORD" || inputType === "password") {
7368
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(PasswordInput_default, { ...props });
7404
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(PasswordInput_default, { component, onSubmit, ...rest });
7369
7405
  }
7370
7406
  if (inputVariant === "TELEPHONE" || inputType === "tel") {
7371
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TelephoneInput_default, { ...props });
7407
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TelephoneInput_default, { component, onSubmit, ...rest });
7372
7408
  }
7373
7409
  if (inputVariant === "NUMBER" || inputType === "number") {
7374
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(NumberInput_default, { ...props });
7410
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(NumberInput_default, { component, onSubmit, ...rest });
7375
7411
  }
7376
7412
  if (inputVariant === "DATE" || inputType === "date") {
7377
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DateInput_default, { ...props });
7413
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DateInput_default, { component, onSubmit, ...rest });
7378
7414
  }
7379
7415
  if (inputVariant === "CHECKBOX" || inputType === "checkbox") {
7380
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CheckboxInput_default, { ...props });
7416
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CheckboxInput_default, { component, onSubmit, ...rest });
7381
7417
  }
7382
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TextInput_default, { ...props });
7383
- case import_browser51.EmbeddedFlowComponentType.Button: {
7418
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TextInput_default, { component, onSubmit, ...rest });
7419
+ case import_browser52.EmbeddedFlowComponentType.Button: {
7384
7420
  const buttonVariant = component.variant?.toUpperCase();
7385
7421
  const buttonText = component.config["text"] || component.config["label"] || "";
7386
- if (buttonVariant === "SOCIAL" && buttonText.toLowerCase().includes("google")) {
7387
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(GoogleButton_default2, { ...props });
7422
+ if (buttonVariant === "SOCIAL") {
7423
+ if (buttonText.toLowerCase().includes("google")) {
7424
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(GoogleButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7425
+ }
7426
+ if (buttonText.toLowerCase().includes("github")) {
7427
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(GitHubButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7428
+ }
7429
+ if (buttonText.toLowerCase().includes("microsoft")) {
7430
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MicrosoftButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7431
+ }
7432
+ if (buttonText.toLowerCase().includes("facebook")) {
7433
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FacebookButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7434
+ }
7435
+ if (buttonText.toLowerCase().includes("linkedin")) {
7436
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(LinkedInButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7437
+ }
7438
+ if (buttonText.toLowerCase().includes("ethereum")) {
7439
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SignInWithEthereumButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7440
+ }
7388
7441
  }
7389
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SubmitButton_default, { ...props });
7442
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SubmitButton_default, { component, onSubmit, ...rest });
7390
7443
  }
7391
- case import_browser51.EmbeddedFlowComponentType.Form:
7392
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FormContainer_default, { ...props });
7393
- case import_browser51.EmbeddedFlowComponentType.Divider:
7394
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DividerComponent_default, { ...props });
7395
- case import_browser51.EmbeddedFlowComponentType.Image:
7396
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ImageComponent_default, { ...props });
7444
+ case import_browser52.EmbeddedFlowComponentType.Form:
7445
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormContainer_default, { component, onSubmit, ...rest });
7446
+ case import_browser52.EmbeddedFlowComponentType.Divider:
7447
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DividerComponent_default, { component, onSubmit, ...rest });
7448
+ case import_browser52.EmbeddedFlowComponentType.Image:
7449
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ImageComponent_default, { component, onSubmit, ...rest });
7397
7450
  default:
7398
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {});
7451
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {});
7399
7452
  }
7400
7453
  };
7401
7454
  var createSignUpOptionFromComponent = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => createSignUpComponent({
@@ -7567,13 +7620,13 @@ var useStyles17 = (theme, colorScheme) => {
7567
7620
  var BaseSignUp_styles_default = useStyles17;
7568
7621
 
7569
7622
  // src/components/presentation/SignUp/BaseSignUp.tsx
7570
- var import_jsx_runtime63 = require("react/jsx-runtime");
7623
+ var import_jsx_runtime62 = require("react/jsx-runtime");
7571
7624
  var BaseSignUp = (props) => {
7572
7625
  const { theme, colorScheme } = useTheme_default();
7573
7626
  const styles = BaseSignUp_styles_default(theme, colorScheme);
7574
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { children: [
7575
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: styles.logoContainer, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Logo_default, { size: "large" }) }),
7576
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(FlowProvider_default, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(BaseSignUpContent, { ...props }) })
7627
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { children: [
7628
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: styles.logoContainer, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Logo_default, { size: "large" }) }),
7629
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FlowProvider_default, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BaseSignUpContent, { ...props }) })
7577
7630
  ] });
7578
7631
  };
7579
7632
  var BaseSignUpContent = ({
@@ -7607,7 +7660,7 @@ var BaseSignUpContent = ({
7607
7660
  const fields = [];
7608
7661
  const processComponents = (comps) => {
7609
7662
  comps.forEach((component) => {
7610
- if (component.type === import_browser52.EmbeddedFlowComponentType.Input) {
7663
+ if (component.type === import_browser53.EmbeddedFlowComponentType.Input) {
7611
7664
  const config = component.config || {};
7612
7665
  fields.push({
7613
7666
  name: config.name || component.id,
@@ -7699,11 +7752,11 @@ var BaseSignUpContent = ({
7699
7752
  };
7700
7753
  const response = await onSubmit(payload);
7701
7754
  onFlowChange?.(response);
7702
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7755
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7703
7756
  onComplete?.(response);
7704
7757
  return;
7705
7758
  }
7706
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7759
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7707
7760
  if (handleRedirectionIfNeeded(response, component)) {
7708
7761
  return;
7709
7762
  }
@@ -7711,7 +7764,7 @@ var BaseSignUpContent = ({
7711
7764
  setupFormFields(response);
7712
7765
  }
7713
7766
  } catch (err) {
7714
- const errorMessage = err instanceof import_browser52.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7767
+ const errorMessage = err instanceof import_browser53.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7715
7768
  setError(errorMessage);
7716
7769
  onError?.(err);
7717
7770
  } finally {
@@ -7719,7 +7772,7 @@ var BaseSignUpContent = ({
7719
7772
  }
7720
7773
  };
7721
7774
  const handleRedirectionIfNeeded = (response, component) => {
7722
- if (response?.type === import_browser52.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL) {
7775
+ if (response?.type === import_browser53.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL) {
7723
7776
  const redirectUrl = response.data.redirectURL;
7724
7777
  const popup = window.open(redirectUrl, "oauth_popup", "width=500,height=600,scrollbars=yes,resizable=yes");
7725
7778
  if (!popup) {
@@ -7748,16 +7801,16 @@ var BaseSignUpContent = ({
7748
7801
  try {
7749
7802
  const continueResponse = await onSubmit(payload);
7750
7803
  onFlowChange?.(continueResponse);
7751
- if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7804
+ if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7752
7805
  onComplete?.(continueResponse);
7753
- } else if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7806
+ } else if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7754
7807
  setCurrentFlow(continueResponse);
7755
7808
  setupFormFields(continueResponse);
7756
7809
  }
7757
7810
  popup.close();
7758
7811
  cleanup();
7759
7812
  } catch (err) {
7760
- const errorMessage = err instanceof import_browser52.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7813
+ const errorMessage = err instanceof import_browser53.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7761
7814
  setError(errorMessage);
7762
7815
  onError?.(err);
7763
7816
  popup.close();
@@ -7809,15 +7862,15 @@ var BaseSignUpContent = ({
7809
7862
  try {
7810
7863
  const continueResponse = await onSubmit(payload);
7811
7864
  onFlowChange?.(continueResponse);
7812
- if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7865
+ if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7813
7866
  onComplete?.(continueResponse);
7814
- } else if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7867
+ } else if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7815
7868
  setCurrentFlow(continueResponse);
7816
7869
  setupFormFields(continueResponse);
7817
7870
  }
7818
7871
  popup.close();
7819
7872
  } catch (err) {
7820
- const errorMessage = err instanceof import_browser52.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7873
+ const errorMessage = err instanceof import_browser53.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7821
7874
  setError(errorMessage);
7822
7875
  onError?.(err);
7823
7876
  popup.close();
@@ -7836,30 +7889,30 @@ var BaseSignUpContent = ({
7836
7889
  };
7837
7890
  const containerClasses = (0, import_css37.cx)(
7838
7891
  [
7839
- (0, import_browser52.withVendorCSSClassPrefix)("signup"),
7840
- (0, import_browser52.withVendorCSSClassPrefix)(`signup--${size}`),
7841
- (0, import_browser52.withVendorCSSClassPrefix)(`signup--${variant}`)
7892
+ (0, import_browser53.withVendorCSSClassPrefix)("signup"),
7893
+ (0, import_browser53.withVendorCSSClassPrefix)(`signup--${size}`),
7894
+ (0, import_browser53.withVendorCSSClassPrefix)(`signup--${variant}`)
7842
7895
  ],
7843
7896
  className
7844
7897
  );
7845
7898
  const inputClasses = (0, import_css37.cx)(
7846
7899
  [
7847
- (0, import_browser52.withVendorCSSClassPrefix)("signup__input"),
7848
- size === "small" && (0, import_browser52.withVendorCSSClassPrefix)("signup__input--small"),
7849
- size === "large" && (0, import_browser52.withVendorCSSClassPrefix)("signup__input--large")
7900
+ (0, import_browser53.withVendorCSSClassPrefix)("signup__input"),
7901
+ size === "small" && (0, import_browser53.withVendorCSSClassPrefix)("signup__input--small"),
7902
+ size === "large" && (0, import_browser53.withVendorCSSClassPrefix)("signup__input--large")
7850
7903
  ],
7851
7904
  inputClassName
7852
7905
  );
7853
7906
  const buttonClasses = (0, import_css37.cx)(
7854
7907
  [
7855
- (0, import_browser52.withVendorCSSClassPrefix)("signup__button"),
7856
- size === "small" && (0, import_browser52.withVendorCSSClassPrefix)("signup__button--small"),
7857
- size === "large" && (0, import_browser52.withVendorCSSClassPrefix)("signup__button--large")
7908
+ (0, import_browser53.withVendorCSSClassPrefix)("signup__button"),
7909
+ size === "small" && (0, import_browser53.withVendorCSSClassPrefix)("signup__button--small"),
7910
+ size === "large" && (0, import_browser53.withVendorCSSClassPrefix)("signup__button--large")
7858
7911
  ],
7859
7912
  buttonClassName
7860
7913
  );
7861
- const errorClasses = (0, import_css37.cx)([(0, import_browser52.withVendorCSSClassPrefix)("signup__error")], errorClassName);
7862
- const messageClasses = (0, import_css37.cx)([(0, import_browser52.withVendorCSSClassPrefix)("signup__messages")], messageClassName);
7914
+ const errorClasses = (0, import_css37.cx)([(0, import_browser53.withVendorCSSClassPrefix)("signup__error")], errorClassName);
7915
+ const messageClasses = (0, import_css37.cx)([(0, import_browser53.withVendorCSSClassPrefix)("signup__messages")], messageClassName);
7863
7916
  const renderComponents = (0, import_react58.useCallback)(
7864
7917
  (components) => renderSignUpComponents(
7865
7918
  components,
@@ -7903,11 +7956,11 @@ var BaseSignUpContent = ({
7903
7956
  setCurrentFlow(response);
7904
7957
  setIsFlowInitialized(true);
7905
7958
  onFlowChange?.(response);
7906
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7959
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7907
7960
  onComplete?.(response);
7908
7961
  return;
7909
7962
  }
7910
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7963
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7911
7964
  setupFormFields(response);
7912
7965
  }
7913
7966
  } catch (err) {
@@ -7931,38 +7984,38 @@ var BaseSignUpContent = ({
7931
7984
  t
7932
7985
  ]);
7933
7986
  if (!isFlowInitialized && isLoading) {
7934
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card_default.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: styles.loadingContainer, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Spinner_default, { size: "medium" }) }) }) });
7987
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Card_default.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: styles.loadingContainer, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Spinner_default, { size: "medium" }) }) }) });
7935
7988
  }
7936
7989
  if (!currentFlow) {
7937
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card_default.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Alert_default, { variant: "error", className: errorClasses, children: [
7938
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
7939
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7990
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Card_default.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Alert_default, { variant: "error", className: errorClasses, children: [
7991
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
7992
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7940
7993
  ] }) }) });
7941
7994
  }
7942
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: [
7943
- flowMessages && flowMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: styles.messagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
7995
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: [
7996
+ flowMessages && flowMessages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: styles.messagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7944
7997
  Alert_default,
7945
7998
  {
7946
7999
  variant: message.type?.toLowerCase() === "error" ? "error" : "info",
7947
8000
  className: (0, import_css37.cx)(styles.messageItem, messageClasses),
7948
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Description, { children: message.message })
8001
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Description, { children: message.message })
7949
8002
  },
7950
8003
  message.id || index
7951
8004
  )) }) }),
7952
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Card_default.Content, { children: [
7953
- error && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Alert_default, { variant: "error", className: (0, import_css37.cx)(styles.errorContainer, errorClasses), children: [
7954
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
7955
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Description, { children: error })
8005
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Card_default.Content, { children: [
8006
+ error && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Alert_default, { variant: "error", className: (0, import_css37.cx)(styles.errorContainer, errorClasses), children: [
8007
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
8008
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Description, { children: error })
7956
8009
  ] }),
7957
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
8010
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
7958
8011
  ] })
7959
8012
  ] });
7960
8013
  };
7961
8014
  var BaseSignUp_default = BaseSignUp;
7962
8015
 
7963
8016
  // src/components/presentation/SignUp/SignUp.tsx
7964
- var import_browser53 = require("@asgardeo/browser");
7965
- var import_jsx_runtime64 = require("react/jsx-runtime");
8017
+ var import_browser54 = require("@asgardeo/browser");
8018
+ var import_jsx_runtime63 = require("react/jsx-runtime");
7966
8019
  var SignUp = ({
7967
8020
  className,
7968
8021
  size = "medium",
@@ -7975,21 +8028,21 @@ var SignUp = ({
7975
8028
  const { signUp, isInitialized } = useAsgardeo_default();
7976
8029
  const handleInitialize = async (payload) => await signUp(
7977
8030
  payload || {
7978
- flowType: import_browser53.EmbeddedFlowType.Registration
8031
+ flowType: import_browser54.EmbeddedFlowType.Registration
7979
8032
  }
7980
8033
  );
7981
8034
  const handleOnSubmit = async (payload) => await signUp(payload);
7982
8035
  const handleComplete = (response) => {
7983
8036
  onComplete?.(response);
7984
- if (shouldRedirectAfterSignUp && response?.type !== import_browser53.EmbeddedFlowResponseType.Redirection && afterSignUpUrl) {
8037
+ if (shouldRedirectAfterSignUp && response?.type !== import_browser54.EmbeddedFlowResponseType.Redirection && afterSignUpUrl) {
7985
8038
  window.location.href = afterSignUpUrl;
7986
8039
  }
7987
- if (shouldRedirectAfterSignUp && response?.type === import_browser53.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL && !response.data.redirectURL.includes("oauth") && // Not a social provider redirect
8040
+ if (shouldRedirectAfterSignUp && response?.type === import_browser54.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL && !response.data.redirectURL.includes("oauth") && // Not a social provider redirect
7988
8041
  !response.data.redirectURL.includes("auth")) {
7989
8042
  window.location.href = response.data.redirectURL;
7990
8043
  }
7991
8044
  };
7992
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
8045
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
7993
8046
  BaseSignUp_default,
7994
8047
  {
7995
8048
  afterSignUpUrl,
@@ -8007,75 +8060,75 @@ var SignUp = ({
8007
8060
  var SignUp_default = SignUp;
8008
8061
 
8009
8062
  // src/components/presentation/User/BaseUser.tsx
8010
- var import_jsx_runtime65 = require("react/jsx-runtime");
8063
+ var import_jsx_runtime64 = require("react/jsx-runtime");
8011
8064
  var BaseUser = ({ user, children, fallback = null }) => {
8012
8065
  if (!user) {
8013
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: fallback });
8066
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: fallback });
8014
8067
  }
8015
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: children(user) });
8068
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: children(user) });
8016
8069
  };
8017
8070
  BaseUser.displayName = "BaseUser";
8018
8071
  var BaseUser_default = BaseUser;
8019
8072
 
8020
8073
  // src/components/presentation/User/User.tsx
8021
- var import_jsx_runtime66 = require("react/jsx-runtime");
8074
+ var import_jsx_runtime65 = require("react/jsx-runtime");
8022
8075
  var User5 = ({ children, fallback = null }) => {
8023
8076
  const { user } = useAsgardeo_default();
8024
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(BaseUser_default, { user, fallback, children });
8077
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(BaseUser_default, { user, fallback, children });
8025
8078
  };
8026
8079
  User5.displayName = "User";
8027
8080
  var User_default = User5;
8028
8081
 
8029
8082
  // src/components/presentation/Organization/BaseOrganization.tsx
8030
- var import_jsx_runtime67 = require("react/jsx-runtime");
8083
+ var import_jsx_runtime66 = require("react/jsx-runtime");
8031
8084
  var BaseOrganization = ({ children, fallback = null, organization }) => {
8032
8085
  if (!organization) {
8033
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: fallback });
8086
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: fallback });
8034
8087
  }
8035
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: children(organization) });
8088
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: children(organization) });
8036
8089
  };
8037
8090
  BaseOrganization.displayName = "BaseOrganization";
8038
8091
  var BaseOrganization_default = BaseOrganization;
8039
8092
 
8040
8093
  // src/components/presentation/Organization/Organization.tsx
8041
- var import_jsx_runtime68 = require("react/jsx-runtime");
8094
+ var import_jsx_runtime67 = require("react/jsx-runtime");
8042
8095
  var Organization5 = ({ children, fallback = null }) => {
8043
8096
  const { currentOrganization } = useOrganization_default();
8044
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(BaseOrganization_default, { organization: currentOrganization, fallback, children });
8097
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BaseOrganization_default, { organization: currentOrganization, fallback, children });
8045
8098
  };
8046
8099
  Organization5.displayName = "Organization";
8047
8100
  var Organization_default = Organization5;
8048
8101
 
8049
8102
  // src/components/presentation/UserProfile/BaseUserProfile.tsx
8050
- var import_browser59 = require("@asgardeo/browser");
8103
+ var import_browser60 = require("@asgardeo/browser");
8051
8104
  var import_css45 = require("@emotion/css");
8052
8105
  var import_react67 = require("react");
8053
8106
 
8054
8107
  // src/utils/getMappedUserProfileValue.ts
8055
- var import_browser54 = require("@asgardeo/browser");
8108
+ var import_browser55 = require("@asgardeo/browser");
8056
8109
  var getMappedUserProfileValue = (key, mappings, user) => {
8057
8110
  if (!key || !mappings || !user) {
8058
8111
  return void 0;
8059
8112
  }
8060
8113
  const mapping = mappings[key];
8061
8114
  if (!mapping) {
8062
- return (0, import_browser54.get)(user, key);
8115
+ return (0, import_browser55.get)(user, key);
8063
8116
  }
8064
8117
  if (Array.isArray(mapping)) {
8065
8118
  for (const path of mapping) {
8066
- const value = (0, import_browser54.get)(user, path);
8119
+ const value = (0, import_browser55.get)(user, path);
8067
8120
  if (value !== void 0 && value !== null && value !== "") {
8068
8121
  return value;
8069
8122
  }
8070
8123
  }
8071
8124
  return void 0;
8072
8125
  }
8073
- return (0, import_browser54.get)(user, mapping);
8126
+ return (0, import_browser55.get)(user, mapping);
8074
8127
  };
8075
8128
  var getMappedUserProfileValue_default = getMappedUserProfileValue;
8076
8129
 
8077
8130
  // src/components/primitives/Avatar/Avatar.tsx
8078
- var import_browser55 = require("@asgardeo/browser");
8131
+ var import_browser56 = require("@asgardeo/browser");
8079
8132
  var import_css39 = require("@emotion/css");
8080
8133
  var import_react60 = require("react");
8081
8134
 
@@ -8129,18 +8182,25 @@ var useStyles18 = (theme, colorScheme, size, variant, backgroundColor) => {
8129
8182
  }
8130
8183
  }
8131
8184
  `;
8185
+ const iconStyles = import_css38.css`
8186
+ width: 60%;
8187
+ height: 60%;
8188
+ fill: ${backgroundColor ? "#ffffff" : theme.vars.colors.text.secondary};
8189
+ opacity: 0.8;
8190
+ `;
8132
8191
  return {
8133
8192
  avatar: baseAvatar,
8134
8193
  variant: variantStyles[variant],
8135
8194
  image: imageStyles,
8136
- skeleton: skeletonStyles
8195
+ skeleton: skeletonStyles,
8196
+ icon: iconStyles
8137
8197
  };
8138
8198
  }, [theme, colorScheme, size, variant, backgroundColor]);
8139
8199
  };
8140
8200
  var Avatar_styles_default = useStyles18;
8141
8201
 
8142
8202
  // src/components/primitives/Avatar/Avatar.tsx
8143
- var import_jsx_runtime69 = require("react/jsx-runtime");
8203
+ var import_jsx_runtime68 = require("react/jsx-runtime");
8144
8204
  var Avatar = ({
8145
8205
  alt = "User avatar",
8146
8206
  background = "random",
@@ -8148,7 +8208,8 @@ var Avatar = ({
8148
8208
  imageUrl,
8149
8209
  name,
8150
8210
  size = 64,
8151
- variant = "circular"
8211
+ variant = "circular",
8212
+ isLoading = false
8152
8213
  }) => {
8153
8214
  const { theme, colorScheme } = useTheme_default();
8154
8215
  const generateBackgroundColor = (inputString) => {
@@ -8182,24 +8243,37 @@ var Avatar = ({
8182
8243
  return background;
8183
8244
  }, [background, name, imageUrl]);
8184
8245
  const styles = Avatar_styles_default(theme, colorScheme, size, variant, backgroundColor);
8246
+ const isDefaultState = !imageUrl && !name && !isLoading;
8185
8247
  const getInitials = (fullName) => fullName.split(" ").map((part) => part[0]).slice(0, 2).join("").toUpperCase();
8186
8248
  const renderContent = () => {
8187
8249
  if (imageUrl) {
8188
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("img", { src: imageUrl, alt, className: (0, import_css39.cx)((0, import_browser55.withVendorCSSClassPrefix)((0, import_browser55.bem)("avatar", "image")), styles.image) });
8250
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("img", { src: imageUrl, alt, className: (0, import_css39.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", "image")), styles.image) });
8189
8251
  }
8190
8252
  if (name) {
8191
8253
  return getInitials(name);
8192
8254
  }
8193
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0, import_css39.cx)((0, import_browser55.withVendorCSSClassPrefix)((0, import_browser55.bem)("avatar", "skeleton")), styles.skeleton) });
8255
+ if (isLoading) {
8256
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: (0, import_css39.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", "skeleton")), styles.skeleton) });
8257
+ }
8258
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
8259
+ "svg",
8260
+ {
8261
+ xmlns: "http://www.w3.org/2000/svg",
8262
+ viewBox: "0 0 640 640",
8263
+ className: (0, import_css39.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", "icon")), styles.icon),
8264
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("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" })
8265
+ }
8266
+ );
8194
8267
  };
8195
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8268
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
8196
8269
  "div",
8197
8270
  {
8198
8271
  className: (0, import_css39.cx)(
8199
- (0, import_browser55.withVendorCSSClassPrefix)((0, import_browser55.bem)("avatar")),
8272
+ (0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar")),
8200
8273
  styles.avatar,
8201
8274
  styles.variant,
8202
- (0, import_browser55.withVendorCSSClassPrefix)((0, import_browser55.bem)("avatar", null, variant)),
8275
+ (0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", null, variant)),
8276
+ isDefaultState && (0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", "default")),
8203
8277
  className
8204
8278
  ),
8205
8279
  children: renderContent()
@@ -8209,14 +8283,14 @@ var Avatar = ({
8209
8283
  var Avatar_default = Avatar;
8210
8284
 
8211
8285
  // src/components/primitives/Dialog/Dialog.tsx
8212
- var import_browser56 = require("@asgardeo/browser");
8286
+ var import_browser57 = require("@asgardeo/browser");
8213
8287
  var import_react62 = require("@floating-ui/react");
8214
8288
  var import_css41 = require("@emotion/css");
8215
8289
  var import_react63 = __toESM(require("react"), 1);
8216
8290
 
8217
8291
  // src/components/primitives/Icons/LogOut.tsx
8218
- var import_jsx_runtime70 = require("react/jsx-runtime");
8219
- var LogOut = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
8292
+ var import_jsx_runtime69 = require("react/jsx-runtime");
8293
+ var LogOut = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
8220
8294
  "svg",
8221
8295
  {
8222
8296
  xmlns: "http://www.w3.org/2000/svg",
@@ -8230,17 +8304,17 @@ var LogOut = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
8230
8304
  strokeLinejoin: "round",
8231
8305
  ...props,
8232
8306
  children: [
8233
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "m16 17 5-5-5-5" }),
8234
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M21 12H9" }),
8235
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8307
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { d: "m16 17 5-5-5-5" }),
8308
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { d: "M21 12H9" }),
8309
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8236
8310
  ]
8237
8311
  }
8238
8312
  );
8239
8313
  var LogOut_default = LogOut;
8240
8314
 
8241
8315
  // src/components/primitives/Icons/Plus.tsx
8242
- var import_jsx_runtime71 = require("react/jsx-runtime");
8243
- var Plus = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8316
+ var import_jsx_runtime70 = require("react/jsx-runtime");
8317
+ var Plus = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
8244
8318
  "svg",
8245
8319
  {
8246
8320
  xmlns: "http://www.w3.org/2000/svg",
@@ -8254,16 +8328,16 @@ var Plus = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8254
8328
  strokeLinejoin: "round",
8255
8329
  ...props,
8256
8330
  children: [
8257
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "M5 12h14" }),
8258
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "M12 5v14" })
8331
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M5 12h14" }),
8332
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M12 5v14" })
8259
8333
  ]
8260
8334
  }
8261
8335
  );
8262
8336
  var Plus_default = Plus;
8263
8337
 
8264
8338
  // src/components/primitives/Icons/User.tsx
8265
- var import_jsx_runtime72 = require("react/jsx-runtime");
8266
- var User7 = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
8339
+ var import_jsx_runtime71 = require("react/jsx-runtime");
8340
+ var User7 = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8267
8341
  "svg",
8268
8342
  {
8269
8343
  xmlns: "http://www.w3.org/2000/svg",
@@ -8277,16 +8351,16 @@ var User7 = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
8277
8351
  strokeLinejoin: "round",
8278
8352
  ...props,
8279
8353
  children: [
8280
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8281
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("circle", { cx: "12", cy: "7", r: "4" })
8354
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8355
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("circle", { cx: "12", cy: "7", r: "4" })
8282
8356
  ]
8283
8357
  }
8284
8358
  );
8285
8359
  var User_default2 = User7;
8286
8360
 
8287
8361
  // src/components/primitives/Icons/X.tsx
8288
- var import_jsx_runtime73 = require("react/jsx-runtime");
8289
- var X = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
8362
+ var import_jsx_runtime72 = require("react/jsx-runtime");
8363
+ var X = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
8290
8364
  "svg",
8291
8365
  {
8292
8366
  xmlns: "http://www.w3.org/2000/svg",
@@ -8300,8 +8374,8 @@ var X = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
8300
8374
  strokeLinejoin: "round",
8301
8375
  ...props,
8302
8376
  children: [
8303
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M18 6 6 18" }),
8304
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "m6 6 12 12" })
8377
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M18 6 6 18" }),
8378
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "m6 6 12 12" })
8305
8379
  ]
8306
8380
  }
8307
8381
  );
@@ -8324,17 +8398,6 @@ var useStyles19 = (theme, colorScheme) => {
8324
8398
  border-radius: ${theme.vars.borderRadius.large};
8325
8399
  box-shadow: 0 2px 8px ${colorScheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.15)"};
8326
8400
  outline: none;
8327
- max-width: 35vw;
8328
- min-width: 35vw;
8329
- @media (max-width: 900px) {
8330
- max-width: 80vw;
8331
- min-width: 80vw;
8332
- }
8333
- @media (max-width: 600px) {
8334
- max-width: 95vw;
8335
- min-width: 95vw;
8336
- }
8337
- max-height: 90vh;
8338
8401
  overflow-y: auto;
8339
8402
  z-index: 10000;
8340
8403
  `;
@@ -8384,7 +8447,7 @@ var useStyles19 = (theme, colorScheme) => {
8384
8447
  var Dialog_styles_default = useStyles19;
8385
8448
 
8386
8449
  // src/components/primitives/Dialog/Dialog.tsx
8387
- var import_jsx_runtime74 = require("react/jsx-runtime");
8450
+ var import_jsx_runtime73 = require("react/jsx-runtime");
8388
8451
  function useDialog({
8389
8452
  initialOpen = false,
8390
8453
  open: controlledOpen,
@@ -8430,7 +8493,7 @@ var useDialogContext = () => {
8430
8493
  };
8431
8494
  function Dialog({ children, ...options }) {
8432
8495
  const dialog = useDialog(options);
8433
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DialogContext.Provider, { value: dialog, children });
8496
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogContext.Provider, { value: dialog, children });
8434
8497
  }
8435
8498
  var DialogTrigger = import_react63.default.forwardRef(
8436
8499
  ({ children, asChild = false, ...props }, propRef) => {
@@ -8448,7 +8511,7 @@ var DialogTrigger = import_react63.default.forwardRef(
8448
8511
  })
8449
8512
  );
8450
8513
  }
8451
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8514
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8452
8515
  }
8453
8516
  );
8454
8517
  var DialogContent = import_react63.default.forwardRef((props, propRef) => {
@@ -8457,11 +8520,11 @@ var DialogContent = import_react63.default.forwardRef((props, propRef) => {
8457
8520
  const styles = Dialog_styles_default(theme, colorScheme);
8458
8521
  const ref = (0, import_react62.useMergeRefs)([context.refs.setFloating, propRef]);
8459
8522
  if (!floatingContext.open) return null;
8460
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react62.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react62.FloatingOverlay, { className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "overlay")), styles.overlay), lockScroll: true, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react62.FloatingFocusManager, { context: floatingContext, children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8523
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react62.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react62.FloatingOverlay, { className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "overlay")), styles.overlay), lockScroll: true, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react62.FloatingFocusManager, { context: floatingContext, initialFocus: -1, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8461
8524
  "div",
8462
8525
  {
8463
8526
  ref,
8464
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "content")), styles.content, props.className),
8527
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "content")), styles.content, props.className),
8465
8528
  "aria-labelledby": context.labelId,
8466
8529
  "aria-describedby": context.descriptionId,
8467
8530
  ...context.getFloatingProps(props),
@@ -8479,18 +8542,18 @@ var DialogHeading = import_react63.default.forwardRef(
8479
8542
  context.setLabelId(id);
8480
8543
  return () => context.setLabelId(void 0);
8481
8544
  }, [id, context.setLabelId]);
8482
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "header")), styles.header), children: [
8483
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8545
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "header")), styles.header), children: [
8546
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8484
8547
  "h2",
8485
8548
  {
8486
8549
  ...props,
8487
8550
  ref,
8488
8551
  id,
8489
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "title")), styles.headerTitle),
8552
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "title")), styles.headerTitle),
8490
8553
  children
8491
8554
  }
8492
8555
  ),
8493
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8556
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8494
8557
  Button_default,
8495
8558
  {
8496
8559
  color: "tertiary",
@@ -8499,7 +8562,7 @@ var DialogHeading = import_react63.default.forwardRef(
8499
8562
  shape: "round",
8500
8563
  onClick: () => context.setOpen(false),
8501
8564
  "aria-label": "Close",
8502
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(X_default, { width: 16, height: 16 })
8565
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(X_default, { width: 16, height: 16 })
8503
8566
  }
8504
8567
  )
8505
8568
  ] });
@@ -8515,13 +8578,13 @@ var DialogDescription = import_react63.default.forwardRef(
8515
8578
  context.setDescriptionId(id);
8516
8579
  return () => context.setDescriptionId(void 0);
8517
8580
  }, [id, context.setDescriptionId]);
8518
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8581
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8519
8582
  "p",
8520
8583
  {
8521
8584
  ...props,
8522
8585
  ref,
8523
8586
  id,
8524
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "description")), styles.description, props.className),
8587
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "description")), styles.description, props.className),
8525
8588
  children
8526
8589
  }
8527
8590
  );
@@ -8545,13 +8608,13 @@ var DialogClose = import_react63.default.forwardRef(({ children, asChild = false
8545
8608
  onClick: handleClick
8546
8609
  });
8547
8610
  }
8548
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8611
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8549
8612
  Button_default,
8550
8613
  {
8551
8614
  ...props,
8552
8615
  ref,
8553
8616
  onClick: handleClick,
8554
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "close")), props.className),
8617
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "close")), props.className),
8555
8618
  variant: "text",
8556
8619
  children
8557
8620
  }
@@ -8572,7 +8635,7 @@ var Dialog_default = Dialog;
8572
8635
  // src/components/primitives/MultiInput/MultiInput.tsx
8573
8636
  var import_react65 = require("react");
8574
8637
  var import_css43 = require("@emotion/css");
8575
- var import_browser57 = require("@asgardeo/browser");
8638
+ var import_browser58 = require("@asgardeo/browser");
8576
8639
 
8577
8640
  // src/components/primitives/MultiInput/MultiInput.styles.ts
8578
8641
  var import_css42 = require("@emotion/css");
@@ -8668,7 +8731,7 @@ var useStyles20 = (theme, colorScheme, disabled, hasError, canAddMore, canRemove
8668
8731
  var MultiInput_styles_default = useStyles20;
8669
8732
 
8670
8733
  // src/components/primitives/MultiInput/MultiInput.tsx
8671
- var import_jsx_runtime75 = require("react/jsx-runtime");
8734
+ var import_jsx_runtime74 = require("react/jsx-runtime");
8672
8735
  var MultiInput = ({
8673
8736
  label,
8674
8737
  error,
@@ -8691,8 +8754,8 @@ var MultiInput = ({
8691
8754
  const canAddMore = !maxFields || values.length < maxFields;
8692
8755
  const canRemove = values.length > minFields;
8693
8756
  const styles = MultiInput_styles_default(theme, colorScheme, !!disabled, !!error, canAddMore, canRemove);
8694
- const PlusIcon = ({ className: className2 }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: (0, import_css43.cx)(styles.icon, className2), children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("path", { d: "M12 5v14M5 12h14" }) });
8695
- const BinIcon = ({ className: className2 }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: (0, import_css43.cx)(styles.icon, className2), children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("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" }) });
8757
+ const PlusIcon = ({ className: className2 }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: (0, import_css43.cx)(styles.icon, className2), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("path", { d: "M12 5v14M5 12h14" }) });
8758
+ const BinIcon = ({ className: className2 }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: (0, import_css43.cx)(styles.icon, className2), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("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" }) });
8696
8759
  const handleAddValue = (0, import_react65.useCallback)(
8697
8760
  (newValue) => {
8698
8761
  if (newValue.trim() !== "" && (!maxFields || values.length < maxFields)) {
@@ -8736,9 +8799,9 @@ var MultiInput = ({
8736
8799
  };
8737
8800
  switch (fieldType) {
8738
8801
  case "DATE_TIME":
8739
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(DatePicker_default, { ...commonProps });
8802
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DatePicker_default, { ...commonProps });
8740
8803
  case "BOOLEAN":
8741
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8804
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8742
8805
  Checkbox_default,
8743
8806
  {
8744
8807
  ...commonProps,
@@ -8747,7 +8810,7 @@ var MultiInput = ({
8747
8810
  }
8748
8811
  );
8749
8812
  default:
8750
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextField_default, { ...commonProps, type });
8813
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(TextField_default, { ...commonProps, type });
8751
8814
  }
8752
8815
  },
8753
8816
  [placeholder, disabled, startIcon, endIcon, error, fieldType, type]
@@ -8759,43 +8822,43 @@ var MultiInput = ({
8759
8822
  setCurrentInputValue("");
8760
8823
  }
8761
8824
  }, [currentInputValue, handleAddValue]);
8762
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
8825
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
8763
8826
  FormControl_default,
8764
8827
  {
8765
8828
  error,
8766
8829
  helperText,
8767
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input")), className),
8830
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input")), className),
8768
8831
  style,
8769
8832
  children: [
8770
- label && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(InputLabel_default, { required, error: !!error, children: label }),
8771
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "container")), styles.container), children: [
8772
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "input-row")), styles.inputRow), children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "input-wrapper")), styles.inputWrapper), children: renderInputField(
8833
+ label && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(InputLabel_default, { required, error: !!error, children: label }),
8834
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "container")), styles.container), children: [
8835
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "input-row")), styles.inputRow), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "input-wrapper")), styles.inputWrapper), children: renderInputField(
8773
8836
  currentInputValue,
8774
8837
  setCurrentInputValue,
8775
- canAddMore ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PlusIcon, { className: styles.plusIcon }) : void 0,
8838
+ canAddMore ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PlusIcon, { className: styles.plusIcon }) : void 0,
8776
8839
  canAddMore ? handleInputSubmit : void 0
8777
8840
  ) }) }),
8778
- values.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "list-container")), styles.listContainer), children: values.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
8841
+ values.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "list-container")), styles.listContainer), children: values.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
8779
8842
  "div",
8780
8843
  {
8781
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "list-item")), styles.listItem),
8844
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "list-item")), styles.listItem),
8782
8845
  children: [
8783
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8846
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8784
8847
  "span",
8785
8848
  {
8786
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "list-item-text")), styles.listItemText),
8849
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "list-item-text")), styles.listItemText),
8787
8850
  children: value
8788
8851
  }
8789
8852
  ),
8790
- canRemove && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8853
+ canRemove && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8791
8854
  "button",
8792
8855
  {
8793
8856
  type: "button",
8794
8857
  onClick: () => handleRemoveValue(index),
8795
8858
  disabled,
8796
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "remove-button")), styles.removeButton),
8859
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "remove-button")), styles.removeButton),
8797
8860
  title: "Remove value",
8798
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(BinIcon, { className: styles.icon })
8861
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(BinIcon, { className: styles.icon })
8799
8862
  }
8800
8863
  )
8801
8864
  ]
@@ -8812,7 +8875,7 @@ var MultiInput_default = MultiInput;
8812
8875
  // src/components/presentation/UserProfile/BaseUserProfile.styles.ts
8813
8876
  var import_css44 = require("@emotion/css");
8814
8877
  var import_react66 = require("react");
8815
- var import_browser58 = require("@asgardeo/browser");
8878
+ var import_browser59 = require("@asgardeo/browser");
8816
8879
  var useStyles21 = (theme, colorScheme) => {
8817
8880
  const valuePlaceholder = import_css44.css`
8818
8881
  font-style: italic;
@@ -8923,7 +8986,7 @@ var useStyles21 = (theme, colorScheme) => {
8923
8986
  max-width: 350px;
8924
8987
  text-align: left;
8925
8988
 
8926
- .${(0, import_browser58.withVendorCSSClassPrefix)("form-control")} {
8989
+ .${(0, import_browser59.withVendorCSSClassPrefix)("form-control")} {
8927
8990
  margin-bottom: 0;
8928
8991
  }
8929
8992
 
@@ -8983,7 +9046,7 @@ var useStyles21 = (theme, colorScheme) => {
8983
9046
  var BaseUserProfile_styles_default = useStyles21;
8984
9047
 
8985
9048
  // src/components/presentation/UserProfile/BaseUserProfile.tsx
8986
- var import_jsx_runtime76 = require("react/jsx-runtime");
9049
+ var import_jsx_runtime75 = require("react/jsx-runtime");
8987
9050
  var fieldsToSkip = [
8988
9051
  "roles.default",
8989
9052
  "active",
@@ -9019,13 +9082,31 @@ var BaseUserProfile = ({
9019
9082
  onOpenChange,
9020
9083
  onUpdate,
9021
9084
  open = false,
9022
- error = null
9085
+ error = null,
9086
+ isLoading = false,
9087
+ showFields = [],
9088
+ hideFields = []
9023
9089
  }) => {
9024
9090
  const { theme, colorScheme } = useTheme_default();
9025
9091
  const [editedUser, setEditedUser] = (0, import_react67.useState)(flattenedProfile || profile);
9026
9092
  const [editingFields, setEditingFields] = (0, import_react67.useState)({});
9027
9093
  const { t } = useTranslation_default();
9028
- const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9094
+ const shouldShowField = (0, import_react67.useCallback)(
9095
+ (fieldName) => {
9096
+ if (fieldsToSkip.includes(fieldName)) {
9097
+ return false;
9098
+ }
9099
+ if (hideFields.length > 0 && hideFields.includes(fieldName)) {
9100
+ return false;
9101
+ }
9102
+ if (showFields.length > 0) {
9103
+ return showFields.includes(fieldName);
9104
+ }
9105
+ return true;
9106
+ },
9107
+ [showFields, hideFields]
9108
+ );
9109
+ const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9029
9110
  "svg",
9030
9111
  {
9031
9112
  width: "16",
@@ -9036,7 +9117,7 @@ var BaseUserProfile = ({
9036
9117
  strokeWidth: "2",
9037
9118
  strokeLinecap: "round",
9038
9119
  strokeLinejoin: "round",
9039
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
9120
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
9040
9121
  }
9041
9122
  );
9042
9123
  const toggleFieldEdit = (0, import_react67.useCallback)((fieldName) => {
@@ -9061,12 +9142,12 @@ var BaseUserProfile = ({
9061
9142
  }, []);
9062
9143
  const ObjectDisplay = ({ data }) => {
9063
9144
  if (!data || typeof data !== "object") return null;
9064
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("table", { className: styles.value, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("tr", { children: [
9065
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("td", { className: styles.objectKey, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("strong", { children: [
9145
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("table", { className: styles.value, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("tr", { children: [
9146
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("td", { className: styles.objectKey, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("strong", { children: [
9066
9147
  formatLabel(key),
9067
9148
  ":"
9068
9149
  ] }) }),
9069
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ObjectDisplay, { data: value }) : String(value) })
9150
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ObjectDisplay, { data: value }) : String(value) })
9070
9151
  ] }, key)) }) });
9071
9152
  };
9072
9153
  function set(obj, path, value) {
@@ -9093,7 +9174,7 @@ var BaseUserProfile = ({
9093
9174
  fieldValue = fieldValue.filter((v) => v !== void 0 && v !== null && v !== "");
9094
9175
  }
9095
9176
  let payload = {};
9096
- if (schema.schemaId && schema.schemaId !== import_browser59.WellKnownSchemaIds.User) {
9177
+ if (schema.schemaId && schema.schemaId !== import_browser60.WellKnownSchemaIds.User) {
9097
9178
  payload = {
9098
9179
  [schema.schemaId]: {
9099
9180
  [fieldName]: fieldValue
@@ -9136,9 +9217,9 @@ var BaseUserProfile = ({
9136
9217
  const { value, displayName, description, name, type, required, mutability, subAttributes, multiValued } = schema;
9137
9218
  const label = displayName || description || name || "";
9138
9219
  if (subAttributes && Array.isArray(subAttributes)) {
9139
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_jsx_runtime76.Fragment, { children: subAttributes.map((subAttr, index) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: styles.field, children: [
9140
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9141
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("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) })
9220
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: subAttributes.map((subAttr, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: styles.field, children: [
9221
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9222
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("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) })
9142
9223
  ] }, index)) });
9143
9224
  }
9144
9225
  if (Array.isArray(value) || multiValued) {
@@ -9154,9 +9235,9 @@ var BaseUserProfile = ({
9154
9235
  } else {
9155
9236
  fieldValues = [];
9156
9237
  }
9157
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9158
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9159
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.value, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9238
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9239
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9240
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.value, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9160
9241
  MultiInput_default,
9161
9242
  {
9162
9243
  values: fieldValues,
@@ -9187,9 +9268,9 @@ var BaseUserProfile = ({
9187
9268
  } else {
9188
9269
  displayValue2 = "-";
9189
9270
  }
9190
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9191
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9192
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: (0, import_css45.cx)(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9271
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9272
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9273
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: (0, import_css45.cx)(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9193
9274
  Button_default,
9194
9275
  {
9195
9276
  onClick: onStartEdit,
@@ -9204,7 +9285,7 @@ var BaseUserProfile = ({
9204
9285
  ] });
9205
9286
  }
9206
9287
  if (type === "COMPLEX" && typeof value === "object") {
9207
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ObjectDisplay, { data: value });
9288
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ObjectDisplay, { data: value });
9208
9289
  }
9209
9290
  if (isEditing && onEditValue && mutability !== "READ_ONLY" && !readonlyFields.includes(name || "")) {
9210
9291
  const fieldValue = editedUser && name && editedUser[name] !== void 0 ? editedUser[name] : flattenedProfile && name && flattenedProfile[name] !== void 0 ? flattenedProfile[name] : value || "";
@@ -9219,16 +9300,16 @@ var BaseUserProfile = ({
9219
9300
  let field;
9220
9301
  switch (type) {
9221
9302
  case "STRING":
9222
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TextField_default, { ...commonProps });
9303
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextField_default, { ...commonProps });
9223
9304
  break;
9224
9305
  case "DATE_TIME":
9225
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DatePicker_default, { ...commonProps });
9306
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(DatePicker_default, { ...commonProps });
9226
9307
  break;
9227
9308
  case "BOOLEAN":
9228
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9309
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9229
9310
  break;
9230
9311
  case "COMPLEX":
9231
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9312
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9232
9313
  "textarea",
9233
9314
  {
9234
9315
  value: fieldValue,
@@ -9240,11 +9321,11 @@ var BaseUserProfile = ({
9240
9321
  );
9241
9322
  break;
9242
9323
  default:
9243
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TextField_default, { ...commonProps });
9324
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextField_default, { ...commonProps });
9244
9325
  }
9245
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9246
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9247
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.value, children: field })
9326
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9327
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9328
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.value, children: field })
9248
9329
  ] });
9249
9330
  }
9250
9331
  const hasValue = value !== void 0 && value !== null && value !== "";
@@ -9257,9 +9338,9 @@ var BaseUserProfile = ({
9257
9338
  } else {
9258
9339
  displayValue = "-";
9259
9340
  }
9260
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9261
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9262
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: (0, import_css45.cx)(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9341
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9342
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9343
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: (0, import_css45.cx)(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9263
9344
  Button_default,
9264
9345
  {
9265
9346
  onClick: onStartEdit,
@@ -9287,8 +9368,8 @@ var BaseUserProfile = ({
9287
9368
  alignItems: "center",
9288
9369
  gap: theme.vars.spacing.unit
9289
9370
  };
9290
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: styles.field, children: [
9291
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.fieldInner, children: renderSchemaField(
9371
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: styles.field, children: [
9372
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.fieldInner, children: renderSchemaField(
9292
9373
  schema,
9293
9374
  isFieldEditing,
9294
9375
  (value) => {
@@ -9298,21 +9379,21 @@ var BaseUserProfile = ({
9298
9379
  },
9299
9380
  () => toggleFieldEdit(schema.name)
9300
9381
  ) }),
9301
- editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: styles.fieldActions, children: [
9302
- isFieldEditing && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9303
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9304
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9382
+ editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: styles.fieldActions, children: [
9383
+ isFieldEditing && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9384
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9385
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9305
9386
  ] }),
9306
- !isFieldEditing && hasValue && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9387
+ !isFieldEditing && hasValue && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9307
9388
  Button_default,
9308
9389
  {
9309
9390
  size: "small",
9310
9391
  color: "tertiary",
9311
- variant: "text",
9392
+ variant: "icon",
9312
9393
  onClick: () => toggleFieldEdit(schema.name),
9313
9394
  title: "Edit",
9314
9395
  className: styles.editButton,
9315
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(PencilIcon, {})
9396
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PencilIcon, {})
9316
9397
  }
9317
9398
  )
9318
9399
  ] })
@@ -9332,7 +9413,7 @@ var BaseUserProfile = ({
9332
9413
  const containerClasses = (0, import_css45.cx)(
9333
9414
  styles.root,
9334
9415
  cardLayout ? styles.card : "",
9335
- (0, import_browser59.withVendorCSSClassPrefix)("user-profile"),
9416
+ (0, import_browser60.withVendorCSSClassPrefix)("user-profile"),
9336
9417
  className
9337
9418
  );
9338
9419
  const currentUser = flattenedProfile || profile;
@@ -9341,30 +9422,31 @@ var BaseUserProfile = ({
9341
9422
  const renderProfileWithoutSchemas = () => {
9342
9423
  if (!currentUser) return null;
9343
9424
  const profileEntries = Object.entries(currentUser).filter(([key, value]) => {
9344
- if (fieldsToSkip.includes(key)) return false;
9425
+ if (!shouldShowField(key)) return false;
9345
9426
  return value !== void 0 && value !== "" && value !== null;
9346
9427
  }).sort(([a], [b]) => a.localeCompare(b));
9347
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_jsx_runtime76.Fragment, { children: profileEntries.map(([key, value]) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: styles.field, children: [
9348
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: formatLabel(key) }),
9349
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9428
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: profileEntries.map(([key, value]) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: styles.field, children: [
9429
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: formatLabel(key) }),
9430
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9350
9431
  ] }, key)) });
9351
9432
  };
9352
- const profileContent = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Card_default, { className: containerClasses, children: [
9353
- error && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Alert_default, { variant: "error", className: (0, import_css45.cx)((0, import_browser59.withVendorCSSClassPrefix)((0, import_browser59.bem)("user-profile", "alert")), styles.alert), children: [
9354
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
9355
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Alert_default.Description, { children: error })
9433
+ const profileContent = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Card_default, { className: containerClasses, children: [
9434
+ error && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Alert_default, { variant: "error", className: (0, import_css45.cx)((0, import_browser60.withVendorCSSClassPrefix)((0, import_browser60.bem)("user-profile", "alert")), styles.alert), children: [
9435
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
9436
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Alert_default.Description, { children: error })
9356
9437
  ] }),
9357
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.header, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9438
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.header, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9358
9439
  Avatar,
9359
9440
  {
9360
9441
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, currentUser),
9361
9442
  name: getDisplayName(),
9362
9443
  size: 80,
9363
- alt: `${getDisplayName()}'s avatar`
9444
+ alt: `${getDisplayName()}'s avatar`,
9445
+ isLoading
9364
9446
  }
9365
9447
  ) }),
9366
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9367
- if (fieldsToSkip.includes(schema.name)) return false;
9448
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9449
+ if (!schema.name || !shouldShowField(schema.name)) return false;
9368
9450
  if (!editable) {
9369
9451
  const value = flattenedProfile && schema.name ? flattenedProfile[schema.name] : void 0;
9370
9452
  return value !== void 0 && value !== "" && value !== null;
@@ -9380,13 +9462,13 @@ var BaseUserProfile = ({
9380
9462
  ...schema,
9381
9463
  value
9382
9464
  };
9383
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9465
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9384
9466
  }) : renderProfileWithoutSchemas() })
9385
9467
  ] });
9386
9468
  if (mode === "popup") {
9387
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Dialog_default.Content, { children: [
9388
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9389
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.popup, children: profileContent })
9469
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Dialog_default.Content, { children: [
9470
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9471
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.popup, children: profileContent })
9390
9472
  ] }) });
9391
9473
  }
9392
9474
  return profileContent;
@@ -9397,8 +9479,8 @@ var BaseUserProfile_default = BaseUserProfile;
9397
9479
  var import_react68 = require("react");
9398
9480
 
9399
9481
  // src/api/updateMeProfile.ts
9400
- var import_browser60 = require("@asgardeo/browser");
9401
- var httpClient5 = import_browser60.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser60.AsgardeoSPAClient.getInstance());
9482
+ var import_browser61 = require("@asgardeo/browser");
9483
+ var httpClient5 = import_browser61.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser61.AsgardeoSPAClient.getInstance());
9402
9484
  var updateMeProfile = async ({ fetcher, ...requestConfig }) => {
9403
9485
  const defaultFetcher = async (url, config) => {
9404
9486
  const response = await httpClient5({
@@ -9415,7 +9497,7 @@ var updateMeProfile = async ({ fetcher, ...requestConfig }) => {
9415
9497
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
9416
9498
  };
9417
9499
  };
9418
- return (0, import_browser60.updateMeProfile)({
9500
+ return (0, import_browser61.updateMeProfile)({
9419
9501
  ...requestConfig,
9420
9502
  fetcher: fetcher || defaultFetcher
9421
9503
  });
@@ -9423,10 +9505,10 @@ var updateMeProfile = async ({ fetcher, ...requestConfig }) => {
9423
9505
  var updateMeProfile_default = updateMeProfile;
9424
9506
 
9425
9507
  // src/components/presentation/UserProfile/UserProfile.tsx
9426
- var import_browser61 = require("@asgardeo/browser");
9427
- var import_jsx_runtime77 = require("react/jsx-runtime");
9508
+ var import_browser62 = require("@asgardeo/browser");
9509
+ var import_jsx_runtime76 = require("react/jsx-runtime");
9428
9510
  var UserProfile3 = ({ ...rest }) => {
9429
- const { baseUrl } = useAsgardeo_default();
9511
+ const { baseUrl, isLoading } = useAsgardeo_default();
9430
9512
  const { profile, flattenedProfile, schemas, onUpdateProfile } = useUser_default();
9431
9513
  const { t } = useTranslation_default();
9432
9514
  const [error, setError] = (0, import_react68.useState)(null);
@@ -9437,13 +9519,13 @@ var UserProfile3 = ({ ...rest }) => {
9437
9519
  onUpdateProfile(response);
9438
9520
  } catch (error2) {
9439
9521
  let message = t("user.profile.update.generic.error");
9440
- if (error2 instanceof import_browser61.AsgardeoError) {
9522
+ if (error2 instanceof import_browser62.AsgardeoError) {
9441
9523
  message = error2?.message;
9442
9524
  }
9443
9525
  setError(message);
9444
9526
  }
9445
9527
  };
9446
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9528
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9447
9529
  BaseUserProfile_default,
9448
9530
  {
9449
9531
  profile,
@@ -9458,7 +9540,7 @@ var UserProfile3 = ({ ...rest }) => {
9458
9540
  var UserProfile_default = UserProfile3;
9459
9541
 
9460
9542
  // src/components/presentation/UserDropdown/BaseUserDropdown.tsx
9461
- var import_browser62 = require("@asgardeo/browser");
9543
+ var import_browser63 = require("@asgardeo/browser");
9462
9544
  var import_react70 = require("@floating-ui/react");
9463
9545
  var import_css47 = require("@emotion/css");
9464
9546
  var import_react71 = require("react");
@@ -9648,7 +9730,7 @@ var useStyles22 = (theme, colorScheme) => {
9648
9730
  var BaseUserDropdown_styles_default = useStyles22;
9649
9731
 
9650
9732
  // src/components/presentation/UserDropdown/BaseUserDropdown.tsx
9651
- var import_jsx_runtime78 = require("react/jsx-runtime");
9733
+ var import_jsx_runtime77 = require("react/jsx-runtime");
9652
9734
  var BaseUserDropdown = ({
9653
9735
  fallback = null,
9654
9736
  className = "",
@@ -9707,14 +9789,14 @@ var BaseUserDropdown = ({
9707
9789
  defaultMenuItems.push({
9708
9790
  label: "Manage Profile",
9709
9791
  onClick: onManageProfile,
9710
- icon: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(User_default2, { width: "16", height: "16" })
9792
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(User_default2, { width: "16", height: "16" })
9711
9793
  });
9712
9794
  }
9713
9795
  if (onSignOut) {
9714
9796
  defaultMenuItems.push({
9715
9797
  label: "Sign Out",
9716
9798
  onClick: onSignOut,
9717
- icon: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(LogOut_default, { width: "16", height: "16" })
9799
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(LogOut_default, { width: "16", height: "16" })
9718
9800
  });
9719
9801
  }
9720
9802
  const allMenuItems = [...menuItems];
@@ -9724,18 +9806,18 @@ var BaseUserDropdown = ({
9724
9806
  }
9725
9807
  allMenuItems.push(...defaultMenuItems);
9726
9808
  }
9727
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown"), className), children: [
9728
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
9809
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown"), className), children: [
9810
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
9729
9811
  Button_default,
9730
9812
  {
9731
9813
  ref: refs.setReference,
9732
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__trigger"), styles.trigger),
9814
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__trigger"), styles.trigger),
9733
9815
  color: "tertiary",
9734
9816
  variant: "text",
9735
9817
  size: "medium",
9736
9818
  ...getReferenceProps(),
9737
9819
  children: [
9738
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9820
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9739
9821
  Avatar,
9740
9822
  {
9741
9823
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9744,27 +9826,27 @@ var BaseUserDropdown = ({
9744
9826
  alt: `${getDisplayName()}'s avatar`
9745
9827
  }
9746
9828
  ),
9747
- showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9829
+ showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9748
9830
  Typography_default,
9749
9831
  {
9750
9832
  variant: "body2",
9751
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__trigger-label"), styles.userName),
9833
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__trigger-label"), styles.userName),
9752
9834
  children: getDisplayName()
9753
9835
  }
9754
9836
  )
9755
9837
  ]
9756
9838
  }
9757
9839
  ),
9758
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react70.FloatingPortal, { id: portalId, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react70.FloatingFocusManager, { context, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
9840
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react70.FloatingPortal, { id: portalId, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react70.FloatingFocusManager, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
9759
9841
  "div",
9760
9842
  {
9761
9843
  ref: refs.setFloating,
9762
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__content"), styles.dropdownContent),
9844
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__content"), styles.dropdownContent),
9763
9845
  style: floatingStyles,
9764
9846
  ...getFloatingProps(),
9765
9847
  children: [
9766
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header"), styles.dropdownHeader), children: [
9767
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9848
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header"), styles.dropdownHeader), children: [
9849
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9768
9850
  Avatar,
9769
9851
  {
9770
9852
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9773,22 +9855,22 @@ var BaseUserDropdown = ({
9773
9855
  alt: `${getDisplayName()}'s avatar`
9774
9856
  }
9775
9857
  ),
9776
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header-info"), styles.headerInfo), children: [
9777
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9858
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header-info"), styles.headerInfo), children: [
9859
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9778
9860
  Typography_default,
9779
9861
  {
9780
9862
  noWrap: true,
9781
- className: (0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header-name"),
9863
+ className: (0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header-name"),
9782
9864
  variant: "body1",
9783
9865
  fontWeight: "medium",
9784
9866
  children: getDisplayName()
9785
9867
  }
9786
9868
  ),
9787
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9869
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9788
9870
  Typography_default,
9789
9871
  {
9790
9872
  noWrap: true,
9791
- className: (0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header-email"),
9873
+ className: (0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header-email"),
9792
9874
  variant: "caption",
9793
9875
  color: "secondary",
9794
9876
  children: getMappedUserProfileValue_default("username", mergedMappings, user) || getMappedUserProfileValue_default("email", mergedMappings, user)
@@ -9796,31 +9878,31 @@ var BaseUserDropdown = ({
9796
9878
  )
9797
9879
  ] })
9798
9880
  ] }),
9799
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__menu"), styles.dropdownMenu), children: allMenuItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { children: item.label === "" ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__menu-divider"), styles.divider) }) : item.href ? /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
9881
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__menu"), styles.dropdownMenu), children: allMenuItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: item.label === "" ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__menu-divider"), styles.divider) }) : item.href ? /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
9800
9882
  "a",
9801
9883
  {
9802
9884
  href: item.href,
9803
9885
  style: {
9804
9886
  backgroundColor: hoveredItemIndex === index ? theme.vars.colors.action?.hover : "transparent"
9805
9887
  },
9806
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItemAnchor),
9888
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItemAnchor),
9807
9889
  onMouseEnter: () => setHoveredItemIndex(index),
9808
9890
  onMouseLeave: () => setHoveredItemIndex(null),
9809
9891
  onFocus: () => setHoveredItemIndex(index),
9810
9892
  onBlur: () => setHoveredItemIndex(null),
9811
9893
  children: [
9812
9894
  item.icon,
9813
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: item.label })
9895
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: item.label })
9814
9896
  ]
9815
9897
  }
9816
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9898
+ ) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9817
9899
  Button_default,
9818
9900
  {
9819
9901
  onClick: () => handleMenuItemClick(item),
9820
9902
  style: {
9821
9903
  backgroundColor: hoveredItemIndex === index ? theme.vars.colors.action?.hover : "transparent"
9822
9904
  },
9823
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItem),
9905
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItem),
9824
9906
  color: "tertiary",
9825
9907
  variant: "text",
9826
9908
  size: "small",
@@ -9839,7 +9921,7 @@ var BaseUserDropdown_default = BaseUserDropdown;
9839
9921
 
9840
9922
  // src/components/presentation/UserDropdown/UserDropdown.tsx
9841
9923
  var import_react72 = require("react");
9842
- var import_jsx_runtime79 = require("react/jsx-runtime");
9924
+ var import_jsx_runtime78 = require("react/jsx-runtime");
9843
9925
  var UserDropdown = ({
9844
9926
  children,
9845
9927
  renderTrigger,
@@ -9868,14 +9950,14 @@ var UserDropdown = ({
9868
9950
  closeProfile
9869
9951
  };
9870
9952
  if (children) {
9871
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
9953
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
9872
9954
  children(renderProps),
9873
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9955
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9874
9956
  ] });
9875
9957
  }
9876
9958
  if (renderTrigger || renderDropdown) {
9877
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
9878
- renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9959
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
9960
+ renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9879
9961
  BaseUserDropdown_default,
9880
9962
  {
9881
9963
  user,
@@ -9885,11 +9967,11 @@ var UserDropdown = ({
9885
9967
  ...rest
9886
9968
  }
9887
9969
  ),
9888
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9970
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9889
9971
  ] });
9890
9972
  }
9891
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
9892
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9973
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
9974
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9893
9975
  BaseUserDropdown_default,
9894
9976
  {
9895
9977
  user,
@@ -9899,7 +9981,7 @@ var UserDropdown = ({
9899
9981
  ...rest
9900
9982
  }
9901
9983
  ),
9902
- isProfileOpen && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9984
+ isProfileOpen && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9903
9985
  ] });
9904
9986
  };
9905
9987
  var UserDropdown_default = UserDropdown;
@@ -9910,9 +9992,9 @@ var import_css49 = require("@emotion/css");
9910
9992
  var import_react75 = require("react");
9911
9993
 
9912
9994
  // src/components/primitives/Icons/Building.tsx
9913
- var import_jsx_runtime80 = require("react/jsx-runtime");
9914
- var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
9915
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
9995
+ var import_jsx_runtime79 = require("react/jsx-runtime");
9996
+ var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
9997
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9916
9998
  "path",
9917
9999
  {
9918
10000
  d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",
@@ -9922,25 +10004,25 @@ var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PU
9922
10004
  strokeLinejoin: "round"
9923
10005
  }
9924
10006
  ),
9925
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9926
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9927
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9928
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9929
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9930
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
10007
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
10008
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
10009
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
10010
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
10011
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
10012
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
9931
10013
  ] });
9932
10014
  Building.displayName = "Building";
9933
10015
  var Building_default = Building;
9934
10016
 
9935
10017
  // src/components/primitives/Icons/Check.tsx
9936
- var import_jsx_runtime81 = require("react/jsx-runtime");
9937
- var Check = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { d: "M20 6 9 17l-5-5", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
10018
+ var import_jsx_runtime80 = require("react/jsx-runtime");
10019
+ var Check = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M20 6 9 17l-5-5", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
9938
10020
  Check.displayName = "Check";
9939
10021
  var Check_default = Check;
9940
10022
 
9941
10023
  // src/components/primitives/Icons/ChevronDown.tsx
9942
- var import_jsx_runtime82 = require("react/jsx-runtime");
9943
- var ChevronDown = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "m6 9 6 6 6-6", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
10024
+ var import_jsx_runtime81 = require("react/jsx-runtime");
10025
+ var ChevronDown = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { d: "m6 9 6 6 6-6", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
9944
10026
  ChevronDown.displayName = "ChevronDown";
9945
10027
  var ChevronDown_default = ChevronDown;
9946
10028
 
@@ -10170,7 +10252,7 @@ var useStyles23 = (theme, colorScheme) => {
10170
10252
  var BaseOrganizationSwitcher_styles_default = useStyles23;
10171
10253
 
10172
10254
  // src/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.tsx
10173
- var import_jsx_runtime83 = require("react/jsx-runtime");
10255
+ var import_jsx_runtime82 = require("react/jsx-runtime");
10174
10256
  var BaseOrganizationSwitcher = ({
10175
10257
  organizations,
10176
10258
  currentOrganization,
@@ -10223,8 +10305,8 @@ var BaseOrganizationSwitcher = ({
10223
10305
  const switchableOrganizations = organizations.filter(
10224
10306
  (org) => org.id !== currentOrganization?.id
10225
10307
  );
10226
- const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10227
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10308
+ const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10309
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10228
10310
  Avatar,
10229
10311
  {
10230
10312
  variant: "square",
@@ -10234,24 +10316,24 @@ var BaseOrganizationSwitcher = ({
10234
10316
  alt: `${organization.name} avatar`
10235
10317
  }
10236
10318
  ),
10237
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationInfo), children: [
10238
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "body2", fontWeight: "medium", className: (0, import_css49.cx)(styles.organizationName), children: organization.name }),
10239
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationMeta), children: [
10240
- showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { children: [
10319
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationInfo), children: [
10320
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "body2", fontWeight: "medium", className: (0, import_css49.cx)(styles.organizationName), children: organization.name }),
10321
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationMeta), children: [
10322
+ showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { children: [
10241
10323
  organization.memberCount,
10242
10324
  " ",
10243
10325
  organization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members")
10244
10326
  ] }),
10245
- showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: " \u2022 " }),
10246
- showRole && organization.role && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: (0, import_css49.cx)(styles.roleCapitalized), children: organization.role })
10327
+ showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { children: " \u2022 " }),
10328
+ showRole && organization.role && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: (0, import_css49.cx)(styles.roleCapitalized), children: organization.role })
10247
10329
  ] })
10248
10330
  ] }),
10249
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10331
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10250
10332
  ] });
10251
- const defaultRenderLoading2 = () => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css49.cx)(styles.loadingContainer), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "caption", className: (0, import_css49.cx)(styles.loadingText), children: t("organization.switcher.loading.organizations") }) });
10252
- const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css49.cx)(styles.errorContainer), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "caption", className: (0, import_css49.cx)(styles.errorText), children: errorMessage }) });
10253
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.root, className), style, children: [
10254
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10333
+ const defaultRenderLoading2 = () => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: (0, import_css49.cx)(styles.loadingContainer), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "caption", className: (0, import_css49.cx)(styles.loadingText), children: t("organization.switcher.loading.organizations") }) });
10334
+ const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: (0, import_css49.cx)(styles.errorContainer), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "caption", className: (0, import_css49.cx)(styles.errorText), children: errorMessage }) });
10335
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.root, className), style, children: [
10336
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10255
10337
  Button_default,
10256
10338
  {
10257
10339
  ref: refs.setReference,
@@ -10261,8 +10343,8 @@ var BaseOrganizationSwitcher = ({
10261
10343
  size: "medium",
10262
10344
  ...getReferenceProps(),
10263
10345
  children: [
10264
- currentOrganization ? /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10265
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10346
+ currentOrganization ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10347
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10266
10348
  Avatar,
10267
10349
  {
10268
10350
  variant: "square",
@@ -10272,18 +10354,18 @@ var BaseOrganizationSwitcher = ({
10272
10354
  alt: `${currentOrganization.name} avatar`
10273
10355
  }
10274
10356
  ),
10275
- showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: currentOrganization.name })
10276
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10277
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Building_default, { width: avatarSize, height: avatarSize }),
10278
- showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10357
+ showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: currentOrganization.name })
10358
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10359
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Building_default, { width: avatarSize, height: avatarSize }),
10360
+ showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10279
10361
  ] }),
10280
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronDown_default, { width: "16", height: "16" })
10362
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronDown_default, { width: "16", height: "16" })
10281
10363
  ]
10282
10364
  }
10283
10365
  ),
10284
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react74.FloatingPortal, { id: portalId, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_react74.FloatingFocusManager, { context, modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { ref: refs.setFloating, className: (0, import_css49.cx)(styles.content), style: floatingStyles, ...getFloatingProps(), children: [
10285
- currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.header), children: [
10286
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10366
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react74.FloatingPortal, { id: portalId, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_react74.FloatingFocusManager, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { ref: refs.setFloating, className: (0, import_css49.cx)(styles.content), style: floatingStyles, ...getFloatingProps(), children: [
10367
+ currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.header), children: [
10368
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10287
10369
  Avatar,
10288
10370
  {
10289
10371
  variant: "square",
@@ -10293,10 +10375,10 @@ var BaseOrganizationSwitcher = ({
10293
10375
  alt: `${currentOrganization.name} avatar`
10294
10376
  }
10295
10377
  ),
10296
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.headerInfo), children: [
10297
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { noWrap: true, className: (0, import_css49.cx)(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10298
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.headerMeta), children: [
10299
- showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10378
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.headerInfo), children: [
10379
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { noWrap: true, className: (0, import_css49.cx)(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10380
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.headerMeta), children: [
10381
+ showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10300
10382
  Typography_default,
10301
10383
  {
10302
10384
  noWrap: true,
@@ -10306,17 +10388,17 @@ var BaseOrganizationSwitcher = ({
10306
10388
  currentOrganization.memberCount,
10307
10389
  " ",
10308
10390
  currentOrganization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members"),
10309
- showRole && currentOrganization.role && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { children: [
10391
+ showRole && currentOrganization.role && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { children: [
10310
10392
  " \u2022 ",
10311
10393
  currentOrganization.role
10312
10394
  ] })
10313
10395
  ]
10314
10396
  }
10315
10397
  ),
10316
- showRole && currentOrganization.role && (!showMemberCount || currentOrganization.memberCount === void 0) && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { noWrap: true, className: (0, import_css49.cx)(styles.headerRole), variant: "caption", color: "secondary", children: currentOrganization.role })
10398
+ showRole && currentOrganization.role && (!showMemberCount || currentOrganization.memberCount === void 0) && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { noWrap: true, className: (0, import_css49.cx)(styles.headerRole), variant: "caption", color: "secondary", children: currentOrganization.role })
10317
10399
  ] })
10318
10400
  ] }),
10319
- onManageProfile && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10401
+ onManageProfile && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10320
10402
  Button_default,
10321
10403
  {
10322
10404
  onClick: onManageProfile,
@@ -10325,7 +10407,7 @@ var BaseOrganizationSwitcher = ({
10325
10407
  size: "small",
10326
10408
  "aria-label": "Manage Organization Profile",
10327
10409
  className: (0, import_css49.cx)(styles.manageButton),
10328
- endIcon: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10410
+ endIcon: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10329
10411
  "svg",
10330
10412
  {
10331
10413
  width: "16",
@@ -10337,8 +10419,8 @@ var BaseOrganizationSwitcher = ({
10337
10419
  strokeLinecap: "round",
10338
10420
  strokeLinejoin: "round",
10339
10421
  children: [
10340
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
10341
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("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" })
10422
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
10423
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("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" })
10342
10424
  ]
10343
10425
  }
10344
10426
  ),
@@ -10346,20 +10428,20 @@ var BaseOrganizationSwitcher = ({
10346
10428
  }
10347
10429
  )
10348
10430
  ] }),
10349
- organizations.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10431
+ organizations.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10350
10432
  "div",
10351
10433
  {
10352
10434
  className: (0, import_css49.cx)(styles.header, styles.sectionHeaderContainer),
10353
10435
  style: {
10354
10436
  borderTop: currentOrganization ? `1px solid ${theme.vars.colors.border}` : "none"
10355
10437
  },
10356
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "caption", fontWeight: 600, className: (0, import_css49.cx)(styles.sectionHeader), children: t("organization.switcher.switch.organization") })
10438
+ children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "caption", fontWeight: 600, className: (0, import_css49.cx)(styles.sectionHeader), children: t("organization.switcher.switch.organization") })
10357
10439
  }
10358
10440
  ),
10359
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css49.cx)(styles.menu), children: loading ? renderLoading ? renderLoading() : defaultRenderLoading2() : error ? renderError ? renderError(error) : defaultRenderError2(error) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10441
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: (0, import_css49.cx)(styles.menu), children: loading ? renderLoading ? renderLoading() : defaultRenderLoading2() : error ? renderError ? renderError(error) : defaultRenderError2(error) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10360
10442
  switchableOrganizations.map((organization) => {
10361
10443
  const isSelected = false;
10362
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10444
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10363
10445
  Button_default,
10364
10446
  {
10365
10447
  onClick: () => handleOrganizationSwitch(organization),
@@ -10377,10 +10459,10 @@ var BaseOrganizationSwitcher = ({
10377
10459
  organization.id
10378
10460
  );
10379
10461
  }),
10380
- menuItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10381
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css49.cx)(styles.menuDivider) }),
10462
+ menuItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10463
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: (0, import_css49.cx)(styles.menuDivider) }),
10382
10464
  menuItems.map(
10383
- (item, index) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10465
+ (item, index) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10384
10466
  "a",
10385
10467
  {
10386
10468
  href: item.href,
@@ -10394,10 +10476,10 @@ var BaseOrganizationSwitcher = ({
10394
10476
  onBlur: () => setHoveredItemIndex(null),
10395
10477
  children: [
10396
10478
  item.icon,
10397
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: item.label })
10479
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { children: item.label })
10398
10480
  ]
10399
10481
  }
10400
- ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10482
+ ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10401
10483
  Button_default,
10402
10484
  {
10403
10485
  onClick: () => handleMenuItemClick(item),
@@ -10571,7 +10653,7 @@ var useStyles24 = (theme, colorScheme) => {
10571
10653
  var BaseCreateOrganization_styles_default = useStyles24;
10572
10654
 
10573
10655
  // src/components/presentation/CreateOrganization/BaseCreateOrganization.tsx
10574
- var import_jsx_runtime84 = require("react/jsx-runtime");
10656
+ var import_jsx_runtime83 = require("react/jsx-runtime");
10575
10657
  var BaseCreateOrganization = ({
10576
10658
  cardLayout = true,
10577
10659
  className = "",
@@ -10658,13 +10740,13 @@ var BaseCreateOrganization = ({
10658
10740
  console.error("Form submission error:", submitError);
10659
10741
  }
10660
10742
  };
10661
- const createOrganizationContent = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: (0, import_css51.cx)(styles.root, cardLayout && styles.card, className), style, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: (0, import_css51.cx)(styles.content), children: [
10662
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("form", { id: "create-organization-form", className: (0, import_css51.cx)(styles.form), onSubmit: handleSubmit, children: [
10663
- error && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10664
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Alert_default.Title, { children: "Error" }),
10665
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Alert_default.Description, { children: error })
10743
+ const createOrganizationContent = /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css51.cx)(styles.root, cardLayout && styles.card, className), style, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css51.cx)(styles.content), children: [
10744
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("form", { id: "create-organization-form", className: (0, import_css51.cx)(styles.form), onSubmit: handleSubmit, children: [
10745
+ error && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10746
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Alert_default.Title, { children: "Error" }),
10747
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Alert_default.Description, { children: error })
10666
10748
  ] }),
10667
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10749
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10668
10750
  TextField_default,
10669
10751
  {
10670
10752
  label: `${t("organization.create.name.label")}`,
@@ -10677,7 +10759,7 @@ var BaseCreateOrganization = ({
10677
10759
  className: (0, import_css51.cx)(styles.input)
10678
10760
  }
10679
10761
  ) }),
10680
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10762
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10681
10763
  TextField_default,
10682
10764
  {
10683
10765
  label: `${t("organization.create.handle.label") || "Organization Handle"}`,
@@ -10691,9 +10773,9 @@ var BaseCreateOrganization = ({
10691
10773
  className: (0, import_css51.cx)(styles.input)
10692
10774
  }
10693
10775
  ) }),
10694
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(FormControl_default, { error: formErrors.description, children: [
10695
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10696
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10776
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(FormControl_default, { error: formErrors.description, children: [
10777
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10778
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10697
10779
  "textarea",
10698
10780
  {
10699
10781
  className: (0, import_css51.cx)(styles.textarea, formErrors.description && styles.textareaError),
@@ -10707,23 +10789,23 @@ var BaseCreateOrganization = ({
10707
10789
  ] }) }),
10708
10790
  renderAdditionalFields && renderAdditionalFields()
10709
10791
  ] }),
10710
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: (0, import_css51.cx)(styles.actions), children: [
10711
- onCancel && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10712
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button_default, { type: "submit", variant: "solid", color: "primary", disabled: loading, form: "create-organization-form", children: loading ? t("organization.create.creating") : t("organization.create.button") })
10792
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css51.cx)(styles.actions), children: [
10793
+ onCancel && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10794
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Button_default, { type: "submit", variant: "solid", color: "primary", disabled: loading, form: "create-organization-form", children: loading ? t("organization.create.creating") : t("organization.create.button") })
10713
10795
  ] })
10714
10796
  ] }) });
10715
10797
  if (mode === "popup") {
10716
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Dialog_default.Content, { children: [
10717
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dialog_default.Heading, { children: title }),
10718
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: styles.popup, children: createOrganizationContent })
10798
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(Dialog_default.Content, { children: [
10799
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Dialog_default.Heading, { children: title }),
10800
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: styles.popup, children: createOrganizationContent })
10719
10801
  ] }) });
10720
10802
  }
10721
10803
  return createOrganizationContent;
10722
10804
  };
10723
10805
 
10724
10806
  // src/api/createOrganization.ts
10725
- var import_browser63 = require("@asgardeo/browser");
10726
- var httpClient6 = import_browser63.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser63.AsgardeoSPAClient.getInstance());
10807
+ var import_browser64 = require("@asgardeo/browser");
10808
+ var httpClient6 = import_browser64.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser64.AsgardeoSPAClient.getInstance());
10727
10809
  var createOrganization = async ({ fetcher, ...requestConfig }) => {
10728
10810
  const defaultFetcher = async (url, config) => {
10729
10811
  const response = await httpClient6({
@@ -10740,7 +10822,7 @@ var createOrganization = async ({ fetcher, ...requestConfig }) => {
10740
10822
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
10741
10823
  };
10742
10824
  };
10743
- return (0, import_browser63.createOrganization)({
10825
+ return (0, import_browser64.createOrganization)({
10744
10826
  ...requestConfig,
10745
10827
  fetcher: fetcher || defaultFetcher
10746
10828
  });
@@ -10748,7 +10830,7 @@ var createOrganization = async ({ fetcher, ...requestConfig }) => {
10748
10830
  var createOrganization_default = createOrganization;
10749
10831
 
10750
10832
  // src/components/presentation/CreateOrganization/CreateOrganization.tsx
10751
- var import_jsx_runtime85 = require("react/jsx-runtime");
10833
+ var import_jsx_runtime84 = require("react/jsx-runtime");
10752
10834
  var CreateOrganization = ({
10753
10835
  onCreateOrganization,
10754
10836
  fallback = null,
@@ -10764,7 +10846,7 @@ var CreateOrganization = ({
10764
10846
  return fallback;
10765
10847
  }
10766
10848
  if (!isSignedIn) {
10767
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_jsx_runtime85.Fragment, {});
10849
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, {});
10768
10850
  }
10769
10851
  const parentId = defaultParentId || currentOrganization?.id || "";
10770
10852
  const handleSubmit = async (payload) => {
@@ -10798,7 +10880,7 @@ var CreateOrganization = ({
10798
10880
  setLoading(false);
10799
10881
  }
10800
10882
  };
10801
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
10883
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10802
10884
  BaseCreateOrganization,
10803
10885
  {
10804
10886
  onSubmit: handleSubmit,
@@ -10815,12 +10897,12 @@ var CreateOrganization = ({
10815
10897
  var import_react83 = require("react");
10816
10898
 
10817
10899
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
10818
- var import_browser65 = require("@asgardeo/browser");
10900
+ var import_browser66 = require("@asgardeo/browser");
10819
10901
  var import_css55 = require("@emotion/css");
10820
10902
  var import_react82 = require("react");
10821
10903
 
10822
10904
  // src/components/primitives/KeyValueInput/KeyValueInput.tsx
10823
- var import_browser64 = require("@asgardeo/browser");
10905
+ var import_browser65 = require("@asgardeo/browser");
10824
10906
  var import_css53 = require("@emotion/css");
10825
10907
  var import_react80 = require("react");
10826
10908
 
@@ -10980,7 +11062,7 @@ var useStyles25 = (theme, colorScheme, disabled, readOnly, hasError) => {
10980
11062
  var KeyValueInput_styles_default = useStyles25;
10981
11063
 
10982
11064
  // src/components/primitives/KeyValueInput/KeyValueInput.tsx
10983
- var import_jsx_runtime86 = require("react/jsx-runtime");
11065
+ var import_jsx_runtime85 = require("react/jsx-runtime");
10984
11066
  var KeyValueInput = ({
10985
11067
  className = "",
10986
11068
  disabled = false,
@@ -11055,105 +11137,105 @@ var KeyValueInput = ({
11055
11137
  );
11056
11138
  const canAddMore = !maxPairs || pairs.length < maxPairs;
11057
11139
  const isAddDisabled = disabled || readOnly || !canAddMore || !newKey.trim() || !newValue.trim();
11058
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input")), styles.container, className), children: [
11059
- label && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("label", { className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "label")), styles.label), children: [
11140
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input")), styles.container, className), children: [
11141
+ label && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("label", { className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "label")), styles.label), children: [
11060
11142
  label,
11061
- required && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11143
+ required && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11062
11144
  "span",
11063
11145
  {
11064
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "required")), styles.requiredIndicator),
11146
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "required")), styles.requiredIndicator),
11065
11147
  children: " *"
11066
11148
  }
11067
11149
  )
11068
11150
  ] }),
11069
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pairs-list")), styles.pairsList), children: [
11070
- pairs.length === 0 && readOnly ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "empty-state")), styles.emptyState), children: "No attributes defined" }) : readOnly ? pairs.map((pair, index) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
11151
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pairs-list")), styles.pairsList), children: [
11152
+ pairs.length === 0 && readOnly ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "empty-state")), styles.emptyState), children: "No attributes defined" }) : readOnly ? pairs.map((pair, index) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
11071
11153
  "div",
11072
11154
  {
11073
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "readonly-pair")), styles.readOnlyPair),
11155
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "readonly-pair")), styles.readOnlyPair),
11074
11156
  children: [
11075
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
11157
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
11076
11158
  "span",
11077
11159
  {
11078
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "readonly-key")), styles.readOnlyKey),
11160
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "readonly-key")), styles.readOnlyKey),
11079
11161
  children: [
11080
11162
  pair.key,
11081
11163
  ":"
11082
11164
  ]
11083
11165
  }
11084
11166
  ),
11085
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11167
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11086
11168
  "span",
11087
11169
  {
11088
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "readonly-value")), styles.readOnlyValue),
11170
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "readonly-value")), styles.readOnlyValue),
11089
11171
  children: pair.value
11090
11172
  }
11091
11173
  )
11092
11174
  ]
11093
11175
  },
11094
11176
  `${pair.key}-${index}`
11095
- )) : pairs.map((pair, index) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
11177
+ )) : pairs.map((pair, index) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
11096
11178
  "div",
11097
11179
  {
11098
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-row")), styles.pairRow),
11180
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-row")), styles.pairRow),
11099
11181
  children: [
11100
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11182
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11101
11183
  TextField_default,
11102
11184
  {
11103
11185
  placeholder: keyPlaceholder,
11104
11186
  value: pair.key,
11105
11187
  onChange: (e) => handleUpdatePair(index, "key", e.target.value),
11106
11188
  disabled: disabled || readOnly,
11107
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11189
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11108
11190
  "aria-label": `${keyLabel} ${index + 1}`
11109
11191
  }
11110
11192
  ),
11111
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11193
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11112
11194
  TextField_default,
11113
11195
  {
11114
11196
  placeholder: valuePlaceholder,
11115
11197
  value: pair.value,
11116
11198
  onChange: (e) => handleUpdatePair(index, "value", e.target.value),
11117
11199
  disabled: disabled || readOnly,
11118
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11200
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11119
11201
  "aria-label": `${valueLabel} ${index + 1}`
11120
11202
  }
11121
11203
  ),
11122
- !readOnly && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11204
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11123
11205
  "button",
11124
11206
  {
11125
11207
  type: "button",
11126
11208
  onClick: () => handleRemovePair(index),
11127
11209
  disabled,
11128
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "remove-button")), styles.removeButton),
11210
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "remove-button")), styles.removeButton),
11129
11211
  "aria-label": `${removeButtonText} ${pair.key}`,
11130
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(X_default, { width: 16, height: 16 })
11212
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(X_default, { width: 16, height: 16 })
11131
11213
  }
11132
11214
  )
11133
11215
  ]
11134
11216
  },
11135
11217
  `${pair.key}-${index}`
11136
11218
  )),
11137
- !readOnly && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "add-row")), styles.addRow), children: [
11138
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11219
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "add-row")), styles.addRow), children: [
11220
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11139
11221
  TextField_default,
11140
11222
  {
11141
11223
  placeholder: keyPlaceholder,
11142
11224
  value: newKey,
11143
11225
  onChange: (e) => setNewKey(e.target.value),
11144
11226
  disabled,
11145
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11227
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11146
11228
  "aria-label": "New key"
11147
11229
  }
11148
11230
  ),
11149
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11231
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11150
11232
  TextField_default,
11151
11233
  {
11152
11234
  placeholder: valuePlaceholder,
11153
11235
  value: newValue,
11154
11236
  onChange: (e) => setNewValue(e.target.value),
11155
11237
  disabled,
11156
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11238
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11157
11239
  "aria-label": "New value",
11158
11240
  onKeyPress: (e) => {
11159
11241
  if (e.key === "Enter" && !isAddDisabled) {
@@ -11162,21 +11244,21 @@ var KeyValueInput = ({
11162
11244
  }
11163
11245
  }
11164
11246
  ),
11165
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11247
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11166
11248
  "button",
11167
11249
  {
11168
11250
  type: "button",
11169
11251
  onClick: handleAddPair,
11170
11252
  disabled: isAddDisabled,
11171
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "add-button")), styles.addButton),
11253
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "add-button")), styles.addButton),
11172
11254
  "aria-label": "Add new key-value pair",
11173
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Plus_default, { width: 16, height: 16 })
11255
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Plus_default, { width: 16, height: 16 })
11174
11256
  }
11175
11257
  )
11176
11258
  ] })
11177
11259
  ] }),
11178
- (helperText || error) && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "helper-text")), styles.helperText), children: error || helperText }),
11179
- maxPairs && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "counter")), styles.counterText), children: [
11260
+ (helperText || error) && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "helper-text")), styles.helperText), children: error || helperText }),
11261
+ maxPairs && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "counter")), styles.counterText), children: [
11180
11262
  pairs.length,
11181
11263
  " of ",
11182
11264
  maxPairs,
@@ -11343,7 +11425,7 @@ var useStyles26 = (theme, colorScheme) => {
11343
11425
  var BaseOrganizationProfile_styles_default = useStyles26;
11344
11426
 
11345
11427
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
11346
- var import_jsx_runtime87 = require("react/jsx-runtime");
11428
+ var import_jsx_runtime86 = require("react/jsx-runtime");
11347
11429
  var BaseOrganizationProfile = ({
11348
11430
  fallback = null,
11349
11431
  className = "",
@@ -11380,13 +11462,13 @@ var BaseOrganizationProfile = ({
11380
11462
  key: "created",
11381
11463
  label: "Created Date",
11382
11464
  editable: false,
11383
- render: (value) => (0, import_browser65.formatDate)(value)
11465
+ render: (value) => (0, import_browser66.formatDate)(value)
11384
11466
  },
11385
11467
  {
11386
11468
  key: "lastModified",
11387
11469
  label: "Last Modified Date",
11388
11470
  editable: false,
11389
- render: (value) => (0, import_browser65.formatDate)(value)
11471
+ render: (value) => (0, import_browser66.formatDate)(value)
11390
11472
  }
11391
11473
  ]
11392
11474
  }) => {
@@ -11394,7 +11476,7 @@ var BaseOrganizationProfile = ({
11394
11476
  const styles = BaseOrganizationProfile_styles_default(theme, colorScheme);
11395
11477
  const [editedOrganization, setEditedOrganization] = (0, import_react82.useState)(organization);
11396
11478
  const [editingFields, setEditingFields] = (0, import_react82.useState)({});
11397
- const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11479
+ const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11398
11480
  "svg",
11399
11481
  {
11400
11482
  width: "16",
@@ -11405,7 +11487,7 @@ var BaseOrganizationProfile = ({
11405
11487
  strokeWidth: "2",
11406
11488
  strokeLinecap: "round",
11407
11489
  strokeLinejoin: "round",
11408
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
11490
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
11409
11491
  }
11410
11492
  );
11411
11493
  const toggleFieldEdit = (0, import_react82.useCallback)((fieldName) => {
@@ -11468,7 +11550,7 @@ var BaseOrganizationProfile = ({
11468
11550
  let fieldInput;
11469
11551
  if (key === "attributes") {
11470
11552
  const attributesValue = typeof fieldValue === "object" && fieldValue !== null ? fieldValue : {};
11471
- fieldInput = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11553
+ fieldInput = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11472
11554
  KeyValueInput_default,
11473
11555
  {
11474
11556
  value: attributesValue,
@@ -11506,26 +11588,26 @@ var BaseOrganizationProfile = ({
11506
11588
  }
11507
11589
  );
11508
11590
  } else {
11509
- fieldInput = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(TextField_default, { ...commonProps });
11591
+ fieldInput = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TextField_default, { ...commonProps });
11510
11592
  }
11511
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
11512
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11513
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.value), children: fieldInput })
11593
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
11594
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11595
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.value), children: fieldInput })
11514
11596
  ] });
11515
11597
  }
11516
11598
  const hasValue = value !== void 0 && value !== null && value !== "";
11517
11599
  const isFieldEditable = editable && fieldEditable;
11518
11600
  let displayValue;
11519
11601
  if (hasValue) {
11520
- displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11602
+ displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11521
11603
  } else if (isFieldEditable) {
11522
11604
  displayValue = getFieldPlaceholder(key);
11523
11605
  } else {
11524
11606
  displayValue = "-";
11525
11607
  }
11526
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
11527
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11528
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.value, !hasValue && styles.valueEmpty), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11608
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
11609
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11610
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.value, !hasValue && styles.valueEmpty), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11529
11611
  Button_default,
11530
11612
  {
11531
11613
  onClick: onStartEdit,
@@ -11548,8 +11630,8 @@ var BaseOrganizationProfile = ({
11548
11630
  if (!shouldShow) {
11549
11631
  return null;
11550
11632
  }
11551
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: (0, import_css55.cx)(styles.field), children: [
11552
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.fieldContent), children: renderField(
11633
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css55.cx)(styles.field), children: [
11634
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.fieldContent), children: renderField(
11553
11635
  field,
11554
11636
  isFieldEditing,
11555
11637
  (value) => {
@@ -11559,8 +11641,8 @@ var BaseOrganizationProfile = ({
11559
11641
  },
11560
11642
  () => toggleFieldEdit(field.key)
11561
11643
  ) }),
11562
- isFieldEditable && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.fieldActions), children: isFieldEditing ? /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
11563
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11644
+ isFieldEditable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.fieldActions), children: isFieldEditing ? /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
11645
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11564
11646
  Button_default,
11565
11647
  {
11566
11648
  onClick: () => handleFieldSave(field.key),
@@ -11571,7 +11653,7 @@ var BaseOrganizationProfile = ({
11571
11653
  children: saveButtonText
11572
11654
  }
11573
11655
  ),
11574
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11656
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11575
11657
  Button_default,
11576
11658
  {
11577
11659
  onClick: () => handleFieldCancel(field.key),
@@ -11582,7 +11664,7 @@ var BaseOrganizationProfile = ({
11582
11664
  children: cancelButtonText
11583
11665
  }
11584
11666
  )
11585
- ] }) : hasValue && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11667
+ ] }) : hasValue && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11586
11668
  Button_default,
11587
11669
  {
11588
11670
  onClick: () => toggleFieldEdit(field.key),
@@ -11591,7 +11673,7 @@ var BaseOrganizationProfile = ({
11591
11673
  size: "small",
11592
11674
  title: "Edit field",
11593
11675
  className: (0, import_css55.cx)(styles.editButton),
11594
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(PencilIcon, {})
11676
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(PencilIcon, {})
11595
11677
  }
11596
11678
  ) })
11597
11679
  ] }, field.key);
@@ -11599,23 +11681,23 @@ var BaseOrganizationProfile = ({
11599
11681
  if (!organization) {
11600
11682
  return fallback;
11601
11683
  }
11602
- const profileContent = /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card_default, { className: (0, import_css55.cx)(styles.root, cardLayout && styles.card, className), children: [
11603
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: (0, import_css55.cx)(styles.header), children: [
11604
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11605
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: (0, import_css55.cx)(styles.orgInfo), children: [
11606
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h2", { className: (0, import_css55.cx)(styles.name), children: organization.name }),
11607
- organization.orgHandle && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("p", { className: (0, import_css55.cx)(styles.handle), children: [
11684
+ const profileContent = /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Card_default, { className: (0, import_css55.cx)(styles.root, cardLayout && styles.card, className), children: [
11685
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css55.cx)(styles.header), children: [
11686
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11687
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css55.cx)(styles.orgInfo), children: [
11688
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h2", { className: (0, import_css55.cx)(styles.name), children: organization.name }),
11689
+ organization.orgHandle && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("p", { className: (0, import_css55.cx)(styles.handle), children: [
11608
11690
  "@",
11609
11691
  organization.orgHandle
11610
11692
  ] })
11611
11693
  ] })
11612
11694
  ] }),
11613
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11695
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11614
11696
  ] });
11615
11697
  if (mode === "popup") {
11616
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Dialog_default.Content, { children: [
11617
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Dialog_default.Heading, { children: title }),
11618
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.popup), children: profileContent })
11698
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Dialog_default.Content, { children: [
11699
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Dialog_default.Heading, { children: title }),
11700
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.popup), children: profileContent })
11619
11701
  ] }) });
11620
11702
  }
11621
11703
  return profileContent;
@@ -11623,8 +11705,8 @@ var BaseOrganizationProfile = ({
11623
11705
  var BaseOrganizationProfile_default = BaseOrganizationProfile;
11624
11706
 
11625
11707
  // src/api/getOrganization.ts
11626
- var import_browser66 = require("@asgardeo/browser");
11627
- var httpClient7 = import_browser66.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser66.AsgardeoSPAClient.getInstance());
11708
+ var import_browser67 = require("@asgardeo/browser");
11709
+ var httpClient7 = import_browser67.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser67.AsgardeoSPAClient.getInstance());
11628
11710
  var getOrganization = async ({ fetcher, ...requestConfig }) => {
11629
11711
  const defaultFetcher = async (url, config) => {
11630
11712
  const response = await httpClient7({
@@ -11640,7 +11722,7 @@ var getOrganization = async ({ fetcher, ...requestConfig }) => {
11640
11722
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
11641
11723
  };
11642
11724
  };
11643
- return (0, import_browser66.getOrganization)({
11725
+ return (0, import_browser67.getOrganization)({
11644
11726
  ...requestConfig,
11645
11727
  fetcher: fetcher || defaultFetcher
11646
11728
  });
@@ -11648,8 +11730,8 @@ var getOrganization = async ({ fetcher, ...requestConfig }) => {
11648
11730
  var getOrganization_default = getOrganization;
11649
11731
 
11650
11732
  // src/api/updateOrganization.ts
11651
- var import_browser67 = require("@asgardeo/browser");
11652
- var httpClient8 = import_browser67.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser67.AsgardeoSPAClient.getInstance());
11733
+ var import_browser68 = require("@asgardeo/browser");
11734
+ var httpClient8 = import_browser68.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser68.AsgardeoSPAClient.getInstance());
11653
11735
  var updateOrganization = async ({
11654
11736
  fetcher,
11655
11737
  ...requestConfig
@@ -11669,7 +11751,7 @@ var updateOrganization = async ({
11669
11751
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
11670
11752
  };
11671
11753
  };
11672
- return (0, import_browser67.updateOrganization)({
11754
+ return (0, import_browser68.updateOrganization)({
11673
11755
  ...requestConfig,
11674
11756
  fetcher: fetcher || defaultFetcher
11675
11757
  });
@@ -11677,7 +11759,7 @@ var updateOrganization = async ({
11677
11759
  var updateOrganization_default = updateOrganization;
11678
11760
 
11679
11761
  // src/components/presentation/OrganizationProfile/OrganizationProfile.tsx
11680
- var import_jsx_runtime88 = require("react/jsx-runtime");
11762
+ var import_jsx_runtime87 = require("react/jsx-runtime");
11681
11763
  var OrganizationProfile = ({
11682
11764
  organizationId,
11683
11765
  mode = "default",
@@ -11685,8 +11767,8 @@ var OrganizationProfile = ({
11685
11767
  onOpenChange,
11686
11768
  onUpdate,
11687
11769
  popupTitle,
11688
- loadingFallback = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: "Loading organization..." }),
11689
- errorFallback = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: "Failed to load organization data" }),
11770
+ loadingFallback = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: "Loading organization..." }),
11771
+ errorFallback = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: "Failed to load organization data" }),
11690
11772
  ...rest
11691
11773
  }) => {
11692
11774
  const { baseUrl } = useAsgardeo_default();
@@ -11722,7 +11804,7 @@ var OrganizationProfile = ({
11722
11804
  const handleOrganizationUpdate = async (payload) => {
11723
11805
  if (!baseUrl || !organizationId) return;
11724
11806
  try {
11725
- const operations = (0, import_browser67.createPatchOperations)(payload);
11807
+ const operations = (0, import_browser68.createPatchOperations)(payload);
11726
11808
  await updateOrganization_default({
11727
11809
  baseUrl,
11728
11810
  organizationId,
@@ -11737,7 +11819,7 @@ var OrganizationProfile = ({
11737
11819
  throw err;
11738
11820
  }
11739
11821
  };
11740
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
11822
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11741
11823
  BaseOrganizationProfile_default,
11742
11824
  {
11743
11825
  organization,
@@ -11987,21 +12069,21 @@ var useStyles27 = (theme, colorScheme) => {
11987
12069
  var BaseOrganizationList_styles_default = useStyles27;
11988
12070
 
11989
12071
  // src/components/presentation/OrganizationList/BaseOrganizationList.tsx
11990
- var import_jsx_runtime89 = require("react/jsx-runtime");
12072
+ var import_jsx_runtime88 = require("react/jsx-runtime");
11991
12073
  var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect, showStatus) => {
11992
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationItem), children: [
11993
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationContent), children: [
11994
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
11995
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationInfo), children: [
11996
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typography_default, { variant: "h6", className: (0, import_css57.cx)(styles.organizationName), children: organization.name }),
11997
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationHandle), children: [
12074
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationItem), children: [
12075
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationContent), children: [
12076
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
12077
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationInfo), children: [
12078
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typography_default, { variant: "h6", className: (0, import_css57.cx)(styles.organizationName), children: organization.name }),
12079
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationHandle), children: [
11998
12080
  "@",
11999
12081
  organization.orgHandle
12000
12082
  ] }),
12001
- showStatus && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationStatus), children: [
12083
+ showStatus && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationStatus), children: [
12002
12084
  t("organization.switcher.status.label"),
12003
12085
  " ",
12004
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
12086
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
12005
12087
  "span",
12006
12088
  {
12007
12089
  className: (0, import_css57.cx)(
@@ -12014,7 +12096,7 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
12014
12096
  ] })
12015
12097
  ] })
12016
12098
  ] }),
12017
- organization.canSwitch && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.organizationActions), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
12099
+ organization.canSwitch && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.organizationActions), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
12018
12100
  Button_default,
12019
12101
  {
12020
12102
  onClick: (e) => {
@@ -12028,17 +12110,17 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
12028
12110
  ) })
12029
12111
  ] }, organization.id);
12030
12112
  };
12031
- var defaultRenderLoading = (t, styles) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.loadingContainer), children: [
12032
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner_default, { size: "medium" }),
12033
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typography_default, { variant: "body1", color: "textSecondary", className: (0, import_css57.cx)(styles.loadingText), children: t("organization.switcher.loading.organizations") })
12113
+ var defaultRenderLoading = (t, styles) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.loadingContainer), children: [
12114
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Spinner_default, { size: "medium" }),
12115
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typography_default, { variant: "body1", color: "textSecondary", className: (0, import_css57.cx)(styles.loadingText), children: t("organization.switcher.loading.organizations") })
12034
12116
  ] });
12035
- var defaultRenderError = (error, t, styles) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.errorContainer), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Typography_default, { variant: "body1", color: "error", children: [
12036
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("strong", { children: t("organization.switcher.error.prefix") }),
12117
+ var defaultRenderError = (error, t, styles) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.errorContainer), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Typography_default, { variant: "body1", color: "error", children: [
12118
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("strong", { children: t("organization.switcher.error.prefix") }),
12037
12119
  " ",
12038
12120
  error
12039
12121
  ] }) });
12040
- var defaultRenderLoadMore = (onLoadMore, isLoading, t, styles) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button_default, { onClick: onLoadMore, disabled: isLoading, className: (0, import_css57.cx)(styles.loadMoreButton), type: "button", fullWidth: true, children: isLoading ? t("organization.switcher.loading.more") : t("organization.switcher.load.more") });
12041
- var defaultRenderEmpty = (t, styles) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.emptyContainer), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typography_default, { variant: "body1", color: "textSecondary", className: (0, import_css57.cx)(styles.emptyText), children: t("organization.switcher.no.organizations") }) });
12122
+ var defaultRenderLoadMore = (onLoadMore, isLoading, t, styles) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button_default, { onClick: onLoadMore, disabled: isLoading, className: (0, import_css57.cx)(styles.loadMoreButton), type: "button", fullWidth: true, children: isLoading ? t("organization.switcher.loading.more") : t("organization.switcher.load.more") });
12123
+ var defaultRenderEmpty = (t, styles) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.emptyContainer), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typography_default, { variant: "body1", color: "textSecondary", className: (0, import_css57.cx)(styles.emptyText), children: t("organization.switcher.no.organizations") }) });
12042
12124
  var BaseOrganizationList = ({
12043
12125
  className = "",
12044
12126
  allOrganizations,
@@ -12081,53 +12163,53 @@ var BaseOrganizationList = ({
12081
12163
  const renderLoadMoreWithStyles = renderLoadMore || ((onLoadMore, isLoading2) => defaultRenderLoadMore(onLoadMore, isLoading2, t, styles));
12082
12164
  const renderOrganizationWithStyles = renderOrganization || ((org) => defaultRenderOrganization(org, styles, t, onOrganizationSelect, showStatus));
12083
12165
  if (isLoading && organizationsWithSwitchAccess?.length === 0) {
12084
- const loadingContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderLoadingWithStyles() });
12166
+ const loadingContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderLoadingWithStyles() });
12085
12167
  if (mode === "popup") {
12086
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12087
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12088
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: loadingContent })
12168
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12169
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12170
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: loadingContent })
12089
12171
  ] }) });
12090
12172
  }
12091
12173
  return loadingContent;
12092
12174
  }
12093
12175
  if (error && organizationsWithSwitchAccess?.length === 0) {
12094
- const errorContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderErrorWithStyles(error) });
12176
+ const errorContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderErrorWithStyles(error) });
12095
12177
  if (mode === "popup") {
12096
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12097
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12098
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: errorContent })
12178
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12179
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12180
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: errorContent })
12099
12181
  ] }) });
12100
12182
  }
12101
12183
  return errorContent;
12102
12184
  }
12103
12185
  if (!isLoading && organizationsWithSwitchAccess?.length === 0) {
12104
- const emptyContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderEmptyWithStyles() });
12186
+ const emptyContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderEmptyWithStyles() });
12105
12187
  if (mode === "popup") {
12106
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12107
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12108
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: emptyContent })
12188
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12189
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12190
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: emptyContent })
12109
12191
  ] }) });
12110
12192
  }
12111
12193
  return emptyContent;
12112
12194
  }
12113
- const organizationListContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: [
12114
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.header), children: [
12115
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.headerInfo), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.subtitle), children: t("organization.switcher.showing.count", {
12195
+ const organizationListContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: [
12196
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.header), children: [
12197
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.headerInfo), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.subtitle), children: t("organization.switcher.showing.count", {
12116
12198
  showing: organizationsWithSwitchAccess?.length,
12117
12199
  total: allOrganizations?.organizations?.length || 0
12118
12200
  }) }) }),
12119
- onRefresh && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button_default, { onClick: onRefresh, className: (0, import_css57.cx)(styles.refreshButton), type: "button", variant: "outline", size: "small", children: t("organization.switcher.refresh.button") })
12201
+ onRefresh && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button_default, { onClick: onRefresh, className: (0, import_css57.cx)(styles.refreshButton), type: "button", variant: "outline", size: "small", children: t("organization.switcher.refresh.button") })
12120
12202
  ] }),
12121
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12203
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12122
12204
  (organization, index) => renderOrganizationWithStyles(organization, index)
12123
12205
  ) }),
12124
- error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.errorMargin), children: renderErrorWithStyles(error) }),
12125
- hasMore && fetchMore && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12206
+ error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.errorMargin), children: renderErrorWithStyles(error) }),
12207
+ hasMore && fetchMore && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12126
12208
  ] });
12127
12209
  if (mode === "popup") {
12128
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12129
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12130
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: organizationListContent })
12210
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12211
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12212
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: organizationListContent })
12131
12213
  ] }) });
12132
12214
  }
12133
12215
  return organizationListContent;
@@ -12204,7 +12286,7 @@ var useStyles28 = (theme, colorScheme) => {
12204
12286
  var OrganizationList_styles_default = useStyles28;
12205
12287
 
12206
12288
  // src/components/presentation/OrganizationList/OrganizationList.tsx
12207
- var import_jsx_runtime90 = require("react/jsx-runtime");
12289
+ var import_jsx_runtime89 = require("react/jsx-runtime");
12208
12290
  var OrganizationList = ({
12209
12291
  autoFetch = true,
12210
12292
  filter = "",
@@ -12226,7 +12308,7 @@ var OrganizationList = ({
12226
12308
  setAllOrganizations(await getAllOrganizations2());
12227
12309
  })();
12228
12310
  }, []);
12229
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: (0, import_css59.cx)(styles.root, className), style, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: (0, import_css59.cx)(styles.container), children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
12311
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css59.cx)(styles.root, className), style, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css59.cx)(styles.container), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
12230
12312
  BaseOrganizationList_default,
12231
12313
  {
12232
12314
  allOrganizations,
@@ -12241,8 +12323,8 @@ var OrganizationList = ({
12241
12323
  var OrganizationList_default = OrganizationList;
12242
12324
 
12243
12325
  // src/components/primitives/Icons/BuildingAlt.tsx
12244
- var import_jsx_runtime91 = require("react/jsx-runtime");
12245
- var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
12326
+ var import_jsx_runtime90 = require("react/jsx-runtime");
12327
+ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
12246
12328
  "svg",
12247
12329
  {
12248
12330
  width,
@@ -12255,13 +12337,13 @@ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @_
12255
12337
  strokeLinecap: "round",
12256
12338
  strokeLinejoin: "round",
12257
12339
  children: [
12258
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12259
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12260
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12261
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 6h4" }),
12262
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 10h4" }),
12263
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 14h4" }),
12264
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 18h4" })
12340
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12341
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12342
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12343
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 6h4" }),
12344
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 10h4" }),
12345
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 14h4" }),
12346
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 18h4" })
12265
12347
  ]
12266
12348
  }
12267
12349
  );
@@ -12269,7 +12351,7 @@ BuildingAlt.displayName = "BuildingAlt";
12269
12351
  var BuildingAlt_default = BuildingAlt;
12270
12352
 
12271
12353
  // src/components/presentation/OrganizationSwitcher/OrganizationSwitcher.tsx
12272
- var import_jsx_runtime92 = require("react/jsx-runtime");
12354
+ var import_jsx_runtime91 = require("react/jsx-runtime");
12273
12355
  var OrganizationSwitcher = ({
12274
12356
  currentOrganization: propCurrentOrganization,
12275
12357
  fallback = null,
@@ -12293,7 +12375,7 @@ var OrganizationSwitcher = ({
12293
12375
  return fallback;
12294
12376
  }
12295
12377
  if (!isSignedIn) {
12296
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, {});
12378
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_jsx_runtime91.Fragment, {});
12297
12379
  }
12298
12380
  const organizations = propOrganizations || contextOrganizations || [];
12299
12381
  const currentOrganization = propCurrentOrganization || contextCurrentOrganization;
@@ -12307,19 +12389,19 @@ var OrganizationSwitcher = ({
12307
12389
  const defaultMenuItems = [];
12308
12390
  if (currentOrganization) {
12309
12391
  defaultMenuItems.push({
12310
- icon: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(BuildingAlt_default, {}),
12392
+ icon: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(BuildingAlt_default, {}),
12311
12393
  label: t("organization.switcher.manage.organizations"),
12312
12394
  onClick: handleManageOrganizations
12313
12395
  });
12314
12396
  }
12315
12397
  defaultMenuItems.push({
12316
- icon: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", { d: "M12 5v14m-7-7h14" }) }),
12398
+ icon: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M12 5v14m-7-7h14" }) }),
12317
12399
  label: t("organization.switcher.create.organization"),
12318
12400
  onClick: () => setIsCreateOrgOpen(true)
12319
12401
  });
12320
12402
  const menuItems = props.menuItems ? [...defaultMenuItems, ...props.menuItems] : defaultMenuItems;
12321
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
12322
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12403
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
12404
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12323
12405
  BaseOrganizationSwitcher_default,
12324
12406
  {
12325
12407
  organizations,
@@ -12332,7 +12414,7 @@ var OrganizationSwitcher = ({
12332
12414
  ...props
12333
12415
  }
12334
12416
  ),
12335
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12417
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12336
12418
  CreateOrganization,
12337
12419
  {
12338
12420
  mode: "popup",
@@ -12346,7 +12428,7 @@ var OrganizationSwitcher = ({
12346
12428
  }
12347
12429
  }
12348
12430
  ),
12349
- currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12431
+ currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12350
12432
  OrganizationProfile_default,
12351
12433
  {
12352
12434
  organizationId: currentOrganization.id,
@@ -12354,11 +12436,11 @@ var OrganizationSwitcher = ({
12354
12436
  open: isProfileOpen,
12355
12437
  onOpenChange: setIsProfileOpen,
12356
12438
  cardLayout: true,
12357
- loadingFallback: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { children: t("organization.profile.loading") }),
12358
- errorFallback: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { children: t("organization.profile.error") })
12439
+ loadingFallback: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { children: t("organization.profile.loading") }),
12440
+ errorFallback: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { children: t("organization.profile.error") })
12359
12441
  }
12360
12442
  ),
12361
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12443
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12362
12444
  OrganizationList_default,
12363
12445
  {
12364
12446
  mode: "popup",
@@ -12378,5 +12460,5 @@ var OrganizationSwitcher = ({
12378
12460
  var OrganizationSwitcher_default = OrganizationSwitcher;
12379
12461
 
12380
12462
  // src/index.ts
12381
- var import_browser68 = require("@asgardeo/browser");
12463
+ var import_browser69 = require("@asgardeo/browser");
12382
12464
  //# sourceMappingURL=index.js.map