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