(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[2710],{312710(__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__,{R:()=>u});var e=__webpack_require__(303280);__webpack_require__.n(e);var r=__webpack_require__(860012);var t=__webpack_require__(848574);var a=__webpack_require__(126528);var n=__webpack_require__(68940);var l=__webpack_require__(917214);var i=__webpack_require__(439122);var s=__webpack_require__(584243);let u=()=>{let u=(0,e.c)(6);let o=(0,l.P)();let c=(0,i.r)();if(!c)return null;let d;u[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.createElement(s.M,{variant:s.x.Vip,size:14}),u[0]=d):d=u[0];let h;u[1]!==o||u[2]!==c?(h=o("vip",[c]),u[1]=o,u[2]=c,u[3]=h):h=u[3];let v;return u[4]!==h?(v=r.createElement(a.a,{className:"w-max rounded-md bg-gradient-to-r from-[#ECB920] to-[65%] to-[#ECBC2D]/[11%] p-[1px] border-1","data-testid":"rewards-vip-badge"},r.createElement(a.a,{className:"w-max flex flex-row rounded-md bg-warning-inverse"},r.createElement(a.a,{className:"w-max flex flex-row rounded-md whitespace-nowrap px-2 py-0 gap-1 bg-[#ECBC2D]/[11%]"},d,r.createElement(n.E,{variant:t.J3.BodySm,fontWeight:t.IT.Medium},h)))),u[4]=h,u[5]=v):v=u[5],v}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},439122(__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__,{r:()=>c});var e=__webpack_require__(303280);__webpack_require__.n(e);var r=__webpack_require__(860012);var t=__webpack_require__(940025);var a=__webpack_require__(48084);var n=__webpack_require__(142282);var l=__webpack_require__(171097);var i=__webpack_require__.n(l);var s=__webpack_require__(609654);var u=__webpack_require__(365337);var o=__webpack_require__(950887);function c(){let e=(0,a.d4)(o.Bo);let r=d();let{data:t}=h(e?r:null);return t??null}function d(){let e=(0,a.d4)(u._);return(0,r.useMemo)(()=>{let[r]=e?.scopes??[];if(!e?.address||!r)return null;try{let{namespace:t,reference:a}=(0,n.rW)(r);return(0,n.pI)(t,a,e.address)}catch(e){return i().error("[useVipTier] Error formatting account to CAIP-10:",e),null}},[e?.address,e?.scopes])}function h(r){let a=(0,e.c)(7);let n;let l;a[0]!==r?(n=["rewardsVipTier",r],l=async()=>{return await (0,s.Rb)("rewardsGetVipTierForAccount",[String(r)])??null},a[0]=r,a[1]=n,a[2]=l):(n=a[1],l=a[2]);let i=r!==null;let u;return a[3]!==n||a[4]!==l||a[5]!==i?(u={queryKey:n,queryFn:l,enabled:i},a[3]=n,a[4]=l,a[5]=i,a[6]=u):u=a[6],(0,t.I)(u)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);