/*! For license information please see 5346.451fa6aa52f458696be0.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:()=>I});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),y=n(75392),p=n.n(y),m=n(83840),b=n(85893);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n div{font-size:1.2em;}"])}))),j=(0,r.memo)(i().p.withConfig({componentId:"sc-1xvbkw4-1"})(["text-transform:uppercase;color:rgba(var(--white),0.8);font:1em var(--mainFont);"])),v=(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;"])),w=(0,r.memo)(i().span.withConfig({componentId:"sc-1xvbkw4-3"})(["",";width:100%;height:100%;cursor:pointer;"],(0,m.styledFlex)({isInlineFlex:!0,alignItems:"center",justifyContent:"center"})));function B(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,y=(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 g(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)?g(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.")}()),m=y[0],h=y[1];return(0,b.jsxs)(x,{style:o.container,isLandscape:s,children:[l&&(0,b.jsx)(v,{"data-gtm":"Balance Hidden",style:o.hideSeeBtn,onClick:function(){return h(!m)},children:(0,b.jsx)(w,{style:o.iconBtn,children:m?(0,b.jsx)(p(),{color:o.color||"white"}):(0,b.jsx)(d(),{color:o.color||"white"})})}),s?(0,b.jsx)(j,{style:o.text,children:f||"Balance"}):null,(0,b.jsx)(u(),{currencyId:c,culture:a,text:m?i:"****",styles:o.amountBox})]})}B.defaultProps={isToggleBalance:!1,isLandscape:!1,currencyId:"",culture:"",balance:"",strBalance:"",styles:{container:{},hideSeeBtn:{},iconBtn:{},text:{},color:"",amountBox:{container:{},amount:{},currency:{}}}},B.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 I=(0,r.memo)(B)},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)}}]);