-
Notifications
You must be signed in to change notification settings - Fork 31
/
26445.67c0c157.iframe.bundle.js
1 lines (1 loc) · 128 KB
/
26445.67c0c157.iframe.bundle.js
1
"use strict";(globalThis.webpackChunkmetamask_crx=globalThis.webpackChunkmetamask_crx||[]).push([[26445],{"./test/jest/mock-store.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>createBridgeMockStore});var _obj,_obj1,_obj2,dist=__webpack_require__("./node_modules/@metamask/keyring-api/dist/index.mjs"),network=__webpack_require__("./shared/constants/network.ts"),keyring=__webpack_require__("./shared/constants/keyring.ts"),eth_methods=__webpack_require__("./shared/constants/eth-methods.ts"),networks=__webpack_require__("./test/stub/networks.ts"),dist_browser=__webpack_require__("./node_modules/ethereumjs-util/dist.browser/index.js"),bridge=__webpack_require__("./shared/constants/bridge.ts");function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var DEFAULT_BRIDGE_CONTROLLER_STATE={bridgeFeatureFlags:_define_property({},__webpack_require__("./shared/types/bridge.ts").QX.EXTENSION_CONFIG,{refreshRate:bridge.J_,maxRefreshCount:bridge.tB,support:!1,chains:{}}),srcTokens:{},srcTokensLoadingStatus:void 0,destTokensLoadingStatus:void 0,srcTopAssets:[],destTokens:{},destTopAssets:[],quoteRequest:{walletAddress:void 0,srcTokenAddress:(0,dist_browser.zeroAddress)(),slippage:bridge._z},quotesInitialLoadTime:void 0,quotes:[],quotesLastFetched:void 0,quotesLoadingStatus:void 0,quoteFetchError:void 0,quotesRefreshCount:0};_define_property({},network.tx.MAINNET,bridge.m4);var DEFAULT_BRIDGE_STATUS_CONTROLLER_STATE={txHistory:{}},constants=__webpack_require__("./node_modules/@metamask/transaction-controller/dist/constants.mjs");function mock_token_data_define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var mockTokenData={allTokens:(mock_token_data_define_property(_obj={},constants.tx.MAINNET,{"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":[{address:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",balance:"a",decimals:6},{address:"0x514910771af9ca656af840dff83e8264ecf986ca",balance:"e"}],"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b":[{address:"0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",balance:"e"}]}),mock_token_data_define_property(_obj,constants.tx.LINEA_MAINNET,{"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":[{address:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",balance:"e"}],"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b":[{address:"0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",balance:"e"}]}),_obj),accountsByChainId:(mock_token_data_define_property(_obj1={},constants.tx.MAINNET,{"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":{address:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",balance:"0xa"},"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b":{address:"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b",balance:"0xe"}}),mock_token_data_define_property(_obj1,constants.tx.LINEA_MAINNET,{"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":{address:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",balance:"0xe"},"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b":{address:"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b",balance:"0xe"}}),_obj1),tokensChainsCache:(mock_token_data_define_property(_obj2={},constants.tx.MAINNET,{timestamp:111111,data:[{address:"0x514910771af9ca656af840dff83e8264ecf986ca",symbol:"LINK",decimals:18},{address:"0xc00e94cb662c3520282e6f5717214004a7f26888",symbol:"COMP",decimals:18}]}),mock_token_data_define_property(_obj2,constants.tx.LINEA_MAINNET,{timestamp:111111,data:{"0x514910771af9ca656af840dff83e8264ecf986ca":{address:"0x514910771af9ca656af840dff83e8264ecf986ca",symbol:"LINK",decimals:18},"0xc00e94cb662c3520282e6f5717214004a7f26888":{address:"0xc00e94cb662c3520282e6f5717214004a7f26888",symbol:"COMP",decimals:18}}}),_obj2),tokenBalances:{"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":{"0x5":{},"0x1":{"0x514910771af9ca656af840dff83e8264ecf986ca":"0x1","0x1f9840a85d5af5bf1d1762f925bdaddc4201f984":"0x738"}}}};function mock_store_define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){mock_store_define_property(target,key,source[key])})}return target}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _object_spread_props(target,source){return source=null!=source?source:{},Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}),target}var createBridgeMockStore=function(){var _ref=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{featureFlagOverrides:{},bridgeSliceOverrides:{},bridgeStateOverrides:{},bridgeStatusStateOverrides:{},metamaskStateOverrides:{}},_ref_featureFlagOverrides=_ref.featureFlagOverrides,featureFlagOverrides=void 0===_ref_featureFlagOverrides?{}:_ref_featureFlagOverrides,_ref_bridgeSliceOverrides=_ref.bridgeSliceOverrides,_ref_bridgeStateOverrides=_ref.bridgeStateOverrides,_ref_bridgeStatusStateOverrides=_ref.bridgeStatusStateOverrides,_ref_metamaskStateOverrides=_ref.metamaskStateOverrides,swapsStore={confirmTransaction:{txData:{}},swaps:{customGas:{limit:"0x0",fallBackPrice:5,priceEstimates:{blockTime:14.1,safeLow:2.5,safeLowWait:6.6,average:4,avgWait:5.3,fast:5,fastWait:3.3,fastest:10,fastestWait:.5}},fromToken:"ETH",toToken:{symbol:"USDC",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",occurances:4},swapsSTXLoading:!1},metamask:_object_spread_props(_object_spread({preferences:{showFiatInTestnets:!0,smartTransactionsOptInStatus:!0,tokenNetworkFilter:{},showMultiRpcModal:!1},transactions:[{id:6571648590592143,time:1667403993369,status:"confirmed",originalGasEstimate:"0x7548",userEditedGasLimit:!1,chainId:network.tx.MAINNET,loadingDefaults:!1,dappSuggestedGasFees:null,sendFlowHistory:null,txParams:{from:"0x806627172af48bd5b0765d3449a7def80d6576ff",to:"0x881d40237659c251811cec9c364ef91dc08d300c",nonce:"0x30",value:"0x5af3107a4000",gas:"0x7548",maxFeePerGas:"0x19286f704d",maxPriorityFeePerGas:"0x77359400"},origin:"metamask",actionId:1667403993358.877,type:"swap",userFeeLevel:"medium",defaultGasEstimates:{estimateType:"medium",gas:"0x7548",maxFeePerGas:"0x19286f704d",maxPriorityFeePerGas:"0x77359400"},sourceTokenSymbol:"ETH",destinationTokenSymbol:"USDC",destinationTokenDecimals:6,destinationTokenAddress:"0xdac17f958d2ee523a2206206994597c13d831ec7",swapMetaData:{token_from:"ETH",token_from_amount:"0.0001",token_to:"USDC",token_to_amount:"0.15471500",slippage:2,custom_slippage:!1,best_quote_source:"pmm",other_quote_selected:!1,other_quote_selected_source:"",gas_fees:"3.016697",estimated_gas:"30024",used_gas_price:"0",is_hardware_wallet:!1,stx_enabled:!1,current_stx_enabled:!1,stx_user_opt_in:!1,reg_tx_fee_in_usd:3.02,reg_tx_fee_in_eth:.00193,reg_tx_max_fee_in_usd:5.06,reg_tx_max_fee_in_eth:.00324,max_fee_per_gas:"19286f704d",max_priority_fee_per_gas:"77359400",base_and_priority_fee_per_gas:"efd93d95a"},swapTokenValue:"0.0001",estimatedBaseFee:"e865e455a",hash:"0x8216e3696e7deb7ca794703015f17d5114a09362ae98f6a1611203e4c9509243",submittedTime:1667403996143,firstRetryBlockNumber:"0x7838fe",baseFeePerGas:"0xe0ef7d207",blockTimestamp:"636290e8",postTxBalance:"19a61aaaf06e4bd1"}],useCurrencyRateCheck:!0,currentCurrency:"usd",currencyRates:{ETH:{conversionRate:1}},marketData:{"0x1":{"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48":{price:2,contractPercentChange1d:.004,priceChange1d:4e-5},"0x1111111111111111111111111111111111111111":{price:.1,contractPercentChange1d:.01,priceChange1d:.001}}},identities:{"0xfdea65c8e26263f6d9a1b5de9555d2931a33b825":{address:"0xfdea65c8e26263f6d9a1b5de9555d2931a33b825",name:"Send Account 1"},"0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb":{address:"0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb",name:"Send Account 2"},"0x2f8d4a878cfa04a6e60d46362f5644deab66572d":{address:"0x2f8d4a878cfa04a6e60d46362f5644deab66572d",name:"Send Account 3"},"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":{address:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",name:"Send Account 4"}},internalAccounts:{accounts:{"cf8dace4-9439-4bd4-b3a8-88c821c8fcb3":{address:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",id:"cf8dace4-9439-4bd4-b3a8-88c821c8fcb3",metadata:{name:"Test Account",keyring:{type:"HD Key Tree"}},options:{},methods:eth_methods.z,type:dist.j0.Eoa},"07c2cfec-36c9-46c4-8115-3836d3ac9047":{address:"0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb",id:"07c2cfec-36c9-46c4-8115-3836d3ac9047",metadata:{name:"Test Account 2",keyring:{type:"HD Key Tree"}},options:{},methods:eth_methods.z,type:dist.j0.Eoa},"15e69915-2a1a-4019-93b3-916e11fd432f":{address:"0x2f8d4a878cfa04a6e60d46362f5644deab66572d",id:"15e69915-2a1a-4019-93b3-916e11fd432f",metadata:{name:"Ledger Hardware 2",keyring:{type:"Ledger Hardware"}},options:{},methods:eth_methods.z,type:dist.j0.Eoa},"784225f4-d30b-4e77-a900-c8bbce735b88":{address:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",id:"784225f4-d30b-4e77-a900-c8bbce735b88",metadata:{name:"Test Account 3",keyring:{type:"HD Key Tree"}},options:{},methods:eth_methods.z,type:dist.j0.Eoa},"36eb02e0-7925-47f0-859f-076608f09b69":{address:"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe6",id:"36eb02e0-7925-47f0-859f-076608f09b69",metadata:{name:"Snap Account 1",keyring:{type:"Snap Keyring"},snap:{id:"snap-id",name:"snap name"}},options:{},methods:eth_methods.z,type:dist.j0.Eoa}},selectedAccount:"cf8dace4-9439-4bd4-b3a8-88c821c8fcb3"},accounts:{"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":{address:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",balance:"0x0"},"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b":{address:"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b",balance:"0x0"}},accountsByChainId:mock_store_define_property({},network.tx.MAINNET,{"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc":{address:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",balance:"0x0"},"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b":{address:"0xec1adf982415d2ef5ec55899b9bfb8bc0f29251b",balance:"0x0"}}),selectedAddress:"0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc",currentLocale:"en",keyrings:[{type:keyring.ci.hdKeyTree,accounts:["0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc","c5b8dbac4c1d3f152cdeb400e2313f309c410acb","2f8d4a878cfa04a6e60d46362f5644deab66572d"]},{type:keyring.ci.imported,accounts:["0xd85a4b6a394794842887b8284293d69163007bbb"]}]},(0,networks.g)({chainId:network.tx.MAINNET,ticker:network.uM.ETH,rpcUrl:"https://mainnet.infura.io/v3/",blockExplorerUrl:"https://etherscan.io",id:"mainnet"})),{selectedNetworkClientId:"mainnet",tokens:[{erc20:!0,symbol:"BAT",decimals:18,address:"0x0D8775F648430679A709E98d2b0Cb6250d2887EF"},{erc20:!0,symbol:"USDT",decimals:6,address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}],swapsState:{swapsFeatureFlags:{ethereum:{extensionActive:!0,mobileActive:!1,smartTransactions:{expectedDeadline:45,maxDeadline:150,extensionReturnTxHashAsap:!1}},smartTransactions:{mobileActive:!0,extensionActive:!0}},quotes:{TEST_AGG_1:{trade:{from:"0xe18035bf8712672935fdb4e5e431b1a0183d2dfc",value:"0x0",gas:"0x61a80",to:"0x881D40237659C251811CEC9c364ef91dC08D300C"},sourceAmount:"10000000000000000000",destinationAmount:"20000000000000000000",error:null,sourceToken:"0x6b175474e89094c44da98b954eedeac495271d0f",destinationToken:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",approvalNeeded:null,maxGas:6e5,averageGas:12e4,estimatedRefund:8e4,fetchTime:607,aggregator:"TEST_AGG_1",aggType:"AGG",slippage:2,sourceTokenInfo:{address:"0x6b175474e89094c44da98b954eedeac495271d0f",symbol:"DAI",decimals:18,iconUrl:"https://foo.bar/logo.png"},destinationTokenInfo:{address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",symbol:"USDC",decimals:18},fee:1},TEST_AGG_BEST:{trade:{from:"0xe18035bf8712672935fdb4e5e431b1a0183d2dfc",value:"0x0",gas:"0x61a80",to:"0x881D40237659C251811CEC9c364ef91dC08D300C"},sourceAmount:"10000000000000000000",destinationAmount:"25000000000000000000",error:null,sourceToken:"0x6b175474e89094c44da98b954eedeac495271d0f",destinationToken:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",approvalNeeded:null,maxGas:11e5,averageGas:411e3,estimatedRefund:343090,fetchTime:1003,aggregator:"TEST_AGG_BEST",aggType:"AGG",slippage:2,sourceTokenInfo:{address:"0x6b175474e89094c44da98b954eedeac495271d0f",symbol:"DAI",decimals:18,iconUrl:"https://foo.bar/logo.png"},destinationTokenInfo:{address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",symbol:"USDC",decimals:18},fee:1,isGasIncludedTrade:!1,approvalTxFees:{feeEstimate:42e12,fees:[{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852}],gasLimit:21e3,gasUsed:21e3},tradeTxFees:{feeEstimate:42e12,fees:[{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852}],gasLimit:21e3,gasUsed:21e3}},TEST_AGG_2:{trade:{from:"0xe18035bf8712672935fdb4e5e431b1a0183d2dfc",value:"0x0",gas:"0x61a80",to:"0x881D40237659C251811CEC9c364ef91dC08D300C"},sourceAmount:"10000000000000000000",destinationAmount:"22000000000000000000",error:null,sourceToken:"0x6b175474e89094c44da98b954eedeac495271d0f",destinationToken:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",approvalNeeded:null,maxGas:368e3,averageGas:197e3,estimatedRefund:18205,fetchTime:1354,aggregator:"TEST_AGG_2",aggType:"AGG",isBestQuote:!0,slippage:2,sourceTokenInfo:{address:"0x6b175474e89094c44da98b954eedeac495271d0f",symbol:"DAI",decimals:18,iconUrl:"https://foo.bar/logo.png"},destinationTokenInfo:{address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",symbol:"USDC",decimals:18},fee:1,isGasIncludedTrade:!1,approvalTxFees:{feeEstimate:42e12,fees:[{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852}],gasLimit:21e3,gasUsed:21e3},tradeTxFees:{feeEstimate:42e12,fees:[{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852,tokenFees:[{token:{address:"0x6b175474e89094c44da98b954eedeac495271d0f",symbol:"DAI",decimals:18},balanceNeededToken:"0x426dc933c2e5a"}]}],gasLimit:21e3,gasUsed:21e3}}},fetchParams:{metaData:{sourceTokenInfo:{symbol:"ETH"},destinationTokenInfo:{symbol:"USDC"}}},tradeTxId:null,approveTxId:null,quotesLastFetched:1519211809934,swapsQuoteRefreshTime:6e4,swapsQuotePrefetchingRefreshTime:6e4,swapsStxBatchStatusRefreshTime:5e3,swapsStxGetTransactionsRefreshTime:5e3,swapsStxMaxFeeMultiplier:1.5,swapsStxStatusDeadline:15e4,customMaxGas:"",customGasPrice:null,selectedAggId:"TEST_AGG_2",customApproveTxData:"",errorKey:"",topAggId:"TEST_AGG_BEST",routeState:"",swapsFeatureIsLive:!1},useTokenDetection:!0,tokenList:{"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984":{address:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",symbol:"UNI",decimals:18,name:"Uniswap",iconUrl:"",aggregators:["airswapLight","bancor","cmc","coinGecko","kleros","oneInch","paraswap","pmm","totle","zapper","zerion","zeroEx"],occurrences:12},"0x514910771af9ca656af840dff83e8264ecf986ca":{address:"0x514910771af9ca656af840dff83e8264ecf986ca",symbol:"LINK",decimals:18,name:"Chainlink",iconUrl:"",aggregators:["airswapLight","bancor","cmc","coinGecko","kleros","oneInch","paraswap","pmm","totle","zapper","zerion","zeroEx"],occurrences:12},"0x6b3595068778dd592e39a122f4f5a5cf09c90fe2":{address:"0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",symbol:"SUSHI",decimals:18,name:"SushiSwap",iconUrl:"",aggregators:["bancor","cmc","coinGecko","kleros","oneInch","paraswap","pmm","totle","zapper","zerion","zeroEx"],occurrences:11}},smartTransactionsState:{userOptIn:!0,userOptInV2:!0,liveness:!0,fees:{tradeTxFees:{cancelFees:[{maxFeePerGas:2100001e3,maxPriorityFeePerGas:466503987},{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852},{maxFeePerGas:2541005830,maxPriorityFeePerGas:564470851},{maxFeePerGas:2795108954,maxPriorityFeePerGas:620918500},{maxFeePerGas:3074622644,maxPriorityFeePerGas:683010971},{maxFeePerGas:3382087983,maxPriorityFeePerGas:751312751},{maxFeePerGas:3720300164,maxPriorityFeePerGas:826444778},{maxFeePerGas:4092333900,maxPriorityFeePerGas:909090082},{maxFeePerGas:4501571383,maxPriorityFeePerGas:1e9},{maxFeePerGas:4951733023,maxPriorityFeePerGas:1100001e3},{maxFeePerGas:5446911277,maxPriorityFeePerGas:1210002200},{maxFeePerGas:5991607851,maxPriorityFeePerGas:1331003630},{maxFeePerGas:6590774628,maxPriorityFeePerGas:1464105324},{maxFeePerGas:7249858682,maxPriorityFeePerGas:1610517320},{maxFeePerGas:7974851800,maxPriorityFeePerGas:1771570663},{maxFeePerGas:8772344955,maxPriorityFeePerGas:1948729500},{maxFeePerGas:9649588222,maxPriorityFeePerGas:2143604399},{maxFeePerGas:10614556694,maxPriorityFeePerGas:2357966983},{maxFeePerGas:11676022978,maxPriorityFeePerGas:2593766039}],feeEstimate:42e12,fees:[{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852},{maxFeePerGas:2541005830,maxPriorityFeePerGas:564470850},{maxFeePerGas:2795108954,maxPriorityFeePerGas:620918500},{maxFeePerGas:3074622644,maxPriorityFeePerGas:683010970},{maxFeePerGas:3382087983,maxPriorityFeePerGas:751312751},{maxFeePerGas:3720300163,maxPriorityFeePerGas:826444777},{maxFeePerGas:4092333900,maxPriorityFeePerGas:909090082},{maxFeePerGas:4501571382,maxPriorityFeePerGas:999999999},{maxFeePerGas:4951733022,maxPriorityFeePerGas:1100001e3},{maxFeePerGas:5446911277,maxPriorityFeePerGas:1210002200},{maxFeePerGas:5991607851,maxPriorityFeePerGas:1331003630},{maxFeePerGas:6590774627,maxPriorityFeePerGas:1464105324},{maxFeePerGas:7249858681,maxPriorityFeePerGas:1610517320},{maxFeePerGas:7974851800,maxPriorityFeePerGas:1771570662},{maxFeePerGas:8772344954,maxPriorityFeePerGas:1948729500},{maxFeePerGas:9649588222,maxPriorityFeePerGas:2143604398},{maxFeePerGas:10614556693,maxPriorityFeePerGas:2357966982},{maxFeePerGas:11676022977,maxPriorityFeePerGas:2593766039},{maxFeePerGas:12843636951,maxPriorityFeePerGas:2853145236}],gasLimit:21e3,gasUsed:21e3},approvalTxFees:{cancelFees:[{maxFeePerGas:2100001e3,maxPriorityFeePerGas:466503987},{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852},{maxFeePerGas:2541005830,maxPriorityFeePerGas:564470851},{maxFeePerGas:2795108954,maxPriorityFeePerGas:620918500},{maxFeePerGas:3074622644,maxPriorityFeePerGas:683010971},{maxFeePerGas:3382087983,maxPriorityFeePerGas:751312751},{maxFeePerGas:3720300164,maxPriorityFeePerGas:826444778},{maxFeePerGas:4092333900,maxPriorityFeePerGas:909090082},{maxFeePerGas:4501571383,maxPriorityFeePerGas:1e9},{maxFeePerGas:4951733023,maxPriorityFeePerGas:1100001e3},{maxFeePerGas:5446911277,maxPriorityFeePerGas:1210002200},{maxFeePerGas:5991607851,maxPriorityFeePerGas:1331003630},{maxFeePerGas:6590774628,maxPriorityFeePerGas:1464105324},{maxFeePerGas:7249858682,maxPriorityFeePerGas:1610517320},{maxFeePerGas:7974851800,maxPriorityFeePerGas:1771570663},{maxFeePerGas:8772344955,maxPriorityFeePerGas:1948729500},{maxFeePerGas:9649588222,maxPriorityFeePerGas:2143604399},{maxFeePerGas:10614556694,maxPriorityFeePerGas:2357966983},{maxFeePerGas:11676022978,maxPriorityFeePerGas:2593766039}],feeEstimate:42e12,fees:[{maxFeePerGas:2310003200,maxPriorityFeePerGas:513154852},{maxFeePerGas:2541005830,maxPriorityFeePerGas:564470850},{maxFeePerGas:2795108954,maxPriorityFeePerGas:620918500},{maxFeePerGas:3074622644,maxPriorityFeePerGas:683010970},{maxFeePerGas:3382087983,maxPriorityFeePerGas:751312751},{maxFeePerGas:3720300163,maxPriorityFeePerGas:826444777},{maxFeePerGas:4092333900,maxPriorityFeePerGas:909090082},{maxFeePerGas:4501571382,maxPriorityFeePerGas:999999999},{maxFeePerGas:4951733022,maxPriorityFeePerGas:1100001e3},{maxFeePerGas:5446911277,maxPriorityFeePerGas:1210002200},{maxFeePerGas:5991607851,maxPriorityFeePerGas:1331003630},{maxFeePerGas:6590774627,maxPriorityFeePerGas:1464105324},{maxFeePerGas:7249858681,maxPriorityFeePerGas:1610517320},{maxFeePerGas:7974851800,maxPriorityFeePerGas:1771570662},{maxFeePerGas:8772344954,maxPriorityFeePerGas:1948729500},{maxFeePerGas:9649588222,maxPriorityFeePerGas:2143604398},{maxFeePerGas:10614556693,maxPriorityFeePerGas:2357966982},{maxFeePerGas:11676022977,maxPriorityFeePerGas:2593766039},{maxFeePerGas:12843636951,maxPriorityFeePerGas:2853145236}],gasLimit:21e3,gasUsed:21e3}},smartTransactions:mock_store_define_property({},network.tx.MAINNET,[{uuid:"uuid2",status:"success",cancellable:!1,statusMetadata:{cancellationFeeWei:36777567771e3,cancellationReason:"not_cancelled",deadlineRatio:.6400288486480713,minedHash:"0x55ad39634ee10d417b6e190cfd3736098957e958879cffe78f1f00f4fd2654d6",minedTx:"success"}},{uuid:"uuid2",status:"pending",cancellable:!0,statusMetadata:{cancellationFeeWei:36777567771e3,cancellationReason:"not_cancelled",deadlineRatio:.6400288486480713,minedHash:"0x55ad39634ee10d417b6e190cfd3736098957e958879cffe78f1f00f4fd2654d6",minedTx:"success"}}])},balances:{}}),appState:{modal:{open:!0,modalState:{name:"test",props:{initialGasLimit:100,minimumGasLimit:5}}},gasLoadingAnimationIsShowing:!1}};return _object_spread_props(_object_spread({},swapsStore),{swaps:_object_spread_props(_object_spread({},swapsStore.swaps),{topAssets:[]}),bridge:_object_spread({toChainId:null,sortOrder:"cost_ascending"},void 0===_ref_bridgeSliceOverrides?{}:_ref_bridgeSliceOverrides),metamask:_object_spread_props(_object_spread(_object_spread_props(_object_spread({},swapsStore.metamask,(0,networks.g)({chainId:network.tx.MAINNET},{chainId:network.tx.LINEA_MAINNET})),{gasFeeEstimates:mock_store_define_property({estimatedBaseFee:"0.00010456"},bridge.Lk,{suggestedMaxFeePerGas:"0.00018456",suggestedMaxPriorityFeePerGas:"0.0001"}),currencyRates:{ETH:{conversionRate:2524.25},usd:{conversionRate:1}},marketData:{"0x1":{"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984":{currency:"usd",price:2.3}}}}),mockTokenData,void 0===_ref_metamaskStateOverrides?{}:_ref_metamaskStateOverrides),{bridgeState:_object_spread(_object_spread_props(_object_spread({},DEFAULT_BRIDGE_CONTROLLER_STATE),{bridgeFeatureFlags:_object_spread_props(_object_spread({},featureFlagOverrides),{extensionConfig:_object_spread({support:!1,chains:{}},featureFlagOverrides.extensionConfig)})}),void 0===_ref_bridgeStateOverrides?{}:_ref_bridgeStateOverrides),bridgeStatusState:_object_spread({},DEFAULT_BRIDGE_STATUS_CONTROLLER_STATE,void 0===_ref_bridgeStatusStateOverrides?{}:_ref_bridgeStatusStateOverrides)}),send:{swapsBlockedTokens:[]}})}},"./ui/ducks/bridge/selectors.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$8:()=>getFromAmount,G8:()=>getFromToken,GG:()=>getFromChain,Gp:()=>getIsBridgeTx,OL:()=>getSlippage,PK:()=>getBridgeQuotes,Tp:()=>getToTokenConversionRate,Uv:()=>getToChains,WZ:()=>getQuoteRequest,Ww:()=>getToTokens,b6:()=>getToChain,dJ:()=>getToToken,dS:()=>getFromChains,g1:()=>getAllBridgeableNetworks,gE:()=>getBridgeSortOrder,it:()=>getWasTxDeclined,k6:()=>getFromTokenConversionRate,pk:()=>getBridgeQuotesConfig,tt:()=>getFromAmountInCurrency,v:()=>getValidationErrors,vL:()=>getFromTokens});var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/lodash/lodash.js"),reselect__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/reselect/dist/reselect.mjs"),bignumber_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/bignumber.js/bignumber.js"),_metamask_notification_services_controller_push_services__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@metamask/notification-services-controller/dist/NotificationServicesPushController/utils/get-notification-data.mjs"),_selectors_selectors__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/selectors/selectors.js"),_shared_constants_bridge__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./shared/constants/bridge.ts"),_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./shared/modules/selectors/util.js"),_shared_constants_swaps__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./shared/constants/swaps.ts"),_shared_modules_selectors_networks__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./shared/modules/selectors/networks.ts"),_metamask_metamask__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./ui/ducks/metamask/metamask.js"),_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./shared/types/bridge.ts"),_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./ui/pages/bridge/utils/quote.ts"),_shared_constants_transaction__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./shared/constants/transaction.ts"),_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./shared/modules/conversion.utils.ts"),_shared_constants_network__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./shared/constants/network.ts"),_utils__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./ui/ducks/bridge/utils.ts");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_without_holes(arr){if(Array.isArray(arr))return _array_like_to_array(arr)}function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _iterable_to_array(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}function _non_iterable_spread(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){_define_property(target,key,source[key])})}return target}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _object_spread_props(target,source){return source=null!=source?source:{},Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}),target}function _to_consumable_array(arr){return _array_without_holes(arr)||_iterable_to_array(arr)||_unsupported_iterable_to_array(arr)||_non_iterable_spread()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}var getAllBridgeableNetworks=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(_shared_modules_selectors_networks__WEBPACK_IMPORTED_MODULE_6__.hX,function(networkConfigurationsByChainId){return(0,lodash__WEBPACK_IMPORTED_MODULE_0__.uniqBy)(Object.values(networkConfigurationsByChainId),"chainId").filter(function(param){var chainId=param.chainId;return _shared_constants_bridge__WEBPACK_IMPORTED_MODULE_3__.kI.includes(chainId)})}),getFromChains=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(getAllBridgeableNetworks,function(state){var _state_metamask_bridgeState;return null===(_state_metamask_bridgeState=state.metamask.bridgeState)||void 0===_state_metamask_bridgeState?void 0:_state_metamask_bridgeState.bridgeFeatureFlags},function(allBridgeableNetworks,bridgeFeatureFlags){return allBridgeableNetworks.filter(function(param){var _bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId,chainId=param.chainId;return null===(_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId=bridgeFeatureFlags[_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__.QX.EXTENSION_CONFIG].chains[chainId])||void 0===_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId?void 0:_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId.isActiveSrc})}),getFromChain=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(_shared_modules_selectors_networks__WEBPACK_IMPORTED_MODULE_6__.hX,_shared_modules_selectors_networks__WEBPACK_IMPORTED_MODULE_6__.Iv,function(networkConfigurationsByChainId,providerConfig){return(null==providerConfig?void 0:providerConfig.chainId)?networkConfigurationsByChainId[providerConfig.chainId]:void 0}),getToChains=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(getAllBridgeableNetworks,function(state){var _state_metamask_bridgeState;return null===(_state_metamask_bridgeState=state.metamask.bridgeState)||void 0===_state_metamask_bridgeState?void 0:_state_metamask_bridgeState.bridgeFeatureFlags},function(allBridgeableNetworks,bridgeFeatureFlags){return(0,lodash__WEBPACK_IMPORTED_MODULE_0__.uniqBy)(_to_consumable_array(allBridgeableNetworks).concat(_to_consumable_array(_shared_constants_network__WEBPACK_IMPORTED_MODULE_12__.Kq)),"chainId").filter(function(param){var _bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId,chainId=param.chainId;return null===(_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId=bridgeFeatureFlags[_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__.QX.EXTENSION_CONFIG].chains[chainId])||void 0===_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId?void 0:_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG_chains_chainId.isActiveDest})}),getToChain=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(getToChains,function(state){return state.bridge.toChainId},function(toChains,toChainId){return toChains.find(function(param){return param.chainId===toChainId})}),getFromTokens=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(function(state){return state.metamask.bridgeState.srcTokens},function(state){return state.metamask.bridgeState.srcTopAssets},function(state){return state.metamask.bridgeState.srcTokensLoadingStatus===_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__.IZ.LOADING},function(fromTokens,fromTopAssets,isLoading){return{isLoading:isLoading,fromTokens:null!=fromTokens?fromTokens:{},fromTopAssets:null!=fromTopAssets?fromTopAssets:[]}}),getToTokens=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(function(state){return state.metamask.bridgeState.destTokens},function(state){return state.metamask.bridgeState.destTopAssets},function(state){return state.metamask.bridgeState.destTokensLoadingStatus===_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__.IZ.LOADING},function(toTokens,toTopAssets,isLoading){return{isLoading:isLoading,toTokens:null!=toTokens?toTokens:{},toTopAssets:null!=toTopAssets?toTopAssets:[]}}),getFromToken=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(function(state){return state.bridge.fromToken},getFromChain,function(fromToken,fromChain){return(null==fromChain?void 0:fromChain.chainId)?(null==fromToken?void 0:fromToken.address)?fromToken:_object_spread_props(_object_spread({},_shared_constants_swaps__WEBPACK_IMPORTED_MODULE_5__.xe[fromChain.chainId]),{chainId:fromChain.chainId,image:_shared_constants_network__WEBPACK_IMPORTED_MODULE_12__.RB[fromChain.chainId],balance:"0",string:"0",type:_shared_constants_transaction__WEBPACK_IMPORTED_MODULE_10__.PW.native}):null}),getToToken=function(state){return state.bridge.toToken},getFromAmount=function(state){return state.bridge.fromTokenInputValue},getSlippage=function(state){return state.bridge.slippage},getQuoteRequest=function(state){return state.metamask.bridgeState.quoteRequest},getBridgeQuotesConfig=function(state){var _state_metamask_bridgeState,_state_metamask_bridgeState_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG;return null!==(_state_metamask_bridgeState_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG=null===(_state_metamask_bridgeState=state.metamask.bridgeState)||void 0===_state_metamask_bridgeState?void 0:_state_metamask_bridgeState.bridgeFeatureFlags[_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__.QX.EXTENSION_CONFIG])&&void 0!==_state_metamask_bridgeState_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG?_state_metamask_bridgeState_bridgeFeatureFlags_BridgeFeatureFlagsKey_EXTENSION_CONFIG:{}},_getBridgeFeesPerGas=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(_metamask_metamask__WEBPACK_IMPORTED_MODULE_7__.tV,function(gasFeeEstimates){var _gasFeeEstimates_BRIDGE_PREFERRED_GAS_ESTIMATE,_gasFeeEstimates_high,_gasFeeEstimates_high1,_gasFeeEstimates_high2;return{estimatedBaseFeeInDecGwei:null==gasFeeEstimates?void 0:gasFeeEstimates.estimatedBaseFee,maxPriorityFeePerGasInDecGwei:null==gasFeeEstimates?void 0:null===(_gasFeeEstimates_BRIDGE_PREFERRED_GAS_ESTIMATE=gasFeeEstimates[_shared_constants_bridge__WEBPACK_IMPORTED_MODULE_3__.Lk])||void 0===_gasFeeEstimates_BRIDGE_PREFERRED_GAS_ESTIMATE?void 0:_gasFeeEstimates_BRIDGE_PREFERRED_GAS_ESTIMATE.suggestedMaxPriorityFeePerGas,maxFeePerGasInDecGwei:null==gasFeeEstimates?void 0:null===(_gasFeeEstimates_high=gasFeeEstimates.high)||void 0===_gasFeeEstimates_high?void 0:_gasFeeEstimates_high.suggestedMaxFeePerGas,maxFeePerGas:(0,_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_11__.Sb)(null==gasFeeEstimates?void 0:null===(_gasFeeEstimates_high1=gasFeeEstimates.high)||void 0===_gasFeeEstimates_high1?void 0:_gasFeeEstimates_high1.suggestedMaxFeePerGas),maxPriorityFeePerGas:(0,_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_11__.Sb)(null==gasFeeEstimates?void 0:null===(_gasFeeEstimates_high2=gasFeeEstimates.high)||void 0===_gasFeeEstimates_high2?void 0:_gasFeeEstimates_high2.suggestedMaxPriorityFeePerGas)}}),getBridgeSortOrder=function(state){return state.bridge.sortOrder},getFromTokenConversionRate=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(getFromChain,_selectors_selectors__WEBPACK_IMPORTED_MODULE_2__.HWx,getFromToken,_selectors_selectors__WEBPACK_IMPORTED_MODULE_2__.xlr,_metamask_metamask__WEBPACK_IMPORTED_MODULE_7__.fR,function(state){return state.bridge.fromTokenExchangeRate},function(fromChain,marketData,fromToken,nativeToUsdRate,nativeToCurrencyRate,fromTokenExchangeRate){if((null==fromChain?void 0:fromChain.chainId)&&fromToken&&marketData){var _exchangeRateFromMarketData,tokenToNativeAssetRate=null!==(_exchangeRateFromMarketData=(0,_utils__WEBPACK_IMPORTED_MODULE_13__.e9)(fromChain.chainId,fromToken.address,marketData))&&void 0!==_exchangeRateFromMarketData?_exchangeRateFromMarketData:(0,_utils__WEBPACK_IMPORTED_MODULE_13__.Hb)(fromTokenExchangeRate,nativeToCurrencyRate);return(0,_utils__WEBPACK_IMPORTED_MODULE_13__.np)(tokenToNativeAssetRate,nativeToCurrencyRate,nativeToUsdRate)}return(0,_utils__WEBPACK_IMPORTED_MODULE_13__.np)()}),getToTokenConversionRate=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(getToChain,_selectors_selectors__WEBPACK_IMPORTED_MODULE_2__.HWx,getToToken,_shared_modules_selectors_networks__WEBPACK_IMPORTED_MODULE_6__.hX,function(state){return{state:state,toTokenExchangeRate:state.bridge.toTokenExchangeRate,toTokenUsdExchangeRate:state.bridge.toTokenUsdExchangeRate}},function(toChain,marketData,toToken,allNetworksByChainId,param){var state=param.state,toTokenExchangeRate=param.toTokenExchangeRate,toTokenUsdExchangeRate=param.toTokenUsdExchangeRate;if((null==toChain?void 0:toChain.chainId)&&!allNetworksByChainId[toChain.chainId]&&toTokenExchangeRate)return{valueInCurrency:toTokenExchangeRate,usd:toTokenUsdExchangeRate};if((null==toChain?void 0:toChain.chainId)&&toToken&&marketData){var _exchangeRateFromMarketData,chainId=toChain.chainId,nativeToCurrencyRate=(0,_selectors_selectors__WEBPACK_IMPORTED_MODULE_2__._po)(state,chainId),nativeToUsdRate=(0,_selectors_selectors__WEBPACK_IMPORTED_MODULE_2__.EgK)(chainId)(state),tokenToNativeAssetRate=null!==(_exchangeRateFromMarketData=(0,_utils__WEBPACK_IMPORTED_MODULE_13__.e9)(chainId,toToken.address,marketData))&&void 0!==_exchangeRateFromMarketData?_exchangeRateFromMarketData:(0,_utils__WEBPACK_IMPORTED_MODULE_13__.Hb)(toTokenExchangeRate,nativeToCurrencyRate);return(0,_utils__WEBPACK_IMPORTED_MODULE_13__.np)(tokenToNativeAssetRate,nativeToCurrencyRate,nativeToUsdRate)}return(0,_utils__WEBPACK_IMPORTED_MODULE_13__.np)()}),_getQuotesWithMetadata=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(function(state){return state.metamask.bridgeState.quotes},getToTokenConversionRate,getFromTokenConversionRate,_metamask_metamask__WEBPACK_IMPORTED_MODULE_7__.fR,_getBridgeFeesPerGas,function(quotes,toTokenExchangeRate,fromTokenExchangeRate,nativeExchangeRate,param){var estimatedBaseFeeInDecGwei=param.estimatedBaseFeeInDecGwei,maxPriorityFeePerGasInDecGwei=param.maxPriorityFeePerGasInDecGwei,maxFeePerGasInDecGwei=param.maxFeePerGasInDecGwei;return quotes.map(function(quote){var _gasFee_valueInCurrency,_gasFee_valueInCurrencyMax,_gasFee_valueInCurrency_plus,_gasFee_valueInCurrencyMax_plus,toTokenAmount=(0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.fv)(quote.quote,toTokenExchangeRate.valueInCurrency),gasFee=(0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.KS)({bridgeQuote:quote,estimatedBaseFeeInDecGwei:estimatedBaseFeeInDecGwei,maxFeePerGasInDecGwei:maxFeePerGasInDecGwei,maxPriorityFeePerGasInDecGwei:maxPriorityFeePerGasInDecGwei,nativeExchangeRate:nativeExchangeRate}),relayerFee=(0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.KX)(quote,nativeExchangeRate),totalEstimatedNetworkFee={amount:gasFee.amount.plus(relayerFee.amount),valueInCurrency:null!==(_gasFee_valueInCurrency_plus=null===(_gasFee_valueInCurrency=gasFee.valueInCurrency)||void 0===_gasFee_valueInCurrency?void 0:_gasFee_valueInCurrency.plus(relayerFee.valueInCurrency||"0"))&&void 0!==_gasFee_valueInCurrency_plus?_gasFee_valueInCurrency_plus:null},totalMaxNetworkFee={amount:gasFee.amountMax.plus(relayerFee.amount),valueInCurrency:null!==(_gasFee_valueInCurrencyMax_plus=null===(_gasFee_valueInCurrencyMax=gasFee.valueInCurrencyMax)||void 0===_gasFee_valueInCurrencyMax?void 0:_gasFee_valueInCurrencyMax.plus(relayerFee.valueInCurrency||"0"))&&void 0!==_gasFee_valueInCurrencyMax_plus?_gasFee_valueInCurrencyMax_plus:null},sentAmount=(0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.KL)(quote.quote,fromTokenExchangeRate.valueInCurrency),adjustedReturn=(0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.KK)(toTokenAmount.valueInCurrency,totalEstimatedNetworkFee.valueInCurrency);return _object_spread_props(_object_spread({},quote),{toTokenAmount:toTokenAmount,sentAmount:sentAmount,totalNetworkFee:totalEstimatedNetworkFee,totalMaxNetworkFee:totalMaxNetworkFee,adjustedReturn:adjustedReturn,gasFee:gasFee,swapRate:(0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.v3)(sentAmount.amount,toTokenAmount.amount),cost:(0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.v5)(adjustedReturn.valueInCurrency,sentAmount.valueInCurrency)})})}),_getSortedQuotesWithMetadata=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(_getQuotesWithMetadata,getBridgeSortOrder,function(quotesWithMetadata,sortOrder){return sortOrder===_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__.xB.ETA_ASC?(0,lodash__WEBPACK_IMPORTED_MODULE_0__.orderBy)(quotesWithMetadata,function(quote){return quote.estimatedProcessingTimeInSeconds},"asc"):(0,lodash__WEBPACK_IMPORTED_MODULE_0__.orderBy)(quotesWithMetadata,function(param){var _cost_valueInCurrency;return null===(_cost_valueInCurrency=param.cost.valueInCurrency)||void 0===_cost_valueInCurrency?void 0:_cost_valueInCurrency.toNumber()},"asc")}),_getQuoteIdentifier=function(param){var quote=param.quote;return"".concat(quote.bridgeId,"-").concat(quote.bridges[0],"-").concat(quote.steps.length)},_getSelectedQuote=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(function(state){return state.metamask.bridgeState.quotesRefreshCount},function(state){return state.bridge.selectedQuote},_getSortedQuotesWithMetadata,function(quotesRefreshCount,selectedQuote,sortedQuotesWithMetadata){return quotesRefreshCount<=1?selectedQuote:sortedQuotesWithMetadata.find(function(quote){return!!selectedQuote&&_getQuoteIdentifier(quote)===_getQuoteIdentifier(selectedQuote)})}),getBridgeQuotes=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(_getSortedQuotesWithMetadata,_getSelectedQuote,function(state){return state.metamask.bridgeState.quotesLastFetched},function(state){return state.metamask.bridgeState.quotesLoadingStatus===_shared_types_bridge__WEBPACK_IMPORTED_MODULE_8__.IZ.LOADING},function(state){return state.metamask.bridgeState.quotesRefreshCount},function(state){return state.metamask.bridgeState.quotesInitialLoadTime},function(state){return state.metamask.bridgeState.quoteFetchError},getBridgeQuotesConfig,getQuoteRequest,function(sortedQuotesWithMetadata,selectedQuote,quotesLastFetchedMs,isLoading,quotesRefreshCount,quotesInitialLoadTimeMs,quoteFetchError,param,param1){var maxRefreshCount=param.maxRefreshCount,insufficientBal=param1.insufficientBal;return{sortedQuotes:sortedQuotesWithMetadata,recommendedQuote:sortedQuotesWithMetadata[0],activeQuote:null!=selectedQuote?selectedQuote:sortedQuotesWithMetadata[0],quotesLastFetchedMs:quotesLastFetchedMs,isLoading:isLoading,quoteFetchError:quoteFetchError,quotesRefreshCount:quotesRefreshCount,quotesInitialLoadTimeMs:quotesInitialLoadTimeMs,isQuoteGoingToRefresh:!insufficientBal&"esRefreshCount<maxRefreshCount}}),getIsBridgeTx=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(getFromChain,getToChain,function(state){return(0,_selectors_selectors__WEBPACK_IMPORTED_MODULE_2__.fKD)(state)},function(fromChain,toChain,isBridgeEnabled){return!!isBridgeEnabled&&!!toChain&&null!=fromChain&&!!fromChain.chainId&&fromChain.chainId!==toChain.chainId}),_getValidatedSrcAmount=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(getFromToken,function(state){return state.metamask.bridgeState.quoteRequest.srcTokenAmount},function(fromToken,srcTokenAmount){return srcTokenAmount&&(null==fromToken?void 0:fromToken.decimals)?(0,_metamask_notification_services_controller_push_services__WEBPACK_IMPORTED_MODULE_15__.dU)(srcTokenAmount,Number(fromToken.decimals)).toString():null}),getFromAmountInCurrency=(0,reselect__WEBPACK_IMPORTED_MODULE_14__.Mz)(getFromToken,getFromChain,_getValidatedSrcAmount,getFromTokenConversionRate,function(fromToken,fromChain,validatedSrcAmount,param){var _fromTokenToCurrencyExchangeRate_toString,fromTokenToCurrencyExchangeRate=param.valueInCurrency;return(null==fromToken?void 0:fromToken.symbol)&&(null==fromChain?void 0:fromChain.chainId)&&validatedSrcAmount&&fromTokenToCurrencyExchangeRate?new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber(validatedSrcAmount).mul(new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber(null!==(_fromTokenToCurrencyExchangeRate_toString=fromTokenToCurrencyExchangeRate.toString())&&void 0!==_fromTokenToCurrencyExchangeRate_toString?_fromTokenToCurrencyExchangeRate_toString:1)):new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber(0)}),getValidationErrors=(0,_shared_modules_selectors_util__WEBPACK_IMPORTED_MODULE_4__._)(getBridgeQuotes,_getValidatedSrcAmount,getFromToken,getFromAmount,function(param,validatedSrcAmount,fromToken,fromTokenInputValue){var _activeQuote_sentAmount,_activeQuote_adjustedReturn,activeQuote=param.activeQuote,quotesLastFetchedMs=param.quotesLastFetchedMs,isLoading=param.isLoading;return{isNoQuotesAvailable:!!(!activeQuote&"esLastFetchedMs&&!isLoading),isInsufficientGasBalance:function(balance){return!!balance&&!activeQuote&&!!validatedSrcAmount&&!!fromToken&&((0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.c2)(fromToken.address)?balance.eq(validatedSrcAmount):balance.lte(0))},isInsufficientGasForQuote:function(balance){return!!balance&&!!activeQuote&&!!fromToken&&!!fromTokenInputValue&&((0,_pages_bridge_utils_quote__WEBPACK_IMPORTED_MODULE_9__.c2)(fromToken.address)?balance.sub(activeQuote.totalMaxNetworkFee.amount).sub(activeQuote.sentAmount.amount).lte(0):balance.lte(activeQuote.totalMaxNetworkFee.amount))},isInsufficientBalance:function(balance){return!!validatedSrcAmount&&void 0!==balance&&balance.lt(validatedSrcAmount)},isEstimatedReturnLow:null!=activeQuote&&null!==(_activeQuote_sentAmount=activeQuote.sentAmount)&&void 0!==_activeQuote_sentAmount&&!!_activeQuote_sentAmount.valueInCurrency&&null!=activeQuote&&null!==(_activeQuote_adjustedReturn=activeQuote.adjustedReturn)&&void 0!==_activeQuote_adjustedReturn&&!!_activeQuote_adjustedReturn.valueInCurrency&&!!fromTokenInputValue&&activeQuote.adjustedReturn.valueInCurrency.lt(new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber(_shared_constants_bridge__WEBPACK_IMPORTED_MODULE_3__.kU).times(activeQuote.sentAmount.valueInCurrency))}}),getWasTxDeclined=function(state){return state.bridge.wasTxDeclined}},"./ui/pages/bridge/layout/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{VP:()=>layout_column,fI:()=>layout_row,m_:()=>layout_tooltip});var react=__webpack_require__("./node_modules/react/index.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts");function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){_define_property(target,key,source[key])})}return target}let layout_column=function(props){return react.createElement(component_library.mc,_object_spread({display:design_system.nl.Flex,flexDirection:design_system.bo.Column,width:design_system.Zf.Full},props))};try{column.displayName="column",column.__docgenInfo={description:"",displayName:"column",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},maxWidth:{defaultValue:null,description:"maxWidth prop sets the max-width of the Container component\nSm (360px)\nMd (480px)\nLg (720px)",name:"maxWidth",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},flexDirection:{defaultValue:null,description:"The flex direction of the component.\nUse the FlexDirection enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexDirection",required:!1,type:{name:"FlexDirection | FlexDirectionArray"}},flexWrap:{defaultValue:null,description:"The flex wrap of the component.\nUse the FlexWrap enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexWrap",required:!1,type:{name:"FlexWrap | FlexWrapArray"}},gap:{defaultValue:null,description:"The gap between the component's children.\nUse 1-12 for a gap of 4px-48px.\nAccepts responsive props in the form of an array.",name:"gap",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},margin:{defaultValue:null,description:"The margin of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"margin",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginTop:{defaultValue:null,description:"The margin-top of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginTop",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginBottom:{defaultValue:null,description:"The margin-bottom of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginBottom",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginRight:{defaultValue:null,description:"The margin-right of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginRight",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginLeft:{defaultValue:null,description:"The margin-left of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginLeft",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInline:{defaultValue:null,description:"The margin-inline of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInline",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineStart:{defaultValue:null,description:"The margin-inline-start of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineStart",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineEnd:{defaultValue:null,description:"The margin-inline-end of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineEnd",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},padding:{defaultValue:null,description:"The padding of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"padding",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingTop:{defaultValue:null,description:"The padding-top of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingTop",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingBottom:{defaultValue:null,description:"The padding-bottom of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingBottom",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingRight:{defaultValue:null,description:"The padding-right of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingRight",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingLeft:{defaultValue:null,description:"The padding-left of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingLeft",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInline:{defaultValue:null,description:"The padding-inline of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInline",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineStart:{defaultValue:null,description:"The padding-inline-start of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineStart",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineEnd:{defaultValue:null,description:"The padding-inline-end of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineEnd",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderColor:{defaultValue:null,description:"The border-color of the component.\nUse BorderColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderColor",required:!1,type:{name:"BorderColor | BorderColorArray"}},borderWidth:{defaultValue:null,description:"The border-width of the component.\nUse 1-12 for 1px-12px.\nAccepts responsive props in the form of an array.",name:"borderWidth",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderRadius:{defaultValue:null,description:"The border-radius of the component.\nUse BorderRadius enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderRadius",required:!1,type:{name:"BorderRadius | BorderRadiusArray"}},borderStyle:{defaultValue:null,description:"The border-style of the component.\nUse BorderStyle enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderStyle",required:!1,type:{name:"BorderStyle | BorderStyleArray"}},alignItems:{defaultValue:null,description:"The align-items of the component.\nUse AlignItems enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"alignItems",required:!1,type:{name:"AlignItems | AlignItemsArray"}},justifyContent:{defaultValue:null,description:"The justify-content of the component.\nUse JustifyContent enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"justifyContent",required:!1,type:{name:"JustifyContent | JustifyContentArray"}},textAlign:{defaultValue:null,description:"The text-align of the component.\nUse TextAlign enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"textAlign",required:!1,type:{name:"TextAlign | TextAlignArray"}},display:{defaultValue:null,description:"The display of the component.\nUse Display enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"display",required:!1,type:{name:"Display | DisplayArray"}},width:{defaultValue:null,description:"The width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"width",required:!1,type:{name:"BlockSize | BlockSizeArray"}},minWidth:{defaultValue:null,description:"The min-width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"minWidth",required:!1,type:{name:"BlockSize | BlockSizeArray"}},height:{defaultValue:null,description:"The height of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"height",required:!1,type:{name:"BlockSize | BlockSizeArray"}},backgroundColor:{defaultValue:null,description:"The background-color of the component.\nUse BackgroundColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"backgroundColor",required:!1,type:{name:"BackgroundColor | BackgroundColorArray"}},color:{defaultValue:null,description:"The text-color of the component.\nUse TextColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"color",required:!1,type:{name:"TextColor | IconColor | TextColorArray | IconColorArray"}},"data-testid":{defaultValue:null,description:"An optional data-testid to apply to the component.\nTypeScript is complaining about data- attributes which means we need to explicitly define this as a prop.\nTODO: Allow data- attributes.",name:"data-testid",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"An override of the default HTML tag.\nCan also be a React component.",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/bridge/layout/column.tsx#column"]={docgenInfo:column.__docgenInfo,name:"column",path:"ui/pages/bridge/layout/column.tsx#column"})}catch(__react_docgen_typescript_loader_error){}function row_define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function row_object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){row_define_property(target,key,source[key])})}return target}let layout_row=function(props){return react.createElement(component_library.mc,row_object_spread({display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,flexWrap:design_system.I4.NoWrap,alignItems:design_system.k2.center},props))};try{row.displayName="row",row.__docgenInfo={description:"",displayName:"row",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},maxWidth:{defaultValue:null,description:"maxWidth prop sets the max-width of the Container component\nSm (360px)\nMd (480px)\nLg (720px)",name:"maxWidth",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},flexDirection:{defaultValue:null,description:"The flex direction of the component.\nUse the FlexDirection enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexDirection",required:!1,type:{name:"FlexDirection | FlexDirectionArray"}},flexWrap:{defaultValue:null,description:"The flex wrap of the component.\nUse the FlexWrap enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexWrap",required:!1,type:{name:"FlexWrap | FlexWrapArray"}},gap:{defaultValue:null,description:"The gap between the component's children.\nUse 1-12 for a gap of 4px-48px.\nAccepts responsive props in the form of an array.",name:"gap",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},margin:{defaultValue:null,description:"The margin of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"margin",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginTop:{defaultValue:null,description:"The margin-top of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginTop",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginBottom:{defaultValue:null,description:"The margin-bottom of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginBottom",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginRight:{defaultValue:null,description:"The margin-right of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginRight",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginLeft:{defaultValue:null,description:"The margin-left of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginLeft",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInline:{defaultValue:null,description:"The margin-inline of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInline",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineStart:{defaultValue:null,description:"The margin-inline-start of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineStart",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineEnd:{defaultValue:null,description:"The margin-inline-end of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineEnd",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},padding:{defaultValue:null,description:"The padding of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"padding",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingTop:{defaultValue:null,description:"The padding-top of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingTop",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingBottom:{defaultValue:null,description:"The padding-bottom of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingBottom",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingRight:{defaultValue:null,description:"The padding-right of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingRight",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingLeft:{defaultValue:null,description:"The padding-left of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingLeft",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInline:{defaultValue:null,description:"The padding-inline of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInline",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineStart:{defaultValue:null,description:"The padding-inline-start of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineStart",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineEnd:{defaultValue:null,description:"The padding-inline-end of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineEnd",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderColor:{defaultValue:null,description:"The border-color of the component.\nUse BorderColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderColor",required:!1,type:{name:"BorderColor | BorderColorArray"}},borderWidth:{defaultValue:null,description:"The border-width of the component.\nUse 1-12 for 1px-12px.\nAccepts responsive props in the form of an array.",name:"borderWidth",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderRadius:{defaultValue:null,description:"The border-radius of the component.\nUse BorderRadius enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderRadius",required:!1,type:{name:"BorderRadius | BorderRadiusArray"}},borderStyle:{defaultValue:null,description:"The border-style of the component.\nUse BorderStyle enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderStyle",required:!1,type:{name:"BorderStyle | BorderStyleArray"}},alignItems:{defaultValue:null,description:"The align-items of the component.\nUse AlignItems enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"alignItems",required:!1,type:{name:"AlignItems | AlignItemsArray"}},justifyContent:{defaultValue:null,description:"The justify-content of the component.\nUse JustifyContent enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"justifyContent",required:!1,type:{name:"JustifyContent | JustifyContentArray"}},textAlign:{defaultValue:null,description:"The text-align of the component.\nUse TextAlign enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"textAlign",required:!1,type:{name:"TextAlign | TextAlignArray"}},display:{defaultValue:null,description:"The display of the component.\nUse Display enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"display",required:!1,type:{name:"Display | DisplayArray"}},width:{defaultValue:null,description:"The width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"width",required:!1,type:{name:"BlockSize | BlockSizeArray"}},minWidth:{defaultValue:null,description:"The min-width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"minWidth",required:!1,type:{name:"BlockSize | BlockSizeArray"}},height:{defaultValue:null,description:"The height of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"height",required:!1,type:{name:"BlockSize | BlockSizeArray"}},backgroundColor:{defaultValue:null,description:"The background-color of the component.\nUse BackgroundColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"backgroundColor",required:!1,type:{name:"BackgroundColor | BackgroundColorArray"}},color:{defaultValue:null,description:"The text-color of the component.\nUse TextColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"color",required:!1,type:{name:"TextColor | IconColor | TextColorArray | IconColorArray"}},"data-testid":{defaultValue:null,description:"An optional data-testid to apply to the component.\nTypeScript is complaining about data- attributes which means we need to explicitly define this as a prop.\nTODO: Allow data- attributes.",name:"data-testid",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"An override of the default HTML tag.\nCan also be a React component.",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/bridge/layout/row.tsx#row"]={docgenInfo:row.__docgenInfo,name:"row",path:"ui/pages/bridge/layout/row.tsx#row"})}catch(__react_docgen_typescript_loader_error){}function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function tooltip_define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tooltip_object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){tooltip_define_property(target,key,source[key])})}return target}function _object_without_properties(source,excluded){if(null==source)return{};var key,i,target=_object_without_properties_loose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],!(excluded.indexOf(key)>=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _object_without_properties_loose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}let layout_tooltip=react.forwardRef(function(_param,ref){var _ref,children=_param.children,title=_param.title,triggerElement=_param.triggerElement,_param_disabled=_param.disabled,onClose=_param.onClose,iconName=_param.iconName,style=_param.style,props=_object_without_properties(_param,["children","title","triggerElement","disabled","onClose","iconName","style"]),_useState=_sliced_to_array((0,react.useState)(!1),2),isOpen=_useState[0],setIsOpen=_useState[1],_useState1=_sliced_to_array((0,react.useState)(null),2),referenceElement=_useState1[0],setReferenceElement=_useState1[1],handleMouseLeave=function(){return setIsOpen(!1)};return react.createElement(component_library.az,{ref:ref},react.createElement(component_library.az,{ref:function(newRef){return setReferenceElement(newRef)},onMouseEnter:function(){return setIsOpen(!0)},onMouseLeave:handleMouseLeave,display:design_system.nl.Flex},null!==(_ref=null!=triggerElement?triggerElement:iconName&&react.createElement(component_library.In,{color:design_system.Li.iconAlternativeSoft,name:iconName,size:component_library.lK.Sm}))&&void 0!==_ref?_ref:react.createElement(component_library.In,{name:component_library.$M.Question,color:design_system.Li.iconAlternativeSoft,size:component_library.lK.Sm})),!(void 0!==_param_disabled&&_param_disabled)&&react.createElement(component_library.AM,tooltip_object_spread({position:component_library.$x.Auto,referenceElement:referenceElement,isOpen:isOpen,onClickOutside:handleMouseLeave,style:tooltip_object_spread({maxWidth:"240px",backgroundColor:"var(--color-text-default)",paddingInline:"16px",paddingTop:"8px",paddingBottom:"8px",transitionTimingFunction:"linear",display:"inherit"},style),preventOverflow:!0,flip:!0,hasArrow:!0,isPortal:!0},props),react.createElement(layout_column,{gap:4},title&&react.createElement(component_library.DI,{color:design_system.r7.infoInverse,textAlign:design_system.nO.Center,justifyContent:onClose?design_system.A9.spaceBetween:design_system.A9.center,onClose:onClose,childrenWrapperProps:{style:{whiteSpace:"nowrap"}}},title),react.createElement(component_library.EY,{justifyContent:design_system.A9.center,color:design_system.r7.infoInverse},children))))});try{tooltip.displayName="tooltip",tooltip.__docgenInfo={description:"",displayName:"tooltip",props:{children:{defaultValue:null,description:"The contents within the Popover",name:"children",required:!1,type:{name:"ReactNode"}},isOpen:{defaultValue:null,description:"Boolean to let the Popover know if it is open or not",name:"isOpen",required:!1,type:{name:"boolean"}},"data-testid":{defaultValue:null,description:"An optional data-testid to apply to the component.\nTypeScript is complaining about data- attributes which means we need to explicitly define this as a prop.\nTODO: Allow data- attributes.",name:"data-testid",required:!1,type:{name:"string"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}},className:{defaultValue:null,description:"Additional classNames to be added to the Popover component",name:"className",required:!1,type:{name:"string"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"The flex direction of the component.\nUse the FlexDirection enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexDirection",required:!1,type:{name:"FlexDirection | FlexDirectionArray"}},flexWrap:{defaultValue:null,description:"The flex wrap of the component.\nUse the FlexWrap enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexWrap",required:!1,type:{name:"FlexWrap | FlexWrapArray"}},gap:{defaultValue:null,description:"The gap between the component's children.\nUse 1-12 for a gap of 4px-48px.\nAccepts responsive props in the form of an array.",name:"gap",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},margin:{defaultValue:null,description:"The margin of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"margin",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginTop:{defaultValue:null,description:"The margin-top of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginTop",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginBottom:{defaultValue:null,description:"The margin-bottom of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginBottom",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginRight:{defaultValue:null,description:"The margin-right of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginRight",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginLeft:{defaultValue:null,description:"The margin-left of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginLeft",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInline:{defaultValue:null,description:"The margin-inline of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInline",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineStart:{defaultValue:null,description:"The margin-inline-start of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineStart",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineEnd:{defaultValue:null,description:"The margin-inline-end of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineEnd",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},padding:{defaultValue:null,description:"The padding of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"padding",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingTop:{defaultValue:null,description:"The padding-top of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingTop",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingBottom:{defaultValue:null,description:"The padding-bottom of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingBottom",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingRight:{defaultValue:null,description:"The padding-right of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingRight",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingLeft:{defaultValue:null,description:"The padding-left of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingLeft",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInline:{defaultValue:null,description:"The padding-inline of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInline",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineStart:{defaultValue:null,description:"The padding-inline-start of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineStart",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineEnd:{defaultValue:null,description:"The padding-inline-end of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineEnd",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderColor:{defaultValue:null,description:"The border-color of the component.\nUse BorderColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderColor",required:!1,type:{name:"BorderColor | BorderColorArray"}},borderWidth:{defaultValue:null,description:"The border-width of the component.\nUse 1-12 for 1px-12px.\nAccepts responsive props in the form of an array.",name:"borderWidth",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderRadius:{defaultValue:null,description:"The border-radius of the component.\nUse BorderRadius enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderRadius",required:!1,type:{name:"BorderRadius | BorderRadiusArray"}},borderStyle:{defaultValue:null,description:"The border-style of the component.\nUse BorderStyle enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderStyle",required:!1,type:{name:"BorderStyle | BorderStyleArray"}},alignItems:{defaultValue:null,description:"The align-items of the component.\nUse AlignItems enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"alignItems",required:!1,type:{name:"AlignItems | AlignItemsArray"}},justifyContent:{defaultValue:null,description:"The justify-content of the component.\nUse JustifyContent enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"justifyContent",required:!1,type:{name:"JustifyContent | JustifyContentArray"}},textAlign:{defaultValue:null,description:"The text-align of the component.\nUse TextAlign enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"textAlign",required:!1,type:{name:"TextAlign | TextAlignArray"}},display:{defaultValue:null,description:"The display of the component.\nUse Display enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"display",required:!1,type:{name:"Display | DisplayArray"}},width:{defaultValue:null,description:"The width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"width",required:!1,type:{name:"BlockSize | BlockSizeArray"}},height:{defaultValue:null,description:"The height of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"height",required:!1,type:{name:"BlockSize | BlockSizeArray"}},backgroundColor:{defaultValue:null,description:"The background-color of the component.\nUse BackgroundColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"backgroundColor",required:!1,type:{name:"BackgroundColor | BackgroundColorArray"}},as:{defaultValue:null,description:"An override of the default HTML tag.\nCan also be a React component.",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},color:{defaultValue:null,description:"The text-color of the component.\nUse TextColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"color",required:!1,type:{name:"TextColor | IconColor | TextColorArray | IconColorArray"}},role:{defaultValue:null,description:"Use `PopoverRole.Dialog` if the content is interactive, or `PopoverRole.Tooltip` for purely informational popovers.",name:"role",required:!1,type:{name:"enum",value:[{value:'"tooltip"'},{value:'"dialog"'}]}},minWidth:{defaultValue:null,description:"The min-width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"minWidth",required:!1,type:{name:"BlockSize | BlockSizeArray"}},offset:{defaultValue:null,description:"Offset to be applied to the Popover horizontal and vertical offsets in pixels\nRequires an array of two numbers\ndefault: [0, 8]",name:"offset",required:!1,type:{name:"[number, number]"}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"add-square"'},{value:'"add"'},{value:'"arrow-2-down"'},{value:'"arrow-2-left"'},{value:'"arrow-2-right"'},{value:'"arrow-2-up"'},{value:'"arrow-2-up-right"'},{value:'"arrow-double-left"'},{value:'"arrow-double-right"'},{value:'"arrow-down"'},{value:'"arrow-left"'},{value:'"arrow-right"'},{value:'"arrow-up"'},{value:'"bank-token"'},{value:'"bank"'},{value:'"book"'},{value:'"bookmark"'},{value:'"bridge"'},{value:'"collapse"'},{value:'"calculator"'},{value:'"card-pos"'},{value:'"card-token"'},{value:'"card"'},{value:'"category"'},{value:'"chart"'},{value:'"check-bold"'},{value:'"check"'},{value:'"clock"'},{value:'"close"'},{value:'"code-circle"'},{value:'"coin"'},{value:'"confirmation"'},{value:'"connect"'},{value:'"copy-success"'},{value:'"copy"'},{value:'"customize"'},{value:'"danger"'},{value:'"dark"'},{value:'"data"'},{value:'"diagram"'},{value:'"document-code"'},{value:'"drag-drop"'},{value:'"dragging-animation"'},{value:'"pinning-animation"'},{value:'"edit"'},{value:'"eraser"'},{value:'"ethereum"'},{value:'"expand"'},{value:'"explore"'},{value:'"export"'},{value:'"eye-slash"'},{value:'"eye"'},{value:'"filter"'},{value:'"flag"'},{value:'"flash-slash"'},{value:'"flash"'},{value:'"full-circle"'},{value:'"gas"'},{value:'"global-search"'},{value:'"global"'},{value:'"graph"'},{value:'"hardware"'},{value:'"heart"'},{value:'"hierarchy"'},{value:'"home"'},{value:'"import"'},{value:'"info"'},{value:'"key"'},{value:'"light"'},{value:'"link"'},{value:'"loading"'},{value:'"lock-circle"'},{value:'"lock-slash"'},{value:'"lock"'},{value:'"login"'},{value:'"logout"'},{value:'"menu"'},{value:'"message-question"'},{value:'"messages"'},{value:'"minus-bold"'},{value:'"minus-square"'},{value:'"minus"'},{value:'"mobile"'},{value:'"money"'},{value:'"monitor"'},{value:'"more-horizontal"'},{value:'"more-vertical"'},{value:'"notification-circle"'},{value:'"notification"'},{value:'"password-check"'},{value:'"people"'},{value:'"pin"'},{value:'"programming-arrows"'},{value:'"custody"'},{value:'"question"'},{value:'"received"'},{value:'"refresh"'},{value:'"save"'},{value:'"scan-barcode"'},{value:'"scan-focus"'},{value:'"scan"'},{value:'"scroll"'},{value:'"search"'},{value:'"security-card"'},{value:'"security-cross"'},{value:'"security-key"'},{value:'"security-search"'},{value:'"security-slash"'},{value:'"security-tick"'},{value:'"security-time"'},{value:'"security-user"'},{value:'"security"'},{value:'"send-1"'},{value:'"send-2"'},{value:'"setting"'},{value:'"slash"'},{value:'"snaps-mobile"'},{value:'"snaps-plus"'},{value:'"snaps"'},{value:'"speedometer"'},{value:'"star"'},{value:'"stake"'},{value:'"student"'},{value:'"swap-horizontal"'},{value:'"swap-vertical"'},{value:'"tag"'},{value:'"tilde"'},{value:'"timer"'},{value:'"trash"'},{value:'"trend-down"'},{value:'"trend-up"'},{value:'"user-circle-add"'},{value:'"user-circle-link"'},{value:'"user-circle-remove"'},{value:'"user-circle"'},{value:'"user"'},{value:'"wallet-card"'},{value:'"wallet-money"'},{value:'"wallet"'},{value:'"warning"'},{value:'"twitter"'},{value:'"qr-code"'},{value:'"user-check"'},{value:'"unpin"'},{value:'"ban"'},{value:'"bold"'},{value:'"circle-x"'},{value:'"download"'},{value:'"file"'},{value:'"flask"'},{value:'"plug"'},{value:'"share"'},{value:'"square"'},{value:'"tint"'},{value:'"upload"'},{value:'"usb"'},{value:'"wifi"'},{value:'"plus-minus"'}]}},position:{defaultValue:null,description:"The position of the Popover. Possible values could be PopoverPosition.Auto, PopoverPosition.AutoStart, PopoverPosition.AutoEnd, PopoverPosition.Top, PopoverPosition.TopStart, PopoverPosition.TopEnd, PopoverPosition.Right, PopoverPosition.RightStart, PopoverPosition.RightEnd, PopoverPosition.Bottom, PopoverPosition.BottomStart, PopoverPosition.BottomEnd, PopoverPosition.Left, PopoverPosition.LeftStart, PopoverPosition.LeftEnd",name:"position",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"top"'},{value:'"top-start"'},{value:'"top-end"'},{value:'"right"'},{value:'"right-start"'},{value:'"right-end"'},{value:'"bottom"'},{value:'"bottom-start"'},{value:'"bottom-end"'},{value:'"left"'},{value:'"left-start"'},{value:'"left-end"'}]}},hasArrow:{defaultValue:null,description:"Boolean to show or hide the Popover arrow pointing to the reference element\nDefault: false",name:"hasArrow",required:!1,type:{name:"boolean"}},arrowProps:{defaultValue:null,description:"Pass any `BoxProps` to the Popover arrow",name:"arrowProps",required:!1,type:{name:'BoxProps<"div">'}},matchWidth:{defaultValue:null,description:"Boolean to control the width of the Popover to match the width of the reference element\nDefault: false",name:"matchWidth",required:!1,type:{name:"boolean"}},preventOverflow:{defaultValue:null,description:"Boolean to control the Popover overflow from the page\nWhen PopoverPosition.Auto this becomes true\nDefault: false",name:"preventOverflow",required:!1,type:{name:"boolean"}},flip:{defaultValue:null,description:"Boolean to allow the Popover to flip to the opposite side if there is not enough space in the current position\nWhen PopoverPosition.Auto this becomes true\nDefault: false",name:"flip",required:!1,type:{name:"boolean"}},referenceHidden:{defaultValue:null,description:"Boolean to allow the Popover to hide fully if the reference element is hidden\nDefault: false",name:"referenceHidden",required:!1,type:{name:"boolean"}},referenceElement:{defaultValue:null,description:"Reference element to position the Popover",name:"referenceElement",required:!1,type:{name:"HTMLElement | null"}},isPortal:{defaultValue:null,description:"Boolean to allow the Popover to be rendered in a createPortal",name:"isPortal",required:!1,type:{name:"boolean"}},onPressEscKey:{defaultValue:null,description:"Pass a close function for the escape key callback to close the Popover",name:"onPressEscKey",required:!1,type:{name:"(() => void)"}},onClickOutside:{defaultValue:null,description:"On click outside callback to close the Popover",name:"onClickOutside",required:!1,type:{name:"(() => void)"}},triggerElement:{defaultValue:null,description:"",name:"triggerElement",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/bridge/layout/tooltip.tsx#tooltip"]={docgenInfo:tooltip.__docgenInfo,name:"tooltip",path:"ui/pages/bridge/layout/tooltip.tsx#tooltip"})}catch(__react_docgen_typescript_loader_error){}try{Column.displayName="Column",Column.__docgenInfo={description:"",displayName:"Column",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},maxWidth:{defaultValue:null,description:"maxWidth prop sets the max-width of the Container component\nSm (360px)\nMd (480px)\nLg (720px)",name:"maxWidth",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},flexDirection:{defaultValue:null,description:"The flex direction of the component.\nUse the FlexDirection enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexDirection",required:!1,type:{name:"FlexDirection | FlexDirectionArray"}},flexWrap:{defaultValue:null,description:"The flex wrap of the component.\nUse the FlexWrap enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexWrap",required:!1,type:{name:"FlexWrap | FlexWrapArray"}},gap:{defaultValue:null,description:"The gap between the component's children.\nUse 1-12 for a gap of 4px-48px.\nAccepts responsive props in the form of an array.",name:"gap",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},margin:{defaultValue:null,description:"The margin of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"margin",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginTop:{defaultValue:null,description:"The margin-top of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginTop",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginBottom:{defaultValue:null,description:"The margin-bottom of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginBottom",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginRight:{defaultValue:null,description:"The margin-right of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginRight",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginLeft:{defaultValue:null,description:"The margin-left of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginLeft",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInline:{defaultValue:null,description:"The margin-inline of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInline",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineStart:{defaultValue:null,description:"The margin-inline-start of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineStart",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineEnd:{defaultValue:null,description:"The margin-inline-end of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineEnd",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},padding:{defaultValue:null,description:"The padding of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"padding",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingTop:{defaultValue:null,description:"The padding-top of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingTop",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingBottom:{defaultValue:null,description:"The padding-bottom of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingBottom",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingRight:{defaultValue:null,description:"The padding-right of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingRight",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingLeft:{defaultValue:null,description:"The padding-left of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingLeft",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInline:{defaultValue:null,description:"The padding-inline of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInline",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineStart:{defaultValue:null,description:"The padding-inline-start of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineStart",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineEnd:{defaultValue:null,description:"The padding-inline-end of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineEnd",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderColor:{defaultValue:null,description:"The border-color of the component.\nUse BorderColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderColor",required:!1,type:{name:"BorderColor | BorderColorArray"}},borderWidth:{defaultValue:null,description:"The border-width of the component.\nUse 1-12 for 1px-12px.\nAccepts responsive props in the form of an array.",name:"borderWidth",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderRadius:{defaultValue:null,description:"The border-radius of the component.\nUse BorderRadius enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderRadius",required:!1,type:{name:"BorderRadius | BorderRadiusArray"}},borderStyle:{defaultValue:null,description:"The border-style of the component.\nUse BorderStyle enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderStyle",required:!1,type:{name:"BorderStyle | BorderStyleArray"}},alignItems:{defaultValue:null,description:"The align-items of the component.\nUse AlignItems enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"alignItems",required:!1,type:{name:"AlignItems | AlignItemsArray"}},justifyContent:{defaultValue:null,description:"The justify-content of the component.\nUse JustifyContent enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"justifyContent",required:!1,type:{name:"JustifyContent | JustifyContentArray"}},textAlign:{defaultValue:null,description:"The text-align of the component.\nUse TextAlign enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"textAlign",required:!1,type:{name:"TextAlign | TextAlignArray"}},display:{defaultValue:null,description:"The display of the component.\nUse Display enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"display",required:!1,type:{name:"Display | DisplayArray"}},width:{defaultValue:null,description:"The width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"width",required:!1,type:{name:"BlockSize | BlockSizeArray"}},minWidth:{defaultValue:null,description:"The min-width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"minWidth",required:!1,type:{name:"BlockSize | BlockSizeArray"}},height:{defaultValue:null,description:"The height of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"height",required:!1,type:{name:"BlockSize | BlockSizeArray"}},backgroundColor:{defaultValue:null,description:"The background-color of the component.\nUse BackgroundColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"backgroundColor",required:!1,type:{name:"BackgroundColor | BackgroundColorArray"}},color:{defaultValue:null,description:"The text-color of the component.\nUse TextColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"color",required:!1,type:{name:"TextColor | IconColor | TextColorArray | IconColorArray"}},"data-testid":{defaultValue:null,description:"An optional data-testid to apply to the component.\nTypeScript is complaining about data- attributes which means we need to explicitly define this as a prop.\nTODO: Allow data- attributes.",name:"data-testid",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"An override of the default HTML tag.\nCan also be a React component.",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/bridge/layout/index.tsx#Column"]={docgenInfo:Column.__docgenInfo,name:"Column",path:"ui/pages/bridge/layout/index.tsx#Column"})}catch(__react_docgen_typescript_loader_error){}try{Row.displayName="Row",Row.__docgenInfo={description:"",displayName:"Row",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},maxWidth:{defaultValue:null,description:"maxWidth prop sets the max-width of the Container component\nSm (360px)\nMd (480px)\nLg (720px)",name:"maxWidth",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}},flexDirection:{defaultValue:null,description:"The flex direction of the component.\nUse the FlexDirection enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexDirection",required:!1,type:{name:"FlexDirection | FlexDirectionArray"}},flexWrap:{defaultValue:null,description:"The flex wrap of the component.\nUse the FlexWrap enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexWrap",required:!1,type:{name:"FlexWrap | FlexWrapArray"}},gap:{defaultValue:null,description:"The gap between the component's children.\nUse 1-12 for a gap of 4px-48px.\nAccepts responsive props in the form of an array.",name:"gap",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},margin:{defaultValue:null,description:"The margin of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"margin",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginTop:{defaultValue:null,description:"The margin-top of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginTop",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginBottom:{defaultValue:null,description:"The margin-bottom of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginBottom",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginRight:{defaultValue:null,description:"The margin-right of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginRight",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginLeft:{defaultValue:null,description:"The margin-left of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginLeft",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInline:{defaultValue:null,description:"The margin-inline of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInline",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineStart:{defaultValue:null,description:"The margin-inline-start of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineStart",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineEnd:{defaultValue:null,description:"The margin-inline-end of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineEnd",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},padding:{defaultValue:null,description:"The padding of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"padding",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingTop:{defaultValue:null,description:"The padding-top of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingTop",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingBottom:{defaultValue:null,description:"The padding-bottom of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingBottom",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingRight:{defaultValue:null,description:"The padding-right of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingRight",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingLeft:{defaultValue:null,description:"The padding-left of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingLeft",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInline:{defaultValue:null,description:"The padding-inline of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInline",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineStart:{defaultValue:null,description:"The padding-inline-start of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineStart",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineEnd:{defaultValue:null,description:"The padding-inline-end of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineEnd",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderColor:{defaultValue:null,description:"The border-color of the component.\nUse BorderColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderColor",required:!1,type:{name:"BorderColor | BorderColorArray"}},borderWidth:{defaultValue:null,description:"The border-width of the component.\nUse 1-12 for 1px-12px.\nAccepts responsive props in the form of an array.",name:"borderWidth",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderRadius:{defaultValue:null,description:"The border-radius of the component.\nUse BorderRadius enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderRadius",required:!1,type:{name:"BorderRadius | BorderRadiusArray"}},borderStyle:{defaultValue:null,description:"The border-style of the component.\nUse BorderStyle enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderStyle",required:!1,type:{name:"BorderStyle | BorderStyleArray"}},alignItems:{defaultValue:null,description:"The align-items of the component.\nUse AlignItems enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"alignItems",required:!1,type:{name:"AlignItems | AlignItemsArray"}},justifyContent:{defaultValue:null,description:"The justify-content of the component.\nUse JustifyContent enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"justifyContent",required:!1,type:{name:"JustifyContent | JustifyContentArray"}},textAlign:{defaultValue:null,description:"The text-align of the component.\nUse TextAlign enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"textAlign",required:!1,type:{name:"TextAlign | TextAlignArray"}},display:{defaultValue:null,description:"The display of the component.\nUse Display enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"display",required:!1,type:{name:"Display | DisplayArray"}},width:{defaultValue:null,description:"The width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"width",required:!1,type:{name:"BlockSize | BlockSizeArray"}},minWidth:{defaultValue:null,description:"The min-width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"minWidth",required:!1,type:{name:"BlockSize | BlockSizeArray"}},height:{defaultValue:null,description:"The height of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"height",required:!1,type:{name:"BlockSize | BlockSizeArray"}},backgroundColor:{defaultValue:null,description:"The background-color of the component.\nUse BackgroundColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"backgroundColor",required:!1,type:{name:"BackgroundColor | BackgroundColorArray"}},color:{defaultValue:null,description:"The text-color of the component.\nUse TextColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"color",required:!1,type:{name:"TextColor | IconColor | TextColorArray | IconColorArray"}},"data-testid":{defaultValue:null,description:"An optional data-testid to apply to the component.\nTypeScript is complaining about data- attributes which means we need to explicitly define this as a prop.\nTODO: Allow data- attributes.",name:"data-testid",required:!1,type:{name:"string"}},as:{defaultValue:null,description:"An override of the default HTML tag.\nCan also be a React component.",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/bridge/layout/index.tsx#Row"]={docgenInfo:Row.__docgenInfo,name:"Row",path:"ui/pages/bridge/layout/index.tsx#Row"})}catch(__react_docgen_typescript_loader_error){}try{Tooltip.displayName="Tooltip",Tooltip.__docgenInfo={description:"",displayName:"Tooltip",props:{children:{defaultValue:null,description:"The contents within the Popover",name:"children",required:!1,type:{name:"ReactNode"}},isOpen:{defaultValue:null,description:"Boolean to let the Popover know if it is open or not",name:"isOpen",required:!1,type:{name:"boolean"}},"data-testid":{defaultValue:null,description:"An optional data-testid to apply to the component.\nTypeScript is complaining about data- attributes which means we need to explicitly define this as a prop.\nTODO: Allow data- attributes.",name:"data-testid",required:!1,type:{name:"string"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}},className:{defaultValue:null,description:"Additional classNames to be added to the Popover component",name:"className",required:!1,type:{name:"string"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},flexDirection:{defaultValue:null,description:"The flex direction of the component.\nUse the FlexDirection enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexDirection",required:!1,type:{name:"FlexDirection | FlexDirectionArray"}},flexWrap:{defaultValue:null,description:"The flex wrap of the component.\nUse the FlexWrap enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexWrap",required:!1,type:{name:"FlexWrap | FlexWrapArray"}},gap:{defaultValue:null,description:"The gap between the component's children.\nUse 1-12 for a gap of 4px-48px.\nAccepts responsive props in the form of an array.",name:"gap",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},margin:{defaultValue:null,description:"The margin of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"margin",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginTop:{defaultValue:null,description:"The margin-top of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginTop",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginBottom:{defaultValue:null,description:"The margin-bottom of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginBottom",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginRight:{defaultValue:null,description:"The margin-right of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginRight",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginLeft:{defaultValue:null,description:"The margin-left of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginLeft",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInline:{defaultValue:null,description:"The margin-inline of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInline",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineStart:{defaultValue:null,description:"The margin-inline-start of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineStart",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineEnd:{defaultValue:null,description:"The margin-inline-end of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineEnd",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},padding:{defaultValue:null,description:"The padding of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"padding",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingTop:{defaultValue:null,description:"The padding-top of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingTop",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingBottom:{defaultValue:null,description:"The padding-bottom of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingBottom",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingRight:{defaultValue:null,description:"The padding-right of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingRight",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingLeft:{defaultValue:null,description:"The padding-left of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingLeft",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInline:{defaultValue:null,description:"The padding-inline of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInline",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineStart:{defaultValue:null,description:"The padding-inline-start of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineStart",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineEnd:{defaultValue:null,description:"The padding-inline-end of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineEnd",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderColor:{defaultValue:null,description:"The border-color of the component.\nUse BorderColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderColor",required:!1,type:{name:"BorderColor | BorderColorArray"}},borderWidth:{defaultValue:null,description:"The border-width of the component.\nUse 1-12 for 1px-12px.\nAccepts responsive props in the form of an array.",name:"borderWidth",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderRadius:{defaultValue:null,description:"The border-radius of the component.\nUse BorderRadius enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderRadius",required:!1,type:{name:"BorderRadius | BorderRadiusArray"}},borderStyle:{defaultValue:null,description:"The border-style of the component.\nUse BorderStyle enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderStyle",required:!1,type:{name:"BorderStyle | BorderStyleArray"}},alignItems:{defaultValue:null,description:"The align-items of the component.\nUse AlignItems enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"alignItems",required:!1,type:{name:"AlignItems | AlignItemsArray"}},justifyContent:{defaultValue:null,description:"The justify-content of the component.\nUse JustifyContent enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"justifyContent",required:!1,type:{name:"JustifyContent | JustifyContentArray"}},textAlign:{defaultValue:null,description:"The text-align of the component.\nUse TextAlign enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"textAlign",required:!1,type:{name:"TextAlign | TextAlignArray"}},display:{defaultValue:null,description:"The display of the component.\nUse Display enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"display",required:!1,type:{name:"Display | DisplayArray"}},width:{defaultValue:null,description:"The width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"width",required:!1,type:{name:"BlockSize | BlockSizeArray"}},height:{defaultValue:null,description:"The height of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"height",required:!1,type:{name:"BlockSize | BlockSizeArray"}},backgroundColor:{defaultValue:null,description:"The background-color of the component.\nUse BackgroundColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"backgroundColor",required:!1,type:{name:"BackgroundColor | BackgroundColorArray"}},as:{defaultValue:null,description:"An override of the default HTML tag.\nCan also be a React component.",name:"as",required:!1,type:{name:"enum",value:[{value:'"div"'}]}},color:{defaultValue:null,description:"The text-color of the component.\nUse TextColor enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"color",required:!1,type:{name:"TextColor | IconColor | TextColorArray | IconColorArray"}},role:{defaultValue:null,description:"Use `PopoverRole.Dialog` if the content is interactive, or `PopoverRole.Tooltip` for purely informational popovers.",name:"role",required:!1,type:{name:"enum",value:[{value:'"tooltip"'},{value:'"dialog"'}]}},minWidth:{defaultValue:null,description:"The min-width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"minWidth",required:!1,type:{name:"BlockSize | BlockSizeArray"}},offset:{defaultValue:null,description:"Offset to be applied to the Popover horizontal and vertical offsets in pixels\nRequires an array of two numbers\ndefault: [0, 8]",name:"offset",required:!1,type:{name:"[number, number]"}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"add-square"'},{value:'"add"'},{value:'"arrow-2-down"'},{value:'"arrow-2-left"'},{value:'"arrow-2-right"'},{value:'"arrow-2-up"'},{value:'"arrow-2-up-right"'},{value:'"arrow-double-left"'},{value:'"arrow-double-right"'},{value:'"arrow-down"'},{value:'"arrow-left"'},{value:'"arrow-right"'},{value:'"arrow-up"'},{value:'"bank-token"'},{value:'"bank"'},{value:'"book"'},{value:'"bookmark"'},{value:'"bridge"'},{value:'"collapse"'},{value:'"calculator"'},{value:'"card-pos"'},{value:'"card-token"'},{value:'"card"'},{value:'"category"'},{value:'"chart"'},{value:'"check-bold"'},{value:'"check"'},{value:'"clock"'},{value:'"close"'},{value:'"code-circle"'},{value:'"coin"'},{value:'"confirmation"'},{value:'"connect"'},{value:'"copy-success"'},{value:'"copy"'},{value:'"customize"'},{value:'"danger"'},{value:'"dark"'},{value:'"data"'},{value:'"diagram"'},{value:'"document-code"'},{value:'"drag-drop"'},{value:'"dragging-animation"'},{value:'"pinning-animation"'},{value:'"edit"'},{value:'"eraser"'},{value:'"ethereum"'},{value:'"expand"'},{value:'"explore"'},{value:'"export"'},{value:'"eye-slash"'},{value:'"eye"'},{value:'"filter"'},{value:'"flag"'},{value:'"flash-slash"'},{value:'"flash"'},{value:'"full-circle"'},{value:'"gas"'},{value:'"global-search"'},{value:'"global"'},{value:'"graph"'},{value:'"hardware"'},{value:'"heart"'},{value:'"hierarchy"'},{value:'"home"'},{value:'"import"'},{value:'"info"'},{value:'"key"'},{value:'"light"'},{value:'"link"'},{value:'"loading"'},{value:'"lock-circle"'},{value:'"lock-slash"'},{value:'"lock"'},{value:'"login"'},{value:'"logout"'},{value:'"menu"'},{value:'"message-question"'},{value:'"messages"'},{value:'"minus-bold"'},{value:'"minus-square"'},{value:'"minus"'},{value:'"mobile"'},{value:'"money"'},{value:'"monitor"'},{value:'"more-horizontal"'},{value:'"more-vertical"'},{value:'"notification-circle"'},{value:'"notification"'},{value:'"password-check"'},{value:'"people"'},{value:'"pin"'},{value:'"programming-arrows"'},{value:'"custody"'},{value:'"question"'},{value:'"received"'},{value:'"refresh"'},{value:'"save"'},{value:'"scan-barcode"'},{value:'"scan-focus"'},{value:'"scan"'},{value:'"scroll"'},{value:'"search"'},{value:'"security-card"'},{value:'"security-cross"'},{value:'"security-key"'},{value:'"security-search"'},{value:'"security-slash"'},{value:'"security-tick"'},{value:'"security-time"'},{value:'"security-user"'},{value:'"security"'},{value:'"send-1"'},{value:'"send-2"'},{value:'"setting"'},{value:'"slash"'},{value:'"snaps-mobile"'},{value:'"snaps-plus"'},{value:'"snaps"'},{value:'"speedometer"'},{value:'"star"'},{value:'"stake"'},{value:'"student"'},{value:'"swap-horizontal"'},{value:'"swap-vertical"'},{value:'"tag"'},{value:'"tilde"'},{value:'"timer"'},{value:'"trash"'},{value:'"trend-down"'},{value:'"trend-up"'},{value:'"user-circle-add"'},{value:'"user-circle-link"'},{value:'"user-circle-remove"'},{value:'"user-circle"'},{value:'"user"'},{value:'"wallet-card"'},{value:'"wallet-money"'},{value:'"wallet"'},{value:'"warning"'},{value:'"twitter"'},{value:'"qr-code"'},{value:'"user-check"'},{value:'"unpin"'},{value:'"ban"'},{value:'"bold"'},{value:'"circle-x"'},{value:'"download"'},{value:'"file"'},{value:'"flask"'},{value:'"plug"'},{value:'"share"'},{value:'"square"'},{value:'"tint"'},{value:'"upload"'},{value:'"usb"'},{value:'"wifi"'},{value:'"plus-minus"'}]}},position:{defaultValue:null,description:"The position of the Popover. Possible values could be PopoverPosition.Auto, PopoverPosition.AutoStart, PopoverPosition.AutoEnd, PopoverPosition.Top, PopoverPosition.TopStart, PopoverPosition.TopEnd, PopoverPosition.Right, PopoverPosition.RightStart, PopoverPosition.RightEnd, PopoverPosition.Bottom, PopoverPosition.BottomStart, PopoverPosition.BottomEnd, PopoverPosition.Left, PopoverPosition.LeftStart, PopoverPosition.LeftEnd",name:"position",required:!1,type:{name:"enum",value:[{value:'"auto"'},{value:'"top"'},{value:'"top-start"'},{value:'"top-end"'},{value:'"right"'},{value:'"right-start"'},{value:'"right-end"'},{value:'"bottom"'},{value:'"bottom-start"'},{value:'"bottom-end"'},{value:'"left"'},{value:'"left-start"'},{value:'"left-end"'}]}},hasArrow:{defaultValue:null,description:"Boolean to show or hide the Popover arrow pointing to the reference element\nDefault: false",name:"hasArrow",required:!1,type:{name:"boolean"}},arrowProps:{defaultValue:null,description:"Pass any `BoxProps` to the Popover arrow",name:"arrowProps",required:!1,type:{name:'BoxProps<"div">'}},matchWidth:{defaultValue:null,description:"Boolean to control the width of the Popover to match the width of the reference element\nDefault: false",name:"matchWidth",required:!1,type:{name:"boolean"}},preventOverflow:{defaultValue:null,description:"Boolean to control the Popover overflow from the page\nWhen PopoverPosition.Auto this becomes true\nDefault: false",name:"preventOverflow",required:!1,type:{name:"boolean"}},flip:{defaultValue:null,description:"Boolean to allow the Popover to flip to the opposite side if there is not enough space in the current position\nWhen PopoverPosition.Auto this becomes true\nDefault: false",name:"flip",required:!1,type:{name:"boolean"}},referenceHidden:{defaultValue:null,description:"Boolean to allow the Popover to hide fully if the reference element is hidden\nDefault: false",name:"referenceHidden",required:!1,type:{name:"boolean"}},referenceElement:{defaultValue:null,description:"Reference element to position the Popover",name:"referenceElement",required:!1,type:{name:"HTMLElement | null"}},isPortal:{defaultValue:null,description:"Boolean to allow the Popover to be rendered in a createPortal",name:"isPortal",required:!1,type:{name:"boolean"}},onPressEscKey:{defaultValue:null,description:"Pass a close function for the escape key callback to close the Popover",name:"onPressEscKey",required:!1,type:{name:"(() => void)"}},onClickOutside:{defaultValue:null,description:"On click outside callback to close the Popover",name:"onClickOutside",required:!1,type:{name:"(() => void)"}},triggerElement:{defaultValue:null,description:"",name:"triggerElement",required:!1,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/bridge/layout/index.tsx#Tooltip"]={docgenInfo:Tooltip.__docgenInfo,name:"Tooltip",path:"ui/pages/bridge/layout/index.tsx#Tooltip"})}catch(__react_docgen_typescript_loader_error){}},"./ui/pages/bridge/utils/quote.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{GE:()=>isQuoteExpired,KK:()=>calcAdjustedReturn,KL:()=>calcSentAmount,KS:()=>calcEstimatedAndMaxTotalGasFee,KX:()=>calcRelayerFee,N:()=>formatCurrencyAmount,NJ:()=>formatTokenAmount,Ue:()=>formatEtaInMinutes,bw:()=>formatProviderLabel,c2:()=>isNativeAddress,fv:()=>calcToAmount,v3:()=>calcSwapRate,v5:()=>calcCost});var ethereumjs_util__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/ethereumjs-util/dist.browser/index.js"),bignumber_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/bignumber.js/bignumber.js"),_shared_lib_transactions_controller_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./shared/lib/transactions-controller-utils.js"),_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./shared/modules/conversion.utils.ts"),_helpers_utils_confirm_tx_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/helpers/utils/confirm-tx.util.ts"),_shared_modules_Numeric__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./shared/modules/Numeric.ts"),_shared_constants_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./shared/constants/common.ts"),_hooks_useCurrencyDisplay__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./ui/hooks/useCurrencyDisplay.js"),_confirmations_components_simulation_details_formatAmount__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./ui/pages/confirmations/components/simulation-details/formatAmount.ts"),isQuoteExpired=function(isQuoteGoingToRefresh,refreshRate,quotesLastFetchedMs){return!!(!isQuoteGoingToRefresh&"esLastFetchedMs&&Date.now()-quotesLastFetchedMs>refreshRate)},isNativeAddress=function(address){return address===(0,ethereumjs_util__WEBPACK_IMPORTED_MODULE_0__.zeroAddress)()||""===address||!address},calcToAmount=function(param,exchangeRate){var destTokenAmount=param.destTokenAmount,destAsset=param.destAsset,normalizedDestAmount=(0,_shared_lib_transactions_controller_utils__WEBPACK_IMPORTED_MODULE_2__.dU)(destTokenAmount,destAsset.decimals);return{amount:normalizedDestAmount,valueInCurrency:exchangeRate?normalizedDestAmount.mul(exchangeRate.toString()):null}},calcSentAmount=function(param,exchangeRate){var srcTokenAmount=param.srcTokenAmount,srcAsset=param.srcAsset,feeData=param.feeData,normalizedSentAmount=(0,_shared_lib_transactions_controller_utils__WEBPACK_IMPORTED_MODULE_2__.dU)(new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber(srcTokenAmount).plus(feeData.metabridge.amount),srcAsset.decimals);return{amount:normalizedSentAmount,valueInCurrency:exchangeRate?normalizedSentAmount.mul(exchangeRate.toString()):null}},calcRelayerFee=function(bridgeQuote,nativeExchangeRate){var _bridgeQuote_quote=bridgeQuote.quote,srcAsset=_bridgeQuote_quote.srcAsset,srcTokenAmount=_bridgeQuote_quote.srcTokenAmount,feeData=_bridgeQuote_quote.feeData,trade=bridgeQuote.trade,relayerFeeInNative=(0,_shared_lib_transactions_controller_utils__WEBPACK_IMPORTED_MODULE_2__.dU)(new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber((0,_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_3__.I0)(trade.value)).minus(isNativeAddress(srcAsset.address)?new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber(srcTokenAmount).plus(feeData.metabridge.amount):0),18);return{amount:relayerFeeInNative,valueInCurrency:nativeExchangeRate?relayerFeeInNative.mul(nativeExchangeRate.toString()):null}},calcTotalGasFee=function(param){var _trade_gasLimit,_approval_gasLimit,_trade_gasLimit_toString,_approval_gasLimit_toString,bridgeQuote=param.bridgeQuote,feePerGasInDecGwei=param.feePerGasInDecGwei,priorityFeePerGasInDecGwei=param.priorityFeePerGasInDecGwei,nativeExchangeRate=param.nativeExchangeRate,approval=bridgeQuote.approval,trade=bridgeQuote.trade,l1GasFeesInHexWei=bridgeQuote.l1GasFeesInHexWei,totalGasLimitInDec=(0,_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_3__.s3)(null!==(_trade_gasLimit_toString=null===(_trade_gasLimit=trade.gasLimit)||void 0===_trade_gasLimit?void 0:_trade_gasLimit.toString())&&void 0!==_trade_gasLimit_toString?_trade_gasLimit_toString:"0",null!==(_approval_gasLimit_toString=null==approval?void 0:null===(_approval_gasLimit=approval.gasLimit)||void 0===_approval_gasLimit?void 0:_approval_gasLimit.toString())&&void 0!==_approval_gasLimit_toString?_approval_gasLimit_toString:"0"),totalFeePerGasInDecGwei=(0,_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_3__.s3)(feePerGasInDecGwei,priorityFeePerGasInDecGwei),l1GasFeesInDecGWei=_shared_modules_Numeric__WEBPACK_IMPORTED_MODULE_5__.e.from(null!=l1GasFeesInHexWei?l1GasFeesInHexWei:"0",16,_shared_constants_common__WEBPACK_IMPORTED_MODULE_6__.sk.WEI).toDenomination(_shared_constants_common__WEBPACK_IMPORTED_MODULE_6__.sk.GWEI),gasFeesInDecGwei=totalGasLimitInDec.times(totalFeePerGasInDecGwei).add(l1GasFeesInDecGWei),gasFeesInDecEth=new bignumber_js__WEBPACK_IMPORTED_MODULE_1__.BigNumber(gasFeesInDecGwei.shiftedBy(9).toString()),gasFeesInUSD=nativeExchangeRate?gasFeesInDecEth.times(nativeExchangeRate.toString()):null;return{amount:gasFeesInDecEth,valueInCurrency:gasFeesInUSD}},calcEstimatedAndMaxTotalGasFee=function(param){var bridgeQuote=param.bridgeQuote,estimatedBaseFeeInDecGwei=param.estimatedBaseFeeInDecGwei,maxFeePerGasInDecGwei=param.maxFeePerGasInDecGwei,maxPriorityFeePerGasInDecGwei=param.maxPriorityFeePerGasInDecGwei,nativeExchangeRate=param.nativeExchangeRate,_calcTotalGasFee=calcTotalGasFee({bridgeQuote:bridgeQuote,feePerGasInDecGwei:estimatedBaseFeeInDecGwei,priorityFeePerGasInDecGwei:maxPriorityFeePerGasInDecGwei,nativeExchangeRate:nativeExchangeRate}),amount=_calcTotalGasFee.amount,valueInCurrency=_calcTotalGasFee.valueInCurrency,_calcTotalGasFee1=calcTotalGasFee({bridgeQuote:bridgeQuote,feePerGasInDecGwei:maxFeePerGasInDecGwei,priorityFeePerGasInDecGwei:maxPriorityFeePerGasInDecGwei,nativeExchangeRate:nativeExchangeRate});return{amount:amount,amountMax:_calcTotalGasFee1.amount,valueInCurrency:valueInCurrency,valueInCurrencyMax:_calcTotalGasFee1.valueInCurrency}},calcAdjustedReturn=function(destTokenAmountInCurrency,totalNetworkFeeInCurrency){return{valueInCurrency:destTokenAmountInCurrency&&totalNetworkFeeInCurrency?destTokenAmountInCurrency.minus(totalNetworkFeeInCurrency):null}},calcSwapRate=function(sentAmount,destTokenAmount){return destTokenAmount.div(sentAmount)},calcCost=function(adjustedReturnInCurrency,sentAmountInCurrency){return{valueInCurrency:adjustedReturnInCurrency&&sentAmountInCurrency?sentAmountInCurrency.minus(adjustedReturnInCurrency):null}},formatEtaInMinutes=function(estimatedProcessingTimeInSeconds){return estimatedProcessingTimeInSeconds<60?"< 1":(estimatedProcessingTimeInSeconds/60).toFixed()},formatTokenAmount=function(locale,amount){var symbol=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return[(0,_confirmations_components_simulation_details_formatAmount__WEBPACK_IMPORTED_MODULE_8__.e)(locale,amount),symbol].join(" ").trim()},formatCurrencyAmount=function(amount,currency){var precision=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_hooks_useCurrencyDisplay__WEBPACK_IMPORTED_MODULE_7__.Vi;if(amount){if(0===precision){if(amount.lt(.01))return"<$0.01";if(amount.lt(1))return(0,_helpers_utils_confirm_tx_util__WEBPACK_IMPORTED_MODULE_4__.vv)(amount.toString(),currency,2)}return(0,_helpers_utils_confirm_tx_util__WEBPACK_IMPORTED_MODULE_4__.vv)(amount.toString(),currency,precision)}},formatProviderLabel=function(quote){return"".concat(null==quote?void 0:quote.quote.bridgeId,"_").concat(null==quote?void 0:quote.quote.bridges[0])}}}]);