UNPKG

supertokens-auth-react

Version:

ReactJS SDK that provides login functionality with SuperTokens.

382 lines (369 loc) 181 kB
"use strict"; var genericComponentOverrideContext = require("./genericComponentOverrideContext.js"); var jsxRuntime = require("react/jsx-runtime"); var NormalisedURLPath = require("supertokens-web-js/lib/build/normalisedURLPath"); var uiEntry = require("./index2.js"); require("./multifactorauth.js"); var recipe = require("./webauthn-shared.js"); var React = require("react"); var translationContext = require("./translationContext.js"); var button = require("./emailpassword-shared.js"); var STGeneralError = require("supertokens-web-js/lib/build/error"); var formBase = require("./emailpassword-shared6.js"); var validators = require("./emailpassword-shared5.js"); var authCompWrapper = require("./authCompWrapper.js"); var session = require("./session.js"); var types = require("./multifactorauth-shared.js"); var STGeneralError$1 = require("supertokens-web-js/utils/error"); require("supertokens-web-js"); require("supertokens-web-js/utils/cookieHandler"); require("supertokens-web-js/utils/postSuperTokensInitCallbacks"); require("supertokens-web-js/utils/windowHandler"); require("supertokens-web-js/recipe/multitenancy"); require("supertokens-web-js/utils"); require("supertokens-web-js/utils/normalisedURLDomain"); require("supertokens-web-js/utils/normalisedURLPath"); require("react-dom"); require("./multitenancy-shared.js"); require("./multifactorauth-shared2.js"); require("supertokens-web-js/recipe/multifactorauth"); require("supertokens-web-js/utils/sessionClaimValidatorStore"); require("./recipeModule-shared.js"); require("./oauth2provider-shared.js"); require("supertokens-web-js/recipe/oauth2provider"); require("./authRecipe-shared.js"); require("./multifactorauth-shared3.js"); require("supertokens-web-js/lib/build/recipe/webauthn"); require("./authRecipe-shared2.js"); require("./emailpassword-shared4.js"); require("supertokens-web-js/recipe/session"); require("./session-shared.js"); function _interopDefault(e) { return e && e.__esModule ? e : { default: e }; } function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== "default") { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty( n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; }, } ); } }); } n.default = e; return Object.freeze(n); } var NormalisedURLPath__default = /*#__PURE__*/ _interopDefault(NormalisedURLPath); var React__namespace = /*#__PURE__*/ _interopNamespace(React); var STGeneralError__default = /*#__PURE__*/ _interopDefault(STGeneralError); var STGeneralError__default$1 = /*#__PURE__*/ _interopDefault(STGeneralError$1); /* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ var RecoverAccountScreen; (function (RecoverAccountScreen) { RecoverAccountScreen[(RecoverAccountScreen["ContinueWithPasskey"] = 0)] = "ContinueWithPasskey"; RecoverAccountScreen[(RecoverAccountScreen["Success"] = 1)] = "Success"; })(RecoverAccountScreen || (RecoverAccountScreen = {})); var SendRecoveryEmailScreen; (function (SendRecoveryEmailScreen) { SendRecoveryEmailScreen[(SendRecoveryEmailScreen["RecoverAccount"] = 0)] = "RecoverAccount"; SendRecoveryEmailScreen[(SendRecoveryEmailScreen["RecoverEmailSent"] = 1)] = "RecoverEmailSent"; })(SendRecoveryEmailScreen || (SendRecoveryEmailScreen = {})); var PasskeyNotSupportedError = uiEntry.withOverride("WebauthnPasskeyNotSupportedError", function () { var t = translationContext.useTranslation(); return jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "continueWithPasskeyButtonNotSupported" }, { children: t("WEBAUTHN_PASSKEY_NOT_SUPPORTED_BY_BROWSER") } ) ); }); var ContinueWithoutPasskey = uiEntry.withOverride( "WebauthnContinueWithoutPasskey", function ContinueWithoutPasskeyButton(props) { var t = translationContext.useTranslation(); return jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "continueWithoutPasskey" }, { children: jsxRuntime.jsx( "a", genericComponentOverrideContext.__assign( { onClick: props.onClick, "data-supertokens": "formLabelLinkBtn continueWithoutPasskeyLabel", }, { children: t("WEBAUTHN_CONTINUE_WITHOUT_PASSKEY_BUTTON") } ) ), } ) ); } ); /* Copyright (c) 2025, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ function FingerPrintIcon() { return jsxRuntime.jsx( "svg", genericComponentOverrideContext.__assign( { width: "22", height: "22", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: jsxRuntime.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.364853 0.0364227C0.244304 0.0845041 0.138369 0.193473 0.0615589 0.348417C-0.00354731 0.479822 -0.00518591 0.539239 0.00411019 2.42023C0.0116006 3.93286 0.0228697 4.35981 0.0555064 4.37068C0.0785125 4.37833 0.0973054 4.40311 0.0973054 4.42571C0.0973054 4.54943 0.445408 4.74684 0.663565 4.74684C0.815145 4.74684 1.04812 4.6382 1.15322 4.51847C1.32697 4.32059 1.33456 4.24526 1.33456 2.71799V1.30289H2.79384C4.22377 1.30289 4.25607 1.30142 4.39826 1.23044C4.47855 1.19034 4.58478 1.09823 4.63601 1.0243C4.71774 0.90637 4.72864 0.860194 4.72864 0.631757C4.72864 0.392955 4.72068 0.362895 4.62595 0.244397C4.42043 -0.0127287 4.52666 -0.00126008 2.37117 0.00104703C1.17689 0.00231761 0.41675 0.0157255 0.364853 0.0364227ZM17.6195 0.0364227C17.1685 0.216243 17.1268 0.918675 17.55 1.20519L17.6696 1.28617L19.1827 1.2955L20.6959 1.30486V2.77289C20.6959 3.72883 20.7083 4.27378 20.7314 4.33507C20.8144 4.55461 21.1022 4.74684 21.3479 4.74684C21.5937 4.74684 21.8815 4.55461 21.9644 4.33507C21.988 4.27261 22 3.60559 22 2.35289C22 0.824083 21.9912 0.44438 21.9539 0.357245C21.8983 0.22711 21.7497 0.0828324 21.6216 0.03445C21.4968 -0.0127287 17.7381 -0.0108564 17.6195 0.0364227ZM10.2127 2.19293C9.93596 2.23323 9.20123 2.37988 9.14262 2.40653C9.10583 2.42324 9.00802 2.45367 8.92526 2.4741C8.41785 2.59945 7.37308 3.10718 6.91891 3.44914C6.20143 3.9893 5.75459 4.4316 5.21922 5.13135C5.00227 5.41496 4.58729 6.17002 4.42909 6.56912C4.37803 6.69785 4.32279 6.83327 4.3063 6.87005C4.25551 6.98346 4.14021 7.39306 4.08981 7.63908C4.06346 7.76781 4.02762 7.91828 4.01016 7.97345C3.99274 8.02862 3.96305 8.20917 3.94419 8.37468C3.90052 8.7583 3.89727 13.2703 3.94058 13.3843C4.05093 13.6744 4.40026 13.8494 4.71737 13.7734C4.91162 13.7267 5.10159 13.5766 5.16833 13.4168C5.20458 13.33 5.21357 12.9045 5.21381 11.2596C5.21401 9.67225 5.22514 9.11643 5.26316 8.79264C5.33255 8.20165 5.38321 7.87852 5.4126 7.8397C5.42655 7.82131 5.45597 7.73103 5.47804 7.63908C5.52951 7.42462 5.64989 7.11557 5.82972 6.73623C6.41846 5.49434 7.57077 4.42103 8.84166 3.93082C8.9704 3.88117 9.10583 3.82677 9.14262 3.80992C9.37639 3.70292 9.94348 3.59027 10.5506 3.53019C11.1559 3.47034 11.8709 3.53393 12.52 3.70543C12.7764 3.77314 13.233 3.93293 13.2879 3.97409C13.3069 3.98833 13.3752 4.02077 13.4396 4.04608C13.5756 4.09958 13.9651 4.31317 14.1585 4.44029C14.5925 4.72554 15.264 5.34224 15.53 5.69977C15.5847 5.77333 15.6378 5.84104 15.648 5.85024C15.751 5.94306 16.3488 7.00566 16.3488 7.09591C16.3488 7.11323 16.3702 7.17485 16.3965 7.2328C16.4697 7.39466 16.6076 7.8817 16.6487 8.12391C16.669 8.24344 16.7008 8.41648 16.7192 8.50843C16.7377 8.60038 16.7639 8.96433 16.7774 9.31719L16.8019 9.95876L16.9045 10.0862C17.1294 10.3654 17.4433 10.4388 17.746 10.2829C17.8347 10.2372 17.9403 10.1469 17.9873 10.0765C18.0678 9.95599 18.0713 9.9283 18.0816 9.33019C18.0993 8.3055 17.9766 7.58943 17.6285 6.68615C17.5432 6.4647 17.2533 5.85375 17.1768 5.73405C16.5906 4.81705 16.2187 4.37325 15.5796 3.82787C14.959 3.29831 14.1667 2.8429 13.4061 2.57849C12.9518 2.42057 12.7982 2.3775 12.3623 2.28605C11.9982 2.20965 11.8585 2.19862 11.1322 2.18909C10.6817 2.18317 10.2678 2.18488 10.2127 2.19293ZM10.3631 4.7681C9.30132 4.96611 8.50038 5.37333 7.80565 6.06838C7.22685 6.64746 6.79909 7.3864 6.61578 8.12391C6.49068 8.62726 6.48691 8.70781 6.48309 10.966C6.48102 12.1889 6.46677 13.2647 6.45146 13.3567C6.40063 13.6617 6.31339 13.9172 6.19913 14.0959C5.8421 14.6539 5.32008 14.9738 4.67848 15.0277C4.31744 15.058 4.14208 15.1405 4.00592 15.3443C3.91229 15.4844 3.90506 15.5157 3.9155 15.7338C3.92499 15.932 3.94228 15.9911 4.02066 16.0939C4.22678 16.3641 4.42882 16.4168 4.97181 16.3417C5.39311 16.2835 5.67657 16.2001 5.99933 16.0394C6.79518 15.6431 7.36171 14.9813 7.66621 14.0923L7.76927 13.7914L7.78876 11.4007C7.80538 9.36584 7.81662 8.96487 7.8643 8.70701C7.94653 8.26224 8.08968 7.9052 8.35278 7.48862C8.46788 7.30636 8.93155 6.81825 9.09246 6.70995C9.34997 6.53665 9.42986 6.48964 9.62748 6.39515C10.1741 6.13381 10.7703 6.03457 11.358 6.1071C12.4125 6.23723 13.2488 6.79933 13.8115 7.75611C13.9013 7.90881 14.0394 8.2716 14.0873 8.48078C14.1134 8.59429 14.1445 8.70313 14.1566 8.72265C14.1686 8.74218 14.1908 9.10821 14.2057 9.53606C14.2305 10.2421 14.2413 10.341 14.3232 10.6068C14.4025 10.8641 14.6483 11.3941 14.7421 11.51C14.7604 11.5326 14.8486 11.6416 14.9381 11.7522C15.2381 12.1229 15.6327 12.4339 16.0451 12.6243C16.1478 12.6717 16.2576 12.7241 16.2893 12.7408C16.4343 12.8169 17.0726 12.9387 17.3262 12.9387C17.6665 12.9387 17.845 12.8589 17.9885 12.6423C18.0701 12.5191 18.0876 12.4579 18.0876 12.2966C18.0876 11.8324 17.8614 11.6408 17.233 11.573C16.6964 11.515 16.3008 11.3018 15.9674 10.8909C15.644 10.4923 15.5133 10.0149 15.5121 9.22738C15.5117 8.97908 15.4969 8.67521 15.4791 8.55213C15.4471 8.33138 15.3148 7.83442 15.2359 7.63908C15.1616 7.45498 14.8555 6.8663 14.774 6.75061C14.077 5.76173 13.2112 5.16235 12.0351 4.8545C11.7601 4.78251 11.6321 4.77007 11.0821 4.76195C10.7326 4.75677 10.4091 4.75954 10.3631 4.7681ZM10.3686 7.42031C9.80608 7.6222 9.40454 8.00979 9.17197 8.5753L9.07574 8.80935L9.07758 9.74557C9.07871 10.3231 9.09456 10.7587 9.11894 10.8824C9.14071 10.9927 9.18171 11.2094 9.21003 11.3639C9.23838 11.5184 9.28242 11.714 9.30787 11.7986C9.46196 12.3108 9.57435 12.6588 9.59501 12.688C9.60809 12.7064 9.63792 12.7816 9.66136 12.8552C9.71991 13.0391 10.114 13.8155 10.2693 14.0529C10.3393 14.1599 10.3966 14.2557 10.3966 14.2657C10.3966 14.2758 10.4528 14.3612 10.5215 14.4556C11.2929 15.5159 12.0453 16.2268 13.0881 16.8808C13.3505 17.0454 14.1869 17.4549 14.3926 17.5196C14.4661 17.5428 14.5446 17.5761 14.5669 17.5938C14.5892 17.6115 14.6965 17.634 14.8054 17.6439C15.2043 17.6801 15.5128 17.4042 15.5128 17.0112C15.5128 16.6587 15.3635 16.4545 15.0064 16.3183C14.8895 16.2737 14.7004 16.1947 14.5863 16.1427C14.4721 16.0908 14.3717 16.0483 14.3633 16.0483C14.3223 16.0483 13.6696 15.66 13.4286 15.4921C11.9045 14.4309 10.8596 12.8262 10.5139 11.0162C10.4523 10.6935 10.3963 10.1577 10.3734 9.67175C10.3561 9.30237 10.3612 9.24637 10.4278 9.08243C10.5206 8.85369 10.6379 8.74114 10.8397 8.68738C11.1251 8.61128 11.4157 8.74145 11.5599 9.00997C11.6022 9.08875 11.619 9.26824 11.6382 9.84588C11.6536 10.313 11.6805 10.6486 11.7117 10.7654C11.7387 10.8665 11.7791 11.0396 11.8013 11.1499C11.8235 11.2602 11.8525 11.3656 11.8657 11.384C11.8788 11.4023 11.9087 11.4851 11.9321 11.5679C11.9555 11.6506 11.9942 11.7635 12.0183 11.8186C12.1918 12.2165 12.2568 12.3491 12.4051 12.6082C12.6036 12.9551 12.9701 13.4464 13.2339 13.7194C13.4376 13.9301 14.008 14.4074 14.2254 14.549C14.5346 14.7505 15.1592 15.0783 15.2348 15.0789C15.2498 15.079 15.3068 15.1025 15.3617 15.1311C15.4774 15.1914 15.8364 15.2992 16.1481 15.3672C16.2677 15.3933 16.4407 15.431 16.5327 15.451C16.6246 15.471 16.8976 15.4952 17.1392 15.5046C17.5504 15.5207 17.5884 15.5169 17.7339 15.4442C17.9601 15.3313 18.0876 15.1259 18.0876 14.8745C18.0876 14.6448 18.0476 14.5265 17.9266 14.3984C17.7722 14.2348 17.6106 14.1864 17.0844 14.146C15.9636 14.0599 15.078 13.6458 14.2567 12.824C13.8821 12.4492 13.6092 12.0609 13.3909 11.592C13.0921 10.9504 12.9863 10.4332 12.9415 9.39449C12.917 8.82751 12.9071 8.7578 12.8228 8.55858C12.5959 8.022 12.2183 7.64727 11.684 7.4284C11.517 7.36002 11.4132 7.34404 11.0654 7.33324C10.6687 7.3209 10.6331 7.32535 10.3686 7.42031ZM8.74141 15.0645C8.60548 15.1353 8.52673 15.2104 8.46684 15.3262C8.43919 15.3797 8.40281 15.4399 8.38599 15.46C8.36917 15.4802 8.29252 15.5922 8.21565 15.7089C8.065 15.9377 7.59776 16.4338 7.35362 16.6241C6.58321 17.2246 5.73442 17.5451 4.76208 17.6028C4.31275 17.6294 4.15542 17.6952 4.00592 17.9189C3.91205 18.0594 3.90503 18.0899 3.91563 18.3112C3.92563 18.5192 3.94074 18.5682 4.02909 18.679C4.15897 18.8419 4.34499 18.9339 4.57816 18.9506C4.76522 18.964 5.56214 18.8793 5.79033 18.8217C5.85932 18.8044 5.9797 18.7748 6.05785 18.7561C6.50115 18.6501 7.39983 18.2458 7.75489 17.9925C7.83765 17.9334 7.94298 17.8601 7.98896 17.8296C8.30493 17.6196 8.73034 17.2086 9.14506 16.7127C9.26958 16.5638 9.51265 16.2026 9.6129 16.0175C9.75148 15.7616 9.74987 15.5074 9.60836 15.3061C9.44969 15.0803 9.32238 15.0118 9.06243 15.012C8.92767 15.0121 8.80261 15.0326 8.74141 15.0645ZM10.5699 17.0019C10.4488 17.0545 10.3809 17.1247 10.0345 17.5556C9.78639 17.8642 9.39625 18.264 9.06423 18.5499C8.80588 18.7724 8.74649 18.883 8.74649 19.1412C8.74649 19.3854 8.80789 19.5135 8.99659 19.663C9.11339 19.7555 9.17094 19.7762 9.34155 19.787C9.475 19.7955 9.58813 19.7826 9.66641 19.7499C9.84002 19.6773 10.3048 19.262 10.793 18.743C10.9641 18.5611 10.9753 18.5549 11.0438 18.6045C11.2845 18.7788 11.7021 19.0424 12.0351 19.2303C12.3836 19.4269 12.51 19.4909 13.0071 19.7222C13.5778 19.9877 14.1387 19.5332 13.9778 18.9356C13.9429 18.8063 13.7083 18.5226 13.6363 18.5226C13.5892 18.5226 12.8065 18.1355 12.5912 18.0057C12.4832 17.9406 12.3894 17.8873 12.3826 17.8873C12.3615 17.8873 11.5557 17.3153 11.4332 17.2134C11.3688 17.1598 11.297 17.1005 11.2736 17.0817C11.1135 16.9526 10.7723 16.914 10.5699 17.0019ZM0.416449 17.2717C0.250658 17.3325 0.147397 17.4284 0.0615589 17.6016C-0.00354731 17.733 -0.00518591 17.7924 0.00411019 19.6734C0.0116006 21.186 0.0228697 21.613 0.0555064 21.6238C0.0785125 21.6315 0.0973054 21.6563 0.0973054 21.6789C0.0973054 21.7425 0.267143 21.8877 0.410698 21.9467C0.523756 21.9932 0.772711 22 2.37248 22C4.08864 22 4.21404 21.996 4.35081 21.9374C4.53265 21.8595 4.70152 21.6714 4.73108 21.514C4.79475 21.1745 4.67594 20.8937 4.40645 20.7469L4.25143 20.6625H2.79301H1.33456V19.2474C1.33456 17.68 1.32804 17.6235 1.12409 17.4259C1.00846 17.3138 0.778395 17.2172 0.636479 17.2209C0.588227 17.2222 0.489213 17.2451 0.416449 17.2717ZM21.1149 17.2719C21.0418 17.2986 20.9384 17.3615 20.885 17.4117C20.6959 17.5892 20.6959 17.5897 20.6959 19.1903V20.6625L19.2162 20.6631C17.7467 20.6636 17.7356 20.6642 17.6059 20.7383C17.5341 20.7794 17.4288 20.8708 17.3718 20.9415C17.2753 21.0614 17.2683 21.0881 17.2683 21.3399C17.2683 21.5262 17.2813 21.6142 17.3101 21.6238C17.3332 21.6315 17.3519 21.6563 17.3519 21.6789C17.3519 21.7425 17.5218 21.8877 17.6653 21.9467C17.7784 21.9932 18.0273 22 19.6271 22C21.3487 22 21.4682 21.9962 21.6043 21.937C21.7688 21.8654 21.9121 21.7266 21.9644 21.5882C21.988 21.5258 22 20.8587 22 19.6061C22 17.554 22.0033 17.5924 21.8114 17.4122C21.704 17.3114 21.47 17.2173 21.3354 17.2209C21.2871 17.2222 21.1879 17.2452 21.1149 17.2719Z", fill: "#1C222A", }), } ) ); } /* Copyright (c) 2025, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ function MultipleDevicesIcon() { return jsxRuntime.jsx( "svg", genericComponentOverrideContext.__assign( { width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: jsxRuntime.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.2938 0.0325123C1.23453 0.0485249 1.07251 0.118743 0.933735 0.188526C0.674106 0.319087 0.377281 0.583606 0.27407 0.776348C0.246666 0.827532 0.21024 0.887065 0.193151 0.908685C0.176032 0.930274 0.125596 1.05585 0.0810416 1.18769L0 1.42744L0.00800547 7.82324L0.0159804 14.2191L0.0976995 14.4118C0.335221 14.9719 0.697261 15.3069 1.26301 15.49C1.45915 15.5535 1.52421 15.555 4.51915 15.5656L7.57515 15.5765V16.6939V17.8113L7.01322 17.8256C6.30374 17.8436 6.15606 17.8926 5.87383 18.2038C5.40855 18.7168 5.57805 19.5804 6.20761 19.9045L6.35891 19.9823L8.00093 19.9912L9.64295 20L9.6229 19.9361C9.61188 19.9009 9.55055 19.7848 9.48659 19.678C9.42267 19.5712 9.3529 19.43 9.33153 19.364C9.31019 19.2982 9.27352 19.207 9.25009 19.1616C9.22663 19.1161 9.20677 19.0509 9.2059 19.0166C9.20507 18.9823 9.18152 18.8982 9.15359 18.8297C9.10854 18.7192 9.10088 18.4448 9.08566 16.3998L9.06851 14.0945L5.33758 14.0789L1.60667 14.0633L1.5272 13.9878L1.44776 13.9122V7.77084V1.62941L1.53413 1.5457L1.62046 1.46199H10.5039H19.3874L19.4698 1.54903L19.5522 1.63604L19.5602 3.021L19.5682 4.40593L19.7749 4.44023C19.9902 4.47596 20.272 4.55581 20.4304 4.62593C20.6754 4.73444 20.7479 4.76976 20.8691 4.83948L21 4.91478V3.18661C21 1.53243 20.9871 1.24629 20.9072 1.13489C20.8949 1.11775 20.8681 1.05118 20.8477 0.98691C20.8272 0.922673 20.8011 0.870087 20.7896 0.870087C20.7781 0.870087 20.7511 0.829962 20.7297 0.780896C20.6792 0.665506 20.3401 0.322389 20.226 0.271299C20.1775 0.249585 20.1379 0.222326 20.1379 0.210675C20.1379 0.199055 20.0859 0.172638 20.0224 0.151921C19.9589 0.131236 19.8931 0.104133 19.8761 0.0917027C19.7522 0.000767675 19.4517 -0.00216069 10.479 0.000611915C4.96153 0.00232532 1.3593 0.0148487 1.2938 0.0325123ZM11.6697 5.8341C11.3794 5.93781 11.1893 6.06014 10.9608 6.29024C10.7355 6.51722 10.6079 6.73298 10.4978 7.07314L10.4233 7.30314V12.8483V18.3935L10.4985 18.6272C10.7302 19.3466 11.2859 19.8282 12.009 19.9362C12.1022 19.9501 12.8747 19.9627 13.7256 19.9641C15.2196 19.9667 15.2729 19.9647 15.2729 19.9083C15.2729 19.8761 15.2521 19.8323 15.2267 19.811C15.2013 19.7897 15.1805 19.7597 15.1805 19.7445C15.1805 19.7293 15.1543 19.6574 15.1223 19.5848C15.0902 19.5122 15.0526 19.4247 15.0386 19.3904C15.0246 19.3562 15.0058 18.8865 14.9968 18.3468L14.9804 17.3655L13.4331 17.3574L11.8859 17.3494V12.4662C11.8859 9.38365 11.897 7.54402 11.9159 7.47707C11.9325 7.41875 11.9764 7.33825 12.0137 7.29816L12.0814 7.22526H15.7187H19.356L19.4541 7.32769L19.5522 7.43012L19.5602 9.01773L19.5682 10.6053L19.9685 10.6234C20.3844 10.6422 20.651 10.697 20.8614 10.807L20.9846 10.8714L20.9927 9.08726C20.998 7.92797 20.9895 7.24757 20.9684 7.14445C20.9296 6.95414 20.7479 6.58794 20.6017 6.40513C20.3936 6.1451 20.1008 5.94715 19.7441 5.8256C19.5566 5.7617 19.5181 5.76108 15.7126 5.76173L11.8705 5.76239L11.6697 5.8341ZM16.4737 11.4912C16.4483 11.5053 16.3772 11.5385 16.3157 11.5651C16.1442 11.639 16.0026 11.7819 15.9026 11.9816L15.8117 12.163L15.8029 15.4963C15.7969 17.7743 15.8046 18.8986 15.8274 19.0472C15.8771 19.3719 16.0835 19.6592 16.3198 19.7325C16.3621 19.7456 16.4162 19.7721 16.44 19.7914C16.471 19.8167 17.0223 19.8266 18.3952 19.8266H20.3072L20.4766 19.7448C20.6623 19.6551 20.781 19.5487 20.9041 19.3616L20.9846 19.2392V15.6544V12.0695L20.9106 11.9449C20.8135 11.7815 20.6257 11.604 20.5 11.5568C20.4448 11.5361 20.3755 11.5063 20.3461 11.4906C20.2795 11.455 16.5381 11.4556 16.4737 11.4912ZM19.9223 15.3873V18.191H18.4136H16.9048V15.3873V12.5835H18.4136H19.9223V15.3873ZM18.5403 18.6913C18.7034 18.7755 18.7679 18.9199 18.7211 19.0957C18.6819 19.2432 18.5807 19.3194 18.4182 19.3237C18.1782 19.3301 18.0307 19.1173 18.1038 18.8703C18.1333 18.7706 18.1643 18.7368 18.2692 18.6896C18.3401 18.6577 18.4022 18.6306 18.4071 18.6294C18.412 18.6282 18.4719 18.6561 18.5403 18.6913Z", fill: "#1C222A", }), } ) ); } /* Copyright (c) 2025, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ function SecurityIcon() { return jsxRuntime.jsx( "svg", genericComponentOverrideContext.__assign( { width: "16", height: "20", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: jsxRuntime.jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.74971 0.0115695C7.7268 0.0212227 7.6556 0.0538204 7.59151 0.0839829C7.52743 0.114175 7.46681 0.13888 7.45681 0.13888C7.44681 0.13888 7.39926 0.157687 7.35112 0.180661C7.30298 0.203635 7.16983 0.263813 7.05525 0.314426C6.94066 0.36501 6.8219 0.418234 6.79135 0.432699C6.76079 0.447164 6.68579 0.480759 6.62467 0.507342C6.37589 0.615551 5.77415 0.875893 5.51353 0.988063C5.36074 1.05385 5.19824 1.12541 5.1524 1.14715C4.95626 1.24013 4.84114 1.29074 4.60127 1.3895C4.46132 1.44713 4.33432 1.50388 4.31904 1.51555C4.30376 1.52726 4.18501 1.58004 4.05514 1.63283C3.92528 1.68558 3.80713 1.74074 3.79263 1.75539C3.7781 1.77 3.75035 1.78197 3.73096 1.78197C3.71155 1.78197 3.62965 1.8133 3.54901 1.85156C3.46834 1.88985 3.31484 1.95737 3.20789 2.00158C3.10094 2.0458 3.00094 2.0921 2.98566 2.10442C2.97038 2.11678 2.92663 2.13667 2.88843 2.14864C2.85024 2.16061 2.76899 2.1935 2.70787 2.22179C2.64676 2.25004 2.51528 2.30708 2.41569 2.34851C2.31611 2.38997 2.19735 2.44443 2.1518 2.46951C2.10624 2.4946 2.05891 2.5152 2.0466 2.51531C2.01979 2.51552 1.79481 2.61622 1.68475 2.67725C1.6415 2.70125 1.595 2.72088 1.58142 2.72088C1.5678 2.72088 1.48839 2.75388 1.40488 2.79423C1.32138 2.83457 1.24477 2.86758 1.23463 2.86758C1.21565 2.86758 1.15515 2.89487 0.883142 3.02608C0.796222 3.06801 0.716997 3.10231 0.70708 3.10231C0.697135 3.10231 0.610744 3.14057 0.515101 3.18734C0.287482 3.2986 0.144588 3.43447 0.0647523 3.61557L0 3.76248L0.000472403 6.16843C0.000722412 7.4917 0.0127228 8.69321 0.0271122 8.83845C0.0954757 9.52819 0.136449 9.87641 0.163506 9.99741C0.179729 10.07 0.210841 10.2351 0.232619 10.3642C0.282788 10.6612 0.357707 11.0257 0.380402 11.083C0.390014 11.1072 0.419598 11.2129 0.44621 11.3177C0.547602 11.7175 0.588604 11.8615 0.609132 11.8899C0.620799 11.906 0.645578 11.9851 0.66419 12.0656C0.682802 12.146 0.707886 12.2252 0.719914 12.2416C0.73197 12.2579 0.750693 12.3105 0.761554 12.3583C0.782722 12.4515 0.86303 12.6589 0.930394 12.7945C0.953117 12.8402 0.9717 12.8917 0.9717 12.9091C0.9717 12.9899 1.65945 14.4387 1.72056 14.4866C1.73087 14.4946 1.78167 14.5805 1.83348 14.6773C1.88529 14.7741 1.93793 14.8665 1.95043 14.8827C1.96296 14.8988 2.01304 14.978 2.06171 15.0587C2.11041 15.1394 2.15699 15.212 2.16524 15.2201C2.17349 15.2282 2.21769 15.294 2.2635 15.3664C2.35014 15.5034 2.68262 15.9729 2.73396 16.0309C2.75018 16.0491 2.80718 16.1216 2.86066 16.1918C3.36731 16.8573 4.44152 17.931 4.99998 18.3302C5.03384 18.3544 5.11323 18.4147 5.17643 18.4643C5.34457 18.5961 5.63792 18.8076 5.74964 18.8775C5.80312 18.911 5.9301 18.9924 6.03185 19.0585C6.23508 19.1903 6.59345 19.3957 6.91635 19.5653C7.09641 19.6599 7.19069 19.706 7.51359 19.8574C7.97342 20.073 8.08467 20.06 8.79142 19.7087C9.03984 19.5852 9.3118 19.4446 9.40788 19.3899C9.72578 19.2089 9.98768 19.0479 9.99515 19.0287C10.0003 19.0157 10.0167 19.0051 10.0316 19.0051C10.0698 19.0051 10.6872 18.5723 11.0249 18.3089C12.0679 17.4951 13.1408 16.3045 13.8714 15.1499C14.1104 14.7723 14.3209 14.4174 14.3702 14.3091C14.3808 14.2857 14.4219 14.2071 14.4615 14.1345C14.5716 13.9323 14.8431 13.3536 14.9432 13.1075C14.9925 12.9865 15.0499 12.8479 15.0709 12.7995C15.1328 12.6565 15.3046 12.1685 15.3628 11.9706C15.3924 11.8697 15.4429 11.6981 15.4749 11.5892C15.6687 10.9305 15.8341 10.0872 15.9023 9.41059C15.9243 9.19274 15.9553 8.90077 15.9711 8.76178C15.9889 8.60642 16 7.599 16 6.14675V3.78445L15.9332 3.62493C15.8529 3.4331 15.7179 3.30153 15.4843 3.18734C15.3887 3.14057 15.3023 3.10231 15.2924 3.10231C15.2824 3.10231 15.2032 3.06801 15.1163 3.02608C14.8443 2.89487 14.7838 2.86758 14.7648 2.86758C14.7547 2.86758 14.6781 2.83457 14.5946 2.79423C14.5111 2.75388 14.4316 2.72088 14.418 2.72088C14.4044 2.72088 14.3579 2.70125 14.3147 2.67725C14.2046 2.61622 13.9797 2.51552 13.9528 2.51531C13.9405 2.5152 13.8932 2.4946 13.8476 2.46951C13.8021 2.44443 13.6833 2.38997 13.5837 2.34851C13.4842 2.30708 13.3527 2.25004 13.2916 2.22179C13.2305 2.1935 13.1492 2.16061 13.111 2.14864C13.0728 2.13667 13.0291 2.11678 13.0138 2.10442C12.9985 2.0921 12.8985 2.04577 12.7916 2.00153C12.6846 1.95728 12.5471 1.89754 12.486 1.86882C12.4249 1.84006 12.2311 1.75533 12.0554 1.68048C11.8797 1.60563 11.6985 1.52623 11.6526 1.50402C11.5737 1.46573 11.1657 1.28666 10.9859 1.21141C10.9401 1.19219 10.8714 1.16126 10.8332 1.14263C10.795 1.12403 10.6387 1.05473 10.4859 0.98865C10.1118 0.826835 9.51158 0.566845 9.37477 0.507342C9.31366 0.480759 9.23865 0.447164 9.2081 0.432699C9.17754 0.418234 9.05879 0.36501 8.9442 0.314426C8.82961 0.263813 8.69647 0.203635 8.64833 0.180661C8.60019 0.157687 8.55263 0.13888 8.54263 0.13888C8.53263 0.13888 8.46577 0.109685 8.39404 0.0739775C8.29754 0.0259465 8.20223 0.00710975 8.0275 0.00153498C7.89764 -0.00260208 7.77263 0.00191639 7.74971 0.0115695ZM8.04872 1.66343C8.07525 1.67895 8.1907 1.73276 8.30529 1.78305C8.41988 1.83331 8.55302 1.89326 8.60116 1.91623C8.6493 1.93921 8.69741 1.95801 8.70808 1.95801C8.71875 1.95801 8.76686 1.97682 8.815 1.99979C8.86314 2.02277 8.99629 2.08295 9.11087 2.13356C9.22546 2.18414 9.34421 2.23737 9.37477 2.25183C9.44263 2.28396 9.57897 2.34338 9.88868 2.47573C10.0185 2.53125 10.1642 2.59591 10.2123 2.61942C10.2605 2.64295 10.3081 2.66219 10.3182 2.66219C10.3283 2.66219 10.4077 2.69649 10.4946 2.73842C10.7666 2.86963 10.8271 2.89692 10.8461 2.89692C10.8562 2.89692 10.9328 2.92993 11.0163 2.97027C11.0998 3.01062 11.1792 3.04363 11.1929 3.04363C11.2064 3.04363 11.2529 3.06325 11.2962 3.08726C11.4063 3.14828 11.6312 3.24898 11.658 3.24919C11.6704 3.2493 11.7177 3.2699 11.7632 3.29499C11.8088 3.32008 11.9276 3.37453 12.0271 3.41599C12.1267 3.45742 12.2582 3.51446 12.3193 3.54271C12.3804 3.571 12.4617 3.60389 12.4999 3.61586C12.5381 3.62783 12.5818 3.64772 12.5971 3.66008C12.6124 3.6724 12.7124 3.7187 12.8193 3.76292C12.9263 3.80713 13.0798 3.87465 13.1605 3.91294C13.2411 3.9512 13.323 3.98253 13.3424 3.98253C13.3618 3.98253 13.3896 3.9945 13.4041 4.00912C13.4186 4.02376 13.5367 4.07892 13.6666 4.13167C13.7965 4.18446 13.9152 4.23712 13.9305 4.24871C13.9458 4.2603 14.0645 4.31312 14.1944 4.36608C14.3242 4.41904 14.4461 4.47487 14.4652 4.49013C14.5184 4.53262 14.5127 7.38484 14.4575 8.33965C14.4131 9.10897 14.3956 9.27967 14.3074 9.80669C14.2208 10.3237 14.167 10.5956 14.1417 10.6439C14.1287 10.6686 14.1095 10.7346 14.0989 10.7906C14.0777 10.9029 13.9523 11.3573 13.917 11.4498C13.9046 11.4821 13.8603 11.6141 13.8185 11.7432C13.7767 11.8723 13.7263 12.0175 13.7066 12.0659C13.6869 12.1144 13.6313 12.253 13.5829 12.374C13.3094 13.0591 12.8567 13.8902 12.3467 14.6433C11.9461 15.235 11.19 16.0899 10.6375 16.576C10.4436 16.7465 9.96746 17.1328 9.8314 17.2299C9.76359 17.2783 9.69348 17.3312 9.67556 17.3473C9.65767 17.3634 9.5595 17.4295 9.45741 17.494C9.35533 17.5586 9.23002 17.6402 9.1789 17.6755C9.12779 17.7107 8.96345 17.8086 8.8137 17.8929C8.66394 17.9772 8.52266 18.0569 8.49974 18.07C8.47682 18.0831 8.35365 18.147 8.22604 18.2119C8.00886 18.3224 7.98933 18.3273 7.92047 18.2874C7.88002 18.264 7.72071 18.1795 7.56643 18.0997C7.25634 17.9394 6.95352 17.7669 6.81679 17.6728C6.76774 17.639 6.64412 17.5586 6.54203 17.494C6.43995 17.4295 6.34178 17.3634 6.32389 17.3473C6.30597 17.3312 6.23561 17.2783 6.16752 17.2299C6.03107 17.1329 5.55622 16.7476 5.36196 16.5763C4.89767 16.1667 4.34221 15.5639 3.94203 15.0353C3.80519 14.8545 3.68132 14.6911 3.66674 14.6722C3.42681 14.3603 2.83727 13.3248 2.60053 12.7995C2.52781 12.6381 2.45817 12.4858 2.44575 12.461C2.34239 12.2547 2.01299 11.2798 1.91079 10.8776C1.57408 9.55287 1.4995 8.69893 1.4995 6.16946V4.49227L1.70089 4.40944C1.81167 4.36388 1.96479 4.2971 2.04118 4.26101C2.11757 4.22492 2.26758 4.15937 2.37453 4.11533C2.48148 4.07129 2.58084 4.02338 2.59537 4.00888C2.60987 3.99439 2.63765 3.98253 2.65704 3.98253C2.67645 3.98253 2.75835 3.9512 2.83899 3.91294C2.91966 3.87465 3.07316 3.80713 3.18011 3.76292C3.28706 3.7187 3.38706 3.6724 3.40234 3.66008C3.41762 3.64772 3.46137 3.62795 3.49957 3.6161C3.53776 3.60427 3.60651 3.57707 3.65235 3.55565C3.69818 3.53426 3.81694 3.48154 3.91625 3.43852C4.01556 3.39551 4.14926 3.33524 4.21334 3.30464C4.27743 3.27404 4.33751 3.24901 4.34682 3.24901C4.36904 3.24901 4.60313 3.14277 4.70325 3.08726C4.7465 3.06325 4.793 3.04363 4.80658 3.04363C4.8202 3.04363 4.89962 3.01062 4.98312 2.97027C5.06662 2.92993 5.14323 2.89692 5.15337 2.89692C5.17235 2.89692 5.23285 2.86963 5.50486 2.73842C5.59178 2.69649 5.67303 2.66175 5.68542 2.6612C5.69784 2.66064 5.75798 2.6347 5.81909 2.60351C5.8802 2.57232 5.94082 2.54639 5.95379 2.54583C5.96676 2.54527 6.01676 2.52602 6.06491 2.50305C6.11305 2.48008 6.24619 2.4199 6.36078 2.36928C6.47536 2.3187 6.59412 2.26565 6.62467 2.25142C6.65523 2.23719 6.77399 2.18414 6.88857 2.13356C7.00316 2.08295 7.1363 2.02277 7.18444 1.99979C7.23258 1.97682 7.2807 1.95801 7.29136 1.95801C7.30203 1.95801 7.35014 1.93921 7.39828 1.91623C7.44643 1.89326 7.57957 1.83334 7.69416 1.78308C7.80874 1.73282 7.92125 1.67977 7.94417 1.66519C7.99828 1.6308 7.993 1.63089 8.04872 1.66343ZM10.5415 6.91627C10.4706 6.95341 9.84179 7.59639 8.80606 8.69069L7.18172 10.4068L6.34764 9.53438C5.60475 8.75738 5.49791 8.65636 5.37091 8.61082C5.17354 8.54008 5.00245 8.54615 4.82236 8.63027C4.63708 8.71683 4.52999 8.82272 4.43407 9.01426C4.33568 9.21069 4.3311 9.50152 4.42321 9.70066C4.51132 9.89117 6.68334 12.1849 6.86441 12.2787C7.04097 12.3701 7.31914 12.3701 7.49665 12.2788C7.59138 12.23 8.12856 11.6818 9.55947 10.1736C11.6846 7.93357 11.6387 7.98938 11.6387 7.64548C11.6387 7.33672 11.44 7.01465 11.1782 6.8991C11.0344 6.83564 10.6768 6.84526 10.5415 6.91627Z", fill: "#1C222A", }), } ) ); } var blockDetails = [ { title: "WEBAUTHN_FEATURE_BLOCK_NO_NEED_TO_REMEMBER_PASSWORD", subText: "WEBAUTHN_FEATURE_BLOCK_NO_NEED_TO_REMEMBER_PASSWORD_DETAIL", icon: jsxRuntime.jsx(FingerPrintIcon, {}), }, { title: "WEBAUTHN_FEATURE_BLOCK_WORKS_ON_ALL_DEVICES", subText: "WEBAUTHN_FEATURE_BLOCK_WORKS_ON_ALL_DEVICES_DETAIL", icon: jsxRuntime.jsx(MultipleDevicesIcon, {}), }, { title: "WEBAUTHN_FEATURE_BLOCK_KEEP_ACCOUNT_SAFER", subText: "WEBAUTHN_FEATURE_BLOCK_KEEP_ACCOUNT_SAFER_DETAIL", icon: jsxRuntime.jsx(SecurityIcon, {}), }, ]; var PasskeyFeatureBlock = uiEntry.withOverride("WebauthnPasskeyFeatureBlock", function FeatureBlock(props) { var t = translationContext.useTranslation(); return jsxRuntime.jsxs( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyFeatureBlock" }, { children: [ jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyFeatureBlockIcon" }, { children: props.icon } ) ), jsxRuntime.jsxs( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyFeatureBlockDetails" }, { children: [ jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyFeatureBlockTitle" }, { children: t(props.title) } ) ), jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyFeatureBlockSubText" }, { children: t(props.subText) } ) ), ], } ) ), ], } ) ); }); var PasskeyFeatureBlockList = function () { return jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyFeatureBlocksContainer" }, { children: blockDetails.map(function (blockDetail) { return jsxRuntime.jsx( PasskeyFeatureBlock, genericComponentOverrideContext.__assign({}, blockDetail) ); }), } ) ); }; var PasskeyConfirmation = uiEntry.withOverride("WebauthnPasskeyConfirmation", function PasskeyConfirmation(props) { var t = translationContext.useTranslation(); var showContinueWithoutPasskey = React.useMemo( function () { return props.hideContinueWithoutPasskey !== true && props.showBackButton === true; }, [props] ); return jsxRuntime.jsxs( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyConfirmationContainer" }, { children: [ props.email !== undefined && jsxRuntime.jsxs( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyConfirmationEmailContainer" }, { children: [ jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "continueWithLabel" }, { children: t("WEBAUTHN_CONTINUE_WITH_EMAIL_SUBTEXT") } ) ), jsxRuntime.jsx( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "enteredEmailId" }, { children: props.email } ) ), ], } ) ), jsxRuntime.jsx(PasskeyFeatureBlockList, {}), props.errorMessageLabel !== undefined && props.errorMessageLabel !== "" && jsxRuntime.jsx(uiEntry.GeneralError, { error: props.errorMessageLabel }), jsxRuntime.jsxs( "div", genericComponentOverrideContext.__assign( { "data-supertokens": "passkeyConfirmationFooter" }, { children: [ jsxRuntime.jsx(button.Button, { disabled: props.isContinueDisabled || !props.isPasskeySupported, isLoading: props.isLoading, type: "button", onClick: props.onContinueClick, label: "WEBAUTHN_EMAIL_CONTINUE_BUTTON", isGreyedOut: !props.isPasskeySupported, }), !props.isPasskeySupported && jsxRuntime.jsx(PasskeyNotSupportedError, {}), showContinueWithoutPasskey && props.resetFactorList !== undefined && jsxRuntime.jsx(ContinueWithoutPasskey, { onClick: props.resetFactorList }), ], } ) ), ], } ) ); }); var styles = '[data-supertokens~="container"] {\n --palette-background: 255, 255, 255;\n --palette-inputBackground: 250, 250, 250;\n --palette-inputBorder: 224, 224, 224;\n --palette-primary: 28, 34, 42;\n --palette-primaryBorder: 45, 54, 68;\n --palette-success: 65, 167, 0;\n --palette-successBackground: 217, 255, 191;\n --palette-error: 255, 23, 23;\n --palette-errorBackground: 255, 241, 235;\n --palette-textTitle: 0, 0, 0;\n --palette-textLabel: 0, 0, 0;\n --palette-textInput: 0, 0, 0;\n --palette-textPrimary: 128, 128, 128;\n --palette-textLink: 0, 122, 255;\n --palette-buttonText: 255, 255, 255;\n --palette-textGray: 54, 54, 54;\n --palette-superTokensBrandingBackground: 242, 245, 246;\n --palette-superTokensBrandingText: 173, 189, 196;\n --palette-buttonGreyedOut: 221, 221, 221;\n --palette-caution: 124, 96, 62;\n --palette-errorDark: 207, 54, 68;\n\n --font-size-0: 12px;\n --font-size-1: 14px;\n --font-size-2: 16px;\n --font-size-3: 19px;\n --font-size-4: 24px;\n --font-size-5: 28px;\n}\n/*\n * Default styles.\n */\n@keyframes slideTop {\n 0% {\n transform: translateY(-5px);\n }\n 100% {\n transform: translateY(0px);\n }\n}\n@keyframes swing-in-top-fwd {\n 0% {\n transform: rotateX(-100deg);\n transform-origin: top;\n opacity: 0;\n }\n 100% {\n transform: rotateX(0deg);\n transform-origin: top;\n opacity: 1;\n }\n}\n[data-supertokens~="container"] {\n font-family: "Arial", sans-serif;\n margin: 12px auto;\n margin-top: 26px;\n margin-bottom: 26px;\n width: 420px;\n text-align: center;\n border-radius: 8px;\n box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.16);\n background-color: rgb(var(--palette-background));\n}\n@media (max-width: 440px) {\n [data-supertokens~="container"] {\n width: 95vw;\n }\n}\n[data-supertokens~="row"] {\n margin: 0 auto;\n width: 76%;\n padding-top: 30px;\n padding-bottom: 10px;\n}\n[data-supertokens~="superTokensBranding"] {\n display: block;\n margin: 10px auto 0;\n background: rgb(var(--palette-superTokensBrandingBackground));\n color: rgb(var(--palette-superTokensBrandingText));\n text-decoration: none;\n width: -webkit-fit-content;\n width: fit-content;\n border-radius: 6px 6px 0 0;\n padding: 4px 9px;\n font-weight: 400;\n font-size: var(--font-size-0);\n letter-spacing: 0.4px;\n}\n[data-supertokens~="generalError"] {\n background: rgb(var(--palette-errorBackground));\n padding-top: 10px;\n padding-bottom: 10px;\n margin-bottom: 10px;\n margin-top: 24px;\n padding-left: 18px;\n padding-right: 18px;\n letter-spacing: 0.2px;\n font-size: var(--font-size-1);\n border-radius: 8px;\n color: rgb(var(--palette-error));\n animation: swing-in-top-fwd 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;\n word-wrap: break-word;\n}\n[data-supertokens~="headerTitle"] {\n font-size: var(--font-size-4);\n line-height: 27.6px;\n letter-spacing: 0.58px;\n font-weight: 700;\n margin-bottom: 20px;\n color: rgb(var(--palette-textTitle));\n}\n[data-supertokens~="headerSubtitle"] {\n font-weight: 400;\n color: rgb(var(--palette-textGray));\n margin-bottom: 21px;\n}\n[data-supertokens~="headerSubtitle"][data-supertokens~="secondaryText"] {\n color: rgb(var(--palette-textGray));\n font-weight: 400;\n}\n[data-supertokens~="privacyPolicyAndTermsAndConditions"] {\n max-width: 300px;\n margin-top: 10px;\n}\n[data-supertokens~="privacyPolicyAndTermsAndConditions"] a {\n line-height: 21px;\n}\n/* TODO: split the link style into separate things*/\n/* We add this before primary and secondary text, because if they are applied to the same element the other ones take priority */\n[data-supertokens~="link"] {\n padding-left: 3px;\n padding-right: 3px;\n color: rgb(var(--palette-textLink));\n font-size: var(--font-size-1);\n cursor: pointer;\n letter-spacing: 0.16px;\n line-height: 26px;\n}\n[data-supertokens~="primaryText"] {\n font-size: var(--font-size-2);\n font-weight: 400;\n letter-spacing: 0.4px;\n line-height: 21px;\n color: rgb(var(--palette-textLabel));\n}\n[data-supertokens~="secondaryText"] {\n font-size: var(--font-size-1);\n font-weight: 400;\n letter-spacing: 0.4px;\n color: rgb(var(--palette-textPrimary));\n}\n[data-supertokens~="secondaryText"] strong {\n font-weight: 600;\n}\n[data-supertokens~="divider"] {\n margin-top: 1.5em;\n margin-bottom: 1.5em;\n border-bottom: 0.3px solid #dddddd;\n align-items: center;\n padding-bottom: 5px;\n flex: 3 3;\n}\n[data-supertokens~="headerTinyTitle"] {\n margin-top: 24px;\n font-size: var(--font-size-5);\n letter-spacing: 1.1px;\n font-weight: 700;\n line-height: 28px;\n}\n[data-supertokens~="secondaryLinkWithArrow"] {\n margin-top: 10px;\n margin-bottom: 30px;\n cursor: pointer;\n}\n[data-supertokens~="secondaryLinkWithArrow"]:hover {\n position: relative;\n left: 2px;\n word-spacing: 4px;\n}\n[data-supertokens~="generalSuccess"] {\n color: rgb(var(--palette-success));\n font-size: var(--font-size-1);\n background: rgb(var(--palette-successBackground));\n animation: swing-in-top-fwd 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;\n padding: 9px 15px 9px 15px;\n border-radius: 6px;\n display: inline-block;\n}\n[data-supertokens~="spinner"] {\n width: 80px;\n height: auto;\n padding-top: 20px;\n padding-bottom: 40px;\n margin: 0 auto;\n}\n[data-supertokens~="error"] {\n color: rgb(var(--palette-error));\n}\n[data-supertokens~="linkButton"] {\n font-family: "Arial", sans-serif;\n background-color: transparent;\n border: 0;\n}\n[data-supertokens~="secondaryLinkWithLeftArrow"] {\n color: rgb(var(--palette-textGray));\n font-weight: 400;\n margin-top: 10px;\n margin-bottom: 40px;\n cursor: pointer;\n}\n[data-supertokens~="secondaryLinkWithLeftArrow"] svg {\n margin-right: 0.3em;\n}\n[data-supertokens~="secondaryLinkWithLeftArrow"]:hover svg {\n position: relative;\n left: -4px;\n}\n[data-supertokens~="button"] {\n font-family: "Arial", sans-serif;\n background-color: rgb(var(--palette-primary));\n color: rgb(var(--palette-buttonText));\n width: 100%;\n height: 34px;\n font-weight: 600;\n border-width: 1px;\n border-style: solid;\n border-radius: 6px;\n border-color: rgb(var(--palette-primaryBorder));\n background-position: center;\n transition: all 0.4s;\n background-size: 12000%;\n cursor: pointer;\n}\n[data-supertokens~="buttonGreyedOut"] {\n background-color: rgb(var(--palette-buttonGreyedOut));\n border-color: rgb(var(--palette-buttonGreyedOut));\n}\n[data-supertokens~="buttonWithIcon"] {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n}\n[data-supertokens~="button"]:disabled {\n border: none;\n cursor: no-drop;\n}\n[data-supertokens~="button"]:active {\n outline: none;\n transition: all 0s;\n background-size: 100%;\n filter: brightness(0.85);\n}\n[data-supertokens~="button"]:focus {\n outline: none;\n}\n[data-supertokens~="backButtonCommon"] {\n width: 16px;\n height: 13px;\n}\n[data-supertokens~="backButton"] {\n cursor: pointer;\n border: none;\n background-color: transparent;\n padding: 0px;\n}\n[data-supertokens~="backButtonPlaceholder"] {\n display: block;\n}\n[data-supertokens~="delayedRender"] {\n animation-duration: 0.1s;\n animation-name: animate-fade;\n animation-delay: 0.2s;\n animation-fill-mode: backwards;\n}\n@keyframes animate-fade {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n[data-supertokens~="footerLinkGroupVert"] {\n display: flex;\n flex-direction: column;\n margin-top: 10px;\n gap: 24px;\n}\n[data-supertokens~="footerLinkGroupVert"] > div {\n cursor: pointer;\n margin: 0;\n}\n[data-supertokens~="footerLinkGroupVert"] [data-supertokens~="secondaryText"] {\n font-weight: 400;\n}\n[data-supertokens~="footerLinkGroupVert"] [data-supertokens~="secondaryLinkWithLeftArrow"] {\n font-weight: 400;\n position: relative;\n left: -6px; /* half the width of the left arrow */\n}\n@media (max-width: 360px) {\n [data-supertokens~="footerLinkGroupVert"] {\n flex-direction: column;\n }\n [data-supertokens~="footerLinkGroupVert"] > div {\n margin: 0 auto;\n }\n}\n[data-supertokens~="footerLinkGroupVert"] div:only-child {\n margin-left: auto;\n margin-right: auto;\n margin-top: 14px;\n}\n[data-supertokens~="withBackButton"] {\n position: relative;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n[data-supertokens~="dividerWithOr"] {\n padding-top: 5px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n color: rgb(var(--palette-textPrimary));\n}\n[data-supertokens~="dividerText"] {\n flex: 1 1;\n font-weight: 400;\n font-size: var(--font-size-1);\n}\n[data-supertokens~="formLabelWithLinkWrapper"] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n[data-supertokens~="formLabelLinkBtn"] {\n width: auto;\n margin-top: 0;\n line-height: 24px;\n font-size: var(--font-size-0);\n}\n[data-supertokens~="formLabelLinkBtn"]:hover {\n text-decoration: underline;\n}\n[data-supertokens~="formLabelLinkBtn"]:disabled {\n color: rgb(var(--palette-textPrimary));\n cursor: default;\n text-decoration: none;\n}\n[data-supertokens~="authComponentList"] {\n padding-bottom: 20px;\n}\n[data-supertokens~="authPageTitleOAuthClient"] {\n color: rgb(var(--palette-textGray));\n font-size: var(--font-size-1);\n font-weight: 400;\n margin: 10px 0 25px;\n}\n[data-supertokens~="authPageTitleOAuthClientUrl"] {\n text-decoration: none;\n}\n[data-supertokens~="authPageTitleOAu