{"version":3,"file":"StytchUIClient.mjs","sources":["../../../src/b2c/StytchUIClient.ts"],"sourcesContent":["import { logger, RUN_IN_DEV } from '@stytch/core';\nimport { StytchClientOptions, StytchProjectConfigurationInput } from '@stytch/core/public';\nimport { StytchClient } from '@stytch/web/headless';\n\nimport { mountIdentityProvider } from './idpWebComponent';\nimport { mountPasskeyRegistration } from './stytchPasskeyRegistration';\nimport { mountResetPassword } from './stytchResetPassword';\nimport { mountLogin } from './stytchUI';\n\n/**\n * @deprecated - Use Stytch UI web components instead.\n * See {@link StytchUI}, {@link StytchResetPassword}, {@link StytchPasskeyRegistration} or {@link StytchIdentityProvider}\n */\nexport class StytchUIClient<\n  TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration,\n> extends StytchClient<TProjectConfiguration> {\n  constructor(publicToken: string, options?: StytchClientOptions) {\n    super(publicToken, options);\n\n    RUN_IN_DEV(() => logger.warn('StytchUIClient is deprecated. Use the Stytch web components directly instead.'));\n  }\n\n  mountLogin = mountLogin;\n\n  mountResetPassword = mountResetPassword;\n\n  mountPasskeyRegistration = mountPasskeyRegistration;\n\n  mountIdentityProvider = mountIdentityProvider;\n}\n"],"names":["StytchUIClient","StytchClient","publicToken","options","RUN_IN_DEV","logger","warn","mountLogin","mountResetPassword","mountPasskeyRegistration","mountIdentityProvider"],"mappings":";;;;;;;;AASA;;;IAIO,MAAMA,cAAAA,SAEHC,YAAAA,CAAAA;IACR,WAAA,CAAYC,WAAmB,EAAEC,OAA6B,CAAE;AAC9D,QAAA,KAAK,CAACD,WAAAA,EAAaC,OAAAA,CAAAA;QAEnBC,UAAAA,CAAW,IAAMC,MAAAA,CAAOC,IAAI,CAAC,+EAAA,CAAA,CAAA;AAC/B,IAAA;AAEAC,IAAAA,UAAAA,GAAaA,UAAAA;AAEbC,IAAAA,kBAAAA,GAAqBA,kBAAAA;AAErBC,IAAAA,wBAAAA,GAA2BA,wBAAAA;AAE3BC,IAAAA,qBAAAA,GAAwBA,qBAAAA;AAC1B;;;;"}