LavaPack.loadBundle([[3808,{"..":3840,"../../../helpers/constants/design-system":4070,"../../ui/box":3900,"./banner-tip.constants":3807,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.BannerTip=void 0;var r=c(e("react")),o=c(e("prop-types")),a=c(e("classnames")),i=e("../../../helpers/constants/design-system"),s=c(e("../../ui/box")),l=e(".."),u=e("./banner-tip.constants");function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const f=({children:e,className:t,logoType:n=u.BannerTipLogoType.Greeting,logoWrapperProps:o,logoProps:c,startAccessory:f,...p})=>r.default.createElement(l.BannerBase,d({startAccessory:f||r.default.createElement(s.default,d({display:i.DISPLAY.FLEX,alignItems:i.AlignItems.center},o),r.default.createElement(s.default,d({as:"img",className:"mm-banner-tip--logo",src:`images/fox-${n}.png`,alt:n},c))),borderColor:i.BorderColor.borderDefault,className:(0,a.default)("mm-banner-tip",t)},p),e);n.BannerTip=f,f.propTypes={className:o.default.string,logoType:o.default.oneOf(Object.values(u.BannerTipLogoType)),logoProps:o.default.shape(s.default.propTypes),logoWrapperProps:o.default.shape(s.default.propTypes),startAccessory:o.default.node,...l.BannerBase.propTypes}}}},{package:"$root$",file:"ui/components/component-library/banner-tip/banner-tip.js"}],[3809,{"./banner-tip":3808,"./banner-tip.constants":3807},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BannerTip",{enumerable:!0,get:function(){return r.BannerTip}}),Object.defineProperty(n,"BannerTipLogoType",{enumerable:!0,get:function(){return o.BannerTipLogoType}});var r=e("./banner-tip"),o=e("./banner-tip.constants")}}},{package:"$root$",file:"ui/components/component-library/banner-tip/index.js"}],[3810,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.BUTTON_BASE_SIZES=void 0;var r=e("../../../helpers/constants/design-system");const o={SM:r.Size.SM,MD:r.Size.MD,LG:r.Size.LG};n.BUTTON_BASE_SIZES=o}}},{package:"$root$",file:"ui/components/component-library/button-base/button-base.constants.js"}],[3811,{"../../../helpers/constants/design-system":4070,"../../ui/box":3900,"../icon":3839,"../text":3865,"./button-base.constants":3810,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ButtonBase=void 0;var r=d(e("react")),o=d(e("prop-types")),a=d(e("classnames")),i=d(e("../../ui/box")),s=e("../icon"),l=e("../text"),u=e("../../../helpers/constants/design-system"),c=e("./button-base.constants");function d(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}const p=({as:e="button",block:t,children:n,className:o,href:i,ellipsis:d=!1,externalLink:p,size:m=c.BUTTON_BASE_SIZES.MD,startIconName:h,startIconProps:g,endIconName:b,endIconProps:y,loading:v,disabled:T,iconLoadingProps:_,textProps:C,color:E=u.TextColor.textDefault,...O})=>{const w=i?"a":e;return"a"===w&&p&&(O.target="_blank",O.rel="noopener noreferrer"),r.default.createElement(l.Text,f({as:w,backgroundColor:u.BackgroundColor.backgroundAlternative,color:v?u.TextColor.transparent:E,href:i,paddingLeft:4,paddingRight:4,ellipsis:d,className:(0,a.default)("mm-button-base",{[`mm-button-base--size-${m}`]:Object.values(c.BUTTON_BASE_SIZES).includes(m),"mm-button-base--loading":v,"mm-button-base--disabled":T,"mm-button-base--block":t,"mm-button-base--ellipsis":d},o),disabled:T,display:u.DISPLAY.INLINE_FLEX,justifyContent:u.JustifyContent.center,alignItems:u.AlignItems.center,borderRadius:u.BorderRadius.pill},O),h&&r.default.createElement(s.Icon,f({name:h,size:s.IconSize.Sm,marginInlineEnd:1},g,{color:v?u.IconColor.transparent:null==g?void 0:g.color})),"string"!=typeof n||d||v?r.default.createElement(l.Text,f({as:"span",ellipsis:d,variant:u.TextVariant.inherit,color:v?u.TextColor.transparent:E},C),n):n,b&&r.default.createElement(s.Icon,f({name:b,size:s.IconSize.Sm,marginInlineStart:1},y,{color:v?u.IconColor.transparent:null==y?void 0:y.color})),v&&r.default.createElement(s.Icon,f({className:"mm-button-base__icon-loading",name:s.IconName.Loading,color:E,size:s.IconSize.Md},_)))};n.ButtonBase=p,p.propTypes={as:o.default.string,block:o.default.bool,buttonTextProps:o.default.shape(l.Text.PropTypes),children:o.default.node,className:o.default.string,disabled:o.default.bool,href:o.default.string,ellipsis:o.default.bool,externalLink:o.default.bool,startIconName:o.default.oneOf(Object.values(s.IconName)),startIconProps:o.default.object,endIconName:o.default.oneOf(Object.values(s.IconName)),endIconProps:o.default.object,iconLoadingProps:o.default.object,loading:o.default.bool,size:o.default.oneOfType([o.default.shape(c.BUTTON_BASE_SIZES),o.default.string]),textProps:o.default.shape(l.Text.PropTypes),...i.default.propTypes}}}},{package:"$root$",file:"ui/components/component-library/button-base/button-base.js"}],[3812,{"./button-base":3811,"./button-base.constants":3810},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BUTTON_BASE_SIZES",{enumerable:!0,get:function(){return o.BUTTON_BASE_SIZES}}),Object.defineProperty(n,"ButtonBase",{enumerable:!0,get:function(){return r.ButtonBase}});var r=e("./button-base"),o=e("./button-base.constants")}}},{package:"$root$",file:"ui/components/component-library/button-base/index.js"}],[3813,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.BUTTON_ICON_SIZES=void 0;var r=e("../../../helpers/constants/design-system");const o={SM:r.Size.SM,LG:r.Size.LG};n.BUTTON_ICON_SIZES=o}}},{package:"$root$",file:"ui/components/component-library/button-icon/button-icon.constants.js"}],[3814,{"../../../helpers/constants/design-system":4070,"../../ui/box":3900,"../icon":3839,"./button-icon.constants":3813,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ButtonIcon=void 0;var r=c(e("react")),o=c(e("prop-types")),a=c(e("classnames")),i=e("../../../helpers/constants/design-system"),s=c(e("../../ui/box")),l=e("../icon"),u=e("./button-icon.constants");function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const f=({ariaLabel:e,as:t="button",className:n,color:o=i.IconColor.iconDefault,href:u,size:c=i.Size.LG,iconName:f,disabled:p,iconProps:m,...h})=>{const g=u?"a":t;return r.default.createElement(s.default,d({"aria-label":e,as:g,className:(0,a.default)("mm-button-icon",`mm-button-icon--size-${c}`,{"mm-button-icon--disabled":p},n),color:o,disabled:p,display:i.DISPLAY.INLINE_FLEX,justifyContent:i.JustifyContent.center,alignItems:i.AlignItems.center,borderRadius:i.BorderRadius.LG,backgroundColor:i.BackgroundColor.transparent,href:u},h),r.default.createElement(l.Icon,d({name:f,size:c},m)))};n.ButtonIcon=f,f.propTypes={ariaLabel:o.default.string.isRequired,as:o.default.string,className:o.default.string,color:o.default.oneOf(Object.values(i.IconColor)),disabled:o.default.bool,href:o.default.string,iconName:o.default.oneOf(Object.values(l.IconName)).isRequired,iconProps:o.default.object,size:o.default.oneOf(Object.values(u.BUTTON_ICON_SIZES)),...s.default.propTypes}}}},{package:"$root$",file:"ui/components/component-library/button-icon/button-icon.js"}],[3815,{"./button-icon":3814,"./button-icon.constants":3813},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BUTTON_ICON_SIZES",{enumerable:!0,get:function(){return o.BUTTON_ICON_SIZES}}),Object.defineProperty(n,"ButtonIcon",{enumerable:!0,get:function(){return r.ButtonIcon}});var r=e("./button-icon"),o=e("./button-icon.constants")}}},{package:"$root$",file:"ui/components/component-library/button-icon/index.js"}],[3816,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.BUTTON_LINK_SIZES=void 0;var r=e("../../../helpers/constants/design-system");const o={SM:r.Size.SM,MD:r.Size.MD,LG:r.Size.LG,AUTO:r.Size.auto,INHERIT:r.Size.inherit};n.BUTTON_LINK_SIZES=o}}},{package:"$root$",file:"ui/components/component-library/button-link/button-link.constants.js"}],[3817,{"../../../helpers/constants/design-system":4070,"../button-base":3812,"./button-link.constants":3816,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ButtonLink=void 0;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=e("../button-base"),s=e("../../../helpers/constants/design-system"),l=e("./button-link.constants");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=({className:e,danger:t,disabled:n,size:o=s.Size.auto,...u})=>r.default.createElement(i.ButtonBase,c({className:(0,a.default)(e,"mm-button-link",{"mm-button-link--type-danger":t,"mm-button-link--disabled":n,"mm-button-link--size-inherit":o===l.BUTTON_LINK_SIZES.INHERIT,"mm-button-link--size-auto":o===l.BUTTON_LINK_SIZES.AUTO}),paddingLeft:0,paddingRight:0,size:o===l.BUTTON_LINK_SIZES.INHERIT?null:o,backgroundColor:s.BackgroundColor.transparent,color:t?s.Color.errorDefault:s.Color.primaryDefault,borderRadius:null,startIconProps:{size:o===l.BUTTON_LINK_SIZES.INHERIT?s.Size.inherit:s.Size.SM},endIconProps:{size:o===l.BUTTON_LINK_SIZES.INHERIT?s.Size.inherit:s.Size.SM},iconLoadingProps:{size:o===l.BUTTON_LINK_SIZES.INHERIT?s.Size.inherit:s.Size.MD},disabled:n},u));n.ButtonLink=d,d.propTypes={className:o.default.string,danger:o.default.bool,disabled:o.default.bool,size:o.default.oneOf(Object.values(l.BUTTON_LINK_SIZES)),...i.ButtonBase.propTypes}}}},{package:"$root$",file:"ui/components/component-library/button-link/button-link.js"}],[3818,{"./button-link":3817,"./button-link.constants":3816},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BUTTON_LINK_SIZES",{enumerable:!0,get:function(){return o.BUTTON_LINK_SIZES}}),Object.defineProperty(n,"ButtonLink",{enumerable:!0,get:function(){return r.ButtonLink}});var r=e("./button-link"),o=e("./button-link.constants")}}},{package:"$root$",file:"ui/components/component-library/button-link/index.js"}],[3819,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.BUTTON_PRIMARY_SIZES=void 0;var r=e("../../../helpers/constants/design-system");const o={SM:r.Size.SM,MD:r.Size.MD,LG:r.Size.LG};n.BUTTON_PRIMARY_SIZES=o}}},{package:"$root$",file:"ui/components/component-library/button-primary/button-primary.constants.js"}],[3820,{"../../../helpers/constants/design-system":4070,"../button-base":3812,"./button-primary.constants":3819,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ButtonPrimary=void 0;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=e("../button-base"),s=e("../../../helpers/constants/design-system"),l=e("./button-primary.constants");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=({className:e,danger:t,disabled:n,size:o=l.BUTTON_PRIMARY_SIZES.MD,...u})=>r.default.createElement(i.ButtonBase,c({backgroundColor:t?s.BackgroundColor.errorDefault:s.BackgroundColor.primaryDefault,color:t?s.TextColor.errorInverse:s.TextColor.primaryInverse,className:(0,a.default)(e,"mm-button-primary",{"mm-button-primary--type-danger":t,"mm-button-primary--disabled":n}),size:o,disabled:n},u));n.ButtonPrimary=d,d.propTypes={className:o.default.string,danger:o.default.bool,disabled:o.default.bool,size:o.default.oneOf(Object.values(l.BUTTON_PRIMARY_SIZES)),...i.ButtonBase.propTypes}}}},{package:"$root$",file:"ui/components/component-library/button-primary/button-primary.js"}],[3821,{"./button-primary":3820,"./button-primary.constants":3819},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BUTTON_PRIMARY_SIZES",{enumerable:!0,get:function(){return o.BUTTON_PRIMARY_SIZES}}),Object.defineProperty(n,"ButtonPrimary",{enumerable:!0,get:function(){return r.ButtonPrimary}});var r=e("./button-primary"),o=e("./button-primary.constants")}}},{package:"$root$",file:"ui/components/component-library/button-primary/index.js"}],[3822,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.BUTTON_SECONDARY_SIZES=void 0;var r=e("../../../helpers/constants/design-system");const o={SM:r.Size.SM,MD:r.Size.MD,LG:r.Size.LG};n.BUTTON_SECONDARY_SIZES=o}}},{package:"$root$",file:"ui/components/component-library/button-secondary/button-secondary.constants.js"}],[3823,{"../../../helpers/constants/design-system":4070,"../button-base":3812,"./button-secondary.constants":3822,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ButtonSecondary=void 0;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=e("../button-base"),s=e("../../../helpers/constants/design-system"),l=e("./button-secondary.constants");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=({className:e,danger:t,disabled:n,size:o=l.BUTTON_SECONDARY_SIZES.MD,...u})=>{const d=t?s.Color.errorDefault:s.Color.primaryDefault;return r.default.createElement(i.ButtonBase,c({backgroundColor:s.Color.transparent,borderColor:d,color:d,className:(0,a.default)(e,"mm-button-secondary",{"mm-button-secondary--type-danger":t,"mm-button-secondary--disabled":n}),size:o,disabled:n},u))};n.ButtonSecondary=d,d.propTypes={className:o.default.string,danger:o.default.bool,disabled:o.default.bool,size:o.default.oneOf(Object.values(l.BUTTON_SECONDARY_SIZES)),...i.ButtonBase.propTypes}}}},{package:"$root$",file:"ui/components/component-library/button-secondary/button-secondary.js"}],[3824,{"./button-secondary":3823,"./button-secondary.constants":3822},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BUTTON_SECONDARY_SIZES",{enumerable:!0,get:function(){return o.BUTTON_SECONDARY_SIZES}}),Object.defineProperty(n,"ButtonSecondary",{enumerable:!0,get:function(){return r.ButtonSecondary}});var r=e("./button-secondary"),o=e("./button-secondary.constants")}}},{package:"$root$",file:"ui/components/component-library/button-secondary/index.js"}],[3825,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.BUTTON_TYPES=n.BUTTON_SIZES=void 0;var r=e("../../../helpers/constants/design-system");const o={SM:r.Size.SM,MD:r.Size.MD,LG:r.Size.LG,INHERIT:r.Size.inherit,AUTO:r.Size.auto};n.BUTTON_SIZES=o;n.BUTTON_TYPES={PRIMARY:"primary",SECONDARY:"secondary",LINK:"link"}}}},{package:"$root$",file:"ui/components/component-library/button/button.constants.js"}],[3826,{"../button-link":3818,"../button-primary":3821,"../button-secondary":3824,"./button.constants":3825,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Button=void 0;var r=u(e("react")),o=u(e("prop-types")),a=e("../button-primary"),i=e("../button-secondary"),s=e("../button-link"),l=e("./button.constants");function u(e){return e&&e.__esModule?e:{default:e}}const c=({type:e,...t})=>{switch(e){case l.BUTTON_TYPES.PRIMARY:return r.default.createElement(a.ButtonPrimary,t);case l.BUTTON_TYPES.SECONDARY:return r.default.createElement(i.ButtonSecondary,t);case l.BUTTON_TYPES.LINK:return r.default.createElement(s.ButtonLink,t);default:return r.default.createElement(a.ButtonPrimary,t)}};n.Button=c,c.propTypes={type:o.default.oneOf(Object.values(l.BUTTON_TYPES)),...a.ButtonPrimary.propTypes}}}},{package:"$root$",file:"ui/components/component-library/button/button.js"}],[3827,{"./button":3826,"./button.constants":3825},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BUTTON_SIZES",{enumerable:!0,get:function(){return o.BUTTON_SIZES}}),Object.defineProperty(n,"BUTTON_TYPES",{enumerable:!0,get:function(){return o.BUTTON_TYPES}}),Object.defineProperty(n,"Button",{enumerable:!0,get:function(){return r.Button}});var r=e("./button"),o=e("./button.constants")}}},{package:"$root$",file:"ui/components/component-library/button/index.js"}],[3828,{"../../../helpers/constants/design-system":4070,"../../ui/box/box":3899,"../help-text":3833,"../label":3844,"../text-field":3859,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FormTextField=void 0;var r=d(e("react")),o=d(e("prop-types")),a=d(e("classnames")),i=e("../../../helpers/constants/design-system"),s=d(e("../../ui/box/box")),l=e("../text-field"),u=e("../help-text"),c=e("../label");function d(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}const p=({autoComplete:e,autoFocus:t,className:n,defaultValue:o,disabled:d,error:p,helpText:m,helpTextProps:h,id:g,inputProps:b,inputRef:y,label:v,labelProps:T,startAccessory:_,maxLength:C,name:E,onBlur:O,onChange:w,onFocus:k,placeholder:N,readOnly:M,required:x,endAccessory:P,size:S=i.Size.MD,textFieldProps:j,truncate:I,type:A="text",value:L,...R})=>r.default.createElement(s.default,f({className:(0,a.default)("mm-form-text-field",{"mm-form-text-field--disabled":d},n),display:i.DISPLAY.FLEX,flexDirection:i.FLEX_DIRECTION.COLUMN},R),v&&r.default.createElement(c.Label,f({htmlFor:g},T,{className:(0,a.default)("mm-form-text-field__label",null==T?void 0:T.className)}),v),r.default.createElement(l.TextField,f({className:(0,a.default)("mm-form-text-field__text-field",null==j?void 0:j.className),id:g,autoComplete:e,autoFocus:t,defaultValue:o,disabled:d,error:p,id:g,inputProps:b,inputRef:y,startAccessory:_,maxLength:C,name:E,onBlur:O,onChange:w,onFocus:k,placeholder:N,readOnly:M,required:x,endAccessory:P,size:S,truncate:I,type:A,value:L},j)),m&&r.default.createElement(u.HelpText,f({severity:p&&i.SEVERITIES.DANGER,marginTop:1},h,{className:(0,a.default)("mm-form-text-field__help-text",null==h?void 0:h.className)}),m));n.FormTextField=p,p.propTypes={className:o.default.string,id:(e,t,n)=>e.label&&!e[t]?new Error(`If a label prop exists you must provide an ${t} prop for the label's htmlFor attribute for accessibility. Warning coming from ${n} ui/components/component-library/form-text-field/form-text-field.js`):null,label:o.default.string,labelProps:o.default.object,helpText:o.default.string,helpTextProps:o.default.object,textFieldProps:o.default.object,...l.TextField.propTypes}}}},{package:"$root$",file:"ui/components/component-library/form-text-field/form-text-field.js"}],[3829,{"./form-text-field":3828},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"FormTextField",{enumerable:!0,get:function(){return r.FormTextField}});var r=e("./form-text-field")}}},{package:"$root$",file:"ui/components/component-library/form-text-field/index.js"}],[3830,{"../../../helpers/constants/design-system":4070,"../../ui/box":3900,classnames:1980,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderBase=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=s(e("classnames")),a=e("../../../helpers/constants/design-system"),i=s(e("../../ui/box"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}n.HeaderBase=({startAccessory:e,endAccessory:t,className:n="",children:s,childrenWrapperProps:l,startAccessoryWrapperProps:c,endAccessoryWrapperProps:d,...f})=>{const p=(0,r.useRef)(null),m=(0,r.useRef)(null),[h,g]=(0,r.useState)();(0,r.useLayoutEffect)((()=>{function e(){if(p.current&&m.current){const e=Math.max(p.current.scrollWidth,m.current.scrollWidth);g(e)}else p.current&&!m.current?g(p.current.scrollWidth):!p.current&&m.current?g(m.current.scrollWidth):g(0)}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[p,m,s]);const b=(0,r.useMemo)((()=>e&&!t?{marginRight:`${h}px`}:!e&&t?{marginLeft:`${h}px`}:{}),[h,e,t]);return r.default.createElement(i.default,u({className:(0,o.default)("mm-header-base",n),display:a.DISPLAY.FLEX,justifyContent:a.JustifyContent.spaceBetween},f),e&&r.default.createElement(i.default,u({className:"mm-header-base__start-accessory",ref:p,style:s?{minWidth:`${h}px`}:undefined},c),e),s&&r.default.createElement(i.default,u({className:"mm-header-base__children",width:a.BLOCK_SIZES.FULL,style:b},l),s),t&&r.default.createElement(i.default,u({display:a.DISPLAY.FLEX,justifyContent:a.JustifyContent.flexEnd,className:"mm-header-base__end-accessory",ref:m,style:s?{minWidth:`${h}px`}:undefined},d),t))}}}},{package:"$root$",file:"ui/components/component-library/header-base/header-base.tsx"}],[3831,{"./header-base":3830},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HeaderBase",{enumerable:!0,get:function(){return r.HeaderBase}});var r=e("./header-base")}}},{package:"$root$",file:"ui/components/component-library/header-base/index.ts"}],[3832,{"../../../helpers/constants/design-system":4070,"../text":3865,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HelpText=void 0;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("../../../helpers/constants/design-system"),s=e("../text");function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const c=({severity:e,color:t=i.Color.textDefault,className:n,children:o,...l})=>r.default.createElement(s.Text,u({className:(0,a.default)("mm-help-text",n),as:o&&"object"==typeof o?"div":"p",variant:i.TextVariant.bodyXs,color:e?(()=>{switch(e){case i.SEVERITIES.DANGER:return i.TextColor.errorDefault;case i.SEVERITIES.WARNING:return i.TextColor.warningDefault;case i.SEVERITIES.SUCCESS:return i.TextColor.successDefault;case i.SEVERITIES.INFO:return i.TextColor.infoDefault;default:return i.TextColor.textDefault}})():t},l),o);n.HelpText=c,c.propTypes={color:o.default.oneOf(Object.values(i.TextColor)),children:o.default.oneOfType([o.default.string,o.default.node]),className:o.default.string,...s.Text.propTypes}}}},{package:"$root$",file:"ui/components/component-library/help-text/help-text.js"}],[3833,{"./help-text":3832},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HelpText",{enumerable:!0,get:function(){return r.HelpText}});var r=e("./help-text")}}},{package:"$root$",file:"ui/components/component-library/help-text/index.js"}],[3834,{"../../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ICON_SIZES=n.ICON_NAMES=void 0;var r=e("../../../../helpers/constants/design-system");const o=JSON.parse('{"ADD_SQUARE":"add-square","ADD":"add","ARROW_2_DOWN":"arrow-2-down","ARROW_2_LEFT":"arrow-2-left","ARROW_2_RIGHT":"arrow-2-right","ARROW_2_UP":"arrow-2-up","ARROW_DOUBLE_LEFT":"arrow-double-left","ARROW_DOUBLE_RIGHT":"arrow-double-right","ARROW_DOWN":"arrow-down","ARROW_LEFT":"arrow-left","ARROW_RIGHT":"arrow-right","ARROW_UP":"arrow-up","BANK_TOKEN":"bank-token","BANK":"bank","BOOK":"book","BOOKMARK":"bookmark","BRIDGE":"bridge","CALCULATOR":"calculator","CARD_POS":"card-pos","CARD_TOKEN":"card-token","CARD":"card","CATEGORY":"category","CHART":"chart","CHECK":"check","CLOCK":"clock","CLOSE":"close","CODE_CIRCLE":"code-circle","COIN":"coin","CONFIRMATION":"confirmation","CONNECT":"connect","COPY_SUCCESS":"copy-success","COPY":"copy","DANGER":"danger","DARK":"dark","DATA":"data","DIAGRAM":"diagram","DOCUMENT_CODE":"document-code","EDIT":"edit","ERASER":"eraser","ETHEREUM":"ethereum","EXPAND":"expand","EXPLORE":"explore","EXPORT":"export","EYE_SLASH":"eye-slash","EYE":"eye","FILTER":"filter","FLAG":"flag","FLASH_SLASH":"flash-slash","FLASH":"flash","FULL_CIRCLE":"full-circle","GAS":"gas","GLOBAL_SEARCH":"global-search","GLOBAL":"global","GRAPH":"graph","HARDWARE":"hardware","HEART":"heart","HIERARCHY":"hierarchy","HOME":"home","IMPORT":"import","INFO":"info","KEY":"key","LIGHT":"light","LINK":"link","LOADING":"loading","LOCK_CIRCLE":"lock-circle","LOCK_SLASH":"lock-slash","LOCK":"lock","LOGIN":"login","LOGOUT":"logout","MENU":"menu","MESSAGE_QUESTION":"message-question","MESSAGES":"messages","MINUS_SQUARE":"minus-square","MINUS":"minus","MOBILE":"mobile","MONEY":"money","MONITOR":"monitor","MORE_HORIZONTAL":"more-horizontal","MORE_VERTICAL":"more-vertical","NOTIFICATION_CIRCLE":"notification-circle","NOTIFICATION":"notification","PASSWORD_CHECK":"password-check","PEOPLE":"people","PROGRAMMING_ARROWS":"programming-arrows","QUESTION":"question","RECEIVED":"received","REFRESH":"refresh","SAVE":"save","SCAN_BARCODE":"scan-barcode","SCAN_FOCUS":"scan-focus","SCAN":"scan","SCROLL":"scroll","SEARCH":"search","SECURITY_CARD":"security-card","SECURITY_CROSS":"security-cross","SECURITY_KEY":"security-key","SECURITY_SEARCH":"security-search","SECURITY_SLASH":"security-slash","SECURITY_TICK":"security-tick","SECURITY_TIME":"security-time","SECURITY_USER":"security-user","SECURITY":"security","SEND_1":"send-1","SEND_2":"send-2","SETTING":"setting","SLASH":"slash","SNAPS_MOBILE":"snaps-mobile","SNAPS_PLUS":"snaps-plus","SNAPS":"snaps","SPEEDOMETER":"speedometer","STAR":"star","STUDENT":"student","SWAP_HORIZONTAL":"swap-horizontal","SWAP_VERTICAL":"swap-vertical","TAG":"tag","TILDE":"tilde","TIMER":"timer","TRASH":"trash","TREND_DOWN":"trend-down","TREND_UP":"trend-up","USER_CIRCLE_ADD":"user-circle-add","USER_CIRCLE":"user-circle","USER":"user","WALLET_CARD":"wallet-card","WALLET_MONEY":"wallet-money","WALLET":"wallet","WARNING":"warning"}');n.ICON_NAMES=o;const a={XS:r.Size.XS,SM:r.Size.SM,MD:r.Size.MD,LG:r.Size.LG,XL:r.Size.XL,AUTO:r.Size.inherit};n.ICON_SIZES=a}}},{package:"$root$",file:"ui/components/component-library/icon/deprecated/icon.constants.js"}],[3835,{"../../../../helpers/constants/design-system":4070,"../../../ui/box/box":3899,"./icon.constants":3834,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Icon=void 0;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=u(e("../../../ui/box/box")),s=e("../../../../helpers/constants/design-system"),l=e("./icon.constants");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=({name:e,size:t=s.Size.MD,color:n=s.IconColor.inherit,className:o,style:l,...u})=>r.default.createElement(i.default,c({className:(0,a.default)(o,"mm-icon",`mm-icon--size-${t}`),as:"span",display:s.DISPLAY.INLINE_BLOCK,color:n,style:{maskImage:`url('./images/icons/${e}.svg')`,WebkitMaskImage:`url('./images/icons/${e}.svg')`,...l}},u));n.Icon=d,d.propTypes={name:o.default.oneOf(Object.values(l.ICON_NAMES)).isRequired,size:o.default.oneOf(Object.values(l.ICON_SIZES)),color:o.default.oneOf(Object.values(s.IconColor)),className:o.default.string,style:o.default.object,...i.default.propTypes}}}},{package:"$root$",file:"ui/components/component-library/icon/deprecated/icon.js"}],[3836,{"./icon":3835,"./icon.constants":3834},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ICON_NAMES",{enumerable:!0,get:function(){return o.ICON_NAMES}}),Object.defineProperty(n,"ICON_SIZES",{enumerable:!0,get:function(){return o.ICON_SIZES}}),Object.defineProperty(n,"Icon",{enumerable:!0,get:function(){return r.Icon}});var r=e("./icon"),o=e("./icon.constants")}}},{package:"$root$",file:"ui/components/component-library/icon/deprecated/index.js"}],[3837,{"../../../helpers/constants/design-system":4070,"../../ui/box/box":3899,"./icon.types":3838,classnames:1980,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Icon=void 0;var r=l(e("react")),o=l(e("classnames")),a=l(e("../../ui/box/box")),i=e("../../../helpers/constants/design-system"),s=e("./icon.types");function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}n.Icon=({name:e,size:t=s.IconSize.Md,color:n=i.IconColor.inherit,className:l="",style:c,...d})=>r.default.createElement(a.default,u({className:(0,o.default)(l,"mm-icon",`mm-icon--size-${t}`),as:"span",display:i.DISPLAY.INLINE_BLOCK,color:n,style:{maskImage:`url('./images/icons/${String(e)}.svg')`,WebkitMaskImage:`url('./images/icons/${String(e)}.svg')`,...c}},d))}}},{package:"$root$",file:"ui/components/component-library/icon/icon.tsx"}],[3838,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){let r,o;Object.defineProperty(n,"__esModule",{value:!0}),n.IconSize=n.IconName=void 0,n.IconSize=r,function(e){e.Xs="xs",e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e.Inherit="inherit"}(r||(n.IconSize=r={})),n.IconName=o,function(e){e.AddSquare="add-square",e.Add="add",e.Arrow2Down="arrow-2-down",e.Arrow2Left="arrow-2-left",e.Arrow2Right="arrow-2-right",e.Arrow2Up="arrow-2-up",e.ArrowDoubleLeft="arrow-double-left",e.ArrowDoubleRight="arrow-double-right",e.ArrowDown="arrow-down",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.ArrowUp="arrow-up",e.BankToken="bank-token",e.Bank="bank",e.Book="book",e.Bookmark="bookmark",e.Bridge="bridge",e.Calculator="calculator",e.CardPos="card-pos",e.CardToken="card-token",e.Card="card",e.Category="category",e.Chart="chart",e.Check="check",e.Clock="clock",e.Close="close",e.CodeCircle="code-circle",e.Coin="coin",e.Confirmation="confirmation",e.Connect="connect",e.CopySuccess="copy-success",e.Copy="copy",e.Danger="danger",e.Dark="dark",e.Data="data",e.Diagram="diagram",e.DocumentCode="document-code",e.Edit="edit",e.Eraser="eraser",e.Ethereum="ethereum",e.Expand="expand",e.Explore="explore",e.Export="export",e.EyeSlash="eye-slash",e.Eye="eye",e.Filter="filter",e.Flag="flag",e.FlashSlash="flash-slash",e.Flash="flash",e.FullCircle="full-circle",e.Gas="gas",e.GlobalSearch="global-search",e.Global="global",e.Graph="graph",e.Hardware="hardware",e.Heart="heart",e.Hierarchy="hierarchy",e.Home="home",e.Import="import",e.Info="info",e.Key="key",e.Light="light",e.Link="link",e.Loading="loading",e.LockCircle="lock-circle",e.LockSlash="lock-slash",e.Lock="lock",e.Login="login",e.Logout="logout",e.Menu="menu",e.MessageQuestion="message-question",e.Messages="messages",e.MinusSquare="minus-square",e.Minus="minus",e.Mobile="mobile",e.Money="money",e.Monitor="monitor",e.MoreHorizontal="more-horizontal",e.MoreVertical="more-vertical",e.NotificationCircle="notification-circle",e.Notification="notification",e.PasswordCheck="password-check",e.People="people",e.ProgrammingArrows="programming-arrows",e.Question="question",e.Received="received",e.Refresh="refresh",e.Save="save",e.ScanBarcode="scan-barcode",e.ScanFocus="scan-focus",e.Scan="scan",e.Scroll="scroll",e.Search="search",e.SecurityCard="security-card",e.SecurityCross="security-cross",e.SecurityKey="security-key",e.SecuritySearch="security-search",e.SecuritySlash="security-slash",e.SecurityTick="security-tick",e.SecurityTime="security-time",e.SecurityUser="security-user",e.Security="security",e.Send1="send-1",e.Send2="send-2",e.Setting="setting",e.Slash="slash",e.SnapsMobile="snaps-mobile",e.SnapsPlus="snaps-plus",e.Snaps="snaps",e.Speedometer="speedometer",e.Star="star",e.Student="student",e.SwapHorizontal="swap-horizontal",e.SwapVertical="swap-vertical",e.Tag="tag",e.Tilde="tilde",e.Timer="timer",e.Trash="trash",e.TrendDown="trend-down",e.TrendUp="trend-up",e.UserCircleAdd="user-circle-add",e.UserCircle="user-circle",e.User="user",e.WalletCard="wallet-card",e.WalletMoney="wallet-money",e.Wallet="wallet",e.Warning="warning"}(o||(n.IconName=o={}))}}},{package:"$root$",file:"ui/components/component-library/icon/icon.types.ts"}],[3839,{"./icon":3837,"./icon.types":3838},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Icon",{enumerable:!0,get:function(){return r.Icon}}),Object.defineProperty(n,"IconName",{enumerable:!0,get:function(){return o.IconName}}),Object.defineProperty(n,"IconSize",{enumerable:!0,get:function(){return o.IconSize}});var r=e("./icon"),o=e("./icon.types")}}},{package:"$root$",file:"ui/components/component-library/icon/index.ts"}],[3840,{"./avatar-account":3783,"./avatar-base":3786,"./avatar-favicon":3789,"./avatar-icon":3792,"./avatar-network":3795,"./avatar-token":3798,"./badge-wrapper":3801,"./banner-alert":3804,"./banner-base":3806,"./banner-tip":3809,"./button":3827,"./button-base":3812,"./button-icon":3815,"./button-link":3818,"./button-primary":3821,"./button-secondary":3824,"./form-text-field":3829,"./header-base":3831,"./help-text":3833,"./icon":3839,"./input":3841,"./label":3844,"./modal-content":3846,"./modal-overlay":3849,"./picker-network":3851,"./tag":3855,"./tag-url":3853,"./text":3865,"./text-field":3859,"./text-field-search":3857},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AVATAR_FAVICON_SIZES",{enumerable:!0,get:function(){return o.AVATAR_FAVICON_SIZES}}),Object.defineProperty(n,"AVATAR_ICON_SIZES",{enumerable:!0,get:function(){return a.AVATAR_ICON_SIZES}}),Object.defineProperty(n,"AVATAR_NETWORK_SIZES",{enumerable:!0,get:function(){return i.AVATAR_NETWORK_SIZES}}),Object.defineProperty(n,"AvatarAccount",{enumerable:!0,get:function(){return r.AvatarAccount}}),Object.defineProperty(n,"AvatarAccountDiameter",{enumerable:!0,get:function(){return r.AvatarAccountDiameter}}),Object.defineProperty(n,"AvatarAccountSize",{enumerable:!0,get:function(){return r.AvatarAccountSize}}),Object.defineProperty(n,"AvatarAccountVariant",{enumerable:!0,get:function(){return r.AvatarAccountVariant}}),Object.defineProperty(n,"AvatarBase",{enumerable:!0,get:function(){return u.AvatarBase}}),Object.defineProperty(n,"AvatarFavicon",{enumerable:!0,get:function(){return o.AvatarFavicon}}),Object.defineProperty(n,"AvatarIcon",{enumerable:!0,get:function(){return a.AvatarIcon}}),Object.defineProperty(n,"AvatarNetwork",{enumerable:!0,get:function(){return i.AvatarNetwork}}),Object.defineProperty(n,"AvatarToken",{enumerable:!0,get:function(){return s.AvatarToken}}),Object.defineProperty(n,"BANNER_ALERT_SEVERITIES",{enumerable:!0,get:function(){return S.BANNER_ALERT_SEVERITIES}}),Object.defineProperty(n,"BUTTON_BASE_SIZES",{enumerable:!0,get:function(){return d.BUTTON_BASE_SIZES}}),Object.defineProperty(n,"BUTTON_ICON_SIZES",{enumerable:!0,get:function(){return f.BUTTON_ICON_SIZES}}),Object.defineProperty(n,"BUTTON_LINK_SIZES",{enumerable:!0,get:function(){return p.BUTTON_LINK_SIZES}}),Object.defineProperty(n,"BUTTON_PRIMARY_SIZES",{enumerable:!0,get:function(){return m.BUTTON_PRIMARY_SIZES}}),Object.defineProperty(n,"BUTTON_SECONDARY_SIZES",{enumerable:!0,get:function(){return h.BUTTON_SECONDARY_SIZES}}),Object.defineProperty(n,"BUTTON_SIZES",{enumerable:!0,get:function(){return c.BUTTON_SIZES}}),Object.defineProperty(n,"BUTTON_TYPES",{enumerable:!0,get:function(){return c.BUTTON_TYPES}}),Object.defineProperty(n,"BadgeWrapper",{enumerable:!0,get:function(){return l.BadgeWrapper}}),Object.defineProperty(n,"BadgeWrapperAnchorElementShape",{enumerable:!0,get:function(){return l.BadgeWrapperAnchorElementShape}}),Object.defineProperty(n,"BadgeWrapperPosition",{enumerable:!0,get:function(){return l.BadgeWrapperPosition}}),Object.defineProperty(n,"BannerAlert",{enumerable:!0,get:function(){return S.BannerAlert}}),Object.defineProperty(n,"BannerBase",{enumerable:!0,get:function(){return P.BannerBase}}),Object.defineProperty(n,"BannerTip",{enumerable:!0,get:function(){return j.BannerTip}}),Object.defineProperty(n,"BannerTipLogoType",{enumerable:!0,get:function(){return j.BannerTipLogoType}}),Object.defineProperty(n,"Button",{enumerable:!0,get:function(){return c.Button}}),Object.defineProperty(n,"ButtonBase",{enumerable:!0,get:function(){return d.ButtonBase}}),Object.defineProperty(n,"ButtonIcon",{enumerable:!0,get:function(){return f.ButtonIcon}}),Object.defineProperty(n,"ButtonLink",{enumerable:!0,get:function(){return p.ButtonLink}}),Object.defineProperty(n,"ButtonPrimary",{enumerable:!0,get:function(){return m.ButtonPrimary}}),Object.defineProperty(n,"ButtonSecondary",{enumerable:!0,get:function(){return h.ButtonSecondary}}),Object.defineProperty(n,"FormTextField",{enumerable:!0,get:function(){return g.FormTextField}}),Object.defineProperty(n,"HeaderBase",{enumerable:!0,get:function(){return b.HeaderBase}}),Object.defineProperty(n,"HelpText",{enumerable:!0,get:function(){return y.HelpText}}),Object.defineProperty(n,"INPUT_TYPES",{enumerable:!0,get:function(){return w.INPUT_TYPES}}),Object.defineProperty(n,"Icon",{enumerable:!0,get:function(){return v.Icon}}),Object.defineProperty(n,"IconName",{enumerable:!0,get:function(){return v.IconName}}),Object.defineProperty(n,"IconSize",{enumerable:!0,get:function(){return v.IconSize}}),Object.defineProperty(n,"Input",{enumerable:!0,get:function(){return w.Input}}),Object.defineProperty(n,"InvisibleCharacter",{enumerable:!0,get:function(){return O.InvisibleCharacter}}),Object.defineProperty(n,"Label",{enumerable:!0,get:function(){return T.Label}}),Object.defineProperty(n,"ModalContent",{enumerable:!0,get:function(){return M.ModalContent}}),Object.defineProperty(n,"ModalContentSize",{enumerable:!0,get:function(){return M.ModalContentSize}}),Object.defineProperty(n,"ModalOverlay",{enumerable:!0,get:function(){return x.ModalOverlay}}),Object.defineProperty(n,"PickerNetwork",{enumerable:!0,get:function(){return _.PickerNetwork}}),Object.defineProperty(n,"TEXT_FIELD_SIZES",{enumerable:!0,get:function(){return k.TEXT_FIELD_SIZES}}),Object.defineProperty(n,"TEXT_FIELD_TYPES",{enumerable:!0,get:function(){return k.TEXT_FIELD_TYPES}}),Object.defineProperty(n,"Tag",{enumerable:!0,get:function(){return C.Tag}}),Object.defineProperty(n,"TagUrl",{enumerable:!0,get:function(){return E.TagUrl}}),Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return O.Text}}),Object.defineProperty(n,"TextDirection",{enumerable:!0,get:function(){return O.TextDirection}}),Object.defineProperty(n,"TextField",{enumerable:!0,get:function(){return k.TextField}}),Object.defineProperty(n,"TextFieldSearch",{enumerable:!0,get:function(){return N.TextFieldSearch}}),Object.defineProperty(n,"ValidTag",{enumerable:!0,get:function(){return O.ValidTag}});var r=e("./avatar-account"),o=e("./avatar-favicon"),a=e("./avatar-icon"),i=e("./avatar-network"),s=e("./avatar-token"),l=e("./badge-wrapper"),u=e("./avatar-base"),c=e("./button"),d=e("./button-base"),f=e("./button-icon"),p=e("./button-link"),m=e("./button-primary"),h=e("./button-secondary"),g=e("./form-text-field"),b=e("./header-base"),y=e("./help-text"),v=e("./icon"),T=e("./label"),_=e("./picker-network"),C=e("./tag"),E=e("./tag-url"),O=e("./text"),w=e("./input"),k=e("./text-field"),N=e("./text-field-search"),M=e("./modal-content"),x=e("./modal-overlay"),P=e("./banner-base"),S=e("./banner-alert"),j=e("./banner-tip")}}},{package:"$root$",file:"ui/components/component-library/index.js"}],[3841,{"./input":3843,"./input.constants":3842},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"INPUT_TYPES",{enumerable:!0,get:function(){return o.INPUT_TYPES}}),Object.defineProperty(n,"Input",{enumerable:!0,get:function(){return r.Input}});var r=e("./input"),o=e("./input.constants")}}},{package:"$root$",file:"ui/components/component-library/input/index.js"}],[3842,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.INPUT_TYPES=void 0;n.INPUT_TYPES={TEXT:"text",NUMBER:"number",PASSWORD:"password",SEARCH:"search"}}}},{package:"$root$",file:"ui/components/component-library/input/input.constants.js"}],[3843,{"../../../helpers/constants/design-system":4070,"../../ui/box":3900,"../text":3865,"./input.constants":3842,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Input=void 0;var r=c(e("react")),o=c(e("prop-types")),a=c(e("classnames")),i=e("../../../helpers/constants/design-system"),s=c(e("../../ui/box")),l=e("../text"),u=e("./input.constants");function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const f=r.default.forwardRef((({autoComplete:e,autoFocus:t,className:n,defaultValue:o,disabled:s,error:u,id:c,maxLength:f,name:p,onBlur:m,onChange:h,onFocus:g,placeholder:b,readOnly:y,required:v,type:T="text",value:_,textVariant:C=i.TextVariant.bodyMd,disableStateStyles:E,...O},w)=>r.default.createElement(l.Text,d({className:(0,a.default)("mm-input",{"mm-input--disable-state-styles":E,"mm-input--disabled":s&&!E},n),"aria-invalid":u,as:"input",autoComplete:e?"on":"off",autoFocus:t,backgroundColor:i.BackgroundColor.transparent,borderStyle:i.BorderStyle.none,defaultValue:o,disabled:s,id:c,margin:0,maxLength:f,name:p,onBlur:m,onChange:h,onFocus:g,padding:0,placeholder:b,readOnly:y,ref:w,required:v,value:_,variant:C,type:T},O))));n.Input=f,f.propTypes={autoComplete:o.default.bool,autoFocus:o.default.bool,className:o.default.string,defaultValue:o.default.oneOfType([o.default.string,o.default.number]),disabled:o.default.bool,disableStateStyles:o.default.bool,error:o.default.bool,id:o.default.string,maxLength:o.default.number,name:o.default.string,onBlur:o.default.func,onChange:o.default.func,onFocus:o.default.func,placeholder:o.default.string,readOnly:o.default.bool,required:o.default.bool,textVariant:o.default.oneOf(Object.values(i.TextVariant)),type:o.default.oneOf(Object.values(u.INPUT_TYPES)),value:o.default.oneOfType([o.default.string,o.default.number]),...s.default.propTypes},f.displayName="Input"}}},{package:"$root$",file:"ui/components/component-library/input/input.js"}],[3844,{"./label":3845},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Label",{enumerable:!0,get:function(){return r.Label}});var r=e("./label")}}},{package:"$root$",file:"ui/components/component-library/label/index.js"}],[3845,{"../../../helpers/constants/design-system":4070,"../text":3865,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Label=void 0;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("../text"),s=e("../../../helpers/constants/design-system");function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const c=({htmlFor:e,className:t,children:n,...o})=>r.default.createElement(i.Text,u({className:(0,a.default)("mm-label",{"mm-label--html-for":e},t),as:"label",htmlFor:e,variant:s.TextVariant.bodyMd,fontWeight:s.FONT_WEIGHT.BOLD,display:s.DISPLAY.INLINE_FLEX,alignItems:s.AlignItems.center},o),n);n.Label=c,c.propTypes={children:o.default.oneOfType([o.default.string,o.default.node]),htmlFor:o.default.string,className:o.default.string}}}},{package:"$root$",file:"ui/components/component-library/label/label.js"}],[3846,{"./modal-content":3847,"./modal-content.types":3848},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ModalContent",{enumerable:!0,get:function(){return r.ModalContent}}),Object.defineProperty(n,"ModalContentSize",{enumerable:!0,get:function(){return o.ModalContentSize}});var r=e("./modal-content"),o=e("./modal-content.types")}}},{package:"$root$",file:"ui/components/component-library/modal-content/index.ts"}],[3847,{"../../../helpers/constants/design-system":4070,"../../ui/box/box":3899,"./modal-content.types":3848,classnames:1980,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ModalContent=void 0;var r=l(e("react")),o=l(e("classnames")),a=e("../../../helpers/constants/design-system"),i=l(e("../../ui/box/box")),s=e("./modal-content.types");function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}n.ModalContent=({className:e="",children:t,size:n=s.ModalContentSize.Sm,width:l,modalContentRef:c,...d})=>r.default.createElement(i.default,u({className:(0,o.default)("mm-modal-content",{[`mm-modal-content--size-${n}`]:!l},e),backgroundColor:a.BackgroundColor.backgroundDefault,borderRadius:a.BorderRadius.LG,width:l||a.BLOCK_SIZES.FULL,padding:4,ref:c},d),t)}}},{package:"$root$",file:"ui/components/component-library/modal-content/modal-content.tsx"}],[3848,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ModalContentSize=void 0;var r=e("../../../helpers/constants/design-system");let o;n.ModalContentSize=o,function(e){e[e.Sm=r.Size.SM]="Sm"}(o||(n.ModalContentSize=o={}))}}},{package:"$root$",file:"ui/components/component-library/modal-content/modal-content.types.ts"}],[3849,{"./modal-overlay":3850},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ModalOverlay",{enumerable:!0,get:function(){return r.ModalOverlay}});var r=e("./modal-overlay")}}},{package:"$root$",file:"ui/components/component-library/modal-overlay/index.ts"}],[3850,{"../../../helpers/constants/design-system":4070,"../../ui/box/box":3899,classnames:1980,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ModalOverlay=void 0;var r=s(e("react")),o=s(e("classnames")),a=e("../../../helpers/constants/design-system"),i=s(e("../../ui/box/box"));function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const u=({onClick:e,className:t="",...n})=>r.default.createElement(i.default,l({className:(0,o.default)("mm-modal-overlay",t),backgroundColor:a.BackgroundColor.overlayDefault,width:a.BLOCK_SIZES.FULL,height:a.BLOCK_SIZES.FULL,onClick:e},n));n.ModalOverlay=u;var c=u;n.default=c}}},{package:"$root$",file:"ui/components/component-library/modal-overlay/modal-overlay.tsx"}],[3851,{"./picker-network":3852},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PickerNetwork",{enumerable:!0,get:function(){return r.PickerNetwork}});var r=e("./picker-network")}}},{package:"$root$",file:"ui/components/component-library/picker-network/index.js"}],[3852,{"../../../helpers/constants/design-system":4070,"../../ui/box":3900,"../avatar-network":3795,"../icon":3839,"../text":3865,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PickerNetwork=void 0;var r=d(e("react")),o=d(e("prop-types")),a=d(e("classnames")),i=e("../avatar-network"),s=e("../icon"),l=e("../text"),u=d(e("../../ui/box")),c=e("../../../helpers/constants/design-system");function d(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}const p=({className:e,avatarNetworkProps:t,iconProps:n,label:o,src:d,...p})=>r.default.createElement(u.default,f({className:(0,a.default)("mm-picker-network",e),as:"button",backgroundColor:c.BackgroundColor.backgroundAlternative,alignItems:c.AlignItems.center,paddingLeft:2,paddingRight:4,gap:2,borderRadius:c.BorderRadius.pill,display:c.DISPLAY.FLEX},p),r.default.createElement(i.AvatarNetwork,f({className:"mm-picker-network__avatar-network",src:d,name:o,size:c.Size.XS},t)),r.default.createElement(l.Text,{ellipsis:!0,variant:c.TextVariant.bodySm},o),r.default.createElement(s.Icon,f({className:"mm-picker-network__arrow-down-icon",name:s.IconName.ArrowDown,color:c.IconColor.iconDefault,size:s.IconSize.Xs},n)));n.PickerNetwork=p,p.propTypes={src:o.default.string,className:o.default.string,avatarNetworkProps:o.default.shape(i.AvatarNetwork.PropTypes),iconProps:o.default.object,label:o.default.string.isRequired,...u.default.propTypes}}}},{package:"$root$",file:"ui/components/component-library/picker-network/picker-network.js"}],[3853,{"./tag-url":3854},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"TagUrl",{enumerable:!0,get:function(){return r.TagUrl}});var r=e("./tag-url")}}},{package:"$root$",file:"ui/components/component-library/tag-url/index.js"}],[3854,{"..":3840,"../../../helpers/constants/design-system":4070,"../../ui/box/box":3899,"../text":3865,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.TagUrl=void 0;var r=c(e("react")),o=c(e("prop-types")),a=c(e("classnames")),i=c(e("../../ui/box/box")),s=e("../text"),l=e("../../../helpers/constants/design-system"),u=e("..");function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}const f=({label:e,labelProps:t,actionButtonLabel:n,actionButtonProps:o,src:c,showLockIcon:f,avatarFaviconProps:p,lockIconProps:m,className:h,...g})=>r.default.createElement(i.default,d({className:(0,a.default)("mm-tag-url",h),backgroundColor:l.BackgroundColor.backgroundDefault,borderColor:l.BorderColor.borderDefault,borderWidth:1,alignItems:l.AlignItems.center,paddingLeft:2,paddingRight:4,gap:2,borderRadius:l.BorderRadius.pill,display:l.DISPLAY.FLEX},g),r.default.createElement(u.AvatarFavicon,d({src:c,name:e},p)),f&&r.default.createElement(u.Icon,d({className:"mm-tag-url__lock-icon",name:u.IconName.Lock,color:l.IconColor.iconAlternative,size:u.IconSize.Sm,"aria-label":"https://",role:"img"},m)),r.default.createElement(s.Text,d({variant:l.TextVariant.bodyMd,ellipsis:!0},t),e),n&&r.default.createElement(u.ButtonLink,d({as:"a",size:l.Size.SM,paddingLeft:0,paddingRight:0,marginLeft:2,marginRight:2},o),n));n.TagUrl=f,f.propTypes={src:o.default.string,showLockIcon:o.default.bool,avatarFaviconProps:o.default.shape(u.AvatarFavicon.PropTypes),lockIconProps:o.default.object,label:o.default.string.isRequired,labelProps:o.default.shape(s.Text.PropTypes),actionButtonLabel:o.default.oneOfType([o.default.string,o.default.node]),actionButtonProps:o.default.shape(u.ButtonLink.PropTypes),className:o.default.string,...i.default.propTypes};var p=f;n.default=p}}},{package:"$root$",file:"ui/components/component-library/tag-url/tag-url.js"}],[3855,{"./tag":3856},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Tag",{enumerable:!0,get:function(){return r.Tag}});var r=e("./tag")}}},{package:"$root$",file:"ui/components/component-library/tag/index.js"}],[3856,{"../../../helpers/constants/design-system":4070,"../../ui/box/box":3899,"../text":3865,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Tag=void 0;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=u(e("../../ui/box/box")),s=e("../text"),l=e("../../../helpers/constants/design-system");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=({label:e,className:t,labelProps:n,...o})=>r.default.createElement(i.default,c({className:(0,a.default)("mm-tag",t),backgroundColor:l.BackgroundColor.backgroundDefault,borderColor:l.BorderColor.borderDefault,borderWidth:1,justifyContent:l.JustifyContent.center,alignItems:l.AlignItems.center,paddingLeft:1,paddingRight:1,borderRadius:l.BorderRadius.pill,display:l.DISPLAY.INLINE_BLOCK},o),r.default.createElement(s.Text,c({variant:l.TextVariant.bodySm},n),e));n.Tag=d,d.propTypes={label:o.default.string,labelProps:o.default.shape(s.Text.PropTypes),className:o.default.string,...i.default.propTypes}}}},{package:"$root$",file:"ui/components/component-library/tag/tag.js"}],[3857,{"./text-field-search":3858},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"TextFieldSearch",{enumerable:!0,get:function(){return r.TextFieldSearch}});var r=e("./text-field-search")}}},{package:"$root$",file:"ui/components/component-library/text-field-search/index.js"}],[3858,{"..":3840,"../../../helpers/constants/design-system":4070,"../text-field":3859,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TextFieldSearch=void 0;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=e("../../../helpers/constants/design-system"),s=e(".."),l=e("../text-field");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=({className:e,showClearButton:t=!0,clearButtonOnClick:n,clearButtonProps:o,endAccessory:u,inputProps:d,value:f,onChange:p,...m})=>r.default.createElement(l.TextField,c({className:(0,a.default)("mm-text-field-search",e),value:f,onChange:p,type:l.TEXT_FIELD_TYPES.SEARCH,endAccessory:f&&t?r.default.createElement(r.default.Fragment,null,r.default.createElement(s.ButtonIcon,c({className:"mm-text-field__button-clear",ariaLabel:"Clear",iconName:s.IconName.Close,size:i.Size.SM,onClick:n},o)),u):u,startAccessory:r.default.createElement(s.Icon,{name:s.IconName.Search,size:s.IconSize.Sm}),inputProps:{marginRight:t?6:0,...d}},m));n.TextFieldSearch=d,d.propTypes={value:l.TextField.propTypes.value,onChange:l.TextField.propTypes.onChange,showClearButton:o.default.bool,clearButtonOnClick:(e,t,n)=>{var r;return!e.showClearButton||e[t]&&null!==(r=e.clearButtonProps)&&void 0!==r&&r.onClick?null:new Error(`${t} is required unless showClearButton is false. Warning coming from ${n} ui/components/component-library/text-field-search/text-field-search.js`)},clearButtonProps:o.default.shape(s.ButtonIcon.PropTypes),className:o.default.string,endAccessory:o.default.node,inputProps:o.default.object,...l.TextField.propTypes},d.displayName="TextFieldSearch"}}},{package:"$root$",file:"ui/components/component-library/text-field-search/text-field-search.js"}],[3859,{"./text-field":3861,"./text-field.constants":3860},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"TEXT_FIELD_SIZES",{enumerable:!0,get:function(){return o.TEXT_FIELD_SIZES}}),Object.defineProperty(n,"TEXT_FIELD_TYPES",{enumerable:!0,get:function(){return o.TEXT_FIELD_TYPES}}),Object.defineProperty(n,"TextField",{enumerable:!0,get:function(){return r.TextField}});var r=e("./text-field"),o=e("./text-field.constants")}}},{package:"$root$",file:"ui/components/component-library/text-field/index.js"}],[3860,{"../../../helpers/constants/design-system":4070},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TEXT_FIELD_TYPES=n.TEXT_FIELD_SIZES=void 0;var r=e("../../../helpers/constants/design-system");const o={SM:r.Size.SM,MD:r.Size.MD,LG:r.Size.LG};n.TEXT_FIELD_SIZES=o;n.TEXT_FIELD_TYPES={TEXT:"text",NUMBER:"number",PASSWORD:"password",SEARCH:"search"}}}},{package:"$root$",file:"ui/components/component-library/text-field/text-field.constants.js"}],[3861,{"../../../helpers/constants/design-system":4070,"../../ui/box":3900,"../input":3841,"./text-field.constants":3860,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TextField=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=c(e("prop-types")),a=c(e("classnames")),i=e("../../../helpers/constants/design-system"),s=c(e("../../ui/box")),l=e("../input"),u=e("./text-field.constants");function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}const p=({autoComplete:e,autoFocus:t,className:n,defaultValue:o,disabled:u,error:c,id:d,inputProps:p,inputRef:m,startAccessory:h,endAccessory:g,maxLength:b,name:y,onBlur:v,onChange:T,onClick:_,onFocus:C,placeholder:E,readOnly:O,required:w,size:k=i.Size.MD,type:N="text",truncate:M=!0,value:x,InputComponent:P=l.Input,...S})=>{const j=(0,r.useRef)(null),[I,A]=(0,r.useState)(!1);(0,r.useEffect)((()=>{u&&A(!1)}),[u]);return r.default.createElement(s.default,f({className:(0,a.default)("mm-text-field",`mm-text-field--size-${k}`,{"mm-text-field--focused":I&&!u,"mm-text-field--error":c,"mm-text-field--disabled":u,"mm-text-field--truncate":M},n),display:i.DISPLAY.INLINE_FLEX,backgroundColor:i.BackgroundColor.backgroundDefault,alignItems:i.AlignItems.center,borderWidth:1,borderRadius:i.BorderRadius.SM,paddingLeft:h?4:0,paddingRight:g?4:0,onClick:e=>{const{current:t}=j;t&&(t.focus(),A(!0)),_&&!u&&_(e)}},S),h,r.default.createElement(P,f({"aria-invalid":c,autoComplete:e,autoFocus:t,backgroundColor:i.BackgroundColor.transparent,defaultValue:o,disabled:u,focused:I.toString(),id:d,margin:0,maxLength:b,name:y,onBlur:e=>{A(!1),v&&v(e)},onChange:T,onFocus:e=>{A(!0),C&&C(e)},padding:0,paddingLeft:h?2:4,paddingRight:g?2:4,placeholder:E,readOnly:O,ref:e=>{j.current=e,m&&m.current!==undefined?m.current=e:"function"==typeof m&&m(e)},required:w,value:x,type:N,disableStateStyles:!0},p,{className:(0,a.default)("mm-text-field__input",null==p?void 0:p.className)})),g)};n.TextField=p,p.propTypes={autoComplete:o.default.bool,autoFocus:o.default.bool,className:o.default.string,defaultValue:o.default.oneOfType([o.default.string,o.default.number]),disabled:o.default.bool,error:o.default.bool,id:o.default.string,InputComponent:o.default.elementType,inputProps:o.default.object,startAccessory:o.default.node,endAccessory:o.default.node,inputRef:o.default.oneOfType([o.default.func,o.default.object]),maxLength:o.default.number,name:o.default.string,onBlur:o.default.func,onChange:o.default.func,onClick:o.default.func,onFocus:o.default.func,placeholder:o.default.string,readOnly:o.default.bool,required:o.default.bool,size:o.default.oneOf(Object.values(u.TEXT_FIELD_SIZES)),type:o.default.oneOf(Object.values(u.TEXT_FIELD_TYPES)),truncate:o.default.bool,value:o.default.oneOfType([o.default.string,o.default.number]),...s.default.propTypes},p.displayName="TextField"}}},{package:"$root$",file:"ui/components/component-library/text-field/text-field.js"}],[3862,{"./text":3864,"./text.constants":3863},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"INVISIBLE_CHARACTER",{enumerable:!0,get:function(){return o.INVISIBLE_CHARACTER}}),Object.defineProperty(n,"TEXT_DIRECTIONS",{enumerable:!0,get:function(){return o.TEXT_DIRECTIONS}}),Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return r.Text}});var r=e("./text"),o=e("./text.constants")}}},{package:"$root$",file:"ui/components/component-library/text/deprecated/index.js"}],[3863,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TEXT_DIRECTIONS=n.INVISIBLE_CHARACTER=void 0;n.TEXT_DIRECTIONS={LEFT_TO_RIGHT:"ltr",RIGHT_TO_LEFT:"rtl",AUTO:"auto"};n.INVISIBLE_CHARACTER="​"}}},{package:"$root$",file:"ui/components/component-library/text/deprecated/text.constants.js"}],[3864,{"../../../../helpers/constants/design-system":4070,"../../../ui/box":3900,"./text.constants":3863,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ValidTags=n.Text=void 0;var r=u(e("react")),o=u(e("classnames")),a=u(e("prop-types")),i=u(e("../../../ui/box")),s=e("../../../../helpers/constants/design-system"),l=e("./text.constants");function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=["dd","div","dt","em","h1","h2","h3","h4","h5","h6","li","p","span","strong","ul","label","input"];n.ValidTags=d;const f=r.default.forwardRef((({variant:e=s.TextVariant.bodyMd,color:t=s.TextColor.textDefault,fontWeight:n,fontStyle:a,textTransform:l,textAlign:u,textDirection:d,overflowWrap:f,ellipsis:p,as:m,className:h,children:g,...b},y)=>{const v=m??(e=>{switch(e){case s.TextVariant.displayMd:return"h1";case s.TextVariant.headingLg:return"h2";case s.TextVariant.headingMd:return"h3";case s.TextVariant.headingSm:return"h4";case s.TextVariant.inherit:return"span";default:return"p"}})(e);let T;"strong"===v&&(T=s.FONT_WEIGHT.BOLD);const _=(0,o.default)("mm-text",h,`mm-text--${e}`,(T||n)&&`mm-text--font-weight-${T||n}`,{[`mm-text--font-style-${a}`]:Boolean(a),"mm-text--ellipsis":Boolean(p),[`mm-text--text-transform-${l}`]:Boolean(l),[`mm-text--text-align-${u}`]:Boolean(u),[`mm-text--overflow-wrap-${f}`]:Boolean(f)});return r.default.createElement(i.default,c({ref:y,className:(0,o.default)(_),as:v,dir:d,color:t},b),g)}));n.Text=f,f.propTypes={variant:a.default.oneOf(Object.values(s.TextVariant)),color:a.default.oneOf(Object.values(s.TextColor)),fontWeight:a.default.oneOf(Object.values(s.FONT_WEIGHT)),fontStyle:a.default.oneOf(Object.values(s.FONT_STYLE)),textTransform:a.default.oneOf(Object.values(s.TEXT_TRANSFORM)),textAlign:a.default.oneOf(Object.values(s.TEXT_ALIGN)),textDirection:a.default.oneOf(Object.values(l.TEXT_DIRECTIONS)),overflowWrap:a.default.oneOf(Object.values(s.OVERFLOW_WRAP)),ellipsis:a.default.bool,as:a.default.oneOf(d),className:a.default.string,children:a.default.node.isRequired,...i.default.propTypes},f.displayName="Text"}}},{package:"$root$",file:"ui/components/component-library/text/deprecated/text.js"}],[3865,{"./text":3866,"./text.types":3867},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"InvisibleCharacter",{enumerable:!0,get:function(){return o.InvisibleCharacter}}),Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return r.Text}}),Object.defineProperty(n,"TextDirection",{enumerable:!0,get:function(){return o.TextDirection}}),Object.defineProperty(n,"ValidTag",{enumerable:!0,get:function(){return o.ValidTag}});var r=e("./text"),o=e("./text.types")}}},{package:"$root$",file:"ui/components/component-library/text/index.ts"}],[3866,{"../../../helpers/constants/design-system":4070,"../../ui/box":3900,"./text.types":3867,classnames:1980,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Text=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=l(e("classnames")),a=l(e("../../ui/box")),i=e("../../../helpers/constants/design-system"),s=e("./text.types");function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=(0,r.forwardRef)((function({variant:e=i.TextVariant.bodyMd,color:t=i.TextColor.textDefault,fontWeight:n,fontStyle:l,textTransform:u,textAlign:d,textDirection:f,overflowWrap:p,ellipsis:m,as:h,className:g="",children:b,...y},v){const T=h??(e=>{switch(e){case i.TextVariant.displayMd:return s.ValidTag.H1;case i.TextVariant.headingLg:return s.ValidTag.H2;case i.TextVariant.headingMd:return s.ValidTag.H3;case i.TextVariant.headingSm:return s.ValidTag.H4;case i.TextVariant.inherit:return s.ValidTag.Span;default:return s.ValidTag.P}})(e);let _;"strong"===T&&(_=i.FONT_WEIGHT.BOLD);const C=(0,o.default)("mm-text",g,`mm-text--${e}`,{[`mm-text--font-weight-${_||n}`]:Boolean(_||n),[`mm-text--font-style-${String(l)}`]:Boolean(l),"mm-text--ellipsis":Boolean(m),[`mm-text--text-transform-${String(u)}`]:Boolean(u),[`mm-text--text-align-${String(d)}`]:Boolean(d),[`mm-text--overflow-wrap-${String(p)}`]:Boolean(p)});return r.default.createElement(a.default,c({className:(0,o.default)(C),as:T,dir:f,color:t,ref:v},y),b)}));n.Text=d}}},{package:"$root$",file:"ui/components/component-library/text/text.tsx"}],[3867,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){let r;Object.defineProperty(n,"__esModule",{value:!0}),n.ValidTag=n.TextDirection=n.InvisibleCharacter=void 0,n.TextDirection=r,function(e){e.LeftToRight="ltr",e.RightToLeft="rtl",e.Auto="auto"}(r||(n.TextDirection=r={}));let o;n.InvisibleCharacter="​",n.ValidTag=o,function(e){e.Dd="dd",e.Div="div",e.Dt="dt",e.Em="em",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.Li="li",e.P="p",e.Span="span",e.Strong="strong",e.Ul="ul",e.Label="label",e.Input="input"}(o||(n.ValidTag=o={}))}}},{package:"$root$",file:"ui/components/component-library/text/text.types.ts"}],[3868,{"../../../../shared/constants/metametrics":3408,"../../../contexts/metametrics":4048,"../../../helpers/constants/design-system":4070,"../../../helpers/constants/routes":4074,"../../../helpers/utils/util":4108,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../../store/actions":4443,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../../ui/menu":3981,"@metamask/etherscan-link":1221,"prop-types":3032,react:3177,"react-redux":3130,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.AccountListItemMenu=void 0;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=T(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=e("react-redux"),i=e("react-router-dom"),s=(r=e("prop-types"))&&r.__esModule?r:{default:r},l=e("@metamask/etherscan-link"),u=e("../../../contexts/metametrics"),c=e("../../../hooks/useI18nContext"),d=e("../../../selectors"),f=e("../../../helpers/constants/routes"),p=e("../../ui/menu"),m=e("../../component-library"),h=e("../../component-library/icon/deprecated"),g=e("../../../../shared/constants/metametrics"),b=e("../../../helpers/utils/util"),y=e("../../../store/actions"),v=e("../../../helpers/constants/design-system");function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(T=function(e){return e?n:t})(e)}const _=({anchorElement:e,blockExplorerUrlSubTitle:t,onClose:n,closeMenu:r,isRemovable:s,identity:T})=>{const _=(0,c.useI18nContext)(),C=(0,o.useContext)(u.MetaMetricsContext),E=(0,a.useDispatch)(),O=(0,i.useHistory)(),w=(0,a.useSelector)(d.getCurrentChainId),k=(0,a.useSelector)(d.getRpcPrefsForCurrentProvider),N=(0,l.getAccountLink)(T.address,w,k),M=(0,a.useSelector)(d.getBlockExplorerLinkText);return o.default.createElement(p.Menu,{anchorElement:e,className:"account-list-item-menu",onHide:n},o.default.createElement(p.MenuItem,{onClick:"addBlockExplorer"===M.firstPart?()=>{O.push(`${f.NETWORKS_ROUTE}#blockExplorerUrl`)}:()=>{C({event:g.MetaMetricsEventName.ExternalLinkClicked,category:g.MetaMetricsEventCategory.Navigation,properties:{link_type:g.MetaMetricsEventLinkType.AccountTracker,location:"Account Options",url_domain:(0,b.getURLHostName)(N)}}),global.platform.openTab({url:N}),n()},subtitle:t||null,iconName:h.ICON_NAMES.EXPORT,"data-testid":"account-list-menu-open-explorer"},o.default.createElement(m.Text,{variant:v.TextVariant.bodySm},_("viewOnExplorer"))),o.default.createElement(p.MenuItem,{onClick:()=>{E((0,y.showModal)({name:"ACCOUNT_DETAILS"})),C({event:g.MetaMetricsEventName.NavAccountDetailsOpened,category:g.MetaMetricsEventCategory.Navigation,properties:{location:"Account Options"}}),n(),null==r||r()},iconName:h.ICON_NAMES.SCAN_BARCODE},o.default.createElement(m.Text,{variant:v.TextVariant.bodySm},_("accountDetails"))),s?o.default.createElement(p.MenuItem,{"data-testid":"account-list-menu-remove",onClick:()=>{E((0,y.showModal)({name:"CONFIRM_REMOVE_ACCOUNT",identity:T})),n()},iconName:h.ICON_NAMES.TRASH},o.default.createElement(m.Text,{variant:v.TextVariant.bodySm},_("removeAccount"))):null)};n.AccountListItemMenu=_,_.propTypes={anchorElement:s.default.instanceOf(window.Element),onClose:s.default.func.isRequired,closeMenu:s.default.func,blockExplorerUrlSubTitle:s.default.string,isRemovable:s.default.bool.isRequired,identity:s.default.shape({name:s.default.string.isRequired,address:s.default.string.isRequired,balance:s.default.string.isRequired}).isRequired}}}},{package:"$root$",file:"ui/components/multichain/account-list-item-menu/account-list-item-menu.js"}],[3869,{"./account-list-item-menu":3868},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AccountListItemMenu",{enumerable:!0,get:function(){return r.AccountListItemMenu}});var r=e("./account-list-item-menu")}}},{package:"$root$",file:"ui/components/multichain/account-list-item-menu/index.js"}],[3870,{"..":3882,"../../../../shared/constants/hardware-wallets":3405,"../../../../shared/constants/keyring":3406,"../../../ducks/metamask/metamask":4062,"../../../helpers/constants/common":4068,"../../../helpers/constants/design-system":4070,"../../../helpers/utils/util":4108,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../app/user-preferenced-currency-display/user-preferenced-currency-display.component":3768,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../../ui/box/box":3899,"../../ui/tooltip/tooltip":4036,classnames:1980,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.AccountListItem=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=_(e("prop-types")),a=_(e("classnames")),i=e("react-redux"),s=e("../../../hooks/useI18nContext"),l=e("../../../selectors"),u=e("../../../helpers/utils/util"),c=e(".."),d=_(e("../../ui/box/box")),f=e("../../component-library"),p=e("../../component-library/icon/deprecated"),m=e("../../../helpers/constants/design-system"),h=e("../../../../shared/constants/hardware-wallets"),g=e("../../../../shared/constants/keyring"),b=_(e("../../app/user-preferenced-currency-display/user-preferenced-currency-display.component")),y=e("../../../helpers/constants/common"),v=e("../../../ducks/metamask/metamask"),T=_(e("../../ui/tooltip/tooltip"));function _(e){return e&&e.__esModule?e:{default:e}}function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}const E=({identity:e,selected:t=!1,onClick:n,closeMenu:o,connectedAvatar:_,connectedAvatarName:C})=>{const E=(0,s.useI18nContext)(),[O,w]=(0,r.useState)(!1),k=(0,r.useRef)(!1),N=(0,i.useSelector)((t=>(0,v.findKeyringForAddress)(t,e.address))),M=function(e={},t){const{type:n}=e;switch(n){case g.KeyringType.qr:return h.HardwareKeyringNames.qr;case g.KeyringType.imported:return t("imported");case g.KeyringType.trezor:return h.HardwareKeyringNames.trezor;case g.KeyringType.ledger:return h.HardwareKeyringNames.ledger;case g.KeyringType.lattice:return h.HardwareKeyringNames.lattice;default:return null}}(N,E),x=(0,i.useSelector)(l.getRpcPrefsForCurrentProvider),{blockExplorerUrl:P}=x,S=(0,u.getURLHostName)(P);return r.default.createElement(d.default,{display:m.DISPLAY.FLEX,padding:4,gap:2,backgroundColor:t?m.Color.primaryMuted:m.Color.transparent,className:(0,a.default)("multichain-account-list-item",{"multichain-account-list-item--selected":t}),onClick:()=>{O||n()}},t&&r.default.createElement(d.default,{className:"multichain-account-list-item__selected-indicator",borderRadius:m.BorderRadius.pill,backgroundColor:m.Color.primaryDefault}),r.default.createElement(f.AvatarAccount,{borderColor:m.BorderColor.transparent,size:m.Size.SM,address:e.address}),r.default.createElement(d.default,{display:m.DISPLAY.FLEX,flexDirection:m.FLEX_DIRECTION.COLUMN,className:"multichain-account-list-item__content"},r.default.createElement(d.default,{display:m.DISPLAY.FLEX,flexDirection:m.FLEX_DIRECTION.COLUMN},r.default.createElement(d.default,{display:m.DISPLAY.FLEX,justifyContent:m.JustifyContent.spaceBetween,gap:2},r.default.createElement(f.Text,{ellipsis:!0,as:"div"},r.default.createElement(f.ButtonLink,{onClick:n,className:"multichain-account-list-item__account-name",color:m.Color.textDefault,ellipsis:!0},e.name.length>17?r.default.createElement(T.default,{title:e.name,position:"bottom",wrapperClassName:"multichain-account-list-item__tooltip"},e.name):e.name)),r.default.createElement(d.default,{display:m.DISPLAY.FLEX,flexDirection:m.FLEX_DIRECTION.ROW,alignItems:m.AlignItems.center},_?r.default.createElement(f.AvatarFavicon,{size:m.Size.XS,src:_,name:C,marginInlineEnd:2}):null,r.default.createElement(f.Text,{textAlign:m.TEXT_ALIGN.END,as:"div"},r.default.createElement(b.default,{ethNumberOfDecimals:3,value:e.balance,type:y.SECONDARY}))))),r.default.createElement(d.default,{display:m.DISPLAY.FLEX,justifyContent:m.JustifyContent.spaceBetween},r.default.createElement(f.Text,{variant:m.TextVariant.bodySm,color:m.Color.textAlternative},(0,u.shortenAddress)(e.address)),r.default.createElement(f.Text,{variant:m.TextVariant.bodySm,color:m.Color.textAlternative,textAlign:m.TEXT_ALIGN.END,as:"div"},r.default.createElement(b.default,{ethNumberOfDecimals:3,value:e.balance,type:y.PRIMARY}))),M?r.default.createElement(f.Tag,{label:M,labelProps:{variant:m.TextVariant.bodyXs,color:m.Color.textAlternative}}):null),r.default.createElement("div",{ref:k},r.default.createElement(f.ButtonIcon,{ariaLabel:`${e.name} ${E("options")}`,iconName:p.ICON_NAMES.MORE_VERTICAL,size:p.ICON_SIZES.SM,onClick:e=>{e.stopPropagation(),w(!0)},"data-testid":"account-list-item-menu-button"}),O?r.default.createElement(c.AccountListItemMenu,{anchorElement:k.current,blockExplorerUrlSubTitle:S,identity:e,onClose:()=>w(!1),isRemovable:(null==N?void 0:N.type)!==g.KeyringType.hdKeyTree,closeMenu:o}):null))};n.AccountListItem=E,E.propTypes={identity:o.default.shape({name:o.default.string.isRequired,address:o.default.string.isRequired,balance:o.default.string.isRequired}).isRequired,selected:o.default.bool,onClick:o.default.func.isRequired,closeMenu:o.default.func,connectedAvatar:o.default.string,connectedAvatarName:o.default.string},E.displayName="AccountListItem"}}},{package:"$root$",file:"ui/components/multichain/account-list-item/account-list-item.js"}],[3871,{"./account-list-item":3870},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AccountListItem",{enumerable:!0,get:function(){return r.AccountListItem}});var r=e("./account-list-item")}}},{package:"$root$",file:"ui/components/multichain/account-list-item/index.js"}],[3872,{"..":3882,"../../../../app/scripts/lib/util":82,"../../../../shared/constants/app":3401,"../../../../shared/constants/metametrics":3408,"../../../contexts/metametrics":4048,"../../../helpers/constants/design-system":4070,"../../../helpers/constants/routes":4074,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../../store/actions":4443,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../../ui/box/box":3899,"../../ui/popover":3999,"fuse.js":2497,"prop-types":3032,react:3177,"react-redux":3130,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.AccountListMenu=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=C(e("prop-types")),a=e("react-router-dom"),i=C(e("fuse.js")),s=e("react-redux"),l=C(e("../../ui/box/box")),u=e("../../component-library"),c=e("../../component-library/icon/deprecated"),d=e(".."),f=e("../../../helpers/constants/design-system"),p=e("../../../hooks/useI18nContext"),m=e("../../../contexts/metametrics"),h=C(e("../../ui/popover")),g=e("../../../selectors"),b=e("../../../store/actions"),y=e("../../../../shared/constants/metametrics"),v=e("../../../helpers/constants/routes"),T=e("../../../../app/scripts/lib/util"),_=e("../../../../shared/constants/app");function C(e){return e&&e.__esModule?e:{default:e}}function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}const O=({onClose:e})=>{const t=(0,p.useI18nContext)(),n=(0,r.useContext)(m.MetaMetricsContext),o=(0,s.useSelector)(g.getMetaMaskAccountsOrdered),C=(0,s.useSelector)(g.getSelectedAccount),E=(0,s.useSelector)(g.getConnectedSubjectsForAllAddresses),O=(0,s.useSelector)(g.getOriginOfCurrentTab),w=(0,a.useHistory)(),k=(0,s.useDispatch)(),[N,M]=(0,r.useState)("");let x=o;if(N){const e=new i.default(o,{threshold:.2,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:["name","address"]});e.setCollection(o),x=e.search(N)}return r.default.createElement(h.default,{title:t("selectAnAccount"),centerTitle:!0,onClose:e},r.default.createElement(l.default,{className:"multichain-account-menu"},r.default.createElement(l.default,{paddingLeft:4,paddingRight:4,paddingBottom:4,paddingTop:0},r.default.createElement(u.TextFieldSearch,{size:f.Size.SM,width:f.BLOCK_SIZES.FULL,placeholder:t("searchAccounts"),value:N,onChange:e=>M(e.target.value)})),r.default.createElement(l.default,{className:"multichain-account-menu__list"},0===x.length&&""!==N?r.default.createElement(u.Text,{paddingLeft:4,paddingRight:4,color:f.TextColor.textMuted,"data-testid":"multichain-account-menu-no-results"},t("noAccountsFound")):null,x.map((t=>{var o;const a=null===(o=E[t.address])||void 0===o?void 0:o.find((({origin:e})=>e===O));return r.default.createElement(d.AccountListItem,{onClick:()=>{k((0,b.toggleAccountMenu)()),n({category:y.MetaMetricsEventCategory.Navigation,event:y.MetaMetricsEventName.NavAccountSwitched,properties:{location:"Main Menu"}}),k((0,b.setSelectedAccount)(t.address)),e()},identity:t,key:t.address,selected:C.address===t.address,closeMenu:e,connectedAvatar:null==a?void 0:a.iconUrl,connectedAvatarName:null==a?void 0:a.name})}))),r.default.createElement(l.default,{padding:4},r.default.createElement(l.default,{marginBottom:4},r.default.createElement(u.ButtonLink,{size:f.Size.SM,startIconName:c.ICON_NAMES.ADD,onClick:()=>{k((0,b.toggleAccountMenu)()),n({category:y.MetaMetricsEventCategory.Navigation,event:y.MetaMetricsEventName.AccountAddSelected,properties:{account_type:y.MetaMetricsEventAccountType.Default,location:"Main Menu"}}),w.push(v.NEW_ACCOUNT_ROUTE)}},t("addAccount"))),r.default.createElement(l.default,{marginBottom:4},r.default.createElement(u.ButtonLink,{size:f.Size.SM,startIconName:c.ICON_NAMES.IMPORT,onClick:()=>{k((0,b.toggleAccountMenu)()),n({category:y.MetaMetricsEventCategory.Navigation,event:y.MetaMetricsEventName.AccountAddSelected,properties:{account_type:y.MetaMetricsEventAccountType.Imported,location:"Main Menu"}}),w.push(v.IMPORT_ACCOUNT_ROUTE)}},t("importAccount"))),r.default.createElement(l.default,null,r.default.createElement(u.ButtonLink,{size:f.Size.SM,startIconName:c.ICON_NAMES.HARDWARE,onClick:()=>{k((0,b.toggleAccountMenu)()),n({category:y.MetaMetricsEventCategory.Navigation,event:y.MetaMetricsEventName.AccountAddSelected,properties:{account_type:y.MetaMetricsEventAccountType.Hardware,location:"Main Menu"}}),(0,T.getEnvironmentType)()===_.ENVIRONMENT_TYPE_POPUP?global.platform.openExtensionInBrowser(v.CONNECT_HARDWARE_ROUTE):w.push(v.CONNECT_HARDWARE_ROUTE)}},t("hardwareWallet"))))))};n.AccountListMenu=O,O.propTypes={onClose:o.default.func.isRequired}}}},{package:"$root$",file:"ui/components/multichain/account-list-menu/account-list-menu.js"}],[3873,{"./account-list-menu":3872},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AccountListMenu",{enumerable:!0,get:function(){return r.AccountListMenu}});var r=e("./account-list-menu")}}},{package:"$root$",file:"ui/components/multichain/account-list-menu/index.js"}],[3874,{"../../../helpers/constants/design-system":4070,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.AccountPicker=void 0;var r=u(e("react")),o=u(e("prop-types")),a=e("react-redux"),i=e("../../component-library"),s=e("../../component-library/icon/deprecated"),l=e("../../../helpers/constants/design-system");function u(e){return e&&e.__esModule?e:{default:e}}const c=({address:e,name:t,onClick:n})=>{const o=(0,a.useSelector)((e=>e.metamask.useBlockie));return r.default.createElement(i.Button,{className:"multichain-account-picker",onClick:n,backgroundColor:l.BackgroundColor.transparent,borderRadius:l.BorderRadius.LG,ellipsis:!0,textProps:{display:l.DISPLAY.FLEX,gap:2,alignItems:l.AlignItems.center}},r.default.createElement(i.AvatarAccount,{variant:o?i.AvatarAccountVariant.Blockies:i.AvatarAccountVariant.Jazzicon,address:e,size:l.Size.SM}),r.default.createElement(i.Text,{as:"span",fontWeight:l.FONT_WEIGHT.BOLD,ellipsis:!0},t),r.default.createElement(s.Icon,{name:s.ICON_NAMES.ARROW_DOWN,color:l.IconColor.iconDefault,size:l.Size.SM}))};n.AccountPicker=c,c.propTypes={name:o.default.string.isRequired,address:o.default.string.isRequired,onClick:o.default.func.isRequired}}}},{package:"$root$",file:"ui/components/multichain/account-picker/account-picker.js"}],[3875,{"./account-picker":3874},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AccountPicker",{enumerable:!0,get:function(){return r.AccountPicker}});var r=e("./account-picker")}}},{package:"$root$",file:"ui/components/multichain/account-picker/index.js"}],[3876,{"../../../helpers/constants/design-system":4070,"../../../helpers/utils/util":4108,"../../../hooks/useCopyToClipboard":4123,"../../../hooks/useI18nContext":4129,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../../ui/tooltip/tooltip":4036,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.AddressCopyButton=void 0;var r=p(e("react")),o=p(e("prop-types")),a=p(e("classnames")),i=e("../../component-library"),s=e("../../component-library/icon/deprecated"),l=e("../../../helpers/constants/design-system"),u=e("../../../hooks/useCopyToClipboard"),c=e("../../../helpers/utils/util"),d=p(e("../../ui/tooltip/tooltip")),f=e("../../../hooks/useI18nContext");function p(e){return e&&e.__esModule?e:{default:e}}const m=({address:e,shorten:t=!1,wrap:n=!1})=>{const o=t?(0,c.shortenAddress)(e):e,[p,m]=(0,u.useCopyToClipboard)(),h=(0,f.useI18nContext)();return r.default.createElement(d.default,{position:"bottom",title:p?h("copiedExclamation"):null},r.default.createElement(i.ButtonBase,{backgroundColor:l.BackgroundColor.primaryMuted,onClick:()=>m(e),paddingRight:4,paddingLeft:4,size:l.Size.SM,variant:l.TextVariant.bodyXs,color:l.TextColor.primaryDefault,endIconName:p?s.ICON_NAMES.COPY_SUCCESS:s.ICON_NAMES.COPY,className:(0,a.default)("multichain-address-copy-button",{"multichain-address-copy-button__address--wrap":n}),borderRadius:l.BorderRadius.pill,alignItems:l.AlignItems.center,"data-testid":"address-copy-button-text"},o))};n.AddressCopyButton=m,m.propTypes={address:o.default.string.isRequired,shorten:o.default.bool,wrap:o.default.bool}}}},{package:"$root$",file:"ui/components/multichain/address-copy-button/address-copy-button.js"}],[3877,{"./address-copy-button":3876},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AddressCopyButton",{enumerable:!0,get:function(){return r.AddressCopyButton}});var r=e("./address-copy-button")}}},{package:"$root$",file:"ui/components/multichain/address-copy-button/index.js"}],[3878,{"../../../../shared/constants/metametrics":3408,"../../../contexts/metametrics":4048,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../component-library":3840,classnames:1980,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DetectedTokensBanner=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=e("react-redux"),a=f(e("prop-types")),i=f(e("classnames")),s=e("../../../hooks/useI18nContext"),l=e("../../../selectors"),u=e("../../../contexts/metametrics"),c=e("../../../../shared/constants/metametrics"),d=e("../../component-library");function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}const h=({className:e,actionButtonOnClick:t,...n})=>{const a=(0,s.useI18nContext)(),f=(0,r.useContext)(u.MetaMetricsContext),p=(0,o.useSelector)(l.getDetectedTokensInCurrentNetwork),h=p.map((({address:e,symbol:t})=>`${t} - ${e}`));return r.default.createElement(d.BannerAlert,m({className:(0,i.default)("multichain-detected-token-banner",e),actionButtonLabel:a("importTokensCamelCase"),actionButtonOnClick:()=>{t(),f({event:c.MetaMetricsEventName.TokenImportClicked,category:c.MetaMetricsEventCategory.Wallet,properties:{source:c.MetaMetricsTokenEventSource.Detected,tokens:h}})},"data-testid":"detected-token-banner"},n),1===p.length?a("numberOfNewTokensDetectedSingular"):a("numberOfNewTokensDetectedPlural",[p.length]))};n.DetectedTokensBanner=h,h.propTypes={actionButtonOnClick:a.default.func.isRequired,className:a.default.string}}}},{package:"$root$",file:"ui/components/multichain/detected-token-banner/detected-token-banner.js"}],[3879,{"./detected-token-banner":3878},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DetectedTokensBanner",{enumerable:!0,get:function(){return r.DetectedTokensBanner}});var r=e("./detected-token-banner")}}},{package:"$root$",file:"ui/components/multichain/detected-token-banner/index.js"}],[3880,{"../../../../app/scripts/lib/util":82,"../../../../shared/constants/app":3401,"../../../../shared/constants/metametrics":3408,"../../../../shared/lib/ui-utils":3426,"../../../contexts/metametrics":4048,"../../../helpers/constants/routes":4074,"../../../hooks/useI18nContext":4129,"../../../store/actions":4443,"../../component-library/icon/deprecated":3836,"../../ui/menu":3981,"prop-types":3032,react:3177,"react-redux":3130,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.GlobalMenu=void 0;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r},i=e("react-router-dom"),s=e("react-redux"),l=e("../../../helpers/constants/routes"),u=e("../../../store/actions"),c=e("../../../hooks/useI18nContext"),d=e("../../component-library/icon/deprecated"),f=e("../../ui/menu"),p=e("../../../../app/scripts/lib/util"),m=e("../../../../shared/constants/app"),h=e("../../../../shared/lib/ui-utils"),g=e("../../../contexts/metametrics"),b=e("../../../../shared/constants/metametrics");function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}const v=({closeMenu:e,anchorElement:t})=>{const n=(0,c.useI18nContext)(),r=(0,s.useDispatch)(),a=(0,o.useContext)(g.MetaMetricsContext),y=(0,i.useHistory)();return o.default.createElement(f.Menu,{anchorElement:t,onHide:e},o.default.createElement(f.MenuItem,{iconName:d.ICON_NAMES.CONNECT,onClick:()=>{y.push(l.CONNECTED_ROUTE),a({event:b.MetaMetricsEventName.NavConnectedSitesOpened,category:b.MetaMetricsEventCategory.Navigation,properties:{location:"Account Options"}}),e()}},n("connectedSites")),o.default.createElement(f.MenuItem,{iconName:d.ICON_NAMES.DIAGRAM,onClick:()=>{const t="https://portfolio.metamask.io";global.platform.openTab({url:`${t}?metamaskEntry=ext`}),a({category:b.MetaMetricsEventCategory.Home,event:b.MetaMetricsEventName.PortfolioLinkClicked,properties:{url:t}},{contextPropsIntoEventProperties:[b.MetaMetricsContextProp.PageTitle]}),e()},"data-testid":"global-menu-portfolio"},n("portfolioView")),(0,p.getEnvironmentType)()===m.ENVIRONMENT_TYPE_FULLSCREEN?null:o.default.createElement(f.MenuItem,{iconName:d.ICON_NAMES.EXPAND,onClick:()=>{global.platform.openExtensionInBrowser(),a({event:b.MetaMetricsEventName.AppWindowExpanded,category:b.MetaMetricsEventCategory.Navigation,properties:{location:"Account Options"}}),e()},"data-testid":"global-menu-expand"},n("expandView")),o.default.createElement(f.MenuItem,{iconName:d.ICON_NAMES.MESSAGE_QUESTION,onClick:()=>{global.platform.openTab({url:h.SUPPORT_LINK}),a({category:b.MetaMetricsEventCategory.Home,event:b.MetaMetricsEventName.SupportLinkClicked,properties:{url:h.SUPPORT_LINK}},{contextPropsIntoEventProperties:[b.MetaMetricsContextProp.PageTitle]}),e()},"data-testid":"global-menu-support"},n("support")),o.default.createElement(f.MenuItem,{iconName:d.ICON_NAMES.SETTING,onClick:()=>{y.push(l.SETTINGS_ROUTE),a({category:b.MetaMetricsEventCategory.Navigation,event:b.MetaMetricsEventName.NavSettingsOpened,properties:{location:"Main Menu"}}),e()}},n("settings")),o.default.createElement(f.MenuItem,{iconName:d.ICON_NAMES.LOCK,onClick:()=>{r((0,u.lockMetamask)()),y.push(l.DEFAULT_ROUTE),e()},"data-testid":"global-menu-lock"},n("lockMetaMask")))};n.GlobalMenu=v,v.propTypes={anchorElement:a.default.instanceOf(window.Element),closeMenu:a.default.func.isRequired}}}},{package:"$root$",file:"ui/components/multichain/global-menu/global-menu.js"}],[3881,{"./global-menu":3880},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GlobalMenu",{enumerable:!0,get:function(){return r.GlobalMenu}});var r=e("./global-menu")}}},{package:"$root$",file:"ui/components/multichain/global-menu/index.js"}],[3882,{"./account-list-item":3871,"./account-list-item-menu":3869,"./account-list-menu":3873,"./account-picker":3875,"./address-copy-button":3877,"./detected-token-banner":3879,"./global-menu":3881,"./multichain-connected-site-menu":3883,"./multichain-import-token-link":3885,"./multichain-token-list-item":3887,"./network-list-item":3889,"./network-list-menu":3891},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AccountListItem",{enumerable:!0,get:function(){return r.AccountListItem}}),Object.defineProperty(n,"AccountListItemMenu",{enumerable:!0,get:function(){return o.AccountListItemMenu}}),Object.defineProperty(n,"AccountListMenu",{enumerable:!0,get:function(){return a.AccountListMenu}}),Object.defineProperty(n,"AccountPicker",{enumerable:!0,get:function(){return i.AccountPicker}}),Object.defineProperty(n,"AddressCopyButton",{enumerable:!0,get:function(){return d.AddressCopyButton}}),Object.defineProperty(n,"DetectedTokensBanner",{enumerable:!0,get:function(){return s.DetectedTokensBanner}}),Object.defineProperty(n,"GlobalMenu",{enumerable:!0,get:function(){return l.GlobalMenu}}),Object.defineProperty(n,"MultichainConnectedSiteMenu",{enumerable:!0,get:function(){return f.MultichainConnectedSiteMenu}}),Object.defineProperty(n,"MultichainImportTokenLink",{enumerable:!0,get:function(){return u.MultichainImportTokenLink}}),Object.defineProperty(n,"MultichainTokenListItem",{enumerable:!0,get:function(){return c.MultichainTokenListItem}}),Object.defineProperty(n,"NetworkListItem",{enumerable:!0,get:function(){return p.NetworkListItem}}),Object.defineProperty(n,"NetworkListMenu",{enumerable:!0,get:function(){return m.NetworkListMenu}});var r=e("./account-list-item"),o=e("./account-list-item-menu"),a=e("./account-list-menu"),i=e("./account-picker"),s=e("./detected-token-banner"),l=e("./global-menu"),u=e("./multichain-import-token-link"),c=e("./multichain-token-list-item"),d=e("./address-copy-button"),f=e("./multichain-connected-site-menu"),p=e("./network-list-item"),m=e("./network-list-menu")}}},{package:"$root$",file:"ui/components/multichain/index.js"}],[3883,{"./multichain-connected-site-menu":3884},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"MultichainConnectedSiteMenu",{enumerable:!0,get:function(){return r.MultichainConnectedSiteMenu}});var r=e("./multichain-connected-site-menu")}}},{package:"$root$",file:"ui/components/multichain/multichain-connected-site-menu/index.js"}],[3884,{"../../../helpers/constants/connected-sites":4069,"../../../helpers/constants/design-system":4070,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../../ui/box":3900,"../../ui/tooltip":4035,classnames:1980,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.MultichainConnectedSiteMenu=void 0;var r=h(e("react")),o=h(e("prop-types")),a=h(e("classnames")),i=e("react-redux"),s=e("../../../helpers/constants/connected-sites"),l=e("../../../helpers/constants/design-system"),u=e("../../component-library"),c=e("../../component-library/icon/deprecated"),d=h(e("../../ui/box")),f=e("../../../selectors"),p=h(e("../../ui/tooltip")),m=e("../../../hooks/useI18nContext");function h(e){return e&&e.__esModule?e:{default:e}}const g=({className:e,globalMenuColor:t,status:n,text:o})=>{const h=(0,m.useI18nContext)(),g=(0,i.useSelector)(f.getSelectedIdentity);return r.default.createElement(d.default,{className:(0,a.default)("multichain-connected-site-menu",e),"data-testid":"connection-menu"},r.default.createElement(p.default,{title:n===s.STATUS_NOT_CONNECTED?h("statusNotConnectedAccount"):`${null==g?void 0:g.name} ${o}`,"data-testid":"multichain-connected-site-menu__tooltip",position:"bottom"},r.default.createElement(u.BadgeWrapper,{positionObj:n===s.STATUS_CONNECTED_TO_ANOTHER_ACCOUNT?{bottom:4,right:-1,zIndex:1}:{bottom:2,right:-4,zIndex:1},badge:r.default.createElement(d.default,{backgroundColor:t,className:"multichain-connected-site-menu__badge "+(n===s.STATUS_CONNECTED_TO_ANOTHER_ACCOUNT?"not-connected":""),borderRadius:l.BorderRadius.full,borderColor:n===s.STATUS_CONNECTED_TO_ANOTHER_ACCOUNT?l.BorderColor.successDefault:l.BackgroundColor.backgroundDefault,borderWidth:n===s.STATUS_CONNECTED_TO_ANOTHER_ACCOUNT?2:3})},r.default.createElement(c.Icon,{name:c.ICON_NAMES.GLOBAL,size:l.Size.LG,color:l.IconColor.iconDefault}))))};n.MultichainConnectedSiteMenu=g,g.propTypes={className:o.default.string,globalMenuColor:o.default.string.isRequired,status:o.default.string.isRequired,text:o.default.string}}}},{package:"$root$",file:"ui/components/multichain/multichain-connected-site-menu/multichain-connected-site-menu.js"}],[3885,{"./multichain-import-token-link":3886},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"MultichainImportTokenLink",{enumerable:!0,get:function(){return r.MultichainImportTokenLink}});var r=e("./multichain-import-token-link")}}},{package:"$root$",file:"ui/components/multichain/multichain-import-token-link/index.js"}],[3886,{"../../../../shared/constants/metametrics":3408,"../../../contexts/metametrics":4048,"../../../helpers/constants/design-system":4070,"../../../helpers/constants/routes":4074,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../../store/actions":4443,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../../ui/box/box":3899,classnames:1980,"prop-types":3032,react:3177,"react-redux":3130,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.MultichainImportTokenLink=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=e("react-redux"),a=e("react-router-dom"),i=y(e("prop-types")),s=y(e("classnames")),l=y(e("../../ui/box/box")),u=e("../../component-library"),c=e("../../component-library/icon/deprecated"),d=e("../../../helpers/constants/design-system"),f=e("../../../hooks/useI18nContext"),p=e("../../../helpers/constants/routes"),m=e("../../../store/actions"),h=e("../../../contexts/metametrics"),g=e("../../../../shared/constants/metametrics"),b=e("../../../selectors");function y(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}const _=({className:e,...t})=>{const n=(0,r.useContext)(h.MetaMetricsContext),i=(0,f.useI18nContext)(),y=(0,a.useHistory)(),v=(0,o.useSelector)(b.getIsTokenDetectionSupported),_=(0,o.useSelector)(b.getIsTokenDetectionInactiveOnMainnet),C=v||_||Boolean(!1);return r.default.createElement(l.default,T({className:(0,s.default)("multichain-import-token-link",e)},t),r.default.createElement(l.default,{display:d.DISPLAY.FLEX,alignItems:d.AlignItems.center},r.default.createElement(u.ButtonLink,{size:d.Size.MD,"data-testid":"import-token-button",startIconName:c.ICON_NAMES.ADD,onClick:()=>{y.push(p.IMPORT_TOKEN_ROUTE),n({event:g.MetaMetricsEventName.TokenImportButtonClicked,category:g.MetaMetricsEventCategory.Navigation,properties:{location:"Home"}})}},C?i("importTokensCamelCase"):i("importTokensCamelCase").charAt(0).toUpperCase()+i("importTokensCamelCase").slice(1))),r.default.createElement(l.default,{display:d.DISPLAY.FLEX,alignItems:d.AlignItems.center,paddingBottom:4,paddingTop:4},r.default.createElement(u.ButtonLink,{startIconName:c.ICON_NAMES.REFRESH,"data-testid":"refresh-list-button",onClick:()=>(0,m.detectNewTokens)()},i("refreshList"))))};n.MultichainImportTokenLink=_,_.propTypes={className:i.default.string}}}},{package:"$root$",file:"ui/components/multichain/multichain-import-token-link/multichain-import-token-link.js"}],[3887,{"./multichain-token-list-item":3888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"MultichainTokenListItem",{enumerable:!0,get:function(){return r.MultichainTokenListItem}});var r=e("./multichain-token-list-item")}}},{package:"$root$",file:"ui/components/multichain/multichain-token-list-item/index.js"}],[3888,{"../../../helpers/constants/design-system":4070,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../component-library":3840,"../../ui/box/box":3899,"../../ui/tooltip":4035,classnames:1980,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.MultichainTokenListItem=void 0;var r=p(e("react")),o=p(e("prop-types")),a=e("react-redux"),i=p(e("classnames")),s=e("../../../helpers/constants/design-system"),l=e("../../component-library"),u=p(e("../../ui/box/box")),c=e("../../../selectors"),d=p(e("../../ui/tooltip")),f=e("../../../hooks/useI18nContext");function p(e){return e&&e.__esModule?e:{default:e}}const m=({className:e,onClick:t,tokenSymbol:n,tokenImage:o,primary:p,secondary:m,title:h})=>{const g=(0,f.useI18nContext)(),b=(0,a.useSelector)(c.getNativeCurrencyImage),y=document.documentElement.getAttribute("data-theme");return r.default.createElement(u.default,{className:(0,i.default)("multichain-token-list-item",e),display:s.DISPLAY.FLEX,flexDirection:s.FLEX_DIRECTION.COLUMN,gap:4,"data-testid":"multichain-token-list-item"},r.default.createElement(u.default,{className:"multichain-token-list-item__container-cell",display:s.DISPLAY.FLEX,flexDirection:s.FLEX_DIRECTION.ROW,padding:4,as:"a","data-testid":"multichain-token-list-button",href:"#",onClick:e=>{e.preventDefault(),t()}},r.default.createElement(l.BadgeWrapper,{badge:r.default.createElement(l.AvatarNetwork,{size:s.Size.XS,name:n,src:b,borderColor:b?s.BorderColor.borderMuted:s.BorderColor.borderDefault}),marginRight:3},r.default.createElement(l.AvatarToken,{name:n,src:o,showHalo:!0,borderColor:o?s.BorderColor.transparent:s.BorderColor.borderDefault})),r.default.createElement(u.default,{className:"multichain-token-list-item__container-cell--text-container",display:s.DISPLAY.FLEX,flexDirection:s.FLEX_DIRECTION.COLUMN,width:s.BLOCK_SIZES.FULL,style:{flexGrow:1,overflow:"hidden"}},r.default.createElement(u.default,{display:s.DISPLAY.FLEX,justifyContent:s.JustifyContent.spaceBetween,gap:1},r.default.createElement(u.default,{width:[s.BLOCK_SIZES.ONE_THIRD]},r.default.createElement(d.default,{position:"bottom",interactive:!0,html:h,disabled:(null==h?void 0:h.length)<12,tooltipInnerClassName:"multichain-token-list-item__tooltip",theme:"light"===y?"dark":"light"},r.default.createElement(l.Text,{fontWeight:s.FONT_WEIGHT.MEDIUM,variant:s.TextVariant.bodyMd,ellipsis:!0},"ETH"===h?g("networkNameEthereum"):h))),r.default.createElement(l.Text,{fontWeight:s.FONT_WEIGHT.MEDIUM,variant:s.TextVariant.bodyMd,width:[s.BLOCK_SIZES.TWO_THIRD],textAlign:s.TEXT_ALIGN.END},m)),r.default.createElement(l.Text,{color:s.TextColor.textAlternative},Number(p).toFixed(3)," ",n," "))))};n.MultichainTokenListItem=m,m.propTypes={className:o.default.string,onClick:o.default.func,tokenSymbol:o.default.string,title:o.default.string,tokenImage:o.default.string,primary:o.default.string,secondary:o.default.string}}}},{package:"$root$",file:"ui/components/multichain/multichain-token-list-item/multichain-token-list-item.js"}],[3889,{"./network-list-item":3890},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NetworkListItem",{enumerable:!0,get:function(){return r.NetworkListItem}});var r=e("./network-list-item")}}},{package:"$root$",file:"ui/components/multichain/network-list-item/index.js"}],[3890,{"../../../helpers/constants/design-system":4070,"../../../hooks/useI18nContext":4129,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../../ui/box/box":3899,"../../ui/tooltip/tooltip":4036,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.NetworkListItem=void 0;var r=f(e("react")),o=f(e("classnames")),a=f(e("prop-types")),i=f(e("../../ui/box/box")),s=e("../../../helpers/constants/design-system"),l=e("../../component-library"),u=e("../../component-library/icon/deprecated"),c=e("../../../hooks/useI18nContext"),d=f(e("../../ui/tooltip/tooltip"));function f(e){return e&&e.__esModule?e:{default:e}}const p=({name:e,iconSrc:t,selected:n=!1,onClick:a,onDeleteClick:f})=>{const p=(0,c.useI18nContext)();return r.default.createElement(i.default,{onClick:a,padding:4,gap:2,backgroundColor:n?s.Color.primaryMuted:s.Color.transparent,className:(0,o.default)("multichain-network-list-item",{"multichain-network-list-item--selected":n}),alignItems:s.AlignItems.center,justifyContent:s.JustifyContent.spaceBetween,width:s.BLOCK_SIZES.FULL},n&&r.default.createElement(i.default,{className:"multichain-network-list-item__selected-indicator",borderRadius:s.BorderRadius.pill,backgroundColor:s.Color.primaryDefault}),r.default.createElement(l.AvatarNetwork,{name:e,src:t}),r.default.createElement(i.default,{className:"multichain-network-list-item__network-name"},r.default.createElement(l.ButtonLink,{onClick:a,color:s.TextColor.textDefault,ellipsis:!0},e.length>17?r.default.createElement(d.default,{title:e,position:"bottom",wrapperClassName:"multichain-network-list-item__tooltip"},e):e)),f?r.default.createElement(l.ButtonIcon,{className:"multichain-network-list-item__delete",color:s.IconColor.errorDefault,iconName:u.ICON_NAMES.TRASH,ariaLabel:p("deleteNetwork"),size:s.Size.SM,onClick:e=>{e.stopPropagation(),f()}}):null)};n.NetworkListItem=p,p.propTypes={name:a.default.string.isRequired,iconSrc:a.default.string,selected:a.default.bool,onClick:a.default.func.isRequired,onDeleteClick:a.default.func}}}},{package:"$root$",file:"ui/components/multichain/network-list-item/network-list-item.js"}],[3891,{"./network-list-menu":3892},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NetworkListMenu",{enumerable:!0,get:function(){return r.NetworkListMenu}});var r=e("./network-list-menu")}}},{package:"$root$",file:"ui/components/multichain/network-list-menu/index.js"}],[3892,{"../../../../app/scripts/lib/util":82,"../../../../shared/constants/app":3401,"../../../../shared/constants/network":3409,"../../../helpers/constants/design-system":4070,"../../../helpers/constants/routes":4074,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../../../store/actions":4443,"../../component-library":3840,"../../ui/box/box":3899,"../../ui/popover/popover.component":4e3,"../../ui/toggle-button":4028,"../network-list-item":3889,"prop-types":3032,react:3177,"react-redux":3130,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.NetworkListMenu=void 0;var r=T(e("react")),o=T(e("prop-types")),a=e("react-redux"),i=e("react-router-dom"),s=e("../../../hooks/useI18nContext"),l=T(e("../../ui/popover/popover.component")),u=e("../network-list-item"),c=e("../../../store/actions"),d=e("../../../../shared/constants/network"),f=e("../../../selectors"),p=T(e("../../ui/box/box")),m=T(e("../../ui/toggle-button")),h=e("../../../helpers/constants/design-system"),g=e("../../component-library"),b=e("../../../helpers/constants/routes"),y=e("../../../../app/scripts/lib/util"),v=e("../../../../shared/constants/app");function T(e){return e&&e.__esModule?e:{default:e}}const _=[d.CHAIN_IDS.MAINNET,...d.TEST_CHAINS],C=({closeMenu:e})=>{const t=(0,s.useI18nContext)(),n=(0,a.useSelector)(f.getAllNetworks),o=(0,a.useSelector)(f.getShowTestNetworks),d=(0,a.useSelector)(f.getCurrentChainId),T=(0,a.useDispatch)(),C=(0,i.useHistory)(),E=(0,y.getEnvironmentType)()===v.ENVIRONMENT_TYPE_FULLSCREEN;return r.default.createElement(l.default,{onClose:e,centerTitle:!0,title:t("networkMenuHeading")},r.default.createElement(r.default.Fragment,null,r.default.createElement(p.default,{className:"multichain-network-list-menu"},n.map((t=>{var n;const o=d===t.chainId,a=!o&&!_.includes(t.chainId);return r.default.createElement(u.NetworkListItem,{name:t.nickname,iconSrc:null==t||null===(n=t.rpcPrefs)||void 0===n?void 0:n.imageUrl,key:t.id||t.chainId,selected:o,onClick:()=>{t.providerType?T((0,c.setProviderType)(t.providerType)):T((0,c.setActiveNetwork)(t.id)),e()},onDeleteClick:a?()=>{T((0,c.showModal)({name:"CONFIRM_DELETE_NETWORK",target:t.id||t.chainId,onConfirm:()=>undefined})),e()}:null})}))),r.default.createElement(p.default,{padding:4,display:h.DISPLAY.FLEX,justifyContent:h.JustifyContent.spaceBetween},r.default.createElement(g.Text,null,t("showTestnetNetworks")),r.default.createElement(m.default,{value:o,onToggle:e=>T((0,c.setShowTestNetworks)(!e))})),r.default.createElement(p.default,{padding:4},r.default.createElement(g.Button,{type:g.BUTTON_TYPES.SECONDARY,block:!0,onClick:()=>{E?C.push(b.ADD_POPULAR_CUSTOM_NETWORK):global.platform.openExtensionInBrowser(b.ADD_POPULAR_CUSTOM_NETWORK)}},t("addNetwork")))))};n.NetworkListMenu=C,C.propTypes={closeMenu:o.default.func.isRequired}}}},{package:"$root$",file:"ui/components/multichain/network-list-menu/network-list-menu.js"}],[3893,{"../../../helpers/constants/common":4068,"../../../hooks/useI18nContext":4129,"../../app/user-preferenced-currency-display":3767,"../check-box":3910,"../identicon":3962,"../tooltip":4035,classnames:1980,lodash:2932,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=h(e("react")),o=p(e("prop-types")),a=p(e("classnames")),i=e("lodash"),s=e("../../../hooks/useI18nContext"),l=h(e("../check-box")),u=p(e("../identicon")),c=p(e("../../app/user-preferenced-currency-display")),d=e("../../../helpers/constants/common"),f=p(e("../tooltip"));function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}const g=({selectNewAccountViaModal:e,accounts:t,addressLastConnectedMap:n,selectedAccounts:o,nativeCurrency:i,allAreSelected:p,deselectAll:m,selectAll:h,handleAccountClick:g})=>{const b=(0,s.useI18nContext)(),y=(0,r.useRef)(null);(0,r.useLayoutEffect)((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[o]);const v=()=>{let n;return n=p()?l.CHECKED:0===o.size?l.UNCHECKED:l.INDETERMINATE,r.default.createElement("div",{className:(0,a.default)({"choose-account-list__header--one-item":1===t.length,"choose-account-list__header--multiple-items":t.length>1})},t.length>1?r.default.createElement("div",{className:"choose-account-list__select-all"},r.default.createElement(l.default,{className:"choose-account-list__header-check-box",checked:n,onClick:()=>p()?m():h()}),r.default.createElement("div",{className:"choose-account-list__text-grey"},b("selectAll")),r.default.createElement(f.default,{position:"bottom",html:r.default.createElement("div",{style:{width:200,padding:4}},b("selectingAllWillAllow"))},r.default.createElement("i",{className:"fa fa-info-circle"}))):null,r.default.createElement("div",{className:"choose-account-list__text-blue",onClick:()=>e(g)},b("newAccount")))},T=()=>r.default.createElement("div",{className:"choose-account-list__wrapper"},r.default.createElement("div",{className:"choose-account-list__list"},t.map(((e,t)=>{const{address:a,addressLabel:s,balance:p}=e,m=o.has(a);return r.default.createElement("div",{key:`choose-account-list-${t}`,onClick:()=>g(a),className:"choose-account-list__account",ref:m?y:null},r.default.createElement("div",{className:"choose-account-list__account-info-wrapper"},r.default.createElement(l.default,{className:"choose-account-list__list-check-box",checked:m}),r.default.createElement(u.default,{diameter:34,address:a}),r.default.createElement("div",{className:"choose-account-list__account__info"},r.default.createElement("div",{className:"choose-account-list__account__label"},s),r.default.createElement(c.default,{className:"choose-account-list__account__balance",type:d.PRIMARY,value:p,style:{color:"var(--color-text-alternative)"},suffix:i}))),n[a]?r.default.createElement(f.default,{title:`${b("lastConnected")} ${n[a]}`},r.default.createElement("i",{className:"fa fa-info-circle"})):null)}))));return r.default.createElement("div",{className:"choose-account-list"},r.default.createElement(v,null),r.default.createElement(T,null))};g.propTypes={accounts:o.default.arrayOf(o.default.shape({address:o.default.string,addressLabel:o.default.string,lastConnectedDate:o.default.string,balance:o.default.string})).isRequired,selectNewAccountViaModal:o.default.func.isRequired,addressLastConnectedMap:o.default.object,nativeCurrency:o.default.string.isRequired,selectedAccounts:o.default.object.isRequired,allAreSelected:o.default.func.isRequired,deselectAll:o.default.func.isRequired,selectAll:o.default.func.isRequired,handleAccountClick:o.default.func.isRequired};var b=(0,r.memo)(g,((e,t)=>(0,i.isEqual)(e.selectedAccounts,t.selectedAccounts)));n.default=b}}},{package:"$root$",file:"ui/components/ui/account-list/account-list.js"}],[3894,{"./account-list":3893},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./account-list"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/account-list/index.js"}],[3895,{"../../../helpers/constants/design-system":4070,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../icon/info-icon.component":3950,"../tooltip":4035,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var r=d(e("react")),o=e("react-redux"),a=d(e("prop-types")),i=d(e("../tooltip")),s=e("../../../selectors"),l=d(e("../icon/info-icon.component")),u=e("../../../hooks/useI18nContext"),c=e("../../../helpers/constants/design-system");function d(e){return e&&e.__esModule?e:{default:e}}function f({address:e}){const t=(0,o.useSelector)(s.getSelectedAccount),n=(0,u.useI18nContext)();return t.address===e?null:r.default.createElement(i.default,{position:"bottom",html:r.default.createElement("p",null,n("notCurrentAccount")),wrapperClassName:"account-mismatch-warning__tooltip-wrapper",containerClassName:"account-mismatch-warning__tooltip-container"},r.default.createElement("div",{className:"account-mismatch-warning__tooltip-container-icon"},r.default.createElement(l.default,{severity:c.SEVERITIES.WARNING})))}f.propTypes={address:a.default.string.isRequired}}}},{package:"$root$",file:"ui/components/ui/account-mismatch-warning/account-mismatch-warning.component.js"}],[3896,{"../info-tooltip":3963,"../info-tooltip/info-tooltip-icon":3964,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d,n.typeHash=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=l(e("../info-tooltip")),s=l(e("../info-tooltip/info-tooltip-icon"));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}const c={warning:"actionable-message--warning",danger:"actionable-message--danger",success:"actionable-message--success",default:""};function d({message:e="",primaryAction:t=null,primaryActionV2:n=null,secondaryAction:o=null,className:l="",infoTooltipText:u="",withRightButton:d=!1,type:f="default",useIcon:p=!1,icon:m,iconFillColor:h="",roundedButtons:g,dataTestId:b,autoHideTime:y=0,onAutoHide:v}){const[T,_]=(0,r.useState)(!0);(0,r.useEffect)((function(){if(0===y)return undefined;const e=setTimeout((()=>{null==v||v(),_(!1)}),y);return function(){clearTimeout(e)}}),[y,v]);const C=(0,a.default)("actionable-message",c[f],d?"actionable-message--with-right-button":null,l,{"actionable-message--with-icon":p}),E=t&&!o||o&&!t;return T?r.default.createElement("div",{className:C,"data-testid":b},p?m||r.default.createElement(s.default,{fillColor:h}):null,u&&r.default.createElement(i.default,{position:"left",contentText:u,wrapperClassName:"actionable-message__info-tooltip-wrapper"}),r.default.createElement("div",{className:"actionable-message__message"},e),n&&r.default.createElement("button",{className:"actionable-message__action-v2",onClick:n.onClick},n.label),(t||o)&&r.default.createElement("div",{className:(0,a.default)("actionable-message__actions",{"actionable-message__actions--single":E})},t&&r.default.createElement("button",{className:(0,a.default)("actionable-message__action","actionable-message__action--primary",`actionable-message__action-${f}`,{"actionable-message__action--rounded":g}),onClick:t.onClick},t.label),o&&r.default.createElement("button",{className:(0,a.default)("actionable-message__action","actionable-message__action--secondary",`actionable-message__action-${f}`,{"actionable-message__action--rounded":g}),onClick:o.onClick},o.label))):null}n.typeHash=c,d.propTypes={message:o.default.node.isRequired,primaryAction:o.default.shape({label:o.default.string,onClick:o.default.func}),primaryActionV2:o.default.shape({label:o.default.string,onClick:o.default.func}),secondaryAction:o.default.shape({label:o.default.string,onClick:o.default.func}),className:o.default.string,type:o.default.oneOf(Object.keys(c)),withRightButton:o.default.bool,infoTooltipText:o.default.string,useIcon:o.default.bool,icon:o.default.node,iconFillColor:o.default.string,roundedButtons:o.default.bool,dataTestId:o.default.string,autoHideTime:o.default.number,onAutoHide:o.default.func}}}},{package:"$root$",file:"ui/components/ui/actionable-message/actionable-message.js"}],[3897,{"./actionable-message":3896},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./actionable-message"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/actionable-message/index.js"}],[3898,{"../../../../shared/constants/time":3415,"../../../hooks/usePrevious":4133,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e("classnames")),o=u(e("prop-types")),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),i=e("../../../hooks/usePrevious"),s=e("../../../../shared/constants/time");function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){const[t,n]=(0,a.useState)(!1),[o,l]=(0,a.useState)(""),u=(0,i.usePrevious)(e.visible);return(0,a.useEffect)((()=>{!u&&e.visible?(e.msg,l("visible"),n(!0)):u&&!e.visible&&(l("hidden"),setTimeout((e=>{n(!1)}),500*s.MILLISECOND))}),[u,e.msg,e.visible]),t?a.default.createElement("div",{className:(0,r.default)("global-alert",o)},a.default.createElement("a",{className:"msg"},e.msg)):null}c.propTypes={visible:o.default.bool.isRequired,msg:o.default.string};var d=c;n.default=d}}},{package:"$root$",file:"ui/components/ui/alert/index.js"}],[3899,{"../../../helpers/constants/design-system":4070,classnames:1980,lodash:2932,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ValidTextColors=n.ValidIconColors=n.ValidBorderColors=n.ValidBackgroundColor=n.MultipleTextColors=n.MultipleSizesAndAuto=n.MultipleSizes=n.MultipleJustifyContents=n.MultipleBorderColors=n.MultipleBlockSizes=n.MultipleBackgroundColor=n.MultipleAlignItems=void 0;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("lodash"),s=e("../../../helpers/constants/design-system");function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const c="box",d=[0,1,2,3,4,5,6,7,8,9,10,11,12],f=o.default.oneOf(d),p=o.default.oneOf(Object.values(s.BLOCK_SIZES)),m=o.default.oneOf([...d,"auto"]),h=o.default.oneOf(Object.values(s.BackgroundColor));n.ValidBackgroundColor=h;const g=o.default.oneOf(Object.values(s.BorderColor));n.ValidBorderColors=g;const b=o.default.oneOf(Object.values(s.TextColor));n.ValidTextColors=b;const y=o.default.oneOf(Object.values(s.IconColor));n.ValidIconColors=y;const v=o.default.oneOf(Object.values(s.AlignItems)),T=o.default.oneOf(Object.values(s.JustifyContent)),_=o.default.arrayOf(f),C=o.default.oneOfType([f,_]);n.MultipleSizes=C;const E=o.default.arrayOf(p),O=o.default.oneOfType([p,E]);n.MultipleBlockSizes=O;const w=o.default.arrayOf(m),k=o.default.oneOfType([m,w]);n.MultipleSizesAndAuto=k;const N=o.default.arrayOf(g),M=o.default.oneOfType([g,N]);n.MultipleBorderColors=M;const x=o.default.arrayOf(h),P=o.default.oneOfType([h,x]);n.MultipleBackgroundColor=P;const S=o.default.arrayOf(b),j=o.default.arrayOf(y),I=o.default.oneOfType([b,S,y,j]);n.MultipleTextColors=I;const A=o.default.arrayOf(v),L=o.default.oneOfType([v,A]);n.MultipleAlignItems=L;const R=o.default.arrayOf(T),D=o.default.oneOfType([T,R]);function B(e,t){return"number"==typeof t||("margin"===e||"margin-top"===e||"margin-right"===e||"margin-bottom"===e||"margin-left"===e||"margin-inline"===e||"margin-inline-start"===e||"margin-inline-end"===e)&&"auto"===t}function $(e,t){return"string"==typeof e&&"string"==typeof t}n.MultipleJustifyContents=D;const H=(0,i.memoize)(((e,t,n)=>{if(!t)return null;const r={},o=Array.isArray(t)&&1===t.length?t[0]:undefined,a=(!Array.isArray(t)&&"string"==typeof t||"number"==typeof t?t:undefined)||o;if(a||0===a)r[`box--${e}-${a}`]=n(e,a);else switch(t.length){case 4:r[`box--${e}-${t[0]}`]=t[0]&&n(e,t[0]),r[`box--${s.BREAKPOINTS[1]}:${e}-${t[1]}`]=t[1]&&n(e,t[1]),r[`box--${s.BREAKPOINTS[2]}:${e}-${t[2]}`]=t[2]&&n(e,t[2]),r[`box--${s.BREAKPOINTS[3]}:${e}-${t[3]}`]=t[3]&&n(e,t[3]);break;case 3:r[`box--${e}-${t[0]}`]=t[0]&&n(e,t[0]),r[`box--${s.BREAKPOINTS[1]}:${e}-${t[1]}`]=t[1]&&n(e,t[1]),r[`box--${s.BREAKPOINTS[2]}:${e}-${t[2]}`]=t[2]&&n(e,t[2]);break;case 2:r[`box--${e}-${t[0]}`]=t[0]&&n(e,t[0]),r[`box--${s.BREAKPOINTS[1]}:${e}-${t[1]}`]=t[1]&&n(e,t[1]);break;default:console.log(`Invalid array prop length: ${t.length}`)}return r}),((e,t)=>[e,t])),W=r.default.forwardRef((function({padding:e,paddingTop:t,paddingRight:n,paddingBottom:o,paddingLeft:i,paddingInline:l,paddingInlineStart:d,paddingInlineEnd:f,margin:p,marginTop:m,marginRight:h,marginBottom:g,marginLeft:b,marginInline:y,marginInlineStart:v,marginInlineEnd:T,borderColor:_,borderWidth:C,borderRadius:E,borderStyle:O,alignItems:w,justifyContent:k,textAlign:N,flexDirection:M=s.FLEX_DIRECTION.ROW,flexWrap:x,gap:P,display:S,width:j,height:I,children:A,className:L,backgroundColor:R,color:D,ariaLabel:W,as:F="div",...V},U){const z=(0,a.default)(c,L,p&&H("margin",p,B),m&&H("margin-top",m,B),h&&H("margin-right",h,B),g&&H("margin-bottom",g,B),b&&H("margin-left",b,B),y&&H("margin-inline",y,B),v&&H("margin-inline-start",v,B),T&&H("margin-inline-end",T,B),e&&H("padding",e,B),t&&H("padding-top",t,B),n&&H("padding-right",n,B),o&&H("padding-bottom",o,B),i&&H("padding-left",i,B),l&&H("padding-inline",l,B),d&&H("padding-inline-start",d,B),f&&H("padding-inline-end",f,B),S&&H("display",S,$),P&&H("gap",P,B),M&&H("flex-direction",M,$),x&&H("flex-wrap",x,$),k&&H("justify-content",k,$),w&&H("align-items",w,$),N&&H("text-align",N,$),j&&H("width",j,$),I&&H("height",I,$),D&&H("color",D,$),R&&H("background-color",R,$),E&&H("rounded",E,$),O&&H("border-style",O,$),_&&H("border-color",_,$),C&&H("border-width",C,B),{"box--border-style-solid":!O&&(Boolean(C)||Boolean(_)),"box--border-width-1":!C&&Boolean(_),"box--display-flex":!S&&(Boolean(k)||Boolean(w))});if("function"==typeof A)return A(z);const G=F,K={};return"function"==typeof G.type?K.ariaLabel=W:K["aria-label"]=W,V["aria-label"]&&(K["aria-label"]=V["aria-label"]),r.default.createElement(G,u({className:z,ref:U},V,K),A)}));W.propTypes={children:o.default.oneOfType([o.default.node,o.default.func]),flexDirection:o.default.oneOfType([o.default.oneOf(Object.values(s.FLEX_DIRECTION)),o.default.arrayOf(o.default.oneOf(Object.values(s.FLEX_DIRECTION)))]),flexWrap:o.default.oneOfType([o.default.oneOf(Object.values(s.FLEX_WRAP)),o.default.arrayOf(o.default.oneOf(Object.values(s.FLEX_WRAP)))]),gap:C,margin:k,marginTop:k,marginBottom:k,marginRight:k,marginLeft:k,marginInline:k,marginInlineStart:k,marginInlineEnd:k,padding:C,paddingTop:C,paddingBottom:C,paddingRight:C,paddingLeft:C,paddingInline:C,paddingInlineStart:C,paddingInlineEnd:C,borderColor:M,borderWidth:o.default.oneOfType([o.default.number,o.default.arrayOf(o.default.number)]),borderRadius:o.default.oneOfType([o.default.oneOf(Object.values(s.BorderRadius)),o.default.arrayOf(o.default.oneOf(Object.values(s.BorderRadius)))]),borderStyle:o.default.oneOfType([o.default.oneOf(Object.values(s.BorderStyle)),o.default.arrayOf(o.default.oneOf(Object.values(s.BorderStyle)))]),alignItems:L,justifyContent:D,textAlign:o.default.oneOfType([o.default.oneOf(Object.values(s.TEXT_ALIGN)),o.default.arrayOf(o.default.oneOf(Object.values(s.TEXT_ALIGN)))]),display:o.default.oneOfType([o.default.oneOf(Object.values(s.DISPLAY)),o.default.arrayOf(o.default.oneOf(Object.values(s.DISPLAY)))]),width:O,height:O,backgroundColor:P,className:o.default.string,style:o.default.object,as:o.default.string,color:I,ariaLabel:o.default.string,"aria-label":o.default.string};var F=W;n.default=F}}},{package:"$root$",file:"ui/components/ui/box/box.js"}],[3900,{"./box":3899},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"MultipleSizes",{enumerable:!0,get:function(){return r.MultipleSizes}}),Object.defineProperty(n,"MultipleSizesAndAuto",{enumerable:!0,get:function(){return r.MultipleSizesAndAuto}}),Object.defineProperty(n,"ValidBackgroundColor",{enumerable:!0,get:function(){return r.ValidBackgroundColor}}),Object.defineProperty(n,"ValidBorderColors",{enumerable:!0,get:function(){return r.ValidBorderColors}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r.default}});var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(e("./box"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}}}},{package:"$root$",file:"ui/components/ui/box/index.js"}],[3901,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends r.PureComponent{constructor(...e){super(...e),l(this,"state",{activeButtonIndex:this.props.noButtonActiveByDefault?null:this.props.defaultActiveButtonIndex})}componentDidUpdate(e,t){"number"==typeof this.props.newActiveButtonIndex&&t.activeButtonIndex!==this.props.newActiveButtonIndex&&this.setState({activeButtonIndex:this.props.newActiveButtonIndex})}handleButtonClick(e){this.setState({activeButtonIndex:e})}renderButtons(){const{children:e,disabled:t,variant:n}=this.props;return r.default.Children.map(e,((e,o)=>e&&r.default.createElement("button",{role:"radiogroup"===n?"radio":undefined,"aria-checked":o===this.state.activeButtonIndex,className:(0,a.default)("button-group__button",e.props.className,{"radio-button":"radiogroup"===n,"button-group__button--active":o===this.state.activeButtonIndex,"radio-button--active":"radiogroup"===n&&o===this.state.activeButtonIndex}),"data-testid":`button-group__button${o}`,onClick:()=>{var t,n;this.handleButtonClick(o),null===(t=(n=e.props).onClick)||void 0===t||t.call(n)},disabled:t||e.props.disabled,key:o},e.props.children)))}render(){const{className:e,style:t,variant:n}=this.props;return r.default.createElement("div",{className:(0,a.default)(e,{"radio-button-group":"radiogroup"===n}),role:"radiogroup"===n?"radiogroup":undefined,style:t},this.renderButtons())}}n.default=u,l(u,"propTypes",{defaultActiveButtonIndex:o.default.number,noButtonActiveByDefault:o.default.bool,disabled:o.default.bool,children:o.default.array,className:o.default.string,style:o.default.object,newActiveButtonIndex:o.default.number,variant:o.default.oneOf(["radiogroup","default"])}),l(u,"defaultProps",{className:"button-group",defaultActiveButtonIndex:0,variant:"default"})}}},{package:"$root$",file:"ui/components/ui/button-group/button-group.component.js"}],[3902,{"./button-group.component":3901},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./button-group.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/button-group/index.js"}],[3903,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const l="btn-default",u={default:l,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"},c=({type:e,submit:t=!1,large:n,children:o,icon:i,className:c,rounded:d=!0,...f})=>{const p=d&&"link"!==e&&"inline"!==e;let m="button";return"link"===e?m="a":t&&(f.type="submit"),"function"==typeof f.onClick&&(f.onKeyUp??(f.onKeyUp=e=>{"Enter"===e.key&&f.onClick()}),f.role??(f.role="button"),f.tabIndex??(f.tabIndex=0)),r.default.createElement(m,s({className:(0,a.default)("button",p&&"btn--rounded",u[e]||l,n&&"btn--large",c)},f),i?r.default.createElement("span",{className:"button__icon"},i):null,o)};c.propTypes={type:o.default.string,submit:o.default.bool,large:o.default.bool,className:o.default.string,children:o.default.node,icon:o.default.node,rounded:o.default.bool};var d=c;n.default=d}}},{package:"$root$",file:"ui/components/ui/button/button.component.js"}],[3904,{"./button.component":3903},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./button.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/button/index.js"}],[3905,{"../../../../shared/constants/time":3415,"../../../helpers/constants/design-system":4070,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../icon/info-icon-inverted.component":3949,"../typography":4039,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=m;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=f(e("prop-types")),a=f(e("classnames")),i=f(e("../icon/info-icon-inverted.component")),s=e("../../../helpers/constants/design-system"),l=e("../../../../shared/constants/time"),u=f(e("../typography")),c=e("../../component-library"),d=e("../../component-library/icon/deprecated");function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function m({severity:e,children:t,dismiss:n,isFirst:o,isLast:f,isMultiple:p}){const[m,h]=(0,r.useState)(!1),g=(0,a.default)("callout",`callout--${e}`,{"callout--dismissed":!0===m,"callout--multiple":!0===p,"callout--dismissible":Boolean(n),"callout--first":!0===o||!0!==p,"callout--last":!0===f||!0!==p});return(0,r.useEffect)((()=>{m&&setTimeout((()=>{n()}),500*l.MILLISECOND)}),[m,n]),r.default.createElement("div",{className:g},r.default.createElement(i.default,{severity:e}),r.default.createElement(u.default,{color:s.Color.textDefault,className:"callout__content"},t),n&&r.default.createElement(c.ButtonIcon,{iconName:d.ICON_NAMES.CLOSE,size:d.ICON_SIZES.SM,className:"callout__close-button",onClick:()=>{h(!0)},onKeyUp:e=>{"Enter"===e.key&&h(!0)}}))}m.propTypes={severity:o.default.oneOf(Object.values(s.SEVERITIES)).isRequired,children:o.default.node.isRequired,dismiss:o.default.func,isFirst:o.default.bool,isLast:o.default.bool,isMultiple:o.default.bool}}}},{package:"$root$",file:"ui/components/ui/callout/callout.js"}],[3906,{"./callout":3905},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./callout"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/callout/index.js"}],[3907,{"../../../helpers/constants/design-system":4070,"../box":3900,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=s(e("react")),o=s(e("prop-types")),a=s(e("../box")),i=e("../../../helpers/constants/design-system");function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const u=({border:e=!0,backgroundColor:t=i.BackgroundColor.backgroundDefault,children:n,...o})=>r.default.createElement(a.default,l({borderColor:e?i.BorderColor.borderMuted:null,borderRadius:e?i.BorderRadius.MD:null,borderStyle:e?i.BorderStyle.solid:null,backgroundColor:t,padding:4},o),n);u.propTypes={border:o.default.bool,backgroundColor:o.default.oneOf(Object.values(i.BackgroundColor)),...a.default.propTypes};var c=u;n.default=c}}},{package:"$root$",file:"ui/components/ui/card/card.js"}],[3908,{"./card":3907},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./card"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/card/index.js"}],[3909,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.UNCHECKED=n.INDETERMINATE=n.CHECKED=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}const l={CHECKED:"CHECKED",INDETERMINATE:"INDETERMINATE",UNCHECKED:"UNCHECKED"},{CHECKED:u,INDETERMINATE:c,UNCHECKED:d}=l;n.UNCHECKED=d,n.INDETERMINATE=c,n.CHECKED=u;const f=({className:e,disabled:t,id:n,onClick:o,checked:i,title:s,dataTestId:u})=>{"boolean"==typeof i&&(i=i?l.CHECKED:l.UNCHECKED);const c=(0,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{c.current.indeterminate=i===l.INDETERMINATE}),[i]),r.default.createElement("input",{checked:i===l.CHECKED,className:(0,a.default)("check-box",e,{"far fa-square":i===l.UNCHECKED,"fa fa-check-square check-box__checked":i===l.CHECKED,"fa fa-minus-square check-box__indeterminate":i===l.INDETERMINATE}),disabled:t,id:n,onClick:o?e=>{e.preventDefault(),o()}:null,readOnly:!0,ref:c,title:s,"data-testid":u,type:"checkbox"})};f.propTypes={className:o.default.string,disabled:o.default.bool,id:o.default.string,onClick:o.default.func,checked:o.default.oneOf([...Object.keys(l),!0,!1]).isRequired,title:o.default.string,dataTestId:o.default.string},f.defaultProps={className:undefined,disabled:!1,id:undefined};var p=f;n.default=p}}},{package:"$root$",file:"ui/components/ui/check-box/check-box.component.js"}],[3910,{"./check-box.component":3909},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"CHECKED",{enumerable:!0,get:function(){return r.CHECKED}}),Object.defineProperty(n,"INDETERMINATE",{enumerable:!0,get:function(){return r.INDETERMINATE}}),Object.defineProperty(n,"UNCHECKED",{enumerable:!0,get:function(){return r.UNCHECKED}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r.default}});var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(e("./check-box.component"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}}}},{package:"$root$",file:"ui/components/ui/check-box/index.js"}],[3911,{".":3913,"../../../helpers/constants/design-system":4070,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ChipWithInput=u;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("../../../helpers/constants/design-system"),s=l(e("."));function l(e){return e&&e.__esModule?e:{default:e}}function u({dataTestId:e,className:t,borderColor:n=i.BorderColor.borderDefault,inputValue:o,setInputValue:l}){return r.default.createElement(s.default,{className:(0,a.default)(t,"chip--with-input"),borderColor:n},l&&r.default.createElement("input",{"data-testid":e,type:"text",className:"chip__input",onChange:e=>{l(e.target.value)},value:o}))}u.propTypes={dataTestId:o.default.string,borderColor:o.default.oneOf(Object.values(i.BorderColor)),className:o.default.string,inputValue:o.default.string,setInputValue:o.default.func}}}},{package:"$root$",file:"ui/components/ui/chip/chip-with-input.js"}],[3912,{"../../../helpers/constants/design-system":4070,"../typography":4039,"../url-icon":4044,classnames:1980,lodash:2932,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var r=c(e("react")),o=c(e("prop-types")),a=c(e("classnames")),i=e("lodash"),s=c(e("../typography")),l=c(e("../url-icon")),u=e("../../../helpers/constants/design-system");function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f({dataTestId:e,className:t,children:n,borderColor:o=u.BorderColor.borderDefault,backgroundColor:i,label:c,labelProps:f={},leftIcon:p,leftIconUrl:m="",rightIcon:h,onClick:g,maxContent:b=!0,displayInlineBlock:y=!1}){const v="function"==typeof g;return r.default.createElement("div",{"data-testid":e,onClick:g,onKeyPress:e=>{"Enter"===e.key&&g&&g(e)},className:(0,a.default)(t,"chip",{"chip--with-left-icon":Boolean(p),"chip--with-right-icon":Boolean(h),[`chip--border-color-${o}`]:!0,[`chip--background-color-${i}`]:!0,"chip--max-content":b,"chip--display-inline-block":y}),role:v?"button":undefined,tabIndex:v?0:undefined},p&&!m?r.default.createElement("div",{className:"chip__left-icon"},p):null,m?r.default.createElement(l.default,{className:"chip__left-url-icon",url:m}):null,n??r.default.createElement(s.default,d({className:"chip__label",variant:u.TypographyVariant.H6,as:"span",color:u.TextColor.textAlternative},f),c),h?r.default.createElement("div",{className:"chip__right-icon"},h):null)}f.propTypes={dataTestId:o.default.string,borderColor:o.default.oneOf(Object.values(u.BorderColor)),backgroundColor:o.default.oneOf(Object.values(u.BackgroundColor)),label:o.default.string,labelProps:o.default.shape({...(0,i.omit)(u.TypographyVariant.propTypes,["children","className"])}),children:o.default.node,leftIcon:o.default.node,rightIcon:o.default.node,className:o.default.string,onClick:o.default.func,maxContent:o.default.bool,leftIconUrl:o.default.string,displayInlineBlock:o.default.bool}}}},{package:"$root$",file:"ui/components/ui/chip/chip.js"}],[3913,{"./chip":3912},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./chip"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/chip/index.js"}],[3914,{"../../../helpers/constants/design-system":4070,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r=s(e("react")),o=s(e("classnames")),a=s(e("prop-types")),i=e("../../../helpers/constants/design-system");function s(e){return e&&e.__esModule?e:{default:e}}function l({size:e=i.Size.SM,type:t="outlined",color:n=i.Color.iconMuted,borderColor:a,iconClassName:s}){const l=(0,o.default)("color-indicator",{"color-indicator--filled":"filled"===t||Boolean(s),"color-indicator--partial-filled":"partial-filled"===t,[`color-indicator--border-color-${a}`]:Boolean(a),[`color-indicator--color-${n}`]:!0,[`color-indicator--size-${e}`]:!0});return r.default.createElement("div",{className:l,"data-testid":`color-icon-${n}`},s?r.default.createElement("i",{className:(0,o.default)("color-indicator__icon",s)}):r.default.createElement("span",{className:"color-indicator__inner-circle"}))}l.TYPES={FILLED:"filled",PARTIAL:"partial-filled",OUTLINE:"outline"},l.propTypes={color:a.default.oneOf(Object.values(i.Color)),borderColor:a.default.oneOf(Object.values(i.BorderColor)),size:a.default.oneOf(Object.values(i.Size)),iconClassName:a.default.string,type:a.default.oneOf(Object.values(l.TYPES))}}}},{package:"$root$",file:"ui/components/ui/color-indicator/color-indicator.js"}],[3915,{"./color-indicator":3914},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./color-indicator"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/color-indicator/index.js"}],[3916,{"../../../hooks/useI18nContext":4129,"../tooltip":4035,"prop-types":3032,react:3177,"unicode-confusables":3344},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=l(e("prop-types")),a=e("unicode-confusables"),i=l(e("../tooltip")),s=e("../../../hooks/useI18nContext");function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}const c=({input:e})=>{const t=(0,s.useI18nContext)();return(0,r.useMemo)((()=>(0,a.confusables)(e)),[e]).map((({point:e,similarTo:n},o)=>{const a=""===n;return n===undefined?e:r.default.createElement(i.default,{key:o.toString(),tag:"span",position:"top",title:a?t("confusableZeroWidthUnicode"):t("confusableUnicode",[e,n])},r.default.createElement("span",{className:"confusable__point"},a?"?":e))}))};c.propTypes={input:o.default.string.isRequired};var d=c;n.default=d}}},{package:"$root$",file:"ui/components/ui/confusable/confusable.component.js"}],[3917,{"./confusable.component":3916},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./confusable.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/confusable/index.js"}],[3918,{"../../../helpers/constants/design-system":4070,"../../../hooks/useCopyToClipboard":4123,"../../../hooks/useI18nContext":4129,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../box/box":3899,"../identicon":3962,"../tooltip/tooltip":4036,"../typography/typography":4040,"@metamask/etherscan-link":1221,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=g;var r=h(e("react")),o=h(e("prop-types")),a=e("@metamask/etherscan-link"),i=h(e("../box/box")),s=h(e("../tooltip/tooltip")),l=e("../../../hooks/useI18nContext"),u=h(e("../identicon")),c=h(e("../typography/typography")),d=e("../../../helpers/constants/design-system"),f=e("../../../hooks/useCopyToClipboard"),p=e("../../component-library"),m=e("../../component-library/icon/deprecated");function h(e){return e&&e.__esModule?e:{default:e}}function g({address:e,tokenName:t,chainId:n,rpcPrefs:o}){const h=(0,l.useI18nContext)(),[g,b]=(0,f.useCopyToClipboard)();return r.default.createElement(i.default,{className:"contract-token-values",display:d.DISPLAY.FLEX,alignItems:d.AlignItems.center,justifyContent:d.JustifyContent.center,gap:2},r.default.createElement(u.default,{address:e,diameter:24}),r.default.createElement(c.default,{variant:d.TypographyVariant.H2,fontWeight:d.FONT_WEIGHT.BOLD,color:d.TextColor.textAlternative,marginTop:0,marginBottom:0},t),r.default.createElement(s.default,{position:"top",title:h(g?"copiedExclamation":"copyToClipboard")},r.default.createElement(p.ButtonIcon,{iconName:g?m.ICON_NAMES.COPY_SUCCESS:m.ICON_NAMES.COPY,color:d.Color.iconMuted,onClick:()=>b(e),ariaLabel:h(g?"copiedExclamation":"copyToClipboard")})),r.default.createElement(s.default,{position:"top",title:h("openInBlockExplorer")},r.default.createElement(p.ButtonIcon,{display:d.DISPLAY.FLEX,iconName:m.ICON_NAMES.EXPORT,color:d.Color.iconMuted,onClick:()=>{const t=(0,a.getAccountLink)(e,n,{blockExplorerUrl:(null==o?void 0:o.blockExplorerUrl)??null},null);global.platform.openTab({url:t})},ariaLabel:h("openInBlockExplorer")})))}g.propTypes={address:o.default.string,tokenName:o.default.string,chainId:o.default.string,rpcPrefs:o.default.object}}}},{package:"$root$",file:"ui/components/ui/contract-token-values/contract-token-values.js"}],[3919,{"../../../../shared/constants/common":3403,"../../../hooks/useCurrencyDisplay":4124,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=u;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("../../../hooks/useCurrencyDisplay"),s=e("../../../../shared/constants/common");function l(e){return e&&e.__esModule?e:{default:e}}function u({value:e,displayValue:t,"data-testid":n,style:o,className:s,prefix:l,prefixComponent:u,hideLabel:c,hideTitle:d,numberOfDecimals:f,denomination:p,currency:m,suffix:h}){const[g,b]=(0,i.useCurrencyDisplay)(e,{displayValue:t,prefix:l,numberOfDecimals:f,hideLabel:c,denomination:p,currency:m,suffix:h});return r.default.createElement("div",{className:(0,a.default)("currency-display-component",s),"data-testid":n,style:o,title:!d&&g||null},r.default.createElement("span",{className:"currency-display-component__prefix"},u),r.default.createElement("span",{className:"currency-display-component__text"},b.prefix,b.value),b.suffix&&r.default.createElement("span",{className:"currency-display-component__suffix"},b.suffix))}u.propTypes={className:o.default.string,currency:o.default.string,"data-testid":o.default.string,denomination:o.default.oneOf([s.EtherDenomination.GWEI,s.EtherDenomination.ETH]),displayValue:o.default.string,hideLabel:o.default.bool,hideTitle:o.default.bool,numberOfDecimals:o.default.oneOfType([o.default.string,o.default.number]),prefix:o.default.string,prefixComponent:o.default.node,style:o.default.object,suffix:o.default.oneOfType([o.default.string,o.default.bool]),value:o.default.string}}}},{package:"$root$",file:"ui/components/ui/currency-display/currency-display.component.js"}],[3920,{"./currency-display.component":3919},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./currency-display.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/currency-display/index.js"}],[3921,{"../../../helpers/constants/design-system":4070,"../tooltip":4035,"../typography":4039,lodash:2932,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var r=u(e("react")),o=u(e("prop-types")),a=e("lodash"),i=u(e("../typography")),s=e("../../../helpers/constants/design-system"),l=u(e("../tooltip"));function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d={[s.Size.XS]:0,[s.Size.SM]:2,[s.Size.MD]:4,[s.Size.LG]:6,[s.Size.XL]:8};function f({dictionary:e,termTypography:t={},definitionTypography:n={},tooltips:o={},gapSize:a=s.Size.SM}){return r.default.createElement("dl",{className:"definition-list"},Object.entries(e).map((([e,u])=>r.default.createElement(r.default.Fragment,{key:`definition-for-${e}`},r.default.createElement(i.default,c({variant:s.TypographyVariant.H6,fontWeight:s.FONT_WEIGHT.BOLD},t,{boxProps:{marginTop:0,marginBottom:1},className:"definition-list__term",as:"dt"}),e,o[e]&&r.default.createElement(l.default,{title:o[e],position:"top",containerClassName:"definition-list__tooltip-wrapper"},r.default.createElement("i",{className:"fas fa-info-circle"}))),r.default.createElement(i.default,c({variant:s.TypographyVariant.H6,color:s.TextColor.textAlternative},n,{boxProps:{marginTop:0,marginBottom:d[a]},className:"definition-list__definition",overflowWrap:s.OVERFLOW_WRAP.BREAK_WORD,as:"dd"}),u)))))}f.propTypes={gapSize:o.default.oneOf(Object.values(s.Size)),dictionary:o.default.objectOf(o.default.oneOfType([o.default.string,o.default.number])),tooltips:o.default.objectOf(o.default.string),termTypography:o.default.shape({...(0,a.omit)(s.TypographyVariant.propTypes,["tag","className","boxProps"])}),definitionTypography:o.default.shape({...(0,a.omit)(s.TypographyVariant.propTypes,["tag","className","boxProps"])})}}}},{package:"$root$",file:"ui/components/ui/definition-list/definition-list.js"}],[3922,{"./definition-list":3921},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./definition-list"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/definition-list/index.js"}],[3923,{"../../../ducks/metamask/metamask":4062,"../../../helpers/constants/design-system":4070,"../../../hooks/useI18nContext":4129,"../../../selectors":4436,"../actionable-message/actionable-message":3896,"../box/box":3899,"../button":3904,"../typography/typography":4040,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){const e=(0,o.useSelector)(d.getCurrentChainId),[t,n]=(0,r.useState)(!1),p=(0,o.useSelector)(f.getCompletedOnboarding),m=(0,i.useI18nContext)();return(0,r.useEffect)((()=>{n(!(!p||"0x3"!==e&&"0x2a"!==e&&"0x4"!==e))}),[e,p]),t&&r.default.createElement(c.default,{type:"warning",className:"deprecated-test-networks",withRightButton:!0,message:r.default.createElement(l.default,{display:s.DISPLAY.FLEX,className:"deprecated-test-networks__content"},r.default.createElement(l.default,{marginRight:2,color:s.Color.warningDefault},r.default.createElement("i",{className:"fa fa-info-circle deprecated-test-networks__content__icon"})),r.default.createElement(l.default,{justifyContent:s.JustifyContent.spaceBetween},r.default.createElement(u.default,{variant:s.TypographyVariant.H7,marginTop:0,marginBottom:0},m("deprecatedTestNetworksMsg"),r.default.createElement(a.default,{className:"deprecated-test-networks__content__inline-link",type:"link",target:"_blank",href:"https://blog.ethereum.org/2022/06/21/testnet-deprecation/"}," ",m("deprecatedTestNetworksLink"))),r.default.createElement(l.default,{className:"deprecated-test-networks__content__close",marginLeft:2,marginTop:0,color:s.Color.iconAlternative,onClick:()=>n(!1)})))})};var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=e("react-redux"),a=p(e("../button")),i=e("../../../hooks/useI18nContext"),s=e("../../../helpers/constants/design-system"),l=p(e("../box/box")),u=p(e("../typography/typography")),c=p(e("../actionable-message/actionable-message")),d=e("../../../selectors"),f=e("../../../ducks/metamask/metamask");function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}}}},{package:"$root$",file:"ui/components/ui/deprecated-test-networks/deprecated-test-networks.js"}],[3924,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var r=i(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){const{children:t,type:n,className:o,onClick:i}=e;return r.default.createElement("div",{className:(0,a.default)("dialog",o,{"dialog--message":"message"===n,"dialog--error":"error"===n,"dialog--warning":"warning"===n}),"data-testid":"dialog-message",onClick:i},t)}s.propTypes={className:o.default.string,children:o.default.node,type:o.default.oneOf(["message","error","warning"]),onClick:o.default.func}}}},{package:"$root$",file:"ui/components/ui/dialog/index.js"}],[3925,{"../../../helpers/constants/design-system":4070,"../../component-library/icon/deprecated":3836,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("../../component-library/icon/deprecated"),s=e("../../../helpers/constants/design-system");function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}const c=({children:e,title:t,size:n})=>{const o=(0,r.useRef)(null),[l,u]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{l&&o&&o.current&&o.current.scrollIntoView({behavior:"smooth"})}),[l]),r.default.createElement("div",{className:"disclosure",onClick:()=>u((e=>!e))},t?r.default.createElement("details",null,r.default.createElement("summary",{className:"disclosure__summary"},r.default.createElement(i.Icon,{className:"disclosure__summary--icon",name:i.ICON_NAMES.ADD,size:s.Size.SM,marginInlineEnd:2}),t),r.default.createElement("div",{className:(0,a.default)("disclosure__content",n)},e),r.default.createElement("div",{ref:o,className:"disclosure__footer"})):e)};c.propTypes={children:o.default.node.isRequired,title:o.default.string,size:o.default.string},c.defaultProps={size:"normal",title:null};var d=c;n.default=d}}},{package:"$root$",file:"ui/components/ui/disclosure/disclosure.js"}],[3926,{"./disclosure":3925},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./disclosure"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/disclosure/index.js"}],[3927,{"../../component-library/icon/deprecated":3836,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=s(e("prop-types")),a=s(e("classnames")),i=e("../../component-library/icon/deprecated");function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}const u=({className:e,disabled:t=!1,onChange:n,options:o,selectedOption:s="",style:l,title:u,"data-testid":c})=>{const d=(0,r.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),n(e.target.value)}),[n]);return r.default.createElement("div",{className:(0,a.default)("dropdown",e)},r.default.createElement("select",{className:"dropdown__select","data-testid":c,disabled:t,title:u,onChange:d,style:l,value:s},o.map((e=>r.default.createElement("option",{key:e.value,value:e.value},e.name||e.value)))),r.default.createElement(i.Icon,{name:i.ICON_NAMES.ARROW_DOWN,size:i.ICON_SIZES.SM,className:"dropdown__icon-caret-down"}))};u.propTypes={className:o.default.string,disabled:o.default.bool,title:o.default.string,onChange:o.default.func.isRequired,options:o.default.arrayOf(o.default.exact({name:o.default.string,value:o.default.string.isRequired})).isRequired,selectedOption:o.default.string,style:o.default.object,"data-testid":o.default.string};var c=u;n.default=c}}},{package:"$root$",file:"ui/components/ui/dropdown/dropdown.js"}],[3928,{"./dropdown":3927},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./dropdown"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/dropdown/index.js"}],[3929,{"../../../helpers/constants/design-system":4070,"../../../helpers/utils/accounts":4087,"../../component-library":3840,"../../component-library/icon/deprecated":3836,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=d(e("classnames")),o=d(e("prop-types")),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),i=e("../../../helpers/constants/design-system"),s=e("../../../helpers/utils/accounts"),l=e("../../component-library"),u=e("../../component-library/icon/deprecated");function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends a.Component{constructor(...e){super(...e),f(this,"state",{isEditing:!1,value:this.props.defaultValue||""})}async handleSubmit(e){e&&(await this.props.onSubmit(this.state.value),this.setState({isEditing:!1}))}renderEditing(){const{isValidAccountName:e,errorMessage:t}=(0,s.getAccountNameErrorMessage)(this.props.accounts,this.context,this.state.value,this.props.defaultValue);return a.default.createElement("div",{className:(0,r.default)("editable-label",this.props.className)},a.default.createElement("input",{type:"text",required:!0,dir:"auto",value:this.state.value,onKeyPress:t=>{"Enter"===t.key&&this.handleSubmit(e)},onChange:e=>this.setState({value:e.target.value}),"data-testid":"editable-input",className:(0,r.default)("large-input","editable-label__input",{"editable-label__input--error":!e}),autoFocus:!0}),a.default.createElement(l.ButtonIcon,{iconName:u.ICON_NAMES.CHECK,className:"editable-label__icon-button",onClick:()=>this.handleSubmit(e)}),a.default.createElement("div",{className:"editable-label__error editable-label__error-amount"},t))}renderReadonly(){return a.default.createElement("div",{className:(0,r.default)("editable-label",this.props.className)},a.default.createElement("div",{className:"editable-label__value"},this.state.value),a.default.createElement(l.ButtonIcon,{iconName:u.ICON_NAMES.EDIT,ariaLabel:this.context.t("edit"),"data-testid":"editable-label-button",onClick:()=>this.setState({isEditing:!0}),color:i.Color.iconDefault}))}render(){return this.state.isEditing?this.renderEditing():this.renderReadonly()}}n.default=p,f(p,"propTypes",{onSubmit:o.default.func.isRequired,defaultValue:o.default.string,className:o.default.string,accounts:o.default.array}),f(p,"contextTypes",{t:o.default.func})}}},{package:"$root$",file:"ui/components/ui/editable-label/editable-label.js"}],[3930,{"./editable-label":3929},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./editable-label"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/editable-label/index.js"}],[3931,{"../../../helpers/constants/design-system":4070,"../../component-library/icon/deprecated":3836,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=s(e("react")),o=s(e("prop-types")),a=e("../../component-library/icon/deprecated"),i=e("../../../helpers/constants/design-system");function s(e){return e&&e.__esModule?e:{default:e}}const l=(e,t)=>{const{errorMessage:n,errorKey:o}=e,s=o?t.t(o):n;return r.default.createElement("div",{className:"error-message"},r.default.createElement(a.Icon,{className:"error-message__icon",name:a.ICON_NAMES.WARNING,size:i.Size.SM,color:i.IconColor.errorDefault,marginRight:2}),r.default.createElement("div",{className:"error-message__text"},s))};l.propTypes={errorMessage:o.default.string,errorKey:o.default.string},l.contextTypes={t:o.default.func};var u=l;n.default=u}}},{package:"$root$",file:"ui/components/ui/error-message/error-message.component.js"}],[3932,{"./error-message.component":3931},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./error-message.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/error-message/index.js"}],[3933,{"../../../helpers/constants/design-system":4070,"../../../hooks/useCopyToClipboard":4123,"../../../hooks/useI18nContext":4129,"../../component-library":3840,"../box/box":3899,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=c(e("react")),o=c(e("prop-types")),a=e("../../../hooks/useI18nContext"),i=e("../../../hooks/useCopyToClipboard"),s=e("../../../helpers/constants/design-system"),l=c(e("../box/box")),u=e("../../component-library");function c(e){return e&&e.__esModule?e:{default:e}}function d({text:e="",onClickCopy:t=null}){const n=(0,a.useI18nContext)(),[o,c]=(0,i.useCopyToClipboard)(6e4);return r.default.createElement(l.default,{display:s.DISPLAY.FLEX,justifyContent:s.JustifyContent.center,flexDirection:s.FLEX_DIRECTION.COLUMN,alignItems:s.AlignItems.center,borderColor:s.BorderColor.borderDefault,borderRadius:s.BorderRadius.MD,padding:4,gap:4},r.default.createElement(u.Text,{display:s.DISPLAY.FLEX,justifyContent:s.JustifyContent.CENTER,className:"notranslate",variant:s.TextVariant.bodyLgMedium},e),r.default.createElement(u.ButtonSecondary,{className:"export-text-container__button",block:!0,onClick:()=>{t&&t(),c(e)}},n(o?"copiedExclamation":"copyToClipboard")))}d.propTypes={text:o.default.string,onClickCopy:o.default.func};var f=r.default.memo(d);n.default=f}}},{package:"$root$",file:"ui/components/ui/export-text-container/export-text-container.component.js"}],[3934,{"./export-text-container.component":3933},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./export-text-container.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/export-text-container/index.js"}],[3935,{"../../../helpers/constants/design-system":4070,"../box/box":3899,"../info-tooltip/info-tooltip":3965,"../numeric-input/numeric-input.component":3991,"../typography/typography":4040,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=p;var r=d(e("react")),o=d(e("prop-types")),a=d(e("classnames")),i=d(e("../typography/typography")),s=d(e("../box/box")),l=e("../../../helpers/constants/design-system"),u=d(e("../numeric-input/numeric-input.component")),c=d(e("../info-tooltip/info-tooltip"));function d(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p({dataTestId:e,titleText:t="",TitleTextCustomComponent:n,titleUnit:o="",TitleUnitCustomComponent:d,tooltipText:p="",TooltipCustomComponent:m,titleDetail:h="",titleDetailWrapperProps:g,titleHeadingWrapperProps:b,error:y,onChange:v=undefined,value:T=0,numeric:_,detailText:C="",autoFocus:E=!1,password:O=!1,allowDecimals:w=!1,disabled:k=!1,placeholder:N,warning:M,passwordStrength:x,passwordStrengthText:P,id:S,inputProps:j,wrappingLabelProps:I,inputRef:A}){return r.default.createElement("div",{className:(0,a.default)("form-field",{"form-field__row--error":y})},r.default.createElement(s.default,f({as:"label"},I),r.default.createElement("div",{className:"form-field__heading"},r.default.createElement(s.default,f({className:"form-field__heading-title",display:l.DISPLAY.FLEX,alignItems:l.AlignItems.baseline},b),n||t&&r.default.createElement(i.default,{tag:"label",htmlFor:S,html:!0,fontWeight:l.FONT_WEIGHT.BOLD,variant:l.TypographyVariant.H6,boxProps:{display:l.DISPLAY.INLINE_BLOCK}},t),d||o&&r.default.createElement(i.default,{tag:l.TypographyVariant.H6,variant:l.TypographyVariant.H6,color:l.TextColor.textAlternative,boxProps:{display:l.DISPLAY.INLINE_BLOCK}},o),m||p&&r.default.createElement(c.default,{position:"top",contentText:p})),h&&r.default.createElement(s.default,f({className:"form-field__heading-detail",textAlign:l.TEXT_ALIGN.END,marginRight:2},g),h)),_?r.default.createElement(u.default,{error:y,onChange:v,value:T,detailText:C,autoFocus:E,allowDecimals:w,disabled:k,dataTestId:e,placeholder:N,id:S,inputRef:A}):r.default.createElement("input",f({className:(0,a.default)("form-field__input",{"form-field__input--error":y,"form-field__input--warning":M}),onChange:e=>v(e.target.value),value:T,type:O?"password":"text",autoFocus:E,disabled:k,"data-testid":e,placeholder:N,id:S,ref:A},j)),y&&r.default.createElement(i.default,{color:l.TextColor.errorDefault,variant:l.TypographyVariant.H7,className:"form-field__error"},y),M&&r.default.createElement(i.default,{color:l.TextColor.textAlternative,variant:l.TypographyVariant.H7,className:"form-field__warning"},M),x&&r.default.createElement(i.default,{color:l.TextColor.textDefault,variant:l.TypographyVariant.H7,className:"form-field__password-strength"},x),P&&r.default.createElement(i.default,{color:l.TextColor.textAlternative,variant:l.TypographyVariant.H8,className:"form-field__password-strength-text"},P)))}p.propTypes={dataTestId:o.default.string,titleText:o.default.oneOfType([o.default.string,o.default.node]),TitleTextCustomComponent:o.default.node,titleUnit:o.default.string,TitleUnitCustomComponent:o.default.node,tooltipText:o.default.oneOfType([o.default.string,o.default.node]),TooltipCustomComponent:o.default.node,titleDetail:o.default.oneOfType([o.default.string,o.default.node]),titleDetailWrapperProps:o.default.shape({...s.default.propTypes}),titleHeadingWrapperProps:o.default.shape({...s.default.propTypes}),error:o.default.string,warning:o.default.string,onChange:o.default.func,value:o.default.oneOfType([o.default.number,o.default.string]),detailText:o.default.string,autoFocus:o.default.bool,numeric:o.default.bool,password:o.default.bool,allowDecimals:o.default.bool,disabled:o.default.bool,placeholder:o.default.string,passwordStrength:o.default.oneOfType([o.default.string,o.default.node]),passwordStrengthText:o.default.string,id:o.default.string,inputProps:o.default.object,wrappingLabelProps:o.default.object,inputRef:o.default.object}}}},{package:"$root$",file:"ui/components/ui/form-field/form-field.js"}],[3936,{"./form-field":3935},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./form-field"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/form-field/index.js"}],[3937,{"../../../../shared/modules/conversion.utils":3431,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r},i=e("../../../../shared/modules/conversion.utils");function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}class l extends o.PureComponent{render(){const{className:e,value:t}=this.props,n=(0,i.hexToDecimal)(t);return o.default.createElement("div",{className:e},n)}}n.default=l,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(l,"propTypes",{className:a.default.string,value:a.default.string})}}},{package:"$root$",file:"ui/components/ui/hex-to-decimal/hex-to-decimal.component.js"}],[3938,{"./hex-to-decimal.component":3937},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./hex-to-decimal.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/hex-to-decimal/index.js"}],[3939,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var r=i(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s({children:e,size:t,className:n}){const o={height:`${t}px`,width:`${t}px`};return r.default.createElement("div",{className:(0,a.default)("icon-border",n),style:o},e)}s.propTypes={className:o.default.string,children:o.default.node.isRequired,size:o.default.number.isRequired}}}},{package:"$root$",file:"ui/components/ui/icon-border/icon-border.js"}],[3940,{"./icon-border":3939},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./icon-border"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/icon-border/index.js"}],[3941,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r=i(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}const s=e=>e;function l({onClick:e,Icon:t,disabled:n,label:o,tooltipRender:i,className:l,...u}){const c=i??s;return r.default.createElement("button",{className:(0,a.default)("icon-button",l,{"icon-button--disabled":n}),"data-testid":u["data-testid"]??undefined,onClick:e,disabled:n},c(r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:"icon-button__circle"},t),r.default.createElement("span",null,o))))}l.propTypes={onClick:o.default.func.isRequired,Icon:o.default.object.isRequired,disabled:o.default.bool,label:o.default.string.isRequired,tooltipRender:o.default.func,className:o.default.string,"data-testid":o.default.string}}}},{package:"$root$",file:"ui/components/ui/icon-button/icon-button.js"}],[3942,{"./icon-button":3941},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./icon-button"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/icon-button/index.js"}],[3943,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const u=({name:e="",icon:t=null,size:n,className:o,fallbackClassName:i,wrapperClassName:s,...u})=>{const[c,d]=(0,r.useState)(!1),f=n?{height:`${n}px`,width:`${n}px`}:{};return r.default.createElement("div",{className:(0,a.default)(s)},!c&&t?r.default.createElement("img",l({onError:()=>{d(!0)},src:t,style:f,className:o,alt:e||"icon"},u)):r.default.createElement("span",{className:(0,a.default)("icon-with-fallback__fallback",i)},(null==e?void 0:e.charAt(0).toUpperCase())||""))};u.propTypes={icon:o.default.string,name:o.default.string,size:o.default.number,className:o.default.string,wrapperClassName:o.default.string,fallbackClassName:o.default.string};var c=u;n.default=c}}},{package:"$root$",file:"ui/components/ui/icon-with-fallback/icon-with-fallback.component.js"}],[3944,{"./icon-with-fallback.component":3943},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./icon-with-fallback.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/icon-with-fallback/index.js"}],[3945,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({className:e,size:t,color:n})=>r.default.createElement("svg",{className:e,width:t,height:t,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 29C22.732 29 29 22.732 29 15C29 7.26801 22.732 1 15 1C7.26801 1 1 7.26801 1 15C1 22.732 7.26801 29 15 29Z",stroke:n}),r.default.createElement("path",{d:"M5.34426 16.0923C5.15708 16.2694 5.15656 16.5672 5.34311 16.745L9.49708 20.7032C9.67134 20.8692 9.94541 20.8687 10.1191 20.7021L10.682 20.1619C10.867 19.9844 10.8665 19.6883 10.6808 19.5114L6.53084 15.557C6.35747 15.3918 6.08509 15.3914 5.91113 15.556L5.34426 16.0923ZM24.0891 10.2959C23.9152 10.1303 23.6419 10.1303 23.4681 10.2961L14.9882 18.3839C14.8143 18.5498 14.5407 18.5497 14.3668 18.3837L11.4072 15.5567C11.2343 15.3916 10.9625 15.3905 10.7882 15.5542L10.2154 16.0924C10.0272 16.2692 10.0261 16.5679 10.2131 16.7461L14.367 20.7042C14.5408 20.8698 14.814 20.8698 14.9878 20.7042L24.6581 11.4897C24.8442 11.3124 24.8442 11.0155 24.6581 10.8382L24.0891 10.2959ZM19.7905 11.4886C19.9761 11.3117 19.9767 11.0156 19.7916 10.8381L19.2288 10.2979C19.0551 10.1313 18.781 10.1308 18.6068 10.2968L13.799 14.878C13.6125 15.0557 13.613 15.3535 13.8002 15.5306L14.367 16.067C14.541 16.2316 14.8134 16.2311 14.9868 16.0659L19.7905 11.4886Z",fill:n}));i.defaultProps={className:undefined},i.propTypes={className:o.default.string,size:o.default.number.isRequired,color:o.default.string.isRequired};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/approve-icon.component.js"}],[3946,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({size:e=24,color:t="currentColor",ariaLabel:n,className:o})=>r.default.createElement("svg",{width:e,height:e,fill:t,className:o,"aria-label":n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"},r.default.createElement("path",{d:"M634 471L36 3.51A16 16 0 0 0 13.51 6l-10 12.49A16 16 0 0 0 6 41l598 467.49a16 16 0 0 0 22.49-2.49l10-12.49A16 16 0 0 0 634 471zM296.79 146.47l134.79 105.38C429.36 191.91 380.48 144 320 144a112.26 112.26 0 0 0-23.21 2.47zm46.42 219.07L208.42 260.16C210.65 320.09 259.53 368 320 368a113 113 0 0 0 23.21-2.46zM320 112c98.65 0 189.09 55 237.93 144a285.53 285.53 0 0 1-44 60.2l37.74 29.5a333.7 333.7 0 0 0 52.9-75.11 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64c-36.7 0-71.71 7-104.63 18.81l46.41 36.29c18.94-4.3 38.34-7.1 58.22-7.1zm0 288c-98.65 0-189.08-55-237.93-144a285.47 285.47 0 0 1 44.05-60.19l-37.74-29.5a333.6 333.6 0 0 0-52.89 75.1 32.35 32.35 0 0 0 0 29.19C89.72 376.41 197.08 448 320 448c36.7 0 71.71-7.05 104.63-18.81l-46.41-36.28C359.28 397.2 339.89 400 320 400z"}));i.propTypes={size:o.default.number,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/icon-eye-slash.js"}],[3947,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({size:e=24,color:t="currentColor",ariaLabel:n,className:o})=>r.default.createElement("svg",{width:e,height:e,fill:t,className:o,"aria-label":n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},r.default.createElement("path",{d:"M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z"}));i.propTypes={size:o.default.number,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/icon-eye.js"}],[3948,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({size:e=24,color:t="currentColor",ariaLabel:n,className:o})=>r.default.createElement("svg",{width:e,height:e,fill:t,className:o,"aria-label":n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.default.createElement("path",{d:"m233 103c82 0 151 40 152 88-1 47-70 87-152 87-83 0-152-40-152-87 0-48 69-88 152-88z m0 212c-76 0-141-34-151-76 28 34 84 57 151 57 66 0 123-23 150-57-10 42-75 76-150 76z m0 110c-76 0-141-34-151-77 28 35 84 58 151 58 27 0 53-4 76-12 4-1 6-5 6-9 0 0-1-1-1-1 0-5-5-8-10-7-21 7-46 11-71 11-76 0-141-34-151-76 28 34 84 57 151 57 28 0 55-4 78-12 3-1 5-3 6-6l0 0c1-7-4-13-11-11-22 7-47 12-73 12-76 0-141-34-151-77 28 34 84 58 151 58 66 0 123-24 150-58l0 20c0 5 4 10 9 10 5 0 9-5 9-10 0-44 0-104 0-104 0 0 0 0 0 0 0 0 0-1 0-1l0 0c-1-59-74-105-168-105-95 0-168 46-169 105l0 0c0 0 0 1 0 1 0 0 0 0 0 0l0 36 0 0c0 0 0 1 0 1 0 11 0 23 0 35l0 0c0 1 0 3 0 4 0 11 0 23 0 33l0 0c0 2 0 3 0 5l0 32 0 0c0 2 0 4 0 5l0 1c0 1 1 2 1 3 0 1 0 1 0 2 0 1 0 2 1 3 0 1 0 1 0 2 0 1 0 1 0 2 10 35 46 64 96 78l0 0c2 0 4 1 5 1 21 6 43 9 66 9 23 0 45-3 65-9 2 0 3-1 5-1 7-2 13-4 19-6 5-2 6-9 4-13l-1-1c-1-1-2-3-4-3-2-1-4-1-6 0-24 9-52 15-82 15m211 0l-23-24c6-8 9-18 9-29 1-33-30-59-62-48-17 6-29 22-32 41-1 7 0 15 1 22 2 7 6 13 10 19 5 5 10 10 17 13 6 3 13 4 20 4 8 0 17-3 24-8l23 25c1 0 2 1 3 2 1 0 2 0 3 0 2 0 3 0 4 0 1-1 2-2 3-2 1-1 2-2 2-4 1-1 1-2 1-3 0-2 0-3-1-4 0-1-1-3-2-4z m-94-53c0-19 15-35 34-35 18 0 33 15 33 35 0 5-1 10-3 14-1 4-4 8-7 11-3 4-7 6-11 8-4 2-8 3-12 3-20 0-34-16-34-36z"}));i.propTypes={size:o.default.number,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/icon-token-search.js"}],[3949,{"../../../helpers/constants/design-system":4070,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r=s(e("react")),o=s(e("classnames")),a=s(e("prop-types")),i=e("../../../helpers/constants/design-system");function s(e){return e&&e.__esModule?e:{default:e}}function l({severity:e}){const t=(0,o.default)("info-icon",{"info-icon--success":e===i.SEVERITIES.SUCCESS,"info-icon--warning":e===i.SEVERITIES.WARNING,"info-icon--danger":e===i.SEVERITIES.DANGER,"info-icon--info":e===i.SEVERITIES.INFO});return r.default.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M15.75 8C15.75 3.75 12.25 0.25 8 0.25C3.71875 0.25 0.25 3.75 0.25 8C0.25 12.2812 3.71875 15.75 8 15.75C12.25 15.75 15.75 12.2812 15.75 8ZM8 9.5625C8.78125 9.5625 9.4375 10.2188 9.4375 11C9.4375 11.8125 8.78125 12.4375 8 12.4375C7.1875 12.4375 6.5625 11.8125 6.5625 11C6.5625 10.2188 7.1875 9.5625 8 9.5625ZM6.625 4.40625C6.59375 4.1875 6.78125 4 7 4H8.96875C9.1875 4 9.375 4.1875 9.34375 4.40625L9.125 8.65625C9.09375 8.875 8.9375 9 8.75 9H7.21875C7.03125 9 6.875 8.875 6.84375 8.65625L6.625 4.40625Z"}))}l.propTypes={severity:a.default.oneOf(Object.values(i.SEVERITIES))}}}},{package:"$root$",file:"ui/components/ui/icon/info-icon-inverted.component.js"}],[3950,{"../../../helpers/constants/design-system":4070,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r=s(e("react")),o=s(e("classnames")),a=s(e("prop-types")),i=e("../../../helpers/constants/design-system");function s(e){return e&&e.__esModule?e:{default:e}}function l({severity:e}){const t=(0,o.default)("info-icon",{"info-icon--success":e===i.SEVERITIES.SUCCESS,"info-icon--warning":e===i.SEVERITIES.WARNING,"info-icon--danger":e===i.SEVERITIES.DANGER,"info-icon--info":e===i.SEVERITIES.INFO});return r.default.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M7.2 5.6H8.8V4H7.2V5.6ZM8 14.4C4.472 14.4 1.6 11.528 1.6 8C1.6 4.472 4.472 1.6 8 1.6C11.528 1.6 14.4 4.472 14.4 8C14.4 11.528 11.528 14.4 8 14.4ZM8 0C6.94943 0 5.90914 0.206926 4.93853 0.608964C3.96793 1.011 3.08601 1.60028 2.34315 2.34315C0.842855 3.84344 0 5.87827 0 8C0 10.1217 0.842855 12.1566 2.34315 13.6569C3.08601 14.3997 3.96793 14.989 4.93853 15.391C5.90914 15.7931 6.94943 16 8 16C10.1217 16 12.1566 15.1571 13.6569 13.6569C15.1571 12.1566 16 10.1217 16 8C16 6.94943 15.7931 5.90914 15.391 4.93853C14.989 3.96793 14.3997 3.08601 13.6569 2.34315C12.914 1.60028 12.0321 1.011 11.0615 0.608964C10.0909 0.206926 9.05058 0 8 0ZM7.2 12H8.8V7.2H7.2V12Z"}))}l.propTypes={severity:a.default.oneOf(Object.values(i.SEVERITIES))}}}},{package:"$root$",file:"ui/components/ui/icon/info-icon.component.js"}],[3951,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({className:e,size:t,color:n})=>r.default.createElement("svg",{className:e,width:t,height:t,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 29C22.732 29 29 22.732 29 15C29 7.26801 22.732 1 15 1C7.26801 1 1 7.26801 1 15C1 22.732 7.26801 29 15 29Z",stroke:n}),r.default.createElement("path",{d:"M18.8889 18.65C18.8889 18.8433 18.7322 19 18.5389 19H11.4611C11.2678 19 11.1111 18.8433 11.1111 18.65V17.4621C11.1111 17.1479 10.7292 16.9928 10.5102 17.2181L8.2372 19.556C8.10513 19.6919 8.10513 19.9081 8.2372 20.044L10.5102 22.3819C10.7292 22.6072 11.1111 22.4521 11.1111 22.1379V20.95C11.1111 20.7567 11.2678 20.6 11.4611 20.6H20.0944C20.2877 20.6 20.4444 20.4433 20.4444 20.25V16.15C20.4444 15.9567 20.2877 15.8 20.0944 15.8H19.2389C19.0456 15.8 18.8889 15.9567 18.8889 16.15V18.65ZM11.1111 12.35C11.1111 12.1567 11.2678 12 11.4611 12H18.5389C18.7322 12 18.8889 12.1567 18.8889 12.35V13.5379C18.8889 13.8521 19.2708 14.0072 19.4898 13.7819L21.7628 11.444C21.8949 11.3081 21.8949 11.0919 21.7628 10.956L19.4898 8.61812C19.2708 8.39284 18.8889 8.5479 18.8889 8.8621V10.05C18.8889 10.2433 18.7322 10.4 18.5389 10.4H9.90556C9.71226 10.4 9.55556 10.5567 9.55556 10.75V14.85C9.55556 15.0433 9.71226 15.2 9.90556 15.2H10.7611C10.9544 15.2 11.1111 15.0433 11.1111 14.85V12.35Z",fill:n}));i.defaultProps={className:undefined},i.propTypes={className:o.default.string,size:o.default.number.isRequired,color:o.default.string.isRequired};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/interaction-icon.component.js"}],[3952,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({className:e,size:t,color:n})=>r.default.createElement("svg",{className:e,width:t,height:t,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("rect",{x:"0.5",y:"0.5",width:"27",height:"27",rx:"13.5",stroke:n}),r.default.createElement("path",{d:"M14.3465 17.3611C14.3661 17.3402 14.3846 17.3181 14.4018 17.2952L17.597 14.0999C17.7961 13.9063 17.8756 13.6206 17.805 13.352C17.7344 13.0834 17.5246 12.8737 17.2561 12.8031C16.9875 12.7325 16.7017 12.812 16.5082 13.0111L14.5559 14.9633L14.5559 7.25598C14.5616 6.97721 14.4161 6.71715 14.1756 6.5761C13.9351 6.43505 13.6371 6.43505 13.3966 6.5761C13.1561 6.71715 13.0106 6.97721 13.0163 7.25598L13.0163 14.9633L11.064 13.0111C10.8705 12.812 10.5847 12.7325 10.3161 12.8031C10.0476 12.8737 9.83782 13.0834 9.76721 13.352C9.69661 13.6206 9.77608 13.9063 9.97519 14.0999L13.1726 17.2973C13.3093 17.4779 13.5186 17.5891 13.7447 17.6014C13.9709 17.6137 14.191 17.5258 14.3465 17.3611Z",fill:n}),r.default.createElement("rect",{x:"7.875",y:"19.25",width:"12.25",height:"1.75",rx:"0.875",fill:n}));i.defaultProps={className:undefined},i.propTypes={className:o.default.string,size:o.default.number.isRequired,color:o.default.string.isRequired};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/receive-icon.component.js"}],[3953,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({size:e=24,color:t="currentColor",ariaLabel:n,className:o})=>r.default.createElement("svg",{width:e,height:e,fill:t,className:o,"aria-label":n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r.default.createElement("path",{d:"m235 427c-51 0-100-21-136-57-36-36-56-84-56-135 0-26 5-51 14-74 10-23 24-44 42-62 18-18 39-32 62-42 23-9 48-14 74-14 25 0 50 5 73 14 23 10 45 24 62 42 18 18 32 39 42 62 10 23 15 48 15 74 0 43-15 86-42 119l78 79c2 2 4 4 5 7 1 2 1 5 1 8 0 3 0 6-1 8-1 3-3 5-5 7-2 2-4 4-7 5-2 1-5 1-8 1-3 0-6 0-8-1-3-1-5-3-7-5l-79-78c-33 27-76 42-119 42z m0-43c82 0 149-67 149-149 0-83-67-150-149-150-83 0-150 67-150 150 0 82 67 149 150 149z"}));i.propTypes={size:o.default.number,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/search-icon.js"}],[3954,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({className:e,size:t,color:n})=>r.default.createElement("svg",{className:e,width:t,height:t,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("rect",{x:"0.5",y:"0.5",width:"29",height:"29",rx:"14.5",stroke:n}),r.default.createElement("path",{d:"M18.5851 9.88921C18.5586 9.89005 18.5321 9.89238 18.5057 9.89618H14.3207C14.0635 9.89254 13.8243 10.0276 13.6947 10.2497C13.565 10.4719 13.565 10.7466 13.6947 10.9687C13.8243 11.1908 14.0635 11.3259 14.3207 11.3222H16.8777L9.53811 18.6614C9.35182 18.8402 9.27679 19.1058 9.34193 19.3557C9.40707 19.6056 9.60222 19.8007 9.85211 19.8658C10.102 19.931 10.3676 19.8559 10.5464 19.6697L17.886 12.3305V14.8874C17.8823 15.1445 18.0175 15.3837 18.2396 15.5133C18.4617 15.643 18.7364 15.643 18.9585 15.5133C19.1806 15.3837 19.3158 15.1445 19.3121 14.8874V10.6997C19.3409 10.4919 19.2767 10.282 19.1366 10.1259C18.9965 9.96973 18.7948 9.88316 18.5851 9.88921Z",fill:n}));i.defaultProps={className:undefined},i.propTypes={className:o.default.string,size:o.default.number.isRequired,color:o.default.string.isRequired};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/send-icon.component.js"}],[3955,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}function i({className:e,size:t,color:n}){return r.default.createElement("svg",{className:e,width:t,height:t,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 33C25.8366 33 33 25.8366 33 17C33 8.16344 25.8366 1 17 1C8.16344 1 1 8.16344 1 17C1 25.8366 8.16344 33 17 33Z",stroke:n}),r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2073 9.65858C21.2854 9.58047 21.4121 9.58047 21.4902 9.65858L23.8722 12.0406C23.9503 12.1187 23.9503 12.2453 23.8722 12.3234L22.3941 13.8015L19.7293 11.1367L21.2073 9.65858ZM18.5979 12.268L10.7361 20.1299C10.7086 20.1573 10.6898 20.1921 10.6818 20.2301L10.0466 23.2473C10.0168 23.3886 10.1421 23.5139 10.2835 23.4842L13.3007 22.849C13.3386 22.841 13.3734 22.8221 13.4009 22.7947L21.2627 14.9328L18.5979 12.268ZM22.6215 8.52721C21.9186 7.82426 20.7789 7.82427 20.076 8.52721L9.60469 18.9985C9.35778 19.2454 9.18802 19.5588 9.11609 19.9005L8.48089 22.9176C8.21306 24.1898 9.34091 25.3177 10.6131 25.0498L13.6303 24.4146C13.972 24.3427 14.2853 24.173 14.5323 23.9261L25.0035 13.4548C25.7065 12.7518 25.7065 11.6121 25.0035 10.9092L22.6215 8.52721Z",fill:n}))}i.propTypes={className:o.default.string,size:o.default.number.isRequired,color:o.default.string.isRequired}}}},{package:"$root$",file:"ui/components/ui/icon/sign-icon.component.js"}],[3956,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}function i({reverseColors:e}){const t=e?"var(--color-primary-default)":"var(--color-primary-inverse)",n=e?"var(--color-primary-inverse)":"var(--color-primary-default)";return r.default.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M13.2148 9.05384C13.432 8.40203 14.8878 7.92403 14.8878 7.20703C14.8878 6.49003 13.432 6.01204 13.2148 5.36022C12.9975 4.68668 13.8883 3.44823 13.4755 2.88332C13.0627 2.31842 11.607 2.77469 11.0421 2.3836C10.4771 1.97078 10.4771 0.449879 9.80361 0.232608C9.15179 0.0153358 8.26098 1.25378 7.54398 1.25378C6.82698 1.25378 5.91444 0.0153358 5.28435 0.232608C4.61081 0.449879 4.61081 1.99251 4.04591 2.3836C3.481 2.79641 2.02528 2.31842 1.61246 2.88332C1.19965 3.44823 2.09046 4.68668 1.87319 5.36022C1.65592 6.01204 0.200195 6.49003 0.200195 7.20703C0.200195 7.92403 1.65592 8.40203 1.87319 9.05384C2.09046 9.72738 1.19965 10.9658 1.61246 11.5307C2.02528 12.0956 3.481 11.6394 4.04591 12.0305C4.61081 12.4433 4.61081 13.9642 5.28435 14.1815C5.93617 14.3987 6.82698 13.1603 7.54398 13.1603C8.26098 13.1603 9.17352 14.3987 9.80361 14.1815C10.4771 13.9642 10.4771 12.4216 11.0421 12.0305C11.607 11.6176 13.0627 12.0956 13.4755 11.5307C13.8883 10.9658 12.9975 9.70566 13.2148 9.05384Z",fill:t}),r.default.createElement("path",{d:"M6.42285 10.084L4.13965 7.81445C4.07585 7.75065 4.04395 7.66862 4.04395 7.56836C4.04395 7.4681 4.07585 7.38607 4.13965 7.32227L4.64551 6.83008C4.70931 6.75716 4.78678 6.7207 4.87793 6.7207C4.97819 6.7207 5.06478 6.75716 5.1377 6.83008L6.66895 8.36133L9.9502 5.08008C10.0231 5.00716 10.1051 4.9707 10.1963 4.9707C10.2965 4.9707 10.3786 5.00716 10.4424 5.08008L10.9482 5.57227C11.012 5.63607 11.0439 5.7181 11.0439 5.81836C11.0439 5.91862 11.012 6.00065 10.9482 6.06445L6.91504 10.084C6.85124 10.1569 6.76921 10.1934 6.66895 10.1934C6.56868 10.1934 6.48665 10.1569 6.42285 10.084Z",fill:n}))}i.propTypes={reverseColors:o.default.bool}}}},{package:"$root$",file:"ui/components/ui/icon/sun-check-icon.component.js"}],[3957,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({className:e,size:t,color:n})=>r.default.createElement("svg",{width:t,height:t,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 33C25.8366 33 33 25.8366 33 17C33 8.16344 25.8366 1 17 1C8.16344 1 1 8.16344 1 17C1 25.8366 8.16344 33 17 33Z",stroke:n}),r.default.createElement("path",{d:"M21.4444 21.2214C21.4444 21.4147 21.2877 21.5714 21.0944 21.5714H12.9056C12.7123 21.5714 12.5556 21.4147 12.5556 21.2214V19.6907C12.5556 19.3765 12.1736 19.2214 11.9546 19.4467L9.2372 22.2417C9.10513 22.3776 9.10513 22.5938 9.2372 22.7297L11.9546 25.5247C12.1736 25.75 12.5556 25.595 12.5556 25.2808V23.75C12.5556 23.5567 12.7123 23.4 12.9056 23.4H22.8722C23.0655 23.4 23.2222 23.2433 23.2222 23.05V18.2643C23.2222 18.071 23.0655 17.9143 22.8722 17.9143H21.7944C21.6011 17.9143 21.4444 18.071 21.4444 18.2643V21.2214ZM12.5556 13.9214C12.5556 13.7281 12.7123 13.5714 12.9056 13.5714H21.0944C21.2877 13.5714 21.4444 13.7281 21.4444 13.9214V15.4522C21.4444 15.7664 21.8264 15.9214 22.0454 15.6962L24.7628 12.9011C24.8949 12.7653 24.8949 12.549 24.7628 12.4132L22.0454 9.61812C21.8264 9.39284 21.4444 9.5479 21.4444 9.8621V11.3929C21.4444 11.5862 21.2877 11.7429 21.0944 11.7429H11.1278C10.9345 11.7429 10.7778 11.8996 10.7778 12.0929V16.8786C10.7778 17.0719 10.9345 17.2286 11.1278 17.2286H12.2056C12.3989 17.2286 12.5556 17.0719 12.5556 16.8786V13.9214Z",fill:n}));i.defaultProps={className:undefined},i.propTypes={className:o.default.string,size:o.default.number.isRequired,color:o.default.string.isRequired};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/icon/swap-icon-for-list.component.js"}],[3958,{"@download/blockies":265,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r},i=e("@download/blockies");function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}const l=({address:e,diameter:t,alt:n="",borderRadius:r})=>{const[a,s]=(0,o.useState)(null),l=(0,o.useRef)(null);return(0,o.useEffect)((()=>{const t=l.current;(0,i.renderIcon)({seed:e.toLowerCase()},t);const n=t.toDataURL();n!==a&&s(n)}),[a,e]),o.default.createElement(o.default.Fragment,null,o.default.createElement("canvas",{ref:l,style:{display:"none"}}),o.default.createElement("img",{src:a,height:t,width:t,style:{borderRadius:r},alt:n}))};l.propTypes={address:a.default.string.isRequired,diameter:a.default.number.isRequired,alt:a.default.string,borderRadius:a.default.string};var u=l;n.default=u}}},{package:"$root$",file:"ui/components/ui/identicon/blockieIdenticon/blockieIdenticon.component.js"}],[3959,{"./blockieIdenticon.component":3958},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./blockieIdenticon.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/identicon/blockieIdenticon/index.js"}],[3960,{"../../../helpers/utils/util":4108,"../jazzicon":3966,"./blockieIdenticon":3959,classnames:1980,lodash:2932,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=c(e("prop-types")),a=c(e("classnames")),i=e("lodash"),s=c(e("../jazzicon")),l=e("../../../helpers/utils/util"),u=c(e("./blockieIdenticon"));function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=e=>({height:e,width:e,borderRadius:e/2});class m extends r.Component{constructor(...e){super(...e),f(this,"state",{imageLoadingError:!1})}renderImage(){const{className:e,diameter:t,alt:n,imageBorder:o,ipfsGateway:i}=this.props;let{image:s}=this.props;return Array.isArray(s)&&s.length&&(s=s[0]),"string"==typeof s&&s.toLowerCase().startsWith("ipfs://")&&(s=(0,l.getAssetImageURL)(s,i)),r.default.createElement("img",{className:(0,a.default)("identicon",e,{"identicon__image-border":o}),src:s,style:p(t),alt:n,onError:()=>{this.setState({imageLoadingError:!0})}})}renderJazzicon(){const{address:e,className:t,diameter:n,alt:o,tokenList:i}=this.props;return r.default.createElement(s.default,{address:e,diameter:n,className:(0,a.default)("identicon",t),style:p(n),alt:o,tokenList:i})}renderBlockie(){const{address:e,className:t,diameter:n,alt:o}=this.props;return r.default.createElement("div",{className:(0,a.default)("identicon",t),style:p(n)},r.default.createElement(u.default,{address:e,diameter:n,alt:o}))}renderBlockieOrJazzIcon(){const{useBlockie:e}=this.props;return e?this.renderBlockie():this.renderJazzicon()}shouldComponentUpdate(e,t){return!(0,i.isEqual)(e,this.props)||!(0,i.isEqual)(t,this.state)}render(){const{address:e,image:t,addBorder:n,diameter:o,tokenList:i}=this.props,{imageLoadingError:s}=this.state,l=o+8;return s?this.renderBlockieOrJazzIcon():t?this.renderImage():e?null!==(u=i[e.toLowerCase()])&&void 0!==u&&u.iconUrl?this.renderJazzicon():r.default.createElement("div",{className:(0,a.default)({"identicon__address-wrapper":n}),style:n?p(l):null},this.renderBlockieOrJazzIcon()):r.default.createElement("div",{style:p(o),className:"identicon__image-border"});var u}}n.default=m,f(m,"propTypes",{addBorder:o.default.bool,address:o.default.string,className:o.default.string,diameter:o.default.number,image:o.default.oneOfType([o.default.string,o.default.array]),useBlockie:o.default.bool,alt:o.default.string,imageBorder:o.default.bool,tokenList:o.default.object,ipfsGateway:o.default.string}),f(m,"defaultProps",{addBorder:!1,address:undefined,className:undefined,diameter:46,image:undefined,useBlockie:!1,alt:"",tokenList:{}})}}},{package:"$root$",file:"ui/components/ui/identicon/identicon.component.js"}],[3961,{"../../../selectors":4436,"./identicon.component":3960,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=e("react-redux"),a=e("../../../selectors"),i=(r=e("./identicon.component"))&&r.__esModule?r:{default:r};var s=(0,o.connect)((e=>{const{metamask:{useBlockie:t,ipfsGateway:n}}=e;return{useBlockie:t,tokenList:(0,a.getTokenList)(e),ipfsGateway:n}}))(i.default);n.default=s}}},{package:"$root$",file:"ui/components/ui/identicon/identicon.container.js"}],[3962,{"./identicon.container":3961},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./identicon.container"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/identicon/index.js"}],[3963,{"./info-tooltip":3965},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./info-tooltip"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/info-tooltip/index.js"}],[3964,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}function i({fillColor:e="var(--color-icon-default)"}){return r.default.createElement("svg",{viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M5 0C2.2 0 0 2.2 0 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 2c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.2-.7-.6.3-.8.7-.8zm.7 6H4.3V4.3h1.5V8z",fill:e}))}i.propTypes={fillColor:o.default.string}}}},{package:"$root$",file:"ui/components/ui/info-tooltip/info-tooltip-icon.js"}],[3965,{"../tooltip":4035,"./info-tooltip-icon":3964,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=l(e("../tooltip")),s=l(e("./info-tooltip-icon"));function l(e){return e&&e.__esModule?e:{default:e}}const u={top:"info-tooltip__top-tooltip-arrow",bottom:"info-tooltip__bottom-tooltip-arrow",left:"info-tooltip__left-tooltip-arrow",right:"info-tooltip__right-tooltip-arrow"};function c({contentText:e="",position:t="",containerClassName:n,wrapperClassName:o,iconFillColor:l="var(--color-icon-alternative)"}){return r.default.createElement("div",{className:"info-tooltip"},r.default.createElement(i.default,{interactive:!0,position:t,containerClassName:(0,a.default)("info-tooltip__tooltip-container",n),wrapperClassName:o,tooltipInnerClassName:"info-tooltip__tooltip-content",tooltipArrowClassName:u[t],html:e,theme:"tippy-tooltip-info"},r.default.createElement(s.default,{fillColor:l})))}c.propTypes={contentText:o.default.node,position:o.default.oneOf(["top","left","bottom","right"]),containerClassName:o.default.string,wrapperClassName:o.default.string,iconFillColor:o.default.string}}}},{package:"$root$",file:"ui/components/ui/info-tooltip/info-tooltip.js"}],[3966,{"./jazzicon.component":3967},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./jazzicon.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/jazzicon/index.js"}],[3967,{"../../../helpers/utils/icon-factory":4096,"@metamask/jazzicon":1243,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=i(e("prop-types")),a=i(e("@metamask/jazzicon"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}const l=(0,i(e("../../../helpers/utils/icon-factory")).default)(a.default);function u({address:e,className:t,diameter:n=46,style:o,tokenList:a={}}){const i=(0,r.useRef)();return(0,r.useEffect)((()=>{const t=i.current,r=l.iconForAddress(e,n,a[null==e?void 0:e.toLowerCase()]);return null==t||t.appendChild(r),()=>{for(;t.firstChild;)t.firstChild.remove()}}),[e,n,a]),r.default.createElement("div",{ref:i,className:t,style:o})}u.propTypes={address:o.default.string.isRequired,className:o.default.string,diameter:o.default.number,style:o.default.object,tokenList:o.default.object};var c=u;n.default=c}}},{package:"$root$",file:"ui/components/ui/jazzicon/jazzicon.component.js"}],[3968,{"./list-item.component":3969},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./list-item.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/list-item/index.js"}],[3969,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var r=i(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s({title:e,subtitle:t,onClick:n,children:o,titleIcon:i,icon:s,rightContent:l,midContent:u,className:c,"data-testid":d}){const f=(0,a.default)("list-item",c,t||o?"":"list-item--single-content-row");return r.default.createElement("div",{className:f,onClick:n,"data-testid":d,role:"button",tabIndex:0,onKeyPress:e=>{"Enter"===e.key&&n()}},s?r.default.createElement("div",{className:"list-item__icon"},s):null,r.default.createElement("div",{className:"list-item__heading"},r.default.isValidElement(e)?e:r.default.createElement("h2",{className:"list-item__title"},e),i&&r.default.createElement("div",{className:"list-item__heading-wrap"},i)),t?r.default.createElement("div",{className:"list-item__subheading"},t):null,o?r.default.createElement("div",{className:"list-item__actions"},o):null,u?r.default.createElement("div",{className:"list-item__mid-content"},u):null,l?r.default.createElement("div",{className:"list-item__right-content"},l):null)}s.propTypes={title:o.default.oneOfType([o.default.string,o.default.node]),titleIcon:o.default.node,subtitle:o.default.node,children:o.default.node,icon:o.default.node,rightContent:o.default.node,midContent:o.default.node,className:o.default.string,onClick:o.default.func,"data-testid":o.default.string}}}},{package:"$root$",file:"ui/components/ui/list-item/list-item.component.js"}],[3970,{"../../../ducks/app/app":4054,"../../../helpers/utils/gas":4093,"../../../hooks/useShouldAnimateGasEstimations":4137,classnames:1980,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=d;var r=e("react-redux"),o=c(e("classnames")),a=c(e("prop-types")),i=c(e("react")),s=e("../../../helpers/utils/gas"),l=e("../../../ducks/app/app"),u=e("../../../hooks/useShouldAnimateGasEstimations");function c(e){return e&&e.__esModule?e:{default:e}}function d({estimateUsed:e,backgroundColor:t="var(--color-background-default)"}){(0,u.useShouldAnimateGasEstimations)();const n=(0,r.useSelector)(l.getGasLoadingAnimationIsShowing);return e&&!(0,s.isMetamaskSuggestedGasEstimate)(e)?null:i.default.createElement("div",{className:(0,o.default)("loading-heartbeat",{"loading-heartbeat--active":n}),onClick:e=>{e.preventDefault(),e.stopPropagation()},style:{backgroundColor:t}})}d.propTypes={backgroundColor:a.default.string,estimateUsed:a.default.string}}}},{package:"$root$",file:"ui/components/ui/loading-heartbeat/index.js"}],[3971,{"./loading-indicator":3972},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./loading-indicator"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/loading-indicator/index.js"}],[3972,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}function i({alt:e,title:t,isLoading:n,children:o=null}){return n?r.default.createElement("span",{className:"loading-indicator"},r.default.createElement("img",{className:"loading-indicator__spinner",alt:e,title:t,src:"images/loading.svg"})):o}i.propTypes={isLoading:o.default.bool.isRequired,alt:o.default.string.isRequired,title:o.default.string.isRequired,children:o.default.node}}}},{package:"$root$",file:"ui/components/ui/loading-indicator/loading-indicator.js"}],[3973,{"./loading-screen.component":3974},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./loading-screen.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/loading-screen/index.js"}],[3974,{"../spinner":4017,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=i(e("prop-types")),a=i(e("../spinner"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}const l=({header:e,loadingMessage:t,showLoadingSpinner:n=!0})=>r.default.createElement("div",{className:"loading-overlay"},e,r.default.createElement("div",{className:"loading-overlay__container"},n&&r.default.createElement(a.default,{color:"var(--color-warning-default)",className:"loading-overlay__spinner"}),t?(0,r.isValidElement)(t)?t:r.default.createElement("span",null,t):null));l.propTypes={header:o.default.element,loadingMessage:o.default.oneOfType([o.default.string,o.default.element]),showLoadingSpinner:o.default.bool};var u=r.default.memo(l);n.default=u}}},{package:"$root$",file:"ui/components/ui/loading-screen/loading-screen.component.js"}],[3975,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({width:e="100%",color:t="var(--color-text-default)",className:n,ariaLabel:o})=>r.default.createElement("svg",{width:e,fill:t,className:n,"aria-label":o,viewBox:"0 0 2546 491",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2460 15V30H2488H2516V140V250H2531H2546V125V0H2503H2460V15ZM1861 116.038C1796.99 123.881 1741.39 163.865 1712.97 222.5C1680.8 288.855 1690.83 365.835 1739.17 423.5C1778.97 470.987 1839.99 496.383 1898.79 489.935C1937.49 485.692 1976.26 467.949 2005.03 441.315L2010.98 435.803L1997.36 421.444L1983.74 407.085L1974.62 415.109C1953.06 434.078 1931.7 444.965 1904.88 450.669C1893.48 453.093 1867.95 453.103 1855.82 450.689C1837.26 446.995 1819.5 439.522 1802.54 428.264C1790.63 420.354 1773.3 403.429 1764.69 391.295C1752.74 374.459 1743.39 352.909 1738.81 331.648C1735.63 316.902 1735.66 289.005 1738.87 274C1751.85 213.28 1797.55 166.907 1855.82 155.311C1867.95 152.897 1893.48 152.907 1904.88 155.331C1931.7 161.035 1953.06 171.922 1974.62 190.891L1983.74 198.915L1997.38 184.534L2011.02 170.153L2003.26 163.053C1977.39 139.393 1945.42 123.844 1909.5 117.465C1898.75 115.555 1871.49 114.753 1861 116.038ZM0 303V485H120H240V465.5V446H140.5H41V283.5V121H20.5H0V303ZM407.496 297.75C364.676 394.963 328.599 476.871 327.325 479.769L325.009 485.038L347.632 484.769L370.256 484.5L386.106 448.5C394.823 428.7 403.087 410.135 404.469 407.245L406.983 401.99L508.152 402.245L609.321 402.5L627.41 443.719L645.5 484.938L668.135 484.969L690.769 485L655.85 405.75C636.645 362.163 600.584 280.269 575.716 223.763L530.5 121.027L507.925 121.013L485.35 121L407.496 297.75ZM749 140.5V160H810H871V322.5V485H891.5H912V322.5V160H973H1034V140.5V121H891.5H749V140.5ZM1133 140.5V160H1194H1255V322.5V485H1275.5H1296V322.5V160H1357H1418V140.5V121H1275.5H1133V140.5ZM1534 303V485H1554.5H1575V303V121H1554.5H1534V303ZM2120 303V485H2250.5H2381V465.5V446H2271.5H2162V382.5V319H2260.5H2359V299.5V280H2260.5H2162V220V160H2271.5H2381V140.5V121H2250.5H2120V303ZM550.073 267.125C572.858 318.894 591.65 361.644 591.833 362.125C592.022 362.621 555.677 363 507.976 363C428.21 363 423.821 362.908 424.447 361.25C426.983 354.537 507.62 173.036 508.073 173.02C508.388 173.009 527.288 215.356 550.073 267.125Z"}));i.propTypes={width:o.default.string,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/logo/logo-lattice.js"}],[3976,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({width:e="100%",color:t="var(--color-text-default)",className:n,ariaLabel:o})=>r.default.createElement("svg",{width:e,fill:t,className:n,"aria-label":o,viewBox:"0 0 2000.58 669.35",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"m1711.35 627.2v42.14h289.22v-190.05h-42.14v147.91zm0-627.2v42.14h247.08v147.92h42.14v-190.06zm-149.15 326v-97.92h66.11c32.23 0 43.8 10.74 43.8 40.08v17.35c0 30.16-11.16 40.49-43.8 40.49zm104.94 17.35c30.16-7.85 51.23-35.95 51.23-69.41 0-21.07-8.26-40.08-23.96-55.37-19.83-19.01-46.28-28.51-80.57-28.51h-92.96v289.22h41.32v-115.27h61.98c31.81 0 44.62 13.22 44.62 46.28v69h42.14v-62.39c0-45.45-10.74-62.8-43.8-67.76zm-347.88 9.5h127.26v-38.01h-127.26v-86.77h139.65v-38.01h-181.8v289.22h188v-38.01h-145.85zm-138.42 15.29v19.83c0 41.73-15.29 55.37-53.71 55.37h-9.09c-38.43 0-57.02-12.4-57.02-69.83v-77.68c0-57.84 19.42-69.83 57.84-69.83h8.26c37.6 0 49.58 14.05 49.99 52.89h45.45c-4.13-57.02-42.14-92.96-99.16-92.96-27.68 0-50.82 8.68-68.17 25.2-26.03 24.38-40.49 65.7-40.49 123.54 0 55.78 12.4 97.1 38.01 122.71 17.35 16.94 41.32 26.03 64.87 26.03 24.79 0 47.52-9.92 59.08-31.4h5.78v27.27h38.01v-149.15h-111.97v38.01zm-364.41-140.07h45.04c42.56 0 65.7 10.74 65.7 68.59v76.02c0 57.84-23.14 68.59-65.7 68.59h-45.04zm48.75 251.22c78.92 0 108.25-59.91 108.25-144.61 0-85.94-31.4-144.61-109.08-144.61h-89.25v289.22zm-289.63-126.44h127.26v-38.01h-127.26v-86.77h139.65v-38.01h-181.8v289.22h188v-38.01h-145.85zm-243.77-162.79h-42.14v289.22h190.06v-38.01h-147.92zm-331.78 289.23v190.06h289.22v-42.15h-247.08v-147.91zm0-479.29v190.06h42.14v-147.92h247.08v-42.14z"}));i.propTypes={width:o.default.string,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/logo/logo-ledger.js"}],[3977,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({width:e="100%",color:t="var(--color-text-default)",className:n,ariaLabel:o})=>r.default.createElement("svg",{width:e,fill:t,className:n,"aria-label":o,viewBox:"0 0 107 24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M1.3333 8H6.6667C7.403 8 8 7.403 8 6.6667V1.3333C8 0.597002 7.403 0 6.6667 0H1.3333C0.597 0 0 0.597002 0 1.3333V6.6667C0 7.403 0.597 8 1.3333 8ZM2.6667 2.6667H5.3333V5.3333H2.6667V2.6667ZM0.6667 13.3333H2C2.3682 13.3333 2.6667 13.0349 2.6667 12.6667V11.3333C2.6667 10.9651 2.3682 10.6667 2 10.6667H0.6667C0.2985 10.6667 0 10.9651 0 11.3333V12.6667C0 13.0349 0.2985 13.3333 0.6667 13.3333ZM6.6667 16H1.3333C0.597 16 0 16.597 0 17.3333V22.6667C0 23.403 0.597 24 1.3333 24H6.6667C7.403 24 8 23.403 8 22.6667V17.3333C8 16.597 7.403 16 6.6667 16ZM5.3333 21.3333H2.6667V18.6667H5.3333V21.3333ZM19.3333 24H23.3333C23.7015 24 24 23.7015 24 23.3333V19.3333C24 18.9651 23.7015 18.6667 23.3333 18.6667H22C21.6318 18.6667 21.3333 18.9651 21.3333 19.3333V21.3333H18.6667V23.3333C18.6667 23.7015 18.9651 24 19.3333 24ZM22.6667 0H17.3333C16.597 0 16 0.597002 16 1.3333V6.6667C16 7.403 16.597 8 17.3333 8H22.6667C23.403 8 24 7.403 24 6.6667V1.3333C24 0.597002 23.403 0 22.6667 0ZM21.3333 5.3333H18.6667V2.6667H21.3333V5.3333ZM6 10.6667C5.6318 10.6667 5.3333 10.9651 5.3333 11.3333V12.6667C5.3333 13.0349 5.6318 13.3333 6 13.3333H10.6667V10.6667H6ZM10.6667 15.3333C10.6667 15.7015 10.9651 16 11.3333 16H13.3333V18C13.3333 18.3682 13.6318 18.6667 14 18.6667H16V13.3333H10.6667V15.3333ZM10.6667 22V23.3333C10.6667 23.7015 10.9651 24 11.3333 24H15.3333C15.7015 24 16 23.7015 16 23.3333V21.3333H11.3333C10.9651 21.3333 10.6667 21.6318 10.6667 22ZM23.3333 10.6667H16.6667C16.2985 10.6667 16 10.9651 16 11.3333V13.3333H18.6667V15.3333C18.6667 15.7015 18.9651 16 19.3333 16H20.6667C21.0349 16 21.3333 15.7015 21.3333 15.3333V13.3333H23.3333C23.7015 13.3333 24 13.0349 24 12.6667V11.3333C24 10.9651 23.7015 10.6667 23.3333 10.6667ZM18.6667 21.3333V18.6667H16V21.3333H18.6667ZM11.3333 5.3333H12.6667C13.0349 5.3333 13.3333 5.0349 13.3333 4.6667V0.666698C13.3333 0.298498 13.0349 0 12.6667 0H11.3333C10.9651 0 10.6667 0.298498 10.6667 0.666698V4.6667C10.6667 5.0349 10.9651 5.3333 11.3333 5.3333ZM13.3333 10V8.6667C13.3333 8.2985 13.0349 8 12.6667 8H11.3333C10.9651 8 10.6667 8.2985 10.6667 8.6667V10.6667H12.6667C13.0349 10.6667 13.3333 10.3682 13.3333 10Z"}),r.default.createElement("path",{d:"M38.592 18.192C37.7707 18.192 37.0027 18.0427 36.288 17.744C35.584 17.4347 34.9653 17.0187 34.432 16.496C33.8987 15.9627 33.4773 15.3387 33.168 14.624C32.8693 13.9093 32.72 13.1413 32.72 12.32C32.72 11.4987 32.8693 10.7307 33.168 10.016C33.4773 9.3013 33.8987 8.6827 34.432 8.16C34.9653 7.6267 35.584 7.2107 36.288 6.912C37.0027 6.6027 37.7707 6.448 38.592 6.448C39.4133 6.448 40.1813 6.6027 40.896 6.912C41.6107 7.2107 42.2293 7.6267 42.752 8.16C43.2853 8.6827 43.7013 9.3013 44 10.016C44.3093 10.7307 44.464 11.4987 44.464 12.32C44.464 13.0347 44.3467 13.7067 44.112 14.336C43.888 14.9653 43.5733 15.536 43.168 16.048L45.28 18H43.248L42.16 17.008C41.6693 17.3813 41.12 17.6747 40.512 17.888C39.904 18.0907 39.264 18.192 38.592 18.192ZM38.592 16.784C39.5413 16.784 40.3787 16.528 41.104 16.016L39.296 14.336L40.208 13.312L42.08 15.056C42.3573 14.6827 42.576 14.2667 42.736 13.808C42.896 13.3387 42.976 12.8427 42.976 12.32C42.976 11.7013 42.864 11.12 42.64 10.576C42.416 10.032 42.1067 9.5573 41.712 9.152C41.328 8.7467 40.864 8.432 40.32 8.208C39.7867 7.9733 39.2107 7.856 38.592 7.856C37.9733 7.856 37.3973 7.9733 36.864 8.208C36.3307 8.432 35.8667 8.7467 35.472 9.152C35.088 9.5573 34.784 10.032 34.56 10.576C34.336 11.12 34.224 11.7013 34.224 12.32C34.224 12.9493 34.336 13.536 34.56 14.08C34.784 14.6133 35.088 15.0827 35.472 15.488C35.8667 15.8933 36.3307 16.2133 36.864 16.448C37.3973 16.672 37.9733 16.784 38.592 16.784ZM46.9259 6.64H50.7979C51.3205 6.64 51.7899 6.7147 52.2059 6.864C52.6325 7.0133 52.9899 7.2267 53.2779 7.504C53.5765 7.7813 53.8005 8.112 53.9499 8.496C54.1099 8.88 54.1899 9.3067 54.1899 9.776C54.1899 10.608 53.9392 11.2907 53.4379 11.824C52.9472 12.3573 52.2592 12.688 51.3739 12.816L55.7579 18H53.8859L49.5179 12.832H48.4139V18H46.9259V6.64ZM50.6219 11.504C51.2725 11.504 51.7792 11.36 52.1419 11.072C52.5152 10.784 52.7019 10.352 52.7019 9.776C52.7019 9.2 52.5152 8.7627 52.1419 8.464C51.7792 8.1653 51.2725 8.016 50.6219 8.016H48.4139V11.504H50.6219ZM55.8681 12.832H59.948V14.208H55.8681V12.832ZM66.488 18.16C65.88 18.16 65.325 18.0267 64.824 17.76C64.323 17.4827 63.939 17.152 63.672 16.768V18H62.296V6H63.672V11.232C63.939 10.848 64.323 10.5227 64.824 10.256C65.325 9.9787 65.88 9.84 66.488 9.84C67.043 9.84 67.56 9.952 68.04 10.176C68.52 10.3893 68.936 10.688 69.288 11.072C69.64 11.4453 69.912 11.8827 70.104 12.384C70.307 12.8853 70.408 13.424 70.408 14C70.408 14.576 70.307 15.1147 70.104 15.616C69.912 16.1173 69.64 16.56 69.288 16.944C68.936 17.3173 68.52 17.616 68.04 17.84C67.56 18.0533 67.043 18.16 66.488 18.16ZM66.28 16.896C66.685 16.896 67.053 16.8213 67.384 16.672C67.715 16.5227 67.997 16.32 68.232 16.064C68.477 15.7973 68.664 15.488 68.792 15.136C68.931 14.784 69 14.4053 69 14C69 13.5947 68.931 13.216 68.792 12.864C68.664 12.512 68.477 12.208 68.232 11.952C67.997 11.6853 67.715 11.4773 67.384 11.328C67.053 11.1787 66.685 11.104 66.28 11.104C65.875 11.104 65.507 11.1787 65.176 11.328C64.845 11.4773 64.557 11.6853 64.312 11.952C64.077 12.208 63.891 12.512 63.752 12.864C63.624 13.216 63.56 13.5947 63.56 14C63.56 14.4053 63.624 14.784 63.752 15.136C63.891 15.488 64.077 15.7973 64.312 16.064C64.557 16.32 64.845 16.5227 65.176 16.672C65.507 16.8213 65.875 16.896 66.28 16.896ZM75.67 18.16C75.105 18.16 74.582 18.0533 74.102 17.84C73.633 17.616 73.222 17.3173 72.87 16.944C72.518 16.56 72.241 16.1173 72.038 15.616C71.846 15.1147 71.75 14.576 71.75 14C71.75 13.424 71.846 12.8853 72.038 12.384C72.241 11.8827 72.518 11.4453 72.87 11.072C73.222 10.688 73.633 10.3893 74.102 10.176C74.582 9.952 75.105 9.84 75.67 9.84C76.278 9.84 76.833 9.9787 77.334 10.256C77.835 10.5227 78.219 10.848 78.486 11.232V10H79.862V18H78.486V16.768C78.219 17.152 77.835 17.4827 77.334 17.76C76.833 18.0267 76.278 18.16 75.67 18.16ZM75.878 16.896C76.283 16.896 76.651 16.8213 76.982 16.672C77.313 16.5227 77.595 16.32 77.83 16.064C78.075 15.7973 78.262 15.488 78.39 15.136C78.529 14.784 78.598 14.4053 78.598 14C78.598 13.5947 78.529 13.216 78.39 12.864C78.262 12.512 78.075 12.208 77.83 11.952C77.595 11.6853 77.313 11.4773 76.982 11.328C76.651 11.1787 76.283 11.104 75.878 11.104C75.473 11.104 75.099 11.1787 74.758 11.328C74.427 11.4773 74.139 11.6853 73.894 11.952C73.659 12.208 73.473 12.512 73.334 12.864C73.206 13.216 73.142 13.5947 73.142 14C73.142 14.4053 73.206 14.784 73.334 15.136C73.473 15.488 73.659 15.7973 73.894 16.064C74.139 16.32 74.427 16.5227 74.758 16.672C75.099 16.8213 75.473 16.896 75.878 16.896ZM85.028 18.16C84.602 18.16 84.196 18.1067 83.812 18C83.428 17.8933 83.092 17.7387 82.804 17.536C82.516 17.3227 82.282 17.0613 82.1 16.752C81.919 16.4427 81.812 16.0853 81.78 15.68H83.188C83.231 15.9253 83.311 16.1333 83.428 16.304C83.556 16.464 83.706 16.5973 83.876 16.704C84.047 16.8107 84.228 16.8853 84.42 16.928C84.623 16.9707 84.831 16.992 85.044 16.992C85.482 16.992 85.844 16.9067 86.132 16.736C86.431 16.5547 86.58 16.288 86.58 15.936C86.58 15.616 86.479 15.3547 86.276 15.152C86.074 14.9493 85.732 14.784 85.252 14.656L84.1 14.352C83.407 14.1707 82.89 13.8773 82.548 13.472C82.207 13.0667 82.036 12.576 82.036 12C82.036 11.6693 82.106 11.3707 82.244 11.104C82.383 10.8373 82.575 10.6133 82.82 10.432C83.066 10.24 83.354 10.096 83.684 10C84.026 9.8933 84.399 9.84 84.804 9.84C85.231 9.84 85.615 9.8987 85.956 10.016C86.298 10.1333 86.591 10.2987 86.836 10.512C87.092 10.7147 87.295 10.9547 87.444 11.232C87.594 11.5093 87.684 11.808 87.716 12.128H86.34C86.234 11.776 86.042 11.4987 85.764 11.296C85.498 11.0933 85.178 10.992 84.804 10.992C84.42 10.992 84.095 11.0827 83.828 11.264C83.562 11.4347 83.428 11.6747 83.428 11.984C83.428 12.2827 83.524 12.5227 83.716 12.704C83.908 12.8747 84.218 13.0187 84.644 13.136L85.924 13.472C86.596 13.6427 87.103 13.9307 87.444 14.336C87.796 14.7307 87.972 15.232 87.972 15.84C87.972 16.2347 87.898 16.5813 87.748 16.88C87.599 17.168 87.391 17.408 87.124 17.6C86.858 17.792 86.543 17.9307 86.18 18.016C85.828 18.112 85.444 18.16 85.028 18.16ZM93.329 18.16C92.742 18.16 92.204 18.0587 91.713 17.856C91.222 17.6427 90.796 17.3493 90.433 16.976C90.081 16.6027 89.804 16.1653 89.601 15.664C89.398 15.152 89.297 14.5973 89.297 14C89.297 13.4133 89.388 12.8693 89.569 12.368C89.761 11.856 90.033 11.4133 90.385 11.04C90.737 10.6667 91.164 10.3733 91.665 10.16C92.166 9.9467 92.732 9.84 93.361 9.84C93.99 9.84 94.55 9.9627 95.041 10.208C95.542 10.4427 95.958 10.768 96.289 11.184C96.63 11.5893 96.876 12.0693 97.025 12.624C97.185 13.168 97.244 13.7493 97.201 14.368H90.689C90.7 14.7307 90.774 15.0667 90.913 15.376C91.062 15.6853 91.254 15.9573 91.489 16.192C91.724 16.416 92.001 16.592 92.321 16.72C92.641 16.848 92.982 16.912 93.345 16.912C93.846 16.912 94.294 16.8107 94.689 16.608C95.094 16.3947 95.42 16.048 95.665 15.568H97.073C96.977 15.92 96.822 16.256 96.609 16.576C96.396 16.8853 96.129 17.1573 95.809 17.392C95.5 17.6267 95.137 17.8133 94.721 17.952C94.305 18.0907 93.841 18.16 93.329 18.16ZM93.313 11.056C93.025 11.056 92.742 11.0987 92.465 11.184C92.188 11.2693 91.932 11.4027 91.697 11.584C91.473 11.7653 91.276 11.9947 91.105 12.272C90.934 12.5493 90.817 12.8853 90.753 13.28H95.745C95.617 12.5333 95.329 11.9787 94.881 11.616C94.433 11.2427 93.91 11.056 93.313 11.056ZM102.483 18.16C101.917 18.16 101.395 18.0533 100.915 17.84C100.445 17.616 100.035 17.3173 99.683 16.944C99.331 16.56 99.053 16.1173 98.851 15.616C98.659 15.1147 98.563 14.576 98.563 14C98.563 13.424 98.659 12.8853 98.851 12.384C99.053 11.8827 99.331 11.4453 99.683 11.072C100.035 10.688 100.445 10.3893 100.915 10.176C101.395 9.952 101.917 9.84 102.483 9.84C103.091 9.84 103.645 9.9787 104.147 10.256C104.648 10.5227 105.032 10.848 105.299 11.232V6H106.675V18H105.299V16.768C105.032 17.152 104.648 17.4827 104.147 17.76C103.645 18.0267 103.091 18.16 102.483 18.16ZM102.691 16.896C103.096 16.896 103.464 16.8213 103.795 16.672C104.125 16.5227 104.408 16.32 104.643 16.064C104.888 15.7973 105.075 15.488 105.203 15.136C105.341 14.784 105.411 14.4053 105.411 14C105.411 13.5947 105.341 13.216 105.203 12.864C105.075 12.512 104.888 12.208 104.643 11.952C104.408 11.6853 104.125 11.4773 103.795 11.328C103.464 11.1787 103.096 11.104 102.691 11.104C102.285 11.104 101.912 11.1787 101.571 11.328C101.24 11.4773 100.952 11.6853 100.707 11.952C100.472 12.208 100.285 12.512 100.147 12.864C100.019 13.216 99.955 13.5947 99.955 14C99.955 14.4053 100.019 14.784 100.147 15.136C100.285 15.488 100.472 15.7973 100.707 16.064C100.952 16.32 101.24 16.5227 101.571 16.672C101.912 16.8213 102.285 16.896 102.691 16.896Z"}));i.propTypes={width:o.default.string,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/logo/logo-qr-based.js"}],[3978,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({width:e="100%",color:t="var(--color-text-default)",className:n,ariaLabel:o})=>r.default.createElement("svg",{width:e,fill:t,className:n,"aria-label":o,viewBox:"0 0 2568 723",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M249 0C149.9 0 69.7 80.2 69.7 179.3V246.5C34.9 252.8 0 261.2 0 272.1V622.8C0 622.8 0 632.5 10.9 637.1C50.4 653.1 205.8 708.1 241.5 720.7C246.1 722.4 247.4 722.4 248.6 722.4C250.3 722.4 251.1 722.4 255.7 720.7C291.4 708.1 447.2 653.1 486.7 637.1C496.8 632.9 497.2 623.2 497.2 623.2V272.1C497.2 261.2 462.8 252.4 427.9 246.5V179.3C428.4 80.2 347.7 0 249 0ZM249 85.7C307.4 85.7 342.7 121 342.7 179.4V237.8C277.2 233.2 221.3 233.2 155.4 237.8V179.4C155.4 120.9 190.7 85.7 249 85.7V85.7ZM248.6 323.8C330.1 323.8 398.5 330.1 398.5 341.4V560.2C398.5 563.6 398.1 564 395.1 565.2C392.2 566.5 256.1 615.6 256.1 615.6C256.1 615.6 250.6 617.3 249 617.3C247.3 617.3 241.9 615.2 241.9 615.2C241.9 615.2 105.8 566.1 102.9 564.8C100 563.5 99.5 563.1 99.5 559.8V341C98.7 329.7 167.1 323.8 248.6 323.8V323.8ZM728.466 563.183V323.577H640.919V237.655H913.881V323.577H827.195V563.183H728.466ZM1135.04 563.183L1090.12 460.823H1054.38V563.183H955.647V237.655H1129.4C1205.67 237.655 1246.58 288.215 1246.58 349.191C1246.58 405.389 1214.08 435.113 1187.99 447.92L1246.96 563.088H1135.04V563.183ZM1146.7 349.191C1146.7 331.51 1131.03 323.864 1114.59 323.864H1054.38V375.283H1114.59C1131.03 374.901 1146.7 367.255 1146.7 349.191ZM1298.38 563.183V237.655H1545.25V323.577H1396.73V355.69H1541.62V441.612H1396.73V477.357H1545.25V563.183H1298.38ZM1596.57 563.566V485.29L1720.63 323.96H1596.57V238.037H1850.61V315.549L1726.17 477.739H1854.24V563.661L1596.57 563.566ZM1878.33 400.993C1878.33 301.021 1955.84 232.398 2056.58 232.398C2156.93 232.398 2234.82 300.639 2234.82 400.993C2234.82 500.964 2157.31 569.205 2056.58 569.205C1955.84 569.205 1878.33 500.965 1878.33 400.993V400.993ZM2134.47 400.993C2134.47 355.595 2103.6 319.467 2056.19 319.467C2008.79 319.467 1977.92 355.595 1977.92 400.993C1977.92 446.391 2008.79 482.518 2056.19 482.518C2103.98 482.518 2134.47 446.391 2134.47 400.993H2134.47ZM2455.51 563.566L2410.59 461.205H2374.84V563.565H2276.11V238.038H2449.87C2526.14 238.038 2567.04 288.598 2567.04 349.574C2567.04 405.772 2534.55 435.496 2508.46 448.304L2567.43 563.471H2455.51V563.566ZM2467.55 349.191C2467.55 331.51 2451.87 323.864 2435.44 323.864H2375.22V375.283H2435.44C2451.97 374.901 2467.55 367.255 2467.55 349.191Z"}));i.propTypes={width:o.default.string,color:o.default.string,className:o.default.string,ariaLabel:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/logo/logo-trezor.js"}],[3979,{"./mascot.component":3980},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./mascot.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/mascot/index.js"}],[3980,{"../../../helpers/utils/build-types":4088,"@metamask/logo":1278,lodash:2932,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e("prop-types")),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=u(e("@metamask/logo")),i=e("lodash"),s=e("../../../helpers/utils/build-types");function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends o.Component{constructor(e){super(e);const{width:t,height:n,followMouse:r}=e;this.logo=(0,a.default)({followMouse:r,pxNotRatio:!0,width:t,height:n,meshJson:(0,s.getBuildSpecificAsset)("foxMeshJson")}),this.mascotContainer=(0,o.createRef)(),this.refollowMouse=(0,i.debounce)(this.logo.setFollowMouse.bind(this.logo,!0),1e3),this.unfollowMouse=this.logo.setFollowMouse.bind(this.logo,!1)}handleAnimationEvents(){this.animations||(this.animations=this.props.animationEventEmitter,this.animations.on("point",this.lookAt.bind(this)),this.animations.on("setFollowMouse",this.logo.setFollowMouse.bind(this.logo)))}lookAt(e){this.unfollowMouse(),this.logo.lookAtAndRender(e),this.refollowMouse()}componentDidMount(){this.mascotContainer.current.appendChild(this.logo.container),this.directionTargetMap=(({top:e,left:t,height:n,width:r})=>{const o=t+r/2,a=e+n/2;return{up:{x:o,y:e-n},down:{x:o,y:e+2*n},left:{x:t-r,y:a},right:{x:t+2*r,y:a},middle:{x:o,y:a}}})(this.mascotContainer.current.getBoundingClientRect());const{lookAtTarget:e,lookAtDirection:t}=this.props;null!=e&&e.x&&null!=e&&e.y?this.logo.lookAtAndRender(e):t&&this.logo.lookAtAndRender(this.directionTargetMap[t])}componentDidUpdate(e){const{lookAtTarget:t={},lookAtDirection:n=null,followMouse:r}=e,{lookAtTarget:o={},followMouse:a,lookAtDirection:i}=this.props;i&&n!==i?this.logo.lookAtAndRender(this.directionTargetMap[i]):(null==o?void 0:o.x)===(null==t?void 0:t.x)&&(null==o?void 0:o.y)===(null==t?void 0:t.y)||this.logo.lookAtAndRender(o),r!==a&&(this.unfollowMouse(),a&&this.refollowMouse())}componentWillUnmount(){this.animations=this.props.animationEventEmitter,this.animations.removeAllListeners(),this.logo.container.remove(),this.logo.stopAnimation()}render(){return this.handleAnimationEvents(),o.default.createElement("div",{ref:this.mascotContainer,style:{zIndex:0}})}}n.default=d,c(d,"propTypes",{animationEventEmitter:r.default.object.isRequired,width:r.default.string,height:r.default.string,followMouse:r.default.bool,lookAtTarget:r.default.object,lookAtDirection:r.default.oneOf(["up","down","left","right","middle"])}),c(d,"defaultProps",{width:"200",height:"200",followMouse:!0,lookAtTarget:{},lookAtDirection:null})}}},{package:"$root$",file:"ui/components/ui/mascot/mascot.component.js"}],[3981,{"./menu":3983,"./menu-item":3982},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Menu",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"MenuItem",{enumerable:!0,get:function(){return o.default}});var r=a(e("./menu")),o=a(e("./menu-item"));function a(e){return e&&e.__esModule?e:{default:e}}}}},{package:"$root$",file:"ui/components/ui/menu/index.js"}],[3982,{"../../../helpers/constants/design-system":4070,"../../component-library":3840,"../../component-library/icon/deprecated":3836,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=e("../../component-library"),s=e("../../component-library/icon/deprecated"),l=e("../../../helpers/constants/design-system");function u(e){return e&&e.__esModule?e:{default:e}}const c=({children:e,className:t,"data-testid":n,iconName:o,onClick:u,subtitle:c})=>r.default.createElement("button",{className:(0,a.default)("menu-item",t),"data-testid":n,onClick:u},o?r.default.createElement(s.Icon,{name:o,size:s.ICON_SIZES.SM,marginRight:2}):null,r.default.createElement("div",null,r.default.createElement("div",null,e),c?r.default.createElement(i.Text,{variant:l.TextVariant.bodyXs},c):null));c.propTypes={children:o.default.node.isRequired,className:o.default.string,"data-testid":o.default.string,iconName:o.default.string,onClick:o.default.func,subtitle:o.default.node},c.defaultProps={className:undefined,"data-testid":undefined,iconName:undefined,onClick:undefined,subtitle:undefined};var d=c;n.default=d}}},{package:"$root$",file:"ui/components/ui/menu/menu-item.js"}],[3983,{classnames:1980,"prop-types":3032,react:3177,"react-dom":3077,"react-popper":3113},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(e("prop-types")),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=e("react-dom"),i=e("react-popper"),s=u(e("classnames"));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const d=({anchorElement:e,children:t,className:n,"data-testid":r,onHide:l,popperOptions:u})=>{const[d,f]=(0,o.useState)(null),p=(0,o.useRef)(document.getElementById("popover-content")),{attributes:m,styles:h}=(0,i.usePopper)(e,d,u);return(0,a.createPortal)(o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"menu__background","data-testid":r,onClick:l}),o.default.createElement("div",c({className:(0,s.default)("menu__container",n),"data-testid":n,ref:f,style:h.popper},m.popper),t)),p.current)};d.propTypes={anchorElement:r.default.instanceOf(window.Element),children:r.default.node.isRequired,className:r.default.string,onHide:r.default.func.isRequired,popperOptions:r.default.object,dataTestId:r.default.string},d.defaultProps={anchorElement:undefined,className:undefined,popperOptions:undefined};var f=d;n.default=f}}},{package:"$root$",file:"ui/components/ui/menu/menu.js"}],[3984,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i="var(--color-text-default)";function s({className:e}){return r.default.createElement("svg",{height:30,viewBox:"0 0 1311 242",width:162,xmlns:"http://www.w3.org/2000/svg",className:e},r.default.createElement("g",{fill:"none"},r.default.createElement("g",{fill:i,transform:"translate(361 61)"},r.default.createElement("path",{d:"m796.7 60.9c-6.8-4.5-14.3-7.7-21.4-11.7-4.6-2.6-9.5-4.9-13.5-8.2-6.8-5.6-5.4-16.6 1.7-21.4 10.2-6.8 27.1-3 28.9 10.9 0 .3.3.5.6.5h15.4c.4 0 .7-.3.6-.7-.8-9.6-4.5-17.6-11.3-22.7-6.5-4.9-13.9-7.5-21.8-7.5-40.7 0-44.4 43.1-22.5 56.7 2.5 1.6 24 12.4 31.6 17.1s10 13.3 6.7 20.1c-3 6.2-10.8 10.5-18.6 10-8.5-.5-15.1-5.1-17.4-12.3-.4-1.3-.6-3.8-.6-4.9 0-.3-.3-.6-.6-.6h-16.7c-.3 0-.6.3-.6.6 0 12.1 3 18.8 11.2 24.9 7.7 5.8 16.1 8.2 24.8 8.2 22.8 0 34.6-12.9 37-26.3 2.1-13.1-1.8-24.9-13.5-32.7z"}),r.default.createElement("path",{d:"m71.6 2.3h-7.4-8.1c-.3 0-.5.2-.6.4l-13.7 45.2c-.2.6-1 .6-1.2 0l-13.7-45.2c-.1-.3-.3-.4-.6-.4h-8.1-7.4-10c-.3 0-.6.3-.6.6v115.4c0 .3.3.6.6.6h16.7c.3 0 .6-.3.6-.6v-87.7c0-.7 1-.8 1.2-.2l13.8 45.5 1 3.2c.1.3.3.4.6.4h12.8c.3 0 .5-.2.6-.4l1-3.2 13.8-45.5c.2-.7 1.2-.5 1.2.2v87.7c0 .3.3.6.6.6h16.7c.3 0 .6-.3.6-.6v-115.4c0-.3-.3-.6-.6-.6z"}),r.default.createElement("path",{d:"m541 2.3c-.3 0-.5.2-.6.4l-13.7 45.2c-.2.6-1 .6-1.2 0l-13.7-45.2c-.1-.3-.3-.4-.6-.4h-25.4c-.3 0-.6.3-.6.6v115.4c0 .3.3.6.6.6h16.7c.3 0 .6-.3.6-.6v-87.7c0-.7 1-.8 1.2-.2l13.8 45.5 1 3.2c.1.3.3.4.6.4h12.8c.3 0 .5-.2.6-.4l1-3.2 13.8-45.5c.2-.7 1.2-.5 1.2.2v87.7c0 .3.3.6.6.6h16.7c.3 0 .6-.3.6-.6v-115.4c0-.3-.3-.6-.6-.6z"}),r.default.createElement("path",{d:"m325.6 2.3h-31.1-16.7-31.1c-.3 0-.6.3-.6.6v14.4c0 .3.3.6.6.6h30.5v100.4c0 .3.3.6.6.6h16.7c.3 0 .6-.3.6-.6v-100.4h30.5c.3 0 .6-.3.6-.6v-14.4c0-.3-.2-.6-.6-.6z"}),r.default.createElement("path",{d:"m424.1 118.9h15.2c.4 0 .7-.4.6-.8l-31.4-115.8c-.1-.3-.3-.4-.6-.4h-5.8-10.2-5.8c-.3 0-.5.2-.6.4l-31.4 115.8c-.1.4.2.8.6.8h15.2c.3 0 .5-.2.6-.4l9.1-33.7c.1-.3.3-.4.6-.4h33.6c.3 0 .5.2.6.4l9.1 33.7c.1.2.4.4.6.4zm-39.9-51 12.2-45.1c.2-.6 1-.6 1.2 0l12.2 45.1c.1.4-.2.8-.6.8h-24.4c-.4 0-.7-.4-.6-.8z"}),r.default.createElement("path",{d:"m683.3 118.9h15.2c.4 0 .7-.4.6-.8l-31.4-115.8c-.1-.3-.3-.4-.6-.4h-5.8-10.2-5.8c-.3 0-.5.2-.6.4l-31.4 115.8c-.1.4.2.8.6.8h15.2c.3 0 .5-.2.6-.4l9.1-33.7c.1-.3.3-.4.6-.4h33.6c.3 0 .5.2.6.4l9.1 33.7c.1.2.3.4.6.4zm-39.9-51 12.2-45.1c.2-.6 1-.6 1.2 0l12.2 45.1c.1.4-.2.8-.6.8h-24.4c-.4 0-.7-.4-.6-.8z"}),r.default.createElement("path",{d:"m149.8 101.8v-35.8c0-.3.3-.6.6-.6h44.5c.3 0 .6-.3.6-.6v-14.4c0-.3-.3-.6-.6-.6h-44.5c-.3 0-.6-.3-.6-.6v-30.6c0-.3.3-.6.6-.6h50.6c.3 0 .6-.3.6-.6v-14.4c0-.3-.3-.6-.6-.6h-51.2-17.3c-.3 0-.6.3-.6.6v15 31.9 15.6 37 15.8c0 .3.3.6.6.6h17.3 53.3c.3 0 .6-.3.6-.6v-15.2c0-.3-.3-.6-.6-.6h-52.8c-.3-.1-.5-.3-.5-.7z"}),r.default.createElement("path",{d:"m949.3 117.9-57.8-59.7c-.2-.2-.2-.6 0-.8l52-54c.4-.4.1-1-.4-1h-21.3c-.2 0-.3.1-.4.2l-44.1 45.8c-.4.4-1 .1-1-.4v-45c0-.3-.3-.6-.6-.6h-16.7c-.3 0-.6.3-.6.6v115.4c0 .3.3.6.6.6h16.7c.3 0 .6-.3.6-.6v-50.8c0-.5.7-.8 1-.4l50 51.6c.1.1.3.2.4.2h21.3c.4-.1.7-.8.3-1.1z"})),r.default.createElement("g",{strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(1 1)"},r.default.createElement("path",{d:"m246.1.2-101.1 75 18.8-44.2z",fill:"#e17726",stroke:"#e17726"}),r.default.createElement("g",{fill:"#e27625",stroke:"#e27625",transform:"translate(2)"},r.default.createElement("path",{d:"m10.9.2 100.2 75.7-17.9-44.9z"}),r.default.createElement("path",{d:"m207.7 174.1-26.9 41.2 57.6 15.9 16.5-56.2z"}),r.default.createElement("path",{d:"m.2 175 16.4 56.2 57.5-15.9-26.8-41.2z"}),r.default.createElement("path",{d:"m71 104.5-16 24.2 57 2.6-1.9-61.5z"}),r.default.createElement("path",{d:"m184 104.5-39.7-35.4-1.3 62.2 57-2.6z"}),r.default.createElement("path",{d:"m74.1 215.3 34.5-16.7-29.7-23.2z"}),r.default.createElement("path",{d:"m146.4 198.6 34.4 16.7-4.7-39.9z"})),r.default.createElement("g",{fill:"#d5bfb2",stroke:"#d5bfb2",transform:"translate(76 198)"},r.default.createElement("path",{d:"m106.8 17.3-34.4-16.7 2.8 22.4-.3 9.5z"}),r.default.createElement("path",{d:"m.1 17.3 32 15.2-.2-9.5 2.7-22.4z"})),r.default.createElement("path",{d:"m108.7 160.6-28.6-8.4 20.2-9.3z",fill:"#233447",stroke:"#233447"}),r.default.createElement("path",{d:"m150.3 160.6 8.4-17.7 20.3 9.3z",fill:"#233447",stroke:"#233447"}),r.default.createElement("g",{fill:"#cc6228",stroke:"#cc6228",transform:"translate(49 128)"},r.default.createElement("path",{d:"m27.1 87.3 5-41.2-31.8.9z"}),r.default.createElement("path",{d:"m128.9 46.1 4.9 41.2 26.9-40.3z"}),r.default.createElement("path",{d:"m153 .7-57 2.6 5.3 29.3 8.4-17.7 20.3 9.3z"}),r.default.createElement("path",{d:"m31.1 24.2 20.2-9.3 8.4 17.7 5.3-29.3-57-2.6z"})),r.default.createElement("g",{fill:"#e27525",stroke:"#e27525",transform:"translate(57 128)"},r.default.createElement("path",{d:"m0 .7 23.9 46.7-.8-23.2z"}),r.default.createElement("path",{d:"m122 24.2-.9 23.2 23.9-46.7z"}),r.default.createElement("path",{d:"m57 3.3-5.3 29.3 6.7 34.6 1.5-45.6z"}),r.default.createElement("path",{d:"m88 3.3-2.8 18.2 1.4 45.7 6.7-34.6z"})),r.default.createElement("path",{d:"m150.3 160.6-6.7 34.6 4.8 3.4 29.7-23.2.9-23.2z",fill:"#f5841f",stroke:"#f5841f"}),r.default.createElement("path",{d:"m80.1 152.2.8 23.2 29.7 23.2 4.8-3.4-6.7-34.6z",fill:"#f5841f",stroke:"#f5841f"}),r.default.createElement("path",{d:"m150.9 230.5.3-9.5-2.6-2.2h-38.2l-2.5 2.2.2 9.5-32-15.2 11.2 9.2 22.7 15.7h38.9l22.8-15.7 11.1-9.2z",fill:"#c0ac9d",stroke:"#c0ac9d"}),r.default.createElement("path",{d:"m148.4 198.6-4.8-3.4h-28.2l-4.8 3.4-2.7 22.4 2.5-2.2h38.2l2.6 2.2z",fill:"#161616",stroke:"#161616"}),r.default.createElement("g",{fill:"#763e1a",stroke:"#763e1a"},r.default.createElement("path",{d:"m250.4 80.1 8.5-41.4-12.8-38.5-97.7 72.5 37.6 31.8 53.1 15.5 11.7-13.7-5.1-3.7 8.1-7.4-6.2-4.8 8.1-6.2z"}),r.default.createElement("path",{d:"m.1 38.7 8.6 41.4-5.5 4.1 8.2 6.2-6.2 4.8 8.1 7.4-5.1 3.7 11.7 13.7 53.1-15.5 37.6-31.8-97.7-72.5z"})),r.default.createElement("g",{fill:"#f5841f",stroke:"#f5841f"},r.default.createElement("path",{d:"m239.1 120-53.1-15.5 16 24.2-23.9 46.7 31.6-.4h47.2z"}),r.default.createElement("path",{d:"m73 104.5-53.1 15.5-17.7 55h47.1l31.6.4-23.9-46.7z"}),r.default.createElement("path",{d:"m145 131.3 3.4-58.6 15.4-41.7h-68.6l15.4 41.7 3.4 58.6 1.3 18.4.1 45.5h28.2l.1-45.5z"})))))}s.propTypes={className:o.default.string}}}},{package:"$root$",file:"ui/components/ui/metafox-logo/horizontal-logo.js"}],[3985,{"./metafox-logo.component":3986},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./metafox-logo.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/metafox-logo/index.js"}],[3986,{"./horizontal-logo":3984,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=s(e("prop-types")),a=s(e("classnames")),i=s(e("./horizontal-logo"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends r.PureComponent{render(){const{onClick:e,unsetIconHeight:t,isOnboarding:n}=this.props,o=t?{}:{height:42,width:42};return r.default.createElement("div",{onClick:e,className:(0,a.default)({"app-header__logo-container":!n,"onboarding-app-header__logo-container":n,"app-header__logo-container--clickable":Boolean(e)}),"data-testid":"app-header-logo"},r.default.createElement(i.default,{className:(0,a.default)({"app-header__metafox-logo--horizontal":!n,"onboarding-app-header__metafox-logo--horizontal":n})}),r.default.createElement("img",u({},o,{src:"./images/logo/metamask-fox.svg",className:(0,a.default)({"app-header__metafox-logo--icon":!n,"onboarding-app-header__metafox-logo--icon":n}),alt:""})))}}n.default=d,c(d,"propTypes",{onClick:o.default.func,unsetIconHeight:o.default.bool,isOnboarding:o.default.bool}),c(d,"defaultProps",{onClick:undefined})}}},{package:"$root$",file:"ui/components/ui/metafox-logo/metafox-logo.component.js"}],[3987,{"../../../../shared/constants/network":3409,"../../../../shared/constants/tokens":3416,"../../../../shared/lib/fetch-with-cache":3419,"../../../contexts/i18n":4047,"../../../helpers/constants/design-system":4070,"../../../helpers/constants/routes":4074,"../../../selectors":4436,"../../../store/actions":4443,"../../component-library/icon/deprecated":3836,"../box":3900,"../button":3904,"../chip/chip":3912,"../identicon":3962,"../popover":3999,"../typography":4039,react:3177,"react-redux":3130,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=e("react-redux"),a=e("react-router-dom"),i=e("../../../contexts/i18n"),s=_(e("../popover")),l=_(e("../button")),u=_(e("../identicon")),c=_(e("../box")),d=e("../../../helpers/constants/design-system"),f=_(e("../typography")),p=e("../../../../shared/constants/tokens"),m=_(e("../../../../shared/lib/fetch-with-cache")),h=e("../../../selectors"),g=e("../../../helpers/constants/routes"),b=_(e("../chip/chip")),y=e("../../../store/actions"),v=e("../../../../shared/constants/network"),T=e("../../component-library/icon/deprecated");function _(e){return e&&e.__esModule?e:{default:e}}function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}var E=()=>{const e=(0,r.useContext)(i.I18nContext),t=(0,a.useHistory)(),[n,_]=(0,r.useState)(!1),[C,E]=(0,r.useState)(!0),O=(0,o.useSelector)(h.getUseTokenDetection),w=(0,o.useSelector)(h.getNativeCurrencyImage),k=(0,o.useSelector)(h.getProvider),N=()=>{E(!1),(0,y.setFirstTimeUsedNetwork)(k.chainId)},M=async()=>{const e=await(async()=>!(await(0,m.default)(`${p.TOKEN_API_METASWAP_CODEFI_URL}${k.chainId}`)).error)();_(e)};return(0,r.useEffect)((()=>{M()})),C?r.default.createElement(s.default,{onClose:N,className:"new-network-info__wrapper",footer:r.default.createElement(l.default,{type:"primary",onClick:N},e("recoveryPhraseReminderConfirm"))},r.default.createElement(f.default,{variant:d.TypographyVariant.H4,color:d.Color.textDefault,fontWeight:d.FONT_WEIGHT.BOLD,align:d.TEXT_ALIGN.CENTER},e("switchedTo")),r.default.createElement(b.default,{className:"new-network-info__token-box",backgroundColor:d.Color.backgroundAlternative,maxContent:!1,label:k.type===v.NETWORK_TYPES.RPC?k.nickname??e("privateNetwork"):e(k.type),labelProps:{color:d.Color.textDefault},leftIcon:w?r.default.createElement(u.default,{image:w,diameter:14}):r.default.createElement(T.Icon,{className:"question",name:T.ICON_NAMES.QUESTION,color:d.Color.iconDefault})}),r.default.createElement(f.default,{variant:d.TypographyVariant.H7,color:d.Color.textDefault,fontWeight:d.FONT_WEIGHT.BOLD,align:d.TEXT_ALIGN.CENTER,margin:[8,0,0,0]},e("thingsToKeep")),r.default.createElement(c.default,{marginRight:4,marginLeft:5,marginTop:6},k.ticker?r.default.createElement(c.default,{display:d.DISPLAY.FLEX,alignItems:d.AlignItems.center,marginBottom:2,paddingBottom:2,className:"new-network-info__bullet-paragraph"},r.default.createElement(c.default,{marginRight:4,color:d.Color.textDefault},"•"),r.default.createElement(f.default,{variant:d.TypographyVariant.H7,color:d.Color.textDefault,boxProps:{display:d.DISPLAY.INLINE_BLOCK},key:"nativeTokenInfo"},e("nativeToken",[r.default.createElement(f.default,{variant:d.TypographyVariant.H7,boxProps:{display:d.DISPLAY.INLINE_BLOCK},fontWeight:d.FONT_WEIGHT.BOLD,key:"ticker"},k.ticker)]))):null,r.default.createElement(c.default,{display:d.DISPLAY.FLEX,alignItems:d.AlignItems.center,marginBottom:2,paddingBottom:2,className:O&&n?null:"new-network-info__bullet-paragraph"},r.default.createElement(c.default,{marginRight:4,color:d.Color.textDefault},"•"),r.default.createElement(f.default,{variant:d.TypographyVariant.H7,color:d.Color.textDefault,boxProps:{display:d.DISPLAY.INLINE_BLOCK},className:"new-network-info__bullet-paragraph__text"},e("attemptSendingAssets")," ",r.default.createElement("a",{href:"https://metamask.zendesk.com/hc/en-us/articles/4404424659995",target:"_blank",rel:"noreferrer"},r.default.createElement(f.default,{variant:d.TypographyVariant.H7,color:d.Color.infoDefault,boxProps:{display:d.DISPLAY.INLINE_BLOCK}},e("learnMoreUpperCase"))))),O&&n?null:r.default.createElement(c.default,{display:d.DISPLAY.FLEX,alignItems:d.AlignItems.center,marginBottom:2,paddingBottom:2},r.default.createElement(c.default,{marginRight:4,color:d.Color.textDefault},"•"),r.default.createElement(c.default,null,r.default.createElement(f.default,{variant:d.TypographyVariant.H7,color:d.Color.textDefault,className:"new-network-info__token-show-up"},e("tokenShowUp")," ",r.default.createElement(l.default,{type:"link",onClick:()=>{t.push(g.IMPORT_TOKEN_ROUTE),E(!1),(0,y.setFirstTimeUsedNetwork)(k.chainId)},className:"new-network-info__button"},r.default.createElement(f.default,{variant:d.TypographyVariant.H7,color:d.Color.infoDefault,className:"new-network-info__manually-add-tokens"},e("clickToManuallyAdd")))))))):null};n.default=E}}},{package:"$root$",file:"ui/components/ui/new-network-info/new-network-info.js"}],[3988,{"../../../helpers/constants/design-system":4070,"../../../hooks/useNftsCollections":4131,"../../../selectors":4436,"../box":3900,"../identicon":3962,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var r=d(e("react")),o=d(e("prop-types")),a=e("react-redux"),i=d(e("../box")),s=e("../../../helpers/constants/design-system"),l=d(e("../identicon")),u=e("../../../selectors"),c=e("../../../hooks/useNftsCollections");function d(e){return e&&e.__esModule?e:{default:e}}function f({assetName:e,tokenAddress:t}){var n;const{collections:o}=(0,c.useNftsCollections)(),d=null===(n=(0,a.useSelector)(u.getTokenList)[t.toLowerCase()])||void 0===n?void 0:n.iconUrl;return r.default.createElement(i.default,null,(()=>{var t;const n=Object.values(o).find((({collectionName:t})=>t===e));return null!=n&&n.collectionImage||d?r.default.createElement(l.default,{diameter:24,image:(null==n?void 0:n.collectionImage)||d}):r.default.createElement(i.default,{color:s.Color.overlayInverse,textAlign:s.TEXT_ALIGN.CENTER,className:"collection-image-alt"},(null==e||null===(t=e[0])||void 0===t?void 0:t.toUpperCase())??null)})())}f.propTypes={assetName:o.default.string,tokenAddress:o.default.string}}}},{package:"$root$",file:"ui/components/ui/nft-collection-image/nft-collection-image.js"}],[3989,{"./nickname-popover.component":3990},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./nickname-popover.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/nickname-popover/index.js"}],[3990,{"../../../contexts/i18n":4047,"../../../helpers/constants/routes":4074,"../../../helpers/utils/util":4108,"../../../hooks/useCopyToClipboard":4123,"../../../selectors":4436,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../button":3904,"../identicon":3962,"../popover":3999,"../tooltip":4035,"prop-types":3032,react:3177,"react-redux":3130,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=e("react-redux"),a=y(e("prop-types")),i=e("react-router-dom"),s=e("../../../contexts/i18n"),l=y(e("../tooltip")),u=y(e("../popover")),c=y(e("../button")),d=y(e("../identicon")),f=e("../../../helpers/utils/util"),p=e("../../../hooks/useCopyToClipboard"),m=e("../../../selectors"),h=e("../../../helpers/constants/routes"),g=e("../../component-library/icon/deprecated"),b=e("../../component-library");function y(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}const T=({address:e,nickname:t,onClose:n=null,onAdd:a=null,explorerLink:y})=>{var v;const T=(0,r.useContext)(s.I18nContext),_=(0,i.useHistory)(),C=(0,r.useCallback)((()=>{a()}),[a]),[E,O]=(0,p.useCopyToClipboard)(),w=(0,o.useSelector)(m.getTokenList),k=(0,o.useSelector)(m.getBlockExplorerLinkText);return r.default.createElement("div",{className:"nickname-popover"},r.default.createElement(u.default,{onClose:n,className:"nickname-popover__popover-wrap"},r.default.createElement(d.default,{address:e,diameter:36,className:"nickname-popover__identicon",image:null===(v=w[e.toLowerCase()])||void 0===v?void 0:v.iconUrl}),r.default.createElement("div",{className:"nickname-popover__address"},t||(0,f.shortenAddress)(e)),r.default.createElement("div",{className:"nickname-popover__public-address"},r.default.createElement("div",{className:"nickname-popover__public-address__constant"},e),r.default.createElement(l.default,{position:"bottom",title:T(E?"copiedExclamation":"copyToClipboard")},r.default.createElement(b.ButtonIcon,{iconName:E?g.ICON_NAMES.COPY_SUCCESS:g.ICON_NAMES.COPY,size:g.ICON_SIZES.SM,onClick:()=>O(e)}))),r.default.createElement("div",{className:"nickname-popover__view-on-block-explorer"},r.default.createElement(c.default,{type:"link",className:"nickname-popover__etherscan-link",onClick:"addBlockExplorer"===k.firstPart?()=>{_.push(`${h.NETWORKS_ROUTE}#blockExplorerUrl`)}:()=>{global.platform.openTab({url:y})},target:"_blank",rel:"noopener noreferrer",title:"addBlockExplorer"===k.firstPart?T("addBlockExplorer"):T("etherscanView")},"addBlockExplorer"===k.firstPart?T("addBlockExplorer"):T("viewOnBlockExplorer"))),r.default.createElement(c.default,{type:"primary",className:"nickname-popover__footer-button",onClick:C},T(t?"editANickname":"addANickname"))))};T.propTypes={address:a.default.string,nickname:a.default.string,onClose:a.default.func,onAdd:a.default.func,explorerLink:a.default.string};var _=T;n.default=_}}},{package:"$root$",file:"ui/components/ui/nickname-popover/nickname-popover.component.js"}],[3991,{"../../../../shared/constants/tokens":3416,"../../../helpers/constants/design-system":4070,"../typography/typography":4040,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var r=u(e("react")),o=u(e("classnames")),a=u(e("prop-types")),i=u(e("../typography/typography")),s=e("../../../helpers/constants/design-system"),l=e("../../../../shared/constants/tokens");function u(e){return e&&e.__esModule?e:{default:e}}function c({detailText:e="",value:t=0,onChange:n,error:a="",autoFocus:u=!1,allowDecimals:c=!0,disabled:d=!1,dataTestId:f,placeholder:p,id:m,name:h,inputRef:g}){return r.default.createElement("div",{className:(0,o.default)("numeric-input",{"numeric-input--error":a})},r.default.createElement("input",{type:"number",value:t,onKeyDown:e=>{c||"."!==e.key||e.preventDefault()},onChange:e=>{var t;const r=e.target.value,o=l.DECIMAL_REGEX.exec(r);(null==o||null===(t=o[1])||void 0===t?void 0:t.length)>=15||null==n||n(parseFloat(r||0,10))},min:"0",autoFocus:u,disabled:d,"data-testid":f,placeholder:p,id:m,name:h,ref:g}),e&&r.default.createElement(i.default,{color:s.TextColor.textAlternative,variant:s.TypographyVariant.H7,as:"span"},e))}c.propTypes={value:a.default.oneOfType([a.default.number,a.default.string]),detailText:a.default.string,onChange:a.default.func,error:a.default.string,autoFocus:a.default.bool,allowDecimals:a.default.bool,disabled:a.default.bool,dataTestId:a.default.string,placeholder:a.default.string,name:a.default.string,id:a.default.string,inputRef:a.default.object}}}},{package:"$root$",file:"ui/components/ui/numeric-input/numeric-input.component.js"}],[3992,{"./page-container-footer":3994,"./page-container-header":3996,"./page-container.component":3998},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PageContainerFooter",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"PageContainerHeader",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return a.default}});var r=i(e("./page-container-header")),o=i(e("./page-container-footer")),a=i(e("./page-container.component"));function i(e){return e&&e.__esModule?e:{default:e}}}}},{package:"$root$",file:"ui/components/ui/page-container/index.js"}],[3993,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r};function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}class s extends o.Component{render(){return o.default.createElement("div",{className:"page-container__content"},this.props.children)}}n.default=s,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(s,"propTypes",{children:a.default.node.isRequired})}}},{package:"$root$",file:"ui/components/ui/page-container/page-container-content.component.js"}],[3994,{"./page-container-footer.component":3995},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./page-container-footer.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/page-container/page-container-footer/index.js"}],[3995,{"../../button":3904,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=s(e("prop-types")),a=s(e("classnames")),i=s(e("../../button"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends r.Component{render(){const{children:e,onCancel:t,cancelText:n,onSubmit:o,submitText:s,disabled:l,submitButtonType:u,hideCancel:c,cancelButtonType:d,buttonSizeLarge:f=!1,footerClassName:p,footerButtonClassName:m}=this.props;return r.default.createElement("div",{className:(0,a.default)("page-container__footer",p)},r.default.createElement("footer",null,!c&&r.default.createElement(i.default,{type:d||"secondary",large:f,className:(0,a.default)("page-container__footer-button","page-container__footer-button__cancel",m),onClick:e=>t(e),"data-testid":"page-container-footer-cancel"},n||this.context.t("cancel")),r.default.createElement(i.default,{type:u||"primary",large:f,className:(0,a.default)("page-container__footer-button",m),disabled:l,onClick:e=>o(e),"data-testid":"page-container-footer-next"},s||this.context.t("next"))),e&&r.default.createElement("div",{className:"page-container__footer-secondary"},e))}}n.default=c,u(c,"propTypes",{children:o.default.node,onCancel:o.default.func,cancelText:o.default.string,cancelButtonType:o.default.string,onSubmit:o.default.func,submitText:o.default.string,disabled:o.default.bool,submitButtonType:o.default.string,hideCancel:o.default.bool,buttonSizeLarge:o.default.bool,footerClassName:o.default.string,footerButtonClassName:o.default.string}),u(c,"contextTypes",{t:o.default.func})}}},{package:"$root$",file:"ui/components/ui/page-container/page-container-footer/page-container-footer.component.js"}],[3996,{"./page-container-header.component":3997},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./page-container-header.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/page-container/page-container-header/index.js"}],[3997,{"../../button":3904,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),s=c(e("prop-types")),l=c(e("classnames")),u=c(e("../../button"));function c(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}class f extends i.Component{renderTabs(){const{tabs:e}=this.props;return e?i.default.createElement("ul",{className:"page-container__tabs"},e):null}renderCloseAction(){const{hideClose:e,onClose:t,headerCloseText:n}=this.props;return e?null:n?t&&i.default.createElement(u.default,{type:"link",className:"page-container__header-close-text",onClick:()=>t()},n):t&&i.default.createElement("button",{className:"page-container__header-close",onClick:()=>t(),"aria-label":"close"})}renderHeaderRow(){const{showBackButton:e,onBackButtonClick:t,backButtonStyles:n,backButtonString:r}=this.props;return e&&i.default.createElement("div",{className:"page-container__header-row"},i.default.createElement("span",{className:"page-container__back-button",onClick:t,style:n},r||"Back"))}render(){const{title:e,subtitle:t,tabs:n,className:r,hideClose:o}=this.props;return i.default.createElement("div",{className:(0,l.default)("page-container__header",r,{"page-container__header--no-padding-bottom":Boolean(n)}),"data-testid":"page-container__header"},this.renderHeaderRow(),e&&i.default.createElement("div",{className:(0,l.default)("page-container__title",{"page-container__title--no-margin-right":o})},e),t?i.default.createElement("div",{className:"page-container__subtitle"},t):null,this.renderCloseAction(),this.renderTabs())}}n.default=f,r=f,o="propTypes",a={title:s.default.string,subtitle:s.default.string,onClose:s.default.func,showBackButton:s.default.bool,onBackButtonClick:s.default.func,backButtonStyles:s.default.object,backButtonString:s.default.string,tabs:s.default.node,headerCloseText:s.default.string,className:s.default.string,hideClose:s.default.bool},(o=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a}}},{package:"$root$",file:"ui/components/ui/page-container/page-container-header/page-container-header.component.js"}],[3998,{"./page-container-footer":3994,"./page-container-header":3996,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=s(e("prop-types")),a=s(e("./page-container-header")),i=s(e("./page-container-footer"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends r.PureComponent{constructor(...e){super(...e),u(this,"state",{activeTabIndex:this.props.defaultActiveTabIndex||0})}handleTabClick(e){this.setState({activeTabIndex:e})}renderTabs(){const{tabsComponent:e}=this.props;if(!e)return null;const t=r.default.Children.count(e.props.children);return r.default.Children.map(e.props.children,((e,n)=>e&&r.default.cloneElement(e,{onClick:e=>this.handleTabClick(e),tabIndex:n,isActive:t>1&&n===this.state.activeTabIndex,key:n,className:"page-container__tab"})))}renderActiveTabContent(){const{tabsComponent:e}=this.props;let{children:t}=e.props;t=t.filter(Boolean);const{activeTabIndex:n}=this.state;return(t[n]||t[0]).props.children}renderContent(){const{contentComponent:e,tabsComponent:t}=this.props;return e||(t?this.renderActiveTabContent():null)}getTabSubmitText(){const{tabsComponent:e}=this.props,{activeTabIndex:t}=this.state;if(e){var n;let{children:r}=e.props;if(r=r.filter(Boolean),"custom-tab"===(null===(n=r[t])||void 0===n?void 0:n.key))return this.context.t("addCustomToken")}return null}render(){const{title:e,subtitle:t,onClose:n,showBackButton:o,onBackButtonClick:s,backButtonStyles:l,backButtonString:u,onCancel:c,cancelText:d,onSubmit:f,submitText:p,disabled:m,headerCloseText:h,hideCancel:g}=this.props,b=this.getTabSubmitText();return r.default.createElement("div",{className:"page-container"},r.default.createElement(a.default,{title:e,subtitle:t,onClose:n,showBackButton:o,onBackButtonClick:s,backButtonStyles:l,backButtonString:u,tabs:this.renderTabs(),headerCloseText:h}),r.default.createElement("div",{className:"page-container__bottom"},r.default.createElement("div",{className:"page-container__content"},this.renderContent()),r.default.createElement(i.default,{onCancel:c,cancelText:d,hideCancel:g,onSubmit:f,submitText:b||p,disabled:m})))}}n.default=c,u(c,"contextTypes",{t:o.default.func}),u(c,"propTypes",{backButtonString:o.default.string,backButtonStyles:o.default.object,headerCloseText:o.default.string,onBackButtonClick:o.default.func,onClose:o.default.func,showBackButton:o.default.bool,subtitle:o.default.string,title:o.default.string.isRequired,defaultActiveTabIndex:o.default.number,tabsComponent:o.default.node,contentComponent:o.default.node,cancelText:o.default.string,disabled:o.default.bool,hideCancel:o.default.bool,onCancel:o.default.func,onSubmit:o.default.func,submitText:o.default.string})}}},{package:"$root$",file:"ui/components/ui/page-container/page-container.component.js"}],[3999,{"./popover.component":4e3},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./popover.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/popover/index.js"}],[4e3,{"../../../helpers/constants/design-system":4070,"../../../hooks/useI18nContext":4129,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../box":3900,classnames:1980,"prop-types":3032,react:3177,"react-dom":3077},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=f(e("react-dom")),a=f(e("prop-types")),i=f(e("classnames")),s=e("../../../hooks/useI18nContext"),l=f(e("../box")),u=e("../../../helpers/constants/design-system"),c=e("../../component-library/icon/deprecated"),d=e("../../component-library");function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}const g={padding:[6,4,4],display:"flex",flexDirection:u.FLEX_DIRECTION.COLUMN,backgroundColor:u.BackgroundColor.backgroundDefault,borderRadius:"xl"},b={display:"flex",flexDirection:u.FLEX_DIRECTION.COLUMN,justifyContent:u.JustifyContent.flexStart,alignItems:u.AlignItems.stretch,borderRadius:"xl"},y={display:"flex",justifyContent:u.JustifyContent.spaceBetween,padding:[4,6,6]},v=({title:e,subtitle:t="",children:n,footer:o,footerClassName:a,onBack:f,onClose:p,className:m,contentClassName:v,showArrow:T,CustomBackground:_,popoverRef:C,showScrollDown:E,onScrollDownButtonClick:O,centerTitle:w,headerProps:k=g,contentProps:N=b,footerProps:M=y})=>{const x=(0,s.useI18nContext)(),P=e||f||t||p,S=()=>r.default.createElement(l.default,h({},g,k,{className:"popover-header"}),r.default.createElement(l.default,{display:u.DISPLAY.FLEX,alignItems:u.AlignItems.center,justifyContent:w?null:u.JustifyContent.spaceBetween,className:(0,i.default)("popover-header__title",{"popover-header__title--center":w}),marginBottom:2},f?r.default.createElement(d.ButtonIcon,{iconName:c.ICON_NAMES.ARROW_LEFT,ariaLabel:x("back"),onClick:f,color:u.Color.iconDefault,size:u.Size.SM}):null,r.default.createElement(d.Text,{textAlign:w?u.TEXT_ALIGN.CENTER:u.TEXT_ALIGN.START,ellipsis:!0,variant:u.TextVariant.headingSm,as:"h2",width:u.BLOCK_SIZES.FULL},e),p?r.default.createElement(d.ButtonIcon,{iconName:c.ICON_NAMES.CLOSE,ariaLabel:x("close"),"data-testid":"popover-close",onClick:p,size:u.Size.SM}):null),t?r.default.createElement(d.Text,{variant:u.TextVariant.bodySm},t):null);return r.default.createElement("div",{className:"popover-container"},_?r.default.createElement(_,{onClose:p}):r.default.createElement("div",{className:"popover-bg",onClick:p}),r.default.createElement("section",{className:(0,i.default)("popover-wrap",m),ref:C},E?r.default.createElement(l.default,{display:u.DISPLAY.FLEX,alignItems:u.AlignItems.center,justifyContent:u.JustifyContent.center,borderColor:u.BorderColor.borderDefault,backgroundColor:u.BackgroundColor.backgroundDefault,color:u.Color.iconDefault,onClick:O,className:"whats-new-popup__scroll-button","data-testid":"whats-new-popup-scroll-button"},r.default.createElement(c.Icon,{name:c.ICON_NAMES.ARROW_DOWN,color:u.IconColor.primaryDefault,size:c.ICON_SIZES.MD,"aria-label":x("scrollDown")})):null,T?r.default.createElement("div",{className:"popover-arrow"}):null,P&&r.default.createElement(S,null),n?r.default.createElement(l.default,h({className:(0,i.default)("popover-content",v)},b,N),n):null,o?r.default.createElement(l.default,h({className:(0,i.default)("popover-footer",a)},y,M),o):null))};v.propTypes={title:a.default.node,subtitle:a.default.string,children:a.default.node,footer:a.default.node,footerClassName:a.default.string,onBack:a.default.func,onClose:a.default.func,CustomBackground:a.default.func,contentClassName:a.default.string,className:a.default.string,showArrow:a.default.bool,popoverRef:a.default.shape({current:a.default.instanceOf(window.Element)}),showScrollDown:a.default.bool,onScrollDownButtonClick:a.default.func,centerTitle:a.default.bool,headerProps:a.default.shape({...l.default.propTypes}),contentProps:a.default.shape({...l.default.propTypes}),footerProps:a.default.shape({...l.default.propTypes})};class T extends r.PureComponent{constructor(...e){super(...e),m(this,"rootNode",document.getElementById("popover-content")),m(this,"instanceNode",document.createElement("div"))}componentDidMount(){this.rootNode&&this.rootNode.appendChild(this.instanceNode)}componentWillUnmount(){this.rootNode&&this.rootNode.removeChild(this.instanceNode)}render(){const e=r.default.createElement(v,this.props);return this.rootNode?o.default.createPortal(e,this.instanceNode):e}}n.default=T,m(T,"propTypes",v.propTypes)}}},{package:"$root$",file:"ui/components/ui/popover/popover.component.js"}],[4001,{"./pulse-loader":4002},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./pulse-loader"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/pulse-loader/index.js"}],[4002,{react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return o.default.createElement("div",{className:"pulse-loader"},o.default.createElement("div",{className:"pulse-loader__loading-dot-one"}),o.default.createElement("div",{className:"pulse-loader__loading-dot-two"}),o.default.createElement("div",{className:"pulse-loader__loading-dot-three"}))};var r,o=(r=e("react"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/pulse-loader/pulse-loader.js"}],[4003,{"./qr-code":4004},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./qr-code"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/qr-code/index.js"}],[4004,{"../../../../shared/modules/hexstring-utils":3435,"../../../hooks/useCopyToClipboard":4123,"../../../hooks/useI18nContext":4129,"../../component-library/icon/deprecated":3836,"../../multichain/address-copy-button":3877,"../box/box":3899,"../tooltip":4035,"ethereumjs-util":2231,"prop-types":3032,"qrcode-generator":3068,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=p(e("prop-types")),o=p(e("react")),a=p(e("qrcode-generator")),i=e("react-redux"),s=e("ethereumjs-util"),l=e("../../../hooks/useCopyToClipboard"),u=e("../../../../shared/modules/hexstring-utils"),c=p(e("../tooltip")),d=e("../../../hooks/useI18nContext"),f=(e("../../multichain/address-copy-button"),p(e("../box/box")),e("../../component-library/icon/deprecated"));function p(e){return e&&e.__esModule?e:{default:e}}var m=(0,i.connect)((function(e){const{buyView:t,warning:n}=e.appState;return{buyView:t,warning:n}}))(h);function h(e){const{Qr:t,warning:n}=e,{message:r,data:i}=t,p=`${(0,s.isHexPrefixed)(i)?"ethereum:":""}${(0,u.toChecksumHexAddress)(i)}`,[m,h]=(0,l.useCopyToClipboard)(),g=(0,d.useI18nContext)(),b=(0,a.default)(4,"M");b.addData(p),b.make();const y=r?o.default.createElement("div",{className:"qr-code__header"},r):null;return o.default.createElement("div",{className:"qr-code"},Array.isArray(r)?o.default.createElement("div",{className:"qr-code__message-container"},r.map(((e,t)=>o.default.createElement("div",{className:"qr_code__message",key:t},e)))):y,n?o.default.createElement("span",{className:"qr-code__error"},n):null,o.default.createElement("div",{className:"qr-code__wrapper",dangerouslySetInnerHTML:{__html:b.createTableTag(4)}}),o.default.createElement(c.default,{wrapperClassName:"qr-code__address-container__tooltip-wrapper",position:"bottom",title:g(m?"copiedExclamation":"copyToClipboard")},o.default.createElement("div",{className:"qr-code__address-container",onClick:()=>{h((0,u.toChecksumHexAddress)(i))}},o.default.createElement("div",{className:"qr-code__address"},(0,u.toChecksumHexAddress)(i)),o.default.createElement(f.Icon,{name:m?f.ICON_NAMES.COPY_SUCCESS:f.ICON_NAMES.COPY,size:f.ICON_SIZES.SM,marginInlineStart:3}))))}n.default=m,h.propTypes={warning:r.default.node,Qr:r.default.shape({message:r.default.oneOfType([r.default.arrayOf(r.default.node),r.default.node]),data:r.default.string.isRequired}).isRequired}}}},{package:"$root$",file:"ui/components/ui/qr-code/qr-code.js"}],[4005,{"../../../../shared/modules/Numeric":3427,"../../../contexts/i18n":4047,"../../../helpers/constants/design-system":4070,"../../component-library":3840,"../../component-library/icon/deprecated":3836,"../box":3900,"../tooltip":4035,"../typography":4039,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=h;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=p(e("prop-types")),a=e("../../../contexts/i18n"),i=p(e("../box")),s=p(e("../tooltip")),l=p(e("../typography")),u=e("../../component-library"),c=e("../../component-library/icon/deprecated"),d=e("../../../helpers/constants/design-system"),f=e("../../../../shared/modules/Numeric");function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h({tokenName:e,currentTokenBalance:t,tokenValue:n,onEdit:o}){const p=(0,r.useContext)(a.I18nContext),m=new f.Numeric(Number(n),10).greaterThan(Number(t),10);return r.default.createElement(i.default,{className:"review-spending-cap",borderRadius:d.Size.SM,paddingTop:4,paddingRight:4,paddingLeft:4,display:d.DISPLAY.FLEX,alignItems:d.AlignItems.flexStart,flexDirection:d.FLEX_DIRECTION.COLUMN,backgroundColor:d.BackgroundColor.backgroundAlternative,gap:1},r.default.createElement(i.default,{flexDirection:d.FLEX_DIRECTION.ROW,display:d.DISPLAY.FLEX,alignItems:d.AlignItems.center,className:"review-spending-cap__heading"},r.default.createElement(i.default,{flexDirection:d.FLEX_DIRECTION.ROW,className:"review-spending-cap__heading-title"},r.default.createElement(l.default,{as:d.TypographyVariant.H6,fontWeight:d.FONT_WEIGHT.BOLD,variant:d.TypographyVariant.H6,boxProps:{display:d.DISPLAY.INLINE_BLOCK}},p("customSpendingCap")),r.default.createElement(i.default,{marginLeft:2,display:d.DISPLAY.INLINE_BLOCK},r.default.createElement(s.default,{interactive:!0,position:"top",html:r.default.createElement(l.default,{variant:d.TypographyVariant.H7,color:d.TextColor.textAlternative,className:"review-spending-cap__heading-title__tooltip"},m&&p("warningTooltipText",[r.default.createElement(l.default,{key:"tooltip-text",variant:d.TypographyVariant.H7,fontWeight:d.FONT_WEIGHT.BOLD,color:d.TextColor.errorDefault},r.default.createElement(c.Icon,{name:c.ICON_NAMES.WARNING,style:{verticalAlign:"middle"}}),p("beCareful"))]),0===Number(n)&&p("revokeSpendingCapTooltipText"))},m&&r.default.createElement(c.Icon,{className:"review-spending-cap__heading-title__tooltip__warning-icon",name:c.ICON_NAMES.DANGER,color:d.IconColor.errorDefault,size:c.ICON_SIZES.SM,style:{"vertical-align":"middle"}}),0===Number(n)&&r.default.createElement(c.Icon,{className:"review-spending-cap__heading-title__tooltip__question-icon",name:c.ICON_NAMES.QUESTION,color:d.IconColor.iconDefault})))),r.default.createElement(i.default,{className:"review-spending-cap__heading-detail",textAlign:d.TEXT_ALIGN.END},r.default.createElement(u.ButtonLink,{size:d.Size.auto,onClick:e=>{e.preventDefault(),o()}},p("edit")))),r.default.createElement(i.default,{className:"review-spending-cap__value"},r.default.createElement(l.default,{as:d.TypographyVariant.H6,color:m?d.TextColor.errorDefault:d.TextColor.textDefault,variant:d.TypographyVariant.H6,marginBottom:3},n," ",e)))}h.propTypes={tokenName:o.default.string,currentTokenBalance:o.default.string,tokenValue:o.default.string,onEdit:o.default.func}}}},{package:"$root$",file:"ui/components/ui/review-spending-cap/review-spending-cap.js"}],[4006,{"./sender-to-recipient.component":4007},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./sender-to-recipient.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/sender-to-recipient/index.js"}],[4007,{"../../../../shared/modules/hexstring-utils":3435,"../../../helpers/utils/util":4108,"../../../hooks/useI18nContext":4129,"../../app/modals/nickname-popovers":3634,"../../component-library/icon/deprecated":3836,"../account-mismatch-warning/account-mismatch-warning.component":3895,"../identicon":3962,"../tooltip":4035,"./sender-to-recipient.constants":4008,classnames:1980,"copy-to-clipboard":2032,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.RecipientWithAddress=T,n.default=C;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=g(e("prop-types")),a=g(e("classnames")),i=g(e("copy-to-clipboard")),s=g(e("../tooltip")),l=g(e("../identicon")),u=e("../../../helpers/utils/util"),c=g(e("../account-mismatch-warning/account-mismatch-warning.component")),d=e("../../../hooks/useI18nContext"),f=e("../../../../shared/modules/hexstring-utils"),p=g(e("../../app/modals/nickname-popovers")),m=e("../../component-library/icon/deprecated"),h=e("./sender-to-recipient.constants");function g(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}const y={[h.DEFAULT_VARIANT]:"sender-to-recipient--default",[h.CARDS_VARIANT]:"sender-to-recipient--cards",[h.FLAT_VARIANT]:"sender-to-recipient--flat"};function v({addressOnly:e,checksummedSenderAddress:t,senderName:n,onSenderClick:o,senderAddress:p,warnUserOnAccountMismatch:m}){const h=(0,d.useI18nContext)(),[g,b]=(0,r.useState)(!1);let y=r.default.createElement("p",null,h("copiedExclamation"));return g||(y=e?r.default.createElement("p",null,h("copyAddress")):r.default.createElement("p",null,(0,u.shortenAddress)(t),r.default.createElement("br",null),h("copyAddress"))),r.default.createElement("div",{className:(0,a.default)("sender-to-recipient__party sender-to-recipient__party--sender"),onClick:()=>{b(!0),(0,i.default)(t),o&&o()}},r.default.createElement("div",{className:"sender-to-recipient__sender-icon"},r.default.createElement(l.default,{address:(0,f.toChecksumHexAddress)(p),diameter:24})),r.default.createElement(s.default,{position:"bottom",html:y,wrapperClassName:"sender-to-recipient__tooltip-wrapper",containerClassName:"sender-to-recipient__tooltip-container",onHidden:()=>b(!1)},r.default.createElement("div",{className:"sender-to-recipient__name"},e?r.default.createElement("span",null,`${n||(0,u.shortenAddress)(t)}`):n)),m&&r.default.createElement(c.default,{address:p}))}function T({checksummedRecipientAddress:e,onRecipientClick:t,addressOnly:n,recipientNickname:o,recipientEns:a,recipientName:c,recipientMetadataName:f,recipientIsOwnedAccount:m}){const h=(0,d.useI18nContext)(),[g,b]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1);let T=r.default.createElement("p",null,h("copiedExclamation"));return y||(T=n?r.default.createElement("p",null,h("copyAddress")):r.default.createElement("p",null,(0,u.shortenAddress)(e),r.default.createElement("br",null),h("copyAddress"))),r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:"sender-to-recipient__party sender-to-recipient__party--recipient sender-to-recipient__party--recipient-with-address",onClick:()=>{m?(v(!0),(0,i.default)(e)):(b(!0),t&&t())}},r.default.createElement("div",{className:"sender-to-recipient__sender-icon"},r.default.createElement(l.default,{address:e,diameter:24})),r.default.createElement(s.default,{position:"bottom",disabled:!c,html:T,wrapperClassName:"sender-to-recipient__tooltip-wrapper",containerClassName:"sender-to-recipient__tooltip-container",onHidden:()=>v(!1)},r.default.createElement("div",{className:"sender-to-recipient__name","data-testid":"sender-to-recipient__name"},n?c||o||f||a||(0,u.shortenAddress)(e):c||o||f||a||(0,u.shortenAddress)(e)||h("newContract")))),g?r.default.createElement(p.default,{onClose:()=>b(!1),address:e}):null)}function _({variant:e}){return e===h.DEFAULT_VARIANT?r.default.createElement("div",{className:"sender-to-recipient__arrow-container"},r.default.createElement("div",{className:"sender-to-recipient__arrow-circle"},r.default.createElement("i",{className:"fa fa-arrow-right sender-to-recipient__arrow-circle__icon"}))):r.default.createElement("div",{className:"sender-to-recipient__arrow-container"},r.default.createElement(m.Icon,{name:m.ICON_NAMES.ARROW_RIGHT}))}function C({senderAddress:e,addressOnly:t,senderName:n,recipientNickname:o,recipientName:i,recipientMetadataName:s,recipientEns:l,onRecipientClick:u,onSenderClick:c,recipientAddress:p,variant:m,warnUserOnAccountMismatch:h,recipientIsOwnedAccount:g}){const b=(0,d.useI18nContext)(),C=(0,f.toChecksumHexAddress)(e),E=(0,f.toChecksumHexAddress)(p);return r.default.createElement("div",{className:(0,a.default)("sender-to-recipient",y[m]),"data-testid":"sender-to-recipient"},r.default.createElement(v,{checksummedSenderAddress:C,addressOnly:t,senderName:n,onSenderClick:c,senderAddress:e,warnUserOnAccountMismatch:h}),r.default.createElement(_,{variant:m}),p?r.default.createElement(T,{checksummedRecipientAddress:E,onRecipientClick:u,addressOnly:t,recipientNickname:o,recipientEns:l,recipientName:i,recipientMetadataName:s,recipientIsOwnedAccount:g}):r.default.createElement("div",{className:"sender-to-recipient__party sender-to-recipient__party--recipient"},r.default.createElement("i",{className:"fa fa-file-text-o"}),r.default.createElement("div",{className:"sender-to-recipient__name"},b("newContract"))))}v.propTypes={senderName:o.default.string,checksummedSenderAddress:o.default.string,addressOnly:o.default.bool,senderAddress:o.default.string,onSenderClick:o.default.func,warnUserOnAccountMismatch:o.default.bool},T.propTypes={checksummedRecipientAddress:o.default.string,recipientName:o.default.string,recipientMetadataName:o.default.string,recipientEns:o.default.string,recipientNickname:o.default.string,addressOnly:o.default.bool,onRecipientClick:o.default.func,recipientIsOwnedAccount:o.default.bool},_.propTypes={variant:o.default.oneOf([h.DEFAULT_VARIANT,h.CARDS_VARIANT,h.FLAT_VARIANT])},C.defaultProps={variant:h.DEFAULT_VARIANT,warnUserOnAccountMismatch:!0},C.propTypes={senderName:o.default.string,senderAddress:o.default.string,recipientName:o.default.string,recipientMetadataName:o.default.string,recipientEns:o.default.string,recipientAddress:o.default.string,recipientNickname:o.default.string,variant:o.default.oneOf([h.DEFAULT_VARIANT,h.CARDS_VARIANT,h.FLAT_VARIANT]),addressOnly:o.default.bool,onRecipientClick:o.default.func,onSenderClick:o.default.func,warnUserOnAccountMismatch:o.default.bool,recipientIsOwnedAccount:o.default.bool}}}},{package:"$root$",file:"ui/components/ui/sender-to-recipient/sender-to-recipient.component.js"}],[4008,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FLAT_VARIANT=n.DEFAULT_VARIANT=n.CARDS_VARIANT=void 0;n.DEFAULT_VARIANT="DEFAULT_VARIANT";n.CARDS_VARIANT="CARDS_VARIANT";n.FLAT_VARIANT="FLAT_VARIANT"}}},{package:"$root$",file:"ui/components/ui/sender-to-recipient/sender-to-recipient.constants.js"}],[4009,{"./show-hide-toggle":4010},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./show-hide-toggle"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/show-hide-toggle/index.js"}],[4010,{"../icon/icon-eye":3947,"../icon/icon-eye-slash":3946,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=l(e("../icon/icon-eye")),s=l(e("../icon/icon-eye-slash"));function l(e){return e&&e.__esModule?e:{default:e}}const u=({id:e,shown:t,onChange:n,ariaLabelHidden:o,ariaLabelShown:l,className:u,"data-testid":c,disabled:d,title:f})=>r.default.createElement("div",{className:(0,a.default)("show-hide-toggle",u)},r.default.createElement("input",{className:"show-hide-toggle__input",id:e,type:"checkbox",checked:t,onChange:n,"data-testid":c,disabled:d}),r.default.createElement("label",{htmlFor:e,className:"show-hide-toggle__label",title:f},t?r.default.createElement(i.default,{ariaLabel:l,className:"show-hide-toggle__icon"}):r.default.createElement(s.default,{ariaLabel:o,className:"show-hide-toggle__icon"})));u.propTypes={id:o.default.string.isRequired,shown:o.default.bool.isRequired,onChange:o.default.func.isRequired,ariaLabelHidden:o.default.string.isRequired,ariaLabelShown:o.default.string.isRequired,className:o.default.string,"data-testid":o.default.string,disabled:o.default.bool,title:o.default.string};var c=u;n.default=c}}},{package:"$root$",file:"ui/components/ui/show-hide-toggle/show-hide-toggle.js"}],[4011,{"./simulation-error-message":4012},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./simulation-error-message"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/simulation-error-message/index.js"}],[4012,{"../../../../.storybook/i18n":1,"../../../helpers/constants/design-system":4070,"../../component-library":3840,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r},i=e("../../component-library"),s=e("../../../helpers/constants/design-system"),l=e("../../../../.storybook/i18n");function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c({userAcknowledgedGasMissing:e=!1,setUserAcknowledgedGasMissing:t}){const n=(0,o.useContext)(l.I18nContext);return!0===e?o.default.createElement(i.BannerAlert,{severity:s.SEVERITIES.DANGER},n("simulationErrorMessageV2")):o.default.createElement(i.BannerAlert,{severity:s.SEVERITIES.DANGER,actionButtonLabel:n("proceedWithTransaction"),actionButtonOnClick:t},n("simulationErrorMessageV2"))}c.propTypes={userAcknowledgedGasMissing:a.default.bool,setUserAcknowledgedGasMissing:a.default.func}}}},{package:"$root$",file:"ui/components/ui/simulation-error-message/simulation-error-message.js"}],[4013,{"./site-icon":4014},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./site-icon"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/site-icon/index.js"}],[4014,{"../icon-border":3940,"../icon-with-fallback":3944,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r=s(e("react")),o=s(e("prop-types")),a=s(e("../icon-border")),i=s(e("../icon-with-fallback"));function s(e){return e&&e.__esModule?e:{default:e}}function l({icon:e=null,name:t="",size:n,className:o}){const s=Math.floor(.75*n);return r.default.createElement(a.default,{size:n,className:o},r.default.createElement(i.default,{icon:e,name:t,size:s}))}l.propTypes={className:o.default.string,icon:o.default.string,name:o.default.string,size:o.default.number.isRequired}}}},{package:"$root$",file:"ui/components/ui/site-icon/site-icon.js"}],[4015,{"./site-origin":4016},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./site-origin"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/site-origin/index.js"}],[4016,{"../../../helpers/constants/design-system":4070,"../chip":3913,"../icon-with-fallback":3944,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=c;var r=u(e("react")),o=u(e("prop-types")),a=u(e("classnames")),i=u(e("../chip")),s=u(e("../icon-with-fallback")),l=e("../../../helpers/constants/design-system");function u(e){return e&&e.__esModule?e:{default:e}}function c({siteOrigin:e,iconSrc:t,iconName:n,chip:o,className:u,title:c,leftIcon:d,rightIcon:f}){return r.default.createElement("div",{className:(0,a.default)("site-origin",u),title:c},o?r.default.createElement(i.default,{borderColor:l.BorderColor.borderMuted,label:e,maxContent:!1,leftIcon:d||r.default.createElement(s.default,{icon:t,name:n,size:24}),rightIcon:f}):r.default.createElement("bdi",{dir:"ltr"},e))}c.propTypes={siteOrigin:o.default.string.isRequired,iconName:o.default.string,iconSrc:o.default.string,className:o.default.string,title:o.default.string,chip:o.default.bool,leftIcon:o.default.node,rightIcon:o.default.node}}}},{package:"$root$",file:"ui/components/ui/site-origin/site-origin.js"}],[4017,{"./spinner.component":4018},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./spinner.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/spinner/index.js"}],[4018,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(e("react")),o=a(e("prop-types"));function a(e){return e&&e.__esModule?e:{default:e}}const i=({className:e="",color:t="var(--color-text-default)"})=>r.default.createElement("div",{className:`spinner ${e}`},r.default.createElement("svg",{className:"lds-spinner",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",style:{background:"none"}},r.default.createElement("g",{transform:"rotate(0 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.9166666666666666s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(30 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.8333333333333334s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(60 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.75s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(90 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.6666666666666666s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(120 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.5833333333333334s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(150 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.5s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(180 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.4166666666666667s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(210 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.3333333333333333s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(240 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.25s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(270 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.16666666666666666s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(300 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"-0.08333333333333333s",repeatCount:"indefinite"}))),r.default.createElement("g",{transform:"rotate(330 50 50)"},r.default.createElement("rect",{x:45,y:0,rx:0,ry:0,width:10,height:30,fill:t},r.default.createElement("animate",{attributeName:"opacity",values:"1;0",dur:"1s",begin:"0s",repeatCount:"indefinite"})))));i.propTypes={className:o.default.string,color:o.default.string};var s=i;n.default=s}}},{package:"$root$",file:"ui/components/ui/spinner/spinner.component.js"}],[4019,{"../../box":3900,"../../dropdown":3928,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DropdownTab=void 0;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=l(e("../../dropdown")),s=l(e("../../box"));function l(e){return e&&e.__esModule?e:{default:e}}const u=e=>{const{activeClassName:t,className:n,"data-testid":o,isActive:l,onClick:u,onChange:c,tabIndex:d,options:f,selectedOption:p}=e;return r.default.createElement(s.default,{as:"li",className:(0,a.default)("tab",n,{"tab--active":l,[t]:t&&l}),"data-testid":o,onClick:e=>{e.preventDefault(),u(d)}},r.default.createElement(i.default,{options:f,selectedOption:p,onChange:c}))};n.DropdownTab=u,u.propTypes={activeClassName:o.default.string,className:o.default.string,"data-testid":o.default.string,isActive:o.default.bool,options:o.default.arrayOf(o.default.exact({name:o.default.string,value:o.default.string.isRequired})).isRequired,selectedOption:o.default.string,onChange:o.default.func,onClick:o.default.func,tabIndex:o.default.number},u.defaultProps={activeClassName:undefined,className:undefined,onChange:undefined,onClick:undefined,selectedOption:undefined}}}},{package:"$root$",file:"ui/components/ui/tabs/dropdown-tab/dropdown-tab.js"}],[4020,{"./dropdown-tab":4019},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("./dropdown-tab").DropdownTab;n.default=r}}},{package:"$root$",file:"ui/components/ui/tabs/dropdown-tab/index.js"}],[4021,{"./dropdown-tab":4020,"./tab":4022,"./tabs.component":4024},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DropdownTab",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"Tab",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"Tabs",{enumerable:!0,get:function(){return r.default}});var r=i(e("./tabs.component")),o=i(e("./tab")),a=i(e("./dropdown-tab"));function i(e){return e&&e.__esModule?e:{default:e}}}}},{package:"$root$",file:"ui/components/ui/tabs/index.js"}],[4022,{"./tab.component":4023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./tab.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/tabs/tab/index.js"}],[4023,{"../../../../helpers/constants/design-system":4070,"../../box":3900,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("../../../../helpers/constants/design-system"),s=l(e("../../box"));function l(e){return e&&e.__esModule?e:{default:e}}const u=e=>{const{activeClassName:t,className:n,"data-testid":o,isActive:l,name:u,onClick:c,tabIndex:d,tabKey:f}=e;return r.default.createElement(s.default,{as:"li",className:(0,a.default)("tab",n,{"tab--active":l,[t]:t&&l}),"data-testid":o,onClick:e=>{e.preventDefault(),c(d)},key:f},r.default.createElement(s.default,{as:"button",padding:2,textAlign:i.TEXT_ALIGN.CENTER,display:i.DISPLAY.BLOCK,width:i.BLOCK_SIZES.FULL},u))};u.propTypes={activeClassName:o.default.string,className:o.default.string,"data-testid":o.default.string,isActive:o.default.bool,name:o.default.string.isRequired,tabKey:o.default.string.isRequired,onClick:o.default.func,tabIndex:o.default.number},u.defaultProps={activeClassName:undefined,className:undefined,onClick:undefined};var c=u;n.default=c}}},{package:"$root$",file:"ui/components/ui/tabs/tab/tab.component.js"}],[4024,{"../../../helpers/constants/design-system":4070,"../box":3900,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=l(e("../box")),s=e("../../../helpers/constants/design-system");function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}const c=({defaultActiveTabKey:e,onTabClick:t,children:n,tabsClassName:o,subHeader:l})=>{const u=()=>r.default.Children.toArray(n).filter(Boolean),[c,d]=(0,r.useState)((()=>{return Math.max((t=e,u().findIndex((e=>(null==e?void 0:e.props.tabKey)===t))),0);var t}));return r.default.createElement(i.default,{className:"tabs"},r.default.createElement(i.default,{as:"ul",display:s.DISPLAY.FLEX,justifyContent:s.JustifyContent.flexStart,backgroundColor:s.BackgroundColor.backgroundDefault,className:(0,a.default)("tabs__list",o),gap:1},(()=>{const e=r.default.Children.count(u());return r.default.Children.map(u(),((n,o)=>{const a=null==n?void 0:n.props.tabKey;return n&&r.default.cloneElement(n,{onClick:e=>((e,n)=>{e!==c&&(d(e),null==t||t(n))})(e,a),tabIndex:o,isActive:e>1&&o===c})}))})()),l,r.default.createElement(i.default,{className:"tabs__content"},(()=>{const e=u();if(Array.isArray(e)&&!e[c]||!Array.isArray(e)&&0!==c)throw new Error(`Tab at index '${c}' does not exist`);return e[c]?e[c].props.children:e.props.children})()))};var d=c;n.default=d,c.propTypes={defaultActiveTabKey:o.default.string,onTabClick:o.default.func,children:o.default.node.isRequired,tabsClassName:o.default.string,subHeader:o.default.node}}}},{package:"$root$",file:"ui/components/ui/tabs/tabs.component.js"}],[4025,{"./text-field.component":4026},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./text-field.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/text-field/index.js"}],[4026,{"@material-ui/core/TextField":805,"@material-ui/core/styles":878,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=s(e("react")),o=s(e("prop-types")),a=e("@material-ui/core/styles"),i=s(e("@material-ui/core/TextField"));function s(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const u={transform:"none",transition:"none",position:"initial",color:"var(--color-text-default)"},c={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:{"&$formLabelFocused":{color:"var(--color-text-alternative)"},"&$materialError":{color:"var(--color-text-alternative)"}},formLabelFocused:{},inputFocused:{},inputRoot:{"label + &":{marginTop:"9px"},backgroundColor:"var(--color-background-default)",border:"1px solid var(--color-border-default)",color:"var(--color-text-default)",height:"48px",borderRadius:"6px",padding:"0 16px",display:"flex",alignItems:"center","&$inputFocused":{border:"1px solid var(--color-primary-default)"}},largeInputLabel:{...u,fontSize:"1rem"},inputLabel:{...u,fontSize:".75rem"},inputMultiline:{lineHeight:"initial !important"}},d={material:({dir:e,classes:{materialLabel:t,materialFocused:n,materialError:r,materialUnderline:o},startAdornment:a,endAdornment:i,min:s,max:l,autoComplete:u})=>({InputLabelProps:{classes:{root:t,focused:n,error:r}},InputProps:{startAdornment:a,endAdornment:i,classes:{underline:o},inputProps:{dir:e,min:s,max:l,autoComplete:u}}}),bordered:({dir:e,classes:{formLabel:t,formLabelFocused:n,materialError:r,largeInputLabel:o,inputLabel:a,inputRoot:i,input:s,inputFocused:l},largeLabel:u,startAdornment:c,endAdornment:d,min:f,max:p,autoComplete:m})=>({InputLabelProps:{shrink:!0,className:u?o:a,classes:{root:t,focused:n,error:r}},InputProps:{startAdornment:c,endAdornment:d,disableUnderline:!0,classes:{root:i,input:s,focused:l},inputProps:{dir:e,min:f,max:p,autoComplete:m}}}),"material-white-padded":({dir:e,classes:{materialWhitePaddedRoot:t,materialWhitePaddedFocused:n,materialWhitePaddedInput:r,materialWhitePaddedUnderline:o},startAdornment:a,endAdornment:i,min:s,max:l,autoComplete:u})=>({InputProps:{startAdornment:a,endAdornment:i,classes:{root:t,focused:n,input:r,underline:o},inputProps:{dir:e,min:s,max:l,autoComplete:u}}})},f=({"data-testid":e,error:t,classes:n,theme:o,startAdornment:a,endAdornment:s,largeLabel:u,dir:c,min:f,max:p,autoComplete:m,onPaste:h,...g})=>{const b=d[o]({classes:n,startAdornment:a,endAdornment:s,largeLabel:u,dir:c,min:f,max:p,autoComplete:m});return(h||e)&&(b.InputProps||(b.InputProps={}),b.InputProps.inputProps||(b.InputProps.inputProps={}),b.InputProps.inputProps.onPaste=h,b.InputProps.inputProps["data-testid"]=e),r.default.createElement(i.default,l({error:Boolean(t),helperText:t},b,g))};f.defaultProps={error:null,dir:"auto",theme:"bordered"},f.propTypes={"data-testid":o.default.string,error:o.default.oneOfType([o.default.string,o.default.element]),classes:o.default.object,dir:o.default.string,theme:o.default.oneOf(["bordered","material","material-white-padded"]),startAdornment:o.default.element,endAdornment:o.default.element,largeLabel:o.default.bool,min:o.default.number,max:o.default.number,autoComplete:o.default.string,onPaste:o.default.func};var p=(0,a.withStyles)(c)(f);n.default=p}}},{package:"$root$",file:"ui/components/ui/text-field/text-field.component.js"}],[4027,{"../../../helpers/constants/design-system":4070,"../box":3900,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=l(e("react")),o=l(e("prop-types")),a=l(e("classnames")),i=e("../../../helpers/constants/design-system"),s=l(e("../box"));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}const c=({className:e,value:t,onChange:n,resize:o=i.RESIZE.BOTH,scrollable:l=!1,height:c,boxProps:d,...f})=>{const p=(0,a.default)("textarea",e,`textarea--resize-${o}`,{"textarea--scrollable":l,"textarea--not-scrollable":!l});return r.default.createElement(s.default,u({backgroundColor:i.BackgroundColor.backgroundDefault,borderColor:i.BorderColor.borderDefault,borderRadius:i.Size.SM,borderStyle:i.BorderStyle.solid,padding:4,width:i.BLOCK_SIZES.FULL},d),(e=>r.default.createElement("textarea",u({required:!0,style:{height:c},className:(0,a.default)(e,p),value:t,onChange:n},f))))};c.propTypes={height:o.default.oneOfType([o.default.string,o.default.number]),className:o.default.string,value:o.default.string,onChange:o.default.func,resize:o.default.oneOf(Object.values(i.RESIZE)),scrollable:o.default.bool,boxProps:o.default.shape({...s.default.propTypes})};var d=c;n.default=d}}},{package:"$root$",file:"ui/components/ui/textarea/textarea.js"}],[4028,{"./toggle-button.component":4029},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=((r=e("./toggle-button.component"))&&r.__esModule?r:{default:r}).default;n.default=o}}},{package:"$root$",file:"ui/components/ui/toggle-button/index.js"}],[4029,{classnames:1980,"prop-types":3032,react:3177,"react-toggle-button":3162},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=s(e("react")),o=s(e("prop-types")),a=s(e("react-toggle-button")),i=s(e("classnames"));function s(e){return e&&e.__esModule?e:{default:e}}const l={width:"40px",height:"24px",padding:"0px",borderRadius:"26px",border:"2px solid var(--color-primary-default)",display:"flex",alignItems:"center",justifyContent:"center"},u={...l,border:"2px solid var(--color-border-default)"},c={width:"18px",height:"18px",display:"flex",boxShadow:"none",alignSelf:"center",borderRadius:"50%",position:"relative"},d={activeThumb:{base:"#037DD6"},inactiveThumb:{base:"#6A737D"},active:{base:"#F2F4F6",hover:"#F2F4F6"},inactive:{base:"#F2F4F6",hover:"#F2F4F6"}},f=e=>{const{value:t,onToggle:n,offLabel:o,onLabel:s,disabled:f,className:p}=e,m=t?"on":"off";return r.default.createElement("label",{tabIndex:"0",onKeyDown:e=>{"Enter"===e.key&&n(t)},className:(0,i.default)("toggle-button",`toggle-button--${m}`,{"toggle-button--disabled":f},p)},r.default.createElement(a.default,{value:t,onToggle:f?undefined:n,activeLabel:"",inactiveLabel:"",trackStyle:t?l:u,thumbStyle:c,thumbAnimateRange:[3,18],colors:d}),r.default.createElement("div",{className:"toggle-button__status"},r.default.createElement("span",{className:"toggle-button__label-off"},o),r.default.createElement("span",{className:"toggle-button__label-on"},s)))};f.propTypes={value:o.default.bool,onToggle:o.default.func,offLabel:o.default.string,onLabel:o.default.string,disabled:o.default.bool,className:o.default.string};var p=f;n.default=p}}},{package:"$root$",file:"ui/components/ui/toggle-button/toggle-button.component.js"}],[4030,{"./token-balance":4031},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./token-balance"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/token-balance/index.js"}],[4031,{"../../../hooks/useTokenTracker":4145,"../currency-display":3920,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r=s(e("react")),o=s(e("prop-types")),a=s(e("../currency-display")),i=e("../../../hooks/useTokenTracker");function s(e){return e&&e.__esModule?e:{default:e}}function l({className:e,token:t}){const{tokensWithBalances:n}=(0,i.useTokenTracker)([t]),{string:o,symbol:s}=n[0]||{};return r.default.createElement(a.default,{className:e,displayValue:o||"",suffix:s||""})}l.propTypes={className:o.default.string,token:o.default.shape({address:o.default.string.isRequired,decimals:o.default.number,symbol:o.default.string}).isRequired},l.defaultProps={className:undefined}}}},{package:"$root$",file:"ui/components/ui/token-balance/token-balance.js"}],[4032,{"./token-input.container":4034},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./token-input.container"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/token-input/index.js"}],[4033,{"../../../../app/scripts/lib/util":82,"../../../../shared/constants/common":3403,"../../../../shared/modules/Numeric":3427,"../../../../shared/modules/conversion.utils":3431,"../../../../shared/modules/string-utils":3442,"../currency-display":3920,"../unit-input":4041,"bignumber.js":1853,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=p(e("prop-types")),a=p(e("bignumber.js")),i=p(e("../unit-input")),s=p(e("../currency-display")),l=e("../../../../shared/modules/conversion.utils"),u=e("../../../../app/scripts/lib/util"),c=e("../../../../shared/modules/string-utils"),d=e("../../../../shared/modules/Numeric"),f=e("../../../../shared/constants/common");function p(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class b extends r.PureComponent{constructor(e){super(e),g(this,"handleChange",((e,t=!1)=>{const{token:{decimals:n}={},onChange:r}=this.props;let o=e;n&&e&&t&&(o=new a.default(e,10).toFixed(n));const i=new d.Numeric(o||0,10).times(Math.pow(10,Number(n||0)),10).toBase(16).toString();this.setState({hexValue:i,decimalValue:e}),r(i)})),g(this,"handleBlur",(e=>{this.handleChange(e,!0)}));const{value:t}=e,n=t?this.getValue(e):0;this.state={decimalValue:n,hexValue:t}}componentDidUpdate(e){const{value:t}=e,{value:n}=this.props,{hexValue:r}=this.state;if(t!==n&&n!==r){const e=this.getValue(this.props);this.setState({hexValue:n,decimalValue:e})}}getValue(e){const{value:t,token:{decimals:n,symbol:r}={}}=e,o=Math.pow(10,Number(n||0)),a=new d.Numeric((0,u.addHexPrefix)(t),16).toBase(10).applyConversionRate(r?o:1,!0).toString();return Number(a)?a:""}renderConversionComponent(){const{tokenExchangeRates:e,showFiat:t,currentCurrency:n,hideConversion:o,token:a,tokens:i}=this.props,{decimalValue:u}=this.state,d=i.find((({address:e})=>(0,c.isEqualCaseInsensitive)(e,a.address))),p=(null==e?void 0:e[null==d?void 0:d.address])??0;let m,h;if(o)return r.default.createElement("div",{className:"currency-input__conversion-component"},this.context.t("noConversionRateAvailable"));t?(m=n,h=2):(m=f.EtherDenomination.ETH,h=6);const g=u*p||0,b=(0,l.getWeiHexFromDecimalValue)({value:g,fromCurrency:f.EtherDenomination.ETH,fromDenomination:f.EtherDenomination.ETH});return p?r.default.createElement(s.default,{className:"currency-input__conversion-component",currency:m,value:b,numberOfDecimals:h}):r.default.createElement("div",{className:"currency-input__conversion-component"},this.context.t("noConversionRateAvailable"))}render(){const{token:e,...t}=this.props,{decimalValue:n}=this.state;return r.default.createElement(i.default,h({},t,{suffix:e.symbol,onChange:this.handleChange,onBlur:this.handleBlur,value:n}),this.renderConversionComponent())}}n.default=b,g(b,"contextTypes",{t:o.default.func}),g(b,"propTypes",{dataTestId:o.default.string,currentCurrency:o.default.string,onChange:o.default.func,value:o.default.string,showFiat:o.default.bool,hideConversion:o.default.bool,token:o.default.shape({address:o.default.string.isRequired,decimals:o.default.number,symbol:o.default.string}).isRequired,tokenExchangeRates:o.default.object,tokens:o.default.array.isRequired})}}},{package:"$root$",file:"ui/components/ui/token-input/token-input.component.js"}],[4034,{"../../../selectors":4436,"./token-input.component":4033,"prop-types":3032,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("react-redux"),o=s(e("prop-types")),a=e("../../../selectors"),i=s(e("./token-input.component"));function s(e){return e&&e.__esModule?e:{default:e}}const l=(0,r.connect)((e=>{const{metamask:{currentCurrency:t,tokens:n}}=e;return{currentCurrency:t,tokenExchangeRates:(0,a.getTokenExchangeRates)(e),hideConversion:!(0,a.getShouldShowFiat)(e),tokens:n}}))(i.default);l.propTypes={token:o.default.shape({address:o.default.string.isRequired,decimals:o.default.number,symbol:o.default.string}).isRequired};var u=l;n.default=u}}},{package:"$root$",file:"ui/components/ui/token-input/token-input.container.js"}],[4035,{"./tooltip":4036},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./tooltip"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/tooltip/index.js"}],[4036,{"prop-types":3032,react:3177,"react-tippy":3161},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e("prop-types"))&&r.__esModule?r:{default:r},a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),i=e("react-tippy");function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends a.PureComponent{render(){const{arrow:e,children:t,containerClassName:n,disabled:r,position:o,html:s,interactive:l,size:u,title:c,trigger:d,onHidden:f,offset:p,open:m,wrapperClassName:h,style:g,theme:b,tabIndex:y,tag:v}=this.props;return c||s?a.default.createElement(v,{className:h},a.default.createElement(i.Tooltip,{arrow:e,className:n,disabled:r,hideOnClick:!1,html:s,interactive:l,onHidden:f,position:o,size:u,offset:p,style:g,title:r?"":c,trigger:d,open:m,theme:`tippy-tooltip--mm-custom ${b}`,tabIndex:y||0,tag:v},t)):a.default.createElement("div",{className:h},t)}}n.default=u,l(u,"defaultProps",{arrow:!0,children:null,containerClassName:"",html:null,interactive:undefined,onHidden:null,position:"left",offset:0,open:undefined,size:"small",title:null,trigger:"mouseenter focus",wrapperClassName:undefined,theme:"",tag:"div"}),l(u,"propTypes",{arrow:o.default.bool,children:o.default.node,containerClassName:o.default.string,disabled:o.default.bool,html:o.default.node,interactive:o.default.bool,offset:o.default.number,onHidden:o.default.func,open:o.default.bool,position:o.default.oneOf(["top","right","bottom","left"]),size:o.default.oneOf(["small","regular","big"]),title:o.default.string,trigger:o.default.any,wrapperClassName:o.default.string,style:o.default.object,theme:o.default.string,tabIndex:o.default.number,tag:o.default.string})}}},{package:"$root$",file:"ui/components/ui/tooltip/tooltip.js"}],[4037,{"./truncated-definition-list":4038},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./truncated-definition-list"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/truncated-definition-list/index.js"}],[4038,{"../../../helpers/constants/design-system":4070,"../../../hooks/useI18nContext":4129,"../box":3900,"../button":3904,"../definition-list/definition-list":3921,"../popover":3999,lodash:2932,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=m;var r=e("lodash"),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=f(e("prop-types")),i=e("../../../helpers/constants/design-system"),s=f(e("../box")),l=f(e("../button")),u=f(e("../definition-list/definition-list")),c=f(e("../popover")),d=e("../../../hooks/useI18nContext");function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function m({dictionary:e,tooltips:t,prefaceKeys:n,title:a}){const[f,p]=(0,o.useState)(!1),m=(0,d.useI18nContext)();return o.default.createElement(o.default.Fragment,null,o.default.createElement(s.default,{margin:6,padding:4,paddingBottom:3,borderRadius:i.Size.LG,borderColor:i.BorderColor.borderMuted},o.default.createElement(u.default,{dictionary:(0,r.pick)(e,n),tooltips:t}),o.default.createElement(l.default,{className:"truncated-definition-list__view-more",type:"link",onClick:()=>p(!0)},m("viewAllDetails"))),f&&o.default.createElement(c.default,{title:a,open:f,onClose:()=>p(!1),footer:o.default.createElement(o.default.Fragment,null,o.default.createElement("div",null),o.default.createElement(l.default,{type:"primary",style:{width:"50%"},onClick:()=>p(!1)},"Close"))},o.default.createElement(s.default,{padding:6,paddingTop:0},o.default.createElement(u.default,{gap:i.Size.MD,tooltips:t,dictionary:e}))))}m.propTypes={dictionary:u.default.propTypes.dictionary,tooltips:u.default.propTypes.dictionary,title:a.default.string,prefaceKeys:a.default.arrayOf(a.default.string)}}}},{package:"$root$",file:"ui/components/ui/truncated-definition-list/truncated-definition-list.js"}],[4039,{"./typography":4040},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./typography"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/typography/index.js"}],[4040,{"../../../helpers/constants/design-system":4070,"../box":3900,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ValidTags=n.ValidColors=void 0,n.default=b;var r=u(e("react")),o=u(e("classnames")),a=u(e("prop-types")),i=e("../../../helpers/constants/design-system"),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("../box"));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}const{H6:d,H7:f,H8:p,H9:m}=i.TypographyVariant,h=[i.Color.textDefault,i.Color.textAlternative,i.Color.textMuted,i.Color.overlayInverse,i.Color.primaryDefault,i.Color.primaryInverse,i.Color.errorDefault,i.Color.errorInverse,i.Color.successDefault,i.Color.successInverse,i.Color.sepoliaInverse,i.Color.warningDefault,i.Color.warningInverse,i.Color.infoDefault,i.Color.infoInverse,i.Color.goerli,i.Color.sepolia,i.Color.goerliInverse,i.Color.sepoliaInverse,i.Color.lineaTestnet,i.Color.lineaTestnetInverse];n.ValidColors=h;const g=["dd","div","dt","em","h1","h2","h3","h4","h5","h6","li","p","span","strong","ul","label"];function b({variant:e=i.TypographyVariant.paragraph,color:t=i.Color.textDefault,fontWeight:n="normal",fontStyle:a="normal",align:l,overflowWrap:u,title:h,as:g,margin:b,marginTop:y=1,marginRight:v,marginBottom:T=1,marginLeft:_,boxProps:C={},className:E,children:O}){let w,k=g??e;"strong"===k&&(w=i.FONT_WEIGHT.BOLD);const N=(0,o.default)("typography",E,`typography--${e}`,`typography--weight-${w||n}`,`typography--style-${a}`,{[`typography--align-${l}`]:Boolean(l),[`typography--color-${t}`]:Boolean(t),[`typography--overflowwrap-${u}`]:Boolean(u)});return k===i.TypographyVariant.paragraph?k="p":[f,p,m].includes(k)&&(k=d),r.default.createElement(s.default,c({margin:b,marginTop:y,marginRight:v,marginBottom:T,marginLeft:_},C),(e=>r.default.createElement(k,{className:(0,o.default)(e,N),title:h},O)))}n.ValidTags=g,b.propTypes={variant:a.default.oneOf(Object.values(i.TypographyVariant)),color:a.default.oneOf(h),fontWeight:a.default.oneOf(Object.values(i.FONT_WEIGHT)),fontStyle:a.default.oneOf(Object.values(i.FONT_STYLE)),align:a.default.oneOf(Object.values(i.TEXT_ALIGN)),overflowWrap:a.default.oneOf(Object.values(i.OVERFLOW_WRAP)),as:a.default.oneOf(g),margin:s.MultipleSizesAndAuto,marginTop:s.MultipleSizesAndAuto,marginBottom:s.MultipleSizesAndAuto,marginRight:s.MultipleSizesAndAuto,marginLeft:s.MultipleSizesAndAuto,boxProps:a.default.shape({...s.default.propTypes}),className:a.default.string,title:a.default.string,children:a.default.node.isRequired}}}},{package:"$root$",file:"ui/components/ui/typography/typography.js"}],[4041,{"./unit-input.component":4042},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./unit-input.component"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/unit-input/index.js"}],[4042,{classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=i(e("prop-types")),a=i(e("classnames"));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends r.PureComponent{constructor(...e){super(...e),l(this,"state",{value:this.props.value}),l(this,"handleFocus",(()=>{this.unitInput.focus()})),l(this,"handleInputFocus",(({target:{value:e}})=>{"0"===e&&this.setState({value:""})})),l(this,"handleInputBlur",(({target:{value:e}})=>{""===e&&this.setState({value:"0"}),this.props.onBlur&&this.props.onBlur(e)})),l(this,"handleChange",(e=>{const{value:t}=e.target;let n=t;t.length&&t.length>1&&(n=t.replace(/^0*(?=\d)/u,"")),this.setState({value:n}),this.props.onChange(n)}))}componentDidUpdate(e){const{value:t}=e,{value:n}=this.props,{value:r}=this.state;t!==n&&n!==r&&this.setState({value:n})}getInputWidth(e){const t=String(e);return`${(t.length||1)+(t.match(/\./u)?-.5:0)+.5}ch`}render(){const{error:e,placeholder:t,suffix:n,actionComponent:o,children:i,dataTestId:s}=this.props,{value:l}=this.state;return r.default.createElement("div",{className:(0,a.default)("unit-input",{"unit-input--error":e}),onClick:this.handleFocus},r.default.createElement("div",{className:"unit-input__inputs"},r.default.createElement("div",{className:"unit-input__input-container"},r.default.createElement("input",{"data-testid":s,type:"number",dir:"ltr",className:(0,a.default)("unit-input__input"),value:l,placeholder:t,onChange:this.handleChange,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,style:{width:this.getInputWidth(l)},ref:e=>{this.unitInput=e},autoFocus:!0}),n?r.default.createElement("div",{className:"unit-input__suffix"},n):null),i),o)}}n.default=u,l(u,"propTypes",{dataTestId:o.default.string,children:o.default.node,actionComponent:o.default.node,error:o.default.bool,onChange:o.default.func,onBlur:o.default.func,placeholder:o.default.string,suffix:o.default.string,value:o.default.oneOfType([o.default.string,o.default.number])}),l(u,"defaultProps",{value:"",placeholder:"0"})}}},{package:"$root$",file:"ui/components/ui/unit-input/unit-input.component.js"}],[4043,{"../../../contexts/i18n":4047,"../../../selectors":4436,"../button":3904,"../identicon":3962,"../popover":3999,"../text-field":4025,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=m;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),o=e("react-redux"),a=f(e("prop-types")),i=f(e("../popover")),s=f(e("../button")),l=f(e("../text-field")),u=e("../../../contexts/i18n"),c=f(e("../identicon")),d=e("../../../selectors");function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function m({address:e,nickname:t="",memo:n="",onAdd:a,onClose:f}){var p;const m=(0,r.useContext)(u.I18nContext),[h,g]=(0,r.useState)(null===t?"":t),[b,y]=(0,r.useState)(null===n?"":n),v=(0,r.useCallback)((()=>{f()}),[f]),T=(0,o.useSelector)(d.getTokenList);return r.default.createElement(i.default,{title:m(t?"editAddressNickname":"addANickname"),onClose:v,className:"update-nickname__wrapper",footer:r.default.createElement(r.default.Fragment,null,r.default.createElement(s.default,{className:"update-nickname__cancel",type:"secondary",onClick:()=>{f()}},m("cancel")),r.default.createElement(s.default,{className:"update-nickname__save",type:"primary",onClick:()=>{a(e,h,b),f()},disabled:!h},m("save")))},r.default.createElement("div",{className:"update-nickname__content"},r.default.createElement(c.default,{className:"update-nickname__content__indenticon",address:e,diameter:36,image:null===(p=T[e.toLowerCase()])||void 0===p?void 0:p.iconUrl}),r.default.createElement("label",{className:"update-nickname__content__label--capitalized"},m("address")),r.default.createElement("div",{className:"update-nickname__content__address"},e),r.default.createElement("div",{className:"update-nickname__content__nickname-label"},m("nickname")),r.default.createElement(l.default,{className:"update-nickname__content__text-field",value:h,onChange:e=>{g(e.target.value)},placeholder:m("addANickname"),fullWidth:!0}),r.default.createElement("div",{className:"update-nickname__content__label--capitalized"},m("memo")),r.default.createElement(l.default,{type:"text",id:"memo",value:b,onChange:e=>{y(e.target.value)},placeholder:m("addMemo"),fullWidth:!0,margin:"dense",multiline:!0,rows:3,classes:{inputMultiline:"update-nickname__content__text-area",inputRoot:"update-nickname__content__text-area-wrapper"}})))}m.propTypes={nickname:a.default.string,address:a.default.string,memo:a.default.string,onAdd:a.default.func,onClose:a.default.func}}}},{package:"$root$",file:"ui/components/ui/update-nickname-popover/update-nickname-popover.js"}],[4044,{"./url-icon":4045},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e("./url-icon"))&&r.__esModule?r:{default:r}}}},{package:"$root$",file:"ui/components/ui/url-icon/index.js"}],[4045,{"../icon-with-fallback":3944,classnames:1980,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;var r=s(e("react")),o=s(e("prop-types")),a=s(e("classnames")),i=s(e("../icon-with-fallback"));function s(e){return e&&e.__esModule?e:{default:e}}function l({url:e,className:t,name:n,fallbackClassName:o}){return r.default.createElement(i.default,{className:(0,a.default)("url-icon",t),icon:e,name:n,fallbackClassName:(0,a.default)("url-icon__fallback",o)})}l.propTypes={url:o.default.string,className:o.default.string,name:o.default.string,fallbackClassName:o.default.string}}}},{package:"$root$",file:"ui/components/ui/url-icon/url-icon.js"}],[4046,{"../hooks/gasFeeInput/useGasFeeInputs":4114,"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.GasFeeContextProvider=n.GasFeeContext=void 0,n.useGasFeeContext=function(){return(0,o.useContext)(l)};var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r},i=e("../hooks/gasFeeInput/useGasFeeInputs");function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}const l=(0,o.createContext)({});n.GasFeeContext=l;const u=({children:e,defaultEstimateToUse:t,transaction:n,minimumGasLimit:r,editGasMode:a})=>{const s=(0,i.useGasFeeInputs)(t,n,r,a);return o.default.createElement(l.Provider,{value:s},e)};n.GasFeeContextProvider=u,u.propTypes={children:a.default.node.isRequired,defaultEstimateToUse:a.default.string,transaction:a.default.object,minimumGasLimit:a.default.string,editGasMode:a.default.string}}}},{package:"$root$",file:"ui/contexts/gasFee.js"}],[4047,{"../ducks/locale/locale":4061,"../helpers/utils/i18n-helper":4095,"prop-types":3032,react:3177,"react-redux":3130},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.LegacyI18nProvider=n.I18nProvider=n.I18nContext=void 0;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r},i=e("react-redux"),s=e("../helpers/utils/i18n-helper"),l=e("../ducks/locale/locale");function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=(0,o.createContext)((e=>`[${e}]`));n.I18nContext=d;const f=e=>{const t=(0,i.useSelector)(l.getCurrentLocale),n=(0,i.useSelector)(l.getCurrentLocaleMessages),r=(0,i.useSelector)(l.getEnLocaleMessages),a=(0,o.useMemo)((()=>(e,...o)=>(0,s.getMessage)(t,n,e,...o)||(0,s.getMessage)(t,r,e,...o)),[t,n,r]);return o.default.createElement(d.Provider,{value:a},e.children)};n.I18nProvider=f,f.propTypes={children:a.default.node},f.defaultProps={children:undefined};class p extends o.Component{getChildContext(){return{t:this.context}}render(){return this.props.children}}n.LegacyI18nProvider=p,c(p,"propTypes",{children:a.default.node}),c(p,"defaultProps",{children:undefined}),c(p,"contextType",d),c(p,"childContextTypes",{t:a.default.func})}}},{package:"$root$",file:"ui/contexts/i18n.js"}],[4048,{"../../app/scripts/lib/util":82,"../../shared/constants/metametrics":3408,"../helpers/constants/routes":4074,"../hooks/useSegmentContext":4136,"../store/actions":4443,"@sentry/browser":1403,lodash:2932,"prop-types":3032,react:3177,"react-router-dom":3150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.MetaMetricsContext=n.LegacyMetaMetricsProvider=void 0,n.MetaMetricsProvider=y;var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r},i=e("react-router-dom"),s=e("@sentry/browser"),l=e("lodash"),u=e("../../app/scripts/lib/util"),c=e("../helpers/constants/routes"),d=e("../../shared/constants/metametrics"),f=e("../hooks/useSegmentContext"),p=e("../store/actions");function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=(0,o.createContext)((()=>{(0,s.captureException)(Error("MetaMetrics context function was called from a react node that is not a descendant of a MetaMetrics context provider"))}));n.MetaMetricsContext=g;const b=Object.keys(c.PATH_NAME_MAP);function y({children:e}){const t=(0,i.useLocation)(),n=(0,f.useSegmentContext)(),r=(0,o.useCallback)(((e,t)=>{((e,t)=>{const r=null==t?void 0:t.contextPropsIntoEventProperties;var o;r&&0!==r.length&&(e.properties||(e.properties={}),r.includes(d.MetaMetricsContextProp.PageTitle)&&(e.properties[d.MetaMetricsContextProp.PageTitle]=null===(o=n.page)||void 0===o?void 0:o.title))})(e,t),(0,p.trackMetaMetricsEvent)({...e,environmentType:(0,u.getEnvironmentType)(),...n},t)}),[n]),a=(0,o.useRef)();return(0,o.useEffect)((()=>{const e=(0,u.getEnvironmentType)(),r=(0,i.matchPath)(t.pathname,{path:b,exact:!0,strict:!0});if(r){if(a.current!==r.path&&("notification"!==e||"/"!==r.path||a.current!==undefined)){const{path:o,params:a}=r,i=c.PATH_NAME_MAP[o];(0,p.trackMetaMetricsPage)({name:i,params:(0,l.omit)(a,["account","address"]),environmentType:e,page:n.page,referrer:n.referrer},{isOptInPath:t.pathname.startsWith("/initialize")})}}else(0,s.captureMessage)("Segment page tracking found unmatched route",{extra:{previousMatch:a,currentPath:t.pathname}});a.current=null==r?void 0:r.path}),[t,n]),o.default.createElement(g.Provider,{value:r},e)}y.propTypes={children:a.default.node};class v extends o.Component{getChildContext(){return{trackEvent:this.context}}render(){return this.props.children}}n.LegacyMetaMetricsProvider=v,h(v,"propTypes",{children:a.default.node}),h(v,"defaultProps",{children:undefined}),h(v,"contextType",g),h(v,"childContextTypes",{trackEvent:a.default.func})}}},{package:"$root$",file:"ui/contexts/metametrics.js"}],[4049,{"prop-types":3032,react:3177},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TransactionModalContextProvider=n.TransactionModalContext=void 0,n.useTransactionModalContext=function(){return(0,o.useContext)(s)};var r,o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("react")),a=(r=e("prop-types"))&&r.__esModule?r:{default:r};function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}const s=(0,o.createContext)({});n.TransactionModalContext=s;const l=({children:e})=>{const[t,n]=(0,o.useState)([]);return o.default.createElement(s.Provider,{value:{closeModal:e=>{if(t<0)return;const r=[...t];e.forEach((e=>{const n=t.indexOf(e);r.splice(n,1)})),n(r)},closeAllModals:()=>{n([])},currentModal:t[t.length-1],openModal:e=>{if(t.includes(e))return;const r=[...t];r.push(e),n(r)},openModalCount:t.length}},e)};n.TransactionModalContextProvider=l,l.propTypes={children:a.default.node.isRequired}}}},{package:"$root$",file:"ui/contexts/transaction-modal.js"}],[4050,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ALERT_STATE=void 0;n.ALERT_STATE={CLOSED:"CLOSED",ERROR:"ERROR",LOADING:"LOADING",OPEN:"OPEN"}}}},{package:"$root$",file:"ui/ducks/alerts/enums.js"}],[4051,{"./enums":4050,"./invalid-custom-network":4052,"./unconnected-account":4053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ALERT_STATE",{enumerable:!0,get:function(){return a.ALERT_STATE}}),Object.defineProperty(n,"invalidCustomNetwork",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"unconnectedAccount",{enumerable:!0,get:function(){return r.default}});var r=i(e("./unconnected-account")),o=i(e("./invalid-custom-network")),a=e("./enums");function i(e){return e&&e.__esModule?e:{default:e}}}}},{package:"$root$",file:"ui/ducks/alerts/index.js"}],[4052,{"../../../shared/constants/alerts":3400,"./enums":4050,"@reduxjs/toolkit":1391},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.openAlert=n.getNetworkName=n.getAlertState=n.dismissAlert=n.default=n.alertIsOpen=void 0;var r=e("@reduxjs/toolkit"),o=e("../../../shared/constants/alerts"),a=e("./enums");const i=o.AlertTypes.invalidCustomNetwork,s={state:a.ALERT_STATE.CLOSED,networkName:""},l=(0,r.createSlice)({name:i,initialState:s,reducers:{openAlert:(e,t)=>{e.state=a.ALERT_STATE.OPEN,e.networkName=t.payload},dismissAlert:e=>{e.state=a.ALERT_STATE.CLOSED,e.networkName=""}}}),{actions:u,reducer:c}=l;var d=c;n.default=d;n.getAlertState=e=>e[i].state;n.getNetworkName=e=>e[i].networkName;n.alertIsOpen=e=>e[i].state!==a.ALERT_STATE.CLOSED;const{openAlert:f,dismissAlert:p}=u;n.dismissAlert=p,n.openAlert=f}}},{package:"$root$",file:"ui/ducks/alerts/invalid-custom-network.js"}],[4053,{"../../../shared/constants/alerts":3400,"../../selectors":4436,"../../store/actionConstants":4442,"../../store/actions":4443,"./enums":4050,"@reduxjs/toolkit":1391,"@sentry/browser":1403},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.switchedToUnconnectedAccount=n.switchToAccount=n.getAlertState=n.dismissAndDisableAlert=n.dismissAlert=n.default=n.connectAccount=n.alertIsOpen=void 0;var r=e("@reduxjs/toolkit"),o=e("@sentry/browser"),a=e("../../../shared/constants/alerts"),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("../../store/actionConstants")),s=e("../../store/actions"),l=e("../../selectors"),u=e("./enums");function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}const d=a.AlertTypes.unconnectedAccount,f={state:u.ALERT_STATE.CLOSED},p=(0,r.createSlice)({name:d,initialState:f,reducers:{connectAccountFailed:e=>{e.state=u.ALERT_STATE.ERROR},connectAccountRequested:e=>{e.state=u.ALERT_STATE.LOADING},connectAccountSucceeded:e=>{e.state=u.ALERT_STATE.CLOSED},disableAlertFailed:e=>{e.state=u.ALERT_STATE.ERROR},disableAlertRequested:e=>{e.state=u.ALERT_STATE.LOADING},disableAlertSucceeded:e=>{e.state=u.ALERT_STATE.CLOSED},dismissAlert:e=>{e.state=u.ALERT_STATE.CLOSED},switchAccountFailed:e=>{e.state=u.ALERT_STATE.ERROR},switchAccountRequested:e=>{e.state=u.ALERT_STATE.LOADING},switchAccountSucceeded:e=>{e.state=u.ALERT_STATE.CLOSED},switchedToUnconnectedAccount:e=>{e.state=u.ALERT_STATE.OPEN}},extraReducers:{[i.SELECTED_ADDRESS_CHANGED]:e=>{e.state===u.ALERT_STATE.OPEN&&(e.state=u.ALERT_STATE.CLOSED)}}}),{actions:m,reducer:h}=p;var g=h;n.default=g;n.getAlertState=e=>e[d].state;n.alertIsOpen=e=>e[d].state!==u.ALERT_STATE.CLOSED;const{connectAccountFailed:b,connectAccountRequested:y,connectAccountSucceeded:v,disableAlertFailed:T,disableAlertRequested:_,disableAlertSucceeded:C,dismissAlert:E,switchAccountFailed:O,switchAccountRequested:w,switchAccountSucceeded:k,switchedToUnconnectedAccount:N}=m;n.switchedToUnconnectedAccount=N,n.dismissAlert=E;n.dismissAndDisableAlert=()=>async e=>{try{await e(_()),await(0,s.setAlertEnabledness)(d,!1),await e(C())}catch(t){console.error(t),(0,o.captureException)(t),await e(T())}};n.switchToAccount=e=>async t=>{try{await t(w()),await t((0,s.setSelectedAddress)(e)),await t(k())}catch(e){console.error(e),(0,o.captureException)(e),await t(O())}};n.connectAccount=()=>async(e,t)=>{const n=t(),r=(0,l.getSelectedAddress)(n),a=(0,l.getOriginOfCurrentTab)(n);try{await e(y()),await e((0,s.addPermittedAccount)(a,r)),await e(v())}catch(t){console.error(t),(0,o.captureException)(t),await e(b())}}}}},{package:"$root$",file:"ui/ducks/alerts/unconnected-account.js"}],[4054,{"../../../shared/constants/hardware-wallets":3405,"../../store/actionConstants":4442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){const n={...i,...e};switch(t.type){case o.NETWORK_DROPDOWN_OPEN:return{...n,networkDropdownOpen:!0};case o.NETWORK_DROPDOWN_CLOSE:return{...n,networkDropdownOpen:!1};case o.ALERT_OPEN:return{...n,alertOpen:!0,alertMessage:t.payload};case o.ALERT_CLOSE:return{...n,alertOpen:!1,alertMessage:null};case o.QR_CODE_DETECTED:return{...n,qrCodeData:t.value};case o.SET_SMART_TRANSACTIONS_ERROR:return{...n,smartTransactionsError:t.payload};case o.DISMISS_SMART_TRANSACTIONS_ERROR_MESSAGE:return{...n,smartTransactionsErrorMessageDismissed:!0};case o.MODAL_OPEN:{const{name:e,...r}=t.payload;return{...n,modal:{open:!0,modalState:{name:e,props:{...r}},previousModalState:{...n.modal.modalState}}}}case o.MODAL_CLOSE:return{...n,modal:Object.assign(n.modal,{open:!1},{modalState:{name:null,props:{}}},{previousModalState:n.modal.modalState})};case o.CLEAR_ACCOUNT_DETAILS:return{...n,accountDetail:{privateKey:""}};case o.SHOW_SEND_TOKEN_PAGE:case o.LOCK_METAMASK:return{...n,warning:null};case o.GO_HOME:return{...n,accountDetail:{privateKey:""},warning:null};case o.SHOW_ACCOUNTS_PAGE:return{...n,isLoading:!1,warning:null,scrollToBottom:!1};case o.SHOW_CONF_TX_PAGE:return{...n,txId:t.id,warning:null,isLoading:!1};case o.COMPLETED_TX:return{...n,warning:null,txId:null};case o.UNLOCK_FAILED:return{...n,warning:t.value||"Incorrect password. Try again."};case o.UNLOCK_SUCCEEDED:return{...n,warning:""};case o.SET_HARDWARE_WALLET_DEFAULT_HD_PATH:{const{device:e,path:r}=t.payload,o={...n.defaultHdPaths};return o[e]=r,{...n,defaultHdPaths:o}}case o.SHOW_LOADING:return{...n,isLoading:!0,loadingMessage:t.payload};case o.HIDE_LOADING:return{...n,isLoading:!1};case o.DISPLAY_WARNING:return{...n,warning:t.payload,isLoading:!1};case o.HIDE_WARNING:return{...n,warning:undefined};case o.SHOW_PRIVATE_KEY:return{...n,accountDetail:{privateKey:t.payload}};case o.SET_MOUSE_USER_STATE:return{...n,isMouseUser:t.payload};case o.SET_SELECTED_NETWORK_CONFIGURATION_ID:return{...n,selectedNetworkConfigurationId:t.payload};case o.SET_NEW_NETWORK_ADDED:{const{networkConfigurationId:e,nickname:r}=t.payload;return{...n,newNetworkAddedName:r,newNetworkAddedConfigurationId:e}}case o.SET_NEW_TOKENS_IMPORTED:return{...n,newTokensImported:t.payload};case o.SET_NEW_NFT_ADDED_MESSAGE:return{...n,newNftAddedMessage:t.payload};case o.SET_REMOVE_NFT_MESSAGE:return{...n,removeNftMessage:t.payload};case o.SET_REQUEST_ACCOUNT_TABS:return{...n,requestAccountTabs:t.value};case o.SET_OPEN_METAMASK_TAB_IDS:return{...n,openMetaMaskTabs:t.payload};case o.HIDE_WHATS_NEW_POPUP:return{...n,showWhatsNewPopup:!1};case o.CAPTURE_SINGLE_EXCEPTION:return{...n,singleExceptions:{...n.singleExceptions,[t.value]:null}};case o.TOGGLE_GAS_LOADING_ANIMATION:return{...n,gasLoadingAnimationIsShowing:t.payload};case o.SET_WEBHID_CONNECTED_STATUS:return{...n,ledgerWebHidConnectedStatus:t.payload};case o.SET_LEDGER_TRANSPORT_STATUS:return{...n,ledgerTransportStatus:t.payload};case o.TOGGLE_CURRENCY_INPUT_SWITCH:return{...n,sendInputCurrencySwitched:!n.sendInputCurrencySwitched};case o.ONBOARDED_IN_THIS_UI_SESSION:return{...n,onboardedInThisUISession:t.payload};case o.SET_CUSTOM_TOKEN_AMOUNT:return{...n,customTokenAmount:t.payload};default:return n}},n.getGasLoadingAnimationIsShowing=function(e){return e.appState.gasLoadingAnimationIsShowing},n.getLedgerTransportStatus=function(e){return e.appState.ledgerTransportStatus},n.getLedgerWebHidConnectedStatus=function(e){return e.appState.ledgerWebHidConnectedStatus},n.getQrCodeData=function(e){return e.appState.qrCodeData},n.hideWhatsNewPopup=function(){return{type:o.HIDE_WHATS_NEW_POPUP}},n.setCustomTokenAmount=function(e){return{type:o.SET_CUSTOM_TOKEN_AMOUNT,payload:e}},n.setLedgerTransportStatus=function(e){return{type:o.SET_LEDGER_TRANSPORT_STATUS,payload:e}},n.setLedgerWebHidConnectedStatus=function(e){return{type:o.SET_WEBHID_CONNECTED_STATUS,payload:e}},n.setOnBoardedInThisUISession=function(e){return{type:o.ONBOARDED_IN_THIS_UI_SESSION,payload:e}},n.toggleCurrencySwitch=function(){return{type:o.TOGGLE_CURRENCY_INPUT_SWITCH}},n.toggleGasLoadingAnimation=function(e){return{type:o.TOGGLE_GAS_LOADING_ANIMATION,payload:e}};var r=e("../../../shared/constants/hardware-wallets"),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(e("../../store/actionConstants"));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}const i={shouldClose:!1,menuOpen:!1,modal:{open:!1,modalState:{name:null,props:{}},previousModalState:{name:null}},alertOpen:!1,alertMessage:null,qrCodeData:null,networkDropdownOpen:!1,accountDetail:{privateKey:""},isLoading:!1,loadingMessage:null,warning:null,buyView:{},isMouseUser:!1,defaultHdPaths:{trezor:"m/44'/60'/0'/0",ledger:"m/44'/60'/0'/0/0",lattice:"m/44'/60'/0'/0"},networksTabSelectedRpcUrl:"",requestAccountTabs:{},openMetaMaskTabs:{},currentWindowTab:{},showWhatsNewPopup:!0,singleExceptions:{testKey:null},gasLoadingAnimationIsShowing:!1,smartTransactionsError:null,smartTransactionsErrorMessageDismissed:!1,ledgerWebHidConnectedStatus:r.WebHIDConnectedStatuses.unknown,ledgerTransportStatus:r.HardwareTransportStates.none,newNftAddedMessage:"",removeNftMessage:"",newNetworkAddedName:"",newNetworkAddedConfigurationId:"",selectedNetworkConfigurationId:"",sendInputCurrencySwitched:!1,newTokensImported:"",onboardedInThisUISession:!1,customTokenAmount:"",scrollToBottom:!0,txId:null}}}},{package:"$root$",file:"ui/ducks/app/app.ts"}],[4055,{"../../../shared/modules/conversion.utils":3431,"../../../shared/modules/string-utils":3442,"../../../shared/modules/transaction.utils":3444,"../../helpers/utils/confirm-tx.util":4090,"../../selectors":4436,"../../selectors/custom-gas":4434,"../metamask/metamask":4062},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.clearConfirmTransaction=function(){return{type:m}},n.default=function(e=v,t={}){switch(t.type){case d:return{...e,txData:{...t.payload}};case f:return{...e,tokenData:{...t.payload}};case p:return{...e,tokenProps:{...t.payload}};case h:{const{fiatTransactionAmount:n,ethTransactionAmount:r,hexTransactionAmount:o}=t.payload;return{...e,fiatTransactionAmount:n||e.fiatTransactionAmount,ethTransactionAmount:r||e.ethTransactionAmount,hexTransactionAmount:o||e.hexTransactionAmount}}case g:{const{fiatTransactionFee:n,ethTransactionFee:r,hexTransactionFee:o}=t.payload;return{...e,fiatTransactionFee:n||e.fiatTransactionFee,ethTransactionFee:r||e.ethTransactionFee,hexTransactionFee:o||e.hexTransactionFee}}case b:{const{fiatTransactionTotal:n,ethTransactionTotal:r,hexTransactionTotal:o}=t.payload;return{...e,fiatTransactionTotal:n||e.fiatTransactionTotal,ethTransactionTotal:r||e.ethTransactionTotal,hexTransactionTotal:o||e.hexTransactionTotal}}case y:return{...e,nonce:t.payload};case m:return v;default:return e}},n.setTransactionToConfirm=function(e){return(t,n)=>{const a=n(),s=(0,r.unconfirmedTransactionsHashSelector)(a)[e];if(s)if(s.txParams){t(N(s));const{txParams:e}=s;if(e.data){const{to:n,data:r}=e,i=(0,u.parseStandardTokenTransactionData)(r),s=(0,o.getTokens)(a),c=null==s?void 0:s.find((({address:e})=>(0,l.isEqualCaseInsensitive)(n,e)));t(C({decimals:null==c?void 0:c.decimals,symbol:null==c?void 0:c.symbol})),t(_(i))}if(e.nonce){t(k((0,i.hexToDecimal)(e.nonce)))}}else t(T(s));else console.error(`Transaction with id ${e} not found`)}},n.updateNonce=k,n.updateTokenData=_,n.updateTokenProps=C,n.updateTransactionAmounts=E,n.updateTransactionFees=O,n.updateTransactionTotals=w,n.updateTxData=T,n.updateTxDataAndCalculate=N;var r=e("../../selectors"),o=e("../metamask/metamask"),a=e("../../helpers/utils/confirm-tx.util"),i=e("../../../shared/modules/conversion.utils"),s=e("../../selectors/custom-gas"),l=e("../../../shared/modules/string-utils"),u=e("../../../shared/modules/transaction.utils");const c=e=>`metamask/confirm-transaction/${e}`,d=c("UPDATE_TX_DATA"),f=c("UPDATE_TOKEN_DATA"),p=c("UPDATE_TOKEN_PROPS"),m=c("CLEAR_CONFIRM_TRANSACTION"),h=c("UPDATE_TRANSACTION_AMOUNTS"),g=c("UPDATE_TRANSACTION_FEES"),b=c("UPDATE_TRANSACTION_TOTALS"),y=c("UPDATE_NONCE"),v={txData:{},tokenData:{},tokenProps:{},fiatTransactionAmount:"",fiatTransactionFee:"",fiatTransactionTotal:"",ethTransactionAmount:"",ethTransactionFee:"",ethTransactionTotal:"",hexTransactionAmount:"",hexTransactionFee:"",hexTransactionTotal:"",nonce:""};function T(e){return{type:d,payload:e}}function _(e){return{type:f,payload:e}}function C(e){return{type:p,payload:e}}function E(e){return{type:h,payload:e}}function O(e){return{type:g,payload:e}}function w(e){return{type:b,payload:e}}function k(e){return{type:y,payload:e}}function N(e){return(t,n)=>{const l=n(),u=(0,r.currentCurrencySelector)(l),c=(0,r.conversionRateSelector)(l),d=(0,o.getNativeCurrency)(l);t(T(e));const{txParams:{value:f="0x0",gas:p="0x0"}={}}=e;let{txParams:{gasPrice:m}={}}=e;m||(m=(0,s.getAveragePriceEstimateInHexWEI)(l)||"0x0");const h=(0,i.getValueFromWeiHex)({value:f,fromCurrency:d,toCurrency:u,conversionRate:c,numberOfDecimals:2}),g=(0,i.getValueFromWeiHex)({value:f,fromCurrency:d,toCurrency:d,conversionRate:c,numberOfDecimals:6});t(E({fiatTransactionAmount:h,ethTransactionAmount:g,hexTransactionAmount:f}));const b=(0,a.getHexGasTotal)({gasLimit:p,gasPrice:m}),y=(0,a.getTransactionFee)({value:b,fromCurrency:d,toCurrency:u,numberOfDecimals:2,conversionRate:c}),v=(0,a.getTransactionFee)({value:b,fromCurrency:d,toCurrency:d,numberOfDecimals:6,conversionRate:c});t(O({fiatTransactionFee:y,ethTransactionFee:v,hexTransactionFee:b}));t(w({fiatTransactionTotal:(0,a.addFiat)(y,h),ethTransactionTotal:(0,a.addEth)(v,g),hexTransactionTotal:(0,i.sumHexes)(f,b)}))}}}}},{package:"$root$",file:"ui/ducks/confirm-transaction/confirm-transaction.duck.js"}],[4056,{"../../shared/constants/network":3409,"../../shared/modules/hexstring-utils":3435,"../helpers/utils/util":4108,"../pages/send/send.constants":4311,"../selectors":4436,"../store/actionConstants":4442,"@ethersproject/providers":459,"@reduxjs/toolkit":1391,"ethereum-ens-network-map":2206,"ethereumjs-util":2231,loglevel:2944,"unicode-confusables":3344},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.domainInitialState=n.default=void 0,n.getDomainError=function(e){return e.DNS.error},n.getDomainResolution=function(e){return e.DNS.resolution},n.getDomainWarning=function(e){return e.DNS.warning},n.initializeDomainSlice=x,n.lookupEnsName=function(e){return async(t,n)=>{const r=e.trim();let a=n();if("UNINITIALIZED"===a.DNS.stage&&await t(x()),a=n(),"NO_NETWORK_SUPPORT"!==a.DNS.stage||!1===(0,m.isBurnAddress)(r)&&(0,m.isValidHexAddress)(r,{mixedCaseUseChecksum:!0})||(0,s.isHexString)(r)){let e,n;o.default.info(`ENS attempting to resolve name: ${r}`);try{e=await v.resolveName(r)}catch(e){n=e}const i=(0,u.getCurrentChainId)(a),s=c.CHAIN_ID_TO_NETWORK_ID_MAP[i];await t(w({address:e,error:n,chainId:i,network:s,domainType:"ENS",domainName:r}))}else await t(N())}},n.resetDomainResolution=void 0;var r=e("@reduxjs/toolkit"),o=h(e("loglevel")),a=h(e("ethereum-ens-network-map")),i=e("unicode-confusables"),s=e("ethereumjs-util"),l=e("@ethersproject/providers"),u=e("../selectors"),c=e("../../shared/constants/network"),d=e("../pages/send/send.constants"),f=e("../helpers/utils/util"),p=e("../store/actionConstants"),m=e("../../shared/modules/hexstring-utils");function h(e){return e&&e.__esModule?e:{default:e}}const g={stage:"UNINITIALIZED",resolution:null,error:null,warning:null,network:null,domainType:null,domainName:null},b=g;n.domainInitialState=b;const y="DNS";let v=null;const T=(0,r.createSlice)({name:y,initialState:g,reducers:{domainLookup:(e,t)=>{e.resolution=null,e.error=null,e.warning=null;const{address:n,error:r,network:a,domainType:s,domainName:l}=t.payload;e.domainType=s,"ENS"===e.domainType&&(r?(0,f.isValidDomainName)(l)&&"ENS name not defined."===r.message?e.error=a===c.NETWORK_IDS.MAINNET?d.ENS_NO_ADDRESS_FOR_NAME:d.ENS_NOT_FOUND_ON_NETWORK:"Illegal character for ENS."===r.message?e.error=d.ENS_ILLEGAL_CHARACTER:(o.default.error(r),e.error=d.ENS_UNKNOWN_ERROR):n?(n===m.BURN_ADDRESS?e.error=d.ENS_NO_ADDRESS_FOR_NAME:"0x"===n?e.error=d.ENS_REGISTRATION_ERROR:e.resolution=n,(0,f.isValidDomainName)(n)&&(0,i.isConfusing)(n)&&(e.warning=d.CONFUSING_ENS_ERROR)):e.error=d.ENS_NO_ADDRESS_FOR_NAME)},enableDomainLookup:(e,t)=>{e.stage="INITIALIZED",e.error=null,e.resolution=null,e.warning=null,e.network=t.payload},disableDomainLookup:e=>{e.stage="NO_NETWORK_SUPPORT",e.error=null,e.warning=null,e.resolution=null,e.network=null},ensNotSupported:e=>{e.resolution=null,e.warning=null,e.error=d.ENS_NOT_SUPPORTED_ON_NETWORK},resetDomainResolution:e=>{e.resolution=null,e.warning=null,e.error=null}},extraReducers:e=>{e.addCase(p.CHAIN_CHANGED,((e,t)=>{t.payload!==e.currentChainId&&(e.stage="UNINITIALIZED",v=null)}))}}),{reducer:_,actions:C}=T;var E=_;n.default=E;const{disableDomainLookup:O,domainLookup:w,enableDomainLookup:k,ensNotSupported:N,resetDomainResolution:M}=C;function x(){return(e,t)=>{const n=t(),r=(0,u.getCurrentChainId)(n),o=c.CHAIN_ID_TO_NETWORK_ID_MAP[r],i=c.NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP[o],s=a.default[o];Boolean(s)?(v=new l.Web3Provider(global.ethereumProvider,{chainId:parseInt(o,10),name:i,ensAddress:s}),e(k(o))):(v=null,e(O()))}}n.resetDomainResolution=M}}},{package:"$root$",file:"ui/ducks/domains.js"}],[4057,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SET_CUSTOM_GAS_PRICE=n.SET_CUSTOM_GAS_LIMIT=n.RESET_CUSTOM_DATA=void 0;n.RESET_CUSTOM_DATA="metamask/gas/RESET_CUSTOM_DATA";n.SET_CUSTOM_GAS_LIMIT="metamask/gas/SET_CUSTOM_GAS_LIMIT";n.SET_CUSTOM_GAS_PRICE="metamask/gas/SET_CUSTOM_GAS_PRICE"}}},{package:"$root$",file:"ui/ducks/gas/gas-action-constants.ts"}],[4058,{"./gas-action-constants":4057,lodash:2932},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e=a,t){switch(t.type){case o.SET_CUSTOM_GAS_PRICE:return{...e,customData:{...e.customData,price:t.value}};case o.SET_CUSTOM_GAS_LIMIT:return{...e,customData:{...e.customData,limit:t.value}};case o.RESET_CUSTOM_DATA:return{...e,customData:(0,r.cloneDeep)(a.customData)};default:return e}},n.setCustomGasLimit=function(e){return{type:o.SET_CUSTOM_GAS_LIMIT,value:e}},n.setCustomGasPrice=function(e){return{type:o.SET_CUSTOM_GAS_PRICE,value:e}};var r=e("lodash"),o=e("./gas-action-constants");const a={customData:{price:null,limit:null}}}}},{package:"$root$",file:"ui/ducks/gas/gas.duck.js"}],[4059,{"../../helpers/constants/routes":4074,"@reduxjs/toolkit":1391},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.pageChanged=n.getMostRecentOverviewPage=n.default=void 0;var r=e("@reduxjs/toolkit"),o=e("../../helpers/constants/routes");const a={mostRecentOverviewPage:o.DEFAULT_ROUTE},i="history",s=(0,r.createSlice)({name:i,initialState:a,reducers:{pageChanged:(e,t)=>{const n=t.payload;(n===o.DEFAULT_ROUTE||n.startsWith(o.ASSET_ROUTE))&&(e.mostRecentOverviewPage=n)}}}),{actions:l,reducer:u}=s;var c=u;n.default=c;n.getMostRecentOverviewPage=e=>e[i].mostRecentOverviewPage;const{pageChanged:d}=l;n.pageChanged=d}}},{package:"$root$",file:"ui/ducks/history/history.js"}],[4060,{"../../shared/constants/alerts":3400,"./alerts":4051,"./app/app":4054,"./confirm-transaction/confirm-transaction.duck":4055,"./domains":4056,"./gas/gas.duck":4058,"./history/history":4059,"./locale/locale":4061,"./metamask/metamask":4062,"./send/send":4065,"./swaps/swaps":4066,redux:3194},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("redux"),o=e("../../shared/constants/alerts"),a=h(e("./metamask/metamask")),i=h(e("./locale/locale")),s=h(e("./send/send")),l=h(e("./domains")),u=h(e("./app/app")),c=h(e("./confirm-transaction/confirm-transaction.duck")),d=h(e("./gas/gas.duck")),f=e("./alerts"),p=h(e("./swaps/swaps")),m=h(e("./history/history"));function h(e){return e&&e.__esModule?e:{default:e}}var g=(0,r.combineReducers)({[o.AlertTypes.invalidCustomNetwork]:f.invalidCustomNetwork,[o.AlertTypes.unconnectedAccount]:f.unconnectedAccount,activeTab:e=>e===undefined?null:e,metamask:a.default,appState:u.default,DNS:l.default,history:m.default,send:s.default,confirmTransaction:c.default,swaps:p.default,gas:d.default,localeMessages:i.default});n.default=g}}},{package:"$root$",file:"ui/ducks/index.js"}],[4061,{"../../store/actionConstants":4442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e={},{type:t,payload:n}){if(t===r.SET_CURRENT_LOCALE)return{...e,current:n.messages,currentLocale:n.locale};return e},n.getEnLocaleMessages=n.getCurrentLocaleMessages=n.getCurrentLocale=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(e("../../store/actionConstants"));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}n.getCurrentLocale=e=>e.localeMessages.currentLocale;n.getCurrentLocaleMessages=e=>e.localeMessages.current;n.getEnLocaleMessages=e=>e.localeMessages.en}}},{package:"$root$",file:"ui/ducks/locale/locale.js"}],[4062,{"../../../shared/constants/alerts":3400,"../../../shared/constants/gas":3404,"../../../shared/constants/keyring":3406,"../../../shared/modules/conversion.utils":3431,"../../../shared/modules/hexstring-utils":3435,"../../../shared/modules/string-utils":3442,"../../selectors":4436,"../../store/actionConstants":4442,"../../store/actions":4443,"../gas/gas.duck":4058,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e=h,t){const n={...h,...e};switch(t.type){case o.UPDATE_METAMASK_STATE:return{...n,...t.value};case o.LOCK_METAMASK:return{...n,isUnlocked:!1};case o.SET_ACCOUNT_LABEL:{const{account:e}=t.value,r=t.value.label,o={};o[e]={...n.identities[e],name:r};const a={...n.identities,...o};return Object.assign(n,{identities:a})}case o.UPDATE_CUSTOM_NONCE:return{...n,customNonceValue:t.value};case o.TOGGLE_ACCOUNT_MENU:return{...n,isAccountMenuOpen:!n.isAccountMenuOpen};case o.UPDATE_TRANSACTION_PARAMS:{const{id:e,value:r}=t;let{currentNetworkTxList:o}=n;return o=o.map((t=>{if(t.id===e){const e={...t};return e.txParams=r,e}return t})),{...n,currentNetworkTxList:o}}case o.SET_PARTICIPATE_IN_METAMETRICS:return{...n,participateInMetaMetrics:t.value};case o.CLOSE_WELCOME_SCREEN:return{...n,welcomeScreenSeen:!0};case o.SET_PENDING_TOKENS:return{...n,pendingTokens:{...t.payload}};case o.CLEAR_PENDING_TOKENS:return{...n,pendingTokens:{}};case o.COMPLETE_ONBOARDING:return{...n,completedOnboarding:!0};case o.SET_FIRST_TIME_FLOW_TYPE:return{...n,firstTimeFlowType:t.value};case o.SET_NEXT_NONCE:return{...n,nextNonce:t.payload};default:return n}},n.doesUserHaveALedgerAccount=function(e){return e.metamask.keyrings.some((e=>e.type===c.KeyringType.ledger))},n.findKeyringForAddress=T,n.getAlertEnabledness=void 0,n.getBlockGasLimit=function(e){return e.metamask.currentBlockGasLimit},n.getCompletedOnboarding=function(e){return e.metamask.completedOnboarding},n.getConversionRate=function(e){return e.metamask.conversionRate},n.getEstimatedGasFeeTimeBounds=function(e){return e.metamask.estimatedGasFeeTimeBounds},n.getGasEstimateType=y,n.getGasFeeEstimates=v,n.getIsGasEstimatesLoading=function(e){const t=(0,s.checkNetworkAndAccountSupports1559)(e),n=y(e),r=n===i.GasEstimateTypes.feeMarket||n===i.GasEstimateTypes.ethGasPrice;return n===i.GasEstimateTypes.none||t&&!r||!t&&n===i.GasEstimateTypes.feeMarket},n.getIsInitialized=function(e){return e.metamask.isInitialized},n.getIsNetworkBusy=function(e){const t=v(e);return(null==t?void 0:t.networkCongestion)>=i.NetworkCongestionThresholds.busy},n.getIsUnlocked=function(e){return e.metamask.isUnlocked},n.getLedgerTransportType=function(e){return e.metamask.ledgerTransportType},n.getNativeCurrency=function(e){return(0,s.getUseCurrencyRateCheck)(e)?e.metamask.nativeCurrency:e.metamask.provider.ticker},n.getNfts=n.getNftContracts=void 0,n.getNftsDropdownState=function(e){return e.metamask.nftsDropdownState},n.getPendingTokens=void 0,n.getSeedPhraseBackedUp=function(e){return e.metamask.seedPhraseBackedUp},n.getSendHexDataFeatureFlagState=function(e){return e.metamask.featureFlags.sendHexData},n.getSendToAccounts=function(e){const t=(0,s.accountsWithSendEtherInfoSelector)(e),n=(0,s.getAddressBook)(e);return[...t,...n]},n.getTokens=void 0,n.getUnapprovedTxs=function(e){return e.metamask.unapprovedTxs},n.getWeb3ShimUsageAlertEnabledness=n.getUnconnectedAccountAlertShown=n.getUnconnectedAccountAlertEnabledness=void 0,n.isAddressLedger=function(e,t){const n=T(e,t);return(null==n?void 0:n.type)===c.KeyringType.ledger},n.isEIP1559Network=function(e){var t;return!0===(null===(t=e.metamask.networkDetails)||void 0===t?void 0:t.EIPS[1559])},n.isNotEIP1559Network=function(e){var t;return!1===(null===(t=e.metamask.networkDetails)||void 0===t?void 0:t.EIPS[1559])},n.updateGasFees=function({gasPrice:e,gasLimit:t,maxPriorityFeePerGas:n,maxFeePerGas:o,transaction:a,expectHexWei:i=!1}){return async s=>{const c={...a.txParams,gas:t};e?(s((0,u.setCustomGasPrice)(g(c.gasPrice,i))),c.gasPrice=g(e,i)):o&&n&&(c.maxFeePerGas=g(o,i),c.maxPriorityFeePerGas=(0,r.addHexPrefix)((0,p.decGWEIToHexWEI)(n)));const d={...a,txParams:c},f=(0,r.isHexString)((0,r.addHexPrefix)(t))?(0,r.addHexPrefix)(t):(0,r.addHexPrefix)(t.toString(16));s((0,u.setCustomGasLimit)(f)),await s((0,l.updateTransactionGasFees)(d.id,d))}};var r=e("ethereumjs-util"),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(e("../../store/actionConstants")),a=e("../../../shared/constants/alerts"),i=e("../../../shared/constants/gas"),s=e("../../selectors"),l=e("../../store/actions"),u=e("../gas/gas.duck"),c=e("../../../shared/constants/keyring"),d=e("../../../shared/modules/string-utils"),f=e("../../../shared/modules/hexstring-utils"),p=e("../../../shared/modules/conversion.utils");function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}const h={isInitialized:!1,isUnlocked:!1,isAccountMenuOpen:!1,identities:{},unapprovedTxs:{},networkConfigurations:{},addressBook:[],contractExchangeRates:{},pendingTokens:{},customNonceValue:"",useBlockie:!1,featureFlags:{},welcomeScreenSeen:!1,currentLocale:"",currentBlockGasLimit:"",preferences:{autoLockTimeLimit:undefined,showFiatInTestnets:!1,showTestNetworks:!1,useNativeCurrencyAsPrimaryCurrency:!0},firstTimeFlowType:null,completedOnboarding:!1,knownMethodData:{},participateInMetaMetrics:null,nextNonce:null,conversionRate:null,nativeCurrency:"ETH"};const g=(e,t)=>(0,r.addHexPrefix)(t?e:(0,p.decGWEIToHexWEI)(e));const b=e=>e.metamask.alertEnabledness;n.getAlertEnabledness=b;n.getUnconnectedAccountAlertEnabledness=e=>b(e)[a.AlertTypes.unconnectedAccount];n.getWeb3ShimUsageAlertEnabledness=e=>b(e)[a.AlertTypes.web3ShimUsage];n.getUnconnectedAccountAlertShown=e=>e.metamask.unconnectedAccountAlertShownOrigins;n.getPendingTokens=e=>e.metamask.pendingTokens;n.getTokens=e=>e.metamask.tokens;n.getNfts=e=>{var t;const{metamask:{allNfts:n,provider:{chainId:r},selectedAddress:o}}=e,a=(0,p.hexToDecimal)(r);return(null==n||null===(t=n[o])||void 0===t?void 0:t[a])??[]};function y(e){return e.metamask.gasEstimateType}function v(e){return e.metamask.gasFeeEstimates}function T(e,t){return e.metamask.keyrings.find((e=>e.accounts.some((e=>(0,d.isEqualCaseInsensitive)(e,(0,r.addHexPrefix)(t))||(0,d.isEqualCaseInsensitive)(e,(0,f.stripHexPrefix)(t))))))}n.getNftContracts=e=>{var t;const{metamask:{allNftContracts:n,provider:{chainId:r},selectedAddress:o}}=e,a=(0,p.hexToDecimal)(r);return(null==n||null===(t=n[o])||void 0===t?void 0:t[a])??[]}}}},{package:"$root$",file:"ui/ducks/metamask/metamask.js"}],[4063,{"../../../shared/constants/gas":3404,"../../../shared/constants/network":3409,"../../../shared/constants/transaction":3417,"../../../shared/lib/transactions-controller-utils":3425,"../../../shared/modules/Numeric":3427,"../../../shared/modules/contract-utils":3430,"../../pages/send/send.utils":4313,"../../selectors":4436,"../../store/actions":4443,"bignumber.js":1853,"ethereumjs-util":2231,"human-standard-token-abi":2687},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.estimateGasLimitForSend=async function({selectedAddress:e,value:t,gasPrice:n,sendToken:o,to:s,data:u,isNonStandardEthChain:f,chainId:h,gasLimit:g,...b}){let y=!1,v=i.MIN_GAS_LIMIT_HEX;b.blockGasLimit?v=b.blockGasLimit:o&&(v=i.GAS_LIMITS.BASE_TOKEN_ESTIMATE);const T={from:e,value:t,gasPrice:n};if(o){if(!s)return i.GAS_LIMITS.BASE_TOKEN_ESTIMATE;T.value="0x0",T.data=(0,d.getAssetTransferData)({sendToken:o,fromAddress:e,toAddress:s,amount:t}),T.to=o.address}else{if(!u){const{isContractAddress:e}=s?await(0,c.readAddressAsContract)(global.eth,s):{};if(!e&&!f)return i.GAS_LIMITS.SIMPLE;!e&&f&&(y=!0)}T.data=u,s&&(T.to=s),t&&"0"!==t||(T.value="0xff")}y||(T.gas=new m.Numeric(v,16).times(new m.Numeric(.95,10)).round(0,a.default.ROUND_DOWN).toPrefixedHexString());let _=1.5;y?_=1:l.CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP[h]&&(_=l.CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP[h]);try{const e=await(0,p.estimateGas)(T),t=(0,d.addGasBuffer)(e,v,_);return(0,r.addHexPrefix)(t)}catch(e){if(e.message.includes("Transaction execution error.")||e.message.includes("gas required exceeds allowance or always failing transaction")||l.CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP[h]&&e.message.includes("gas required exceeds allowance")){const e=(0,d.addGasBuffer)((null==T?void 0:T.gas)??g,v,_);return(0,r.addHexPrefix)(e)}throw e}},n.generateTransactionParams=function(e){var t,n;const r=e.draftTransactions[e.currentTransactionUUID],o={from:(null===(t=r.fromAccount)||void 0===t?void 0:t.address)||e.selectedAccount.address,gas:r.gas.gasLimit};switch(r.asset.type){case u.AssetType.token:o.to=r.asset.details.address,o.value="0x0",o.data=(0,d.generateERC20TransferData)({toAddress:r.recipient.address,amount:r.amount.value,sendToken:r.asset.details});break;case u.AssetType.NFT:o.to=r.asset.details.address,o.value="0x0",o.data=(0,d.generateERC721TransferData)({toAddress:r.recipient.address,fromAddress:(null===(n=r.fromAccount)||void 0===n?void 0:n.address)??e.selectedAccount.address,tokenId:r.asset.details.tokenId});break;case u.AssetType.native:default:o.to=r.recipient.address,o.value=r.amount.value,o.data=r.userInputHexData??undefined}e.eip1559support?(o.type=u.TransactionEnvelopeType.feeMarket,o.maxFeePerGas=r.gas.maxFeePerGas,o.maxPriorityFeePerGas=r.gas.maxPriorityFeePerGas,o.maxFeePerGas&&"0x0"!==o.maxFeePerGas||(o.maxFeePerGas=r.gas.gasPrice),o.maxPriorityFeePerGas&&"0x0"!==o.maxPriorityFeePerGas||(o.maxPriorityFeePerGas=o.maxFeePerGas)):(o.gasPrice=r.gas.gasPrice,o.type=u.TransactionEnvelopeType.legacy);return o},n.getERC20Balance=async function(e,t){const n=global.eth.contract(o.default).at(e.address),a=await n.balanceOf(t)??null;if(!a)return"0x0";const i=(0,s.calcTokenAmount)(a.balance.toString(),e.decimals).toString(16);return(0,r.addHexPrefix)(i)},n.getRoundedGasPrice=function(e){const t=new m.Numeric(e,10).round(9).toString(),n=Number(t);return(0,f.getGasPriceInHexWei)(n)};var r=e("ethereumjs-util"),o=h(e("human-standard-token-abi")),a=h(e("bignumber.js")),i=e("../../../shared/constants/gas"),s=e("../../../shared/lib/transactions-controller-utils"),l=e("../../../shared/constants/network"),u=e("../../../shared/constants/transaction"),c=e("../../../shared/modules/contract-utils"),d=e("../../pages/send/send.utils"),f=e("../../selectors"),p=e("../../store/actions"),m=e("../../../shared/modules/Numeric");function h(e){return e&&e.__esModule?e:{default:e}}}}},{package:"$root$",file:"ui/ducks/send/helpers.js"}],[4064,{"./send":4065},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e("./send");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in n&&n[e]===r[e]||Object.defineProperty(n,e,{enumerable:!0,get:function(){return r[e]}}))}))}}},{package:"$root$",file:"ui/ducks/send/index.js"}]],[],{});