-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path51958.c0ab0f28.iframe.bundle.js
1 lines (1 loc) · 44.5 KB
/
51958.c0ab0f28.iframe.bundle.js
1
(globalThis.webpackChunkmetamask_crx=globalThis.webpackChunkmetamask_crx||[]).push([[51958],{"./ui/components/ui/box/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>_box__WEBPACK_IMPORTED_MODULE_0__.Ay,Ve:()=>_box__WEBPACK_IMPORTED_MODULE_0__.Ve});var _box__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./ui/components/ui/box/box.js")},"./ui/components/ui/info-tooltip/info-tooltip-icon.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>InfoTooltipIcon});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);function InfoTooltipIcon(param){var _param_fillColor=param.fillColor;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M5 0C2.2 0 0 2.2 0 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 2c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.2-.7-.6.3-.8.7-.8zm.7 6H4.3V4.3h1.5V8z",fill:void 0===_param_fillColor?"var(--color-icon-default)":_param_fillColor}))}InfoTooltipIcon.propTypes={fillColor:prop_types__WEBPACK_IMPORTED_MODULE_1___default().string},InfoTooltipIcon.__docgenInfo={description:"",methods:[],displayName:"InfoTooltipIcon",props:{fillColor:{defaultValue:{value:"'var(--color-icon-default)'",computed:!1},description:"",type:{name:"string"},required:!1}}}},"./ui/components/ui/info-tooltip/info-tooltip.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>InfoTooltip});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),classnames__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__),_tooltip__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/components/ui/tooltip/index.js"),_info_tooltip_icon__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/ui/info-tooltip/info-tooltip-icon.js"),positionArrowClassMap={top:"info-tooltip__top-tooltip-arrow",bottom:"info-tooltip__bottom-tooltip-arrow",left:"info-tooltip__left-tooltip-arrow",right:"info-tooltip__right-tooltip-arrow"};function InfoTooltip(param){var _param_contentText=param.contentText,_param_position=param.position,position=void 0===_param_position?"":_param_position,containerClassName=param.containerClassName,wrapperClassName=param.wrapperClassName,_param_iconFillColor=param.iconFillColor;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"info-tooltip","data-testid":"info-tooltip"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_tooltip__WEBPACK_IMPORTED_MODULE_2__.A,{interactive:!0,position:position,containerClassName:classnames__WEBPACK_IMPORTED_MODULE_1___default()("info-tooltip__tooltip-container",containerClassName),wrapperClassName:wrapperClassName,tooltipInnerClassName:"info-tooltip__tooltip-content",tooltipArrowClassName:positionArrowClassMap[position],html:void 0===_param_contentText?"":_param_contentText,theme:"tippy-tooltip-info"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_info_tooltip_icon__WEBPACK_IMPORTED_MODULE_3__.A,{fillColor:void 0===_param_iconFillColor?"var(--color-icon-alternative)":_param_iconFillColor})))}InfoTooltip.propTypes={contentText:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,prop_types__WEBPACK_IMPORTED_MODULE_4___default().node]),position:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["top","left","bottom","right"]),containerClassName:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,wrapperClassName:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,iconFillColor:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string},InfoTooltip.__docgenInfo={description:"",methods:[],displayName:"InfoTooltip",props:{contentText:{defaultValue:{value:"''",computed:!1},description:"Text label that shows up after hover",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},position:{defaultValue:{value:"''",computed:!1},description:"Shows position of the tooltip",type:{name:"enum",value:[{value:"'top'",computed:!1},{value:"'left'",computed:!1},{value:"'bottom'",computed:!1},{value:"'right'",computed:!1}]},required:!1},iconFillColor:{defaultValue:{value:"'var(--color-icon-alternative)'",computed:!1},description:"Add color for the icon",type:{name:"string"},required:!1},containerClassName:{description:"Add custom CSS class for container",type:{name:"string"},required:!1},wrapperClassName:{description:"Add custom CSS class for the wrapper",type:{name:"string"},required:!1}}}},"./ui/components/ui/tooltip/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>_tooltip__WEBPACK_IMPORTED_MODULE_0__.A});var _tooltip__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./ui/components/ui/tooltip/tooltip.js")},"./ui/components/ui/tooltip/tooltip.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Tooltip});var prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_tippy__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-tippy/dist/react-tippy.js");function _assert_this_initialized(self){if(void 0===self)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _class_call_check(instance,Constructor){if(!(instance instanceof Constructor))throw TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _create_class(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}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 _get_prototype_of(o){return(_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_set_prototype_of(subClass,superClass)}function _possible_constructor_return(self,call){return call&&("object"===_type_of(call)||"function"==typeof call)?call:_assert_this_initialized(self)}function _set_prototype_of(o,p){return(_set_prototype_of=Object.setPrototypeOf||function setPrototypeOf(o,p){return o.__proto__=p,o})(o,p)}function _type_of(obj){return obj&&"undefined"!=typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj}function _is_native_reflect_construct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _create_super(Derived){var hasNativeReflectConstruct=_is_native_reflect_construct();return function _createSuperInternal(){var result,Super=_get_prototype_of(Derived);return result=hasNativeReflectConstruct?Reflect.construct(Super,arguments,_get_prototype_of(this).constructor):Super.apply(this,arguments),_possible_constructor_return(this,result)}}var Tooltip=function(PureComponent){_inherits(Tooltip,PureComponent);var _super=_create_super(Tooltip);function Tooltip(){return _class_call_check(this,Tooltip),_super.apply(this,arguments)}return _create_class(Tooltip,[{key:"render",value:function render(){var _this_props=this.props,arrow=_this_props.arrow,children=_this_props.children,containerClassName=_this_props.containerClassName,disabled=_this_props.disabled,position=_this_props.position,html=_this_props.html,interactive=_this_props.interactive,size=_this_props.size,distance=_this_props.distance,title=_this_props.title,trigger=_this_props.trigger,onHidden=_this_props.onHidden,offset=_this_props.offset,open=_this_props.open,wrapperClassName=_this_props.wrapperClassName,style=_this_props.style,wrapperStyle=_this_props.wrapperStyle,theme=_this_props.theme,tabIndex=_this_props.tabIndex,tag=_this_props.tag;return title||html?react__WEBPACK_IMPORTED_MODULE_0__.createElement(tag,{className:wrapperClassName,style:wrapperStyle},react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_tippy__WEBPACK_IMPORTED_MODULE_1__.Tooltip,{arrow:arrow,className:containerClassName,disabled:disabled,hideOnClick:!1,distance:distance,html:html,interactive:interactive,onHidden:onHidden,position:position,size:size,offset:offset,style:style,title:disabled?"":title,trigger:trigger,open:open,theme:"tippy-tooltip--mm-custom ".concat(theme),tabIndex:tabIndex||0,tag:tag},children)):react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:wrapperClassName},children)}}]),Tooltip}(react__WEBPACK_IMPORTED_MODULE_0__.PureComponent);_define_property(Tooltip,"defaultProps",{arrow:!0,children:null,containerClassName:"",html:null,interactive:void 0,onHidden:null,distance:0,position:"left",offset:0,open:void 0,size:"small",title:null,trigger:"mouseenter focus",wrapperClassName:void 0,theme:"",tag:"div",wrapperStyle:{}}),_define_property(Tooltip,"propTypes",{arrow:prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool,children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().node,containerClassName:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,disabled:prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool,html:prop_types__WEBPACK_IMPORTED_MODULE_2___default().node,distance:prop_types__WEBPACK_IMPORTED_MODULE_2___default().number,interactive:prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool,offset:prop_types__WEBPACK_IMPORTED_MODULE_2___default().number,onHidden:prop_types__WEBPACK_IMPORTED_MODULE_2___default().func,open:prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool,position:prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["top","right","bottom","left"]),size:prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(["small","regular","big"]),title:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,trigger:prop_types__WEBPACK_IMPORTED_MODULE_2___default().any,wrapperClassName:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,style:prop_types__WEBPACK_IMPORTED_MODULE_2___default().object,wrapperStyle:prop_types__WEBPACK_IMPORTED_MODULE_2___default().object,theme:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,tabIndex:prop_types__WEBPACK_IMPORTED_MODULE_2___default().number,tag:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string}),Tooltip.__docgenInfo={description:"",methods:[],displayName:"Tooltip",props:{arrow:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},children:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"node"},required:!1},containerClassName:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},html:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"node"},required:!1},interactive:{defaultValue:{value:"undefined",computed:!0},description:"",type:{name:"bool"},required:!1},onHidden:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},distance:{defaultValue:{value:"0",computed:!1},description:"",type:{name:"number"},required:!1},position:{defaultValue:{value:"'left'",computed:!1},description:"",type:{name:"enum",value:[{value:"'top'",computed:!1},{value:"'right'",computed:!1},{value:"'bottom'",computed:!1},{value:"'left'",computed:!1}]},required:!1},offset:{defaultValue:{value:"0",computed:!1},description:"",type:{name:"number"},required:!1},open:{defaultValue:{value:"undefined",computed:!0},description:"",type:{name:"bool"},required:!1},size:{defaultValue:{value:"'small'",computed:!1},description:"",type:{name:"enum",value:[{value:"'small'",computed:!1},{value:"'regular'",computed:!1},{value:"'big'",computed:!1}]},required:!1},title:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"string"},required:!1},trigger:{defaultValue:{value:"'mouseenter focus'",computed:!1},description:"",type:{name:"any"},required:!1},wrapperClassName:{defaultValue:{value:"undefined",computed:!0},description:"",type:{name:"string"},required:!1},theme:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},tag:{defaultValue:{value:"'div'",computed:!1},description:"",type:{name:"string"},required:!1},wrapperStyle:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"object"},required:!1},disabled:{description:"",type:{name:"bool"},required:!1},style:{description:"",type:{name:"object"},required:!1},tabIndex:{description:"",type:{name:"number"},required:!1}}}},"./ui/contexts/gasFee.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Sz:()=>useGasFeeContext,cB:()=>GasFeeContextProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__),_pages_confirmations_hooks_useGasFeeInputs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/pages/confirmations/hooks/useGasFeeInputs.js"),GasFeeContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({}),GasFeeContextProvider=function(param){var children=param.children,defaultEstimateToUse=param.defaultEstimateToUse,transaction=param.transaction,minimumGasLimit=param.minimumGasLimit,editGasMode=param.editGasMode,gasFeeDetails=(0,_pages_confirmations_hooks_useGasFeeInputs__WEBPACK_IMPORTED_MODULE_1__._)(defaultEstimateToUse,transaction,minimumGasLimit,editGasMode);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(GasFeeContext.Provider,{value:gasFeeDetails},children)};function useGasFeeContext(){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(GasFeeContext)}GasFeeContextProvider.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().node.isRequired,defaultEstimateToUse:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,transaction:prop_types__WEBPACK_IMPORTED_MODULE_2___default().object,minimumGasLimit:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,editGasMode:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string},GasFeeContextProvider.__docgenInfo={description:"",methods:[],displayName:"GasFeeContextProvider",props:{children:{description:"",type:{name:"node"},required:!0},defaultEstimateToUse:{description:"",type:{name:"string"},required:!1},transaction:{description:"",type:{name:"object"},required:!1},minimumGasLimit:{description:"",type:{name:"string"},required:!1},editGasMode:{description:"",type:{name:"string"},required:!1}}}},"./ui/contexts/transaction-modal.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Cr:()=>TransactionModalContextProvider,gb:()=>useTransactionModalContext,rM:()=>TransactionModalContext});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);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 _array_without_holes(arr){if(Array.isArray(arr))return _array_like_to_array(arr)}function _iterable_to_array(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}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 _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 _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 _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 TransactionModalContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({}),TransactionModalContextProvider=function(param){var children=param.children,_useState=_sliced_to_array((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),2),openModals=_useState[0],setOpenModals=_useState[1];return react__WEBPACK_IMPORTED_MODULE_0__.createElement(TransactionModalContext.Provider,{value:{closeModal:function(modalNames){if(!(openModals<0)){var modals=_to_consumable_array(openModals);modalNames.forEach(function(modal){var index=openModals.indexOf(modal);modals.splice(index,1)}),setOpenModals(modals)}},closeAllModals:function(){setOpenModals([])},currentModal:openModals[openModals.length-1],openModal:function(modalName){if(!openModals.includes(modalName)){var modals=_to_consumable_array(openModals);modals.push(modalName),setOpenModals(modals)}},openModalCount:openModals.length}},children)};function useTransactionModalContext(){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(TransactionModalContext)}TransactionModalContextProvider.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_1___default().node.isRequired},TransactionModalContextProvider.__docgenInfo={description:"",methods:[],displayName:"TransactionModalContextProvider",props:{children:{description:"",type:{name:"node"},required:!0}}}},"./ui/hooks/useCurrencyDisplay.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ke:()=>MIN_AMOUNT,Vi:()=>DEFAULT_PRECISION,pf:()=>useCurrencyDisplay});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),bignumber_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/bignumber.js/bignumber.js"),bignumber_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(bignumber_js__WEBPACK_IMPORTED_MODULE_1__),_helpers_utils_confirm_tx_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/helpers/utils/confirm-tx.util.ts"),_selectors_multichain__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/selectors/multichain.ts"),_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./shared/modules/conversion.utils.ts"),_shared_constants_network__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./shared/constants/network.ts"),_shared_modules_Numeric__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./shared/modules/Numeric.ts"),_shared_constants_common__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./shared/constants/common.ts"),_helpers_utils_token_util__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./ui/helpers/utils/token-util.js"),_useMultichainSelector__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./ui/hooks/useMultichainSelector.ts");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}var MIN_AMOUNT=1e-6,MIN_AMOUNT_DISPLAY="<".concat(MIN_AMOUNT),DEFAULT_PRECISION=new(bignumber_js__WEBPACK_IMPORTED_MODULE_1___default())(MIN_AMOUNT).decimalPlaces();function formatEthCurrencyDisplay(param){var isNativeCurrency=param.isNativeCurrency,isUserPreferredCurrency=param.isUserPreferredCurrency,currency=param.currency,nativeCurrency=param.nativeCurrency,inputValue=param.inputValue,conversionRate=param.conversionRate,denomination=param.denomination,numberOfDecimals=param.numberOfDecimals;if(!isNativeCurrency&&(isUserPreferredCurrency||nativeCurrency)){if(isUserPreferredCurrency&&conversionRate)return(0,_helpers_utils_confirm_tx_util__WEBPACK_IMPORTED_MODULE_2__.vv)((0,_shared_modules_conversion_utils__WEBPACK_IMPORTED_MODULE_4__.gh)({value:inputValue,fromCurrency:nativeCurrency,toCurrency:currency,conversionRate:conversionRate,numberOfDecimals:numberOfDecimals||2,toDenomination:denomination}),currency)}else{var ethDisplayValue=new _shared_modules_Numeric__WEBPACK_IMPORTED_MODULE_6__.e(inputValue,16,_shared_constants_common__WEBPACK_IMPORTED_MODULE_7__.sk.WEI).toDenomination(denomination||_shared_constants_common__WEBPACK_IMPORTED_MODULE_7__.sk.ETH).round(numberOfDecimals||DEFAULT_PRECISION).toBase(10).toString();return"0"===ethDisplayValue&&inputValue&&0!==Number(inputValue)?MIN_AMOUNT_DISPLAY:ethDisplayValue}return null}function formatNonEvmAssetCurrencyDisplay(param){var tokenSymbol=param.tokenSymbol,isNativeCurrency=param.isNativeCurrency,isUserPreferredCurrency=param.isUserPreferredCurrency,currency=param.currency,currentCurrency=param.currentCurrency,nativeCurrency=param.nativeCurrency,inputValue=param.inputValue,conversionRate=param.conversionRate;if(isNativeCurrency||!isUserPreferredCurrency&&!nativeCurrency)return new _shared_modules_Numeric__WEBPACK_IMPORTED_MODULE_6__.e(inputValue,10).toString();if(isUserPreferredCurrency&&conversionRate){var _getTokenFiatAmount,amount=null!==(_getTokenFiatAmount=(0,_helpers_utils_token_util__WEBPACK_IMPORTED_MODULE_8__.aQ)(1,Number(conversionRate),currentCurrency,inputValue,tokenSymbol,!1,!1))&&void 0!==_getTokenFiatAmount?_getTokenFiatAmount:"0";return(0,_helpers_utils_confirm_tx_util__WEBPACK_IMPORTED_MODULE_2__.vv)(amount,currency)}return null}function useCurrencyDisplay(inputValue,_param){var suffix,account=_param.account,displayValue=_param.displayValue,prefix=_param.prefix,numberOfDecimals=_param.numberOfDecimals,denomination=_param.denomination,currency=_param.currency,isAggregatedFiatOverviewBalance=_param.isAggregatedFiatOverviewBalance,opts=_object_without_properties(_param,["account","displayValue","prefix","numberOfDecimals","denomination","currency","isAggregatedFiatOverviewBalance"]),isEvm=(0,_useMultichainSelector__WEBPACK_IMPORTED_MODULE_9__.t)(_selectors_multichain__WEBPACK_IMPORTED_MODULE_3__.Bu,account),currentCurrency=(0,_useMultichainSelector__WEBPACK_IMPORTED_MODULE_9__.t)(_selectors_multichain__WEBPACK_IMPORTED_MODULE_3__.H5,account),nativeCurrency=(0,_useMultichainSelector__WEBPACK_IMPORTED_MODULE_9__.t)(_selectors_multichain__WEBPACK_IMPORTED_MODULE_3__.zz,account),conversionRate=(0,_useMultichainSelector__WEBPACK_IMPORTED_MODULE_9__.t)(_selectors_multichain__WEBPACK_IMPORTED_MODULE_3__.RP,account),isUserPreferredCurrency=currency===currentCurrency,isNativeCurrency=currency===nativeCurrency,value=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function(){return displayValue||(isEvm?isAggregatedFiatOverviewBalance?(0,_helpers_utils_confirm_tx_util__WEBPACK_IMPORTED_MODULE_2__.vv)(inputValue,currency):formatEthCurrencyDisplay({isNativeCurrency:isNativeCurrency,isUserPreferredCurrency:isUserPreferredCurrency,currency:currency,nativeCurrency:nativeCurrency,inputValue:inputValue,conversionRate:conversionRate,denomination:denomination,numberOfDecimals:numberOfDecimals}):formatNonEvmAssetCurrencyDisplay({tokenSymbol:nativeCurrency,isNativeCurrency:isNativeCurrency,isUserPreferredCurrency:isUserPreferredCurrency,currency:currency,currentCurrency:currentCurrency,nativeCurrency:nativeCurrency,inputValue:inputValue,conversionRate:conversionRate}))},[displayValue,isEvm,isNativeCurrency,isUserPreferredCurrency,currency,nativeCurrency,inputValue,conversionRate,denomination,numberOfDecimals,currentCurrency,isAggregatedFiatOverviewBalance]);if(!opts.hideLabel){var currencyTickerSymbol=Object.values(_shared_constants_network__WEBPACK_IMPORTED_MODULE_5__.SL).includes(currency)?currency:null==currency?void 0:currency.toUpperCase();suffix=opts.suffix||currencyTickerSymbol}return["".concat(prefix||"").concat(value).concat(suffix?" ".concat(suffix):""),{prefix:prefix,value:value,suffix:suffix}]}},"./ui/pages/confirmations/components/transaction-detail-item/transaction-detail-item.component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>TransactionDetailItem});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),classnames__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__),_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/helpers/constants/design-system.ts"),_components_component_library__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/component-library/index.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}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 TransactionDetailItem(_param){var dataTestId=_param["data-testid"],_param_detailTitle=_param.detailTitle,detailText=_param.detailText,_param_detailTotal=_param.detailTotal,_param_hasDetailTextInSeparateRow=_param.hasDetailTextInSeparateRow,_param_subTitle=_param.subTitle,subTitle=void 0===_param_subTitle?"":_param_subTitle,_param_subText=_param.subText,_param_flexWidthValues=_param.flexWidthValues,props=_object_without_properties(_param,["data-testid","detailTitle","detailText","detailTotal","hasDetailTextInSeparateRow","subTitle","subText","flexWidthValues"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",_object_spread({className:"transaction-detail-item","data-testid":dataTestId},props),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"transaction-detail-item__row"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_component_library__WEBPACK_IMPORTED_MODULE_3__.EY,{as:"h6",display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.nl.Flex,flexWrap:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.I4.NoWrap,paddingBottom:1,variant:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.J3.bodyMdMedium},void 0===_param_detailTitle?"":_param_detailTitle),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:classnames__WEBPACK_IMPORTED_MODULE_1___default()("transaction-detail-item__detail-values",{"transaction-detail-item__detail-values--flex-width":void 0!==_param_flexWidthValues&&_param_flexWidthValues})},detailText&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_component_library__WEBPACK_IMPORTED_MODULE_3__.EY,{as:"h6",color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Q1.textAlternative,width:void 0!==_param_hasDetailTextInSeparateRow&&_param_hasDetailTextInSeparateRow?_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Zf.Full:null},detailText),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_component_library__WEBPACK_IMPORTED_MODULE_3__.EY,{as:"h6",color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Q1.textDefault,marginLeft:1,textAlign:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.nO.Right,variant:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.J3.bodyMd},void 0===_param_detailTotal?"":_param_detailTotal))),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"transaction-detail-item__row"},react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(subTitle)?react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,subTitle):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_component_library__WEBPACK_IMPORTED_MODULE_3__.EY,{as:"h6",variant:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.J3.bodySm,color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Q1.textMuted,style:{flex:"1 0 auto"}},subTitle),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_component_library__WEBPACK_IMPORTED_MODULE_3__.EY,{as:"h6",variant:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.J3.bodySm,color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Q1.textAlternative,textAlign:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.nO.End,className:"transaction-detail-item__row-subText"},void 0===_param_subText?"":_param_subText)))}TransactionDetailItem.propTypes={"data-testid":prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,detailTitle:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,prop_types__WEBPACK_IMPORTED_MODULE_4___default().node]),detailText:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,prop_types__WEBPACK_IMPORTED_MODULE_4___default().node]),detailTotal:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,prop_types__WEBPACK_IMPORTED_MODULE_4___default().node]),hasDetailTextInSeparateRow:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool,subTitle:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,prop_types__WEBPACK_IMPORTED_MODULE_4___default().node]),subText:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,prop_types__WEBPACK_IMPORTED_MODULE_4___default().node]),flexWidthValues:prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool},TransactionDetailItem.__docgenInfo={description:"",methods:[],displayName:"TransactionDetailItem",props:{detailTitle:{defaultValue:{value:"''",computed:!1},description:"Detail title text wrapped in Typography component.",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},detailTotal:{defaultValue:{value:"''",computed:!1},description:"Total amount to show. Wrapped in Typography component.",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},hasDetailTextInSeparateRow:{defaultValue:{value:"false",computed:!1},description:"If true, separates detailText and detailTotal into separate rows",type:{name:"bool"},required:!1},subTitle:{defaultValue:{value:"''",computed:!1},description:"Subtitle text. Checks if React.isValidElement before displaying. Displays under detailTitle",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},subText:{defaultValue:{value:"''",computed:!1},description:"Text to show under detailTotal. Wrapped in Typography component.",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},flexWidthValues:{defaultValue:{value:"false",computed:!1},description:"Changes width to auto for transaction-detail-item__detail-values",type:{name:"bool"},required:!1},"data-testid":{description:"An identifier for use in end-to-end tests.",type:{name:"string"},required:!1},detailText:{description:"Text to show on the left of the detailTotal. Wrapped in Typography component.",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1}}}},"./ui/pages/confirmations/components/transaction-detail/transaction-detail.component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>TransactionDetail});var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),gasFee=__webpack_require__("./ui/contexts/gasFee.js"),useI18nContext=__webpack_require__("./ui/hooks/useI18nContext.js"),box=__webpack_require__("./ui/components/ui/box/index.js"),gas=__webpack_require__("./shared/constants/gas.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts"),constants_gas=__webpack_require__("./ui/helpers/constants/gas.js"),useTransactionEventFragment=__webpack_require__("./ui/pages/confirmations/hooks/useTransactionEventFragment.js"),transaction_modal=__webpack_require__("./ui/contexts/transaction-modal.js"),info_tooltip=__webpack_require__("./ui/components/ui/info-tooltip/info-tooltip.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts");function EditGasFeeButton(param){var userAcknowledgedGasMissing=param.userAcknowledgedGasMissing,t=(0,useI18nContext.P)(),_useGasFeeContext=(0,gasFee.Sz)(),editGasMode=_useGasFeeContext.editGasMode,gasLimit=_useGasFeeContext.gasLimit,hasSimulationError=_useGasFeeContext.hasSimulationError,estimateUsed=_useGasFeeContext.estimateUsed,maxFeePerGas=_useGasFeeContext.maxFeePerGas,maxPriorityFeePerGas=_useGasFeeContext.maxPriorityFeePerGas,supportsEIP1559=_useGasFeeContext.supportsEIP1559,transaction=_useGasFeeContext.transaction,updateTransactionEventFragment=(0,useTransactionEventFragment.W)().updateTransactionEventFragment,openModal=(0,transaction_modal.gb)().openModal;if(!supportsEIP1559||!estimateUsed||!(!hasSimulationError||!0===userAcknowledgedGasMissing))return null;var icon=estimateUsed,title=estimateUsed;return estimateUsed===gas.uT.high&&editGasMode===gas.W5.swaps?(icon="swapSuggested",title="swapSuggested"):estimateUsed===gas.uT.tenPercentIncreased&&(icon=void 0,title="tenPercentIncreased"),react.createElement("div",{className:"edit-gas-fee-button"},react.createElement("button",{onClick:function(){updateTransactionEventFragment({gas_edit_attempted:"basic"}),openModal("editGasFee")},"data-testid":"edit-gas-fee-button"},icon&&react.createElement("span",{className:"edit-gas-fee-button__icon"},constants_gas.x6[icon]),react.createElement("span",{className:"edit-gas-fee-button__label"},t(title)),react.createElement(component_library.In,{name:component_library.$M.ArrowRight,color:design_system.Q1.primaryDefault,size:component_library.lK.Xs})),"custom"===estimateUsed&&react.createElement("button",{onClick:function(){updateTransactionEventFragment({gas_edit_attempted:"advanced"}),openModal("advancedGasFee")}},t("edit")),"dappSuggested"===estimateUsed&&react.createElement(info_tooltip.A,{contentText:react.createElement("div",{className:"edit-gas-fee-button__tooltip"},(null==transaction?void 0:transaction.origin)&&react.createElement(component_library.EY,{variant:design_system.J3.bodySm,as:"h6",color:design_system.r7.textAlternative},t("dappSuggestedTooltip",[transaction.origin])),react.createElement(component_library.EY,{variant:design_system.J3.bodySm,as:"h6"},react.createElement("b",null,t("maxFee"))," ",maxFeePerGas),react.createElement(component_library.EY,{variant:design_system.J3.bodySm,as:"h6"},react.createElement("b",null,t("maxPriorityFee"))," ",maxPriorityFeePerGas),react.createElement(component_library.EY,{variant:design_system.J3.bodySm,as:"h6"},react.createElement("b",null,t("gasLimit"))," ",gasLimit)),position:"top"}))}EditGasFeeButton.propTypes={userAcknowledgedGasMissing:prop_types_default().bool},EditGasFeeButton.__docgenInfo={description:"",methods:[],displayName:"EditGasFeeButton",props:{userAcknowledgedGasMissing:{description:"",type:{name:"bool"},required:!1}}};var transaction_detail_item_component=__webpack_require__("./ui/pages/confirmations/components/transaction-detail-item/transaction-detail-item.component.js");function TransactionDetail(param){var _param_rows=param.rows,onEdit=param.onEdit,_param_userAcknowledgedGasMissing=param.userAcknowledgedGasMissing,_param_disableEditGasFeeButton=param.disableEditGasFeeButton,t=(0,useI18nContext.P)(),supportsEIP1559=(0,gasFee.Sz)().supportsEIP1559;return react.createElement("div",{className:"transaction-detail"},supportsEIP1559&&!(void 0!==_param_disableEditGasFeeButton&&_param_disableEditGasFeeButton)&&react.createElement(box.Ay,{display:"flex",justifyContent:"flex-end",paddingTop:5},react.createElement(EditGasFeeButton,{userAcknowledgedGasMissing:void 0!==_param_userAcknowledgedGasMissing&&_param_userAcknowledgedGasMissing})),!supportsEIP1559&&onEdit&&react.createElement("div",{className:"transaction-detail-edit"},react.createElement("button",{onClick:onEdit},t("edit"))),react.createElement("div",{className:"transaction-detail-rows"},void 0===_param_rows?[]:_param_rows))}TransactionDetail.propTypes={rows:prop_types_default().arrayOf(transaction_detail_item_component.A).isRequired,onEdit:prop_types_default().func,userAcknowledgedGasMissing:prop_types_default().bool,disableEditGasFeeButton:prop_types_default().bool},TransactionDetail.__docgenInfo={description:"",methods:[],displayName:"TransactionDetail",props:{rows:{defaultValue:{value:"[]",computed:!1},description:"Show item content for transaction detail. Array of TransactionDetailItem components",type:{name:"arrayOf",value:{name:"custom",raw:"TransactionDetailItem"}},required:!1},userAcknowledgedGasMissing:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},disableEditGasFeeButton:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},onEdit:{description:"onClick handler for the Edit link",type:{name:"func"},required:!1}}}},"./ui/pages/confirmations/hooks/useTransactionEventFragment.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>useTransactionEventFragment});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-redux/es/index.js"),_contexts_gasFee__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/contexts/gasFee.js"),_store_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/__mocks__/actions.js"),_selectors__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/selectors/index.js");function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}var useTransactionEventFragment=function(){var _ref,transaction=(0,_contexts_gasFee__WEBPACK_IMPORTED_MODULE_2__.Sz)().transaction,fragmentExists=!!(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(function(state){return(0,_selectors__WEBPACK_IMPORTED_MODULE_4__.oCl)(state,{fragmentOptions:{},existingId:"transaction-added-".concat(null==transaction?void 0:transaction.id)})}),gasTransactionId=null==transaction?void 0:transaction.id;return{updateTransactionEventFragment:(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((_ref=_async_to_generator(function(params,_transactionId){var transactionId;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(transactionId=_transactionId||gasTransactionId))return[2];if(fragmentExists)return[3,2];return[4,(0,_store_actions__WEBPACK_IMPORTED_MODULE_3__.createTransactionEventFragment)(transactionId)];case 1:_state.sent(),_state.label=2;case 2:return(0,_store_actions__WEBPACK_IMPORTED_MODULE_3__.updateEventFragment)("transaction-added-".concat(transactionId),params),(0,_store_actions__WEBPACK_IMPORTED_MODULE_3__.updateEventFragment)("transaction-submitted-".concat(transactionId),params),[2]}})}),function(params,_transactionId){return _ref.apply(this,arguments)}),[fragmentExists,gasTransactionId])}}},"./ui/hooks/useMultichainSelector.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{t:()=>useMultichainSelector});var react_redux__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react-redux/es/index.js"),_selectors__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/selectors/index.js");function useMultichainSelector(selector,account){return(0,react_redux__WEBPACK_IMPORTED_MODULE_0__.d4)(function(state){return selector(state,account||(0,_selectors__WEBPACK_IMPORTED_MODULE_1__._rF)(state))})}},"./node_modules/lodash/isEqual.js":(module,__unused_webpack_exports,__webpack_require__)=>{var baseIsEqual=__webpack_require__("./node_modules/lodash/_baseIsEqual.js");function isEqual(value,other){return baseIsEqual(value,other)}module.exports=isEqual}}]);