/*! For license information please see 5346.e92ebcfbdac3de34d0e6.js.LICENSE.txt */ "use strict";(self.webpackChunkengine=self.webpackChunkengine||[]).push([[5346,5893,8521,7719],{97719:(e,t,n)=>{n.r(t),n.d(t,{default:()=>B});var r=n(28416),o=n(5439),c=n.n(o),a=n(9411),i=n.n(a),l=n(53804),s=n(35775),u=n.n(s),f=n(76252),d=n.n(f),p=n(75392),y=n.n(p),m=n(85893);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n div{font-size:1.2em;}"])}))),x=(0,r.memo)(i().p.withConfig({componentId:"sc-1xvbkw4-1"})(["text-transform:uppercase;color:rgba(var(--white),0.8);font:1em var(--mainFont);"])),j=(0,r.memo)(i().button.withConfig({componentId:"sc-1xvbkw4-2"})(["display:flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;padding:0;border:0 none;background:transparent;margin-right:0.125em;cursor:pointer;font-size:1em;"])),v=(0,r.memo)(i().span.withConfig({componentId:"sc-1xvbkw4-3"})(["display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer;"]));function w(e){var t,n,o=e.styles,c=e.currencyId,a=e.culture,i=e.balance,l=e.isToggleBalance,s=e.isLandscape,f=e.strBalance,p=(t=(0,r.useState)(!0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,c,a,i=[],l=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=c.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=p[0],w=p[1];return(0,m.jsxs)(h,{style:o.container,isLandscape:s,children:[l&&(0,m.jsx)(j,{"data-gtm":"Balance Hidden",style:o.hideSeeBtn,onClick:function(){return w(!g)},children:(0,m.jsx)(v,{style:o.iconBtn,children:g?(0,m.jsx)(y(),{color:o.color||"white"}):(0,m.jsx)(d(),{color:o.color||"white"})})}),s?(0,m.jsx)(x,{style:o.text,children:f||"Balance"}):null,(0,m.jsx)(u(),{currencyId:c,culture:a,text:g?i:"****",styles:o.amountBox})]})}w.defaultProps={isToggleBalance:!1,isLandscape:!1,currencyId:"",culture:"",balance:"",strBalance:"",styles:{container:{},hideSeeBtn:{},iconBtn:{},text:{},color:"",amountBox:{container:{},amount:{},currency:{}}}},w.propTypes={isToggleBalance:c().bool,isLandscape:c().bool,currencyId:c().oneOfType([c().string,c().number]),culture:c().string,strBalance:c().string,balance:c().oneOfType([c().string,c().number]),styles:c().shape({container:c().object,hideSeeBtn:c().object,iconBtn:c().object,text:c().object,color:c().string,amountBox:c().shape({container:c().object,amount:c().object,currency:c().object})})};const B=(0,r.memo)(w)},75251:(e,t,n)=>{var r=n(28416),o=Symbol.for("react.element"),c=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,c={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(c[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===c[r]&&(c[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:c,_owner:i.current}}t.Fragment=c,t.jsx=s,t.jsxs=s},85893:(e,t,n)=>{e.exports=n(75251)}}]);