@stytch/react 20.0.0-next.2 → 20.0.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/StytchSSRProxy-Bz6LNYdq.js.map +1 -1
  3. package/dist/cjs/adminPortal/index.cjs +1 -1
  4. package/dist/cjs/b2b/index.cjs +14 -13
  5. package/dist/cjs/b2b/index.cjs.map +1 -1
  6. package/dist/cjs/compat.cjs +2 -0
  7. package/dist/cjs/compat.cjs.map +1 -1
  8. package/dist/cjs/{index-Ni_dyEsz.js → index-BIjXBvf_.js} +2 -2
  9. package/dist/cjs/index-BIjXBvf_.js.map +1 -0
  10. package/dist/cjs/index.cjs +508 -518
  11. package/dist/cjs/index.cjs.map +1 -1
  12. package/dist/cjs/{shadcn-B8TEzQMT.js → shadcn-Z4AvHriT.js} +247 -233
  13. package/dist/cjs/shadcn-Z4AvHriT.js.map +1 -0
  14. package/dist/cjs-dev/StytchSSRProxy-d553KgcY.js +438 -0
  15. package/dist/cjs-dev/StytchSSRProxy-d553KgcY.js.map +1 -0
  16. package/dist/cjs-dev/adminPortal/index.cjs +54 -53
  17. package/dist/cjs-dev/adminPortal/index.cjs.map +1 -1
  18. package/dist/cjs-dev/b2b/index.cjs +80 -68
  19. package/dist/cjs-dev/b2b/index.cjs.map +1 -1
  20. package/dist/cjs-dev/b2b/index.headless.cjs +89 -88
  21. package/dist/cjs-dev/b2b/index.headless.cjs.map +1 -1
  22. package/dist/cjs-dev/compat.cjs +15 -14
  23. package/dist/cjs-dev/compat.cjs.map +1 -1
  24. package/dist/cjs-dev/{StytchSSRProxy-CxXsyme4.js → dev-DaCGDI6V.js} +60 -426
  25. package/dist/cjs-dev/dev-DaCGDI6V.js.map +1 -0
  26. package/dist/cjs-dev/{idpHelpers-BVMUYvt1.js → idpHelpers-DOYYSxsX.js} +45 -102
  27. package/dist/cjs-dev/idpHelpers-DOYYSxsX.js.map +1 -0
  28. package/dist/cjs-dev/{index-DdK3Jt4u.js → index-rquGmIlv.js} +4 -4
  29. package/dist/cjs-dev/index-rquGmIlv.js.map +1 -0
  30. package/dist/cjs-dev/index.cjs +738 -727
  31. package/dist/cjs-dev/index.cjs.map +1 -1
  32. package/dist/cjs-dev/index.headless.cjs +70 -69
  33. package/dist/cjs-dev/index.headless.cjs.map +1 -1
  34. package/dist/cjs-dev/{passwordManagerDisableAutofillProps-D70WyvIu.js → passwordManagerDisableAutofillProps-CgiK2M_U.js} +2 -2
  35. package/dist/cjs-dev/{passwordManagerDisableAutofillProps-D70WyvIu.js.map → passwordManagerDisableAutofillProps-CgiK2M_U.js.map} +1 -1
  36. package/dist/cjs-dev/{shadcn-C9ClUju1.js → shadcn-DnNfms7-.js} +257 -242
  37. package/dist/cjs-dev/shadcn-DnNfms7-.js.map +1 -0
  38. package/dist/esm/b2b/StytchB2BContext.mjs +5 -5
  39. package/dist/esm/b2b/StytchB2BContext.mjs.map +1 -1
  40. package/dist/esm/packages/core/src/public/b2b/ui.mjs.map +1 -1
  41. package/dist/esm/packages/web/src/ui/b2b/App.mjs +2 -2
  42. package/dist/esm/packages/web/src/ui/b2b/App.mjs.map +1 -1
  43. package/dist/esm/packages/web/src/ui/b2b/components/Icons.mjs +3 -1
  44. package/dist/esm/packages/web/src/ui/b2b/components/Icons.mjs.map +1 -1
  45. package/dist/esm/packages/web/src/ui/b2c/AppContainer.mjs +1 -1
  46. package/dist/esm/packages/web/src/ui/b2c/AppContainer.mjs.map +1 -1
  47. package/dist/esm/packages/web/src/ui/b2c/IDPContainer.mjs +1 -1
  48. package/dist/esm/packages/web/src/ui/b2c/IDPContainer.mjs.map +1 -1
  49. package/dist/esm/packages/web/src/ui/b2c/PasskeyRegistrationContainer.mjs +1 -1
  50. package/dist/esm/packages/web/src/ui/b2c/PasskeyRegistrationContainer.mjs.map +1 -1
  51. package/dist/esm/packages/web/src/ui/b2c/ResetPasswordContainer.mjs +1 -1
  52. package/dist/esm/packages/web/src/ui/b2c/ResetPasswordContainer.mjs.map +1 -1
  53. package/dist/esm/packages/web/src/ui/b2c/screens/Crypto/SetupNewWallet.mjs +12 -11
  54. package/dist/esm/packages/web/src/ui/b2c/screens/Crypto/SetupNewWallet.mjs.map +1 -1
  55. package/dist/esm/packages/web/src/ui/b2c/screens/Crypto/WalletButtons.mjs +12 -14
  56. package/dist/esm/packages/web/src/ui/b2c/screens/Crypto/WalletButtons.mjs.map +1 -1
  57. package/dist/esm/packages/web/src/ui/compat/styleToTheme.mjs +2 -0
  58. package/dist/esm/packages/web/src/ui/compat/styleToTheme.mjs.map +1 -1
  59. package/dist/esm/packages/web/src/ui/components/PresentationConfig.mjs.map +1 -1
  60. package/dist/esm/packages/web/src/ui/components/atoms/Typography.module.css.mjs +2 -2
  61. package/dist/esm/packages/web/src/ui/react/b2b/B2BIdentityProvider.mjs +1 -1
  62. package/dist/esm/packages/web/src/ui/react/b2b/B2BIdentityProvider.mjs.map +1 -1
  63. package/dist/esm/packages/web/src/ui/react/b2b/Stytch.mjs +1 -1
  64. package/dist/esm/packages/web/src/ui/react/b2b/Stytch.mjs.map +1 -1
  65. package/dist/esm/packages/web/src/ui/react/b2b/StytchB2BContext.mjs +1 -1
  66. package/dist/esm/packages/web/src/ui/react/b2b/StytchB2BContext.mjs.map +1 -1
  67. package/dist/esm/packages/web/src/ui/react/b2c/IdentityProvider.mjs +1 -1
  68. package/dist/esm/packages/web/src/ui/react/b2c/IdentityProvider.mjs.map +1 -1
  69. package/dist/esm/packages/web/src/ui/react/b2c/StytchContext.mjs +1 -1
  70. package/dist/esm/packages/web/src/ui/react/b2c/StytchContext.mjs.map +1 -1
  71. package/dist/esm/packages/web/src/ui/react/b2c/StytchLogin.mjs +1 -1
  72. package/dist/esm/packages/web/src/ui/react/b2c/StytchLogin.mjs.map +1 -1
  73. package/dist/esm/packages/web/src/ui/react/b2c/StytchPasskeyRegistration.mjs +1 -1
  74. package/dist/esm/packages/web/src/ui/react/b2c/StytchPasskeyRegistration.mjs.map +1 -1
  75. package/dist/esm/packages/web/src/ui/react/b2c/StytchPasswordReset.mjs +1 -1
  76. package/dist/esm/packages/web/src/ui/react/b2c/StytchPasswordReset.mjs.map +1 -1
  77. package/dist/esm/packages/web/src/ui/react/utils/errors.mjs.map +1 -1
  78. package/dist/esm/packages/web/src/utils/crypto.mjs +15 -14
  79. package/dist/esm/packages/web/src/utils/crypto.mjs.map +1 -1
  80. package/dist/esm/packages/web/src/utils/oauthProviderType.mjs +1 -1
  81. package/dist/esm/packages/web/src/utils/oauthProviderType.mjs.map +1 -1
  82. package/dist/esm-dev/b2b/StytchB2BContext.mjs +5 -5
  83. package/dist/esm-dev/b2b/StytchB2BContext.mjs.map +1 -1
  84. package/dist/esm-dev/packages/core/src/public/b2b/ui.mjs.map +1 -1
  85. package/dist/esm-dev/packages/core/src/utils/dev.mjs +7 -1
  86. package/dist/esm-dev/packages/core/src/utils/dev.mjs.map +1 -1
  87. package/dist/esm-dev/packages/web/src/ui/b2b/App.mjs +14 -2
  88. package/dist/esm-dev/packages/web/src/ui/b2b/App.mjs.map +1 -1
  89. package/dist/esm-dev/packages/web/src/ui/b2b/components/Icons.mjs +3 -1
  90. package/dist/esm-dev/packages/web/src/ui/b2b/components/Icons.mjs.map +1 -1
  91. package/dist/esm-dev/packages/web/src/ui/b2c/AppContainer.mjs +8 -1
  92. package/dist/esm-dev/packages/web/src/ui/b2c/AppContainer.mjs.map +1 -1
  93. package/dist/esm-dev/packages/web/src/ui/b2c/IDPContainer.mjs +8 -1
  94. package/dist/esm-dev/packages/web/src/ui/b2c/IDPContainer.mjs.map +1 -1
  95. package/dist/esm-dev/packages/web/src/ui/b2c/PasskeyRegistrationContainer.mjs +8 -1
  96. package/dist/esm-dev/packages/web/src/ui/b2c/PasskeyRegistrationContainer.mjs.map +1 -1
  97. package/dist/esm-dev/packages/web/src/ui/b2c/ResetPasswordContainer.mjs +8 -1
  98. package/dist/esm-dev/packages/web/src/ui/b2c/ResetPasswordContainer.mjs.map +1 -1
  99. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Crypto/SetupNewWallet.mjs +12 -11
  100. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Crypto/SetupNewWallet.mjs.map +1 -1
  101. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Crypto/WalletButtons.mjs +12 -14
  102. package/dist/esm-dev/packages/web/src/ui/b2c/screens/Crypto/WalletButtons.mjs.map +1 -1
  103. package/dist/esm-dev/packages/web/src/ui/compat/styleToTheme.mjs +15 -14
  104. package/dist/esm-dev/packages/web/src/ui/compat/styleToTheme.mjs.map +1 -1
  105. package/dist/esm-dev/packages/web/src/ui/components/PresentationConfig.mjs +3 -2
  106. package/dist/esm-dev/packages/web/src/ui/components/PresentationConfig.mjs.map +1 -1
  107. package/dist/esm-dev/packages/web/src/ui/components/atoms/Typography.module.css.mjs +2 -2
  108. package/dist/esm-dev/packages/web/src/ui/react/b2b/B2BIdentityProvider.mjs +1 -1
  109. package/dist/esm-dev/packages/web/src/ui/react/b2b/B2BIdentityProvider.mjs.map +1 -1
  110. package/dist/esm-dev/packages/web/src/ui/react/b2b/Stytch.mjs +1 -1
  111. package/dist/esm-dev/packages/web/src/ui/react/b2b/Stytch.mjs.map +1 -1
  112. package/dist/esm-dev/packages/web/src/ui/react/b2b/StytchB2BContext.mjs +1 -1
  113. package/dist/esm-dev/packages/web/src/ui/react/b2b/StytchB2BContext.mjs.map +1 -1
  114. package/dist/esm-dev/packages/web/src/ui/react/b2c/IdentityProvider.mjs +1 -1
  115. package/dist/esm-dev/packages/web/src/ui/react/b2c/IdentityProvider.mjs.map +1 -1
  116. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchContext.mjs +1 -1
  117. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchContext.mjs.map +1 -1
  118. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchLogin.mjs +1 -1
  119. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchLogin.mjs.map +1 -1
  120. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchPasskeyRegistration.mjs +1 -1
  121. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchPasskeyRegistration.mjs.map +1 -1
  122. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchPasswordReset.mjs +1 -1
  123. package/dist/esm-dev/packages/web/src/ui/react/b2c/StytchPasswordReset.mjs.map +1 -1
  124. package/dist/esm-dev/packages/web/src/ui/react/utils/errors.mjs +8 -4
  125. package/dist/esm-dev/packages/web/src/ui/react/utils/errors.mjs.map +1 -1
  126. package/dist/esm-dev/packages/web/src/utils/crypto.mjs +15 -14
  127. package/dist/esm-dev/packages/web/src/utils/crypto.mjs.map +1 -1
  128. package/dist/esm-dev/packages/web/src/utils/oauthProviderType.mjs +1 -1
  129. package/dist/esm-dev/packages/web/src/utils/oauthProviderType.mjs.map +1 -1
  130. package/dist/types/{PresentationConfig-Bqzf8zr3.d.ts → PresentationConfig-CcNEXkjS.d.ts} +5 -1
  131. package/dist/types/{StytchB2BClient-CsY7ZNKh.d.ts → StytchB2BClient-D16e_lp1.d.ts} +2 -2
  132. package/dist/types/{StytchClient-DZRM_fM4.d.ts → StytchClient-BwQdJzdj.d.ts} +2 -2
  133. package/dist/types/adminPortal/index.d.ts +5 -5
  134. package/dist/types/b2b/index.d.ts +27 -19
  135. package/dist/types/b2b/index.headless.d.ts +5 -5
  136. package/dist/types/compat.d.ts +2 -2
  137. package/dist/types/{createAuthUrlHandler-BZoD2LDF.d.ts → createAuthUrlHandler-R1kNNQD_.d.ts} +2 -2
  138. package/dist/types/{idpHelpers-CD5sSDzA.d.ts → idpHelpers-BQP76WgZ.d.ts} +1 -1
  139. package/dist/types/index.d.ts +36 -16
  140. package/dist/types/index.headless.d.ts +5 -5
  141. package/dist/types/{shadcn-4-5byj93.d.ts → shadcn-B04UXoBD.d.ts} +9 -6
  142. package/dist/types/{ui-DXrQ-gA8.d.ts → ui-B7IvSGQf.d.ts} +1 -1
  143. package/package.json +1 -1
  144. package/dist/cjs/index-Ni_dyEsz.js.map +0 -1
  145. package/dist/cjs/shadcn-B8TEzQMT.js.map +0 -1
  146. package/dist/cjs-dev/StytchSSRProxy-CxXsyme4.js.map +0 -1
  147. package/dist/cjs-dev/idpHelpers-BVMUYvt1.js.map +0 -1
  148. package/dist/cjs-dev/index-DdK3Jt4u.js.map +0 -1
  149. package/dist/cjs-dev/shadcn-C9ClUju1.js.map +0 -1
