@imtbl/sdk 1.64.0 → 1.65.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.
- package/dist/{blockchain_data-BJFFyOsZ.js → blockchain_data-Dp0DKwKY.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-_RYa4euh.js → AddTokensWidget-CzLj_kbJ.js} +38 -16
- package/dist/browser/checkout/{BridgeWidget-BCC7YXWj.js → BridgeWidget-BD2arVjv.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-B4QxFLZq.js → CommerceWidget-B0rI7mqO.js} +90 -75
- package/dist/browser/checkout/{CryptoFiatProvider-b0KhVg3Y.js → CryptoFiatProvider-GIG1QRoo.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-CF9lzi6c.js → EllipsizedText-DbCAqh7Y.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-BGnZxcX5.js → FeesBreakdown-DJsus8QD.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-CESizLWk.js → HandoverContent-BgWR4m27.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BrGpM6Vn.js → OnRampWidget-mDBP43Vd.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-iuigaIZp.js → SaleWidget-D9I4_Y1V.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-B3sb2Wt1.js → SpendingCapHero-aRrdLYqJ.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-CdXf4YYP.js → SwapWidget-fHXX-Hf-.js} +9 -9
- package/dist/browser/checkout/{TopUpView-Bg-huhcb.js → TopUpView-BLRvkTp5.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-DW6Uw6rT.js → WalletApproveHero-D7vrJyr0.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-ChYjXfAy.js → WalletWidget-DiNzzHMW.js} +4 -4
- package/dist/browser/checkout/{auto-track-CgS-wbin.js → auto-track-DK4gsk5m.js} +1 -1
- package/dist/browser/checkout/{index-DoYS_inI.js → index-BQ0p7X6B.js} +1 -1
- package/dist/browser/checkout/{index-qYOj-RwR.js → index-BbANArQU.js} +1 -1
- package/dist/browser/checkout/{index-BqJ9Usxu.js → index-Cbyd34U6.js} +1 -1
- package/dist/browser/checkout/{index-LCMExv1j.js → index-CkkTi5Rn.js} +1 -1
- package/dist/browser/checkout/{index-CshBDuS0.js → index-Ct1L-gy-.js} +1 -1
- package/dist/browser/checkout/{index-BjLYItcm.js → index-D1QHaKvq.js} +26 -26
- package/dist/browser/checkout/{index-C4anNRY5.js → index-DHBxX6fE.js} +2 -2
- package/dist/browser/checkout/{index-D6TVOnc2.js → index-DNtUrKbu.js} +1 -1
- package/dist/browser/checkout/{index-bNCjF_qE.js → index-N6bH7obe.js} +1 -1
- package/dist/browser/checkout/{index.umd-CL6Tp5Ej.js → index.umd-CM-rtgTq.js} +1 -1
- package/dist/browser/checkout/{retry-GJcGp5Sw.js → retry-ByGtTHBD.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-BfG2xnz-.js → useInterval-y1UbVfF8.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +112 -75
- package/dist/{checkout-Cs8dXzsO.js → checkout-BFPBookq.js} +5 -5
- package/dist/checkout.d.ts +2 -0
- package/dist/checkout.js +5 -5
- package/dist/{config-COmcON31.js → config-V18XBR3x.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BDcnlE-I.js → index-Bp8cN2wo.js} +1 -1
- package/dist/{index-CPZC_4-h.js → index-C80azzXH.js} +1 -1
- package/dist/{index-27OfHl8u.js → index-CP3zHUjx.js} +1 -1
- package/dist/{index-B1oIamSp.js → index-CTcEmIj1.js} +4 -4
- package/dist/{index-CinJtsQi.js → index-ChXdl1w-.js} +3 -3
- package/dist/{index-8JzLLOmv.js → index-gXJeNIGk.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -14
- package/dist/{minting_backend-CkmXVZ0p.js → minting_backend-BRZXKNZH.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-Bi2t8guV.js → orderbook-DV4Fw1tL.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-B9TINukj.js → passport-DDebGWwi.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-D45ZPknC.js → webhook-B4jwsgjm.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-C1LIWzQf.js → x-DmIbrceD.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as SelectForm, T as TextInputForm, F as Fees, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-
|
|
3
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-
|
|
4
|
-
import { u as useInterval } from './useInterval-
|
|
5
|
-
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-
|
|
6
|
-
import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-
|
|
7
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
8
|
-
import './retry-
|
|
9
|
-
import './FeesBreakdown-
|
|
1
|
+
import { u as useTranslation, d5 as WidgetTheme, aN as getRemoteImage, p as jsxs, d6 as quickswapFooterStyles, G as Box, d7 as quickswapFooterLogoStyles, o as jsx, K as Body, d8 as quickswapFooterDisclaimerTextStyles, r as reactExports, R as Button, d9 as getImxTokenImage, aw as Drawer, bm as CloudImage, aA as Heading, ca as Logo, N as Icon, an as BigNumber, by as calculateCryptoToFiat, al as tokenValueFormat, bT as isGasFree, cn as formatZeroAmount, bU as ConnectLoaderContext, aV as getDefaultTokenImage, aZ as isNativeToken, co as NATIVE, aL as ViewContext, ax as useAnalytics, cs as DEFAULT_QUOTE_REFRESH_INTERVAL, az as isPassportProvider, bl as amountInputValidation, da as Tooltip, ay as UserJourney, bf as Environment, V as ViewActions, m as SharedViews, h as getL2ChainId, at as Fragment, db as ESTIMATE_DEBOUNCE, dc as DEFAULT_TOKEN_VALIDATION_DECIMALS, cr as DEFAULT_TOKEN_DECIMALS, aQ as EventTargetContext, dd as sendSwapWidgetCloseEvent, a$ as orchestrationEvents, I as IMTBLWidgetEvents, bF as HeaderNavigation, L as LoadingView, aX as SimpleLayout, cv as IMX_TOKEN_SYMBOL, c1 as CheckoutErrorType, cA as SimpleTextBody, cB as FooterButton, bi as viewReducer, bj as initialViewState, aY as TokenFilterTypes, de as DEFAULT_BALANCE_RETRY_POLICY, df as SwapDirection$1, cH as StatusView, dg as sendSwapSuccessEvent, bJ as StatusType, dh as sendSwapFailedEvent, di as sendSwapRejectedEvent, E as ErrorView } from './index-D1QHaKvq.js';
|
|
2
|
+
import { S as SelectForm, T as TextInputForm, F as Fees, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-D7vrJyr0.js';
|
|
3
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-GIG1QRoo.js';
|
|
4
|
+
import { u as useInterval } from './useInterval-y1UbVfF8.js';
|
|
5
|
+
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-Ct1L-gy-.js';
|
|
6
|
+
import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-BLRvkTp5.js';
|
|
7
|
+
import { S as SpendingCapHero } from './SpendingCapHero-aRrdLYqJ.js';
|
|
8
|
+
import './retry-ByGtTHBD.js';
|
|
9
|
+
import './FeesBreakdown-DJsus8QD.js';
|
|
10
10
|
|
|
11
11
|
function QuickswapFooter({ theme, environment }) {
|
|
12
12
|
const { t } = useTranslation();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as reactExports,
|
|
2
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, D as DEFAULT_TOKEN_SYMBOLS } from './CryptoFiatProvider-
|
|
3
|
-
import { f as formatUnits } from './index-
|
|
1
|
+
import { r as reactExports, o as jsx, p as jsxs, U as isDualVariantIcon, ak as MenuItem, G as Box, bf as Environment, u as useTranslation, aL as ViewContext, aQ as EventTargetContext, ax as useAnalytics, cq as GasEstimateType, bF as HeaderNavigation, aA as Heading, K as Body, aX as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, a$ as orchestrationEvents } from './index-D1QHaKvq.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, D as DEFAULT_TOKEN_SYMBOLS } from './CryptoFiatProvider-GIG1QRoo.js';
|
|
3
|
+
import { f as formatUnits } from './index-Ct1L-gy-.js';
|
|
4
4
|
|
|
5
5
|
var BridgeWidgetViews;
|
|
6
6
|
(function (BridgeWidgetViews) {
|
package/dist/browser/checkout/{WalletApproveHero-DW6Uw6rT.js → WalletApproveHero-D7vrJyr0.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as TokenImage, r as retry } from './retry-
|
|
3
|
-
import { F as FeesBreakdown } from './FeesBreakdown-
|
|
1
|
+
import { a8 as hFlex, o as jsx, aq as motion, _ as _objectWithoutProperties, w as useTheme, r as reactExports, X as _slicedToArray, y as useGetSubcomponentChild, A as merge, p as jsxs, $ as BaseClickable, Q as ButtCon, F as SmartClone, dj as AnimatePresence, G as Box, a7 as Stack, a0 as ClassNames, T as _defineProperty, dk as getTertiaryButtonStyles, J as flattenChildren, H as isChildSubcomponent, as as Divider, dl as TextInput, dm as FormControlWrapper, u as useTranslation, ak as MenuItem, aw as Drawer, K as Body, dn as Select, bf as Environment, d5 as WidgetTheme, dp as DuoCon, aA as Heading, R as Button, co as NATIVE, a_ as getTokenImageByAddress, aZ as isNativeToken, de as DEFAULT_BALANCE_RETRY_POLICY, aN as getRemoteImage, ch as getChainNameById, i as getL1ChainId, c9 as isWalletConnectProvider, ck as isMetaMaskProvider, bm as CloudImage, bI as FooterLogo, cn as formatZeroAmount, al as tokenValueFormat, c3 as ShimmerBox, bh as PriceDisplay, at as Fragment, cy as heroBackGroundStyles, cz as heroImageStyles, dq as heroImageBottomAlign } from './index-D1QHaKvq.js';
|
|
2
|
+
import { T as TokenImage, r as retry } from './retry-ByGtTHBD.js';
|
|
3
|
+
import { F as FeesBreakdown } from './FeesBreakdown-DJsus8QD.js';
|
|
4
4
|
|
|
5
5
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-
|
|
3
|
-
import { T as TokenImage, r as retry } from './retry-
|
|
4
|
-
import { u as useInterval } from './useInterval-
|
|
1
|
+
import { Q as ButtCon, R as Button, _ as _objectWithoutProperties, w as useTheme, Z as getStartingSize, dv as DEFAULT_BUTTON_SIZE, A as merge, r as reactExports, J as flattenChildren, o as jsx, H as isChildSubcomponent, F as SmartClone, G as Box, dw as getResponsiveSx, dx as BUTTON_SIZES, dy as setDefaultSxBackgroundColor, a0 as ClassNames, T as _defineProperty, aY as TokenFilterTypes, u as useTranslation, aL as ViewContext, p as jsxs, K as Body, V as ViewActions, bU as ConnectLoaderContext, ax as useAnalytics, cn as formatZeroAmount, aQ as EventTargetContext, az as isPassportProvider, h as getL2ChainId, i as getL1ChainId, bf as Environment, ak as MenuItem, al as tokenValueFormat, ay as UserJourney, a$ as orchestrationEvents, I as IMTBLWidgetEvents, dz as ZERO_BALANCE_STRING, aZ as isNativeToken, dA as sendNetworkSwitchEvent, c1 as CheckoutErrorType, m as SharedViews, dB as NetworkFilterTypes, dC as sortNetworksCompareFn, c6 as getChainImage, de as DEFAULT_BALANCE_RETRY_POLICY, dD as sortTokensByAmount, a_ as getTokenImageByAddress, by as calculateCryptoToFiat, bF as HeaderNavigation, cm as ButtonNavigationStyles, dE as sendWalletWidgetCloseEvent, bI as FooterLogo, aX as SimpleLayout, cl as WalletProviderName, ci as getWalletProviderNameByProvider, U as isDualVariantIcon, bN as abbreviateWalletAddress, aA as Heading, aw as Drawer, c8 as useWalletConnect, dF as sendDisconnectWalletEvent, c9 as isWalletConnectProvider, cy as heroBackGroundStyles, cz as heroImageStyles, dq as heroImageBottomAlign, cA as SimpleTextBody, dG as FAQS_LINK, aT as Link, bi as viewReducer, bj as initialViewState, L as LoadingView, E as ErrorView } from './index-D1QHaKvq.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-GIG1QRoo.js';
|
|
3
|
+
import { T as TokenImage, r as retry } from './retry-ByGtTHBD.js';
|
|
4
|
+
import { u as useInterval } from './useInterval-y1UbVfF8.js';
|
|
5
5
|
|
|
6
6
|
var horizontalMenuSxProps = {
|
|
7
7
|
justifyContent: "stretch",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dR as __awaiter, dS as __generator, dT as loadScript, dU as getNextIntegrationsURL, dV as unloadScript, dW as __spreadArray, dX as isOffline, dY as __assign, dZ as ContextCancelation, d_ as applyDestinationMiddleware, d$ as dist, e0 as isServer, e1 as mergedOptions, e2 as isPlainObject, e3 as pWhile, e4 as PriorityQueue, e5 as PersistedPriorityQueue, e6 as attempt, e7 as isOnline, e8 as Context } from './index-D1QHaKvq.js';
|
|
2
2
|
import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
|
|
3
3
|
|
|
4
4
|
function normalizeName(name) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dI as ne$1, dJ as se$1, dK as T$2, dL as oe$1, dM as R$1, dN as a$2, dO as te$1, dP as p$1, dQ as y$1 } from './index-D1QHaKvq.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dR as __awaiter, dS as __generator, e0 as isServer, dU as getNextIntegrationsURL, dT as loadScript } from './index-D1QHaKvq.js';
|
|
2
2
|
|
|
3
3
|
function remoteMiddlewares(ctx, settings, obfuscate) {
|
|
4
4
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { an as BigNumber, cQ as Logger, dr as version$1, ds as hexZeroPad, dt as isBigNumberish, c$ as arrayify, du as isBytes } from './index-D1QHaKvq.js';
|
|
2
2
|
|
|
3
3
|
const logger$1 = new Logger(version$1);
|
|
4
4
|
const _constructorGuard = {};
|
|
@@ -135694,7 +135694,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
135694
135694
|
|
|
135695
135695
|
const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$2={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$4={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$4.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$4.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$4.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$4.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$4.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$2.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$3=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$3=proxy({enabled:_$3,userSessionId:"",events:[],connectedWalletId:void 0}),R$5={state:r$3,subscribe(e){return subscribe(r$3.events,()=>e(snapshot(r$3.events[r$3.events.length-1])))},initialize(){r$3.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$3.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$3.connectedWalletId=e;},click(e){if(r$3.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},track(e){if(r$3.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},view(e){if(r$3.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}}},c$4=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$9={state:c$4,subscribe(e){return subscribe(c$4,()=>e(c$4))},setChains(e){c$4.chains=e;},setWalletConnectUri(e){c$4.walletConnectUri=e;},setIsCustomDesktop(e){c$4.isCustomDesktop=e;},setIsCustomMobile(e){c$4.isCustomMobile=e;},setIsDataLoaded(e){c$4.isDataLoaded=e;},setIsUiLoaded(e){c$4.isUiLoaded=e;},setIsAuth(e){c$4.isAuth=e;}},W$3=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$6={state:W$3,subscribe(e){return subscribe(W$3,()=>e(W$3))},setConfig(e){var t,s;R$5.initialize(),p$9.setChains(e.chains),p$9.setIsAuth(Boolean(e.enableAuthMode)),p$9.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$9.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$4.setModalVersionInStorage(),Object.assign(W$3,e);}};var V$4=Object.defineProperty,D$7=Object.getOwnPropertySymbols,H$4=Object.prototype.hasOwnProperty,B$4=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$4=(e,t)=>{for(var s in t||(t={}))H$4.call(t,s)&&M$4(e,s,t[s]);if(D$7)for(var s of D$7(t))B$4.call(t,s)&&M$4(e,s,t[s]);return e};const L$5="https://explorer-api.walletconnect.com",E$4="wcm",O$6="js-2.6.2";async function w$5(e,t){const s=K$4({sdkType:E$4,sdkVersion:O$6},t),n=new URL(e,L$5);return n.searchParams.append("projectId",y$6.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$6={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$5}/w3m/v1/getWalletImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$6}`},getAssetImageUrl(e){return `${L$5}/w3m/v1/getAssetImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$6}`}};var z$5=Object.defineProperty,j$4=Object.getOwnPropertySymbols,J$3=Object.prototype.hasOwnProperty,q$5=Object.prototype.propertyIsEnumerable,k$5=(e,t,s)=>t in e?z$5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$5=(e,t)=>{for(var s in t||(t={}))J$3.call(t,s)&&k$5(e,s,t[s]);if(j$4)for(var s of j$4(t))q$5.call(t,s)&&k$5(e,s,t[s]);return e};const N$4=a$4.isMobile(),d$4=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$4={state:d$4,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$6.state;if(e==="NONE"||t==="ALL"&&!e)return d$4.recomendedWallets;if(a$4.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$6.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$4.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$9.state,i=s?.join(","),l=a$4.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$4.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$4?await m$6.getMobileListings(v):await m$6.getDesktopListings(v);d$4.recomendedWallets=Object.values(b);}return d$4.recomendedWallets},async getWallets(e){const t=F$5({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$6.state,{recomendedWallets:i}=d$4;if(n==="ALL")return d$4.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$4.isArray(s)&&(t.excludedIds=s.join(",")),a$4.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$9.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$4?await m$6.getMobileListings(t):await m$6.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$4[U]={listings:[...d$4[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$6.getWalletImageUrl(e)},getAssetImageUrl(e){return m$6.getAssetImageUrl(e)},resetSearch(){d$4.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$9.state;if(a$4.removeWalletConnectDeepLink(),p$9.setWalletConnectUri(e?.uri),p$9.setChains(e?.chains),T$2.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$9.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$4=Object.defineProperty,$$3=Object.getOwnPropertySymbols,Q$6=Object.prototype.hasOwnProperty,X$4=Object.prototype.propertyIsEnumerable,S$4=(e,t,s)=>t in e?G$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$2=(e,t)=>{for(var s in t||(t={}))Q$6.call(t,s)&&S$4(e,s,t[s]);if($$3)for(var s of $$3(t))X$4.call(t,s)&&S$4(e,s,t[s]);return e};function Z$4(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$2=proxy({themeMode:Z$4()?"dark":"light"}),ne$2={state:C$2,subscribe(e){return subscribe(C$2,()=>e(C$2))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$2.themeMode=t),s&&(C$2.themeVariables=Y$2({},s));}},g$8=proxy({open:!1,message:"",variant:"success"}),oe$4={state:g$8,subscribe(e){return subscribe(g$8,()=>e(g$8))},openToast(e,t){g$8.open=!0,g$8.message=e,g$8.variant=t;},closeToast(){g$8.open=!1;}};
|
|
135696
135696
|
|
|
135697
|
-
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
135697
|
+
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-BbANArQU.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$9.setIsUiLoaded(!0);}}};
|
|
135698
135698
|
|
|
135699
135699
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
135700
135700
|
__proto__: null,
|
|
@@ -152535,7 +152535,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152535
152535
|
return __generator(this, function (_b) {
|
|
152536
152536
|
switch (_b.label) {
|
|
152537
152537
|
case 0: return [4 /*yield*/, import(
|
|
152538
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152538
|
+
/* webpackChunkName: "auto-track" */ './auto-track-DK4gsk5m.js')];
|
|
152539
152539
|
case 1:
|
|
152540
152540
|
autotrack = _b.sent();
|
|
152541
152541
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152554,7 +152554,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152554
152554
|
return __generator(this, function (_b) {
|
|
152555
152555
|
switch (_b.label) {
|
|
152556
152556
|
case 0: return [4 /*yield*/, import(
|
|
152557
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152557
|
+
/* webpackChunkName: "auto-track" */ './auto-track-DK4gsk5m.js')];
|
|
152558
152558
|
case 1:
|
|
152559
152559
|
autotrack = _b.sent();
|
|
152560
152560
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152573,7 +152573,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152573
152573
|
return __generator(this, function (_b) {
|
|
152574
152574
|
switch (_b.label) {
|
|
152575
152575
|
case 0: return [4 /*yield*/, import(
|
|
152576
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152576
|
+
/* webpackChunkName: "auto-track" */ './auto-track-DK4gsk5m.js')];
|
|
152577
152577
|
case 1:
|
|
152578
152578
|
autotrack = _b.sent();
|
|
152579
152579
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152592,7 +152592,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152592
152592
|
return __generator(this, function (_b) {
|
|
152593
152593
|
switch (_b.label) {
|
|
152594
152594
|
case 0: return [4 /*yield*/, import(
|
|
152595
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152595
|
+
/* webpackChunkName: "auto-track" */ './auto-track-DK4gsk5m.js')];
|
|
152596
152596
|
case 1:
|
|
152597
152597
|
autotrack = _b.sent();
|
|
152598
152598
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152742,7 +152742,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152742
152742
|
return [2 /*return*/, []];
|
|
152743
152743
|
}
|
|
152744
152744
|
return [4 /*yield*/, import(
|
|
152745
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
152745
|
+
/* webpackChunkName: "queryString" */ './index-DNtUrKbu.js')];
|
|
152746
152746
|
case 1:
|
|
152747
152747
|
queryString = (_a.sent()).queryString;
|
|
152748
152748
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -155446,7 +155446,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155446
155446
|
case 0:
|
|
155447
155447
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
155448
155448
|
return [4 /*yield*/, import(
|
|
155449
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
155449
|
+
/* webpackChunkName: "tsub-middleware" */ './index-Cbyd34U6.js').then(function (mod) {
|
|
155450
155450
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
155451
155451
|
})];
|
|
155452
155452
|
case 1:
|
|
@@ -155459,7 +155459,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155459
155459
|
tsubMiddleware = _d;
|
|
155460
155460
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
155461
155461
|
return [4 /*yield*/, import(
|
|
155462
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
155462
|
+
/* webpackChunkName: "ajs-destination" */ './index-BQ0p7X6B.js').then(function (mod) {
|
|
155463
155463
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
155464
155464
|
})];
|
|
155465
155465
|
case 4:
|
|
@@ -155472,7 +155472,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155472
155472
|
legacyDestinations = _e;
|
|
155473
155473
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
155474
155474
|
return [4 /*yield*/, import(
|
|
155475
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
155475
|
+
/* webpackChunkName: "legacyVideos" */ './index-DHBxX6fE.js').then(function (mod) {
|
|
155476
155476
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
155477
155477
|
})];
|
|
155478
155478
|
case 7:
|
|
@@ -155481,7 +155481,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155481
155481
|
case 8:
|
|
155482
155482
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
155483
155483
|
return [4 /*yield*/, import(
|
|
155484
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
155484
|
+
/* webpackChunkName: "schemaFilter" */ './index-N6bH7obe.js').then(function (mod) {
|
|
155485
155485
|
var _a;
|
|
155486
155486
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
155487
155487
|
})];
|
|
@@ -155520,7 +155520,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155520
155520
|
return enabled;
|
|
155521
155521
|
})) return [3 /*break*/, 17];
|
|
155522
155522
|
return [4 /*yield*/, import(
|
|
155523
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
155523
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-CkkTi5Rn.js').then(function (_a) {
|
|
155524
155524
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
155525
155525
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155526
155526
|
var middleware, promises;
|
|
@@ -222717,7 +222717,7 @@ const useProvidersContext = () => {
|
|
|
222717
222717
|
return context;
|
|
222718
222718
|
};
|
|
222719
222719
|
|
|
222720
|
-
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-
|
|
222720
|
+
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-CzLj_kbJ.js'));
|
|
222721
222721
|
class AddTokens extends Base {
|
|
222722
222722
|
eventTopic = IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT;
|
|
222723
222723
|
getValidatedProperties({ config, }) {
|
|
@@ -222761,7 +222761,7 @@ class AddTokens extends Base {
|
|
|
222761
222761
|
}
|
|
222762
222762
|
}
|
|
222763
222763
|
|
|
222764
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
222764
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-BD2arVjv.js'));
|
|
222765
222765
|
class Bridge extends Base {
|
|
222766
222766
|
eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
222767
222767
|
getValidatedProperties({ config }) {
|
|
@@ -222829,7 +222829,7 @@ const commerceFlows = [
|
|
|
222829
222829
|
CommerceFlowType.ADD_TOKENS,
|
|
222830
222830
|
];
|
|
222831
222831
|
|
|
222832
|
-
const CommerceWidget = React.lazy(() => import('./CommerceWidget-
|
|
222832
|
+
const CommerceWidget = React.lazy(() => import('./CommerceWidget-B0rI7mqO.js'));
|
|
222833
222833
|
class CommerceWidgetRoot extends Base {
|
|
222834
222834
|
eventTopic = IMTBLWidgetEvents.IMTBL_COMMERCE_WIDGET_EVENT;
|
|
222835
222835
|
getValidatedProperties({ config, }) {
|
|
@@ -223362,10 +223362,6 @@ const connectLoaderReducer = (state, action) => {
|
|
|
223362
223362
|
return state;
|
|
223363
223363
|
}
|
|
223364
223364
|
};
|
|
223365
|
-
const useConnectLoaderState = () => {
|
|
223366
|
-
const [connectLoaderState, connectLoaderDispatch] = reactExports.useReducer(connectLoaderReducer, initialConnectLoaderState);
|
|
223367
|
-
return [connectLoaderState, connectLoaderDispatch];
|
|
223368
|
-
};
|
|
223369
223365
|
|
|
223370
223366
|
var ConnectWidgetViews;
|
|
223371
223367
|
(function (ConnectWidgetViews) {
|
|
@@ -224721,7 +224717,7 @@ function SwitchNetworkZkEVM() {
|
|
|
224721
224717
|
return (jsx$1(SimpleLayout, { testId: "switch-network-view", header: (jsx$1(HeaderNavigation, { transparent: true, onCloseButtonClick: sendCloseEvent })), footer: (jsx$1(FooterButton, { actionText: buttonTextKey, onActionClick: switchNetwork })), heroContent: jsx$1(ImmutablePlanetHero, {}), floatHeader: true, children: jsx$1(SimpleTextBody, { heading: t('views.SWITCH_NETWORK.zkEVM.heading'), children: isWalletConnectProvider(provider) ? (t('views.SWITCH_NETWORK.zkEVM.bodyWalletConnect')) : (t('views.SWITCH_NETWORK.zkEVM.body')) }) }));
|
|
224722
224718
|
}
|
|
224723
224719
|
|
|
224724
|
-
function ConnectWidget({ config, sendCloseEventOverride, web3Provider, checkout, targetWalletRdns, targetChainId, allowedChains, blocklistWalletRdns, deepLink = ConnectWidgetViews.CONNECT_WALLET, isCheckNetworkEnabled, sendGoBackEventOverride, showBackButton, }) {
|
|
224720
|
+
function ConnectWidget({ config, sendSuccessEventOverride, sendCloseEventOverride, web3Provider, checkout, targetWalletRdns, targetChainId, allowedChains, blocklistWalletRdns, deepLink = ConnectWidgetViews.CONNECT_WALLET, isCheckNetworkEnabled, sendGoBackEventOverride, showBackButton, }) {
|
|
224725
224721
|
const { t } = useTranslation();
|
|
224726
224722
|
const { environment } = config;
|
|
224727
224723
|
const { isWalletConnectEnabled, ethereumProvider } = useWalletConnect();
|
|
@@ -224825,6 +224821,10 @@ function ConnectWidget({ config, sendCloseEventOverride, web3Provider, checkout,
|
|
|
224825
224821
|
}
|
|
224826
224822
|
}
|
|
224827
224823
|
}
|
|
224824
|
+
if (sendSuccessEventOverride) {
|
|
224825
|
+
sendSuccessEventOverride();
|
|
224826
|
+
return;
|
|
224827
|
+
}
|
|
224828
224828
|
sendConnectSuccessEvent(eventTarget, provider, walletProviderName ?? undefined, walletProviderInfo);
|
|
224829
224829
|
}, [provider, identify]);
|
|
224830
224830
|
return (jsx$1(ViewContext.Provider, { value: viewReducerValues, children: jsx$1(ConnectContext.Provider, { value: connectReducerValues, children: jsxs(Fragment$1, { children: [view.type === SharedViews.LOADING_VIEW && (jsx$1(LoadingView, { loadingText: "Loading" })), view.type === ConnectWidgetViews.CONNECT_WALLET && (jsx$1(ConnectWallet, { targetWalletRdns: targetWalletRdns, targetChainId: targetChain, allowedChains: allowedChains ?? [targetChain], blocklistWalletRdns: blocklistWalletRdns, checkNetwork: isCheckNetworkEnabled ?? true, showBackButton: showBackButton, onBackButtonClick: sendGoBackEventOverride })), view.type === ConnectWidgetViews.SWITCH_NETWORK && isZkEvmChainId(targetChain) && (jsx$1(SwitchNetworkZkEVM, {})), view.type === ConnectWidgetViews.SWITCH_NETWORK && isL1EthChainId(targetChain) && (jsx$1(SwitchNetworkEth, {})), view.type === ConnectWidgetViews.SUCCESS && provider && (jsx$1(ConnectLoaderSuccess, { children: jsx$1(StatusView, { statusText: t('views.CONNECT_SUCCESS.status'), actionText: t('views.CONNECT_SUCCESS.action'), onActionClick: () => sendCloseEvent(), onRenderEvent: handleConnectSuccess, statusType: StatusType.SUCCESS, testId: "success-view" }) })), ((view.type === ConnectWidgetViews.SUCCESS && !provider)
|
|
@@ -224846,7 +224846,7 @@ var ConnectWidget$1 = /*#__PURE__*/Object.freeze({
|
|
|
224846
224846
|
default: ConnectWidget
|
|
224847
224847
|
});
|
|
224848
224848
|
|
|
224849
|
-
function ConnectLoader({ children, params, widgetConfig, closeEvent, goBackEvent, showBackButton, }) {
|
|
224849
|
+
function ConnectLoader({ children, params, widgetConfig, successEvent, closeEvent, goBackEvent, showBackButton, }) {
|
|
224850
224850
|
const { checkout, targetChainId, walletProviderName, allowedChains, web3Provider, isCheckNetworkEnabled, } = params;
|
|
224851
224851
|
const { t } = useTranslation();
|
|
224852
224852
|
const [connectLoaderState, connectLoaderDispatch] = reactExports.useReducer(connectLoaderReducer, { ...initialConnectLoaderState, checkout });
|
|
@@ -225009,7 +225009,7 @@ function ConnectLoader({ children, params, widgetConfig, closeEvent, goBackEvent
|
|
|
225009
225009
|
}, [checkout, walletProviderName, web3Provider]);
|
|
225010
225010
|
return (jsxs(Fragment$1, { children: [(connectionStatus === ConnectionStatus.LOADING) && (jsx$1(LoadingView, { loadingText: "Loading" })), jsxs(ConnectLoaderContext.Provider, { value: connectLoaderReducerValues, children: [(connectionStatus === ConnectionStatus.NOT_CONNECTED_NO_PROVIDER
|
|
225011
225011
|
|| connectionStatus === ConnectionStatus.NOT_CONNECTED
|
|
225012
|
-
|| connectionStatus === ConnectionStatus.CONNECTED_WRONG_NETWORK) && (jsx$1(ConnectWidget, { config: widgetConfig, targetChainId: targetChainId, web3Provider: provider, checkout: checkout, deepLink: deepLink, sendCloseEventOverride: closeEvent, allowedChains: allowedChains, isCheckNetworkEnabled: isCheckNetworkEnabled ?? true, showBackButton: showBackButton, sendGoBackEventOverride: goBackEvent })), connectionStatus === ConnectionStatus.CONNECTED_WITH_NETWORK && (children)] }), connectionStatus === ConnectionStatus.ERROR && (jsx$1(ErrorView, { onCloseClick: closeEvent, onActionClick: () => {
|
|
225012
|
+
|| connectionStatus === ConnectionStatus.CONNECTED_WRONG_NETWORK) && (jsx$1(ConnectWidget, { config: widgetConfig, targetChainId: targetChainId, web3Provider: provider, checkout: checkout, deepLink: deepLink, sendSuccessEventOverride: successEvent, sendCloseEventOverride: closeEvent, allowedChains: allowedChains, isCheckNetworkEnabled: isCheckNetworkEnabled ?? true, showBackButton: showBackButton, sendGoBackEventOverride: goBackEvent })), connectionStatus === ConnectionStatus.CONNECTED_WITH_NETWORK && (children)] }), connectionStatus === ConnectionStatus.ERROR && (jsx$1(ErrorView, { onCloseClick: closeEvent, onActionClick: () => {
|
|
225013
225013
|
connectLoaderDispatch({
|
|
225014
225014
|
payload: {
|
|
225015
225015
|
type: ConnectLoaderActions.UPDATE_CONNECTION_STATUS,
|
|
@@ -225139,7 +225139,7 @@ const orchestrationEvents = {
|
|
|
225139
225139
|
sendRequestAddTokensEvent,
|
|
225140
225140
|
};
|
|
225141
225141
|
|
|
225142
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
225142
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-mDBP43Vd.js').then(function (n) { return n.a; }));
|
|
225143
225143
|
class OnRamp extends Base {
|
|
225144
225144
|
eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
225145
225145
|
getValidatedProperties({ config }) {
|
|
@@ -225277,7 +225277,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
225277
225277
|
eventTarget.dispatchEvent(event);
|
|
225278
225278
|
};
|
|
225279
225279
|
|
|
225280
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
225280
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-D9I4_Y1V.js'));
|
|
225281
225281
|
class Sale extends Base {
|
|
225282
225282
|
eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
|
|
225283
225283
|
// TODO: add specific validation logic for the sale items
|
|
@@ -225481,7 +225481,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
|
|
|
225481
225481
|
: serviceUnavailableView) }));
|
|
225482
225482
|
}
|
|
225483
225483
|
|
|
225484
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
225484
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-fHXX-Hf-.js'));
|
|
225485
225485
|
class Swap extends Base {
|
|
225486
225486
|
eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
|
|
225487
225487
|
getValidatedProperties({ config }) {
|
|
@@ -225606,7 +225606,7 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
225606
225606
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
225607
225607
|
}
|
|
225608
225608
|
|
|
225609
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
225609
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-DiNzzHMW.js'));
|
|
225610
225610
|
class Wallet extends Base {
|
|
225611
225611
|
eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
|
|
225612
225612
|
getValidatedProperties({ config }) {
|
|
@@ -225743,4 +225743,4 @@ class WidgetsFactory {
|
|
|
225743
225743
|
}
|
|
225744
225744
|
}
|
|
225745
225745
|
|
|
225746
|
-
export {
|
|
225746
|
+
export { BaseClickable as $, merge$1 as A, BridgeEventType as B, CommerceFlowType as C, useResizeObserver as D, ErrorView as E, SmartClone as F, Box as G, isChildSubcomponent as H, IMTBLWidgetEvents as I, flattenChildren as J, Body as K, LoadingView as L, useTheme$1 as M, Icon as N, OnRampEventType as O, ProviderEventType as P, ButtCon as Q, Button as R, SwapEventType as S, _defineProperty$1 as T, isDualVariantIcon as U, ViewActions as V, WalletEventType as W, _slicedToArray as X, isNumberWithinTotal as Y, getStartingSize as Z, _objectWithoutProperties as _, CommerceEventType as a, orchestrationEvents as a$, ClassNames as a0, _toConsumableArray as a1, isError as a2, Badge as a3, FramedIcon as a4, FramedImage as a5, FramedLogo as a6, Stack as a7, hFlex as a8, usePrevious as a9, Heading as aA, WalletDrawer as aB, UnableToConnectDrawer as aC, ChangedYourMindDrawer as aD, WalletProviderRdns as aE, getProviderSlugFromRdns as aF, Web3Provider as aG, connectEIP6963Provider as aH, identifyUser as aI, ConnectEIP6963ProviderError as aJ, ProvidersContextActions as aK, ViewContext as aL, commonjsRequire$1 as aM, getRemoteImage as aN, useHandover as aO, HandoverTarget as aP, EventTargetContext as aQ, getRemoteRive as aR, Trans as aS, Link as aT, useInjectedProviders as aU, getDefaultTokenImage as aV, OverflowDrawerMenu as aW, SimpleLayout as aX, TokenFilterTypes as aY, isNativeToken as aZ, getTokenImageByAddress as a_, useBrowserEffect as aa, getHeadingTextStyles as ab, vFlex as ac, centerFlexChildren as ad, FormControlLabel as ae, FormControlValidation as af, FormControlCaption as ag, AddTokensEventType as ah, getDefaultExportFromCjs$3 as ai, commonjsGlobal$2 as aj, MenuItem as ak, tokenValueFormat as al, DEFAULT_TOKEN_FORMATTING_DECIMALS as am, BigNumber$1 as an, getRemoteVideo as ao, FramedVideo as ap, motion$1 as aq, listItemVariants as ar, Divider as as, Fragment$1 as at, listVariants as au, useProvidersContext as av, Drawer as aw, useAnalytics as ax, UserJourney as ay, isPassportProvider as az, ConnectEventType as b, BlockExplorerService as b$, requireSecp256k1 as b0, requireLib_commonjs as b1, require$$0$3 as b2, bech32 as b3, bnExports$1 as b4, require$$0$2 as b5, getAugmentedNamespace$1 as b6, require$$0$5 as b7, minimalisticAssert$1 as b8, require$$2 as b9, sendSaleSuccessEvent as bA, sendSaleFailedEvent as bB, sendSaleTransactionSuccessEvent as bC, sendSalePaymentMethodEvent as bD, sendSalePaymentTokenEvent as bE, HeaderNavigation as bF, LoadingOverlay as bG, HandoverDuration as bH, FooterLogo as bI, StatusType as bJ, prettyFormatNumber as bK, ShimmerCircle as bL, FundingStepType as bM, abbreviateWalletAddress as bN, tokenSymbolNameOverrides as bO, ItemType as bP, TransactionOrGasType as bQ, GasTokenType as bR, RoutingOutcomeType as bS, isGasFree as bT, ConnectLoaderContext as bU, eventTargetReducer as bV, initialEventTargetState as bW, EventTargetActions as bX, ConnectWidgetViews as bY, ConnectLoaderActions as bZ, widgetTheme as b_, hash$5 as ba, MaxUint256$5 as bb, merge as bc, SvgIcon as bd, WalletWarningHero as be, Environment$1 as bf, t$7 as bg, PriceDisplay as bh, viewReducer as bi, initialViewState as bj, isValidAddress as bk, amountInputValidation as bl, CloudImage as bm, ServiceUnavailableErrorView as bn, ServiceType as bo, MultiTextShimmer as bp, getCaptionTextStyles as bq, DEFAULT_BODY_PROPS as br, baseTextComponentSx as bs, useConvertSxToEmotionStyles as bt, useGetCurrentSizeClass as bu, cloneElementWithCssProp as bv, compareStr as bw, SalePaymentTypes as bx, calculateCryptoToFiat as by, sendSaleWidgetCloseEvent as bz, CommerceFailureEventType as c, arrayify$1 as c$, axios$1 as c0, CheckoutErrorType as c1, IMMUTABLE_API_BASE_URL as c2, ShimmerBox as c3, PASSPORT_URL as c4, getChainIdBySlug as c5, getChainImage as c6, networkName as c7, useWalletConnect as c8, isWalletConnectProvider as c9, SimpleTextBody as cA, FooterButton as cB, getEthTokenImage as cC, WITHDRAWAL_CLAIM_GAS_LIMIT as cD, BridgeConfiguration as cE, ImmutableConfiguration as cF, TokenBridge as cG, StatusView as cH, ETH_SEPOLIA_TO_ZKEVM_TESTNET as cI, ETH_SEPOLIA_TO_ZKEVM_DEVNET as cJ, ETH_MAINNET_TO_ZKEVM_MAINNET as cK, defineReadOnly$1 as cL, getStatic$1 as cM, Signer$1 as cN, Provider$1 as cO, getAddress$1 as cP, Logger$2 as cQ, getContractAddress$1 as cR, Interface$1 as cS, shallowCopy$1 as cT, VoidSigner$1 as cU, Indexed$1 as cV, deepCopy$1 as cW, isHexString$1 as cX, checkResultErrors$1 as cY, resolveProperties$1 as cZ, accessListify$1 as c_, Logo as ca, RawImage as cb, AXELAR_SCAN_URL as cc, getNativeSymbolByChainSlug as cd, getChainSlugById as ce, JsonRpcProvider$1 as cf, DEFAULT_TRANSACTIONS_RETRY_POLICY as cg, getChainNameById as ch, getWalletProviderNameByProvider as ci, isAddressSanctioned as cj, isMetaMaskProvider as ck, WalletProviderName as cl, ButtonNavigationStyles as cm, formatZeroAmount as cn, NATIVE as co, ETH_TOKEN_SYMBOL as cp, GasEstimateType as cq, DEFAULT_TOKEN_DECIMALS as cr, DEFAULT_QUOTE_REFRESH_INTERVAL as cs, addChainChangedListener as ct, removeChainChangedListener as cu, IMX_TOKEN_SYMBOL as cv, dist as cw, CHECKOUT_CDN_BASE_URL as cx, heroBackGroundStyles as cy, heroImageStyles as cz, CommerceSuccessEventType as d, dist$1 as d$, global$2 as d0, ExchangeType as d1, sendOnRampWidgetCloseEvent as d2, sendOnRampSuccessEvent as d3, sendOnRampFailedEvent as d4, WidgetTheme as d5, quickswapFooterStyles as d6, quickswapFooterLogoStyles as d7, quickswapFooterDisclaimerTextStyles as d8, getImxTokenImage as d9, sendNetworkSwitchEvent as dA, NetworkFilterTypes as dB, sortNetworksCompareFn as dC, sortTokensByAmount as dD, sendWalletWidgetCloseEvent as dE, sendDisconnectWalletEvent as dF, FAQS_LINK as dG, useBrowserLayoutEffect as dH, ne$2 as dI, se$2 as dJ, T$2 as dK, oe$4 as dL, R$5 as dM, a$4 as dN, te$4 as dO, p$9 as dP, y$6 as dQ, __awaiter as dR, __generator as dS, loadScript as dT, getNextIntegrationsURL as dU, unloadScript as dV, __spreadArray$1 as dW, isOffline as dX, __assign as dY, ContextCancelation as dZ, applyDestinationMiddleware as d_, Tooltip as da, ESTIMATE_DEBOUNCE as db, DEFAULT_TOKEN_VALIDATION_DECIMALS as dc, sendSwapWidgetCloseEvent as dd, DEFAULT_BALANCE_RETRY_POLICY as de, SwapDirection as df, sendSwapSuccessEvent as dg, sendSwapFailedEvent as dh, sendSwapRejectedEvent as di, AnimatePresence as dj, getTertiaryButtonStyles as dk, TextInput as dl, FormControlWrapper as dm, Select as dn, DuoCon as dp, heroImageBottomAlign as dq, version$r as dr, hexZeroPad$1 as ds, isBigNumberish as dt, isBytes$1 as du, DEFAULT_BUTTON_SIZE as dv, getResponsiveSx as dw, BUTTON_SIZES as dx, setDefaultSxBackgroundColor as dy, ZERO_BALANCE_STRING as dz, CommerceUserActionEventType as e, isServer as e0, mergedOptions as e1, isPlainObject as e2, pWhile as e3, PriorityQueue as e4, PersistedPriorityQueue as e5, attempt as e6, isOnline as e7, Context as e8, pTimeout as e9, gracefulDecodeURIComponent as ea, WidgetsFactory as eb, SaleEventType as f, OrchestrationEventType as g, getL2ChainId as h, getL1ChainId as i, ChainId as j, useViewState as k, useEventTargetState as l, SharedViews as m, commerceFlows as n, jsx$1 as o, jsxs as p, ConnectWidget as q, reactExports as r, ProvidersContextProvider as s, ConnectLoader as t, useTranslation as u, ViewContextProvider as v, useTheme as w, useForwardLocalDomRef as x, useGetSubcomponentChild as y, useSplitApartChildrenAndSubComponents as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dR as __awaiter, dS as __generator } from './index-D1QHaKvq.js';
|
|
2
2
|
|
|
3
3
|
function loadLegacyVideoPlugins(analytics) {
|
|
4
4
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -7,7 +7,7 @@ function loadLegacyVideoPlugins(analytics) {
|
|
|
7
7
|
switch (_a.label) {
|
|
8
8
|
case 0: return [4 /*yield*/, import(
|
|
9
9
|
// @ts-expect-error
|
|
10
|
-
'./index.umd-
|
|
10
|
+
'./index.umd-CM-rtgTq.js').then(function (n) { return n.i; })
|
|
11
11
|
// This is super gross, but we need to support the `window.analytics.plugins` namespace
|
|
12
12
|
// that is linked in the segment docs in order to be backwards compatible with ajs-classic
|
|
13
13
|
// @ts-expect-error
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports,
|
|
1
|
+
import { r as reactExports, aV as getDefaultTokenImage, o as jsx } from './index-D1QHaKvq.js';
|
|
2
2
|
|
|
3
3
|
function TokenImage({ src, name, environment, theme, defaultImage, ...forwardedProps }) {
|
|
4
4
|
const [error, setError] = reactExports.useState(false);
|