1"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[5314],{3138(e,a,n){n.r(a),n.d(a,{default:()=>O}),n(28706);var l=n(10619),s=n(44016),r=n(96540),c=n(71468),o=n(37957),t=n(48009),i=n(60609),d=n(56961),u=n(65575),m=n(16884),p=(n(9868),n(27495),n(25440),n(50375),n(2923)),h=n(24375),v=n(74848);const g=function(e){var a,n=e.price,l=e.showDecimal,r=void 0!==l&&l,o=e.isInline,t=void 0===o||o,i=(0,c.d4)(h.v9),d=(0,c.d4)(h.r7),u=(0,c.d4)(h.MS),m=!1,g=!1,x=n.amountUsd?n.amountUsd.toFixed(2):"0.00",f=r?2:0,j=n.currencyCode===i.code?n.amount||0:(n.amountUsd||0)*d.rate;j<0?(j*=-1,m=!0):m=!1,(0,p.zL)(i.code)&&j>99999?(j/=1e3,g=!0):g=!1;var y=(0,p.Z$)({amount:j,decimalPoints:f,currency:i}),b=y.length;return a=(0,p.zL)(i.code)||j>99999||!r?b>3?b%3:0:b-3>3?b%3:0,{amountDisplay:(0,s.ie)("".concat(a?"".concat(y.substr(0,a)).concat(i.separator):"").concat(y.substr(a).replace(/(\d{3})(?=\d)/g,"$1".concat(i.separator))),"fa"===u),amountUsdDisplay:x,priceAmountDisplay:g?t?(0,v.jsx)("span",{children:(0,s.ie)("".concat(i.separator,"000"),"fa"===u)}):(0,v.jsx)("sup",{children:(0,s.ie)("".concat(i.separator,"000"),"fa"===u)}):"0",zeroPlaceholder:g?(0,s.ie)("".concat(i.separator,"000"),"fa"===u):"",isNegative:m,showAdditionalZeroPlaceholder:g}};var x=n(3291);const f=function(e){var a=e.className,n=e.children;return(0,v.jsx)("div",{className:(0,l.$)("zH2N2wgJ6qDqkRV0jFAF",a),children:n})};var j=n(7502),y=n(55479);const b=function(e){var a=e.open,n=e.close,s=e.title,r=e.children;return(0,v.jsx)(j.A,{isOpen:a,onClose:n,children:(0,v.jsxs)("div",{className:(0,l.$)("vertical","LldY4g9yY1X3L2c9oG12"),children:[(0,v.jsx)(y.A,{className:"gJOmBsBmz_jAJkbjXwsg",onClick:n,"data-testid":"CloseIcon"}),(0,v.jsx)("p",{className:"yMSfyiTosUxcc8VZIjmK",children:s}),r]})})};function N(e,a){(null==a||a>e.length)&&(a=e.length);for(var n=0,l=Array(a);n<a;n++)l[n]=e[n];return l}n(52675),n(89463),n(2259),n(16280),n(76918),n(23418),n(64346),n(23792),n(44114),n(34782),n(23288),n(62010),n(26099),n(90906),n(38781),n(47764),n(62953);const _="t3oYsbe15Xu0lkIfTc2A",w="pgHzJZ28NXcMQxmI9Zsv",D="yQOnB8OYgiRyrsVe30eH",A="BQdkaRWks11B6l0hCG6M",k="TCdrYSaFfxHEgJseMHmP",U="q7FCQh1zzArEpEmaJ2Bg",C="NQgZpm31PPp0aGM6Zxc_",S="k2hze3ycCftebt2kGK72",z="q4X7Ei1QVJAorIwzROhw",$="pD4Z3LT0m1aF41HLJmw8",O=function(){var e,a,n,p,j=(0,c.d4)(h.MS),y=(0,c.d4)(h.YH),O=(0,c.d4)(h.Y$),P=(0,c.d4)(h.v9),Z=(0,c.wA)(),B=function(){var e,a,n=(e=(0,r.useState)(!1),a=2,function(e){if(Array.isArray(e))return e}(e)||function(e,a){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var l,s,r,c,o=[],t=!0,i=!1;try{if(r=(n=n.call(e)).next,0===a){if(Object(n)!==n)return;t=!1}else for(;!(t=(l=r.call(n)).done)&&(o.push(l.value),o.length!==a);t=!0);}catch(e){i=!0,s=e}finally{try{if(!t&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(i)throw s}}return o}}(e,a)||function(e,a){if(e){if("string"==typeof e)return N(e,a);var n={}.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)?N(e,a):void 0}}(e,a)||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.")}()),l=n[0],s=n[1];return{isOpen:l,openDialog:function(){s(!0)},closeDialog:function(){s(!1)}}}(),I=B.isOpen,T=B.openDialog,Y=B.closeDialog,J=g({price:{amount:null==O?void 0:O.ledger.availableBalance,amountUsd:null==O||null===(e=O.ledgerUsd)||void 0===e?void 0:e.availableBalance,currencyCode:null==O?void 0:O.ledger.currencyCode},showDecimal:!0}),L=J.amountDisplay,F=J.amountUsdDisplay,M=J.zeroPlaceholder,R=g({price:{amount:null==O?void 0:O.ledger.pendingBalance,amountUsd:null==O||null===(a=O.ledgerUsd)||void 0===a?void 0:a.pendingBalance,currencyCode:null==O?void 0:O.ledger.currencyCode},showDecimal:!0}),E=R.amountDisplay,Q=R.amountUsdDisplay,H=g({price:{amount:null==O?void 0:O.ledger.lifetimeEarning,amountUsd:null==O||null===(n=O.ledgerUsd)||void 0===n?void 0:n.lifetimeEarning,currencyCode:null==O?void 0:O.ledger.currencyCode},showDecimal:!0}),W=H.amountDisplay,q=H.amountUsdDisplay,X=g({price:{amount:null==O?void 0:O.ledger.lifetimeWithdrawn,amountUsd:null==O||null===(p=O.ledgerUsd)||void 0===p?void 0:p.lifetimeWithdrawn,currencyCode:null==O?void 0:O.ledger.currencyCode},showDecimal:!0}),G=X.amountDisplay,V=X.amountUsdDisplay,K=(0,d.S)().data,ee=(0,m.B)({idToken:K||""},{enabled:!!K}).data,ae=(0,u.W)({accessToken:(null==ee?void 0:ee.data.accessToken)||""},{enabled:!!ee}).data;return(0,r.useEffect)(function(){ae&&Z((0,x.d)({accessToken:(null==ee?void 0:ee.data.accessToken)||"",ledger:ae.data.ledger}))},[ae,ee]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:(0,l.$)("horizontal","DxD9JgfzZBajwAgrSbQ4"),children:[(0,v.jsxs)(f,{className:"NTlyDUF3cfv3Zazrjcyw",children:[(0,v.jsxs)("div",{className:(0,l.$)("horizontal",_),children:[(0,v.jsxs)("div",{className:"vertical",children:[(0,v.jsx)("p",{className:w,children:y.lifetime_earnings}),(0,v.jsxs)("p",{className:"s3NlXRa5SgK7z_RCjke4",children:["USD ",q]}),(0,v.jsx)("p",{className:D,children:(0,s.sS)(y.approximate,j,"".concat(P.code," ").concat(W).concat(M))})]}
1),(0,v.jsxs)("div",{className:(0,l.$)("vertical",U),children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{className:w,children:y.available_balance}),(0,v.jsxs)("p",{className:(0,l.$)("center-h",k,D),children:[(0,v.jsxs)("strong",{className:A,children:["USD ",F]})," ",(0,s.sS)(y.approximate,j,"".concat(P.code," ").concat(L).concat(M))," "]})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{className:w,children:y.pending_balance}),(0,v.jsxs)("p",{className:(0,l.$)("center-h",k,D),children:[(0,v.jsxs)("strong",{className:A,children:["USD ",Q]}),(0,s.sS)(y.approximate,j,"".concat(P.code," ").concat(E).concat(M))]})]})]})]}),(0,v.jsx)("div",{className:(0,l.$)("horizontal","ewWrbgfbsLPrnpjwxXa8"),children:(0,v.jsxs)("button",{className:(0,l.$)("horizontal","UDMlYN_FZnCyvJsRvhOP"),onClick:function(){T()},children:[(0,v.jsx)(i.A,{className:"PMgyTObcH_OR9bYNvhhQ","data-testid":"InfoIcon"}),(0,v.jsx)("p",{className:"tcu3mEprq_OCbdCl5sQx",children:y.learn_more_about_your_wallet})]})})]}),(0,v.jsx)(f,{className:C,children:(0,v.jsxs)("div",{className:_,children:[(0,v.jsx)("p",{className:w,children:y.withdrawn}),(0,v.jsxs)("p",{className:(0,l.$)("center-h",k,D),children:[(0,v.jsxs)("strong",{className:A,children:["USD ",V]})," ",(0,s.sS)(y.approximate,j,"".concat(P.code," ").concat(G).concat(M))]})]})})]}),(0,v.jsx)(f,{className:C,children:(0,v.jsxs)("div",{className:(0,l.$)("horizontal",U),children:[(0,v.jsx)(o.A,{alt:"Wallet Page in App",className:"v5D4YxP3IRt2AtUg3_Jw",src:"https://zen.wego.com/web/illustrations/phone-wallet.png"}),(0,v.jsxs)("div",{className:"jDKW5ndw_U1hwkYZcpnZ",children:[(0,v.jsx)("p",{className:"LC7RLo6Yeb3WFjc8s61A",children:y.download_the_wego_app}),(0,v.jsxs)("div",{className:"horizontal",children:[(0,v.jsx)("a",{"aria-label":"Apple App Store",href:"https://wegotravel.onelink.me/pGV9/c04fbc77",target:"_blank",rel:"noreferrer",children:(0,v.jsx)(o.A,{alt:"Apple App Store",className:S,isLazy:!0,src:(0,t.k1)("https://edge.wego.com/image/upload/v202010050/web/install_banner/app_store_btn_".concat("ar"===j?"ar":"en"),"h_96","w_296","f_auto","fl_lossy","q_auto:low")})}),(0,v.jsx)("a",{"aria-label":"Android Play Store",href:"https://wegotravel.onelink.me/pGV9/c04fbc77",target:"_blank",rel:"noreferrer",children:(0,v.jsx)(o.A,{alt:"Android Play Store",className:S,isLazy:!0,src:(0,t.k1)("https://edge.wego.com/image/upload/v202010050/web/install_banner/play_store_btn_".concat("ar"===j?"ar":"en"),"h_96","w_296","f_auto","fl_lossy","q_auto:low")})})]})]})]})}),(0,v.jsxs)(b,{title:y.whats_the_difference,open:I,close:Y,children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{className:z,children:y.available_balance}),(0,v.jsx)("p",{className:$,children:y.available_balance_explanation})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{className:z,children:y.pending_balance}),(0,v.jsx)("p",{className:$,children:y.pending_balance_explanation})]})]})]})}}}]);
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.