@asgardeo/react 0.5.22 → 0.5.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/cjs/index.js +941 -877
  2. package/dist/cjs/index.js.map +4 -4
  3. package/dist/components/presentation/SignIn/options/SignInOptionFactory.d.ts +3 -3
  4. package/dist/components/presentation/SignUp/options/SignUpOptionFactory.d.ts +1 -1
  5. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +3 -0
  6. package/dist/components/presentation/UserProfile/UserProfile.d.ts +10 -0
  7. package/dist/components/presentation/{SignIn/options → options}/FacebookButton.d.ts +3 -3
  8. package/dist/components/presentation/{SignIn/options → options}/GitHubButton.d.ts +3 -3
  9. package/dist/components/presentation/{SignIn/options → options}/GoogleButton.d.ts +3 -3
  10. package/dist/components/presentation/{SignIn/options → options}/LinkedInButton.d.ts +3 -3
  11. package/dist/components/presentation/{SignIn/options → options}/MicrosoftButton.d.ts +3 -3
  12. package/dist/components/presentation/{SignIn/options → options}/SignInWithEthereumButton.d.ts +3 -3
  13. package/dist/components/presentation/{SignIn/options → options}/SocialButton.d.ts +3 -3
  14. package/dist/components/primitives/Avatar/Avatar.d.ts +4 -0
  15. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +1 -0
  16. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +6 -5
  17. package/dist/index.d.ts +8 -8
  18. package/dist/index.js +686 -618
  19. package/dist/index.js.map +4 -4
  20. package/package.json +2 -2
  21. package/dist/components/presentation/SignUp/options/GoogleButton.d.ts +0 -25
  22. package/dist/components/presentation/SignUp/options/index.d.ts +0 -26
package/dist/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,
@@ -181,7 +182,8 @@ var AsgardeoContext = (0, import_react.createContext)({
181
182
  signInOptions: {},
182
183
  getDecodedIdToken: null,
183
184
  getAccessToken: null,
184
- exchangeToken: null
185
+ exchangeToken: null,
186
+ storage: "sessionStorage"
185
187
  });
186
188
  AsgardeoContext.displayName = "AsgardeoContext";
187
189
  var AsgardeoContext_default = AsgardeoContext;
@@ -834,29 +836,16 @@ var AsgardeoReactClient = class extends import_browser6.AsgardeoBrowserClient {
834
836
  return Promise.resolve(String(response));
835
837
  }
836
838
  async signUp(...args) {
837
- if (args.length === 0) {
838
- throw new import_browser6.AsgardeoRuntimeError(
839
- "No arguments provided for signUp method.",
840
- "react-AsgardeoReactClient-ValidationError-001",
841
- "react",
842
- "The signUp method requires at least one argument, either a SignUpOptions object or an EmbeddedFlowExecuteRequestPayload."
843
- );
844
- }
839
+ const configData = await this.asgardeo.getConfigData();
845
840
  const firstArg = args[0];
846
841
  if (typeof firstArg === "object" && "flowType" in firstArg) {
847
- const configData = await this.asgardeo.getConfigData();
848
842
  const baseUrl = configData?.baseUrl;
849
843
  return (0, import_browser6.executeEmbeddedSignUpFlow)({
850
844
  baseUrl,
851
845
  payload: firstArg
852
846
  });
853
847
  }
854
- throw new import_browser6.AsgardeoRuntimeError(
855
- "Not implemented",
856
- "react-AsgardeoReactClient-ValidationError-002",
857
- "react",
858
- "The signUp method with SignUpOptions is not implemented in the React client."
859
- );
848
+ (0, import_browser6.navigate)((0, import_browser6.getRedirectBasedSignUpUrl)(configData));
860
849
  }
