-
Notifications
You must be signed in to change notification settings - Fork 31
/
46667.fcd121ae.iframe.bundle.js
1 lines (1 loc) · 74.1 KB
/
46667.fcd121ae.iframe.bundle.js
1
"use strict";(globalThis.webpackChunkmetamask_crx=globalThis.webpackChunkmetamask_crx||[]).push([[46667],{"./ui/components/app/snaps/show-more/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{x:()=>ShowMore});var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),useIsOverflowing=__webpack_require__("./ui/hooks/snaps/useIsOverflowing.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts"),useI18nContext=__webpack_require__("./ui/hooks/useI18nContext.js");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){_define_property(target,key,source[key])})}return target}function _object_without_properties(source,excluded){if(null==source)return{};var key,i,target=_object_without_properties_loose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],!(excluded.indexOf(key)>=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _object_without_properties_loose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}var ShowMore=function(_param){var children=_param.children,_param_className=_param.className,props=_object_without_properties(_param,["children","className"]),t=(0,useI18nContext.P)(),_useIsOverflowing=(0,useIsOverflowing.A)(),contentRef=_useIsOverflowing.contentRef,isOverflowing=_useIsOverflowing.isOverflowing,_useState=_sliced_to_array((0,react.useState)(!1),2),isOpen=_useState[0],setIsOpen=_useState[1];return react.createElement(component_library.az,_object_spread({className:classnames_default()("show-more",void 0===_param_className?"":_param_className),style:{position:"relative",overflow:"hidden",maxHeight:isOpen?"none":void 0},ref:contentRef},props),children,isOverflowing&&!isOpen&&react.createElement(component_library.az,{style:{position:"absolute",bottom:0,right:0,background:"linear-gradient(90deg, transparent 0%, var(--color-".concat(design_system.i0.backgroundAlternative,") 33%)")}},react.createElement(component_library.$n,{className:"show-more__button",padding:0,paddingLeft:8,variant:component_library.Ak.Link,onClick:function(e){e.stopPropagation(),setIsOpen(!0)}},react.createElement(component_library.EY,{color:design_system.r7.infoDefault},t("more")))))};ShowMore.propTypes={children:prop_types_default().node,buttonBackground:prop_types_default().string,className:prop_types_default().string},ShowMore.__docgenInfo={description:"",methods:[],displayName:"ShowMore",props:{className:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!1},buttonBackground:{description:"",type:{name:"string"},required:!1}}}},"./ui/components/app/snaps/snap-metadata-modal/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{L:()=>SnapMetadataModal});var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),es=__webpack_require__("./node_modules/react-redux/es/index.js"),snaps=__webpack_require__("./node_modules/@metamask/snaps-utils/dist/snaps.mjs"),selectors=__webpack_require__("./ui/selectors/index.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts"),util=__webpack_require__("./ui/helpers/utils/util.js"),useI18nContext=__webpack_require__("./ui/hooks/useI18nContext.js"),useOriginMetadata=__webpack_require__("./ui/hooks/useOriginMetadata.js"),show_more=__webpack_require__("./ui/components/app/snaps/show-more/index.js"),snap_external_pill=__webpack_require__("./ui/components/app/snaps/snap-version/snap-external-pill.js"),actions=__webpack_require__("./ui/store/actions.ts");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}var useSafeWebsite=function(website){var _useState=_sliced_to_array((0,react.useState)(),2),safeWebsite=_useState[0],setSafeWebsite=_useState[1];return(0,react.useEffect)(function(){var _ref,performPhishingCheck=(_ref=_async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,(0,actions.getPhishingResult)(website)];case 1:return _state.sent().result||setSafeWebsite(new URL(website)),[2]}})}),function performPhishingCheck(){return _ref.apply(this,arguments)});website&&performPhishingCheck()},[website]),safeWebsite},tooltip=__webpack_require__("./ui/components/ui/tooltip/index.js"),utils_snaps=__webpack_require__("./ui/helpers/utils/snaps.ts"),snap_icon=__webpack_require__("./ui/components/app/snaps/snap-icon/index.ts"),SnapMetadataModal=function(param){var _snap_versionHistory,_snapRegistryData_metadata,snapId=param.snapId,isOpen=param.isOpen,onClose=param.onClose,t=(0,useI18nContext.P)(),subjectMetadata=(0,es.d4)(function(state){return(0,selectors.DUM)(state,snapId)}),_useSelector=(0,es.d4)(function(state){return(0,selectors.oeg)(state,snapId)}),snapName=_useSelector.name,description=_useSelector.description,snap=(0,es.d4)(function(state){return(0,selectors.rQM)(state,snapId)}),versionHistory=null!==(_snap_versionHistory=null==snap?void 0:snap.versionHistory)&&void 0!==_snap_versionHistory?_snap_versionHistory:[],installInfo=versionHistory.length?versionHistory[versionHistory.length-1]:void 0,installOrigin=(0,useOriginMetadata.d)(null==installInfo?void 0:installInfo.origin),isSnapRequesting=(0,utils_snaps.cX)(null==installInfo?void 0:installInfo.origin),snapPrefix=(0,snaps.jW)(snapId),packageName=(0,snaps.TZ)(snapId),versionPath=(null==subjectMetadata?void 0:subjectMetadata.version)?"/v/".concat(null==subjectMetadata?void 0:subjectMetadata.version):"",url="npm:"===snapPrefix?"https://www.npmjs.com/package/".concat(packageName).concat(versionPath):packageName,snapRegistryData=(0,es.d4)(function(state){return(0,selectors.aG)(state,snapId)}),_ref_website=(null!==(_snapRegistryData_metadata=null==snapRegistryData?void 0:snapRegistryData.metadata)&&void 0!==_snapRegistryData_metadata?_snapRegistryData_metadata:{}).website,safeWebsite=useSafeWebsite(void 0===_ref_website?void 0:_ref_website);return react.createElement(component_library.aF,{isOpen:isOpen,onClose:onClose,className:"snap-metadata-modal"},react.createElement(component_library.mH,null),react.createElement(component_library.$m,{modalDialogProps:{display:design_system.nl.Flex,flexDirection:design_system.bo.Column}},react.createElement(component_library.rQ,{onClose:onClose,childrenWrapperProps:{display:design_system.nl.Flex,flexDirection:design_system.bo.Column,alignItems:design_system.k2.center,gap:2,marginBottom:6}},react.createElement(component_library.az,null,react.createElement(snap_icon.W,{snapId:snapId})),react.createElement(component_library.EY,{variant:design_system.J3.bodyMdMedium,textAlign:design_system.nO.Center},snapName)),react.createElement(component_library.az,{marginLeft:4,marginRight:4},safeWebsite&&react.createElement(component_library.az,{display:design_system.nl.Flex,FlexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,flexWrap:design_system.I4.NoWrap},react.createElement(component_library.EY,{variant:design_system.J3.bodyMdMedium,marginRight:4},t("snapDetailWebsite")),react.createElement(component_library.vx,{overflowWrap:design_system.Np.Anywhere,href:safeWebsite.toString(),target:"_blank",externalLink:!0,textAlign:design_system.nO.End,ellipsis:!0},safeWebsite.host)),installOrigin&&react.createElement(component_library.az,{display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,flexWrap:design_system.I4.NoWrap,marginTop:4},react.createElement(component_library.az,{display:design_system.nl.Flex,flexDirection:design_system.bo.Row,alignItems:design_system.k2.center,marginRight:4},react.createElement(component_library.EY,{variant:design_system.J3.bodyMdMedium,marginRight:1},t("installOrigin")),installInfo&&react.createElement(tooltip.A,{html:t("installedOn",[(0,util.Yq)(installInfo.date,"dd MMM yyyy")]),position:"bottom"},react.createElement(component_library.In,{color:design_system.Li.iconMuted,name:component_library.$M.Info,size:component_library.lK.Sm}))),react.createElement(component_library.EY,{ellipsis:!0},isSnapRequesting?(0,snaps.TZ)(installInfo.origin):installOrigin.host)),react.createElement(component_library.az,{display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,flexWrap:design_system.I4.NoWrap,marginTop:4},react.createElement(component_library.az,{display:design_system.nl.Flex,flexDirection:design_system.bo.Row,alignItems:design_system.k2.center,marginRight:4},react.createElement(component_library.EY,{variant:design_system.J3.bodyMdMedium,marginRight:1},t("source")),react.createElement(tooltip.A,{html:t("metadataModalSourceTooltip",[react.createElement(component_library.EY,{key:"snap-name",fontWeight:design_system.IT.Medium,variant:design_system.J3.inherit},snapName),react.createElement(component_library.EY,{key:"snap-id",fontWeight:design_system.IT.Medium,variant:design_system.J3.inherit},packageName)]),position:"bottom"},react.createElement(component_library.In,{color:design_system.Li.iconMuted,name:component_library.$M.Info,size:component_library.lK.Sm}))),react.createElement(snap_external_pill.A,{value:packageName,url:url})),react.createElement(component_library.az,{display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,flexWrap:design_system.I4.NoWrap,marginTop:4},react.createElement(component_library.EY,{variant:design_system.J3.bodyMdMedium,marginRight:4},t("version")),react.createElement(component_library.EY,{ellipsis:!0},null==subjectMetadata?void 0:subjectMetadata.version)),react.createElement(component_library.az,{display:design_system.nl.Flex,flexDirection:design_system.bo.Column,marginTop:4},react.createElement(component_library.EY,{variant:design_system.J3.bodyMdMedium,marginRight:4},t("descriptionFromSnap",[snapName])),react.createElement(show_more.x,null,react.createElement(component_library.EY,null,description))))))};SnapMetadataModal.propTypes={snapId:prop_types_default().string,isOpen:prop_types_default().bool,onClose:prop_types_default().func},SnapMetadataModal.__docgenInfo={description:"",methods:[],displayName:"SnapMetadataModal",props:{snapId:{description:"The id of the snap",type:{name:"string"},required:!1},isOpen:{description:"Whether if the modal is open or not",type:{name:"bool"},required:!1},onClose:{description:"onClose handler",type:{name:"func"},required:!1}}}},"./ui/components/app/snaps/snap-version/snap-external-pill.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/helpers/constants/design-system.ts"),_component_library__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/components/component-library/index.ts"),_ui_icon_preloader_preloader_icon_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/ui/icon/preloader/preloader-icon.component.js"),SnapExternalPill=function(param){var value=param.value,url=param.url;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_2__.vx,{href:url,target:"_blank",className:"snap-external-pill",ellipsis:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_2__.az,{className:"snap-external-pill__wrapper",display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.nl.Flex,flexDirection:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.bo.Row,alignItems:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.k2.center,backgroundColor:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.i0.backgroundAlternative,borderRadius:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.Z6.pill,paddingTop:1,paddingBottom:1,paddingLeft:2,paddingRight:2},value?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_2__.EY,{color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.Q1.textAlternative,variant:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.J3.bodyMd,ellipsis:!0},value):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ui_icon_preloader_preloader_icon_component__WEBPACK_IMPORTED_MODULE_3__.A,{size:18}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_2__.In,{name:_component_library__WEBPACK_IMPORTED_MODULE_2__.$M.Export,color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.Q1.textAlternative,size:_component_library__WEBPACK_IMPORTED_MODULE_2__.lK.Sm,marginLeft:1})))};SnapExternalPill.propTypes={value:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string,url:prop_types__WEBPACK_IMPORTED_MODULE_4___default().string};let __WEBPACK_DEFAULT_EXPORT__=SnapExternalPill;SnapExternalPill.__docgenInfo={description:"",methods:[],displayName:"SnapExternalPill",props:{value:{description:"The value to display",type:{name:"string"},required:!1},url:{description:"The url to the snap package",type:{name:"string"},required:!1}}}},"./ui/components/ui/icon/preloader/preloader-icon.component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__),classnames__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/classnames/index.js"),classnames__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__),Preloader=function(param){var className=param.className,size=param.size;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{className:classnames__WEBPACK_IMPORTED_MODULE_1___default()("preloader__icon",className),width:size,height:size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13.7143C4.84409 13.7143 2.28571 11.1559 2.28571 8C2.28571 4.84409 4.84409 2.28571 8 2.28571C11.1559 2.28571 13.7143 4.84409 13.7143 8C13.7143 11.1559 11.1559 13.7143 8 13.7143ZM8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z",fill:"var(--color-primary-muted)"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13.7143C4.84409 13.7143 2.28571 11.1559 2.28571 8C2.28571 4.84409 4.84409 2.28571 8 2.28571C11.1559 2.28571 13.7143 4.84409 13.7143 8C13.7143 11.1559 11.1559 13.7143 8 13.7143ZM8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z",fill:"var(--color-primary-default)"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("g",{mask:"url(#mask0)"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M6.85718 17.9999V11.4285V8.28564H-4.85711V17.9999H6.85718Z",fill:"var(--color-primary-default)"})))};Preloader.defaultProps={className:void 0},Preloader.propTypes={className:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string,size:prop_types__WEBPACK_IMPORTED_MODULE_2___default().number.isRequired};let __WEBPACK_DEFAULT_EXPORT__=Preloader;Preloader.__docgenInfo={description:"",methods:[],displayName:"Preloader",props:{className:{defaultValue:{value:"undefined",computed:!0},description:"",type:{name:"string"},required:!1},size:{description:"",type:{name:"number"},required:!0}}}},"./ui/hooks/snaps/useIsOverflowing.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}let __WEBPACK_DEFAULT_EXPORT__=function(){var contentRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),_useState=_sliced_to_array((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),2),isOverflowing=_useState[0],setIsOverflowing=_useState[1];return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function(){setIsOverflowing(contentRef.current&&contentRef.current.offsetHeight<contentRef.current.scrollHeight)},[contentRef]),{contentRef:contentRef,isOverflowing:isOverflowing}}},"./ui/hooks/useOriginMetadata.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{d:()=>useOriginMetadata});var _metamask_permission_controller__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@metamask/permission-controller/dist/SubjectMetadataController.mjs"),react_redux__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react-redux/es/index.js"),_selectors__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/selectors/index.js");function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){_define_property(target,key,source[key])})}return target}function useOriginMetadata(origin){var targetSubjectMetadata=(0,react_redux__WEBPACK_IMPORTED_MODULE_0__.d4)(function(state){return(0,_selectors__WEBPACK_IMPORTED_MODULE_1__.DUM)(state,origin)});if(!origin)return null;var minimumOriginMetadata=null;try{var url=new URL(origin);minimumOriginMetadata={host:url.host,hostname:url.hostname,origin:origin,subjectType:_metamask_permission_controller__WEBPACK_IMPORTED_MODULE_2__.P.Unknown}}catch(_){}return targetSubjectMetadata&&minimumOriginMetadata?_object_spread({},minimumOriginMetadata,targetSubjectMetadata):targetSubjectMetadata||minimumOriginMetadata}},"./ui/components/app/confirm/info/row/address.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{L:()=>ConfirmInfoRowAddress});var _metamask_name_controller__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@metamask/name-controller/dist/chunk-6W3DEAGA.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-redux/es/index.js"),_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/helpers/constants/design-system.ts"),_selectors__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/selectors/index.js"),_component_library__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/components/component-library/index.ts"),_modals_nickname_popovers__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./ui/components/app/modals/nickname-popovers/index.js"),_name_name__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./ui/components/app/name/name.tsx"),_helpers_utils_util__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./ui/helpers/utils/util.js"),_ui_identicon__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./ui/components/ui/identicon/index.js"),_hook__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./ui/components/app/confirm/info/row/hook.ts");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}var ConfirmInfoRowAddress=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function(param){var address=param.address,chainId=param.chainId,isSnapUsingThis=param.isSnapUsingThis,isPetNamesEnabled=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(_selectors__WEBPACK_IMPORTED_MODULE_3__.bHF),_useFallbackDisplayName=(0,_hook__WEBPACK_IMPORTED_MODULE_9__.T)(address),displayName=_useFallbackDisplayName.displayName,hexAddress=_useFallbackDisplayName.hexAddress,_useState=_sliced_to_array((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),2),isNicknamePopoverShown=_useState[0],setIsNicknamePopoverShown=_useState[1];return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_4__.az,{display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.nl.Flex,flexDirection:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.bo.Row,alignItems:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.k2.center},isPetNamesEnabled&&!isSnapUsingThis?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_name_name__WEBPACK_IMPORTED_MODULE_6__.A,{value:hexAddress,type:_metamask_name_controller__WEBPACK_IMPORTED_MODULE_10__.k.ETHEREUM_ADDRESS,preferContractSymbol:!0,variation:chainId}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_4__.az,{display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.nl.Flex,flexDirection:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.bo.Row,alignItems:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.k2.center,onClick:isSnapUsingThis?function(){return null}:function(){return setIsNicknamePopoverShown(!0)}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ui_identicon__WEBPACK_IMPORTED_MODULE_8__.A,{address:address,diameter:16}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_4__.EY,{marginLeft:2,color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.r7.inherit,"data-testid":"confirm-info-row-display-name"},isSnapUsingThis?(0,_helpers_utils_util__WEBPACK_IMPORTED_MODULE_7__.Wr)(address):displayName)),isNicknamePopoverShown?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_modals_nickname_popovers__WEBPACK_IMPORTED_MODULE_5__.A,{onClose:function(){return setIsNicknamePopoverShown(!1)},address:hexAddress}):null))});try{ConfirmInfoRowAddress.displayName="ConfirmInfoRowAddress",ConfirmInfoRowAddress.__docgenInfo={description:"",displayName:"ConfirmInfoRowAddress",props:{address:{defaultValue:null,description:"",name:"address",required:!0,type:{name:"string"}},chainId:{defaultValue:null,description:"",name:"chainId",required:!0,type:{name:"string"}},isSnapUsingThis:{defaultValue:null,description:"",name:"isSnapUsingThis",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/confirm/info/row/address.tsx#ConfirmInfoRowAddress"]={docgenInfo:ConfirmInfoRowAddress.__docgenInfo,name:"ConfirmInfoRowAddress",path:"ui/components/app/confirm/info/row/address.tsx#ConfirmInfoRowAddress"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/app/confirm/info/row/date.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{p:()=>ConfirmInfoRowDate});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/helpers/constants/design-system.ts"),_helpers_utils_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/helpers/utils/util.js"),_component_library__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/component-library/index.ts"),ConfirmInfoRowDate=function(param){var unixTimestamp=param.unixTimestamp;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_3__.az,{display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.nl.Flex,alignItems:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.k2.center,flexWrap:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.I4.Wrap,gap:2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_3__.EY,{color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_1__.r7.inherit,style:{whiteSpace:"pre-wrap"}},(0,_helpers_utils_util__WEBPACK_IMPORTED_MODULE_2__.wA)(unixTimestamp)))};try{ConfirmInfoRowDate.displayName="ConfirmInfoRowDate",ConfirmInfoRowDate.__docgenInfo={description:"",displayName:"ConfirmInfoRowDate",props:{unixTimestamp:{defaultValue:null,description:"timestamp as seconds since unix epoch e.g. Solidity block.timestamp (type uint256) value",name:"unixTimestamp",required:!0,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/confirm/info/row/date.tsx#ConfirmInfoRowDate"]={docgenInfo:ConfirmInfoRowDate.__docgenInfo,name:"ConfirmInfoRowDate",path:"ui/components/app/confirm/info/row/date.tsx#ConfirmInfoRowDate"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/app/confirm/info/row/hook.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>useRowContext,T:()=>useFallbackDisplayName});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-redux/es/index.js"),_shared_modules_hexstring_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./shared/modules/hexstring-utils.ts"),_helpers_utils_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/helpers/utils/util.js"),_selectors__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/selectors/index.js"),_row__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./ui/components/app/confirm/info/row/row.tsx"),useRowContext=function(){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_row__WEBPACK_IMPORTED_MODULE_5__.We)},useFallbackDisplayName=function useFallbackDisplayName(address){var hexAddress=(0,_shared_modules_hexstring_utils__WEBPACK_IMPORTED_MODULE_2__.sX)(address),internalAccounts=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(_selectors__WEBPACK_IMPORTED_MODULE_4__.atg),accountName=(0,_selectors__WEBPACK_IMPORTED_MODULE_4__.Ptq)(internalAccounts,hexAddress),addressBookContact=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(function(state){return(0,_selectors__WEBPACK_IMPORTED_MODULE_4__.AF5)(state,hexAddress)}),addressBookContactName=null==addressBookContact?void 0:addressBookContact.name,metadataName=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(function(state){return(0,_selectors__WEBPACK_IMPORTED_MODULE_4__.rG1)(state,hexAddress)}),ensName=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(function(state){return(0,_selectors__WEBPACK_IMPORTED_MODULE_4__._Ti)(state,address)});return{displayName:accountName||addressBookContactName||metadataName||ensName||(0,_helpers_utils_util__WEBPACK_IMPORTED_MODULE_3__.Wr)(hexAddress),hexAddress:hexAddress}}},"./ui/components/app/confirm/info/row/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{z$:()=>row.z$,L0:()=>address.L,pm:()=>date.p,Oz:()=>ConfirmInfoRowDivider,UK:()=>row_text.U,yT:()=>text_token_units.y,u7:()=>url.u,VV:()=>value_double.V,aj:()=>row.aj});var address=__webpack_require__("./ui/components/app/confirm/info/row/address.tsx"),date=__webpack_require__("./ui/components/app/confirm/info/row/date.tsx"),react=__webpack_require__("./node_modules/react/index.js"),ConfirmInfoRowDivider=function(){return react.createElement("div",{style:{height:"1px",backgroundColor:"var(--color-border-muted)",marginLeft:"-8px",marginRight:"-8px"}})};try{ConfirmInfoRowDivider.displayName="ConfirmInfoRowDivider",ConfirmInfoRowDivider.__docgenInfo={description:"",displayName:"ConfirmInfoRowDivider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/confirm/info/row/divider.tsx#ConfirmInfoRowDivider"]={docgenInfo:ConfirmInfoRowDivider.__docgenInfo,name:"ConfirmInfoRowDivider",path:"ui/components/app/confirm/info/row/divider.tsx#ConfirmInfoRowDivider"})}catch(__react_docgen_typescript_loader_error){}var row=__webpack_require__("./ui/components/app/confirm/info/row/row.tsx"),row_text=__webpack_require__("./ui/components/app/confirm/info/row/text.tsx"),text_token_units=__webpack_require__("./ui/components/app/confirm/info/row/text-token-units.tsx"),url=__webpack_require__("./ui/components/app/confirm/info/row/url.tsx"),value_double=__webpack_require__("./ui/components/app/confirm/info/row/value-double.tsx")},"./ui/components/app/confirm/info/row/text-token-units.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{y:()=>ConfirmInfoRowTextTokenUnits});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_shared_lib_transactions_controller_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./shared/lib/transactions-controller-utils.js"),_pages_confirmations_components_simulation_details_formatAmount__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/pages/confirmations/components/simulation-details/formatAmount.ts"),_helpers_utils_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/helpers/utils/util.js"),_text__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/components/app/confirm/info/row/text.tsx"),ConfirmInfoRowTextTokenUnits=function(param){var value=param.value,decimals=param.decimals,tokenValue=(0,_shared_lib_transactions_controller_utils__WEBPACK_IMPORTED_MODULE_1__.dU)(value,decimals),tokenText=(0,_pages_confirmations_components_simulation_details_formatAmount__WEBPACK_IMPORTED_MODULE_2__.e)("en-US",tokenValue),tokenTextMaxPrecision=(0,_pages_confirmations_components_simulation_details_formatAmount__WEBPACK_IMPORTED_MODULE_2__.o)("en-US",tokenValue);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_text__WEBPACK_IMPORTED_MODULE_4__.U,{text:(0,_helpers_utils_util__WEBPACK_IMPORTED_MODULE_3__.l1)(tokenText,{truncatedCharLimit:15,truncatedStartChars:15,truncatedEndChars:0,skipCharacterInEnd:!0}),tooltip:tokenTextMaxPrecision})};try{ConfirmInfoRowTextTokenUnits.displayName="ConfirmInfoRowTextTokenUnits",ConfirmInfoRowTextTokenUnits.__docgenInfo={description:"",displayName:"ConfirmInfoRowTextTokenUnits",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string | number | BigNumber"}},decimals:{defaultValue:null,description:"",name:"decimals",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/confirm/info/row/text-token-units.tsx#ConfirmInfoRowTextTokenUnits"]={docgenInfo:ConfirmInfoRowTextTokenUnits.__docgenInfo,name:"ConfirmInfoRowTextTokenUnits",path:"ui/components/app/confirm/info/row/text-token-units.tsx#ConfirmInfoRowTextTokenUnits"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/app/confirm/info/row/text.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{U:()=>ConfirmInfoRowText});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_contexts_i18n__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/contexts/i18n.js"),_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/helpers/constants/design-system.ts"),_component_library__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/component-library/index.ts"),_ui_tooltip__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/components/ui/tooltip/index.js"),InfoText=function(param){var text=param.text;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_3__.EY,{color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.r7.inherit,style:{whiteSpace:"pre-wrap"}},text)},ConfirmInfoRowText=function(param){var text=param.text,onEditClick=param.onEditClick,editIconClassName=param.editIconClassName,tooltip=param.tooltip,dataTestId=param["data-testid"],editIconDataTestId=param.editIconDataTestId,t=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_contexts_i18n__WEBPACK_IMPORTED_MODULE_1__.gJ),isEditable=!!onEditClick;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_3__.az,{"data-testid":dataTestId,display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.nl.Flex,alignItems:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.k2.center,flexWrap:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.I4.Wrap,gap:2,minWidth:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Zf.Zero},isEditable?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_3__.a2,{className:editIconClassName||void 0,color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Li.primaryDefault,ariaLabel:t("edit"),iconName:_component_library__WEBPACK_IMPORTED_MODULE_3__.$M.Edit,onClick:onEditClick,size:_component_library__WEBPACK_IMPORTED_MODULE_3__.f3.Sm,style:{marginRight:"-4px"},"data-testid":editIconDataTestId}):null,tooltip?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_ui_tooltip__WEBPACK_IMPORTED_MODULE_4__.A,{position:"bottom",title:tooltip,wrapperStyle:{minWidth:0},interactive:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(InfoText,{text:text})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(InfoText,{text:text}))};try{ConfirmInfoRowText.displayName="ConfirmInfoRowText",ConfirmInfoRowText.__docgenInfo={description:"",displayName:"ConfirmInfoRowText",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},onEditClick:{defaultValue:null,description:"",name:"onEditClick",required:!1,type:{name:"(() => void)"}},editIconClassName:{defaultValue:null,description:"",name:"editIconClassName",required:!1,type:{name:"string"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"string"}},"data-testid":{defaultValue:null,description:"",name:"data-testid",required:!1,type:{name:"string"}},editIconDataTestId:{defaultValue:null,description:"",name:"editIconDataTestId",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/confirm/info/row/text.tsx#ConfirmInfoRowText"]={docgenInfo:ConfirmInfoRowText.__docgenInfo,name:"ConfirmInfoRowText",path:"ui/components/app/confirm/info/row/text.tsx#ConfirmInfoRowText"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/app/confirm/info/row/url.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{u:()=>ConfirmInfoRowUrl});var react=__webpack_require__("./node_modules/react/index.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts"),snap_authorship_pill=__webpack_require__("./ui/components/app/snaps/snap-authorship-pill/snap-authorship-pill.tsx"),snap_metadata_modal=__webpack_require__("./ui/components/app/snaps/snap-metadata-modal/index.js"),snaps=__webpack_require__("./ui/helpers/utils/snaps.ts");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}var ConfirmInfoRowUrl=function(param){var urlObject,url=param.url,_useState=_sliced_to_array((0,react.useState)(!1),2),isModalOpen=_useState[0],setIsModalOpen=_useState[1],handlePillClick=(0,react.useCallback)(function(){return setIsModalOpen(!0)},[setIsModalOpen]),handleModalClose=(0,react.useCallback)(function(){return setIsModalOpen(!1)},[setIsModalOpen]);if((0,snaps.cX)(url))return react.createElement(react.Fragment,null,react.createElement(snap_authorship_pill.A,{snapId:url,onClick:handlePillClick}),react.createElement(snap_metadata_modal.L,{snapId:url,isOpen:isModalOpen,onClose:handleModalClose}));try{urlObject=new URL(url)}catch(e){console.log("ConfirmInfoRowUrl: new URL(url) cannot parse ".concat(url))}var isHTTP=(null==urlObject?void 0:urlObject.protocol)==="http:",urlWithoutProtocol=null==url?void 0:url.replace(RegExp("https?:\\/\\/","u"),"");return react.createElement(component_library.az,{display:design_system.nl.Flex,alignItems:design_system.k2.center,flexWrap:design_system.I4.Wrap,gap:2},isHTTP&&react.createElement(component_library.EY,{variant:design_system.J3.bodySm,display:design_system.nl.Flex,alignItems:design_system.k2.center,borderRadius:design_system.Z6.SM,backgroundColor:design_system.i0.warningMuted,paddingLeft:1,paddingRight:1,color:design_system.r7.warningDefault},react.createElement(component_library.In,{name:component_library.$M.Danger,color:design_system.Li.warningDefault,size:component_library.lK.Sm,marginInlineEnd:1}),"HTTP"),react.createElement(component_library.EY,{color:design_system.r7.inherit},urlWithoutProtocol))};try{ConfirmInfoRowUrl.displayName="ConfirmInfoRowUrl",ConfirmInfoRowUrl.__docgenInfo={description:"",displayName:"ConfirmInfoRowUrl",props:{url:{defaultValue:null,description:"",name:"url",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/confirm/info/row/url.tsx#ConfirmInfoRowUrl"]={docgenInfo:ConfirmInfoRowUrl.__docgenInfo,name:"ConfirmInfoRowUrl",path:"ui/components/app/confirm/info/row/url.tsx#ConfirmInfoRowUrl"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/app/confirm/info/row/value-double.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{V:()=>ConfirmInfoRowValueDouble});var _obj,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_component_library__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/components/component-library/index.ts"),_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/helpers/constants/design-system.ts"),_hook__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/app/confirm/info/row/hook.ts"),_row__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/components/app/confirm/info/row/row.tsx");function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var LEFT_TEXT_COLORS=(_define_property(_obj={},_row__WEBPACK_IMPORTED_MODULE_4__.aj.Default,_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.r7.textMuted),_define_property(_obj,_row__WEBPACK_IMPORTED_MODULE_4__.aj.Critical,_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Q1.errorAlternative),_define_property(_obj,_row__WEBPACK_IMPORTED_MODULE_4__.aj.Warning,_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.Q1.warningDefault),_obj),ConfirmInfoRowValueDouble=function(param){var left=param.left,right=param.right,variant=(0,_hook__WEBPACK_IMPORTED_MODULE_3__.$)().variant;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_1__.az,{display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.nl.Flex,flexDirection:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.bo.Row,alignItems:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.k2.center,flexWrap:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.I4.Wrap,gap:1},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_1__.EY,{color:LEFT_TEXT_COLORS[variant]},left),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_1__.EY,{color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_2__.r7.inherit},right))};try{ConfirmInfoRowValueDouble.displayName="ConfirmInfoRowValueDouble",ConfirmInfoRowValueDouble.__docgenInfo={description:"",displayName:"ConfirmInfoRowValueDouble",props:{left:{defaultValue:null,description:"",name:"left",required:!0,type:{name:"string"}},right:{defaultValue:null,description:"",name:"right",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/confirm/info/row/value-double.tsx#ConfirmInfoRowValueDouble"]={docgenInfo:ConfirmInfoRowValueDouble.__docgenInfo,name:"ConfirmInfoRowValueDouble",path:"ui/components/app/confirm/info/row/value-double.tsx#ConfirmInfoRowValueDouble"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/app/snaps/snap-authorship-pill/snap-authorship-pill.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-redux/es/index.js"),_component_library__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./ui/components/component-library/index.ts"),_snap_icon__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/components/app/snaps/snap-icon/index.ts"),_selectors__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./ui/selectors/index.js"),_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./ui/helpers/constants/design-system.ts");let __WEBPACK_DEFAULT_EXPORT__=function(param){var snapId=param.snapId,onClick=param.onClick,snapName=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.d4)(function(state){return(0,_selectors__WEBPACK_IMPORTED_MODULE_4__.oeg)(state,snapId)}).name;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_2__.az,{className:"snap-authorship-pill",display:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_5__.nl.Flex,flexDirection:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_5__.bo.Row,alignItems:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_5__.k2.center,borderRadius:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_5__.Z6.pill,paddingTop:1,paddingBottom:1,paddingLeft:1,paddingRight:2,onClick:onClick},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_snap_icon__WEBPACK_IMPORTED_MODULE_3__.W,{avatarSize:_component_library__WEBPACK_IMPORTED_MODULE_2__.lK.Sm,snapId:snapId}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_component_library__WEBPACK_IMPORTED_MODULE_2__.EY,{color:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_5__.r7.primaryDefault,variant:_helpers_constants_design_system__WEBPACK_IMPORTED_MODULE_5__.J3.bodyMdMedium,ellipsis:!0,paddingLeft:1},snapName))};try{snapauthorshippill.displayName="snapauthorshippill",snapauthorshippill.__docgenInfo={description:"",displayName:"snapauthorshippill",props:{snapId:{defaultValue:null,description:"",name:"snapId",required:!0,type:{name:"string"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/snaps/snap-authorship-pill/snap-authorship-pill.tsx#snapauthorshippill"]={docgenInfo:snapauthorshippill.__docgenInfo,name:"snapauthorshippill",path:"ui/components/app/snaps/snap-authorship-pill/snap-authorship-pill.tsx#snapauthorshippill"})}catch(__react_docgen_typescript_loader_error){}},"./ui/components/app/snaps/snap-icon/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{W:()=>SnapIcon});var react=__webpack_require__("./node_modules/react/index.js"),es=__webpack_require__("./node_modules/react-redux/es/index.js"),selectors=__webpack_require__("./ui/selectors/index.js"),util=__webpack_require__("./ui/helpers/utils/util.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts");function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){_define_property(target,key,source[key])})}return target}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _object_spread_props(target,source){return source=null!=source?source:{},Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}),target}function _object_without_properties(source,excluded){if(null==source)return{};var key,i,target=_object_without_properties_loose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],!(excluded.indexOf(key)>=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _object_without_properties_loose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}var SnapIcon=function(_param){var snapId=_param.snapId,_param_avatarSize=_param.avatarSize,avatarSize=void 0===_param_avatarSize?component_library.lK.Lg:_param_avatarSize,props=_object_without_properties(_param,["snapId","avatarSize"]),subjectMetadata=(0,es.d4)(function(state){return(0,selectors.DUM)(state,snapId)}),snapName=(0,es.d4)(function(state){return(0,selectors.oeg)(state,snapId)}).name,iconUrl=null==subjectMetadata?void 0:subjectMetadata.iconUrl,fallbackIcon=(0,util.k3)(snapName);return iconUrl?react.createElement(component_library.eK,_object_spread_props(_object_spread({style:{backgroundColor:"var(--color-background-alternative-hover)"},src:iconUrl,name:snapName},props),{size:avatarSize})):react.createElement(component_library.dy,_object_spread_props(_object_spread({display:design_system.nl.Flex,alignItems:design_system.k2.center,justifyContent:design_system.A9.center,color:design_system.r7.textAlternative,style:{borderWidth:"0px",backgroundColor:"var(--color-background-alternative-hover)"}},props),{size:avatarSize}),fallbackIcon)};try{SnapIcon.displayName="SnapIcon",SnapIcon.__docgenInfo={description:"",displayName:"SnapIcon",props:{snapId:{defaultValue:null,description:"",name:"snapId",required:!0,type:{name:"string"}},avatarSize:{defaultValue:{value:"IconSize.Lg"},description:"",name:"avatarSize",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"inherit"'}]}},borderWidth:{defaultValue:null,description:"The border-width of the component.\nUse 1-12 for 1px-12px.\nAccepts responsive props in the form of an array.",name:"borderWidth",required:!1,type:{name:"(number & (SizeNumber | SizeNumberArray))"}},className:{defaultValue:null,description:"Additional classNames to be added to the AvatarFavicon",name:"className",required:!1,type:{name:"string"}},badgeBackgroundColor:{defaultValue:null,description:"",name:"badgeBackgroundColor",required:!1,type:{name:"enum",value:[{value:'"background-default"'},{value:'"background-alternative"'},{value:'"background-muted"'},{value:'"background-alternative-soft"'},{value:'"background-hover"'},{value:'"background-pressed"'},{value:'"icon-default"'},{value:'"icon-alternative"'},{value:'"icon-muted"'},{value:'"overlay-default"'},{value:'"overlay-alternative"'},{value:'"primary-default"'},{value:'"primary-alternative"'},{value:'"primary-muted"'},{value:'"error-default"'},{value:'"error-alternative"'},{value:'"error-muted"'},{value:'"warning-default"'},{value:'"warning-muted"'},{value:'"success-default"'},{value:'"success-muted"'},{value:'"info-default"'},{value:'"info-muted"'},{value:'"mainnet"'},{value:'"goerli"'},{value:'"sepolia"'},{value:'"linea-goerli"'},{value:'"linea-sepolia"'},{value:'"linea-mainnet"'},{value:'"transparent"'},{value:'"localhost"'}]}},size:{defaultValue:null,description:"The size of the AvatarFavicon\nPossible values could be 'AvatarFaviconSize.Xs' 16px, 'AvatarFaviconSize.Sm' 24px, 'AvatarFaviconSize.Md' 32px, 'AvatarFaviconSize.Lg' 40px, 'AvatarFaviconSize.Xs' 48px\nDefaults to AvatarFaviconSize.Md",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null"}},variant:{defaultValue:null,description:"The variation of font styles including sizes and weights of the Text component\nPossible values:\n`displayMd` large screen: 48px / small screen: 32px,\n`headingLg` large screen: 32px / small screen: 24px,\n`headingMd` large screen: 24px / small screen: 18px,\n`headingSm` large screen: 18px / small screen: 16px,\n`bodyLgMedium` large screen: 18px / small screen: 16px,\n`bodyMd` large screen: 16px / small screen: 14px,\n`bodyMdMedium` large screen: 16px / small screen: 14px,\n`bodyMdBold` large screen: 16px / small screen: 14px,\n`bodySm` large screen: 14px / small screen: 12px,\n`bodySmMedium` large screen: 14px / small screen: 12px,\n`bodySmBold` large screen: 14px / small screen: 12px,\n`bodyXsMedium` large screen: 12px / small screen: 10px,\n`bodyXs` large screen: 12px / small screen: 10px,\n`inherit`",name:"variant",required:!1,type:{name:"enum",value:[{value:'"display-md"'},{value:'"heading-lg"'},{value:'"heading-md"'},{value:'"heading-sm"'},{value:'"body-lg-medium"'},{value:'"body-md"'},{value:'"body-md-medium"'},{value:'"body-md-bold"'},{value:'"body-sm"'},{value:'"body-sm-medium"'},{value:'"body-sm-bold"'},{value:'"body-xs"'},{value:'"body-xs-medium"'},{value:'"inherit"'}]}},"data-testid":{defaultValue:null,description:"An optional data-testid to apply to the component.\nTypeScript is complaining about data- attributes which means we need to explicitly define this as a prop.\nTODO: Allow data- attributes.",name:"data-testid",required:!1,type:{name:"string"}},flexDirection:{defaultValue:null,description:"The flex direction of the component.\nUse the FlexDirection enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexDirection",required:!1,type:{name:"FlexDirection | FlexDirectionArray"}},flexWrap:{defaultValue:null,description:"The flex wrap of the component.\nUse the FlexWrap enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"flexWrap",required:!1,type:{name:"FlexWrap | FlexWrapArray"}},gap:{defaultValue:null,description:"The gap between the component's children.\nUse 1-12 for a gap of 4px-48px.\nAccepts responsive props in the form of an array.",name:"gap",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},margin:{defaultValue:null,description:"The margin of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"margin",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginTop:{defaultValue:null,description:"The margin-top of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginTop",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginBottom:{defaultValue:null,description:"The margin-bottom of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginBottom",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginRight:{defaultValue:null,description:"The margin-right of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginRight",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginLeft:{defaultValue:null,description:"The margin-left of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginLeft",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInline:{defaultValue:null,description:"The margin-inline of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInline",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineStart:{defaultValue:null,description:"The margin-inline-start of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineStart",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},marginInlineEnd:{defaultValue:null,description:"The margin-inline-end of the component.\nUse 1-12 for 4px-48px or 'auto'.\nAccepts responsive props in the form of an array.",name:"marginInlineEnd",required:!1,type:{name:"SizeNumberAndAuto | SizeNumberAndAutoArray"}},padding:{defaultValue:null,description:"The padding of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"padding",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingTop:{defaultValue:null,description:"The padding-top of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingTop",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingBottom:{defaultValue:null,description:"The padding-bottom of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingBottom",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingRight:{defaultValue:null,description:"The padding-right of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingRight",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingLeft:{defaultValue:null,description:"The padding-left of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingLeft",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInline:{defaultValue:null,description:"The padding-inline of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInline",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineStart:{defaultValue:null,description:"The padding-inline-start of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineStart",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},paddingInlineEnd:{defaultValue:null,description:"The padding-inline-end of the component.\nUse 1-12 for 4px-48px.\nAccepts responsive props in the form of an array.",name:"paddingInlineEnd",required:!1,type:{name:"SizeNumber | SizeNumberArray"}},borderColor:{defaultValue:null,description:"The border color of the AvatarFavicon\nDefaults to Color.transparent",name:"borderColor",required:!1,type:{name:"enum",value:[{value:'"border-default"'},{value:'"border-muted"'},{value:'"primary-default"'},{value:'"primary-alternative"'},{value:'"primary-muted"'},{value:'"error-default"'},{value:'"error-alternative"'},{value:'"error-muted"'},{value:'"warning-default"'},{value:'"warning-muted"'},{value:'"success-default"'},{value:'"success-muted"'},{value:'"info-default"'},{value:'"info-muted"'},{value:'"mainnet"'},{value:'"goerli"'},{value:'"sepolia"'},{value:'"linea-goerli"'},{value:'"linea-sepolia"'},{value:'"linea-mainnet"'},{value:'"transparent"'},{value:'"localhost"'},{value:'"background-default"'}]}},borderRadius:{defaultValue:null,description:"The border-radius of the component.\nUse BorderRadius enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderRadius",required:!1,type:{name:"BorderRadius | BorderRadiusArray"}},borderStyle:{defaultValue:null,description:"The border-style of the component.\nUse BorderStyle enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"borderStyle",required:!1,type:{name:"BorderStyle | BorderStyleArray"}},alignItems:{defaultValue:null,description:"The align-items of the component.\nUse AlignItems enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"alignItems",required:!1,type:{name:"AlignItems | AlignItemsArray"}},justifyContent:{defaultValue:null,description:"The justify-content of the component.\nUse JustifyContent enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"justifyContent",required:!1,type:{name:"JustifyContent | JustifyContentArray"}},textAlign:{defaultValue:null,description:"The text-align of the component.\nUse TextAlign enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"textAlign",required:!1,type:{name:"TextAlign | TextAlignArray"}},display:{defaultValue:null,description:"The display of the component.\nUse Display enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"display",required:!1,type:{name:"Display | DisplayArray"}},width:{defaultValue:null,description:"The width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"width",required:!1,type:{name:"BlockSize | BlockSizeArray"}},height:{defaultValue:null,description:"The height of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"height",required:!1,type:{name:"BlockSize | BlockSizeArray"}},backgroundColor:{defaultValue:null,description:"The background color of the AvatarBase\nDefaults to Color.backgroundAlternative",name:"backgroundColor",required:!1,type:{name:"enum",value:[{value:'"background-default"'},{value:'"background-alternative"'},{value:'"background-muted"'},{value:'"background-alternative-soft"'},{value:'"background-hover"'},{value:'"background-pressed"'},{value:'"icon-default"'},{value:'"icon-alternative"'},{value:'"icon-muted"'},{value:'"overlay-default"'},{value:'"overlay-alternative"'},{value:'"primary-default"'},{value:'"primary-alternative"'},{value:'"primary-muted"'},{value:'"error-default"'},{value:'"error-alternative"'},{value:'"error-muted"'},{value:'"warning-default"'},{value:'"warning-muted"'},{value:'"success-default"'},{value:'"success-muted"'},{value:'"info-default"'},{value:'"info-muted"'},{value:'"mainnet"'},{value:'"goerli"'},{value:'"sepolia"'},{value:'"linea-goerli"'},{value:'"linea-sepolia"'},{value:'"linea-mainnet"'},{value:'"transparent"'},{value:'"localhost"'}]}},as:{defaultValue:null,description:"An override of the default HTML tag.\nCan also be a React component.",name:"as",required:!1,type:{name:"enum",value:[{value:'"span"'}]}},color:{defaultValue:null,description:"The color of the text inside the AvatarBase\nDefaults to TextColor.textDefault",name:"color",required:!1,type:{name:"enum",value:[{value:'"text-default"'},{value:'"text-alternative"'},{value:'"text-alternative-soft"'},{value:'"text-muted"'},{value:'"overlay-inverse"'},{value:'"primary-default"'},{value:'"primary-inverse"'},{value:'"error-default"'},{value:'"error-alternative"'},{value:'"error-inverse"'},{value:'"success-default"'},{value:'"success-inverse"'},{value:'"warning-default"'},{value:'"warning-inverse"'},{value:'"info-default"'},{value:'"info-inverse"'},{value:'"inherit"'},{value:'"goerli"'},{value:'"sepolia"'},{value:'"linea-goerli"'},{value:'"linea-goerli-inverse"'},{value:'"linea-sepolia"'},{value:'"linea-sepolia-inverse"'},{value:'"linea-mainnet"'},{value:'"linea-mainnet-inverse"'},{value:'"goerli-inverse"'},{value:'"sepolia-inverse"'},{value:'"transparent"'}]}},minWidth:{defaultValue:null,description:"The min-width of the component.\nUse BlockSize enum from '../../../helpers/constants/design-system';\nAccepts responsive props in the form of an array.",name:"minWidth",required:!1,type:{name:"BlockSize | BlockSizeArray"}},fontWeight:{defaultValue:null,description:"The font-weight of the Text component. Should use the FontWeight enum from\n./ui/helpers/constants/design-system.js",name:"fontWeight",required:!1,type:{name:"enum",value:[{value:'"bold"'},{value:'"medium"'},{value:'"normal"'}]}},fontStyle:{defaultValue:null,description:"The font-style of the Text component. Should use the FontStyle enum from\n./ui/helpers/constants/design-system.js",name:"fontStyle",required:!1,type:{name:"enum",value:[{value:'"italic"'},{value:'"normal"'}]}},textTransform:{defaultValue:null,description:"The textTransform of the Text component. Should use the TextTransform enum from\n./ui/helpers/constants/design-system.js",name:"textTransform",required:!1,type:{name:"enum",value:[{value:'"uppercase"'},{value:'"lowercase"'},{value:'"capitalize"'}]}},textDirection:{defaultValue:null,description:"Change the dir (direction) global attribute of text to support the direction a language is written\nPossible values: `LEFT_TO_RIGHT` (default), `RIGHT_TO_LEFT`, `AUTO` (user agent decides)",name:"textDirection",required:!1,type:{name:"enum",value:[{value:'"ltr"'},{value:'"rtl"'},{value:'"auto"'}]}},overflowWrap:{defaultValue:null,description:"The overflow-wrap of the Text component. Should use the OverflowWrap enum from\n./ui/helpers/constants/design-system.js",name:"overflowWrap",required:!1,type:{name:"enum",value:[{value:'"break-word"'},{value:'"anywhere"'},{value:'"normal"'}]}},ellipsis:{defaultValue:null,description:"Used for long strings that can be cut off...",name:"ellipsis",required:!1,type:{name:"boolean"}},isBrandEvolution:{defaultValue:null,description:"Enable Brand Evolution Typography\nDo not use unless you are working on the brand evolution",name:"isBrandEvolution",required:!1,type:{name:"boolean"}},src:{defaultValue:null,description:"The src accepts the string of the image to be rendered",name:"src",required:!1,type:{name:"string"}},fallbackIconProps:{defaultValue:null,description:"Props for the fallback icon. All Icon props can be used",name:"fallbackIconProps",required:!1,type:{name:'IconProps<"span">'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/components/app/snaps/snap-icon/snap-icon.tsx#SnapIcon"]={docgenInfo:SnapIcon.__docgenInfo,name:"SnapIcon",path:"ui/components/app/snaps/snap-icon/snap-icon.tsx#SnapIcon"})}catch(__react_docgen_typescript_loader_error){}},"./ui/pages/confirmations/components/simulation-details/formatAmount.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{e:()=>formatAmount,o:()=>formatAmountMaxPrecision});var bignumber_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/bignumber.js/bignumber.js"),_hooks_useCurrencyDisplay__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./ui/hooks/useCurrencyDisplay.js");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}function formatAmountMaxPrecision(locale,num){var bigNumberValue=new bignumber_js__WEBPACK_IMPORTED_MODULE_0__.BigNumber(num),numberOfDecimals=bigNumberValue.decimalPlaces(),_formattedValue_split=_sliced_to_array(bigNumberValue.toFixed(numberOfDecimals).split("."),2),integerPart=_formattedValue_split[0],fractionalPart=_formattedValue_split[1],formattedIntegerPart=new Intl.NumberFormat(locale).format(integerPart);return fractionalPart?"".concat(formattedIntegerPart,".").concat(fractionalPart):formattedIntegerPart}function formatAmount(locale,amount){if(amount.isZero())return"0";if(amount.abs().lessThan(_hooks_useCurrencyDisplay__WEBPACK_IMPORTED_MODULE_1__.Ke))return"<".concat(formatAmountMaxPrecision(locale,_hooks_useCurrencyDisplay__WEBPACK_IMPORTED_MODULE_1__.Ke));if(amount.abs().lessThan(1))return new Intl.NumberFormat(locale,{maximumSignificantDigits:3}).format(amount.round(_hooks_useCurrencyDisplay__WEBPACK_IMPORTED_MODULE_1__.Vi).toNumber());var maximumFractionDigits=Math.max(0,3-amount.abs().truncated().toString().length+1);return new Intl.NumberFormat(locale,{maximumFractionDigits:maximumFractionDigits}).format(amount.toFixed(maximumFractionDigits))}}}]);