-
Notifications
You must be signed in to change notification settings - Fork 31
/
44061.a1f312e8.iframe.bundle.js
1 lines (1 loc) · 24.9 KB
/
44061.a1f312e8.iframe.bundle.js
1
"use strict";(globalThis.webpackChunkmetamask_crx=globalThis.webpackChunkmetamask_crx||[]).push([[44061],{"./ui/components/ui/button/button.component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});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__),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__);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}var CLASSNAME_DEFAULT="btn-default",typeHash={default:CLASSNAME_DEFAULT,primary:"btn-primary",secondary:"btn-secondary",warning:"btn-warning",danger:"btn-danger","danger-primary":"btn-danger-primary",link:"btn-link",inline:"btn--inline",raised:"btn-raised"},Button=function(_param){var _onKeyUp,_role,_tabIndex,type=_param.type,_param_submit=_param.submit,large=_param.large,children=_param.children,icon=_param.icon,className=_param.className,_param_rounded=_param.rounded,buttonProps=_object_without_properties(_param,["type","submit","large","children","icon","className","rounded"]),Tag="button";return"link"===type?Tag="a":void 0!==_param_submit&&_param_submit&&(buttonProps.type="submit"),"link"===type&&"function"==typeof buttonProps.onClick&&(null!==(_onKeyUp=buttonProps.onKeyUp)&&void 0!==_onKeyUp||(buttonProps.onKeyUp=function(event){"Enter"===event.key&&buttonProps.onClick()}),null!==(_role=buttonProps.role)&&void 0!==_role||(buttonProps.role="button"),null!==(_tabIndex=buttonProps.tabIndex)&&void 0!==_tabIndex||(buttonProps.tabIndex=0)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tag,_object_spread({className:classnames__WEBPACK_IMPORTED_MODULE_1___default()("button",(void 0===_param_rounded||_param_rounded)&&"link"!==type&&"inline"!==type&&"btn--rounded",typeHash[type]||CLASSNAME_DEFAULT,large&&"btn--large",className)},buttonProps),icon?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"button__icon"},icon):null,children)};Button.propTypes={type:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,submit:prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool,large:prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool,className:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().node,icon:prop_types__WEBPACK_IMPORTED_MODULE_2___default().node,rounded:prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool};let __WEBPACK_DEFAULT_EXPORT__=Button;Button.__docgenInfo={description:"@deprecated The <Button /> component has been deprecated in favor of the new <Button> component from the component-library.\nPlease update your code to use the new <Button> component instead, which can be found at ./ui/components/component-library/button/button.js.\nYou can find documentation for the new Button component in the MetaMask Storybook:\n{@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-button--default-story#button}\nIf you would like to help with the replacement of the old Button component, please submit a pull request against this GitHub issue:\n{@link https://github.com/MetaMask/metamask-extension/issues/18896}\n@see {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-button--default-story#button}",methods:[],displayName:"Button",props:{submit:{defaultValue:{value:"false",computed:!1},description:"If true sets the html 'type' attribute to type=\"submit\"",type:{name:"bool"},required:!1},rounded:{defaultValue:{value:"true",computed:!1},description:"Buttons are rounded by default.",type:{name:"bool"},required:!1},type:{description:"The type of variation a button can be.\nCan be one of 'default','primary','secondary','warning','danger','danger-primary' or 'link'",type:{name:"string"},required:!1},large:{description:"Increase the height of the button to 54px",type:{name:"bool"},required:!1},className:{description:"Additional className to provide on the root element of the button",type:{name:"string"},required:!1},children:{description:"The children of the button component",type:{name:"node"},required:!1},icon:{description:"Provide an icon component for an icon to appear on the left side of the button",type:{name:"node"},required:!1}}}},"./ui/components/ui/button/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _button_component__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./ui/components/ui/button/button.component.js");let __WEBPACK_DEFAULT_EXPORT__=_button_component__WEBPACK_IMPORTED_MODULE_0__.A;_button_component__WEBPACK_IMPORTED_MODULE_0__.A.__docgenInfo={description:"@deprecated The <Button /> component has been deprecated in favor of the new <Button> component from the component-library.\nPlease update your code to use the new <Button> component instead, which can be found at ./ui/components/component-library/button/button.js.\nYou can find documentation for the new Button component in the MetaMask Storybook:\n{@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-button--default-story#button}\nIf you would like to help with the replacement of the old Button component, please submit a pull request against this GitHub issue:\n{@link https://github.com/MetaMask/metamask-extension/issues/18896}\n@see {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-button--default-story#button}",methods:[],displayName:"Button",props:{submit:{defaultValue:{value:"false",computed:!1},description:"If true sets the html 'type' attribute to type=\"submit\"",type:{name:"bool"},required:!1},rounded:{defaultValue:{value:"true",computed:!1},description:"Buttons are rounded by default.",type:{name:"bool"},required:!1},type:{description:"The type of variation a button can be.\nCan be one of 'default','primary','secondary','warning','danger','danger-primary' or 'link'",type:{name:"string"},required:!1},large:{description:"Increase the height of the button to 54px",type:{name:"bool"},required:!1},className:{description:"Additional className to provide on the root element of the button",type:{name:"string"},required:!1},children:{description:"The children of the button component",type:{name:"node"},required:!1},icon:{description:"Provide an icon component for an icon to appear on the left side of the button",type:{name:"node"},required:!1}}}},"./ui/components/ui/popover/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>_popover_component__WEBPACK_IMPORTED_MODULE_0__.A});var _popover_component__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./ui/components/ui/popover/popover.component.js")},"./ui/components/ui/text-field/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>text_field});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),withStyles=__webpack_require__("./node_modules/@material-ui/core/esm/styles/withStyles.js"),TextField=__webpack_require__("./node_modules/@material-ui/core/esm/TextField/TextField.js");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 inputLabelBase={transform:"none",transition:"none",position:"initial",color:"var(--color-text-default)"},fontFamily='"Euclid Circular B", Helvetica, Arial, sans-serif',styles={materialLabel:{"&$materialFocused":{color:"var(--color-text-alternative)"},"&$materialError":{color:"var(--color-text-alternative)"},fontWeight:"400",color:"var(--color-text-alternative)"},materialFocused:{},materialUnderline:{"&:before":{borderBottom:"1px solid var(--color-text-default) !important"},"&:after":{borderBottom:"2px solid var(--color-primary-default)"}},materialError:{},materialWhitePaddedRoot:{color:"var(--color-text-alternative)"},materialWhitePaddedInput:{padding:"8px","&::placeholder":{color:"var(--color-text-alternative)"}},materialWhitePaddedFocused:{color:"var(--color-background-default)"},materialWhitePaddedUnderline:{"&:after":{borderBottom:"2px solid var(--color-background-default)"}},formLabel:{fontFamily:fontFamily,"&$formLabelFocused":{color:"var(--color-text-alternative)"},"&$materialError":{color:"var(--color-text-alternative)"}},formLabelFocused:{},inputFocused:{},inputRoot:{fontFamily:fontFamily,"label + &":{marginTop:"9px"},backgroundColor:"var(--color-background-default)",border:"1px solid var(--color-border-default)",color:"var(--color-text-default)",height:"48px",padding:"0 16px",display:"flex",alignItems:"center","&$inputFocused":{border:"1px solid var(--color-primary-default)"},borderRadius:"8px",fontSize:"0.875rem"},largeInputLabel:_object_spread_props(_object_spread({},inputLabelBase),{fontSize:"1rem"}),inputLabel:_object_spread_props(_object_spread({},inputLabelBase),{fontSize:".75rem"}),inputMultiline:{lineHeight:"initial !important"}},themeToInputProps={material:function(param){var dir=param.dir,_param_classes=param.classes,materialLabel=_param_classes.materialLabel,materialFocused=_param_classes.materialFocused,materialError=_param_classes.materialError,materialUnderline=_param_classes.materialUnderline;return{InputLabelProps:{classes:{root:materialLabel,focused:materialFocused,error:materialError}},InputProps:{startAdornment:param.startAdornment,endAdornment:param.endAdornment,classes:{underline:materialUnderline},inputProps:{dir:dir,min:param.min,max:param.max,autoComplete:param.autoComplete}}}},bordered:function(param){var dir=param.dir,_param_classes=param.classes,formLabel=_param_classes.formLabel,formLabelFocused=_param_classes.formLabelFocused,materialError=_param_classes.materialError,largeInputLabel=_param_classes.largeInputLabel,inputLabel=_param_classes.inputLabel,inputRoot=_param_classes.inputRoot,input=_param_classes.input,inputFocused=_param_classes.inputFocused;return{InputLabelProps:{shrink:!0,className:param.largeLabel?largeInputLabel:inputLabel,classes:{root:formLabel,focused:formLabelFocused,error:materialError}},InputProps:{startAdornment:param.startAdornment,endAdornment:param.endAdornment,classes:{root:inputRoot,input:input,focused:inputFocused},inputProps:{dir:dir,min:param.min,max:param.max,autoComplete:param.autoComplete},disableUnderline:"true"}}},"material-white-padded":function(param){var dir=param.dir,_param_classes=param.classes,materialWhitePaddedRoot=_param_classes.materialWhitePaddedRoot,materialWhitePaddedFocused=_param_classes.materialWhitePaddedFocused,materialWhitePaddedInput=_param_classes.materialWhitePaddedInput,materialWhitePaddedUnderline=_param_classes.materialWhitePaddedUnderline;return{InputProps:{startAdornment:param.startAdornment,endAdornment:param.endAdornment,classes:{root:materialWhitePaddedRoot,focused:materialWhitePaddedFocused,input:materialWhitePaddedInput,underline:materialWhitePaddedUnderline},inputProps:{dir:dir,min:param.min,max:param.max,autoComplete:param.autoComplete}}}}},text_field_component_TextField=function(_param){var dataTestId=_param["data-testid"],error=_param.error,classes=_param.classes,theme=_param.theme,startAdornment=_param.startAdornment,endAdornment=_param.endAdornment,largeLabel=_param.largeLabel,dir=_param.dir,min=_param.min,max=_param.max,autoComplete=_param.autoComplete,onPaste=_param.onPaste,textFieldProps=_object_without_properties(_param,["data-testid","error","classes","theme","startAdornment","endAdornment","largeLabel","dir","min","max","autoComplete","onPaste"]),inputProps=themeToInputProps[theme]({classes:classes,startAdornment:startAdornment,endAdornment:endAdornment,largeLabel:largeLabel,dir:dir,min:min,max:max,autoComplete:autoComplete});return(onPaste||dataTestId)&&(inputProps.InputProps||(inputProps.InputProps={}),inputProps.InputProps.inputProps||(inputProps.InputProps.inputProps={}),inputProps.InputProps.inputProps.onPaste=onPaste,inputProps.InputProps.inputProps["data-testid"]=dataTestId),react.createElement(TextField.A,_object_spread({error:!!error,helperText:error},inputProps,textFieldProps))};text_field_component_TextField.defaultProps={error:null,dir:"auto",theme:"bordered"},text_field_component_TextField.propTypes={"data-testid":prop_types_default().string,error:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]),classes:prop_types_default().object,dir:prop_types_default().string,theme:prop_types_default().oneOf(["bordered","material","material-white-padded"]),startAdornment:prop_types_default().element,endAdornment:prop_types_default().element,largeLabel:prop_types_default().bool,min:prop_types_default().number,max:prop_types_default().number,autoComplete:prop_types_default().string,onPaste:prop_types_default().func};let text_field_component=(0,withStyles.A)(styles)(text_field_component_TextField);text_field_component_TextField.__docgenInfo={description:"",methods:[],displayName:"TextField",props:{error:{defaultValue:{value:"null",computed:!1},description:"Show error message",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},dir:{defaultValue:{value:"'auto'",computed:!1},description:"",type:{name:"string"},required:!1},theme:{defaultValue:{value:"'bordered'",computed:!1},description:"Give theme to the text field",type:{name:"enum",value:[{value:"'bordered'",computed:!1},{value:"'material'",computed:!1},{value:"'material-white-padded'",computed:!1}]},required:!1},"data-testid":{description:"A test ID that gets set on the input element",type:{name:"string"},required:!1},classes:{description:"Add custom CSS class",type:{name:"object"},required:!1},startAdornment:{description:"",type:{name:"element"},required:!1},endAdornment:{description:"",type:{name:"element"},required:!1},largeLabel:{description:"Show large label",type:{name:"bool"},required:!1},min:{description:"Define min number input",type:{name:"number"},required:!1},max:{description:"Define max number input",type:{name:"number"},required:!1},autoComplete:{description:"Show auto complete text",type:{name:"string"},required:!1},onPaste:{description:"",type:{name:"func"},required:!1}}};let text_field=text_field_component;text_field_component.__docgenInfo={description:"",methods:[],displayName:"TextField",props:{error:{defaultValue:{value:"null",computed:!1},description:"Show error message",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},dir:{defaultValue:{value:"'auto'",computed:!1},description:"",type:{name:"string"},required:!1},theme:{defaultValue:{value:"'bordered'",computed:!1},description:"Give theme to the text field",type:{name:"enum",value:[{value:"'bordered'",computed:!1},{value:"'material'",computed:!1},{value:"'material-white-padded'",computed:!1}]},required:!1},"data-testid":{description:"A test ID that gets set on the input element",type:{name:"string"},required:!1},classes:{description:"Add custom CSS class",type:{name:"object"},required:!1},startAdornment:{description:"",type:{name:"element"},required:!1},endAdornment:{description:"",type:{name:"element"},required:!1},largeLabel:{description:"Show large label",type:{name:"bool"},required:!1},min:{description:"Define min number input",type:{name:"number"},required:!1},max:{description:"Define max number input",type:{name:"number"},required:!1},autoComplete:{description:"Show auto complete text",type:{name:"string"},required:!1},onPaste:{description:"",type:{name:"func"},required:!1}}}},"./ui/components/ui/update-nickname-popover/update-nickname-popover.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>UpdateNicknamePopover});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"),prop_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__),_popover__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/components/ui/popover/index.js"),_button__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/ui/button/index.js"),_text_field__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/components/ui/text-field/index.js"),_contexts_i18n__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./ui/contexts/i18n.js"),_identicon__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./ui/components/ui/identicon/index.js"),_selectors__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./ui/selectors/index.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}function _array_with_holes(arr){if(Array.isArray(arr))return arr}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 _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}function UpdateNicknamePopover(param){var _tokenList_address_toLowerCase,address=param.address,_param_nickname=param.nickname,nickname=void 0===_param_nickname?"":_param_nickname,_param_memo=param.memo,memo=void 0===_param_memo?"":_param_memo,onAdd=param.onAdd,onClose=param.onClose,t=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_contexts_i18n__WEBPACK_IMPORTED_MODULE_5__.gJ),_useState=_sliced_to_array((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null===nickname?"":nickname),2),nicknameInput=_useState[0],setNicknameInput=_useState[1],_useState1=_sliced_to_array((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null===memo?"":memo),2),memoInput=_useState1[0],setMemoInput=_useState1[1],closePopover=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function(){onClose()},[onClose]),tokenList=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(_selectors__WEBPACK_IMPORTED_MODULE_7__.iM3);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_popover__WEBPACK_IMPORTED_MODULE_2__.A,{title:t(nickname?"editAddressNickname":"addANickname"),onClose:closePopover,className:"update-nickname__wrapper",footer:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_button__WEBPACK_IMPORTED_MODULE_3__.A,{className:"update-nickname__cancel",type:"secondary",onClick:function(){onClose()}},t("cancel")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_button__WEBPACK_IMPORTED_MODULE_3__.A,{className:"update-nickname__save",type:"primary",onClick:function(){onAdd(address,nicknameInput,memoInput),onClose()},disabled:!nicknameInput},t("save")))},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"update-nickname__content"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_identicon__WEBPACK_IMPORTED_MODULE_6__.A,{className:"update-nickname__content__indenticon",address:address,diameter:36,image:null===(_tokenList_address_toLowerCase=tokenList[address.toLowerCase()])||void 0===_tokenList_address_toLowerCase?void 0:_tokenList_address_toLowerCase.iconUrl}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("label",{className:"update-nickname__content__label--capitalized"},t("address")),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"update-nickname__content__address"},address),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"update-nickname__content__nickname-label"},t("nickname")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_text_field__WEBPACK_IMPORTED_MODULE_4__.A,{className:"update-nickname__content__text-field",value:nicknameInput,onChange:function(event){setNicknameInput(event.target.value)},placeholder:t("addANickname"),fullWidth:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"update-nickname__content__label--capitalized"},t("memo")),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_text_field__WEBPACK_IMPORTED_MODULE_4__.A,{type:"text",id:"memo",value:memoInput,onChange:function(event){setMemoInput(event.target.value)},placeholder:t("addMemo"),fullWidth:!0,margin:"dense",multiline:!0,rows:3,classes:{inputMultiline:"update-nickname__content__text-area",inputRoot:"update-nickname__content__text-area-wrapper"}})))}UpdateNicknamePopover.propTypes={nickname:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,address:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,memo:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,onAdd:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func,onClose:prop_types__WEBPACK_IMPORTED_MODULE_8___default().func},UpdateNicknamePopover.__docgenInfo={description:"",methods:[],displayName:"UpdateNicknamePopover",props:{nickname:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},memo:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},address:{description:"",type:{name:"string"},required:!1},onAdd:{description:"",type:{name:"func"},required:!1},onClose:{description:"",type:{name:"func"},required:!1}}}}}]);