(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8811],{748811(__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__,{U:()=>m});var e=__webpack_require__(303280);__webpack_require__.n(e);var t=__webpack_require__(860012);var a=__webpack_require__(848574);var l=__webpack_require__(305142);var r=__webpack_require__(126528);var n=__webpack_require__(219384);var i=__webpack_require__(68940);var s=__webpack_require__(917214);var c=__webpack_require__(178121);var o=__webpack_require__(197921);var u=__webpack_require__(749201);var v=__webpack_require__(476407);var d=__webpack_require__(584243);let m=m=>{let h=(0,e.c)(31);let{formattedPoints:f,boxClassName:w,textClassName:p,withPointsSuffix:x,useAlternativeIconColor:E,allowHideBadge:b,startIconName:k,onClick:C}=m;let S=x===undefined?!0:x;let $=b===undefined?!1:b;let M=(0,s.P)();let N=(0,u.w)();let[g,T]=(0,t.useState)(!1);let B;h[0]!==N?(B=()=>{T(!1),N((0,c._q)(!0));try{(0,o.ni)(v.Uz,"true")}catch(e){}},h[0]=N,h[1]=B):B=h[1];let I=B;let P=`relative flex items-center${w?` ${w}`:""}${C?" cursor-pointer":""}`;let _;h[2]!==$?(_=$?()=>T(!0):undefined,h[2]=$,h[3]=_):_=h[3];let y;h[4]!==$?(y=$?()=>T(!1):undefined,h[4]=$,h[5]=y):y=h[5];let z=(E===undefined?!1:E)?d.x.Alternative:d.x.Default;let A;h[6]!==k||h[7]!==z?(A=t.createElement(d.M,{variant:z,startIconName:k}),h[6]=k,h[7]=z,h[8]=A):A=h[8];let H;h[9]!==f||h[10]!==M||h[11]!==S?(H=S?M("rewardsPointsBalance",[f]):f,h[9]=f,h[10]=M,h[11]=S,h[12]=H):H=h[12];let L;h[13]!==H||h[14]!==p?(L=t.createElement(i.E,{variant:a.J3.BodySm,className:p,"data-testid":"rewards-points-balance-value"},H),h[13]=H,h[14]=p,h[15]=L):L=h[15];let U;h[16]!==C||h[17]!==L||h[18]!==A?(U=t.createElement(r.a,{className:"flex items-center gap-1",onClick:C},A,L),h[16]=C,h[17]=L,h[18]=A,h[19]=U):U=h[19];let q;h[20]!==$||h[21]!==I||h[22]!==g||h[23]!==M?(q=$&&g&&t.createElement(r.a,{className:"cursor-pointer flex items-center hover:text-text-alternative",onClick:I},t.createElement(n.I,{name:l.$M.Close,size:l.lK.Sm,"aria-label":M("close")})),h[20]=$,h[21]=I,h[22]=g,h[23]=M,h[24]=q):q=h[24];let D;return h[25]!==U||h[26]!==q||h[27]!==P||h[28]!==_||h[29]!==y?(D=t.createElement(r.a,{className:P,"data-testid":"rewards-points-balance",onMouseEnter:_,onMouseLeave:y},U,q),h[25]=U,h[26]=q,h[27]=P,h[28]=_,h[29]=y,h[30]=D):D=h[30],D}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);