1"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6843],{3410(t,e,n){n.d(e,{A:()=>o});var a=n(52329);const o=(0,n(29011).Ay)(a.A)(t=>{let{theme:e}=t;return{"&.wa-color-maintext-main":{color:e.palette.mainText.main},"&.wa-font-size-12":{fontSize:12},"&.wa-font-size-13":{fontSize:13},"&.wa-font-size-14":{fontSize:14},"&.wa-font-size-16":{fontSize:16},"&.wa-font-size-18":{fontSize:18},"&.wa-font-size-20":{fontSize:20},"&.wa-font-size-22":{fontSize:22},"&.wa-font-size-24":{fontSize:24},"&.wa-opacity-40":{opacity:.4}}})},7961(t,e,n){n.d(e,{A:()=>C});var a=n(2046),o=n(29011),i=n(4602),r=n(8145),s=n(48738),l=n.n(s),c=n(9950),d=n(81541),p=n(3410),u=n(52285),w=n(44414);const h=t=>{let{onIncrement:e,onDecrement:n}=t;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.A,{className:"wa-flex wa-size-16 wa-cursor-pointer wa-color-white","data-testid":"stepper-arrow-up",fontSize:"small",onClick:e,children:(0,w.jsx)(u.A,{className:"wa-font-size-20"})}),(0,w.jsx)(d.A,{className:"wa-flex wa-size-16 wa-cursor-pointer wa-color-white","data-testid":"stepper-arrow-down",fontSize:"small",onClick:n,children:(0,w.jsx)(p.A,{className:"wa-font-size-20"})})]})};var m=n(55317),f=n(32430),g=n(96685),b=n(21943),A=n(56460),y=n(10480),z=n(89059),x=n(24041);const S=(0,o.Ay)("div")(t=>{let{theme:e}=t;return{"&.wa-icon":{marginTop:-2,opacity:.6,[e.breakpoints.down(e.breakpoints.values.xs)]:{display:"none"}},"&.wa-icons-container":{display:"flex",gap:e.spacing(.5)}}}),v=(0,o.Ay)("form")(()=>({width:"100%"})),k=(0,o.Ay)(r.A,{shouldForwardProp:t=>"stake"!==t})(t=>{let{theme:e,stake:n}=t;return{textAlign:"center",justifyContent:"center",backgroundColor:A.Hm.FEATURED_PAGE.LIGHT_GREY_GLASS,borderRadius:A.ax[8],position:"relative",width:"100%",border:"1px solid transparent","&.wa-error":{border:"1px solid ".concat(e.palette.error.main)},"& .wa-opacity-1":{".wa-input-input":{color:e.palette.common.white},".wa-icon":{opacity:1},".wa-input-adornment-start p":{opacity:1}},"& .wa-white-border-hover":{border:"1px solid transparent","&:hover, &:focus-within":{border:"1px solid ".concat((0,i.X4)(e.palette.common.white,.2)),borderRadius:A.ax[8]}},"& .wa-input-root":{height:40,padding:e.spacing(.5,1.5)},"& .wa-input-root-48":{height:48},"& .wa-input-label-root":{left:e.spacing(-.5),top:e.spacing(-.5)},"& .wa-input-input":{marginBottom:e.spacing(.25),color:e.palette.common.white,fontSize:14,"&.wa-no-label-input":{marginBottom:0}},"& .wa-input-adornment-start":{marginRight:e.spacing(1),marginBottom:e.spacing(.25),"&.wa-no-label":{marginBottom:0,marginTop:"0 !important"}},"& .wa-input-adornment-end":{marginRight:e.spacing(.25)},"& .wa-input-adorned-start":{paddingLeft:e.spacing(1)},"& .wa-input-adorned-end":{paddingRight:e.spacing(1.5)},"& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button":{display:"none"},"& input[type=number]":{MozAppearance:"textfield"},"& input:-webkit-autofill":{WebkitBoxShadow:"none",WebkitTextFillColor:e.palette.common.white,WebkitBackgroundClip:"text !important",opacity:.6},"&.wa-os-pay":{"& .MuiInputBase-input":{display:"inline-block",width:n?"".concat(Math.min(n.length,13),"ch"):"73px",paddingTop:0,paddingBottom:0},"& .wa-input-root":{height:58,margin:"0 auto",padding:0,background:"transparent"},"& .wa-input-input":{fontSize:24,fontWeight:800},"&:hover, &:focus-within":{borderColor:n&&1===n.length?"".concat(e.palette.paymentMethod.textErrorColor):A.Hm.SUCCESS_GREEN}}}}),C=(0,c.forwardRef)((t,e)=>{let{dataTestId:n,stake:o,inputLabel:i,onUpdateStake:r,onStakeIncrement:s,onStakeDecrement:d,placeholder:p,inputClassName:u,adornedStartClassName:A,adornedEndClassName:C,shouldBlurWhenEnterPressed:N,error:E,hideStepperArrows:j,onWheel:R,isNewDeposit:D=!1,onClearAmount:I,hideClearAmountButton:L,isSuppressNativeKeyboard:B,onFocus:T,onBlur:W}=t;const[M]=(0,m.A)(),F=(0,c.useRef)(null),G=(0,c.useCallback)(t=>{F.current=t,"function"===typeof e?e(t):e&&(e.current=t)},[e]),H=(0,c.useCallback)(t=>{t.key===g.f.ENTER&&t.target.blur()},[]),U=(0,c.useCallback)(()=>{var t;if(D)return null===(t=F.current)||void 0===t?void 0:t.focus()},[D]),_=(0,c.useCallback)(t=>{r(t.target.value)},[r]);return(0,w.jsx)(v,{noValidate:!0,onSubmit:y.n0,children:(0,w.jsx)(k,{onClick:U,inputRef:G,stake:o,className:l()({"wa-os-pay":D},E?"wa-error":void 0),"data-testid":n||"wa-amount-input",onChange:_,value:(0,z.jz)(o)||"",margin:"none",variant:"filled",placeholder:p,label:i&&(0,w.jsx)(x.A,{className:"wa-font-size-12 wa-color-maintext-secondary",children:i}),onFocus:T,onBlur:W,onKeyDown:N?H:void 0,error:E,onWheel:R,slotProps:{input:{startAdornment:(0,w.jsx)(a.A,{className:l()("wa-input-adornment-start",{"wa-no-label":!i}),position:"start","data-testid":"dep-currency-symbol",children:(0,w.jsx)(x.A,{className:"".concat(D?"wa-font-size-20 wa-font-weight-800":"wa-opacity-60"," wa-color-white"),children:M})}),endAdornment:(0,w.jsxs)(S,{className:"wa-icons-container",children:[!D&&!!o&&!L&&(0,w.jsx)(S,{onClick:I,children:(0,w.jsx)(b.A,{className:"wa-inherit-background"})}),!j&&(0,w.jsx)(S,{className:"wa-icon",children:(0,w.jsx)(h,{onIncrement:s,onDecrement:d})})]}),disableUnderline:!0,hiddenLabel:!i,classes:{root:"wa-input-root ".concat(u),input:l()("wa-input-input",{"wa-no-label-input"
1:!i}),adornedStart:A||"wa-input-adorned-start",adornedEnd:C||"wa-input-adorned-end"}},htmlInput:{inputMode:B?"none":g.L.DECIMAL,step:f.az,min:0,onKeyDown:t=>{"ArrowUp"===t.key?(t.preventDefault(),s()):"ArrowDown"===t.key&&(t.preventDefault(),d())}},inputLabel:{classes:{root:"wa-input-label-root"}}}})})})},36515(t,e,n){n.d(e,{A:()=>a});const a=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(!(t instanceof Blob))throw new TypeError("Expected blob or file! ".concat(typeof t," given!"));if(n<0||a<0)throw new RangeError("Invalid width or height value!");if(e<=0)throw new RangeError("Quality must be higher than 0!");return new Promise(i=>{const r=o?(t=>"png"===t?"image/png":"webp"===t?"image/webp":"bmp"===t?"image/bmp":"gif"===t?"image/gif":"image/jpeg")(o):t.type,s=e<1?e:e/100,l=new FileReader;l.readAsDataURL(t),l.onload=()=>{const t=new Image;t.src=l.result,t.onload=()=>{const e=document.createElement("canvas"),o=((t,e,n)=>{if(e>0&&n>0)return{width:e,height:n};if(e>0){if(0===n)return{width:e,height:t.naturalHeight};const a=t.naturalWidth/e;return{width:e,height:Math.round(100*(t.naturalHeight/a+Number.EPSILON))/100}}if(n>0){if(0===e)return{width:t.naturalWidth,height:n};const a=t.naturalHeight/n;return{width:Math.round(100*(t.naturalWidth/a+Number.EPSILON))/100,height:n}}return{width:t.naturalWidth,height:t.naturalHeight}})(t,n,a);e.width=o.width,e.height=o.height,e.getContext("2d").drawImage(t,0,0,e.width,e.height),e.toBlob(t=>i(new Blob([t],{type:r})),r,s)}}})}},52285(t,e,n){n.d(e,{A:()=>o});var a=n(62824);const o=(0,n(29011).Ay)(a.A)(t=>{let{theme:e}=t;return{"&.wa-color-maintext-main":{color:e.palette.mainText.main},"&.wa-font-size-12":{fontSize:12},"&.wa-font-size-13":{fontSize:13},"&.wa-font-size-14":{fontSize:14},"&.wa-font-size-16":{fontSize:16},"&.wa-font-size-18":{fontSize:18},"&.wa-font-size-20":{fontSize:20},"&.wa-font-size-22":{fontSize:22},"&.wa-font-size-24":{fontSize:24},"&.wa-opacity-40":{opacity:.4}}})},52329(t,e,n){n.d(e,{A:()=>i});var a=n(65471),o=n(44414);const i=(0,a.A)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},62824(t,e,n){n.d(e,{A:()=>i});var a=n(65471),o=n(44414);const i=(0,a.A)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp")},64241(t,e,n){n.d(e,{A:()=>o});var a=n(10300);const o=()=>[(0,a.d4)(t=>t.customization.internationalSettings.walletSettings)]},89059(t,e,n){n.d(e,{UC:()=>c,jz:()=>d,tv:()=>l});var a=n(57093),o=n(56333),i=n(94598),r=n(65325),s=n(22151);const l=(t,e)=>{const{user:n,userLocation:a}=e,i=(0,s.AD)(n,a),l=i===r.qq.CANADIAN_DOLLAR?"narrowSymbol":void 0,c=a&&a===o.Gf.CANADA?o.wW.ENGLISH:a||o.Gf.GREAT_BRITAIN;return new Intl.NumberFormat(c,{currency:i,currencyDisplay:l,style:"currency"}).format(Number(t))},c=(t,e,n)=>{const a=t<0,o=a?-1*t:t;return"".concat(a?"-":t>0?"+":"").concat(n.formatMessage({id:"common.currencyValue"},{currency:e,value:o.toFixed(2)}))},d=t=>{let e=t;return i.AL.test(e)||""===e?(e="00"===e?"0":e,e=e.replace(a.KE,a.y0),e):null}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.