@imtbl/checkout-widgets 2.0.0-alpha.9 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/browser/{AddTokensWidget-DF8aiUpz.js → AddTokensWidget-C32-7Pge.js} +16 -396
  2. package/dist/browser/{BridgeWidget-DIU9Cxmn.js → BridgeWidget-DHmmZrLe.js} +23 -23
  3. package/dist/browser/{CommerceWidget-CKAKFkix.js → CommerceWidget-DinG6S2H.js} +161 -161
  4. package/dist/browser/{FeesBreakdown-BgEzlEIT.js → FeesBreakdown-CVvm1-Ei.js} +1 -1
  5. package/dist/browser/{OnRampWidget-Bve5vLzE.js → OnRampWidget-B54_6G-f.js} +5 -5
  6. package/dist/browser/{SaleWidget-CKWdID6Y.js → SaleWidget-Cuen5aW7.js} +53 -53
  7. package/dist/browser/{SpendingCapHero-HDVNFS4r.js → SpendingCapHero-DQtmoqNL.js} +1 -1
  8. package/dist/browser/SwapWidget-j_nEgqk4.js +1907 -0
  9. package/dist/browser/{TokenImage-DU_Cg9yk.js → TokenImage-Bc62Xkzv.js} +1 -1
  10. package/dist/browser/{TopUpView-DbE6wlUQ.js → TopUpView-Q4_Glu5-.js} +4 -4
  11. package/dist/browser/{WalletApproveHero-BKgdFRbV.js → WalletApproveHero-B6YvvCmA.js} +25 -5
  12. package/dist/browser/{WalletWidget-D370JeUN.js → WalletWidget-B0Up4Cre.js} +14 -14
  13. package/dist/browser/{auto-track-gJcTpwWh.js → auto-track-CaL-84Ic.js} +1 -1
  14. package/dist/browser/{index-BzdV0KgJ.js → index-BI7vXlHL.js} +1 -1
  15. package/dist/browser/{index-DeP8dLpv.js → index-BVzeDoH7.js} +1 -1
  16. package/dist/browser/{index-CcF1_qRd.js → index-BtnAkpe9.js} +1 -1
  17. package/dist/browser/{index-BB_EeO8_.js → index-CBO9u-8Q.js} +1 -12
  18. package/dist/browser/{index-C_yzaB0L.js → index-Cl7BUGHV.js} +2 -2
  19. package/dist/browser/{index-Q-a_-G_9.js → index-Hh-ME3UA.js} +1 -1
  20. package/dist/browser/{index-CSHKiSiI.js → index-JHffH8Bm.js} +1 -1
  21. package/dist/browser/{index-Bizu61HY.js → index-Skcajiao.js} +14521 -50813
  22. package/dist/browser/index.cdn.js +3262 -39764
  23. package/dist/browser/index.js +1 -1
  24. package/dist/browser/{index.umd-oUBivosK.js → index.umd-C0PZl9Xk.js} +1 -1
  25. package/dist/browser/{useInterval-D7lTeYwU.js → useInterval-D2CM0YwW.js} +1 -1
  26. package/dist/types/widgets/purchase/components/PurchaseRouteOptionsDrawer/RouteOptions.d.ts +2 -1
  27. package/dist/types/widgets/purchase/components/PurchaseRouteOptionsDrawer/RouteOptionsDrawer.d.ts +2 -1
  28. package/dist/types/widgets/swap/GeoblockLoader.d.ts +1 -1
  29. package/dist/types/widgets/swap/SwapWidget.d.ts +1 -1
  30. package/dist/types/widgets/swap/SwapWidgetRoot.d.ts +0 -2
  31. package/package.json +13 -14
  32. package/rollup.config.js +42 -23
  33. package/src/components/CoinSelector/CoinSelector.tsx +63 -16
  34. package/src/lib/metrics.ts +4 -3
  35. package/src/locales/en.json +2 -1
  36. package/src/locales/ja.json +2 -1
  37. package/src/locales/ko.json +1 -0
  38. package/src/locales/zh.json +2 -1
  39. package/src/widgets/purchase/components/PurchaseRouteOptionsDrawer/FiatOption.tsx +0 -1
  40. package/src/widgets/purchase/components/PurchaseRouteOptionsDrawer/RouteOptions.tsx +18 -1
  41. package/src/widgets/purchase/components/PurchaseRouteOptionsDrawer/RouteOptionsDrawer.tsx +8 -1
  42. package/src/widgets/purchase/views/Purchase.tsx +2 -0
  43. package/src/widgets/swap/GeoblockLoader.tsx +3 -1
  44. package/src/widgets/swap/SwapWidget.tsx +216 -153
  45. package/src/widgets/swap/SwapWidgetRoot.tsx +17 -80
  46. package/src/widgets/swap/components/SwapForm.tsx +66 -4
  47. package/dist/browser/SwapWidget-CPcceA1Y.js +0 -1738
  48. package/tsup.config.js +0 -58