861
850
  async request(requestConfig) {
862
851
  return this.asgardeo.httpRequest(requestConfig);
@@ -1260,7 +1249,7 @@ var applyThemeToDOM = (theme) => {
1260
1249
  var ThemeProvider = ({
1261
1250
  children,
1262
1251
  theme: themeConfig,
1263
- mode = "system",
1252
+ mode = import_browser11.DEFAULT_THEME,
1264
1253
  detection = {},
1265
1254
  inheritFromBranding = true
1266
1255
  }) => {
@@ -1755,12 +1744,6 @@ var AsgardeoProvider = ({
1755
1744
  setIsLoadingSync(asgardeo.isLoading());
1756
1745
  }
1757
1746
  };
1758
- const isDarkMode = (0, import_react15.useMemo)(() => {
1759
- if (!preferences?.theme?.mode || preferences.theme.mode === "system") {
1760
- return window.matchMedia("(prefers-color-scheme: dark)").matches;
1761
- }
1762
- return preferences.theme.mode === "dark";
1763
- }, [preferences?.theme?.mode]);
1764
1747
  const handleProfileUpdate = (payload) => {
1765
1748
  setUser(payload);
1766
1749
  setUserProfile((prev) => ({
@@ -1828,7 +1811,7 @@ var AsgardeoProvider = ({
1828
1811
  {
1829
1812
  inheritFromBranding: preferences?.theme?.inheritFromBranding,
1830
1813
  theme: preferences?.theme?.overrides,
1831
- mode: isDarkMode ? "dark" : "light",
1814
+ mode: (0, import_browser13.getActiveTheme)(preferences.theme.mode),
1832
1815
  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)(
1833
1816
  OrganizationProvider_default,
1834
1817
  {
@@ -2341,6 +2324,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2341
2324
  background-color: ${theme.vars.colors.primary.main};
2342
2325
  opacity: 0.8;
2343
2326
  }
2327
+ &:focus:not(:disabled) {
2328
+ background-color: ${theme.vars.colors.primary.main};
2329
+ opacity: 0.8;
2330
+ }
2344
2331
  `,
2345
2332
  "primary-outline": import_css3.css`
2346
2333
  background-color: transparent;
@@ -2355,30 +2342,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2355
2342
  color: ${theme.vars.colors.primary.contrastText};
2356
2343
  opacity: 0.9;
2357
2344
  }
2345
+ &:focus:not(:disabled) {
2346
+ background-color: ${theme.vars.colors.primary.main};
2347
+ color: ${theme.vars.colors.primary.contrastText};
2348
+ opacity: 0.9;
2349
+ }
2358
2350
  `,
2359
2351
  "primary-text": import_css3.css`
2360
2352
  background-color: transparent;
2361
2353
  color: ${theme.vars.colors.primary.main};
2362
2354
  border-color: transparent;
2363
2355
  &:hover:not(:disabled) {
2356
+ border-color: transparent;
2364
2357
  background-color: ${theme.vars.colors.action.hover};
2365
2358
  }
2366
2359
  &:active:not(:disabled) {
2360
+ border-color: transparent;
2367
2361
  background-color: ${theme.vars.colors.action.selected};
2368
2362
  }
2363
+ &:focus:not(:disabled) {
2364
+ border-color: transparent;
2365
+ background-color: ${theme.vars.colors.action.focus};
2366
+ outline: none;
2367
+ }
2369
2368
  `,
2370
2369
  "primary-icon": import_css3.css`
2371
2370
  background-color: transparent;
2372
2371
  color: ${theme.vars.colors.primary.main};
2373
2372
  border-color: transparent;
2374
2373
  &:hover:not(:disabled) {
2374
+ border-color: transparent;
2375
2375
  background-color: ${theme.vars.colors.action.hover};
2376
2376
  color: ${theme.vars.colors.primary.dark};
2377
2377
  }
2378
2378
  &:active:not(:disabled) {
2379
+ border-color: transparent;
2379
2380
  background-color: ${theme.vars.colors.action.selected};
2380
2381
  color: ${theme.vars.colors.primary.dark};
2381
2382
  }
2383
+ &:focus:not(:disabled) {
2384
+ border-color: transparent;
2385
+ background-color: ${theme.vars.colors.action.focus};
2386
+ color: ${theme.vars.colors.primary.dark};
2387
+ outline: none;
2388
+ }
2382
2389
  `,
2383
2390
  "secondary-solid": import_css3.css`
2384
2391
  background-color: ${theme.vars.colors.secondary.main};
@@ -2392,6 +2399,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2392
2399
  background-color: ${theme.vars.colors.secondary.main};
2393
2400
  opacity: 0.8;
2394
2401
  }
2402
+ &:focus:not(:disabled) {
2403
+ background-color: ${theme.vars.colors.secondary.main};
2404
+ opacity: 0.8;
2405
+ }
2395
2406
  `,
2396
2407
  "secondary-outline": import_css3.css`
2397
2408
  background-color: transparent;
@@ -2406,30 +2417,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2406
2417
  color: ${theme.vars.colors.secondary.contrastText};
2407
2418
  opacity: 0.9;
2408
2419
  }
2420
+ &:focus:not(:disabled) {
2421
+ background-color: ${theme.vars.colors.secondary.main};
2422
+ color: ${theme.vars.colors.secondary.contrastText};
2423
+ opacity: 0.9;
2424
+ }
2409
2425
  `,
2410
2426
  "secondary-text": import_css3.css`
2411
2427
  background-color: transparent;
2412
2428
  color: ${theme.vars.colors.secondary.main};
2413
2429
  border-color: transparent;
2414
2430
  &:hover:not(:disabled) {
2431
+ border-color: transparent;
2415
2432
  background-color: ${theme.vars.colors.action.hover};
2416
2433
  }
2417
2434
  &:active:not(:disabled) {
2435
+ border-color: transparent;
2418
2436
  background-color: ${theme.vars.colors.action.selected};
2419
2437
  }
2438
+ &:focus:not(:disabled) {
2439
+ border-color: transparent;
2440
+ background-color: ${theme.vars.colors.action.focus};
2441
+ outline: none;
2442
+ }
2420
2443
  `,
2421
2444
  "secondary-icon": import_css3.css`
2422
2445
  background-color: transparent;
2423
2446
  color: ${theme.vars.colors.secondary.main};
2424
2447
  border-color: transparent;
2425
2448
  &:hover:not(:disabled) {
2449
+ border-color: transparent;
2426
2450
  background-color: ${theme.vars.colors.action.hover};
2427
2451
  color: ${theme.vars.colors.secondary.dark};
2428
2452
  }
2429
2453
  &:active:not(:disabled) {
2454
+ border-color: transparent;
2430
2455
  background-color: ${theme.vars.colors.action.selected};
2431
2456
  color: ${theme.vars.colors.secondary.dark};
2432
2457
  }
2458
+ &:focus:not(:disabled) {
2459
+ border-color: transparent;
2460
+ background-color: ${theme.vars.colors.action.focus};
2461
+ color: ${theme.vars.colors.secondary.dark};
2462
+ outline: none;
2463
+ }
2433
2464
  `,
2434
2465
  "tertiary-solid": import_css3.css`
2435
2466
  background-color: ${theme.vars.colors.text.secondary};
@@ -2444,6 +2475,11 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2444
2475
  color: ${theme.vars.colors.background.surface};
2445
2476
  opacity: 0.9;
2446
2477
  }
2478
+ &:focus:not(:disabled) {
2479
+ background-color: ${theme.vars.colors.text.primary};
2480
+ color: ${theme.vars.colors.background.surface};
2481
+ opacity: 0.9;
2482
+ }
2447
2483
  `,
2448
2484
  "tertiary-outline": import_css3.css`
2449
2485
  background-color: transparent;
@@ -2457,32 +2493,52 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2457
2493
  background-color: ${theme.vars.colors.action.selected};
2458
2494
  border-color: ${theme.vars.colors.text.primary};
2459
2495
  }
2496
+ &:focus:not(:disabled) {
2497
+ background-color: ${theme.vars.colors.action.focus};
2498
+ border-color: ${theme.vars.colors.text.primary};
2499
+ }
2460
2500
  `,
2461
2501
  "tertiary-text": import_css3.css`
2462
2502
  background-color: transparent;
2463
2503
  color: ${theme.vars.colors.text.secondary};
2464
2504
  border-color: transparent;
2465
2505
  &:hover:not(:disabled) {
2506
+ border-color: transparent;
2466
2507
  background-color: ${theme.vars.colors.action.hover};
2467
2508
  color: ${theme.vars.colors.text.primary};
2468
2509
  }
2469
2510
  &:active:not(:disabled) {
2511
+ border-color: transparent;
2470
2512
  background-color: ${theme.vars.colors.action.selected};
2471
2513
  color: ${theme.vars.colors.text.primary};
2472
2514
  }
2515
+ &:focus:not(:disabled) {
2516
+ border-color: transparent;
2517
+ background-color: ${theme.vars.colors.action.focus};
2518
+ color: ${theme.vars.colors.text.primary};
2519
+ outline: none;
2520
+ }
2473
2521
  `,
2474
2522
  "tertiary-icon": import_css3.css`
2475
2523
  background-color: transparent;
2476
2524
  color: ${theme.vars.colors.text.secondary};
2477
2525
  border-color: transparent;
2478
2526
  &:hover:not(:disabled) {
2527
+ border-color: transparent;
2479
2528
  background-color: ${theme.vars.colors.action.hover};
2480
2529
  color: ${theme.vars.colors.text.primary};
2481
2530
  }
2482
2531
  &:active:not(:disabled) {
2532
+ border-color: transparent;
2483
2533
  background-color: ${theme.vars.colors.action.selected};
2484
2534
  color: ${theme.vars.colors.text.primary};
2485
2535
  }
2536
+ &:focus:not(:disabled) {
2537
+ border-color: transparent;
2538
+ background-color: ${theme.vars.colors.action.focus};
2539
+ color: ${theme.vars.colors.text.primary};
2540
+ outline: none;
2541
+ }
2486
2542
  `
2487
2543
  };
2488
2544
  const spinnerStyles = import_css3.css`
@@ -2629,8 +2685,7 @@ var SignInButton = (0, import_react28.forwardRef)(({ children, onClick, preferen
2629
2685
  try {
2630
2686
  setIsLoading(true);
2631
2687
  if (signInUrl) {
2632
- window.history.pushState(null, "", signInUrl);
2633
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2688
+ (0, import_browser18.navigate)(signInUrl);
2634
2689
  } else {
2635
2690
  await signIn(overriddenSignInOptions ?? signInOptions);
2636
2691
  }
@@ -2639,7 +2694,7 @@ var SignInButton = (0, import_react28.forwardRef)(({ children, onClick, preferen
2639
2694
  }
2640
2695
  } catch (error) {
2641
2696
  throw new import_browser18.AsgardeoRuntimeError(
2642
- `Sign in failed: ${error instanceof Error ? error.message : String(error)}`,
2697
+ `Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`,
2643
2698
  "SignInButton-handleSignIn-RuntimeError-001",
2644
2699
  "react",
2645
2700
  "Something went wrong while trying to sign in. Please try again later."
@@ -2753,6 +2808,8 @@ var BaseSignUpButton = (0, import_react31.forwardRef)(
2753
2808
  disabled: isLoading,
2754
2809
  loading: isLoading,
2755
2810
  type: "button",
2811
+ color: "primary",
2812
+ variant: "solid",
2756
2813
  ...rest,
2757
2814
  children
2758
2815
  }
@@ -2764,6 +2821,7 @@ var BaseSignUpButton_default = BaseSignUpButton;
2764
2821
 
2765
2822
  // src/components/actions/SignUpButton/SignUpButton.tsx
2766
2823
  var import_browser22 = require("@asgardeo/browser");
2824
+ var import_browser23 = require("@asgardeo/browser");
2767
2825
  var import_react32 = require("react");
2768
2826
  var import_jsx_runtime15 = require("react/jsx-runtime");
2769
2827
  var SignUpButton = (0, import_react32.forwardRef)(({ children, onClick, preferences, ...rest }, ref) => {
@@ -2774,8 +2832,7 @@ var SignUpButton = (0, import_react32.forwardRef)(({ children, onClick, preferen
2774
2832
  try {
2775
2833
  setIsLoading(true);
2776
2834
  if (signUpUrl) {
2777
- window.history.pushState(null, "", signUpUrl);
2778
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2835
+ (0, import_browser23.navigate)(signUpUrl);
2779
2836
  } else {
2780
2837
  await signUp();
2781
2838
  }
@@ -2852,15 +2909,15 @@ Loading.displayName = "Loading";
2852
2909
  var Loading_default = Loading;
2853
2910
 
2854
2911
  // src/components/presentation/SignIn/BaseSignIn.tsx
2855
- var import_browser44 = require("@asgardeo/browser");
2912
+ var import_browser45 = require("@asgardeo/browser");
2856
2913
  var import_css35 = require("@emotion/css");
2857
2914
  var import_react56 = require("react");
2858
2915
 
2859
2916
  // src/components/presentation/SignIn/options/SignInOptionFactory.tsx
2860
- var import_browser39 = require("@asgardeo/browser");
2917
+ var import_browser40 = require("@asgardeo/browser");
2861
2918
 
2862
2919
  // src/components/presentation/SignIn/options/UsernamePassword.tsx
2863
- var import_browser33 = require("@asgardeo/browser");
2920
+ var import_browser34 = require("@asgardeo/browser");
2864
2921
  var import_react44 = require("react");
2865
2922
 
2866
2923
  // src/components/primitives/TextField/TextField.tsx
@@ -2868,11 +2925,11 @@ var import_css15 = require("@emotion/css");
2868
2925
 
2869
2926
  // src/components/primitives/FormControl/FormControl.tsx
2870
2927
  var import_css11 = require("@emotion/css");
2871
- var import_browser24 = require("@asgardeo/browser");
2928
+ var import_browser25 = require("@asgardeo/browser");
2872
2929
 
2873
2930
  // src/components/primitives/Typography/Typography.tsx
2874
2931
  var import_css9 = require("@emotion/css");
2875
- var import_browser23 = require("@asgardeo/browser");
2932
+ var import_browser24 = require("@asgardeo/browser");
2876
2933
 
2877
2934
  // src/components/primitives/Typography/Typography.styles.ts
2878
2935
  var import_css8 = require("@emotion/css");
@@ -3220,8 +3277,8 @@ var Typography = ({
3220
3277
  }
3221
3278
  };
3222
3279
  const typographyClassName = (0, import_css9.cx)(
3223
- (0, import_browser23.withVendorCSSClassPrefix)((0, import_browser23.bem)("typography")),
3224
- (0, import_browser23.withVendorCSSClassPrefix)((0, import_browser23.bem)("typography", variant)),
3280
+ (0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("typography")),
3281
+ (0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("typography", variant)),
3225
3282
  styles.typography,
3226
3283
  getVariantClass(variant),
3227
3284
  noWrap && styles.typographyNoWrap,
@@ -3271,15 +3328,15 @@ var FormControl = ({
3271
3328
  }) => {
3272
3329
  const { theme, colorScheme } = useTheme_default();
3273
3330
  const styles = FormControl_styles_default(theme, colorScheme, helperTextAlign, helperTextMarginLeft, !!error);
3274
- 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: [
3331
+ 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: [
3275
3332
  children,
3276
3333
  (error || helperText) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3277
3334
  Typography_default,
3278
3335
  {
3279
3336
  variant: "caption",
3280
3337
  color: error ? "error" : "textSecondary",
3281
- className: (0, import_css11.cx)((0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("form-control", "helper-text")), styles.helperText, {
3282
- [(0, import_browser24.withVendorCSSClassPrefix)((0, import_browser24.bem)("form-control", "helper-text", "error"))]: !!error,
3338
+ className: (0, import_css11.cx)((0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("form-control", "helper-text")), styles.helperText, {
3339
+ [(0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("form-control", "helper-text", "error"))]: !!error,
3283
3340
  [styles.helperTextError]: !!error
3284
3341
  }),
3285
3342
  children: error || helperText
@@ -3291,7 +3348,7 @@ var FormControl_default = FormControl;
3291
3348
 
3292
3349
  // src/components/primitives/InputLabel/InputLabel.tsx
3293
3350
  var import_css13 = require("@emotion/css");
3294
- var import_browser25 = require("@asgardeo/browser");
3351
+ var import_browser26 = require("@asgardeo/browser");
3295
3352
 
3296
3353
  // src/components/primitives/InputLabel/InputLabel.styles.ts
3297
3354
  var import_css12 = require("@emotion/css");
@@ -3350,12 +3407,12 @@ var InputLabel = ({
3350
3407
  "label",
3351
3408
  {
3352
3409
  className: (0, import_css13.cx)(
3353
- (0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("input-label")),
3354
- (0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("input-label", variant)),
3410
+ (0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("input-label")),
3411
+ (0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("input-label", variant)),
3355
3412
  styles.label,
3356
3413
  variant === "block" ? styles.block : styles.inline,
3357
3414
  {
3358
- [(0, import_browser25.withVendorCSSClassPrefix)((0, import_browser25.bem)("input-label", "error"))]: error,
3415
+ [(0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("input-label", "error"))]: error,
3359
3416
  [styles.error]: error
3360
3417
  },
3361
3418
  className
@@ -3364,7 +3421,7 @@ var InputLabel = ({
3364
3421
  ...rest,
3365
3422
  children: [
3366
3423
  children,
3367
- 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: " *" })
3424
+ 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: " *" })
3368
3425
  ]
3369
3426
  }
3370
3427
  );
@@ -3372,7 +3429,7 @@ var InputLabel = ({
3372
3429
  var InputLabel_default = InputLabel;
3373
3430
 
3374
3431
  // src/components/primitives/TextField/TextField.tsx
3375
- var import_browser26 = require("@asgardeo/browser");
3432
+ var import_browser27 = require("@asgardeo/browser");
3376
3433
 
3377
3434
  // src/components/primitives/TextField/TextField.styles.ts
3378
3435
  var import_css14 = require("@emotion/css");
@@ -3501,20 +3558,20 @@ var TextField = ({
3501
3558
  const hasEndIcon = !!endIcon;
3502
3559
  const styles = TextField_styles_default(theme, colorScheme, disabled, hasError, hasStartIcon, hasEndIcon);
3503
3560
  const inputClassName = (0, import_css15.cx)(
3504
- (0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "input")),
3561
+ (0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "input")),
3505
3562
  styles.input,
3506
3563
  hasError && styles.inputError,
3507
3564
  disabled && styles.inputDisabled
3508
3565
  );
3509
- const containerClassName = (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "container")), styles.inputContainer);
3510
- const startIconClassName = (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "start-icon")), styles.startIcon);
3511
- const endIconClassName = (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field", "end-icon")), styles.endIcon);
3566
+ const containerClassName = (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "container")), styles.inputContainer);
3567
+ const startIconClassName = (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "start-icon")), styles.startIcon);
3568
+ const endIconClassName = (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field", "end-icon")), styles.endIcon);
3512
3569
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3513
3570
  FormControl_default,
3514
3571
  {
3515
3572
  error,
3516
3573
  helperText,
3517
- className: (0, import_css15.cx)((0, import_browser26.withVendorCSSClassPrefix)((0, import_browser26.bem)("text-field")), className),
3574
+ className: (0, import_css15.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("text-field")), className),
3518
3575
  style,
3519
3576
  children: [
3520
3577
  label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(InputLabel_default, { required, error: hasError, children: label }),
@@ -3561,7 +3618,7 @@ var TextField_default = TextField;
3561
3618
 
3562
3619
  // src/components/primitives/Select/Select.tsx
3563
3620
  var import_css17 = require("@emotion/css");
3564
- var import_browser27 = require("@asgardeo/browser");
3621
+ var import_browser28 = require("@asgardeo/browser");
3565
3622
 
3566
3623
  // src/components/primitives/Select/Select.styles.ts
3567
3624
  var import_css16 = require("@emotion/css");
@@ -3659,7 +3716,7 @@ var Select = ({
3659
3716
  const hasError = !!error;
3660
3717
  const styles = Select_styles_default(theme, colorScheme, disabled, hasError);
3661
3718
  const selectClassName = (0, import_css17.cx)(
3662
- (0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("select", "input")),
3719
+ (0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("select", "input")),
3663
3720
  styles.select,
3664
3721
  hasError && styles.selectError,
3665
3722
  disabled && styles.selectDisabled
@@ -3669,7 +3726,7 @@ var Select = ({
3669
3726
  {
3670
3727
  error,
3671
3728
  helperText,
3672
- className: (0, import_css17.cx)((0, import_browser27.withVendorCSSClassPrefix)((0, import_browser27.bem)("select")), className),
3729
+ className: (0, import_css17.cx)((0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("select")), className),
3673
3730
  style,
3674
3731
  children: [
3675
3732
  label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(InputLabel_default, { required, error: hasError, children: label }),
@@ -3693,7 +3750,7 @@ var Select_default = Select;
3693
3750
  // src/components/primitives/OtpField/OtpField.tsx
3694
3751
  var import_react39 = require("react");
3695
3752
  var import_css19 = require("@emotion/css");
3696
- var import_browser28 = require("@asgardeo/browser");
3753
+ var import_browser29 = require("@asgardeo/browser");
3697
3754
 
3698
3755
  // src/components/primitives/OtpField/OtpField.styles.ts
3699
3756
  var import_css18 = require("@emotion/css");
@@ -3869,12 +3926,12 @@ var OtpField = ({
3869
3926
  {
3870
3927
  error,
3871
3928
  helperText,
3872
- className: (0, import_css19.cx)((0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field")), className),
3929
+ className: (0, import_css19.cx)((0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field")), className),
3873
3930
  helperTextAlign: "center",
3874
3931
  style,
3875
3932
  children: [
3876
3933
  label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputLabel_default, { required, error: !!error, children: label }),
3877
- /* @__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)(
3934
+ /* @__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)(
3878
3935
  "input",
3879
3936
  {
3880
3937
  ref: (el) => {
@@ -3886,10 +3943,10 @@ var OtpField = ({
3886
3943
  onChange: (event) => handleChange(index, event),
3887
3944
  onKeyDown: (event) => handleKeyDown(index, event),
3888
3945
  onPaste: handlePaste,
3889
- className: (0, import_css19.cx)((0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field", "input")), styles.input, {
3890
- [(0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field", "input", "error"))]: !!error,
3946
+ className: (0, import_css19.cx)((0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field", "input")), styles.input, {
3947
+ [(0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field", "input", "error"))]: !!error,
3891
3948
  [styles.inputError]: !!error,
3892
- [(0, import_browser28.withVendorCSSClassPrefix)((0, import_browser28.bem)("otp-field", "input", "disabled"))]: !!disabled,
3949
+ [(0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("otp-field", "input", "disabled"))]: !!disabled,
3893
3950
  [styles.inputDisabled]: !!disabled
3894
3951
  }),
3895
3952
  maxLength: 1,
@@ -3911,7 +3968,7 @@ var OtpField_default = OtpField;
3911
3968
  // src/components/primitives/PasswordField/PasswordField.tsx
3912
3969
  var import_react41 = require("react");
3913
3970
  var import_css21 = require("@emotion/css");
3914
- var import_browser29 = require("@asgardeo/browser");
3971
+ var import_browser30 = require("@asgardeo/browser");
3915
3972
 
3916
3973
  // src/components/primitives/Icons/Eye.tsx
3917
3974
  var import_jsx_runtime25 = require("react/jsx-runtime");
@@ -4007,7 +4064,7 @@ var PasswordField = ({ onChange, className, disabled, error, ...textFieldProps }
4007
4064
  TextField_default,
4008
4065
  {
4009
4066
  ...textFieldProps,
4010
- className: (0, import_css21.cx)((0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("password-field")), className),
4067
+ className: (0, import_css21.cx)((0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("password-field")), className),
4011
4068
  type: showPassword ? "text" : "password",
4012
4069
  onChange: (e) => onChange(e.target.value),
4013
4070
  autoComplete: "current-password",
@@ -4019,7 +4076,7 @@ var PasswordField = ({ onChange, className, disabled, error, ...textFieldProps }
4019
4076
  width: 16,
4020
4077
  height: 16,
4021
4078
  className: (0, import_css21.cx)(
4022
- (0, import_browser29.withVendorCSSClassPrefix)((0, import_browser29.bem)("password-field", "toggle-icon")),
4079
+ (0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("password-field", "toggle-icon")),
4023
4080
  styles.toggleIcon,
4024
4081
  showPassword ? styles.visibleIcon : styles.hiddenIcon
4025
4082
  )
@@ -4033,7 +4090,7 @@ var PasswordField_default = PasswordField;
4033
4090
 
4034
4091
  // src/components/primitives/DatePicker/DatePicker.tsx
4035
4092
  var import_css23 = require("@emotion/css");
4036
- var import_browser30 = require("@asgardeo/browser");
4093
+ var import_browser31 = require("@asgardeo/browser");
4037
4094
 
4038
4095
  // src/components/primitives/DatePicker/DatePicker.styles.ts
4039
4096
  var import_css22 = require("@emotion/css");
@@ -4122,7 +4179,7 @@ var DatePicker = ({
4122
4179
  {
4123
4180
  error,
4124
4181
  helperText,
4125
- className: (0, import_css23.cx)((0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker")), className),
4182
+ className: (0, import_css23.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker")), className),
4126
4183
  style,
4127
4184
  children: [
4128
4185
  label && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
@@ -4130,7 +4187,7 @@ var DatePicker = ({
4130
4187
  {
4131
4188
  required,
4132
4189
  error: hasError,
4133
- className: (0, import_css23.cx)((0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "label")), styles.label),
4190
+ className: (0, import_css23.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "label")), styles.label),
4134
4191
  children: label
4135
4192
  }
4136
4193
  ),
@@ -4141,13 +4198,13 @@ var DatePicker = ({
4141
4198
  pattern: "\\d{4}-\\d{2}-\\d{2}",
4142
4199
  placeholder: dateFormat,
4143
4200
  className: (0, import_css23.cx)(
4144
- (0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "input")),
4201
+ (0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "input")),
4145
4202
  styles.input,
4146
4203
  styles.errorInput,
4147
4204
  styles.disabledInput,
4148
4205
  {
4149
- [(0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "input", "error"))]: hasError,
4150
- [(0, import_browser30.withVendorCSSClassPrefix)((0, import_browser30.bem)("date-picker", "input", "disabled"))]: disabled
4206
+ [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "input", "error"))]: hasError,
4207
+ [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("date-picker", "input", "disabled"))]: disabled
4151
4208
  }
4152
4209
  ),
4153
4210
  disabled,
@@ -4164,7 +4221,7 @@ var DatePicker_default = DatePicker;
4164
4221
 
4165
4222
  // src/components/primitives/Checkbox/Checkbox.tsx
4166
4223
  var import_css25 = require("@emotion/css");
4167
- var import_browser31 = require("@asgardeo/browser");
4224
+ var import_browser32 = require("@asgardeo/browser");
4168
4225
 
4169
4226
  // src/components/primitives/Checkbox/Checkbox.styles.ts
4170
4227
  var import_css24 = require("@emotion/css");
@@ -4237,15 +4294,15 @@ var Checkbox = ({ label, error, className, required, helperText, style = {}, ...
4237
4294
  {
4238
4295
  error,
4239
4296
  helperText,
4240
- className: (0, import_css25.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox")), className),
4297
+ className: (0, import_css25.cx)((0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox")), className),
4241
4298
  helperTextMarginLeft: `calc(${theme.vars.spacing.unit} * 3.5)`,
4242
- 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: [
4299
+ 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: [
4243
4300
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4244
4301
  "input",
4245
4302
  {
4246
4303
  type: "checkbox",
4247
- className: (0, import_css25.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "input")), styles.input, styles.errorInput, {
4248
- [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "input", "error"))]: hasError
4304
+ className: (0, import_css25.cx)((0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "input")), styles.input, styles.errorInput, {
4305
+ [(0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "input", "error"))]: hasError
4249
4306
  }),
4250
4307
  "aria-invalid": hasError,
4251
4308
  "aria-required": required,
@@ -4258,8 +4315,8 @@ var Checkbox = ({ label, error, className, required, helperText, style = {}, ...
4258
4315
  required,
4259
4316
  error: hasError,
4260
4317
  variant: "inline",
4261
- className: (0, import_css25.cx)((0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "label")), styles.label, styles.errorLabel, {
4262
- [(0, import_browser31.withVendorCSSClassPrefix)((0, import_browser31.bem)("checkbox", "label", "error"))]: hasError
4318
+ className: (0, import_css25.cx)((0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "label")), styles.label, styles.errorLabel, {
4319
+ [(0, import_browser32.withVendorCSSClassPrefix)((0, import_browser32.bem)("checkbox", "label", "error"))]: hasError
4263
4320
  }),
4264
4321
  children: label
4265
4322
  }
@@ -4271,7 +4328,7 @@ var Checkbox = ({ label, error, className, required, helperText, style = {}, ...
4271
4328
  var Checkbox_default = Checkbox;
4272
4329
 
4273
4330
  // src/components/factories/FieldFactory.tsx
4274
- var import_browser32 = require("@asgardeo/browser");
4331
+ var import_browser33 = require("@asgardeo/browser");
4275
4332
  var import_jsx_runtime30 = require("react/jsx-runtime");
4276
4333
  var validateFieldValue = (value, type, required = false, touched = false) => {
4277
4334
  if (required && touched && (!value || value.trim() === "")) {
@@ -4281,7 +4338,7 @@ var validateFieldValue = (value, type, required = false, touched = false) => {
4281
4338
  return null;
4282
4339
  }
4283
4340
  switch (type) {
4284
- case import_browser32.FieldType.Number:
4341
+ case import_browser33.FieldType.Number:
4285
4342
  const numValue = parseInt(value, 10);
4286
4343
  if (isNaN(numValue)) {
4287
4344
  return "Please enter a valid number";
@@ -4317,20 +4374,20 @@ var createField = (config) => {
4317
4374
  placeholder
4318
4375
  };
4319
4376
  switch (type) {
4320
- case import_browser32.FieldType.Password:
4377
+ case import_browser33.FieldType.Password:
4321
4378
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PasswordField_default, { ...commonProps, onChange });
4322
- case import_browser32.FieldType.Text:
4379
+ case import_browser33.FieldType.Text:
4323
4380
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TextField_default, { ...commonProps, type: "text", onChange: (e) => onChange(e.target.value), autoComplete: "off" });
4324
- case import_browser32.FieldType.Email:
4381
+ case import_browser33.FieldType.Email:
4325
4382
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TextField_default, { ...commonProps, type: "email", onChange: (e) => onChange(e.target.value), autoComplete: "email" });
4326
- case import_browser32.FieldType.Date:
4383
+ case import_browser33.FieldType.Date:
4327
4384
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DatePicker_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
4328
- case import_browser32.FieldType.Checkbox:
4385
+ case import_browser33.FieldType.Checkbox:
4329
4386
  const isChecked = value === "true" || value === true;
4330
4387
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Checkbox_default, { ...commonProps, checked: isChecked, onChange: (e) => onChange(e.target.checked.toString()) });
4331
- case import_browser32.FieldType.Otp:
4388
+ case import_browser33.FieldType.Otp:
4332
4389
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(OtpField_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
4333
- case import_browser32.FieldType.Number:
4390
+ case import_browser33.FieldType.Number:
4334
4391
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4335
4392
  TextField_default,
4336
4393
  {
@@ -4340,7 +4397,7 @@ var createField = (config) => {
4340
4397
  helperText: "Enter a numeric value"
4341
4398
  }
4342
4399
  );
4343
- case import_browser32.FieldType.Select:
4400
+ case import_browser33.FieldType.Select:
4344
4401
  const fieldOptions = options.length > 0 ? options : [];
4345
4402
  if (fieldOptions.length > 0) {
4346
4403
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
@@ -4403,7 +4460,7 @@ var UsernamePassword = ({
4403
4460
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
4404
4461
  formFields.map((param) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: createField({
4405
4462
  name: param.param,
4406
- type: param.type === import_browser33.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser33.FieldType.Password : import_browser33.FieldType.Text : import_browser33.FieldType.Text,
4463
+ type: param.type === import_browser34.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser34.FieldType.Password : import_browser34.FieldType.Text : import_browser34.FieldType.Text,
4407
4464
  label: param.displayName,
4408
4465
  required: authenticator.requiredParams.includes(param.param),
4409
4466
  value: formValues[param.param] || "",
@@ -4418,13 +4475,13 @@ var UsernamePassword = ({
4418
4475
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4419
4476
  Button_default,
4420
4477
  {
4478
+ fullWidth: true,
4421
4479
  type: "submit",
4480
+ color: "primary",
4481
+ variant: "solid",
4422
4482
  disabled: isLoading,
4423
4483
  loading: isLoading,
4424
4484
  className: buttonClassName,
4425
- color: "primary",
4426
- variant: "solid",
4427
- fullWidth: true,
4428
4485
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4429
4486
  children: t("username.password.submit.button")
4430
4487
  }
@@ -4434,7 +4491,7 @@ var UsernamePassword = ({
4434
4491
  var UsernamePassword_default = UsernamePassword;
4435
4492
 
4436
4493
  // src/components/presentation/SignIn/options/IdentifierFirst.tsx
4437
- var import_browser34 = require("@asgardeo/browser");
4494
+ var import_browser35 = require("@asgardeo/browser");
4438
4495
  var import_react45 = require("react");
4439
4496
  var import_jsx_runtime32 = require("react/jsx-runtime");
4440
4497
  var IdentifierFirst = ({
@@ -4459,7 +4516,7 @@ var IdentifierFirst = ({
4459
4516
  return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
4460
4517
  formFields.map((param) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: createField({
4461
4518
  name: param.param,
4462
- type: param.type === import_browser34.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser34.FieldType.Password : import_browser34.FieldType.Text : import_browser34.FieldType.Text,
4519
+ type: param.type === import_browser35.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser35.FieldType.Password : import_browser35.FieldType.Text : import_browser35.FieldType.Text,
4463
4520
  label: param.displayName,
4464
4521
  required: authenticator.requiredParams.includes(param.param),
4465
4522
  value: formValues[param.param] || "",
@@ -4474,13 +4531,13 @@ var IdentifierFirst = ({
4474
4531
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4475
4532
  Button_default,
4476
4533
  {
4534
+ fullWidth: true,
4477
4535
  type: "submit",
4536
+ color: "primary",
4537
+ variant: "solid",
4478
4538
  disabled: isLoading,
4479
4539
  loading: isLoading,
4480
4540
  className: buttonClassName,
4481
- color: "primary",
4482
- variant: "solid",
4483
- fullWidth: true,
4484
4541
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4485
4542
  children: t("identifier.first.submit.button")
4486
4543
  }
@@ -4489,29 +4546,24 @@ var IdentifierFirst = ({
4489
4546
  };
4490
4547
  var IdentifierFirst_default = IdentifierFirst;
4491
4548
 
4492
- // src/components/presentation/SignIn/options/GoogleButton.tsx
4549
+ // src/components/presentation/options/GoogleButton.tsx
4493
4550
  var import_jsx_runtime33 = require("react/jsx-runtime");
4494
4551
  var GoogleButton = ({
4495
- authenticator,
4496
4552
  isLoading,
4497
- onSubmit,
4498
- buttonClassName = "",
4499
- preferences
4553
+ preferences,
4554
+ children,
4555
+ ...rest
4500
4556
  }) => {
4501
4557
  const { t } = useTranslation_default(preferences?.i18n);
4502
- const handleClick = () => {
4503
- onSubmit(authenticator);
4504
- };
4505
4558
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4506
4559
  Button_default,
4507
4560
  {
4561
+ ...rest,
4562
+ fullWidth: true,
4508
4563
  type: "button",
4509
- variant: "solid",
4510
4564
  color: "secondary",
4511
- fullWidth: true,
4565
+ variant: "solid",
4512
4566
  disabled: isLoading,
4513
- onClick: handleClick,
4514
- className: buttonClassName,
4515
4567
  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: [
4516
4568
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4517
4569
  "path",
@@ -4546,35 +4598,30 @@ var GoogleButton = ({
4546
4598
  }
4547
4599
  )
4548
4600
  ] }) }),
4549
- children: t("elements.buttons.google")
4601
+ children: children ?? t("elements.buttons.google")
4550
4602
  }
4551
4603
  );
4552
4604
  };
4553
4605
  var GoogleButton_default = GoogleButton;
4554
4606
 
4555
- // src/components/presentation/SignIn/options/GitHubButton.tsx
4607
+ // src/components/presentation/options/GitHubButton.tsx
4556
4608
  var import_jsx_runtime34 = require("react/jsx-runtime");
4557
4609
  var GitHubButton = ({
4558
- authenticator,
4559
4610
  isLoading,
4560
- onSubmit,
4561
- buttonClassName = "",
4562
- preferences
4611
+ preferences,
4612
+ children,
4613
+ ...rest
4563
4614
  }) => {
4564
4615
  const { t } = useTranslation_default(preferences?.i18n);
4565
- const handleClick = () => {
4566
- onSubmit(authenticator);
4567
- };
4568
4616
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4569
4617
  Button_default,
4570
4618
  {
4619
+ ...rest,
4620
+ fullWidth: true,
4571
4621
  type: "button",
4572
- variant: "solid",
4573
4622
  color: "secondary",
4574
- fullWidth: true,
4623
+ variant: "solid",
4575
4624
  disabled: isLoading,
4576
- onClick: handleClick,
4577
- className: buttonClassName,
4578
4625
  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)(
4579
4626
  "path",
4580
4627
  {
@@ -4582,35 +4629,30 @@ var GitHubButton = ({
4582
4629
  fill: "#ffffff"
4583
4630
  }
4584
4631
  ) }) }),
4585
- children: t("elements.buttons.github")
4632
+ children: children ?? t("elements.buttons.github")
4586
4633
  }
4587
4634
  );
4588
4635
  };
4589
4636
  var GitHubButton_default = GitHubButton;
4590
4637
 
4591
- // src/components/presentation/SignIn/options/MicrosoftButton.tsx
4638
+ // src/components/presentation/options/MicrosoftButton.tsx
4592
4639
  var import_jsx_runtime35 = require("react/jsx-runtime");
4593
4640
  var MicrosoftButton = ({
4594
- authenticator,
4595
4641
  isLoading,
4596
- onSubmit,
4597
- buttonClassName = "",
4598
- preferences
4642
+ preferences,
4643
+ children,
4644
+ ...rest
4599
4645
  }) => {
4600
4646
  const { t } = useTranslation_default(preferences?.i18n);
4601
- const handleClick = () => {
4602
- onSubmit(authenticator);
4603
- };
4604
4647
  return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4605
4648
  Button_default,
4606
4649
  {
4607
- type: "button",
4608
- variant: "outline",
4609
- color: "primary",
4650
+ ...rest,
4610
4651
  fullWidth: true,
4652
+ type: "button",
4653
+ color: "secondary",
4654
+ variant: "solid",
4611
4655
  disabled: isLoading,
4612
- onClick: handleClick,
4613
- className: buttonClassName,
4614
4656
  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: [
4615
4657
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#f3f3f3", d: "M0 0h23v23H0z" }),
4616
4658
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#f35325", d: "M1 1h10v10H1z" }),
@@ -4618,36 +4660,30 @@ var MicrosoftButton = ({
4618
4660
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#05a6f0", d: "M1 12h10v10H1z" }),
4619
4661
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#ffba08", d: "M12 12h10v10H12z" })
4620
4662
  ] }),
4621
- children: t("elements.buttons.microsoft")
4663
+ children: children ?? t("elements.buttons.microsoft")
4622
4664
  }
4623
4665
  );
4624
4666
  };
4625
4667
  var MicrosoftButton_default = MicrosoftButton;
4626
4668
 
4627
- // src/components/presentation/SignIn/options/FacebookButton.tsx
4669
+ // src/components/presentation/options/FacebookButton.tsx
4628
4670
  var import_jsx_runtime36 = require("react/jsx-runtime");
4629
4671
  var FacebookButton = ({
4630
- authenticator,
4631
4672
  isLoading,
4632
- onSubmit,
4633
- buttonClassName = "",
4634
- submitButtonText,
4635
- preferences
4673
+ preferences,
4674
+ children,
4675
+ ...rest
4636
4676
  }) => {
4637
4677
  const { t } = useTranslation_default(preferences?.i18n);
4638
- const handleClick = () => {
4639
- onSubmit(authenticator);
4640
- };
4641
4678
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4642
4679
  Button_default,
4643
4680
  {
4681
+ ...rest,
4682
+ fullWidth: true,
4644
4683
  type: "button",
4645
- variant: "solid",
4646
4684
  color: "primary",
4647
- fullWidth: true,
4685
+ variant: "solid",
4648
4686
  disabled: isLoading,
4649
- onClick: handleClick,
4650
- className: buttonClassName,
4651
4687
  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: [
4652
4688
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4653
4689
  "path",
@@ -4664,35 +4700,30 @@ var FacebookButton = ({
4664
4700
  }
4665
4701
  )
4666
4702
  ] }),
4667
- children: t("elements.buttons.facebook")
4703
+ children: children ?? t("elements.buttons.facebook")
4668
4704
  }
4669
4705
  );
4670
4706
  };
4671
4707
  var FacebookButton_default = FacebookButton;
4672
4708
 
4673
- // src/components/presentation/SignIn/options/LinkedInButton.tsx
4709
+ // src/components/presentation/options/LinkedInButton.tsx
4674
4710
  var import_jsx_runtime37 = require("react/jsx-runtime");
4675
4711
  var LinkedInButton = ({
4676
- authenticator,
4677
4712
  isLoading,
4678
- onSubmit,
4679
- buttonClassName = "",
4680
- preferences
4713
+ preferences,
4714
+ children,
4715
+ ...rest
4681
4716
  }) => {
4682
4717
  const { t } = useTranslation_default(preferences?.i18n);
4683
- const handleClick = () => {
4684
- onSubmit(authenticator);
4685
- };
4686
4718
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4687
4719
  Button_default,
4688
4720
  {
4689
- type: "button",
4690
- variant: "outline",
4691
- color: "primary",
4721
+ ...rest,
4692
4722
  fullWidth: true,
4723
+ type: "button",
4724
+ color: "secondary",
4725
+ variant: "solid",
4693
4726
  disabled: isLoading,
4694
- onClick: handleClick,
4695
- className: buttonClassName,
4696
4727
  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)(
4697
4728
  "path",
4698
4729
  {
@@ -4700,35 +4731,30 @@ var LinkedInButton = ({
4700
4731
  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"
4701
4732
  }
4702
4733
  ) }),
4703
- children: t("elements.buttons.linkedin")
4734
+ children: children ?? t("elements.buttons.linkedin")
4704
4735
  }
4705
4736
  );
4706
4737
  };
4707
4738
  var LinkedInButton_default = LinkedInButton;
4708
4739
 
4709
- // src/components/presentation/SignIn/options/SignInWithEthereumButton.tsx
4740
+ // src/components/presentation/options/SignInWithEthereumButton.tsx
4710
4741
  var import_jsx_runtime38 = require("react/jsx-runtime");
4711
4742
  var SignInWithEthereumButton = ({
4712
- authenticator,
4713
4743
  isLoading,
4714
- onSubmit,
4715
- buttonClassName = "",
4716
- preferences
4744
+ preferences,
4745
+ children,
4746
+ ...rest
4717
4747
  }) => {
4718
4748
  const { t } = useTranslation_default(preferences?.i18n);
4719
- const handleClick = () => {
4720
- onSubmit(authenticator);
4721
- };
4722
4749
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4723
4750
  Button_default,
4724
4751
  {
4752
+ ...rest,
4753
+ fullWidth: true,
4725
4754
  type: "button",
4726
- variant: "outline",
4727
4755
  color: "secondary",
4728
- fullWidth: true,
4756
+ variant: "solid",
4729
4757
  disabled: isLoading,
4730
- onClick: handleClick,
4731
- className: buttonClassName,
4732
4758
  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)(
4733
4759
  "path",
4734
4760
  {
@@ -4736,14 +4762,14 @@ var SignInWithEthereumButton = ({
4736
4762
  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"
4737
4763
  }
4738
4764
  ) }),
4739
- children: t("elements.buttons.ethereum")
4765
+ children: children ?? t("elements.buttons.ethereum")
4740
4766
  }
4741
4767
  );
4742
4768
  };
4743
4769
  var SignInWithEthereumButton_default = SignInWithEthereumButton;
4744
4770
 
4745
4771
  // src/components/presentation/SignIn/options/EmailOtp.tsx
4746
- var import_browser35 = require("@asgardeo/browser");
4772
+ var import_browser36 = require("@asgardeo/browser");
4747
4773
  var import_react46 = require("react");
4748
4774
  var import_jsx_runtime39 = require("react/jsx-runtime");
4749
4775
  var EmailOtp = ({
@@ -4782,7 +4808,7 @@ var EmailOtp = ({
4782
4808
  }
4783
4809
  ) : createField({
4784
4810
  name: param.param,
4785
- type: param.type === import_browser35.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser35.FieldType.Password : import_browser35.FieldType.Text : import_browser35.FieldType.Text,
4811
+ type: param.type === import_browser36.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser36.FieldType.Password : import_browser36.FieldType.Text : import_browser36.FieldType.Text,
4786
4812
  label: param.displayName,
4787
4813
  required: authenticator.requiredParams.includes(param.param),
4788
4814
  value: formValues[param.param] || "",
@@ -4795,13 +4821,13 @@ var EmailOtp = ({
4795
4821
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4796
4822
  Button_default,
4797
4823
  {
4824
+ fullWidth: true,
4798
4825
  type: "submit",
4826
+ color: "primary",
4827
+ variant: "solid",
4799
4828
  disabled: isLoading,
4800
4829
  loading: isLoading,
4801
4830
  className: buttonClassName,
4802
- color: "primary",
4803
- variant: "solid",
4804
- fullWidth: true,
4805
4831
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4806
4832
  children: t("email.otp.submit.button")
4807
4833
  }
@@ -4811,7 +4837,7 @@ var EmailOtp = ({
4811
4837
  var EmailOtp_default = EmailOtp;
4812
4838
 
4813
4839
  // src/components/presentation/SignIn/options/Totp.tsx
4814
- var import_browser36 = require("@asgardeo/browser");
4840
+ var import_browser37 = require("@asgardeo/browser");
4815
4841
  var import_react47 = require("react");
4816
4842
  var import_jsx_runtime40 = require("react/jsx-runtime");
4817
4843
  var Totp = ({
@@ -4850,7 +4876,7 @@ var Totp = ({
4850
4876
  }
4851
4877
  ) : createField({
4852
4878
  name: param.param,
4853
- type: param.type === import_browser36.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser36.FieldType.Password : import_browser36.FieldType.Text : import_browser36.FieldType.Text,
4879
+ type: param.type === import_browser37.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser37.FieldType.Password : import_browser37.FieldType.Text : import_browser37.FieldType.Text,
4854
4880
  label: param.displayName,
4855
4881
  required: authenticator.requiredParams.includes(param.param),
4856
4882
  value: formValues[param.param] || "",
@@ -4863,13 +4889,13 @@ var Totp = ({
4863
4889
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4864
4890
  Button_default,
4865
4891
  {
4892
+ fullWidth: true,
4866
4893
  type: "submit",
4894
+ color: "primary",
4895
+ variant: "solid",
4867
4896
  disabled: isLoading,
4868
4897
  loading: isLoading,
4869
4898
  className: buttonClassName,
4870
- color: "primary",
4871
- variant: "solid",
4872
- fullWidth: true,
4873
4899
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4874
4900
  children: t("totp.submit.button")
4875
4901
  }
@@ -4879,7 +4905,7 @@ var Totp = ({
4879
4905
  var Totp_default = Totp;
4880
4906
 
4881
4907
  // src/components/presentation/SignIn/options/SmsOtp.tsx
4882
- var import_browser37 = require("@asgardeo/browser");
4908
+ var import_browser38 = require("@asgardeo/browser");
4883
4909
  var import_react48 = require("react");
4884
4910
  var import_jsx_runtime41 = require("react/jsx-runtime");
4885
4911
  var SmsOtp = ({
@@ -4918,7 +4944,7 @@ var SmsOtp = ({
4918
4944
  }
4919
4945
  ) : createField({
4920
4946
  name: param.param,
4921
- type: param.type === import_browser37.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser37.FieldType.Password : import_browser37.FieldType.Text : import_browser37.FieldType.Text,
4947
+ type: param.type === import_browser38.EmbeddedSignInFlowAuthenticatorParamType.String ? param.confidential ? import_browser38.FieldType.Password : import_browser38.FieldType.Text : import_browser38.FieldType.Text,
4922
4948
  label: param.displayName,
4923
4949
  required: authenticator.requiredParams.includes(param.param),
4924
4950
  value: formValues[param.param] || "",
@@ -4931,13 +4957,13 @@ var SmsOtp = ({
4931
4957
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4932
4958
  Button_default,
4933
4959
  {
4960
+ fullWidth: true,
4934
4961
  type: "submit",
4962
+ color: "primary",
4963
+ variant: "solid",
4935
4964
  disabled: isLoading,
4936
4965
  loading: isLoading,
4937
4966
  className: buttonClassName,
4938
- color: "primary",
4939
- variant: "solid",
4940
- fullWidth: true,
4941
4967
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4942
4968
  children: t("sms.otp.submit.button")
4943
4969
  }
@@ -4946,33 +4972,24 @@ var SmsOtp = ({
4946
4972
  };
4947
4973
  var SmsOtp_default = SmsOtp;
4948
4974
 
4949
- // src/components/presentation/SignIn/options/SocialButton.tsx
4975
+ // src/components/presentation/options/SocialButton.tsx
4950
4976
  var import_jsx_runtime42 = require("react/jsx-runtime");
4951
4977
  var SocialLogin = ({
4952
- authenticator,
4953
4978
  isLoading,
4954
- onSubmit,
4955
- buttonClassName = "",
4956
- preferences
4979
+ preferences,
4980
+ children,
4981
+ ...rest
4957
4982
  }) => {
4958
4983
  const { t } = useTranslation_default(preferences?.i18n);
4959
- const getDisplayName = () => {
4960
- const providerName = authenticator.idp;
4961
- return t("elements.buttons.social", { connection: providerName });
4962
- };
4963
- const handleClick = () => {
4964
- onSubmit(authenticator);
4965
- };
4966
4984
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4967
4985
  Button_default,
4968
4986
  {
4987
+ ...rest,
4988
+ fullWidth: true,
4969
4989
  type: "button",
4970
- variant: "outline",
4971
4990
  color: "secondary",
4972
- fullWidth: true,
4991
+ variant: "outline",
4973
4992
  disabled: isLoading,
4974
- onClick: handleClick,
4975
- className: buttonClassName,
4976
4993
  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)(
4977
4994
  "path",
4978
4995
  {
@@ -4980,14 +4997,14 @@ var SocialLogin = ({
4980
4997
  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"
4981
4998
  }
4982
4999
  ) }),
4983
- children: getDisplayName()
5000
+ children: t("elements.buttons.social", { connection: children })
4984
5001
  }
4985
5002
  );
4986
5003
  };
4987
5004
  var SocialButton_default = SocialLogin;
4988
5005
 
4989
5006
  // src/components/presentation/SignIn/options/MultiOptionButton.tsx
4990
- var import_browser38 = require("@asgardeo/browser");
5007
+ var import_browser39 = require("@asgardeo/browser");
4991
5008
  var import_jsx_runtime43 = require("react/jsx-runtime");
4992
5009
  var MultiOptionButton = ({
4993
5010
  authenticator,
@@ -4999,7 +5016,7 @@ var MultiOptionButton = ({
4999
5016
  const { t } = useTranslation_default(preferences?.i18n);
5000
5017
  const getDisplayName = () => {
5001
5018
  let authenticatorName = authenticator.authenticator;
5002
- if (authenticator.idp !== import_browser38.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5019
+ if (authenticator.idp !== import_browser39.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5003
5020
  authenticatorName = authenticator.idp;
5004
5021
  }
5005
5022
  switch (authenticatorName) {
@@ -5010,7 +5027,7 @@ var MultiOptionButton = ({
5010
5027
  const getIcon = () => {
5011
5028
  const authenticatorId = authenticator.authenticatorId;
5012
5029
  switch (authenticatorId) {
5013
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5030
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5014
5031
  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)(
5015
5032
  "path",
5016
5033
  {
@@ -5018,7 +5035,7 @@ var MultiOptionButton = ({
5018
5035
  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"
5019
5036
  }
5020
5037
  ) });
5021
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5038
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5022
5039
  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)(
5023
5040
  "path",
5024
5041
  {
@@ -5026,9 +5043,9 @@ var MultiOptionButton = ({
5026
5043
  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"
5027
5044
  }
5028
5045
  ) });
5029
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5046
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5030
5047
  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" }) });
5031
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.PushNotification:
5048
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.PushNotification:
5032
5049
  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)(
5033
5050
  "path",
5034
5051
  {
@@ -5036,7 +5053,7 @@ var MultiOptionButton = ({
5036
5053
  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"
5037
5054
  }
5038
5055
  ) });
5039
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey:
5056
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey:
5040
5057
  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: [
5041
5058
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
5042
5059
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }),
@@ -5045,7 +5062,7 @@ var MultiOptionButton = ({
5045
5062
  " "
5046
5063
  ] })
5047
5064
  ] });
5048
- case import_browser38.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.MagicLink:
5065
+ case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.MagicLink:
5049
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)(
5050
5067
  "path",
5051
5068
  {
@@ -5069,10 +5086,10 @@ var MultiOptionButton = ({
5069
5086
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5070
5087
  Button_default,
5071
5088
  {
5072
- type: "button",
5073
- variant: "outline",
5074
- color: "primary",
5075
5089
  fullWidth: true,
5090
+ type: "button",
5091
+ color: "secondary",
5092
+ variant: "solid",
5076
5093
  disabled: isLoading,
5077
5094
  onClick: handleClick,
5078
5095
  className: buttonClassName,
@@ -5085,40 +5102,109 @@ var MultiOptionButton_default = MultiOptionButton;
5085
5102
 
5086
5103
  // src/components/presentation/SignIn/options/SignInOptionFactory.tsx
5087
5104
  var import_jsx_runtime44 = require("react/jsx-runtime");
5088
- var createSignInOption = (props) => {
5089
- const { authenticator, ...optionProps } = props;
5105
+ var createSignInOption = ({
5106
+ authenticator,
5107
+ onSubmit,
5108
+ buttonClassName,
5109
+ preferences,
5110
+ ...rest
5111
+ }) => {
5090
5112
  const hasParams = authenticator.metadata?.params && authenticator.metadata.params.length > 0;
5091
5113
  switch (authenticator.authenticatorId) {
5092
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.UsernamePassword:
5093
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { ...props });
5094
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.IdentifierFirst:
5095
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IdentifierFirst_default, { ...props });
5096
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Google:
5097
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GoogleButton_default, { ...props });
5098
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.GitHub:
5099
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GitHubButton_default, { ...props });
5100
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Microsoft:
5101
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MicrosoftButton_default, { ...props });
5102
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Facebook:
5103
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(FacebookButton_default, { ...props });
5104
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.LinkedIn:
5105
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(LinkedInButton_default, { ...props });
5106
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SignInWithEthereum:
5107
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SignInWithEthereumButton_default, { ...props });
5108
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5109
- return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(EmailOtp_default, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5110
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5111
- return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Totp_default, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5112
- case import_browser39.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5113
- return hasParams ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SmsOtp_default, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5114
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.UsernamePassword:
5115
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5116
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.IdentifierFirst:
5117
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IdentifierFirst_default, { authenticator, preferences, onSubmit, ...rest });
5118
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Google:
5119
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5120
+ GoogleButton_default,
5121
+ {
5122
+ className: buttonClassName,
5123
+ onClick: () => onSubmit(authenticator),
5124
+ authenticator,
5125
+ preferences,
5126
+ ...rest
5127
+ }
5128
+ );
5129
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.GitHub:
5130
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5131
+ GitHubButton_default,
5132
+ {
5133
+ authenticator,
5134
+ preferences,
5135
+ className: buttonClassName,
5136
+ onClick: () => onSubmit(authenticator),
5137
+ ...rest
5138
+ }
5139
+ );
5140
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Microsoft:
5141
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5142
+ MicrosoftButton_default,
5143
+ {
5144
+ authenticator,
5145
+ preferences,
5146
+ className: buttonClassName,
5147
+ onClick: () => onSubmit(authenticator),
5148
+ ...rest
5149
+ }
5150
+ );
5151
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Facebook:
5152
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5153
+ FacebookButton_default,
5154
+ {
5155
+ authenticator,
5156
+ preferences,
5157
+ className: buttonClassName,
5158
+ onClick: () => onSubmit(authenticator),
5159
+ ...rest
5160
+ }
5161
+ );
5162
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.LinkedIn:
5163
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5164
+ LinkedInButton_default,
5165
+ {
5166
+ authenticator,
5167
+ preferences,
5168
+ className: buttonClassName,
5169
+ onClick: () => onSubmit(authenticator),
5170
+ ...rest
5171
+ }
5172
+ );
5173
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SignInWithEthereum:
5174
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5175
+ SignInWithEthereumButton_default,
5176
+ {
5177
+ authenticator,
5178
+ preferences,
5179
+ className: buttonClassName,
5180
+ onClick: () => onSubmit(authenticator),
5181
+ ...rest
5182
+ }
5183
+ );
5184
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5185
+ 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 });
5186
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5187
+ 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 });
5188
+ case import_browser40.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5189
+ 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 });
5114
5190
  default:
5115
- if (authenticator.idp !== import_browser39.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5116
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SocialButton_default, { ...props });
5191
+ if (authenticator.idp !== import_browser40.EmbeddedSignInFlowAuthenticatorKnownIdPType.Local) {
5192
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
5193
+ SocialButton_default,
5194
+ {
5195
+ authenticator,
5196
+ preferences,
5197
+ className: buttonClassName,
5198
+ onClick: () => onSubmit(authenticator),
5199
+ ...rest,
5200
+ children: authenticator.idp
5201
+ }
5202
+ );
5117
5203
  }
5118
5204
  if (hasParams) {
5119
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { ...props });
5205
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5120
5206
  } else {
5121
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { ...props });
5207
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5122
5208
  }
5123
5209
  }
5124
5210
  };
@@ -5136,7 +5222,7 @@ var createSignInOptionFromAuthenticator = (authenticator, formValues, touchedFie
5136
5222
 
5137
5223
  // src/components/primitives/Alert/Alert.tsx
5138
5224
  var import_react50 = require("react");
5139
- var import_browser40 = require("@asgardeo/browser");
5225
+ var import_browser41 = require("@asgardeo/browser");
5140
5226
  var import_css27 = require("@emotion/css");
5141
5227
 
5142
5228
  // src/components/primitives/Icons/CircleCheck.tsx
@@ -5337,16 +5423,16 @@ var Alert = (0, import_react50.forwardRef)(
5337
5423
  role: "alert",
5338
5424
  style,
5339
5425
  className: (0, import_css27.cx)(
5340
- (0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert")),
5426
+ (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert")),
5341
5427
  styles.alert,
5342
5428
  styles.variant,
5343
- (0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", null, variant)),
5429
+ (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", null, variant)),
5344
5430
  className
5345
5431
  ),
5346
5432
  ...rest,
5347
5433
  children: [
5348
- 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, {}) }),
5349
- /* @__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 })
5434
+ 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, {}) }),
5435
+ /* @__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 })
5350
5436
  ]
5351
5437
  }
5352
5438
  ) });
@@ -5364,7 +5450,7 @@ var AlertTitle = (0, import_react50.forwardRef)(({ children, className, style, .
5364
5450
  variant: "h6",
5365
5451
  fontWeight: 600,
5366
5452
  style,
5367
- className: (0, import_css27.cx)((0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", "title")), styles.title, className),
5453
+ className: (0, import_css27.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", "title")), styles.title, className),
5368
5454
  ...filteredRest,
5369
5455
  children
5370
5456
  }
@@ -5382,7 +5468,7 @@ var AlertDescription = (0, import_react50.forwardRef)(
5382
5468
  component: "p",
5383
5469
  variant: "body2",
5384
5470
  style,
5385
- className: (0, import_css27.cx)((0, import_browser40.withVendorCSSClassPrefix)((0, import_browser40.bem)("alert", "description")), styles.description, className),
5471
+ className: (0, import_css27.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("alert", "description")), styles.description, className),
5386
5472
  ...filteredRest,
5387
5473
  children
5388
5474
  }
@@ -5397,7 +5483,7 @@ Alert.Description = AlertDescription;
5397
5483
  var Alert_default = Alert;
5398
5484
 
5399
5485
  // src/components/primitives/Card/Card.tsx
5400
- var import_browser41 = require("@asgardeo/browser");
5486
+ var import_browser42 = require("@asgardeo/browser");
5401
5487
  var import_css29 = require("@emotion/css");
5402
5488
  var import_react52 = require("react");
5403
5489
 
@@ -5492,13 +5578,13 @@ var Card = (0, import_react52.forwardRef)(
5492
5578
  ref,
5493
5579
  style,
5494
5580
  className: (0, import_css29.cx)(
5495
- (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card")),
5581
+ (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card")),
5496
5582
  styles.card,
5497
5583
  styles.variant,
5498
5584
  styles.clickable,
5499
- (0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", null, variant)),
5585
+ (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", null, variant)),
5500
5586
  {
5501
- [(0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", null, "clickable"))]: clickable
5587
+ [(0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", null, "clickable"))]: clickable
5502
5588
  },
5503
5589
  className
5504
5590
  ),
@@ -5516,7 +5602,7 @@ var CardHeader = (0, import_react52.forwardRef)(({ children, className, style, .
5516
5602
  {
5517
5603
  ref,
5518
5604
  style,
5519
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "header")), styles.header, className),
5605
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "header")), styles.header, className),
5520
5606
  ...rest,
5521
5607
  children
5522
5608
  }
@@ -5569,7 +5655,7 @@ var CardTitle = (0, import_react52.forwardRef)(
5569
5655
  component: getComponentFromLevel(level),
5570
5656
  variant: getVariantFromLevel(level),
5571
5657
  style,
5572
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "title")), styles.title, className),
5658
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "title")), styles.title, className),
5573
5659
  fontWeight: 600,
5574
5660
  ...filteredRest,
5575
5661
  children
@@ -5589,7 +5675,7 @@ var CardDescription = (0, import_react52.forwardRef)(
5589
5675
  variant: "body2",
5590
5676
  color: "textSecondary",
5591
5677
  style,
5592
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "description")), styles.description, className),
5678
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "description")), styles.description, className),
5593
5679
  ...filteredRest,
5594
5680
  children
5595
5681
  }
@@ -5604,7 +5690,7 @@ var CardAction = (0, import_react52.forwardRef)(({ children, className, style, .
5604
5690
  {
5605
5691
  ref,
5606
5692
  style,
5607
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "action")), styles.action, className),
5693
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "action")), styles.action, className),
5608
5694
  ...rest,
5609
5695
  children
5610
5696
  }
@@ -5618,7 +5704,7 @@ var CardContent = (0, import_react52.forwardRef)(({ children, className, style,
5618
5704
  {
5619
5705
  ref,
5620
5706
  style,
5621
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "content")), styles.content, className),
5707
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "content")), styles.content, className),
5622
5708
  ...rest,
5623
5709
  children
5624
5710
  }
@@ -5632,7 +5718,7 @@ var CardFooter = (0, import_react52.forwardRef)(({ children, className, style, .
5632
5718
  {
5633
5719
  ref,
5634
5720
  style,
5635
- className: (0, import_css29.cx)((0, import_browser41.withVendorCSSClassPrefix)((0, import_browser41.bem)("card", "footer")), styles.footer, className),
5721
+ className: (0, import_css29.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("card", "footer")), styles.footer, className),
5636
5722
  ...rest,
5637
5723
  children
5638
5724
  }
@@ -5654,7 +5740,7 @@ Card.Footer = CardFooter;
5654
5740
  var Card_default = Card;
5655
5741
 
5656
5742
  // src/components/primitives/Divider/Divider.tsx
5657
- var import_browser42 = require("@asgardeo/browser");
5743
+ var import_browser43 = require("@asgardeo/browser");
5658
5744
  var import_css31 = require("@emotion/css");
5659
5745
 
5660
5746
  // src/components/primitives/Divider/Divider.styles.ts
@@ -5723,8 +5809,8 @@ var Divider = ({
5723
5809
  "div",
5724
5810
  {
5725
5811
  className: (0, import_css31.cx)(
5726
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider")),
5727
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "vertical")),
5812
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider")),
5813
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "vertical")),
5728
5814
  styles.divider,
5729
5815
  styles.vertical,
5730
5816
  className
@@ -5741,9 +5827,9 @@ var Divider = ({
5741
5827
  "div",
5742
5828
  {
5743
5829
  className: (0, import_css31.cx)(
5744
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider")),
5745
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "horizontal")),
5746
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "with-text")),
5830
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider")),
5831
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "horizontal")),
5832
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "with-text")),
5747
5833
  styles.divider,
5748
5834
  styles.horizontal,
5749
5835
  className
@@ -5753,18 +5839,18 @@ var Divider = ({
5753
5839
  "aria-orientation": "horizontal",
5754
5840
  ...rest,
5755
5841
  children: [
5756
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "line")), styles.line) }),
5842
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "line")), styles.line) }),
5757
5843
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5758
5844
  Typography_default,
5759
5845
  {
5760
5846
  variant: "body2",
5761
5847
  color: "textSecondary",
5762
- className: (0, import_css31.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "text")), styles.text),
5848
+ className: (0, import_css31.cx)((0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "text")), styles.text),
5763
5849
  inline: true,
5764
5850
  children
5765
5851
  }
5766
5852
  ),
5767
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "line")), styles.line) })
5853
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: (0, import_css31.cx)((0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "line")), styles.line) })
5768
5854
  ]
5769
5855
  }
5770
5856
  );
@@ -5773,8 +5859,8 @@ var Divider = ({
5773
5859
  "div",
5774
5860
  {
5775
5861
  className: (0, import_css31.cx)(
5776
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider")),
5777
- (0, import_browser42.withVendorCSSClassPrefix)((0, import_browser42.bem)("divider", "horizontal")),
5862
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider")),
5863
+ (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("divider", "horizontal")),
5778
5864
  styles.divider,
5779
5865
  styles.horizontal,
5780
5866
  className
@@ -5790,7 +5876,7 @@ var Divider_default = Divider;
5790
5876
 
5791
5877
  // src/components/primitives/Logo/Logo.tsx
5792
5878
  var import_css33 = require("@emotion/css");
5793
- var import_browser43 = require("@asgardeo/browser");
5879
+ var import_browser44 = require("@asgardeo/browser");
5794
5880
 
5795
5881
  // src/components/primitives/Logo/Logo.styles.ts
5796
5882
  var import_css32 = require("@emotion/css");
@@ -5849,8 +5935,8 @@ var Logo = ({ className, src, alt, title, size = "medium" }) => {
5849
5935
  alt: logoAlt,
5850
5936
  title: logoTitle,
5851
5937
  className: (0, import_css33.cx)(
5852
- (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("logo")),
5853
- (0, import_browser43.withVendorCSSClassPrefix)((0, import_browser43.bem)("logo", size)),
5938
+ (0, import_browser44.withVendorCSSClassPrefix)((0, import_browser44.bem)("logo")),
5939
+ (0, import_browser44.withVendorCSSClassPrefix)((0, import_browser44.bem)("logo", size)),
5854
5940
  styles.logo,
5855
5941
  styles.size,
5856
5942
  className
@@ -6116,7 +6202,7 @@ var handleWebAuthnAuthentication = async (challengeData) => {
6116
6202
  throw new Error(`Passkey authentication failed: ${error instanceof Error ? error.message : "Unknown error"}`);
6117
6203
  }
6118
6204
  };
6119
- var isPasskeyAuthenticator = (authenticator) => authenticator.authenticatorId === import_browser44.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey && authenticator.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.InternalPrompt && authenticator.metadata?.additionalData?.challengeData;
6205
+ var isPasskeyAuthenticator = (authenticator) => authenticator.authenticatorId === import_browser45.ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey && authenticator.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.InternalPrompt && authenticator.metadata?.additionalData?.challengeData;
6120
6206
  var BaseSignIn = (props) => {
6121
6207
  const { theme } = useTheme_default();
6122
6208
  const styles = BaseSignIn_styles_default(theme, theme.vars.colors.text.primary);
@@ -6202,9 +6288,9 @@ var BaseSignInContent = ({
6202
6288
  touchAllFields();
6203
6289
  };
6204
6290
  const handleRedirectionIfNeeded = (response) => {
6205
- if (response && "nextStep" in response && response.nextStep && response.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.AuthenticatorPrompt && response.nextStep.authenticators && response.nextStep.authenticators.length === 1) {
6291
+ if (response && "nextStep" in response && response.nextStep && response.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.AuthenticatorPrompt && response.nextStep.authenticators && response.nextStep.authenticators.length === 1) {
6206
6292
  const responseAuthenticator = response.nextStep.authenticators[0];
6207
- if (responseAuthenticator.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt && responseAuthenticator.metadata?.additionalData?.redirectUrl) {
6293
+ if (responseAuthenticator.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt && responseAuthenticator.metadata?.additionalData?.redirectUrl) {
6208
6294
  const redirectUrl = responseAuthenticator.metadata?.additionalData?.redirectUrl;
6209
6295
  const popup = window.open(redirectUrl, "oauth_popup", "width=500,height=600,scrollbars=yes,resizable=yes");
6210
6296
  if (!popup) {
@@ -6290,7 +6376,7 @@ var BaseSignInContent = ({
6290
6376
  });
6291
6377
  popup.close();
6292
6378
  onFlowChange?.(response2);
6293
- if (response2?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6379
+ if (response2?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6294
6380
  onSuccess?.(response2.authData);
6295
6381
  }
6296
6382
  }
@@ -6331,11 +6417,11 @@ var BaseSignInContent = ({
6331
6417
  url: currentFlow?.links[0].href
6332
6418
  });
6333
6419
  onFlowChange?.(response);
6334
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6420
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6335
6421
  onSuccess?.(response.authData);
6336
6422
  return;
6337
6423
  }
6338
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6424
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6339
6425
  setError(t("errors.sign.in.flow.completion.failure"));
6340
6426
  return;
6341
6427
  }
@@ -6346,7 +6432,7 @@ var BaseSignInContent = ({
6346
6432
  const nextStepResponse = response;
6347
6433
  setCurrentFlow(nextStepResponse);
6348
6434
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6349
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6435
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6350
6436
  setCurrentAuthenticator(null);
6351
6437
  } else {
6352
6438
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6364,7 +6450,7 @@ var BaseSignInContent = ({
6364
6450
  }
6365
6451
  }
6366
6452
  } catch (err) {
6367
- const errorMessage = err instanceof import_browser44.AsgardeoAPIError ? err.message : t("errors.sign.in.flow.failure");
6453
+ const errorMessage = err instanceof import_browser45.AsgardeoAPIError ? err.message : t("errors.sign.in.flow.failure");
6368
6454
  setError(errorMessage);
6369
6455
  onError?.(err);
6370
6456
  } finally {
@@ -6403,11 +6489,11 @@ var BaseSignInContent = ({
6403
6489
  url: currentFlow?.links[0].href
6404
6490
  });
6405
6491
  onFlowChange?.(response);
6406
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6492
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6407
6493
  onSuccess?.(response.authData);
6408
6494
  return;
6409
6495
  }
6410
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6496
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6411
6497
  setError(t("errors.sign.in.flow.passkeys.completion.failure"));
6412
6498
  return;
6413
6499
  }
@@ -6415,7 +6501,7 @@ var BaseSignInContent = ({
6415
6501
  const nextStepResponse = response;
6416
6502
  setCurrentFlow(nextStepResponse);
6417
6503
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6418
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6504
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6419
6505
  setCurrentAuthenticator(null);
6420
6506
  } else {
6421
6507
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6444,7 +6530,7 @@ var BaseSignInContent = ({
6444
6530
  }
6445
6531
  setError(errorMessage);
6446
6532
  }
6447
- } else if (authenticator.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt) {
6533
+ } else if (authenticator.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.RedirectionPrompt) {
6448
6534
  const payload = {
6449
6535
  flowId: currentFlow.flowId,
6450
6536
  selectedAuthenticator: {
@@ -6457,7 +6543,7 @@ var BaseSignInContent = ({
6457
6543
  url: currentFlow?.links[0].href
6458
6544
  });
6459
6545
  onFlowChange?.(response);
6460
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6546
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6461
6547
  onSuccess?.(response.authData);
6462
6548
  return;
6463
6549
  }
@@ -6480,11 +6566,11 @@ var BaseSignInContent = ({
6480
6566
  url: currentFlow?.links[0].href
6481
6567
  });
6482
6568
  onFlowChange?.(response);
6483
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6569
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6484
6570
  onSuccess?.(response.authData);
6485
6571
  return;
6486
6572
  }
6487
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6573
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6488
6574
  setError("Authentication failed. Please check your credentials and try again.");
6489
6575
  return;
6490
6576
  }
@@ -6495,7 +6581,7 @@ var BaseSignInContent = ({
6495
6581
  const nextStepResponse = response;
6496
6582
  setCurrentFlow(nextStepResponse);
6497
6583
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6498
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6584
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6499
6585
  setCurrentAuthenticator(null);
6500
6586
  } else {
6501
6587
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6531,11 +6617,11 @@ var BaseSignInContent = ({
6531
6617
  url: currentFlow?.links[0].href
6532
6618
  });
6533
6619
  onFlowChange?.(response);
6534
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6620
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6535
6621
  onSuccess?.(response.authData);
6536
6622
  return;
6537
6623
  }
6538
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.FailIncomplete) {
6624
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailCompleted || response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.FailIncomplete) {
6539
6625
  setError("Authentication failed. Please try again.");
6540
6626
  return;
6541
6627
  }
@@ -6546,7 +6632,7 @@ var BaseSignInContent = ({
6546
6632
  const nextStepResponse = response;
6547
6633
  setCurrentFlow(nextStepResponse);
6548
6634
  if (nextStepResponse.nextStep?.authenticators?.length > 0) {
6549
- if (nextStepResponse.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6635
+ if (nextStepResponse.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && nextStepResponse.nextStep.authenticators.length > 1) {
6550
6636
  setCurrentAuthenticator(null);
6551
6637
  } else {
6552
6638
  const nextAuthenticator = nextStepResponse.nextStep.authenticators[0];
@@ -6573,7 +6659,7 @@ var BaseSignInContent = ({
6573
6659
  }
6574
6660
  }
6575
6661
  } catch (err) {
6576
- const errorMessage = err instanceof import_browser44.AsgardeoAPIError ? err?.message : "Authenticator selection failed";
6662
+ const errorMessage = err instanceof import_browser45.AsgardeoAPIError ? err?.message : "Authenticator selection failed";
6577
6663
  setError(errorMessage);
6578
6664
  onError?.(err);
6579
6665
  } finally {
@@ -6585,7 +6671,7 @@ var BaseSignInContent = ({
6585
6671
  setFormTouched(param, true);
6586
6672
  };
6587
6673
  const hasMultipleOptions = (0, import_react56.useCallback)(
6588
- () => currentFlow && "nextStep" in currentFlow && currentFlow.nextStep?.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && currentFlow.nextStep?.authenticators && currentFlow.nextStep.authenticators.length > 1,
6674
+ () => currentFlow && "nextStep" in currentFlow && currentFlow.nextStep?.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && currentFlow.nextStep?.authenticators && currentFlow.nextStep.authenticators.length > 1,
6589
6675
  [currentFlow]
6590
6676
  );
6591
6677
  const getAvailableAuthenticators = (0, import_react56.useCallback)(() => {
@@ -6596,30 +6682,30 @@ var BaseSignInContent = ({
6596
6682
  }, [currentFlow]);
6597
6683
  const containerClasses = (0, import_css35.cx)(
6598
6684
  [
6599
- (0, import_browser44.withVendorCSSClassPrefix)("signin"),
6600
- (0, import_browser44.withVendorCSSClassPrefix)(`signin--${size}`),
6601
- (0, import_browser44.withVendorCSSClassPrefix)(`signin--${variant}`)
6685
+ (0, import_browser45.withVendorCSSClassPrefix)("signin"),
6686
+ (0, import_browser45.withVendorCSSClassPrefix)(`signin--${size}`),
6687
+ (0, import_browser45.withVendorCSSClassPrefix)(`signin--${variant}`)
6602
6688
  ],
6603
6689
  className
6604
6690
  );
6605
6691
  const inputClasses = (0, import_css35.cx)(
6606
6692
  [
6607
- (0, import_browser44.withVendorCSSClassPrefix)("signin__input"),
6608
- size === "small" && (0, import_browser44.withVendorCSSClassPrefix)("signin__input--small"),
6609
- size === "large" && (0, import_browser44.withVendorCSSClassPrefix)("signin__input--large")
6693
+ (0, import_browser45.withVendorCSSClassPrefix)("signin__input"),
6694
+ size === "small" && (0, import_browser45.withVendorCSSClassPrefix)("signin__input--small"),
6695
+ size === "large" && (0, import_browser45.withVendorCSSClassPrefix)("signin__input--large")
6610
6696
  ],
6611
6697
  inputClassName
6612
6698
  );
6613
6699
  const buttonClasses = (0, import_css35.cx)(
6614
6700
  [
6615
- (0, import_browser44.withVendorCSSClassPrefix)("signin__button"),
6616
- size === "small" && (0, import_browser44.withVendorCSSClassPrefix)("signin__button--small"),
6617
- size === "large" && (0, import_browser44.withVendorCSSClassPrefix)("signin__button--large")
6701
+ (0, import_browser45.withVendorCSSClassPrefix)("signin__button"),
6702
+ size === "small" && (0, import_browser45.withVendorCSSClassPrefix)("signin__button--small"),
6703
+ size === "large" && (0, import_browser45.withVendorCSSClassPrefix)("signin__button--large")
6618
6704
  ],
6619
6705
  buttonClassName
6620
6706
  );
6621
- const errorClasses = (0, import_css35.cx)([(0, import_browser44.withVendorCSSClassPrefix)("signin__error")], errorClassName);
6622
- const messageClasses = (0, import_css35.cx)([(0, import_browser44.withVendorCSSClassPrefix)("signin__messages")], messageClassName);
6707
+ const errorClasses = (0, import_css35.cx)([(0, import_browser45.withVendorCSSClassPrefix)("signin__error")], errorClassName);
6708
+ const messageClasses = (0, import_css35.cx)([(0, import_browser45.withVendorCSSClassPrefix)("signin__messages")], messageClassName);
6623
6709
  (0, import_react56.useEffect)(() => {
6624
6710
  if (isLoading) {
6625
6711
  return;
@@ -6636,12 +6722,12 @@ var BaseSignInContent = ({
6636
6722
  setCurrentFlow(response);
6637
6723
  setIsInitialized(true);
6638
6724
  onFlowChange?.(response);
6639
- if (response?.flowStatus === import_browser44.EmbeddedSignInFlowStatus.SuccessCompleted) {
6725
+ if (response?.flowStatus === import_browser45.EmbeddedSignInFlowStatus.SuccessCompleted) {
6640
6726
  onSuccess?.(response.authData || {});
6641
6727
  return;
6642
6728
  }
6643
6729
  if (response?.nextStep?.authenticators?.length > 0) {
6644
- if (response.nextStep.stepType === import_browser44.EmbeddedSignInFlowStepType.MultiOptionsPrompt && response.nextStep.authenticators.length > 1) {
6730
+ if (response.nextStep.stepType === import_browser45.EmbeddedSignInFlowStepType.MultiOptionsPrompt && response.nextStep.authenticators.length > 1) {
6645
6731
  setCurrentAuthenticator(null);
6646
6732
  } else {
6647
6733
  const authenticator = response.nextStep.authenticators[0];
@@ -6659,7 +6745,7 @@ var BaseSignInContent = ({
6659
6745
  );
6660
6746
  }
6661
6747
  } catch (err) {
6662
- const errorMessage = err instanceof import_browser44.AsgardeoAPIError ? err.message : t("errors.sign.in.initialization");
6748
+ const errorMessage = err instanceof import_browser45.AsgardeoAPIError ? err.message : t("errors.sign.in.initialization");
6663
6749
  setError(errorMessage);
6664
6750
  onError?.(err);
6665
6751
  } finally {
@@ -6676,7 +6762,7 @@ var BaseSignInContent = ({
6676
6762
  if (hasMultipleOptions() && !currentAuthenticator) {
6677
6763
  const availableAuthenticators = getAvailableAuthenticators();
6678
6764
  const userPromptAuthenticators = availableAuthenticators.filter(
6679
- (auth) => auth.metadata?.promptType === import_browser44.EmbeddedSignInFlowAuthenticatorPromptType.UserPrompt || // Fallback: LOCAL authenticators with params are typically user prompts
6765
+ (auth) => auth.metadata?.promptType === import_browser45.EmbeddedSignInFlowAuthenticatorPromptType.UserPrompt || // Fallback: LOCAL authenticators with params are typically user prompts
6680
6766
  auth.idp === "LOCAL" && auth.metadata?.params && auth.metadata.params.length > 0
6681
6767
  );
6682
6768
  const optionAuthenticators = availableAuthenticators.filter((auth) => !userPromptAuthenticators.includes(auth)).filter((authenticator) => !HIDDEN_AUTHENTICATORS.includes(authenticator.authenticatorId));
@@ -6861,15 +6947,15 @@ var SignIn = ({ className, size = "medium", ...rest }) => {
6861
6947
  var SignIn_default = SignIn;
6862
6948
 
6863
6949
  // src/components/presentation/SignUp/BaseSignUp.tsx
6864
- var import_browser52 = require("@asgardeo/browser");
6950
+ var import_browser53 = require("@asgardeo/browser");
6865
6951
  var import_css37 = require("@emotion/css");
6866
6952
  var import_react58 = require("react");
6867
6953
 
6868
6954
  // src/components/presentation/SignUp/options/SignUpOptionFactory.tsx
6869
- var import_browser51 = require("@asgardeo/browser");
6955
+ var import_browser52 = require("@asgardeo/browser");
6870
6956
 
6871
6957
  // src/components/presentation/SignUp/options/CheckboxInput.tsx
6872
- var import_browser45 = require("@asgardeo/browser");
6958
+ var import_browser46 = require("@asgardeo/browser");
6873
6959
  var CheckboxInput = ({
6874
6960
  component,
6875
6961
  formValues,
@@ -6883,7 +6969,7 @@ var CheckboxInput = ({
6883
6969
  const value = formValues[fieldName] || "";
6884
6970
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
6885
6971
  return createField({
6886
- type: import_browser45.FieldType.Checkbox,
6972
+ type: import_browser46.FieldType.Checkbox,
6887
6973
  name: fieldName,
6888
6974
  label: config["label"] || "",
6889
6975
  placeholder: config["placeholder"] || "",
@@ -6897,7 +6983,7 @@ var CheckboxInput = ({
6897
6983
  var CheckboxInput_default = CheckboxInput;
6898
6984
 
6899
6985
  // src/components/presentation/SignUp/options/DateInput.tsx
6900
- var import_browser46 = require("@asgardeo/browser");
6986
+ var import_browser47 = require("@asgardeo/browser");
6901
6987
  var DateInput = ({
6902
6988
  component,
6903
6989
  formValues,
@@ -6911,7 +6997,7 @@ var DateInput = ({
6911
6997
  const value = formValues[fieldName] || "";
6912
6998
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
6913
6999
  return createField({
6914
- type: import_browser46.FieldType.Date,
7000
+ type: import_browser47.FieldType.Date,
6915
7001
  name: fieldName,
6916
7002
  label: config["label"] || "",
6917
7003
  placeholder: config["placeholder"] || "",
@@ -6944,7 +7030,7 @@ var DividerComponent = ({ component }) => {
6944
7030
  var DividerComponent_default = DividerComponent;
6945
7031
 
6946
7032
  // src/components/presentation/SignUp/options/EmailInput.tsx
6947
- var import_browser47 = require("@asgardeo/browser");
7033
+ var import_browser48 = require("@asgardeo/browser");
6948
7034
  var EmailInput = ({
6949
7035
  component,
6950
7036
  formValues,
@@ -6958,7 +7044,7 @@ var EmailInput = ({
6958
7044
  const value = formValues[fieldName] || "";
6959
7045
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
6960
7046
  return createField({
6961
- type: import_browser47.FieldType.Email,
7047
+ type: import_browser48.FieldType.Email,
6962
7048
  name: fieldName,
6963
7049
  label: config["label"] || "Email",
6964
7050
  placeholder: config["placeholder"] || "Enter your email",
@@ -6996,75 +7082,8 @@ var FormContainer = (props) => {
6996
7082
  };
6997
7083
  var FormContainer_default = FormContainer;
6998
7084
 
6999
- // src/components/presentation/SignUp/options/GoogleButton.tsx
7000
- var import_jsx_runtime57 = require("react/jsx-runtime");
7001
- var GoogleButton2 = ({
7002
- component,
7003
- isLoading,
7004
- buttonClassName = "",
7005
- size = "medium",
7006
- onSubmit
7007
- }) => {
7008
- const config = component.config || {};
7009
- const buttonText = config["text"] || config["label"] || "Continue with Google";
7010
- const handleClick = () => {
7011
- if (onSubmit) {
7012
- onSubmit(component, {});
7013
- }
7014
- };
7015
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7016
- Button_default,
7017
- {
7018
- type: "button",
7019
- variant: "solid",
7020
- color: "secondary",
7021
- size,
7022
- disabled: isLoading,
7023
- onClick: handleClick,
7024
- className: buttonClassName,
7025
- style: { width: "100%" },
7026
- 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: [
7027
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7028
- "path",
7029
- {
7030
- 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",
7031
- transform: "translate(0 -119.93)",
7032
- fill: "#fbbb00"
7033
- }
7034
- ),
7035
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7036
- "path",
7037
- {
7038
- 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",
7039
- transform: "translate(-226.93 -180.567)",
7040
- fill: "#518ef8"
7041
- }
7042
- ),
7043
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7044
- "path",
7045
- {
7046
- 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",
7047
- transform: "translate(-26.463 -268.374)",
7048
- fill: "#28b446"
7049
- }
7050
- ),
7051
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7052
- "path",
7053
- {
7054
- 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",
7055
- transform: "translate(-24.828)",
7056
- fill: "#f14336"
7057
- }
7058
- )
7059
- ] }) }),
7060
- children: buttonText
7061
- }
7062
- );
7063
- };
7064
- var GoogleButton_default2 = GoogleButton2;
7065
-
7066
7085
  // src/components/presentation/SignUp/options/ImageComponent.tsx
7067
- var import_jsx_runtime58 = require("react/jsx-runtime");
7086
+ var import_jsx_runtime57 = require("react/jsx-runtime");
7068
7087
  var ImageComponent = ({ component }) => {
7069
7088
  const { theme } = useTheme_default();
7070
7089
  const config = component.config || {};
@@ -7081,7 +7100,7 @@ var ImageComponent = ({ component }) => {
7081
7100
  if (!src) {
7082
7101
  return null;
7083
7102
  }
7084
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7103
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7085
7104
  "img",
7086
7105
  {
7087
7106
  src,
@@ -7096,7 +7115,7 @@ var ImageComponent = ({ component }) => {
7096
7115
  var ImageComponent_default = ImageComponent;
7097
7116
 
7098
7117
  // src/components/presentation/SignUp/options/NumberInput.tsx
7099
- var import_browser48 = require("@asgardeo/browser");
7118
+ var import_browser49 = require("@asgardeo/browser");
7100
7119
  var NumberInput = ({
7101
7120
  component,
7102
7121
  formValues,
@@ -7110,7 +7129,7 @@ var NumberInput = ({
7110
7129
  const value = formValues[fieldName] || "";
7111
7130
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7112
7131
  return createField({
7113
- type: import_browser48.FieldType.Number,
7132
+ type: import_browser49.FieldType.Number,
7114
7133
  name: fieldName,
7115
7134
  label: config["label"] || "",
7116
7135
  placeholder: config["placeholder"] || "",
@@ -7124,7 +7143,7 @@ var NumberInput = ({
7124
7143
  var NumberInput_default = NumberInput;
7125
7144
 
7126
7145
  // src/components/presentation/SignUp/options/PasswordInput.tsx
7127
- var import_browser49 = require("@asgardeo/browser");
7146
+ var import_browser50 = require("@asgardeo/browser");
7128
7147
  var PasswordInput = ({
7129
7148
  component,
7130
7149
  formValues,
@@ -7170,7 +7189,7 @@ var PasswordInput = ({
7170
7189
  });
7171
7190
  const hint = validationHints.length > 0 ? validationHints.join(", ") : config["hint"] || "";
7172
7191
  return createField({
7173
- type: import_browser49.FieldType.Password,
7192
+ type: import_browser50.FieldType.Password,
7174
7193
  name: fieldName,
7175
7194
  label: config["label"] || "Password",
7176
7195
  placeholder: config["placeholder"] || "Enter your password",
@@ -7184,7 +7203,7 @@ var PasswordInput = ({
7184
7203
  var PasswordInput_default = PasswordInput;
7185
7204
 
7186
7205
  // src/components/presentation/SignUp/options/SubmitButton.tsx
7187
- var import_jsx_runtime59 = require("react/jsx-runtime");
7206
+ var import_jsx_runtime58 = require("react/jsx-runtime");
7188
7207
  var ButtonComponent = ({
7189
7208
  component,
7190
7209
  isLoading,
@@ -7217,7 +7236,7 @@ var ButtonComponent = ({
7217
7236
  onSubmit(component);
7218
7237
  }
7219
7238
  };
7220
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7239
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7221
7240
  Button_default,
7222
7241
  {
7223
7242
  type: buttonType === "submit" ? "submit" : "button",
@@ -7228,7 +7247,7 @@ var ButtonComponent = ({
7228
7247
  onClick: buttonType !== "submit" ? handleClick : void 0,
7229
7248
  className: buttonClassName,
7230
7249
  style: { width: "100%" },
7231
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Spinner_default, { size: "small" }) : buttonText
7250
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Spinner_default, { size: "small" }) : buttonText
7232
7251
  },
7233
7252
  component.id
7234
7253
  );
@@ -7236,7 +7255,7 @@ var ButtonComponent = ({
7236
7255
  var SubmitButton_default = ButtonComponent;
7237
7256
 
7238
7257
  // src/components/presentation/SignUp/options/TelephoneInput.tsx
7239
- var import_jsx_runtime60 = require("react/jsx-runtime");
7258
+ var import_jsx_runtime59 = require("react/jsx-runtime");
7240
7259
  var TelephoneInput = ({
7241
7260
  component,
7242
7261
  formValues,
@@ -7249,7 +7268,7 @@ var TelephoneInput = ({
7249
7268
  const fieldName = config["identifier"] || config["name"] || component.id;
7250
7269
  const value = formValues[fieldName] || "";
7251
7270
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7252
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7271
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7253
7272
  TextField_default,
7254
7273
  {
7255
7274
  name: fieldName,
@@ -7269,7 +7288,7 @@ var TelephoneInput = ({
7269
7288
  var TelephoneInput_default = TelephoneInput;
7270
7289
 
7271
7290
  // src/components/presentation/SignUp/options/TextInput.tsx
7272
- var import_browser50 = require("@asgardeo/browser");
7291
+ var import_browser51 = require("@asgardeo/browser");
7273
7292
  var TextInput = ({
7274
7293
  component,
7275
7294
  formValues,
@@ -7283,7 +7302,7 @@ var TextInput = ({
7283
7302
  const value = formValues[fieldName] || "";
7284
7303
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7285
7304
  return createField({
7286
- type: import_browser50.FieldType.Text,
7305
+ type: import_browser51.FieldType.Text,
7287
7306
  name: fieldName,
7288
7307
  label: config["label"] || "",
7289
7308
  placeholder: config["placeholder"] || "",
@@ -7297,7 +7316,7 @@ var TextInput = ({
7297
7316
  var TextInput_default = TextInput;
7298
7317
 
7299
7318
  // src/components/presentation/SignUp/options/Typography.tsx
7300
- var import_jsx_runtime61 = require("react/jsx-runtime");
7319
+ var import_jsx_runtime60 = require("react/jsx-runtime");
7301
7320
  var TypographyComponent = ({ component }) => {
7302
7321
  const { theme } = useTheme_default();
7303
7322
  const config = component.config || {};
@@ -7338,7 +7357,7 @@ var TypographyComponent = ({ component }) => {
7338
7357
  default:
7339
7358
  typographyVariant = "body1";
7340
7359
  }
7341
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7360
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7342
7361
  Typography_default,
7343
7362
  {
7344
7363
  variant: typographyVariant,
@@ -7351,50 +7370,66 @@ var TypographyComponent = ({ component }) => {
7351
7370
  var Typography_default2 = TypographyComponent;
7352
7371
 
7353
7372
  // src/components/presentation/SignUp/options/SignUpOptionFactory.tsx
7354
- var import_jsx_runtime62 = require("react/jsx-runtime");
7355
- var createSignUpComponent = (props) => {
7356
- const { component } = props;
7373
+ var import_jsx_runtime61 = require("react/jsx-runtime");
7374
+ var createSignUpComponent = ({ component, onSubmit, ...rest }) => {
7357
7375
  switch (component.type) {
7358
- case import_browser51.EmbeddedFlowComponentType.Typography:
7359
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Typography_default2, { ...props });
7360
- case import_browser51.EmbeddedFlowComponentType.Input:
7376
+ case import_browser52.EmbeddedFlowComponentType.Typography:
7377
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Typography_default2, { component, onSubmit, ...rest });
7378
+ case import_browser52.EmbeddedFlowComponentType.Input:
7361
7379
  const inputVariant = component.variant?.toUpperCase();
7362
7380
  const inputType = component.config["type"]?.toLowerCase();
7363
7381
  if (inputVariant === "EMAIL" || inputType === "email") {
7364
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(EmailInput_default, { ...props });
7382
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(EmailInput_default, { component, onSubmit, ...rest });
7365
7383
  }
7366
7384
  if (inputVariant === "PASSWORD" || inputType === "password") {
7367
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(PasswordInput_default, { ...props });
7385
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(PasswordInput_default, { component, onSubmit, ...rest });
7368
7386
  }
7369
7387
  if (inputVariant === "TELEPHONE" || inputType === "tel") {
7370
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TelephoneInput_default, { ...props });
7388
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TelephoneInput_default, { component, onSubmit, ...rest });
7371
7389
  }
7372
7390
  if (inputVariant === "NUMBER" || inputType === "number") {
7373
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(NumberInput_default, { ...props });
7391
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(NumberInput_default, { component, onSubmit, ...rest });
7374
7392
  }
7375
7393
  if (inputVariant === "DATE" || inputType === "date") {
7376
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DateInput_default, { ...props });
7394
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DateInput_default, { component, onSubmit, ...rest });
7377
7395
  }
7378
7396
  if (inputVariant === "CHECKBOX" || inputType === "checkbox") {
7379
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CheckboxInput_default, { ...props });
7397
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CheckboxInput_default, { component, onSubmit, ...rest });
7380
7398
  }
7381
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TextInput_default, { ...props });
7382
- case import_browser51.EmbeddedFlowComponentType.Button: {
7399
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TextInput_default, { component, onSubmit, ...rest });
7400
+ case import_browser52.EmbeddedFlowComponentType.Button: {
7383
7401
  const buttonVariant = component.variant?.toUpperCase();
7384
7402
  const buttonText = component.config["text"] || component.config["label"] || "";
7385
- if (buttonVariant === "SOCIAL" && buttonText.toLowerCase().includes("google")) {
7386
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(GoogleButton_default2, { ...props });
7403
+ if (buttonVariant === "SOCIAL") {
7404
+ if (buttonText.toLowerCase().includes("google")) {
7405
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(GoogleButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7406
+ }
7407
+ if (buttonText.toLowerCase().includes("github")) {
7408
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(GitHubButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7409
+ }
7410
+ if (buttonText.toLowerCase().includes("microsoft")) {
7411
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MicrosoftButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7412
+ }
7413
+ if (buttonText.toLowerCase().includes("facebook")) {
7414
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FacebookButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7415
+ }
7416
+ if (buttonText.toLowerCase().includes("linkedin")) {
7417
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(LinkedInButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7418
+ }
7419
+ if (buttonText.toLowerCase().includes("ethereum")) {
7420
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SignInWithEthereumButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7421
+ }
7387
7422
  }
7388
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SubmitButton_default, { ...props });
7423
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SubmitButton_default, { component, onSubmit, ...rest });
7389
7424
  }
7390
- case import_browser51.EmbeddedFlowComponentType.Form:
7391
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FormContainer_default, { ...props });
7392
- case import_browser51.EmbeddedFlowComponentType.Divider:
7393
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(DividerComponent_default, { ...props });
7394
- case import_browser51.EmbeddedFlowComponentType.Image:
7395
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ImageComponent_default, { ...props });
7425
+ case import_browser52.EmbeddedFlowComponentType.Form:
7426
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormContainer_default, { component, onSubmit, ...rest });
7427
+ case import_browser52.EmbeddedFlowComponentType.Divider:
7428
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DividerComponent_default, { component, onSubmit, ...rest });
7429
+ case import_browser52.EmbeddedFlowComponentType.Image:
7430
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ImageComponent_default, { component, onSubmit, ...rest });
7396
7431
  default:
7397
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", {});
7432
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {});
7398
7433
  }
7399
7434
  };
7400
7435
  var createSignUpOptionFromComponent = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => createSignUpComponent({
@@ -7566,13 +7601,13 @@ var useStyles17 = (theme, colorScheme) => {
7566
7601
  var BaseSignUp_styles_default = useStyles17;
7567
7602
 
7568
7603
  // src/components/presentation/SignUp/BaseSignUp.tsx
7569
- var import_jsx_runtime63 = require("react/jsx-runtime");
7604
+ var import_jsx_runtime62 = require("react/jsx-runtime");
7570
7605
  var BaseSignUp = (props) => {
7571
7606
  const { theme, colorScheme } = useTheme_default();
7572
7607
  const styles = BaseSignUp_styles_default(theme, colorScheme);
7573
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { children: [
7574
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: styles.logoContainer, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Logo_default, { size: "large" }) }),
7575
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(FlowProvider_default, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(BaseSignUpContent, { ...props }) })
7608
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { children: [
7609
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: styles.logoContainer, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Logo_default, { size: "large" }) }),
7610
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FlowProvider_default, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BaseSignUpContent, { ...props }) })
7576
7611
  ] });
7577
7612
  };
7578
7613
  var BaseSignUpContent = ({
@@ -7606,7 +7641,7 @@ var BaseSignUpContent = ({
7606
7641
  const fields = [];
7607
7642
  const processComponents = (comps) => {
7608
7643
  comps.forEach((component) => {
7609
- if (component.type === import_browser52.EmbeddedFlowComponentType.Input) {
7644
+ if (component.type === import_browser53.EmbeddedFlowComponentType.Input) {
7610
7645
  const config = component.config || {};
7611
7646
  fields.push({
7612
7647
  name: config.name || component.id,
@@ -7698,11 +7733,11 @@ var BaseSignUpContent = ({
7698
7733
  };
7699
7734
  const response = await onSubmit(payload);
7700
7735
  onFlowChange?.(response);
7701
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7736
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7702
7737
  onComplete?.(response);
7703
7738
  return;
7704
7739
  }
7705
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7740
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7706
7741
  if (handleRedirectionIfNeeded(response, component)) {
7707
7742
  return;
7708
7743
  }
@@ -7710,7 +7745,7 @@ var BaseSignUpContent = ({
7710
7745
  setupFormFields(response);
7711
7746
  }
7712
7747
  } catch (err) {
7713
- const errorMessage = err instanceof import_browser52.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7748
+ const errorMessage = err instanceof import_browser53.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7714
7749
  setError(errorMessage);
7715
7750
  onError?.(err);
7716
7751
  } finally {
@@ -7718,7 +7753,7 @@ var BaseSignUpContent = ({
7718
7753
  }
7719
7754
  };
7720
7755
  const handleRedirectionIfNeeded = (response, component) => {
7721
- if (response?.type === import_browser52.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL) {
7756
+ if (response?.type === import_browser53.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL) {
7722
7757
  const redirectUrl = response.data.redirectURL;
7723
7758
  const popup = window.open(redirectUrl, "oauth_popup", "width=500,height=600,scrollbars=yes,resizable=yes");
7724
7759
  if (!popup) {
@@ -7747,16 +7782,16 @@ var BaseSignUpContent = ({
7747
7782
  try {
7748
7783
  const continueResponse = await onSubmit(payload);
7749
7784
  onFlowChange?.(continueResponse);
7750
- if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7785
+ if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7751
7786
  onComplete?.(continueResponse);
7752
- } else if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7787
+ } else if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7753
7788
  setCurrentFlow(continueResponse);
7754
7789
  setupFormFields(continueResponse);
7755
7790
  }
7756
7791
  popup.close();
7757
7792
  cleanup();
7758
7793
  } catch (err) {
7759
- const errorMessage = err instanceof import_browser52.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7794
+ const errorMessage = err instanceof import_browser53.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7760
7795
  setError(errorMessage);
7761
7796
  onError?.(err);
7762
7797
  popup.close();
@@ -7808,15 +7843,15 @@ var BaseSignUpContent = ({
7808
7843
  try {
7809
7844
  const continueResponse = await onSubmit(payload);
7810
7845
  onFlowChange?.(continueResponse);
7811
- if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7846
+ if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7812
7847
  onComplete?.(continueResponse);
7813
- } else if (continueResponse.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7848
+ } else if (continueResponse.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7814
7849
  setCurrentFlow(continueResponse);
7815
7850
  setupFormFields(continueResponse);
7816
7851
  }
7817
7852
  popup.close();
7818
7853
  } catch (err) {
7819
- const errorMessage = err instanceof import_browser52.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7854
+ const errorMessage = err instanceof import_browser53.AsgardeoAPIError ? err.message : t("errors.sign.up.flow.failure");
7820
7855
  setError(errorMessage);
7821
7856
  onError?.(err);
7822
7857
  popup.close();
@@ -7835,30 +7870,30 @@ var BaseSignUpContent = ({
7835
7870
  };
7836
7871
  const containerClasses = (0, import_css37.cx)(
7837
7872
  [
7838
- (0, import_browser52.withVendorCSSClassPrefix)("signup"),
7839
- (0, import_browser52.withVendorCSSClassPrefix)(`signup--${size}`),
7840
- (0, import_browser52.withVendorCSSClassPrefix)(`signup--${variant}`)
7873
+ (0, import_browser53.withVendorCSSClassPrefix)("signup"),
7874
+ (0, import_browser53.withVendorCSSClassPrefix)(`signup--${size}`),
7875
+ (0, import_browser53.withVendorCSSClassPrefix)(`signup--${variant}`)
7841
7876
  ],
7842
7877
  className
7843
7878
  );
7844
7879
  const inputClasses = (0, import_css37.cx)(
7845
7880
  [
7846
- (0, import_browser52.withVendorCSSClassPrefix)("signup__input"),
7847
- size === "small" && (0, import_browser52.withVendorCSSClassPrefix)("signup__input--small"),
7848
- size === "large" && (0, import_browser52.withVendorCSSClassPrefix)("signup__input--large")
7881
+ (0, import_browser53.withVendorCSSClassPrefix)("signup__input"),
7882
+ size === "small" && (0, import_browser53.withVendorCSSClassPrefix)("signup__input--small"),
7883
+ size === "large" && (0, import_browser53.withVendorCSSClassPrefix)("signup__input--large")
7849
7884
  ],
7850
7885
  inputClassName
7851
7886
  );
7852
7887
  const buttonClasses = (0, import_css37.cx)(
7853
7888
  [
7854
- (0, import_browser52.withVendorCSSClassPrefix)("signup__button"),
7855
- size === "small" && (0, import_browser52.withVendorCSSClassPrefix)("signup__button--small"),
7856
- size === "large" && (0, import_browser52.withVendorCSSClassPrefix)("signup__button--large")
7889
+ (0, import_browser53.withVendorCSSClassPrefix)("signup__button"),
7890
+ size === "small" && (0, import_browser53.withVendorCSSClassPrefix)("signup__button--small"),
7891
+ size === "large" && (0, import_browser53.withVendorCSSClassPrefix)("signup__button--large")
7857
7892
  ],
7858
7893
  buttonClassName
7859
7894
  );
7860
- const errorClasses = (0, import_css37.cx)([(0, import_browser52.withVendorCSSClassPrefix)("signup__error")], errorClassName);
7861
- const messageClasses = (0, import_css37.cx)([(0, import_browser52.withVendorCSSClassPrefix)("signup__messages")], messageClassName);
7895
+ const errorClasses = (0, import_css37.cx)([(0, import_browser53.withVendorCSSClassPrefix)("signup__error")], errorClassName);
7896
+ const messageClasses = (0, import_css37.cx)([(0, import_browser53.withVendorCSSClassPrefix)("signup__messages")], messageClassName);
7862
7897
  const renderComponents = (0, import_react58.useCallback)(
7863
7898
  (components) => renderSignUpComponents(
7864
7899
  components,
@@ -7902,11 +7937,11 @@ var BaseSignUpContent = ({
7902
7937
  setCurrentFlow(response);
7903
7938
  setIsFlowInitialized(true);
7904
7939
  onFlowChange?.(response);
7905
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Complete) {
7940
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Complete) {
7906
7941
  onComplete?.(response);
7907
7942
  return;
7908
7943
  }
7909
- if (response.flowStatus === import_browser52.EmbeddedFlowStatus.Incomplete) {
7944
+ if (response.flowStatus === import_browser53.EmbeddedFlowStatus.Incomplete) {
7910
7945
  setupFormFields(response);
7911
7946
  }
7912
7947
  } catch (err) {
@@ -7930,38 +7965,38 @@ var BaseSignUpContent = ({
7930
7965
  t
7931
7966
  ]);
7932
7967
  if (!isFlowInitialized && isLoading) {
7933
- 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" }) }) }) });
7968
+ 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" }) }) }) });
7934
7969
  }
7935
7970
  if (!currentFlow) {
7936
- 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: [
7937
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
7938
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7971
+ 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: [
7972
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
7973
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7939
7974
  ] }) }) });
7940
7975
  }
7941
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: [
7942
- 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)(
7976
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Card_default, { className: (0, import_css37.cx)(containerClasses, styles.card), variant, children: [
7977
+ 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)(
7943
7978
  Alert_default,
7944
7979
  {
7945
7980
  variant: message.type?.toLowerCase() === "error" ? "error" : "info",
7946
7981
  className: (0, import_css37.cx)(styles.messageItem, messageClasses),
7947
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Description, { children: message.message })
7982
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Description, { children: message.message })
7948
7983
  },
7949
7984
  message.id || index
7950
7985
  )) }) }),
7951
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Card_default.Content, { children: [
7952
- error && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Alert_default, { variant: "error", className: (0, import_css37.cx)(styles.errorContainer, errorClasses), children: [
7953
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
7954
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Alert_default.Description, { children: error })
7986
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Card_default.Content, { children: [
7987
+ error && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(Alert_default, { variant: "error", className: (0, import_css37.cx)(styles.errorContainer, errorClasses), children: [
7988
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
7989
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Alert_default.Description, { children: error })
7955
7990
  ] }),
7956
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
7991
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
7957
7992
  ] })
7958
7993
  ] });
7959
7994
  };
7960
7995
  var BaseSignUp_default = BaseSignUp;
7961
7996
 
7962
7997
  // src/components/presentation/SignUp/SignUp.tsx
7963
- var import_browser53 = require("@asgardeo/browser");
7964
- var import_jsx_runtime64 = require("react/jsx-runtime");
7998
+ var import_browser54 = require("@asgardeo/browser");
7999
+ var import_jsx_runtime63 = require("react/jsx-runtime");
7965
8000
  var SignUp = ({
7966
8001
  className,
7967
8002
  size = "medium",
@@ -7974,21 +8009,21 @@ var SignUp = ({
7974
8009
  const { signUp, isInitialized } = useAsgardeo_default();
7975
8010
  const handleInitialize = async (payload) => await signUp(
7976
8011
  payload || {
7977
- flowType: import_browser53.EmbeddedFlowType.Registration
8012
+ flowType: import_browser54.EmbeddedFlowType.Registration
7978
8013
  }
7979
8014
  );
7980
8015
  const handleOnSubmit = async (payload) => await signUp(payload);
7981
8016
  const handleComplete = (response) => {
7982
8017
  onComplete?.(response);
7983
- if (shouldRedirectAfterSignUp && response?.type !== import_browser53.EmbeddedFlowResponseType.Redirection && afterSignUpUrl) {
8018
+ if (shouldRedirectAfterSignUp && response?.type !== import_browser54.EmbeddedFlowResponseType.Redirection && afterSignUpUrl) {
7984
8019
  window.location.href = afterSignUpUrl;
7985
8020
  }
7986
- if (shouldRedirectAfterSignUp && response?.type === import_browser53.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL && !response.data.redirectURL.includes("oauth") && // Not a social provider redirect
8021
+ if (shouldRedirectAfterSignUp && response?.type === import_browser54.EmbeddedFlowResponseType.Redirection && response?.data?.redirectURL && !response.data.redirectURL.includes("oauth") && // Not a social provider redirect
7987
8022
  !response.data.redirectURL.includes("auth")) {
7988
8023
  window.location.href = response.data.redirectURL;
7989
8024
  }
7990
8025
  };
7991
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
8026
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
7992
8027
  BaseSignUp_default,
7993
8028
  {
7994
8029
  afterSignUpUrl,
@@ -8006,75 +8041,75 @@ var SignUp = ({
8006
8041
  var SignUp_default = SignUp;
8007
8042
 
8008
8043
  // src/components/presentation/User/BaseUser.tsx
8009
- var import_jsx_runtime65 = require("react/jsx-runtime");
8044
+ var import_jsx_runtime64 = require("react/jsx-runtime");
8010
8045
  var BaseUser = ({ user, children, fallback = null }) => {
8011
8046
  if (!user) {
8012
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: fallback });
8047
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: fallback });
8013
8048
  }
8014
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: children(user) });
8049
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: children(user) });
8015
8050
  };
8016
8051
  BaseUser.displayName = "BaseUser";
8017
8052
  var BaseUser_default = BaseUser;
8018
8053
 
8019
8054
  // src/components/presentation/User/User.tsx
8020
- var import_jsx_runtime66 = require("react/jsx-runtime");
8055
+ var import_jsx_runtime65 = require("react/jsx-runtime");
8021
8056
  var User5 = ({ children, fallback = null }) => {
8022
8057
  const { user } = useAsgardeo_default();
8023
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(BaseUser_default, { user, fallback, children });
8058
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(BaseUser_default, { user, fallback, children });
8024
8059
  };
8025
8060
  User5.displayName = "User";
8026
8061
  var User_default = User5;
8027
8062
 
8028
8063
  // src/components/presentation/Organization/BaseOrganization.tsx
8029
- var import_jsx_runtime67 = require("react/jsx-runtime");
8064
+ var import_jsx_runtime66 = require("react/jsx-runtime");
8030
8065
  var BaseOrganization = ({ children, fallback = null, organization }) => {
8031
8066
  if (!organization) {
8032
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: fallback });
8067
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: fallback });
8033
8068
  }
8034
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: children(organization) });
8069
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: children(organization) });
8035
8070
  };
8036
8071
  BaseOrganization.displayName = "BaseOrganization";
8037
8072
  var BaseOrganization_default = BaseOrganization;
8038
8073
 
8039
8074
  // src/components/presentation/Organization/Organization.tsx
8040
- var import_jsx_runtime68 = require("react/jsx-runtime");
8075
+ var import_jsx_runtime67 = require("react/jsx-runtime");
8041
8076
  var Organization5 = ({ children, fallback = null }) => {
8042
8077
  const { currentOrganization } = useOrganization_default();
8043
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(BaseOrganization_default, { organization: currentOrganization, fallback, children });
8078
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BaseOrganization_default, { organization: currentOrganization, fallback, children });
8044
8079
  };
8045
8080
  Organization5.displayName = "Organization";
8046
8081
  var Organization_default = Organization5;
8047
8082
 
8048
8083
  // src/components/presentation/UserProfile/BaseUserProfile.tsx
8049
- var import_browser59 = require("@asgardeo/browser");
8084
+ var import_browser60 = require("@asgardeo/browser");
8050
8085
  var import_css45 = require("@emotion/css");
8051
8086
  var import_react67 = require("react");
8052
8087
 
8053
8088
  // src/utils/getMappedUserProfileValue.ts
8054
- var import_browser54 = require("@asgardeo/browser");
8089
+ var import_browser55 = require("@asgardeo/browser");
8055
8090
  var getMappedUserProfileValue = (key, mappings, user) => {
8056
8091
  if (!key || !mappings || !user) {
8057
8092
  return void 0;
8058
8093
  }
8059
8094
  const mapping = mappings[key];
8060
8095
  if (!mapping) {
8061
- return (0, import_browser54.get)(user, key);
8096
+ return (0, import_browser55.get)(user, key);
8062
8097
  }
8063
8098
  if (Array.isArray(mapping)) {
8064
8099
  for (const path of mapping) {
8065
- const value = (0, import_browser54.get)(user, path);
8100
+ const value = (0, import_browser55.get)(user, path);
8066
8101
  if (value !== void 0 && value !== null && value !== "") {
8067
8102
  return value;
8068
8103
  }
8069
8104
  }
8070
8105
  return void 0;
8071
8106
  }
8072
- return (0, import_browser54.get)(user, mapping);
8107
+ return (0, import_browser55.get)(user, mapping);
8073
8108
  };
8074
8109
  var getMappedUserProfileValue_default = getMappedUserProfileValue;
8075
8110
 
8076
8111
  // src/components/primitives/Avatar/Avatar.tsx
8077
- var import_browser55 = require("@asgardeo/browser");
8112
+ var import_browser56 = require("@asgardeo/browser");
8078
8113
  var import_css39 = require("@emotion/css");
8079
8114
  var import_react60 = require("react");
8080
8115
 
@@ -8128,18 +8163,25 @@ var useStyles18 = (theme, colorScheme, size, variant, backgroundColor) => {
8128
8163
  }
8129
8164
  }
8130
8165
  `;
8166
+ const iconStyles = import_css38.css`
8167
+ width: 60%;
8168
+ height: 60%;
8169
+ fill: ${backgroundColor ? "#ffffff" : theme.vars.colors.text.secondary};
8170
+ opacity: 0.8;
8171
+ `;
8131
8172
  return {
8132
8173
  avatar: baseAvatar,
8133
8174
  variant: variantStyles[variant],
8134
8175
  image: imageStyles,
8135
- skeleton: skeletonStyles
8176
+ skeleton: skeletonStyles,
8177
+ icon: iconStyles
8136
8178
  };
8137
8179
  }, [theme, colorScheme, size, variant, backgroundColor]);
8138
8180
  };
8139
8181
  var Avatar_styles_default = useStyles18;
8140
8182
 
8141
8183
  // src/components/primitives/Avatar/Avatar.tsx
8142
- var import_jsx_runtime69 = require("react/jsx-runtime");
8184
+ var import_jsx_runtime68 = require("react/jsx-runtime");
8143
8185
  var Avatar = ({
8144
8186
  alt = "User avatar",
8145
8187
  background = "random",
@@ -8147,7 +8189,8 @@ var Avatar = ({
8147
8189
  imageUrl,
8148
8190
  name,
8149
8191
  size = 64,
8150
- variant = "circular"
8192
+ variant = "circular",
8193
+ isLoading = false
8151
8194
  }) => {
8152
8195
  const { theme, colorScheme } = useTheme_default();
8153
8196
  const generateBackgroundColor = (inputString) => {
@@ -8181,24 +8224,37 @@ var Avatar = ({
8181
8224
  return background;
8182
8225
  }, [background, name, imageUrl]);
8183
8226
  const styles = Avatar_styles_default(theme, colorScheme, size, variant, backgroundColor);
8227
+ const isDefaultState = !imageUrl && !name && !isLoading;
8184
8228
  const getInitials = (fullName) => fullName.split(" ").map((part) => part[0]).slice(0, 2).join("").toUpperCase();
8185
8229
  const renderContent = () => {
8186
8230
  if (imageUrl) {
8187
- 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) });
8231
+ 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) });
8188
8232
  }
8189
8233
  if (name) {
8190
8234
  return getInitials(name);
8191
8235
  }
8192
- 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) });
8236
+ if (isLoading) {
8237
+ 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) });
8238
+ }
8239
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
8240
+ "svg",
8241
+ {
8242
+ xmlns: "http://www.w3.org/2000/svg",
8243
+ viewBox: "0 0 640 640",
8244
+ className: (0, import_css39.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", "icon")), styles.icon),
8245
+ 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" })
8246
+ }
8247
+ );
8193
8248
  };
8194
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8249
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
8195
8250
  "div",
8196
8251
  {
8197
8252
  className: (0, import_css39.cx)(
8198
- (0, import_browser55.withVendorCSSClassPrefix)((0, import_browser55.bem)("avatar")),
8253
+ (0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar")),
8199
8254
  styles.avatar,
8200
8255
  styles.variant,
8201
- (0, import_browser55.withVendorCSSClassPrefix)((0, import_browser55.bem)("avatar", null, variant)),
8256
+ (0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", null, variant)),
8257
+ isDefaultState && (0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("avatar", "default")),
8202
8258
  className
8203
8259
  ),
8204
8260
  children: renderContent()
@@ -8208,14 +8264,14 @@ var Avatar = ({
8208
8264
  var Avatar_default = Avatar;
8209
8265
 
8210
8266
  // src/components/primitives/Dialog/Dialog.tsx
8211
- var import_browser56 = require("@asgardeo/browser");
8267
+ var import_browser57 = require("@asgardeo/browser");
8212
8268
  var import_react62 = require("@floating-ui/react");
8213
8269
  var import_css41 = require("@emotion/css");
8214
8270
  var import_react63 = __toESM(require("react"), 1);
8215
8271
 
8216
8272
  // src/components/primitives/Icons/LogOut.tsx
8217
- var import_jsx_runtime70 = require("react/jsx-runtime");
8218
- var LogOut = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
8273
+ var import_jsx_runtime69 = require("react/jsx-runtime");
8274
+ var LogOut = (props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
8219
8275
  "svg",
8220
8276
  {
8221
8277
  xmlns: "http://www.w3.org/2000/svg",
@@ -8229,17 +8285,17 @@ var LogOut = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
8229
8285
  strokeLinejoin: "round",
8230
8286
  ...props,
8231
8287
  children: [
8232
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "m16 17 5-5-5-5" }),
8233
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M21 12H9" }),
8234
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8288
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { d: "m16 17 5-5-5-5" }),
8289
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { d: "M21 12H9" }),
8290
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8235
8291
  ]
8236
8292
  }
8237
8293
  );
8238
8294
  var LogOut_default = LogOut;
8239
8295
 
8240
8296
  // src/components/primitives/Icons/Plus.tsx
8241
- var import_jsx_runtime71 = require("react/jsx-runtime");
8242
- var Plus = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8297
+ var import_jsx_runtime70 = require("react/jsx-runtime");
8298
+ var Plus = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
8243
8299
  "svg",
8244
8300
  {
8245
8301
  xmlns: "http://www.w3.org/2000/svg",
@@ -8253,16 +8309,16 @@ var Plus = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8253
8309
  strokeLinejoin: "round",
8254
8310
  ...props,
8255
8311
  children: [
8256
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "M5 12h14" }),
8257
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "M12 5v14" })
8312
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M5 12h14" }),
8313
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { d: "M12 5v14" })
8258
8314
  ]
8259
8315
  }
8260
8316
  );
8261
8317
  var Plus_default = Plus;
8262
8318
 
8263
8319
  // src/components/primitives/Icons/User.tsx
8264
- var import_jsx_runtime72 = require("react/jsx-runtime");
8265
- var User7 = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
8320
+ var import_jsx_runtime71 = require("react/jsx-runtime");
8321
+ var User7 = (props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8266
8322
  "svg",
8267
8323
  {
8268
8324
  xmlns: "http://www.w3.org/2000/svg",
@@ -8276,16 +8332,16 @@ var User7 = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
8276
8332
  strokeLinejoin: "round",
8277
8333
  ...props,
8278
8334
  children: [
8279
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8280
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("circle", { cx: "12", cy: "7", r: "4" })
8335
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8336
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("circle", { cx: "12", cy: "7", r: "4" })
8281
8337
  ]
8282
8338
  }
8283
8339
  );
8284
8340
  var User_default2 = User7;
8285
8341
 
8286
8342
  // src/components/primitives/Icons/X.tsx
8287
- var import_jsx_runtime73 = require("react/jsx-runtime");
8288
- var X = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
8343
+ var import_jsx_runtime72 = require("react/jsx-runtime");
8344
+ var X = (props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
8289
8345
  "svg",
8290
8346
  {
8291
8347
  xmlns: "http://www.w3.org/2000/svg",
@@ -8299,8 +8355,8 @@ var X = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
8299
8355
  strokeLinejoin: "round",
8300
8356
  ...props,
8301
8357
  children: [
8302
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M18 6 6 18" }),
8303
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "m6 6 12 12" })
8358
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M18 6 6 18" }),
8359
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "m6 6 12 12" })
8304
8360
  ]
8305
8361
  }
8306
8362
  );
@@ -8323,17 +8379,6 @@ var useStyles19 = (theme, colorScheme) => {
8323
8379
  border-radius: ${theme.vars.borderRadius.large};
8324
8380
  box-shadow: 0 2px 8px ${colorScheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.15)"};
8325
8381
  outline: none;
8326
- max-width: 35vw;
8327
- min-width: 35vw;
8328
- @media (max-width: 900px) {
8329
- max-width: 80vw;
8330
- min-width: 80vw;
8331
- }
8332
- @media (max-width: 600px) {
8333
- max-width: 95vw;
8334
- min-width: 95vw;
8335
- }
8336
- max-height: 90vh;
8337
8382
  overflow-y: auto;
8338
8383
  z-index: 10000;
8339
8384
  `;
@@ -8383,7 +8428,7 @@ var useStyles19 = (theme, colorScheme) => {
8383
8428
  var Dialog_styles_default = useStyles19;
8384
8429
 
8385
8430
  // src/components/primitives/Dialog/Dialog.tsx
8386
- var import_jsx_runtime74 = require("react/jsx-runtime");
8431
+ var import_jsx_runtime73 = require("react/jsx-runtime");
8387
8432
  function useDialog({
8388
8433
  initialOpen = false,
8389
8434
  open: controlledOpen,
@@ -8429,7 +8474,7 @@ var useDialogContext = () => {
8429
8474
  };
8430
8475
  function Dialog({ children, ...options }) {
8431
8476
  const dialog = useDialog(options);
8432
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DialogContext.Provider, { value: dialog, children });
8477
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DialogContext.Provider, { value: dialog, children });
8433
8478
  }
8434
8479
  var DialogTrigger = import_react63.default.forwardRef(
8435
8480
  ({ children, asChild = false, ...props }, propRef) => {
@@ -8447,7 +8492,7 @@ var DialogTrigger = import_react63.default.forwardRef(
8447
8492
  })
8448
8493
  );
8449
8494
  }
8450
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8495
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8451
8496
  }
8452
8497
  );
8453
8498
  var DialogContent = import_react63.default.forwardRef((props, propRef) => {
@@ -8456,11 +8501,11 @@ var DialogContent = import_react63.default.forwardRef((props, propRef) => {
8456
8501
  const styles = Dialog_styles_default(theme, colorScheme);
8457
8502
  const ref = (0, import_react62.useMergeRefs)([context.refs.setFloating, propRef]);
8458
8503
  if (!floatingContext.open) return null;
8459
- 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)(
8504
+ 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)(
8460
8505
  "div",
8461
8506
  {
8462
8507
  ref,
8463
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "content")), styles.content, props.className),
8508
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "content")), styles.content, props.className),
8464
8509
  "aria-labelledby": context.labelId,
8465
8510
  "aria-describedby": context.descriptionId,
8466
8511
  ...context.getFloatingProps(props),
@@ -8478,18 +8523,18 @@ var DialogHeading = import_react63.default.forwardRef(
8478
8523
  context.setLabelId(id);
8479
8524
  return () => context.setLabelId(void 0);
8480
8525
  }, [id, context.setLabelId]);
8481
- 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: [
8482
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8526
+ 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: [
8527
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8483
8528
  "h2",
8484
8529
  {
8485
8530
  ...props,
8486
8531
  ref,
8487
8532
  id,
8488
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "title")), styles.headerTitle),
8533
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "title")), styles.headerTitle),
8489
8534
  children
8490
8535
  }
8491
8536
  ),
8492
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8537
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8493
8538
  Button_default,
8494
8539
  {
8495
8540
  color: "tertiary",
@@ -8498,7 +8543,7 @@ var DialogHeading = import_react63.default.forwardRef(
8498
8543
  shape: "round",
8499
8544
  onClick: () => context.setOpen(false),
8500
8545
  "aria-label": "Close",
8501
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(X_default, { width: 16, height: 16 })
8546
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(X_default, { width: 16, height: 16 })
8502
8547
  }
8503
8548
  )
8504
8549
  ] });
@@ -8514,13 +8559,13 @@ var DialogDescription = import_react63.default.forwardRef(
8514
8559
  context.setDescriptionId(id);
8515
8560
  return () => context.setDescriptionId(void 0);
8516
8561
  }, [id, context.setDescriptionId]);
8517
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8562
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8518
8563
  "p",
8519
8564
  {
8520
8565
  ...props,
8521
8566
  ref,
8522
8567
  id,
8523
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "description")), styles.description, props.className),
8568
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "description")), styles.description, props.className),
8524
8569
  children
8525
8570
  }
8526
8571
  );
@@ -8544,13 +8589,13 @@ var DialogClose = import_react63.default.forwardRef(({ children, asChild = false
8544
8589
  onClick: handleClick
8545
8590
  });
8546
8591
  }
8547
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8592
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
8548
8593
  Button_default,
8549
8594
  {
8550
8595
  ...props,
8551
8596
  ref,
8552
8597
  onClick: handleClick,
8553
- className: (0, import_css41.cx)((0, import_browser56.withVendorCSSClassPrefix)((0, import_browser56.bem)("dialog", "close")), props.className),
8598
+ className: (0, import_css41.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("dialog", "close")), props.className),
8554
8599
  variant: "text",
8555
8600
  children
8556
8601
  }
@@ -8571,7 +8616,7 @@ var Dialog_default = Dialog;
8571
8616
  // src/components/primitives/MultiInput/MultiInput.tsx
8572
8617
  var import_react65 = require("react");
8573
8618
  var import_css43 = require("@emotion/css");
8574
- var import_browser57 = require("@asgardeo/browser");
8619
+ var import_browser58 = require("@asgardeo/browser");
8575
8620
 
8576
8621
  // src/components/primitives/MultiInput/MultiInput.styles.ts
8577
8622
  var import_css42 = require("@emotion/css");
@@ -8667,7 +8712,7 @@ var useStyles20 = (theme, colorScheme, disabled, hasError, canAddMore, canRemove
8667
8712
  var MultiInput_styles_default = useStyles20;
8668
8713
 
8669
8714
  // src/components/primitives/MultiInput/MultiInput.tsx
8670
- var import_jsx_runtime75 = require("react/jsx-runtime");
8715
+ var import_jsx_runtime74 = require("react/jsx-runtime");
8671
8716
  var MultiInput = ({
8672
8717
  label,
8673
8718
  error,
@@ -8690,8 +8735,8 @@ var MultiInput = ({
8690
8735
  const canAddMore = !maxFields || values.length < maxFields;
8691
8736
  const canRemove = values.length > minFields;
8692
8737
  const styles = MultiInput_styles_default(theme, colorScheme, !!disabled, !!error, canAddMore, canRemove);
8693
- 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" }) });
8694
- 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" }) });
8738
+ 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" }) });
8739
+ 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" }) });
8695
8740
  const handleAddValue = (0, import_react65.useCallback)(
8696
8741
  (newValue) => {
8697
8742
  if (newValue.trim() !== "" && (!maxFields || values.length < maxFields)) {
@@ -8735,9 +8780,9 @@ var MultiInput = ({
8735
8780
  };
8736
8781
  switch (fieldType) {
8737
8782
  case "DATE_TIME":
8738
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(DatePicker_default, { ...commonProps });
8783
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DatePicker_default, { ...commonProps });
8739
8784
  case "BOOLEAN":
8740
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8785
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8741
8786
  Checkbox_default,
8742
8787
  {
8743
8788
  ...commonProps,
@@ -8746,7 +8791,7 @@ var MultiInput = ({
8746
8791
  }
8747
8792
  );
8748
8793
  default:
8749
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextField_default, { ...commonProps, type });
8794
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(TextField_default, { ...commonProps, type });
8750
8795
  }
8751
8796
  },
8752
8797
  [placeholder, disabled, startIcon, endIcon, error, fieldType, type]
@@ -8758,43 +8803,43 @@ var MultiInput = ({
8758
8803
  setCurrentInputValue("");
8759
8804
  }
8760
8805
  }, [currentInputValue, handleAddValue]);
8761
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
8806
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
8762
8807
  FormControl_default,
8763
8808
  {
8764
8809
  error,
8765
8810
  helperText,
8766
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input")), className),
8811
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input")), className),
8767
8812
  style,
8768
8813
  children: [
8769
- label && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(InputLabel_default, { required, error: !!error, children: label }),
8770
- /* @__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: [
8771
- /* @__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(
8814
+ label && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(InputLabel_default, { required, error: !!error, children: label }),
8815
+ /* @__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: [
8816
+ /* @__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(
8772
8817
  currentInputValue,
8773
8818
  setCurrentInputValue,
8774
- canAddMore ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PlusIcon, { className: styles.plusIcon }) : void 0,
8819
+ canAddMore ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PlusIcon, { className: styles.plusIcon }) : void 0,
8775
8820
  canAddMore ? handleInputSubmit : void 0
8776
8821
  ) }) }),
8777
- 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)(
8822
+ 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)(
8778
8823
  "div",
8779
8824
  {
8780
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "list-item")), styles.listItem),
8825
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "list-item")), styles.listItem),
8781
8826
  children: [
8782
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8827
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8783
8828
  "span",
8784
8829
  {
8785
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "list-item-text")), styles.listItemText),
8830
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "list-item-text")), styles.listItemText),
8786
8831
  children: value
8787
8832
  }
8788
8833
  ),
8789
- canRemove && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
8834
+ canRemove && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
8790
8835
  "button",
8791
8836
  {
8792
8837
  type: "button",
8793
8838
  onClick: () => handleRemoveValue(index),
8794
8839
  disabled,
8795
- className: (0, import_css43.cx)((0, import_browser57.withVendorCSSClassPrefix)((0, import_browser57.bem)("multi-input", "remove-button")), styles.removeButton),
8840
+ className: (0, import_css43.cx)((0, import_browser58.withVendorCSSClassPrefix)((0, import_browser58.bem)("multi-input", "remove-button")), styles.removeButton),
8796
8841
  title: "Remove value",
8797
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(BinIcon, { className: styles.icon })
8842
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(BinIcon, { className: styles.icon })
8798
8843
  }
8799
8844
  )
8800
8845
  ]
@@ -8811,7 +8856,7 @@ var MultiInput_default = MultiInput;
8811
8856
  // src/components/presentation/UserProfile/BaseUserProfile.styles.ts
8812
8857
  var import_css44 = require("@emotion/css");
8813
8858
  var import_react66 = require("react");
8814
- var import_browser58 = require("@asgardeo/browser");
8859
+ var import_browser59 = require("@asgardeo/browser");
8815
8860
  var useStyles21 = (theme, colorScheme) => {
8816
8861
  const valuePlaceholder = import_css44.css`
8817
8862
  font-style: italic;
@@ -8922,7 +8967,7 @@ var useStyles21 = (theme, colorScheme) => {
8922
8967
  max-width: 350px;
8923
8968
  text-align: left;
8924
8969
 
8925
- .${(0, import_browser58.withVendorCSSClassPrefix)("form-control")} {
8970
+ .${(0, import_browser59.withVendorCSSClassPrefix)("form-control")} {
8926
8971
  margin-bottom: 0;
8927
8972
  }
8928
8973
 
@@ -8982,7 +9027,7 @@ var useStyles21 = (theme, colorScheme) => {
8982
9027
  var BaseUserProfile_styles_default = useStyles21;
8983
9028
 
8984
9029
  // src/components/presentation/UserProfile/BaseUserProfile.tsx
8985
- var import_jsx_runtime76 = require("react/jsx-runtime");
9030
+ var import_jsx_runtime75 = require("react/jsx-runtime");
8986
9031
  var fieldsToSkip = [
8987
9032
  "roles.default",
8988
9033
  "active",
@@ -9018,13 +9063,31 @@ var BaseUserProfile = ({
9018
9063
  onOpenChange,
9019
9064
  onUpdate,
9020
9065
  open = false,
9021
- error = null
9066
+ error = null,
9067
+ isLoading = false,
9068
+ showFields = [],
9069
+ hideFields = []
9022
9070
  }) => {
9023
9071
  const { theme, colorScheme } = useTheme_default();
9024
9072
  const [editedUser, setEditedUser] = (0, import_react67.useState)(flattenedProfile || profile);
9025
9073
  const [editingFields, setEditingFields] = (0, import_react67.useState)({});
9026
9074
  const { t } = useTranslation_default();
9027
- const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9075
+ const shouldShowField = (0, import_react67.useCallback)(
9076
+ (fieldName) => {
9077
+ if (fieldsToSkip.includes(fieldName)) {
9078
+ return false;
9079
+ }
9080
+ if (hideFields.length > 0 && hideFields.includes(fieldName)) {
9081
+ return false;
9082
+ }
9083
+ if (showFields.length > 0) {
9084
+ return showFields.includes(fieldName);
9085
+ }
9086
+ return true;
9087
+ },
9088
+ [showFields, hideFields]
9089
+ );
9090
+ const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9028
9091
  "svg",
9029
9092
  {
9030
9093
  width: "16",
@@ -9035,7 +9098,7 @@ var BaseUserProfile = ({
9035
9098
  strokeWidth: "2",
9036
9099
  strokeLinecap: "round",
9037
9100
  strokeLinejoin: "round",
9038
- 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" })
9101
+ 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" })
9039
9102
  }
9040
9103
  );
9041
9104
  const toggleFieldEdit = (0, import_react67.useCallback)((fieldName) => {
@@ -9060,12 +9123,12 @@ var BaseUserProfile = ({
9060
9123
  }, []);
9061
9124
  const ObjectDisplay = ({ data }) => {
9062
9125
  if (!data || typeof data !== "object") return null;
9063
- 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: [
9064
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("td", { className: styles.objectKey, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("strong", { children: [
9126
+ 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: [
9127
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("td", { className: styles.objectKey, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("strong", { children: [
9065
9128
  formatLabel(key),
9066
9129
  ":"
9067
9130
  ] }) }),
9068
- /* @__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) })
9131
+ /* @__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) })
9069
9132
  ] }, key)) }) });
9070
9133
  };
9071
9134
  function set(obj, path, value) {
@@ -9092,7 +9155,7 @@ var BaseUserProfile = ({
9092
9155
  fieldValue = fieldValue.filter((v) => v !== void 0 && v !== null && v !== "");
9093
9156
  }
9094
9157
  let payload = {};
9095
- if (schema.schemaId && schema.schemaId !== import_browser59.WellKnownSchemaIds.User) {
9158
+ if (schema.schemaId && schema.schemaId !== import_browser60.WellKnownSchemaIds.User) {
9096
9159
  payload = {
9097
9160
  [schema.schemaId]: {
9098
9161
  [fieldName]: fieldValue
@@ -9135,9 +9198,9 @@ var BaseUserProfile = ({
9135
9198
  const { value, displayName, description, name, type, required, mutability, subAttributes, multiValued } = schema;
9136
9199
  const label = displayName || description || name || "";
9137
9200
  if (subAttributes && Array.isArray(subAttributes)) {
9138
- 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: [
9139
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9140
- /* @__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) })
9201
+ 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: [
9202
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9203
+ /* @__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) })
9141
9204
  ] }, index)) });
9142
9205
  }
9143
9206
  if (Array.isArray(value) || multiValued) {
@@ -9153,9 +9216,9 @@ var BaseUserProfile = ({
9153
9216
  } else {
9154
9217
  fieldValues = [];
9155
9218
  }
9156
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9157
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9158
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.value, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9219
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9220
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9221
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.value, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9159
9222
  MultiInput_default,
9160
9223
  {
9161
9224
  values: fieldValues,
@@ -9186,9 +9249,9 @@ var BaseUserProfile = ({
9186
9249
  } else {
9187
9250
  displayValue2 = "-";
9188
9251
  }
9189
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9190
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9191
- /* @__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)(
9252
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9253
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9254
+ /* @__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)(
9192
9255
  Button_default,
9193
9256
  {
9194
9257
  onClick: onStartEdit,
@@ -9203,7 +9266,7 @@ var BaseUserProfile = ({
9203
9266
  ] });
9204
9267
  }
9205
9268
  if (type === "COMPLEX" && typeof value === "object") {
9206
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ObjectDisplay, { data: value });
9269
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ObjectDisplay, { data: value });
9207
9270
  }
9208
9271
  if (isEditing && onEditValue && mutability !== "READ_ONLY" && !readonlyFields.includes(name || "")) {
9209
9272
  const fieldValue = editedUser && name && editedUser[name] !== void 0 ? editedUser[name] : flattenedProfile && name && flattenedProfile[name] !== void 0 ? flattenedProfile[name] : value || "";
@@ -9218,16 +9281,16 @@ var BaseUserProfile = ({
9218
9281
  let field;
9219
9282
  switch (type) {
9220
9283
  case "STRING":
9221
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TextField_default, { ...commonProps });
9284
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextField_default, { ...commonProps });
9222
9285
  break;
9223
9286
  case "DATE_TIME":
9224
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DatePicker_default, { ...commonProps });
9287
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(DatePicker_default, { ...commonProps });
9225
9288
  break;
9226
9289
  case "BOOLEAN":
9227
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9290
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9228
9291
  break;
9229
9292
  case "COMPLEX":
9230
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9293
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9231
9294
  "textarea",
9232
9295
  {
9233
9296
  value: fieldValue,
@@ -9239,11 +9302,11 @@ var BaseUserProfile = ({
9239
9302
  );
9240
9303
  break;
9241
9304
  default:
9242
- field = /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TextField_default, { ...commonProps });
9305
+ field = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(TextField_default, { ...commonProps });
9243
9306
  }
9244
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9245
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9246
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.value, children: field })
9307
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9308
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9309
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.value, children: field })
9247
9310
  ] });
9248
9311
  }
9249
9312
  const hasValue = value !== void 0 && value !== null && value !== "";
@@ -9256,9 +9319,9 @@ var BaseUserProfile = ({
9256
9319
  } else {
9257
9320
  displayValue = "-";
9258
9321
  }
9259
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9260
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: label }),
9261
- /* @__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)(
9322
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9323
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: label }),
9324
+ /* @__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)(
9262
9325
  Button_default,
9263
9326
  {
9264
9327
  onClick: onStartEdit,
@@ -9286,8 +9349,8 @@ var BaseUserProfile = ({
9286
9349
  alignItems: "center",
9287
9350
  gap: theme.vars.spacing.unit
9288
9351
  };
9289
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: styles.field, children: [
9290
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.fieldInner, children: renderSchemaField(
9352
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: styles.field, children: [
9353
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.fieldInner, children: renderSchemaField(
9291
9354
  schema,
9292
9355
  isFieldEditing,
9293
9356
  (value) => {
@@ -9297,21 +9360,21 @@ var BaseUserProfile = ({
9297
9360
  },
9298
9361
  () => toggleFieldEdit(schema.name)
9299
9362
  ) }),
9300
- editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: styles.fieldActions, children: [
9301
- isFieldEditing && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
9302
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9303
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9363
+ editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: styles.fieldActions, children: [
9364
+ isFieldEditing && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
9365
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9366
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9304
9367
  ] }),
9305
- !isFieldEditing && hasValue && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9368
+ !isFieldEditing && hasValue && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9306
9369
  Button_default,
9307
9370
  {
9308
9371
  size: "small",
9309
9372
  color: "tertiary",
9310
- variant: "text",
9373
+ variant: "icon",
9311
9374
  onClick: () => toggleFieldEdit(schema.name),
9312
9375
  title: "Edit",
9313
9376
  className: styles.editButton,
9314
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(PencilIcon, {})
9377
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PencilIcon, {})
9315
9378
  }
9316
9379
  )
9317
9380
  ] })
@@ -9331,7 +9394,7 @@ var BaseUserProfile = ({
9331
9394
  const containerClasses = (0, import_css45.cx)(
9332
9395
  styles.root,
9333
9396
  cardLayout ? styles.card : "",
9334
- (0, import_browser59.withVendorCSSClassPrefix)("user-profile"),
9397
+ (0, import_browser60.withVendorCSSClassPrefix)("user-profile"),
9335
9398
  className
9336
9399
  );
9337
9400
  const currentUser = flattenedProfile || profile;
@@ -9340,30 +9403,31 @@ var BaseUserProfile = ({
9340
9403
  const renderProfileWithoutSchemas = () => {
9341
9404
  if (!currentUser) return null;
9342
9405
  const profileEntries = Object.entries(currentUser).filter(([key, value]) => {
9343
- if (fieldsToSkip.includes(key)) return false;
9406
+ if (!shouldShowField(key)) return false;
9344
9407
  return value !== void 0 && value !== "" && value !== null;
9345
9408
  }).sort(([a], [b]) => a.localeCompare(b));
9346
- 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: [
9347
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: styles.label, children: formatLabel(key) }),
9348
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9409
+ 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: [
9410
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: styles.label, children: formatLabel(key) }),
9411
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9349
9412
  ] }, key)) });
9350
9413
  };
9351
- const profileContent = /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Card_default, { className: containerClasses, children: [
9352
- 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: [
9353
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
9354
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Alert_default.Description, { children: error })
9414
+ const profileContent = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Card_default, { className: containerClasses, children: [
9415
+ 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: [
9416
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Alert_default.Title, { children: t("errors.title") || "Error" }),
9417
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Alert_default.Description, { children: error })
9355
9418
  ] }),
9356
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.header, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9419
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.header, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
9357
9420
  Avatar,
9358
9421
  {
9359
9422
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, currentUser),
9360
9423
  name: getDisplayName(),
9361
9424
  size: 80,
9362
- alt: `${getDisplayName()}'s avatar`
9425
+ alt: `${getDisplayName()}'s avatar`,
9426
+ isLoading
9363
9427
  }
9364
9428
  ) }),
9365
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9366
- if (fieldsToSkip.includes(schema.name)) return false;
9429
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9430
+ if (!schema.name || !shouldShowField(schema.name)) return false;
9367
9431
  if (!editable) {
9368
9432
  const value = flattenedProfile && schema.name ? flattenedProfile[schema.name] : void 0;
9369
9433
  return value !== void 0 && value !== "" && value !== null;
@@ -9379,13 +9443,13 @@ var BaseUserProfile = ({
9379
9443
  ...schema,
9380
9444
  value
9381
9445
  };
9382
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9446
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9383
9447
  }) : renderProfileWithoutSchemas() })
9384
9448
  ] });
9385
9449
  if (mode === "popup") {
9386
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Dialog_default.Content, { children: [
9387
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9388
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: styles.popup, children: profileContent })
9450
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Dialog_default.Content, { children: [
9451
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9452
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: styles.popup, children: profileContent })
9389
9453
  ] }) });
9390
9454
  }
9391
9455
  return profileContent;
@@ -9396,8 +9460,8 @@ var BaseUserProfile_default = BaseUserProfile;
9396
9460
  var import_react68 = require("react");
9397
9461
 
9398
9462
  // src/api/updateMeProfile.ts
9399
- var import_browser60 = require("@asgardeo/browser");
9400
- var httpClient5 = import_browser60.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser60.AsgardeoSPAClient.getInstance());
9463
+ var import_browser61 = require("@asgardeo/browser");
9464
+ var httpClient5 = import_browser61.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser61.AsgardeoSPAClient.getInstance());
9401
9465
  var updateMeProfile = async ({ fetcher, ...requestConfig }) => {
9402
9466
  const defaultFetcher = async (url, config) => {
9403
9467
  const response = await httpClient5({
@@ -9414,7 +9478,7 @@ var updateMeProfile = async ({ fetcher, ...requestConfig }) => {
9414
9478
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
9415
9479
  };
9416
9480
  };
9417
- return (0, import_browser60.updateMeProfile)({
9481
+ return (0, import_browser61.updateMeProfile)({
9418
9482
  ...requestConfig,
9419
9483
  fetcher: fetcher || defaultFetcher
9420
9484
  });
@@ -9422,10 +9486,10 @@ var updateMeProfile = async ({ fetcher, ...requestConfig }) => {
9422
9486
  var updateMeProfile_default = updateMeProfile;
9423
9487
 
9424
9488
  // src/components/presentation/UserProfile/UserProfile.tsx
9425
- var import_browser61 = require("@asgardeo/browser");
9426
- var import_jsx_runtime77 = require("react/jsx-runtime");
9489
+ var import_browser62 = require("@asgardeo/browser");
9490
+ var import_jsx_runtime76 = require("react/jsx-runtime");
9427
9491
  var UserProfile3 = ({ ...rest }) => {
9428
- const { baseUrl } = useAsgardeo_default();
9492
+ const { baseUrl, isLoading } = useAsgardeo_default();
9429
9493
  const { profile, flattenedProfile, schemas, onUpdateProfile } = useUser_default();
9430
9494
  const { t } = useTranslation_default();
9431
9495
  const [error, setError] = (0, import_react68.useState)(null);
@@ -9436,13 +9500,13 @@ var UserProfile3 = ({ ...rest }) => {
9436
9500
  onUpdateProfile(response);
9437
9501
  } catch (error2) {
9438
9502
  let message = t("user.profile.update.generic.error");
9439
- if (error2 instanceof import_browser61.AsgardeoError) {
9503
+ if (error2 instanceof import_browser62.AsgardeoError) {
9440
9504
  message = error2?.message;
9441
9505
  }
9442
9506
  setError(message);
9443
9507
  }
9444
9508
  };
9445
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9509
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
9446
9510
  BaseUserProfile_default,
9447
9511
  {
9448
9512
  profile,
@@ -9457,7 +9521,7 @@ var UserProfile3 = ({ ...rest }) => {
9457
9521
  var UserProfile_default = UserProfile3;
9458
9522
 
9459
9523
  // src/components/presentation/UserDropdown/BaseUserDropdown.tsx
9460
- var import_browser62 = require("@asgardeo/browser");
9524
+ var import_browser63 = require("@asgardeo/browser");
9461
9525
  var import_react70 = require("@floating-ui/react");
9462
9526
  var import_css47 = require("@emotion/css");
9463
9527
  var import_react71 = require("react");
@@ -9647,7 +9711,7 @@ var useStyles22 = (theme, colorScheme) => {
9647
9711
  var BaseUserDropdown_styles_default = useStyles22;
9648
9712
 
9649
9713
  // src/components/presentation/UserDropdown/BaseUserDropdown.tsx
9650
- var import_jsx_runtime78 = require("react/jsx-runtime");
9714
+ var import_jsx_runtime77 = require("react/jsx-runtime");
9651
9715
  var BaseUserDropdown = ({
9652
9716
  fallback = null,
9653
9717
  className = "",
@@ -9706,14 +9770,14 @@ var BaseUserDropdown = ({
9706
9770
  defaultMenuItems.push({
9707
9771
  label: "Manage Profile",
9708
9772
  onClick: onManageProfile,
9709
- icon: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(User_default2, { width: "16", height: "16" })
9773
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(User_default2, { width: "16", height: "16" })
9710
9774
  });
9711
9775
  }
9712
9776
  if (onSignOut) {
9713
9777
  defaultMenuItems.push({
9714
9778
  label: "Sign Out",
9715
9779
  onClick: onSignOut,
9716
- icon: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(LogOut_default, { width: "16", height: "16" })
9780
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(LogOut_default, { width: "16", height: "16" })
9717
9781
  });
9718
9782
  }
9719
9783
  const allMenuItems = [...menuItems];
@@ -9723,18 +9787,18 @@ var BaseUserDropdown = ({
9723
9787
  }
9724
9788
  allMenuItems.push(...defaultMenuItems);
9725
9789
  }
9726
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown"), className), children: [
9727
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
9790
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown"), className), children: [
9791
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
9728
9792
  Button_default,
9729
9793
  {
9730
9794
  ref: refs.setReference,
9731
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__trigger"), styles.trigger),
9795
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__trigger"), styles.trigger),
9732
9796
  color: "tertiary",
9733
9797
  variant: "text",
9734
9798
  size: "medium",
9735
9799
  ...getReferenceProps(),
9736
9800
  children: [
9737
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9801
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9738
9802
  Avatar,
9739
9803
  {
9740
9804
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9743,27 +9807,27 @@ var BaseUserDropdown = ({
9743
9807
  alt: `${getDisplayName()}'s avatar`
9744
9808
  }
9745
9809
  ),
9746
- showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9810
+ showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9747
9811
  Typography_default,
9748
9812
  {
9749
9813
  variant: "body2",
9750
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__trigger-label"), styles.userName),
9814
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__trigger-label"), styles.userName),
9751
9815
  children: getDisplayName()
9752
9816
  }
9753
9817
  )
9754
9818
  ]
9755
9819
  }
9756
9820
  ),
9757
- 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)(
9821
+ 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)(
9758
9822
  "div",
9759
9823
  {
9760
9824
  ref: refs.setFloating,
9761
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__content"), styles.dropdownContent),
9825
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__content"), styles.dropdownContent),
9762
9826
  style: floatingStyles,
9763
9827
  ...getFloatingProps(),
9764
9828
  children: [
9765
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header"), styles.dropdownHeader), children: [
9766
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9829
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header"), styles.dropdownHeader), children: [
9830
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9767
9831
  Avatar,
9768
9832
  {
9769
9833
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9772,22 +9836,22 @@ var BaseUserDropdown = ({
9772
9836
  alt: `${getDisplayName()}'s avatar`
9773
9837
  }
9774
9838
  ),
9775
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header-info"), styles.headerInfo), children: [
9776
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9839
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header-info"), styles.headerInfo), children: [
9840
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9777
9841
  Typography_default,
9778
9842
  {
9779
9843
  noWrap: true,
9780
- className: (0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header-name"),
9844
+ className: (0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header-name"),
9781
9845
  variant: "body1",
9782
9846
  fontWeight: "medium",
9783
9847
  children: getDisplayName()
9784
9848
  }
9785
9849
  ),
9786
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9850
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9787
9851
  Typography_default,
9788
9852
  {
9789
9853
  noWrap: true,
9790
- className: (0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__header-email"),
9854
+ className: (0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__header-email"),
9791
9855
  variant: "caption",
9792
9856
  color: "secondary",
9793
9857
  children: getMappedUserProfileValue_default("username", mergedMappings, user) || getMappedUserProfileValue_default("email", mergedMappings, user)
@@ -9795,31 +9859,31 @@ var BaseUserDropdown = ({
9795
9859
  )
9796
9860
  ] })
9797
9861
  ] }),
9798
- /* @__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)(
9862
+ /* @__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)(
9799
9863
  "a",
9800
9864
  {
9801
9865
  href: item.href,
9802
9866
  style: {
9803
9867
  backgroundColor: hoveredItemIndex === index ? theme.vars.colors.action?.hover : "transparent"
9804
9868
  },
9805
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItemAnchor),
9869
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItemAnchor),
9806
9870
  onMouseEnter: () => setHoveredItemIndex(index),
9807
9871
  onMouseLeave: () => setHoveredItemIndex(null),
9808
9872
  onFocus: () => setHoveredItemIndex(index),
9809
9873
  onBlur: () => setHoveredItemIndex(null),
9810
9874
  children: [
9811
9875
  item.icon,
9812
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: item.label })
9876
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: item.label })
9813
9877
  ]
9814
9878
  }
9815
- ) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9879
+ ) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
9816
9880
  Button_default,
9817
9881
  {
9818
9882
  onClick: () => handleMenuItemClick(item),
9819
9883
  style: {
9820
9884
  backgroundColor: hoveredItemIndex === index ? theme.vars.colors.action?.hover : "transparent"
9821
9885
  },
9822
- className: (0, import_css47.cx)((0, import_browser62.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItem),
9886
+ className: (0, import_css47.cx)((0, import_browser63.withVendorCSSClassPrefix)("user-dropdown__menu-item"), styles.menuItem),
9823
9887
  color: "tertiary",
9824
9888
  variant: "text",
9825
9889
  size: "small",
@@ -9838,7 +9902,7 @@ var BaseUserDropdown_default = BaseUserDropdown;
9838
9902
 
9839
9903
  // src/components/presentation/UserDropdown/UserDropdown.tsx
9840
9904
  var import_react72 = require("react");
9841
- var import_jsx_runtime79 = require("react/jsx-runtime");
9905
+ var import_jsx_runtime78 = require("react/jsx-runtime");
9842
9906
  var UserDropdown = ({
9843
9907
  children,
9844
9908
  renderTrigger,
@@ -9867,14 +9931,14 @@ var UserDropdown = ({
9867
9931
  closeProfile
9868
9932
  };
9869
9933
  if (children) {
9870
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
9934
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
9871
9935
  children(renderProps),
9872
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9936
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9873
9937
  ] });
9874
9938
  }
9875
9939
  if (renderTrigger || renderDropdown) {
9876
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
9877
- renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9940
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
9941
+ renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9878
9942
  BaseUserDropdown_default,
9879
9943
  {
9880
9944
  user,
@@ -9884,11 +9948,11 @@ var UserDropdown = ({
9884
9948
  ...rest
9885
9949
  }
9886
9950
  ),
9887
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9951
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9888
9952
  ] });
9889
9953
  }
9890
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
9891
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9954
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
9955
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
9892
9956
  BaseUserDropdown_default,
9893
9957
  {
9894
9958
  user,
@@ -9898,7 +9962,7 @@ var UserDropdown = ({
9898
9962
  ...rest
9899
9963
  }
9900
9964
  ),
9901
- isProfileOpen && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9965
+ isProfileOpen && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9902
9966
  ] });
9903
9967
  };
9904
9968
  var UserDropdown_default = UserDropdown;
@@ -9909,9 +9973,9 @@ var import_css49 = require("@emotion/css");
9909
9973
  var import_react75 = require("react");
9910
9974
 
9911
9975
  // src/components/primitives/Icons/Building.tsx
9912
- var import_jsx_runtime80 = require("react/jsx-runtime");
9913
- 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: [
9914
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
9976
+ var import_jsx_runtime79 = require("react/jsx-runtime");
9977
+ 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: [
9978
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
9915
9979
  "path",
9916
9980
  {
9917
9981
  d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",
@@ -9921,25 +9985,25 @@ var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PU
9921
9985
  strokeLinejoin: "round"
9922
9986
  }
9923
9987
  ),
9924
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9925
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9926
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9927
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9928
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9929
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
9988
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9989
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9990
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9991
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9992
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9993
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
9930
9994
  ] });
9931
9995
  Building.displayName = "Building";
9932
9996
  var Building_default = Building;
9933
9997
 
9934
9998
  // src/components/primitives/Icons/Check.tsx
9935
- var import_jsx_runtime81 = require("react/jsx-runtime");
9936
- 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" }) });
9999
+ var import_jsx_runtime80 = require("react/jsx-runtime");
10000
+ 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" }) });
9937
10001
  Check.displayName = "Check";
9938
10002
  var Check_default = Check;
9939
10003
 
9940
10004
  // src/components/primitives/Icons/ChevronDown.tsx
9941
- var import_jsx_runtime82 = require("react/jsx-runtime");
9942
- 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" }) });
10005
+ var import_jsx_runtime81 = require("react/jsx-runtime");
10006
+ 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" }) });
9943
10007
  ChevronDown.displayName = "ChevronDown";
9944
10008
  var ChevronDown_default = ChevronDown;
9945
10009
 
@@ -10169,7 +10233,7 @@ var useStyles23 = (theme, colorScheme) => {
10169
10233
  var BaseOrganizationSwitcher_styles_default = useStyles23;
10170
10234
 
10171
10235
  // src/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.tsx
10172
- var import_jsx_runtime83 = require("react/jsx-runtime");
10236
+ var import_jsx_runtime82 = require("react/jsx-runtime");
10173
10237
  var BaseOrganizationSwitcher = ({
10174
10238
  organizations,
10175
10239
  currentOrganization,
@@ -10222,8 +10286,8 @@ var BaseOrganizationSwitcher = ({
10222
10286
  const switchableOrganizations = organizations.filter(
10223
10287
  (org) => org.id !== currentOrganization?.id
10224
10288
  );
10225
- const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10226
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10289
+ const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10290
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10227
10291
  Avatar,
10228
10292
  {
10229
10293
  variant: "square",
@@ -10233,24 +10297,24 @@ var BaseOrganizationSwitcher = ({
10233
10297
  alt: `${organization.name} avatar`
10234
10298
  }
10235
10299
  ),
10236
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationInfo), children: [
10237
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "body2", fontWeight: "medium", className: (0, import_css49.cx)(styles.organizationName), children: organization.name }),
10238
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationMeta), children: [
10239
- showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { children: [
10300
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationInfo), children: [
10301
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "body2", fontWeight: "medium", className: (0, import_css49.cx)(styles.organizationName), children: organization.name }),
10302
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.organizationMeta), children: [
10303
+ showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { children: [
10240
10304
  organization.memberCount,
10241
10305
  " ",
10242
10306
  organization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members")
10243
10307
  ] }),
10244
- showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: " \u2022 " }),
10245
- showRole && organization.role && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: (0, import_css49.cx)(styles.roleCapitalized), children: organization.role })
10308
+ showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { children: " \u2022 " }),
10309
+ showRole && organization.role && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: (0, import_css49.cx)(styles.roleCapitalized), children: organization.role })
10246
10310
  ] })
10247
10311
  ] }),
10248
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10312
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10249
10313
  ] });
10250
- 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") }) });
10251
- 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 }) });
10252
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.root, className), style, children: [
10253
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10314
+ 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") }) });
10315
+ 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 }) });
10316
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.root, className), style, children: [
10317
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10254
10318
  Button_default,
10255
10319
  {
10256
10320
  ref: refs.setReference,
@@ -10260,8 +10324,8 @@ var BaseOrganizationSwitcher = ({
10260
10324
  size: "medium",
10261
10325
  ...getReferenceProps(),
10262
10326
  children: [
10263
- currentOrganization ? /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10264
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10327
+ currentOrganization ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10328
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10265
10329
  Avatar,
10266
10330
  {
10267
10331
  variant: "square",
@@ -10271,18 +10335,18 @@ var BaseOrganizationSwitcher = ({
10271
10335
  alt: `${currentOrganization.name} avatar`
10272
10336
  }
10273
10337
  ),
10274
- showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: currentOrganization.name })
10275
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10276
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Building_default, { width: avatarSize, height: avatarSize }),
10277
- showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10338
+ showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: currentOrganization.name })
10339
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10340
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Building_default, { width: avatarSize, height: avatarSize }),
10341
+ showTriggerLabel && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { variant: "body2", className: (0, import_css49.cx)(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10278
10342
  ] }),
10279
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronDown_default, { width: "16", height: "16" })
10343
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronDown_default, { width: "16", height: "16" })
10280
10344
  ]
10281
10345
  }
10282
10346
  ),
10283
- 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: [
10284
- currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.header), children: [
10285
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10347
+ 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: [
10348
+ currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.header), children: [
10349
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10286
10350
  Avatar,
10287
10351
  {
10288
10352
  variant: "square",
@@ -10292,10 +10356,10 @@ var BaseOrganizationSwitcher = ({
10292
10356
  alt: `${currentOrganization.name} avatar`
10293
10357
  }
10294
10358
  ),
10295
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.headerInfo), children: [
10296
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typography_default, { noWrap: true, className: (0, import_css49.cx)(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10297
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css49.cx)(styles.headerMeta), children: [
10298
- showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10359
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.headerInfo), children: [
10360
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typography_default, { noWrap: true, className: (0, import_css49.cx)(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10361
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_css49.cx)(styles.headerMeta), children: [
10362
+ showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10299
10363
  Typography_default,
10300
10364
  {
10301
10365
  noWrap: true,
@@ -10305,17 +10369,17 @@ var BaseOrganizationSwitcher = ({
10305
10369
  currentOrganization.memberCount,
10306
10370
  " ",
10307
10371
  currentOrganization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members"),
10308
- showRole && currentOrganization.role && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("span", { children: [
10372
+ showRole && currentOrganization.role && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("span", { children: [
10309
10373
  " \u2022 ",
10310
10374
  currentOrganization.role
10311
10375
  ] })
10312
10376
  ]
10313
10377
  }
10314
10378
  ),
10315
- 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 })
10379
+ 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 })
10316
10380
  ] })
10317
10381
  ] }),
10318
- onManageProfile && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10382
+ onManageProfile && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10319
10383
  Button_default,
10320
10384
  {
10321
10385
  onClick: onManageProfile,
@@ -10324,7 +10388,7 @@ var BaseOrganizationSwitcher = ({
10324
10388
  size: "small",
10325
10389
  "aria-label": "Manage Organization Profile",
10326
10390
  className: (0, import_css49.cx)(styles.manageButton),
10327
- endIcon: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10391
+ endIcon: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10328
10392
  "svg",
10329
10393
  {
10330
10394
  width: "16",
@@ -10336,8 +10400,8 @@ var BaseOrganizationSwitcher = ({
10336
10400
  strokeLinecap: "round",
10337
10401
  strokeLinejoin: "round",
10338
10402
  children: [
10339
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
10340
- /* @__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" })
10403
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
10404
+ /* @__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" })
10341
10405
  ]
10342
10406
  }
10343
10407
  ),
@@ -10345,20 +10409,20 @@ var BaseOrganizationSwitcher = ({
10345
10409
  }
10346
10410
  )
10347
10411
  ] }),
10348
- organizations.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10412
+ organizations.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10349
10413
  "div",
10350
10414
  {
10351
10415
  className: (0, import_css49.cx)(styles.header, styles.sectionHeaderContainer),
10352
10416
  style: {
10353
10417
  borderTop: currentOrganization ? `1px solid ${theme.vars.colors.border}` : "none"
10354
10418
  },
10355
- 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") })
10419
+ 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") })
10356
10420
  }
10357
10421
  ),
10358
- /* @__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: [
10422
+ /* @__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: [
10359
10423
  switchableOrganizations.map((organization) => {
10360
10424
  const isSelected = false;
10361
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10425
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10362
10426
  Button_default,
10363
10427
  {
10364
10428
  onClick: () => handleOrganizationSwitch(organization),
@@ -10376,10 +10440,10 @@ var BaseOrganizationSwitcher = ({
10376
10440
  organization.id
10377
10441
  );
10378
10442
  }),
10379
- menuItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
10380
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css49.cx)(styles.menuDivider) }),
10443
+ menuItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
10444
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: (0, import_css49.cx)(styles.menuDivider) }),
10381
10445
  menuItems.map(
10382
- (item, index) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
10446
+ (item, index) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: item.href ? /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
10383
10447
  "a",
10384
10448
  {
10385
10449
  href: item.href,
@@ -10393,10 +10457,10 @@ var BaseOrganizationSwitcher = ({
10393
10457
  onBlur: () => setHoveredItemIndex(null),
10394
10458
  children: [
10395
10459
  item.icon,
10396
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: item.label })
10460
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { children: item.label })
10397
10461
  ]
10398
10462
  }
10399
- ) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10463
+ ) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
10400
10464
  Button_default,
10401
10465
  {
10402
10466
  onClick: () => handleMenuItemClick(item),
@@ -10570,7 +10634,7 @@ var useStyles24 = (theme, colorScheme) => {
10570
10634
  var BaseCreateOrganization_styles_default = useStyles24;
10571
10635
 
10572
10636
  // src/components/presentation/CreateOrganization/BaseCreateOrganization.tsx
10573
- var import_jsx_runtime84 = require("react/jsx-runtime");
10637
+ var import_jsx_runtime83 = require("react/jsx-runtime");
10574
10638
  var BaseCreateOrganization = ({
10575
10639
  cardLayout = true,
10576
10640
  className = "",
@@ -10657,13 +10721,13 @@ var BaseCreateOrganization = ({
10657
10721
  console.error("Form submission error:", submitError);
10658
10722
  }
10659
10723
  };
10660
- 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: [
10661
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("form", { id: "create-organization-form", className: (0, import_css51.cx)(styles.form), onSubmit: handleSubmit, children: [
10662
- error && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10663
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Alert_default.Title, { children: "Error" }),
10664
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Alert_default.Description, { children: error })
10724
+ 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: [
10725
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("form", { id: "create-organization-form", className: (0, import_css51.cx)(styles.form), onSubmit: handleSubmit, children: [
10726
+ error && /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10727
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Alert_default.Title, { children: "Error" }),
10728
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Alert_default.Description, { children: error })
10665
10729
  ] }),
10666
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10730
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10667
10731
  TextField_default,
10668
10732
  {
10669
10733
  label: `${t("organization.create.name.label")}`,
@@ -10676,7 +10740,7 @@ var BaseCreateOrganization = ({
10676
10740
  className: (0, import_css51.cx)(styles.input)
10677
10741
  }
10678
10742
  ) }),
10679
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10743
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: (0, import_css51.cx)(styles.fieldGroup), children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10680
10744
  TextField_default,
10681
10745
  {
10682
10746
  label: `${t("organization.create.handle.label") || "Organization Handle"}`,
@@ -10690,9 +10754,9 @@ var BaseCreateOrganization = ({
10690
10754
  className: (0, import_css51.cx)(styles.input)
10691
10755
  }
10692
10756
  ) }),
10693
- /* @__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: [
10694
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10695
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10757
+ /* @__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: [
10758
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10759
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
10696
10760
  "textarea",
10697
10761
  {
10698
10762
  className: (0, import_css51.cx)(styles.textarea, formErrors.description && styles.textareaError),
@@ -10706,23 +10770,23 @@ var BaseCreateOrganization = ({
10706
10770
  ] }) }),
10707
10771
  renderAdditionalFields && renderAdditionalFields()
10708
10772
  ] }),
10709
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: (0, import_css51.cx)(styles.actions), children: [
10710
- onCancel && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10711
- /* @__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") })
10773
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: (0, import_css51.cx)(styles.actions), children: [
10774
+ onCancel && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10775
+ /* @__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") })
10712
10776
  ] })
10713
10777
  ] }) });
10714
10778
  if (mode === "popup") {
10715
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Dialog_default.Content, { children: [
10716
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dialog_default.Heading, { children: title }),
10717
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: styles.popup, children: createOrganizationContent })
10779
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(Dialog_default.Content, { children: [
10780
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Dialog_default.Heading, { children: title }),
10781
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: styles.popup, children: createOrganizationContent })
10718
10782
  ] }) });
10719
10783
  }
10720
10784
  return createOrganizationContent;
10721
10785
  };
10722
10786
 
10723
10787
  // src/api/createOrganization.ts
10724
- var import_browser63 = require("@asgardeo/browser");
10725
- var httpClient6 = import_browser63.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser63.AsgardeoSPAClient.getInstance());
10788
+ var import_browser64 = require("@asgardeo/browser");
10789
+ var httpClient6 = import_browser64.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser64.AsgardeoSPAClient.getInstance());
10726
10790
  var createOrganization = async ({ fetcher, ...requestConfig }) => {
10727
10791
  const defaultFetcher = async (url, config) => {
10728
10792
  const response = await httpClient6({
@@ -10739,7 +10803,7 @@ var createOrganization = async ({ fetcher, ...requestConfig }) => {
10739
10803
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
10740
10804
  };
10741
10805
  };
10742
- return (0, import_browser63.createOrganization)({
10806
+ return (0, import_browser64.createOrganization)({
10743
10807
  ...requestConfig,
10744
10808
  fetcher: fetcher || defaultFetcher
10745
10809
  });
@@ -10747,7 +10811,7 @@ var createOrganization = async ({ fetcher, ...requestConfig }) => {
10747
10811
  var createOrganization_default = createOrganization;
10748
10812
 
10749
10813
  // src/components/presentation/CreateOrganization/CreateOrganization.tsx
10750
- var import_jsx_runtime85 = require("react/jsx-runtime");
10814
+ var import_jsx_runtime84 = require("react/jsx-runtime");
10751
10815
  var CreateOrganization = ({
10752
10816
  onCreateOrganization,
10753
10817
  fallback = null,
@@ -10763,7 +10827,7 @@ var CreateOrganization = ({
10763
10827
  return fallback;
10764
10828
  }
10765
10829
  if (!isSignedIn) {
10766
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_jsx_runtime85.Fragment, {});
10830
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, {});
10767
10831
  }
10768
10832
  const parentId = defaultParentId || currentOrganization?.id || "";
10769
10833
  const handleSubmit = async (payload) => {
@@ -10797,7 +10861,7 @@ var CreateOrganization = ({
10797
10861
  setLoading(false);
10798
10862
  }
10799
10863
  };
10800
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
10864
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
10801
10865
  BaseCreateOrganization,
10802
10866
  {
10803
10867
  onSubmit: handleSubmit,
@@ -10814,12 +10878,12 @@ var CreateOrganization = ({
10814
10878
  var import_react83 = require("react");
10815
10879
 
10816
10880
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
10817
- var import_browser65 = require("@asgardeo/browser");
10881
+ var import_browser66 = require("@asgardeo/browser");
10818
10882
  var import_css55 = require("@emotion/css");
10819
10883
  var import_react82 = require("react");
10820
10884
 
10821
10885
  // src/components/primitives/KeyValueInput/KeyValueInput.tsx
10822
- var import_browser64 = require("@asgardeo/browser");
10886
+ var import_browser65 = require("@asgardeo/browser");
10823
10887
  var import_css53 = require("@emotion/css");
10824
10888
  var import_react80 = require("react");
10825
10889
 
@@ -10979,7 +11043,7 @@ var useStyles25 = (theme, colorScheme, disabled, readOnly, hasError) => {
10979
11043
  var KeyValueInput_styles_default = useStyles25;
10980
11044
 
10981
11045
  // src/components/primitives/KeyValueInput/KeyValueInput.tsx
10982
- var import_jsx_runtime86 = require("react/jsx-runtime");
11046
+ var import_jsx_runtime85 = require("react/jsx-runtime");
10983
11047
  var KeyValueInput = ({
10984
11048
  className = "",
10985
11049
  disabled = false,
@@ -11054,105 +11118,105 @@ var KeyValueInput = ({
11054
11118
  );
11055
11119
  const canAddMore = !maxPairs || pairs.length < maxPairs;
11056
11120
  const isAddDisabled = disabled || readOnly || !canAddMore || !newKey.trim() || !newValue.trim();
11057
- 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: [
11058
- 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: [
11121
+ 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: [
11122
+ 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: [
11059
11123
  label,
11060
- required && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11124
+ required && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11061
11125
  "span",
11062
11126
  {
11063
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "required")), styles.requiredIndicator),
11127
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "required")), styles.requiredIndicator),
11064
11128
  children: " *"
11065
11129
  }
11066
11130
  )
11067
11131
  ] }),
11068
- /* @__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: [
11069
- 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)(
11132
+ /* @__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: [
11133
+ 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)(
11070
11134
  "div",
11071
11135
  {
11072
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "readonly-pair")), styles.readOnlyPair),
11136
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "readonly-pair")), styles.readOnlyPair),
11073
11137
  children: [
11074
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
11138
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
11075
11139
  "span",
11076
11140
  {
11077
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "readonly-key")), styles.readOnlyKey),
11141
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "readonly-key")), styles.readOnlyKey),
11078
11142
  children: [
11079
11143
  pair.key,
11080
11144
  ":"
11081
11145
  ]
11082
11146
  }
11083
11147
  ),
11084
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11148
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11085
11149
  "span",
11086
11150
  {
11087
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "readonly-value")), styles.readOnlyValue),
11151
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "readonly-value")), styles.readOnlyValue),
11088
11152
  children: pair.value
11089
11153
  }
11090
11154
  )
11091
11155
  ]
11092
11156
  },
11093
11157
  `${pair.key}-${index}`
11094
- )) : pairs.map((pair, index) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
11158
+ )) : pairs.map((pair, index) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
11095
11159
  "div",
11096
11160
  {
11097
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-row")), styles.pairRow),
11161
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-row")), styles.pairRow),
11098
11162
  children: [
11099
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11163
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11100
11164
  TextField_default,
11101
11165
  {
11102
11166
  placeholder: keyPlaceholder,
11103
11167
  value: pair.key,
11104
11168
  onChange: (e) => handleUpdatePair(index, "key", e.target.value),
11105
11169
  disabled: disabled || readOnly,
11106
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11170
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11107
11171
  "aria-label": `${keyLabel} ${index + 1}`
11108
11172
  }
11109
11173
  ),
11110
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11174
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11111
11175
  TextField_default,
11112
11176
  {
11113
11177
  placeholder: valuePlaceholder,
11114
11178
  value: pair.value,
11115
11179
  onChange: (e) => handleUpdatePair(index, "value", e.target.value),
11116
11180
  disabled: disabled || readOnly,
11117
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11181
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11118
11182
  "aria-label": `${valueLabel} ${index + 1}`
11119
11183
  }
11120
11184
  ),
11121
- !readOnly && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11185
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11122
11186
  "button",
11123
11187
  {
11124
11188
  type: "button",
11125
11189
  onClick: () => handleRemovePair(index),
11126
11190
  disabled,
11127
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "remove-button")), styles.removeButton),
11191
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "remove-button")), styles.removeButton),
11128
11192
  "aria-label": `${removeButtonText} ${pair.key}`,
11129
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(X_default, { width: 16, height: 16 })
11193
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(X_default, { width: 16, height: 16 })
11130
11194
  }
11131
11195
  )
11132
11196
  ]
11133
11197
  },
11134
11198
  `${pair.key}-${index}`
11135
11199
  )),
11136
- !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: [
11137
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11200
+ !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: [
11201
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11138
11202
  TextField_default,
11139
11203
  {
11140
11204
  placeholder: keyPlaceholder,
11141
11205
  value: newKey,
11142
11206
  onChange: (e) => setNewKey(e.target.value),
11143
11207
  disabled,
11144
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11208
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11145
11209
  "aria-label": "New key"
11146
11210
  }
11147
11211
  ),
11148
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11212
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11149
11213
  TextField_default,
11150
11214
  {
11151
11215
  placeholder: valuePlaceholder,
11152
11216
  value: newValue,
11153
11217
  onChange: (e) => setNewValue(e.target.value),
11154
11218
  disabled,
11155
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "pair-input")), styles.pairInput),
11219
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "pair-input")), styles.pairInput),
11156
11220
  "aria-label": "New value",
11157
11221
  onKeyPress: (e) => {
11158
11222
  if (e.key === "Enter" && !isAddDisabled) {
@@ -11161,21 +11225,21 @@ var KeyValueInput = ({
11161
11225
  }
11162
11226
  }
11163
11227
  ),
11164
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11228
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
11165
11229
  "button",
11166
11230
  {
11167
11231
  type: "button",
11168
11232
  onClick: handleAddPair,
11169
11233
  disabled: isAddDisabled,
11170
- className: (0, import_css53.cx)((0, import_browser64.withVendorCSSClassPrefix)((0, import_browser64.bem)("key-value-input", "add-button")), styles.addButton),
11234
+ className: (0, import_css53.cx)((0, import_browser65.withVendorCSSClassPrefix)((0, import_browser65.bem)("key-value-input", "add-button")), styles.addButton),
11171
11235
  "aria-label": "Add new key-value pair",
11172
- children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Plus_default, { width: 16, height: 16 })
11236
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Plus_default, { width: 16, height: 16 })
11173
11237
  }
11174
11238
  )
11175
11239
  ] })
11176
11240
  ] }),
11177
- (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 }),
11178
- 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: [
11241
+ (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 }),
11242
+ 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: [
11179
11243
  pairs.length,
11180
11244
  " of ",
11181
11245
  maxPairs,
@@ -11342,7 +11406,7 @@ var useStyles26 = (theme, colorScheme) => {
11342
11406
  var BaseOrganizationProfile_styles_default = useStyles26;
11343
11407
 
11344
11408
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
11345
- var import_jsx_runtime87 = require("react/jsx-runtime");
11409
+ var import_jsx_runtime86 = require("react/jsx-runtime");
11346
11410
  var BaseOrganizationProfile = ({
11347
11411
  fallback = null,
11348
11412
  className = "",
@@ -11379,13 +11443,13 @@ var BaseOrganizationProfile = ({
11379
11443
  key: "created",
11380
11444
  label: "Created Date",
11381
11445
  editable: false,
11382
- render: (value) => (0, import_browser65.formatDate)(value)
11446
+ render: (value) => (0, import_browser66.formatDate)(value)
11383
11447
  },
11384
11448
  {
11385
11449
  key: "lastModified",
11386
11450
  label: "Last Modified Date",
11387
11451
  editable: false,
11388
- render: (value) => (0, import_browser65.formatDate)(value)
11452
+ render: (value) => (0, import_browser66.formatDate)(value)
11389
11453
  }
11390
11454
  ]
11391
11455
  }) => {
@@ -11393,7 +11457,7 @@ var BaseOrganizationProfile = ({
11393
11457
  const styles = BaseOrganizationProfile_styles_default(theme, colorScheme);
11394
11458
  const [editedOrganization, setEditedOrganization] = (0, import_react82.useState)(organization);
11395
11459
  const [editingFields, setEditingFields] = (0, import_react82.useState)({});
11396
- const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11460
+ const PencilIcon = () => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11397
11461
  "svg",
11398
11462
  {
11399
11463
  width: "16",
@@ -11404,7 +11468,7 @@ var BaseOrganizationProfile = ({
11404
11468
  strokeWidth: "2",
11405
11469
  strokeLinecap: "round",
11406
11470
  strokeLinejoin: "round",
11407
- 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" })
11471
+ 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" })
11408
11472
  }
11409
11473
  );
11410
11474
  const toggleFieldEdit = (0, import_react82.useCallback)((fieldName) => {
@@ -11467,7 +11531,7 @@ var BaseOrganizationProfile = ({
11467
11531
  let fieldInput;
11468
11532
  if (key === "attributes") {
11469
11533
  const attributesValue = typeof fieldValue === "object" && fieldValue !== null ? fieldValue : {};
11470
- fieldInput = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11534
+ fieldInput = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11471
11535
  KeyValueInput_default,
11472
11536
  {
11473
11537
  value: attributesValue,
@@ -11505,26 +11569,26 @@ var BaseOrganizationProfile = ({
11505
11569
  }
11506
11570
  );
11507
11571
  } else {
11508
- fieldInput = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(TextField_default, { ...commonProps });
11572
+ fieldInput = /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TextField_default, { ...commonProps });
11509
11573
  }
11510
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
11511
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11512
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.value), children: fieldInput })
11574
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
11575
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11576
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.value), children: fieldInput })
11513
11577
  ] });
11514
11578
  }
11515
11579
  const hasValue = value !== void 0 && value !== null && value !== "";
11516
11580
  const isFieldEditable = editable && fieldEditable;
11517
11581
  let displayValue;
11518
11582
  if (hasValue) {
11519
- displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11583
+ displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11520
11584
  } else if (isFieldEditable) {
11521
11585
  displayValue = getFieldPlaceholder(key);
11522
11586
  } else {
11523
11587
  displayValue = "-";
11524
11588
  }
11525
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
11526
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11527
- /* @__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)(
11589
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
11590
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: (0, import_css55.cx)(styles.label), children: label }),
11591
+ /* @__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)(
11528
11592
  Button_default,
11529
11593
  {
11530
11594
  onClick: onStartEdit,
@@ -11547,8 +11611,8 @@ var BaseOrganizationProfile = ({
11547
11611
  if (!shouldShow) {
11548
11612
  return null;
11549
11613
  }
11550
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: (0, import_css55.cx)(styles.field), children: [
11551
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.fieldContent), children: renderField(
11614
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css55.cx)(styles.field), children: [
11615
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.fieldContent), children: renderField(
11552
11616
  field,
11553
11617
  isFieldEditing,
11554
11618
  (value) => {
@@ -11558,8 +11622,8 @@ var BaseOrganizationProfile = ({
11558
11622
  },
11559
11623
  () => toggleFieldEdit(field.key)
11560
11624
  ) }),
11561
- 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: [
11562
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11625
+ 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: [
11626
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11563
11627
  Button_default,
11564
11628
  {
11565
11629
  onClick: () => handleFieldSave(field.key),
@@ -11570,7 +11634,7 @@ var BaseOrganizationProfile = ({
11570
11634
  children: saveButtonText
11571
11635
  }
11572
11636
  ),
11573
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11637
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11574
11638
  Button_default,
11575
11639
  {
11576
11640
  onClick: () => handleFieldCancel(field.key),
@@ -11581,7 +11645,7 @@ var BaseOrganizationProfile = ({
11581
11645
  children: cancelButtonText
11582
11646
  }
11583
11647
  )
11584
- ] }) : hasValue && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11648
+ ] }) : hasValue && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
11585
11649
  Button_default,
11586
11650
  {
11587
11651
  onClick: () => toggleFieldEdit(field.key),
@@ -11590,7 +11654,7 @@ var BaseOrganizationProfile = ({
11590
11654
  size: "small",
11591
11655
  title: "Edit field",
11592
11656
  className: (0, import_css55.cx)(styles.editButton),
11593
- children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(PencilIcon, {})
11657
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(PencilIcon, {})
11594
11658
  }
11595
11659
  ) })
11596
11660
  ] }, field.key);
@@ -11598,23 +11662,23 @@ var BaseOrganizationProfile = ({
11598
11662
  if (!organization) {
11599
11663
  return fallback;
11600
11664
  }
11601
- const profileContent = /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Card_default, { className: (0, import_css55.cx)(styles.root, cardLayout && styles.card, className), children: [
11602
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: (0, import_css55.cx)(styles.header), children: [
11603
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11604
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: (0, import_css55.cx)(styles.orgInfo), children: [
11605
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h2", { className: (0, import_css55.cx)(styles.name), children: organization.name }),
11606
- organization.orgHandle && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("p", { className: (0, import_css55.cx)(styles.handle), children: [
11665
+ const profileContent = /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Card_default, { className: (0, import_css55.cx)(styles.root, cardLayout && styles.card, className), children: [
11666
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css55.cx)(styles.header), children: [
11667
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11668
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: (0, import_css55.cx)(styles.orgInfo), children: [
11669
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h2", { className: (0, import_css55.cx)(styles.name), children: organization.name }),
11670
+ organization.orgHandle && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("p", { className: (0, import_css55.cx)(styles.handle), children: [
11607
11671
  "@",
11608
11672
  organization.orgHandle
11609
11673
  ] })
11610
11674
  ] })
11611
11675
  ] }),
11612
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11676
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11613
11677
  ] });
11614
11678
  if (mode === "popup") {
11615
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Dialog_default.Content, { children: [
11616
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Dialog_default.Heading, { children: title }),
11617
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: (0, import_css55.cx)(styles.popup), children: profileContent })
11679
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Dialog_default.Content, { children: [
11680
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Dialog_default.Heading, { children: title }),
11681
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: (0, import_css55.cx)(styles.popup), children: profileContent })
11618
11682
  ] }) });
11619
11683
  }
11620
11684
  return profileContent;
@@ -11622,8 +11686,8 @@ var BaseOrganizationProfile = ({
11622
11686
  var BaseOrganizationProfile_default = BaseOrganizationProfile;
11623
11687
 
11624
11688
  // src/api/getOrganization.ts
11625
- var import_browser66 = require("@asgardeo/browser");
11626
- var httpClient7 = import_browser66.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser66.AsgardeoSPAClient.getInstance());
11689
+ var import_browser67 = require("@asgardeo/browser");
11690
+ var httpClient7 = import_browser67.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser67.AsgardeoSPAClient.getInstance());
11627
11691
  var getOrganization = async ({ fetcher, ...requestConfig }) => {
11628
11692
  const defaultFetcher = async (url, config) => {
11629
11693
  const response = await httpClient7({
@@ -11639,7 +11703,7 @@ var getOrganization = async ({ fetcher, ...requestConfig }) => {
11639
11703
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
11640
11704
  };
11641
11705
  };
11642
- return (0, import_browser66.getOrganization)({
11706
+ return (0, import_browser67.getOrganization)({
11643
11707
  ...requestConfig,
11644
11708
  fetcher: fetcher || defaultFetcher
11645
11709
  });
@@ -11647,8 +11711,8 @@ var getOrganization = async ({ fetcher, ...requestConfig }) => {
11647
11711
  var getOrganization_default = getOrganization;
11648
11712
 
11649
11713
  // src/api/updateOrganization.ts
11650
- var import_browser67 = require("@asgardeo/browser");
11651
- var httpClient8 = import_browser67.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser67.AsgardeoSPAClient.getInstance());
11714
+ var import_browser68 = require("@asgardeo/browser");
11715
+ var httpClient8 = import_browser68.AsgardeoSPAClient.getInstance().httpRequest.bind(import_browser68.AsgardeoSPAClient.getInstance());
11652
11716
  var updateOrganization = async ({
11653
11717
  fetcher,
11654
11718
  ...requestConfig
@@ -11668,7 +11732,7 @@ var updateOrganization = async ({
11668
11732
  text: () => Promise.resolve(typeof response.data === "string" ? response.data : JSON.stringify(response.data))
11669
11733
  };
11670
11734
  };
11671
- return (0, import_browser67.updateOrganization)({
11735
+ return (0, import_browser68.updateOrganization)({
11672
11736
  ...requestConfig,
11673
11737
  fetcher: fetcher || defaultFetcher
11674
11738
  });
@@ -11676,7 +11740,7 @@ var updateOrganization = async ({
11676
11740
  var updateOrganization_default = updateOrganization;
11677
11741
 
11678
11742
  // src/components/presentation/OrganizationProfile/OrganizationProfile.tsx
11679
- var import_jsx_runtime88 = require("react/jsx-runtime");
11743
+ var import_jsx_runtime87 = require("react/jsx-runtime");
11680
11744
  var OrganizationProfile = ({
11681
11745
  organizationId,
11682
11746
  mode = "default",
@@ -11684,8 +11748,8 @@ var OrganizationProfile = ({
11684
11748
  onOpenChange,
11685
11749
  onUpdate,
11686
11750
  popupTitle,
11687
- loadingFallback = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: "Loading organization..." }),
11688
- errorFallback = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: "Failed to load organization data" }),
11751
+ loadingFallback = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: "Loading organization..." }),
11752
+ errorFallback = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: "Failed to load organization data" }),
11689
11753
  ...rest
11690
11754
  }) => {
11691
11755
  const { baseUrl } = useAsgardeo_default();
@@ -11721,7 +11785,7 @@ var OrganizationProfile = ({
11721
11785
  const handleOrganizationUpdate = async (payload) => {
11722
11786
  if (!baseUrl || !organizationId) return;
11723
11787
  try {
11724
- const operations = (0, import_browser67.createPatchOperations)(payload);
11788
+ const operations = (0, import_browser68.createPatchOperations)(payload);
11725
11789
  await updateOrganization_default({
11726
11790
  baseUrl,
11727
11791
  organizationId,
@@ -11736,7 +11800,7 @@ var OrganizationProfile = ({
11736
11800
  throw err;
11737
11801
  }
11738
11802
  };
11739
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
11803
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
11740
11804
  BaseOrganizationProfile_default,
11741
11805
  {
11742
11806
  organization,
@@ -11986,21 +12050,21 @@ var useStyles27 = (theme, colorScheme) => {
11986
12050
  var BaseOrganizationList_styles_default = useStyles27;
11987
12051
 
11988
12052
  // src/components/presentation/OrganizationList/BaseOrganizationList.tsx
11989
- var import_jsx_runtime89 = require("react/jsx-runtime");
12053
+ var import_jsx_runtime88 = require("react/jsx-runtime");
11990
12054
  var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect, showStatus) => {
11991
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationItem), children: [
11992
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationContent), children: [
11993
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
11994
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationInfo), children: [
11995
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Typography_default, { variant: "h6", className: (0, import_css57.cx)(styles.organizationName), children: organization.name }),
11996
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationHandle), children: [
12055
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationItem), children: [
12056
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationContent), children: [
12057
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
12058
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.organizationInfo), children: [
12059
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typography_default, { variant: "h6", className: (0, import_css57.cx)(styles.organizationName), children: organization.name }),
12060
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationHandle), children: [
11997
12061
  "@",
11998
12062
  organization.orgHandle
11999
12063
  ] }),
12000
- showStatus && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationStatus), children: [
12064
+ showStatus && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Typography_default, { variant: "body2", color: "textSecondary", className: (0, import_css57.cx)(styles.organizationStatus), children: [
12001
12065
  t("organization.switcher.status.label"),
12002
12066
  " ",
12003
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
12067
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
12004
12068
  "span",
12005
12069
  {
12006
12070
  className: (0, import_css57.cx)(
@@ -12013,7 +12077,7 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
12013
12077
  ] })
12014
12078
  ] })
12015
12079
  ] }),
12016
- organization.canSwitch && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.organizationActions), children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
12080
+ organization.canSwitch && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.organizationActions), children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
12017
12081
  Button_default,
12018
12082
  {
12019
12083
  onClick: (e) => {
@@ -12027,17 +12091,17 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
12027
12091
  ) })
12028
12092
  ] }, organization.id);
12029
12093
  };
12030
- var defaultRenderLoading = (t, styles) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.loadingContainer), children: [
12031
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner_default, { size: "medium" }),
12032
- /* @__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") })
12094
+ var defaultRenderLoading = (t, styles) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.loadingContainer), children: [
12095
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Spinner_default, { size: "medium" }),
12096
+ /* @__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") })
12033
12097
  ] });
12034
- 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: [
12035
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("strong", { children: t("organization.switcher.error.prefix") }),
12098
+ 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: [
12099
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("strong", { children: t("organization.switcher.error.prefix") }),
12036
12100
  " ",
12037
12101
  error
12038
12102
  ] }) });
12039
- 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") });
12040
- 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") }) });
12103
+ 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") });
12104
+ 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") }) });
12041
12105
  var BaseOrganizationList = ({
12042
12106
  className = "",
12043
12107
  allOrganizations,
@@ -12080,53 +12144,53 @@ var BaseOrganizationList = ({
12080
12144
  const renderLoadMoreWithStyles = renderLoadMore || ((onLoadMore, isLoading2) => defaultRenderLoadMore(onLoadMore, isLoading2, t, styles));
12081
12145
  const renderOrganizationWithStyles = renderOrganization || ((org) => defaultRenderOrganization(org, styles, t, onOrganizationSelect, showStatus));
12082
12146
  if (isLoading && organizationsWithSwitchAccess?.length === 0) {
12083
- const loadingContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderLoadingWithStyles() });
12147
+ const loadingContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderLoadingWithStyles() });
12084
12148
  if (mode === "popup") {
12085
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12086
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12087
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: loadingContent })
12149
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12150
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12151
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: loadingContent })
12088
12152
  ] }) });
12089
12153
  }
12090
12154
  return loadingContent;
12091
12155
  }
12092
12156
  if (error && organizationsWithSwitchAccess?.length === 0) {
12093
- const errorContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderErrorWithStyles(error) });
12157
+ const errorContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderErrorWithStyles(error) });
12094
12158
  if (mode === "popup") {
12095
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12096
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12097
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: errorContent })
12159
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12160
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12161
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: errorContent })
12098
12162
  ] }) });
12099
12163
  }
12100
12164
  return errorContent;
12101
12165
  }
12102
12166
  if (!isLoading && organizationsWithSwitchAccess?.length === 0) {
12103
- const emptyContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderEmptyWithStyles() });
12167
+ const emptyContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: renderEmptyWithStyles() });
12104
12168
  if (mode === "popup") {
12105
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12106
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12107
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: emptyContent })
12169
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12170
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12171
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: emptyContent })
12108
12172
  ] }) });
12109
12173
  }
12110
12174
  return emptyContent;
12111
12175
  }
12112
- const organizationListContent = /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: [
12113
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: (0, import_css57.cx)(styles.header), children: [
12114
- /* @__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", {
12176
+ const organizationListContent = /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.root, className), style, children: [
12177
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: (0, import_css57.cx)(styles.header), children: [
12178
+ /* @__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", {
12115
12179
  showing: organizationsWithSwitchAccess?.length,
12116
12180
  total: allOrganizations?.organizations?.length || 0
12117
12181
  }) }) }),
12118
- 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") })
12182
+ 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") })
12119
12183
  ] }),
12120
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12184
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12121
12185
  (organization, index) => renderOrganizationWithStyles(organization, index)
12122
12186
  ) }),
12123
- error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.errorMargin), children: renderErrorWithStyles(error) }),
12124
- hasMore && fetchMore && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12187
+ error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.errorMargin), children: renderErrorWithStyles(error) }),
12188
+ hasMore && fetchMore && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12125
12189
  ] });
12126
12190
  if (mode === "popup") {
12127
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(Dialog_default.Content, { children: [
12128
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Dialog_default.Heading, { children: title }),
12129
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: organizationListContent })
12191
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Dialog_default.Content, { children: [
12192
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Dialog_default.Heading, { children: title }),
12193
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: (0, import_css57.cx)(styles.popupContent), children: organizationListContent })
12130
12194
  ] }) });
12131
12195
  }
12132
12196
  return organizationListContent;
@@ -12203,7 +12267,7 @@ var useStyles28 = (theme, colorScheme) => {
12203
12267
  var OrganizationList_styles_default = useStyles28;
12204
12268
 
12205
12269
  // src/components/presentation/OrganizationList/OrganizationList.tsx
12206
- var import_jsx_runtime90 = require("react/jsx-runtime");
12270
+ var import_jsx_runtime89 = require("react/jsx-runtime");
12207
12271
  var OrganizationList = ({
12208
12272
  autoFetch = true,
12209
12273
  filter = "",
@@ -12225,7 +12289,7 @@ var OrganizationList = ({
12225
12289
  setAllOrganizations(await getAllOrganizations2());
12226
12290
  })();
12227
12291
  }, []);
12228
- 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)(
12292
+ 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)(
12229
12293
  BaseOrganizationList_default,
12230
12294
  {
12231
12295
  allOrganizations,
@@ -12240,8 +12304,8 @@ var OrganizationList = ({
12240
12304
  var OrganizationList_default = OrganizationList;
12241
12305
 
12242
12306
  // src/components/primitives/Icons/BuildingAlt.tsx
12243
- var import_jsx_runtime91 = require("react/jsx-runtime");
12244
- var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
12307
+ var import_jsx_runtime90 = require("react/jsx-runtime");
12308
+ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
12245
12309
  "svg",
12246
12310
  {
12247
12311
  width,
@@ -12254,13 +12318,13 @@ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @_
12254
12318
  strokeLinecap: "round",
12255
12319
  strokeLinejoin: "round",
12256
12320
  children: [
12257
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12258
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12259
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12260
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 6h4" }),
12261
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 10h4" }),
12262
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 14h4" }),
12263
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M10 18h4" })
12321
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12322
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12323
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12324
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 6h4" }),
12325
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 10h4" }),
12326
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 14h4" }),
12327
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { d: "M10 18h4" })
12264
12328
  ]
12265
12329
  }
12266
12330
  );
@@ -12268,7 +12332,7 @@ BuildingAlt.displayName = "BuildingAlt";
12268
12332
  var BuildingAlt_default = BuildingAlt;
12269
12333
 
12270
12334
  // src/components/presentation/OrganizationSwitcher/OrganizationSwitcher.tsx
12271
- var import_jsx_runtime92 = require("react/jsx-runtime");
12335
+ var import_jsx_runtime91 = require("react/jsx-runtime");
12272
12336
  var OrganizationSwitcher = ({
12273
12337
  currentOrganization: propCurrentOrganization,
12274
12338
  fallback = null,
@@ -12292,7 +12356,7 @@ var OrganizationSwitcher = ({
12292
12356
  return fallback;
12293
12357
  }
12294
12358
  if (!isSignedIn) {
12295
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, {});
12359
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_jsx_runtime91.Fragment, {});
12296
12360
  }
12297
12361
  const organizations = propOrganizations || contextOrganizations || [];
12298
12362
  const currentOrganization = propCurrentOrganization || contextCurrentOrganization;
@@ -12306,19 +12370,19 @@ var OrganizationSwitcher = ({
12306
12370
  const defaultMenuItems = [];
12307
12371
  if (currentOrganization) {
12308
12372
  defaultMenuItems.push({
12309
- icon: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(BuildingAlt_default, {}),
12373
+ icon: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(BuildingAlt_default, {}),
12310
12374
  label: t("organization.switcher.manage.organizations"),
12311
12375
  onClick: handleManageOrganizations
12312
12376
  });
12313
12377
  }
12314
12378
  defaultMenuItems.push({
12315
- 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" }) }),
12379
+ 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" }) }),
12316
12380
  label: t("organization.switcher.create.organization"),
12317
12381
  onClick: () => setIsCreateOrgOpen(true)
12318
12382
  });
12319
12383
  const menuItems = props.menuItems ? [...defaultMenuItems, ...props.menuItems] : defaultMenuItems;
12320
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
12321
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12384
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
12385
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12322
12386
  BaseOrganizationSwitcher_default,
12323
12387
  {
12324
12388
  organizations,
@@ -12331,7 +12395,7 @@ var OrganizationSwitcher = ({
12331
12395
  ...props
12332
12396
  }
12333
12397
  ),
12334
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12398
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12335
12399
  CreateOrganization,
12336
12400
  {
12337
12401
  mode: "popup",
@@ -12345,7 +12409,7 @@ var OrganizationSwitcher = ({
12345
12409
  }
12346
12410
  }
12347
12411
  ),
12348
- currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12412
+ currentOrganization && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12349
12413
  OrganizationProfile_default,
12350
12414
  {
12351
12415
  organizationId: currentOrganization.id,
@@ -12353,11 +12417,11 @@ var OrganizationSwitcher = ({
12353
12417
  open: isProfileOpen,
12354
12418
  onOpenChange: setIsProfileOpen,
12355
12419
  cardLayout: true,
12356
- loadingFallback: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { children: t("organization.profile.loading") }),
12357
- errorFallback: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { children: t("organization.profile.error") })
12420
+ loadingFallback: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { children: t("organization.profile.loading") }),
12421
+ errorFallback: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { children: t("organization.profile.error") })
12358
12422
  }
12359
12423
  ),
12360
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
12424
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
12361
12425
  OrganizationList_default,
12362
12426
  {
12363
12427
  mode: "popup",
@@ -12377,5 +12441,5 @@ var OrganizationSwitcher = ({
12377
12441
  var OrganizationSwitcher_default = OrganizationSwitcher;
12378
12442
 
12379
12443
  // src/index.ts
12380
- var import_browser68 = require("@asgardeo/browser");
12444
+ var import_browser69 = require("@asgardeo/browser");
12381
12445
  //# sourceMappingURL=index.js.map