@funkit/connect 1.0.13 → 1.0.15
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.
- package/CHANGELOG.md +26 -0
- package/dist/{chunk-JLKS6NET.js → chunk-AF763GD5.js} +2 -1
- package/dist/{chunk-2NNNYGQA.js → chunk-I4LVVIYS.js} +2 -1
- package/dist/components/FunContainer/FunContainer.d.ts +3 -1
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +18 -2
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitSandboxContext.d.ts +3 -0
- package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +4 -0
- package/dist/components/FunkitProvider/FunkitWeb2Provider.d.ts +5 -0
- package/dist/css/sprinkles.css.d.ts +2 -0
- package/dist/index.css +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +435 -291
- package/dist/themes/darkTheme.d.ts +1 -0
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +1 -0
- package/dist/themes/lightTheme.js +1 -1
- package/dist/utils/assets.d.ts +6 -0
- package/dist/utils/formatTimestamp.d.ts +2 -1
- package/dist/utils/moonpay.d.ts +1 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +75 -75
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +3 -3
- package/dist/wallets/walletConnectors/chunk-2B3SPBRY.js +0 -100
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
- package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
- package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
- package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
- package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
- package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
- package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
- package/dist/wallets/walletConnectors/chunk-XRMAVTK7.js +0 -178
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
package/dist/index.js
CHANGED
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-SW6GAS7K.js";
|
|
5
5
|
import {
|
|
6
6
|
darkTheme
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I4LVVIYS.js";
|
|
8
8
|
import {
|
|
9
9
|
lightTheme
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AF763GD5.js";
|
|
11
11
|
import "./chunk-UK5FXGK3.js";
|
|
12
12
|
|
|
13
13
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
14
|
-
import React146, { useContext as
|
|
14
|
+
import React146, { useContext as useContext27, useEffect as useEffect32, useState as useState44 } from "react";
|
|
15
15
|
|
|
16
16
|
// src/css/sprinkles.css.ts
|
|
17
17
|
import { createMapValueFn as _51c72 } from "@vanilla-extract/sprinkles/createUtils";
|
|
@@ -21,7 +21,7 @@ var largeScreenMinWidth = 768;
|
|
|
21
21
|
var mapResponsiveValue = _51c72({ conditions: { defaultCondition: "smallScreen", conditionNames: ["smallScreen", "largeScreen"], responsiveArray: void 0 } });
|
|
22
22
|
var normalizeResponsiveValue = _a49f6({ conditions: { defaultCondition: "smallScreen", conditionNames: ["smallScreen", "largeScreen"], responsiveArray: void 0 } });
|
|
23
23
|
var sprinkles = _ad221({ conditions: { defaultCondition: "base", conditionNames: ["base", "hover", "active", "selection"], responsiveArray: void 0 }, styles: { background: { values: { accentColor: { conditions: { base: "_1rsrm2fe2", hover: "_1rsrm2fe3", active: "_1rsrm2fe4", selection: "_1rsrm2fe5" }, defaultClass: "_1rsrm2fe2" }, accentColorForeground: { conditions: { base: "_1rsrm2fe6", hover: "_1rsrm2fe7", active: "_1rsrm2fe8", selection: "_1rsrm2fe9" }, defaultClass: "_1rsrm2fe6" }, actionButtonBorder: { conditions: { base: "_1rsrm2fea", hover: "_1rsrm2feb", active: "_1rsrm2fec", selection: "_1rsrm2fed" }, defaultClass: "_1rsrm2fea" }, actionButtonBorderMobile: { conditions: { base: "_1rsrm2fee", hover: "_1rsrm2fef", active: "_1rsrm2feg", selection: "_1rsrm2feh" }, defaultClass: "_1rsrm2fee" }, actionButtonSecondaryBackground: { conditions: { base: "_1rsrm2fei", hover: "_1rsrm2fej", active: "_1rsrm2fek", selection: "_1rsrm2fel" }, defaultClass: "_1rsrm2fei" }, actionButtonDisabled: { conditions: { base: "_1rsrm2fem", hover: "_1rsrm2fen", active: "_1rsrm2feo", selection: "_1rsrm2fep" }, defaultClass: "_1rsrm2fem" }, closeButton: { conditions: { base: "_1rsrm2feq", hover: "_1rsrm2fer", active: "_1rsrm2fes", selection: "_1rsrm2fet" }, defaultClass: "_1rsrm2feq" }, closeButtonBackground: { conditions: { base: "_1rsrm2feu", hover: "_1rsrm2fev", active: "_1rsrm2few", selection: "_1rsrm2fex" }, defaultClass: "_1rsrm2feu" }, connectButtonBackground: { conditions: { base: "_1rsrm2fey", hover: "_1rsrm2fez", active: "_1rsrm2ff0", selection: "_1rsrm2ff1" }, defaultClass: "_1rsrm2fey" }, connectButtonBackgroundError: { conditions: { base: "_1rsrm2ff2", hover: "_1rsrm2ff3", active: "_1rsrm2ff4", selection: "_1rsrm2ff5" }, defaultClass: "_1rsrm2ff2" }, connectButtonInnerBackground: { conditions: { base: "_1rsrm2ff6", hover: "_1rsrm2ff7", active: "_1rsrm2ff8", selection: "_1rsrm2ff9" }, defaultClass: "_1rsrm2ff6" }, connectButtonText: { conditions: { base: "_1rsrm2ffa", hover: "_1rsrm2ffb", active: "_1rsrm2ffc", selection: "_1rsrm2ffd" }, defaultClass: "_1rsrm2ffa" }, connectButtonTextError: { conditions: { base: "_1rsrm2ffe", hover: "_1rsrm2fff", active: "_1rsrm2ffg", selection: "_1rsrm2ffh" }, defaultClass: "_1rsrm2ffe" }, connectionIndicator: { conditions: { base: "_1rsrm2ffi", hover: "_1rsrm2ffj", active: "_1rsrm2ffk", selection: "_1rsrm2ffl" }, defaultClass: "_1rsrm2ffi" }, downloadBottomCardBackground: { conditions: { base: "_1rsrm2ffm", hover: "_1rsrm2ffn", active: "_1rsrm2ffo", selection: "_1rsrm2ffp" }, defaultClass: "_1rsrm2ffm" }, downloadTopCardBackground: { conditions: { base: "_1rsrm2ffq", hover: "_1rsrm2ffr", active: "_1rsrm2ffs", selection: "_1rsrm2fft" }, defaultClass: "_1rsrm2ffq" }, error: { conditions: { base: "_1rsrm2ffu", hover: "_1rsrm2ffv", active: "_1rsrm2ffw", selection: "_1rsrm2ffx" }, defaultClass: "_1rsrm2ffu" }, generalBorder: { conditions: { base: "_1rsrm2ffy", hover: "_1rsrm2ffz", active: "_1rsrm2fg0", selection: "_1rsrm2fg1" }, defaultClass: "_1rsrm2ffy" }, generalBorderDim: { conditions: { base: "_1rsrm2fg2", hover: "_1rsrm2fg3", active: "_1rsrm2fg4", selection: "_1rsrm2fg5" }, defaultClass: "_1rsrm2fg2" }, menuItemBackground: { conditions: { base: "_1rsrm2fg6", hover: "_1rsrm2fg7", active: "_1rsrm2fg8", selection: "_1rsrm2fg9" }, defaultClass: "_1rsrm2fg6" }, modalText: { conditions: { base: "_1rsrm2fga", hover: "_1rsrm2fgb", active: "_1rsrm2fgc", selection: "_1rsrm2fgd" }, defaultClass: "_1rsrm2fga" }, modalTextDim: { conditions: { base: "_1rsrm2fge", hover: "_1rsrm2fgf", active: "_1rsrm2fgg", selection: "_1rsrm2fgh" }, defaultClass: "_1rsrm2fge" }, modalTextSecondary: { conditions: { base: "_1rsrm2fgi", hover: "_1rsrm2fgj", active: "_1rsrm2fgk", selection: "_1rsrm2fgl" }, defaultClass: "_1rsrm2fgi" }, profileAction: { conditions: { base: "_1rsrm2fgm", hover: "_1rsrm2fgn", active: "_1rsrm2fgo", selection: "_1rsrm2fgp" }, defaultClass: "_1rsrm2fgm" }, profileActionHover: { conditions: { base: "_1rsrm2fgq", hover: "_1rsrm2fgr", active: "_1rsrm2fgs", selection: "_1rsrm2fgt" }, defaultClass: "_1rsrm2fgq" }, profileForeground: { conditions: { base: "_1rsrm2fgu", hover: "_1rsrm2fgv", active: "_1rsrm2fgw", selection: "_1rsrm2fgx" }, defaultClass: "_1rsrm2fgu" }, selectedOptionBorder: { conditions: { base: "_1rsrm2fgy", hover: "_1rsrm2fgz", active: "_1rsrm2fh0", selection: "_1rsrm2fh1" }, defaultClass: "_1rsrm2fgy" }, standby: { conditions: { base: "_1rsrm2fh2", hover: "_1rsrm2fh3", active: "_1rsrm2fh4", selection: "_1rsrm2fh5" }, defaultClass: "_1rsrm2fh2" }, solidLine: { conditions: { base: "_1rsrm2fh6", hover: "_1rsrm2fh7", active: "_1rsrm2fh8", selection: "_1rsrm2fh9" }, defaultClass: "_1rsrm2fh6" }, leftTranslucentLine: { conditions: { base: "_1rsrm2fha", hover: "_1rsrm2fhb", active: "_1rsrm2fhc", selection: "_1rsrm2fhd" }, defaultClass: "_1rsrm2fha" }, rightTranslucentLine: { conditions: { base: "_1rsrm2fhe", hover: "_1rsrm2fhf", active: "_1rsrm2fhg", selection: "_1rsrm2fhh" }, defaultClass: "_1rsrm2fhe" }, loadingBase: { conditions: { base: "_1rsrm2fhi", hover: "_1rsrm2fhj", active: "_1rsrm2fhk", selection: "_1rsrm2fhl" }, defaultClass: "_1rsrm2fhi" }, loadingAccent: { conditions: { base: "_1rsrm2fhm", hover: "_1rsrm2fhn", active: "_1rsrm2fho", selection: "_1rsrm2fhp" }, defaultClass: "_1rsrm2fhm" }, modalBackdrop: { conditions: { base: "_1rsrm2fhq", hover: "_1rsrm2fhr", active: "_1rsrm2fhs", selection: "_1rsrm2fht" }, defaultClass: "_1rsrm2fhq" }, modalBackground: { conditions: { base: "_1rsrm2fhu", hover: "_1rsrm2fhv", active: "_1rsrm2fhw", selection: "_1rsrm2fhx" }, defaultClass: "_1rsrm2fhu" }, modalBorder: { conditions: { base: "_1rsrm2fhy", hover: "_1rsrm2fhz", active: "_1rsrm2fi0", selection: "_1rsrm2fi1" }, defaultClass: "_1rsrm2fhy" }, notificationPrimary: { conditions: { base: "_1rsrm2fi2", hover: "_1rsrm2fi3", active: "_1rsrm2fi4", selection: "_1rsrm2fi5" }, defaultClass: "_1rsrm2fi2" }, textPrimary: { conditions: { base: "_1rsrm2fi6", hover: "_1rsrm2fi7", active: "_1rsrm2fi8", selection: "_1rsrm2fi9" }, defaultClass: "_1rsrm2fi6" }, textSecondary: { conditions: { base: "_1rsrm2fia", hover: "_1rsrm2fib", active: "_1rsrm2fic", selection: "_1rsrm2fid" }, defaultClass: "_1rsrm2fia" }, textTertiary: { conditions: { base: "_1rsrm2fie", hover: "_1rsrm2fif", active: "_1rsrm2fig", selection: "_1rsrm2fih" }, defaultClass: "_1rsrm2fie" }, textDisabled: { conditions: { base: "_1rsrm2fii", hover: "_1rsrm2fij", active: "_1rsrm2fik", selection: "_1rsrm2fil" }, defaultClass: "_1rsrm2fii" }, textSelection: { conditions: { base: "_1rsrm2fim", hover: "_1rsrm2fin", active: "_1rsrm2fio", selection: "_1rsrm2fip" }, defaultClass: "_1rsrm2fim" }, inputFieldPrimary: { conditions: { base: "_1rsrm2fiq", hover: "_1rsrm2fir", active: "_1rsrm2fis", selection: "_1rsrm2fit" }, defaultClass: "_1rsrm2fiq" }, inputFieldPlaceholder: { conditions: { base: "_1rsrm2fiu", hover: "_1rsrm2fiv", active: "_1rsrm2fiw", selection: "_1rsrm2fix" }, defaultClass: "_1rsrm2fiu" }, inputFieldDisabled: { conditions: { base: "_1rsrm2fiy", hover: "_1rsrm2fiz", active: "_1rsrm2fj0", selection: "_1rsrm2fj1" }, defaultClass: "_1rsrm2fiy" }, strokePrimary: { conditions: { base: "_1rsrm2fj2", hover: "_1rsrm2fj3", active: "_1rsrm2fj4", selection: "_1rsrm2fj5" }, defaultClass: "_1rsrm2fj2" }, strokeSecondary: { conditions: { base: "_1rsrm2fj6", hover: "_1rsrm2fj7", active: "_1rsrm2fj8", selection: "_1rsrm2fj9" }, defaultClass: "_1rsrm2fj6" }, buttonPrimary: { conditions: { base: "_1rsrm2fja", hover: "_1rsrm2fjb", active: "_1rsrm2fjc", selection: "_1rsrm2fjd" }, defaultClass: "_1rsrm2fja" }, buttonProcessing: { conditions: { base: "_1rsrm2fje", hover: "_1rsrm2fjf", active: "_1rsrm2fjg", selection: "_1rsrm2fjh" }, defaultClass: "_1rsrm2fje" }, buttonDisabled: { conditions: { base: "_1rsrm2fji", hover: "_1rsrm2fjj", active: "_1rsrm2fjk", selection: "_1rsrm2fjl" }, defaultClass: "_1rsrm2fji" }, buttonWarning: { conditions: { base: "_1rsrm2fjm", hover: "_1rsrm2fjn", active: "_1rsrm2fjo", selection: "_1rsrm2fjp" }, defaultClass: "_1rsrm2fjm" }, buttonTextWarning: { conditions: { base: "_1rsrm2fjq", hover: "_1rsrm2fjr", active: "_1rsrm2fjs", selection: "_1rsrm2fjt" }, defaultClass: "_1rsrm2fjq" }, buttonTextPrimary: { conditions: { base: "_1rsrm2fju", hover: "_1rsrm2fjv", active: "_1rsrm2fjw", selection: "_1rsrm2fjx" }, defaultClass: "_1rsrm2fju" }, buttonTextSecondary: { conditions: { base: "_1rsrm2fjy", hover: "_1rsrm2fjz", active: "_1rsrm2fk0", selection: "_1rsrm2fk1" }, defaultClass: "_1rsrm2fjy" }, buttonTextDisabled: { conditions: { base: "_1rsrm2fk2", hover: "_1rsrm2fk3", active: "_1rsrm2fk4", selection: "_1rsrm2fk5" }, defaultClass: "_1rsrm2fk2" }, transparent: { conditions: { base: "_1rsrm2fk6", hover: "_1rsrm2fk7", active: "_1rsrm2fk8", selection: "_1rsrm2fk9" }, defaultClass: "_1rsrm2fk6" } } }, borderColor: { values: { accentColor: { conditions: { base: "_1rsrm2fka", hover: "_1rsrm2fkb", active: "_1rsrm2fkc", selection: "_1rsrm2fkd" }, defaultClass: "_1rsrm2fka" }, accentColorForeground: { conditions: { base: "_1rsrm2fke", hover: "_1rsrm2fkf", active: "_1rsrm2fkg", selection: "_1rsrm2fkh" }, defaultClass: "_1rsrm2fke" }, actionButtonBorder: { conditions: { base: "_1rsrm2fki", hover: "_1rsrm2fkj", active: "_1rsrm2fkk", selection: "_1rsrm2fkl" }, defaultClass: "_1rsrm2fki" }, actionButtonBorderMobile: { conditions: { base: "_1rsrm2fkm", hover: "_1rsrm2fkn", active: "_1rsrm2fko", selection: "_1rsrm2fkp" }, defaultClass: "_1rsrm2fkm" }, actionButtonSecondaryBackground: { conditions: { base: "_1rsrm2fkq", hover: "_1rsrm2fkr", active: "_1rsrm2fks", selection: "_1rsrm2fkt" }, defaultClass: "_1rsrm2fkq" }, actionButtonDisabled: { conditions: { base: "_1rsrm2fku", hover: "_1rsrm2fkv", active: "_1rsrm2fkw", selection: "_1rsrm2fkx" }, defaultClass: "_1rsrm2fku" }, closeButton: { conditions: { base: "_1rsrm2fky", hover: "_1rsrm2fkz", active: "_1rsrm2fl0", selection: "_1rsrm2fl1" }, defaultClass: "_1rsrm2fky" }, closeButtonBackground: { conditions: { base: "_1rsrm2fl2", hover: "_1rsrm2fl3", active: "_1rsrm2fl4", selection: "_1rsrm2fl5" }, defaultClass: "_1rsrm2fl2" }, connectButtonBackground: { conditions: { base: "_1rsrm2fl6", hover: "_1rsrm2fl7", active: "_1rsrm2fl8", selection: "_1rsrm2fl9" }, defaultClass: "_1rsrm2fl6" }, connectButtonBackgroundError: { conditions: { base: "_1rsrm2fla", hover: "_1rsrm2flb", active: "_1rsrm2flc", selection: "_1rsrm2fld" }, defaultClass: "_1rsrm2fla" }, connectButtonInnerBackground: { conditions: { base: "_1rsrm2fle", hover: "_1rsrm2flf", active: "_1rsrm2flg", selection: "_1rsrm2flh" }, defaultClass: "_1rsrm2fle" }, connectButtonText: { conditions: { base: "_1rsrm2fli", hover: "_1rsrm2flj", active: "_1rsrm2flk", selection: "_1rsrm2fll" }, defaultClass: "_1rsrm2fli" }, connectButtonTextError: { conditions: { base: "_1rsrm2flm", hover: "_1rsrm2fln", active: "_1rsrm2flo", selection: "_1rsrm2flp" }, defaultClass: "_1rsrm2flm" }, connectionIndicator: { conditions: { base: "_1rsrm2flq", hover: "_1rsrm2flr", active: "_1rsrm2fls", selection: "_1rsrm2flt" }, defaultClass: "_1rsrm2flq" }, downloadBottomCardBackground: { conditions: { base: "_1rsrm2flu", hover: "_1rsrm2flv", active: "_1rsrm2flw", selection: "_1rsrm2flx" }, defaultClass: "_1rsrm2flu" }, downloadTopCardBackground: { conditions: { base: "_1rsrm2fly", hover: "_1rsrm2flz", active: "_1rsrm2fm0", selection: "_1rsrm2fm1" }, defaultClass: "_1rsrm2fly" }, error: { conditions: { base: "_1rsrm2fm2", hover: "_1rsrm2fm3", active: "_1rsrm2fm4", selection: "_1rsrm2fm5" }, defaultClass: "_1rsrm2fm2" }, generalBorder: { conditions: { base: "_1rsrm2fm6", hover: "_1rsrm2fm7", active: "_1rsrm2fm8", selection: "_1rsrm2fm9" }, defaultClass: "_1rsrm2fm6" }, generalBorderDim: { conditions: { base: "_1rsrm2fma", hover: "_1rsrm2fmb", active: "_1rsrm2fmc", selection: "_1rsrm2fmd" }, defaultClass: "_1rsrm2fma" }, menuItemBackground: { conditions: { base: "_1rsrm2fme", hover: "_1rsrm2fmf", active: "_1rsrm2fmg", selection: "_1rsrm2fmh" }, defaultClass: "_1rsrm2fme" }, modalText: { conditions: { base: "_1rsrm2fmi", hover: "_1rsrm2fmj", active: "_1rsrm2fmk", selection: "_1rsrm2fml" }, defaultClass: "_1rsrm2fmi" }, modalTextDim: { conditions: { base: "_1rsrm2fmm", hover: "_1rsrm2fmn", active: "_1rsrm2fmo", selection: "_1rsrm2fmp" }, defaultClass: "_1rsrm2fmm" }, modalTextSecondary: { conditions: { base: "_1rsrm2fmq", hover: "_1rsrm2fmr", active: "_1rsrm2fms", selection: "_1rsrm2fmt" }, defaultClass: "_1rsrm2fmq" }, profileAction: { conditions: { base: "_1rsrm2fmu", hover: "_1rsrm2fmv", active: "_1rsrm2fmw", selection: "_1rsrm2fmx" }, defaultClass: "_1rsrm2fmu" }, profileActionHover: { conditions: { base: "_1rsrm2fmy", hover: "_1rsrm2fmz", active: "_1rsrm2fn0", selection: "_1rsrm2fn1" }, defaultClass: "_1rsrm2fmy" }, profileForeground: { conditions: { base: "_1rsrm2fn2", hover: "_1rsrm2fn3", active: "_1rsrm2fn4", selection: "_1rsrm2fn5" }, defaultClass: "_1rsrm2fn2" }, selectedOptionBorder: { conditions: { base: "_1rsrm2fn6", hover: "_1rsrm2fn7", active: "_1rsrm2fn8", selection: "_1rsrm2fn9" }, defaultClass: "_1rsrm2fn6" }, standby: { conditions: { base: "_1rsrm2fna", hover: "_1rsrm2fnb", active: "_1rsrm2fnc", selection: "_1rsrm2fnd" }, defaultClass: "_1rsrm2fna" }, solidLine: { conditions: { base: "_1rsrm2fne", hover: "_1rsrm2fnf", active: "_1rsrm2fng", selection: "_1rsrm2fnh" }, defaultClass: "_1rsrm2fne" }, leftTranslucentLine: { conditions: { base: "_1rsrm2fni", hover: "_1rsrm2fnj", active: "_1rsrm2fnk", selection: "_1rsrm2fnl" }, defaultClass: "_1rsrm2fni" }, rightTranslucentLine: { conditions: { base: "_1rsrm2fnm", hover: "_1rsrm2fnn", active: "_1rsrm2fno", selection: "_1rsrm2fnp" }, defaultClass: "_1rsrm2fnm" }, loadingBase: { conditions: { base: "_1rsrm2fnq", hover: "_1rsrm2fnr", active: "_1rsrm2fns", selection: "_1rsrm2fnt" }, defaultClass: "_1rsrm2fnq" }, loadingAccent: { conditions: { base: "_1rsrm2fnu", hover: "_1rsrm2fnv", active: "_1rsrm2fnw", selection: "_1rsrm2fnx" }, defaultClass: "_1rsrm2fnu" }, modalBackdrop: { conditions: { base: "_1rsrm2fny", hover: "_1rsrm2fnz", active: "_1rsrm2fo0", selection: "_1rsrm2fo1" }, defaultClass: "_1rsrm2fny" }, modalBackground: { conditions: { base: "_1rsrm2fo2", hover: "_1rsrm2fo3", active: "_1rsrm2fo4", selection: "_1rsrm2fo5" }, defaultClass: "_1rsrm2fo2" }, modalBorder: { conditions: { base: "_1rsrm2fo6", hover: "_1rsrm2fo7", active: "_1rsrm2fo8", selection: "_1rsrm2fo9" }, defaultClass: "_1rsrm2fo6" }, notificationPrimary: { conditions: { base: "_1rsrm2foa", hover: "_1rsrm2fob", active: "_1rsrm2foc", selection: "_1rsrm2fod" }, defaultClass: "_1rsrm2foa" }, textPrimary: { conditions: { base: "_1rsrm2foe", hover: "_1rsrm2fof", active: "_1rsrm2fog", selection: "_1rsrm2foh" }, defaultClass: "_1rsrm2foe" }, textSecondary: { conditions: { base: "_1rsrm2foi", hover: "_1rsrm2foj", active: "_1rsrm2fok", selection: "_1rsrm2fol" }, defaultClass: "_1rsrm2foi" }, textTertiary: { conditions: { base: "_1rsrm2fom", hover: "_1rsrm2fon", active: "_1rsrm2foo", selection: "_1rsrm2fop" }, defaultClass: "_1rsrm2fom" }, textDisabled: { conditions: { base: "_1rsrm2foq", hover: "_1rsrm2for", active: "_1rsrm2fos", selection: "_1rsrm2fot" }, defaultClass: "_1rsrm2foq" }, textSelection: { conditions: { base: "_1rsrm2fou", hover: "_1rsrm2fov", active: "_1rsrm2fow", selection: "_1rsrm2fox" }, defaultClass: "_1rsrm2fou" }, inputFieldPrimary: { conditions: { base: "_1rsrm2foy", hover: "_1rsrm2foz", active: "_1rsrm2fp0", selection: "_1rsrm2fp1" }, defaultClass: "_1rsrm2foy" }, inputFieldPlaceholder: { conditions: { base: "_1rsrm2fp2", hover: "_1rsrm2fp3", active: "_1rsrm2fp4", selection: "_1rsrm2fp5" }, defaultClass: "_1rsrm2fp2" }, inputFieldDisabled: { conditions: { base: "_1rsrm2fp6", hover: "_1rsrm2fp7", active: "_1rsrm2fp8", selection: "_1rsrm2fp9" }, defaultClass: "_1rsrm2fp6" }, strokePrimary: { conditions: { base: "_1rsrm2fpa", hover: "_1rsrm2fpb", active: "_1rsrm2fpc", selection: "_1rsrm2fpd" }, defaultClass: "_1rsrm2fpa" }, strokeSecondary: { conditions: { base: "_1rsrm2fpe", hover: "_1rsrm2fpf", active: "_1rsrm2fpg", selection: "_1rsrm2fph" }, defaultClass: "_1rsrm2fpe" }, buttonPrimary: { conditions: { base: "_1rsrm2fpi", hover: "_1rsrm2fpj", active: "_1rsrm2fpk", selection: "_1rsrm2fpl" }, defaultClass: "_1rsrm2fpi" }, buttonProcessing: { conditions: { base: "_1rsrm2fpm", hover: "_1rsrm2fpn", active: "_1rsrm2fpo", selection: "_1rsrm2fpp" }, defaultClass: "_1rsrm2fpm" }, buttonDisabled: { conditions: { base: "_1rsrm2fpq", hover: "_1rsrm2fpr", active: "_1rsrm2fps", selection: "_1rsrm2fpt" }, defaultClass: "_1rsrm2fpq" }, buttonWarning: { conditions: { base: "_1rsrm2fpu", hover: "_1rsrm2fpv", active: "_1rsrm2fpw", selection: "_1rsrm2fpx" }, defaultClass: "_1rsrm2fpu" }, buttonTextWarning: { conditions: { base: "_1rsrm2fpy", hover: "_1rsrm2fpz", active: "_1rsrm2fq0", selection: "_1rsrm2fq1" }, defaultClass: "_1rsrm2fpy" }, buttonTextPrimary: { conditions: { base: "_1rsrm2fq2", hover: "_1rsrm2fq3", active: "_1rsrm2fq4", selection: "_1rsrm2fq5" }, defaultClass: "_1rsrm2fq2" }, buttonTextSecondary: { conditions: { base: "_1rsrm2fq6", hover: "_1rsrm2fq7", active: "_1rsrm2fq8", selection: "_1rsrm2fq9" }, defaultClass: "_1rsrm2fq6" }, buttonTextDisabled: { conditions: { base: "_1rsrm2fqa", hover: "_1rsrm2fqb", active: "_1rsrm2fqc", selection: "_1rsrm2fqd" }, defaultClass: "_1rsrm2fqa" }, transparent: { conditions: { base: "_1rsrm2fqe", hover: "_1rsrm2fqf", active: "_1rsrm2fqg", selection: "_1rsrm2fqh" }, defaultClass: "_1rsrm2fqe" } } }, boxShadow: { values: { connectButton: { conditions: { base: "_1rsrm2fqi", hover: "_1rsrm2fqj", active: "_1rsrm2fqk", selection: "_1rsrm2fql" }, defaultClass: "_1rsrm2fqi" }, dialog: { conditions: { base: "_1rsrm2fqm", hover: "_1rsrm2fqn", active: "_1rsrm2fqo", selection: "_1rsrm2fqp" }, defaultClass: "_1rsrm2fqm" }, profileDetailsAction: { conditions: { base: "_1rsrm2fqq", hover: "_1rsrm2fqr", active: "_1rsrm2fqs", selection: "_1rsrm2fqt" }, defaultClass: "_1rsrm2fqq" }, selectedOption: { conditions: { base: "_1rsrm2fqu", hover: "_1rsrm2fqv", active: "_1rsrm2fqw", selection: "_1rsrm2fqx" }, defaultClass: "_1rsrm2fqu" }, selectedWallet: { conditions: { base: "_1rsrm2fqy", hover: "_1rsrm2fqz", active: "_1rsrm2fr0", selection: "_1rsrm2fr1" }, defaultClass: "_1rsrm2fqy" }, walletLogo: { conditions: { base: "_1rsrm2fr2", hover: "_1rsrm2fr3", active: "_1rsrm2fr4", selection: "_1rsrm2fr5" }, defaultClass: "_1rsrm2fr2" } } }, color: { values: { accentColor: { conditions: { base: "_1rsrm2fr6", hover: "_1rsrm2fr7", active: "_1rsrm2fr8", selection: "_1rsrm2fr9" }, defaultClass: "_1rsrm2fr6" }, accentColorForeground: { conditions: { base: "_1rsrm2fra", hover: "_1rsrm2frb", active: "_1rsrm2frc", selection: "_1rsrm2frd" }, defaultClass: "_1rsrm2fra" }, actionButtonBorder: { conditions: { base: "_1rsrm2fre", hover: "_1rsrm2frf", active: "_1rsrm2frg", selection: "_1rsrm2frh" }, defaultClass: "_1rsrm2fre" }, actionButtonBorderMobile: { conditions: { base: "_1rsrm2fri", hover: "_1rsrm2frj", active: "_1rsrm2frk", selection: "_1rsrm2frl" }, defaultClass: "_1rsrm2fri" }, actionButtonSecondaryBackground: { conditions: { base: "_1rsrm2frm", hover: "_1rsrm2frn", active: "_1rsrm2fro", selection: "_1rsrm2frp" }, defaultClass: "_1rsrm2frm" }, actionButtonDisabled: { conditions: { base: "_1rsrm2frq", hover: "_1rsrm2frr", active: "_1rsrm2frs", selection: "_1rsrm2frt" }, defaultClass: "_1rsrm2frq" }, closeButton: { conditions: { base: "_1rsrm2fru", hover: "_1rsrm2frv", active: "_1rsrm2frw", selection: "_1rsrm2frx" }, defaultClass: "_1rsrm2fru" }, closeButtonBackground: { conditions: { base: "_1rsrm2fry", hover: "_1rsrm2frz", active: "_1rsrm2fs0", selection: "_1rsrm2fs1" }, defaultClass: "_1rsrm2fry" }, connectButtonBackground: { conditions: { base: "_1rsrm2fs2", hover: "_1rsrm2fs3", active: "_1rsrm2fs4", selection: "_1rsrm2fs5" }, defaultClass: "_1rsrm2fs2" }, connectButtonBackgroundError: { conditions: { base: "_1rsrm2fs6", hover: "_1rsrm2fs7", active: "_1rsrm2fs8", selection: "_1rsrm2fs9" }, defaultClass: "_1rsrm2fs6" }, connectButtonInnerBackground: { conditions: { base: "_1rsrm2fsa", hover: "_1rsrm2fsb", active: "_1rsrm2fsc", selection: "_1rsrm2fsd" }, defaultClass: "_1rsrm2fsa" }, connectButtonText: { conditions: { base: "_1rsrm2fse", hover: "_1rsrm2fsf", active: "_1rsrm2fsg", selection: "_1rsrm2fsh" }, defaultClass: "_1rsrm2fse" }, connectButtonTextError: { conditions: { base: "_1rsrm2fsi", hover: "_1rsrm2fsj", active: "_1rsrm2fsk", selection: "_1rsrm2fsl" }, defaultClass: "_1rsrm2fsi" }, connectionIndicator: { conditions: { base: "_1rsrm2fsm", hover: "_1rsrm2fsn", active: "_1rsrm2fso", selection: "_1rsrm2fsp" }, defaultClass: "_1rsrm2fsm" }, downloadBottomCardBackground: { conditions: { base: "_1rsrm2fsq", hover: "_1rsrm2fsr", active: "_1rsrm2fss", selection: "_1rsrm2fst" }, defaultClass: "_1rsrm2fsq" }, downloadTopCardBackground: { conditions: { base: "_1rsrm2fsu", hover: "_1rsrm2fsv", active: "_1rsrm2fsw", selection: "_1rsrm2fsx" }, defaultClass: "_1rsrm2fsu" }, error: { conditions: { base: "_1rsrm2fsy", hover: "_1rsrm2fsz", active: "_1rsrm2ft0", selection: "_1rsrm2ft1" }, defaultClass: "_1rsrm2fsy" }, generalBorder: { conditions: { base: "_1rsrm2ft2", hover: "_1rsrm2ft3", active: "_1rsrm2ft4", selection: "_1rsrm2ft5" }, defaultClass: "_1rsrm2ft2" }, generalBorderDim: { conditions: { base: "_1rsrm2ft6", hover: "_1rsrm2ft7", active: "_1rsrm2ft8", selection: "_1rsrm2ft9" }, defaultClass: "_1rsrm2ft6" }, menuItemBackground: { conditions: { base: "_1rsrm2fta", hover: "_1rsrm2ftb", active: "_1rsrm2ftc", selection: "_1rsrm2ftd" }, defaultClass: "_1rsrm2fta" }, modalText: { conditions: { base: "_1rsrm2fte", hover: "_1rsrm2ftf", active: "_1rsrm2ftg", selection: "_1rsrm2fth" }, defaultClass: "_1rsrm2fte" }, modalTextDim: { conditions: { base: "_1rsrm2fti", hover: "_1rsrm2ftj", active: "_1rsrm2ftk", selection: "_1rsrm2ftl" }, defaultClass: "_1rsrm2fti" }, modalTextSecondary: { conditions: { base: "_1rsrm2ftm", hover: "_1rsrm2ftn", active: "_1rsrm2fto", selection: "_1rsrm2ftp" }, defaultClass: "_1rsrm2ftm" }, profileAction: { conditions: { base: "_1rsrm2ftq", hover: "_1rsrm2ftr", active: "_1rsrm2fts", selection: "_1rsrm2ftt" }, defaultClass: "_1rsrm2ftq" }, profileActionHover: { conditions: { base: "_1rsrm2ftu", hover: "_1rsrm2ftv", active: "_1rsrm2ftw", selection: "_1rsrm2ftx" }, defaultClass: "_1rsrm2ftu" }, profileForeground: { conditions: { base: "_1rsrm2fty", hover: "_1rsrm2ftz", active: "_1rsrm2fu0", selection: "_1rsrm2fu1" }, defaultClass: "_1rsrm2fty" }, selectedOptionBorder: { conditions: { base: "_1rsrm2fu2", hover: "_1rsrm2fu3", active: "_1rsrm2fu4", selection: "_1rsrm2fu5" }, defaultClass: "_1rsrm2fu2" }, standby: { conditions: { base: "_1rsrm2fu6", hover: "_1rsrm2fu7", active: "_1rsrm2fu8", selection: "_1rsrm2fu9" }, defaultClass: "_1rsrm2fu6" }, solidLine: { conditions: { base: "_1rsrm2fua", hover: "_1rsrm2fub", active: "_1rsrm2fuc", selection: "_1rsrm2fud" }, defaultClass: "_1rsrm2fua" }, leftTranslucentLine: { conditions: { base: "_1rsrm2fue", hover: "_1rsrm2fuf", active: "_1rsrm2fug", selection: "_1rsrm2fuh" }, defaultClass: "_1rsrm2fue" }, rightTranslucentLine: { conditions: { base: "_1rsrm2fui", hover: "_1rsrm2fuj", active: "_1rsrm2fuk", selection: "_1rsrm2ful" }, defaultClass: "_1rsrm2fui" }, loadingBase: { conditions: { base: "_1rsrm2fum", hover: "_1rsrm2fun", active: "_1rsrm2fuo", selection: "_1rsrm2fup" }, defaultClass: "_1rsrm2fum" }, loadingAccent: { conditions: { base: "_1rsrm2fuq", hover: "_1rsrm2fur", active: "_1rsrm2fus", selection: "_1rsrm2fut" }, defaultClass: "_1rsrm2fuq" }, modalBackdrop: { conditions: { base: "_1rsrm2fuu", hover: "_1rsrm2fuv", active: "_1rsrm2fuw", selection: "_1rsrm2fux" }, defaultClass: "_1rsrm2fuu" }, modalBackground: { conditions: { base: "_1rsrm2fuy", hover: "_1rsrm2fuz", active: "_1rsrm2fv0", selection: "_1rsrm2fv1" }, defaultClass: "_1rsrm2fuy" }, modalBorder: { conditions: { base: "_1rsrm2fv2", hover: "_1rsrm2fv3", active: "_1rsrm2fv4", selection: "_1rsrm2fv5" }, defaultClass: "_1rsrm2fv2" }, notificationPrimary: { conditions: { base: "_1rsrm2fv6", hover: "_1rsrm2fv7", active: "_1rsrm2fv8", selection: "_1rsrm2fv9" }, defaultClass: "_1rsrm2fv6" }, textPrimary: { conditions: { base: "_1rsrm2fva", hover: "_1rsrm2fvb", active: "_1rsrm2fvc", selection: "_1rsrm2fvd" }, defaultClass: "_1rsrm2fva" }, textSecondary: { conditions: { base: "_1rsrm2fve", hover: "_1rsrm2fvf", active: "_1rsrm2fvg", selection: "_1rsrm2fvh" }, defaultClass: "_1rsrm2fve" }, textTertiary: { conditions: { base: "_1rsrm2fvi", hover: "_1rsrm2fvj", active: "_1rsrm2fvk", selection: "_1rsrm2fvl" }, defaultClass: "_1rsrm2fvi" }, textDisabled: { conditions: { base: "_1rsrm2fvm", hover: "_1rsrm2fvn", active: "_1rsrm2fvo", selection: "_1rsrm2fvp" }, defaultClass: "_1rsrm2fvm" }, textSelection: { conditions: { base: "_1rsrm2fvq", hover: "_1rsrm2fvr", active: "_1rsrm2fvs", selection: "_1rsrm2fvt" }, defaultClass: "_1rsrm2fvq" }, inputFieldPrimary: { conditions: { base: "_1rsrm2fvu", hover: "_1rsrm2fvv", active: "_1rsrm2fvw", selection: "_1rsrm2fvx" }, defaultClass: "_1rsrm2fvu" }, inputFieldPlaceholder: { conditions: { base: "_1rsrm2fvy", hover: "_1rsrm2fvz", active: "_1rsrm2fw0", selection: "_1rsrm2fw1" }, defaultClass: "_1rsrm2fvy" }, inputFieldDisabled: { conditions: { base: "_1rsrm2fw2", hover: "_1rsrm2fw3", active: "_1rsrm2fw4", selection: "_1rsrm2fw5" }, defaultClass: "_1rsrm2fw2" }, strokePrimary: { conditions: { base: "_1rsrm2fw6", hover: "_1rsrm2fw7", active: "_1rsrm2fw8", selection: "_1rsrm2fw9" }, defaultClass: "_1rsrm2fw6" }, strokeSecondary: { conditions: { base: "_1rsrm2fwa", hover: "_1rsrm2fwb", active: "_1rsrm2fwc", selection: "_1rsrm2fwd" }, defaultClass: "_1rsrm2fwa" }, buttonPrimary: { conditions: { base: "_1rsrm2fwe", hover: "_1rsrm2fwf", active: "_1rsrm2fwg", selection: "_1rsrm2fwh" }, defaultClass: "_1rsrm2fwe" }, buttonProcessing: { conditions: { base: "_1rsrm2fwi", hover: "_1rsrm2fwj", active: "_1rsrm2fwk", selection: "_1rsrm2fwl" }, defaultClass: "_1rsrm2fwi" }, buttonDisabled: { conditions: { base: "_1rsrm2fwm", hover: "_1rsrm2fwn", active: "_1rsrm2fwo", selection: "_1rsrm2fwp" }, defaultClass: "_1rsrm2fwm" }, buttonWarning: { conditions: { base: "_1rsrm2fwq", hover: "_1rsrm2fwr", active: "_1rsrm2fws", selection: "_1rsrm2fwt" }, defaultClass: "_1rsrm2fwq" }, buttonTextWarning: { conditions: { base: "_1rsrm2fwu", hover: "_1rsrm2fwv", active: "_1rsrm2fww", selection: "_1rsrm2fwx" }, defaultClass: "_1rsrm2fwu" }, buttonTextPrimary: { conditions: { base: "_1rsrm2fwy", hover: "_1rsrm2fwz", active: "_1rsrm2fx0", selection: "_1rsrm2fx1" }, defaultClass: "_1rsrm2fwy" }, buttonTextSecondary: { conditions: { base: "_1rsrm2fx2", hover: "_1rsrm2fx3", active: "_1rsrm2fx4", selection: "_1rsrm2fx5" }, defaultClass: "_1rsrm2fx2" }, buttonTextDisabled: { conditions: { base: "_1rsrm2fx6", hover: "_1rsrm2fx7", active: "_1rsrm2fx8", selection: "_1rsrm2fx9" }, defaultClass: "_1rsrm2fx6" }, transparent: { conditions: { base: "_1rsrm2fxa", hover: "_1rsrm2fxb", active: "_1rsrm2fxc", selection: "_1rsrm2fxd" }, defaultClass: "_1rsrm2fxa" } } } } }, { conditions: { defaultCondition: "smallScreen", conditionNames: ["smallScreen", "largeScreen"], responsiveArray: void 0 }, styles: { alignItems: { values: { "flex-start": { conditions: { smallScreen: "_1rsrm2f0", largeScreen: "_1rsrm2f1" }, defaultClass: "_1rsrm2f0" }, "flex-end": { conditions: { smallScreen: "_1rsrm2f2", largeScreen: "_1rsrm2f3" }, defaultClass: "_1rsrm2f2" }, center: { conditions: { smallScreen: "_1rsrm2f4", largeScreen: "_1rsrm2f5" }, defaultClass: "_1rsrm2f4" } } }, display: { values: { none: { conditions: { smallScreen: "_1rsrm2f6", largeScreen: "_1rsrm2f7" }, defaultClass: "_1rsrm2f6" }, block: { conditions: { smallScreen: "_1rsrm2f8", largeScreen: "_1rsrm2f9" }, defaultClass: "_1rsrm2f8" }, flex: { conditions: { smallScreen: "_1rsrm2fa", largeScreen: "_1rsrm2fb" }, defaultClass: "_1rsrm2fa" }, inline: { conditions: { smallScreen: "_1rsrm2fc", largeScreen: "_1rsrm2fd" }, defaultClass: "_1rsrm2fc" } } } } }, { conditions: void 0, styles: { margin: { mappings: ["marginTop", "marginBottom", "marginLeft", "marginRight"] }, marginX: { mappings: ["marginLeft", "marginRight"] }, marginY: { mappings: ["marginTop", "marginBottom"] }, padding: { mappings: ["paddingTop", "paddingBottom", "paddingLeft", "paddingRight"] }, paddingX: { mappings: ["paddingLeft", "paddingRight"] }, paddingY: { mappings: ["paddingTop", "paddingBottom"] }, alignSelf: { values: { "flex-start": { defaultClass: "_1rsrm2fe" }, "flex-end": { defaultClass: "_1rsrm2ff" }, center: { defaultClass: "_1rsrm2fg" } } }, backgroundSize: { values: { cover: { defaultClass: "_1rsrm2fh" } } }, borderRadius: { values: { "1": { defaultClass: "_1rsrm2fi" }, "6": { defaultClass: "_1rsrm2fj" }, "10": { defaultClass: "_1rsrm2fk" }, "13": { defaultClass: "_1rsrm2fl" }, "16": { defaultClass: "_1rsrm2fm" }, "24": { defaultClass: "_1rsrm2fn" }, actionButton: { defaultClass: "_1rsrm2fo" }, connectButton: { defaultClass: "_1rsrm2fp" }, menuButton: { defaultClass: "_1rsrm2fq" }, modal: { defaultClass: "_1rsrm2fr" }, modalMobile: { defaultClass: "_1rsrm2fs" }, "25%": { defaultClass: "_1rsrm2ft" }, full: { defaultClass: "_1rsrm2fu" } } }, borderStyle: { values: { solid: { defaultClass: "_1rsrm2fv" }, dotted: { defaultClass: "_1rsrm2fw" }, hidden: { defaultClass: "_1rsrm2fx" } } }, borderWidth: { values: { "0": { defaultClass: "_1rsrm2fy" }, "1": { defaultClass: "_1rsrm2fz" }, "2": { defaultClass: "_1rsrm2f10" }, "4": { defaultClass: "_1rsrm2f11" }, "0.5": { defaultClass: "_1rsrm2f12" } } }, cursor: { values: { pointer: { defaultClass: "_1rsrm2f13" } } }, flexDirection: { values: { row: { defaultClass: "_1rsrm2f14" }, column: { defaultClass: "_1rsrm2f15" } } }, fontFamily: { values: { body: { defaultClass: "_1rsrm2f16" } } }, fontSize: { values: { "10": { defaultClass: "_1rsrm2f17" }, "12": { defaultClass: "_1rsrm2f18" }, "13": { defaultClass: "_1rsrm2f19" }, "14": { defaultClass: "_1rsrm2f1a" }, "16": { defaultClass: "_1rsrm2f1b" }, "18": { defaultClass: "_1rsrm2f1c" }, "20": { defaultClass: "_1rsrm2f1d" }, "23": { defaultClass: "_1rsrm2f1e" }, "57": { defaultClass: "_1rsrm2f1f" } } }, fontWeight: { values: { regular: { defaultClass: "_1rsrm2f1g" }, medium: { defaultClass: "_1rsrm2f1h" }, semibold: { defaultClass: "_1rsrm2f1i" }, bold: { defaultClass: "_1rsrm2f1j" }, heavy: { defaultClass: "_1rsrm2f1k" } } }, gap: { values: { "0": { defaultClass: "_1rsrm2f1l" }, "1": { defaultClass: "_1rsrm2f1m" }, "2": { defaultClass: "_1rsrm2f1n" }, "3": { defaultClass: "_1rsrm2f1o" }, "4": { defaultClass: "_1rsrm2f1p" }, "5": { defaultClass: "_1rsrm2f1q" }, "6": { defaultClass: "_1rsrm2f1r" }, "8": { defaultClass: "_1rsrm2f1s" }, "10": { defaultClass: "_1rsrm2f1t" }, "12": { defaultClass: "_1rsrm2f1u" }, "14": { defaultClass: "_1rsrm2f1v" }, "16": { defaultClass: "_1rsrm2f1w" }, "18": { defaultClass: "_1rsrm2f1x" }, "20": { defaultClass: "_1rsrm2f1y" }, "24": { defaultClass: "_1rsrm2f1z" }, "28": { defaultClass: "_1rsrm2f20" }, "30": { defaultClass: "_1rsrm2f21" }, "32": { defaultClass: "_1rsrm2f22" }, "36": { defaultClass: "_1rsrm2f23" }, "44": { defaultClass: "_1rsrm2f24" }, "64": { defaultClass: "_1rsrm2f25" }, "-1": { defaultClass: "_1rsrm2f26" } } }, height: { values: { "1": { defaultClass: "_1rsrm2f27" }, "2": { defaultClass: "_1rsrm2f28" }, "4": { defaultClass: "_1rsrm2f29" }, "8": { defaultClass: "_1rsrm2f2a" }, "10": { defaultClass: "_1rsrm2f2b" }, "12": { defaultClass: "_1rsrm2f2c" }, "14": { defaultClass: "_1rsrm2f2d" }, "16": { defaultClass: "_1rsrm2f2e" }, "20": { defaultClass: "_1rsrm2f2f" }, "24": { defaultClass: "_1rsrm2f2g" }, "28": { defaultClass: "_1rsrm2f2h" }, "30": { defaultClass: "_1rsrm2f2i" }, "32": { defaultClass: "_1rsrm2f2j" }, "34": { defaultClass: "_1rsrm2f2k" }, "36": { defaultClass: "_1rsrm2f2l" }, "40": { defaultClass: "_1rsrm2f2m" }, "44": { defaultClass: "_1rsrm2f2n" }, "48": { defaultClass: "_1rsrm2f2o" }, "50": { defaultClass: "_1rsrm2f2p" }, "54": { defaultClass: "_1rsrm2f2q" }, "60": { defaultClass: "_1rsrm2f2r" }, "93": { defaultClass: "_1rsrm2f2s" }, "100": { defaultClass: "_1rsrm2f2t" }, "108": { defaultClass: "_1rsrm2f2u" }, "162": { defaultClass: "_1rsrm2f2v" }, "192": { defaultClass: "_1rsrm2f2w" }, "200": { defaultClass: "_1rsrm2f2x" }, "210": { defaultClass: "_1rsrm2f2y" }, "220": { defaultClass: "_1rsrm2f2z" }, "230": { defaultClass: "_1rsrm2f30" }, "240": { defaultClass: "_1rsrm2f31" }, "256": { defaultClass: "_1rsrm2f32" }, "320": { defaultClass: "_1rsrm2f33" }, "400": { defaultClass: "_1rsrm2f34" }, "440": { defaultClass: "_1rsrm2f35" }, "600": { defaultClass: "_1rsrm2f36" }, half: { defaultClass: "_1rsrm2f37" }, full: { defaultClass: "_1rsrm2f38" }, max: { defaultClass: "_1rsrm2f39" } } }, justifyContent: { values: { "flex-start": { defaultClass: "_1rsrm2f3a" }, "flex-end": { defaultClass: "_1rsrm2f3b" }, center: { defaultClass: "_1rsrm2f3c" }, "space-between": { defaultClass: "_1rsrm2f3d" }, "space-around": { defaultClass: "_1rsrm2f3e" } } }, textAlign: { values: { left: { defaultClass: "_1rsrm2f3f" }, center: { defaultClass: "_1rsrm2f3g" }, inherit: { defaultClass: "_1rsrm2f3h" } } }, marginBottom: { values: { "0": { defaultClass: "_1rsrm2f3i" }, "1": { defaultClass: "_1rsrm2f3j" }, "2": { defaultClass: "_1rsrm2f3k" }, "3": { defaultClass: "_1rsrm2f3l" }, "4": { defaultClass: "_1rsrm2f3m" }, "5": { defaultClass: "_1rsrm2f3n" }, "6": { defaultClass: "_1rsrm2f3o" }, "8": { defaultClass: "_1rsrm2f3p" }, "10": { defaultClass: "_1rsrm2f3q" }, "12": { defaultClass: "_1rsrm2f3r" }, "14": { defaultClass: "_1rsrm2f3s" }, "16": { defaultClass: "_1rsrm2f3t" }, "18": { defaultClass: "_1rsrm2f3u" }, "20": { defaultClass: "_1rsrm2f3v" }, "24": { defaultClass: "_1rsrm2f3w" }, "28": { defaultClass: "_1rsrm2f3x" }, "30": { defaultClass: "_1rsrm2f3y" }, "32": { defaultClass: "_1rsrm2f3z" }, "36": { defaultClass: "_1rsrm2f40" }, "44": { defaultClass: "_1rsrm2f41" }, "64": { defaultClass: "_1rsrm2f42" }, "-1": { defaultClass: "_1rsrm2f43" } } }, marginLeft: { values: { "0": { defaultClass: "_1rsrm2f44" }, "1": { defaultClass: "_1rsrm2f45" }, "2": { defaultClass: "_1rsrm2f46" }, "3": { defaultClass: "_1rsrm2f47" }, "4": { defaultClass: "_1rsrm2f48" }, "5": { defaultClass: "_1rsrm2f49" }, "6": { defaultClass: "_1rsrm2f4a" }, "8": { defaultClass: "_1rsrm2f4b" }, "10": { defaultClass: "_1rsrm2f4c" }, "12": { defaultClass: "_1rsrm2f4d" }, "14": { defaultClass: "_1rsrm2f4e" }, "16": { defaultClass: "_1rsrm2f4f" }, "18": { defaultClass: "_1rsrm2f4g" }, "20": { defaultClass: "_1rsrm2f4h" }, "24": { defaultClass: "_1rsrm2f4i" }, "28": { defaultClass: "_1rsrm2f4j" }, "30": { defaultClass: "_1rsrm2f4k" }, "32": { defaultClass: "_1rsrm2f4l" }, "36": { defaultClass: "_1rsrm2f4m" }, "44": { defaultClass: "_1rsrm2f4n" }, "64": { defaultClass: "_1rsrm2f4o" }, "-1": { defaultClass: "_1rsrm2f4p" } } }, marginRight: { values: { "0": { defaultClass: "_1rsrm2f4q" }, "1": { defaultClass: "_1rsrm2f4r" }, "2": { defaultClass: "_1rsrm2f4s" }, "3": { defaultClass: "_1rsrm2f4t" }, "4": { defaultClass: "_1rsrm2f4u" }, "5": { defaultClass: "_1rsrm2f4v" }, "6": { defaultClass: "_1rsrm2f4w" }, "8": { defaultClass: "_1rsrm2f4x" }, "10": { defaultClass: "_1rsrm2f4y" }, "12": { defaultClass: "_1rsrm2f4z" }, "14": { defaultClass: "_1rsrm2f50" }, "16": { defaultClass: "_1rsrm2f51" }, "18": { defaultClass: "_1rsrm2f52" }, "20": { defaultClass: "_1rsrm2f53" }, "24": { defaultClass: "_1rsrm2f54" }, "28": { defaultClass: "_1rsrm2f55" }, "30": { defaultClass: "_1rsrm2f56" }, "32": { defaultClass: "_1rsrm2f57" }, "36": { defaultClass: "_1rsrm2f58" }, "44": { defaultClass: "_1rsrm2f59" }, "64": { defaultClass: "_1rsrm2f5a" }, "-1": { defaultClass: "_1rsrm2f5b" } } }, marginTop: { values: { "0": { defaultClass: "_1rsrm2f5c" }, "1": { defaultClass: "_1rsrm2f5d" }, "2": { defaultClass: "_1rsrm2f5e" }, "3": { defaultClass: "_1rsrm2f5f" }, "4": { defaultClass: "_1rsrm2f5g" }, "5": { defaultClass: "_1rsrm2f5h" }, "6": { defaultClass: "_1rsrm2f5i" }, "8": { defaultClass: "_1rsrm2f5j" }, "10": { defaultClass: "_1rsrm2f5k" }, "12": { defaultClass: "_1rsrm2f5l" }, "14": { defaultClass: "_1rsrm2f5m" }, "16": { defaultClass: "_1rsrm2f5n" }, "18": { defaultClass: "_1rsrm2f5o" }, "20": { defaultClass: "_1rsrm2f5p" }, "24": { defaultClass: "_1rsrm2f5q" }, "28": { defaultClass: "_1rsrm2f5r" }, "30": { defaultClass: "_1rsrm2f5s" }, "32": { defaultClass: "_1rsrm2f5t" }, "36": { defaultClass: "_1rsrm2f5u" }, "44": { defaultClass: "_1rsrm2f5v" }, "64": { defaultClass: "_1rsrm2f5w" }, "-1": { defaultClass: "_1rsrm2f5x" } } }, minHeight: { values: { "1": { defaultClass: "_1rsrm2f5y" }, "2": { defaultClass: "_1rsrm2f5z" }, "4": { defaultClass: "_1rsrm2f60" }, "8": { defaultClass: "_1rsrm2f61" }, "10": { defaultClass: "_1rsrm2f62" }, "12": { defaultClass: "_1rsrm2f63" }, "14": { defaultClass: "_1rsrm2f64" }, "16": { defaultClass: "_1rsrm2f65" }, "20": { defaultClass: "_1rsrm2f66" }, "24": { defaultClass: "_1rsrm2f67" }, "28": { defaultClass: "_1rsrm2f68" }, "30": { defaultClass: "_1rsrm2f69" }, "32": { defaultClass: "_1rsrm2f6a" }, "34": { defaultClass: "_1rsrm2f6b" }, "36": { defaultClass: "_1rsrm2f6c" }, "40": { defaultClass: "_1rsrm2f6d" }, "44": { defaultClass: "_1rsrm2f6e" }, "48": { defaultClass: "_1rsrm2f6f" }, "50": { defaultClass: "_1rsrm2f6g" }, "54": { defaultClass: "_1rsrm2f6h" }, "60": { defaultClass: "_1rsrm2f6i" }, "93": { defaultClass: "_1rsrm2f6j" }, "100": { defaultClass: "_1rsrm2f6k" }, "108": { defaultClass: "_1rsrm2f6l" }, "162": { defaultClass: "_1rsrm2f6m" }, "192": { defaultClass: "_1rsrm2f6n" }, "200": { defaultClass: "_1rsrm2f6o" }, "210": { defaultClass: "_1rsrm2f6p" }, "220": { defaultClass: "_1rsrm2f6q" }, "230": { defaultClass: "_1rsrm2f6r" }, "240": { defaultClass: "_1rsrm2f6s" }, "256": { defaultClass: "_1rsrm2f6t" }, "320": { defaultClass: "_1rsrm2f6u" }, "400": { defaultClass: "_1rsrm2f6v" }, "440": { defaultClass: "_1rsrm2f6w" }, "600": { defaultClass: "_1rsrm2f6x" }, half: { defaultClass: "_1rsrm2f6y" }, full: { defaultClass: "_1rsrm2f6z" }, max: { defaultClass: "_1rsrm2f70" } } }, maxHeight: { values: { "1": { defaultClass: "_1rsrm2f71" }, "2": { defaultClass: "_1rsrm2f72" }, "4": { defaultClass: "_1rsrm2f73" }, "8": { defaultClass: "_1rsrm2f74" }, "10": { defaultClass: "_1rsrm2f75" }, "12": { defaultClass: "_1rsrm2f76" }, "14": { defaultClass: "_1rsrm2f77" }, "16": { defaultClass: "_1rsrm2f78" }, "20": { defaultClass: "_1rsrm2f79" }, "24": { defaultClass: "_1rsrm2f7a" }, "28": { defaultClass: "_1rsrm2f7b" }, "30": { defaultClass: "_1rsrm2f7c" }, "32": { defaultClass: "_1rsrm2f7d" }, "34": { defaultClass: "_1rsrm2f7e" }, "36": { defaultClass: "_1rsrm2f7f" }, "40": { defaultClass: "_1rsrm2f7g" }, "44": { defaultClass: "_1rsrm2f7h" }, "48": { defaultClass: "_1rsrm2f7i" }, "50": { defaultClass: "_1rsrm2f7j" }, "54": { defaultClass: "_1rsrm2f7k" }, "60": { defaultClass: "_1rsrm2f7l" }, "93": { defaultClass: "_1rsrm2f7m" }, "100": { defaultClass: "_1rsrm2f7n" }, "108": { defaultClass: "_1rsrm2f7o" }, "162": { defaultClass: "_1rsrm2f7p" }, "192": { defaultClass: "_1rsrm2f7q" }, "200": { defaultClass: "_1rsrm2f7r" }, "210": { defaultClass: "_1rsrm2f7s" }, "220": { defaultClass: "_1rsrm2f7t" }, "230": { defaultClass: "_1rsrm2f7u" }, "240": { defaultClass: "_1rsrm2f7v" }, "256": { defaultClass: "_1rsrm2f7w" }, "320": { defaultClass: "_1rsrm2f7x" }, "400": { defaultClass: "_1rsrm2f7y" }, "440": { defaultClass: "_1rsrm2f7z" }, "600": { defaultClass: "_1rsrm2f80" }, half: { defaultClass: "_1rsrm2f81" }, full: { defaultClass: "_1rsrm2f82" }, max: { defaultClass: "_1rsrm2f83" } } }, maxWidth: { values: { "1": { defaultClass: "_1rsrm2f84" }, "2": { defaultClass: "_1rsrm2f85" }, "4": { defaultClass: "_1rsrm2f86" }, "8": { defaultClass: "_1rsrm2f87" }, "10": { defaultClass: "_1rsrm2f88" }, "12": { defaultClass: "_1rsrm2f89" }, "14": { defaultClass: "_1rsrm2f8a" }, "16": { defaultClass: "_1rsrm2f8b" }, "20": { defaultClass: "_1rsrm2f8c" }, "24": { defaultClass: "_1rsrm2f8d" }, "28": { defaultClass: "_1rsrm2f8e" }, "30": { defaultClass: "_1rsrm2f8f" }, "32": { defaultClass: "_1rsrm2f8g" }, "34": { defaultClass: "_1rsrm2f8h" }, "36": { defaultClass: "_1rsrm2f8i" }, "40": { defaultClass: "_1rsrm2f8j" }, "44": { defaultClass: "_1rsrm2f8k" }, "48": { defaultClass: "_1rsrm2f8l" }, "50": { defaultClass: "_1rsrm2f8m" }, "54": { defaultClass: "_1rsrm2f8n" }, "60": { defaultClass: "_1rsrm2f8o" }, "93": { defaultClass: "_1rsrm2f8p" }, "100": { defaultClass: "_1rsrm2f8q" }, "108": { defaultClass: "_1rsrm2f8r" }, "162": { defaultClass: "_1rsrm2f8s" }, "192": { defaultClass: "_1rsrm2f8t" }, "200": { defaultClass: "_1rsrm2f8u" }, "210": { defaultClass: "_1rsrm2f8v" }, "220": { defaultClass: "_1rsrm2f8w" }, "230": { defaultClass: "_1rsrm2f8x" }, "240": { defaultClass: "_1rsrm2f8y" }, "256": { defaultClass: "_1rsrm2f8z" }, "320": { defaultClass: "_1rsrm2f90" }, "400": { defaultClass: "_1rsrm2f91" }, "440": { defaultClass: "_1rsrm2f92" }, "600": { defaultClass: "_1rsrm2f93" }, half: { defaultClass: "_1rsrm2f94" }, full: { defaultClass: "_1rsrm2f95" }, max: { defaultClass: "_1rsrm2f96" } } }, minWidth: { values: { "1": { defaultClass: "_1rsrm2f97" }, "2": { defaultClass: "_1rsrm2f98" }, "4": { defaultClass: "_1rsrm2f99" }, "8": { defaultClass: "_1rsrm2f9a" }, "10": { defaultClass: "_1rsrm2f9b" }, "12": { defaultClass: "_1rsrm2f9c" }, "14": { defaultClass: "_1rsrm2f9d" }, "16": { defaultClass: "_1rsrm2f9e" }, "20": { defaultClass: "_1rsrm2f9f" }, "24": { defaultClass: "_1rsrm2f9g" }, "28": { defaultClass: "_1rsrm2f9h" }, "30": { defaultClass: "_1rsrm2f9i" }, "32": { defaultClass: "_1rsrm2f9j" }, "34": { defaultClass: "_1rsrm2f9k" }, "36": { defaultClass: "_1rsrm2f9l" }, "40": { defaultClass: "_1rsrm2f9m" }, "44": { defaultClass: "_1rsrm2f9n" }, "48": { defaultClass: "_1rsrm2f9o" }, "50": { defaultClass: "_1rsrm2f9p" }, "54": { defaultClass: "_1rsrm2f9q" }, "60": { defaultClass: "_1rsrm2f9r" }, "93": { defaultClass: "_1rsrm2f9s" }, "100": { defaultClass: "_1rsrm2f9t" }, "108": { defaultClass: "_1rsrm2f9u" }, "162": { defaultClass: "_1rsrm2f9v" }, "192": { defaultClass: "_1rsrm2f9w" }, "200": { defaultClass: "_1rsrm2f9x" }, "210": { defaultClass: "_1rsrm2f9y" }, "220": { defaultClass: "_1rsrm2f9z" }, "230": { defaultClass: "_1rsrm2fa0" }, "240": { defaultClass: "_1rsrm2fa1" }, "256": { defaultClass: "_1rsrm2fa2" }, "320": { defaultClass: "_1rsrm2fa3" }, "400": { defaultClass: "_1rsrm2fa4" }, "440": { defaultClass: "_1rsrm2fa5" }, "600": { defaultClass: "_1rsrm2fa6" }, half: { defaultClass: "_1rsrm2fa7" }, full: { defaultClass: "_1rsrm2fa8" }, max: { defaultClass: "_1rsrm2fa9" } } }, overflow: { values: { hidden: { defaultClass: "_1rsrm2faa" } } }, paddingBottom: { values: { "0": { defaultClass: "_1rsrm2fab" }, "1": { defaultClass: "_1rsrm2fac" }, "2": { defaultClass: "_1rsrm2fad" }, "3": { defaultClass: "_1rsrm2fae" }, "4": { defaultClass: "_1rsrm2faf" }, "5": { defaultClass: "_1rsrm2fag" }, "6": { defaultClass: "_1rsrm2fah" }, "8": { defaultClass: "_1rsrm2fai" }, "10": { defaultClass: "_1rsrm2faj" }, "12": { defaultClass: "_1rsrm2fak" }, "14": { defaultClass: "_1rsrm2fal" }, "16": { defaultClass: "_1rsrm2fam" }, "18": { defaultClass: "_1rsrm2fan" }, "20": { defaultClass: "_1rsrm2fao" }, "24": { defaultClass: "_1rsrm2fap" }, "28": { defaultClass: "_1rsrm2faq" }, "30": { defaultClass: "_1rsrm2far" }, "32": { defaultClass: "_1rsrm2fas" }, "36": { defaultClass: "_1rsrm2fat" }, "44": { defaultClass: "_1rsrm2fau" }, "64": { defaultClass: "_1rsrm2fav" }, "-1": { defaultClass: "_1rsrm2faw" } } }, paddingLeft: { values: { "0": { defaultClass: "_1rsrm2fax" }, "1": { defaultClass: "_1rsrm2fay" }, "2": { defaultClass: "_1rsrm2faz" }, "3": { defaultClass: "_1rsrm2fb0" }, "4": { defaultClass: "_1rsrm2fb1" }, "5": { defaultClass: "_1rsrm2fb2" }, "6": { defaultClass: "_1rsrm2fb3" }, "8": { defaultClass: "_1rsrm2fb4" }, "10": { defaultClass: "_1rsrm2fb5" }, "12": { defaultClass: "_1rsrm2fb6" }, "14": { defaultClass: "_1rsrm2fb7" }, "16": { defaultClass: "_1rsrm2fb8" }, "18": { defaultClass: "_1rsrm2fb9" }, "20": { defaultClass: "_1rsrm2fba" }, "24": { defaultClass: "_1rsrm2fbb" }, "28": { defaultClass: "_1rsrm2fbc" }, "30": { defaultClass: "_1rsrm2fbd" }, "32": { defaultClass: "_1rsrm2fbe" }, "36": { defaultClass: "_1rsrm2fbf" }, "44": { defaultClass: "_1rsrm2fbg" }, "64": { defaultClass: "_1rsrm2fbh" }, "-1": { defaultClass: "_1rsrm2fbi" } } }, paddingRight: { values: { "0": { defaultClass: "_1rsrm2fbj" }, "1": { defaultClass: "_1rsrm2fbk" }, "2": { defaultClass: "_1rsrm2fbl" }, "3": { defaultClass: "_1rsrm2fbm" }, "4": { defaultClass: "_1rsrm2fbn" }, "5": { defaultClass: "_1rsrm2fbo" }, "6": { defaultClass: "_1rsrm2fbp" }, "8": { defaultClass: "_1rsrm2fbq" }, "10": { defaultClass: "_1rsrm2fbr" }, "12": { defaultClass: "_1rsrm2fbs" }, "14": { defaultClass: "_1rsrm2fbt" }, "16": { defaultClass: "_1rsrm2fbu" }, "18": { defaultClass: "_1rsrm2fbv" }, "20": { defaultClass: "_1rsrm2fbw" }, "24": { defaultClass: "_1rsrm2fbx" }, "28": { defaultClass: "_1rsrm2fby" }, "30": { defaultClass: "_1rsrm2fbz" }, "32": { defaultClass: "_1rsrm2fc0" }, "36": { defaultClass: "_1rsrm2fc1" }, "44": { defaultClass: "_1rsrm2fc2" }, "64": { defaultClass: "_1rsrm2fc3" }, "-1": { defaultClass: "_1rsrm2fc4" } } }, paddingTop: { values: { "0": { defaultClass: "_1rsrm2fc5" }, "1": { defaultClass: "_1rsrm2fc6" }, "2": { defaultClass: "_1rsrm2fc7" }, "3": { defaultClass: "_1rsrm2fc8" }, "4": { defaultClass: "_1rsrm2fc9" }, "5": { defaultClass: "_1rsrm2fca" }, "6": { defaultClass: "_1rsrm2fcb" }, "8": { defaultClass: "_1rsrm2fcc" }, "10": { defaultClass: "_1rsrm2fcd" }, "12": { defaultClass: "_1rsrm2fce" }, "14": { defaultClass: "_1rsrm2fcf" }, "16": { defaultClass: "_1rsrm2fcg" }, "18": { defaultClass: "_1rsrm2fch" }, "20": { defaultClass: "_1rsrm2fci" }, "24": { defaultClass: "_1rsrm2fcj" }, "28": { defaultClass: "_1rsrm2fck" }, "30": { defaultClass: "_1rsrm2fcl" }, "32": { defaultClass: "_1rsrm2fcm" }, "36": { defaultClass: "_1rsrm2fcn" }, "44": { defaultClass: "_1rsrm2fco" }, "64": { defaultClass: "_1rsrm2fcp" }, "-1": { defaultClass: "_1rsrm2fcq" } } }, position: { values: { absolute: { defaultClass: "_1rsrm2fcr" }, fixed: { defaultClass: "_1rsrm2fcs" }, relative: { defaultClass: "_1rsrm2fct" } } }, right: { values: { "0": { defaultClass: "_1rsrm2fcu" } } }, transition: { values: { "default": { defaultClass: "_1rsrm2fcv" }, transform: { defaultClass: "_1rsrm2fcw" } } }, userSelect: { values: { none: { defaultClass: "_1rsrm2fcx" } } }, width: { values: { "1": { defaultClass: "_1rsrm2fcy" }, "2": { defaultClass: "_1rsrm2fcz" }, "4": { defaultClass: "_1rsrm2fd0" }, "8": { defaultClass: "_1rsrm2fd1" }, "10": { defaultClass: "_1rsrm2fd2" }, "12": { defaultClass: "_1rsrm2fd3" }, "14": { defaultClass: "_1rsrm2fd4" }, "16": { defaultClass: "_1rsrm2fd5" }, "20": { defaultClass: "_1rsrm2fd6" }, "24": { defaultClass: "_1rsrm2fd7" }, "28": { defaultClass: "_1rsrm2fd8" }, "30": { defaultClass: "_1rsrm2fd9" }, "32": { defaultClass: "_1rsrm2fda" }, "34": { defaultClass: "_1rsrm2fdb" }, "36": { defaultClass: "_1rsrm2fdc" }, "40": { defaultClass: "_1rsrm2fdd" }, "44": { defaultClass: "_1rsrm2fde" }, "48": { defaultClass: "_1rsrm2fdf" }, "50": { defaultClass: "_1rsrm2fdg" }, "54": { defaultClass: "_1rsrm2fdh" }, "60": { defaultClass: "_1rsrm2fdi" }, "93": { defaultClass: "_1rsrm2fdj" }, "100": { defaultClass: "_1rsrm2fdk" }, "108": { defaultClass: "_1rsrm2fdl" }, "162": { defaultClass: "_1rsrm2fdm" }, "192": { defaultClass: "_1rsrm2fdn" }, "200": { defaultClass: "_1rsrm2fdo" }, "210": { defaultClass: "_1rsrm2fdp" }, "220": { defaultClass: "_1rsrm2fdq" }, "230": { defaultClass: "_1rsrm2fdr" }, "240": { defaultClass: "_1rsrm2fds" }, "256": { defaultClass: "_1rsrm2fdt" }, "320": { defaultClass: "_1rsrm2fdu" }, "400": { defaultClass: "_1rsrm2fdv" }, "440": { defaultClass: "_1rsrm2fdw" }, "600": { defaultClass: "_1rsrm2fdx" }, half: { defaultClass: "_1rsrm2fdy" }, full: { defaultClass: "_1rsrm2fdz" }, max: { defaultClass: "_1rsrm2fe0" } } }, backdropFilter: { values: { modalOverlay: { defaultClass: "_1rsrm2fe1" } } } } });
|
|
24
|
-
var themeVars = { colors: { accentColor: "var(--rk-colors-accentColor)", accentColorForeground: "var(--rk-colors-accentColorForeground)", actionButtonBorder: "var(--rk-colors-actionButtonBorder)", actionButtonBorderMobile: "var(--rk-colors-actionButtonBorderMobile)", actionButtonSecondaryBackground: "var(--rk-colors-actionButtonSecondaryBackground)", actionButtonDisabled: "var(--rk-colors-actionButtonDisabled)", closeButton: "var(--rk-colors-closeButton)", closeButtonBackground: "var(--rk-colors-closeButtonBackground)", connectButtonBackground: "var(--rk-colors-connectButtonBackground)", connectButtonBackgroundError: "var(--rk-colors-connectButtonBackgroundError)", connectButtonInnerBackground: "var(--rk-colors-connectButtonInnerBackground)", connectButtonText: "var(--rk-colors-connectButtonText)", connectButtonTextError: "var(--rk-colors-connectButtonTextError)", connectionIndicator: "var(--rk-colors-connectionIndicator)", downloadBottomCardBackground: "var(--rk-colors-downloadBottomCardBackground)", downloadTopCardBackground: "var(--rk-colors-downloadTopCardBackground)", error: "var(--rk-colors-error)", generalBorder: "var(--rk-colors-generalBorder)", generalBorderDim: "var(--rk-colors-generalBorderDim)", menuItemBackground: "var(--rk-colors-menuItemBackground)", modalText: "var(--rk-colors-modalText)", modalTextDim: "var(--rk-colors-modalTextDim)", modalTextSecondary: "var(--rk-colors-modalTextSecondary)", profileAction: "var(--rk-colors-profileAction)", profileActionHover: "var(--rk-colors-profileActionHover)", profileForeground: "var(--rk-colors-profileForeground)", selectedOptionBorder: "var(--rk-colors-selectedOptionBorder)", standby: "var(--rk-colors-standby)", solidLine: "var(--rk-colors-solidLine)", leftTranslucentLine: "var(--rk-colors-leftTranslucentLine)", rightTranslucentLine: "var(--rk-colors-rightTranslucentLine)", loadingBase: "var(--rk-colors-loadingBase)", loadingAccent: "var(--rk-colors-loadingAccent)", modalBackdrop: "var(--rk-colors-modalBackdrop)", modalBackground: "var(--rk-colors-modalBackground)", modalBorder: "var(--rk-colors-modalBorder)", notificationPrimary: "var(--rk-colors-notificationPrimary)", textPrimary: "var(--rk-colors-textPrimary)", textSecondary: "var(--rk-colors-textSecondary)", textTertiary: "var(--rk-colors-textTertiary)", textDisabled: "var(--rk-colors-textDisabled)", textSelection: "var(--rk-colors-textSelection)", inputFieldPrimary: "var(--rk-colors-inputFieldPrimary)", inputFieldPlaceholder: "var(--rk-colors-inputFieldPlaceholder)", inputFieldDisabled: "var(--rk-colors-inputFieldDisabled)", strokePrimary: "var(--rk-colors-strokePrimary)", strokeSecondary: "var(--rk-colors-strokeSecondary)", buttonPrimary: "var(--rk-colors-buttonPrimary)", buttonProcessing: "var(--rk-colors-buttonProcessing)", buttonDisabled: "var(--rk-colors-buttonDisabled)", buttonWarning: "var(--rk-colors-buttonWarning)", buttonTextWarning: "var(--rk-colors-buttonTextWarning)", buttonTextPrimary: "var(--rk-colors-buttonTextPrimary)", buttonTextSecondary: "var(--rk-colors-buttonTextSecondary)", buttonTextDisabled: "var(--rk-colors-buttonTextDisabled)", transparent: "var(--rk-colors-transparent)" }, fonts: { body: "var(--rk-fonts-body)" }, radii: { actionButton: "var(--rk-radii-actionButton)", connectButton: "var(--rk-radii-connectButton)", menuButton: "var(--rk-radii-menuButton)", modal: "var(--rk-radii-modal)", modalMobile: "var(--rk-radii-modalMobile)" }, shadows: { connectButton: "var(--rk-shadows-connectButton)", dialog: "var(--rk-shadows-dialog)", profileDetailsAction: "var(--rk-shadows-profileDetailsAction)", selectedOption: "var(--rk-shadows-selectedOption)", selectedWallet: "var(--rk-shadows-selectedWallet)", walletLogo: "var(--rk-shadows-walletLogo)" }, blurs: { modalOverlay: "var(--rk-blurs-modalOverlay)" } };
|
|
24
|
+
var themeVars = { colors: { accentColor: "var(--rk-colors-accentColor)", accentColorForeground: "var(--rk-colors-accentColorForeground)", actionButtonBorder: "var(--rk-colors-actionButtonBorder)", actionButtonBorderMobile: "var(--rk-colors-actionButtonBorderMobile)", actionButtonSecondaryBackground: "var(--rk-colors-actionButtonSecondaryBackground)", actionButtonDisabled: "var(--rk-colors-actionButtonDisabled)", closeButton: "var(--rk-colors-closeButton)", closeButtonBackground: "var(--rk-colors-closeButtonBackground)", connectButtonBackground: "var(--rk-colors-connectButtonBackground)", connectButtonBackgroundError: "var(--rk-colors-connectButtonBackgroundError)", connectButtonInnerBackground: "var(--rk-colors-connectButtonInnerBackground)", connectButtonText: "var(--rk-colors-connectButtonText)", connectButtonTextError: "var(--rk-colors-connectButtonTextError)", connectionIndicator: "var(--rk-colors-connectionIndicator)", downloadBottomCardBackground: "var(--rk-colors-downloadBottomCardBackground)", downloadTopCardBackground: "var(--rk-colors-downloadTopCardBackground)", error: "var(--rk-colors-error)", generalBorder: "var(--rk-colors-generalBorder)", generalBorderDim: "var(--rk-colors-generalBorderDim)", menuItemBackground: "var(--rk-colors-menuItemBackground)", modalText: "var(--rk-colors-modalText)", modalTextDim: "var(--rk-colors-modalTextDim)", modalTextSecondary: "var(--rk-colors-modalTextSecondary)", profileAction: "var(--rk-colors-profileAction)", profileActionHover: "var(--rk-colors-profileActionHover)", profileForeground: "var(--rk-colors-profileForeground)", selectedOptionBorder: "var(--rk-colors-selectedOptionBorder)", standby: "var(--rk-colors-standby)", solidLine: "var(--rk-colors-solidLine)", leftTranslucentLine: "var(--rk-colors-leftTranslucentLine)", rightTranslucentLine: "var(--rk-colors-rightTranslucentLine)", loadingBase: "var(--rk-colors-loadingBase)", loadingAccent: "var(--rk-colors-loadingAccent)", modalBackdrop: "var(--rk-colors-modalBackdrop)", modalBackground: "var(--rk-colors-modalBackground)", modalBorder: "var(--rk-colors-modalBorder)", notificationPrimary: "var(--rk-colors-notificationPrimary)", textPrimary: "var(--rk-colors-textPrimary)", textSecondary: "var(--rk-colors-textSecondary)", textTertiary: "var(--rk-colors-textTertiary)", textDisabled: "var(--rk-colors-textDisabled)", textSelection: "var(--rk-colors-textSelection)", inputFieldPrimary: "var(--rk-colors-inputFieldPrimary)", inputFieldPlaceholder: "var(--rk-colors-inputFieldPlaceholder)", inputFieldDisabled: "var(--rk-colors-inputFieldDisabled)", strokePrimary: "var(--rk-colors-strokePrimary)", strokeSecondary: "var(--rk-colors-strokeSecondary)", buttonPrimary: "var(--rk-colors-buttonPrimary)", buttonProcessing: "var(--rk-colors-buttonProcessing)", buttonDisabled: "var(--rk-colors-buttonDisabled)", buttonWarning: "var(--rk-colors-buttonWarning)", buttonTextWarning: "var(--rk-colors-buttonTextWarning)", buttonTextPrimary: "var(--rk-colors-buttonTextPrimary)", buttonTextSecondary: "var(--rk-colors-buttonTextSecondary)", buttonTextDisabled: "var(--rk-colors-buttonTextDisabled)", transparent: "var(--rk-colors-transparent)" }, fonts: { body: "var(--rk-fonts-body)" }, radii: { actionButton: "var(--rk-radii-actionButton)", connectButton: "var(--rk-radii-connectButton)", menuButton: "var(--rk-radii-menuButton)", modal: "var(--rk-radii-modal)", modalMobile: "var(--rk-radii-modalMobile)" }, shadows: { connectButton: "var(--rk-shadows-connectButton)", dialog: "var(--rk-shadows-dialog)", profileDetailsAction: "var(--rk-shadows-profileDetailsAction)", selectedOption: "var(--rk-shadows-selectedOption)", selectedWallet: "var(--rk-shadows-selectedWallet)", walletLogo: "var(--rk-shadows-walletLogo)" }, blurs: { modalOverlay: "var(--rk-blurs-modalOverlay)" }, moonpayTheme: "var(--rk-moonpayTheme)" };
|
|
25
25
|
|
|
26
26
|
// src/css/touchableStyles.css.ts
|
|
27
27
|
var active = { shrink: "_7rkubb8", shrinkSm: "_7rkubb9" };
|
|
@@ -132,9 +132,9 @@ import PrivyJS, {
|
|
|
132
132
|
LocalStorage
|
|
133
133
|
} from "@privy-io/js-sdk-core";
|
|
134
134
|
import React141, {
|
|
135
|
-
createContext as
|
|
135
|
+
createContext as createContext17,
|
|
136
136
|
useCallback as useCallback27,
|
|
137
|
-
useContext as
|
|
137
|
+
useContext as useContext23,
|
|
138
138
|
useEffect as useEffect28,
|
|
139
139
|
useMemo as useMemo33,
|
|
140
140
|
useState as useState39
|
|
@@ -483,9 +483,9 @@ var useFunkitConnectChainsById = () => {
|
|
|
483
483
|
|
|
484
484
|
// src/components/FunkitProvider/ModalContext.tsx
|
|
485
485
|
import React140, {
|
|
486
|
-
createContext as
|
|
486
|
+
createContext as createContext16,
|
|
487
487
|
useCallback as useCallback26,
|
|
488
|
-
useContext as
|
|
488
|
+
useContext as useContext22,
|
|
489
489
|
useEffect as useEffect27,
|
|
490
490
|
useMemo as useMemo32,
|
|
491
491
|
useState as useState38
|
|
@@ -567,20 +567,90 @@ var Box = React3.forwardRef(
|
|
|
567
567
|
);
|
|
568
568
|
Box.displayName = "Box";
|
|
569
569
|
|
|
570
|
+
// src/components/FunkitProvider/FunkitConfigContext.tsx
|
|
571
|
+
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
572
|
+
var DEFAULT_TEXT_CUSTOMIZATIONS = {
|
|
573
|
+
selectPaymentMethod: "Select Payment Method",
|
|
574
|
+
brokerageOrExchange: "Brokerage or Exchange",
|
|
575
|
+
debitOrCredit: "Debit or Credit",
|
|
576
|
+
accountBalance: "Wallet Balance",
|
|
577
|
+
transferCrypto: "Transfer Crypto",
|
|
578
|
+
selectAccount: "Select Account",
|
|
579
|
+
payWith: "Pay With",
|
|
580
|
+
enterPaymentInfo: "Enter Payment Information"
|
|
581
|
+
};
|
|
582
|
+
var DEFAULT_FUNKIT_CONFIG = {
|
|
583
|
+
apiKey: "",
|
|
584
|
+
privyAppId: "",
|
|
585
|
+
appName: "",
|
|
586
|
+
appLogoSrc: "https://media.licdn.com/dms/image/D560BAQG0hO3xnlKy7Q/company-logo_200_200/0/1664326073952/funxyz_logo?e=2147483647&v=beta&t=MaS4CK29tMHkN3GSFqKWCb1DubIE-kBDYYfoiQJSed8",
|
|
587
|
+
appLogoBackgroundColor: "transparent",
|
|
588
|
+
allowBackgroundScroll: false,
|
|
589
|
+
textCustomizations: DEFAULT_TEXT_CUSTOMIZATIONS,
|
|
590
|
+
loginModalConfig: {
|
|
591
|
+
web2: false,
|
|
592
|
+
web3: false,
|
|
593
|
+
prioritizeWeb2Logins: true,
|
|
594
|
+
web2OauthLogins: {
|
|
595
|
+
["google_oauth" /* GOOGLE */]: false,
|
|
596
|
+
["twitter_oauth" /* TWITTER */]: false,
|
|
597
|
+
["apple_oauth" /* APPLE */]: false
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
accountModalConfig: { allowDepositing: false },
|
|
601
|
+
paymentsConfig: {
|
|
602
|
+
allowBrokerageUnlinking: false,
|
|
603
|
+
defaultPaymentMethod: void 0,
|
|
604
|
+
paymentTitleMaxWidth: "240"
|
|
605
|
+
},
|
|
606
|
+
termsFontSize: 12
|
|
607
|
+
};
|
|
608
|
+
var FunkitConfigContext = createContext3(
|
|
609
|
+
DEFAULT_FUNKIT_CONFIG
|
|
610
|
+
);
|
|
611
|
+
function useFunkitConfig() {
|
|
612
|
+
const originalFunkitConfig = useContext3(FunkitConfigContext);
|
|
613
|
+
const finalFunkitConfig = {
|
|
614
|
+
...DEFAULT_FUNKIT_CONFIG,
|
|
615
|
+
...originalFunkitConfig,
|
|
616
|
+
loginModalConfig: {
|
|
617
|
+
...DEFAULT_FUNKIT_CONFIG.loginModalConfig,
|
|
618
|
+
...originalFunkitConfig.loginModalConfig || {},
|
|
619
|
+
web2OauthLogins: {
|
|
620
|
+
...DEFAULT_FUNKIT_CONFIG.loginModalConfig.web2OauthLogins,
|
|
621
|
+
...originalFunkitConfig.loginModalConfig.web2OauthLogins || {}
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
accountModalConfig: {
|
|
625
|
+
...DEFAULT_FUNKIT_CONFIG.accountModalConfig,
|
|
626
|
+
...originalFunkitConfig.accountModalConfig || {}
|
|
627
|
+
},
|
|
628
|
+
paymentsConfig: {
|
|
629
|
+
...DEFAULT_FUNKIT_CONFIG.paymentsConfig,
|
|
630
|
+
...originalFunkitConfig.paymentsConfig || {}
|
|
631
|
+
},
|
|
632
|
+
textCustomizations: {
|
|
633
|
+
...DEFAULT_FUNKIT_CONFIG.textCustomizations,
|
|
634
|
+
...originalFunkitConfig.textCustomizations || {}
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
return finalFunkitConfig;
|
|
638
|
+
}
|
|
639
|
+
|
|
570
640
|
// src/components/FunkitProvider/FunkitThemeProvider.tsx
|
|
571
|
-
import React4, { createContext as
|
|
641
|
+
import React4, { createContext as createContext4, useContext as useContext4, useEffect as useEffect2, useState as useState2 } from "react";
|
|
572
642
|
var defaultTheme = darkTheme();
|
|
573
643
|
var defaultLightTheme = lightTheme();
|
|
574
|
-
var ThemeIdContext =
|
|
644
|
+
var ThemeIdContext = createContext4(void 0);
|
|
575
645
|
var attr = "data-rk";
|
|
576
646
|
var createThemeRootProps = (id) => ({
|
|
577
647
|
[attr]: id || ""
|
|
578
648
|
});
|
|
579
649
|
var useThemeRootProps = () => {
|
|
580
|
-
const id =
|
|
650
|
+
const id = useContext4(ThemeIdContext);
|
|
581
651
|
return createThemeRootProps(id);
|
|
582
652
|
};
|
|
583
|
-
var ThemeContext =
|
|
653
|
+
var ThemeContext = createContext4({
|
|
584
654
|
active: defaultTheme,
|
|
585
655
|
lightMode: void 0,
|
|
586
656
|
darkMode: void 0,
|
|
@@ -592,7 +662,7 @@ var ThemeContext = createContext3({
|
|
|
592
662
|
}
|
|
593
663
|
});
|
|
594
664
|
var useActiveTheme = () => {
|
|
595
|
-
const { active: active2, setActive, lightMode, darkMode, toggleTheme } =
|
|
665
|
+
const { active: active2, setActive, lightMode, darkMode, toggleTheme } = useContext4(ThemeContext);
|
|
596
666
|
return {
|
|
597
667
|
active: active2,
|
|
598
668
|
setTheme: setActive,
|
|
@@ -733,6 +803,7 @@ function Dialog({
|
|
|
733
803
|
isHidden = false,
|
|
734
804
|
isSmartCloseable = false
|
|
735
805
|
}) {
|
|
806
|
+
const { allowBackgroundScroll } = useFunkitConfig();
|
|
736
807
|
useEffect4(() => {
|
|
737
808
|
const handleEscape = (event) => open && event.key === "Escape" && onClose();
|
|
738
809
|
if (isSmartCloseable) {
|
|
@@ -744,12 +815,6 @@ function Dialog({
|
|
|
744
815
|
() => isSmartCloseable ? onClose() : () => void 0,
|
|
745
816
|
[isSmartCloseable, onClose]
|
|
746
817
|
);
|
|
747
|
-
const [bodyScrollable, setBodyScrollable] = useState3(true);
|
|
748
|
-
useEffect4(() => {
|
|
749
|
-
setBodyScrollable(
|
|
750
|
-
getComputedStyle(window.document.body).overflow !== "hidden"
|
|
751
|
-
);
|
|
752
|
-
}, []);
|
|
753
818
|
const themeRootProps = useThemeRootProps();
|
|
754
819
|
const mobile = isMobile();
|
|
755
820
|
const [isOpen, setIsOpen] = useState3(open);
|
|
@@ -764,7 +829,7 @@ function Dialog({
|
|
|
764
829
|
}, [open]);
|
|
765
830
|
return /* @__PURE__ */ React6.createElement(React6.Fragment, null, isOpen ? createPortal(
|
|
766
831
|
/* @__PURE__ */ React6.createElement(RemoveScroll, {
|
|
767
|
-
enabled:
|
|
832
|
+
enabled: !allowBackgroundScroll
|
|
768
833
|
}, /* @__PURE__ */ React6.createElement(Box, {
|
|
769
834
|
...themeRootProps,
|
|
770
835
|
style: { display: isHidden ? "none" : void 0 }
|
|
@@ -787,18 +852,18 @@ function Dialog({
|
|
|
787
852
|
}
|
|
788
853
|
|
|
789
854
|
// src/components/Dialog/DialogContent.tsx
|
|
790
|
-
import React16, { useContext as
|
|
855
|
+
import React16, { useContext as useContext7 } from "react";
|
|
791
856
|
|
|
792
857
|
// src/components/FunkitProvider/FunToastProvider.tsx
|
|
793
|
-
import React7, { createContext as
|
|
794
|
-
var FunToastContext =
|
|
858
|
+
import React7, { createContext as createContext5, useCallback as useCallback4, useContext as useContext5, useState as useState4 } from "react";
|
|
859
|
+
var FunToastContext = createContext5({
|
|
795
860
|
toastContent: null,
|
|
796
861
|
showToast: () => void 0,
|
|
797
862
|
hideToast: () => void 0,
|
|
798
863
|
closing: false
|
|
799
864
|
});
|
|
800
865
|
function useFunToast() {
|
|
801
|
-
return
|
|
866
|
+
return useContext5(FunToastContext);
|
|
802
867
|
}
|
|
803
868
|
function FunToastProvider({ children }) {
|
|
804
869
|
const [toastContent, setToastContent] = useState4(null);
|
|
@@ -827,7 +892,7 @@ function FunToastProvider({ children }) {
|
|
|
827
892
|
}
|
|
828
893
|
|
|
829
894
|
// src/components/FunkitProvider/ModalSizeContext.tsx
|
|
830
|
-
import React9, { createContext as
|
|
895
|
+
import React9, { createContext as createContext7, useContext as useContext6 } from "react";
|
|
831
896
|
|
|
832
897
|
// src/hooks/useWindowSize.ts
|
|
833
898
|
import { useEffect as useEffect5, useState as useState5 } from "react";
|
|
@@ -867,8 +932,8 @@ var useWindowSize = () => {
|
|
|
867
932
|
};
|
|
868
933
|
|
|
869
934
|
// src/components/FunkitProvider/WalletButtonContext.tsx
|
|
870
|
-
import React8, { createContext as
|
|
871
|
-
var WalletButtonContext =
|
|
935
|
+
import React8, { createContext as createContext6, useMemo as useMemo3, useState as useState6 } from "react";
|
|
936
|
+
var WalletButtonContext = createContext6({
|
|
872
937
|
connector: null,
|
|
873
938
|
setConnector: () => void 0
|
|
874
939
|
});
|
|
@@ -890,14 +955,14 @@ var ModalSizeOptions = {
|
|
|
890
955
|
COMPACT: "compact",
|
|
891
956
|
WIDE: "wide"
|
|
892
957
|
};
|
|
893
|
-
var ModalSizeContext =
|
|
958
|
+
var ModalSizeContext = createContext7(ModalSizeOptions.WIDE);
|
|
894
959
|
function ModalSizeProvider({
|
|
895
960
|
children,
|
|
896
961
|
modalSize
|
|
897
962
|
}) {
|
|
898
963
|
const { width } = useWindowSize();
|
|
899
964
|
const isSmallScreen = width && width < largeScreenMinWidth;
|
|
900
|
-
const { connector } =
|
|
965
|
+
const { connector } = useContext6(WalletButtonContext);
|
|
901
966
|
return /* @__PURE__ */ React9.createElement(ModalSizeContext.Provider, {
|
|
902
967
|
value: isSmallScreen || connector ? ModalSizeOptions.COMPACT : modalSize
|
|
903
968
|
}, children);
|
|
@@ -1141,7 +1206,7 @@ function DialogContent({
|
|
|
1141
1206
|
wide = false
|
|
1142
1207
|
}) {
|
|
1143
1208
|
const mobile = isMobile();
|
|
1144
|
-
const modalSize =
|
|
1209
|
+
const modalSize = useContext7(ModalSizeContext);
|
|
1145
1210
|
const { toastContent, closing } = useFunToast();
|
|
1146
1211
|
const compactModeEnabled = modalSize === ModalSizeOptions.COMPACT;
|
|
1147
1212
|
return /* @__PURE__ */ React16.createElement(Box, {
|
|
@@ -1165,9 +1230,9 @@ function DialogContent({
|
|
|
1165
1230
|
// src/components/FunkitProvider/GeneralWalletProvider.tsx
|
|
1166
1231
|
import { Auth, FunWallet, getAssetsByWalletAddress } from "@funkit/core";
|
|
1167
1232
|
import React18, {
|
|
1168
|
-
createContext as
|
|
1233
|
+
createContext as createContext8,
|
|
1169
1234
|
useCallback as useCallback5,
|
|
1170
|
-
useContext as
|
|
1235
|
+
useContext as useContext8,
|
|
1171
1236
|
useEffect as useEffect6,
|
|
1172
1237
|
useMemo as useMemo5,
|
|
1173
1238
|
useRef as useRef2,
|
|
@@ -1176,11 +1241,6 @@ import React18, {
|
|
|
1176
1241
|
import { useAccount as useAccount2, useDisconnect } from "wagmi";
|
|
1177
1242
|
|
|
1178
1243
|
// src/consts/payment.ts
|
|
1179
|
-
var PaymentFlow = /* @__PURE__ */ ((PaymentFlow2) => {
|
|
1180
|
-
PaymentFlow2[PaymentFlow2["DEPOSIT"] = 0] = "DEPOSIT";
|
|
1181
|
-
PaymentFlow2[PaymentFlow2["CHECKOUT"] = 1] = "CHECKOUT";
|
|
1182
|
-
return PaymentFlow2;
|
|
1183
|
-
})(PaymentFlow || {});
|
|
1184
1244
|
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
1185
1245
|
PaymentMethod2["CARD"] = "card";
|
|
1186
1246
|
PaymentMethod2["TRANSFER"] = "transfer";
|
|
@@ -1226,7 +1286,33 @@ function useSymbolRefresh() {
|
|
|
1226
1286
|
var useSymbolRefresh_default = useSymbolRefresh;
|
|
1227
1287
|
|
|
1228
1288
|
// src/utils/assets.ts
|
|
1289
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO } from "@funkit/core";
|
|
1229
1290
|
import { formatUnits } from "viem";
|
|
1291
|
+
|
|
1292
|
+
// src/hooks/useCheckoutType.ts
|
|
1293
|
+
function getCheckoutType(checkoutItem) {
|
|
1294
|
+
var _a;
|
|
1295
|
+
if (!checkoutItem) {
|
|
1296
|
+
return {
|
|
1297
|
+
isCheckoutCrFlow: false,
|
|
1298
|
+
isCheckoutDirectCrFlow: false,
|
|
1299
|
+
isCheckoutPostActionRequired: false
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
const isCheckoutCrFlow = !!checkoutItem.initSettings.config.customRecipient;
|
|
1303
|
+
const isCheckoutDirectCrFlow = isCheckoutCrFlow && checkoutItem.selectedSourceAssetInfo.chainId === checkoutItem.initSettings.config.targetChain && ((_a = checkoutItem.selectedSourceAssetInfo.address) == null ? void 0 : _a.toLowerCase()) === checkoutItem.initSettings.config.targetAsset.toLowerCase();
|
|
1304
|
+
const isCheckoutPostActionRequired = !!checkoutItem.initSettings.config.actionsParams.length;
|
|
1305
|
+
return {
|
|
1306
|
+
isCheckoutCrFlow,
|
|
1307
|
+
isCheckoutDirectCrFlow,
|
|
1308
|
+
isCheckoutPostActionRequired
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
function useCheckoutType(checkoutItem) {
|
|
1312
|
+
return getCheckoutType(checkoutItem);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
// src/utils/assets.ts
|
|
1230
1316
|
function combineChainSymbolOrAddress({
|
|
1231
1317
|
chainId,
|
|
1232
1318
|
symbolOrAddress
|
|
@@ -1238,6 +1324,16 @@ function combineChainSymbolOrAddress({
|
|
|
1238
1324
|
var getNormalizedTokenBalance = (tokenBalance, decimals) => {
|
|
1239
1325
|
return Number(formatUnits(BigInt(tokenBalance), decimals));
|
|
1240
1326
|
};
|
|
1327
|
+
var isAssetUsableToPayForCheckout = (checkoutItem, paymentMethod, assetChainId, assetTokenAddress) => {
|
|
1328
|
+
const { isCheckoutPostActionRequired } = getCheckoutType(checkoutItem);
|
|
1329
|
+
const isSameAsPurchasingToken = !isCheckoutPostActionRequired && paymentMethod === "balance" /* ACCOUNT_BALANCE */ && checkoutItem.initSettings.config.targetChain === assetChainId && checkoutItem.initSettings.config.targetAsset.toLowerCase() === assetTokenAddress.toLowerCase();
|
|
1330
|
+
const isPickedChainSupportedForCheckout = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO[assetChainId].isCheckoutSupported;
|
|
1331
|
+
const isUsable = !isSameAsPurchasingToken && isPickedChainSupportedForCheckout;
|
|
1332
|
+
return {
|
|
1333
|
+
isUsable,
|
|
1334
|
+
reason: isUsable ? "" : isSameAsPurchasingToken ? "Not Applicable" : !isPickedChainSupportedForCheckout ? "Unsupported" : ""
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1241
1337
|
|
|
1242
1338
|
// src/components/ConnectButton/formatAddress.ts
|
|
1243
1339
|
function formatAddress(address) {
|
|
@@ -1331,7 +1427,7 @@ var WalletDecoratedIcon = () => {
|
|
|
1331
1427
|
|
|
1332
1428
|
// src/components/FunkitProvider/GeneralWalletProvider.tsx
|
|
1333
1429
|
var FETCH_ASSETS_INTERVAL_MS = 5e3;
|
|
1334
|
-
var GeneralWalletContext =
|
|
1430
|
+
var GeneralWalletContext = createContext8({
|
|
1335
1431
|
walletAddress: "",
|
|
1336
1432
|
accountBalancePaymentDefaultInfo: null,
|
|
1337
1433
|
isUserLoggedIn: false,
|
|
@@ -1524,11 +1620,11 @@ function GeneralWalletProvider({ children }) {
|
|
|
1524
1620
|
}, children);
|
|
1525
1621
|
}
|
|
1526
1622
|
var useGeneralWallet = () => {
|
|
1527
|
-
return
|
|
1623
|
+
return useContext8(GeneralWalletContext);
|
|
1528
1624
|
};
|
|
1529
1625
|
var useFunkitDisconnect = () => {
|
|
1530
1626
|
const disconnectReturn = useDisconnect();
|
|
1531
|
-
const { handleLogout } =
|
|
1627
|
+
const { handleLogout } = useContext8(GeneralWalletContext);
|
|
1532
1628
|
return {
|
|
1533
1629
|
...disconnectReturn,
|
|
1534
1630
|
disconnect: handleLogout,
|
|
@@ -1561,7 +1657,7 @@ import {
|
|
|
1561
1657
|
addOwnerTxParams,
|
|
1562
1658
|
Chain,
|
|
1563
1659
|
ContractInterface,
|
|
1564
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
1660
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO4,
|
|
1565
1661
|
getAssetPriceInfoForCheckout as getAssetPriceInfoForCheckout2,
|
|
1566
1662
|
getCheckoutByDepositAddress,
|
|
1567
1663
|
getCheckoutQuote as getApiCheckoutQuote,
|
|
@@ -1638,36 +1734,13 @@ function generateQuoteApiErrorForDisplay(errorMessage = "") {
|
|
|
1638
1734
|
return (foundItem == null ? void 0 : foundItem.display) || "";
|
|
1639
1735
|
}
|
|
1640
1736
|
|
|
1641
|
-
// src/hooks/useCheckoutType.ts
|
|
1642
|
-
function getCheckoutType(checkoutItem) {
|
|
1643
|
-
var _a;
|
|
1644
|
-
if (!checkoutItem) {
|
|
1645
|
-
return {
|
|
1646
|
-
isCheckoutCrFlow: false,
|
|
1647
|
-
isCheckoutDirectCrFlow: false,
|
|
1648
|
-
isCheckoutPostActionRequired: false
|
|
1649
|
-
};
|
|
1650
|
-
}
|
|
1651
|
-
const isCheckoutCrFlow = !!checkoutItem.initSettings.config.customRecipient;
|
|
1652
|
-
const isCheckoutDirectCrFlow = isCheckoutCrFlow && checkoutItem.selectedSourceAssetInfo.chainId === checkoutItem.initSettings.config.targetChain && ((_a = checkoutItem.selectedSourceAssetInfo.address) == null ? void 0 : _a.toLowerCase()) === checkoutItem.initSettings.config.targetAsset.toLowerCase();
|
|
1653
|
-
const isCheckoutPostActionRequired = !!checkoutItem.initSettings.config.actionsParams.length;
|
|
1654
|
-
return {
|
|
1655
|
-
isCheckoutCrFlow,
|
|
1656
|
-
isCheckoutDirectCrFlow,
|
|
1657
|
-
isCheckoutPostActionRequired
|
|
1658
|
-
};
|
|
1659
|
-
}
|
|
1660
|
-
function useCheckoutType(checkoutItem) {
|
|
1661
|
-
return getCheckoutType(checkoutItem);
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
1737
|
// src/utils/checkout.ts
|
|
1665
1738
|
import {
|
|
1666
1739
|
CHECKOUT_SPONSOR_SUPPORT_CHAINS,
|
|
1667
1740
|
CheckoutState as CheckoutState2,
|
|
1668
1741
|
CONTRACT_ADDRESSES,
|
|
1669
1742
|
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS2,
|
|
1670
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO,
|
|
1743
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO2,
|
|
1671
1744
|
getAssetPriceInfoForCheckout,
|
|
1672
1745
|
getEnvOptions,
|
|
1673
1746
|
getTokenInfo
|
|
@@ -1895,7 +1968,7 @@ function validateCheckoutConfig(config, isUserLoggedIn) {
|
|
|
1895
1968
|
message: "Invalid actionsParams configuration: Has to be an array. If no actions are required, please specify an empty array ([]) instead."
|
|
1896
1969
|
};
|
|
1897
1970
|
}
|
|
1898
|
-
if (!
|
|
1971
|
+
if (!FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO2[config.targetChain]) {
|
|
1899
1972
|
return {
|
|
1900
1973
|
isValid: false,
|
|
1901
1974
|
message: `Invalid targetChain configuration: Unsupported chain id ${config.targetChain} for checkout.`
|
|
@@ -1990,14 +2063,14 @@ async function decorateTokenList(tokensChainMap, targetChainId) {
|
|
|
1990
2063
|
pickedChainId = chainMapKeys[0];
|
|
1991
2064
|
const priorityIndex = Number.MAX_SAFE_INTEGER;
|
|
1992
2065
|
chainMapKeys.forEach((curChainId) => {
|
|
1993
|
-
const pickPriority =
|
|
2066
|
+
const pickPriority = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO2[curChainId].pickPriority;
|
|
1994
2067
|
if (pickPriority < priorityIndex) {
|
|
1995
2068
|
pickedChainId = curChainId;
|
|
1996
2069
|
}
|
|
1997
2070
|
});
|
|
1998
2071
|
}
|
|
1999
2072
|
let tokenAddressForCheckout = null;
|
|
2000
|
-
if (((_d = (_c = (_b = (_a =
|
|
2073
|
+
if (((_d = (_c = (_b = (_a = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO2) == null ? void 0 : _a[pickedChainId]) == null ? void 0 : _b.nativeCurrency) == null ? void 0 : _c.symbol) == null ? void 0 : _d.toUpperCase()) === tokenTicker.toUpperCase()) {
|
|
2001
2074
|
tokenAddressForCheckout = FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS2;
|
|
2002
2075
|
}
|
|
2003
2076
|
let erc20TokenAddress = null;
|
|
@@ -2076,10 +2149,10 @@ function combineChainSymbolOrAddress2({
|
|
|
2076
2149
|
var GAS_ESTIMATE_MULTIPLER = 1.2;
|
|
2077
2150
|
|
|
2078
2151
|
// src/utils/moonpay.ts
|
|
2079
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
2152
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO3 } from "@funkit/core";
|
|
2080
2153
|
var generateMoonpayCurrencyCode = (tokenSymbol, chainId) => {
|
|
2081
2154
|
var _a, _b;
|
|
2082
|
-
let moonpayChainName = (_b = (_a =
|
|
2155
|
+
let moonpayChainName = (_b = (_a = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO3) == null ? void 0 : _a[chainId]) == null ? void 0 : _b.moonpayChainName;
|
|
2083
2156
|
if (moonpayChainName == null) {
|
|
2084
2157
|
throw new Error("Moonpay not supported on testnets");
|
|
2085
2158
|
}
|
|
@@ -2089,59 +2162,21 @@ var generateMoonpayCurrencyCode = (tokenSymbol, chainId) => {
|
|
|
2089
2162
|
const mpCurrencyCode = `${tokenSymbol}${moonpayChainName}`.toLowerCase();
|
|
2090
2163
|
return mpCurrencyCode;
|
|
2091
2164
|
};
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
selectAccount: "Select Account",
|
|
2102
|
-
payWith: "Pay With",
|
|
2103
|
-
enterPaymentInfo: "Enter Payment Information"
|
|
2104
|
-
};
|
|
2105
|
-
var DEFAULT_FUNKIT_CONFIG = {
|
|
2106
|
-
apiKey: "",
|
|
2107
|
-
privyAppId: "",
|
|
2108
|
-
appName: "",
|
|
2109
|
-
appLogoSrc: "",
|
|
2110
|
-
textCustomizations: DEFAULT_TEXT_CUSTOMIZATIONS,
|
|
2111
|
-
loginModalConfig: { web2: false, web3: false, prioritizeWeb2Logins: true },
|
|
2112
|
-
accountModalConfig: { enableDepositing: false },
|
|
2113
|
-
paymentsConfig: {
|
|
2114
|
-
allowBrokerageUnlinking: false,
|
|
2115
|
-
defaultPaymentMethod: void 0,
|
|
2116
|
-
paymentTitleMaxWidth: "240"
|
|
2165
|
+
function colorToHex(color) {
|
|
2166
|
+
let hexColor = color;
|
|
2167
|
+
const rgbMatch = color.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
2168
|
+
if (rgbMatch) {
|
|
2169
|
+
const [, r, g, b] = rgbMatch.map(Number);
|
|
2170
|
+
const rHex = r.toString(16).padStart(2, "0");
|
|
2171
|
+
const gHex = g.toString(16).padStart(2, "0");
|
|
2172
|
+
const bHex = b.toString(16).padStart(2, "0");
|
|
2173
|
+
hexColor = `#${rHex}${gHex}${bHex}`;
|
|
2117
2174
|
}
|
|
2118
|
-
};
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
const originalFunkitConfig = useContext8(FunkitConfigContext);
|
|
2124
|
-
const finalFunkitConfig = {
|
|
2125
|
-
...DEFAULT_FUNKIT_CONFIG,
|
|
2126
|
-
...originalFunkitConfig,
|
|
2127
|
-
loginModalConfig: {
|
|
2128
|
-
...DEFAULT_FUNKIT_CONFIG.loginModalConfig,
|
|
2129
|
-
...originalFunkitConfig.loginModalConfig || {}
|
|
2130
|
-
},
|
|
2131
|
-
accountModalConfig: {
|
|
2132
|
-
...DEFAULT_FUNKIT_CONFIG.accountModalConfig,
|
|
2133
|
-
...originalFunkitConfig.accountModalConfig || {}
|
|
2134
|
-
},
|
|
2135
|
-
paymentsConfig: {
|
|
2136
|
-
...DEFAULT_FUNKIT_CONFIG.paymentsConfig,
|
|
2137
|
-
...originalFunkitConfig.paymentsConfig || {}
|
|
2138
|
-
},
|
|
2139
|
-
textCustomizations: {
|
|
2140
|
-
...DEFAULT_FUNKIT_CONFIG.textCustomizations,
|
|
2141
|
-
...originalFunkitConfig.textCustomizations || {}
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
return finalFunkitConfig;
|
|
2175
|
+
const hexMatch = color.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);
|
|
2176
|
+
if (hexMatch) {
|
|
2177
|
+
hexColor = hexMatch[0].toLowerCase();
|
|
2178
|
+
}
|
|
2179
|
+
return hexColor;
|
|
2145
2180
|
}
|
|
2146
2181
|
|
|
2147
2182
|
// src/components/FunkitProvider/FunkitCheckoutContext.tsx
|
|
@@ -2999,7 +3034,6 @@ var useFunkitCheckout = (props) => {
|
|
|
2999
3034
|
const { openFunCheckoutModal } = useFunCheckoutModal();
|
|
3000
3035
|
const { openConnectModal } = useConnectModal();
|
|
3001
3036
|
const { walletAddress, isUserLoggedIn } = useGeneralWallet();
|
|
3002
|
-
const [waitingLogin, setWaitingLogin] = useState9(void 0);
|
|
3003
3037
|
const onErrorWrapper = useCallback6(
|
|
3004
3038
|
(payload) => {
|
|
3005
3039
|
logger.warn(payload.message, payload);
|
|
@@ -3015,6 +3049,7 @@ var useFunkitCheckout = (props) => {
|
|
|
3015
3049
|
},
|
|
3016
3050
|
[openFunCheckoutModal, props]
|
|
3017
3051
|
);
|
|
3052
|
+
const [pendingCheckoutConfig, setPendingCheckoutConfig] = useState9();
|
|
3018
3053
|
const beginCheckout = useCallback6(
|
|
3019
3054
|
async (inputConfig) => {
|
|
3020
3055
|
const combinedConfig = {
|
|
@@ -3030,6 +3065,7 @@ var useFunkitCheckout = (props) => {
|
|
|
3030
3065
|
const finalConfig = combinedConfig;
|
|
3031
3066
|
let newId = _initNewCheckout == null ? void 0 : _initNewCheckout({ ...props, config: finalConfig }, false);
|
|
3032
3067
|
if (isUserLoggedIn || !!finalConfig.customRecipient) {
|
|
3068
|
+
setPendingCheckoutConfig(void 0);
|
|
3033
3069
|
if (isUserLoggedIn) {
|
|
3034
3070
|
const { result, tokenTicker } = await testAutoExecutionDuringCheckout(
|
|
3035
3071
|
finalConfig,
|
|
@@ -3042,7 +3078,7 @@ var useFunkitCheckout = (props) => {
|
|
|
3042
3078
|
true,
|
|
3043
3079
|
tokenTicker
|
|
3044
3080
|
);
|
|
3045
|
-
} else if (!
|
|
3081
|
+
} else if (!FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO4[finalConfig.targetChain].isFiatCheckoutSupported) {
|
|
3046
3082
|
onErrorWrapper == null ? void 0 : onErrorWrapper({
|
|
3047
3083
|
type: "error",
|
|
3048
3084
|
message: "Unable to begin a new checkout: Insufficient funds on testnet account",
|
|
@@ -3054,7 +3090,7 @@ var useFunkitCheckout = (props) => {
|
|
|
3054
3090
|
onOpenWrapper == null ? void 0 : onOpenWrapper(newId);
|
|
3055
3091
|
} else {
|
|
3056
3092
|
openConnectModal == null ? void 0 : openConnectModal();
|
|
3057
|
-
|
|
3093
|
+
setPendingCheckoutConfig(finalConfig);
|
|
3058
3094
|
}
|
|
3059
3095
|
} else {
|
|
3060
3096
|
onErrorWrapper == null ? void 0 : onErrorWrapper({
|
|
@@ -3078,13 +3114,11 @@ var useFunkitCheckout = (props) => {
|
|
|
3078
3114
|
]
|
|
3079
3115
|
);
|
|
3080
3116
|
useEffect7(() => {
|
|
3081
|
-
if (
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
setWaitingLogin(void 0);
|
|
3085
|
-
beginCheckout(waitingLogin);
|
|
3117
|
+
if (isUserLoggedIn && pendingCheckoutConfig) {
|
|
3118
|
+
setPendingCheckoutConfig(void 0);
|
|
3119
|
+
beginCheckout(pendingCheckoutConfig);
|
|
3086
3120
|
}
|
|
3087
|
-
}, [beginCheckout, isUserLoggedIn,
|
|
3121
|
+
}, [beginCheckout, isUserLoggedIn, pendingCheckoutConfig]);
|
|
3088
3122
|
return {
|
|
3089
3123
|
beginCheckout
|
|
3090
3124
|
};
|
|
@@ -3375,7 +3409,7 @@ function formatTimestamp(date, shortened = false) {
|
|
|
3375
3409
|
const formattedDate = `${month} ${day}${daySuffix}${shortened ? "" : `, ${year}`} \xB7 ${hours % 12 || 12}:${minutes < 10 ? "0" : ""}${minutes}${shortened ? "" : `:${seconds < 10 ? "0" : ""}${seconds}`} ${ampm}`;
|
|
3376
3410
|
return formattedDate;
|
|
3377
3411
|
}
|
|
3378
|
-
function formatSecondsToReadableForm(seconds, specifyUnderMinute = false) {
|
|
3412
|
+
function formatSecondsToReadableForm(seconds, specifyUnderMinute = false, omitSeconds = false) {
|
|
3379
3413
|
const normalizedSeconds = Math.ceil(seconds);
|
|
3380
3414
|
if (normalizedSeconds < 60) {
|
|
3381
3415
|
if (specifyUnderMinute) {
|
|
@@ -3386,6 +3420,9 @@ function formatSecondsToReadableForm(seconds, specifyUnderMinute = false) {
|
|
|
3386
3420
|
}
|
|
3387
3421
|
const mins = Math.floor(normalizedSeconds / 60);
|
|
3388
3422
|
const remainingSecs = normalizedSeconds % 60;
|
|
3423
|
+
if (omitSeconds) {
|
|
3424
|
+
return `${mins + 1}mins`;
|
|
3425
|
+
}
|
|
3389
3426
|
if (remainingSecs === 0) {
|
|
3390
3427
|
return mins === 1 ? `${mins}min` : `${mins}mins`;
|
|
3391
3428
|
}
|
|
@@ -4761,7 +4798,7 @@ function FunInputDefault({
|
|
|
4761
4798
|
background: hasBackground ? "actionButtonSecondaryBackground" : void 0,
|
|
4762
4799
|
borderRadius: "menuButton",
|
|
4763
4800
|
fontFamily: "body",
|
|
4764
|
-
minWidth: "
|
|
4801
|
+
minWidth: "full",
|
|
4765
4802
|
display: "flex",
|
|
4766
4803
|
color: textColor,
|
|
4767
4804
|
alignItems: "center",
|
|
@@ -4811,6 +4848,7 @@ function FunInputDefault({
|
|
|
4811
4848
|
},
|
|
4812
4849
|
onFocus,
|
|
4813
4850
|
onBlur,
|
|
4851
|
+
onWheel: (e) => e.currentTarget.blur(),
|
|
4814
4852
|
className: inputProps.disabled ? inputClassDisabled : inputClass,
|
|
4815
4853
|
...inputProps,
|
|
4816
4854
|
style: {
|
|
@@ -4902,6 +4940,7 @@ var FunInputWithRef = forwardRef2(
|
|
|
4902
4940
|
onKeySubmit();
|
|
4903
4941
|
}
|
|
4904
4942
|
},
|
|
4943
|
+
onWheel: (e) => e.currentTarget.blur(),
|
|
4905
4944
|
onPaste,
|
|
4906
4945
|
onMouseDown: (e) => {
|
|
4907
4946
|
if (onMouseDown) {
|
|
@@ -5276,6 +5315,7 @@ function FunLinkButton({
|
|
|
5276
5315
|
|
|
5277
5316
|
// src/components/FunButton/FunTermsAndConditionsTextButton.tsx
|
|
5278
5317
|
function FunTermsAndConditionsTextButton() {
|
|
5318
|
+
const { termsFontSize } = useFunkitConfig();
|
|
5279
5319
|
return /* @__PURE__ */ React54.createElement(Box, {
|
|
5280
5320
|
paddingY: "8",
|
|
5281
5321
|
display: "flex",
|
|
@@ -5284,8 +5324,8 @@ function FunTermsAndConditionsTextButton() {
|
|
|
5284
5324
|
style: { fontStyle: "italic" }
|
|
5285
5325
|
}, /* @__PURE__ */ React54.createElement(Text, {
|
|
5286
5326
|
color: "modalTextDim",
|
|
5287
|
-
|
|
5288
|
-
|
|
5327
|
+
weight: "medium",
|
|
5328
|
+
style: { fontSize: termsFontSize }
|
|
5289
5329
|
}, "By clicking Confirm Order you agree to our", /* @__PURE__ */ React54.createElement(FunLinkButton, {
|
|
5290
5330
|
onClick: () => {
|
|
5291
5331
|
window.open(
|
|
@@ -5294,7 +5334,9 @@ function FunTermsAndConditionsTextButton() {
|
|
|
5294
5334
|
);
|
|
5295
5335
|
},
|
|
5296
5336
|
text: "terms and conditions",
|
|
5297
|
-
textProps: {
|
|
5337
|
+
textProps: {
|
|
5338
|
+
style: { fontStyle: "italic", fontSize: termsFontSize }
|
|
5339
|
+
}
|
|
5298
5340
|
})));
|
|
5299
5341
|
}
|
|
5300
5342
|
|
|
@@ -5325,14 +5367,14 @@ function useCheckoutQuoteNotification(checkoutId) {
|
|
|
5325
5367
|
}
|
|
5326
5368
|
|
|
5327
5369
|
// src/utils/deposit.ts
|
|
5328
|
-
var MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD =
|
|
5370
|
+
var MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 35;
|
|
5329
5371
|
function isAmountValidForMoonpay({
|
|
5330
5372
|
amountUsd
|
|
5331
5373
|
}) {
|
|
5332
5374
|
return parseFloat(amountUsd || "0") < MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD;
|
|
5333
5375
|
}
|
|
5334
5376
|
function generateInsufficientAmountForMoonpayError(paymentFlow, isShortened) {
|
|
5335
|
-
return
|
|
5377
|
+
return `$${MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD} minimum${isShortened ? "" : " required for the selected payment method"}.`;
|
|
5336
5378
|
}
|
|
5337
5379
|
|
|
5338
5380
|
// src/components/FunOnramp/FunOnrampTokenPill.tsx
|
|
@@ -5792,6 +5834,8 @@ function FunPaymentMethods({
|
|
|
5792
5834
|
}
|
|
5793
5835
|
}, [reDraftSymbol]);
|
|
5794
5836
|
const hasSufficientBalance = useMemo14(() => {
|
|
5837
|
+
if (!checkoutItem)
|
|
5838
|
+
return false;
|
|
5795
5839
|
if (!(depositInfo == null ? void 0 : depositInfo.amount))
|
|
5796
5840
|
return true;
|
|
5797
5841
|
const tokenKeys = Object.keys(walletAssets || {});
|
|
@@ -5800,10 +5844,16 @@ function FunPaymentMethods({
|
|
|
5800
5844
|
return null;
|
|
5801
5845
|
}
|
|
5802
5846
|
const asset = walletAssets == null ? void 0 : walletAssets[assetKey];
|
|
5803
|
-
|
|
5847
|
+
const { isUsable } = isAssetUsableToPayForCheckout(
|
|
5848
|
+
checkoutItem,
|
|
5849
|
+
"balance" /* ACCOUNT_BALANCE */,
|
|
5850
|
+
asset.chainId,
|
|
5851
|
+
asset.contractAddress
|
|
5852
|
+
);
|
|
5853
|
+
return isUsable && asset.totalUsdValue >= parseFloat(depositInfo == null ? void 0 : depositInfo.amount);
|
|
5804
5854
|
});
|
|
5805
5855
|
return isNotNullish(foundAsset);
|
|
5806
|
-
}, [depositInfo == null ? void 0 : depositInfo.amount, walletAssets]);
|
|
5856
|
+
}, [checkoutItem, depositInfo == null ? void 0 : depositInfo.amount, walletAssets]);
|
|
5807
5857
|
const { hasQuoteError, showQuoteNotification, quoteNotificationMessage } = useCheckoutQuoteNotification(checkoutId || "");
|
|
5808
5858
|
const PaymentMethodListWithStatus = useMemo14(() => {
|
|
5809
5859
|
return Object.keys(PAYMENT_METHOD_CONFIG).map((paymentMethod) => {
|
|
@@ -5827,7 +5877,7 @@ function FunPaymentMethods({
|
|
|
5827
5877
|
paymentMethod,
|
|
5828
5878
|
isActive: paymentMethod === selectedOption && isClickable,
|
|
5829
5879
|
isClickable: isClickable && !isContinuing,
|
|
5830
|
-
disclaimerText: shouldDisableMoonpay ? generateInsufficientAmountForMoonpayError(paymentFlow, true) : shouldDisableAccBalance ? `Insufficient
|
|
5880
|
+
disclaimerText: shouldDisableMoonpay ? generateInsufficientAmountForMoonpayError(paymentFlow, true) : shouldDisableAccBalance ? `Insufficient balance.` : "",
|
|
5831
5881
|
onClick: () => {
|
|
5832
5882
|
setSelectedOption(paymentMethod);
|
|
5833
5883
|
}
|
|
@@ -6288,7 +6338,8 @@ function FunTransactionSummary({
|
|
|
6288
6338
|
size: "14"
|
|
6289
6339
|
}, formatSecondsToReadableForm(
|
|
6290
6340
|
parseFloat(estTime == null ? void 0 : estTime.toString()),
|
|
6291
|
-
true
|
|
6341
|
+
true,
|
|
6342
|
+
false
|
|
6292
6343
|
)) : null), hasTotal ? /* @__PURE__ */ React65.createElement(Fragment2, null, /* @__PURE__ */ React65.createElement(FunTxSummaryDivider, null), /* @__PURE__ */ React65.createElement(LineItem, null, /* @__PURE__ */ React65.createElement(Text, {
|
|
6293
6344
|
weight: "medium",
|
|
6294
6345
|
color: "modalTextDim",
|
|
@@ -6880,6 +6931,16 @@ function FunPaymentMeshType({
|
|
|
6880
6931
|
// src/components/FunPayments/FunPaymentMoonpayType.tsx
|
|
6881
6932
|
import { getMoonpayUrlSignature } from "@funkit/core";
|
|
6882
6933
|
import React75, { memo, useEffect as useEffect15, useMemo as useMemo18, useState as useState20 } from "react";
|
|
6934
|
+
|
|
6935
|
+
// src/components/FunkitProvider/FunkitSandboxContext.tsx
|
|
6936
|
+
import { createContext as createContext11, useContext as useContext11 } from "react";
|
|
6937
|
+
var FunkitSandboxContext = createContext11(false);
|
|
6938
|
+
var useIsFunkitSandboxMode = () => useContext11(FunkitSandboxContext);
|
|
6939
|
+
|
|
6940
|
+
// src/components/FunPayments/FunPaymentMoonpayType.css.ts
|
|
6941
|
+
var mpClass = "_1kmpeyf0";
|
|
6942
|
+
|
|
6943
|
+
// src/components/FunPayments/FunPaymentMoonpayType.tsx
|
|
6883
6944
|
var MoonPayBuyWidget = memo(function Widget(props) {
|
|
6884
6945
|
const [MoonPayBuyWidgetInner, setMoonPayBuyWidgetInner] = React75.useState(null);
|
|
6885
6946
|
useEffect15(() => {
|
|
@@ -6892,6 +6953,7 @@ var MoonPayBuyWidget = memo(function Widget(props) {
|
|
|
6892
6953
|
}
|
|
6893
6954
|
};
|
|
6894
6955
|
loadMoonPayBuyWidgetInner();
|
|
6956
|
+
return () => setMoonPayBuyWidgetInner(null);
|
|
6895
6957
|
}, []);
|
|
6896
6958
|
if (!MoonPayBuyWidgetInner)
|
|
6897
6959
|
return /* @__PURE__ */ React75.createElement(React75.Fragment, null, props.children);
|
|
@@ -6910,6 +6972,8 @@ function FunPaymentMoonpayType({
|
|
|
6910
6972
|
redirectToCheckoutHistory,
|
|
6911
6973
|
finalConvertedAssetName
|
|
6912
6974
|
}) {
|
|
6975
|
+
const { active: active2 } = useActiveTheme();
|
|
6976
|
+
const isSandboxMode = useIsFunkitSandboxMode();
|
|
6913
6977
|
const [isSupportedRegion, setIsSupportedRegion] = useState20(true);
|
|
6914
6978
|
const [isBackToHomeDisabled, setIsBackToHomeDisabled] = useState20(true);
|
|
6915
6979
|
const funkitConfig = useFunkitConfig();
|
|
@@ -6918,20 +6982,38 @@ function FunPaymentMoonpayType({
|
|
|
6918
6982
|
}, [depositToken, depositTokenChainId]);
|
|
6919
6983
|
const depositTokenAmountStringFormatted = formatTokenAmountForMoonpay(depositTokenAmount);
|
|
6920
6984
|
const handleGetSignature = async (url) => {
|
|
6921
|
-
const res = await getMoonpayUrlSignature(
|
|
6985
|
+
const res = await getMoonpayUrlSignature(
|
|
6986
|
+
url,
|
|
6987
|
+
isSandboxMode,
|
|
6988
|
+
funkitConfig == null ? void 0 : funkitConfig.apiKey
|
|
6989
|
+
);
|
|
6922
6990
|
const queryParams = new URLSearchParams(res.split("?")[1]);
|
|
6923
6991
|
const signature = queryParams.get("signature");
|
|
6992
|
+
logger.log("moonpaySignatureRequested", {
|
|
6993
|
+
originalUrl: url,
|
|
6994
|
+
res,
|
|
6995
|
+
signature
|
|
6996
|
+
});
|
|
6924
6997
|
return signature || "";
|
|
6925
6998
|
};
|
|
6926
6999
|
const description = useMemo18(() => {
|
|
6927
|
-
|
|
7000
|
+
let normalizedConvertedAssetName = finalConvertedAssetName.toLowerCase();
|
|
6928
7001
|
if (normalizedConvertedAssetName.startsWith("$")) {
|
|
6929
|
-
|
|
7002
|
+
normalizedConvertedAssetName = normalizedConvertedAssetName.slice(1);
|
|
6930
7003
|
}
|
|
6931
7004
|
const isSame = normalizedConvertedAssetName === depositToken.toLowerCase();
|
|
6932
7005
|
const conversionText = finalConvertedAssetName && !isSame ? ` that is then automatically converted to ${finalConvertedAssetName}.` : ".";
|
|
6933
7006
|
return `${funkitConfig == null ? void 0 : funkitConfig.appName} uses Moonpay to on-ramp ${depositToken} via credit & debit cards${conversionText}`;
|
|
6934
7007
|
}, [finalConvertedAssetName, funkitConfig == null ? void 0 : funkitConfig.appName, depositToken]);
|
|
7008
|
+
const moonpayButtonColor = useMemo18(() => {
|
|
7009
|
+
const primaryButtonHex = colorToHex(active2.colors.buttonPrimary);
|
|
7010
|
+
console.log("primaryButonHex", primaryButtonHex);
|
|
7011
|
+
if (["#FFF", "#FFFF", "#FFFFFF", "#FFFFFFFF"].includes(primaryButtonHex)) {
|
|
7012
|
+
return void 0;
|
|
7013
|
+
} else {
|
|
7014
|
+
return primaryButtonHex;
|
|
7015
|
+
}
|
|
7016
|
+
}, [active2.colors.buttonPrimary]);
|
|
6935
7017
|
return /* @__PURE__ */ React75.createElement(Box, {
|
|
6936
7018
|
className: backAnimation ? animateContentOutClass : animateContentInClass
|
|
6937
7019
|
}, /* @__PURE__ */ React75.createElement(Box, {
|
|
@@ -6972,7 +7054,13 @@ function FunPaymentMoonpayType({
|
|
|
6972
7054
|
},
|
|
6973
7055
|
onUnsupportedRegion: () => setIsSupportedRegion(false),
|
|
6974
7056
|
visible: isSupportedRegion,
|
|
6975
|
-
|
|
7057
|
+
className: mpClass,
|
|
7058
|
+
style: {
|
|
7059
|
+
margin: 0,
|
|
7060
|
+
border: `1px solid ${active2.colors.modalTextDim}`
|
|
7061
|
+
},
|
|
7062
|
+
theme: active2.moonpayTheme,
|
|
7063
|
+
colorCode: moonpayButtonColor
|
|
6976
7064
|
})), paymentFlow === 0 /* DEPOSIT */ ? /* @__PURE__ */ React75.createElement(Box, {
|
|
6977
7065
|
width: "full"
|
|
6978
7066
|
}, /* @__PURE__ */ React75.createElement(FunButton, {
|
|
@@ -7578,10 +7666,10 @@ import React91, { useMemo as useMemo23, useState as useState23 } from "react";
|
|
|
7578
7666
|
import { useAccount as useAccount5 } from "wagmi";
|
|
7579
7667
|
|
|
7580
7668
|
// src/components/Avatar/Avatar.tsx
|
|
7581
|
-
import React83, { useContext as
|
|
7669
|
+
import React83, { useContext as useContext12 } from "react";
|
|
7582
7670
|
|
|
7583
7671
|
// src/components/FunkitProvider/AvatarContext.ts
|
|
7584
|
-
import { createContext as
|
|
7672
|
+
import { createContext as createContext12 } from "react";
|
|
7585
7673
|
|
|
7586
7674
|
// src/components/Avatar/EmojiAvatar.tsx
|
|
7587
7675
|
import React81, { useEffect as useEffect17, useState as useState22 } from "react";
|
|
@@ -7663,11 +7751,11 @@ var EmojiAvatar = ({
|
|
|
7663
7751
|
|
|
7664
7752
|
// src/components/FunkitProvider/AvatarContext.ts
|
|
7665
7753
|
var defaultAvatar = EmojiAvatar;
|
|
7666
|
-
var AvatarContext =
|
|
7754
|
+
var AvatarContext = createContext12(defaultAvatar);
|
|
7667
7755
|
|
|
7668
7756
|
// src/components/Avatar/Avatar.tsx
|
|
7669
7757
|
function Avatar({ address, imageUrl, loading, size }) {
|
|
7670
|
-
const AvatarComponent2 =
|
|
7758
|
+
const AvatarComponent2 = useContext12(AvatarContext);
|
|
7671
7759
|
return /* @__PURE__ */ React83.createElement(Box, {
|
|
7672
7760
|
"aria-hidden": true,
|
|
7673
7761
|
borderRadius: "full",
|
|
@@ -8175,7 +8263,7 @@ function Home({
|
|
|
8175
8263
|
color: "modalText",
|
|
8176
8264
|
weight: "heavy",
|
|
8177
8265
|
style: { fontSize: "56px", lineHeight: "68px" }
|
|
8178
|
-
}, formatCurrencyAndStringify(parseFloat(balance.toString())))), (accountModalConfig == null ? void 0 : accountModalConfig.
|
|
8266
|
+
}, formatCurrencyAndStringify(parseFloat(balance.toString())))), (accountModalConfig == null ? void 0 : accountModalConfig.allowDepositing) ? /* @__PURE__ */ React91.createElement(Box, {
|
|
8179
8267
|
id: "button-row",
|
|
8180
8268
|
display: "flex",
|
|
8181
8269
|
flexDirection: "row",
|
|
@@ -8209,7 +8297,7 @@ function Home({
|
|
|
8209
8297
|
}
|
|
8210
8298
|
|
|
8211
8299
|
// src/components/ProfileDetails/FunProfileViews/Settings/Settings.tsx
|
|
8212
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
8300
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5 } from "@funkit/core";
|
|
8213
8301
|
import React94, { useCallback as useCallback15, useState as useState24 } from "react";
|
|
8214
8302
|
import { useAccount as useAccount6 } from "wagmi";
|
|
8215
8303
|
|
|
@@ -8362,7 +8450,7 @@ function Settings({
|
|
|
8362
8450
|
onClick: () => {
|
|
8363
8451
|
if (activeChain == null ? void 0 : activeChain.id) {
|
|
8364
8452
|
window.open(
|
|
8365
|
-
`${
|
|
8453
|
+
`${FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5[activeChain == null ? void 0 : activeChain.id].explorerInfo.url}/address/${walletAddress}`,
|
|
8366
8454
|
"_blank"
|
|
8367
8455
|
);
|
|
8368
8456
|
}
|
|
@@ -8439,7 +8527,7 @@ function AccountModal({ onClose, open }) {
|
|
|
8439
8527
|
}
|
|
8440
8528
|
|
|
8441
8529
|
// src/components/ChainModal/ChainModal.tsx
|
|
8442
|
-
import React101, { useContext as
|
|
8530
|
+
import React101, { useContext as useContext14 } from "react";
|
|
8443
8531
|
import { useAccount as useAccount7, useConfig as useConfig3 } from "wagmi";
|
|
8444
8532
|
|
|
8445
8533
|
// src/hooks/useFunkitSwitchChain.ts
|
|
@@ -8476,7 +8564,7 @@ function useFunkitSwitchChains({
|
|
|
8476
8564
|
|
|
8477
8565
|
// src/components/FunkitProvider/I18nContext.tsx
|
|
8478
8566
|
import React97, {
|
|
8479
|
-
createContext as
|
|
8567
|
+
createContext as createContext13,
|
|
8480
8568
|
useEffect as useEffect18,
|
|
8481
8569
|
useMemo as useMemo24,
|
|
8482
8570
|
useState as useState28
|
|
@@ -8665,7 +8753,7 @@ var detectedBrowserLocale = () => {
|
|
|
8665
8753
|
};
|
|
8666
8754
|
|
|
8667
8755
|
// src/components/FunkitProvider/I18nContext.tsx
|
|
8668
|
-
var I18nContext =
|
|
8756
|
+
var I18nContext = createContext13({ i18n });
|
|
8669
8757
|
var I18nProvider = ({ children, locale }) => {
|
|
8670
8758
|
const [updateCount, setUpdateCount] = useState28(0);
|
|
8671
8759
|
const browserLocale = useMemo24(
|
|
@@ -8760,7 +8848,7 @@ var MenuButton = React99.forwardRef(
|
|
|
8760
8848
|
MenuButton.displayName = "MenuButton";
|
|
8761
8849
|
|
|
8762
8850
|
// src/components/ChainModal/Chain.tsx
|
|
8763
|
-
import React100, { Fragment as Fragment5, useContext as
|
|
8851
|
+
import React100, { Fragment as Fragment5, useContext as useContext13 } from "react";
|
|
8764
8852
|
var Chain2 = ({
|
|
8765
8853
|
chainId,
|
|
8766
8854
|
currentChainId,
|
|
@@ -8773,7 +8861,7 @@ var Chain2 = ({
|
|
|
8773
8861
|
idx
|
|
8774
8862
|
}) => {
|
|
8775
8863
|
const mobile = isMobile();
|
|
8776
|
-
const { i18n: i18n2 } =
|
|
8864
|
+
const { i18n: i18n2 } = useContext13(I18nContext);
|
|
8777
8865
|
const funkitConnectChains = useFunkitConnectChains();
|
|
8778
8866
|
const { isWeb2Login } = useGeneralWallet();
|
|
8779
8867
|
const isCurrentChain = currentChainId === chainId && !isLoading;
|
|
@@ -8851,7 +8939,7 @@ function ChainModal({ onClose, open }) {
|
|
|
8851
8939
|
onSettled: () => onClose()
|
|
8852
8940
|
});
|
|
8853
8941
|
const { handleLogout } = useGeneralWallet();
|
|
8854
|
-
const { i18n: i18n2 } =
|
|
8942
|
+
const { i18n: i18n2 } = useContext14(I18nContext);
|
|
8855
8943
|
const titleId = "rk_chain_modal_title";
|
|
8856
8944
|
const mobile = isMobile();
|
|
8857
8945
|
const isCurrentChainSupported = chains.some((chain) => chain.id === chainId);
|
|
@@ -8997,7 +9085,7 @@ function FunConnectErrorStep({
|
|
|
8997
9085
|
}
|
|
8998
9086
|
|
|
8999
9087
|
// src/components/FunConnectOptions/FunSignInStep.tsx
|
|
9000
|
-
import React107, { useCallback as useCallback16, useContext as
|
|
9088
|
+
import React107, { useCallback as useCallback16, useContext as useContext17, useMemo as useMemo25, useState as useState30 } from "react";
|
|
9001
9089
|
|
|
9002
9090
|
// src/utils/browsers.ts
|
|
9003
9091
|
function isSafari() {
|
|
@@ -9065,7 +9153,8 @@ function FunContainer({
|
|
|
9065
9153
|
isCollapsible = true,
|
|
9066
9154
|
isCollapsed = false,
|
|
9067
9155
|
showHoverEffect = true,
|
|
9068
|
-
onClick = () => void 0
|
|
9156
|
+
onClick = () => void 0,
|
|
9157
|
+
titlePaddingBottom = "24"
|
|
9069
9158
|
}) {
|
|
9070
9159
|
return /* @__PURE__ */ React103.createElement(Box, {
|
|
9071
9160
|
key: `${title}`,
|
|
@@ -9085,7 +9174,7 @@ function FunContainer({
|
|
|
9085
9174
|
},
|
|
9086
9175
|
style: { cursor: isCollapsed ? "pointer" : "default" }
|
|
9087
9176
|
}, /* @__PURE__ */ React103.createElement(Box, {
|
|
9088
|
-
paddingBottom: isCollapsed ? "0" :
|
|
9177
|
+
paddingBottom: isCollapsed ? "0" : titlePaddingBottom,
|
|
9089
9178
|
display: "flex",
|
|
9090
9179
|
alignItems: "center",
|
|
9091
9180
|
justifyContent: "space-between"
|
|
@@ -9218,19 +9307,19 @@ var AppleIcon = () => {
|
|
|
9218
9307
|
};
|
|
9219
9308
|
|
|
9220
9309
|
// src/components/ModalSelection/ModalSelection.tsx
|
|
9221
|
-
import React106, { useContext as
|
|
9310
|
+
import React106, { useContext as useContext16, useState as useState29 } from "react";
|
|
9222
9311
|
|
|
9223
9312
|
// src/components/FunkitProvider/useCoolMode.ts
|
|
9224
|
-
import { useContext as
|
|
9313
|
+
import { useContext as useContext15, useEffect as useEffect19, useRef as useRef8 } from "react";
|
|
9225
9314
|
|
|
9226
9315
|
// src/components/FunkitProvider/CoolModeContext.ts
|
|
9227
|
-
import { createContext as
|
|
9228
|
-
var CoolModeContext =
|
|
9316
|
+
import { createContext as createContext14 } from "react";
|
|
9317
|
+
var CoolModeContext = createContext14(false);
|
|
9229
9318
|
|
|
9230
9319
|
// src/components/FunkitProvider/useCoolMode.ts
|
|
9231
9320
|
var useCoolMode = (imageUrl) => {
|
|
9232
9321
|
const ref = useRef8(null);
|
|
9233
|
-
const coolModeEnabled =
|
|
9322
|
+
const coolModeEnabled = useContext15(CoolModeContext);
|
|
9234
9323
|
const resolvedImageUrl = useAsyncImage(imageUrl);
|
|
9235
9324
|
useEffect19(() => {
|
|
9236
9325
|
if (coolModeEnabled && ref.current && resolvedImageUrl) {
|
|
@@ -9400,7 +9489,7 @@ var ModalSelection = ({
|
|
|
9400
9489
|
}) => {
|
|
9401
9490
|
const coolModeRef = useCoolMode(iconUrl);
|
|
9402
9491
|
const [isMouseOver, setIsMouseOver] = useState29(false);
|
|
9403
|
-
const { i18n: i18n2 } =
|
|
9492
|
+
const { i18n: i18n2 } = useContext16(I18nContext);
|
|
9404
9493
|
return /* @__PURE__ */ React106.createElement(Box, {
|
|
9405
9494
|
display: "flex",
|
|
9406
9495
|
flexDirection: "column",
|
|
@@ -9469,10 +9558,22 @@ ModalSelection.displayName = "ModalSelection";
|
|
|
9469
9558
|
var scrollClassName = "_14qbs541 _1rsrm2fax _1rsrm2fbj";
|
|
9470
9559
|
|
|
9471
9560
|
// src/components/FunConnectOptions/FunSignInStep.tsx
|
|
9472
|
-
var
|
|
9473
|
-
{
|
|
9474
|
-
|
|
9475
|
-
|
|
9561
|
+
var FULL_OAUTH_LOGIN_OPTIONS = [
|
|
9562
|
+
{
|
|
9563
|
+
funkitKey: "google_oauth" /* GOOGLE */,
|
|
9564
|
+
provider: "google",
|
|
9565
|
+
icon: /* @__PURE__ */ React107.createElement(GoogleIcon, null)
|
|
9566
|
+
},
|
|
9567
|
+
{
|
|
9568
|
+
funkitKey: "twitter_oauth" /* TWITTER */,
|
|
9569
|
+
provider: "twitter",
|
|
9570
|
+
icon: /* @__PURE__ */ React107.createElement(TwitterIcon, null)
|
|
9571
|
+
},
|
|
9572
|
+
{
|
|
9573
|
+
funkitKey: "apple_oauth" /* APPLE */,
|
|
9574
|
+
provider: "apple",
|
|
9575
|
+
icon: /* @__PURE__ */ React107.createElement(AppleIcon, null)
|
|
9576
|
+
}
|
|
9476
9577
|
];
|
|
9477
9578
|
function getInitSignInType(loginModalConfig) {
|
|
9478
9579
|
const web2Enabled = !!loginModalConfig.web2;
|
|
@@ -9498,16 +9599,15 @@ function FunSignInStep({
|
|
|
9498
9599
|
}) {
|
|
9499
9600
|
var _a, _b, _c;
|
|
9500
9601
|
const funkitConfig = useFunkitConfig();
|
|
9501
|
-
const
|
|
9502
|
-
|
|
9503
|
-
);
|
|
9602
|
+
const initSignInType = getInitSignInType(funkitConfig.loginModalConfig);
|
|
9603
|
+
const [signInType, setSignInType] = useState30(initSignInType);
|
|
9504
9604
|
const [selectedOptionId, setSelectedOptionId] = useState30();
|
|
9505
9605
|
const { isSendingOtpEmail, handleSendOtpEmail, handleOauthRedirect } = useFunkitWeb2Login();
|
|
9506
9606
|
const isEmailInputValid = useMemo25(() => {
|
|
9507
9607
|
return validateEmailString(emailInput);
|
|
9508
9608
|
}, [emailInput]);
|
|
9509
9609
|
const [emailError, setEmailError] = useState30();
|
|
9510
|
-
const { connector } =
|
|
9610
|
+
const { connector } = useContext17(WalletButtonContext);
|
|
9511
9611
|
const mergeEIP6963WithRkConnectors = !connector;
|
|
9512
9612
|
const wallets = useWalletConnectors(mergeEIP6963WithRkConnectors).filter((wallet) => wallet.ready || !!wallet.extensionDownloadUrl).sort((a, b) => a.groupIndex - b.groupIndex);
|
|
9513
9613
|
const groupedWallets = groupBy(wallets, (wallet) => wallet.groupName);
|
|
@@ -9580,28 +9680,24 @@ function FunSignInStep({
|
|
|
9580
9680
|
setSelectedWallet,
|
|
9581
9681
|
changeStep
|
|
9582
9682
|
]);
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
}
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
paddingY: "20",
|
|
9594
|
-
gap: "20",
|
|
9595
|
-
className: animateContentInClass
|
|
9596
|
-
}, ((_b = funkitConfig == null ? void 0 : funkitConfig.loginModalConfig) == null ? void 0 : _b.web2) ? /* @__PURE__ */ React107.createElement(FunContainer, {
|
|
9597
|
-
title: "Email & Social",
|
|
9683
|
+
const ENABLED_OAUTH_ITEMS = useMemo25(() => {
|
|
9684
|
+
return FULL_OAUTH_LOGIN_OPTIONS.filter(
|
|
9685
|
+
(oAuthItem) => !!funkitConfig.loginModalConfig.web2OauthLogins[oAuthItem.funkitKey]
|
|
9686
|
+
);
|
|
9687
|
+
}, [funkitConfig.loginModalConfig.web2OauthLogins]);
|
|
9688
|
+
const hasAnyOauthEnabled = useMemo25(() => {
|
|
9689
|
+
return ENABLED_OAUTH_ITEMS.length;
|
|
9690
|
+
}, [ENABLED_OAUTH_ITEMS.length]);
|
|
9691
|
+
const Web2LoginSection = ((_b = funkitConfig == null ? void 0 : funkitConfig.loginModalConfig) == null ? void 0 : _b.web2) ? /* @__PURE__ */ React107.createElement(FunContainer, {
|
|
9692
|
+
title: hasAnyOauthEnabled ? "Email & Social" : "Email",
|
|
9598
9693
|
titleSuffix: /* @__PURE__ */ React107.createElement(Box, {
|
|
9599
9694
|
color: "textPrimary"
|
|
9600
9695
|
}, /* @__PURE__ */ React107.createElement(ProfileIcon, null)),
|
|
9601
9696
|
isCollapsible: true,
|
|
9602
9697
|
isCollapsed: signInType !== 0 /* WEB2 */,
|
|
9603
9698
|
showHoverEffect: signInType !== 0 /* WEB2 */,
|
|
9604
|
-
onClick: () => onClickSection(0 /* WEB2 */)
|
|
9699
|
+
onClick: () => onClickSection(0 /* WEB2 */),
|
|
9700
|
+
titlePaddingBottom: hasAnyOauthEnabled ? "24" : "8"
|
|
9605
9701
|
}, /* @__PURE__ */ React107.createElement(Box, {
|
|
9606
9702
|
display: "flex",
|
|
9607
9703
|
flexDirection: "row",
|
|
@@ -9638,14 +9734,14 @@ function FunSignInStep({
|
|
|
9638
9734
|
})) : null,
|
|
9639
9735
|
onClick: handleEmailSubmit,
|
|
9640
9736
|
buttonStyle: { height: "48px" }
|
|
9641
|
-
}))), /* @__PURE__ */ React107.createElement(FunDivider, null), /* @__PURE__ */ React107.createElement(Box, {
|
|
9737
|
+
}))), hasAnyOauthEnabled ? /* @__PURE__ */ React107.createElement(React107.Fragment, null, /* @__PURE__ */ React107.createElement(FunDivider, null), /* @__PURE__ */ React107.createElement(Box, {
|
|
9642
9738
|
display: "flex",
|
|
9643
9739
|
flexDirection: "column",
|
|
9644
9740
|
gap: "14"
|
|
9645
9741
|
}, /* @__PURE__ */ React107.createElement(Box, {
|
|
9646
9742
|
display: "flex",
|
|
9647
9743
|
gap: "10"
|
|
9648
|
-
},
|
|
9744
|
+
}, ENABLED_OAUTH_ITEMS.map((oAuthItem) => /* @__PURE__ */ React107.createElement(FunIconButton, {
|
|
9649
9745
|
key: oAuthItem.provider,
|
|
9650
9746
|
onClick: () => {
|
|
9651
9747
|
handleOauthRedirect(oAuthItem.provider);
|
|
@@ -9657,12 +9753,13 @@ function FunSignInStep({
|
|
|
9657
9753
|
showBorder: true,
|
|
9658
9754
|
size: "24",
|
|
9659
9755
|
width: "full"
|
|
9660
|
-
})))), emailError && /* @__PURE__ */ React107.createElement(Box, {
|
|
9756
|
+
}))))) : null, emailError && /* @__PURE__ */ React107.createElement(Box, {
|
|
9661
9757
|
paddingTop: "18"
|
|
9662
9758
|
}, /* @__PURE__ */ React107.createElement(FunNotification, {
|
|
9663
9759
|
type: "error",
|
|
9664
9760
|
description: emailError
|
|
9665
|
-
}))) : null
|
|
9761
|
+
}))) : null;
|
|
9762
|
+
const Web3LoginSection = ((_c = funkitConfig == null ? void 0 : funkitConfig.loginModalConfig) == null ? void 0 : _c.web3) && funWeb3ConnectWallets.length > 0 ? /* @__PURE__ */ React107.createElement(FunContainer, {
|
|
9666
9763
|
title: "Connect Wallet",
|
|
9667
9764
|
titleSuffix: /* @__PURE__ */ React107.createElement(Box, {
|
|
9668
9765
|
color: "modalText"
|
|
@@ -9688,7 +9785,21 @@ function FunSignInStep({
|
|
|
9688
9785
|
recent: wallet.recent,
|
|
9689
9786
|
testId: `wallet-option-${wallet.id}`
|
|
9690
9787
|
});
|
|
9691
|
-
}))) : null
|
|
9788
|
+
}))) : null;
|
|
9789
|
+
return /* @__PURE__ */ React107.createElement(Box, {
|
|
9790
|
+
minHeight: "320"
|
|
9791
|
+
}, /* @__PURE__ */ React107.createElement(FunModalTitleSection, {
|
|
9792
|
+
title: "Get Started",
|
|
9793
|
+
hasCloseButton: true,
|
|
9794
|
+
onClose,
|
|
9795
|
+
customJustifyContentStyle: "space-between"
|
|
9796
|
+
}), /* @__PURE__ */ React107.createElement(Box, {
|
|
9797
|
+
display: "flex",
|
|
9798
|
+
flexDirection: "column",
|
|
9799
|
+
paddingY: "20",
|
|
9800
|
+
gap: "20",
|
|
9801
|
+
className: animateContentInClass
|
|
9802
|
+
}, initSignInType === 0 /* WEB2 */ ? Web2LoginSection : Web3LoginSection, initSignInType === 0 /* WEB2 */ ? Web3LoginSection : Web2LoginSection));
|
|
9692
9803
|
}
|
|
9693
9804
|
|
|
9694
9805
|
// src/components/FunConnectOptions/FunWeb2ConnectingStep.tsx
|
|
@@ -9793,7 +9904,7 @@ var FunWeb2ConnectingStep = (props) => {
|
|
|
9793
9904
|
import React125 from "react";
|
|
9794
9905
|
|
|
9795
9906
|
// src/components/ConnectOptions/ConnectDetails.tsx
|
|
9796
|
-
import React124, { useContext as
|
|
9907
|
+
import React124, { useContext as useContext20, useEffect as useEffect22 } from "react";
|
|
9797
9908
|
|
|
9798
9909
|
// src/utils/colors.ts
|
|
9799
9910
|
var convertHexToRGBA = (hexCode, opacity = 1) => {
|
|
@@ -9993,10 +10104,10 @@ var ScanIcon = () => /* @__PURE__ */ React114.createElement(AsyncImage, {
|
|
|
9993
10104
|
});
|
|
9994
10105
|
|
|
9995
10106
|
// src/components/ConnectOptions/DesktopOptions.tsx
|
|
9996
|
-
import React123, { Fragment as Fragment6, useContext as
|
|
10107
|
+
import React123, { Fragment as Fragment6, useContext as useContext19, useEffect as useEffect21, useRef as useRef9, useState as useState31 } from "react";
|
|
9997
10108
|
|
|
9998
10109
|
// src/components/ConnectModal/ConnectModalIntro.tsx
|
|
9999
|
-
import React120, { useContext as
|
|
10110
|
+
import React120, { useContext as useContext18 } from "react";
|
|
10000
10111
|
|
|
10001
10112
|
// src/components/Disclaimer/DisclaimerLink.tsx
|
|
10002
10113
|
import React115 from "react";
|
|
@@ -10024,13 +10135,13 @@ var DisclaimerText = ({ children }) => {
|
|
|
10024
10135
|
};
|
|
10025
10136
|
|
|
10026
10137
|
// src/components/FunkitProvider/AppContext.ts
|
|
10027
|
-
import { createContext as
|
|
10138
|
+
import { createContext as createContext15 } from "react";
|
|
10028
10139
|
var defaultAppInfo = {
|
|
10029
10140
|
appName: void 0,
|
|
10030
10141
|
disclaimer: void 0,
|
|
10031
10142
|
learnMoreUrl: "https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"
|
|
10032
10143
|
};
|
|
10033
|
-
var AppContext =
|
|
10144
|
+
var AppContext = createContext15(defaultAppInfo);
|
|
10034
10145
|
|
|
10035
10146
|
// src/components/Icons/Assets.tsx
|
|
10036
10147
|
import React118 from "react";
|
|
@@ -10061,8 +10172,8 @@ function ConnectModalIntro({
|
|
|
10061
10172
|
compactModeEnabled = false,
|
|
10062
10173
|
getWallet
|
|
10063
10174
|
}) {
|
|
10064
|
-
const { disclaimer: Disclaimer, learnMoreUrl } =
|
|
10065
|
-
const { i18n: i18n2 } =
|
|
10175
|
+
const { disclaimer: Disclaimer, learnMoreUrl } = useContext18(AppContext);
|
|
10176
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
10066
10177
|
return /* @__PURE__ */ React120.createElement(React120.Fragment, null, /* @__PURE__ */ React120.createElement(Box, {
|
|
10067
10178
|
alignItems: "center",
|
|
10068
10179
|
color: "accentColor",
|
|
@@ -10212,13 +10323,13 @@ function DesktopOptions({ onClose }) {
|
|
|
10212
10323
|
const [qrCodeUri, setQrCodeUri] = useState31();
|
|
10213
10324
|
const hasQrCode = !!(selectedWallet == null ? void 0 : selectedWallet.qrCode) && qrCodeUri;
|
|
10214
10325
|
const [connectionError, setConnectionError] = useState31(false);
|
|
10215
|
-
const modalSize =
|
|
10326
|
+
const modalSize = useContext19(ModalSizeContext);
|
|
10216
10327
|
const compactModeEnabled = modalSize === ModalSizeOptions.COMPACT;
|
|
10217
|
-
const { disclaimer: Disclaimer } =
|
|
10218
|
-
const { i18n: i18n2 } =
|
|
10328
|
+
const { disclaimer: Disclaimer } = useContext19(AppContext);
|
|
10329
|
+
const { i18n: i18n2 } = useContext19(I18nContext);
|
|
10219
10330
|
const safari = isSafari();
|
|
10220
10331
|
const initialized = useRef9(false);
|
|
10221
|
-
const { connector } =
|
|
10332
|
+
const { connector } = useContext19(WalletButtonContext);
|
|
10222
10333
|
const mergeEIP6963WithRkConnectors = !connector;
|
|
10223
10334
|
const wallets = useWalletConnectors(mergeEIP6963WithRkConnectors).filter((wallet) => wallet.ready || !!wallet.extensionDownloadUrl).sort((a, b) => a.groupIndex - b.groupIndex);
|
|
10224
10335
|
const groupedWallets = groupBy(wallets, (wallet) => wallet.groupName);
|
|
@@ -10637,7 +10748,7 @@ function GetDetail({
|
|
|
10637
10748
|
(wallet) => wallet.isFunkitSdkConnector
|
|
10638
10749
|
);
|
|
10639
10750
|
const shownWallets = wallets.splice(0, 5);
|
|
10640
|
-
const { i18n: i18n2 } =
|
|
10751
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
10641
10752
|
return /* @__PURE__ */ React124.createElement(Box, {
|
|
10642
10753
|
alignItems: "center",
|
|
10643
10754
|
display: "flex",
|
|
@@ -10761,8 +10872,8 @@ function ConnectDetail({
|
|
|
10761
10872
|
const funkitConfig = useFunkitConfig();
|
|
10762
10873
|
const appConfig = {
|
|
10763
10874
|
name: funkitConfig.appName,
|
|
10764
|
-
logoSrc: funkitConfig.appLogoSrc
|
|
10765
|
-
logoBackground:
|
|
10875
|
+
logoSrc: funkitConfig.appLogoSrc,
|
|
10876
|
+
logoBackground: funkitConfig.appLogoBackgroundColor
|
|
10766
10877
|
};
|
|
10767
10878
|
const hasExtension = !!wallet.extensionDownloadUrl;
|
|
10768
10879
|
const hasQrCode = qrCode && qrCodeUri;
|
|
@@ -11006,7 +11117,7 @@ function DownloadOptionsDetail({
|
|
|
11006
11117
|
}) {
|
|
11007
11118
|
const browser = getBrowser();
|
|
11008
11119
|
const platform = getPlatform();
|
|
11009
|
-
const modalSize =
|
|
11120
|
+
const modalSize = useContext20(ModalSizeContext);
|
|
11010
11121
|
const isCompact = modalSize === "compact";
|
|
11011
11122
|
const {
|
|
11012
11123
|
desktop,
|
|
@@ -11015,7 +11126,7 @@ function DownloadOptionsDetail({
|
|
|
11015
11126
|
extensionDownloadUrl,
|
|
11016
11127
|
mobileDownloadUrl
|
|
11017
11128
|
} = wallet;
|
|
11018
|
-
const { i18n: i18n2 } =
|
|
11129
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
11019
11130
|
useEffect22(() => {
|
|
11020
11131
|
preloadCreateIcon();
|
|
11021
11132
|
preloadScanIcon();
|
|
@@ -11092,7 +11203,7 @@ function DownloadDetail({
|
|
|
11092
11203
|
wallet
|
|
11093
11204
|
}) {
|
|
11094
11205
|
const { downloadUrls, qrCode } = wallet;
|
|
11095
|
-
const { i18n: i18n2 } =
|
|
11206
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
11096
11207
|
useEffect22(() => {
|
|
11097
11208
|
preloadCreateIcon();
|
|
11098
11209
|
preloadScanIcon();
|
|
@@ -11152,7 +11263,7 @@ function InstructionMobileDetail({
|
|
|
11152
11263
|
wallet
|
|
11153
11264
|
}) {
|
|
11154
11265
|
var _a, _b, _c, _d;
|
|
11155
|
-
const { i18n: i18n2 } =
|
|
11266
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
11156
11267
|
return /* @__PURE__ */ React124.createElement(Box, {
|
|
11157
11268
|
alignItems: "center",
|
|
11158
11269
|
display: "flex",
|
|
@@ -11230,7 +11341,7 @@ function InstructionExtensionDetail({
|
|
|
11230
11341
|
wallet
|
|
11231
11342
|
}) {
|
|
11232
11343
|
var _a, _b, _c, _d;
|
|
11233
|
-
const { i18n: i18n2 } =
|
|
11344
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
11234
11345
|
return /* @__PURE__ */ React124.createElement(Box, {
|
|
11235
11346
|
alignItems: "center",
|
|
11236
11347
|
display: "flex",
|
|
@@ -11309,7 +11420,7 @@ function InstructionDesktopDetail({
|
|
|
11309
11420
|
wallet
|
|
11310
11421
|
}) {
|
|
11311
11422
|
var _a, _b, _c, _d;
|
|
11312
|
-
const { i18n: i18n2 } =
|
|
11423
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
11313
11424
|
return /* @__PURE__ */ React124.createElement(Box, {
|
|
11314
11425
|
alignItems: "center",
|
|
11315
11426
|
display: "flex",
|
|
@@ -11506,7 +11617,7 @@ function FunConnectOptions({ onClose }) {
|
|
|
11506
11617
|
}
|
|
11507
11618
|
|
|
11508
11619
|
// src/components/SignIn/SignIn.tsx
|
|
11509
|
-
import React127, { useCallback as useCallback19, useContext as
|
|
11620
|
+
import React127, { useCallback as useCallback19, useContext as useContext21, useRef as useRef10 } from "react";
|
|
11510
11621
|
import { UserRejectedRequestError } from "viem";
|
|
11511
11622
|
import { useAccount as useAccount8, useSignMessage } from "wagmi";
|
|
11512
11623
|
var signInIcon = async () => (await import("./sign-FZVB2CS6.js")).default;
|
|
@@ -11514,7 +11625,7 @@ function SignIn({
|
|
|
11514
11625
|
onClose,
|
|
11515
11626
|
onCloseModal
|
|
11516
11627
|
}) {
|
|
11517
|
-
const { i18n: i18n2 } =
|
|
11628
|
+
const { i18n: i18n2 } = useContext21(I18nContext);
|
|
11518
11629
|
const [{ status, ...state }, setState] = React127.useState({ status: "idle" });
|
|
11519
11630
|
const authAdapter = useAuthenticationAdapter();
|
|
11520
11631
|
const getNonce = useCallback19(async () => {
|
|
@@ -11731,7 +11842,7 @@ import React138 from "react";
|
|
|
11731
11842
|
|
|
11732
11843
|
// src/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.tsx
|
|
11733
11844
|
import {
|
|
11734
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
11845
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9
|
|
11735
11846
|
} from "@funkit/core";
|
|
11736
11847
|
import React137, { useMemo as useMemo31 } from "react";
|
|
11737
11848
|
|
|
@@ -11755,7 +11866,7 @@ var EditIcon = ({ size = "24" }) => /* @__PURE__ */ React129.createElement("svg"
|
|
|
11755
11866
|
})));
|
|
11756
11867
|
|
|
11757
11868
|
// src/components/FunCheckoutModal/FunCheckoutModal.tsx
|
|
11758
|
-
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
11869
|
+
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8 } from "@funkit/core";
|
|
11759
11870
|
import React135, { useCallback as useCallback24, useEffect as useEffect25, useMemo as useMemo29, useState as useState36 } from "react";
|
|
11760
11871
|
|
|
11761
11872
|
// src/hooks/useCheckoutAccountBalanceTransfer.ts
|
|
@@ -11816,7 +11927,7 @@ function useCheckoutAccountBalanceTransfer(checkoutId) {
|
|
|
11816
11927
|
// src/components/FunCheckoutModal/FunCheckoutConfirmationStep.tsx
|
|
11817
11928
|
import {
|
|
11818
11929
|
ERC20_ABI,
|
|
11819
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
11930
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6,
|
|
11820
11931
|
getPaymasterDataForCheckoutSponsoredTransfer,
|
|
11821
11932
|
isAddress as isAddress3,
|
|
11822
11933
|
meshPreviewTransfer as meshPreviewTransfer3
|
|
@@ -11956,7 +12067,7 @@ function FunCheckoutConfirmationStep({
|
|
|
11956
12067
|
sourceAssetChainId,
|
|
11957
12068
|
currentChain: chain
|
|
11958
12069
|
});
|
|
11959
|
-
const chainName =
|
|
12070
|
+
const chainName = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6[sourceAssetChainId].chainInfo.name;
|
|
11960
12071
|
setPostCheckoutStepMessage(
|
|
11961
12072
|
WEB3_ACCOUNT_BALANCE_MESSAGE_GENERATOR[1 /* SWITCH_CHAIN */](chainName)
|
|
11962
12073
|
);
|
|
@@ -12132,7 +12243,7 @@ function FunCheckoutConfirmationStep({
|
|
|
12132
12243
|
]);
|
|
12133
12244
|
const paymentTokenString = useMemo26(() => {
|
|
12134
12245
|
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
12135
|
-
const sourceChainName = ((_a2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _a2.chainId) ? (_d2 = (_c2 =
|
|
12246
|
+
const sourceChainName = ((_a2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _a2.chainId) ? (_d2 = (_c2 = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6) == null ? void 0 : _c2[(_b2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _b2.chainId]) == null ? void 0 : _d2.name : "";
|
|
12136
12247
|
return formatCryptoAndStringify(
|
|
12137
12248
|
parseFloat(((_e2 = checkoutItem == null ? void 0 : checkoutItem.latestQuote) == null ? void 0 : _e2.finalPaymentTokenAmount) || "0"),
|
|
12138
12249
|
`${(_f2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _f2.symbol}${sourceChainName ? ` (${sourceChainName})` : ""}` || ""
|
|
@@ -12261,6 +12372,7 @@ function FunCheckoutInputAmountStep({
|
|
|
12261
12372
|
flexDirection: "column",
|
|
12262
12373
|
gap: "24",
|
|
12263
12374
|
paddingY: "24",
|
|
12375
|
+
width: "full",
|
|
12264
12376
|
className: animateOut ? animateContentOutClass : animateContentInClass
|
|
12265
12377
|
}, /* @__PURE__ */ React131.createElement(Box, {
|
|
12266
12378
|
display: "flex",
|
|
@@ -12271,12 +12383,13 @@ function FunCheckoutInputAmountStep({
|
|
|
12271
12383
|
width: "full"
|
|
12272
12384
|
}, /* @__PURE__ */ React131.createElement(FunInput, {
|
|
12273
12385
|
value: amountInput,
|
|
12274
|
-
placeholder: "0
|
|
12386
|
+
placeholder: "0",
|
|
12275
12387
|
onChange: (newAmount) => setAmountInput(newAmount.target.value),
|
|
12276
|
-
inputProps: { type: "number" },
|
|
12388
|
+
inputProps: { type: "number", autoFocus: true },
|
|
12277
12389
|
inputStyle: {
|
|
12278
|
-
|
|
12279
|
-
|
|
12390
|
+
textAlign: "center",
|
|
12391
|
+
width: "100%",
|
|
12392
|
+
paddingX: "0px",
|
|
12280
12393
|
fontWeight: 800,
|
|
12281
12394
|
fontStyle: "normal",
|
|
12282
12395
|
fontFamily: "inherit",
|
|
@@ -12312,7 +12425,7 @@ function FunCheckoutInputAmountStep({
|
|
|
12312
12425
|
// src/components/FunCheckoutModal/FunCheckoutSelectAssetStep.tsx
|
|
12313
12426
|
import {
|
|
12314
12427
|
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS3,
|
|
12315
|
-
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as
|
|
12428
|
+
FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO7
|
|
12316
12429
|
} from "@funkit/core";
|
|
12317
12430
|
import React133, { useCallback as useCallback23, useEffect as useEffect24, useMemo as useMemo28, useState as useState35 } from "react";
|
|
12318
12431
|
|
|
@@ -12338,7 +12451,7 @@ function MeshOrAccountSelectAsset({
|
|
|
12338
12451
|
onFinish,
|
|
12339
12452
|
isOnFinishLoading
|
|
12340
12453
|
}) {
|
|
12341
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k
|
|
12454
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
12342
12455
|
const [accountHoldingsMap, setAccountHoldingsMap] = useState35({});
|
|
12343
12456
|
const [isLoadingAssets, setIsLoadingAssets] = useState35(true);
|
|
12344
12457
|
const [selectedChainTokenSymbol, setSelectedChainTokenSymbol] = useState35("");
|
|
@@ -12353,7 +12466,6 @@ function MeshOrAccountSelectAsset({
|
|
|
12353
12466
|
((_d = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _d.paymentMethod) === "balance" /* ACCOUNT_BALANCE */
|
|
12354
12467
|
);
|
|
12355
12468
|
const { walletAssets } = useGeneralWallet();
|
|
12356
|
-
const { isCheckoutPostActionRequired } = useCheckoutType(checkoutItem);
|
|
12357
12469
|
const generateAccountHoldingsMapForMesh = useCallback23(async () => {
|
|
12358
12470
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
12359
12471
|
if (funkitConfig == null ? void 0 : funkitConfig.apiKey) {
|
|
@@ -12434,18 +12546,18 @@ function MeshOrAccountSelectAsset({
|
|
|
12434
12546
|
const generateAccountHoldingsMapForBalance = useCallback23(async () => {
|
|
12435
12547
|
const itemMap = {};
|
|
12436
12548
|
const checkoutTargetChainId = checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetChain;
|
|
12437
|
-
const isCheckoutOnMainnet =
|
|
12549
|
+
const isCheckoutOnMainnet = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO7[checkoutTargetChainId || ""].isFiatCheckoutSupported;
|
|
12438
12550
|
Object.values(walletAssets || {}).forEach((fwAsset) => {
|
|
12439
12551
|
var _a2, _b2, _c2, _d2;
|
|
12440
12552
|
if (!fwAsset.symbol || !fwAsset.contractAddress)
|
|
12441
12553
|
return;
|
|
12442
|
-
const isAssetOnMainnet =
|
|
12554
|
+
const isAssetOnMainnet = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO7[fwAsset.chainId].isFiatCheckoutSupported;
|
|
12443
12555
|
if (isCheckoutOnMainnet && !isAssetOnMainnet)
|
|
12444
12556
|
return;
|
|
12445
12557
|
if (!isCheckoutOnMainnet && checkoutTargetChainId !== fwAsset.chainId)
|
|
12446
12558
|
return;
|
|
12447
12559
|
let normalizedTokenAddress = fwAsset.contractAddress;
|
|
12448
|
-
if (((_d2 = (_c2 = (_b2 = (_a2 =
|
|
12560
|
+
if (((_d2 = (_c2 = (_b2 = (_a2 = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO7) == null ? void 0 : _a2[fwAsset.chainId]) == null ? void 0 : _b2.nativeCurrency) == null ? void 0 : _c2.symbol) == null ? void 0 : _d2.toUpperCase()) === fwAsset.symbol.toUpperCase()) {
|
|
12449
12561
|
normalizedTokenAddress = FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS3;
|
|
12450
12562
|
}
|
|
12451
12563
|
const chainSymbol = combineChainSymbolOrAddress2({
|
|
@@ -12493,15 +12605,21 @@ function MeshOrAccountSelectAsset({
|
|
|
12493
12605
|
generateAccountHoldingsMapForBalance
|
|
12494
12606
|
]);
|
|
12495
12607
|
const assetOptions = useMemo28(() => {
|
|
12496
|
-
var _a2;
|
|
12497
|
-
|
|
12608
|
+
var _a2, _b2;
|
|
12609
|
+
if (!checkoutItem || !((_a2 = checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _a2.paymentMethod))
|
|
12610
|
+
return [];
|
|
12611
|
+
return (_b2 = Object.keys(accountHoldingsMap)) == null ? void 0 : _b2.map((chainSymbolKey) => {
|
|
12498
12612
|
var _a3;
|
|
12499
12613
|
const item = accountHoldingsMap[chainSymbolKey];
|
|
12500
|
-
const
|
|
12614
|
+
const { isUsable, reason } = isAssetUsableToPayForCheckout(
|
|
12615
|
+
checkoutItem,
|
|
12616
|
+
(_a3 = checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _a3.paymentMethod,
|
|
12617
|
+
item.pickedChainId,
|
|
12618
|
+
item.tokenAddress
|
|
12619
|
+
);
|
|
12501
12620
|
const isKnownToken = !!item.usdAmount;
|
|
12502
|
-
const
|
|
12503
|
-
const
|
|
12504
|
-
const badgeText = isSameAsPurchasingToken ? "Not Applicable" : !isKnownToken ? "Unknown" : !isPickedChainSupportedForCheckout ? "Unsupported" : "";
|
|
12621
|
+
const isTokenDisabled = !isUsable || !isKnownToken;
|
|
12622
|
+
const badgeText = !isUsable ? reason : !isKnownToken ? "Unknown" : "";
|
|
12505
12623
|
return {
|
|
12506
12624
|
value: chainSymbolKey,
|
|
12507
12625
|
isDisabled: isTokenDisabled,
|
|
@@ -12537,13 +12655,7 @@ function MeshOrAccountSelectAsset({
|
|
|
12537
12655
|
}).sort(
|
|
12538
12656
|
(a, b) => Number(a.isDisabled) - Number(b.isDisabled) || ((b == null ? void 0 : b.labelMeta) || 0) - ((a == null ? void 0 : a.labelMeta) || 0)
|
|
12539
12657
|
);
|
|
12540
|
-
}, [
|
|
12541
|
-
accountHoldingsMap,
|
|
12542
|
-
checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetAsset,
|
|
12543
|
-
checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetChain,
|
|
12544
|
-
(_l = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _l.paymentMethod,
|
|
12545
|
-
isCheckoutPostActionRequired
|
|
12546
|
-
]);
|
|
12658
|
+
}, [accountHoldingsMap, checkoutItem]);
|
|
12547
12659
|
const onClickContinue = useCallback23(() => {
|
|
12548
12660
|
if (selectedChainTokenSymbol && !(checkoutItem == null ? void 0 : checkoutItem.isDrafting)) {
|
|
12549
12661
|
const tokenItem = accountHoldingsMap[selectedChainTokenSymbol];
|
|
@@ -12937,7 +13049,7 @@ function FunCheckoutModal({
|
|
|
12937
13049
|
const targetChainId = checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetChain.toString();
|
|
12938
13050
|
let sourceTokenAddress;
|
|
12939
13051
|
let sourceTokenTicker;
|
|
12940
|
-
if (((_a2 = checkoutItem == null ? void 0 : checkoutItem.initSettings) == null ? void 0 : _a2.config.targetAsset) === NATIVE_TOKEN &&
|
|
13052
|
+
if (((_a2 = checkoutItem == null ? void 0 : checkoutItem.initSettings) == null ? void 0 : _a2.config.targetAsset) === NATIVE_TOKEN && FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO8[targetChainId].nativeCurrency.symbol === "ETH" /* ETH */) {
|
|
12941
13053
|
sourceTokenAddress = NATIVE_TOKEN;
|
|
12942
13054
|
sourceTokenTicker = "ETH" /* ETH */;
|
|
12943
13055
|
} else {
|
|
@@ -13164,7 +13276,7 @@ function CheckoutPrimaryInfoSnapshot({
|
|
|
13164
13276
|
fontSize: "12px",
|
|
13165
13277
|
lineHeight: "12px",
|
|
13166
13278
|
fontStyle: "normal",
|
|
13167
|
-
fontFamily:
|
|
13279
|
+
fontFamily: "inherit"
|
|
13168
13280
|
},
|
|
13169
13281
|
focused: true,
|
|
13170
13282
|
inputProps: { autoFocus: true },
|
|
@@ -13231,6 +13343,7 @@ function FunCheckoutHistoryDetail({
|
|
|
13231
13343
|
checkoutHistoryInfo
|
|
13232
13344
|
}) {
|
|
13233
13345
|
const checkoutItem = checkoutHistoryInfo.clientMetadata;
|
|
13346
|
+
console.log("checkoutItem", checkoutItem);
|
|
13234
13347
|
const { isCheckoutDirectCrFlow } = useCheckoutType(checkoutItem);
|
|
13235
13348
|
const {
|
|
13236
13349
|
isProcessing,
|
|
@@ -13246,9 +13359,20 @@ function FunCheckoutHistoryDetail({
|
|
|
13246
13359
|
checkoutHistoryInfo.depositAddr
|
|
13247
13360
|
);
|
|
13248
13361
|
useWalletAssetsListener(isProcessing || isCompleted);
|
|
13362
|
+
const estimatedEndTimeInfo = useMemo31(() => {
|
|
13363
|
+
var _a;
|
|
13364
|
+
const estimatedEndTimeMs = (((_a = checkoutItem == null ? void 0 : checkoutItem.latestQuote) == null ? void 0 : _a.finalTimeEstimationMs) || 0) + checkoutHistoryInfo.createdTimeMs;
|
|
13365
|
+
const estimatedEndTimeFromNowMs = estimatedEndTimeMs - Date.now();
|
|
13366
|
+
const isExceededEstimation = estimatedEndTimeFromNowMs <= 0;
|
|
13367
|
+
return {
|
|
13368
|
+
estimatedEndTimeMs,
|
|
13369
|
+
estimatedEndTimeFromNowMs,
|
|
13370
|
+
isExceededEstimation
|
|
13371
|
+
};
|
|
13372
|
+
}, [checkoutHistoryInfo.createdTimeMs, checkoutItem]);
|
|
13249
13373
|
const timelineLabels = useMemo31(() => {
|
|
13250
|
-
const fromExplorerInfo =
|
|
13251
|
-
const toExplorerInfo =
|
|
13374
|
+
const fromExplorerInfo = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9[checkoutHistoryInfo.fromChainId].explorerInfo;
|
|
13375
|
+
const toExplorerInfo = FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO9[checkoutHistoryInfo.toChainId].explorerInfo;
|
|
13252
13376
|
return [
|
|
13253
13377
|
{
|
|
13254
13378
|
text: "Order Submitted",
|
|
@@ -13273,7 +13397,13 @@ function FunCheckoutHistoryDetail({
|
|
|
13273
13397
|
)
|
|
13274
13398
|
) : isTerminal ? formatTimestamp(
|
|
13275
13399
|
new Date(checkoutHistoryInfo.lastUpdatedTimeMs)
|
|
13276
|
-
) : ""
|
|
13400
|
+
) : estimatedEndTimeInfo.isExceededEstimation ? "" : `Estimated to complete in ${formatSecondsToReadableForm(
|
|
13401
|
+
Math.floor(
|
|
13402
|
+
estimatedEndTimeInfo.estimatedEndTimeFromNowMs / 1e3
|
|
13403
|
+
),
|
|
13404
|
+
true,
|
|
13405
|
+
true
|
|
13406
|
+
)}`,
|
|
13277
13407
|
...isCompleted ? {
|
|
13278
13408
|
linkText: `View on ${toExplorerInfo.name}`,
|
|
13279
13409
|
linkUrl: `${toExplorerInfo.url}/address/${checkoutHistoryInfo.recipientAddr}`
|
|
@@ -13293,6 +13423,8 @@ function FunCheckoutHistoryDetail({
|
|
|
13293
13423
|
isError,
|
|
13294
13424
|
isExpired,
|
|
13295
13425
|
isTerminal,
|
|
13426
|
+
estimatedEndTimeInfo.isExceededEstimation,
|
|
13427
|
+
estimatedEndTimeInfo.estimatedEndTimeFromNowMs,
|
|
13296
13428
|
isCompleted
|
|
13297
13429
|
]);
|
|
13298
13430
|
return /* @__PURE__ */ React137.createElement(Box, {
|
|
@@ -13315,7 +13447,7 @@ function FunCheckoutHistoryDetail({
|
|
|
13315
13447
|
step: isCheckoutDirectCrFlow ? 2 : isTerminal ? 3 : 2,
|
|
13316
13448
|
totalSteps: timelineLabels.length,
|
|
13317
13449
|
labels: timelineLabels
|
|
13318
|
-
}), isTerminal ? null : /* @__PURE__ */ React137.createElement(Box, {
|
|
13450
|
+
}), isTerminal || !isCheckoutDirectCrFlow ? null : /* @__PURE__ */ React137.createElement(Box, {
|
|
13319
13451
|
display: "flex",
|
|
13320
13452
|
flexDirection: "column",
|
|
13321
13453
|
alignItems: "center",
|
|
@@ -13323,7 +13455,7 @@ function FunCheckoutHistoryDetail({
|
|
|
13323
13455
|
}, /* @__PURE__ */ React137.createElement(Text, {
|
|
13324
13456
|
size: "12",
|
|
13325
13457
|
color: "modalTextDim"
|
|
13326
|
-
},
|
|
13458
|
+
}, "Funds may take up to 10 minutes to arrive."))), isFailedFinal ? /* @__PURE__ */ React137.createElement(FunToast, {
|
|
13327
13459
|
type: 1 /* ERROR */,
|
|
13328
13460
|
title: "Order Failed",
|
|
13329
13461
|
isDescriptionText: false,
|
|
@@ -13424,7 +13556,7 @@ function useModalStateValueWithId() {
|
|
|
13424
13556
|
}, [])
|
|
13425
13557
|
};
|
|
13426
13558
|
}
|
|
13427
|
-
var ModalContext =
|
|
13559
|
+
var ModalContext = createContext16({
|
|
13428
13560
|
accountModalOpen: false,
|
|
13429
13561
|
chainModalOpen: false,
|
|
13430
13562
|
connectModalOpen: false,
|
|
@@ -13557,7 +13689,7 @@ function ModalProvider({ children }) {
|
|
|
13557
13689
|
}));
|
|
13558
13690
|
}
|
|
13559
13691
|
function useModalState() {
|
|
13560
|
-
const { accountModalOpen, chainModalOpen, connectModalOpen } =
|
|
13692
|
+
const { accountModalOpen, chainModalOpen, connectModalOpen } = useContext22(ModalContext);
|
|
13561
13693
|
return {
|
|
13562
13694
|
accountModalOpen,
|
|
13563
13695
|
chainModalOpen,
|
|
@@ -13565,19 +13697,19 @@ function useModalState() {
|
|
|
13565
13697
|
};
|
|
13566
13698
|
}
|
|
13567
13699
|
function useAccountModal() {
|
|
13568
|
-
const { accountModalOpen, openAccountModal } =
|
|
13700
|
+
const { accountModalOpen, openAccountModal } = useContext22(ModalContext);
|
|
13569
13701
|
return { accountModalOpen, openAccountModal };
|
|
13570
13702
|
}
|
|
13571
13703
|
function useChainModal() {
|
|
13572
|
-
const { chainModalOpen, openChainModal } =
|
|
13704
|
+
const { chainModalOpen, openChainModal } = useContext22(ModalContext);
|
|
13573
13705
|
return { chainModalOpen, openChainModal };
|
|
13574
13706
|
}
|
|
13575
13707
|
function useWalletConnectOpenState() {
|
|
13576
|
-
const { isWalletConnectModalOpen, setIsWalletConnectModalOpen } =
|
|
13708
|
+
const { isWalletConnectModalOpen, setIsWalletConnectModalOpen } = useContext22(ModalContext);
|
|
13577
13709
|
return { isWalletConnectModalOpen, setIsWalletConnectModalOpen };
|
|
13578
13710
|
}
|
|
13579
13711
|
function useConnectModal() {
|
|
13580
|
-
const { connectModalOpen, openConnectModal } =
|
|
13712
|
+
const { connectModalOpen, openConnectModal } = useContext22(ModalContext);
|
|
13581
13713
|
const { isWalletConnectModalOpen } = useWalletConnectOpenState();
|
|
13582
13714
|
return {
|
|
13583
13715
|
connectModalOpen: connectModalOpen || isWalletConnectModalOpen,
|
|
@@ -13585,11 +13717,11 @@ function useConnectModal() {
|
|
|
13585
13717
|
};
|
|
13586
13718
|
}
|
|
13587
13719
|
function useFunCheckoutModal() {
|
|
13588
|
-
const { funCheckoutModalOpen, openFunCheckoutModal } =
|
|
13720
|
+
const { funCheckoutModalOpen, openFunCheckoutModal } = useContext22(ModalContext);
|
|
13589
13721
|
return { funCheckoutModalOpen, openFunCheckoutModal };
|
|
13590
13722
|
}
|
|
13591
13723
|
function useFunCheckoutHistoryModal() {
|
|
13592
|
-
const { funCheckoutHistoryModalOpen, openFunCheckoutHistoryModal } =
|
|
13724
|
+
const { funCheckoutHistoryModalOpen, openFunCheckoutHistoryModal } = useContext22(ModalContext);
|
|
13593
13725
|
return { funCheckoutHistoryModalOpen, openFunCheckoutHistoryModal };
|
|
13594
13726
|
}
|
|
13595
13727
|
|
|
@@ -13799,7 +13931,7 @@ var ERROR_MESSAGES = {
|
|
|
13799
13931
|
PRIVY_PROVIDER_NOT_INITIALIZED: "Privy wallet provider not initialized",
|
|
13800
13932
|
PRIVY_USER_NOT_INITIALIZED: "Privy user not initialized"
|
|
13801
13933
|
};
|
|
13802
|
-
var FunkitWeb2Context =
|
|
13934
|
+
var FunkitWeb2Context = createContext17({
|
|
13803
13935
|
isSendingOtpEmail: false,
|
|
13804
13936
|
handleSendOtpEmail: () => Promise.resolve({ success: false, error: "" }),
|
|
13805
13937
|
handleOauthRedirect: () => Promise.resolve(void 0),
|
|
@@ -13816,6 +13948,12 @@ var PRIVY_IFRAME_ID = "privy-funkit-iframe";
|
|
|
13816
13948
|
var PRIVY_OAUTH_CODE_URL_PARAM = "privy_oauth_code";
|
|
13817
13949
|
var PRIVY_OAUTH_STATE_URL_PARAM = "privy_oauth_state";
|
|
13818
13950
|
var RESEND_EMAIL_TIMEOUT_MS = 3e3;
|
|
13951
|
+
var FunkitOauthLoginMethod = /* @__PURE__ */ ((FunkitOauthLoginMethod2) => {
|
|
13952
|
+
FunkitOauthLoginMethod2["GOOGLE"] = "google_oauth" /* google_oauth */;
|
|
13953
|
+
FunkitOauthLoginMethod2["TWITTER"] = "twitter_oauth" /* twitter_oauth */;
|
|
13954
|
+
FunkitOauthLoginMethod2["APPLE"] = "apple_oauth" /* apple_oauth */;
|
|
13955
|
+
return FunkitOauthLoginMethod2;
|
|
13956
|
+
})(FunkitOauthLoginMethod || {});
|
|
13819
13957
|
var getLoginMethodFromCache = () => {
|
|
13820
13958
|
try {
|
|
13821
13959
|
return window.localStorage.getItem(LOGIN_METHOD_CACHE) || "";
|
|
@@ -14160,7 +14298,7 @@ var FunkitWeb2Provider = ({
|
|
|
14160
14298
|
style: { display: "none" }
|
|
14161
14299
|
}) : null, children);
|
|
14162
14300
|
};
|
|
14163
|
-
var useFunkitWeb2Login = () =>
|
|
14301
|
+
var useFunkitWeb2Login = () => useContext23(FunkitWeb2Context);
|
|
14164
14302
|
|
|
14165
14303
|
// src/hooks/useConnectionStatus.ts
|
|
14166
14304
|
function useConnectionStatus() {
|
|
@@ -14183,8 +14321,8 @@ function useConnectionStatus() {
|
|
|
14183
14321
|
}
|
|
14184
14322
|
|
|
14185
14323
|
// src/components/FunkitProvider/ShowBalanceContext.tsx
|
|
14186
|
-
import React142, { createContext as
|
|
14187
|
-
var ShowBalanceContext =
|
|
14324
|
+
import React142, { createContext as createContext18, useContext as useContext24, useState as useState40 } from "react";
|
|
14325
|
+
var ShowBalanceContext = createContext18({
|
|
14188
14326
|
showBalance: void 0,
|
|
14189
14327
|
setShowBalance: () => void 0
|
|
14190
14328
|
});
|
|
@@ -14194,7 +14332,7 @@ function ShowBalanceProvider({ children }) {
|
|
|
14194
14332
|
value: { showBalance, setShowBalance }
|
|
14195
14333
|
}, children);
|
|
14196
14334
|
}
|
|
14197
|
-
var useShowBalance = () =>
|
|
14335
|
+
var useShowBalance = () => useContext24(ShowBalanceContext);
|
|
14198
14336
|
|
|
14199
14337
|
// src/components/Icons/Dropdown.tsx
|
|
14200
14338
|
import React143 from "react";
|
|
@@ -14213,7 +14351,7 @@ var DropdownIcon = () => /* @__PURE__ */ React143.createElement("svg", {
|
|
|
14213
14351
|
}));
|
|
14214
14352
|
|
|
14215
14353
|
// src/components/ConnectButton/ConnectButtonRenderer.tsx
|
|
14216
|
-
import React145, { useContext as
|
|
14354
|
+
import React145, { useContext as useContext26 } from "react";
|
|
14217
14355
|
import { useAccount as useAccount16, useBalance, useConfig as useConfig5 } from "wagmi";
|
|
14218
14356
|
|
|
14219
14357
|
// src/hooks/useIsMounted.ts
|
|
@@ -14258,7 +14396,7 @@ function useChainId() {
|
|
|
14258
14396
|
}
|
|
14259
14397
|
|
|
14260
14398
|
// src/transactions/TransactionStoreContext.tsx
|
|
14261
|
-
import React144, { createContext as
|
|
14399
|
+
import React144, { createContext as createContext19, useContext as useContext25, useEffect as useEffect30, useState as useState42 } from "react";
|
|
14262
14400
|
import { useAccount as useAccount14, usePublicClient } from "wagmi";
|
|
14263
14401
|
|
|
14264
14402
|
// src/transactions/transactionStore.ts
|
|
@@ -14401,7 +14539,7 @@ function createTransactionStore({
|
|
|
14401
14539
|
|
|
14402
14540
|
// src/transactions/TransactionStoreContext.tsx
|
|
14403
14541
|
var storeSingleton;
|
|
14404
|
-
var TransactionStoreContext =
|
|
14542
|
+
var TransactionStoreContext = createContext19(null);
|
|
14405
14543
|
function TransactionStoreProvider({
|
|
14406
14544
|
children
|
|
14407
14545
|
}) {
|
|
@@ -14424,7 +14562,7 @@ function TransactionStoreProvider({
|
|
|
14424
14562
|
}, children);
|
|
14425
14563
|
}
|
|
14426
14564
|
function useTransactionStore() {
|
|
14427
|
-
const store =
|
|
14565
|
+
const store = useContext25(TransactionStoreContext);
|
|
14428
14566
|
if (!store) {
|
|
14429
14567
|
throw new Error("Transaction hooks must be used within FunkitProvider");
|
|
14430
14568
|
}
|
|
@@ -14451,8 +14589,8 @@ function useRecentTransactions() {
|
|
|
14451
14589
|
}
|
|
14452
14590
|
|
|
14453
14591
|
// src/components/FunkitProvider/ShowRecentTransactionsContext.ts
|
|
14454
|
-
import { createContext as
|
|
14455
|
-
var ShowRecentTransactionsContext =
|
|
14592
|
+
import { createContext as createContext20 } from "react";
|
|
14593
|
+
var ShowRecentTransactionsContext = createContext20(false);
|
|
14456
14594
|
|
|
14457
14595
|
// src/components/ConnectButton/abbreviateETHBalance.ts
|
|
14458
14596
|
var units = ["k", "m", "b", "t"];
|
|
@@ -14502,7 +14640,7 @@ function ConnectButtonRenderer({
|
|
|
14502
14640
|
const chainIconUrl = (_c = funkitConnectChain == null ? void 0 : funkitConnectChain.iconUrl) != null ? _c : void 0;
|
|
14503
14641
|
const chainIconBackground = (_d = funkitConnectChain == null ? void 0 : funkitConnectChain.iconBackground) != null ? _d : void 0;
|
|
14504
14642
|
const resolvedChainIconUrl = useAsyncImage(chainIconUrl);
|
|
14505
|
-
const showRecentTransactions =
|
|
14643
|
+
const showRecentTransactions = useContext26(ShowRecentTransactionsContext);
|
|
14506
14644
|
const hasPendingTransactions = useRecentTransactions().some(({ status }) => status === "pending") && showRecentTransactions;
|
|
14507
14645
|
const { showBalance } = useShowBalance();
|
|
14508
14646
|
const computeShouldShowBalance = () => {
|
|
@@ -14570,7 +14708,7 @@ function ChainSelectorButton({
|
|
|
14570
14708
|
chain
|
|
14571
14709
|
}) {
|
|
14572
14710
|
var _a, _b;
|
|
14573
|
-
const { i18n: i18n2 } =
|
|
14711
|
+
const { i18n: i18n2 } = useContext27(I18nContext);
|
|
14574
14712
|
return /* @__PURE__ */ React146.createElement(Box, {
|
|
14575
14713
|
alignItems: "center",
|
|
14576
14714
|
"aria-label": "Chain Selector",
|
|
@@ -14711,7 +14849,7 @@ function ConnectButton({
|
|
|
14711
14849
|
const connectionStatus = useConnectionStatus();
|
|
14712
14850
|
const { setShowBalance } = useShowBalance();
|
|
14713
14851
|
const [ready, setReady] = useState44(false);
|
|
14714
|
-
const { i18n: i18n2 } =
|
|
14852
|
+
const { i18n: i18n2 } = useContext27(I18nContext);
|
|
14715
14853
|
useEffect32(() => {
|
|
14716
14854
|
setShowBalance(showBalance);
|
|
14717
14855
|
if (!ready)
|
|
@@ -14776,7 +14914,7 @@ ConnectButton.Custom = ConnectButtonRenderer;
|
|
|
14776
14914
|
|
|
14777
14915
|
// src/components/FunkitProvider/FunkitProvider.tsx
|
|
14778
14916
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
14779
|
-
import React147, { createContext as
|
|
14917
|
+
import React147, { createContext as createContext21, useContext as useContext28, useEffect as useEffect35 } from "react";
|
|
14780
14918
|
import { useAccountEffect as useAccountEffect3, WagmiProvider } from "wagmi";
|
|
14781
14919
|
|
|
14782
14920
|
// src/css/cssObjectFromTheme.ts
|
|
@@ -15588,7 +15726,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
15588
15726
|
localStorage.setItem(storageKey4, version);
|
|
15589
15727
|
}
|
|
15590
15728
|
function getCurrentSdkVersion() {
|
|
15591
|
-
return "1.0.
|
|
15729
|
+
return "1.0.15";
|
|
15592
15730
|
}
|
|
15593
15731
|
function useFingerprint() {
|
|
15594
15732
|
const fingerprint = useCallback29(() => {
|
|
@@ -15661,7 +15799,7 @@ var MoonPayProvider = (props) => {
|
|
|
15661
15799
|
...props
|
|
15662
15800
|
}, props.children);
|
|
15663
15801
|
};
|
|
15664
|
-
var ThemeIdContext2 =
|
|
15802
|
+
var ThemeIdContext2 = createContext21(void 0);
|
|
15665
15803
|
var attr2 = "data-rk";
|
|
15666
15804
|
var createThemeRootProps2 = (id) => ({ [attr2]: id || "" });
|
|
15667
15805
|
var createThemeRootSelector = (id) => {
|
|
@@ -15692,7 +15830,8 @@ function FunkitProvider(props) {
|
|
|
15692
15830
|
initialChain: initialChainId,
|
|
15693
15831
|
locale: props.locale,
|
|
15694
15832
|
funkitConfig: props.funkitConfig,
|
|
15695
|
-
debug: props.debug
|
|
15833
|
+
debug: props.debug,
|
|
15834
|
+
sandbox: props.sandbox
|
|
15696
15835
|
}, props.children))));
|
|
15697
15836
|
}
|
|
15698
15837
|
function FunkitProviderInner({
|
|
@@ -15703,7 +15842,8 @@ function FunkitProviderInner({
|
|
|
15703
15842
|
initialChain,
|
|
15704
15843
|
locale,
|
|
15705
15844
|
funkitConfig,
|
|
15706
|
-
debug
|
|
15845
|
+
debug,
|
|
15846
|
+
sandbox
|
|
15707
15847
|
}) {
|
|
15708
15848
|
usePreloadImages();
|
|
15709
15849
|
useFingerprint();
|
|
@@ -15715,6 +15855,7 @@ function FunkitProviderInner({
|
|
|
15715
15855
|
...appInfo
|
|
15716
15856
|
};
|
|
15717
15857
|
const avatarContext = avatar != null ? avatar : defaultAvatar;
|
|
15858
|
+
const isSandboxMode = !!sandbox;
|
|
15718
15859
|
const modalSize = ModalSizeOptions.WIDE;
|
|
15719
15860
|
const coolMode = false;
|
|
15720
15861
|
const showRecentTransactions = false;
|
|
@@ -15730,6 +15871,8 @@ function FunkitProviderInner({
|
|
|
15730
15871
|
modalSize
|
|
15731
15872
|
}, /* @__PURE__ */ React147.createElement(FunkitWeb2Provider, null, /* @__PURE__ */ React147.createElement(GeneralWalletProvider, null, /* @__PURE__ */ React147.createElement(FunkitCheckoutProvider, null, /* @__PURE__ */ React147.createElement(ShowRecentTransactionsContext.Provider, {
|
|
15732
15873
|
value: showRecentTransactions
|
|
15874
|
+
}, /* @__PURE__ */ React147.createElement(FunkitSandboxContext.Provider, {
|
|
15875
|
+
value: isSandboxMode
|
|
15733
15876
|
}, /* @__PURE__ */ React147.createElement(FunkitMeshProvider, null, /* @__PURE__ */ React147.createElement(TransactionStoreProvider, null, /* @__PURE__ */ React147.createElement(AvatarContext.Provider, {
|
|
15734
15877
|
value: avatarContext
|
|
15735
15878
|
}, /* @__PURE__ */ React147.createElement(AppContext.Provider, {
|
|
@@ -15737,7 +15880,7 @@ function FunkitProviderInner({
|
|
|
15737
15880
|
}, /* @__PURE__ */ React147.createElement(ThemeIdContext2.Provider, {
|
|
15738
15881
|
value: id
|
|
15739
15882
|
}, /* @__PURE__ */ React147.createElement(ShowBalanceProvider, null, /* @__PURE__ */ React147.createElement(FunToastProvider, null, /* @__PURE__ */ React147.createElement(MoonPayProvider, {
|
|
15740
|
-
apiKey: "pk_live_IxayBRQuBC3RzpPZkbGPrwUsRWAaeO",
|
|
15883
|
+
apiKey: isSandboxMode ? "pk_test_dWfAhBbvVexIId9S5hPd78mKM7ivIsqu" : "pk_live_IxayBRQuBC3RzpPZkbGPrwUsRWAaeO",
|
|
15741
15884
|
debug: !!debug
|
|
15742
15885
|
}, /* @__PURE__ */ React147.createElement(ModalProvider, null, activeTheme ? /* @__PURE__ */ React147.createElement("div", {
|
|
15743
15886
|
...createThemeRootProps2(id),
|
|
@@ -15753,11 +15896,11 @@ function FunkitProviderInner({
|
|
|
15753
15896
|
)}}`
|
|
15754
15897
|
].join("")
|
|
15755
15898
|
}
|
|
15756
|
-
}), children) : children)))))))))))))))))));
|
|
15899
|
+
}), children) : children))))))))))))))))))));
|
|
15757
15900
|
}
|
|
15758
15901
|
|
|
15759
15902
|
// src/components/WalletButton/WalletButton.tsx
|
|
15760
|
-
import React149, { useContext as
|
|
15903
|
+
import React149, { useContext as useContext30 } from "react";
|
|
15761
15904
|
|
|
15762
15905
|
// src/components/WalletButton/WalletButton.css.ts
|
|
15763
15906
|
var border = "_85s11r0";
|
|
@@ -15765,7 +15908,7 @@ var maxWidth = "_85s11r1";
|
|
|
15765
15908
|
|
|
15766
15909
|
// src/components/WalletButton/WalletButtonRenderer.tsx
|
|
15767
15910
|
import React148, {
|
|
15768
|
-
useContext as
|
|
15911
|
+
useContext as useContext29,
|
|
15769
15912
|
useEffect as useEffect36,
|
|
15770
15913
|
useMemo as useMemo34,
|
|
15771
15914
|
useState as useState45
|
|
@@ -15778,7 +15921,7 @@ function WalletButtonRenderer({
|
|
|
15778
15921
|
const isMounted = useIsMounted();
|
|
15779
15922
|
const { openConnectModal } = useConnectModal();
|
|
15780
15923
|
const { connectModalOpen } = useModalState();
|
|
15781
|
-
const { connector, setConnector } =
|
|
15924
|
+
const { connector, setConnector } = useContext29(WalletButtonContext);
|
|
15782
15925
|
const [firstConnector] = useWalletConnectors().filter((wallet2) => wallet2.isFunkitSdkConnector).filter((_wallet) => _wallet.id.toLowerCase() === wallet.toLowerCase()).sort((a, b) => a.groupIndex - b.groupIndex);
|
|
15783
15926
|
if (!firstConnector) {
|
|
15784
15927
|
throw new Error("Connector not found");
|
|
@@ -15845,7 +15988,7 @@ function WalletButtonRenderer({
|
|
|
15845
15988
|
|
|
15846
15989
|
// src/components/WalletButton/WalletButton.tsx
|
|
15847
15990
|
var WalletButton = ({ wallet }) => {
|
|
15848
|
-
const { i18n: i18n2 } =
|
|
15991
|
+
const { i18n: i18n2 } = useContext30(I18nContext);
|
|
15849
15992
|
return /* @__PURE__ */ React149.createElement(WalletButtonRenderer, {
|
|
15850
15993
|
wallet
|
|
15851
15994
|
}, ({ ready, connect, connected, mounted, connector, loading }) => {
|
|
@@ -15952,7 +16095,7 @@ function getDefaultWallets(parameters) {
|
|
|
15952
16095
|
// src/components/ConnectOptions/MobileOptions.tsx
|
|
15953
16096
|
import React150, {
|
|
15954
16097
|
useCallback as useCallback31,
|
|
15955
|
-
useContext as
|
|
16098
|
+
useContext as useContext31,
|
|
15956
16099
|
useEffect as useEffect37,
|
|
15957
16100
|
useRef as useRef11,
|
|
15958
16101
|
useState as useState46
|
|
@@ -16007,7 +16150,7 @@ function WalletButton2({
|
|
|
16007
16150
|
} = wallet;
|
|
16008
16151
|
const coolModeRef = useCoolMode(iconUrl);
|
|
16009
16152
|
const initialized = useRef11(false);
|
|
16010
|
-
const { i18n: i18n2 } =
|
|
16153
|
+
const { i18n: i18n2 } = useContext31(I18nContext);
|
|
16011
16154
|
const onConnect = useCallback31(async () => {
|
|
16012
16155
|
const onMobileUri = async () => {
|
|
16013
16156
|
const mobileUri = await (getMobileUri == null ? void 0 : getMobileUri());
|
|
@@ -16098,7 +16241,7 @@ function MobileOptions({ onClose }) {
|
|
|
16098
16241
|
const wallets = useWalletConnectors().filter(
|
|
16099
16242
|
(wallet) => wallet.isFunkitSdkConnector
|
|
16100
16243
|
);
|
|
16101
|
-
const { disclaimer: Disclaimer, learnMoreUrl } =
|
|
16244
|
+
const { disclaimer: Disclaimer, learnMoreUrl } = useContext31(AppContext);
|
|
16102
16245
|
let headerLabel = null;
|
|
16103
16246
|
let walletContent = null;
|
|
16104
16247
|
let headerBackgroundContrast = false;
|
|
@@ -16106,7 +16249,7 @@ function MobileOptions({ onClose }) {
|
|
|
16106
16249
|
const [walletStep, setWalletStep] = useState46(
|
|
16107
16250
|
"CONNECT" /* Connect */
|
|
16108
16251
|
);
|
|
16109
|
-
const { i18n: i18n2 } =
|
|
16252
|
+
const { i18n: i18n2 } = useContext31(I18nContext);
|
|
16110
16253
|
const ios = isIOS();
|
|
16111
16254
|
switch (walletStep) {
|
|
16112
16255
|
case "CONNECT" /* Connect */: {
|
|
@@ -16365,6 +16508,7 @@ function useAddRecentTransaction() {
|
|
|
16365
16508
|
export {
|
|
16366
16509
|
ConnectButton,
|
|
16367
16510
|
FunkitConnectAuthenticationProvider,
|
|
16511
|
+
FunkitOauthLoginMethod,
|
|
16368
16512
|
FunkitProvider,
|
|
16369
16513
|
NATIVE_TOKEN,
|
|
16370
16514
|
PaymentMethod,
|