-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path57075.607c31e2.iframe.bundle.js
1 lines (1 loc) · 69.6 KB
/
57075.607c31e2.iframe.bundle.js
1
"use strict";(globalThis.webpackChunkmetamask_crx=globalThis.webpackChunkmetamask_crx||[]).push([[57075],{"./ui/components/app/contact-list/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>ContactList});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),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),ui_button=__webpack_require__("./ui/components/ui/button/index.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),multichain=__webpack_require__("./ui/components/multichain/index.js");function RecipientGroup(param){var items=param.items,onSelect=param.onSelect;return items&&items.length?items.map(function(param){var address=param.address,name=param.name,isDuplicate=param.isDuplicate;return react.createElement(multichain.qo,{address:address,label:name,onClick:function(){return onSelect(address,name)},key:address,isDuplicate:isDuplicate})}):null}RecipientGroup.propTypes={items:prop_types_default().arrayOf(prop_types_default().shape({address:prop_types_default().string.isRequired,name:prop_types_default().string})),onSelect:prop_types_default().func.isRequired};var utils=__webpack_require__("./ui/components/app/contact-list/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_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 _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 _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 _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 _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 _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 _type_of(obj){return obj&&"undefined"!=typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj}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)}}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 ContactList=function(PureComponent){_inherits(ContactList,PureComponent);var _super=_create_super(ContactList);function ContactList(){var _this;return _class_call_check(this,ContactList),_this=_super.apply(this,arguments),_define_property(_assert_this_initialized(_this),"state",{isShowingAllRecent:!1}),_this}return _create_class(ContactList,[{key:"renderDuplicateContactWarning",value:function renderDuplicateContactWarning(){var t=this.context.t;return react.createElement("div",{className:"send__select-recipient-wrapper__list__duplicate-contact-banner"},react.createElement(component_library.b8,{severity:component_library.OU.Warning,description:t("duplicateContactWarning")}))}},{key:"renderRecents",value:function renderRecents(){var _this=this,t=this.context.t,isShowingAllRecent=this.state.isShowingAllRecent,nonContacts=this.props.searchForRecents(),showLoadMore=!isShowingAllRecent&&nonContacts.length>2;return react.createElement("div",{className:"send__select-recipient-wrapper__recent-group-wrapper"},showLoadMore&&react.createElement(ui_button.A,{type:"link",className:"send__select-recipient-wrapper__recent-group-wrapper__load-more",onClick:function(){return _this.setState({isShowingAllRecent:!0})}},t("loadMore")))}},{key:"renderAddressBook",value:function renderAddressBook(){var _this_props=this.props,addressBook=_this_props.addressBook,internalAccounts=_this_props.internalAccounts,searchForContacts=_this_props.searchForContacts,selectRecipient=_this_props.selectRecipient,selectedAddress=_this_props.selectedAddress,duplicateContactMap=(0,utils.i7)(addressBook,internalAccounts),unsortedContactsByLetter=searchForContacts().reduce(function(obj,contact){var _duplicateContactMap_get,firstLetter=contact.name[0].toUpperCase(),isDuplicate=(null!==(_duplicateContactMap_get=duplicateContactMap.get(contact.name.trim().toLowerCase()))&&void 0!==_duplicateContactMap_get?_duplicateContactMap_get:[]).length>1;return _object_spread_props(_object_spread({},obj),_define_property({},firstLetter,_to_consumable_array(obj[firstLetter]||[]).concat([_object_spread_props(_object_spread({},contact),{isDuplicate:isDuplicate})])))},{});return Object.keys(unsortedContactsByLetter).sort().map(function(letter){return[letter,(0,lodash.sortBy)(unsortedContactsByLetter[letter],function(contact){return contact.name.toLowerCase()})]}).map(function(param){var _param=_sliced_to_array(param,2),letter=_param[0],groupItems=_param[1];return react.createElement(RecipientGroup,{key:"".concat(letter,"-contact-group"),label:letter,items:groupItems,onSelect:selectRecipient,selectedAddress:selectedAddress})})}},{key:"renderMyAccounts",value:function renderMyAccounts(){var myAccounts=this.props.searchForMyAccounts();return react.createElement(RecipientGroup,{items:myAccounts,onSelect:this.props.selectRecipient,selectedAddress:this.props.selectedAddress})}},{key:"render",value:function render(){var _this_props=this.props,children=_this_props.children,searchForRecents=_this_props.searchForRecents,searchForContacts=_this_props.searchForContacts,searchForMyAccounts=_this_props.searchForMyAccounts,addressBook=_this_props.addressBook,internalAccounts=_this_props.internalAccounts;return react.createElement("div",{className:"send__select-recipient-wrapper__list"},children||null,(0,utils.DH)(addressBook,internalAccounts)?this.renderDuplicateContactWarning():null,searchForRecents?this.renderRecents():null,searchForContacts?this.renderAddressBook():null,searchForMyAccounts?this.renderMyAccounts():null)}}]),ContactList}(react.PureComponent);_define_property(ContactList,"propTypes",{addressBook:prop_types_default().array,internalAccounts:prop_types_default().array,searchForContacts:prop_types_default().func,searchForRecents:prop_types_default().func,searchForMyAccounts:prop_types_default().func,selectRecipient:prop_types_default().func,children:prop_types_default().node,selectedAddress:prop_types_default().string}),_define_property(ContactList,"contextTypes",{t:prop_types_default().func}),ContactList.__docgenInfo={description:"",methods:[{name:"renderDuplicateContactWarning",docblock:null,modifiers:[],params:[],returns:null},{name:"renderRecents",docblock:null,modifiers:[],params:[],returns:null},{name:"renderAddressBook",docblock:null,modifiers:[],params:[],returns:null},{name:"renderMyAccounts",docblock:null,modifiers:[],params:[],returns:null}],displayName:"ContactList",props:{addressBook:{description:"",type:{name:"array"},required:!1},internalAccounts:{description:"",type:{name:"array"},required:!1},searchForContacts:{description:"",type:{name:"func"},required:!1},searchForRecents:{description:"",type:{name:"func"},required:!1},searchForMyAccounts:{description:"",type:{name:"func"},required:!1},selectRecipient:{description:"",type:{name:"func"},required:!1},children:{description:"",type:{name:"node"},required:!1},selectedAddress:{description:"",type:{name:"string"},required:!1}},context:{t:{type:{name:"func"},required:!1}}}},"./ui/pages/confirmations/send/send-content/add-recipient/domain-input.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>domain_input_container});var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),es=__webpack_require__("./node_modules/react-redux/es/index.js"),domains=__webpack_require__("./ui/ducks/domains.js"),selectors=__webpack_require__("./ui/selectors/index.js"),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),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),hex=__webpack_require__("./node_modules/@metamask/utils/dist/hex.mjs"),util=__webpack_require__("./app/scripts/lib/util.ts"),utils_util=__webpack_require__("./ui/helpers/utils/util.js"),hexstring_utils=__webpack_require__("./shared/modules/hexstring-utils.ts"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts");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 DomainInput=function(Component){_inherits(DomainInput,Component);var _super=_create_super(DomainInput);function DomainInput(){var _this;return _class_call_check(this,DomainInput),_this=_super.apply(this,arguments),_define_property(_assert_this_initialized(_this),"onPaste",function(event){var _event_clipboardData_items;if(null===(_event_clipboardData_items=event.clipboardData.items)||void 0===_event_clipboardData_items?void 0:_event_clipboardData_items.length){var clipboardItem=event.clipboardData.items[0];null==clipboardItem||clipboardItem.getAsString(function(text){var input=text.trim();!(0,hexstring_utils.Ex)(input)&&(0,hexstring_utils.Cv)(input,{mixedCaseUseChecksum:!0})&&_this.props.onPaste((0,util.VO)(input))})}}),_define_property(_assert_this_initialized(_this),"onChange",function(param){var value=param.target.value,_this_props=_this.props,onValidAddressTyped=_this_props.onValidAddressTyped,internalSearch=_this_props.internalSearch,onChange=_this_props.onChange,lookupDomainName=_this_props.lookupDomainName,resetDomainResolution=_this_props.resetDomainResolution,input=value.trim();return onChange(input),internalSearch||((0,hex.Lo)(input)?(resetDomainResolution(),onValidAddressTyped&&!(0,hexstring_utils.Ex)(input)&&(0,hexstring_utils.Cv)(input,{mixedCaseUseChecksum:!0})&&onValidAddressTyped((0,util.VO)(input))):lookupDomainName(input)),null}),_this}return _create_class(DomainInput,[{key:"componentDidMount",value:function componentDidMount(){this.props.initializeDomainSlice()}},{key:"render",value:function render(){var _this=this,t=this.context.t,_this_props=this.props,className=_this_props.className,selectedAddress=_this_props.selectedAddress,selectedName=_this_props.selectedName,userInput=_this_props.userInput,useBlockie=_this_props.useBlockie,hasSelectedAddress=!!selectedAddress,shortenedAddress=selectedName&&selectedAddress?(0,utils_util.Wr)((0,hexstring_utils.sX)(selectedAddress)):void 0;return react.createElement("div",{className:classnames_default()("ens-input",className)},react.createElement("div",{className:classnames_default()("ens-input__wrapper",{"ens-input__wrapper__status-icon--error":!1,"ens-input__wrapper__status-icon--valid":!1,"ens-input__wrapper--valid":hasSelectedAddress})},hasSelectedAddress?react.createElement(react.Fragment,null,react.createElement("div",{className:"ens-input__wrapper__input ens-input__wrapper__input--selected","data-testid":"ens-input-selected"},react.createElement(component_library.vs,{variant:useBlockie?component_library.Uj.Blockies:component_library.Uj.Jazzicon,address:selectedAddress,size:design_system.or.MD,borderColor:design_system.i0.backgroundDefault}),react.createElement("div",{className:"ens-input__selected-input__title"},selectedName||selectedAddress,shortenedAddress?react.createElement(component_library.EY,{color:design_system.r7.textAlternative,variant:design_system.J3.bodySm,ellipsis:!0},shortenedAddress):null)),react.createElement(component_library.a2,{iconName:component_library.$M.Close,ariaLabel:t("close"),onClick:this.props.onReset,className:"ens-input__wrapper__action-icon-button",size:component_library.lK.Sm})):react.createElement(react.Fragment,null,react.createElement("input",{className:"ens-input__wrapper__input",type:"text",dir:"auto",placeholder:t("recipientAddressPlaceholderNew"),onChange:this.onChange,onPaste:this.onPaste,spellCheck:"false",value:selectedAddress||userInput,autoFocus:!0,"data-testid":"ens-input"}),react.createElement(component_library.a2,{className:"ens-input__wrapper__action-icon-button",onClick:function(){(null==userInput?void 0:userInput.length)>0?_this.props.onReset():_this.props.scanQrCode()},iconName:userInput?component_library.$M.Close:component_library.$M.Scan,ariaLabel:t(userInput?"close":"scanQrCode"),color:userInput?design_system.Li.iconDefault:design_system.Li.primaryDefault,"data-testid":"ens-qr-scan-button"}))))}}]),DomainInput}(react.Component);function mapStateToProps(state){return{useBlockie:(0,selectors.bNi)(state)}}function mapDispatchToProps(dispatch){return{lookupDomainName:(0,lodash.debounce)(function(domainName){return dispatch((0,domains.g9)(domainName))},150),initializeDomainSlice:function(){return dispatch((0,domains.DG)())},resetDomainResolution:(0,lodash.debounce)(function(){return dispatch((0,domains.Ae)())},300)}}_define_property(DomainInput,"contextTypes",{t:prop_types_default().func,metricsEvent:prop_types_default().func}),_define_property(DomainInput,"propTypes",{className:prop_types_default().string,useBlockie:prop_types_default().bool,selectedAddress:prop_types_default().string,selectedName:prop_types_default().string,scanQrCode:prop_types_default().func,onPaste:prop_types_default().func,onValidAddressTyped:prop_types_default().func,internalSearch:prop_types_default().bool,userInput:prop_types_default().string,onChange:prop_types_default().func.isRequired,onReset:prop_types_default().func.isRequired,lookupDomainName:prop_types_default().func.isRequired,initializeDomainSlice:prop_types_default().func.isRequired,resetDomainResolution:prop_types_default().func.isRequired}),DomainInput.__docgenInfo={description:"",methods:[{name:"onPaste",docblock:null,modifiers:[],params:[{name:"event",optional:!1,type:null}],returns:null},{name:"onChange",docblock:null,modifiers:[],params:[{name:"{ target: { value } }",optional:!1,type:null}],returns:null}],displayName:"DomainInput",props:{className:{description:"",type:{name:"string"},required:!1},useBlockie:{description:"",type:{name:"bool"},required:!1},selectedAddress:{description:"",type:{name:"string"},required:!1},selectedName:{description:"",type:{name:"string"},required:!1},scanQrCode:{description:"",type:{name:"func"},required:!1},onPaste:{description:"",type:{name:"func"},required:!1},onValidAddressTyped:{description:"",type:{name:"func"},required:!1},internalSearch:{description:"",type:{name:"bool"},required:!1},userInput:{description:"",type:{name:"string"},required:!1},onChange:{description:"",type:{name:"func"},required:!0},onReset:{description:"",type:{name:"func"},required:!0},lookupDomainName:{description:"",type:{name:"func"},required:!0},initializeDomainSlice:{description:"",type:{name:"func"},required:!0},resetDomainResolution:{description:"",type:{name:"func"},required:!0}},context:{t:{type:{name:"func"},required:!1},metricsEvent:{type:{name:"func"},required:!1}}};let domain_input_container=(0,es.Ng)(mapStateToProps,mapDispatchToProps)(DomainInput);DomainInput.__docgenInfo={description:"",methods:[{name:"onPaste",docblock:null,modifiers:[],params:[{name:"event",optional:!1,type:null}],returns:null},{name:"onChange",docblock:null,modifiers:[],params:[{name:"{ target: { value } }",optional:!1,type:null}],returns:null}],displayName:"DomainInput",props:{className:{description:"",type:{name:"string"},required:!1},useBlockie:{description:"",type:{name:"bool"},required:!1},selectedAddress:{description:"",type:{name:"string"},required:!1},selectedName:{description:"",type:{name:"string"},required:!1},scanQrCode:{description:"",type:{name:"func"},required:!1},onPaste:{description:"",type:{name:"func"},required:!1},onValidAddressTyped:{description:"",type:{name:"func"},required:!1},internalSearch:{description:"",type:{name:"bool"},required:!1},userInput:{description:"",type:{name:"string"},required:!1},onChange:{description:"",type:{name:"func"},required:!0},onReset:{description:"",type:{name:"func"},required:!0},lookupDomainName:{description:"",type:{name:"func"},required:!0},initializeDomainSlice:{description:"",type:{name:"func"},required:!0},resetDomainResolution:{description:"",type:{name:"func"},required:!0}},context:{t:{type:{name:"func"},required:!1},metricsEvent:{type:{name:"func"},required:!1}}}},"./ui/components/app/contact-list/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{DH:()=>hasDuplicateContacts,WB:()=>isDuplicateContact,i7:()=>buildDuplicateContactMap});var buildDuplicateContactMap=function(addressBook,internalAccounts){var contactMap=new Map(internalAccounts.map(function(account){return[account.metadata.name.trim().toLowerCase(),["account-id-".concat(account.id)]]}));return addressBook.forEach(function(entry){var _contactMap_get,name=entry.name,address=entry.address,sanitizedName=name.trim().toLowerCase(),currentArray=null!==(_contactMap_get=contactMap.get(sanitizedName))&&void 0!==_contactMap_get?_contactMap_get:[];currentArray.push(address),contactMap.set(sanitizedName,currentArray)}),contactMap},hasDuplicateContacts=function(addressBook,internalAccounts){var uniqueContactNames=Array.from(new Set(addressBook.map(function(param){return param.name.toLowerCase().trim()}))),hasAccountNameCollision=internalAccounts.some(function(account){return uniqueContactNames.includes(account.metadata.name.toLowerCase().trim())});return uniqueContactNames.length!==addressBook.length||hasAccountNameCollision},isDuplicateContact=function(addressBook,internalAccounts,newName){var nameExistsInAddressBook=addressBook.some(function(param){return param.name.toLowerCase().trim()===newName.toLowerCase().trim()}),nameExistsInAccountList=internalAccounts.some(function(param){return param.metadata.name.toLowerCase().trim()===newName.toLowerCase().trim()});return nameExistsInAddressBook||nameExistsInAccountList}},"./ui/components/component-library/textarea/textarea.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{T:()=>Textarea});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),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"),___WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/component-library/index.ts"),_textarea_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/components/component-library/textarea/textarea.types.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 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 _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 Textarea=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function(_param,ref){var autoFocus=_param.autoFocus,_param_className=_param.className,defaultValue=_param.defaultValue,isDisabled=_param.isDisabled,disabled=_param.disabled,error=_param.error,id=_param.id,_param_resize=_param.resize,resize=void 0===_param_resize?_textarea_types__WEBPACK_IMPORTED_MODULE_4__.$.Vertical:_param_resize,rows=_param.rows,cols=_param.cols,maxLength=_param.maxLength,name=_param.name,onBlur=_param.onBlur,onChange=_param.onChange,onClick=_param.onClick,onFocus=_param.onFocus,placeholder=_param.placeholder,readOnly=_param.readOnly,required=_param.required,value=_param.value,props=_object_without_properties(_param,["autoFocus","className","defaultValue","isDisabled","disabled","error","id","resize","rows","cols","maxLength","name","onBlur","onChange","onClick","onFocus","placeholder","readOnly","required","value"]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_3__.EY,_object_spread(_object_spread_props(_object_spread({className:classnames__WEBPACK_IMPORTED_MODULE_1___default()("mm-textarea","mm-textarea--resize-".concat(resize),{"mm-textarea--disabled":!!(isDisabled||disabled)},void 0===_param_className?"":_param_className),as:"textarea",ref:ref,placeholder:placeholder,readOnly:readOnly,required:required,autoFocus:autoFocus,defaultValue:defaultValue,disabled:isDisabled||disabled},error&&{"aria-invalid":error}),{id:id,maxLength:maxLength,name:name,value:value,onBlur:function(event){null==onBlur||onBlur(event)},onChange:onChange,onClick:function(event){!onClick||isDisabled&&disabled||null==onClick||onClick(event)},onFocus:function(event){null==onFocus||onFocus(event)},resize:resize,rows:rows,cols:cols,backgroundColor:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.i0.backgroundDefault,borderColor:error?_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.cG.errorDefault:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.cG.borderDefault,borderRadius:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Z6.SM,borderWidth:1,paddingBottom:1,paddingLeft:4,paddingRight:4,paddingTop:1}),props))});try{Textarea.displayName="Textarea",Textarea.__docgenInfo={description:"",displayName:"Textarea",props:{autoFocus:{defaultValue:null,description:"If `true`, the textarea will be focused during the first mount.",name:"autoFocus",required:!1,type:{name:"boolean"}},className:{defaultValue:{value:""},description:"An additional className to apply to the textarea",name:"className",required:!1,type:{name:"string"}},defaultValue:{defaultValue:null,description:"The default textarea value, useful when not controlling the component.",name:"defaultValue",required:!1,type:{name:"string"}},isDisabled:{defaultValue:null,description:"If `true`, the textarea will be disabled.",name:"isDisabled",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"If `true`, the textarea will indicate an error",name:"error",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"The id of the textarea element.",name:"id",required:!1,type:{name:"string"}},maxLength:{defaultValue:null,description:"Max number of characters to allow",name:"maxLength",required:!1,type:{name:"number"}},name:{defaultValue:null,description:"Name attribute of the textarea element.",name:"name",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"Callback fired on blur",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLTextAreaElement>) => void)"}},onChange:{defaultValue:null,description:"Callback fired when the value is changed.",name:"onChange",required:!1,type:{name:"((event: ChangeEvent<HTMLTextAreaElement>) => void)"}},onClick:{defaultValue:null,description:"Callback fired when the Textarea is clicked on",name:"onClick",required:!1,type:{name:"((event: MouseEvent<HTMLTextAreaElement, MouseEvent>) => void)"}},onFocus:{defaultValue:null,description:"Callback fired on focus",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLTextAreaElement>) => void)"}},placeholder:{defaultValue:null,description:"The short hint displayed in the textarea before the user enters a value.",name:"placeholder",required:!1,type:{name:"string"}},readOnly:{defaultValue:null,description:"It prevents the user from changing the value of the field (not from interacting with the field).",name:"readOnly",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"If `true`, the textarea will be required. Currently no visual difference is shown.",name:"required",required:!1,type:{name:"boolean"}},resize:{defaultValue:{value:"TextareaResize.Vertical"},description:"The resize property specifies whether or not an element is resizable by the user.",name:"resize",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"both"'},{value:'"horizontal"'},{value:'"vertical"'},{value:'"initial"'},{value:'"inherit"'}]}},rows:{defaultValue:null,description:"Number of rows to display when multiline option is set to true",name:"rows",required:!1,type:{name:"number"}},cols:{defaultValue:null,description:"Number of columns to display when multiline option is set to true",name:"cols",required:!1,type:{name:"number"}},value:{defaultValue:null,description:"The textarea value, required for a controlled component.",name:"value",required:!1,type:{name:"string | number"}},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:"ElementType<any>"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"any"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/component-library/textarea/textarea.tsx#Textarea"]={docgenInfo:Textarea.__docgenInfo,name:"Textarea",path:"ui/components/component-library/textarea/textarea.tsx#Textarea"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/component-library/textarea/textarea.types.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var TextareaResize;__webpack_require__.d(__webpack_exports__,{$:()=>TextareaResize}),__webpack_require__("./node_modules/react/index.js"),function(TextareaResize){TextareaResize.None="none",TextareaResize.Both="both",TextareaResize.Horizontal="horizontal",TextareaResize.Vertical="vertical",TextareaResize.Initial="initial",TextareaResize.Inherit="inherit"}(TextareaResize||(TextareaResize={}))},"./ui/components/multichain/pages/send/components/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{lE:()=>domain_input_resolution_cell_DomainInputResolutionCell});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"),send_page_row_SendPageRow=function(param){var children=param.children;return React.createElement(Box,{display:Display.Flex,paddingBottom:4,flexDirection:FlexDirection.Column},children)};try{send_page_row_SendPageRow.displayName="SendPageRow",send_page_row_SendPageRow.__docgenInfo={description:"",displayName:"SendPageRow",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/multichain/pages/send/components/send-page-row.tsx#SendPageRow"]={docgenInfo:send_page_row_SendPageRow.__docgenInfo,name:"SendPageRow",path:"ui/components/multichain/pages/send/components/send-page-row.tsx#SendPageRow"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./node_modules/react-redux/es/index.js");var dist=__webpack_require__("./node_modules/@metamask/keyring-api/dist/index.mjs");__webpack_require__("./ui/selectors/index.js"),__webpack_require__("./ui/components/multichain/account-picker/index.js");var i18n=__webpack_require__("./ui/contexts/i18n.js");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}__webpack_require__("./ui/components/multichain/index.js"),__webpack_require__("./ui/ducks/send/index.js"),__webpack_require__("./ui/store/actions.ts"),__webpack_require__("./ui/contexts/metametrics.js"),__webpack_require__("./shared/constants/metametrics.ts");var defaultAllowedAccountTypes=[dist.j0.Eoa,dist.j0.Erc4337],your_accounts_SendPageYourAccounts=function(param){var _param_allowedAccountTypes=param.allowedAccountTypes,allowedAccountTypes=void 0===_param_allowedAccountTypes?defaultAllowedAccountTypes:_param_allowedAccountTypes,dispatch=useDispatch(),trackEvent=useContext(MetaMetricsContext),accounts=useSelector(getUpdatedAndSortedAccounts),filteredAccounts=useMemo(function(){return accounts.filter(function(account){return allowedAccountTypes.includes(account.type)})},[accounts]),selectedAccount=useSelector(getSelectedInternalAccount);return React.createElement(SendPageRow,null,filteredAccounts.map(function(account){return React.createElement(AccountListItem,{account:account,selected:selectedAccount.address===account.address,key:account.address,isPinned:!!account.pinned,shouldScrollToWhenSelected:!1,onClick:function(){dispatch(addHistoryEntry("sendFlow - User clicked recipient from my accounts. address: ".concat(account.address,", nickname ").concat(account.name))),trackEvent({event:MetaMetricsEventName.sendRecipientSelected,category:MetaMetricsEventCategory.Send,properties:{location:"my accounts",inputType:"click"}},{excludeMetaMetricsId:!1}),dispatch(updateRecipient({address:account.address,nickname:account.name})),dispatch(updateRecipientUserInput(account.address))}})}))};try{your_accounts_SendPageYourAccounts.displayName="SendPageYourAccounts",your_accounts_SendPageYourAccounts.__docgenInfo={description:"",displayName:"SendPageYourAccounts",props:{allowedAccountTypes:{defaultValue:{value:"[EthAccountType.Eoa, EthAccountType.Erc4337]"},description:"",name:"allowedAccountTypes",required:!1,type:{name:"KeyringAccountType[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/multichain/pages/send/components/your-accounts.tsx#SendPageYourAccounts"]={docgenInfo:your_accounts_SendPageYourAccounts.__docgenInfo,name:"SendPageYourAccounts",path:"ui/components/multichain/pages/send/components/your-accounts.tsx#SendPageYourAccounts"})}catch(__react_docgen_typescript_loader_error){}function address_book_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}__webpack_require__("./ui/pages/confirmations/send/send-content/add-recipient/domain-input.js"),__webpack_require__("./ui/helpers/utils/util.js"),__webpack_require__("./shared/modules/hexstring-utils.ts");__webpack_require__("./node_modules/fuse.js/dist/fuse.js"),__webpack_require__("./ui/components/app/contact-list/index.js"),__webpack_require__("./ui/helpers/constants/routes.ts"),__webpack_require__("./ui/ducks/domains.js"),__webpack_require__("./ui/components/ui/tabs/index.js");var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),confusable=__webpack_require__("./ui/components/ui/confusable/index.js"),send_utils=__webpack_require__("./ui/pages/confirmations/send/send.utils.js"),tooltip=__webpack_require__("./ui/components/ui/tooltip/index.js");function domain_input_resolution_cell_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 domain_input_resolution_cell_array_with_holes(arr){if(Array.isArray(arr))return arr}function domain_input_resolution_cell_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 domain_input_resolution_cell_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 domain_input_resolution_cell_sliced_to_array(arr,i){return domain_input_resolution_cell_array_with_holes(arr)||domain_input_resolution_cell_iterable_to_array_limit(arr,i)||domain_input_resolution_cell_unsupported_iterable_to_array(arr,i)||domain_input_resolution_cell_non_iterable_rest()}function domain_input_resolution_cell_unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return domain_input_resolution_cell_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 domain_input_resolution_cell_array_like_to_array(o,minLen)}}var domain_input_resolution_cell_DomainInputResolutionCell=function(param){var address=param.address,domainName=param.domainName,_param_resolvingSnap=param.resolvingSnap,onClick=param.onClick,protocol=param.protocol,t=(0,react.useContext)(i18n.gJ),titleRef=(0,react.useRef)(null),breakpointRef=(0,react.useRef)(null),_useState=domain_input_resolution_cell_sliced_to_array((0,react.useState)(!1),2),isTitleOverflowing=_useState[0],setIsTitleOverflowing=_useState[1];return(0,react.useEffect)(function(){if(titleRef.current){var _titleRef_current_textContent,isOverflowing=titleRef.current.offsetWidth<titleRef.current.scrollWidth,breakpointLength=null===(_titleRef_current_textContent=titleRef.current.textContent)||void 0===_titleRef_current_textContent?void 0:_titleRef_current_textContent.length;isOverflowing&&!breakpointRef.current&&breakpointLength&&(breakpointRef.current=breakpointLength),!isOverflowing&&breakpointRef.current&&(domainName.length>=breakpointRef.current?isOverflowing=!0:(isOverflowing=!1,breakpointRef.current=null)),isOverflowing!==isTitleOverflowing&&setIsTitleOverflowing(isOverflowing)}},[domainName,isTitleOverflowing]),react.createElement(component_library.az,{key:address,className:"multichain-send-page__recipient__item",onClick:function(){return onClick()},display:design_system.nl.Flex,alignItems:design_system.k2.center,paddingBottom:2,style:{cursor:"pointer"},"data-testid":"multichain-send-page__recipient__item"},react.createElement(tooltip.A,{title:t("suggestedBySnap",[void 0===_param_resolvingSnap?"":_param_resolvingSnap])},react.createElement(component_library.ph,{badge:react.createElement(component_library.hS,{iconName:component_library.$M.Snaps,size:component_library.OQ.Xs,className:"multichain-send-page__recipient__item__avatar",backgroundColor:design_system.i0.infoDefault,borderColor:design_system.cG.backgroundDefault,borderWidth:2,iconProps:{color:design_system.Li.infoInverse,style:{width:"12px",height:"12px"},name:component_library.$M.Snaps}}),positionObj:{bottom:"25%",right:"10%"},badgeContainerProps:{className:"multichain-send-page__recipient__item__badge"}},react.createElement(component_library.vs,{address:address}))),react.createElement(component_library.az,{className:"multichain-send-page__recipient__item__content",paddingLeft:4,style:{overflow:"hidden"}},react.createElement(component_library.az,{ref:titleRef,className:"multichain-send-page__recipient__item__title","data-testid":"multichain-send-page__recipient__item__title",display:design_system.nl.Flex},isTitleOverflowing?react.createElement(function(){return react.createElement(tooltip.A,{containerClassName:"multichain-send-page__recipient__item__title-tooltip",wrapperClassName:"multichain-send-page__recipient__item__title-tooltip-container",position:"bottom",title:domainName},react.createElement(confusable.A,{asText:!0,input:domainName,confusableWrapperName:"multichain-send-page__recipient__item__title-confusable-wrapper"}))},null):react.createElement(confusable.A,{asText:!0,input:domainName})),react.createElement(component_library.EY,{color:design_system.r7.textAlternative},(0,send_utils.qq)(address)),react.createElement(component_library.az,{className:"multichain-send-page__recipient__item__subtitle","data-testid":"multichain-send-page__recipient__item__subtitle"},react.createElement(component_library.EY,{color:design_system.r7.textAlternative,variant:design_system.J3.bodySm},protocol))))};domain_input_resolution_cell_DomainInputResolutionCell.propTypes={address:prop_types_default().string.isRequired,domainName:prop_types_default().string.isRequired,resolvingSnap:prop_types_default().string.isRequired,onClick:prop_types_default().func,protocol:prop_types_default().string};try{domain_input_resolution_cell_DomainInputResolutionCell.displayName="DomainInputResolutionCell",domain_input_resolution_cell_DomainInputResolutionCell.__docgenInfo={description:"",displayName:"DomainInputResolutionCell",props:{address:{defaultValue:null,description:"",name:"address",required:!0,type:{name:"string"}},protocol:{defaultValue:null,description:"",name:"protocol",required:!1,type:{name:"string"}},domainName:{defaultValue:null,description:"",name:"domainName",required:!0,type:{name:"string"}},resolvingSnap:{defaultValue:{value:""},description:"",name:"resolvingSnap",required:!1,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/multichain/pages/send/components/domain-input-resolution-cell.tsx#DomainInputResolutionCell"]={docgenInfo:domain_input_resolution_cell_DomainInputResolutionCell.__docgenInfo,name:"DomainInputResolutionCell",path:"ui/components/multichain/pages/send/components/domain-input-resolution-cell.tsx#DomainInputResolutionCell"})}catch(__react_docgen_typescript_loader_error){}__webpack_require__("./ui/ducks/metamask/metamask.js"),__webpack_require__("./shared/constants/transaction.ts"),__webpack_require__("./ui/helpers/constants/common.ts"),__webpack_require__("./ui/hooks/useI18nContext.js"),__webpack_require__("./shared/modules/conversion.utils.ts"),__webpack_require__("./ui/hooks/useGetAssetImageUrl.ts"),__webpack_require__("./ui/components/multichain/asset-picker-amount/asset-picker-modal/asset-picker-modal-tabs.tsx");var SendPageRecipientContent=function(param){var _sendAsset_details,_sendAsset_details_address,_sendAsset_details1,_receiveAsset_details,_sendAsset_details2,_tokenList_sendAsset_details_address_toLowerCase,_sendAsset_details_address1,_sendAsset_details3,_sendAsset_details_image,_receiveAsset_details_address,_sendAsset_details_address2,requireContractAddressAcknowledgement=param.requireContractAddressAcknowledgement,onAssetChange=param.onAssetChange,onClick=param.onClick,t=useI18nContext(),_useSelector=useSelector(getCurrentDraftTransaction),receiveAsset=_useSelector.receiveAsset,sendAsset=_useSelector.sendAsset,sendAmount=_useSelector.amount,isSwapQuoteLoading=_useSelector.isSwapQuoteLoading,isBasicFunctionality=useSelector(getUseExternalServices),isSwapsChain=useSelector(getIsSwapsChain),isSwapAndSendDisabledForNetwork=useSelector(getIsSwapAndSendDisabledForNetwork),swapsBlockedTokens=useSelector(getSwapsBlockedTokens),memoizedSwapsBlockedTokens=useMemo(function(){return new Set(swapsBlockedTokens)},[swapsBlockedTokens]),nativeCurrencySymbol=useSelector(getNativeCurrency),nativeCurrencyImageUrl=useSelector(getNativeCurrencyImage),tokenList=useSelector(getTokenList),ipfsGateway=useSelector(getIpfsGateway),nftImageURL=useGetAssetImageUrl(null!==(_sendAsset_details_image=null===(_sendAsset_details=sendAsset.details)||void 0===_sendAsset_details?void 0:_sendAsset_details.image)&&void 0!==_sendAsset_details_image?_sendAsset_details_image:void 0,ipfsGateway),isSwapAllowed=isSwapsChain&&!isSwapAndSendDisabledForNetwork&&[AssetType.token,AssetType.native].includes(sendAsset.type)&&isBasicFunctionality&&!memoizedSwapsBlockedTokens.has(null===(_sendAsset_details1=sendAsset.details)||void 0===_sendAsset_details1?void 0:null===(_sendAsset_details_address=_sendAsset_details1.address)||void 0===_sendAsset_details_address?void 0:_sendAsset_details_address.toLowerCase()),bestQuote=useSelector(getBestQuote),isLoadingInitialQuotes=!bestQuote&&isSwapQuoteLoading,isBasicSend=isEqualCaseInsensitive(null!==(_receiveAsset_details_address=null===(_receiveAsset_details=receiveAsset.details)||void 0===_receiveAsset_details?void 0:_receiveAsset_details.address)&&void 0!==_receiveAsset_details_address?_receiveAsset_details_address:"",null!==(_sendAsset_details_address2=null===(_sendAsset_details2=sendAsset.details)||void 0===_sendAsset_details2?void 0:_sendAsset_details2.address)&&void 0!==_sendAsset_details_address2?_sendAsset_details_address2:""),amount=isBasicSend?sendAmount:{value:decimalToHex((null==bestQuote?void 0:bestQuote.destinationAmount)||"0")},showHexDataFlag=useSelector(getSendHexDataFeatureFlagState),asset=useSelector(getSendAsset),showHexData=isBasicSend&&showHexDataFlag&&asset&&asset.type!==AssetType.token&&asset.type!==AssetType.NFT,scrollRef=useRef(null),dispatch=useDispatch();return React.createElement(Box,null,requireContractAddressAcknowledgement?React.createElement(SendPageRow,null,React.createElement(BannerAlert,{severity:BannerAlertSeverity.Danger,"data-testid":"send-warning",actionButtonLabel:t("tooltipApproveButton"),actionButtonOnClick:function(){dispatch(acknowledgeRecipientWarning())},actionButtonProps:{display:Display.Block,marginTop:4}},t("sendingToTokenContractWarning",[React.createElement("a",{key:"contractWarningSupport",target:"_blank",rel:"noopener noreferrer",className:"send__warning-container__link",href:CONTRACT_ADDRESS_LINK},t("learnMoreUpperCase"))]))):null,React.createElement(SendPageRow,null,React.createElement(AssetPickerAmount,{header:t("sendSelectReceiveAsset"),action:"receive",asset:isSwapAllowed?receiveAsset:sendAsset,sendingAsset:isSwapAllowed&&sendAsset&&{image:sendAsset.type===AssetType.native?nativeCurrencyImageUrl:tokenList&&sendAsset.details&&(nftImageURL||(null===(_tokenList_sendAsset_details_address_toLowerCase=tokenList[null===(_sendAsset_details_address1=sendAsset.details.address)||void 0===_sendAsset_details_address1?void 0:_sendAsset_details_address1.toLowerCase()])||void 0===_tokenList_sendAsset_details_address_toLowerCase?void 0:_tokenList_sendAsset_details_address_toLowerCase.iconUrl)),symbol:(null==sendAsset?void 0:null===(_sendAsset_details3=sendAsset.details)||void 0===_sendAsset_details3?void 0:_sendAsset_details3.symbol)||nativeCurrencySymbol},onAssetChange:useCallback(function(newAsset){return onAssetChange(newAsset,isSwapAllowed)},[onAssetChange,isSwapAllowed]),isAmountLoading:isLoadingInitialQuotes,amount:amount,isDisabled:!isSwapAllowed,onClick:onClick,visibleTabs:[TabName.TOKENS]})),React.createElement(QuoteCard,{scrollRef:scrollRef}),showHexData?React.createElement(SendHexData,null):null,React.createElement("div",{ref:scrollRef}))};try{SendPageRecipientContent.displayName="SendPageRecipientContent",SendPageRecipientContent.__docgenInfo={description:"",displayName:"SendPageRecipientContent",props:{requireContractAddressAcknowledgement:{defaultValue:null,description:"",name:"requireContractAddressAcknowledgement",required:!0,type:{name:"boolean"}},onAssetChange:{defaultValue:null,description:"",name:"onAssetChange",required:!0,type:{name:"(newAsset: Asset, isReceived: boolean) => void"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => (() => void) | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/multichain/pages/send/components/recipient-content.tsx#SendPageRecipientContent"]={docgenInfo:SendPageRecipientContent.__docgenInfo,name:"SendPageRecipientContent",path:"ui/components/multichain/pages/send/components/recipient-content.tsx#SendPageRecipientContent"})}catch(__react_docgen_typescript_loader_error){}function useEthFeeData_useEthFeeData(){var gasLimit=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,dispatch=useDispatch(),nativeCurrencySymbol=useSelector(getNativeCurrency),selectedNativeConversionRate=useSelector(getConversionRate),currentCurrency=useSelector(getCurrentCurrency),networkAndAccountSupports1559=useSelector(checkNetworkAndAccountSupports1559),_useSelector=useSelector(getGasFeeEstimates),medium=_useSelector.medium,maybeGasFee=_useSelector.gasPrice,gasFee1559=null!=maybeGasFee?maybeGasFee:null==medium?void 0:medium.suggestedMaxFeePerGas,chainId=useSelector(getCurrentChainId),isSwapsChain=useSelector(getIsSwapsChain),gasPriceNon1559=useSelector(getUsedSwapsGasPrice);return useEffect(function(){isSwapsChain&&(networkAndAccountSupports1559||dispatch(fetchAndSetSwapsGasPriceInfo()))},[dispatch,chainId,networkAndAccountSupports1559,isSwapsChain]),useMemo(function(){var rawGasPrice=networkAndAccountSupports1559?gasFee1559:gasPriceNon1559;if(!rawGasPrice)return{formattedFiatGasFee:"",formattedEthGasFee:""};var ethGasFee=new Numeric(rawGasPrice,isHexString(rawGasPrice)?16:10,EtherDenomination.GWEI).times(new Numeric(gasLimit,10)).toDenomination(EtherDenomination.ETH),fiatGasFee=selectedNativeConversionRate?ethGasFee.applyConversionRate(selectedNativeConversionRate).toNumber():void 0;return{formattedFiatGasFee:fiatGasFee?formatCurrency(new Numeric(fiatGasFee,10).toString(),currentCurrency):"",formattedEthGasFee:"".concat(toFixedNoTrailingZeros(ethGasFee.toNumber())," ").concat(nativeCurrencySymbol)}},[networkAndAccountSupports1559,null==medium?void 0:medium.suggestedMaxFeePerGas,gasPriceNon1559,gasLimit,selectedNativeConversionRate,currentCurrency,nativeCurrencySymbol])}__webpack_require__("./ui/components/component-library/textarea/textarea.tsx"),__webpack_require__("./ui/components/component-library/textarea/textarea.types.ts"),__webpack_require__("./shared/constants/time.ts"),__webpack_require__("./ui/components/ui/info-tooltip/info-tooltip-icon.js"),__webpack_require__("./shared/lib/ui-utils.js"),__webpack_require__("./shared/modules/Numeric.ts"),__webpack_require__("./shared/constants/common.ts"),__webpack_require__("./ui/selectors/selectors.js"),__webpack_require__("./shared/modules/selectors/networks.ts"),__webpack_require__("./ui/ducks/swaps/swaps.js"),__webpack_require__("./ui/helpers/utils/confirm-tx.util.ts");try{useEthFeeData_useEthFeeData.displayName="useEthFeeData",useEthFeeData_useEthFeeData.__docgenInfo={description:"",displayName:"useEthFeeData",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/multichain/pages/send/components/quote-card/hooks/useEthFeeData.tsx#useEthFeeData"]={docgenInfo:useEthFeeData_useEthFeeData.__docgenInfo,name:"useEthFeeData",path:"ui/components/multichain/pages/send/components/quote-card/hooks/useEthFeeData.tsx#useEthFeeData"})}catch(__react_docgen_typescript_loader_error){}function quote_card_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 quote_card_array_with_holes(arr){if(Array.isArray(arr))return arr}function quote_card_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 quote_card_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 quote_card_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 quote_card_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){quote_card_define_property(target,key,source[key])})}return target}function quote_card_sliced_to_array(arr,i){return quote_card_array_with_holes(arr)||quote_card_iterable_to_array_limit(arr,i)||quote_card_unsupported_iterable_to_array(arr,i)||quote_card_non_iterable_rest()}function quote_card_unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return quote_card_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 quote_card_array_like_to_array(o,minLen)}}function quote_card_QuoteCard(param){var _bestQuote_approvalNeeded,scrollRef=param.scrollRef,t=useI18nContext(),dispatch=useDispatch(),sendAnalytics=useSelector(getSendAnalyticProperties),translatedNetworkName=useTranslatedNetworkName(),trackEvent=useContext(MetaMetricsContext),isSwapQuoteLoading=useSelector(getCurrentDraftTransaction).isSwapQuoteLoading,bestQuote=useSelector(getBestQuote),_useState=quote_card_sliced_to_array(useState(void 0),2),timeLeft=_useState[0],setTimeLeft=_useState[1],_useEthFeeData=useEthFeeData(((null==bestQuote?void 0:bestQuote.gasParams.maxGas)||0)+Number(hexToDecimal((null==bestQuote?void 0:null===(_bestQuote_approvalNeeded=bestQuote.approvalNeeded)||void 0===_bestQuote_approvalNeeded?void 0:_bestQuote_approvalNeeded.gas)||"0x0"))),formattedEthGasFee=_useEthFeeData.formattedEthGasFee,formattedFiatGasFee=_useEthFeeData.formattedFiatGasFee,formattedConversionRate=useGetConversionRate(),prevBestQuote=useRef(bestQuote);useEffect(function(){var _scrollRef_current,isQuoteJustLoaded=bestQuote&&void 0===prevBestQuote.current;prevBestQuote.current=bestQuote,isQuoteJustLoaded&&(null===(_scrollRef_current=scrollRef.current)||void 0===_scrollRef_current||_scrollRef_current.scrollIntoView({behavior:"smooth",block:"start"})),bestQuote?(trackEvent({event:MetaMetricsEventName.sendSwapQuoteReceived,category:MetaMetricsEventCategory.Send,properties:{is_first_fetch:isQuoteJustLoaded},sensitiveProperties:quote_card_object_spread({},sendAnalytics)},{excludeMetaMetricsId:!1}),setTimeLeft(30)):setTimeLeft(void 0)},[bestQuote]),useEffect(function(){if(!isSwapQuoteLoading&&void 0!==timeLeft){timeLeft<=0&&dispatch(updateSendQuote(!1,!0));var timeout=setTimeout(function(){return setTimeLeft(timeLeft-1)},SECOND);return function(){return clearTimeout(timeout)}}},[timeLeft]),useEffect(function(){isSwapQuoteLoading?trackEvent({event:MetaMetricsEventName.sendSwapQuoteRequested,category:MetaMetricsEventCategory.Send,sensitiveProperties:quote_card_object_spread({},sendAnalytics)},{excludeMetaMetricsId:!1}):bestQuote&&trackEvent({event:MetaMetricsEventName.sendSwapQuoteReceived,category:MetaMetricsEventCategory.Send,sensitiveProperties:quote_card_object_spread({},sendAnalytics)},{excludeMetaMetricsId:!1})},[isSwapQuoteLoading]);var infoText=useMemo(function(){if(isSwapQuoteLoading)return t("swapFetchingQuotes");if(bestQuote){var timeLeftFormatted="0".concat(timeLeft).slice(-2);return timeLeft?t("swapNewQuoteIn",["0:".concat(timeLeftFormatted)]):void 0}},[isSwapQuoteLoading,bestQuote,timeLeft]);return infoText||bestQuote?React.createElement(Box,{display:Display.Flex,flexDirection:FlexDirection.Column,alignItems:AlignItems.flexStart,gap:2},infoText&&React.createElement(Text,{color:TextColor.textAlternative,variant:TextVariant.bodySm,className:"quote-card__fetch-status"},infoText),bestQuote&&React.createElement(Box,{backgroundColor:BackgroundColor.backgroundAlternative,borderRadius:BorderRadius.LG,width:BlockSize.Full,gap:2,padding:3},React.createElement(Box,{display:Display.Flex,alignItems:AlignItems.center},React.createElement(Text,{className:"quote-card__text",color:TextColor.textAlternative,marginRight:"auto",variant:TextVariant.bodySm},t("quoteRate")),React.createElement(Text,{marginLeft:"auto",variant:TextVariant.bodySm,"data-testid":"quote-card__conversion-rate"},formattedConversionRate)),React.createElement(Box,{display:Display.Flex,alignItems:AlignItems.center},React.createElement(Box,{display:Display.Flex,marginRight:"auto",gap:1,alignItems:AlignItems.center},React.createElement(Text,{variant:TextVariant.bodySm,color:TextColor.textAlternative},t("transactionDetailGasHeading")),React.createElement(Tooltip,{interactive:!0,position:"left",containerClassName:"info-tooltip__tooltip-container",tooltipInnerClassName:"info-tooltip__tooltip-content",tooltipArrowClassName:"info-tooltip__left-tooltip-arrow",style:{display:"flex",height:"12px",aspectRatio:"1"},html:React.createElement(React.Fragment,null,React.createElement("p",null,t("swapGasFeesSummary",[translatedNetworkName])),React.createElement("p",null,t("swapGasFeesDetails")),React.createElement("p",null,React.createElement("a",{onClick:function(){trackEvent({event:'Clicked "Gas Fees: Learn More" Link',category:MetaMetricsEventCategory.Swaps}),__webpack_require__.g.platform.openTab({url:GAS_FEES_LEARN_MORE_URL})},target:"_blank",rel:"noreferrer"},t("swapGasFeesLearnMore")))),theme:"tippy-tooltip-info"},React.createElement(InfoTooltipIcon,{fillColor:"var(--color-icon-alternative)"}))),React.createElement(Box,{display:Display.Flex,marginLeft:"auto"},React.createElement(Text,{variant:TextVariant.bodySm,"data-testid":"quote-card__gas-fee"},formattedEthGasFee),formattedFiatGasFee&&React.createElement(Text,{color:TextColor.textAlternative,variant:TextVariant.bodySm,marginLeft:1,"data-testid":"quote-card__fiat-gas-fee"},"≈ ",formattedFiatGasFee)))),bestQuote&&React.createElement(Text,{color:TextColor.textAlternative,variant:TextVariant.bodySm},t("swapIncludesMMFeeAlt",[null==bestQuote?void 0:bestQuote.fee])),bestQuote&&React.createElement(ButtonLink,{variant:TextVariant.bodySm,href:CONSENSYS_TERMS_OF_USE,target:"_blank",className:"quote-card__TOS"},t("termsOfService")),React.createElement("div",{ref:scrollRef})):null}__webpack_require__("./shared/constants/network.ts"),__webpack_require__("./shared/lib/transactions-controller-utils.js");try{quote_card_QuoteCard.displayName="QuoteCard",quote_card_QuoteCard.__docgenInfo={description:"All the info about the current quote; handles polling and displaying the best quote",displayName:"QuoteCard",props:{scrollRef:{defaultValue:null,description:"",name:"scrollRef",required:!0,type:{name:"RefObject<HTMLDivElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/multichain/pages/send/components/quote-card/index.tsx#QuoteCard"]={docgenInfo:quote_card_QuoteCard.__docgenInfo,name:"QuoteCard",path:"ui/components/multichain/pages/send/components/quote-card/index.tsx#QuoteCard"})}catch(__react_docgen_typescript_loader_error){}}}]);