@asgardeo/react 0.13.3 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var AsgardeoContext = createContext({
21
21
  baseUrl: void 0,
22
22
  clearSession: () => {
23
23
  },
24
+ clientId: void 0,
24
25
  exchangeToken: null,
25
26
  getAccessToken: null,
26
27
  getDecodedIdToken: null,
@@ -737,6 +738,8 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
737
738
  async switchOrganization(organization) {
738
739
  return this.withLoading(async () => {
739
740
  try {
741
+ const configData = await this.asgardeo.getConfigData();
742
+ const sourceInstanceId = configData?.organizationChain?.sourceInstanceId;
740
743
  if (!organization.id) {
741
744
  throw new AsgardeoRuntimeError(
742
745
  "Organization ID is required for switching organizations",
@@ -756,7 +759,7 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
756
759
  },
757
760
  id: "organization-switch",
758
761
  returnsSession: true,
759
- signInRequired: true
762
+ signInRequired: sourceInstanceId === void 0
760
763
  };
761
764
  return await this.asgardeo.exchangeToken(exchangeConfig, () => {
762
765
  });
@@ -1989,6 +1992,7 @@ var AsgardeoProvider = ({
1989
1992
  signInOptions,
1990
1993
  syncSession,
1991
1994
  instanceId = 0,
1995
+ organizationChain,
1992
1996
  ...rest
1993
1997
  }) => {
1994
1998
  const reRenderCheckRef = useRef2(false);
@@ -2008,6 +2012,7 @@ var AsgardeoProvider = ({
2008
2012
  applicationId,
2009
2013
  baseUrl,
2010
2014
  clientId,
2015
+ organizationChain,
2011
2016
  organizationHandle,
2012
2017
  scopes,
2013
2018
  signInOptions,
@@ -2357,6 +2362,7 @@ var AsgardeoProvider = ({
2357
2362
  applicationId,
2358
2363
  baseUrl,
2359
2364
  clearSession,
2365
+ clientId,
2360
2366
  exchangeToken,
2361
2367
  getAccessToken,
2362
2368
  getDecodedIdToken,
@@ -2370,6 +2376,7 @@ var AsgardeoProvider = ({
2370
2376
  isLoading: isLoadingSync,
2371
2377
  isSignedIn: isSignedInSync,
2372
2378
  organization: currentOrganization,
2379
+ organizationChain,
2373
2380
  organizationHandle: config?.organizationHandle,
2374
2381
  platform: config?.platform,
2375
2382
  reInitialize,
@@ -2391,6 +2398,7 @@ var AsgardeoProvider = ({
2391
2398
  signUpUrl,
2392
2399
  afterSignInUrl,
2393
2400
  baseUrl,
2401
+ clientId,
2394
2402
  isInitializedSync,
2395
2403
  isLoadingSync,
2396
2404
  isSignedInSync,
@@ -2411,7 +2419,8 @@ var AsgardeoProvider = ({
2411
2419
  signUp,
2412
2420
  clearSession,
2413
2421
  reInitialize,
2414
- instanceId
2422
+ instanceId,
2423
+ organizationChain
2415
2424
  ]
2416
2425
  );
2417
2426
  return /* @__PURE__ */ jsx10(AsgardeoContext_default.Provider, { value, children: /* @__PURE__ */ jsx10(I18nProvider_default, { preferences: preferences?.i18n, children: /* @__PURE__ */ jsx10(FlowMetaProvider_default, { enabled: preferences?.resolveFromMeta !== false, children: /* @__PURE__ */ jsx10(
@@ -3574,6 +3583,96 @@ var Loading = ({ children, fallback = null }) => {
3574
3583
  Loading.displayName = "Loading";
3575
3584
  var Loading_default = Loading;
3576
3585
 
3586
+ // src/components/control/OrganizationContext/OrganizationContextController.tsx
3587
+ import { useEffect as useEffect7, useRef as useRef3 } from "react";
3588
+ import { Fragment as Fragment7, jsx as jsx22 } from "react/jsx-runtime";
3589
+ var OrganizationContextController = ({
3590
+ targetOrganizationId,
3591
+ isSourceSignedIn,
3592
+ children
3593
+ }) => {
3594
+ const { isInitialized, isSignedIn, switchOrganization, isLoading } = useAsgardeo_default();
3595
+ const hasAuthenticatedRef = useRef3(false);
3596
+ const isAuthenticatingRef = useRef3(false);
3597
+ useEffect7(() => {
3598
+ const performOrganizationSwitch = async () => {
3599
+ if (hasAuthenticatedRef.current || isAuthenticatingRef.current) {
3600
+ return;
3601
+ }
3602
+ if (!isInitialized || isLoading) {
3603
+ return;
3604
+ }
3605
+ if (isSignedIn) {
3606
+ hasAuthenticatedRef.current = true;
3607
+ return;
3608
+ }
3609
+ if (!isSourceSignedIn) {
3610
+ return;
3611
+ }
3612
+ try {
3613
+ isAuthenticatingRef.current = true;
3614
+ hasAuthenticatedRef.current = true;
3615
+ const targetOrganization = {
3616
+ id: targetOrganizationId,
3617
+ name: "",
3618
+ // Name will be populated after authentication
3619
+ orgHandle: ""
3620
+ // Will be populated after authentication
3621
+ };
3622
+ await switchOrganization(targetOrganization);
3623
+ } catch (error) {
3624
+ console.error("Linked organization authentication failed:", error);
3625
+ hasAuthenticatedRef.current = false;
3626
+ } finally {
3627
+ isAuthenticatingRef.current = false;
3628
+ }
3629
+ };
3630
+ performOrganizationSwitch();
3631
+ }, [isInitialized, isSignedIn, isLoading, isSourceSignedIn, targetOrganizationId, switchOrganization]);
3632
+ return /* @__PURE__ */ jsx22(Fragment7, { children });
3633
+ };
3634
+ var OrganizationContextController_default = OrganizationContextController;
3635
+
3636
+ // src/components/control/OrganizationContext/OrganizationContext.tsx
3637
+ import { jsx as jsx23 } from "react/jsx-runtime";
3638
+ var OrganizationContext2 = ({
3639
+ instanceId,
3640
+ baseUrl,
3641
+ clientId,
3642
+ afterSignInUrl,
3643
+ afterSignOutUrl,
3644
+ targetOrganizationId,
3645
+ sourceInstanceId,
3646
+ scopes,
3647
+ children,
3648
+ ...rest
3649
+ }) => {
3650
+ const {
3651
+ isSignedIn: isSourceSignedIn,
3652
+ instanceId: sourceInstanceIdFromContext,
3653
+ baseUrl: sourceBaseUrl,
3654
+ clientId: sourceClientId
3655
+ } = useAsgardeo_default();
3656
+ return /* @__PURE__ */ jsx23(
3657
+ AsgardeoProvider_default,
3658
+ {
3659
+ instanceId,
3660
+ baseUrl: baseUrl || sourceBaseUrl,
3661
+ clientId: clientId || sourceClientId,
3662
+ afterSignInUrl,
3663
+ afterSignOutUrl,
3664
+ scopes,
3665
+ organizationChain: {
3666
+ sourceInstanceId: sourceInstanceId || sourceInstanceIdFromContext,
3667
+ targetOrganizationId
3668
+ },
3669
+ ...rest,
3670
+ children: /* @__PURE__ */ jsx23(OrganizationContextController_default, { targetOrganizationId, isSourceSignedIn, children })
3671
+ }
3672
+ );
3673
+ };
3674
+ var OrganizationContext_default2 = OrganizationContext2;
3675
+
3577
3676
  // src/components/presentation/auth/SignIn/BaseSignIn.tsx
3578
3677
  import { Platform as Platform4 } from "@asgardeo/browser";
3579
3678
 
@@ -3589,7 +3688,7 @@ import {
3589
3688
  createPackageComponentLogger as createPackageComponentLogger4
3590
3689
  } from "@asgardeo/browser";
3591
3690
  import { cx as cx19 } from "@emotion/css";
3592
- import { useEffect as useEffect13, useState as useState15, useCallback as useCallback10, useRef as useRef4 } from "react";
3691
+ import { useEffect as useEffect14, useState as useState15, useCallback as useCallback10, useRef as useRef5 } from "react";
3593
3692
 
3594
3693
  // src/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.tsx
3595
3694
  import {
@@ -3599,7 +3698,7 @@ import {
3599
3698
 
3600
3699
  // src/components/presentation/auth/SignIn/v1/options/EmailOtp.tsx
3601
3700
  import { EmbeddedSignInFlowAuthenticatorParamType, FieldType as FieldType2 } from "@asgardeo/browser";
3602
- import { useEffect as useEffect8 } from "react";
3701
+ import { useEffect as useEffect9 } from "react";
3603
3702
 
3604
3703
  // src/components/factories/FieldFactory.tsx
3605
3704
  import { FieldType } from "@asgardeo/browser";
@@ -3965,7 +4064,7 @@ var useStyles5 = (theme, colorScheme, variant, align, color, noWrap, inline, gut
3965
4064
  var Typography_styles_default = useStyles5;
3966
4065
 
3967
4066
  // src/components/primitives/Typography/Typography.tsx
3968
- import { jsx as jsx22 } from "react/jsx-runtime";
4067
+ import { jsx as jsx24 } from "react/jsx-runtime";
3969
4068
  var variantMapping = {
3970
4069
  body1: "p",
3971
4070
  body2: "p",
@@ -4054,12 +4153,12 @@ var Typography = ({
4054
4153
  gutterBottom && styles["typographyGutterBottom"],
4055
4154
  className
4056
4155
  );
4057
- return /* @__PURE__ */ jsx22(Component, { className: typographyClassName, style, ...rest, children });
4156
+ return /* @__PURE__ */ jsx24(Component, { className: typographyClassName, style, ...rest, children });
4058
4157
  };
4059
4158
  var Typography_default = Typography;
4060
4159
 
4061
4160
  // src/components/primitives/FormControl/FormControl.tsx
4062
- import { jsx as jsx23, jsxs as jsxs2 } from "react/jsx-runtime";
4161
+ import { jsx as jsx25, jsxs as jsxs2 } from "react/jsx-runtime";
4063
4162
  var FormControl = ({
4064
4163
  children,
4065
4164
  error,
@@ -4072,7 +4171,7 @@ var FormControl = ({
4072
4171
  const styles = FormControl_styles_default(theme, colorScheme, helperTextAlign, helperTextMarginLeft, !!error);
4073
4172
  return /* @__PURE__ */ jsxs2("div", { className: cx7(withVendorCSSClassPrefix7(bem4("form-control")), styles["formControl"], className), children: [
4074
4173
  children,
4075
- (error || helperText) && /* @__PURE__ */ jsx23(
4174
+ (error || helperText) && /* @__PURE__ */ jsx25(
4076
4175
  Typography_default,
4077
4176
  {
4078
4177
  variant: "caption",
@@ -4131,7 +4230,7 @@ var useStyles6 = (theme, colorScheme, variant, error, marginBottom) => useMemo14
4131
4230
  var InputLabel_styles_default = useStyles6;
4132
4231
 
4133
4232
  // src/components/primitives/InputLabel/InputLabel.tsx
4134
- import { jsx as jsx24, jsxs as jsxs3 } from "react/jsx-runtime";
4233
+ import { jsx as jsx26, jsxs as jsxs3 } from "react/jsx-runtime";
4135
4234
  var InputLabel = ({
4136
4235
  children,
4137
4236
  required = false,
@@ -4162,7 +4261,7 @@ var InputLabel = ({
4162
4261
  ...rest,
4163
4262
  children: [
4164
4263
  children,
4165
- required && /* @__PURE__ */ jsx24("span", { className: cx8(withVendorCSSClassPrefix8(bem5("input-label", "required")), styles["requiredIndicator"]), children: " *" })
4264
+ required && /* @__PURE__ */ jsx26("span", { className: cx8(withVendorCSSClassPrefix8(bem5("input-label", "required")), styles["requiredIndicator"]), children: " *" })
4166
4265
  ]
4167
4266
  }
4168
4267
  );
@@ -4170,7 +4269,7 @@ var InputLabel = ({
4170
4269
  var InputLabel_default = InputLabel;
4171
4270
 
4172
4271
  // src/components/primitives/Checkbox/Checkbox.tsx
4173
- import { jsx as jsx25, jsxs as jsxs4 } from "react/jsx-runtime";
4272
+ import { jsx as jsx27, jsxs as jsxs4 } from "react/jsx-runtime";
4174
4273
  var Checkbox = ({
4175
4274
  label,
4176
4275
  error,
@@ -4183,7 +4282,7 @@ var Checkbox = ({
4183
4282
  const { theme, colorScheme } = useTheme_default();
4184
4283
  const hasError = !!error;
4185
4284
  const styles = Checkbox_styles_default(theme, colorScheme, hasError, !!required);
4186
- return /* @__PURE__ */ jsx25(
4285
+ return /* @__PURE__ */ jsx27(
4187
4286
  FormControl_default,
4188
4287
  {
4189
4288
  error,
@@ -4191,7 +4290,7 @@ var Checkbox = ({
4191
4290
  className: cx9(withVendorCSSClassPrefix9(bem6("checkbox")), className),
4192
4291
  helperTextMarginLeft: `calc(${theme.vars.spacing.unit} * 3.5)`,
4193
4292
  children: /* @__PURE__ */ jsxs4("div", { style, className: cx9(withVendorCSSClassPrefix9(bem6("checkbox", "container")), styles["container"]), children: [
4194
- /* @__PURE__ */ jsx25(
4293
+ /* @__PURE__ */ jsx27(
4195
4294
  "input",
4196
4295
  {
4197
4296
  type: "checkbox",
@@ -4203,7 +4302,7 @@ var Checkbox = ({
4203
4302
  ...rest
4204
4303
  }
4205
4304
  ),
4206
- label && /* @__PURE__ */ jsx25(
4305
+ label && /* @__PURE__ */ jsx27(
4207
4306
  InputLabel_default,
4208
4307
  {
4209
4308
  required,
@@ -4291,7 +4390,7 @@ var useStyles7 = (theme, colorScheme, hasError, disabled) => useMemo15(() => {
4291
4390
  var DatePicker_styles_default = useStyles7;
4292
4391
 
4293
4392
  // src/components/primitives/DatePicker/DatePicker.tsx
4294
- import { jsx as jsx26, jsxs as jsxs5 } from "react/jsx-runtime";
4393
+ import { jsx as jsx28, jsxs as jsxs5 } from "react/jsx-runtime";
4295
4394
  var DatePicker = ({
4296
4395
  label,
4297
4396
  error,
@@ -4314,7 +4413,7 @@ var DatePicker = ({
4314
4413
  className: cx10(withVendorCSSClassPrefix10(bem7("date-picker")), className),
4315
4414
  style,
4316
4415
  children: [
4317
- label && /* @__PURE__ */ jsx26(
4416
+ label && /* @__PURE__ */ jsx28(
4318
4417
  InputLabel_default,
4319
4418
  {
4320
4419
  required,
@@ -4323,7 +4422,7 @@ var DatePicker = ({
4323
4422
  children: label
4324
4423
  }
4325
4424
  ),
4326
- /* @__PURE__ */ jsx26(
4425
+ /* @__PURE__ */ jsx28(
4327
4426
  "input",
4328
4427
  {
4329
4428
  type: "date",
@@ -4355,8 +4454,8 @@ var DatePicker_default = DatePicker;
4355
4454
  import { withVendorCSSClassPrefix as withVendorCSSClassPrefix11, bem as bem8 } from "@asgardeo/browser";
4356
4455
  import { cx as cx11 } from "@emotion/css";
4357
4456
  import {
4358
- useRef as useRef3,
4359
- useEffect as useEffect7,
4457
+ useRef as useRef4,
4458
+ useEffect as useEffect8,
4360
4459
  useState as useState13
4361
4460
  } from "react";
4362
4461
 
@@ -4423,7 +4522,7 @@ var useStyles8 = (theme, colorScheme, disabled, hasError, length) => useMemo16((
4423
4522
  var OtpField_styles_default = useStyles8;
4424
4523
 
4425
4524
  // src/components/primitives/OtpField/OtpField.tsx
4426
- import { jsx as jsx27, jsxs as jsxs6 } from "react/jsx-runtime";
4525
+ import { jsx as jsx29, jsxs as jsxs6 } from "react/jsx-runtime";
4427
4526
  var OtpField = ({
4428
4527
  label,
4429
4528
  error,
@@ -4444,11 +4543,11 @@ var OtpField = ({
4444
4543
  const { theme, colorScheme } = useTheme_default();
4445
4544
  const styles = OtpField_styles_default(theme, colorScheme, !!disabled, !!error, length);
4446
4545
  const [otp, setOtp] = useState13(Array(length).fill(""));
4447
- const inputRefs = useRef3([]);
4448
- useEffect7(() => {
4546
+ const inputRefs = useRef4([]);
4547
+ useEffect8(() => {
4449
4548
  inputRefs.current = inputRefs.current.slice(0, length);
4450
4549
  }, [length]);
4451
- useEffect7(() => {
4550
+ useEffect8(() => {
4452
4551
  if (value) {
4453
4552
  const newOtp = value.split("").slice(0, length);
4454
4553
  while (newOtp.length < length) {
@@ -4459,7 +4558,7 @@ var OtpField = ({
4459
4558
  setOtp(Array(length).fill(""));
4460
4559
  }
4461
4560
  }, [value, length]);
4462
- useEffect7(() => {
4561
+ useEffect8(() => {
4463
4562
  if (autoFocus && inputRefs.current[0]) {
4464
4563
  inputRefs.current[0].focus();
4465
4564
  }
@@ -4537,8 +4636,8 @@ var OtpField = ({
4537
4636
  helperTextAlign: "center",
4538
4637
  style,
4539
4638
  children: [
4540
- label && /* @__PURE__ */ jsx27(InputLabel_default, { required, error: !!error, children: label }),
4541
- /* @__PURE__ */ jsx27("div", { className: cx11(withVendorCSSClassPrefix11(bem8("otp-field", "input-container")), styles["inputContainer"]), children: Array.from({ length }, (_, index) => /* @__PURE__ */ jsx27(
4639
+ label && /* @__PURE__ */ jsx29(InputLabel_default, { required, error: !!error, children: label }),
4640
+ /* @__PURE__ */ jsx29("div", { className: cx11(withVendorCSSClassPrefix11(bem8("otp-field", "input-container")), styles["inputContainer"]), children: Array.from({ length }, (_, index) => /* @__PURE__ */ jsx29(
4542
4641
  "input",
4543
4642
  {
4544
4643
  ref: (el) => {
@@ -4606,7 +4705,7 @@ var useStyles9 = (theme, colorScheme, showPassword, disabled, hasError) => useMe
4606
4705
  var PasswordField_styles_default = useStyles9;
4607
4706
 
4608
4707
  // src/components/primitives/Icons/Eye.tsx
4609
- import { jsx as jsx28, jsxs as jsxs7 } from "react/jsx-runtime";
4708
+ import { jsx as jsx30, jsxs as jsxs7 } from "react/jsx-runtime";
4610
4709
  var Eye = (props) => /* @__PURE__ */ jsxs7(
4611
4710
  "svg",
4612
4711
  {
@@ -4621,15 +4720,15 @@ var Eye = (props) => /* @__PURE__ */ jsxs7(
4621
4720
  strokeLinejoin: "round",
4622
4721
  ...props,
4623
4722
  children: [
4624
- /* @__PURE__ */ jsx28("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }),
4625
- /* @__PURE__ */ jsx28("circle", { cx: "12", cy: "12", r: "3" })
4723
+ /* @__PURE__ */ jsx30("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }),
4724
+ /* @__PURE__ */ jsx30("circle", { cx: "12", cy: "12", r: "3" })
4626
4725
  ]
4627
4726
  }
4628
4727
  );
4629
4728
  var Eye_default = Eye;
4630
4729
 
4631
4730
  // src/components/primitives/Icons/EyeOff.tsx
4632
- import { jsx as jsx29, jsxs as jsxs8 } from "react/jsx-runtime";
4731
+ import { jsx as jsx31, jsxs as jsxs8 } from "react/jsx-runtime";
4633
4732
  var EyeOff = (props) => /* @__PURE__ */ jsxs8(
4634
4733
  "svg",
4635
4734
  {
@@ -4644,10 +4743,10 @@ var EyeOff = (props) => /* @__PURE__ */ jsxs8(
4644
4743
  strokeLinejoin: "round",
4645
4744
  ...props,
4646
4745
  children: [
4647
- /* @__PURE__ */ jsx29("path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }),
4648
- /* @__PURE__ */ jsx29("path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }),
4649
- /* @__PURE__ */ jsx29("path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }),
4650
- /* @__PURE__ */ jsx29("path", { d: "m2 2 20 20" })
4746
+ /* @__PURE__ */ jsx31("path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }),
4747
+ /* @__PURE__ */ jsx31("path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }),
4748
+ /* @__PURE__ */ jsx31("path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }),
4749
+ /* @__PURE__ */ jsx31("path", { d: "m2 2 20 20" })
4651
4750
  ]
4652
4751
  }
4653
4752
  );
@@ -4763,7 +4862,7 @@ var useStyles10 = (theme, colorScheme, disabled, hasError, hasStartIcon, hasEndI
4763
4862
  var TextField_styles_default = useStyles10;
4764
4863
 
4765
4864
  // src/components/primitives/TextField/TextField.tsx
4766
- import { jsx as jsx30, jsxs as jsxs9 } from "react/jsx-runtime";
4865
+ import { jsx as jsx32, jsxs as jsxs9 } from "react/jsx-runtime";
4767
4866
  var TextField = ({
4768
4867
  label,
4769
4868
  error,
@@ -4804,9 +4903,9 @@ var TextField = ({
4804
4903
  className: cx12(withVendorCSSClassPrefix12(bem9("text-field")), className),
4805
4904
  style,
4806
4905
  children: [
4807
- label && /* @__PURE__ */ jsx30(InputLabel_default, { required, error: hasError, children: label }),
4906
+ label && /* @__PURE__ */ jsx32(InputLabel_default, { required, error: hasError, children: label }),
4808
4907
  /* @__PURE__ */ jsxs9("div", { className: containerClassName, children: [
4809
- startIcon && /* @__PURE__ */ jsx30(
4908
+ startIcon && /* @__PURE__ */ jsx32(
4810
4909
  "div",
4811
4910
  {
4812
4911
  className: startIconClassName,
@@ -4817,7 +4916,7 @@ var TextField = ({
4817
4916
  children: startIcon
4818
4917
  }
4819
4918
  ),
4820
- /* @__PURE__ */ jsx30(
4919
+ /* @__PURE__ */ jsx32(
4821
4920
  "input",
4822
4921
  {
4823
4922
  className: inputClassName,
@@ -4828,7 +4927,7 @@ var TextField = ({
4828
4927
  ...rest
4829
4928
  }
4830
4929
  ),
4831
- endIcon && /* @__PURE__ */ jsx30(
4930
+ endIcon && /* @__PURE__ */ jsx32(
4832
4931
  "div",
4833
4932
  {
4834
4933
  className: endIconClassName,
@@ -4847,7 +4946,7 @@ var TextField = ({
4847
4946
  var TextField_default = TextField;
4848
4947
 
4849
4948
  // src/components/primitives/PasswordField/PasswordField.tsx
4850
- import { jsx as jsx31 } from "react/jsx-runtime";
4949
+ import { jsx as jsx33 } from "react/jsx-runtime";
4851
4950
  var PasswordField = ({
4852
4951
  onChange,
4853
4952
  className,
@@ -4864,7 +4963,7 @@ var PasswordField = ({
4864
4963
  }
4865
4964
  };
4866
4965
  const IconComponent = showPassword ? EyeOff_default : Eye_default;
4867
- return /* @__PURE__ */ jsx31(
4966
+ return /* @__PURE__ */ jsx33(
4868
4967
  TextField_default,
4869
4968
  {
4870
4969
  ...textFieldProps,
@@ -4874,7 +4973,7 @@ var PasswordField = ({
4874
4973
  autoComplete: "current-password",
4875
4974
  disabled,
4876
4975
  error,
4877
- endIcon: /* @__PURE__ */ jsx31(
4976
+ endIcon: /* @__PURE__ */ jsx33(
4878
4977
  IconComponent,
4879
4978
  {
4880
4979
  width: 16,
@@ -4975,7 +5074,7 @@ var useStyles11 = (theme, colorScheme, disabled, hasError) => useMemo19(() => {
4975
5074
  var Select_styles_default = useStyles11;
4976
5075
 
4977
5076
  // src/components/primitives/Select/Select.tsx
4978
- import { jsx as jsx32, jsxs as jsxs10 } from "react/jsx-runtime";
5077
+ import { jsx as jsx34, jsxs as jsxs10 } from "react/jsx-runtime";
4979
5078
  var Select = ({
4980
5079
  label,
4981
5080
  error,
@@ -5005,7 +5104,7 @@ var Select = ({
5005
5104
  className: cx14(withVendorCSSClassPrefix14(bem11("select")), className),
5006
5105
  style,
5007
5106
  children: [
5008
- label && /* @__PURE__ */ jsx32(InputLabel_default, { required, error: hasError, children: label }),
5107
+ label && /* @__PURE__ */ jsx34(InputLabel_default, { required, error: hasError, children: label }),
5009
5108
  /* @__PURE__ */ jsxs10(
5010
5109
  "select",
5011
5110
  {
@@ -5015,8 +5114,8 @@ var Select = ({
5015
5114
  "aria-required": required,
5016
5115
  ...rest,
5017
5116
  children: [
5018
- placeholder && /* @__PURE__ */ jsx32("option", { value: "", disabled: true, children: placeholder }),
5019
- options.map((option) => /* @__PURE__ */ jsx32("option", { value: option.value, className: styles["option"], children: option.label }, option.value))
5117
+ placeholder && /* @__PURE__ */ jsx34("option", { value: "", disabled: true, children: placeholder }),
5118
+ options.map((option) => /* @__PURE__ */ jsx34("option", { value: option.value, className: styles["option"], children: option.label }, option.value))
5020
5119
  ]
5021
5120
  }
5022
5121
  )
@@ -5027,7 +5126,7 @@ var Select = ({
5027
5126
  var Select_default = Select;
5028
5127
 
5029
5128
  // src/components/factories/FieldFactory.tsx
5030
- import { jsx as jsx33 } from "react/jsx-runtime";
5129
+ import { jsx as jsx35 } from "react/jsx-runtime";
5031
5130
  var validateFieldValue = (value, type, required = false, touched = false) => {
5032
5131
  if (required && touched && (!value || value.trim() === "")) {
5033
5132
  return "This field is required";
@@ -5079,9 +5178,9 @@ var createField = (config) => {
5079
5178
  };
5080
5179
  switch (type) {
5081
5180
  case FieldType.Password:
5082
- return /* @__PURE__ */ jsx33(PasswordField_default, { ...commonProps, onChange });
5181
+ return /* @__PURE__ */ jsx35(PasswordField_default, { ...commonProps, onChange });
5083
5182
  case FieldType.Text:
5084
- return /* @__PURE__ */ jsx33(
5183
+ return /* @__PURE__ */ jsx35(
5085
5184
  TextField_default,
5086
5185
  {
5087
5186
  ...commonProps,
@@ -5091,7 +5190,7 @@ var createField = (config) => {
5091
5190
  }
5092
5191
  );
5093
5192
  case FieldType.Email:
5094
- return /* @__PURE__ */ jsx33(
5193
+ return /* @__PURE__ */ jsx35(
5095
5194
  TextField_default,
5096
5195
  {
5097
5196
  ...commonProps,
@@ -5101,10 +5200,10 @@ var createField = (config) => {
5101
5200
  }
5102
5201
  );
5103
5202
  case FieldType.Date:
5104
- return /* @__PURE__ */ jsx33(DatePicker_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
5203
+ return /* @__PURE__ */ jsx35(DatePicker_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
5105
5204
  case FieldType.Checkbox: {
5106
5205
  const isChecked = value === "true" || value === true;
5107
- return /* @__PURE__ */ jsx33(
5206
+ return /* @__PURE__ */ jsx35(
5108
5207
  Checkbox_default,
5109
5208
  {
5110
5209
  ...commonProps,
@@ -5114,9 +5213,9 @@ var createField = (config) => {
5114
5213
  );
5115
5214
  }
5116
5215
  case FieldType.Otp:
5117
- return /* @__PURE__ */ jsx33(OtpField_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
5216
+ return /* @__PURE__ */ jsx35(OtpField_default, { ...commonProps, onChange: (e) => onChange(e.target.value) });
5118
5217
  case FieldType.Number:
5119
- return /* @__PURE__ */ jsx33(
5218
+ return /* @__PURE__ */ jsx35(
5120
5219
  TextField_default,
5121
5220
  {
5122
5221
  ...commonProps,
@@ -5128,7 +5227,7 @@ var createField = (config) => {
5128
5227
  case FieldType.Select: {
5129
5228
  const fieldOptions = options.length > 0 ? options : [];
5130
5229
  if (fieldOptions.length > 0) {
5131
- return /* @__PURE__ */ jsx33(
5230
+ return /* @__PURE__ */ jsx35(
5132
5231
  Select_default,
5133
5232
  {
5134
5233
  ...commonProps,
@@ -5138,7 +5237,7 @@ var createField = (config) => {
5138
5237
  }
5139
5238
  );
5140
5239
  }
5141
- return /* @__PURE__ */ jsx33(
5240
+ return /* @__PURE__ */ jsx35(
5142
5241
  TextField_default,
5143
5242
  {
5144
5243
  ...commonProps,
@@ -5150,7 +5249,7 @@ var createField = (config) => {
5150
5249
  );
5151
5250
  }
5152
5251
  default:
5153
- return /* @__PURE__ */ jsx33(
5252
+ return /* @__PURE__ */ jsx35(
5154
5253
  TextField_default,
5155
5254
  {
5156
5255
  ...commonProps,
@@ -5164,7 +5263,7 @@ var createField = (config) => {
5164
5263
  var FieldFactory = (props) => createField(props);
5165
5264
 
5166
5265
  // src/components/presentation/auth/SignIn/v1/options/EmailOtp.tsx
5167
- import { Fragment as Fragment7, jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
5266
+ import { Fragment as Fragment8, jsx as jsx36, jsxs as jsxs11 } from "react/jsx-runtime";
5168
5267
  var EmailOtp = ({
5169
5268
  authenticator,
5170
5269
  formValues,
@@ -5179,17 +5278,17 @@ var EmailOtp = ({
5179
5278
  const { t } = useTranslation_default(preferences?.i18n);
5180
5279
  const { setTitle, setSubtitle } = useFlow_default();
5181
5280
  const formFields = authenticator.metadata?.params?.sort((a, b) => a.order - b.order) || [];
5182
- useEffect8(() => {
5281
+ useEffect9(() => {
5183
5282
  setTitle(t("email.otp.heading"));
5184
5283
  setSubtitle(t("email.otp.subheading"));
5185
5284
  }, [setTitle, setSubtitle, t]);
5186
5285
  const hasOtpField = formFields.some(
5187
5286
  (param) => param.param.toLowerCase().includes("otp") || param.param.toLowerCase().includes("code")
5188
5287
  );
5189
- return /* @__PURE__ */ jsxs11(Fragment7, { children: [
5288
+ return /* @__PURE__ */ jsxs11(Fragment8, { children: [
5190
5289
  formFields.map((param) => {
5191
5290
  const isOtpParam = param.param.toLowerCase().includes("otp") || param.param.toLowerCase().includes("code");
5192
- return /* @__PURE__ */ jsx34("div", { children: isOtpParam && hasOtpField ? /* @__PURE__ */ jsx34(
5291
+ return /* @__PURE__ */ jsx36("div", { children: isOtpParam && hasOtpField ? /* @__PURE__ */ jsx36(
5193
5292
  OtpField_default,
5194
5293
  {
5195
5294
  length: 6,
@@ -5210,7 +5309,7 @@ var EmailOtp = ({
5210
5309
  value: formValues[param.param] || ""
5211
5310
  }) }, param.param);
5212
5311
  }),
5213
- /* @__PURE__ */ jsx34(
5312
+ /* @__PURE__ */ jsx36(
5214
5313
  Button_default,
5215
5314
  {
5216
5315
  fullWidth: true,
@@ -5230,8 +5329,8 @@ var EmailOtp_default = EmailOtp;
5230
5329
 
5231
5330
  // src/components/presentation/auth/SignIn/v1/options/IdentifierFirst.tsx
5232
5331
  import { EmbeddedSignInFlowAuthenticatorParamType as EmbeddedSignInFlowAuthenticatorParamType2, FieldType as FieldType3 } from "@asgardeo/browser";
5233
- import { useEffect as useEffect9 } from "react";
5234
- import { Fragment as Fragment8, jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
5332
+ import { useEffect as useEffect10 } from "react";
5333
+ import { Fragment as Fragment9, jsx as jsx37, jsxs as jsxs12 } from "react/jsx-runtime";
5235
5334
  var IdentifierFirst = ({
5236
5335
  authenticator,
5237
5336
  formValues,
@@ -5246,12 +5345,12 @@ var IdentifierFirst = ({
5246
5345
  const { t } = useTranslation_default(preferences?.i18n);
5247
5346
  const { setTitle, setSubtitle } = useFlow_default();
5248
5347
  const formFields = authenticator.metadata?.params?.sort((a, b) => a.order - b.order) || [];
5249
- useEffect9(() => {
5348
+ useEffect10(() => {
5250
5349
  setTitle(t("identifier.first.heading"));
5251
5350
  setSubtitle(t("identifier.first.subheading"));
5252
5351
  }, [setTitle, setSubtitle, t]);
5253
- return /* @__PURE__ */ jsxs12(Fragment8, { children: [
5254
- formFields.map((param) => /* @__PURE__ */ jsx35("div", { children: createField({
5352
+ return /* @__PURE__ */ jsxs12(Fragment9, { children: [
5353
+ formFields.map((param) => /* @__PURE__ */ jsx37("div", { children: createField({
5255
5354
  className: inputClassName,
5256
5355
  disabled: isLoading,
5257
5356
  label: param.displayName,
@@ -5265,7 +5364,7 @@ var IdentifierFirst = ({
5265
5364
  type: param.type === EmbeddedSignInFlowAuthenticatorParamType2.String && param.confidential ? FieldType3.Password : FieldType3.Text,
5266
5365
  value: formValues[param.param] || ""
5267
5366
  }) }, param.param)),
5268
- /* @__PURE__ */ jsx35(
5367
+ /* @__PURE__ */ jsx37(
5269
5368
  Button_default,
5270
5369
  {
5271
5370
  fullWidth: true,
@@ -5285,7 +5384,7 @@ var IdentifierFirst_default = IdentifierFirst;
5285
5384
 
5286
5385
  // src/components/presentation/auth/SignIn/v1/options/MultiOptionButton.tsx
5287
5386
  import { ApplicationNativeAuthenticationConstants, EmbeddedSignInFlowAuthenticatorKnownIdPType } from "@asgardeo/browser";
5288
- import { jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
5387
+ import { jsx as jsx38, jsxs as jsxs13 } from "react/jsx-runtime";
5289
5388
  var MultiOptionButton = ({
5290
5389
  authenticator,
5291
5390
  isLoading,
@@ -5308,7 +5407,7 @@ var MultiOptionButton = ({
5308
5407
  const { authenticatorId } = authenticator;
5309
5408
  switch (authenticatorId) {
5310
5409
  case ApplicationNativeAuthenticationConstants.SupportedAuthenticators.SmsOtp:
5311
- return /* @__PURE__ */ jsx36("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx36(
5410
+ return /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
5312
5411
  "path",
5313
5412
  {
5314
5413
  fill: "currentColor",
@@ -5316,7 +5415,7 @@ var MultiOptionButton = ({
5316
5415
  }
5317
5416
  ) });
5318
5417
  case ApplicationNativeAuthenticationConstants.SupportedAuthenticators.EmailOtp:
5319
- return /* @__PURE__ */ jsx36("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx36(
5418
+ return /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
5320
5419
  "path",
5321
5420
  {
5322
5421
  fill: "currentColor",
@@ -5324,9 +5423,9 @@ var MultiOptionButton = ({
5324
5423
  }
5325
5424
  ) });
5326
5425
  case ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Totp:
5327
- return /* @__PURE__ */ jsx36("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx36("path", { fill: "currentColor", d: "M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5z" }) });
5426
+ return /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38("path", { fill: "currentColor", d: "M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5z" }) });
5328
5427
  case ApplicationNativeAuthenticationConstants.SupportedAuthenticators.PushNotification:
5329
- return /* @__PURE__ */ jsx36("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx36(
5428
+ return /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
5330
5429
  "path",
5331
5430
  {
5332
5431
  fill: "currentColor",
@@ -5335,15 +5434,15 @@ var MultiOptionButton = ({
5335
5434
  ) });
5336
5435
  case ApplicationNativeAuthenticationConstants.SupportedAuthenticators.Passkey:
5337
5436
  return /* @__PURE__ */ jsxs13("svg", { fill: "currentColor", width: "18", height: "18", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: [
5338
- /* @__PURE__ */ jsx36("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
5339
- /* @__PURE__ */ jsx36("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }),
5437
+ /* @__PURE__ */ jsx38("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
5438
+ /* @__PURE__ */ jsx38("g", { id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }),
5340
5439
  /* @__PURE__ */ jsxs13("g", { id: "SVGRepo_iconCarrier", children: [
5341
- /* @__PURE__ */ jsx36("path", { d: "M7.7 4.7C9.36 3.07 12.68 2 16.17 2S23 3.06 24.6 4.7A1 1 0 0 0 26 3.3C23.6.86 19.34 0 16.16 0S8.72.87 6.3 3.3a1 1 0 0 0 1.4 1.4zM29.2 12.55C26.38 6.88 22 4 16.17 4s-10.22 2.88-13 8.55a1 1 0 0 0 .44 1.34 1 1 0 0 0 1.35-.45C7.4 8.45 11.08 6 16.15 6s8.77 2.44 11.27 7.45a1 1 0 0 0 .9.55.87.87 0 0 0 .44-.1 1 1 0 0 0 .45-1.35zM19.4 28.08c-4.13-1.77-5.8-4.5-6-6.5a2.87 2.87 0 0 1 1.13-2.75c.85-.57 2.1.24 3.87 1.52s4.13 3 6.17 1.45c1.8-1.35 2.34-3.76 1.45-6.44A10.85 10.85 0 0 0 16.16 8C7.2 8 4 15.75 4 23a1 1 0 0 0 2 0c0-3 .73-13 10.16-13 3.9 0 7 3.1 8 6 .3.87.8 3-.75 4.2-.8.6-2-.2-3.8-1.47s-4.07-2.94-6.14-1.56a4.87 4.87 0 0 0-2 4.6c.24 2.56 2.24 6 7.18 8.15A1 1 0 0 0 19 30a1 1 0 0 0 .4-1.92zM10 19.24a7.06 7.06 0 0 1 5.2-4.65c2.24-.43 4.32.6 6 3a1 1 0 1 0 1.62-1.17c-2.9-4.07-6.27-4.12-8-3.8A9.1 9.1 0 0 0 8 18.77c-1 3.94.43 8.27 4.2 12.87a1 1 0 0 0 .8.37.94.94 0 0 0 .63-.23 1 1 0 0 0 .14-1.4c-3.34-4.1-4.62-7.83-3.77-11.13zM25.3 24.3a3 3 0 0 1-3.06.63c-2.4-.57-4.78-2.7-5.3-4.25a1 1 0 1 0-1.9.64c.8 2.33 3.87 4.88 6.74 5.56a6.84 6.84 0 0 0 1.52.18 4.7 4.7 0 0 0 3.4-1.35 1 1 0 0 0-1.4-1.4z" }),
5440
+ /* @__PURE__ */ jsx38("path", { d: "M7.7 4.7C9.36 3.07 12.68 2 16.17 2S23 3.06 24.6 4.7A1 1 0 0 0 26 3.3C23.6.86 19.34 0 16.16 0S8.72.87 6.3 3.3a1 1 0 0 0 1.4 1.4zM29.2 12.55C26.38 6.88 22 4 16.17 4s-10.22 2.88-13 8.55a1 1 0 0 0 .44 1.34 1 1 0 0 0 1.35-.45C7.4 8.45 11.08 6 16.15 6s8.77 2.44 11.27 7.45a1 1 0 0 0 .9.55.87.87 0 0 0 .44-.1 1 1 0 0 0 .45-1.35zM19.4 28.08c-4.13-1.77-5.8-4.5-6-6.5a2.87 2.87 0 0 1 1.13-2.75c.85-.57 2.1.24 3.87 1.52s4.13 3 6.17 1.45c1.8-1.35 2.34-3.76 1.45-6.44A10.85 10.85 0 0 0 16.16 8C7.2 8 4 15.75 4 23a1 1 0 0 0 2 0c0-3 .73-13 10.16-13 3.9 0 7 3.1 8 6 .3.87.8 3-.75 4.2-.8.6-2-.2-3.8-1.47s-4.07-2.94-6.14-1.56a4.87 4.87 0 0 0-2 4.6c.24 2.56 2.24 6 7.18 8.15A1 1 0 0 0 19 30a1 1 0 0 0 .4-1.92zM10 19.24a7.06 7.06 0 0 1 5.2-4.65c2.24-.43 4.32.6 6 3a1 1 0 1 0 1.62-1.17c-2.9-4.07-6.27-4.12-8-3.8A9.1 9.1 0 0 0 8 18.77c-1 3.94.43 8.27 4.2 12.87a1 1 0 0 0 .8.37.94.94 0 0 0 .63-.23 1 1 0 0 0 .14-1.4c-3.34-4.1-4.62-7.83-3.77-11.13zM25.3 24.3a3 3 0 0 1-3.06.63c-2.4-.57-4.78-2.7-5.3-4.25a1 1 0 1 0-1.9.64c.8 2.33 3.87 4.88 6.74 5.56a6.84 6.84 0 0 0 1.52.18 4.7 4.7 0 0 0 3.4-1.35 1 1 0 0 0-1.4-1.4z" }),
5342
5441
  " "
5343
5442
  ] })
5344
5443
  ] });
5345
5444
  case ApplicationNativeAuthenticationConstants.SupportedAuthenticators.MagicLink:
5346
- return /* @__PURE__ */ jsx36("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx36(
5445
+ return /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
5347
5446
  "path",
5348
5447
  {
5349
5448
  fill: "currentColor",
@@ -5351,7 +5450,7 @@ var MultiOptionButton = ({
5351
5450
  }
5352
5451
  ) });
5353
5452
  default:
5354
- return /* @__PURE__ */ jsx36("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx36(
5453
+ return /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
5355
5454
  "path",
5356
5455
  {
5357
5456
  fill: "currentColor",
@@ -5363,7 +5462,7 @@ var MultiOptionButton = ({
5363
5462
  const handleClick = () => {
5364
5463
  onSubmit(authenticator);
5365
5464
  };
5366
- return /* @__PURE__ */ jsx36(
5465
+ return /* @__PURE__ */ jsx38(
5367
5466
  Button_default,
5368
5467
  {
5369
5468
  fullWidth: true,
@@ -5382,8 +5481,8 @@ var MultiOptionButton_default = MultiOptionButton;
5382
5481
 
5383
5482
  // src/components/presentation/auth/SignIn/v1/options/SmsOtp.tsx
5384
5483
  import { EmbeddedSignInFlowAuthenticatorParamType as EmbeddedSignInFlowAuthenticatorParamType3, FieldType as FieldType4 } from "@asgardeo/browser";
5385
- import { useEffect as useEffect10 } from "react";
5386
- import { Fragment as Fragment9, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
5484
+ import { useEffect as useEffect11 } from "react";
5485
+ import { Fragment as Fragment10, jsx as jsx39, jsxs as jsxs14 } from "react/jsx-runtime";
5387
5486
  var SmsOtp = ({
5388
5487
  authenticator,
5389
5488
  formValues,
@@ -5398,17 +5497,17 @@ var SmsOtp = ({
5398
5497
  const { t } = useTranslation_default(preferences?.i18n);
5399
5498
  const { setTitle, setSubtitle } = useFlow_default();
5400
5499
  const formFields = authenticator.metadata?.params?.sort((a, b) => a.order - b.order) || [];
5401
- useEffect10(() => {
5500
+ useEffect11(() => {
5402
5501
  setTitle(t("sms.otp.heading"));
5403
5502
  setSubtitle(t("sms.otp.subheading"));
5404
5503
  }, [setTitle, setSubtitle, t]);
5405
5504
  const hasOtpField = formFields.some(
5406
5505
  (param) => param.param.toLowerCase().includes("otp") || param.param.toLowerCase().includes("code")
5407
5506
  );
5408
- return /* @__PURE__ */ jsxs14(Fragment9, { children: [
5507
+ return /* @__PURE__ */ jsxs14(Fragment10, { children: [
5409
5508
  formFields.map((param) => {
5410
5509
  const isOtpParam = param.param.toLowerCase().includes("otp") || param.param.toLowerCase().includes("code");
5411
- return /* @__PURE__ */ jsx37("div", { children: isOtpParam && hasOtpField ? /* @__PURE__ */ jsx37(
5510
+ return /* @__PURE__ */ jsx39("div", { children: isOtpParam && hasOtpField ? /* @__PURE__ */ jsx39(
5412
5511
  OtpField_default,
5413
5512
  {
5414
5513
  length: 6,
@@ -5429,7 +5528,7 @@ var SmsOtp = ({
5429
5528
  value: formValues[param.param] || ""
5430
5529
  }) }, param.param);
5431
5530
  }),
5432
- /* @__PURE__ */ jsx37(
5531
+ /* @__PURE__ */ jsx39(
5433
5532
  Button_default,
5434
5533
  {
5435
5534
  fullWidth: true,
@@ -5448,7 +5547,7 @@ var SmsOtp = ({
5448
5547
  var SmsOtp_default = SmsOtp;
5449
5548
 
5450
5549
  // src/components/presentation/auth/SignIn/v1/options/SocialButton.tsx
5451
- import { jsx as jsx38 } from "react/jsx-runtime";
5550
+ import { jsx as jsx40 } from "react/jsx-runtime";
5452
5551
  var SocialLogin = ({
5453
5552
  isLoading,
5454
5553
  preferences,
@@ -5456,7 +5555,7 @@ var SocialLogin = ({
5456
5555
  ...rest
5457
5556
  }) => {
5458
5557
  const { t } = useTranslation_default(preferences?.i18n);
5459
- return /* @__PURE__ */ jsx38(
5558
+ return /* @__PURE__ */ jsx40(
5460
5559
  Button_default,
5461
5560
  {
5462
5561
  ...rest,
@@ -5465,7 +5564,7 @@ var SocialLogin = ({
5465
5564
  color: "secondary",
5466
5565
  variant: "outline",
5467
5566
  disabled: isLoading,
5468
- startIcon: /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
5567
+ startIcon: /* @__PURE__ */ jsx40("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx40(
5469
5568
  "path",
5470
5569
  {
5471
5570
  fill: "currentColor",
@@ -5480,8 +5579,8 @@ var SocialButton_default = SocialLogin;
5480
5579
 
5481
5580
  // src/components/presentation/auth/SignIn/v1/options/Totp.tsx
5482
5581
  import { EmbeddedSignInFlowAuthenticatorParamType as EmbeddedSignInFlowAuthenticatorParamType4, FieldType as FieldType5 } from "@asgardeo/browser";
5483
- import { useEffect as useEffect11 } from "react";
5484
- import { Fragment as Fragment10, jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
5582
+ import { useEffect as useEffect12 } from "react";
5583
+ import { Fragment as Fragment11, jsx as jsx41, jsxs as jsxs15 } from "react/jsx-runtime";
5485
5584
  var Totp = ({
5486
5585
  authenticator,
5487
5586
  formValues,
@@ -5496,17 +5595,17 @@ var Totp = ({
5496
5595
  const { t } = useTranslation_default(preferences?.i18n);
5497
5596
  const { setTitle, setSubtitle } = useFlow_default();
5498
5597
  const formFields = authenticator.metadata?.params?.sort((a, b) => a.order - b.order) || [];
5499
- useEffect11(() => {
5598
+ useEffect12(() => {
5500
5599
  setTitle(t("totp.heading"));
5501
5600
  setSubtitle(t("totp.subheading"));
5502
5601
  }, [setTitle, setSubtitle, t]);
5503
5602
  const hasTotpField = formFields.some(
5504
5603
  (param) => param.param.toLowerCase().includes("totp") || param.param.toLowerCase().includes("token")
5505
5604
  );
5506
- return /* @__PURE__ */ jsxs15(Fragment10, { children: [
5605
+ return /* @__PURE__ */ jsxs15(Fragment11, { children: [
5507
5606
  formFields.map((param) => {
5508
5607
  const isTotpParam = param.param.toLowerCase().includes("totp") || param.param.toLowerCase().includes("token");
5509
- return /* @__PURE__ */ jsx39("div", { children: isTotpParam && hasTotpField ? /* @__PURE__ */ jsx39(
5608
+ return /* @__PURE__ */ jsx41("div", { children: isTotpParam && hasTotpField ? /* @__PURE__ */ jsx41(
5510
5609
  OtpField_default,
5511
5610
  {
5512
5611
  length: 6,
@@ -5527,7 +5626,7 @@ var Totp = ({
5527
5626
  value: formValues[param.param] || ""
5528
5627
  }) }, param.param);
5529
5628
  }),
5530
- /* @__PURE__ */ jsx39(
5629
+ /* @__PURE__ */ jsx41(
5531
5630
  Button_default,
5532
5631
  {
5533
5632
  fullWidth: true,
@@ -5547,8 +5646,8 @@ var Totp_default = Totp;
5547
5646
 
5548
5647
  // src/components/presentation/auth/SignIn/v1/options/UsernamePassword.tsx
5549
5648
  import { EmbeddedSignInFlowAuthenticatorParamType as EmbeddedSignInFlowAuthenticatorParamType5, FieldType as FieldType6 } from "@asgardeo/browser";
5550
- import { useEffect as useEffect12 } from "react";
5551
- import { Fragment as Fragment11, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
5649
+ import { useEffect as useEffect13 } from "react";
5650
+ import { Fragment as Fragment12, jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
5552
5651
  var UsernamePassword = ({
5553
5652
  authenticator,
5554
5653
  formValues,
@@ -5563,12 +5662,12 @@ var UsernamePassword = ({
5563
5662
  const { t } = useTranslation_default(preferences?.i18n);
5564
5663
  const { setTitle, setSubtitle } = useFlow_default();
5565
5664
  const formFields = authenticator.metadata?.params?.sort((a, b) => a.order - b.order)?.filter((param) => param.param !== "totp") || [];
5566
- useEffect12(() => {
5665
+ useEffect13(() => {
5567
5666
  setTitle(t("username.password.heading"));
5568
5667
  setSubtitle(t("username.password.subheading"));
5569
5668
  }, [setTitle, setSubtitle, t]);
5570
- return /* @__PURE__ */ jsxs16(Fragment11, { children: [
5571
- formFields.map((param) => /* @__PURE__ */ jsx40("div", { children: createField({
5669
+ return /* @__PURE__ */ jsxs16(Fragment12, { children: [
5670
+ formFields.map((param) => /* @__PURE__ */ jsx42("div", { children: createField({
5572
5671
  className: inputClassName,
5573
5672
  disabled: isLoading,
5574
5673
  label: param.displayName,
@@ -5582,7 +5681,7 @@ var UsernamePassword = ({
5582
5681
  type: param.type === EmbeddedSignInFlowAuthenticatorParamType5.String && param.confidential ? FieldType6.Password : FieldType6.Text,
5583
5682
  value: formValues[param.param] || ""
5584
5683
  }) }, param.param)),
5585
- /* @__PURE__ */ jsx40(
5684
+ /* @__PURE__ */ jsx42(
5586
5685
  Button_default,
5587
5686
  {
5588
5687
  fullWidth: true,
@@ -5602,7 +5701,7 @@ var UsernamePassword = ({
5602
5701
  var UsernamePassword_default = UsernamePassword;
5603
5702
 
5604
5703
  // src/components/adapters/FacebookButton.tsx
5605
- import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
5704
+ import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
5606
5705
  var FacebookButton = ({
5607
5706
  isLoading,
5608
5707
  preferences,
@@ -5610,7 +5709,7 @@ var FacebookButton = ({
5610
5709
  ...rest
5611
5710
  }) => {
5612
5711
  const { t } = useTranslation_default(preferences?.i18n);
5613
- return /* @__PURE__ */ jsx41(
5712
+ return /* @__PURE__ */ jsx43(
5614
5713
  Button_default,
5615
5714
  {
5616
5715
  ...rest,
@@ -5620,14 +5719,14 @@ var FacebookButton = ({
5620
5719
  variant: "solid",
5621
5720
  disabled: isLoading,
5622
5721
  startIcon: /* @__PURE__ */ jsxs17("svg", { width: "18", height: "18", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg", children: [
5623
- /* @__PURE__ */ jsx41(
5722
+ /* @__PURE__ */ jsx43(
5624
5723
  "path",
5625
5724
  {
5626
5725
  fill: "#1976D2",
5627
5726
  d: "M448,0H64C28.704,0,0,28.704,0,64v384c0,35.296,28.704,64,64,64h384c35.296,0,64-28.704,64-64V64C512,28.704,483.296,0,448,0z"
5628
5727
  }
5629
5728
  ),
5630
- /* @__PURE__ */ jsx41(
5729
+ /* @__PURE__ */ jsx43(
5631
5730
  "path",
5632
5731
  {
5633
5732
  fill: "#FAFAFA",
@@ -5642,7 +5741,7 @@ var FacebookButton = ({
5642
5741
  var FacebookButton_default = FacebookButton;
5643
5742
 
5644
5743
  // src/components/adapters/GitHubButton.tsx
5645
- import { jsx as jsx42 } from "react/jsx-runtime";
5744
+ import { jsx as jsx44 } from "react/jsx-runtime";
5646
5745
  var GitHubButton = ({
5647
5746
  isLoading,
5648
5747
  preferences,
@@ -5650,7 +5749,7 @@ var GitHubButton = ({
5650
5749
  ...rest
5651
5750
  }) => {
5652
5751
  const { t } = useTranslation_default(preferences?.i18n);
5653
- return /* @__PURE__ */ jsx42(
5752
+ return /* @__PURE__ */ jsx44(
5654
5753
  Button_default,
5655
5754
  {
5656
5755
  ...rest,
@@ -5659,7 +5758,7 @@ var GitHubButton = ({
5659
5758
  color: "secondary",
5660
5759
  variant: "solid",
5661
5760
  disabled: isLoading,
5662
- startIcon: /* @__PURE__ */ jsx42("svg", { width: "18", height: "18", viewBox: "0 0 67.91 66.233", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx42("g", { transform: "translate(-386.96 658.072)", children: /* @__PURE__ */ jsx42(
5761
+ startIcon: /* @__PURE__ */ jsx44("svg", { width: "18", height: "18", viewBox: "0 0 67.91 66.233", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx44("g", { transform: "translate(-386.96 658.072)", children: /* @__PURE__ */ jsx44(
5663
5762
  "path",
5664
5763
  {
5665
5764
  d: "M420.915-658.072a33.956,33.956,0,0,0-33.955,33.955,33.963,33.963,0,0,0,23.221,32.22c1.7.314,2.32-.737,2.32-1.633,0-.81-.031-3.484-.046-6.322-9.446,2.054-11.44-4.006-11.44-4.006-1.545-3.925-3.77-4.968-3.77-4.968-3.081-2.107.232-2.064.232-2.064,3.41.239,5.205,3.5,5.205,3.5,3.028,5.19,7.943,3.69,9.881,2.822a7.23,7.23,0,0,1,2.156-4.54c-7.542-.859-15.47-3.77-15.47-16.781a13.141,13.141,0,0,1,3.5-9.114,12.2,12.2,0,0,1,.329-8.986s2.851-.913,9.34,3.48a32.545,32.545,0,0,1,8.5-1.143,32.629,32.629,0,0,1,8.506,1.143c6.481-4.393,9.328-3.48,9.328-3.48a12.185,12.185,0,0,1,.333,8.986,13.115,13.115,0,0,1,3.495,9.114c0,13.042-7.943,15.913-15.5,16.754,1.218,1.054,2.3,3.12,2.3,6.288,0,4.543-.039,8.2-.039,9.318,0,.9.611,1.962,2.332,1.629a33.959,33.959,0,0,0,23.2-32.215,33.955,33.955,0,0,0-33.955-33.955",
@@ -5673,7 +5772,7 @@ var GitHubButton = ({
5673
5772
  var GitHubButton_default = GitHubButton;
5674
5773
 
5675
5774
  // src/components/adapters/GoogleButton.tsx
5676
- import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
5775
+ import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
5677
5776
  var GoogleButton = ({
5678
5777
  isLoading,
5679
5778
  preferences,
@@ -5681,7 +5780,7 @@ var GoogleButton = ({
5681
5780
  ...rest
5682
5781
  }) => {
5683
5782
  const { t } = useTranslation_default(preferences?.i18n);
5684
- return /* @__PURE__ */ jsx43(
5783
+ return /* @__PURE__ */ jsx45(
5685
5784
  Button_default,
5686
5785
  {
5687
5786
  ...rest,
@@ -5690,8 +5789,8 @@ var GoogleButton = ({
5690
5789
  color: "secondary",
5691
5790
  variant: "solid",
5692
5791
  disabled: isLoading,
5693
- startIcon: /* @__PURE__ */ jsx43("svg", { width: "18", height: "18", viewBox: "0 0 67.91 67.901", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxs18("g", { transform: "translate(-0.001 -0.001)", children: [
5694
- /* @__PURE__ */ jsx43(
5792
+ startIcon: /* @__PURE__ */ jsx45("svg", { width: "18", height: "18", viewBox: "0 0 67.91 67.901", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxs18("g", { transform: "translate(-0.001 -0.001)", children: [
5793
+ /* @__PURE__ */ jsx45(
5695
5794
  "path",
5696
5795
  {
5697
5796
  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",
@@ -5699,7 +5798,7 @@ var GoogleButton = ({
5699
5798
  fill: "#fbbb00"
5700
5799
  }
5701
5800
  ),
5702
- /* @__PURE__ */ jsx43(
5801
+ /* @__PURE__ */ jsx45(
5703
5802
  "path",
5704
5803
  {
5705
5804
  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",
@@ -5707,7 +5806,7 @@ var GoogleButton = ({
5707
5806
  fill: "#518ef8"
5708
5807
  }
5709
5808
  ),
5710
- /* @__PURE__ */ jsx43(
5809
+ /* @__PURE__ */ jsx45(
5711
5810
  "path",
5712
5811
  {
5713
5812
  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",
@@ -5715,7 +5814,7 @@ var GoogleButton = ({
5715
5814
  fill: "#28b446"
5716
5815
  }
5717
5816
  ),
5718
- /* @__PURE__ */ jsx43(
5817
+ /* @__PURE__ */ jsx45(
5719
5818
  "path",
5720
5819
  {
5721
5820
  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",
@@ -5731,7 +5830,7 @@ var GoogleButton = ({
5731
5830
  var GoogleButton_default = GoogleButton;
5732
5831
 
5733
5832
  // src/components/adapters/LinkedInButton.tsx
5734
- import { jsx as jsx44 } from "react/jsx-runtime";
5833
+ import { jsx as jsx46 } from "react/jsx-runtime";
5735
5834
  var LinkedInButton = ({
5736
5835
  isLoading,
5737
5836
  preferences,
@@ -5739,7 +5838,7 @@ var LinkedInButton = ({
5739
5838
  ...rest
5740
5839
  }) => {
5741
5840
  const { t } = useTranslation_default(preferences?.i18n);
5742
- return /* @__PURE__ */ jsx44(
5841
+ return /* @__PURE__ */ jsx46(
5743
5842
  Button_default,
5744
5843
  {
5745
5844
  ...rest,
@@ -5748,7 +5847,7 @@ var LinkedInButton = ({
5748
5847
  color: "secondary",
5749
5848
  variant: "solid",
5750
5849
  disabled: isLoading,
5751
- startIcon: /* @__PURE__ */ jsx44("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx44(
5850
+ startIcon: /* @__PURE__ */ jsx46("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx46(
5752
5851
  "path",
5753
5852
  {
5754
5853
  fill: "#0077B5",
@@ -5762,7 +5861,7 @@ var LinkedInButton = ({
5762
5861
  var LinkedInButton_default = LinkedInButton;
5763
5862
 
5764
5863
  // src/components/adapters/MicrosoftButton.tsx
5765
- import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
5864
+ import { jsx as jsx47, jsxs as jsxs19 } from "react/jsx-runtime";
5766
5865
  var MicrosoftButton = ({
5767
5866
  isLoading,
5768
5867
  preferences,
@@ -5770,7 +5869,7 @@ var MicrosoftButton = ({
5770
5869
  ...rest
5771
5870
  }) => {
5772
5871
  const { t } = useTranslation_default(preferences?.i18n);
5773
- return /* @__PURE__ */ jsx45(
5872
+ return /* @__PURE__ */ jsx47(
5774
5873
  Button_default,
5775
5874
  {
5776
5875
  ...rest,
@@ -5780,11 +5879,11 @@ var MicrosoftButton = ({
5780
5879
  variant: "solid",
5781
5880
  disabled: isLoading,
5782
5881
  startIcon: /* @__PURE__ */ jsxs19("svg", { width: "14", height: "14", viewBox: "0 0 23 23", xmlns: "http://www.w3.org/2000/svg", children: [
5783
- /* @__PURE__ */ jsx45("path", { fill: "#f3f3f3", d: "M0 0h23v23H0z" }),
5784
- /* @__PURE__ */ jsx45("path", { fill: "#f35325", d: "M1 1h10v10H1z" }),
5785
- /* @__PURE__ */ jsx45("path", { fill: "#81bc06", d: "M12 1h10v10H12z" }),
5786
- /* @__PURE__ */ jsx45("path", { fill: "#05a6f0", d: "M1 12h10v10H1z" }),
5787
- /* @__PURE__ */ jsx45("path", { fill: "#ffba08", d: "M12 12h10v10H12z" })
5882
+ /* @__PURE__ */ jsx47("path", { fill: "#f3f3f3", d: "M0 0h23v23H0z" }),
5883
+ /* @__PURE__ */ jsx47("path", { fill: "#f35325", d: "M1 1h10v10H1z" }),
5884
+ /* @__PURE__ */ jsx47("path", { fill: "#81bc06", d: "M12 1h10v10H12z" }),
5885
+ /* @__PURE__ */ jsx47("path", { fill: "#05a6f0", d: "M1 12h10v10H1z" }),
5886
+ /* @__PURE__ */ jsx47("path", { fill: "#ffba08", d: "M12 12h10v10H12z" })
5788
5887
  ] }),
5789
5888
  children: children ?? t("elements.buttons.microsoft.text")
5790
5889
  }
@@ -5793,7 +5892,7 @@ var MicrosoftButton = ({
5793
5892
  var MicrosoftButton_default = MicrosoftButton;
5794
5893
 
5795
5894
  // src/components/adapters/SignInWithEthereumButton.tsx
5796
- import { jsx as jsx46 } from "react/jsx-runtime";
5895
+ import { jsx as jsx48 } from "react/jsx-runtime";
5797
5896
  var SignInWithEthereumButton = ({
5798
5897
  isLoading,
5799
5898
  preferences,
@@ -5801,7 +5900,7 @@ var SignInWithEthereumButton = ({
5801
5900
  ...rest
5802
5901
  }) => {
5803
5902
  const { t } = useTranslation_default(preferences?.i18n);
5804
- return /* @__PURE__ */ jsx46(
5903
+ return /* @__PURE__ */ jsx48(
5805
5904
  Button_default,
5806
5905
  {
5807
5906
  ...rest,
@@ -5810,7 +5909,7 @@ var SignInWithEthereumButton = ({
5810
5909
  color: "secondary",
5811
5910
  variant: "solid",
5812
5911
  disabled: isLoading,
5813
- startIcon: /* @__PURE__ */ jsx46("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx46(
5912
+ startIcon: /* @__PURE__ */ jsx48("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx48(
5814
5913
  "path",
5815
5914
  {
5816
5915
  fill: "#627EEA",
@@ -5824,7 +5923,7 @@ var SignInWithEthereumButton = ({
5824
5923
  var SignInWithEthereumButton_default = SignInWithEthereumButton;
5825
5924
 
5826
5925
  // src/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.tsx
5827
- import { jsx as jsx47 } from "react/jsx-runtime";
5926
+ import { jsx as jsx49 } from "react/jsx-runtime";
5828
5927
  var createSignInOption = ({
5829
5928
  authenticator,
5830
5929
  onSubmit,
@@ -5835,11 +5934,11 @@ var createSignInOption = ({
5835
5934
  const hasParams = authenticator.metadata?.params && authenticator.metadata.params.length > 0;
5836
5935
  switch (authenticator.authenticatorId) {
5837
5936
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.UsernamePassword:
5838
- return /* @__PURE__ */ jsx47(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5937
+ return /* @__PURE__ */ jsx49(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5839
5938
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.IdentifierFirst:
5840
- return /* @__PURE__ */ jsx47(IdentifierFirst_default, { authenticator, preferences, onSubmit, ...rest });
5939
+ return /* @__PURE__ */ jsx49(IdentifierFirst_default, { authenticator, preferences, onSubmit, ...rest });
5841
5940
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Google:
5842
- return /* @__PURE__ */ jsx47(
5941
+ return /* @__PURE__ */ jsx49(
5843
5942
  GoogleButton_default,
5844
5943
  {
5845
5944
  className: buttonClassName,
@@ -5849,7 +5948,7 @@ var createSignInOption = ({
5849
5948
  }
5850
5949
  );
5851
5950
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.GitHub:
5852
- return /* @__PURE__ */ jsx47(
5951
+ return /* @__PURE__ */ jsx49(
5853
5952
  GitHubButton_default,
5854
5953
  {
5855
5954
  preferences,
@@ -5859,7 +5958,7 @@ var createSignInOption = ({
5859
5958
  }
5860
5959
  );
5861
5960
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Microsoft:
5862
- return /* @__PURE__ */ jsx47(
5961
+ return /* @__PURE__ */ jsx49(
5863
5962
  MicrosoftButton_default,
5864
5963
  {
5865
5964
  preferences,
@@ -5869,7 +5968,7 @@ var createSignInOption = ({
5869
5968
  }
5870
5969
  );
5871
5970
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Facebook:
5872
- return /* @__PURE__ */ jsx47(
5971
+ return /* @__PURE__ */ jsx49(
5873
5972
  FacebookButton_default,
5874
5973
  {
5875
5974
  preferences,
@@ -5879,7 +5978,7 @@ var createSignInOption = ({
5879
5978
  }
5880
5979
  );
5881
5980
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.LinkedIn:
5882
- return /* @__PURE__ */ jsx47(
5981
+ return /* @__PURE__ */ jsx49(
5883
5982
  LinkedInButton_default,
5884
5983
  {
5885
5984
  preferences,
@@ -5889,7 +5988,7 @@ var createSignInOption = ({
5889
5988
  }
5890
5989
  );
5891
5990
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.SignInWithEthereum:
5892
- return /* @__PURE__ */ jsx47(
5991
+ return /* @__PURE__ */ jsx49(
5893
5992
  SignInWithEthereumButton_default,
5894
5993
  {
5895
5994
  preferences,
@@ -5899,14 +5998,14 @@ var createSignInOption = ({
5899
5998
  }
5900
5999
  );
5901
6000
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.EmailOtp:
5902
- return hasParams ? /* @__PURE__ */ jsx47(EmailOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx47(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
6001
+ return hasParams ? /* @__PURE__ */ jsx49(EmailOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx49(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5903
6002
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Totp:
5904
- return hasParams ? /* @__PURE__ */ jsx47(Totp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx47(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
6003
+ return hasParams ? /* @__PURE__ */ jsx49(Totp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx49(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5905
6004
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.SmsOtp:
5906
- return hasParams ? /* @__PURE__ */ jsx47(SmsOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx47(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
6005
+ return hasParams ? /* @__PURE__ */ jsx49(SmsOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx49(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5907
6006
  default:
5908
6007
  if (authenticator.idp !== EmbeddedSignInFlowAuthenticatorKnownIdPType2.Local) {
5909
- return /* @__PURE__ */ jsx47(
6008
+ return /* @__PURE__ */ jsx49(
5910
6009
  SocialButton_default,
5911
6010
  {
5912
6011
  authenticator,
@@ -5919,9 +6018,9 @@ var createSignInOption = ({
5919
6018
  );
5920
6019
  }
5921
6020
  if (hasParams) {
5922
- return /* @__PURE__ */ jsx47(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
6021
+ return /* @__PURE__ */ jsx49(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5923
6022
  }
5924
- return /* @__PURE__ */ jsx47(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
6023
+ return /* @__PURE__ */ jsx49(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5925
6024
  }
5926
6025
  };
5927
6026
  var createSignInOptionFromAuthenticator = (authenticator, formValues, touchedFields, isLoading, onInputChange, onSubmit, options) => createSignInOption({
@@ -6016,7 +6115,7 @@ var useStyles12 = (theme, colorScheme, variant) => useMemo20(() => {
6016
6115
  var Alert_styles_default = useStyles12;
6017
6116
 
6018
6117
  // src/components/primitives/Icons/CircleAlert.tsx
6019
- import { jsx as jsx48, jsxs as jsxs20 } from "react/jsx-runtime";
6118
+ import { jsx as jsx50, jsxs as jsxs20 } from "react/jsx-runtime";
6020
6119
  var CircleAlert = (props) => /* @__PURE__ */ jsxs20(
6021
6120
  "svg",
6022
6121
  {
@@ -6031,16 +6130,16 @@ var CircleAlert = (props) => /* @__PURE__ */ jsxs20(
6031
6130
  strokeLinejoin: "round",
6032
6131
  ...props,
6033
6132
  children: [
6034
- /* @__PURE__ */ jsx48("circle", { cx: "12", cy: "12", r: "10" }),
6035
- /* @__PURE__ */ jsx48("line", { x1: "12", x2: "12", y1: "8", y2: "12" }),
6036
- /* @__PURE__ */ jsx48("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" })
6133
+ /* @__PURE__ */ jsx50("circle", { cx: "12", cy: "12", r: "10" }),
6134
+ /* @__PURE__ */ jsx50("line", { x1: "12", x2: "12", y1: "8", y2: "12" }),
6135
+ /* @__PURE__ */ jsx50("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" })
6037
6136
  ]
6038
6137
  }
6039
6138
  );
6040
6139
  var CircleAlert_default = CircleAlert;
6041
6140
 
6042
6141
  // src/components/primitives/Icons/CircleCheck.tsx
6043
- import { jsx as jsx49, jsxs as jsxs21 } from "react/jsx-runtime";
6142
+ import { jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
6044
6143
  var CircleCheck = (props) => /* @__PURE__ */ jsxs21(
6045
6144
  "svg",
6046
6145
  {
@@ -6055,15 +6154,15 @@ var CircleCheck = (props) => /* @__PURE__ */ jsxs21(
6055
6154
  strokeLinejoin: "round",
6056
6155
  ...props,
6057
6156
  children: [
6058
- /* @__PURE__ */ jsx49("circle", { cx: "12", cy: "12", r: "10" }),
6059
- /* @__PURE__ */ jsx49("path", { d: "m9 12 2 2 4-4" })
6157
+ /* @__PURE__ */ jsx51("circle", { cx: "12", cy: "12", r: "10" }),
6158
+ /* @__PURE__ */ jsx51("path", { d: "m9 12 2 2 4-4" })
6060
6159
  ]
6061
6160
  }
6062
6161
  );
6063
6162
  var CircleCheck_default = CircleCheck;
6064
6163
 
6065
6164
  // src/components/primitives/Icons/Info.tsx
6066
- import { jsx as jsx50, jsxs as jsxs22 } from "react/jsx-runtime";
6165
+ import { jsx as jsx52, jsxs as jsxs22 } from "react/jsx-runtime";
6067
6166
  var Info = (props) => /* @__PURE__ */ jsxs22(
6068
6167
  "svg",
6069
6168
  {
@@ -6078,16 +6177,16 @@ var Info = (props) => /* @__PURE__ */ jsxs22(
6078
6177
  strokeLinejoin: "round",
6079
6178
  ...props,
6080
6179
  children: [
6081
- /* @__PURE__ */ jsx50("circle", { cx: "12", cy: "12", r: "10" }),
6082
- /* @__PURE__ */ jsx50("path", { d: "M12 16v-4" }),
6083
- /* @__PURE__ */ jsx50("path", { d: "M12 8h.01" })
6180
+ /* @__PURE__ */ jsx52("circle", { cx: "12", cy: "12", r: "10" }),
6181
+ /* @__PURE__ */ jsx52("path", { d: "M12 16v-4" }),
6182
+ /* @__PURE__ */ jsx52("path", { d: "M12 8h.01" })
6084
6183
  ]
6085
6184
  }
6086
6185
  );
6087
6186
  var Info_default = Info;
6088
6187
 
6089
6188
  // src/components/primitives/Icons/TriangleAlert.tsx
6090
- import { jsx as jsx51, jsxs as jsxs23 } from "react/jsx-runtime";
6189
+ import { jsx as jsx53, jsxs as jsxs23 } from "react/jsx-runtime";
6091
6190
  var TriangleAlert = (props) => /* @__PURE__ */ jsxs23(
6092
6191
  "svg",
6093
6192
  {
@@ -6102,16 +6201,16 @@ var TriangleAlert = (props) => /* @__PURE__ */ jsxs23(
6102
6201
  strokeLinejoin: "round",
6103
6202
  ...props,
6104
6203
  children: [
6105
- /* @__PURE__ */ jsx51("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
6106
- /* @__PURE__ */ jsx51("path", { d: "M12 9v4" }),
6107
- /* @__PURE__ */ jsx51("path", { d: "M12 17h.01" })
6204
+ /* @__PURE__ */ jsx53("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
6205
+ /* @__PURE__ */ jsx53("path", { d: "M12 9v4" }),
6206
+ /* @__PURE__ */ jsx53("path", { d: "M12 17h.01" })
6108
6207
  ]
6109
6208
  }
6110
6209
  );
6111
6210
  var TriangleAlert_default = TriangleAlert;
6112
6211
 
6113
6212
  // src/components/primitives/Alert/Alert.tsx
6114
- import { jsx as jsx52, jsxs as jsxs24 } from "react/jsx-runtime";
6213
+ import { jsx as jsx54, jsxs as jsxs24 } from "react/jsx-runtime";
6115
6214
  var getDefaultIcon = (variant) => {
6116
6215
  switch (variant) {
6117
6216
  case "success":
@@ -6132,7 +6231,7 @@ var Alert = forwardRef8(({ variant = "info", showIcon = true, children, classNam
6132
6231
  const { theme, colorScheme } = useTheme_default();
6133
6232
  const styles = Alert_styles_default(theme, colorScheme, variant);
6134
6233
  const IconComponent = getDefaultIcon(variant);
6135
- return /* @__PURE__ */ jsx52(AlertVariantContext.Provider, { value: variant, children: /* @__PURE__ */ jsxs24(
6234
+ return /* @__PURE__ */ jsx54(AlertVariantContext.Provider, { value: variant, children: /* @__PURE__ */ jsxs24(
6136
6235
  "div",
6137
6236
  {
6138
6237
  ref,
@@ -6147,8 +6246,8 @@ var Alert = forwardRef8(({ variant = "info", showIcon = true, children, classNam
6147
6246
  ),
6148
6247
  ...rest,
6149
6248
  children: [
6150
- showIcon && /* @__PURE__ */ jsx52("div", { className: cx15(withVendorCSSClassPrefix15(bem12("alert", "icon")), styles["icon"]), children: /* @__PURE__ */ jsx52(IconComponent, {}) }),
6151
- /* @__PURE__ */ jsx52("div", { className: cx15(withVendorCSSClassPrefix15(bem12("alert", "content")), styles["content"]), children })
6249
+ showIcon && /* @__PURE__ */ jsx54("div", { className: cx15(withVendorCSSClassPrefix15(bem12("alert", "icon")), styles["icon"]), children: /* @__PURE__ */ jsx54(IconComponent, {}) }),
6250
+ /* @__PURE__ */ jsx54("div", { className: cx15(withVendorCSSClassPrefix15(bem12("alert", "content")), styles["content"]), children })
6152
6251
  ]
6153
6252
  }
6154
6253
  ) });
@@ -6158,7 +6257,7 @@ var AlertTitle = ({ children, className, style, ...rest }) => {
6158
6257
  const variant = useAlertVariant();
6159
6258
  const styles = Alert_styles_default(theme, colorScheme, variant);
6160
6259
  const { color, ...filteredRest } = rest;
6161
- return /* @__PURE__ */ jsx52(
6260
+ return /* @__PURE__ */ jsx54(
6162
6261
  Typography_default,
6163
6262
  {
6164
6263
  component: "h3",
@@ -6176,7 +6275,7 @@ var AlertDescription = ({ children, className, style, ...rest }) => {
6176
6275
  const variant = useAlertVariant();
6177
6276
  const styles = Alert_styles_default(theme, colorScheme, variant);
6178
6277
  const { color, ...filteredRest } = rest;
6179
- return /* @__PURE__ */ jsx52(
6278
+ return /* @__PURE__ */ jsx54(
6180
6279
  Typography_default,
6181
6280
  {
6182
6281
  component: "p",
@@ -6283,12 +6382,12 @@ var useStyles13 = (theme, colorScheme, variant, clickable) => useMemo21(() => {
6283
6382
  var Card_styles_default = useStyles13;
6284
6383
 
6285
6384
  // src/components/primitives/Card/Card.tsx
6286
- import { jsx as jsx53 } from "react/jsx-runtime";
6385
+ import { jsx as jsx55 } from "react/jsx-runtime";
6287
6386
  var Card = forwardRef9(
6288
6387
  ({ variant = "default", clickable = false, children, className, style, ...rest }, ref) => {
6289
6388
  const { theme, colorScheme } = useTheme_default();
6290
6389
  const styles = Card_styles_default(theme, colorScheme, variant, clickable);
6291
- return /* @__PURE__ */ jsx53(
6390
+ return /* @__PURE__ */ jsx55(
6292
6391
  "div",
6293
6392
  {
6294
6393
  ref,
@@ -6313,7 +6412,7 @@ var Card = forwardRef9(
6313
6412
  var CardHeader = forwardRef9(({ children, className, style, ...rest }, ref) => {
6314
6413
  const { theme, colorScheme } = useTheme_default();
6315
6414
  const styles = Card_styles_default(theme, colorScheme, "default", false);
6316
- return /* @__PURE__ */ jsx53(
6415
+ return /* @__PURE__ */ jsx55(
6317
6416
  "div",
6318
6417
  {
6319
6418
  ref,
@@ -6364,7 +6463,7 @@ var CardTitle = ({ children, level = 3, className, style, ...rest }) => {
6364
6463
  }
6365
6464
  };
6366
6465
  const { color, ...filteredRest } = rest;
6367
- return /* @__PURE__ */ jsx53(
6466
+ return /* @__PURE__ */ jsx55(
6368
6467
  Typography_default,
6369
6468
  {
6370
6469
  component: getComponentFromLevel(level),
@@ -6381,7 +6480,7 @@ var CardDescription = ({ children, className, style, ...rest }) => {
6381
6480
  const { theme, colorScheme } = useTheme_default();
6382
6481
  const styles = Card_styles_default(theme, colorScheme, "default", false);
6383
6482
  const { color, ...filteredRest } = rest;
6384
- return /* @__PURE__ */ jsx53(
6483
+ return /* @__PURE__ */ jsx55(
6385
6484
  Typography_default,
6386
6485
  {
6387
6486
  component: "p",
@@ -6397,7 +6496,7 @@ var CardDescription = ({ children, className, style, ...rest }) => {
6397
6496
  var CardAction = forwardRef9(({ children, className, style, ...rest }, ref) => {
6398
6497
  const { theme, colorScheme } = useTheme_default();
6399
6498
  const styles = Card_styles_default(theme, colorScheme, "default", false);
6400
- return /* @__PURE__ */ jsx53(
6499
+ return /* @__PURE__ */ jsx55(
6401
6500
  "div",
6402
6501
  {
6403
6502
  ref,
@@ -6411,7 +6510,7 @@ var CardAction = forwardRef9(({ children, className, style, ...rest }, ref) => {
6411
6510
  var CardContent = forwardRef9(({ children, className, style, ...rest }, ref) => {
6412
6511
  const { theme, colorScheme } = useTheme_default();
6413
6512
  const styles = Card_styles_default(theme, colorScheme, "default", false);
6414
- return /* @__PURE__ */ jsx53(
6513
+ return /* @__PURE__ */ jsx55(
6415
6514
  "div",
6416
6515
  {
6417
6516
  ref,
@@ -6425,7 +6524,7 @@ var CardContent = forwardRef9(({ children, className, style, ...rest }, ref) =>
6425
6524
  var CardFooter = forwardRef9(({ children, className, style, ...rest }, ref) => {
6426
6525
  const { theme, colorScheme } = useTheme_default();
6427
6526
  const styles = Card_styles_default(theme, colorScheme, "default", false);
6428
- return /* @__PURE__ */ jsx53(
6527
+ return /* @__PURE__ */ jsx55(
6429
6528
  "div",
6430
6529
  {
6431
6530
  ref,
@@ -6511,7 +6610,7 @@ var useStyles14 = (theme, colorScheme, orientation, variant, color, hasChildren)
6511
6610
  var Divider_styles_default = useStyles14;
6512
6611
 
6513
6612
  // src/components/primitives/Divider/Divider.tsx
6514
- import { jsx as jsx54, jsxs as jsxs25 } from "react/jsx-runtime";
6613
+ import { jsx as jsx56, jsxs as jsxs25 } from "react/jsx-runtime";
6515
6614
  var Divider = ({
6516
6615
  orientation = "horizontal",
6517
6616
  variant = "solid",
@@ -6524,7 +6623,7 @@ var Divider = ({
6524
6623
  const { theme, colorScheme } = useTheme_default();
6525
6624
  const styles = Divider_styles_default(theme, colorScheme, orientation, variant, color, !!children);
6526
6625
  if (orientation === "vertical") {
6527
- return /* @__PURE__ */ jsx54(
6626
+ return /* @__PURE__ */ jsx56(
6528
6627
  "div",
6529
6628
  {
6530
6629
  className: cx17(
@@ -6558,8 +6657,8 @@ var Divider = ({
6558
6657
  "aria-orientation": "horizontal",
6559
6658
  ...rest,
6560
6659
  children: [
6561
- /* @__PURE__ */ jsx54("div", { className: cx17(withVendorCSSClassPrefix17(bem14("divider", "line")), styles["line"]) }),
6562
- /* @__PURE__ */ jsx54(
6660
+ /* @__PURE__ */ jsx56("div", { className: cx17(withVendorCSSClassPrefix17(bem14("divider", "line")), styles["line"]) }),
6661
+ /* @__PURE__ */ jsx56(
6563
6662
  Typography_default,
6564
6663
  {
6565
6664
  variant: "body2",
@@ -6569,12 +6668,12 @@ var Divider = ({
6569
6668
  children
6570
6669
  }
6571
6670
  ),
6572
- /* @__PURE__ */ jsx54("div", { className: cx17(withVendorCSSClassPrefix17(bem14("divider", "line")), styles["line"]) })
6671
+ /* @__PURE__ */ jsx56("div", { className: cx17(withVendorCSSClassPrefix17(bem14("divider", "line")), styles["line"]) })
6573
6672
  ]
6574
6673
  }
6575
6674
  );
6576
6675
  }
6577
- return /* @__PURE__ */ jsx54(
6676
+ return /* @__PURE__ */ jsx56(
6578
6677
  "div",
6579
6678
  {
6580
6679
  className: cx17(
@@ -6634,7 +6733,7 @@ var useStyles15 = (theme, colorScheme, size) => useMemo23(() => {
6634
6733
  var Logo_styles_default = useStyles15;
6635
6734
 
6636
6735
  // src/components/primitives/Logo/Logo.tsx
6637
- import { jsx as jsx55 } from "react/jsx-runtime";
6736
+ import { jsx as jsx57 } from "react/jsx-runtime";
6638
6737
  var Logo = ({ className, src, alt, title, size = "medium" }) => {
6639
6738
  const { theme, colorScheme } = useTheme_default();
6640
6739
  const styles = Logo_styles_default(theme, colorScheme, size);
@@ -6645,7 +6744,7 @@ var Logo = ({ className, src, alt, title, size = "medium" }) => {
6645
6744
  if (!logoSrc) {
6646
6745
  return null;
6647
6746
  }
6648
- return /* @__PURE__ */ jsx55(
6747
+ return /* @__PURE__ */ jsx57(
6649
6748
  "img",
6650
6749
  {
6651
6750
  src: logoSrc,
@@ -6806,7 +6905,7 @@ var useStyles16 = (theme, colorScheme) => useMemo24(() => {
6806
6905
  var BaseSignIn_styles_default = useStyles16;
6807
6906
 
6808
6907
  // src/components/presentation/auth/SignIn/v1/BaseSignIn.tsx
6809
- import { jsx as jsx56, jsxs as jsxs26 } from "react/jsx-runtime";
6908
+ import { jsx as jsx58, jsxs as jsxs26 } from "react/jsx-runtime";
6810
6909
  var logger4 = createPackageComponentLogger4(
6811
6910
  "@asgardeo/react",
6812
6911
  "BaseSignIn"
@@ -6842,7 +6941,7 @@ var BaseSignInContent = ({
6842
6941
  const [error, setError] = useState15(null);
6843
6942
  const [messages, setMessages] = useState15([]);
6844
6943
  const isLoading = externalIsLoading || isSignInInitializationRequestLoading;
6845
- const reRenderCheckRef = useRef4(false);
6944
+ const reRenderCheckRef = useRef5(false);
6846
6945
  const formFields = currentAuthenticator?.metadata?.params?.map((param) => ({
6847
6946
  initialValue: "",
6848
6947
  name: param.param,
@@ -7308,7 +7407,7 @@ var BaseSignInContent = ({
7308
7407
  );
7309
7408
  const errorClasses = cx19([withVendorCSSClassPrefix19("signin__error")], errorClassName);
7310
7409
  const messageClasses = cx19([withVendorCSSClassPrefix19("signin__messages")], messageClassName);
7311
- useEffect13(() => {
7410
+ useEffect14(() => {
7312
7411
  if (isLoading) {
7313
7412
  return;
7314
7413
  }
@@ -7356,9 +7455,9 @@ var BaseSignInContent = ({
7356
7455
  })();
7357
7456
  }, [isLoading]);
7358
7457
  if (!isInitialized && isLoading) {
7359
- return /* @__PURE__ */ jsx56(Card_default, { className: cx19(containerClasses, styles["card"]), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx56(Card_default.Content, { children: /* @__PURE__ */ jsxs26("div", { className: styles["loadingContainer"], children: [
7360
- /* @__PURE__ */ jsx56(Spinner_default, { size: "medium" }),
7361
- /* @__PURE__ */ jsx56(Typography_default, { variant: "body1", className: styles["loadingText"], children: t("messages.loading.placeholder") })
7458
+ return /* @__PURE__ */ jsx58(Card_default, { className: cx19(containerClasses, styles["card"]), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx58(Card_default.Content, { children: /* @__PURE__ */ jsxs26("div", { className: styles["loadingContainer"], children: [
7459
+ /* @__PURE__ */ jsx58(Spinner_default, { size: "medium" }),
7460
+ /* @__PURE__ */ jsx58(Typography_default, { variant: "body1", className: styles["loadingText"], children: t("messages.loading.placeholder") })
7362
7461
  ] }) }) });
7363
7462
  }
7364
7463
  if (hasMultipleOptions() && !currentAuthenticator) {
@@ -7370,20 +7469,20 @@ var BaseSignInContent = ({
7370
7469
  const optionAuthenticators = availableAuthenticators.filter((auth) => !userPromptAuthenticators.includes(auth)).filter((authenticator) => !HIDDEN_AUTHENTICATORS.includes(authenticator.authenticatorId));
7371
7470
  return /* @__PURE__ */ jsxs26(Card_default, { className: cx19(containerClasses, styles["card"]), "data-testid": "asgardeo-signin", variant, children: [
7372
7471
  (showTitle || showSubtitle) && /* @__PURE__ */ jsxs26(Card_default.Header, { className: styles["header"], children: [
7373
- showTitle && /* @__PURE__ */ jsx56(Card_default.Title, { level: 2, className: styles["title"], children: flowTitle || t("signin.heading") }),
7374
- showSubtitle && /* @__PURE__ */ jsx56(Typography_default, { variant: "body1", className: styles["subtitle"], children: flowSubtitle || t("signin.subheading") })
7472
+ showTitle && /* @__PURE__ */ jsx58(Card_default.Title, { level: 2, className: styles["title"], children: flowTitle || t("signin.heading") }),
7473
+ showSubtitle && /* @__PURE__ */ jsx58(Typography_default, { variant: "body1", className: styles["subtitle"], children: flowSubtitle || t("signin.subheading") })
7375
7474
  ] }),
7376
7475
  /* @__PURE__ */ jsxs26(Card_default.Content, { children: [
7377
- flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx56("div", { className: styles["flowMessagesContainer"], children: flowMessages.map((flowMessage, index) => /* @__PURE__ */ jsx56(
7476
+ flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx58("div", { className: styles["flowMessagesContainer"], children: flowMessages.map((flowMessage, index) => /* @__PURE__ */ jsx58(
7378
7477
  Alert_default,
7379
7478
  {
7380
7479
  variant: flowMessage.type,
7381
7480
  className: cx19(styles["flowMessageItem"], messageClasses),
7382
- children: /* @__PURE__ */ jsx56(Alert_default.Description, { children: flowMessage.message })
7481
+ children: /* @__PURE__ */ jsx58(Alert_default.Description, { children: flowMessage.message })
7383
7482
  },
7384
7483
  flowMessage.id || index
7385
7484
  )) }),
7386
- messages.length > 0 && /* @__PURE__ */ jsx56("div", { className: styles["messagesContainer"], children: messages.map((message, index) => {
7485
+ messages.length > 0 && /* @__PURE__ */ jsx58("div", { className: styles["messagesContainer"], children: messages.map((message, index) => {
7387
7486
  let messageVariant;
7388
7487
  const lowerType = message.type.toLowerCase();
7389
7488
  if (lowerType === "error") {
@@ -7395,24 +7494,24 @@ var BaseSignInContent = ({
7395
7494
  } else {
7396
7495
  messageVariant = "info";
7397
7496
  }
7398
- return /* @__PURE__ */ jsx56(
7497
+ return /* @__PURE__ */ jsx58(
7399
7498
  Alert_default,
7400
7499
  {
7401
7500
  variant: messageVariant,
7402
7501
  className: cx19(styles["messageItem"], messageClasses),
7403
- children: /* @__PURE__ */ jsx56(Alert_default.Description, { children: message.message })
7502
+ children: /* @__PURE__ */ jsx58(Alert_default.Description, { children: message.message })
7404
7503
  },
7405
7504
  index
7406
7505
  );
7407
7506
  }) }),
7408
7507
  error && /* @__PURE__ */ jsxs26(Alert_default, { variant: "error", className: cx19(styles["errorContainer"], errorClasses), children: [
7409
- /* @__PURE__ */ jsx56(Alert_default.Title, { children: "Error" }),
7410
- /* @__PURE__ */ jsx56(Alert_default.Description, { children: error })
7508
+ /* @__PURE__ */ jsx58(Alert_default.Title, { children: "Error" }),
7509
+ /* @__PURE__ */ jsx58(Alert_default.Description, { children: error })
7411
7510
  ] }),
7412
7511
  /* @__PURE__ */ jsxs26("div", { className: styles["contentContainer"], children: [
7413
7512
  userPromptAuthenticators.map((authenticator, index) => /* @__PURE__ */ jsxs26("div", { className: styles["authenticatorItem"], children: [
7414
- index > 0 && /* @__PURE__ */ jsx56(Divider_default, { className: styles["divider"], children: "OR" }),
7415
- /* @__PURE__ */ jsx56(
7513
+ index > 0 && /* @__PURE__ */ jsx58(Divider_default, { className: styles["divider"], children: "OR" }),
7514
+ /* @__PURE__ */ jsx58(
7416
7515
  "form",
7417
7516
  {
7418
7517
  className: styles["form"],
@@ -7440,8 +7539,8 @@ var BaseSignInContent = ({
7440
7539
  }
7441
7540
  )
7442
7541
  ] }, authenticator.authenticatorId)),
7443
- userPromptAuthenticators.length > 0 && optionAuthenticators.length > 0 && /* @__PURE__ */ jsx56(Divider_default, { className: styles["divider"], children: "OR" }),
7444
- optionAuthenticators.map((authenticator) => /* @__PURE__ */ jsx56("div", { className: styles["authenticatorItem"], children: createSignInOptionFromAuthenticator(
7542
+ userPromptAuthenticators.length > 0 && optionAuthenticators.length > 0 && /* @__PURE__ */ jsx58(Divider_default, { className: styles["divider"], children: "OR" }),
7543
+ optionAuthenticators.map((authenticator) => /* @__PURE__ */ jsx58("div", { className: styles["authenticatorItem"], children: createSignInOptionFromAuthenticator(
7445
7544
  authenticator,
7446
7545
  formValues,
7447
7546
  touchedFields,
@@ -7459,55 +7558,55 @@ var BaseSignInContent = ({
7459
7558
  ] });
7460
7559
  }
7461
7560
  if (!currentAuthenticator) {
7462
- return /* @__PURE__ */ jsx56(
7561
+ return /* @__PURE__ */ jsx58(
7463
7562
  Card_default,
7464
7563
  {
7465
7564
  className: cx19(containerClasses, styles["noAuthenticatorCard"]),
7466
7565
  "data-testid": "asgardeo-signin",
7467
7566
  variant,
7468
- children: /* @__PURE__ */ jsx56(Card_default.Content, { children: error && /* @__PURE__ */ jsxs26(Alert_default, { variant: "error", className: styles["errorAlert"], children: [
7469
- /* @__PURE__ */ jsx56(Alert_default.Title, { children: t("errors.heading") || "Error" }),
7470
- /* @__PURE__ */ jsx56(Alert_default.Description, { children: error })
7567
+ children: /* @__PURE__ */ jsx58(Card_default.Content, { children: error && /* @__PURE__ */ jsxs26(Alert_default, { variant: "error", className: styles["errorAlert"], children: [
7568
+ /* @__PURE__ */ jsx58(Alert_default.Title, { children: t("errors.heading") || "Error" }),
7569
+ /* @__PURE__ */ jsx58(Alert_default.Description, { children: error })
7471
7570
  ] }) })
7472
7571
  }
7473
7572
  );
7474
7573
  }
7475
7574
  if (isPasskeyAuthenticator(currentAuthenticator) && !isLoading) {
7476
- useEffect13(() => {
7575
+ useEffect14(() => {
7477
7576
  handleAuthenticatorSelection(currentAuthenticator);
7478
7577
  }, [currentAuthenticator]);
7479
- return /* @__PURE__ */ jsx56(Card_default, { className: cx19(containerClasses, styles["card"]), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx56(Card_default.Content, { children: /* @__PURE__ */ jsxs26("div", { className: styles["centeredContainer"], children: [
7480
- /* @__PURE__ */ jsx56("div", { className: styles["passkeyContainer"], children: /* @__PURE__ */ jsx56(Spinner_default, { size: "large" }) }),
7481
- /* @__PURE__ */ jsx56(Typography_default, { variant: "body1", children: t("passkey.authenticating") || "Authenticating with passkey..." }),
7482
- /* @__PURE__ */ jsx56(Typography_default, { variant: "body2", className: styles["passkeyText"], children: t("passkey.instruction") || "Please use your fingerprint, face, or security key to authenticate." })
7578
+ return /* @__PURE__ */ jsx58(Card_default, { className: cx19(containerClasses, styles["card"]), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx58(Card_default.Content, { children: /* @__PURE__ */ jsxs26("div", { className: styles["centeredContainer"], children: [
7579
+ /* @__PURE__ */ jsx58("div", { className: styles["passkeyContainer"], children: /* @__PURE__ */ jsx58(Spinner_default, { size: "large" }) }),
7580
+ /* @__PURE__ */ jsx58(Typography_default, { variant: "body1", children: t("passkey.authenticating") || "Authenticating with passkey..." }),
7581
+ /* @__PURE__ */ jsx58(Typography_default, { variant: "body2", className: styles["passkeyText"], children: t("passkey.instruction") || "Please use your fingerprint, face, or security key to authenticate." })
7483
7582
  ] }) }) });
7484
7583
  }
7485
7584
  return /* @__PURE__ */ jsxs26(Card_default, { className: cx19(containerClasses, styles["card"]), "data-testid": "asgardeo-signin", variant, children: [
7486
7585
  /* @__PURE__ */ jsxs26(Card_default.Header, { className: styles["header"], children: [
7487
- /* @__PURE__ */ jsx56(Card_default.Title, { level: 2, className: styles["title"], children: flowTitle || t("signin.heading") }),
7488
- /* @__PURE__ */ jsx56(Typography_default, { variant: "body1", className: styles["subtitle"], children: flowSubtitle || t("signin.subheading") }),
7489
- flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx56("div", { className: styles["flowMessagesContainer"], children: flowMessages.map((flowMessage, index) => /* @__PURE__ */ jsx56(
7586
+ /* @__PURE__ */ jsx58(Card_default.Title, { level: 2, className: styles["title"], children: flowTitle || t("signin.heading") }),
7587
+ /* @__PURE__ */ jsx58(Typography_default, { variant: "body1", className: styles["subtitle"], children: flowSubtitle || t("signin.subheading") }),
7588
+ flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx58("div", { className: styles["flowMessagesContainer"], children: flowMessages.map((flowMessage, index) => /* @__PURE__ */ jsx58(
7490
7589
  Alert_default,
7491
7590
  {
7492
7591
  variant: flowMessage.type,
7493
7592
  className: cx19(styles["flowMessageItem"], messageClasses),
7494
- children: /* @__PURE__ */ jsx56(Alert_default.Description, { children: flowMessage.message })
7593
+ children: /* @__PURE__ */ jsx58(Alert_default.Description, { children: flowMessage.message })
7495
7594
  },
7496
7595
  flowMessage.id || index
7497
7596
  )) }),
7498
- messages.length > 0 && /* @__PURE__ */ jsx56("div", { className: styles["messagesContainer"], children: messages.map((message, index) => {
7597
+ messages.length > 0 && /* @__PURE__ */ jsx58("div", { className: styles["messagesContainer"], children: messages.map((message, index) => {
7499
7598
  const messageTypeToVariant = {
7500
7599
  error: "error",
7501
7600
  success: "success",
7502
7601
  warning: "warning"
7503
7602
  };
7504
7603
  const alertVariant = messageTypeToVariant[message.type.toLowerCase()] || "info";
7505
- return /* @__PURE__ */ jsx56(
7604
+ return /* @__PURE__ */ jsx58(
7506
7605
  Alert_default,
7507
7606
  {
7508
7607
  variant: alertVariant,
7509
7608
  className: cx19(styles["messageItem"], messageClasses),
7510
- children: /* @__PURE__ */ jsx56(Alert_default.Description, { children: message.message })
7609
+ children: /* @__PURE__ */ jsx58(Alert_default.Description, { children: message.message })
7511
7610
  },
7512
7611
  index
7513
7612
  );
@@ -7515,10 +7614,10 @@ var BaseSignInContent = ({
7515
7614
  ] }),
7516
7615
  /* @__PURE__ */ jsxs26(Card_default.Content, { children: [
7517
7616
  error && /* @__PURE__ */ jsxs26(Alert_default, { variant: "error", className: cx19(styles["errorContainer"], errorClasses), children: [
7518
- /* @__PURE__ */ jsx56(Alert_default.Title, { children: t("errors.heading") }),
7519
- /* @__PURE__ */ jsx56(Alert_default.Description, { children: error })
7617
+ /* @__PURE__ */ jsx58(Alert_default.Title, { children: t("errors.heading") }),
7618
+ /* @__PURE__ */ jsx58(Alert_default.Description, { children: error })
7520
7619
  ] }),
7521
- /* @__PURE__ */ jsx56(
7620
+ /* @__PURE__ */ jsx58(
7522
7621
  "form",
7523
7622
  {
7524
7623
  className: styles["form"],
@@ -7552,8 +7651,8 @@ var BaseSignIn = ({ showLogo = true, ...rest }) => {
7552
7651
  const { theme } = useTheme_default();
7553
7652
  const styles = BaseSignIn_styles_default(theme, theme.vars.colors.text.primary);
7554
7653
  return /* @__PURE__ */ jsxs26("div", { children: [
7555
- showLogo && /* @__PURE__ */ jsx56("div", { className: styles["logoContainer"], children: /* @__PURE__ */ jsx56(Logo_default, { size: "large" }) }),
7556
- /* @__PURE__ */ jsx56(FlowProvider_default, { children: /* @__PURE__ */ jsx56(BaseSignInContent, { showLogo, ...rest }) })
7654
+ showLogo && /* @__PURE__ */ jsx58("div", { className: styles["logoContainer"], children: /* @__PURE__ */ jsx58(Logo_default, { size: "large" }) }),
7655
+ /* @__PURE__ */ jsx58(FlowProvider_default, { children: /* @__PURE__ */ jsx58(BaseSignInContent, { showLogo, ...rest }) })
7557
7656
  ] });
7558
7657
  };
7559
7658
  var BaseSignIn_default = BaseSignIn;
@@ -7756,7 +7855,7 @@ import DOMPurify from "dompurify";
7756
7855
  import { cloneElement } from "react";
7757
7856
 
7758
7857
  // src/components/adapters/ImageComponent.tsx
7759
- import { jsx as jsx57 } from "react/jsx-runtime";
7858
+ import { jsx as jsx59 } from "react/jsx-runtime";
7760
7859
  var ImageComponent = ({ component }) => {
7761
7860
  const { theme } = useTheme_default();
7762
7861
  const config = component.config || {};
@@ -7773,7 +7872,7 @@ var ImageComponent = ({ component }) => {
7773
7872
  if (!src) {
7774
7873
  return null;
7775
7874
  }
7776
- return /* @__PURE__ */ jsx57("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ jsx57(
7875
+ return /* @__PURE__ */ jsx59("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ jsx59(
7777
7876
  "img",
7778
7877
  {
7779
7878
  src,
@@ -7790,7 +7889,7 @@ var ImageComponent = ({ component }) => {
7790
7889
  var ImageComponent_default = ImageComponent;
7791
7890
 
7792
7891
  // src/components/adapters/SmsOtpButton.tsx
7793
- import { jsx as jsx58 } from "react/jsx-runtime";
7892
+ import { jsx as jsx60 } from "react/jsx-runtime";
7794
7893
  var SmsOtpButton = ({
7795
7894
  isLoading,
7796
7895
  preferences,
@@ -7798,7 +7897,7 @@ var SmsOtpButton = ({
7798
7897
  ...rest
7799
7898
  }) => {
7800
7899
  const { t } = useTranslation_default(preferences?.i18n);
7801
- return /* @__PURE__ */ jsx58(
7900
+ return /* @__PURE__ */ jsx60(
7802
7901
  Button_default,
7803
7902
  {
7804
7903
  ...rest,
@@ -7807,7 +7906,7 @@ var SmsOtpButton = ({
7807
7906
  color: "secondary",
7808
7907
  variant: "solid",
7809
7908
  disabled: isLoading,
7810
- startIcon: /* @__PURE__ */ jsx58("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx58(
7909
+ startIcon: /* @__PURE__ */ jsx60("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx60(
7811
7910
  "path",
7812
7911
  {
7813
7912
  fill: "currentColor",
@@ -7821,7 +7920,7 @@ var SmsOtpButton = ({
7821
7920
  var SmsOtpButton_default = SmsOtpButton;
7822
7921
 
7823
7922
  // src/components/primitives/Icons/ArrowLeftRight.tsx
7824
- import { jsx as jsx59, jsxs as jsxs27 } from "react/jsx-runtime";
7923
+ import { jsx as jsx61, jsxs as jsxs27 } from "react/jsx-runtime";
7825
7924
  var ArrowLeftRight = ({ color = "currentColor", size = 24 }) => /* @__PURE__ */ jsxs27(
7826
7925
  "svg",
7827
7926
  {
@@ -7835,10 +7934,10 @@ var ArrowLeftRight = ({ color = "currentColor", size = 24 }) => /* @__PURE__ */
7835
7934
  strokeLinecap: "round",
7836
7935
  strokeLinejoin: "round",
7837
7936
  children: [
7838
- /* @__PURE__ */ jsx59("path", { d: "M8 3 4 7l4 4" }),
7839
- /* @__PURE__ */ jsx59("path", { d: "M4 7h16" }),
7840
- /* @__PURE__ */ jsx59("path", { d: "m16 21 4-4-4-4" }),
7841
- /* @__PURE__ */ jsx59("path", { d: "M20 17H4" })
7937
+ /* @__PURE__ */ jsx61("path", { d: "M8 3 4 7l4 4" }),
7938
+ /* @__PURE__ */ jsx61("path", { d: "M4 7h16" }),
7939
+ /* @__PURE__ */ jsx61("path", { d: "m16 21 4-4-4-4" }),
7940
+ /* @__PURE__ */ jsx61("path", { d: "M20 17H4" })
7842
7941
  ]
7843
7942
  }
7844
7943
  );
@@ -7852,7 +7951,7 @@ var flowIconRegistry = {
7852
7951
  var flowIconRegistry_default = flowIconRegistry;
7853
7952
 
7854
7953
  // src/components/presentation/auth/AuthOptionFactory.tsx
7855
- import { jsx as jsx60 } from "react/jsx-runtime";
7954
+ import { jsx as jsx62 } from "react/jsx-runtime";
7856
7955
  var logger5 = createPackageComponentLogger5(
7857
7956
  "@asgardeo/react",
7858
7957
  "AuthOptionFactory"
@@ -7951,27 +8050,27 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
7951
8050
  }
7952
8051
  };
7953
8052
  if (matchesSocialProvider(actionId, eventType, buttonText, "google", authType, componentVariant)) {
7954
- return /* @__PURE__ */ jsx60(GoogleButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
8053
+ return /* @__PURE__ */ jsx62(GoogleButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
7955
8054
  }
7956
8055
  if (matchesSocialProvider(actionId, eventType, buttonText, "github", authType, componentVariant)) {
7957
- return /* @__PURE__ */ jsx60(GitHubButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
8056
+ return /* @__PURE__ */ jsx62(GitHubButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
7958
8057
  }
7959
8058
  if (matchesSocialProvider(actionId, eventType, buttonText, "facebook", authType, componentVariant)) {
7960
- return /* @__PURE__ */ jsx60(FacebookButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
8059
+ return /* @__PURE__ */ jsx62(FacebookButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
7961
8060
  }
7962
8061
  if (matchesSocialProvider(actionId, eventType, buttonText, "microsoft", authType, componentVariant)) {
7963
- return /* @__PURE__ */ jsx60(MicrosoftButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
8062
+ return /* @__PURE__ */ jsx62(MicrosoftButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
7964
8063
  }
7965
8064
  if (matchesSocialProvider(actionId, eventType, buttonText, "linkedin", authType, componentVariant)) {
7966
- return /* @__PURE__ */ jsx60(LinkedInButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
8065
+ return /* @__PURE__ */ jsx62(LinkedInButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
7967
8066
  }
7968
8067
  if (matchesSocialProvider(actionId, eventType, buttonText, "ethereum", authType, componentVariant)) {
7969
- return /* @__PURE__ */ jsx60(SignInWithEthereumButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
8068
+ return /* @__PURE__ */ jsx62(SignInWithEthereumButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
7970
8069
  }
7971
8070
  if (actionId === "prompt_mobile" || eventType === "prompt_mobile") {
7972
- return /* @__PURE__ */ jsx60(SmsOtpButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
8071
+ return /* @__PURE__ */ jsx62(SmsOtpButton_default, { onClick: handleClick, className: options.buttonClassName }, key);
7973
8072
  }
7974
- const startIconEl = component.startIcon ? /* @__PURE__ */ jsx60(
8073
+ const startIconEl = component.startIcon ? /* @__PURE__ */ jsx62(
7975
8074
  "img",
7976
8075
  {
7977
8076
  src: component.startIcon,
@@ -7980,7 +8079,7 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
7980
8079
  style: { height: "1.25em", objectFit: "contain", width: "1.25em" }
7981
8080
  }
7982
8081
  ) : null;
7983
- const endIconEl = component.endIcon ? /* @__PURE__ */ jsx60(
8082
+ const endIconEl = component.endIcon ? /* @__PURE__ */ jsx62(
7984
8083
  "img",
7985
8084
  {
7986
8085
  src: component.endIcon,
@@ -7989,7 +8088,7 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
7989
8088
  style: { height: "1.25em", objectFit: "contain", width: "1.25em" }
7990
8089
  }
7991
8090
  ) : null;
7992
- return /* @__PURE__ */ jsx60(
8091
+ return /* @__PURE__ */ jsx62(
7993
8092
  Button_default,
7994
8093
  {
7995
8094
  fullWidth: true,
@@ -8008,10 +8107,10 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
8008
8107
  }
8009
8108
  case EmbeddedFlowComponentType.Text: {
8010
8109
  const variant = getTypographyVariant(component.variant);
8011
- return /* @__PURE__ */ jsx60(Typography_default, { variant, children: resolve(component.label) }, key);
8110
+ return /* @__PURE__ */ jsx62(Typography_default, { variant, children: resolve(component.label) }, key);
8012
8111
  }
8013
8112
  case EmbeddedFlowComponentType.Divider: {
8014
- return /* @__PURE__ */ jsx60(Divider_default, { children: resolve(component.label) || "" }, key);
8113
+ return /* @__PURE__ */ jsx62(Divider_default, { children: resolve(component.label) || "" }, key);
8015
8114
  }
8016
8115
  case EmbeddedFlowComponentType.Select: {
8017
8116
  const identifier = component.ref;
@@ -8022,7 +8121,7 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
8022
8121
  label: typeof opt === "string" ? opt : String(opt.label ?? opt.value ?? ""),
8023
8122
  value: typeof opt === "string" ? opt : String(opt.value ?? "")
8024
8123
  }));
8025
- return /* @__PURE__ */ jsx60(
8124
+ return /* @__PURE__ */ jsx62(
8026
8125
  Select_default,
8027
8126
  {
8028
8127
  name: identifier,
@@ -8057,12 +8156,12 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
8057
8156
  }
8058
8157
  )
8059
8158
  ).filter(Boolean);
8060
- return /* @__PURE__ */ jsx60("form", { id: component.id, children: blockComponents }, key);
8159
+ return /* @__PURE__ */ jsx62("form", { id: component.id, children: blockComponents }, key);
8061
8160
  }
8062
8161
  return null;
8063
8162
  }
8064
8163
  case EmbeddedFlowComponentType.RichText: {
8065
- return /* @__PURE__ */ jsx60(
8164
+ return /* @__PURE__ */ jsx62(
8066
8165
  "div",
8067
8166
  {
8068
8167
  className: richTextClass,
@@ -8072,7 +8171,7 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
8072
8171
  );
8073
8172
  }
8074
8173
  case EmbeddedFlowComponentType.Image: {
8075
- return /* @__PURE__ */ jsx60(
8174
+ return /* @__PURE__ */ jsx62(
8076
8175
  ImageComponent_default,
8077
8176
  {
8078
8177
  component: {
@@ -8102,7 +8201,7 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
8102
8201
  logger5.warn(`Unknown icon name: "${iconName}". Skipping render.`);
8103
8202
  return null;
8104
8203
  }
8105
- return /* @__PURE__ */ jsx60(IconComponent, { size: component.size || 24, color: component.color || "currentColor" }, key);
8204
+ return /* @__PURE__ */ jsx62(IconComponent, { size: component.size || 24, color: component.color || "currentColor" }, key);
8106
8205
  }
8107
8206
  case EmbeddedFlowComponentType.Stack: {
8108
8207
  const direction = component.direction || "row";
@@ -8133,7 +8232,7 @@ var createAuthComponentFromFlow = (component, formValues, touchedFields, formErr
8133
8232
  }
8134
8233
  )
8135
8234
  ) : [];
8136
- return /* @__PURE__ */ jsx60("div", { style: stackStyle, children: stackChildren }, key);
8235
+ return /* @__PURE__ */ jsx62("div", { style: stackStyle, children: stackChildren }, key);
8137
8236
  }
8138
8237
  default:
8139
8238
  logger5.warn(`Unsupported component type: ${component.type}. Skipping render.`);
@@ -8190,7 +8289,7 @@ var renderInviteUserComponents = (components, formValues, touchedFields, formErr
8190
8289
  ).filter(Boolean);
8191
8290
 
8192
8291
  // src/components/presentation/auth/SignIn/v2/BaseSignIn.tsx
8193
- import { jsx as jsx61, jsxs as jsxs28 } from "react/jsx-runtime";
8292
+ import { jsx as jsx63, jsxs as jsxs28 } from "react/jsx-runtime";
8194
8293
  var BaseSignInContent2 = ({
8195
8294
  components = [],
8196
8295
  onSubmit,
@@ -8398,13 +8497,13 @@ var BaseSignInContent2 = ({
8398
8497
  },
8399
8498
  values: formValues
8400
8499
  };
8401
- return /* @__PURE__ */ jsx61("div", { className: containerClasses, "data-testid": "asgardeo-signin", children: children(renderProps) });
8500
+ return /* @__PURE__ */ jsx63("div", { className: containerClasses, "data-testid": "asgardeo-signin", children: children(renderProps) });
8402
8501
  }
8403
8502
  if (isLoading) {
8404
- return /* @__PURE__ */ jsx61(Card_default, { className: cx20(containerClasses, styles.card), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx61(Card_default.Content, { children: /* @__PURE__ */ jsx61("div", { style: { display: "flex", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ jsx61(Spinner_default, {}) }) }) });
8503
+ return /* @__PURE__ */ jsx63(Card_default, { className: cx20(containerClasses, styles.card), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx63(Card_default.Content, { children: /* @__PURE__ */ jsx63("div", { style: { display: "flex", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ jsx63(Spinner_default, {}) }) }) });
8405
8504
  }
8406
8505
  if (!components || components.length === 0) {
8407
- return /* @__PURE__ */ jsx61(Card_default, { className: cx20(containerClasses, styles.card), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx61(Card_default.Content, { children: /* @__PURE__ */ jsx61(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx61(Typography_default, { variant: "body1", children: t("errors.signin.components.not.available") }) }) }) });
8506
+ return /* @__PURE__ */ jsx63(Card_default, { className: cx20(containerClasses, styles.card), "data-testid": "asgardeo-signin", variant, children: /* @__PURE__ */ jsx63(Card_default.Content, { children: /* @__PURE__ */ jsx63(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx63(Typography_default, { variant: "body1", children: t("errors.signin.components.not.available") }) }) }) });
8408
8507
  }
8409
8508
  const {
8410
8509
  title: rawTitle,
@@ -8415,21 +8514,21 @@ var BaseSignInContent2 = ({
8415
8514
  const subtitle = resolveVars3(rawSubtitle, { meta, t });
8416
8515
  return /* @__PURE__ */ jsxs28(Card_default, { className: cx20(containerClasses, styles.card), "data-testid": "asgardeo-signin", variant, children: [
8417
8516
  (showTitle || showSubtitle) && /* @__PURE__ */ jsxs28(Card_default.Header, { className: styles.header, children: [
8418
- showTitle && /* @__PURE__ */ jsx61(Card_default.Title, { level: 2, className: styles.title, children: title }),
8419
- showSubtitle && /* @__PURE__ */ jsx61(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
8517
+ showTitle && /* @__PURE__ */ jsx63(Card_default.Title, { level: 2, className: styles.title, children: title }),
8518
+ showSubtitle && /* @__PURE__ */ jsx63(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
8420
8519
  ] }),
8421
8520
  /* @__PURE__ */ jsxs28(Card_default.Content, { children: [
8422
- externalError && /* @__PURE__ */ jsx61("div", { className: styles.flowMessagesContainer, children: /* @__PURE__ */ jsx61(Alert_default, { variant: "error", className: cx20(styles.flowMessageItem, messageClasses), children: /* @__PURE__ */ jsx61(Alert_default.Description, { children: externalError.message }) }) }),
8423
- flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx61("div", { className: styles.flowMessagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx61(
8521
+ externalError && /* @__PURE__ */ jsx63("div", { className: styles.flowMessagesContainer, children: /* @__PURE__ */ jsx63(Alert_default, { variant: "error", className: cx20(styles.flowMessageItem, messageClasses), children: /* @__PURE__ */ jsx63(Alert_default.Description, { children: externalError.message }) }) }),
8522
+ flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx63("div", { className: styles.flowMessagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx63(
8424
8523
  Alert_default,
8425
8524
  {
8426
8525
  variant: message.type === "error" ? "error" : "info",
8427
8526
  className: cx20(styles.flowMessageItem, messageClasses),
8428
- children: /* @__PURE__ */ jsx61(Alert_default.Description, { children: message.message })
8527
+ children: /* @__PURE__ */ jsx63(Alert_default.Description, { children: message.message })
8429
8528
  },
8430
8529
  index
8431
8530
  )) }),
8432
- /* @__PURE__ */ jsx61("div", { className: styles.contentContainer, children: componentsWithoutHeadings && renderComponents(componentsWithoutHeadings) })
8531
+ /* @__PURE__ */ jsx63("div", { className: styles.contentContainer, children: componentsWithoutHeadings && renderComponents(componentsWithoutHeadings) })
8433
8532
  ] })
8434
8533
  ] });
8435
8534
  };
@@ -8437,22 +8536,22 @@ var BaseSignIn2 = ({ preferences, showLogo = true, ...rest }) => {
8437
8536
  const { theme } = useTheme_default();
8438
8537
  const styles = BaseSignIn_styles_default(theme, theme.vars.colors.text.primary);
8439
8538
  const content = /* @__PURE__ */ jsxs28("div", { children: [
8440
- showLogo && /* @__PURE__ */ jsx61("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx61(Logo_default, { size: "large" }) }),
8441
- /* @__PURE__ */ jsx61(FlowProvider_default, { children: /* @__PURE__ */ jsx61(BaseSignInContent2, { showLogo, ...rest }) })
8539
+ showLogo && /* @__PURE__ */ jsx63("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx63(Logo_default, { size: "large" }) }),
8540
+ /* @__PURE__ */ jsx63(FlowProvider_default, { children: /* @__PURE__ */ jsx63(BaseSignInContent2, { showLogo, ...rest }) })
8442
8541
  ] });
8443
8542
  if (!preferences) return content;
8444
- return /* @__PURE__ */ jsx61(ComponentPreferencesContext_default.Provider, { value: preferences, children: content });
8543
+ return /* @__PURE__ */ jsx63(ComponentPreferencesContext_default.Provider, { value: preferences, children: content });
8445
8544
  };
8446
8545
  var BaseSignIn_default2 = BaseSignIn2;
8447
8546
 
8448
8547
  // src/components/presentation/auth/SignIn/BaseSignIn.tsx
8449
- import { jsx as jsx62 } from "react/jsx-runtime";
8548
+ import { jsx as jsx64 } from "react/jsx-runtime";
8450
8549
  var BaseSignIn3 = (props) => {
8451
8550
  const { platform } = useAsgardeo_default();
8452
8551
  if (platform === Platform4.AsgardeoV2) {
8453
- return /* @__PURE__ */ jsx62(BaseSignIn_default2, { ...props });
8552
+ return /* @__PURE__ */ jsx64(BaseSignIn_default2, { ...props });
8454
8553
  }
8455
- return /* @__PURE__ */ jsx62(BaseSignIn_default, { ...props });
8554
+ return /* @__PURE__ */ jsx64(BaseSignIn_default, { ...props });
8456
8555
  };
8457
8556
  var BaseSignIn_default3 = BaseSignIn3;
8458
8557
 
@@ -8468,10 +8567,10 @@ import {
8468
8567
  EmbeddedSignInFlowStatusV2 as EmbeddedSignInFlowStatusV22,
8469
8568
  EmbeddedSignInFlowTypeV2
8470
8569
  } from "@asgardeo/browser";
8471
- import { useState as useState17, useEffect as useEffect15, useRef as useRef6 } from "react";
8570
+ import { useState as useState17, useEffect as useEffect16, useRef as useRef7 } from "react";
8472
8571
 
8473
8572
  // src/hooks/v2/useOAuthCallback.ts
8474
- import { useEffect as useEffect14, useRef as useRef5 } from "react";
8573
+ import { useEffect as useEffect15, useRef as useRef6 } from "react";
8475
8574
  function cleanupUrlParams() {
8476
8575
  if (typeof window === "undefined") return;
8477
8576
  const url = new URL(window.location.href);
@@ -8496,9 +8595,9 @@ function useOAuthCallback({
8496
8595
  setFlowId,
8497
8596
  tokenValidationAttemptedRef
8498
8597
  }) {
8499
- const internalRef = useRef5(false);
8598
+ const internalRef = useRef6(false);
8500
8599
  const oauthCodeProcessedRef = processedRef ?? internalRef;
8501
- useEffect14(() => {
8600
+ useEffect15(() => {
8502
8601
  if (!isInitialized || isSubmitting) {
8503
8602
  return;
8504
8603
  }
@@ -8744,7 +8843,7 @@ var handlePasskeyAuthentication = async (challengeData) => {
8744
8843
  };
8745
8844
 
8746
8845
  // src/components/presentation/auth/SignIn/v2/SignIn.tsx
8747
- import { Fragment as Fragment12, jsx as jsx63 } from "react/jsx-runtime";
8846
+ import { Fragment as Fragment13, jsx as jsx65 } from "react/jsx-runtime";
8748
8847
  var SignIn = ({
8749
8848
  className,
8750
8849
  preferences,
@@ -8769,9 +8868,9 @@ var SignIn = ({
8769
8868
  flowId: null,
8770
8869
  isActive: false
8771
8870
  });
8772
- const initializationAttemptedRef = useRef6(false);
8773
- const oauthCodeProcessedRef = useRef6(false);
8774
- const passkeyProcessedRef = useRef6(false);
8871
+ const initializationAttemptedRef = useRef7(false);
8872
+ const oauthCodeProcessedRef = useRef7(false);
8873
+ const passkeyProcessedRef = useRef7(false);
8775
8874
  const setFlowId = (flowId) => {
8776
8875
  setCurrentFlowId(flowId);
8777
8876
  if (flowId) {
@@ -8903,7 +9002,7 @@ var SignIn = ({
8903
9002
  initializationAttemptedRef.current = false;
8904
9003
  }
8905
9004
  };
8906
- useEffect15(() => {
9005
+ useEffect16(() => {
8907
9006
  const urlParams = getUrlParams2();
8908
9007
  if (urlParams.error) {
8909
9008
  handleOAuthError(urlParams.error, urlParams.errorDescription);
@@ -9020,7 +9119,7 @@ var SignIn = ({
9020
9119
  processedRef: oauthCodeProcessedRef,
9021
9120
  setFlowId
9022
9121
  });
9023
- useEffect15(() => {
9122
+ useEffect16(() => {
9024
9123
  if (!passkeyState.isActive || !passkeyState.challenge && !passkeyState.creationOptions || !passkeyState.flowId) {
9025
9124
  return;
9026
9125
  }
@@ -9081,9 +9180,9 @@ var SignIn = ({
9081
9180
  meta,
9082
9181
  onSubmit: handleSubmit
9083
9182
  };
9084
- return /* @__PURE__ */ jsx63(Fragment12, { children: children(renderProps) });
9183
+ return /* @__PURE__ */ jsx65(Fragment13, { children: children(renderProps) });
9085
9184
  }
9086
- return /* @__PURE__ */ jsx63(
9185
+ return /* @__PURE__ */ jsx65(
9087
9186
  BaseSignIn_default2,
9088
9187
  {
9089
9188
  components,
@@ -9101,7 +9200,7 @@ var SignIn = ({
9101
9200
  var SignIn_default = SignIn;
9102
9201
 
9103
9202
  // src/components/presentation/auth/SignIn/SignIn.tsx
9104
- import { jsx as jsx64 } from "react/jsx-runtime";
9203
+ import { jsx as jsx66 } from "react/jsx-runtime";
9105
9204
  var SignIn2 = ({ className, size = "medium", children, preferences, ...rest }) => {
9106
9205
  const { signIn, afterSignInUrl, isInitialized, isLoading, platform } = useAsgardeo_default();
9107
9206
  const handleInitialize = async () => await signIn({ response_mode: "direct" });
@@ -9118,7 +9217,7 @@ var SignIn2 = ({ className, size = "medium", children, preferences, ...rest }) =
9118
9217
  }
9119
9218
  };
9120
9219
  if (platform === Platform5.AsgardeoV2) {
9121
- return /* @__PURE__ */ jsx64(
9220
+ return /* @__PURE__ */ jsx66(
9122
9221
  SignIn_default,
9123
9222
  {
9124
9223
  className,
@@ -9131,7 +9230,7 @@ var SignIn2 = ({ className, size = "medium", children, preferences, ...rest }) =
9131
9230
  }
9132
9231
  );
9133
9232
  }
9134
- return /* @__PURE__ */ jsx64(
9233
+ return /* @__PURE__ */ jsx66(
9135
9234
  BaseSignIn_default3,
9136
9235
  {
9137
9236
  isLoading: isLoading || !isInitialized,
@@ -9163,7 +9262,7 @@ import {
9163
9262
  createPackageComponentLogger as createPackageComponentLogger6
9164
9263
  } from "@asgardeo/browser";
9165
9264
  import { cx as cx21 } from "@emotion/css";
9166
- import { useEffect as useEffect16, useState as useState18, useCallback as useCallback12, useRef as useRef7 } from "react";
9265
+ import { useEffect as useEffect17, useState as useState18, useCallback as useCallback12, useRef as useRef8 } from "react";
9167
9266
 
9168
9267
  // src/components/presentation/auth/SignUp/v1/SignUpOptionFactory.tsx
9169
9268
  import { EmbeddedFlowComponentType as EmbeddedFlowComponentType2 } from "@asgardeo/browser";
@@ -9225,13 +9324,13 @@ var DateInput = ({
9225
9324
  var DateInput_default = DateInput;
9226
9325
 
9227
9326
  // src/components/adapters/DividerComponent.tsx
9228
- import { jsx as jsx65 } from "react/jsx-runtime";
9327
+ import { jsx as jsx67 } from "react/jsx-runtime";
9229
9328
  var DividerComponent = ({ component }) => {
9230
9329
  const { theme } = useTheme_default();
9231
9330
  const config = component.config || {};
9232
9331
  const text = config["text"] || "";
9233
9332
  const variant = component.variant?.toLowerCase() || "horizontal";
9234
- return /* @__PURE__ */ jsx65(
9333
+ return /* @__PURE__ */ jsx67(
9235
9334
  Divider_default,
9236
9335
  {
9237
9336
  orientation: variant === "vertical" ? "vertical" : "horizontal",
@@ -9272,7 +9371,7 @@ var EmailInput = ({
9272
9371
  var EmailInput_default = EmailInput;
9273
9372
 
9274
9373
  // src/components/adapters/FormContainer.tsx
9275
- import { jsx as jsx66 } from "react/jsx-runtime";
9374
+ import { jsx as jsx68 } from "react/jsx-runtime";
9276
9375
  var FormContainer = (props) => {
9277
9376
  const { component } = props;
9278
9377
  if (component.components && component.components.length > 0) {
@@ -9285,14 +9384,14 @@ var FormContainer = (props) => {
9285
9384
  props.onSubmit(submitButton, props.formValues);
9286
9385
  }
9287
9386
  };
9288
- return /* @__PURE__ */ jsx66("form", { onSubmit: handleFormSubmit, style: { display: "flex", flexDirection: "column" }, children: component.components.map(
9387
+ return /* @__PURE__ */ jsx68("form", { onSubmit: handleFormSubmit, style: { display: "flex", flexDirection: "column" }, children: component.components.map(
9289
9388
  (childComponent) => createSignUpComponent({
9290
9389
  ...props,
9291
9390
  component: childComponent
9292
9391
  })
9293
9392
  ) }, component.id);
9294
9393
  }
9295
- return /* @__PURE__ */ jsx66("div", {}, component.id);
9394
+ return /* @__PURE__ */ jsx68("div", {}, component.id);
9296
9395
  };
9297
9396
  var FormContainer_default = FormContainer;
9298
9397
 
@@ -9418,7 +9517,7 @@ var SelectInput = ({
9418
9517
  var SelectInput_default = SelectInput;
9419
9518
 
9420
9519
  // src/components/adapters/SubmitButton.tsx
9421
- import { jsx as jsx67 } from "react/jsx-runtime";
9520
+ import { jsx as jsx69 } from "react/jsx-runtime";
9422
9521
  var ButtonComponent = ({
9423
9522
  component,
9424
9523
  isLoading,
@@ -9451,7 +9550,7 @@ var ButtonComponent = ({
9451
9550
  onSubmit(component);
9452
9551
  }
9453
9552
  };
9454
- return /* @__PURE__ */ jsx67(
9553
+ return /* @__PURE__ */ jsx69(
9455
9554
  Button_default,
9456
9555
  {
9457
9556
  type: buttonType === "submit" ? "submit" : "button",
@@ -9462,7 +9561,7 @@ var ButtonComponent = ({
9462
9561
  onClick: buttonType !== "submit" ? handleClick : void 0,
9463
9562
  className: buttonClassName,
9464
9563
  style: { width: "100%" },
9465
- children: isLoading ? /* @__PURE__ */ jsx67(Spinner_default, { size: "small" }) : buttonText
9564
+ children: isLoading ? /* @__PURE__ */ jsx69(Spinner_default, { size: "small" }) : buttonText
9466
9565
  },
9467
9566
  component.id
9468
9567
  );
@@ -9470,7 +9569,7 @@ var ButtonComponent = ({
9470
9569
  var SubmitButton_default = ButtonComponent;
9471
9570
 
9472
9571
  // src/components/adapters/TelephoneInput.tsx
9473
- import { jsx as jsx68 } from "react/jsx-runtime";
9572
+ import { jsx as jsx70 } from "react/jsx-runtime";
9474
9573
  var TelephoneInput = ({
9475
9574
  component,
9476
9575
  formValues,
@@ -9483,7 +9582,7 @@ var TelephoneInput = ({
9483
9582
  const fieldName = config["identifier"] || config["name"] || component.id;
9484
9583
  const value = formValues[fieldName] || "";
9485
9584
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
9486
- return /* @__PURE__ */ jsx68(
9585
+ return /* @__PURE__ */ jsx70(
9487
9586
  TextField_default,
9488
9587
  {
9489
9588
  name: fieldName,
@@ -9531,7 +9630,7 @@ var TextInput = ({
9531
9630
  var TextInput_default = TextInput;
9532
9631
 
9533
9632
  // src/components/adapters/Typography.tsx
9534
- import { jsx as jsx69 } from "react/jsx-runtime";
9633
+ import { jsx as jsx71 } from "react/jsx-runtime";
9535
9634
  var TypographyComponent = ({ component }) => {
9536
9635
  const { theme } = useTheme_default();
9537
9636
  const config = component.config || {};
@@ -9572,7 +9671,7 @@ var TypographyComponent = ({ component }) => {
9572
9671
  default:
9573
9672
  typographyVariant = "body1";
9574
9673
  }
9575
- return /* @__PURE__ */ jsx69(
9674
+ return /* @__PURE__ */ jsx71(
9576
9675
  Typography_default,
9577
9676
  {
9578
9677
  variant: typographyVariant,
@@ -9585,69 +9684,69 @@ var TypographyComponent = ({ component }) => {
9585
9684
  var Typography_default2 = TypographyComponent;
9586
9685
 
9587
9686
  // src/components/presentation/auth/SignUp/v1/SignUpOptionFactory.tsx
9588
- import { jsx as jsx70 } from "react/jsx-runtime";
9687
+ import { jsx as jsx72 } from "react/jsx-runtime";
9589
9688
  var createSignUpComponent = ({ component, onSubmit, ...rest }) => {
9590
9689
  switch (component.type) {
9591
9690
  case EmbeddedFlowComponentType2.Typography:
9592
- return /* @__PURE__ */ jsx70(Typography_default2, { component, onSubmit, ...rest });
9691
+ return /* @__PURE__ */ jsx72(Typography_default2, { component, onSubmit, ...rest });
9593
9692
  case EmbeddedFlowComponentType2.Input: {
9594
9693
  const inputVariant = component.variant?.toUpperCase();
9595
9694
  const inputType = component.config["type"]?.toLowerCase();
9596
9695
  if (inputVariant === "EMAIL" || inputType === "email") {
9597
- return /* @__PURE__ */ jsx70(EmailInput_default, { component, onSubmit, ...rest });
9696
+ return /* @__PURE__ */ jsx72(EmailInput_default, { component, onSubmit, ...rest });
9598
9697
  }
9599
9698
  if (inputVariant === "PASSWORD" || inputType === "password") {
9600
- return /* @__PURE__ */ jsx70(PasswordInput_default, { component, onSubmit, ...rest });
9699
+ return /* @__PURE__ */ jsx72(PasswordInput_default, { component, onSubmit, ...rest });
9601
9700
  }
9602
9701
  if (inputVariant === "TELEPHONE" || inputType === "tel") {
9603
- return /* @__PURE__ */ jsx70(TelephoneInput_default, { component, onSubmit, ...rest });
9702
+ return /* @__PURE__ */ jsx72(TelephoneInput_default, { component, onSubmit, ...rest });
9604
9703
  }
9605
9704
  if (inputVariant === "NUMBER" || inputType === "number") {
9606
- return /* @__PURE__ */ jsx70(NumberInput_default, { component, onSubmit, ...rest });
9705
+ return /* @__PURE__ */ jsx72(NumberInput_default, { component, onSubmit, ...rest });
9607
9706
  }
9608
9707
  if (inputVariant === "DATE" || inputType === "date") {
9609
- return /* @__PURE__ */ jsx70(DateInput_default, { component, onSubmit, ...rest });
9708
+ return /* @__PURE__ */ jsx72(DateInput_default, { component, onSubmit, ...rest });
9610
9709
  }
9611
9710
  if (inputVariant === "CHECKBOX" || inputType === "checkbox") {
9612
- return /* @__PURE__ */ jsx70(CheckboxInput_default, { component, onSubmit, ...rest });
9711
+ return /* @__PURE__ */ jsx72(CheckboxInput_default, { component, onSubmit, ...rest });
9613
9712
  }
9614
- return /* @__PURE__ */ jsx70(TextInput_default, { component, onSubmit, ...rest });
9713
+ return /* @__PURE__ */ jsx72(TextInput_default, { component, onSubmit, ...rest });
9615
9714
  }
9616
9715
  case EmbeddedFlowComponentType2.Button: {
9617
9716
  const buttonVariant = component.variant?.toUpperCase();
9618
9717
  const buttonText = component.config["text"] || component.config["label"] || "";
9619
9718
  if (buttonVariant === "SOCIAL") {
9620
9719
  if (buttonText.toLowerCase().includes("google")) {
9621
- return /* @__PURE__ */ jsx70(GoogleButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9720
+ return /* @__PURE__ */ jsx72(GoogleButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9622
9721
  }
9623
9722
  if (buttonText.toLowerCase().includes("github")) {
9624
- return /* @__PURE__ */ jsx70(GitHubButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9723
+ return /* @__PURE__ */ jsx72(GitHubButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9625
9724
  }
9626
9725
  if (buttonText.toLowerCase().includes("microsoft")) {
9627
- return /* @__PURE__ */ jsx70(MicrosoftButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9726
+ return /* @__PURE__ */ jsx72(MicrosoftButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9628
9727
  }
9629
9728
  if (buttonText.toLowerCase().includes("facebook")) {
9630
- return /* @__PURE__ */ jsx70(FacebookButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9729
+ return /* @__PURE__ */ jsx72(FacebookButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9631
9730
  }
9632
9731
  if (buttonText.toLowerCase().includes("linkedin")) {
9633
- return /* @__PURE__ */ jsx70(LinkedInButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9732
+ return /* @__PURE__ */ jsx72(LinkedInButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9634
9733
  }
9635
9734
  if (buttonText.toLowerCase().includes("ethereum")) {
9636
- return /* @__PURE__ */ jsx70(SignInWithEthereumButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9735
+ return /* @__PURE__ */ jsx72(SignInWithEthereumButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
9637
9736
  }
9638
9737
  }
9639
- return /* @__PURE__ */ jsx70(SubmitButton_default, { component, onSubmit, ...rest });
9738
+ return /* @__PURE__ */ jsx72(SubmitButton_default, { component, onSubmit, ...rest });
9640
9739
  }
9641
9740
  case EmbeddedFlowComponentType2.Form:
9642
- return /* @__PURE__ */ jsx70(FormContainer_default, { component, onSubmit, ...rest });
9741
+ return /* @__PURE__ */ jsx72(FormContainer_default, { component, onSubmit, ...rest });
9643
9742
  case EmbeddedFlowComponentType2.Select:
9644
- return /* @__PURE__ */ jsx70(SelectInput_default, { component, onSubmit, ...rest });
9743
+ return /* @__PURE__ */ jsx72(SelectInput_default, { component, onSubmit, ...rest });
9645
9744
  case EmbeddedFlowComponentType2.Divider:
9646
- return /* @__PURE__ */ jsx70(DividerComponent_default, { component, onSubmit, ...rest });
9745
+ return /* @__PURE__ */ jsx72(DividerComponent_default, { component, onSubmit, ...rest });
9647
9746
  case EmbeddedFlowComponentType2.Image:
9648
- return /* @__PURE__ */ jsx70(ImageComponent_default, { component, onSubmit, ...rest });
9747
+ return /* @__PURE__ */ jsx72(ImageComponent_default, { component, onSubmit, ...rest });
9649
9748
  default:
9650
- return /* @__PURE__ */ jsx70("div", {});
9749
+ return /* @__PURE__ */ jsx72("div", {});
9651
9750
  }
9652
9751
  };
9653
9752
  var createSignUpOptionFromComponent = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => createSignUpComponent({
@@ -9816,7 +9915,7 @@ var useStyles17 = (theme, colorScheme) => useMemo25(() => {
9816
9915
  var BaseSignUp_styles_default = useStyles17;
9817
9916
 
9818
9917
  // src/components/presentation/auth/SignUp/v1/BaseSignUp.tsx
9819
- import { jsx as jsx71, jsxs as jsxs29 } from "react/jsx-runtime";
9918
+ import { jsx as jsx73, jsxs as jsxs29 } from "react/jsx-runtime";
9820
9919
  var logger6 = createPackageComponentLogger6(
9821
9920
  "@asgardeo/react",
9822
9921
  "BaseSignUp"
@@ -9881,7 +9980,7 @@ var BaseSignUpContent = ({
9881
9980
  const [isLoading, setIsLoading] = useState18(false);
9882
9981
  const [isFlowInitialized, setIsFlowInitialized] = useState18(false);
9883
9982
  const [currentFlow, setCurrentFlow] = useState18(null);
9884
- const initializationAttemptedRef = useRef7(false);
9983
+ const initializationAttemptedRef = useRef8(false);
9885
9984
  const extractFormFields = useCallback12(
9886
9985
  (components) => {
9887
9986
  const fields = [];
@@ -10167,7 +10266,7 @@ var BaseSignUpContent = ({
10167
10266
  handleSubmit
10168
10267
  ]
10169
10268
  );
10170
- useEffect16(() => {
10269
+ useEffect17(() => {
10171
10270
  if (isInitialized && !isFlowInitialized && !initializationAttemptedRef.current) {
10172
10271
  initializationAttemptedRef.current = true;
10173
10272
  (async () => {
@@ -10219,33 +10318,33 @@ var BaseSignUpContent = ({
10219
10318
  validateForm,
10220
10319
  values: formValues
10221
10320
  };
10222
- return /* @__PURE__ */ jsx71("div", { className: containerClasses, children: children(renderProps) });
10321
+ return /* @__PURE__ */ jsx73("div", { className: containerClasses, children: children(renderProps) });
10223
10322
  }
10224
10323
  if (!isFlowInitialized && isLoading) {
10225
- return /* @__PURE__ */ jsx71(Card_default, { className: cx21(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx71(Card_default.Content, { children: /* @__PURE__ */ jsx71("div", { className: styles.loadingContainer, children: /* @__PURE__ */ jsx71(Spinner_default, { size: "medium" }) }) }) });
10324
+ return /* @__PURE__ */ jsx73(Card_default, { className: cx21(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx73(Card_default.Content, { children: /* @__PURE__ */ jsx73("div", { className: styles.loadingContainer, children: /* @__PURE__ */ jsx73(Spinner_default, { size: "medium" }) }) }) });
10226
10325
  }
10227
10326
  if (!currentFlow) {
10228
- return /* @__PURE__ */ jsx71(Card_default, { className: cx21(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx71(Card_default.Content, { children: /* @__PURE__ */ jsxs29(Alert_default, { variant: "error", className: errorClasses, children: [
10229
- /* @__PURE__ */ jsx71(Alert_default.Title, { children: t("errors.heading") }),
10230
- /* @__PURE__ */ jsx71(Alert_default.Description, { children: t("errors.signup.flow.initialization.failure") })
10327
+ return /* @__PURE__ */ jsx73(Card_default, { className: cx21(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx73(Card_default.Content, { children: /* @__PURE__ */ jsxs29(Alert_default, { variant: "error", className: errorClasses, children: [
10328
+ /* @__PURE__ */ jsx73(Alert_default.Title, { children: t("errors.heading") }),
10329
+ /* @__PURE__ */ jsx73(Alert_default.Description, { children: t("errors.signup.flow.initialization.failure") })
10231
10330
  ] }) }) });
10232
10331
  }
10233
10332
  return /* @__PURE__ */ jsxs29(Card_default, { className: cx21(containerClasses, styles.card), variant, children: [
10234
10333
  (showTitle || showSubtitle) && /* @__PURE__ */ jsxs29(Card_default.Header, { className: styles.header, children: [
10235
- showTitle && /* @__PURE__ */ jsx71(Card_default.Title, { level: 2, className: styles.title, children: flowTitle || t("signup.heading") }),
10236
- showSubtitle && /* @__PURE__ */ jsx71(Typography_default, { variant: "body1", className: styles.subtitle, children: flowSubtitle || t("signup.subheading") })
10334
+ showTitle && /* @__PURE__ */ jsx73(Card_default.Title, { level: 2, className: styles.title, children: flowTitle || t("signup.heading") }),
10335
+ showSubtitle && /* @__PURE__ */ jsx73(Typography_default, { variant: "body1", className: styles.subtitle, children: flowSubtitle || t("signup.subheading") })
10237
10336
  ] }),
10238
10337
  /* @__PURE__ */ jsxs29(Card_default.Content, { children: [
10239
- flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx71("div", { className: styles.flowMessagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx71(
10338
+ flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx73("div", { className: styles.flowMessagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx73(
10240
10339
  Alert_default,
10241
10340
  {
10242
10341
  variant: message.type?.toLowerCase() === "error" ? "error" : "info",
10243
10342
  className: cx21(styles.flowMessageItem, messageClasses),
10244
- children: /* @__PURE__ */ jsx71(Alert_default.Description, { children: message.message })
10343
+ children: /* @__PURE__ */ jsx73(Alert_default.Description, { children: message.message })
10245
10344
  },
10246
10345
  message.id || index
10247
10346
  )) }),
10248
- /* @__PURE__ */ jsx71("div", { className: styles.contentContainer, children: currentFlow.data?.components && currentFlow.data.components.length > 0 ? renderComponents(currentFlow.data.components) : /* @__PURE__ */ jsx71(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx71(Typography_default, { variant: "body1", children: t("errors.signup.components.not.available") }) }) })
10347
+ /* @__PURE__ */ jsx73("div", { className: styles.contentContainer, children: currentFlow.data?.components && currentFlow.data.components.length > 0 ? renderComponents(currentFlow.data.components) : /* @__PURE__ */ jsx73(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx73(Typography_default, { variant: "body1", children: t("errors.signup.components.not.available") }) }) })
10249
10348
  ] })
10250
10349
  ] });
10251
10350
  };
@@ -10253,8 +10352,8 @@ var BaseSignUp = ({ showLogo = true, ...rest }) => {
10253
10352
  const { theme, colorScheme } = useTheme_default();
10254
10353
  const styles = BaseSignUp_styles_default(theme, colorScheme);
10255
10354
  return /* @__PURE__ */ jsxs29("div", { children: [
10256
- showLogo && /* @__PURE__ */ jsx71("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx71(Logo_default, { size: "large" }) }),
10257
- /* @__PURE__ */ jsx71(FlowProvider_default, { children: /* @__PURE__ */ jsx71(BaseSignUpContent, { showLogo, ...rest }) })
10355
+ showLogo && /* @__PURE__ */ jsx73("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx73(Logo_default, { size: "large" }) }),
10356
+ /* @__PURE__ */ jsx73(FlowProvider_default, { children: /* @__PURE__ */ jsx73(BaseSignUpContent, { showLogo, ...rest }) })
10258
10357
  ] });
10259
10358
  };
10260
10359
  var BaseSignUp_default = BaseSignUp;
@@ -10268,8 +10367,8 @@ import {
10268
10367
  createPackageComponentLogger as createPackageComponentLogger7
10269
10368
  } from "@asgardeo/browser";
10270
10369
  import { cx as cx22 } from "@emotion/css";
10271
- import { useEffect as useEffect17, useState as useState19, useCallback as useCallback13, useRef as useRef8 } from "react";
10272
- import { jsx as jsx72, jsxs as jsxs30 } from "react/jsx-runtime";
10370
+ import { useEffect as useEffect18, useState as useState19, useCallback as useCallback13, useRef as useRef9 } from "react";
10371
+ import { jsx as jsx74, jsxs as jsxs30 } from "react/jsx-runtime";
10273
10372
  var logger7 = createPackageComponentLogger7(
10274
10373
  "@asgardeo/react",
10275
10374
  "BaseSignUp"
@@ -10310,8 +10409,8 @@ var BaseSignUpContent2 = ({
10310
10409
  flowId: null,
10311
10410
  isActive: false
10312
10411
  });
10313
- const initializationAttemptedRef = useRef8(false);
10314
- const passkeyProcessedRef = useRef8(false);
10412
+ const initializationAttemptedRef = useRef9(false);
10413
+ const passkeyProcessedRef = useRef9(false);
10315
10414
  const handleError = useCallback13(
10316
10415
  (error) => {
10317
10416
  const errorMessage = error?.failureReason || extractErrorMessage(error, t);
@@ -10604,7 +10703,7 @@ var BaseSignUpContent2 = ({
10604
10703
  setIsLoading(false);
10605
10704
  }
10606
10705
  };
10607
- useEffect17(() => {
10706
+ useEffect18(() => {
10608
10707
  if (!passkeyState.isActive || !passkeyState.creationOptions || !passkeyState.flowId) {
10609
10708
  return;
10610
10709
  }
@@ -10710,7 +10809,7 @@ var BaseSignUpContent2 = ({
10710
10809
  state: urlParams.get("state")
10711
10810
  };
10712
10811
  };
10713
- useEffect17(() => {
10812
+ useEffect18(() => {
10714
10813
  const urlParams = getUrlParams2();
10715
10814
  if (urlParams.code || urlParams.state) {
10716
10815
  return;
@@ -10773,15 +10872,15 @@ var BaseSignUpContent2 = ({
10773
10872
  },
10774
10873
  values: formValues
10775
10874
  };
10776
- return /* @__PURE__ */ jsx72("div", { className: containerClasses, children: children(renderProps) });
10875
+ return /* @__PURE__ */ jsx74("div", { className: containerClasses, children: children(renderProps) });
10777
10876
  }
10778
10877
  if (!isFlowInitialized && isLoading) {
10779
- return /* @__PURE__ */ jsx72(Card_default, { className: cx22(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx72(Card_default.Content, { children: /* @__PURE__ */ jsx72("div", { className: styles.loadingContainer, children: /* @__PURE__ */ jsx72(Spinner_default, { size: "medium" }) }) }) });
10878
+ return /* @__PURE__ */ jsx74(Card_default, { className: cx22(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx74(Card_default.Content, { children: /* @__PURE__ */ jsx74("div", { className: styles.loadingContainer, children: /* @__PURE__ */ jsx74(Spinner_default, { size: "medium" }) }) }) });
10780
10879
  }
10781
10880
  if (!currentFlow) {
10782
- return /* @__PURE__ */ jsx72(Card_default, { className: cx22(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx72(Card_default.Content, { children: /* @__PURE__ */ jsxs30(Alert_default, { variant: "error", className: errorClasses, children: [
10783
- /* @__PURE__ */ jsx72(Alert_default.Title, { children: t("errors.heading") }),
10784
- /* @__PURE__ */ jsx72(Alert_default.Description, { children: t("errors.signup.flow.initialization.failure") })
10881
+ return /* @__PURE__ */ jsx74(Card_default, { className: cx22(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx74(Card_default.Content, { children: /* @__PURE__ */ jsxs30(Alert_default, { variant: "error", className: errorClasses, children: [
10882
+ /* @__PURE__ */ jsx74(Alert_default.Title, { children: t("errors.heading") }),
10883
+ /* @__PURE__ */ jsx74(Alert_default.Description, { children: t("errors.signup.flow.initialization.failure") })
10785
10884
  ] }) }) });
10786
10885
  }
10787
10886
  const componentsToRender = currentFlow.data?.components || [];
@@ -10794,21 +10893,21 @@ var BaseSignUpContent2 = ({
10794
10893
  );
10795
10894
  return /* @__PURE__ */ jsxs30(Card_default, { className: cx22(containerClasses, styles.card), variant, children: [
10796
10895
  (showTitle || showSubtitle) && /* @__PURE__ */ jsxs30(Card_default.Header, { className: styles.header, children: [
10797
- showTitle && /* @__PURE__ */ jsx72(Card_default.Title, { level: 2, className: styles.title, children: title }),
10798
- showSubtitle && /* @__PURE__ */ jsx72(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
10896
+ showTitle && /* @__PURE__ */ jsx74(Card_default.Title, { level: 2, className: styles.title, children: title }),
10897
+ showSubtitle && /* @__PURE__ */ jsx74(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
10799
10898
  ] }),
10800
10899
  /* @__PURE__ */ jsxs30(Card_default.Content, { children: [
10801
- externalError && /* @__PURE__ */ jsx72("div", { className: styles.flowMessagesContainer, children: /* @__PURE__ */ jsx72(Alert_default, { variant: "error", className: cx22(styles.flowMessageItem, messageClasses), children: /* @__PURE__ */ jsx72(Alert_default.Description, { children: externalError.message }) }) }),
10802
- flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx72("div", { className: styles.flowMessagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx72(
10900
+ externalError && /* @__PURE__ */ jsx74("div", { className: styles.flowMessagesContainer, children: /* @__PURE__ */ jsx74(Alert_default, { variant: "error", className: cx22(styles.flowMessageItem, messageClasses), children: /* @__PURE__ */ jsx74(Alert_default.Description, { children: externalError.message }) }) }),
10901
+ flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx74("div", { className: styles.flowMessagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx74(
10803
10902
  Alert_default,
10804
10903
  {
10805
10904
  variant: message.type?.toLowerCase() === "error" ? "error" : "info",
10806
10905
  className: cx22(styles.flowMessageItem, messageClasses),
10807
- children: /* @__PURE__ */ jsx72(Alert_default.Description, { children: message.message })
10906
+ children: /* @__PURE__ */ jsx74(Alert_default.Description, { children: message.message })
10808
10907
  },
10809
10908
  message.id || index
10810
10909
  )) }),
10811
- /* @__PURE__ */ jsx72("div", { className: styles.contentContainer, children: componentsWithoutHeadings && componentsWithoutHeadings.length > 0 ? renderComponents(componentsWithoutHeadings) : /* @__PURE__ */ jsx72(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx72(Typography_default, { variant: "body1", children: t("errors.signup.components.not.available") }) }) })
10910
+ /* @__PURE__ */ jsx74("div", { className: styles.contentContainer, children: componentsWithoutHeadings && componentsWithoutHeadings.length > 0 ? renderComponents(componentsWithoutHeadings) : /* @__PURE__ */ jsx74(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx74(Typography_default, { variant: "body1", children: t("errors.signup.components.not.available") }) }) })
10812
10911
  ] })
10813
10912
  ] });
10814
10913
  };
@@ -10816,22 +10915,22 @@ var BaseSignUp2 = ({ preferences, showLogo = true, ...rest }) => {
10816
10915
  const { theme, colorScheme } = useTheme_default();
10817
10916
  const styles = BaseSignUp_styles_default(theme, colorScheme);
10818
10917
  const content = /* @__PURE__ */ jsxs30("div", { children: [
10819
- showLogo && /* @__PURE__ */ jsx72("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx72(Logo_default, { size: "large" }) }),
10820
- /* @__PURE__ */ jsx72(FlowProvider_default, { children: /* @__PURE__ */ jsx72(BaseSignUpContent2, { showLogo, ...rest }) })
10918
+ showLogo && /* @__PURE__ */ jsx74("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx74(Logo_default, { size: "large" }) }),
10919
+ /* @__PURE__ */ jsx74(FlowProvider_default, { children: /* @__PURE__ */ jsx74(BaseSignUpContent2, { showLogo, ...rest }) })
10821
10920
  ] });
10822
10921
  if (!preferences) return content;
10823
- return /* @__PURE__ */ jsx72(ComponentPreferencesContext_default.Provider, { value: preferences, children: content });
10922
+ return /* @__PURE__ */ jsx74(ComponentPreferencesContext_default.Provider, { value: preferences, children: content });
10824
10923
  };
10825
10924
  var BaseSignUp_default2 = BaseSignUp2;
10826
10925
 
10827
10926
  // src/components/presentation/auth/SignUp/BaseSignUp.tsx
10828
- import { jsx as jsx73 } from "react/jsx-runtime";
10927
+ import { jsx as jsx75 } from "react/jsx-runtime";
10829
10928
  var BaseSignUp3 = (props) => {
10830
10929
  const { platform } = useAsgardeo_default();
10831
10930
  if (platform === Platform6.AsgardeoV2) {
10832
- return /* @__PURE__ */ jsx73(BaseSignUp_default2, { ...props });
10931
+ return /* @__PURE__ */ jsx75(BaseSignUp_default2, { ...props });
10833
10932
  }
10834
- return /* @__PURE__ */ jsx73(BaseSignUp_default, { ...props });
10933
+ return /* @__PURE__ */ jsx75(BaseSignUp_default, { ...props });
10835
10934
  };
10836
10935
  var BaseSignUp_default3 = BaseSignUp3;
10837
10936
 
@@ -10843,7 +10942,7 @@ import {
10843
10942
  EmbeddedFlowResponseType as EmbeddedFlowResponseType3,
10844
10943
  EmbeddedFlowType as EmbeddedFlowType2
10845
10944
  } from "@asgardeo/browser";
10846
- import { jsx as jsx74 } from "react/jsx-runtime";
10945
+ import { jsx as jsx76 } from "react/jsx-runtime";
10847
10946
  var SignUp = ({
10848
10947
  className,
10849
10948
  size = "medium",
@@ -10872,7 +10971,7 @@ var SignUp = ({
10872
10971
  window.location.href = response.data.redirectURL;
10873
10972
  }
10874
10973
  };
10875
- return /* @__PURE__ */ jsx74(
10974
+ return /* @__PURE__ */ jsx76(
10876
10975
  BaseSignUp_default,
10877
10976
  {
10878
10977
  afterSignUpUrl,
@@ -10898,7 +10997,7 @@ import {
10898
10997
  EmbeddedFlowResponseType as EmbeddedFlowResponseType4,
10899
10998
  EmbeddedFlowType as EmbeddedFlowType3
10900
10999
  } from "@asgardeo/browser";
10901
- import { jsx as jsx75 } from "react/jsx-runtime";
11000
+ import { jsx as jsx77 } from "react/jsx-runtime";
10902
11001
  var SignUp2 = ({
10903
11002
  className,
10904
11003
  size = "medium",
@@ -10936,7 +11035,7 @@ var SignUp2 = ({
10936
11035
  window.location.href = response.data.redirectURL;
10937
11036
  }
10938
11037
  };
10939
- return /* @__PURE__ */ jsx75(
11038
+ return /* @__PURE__ */ jsx77(
10940
11039
  BaseSignUp_default2,
10941
11040
  {
10942
11041
  afterSignUpUrl,
@@ -10958,13 +11057,13 @@ var SignUp2 = ({
10958
11057
  var SignUp_default2 = SignUp2;
10959
11058
 
10960
11059
  // src/components/presentation/auth/SignUp/SignUp.tsx
10961
- import { jsx as jsx76 } from "react/jsx-runtime";
11060
+ import { jsx as jsx78 } from "react/jsx-runtime";
10962
11061
  var SignUp3 = (props) => {
10963
11062
  const { platform } = useAsgardeo_default();
10964
11063
  if (platform === Platform7.AsgardeoV2) {
10965
- return /* @__PURE__ */ jsx76(SignUp_default2, { ...props });
11064
+ return /* @__PURE__ */ jsx78(SignUp_default2, { ...props });
10966
11065
  }
10967
- return /* @__PURE__ */ jsx76(SignUp_default, { ...props });
11066
+ return /* @__PURE__ */ jsx78(SignUp_default, { ...props });
10968
11067
  };
10969
11068
  var SignUp_default3 = SignUp3;
10970
11069
 
@@ -10974,7 +11073,7 @@ import { EmbeddedFlowType as EmbeddedFlowType5 } from "@asgardeo/browser";
10974
11073
  // src/components/presentation/auth/InviteUser/v2/BaseInviteUser.tsx
10975
11074
  import { EmbeddedFlowType as EmbeddedFlowType4 } from "@asgardeo/browser";
10976
11075
  import { cx as cx23 } from "@emotion/css";
10977
- import { useCallback as useCallback14, useEffect as useEffect18, useRef as useRef9, useState as useState20 } from "react";
11076
+ import { useCallback as useCallback14, useEffect as useEffect19, useRef as useRef10, useState as useState20 } from "react";
10978
11077
 
10979
11078
  // src/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.ts
10980
11079
  import { css as css19 } from "@emotion/css";
@@ -11017,7 +11116,7 @@ var useStyles18 = (theme, colorScheme) => useMemo26(() => {
11017
11116
  var BaseInviteUser_styles_default = useStyles18;
11018
11117
 
11019
11118
  // src/components/presentation/auth/InviteUser/v2/BaseInviteUser.tsx
11020
- import { jsx as jsx77, jsxs as jsxs31 } from "react/jsx-runtime";
11119
+ import { jsx as jsx79, jsxs as jsxs31 } from "react/jsx-runtime";
11021
11120
  var BaseInviteUser = ({
11022
11121
  onInitialize,
11023
11122
  onSubmit,
@@ -11047,7 +11146,7 @@ var BaseInviteUser = ({
11047
11146
  const [inviteLink, setInviteLink] = useState20();
11048
11147
  const [inviteLinkCopied, setInviteLinkCopied] = useState20(false);
11049
11148
  const [isFormValid, setIsFormValid] = useState20(true);
11050
- const initializationAttemptedRef = useRef9(false);
11149
+ const initializationAttemptedRef = useRef10(false);
11051
11150
  const handleError = useCallback14(
11052
11151
  (error) => {
11053
11152
  const errorMessage = error?.failureReason || extractErrorMessage(error, t, "components.inviteUser.errors.generic");
@@ -11210,7 +11309,7 @@ var BaseInviteUser = ({
11210
11309
  setInviteLinkCopied(false);
11211
11310
  initializationAttemptedRef.current = false;
11212
11311
  }, []);
11213
- useEffect18(() => {
11312
+ useEffect19(() => {
11214
11313
  if (isInitialized && !isFlowInitialized && !initializationAttemptedRef.current) {
11215
11314
  initializationAttemptedRef.current = true;
11216
11315
  (async () => {
@@ -11237,7 +11336,7 @@ var BaseInviteUser = ({
11237
11336
  })();
11238
11337
  }
11239
11338
  }, [isInitialized, isFlowInitialized, onInitialize, onFlowChange, handleError, normalizeFlowResponseLocal]);
11240
- useEffect18(() => {
11339
+ useEffect19(() => {
11241
11340
  if (currentFlow && isFlowInitialized) {
11242
11341
  const components2 = currentFlow.data?.components || [];
11243
11342
  if (components2.length > 0) {
@@ -11321,27 +11420,27 @@ var BaseInviteUser = ({
11321
11420
  values: formValues
11322
11421
  };
11323
11422
  if (children) {
11324
- return /* @__PURE__ */ jsx77("div", { className, children: children(renderProps) });
11423
+ return /* @__PURE__ */ jsx79("div", { className, children: children(renderProps) });
11325
11424
  }
11326
11425
  if (!isInitialized) {
11327
- return /* @__PURE__ */ jsx77(Card_default, { className: cx23(className, styles.card), variant, children: /* @__PURE__ */ jsx77(Card_default.Content, { children: /* @__PURE__ */ jsx77("div", { style: { display: "flex", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ jsx77(Spinner_default, { size: "medium" }) }) }) });
11426
+ return /* @__PURE__ */ jsx79(Card_default, { className: cx23(className, styles.card), variant, children: /* @__PURE__ */ jsx79(Card_default.Content, { children: /* @__PURE__ */ jsx79("div", { style: { display: "flex", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ jsx79(Spinner_default, { size: "medium" }) }) }) });
11328
11427
  }
11329
11428
  if (!isFlowInitialized && isLoading) {
11330
- return /* @__PURE__ */ jsx77(Card_default, { className: cx23(className, styles.card), variant, children: /* @__PURE__ */ jsx77(Card_default.Content, { children: /* @__PURE__ */ jsx77("div", { style: { display: "flex", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ jsx77(Spinner_default, { size: "medium" }) }) }) });
11429
+ return /* @__PURE__ */ jsx79(Card_default, { className: cx23(className, styles.card), variant, children: /* @__PURE__ */ jsx79(Card_default.Content, { children: /* @__PURE__ */ jsx79("div", { style: { display: "flex", justifyContent: "center", padding: "2rem" }, children: /* @__PURE__ */ jsx79(Spinner_default, { size: "medium" }) }) }) });
11331
11430
  }
11332
11431
  if (!currentFlow && apiError) {
11333
- return /* @__PURE__ */ jsx77(Card_default, { className: cx23(className, styles.card), variant, children: /* @__PURE__ */ jsx77(Card_default.Content, { children: /* @__PURE__ */ jsxs31(Alert_default, { variant: "error", children: [
11334
- /* @__PURE__ */ jsx77(Alert_default.Title, { children: "Error" }),
11335
- /* @__PURE__ */ jsx77(Alert_default.Description, { children: apiError.message })
11432
+ return /* @__PURE__ */ jsx79(Card_default, { className: cx23(className, styles.card), variant, children: /* @__PURE__ */ jsx79(Card_default.Content, { children: /* @__PURE__ */ jsxs31(Alert_default, { variant: "error", children: [
11433
+ /* @__PURE__ */ jsx79(Alert_default.Title, { children: "Error" }),
11434
+ /* @__PURE__ */ jsx79(Alert_default.Description, { children: apiError.message })
11336
11435
  ] }) }) });
11337
11436
  }
11338
11437
  if (isInviteGenerated && inviteLink) {
11339
11438
  return /* @__PURE__ */ jsxs31(Card_default, { className: cx23(className, styles.card), variant, children: [
11340
- /* @__PURE__ */ jsx77(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx77(Card_default.Title, { level: 2, className: styles.title, children: "Invite Link Generated!" }) }),
11439
+ /* @__PURE__ */ jsx79(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx79(Card_default.Title, { level: 2, className: styles.title, children: "Invite Link Generated!" }) }),
11341
11440
  /* @__PURE__ */ jsxs31(Card_default.Content, { children: [
11342
- /* @__PURE__ */ jsx77(Alert_default, { variant: "success", children: /* @__PURE__ */ jsx77(Alert_default.Description, { children: "Share this link with the user to complete their registration." }) }),
11441
+ /* @__PURE__ */ jsx79(Alert_default, { variant: "success", children: /* @__PURE__ */ jsx79(Alert_default.Description, { children: "Share this link with the user to complete their registration." }) }),
11343
11442
  /* @__PURE__ */ jsxs31("div", { style: { marginTop: "1rem" }, children: [
11344
- /* @__PURE__ */ jsx77(Typography_default, { variant: "body2", style: { marginBottom: "0.5rem" }, children: "Invite Link" }),
11443
+ /* @__PURE__ */ jsx79(Typography_default, { variant: "body2", style: { marginBottom: "0.5rem" }, children: "Invite Link" }),
11345
11444
  /* @__PURE__ */ jsxs31(
11346
11445
  "div",
11347
11446
  {
@@ -11355,26 +11454,26 @@ var BaseInviteUser = ({
11355
11454
  wordBreak: "break-all"
11356
11455
  },
11357
11456
  children: [
11358
- /* @__PURE__ */ jsx77(Typography_default, { variant: "body2", style: { flex: 1 }, children: inviteLink }),
11359
- /* @__PURE__ */ jsx77(Button_default, { variant: "outline", size: "small", onClick: copyInviteLink, children: inviteLinkCopied ? "Copied!" : "Copy" })
11457
+ /* @__PURE__ */ jsx79(Typography_default, { variant: "body2", style: { flex: 1 }, children: inviteLink }),
11458
+ /* @__PURE__ */ jsx79(Button_default, { variant: "outline", size: "small", onClick: copyInviteLink, children: inviteLinkCopied ? "Copied!" : "Copy" })
11360
11459
  ]
11361
11460
  }
11362
11461
  )
11363
11462
  ] }),
11364
- /* @__PURE__ */ jsx77("div", { style: { display: "flex", gap: "0.5rem", marginTop: "1.5rem" }, children: /* @__PURE__ */ jsx77(Button_default, { variant: "outline", onClick: resetFlow, children: "Invite Another User" }) })
11463
+ /* @__PURE__ */ jsx79("div", { style: { display: "flex", gap: "0.5rem", marginTop: "1.5rem" }, children: /* @__PURE__ */ jsx79(Button_default, { variant: "outline", onClick: resetFlow, children: "Invite Another User" }) })
11365
11464
  ] })
11366
11465
  ] });
11367
11466
  }
11368
11467
  return /* @__PURE__ */ jsxs31(Card_default, { className: cx23(className, styles.card), variant, children: [
11369
11468
  (showTitle || showSubtitle) && (title || subtitle) && /* @__PURE__ */ jsxs31(Card_default.Header, { className: styles.header, children: [
11370
- showTitle && title && /* @__PURE__ */ jsx77(Card_default.Title, { level: 2, className: styles.title, children: title }),
11371
- showSubtitle && subtitle && /* @__PURE__ */ jsx77(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
11469
+ showTitle && title && /* @__PURE__ */ jsx79(Card_default.Title, { level: 2, className: styles.title, children: title }),
11470
+ showSubtitle && subtitle && /* @__PURE__ */ jsx79(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
11372
11471
  ] }),
11373
11472
  /* @__PURE__ */ jsxs31(Card_default.Content, { children: [
11374
- apiError && /* @__PURE__ */ jsx77("div", { style: { marginBottom: "1rem" }, children: /* @__PURE__ */ jsx77(Alert_default, { variant: "error", children: /* @__PURE__ */ jsx77(Alert_default.Description, { children: apiError.message }) }) }),
11473
+ apiError && /* @__PURE__ */ jsx79("div", { style: { marginBottom: "1rem" }, children: /* @__PURE__ */ jsx79(Alert_default, { variant: "error", children: /* @__PURE__ */ jsx79(Alert_default.Description, { children: apiError.message }) }) }),
11375
11474
  /* @__PURE__ */ jsxs31("div", { children: [
11376
- componentsWithoutHeadings && componentsWithoutHeadings.length > 0 ? renderComponents(componentsWithoutHeadings) : !isLoading && /* @__PURE__ */ jsx77(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx77(Typography_default, { variant: "body1", children: "No form components available" }) }),
11377
- isLoading && /* @__PURE__ */ jsx77("div", { style: { display: "flex", justifyContent: "center", padding: "1rem" }, children: /* @__PURE__ */ jsx77(Spinner_default, { size: "small" }) })
11475
+ componentsWithoutHeadings && componentsWithoutHeadings.length > 0 ? renderComponents(componentsWithoutHeadings) : !isLoading && /* @__PURE__ */ jsx79(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx79(Typography_default, { variant: "body1", children: "No form components available" }) }),
11476
+ isLoading && /* @__PURE__ */ jsx79("div", { style: { display: "flex", justifyContent: "center", padding: "1rem" }, children: /* @__PURE__ */ jsx79(Spinner_default, { size: "small" }) })
11378
11477
  ] })
11379
11478
  ] })
11380
11479
  ] });
@@ -11382,7 +11481,7 @@ var BaseInviteUser = ({
11382
11481
  var BaseInviteUser_default = BaseInviteUser;
11383
11482
 
11384
11483
  // src/components/presentation/auth/InviteUser/v2/InviteUser.tsx
11385
- import { jsx as jsx78 } from "react/jsx-runtime";
11484
+ import { jsx as jsx80 } from "react/jsx-runtime";
11386
11485
  var InviteUser = ({
11387
11486
  onInviteLinkGenerated,
11388
11487
  onError,
@@ -11426,7 +11525,7 @@ var InviteUser = ({
11426
11525
  });
11427
11526
  return response.data;
11428
11527
  };
11429
- return /* @__PURE__ */ jsx78(
11528
+ return /* @__PURE__ */ jsx80(
11430
11529
  BaseInviteUser_default,
11431
11530
  {
11432
11531
  onInitialize: handleInitialize,
@@ -11451,7 +11550,7 @@ import { useMemo as useMemo28 } from "react";
11451
11550
 
11452
11551
  // src/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.tsx
11453
11552
  import { cx as cx24 } from "@emotion/css";
11454
- import { useCallback as useCallback15, useEffect as useEffect19, useRef as useRef10, useState as useState21 } from "react";
11553
+ import { useCallback as useCallback15, useEffect as useEffect20, useRef as useRef11, useState as useState21 } from "react";
11455
11554
 
11456
11555
  // src/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.ts
11457
11556
  import { css as css20 } from "@emotion/css";
@@ -11494,7 +11593,7 @@ var useStyles19 = (theme, colorScheme) => useMemo27(() => {
11494
11593
  var BaseAcceptInvite_styles_default = useStyles19;
11495
11594
 
11496
11595
  // src/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.tsx
11497
- import { jsx as jsx79, jsxs as jsxs32 } from "react/jsx-runtime";
11596
+ import { jsx as jsx81, jsxs as jsxs32 } from "react/jsx-runtime";
11498
11597
  var BaseAcceptInvite = ({
11499
11598
  flowId,
11500
11599
  inviteToken,
@@ -11526,7 +11625,7 @@ var BaseAcceptInvite = ({
11526
11625
  const [touchedFields, setTouchedFields] = useState21({});
11527
11626
  const [isFormValid, setIsFormValid] = useState21(true);
11528
11627
  const [completionTitle, setCompletionTitle] = useState21(void 0);
11529
- const tokenValidationAttemptedRef = useRef10(false);
11628
+ const tokenValidationAttemptedRef = useRef11(false);
11530
11629
  const handleError = useCallback15(
11531
11630
  (error) => {
11532
11631
  const errorMessage = error?.failureReason || extractErrorMessage(error, t, "components.acceptInvite.errors.generic");
@@ -11706,7 +11805,7 @@ var BaseAcceptInvite = ({
11706
11805
  normalizeFlowResponseLocal
11707
11806
  ]
11708
11807
  );
11709
- useEffect19(() => {
11808
+ useEffect20(() => {
11710
11809
  if (tokenValidationAttemptedRef.current) {
11711
11810
  return;
11712
11811
  }
@@ -11823,50 +11922,50 @@ var BaseAcceptInvite = ({
11823
11922
  values: formValues
11824
11923
  };
11825
11924
  if (children) {
11826
- return /* @__PURE__ */ jsx79("div", { className, children: children(renderProps) });
11925
+ return /* @__PURE__ */ jsx81("div", { className, children: children(renderProps) });
11827
11926
  }
11828
11927
  if (isValidatingToken) {
11829
- return /* @__PURE__ */ jsx79(Card_default, { className: cx24(className, styles.card), variant, children: /* @__PURE__ */ jsx79(Card_default.Content, { children: /* @__PURE__ */ jsxs32("div", { style: { alignItems: "center", display: "flex", flexDirection: "column", gap: "1rem", padding: "2rem" }, children: [
11830
- /* @__PURE__ */ jsx79(Spinner_default, { size: "medium" }),
11831
- /* @__PURE__ */ jsx79(Typography_default, { variant: "body1", children: "Validating your invite link..." })
11928
+ return /* @__PURE__ */ jsx81(Card_default, { className: cx24(className, styles.card), variant, children: /* @__PURE__ */ jsx81(Card_default.Content, { children: /* @__PURE__ */ jsxs32("div", { style: { alignItems: "center", display: "flex", flexDirection: "column", gap: "1rem", padding: "2rem" }, children: [
11929
+ /* @__PURE__ */ jsx81(Spinner_default, { size: "medium" }),
11930
+ /* @__PURE__ */ jsx81(Typography_default, { variant: "body1", children: "Validating your invite link..." })
11832
11931
  ] }) }) });
11833
11932
  }
11834
11933
  if (isTokenInvalid) {
11835
11934
  return /* @__PURE__ */ jsxs32(Card_default, { className: cx24(className, styles.card), variant, children: [
11836
- /* @__PURE__ */ jsx79(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx79(Card_default.Title, { level: 2, className: styles.title, children: "Invalid Invite Link" }) }),
11935
+ /* @__PURE__ */ jsx81(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx81(Card_default.Title, { level: 2, className: styles.title, children: "Invalid Invite Link" }) }),
11837
11936
  /* @__PURE__ */ jsxs32(Card_default.Content, { children: [
11838
11937
  /* @__PURE__ */ jsxs32(Alert_default, { variant: "error", children: [
11839
- /* @__PURE__ */ jsx79(Alert_default.Title, { children: "Unable to verify invite" }),
11840
- /* @__PURE__ */ jsx79(Alert_default.Description, { children: apiError?.message || "This invite link is invalid or has expired. Please contact your administrator for a new invite." })
11938
+ /* @__PURE__ */ jsx81(Alert_default.Title, { children: "Unable to verify invite" }),
11939
+ /* @__PURE__ */ jsx81(Alert_default.Description, { children: apiError?.message || "This invite link is invalid or has expired. Please contact your administrator for a new invite." })
11841
11940
  ] }),
11842
- onGoToSignIn && /* @__PURE__ */ jsx79("div", { style: { display: "flex", justifyContent: "center", marginTop: "1.5rem" }, children: /* @__PURE__ */ jsx79(Button_default, { variant: "outline", onClick: onGoToSignIn, children: "Go to Sign In" }) })
11941
+ onGoToSignIn && /* @__PURE__ */ jsx81("div", { style: { display: "flex", justifyContent: "center", marginTop: "1.5rem" }, children: /* @__PURE__ */ jsx81(Button_default, { variant: "outline", onClick: onGoToSignIn, children: "Go to Sign In" }) })
11843
11942
  ] })
11844
11943
  ] });
11845
11944
  }
11846
11945
  if (isComplete) {
11847
11946
  return /* @__PURE__ */ jsxs32(Card_default, { className: cx24(className, styles.card), variant, children: [
11848
- /* @__PURE__ */ jsx79(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx79(Card_default.Title, { level: 2, className: styles.title, children: "Account Setup Complete!" }) }),
11947
+ /* @__PURE__ */ jsx81(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx81(Card_default.Title, { level: 2, className: styles.title, children: "Account Setup Complete!" }) }),
11849
11948
  /* @__PURE__ */ jsxs32(Card_default.Content, { children: [
11850
- /* @__PURE__ */ jsx79(Alert_default, { variant: "success", children: /* @__PURE__ */ jsx79(Alert_default.Description, { children: "Your account has been successfully set up. You can now sign in with your credentials." }) }),
11851
- onGoToSignIn && /* @__PURE__ */ jsx79("div", { style: { display: "flex", justifyContent: "center", marginTop: "1.5rem" }, children: /* @__PURE__ */ jsx79(Button_default, { variant: "solid", color: "primary", onClick: onGoToSignIn, children: "Sign In" }) })
11949
+ /* @__PURE__ */ jsx81(Alert_default, { variant: "success", children: /* @__PURE__ */ jsx81(Alert_default.Description, { children: "Your account has been successfully set up. You can now sign in with your credentials." }) }),
11950
+ onGoToSignIn && /* @__PURE__ */ jsx81("div", { style: { display: "flex", justifyContent: "center", marginTop: "1.5rem" }, children: /* @__PURE__ */ jsx81(Button_default, { variant: "solid", color: "primary", onClick: onGoToSignIn, children: "Sign In" }) })
11852
11951
  ] })
11853
11952
  ] });
11854
11953
  }
11855
11954
  return /* @__PURE__ */ jsxs32(Card_default, { className: cx24(className, styles.card), variant, children: [
11856
11955
  (showTitle || showSubtitle) && (title || subtitle) && /* @__PURE__ */ jsxs32(Card_default.Header, { className: styles.header, children: [
11857
- showTitle && title && /* @__PURE__ */ jsx79(Card_default.Title, { level: 2, className: styles.title, children: title }),
11858
- showSubtitle && subtitle && /* @__PURE__ */ jsx79(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
11956
+ showTitle && title && /* @__PURE__ */ jsx81(Card_default.Title, { level: 2, className: styles.title, children: title }),
11957
+ showSubtitle && subtitle && /* @__PURE__ */ jsx81(Typography_default, { variant: "body1", className: styles.subtitle, children: subtitle })
11859
11958
  ] }),
11860
11959
  /* @__PURE__ */ jsxs32(Card_default.Content, { children: [
11861
- apiError && /* @__PURE__ */ jsx79("div", { style: { marginBottom: "1rem" }, children: /* @__PURE__ */ jsx79(Alert_default, { variant: "error", children: /* @__PURE__ */ jsx79(Alert_default.Description, { children: apiError.message }) }) }),
11960
+ apiError && /* @__PURE__ */ jsx81("div", { style: { marginBottom: "1rem" }, children: /* @__PURE__ */ jsx81(Alert_default, { variant: "error", children: /* @__PURE__ */ jsx81(Alert_default.Description, { children: apiError.message }) }) }),
11862
11961
  /* @__PURE__ */ jsxs32("div", { children: [
11863
- componentsWithoutHeadings && componentsWithoutHeadings.length > 0 ? renderComponents(componentsWithoutHeadings) : !isLoading && /* @__PURE__ */ jsx79(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx79(Typography_default, { variant: "body1", children: "No form components available" }) }),
11864
- isLoading && /* @__PURE__ */ jsx79("div", { style: { display: "flex", justifyContent: "center", padding: "1rem" }, children: /* @__PURE__ */ jsx79(Spinner_default, { size: "small" }) })
11962
+ componentsWithoutHeadings && componentsWithoutHeadings.length > 0 ? renderComponents(componentsWithoutHeadings) : !isLoading && /* @__PURE__ */ jsx81(Alert_default, { variant: "warning", children: /* @__PURE__ */ jsx81(Typography_default, { variant: "body1", children: "No form components available" }) }),
11963
+ isLoading && /* @__PURE__ */ jsx81("div", { style: { display: "flex", justifyContent: "center", padding: "1rem" }, children: /* @__PURE__ */ jsx81(Spinner_default, { size: "small" }) })
11865
11964
  ] }),
11866
- onGoToSignIn && /* @__PURE__ */ jsx79("div", { style: { marginTop: "1.5rem", textAlign: "center" }, children: /* @__PURE__ */ jsxs32(Typography_default, { variant: "body2", children: [
11965
+ onGoToSignIn && /* @__PURE__ */ jsx81("div", { style: { marginTop: "1.5rem", textAlign: "center" }, children: /* @__PURE__ */ jsxs32(Typography_default, { variant: "body2", children: [
11867
11966
  "Already have an account?",
11868
11967
  " ",
11869
- /* @__PURE__ */ jsx79(Button_default, { variant: "text", onClick: onGoToSignIn, style: { minWidth: "auto", padding: 0 }, children: "Sign In" })
11968
+ /* @__PURE__ */ jsx81(Button_default, { variant: "text", onClick: onGoToSignIn, style: { minWidth: "auto", padding: 0 }, children: "Sign In" })
11870
11969
  ] }) })
11871
11970
  ] })
11872
11971
  ] });
@@ -11874,7 +11973,7 @@ var BaseAcceptInvite = ({
11874
11973
  var BaseAcceptInvite_default = BaseAcceptInvite;
11875
11974
 
11876
11975
  // src/components/presentation/auth/AcceptInvite/v2/AcceptInvite.tsx
11877
- import { jsx as jsx80 } from "react/jsx-runtime";
11976
+ import { jsx as jsx82 } from "react/jsx-runtime";
11878
11977
  var getUrlParams = () => {
11879
11978
  if (typeof window === "undefined") {
11880
11979
  return {};
@@ -11930,7 +12029,7 @@ var AcceptInvite = ({
11930
12029
  }
11931
12030
  return response.json();
11932
12031
  };
11933
- return /* @__PURE__ */ jsx80(
12032
+ return /* @__PURE__ */ jsx82(
11934
12033
  BaseAcceptInvite_default,
11935
12034
  {
11936
12035
  flowId,
@@ -11953,9 +12052,9 @@ var AcceptInvite_default = AcceptInvite;
11953
12052
 
11954
12053
  // src/components/auth/Callback/Callback.tsx
11955
12054
  import { navigate as browserNavigate } from "@asgardeo/browser";
11956
- import { useEffect as useEffect20, useRef as useRef11 } from "react";
12055
+ import { useEffect as useEffect21, useRef as useRef12 } from "react";
11957
12056
  var Callback = ({ onNavigate, onError }) => {
11958
- const processingRef = useRef11(false);
12057
+ const processingRef = useRef12(false);
11959
12058
  const navigate6 = (path) => {
11960
12059
  if (onNavigate) {
11961
12060
  onNavigate(path);
@@ -11963,7 +12062,7 @@ var Callback = ({ onNavigate, onError }) => {
11963
12062
  browserNavigate(path);
11964
12063
  }
11965
12064
  };
11966
- useEffect20(() => {
12065
+ useEffect21(() => {
11967
12066
  const processOAuthCallback = () => {
11968
12067
  if (processingRef.current) {
11969
12068
  return;
@@ -12041,45 +12140,45 @@ var Callback = ({ onNavigate, onError }) => {
12041
12140
  };
12042
12141
 
12043
12142
  // src/components/presentation/User/BaseUser.tsx
12044
- import { Fragment as Fragment13, jsx as jsx81 } from "react/jsx-runtime";
12143
+ import { Fragment as Fragment14, jsx as jsx83 } from "react/jsx-runtime";
12045
12144
  var BaseUser = ({ user, children, fallback = null }) => {
12046
12145
  if (!user) {
12047
- return /* @__PURE__ */ jsx81(Fragment13, { children: fallback });
12146
+ return /* @__PURE__ */ jsx83(Fragment14, { children: fallback });
12048
12147
  }
12049
- return /* @__PURE__ */ jsx81(Fragment13, { children: children(user) });
12148
+ return /* @__PURE__ */ jsx83(Fragment14, { children: children(user) });
12050
12149
  };
12051
12150
  BaseUser.displayName = "BaseUser";
12052
12151
  var BaseUser_default = BaseUser;
12053
12152
 
12054
12153
  // src/components/presentation/User/User.tsx
12055
- import { jsx as jsx82 } from "react/jsx-runtime";
12154
+ import { jsx as jsx84 } from "react/jsx-runtime";
12056
12155
  var User5 = ({ children, fallback = null }) => {
12057
12156
  const { user } = useAsgardeo_default();
12058
- return /* @__PURE__ */ jsx82(BaseUser_default, { user, fallback, children });
12157
+ return /* @__PURE__ */ jsx84(BaseUser_default, { user, fallback, children });
12059
12158
  };
12060
12159
  User5.displayName = "User";
12061
12160
  var User_default = User5;
12062
12161
 
12063
12162
  // src/components/presentation/Organization/BaseOrganization.tsx
12064
- import { Fragment as Fragment14, jsx as jsx83 } from "react/jsx-runtime";
12163
+ import { Fragment as Fragment15, jsx as jsx85 } from "react/jsx-runtime";
12065
12164
  var BaseOrganization = ({
12066
12165
  children,
12067
12166
  fallback = null,
12068
12167
  organization
12069
12168
  }) => {
12070
12169
  if (!organization) {
12071
- return /* @__PURE__ */ jsx83(Fragment14, { children: fallback });
12170
+ return /* @__PURE__ */ jsx85(Fragment15, { children: fallback });
12072
12171
  }
12073
- return /* @__PURE__ */ jsx83(Fragment14, { children: children(organization) });
12172
+ return /* @__PURE__ */ jsx85(Fragment15, { children: children(organization) });
12074
12173
  };
12075
12174
  BaseOrganization.displayName = "BaseOrganization";
12076
12175
  var BaseOrganization_default = BaseOrganization;
12077
12176
 
12078
12177
  // src/components/presentation/Organization/Organization.tsx
12079
- import { jsx as jsx84 } from "react/jsx-runtime";
12178
+ import { jsx as jsx86 } from "react/jsx-runtime";
12080
12179
  var Organization5 = ({ children, fallback = null }) => {
12081
12180
  const { currentOrganization } = useOrganization_default();
12082
- return /* @__PURE__ */ jsx84(BaseOrganization_default, { organization: currentOrganization, fallback, children });
12181
+ return /* @__PURE__ */ jsx86(BaseOrganization_default, { organization: currentOrganization, fallback, children });
12083
12182
  };
12084
12183
  Organization5.displayName = "Organization";
12085
12184
  var Organization_default = Organization5;
@@ -12418,7 +12517,7 @@ var useStyles21 = (theme, colorScheme, size, variant, backgroundColor) => useMem
12418
12517
  var Avatar_styles_default = useStyles21;
12419
12518
 
12420
12519
  // src/components/primitives/Avatar/Avatar.tsx
12421
- import { jsx as jsx85 } from "react/jsx-runtime";
12520
+ import { jsx as jsx87 } from "react/jsx-runtime";
12422
12521
  var Avatar = ({
12423
12522
  alt = "User avatar",
12424
12523
  background = "random",
@@ -12465,7 +12564,7 @@ var Avatar = ({
12465
12564
  const getInitials = (fullName) => fullName.split(" ").map((part) => part[0]).slice(0, 2).join("").toUpperCase();
12466
12565
  const renderContent = () => {
12467
12566
  if (imageUrl) {
12468
- return /* @__PURE__ */ jsx85(
12567
+ return /* @__PURE__ */ jsx87(
12469
12568
  "img",
12470
12569
  {
12471
12570
  src: imageUrl,
@@ -12478,19 +12577,19 @@ var Avatar = ({
12478
12577
  return getInitials(name);
12479
12578
  }
12480
12579
  if (isLoading) {
12481
- return /* @__PURE__ */ jsx85("div", { className: cx25(withVendorCSSClassPrefix24(bem16("avatar", "skeleton")), styles["skeleton"]) });
12580
+ return /* @__PURE__ */ jsx87("div", { className: cx25(withVendorCSSClassPrefix24(bem16("avatar", "skeleton")), styles["skeleton"]) });
12482
12581
  }
12483
- return /* @__PURE__ */ jsx85(
12582
+ return /* @__PURE__ */ jsx87(
12484
12583
  "svg",
12485
12584
  {
12486
12585
  xmlns: "http://www.w3.org/2000/svg",
12487
12586
  viewBox: "0 0 640 640",
12488
12587
  className: cx25(withVendorCSSClassPrefix24(bem16("avatar", "icon")), styles["icon"]),
12489
- children: /* @__PURE__ */ jsx85("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" })
12588
+ children: /* @__PURE__ */ jsx87("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" })
12490
12589
  }
12491
12590
  );
12492
12591
  };
12493
- return /* @__PURE__ */ jsx85(
12592
+ return /* @__PURE__ */ jsx87(
12494
12593
  "div",
12495
12594
  {
12496
12595
  className: cx25(
@@ -12597,7 +12696,7 @@ var useStyles22 = (theme, colorScheme) => useMemo32(() => {
12597
12696
  var Dialog_styles_default = useStyles22;
12598
12697
 
12599
12698
  // src/components/primitives/Icons/LogOut.tsx
12600
- import { jsx as jsx86, jsxs as jsxs33 } from "react/jsx-runtime";
12699
+ import { jsx as jsx88, jsxs as jsxs33 } from "react/jsx-runtime";
12601
12700
  var LogOut = (props) => /* @__PURE__ */ jsxs33(
12602
12701
  "svg",
12603
12702
  {
@@ -12612,16 +12711,16 @@ var LogOut = (props) => /* @__PURE__ */ jsxs33(
12612
12711
  strokeLinejoin: "round",
12613
12712
  ...props,
12614
12713
  children: [
12615
- /* @__PURE__ */ jsx86("path", { d: "m16 17 5-5-5-5" }),
12616
- /* @__PURE__ */ jsx86("path", { d: "M21 12H9" }),
12617
- /* @__PURE__ */ jsx86("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
12714
+ /* @__PURE__ */ jsx88("path", { d: "m16 17 5-5-5-5" }),
12715
+ /* @__PURE__ */ jsx88("path", { d: "M21 12H9" }),
12716
+ /* @__PURE__ */ jsx88("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
12618
12717
  ]
12619
12718
  }
12620
12719
  );
12621
12720
  var LogOut_default = LogOut;
12622
12721
 
12623
12722
  // src/components/primitives/Icons/Plus.tsx
12624
- import { jsx as jsx87, jsxs as jsxs34 } from "react/jsx-runtime";
12723
+ import { jsx as jsx89, jsxs as jsxs34 } from "react/jsx-runtime";
12625
12724
  var Plus = (props) => /* @__PURE__ */ jsxs34(
12626
12725
  "svg",
12627
12726
  {
@@ -12636,15 +12735,15 @@ var Plus = (props) => /* @__PURE__ */ jsxs34(
12636
12735
  strokeLinejoin: "round",
12637
12736
  ...props,
12638
12737
  children: [
12639
- /* @__PURE__ */ jsx87("path", { d: "M5 12h14" }),
12640
- /* @__PURE__ */ jsx87("path", { d: "M12 5v14" })
12738
+ /* @__PURE__ */ jsx89("path", { d: "M5 12h14" }),
12739
+ /* @__PURE__ */ jsx89("path", { d: "M12 5v14" })
12641
12740
  ]
12642
12741
  }
12643
12742
  );
12644
12743
  var Plus_default = Plus;
12645
12744
 
12646
12745
  // src/components/primitives/Icons/User.tsx
12647
- import { jsx as jsx88, jsxs as jsxs35 } from "react/jsx-runtime";
12746
+ import { jsx as jsx90, jsxs as jsxs35 } from "react/jsx-runtime";
12648
12747
  var User7 = (props) => /* @__PURE__ */ jsxs35(
12649
12748
  "svg",
12650
12749
  {
@@ -12659,15 +12758,15 @@ var User7 = (props) => /* @__PURE__ */ jsxs35(
12659
12758
  strokeLinejoin: "round",
12660
12759
  ...props,
12661
12760
  children: [
12662
- /* @__PURE__ */ jsx88("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
12663
- /* @__PURE__ */ jsx88("circle", { cx: "12", cy: "7", r: "4" })
12761
+ /* @__PURE__ */ jsx90("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
12762
+ /* @__PURE__ */ jsx90("circle", { cx: "12", cy: "7", r: "4" })
12664
12763
  ]
12665
12764
  }
12666
12765
  );
12667
12766
  var User_default2 = User7;
12668
12767
 
12669
12768
  // src/components/primitives/Icons/X.tsx
12670
- import { jsx as jsx89, jsxs as jsxs36 } from "react/jsx-runtime";
12769
+ import { jsx as jsx91, jsxs as jsxs36 } from "react/jsx-runtime";
12671
12770
  var X = (props) => /* @__PURE__ */ jsxs36(
12672
12771
  "svg",
12673
12772
  {
@@ -12682,15 +12781,15 @@ var X = (props) => /* @__PURE__ */ jsxs36(
12682
12781
  strokeLinejoin: "round",
12683
12782
  ...props,
12684
12783
  children: [
12685
- /* @__PURE__ */ jsx89("path", { d: "M18 6 6 18" }),
12686
- /* @__PURE__ */ jsx89("path", { d: "m6 6 12 12" })
12784
+ /* @__PURE__ */ jsx91("path", { d: "M18 6 6 18" }),
12785
+ /* @__PURE__ */ jsx91("path", { d: "m6 6 12 12" })
12687
12786
  ]
12688
12787
  }
12689
12788
  );
12690
12789
  var X_default = X;
12691
12790
 
12692
12791
  // src/components/primitives/Dialog/Dialog.tsx
12693
- import { jsx as jsx90, jsxs as jsxs37 } from "react/jsx-runtime";
12792
+ import { jsx as jsx92, jsxs as jsxs37 } from "react/jsx-runtime";
12694
12793
  function useDialog({
12695
12794
  initialOpen = false,
12696
12795
  open: controlledOpen,
@@ -12736,7 +12835,7 @@ var useDialogContext = () => {
12736
12835
  };
12737
12836
  function Dialog({ children, ...options }) {
12738
12837
  const dialog = useDialog(options);
12739
- return /* @__PURE__ */ jsx90(DialogContext.Provider, { value: dialog, children });
12838
+ return /* @__PURE__ */ jsx92(DialogContext.Provider, { value: dialog, children });
12740
12839
  }
12741
12840
  var DialogTrigger = forwardRef10(
12742
12841
  ({ children, asChild = false, ...props }, propRef) => {
@@ -12754,7 +12853,7 @@ var DialogTrigger = forwardRef10(
12754
12853
  })
12755
12854
  );
12756
12855
  }
12757
- return /* @__PURE__ */ jsx90("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
12856
+ return /* @__PURE__ */ jsx92("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
12758
12857
  }
12759
12858
  );
12760
12859
  var DialogContent = forwardRef10(
@@ -12764,12 +12863,12 @@ var DialogContent = forwardRef10(
12764
12863
  const styles = Dialog_styles_default(theme, colorScheme);
12765
12864
  const ref = useMergeRefs([context.refs.setFloating, propRef]);
12766
12865
  if (!floatingContext.open) return null;
12767
- return /* @__PURE__ */ jsx90(FloatingPortal, { children: /* @__PURE__ */ jsx90(
12866
+ return /* @__PURE__ */ jsx92(FloatingPortal, { children: /* @__PURE__ */ jsx92(
12768
12867
  FloatingOverlay,
12769
12868
  {
12770
12869
  className: cx26(withVendorCSSClassPrefix25(bem17("dialog", "overlay")), styles["overlay"]),
12771
12870
  lockScroll: true,
12772
- children: /* @__PURE__ */ jsx90(FloatingFocusManager, { context: floatingContext, initialFocus: -1, children: /* @__PURE__ */ jsx90(
12871
+ children: /* @__PURE__ */ jsx92(FloatingFocusManager, { context: floatingContext, initialFocus: -1, children: /* @__PURE__ */ jsx92(
12773
12872
  "div",
12774
12873
  {
12775
12874
  ref,
@@ -12797,7 +12896,7 @@ var DialogHeading = forwardRef10(
12797
12896
  };
12798
12897
  }, [id, context.setLabelId]);
12799
12898
  return /* @__PURE__ */ jsxs37("div", { className: cx26(withVendorCSSClassPrefix25(bem17("dialog", "header")), styles["header"]), children: [
12800
- /* @__PURE__ */ jsx90(
12899
+ /* @__PURE__ */ jsx92(
12801
12900
  "h2",
12802
12901
  {
12803
12902
  ...props,
@@ -12807,7 +12906,7 @@ var DialogHeading = forwardRef10(
12807
12906
  children
12808
12907
  }
12809
12908
  ),
12810
- /* @__PURE__ */ jsx90(
12909
+ /* @__PURE__ */ jsx92(
12811
12910
  Button_default,
12812
12911
  {
12813
12912
  color: "tertiary",
@@ -12818,7 +12917,7 @@ var DialogHeading = forwardRef10(
12818
12917
  context.setOpen(false);
12819
12918
  },
12820
12919
  "aria-label": "Close",
12821
- children: /* @__PURE__ */ jsx90(X_default, { width: 16, height: 16 })
12920
+ children: /* @__PURE__ */ jsx92(X_default, { width: 16, height: 16 })
12822
12921
  }
12823
12922
  )
12824
12923
  ] });
@@ -12836,7 +12935,7 @@ var DialogDescription = forwardRef10(
12836
12935
  context.setDescriptionId(void 0);
12837
12936
  };
12838
12937
  }, [id, context.setDescriptionId]);
12839
- return /* @__PURE__ */ jsx90(
12938
+ return /* @__PURE__ */ jsx92(
12840
12939
  "p",
12841
12940
  {
12842
12941
  ...props,
@@ -12865,7 +12964,7 @@ var DialogClose = forwardRef10(
12865
12964
  onClick: handleClick
12866
12965
  });
12867
12966
  }
12868
- return /* @__PURE__ */ jsx90(
12967
+ return /* @__PURE__ */ jsx92(
12869
12968
  Button_default,
12870
12969
  {
12871
12970
  ...props,
@@ -12988,7 +13087,7 @@ var useStyles23 = (theme, colorScheme, disabled, hasError, canAddMore, canRemove
12988
13087
  var MultiInput_styles_default = useStyles23;
12989
13088
 
12990
13089
  // src/components/primitives/MultiInput/MultiInput.tsx
12991
- import { jsx as jsx91, jsxs as jsxs38 } from "react/jsx-runtime";
13090
+ import { jsx as jsx93, jsxs as jsxs38 } from "react/jsx-runtime";
12992
13091
  var MultiInput = ({
12993
13092
  label,
12994
13093
  error,
@@ -13011,8 +13110,8 @@ var MultiInput = ({
13011
13110
  const canAddMore = !maxFields || values.length < maxFields;
13012
13111
  const canRemove = values.length > minFields;
13013
13112
  const styles = MultiInput_styles_default(theme, colorScheme, !!disabled, !!error, canAddMore, canRemove);
13014
- const PlusIcon = ({ iconClassName }) => /* @__PURE__ */ jsx91("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx27(styles["icon"], iconClassName), children: /* @__PURE__ */ jsx91("path", { d: "M12 5v14M5 12h14" }) });
13015
- const BinIcon = ({ iconClassName }) => /* @__PURE__ */ jsx91("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx27(styles["icon"], iconClassName), children: /* @__PURE__ */ jsx91("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" }) });
13113
+ const PlusIcon = ({ iconClassName }) => /* @__PURE__ */ jsx93("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx27(styles["icon"], iconClassName), children: /* @__PURE__ */ jsx93("path", { d: "M12 5v14M5 12h14" }) });
13114
+ const BinIcon = ({ iconClassName }) => /* @__PURE__ */ jsx93("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx27(styles["icon"], iconClassName), children: /* @__PURE__ */ jsx93("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" }) });
13016
13115
  const handleAddValue = useCallback16(
13017
13116
  (newValue) => {
13018
13117
  if (newValue.trim() !== "" && (!maxFields || values.length < maxFields)) {
@@ -13056,9 +13155,9 @@ var MultiInput = ({
13056
13155
  };
13057
13156
  switch (fieldType) {
13058
13157
  case "DATE_TIME":
13059
- return /* @__PURE__ */ jsx91(DatePicker_default, { ...commonProps });
13158
+ return /* @__PURE__ */ jsx93(DatePicker_default, { ...commonProps });
13060
13159
  case "BOOLEAN":
13061
- return /* @__PURE__ */ jsx91(
13160
+ return /* @__PURE__ */ jsx93(
13062
13161
  Checkbox_default,
13063
13162
  {
13064
13163
  ...commonProps,
@@ -13067,7 +13166,7 @@ var MultiInput = ({
13067
13166
  }
13068
13167
  );
13069
13168
  default:
13070
- return /* @__PURE__ */ jsx91(TextField_default, { ...commonProps, type });
13169
+ return /* @__PURE__ */ jsx93(TextField_default, { ...commonProps, type });
13071
13170
  }
13072
13171
  },
13073
13172
  [placeholder, disabled, startIcon, endIcon, error, fieldType, type]
@@ -13087,27 +13186,27 @@ var MultiInput = ({
13087
13186
  className: cx27(withVendorCSSClassPrefix26(bem18("multi-input")), className),
13088
13187
  style,
13089
13188
  children: [
13090
- label && /* @__PURE__ */ jsx91(InputLabel_default, { required, error: !!error, children: label }),
13189
+ label && /* @__PURE__ */ jsx93(InputLabel_default, { required, error: !!error, children: label }),
13091
13190
  /* @__PURE__ */ jsxs38("div", { className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "container")), styles["container"]), children: [
13092
- /* @__PURE__ */ jsx91("div", { className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "input-row")), styles["inputRow"]), children: /* @__PURE__ */ jsx91("div", { className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "input-wrapper")), styles["inputWrapper"]), children: renderInputField(
13191
+ /* @__PURE__ */ jsx93("div", { className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "input-row")), styles["inputRow"]), children: /* @__PURE__ */ jsx93("div", { className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "input-wrapper")), styles["inputWrapper"]), children: renderInputField(
13093
13192
  currentInputValue,
13094
13193
  setCurrentInputValue,
13095
- canAddMore ? /* @__PURE__ */ jsx91(PlusIcon, { iconClassName: styles["plusIcon"] }) : void 0,
13194
+ canAddMore ? /* @__PURE__ */ jsx93(PlusIcon, { iconClassName: styles["plusIcon"] }) : void 0,
13096
13195
  canAddMore ? handleInputSubmit : void 0
13097
13196
  ) }) }),
13098
- values.length > 0 && /* @__PURE__ */ jsx91("div", { className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "list-container")), styles["listContainer"]), children: values.map((value, index) => /* @__PURE__ */ jsxs38(
13197
+ values.length > 0 && /* @__PURE__ */ jsx93("div", { className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "list-container")), styles["listContainer"]), children: values.map((value, index) => /* @__PURE__ */ jsxs38(
13099
13198
  "div",
13100
13199
  {
13101
13200
  className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "list-item")), styles["listItem"]),
13102
13201
  children: [
13103
- /* @__PURE__ */ jsx91(
13202
+ /* @__PURE__ */ jsx93(
13104
13203
  "span",
13105
13204
  {
13106
13205
  className: cx27(withVendorCSSClassPrefix26(bem18("multi-input", "list-item-text")), styles["listItemText"]),
13107
13206
  children: value
13108
13207
  }
13109
13208
  ),
13110
- canRemove && /* @__PURE__ */ jsx91(
13209
+ canRemove && /* @__PURE__ */ jsx93(
13111
13210
  "button",
13112
13211
  {
13113
13212
  type: "button",
@@ -13118,7 +13217,7 @@ var MultiInput = ({
13118
13217
  styles["removeButton"]
13119
13218
  ),
13120
13219
  title: "Remove value",
13121
- children: /* @__PURE__ */ jsx91(BinIcon, { iconClassName: styles["icon"] })
13220
+ children: /* @__PURE__ */ jsx93(BinIcon, { iconClassName: styles["icon"] })
13122
13221
  }
13123
13222
  )
13124
13223
  ]
@@ -13133,7 +13232,7 @@ var MultiInput = ({
13133
13232
  var MultiInput_default = MultiInput;
13134
13233
 
13135
13234
  // src/components/presentation/UserProfile/BaseUserProfile.tsx
13136
- import { Fragment as Fragment15, jsx as jsx92, jsxs as jsxs39 } from "react/jsx-runtime";
13235
+ import { Fragment as Fragment16, jsx as jsx94, jsxs as jsxs39 } from "react/jsx-runtime";
13137
13236
  var fieldsToSkip = [
13138
13237
  "roles.default",
13139
13238
  "active",
@@ -13195,7 +13294,7 @@ var BaseUserProfile = ({
13195
13294
  },
13196
13295
  [showFields, hideFields]
13197
13296
  );
13198
- const PencilIcon = () => /* @__PURE__ */ jsx92(
13297
+ const PencilIcon = () => /* @__PURE__ */ jsx94(
13199
13298
  "svg",
13200
13299
  {
13201
13300
  width: "16",
@@ -13206,7 +13305,7 @@ var BaseUserProfile = ({
13206
13305
  strokeWidth: "2",
13207
13306
  strokeLinecap: "round",
13208
13307
  strokeLinejoin: "round",
13209
- children: /* @__PURE__ */ jsx92("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
13308
+ children: /* @__PURE__ */ jsx94("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
13210
13309
  }
13211
13310
  );
13212
13311
  const toggleFieldEdit = useCallback17((fieldName) => {
@@ -13236,12 +13335,12 @@ var BaseUserProfile = ({
13236
13335
  const styles = BaseUserProfile_styles_default(theme, colorScheme);
13237
13336
  const ObjectDisplay = ({ data }) => {
13238
13337
  if (!data || typeof data !== "object") return null;
13239
- return /* @__PURE__ */ jsx92("table", { className: styles.value, children: /* @__PURE__ */ jsx92("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ jsxs39("tr", { children: [
13240
- /* @__PURE__ */ jsx92("td", { className: styles.objectKey, children: /* @__PURE__ */ jsxs39("strong", { children: [
13338
+ return /* @__PURE__ */ jsx94("table", { className: styles.value, children: /* @__PURE__ */ jsx94("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ jsxs39("tr", { children: [
13339
+ /* @__PURE__ */ jsx94("td", { className: styles.objectKey, children: /* @__PURE__ */ jsxs39("strong", { children: [
13241
13340
  formatLabel(key),
13242
13341
  ":"
13243
13342
  ] }) }),
13244
- /* @__PURE__ */ jsx92("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ jsx92(ObjectDisplay, { data: value }) : String(value) })
13343
+ /* @__PURE__ */ jsx94("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ jsx94(ObjectDisplay, { data: value }) : String(value) })
13245
13344
  ] }, key)) }) });
13246
13345
  };
13247
13346
  function set(obj, path, value) {
@@ -13316,7 +13415,7 @@ var BaseUserProfile = ({
13316
13415
  const { value, displayName, description, name, type, required, mutability, subAttributes, multiValued } = schema;
13317
13416
  const label = displayName || description || name || "";
13318
13417
  if (subAttributes && Array.isArray(subAttributes)) {
13319
- return /* @__PURE__ */ jsx92(Fragment15, { children: subAttributes.map((subAttr, index) => {
13418
+ return /* @__PURE__ */ jsx94(Fragment16, { children: subAttributes.map((subAttr, index) => {
13320
13419
  let displayValue2;
13321
13420
  if (Array.isArray(subAttr.value)) {
13322
13421
  displayValue2 = subAttr.value.map((item) => typeof item === "object" ? JSON.stringify(item) : String(item)).join(", ");
@@ -13326,8 +13425,8 @@ var BaseUserProfile = ({
13326
13425
  displayValue2 = String(subAttr.value);
13327
13426
  }
13328
13427
  return /* @__PURE__ */ jsxs39("div", { className: styles.field, children: [
13329
- /* @__PURE__ */ jsx92("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
13330
- /* @__PURE__ */ jsx92("div", { className: styles.value, children: displayValue2 })
13428
+ /* @__PURE__ */ jsx94("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
13429
+ /* @__PURE__ */ jsx94("div", { className: styles.value, children: displayValue2 })
13331
13430
  ] }, index);
13332
13431
  }) });
13333
13432
  }
@@ -13351,9 +13450,9 @@ var BaseUserProfile = ({
13351
13450
  } else {
13352
13451
  fieldValues = [];
13353
13452
  }
13354
- return /* @__PURE__ */ jsxs39(Fragment15, { children: [
13355
- /* @__PURE__ */ jsx92("span", { className: styles.label, children: label }),
13356
- /* @__PURE__ */ jsx92("div", { className: styles.value, children: /* @__PURE__ */ jsx92(
13453
+ return /* @__PURE__ */ jsxs39(Fragment16, { children: [
13454
+ /* @__PURE__ */ jsx94("span", { className: styles.label, children: label }),
13455
+ /* @__PURE__ */ jsx94("div", { className: styles.value, children: /* @__PURE__ */ jsx94(
13357
13456
  MultiInput_default,
13358
13457
  {
13359
13458
  values: fieldValues,
@@ -13384,9 +13483,9 @@ var BaseUserProfile = ({
13384
13483
  } else {
13385
13484
  displayValue2 = "-";
13386
13485
  }
13387
- return /* @__PURE__ */ jsxs39(Fragment15, { children: [
13388
- /* @__PURE__ */ jsx92("span", { className: styles.label, children: label }),
13389
- /* @__PURE__ */ jsx92("div", { className: cx28(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ jsx92(
13486
+ return /* @__PURE__ */ jsxs39(Fragment16, { children: [
13487
+ /* @__PURE__ */ jsx94("span", { className: styles.label, children: label }),
13488
+ /* @__PURE__ */ jsx94("div", { className: cx28(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ jsx94(
13390
13489
  Button_default,
13391
13490
  {
13392
13491
  onClick: onStartEdit,
@@ -13401,7 +13500,7 @@ var BaseUserProfile = ({
13401
13500
  ] });
13402
13501
  }
13403
13502
  if (type === "COMPLEX" && typeof value === "object") {
13404
- return /* @__PURE__ */ jsx92(ObjectDisplay, { data: value });
13503
+ return /* @__PURE__ */ jsx94(ObjectDisplay, { data: value });
13405
13504
  }
13406
13505
  if (isEditing && onEditValue && mutability !== "READ_ONLY" && !readonlyFields.includes(name || "")) {
13407
13506
  let fieldValue;
@@ -13423,13 +13522,13 @@ var BaseUserProfile = ({
13423
13522
  let field;
13424
13523
  switch (type) {
13425
13524
  case "STRING":
13426
- field = /* @__PURE__ */ jsx92(TextField_default, { ...commonProps });
13525
+ field = /* @__PURE__ */ jsx94(TextField_default, { ...commonProps });
13427
13526
  break;
13428
13527
  case "DATE_TIME":
13429
- field = /* @__PURE__ */ jsx92(DatePicker_default, { ...commonProps });
13528
+ field = /* @__PURE__ */ jsx94(DatePicker_default, { ...commonProps });
13430
13529
  break;
13431
13530
  case "BOOLEAN":
13432
- field = /* @__PURE__ */ jsx92(
13531
+ field = /* @__PURE__ */ jsx94(
13433
13532
  Checkbox_default,
13434
13533
  {
13435
13534
  ...commonProps,
@@ -13441,7 +13540,7 @@ var BaseUserProfile = ({
13441
13540
  );
13442
13541
  break;
13443
13542
  case "COMPLEX":
13444
- field = /* @__PURE__ */ jsx92(
13543
+ field = /* @__PURE__ */ jsx94(
13445
13544
  "textarea",
13446
13545
  {
13447
13546
  value: fieldValue,
@@ -13453,11 +13552,11 @@ var BaseUserProfile = ({
13453
13552
  );
13454
13553
  break;
13455
13554
  default:
13456
- field = /* @__PURE__ */ jsx92(TextField_default, { ...commonProps });
13555
+ field = /* @__PURE__ */ jsx94(TextField_default, { ...commonProps });
13457
13556
  }
13458
- return /* @__PURE__ */ jsxs39(Fragment15, { children: [
13459
- /* @__PURE__ */ jsx92("span", { className: styles.label, children: label }),
13460
- /* @__PURE__ */ jsx92("div", { className: styles.value, children: field })
13557
+ return /* @__PURE__ */ jsxs39(Fragment16, { children: [
13558
+ /* @__PURE__ */ jsx94("span", { className: styles.label, children: label }),
13559
+ /* @__PURE__ */ jsx94("div", { className: styles.value, children: field })
13461
13560
  ] });
13462
13561
  }
13463
13562
  const hasValue = value !== void 0 && value !== null && value !== "";
@@ -13470,9 +13569,9 @@ var BaseUserProfile = ({
13470
13569
  } else {
13471
13570
  displayValue = "-";
13472
13571
  }
13473
- return /* @__PURE__ */ jsxs39(Fragment15, { children: [
13474
- /* @__PURE__ */ jsx92("span", { className: styles.label, children: label }),
13475
- /* @__PURE__ */ jsx92("div", { className: cx28(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ jsx92(
13572
+ return /* @__PURE__ */ jsxs39(Fragment16, { children: [
13573
+ /* @__PURE__ */ jsx94("span", { className: styles.label, children: label }),
13574
+ /* @__PURE__ */ jsx94("div", { className: cx28(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ jsx94(
13476
13575
  Button_default,
13477
13576
  {
13478
13577
  onClick: onStartEdit,
@@ -13496,7 +13595,7 @@ var BaseUserProfile = ({
13496
13595
  return null;
13497
13596
  }
13498
13597
  return /* @__PURE__ */ jsxs39("div", { className: styles.field, children: [
13499
- /* @__PURE__ */ jsx92("div", { className: styles.fieldInner, children: renderSchemaField(
13598
+ /* @__PURE__ */ jsx94("div", { className: styles.fieldInner, children: renderSchemaField(
13500
13599
  schema,
13501
13600
  isFieldEditing,
13502
13601
  (value) => {
@@ -13507,9 +13606,9 @@ var BaseUserProfile = ({
13507
13606
  () => toggleFieldEdit(schema.name)
13508
13607
  ) }),
13509
13608
  editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ jsxs39("div", { className: styles.fieldActions, children: [
13510
- isFieldEditing && /* @__PURE__ */ jsxs39(Fragment15, { children: [
13511
- /* @__PURE__ */ jsx92(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
13512
- /* @__PURE__ */ jsx92(
13609
+ isFieldEditing && /* @__PURE__ */ jsxs39(Fragment16, { children: [
13610
+ /* @__PURE__ */ jsx94(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
13611
+ /* @__PURE__ */ jsx94(
13513
13612
  Button_default,
13514
13613
  {
13515
13614
  size: "small",
@@ -13520,7 +13619,7 @@ var BaseUserProfile = ({
13520
13619
  }
13521
13620
  )
13522
13621
  ] }),
13523
- !isFieldEditing && hasValue && /* @__PURE__ */ jsx92(
13622
+ !isFieldEditing && hasValue && /* @__PURE__ */ jsx94(
13524
13623
  Button_default,
13525
13624
  {
13526
13625
  size: "small",
@@ -13529,7 +13628,7 @@ var BaseUserProfile = ({
13529
13628
  onClick: () => toggleFieldEdit(schema.name),
13530
13629
  title: "Edit",
13531
13630
  className: styles.editButton,
13532
- children: /* @__PURE__ */ jsx92(PencilIcon, {})
13631
+ children: /* @__PURE__ */ jsx94(PencilIcon, {})
13533
13632
  }
13534
13633
  )
13535
13634
  ] })
@@ -13552,9 +13651,9 @@ var BaseUserProfile = ({
13552
13651
  if (!shouldShowField(key)) return false;
13553
13652
  return value !== void 0 && value !== "" && value !== null;
13554
13653
  }).sort(([a], [b]) => a.localeCompare(b));
13555
- return /* @__PURE__ */ jsxs39(Fragment15, { children: [
13654
+ return /* @__PURE__ */ jsxs39(Fragment16, { children: [
13556
13655
  /* @__PURE__ */ jsxs39("div", { className: styles.profileSummary, children: [
13557
- /* @__PURE__ */ jsx92(
13656
+ /* @__PURE__ */ jsx94(
13558
13657
  Avatar,
13559
13658
  {
13560
13659
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, currentUser),
@@ -13564,16 +13663,16 @@ var BaseUserProfile = ({
13564
13663
  isLoading
13565
13664
  }
13566
13665
  ),
13567
- /* @__PURE__ */ jsx92(Typography_default, { variant: "h3", fontWeight: "medium", children: displayName }),
13568
- getMappedUserProfileValue_default("email", mergedMappings, currentUser) && /* @__PURE__ */ jsx92(Typography_default, { variant: "body2", color: "textSecondary", children: getMappedUserProfileValue_default("email", mergedMappings, currentUser) })
13666
+ /* @__PURE__ */ jsx94(Typography_default, { variant: "h3", fontWeight: "medium", children: displayName }),
13667
+ getMappedUserProfileValue_default("email", mergedMappings, currentUser) && /* @__PURE__ */ jsx94(Typography_default, { variant: "body2", color: "textSecondary", children: getMappedUserProfileValue_default("email", mergedMappings, currentUser) })
13569
13668
  ] }),
13570
- /* @__PURE__ */ jsx92(Divider_default, {}),
13669
+ /* @__PURE__ */ jsx94(Divider_default, {}),
13571
13670
  profileEntries.map(([key, value], index) => /* @__PURE__ */ jsxs39("div", { children: [
13572
13671
  /* @__PURE__ */ jsxs39("div", { className: styles.sectionRow, children: [
13573
- /* @__PURE__ */ jsx92("div", { className: styles.sectionLabel, children: formatLabel(key) }),
13574
- /* @__PURE__ */ jsx92("div", { className: styles.sectionValue, children: typeof value === "object" ? /* @__PURE__ */ jsx92(ObjectDisplay, { data: value }) : String(value) })
13672
+ /* @__PURE__ */ jsx94("div", { className: styles.sectionLabel, children: formatLabel(key) }),
13673
+ /* @__PURE__ */ jsx94("div", { className: styles.sectionValue, children: typeof value === "object" ? /* @__PURE__ */ jsx94(ObjectDisplay, { data: value }) : String(value) })
13575
13674
  ] }),
13576
- index < profileEntries.length - 1 && /* @__PURE__ */ jsx92(Divider_default, {})
13675
+ index < profileEntries.length - 1 && /* @__PURE__ */ jsx94(Divider_default, {})
13577
13676
  ] }, key))
13578
13677
  ] });
13579
13678
  };
@@ -13584,12 +13683,12 @@ var BaseUserProfile = ({
13584
13683
  variant: "error",
13585
13684
  className: cx28(withVendorCSSClassPrefix27(bem19("user-profile", "alert")), styles.alert),
13586
13685
  children: [
13587
- /* @__PURE__ */ jsx92(Alert_default.Title, { children: t("errors.heading") || "Error" }),
13588
- /* @__PURE__ */ jsx92(Alert_default.Description, { children: error })
13686
+ /* @__PURE__ */ jsx94(Alert_default.Title, { children: t("errors.heading") || "Error" }),
13687
+ /* @__PURE__ */ jsx94(Alert_default.Description, { children: error })
13589
13688
  ]
13590
13689
  }
13591
13690
  ),
13592
- schemas && schemas.length > 0 && /* @__PURE__ */ jsx92("div", { className: styles.header, children: /* @__PURE__ */ jsx92(
13691
+ schemas && schemas.length > 0 && /* @__PURE__ */ jsx94("div", { className: styles.header, children: /* @__PURE__ */ jsx94(
13593
13692
  Avatar,
13594
13693
  {
13595
13694
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, currentUser),
@@ -13599,7 +13698,7 @@ var BaseUserProfile = ({
13599
13698
  isLoading
13600
13699
  }
13601
13700
  ) }),
13602
- /* @__PURE__ */ jsx92("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
13701
+ /* @__PURE__ */ jsx94("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
13603
13702
  if (!schema.name || !shouldShowField(schema.name)) return false;
13604
13703
  if (!editable) {
13605
13704
  const value = flattenedProfile && schema.name ? flattenedProfile[schema.name] : void 0;
@@ -13616,13 +13715,13 @@ var BaseUserProfile = ({
13616
13715
  ...schema,
13617
13716
  value
13618
13717
  };
13619
- return /* @__PURE__ */ jsx92("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
13718
+ return /* @__PURE__ */ jsx94("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
13620
13719
  }) : renderProfileWithoutSchemas() })
13621
13720
  ] });
13622
13721
  if (mode === "popup") {
13623
- return /* @__PURE__ */ jsx92(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs39(Dialog_default.Content, { children: [
13624
- /* @__PURE__ */ jsx92(Dialog_default.Heading, { children: title ?? t("user.profile.heading") }),
13625
- /* @__PURE__ */ jsx92("div", { className: styles.popup, children: profileContent })
13722
+ return /* @__PURE__ */ jsx94(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs39(Dialog_default.Content, { children: [
13723
+ /* @__PURE__ */ jsx94(Dialog_default.Heading, { children: title ?? t("user.profile.heading") }),
13724
+ /* @__PURE__ */ jsx94("div", { className: styles.popup, children: profileContent })
13626
13725
  ] }) });
13627
13726
  }
13628
13727
  return profileContent;
@@ -13664,7 +13763,7 @@ var updateMeProfile = async ({ fetcher, instanceId = 0, ...requestConfig }) => {
13664
13763
  var updateMeProfile_default = updateMeProfile;
13665
13764
 
13666
13765
  // src/components/presentation/UserProfile/UserProfile.tsx
13667
- import { jsx as jsx93 } from "react/jsx-runtime";
13766
+ import { jsx as jsx95 } from "react/jsx-runtime";
13668
13767
  var UserProfile3 = ({ preferences, ...rest }) => {
13669
13768
  const { baseUrl, instanceId } = useAsgardeo_default();
13670
13769
  const { profile, flattenedProfile, schemas, onUpdateProfile } = useUser_default();
@@ -13683,7 +13782,7 @@ var UserProfile3 = ({ preferences, ...rest }) => {
13683
13782
  setError(message);
13684
13783
  }
13685
13784
  };
13686
- return /* @__PURE__ */ jsx93(
13785
+ return /* @__PURE__ */ jsx95(
13687
13786
  BaseUserProfile_default,
13688
13787
  {
13689
13788
  profile,
@@ -13906,7 +14005,7 @@ var useStyles24 = (theme, colorScheme) => useMemo35(() => {
13906
14005
  var BaseUserDropdown_styles_default = useStyles24;
13907
14006
 
13908
14007
  // src/components/presentation/UserDropdown/BaseUserDropdown.tsx
13909
- import { jsx as jsx94, jsxs as jsxs40 } from "react/jsx-runtime";
14008
+ import { jsx as jsx96, jsxs as jsxs40 } from "react/jsx-runtime";
13910
14009
  var BaseUserDropdown = ({
13911
14010
  fallback = null,
13912
14011
  className = "",
@@ -13958,14 +14057,14 @@ var BaseUserDropdown = ({
13958
14057
  const defaultMenuItems = [];
13959
14058
  if (onManageProfile) {
13960
14059
  defaultMenuItems.push({
13961
- icon: /* @__PURE__ */ jsx94(User_default2, { width: "16", height: "16" }),
14060
+ icon: /* @__PURE__ */ jsx96(User_default2, { width: "16", height: "16" }),
13962
14061
  label: "Manage Profile",
13963
14062
  onClick: onManageProfile
13964
14063
  });
13965
14064
  }
13966
14065
  if (onSignOut) {
13967
14066
  defaultMenuItems.push({
13968
- icon: /* @__PURE__ */ jsx94(LogOut_default, { width: "16", height: "16" }),
14067
+ icon: /* @__PURE__ */ jsx96(LogOut_default, { width: "16", height: "16" }),
13969
14068
  label: "Sign Out",
13970
14069
  onClick: onSignOut
13971
14070
  });
@@ -13989,7 +14088,7 @@ var BaseUserDropdown = ({
13989
14088
  "data-testid": "asgardeo-user-dropdown-trigger",
13990
14089
  ...getReferenceProps(),
13991
14090
  children: [
13992
- /* @__PURE__ */ jsx94(
14091
+ /* @__PURE__ */ jsx96(
13993
14092
  Avatar,
13994
14093
  {
13995
14094
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -13998,7 +14097,7 @@ var BaseUserDropdown = ({
13998
14097
  alt: `${getDisplayName_default(mergedMappings, user)}'s avatar`
13999
14098
  }
14000
14099
  ),
14001
- showTriggerLabel && /* @__PURE__ */ jsx94(
14100
+ showTriggerLabel && /* @__PURE__ */ jsx96(
14002
14101
  Typography_default,
14003
14102
  {
14004
14103
  variant: "body2",
@@ -14009,7 +14108,7 @@ var BaseUserDropdown = ({
14009
14108
  ]
14010
14109
  }
14011
14110
  ),
14012
- isOpen && /* @__PURE__ */ jsx94(FloatingPortal2, { id: portalId, children: /* @__PURE__ */ jsx94(FloatingFocusManager2, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ jsxs40(
14111
+ isOpen && /* @__PURE__ */ jsx96(FloatingPortal2, { id: portalId, children: /* @__PURE__ */ jsx96(FloatingFocusManager2, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ jsxs40(
14013
14112
  "div",
14014
14113
  {
14015
14114
  ref: refs.setFloating,
@@ -14023,7 +14122,7 @@ var BaseUserDropdown = ({
14023
14122
  ...getFloatingProps(),
14024
14123
  children: [
14025
14124
  /* @__PURE__ */ jsxs40("div", { className: cx29(withVendorCSSClassPrefix28("user-dropdown__header"), styles["dropdownHeader"]), children: [
14026
- /* @__PURE__ */ jsx94(
14125
+ /* @__PURE__ */ jsx96(
14027
14126
  Avatar,
14028
14127
  {
14029
14128
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -14033,7 +14132,7 @@ var BaseUserDropdown = ({
14033
14132
  }
14034
14133
  ),
14035
14134
  /* @__PURE__ */ jsxs40("div", { className: cx29(withVendorCSSClassPrefix28("user-dropdown__header-info"), styles["headerInfo"]), children: [
14036
- /* @__PURE__ */ jsx94(
14135
+ /* @__PURE__ */ jsx96(
14037
14136
  Typography_default,
14038
14137
  {
14039
14138
  noWrap: true,
@@ -14043,7 +14142,7 @@ var BaseUserDropdown = ({
14043
14142
  children: getDisplayName_default(mergedMappings, user)
14044
14143
  }
14045
14144
  ),
14046
- /* @__PURE__ */ jsx94(
14145
+ /* @__PURE__ */ jsx96(
14047
14146
  Typography_default,
14048
14147
  {
14049
14148
  noWrap: true,
@@ -14055,9 +14154,9 @@ var BaseUserDropdown = ({
14055
14154
  )
14056
14155
  ] })
14057
14156
  ] }),
14058
- /* @__PURE__ */ jsx94("div", { className: cx29(withVendorCSSClassPrefix28("user-dropdown__menu"), styles["dropdownMenu"]), children: allMenuItems.map((item, index) => /* @__PURE__ */ jsx94("div", { children: (() => {
14157
+ /* @__PURE__ */ jsx96("div", { className: cx29(withVendorCSSClassPrefix28("user-dropdown__menu"), styles["dropdownMenu"]), children: allMenuItems.map((item, index) => /* @__PURE__ */ jsx96("div", { children: (() => {
14059
14158
  if (item.label === "") {
14060
- return /* @__PURE__ */ jsx94(
14159
+ return /* @__PURE__ */ jsx96(
14061
14160
  "div",
14062
14161
  {
14063
14162
  className: cx29(withVendorCSSClassPrefix28("user-dropdown__menu-divider"), styles["divider"])
@@ -14082,12 +14181,12 @@ var BaseUserDropdown = ({
14082
14181
  onBlur: () => setHoveredItemIndex(null),
14083
14182
  children: [
14084
14183
  item.icon,
14085
- /* @__PURE__ */ jsx94("span", { children: item.label })
14184
+ /* @__PURE__ */ jsx96("span", { children: item.label })
14086
14185
  ]
14087
14186
  }
14088
14187
  );
14089
14188
  }
14090
- return /* @__PURE__ */ jsx94(
14189
+ return /* @__PURE__ */ jsx96(
14091
14190
  Button_default,
14092
14191
  {
14093
14192
  onClick: () => handleMenuItemClick(item),
@@ -14114,7 +14213,7 @@ var BaseUserDropdown_default = BaseUserDropdown;
14114
14213
 
14115
14214
  // src/components/presentation/UserDropdown/UserDropdown.tsx
14116
14215
  import { useState as useState27 } from "react";
14117
- import { Fragment as Fragment16, jsx as jsx95, jsxs as jsxs41 } from "react/jsx-runtime";
14216
+ import { Fragment as Fragment17, jsx as jsx97, jsxs as jsxs41 } from "react/jsx-runtime";
14118
14217
  var UserDropdown = ({
14119
14218
  children,
14120
14219
  renderTrigger,
@@ -14146,14 +14245,14 @@ var UserDropdown = ({
14146
14245
  user
14147
14246
  };
14148
14247
  if (children) {
14149
- return /* @__PURE__ */ jsxs41(Fragment16, { children: [
14248
+ return /* @__PURE__ */ jsxs41(Fragment17, { children: [
14150
14249
  children(renderProps),
14151
- /* @__PURE__ */ jsx95(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
14250
+ /* @__PURE__ */ jsx97(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
14152
14251
  ] });
14153
14252
  }
14154
14253
  if (renderTrigger || renderDropdown) {
14155
- return /* @__PURE__ */ jsxs41(Fragment16, { children: [
14156
- renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ jsx95(
14254
+ return /* @__PURE__ */ jsxs41(Fragment17, { children: [
14255
+ renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ jsx97(
14157
14256
  BaseUserDropdown,
14158
14257
  {
14159
14258
  user,
@@ -14163,11 +14262,11 @@ var UserDropdown = ({
14163
14262
  ...rest
14164
14263
  }
14165
14264
  ),
14166
- /* @__PURE__ */ jsx95(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
14265
+ /* @__PURE__ */ jsx97(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
14167
14266
  ] });
14168
14267
  }
14169
- return /* @__PURE__ */ jsxs41(Fragment16, { children: [
14170
- /* @__PURE__ */ jsx95(
14268
+ return /* @__PURE__ */ jsxs41(Fragment17, { children: [
14269
+ /* @__PURE__ */ jsx97(
14171
14270
  BaseUserDropdown,
14172
14271
  {
14173
14272
  user,
@@ -14177,7 +14276,7 @@ var UserDropdown = ({
14177
14276
  ...rest
14178
14277
  }
14179
14278
  ),
14180
- isProfileOpen && /* @__PURE__ */ jsx95(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
14279
+ isProfileOpen && /* @__PURE__ */ jsx97(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
14181
14280
  ] });
14182
14281
  };
14183
14282
  var UserDropdown_default = UserDropdown;
@@ -14425,9 +14524,9 @@ var useStyles25 = (theme, colorScheme) => useMemo36(() => {
14425
14524
  var BaseOrganizationSwitcher_styles_default = useStyles25;
14426
14525
 
14427
14526
  // src/components/primitives/Icons/Building.tsx
14428
- import { jsx as jsx96, jsxs as jsxs42 } from "react/jsx-runtime";
14527
+ import { jsx as jsx98, jsxs as jsxs42 } from "react/jsx-runtime";
14429
14528
  var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsxs42("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
14430
- /* @__PURE__ */ jsx96(
14529
+ /* @__PURE__ */ jsx98(
14431
14530
  "path",
14432
14531
  {
14433
14532
  d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",
@@ -14437,30 +14536,30 @@ var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PU
14437
14536
  strokeLinejoin: "round"
14438
14537
  }
14439
14538
  ),
14440
- /* @__PURE__ */ jsx96("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14441
- /* @__PURE__ */ jsx96("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14442
- /* @__PURE__ */ jsx96("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14443
- /* @__PURE__ */ jsx96("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14444
- /* @__PURE__ */ jsx96("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14445
- /* @__PURE__ */ jsx96("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
14539
+ /* @__PURE__ */ jsx98("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14540
+ /* @__PURE__ */ jsx98("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14541
+ /* @__PURE__ */ jsx98("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14542
+ /* @__PURE__ */ jsx98("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14543
+ /* @__PURE__ */ jsx98("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
14544
+ /* @__PURE__ */ jsx98("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
14446
14545
  ] });
14447
14546
  Building.displayName = "Building";
14448
14547
  var Building_default = Building;
14449
14548
 
14450
14549
  // src/components/primitives/Icons/Check.tsx
14451
- import { jsx as jsx97 } from "react/jsx-runtime";
14452
- var Check = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx97("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx97("path", { d: "M20 6 9 17l-5-5", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
14550
+ import { jsx as jsx99 } from "react/jsx-runtime";
14551
+ var Check = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx99("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx99("path", { d: "M20 6 9 17l-5-5", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
14453
14552
  Check.displayName = "Check";
14454
14553
  var Check_default = Check;
14455
14554
 
14456
14555
  // src/components/primitives/Icons/ChevronDown.tsx
14457
- import { jsx as jsx98 } from "react/jsx-runtime";
14458
- var ChevronDown = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx98("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx98("path", { d: "m6 9 6 6 6-6", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
14556
+ import { jsx as jsx100 } from "react/jsx-runtime";
14557
+ var ChevronDown = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx100("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx100("path", { d: "m6 9 6 6 6-6", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
14459
14558
  ChevronDown.displayName = "ChevronDown";
14460
14559
  var ChevronDown_default = ChevronDown;
14461
14560
 
14462
14561
  // src/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.tsx
14463
- import { Fragment as Fragment17, jsx as jsx99, jsxs as jsxs43 } from "react/jsx-runtime";
14562
+ import { Fragment as Fragment18, jsx as jsx101, jsxs as jsxs43 } from "react/jsx-runtime";
14464
14563
  var BaseOrganizationSwitcher = ({
14465
14564
  organizations,
14466
14565
  currentOrganization,
@@ -14515,8 +14614,8 @@ var BaseOrganizationSwitcher = ({
14515
14614
  const switchableOrganizations = organizations.filter(
14516
14615
  (org) => org.id !== currentOrganization?.id
14517
14616
  );
14518
- const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ jsxs43(Fragment17, { children: [
14519
- /* @__PURE__ */ jsx99(
14617
+ const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ jsxs43(Fragment18, { children: [
14618
+ /* @__PURE__ */ jsx101(
14520
14619
  Avatar,
14521
14620
  {
14522
14621
  variant: "square",
@@ -14527,21 +14626,21 @@ var BaseOrganizationSwitcher = ({
14527
14626
  }
14528
14627
  ),
14529
14628
  /* @__PURE__ */ jsxs43("div", { className: cx30(styles["organizationInfo"]), children: [
14530
- /* @__PURE__ */ jsx99(Typography_default, { variant: "body2", fontWeight: "medium", className: cx30(styles["organizationName"]), children: organization.name }),
14629
+ /* @__PURE__ */ jsx101(Typography_default, { variant: "body2", fontWeight: "medium", className: cx30(styles["organizationName"]), children: organization.name }),
14531
14630
  /* @__PURE__ */ jsxs43("div", { className: cx30(styles["organizationMeta"]), children: [
14532
14631
  showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsxs43("span", { children: [
14533
14632
  organization.memberCount,
14534
14633
  " ",
14535
14634
  organization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members")
14536
14635
  ] }),
14537
- showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsx99("span", { children: " \u2022 " }),
14538
- showRole && organization.role && /* @__PURE__ */ jsx99("span", { className: cx30(styles["roleCapitalized"]), children: organization.role })
14636
+ showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsx101("span", { children: " \u2022 " }),
14637
+ showRole && organization.role && /* @__PURE__ */ jsx101("span", { className: cx30(styles["roleCapitalized"]), children: organization.role })
14539
14638
  ] })
14540
14639
  ] }),
14541
- isSelected && /* @__PURE__ */ jsx99(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
14640
+ isSelected && /* @__PURE__ */ jsx101(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
14542
14641
  ] });
14543
- const defaultRenderLoading2 = () => /* @__PURE__ */ jsx99("div", { className: cx30(styles["loadingContainer"]), children: /* @__PURE__ */ jsx99(Typography_default, { variant: "caption", className: cx30(styles["loadingText"]), children: t("organization.switcher.loading.placeholder.organizations") }) });
14544
- const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ jsx99("div", { className: cx30(styles["errorContainer"]), children: /* @__PURE__ */ jsx99(Typography_default, { variant: "caption", className: cx30(styles["errorText"]), children: errorMessage }) });
14642
+ const defaultRenderLoading2 = () => /* @__PURE__ */ jsx101("div", { className: cx30(styles["loadingContainer"]), children: /* @__PURE__ */ jsx101(Typography_default, { variant: "caption", className: cx30(styles["loadingText"]), children: t("organization.switcher.loading.placeholder.organizations") }) });
14643
+ const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ jsx101("div", { className: cx30(styles["errorContainer"]), children: /* @__PURE__ */ jsx101(Typography_default, { variant: "caption", className: cx30(styles["errorText"]), children: errorMessage }) });
14545
14644
  return /* @__PURE__ */ jsxs43("div", { className: cx30(styles["root"], className), style, children: [
14546
14645
  /* @__PURE__ */ jsxs43(
14547
14646
  Button_default,
@@ -14553,8 +14652,8 @@ var BaseOrganizationSwitcher = ({
14553
14652
  size: "medium",
14554
14653
  ...getReferenceProps(),
14555
14654
  children: [
14556
- currentOrganization ? /* @__PURE__ */ jsxs43(Fragment17, { children: [
14557
- /* @__PURE__ */ jsx99(
14655
+ currentOrganization ? /* @__PURE__ */ jsxs43(Fragment18, { children: [
14656
+ /* @__PURE__ */ jsx101(
14558
14657
  Avatar,
14559
14658
  {
14560
14659
  variant: "square",
@@ -14564,16 +14663,16 @@ var BaseOrganizationSwitcher = ({
14564
14663
  alt: `${currentOrganization.name} avatar`
14565
14664
  }
14566
14665
  ),
14567
- showTriggerLabel && /* @__PURE__ */ jsx99(Typography_default, { variant: "body2", className: cx30(styles["triggerLabel"]), children: currentOrganization.name })
14568
- ] }) : /* @__PURE__ */ jsxs43(Fragment17, { children: [
14569
- /* @__PURE__ */ jsx99(Building_default, { width: avatarSize, height: avatarSize }),
14570
- showTriggerLabel && /* @__PURE__ */ jsx99(Typography_default, { variant: "body2", className: cx30(styles["triggerLabel"]), children: t("elements.fields.organization.select.label") })
14666
+ showTriggerLabel && /* @__PURE__ */ jsx101(Typography_default, { variant: "body2", className: cx30(styles["triggerLabel"]), children: currentOrganization.name })
14667
+ ] }) : /* @__PURE__ */ jsxs43(Fragment18, { children: [
14668
+ /* @__PURE__ */ jsx101(Building_default, { width: avatarSize, height: avatarSize }),
14669
+ showTriggerLabel && /* @__PURE__ */ jsx101(Typography_default, { variant: "body2", className: cx30(styles["triggerLabel"]), children: t("elements.fields.organization.select.label") })
14571
14670
  ] }),
14572
- /* @__PURE__ */ jsx99("span", { style: { display: "inline-flex", transform: isRTL ? "scaleX(-1)" : "none" }, children: /* @__PURE__ */ jsx99(ChevronDown_default, { width: "16", height: "16" }) })
14671
+ /* @__PURE__ */ jsx101("span", { style: { display: "inline-flex", transform: isRTL ? "scaleX(-1)" : "none" }, children: /* @__PURE__ */ jsx101(ChevronDown_default, { width: "16", height: "16" }) })
14573
14672
  ]
14574
14673
  }
14575
14674
  ),
14576
- isOpen && /* @__PURE__ */ jsx99(FloatingPortal3, { id: portalId, children: /* @__PURE__ */ jsx99(FloatingFocusManager3, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ jsxs43(
14675
+ isOpen && /* @__PURE__ */ jsx101(FloatingPortal3, { id: portalId, children: /* @__PURE__ */ jsx101(FloatingFocusManager3, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ jsxs43(
14577
14676
  "div",
14578
14677
  {
14579
14678
  ref: refs.setFloating,
@@ -14582,7 +14681,7 @@ var BaseOrganizationSwitcher = ({
14582
14681
  ...getFloatingProps(),
14583
14682
  children: [
14584
14683
  currentOrganization && /* @__PURE__ */ jsxs43("div", { className: cx30(styles["header"]), children: [
14585
- /* @__PURE__ */ jsx99(
14684
+ /* @__PURE__ */ jsx101(
14586
14685
  Avatar,
14587
14686
  {
14588
14687
  variant: "square",
@@ -14593,7 +14692,7 @@ var BaseOrganizationSwitcher = ({
14593
14692
  }
14594
14693
  ),
14595
14694
  /* @__PURE__ */ jsxs43("div", { className: cx30(styles["headerInfo"]), children: [
14596
- /* @__PURE__ */ jsx99(Typography_default, { noWrap: true, className: cx30(styles["headerName"]), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
14695
+ /* @__PURE__ */ jsx101(Typography_default, { noWrap: true, className: cx30(styles["headerName"]), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
14597
14696
  /* @__PURE__ */ jsxs43("div", { className: cx30(styles["headerMeta"]), children: [
14598
14697
  showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ jsxs43(
14599
14698
  Typography_default,
@@ -14612,10 +14711,10 @@ var BaseOrganizationSwitcher = ({
14612
14711
  ]
14613
14712
  }
14614
14713
  ),
14615
- showRole && currentOrganization.role && (!showMemberCount || currentOrganization.memberCount === void 0) && /* @__PURE__ */ jsx99(Typography_default, { noWrap: true, className: cx30(styles["headerRole"]), variant: "caption", color: "secondary", children: currentOrganization.role })
14714
+ showRole && currentOrganization.role && (!showMemberCount || currentOrganization.memberCount === void 0) && /* @__PURE__ */ jsx101(Typography_default, { noWrap: true, className: cx30(styles["headerRole"]), variant: "caption", color: "secondary", children: currentOrganization.role })
14616
14715
  ] })
14617
14716
  ] }),
14618
- onManageProfile && /* @__PURE__ */ jsx99(
14717
+ onManageProfile && /* @__PURE__ */ jsx101(
14619
14718
  Button_default,
14620
14719
  {
14621
14720
  onClick: onManageProfile,
@@ -14636,8 +14735,8 @@ var BaseOrganizationSwitcher = ({
14636
14735
  strokeLinecap: "round",
14637
14736
  strokeLinejoin: "round",
14638
14737
  children: [
14639
- /* @__PURE__ */ jsx99("circle", { cx: "12", cy: "12", r: "3" }),
14640
- /* @__PURE__ */ jsx99("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" })
14738
+ /* @__PURE__ */ jsx101("circle", { cx: "12", cy: "12", r: "3" }),
14739
+ /* @__PURE__ */ jsx101("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" })
14641
14740
  ]
14642
14741
  }
14643
14742
  ),
@@ -14645,27 +14744,27 @@ var BaseOrganizationSwitcher = ({
14645
14744
  }
14646
14745
  )
14647
14746
  ] }),
14648
- organizations.length > 1 && /* @__PURE__ */ jsx99(
14747
+ organizations.length > 1 && /* @__PURE__ */ jsx101(
14649
14748
  "div",
14650
14749
  {
14651
14750
  className: cx30(styles["header"], styles["sectionHeaderContainer"]),
14652
14751
  style: {
14653
14752
  borderTop: currentOrganization ? `1px solid ${theme.vars.colors.border}` : "none"
14654
14753
  },
14655
- children: /* @__PURE__ */ jsx99(Typography_default, { variant: "caption", fontWeight: 600, className: cx30(styles["sectionHeader"]), children: t("organization.switcher.switch.organization") })
14754
+ children: /* @__PURE__ */ jsx101(Typography_default, { variant: "caption", fontWeight: 600, className: cx30(styles["sectionHeader"]), children: t("organization.switcher.switch.organization") })
14656
14755
  }
14657
14756
  ),
14658
- /* @__PURE__ */ jsx99("div", { className: cx30(styles["menu"]), children: (() => {
14757
+ /* @__PURE__ */ jsx101("div", { className: cx30(styles["menu"]), children: (() => {
14659
14758
  if (loading) {
14660
14759
  return renderLoading ? renderLoading() : defaultRenderLoading2();
14661
14760
  }
14662
14761
  if (error) {
14663
14762
  return renderError ? renderError(error) : defaultRenderError2(error);
14664
14763
  }
14665
- return /* @__PURE__ */ jsxs43(Fragment17, { children: [
14764
+ return /* @__PURE__ */ jsxs43(Fragment18, { children: [
14666
14765
  switchableOrganizations.map((organization) => {
14667
14766
  const isSelected = false;
14668
- return /* @__PURE__ */ jsx99(
14767
+ return /* @__PURE__ */ jsx101(
14669
14768
  Button_default,
14670
14769
  {
14671
14770
  onClick: () => handleOrganizationSwitch(organization),
@@ -14683,10 +14782,10 @@ var BaseOrganizationSwitcher = ({
14683
14782
  organization.id
14684
14783
  );
14685
14784
  }),
14686
- menuItems.length > 0 && /* @__PURE__ */ jsxs43(Fragment17, { children: [
14687
- /* @__PURE__ */ jsx99("div", { className: cx30(styles["menuDivider"]) }),
14785
+ menuItems.length > 0 && /* @__PURE__ */ jsxs43(Fragment18, { children: [
14786
+ /* @__PURE__ */ jsx101("div", { className: cx30(styles["menuDivider"]) }),
14688
14787
  menuItems.map(
14689
- (item, index) => /* @__PURE__ */ jsx99("div", { children: item.href ? /* @__PURE__ */ jsxs43(
14788
+ (item, index) => /* @__PURE__ */ jsx101("div", { children: item.href ? /* @__PURE__ */ jsxs43(
14690
14789
  "a",
14691
14790
  {
14692
14791
  href: item.href,
@@ -14700,10 +14799,10 @@ var BaseOrganizationSwitcher = ({
14700
14799
  onBlur: () => setHoveredItemIndex(null),
14701
14800
  children: [
14702
14801
  item.icon,
14703
- /* @__PURE__ */ jsx99("span", { children: item.label })
14802
+ /* @__PURE__ */ jsx101("span", { children: item.label })
14704
14803
  ]
14705
14804
  }
14706
- ) : /* @__PURE__ */ jsx99(
14805
+ ) : /* @__PURE__ */ jsx101(
14707
14806
  Button_default,
14708
14807
  {
14709
14808
  onClick: () => handleMenuItemClick(item),
@@ -14735,7 +14834,7 @@ var BaseOrganizationSwitcher_default = BaseOrganizationSwitcher;
14735
14834
  import { useState as useState35 } from "react";
14736
14835
 
14737
14836
  // src/components/primitives/Icons/BuildingAlt.tsx
14738
- import { jsx as jsx100, jsxs as jsxs44 } from "react/jsx-runtime";
14837
+ import { jsx as jsx102, jsxs as jsxs44 } from "react/jsx-runtime";
14739
14838
  var BuildingAlt = ({ height = 24, width = 24 }) => /* @__PURE__ */ jsxs44(
14740
14839
  "svg",
14741
14840
  {
@@ -14749,13 +14848,13 @@ var BuildingAlt = ({ height = 24, width = 24 }) => /* @__PURE__ */ jsxs44(
14749
14848
  strokeLinecap: "round",
14750
14849
  strokeLinejoin: "round",
14751
14850
  children: [
14752
- /* @__PURE__ */ jsx100("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
14753
- /* @__PURE__ */ jsx100("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
14754
- /* @__PURE__ */ jsx100("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
14755
- /* @__PURE__ */ jsx100("path", { d: "M10 6h4" }),
14756
- /* @__PURE__ */ jsx100("path", { d: "M10 10h4" }),
14757
- /* @__PURE__ */ jsx100("path", { d: "M10 14h4" }),
14758
- /* @__PURE__ */ jsx100("path", { d: "M10 18h4" })
14851
+ /* @__PURE__ */ jsx102("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
14852
+ /* @__PURE__ */ jsx102("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
14853
+ /* @__PURE__ */ jsx102("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
14854
+ /* @__PURE__ */ jsx102("path", { d: "M10 6h4" }),
14855
+ /* @__PURE__ */ jsx102("path", { d: "M10 10h4" }),
14856
+ /* @__PURE__ */ jsx102("path", { d: "M10 14h4" }),
14857
+ /* @__PURE__ */ jsx102("path", { d: "M10 18h4" })
14759
14858
  ]
14760
14859
  }
14761
14860
  );
@@ -14909,7 +15008,7 @@ var useStyles26 = (theme, colorScheme) => useMemo37(() => {
14909
15008
  var BaseCreateOrganization_styles_default = useStyles26;
14910
15009
 
14911
15010
  // src/components/presentation/CreateOrganization/BaseCreateOrganization.tsx
14912
- import { jsx as jsx101, jsxs as jsxs45 } from "react/jsx-runtime";
15011
+ import { jsx as jsx103, jsxs as jsxs45 } from "react/jsx-runtime";
14913
15012
  var logger8 = createPackageComponentLogger8(
14914
15013
  "@asgardeo/react",
14915
15014
  "BaseCreateOrganization"
@@ -14999,13 +15098,13 @@ var BaseCreateOrganization = ({
14999
15098
  logger8.error("Form submission error:");
15000
15099
  }
15001
15100
  };
15002
- const createOrganizationContent = /* @__PURE__ */ jsx101("div", { className: cx31(styles["root"], cardLayout && styles["card"], className), style, children: /* @__PURE__ */ jsxs45("div", { className: cx31(styles["content"]), children: [
15101
+ const createOrganizationContent = /* @__PURE__ */ jsx103("div", { className: cx31(styles["root"], cardLayout && styles["card"], className), style, children: /* @__PURE__ */ jsxs45("div", { className: cx31(styles["content"]), children: [
15003
15102
  /* @__PURE__ */ jsxs45("form", { id: "create-organization-form", className: cx31(styles["form"]), onSubmit: handleSubmit, children: [
15004
15103
  error && /* @__PURE__ */ jsxs45(Alert_default, { variant: "error", className: styles["errorAlert"], children: [
15005
- /* @__PURE__ */ jsx101(Alert_default.Title, { children: "Error" }),
15006
- /* @__PURE__ */ jsx101(Alert_default.Description, { children: error })
15104
+ /* @__PURE__ */ jsx103(Alert_default.Title, { children: "Error" }),
15105
+ /* @__PURE__ */ jsx103(Alert_default.Description, { children: error })
15007
15106
  ] }),
15008
- /* @__PURE__ */ jsx101("div", { className: cx31(styles["fieldGroup"]), children: /* @__PURE__ */ jsx101(
15107
+ /* @__PURE__ */ jsx103("div", { className: cx31(styles["fieldGroup"]), children: /* @__PURE__ */ jsx103(
15009
15108
  TextField_default,
15010
15109
  {
15011
15110
  label: `${t("elements.fields.organization.name.label")}`,
@@ -15018,7 +15117,7 @@ var BaseCreateOrganization = ({
15018
15117
  className: cx31(styles["input"])
15019
15118
  }
15020
15119
  ) }),
15021
- /* @__PURE__ */ jsx101("div", { className: cx31(styles["fieldGroup"]), children: /* @__PURE__ */ jsx101(
15120
+ /* @__PURE__ */ jsx103("div", { className: cx31(styles["fieldGroup"]), children: /* @__PURE__ */ jsx103(
15022
15121
  TextField_default,
15023
15122
  {
15024
15123
  label: `${t("elements.fields.organization.handle.label") || "Organization Handle"}`,
@@ -15032,9 +15131,9 @@ var BaseCreateOrganization = ({
15032
15131
  className: cx31(styles["input"])
15033
15132
  }
15034
15133
  ) }),
15035
- /* @__PURE__ */ jsx101("div", { className: cx31(styles["fieldGroup"]), children: /* @__PURE__ */ jsxs45(FormControl_default, { error: formErrors.description, children: [
15036
- /* @__PURE__ */ jsx101(InputLabel_default, { required: true, children: t("elements.fields.organization.description.label") }),
15037
- /* @__PURE__ */ jsx101(
15134
+ /* @__PURE__ */ jsx103("div", { className: cx31(styles["fieldGroup"]), children: /* @__PURE__ */ jsxs45(FormControl_default, { error: formErrors.description, children: [
15135
+ /* @__PURE__ */ jsx103(InputLabel_default, { required: true, children: t("elements.fields.organization.description.label") }),
15136
+ /* @__PURE__ */ jsx103(
15038
15137
  "textarea",
15039
15138
  {
15040
15139
  className: cx31(styles["textarea"], formErrors.description && styles["textareaError"]),
@@ -15049,14 +15148,14 @@ var BaseCreateOrganization = ({
15049
15148
  renderAdditionalFields && renderAdditionalFields()
15050
15149
  ] }),
15051
15150
  /* @__PURE__ */ jsxs45("div", { className: cx31(styles["actions"]), children: [
15052
- onCancel && /* @__PURE__ */ jsx101(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.buttons.cancel.text") }),
15053
- /* @__PURE__ */ jsx101(Button_default, { type: "submit", variant: "solid", color: "primary", disabled: loading, form: "create-organization-form", children: loading ? t("organization.create.buttons.create_organization.loading.text") : t("organization.create.buttons.create_organization.text") })
15151
+ onCancel && /* @__PURE__ */ jsx103(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.buttons.cancel.text") }),
15152
+ /* @__PURE__ */ jsx103(Button_default, { type: "submit", variant: "solid", color: "primary", disabled: loading, form: "create-organization-form", children: loading ? t("organization.create.buttons.create_organization.loading.text") : t("organization.create.buttons.create_organization.text") })
15054
15153
  ] })
15055
15154
  ] }) });
15056
15155
  if (mode === "popup") {
15057
- return /* @__PURE__ */ jsx101(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs45(Dialog_default.Content, { children: [
15058
- /* @__PURE__ */ jsx101(Dialog_default.Heading, { children: title }),
15059
- /* @__PURE__ */ jsx101("div", { className: styles["popup"], children: createOrganizationContent })
15156
+ return /* @__PURE__ */ jsx103(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs45(Dialog_default.Content, { children: [
15157
+ /* @__PURE__ */ jsx103(Dialog_default.Heading, { children: title }),
15158
+ /* @__PURE__ */ jsx103("div", { className: styles["popup"], children: createOrganizationContent })
15060
15159
  ] }) });
15061
15160
  }
15062
15161
  return createOrganizationContent;
@@ -15097,7 +15196,7 @@ var createOrganization = async ({
15097
15196
  var createOrganization_default = createOrganization;
15098
15197
 
15099
15198
  // src/components/presentation/CreateOrganization/CreateOrganization.tsx
15100
- import { Fragment as Fragment18, jsx as jsx102 } from "react/jsx-runtime";
15199
+ import { Fragment as Fragment19, jsx as jsx104 } from "react/jsx-runtime";
15101
15200
  var CreateOrganization = ({
15102
15201
  onCreateOrganization,
15103
15202
  fallback = null,
@@ -15113,7 +15212,7 @@ var CreateOrganization = ({
15113
15212
  return fallback;
15114
15213
  }
15115
15214
  if (!isSignedIn) {
15116
- return /* @__PURE__ */ jsx102(Fragment18, {});
15215
+ return /* @__PURE__ */ jsx104(Fragment19, {});
15117
15216
  }
15118
15217
  const parentId = defaultParentId || currentOrganization?.id || "";
15119
15218
  const handleSubmit = async (payload) => {
@@ -15148,7 +15247,7 @@ var CreateOrganization = ({
15148
15247
  setLoading(false);
15149
15248
  }
15150
15249
  };
15151
- return /* @__PURE__ */ jsx102(
15250
+ return /* @__PURE__ */ jsx104(
15152
15251
  BaseCreateOrganization,
15153
15252
  {
15154
15253
  onSubmit: handleSubmit,
@@ -15163,7 +15262,7 @@ var CreateOrganization = ({
15163
15262
 
15164
15263
  // src/components/presentation/OrganizationList/OrganizationList.tsx
15165
15264
  import { cx as cx33 } from "@emotion/css";
15166
- import { useEffect as useEffect21, useState as useState31 } from "react";
15265
+ import { useEffect as useEffect22, useState as useState31 } from "react";
15167
15266
 
15168
15267
  // src/components/presentation/OrganizationList/BaseOrganizationList.tsx
15169
15268
  import { cx as cx32 } from "@emotion/css";
@@ -15396,12 +15495,12 @@ var useStyles27 = (theme, colorScheme) => useMemo38(() => {
15396
15495
  var BaseOrganizationList_styles_default = useStyles27;
15397
15496
 
15398
15497
  // src/components/presentation/OrganizationList/BaseOrganizationList.tsx
15399
- import { jsx as jsx103, jsxs as jsxs46 } from "react/jsx-runtime";
15498
+ import { jsx as jsx105, jsxs as jsxs46 } from "react/jsx-runtime";
15400
15499
  var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect, showStatus) => /* @__PURE__ */ jsxs46("div", { className: cx32(styles.organizationItem), children: [
15401
15500
  /* @__PURE__ */ jsxs46("div", { className: cx32(styles.organizationContent), children: [
15402
- /* @__PURE__ */ jsx103(Avatar, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
15501
+ /* @__PURE__ */ jsx105(Avatar, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
15403
15502
  /* @__PURE__ */ jsxs46("div", { className: cx32(styles.organizationInfo), children: [
15404
- /* @__PURE__ */ jsx103(Typography_default, { variant: "h6", className: cx32(styles.organizationName), children: organization.name }),
15503
+ /* @__PURE__ */ jsx105(Typography_default, { variant: "h6", className: cx32(styles.organizationName), children: organization.name }),
15405
15504
  /* @__PURE__ */ jsxs46(Typography_default, { variant: "body2", color: "textSecondary", className: cx32(styles.organizationHandle), children: [
15406
15505
  "@",
15407
15506
  organization.orgHandle
@@ -15409,7 +15508,7 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
15409
15508
  showStatus && /* @__PURE__ */ jsxs46(Typography_default, { variant: "body2", color: "textSecondary", className: cx32(styles.organizationStatus), children: [
15410
15509
  t("organization.switcher.status.label"),
15411
15510
  " ",
15412
- /* @__PURE__ */ jsx103(
15511
+ /* @__PURE__ */ jsx105(
15413
15512
  "span",
15414
15513
  {
15415
15514
  className: cx32(
@@ -15422,7 +15521,7 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
15422
15521
  ] })
15423
15522
  ] })
15424
15523
  ] }),
15425
- organization.canSwitch && /* @__PURE__ */ jsx103("div", { className: cx32(styles.organizationActions), children: /* @__PURE__ */ jsx103(
15524
+ organization.canSwitch && /* @__PURE__ */ jsx105("div", { className: cx32(styles.organizationActions), children: /* @__PURE__ */ jsx105(
15426
15525
  Button_default,
15427
15526
  {
15428
15527
  onClick: (e) => {
@@ -15436,16 +15535,16 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
15436
15535
  ) })
15437
15536
  ] }, organization.id);
15438
15537
  var defaultRenderLoading = (t, styles) => /* @__PURE__ */ jsxs46("div", { className: cx32(styles.loadingContainer), children: [
15439
- /* @__PURE__ */ jsx103(Spinner_default, { size: "medium" }),
15440
- /* @__PURE__ */ jsx103(Typography_default, { variant: "body1", color: "textSecondary", className: cx32(styles.loadingText), children: t("organization.switcher.loading.placeholder.organizations") })
15538
+ /* @__PURE__ */ jsx105(Spinner_default, { size: "medium" }),
15539
+ /* @__PURE__ */ jsx105(Typography_default, { variant: "body1", color: "textSecondary", className: cx32(styles.loadingText), children: t("organization.switcher.loading.placeholder.organizations") })
15441
15540
  ] });
15442
- var defaultRenderError = (errorMessage, t, styles) => /* @__PURE__ */ jsx103("div", { className: cx32(styles.errorContainer), children: /* @__PURE__ */ jsxs46(Typography_default, { variant: "body1", color: "error", children: [
15443
- /* @__PURE__ */ jsx103("strong", { children: t("organization.switcher.error.prefix") }),
15541
+ var defaultRenderError = (errorMessage, t, styles) => /* @__PURE__ */ jsx105("div", { className: cx32(styles.errorContainer), children: /* @__PURE__ */ jsxs46(Typography_default, { variant: "body1", color: "error", children: [
15542
+ /* @__PURE__ */ jsx105("strong", { children: t("organization.switcher.error.prefix") }),
15444
15543
  " ",
15445
15544
  errorMessage
15446
15545
  ] }) });
15447
- var defaultRenderLoadMore = (onLoadMore, isLoadingMore, t, styles) => /* @__PURE__ */ jsx103(Button_default, { onClick: onLoadMore, disabled: isLoadingMore, className: cx32(styles.loadMoreButton), type: "button", fullWidth: true, children: isLoadingMore ? t("organization.switcher.loading.more") : t("organization.switcher.buttons.load_more.text") });
15448
- var defaultRenderEmpty = (t, styles) => /* @__PURE__ */ jsx103("div", { className: cx32(styles.emptyContainer), children: /* @__PURE__ */ jsx103(Typography_default, { variant: "body1", color: "textSecondary", className: cx32(styles.emptyText), children: t("organization.switcher.no.organizations") }) });
15546
+ var defaultRenderLoadMore = (onLoadMore, isLoadingMore, t, styles) => /* @__PURE__ */ jsx105(Button_default, { onClick: onLoadMore, disabled: isLoadingMore, className: cx32(styles.loadMoreButton), type: "button", fullWidth: true, children: isLoadingMore ? t("organization.switcher.loading.more") : t("organization.switcher.buttons.load_more.text") });
15547
+ var defaultRenderEmpty = (t, styles) => /* @__PURE__ */ jsx105("div", { className: cx32(styles.emptyContainer), children: /* @__PURE__ */ jsx105(Typography_default, { variant: "body1", color: "textSecondary", className: cx32(styles.emptyText), children: t("organization.switcher.no.organizations") }) });
15449
15548
  var BaseOrganizationList = ({
15450
15549
  className = "",
15451
15550
  allOrganizations,
@@ -15489,42 +15588,42 @@ var BaseOrganizationList = ({
15489
15588
  const renderLoadMoreWithStyles = renderLoadMore || ((onLoadMore, loadingMore) => defaultRenderLoadMore(onLoadMore, loadingMore, t, styles));
15490
15589
  const renderOrganizationWithStyles = renderOrganization || ((org) => defaultRenderOrganization(org, styles, t, onOrganizationSelect, showStatus));
15491
15590
  if (isLoading && organizationsWithSwitchAccess?.length === 0) {
15492
- const loadingContent = /* @__PURE__ */ jsx103("div", { className: cx32(styles["root"], className), style, children: renderLoadingWithStyles() });
15591
+ const loadingContent = /* @__PURE__ */ jsx105("div", { className: cx32(styles["root"], className), style, children: renderLoadingWithStyles() });
15493
15592
  if (mode === "popup") {
15494
- return /* @__PURE__ */ jsx103(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15495
- /* @__PURE__ */ jsx103(Dialog_default.Heading, { children: title }),
15496
- /* @__PURE__ */ jsx103("div", { className: cx32(styles["popupContent"]), children: loadingContent })
15593
+ return /* @__PURE__ */ jsx105(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15594
+ /* @__PURE__ */ jsx105(Dialog_default.Heading, { children: title }),
15595
+ /* @__PURE__ */ jsx105("div", { className: cx32(styles["popupContent"]), children: loadingContent })
15497
15596
  ] }) });
15498
15597
  }
15499
15598
  return loadingContent;
15500
15599
  }
15501
15600
  if (error && organizationsWithSwitchAccess?.length === 0) {
15502
- const errorContent = /* @__PURE__ */ jsx103("div", { className: cx32(styles["root"], className), style, children: renderErrorWithStyles(error) });
15601
+ const errorContent = /* @__PURE__ */ jsx105("div", { className: cx32(styles["root"], className), style, children: renderErrorWithStyles(error) });
15503
15602
  if (mode === "popup") {
15504
- return /* @__PURE__ */ jsx103(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15505
- /* @__PURE__ */ jsx103(Dialog_default.Heading, { children: title }),
15506
- /* @__PURE__ */ jsx103("div", { className: cx32(styles["popupContent"]), children: errorContent })
15603
+ return /* @__PURE__ */ jsx105(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15604
+ /* @__PURE__ */ jsx105(Dialog_default.Heading, { children: title }),
15605
+ /* @__PURE__ */ jsx105("div", { className: cx32(styles["popupContent"]), children: errorContent })
15507
15606
  ] }) });
15508
15607
  }
15509
15608
  return errorContent;
15510
15609
  }
15511
15610
  if (!isLoading && organizationsWithSwitchAccess?.length === 0) {
15512
- const emptyContent = /* @__PURE__ */ jsx103("div", { className: cx32(styles["root"], className), style, children: renderEmptyWithStyles() });
15611
+ const emptyContent = /* @__PURE__ */ jsx105("div", { className: cx32(styles["root"], className), style, children: renderEmptyWithStyles() });
15513
15612
  if (mode === "popup") {
15514
- return /* @__PURE__ */ jsx103(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15515
- /* @__PURE__ */ jsx103(Dialog_default.Heading, { children: title }),
15516
- /* @__PURE__ */ jsx103("div", { className: cx32(styles["popupContent"]), children: emptyContent })
15613
+ return /* @__PURE__ */ jsx105(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15614
+ /* @__PURE__ */ jsx105(Dialog_default.Heading, { children: title }),
15615
+ /* @__PURE__ */ jsx105("div", { className: cx32(styles["popupContent"]), children: emptyContent })
15517
15616
  ] }) });
15518
15617
  }
15519
15618
  return emptyContent;
15520
15619
  }
15521
15620
  const organizationListContent = /* @__PURE__ */ jsxs46("div", { className: cx32(styles["root"], className), style, children: [
15522
15621
  /* @__PURE__ */ jsxs46("div", { className: cx32(styles["header"]), children: [
15523
- /* @__PURE__ */ jsx103("div", { className: cx32(styles["headerInfo"]), children: /* @__PURE__ */ jsx103(Typography_default, { variant: "body2", color: "textSecondary", className: cx32(styles["subtitle"]), children: t("organization.switcher.showing.count", {
15622
+ /* @__PURE__ */ jsx105("div", { className: cx32(styles["headerInfo"]), children: /* @__PURE__ */ jsx105(Typography_default, { variant: "body2", color: "textSecondary", className: cx32(styles["subtitle"]), children: t("organization.switcher.showing.count", {
15524
15623
  showing: organizationsWithSwitchAccess?.length,
15525
15624
  total: allOrganizations?.organizations?.length || 0
15526
15625
  }) }) }),
15527
- onRefresh && /* @__PURE__ */ jsx103(
15626
+ onRefresh && /* @__PURE__ */ jsx105(
15528
15627
  Button_default,
15529
15628
  {
15530
15629
  onClick: onRefresh,
@@ -15536,16 +15635,16 @@ var BaseOrganizationList = ({
15536
15635
  }
15537
15636
  )
15538
15637
  ] }),
15539
- /* @__PURE__ */ jsx103("div", { className: cx32(styles["listContainer"]), children: organizationsWithSwitchAccess?.map(
15638
+ /* @__PURE__ */ jsx105("div", { className: cx32(styles["listContainer"]), children: organizationsWithSwitchAccess?.map(
15540
15639
  (organization, index) => renderOrganizationWithStyles(organization, index)
15541
15640
  ) }),
15542
- error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ jsx103("div", { className: cx32(styles["errorMargin"]), children: renderErrorWithStyles(error) }),
15543
- hasMore && fetchMore && /* @__PURE__ */ jsx103("div", { className: cx32(styles["loadMoreMargin"]), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
15641
+ error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ jsx105("div", { className: cx32(styles["errorMargin"]), children: renderErrorWithStyles(error) }),
15642
+ hasMore && fetchMore && /* @__PURE__ */ jsx105("div", { className: cx32(styles["loadMoreMargin"]), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
15544
15643
  ] });
15545
15644
  if (mode === "popup") {
15546
- return /* @__PURE__ */ jsx103(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15547
- /* @__PURE__ */ jsx103(Dialog_default.Heading, { children: title }),
15548
- /* @__PURE__ */ jsx103("div", { className: cx32(styles["popupContent"]), children: organizationListContent })
15645
+ return /* @__PURE__ */ jsx105(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs46(Dialog_default.Content, { children: [
15646
+ /* @__PURE__ */ jsx105(Dialog_default.Heading, { children: title }),
15647
+ /* @__PURE__ */ jsx105("div", { className: cx32(styles["popupContent"]), children: organizationListContent })
15549
15648
  ] }) });
15550
15649
  }
15551
15650
  return organizationListContent;
@@ -15615,7 +15714,7 @@ var useStyles28 = (theme, colorScheme) => useMemo40(() => {
15615
15714
  var OrganizationList_styles_default = useStyles28;
15616
15715
 
15617
15716
  // src/components/presentation/OrganizationList/OrganizationList.tsx
15618
- import { jsx as jsx104 } from "react/jsx-runtime";
15717
+ import { jsx as jsx106 } from "react/jsx-runtime";
15619
15718
  var OrganizationList = (props) => {
15620
15719
  const { onOrganizationSelect, className = "", style, ...baseProps } = props;
15621
15720
  const { autoFetch, filter, limit, recursive, ...filteredBaseProps } = baseProps;
@@ -15625,12 +15724,12 @@ var OrganizationList = (props) => {
15625
15724
  const [allOrganizations, setAllOrganizations] = useState31({
15626
15725
  organizations: []
15627
15726
  });
15628
- useEffect21(() => {
15727
+ useEffect22(() => {
15629
15728
  (async () => {
15630
15729
  setAllOrganizations(await getAllOrganizations2());
15631
15730
  })();
15632
15731
  }, []);
15633
- return /* @__PURE__ */ jsx104("div", { className: cx33(styles["root"], className), style, children: /* @__PURE__ */ jsx104("div", { className: cx33(styles["container"]), children: /* @__PURE__ */ jsx104(
15732
+ return /* @__PURE__ */ jsx106("div", { className: cx33(styles["root"], className), style, children: /* @__PURE__ */ jsx106("div", { className: cx33(styles["container"]), children: /* @__PURE__ */ jsx106(
15634
15733
  BaseOrganizationList,
15635
15734
  {
15636
15735
  allOrganizations,
@@ -15646,7 +15745,7 @@ var OrganizationList_default = OrganizationList;
15646
15745
 
15647
15746
  // src/components/presentation/OrganizationProfile/OrganizationProfile.tsx
15648
15747
  import { createPackageComponentLogger as createPackageComponentLogger9 } from "@asgardeo/browser";
15649
- import { useEffect as useEffect22, useState as useState34 } from "react";
15748
+ import { useEffect as useEffect23, useState as useState34 } from "react";
15650
15749
 
15651
15750
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
15652
15751
  import { formatDate } from "@asgardeo/browser";
@@ -15969,7 +16068,7 @@ var useStyles30 = (theme, colorScheme, disabled, readOnly, hasError) => useMemo4
15969
16068
  var KeyValueInput_styles_default = useStyles30;
15970
16069
 
15971
16070
  // src/components/primitives/KeyValueInput/KeyValueInput.tsx
15972
- import { jsx as jsx105, jsxs as jsxs47 } from "react/jsx-runtime";
16071
+ import { jsx as jsx107, jsxs as jsxs47 } from "react/jsx-runtime";
15973
16072
  var KeyValueInput = ({
15974
16073
  className = "",
15975
16074
  disabled = false,
@@ -16046,7 +16145,7 @@ var KeyValueInput = ({
16046
16145
  const isAddDisabled = disabled || readOnly || !canAddMore || !newKey.trim() || !newValue.trim();
16047
16146
  const renderReadOnlyContent = () => {
16048
16147
  if (pairs.length === 0) {
16049
- return /* @__PURE__ */ jsx105("div", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "empty-state")), styles["emptyState"]), children: "No attributes defined" });
16148
+ return /* @__PURE__ */ jsx107("div", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "empty-state")), styles["emptyState"]), children: "No attributes defined" });
16050
16149
  }
16051
16150
  return pairs.map((pair, index) => /* @__PURE__ */ jsxs47(
16052
16151
  "div",
@@ -16057,7 +16156,7 @@ var KeyValueInput = ({
16057
16156
  pair.key,
16058
16157
  ":"
16059
16158
  ] }),
16060
- /* @__PURE__ */ jsx105(
16159
+ /* @__PURE__ */ jsx107(
16061
16160
  "span",
16062
16161
  {
16063
16162
  className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "readonly-value")), styles["readOnlyValue"]),
@@ -16072,7 +16171,7 @@ var KeyValueInput = ({
16072
16171
  return /* @__PURE__ */ jsxs47("div", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input")), styles["container"], className), children: [
16073
16172
  label && /* @__PURE__ */ jsxs47("label", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "label")), styles["label"]), children: [
16074
16173
  label,
16075
- required && /* @__PURE__ */ jsx105(
16174
+ required && /* @__PURE__ */ jsx107(
16076
16175
  "span",
16077
16176
  {
16078
16177
  className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "required")), styles["requiredIndicator"]),
@@ -16086,7 +16185,7 @@ var KeyValueInput = ({
16086
16185
  {
16087
16186
  className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "pair-row")), styles["pairRow"]),
16088
16187
  children: [
16089
- /* @__PURE__ */ jsx105(
16188
+ /* @__PURE__ */ jsx107(
16090
16189
  TextField_default,
16091
16190
  {
16092
16191
  placeholder: keyPlaceholder,
@@ -16097,7 +16196,7 @@ var KeyValueInput = ({
16097
16196
  "aria-label": `${keyLabel} ${index + 1}`
16098
16197
  }
16099
16198
  ),
16100
- /* @__PURE__ */ jsx105(
16199
+ /* @__PURE__ */ jsx107(
16101
16200
  TextField_default,
16102
16201
  {
16103
16202
  placeholder: valuePlaceholder,
@@ -16108,7 +16207,7 @@ var KeyValueInput = ({
16108
16207
  "aria-label": `${valueLabel} ${index + 1}`
16109
16208
  }
16110
16209
  ),
16111
- !readOnly && /* @__PURE__ */ jsx105(
16210
+ !readOnly && /* @__PURE__ */ jsx107(
16112
16211
  "button",
16113
16212
  {
16114
16213
  type: "button",
@@ -16119,7 +16218,7 @@ var KeyValueInput = ({
16119
16218
  styles["removeButton"]
16120
16219
  ),
16121
16220
  "aria-label": `${removeButtonText} ${pair.key}`,
16122
- children: /* @__PURE__ */ jsx105(X_default, { width: 16, height: 16 })
16221
+ children: /* @__PURE__ */ jsx107(X_default, { width: 16, height: 16 })
16123
16222
  }
16124
16223
  )
16125
16224
  ]
@@ -16127,7 +16226,7 @@ var KeyValueInput = ({
16127
16226
  `${pair.key}-${index}`
16128
16227
  )),
16129
16228
  !readOnly && /* @__PURE__ */ jsxs47("div", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "add-row")), styles["addRow"]), children: [
16130
- /* @__PURE__ */ jsx105(
16229
+ /* @__PURE__ */ jsx107(
16131
16230
  TextField_default,
16132
16231
  {
16133
16232
  placeholder: keyPlaceholder,
@@ -16138,7 +16237,7 @@ var KeyValueInput = ({
16138
16237
  "aria-label": "New key"
16139
16238
  }
16140
16239
  ),
16141
- /* @__PURE__ */ jsx105(
16240
+ /* @__PURE__ */ jsx107(
16142
16241
  TextField_default,
16143
16242
  {
16144
16243
  placeholder: valuePlaceholder,
@@ -16154,7 +16253,7 @@ var KeyValueInput = ({
16154
16253
  }
16155
16254
  }
16156
16255
  ),
16157
- /* @__PURE__ */ jsx105(
16256
+ /* @__PURE__ */ jsx107(
16158
16257
  "button",
16159
16258
  {
16160
16259
  type: "button",
@@ -16162,12 +16261,12 @@ var KeyValueInput = ({
16162
16261
  disabled: isAddDisabled,
16163
16262
  className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "add-button")), styles["addButton"]),
16164
16263
  "aria-label": "Add new key-value pair",
16165
- children: /* @__PURE__ */ jsx105(Plus_default, { width: 16, height: 16 })
16264
+ children: /* @__PURE__ */ jsx107(Plus_default, { width: 16, height: 16 })
16166
16265
  }
16167
16266
  )
16168
16267
  ] })
16169
16268
  ] }),
16170
- (helperText || error) && /* @__PURE__ */ jsx105("div", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "helper-text")), styles["helperText"]), children: error || helperText }),
16269
+ (helperText || error) && /* @__PURE__ */ jsx107("div", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "helper-text")), styles["helperText"]), children: error || helperText }),
16171
16270
  maxPairs && /* @__PURE__ */ jsxs47("div", { className: cx34(withVendorCSSClassPrefix29(bem20("key-value-input", "counter")), styles["counterText"]), children: [
16172
16271
  pairs.length,
16173
16272
  " of ",
@@ -16179,7 +16278,7 @@ var KeyValueInput = ({
16179
16278
  var KeyValueInput_default = KeyValueInput;
16180
16279
 
16181
16280
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
16182
- import { Fragment as Fragment19, jsx as jsx106, jsxs as jsxs48 } from "react/jsx-runtime";
16281
+ import { Fragment as Fragment20, jsx as jsx108, jsxs as jsxs48 } from "react/jsx-runtime";
16183
16282
  var BaseOrganizationProfile = ({
16184
16283
  fallback = null,
16185
16284
  className = "",
@@ -16228,7 +16327,7 @@ var BaseOrganizationProfile = ({
16228
16327
  const styles = BaseOrganizationProfile_styles_default(theme, colorScheme);
16229
16328
  const [editedOrganization, setEditedOrganization] = useState33(organization);
16230
16329
  const [editingFields, setEditingFields] = useState33({});
16231
- const PencilIcon = () => /* @__PURE__ */ jsx106(
16330
+ const PencilIcon = () => /* @__PURE__ */ jsx108(
16232
16331
  "svg",
16233
16332
  {
16234
16333
  width: "16",
@@ -16239,7 +16338,7 @@ var BaseOrganizationProfile = ({
16239
16338
  strokeWidth: "2",
16240
16339
  strokeLinecap: "round",
16241
16340
  strokeLinejoin: "round",
16242
- children: /* @__PURE__ */ jsx106("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
16341
+ children: /* @__PURE__ */ jsx108("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
16243
16342
  }
16244
16343
  );
16245
16344
  const toggleFieldEdit = useCallback19((fieldName) => {
@@ -16309,7 +16408,7 @@ var BaseOrganizationProfile = ({
16309
16408
  let fieldInput;
16310
16409
  if (key === "attributes") {
16311
16410
  const attributesValue = typeof fieldValue === "object" && fieldValue !== null ? fieldValue : {};
16312
- fieldInput = /* @__PURE__ */ jsx106(
16411
+ fieldInput = /* @__PURE__ */ jsx108(
16313
16412
  KeyValueInput_default,
16314
16413
  {
16315
16414
  value: attributesValue,
@@ -16347,26 +16446,26 @@ var BaseOrganizationProfile = ({
16347
16446
  }
16348
16447
  );
16349
16448
  } else {
16350
- fieldInput = /* @__PURE__ */ jsx106(TextField_default, { ...commonProps });
16449
+ fieldInput = /* @__PURE__ */ jsx108(TextField_default, { ...commonProps });
16351
16450
  }
16352
- return /* @__PURE__ */ jsxs48(Fragment19, { children: [
16353
- /* @__PURE__ */ jsx106("span", { className: cx35(styles["label"]), children: label }),
16354
- /* @__PURE__ */ jsx106("div", { className: cx35(styles["value"]), children: fieldInput })
16451
+ return /* @__PURE__ */ jsxs48(Fragment20, { children: [
16452
+ /* @__PURE__ */ jsx108("span", { className: cx35(styles["label"]), children: label }),
16453
+ /* @__PURE__ */ jsx108("div", { className: cx35(styles["value"]), children: fieldInput })
16355
16454
  ] });
16356
16455
  }
16357
16456
  const hasValue = value !== void 0 && value !== null && value !== "";
16358
16457
  const isFieldEditable = editable && fieldEditable;
16359
16458
  let displayValue;
16360
16459
  if (hasValue) {
16361
- displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ jsx106(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
16460
+ displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ jsx108(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
16362
16461
  } else if (isFieldEditable) {
16363
16462
  displayValue = getFieldPlaceholder(key);
16364
16463
  } else {
16365
16464
  displayValue = "-";
16366
16465
  }
16367
- return /* @__PURE__ */ jsxs48(Fragment19, { children: [
16368
- /* @__PURE__ */ jsx106("span", { className: cx35(styles["label"]), children: label }),
16369
- /* @__PURE__ */ jsx106("div", { className: cx35(styles["value"], !hasValue && styles["valueEmpty"]), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ jsx106(
16466
+ return /* @__PURE__ */ jsxs48(Fragment20, { children: [
16467
+ /* @__PURE__ */ jsx108("span", { className: cx35(styles["label"]), children: label }),
16468
+ /* @__PURE__ */ jsx108("div", { className: cx35(styles["value"], !hasValue && styles["valueEmpty"]), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ jsx108(
16370
16469
  Button_default,
16371
16470
  {
16372
16471
  onClick: onStartEdit,
@@ -16390,7 +16489,7 @@ var BaseOrganizationProfile = ({
16390
16489
  return null;
16391
16490
  }
16392
16491
  return /* @__PURE__ */ jsxs48("div", { className: cx35(styles["field"]), children: [
16393
- /* @__PURE__ */ jsx106("div", { className: cx35(styles["fieldContent"]), children: renderField(
16492
+ /* @__PURE__ */ jsx108("div", { className: cx35(styles["fieldContent"]), children: renderField(
16394
16493
  field,
16395
16494
  isFieldEditing,
16396
16495
  (value) => {
@@ -16400,8 +16499,8 @@ var BaseOrganizationProfile = ({
16400
16499
  },
16401
16500
  () => toggleFieldEdit(field.key)
16402
16501
  ) }),
16403
- isFieldEditable && /* @__PURE__ */ jsx106("div", { className: cx35(styles["fieldActions"]), children: isFieldEditing ? /* @__PURE__ */ jsxs48(Fragment19, { children: [
16404
- /* @__PURE__ */ jsx106(
16502
+ isFieldEditable && /* @__PURE__ */ jsx108("div", { className: cx35(styles["fieldActions"]), children: isFieldEditing ? /* @__PURE__ */ jsxs48(Fragment20, { children: [
16503
+ /* @__PURE__ */ jsx108(
16405
16504
  Button_default,
16406
16505
  {
16407
16506
  onClick: () => handleFieldSave(field.key),
@@ -16412,7 +16511,7 @@ var BaseOrganizationProfile = ({
16412
16511
  children: saveButtonText
16413
16512
  }
16414
16513
  ),
16415
- /* @__PURE__ */ jsx106(
16514
+ /* @__PURE__ */ jsx108(
16416
16515
  Button_default,
16417
16516
  {
16418
16517
  onClick: () => handleFieldCancel(field.key),
@@ -16423,7 +16522,7 @@ var BaseOrganizationProfile = ({
16423
16522
  children: cancelButtonText
16424
16523
  }
16425
16524
  )
16426
- ] }) : hasValue && /* @__PURE__ */ jsx106(
16525
+ ] }) : hasValue && /* @__PURE__ */ jsx108(
16427
16526
  Button_default,
16428
16527
  {
16429
16528
  onClick: () => toggleFieldEdit(field.key),
@@ -16432,7 +16531,7 @@ var BaseOrganizationProfile = ({
16432
16531
  size: "small",
16433
16532
  title: "Edit field",
16434
16533
  className: cx35(styles["editButton"]),
16435
- children: /* @__PURE__ */ jsx106(PencilIcon, {})
16534
+ children: /* @__PURE__ */ jsx108(PencilIcon, {})
16436
16535
  }
16437
16536
  ) })
16438
16537
  ] }, field.key);
@@ -16442,21 +16541,21 @@ var BaseOrganizationProfile = ({
16442
16541
  }
16443
16542
  const profileContent = /* @__PURE__ */ jsxs48(Card_default, { className: cx35(styles["root"], cardLayout && styles["card"], className), children: [
16444
16543
  /* @__PURE__ */ jsxs48("div", { className: cx35(styles["header"]), children: [
16445
- /* @__PURE__ */ jsx106(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
16544
+ /* @__PURE__ */ jsx108(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
16446
16545
  /* @__PURE__ */ jsxs48("div", { className: cx35(styles["orgInfo"]), children: [
16447
- /* @__PURE__ */ jsx106("h2", { className: cx35(styles["name"]), children: organization.name }),
16546
+ /* @__PURE__ */ jsx108("h2", { className: cx35(styles["name"]), children: organization.name }),
16448
16547
  organization.orgHandle && /* @__PURE__ */ jsxs48("p", { className: cx35(styles["handle"]), children: [
16449
16548
  "@",
16450
16549
  organization.orgHandle
16451
16550
  ] })
16452
16551
  ] })
16453
16552
  ] }),
16454
- /* @__PURE__ */ jsx106("div", { className: cx35(styles["infoContainer"]), children: fields.map((field) => renderOrganizationField(field)) })
16553
+ /* @__PURE__ */ jsx108("div", { className: cx35(styles["infoContainer"]), children: fields.map((field) => renderOrganizationField(field)) })
16455
16554
  ] });
16456
16555
  if (mode === "popup") {
16457
- return /* @__PURE__ */ jsx106(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs48(Dialog_default.Content, { children: [
16458
- /* @__PURE__ */ jsx106(Dialog_default.Heading, { children: title }),
16459
- /* @__PURE__ */ jsx106("div", { className: cx35(styles["popup"]), children: profileContent })
16556
+ return /* @__PURE__ */ jsx108(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs48(Dialog_default.Content, { children: [
16557
+ /* @__PURE__ */ jsx108(Dialog_default.Heading, { children: title }),
16558
+ /* @__PURE__ */ jsx108("div", { className: cx35(styles["popup"]), children: profileContent })
16460
16559
  ] }) });
16461
16560
  }
16462
16561
  return profileContent;
@@ -16532,7 +16631,7 @@ var updateOrganization = async ({
16532
16631
  var updateOrganization_default = updateOrganization;
16533
16632
 
16534
16633
  // src/components/presentation/OrganizationProfile/OrganizationProfile.tsx
16535
- import { jsx as jsx107 } from "react/jsx-runtime";
16634
+ import { jsx as jsx109 } from "react/jsx-runtime";
16536
16635
  var logger9 = createPackageComponentLogger9(
16537
16636
  "@asgardeo/react",
16538
16637
  "OrganizationProfile"
@@ -16568,7 +16667,7 @@ var OrganizationProfile = ({
16568
16667
  setOrganization(null);
16569
16668
  }
16570
16669
  };
16571
- useEffect22(() => {
16670
+ useEffect23(() => {
16572
16671
  fetchOrganization();
16573
16672
  }, [baseUrl, organizationId]);
16574
16673
  const handleOrganizationUpdate = async (payload) => {
@@ -16590,7 +16689,7 @@ var OrganizationProfile = ({
16590
16689
  throw err;
16591
16690
  }
16592
16691
  };
16593
- return /* @__PURE__ */ jsx107(
16692
+ return /* @__PURE__ */ jsx109(
16594
16693
  BaseOrganizationProfile_default,
16595
16694
  {
16596
16695
  organization,
@@ -16607,7 +16706,7 @@ var OrganizationProfile = ({
16607
16706
  var OrganizationProfile_default = OrganizationProfile;
16608
16707
 
16609
16708
  // src/components/presentation/OrganizationSwitcher/OrganizationSwitcher.tsx
16610
- import { Fragment as Fragment20, jsx as jsx108, jsxs as jsxs49 } from "react/jsx-runtime";
16709
+ import { Fragment as Fragment21, jsx as jsx110, jsxs as jsxs49 } from "react/jsx-runtime";
16611
16710
  var OrganizationSwitcher = ({
16612
16711
  currentOrganization: propCurrentOrganization,
16613
16712
  fallback = null,
@@ -16632,7 +16731,7 @@ var OrganizationSwitcher = ({
16632
16731
  return fallback;
16633
16732
  }
16634
16733
  if (!isSignedIn) {
16635
- return /* @__PURE__ */ jsx108(Fragment20, {});
16734
+ return /* @__PURE__ */ jsx110(Fragment21, {});
16636
16735
  }
16637
16736
  const organizations = propOrganizations || contextOrganizations || [];
16638
16737
  const currentOrganization = propCurrentOrganization || contextCurrentOrganization;
@@ -16646,19 +16745,19 @@ var OrganizationSwitcher = ({
16646
16745
  const defaultMenuItems = [];
16647
16746
  if (currentOrganization) {
16648
16747
  defaultMenuItems.push({
16649
- icon: /* @__PURE__ */ jsx108(BuildingAlt_default, {}),
16748
+ icon: /* @__PURE__ */ jsx110(BuildingAlt_default, {}),
16650
16749
  label: t("organization.switcher.manage.organizations"),
16651
16750
  onClick: handleManageOrganizations
16652
16751
  });
16653
16752
  }
16654
16753
  defaultMenuItems.push({
16655
- icon: /* @__PURE__ */ jsx108("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx108("path", { d: "M12 5v14m-7-7h14" }) }),
16754
+ icon: /* @__PURE__ */ jsx110("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx110("path", { d: "M12 5v14m-7-7h14" }) }),
16656
16755
  label: t("organization.switcher.create.organization"),
16657
16756
  onClick: () => setIsCreateOrgOpen(true)
16658
16757
  });
16659
16758
  const menuItems = props.menuItems ? [...defaultMenuItems, ...props.menuItems] : defaultMenuItems;
16660
- return /* @__PURE__ */ jsxs49(Fragment20, { children: [
16661
- /* @__PURE__ */ jsx108(
16759
+ return /* @__PURE__ */ jsxs49(Fragment21, { children: [
16760
+ /* @__PURE__ */ jsx110(
16662
16761
  BaseOrganizationSwitcher,
16663
16762
  {
16664
16763
  organizations,
@@ -16672,7 +16771,7 @@ var OrganizationSwitcher = ({
16672
16771
  ...props
16673
16772
  }
16674
16773
  ),
16675
- /* @__PURE__ */ jsx108(
16774
+ /* @__PURE__ */ jsx110(
16676
16775
  CreateOrganization,
16677
16776
  {
16678
16777
  mode: "popup",
@@ -16686,7 +16785,7 @@ var OrganizationSwitcher = ({
16686
16785
  }
16687
16786
  }
16688
16787
  ),
16689
- currentOrganization && /* @__PURE__ */ jsx108(
16788
+ currentOrganization && /* @__PURE__ */ jsx110(
16690
16789
  OrganizationProfile_default,
16691
16790
  {
16692
16791
  organizationId: currentOrganization.id,
@@ -16694,11 +16793,11 @@ var OrganizationSwitcher = ({
16694
16793
  open: isProfileOpen,
16695
16794
  onOpenChange: setIsProfileOpen,
16696
16795
  cardLayout: true,
16697
- loadingFallback: /* @__PURE__ */ jsx108("div", { children: t("organization.profile.loading") }),
16698
- errorFallback: /* @__PURE__ */ jsx108("div", { children: t("organization.profile.error") })
16796
+ loadingFallback: /* @__PURE__ */ jsx110("div", { children: t("organization.profile.loading") }),
16797
+ errorFallback: /* @__PURE__ */ jsx110("div", { children: t("organization.profile.error") })
16699
16798
  }
16700
16799
  ),
16701
- /* @__PURE__ */ jsx108(
16800
+ /* @__PURE__ */ jsx110(
16702
16801
  OrganizationList_default,
16703
16802
  {
16704
16803
  mode: "popup",
@@ -16847,7 +16946,7 @@ var useStyles31 = (theme, colorScheme) => useMemo43(() => {
16847
16946
  var BaseLanguageSwitcher_styles_default = useStyles31;
16848
16947
 
16849
16948
  // src/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.tsx
16850
- import { Fragment as Fragment21, jsx as jsx109, jsxs as jsxs50 } from "react/jsx-runtime";
16949
+ import { Fragment as Fragment22, jsx as jsx111, jsxs as jsxs50 } from "react/jsx-runtime";
16851
16950
  var BaseLanguageSwitcher = ({
16852
16951
  children,
16853
16952
  className,
@@ -16871,7 +16970,7 @@ var BaseLanguageSwitcher = ({
16871
16970
  const { getReferenceProps, getFloatingProps } = useInteractions4([click, dismiss, role]);
16872
16971
  const currentOption = languages.find((l) => l.code === currentLanguage);
16873
16972
  if (children) {
16874
- return /* @__PURE__ */ jsx109(Fragment21, { children: children({
16973
+ return /* @__PURE__ */ jsx111(Fragment22, { children: children({
16875
16974
  currentLanguage,
16876
16975
  isLoading,
16877
16976
  languages,
@@ -16889,13 +16988,13 @@ var BaseLanguageSwitcher = ({
16889
16988
  ...getReferenceProps(),
16890
16989
  className: styles["trigger"],
16891
16990
  children: [
16892
- currentOption && /* @__PURE__ */ jsx109("span", { className: styles["triggerEmoji"], children: currentOption.emoji }),
16893
- /* @__PURE__ */ jsx109("span", { className: styles["triggerLabel"], children: currentOption?.displayName ?? currentLanguage }),
16894
- /* @__PURE__ */ jsx109(ChevronDown_default, {})
16991
+ currentOption && /* @__PURE__ */ jsx111("span", { className: styles["triggerEmoji"], children: currentOption.emoji }),
16992
+ /* @__PURE__ */ jsx111("span", { className: styles["triggerLabel"], children: currentOption?.displayName ?? currentLanguage }),
16993
+ /* @__PURE__ */ jsx111(ChevronDown_default, {})
16895
16994
  ]
16896
16995
  }
16897
16996
  ),
16898
- isOpen && /* @__PURE__ */ jsx109(FloatingPortal4, { children: /* @__PURE__ */ jsx109(FloatingFocusManager4, { context, modal: false, children: /* @__PURE__ */ jsx109(
16997
+ isOpen && /* @__PURE__ */ jsx111(FloatingPortal4, { children: /* @__PURE__ */ jsx111(FloatingFocusManager4, { context, modal: false, children: /* @__PURE__ */ jsx111(
16899
16998
  "div",
16900
16999
  {
16901
17000
  ref: refs.setFloating,
@@ -16916,9 +17015,9 @@ var BaseLanguageSwitcher = ({
16916
17015
  setIsOpen(false);
16917
17016
  },
16918
17017
  children: [
16919
- /* @__PURE__ */ jsx109("span", { className: styles["optionEmoji"], children: lang.emoji }),
16920
- /* @__PURE__ */ jsx109("span", { className: styles["optionLabel"], children: lang.displayName }),
16921
- lang.code === currentLanguage && /* @__PURE__ */ jsx109("span", { className: styles["checkIcon"], children: /* @__PURE__ */ jsx109(Check_default, {}) })
17018
+ /* @__PURE__ */ jsx111("span", { className: styles["optionEmoji"], children: lang.emoji }),
17019
+ /* @__PURE__ */ jsx111("span", { className: styles["optionLabel"], children: lang.displayName }),
17020
+ lang.code === currentLanguage && /* @__PURE__ */ jsx111("span", { className: styles["checkIcon"], children: /* @__PURE__ */ jsx111(Check_default, {}) })
16922
17021
  ]
16923
17022
  },
16924
17023
  lang.code
@@ -16945,7 +17044,7 @@ var useFlowMeta = () => {
16945
17044
  var useFlowMeta_default = useFlowMeta;
16946
17045
 
16947
17046
  // src/components/presentation/LanguageSwitcher/LanguageSwitcher.tsx
16948
- import { jsx as jsx110 } from "react/jsx-runtime";
17047
+ import { jsx as jsx112 } from "react/jsx-runtime";
16949
17048
  var LanguageSwitcher = ({ children, className }) => {
16950
17049
  const { meta, switchLanguage, isLoading } = useFlowMeta_default();
16951
17050
  const { currentLanguage } = useTranslation_default();
@@ -16963,7 +17062,7 @@ var LanguageSwitcher = ({ children, className }) => {
16963
17062
  switchLanguage(language);
16964
17063
  }
16965
17064
  };
16966
- return /* @__PURE__ */ jsx110(
17065
+ return /* @__PURE__ */ jsx112(
16967
17066
  BaseLanguageSwitcher_default,
16968
17067
  {
16969
17068
  currentLanguage,
@@ -17056,7 +17155,7 @@ export {
17056
17155
  MultiInput_default as MultiInput,
17057
17156
  MultiOptionButton_default as MultiOptionButton,
17058
17157
  Organization_default as Organization,
17059
- OrganizationContext_default as OrganizationContext,
17158
+ OrganizationContext_default2 as OrganizationContext,
17060
17159
  OrganizationList_default as OrganizationList,
17061
17160
  OrganizationProfile_default as OrganizationProfile,
17062
17161
  OrganizationProvider_default as OrganizationProvider,