@@ -1,6 +1,6 @@
1
- import { r as reactExports, m as mo, S as So, z as commonjsGlobal, B as getDefaultExportFromCjs, j as jsx, l as jsxs, D as Box, u as useTranslation, F as Drawer, G as Divider, H as Heading, K as Button, M as useProvidersContext, N as useAnalytics, W as WalletDrawer, U as UnableToConnectDrawer, O as Fragment, Q as jt, T as UserJourney, X as removeSpace, Y as getProviderSlugFromRdns, Z as W, _ as isPassportProvider, $ as connectEIP6963Provider, a0 as identifyUser, a1 as ConnectEIP6963ProviderError, a2 as ProvidersContextActions, a3 as MenuItem, a4 as SQUID_NATIVE_TOKEN, J, a5 as commonjsRequire, a6 as getRemoteImage, a7 as vFlex, a8 as OnboardingPagination, a9 as ViewContext, aa as useHandover, ab as HandoverTarget, ac as EventTargetContext, V as ViewActions, ad as getRemoteRive, ae as APPROVE_TXN_ANIMATION, af as RiveStateMachineInput, ag as HandoverContent, ah as withEmotionCache, ai as serializeStyles, aj as ThemeContext, ak as useInsertionEffectWithLayoutFallback, al as insertStyles, am as useInsertionEffectAlwaysWithSyncFallback, an as registerStyles, ao as getRegisteredStyles, ap as getDefaultTokenImage, aq as ae, a as getL2ChainId, ar as isNativeToken, as as getTokenImageByAddress, at as TOKEN_PRIORITY_ORDER, au as SmartClone, av as FramedImage, aw as FramedIcon, ax as ButtCon, ay as TextInput, az as VerticalMenu, aA as Body, aB as EllipsizedText, aC as Tooltip, aD as Sticker, aE as getDurationFormatted, aF as getTotalRouteFees, aG as getRouteAndTokenBalances, aH as Stack, aI as hFlex, aJ as centerFlexChildren, aK as Icon, aL as Badge, aM as getFormattedAmounts, aN as getRemoteVideo, aO as FramedVideo, aP as listVariants, aQ as motion, aR as listItemVariants, aS as Banner, aT as xt, aU as Bt, aV as useRoutes, aW as useInjectedProviders, aX as hn, aY as RouteError, aZ as HeroFormControl, a_ as SimpleLayout, a$ as dist, e as SharedViews, b0 as orchestrationEvents, b1 as HeroTextInput, b2 as SquidFooter, b3 as TOOLKIT_SQUID_URL, b4 as merge$1, b5 as SvgIcon, b6 as WalletWarningHero, b7 as getFormattedNumber, b8 as FIXED_HANDOVER_DURATION, b9 as EXECUTE_TXN_ANIMATION, ba as Link, bb as Trans, bc as useExecute, bd as getRouteChains, be as t, bf as convertToNetworkChangeableProvider, bg as verifyAndSwitchChain, bh as PriceDisplay, L as LoadingView, bi as useTheme, bj as viewReducer, bk as initialViewState, bl as useSquid, bm as useTokens, bn as v4, bo as K, bp as isValidAddress, bq as amountInputValidation, br as fetchChains, bs as fetchBalances, bt as CloudImage, n as ErrorView, bu as ServiceUnavailableErrorView } from './index-Bizu61HY.js';
2
- import { T as TokenImage } from './TokenImage-DU_Cg9yk.js';
3
- import { F as FeesBreakdown } from './FeesBreakdown-BgEzlEIT.js';
1
+ import { r as reactExports, u as uo, k as ko, v as commonjsGlobal, x as getDefaultExportFromCjs, l as jsx, n as jsxs, B as Box, c as useTranslation, D as Drawer, z as Divider, H as Heading, F as Button, G as useProvidersContext, K as useAnalytics, W as WalletDrawer, U as UnableToConnectDrawer, M as Fragment, N as jt, Q as UserJourney, X as removeSpace, Y as getProviderSlugFromRdns, Z as W, _ as isPassportProvider, $ as connectEIP6963Provider, a0 as identifyUser, a1 as ConnectEIP6963ProviderError, a2 as ProvidersContextActions, a3 as MenuItem, a4 as SQUID_NATIVE_TOKEN, J, a5 as commonjsRequire, a6 as getRemoteImage, a7 as vFlex, a8 as OnboardingPagination, a9 as ViewContext, aa as useHandover, ab as HandoverTarget, ac as EventTargetContext, V as ViewActions, ad as getRemoteRive, ae as APPROVE_TXN_ANIMATION, af as RiveStateMachineInput, ag as HandoverContent, ah as keyframes, ai as getDefaultTokenImage, aj as ie, a as getL2ChainId, ak as isNativeToken, al as getTokenImageByAddress, am as TOKEN_PRIORITY_ORDER, an as SmartClone, ao as FramedImage, ap as FramedIcon, aq as ButtCon, ar as TextInput, as as VerticalMenu, at as Body, au as EllipsizedText, av as Tooltip, aw as Sticker, ax as getDurationFormatted, ay as getTotalRouteFees, az as getRouteAndTokenBalances, aA as Stack, aB as hFlex, aC as centerFlexChildren, aD as Icon, aE as Badge, aF as getFormattedAmounts, aG as getRemoteVideo, aH as FramedVideo, aI as listVariants, aJ as motion, aK as listItemVariants, aL as Banner, aM as xt, aN as Bt, aO as useRoutes, aP as useInjectedProviders, aQ as hn, aR as RouteError, aS as HeroFormControl, aT as SimpleLayout, aU as dist, i as SharedViews, aV as orchestrationEvents, aW as HeroTextInput, aX as SquidFooter, aY as TOOLKIT_SQUID_URL, aZ as merge, a_ as SvgIcon, a$ as WalletWarningHero, b0 as getFormattedNumber, b1 as FIXED_HANDOVER_DURATION, b2 as EXECUTE_TXN_ANIMATION, b3 as Link, b4 as Trans, b5 as useExecute, b6 as getRouteChains, b7 as t, b8 as convertToNetworkChangeableProvider, b9 as verifyAndSwitchChain, ba as PriceDisplay, L as LoadingView, bb as useTheme, bc as viewReducer, bd as initialViewState, be as useSquid, bf as useTokens, bg as v4, bh as K, bi as isValidAddress, bj as amountInputValidation, bk as fetchChains, bl as fetchBalances, bm as CloudImage, o as ErrorView, bn as ServiceUnavailableErrorView } from './index-Skcajiao.js';
2
+ import { T as TokenImage } from './TokenImage-Bc62Xkzv.js';
3
+ import { F as FeesBreakdown } from './FeesBreakdown-CVvm1-Ei.js';
4
4
 