@@ -4,7 +4,7 @@ var index_headless = require('./index.headless.cjs');
4
4
  var React = require('react');
5
5
  var passwordManagerDisableAutofillProps = require('./passwordManagerDisableAutofillProps-DV31RTL_.js');
6
6
  var StytchSSRProxy = require('./StytchSSRProxy-Bz6LNYdq.js');
7
- var shadcn = require('./shadcn-B8TEzQMT.js');
7
+ var shadcn = require('./shadcn-Z4AvHriT.js');
8
8
  var idpHelpers = require('./idpHelpers-Bj_7pbfW.js');
9
9
  var ReactDOM = require('react-dom');
10
10
  var jsxRuntime = require('react/jsx-runtime');
@@ -147,7 +147,7 @@ const withStytchSession$1 = (Component)=>{
147
147
  *
148
148
  * Remember - authorization checks for sensitive actions should always occur on the backend as well.
149
149
  * @example
150
- * const { isAuthorized } = useStytchIsAuthorized<Permissions>('documents', 'edit');
150
+ * const { isAuthorized } = useStytchIsAuthorized('documents', 'edit');
151
151
  * return <button disabled={!isAuthorized}>Edit</button>
152
152
  */ const useStytchIsAuthorized$1 = (resourceId, action)=>{
153
153
  passwordManagerDisableAutofillProps.invariant(useIsMounted__INTERNAL(), StytchSSRProxy.noProviderError('useStytchIsAuthorized', 'StytchProvider'));
@@ -1438,7 +1438,7 @@ const AppContainer$1 = ()=>{
1438
1438
  }), /*#__PURE__*/ React__namespace.default.createElement(ScreenComponent, null));
1439
1439
  };
1440
1440
 
