(this["webpackJsonpsafe-react"]=this["webpackJsonpsafe-react"]||[]).push([[45],{1473:function(e,t,n){"use strict";n.r(t);var a=n(41),r=n(412),c=n(0),s=n(39),i=n(1544),o=n(1532),d=n(148),l=n(127),u=n(171),b=n(85),j=n(109),O=n(1542),m=n(337),f=n(1577),p=n(1517),h=n(2),x=function(e){var t=e.field,n=e.set,a=e.to;return Object(h.jsx)(p.a,{name:n,subscription:{},children:function(e){var n=e.input.onChange;return Object(h.jsx)(f.a,{name:t,children:function(){n(a)}})}})},g=n(156),v=n(338),k=n(1648),y=n(1557),S=n(1613),I=n(20),w=n(44),C=n(157),A=n(1754),E=n(1504),N=n(609),R=n(13),V=n(539),T=Object(V.a)({container:{minHeight:"55px",padding:0,width:"100%"},tokenData:{padding:0,margin:0,lineHeight:"14px"},tokenImage:{marginRight:R.sm}}),M=Object(V.a)({selectMenu:{paddingRight:0},tokenImage:{marginRight:R.sm}}),F=n(1550),D=n(560),P=n(128),B=n(1533),z=Object(r.a)(T),_=function(e){var t=e.tokenId,n=e.tokens,a=z(),r=t&&n?n.find((function(e){var n=e.tokenId;return t===n})):null,c=Object(C.b)({charsStart:40,charsEnd:0});return Object(h.jsx)(N.a,{className:a.container,children:r?Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(A.a,{className:a.tokenImage,children:Object(h.jsx)(P.a,{alt:r.description,height:28,onError:B.a,src:r.image})}),Object(h.jsx)(E.a,{className:a.tokenData,primary:c(r.name),secondary:"token ID: ".concat(c(r.tokenId.toString()))})]}):Object(h.jsx)(b.a,{color:"disabled",size:"md",style:{opacity:.5},weight:"light",children:"Select a token*"})})},q=Object(r.a)(M),H=function(e){var t=e.initialValue,n=e.tokens,a=q();return Object(h.jsx)(p.a,{className:a.selectMenu,component:F.a,disabled:!n.length,initialValue:t,name:"nftTokenId",renderValue:function(e){return Object(h.jsx)(_,{tokenId:e,tokens:n})},validate:D.p,children:n.map((function(e){return Object(h.jsxs)(N.a,{value:e.tokenId,children:[Object(h.jsx)(A.a,{className:a.tokenImage,children:Object(h.jsx)(P.a,{alt:e.name,height:28,onError:B.a,src:e.image})}),Object(h.jsx)(E.a,{primary:e.name,secondary:"token ID: ".concat(e.tokenId)})]},"".concat(e.assetAddress,"-").concat(e.tokenId))}))})},L=Object(V.a)({qrCodeBtn:{cursor:"pointer"},formContainer:{padding:"".concat(R.md," ").concat(R.lg)},buttonRow:{height:"84px",justifyContent:"center",gap:"16px"}}),U=Object(V.a)({container:{minHeight:"55px",padding:0,width:"100%"},tokenData:{padding:0,margin:0,lineHeight:"14px"},tokenImage:{display:"block",marginRight:R.sm,height:28,width:"auto"}}),W=Object(V.a)({selectMenu:{paddingRight:0},tokenImage:{marginRight:R.sm}}),Q=n(251),J=Object(r.a)(U),K=function(e){var t=e.assetAddress,n=e.assets,a=J(),r=t?n[t]:null,c=Object(C.b)({charsStart:40,charsEnd:0});return Object(h.jsx)(N.a,{className:a.container,children:r&&r.numberOfTokens?Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(A.a,{children:Object(h.jsx)(P.a,{className:a.tokenImage,alt:r.name,onError:B.a,src:r.image})}),Object(h.jsx)(E.a,{className:a.tokenData,primary:c(r.name),secondary:"".concat(Object(Q.a)(r.numberOfTokens.toString())," ").concat(r.symbol)})]}):Object(h.jsx)(b.a,{color:"disabled",size:"md",style:{opacity:.5},weight:"light",children:"Select an asset*"})})},G=Object(r.a)(W),X=function(e){var t=e.assets,n=e.initialValue,a=G(),r=J(),c=Object.keys(t);return Object(h.jsx)(p.a,{className:a.selectMenu,component:F.a,disabled:!c.length,initialValue:n,name:"assetAddress",renderValue:function(e){return Object(h.jsx)(K,{assetAddress:e,assets:t})},validate:D.p,children:c.map((function(e){var n=t[e];return Object(h.jsxs)(N.a,{value:e,children:[Object(h.jsx)(A.a,{children:Object(h.jsx)(P.a,{className:r.tokenImage,alt:n.name,onError:B.a,src:n.image})}),Object(h.jsx)(E.a,{primary:n.name,secondary:"Count: ".concat(Object(Q.a)(n.numberOfTokens.toString())," ").concat(n.symbol)})]},n.slug)}))})},Y=n(561),Z={setMax:function(e,t,n){n.changeValue(t,"amount",(function(){return e[0]}))},onTokenChange:function(e,t,n){n.changeValue(t,"amount",(function(){return""}))},setRecipient:function(e,t,n){n.changeValue(t,"recipientAddress",(function(){return e[0]}))}},$=Object(r.a)(L);t.default=function(e){var t=e.initialValues,n=e.onClose,r=e.onNext,f=e.recipientAddress,p=e.selectedToken,A=$(),E=Object(s.e)(k.b),N=Object(s.e)(k.c),R=Object(s.e)(v.d),V=Object(c.useState)(""),T=Object(a.a)(V,2),M=T[0],F=T[1],P=Object(c.useState)((function(){var e,n={address:f||"",name:""};if(!(null===t||void 0===t?void 0:t.recipientAddress)&&!f)return n;var a=null!==(e=null===t||void 0===t?void 0:t.recipientAddress)&&void 0!==e?e:f,r=R.find((function(e){var t=e.address;return Object(w.f)(a,t)}));return r||n})),B=Object(a.a)(P,2),z=B[0],_=B[1],q=Object(c.useState)(!0),L=Object(a.a)(q,2),U=L[0],W=L[1],Q=Object(c.useState)(!1),J=Object(a.a)(Q,2),K=J[0],G=J[1];Object(c.useMemo)((function(){null===z&&U&&W(!1)}),[z,U]);return Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(Y.a,{onClose:n,subTitle:"1 of 2",title:"Send collectible"}),Object(h.jsx)(u.a,{}),Object(h.jsx)(o.a,{formMutators:Z,initialValues:t,onSubmit:function(e){e.recipientAddress||(e.recipientAddress=null===z||void 0===z?void 0:z.address),e.recipientName=null===z||void 0===z?void 0:z.name,e.assetName=E[e.assetAddress].name,r(e)},children:function(){var e,t=arguments.length<=2?void 0:arguments[2],a=arguments.length<=3?void 0:arguments[3],r=t.values.assetAddress,c=N.filter((function(e){return e.assetAddress===r})),s=function(e,t){var n,r=e;r.startsWith("ethereum:")&&(r=r.replace("ethereum:",""));var c=null===(n=R.find((function(e){var t=e.address;return Object(w.f)(r,t)})))||void 0===n?void 0:n.name,s=Object(D.k)(r);s?F(s):(a.setRecipient(r),_({name:c||"",address:r}),F("")),t()},o=!K;return z&&(o=!z.address),Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(x,{field:"assetAddress",set:"nftTokenId",to:""}),Object(h.jsxs)(d.a,{className:A.formContainer,children:[Object(h.jsx)(y.a,{}),Object(h.jsx)(i.a,{withArrow:!0}),z&&z.address?Object(h.jsxs)("div",{onKeyDown:function(e){Object(C.a)(e.key,"Tab")||_({address:"",name:""})},onClick:function(){_({address:"",name:""})},role:"listbox",tabIndex:0,children:[Object(h.jsx)(j.a,{margin:"xs",children:Object(h.jsx)(b.a,{color:"disabled",noMargin:!0,size:"md",style:{letterSpacing:"-0.5px"},children:"Recipient"})}),Object(h.jsx)(j.a,{align:"center",margin:"md",children:Object(h.jsx)(l.a,{xs:12,children:Object(h.jsx)(g.a,{hash:z.address,name:z.name,showAvatar:!0,showCopyBtn:!0,explorerUrl:Object(I.i)(z.address)})})})]}):Object(h.jsx)(h.Fragment,{children:Object(h.jsxs)(j.a,{margin:"md",children:[Object(h.jsx)(l.a,{xs:11,children:Object(h.jsx)(S.a,{fieldMutator:a.setRecipient,pristine:U,errorMsg:M,setIsValidAddress:G,setSelectedEntry:_})}),Object(h.jsx)(l.a,{center:"xs",className:A,middle:"xs",xs:1,children:Object(h.jsx)(O.a,{handleScan:s})})]})}),Object(h.jsx)(j.a,{margin:"xs",children:Object(h.jsx)(l.a,{between:"lg",children:Object(h.jsx)(b.a,{color:"disabled",noMargin:!0,size:"md",style:{letterSpacing:"-0.5px"},children:"Collectible"})})}),Object(h.jsx)(j.a,{margin:"sm",children:Object(h.jsx)(l.a,{children:Object(h.jsx)(X,{assets:E,initialValue:null!==(e=null===p||void 0===p?void 0:p.assetAddress)&&void 0!==e?e:null===p||void 0===p?void 0:p.tokenAddress})})}),Object(h.jsx)(j.a,{margin:"xs",children:Object(h.jsx)(l.a,{between:"lg",children:Object(h.jsx)(b.a,{color:"disabled",noMargin:!0,size:"md",style:{letterSpacing:"-0.5px"},children:"Token ID"})})}),Object(h.jsx)(j.a,{margin:"md",children:Object(h.jsx)(l.a,{children:Object(h.jsx)(H,{initialValue:null===p||void 0===p?void 0:p.tokenId,tokens:c})})})]}),Object(h.jsx)(m.b.Footer,{children:Object(h.jsx)(m.b.Footer.Buttons,{cancelButtonProps:{onClick:n},confirmButtonProps:{disabled:o,testId:"review-tx-btn",text:"Review"}})})]})}})]})}},1517:function(e,t,n){"use strict";var a=n(10),r=n(1513),c=n(2);t.a=function(e){return Object(c.jsx)(r.a,Object(a.a)({},e))}},1532:function(e,t,n){"use strict";var a=n(60),r=n(1513),c=n(2),s=["handleSubmit"],i=function(e){return{padding:"0 ".concat(e,"%"),flexDirection:"column",flex:"1 0 auto"}};t.a=function(e){var t=e.children,n=e.decorators,o=e.formMutators,d=e.initialValues,l=e.onSubmit,u=e.padding,b=void 0===u?0:u,j=e.subscription,O=e.testId,m=void 0===O?"":O,f=e.validation;return Object(c.jsx)(r.b,{decorators:n,initialValues:d,mutators:o,onSubmit:l,render:function(e){var n=e.handleSubmit,r=Object(a.a)(e,s);return Object(c.jsx)("form",{"data-testid":m,onSubmit:n,style:i(b),children:t(r.submitting,r.validating,r,r.form.mutators)})},subscription:j,validate:f})}},1533:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1536),r=function(e){var t=e.currentTarget;/token_placeholder/.test(t.src)||(t.src=a.a)};n(456)},1536:function(e,t,n){"use strict";t.a=n.p+"static/media/token_placeholder.c1abe466.svg"},1541:function(e,t,n){"use strict";var a=n(10),r=n(60),c=n(7),s=n(9),i=n(11),o=n(12),d=n(0),l=n(2),u=["children"],b=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=Object(r.a)(e,u);return Object(l.jsx)("b",Object(a.a)(Object(a.a)({},n),{},{children:t}))}}]),n}(d.PureComponent);t.a=b},1542:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var a=n(41),r=n(412),c=n(0),s=n.p+"static/media/qrcode.fec1b6d8.svg",i=n(421),o=n(340),d=n.n(o),l=n(1576),u=n.n(l),b=n(13),j=n(539),O=Object(j.a)({heading:{padding:b.lg,justifyContent:"space-between",maxHeight:"75px",boxSizing:"border-box"},loaderContainer:{width:"100%",height:"100%"},close:{height:"25px",width:"25px",color:b.secondaryText},detailsContainer:{backgroundColor:b.background,maxHeight:"450px"},buttonRow:{height:"84px",justifyContent:"center"},button:{"&:last-child":{marginLeft:b.sm}}}),m=n(337),f=n(148),p=n(293),h=n(127),x=n(171),g=n(85),v=n(109),k=n(2),y=Object(r.a)(O),S=function(e){var t=e.isOpen,n=e.onClose,r=e.onScan,s=y(),o=Object(c.useState)(!1),l=Object(a.a)(o,2),b=l[0],j=l[1],O=Object(c.useState)(null),S=Object(a.a)(O,2),I=S[0],w=S[1],C=Object(c.useState)(!1),A=Object(a.a)(C,2),E=A[0],N=A[1],R=c.createRef(),V=c.useCallback((function(){R.current.openImageDialog()}),[R]);Object(c.useEffect)((function(){b||!E||I||(j(!0),V())}),[E,V,b,j,I]);var T=function(e,t){if(e)return console.error("QR code error",e),void("NotAllowedError"===e.name||"PermissionDismissedError"===e.name?(N(!0),j(!1)):w("The QR could not be read"));t?r(t):E&&w("The QR could not be read")};return Object(k.jsxs)(m.c,{description:"Receive Tokens Form",handleClose:n,open:t,title:"Receive Tokens",children:[Object(k.jsxs)(v.a,{align:"center",className:s.heading,grow:!0,children:[Object(k.jsx)(g.a,{noMargin:!0,size:"xl",children:"Scan QR"}),Object(k.jsx)(i.a,{disableRipple:!0,onClick:n,children:Object(k.jsx)(d.a,{className:s.close})})]}),Object(k.jsx)(x.a,{}),Object(k.jsxs)(h.a,{className:s.detailsContainer,layout:"column",middle:"xs",children:[I&&Object(k.jsx)(f.a,{padding:"md",margin:"md",children:I}),Object(k.jsx)(u.a,{legacyMode:E,onError:function(e){return T(e,null)},onScan:function(e){return T(null,e)},ref:R,style:{width:"400px",height:"400px"},facingMode:"user"})]}),Object(k.jsx)(x.a,{}),Object(k.jsxs)(v.a,{align:"center",className:s.buttonRow,children:[Object(k.jsx)(p.a,{className:s.button,color:"secondary",minWidth:154,onClick:n,children:"Close"}),Object(k.jsx)(p.a,{className:s.button,color:"primary",minWidth:154,onClick:function(){N(!0),w(null),j(!1)},variant:"contained",children:"Upload an image"})]})]})},I=n(128),w=Object(r.a)({qrCodeBtn:{cursor:"pointer"}}),C=function(e){var t=e.handleScan,n=e.testId,r=w(),i=Object(c.useState)(!1),o=Object(a.a)(i,2),d=o[0],l=o[1],u=function(){l(!1)};return Object(k.jsxs)(k.Fragment,{children:[Object(k.jsx)(I.a,{alt:"Scan QR",className:r.qrCodeBtn,height:20,onClick:function(){l(!0)},role:"button",src:s,testId:n||"qr-icon"}),d&&Object(k.jsx)(S,{isOpen:d,onClose:u,onScan:function(e){t(e,u)}})]})}},1544:function(e,t,n){"use strict";var a,r,c=n(27),s=n(25),i=n(28),o=n(2),d=s.default.div(a||(a=Object(c.a)(["\n  display: flex;\n  align-items: center;\n  margin: 8px 0;\n\n  svg {\n    margin: 0 12px 0 4px;\n  }\n"]))),l=Object(s.default)(i.Divider)(r||(r=Object(c.a)(["\n  width: 100%;\n"])));t.a=function(e){var t=e.withArrow;return Object(o.jsxs)(d,{children:[t&&Object(o.jsx)(i.Icon,{type:"arrowDown",size:"md"}),Object(o.jsx)(l,{})]})}},1550:function(e,t,n){"use strict";var a=n(10),r=n(60),c=n(540),s=n(541),i=n(1425),o=n(546),d=n(2),l=["name","onChange","value"],u=["classes","disableError","formControlProps","input","label","meta","renderValue"],b={minWidth:"100%"};t.a=function(e){var t=e.classes,n=e.disableError,j=e.formControlProps,O=e.input,m=O.name,f=O.onChange,p=O.value,h=Object(r.a)(O,l),x=e.label,g=e.meta,v=e.renderValue,k=Object(r.a)(e,u),y=(g.submitError&&!g.dirtySinceLastSubmit||g.error)&&g.touched&&!n,S=Object(a.a)(Object(a.a)({},h),{},{name:m});return Object(d.jsxs)(c.a,Object(a.a)(Object(a.a)({},j),{},{error:y,style:b,children:[Object(d.jsx)(i.a,{htmlFor:m,children:x}),Object(d.jsx)(o.a,Object(a.a)({classes:t,inputProps:S,onChange:f,renderValue:v,value:p},k)),y&&Object(d.jsx)(s.a,{children:g.error||g.submitError})]}))}},1557:function(e,t,n){"use strict";var a,r=n(27),c=n(39),s=n(25),i=n(20),o=n(78),d=n(85),l=n(1541),u=n(13),b=n(148),j=n(156),O=n(2),m=Object(s.default)(b.a)(a||(a=Object(r.a)(["\n  font-size: 12px;\n  line-height: 1.08;\n  letter-spacing: -0.5px;\n  background-color: ",";\n  width: fit-content;\n  padding: 5px 10px;\n  margin-top: ",";\n  margin-left: 40px;\n  border-radius: 3px;\n"])),u.border,u.xs);t.a=function(){var e=Object(c.e)(o.j),t=e.address,n=e.ethBalance,a=e.name,r=Object(i.n)();return Object(O.jsxs)(O.Fragment,{children:[Object(O.jsx)(j.a,{hash:t,name:a,explorerUrl:Object(i.i)(t),showAvatar:!0,showCopyBtn:!0}),n&&Object(O.jsx)(m,{children:Object(O.jsxs)(d.a,{noMargin:!0,children:["Balance: ",Object(O.jsx)(l.a,{"data-testid":"current-eth-balance",children:"".concat(n," ").concat(r.symbol)})]})})]})}},1577:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(1513);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}a.Component,a.Component;var i=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={previous:t.input.value},n}s(t,e);var n=t.prototype;return n.componentDidUpdate=function(){var e=this.props,t=e.children,n=e.input.value,a=this.state.previous;n!==a&&(this.setState({previous:n}),t(n,a))},n.render=function(){return null},t}(a.Component),o=function(e){var t=e.name,n=e.children;return Object(a.createElement)(r.a,{name:t,subscription:{value:!0},allowNull:!0,render:function(e){return Object(a.createElement)(i,c({},e,{children:n}))}})};a.Component},1613:function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return M}));var a=n(60),r=n(41),c=n(10),s=n(1),i=n.n(s),o=n(16),d=n(610),l=n(2944),u=n(0),b=n(39),j=n(560),O=n(338),m=n(178),f=n(44),p=n(32),h=n(412),x=n(539),g=Object(h.a)(Object(x.a)({root:{overflow:"hidden",borderRadius:4,fontSize:"15px",width:"500px"}})),v=Object(h.a)(Object(x.a)({root:{fontSize:"14px",width:"420px"}})),k=n(156),y=n(157),S=n(23),I=n(64),w=n(57),C=n(36),A=n(190),E=n(102),N=n(2),R=["setIsValidAddress","setSelectedEntry"],V=function(e){var t=e.addressBookEntries,n=e.fieldMutator,a=e.label,r=void 0===a?"Recipient":a,s=e.setIsValidAddress,u=e.setSelectedEntry,O=e.setValidationText,h=e.validationText,x=Object(b.e)(w.a),R=function(e){u(e),n(e.address)},V=function(e){var n=Object(j.k)(e);if(s(!n),!n){var a=Object(A.b)(e).address,r=Object(I.a)(a)||a,c=Object(m.b)(t,{inputValue:r});return 1===c.length?c[0]:r}O(n)},T=function(){var e=Object(o.a)(i.a.mark((function e(t,a,r){var c,s,o,d;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r,e.next="input"===e.t0?3:31;break;case 3:if(c=Object(y.c)(a)){e.next=6;break}return e.abrupt("break",31);case 6:if(!Object(E.d)(C.FEATURES.DOMAIN_LOOKUP)||!Object(f.e)(c)&&!Object(f.d)(c)){e.next=24;break}return s="",e.prev=8,e.next=11,Object(p.c)(c);case 11:s=e.sent,e.next=17;break;case 14:e.prev=14,e.t1=e.catch(8),Object(S.c)(S.b._101,e.t1.message);case 17:if(o=V(s)){e.next=21;break}return n(""),e.abrupt("break",31);case 21:return R("string"===typeof o?{address:s,name:c,chainId:x}:o),e.abrupt("break",31);case 24:if(d=V(c)){e.next=28;break}return n(""),e.abrupt("break",31);case 28:return R("string"===typeof d?{address:d,name:"",chainId:x}:d),e.abrupt("break",31);case 31:case"end":return e.stop()}}),e,null,[[8,14]])})));return function(t,n,a){return e.apply(this,arguments)}}(),M=g(),F=v();return Object(N.jsx)(l.a,{closeIcon:null,openOnFocus:!1,filterOptions:m.b,freeSolo:!0,onChange:function(e,t,n){if("select-option"===n){var a=t,r=a.address,c=a.name,s=a.chainId;R({address:r,name:c,chainId:s})}},onInputChange:T,options:t,id:"address-book-input",renderInput:function(e){return Object(N.jsx)(d.a,Object(c.a)(Object(c.a)({},e),{},{autoFocus:!0,error:!!h,fullWidth:!0,variant:"filled",label:h||r,InputLabelProps:{shrink:!0,required:!0,classes:M},InputProps:Object(c.a)(Object(c.a)({},e.InputProps),{},{classes:F}),inputProps:Object(c.a)(Object(c.a)({},e.inputProps),{},{"data-testid":"address-book-input"})}))},getOptionLabel:function(e){return e.address},renderOption:function(e){var t=e.address,n=e.name;return Object(N.jsx)(k.a,{hash:t,name:n,showAvatar:!0})},role:"listbox",style:{display:"flex",flexGrow:1}})},T=function(e){var t=Object(b.e)(O.d),n=Object(u.useState)(""),a=Object(r.a)(n,2),s=a[0],i=a[1];return Object(u.useEffect)((function(){e.errorMsg&&i(e.errorMsg)}),[e.errorMsg]),Object(N.jsx)(V,Object(c.a)({addressBookEntries:t,setValidationText:i,validationText:s},e))},M=function(e){var t=e.setIsValidAddress,n=e.setSelectedEntry,s=Object(a.a)(e,R),d=Object(b.e)(O.d),l=Object(u.useState)([]),f=Object(r.a)(l,2),p=f[0],h=f[1],x=Object(u.useState)(""),g=Object(r.a)(x,2),v=g[0],k=g[1];Object(u.useEffect)((function(){var e=function(){var e=Object(o.a)(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.c)(d);case 2:t=e.sent,h(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[d]);var y=function(){var e=Object(o.a)(i.a.mark((function e(a){var r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===a||void 0===a?void 0:a.address)){e.next=7;break}return e.next=3,Object(j.l)(a.address);case 3:r=e.sent,t(!r),k(null!==r&&void 0!==r?r:""),n(a);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(N.jsx)(V,Object(c.a)({addressBookEntries:p,setIsValidAddress:t,setSelectedEntry:y,setValidationText:k,validationText:v},s))}},1648:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u}));var a=n(31),r=n(317),c=function(e){return e[r.a]},s=Object(a.a)(c,(function(e){return e})),i=Object(a.a)((function(e){return e[r.b]}),(function(e){return e})),o=Object(a.a)(c,(function(e){return e?Object.values(e):[]})),d=Object(a.a)(i,(function(e){var t=e.map((function(e){return e.assetAddress})),n=new Set(t);return Array.from(n)})),l=Object(a.a)(i,(function(e){return e.sort((function(e,t){return e.name.localeCompare(t.name)}))})),u=Object(a.a)(o,d,(function(e,t){return e.sort((function(e,t){return e.name.localeCompare(t.name)})).filter((function(e){var n=e.address;return t.includes(n)}))}))},1754:function(e,t,n){"use strict";var a=n(4),r=n(14),c=n(0),s=(n(19),n(15)),i=n(18),o=n(198),d=c.forwardRef((function(e,t){var n=e.classes,i=e.className,d=Object(r.a)(e,["classes","className"]),l=c.useContext(o.a);return c.createElement("div",Object(a.a)({className:Object(s.default)(n.root,i,"flex-start"===l.alignItems&&n.alignItemsFlexStart),ref:t},d))}));t.a=Object(i.a)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(d)}}]);
//# sourceMappingURL=45.90c9adeb.chunk.js.map