(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[1158],{427290(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Jj:()=>o,ae:()=>d,ro:()=>s,vs:()=>c,xS:()=>u});var e=__webpack_require__(491616);var t=__webpack_require__(745085);var n=__webpack_require__(720578);var i=__webpack_require__(442722);var r=__webpack_require__(519939);var a=__webpack_require__(965130);let l=e=>{if(typeof e=="number")return Number.isFinite(e)&&e>=0?e:undefined;if(typeof e=="string"){let t=Number.parseFloat(e);return Number.isFinite(t)&&t>=0?t:undefined}return undefined};let u=(0,e.Mz)(n.Y,r.$);let s=(0,e.Mz)(n.Y,r.Jh);let d=(0,e.Mz)(n.Y,a.wM);let o=(0,e.Mz)(n.Y,e=>{let n=e?.earnMoneyVaultApyControl;let i=(0,t.Gv)(n)?n:undefined;return{vaultApyFallback:l(i?.vaultApyFallback),vaultApyOverride:l(i?.vaultApyOverride)}});let c=(0,e.Mz)(n.Y,e=>l(e?.earnMoneyDepositMinAssetBalance)??.01);(0,e.Mz)(n.Y,e=>(0,i.R7)(e?.moneyAccountDepositQuotePipeline,!1))}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},694212(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>i});var e=__webpack_require__(491616);var t=__webpack_require__(760184);var n=__webpack_require__(280501);let i=(0,e.Mz)(e=>e.metamask.keyrings,e=>e.metamask.moneyAccounts,(e,i)=>{let r=e?.find(e=>e.type===n.rI.hd);if(!r||!i)return undefined;let a=Object.values(i).find(e=>e.options.entropy.id===r.metadata.id);return!a||!(0,t.Ky)(a.address)?undefined:(0,{...a,address:a.address})})}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},965130(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{wM:()=>i});var e=__webpack_require__(760184);var t=__webpack_require__(745085);let n=t=>(0,e.Ky)(t)&&(0,e.Cv)(t)?t:undefined;function i(i){return(i=>{if(!(0,t.Gv)(i))return undefined;let{chainId:r}=i;if(!(0,e.Ky)(r))return undefined;let a=n(i.boringVault);let l=n(i.tellerAddress);let u=n(i.accountantAddress);let s=n(i.lensAddress);let d=n(i.underlyingToken);return!a||!l||!u||!s||!d?undefined:(0,{chainId:r,boringVault:a,tellerAddress:l,accountantAddress:u,lensAddress:s,underlyingToken:d})})(i?.["moneyAccountVaultConfig"])}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},971158(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$k:()=>s});var e=__webpack_require__(303280);__webpack_require__.n(e);var t=__webpack_require__(940025);var n=__webpack_require__(48084);var i=__webpack_require__(427290);var r=__webpack_require__(694212);var a=__webpack_require__(272491);let l=["moneyAccountAvailability"];let u={isMoneyAccountFeatureEnabled:!1,hasMoneyAccount:!1,primaryMoneyAccount:undefined};function s(){let s=(0,e.c)(12);let d=(0,n.d4)(i.xS);let o=(0,a.$)();let c=(0,n.d4)(r.q);let f;s[0]!==o?(f=()=>o.call("MoneyAccountAvailabilityService:getAvailability"),s[0]=o,s[1]=f):f=s[1];let h;s[2]!==d||s[3]!==f?(h={queryKey:l,queryFn:f,enabled:d},s[2]=d,s[3]=f,s[4]=h):h=s[4];let{data:v}=(0,t.I)(h);if(!d)return u;let y=v?.isAvailable??!1;let A;s[5]!==v||s[6]!==c?(A=v?.isAvailable?{...c,address:v.address}:undefined,s[5]=v,s[6]=c,s[7]=A):A=s[7];let M;return s[8]!==d||s[9]!==y||s[10]!==A?(M={isMoneyAccountFeatureEnabled:d,hasMoneyAccount:y,primaryMoneyAccount:A},s[8]=d,s[9]=y,s[10]=A,s[11]=M):M=s[11],M}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);