(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[6944],{126944(__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__(515863);__webpack_require__.n(e);var t=__webpack_require__(67659);var a=__webpack_require__(833081);var l=__webpack_require__(301619);var r=__webpack_require__(330791);var n=__webpack_require__(954817);var i=__webpack_require__(117977);var s=__webpack_require__(33745);var c=__webpack_require__(308571);var o=__webpack_require__(617834);var u=__webpack_require__(458833);var v=__webpack_require__(826508);var d=__webpack_require__(910402);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,c.P)();let N=(0,a.wA)();let[g,T]=(0,t.useState)(!1);let A;h[0]!==N?(A=()=>{T(!1),N((0,o._q)(!0));try{(0,u.ni)(v.Uz,"true")}catch(e){}},h[0]=N,h[1]=A):A=h[1];let B=A;let I=`relative flex items-center${w?` ${w}`:""}${C?" cursor-pointer":""}`;let P;h[2]!==$?(P=$?()=>T(!0):undefined,h[2]=$,h[3]=P):P=h[3];let _;h[4]!==$?(_=$?()=>T(!1):undefined,h[4]=$,h[5]=_):_=h[5];let y=(E===undefined?!1:E)?d.x.Alternative:d.x.Default;let z;h[6]!==k||h[7]!==y?(z=t.createElement(d.M,{variant:y,startIconName:k}),h[6]=k,h[7]=y,h[8]=z):z=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(s.E,{variant:l.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]!==z?(U=t.createElement(n.a,{className:"flex items-center gap-1",onClick:C},z,L),h[16]=C,h[17]=L,h[18]=z,h[19]=U):U=h[19];let q;h[20]!==$||h[21]!==B||h[22]!==g||h[23]!==M?(q=$&&g&&t.createElement(n.a,{className:"cursor-pointer flex items-center hover:text-text-alternative",onClick:B},t.createElement(i.I,{name:r.$M.Close,size:r.lK.Sm,"aria-label":M("close")})),h[20]=$,h[21]=B,h[22]=g,h[23]=M,h[24]=q):q=h[24];let D;return h[25]!==U||h[26]!==q||h[27]!==I||h[28]!==P||h[29]!==_?(D=t.createElement(n.a,{className:I,"data-testid":"rewards-points-balance",onMouseEnter:P,onMouseLeave:_},U,q),h[25]=U,h[26]=q,h[27]=I,h[28]=P,h[29]=_,h[30]=D):D=h[30],D}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);