{"version":3,"file":"StytchPasswordReset.mjs","sources":["../../../../../../../../../web/src/ui/react/b2c/StytchPasswordReset.tsx"],"sourcesContent":["import { StytchProjectConfigurationInput } from '@stytch/core/public';\n\nimport { ResetPasswordContainer } from '../../b2c/ResetPasswordContainer';\nimport { createB2CComponent } from '../bindings/createB2CComponent';\nimport { StytchProps } from './StytchLogin';\n\nexport interface StytchResetPasswordProps<\n  TProjectConfiguration extends StytchProjectConfigurationInput = Stytch.DefaultProjectConfiguration,\n> extends StytchProps<TProjectConfiguration> {\n  /**\n   * A Stytch password reset token.\n   */\n  passwordResetToken: string;\n}\n\n/**\n * The Stytch Reset Password component.\n * This component can only be used with a Stytch UI Client\n * passed into the StytchProvider.\n *\n * See the {@link https://stytch.com/docs/sdks online reference}\n *\n * @example\n * <StytchPasswordReset\n *   config={{\n *     products: [Products.passwords],\n *     passwordOptions: {\n *       loginRedirectURL: '${exampleURL}/authenticate',\n *       resetPasswordRedirectURL: '${exampleURL}/authenticate',\n *     },\n *   }}\n *   passwordResetToken=\"PvC5UudZ7TPZbELt95yXAQ-8MeEUCRob8bUQ-g52fIJs\"\n *   presentation={{\n *     theme: { primary: '#0577CA' },\n *     options: {},\n *   }}\n *   callbacks={{\n *     onEvent: (event) => console.log(event)\n *   }}\n * />\n */\nexport const StytchPasswordReset = /* @__PURE__ */ createB2CComponent('StytchPasswordReset', ResetPasswordContainer);\n"],"names":["StytchPasswordReset","createB2CComponent","ResetPasswordContainer"],"mappings":";;;AAeA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBC,IACM,MAAMA,qBAAAA,mBAAsCC,kBAAAA,CAAmB,uBAAuBC,sBAAAA;;;;"}