1441
- const AppContainer = ({ client, config, presentation, callbacks, strings })=>{
1441
+ const AppContainer = ({ client, config, presentation, callbacks, strings, styles })=>{
1442
1442
  // Read the watermark out of sync storage, then read it out of async storage
1443
1443
  const [displayWatermark, setDisplayWatermark] = React.useState(()=>{
1444
1444
  const { displayWatermark } = StytchSSRProxy.readB2CInternals(client).bootstrap.getSync();
@@ -1539,7 +1539,7 @@ function createB2CComponent(name, Component) {
1539
1539
  * onEvent: (event) => console.log(event)
1540
1540
  * }}
1541
1541
  * />
1542
- */ const StytchLogin = createB2CComponent('StytchLogin', AppContainer);
1542
+ */ const StytchLogin = /* @__PURE__ */ createB2CComponent('StytchLogin', AppContainer);
1543
1543
 
1544
1544
  const GenericWalletIcon = ({ size = shadcn.DEFAULT_ICON_SIZE, ...props })=>/*#__PURE__*/ React__namespace.default.createElement("svg", {
1545
1545
  width: size,
@@ -1894,285 +1894,6 @@ function requireBs58 () {
1894
1894
 
1895
1895
  var bs58Exports = requireBs58();
1896
1896
 
1897
- const AmazonIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1898
- xmlns: "http://www.w3.org/2000/svg",
1899
- width: 20,
1900
- height: 20,
1901
- fill: "none",
1902
- ...props
1903
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1904
- fill: "#F90",
1905
- d: "M16.5 15.53C9.2 19 4.69 16.1 1.8 14.33c-.19-.1-.5.03-.23.34.97 1.17 4.13 3.98 8.25 3.98s6.59-2.25 6.9-2.64c.3-.4.08-.6-.22-.48m2.04-1.13c-.2-.25-1.19-.3-1.81-.22s-1.57.45-1.49.68c.04.09.13.05.56.01s1.64-.2 1.9.14c.25.33-.4 1.9-.51 2.16s.04.32.25.15.6-.6.85-1.23c.25-.62.4-1.5.25-1.69"
1906
- }), /*#__PURE__*/ React__namespace.createElement("path", {
1907
- fill: "#000",
1908
- fillRule: "evenodd",
1909
- d: "M11.6 8.46c0 .9.02 1.67-.44 2.47-.37.66-.96 1.06-1.62 1.06-.9 0-1.42-.68-1.42-1.69 0-1.99 1.79-2.35 3.48-2.35zm2.35 5.69a.5.5 0 0 1-.55.05c-.78-.64-.91-.94-1.34-1.55-1.28 1.3-2.19 1.7-3.85 1.7-1.96 0-3.5-1.22-3.5-3.64 0-1.9 1.03-3.19 2.5-3.82 1.26-.56 3.03-.66 4.39-.81v-.3c0-.56.04-1.22-.29-1.7-.28-.43-.83-.6-1.3-.6-.9 0-1.7.45-1.89 1.4-.04.21-.19.42-.4.43l-2.27-.25c-.19-.04-.4-.2-.34-.49C5.63 1.83 8.1 1 10.33 1c1.13 0 2.62.3 3.52 1.16 1.13 1.06 1.02 2.48 1.02 4.02v3.64c0 1.1.46 1.57.88 2.16.16.21.19.47 0 .63-.48.4-1.33 1.13-1.8 1.55z",
1910
- clipRule: "evenodd",
1911
- className: shadcn.modules_73af8a26.darkInvert
1912
- }));
1913
-
1914
- const AppleIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1915
- xmlns: "http://www.w3.org/2000/svg",
1916
- width: 20,
1917
- height: 20,
1918
- fill: "none",
1919
- ...props
1920
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1921
- fill: "#000",
1922
- d: "M16.55 7.14c-.1.08-1.86 1.12-1.86 3.43A4 4 0 0 0 17 14.2c0 .06-.35 1.3-1.18 2.56-.74 1.1-1.5 2.21-2.67 2.21s-1.47-.7-2.82-.7c-1.32 0-1.79.73-2.86.73S5.66 17.97 4.8 16.7c-1-1.48-1.8-3.78-1.8-5.96C3 7.25 5.17 5.4 7.31 5.4c1.14 0 2.09.78 2.8.78.68 0 1.74-.83 3.03-.83.5 0 2.26.05 3.41 1.79m-4.02-3.27c.53-.66.91-1.59.91-2.5q0-.22-.03-.37c-.87.03-1.9.6-2.53 1.36-.49.59-.95 1.5-.95 2.44 0 .14.03.28.04.33l.23.02c.78 0 1.76-.54 2.33-1.28",
1923
- className: shadcn.modules_73af8a26.darkInvert
1924
- }));
1925
-
1926
- const BinanceIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1927
- xmlns: "http://www.w3.org/2000/svg",
1928
- width: 20,
1929
- height: 20,
1930
- fill: "none",
1931
- ...props
1932
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1933
- fill: "#F3BA2F",
1934
- d: "m6.43 8.56 3.5-3.5 3.49 3.5 2.03-2.03L9.92 1 4.4 6.53zM4.99 10 2.96 7.97.92 10l2.04 2.03zM6.43 11.44l3.5 3.5 3.49-3.5 2.03 2.03L9.92 19 4.4 13.47zM16.89 12.03 18.92 10 16.9 7.97 14.85 10z"
1935
- }), /*#__PURE__*/ React__namespace.createElement("path", {
1936
- fill: "#F3BA2F",
1937
- d: "M11.99 10 9.92 7.93 8.4 9.46l-.18.18-.36.36 2.06 2.07z"
1938
- }));
1939
-
1940
- const BitbucketIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1941
- xmlns: "http://www.w3.org/2000/svg",
1942
- width: 20,
1943
- height: 20,
1944
- fill: "none",
1945
- ...props
1946
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1947
- fill: "#1868DB",
1948
- d: "m17.96 9.14-1.34 8.08a.9.9 0 0 1-.93.78H4.3a.9.9 0 0 1-.93-.78L1.02 2.81c-.1-.5.17-.81.64-.81h16.68c.47 0 .73.32.64.8l-.64 3.8c-.09.55-.4.78-.93.78H7.37q-.23 0-.2.26l.79 4.78q.05.18.23.2h3.62q.17-.02.23-.2l.56-3.46c.05-.43.35-.6.75-.6h3.94c.58 0 .76.29.67.78"
1949
- }));
1950
-
1951
- const CoinbaseIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1952
- xmlns: "http://www.w3.org/2000/svg",
1953
- width: 20,
1954
- height: 20,
1955
- fill: "none",
1956
- ...props
1957
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1958
- fill: "#0052FF",
1959
- d: "M10.02 14.5a4.5 4.5 0 1 1 4.44-5.25H19a9 9 0 1 0 0 1.5h-4.54a4.5 4.5 0 0 1-4.44 3.75"
1960
- }));
1961
-
1962
- const DiscordIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1963
- xmlns: "http://www.w3.org/2000/svg",
1964
- width: 20,
1965
- height: 20,
1966
- fill: "none",
1967
- ...props
1968
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1969
- fill: "#5865F2",
1970
- d: "M12.53 3q-.26.44-.47.92a15 15 0 0 0-4.12 0q-.21-.47-.48-.92-1.93.3-3.72 1.1a13.8 13.8 0 0 0-2.66 9.72Q3.15 15.28 5.63 16q.56-.72.98-1.5a10 10 0 0 1-1.54-.7l.38-.27c2.88 1.3 6.22 1.3 9.1 0q.19.15.38.27a10 10 0 0 1-1.54.7q.41.8.98 1.5 2.48-.7 4.55-2.18c.38-3.69-.64-6.89-2.67-9.73a15 15 0 0 0-3.71-1.08zm-5.52 8.86c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.9 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72m5.98 0c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.91 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72"
1971
- }));
1972
-
1973
- const FacebookIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1974
- xmlns: "http://www.w3.org/2000/svg",
1975
- width: 20,
1976
- height: 20,
1977
- fill: "none",
1978
- ...props
1979
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1980
- fill: "#0866FF",
1981
- d: "M19 10a9 9 0 1 0-11.17 8.73v-5.98H5.97V10h1.86V8.81c0-3.06 1.38-4.48 4.39-4.48.57 0 1.55.11 1.96.23v2.49q-.35-.03-1.04-.03c-1.48 0-2.05.55-2.05 2V10h2.94l-.5 2.75h-2.44v6.18A9 9 0 0 0 19 10"
1982
- }), /*#__PURE__*/ React__namespace.createElement("path", {
1983
- fill: "#fff",
1984
- d: "m13.53 12.75.5-2.75h-2.94v-.97c0-1.46.57-2.01 2.05-2.01q.7 0 1.04.03v-2.5a10 10 0 0 0-1.96-.22c-3 0-4.4 1.42-4.4 4.48V10H5.98v2.75h1.86v5.98a9 9 0 0 0 3.26.2v-6.18z"
1985
- }));
1986
-
1987
- const FigmaIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
1988
- xmlns: "http://www.w3.org/2000/svg",
1989
- width: 20,
1990
- height: 20,
1991
- fill: "none",
1992
- ...props
1993
- }, /*#__PURE__*/ React__namespace.createElement("path", {
1994
- fill: "#24CB71",
1995
- d: "M4 16a3 3 0 0 1 3-3h3v3a3 3 0 0 1-6 0"
1996
- }), /*#__PURE__*/ React__namespace.createElement("path", {
1997
- fill: "#FF7237",
1998
- d: "M10 1v6h3a3 3 0 0 0 0-6z"
1999
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2000
- fill: "#00B6FF",
2001
- d: "M12.98 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6"
2002
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2003
- fill: "#FF3737",
2004
- d: "M4 4a3 3 0 0 0 3 3h3V1H7a3 3 0 0 0-3 3"
2005
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2006
- fill: "#874FFF",
2007
- d: "M4 10a3 3 0 0 0 3 3h3V7H7a3 3 0 0 0-3 3"
2008
- }));
2009
-
2010
- const GitlabIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2011
- xmlns: "http://www.w3.org/2000/svg",
2012
- width: 20,
2013
- height: 20,
2014
- fill: "none",
2015
- ...props
2016
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2017
- fill: "#E24329",
2018
- d: "m18.7 8.2-.03-.07-2.45-6.4A.65.65 0 0 0 15 1.8l-1.65 5.07h-6.7L5 1.8a.64.64 0 0 0-.97-.37.6.6 0 0 0-.25.3l-2.45 6.4-.03.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8 1.85 1.4 1.12.84c.27.21.65.21.92 0l1.12-.84 1.85-1.4 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.5-5.26"
2019
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2020
- fill: "#FC6D26",
2021
- d: "m18.7 8.2-.03-.07a8 8 0 0 0-3.29 1.48L10 13.68l3.43 2.59 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.5-5.26"
2022
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2023
- fill: "#FCA326",
2024
- d: "m6.57 16.27 1.85 1.4 1.12.84c.27.21.65.21.92 0l1.12-.84 1.85-1.4s-1.6-1.2-3.43-2.6c-1.83 1.4-3.43 2.6-3.43 2.6"
2025
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2026
- fill: "#FC6D26",
2027
- d: "M4.62 9.61a8 8 0 0 0-3.3-1.48l-.02.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8s1.6-1.2 3.43-2.6z"
2028
- }));
2029
-
2030
- const LinkedinIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2031
- xmlns: "http://www.w3.org/2000/svg",
2032
- width: 20,
2033
- height: 20,
2034
- fill: "none",
2035
- ...props
2036
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2037
- fill: "#007EBB",
2038
- fillRule: "evenodd",
2039
- d: "M3 19h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2",
2040
- clipRule: "evenodd"
2041
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2042
- fill: "#fff",
2043
- fillRule: "evenodd",
2044
- d: "M16.5 16.5h-2.67v-4.55c0-1.25-.48-1.94-1.46-1.94-1.08 0-1.64.72-1.64 1.94v4.55H8.16V7.83h2.57V9s.78-1.43 2.62-1.43c1.83 0 3.15 1.12 3.15 3.44zM5.09 6.7A1.6 1.6 0 0 1 3.5 5.1c0-.88.71-1.6 1.59-1.6.87 0 1.58.72 1.58 1.6s-.7 1.6-1.58 1.6m-1.33 9.8h2.68V7.83H3.76z",
2045
- clipRule: "evenodd"
2046
- }));
2047
-
2048
- const MetamaskIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2049
- xmlns: "http://www.w3.org/2000/svg",
2050
- width: 20,
2051
- height: 20,
2052
- fill: "none",
2053
- ...props
2054
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2055
- fill: "#FF5C16",
2056
- d: "m17.82 18.08-3.88-1.15-2.92 1.75H8.98l-2.93-1.75-3.87 1.15L1 14.1 2.18 9.7 1 5.95l1.18-4.63 6.05 3.62h3.54l6.05-3.62L19 5.95 17.82 9.7 19 14.1z"
2057
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2058
- fill: "#FF5C16",
2059
- d: "m2.18 1.32 6.06 3.62-.25 2.49zM6.06 14.1l2.66 2.03-2.66.8zM8.5 10.75 8 7.43 4.71 9.69V12l1.33-1.26zM17.82 1.32l-6.05 3.62.24 2.49zM13.95 14.1l-2.67 2.03 2.67.8zM15.29 9.69 12 7.43l-.52 3.32h2.46L15.28 12z"
2060
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2061
- fill: "#E34807",
2062
- d: "m6.05 16.93-3.87 1.15L1 14.1h5.05zM8.5 10.75l.75 4.8-1.03-2.67-3.5-.87 1.33-1.26zM13.95 16.93l3.87 1.15L19 14.1h-5.05zM11.5 10.75l-.75 4.8 1.03-2.67 3.5-.87-1.33-1.26z"
2063
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2064
- fill: "#FF8D5D",
2065
- d: "M1 14.1 2.18 9.7H4.7L4.72 12l3.5.87 1.03 2.66-.53.6-2.67-2.04zM19 14.1 17.82 9.7H15.3L15.28 12l-3.5.87-1.03 2.66.53.6 2.67-2.04z"
2066
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2067
- fill: "#FF8D5D",
2068
- d: "M11.77 4.94H8.23L8 7.43l1.26 8.11h1.5l1.26-8.11z"
2069
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2070
- fill: "#661800",
2071
- d: "M2.18 1.32 1 5.95 2.18 9.7H4.7L8 7.43zM7.77 11.71H6.62l-.62.61 2.22.56zM17.82 1.32 19 5.95 17.82 9.7H15.3L12 7.43zM12.23 11.71h1.15l.62.62-2.22.55zM11.02 17.1l.26-.97-.53-.58h-1.5l-.53.58.26.96"
2072
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2073
- fill: "#C0C4CD",
2074
- d: "M11.02 17.1v1.58H8.98v-1.59z"
2075
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2076
- fill: "#E7EBF6",
2077
- d: "m6.06 16.93 2.92 1.75v-1.59l-.26-.96zM13.95 16.93l-2.93 1.75v-1.59l.26-.96z"
2078
- }));
2079
-
2080
- const PhantomIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2081
- xmlns: "http://www.w3.org/2000/svg",
2082
- width: 20,
2083
- height: 20,
2084
- fill: "none",
2085
- ...props
2086
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2087
- fill: "#AB9FF2",
2088
- d: "M3.13 17.5c2.3 0 4.02-2 5.05-3.58q-.19.53-.2 1.04c0 .92.54 1.58 1.58 1.58 1.44 0 2.97-1.26 3.76-2.62a2 2 0 0 0-.08.55c0 .64.36 1.04 1.1 1.04 2.32 0 4.66-4.12 4.66-7.73 0-2.8-1.42-5.28-4.98-5.28C7.75 2.5 1 10.16 1 15.11c0 1.94 1.04 2.39 2.13 2.39m8.73-10.02c0-.7.39-1.2.96-1.2s.95.5.95 1.2-.4 1.2-.95 1.2c-.57 0-.96-.5-.96-1.2m2.98 0c0-.7.39-1.2.96-1.2.55 0 .94.5.94 1.2s-.38 1.2-.94 1.2c-.57 0-.96-.5-.96-1.2"
2089
- }));
2090
-
2091
- const SalesforceIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2092
- xmlns: "http://www.w3.org/2000/svg",
2093
- width: 20,
2094
- height: 20,
2095
- fill: "none",
2096
- ...props
2097
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2098
- fill: "#00A1E0",
2099
- fillRule: "evenodd",
2100
- d: "M8.49 4.92a3.1 3.1 0 0 1 2.28-1.01c1.2 0 2.22.68 2.78 1.7q.75-.35 1.57-.35c2.14 0 3.88 1.8 3.88 4.04a3.96 3.96 0 0 1-4.65 3.96c-.49.9-1.42 1.5-2.47 1.5q-.65 0-1.25-.3a3.2 3.2 0 0 1-2.97 2.04c-1.4 0-2.58-.9-3.04-2.18q-.3.06-.62.06c-1.66 0-3-1.4-3-3.13 0-1.16.6-2.17 1.5-2.71a4 4 0 0 1-.29-1.44c0-1.99 1.57-3.6 3.5-3.6 1.13 0 2.15.56 2.78 1.42",
2101
- clipRule: "evenodd"
2102
- }));
2103
-
2104
- const SnapchatIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2105
- xmlns: "http://www.w3.org/2000/svg",
2106
- width: 20,
2107
- height: 20,
2108
- fill: "none",
2109
- ...props
2110
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2111
- fill: "#fff",
2112
- d: "M17.72 14.26c-2.78-1.35-3.23-3.43-3.25-3.59-.02-.18-.05-.33.16-.52.2-.19 1.08-.73 1.32-.9q.63-.41.46-.92c-.1-.24-.32-.33-.56-.33l-.22.03c-.44.1-.87.32-1.12.38h-.1q-.19.02-.17-.21c.03-.49.1-1.44.02-2.32a3.7 3.7 0 0 0-.96-2.36A4.3 4.3 0 0 0 10 2.14a4.3 4.3 0 0 0-3.3 1.37 3.7 3.7 0 0 0-.96 2.36c-.08.89 0 1.84.02 2.33q.01.22-.17.22l-.1-.02c-.24-.06-.68-.28-1.12-.38L4.15 8c-.24 0-.46.1-.55.33-.14.35.04.63.45.91.24.17 1.13.72 1.33.9.2.2.18.34.15.53-.02.16-.46 2.24-3.25 3.59-.16.08-.44.24.05.51.77.43 1.28.38 1.68.64.34.22.14.69.38.86.3.2 1.2-.02 2.35.36.96.32 1.55 1.22 3.26 1.22s2.32-.9 3.27-1.22c1.15-.38 2.04-.16 2.34-.36.25-.17.05-.64.39-.86.4-.26.9-.21 1.68-.64.48-.26.2-.43.04-.5",
2113
- className: shadcn.modules_73af8a26.darkInvert
2114
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2115
- fill: "#000",
2116
- d: "M18.94 14.1a1.3 1.3 0 0 0-.64-.67l-.14-.07-.24-.13a5.4 5.4 0 0 1-1.97-1.68 4 4 0 0 1-.33-.6q-.06-.16-.01-.23l.1-.12.82-.53q.52-.36.74-.8a1.6 1.6 0 0 0 .08-1.3c-.23-.6-.8-.98-1.5-.98a2 2 0 0 0-.54.08q.01-.64-.04-1.29a4.83 4.83 0 0 0-2.44-3.93A5.6 5.6 0 0 0 10 1.15a5.6 5.6 0 0 0-2.82.72 4.8 4.8 0 0 0-2.44 3.93q-.06.66-.04 1.28a3 3 0 0 0-.55-.08 1.54 1.54 0 0 0-1.6 1.65q.01.33.18.64.23.43.74.8l.42.27.38.25q.08.04.12.12.05.07-.01.24-.14.3-.33.59a5.4 5.4 0 0 1-1.91 1.65c-.43.23-.89.39-1.08.9-.14.4-.05.84.32 1.21q.2.21.46.35.53.3 1.12.45.13.03.23.1c.13.12.12.3.3.55q.13.2.33.34c.37.26.78.27 1.23.3.4 0 .85.02 1.37.2q.3.11.7.36c.61.38 1.46.9 2.88.9s2.27-.52 2.9-.9q.37-.25.68-.36c.52-.17.97-.2 1.37-.2.44-.02.86-.04 1.23-.3q.24-.16.38-.41c.13-.22.13-.37.25-.47l.21-.1a5 5 0 0 0 1.14-.46q.28-.15.48-.37v-.01c.35-.37.44-.8.3-1.18m-1.27.68c-.77.42-1.28.38-1.67.64-.34.21-.14.68-.39.85-.3.21-1.2-.01-2.34.37-.95.31-1.56 1.21-3.27 1.21-1.7 0-2.3-.9-3.27-1.22-1.15-.38-2.04-.15-2.34-.36-.25-.17-.05-.64-.38-.86-.4-.25-.91-.2-1.68-.63-.5-.27-.21-.44-.05-.52 2.79-1.35 3.23-3.43 3.25-3.58.02-.2.05-.34-.16-.53-.2-.18-1.08-.73-1.32-.9-.4-.28-.59-.57-.46-.91.1-.25.32-.34.56-.34l.22.03c.44.1.87.32 1.12.38l.1.01q.19 0 .17-.22c-.03-.49-.1-1.43-.02-2.32.1-1.22.5-1.83.96-2.36A4.3 4.3 0 0 1 10 2.15a4.3 4.3 0 0 1 3.3 1.36c.46.54.86 1.14.96 2.36.08.89.01 1.84-.02 2.33q-.01.23.17.22l.1-.02c.24-.06.68-.28 1.12-.38l.22-.02c.24 0 .46.1.56.33q.17.5-.46.91c-.24.17-1.13.72-1.32.9-.21.2-.18.34-.16.53.02.16.46 2.24 3.25 3.59.17.08.44.25-.05.52",
2117
- className: shadcn.modules_73af8a26.darkInvert
2118
- }));
2119
-
2120
- const TiktokIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2121
- xmlns: "http://www.w3.org/2000/svg",
2122
- width: 20,
2123
- height: 20,
2124
- fill: "none",
2125
- ...props
2126
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2127
- fill: "#161823",
2128
- fillRule: "evenodd",
2129
- d: "M11.38 1.79h2.3A4.42 4.42 0 0 0 18 5.3v.68l.01 2.41a7.6 7.6 0 0 1-4.39-1.38v6.28c0 3.14-2.6 5.7-5.8 5.7a6 6 0 0 1-3.33-1.03A5.7 5.7 0 0 1 2 13.3a5.76 5.76 0 0 1 6.59-5.64v3.16q-.37-.11-.78-.12a2.63 2.63 0 0 0-2.66 2.6c0 1 .58 1.87 1.43 2.3q.55.3 1.23.3c1.42 0 2.59-1.1 2.64-2.5V1h3.16q0 .4.08.79z",
2130
- clipRule: "evenodd",
2131
- className: shadcn.modules_73af8a26.darkInvert
2132
- }));
2133
-
2134
- const TwitchIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2135
- xmlns: "http://www.w3.org/2000/svg",
2136
- width: 20,
2137
- height: 20,
2138
- fill: "none",
2139
- ...props
2140
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2141
- fill: "#fff",
2142
- d: "m16.25 9.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"
2143
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2144
- fill: "#9146FF",
2145
- d: "M5.63 1 2.5 4.21V15.8h3.75V19l3.13-3.21h2.5L17.5 10V1zm10.62 8.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"
2146
- }), /*#__PURE__*/ React__namespace.createElement("path", {
2147
- fill: "#9146FF",
2148
- d: "M14.38 4.54h-1.26v3.85h1.26zM10.94 4.54H9.69v3.85h1.25z"
2149
- }));
2150
-
2151
- const XTwitterIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2152
- xmlns: "http://www.w3.org/2000/svg",
2153
- width: 20,
2154
- height: 20,
2155
- fill: "none",
2156
- ...props
2157
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2158
- fill: "#000",
2159
- d: "M11.67 8.62 18.23 1h-1.55l-5.7 6.61L6.44 1H1.2l6.87 10-6.87 8h1.55l6.01-7 4.8 7h5.24zm-2.12 2.47-.7-1-5.54-7.92H5.7l4.47 6.4.7 1 5.8 8.3H14.3z",
2160
- className: shadcn.modules_73af8a26.darkInvert
2161
- }));
2162
-
2163
- const YahooIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
2164
- xmlns: "http://www.w3.org/2000/svg",
2165
- width: 20,
2166
- height: 20,
2167
- fill: "none",
2168
- ...props
2169
- }, /*#__PURE__*/ React__namespace.createElement("path", {
2170
- fill: "#5F01D2",
2171
- fillRule: "evenodd",
2172
- d: "M1 5.74 4.92 15l-1.4 3.33h3.44l5.23-12.6H8.76l-2.13 5.4-2.1-5.4zm9.47 7.24c0 1.16.9 2.1 2.1 2.1 1.25 0 2.19-.98 2.19-2.17 0-1.18-.9-2.11-2.11-2.11-1.25 0-2.18 1-2.18 2.18m4.68-11.31L11.7 9.99h3.85L19 1.67z",
2173
- clipRule: "evenodd"
2174
- }));
2175
-
2176
1897
  const hasMultipleEthereumWallets = ()=>!!window.ethereum?.providers;
