(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[1158],{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:()=>n});var t=__webpack_require__(491616);var e=__webpack_require__(760184);var i=__webpack_require__(280501);let n=(0,t.Mz)(t=>t.metamask.keyrings,t=>t.metamask.moneyAccounts,(t,n)=>{let a=t?.find(t=>t.type===i.rI.hd);if(!a||!n)return undefined;let r=Object.values(n).find(t=>t.options.entropy.id===a.metadata.id);return!r||!(0,e.Ky)(r.address)?undefined:(0,{...r,address:r.address})})}}).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:()=>u});var t=__webpack_require__(303280);__webpack_require__.n(t);var e=__webpack_require__(827530);var i=__webpack_require__(48084);var n=__webpack_require__(427290);var a=__webpack_require__(694212);var r=__webpack_require__(272491);let l=["moneyAccountAvailability"];let s={isMoneyAccountFeatureEnabled:!1,hasMoneyAccount:!1,primaryMoneyAccount:undefined};function u(){let u=(0,t.c)(12);let d=(0,i.d4)(n.xS);let c=(0,r.$)();let o=(0,i.d4)(a.q);let h;u[0]!==c?(h=()=>c.call("MoneyAccountAvailabilityService:getAvailability"),u[0]=c,u[1]=h):h=u[1];let y;u[2]!==d||u[3]!==h?(y={queryKey:l,queryFn:h,enabled:d},u[2]=d,u[3]=h,u[4]=y):y=u[4];let{data:v}=(0,e.I)(y);if(!d)return s;let f=v?.isAvailable??!1;let A;u[5]!==v||u[6]!==o?(A=v?.isAvailable?{...o,address:v.address}:undefined,u[5]=v,u[6]=o,u[7]=A):A=u[7];let b;return u[8]!==d||u[9]!==f||u[10]!==A?(b={isMoneyAccountFeatureEnabled:d,hasMoneyAccount:f,primaryMoneyAccount:A},u[8]=d,u[9]=f,u[10]=A,u[11]=b):b=u[11],b}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);