{"version":3,"file":"components.mjs","sources":["../../../src/b2b/components.ts"],"sourcesContent":["'use client';\n\nimport { AuthTokenParams } from '@stytch/web';\nimport { B2BIDPConsentManifestGenerator, B2BSDKConfig, StytchProjectConfigurationInput } from '@stytch/web/b2b';\nimport {\n  B2BIdentityProvider as B2BIdentityProviderComponent,\n  StytchB2B as StytchB2BComponent,\n} from '@stytch/web/react/b2b';\n\nimport { withSsrSafe } from '../bindings/withSsrSafe';\n\ntype B2BIdentityProviderProps<TProjectConfiguration extends StytchProjectConfigurationInput> = Pick<\n  B2BSDKConfig<TProjectConfiguration>,\n  'presentation' | 'callbacks' | 'strings'\n> & {\n  /**\n   * Optional {@link B2BIDPConsentManifestGenerator} to customize the consent screen.\n   */\n  getIDPConsentManifest?: B2BIDPConsentManifestGenerator;\n\n  /**\n   * Optional {@link AuthTokenParams} to provide a trusted auth token to provide for attestation prior to running OAuth flow.\n   */\n  trustedAuthTokenParams?: AuthTokenParams;\n};\n\nexport const StytchB2B = /* @__PURE__ */ withSsrSafe(StytchB2BComponent);\nexport const B2BIdentityProvider =\n  /* @__PURE__ */\n  withSsrSafe<B2BIdentityProviderProps<StytchProjectConfigurationInput>>(B2BIdentityProviderComponent);\n"],"names":["StytchB2B","withSsrSafe","StytchB2BComponent","B2BIdentityProvider","B2BIdentityProviderComponent"],"mappings":";;;;AA0BO,MAAMA,SAAAA,mBAA4BC,YAAYC,WAAAA;AAC9C,MAAMC,mBAAAA,mBAEXF,YAAuEG,qBAAAA;;;;"}