2177
1898
  const hasMetaMask = ()=>!!(hasMultipleEthereumWallets() ? window.ethereum.providers?.find((wallet)=>wallet.isMetaMask) : window.ethereum.isMetaMask);
2178
1899
  const hasCoinbaseWallet = ()=>!!(hasMultipleEthereumWallets() ? window.ethereum.providers?.find((wallet)=>wallet.isCoinbaseWallet) : window.ethereum?.isCoinbaseWallet);
@@ -2180,13 +1901,18 @@ const hasOtherEthereumWallet = ()=>!hasMetaMask() && !hasCoinbaseWallet() && !!w
2180
1901
  const getMetaMaskProvider = ()=>hasMultipleEthereumWallets() ? window.ethereum.providers?.find((wallet)=>wallet.isMetaMask) : window.ethereum;
2181
1902
  const getCoinbaseProvider = ()=>hasMultipleEthereumWallets() ? window.ethereum.providers?.find((wallet)=>wallet.isCoinbaseWallet) : window.ethereum;
2182
1903
  const getOtherInjectedProvider = ()=>window.ethereum.providers?.find((wallet)=>!wallet.isCoinbaseWallet && !wallet.isMetaMask);
2183
- const WalletToIcon = {
2184
- [StytchSSRProxy.Wallets.Phantom]: PhantomIcon,
2185
- [StytchSSRProxy.Wallets.Binance]: BinanceIcon,
2186
- [StytchSSRProxy.Wallets.Coinbase]: CoinbaseIcon,
2187
- [StytchSSRProxy.Wallets.Metamask]: MetamaskIcon,
2188
- [StytchSSRProxy.Wallets.GenericEthereumWallet]: GenericWalletIcon,
2189
- [StytchSSRProxy.Wallets.GenericSolanaWallet]: GenericWalletIcon
1904
+ const walletIcons = {
1905
+ [StytchSSRProxy.Wallets.Phantom]: 'phantom',
1906
+ [StytchSSRProxy.Wallets.Binance]: 'binance',
1907
+ [StytchSSRProxy.Wallets.Coinbase]: 'coinbase',
1908
+ [StytchSSRProxy.Wallets.Metamask]: 'metamask'
1909
+ };
1910
+ const useCryptoIcon = ()=>{
1911
+ const iconRegistry = shadcn.usePresentation().iconRegistry;
1912
+ return (wallet)=>{
1913
+ const iconName = walletIcons[wallet];
1914
+ return iconName ? iconRegistry[iconName] : GenericWalletIcon;
1915
+ };
2190
1916
  };
2191
1917
  const WalletToText = {
2192
1918
  [StytchSSRProxy.Wallets.Phantom]: {
@@ -2333,10 +2059,6 @@ const isSolanaWallet = (wallet)=>{
2333
2059
  };
2334
2060
 
2335
2061
  const MAX_BUTTONS = 6;
2336
- const WalletIconComponent = ({ wallet })=>{
2337
- const Icon = WalletToIcon[wallet];
2338
- return /*#__PURE__*/ React__namespace.createElement(Icon, null);
2339
- };
2340
2062
  const walletMessages = {
2341
2063
  [StytchSSRProxy.Wallets.Phantom]: {
2342
2064
  id: "crypto.wallet.continueWithPhantom",
@@ -2367,6 +2089,7 @@ const CryptoWalletButtons = ({ type })=>{
2367
2089
  const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
2368
2090
  const [state, dispatch] = useGlobalReducer();
2369
2091
  const config = useConfig();
2092
+ const getCryptoIcon = useCryptoIcon();
2370
2093
  const oAuthOptions = config.oauthOptions?.providers.length ?? 0;
2371
2094
  // Crypto Buttons on screen = Maximum Buttons - OAuth Buttons - 1 (Other crypto or set up new wallet)
2372
2095
  const cryptoButtonsOnMainScreen = MAX_BUTTONS - oAuthOptions - 1;
@@ -2388,18 +2111,18 @@ const CryptoWalletButtons = ({ type })=>{
2388
2111
  const mainWallets = allDetectedWallets.slice(0, cryptoButtonsOnMainScreen);
2389
2112
  const otherWallet = allDetectedWallets.slice(cryptoButtonsOnMainScreen);
2390
2113
  const walletsToRender = type === 'main' ? mainWallets : otherWallet;
2391
- return /*#__PURE__*/ React__namespace.createElement(shadcn.ButtonColumn, null, walletsToRender.map((wallet)=>/*#__PURE__*/ React__namespace.createElement(shadcn.Button, {
2114
+ return /*#__PURE__*/ React__namespace.createElement(shadcn.ButtonColumn, null, walletsToRender.map((wallet)=>{
2115
+ const walletEnum = StytchSSRProxy.Wallets[wallet];
2116
+ const Icon = getCryptoIcon(walletEnum);
2117
+ return /*#__PURE__*/ React__namespace.createElement(shadcn.Button, {
2392
2118
  key: wallet,
2393
2119
  variant: "outline",
2394
- icon: /*#__PURE__*/ React__namespace.createElement(WalletIconComponent, {
2395
- wallet: StytchSSRProxy.Wallets[wallet]
2396
- }),
2397
- onClick: ()=>onWalletStart(StytchSSRProxy.Wallets[wallet])
2398
- }, type === 'main' ? $__i18n._(walletMessages[StytchSSRProxy.Wallets[wallet]]) : $__i18n._(WalletToText[StytchSSRProxy.Wallets[wallet]]))), renderOtherScreenButton && type === 'main' ? /*#__PURE__*/ React__namespace.createElement(shadcn.Button, {
2120
+ icon: /*#__PURE__*/ React__namespace.createElement(Icon, null),
2121
+ onClick: ()=>onWalletStart(walletEnum)
2122
+ }, type === 'main' ? $__i18n._(walletMessages[walletEnum]) : $__i18n._(WalletToText[walletEnum]));
2123
+ }), renderOtherScreenButton && type === 'main' ? /*#__PURE__*/ React__namespace.createElement(shadcn.Button, {
2399
2124
  variant: "outline",
2400
- icon: /*#__PURE__*/ React__namespace.createElement(WalletIconComponent, {
2401
- wallet: StytchSSRProxy.Wallets.GenericEthereumWallet
2402
- }),
2125
+ icon: /*#__PURE__*/ React__namespace.createElement(GenericWalletIcon, null),
2403
2126
  onClick: ()=>dispatch({
2404
2127
  type: 'transition',
2405
2128
  screen: AppScreens.CryptoOtherScreen
@@ -5332,27 +5055,216 @@ const ConnectWallet = ()=>{
5332
5055
  });
5333
5056
  dispatch({
5334
5057
  type: 'transition',
5335
- screen: AppScreens.CryptoSignMessage
5336
- });
5337
- }).catch(handleError);
5338
- };
5339
- shadcn.useMountEffect(()=>{
5340
- onConnectWallet();
5341
- });
5058
+ screen: AppScreens.CryptoSignMessage
5059
+ });
5060
+ }).catch(handleError);
5061
+ };
5062
+ shadcn.useMountEffect(()=>{
5063
+ onConnectWallet();
5064
+ });
5065
+ return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5066
+ gap: 6
5067
+ }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.TextColumn, {
5068
+ header: $__i18n._({
5069
+ id: "crypto.connectWallet.title",
5070
+ message: "Connecting to your wallet..."
5071
+ }),
5072
+ body: $__i18n._({
5073
+ id: "crypto.connectWallet.instructionPopup",
5074
+ message: "Complete sign in by connecting through the wallet pop up in the right corner of your screen."
5075
+ }),
5076
+ helper: $__i18n._({
5077
+ id: "crypto.troubleHelp",
5078
+ message: "If you are having trouble, go back to the main screen and try logging in again."
5079
+ })
5080
+ }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5081
+ variant: "outline",
5082
+ onClick: ()=>dispatch({
5083
+ type: 'transition',
5084
+ screen: AppScreens.Main
5085
+ })
5086
+ }, $__i18n._({
5087
+ id: "button.goBack",
5088
+ message: "Go back"
5089
+ })));
5090
+ };
5091
+
5092
+ const SignMessage = ()=>{
5093
+ const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5094
+ const onEvent = useEventCallback();
5095
+ const onError = useErrorCallback();
5096
+ const handleError = ()=>{
5097
+ // eslint-disable-next-line lingui/no-unlocalized-strings -- This is not shown in the UI, just sent to the error callback
5098
+ onError({
5099
+ message: '[Error] Could not sign message'
5100
+ });
5101
+ dispatch({
5102
+ type: 'transition',
5103
+ screen: AppScreens.CryptoError
5104
+ });
5105
+ };
5106
+ const stytchClient = useStytch();
5107
+ const config = useConfig();
5108
+ const [state, dispatch] = useGlobalReducer();
5109
+ const { walletChallenge, walletAddress, walletOption } = state.formState.cryptoState;
5110
+ const walletType = isSolanaWallet(walletOption) ? 'solana' : 'ethereum';
5111
+ const onSignWallet = async ()=>{
5112
+ const signature = await signMessageWithWallet({
5113
+ wallet: walletOption,
5114
+ message: walletChallenge,
5115
+ address: walletAddress
5116
+ });
5117
+ stytchClient.cryptoWallets.authenticate({
5118
+ crypto_wallet_address: walletAddress,
5119
+ crypto_wallet_type: walletType,
5120
+ signature,
5121
+ session_duration_minutes: config.sessionOptions?.sessionDurationMinutes ?? idpHelpers.DEFAULT_SESSION_DURATION_MINUTES
5122
+ }).then((data)=>{
5123
+ onEvent({
5124
+ type: StytchSSRProxy.StytchEventType.CryptoWalletAuthenticate,
5125
+ data
5126
+ });
5127
+ dispatch({
5128
+ type: 'transition',
5129
+ screen: AppScreens.CryptoConfirmation
5130
+ });
5131
+ }).catch(handleError);
5132
+ };
5133
+ shadcn.useMountEffect(()=>{
5134
+ onSignWallet();
5135
+ });
5136
+ return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5137
+ gap: 6
5138
+ }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.TextColumn, {
5139
+ header: $__i18n._({
5140
+ id: "crypto.signMessage.title",
5141
+ message: "Completing signature request..."
5142
+ }),
5143
+ body: $__i18n._({
5144
+ id: "crypto.signMessage.instruction",
5145
+ message: "Complete the signature request through the wallet pop up in the right corner of your screen."
5146
+ }),
5147
+ helper: $__i18n._({
5148
+ id: "crypto.troubleHelp",
5149
+ message: "If you are having trouble, go back to the main screen and try logging in again."
5150
+ })
5151
+ }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5152
+ variant: "outline",
5153
+ onClick: ()=>dispatch({
5154
+ type: 'transition',
5155
+ screen: AppScreens.Main
5156
+ })
5157
+ }, $__i18n._({
5158
+ id: "button.goBack",
5159
+ message: "Go back"
5160
+ })));
5161
+ };
5162
+
5163
+ const OtherCryptoWallets = ()=>{
5164
+ const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5165
+ const [, dispatch] = useGlobalReducer();
5166
+ return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5167
+ gap: 6
5168
+ }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.Typography, {
5169
+ variant: "header"
5170
+ }, $__i18n._({
5171
+ id: "crypto.continueWithOtherWallet.title",
5172
+ message: "Continue with other wallet"
5173
+ })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonColumn, null, /*#__PURE__*/ React__namespace.default.createElement(CryptoWalletButtons, {
5174
+ type: "other"
5175
+ }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5176
+ variant: "ghost",
5177
+ onClick: ()=>dispatch({
5178
+ type: 'transition',
5179
+ screen: AppScreens.Main
5180
+ })
5181
+ }, $__i18n._({
5182
+ id: "button.goBack",
5183
+ message: "Go back"
5184
+ }))));
5185
+ };
5186
+
5187
+ const commonButtonProps = {
5188
+ variant: 'outline',
5189
+ target: '_blank',
5190
+ rel: 'noreferrer'
5191
+ };
5192
+ const SetupNewWallet = ()=>{
5193
+ const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5194
+ const [, dispatch] = useGlobalReducer();
5195
+ const getCryptoIcon = useCryptoIcon();
5196
+ const MetamaskIcon = getCryptoIcon(StytchSSRProxy.Wallets.Metamask);
5197
+ const PhantomIcon = getCryptoIcon(StytchSSRProxy.Wallets.Phantom);
5198
+ const CoinbaseIcon = getCryptoIcon(StytchSSRProxy.Wallets.Coinbase);
5199
+ const BinanceIcon = getCryptoIcon(StytchSSRProxy.Wallets.Binance);
5200
+ return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5201
+ gap: 6
5202
+ }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.TextColumn, {
5203
+ header: $__i18n._({
5204
+ id: "crypto.setupNewWallet.title",
5205
+ message: "Set up a new crypto wallet"
5206
+ }),
5207
+ body: $__i18n._({
5208
+ id: "crypto.setupNewWallet.content",
5209
+ message: "Get started by downloading any Ethereum or Solana wallet."
5210
+ }),
5211
+ helper: $__i18n._({
5212
+ id: "crypto.setupNewWallet.instruction",
5213
+ message: "We’ve included a few examples of wallet extensions you can find below. Once you’ve set up your wallet, click “Go back” to use it and sign in."
5214
+ })
5215
+ }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonColumn, null, /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5216
+ ...commonButtonProps,
5217
+ icon: /*#__PURE__*/ React__namespace.default.createElement(MetamaskIcon, null),
5218
+ href: "https://metamask.io/"
5219
+ }, $__i18n._({
5220
+ id: "crypto.wallet.metamask",
5221
+ message: "Metamask"
5222
+ })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5223
+ ...commonButtonProps,
5224
+ icon: /*#__PURE__*/ React__namespace.default.createElement(PhantomIcon, null),
5225
+ href: "https://phantom.com/"
5226
+ }, $__i18n._({
5227
+ id: "crypto.wallet.phantom",
5228
+ message: "Phantom"
5229
+ })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5230
+ ...commonButtonProps,
5231
+ icon: /*#__PURE__*/ React__namespace.default.createElement(CoinbaseIcon, null),
5232
+ href: "https://www.coinbase.com/wallet"
5233
+ }, $__i18n._({
5234
+ id: "crypto.wallet.coinbase",
5235
+ message: "Coinbase"
5236
+ })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5237
+ ...commonButtonProps,
5238
+ icon: /*#__PURE__*/ React__namespace.default.createElement(BinanceIcon, null),
5239
+ href: "https://web3.binance.com/en/about"
5240
+ }, $__i18n._({
5241
+ id: "crypto.wallet.binance",
5242
+ message: "Binance"
5243
+ })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5244
+ variant: "primary",
5245
+ onClick: ()=>dispatch({
5246
+ type: 'transition',
5247
+ screen: AppScreens.Main
5248
+ })
5249
+ }, $__i18n._({
5250
+ id: "button.goBack",
5251
+ message: "Go back"
5252
+ }))));
5253
+ };
5254
+
5255
+ const Error$1 = ()=>{
5256
+ const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5257
+ const [, dispatch] = useGlobalReducer();
5342
5258
  return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5343
5259
  gap: 6
5344
5260
  }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.TextColumn, {
5345
5261
  header: $__i18n._({
5346
- id: "crypto.connectWallet.title",
5347
- message: "Connecting to your wallet..."
5262
+ id: "crypto.error.title",
5263
+ message: "Looks like there was an error"
5348
5264
  }),
5349
5265
  body: $__i18n._({
5350
- id: "crypto.connectWallet.instructionPopup",
5351
- message: "Complete sign in by connecting through the wallet pop up in the right corner of your screen."
5352
- }),
5353
- helper: $__i18n._({
5354
- id: "crypto.troubleHelp",
5355
- message: "If you are having trouble, go back to the main screen and try logging in again."
5266
+ id: "crypto.error.content",
5267
+ message: "Your sign in request could not be completed. Go back to the main screen and try logging in again."
5356
5268
  })
5357
5269
  }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5358