5
5
  /**
6
6
  * The function `useInterval` sets up an interval that repeatedly calls a given callback function with
@@ -31,9 +31,9 @@ function useInterval(callback, interval) {
31
31
 
32
32
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
33
  function sendAddTokensCloseEvent(eventTarget) {
34
- const closeWidgetEvent = new CustomEvent(mo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
34
+ const closeWidgetEvent = new CustomEvent(uo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
35
35
  detail: {
36
- type: So.CLOSE_WIDGET,
36
+ type: ko.CLOSE_WIDGET,
37
37
  data: {},
38
38
  },
39
39
  });
@@ -44,9 +44,9 @@ function sendAddTokensCloseEvent(eventTarget) {
44
44
  eventTarget.dispatchEvent(closeWidgetEvent);
45
45
  }
46
46
  function sendConnectProviderSuccessEvent(eventTarget, providerType, provider, providerInfo) {
47
- const successEvent = new CustomEvent(mo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
47
+ const successEvent = new CustomEvent(uo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
48
48
  detail: {
49
- type: So.CONNECT_SUCCESS,
49
+ type: ko.CONNECT_SUCCESS,
50
50
  data: {
51
51
  provider,
52
52
  providerType,
@@ -60,9 +60,9 @@ function sendConnectProviderSuccessEvent(eventTarget, providerType, provider, pr
60
60
  eventTarget.dispatchEvent(successEvent);
61
61
  }
62
62
  const sendAddTokensSuccessEvent = (eventTarget, transactionHash) => {
63
- const successEvent = new CustomEvent(mo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
63
+ const successEvent = new CustomEvent(uo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
64
64
  detail: {
65
- type: So.SUCCESS,
65
+ type: ko.SUCCESS,
66
66
  data: {
67
67
  transactionHash,
68
68
  },
@@ -74,9 +74,9 @@ const sendAddTokensSuccessEvent = (eventTarget, transactionHash) => {
74
74
  eventTarget.dispatchEvent(successEvent);
75
75
  };
76
76
  const sendAddTokensFailedEvent = (eventTarget, reason) => {
77
- const failedEvent = new CustomEvent(mo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
77
+ const failedEvent = new CustomEvent(uo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {
78
78
  detail: {
79
- type: So.FAILURE,
79
+ type: ko.FAILURE,
80
80
  data: {
81
81
  reason,
82
82
  timestamp: new Date().getTime(),
@@ -3825,386 +3825,6 @@ const useError = (environment) => {
3825
3825
  };
3826
3826
  };
3827
3827
 
3828
- var pkg = {
3829
- name: "@emotion/react",
3830
- version: "11.11.3",
3831
- main: "dist/emotion-react.cjs.js",
3832
- module: "dist/emotion-react.esm.js",
3833
- browser: {
3834
- "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
3835
- },
3836
- exports: {
3837
- ".": {
3838
- module: {
3839
- worker: "./dist/emotion-react.worker.esm.js",
3840
- browser: "./dist/emotion-react.browser.esm.js",
3841
- "default": "./dist/emotion-react.esm.js"
3842
- },
3843
- "import": "./dist/emotion-react.cjs.mjs",
3844
- "default": "./dist/emotion-react.cjs.js"
3845
- },
3846
- "./jsx-runtime": {
3847
- module: {
3848
- worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
3849
- browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
3850
- "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
3851
- },
3852
- "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
3853
- "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
3854
- },
3855
- "./_isolated-hnrs": {
3856
- module: {
3857
- worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
3858
- browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
3859
- "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
3860
- },
3861
- "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
3862
- "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
3863
- },
3864
- "./jsx-dev-runtime": {
3865
- module: {
3866
- worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
3867
- browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
3868
- "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
3869
- },
3870
- "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
3871
- "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
3872
- },
3873
- "./package.json": "./package.json",
3874
- "./types/css-prop": "./types/css-prop.d.ts",
3875
- "./macro": {
3876
- types: {
3877
- "import": "./macro.d.mts",
3878
- "default": "./macro.d.ts"
3879
- },
3880
- "default": "./macro.js"
3881
- }
3882
- },
3883
- types: "types/index.d.ts",
3884
- files: [
3885
- "src",
3886
- "dist",
3887
- "jsx-runtime",
3888
- "jsx-dev-runtime",
3889
- "_isolated-hnrs",
3890
- "types/*.d.ts",
3891
- "macro.*"
3892
- ],
3893
- sideEffects: false,
3894
- author: "Emotion Contributors",
3895
- license: "MIT",
3896
- scripts: {
3897
- "test:typescript": "dtslint types"
3898
- },
3899
- dependencies: {
3900
- "@babel/runtime": "^7.18.3",
3901
- "@emotion/babel-plugin": "^11.11.0",
3902
- "@emotion/cache": "^11.11.0",
3903
- "@emotion/serialize": "^1.1.3",
3904
- "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
3905
- "@emotion/utils": "^1.2.1",
3906
- "@emotion/weak-memoize": "^0.3.1",
3907
- "hoist-non-react-statics": "^3.3.1"
3908
- },
3909
- peerDependencies: {
3910
- react: ">=16.8.0"
3911
- },
3912
- peerDependenciesMeta: {
3913
- "@types/react": {
3914
- optional: true
3915
- }
3916
- },
3917
- devDependencies: {
3918
- "@definitelytyped/dtslint": "0.0.112",
3919
- "@emotion/css": "11.11.2",
3920
- "@emotion/css-prettifier": "1.1.3",
3921
- "@emotion/server": "11.11.0",
3922
- "@emotion/styled": "11.11.0",
3923
- "html-tag-names": "^1.1.2",
3924
- react: "16.14.0",
3925
- "svg-tag-names": "^1.1.1",
3926
- typescript: "^4.5.5"
3927
- },
3928
- repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
3929
- publishConfig: {
3930
- access: "public"
3931
- },
3932
- "umd:main": "dist/emotion-react.umd.min.js",
3933
- preconstruct: {
3934
- entrypoints: [
3935
- "./index.js",
3936
- "./jsx-runtime.js",
3937
- "./jsx-dev-runtime.js",
3938
- "./_isolated-hnrs.js"
3939
- ],
3940
- umdName: "emotionReact",
3941
- exports: {
3942
- envConditions: [
3943
- "browser",
3944
- "worker"
3945
- ],
3946
- extra: {
3947
- "./types/css-prop": "./types/css-prop.d.ts",
3948
- "./macro": {
3949
- types: {
3950
- "import": "./macro.d.mts",
3951
- "default": "./macro.d.ts"
3952
- },
3953
- "default": "./macro.js"
3954
- }
3955
- }
3956
- }
3957
- }
3958
- };
3959
-
3960
- var warnedAboutCssPropForGlobal = false; // maintain place over rerenders.
3961
- // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
3962
- // initial client-side render from SSR, use place of hydrating tag
3963
-
3964
- var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
3965
- if (production !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
3966
- // probably using the custom createElement which
3967
- // means it will be turned into a className prop
3968
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
3969
- props.className || props.css)) {
3970
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
3971
- warnedAboutCssPropForGlobal = true;
3972
- }
3973
-
3974
- var styles = props.styles;
3975
- var serialized = serializeStyles([styles], undefined, reactExports.useContext(ThemeContext));
3976
- // but it is based on a constant that will never change at runtime
3977
- // it's effectively like having two implementations and switching them out
3978
- // so it's not actually breaking anything
3979
-
3980
-
3981
- var sheetRef = reactExports.useRef();
3982
- useInsertionEffectWithLayoutFallback(function () {
3983
- var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
3984
-
3985
- var sheet = new cache.sheet.constructor({
3986
- key: key,
3987
- nonce: cache.sheet.nonce,
3988
- container: cache.sheet.container,
3989
- speedy: cache.sheet.isSpeedy
3990
- });
3991
- var rehydrating = false; // $FlowFixMe
3992
-
3993
- var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
3994
-
3995
- if (cache.sheet.tags.length) {
3996
- sheet.before = cache.sheet.tags[0];
3997
- }
3998
-
3999
- if (node !== null) {
4000
- rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
4001
-
4002
- node.setAttribute('data-emotion', key);
4003
- sheet.hydrate([node]);
4004
- }
4005
-
4006
- sheetRef.current = [sheet, rehydrating];
4007
- return function () {
4008
- sheet.flush();
4009
- };
4010
- }, [cache]);
4011
- useInsertionEffectWithLayoutFallback(function () {
4012
- var sheetRefCurrent = sheetRef.current;
4013
- var sheet = sheetRefCurrent[0],
4014
- rehydrating = sheetRefCurrent[1];
4015
-
4016
- if (rehydrating) {
4017
- sheetRefCurrent[1] = false;
4018
- return;
4019
- }
4020
-
4021
- if (serialized.next !== undefined) {
4022
- // insert keyframes
4023
- insertStyles(cache, serialized.next, true);
4024
- }
4025
-
4026
- if (sheet.tags.length) {
4027
- // if this doesn't exist then it will be null so the style element will be appended
4028
- var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
4029
- sheet.before = element;
4030
- sheet.flush();
4031
- }
4032
-
4033
- cache.insert("", serialized, sheet, false);
4034
- }, [cache, serialized.name]);
4035
- return null;
4036
- });
4037
-
4038
- if (production !== 'production') {
4039
- Global.displayName = 'EmotionGlobal';
4040
- }
4041
-
4042
- function css() {
4043
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4044
- args[_key] = arguments[_key];
4045
- }
4046
-
4047
- return serializeStyles(args);
4048
- }
4049
-
4050
- var keyframes = function keyframes() {
4051
- var insertable = css.apply(void 0, arguments);
4052
- var name = "animation-" + insertable.name; // $FlowFixMe
4053
-
4054
- return {
4055
- name: name,
4056
- styles: "@keyframes " + name + "{" + insertable.styles + "}",
4057
- anim: 1,
4058
- toString: function toString() {
4059
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
4060
- }
4061
- };
4062
- };
4063
-
4064
- var classnames = function classnames(args) {
4065
- var len = args.length;
4066
- var i = 0;
4067
- var cls = '';
4068
-
4069
- for (; i < len; i++) {
4070
- var arg = args[i];
4071
- if (arg == null) continue;
4072
- var toAdd = void 0;
4073
-
4074
- switch (typeof arg) {
4075
- case 'boolean':
4076
- break;
4077
-
4078
- case 'object':
4079
- {
4080
- if (Array.isArray(arg)) {
4081
- toAdd = classnames(arg);
4082
- } else {
4083
- if (production !== 'production' && arg.styles !== undefined && arg.name !== undefined) {
4084
- console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component.');
4085
- }
4086
-
4087
- toAdd = '';
4088
-
4089
- for (var k in arg) {
4090
- if (arg[k] && k) {
4091
- toAdd && (toAdd += ' ');
4092
- toAdd += k;
4093
- }
4094
- }
4095
- }
4096
-
4097
- break;
4098
- }
4099
-
4100
- default:
4101
- {
4102
- toAdd = arg;
4103
- }
4104
- }
4105
-
4106
- if (toAdd) {
4107
- cls && (cls += ' ');
4108
- cls += toAdd;
4109
- }
4110
- }
4111
-
4112
- return cls;
4113
- };
4114
-
4115
- function merge(registered, css, className) {
4116
- var registeredStyles = [];
4117
- var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
4118
-
4119
- if (registeredStyles.length < 2) {
4120
- return className;
4121
- }
4122
-
4123
- return rawClassName + css(registeredStyles);
4124
- }
4125
-
4126
- var Insertion = function Insertion(_ref) {
4127
- var cache = _ref.cache,
4128
- serializedArr = _ref.serializedArr;
4129
- useInsertionEffectAlwaysWithSyncFallback(function () {
4130
-
4131
- for (var i = 0; i < serializedArr.length; i++) {
4132
- insertStyles(cache, serializedArr[i], false);
4133
- }
4134
- });
4135
-
4136
- return null;
4137
- };
4138
-
4139
- var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
4140
- var hasRendered = false;
4141
- var serializedArr = [];
4142
-
4143
- var css = function css() {
4144
- if (hasRendered && production !== 'production') {
4145
- throw new Error('css can only be used during render');
4146
- }
4147
-
4148
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4149
- args[_key] = arguments[_key];
4150
- }
4151
-
4152
- var serialized = serializeStyles(args, cache.registered);
4153
- serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`
4154
-
4155
- registerStyles(cache, serialized, false);
4156
- return cache.key + "-" + serialized.name;
4157
- };
4158
-
4159
- var cx = function cx() {
4160
- if (hasRendered && production !== 'production') {
4161
- throw new Error('cx can only be used during render');
4162
- }
4163
-
4164
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
4165
- args[_key2] = arguments[_key2];
4166
- }
4167
-
4168
- return merge(cache.registered, css, classnames(args));
4169
- };
4170
-
4171
- var content = {
4172
- css: css,
4173
- cx: cx,
4174
- theme: reactExports.useContext(ThemeContext)
4175
- };
4176
- var ele = props.children(content);
4177
- hasRendered = true;
4178
- return /*#__PURE__*/reactExports.createElement(reactExports.Fragment, null, /*#__PURE__*/reactExports.createElement(Insertion, {
4179
- cache: cache,
4180
- serializedArr: serializedArr
4181
- }), ele);
4182
- });
4183
-
4184
- if (production !== 'production') {
4185
- ClassNames.displayName = 'EmotionClassNames';
4186
- }
4187
-
4188
- if (production !== 'production') {
4189
- var isBrowser = "object" !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked
4190
-
4191
- var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';
4192
-
4193
- if (isBrowser && !isTestEnv) {
4194
- // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
4195
- var globalContext = // $FlowIgnore
4196
- typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
4197
- : isBrowser ? window : global;
4198
- var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
4199
-
4200
- if (globalContext[globalKey]) {
4201
- console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.');
4202
- }
4203
-
4204
- globalContext[globalKey] = true;
4205
- }
4206
- }
4207
-
4208
3828
  const PULSE_SHADOW = keyframes `
4209
3829
  0% {
4210
3830
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
@@ -4273,7 +3893,7 @@ function TokenDrawerMenu({ checkout, config, toTokenAddress, addTokensState, add
4273
3893
  (async () => {
4274
3894
  try {
4275
3895
  const tokenResponse = await checkout.getTokenAllowList({
4276
- type: ae.SWAP,
3896
+ type: ie.SWAP,
4277
3897
  chainId: getL2ChainId(checkout.config),
4278
3898
  });
4279
3899
  if (tokenResponse?.tokens.length > 0) {
@@ -4783,7 +4403,7 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
4783
4403
  const fetchOnRampTokens = async () => {
4784
4404
  try {
4785
4405
  const tokenResponse = await checkout.getTokenAllowList({
4786
- type: ae.ONRAMP,
4406
+ type: ie.ONRAMP,
4787
4407
  chainId: getL2ChainId(checkout.config),
4788
4408
  });
4789
4409
  if (tokenResponse?.tokens.length > 0) {
@@ -4827,7 +4447,7 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
4827
4447
  showBackButton: true,
4828
4448
  provider: toProvider,
4829
4449
  };
4830
- orchestrationEvents.sendRequestOnrampEvent(eventTarget, mo.IMTBL_ADD_TOKENS_WIDGET_EVENT, data);
4450
+ orchestrationEvents.sendRequestOnrampEvent(eventTarget, uo.IMTBL_ADD_TOKENS_WIDGET_EVENT, data);
4831
4451
  };
4832
4452
  const handleCardClick = () => {
4833
4453
  setPayWithCardClicked(true);
@@ -5024,7 +4644,7 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
5024
4644
  }
5025
4645
 
5026
4646
  function SquidIcon({ sx = {}, className, }) {
5027
- return (jsxs(SvgIcon, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", sx: merge$1({ w: '100%' }, sx), className: className, children: [jsx("rect", { width: "24", height: "24", fill: "#E6FA36" }), jsx("path", {
4647
+ return (jsxs(SvgIcon, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", sx: merge({ w: '100%' }, sx), className: className, children: [jsx("rect", { width: "24", height: "24", fill: "#E6FA36" }), jsx("path", {
5028
4648
  // eslint-disable-next-line max-len
5029
4649
  d: "M15.8578 18.914C16.2 17.4428 15.972 15.9524 15.3869 14.5432C14.3851 12.1302 13.0541 11.3752 13.0099 9.28092C12.9955 8.59164 13.0479 7.21788 12 7.3182C11.0079 7.41324 11.1307 8.5398 11.3467 9.23772C11.6818 10.3206 12.5578 11.2364 13.3795 12.6467C13.9949 13.7022 14.4024 14.475 14.4893 15.6539C14.5795 16.8774 14.245 18.2161 13.5312 19.286C12.8693 20.2782 11.4471 21.2147 9.99313 20.5336C9.46321 20.2854 9.13969 19.8265 8.98753 19.3316C8.51089 17.7784 9.12961 16.2606 9.28513 14.3512C9.54433 11.1716 7.40017 6.80988 3.27649 8.82876C1.95217 9.47724 0.916332 11.1726 0.475692 12.747C0.315372 13.3196 0.254412 13.9326 0.272652 14.5523C0.523212 15.7081 0.939852 16.802 1.49665 17.8076C1.34593 17.2888 1.26433 16.7017 1.21969 15.9424C1.14769 14.7188 1.60273 12.806 2.36449 11.7577C3.06769 10.79 4.65409 9.87708 6.16561 10.683C6.96385 11.1088 7.81921 12.7364 6.86161 16.1507C6.34369 17.9968 6.09553 20.0732 7.36849 21.8339C8.43889 23.3147 10.3973 23.6934 12.0883 23.2316C14.2032 22.6532 15.3768 20.9843 15.8578 18.914Z", fill: "black" }), jsx("path", {
5030
4650
  // eslint-disable-next-line max-len
@@ -5676,7 +5296,7 @@ function AddTokensWidget({ showOnrampOption = true, showSwapOption = true, showB
5676
5296
  objectFit: 'cover',
5677
5297
  objectPosition: 'center',
5678
5298
  } }), viewState.view.type === AddTokensWidgetViews.ADD_TOKENS && (jsx(AddTokens, { config: config, checkout: checkout, toTokenAddress: toTokenAddress, toAmount: toAmount, showBackButton: showBackButton, showOnrampOption: showOnrampOption, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, onCloseButtonClick: () => sendAddTokensCloseEvent(eventTarget), onBackButtonClick: () => {
5679
- orchestrationEvents.sendRequestGoBackEvent(eventTarget, mo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {});
5299
+ orchestrationEvents.sendRequestGoBackEvent(eventTarget, uo.IMTBL_ADD_TOKENS_WIDGET_EVENT, {});
5680
5300
  } })), viewState.view.type === AddTokensWidgetViews.REVIEW && (jsx(Review, { data: viewState.view.data, onCloseButtonClick: () => sendAddTokensCloseEvent(eventTarget), onBackButtonClick: () => {
5681
5301
  viewDispatch({
5682
5302
  payload: {
@@ -1,9 +1,9 @@
1
- import { ca as axios, cb as k, cc as q, r as reactExports, m as mo, I as Io, l as jsxs, j as jsx, cd as ShimmerBox, a3 as MenuItem, aH as Stack, u as useTranslation, aA as Body, K as Button, D as Box, ce as PASSPORT_URL, ba as Link, cf as getChainIdBySlug, cg as getChainImage, ch as networkName, av as FramedImage, aB as EllipsizedText, aK as Icon, N as useAnalytics, T as UserJourney, ci as Accordion, G as Divider, a9 as ViewContext, O as Fragment, V as ViewActions, cj as useWalletConnect, ck as isWalletConnectProvider, cl as Logo, cm as RawImage, b$ as CryptoFiatContext, cn as AXELAR_SCAN_URL, ar as isNativeToken, as as getTokenImageByAddress, co as getNativeSymbolByChainSlug, bT as formatUnits, bA as calculateCryptoToFiat, ac as EventTargetContext, _ as isPassportProvider, b as getL1ChainId, aq as ae, a as getL2ChainId, Q as jt, Z as W, aW as useInjectedProviders, cp as retry, bJ as HeaderNavigation, bM as FooterLogo, W as WalletDrawer, a_ as SimpleLayout, cq as getChainSlugById, cr as JsonRpcProvider, c6 as CryptoFiatActions, cs as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, J, ct as getChainNameById, bi as useTheme, H as Heading, cu as getWalletProviderNameByProvider, cv as isMetaMaskProvider, cw as ge, F as Drawer, ax as ButtCon, cx as ButtonNavigationStyles, b0 as orchestrationEvents, bP as tokenValueFormat, cy as formatZeroAmount, cz as NATIVE, aT as xt, bq as amountInputValidation, a6 as getRemoteImage, bt as CloudImage, cA as ETH_TOKEN_SYMBOL, bv as Contract, bo as K, cB as parseUnits, cC as st, cD as DEFAULT_TOKEN_DECIMALS, cE as DEFAULT_QUOTE_REFRESH_INTERVAL, cF as addChainChangedListener, cG as removeChainChangedListener, aU as Bt, cH as IMX_TOKEN_SYMBOL, e as SharedViews, cI as dist, cJ as CHECKOUT_CDN_BASE_URL, cK as heroBackGroundStyles, cL as heroImageStyles, aL as Badge, cM as SimpleTextBody, cN as FooterButton, cO as getEthTokenImage, cP as WITHDRAWAL_CLAIM_GAS_LIMIT, cQ as Ct, ap as getDefaultTokenImage, bj as viewReducer, bk as initialViewState, cR as Qe, cS as r, cT as $e, cU as StatusView, bN as StatusType, n as ErrorView, bu as ServiceUnavailableErrorView, c9 as CryptoFiatProvider, cV as O, cW as $, cX as P } from './index-Bizu61HY.js';
2
- import { T as TokenImage } from './TokenImage-DU_Cg9yk.js';
3
- import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-DbE6wlUQ.js';
4
- import { S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-BKgdFRbV.js';
5
- import { u as useInterval } from './useInterval-D7lTeYwU.js';
6
- import './FeesBreakdown-BgEzlEIT.js';
1
+ import { c3 as axios, c4 as k, c5 as q, r as reactExports, u as uo, T as To, n as jsxs, l as jsx, c6 as ShimmerBox, a3 as MenuItem, aA as Stack, c as useTranslation, at as Body, F as Button, B as Box, c7 as PASSPORT_URL, b3 as Link, c8 as getChainIdBySlug, c9 as getChainImage, ca as networkName, ao as FramedImage, au as EllipsizedText, aD as Icon, K as useAnalytics, Q as UserJourney, cb as Accordion, z as Divider, a9 as ViewContext, M as Fragment, V as ViewActions, cc as useWalletConnect, cd as isWalletConnectProvider, ce as Logo, cf as RawImage, bU as CryptoFiatContext, cg as AXELAR_SCAN_URL, ak as isNativeToken, al as getTokenImageByAddress, ch as getNativeSymbolByChainSlug, bM as formatUnits, bt as calculateCryptoToFiat, ac as EventTargetContext, _ as isPassportProvider, b as getL1ChainId, aj as ie, a as getL2ChainId, N as jt, Z as W, aP as useInjectedProviders, ci as retry, bC as HeaderNavigation, bF as FooterLogo, W as WalletDrawer, aT as SimpleLayout, cj as getChainSlugById, ck as JsonRpcProvider, b$ as CryptoFiatActions, cl as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, J, cm as getChainNameById, bb as useTheme, H as Heading, cn as getWalletProviderNameByProvider, co as isMetaMaskProvider, cp as me, D as Drawer, aq as ButtCon, cq as ButtonNavigationStyles, aV as orchestrationEvents, bI as tokenValueFormat, cr as formatZeroAmount, cs as NATIVE, aM as xt, bj as amountInputValidation, a6 as getRemoteImage, bm as CloudImage, ct as ETH_TOKEN_SYMBOL, bo as Contract, bh as K, cu as parseUnits, cv as st, cw as DEFAULT_TOKEN_DECIMALS, cx as DEFAULT_QUOTE_REFRESH_INTERVAL, cy as addChainChangedListener, cz as removeChainChangedListener, aN as Bt, cA as IMX_TOKEN_SYMBOL, i as SharedViews, cB as dist, cC as CHECKOUT_CDN_BASE_URL, cD as heroBackGroundStyles, cE as heroImageStyles, aE as Badge, cF as SimpleTextBody, cG as FooterButton, cH as getEthTokenImage, cI as WITHDRAWAL_CLAIM_GAS_LIMIT, cJ as Ct, ai as getDefaultTokenImage, bc as viewReducer, bd as initialViewState, cK as Qe, cL as r, cM as $e, cN as StatusView, bG as StatusType, o as ErrorView, bn as ServiceUnavailableErrorView, c2 as CryptoFiatProvider, cO as O, cP as $, cQ as P } from './index-Skcajiao.js';
2
+ import { T as TokenImage } from './TokenImage-Bc62Xkzv.js';
3
+ import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-Q4_Glu5-.js';
4
+ import { S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-B6YvvCmA.js';
5
+ import { u as useInterval } from './useInterval-D2CM0YwW.js';
6
+ import './FeesBreakdown-CVvm1-Ei.js';
7
7
 
8
8
  // This module is intended to unwrap Axios default export as named.
9
9
  // Keep top-level export same with static properties
@@ -220,9 +220,9 @@ const bridgeReducer = (state, action) => {
220
220
  };
221
221
 
222
222
  const sendBridgeTransactionSentEvent = (eventTarget, transactionHash) => {
223
- const successEvent = new CustomEvent(mo.IMTBL_BRIDGE_WIDGET_EVENT, {
223
+ const successEvent = new CustomEvent(uo.IMTBL_BRIDGE_WIDGET_EVENT, {
224
224
  detail: {
225
- type: Io.TRANSACTION_SENT,
225
+ type: To.TRANSACTION_SENT,
226
226
  data: {
227
227
  transactionHash,
228
228
  },
@@ -234,9 +234,9 @@ const sendBridgeTransactionSentEvent = (eventTarget, transactionHash) => {
234
234
  eventTarget.dispatchEvent(successEvent);
235
235
  };
236
236
  const sendBridgeFailedEvent = (eventTarget, reason) => {
237
- const failedEvent = new CustomEvent(mo.IMTBL_BRIDGE_WIDGET_EVENT, {
237
+ const failedEvent = new CustomEvent(uo.IMTBL_BRIDGE_WIDGET_EVENT, {
238
238
  detail: {
239
- type: Io.FAILURE,
239
+ type: To.FAILURE,
240
240
  data: {
241
241
  reason,
242
242
  timestamp: new Date().getTime(),
@@ -249,9 +249,9 @@ const sendBridgeFailedEvent = (eventTarget, reason) => {
249
249
  eventTarget.dispatchEvent(failedEvent);
250
250
  };
251
251
  function sendBridgeWidgetCloseEvent(eventTarget) {
252
- const closeWidgetEvent = new CustomEvent(mo.IMTBL_BRIDGE_WIDGET_EVENT, {
252
+ const closeWidgetEvent = new CustomEvent(uo.IMTBL_BRIDGE_WIDGET_EVENT, {
253
253
  detail: {
254
- type: Io.CLOSE_WIDGET,
254
+ type: To.CLOSE_WIDGET,
255
255
  data: {},
256
256
  },
257
257
  });
@@ -261,9 +261,9 @@ function sendBridgeWidgetCloseEvent(eventTarget) {
261
261
  eventTarget.dispatchEvent(closeWidgetEvent);
262
262
  }
263
263
  const sendBridgeClaimWithdrawalSuccessEvent = (eventTarget, transactionHash) => {
264
- const successEvent = new CustomEvent(mo.IMTBL_BRIDGE_WIDGET_EVENT, {
264
+ const successEvent = new CustomEvent(uo.IMTBL_BRIDGE_WIDGET_EVENT, {
265
265
  detail: {
266
- type: Io.CLAIM_WITHDRAWAL_SUCCESS,
266
+ type: To.CLAIM_WITHDRAWAL_SUCCESS,
267
267
  data: {
268
268
  transactionHash,
269
269
  },
@@ -275,9 +275,9 @@ const sendBridgeClaimWithdrawalSuccessEvent = (eventTarget, transactionHash) =>
275
275
  eventTarget.dispatchEvent(successEvent);
276
276
  };
277
277
  const sendBridgeClaimWithdrawalFailedEvent = (eventTarget, transactionHash, reason) => {
278
- const failedEvent = new CustomEvent(mo.IMTBL_BRIDGE_WIDGET_EVENT, {
278
+ const failedEvent = new CustomEvent(uo.IMTBL_BRIDGE_WIDGET_EVENT, {
279
279
  detail: {
280
- type: Io.CLAIM_WITHDRAWAL_FAILURE,
280
+ type: To.CLAIM_WITHDRAWAL_FAILURE,
281
281
  data: {
282
282
  transactionHash,
283
283
  reason,
@@ -705,7 +705,7 @@ function Transactions({ defaultTokenImage, onBackButtonClick, }) {
705
705
  const rootChainId = getL1ChainId(checkout.config);
706
706
  try {
707
707
  const tokens = (await checkout.getTokenAllowList({
708
- type: ae.BRIDGE,
708
+ type: ie.BRIDGE,
709
709
  chainId: rootChainId,
710
710
  })).tokens ?? [];
711
711
  return tokens.reduce((out, current) => {
@@ -1447,7 +1447,7 @@ function WalletAndNetworkSelector() {
1447
1447
  display: 'flex',
1448
1448
  flexDirection: 'column',
1449
1449
  gap: 'base.spacing.x10',
1450
- }, children: [jsx(WalletNetworkButton, { testId: testId$1, walletProviderDetail: fromWallet?.providerDetail, walletProvider: fromWalletBrowserProvider, walletName: fromWalletProviderName, walletAddress: abbreviateAddress(fromWalletAddress), chainId: fromNetwork, disableNetworkButton: fromWalletProviderName === ge.PASSPORT.toString(), onWalletClick: () => {
1450
+ }, children: [jsx(WalletNetworkButton, { testId: testId$1, walletProviderDetail: fromWallet?.providerDetail, walletProvider: fromWalletBrowserProvider, walletName: fromWalletProviderName, walletAddress: abbreviateAddress(fromWalletAddress), chainId: fromNetwork, disableNetworkButton: fromWalletProviderName === me.PASSPORT.toString(), onWalletClick: () => {
1451
1451
  // TODO: Force an account selection here
1452
1452
  setFromWalletDrawerOpen(true);
1453
1453
  }, onNetworkClick: () => setFromNetworkDrawerOpen(true), environment: environment }), jsxs(Box, { children: [jsx(Heading, { size: "xSmall", sx: { paddingBottom: 'base.spacing.x2' }, children: t('views.WALLET_NETWORK_SELECTION.toFormInput.heading') }), jsx(WalletDrawer, { testId: `${testId$1}-to`, drawerText: {
@@ -1467,7 +1467,7 @@ function WalletAndNetworkSelector() {
1467
1467
  flexDirection: 'column',
1468
1468
  justifyContent: 'space-between',
1469
1469
  }, children: [jsx(WalletNetworkButton, { testId: testId$1, walletProviderDetail: toWallet?.providerDetail, walletProvider: toWalletBrowserProvider, walletName: toWalletProviderName, walletAddress: abbreviateAddress(toWalletAddress), chainId: toNetwork, disableNetworkButton: fromNetwork === l1NetworkChainId
1470
- || toWalletProviderName === ge.PASSPORT.toString()
1470
+ || toWalletProviderName === me.PASSPORT.toString()
1471
1471
  || fromWalletAddress === toWalletAddress, onWalletClick: () => {
1472
1472
  setToWalletDrawerOpen(true);
1473
1473
  }, onNetworkClick: () => {
@@ -1494,7 +1494,7 @@ function WalletNetworkSelectionView({ showBackButton, }) {
1494
1494
  },
1495
1495
  });
1496
1496
  }, testId: "move-transactions-button" })), showBack: showBackButton, onBackButtonClick: () => {
1497
- orchestrationEvents.sendRequestGoBackEvent(eventTarget, mo.IMTBL_BRIDGE_WIDGET_EVENT, {});
1497
+ orchestrationEvents.sendRequestGoBackEvent(eventTarget, uo.IMTBL_BRIDGE_WIDGET_EVENT, {});
1498
1498
  } })), footer: jsx(FooterLogo, {}), children: jsx(WalletAndNetworkSelector, {}) }));
1499
1499
  }
1500
1500
 
@@ -1811,7 +1811,7 @@ function Bridge({ amount, tokenAddress, defaultTokenImage, theme, }) {
1811
1811
  checkout,
1812
1812
  provider: from.browserProvider,
1813
1813
  chainId: from?.network,
1814
- allowTokenListType: ae.BRIDGE,
1814
+ allowTokenListType: ie.BRIDGE,
1815
1815
  // Skip retry given that in this case it is not needed;
1816
1816
  // refreshBalances will be, automatically, called again
1817
1817
  // after REFRESH_TOKENS_INTERVAL_MS.
@@ -2816,7 +2816,7 @@ function ClaimWithdrawal({ transaction }) {
2816
2816
  if (isPassportProvider(from?.browserProvider) || forceChangeAccount) {
2817
2817
  // user should switch to MetaMask
2818
2818
  try {
2819
- const createProviderResult = await checkout.createProvider({ walletProviderName: ge.METAMASK });
2819
+ const createProviderResult = await checkout.createProvider({ walletProviderName: me.METAMASK });
2820
2820
  const connectResult = await checkout.connect({
2821
2821
  provider: createProviderResult.provider,
2822
2822
  requestWalletPermissions: true,
@@ -3056,7 +3056,7 @@ function BridgeWidget({ checkout, browserProvider, config, amount, tokenAddress,
3056
3056
  userJourney: UserJourney.BRIDGE,
3057
3057
  screen: 'Error',
3058
3058
  });
3059
- } })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.BRIDGE }, widgetEvent: mo.IMTBL_BRIDGE_WIDGET_EVENT, checkout: checkout, provider: browserProvider, showOnrampOption: isOnRampEnabled, showSwapOption: isSwapEnabled, showBridgeOption: isBridgeEnabled, onCloseButtonClick: () => sendBridgeWidgetCloseEvent(eventTarget) })), viewState.view.type === BridgeWidgetViews.CLAIM_WITHDRAWAL_IN_PROGRESS && (jsx(ClaimWithdrawalInProgress, { transactionResponse: viewState.view.transactionResponse })), viewState.view.type === BridgeWidgetViews.CLAIM_WITHDRAWAL_SUCCESS && (jsx(StatusView, { statusText: t('views.CLAIM_WITHDRAWAL.IN_PROGRESS.success.text'), actionText: t('views.CLAIM_WITHDRAWAL.IN_PROGRESS.success.actionText'), onRenderEvent: () => {
3059
+ } })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.BRIDGE }, widgetEvent: uo.IMTBL_BRIDGE_WIDGET_EVENT, checkout: checkout, provider: browserProvider, showOnrampOption: isOnRampEnabled, showSwapOption: isSwapEnabled, showBridgeOption: isBridgeEnabled, onCloseButtonClick: () => sendBridgeWidgetCloseEvent(eventTarget) })), viewState.view.type === BridgeWidgetViews.CLAIM_WITHDRAWAL_IN_PROGRESS && (jsx(ClaimWithdrawalInProgress, { transactionResponse: viewState.view.transactionResponse })), viewState.view.type === BridgeWidgetViews.CLAIM_WITHDRAWAL_SUCCESS && (jsx(StatusView, { statusText: t('views.CLAIM_WITHDRAWAL.IN_PROGRESS.success.text'), actionText: t('views.CLAIM_WITHDRAWAL.IN_PROGRESS.success.actionText'), onRenderEvent: () => {
3060
3060
  page({
3061
3061
  userJourney: UserJourney.BRIDGE,
3062
3062
  screen: 'ClaimWithdrawalSuccess',