5270
  variant: "outline",
@@ -5366,64 +5278,19 @@ const ConnectWallet = ()=>{
5366
5278
  })));
5367
5279
  };
5368
5280
 
5369
- const SignMessage = ()=>{
5281
+ const Success = ()=>{
5370
5282
  const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5371
- const onEvent = useEventCallback();
5372
- const onError = useErrorCallback();
5373
- const handleError = ()=>{
5374
- // eslint-disable-next-line lingui/no-unlocalized-strings -- This is not shown in the UI, just sent to the error callback
5375
- onError({
5376
- message: '[Error] Could not sign message'
5377
- });
5378
- dispatch({
5379
- type: 'transition',
5380
- screen: AppScreens.CryptoError
5381
- });
5382
- };
5383
- const stytchClient = useStytch();
5384
- const config = useConfig();
5385
- const [state, dispatch] = useGlobalReducer();
5386
- const { walletChallenge, walletAddress, walletOption } = state.formState.cryptoState;
5387
- const walletType = isSolanaWallet(walletOption) ? 'solana' : 'ethereum';
5388
- const onSignWallet = async ()=>{
5389
- const signature = await signMessageWithWallet({
5390
- wallet: walletOption,
5391
- message: walletChallenge,
5392
- address: walletAddress
5393
- });
5394
- stytchClient.cryptoWallets.authenticate({
5395
- crypto_wallet_address: walletAddress,
5396
- crypto_wallet_type: walletType,
5397
- signature,
5398
- session_duration_minutes: config.sessionOptions?.sessionDurationMinutes ?? idpHelpers.DEFAULT_SESSION_DURATION_MINUTES
5399
- }).then((data)=>{
5400
- onEvent({
5401
- type: StytchSSRProxy.StytchEventType.CryptoWalletAuthenticate,
5402
- data
5403
- });
5404
- dispatch({
5405
- type: 'transition',
5406
- screen: AppScreens.CryptoConfirmation
5407
- });
5408
- }).catch(handleError);
5409
- };
5410
- shadcn.useMountEffect(()=>{
5411
- onSignWallet();
5412
- });
5283
+ const [, dispatch] = useGlobalReducer();
5413
5284
  return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5414
5285
  gap: 6
5415
- }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.TextColumn, {
5286
+ }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.Confirmation, {
5416
5287
  header: $__i18n._({
5417
- id: "crypto.signMessage.title",
5418
- message: "Completing signature request..."
5419
- }),
5420
- body: $__i18n._({
5421
- id: "crypto.signMessage.instruction",
5422
- message: "Complete the signature request through the wallet pop up in the right corner of your screen."
5288
+ id: "crypto.success.title",
5289
+ message: "Success!"
5423
5290
  }),
5424
- helper: $__i18n._({
5425
- id: "crypto.troubleHelp",
5426
- message: "If you are having trouble, go back to the main screen and try logging in again."
5291
+ text: $__i18n._({
5292
+ id: "crypto.success.content",
5293
+ message: "You have successfully connected your wallet."
5427
5294
  })
5428
5295
  }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5429
5296
  variant: "outline",
@@ -5437,148 +5304,271 @@ const SignMessage = ()=>{
5437
5304
  })));
5438
5305
  };
5439
5306
 
5440
- const OtherCryptoWallets = ()=>{
5441
- const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5442
- const [, dispatch] = useGlobalReducer();
5443
- return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5444
- gap: 6
5445
- }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.Typography, {
5446
- variant: "header"
5447
- }, $__i18n._({
5448
- id: "crypto.continueWithOtherWallet.title",
5449
- message: "Continue with other wallet"
5450
- })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonColumn, null, /*#__PURE__*/ React__namespace.default.createElement(CryptoWalletButtons, {
5451
- type: "other"
5452
- }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5453
- variant: "ghost",
5454
- onClick: ()=>dispatch({
5455
- type: 'transition',
5456
- screen: AppScreens.Main
5457
- })
5458
- }, $__i18n._({
5459
- id: "button.goBack",
5460
- message: "Go back"
5461
- }))));
5462
- };
5307
+ const AmazonIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5308
+ xmlns: "http://www.w3.org/2000/svg",
5309
+ width: 20,
5310
+ height: 20,
5311
+ fill: "none",
5312
+ ...props
5313
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5314
+ fill: "#F90",
5315
+ d: "M16.5 15.53C9.2 19 4.69 16.1 1.8 14.33c-.19-.1-.5.03-.23.34.97 1.17 4.13 3.98 8.25 3.98s6.59-2.25 6.9-2.64c.3-.4.08-.6-.22-.48m2.04-1.13c-.2-.25-1.19-.3-1.81-.22s-1.57.45-1.49.68c.04.09.13.05.56.01s1.64-.2 1.9.14c.25.33-.4 1.9-.51 2.16s.04.32.25.15.6-.6.85-1.23c.25-.62.4-1.5.25-1.69"
5316
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5317
+ fill: "#000",
5318
+ fillRule: "evenodd",
5319
+ d: "M11.6 8.46c0 .9.02 1.67-.44 2.47-.37.66-.96 1.06-1.62 1.06-.9 0-1.42-.68-1.42-1.69 0-1.99 1.79-2.35 3.48-2.35zm2.35 5.69a.5.5 0 0 1-.55.05c-.78-.64-.91-.94-1.34-1.55-1.28 1.3-2.19 1.7-3.85 1.7-1.96 0-3.5-1.22-3.5-3.64 0-1.9 1.03-3.19 2.5-3.82 1.26-.56 3.03-.66 4.39-.81v-.3c0-.56.04-1.22-.29-1.7-.28-.43-.83-.6-1.3-.6-.9 0-1.7.45-1.89 1.4-.04.21-.19.42-.4.43l-2.27-.25c-.19-.04-.4-.2-.34-.49C5.63 1.83 8.1 1 10.33 1c1.13 0 2.62.3 3.52 1.16 1.13 1.06 1.02 2.48 1.02 4.02v3.64c0 1.1.46 1.57.88 2.16.16.21.19.47 0 .63-.48.4-1.33 1.13-1.8 1.55z",
5320
+ clipRule: "evenodd",
5321
+ className: shadcn.modules_73af8a26.darkInvert
5322
+ }));
5323
+
5324
+ const AppleIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5325
+ xmlns: "http://www.w3.org/2000/svg",
5326
+ width: 20,
5327
+ height: 20,
5328
+ fill: "none",
5329
+ ...props
5330
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5331
+ fill: "#000",
5332
+ d: "M16.55 7.14c-.1.08-1.86 1.12-1.86 3.43A4 4 0 0 0 17 14.2c0 .06-.35 1.3-1.18 2.56-.74 1.1-1.5 2.21-2.67 2.21s-1.47-.7-2.82-.7c-1.32 0-1.79.73-2.86.73S5.66 17.97 4.8 16.7c-1-1.48-1.8-3.78-1.8-5.96C3 7.25 5.17 5.4 7.31 5.4c1.14 0 2.09.78 2.8.78.68 0 1.74-.83 3.03-.83.5 0 2.26.05 3.41 1.79m-4.02-3.27c.53-.66.91-1.59.91-2.5q0-.22-.03-.37c-.87.03-1.9.6-2.53 1.36-.49.59-.95 1.5-.95 2.44 0 .14.03.28.04.33l.23.02c.78 0 1.76-.54 2.33-1.28",
5333
+ className: shadcn.modules_73af8a26.darkInvert
5334
+ }));
5335
+
5336
+ const BinanceIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5337
+ xmlns: "http://www.w3.org/2000/svg",
5338
+ width: 20,
5339
+ height: 20,
5340
+ fill: "none",
5341
+ ...props
5342
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5343
+ fill: "#F3BA2F",
5344
+ d: "m6.43 8.56 3.5-3.5 3.49 3.5 2.03-2.03L9.92 1 4.4 6.53zM4.99 10 2.96 7.97.92 10l2.04 2.03zM6.43 11.44l3.5 3.5 3.49-3.5 2.03 2.03L9.92 19 4.4 13.47zM16.89 12.03 18.92 10 16.9 7.97 14.85 10z"
5345
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5346
+ fill: "#F3BA2F",
5347
+ d: "M11.99 10 9.92 7.93 8.4 9.46l-.18.18-.36.36 2.06 2.07z"
5348
+ }));
5349
+
5350
+ const BitbucketIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5351
+ xmlns: "http://www.w3.org/2000/svg",
5352
+ width: 20,
5353
+ height: 20,
5354
+ fill: "none",
5355
+ ...props
5356
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5357
+ fill: "#1868DB",
5358
+ d: "m17.96 9.14-1.34 8.08a.9.9 0 0 1-.93.78H4.3a.9.9 0 0 1-.93-.78L1.02 2.81c-.1-.5.17-.81.64-.81h16.68c.47 0 .73.32.64.8l-.64 3.8c-.09.55-.4.78-.93.78H7.37q-.23 0-.2.26l.79 4.78q.05.18.23.2h3.62q.17-.02.23-.2l.56-3.46c.05-.43.35-.6.75-.6h3.94c.58 0 .76.29.67.78"
5359
+ }));
5360
+
5361
+ const CoinbaseIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5362
+ xmlns: "http://www.w3.org/2000/svg",
5363
+ width: 20,
5364
+ height: 20,
5365
+ fill: "none",
5366
+ ...props
5367
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5368
+ fill: "#0052FF",
5369
+ d: "M10.02 14.5a4.5 4.5 0 1 1 4.44-5.25H19a9 9 0 1 0 0 1.5h-4.54a4.5 4.5 0 0 1-4.44 3.75"
5370
+ }));
5371
+
5372
+ const DiscordIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5373
+ xmlns: "http://www.w3.org/2000/svg",
5374
+ width: 20,
5375
+ height: 20,
5376
+ fill: "none",
5377
+ ...props
5378
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5379
+ fill: "#5865F2",
5380
+ d: "M12.53 3q-.26.44-.47.92a15 15 0 0 0-4.12 0q-.21-.47-.48-.92-1.93.3-3.72 1.1a13.8 13.8 0 0 0-2.66 9.72Q3.15 15.28 5.63 16q.56-.72.98-1.5a10 10 0 0 1-1.54-.7l.38-.27c2.88 1.3 6.22 1.3 9.1 0q.19.15.38.27a10 10 0 0 1-1.54.7q.41.8.98 1.5 2.48-.7 4.55-2.18c.38-3.69-.64-6.89-2.67-9.73a15 15 0 0 0-3.71-1.08zm-5.52 8.86c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.9 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72m5.98 0c-.89 0-1.62-.77-1.62-1.72 0-.94.7-1.71 1.62-1.71.91 0 1.63.77 1.62 1.71-.02.95-.72 1.72-1.62 1.72"
5381
+ }));
5382
+
5383
+ const FacebookIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5384
+ xmlns: "http://www.w3.org/2000/svg",
5385
+ width: 20,
5386
+ height: 20,
5387
+ fill: "none",
5388
+ ...props
5389
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5390
+ fill: "#0866FF",
5391
+ d: "M19 10a9 9 0 1 0-11.17 8.73v-5.98H5.97V10h1.86V8.81c0-3.06 1.38-4.48 4.39-4.48.57 0 1.55.11 1.96.23v2.49q-.35-.03-1.04-.03c-1.48 0-2.05.55-2.05 2V10h2.94l-.5 2.75h-2.44v6.18A9 9 0 0 0 19 10"
5392
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5393
+ fill: "#fff",
5394
+ d: "m13.53 12.75.5-2.75h-2.94v-.97c0-1.46.57-2.01 2.05-2.01q.7 0 1.04.03v-2.5a10 10 0 0 0-1.96-.22c-3 0-4.4 1.42-4.4 4.48V10H5.98v2.75h1.86v5.98a9 9 0 0 0 3.26.2v-6.18z"
5395
+ }));
5396
+
5397
+ const FigmaIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5398
+ xmlns: "http://www.w3.org/2000/svg",
5399
+ width: 20,
5400
+ height: 20,
5401
+ fill: "none",
5402
+ ...props
5403
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5404
+ fill: "#24CB71",
5405
+ d: "M4 16a3 3 0 0 1 3-3h3v3a3 3 0 0 1-6 0"
5406
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5407
+ fill: "#FF7237",
5408
+ d: "M10 1v6h3a3 3 0 0 0 0-6z"
5409
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5410
+ fill: "#00B6FF",
5411
+ d: "M12.98 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6"
5412
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5413
+ fill: "#FF3737",
5414
+ d: "M4 4a3 3 0 0 0 3 3h3V1H7a3 3 0 0 0-3 3"
5415
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5416
+ fill: "#874FFF",
5417
+ d: "M4 10a3 3 0 0 0 3 3h3V7H7a3 3 0 0 0-3 3"
5418
+ }));
5419
+
5420
+ const GitlabIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5421
+ xmlns: "http://www.w3.org/2000/svg",
5422
+ width: 20,
5423
+ height: 20,
5424
+ fill: "none",
5425
+ ...props
5426
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5427
+ fill: "#E24329",
5428
+ d: "m18.7 8.2-.03-.07-2.45-6.4A.65.65 0 0 0 15 1.8l-1.65 5.07h-6.7L5 1.8a.64.64 0 0 0-.97-.37.6.6 0 0 0-.25.3l-2.45 6.4-.03.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8 1.85 1.4 1.12.84c.27.21.65.21.92 0l1.12-.84 1.85-1.4 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.5-5.26"
5429
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5430
+ fill: "#FC6D26",
5431
+ d: "m18.7 8.2-.03-.07a8 8 0 0 0-3.29 1.48L10 13.68l3.43 2.59 3.75-2.81.01-.01a4.55 4.55 0 0 0 1.5-5.26"
5432
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5433
+ fill: "#FCA326",
5434
+ d: "m6.57 16.27 1.85 1.4 1.12.84c.27.21.65.21.92 0l1.12-.84 1.85-1.4s-1.6-1.2-3.43-2.6c-1.83 1.4-3.43 2.6-3.43 2.6"
5435
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5436
+ fill: "#FC6D26",
5437
+ d: "M4.62 9.61a8 8 0 0 0-3.3-1.48l-.02.06a4.55 4.55 0 0 0 1.51 5.26l.03.02 3.73 2.8s1.6-1.2 3.43-2.6z"
5438
+ }));
5439
+
5440
+ const LinkedinIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5441
+ xmlns: "http://www.w3.org/2000/svg",
5442
+ width: 20,
5443
+ height: 20,
5444
+ fill: "none",
5445
+ ...props
5446
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5447
+ fill: "#007EBB",
5448
+ fillRule: "evenodd",
5449
+ d: "M3 19h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2",
5450
+ clipRule: "evenodd"
5451
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5452
+ fill: "#fff",
5453
+ fillRule: "evenodd",
5454
+ d: "M16.5 16.5h-2.67v-4.55c0-1.25-.48-1.94-1.46-1.94-1.08 0-1.64.72-1.64 1.94v4.55H8.16V7.83h2.57V9s.78-1.43 2.62-1.43c1.83 0 3.15 1.12 3.15 3.44zM5.09 6.7A1.6 1.6 0 0 1 3.5 5.1c0-.88.71-1.6 1.59-1.6.87 0 1.58.72 1.58 1.6s-.7 1.6-1.58 1.6m-1.33 9.8h2.68V7.83H3.76z",
5455
+ clipRule: "evenodd"
5456
+ }));
5457
+
5458
+ const MetamaskIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5459
+ xmlns: "http://www.w3.org/2000/svg",
5460
+ width: 20,
5461
+ height: 20,
5462
+ fill: "none",
5463
+ ...props
5464
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5465
+ fill: "#FF5C16",
5466
+ d: "m17.82 18.08-3.88-1.15-2.92 1.75H8.98l-2.93-1.75-3.87 1.15L1 14.1 2.18 9.7 1 5.95l1.18-4.63 6.05 3.62h3.54l6.05-3.62L19 5.95 17.82 9.7 19 14.1z"
5467
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5468
+ fill: "#FF5C16",
5469
+ d: "m2.18 1.32 6.06 3.62-.25 2.49zM6.06 14.1l2.66 2.03-2.66.8zM8.5 10.75 8 7.43 4.71 9.69V12l1.33-1.26zM17.82 1.32l-6.05 3.62.24 2.49zM13.95 14.1l-2.67 2.03 2.67.8zM15.29 9.69 12 7.43l-.52 3.32h2.46L15.28 12z"
5470
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5471
+ fill: "#E34807",
5472
+ d: "m6.05 16.93-3.87 1.15L1 14.1h5.05zM8.5 10.75l.75 4.8-1.03-2.67-3.5-.87 1.33-1.26zM13.95 16.93l3.87 1.15L19 14.1h-5.05zM11.5 10.75l-.75 4.8 1.03-2.67 3.5-.87-1.33-1.26z"
5473
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5474
+ fill: "#FF8D5D",
5475
+ d: "M1 14.1 2.18 9.7H4.7L4.72 12l3.5.87 1.03 2.66-.53.6-2.67-2.04zM19 14.1 17.82 9.7H15.3L15.28 12l-3.5.87-1.03 2.66.53.6 2.67-2.04z"
5476
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5477
+ fill: "#FF8D5D",
5478
+ d: "M11.77 4.94H8.23L8 7.43l1.26 8.11h1.5l1.26-8.11z"
5479
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5480
+ fill: "#661800",
5481
+ d: "M2.18 1.32 1 5.95 2.18 9.7H4.7L8 7.43zM7.77 11.71H6.62l-.62.61 2.22.56zM17.82 1.32 19 5.95 17.82 9.7H15.3L12 7.43zM12.23 11.71h1.15l.62.62-2.22.55zM11.02 17.1l.26-.97-.53-.58h-1.5l-.53.58.26.96"
5482
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5483
+ fill: "#C0C4CD",
5484
+ d: "M11.02 17.1v1.58H8.98v-1.59z"
5485
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5486
+ fill: "#E7EBF6",
5487
+ d: "m6.06 16.93 2.92 1.75v-1.59l-.26-.96zM13.95 16.93l-2.93 1.75v-1.59l.26-.96z"
5488
+ }));
5463
5489
 
5464
- const commonButtonProps = {
5465
- variant: 'outline',
5466
- target: '_blank',
5467
- rel: 'noreferrer'
5468
- };
5469
- const walletIcon = (wallet)=>{
5470
- const Icon = WalletToIcon[wallet];
5471
- return /*#__PURE__*/ React__namespace.default.createElement(Icon, null);
5472
- };
5473
- const SetupNewWallet = ()=>{
5474
- const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5475
- const [, dispatch] = useGlobalReducer();
5476
- return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5477
- gap: 6
5478
- }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.TextColumn, {
5479
- header: $__i18n._({
5480
- id: "crypto.setupNewWallet.title",
5481
- message: "Set up a new crypto wallet"
5482
- }),
5483
- body: $__i18n._({
5484
- id: "crypto.setupNewWallet.content",
5485
- message: "Get started by downloading any Ethereum or Solana wallet."
5486
- }),
5487
- helper: $__i18n._({
5488
- id: "crypto.setupNewWallet.instruction",
5489
- message: "We’ve included a few examples of wallet extensions you can find below. Once you’ve set up your wallet, click “Go back” to use it and sign in."
5490
- })
5491
- }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonColumn, null, /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5492
- ...commonButtonProps,
5493
- icon: walletIcon(StytchSSRProxy.Wallets.Metamask),
5494
- href: "https://metamask.io/"
5495
- }, $__i18n._({
5496
- id: "crypto.wallet.metamask",
5497
- message: "Metamask"
5498
- })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5499
- ...commonButtonProps,
5500
- icon: walletIcon(StytchSSRProxy.Wallets.Phantom),
5501
- href: "https://phantom.app/"
5502
- }, $__i18n._({
5503
- id: "crypto.wallet.phantom",
5504
- message: "Phantom"
5505
- })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5506
- ...commonButtonProps,
5507
- icon: walletIcon(StytchSSRProxy.Wallets.Coinbase),
5508
- href: "https://www.coinbase.com/wallet"
5509
- }, $__i18n._({
5510
- id: "crypto.wallet.coinbase",
5511
- message: "Coinbase"
5512
- })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.ButtonAnchor, {
5513
- ...commonButtonProps,
5514
- icon: walletIcon(StytchSSRProxy.Wallets.Binance),
5515
- href: "https://www.bnbchain.world/en/binance-wallet"
5516
- }, $__i18n._({
5517
- id: "crypto.wallet.binance",
5518
- message: "Binance"
5519
- })), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5520
- variant: "primary",
5521
- onClick: ()=>dispatch({
5522
- type: 'transition',
5523
- screen: AppScreens.Main
5524
- })
5525
- }, $__i18n._({
5526
- id: "button.goBack",
5527
- message: "Go back"
5528
- }))));
5529
- };
5490
+ const PhantomIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5491
+ xmlns: "http://www.w3.org/2000/svg",
5492
+ width: 20,
5493
+ height: 20,
5494
+ fill: "none",
5495
+ ...props
5496
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5497
+ fill: "#AB9FF2",
5498
+ d: "M3.13 17.5c2.3 0 4.02-2 5.05-3.58q-.19.53-.2 1.04c0 .92.54 1.58 1.58 1.58 1.44 0 2.97-1.26 3.76-2.62a2 2 0 0 0-.08.55c0 .64.36 1.04 1.1 1.04 2.32 0 4.66-4.12 4.66-7.73 0-2.8-1.42-5.28-4.98-5.28C7.75 2.5 1 10.16 1 15.11c0 1.94 1.04 2.39 2.13 2.39m8.73-10.02c0-.7.39-1.2.96-1.2s.95.5.95 1.2-.4 1.2-.95 1.2c-.57 0-.96-.5-.96-1.2m2.98 0c0-.7.39-1.2.96-1.2.55 0 .94.5.94 1.2s-.38 1.2-.94 1.2c-.57 0-.96-.5-.96-1.2"
5499
+ }));
5530
5500
 
5531
- const Error$1 = ()=>{
5532
- const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5533
- const [, dispatch] = useGlobalReducer();
5534
- return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5535
- gap: 6
5536
- }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.TextColumn, {
5537
- header: $__i18n._({
5538
- id: "crypto.error.title",
5539
- message: "Looks like there was an error"
5540
- }),
5541
- body: $__i18n._({
5542
- id: "crypto.error.content",
5543
- message: "Your sign in request could not be completed. Go back to the main screen and try logging in again."
5544
- })
5545
- }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5546
- variant: "outline",
5547
- onClick: ()=>dispatch({
5548
- type: 'transition',
5549
- screen: AppScreens.Main
5550
- })
5551
- }, $__i18n._({
5552
- id: "button.goBack",
5553
- message: "Go back"
5554
- })));
5555
- };
5501
+ const SalesforceIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5502
+ xmlns: "http://www.w3.org/2000/svg",
5503
+ width: 20,
5504
+ height: 20,
5505
+ fill: "none",
5506
+ ...props
5507
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5508
+ fill: "#00A1E0",
5509
+ fillRule: "evenodd",
5510
+ d: "M8.49 4.92a3.1 3.1 0 0 1 2.28-1.01c1.2 0 2.22.68 2.78 1.7q.75-.35 1.57-.35c2.14 0 3.88 1.8 3.88 4.04a3.96 3.96 0 0 1-4.65 3.96c-.49.9-1.42 1.5-2.47 1.5q-.65 0-1.25-.3a3.2 3.2 0 0 1-2.97 2.04c-1.4 0-2.58-.9-3.04-2.18q-.3.06-.62.06c-1.66 0-3-1.4-3-3.13 0-1.16.6-2.17 1.5-2.71a4 4 0 0 1-.29-1.44c0-1.99 1.57-3.6 3.5-3.6 1.13 0 2.15.56 2.78 1.42",
5511
+ clipRule: "evenodd"
5512
+ }));
5556
5513
 
5557
- const Success = ()=>{
5558
- const { i18n: $__i18n, _: $__ } = passwordManagerDisableAutofillProps.useLingui();
5559
- const [, dispatch] = useGlobalReducer();
5560
- return /*#__PURE__*/ React__namespace.default.createElement(shadcn.Column, {
5561
- gap: 6
5562
- }, /*#__PURE__*/ React__namespace.default.createElement(shadcn.Confirmation, {
5563
- header: $__i18n._({
5564
- id: "crypto.success.title",
5565
- message: "Success!"
5566
- }),
5567
- text: $__i18n._({
5568
- id: "crypto.success.content",
5569
- message: "You have successfully connected your wallet."
5570
- })
5571
- }), /*#__PURE__*/ React__namespace.default.createElement(shadcn.Button, {
5572
- variant: "outline",
5573
- onClick: ()=>dispatch({
5574
- type: 'transition',
5575
- screen: AppScreens.Main
5576
- })
5577
- }, $__i18n._({
5578
- id: "button.goBack",
5579
- message: "Go back"
5580
- })));
5581
- };
5514
+ const SnapchatIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5515
+ xmlns: "http://www.w3.org/2000/svg",
5516
+ width: 20,
5517
+ height: 20,
5518
+ fill: "none",
5519
+ ...props
5520
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5521
+ fill: "#fff",
5522
+ d: "M17.72 14.26c-2.78-1.35-3.23-3.43-3.25-3.59-.02-.18-.05-.33.16-.52.2-.19 1.08-.73 1.32-.9q.63-.41.46-.92c-.1-.24-.32-.33-.56-.33l-.22.03c-.44.1-.87.32-1.12.38h-.1q-.19.02-.17-.21c.03-.49.1-1.44.02-2.32a3.7 3.7 0 0 0-.96-2.36A4.3 4.3 0 0 0 10 2.14a4.3 4.3 0 0 0-3.3 1.37 3.7 3.7 0 0 0-.96 2.36c-.08.89 0 1.84.02 2.33q.01.22-.17.22l-.1-.02c-.24-.06-.68-.28-1.12-.38L4.15 8c-.24 0-.46.1-.55.33-.14.35.04.63.45.91.24.17 1.13.72 1.33.9.2.2.18.34.15.53-.02.16-.46 2.24-3.25 3.59-.16.08-.44.24.05.51.77.43 1.28.38 1.68.64.34.22.14.69.38.86.3.2 1.2-.02 2.35.36.96.32 1.55 1.22 3.26 1.22s2.32-.9 3.27-1.22c1.15-.38 2.04-.16 2.34-.36.25-.17.05-.64.39-.86.4-.26.9-.21 1.68-.64.48-.26.2-.43.04-.5",
5523
+ className: shadcn.modules_73af8a26.darkInvert
5524
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5525
+ fill: "#000",
5526
+ d: "M18.94 14.1a1.3 1.3 0 0 0-.64-.67l-.14-.07-.24-.13a5.4 5.4 0 0 1-1.97-1.68 4 4 0 0 1-.33-.6q-.06-.16-.01-.23l.1-.12.82-.53q.52-.36.74-.8a1.6 1.6 0 0 0 .08-1.3c-.23-.6-.8-.98-1.5-.98a2 2 0 0 0-.54.08q.01-.64-.04-1.29a4.83 4.83 0 0 0-2.44-3.93A5.6 5.6 0 0 0 10 1.15a5.6 5.6 0 0 0-2.82.72 4.8 4.8 0 0 0-2.44 3.93q-.06.66-.04 1.28a3 3 0 0 0-.55-.08 1.54 1.54 0 0 0-1.6 1.65q.01.33.18.64.23.43.74.8l.42.27.38.25q.08.04.12.12.05.07-.01.24-.14.3-.33.59a5.4 5.4 0 0 1-1.91 1.65c-.43.23-.89.39-1.08.9-.14.4-.05.84.32 1.21q.2.21.46.35.53.3 1.12.45.13.03.23.1c.13.12.12.3.3.55q.13.2.33.34c.37.26.78.27 1.23.3.4 0 .85.02 1.37.2q.3.11.7.36c.61.38 1.46.9 2.88.9s2.27-.52 2.9-.9q.37-.25.68-.36c.52-.17.97-.2 1.37-.2.44-.02.86-.04 1.23-.3q.24-.16.38-.41c.13-.22.13-.37.25-.47l.21-.1a5 5 0 0 0 1.14-.46q.28-.15.48-.37v-.01c.35-.37.44-.8.3-1.18m-1.27.68c-.77.42-1.28.38-1.67.64-.34.21-.14.68-.39.85-.3.21-1.2-.01-2.34.37-.95.31-1.56 1.21-3.27 1.21-1.7 0-2.3-.9-3.27-1.22-1.15-.38-2.04-.15-2.34-.36-.25-.17-.05-.64-.38-.86-.4-.25-.91-.2-1.68-.63-.5-.27-.21-.44-.05-.52 2.79-1.35 3.23-3.43 3.25-3.58.02-.2.05-.34-.16-.53-.2-.18-1.08-.73-1.32-.9-.4-.28-.59-.57-.46-.91.1-.25.32-.34.56-.34l.22.03c.44.1.87.32 1.12.38l.1.01q.19 0 .17-.22c-.03-.49-.1-1.43-.02-2.32.1-1.22.5-1.83.96-2.36A4.3 4.3 0 0 1 10 2.15a4.3 4.3 0 0 1 3.3 1.36c.46.54.86 1.14.96 2.36.08.89.01 1.84-.02 2.33q-.01.23.17.22l.1-.02c.24-.06.68-.28 1.12-.38l.22-.02c.24 0 .46.1.56.33q.17.5-.46.91c-.24.17-1.13.72-1.32.9-.21.2-.18.34-.16.53.02.16.46 2.24 3.25 3.59.17.08.44.25-.05.52",
5527
+ className: shadcn.modules_73af8a26.darkInvert
5528
+ }));
5529
+
5530
+ const TiktokIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5531
+ xmlns: "http://www.w3.org/2000/svg",
5532
+ width: 20,
5533
+ height: 20,
5534
+ fill: "none",
5535
+ ...props
5536
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5537
+ fill: "#161823",
5538
+ fillRule: "evenodd",
5539
+ d: "M11.38 1.79h2.3A4.42 4.42 0 0 0 18 5.3v.68l.01 2.41a7.6 7.6 0 0 1-4.39-1.38v6.28c0 3.14-2.6 5.7-5.8 5.7a6 6 0 0 1-3.33-1.03A5.7 5.7 0 0 1 2 13.3a5.76 5.76 0 0 1 6.59-5.64v3.16q-.37-.11-.78-.12a2.63 2.63 0 0 0-2.66 2.6c0 1 .58 1.87 1.43 2.3q.55.3 1.23.3c1.42 0 2.59-1.1 2.64-2.5V1h3.16q0 .4.08.79z",
5540
+ clipRule: "evenodd",
5541
+ className: shadcn.modules_73af8a26.darkInvert
5542
+ }));
5543
+
5544
+ const TwitchIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5545
+ xmlns: "http://www.w3.org/2000/svg",
5546
+ width: 20,
5547
+ height: 20,
5548
+ fill: "none",
5549
+ ...props
5550
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5551
+ fill: "#fff",
5552
+ d: "m16.25 9.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"
5553
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5554
+ fill: "#9146FF",
5555
+ d: "M5.63 1 2.5 4.21V15.8h3.75V19l3.13-3.21h2.5L17.5 10V1zm10.62 8.36-2.5 2.57h-2.5l-2.19 2.25v-2.25H6.25V2.29h10z"
5556
+ }), /*#__PURE__*/ React__namespace.createElement("path", {
5557
+ fill: "#9146FF",
5558
+ d: "M14.38 4.54h-1.26v3.85h1.26zM10.94 4.54H9.69v3.85h1.25z"
5559
+ }));
5560
+
5561
+ const XTwitterIcon = (props)=>/*#__PURE__*/ React__namespace.createElement("svg", {
5562
+ xmlns: "http://www.w3.org/2000/svg",
5563
+ width: 20,
5564
+ height: 20,
5565
+ fill: "none",
5566
+ ...props
5567
+ }, /*#__PURE__*/ React__namespace.createElement("path", {
5568
+ fill: "#000",
5569
+ d: "M11.67 8.62 18.23 1h-1.55l-5.7 6.61L6.44 1H1.2l6.87 10-6.87 8h1.55l6.01-7 4.8 7h5.24zm-2.12 2.47-.7-1-5.54-7.92H5.7l4.47 6.4.7 1 5.8 8.3H14.3z",
5570
+ className: shadcn.modules_73af8a26.darkInvert
5571
+ }));
5582
5572
 
5583
5573
  const oauthIcons = {
5584
5574
  amazon: AmazonIcon,
@@ -5599,7 +5589,7 @@ const oauthIcons = {
5599
5589
  tiktok: TiktokIcon,
5600
5590
  twitch: TwitchIcon,
5601
5591
  xTwitter: XTwitterIcon,
5602
- yahoo: YahooIcon
5592
+ yahoo: shadcn.YahooIcon
5603
5593
  };
5604
5594
  const cryptoIcons = {
5605
5595
  phantom: PhantomIcon,
@@ -5610,7 +5600,7 @@ const cryptoIcons = {
5610
5600
  const emailIcons = {
5611
5601
  gmail: shadcn.GmailIcon,
5612
5602
  outlook: shadcn.OutlookIcon,
5613
- yahoo: YahooIcon
5603
+ yahoo: shadcn.YahooIcon
5614
5604
  };
5615
5605
 
5616
5606
  const PhoneFormSMS = ()=>/*#__PURE__*/ React__namespace.default.createElement(PhoneForm, {
@@ -5726,7 +5716,7 @@ var Products = /*#__PURE__*/Object.freeze({
5726
5716
  passwords: passwords
5727
5717
  });
5728
5718
 
5729
- const ResetPasswordContainer = ({ client, config: rawConfig, presentation, callbacks, strings, passwordResetToken: rawToken })=>{
5719
+ const ResetPasswordContainer = ({ client, config: rawConfig, presentation, callbacks, strings, styles, passwordResetToken: rawToken })=>{
5730
5720
  const config = addProduct(rawConfig, passwords);
5731
5721
  // Default to reading token from URL if not provided
5732
5722
  let token = rawToken;
@@ -5797,9 +5787,9 @@ const ResetPasswordContainer = ({ client, config: rawConfig, presentation, callb
5797
5787
  * onEvent: (event) => console.log(event)
5798
5788
  * }}
5799
5789
  * />
5800
- */ const StytchPasswordReset = createB2CComponent('StytchPasswordReset', ResetPasswordContainer);
5790
+ */ const StytchPasswordReset = /* @__PURE__ */ createB2CComponent('StytchPasswordReset', ResetPasswordContainer);
5801
5791
 
5802
- const PasskeyRegistrationContainer = ({ client, config: rawConfig, presentation, callbacks, strings })=>{
5792
+ const PasskeyRegistrationContainer = ({ client, config: rawConfig, presentation, callbacks, strings, styles })=>{
5803
5793
  const config = addProduct(rawConfig, passkeyRegistration);
5804
5794
  /**
5805
5795
  * Read the watermark out of sync storage, then read it out of async storage
@@ -5852,7 +5842,7 @@ const PasskeyRegistrationContainer = ({ client, config: rawConfig, presentation,
5852
5842
  * onEvent: (event) => console.log(event)
5853
5843
  * }}
5854
5844
  * />
5855
- */ const StytchPasskeyRegistration = createB2CComponent('StytchPasskeyRegistration', PasskeyRegistrationContainer);
5845
+ */ const StytchPasskeyRegistration = /* @__PURE__ */ createB2CComponent('StytchPasskeyRegistration', PasskeyRegistrationContainer);
5856
5846
 
5857
5847
  const IDPConsentScreenImpl = ({ initialError, initialParams })=>{
5858
5848
  const stytchClient = useStytch();
@@ -5989,7 +5979,7 @@ const EnsureUserIsLoggedIn = ({ children })=>{
5989
5979
  }
5990
5980
  };
5991
5981
 
5992
- const IDPContainer = ({ client, presentation, callbacks, strings, getIDPConsentManifest, authTokenParams })=>{
5982
+ const IDPContainer = ({ client, presentation, callbacks, strings, styles, getIDPConsentManifest, authTokenParams })=>{
5993
5983
  const presentationValue = shadcn.usePresentationWithDefault(presentation, false, []);
5994
5984
  React.useEffect(()=>{
5995
5985
  StytchSSRProxy.readB2CInternals(client).bootstrap.getAsync().then((data)=>{
@@ -6038,7 +6028,7 @@ const IDPContainer = ({ client, presentation, callbacks, strings, getIDPConsentM
6038
6028
  * onEvent: (event) => console.log(event)
6039
6029
  * }}
6040
6030
  * />
6041
- */ const IdentityProvider = createB2CComponent('IdentityProvider', IDPContainer);
6031
+ */ const IdentityProvider = /* @__PURE__ */ createB2CComponent('IdentityProvider', IDPContainer);
6042
6032
 
6043
6033
  /**
6044
6034
  * Returns the active User.