text: /*! For license information please see 3.2e642df1.chunk.js.LICENSE.txt */
  (this.webpackJsonpui=this.webpackJsonpui||[]).push([[3],{1e3:function(e,t,n){},1001:function(e,t,n){},1002:function(e,t,n){},1003:function(e,t,n){},1004:function(e,t,n){},1007:function(e,t,n){},1008:function(e,t,n){},1009:function(e,t,n){},1010:function(e,t,n){},1011:function(e,t,n){},1012:function(e,t,n){},1035:function(e,t,n){},1036:function(e,t,n){},1037:function(e,t,n){},1044:function(e,t,n){},1045:function(e,t,n){},1046:function(e,t,n){},1047:function(e,t,n){},1048:function(e,t,n){},1049:function(e,t,n){},1050:function(e,t,n){},1051:function(e,t,n){},1052:function(e,t,n){},1053:function(e,t,n){},1054:function(e,t,n){},1055:function(e,t,n){},1056:function(e,t,n){},1057:function(e,t,n){},1059:function(e,t,n){},1060:function(e,t,n){},1061:function(e,t,n){},1062:function(e,t,n){},1067:function(e,t,n){},1068:function(e,t,n){},1069:function(e,t,n){},1070:function(e,t,n){},1071:function(e,t,n){},1072:function(e,t,n){},1073:function(e,t,n){},1074:function(e,t,n){},1076:function(e,t,n){},1077:function(e,t,n){},1078:function(e,t,n){},1079:function(e,t,n){},1083:function(e,t,n){},1181:function(e,t,n){},1182:function(e,t,n){},1183:function(e,t,n){var r={"./flags/CN.svg":563,"./flags/GB.svg":562,"./flags/ID.svg":564,"./flags/TH.svg":565,"./flags/US.svg":561,"./flags/VN.svg":1184,"./flags/readme.md":1185,"./google2factor/google2factor.png":1186,"./google2factor/google2factor@2x.png":1187,"./google2factor/google2factor@3x.png":653,"./icons/cimb-niaga-icon.png":1188,"./icons/icon-activity.svg":496,"./icons/icon-alert.svg":554,"./icons/icon-arrow-next.svg":551,"./icons/icon-arrow-prev.svg":550,"./icons/icon-arrows.svg":1189,"./icons/icon-balance.svg":493,"./icons/icon-barcode.svg":518,"./icons/icon-buy-big.svg":1190,"./icons/icon-buy.svg":529,"./icons/icon-calendar.svg":519,"./icons/icon-cancel.svg":522,"./icons/icon-caret-next.svg":514,"./icons/icon-caret-prev.svg":513,"./icons/icon-center.svg":546,"./icons/icon-check.svg":525,"./icons/icon-checkbox.svg":547,"./icons/icon-clear.svg":540,"./icons/icon-close.svg":528,"./icons/icon-contacts.svg":497,"./icons/icon-conversion.svg":559,"./icons/icon-copy.svg":535,"./icons/icon-deposit-with-border.svg":507,"./icons/icon-deposit.svg":533,"./icons/icon-diamond.svg":1191,"./icons/icon-dollars-circle.svg":1192,"./icons/icon-dollars.svg":1193,"./icons/icon-double-caret-next.svg":516,"./icons/icon-double-caret-prev.svg":515,"./icons/icon-download.svg":523,"./icons/icon-download2.svg":524,"./icons/icon-dropdown.svg":517,"./icons/icon-export.svg":541,"./icons/icon-eye.svg":520,"./icons/icon-filled-star.svg":537,"./icons/icon-friends.svg":503,"./icons/icon-gift.svg":1194,"./icons/icon-green-check.svg":543,"./icons/icon-heart.svg":502,"./icons/icon-history.svg":1195,"./icons/icon-home.svg":494,"./icons/icon-info.svg":521,"./icons/icon-key-big.svg":549,"./icons/icon-key.svg":498,"./icons/icon-market.svg":495,"./icons/icon-menu-toggle.svg":548,"./icons/icon-menu.svg":555,"./icons/icon-nav-buy-sell.svg":485,"./icons/icon-nav-dashboard-on.svg":488,"./icons/icon-nav-exchange.svg":486,"./icons/icon-nav-notification.svg":545,"./icons/icon-nav-settings.svg":491,"./icons/icon-nav-trading.svg":489,"./icons/icon-nav-transactions.svg":487,"./icons/icon-nav-user.svg":490,"./icons/icon-nav-wallet.svg":492,"./icons/icon-open-buy-big.svg":511,"./icons/icon-open-sell-big.svg":512,"./icons/icon-paint.svg":504,"./icons/icon-pending.svg":552,"./icons/icon-plus.svg":556,"./icons/icon-receive-token-qr.svg":510,"./icons/icon-receive-with-border.svg":506,"./icons/icon-receive.svg":532,"./icons/icon-refresh.svg":527,"./icons/icon-reports.svg":499,"./icons/icon-safe.svg":1196,"./icons/icon-search.svg":539,"./icons/icon-security.svg":500,"./icons/icon-sell-big.svg":1197,"./icons/icon-sell.svg":530,"./icons/icon-send-token.svg":509,"./icons/icon-send-with-border.svg":505,"./icons/icon-send.svg":531,"./icons/icon-settings.svg":553,"./icons/icon-simple-check.svg":526,"./icons/icon-star.svg":536,"./icons/icon-stop.svg":538,"./icons/icon-tasks.svg":501,"./icons/icon-tick.svg":557,"./icons/icon-wallet.svg":1198,"./icons/icon-warning-check.svg":542,"./icons/icon-withdraw-with-border.svg":508,"./icons/icon-withdraw.svg":534,"./icons/icon-world.svg":560,"./icons/icon-x.svg":558,"./icons/icon-zipcrew.svg":1199,"./icons/icon-zipup.svg":1200,"./icons/logo-powered.svg":544,"./icons/logo.svg":1201,"./icons/mandiri-icon.png":1202,"./icons/permata-icon.png":1203,"./login-background-light.svg":1204,"./login-background.svg":1205,"./logos/cimb_niaga.png":1206,"./logos/mandiri.png":1207,"./logos/permata.png":1208};function a(e){var t=c(e);return n(t)}function c(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=c,e.exports=a,a.id=1183},1184:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/VN.40fade36.svg"},1185:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/readme.d7b496e9.md"},1186:function(e,t,n){"use strict";n.r(t),t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAACGVJREFUWAmlmEtolUcUx79cr2/zMEZQE8VKqk2QGrCbilXqY1dra7FIQUQhSJemdSEoZKMoEV10WVRUrBKrVnSnbagt3RTBLOqDSn21xGfMw/cr/f/G+7/O/RKNtgfmOzNnzuM/58zMd+9XlPwPam5urpT5lGfPnlU/efJkcTabnYe7hw8fHld//9OnT8/39PScW7Zs2T//NUzRmxru2bNn0sCBAz8pKipaIADTBGTkgAEDEvWTx48fB3eSJZlMJowFvl0gW7WAo48ePTpUX19/4U1ivjbAffv21QjIKgUmU2UKnChoAheAEFOgAwc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qazU+KK7cjN0m7wLrUlM2cCTd5bVtMQ8MWXjdfxRAl8mpmw08IctuLz4mvLto+Wk/fZRCVtxeWiFXF3gi8SUhQtqRXfRfDxcHobVk+BbFiyPhxvEuE5Df8x/+PQ8u2n3aXtbafhRhnDTeFYWj6bdZdhowdJNsxW7Sz38FpaoK6jqxLjKqpdJmx4IjtOHVWJcYl5Y71h4o+kayGPEuMapqI38Uo5ykO6lHJKDxLiC0eMmvRiLY3HxMVovSLo3iWNx8Yn1tLECy3fiNYgpKvW49xYCfr2su2TzelmZAbvq4nHK5jXviRas4AFXoYgdWOmkuQEcwTzxVlMmd6BBzXZna4HZVReGYzauWWHtohWmm9WYnoC4ezjNFzoRGKNpxONRYnqJddzVSfUQFiDPGe8hvt2llzQpRdzVSW3BCmHJsGBYMh8f54vV8a6J1BasED+I66j5hET+HOxUXNCxwED8MK6/ZZHz46Bs447p2EXrCHc9KRZnickSiFunLslEYMAiZ0om4oLMBAZC5N0UiMwDr87AgKprt6yTqcBAnn3C6LpCTBqaIu2Rg9fMyFxgwCKnBqLu6Wa0bKKrUbQJFFTOupwiJgm0US0PcUEuAivkvOkR4rNQUaBNjqCN1OvY8yAXFx2GXfYqGtTlBIYtuVqwQnPZON24lq1ZWW2tF+KCnliwjrTmP1DEA1BLToN6ZLU6PRdYIR+hiGPmCpWbBgUn6Ru0FsEMGG6T8crHohd0YgZ4gdBznvtMewUStm8u2oRsnElyK0Zj8ITpxamiueLCCazwgsFYlQKhq1RMGhQ8EaGe57FsNxRWYB1N7Am57NfJDIiIacVCi6rjhMBhpBvHJUPb5bJC+dCkQNDLFNxB3yDHcFLgMF5wpeeoTFjfKpcqVSK+tkwrky5NmT6iQFCsz7tgoUl8DjGuRwW32cfnAAAAAElFTkSuQmCC"},1189:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-arrows.e9ad3e12.svg"},1190:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-buy-big.432c072a.svg"},1191:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-diamond.164e799f.svg"},1192:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-dollars-circle.3857c7a0.svg"},1193:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-dollars.786c7eb9.svg"},1194:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-gift.9cf5fc24.svg"},1195:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-history.e5cffef6.svg"},1196:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-safe.24cadd63.svg"},1197:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-sell-big.281d7a1a.svg"},1198:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-wallet.86277f35.svg"},1199:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-zipcrew.0c73ced6.svg"},1200:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-zipup.7bb9d209.svg"},1201:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/logo.eced24c5.svg"},1202:function(e,t,n){"use strict";n.r(t),t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA4ySURBVHgB7Z1tjFxVHcafOzPdwta2UywKpQtToEpfgK1Cg9XY2YjR+qVbQYyJoVsjiUZit8Evmsh2MQG/NNtVSExQu4sfDKSkxS9qgOzURBFoslu1gCHYgZZC5KWzLZS2uzuX/3PvOdOzszO78z73zp5fcvbenbn33Jfn/F/OuS/joAVwXTcuk04pCSk3S4mr+YRaJK5KPmkpGaMcUdMxFsdxMgg5DkKICJqEL+hmXBS2HqThi30IvuAphIxQCKwstEfKVviCxtEcaNEpKU9xKoKnEXACK3CeqEkEk5SUYQRY7MAJrNzvdindaJ6lVsKQlOEwuvGGQGGljLjh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g2NQmLN0uglpAvfzSj2dAtTlYn1Rku2eCB4/0v23N2+VFLYCIk1E66jHtcrG8y/jGGsQrjAZM/O5bAhsmbX6CW8XLoSynFxOfg+lNs3RkqGRiGxZqLs/QfKCmyOi0OdcDkZsdhzM+xzviGy5mNudx3leL34bBAKr5/2C7dnWlhn7XvDZM3weNtfTwKbCdchrBK4wBt7lmxDoxBZ86Fyd/7meL58dDVZNQ2RyJ6bcsWhEc0ShSVrNrXwhK/rg9kXPoyQZ9V8gmFHX3vBnhVe+upklGkw6OcDy7kAnKw6gZDC1z93tBSX1dZqBxyfJFh7Hj7xLbCZufn+j1ThPJv/pf0mI1njagVa9lqrHXB88ryXrNnJsrZwMNf8hDLpmkxOorfV2EQlRNb8snWdlR+WvUeHWUEJXRFkPjWHrkYjekOwvoqgpGrZS6lWtAmL2eGHSuT5e1fQ3JDTCxoKX5XAOeI3qXLi4Y4G5dE0bRAhubH0yKWfIZNN3hfiEhURmAiTyCGgIuISFROYqItcESomLlFRgQkmMhVDhlBnOby8koRKRMUFJpjIcXY4jpDdLr6GUF35eT8lSK9URWCCiRxjB7psL4Y6btD4dllFDC9Uba9K+oZZ24lVNpdcYeh3s79a4hJVi2ArLJoHYCRfMdQh9OlXJmzVt84IRGDCtOxB1l7E/Q2J6nk+d6UEJjDnPo7mBAxhhxEggQvMMcfMFM0xrG74RQRHg4paZSDbZu2EtjqZYW1QM+7PXDNqFsFWtGL/TLeajyHcKBWxSgjMMYWOI5x9NI1naQsMpaxYKYGtaEY1bIA12qRS1eujSEi66PpU0MmTV5QV2AoT+zl2oKaChZOoNNQhYUdVT5xCIbAVJnY/DBvfZx6rHd183xLaKG5U1UiVETqBnZj9dr/Z6GbXMUvzQ8LSfm8eR6tZRgyCPwEvvDTG/CVvgAAAAABJRU5ErkJggg=="},1204:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/login-background-light.6aa98db9.svg"},1205:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/login-background.17724195.svg"},1206:function(e,t,n){"use strict";n.r(t),t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAABECAYAAAAShjU0AAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABgFSURBVHgB7Z1PbBzXfcd/b2Ypx5Jbb0L60CCWlpcWLRpohfTgpgWyzKEB3AaiER8KpKioIHUvBUQBTSGLgrWCSTmoC4hse6mBRlSBADkEMNUCPUbrQ90ckopGigDthUsmRQuIm27c2HHEnXn9/WZnqeXOezNv/r/ZfR9gRWp3uFzOvHm/3/v+/jy2tnCOgyEIg+7Go/1FMBgMBsNUY4HBYDAYDDOMMYQGg8FgmGmMITQYDAbDTGMMocFgMBhmGmMIDQaDwTDTGENoMBgMhpnGGEKDwWAwzDTGEBoMBoNhpjGG0GAwGAwzjTGEBoPBYJhpaioHLX72BdCRvXe/C7PAar1Rf9p2WhZnDXRdzgGHOmeszgC/AvQZ533OYJ9zvssde/fr/W4XDAaDwaCEmiH83Rfg819bBd34zl9uwnfe3IRp5NrCp1o2WBfR4C2joWt4i3fmv8hOfIv/MO8rw69Q47A2f64LwDuOY92KaxSv1RsNq+auRB1HRveN3o92wo65sdBoueC2IAEWWJ31w24HMuT6wtk2JOT24UE76pg07y/CZbyLJ7rrMN5/89F/7YLBkAK6t2HOadmcnefAGjhpNOl5xqFBX9GZ7uL3ffwWH+hUc/6e69idWXCslQwhGZzF33lBu5Xh5/9iFT766fvw7lvfgGmAVn6na+4VXPmt4kqvTs+xJC3RGQ1stmLX+MrawrmOA86trx/+uKP0szVooFm9Gf0rYBu/hBpCMoIq7yWCA/8cfulARlyvN5oMeKLP4tOOOiDp3yoDJyz/KzoV8+do1Y+Tk3svj8npBjpeHGzh52c4ftZVx09C1hbO3sHf1Bx/zuXuVpSzdfzz82fvoifYGH/uMWNX33zUzc2BGDqN/A7z79URHwzYS5v9bh80gMY91NyLeG5WPIeaD6Nh3siamFtGBtH/X4sca9t3rDn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v4gNdOjZ4JBS5ALBmJzsoM/BRv3/6LFwwSLTRp70K05gFXMo9vA4bieFxeZJfZk5gwa4APtBb+BBvQw2CgUK9j9bcC6ZjU+EPBoUFWzQabbiAkG+ZKrnaKk+aIYgqzffeyg4gVbzF0waGmSIc1lcR8qd+5uq1A3y7Y2Y6Lx714UzK6wq1pXl6Gjzx/UK78i+wSJgY9y28DtQy2REANH51u8Qu1Pjl+G/3o/fe6o7Y5gMBk4MVcW/g+0HR7YWUn8AcYmLZg8LbA1MXXJY1QZP04p3cQRGm4VHb7kze+MAHeJNTlMMHRWZOZ6pDWYsodOtDrwO6N3DdIV6Pd7Fls8/XgVkk/h90YzxCnSxbRwAAAABJRU5ErkJggg=="},1208:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/permata.7f1f3033.png"},1209:function(e,t,n){},1210:function(e,t,n){},1212:function(e,t,n){},1214:function(e,t,n){},1215:function(e,t,n){},1216:function(e,t,n){},1217:function(e,t,n){},1234:function(e,t,n){},1235:function(e,t,n){},1242:function(e,t,n){},1244:function(e,t,n){},1245:function(e,t,n){},1246:function(e,t,n){},1248:function(e,t,n){},1250:function(e,t,n){},1251:function(e,t,n){},1294:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),c=n(49),i=n.n(c),s=n(265),o=n(674),l=n(273),u=n(47),d=n(48),b=n(267),p=n(266),j=n(1286),m=n(709),f=n.n(m),h=n(46),O=n.n(h),x=n(35),g=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={previousLanguage:e.props.i18n.language},e}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(e,t){this.state.previousLanguage!==this.props.i18n.language&&(this.setState({previousLanguage:this.props.i18n.language}),window.localStorage.getItem("zmToken")&&Object(x.C)({token:window.localStorage.getItem("zmToken"),language:this.props.i18n.language}).catch((function(){})),f()(this))}},{key:"getChildContext",value:function(){var e=this;return{t:function(t,n){return e.props.t(t,n)}}}},{key:"render",value:function(){return this.props.children}}]),n}(a.a.Component);g.childContextTypes={t:O.a.func.isRequired};var v=Object(j.a)()(g),y=n(422),C=n(94),w=Object(y.a)({basename:Object(C.a)()}),S=n(277),k=n.n(S),I=n(426),A=n.n(I),P=(n(710),n(711)),T=n.n(P),E=function(e){return new k.a(isNaN(e)?0:e)},R=new(function(){function e(){Object(u.a)(this,e),this.locale=null,this.abbreviations=null,this.delimiters=null,this.getDecimalPlaces=null}return Object(d.a)(e,[{key:"init",value:function(e){this.locale=e.locale,this.getDecimalPlaces=e.getDecimalPlaces;var t=this.getLocaleSettings(),n=t.delimiters,r=t.abbreviations;this.abbreviations=r,this.delimiters=n,k.a.config({ROUNDING_MODE:e.roundingMode?e.roundingMode:k.a.ROUND_FLOOR,FORMAT:{decimalSeparator:n.decimal,groupSeparator:n.thousands,groupSize:3}})}},{key:"currency",value:function(e,t){var n=E(e);return n.symbol=t,n}},{key:"formatPercentageValue",value:function(e){var t=E(e);return"".concat(t.toFormat(2),"%")}},{key:"formatToThousands",value:function(e){var t=E(e);return"".concat(t.div(1e3).toFormat(2)).concat(this.abbreviations.thousand)}},{key:"formatNumberToLocale",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=E(e);if("string"===typeof t){var c=this.getDecimalPlaces();n=c[t]}else n=t;return 0!==e?a.toFormat(n,r):e}},{key:"parseNumberToLocale",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.getLocaleSettings(t),a=new RegExp("\\".concat(r.delimiters.thousands),"g"),c=e.toString().replace(a,"");if(""===c||c===r.delimiters.decimal)return 0;var i=T()(c,r.delimiters);return n&&i<0?NaN:i}},{key:"replaceZeroWithDash",value:function(e){return 0===e?"-":e}},{key:"truncateToDecimals",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=E(e);return r.decimalPlaces(t,n)}},{key:"getParsedDecimal",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=n?this.getLocaleSettings(n).delimiters:this.delimiters,a=r.thousands,c=r.decimal,i=n?k.a.clone({FORMAT:{decimalSeparator:c,groupSeparator:a,groupSize:3}}):k.a,s=new i(isNaN(e)?0:e),o=s.toFormat().split(c),l=o[0],u=o.length>1&&o[1].length?o[1]:"0";u.length>t&&(u=u.substr(0,t));var d=u.length<t?"0".repeat(t-u.length):"";return{negative:s.isNegative(),units:l,decimalSeparator:c,decimals:u,padding:d}}},{key:"getLocaleSettings",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t||this.locale;try{e=A.a.localeData(n)}catch(r){try{e=A.a.localeData(n.split("-")[0])}catch(r){e=A.a.localeData("".concat(n,"-").concat(n))}}return e}}]),e}()),N=R.init.bind(R),M=R.currency.bind(R),D=R.formatPercentageValue.bind(R),L=(R.formatToThousands.bind(R),R.formatNumberToLocale.bind(R)),F=R.parseNumberToLocale.bind(R),U=R.replaceZeroWithDash.bind(R),B=R.truncateToDecimals.bind(R),z=R.getParsedDecimal.bind(R),G=(R.getLocaleSettings.bind(R),n(478)),W=n(676),Z=n(1),q=n.n(Z),V=n(3),_="APP_INIT",H=function(){return{type:_}},Y=n(11),K=n(427),Q=n(77),J=n(34),X=n(328),ee=n(713),te=n(712),ne=function(){function e(t,n){var r=this,a=n.onopen,c=void 0===a?function(){}:a,i=n.onclose,s=void 0===i?function(){}:i,o=n.defaultCallback,l=void 0===o?function(e){}:o;Object(u.a)(this,e),this.isConnected=!1,this.seq=0,this.callbacks={},this.defaultCallback=l,this.ws=Object(ee.webSocket)({url:t,WebSocketCtor:te,openObserver:{next:function(e){r.isConnected=!0,c(e)}},closeObserver:{next:function(e){r.isConnected=!1,s(e)}}}),this.ws.subscribe((function(e){3!==e.m&&r.callbacks[e.i]&&(r.callbacks[e.i](e),delete r.callbacks[e.i])}))}return Object(d.a)(e,[{key:"RPCCall",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.defaultCallback,r={m:/^Subscribe/i.test(e)?2:/^Unsubscribe/i.test(e)?4:0,i:this.seq,n:e,o:JSON.stringify(t)};this.callbacks[this.seq]=n,this.seq+=2,this.ws.next(JSON.stringify(r))}},{key:"RPCPromise",value:function(e,t){var n=this;return new Promise((function(r,a){n.isConnected?n.RPCCall(e,t,(function(e){var t;try{t=JSON.parse(e.o)}catch(n){t=e.o}5===e.m?a(t):r(t)})):a(new Error("Connection is not established"))}))}},{key:"closeConnection",value:function(){this.ws.socket.close()}}]),e}(),re=["SUPERUSER","AdminUI","UserOperator","Trading","Withdraw","Deposit","AccountOperator","Remarketer"],ae=[].concat(Object(Q.a)(["AccountOperator","AccountReadOnly","Activate2FA","AddAccount","AddAccountHold","AddBalanceReconciliationInfo","AddDepositTicketAttachment","AddEditAccountBadge","AddEditExchange","AddEditExchangeInstrument","AddEditOMS","AddEditOperatorEmail","AddEditXPSubscriptionKey","AddInstrument","AddInstrumentAttributes","AddOperator","AddOperatorConfig","AddOperatorOMS","AddProduct","AddProductAttributes","AddUserAccount","AddUserAffiliateTag","AddUserAPIKey","AddUserAPIKeyPermission","AddUserInstrumentPermissions","AddUserMarketDataPermission","AddUserPermission","AddUserProductPermissions","AddUserReportTicket","AddVerificationLevelConfig","AddWithdrawTicketAttachment","AdminUI","AM_AddEditAccountAssetInfo","AM_AddEditAccountProviderInfo","AM_AddEditAssetInfo","AM_AddEditUser","AM_GetAccountAssetDepositInfo","AM_GetAccountIdByDepositInfo","AM_GetAccountInfo","AM_GetAccountProvidersInfoList","AM_GetAccountProvidersTypeList","AM_GetAccountTransactions","AM_GetAllAccountDepositInfo","AM_GetAllAccounts","AM_GetAllPending","AM_GetAssetInfo","AM_GetAssetInfoList","AM_GetCurrentSequenceNumber","AM_GetDefaultAccountProviderInfo","AM_GetHoldInfo","AM_GetTransactionsReplay","AM_GetWithdrawFormTemplate","AM_GetWithdrawFormTemplateTypes","AM_SubmitWithdrawForm","AM_SubscribeToActions","AM_TransactionSetRequest","Authenticate2FA","AuthenticateUser","CallAccountProviderAdminFunction","CancelAllOrders","CancelFailedWithdrawTicket","CancelOrder","CancelQuote","CancelReplaceOrder","CancelTransferFunds","CancelUserReport","CancelWithdraw","CoinsOAuthAuthenticateUser","Company","ConfirmRequestTransferFunds","ConfirmTransferFunds","ConfirmUserEmail","ConfirmWithdraw","CreateAmlProviderConfig","CreateAssetManagerWalletTicket","CreateDepositTicket","CreateOperatorLoyaltyFeeConfig","CreateQuote","CreateServiceInfo","CreateUser","CreateValidatorConfig","CreateWithdrawTicket","DeleteAmlProviderConfig","DeleteOperatorLoyaltyFeeConfig","DeleteServiceInfo","DeleteValidatorConfig","DeleteVerificationLevelConfig","Deposit","Disable2FA","DownloadDocument","DownloadDocumentSlice","EditInstrumentVerificationLevelConfig","EditOperatorConfig","EditVerificationLevelConfig","EnableGoogle2FA","EnableXP2FA","ForceUserLogoff","General_AddEditAssetManager","General_GetAssetManagers","GenerateTradeActivityReport","GenerateTransactionActivityReport","GenerateTreasuryActivityReport","GetAccountBadges","GetAccountConfig","GetAccountDepositTransactions","GetAccountFees","GetAccountInfo","GetAccountPositions","GetAccountProviderAdminFunctions","GetAccountProviderDetails","GetAccounts","GetAccountTrades","GetAccountTransactions","GetAccountWithdrawTransactions","GetAllAccountPositions","GetAllAssetManagerWalletTickets","GetAllBadges","GetAllBalanceReconciliationInfo","GetAllDepositRequestInfoTemplates","GetAllDepositTickets","GetAllOperatorConfigs","GetAllOperatorLoyaltyFeeConfigs","GetAllUserGroupPermissions","GetAllUserGroups","GetAllUserInstrumentPermissions","GetAllUserProductPermissions","GetAllWithdrawTickets","GetAmlProviderConfig","GetAmlProviderConfigsForOms","GetAssetManagerWalletTicket","GetAvailablePermissionList","GetBadgeAccount","GetBalanceReconciliationInfo","GetBook","GetDepositInfo","GetDepositRequestInfoTemplate","GetDeposits","GetDepositTicket","GetDepositTicketAttachment","GetDepositTickets","GetDistributions","GetEarliestTickTime","GetEmailSenderParams","GetExchanges","GetExchangeServiceIds","GetExchangeStopOrders","GetExchangeWorkingOrders","GetInstrument","GetInstrumentAttributes","GetInstruments","GetInstrumentVerificationLevelConfigs","GetL2Snapshot","GetLevel1","GetLoggedInUserBySessionToken","GetMarketSyncState","GetOMS","GetOMSAccountConfigKeys","GetOMSDepositFees","GetOMSFees","GetOMSs","GetOMSStatistics","GetOMSUserConfigKeys","GetOMSUsers","GetOMSUsersWithPermission","GetOMSWithdrawFees","GetOpenHolds","GetOpenOrders","GetOpenQuotes","GetOpenTradeReports","GetOpenWithdrawHolds","GetOperator","GetOperator2FAConfig","GetOperator2FAConfigs","GetOperatorById","GetOperatorConfig","GetOperatorEmail","GetOperatorEmails","GetOperatorLoyaltyFeeConfig","GetOperatorLoyaltyFeeConfigs","GetOperatorLoyaltyFeeConfigsForOms","GetOperatorOMSList","GetOperators","GetOperatorUsers","GetOrderFee","GetOrderHistory","GetOrderHistoryByOrderId","GetOrdersHistory","GetOrderStatus","GetProduct","GetProductAttributes","GetProducts","GetRecentAffiliateRegistrations","GetRequestTransfer","GetRequestTransferRequestsReceived","GetRequestTransferRequestsRequested","GetRequestTransfers","GetServerKVPStats","GetServerStats","GetServiceInfo","GetServiceInfos","GetTickerHistory","GetTradesHistory","GetTransfer","GetTransfers","GetTransfersReceived","GetTreasuryProductsForAccount","GetUnderReviewManualKYCUsers","GetUserAccountInfos","GetUserAccounts","GetUserAffiliateCount","GetUserAffiliates","GetUserAffiliateTag","GetUserAPIKeys","GetUserConfig","GetUserGroupPermissions","GetUserInfo","GetUserMarketDataPermissions","GetUserPermissions","GetUserReportTickets","GetUserReportTicketsByStatus","GetUserReportWriterResultRecords","GetValidatorConfig","GetValidatorConfigs","GetVenueInstruments","GetVerificationLevelConfigs","GetWithdrawFee","GetWithdraws","GetWithdrawTemplate","GetWithdrawTemplateTypes","GetWithdrawTicket","GetWithdrawTicketAttachment","GetWithdrawTickets","GetXPSubscriptionKey","Level1MarketData","Level2MarketData","MarketHalt","MarketMaker","MarketPause","MarketReopen","MarketResume","MarketReSync","MigrateUser","ModifyOrder","NoOperation","NoOperationFromGW","Operator","Ping","public","Public","QueryRemoteServices","RegisterUser","RejectRequestTransferFunds","Remarketer","RemoveAccountConfig","RemoveInstrumentAttributes","RemoveOperatorConfig","RemoveOperatorEmail","RemoveOperatorOMS","RemoveOperatorUser","RemoveProductAttributes","RemoveUserAccount","RemoveUserAPIKey","RemoveUserAPIKeyPermission","RemoveUserConfig","RemoveUserInstrumentPermissions","RemoveUserMarketDataPermission","RemoveUserProductPermissions","RemoveUserReportTicket","RemoveXPSubscriptionKey","RequestTransferFunds","ResetAllMarketDatas","ResetHolds","ResetMarketData","ResetPassword","ResetPassword2","ResetTradingLimits","ResetTreasuryLimits","ResubmitFailedWithdrawTicket","ReverseAccountHold","ReverseWithdrawHold","RevokeUserPermission","ScheduleTradeActivityReport","ScheduleTransactionActivityReport","ScheduleTreasuryActivityReport","SendAssetManagerSequenceReset","SendEmail","SendEndOfDay","SendExchangeOrderStateEvent","SendOrder","SetAccountConfig","SetAccountPendingDeposit","SetDefaultOperatorOMS","SetDistribution","SetOMSAccountConfigKey","SetOMSFee","SetOMSUserConfigKey","SetOMSWithdrawFee","SetOperator2FAConfig","SetOperatorEmail","SetUserConfig","SetUserGroupPermission","SetUserInfo","SetUserVerificationLevel","SubmitAccountLedgerEntry","SubmitBlockTrade","SubmitDepositTicketComment","SubmitWithdrawTicketComment","SubscribeAccountEvents","SubscribeLevel1","SubscribeLevel2","SubscribeTicker","SubscribeTrades","SUPERUSER","TakeSnapshot","TakeSnapshotAssetManager","TakeSnapshotMarketData","TakeSnapshotMatchingEngine","TestMatchingEngineSleep","Trading","TransferFunds","UnSubscribeLevel1","UnsubscribeLevel2","UnSubscribeTicker","UnSubscribeTrades","UpdateAccount","UpdateAmlProviderConfig","UpdateAssetManagerWalletTicket","UpdateDepositTicket","UpdateInstrument","UpdateOperator","UpdateOperatorLoyaltyFeeConfig","UpdateProduct","UpdateQuote","UpdateServiceInfo","UpdateUserAffiliateTag","UpdateValidatorConfig","UpdateWithdrawTicket","UserOperator","ValidateUserRegistration","WebAuthenticateUser","Withdraw"].filter((function(e){return!re.includes(e)}))),["RegisterNewUser","ResendVerificationEmail"]),ce=n(298),ie=n(282),se=n(285),oe=(n(317),function e(t){Object(u.a)(this,e),Object.assign(this,t)}),le=function e(t){Object(u.a)(this,e),this.UpdateId=t[0],this.NumberOfAccounts=t[1],this.UpdateDateTime=t[2],this.ActionType=t[3],this.LastTradePrice=t[4],this.NumberOfOrders=t[5],this.Price=t[6],this.ProductPairCode=t[7],this.Quantity=t[8],this.Side=t[9]},ue=function e(t){Object(u.a)(this,e),this.TradeId=t[0],this.InstrumentId=t[1],this.Quantity=t[2],this.Price=t[3],this.Order1Id=t[4],this.Order2Id=t[5],this.Timestamp=t[6],this.Direction=t[7],this.TakerSide=t[8]},de=function e(t){Object(u.a)(this,e),Object.assign(this,t)},be=function e(t){var n=this;Object(u.a)(this,e),this.level1InternalIds=[],this.observer=ie.Subscriber.create((function(e){n.level1InternalIds.push(e.instrumentId),t.subscribeLevel1(e.instrumentId,e.callback)}),(function(e){return console.log(e)}),(function(){return console.log("complete")})),this.observable=se.Observable.create((function(e){return t.ws.filter((function(e){return"Level1UpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e.next(new oe(n))})),function(){t.level1.level1InternalIds.forEach((function(e){return t.unsubscribeLevel1(e)}))}}));var r=ce.Subject.create(this.observer,this.observable);return r.level1InternalIds=this.level1InternalIds,r},pe=function e(t){var n=this;Object(u.a)(this,e),this.level2InternalIds=[],this.observer=ie.Subscriber.create((function(e){n.level2InternalIds.push(e.instrumentId),t.subscribeLevel2(e.instrumentId,e.depth,e.callback)}),(function(e){return console.log(e)}),(function(){return console.log("complete")})),this.observable=se.Observable.create((function(e){return t.ws.filter((function(e){return"Level2UpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o).map((function(e){return new le(e)}));e.next(n)})),function(){t.level2.level2InternalIds.forEach((function(e){return t.unsubscribeLevel2(e)}))}}));var r=ce.Subject.create(this.observer,this.observable);return r.level2InternalIds=this.level2InternalIds,r},je=function e(t){var n=this;Object(u.a)(this,e),this.tradesInternalId=[],this.observer=ie.Subscriber.create((function(e){n.tradesInternalId.push(e.instrumentId),t.subscribeTrades(e.instrumentId,e.history,e.callback)}),(function(e){return console.log(e)}),(function(){return console.log("complete")})),this.observable=se.Observable.create((function(e){return t.ws.filter((function(e){return"TradeDataUpdateEvent"===e.n})).subscribe((function(t){JSON.parse(t.o).forEach((function(t){return e.next(new ue(t))}))})),function(){t.trades.tradesInternalId.forEach((function(e){return t.unsubscribeTrades(e)}))}}));var r=ce.Subject.create(this.observer,this.observable);return r.tradesInternalId=this.tradesInternalId,r},me=function e(t){return Object(u.a)(this,e),this.observer=ie.Subscriber.create((function(){}),(function(e){return console.log(e)}),(function(){return console.log("complete")})),this.observable=se.Observable.create((function(e){t.ws.filter((function(e){return"AccountEvent"===e.n})).subscribe((function(t){e.next(t)}))})),ce.Subject.create(this.observer,this.observable)},fe=(n(735),function e(t){return Object(u.a)(this,e),this.observer=ie.Subscriber.create((function(){}),(function(e){return console.log(e)}),(function(){return console.log("complete")})),this.observable=se.Observable.create((function(e){t.ws.filter((function(e){return"OrderStateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e.next(new de(n))}))})),ce.Subject.create(this.observer,this.observable)});var he={getOMSs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];this.RPCCall("GetOMSs",{OperatorId:e},t)},getProducts:function(e){this.RPCCall("GetProducts",{OMSId:this.omsId},e)},getInstruments:function(e){this.RPCCall("GetInstruments",{OMSId:this.omsId},e)},authenticateUser:function(e,t,n){var r=this,a={UserName:e,Password:t};return this.isAuthenticated?console.log("Already authenticated"):this.RPCCall("AuthenticateUser",a,(function(e){var t=JSON.parse(e.o);t.Authenticated&&(r.isAuthenticated=!0,r.accountId=t.User.AccountId),n(t)}))},webAuthenticateUser:function(e,t){var n=this,r=e.SessionToken,a=e.username,c=e.password,i=e.authCode,s={};return r?s.SessionToken=r:(s.UserName=a,s.Password=c),i&&(s.authCode=i),this.RPCCall("WebAuthenticateUser",s,(function(e){n.userId=e.UserId,t(e)}))},subscribeLevel1:function(e,t){var n={OMSId:1,InstrumentId:e};this.RPCCall("SubscribeLevel1",n,t)},subscribeLevel2:function(e,t,n){var r={OMSId:1,InstrumentId:e,Depth:t};this.RPCCall("SubscribeLevel2",r,(function(e){var t=JSON.parse(e.o),r=Array.isArray(t)?t.map((function(e){return new le(e)})):[];n(r)}))},getUserInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userId,t=arguments[1];this.RPCCall("GetUserInfo",{UserId:e},t)},getUserAccounts:function(e,t){this.RPCCall("GetUserAccounts",{OMSId:e},t)},getAccountInfo:function(e,t){var n=e.AccountId,r=e.OMSId;this.RPCCall("GetAccountInfo",{AccountId:n,OMSId:r},t)},getAccountTransactions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2],r=arguments[3],a=arguments[4];this.RPCCall("GetAccountTransactions",{AccountId:e,OMSId:t,StartIndex:n,Count:r},a)},getRequestTransfers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1],n=arguments[2],r=arguments[3],a=arguments[4];this.RPCCall("GetRequestTransfers",{OMSId:e,OperatorId:t,PayerAccountId:n,Status:r},a)},getWithdrawTickets:function(e,t,n){this.RPCCall("GetWithdrawTickets",{OMSId:e,AccountId:t},n)},getOpenOrders:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accountId,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];this.RPCCall("GetOpenOrders",{OMSId:t,AccountId:e},n)},getOpenTradeReports:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];this.RPCCall("GetOpenTradeReports",{AccountId:e,OMSId:t},n)},getOpenQuotes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments[3];this.RPCCall("GetOpenQuotes",{AccountId:e,InstrumentId:t,OMSId:n},r)},getAccountPositions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accountId,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];this.RPCCall("GetAccountPositions",{OMSId:t,AccountId:e},n)},getOrderHistory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accountId,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments[3];this.RPCCall("GetOrderHistory",{OMSId:t,AccountId:e,Depth:n},r)},getAccountTrades:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accountId,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];this.RPCCall("GetAccountTrades",{OMSId:t,AccountId:e},n)},unsubscribeLevel1:function(e,t){var n={OMSId:1,InstrumentId:e};this.RPCCall("UnsubscribeLevel1",n)},unsubscribeLevel2:function(e,t){var n={OMSId:1,InstrumentId:e};this.RPCCall("UnsubscribeLevel2",n)},subscribeTrades:function(e,t,n){var r={OMSId:1,InstrumentId:e,IncludeLastCount:t};this.RPCCall("SubscribeTrades",r,(function(e){var t=JSON.parse(e.o).map((function(e){return new ue(e)}));n(t)}))},unsubscribeTrades:function(e,t){var n={OMSId:1,InstrumentId:e};this.RPCCall("UnsubscribeTrades",n)},subscribeAccountEvents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accountId,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.omsId;this.RPCCall("SubscribeAccountEvents",{OMSId:t,AccountId:e})},sendOrder:function(e,t){this.RPCCall("SendOrder",e,t)},cancelOrder:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.accountId,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments[3],a={OMSId:n,OrderId:e,AccountId:t};this.RPCCall("CancelOrder",a,r)},cancelAllOrders:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.accountId,n=arguments[2],r=arguments[3];this.RPCCall("CancelAllOrders",{OMSId:e,AccountId:t,InstrumentId:n},r)},getUserPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userId,t=arguments[1];this.RPCCall("GetUserPermissions",{UserId:e},t)},getUserAPIKeys:function(e,t){this.RPCCall("GetUserAPIKeys",{UserId:e},t)},getUserConfig:function(e,t){this.RPCCall("GetUserConfig",{UserId:e},t)},getOrderFee:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];this.RPCCall("GetOrderFee",e,t)}},Oe=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];for(var i in(e=t.call.apply(t,[this].concat(a))).omsId=1,e.level1=new be(Object(X.a)(e)),e.level2=new pe(Object(X.a)(e)),e.trades=new je(Object(X.a)(e)),e.accountEvents=new me(Object(X.a)(e)),e.orderEvents=new fe(Object(X.a)(e)),he)e[i]=he[i];return e}return Object(d.a)(n,[{key:"RPCCall",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.defaultCallback,r={m:0,i:this.seq,n:e,o:JSON.stringify(t)};this.callbacks[this.seq]=n,this.seq+=2,this.ws.next(JSON.stringify(r))}},{key:"RPCPromise",value:function(e,t){var n=this;return new Promise((function(r,a){n.RPCCall(e,t,(function(e){5===e.m?a(e):r(e)}))}))}}]),n}(ne);ae.forEach((function(e){Oe.prototype[e]=function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(r,a){t.RPCCall(e,Object(Y.a)({OMSId:1},n),(function(e){if(5===e.m)a(e);else try{var t=JSON.parse(e.o);r(t)}catch(n){e.o?r(e.o):r(e)}}))}))}}));var xe,ge,ve={connection:{},gateway:""},ye=function(e,t){var n=ve.gateway;ve.connection=new Oe(n,{onopen:e,onclose:t}),ve.connection.standardCallback=function(){}},Ce=ve,we=function(){function e(){Object(u.a)(this,e),this.subscription=null}return Object(d.a)(e,[{key:"initSubscribtion",value:function(e){throw Error("not implemented")}},{key:"subscribe",value:function(e){throw Error("not implemented")}},{key:"stop",value:function(){throw Error("not implemented")}},{key:"stopOne",value:function(e){throw Error("not implemented")}},{key:"unsubscribe",value:function(){this.subscription&&this.subscription.unsubscribe(),this.subscription=null}},{key:"stopAll",value:function(){this.unsubscribe(),this.stop()}}]),e}(),Se=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.AccountId,r=t.OMSId,Ce.connection.subscribeAccountEvents(n,r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"OrderStateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),ke=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.AccountId,r=t.OMSId,Ce.connection.subscribeAccountEvents(n,r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"OrderTradeEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),Ie=n(81),Ae=n(25),Pe="1",Te="0",Ee={market:{orderType:"1",displayName:Ae.c.extractT("Market Order")},limit:{orderType:"2",displayName:Ae.c.extractT("Limit Order")},stopMarket:{orderType:"3",displayName:Ae.c.extractT("Stop Market")},stopLimit:{orderType:"4",displayName:Ae.c.extractT("Stop Limit")},trailingStopMarket:{orderType:"5",displayName:Ae.c.extractT("Trailing Stop Market")},trailingStopLimit:{orderType:"6",displayName:Ae.c.extractT("Trailing Stop Limit")},reportBlockTrade:{orderType:"7",displayName:Ae.c.extractT("Report Block Trade")},fillOrKill:{orderType:"2",displayName:Ae.c.extractT("Fill Or Kill")},immediateOrCancel:{orderType:"2",displayName:Ae.c.extractT("Immediate or Cancel")},reserveOrder:{orderType:"2",displayName:Ae.c.extractT("Reserve Order")}},Re=(Ee.market,Ee.limit,Ee.stopMarket,Ee.stopLimit,Ee.trailingStopMarket,Ee.trailingStopLimit,Ee.fillOrKill,Ee.immediateOrCancel,Ee.reserveOrder,xe={},Object(Ie.a)(xe,Pe,"Sell"),Object(Ie.a)(xe,Te,"Buy"),xe),Ne="Maker",Me="Taker",De="MakerFee",Le="TakerFee",Fe=n(12),Ue=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Pe,s=new k.a(e),o=new k.a(r),l=s.minus(o.times(s)),u=new k.a(l),d=new k.a(0),b=new k.a(0);return a=Object(Q.a)(a),i===Te&&a.reverse(),a.length&&a.some((function(e){var r=new k.a(e.Quantity),a=new k.a(e.Price),c=r.times(a);if((d=d.plus(c)).lt(l))b=b.plus(r);else{var i=l.minus(d.minus(c));b=b.plus(i.div(a)),t=a}return u=u.minus(c),n=e,d.gte(l)})),c&&u.gt(0)&&a.length&&(b=b.plus(u.div(n.Price)),d=l),d.lt(l)?{Price:s,Quantity:"-"}:{Price:s,Quantity:b,LimitPrice:t||(n?"".concat(n.Price):"0")}},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0,c=new k.a(e),i=new k.a(t),s=c.plus(i.times(e)),o=new k.a(0),l=new k.a(s),u=new k.a(0),d=Object(Q.a)(n);return a===Te?d.sort((function(e,t){return e.Price-t.Price})):d.sort((function(e,t){return t.Price-e.Price})),d.some((function(e){var t=new k.a(e.Quantity),n=new k.a(e.Price);return o=l.gt(t)?o.plus(t.times(n)):o.plus(l.times(n)),l=l.minus(t),u=n,l.lte(0)})),r&&l.gt(0)&&(o=o.plus(l.times(u)),l=0),l>0?{Quantity:c,Price:"-",LimitPrice:u}:{Quantity:c,Price:o,LimitPrice:u}},ze=function(e,t){var n=t.level2,r=t.selectedInstrument,a=t.side,c=t.decimalPlaces,i=qe(a,n),s=Fe.a.OrderCalcBuffer,o=(s=void 0===s?{}:s).priceBuffer;if(i.length){var l=Be(e,o,i,!0,a).Price;return B(l,c[r.Product2Symbol],"0"===a?k.a.ROUND_CEIL:k.a.ROUND_FLOOR)}return 0},Ge=function(e,t,n,r,a){return[Ee.market.displayName,Ee.immediateOrCancel.displayName,Ee.stopMarket.displayName,Ee.trailingStopMarket.displayName].includes(a)?Me:e===Te?t<r||0===Number(r)?Ne:Me:e===Pe?t>n||0===Number(n)?Ne:Me:(console.error("Incorrect buyOrSell value is provided: ".concat(e)),Me)},We=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"beginning",r=e.values.fee;if(r){var a=r.OrderFee,c=r.ProductId,i=r.FeeProductId,s=i||c,o=t[s]||{ProductSymbol:""},l=o.ProductSymbol,u=L(a,l);if(u="USD"===l?"".concat(u):u,"beginning"===n)return"".concat(l," ").concat(u);if("end"===n)return"".concat(u," ").concat(l)}return"0"},Ze=function(e,t,n,r,a){if(!e)return"0";var c=null;return void 0!==a&&(c=a?k.a.ROUND_CEIL:k.a.ROUND_FLOOR),Ae.c.t("{price} per {unit}",{price:L(F(e),r[n],c),unit:t})},qe=function(e,t){return e===Te?t.sell:t.buy},Ve=function(e){var t=e.values.side;return t?Re[t]:Re[0]},_e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"price";return e.find((function(e){return parseFloat(e[n])===parseFloat(t)}))||{}},He="default",Ye="advanced",Ke="block",Qe="buySell",Je={"Reserve Order":0,"Good till Cancel":1,"Immediate or Cancel":3,"Fill Or Kill":4},Xe="1",$e="2",et="3",tt=(ge={},Object(Ie.a)(ge,Xe,"Last"),Object(Ie.a)(ge,$e,"Bid"),Object(Ie.a)(ge,et,"Ask"),n(275)),nt=function(e,t){var n=Object(Y.a)({},e);if(n.Hold=rt(e.Hold,t),n.PendingDeposits=rt(e.PendingDeposits,t),n.Amount=rt(e.Amount,t),n.rawAmount=e.Amount,n.AvailableBalance=n.Amount,n.rawAvailableBalance=e.Amount,0!==e.Amount&&0!==e.Hold){var r=new k.a(e.Amount).minus(new k.a(e.Hold));n.AvailableBalance=L(r,t),n.rawAvailableBalance=r}return n},rt=function(e,t){return 0===e?U(e):L(e,t)},at="Margin",ct="Standard",it=function(e){return!e||e>=1?0:parseFloat(e.toExponential().split("-")[1])},st=function(e,t){return e.instruments.map((function(e){var n=t.products.find((function(t){return t.ProductId===e.Product1})),r=t.products.find((function(t){return t.ProductId===e.Product2})),a=n||{},c=a.Product,i=a.ProductFullName,s=r||{},o=s.Product,l=s.ProductFullName;return Object(Y.a)(Object(Y.a)({},e),{},{Product1FullName:i,Product2FullName:l,Product1Symbol:c,Product2Symbol:o})}))},ot=Object(tt.createSelector)((function(e){return e.instrument}),(function(e){return e.product}),(function(e,t){return st(e,t)})),lt=Object(tt.createSelector)((function(e){return e.margin.instrument}),(function(e){return e.product}),(function(e,t){return st(e,t)})),ut=Object(tt.createSelector)((function(e){return e.user.userInfo.MarginBorrowerEnabled}),(function(e){return e.form.tradingStyle}),(function(e){return e.margin}),(function(e){return e}),(function(e,t,n,r){var a;return t&&(a=t.values.tradingStyle),n&&e&&!n.instrument.fetching&&a===at?lt(r):ot(r)})),dt=Object(tt.createSelector)(ut,(function(){return Fe.a}),(function(e,t){return 0===t.InstrumentSelector.instruments.length?e:e.filter((function(e){return t.InstrumentSelector.instruments.includes(e.Symbol)}))})),bt=Object(tt.createSelector)(ut,(function(e){return e.filter((function(e){return void 0!==e.Product1Symbol&&void 0!==e.Product2Symbol}))})),pt=Object(tt.createSelector)([function(e){return e.user.userInfo.MarginBorrowerEnabled},function(e){return e.form.tradingStyle},function(e){return e.margin},ut,function(e){return e.instrument.selectedInstrumentId}],(function(e,t,n,r,a){var c;t&&(c=t.values.tradingStyle);var i=a;return n&&e&&!n.instrument.fetching&&c===at&&(i=n.instrument.selectedInstrumentId),r.find((function(e){return e.InstrumentId===i}))||{}})),jt=Object(tt.createSelector)([pt],(function(e){var t;return t={},Object(Ie.a)(t,e.Product1Symbol,Math.abs(Math.log10(e.QuantityIncrement))),Object(Ie.a)(t,e.Product2Symbol,it(e.PriceIncrement)),t})),mt=Object(tt.createSelector)(ut,(function(e){return e.filter((function(e){return"Stopped"!==e.SessionStatus}))})),ft=function(e,t){return e.instrument.instruments.find((function(e){return e.InstrumentId===t}))},ht=function(e,t){return e.instrument.instruments.find((function(e){return e.Symbol===t}))},Ot=Object(tt.createSelector)([function(e){return e.position.positions},pt],(function(e,t){return t&&e[t.Product1]&&e[t.Product2]?{position1:nt(e[t.Product1],t.Product1Symbol),position2:nt(e[t.Product2],t.Product2Symbol)}:{position1:{},position2:{}}})),xt=n(678),gt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="string"!==typeof t?L(t,e):t;return"USD"===e||"SGD"===e||"AUD"===e||"IDR"===e||n?"".concat(r):"".concat(r," ").concat(e)},vt=function(e){return"THB"===e?"\u0e3f":"IDR"===e?"Rp":"$"},yt=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(null===e||void 0===e?void 0:e.AvailableBalance)?F(e.AvailableBalance,void 0,t):""},Ct=n(53),wt=n.n(Ct),St=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=new Map,r=[];return e.forEach((function(e){var a=t(e);n.has(a)||(r.push(e),n.set(a,e))})),r},kt=function(e,t){return"number"!==typeof t.index?[].concat(Object(Q.a)(e),[t.item]):e.map((function(e,n){return n!==t.index?e:Object(Y.a)(Object(Y.a)({},e),t.item)}))},It=Object(tt.createSelector)((function(e){return e.user}),(function(e){var t=e.userConfig,n=e.zmUserInfo,r={};return t.forEach((function(e){r[e.Key]=e.Value})),Object(Y.a)(Object(Y.a)({},r),n)})),At=Object(tt.createSelector)((function(e){return e.user}),(function(e){var t=e.zipUp;return Object(Y.a)({},t)})),Pt=Object(tt.createSelector)((function(e){return e.user}),It,(function(e,t){var n=e.selectedAccountId,r=e.accounts;if(!!n&&r.length>0){var a=r.find((function(e){return e.AccountId===n})).VerificationLevel;return a>0||t.levelIncreaseStatus&&0===a}})),Tt=Object(tt.createSelector)((function(e){return e.user.accountFees}),(function(e){return e.instrument.selectedInstrumentId}),(function(e){return e.user}),(function(e,t){return t}),(function(e,t,n,r){var a=n.selectedAccountId,c=n.accounts;if(!(!!a&&c.length>0))return 0;var i=c.find((function(e){return e.AccountId===a})).FeeGroupId,s=e.filter((function(e){return e.InstrumentId===t&&e.FeeType===r&&!0===e.IsActive&&e.FeeTier===i})),o=s.find((function(e){return e.AccountId===a}));return(o||(s.find((function(e){return 0===e.AccountId}))||{})).FeeAmt||0})),Et=(Object(tt.createSelector)((function(e){return e.user.accountFees}),(function(e,t){return t}),(function(e,t,n){return n}),(function(e,t,n){return e.find((function(e){return e.InstrumentId===t&&e.FeeType===n}))})),Pt),Rt=(Object(tt.createSelector)((function(e){return e.auth}),(function(e){return e.isAuthenticated})),Object(tt.createSelector)([function(e){return e.user.selectedAccountId},function(e){return e.user.accounts},It],(function(e,t,n){var r=(t.find((function(t){return t.AccountId===e}))||{}).VerificationLevel,a=wt()(Fe.a,"KYC",{}),c=n.levelIncreaseStatus,i=function(e,t){var n=!0,r=!1;return e>=Fe.a.KYC.MinimumVerificationLevel&&(n=!1),"underReview"===t&&(r=!0),e===t-1&&(r=!0),{disableTrading:n,isUnderReview:r}}(r,c="Manual"===a.type?Number(c):c),s=i.isUnderReview;return{kycConfig:a,levelIncreaseStatus:c,verificationLevel:r,disableTrading:i.disableTrading,isUnderReview:s,disableWithdraw:r<Fe.a.Withdraw.MinimumVerificationLevel||r===Fe.a.Withdraw.MinimumVerificationLevel&&"underReview"===c,disableDeposit:r<Fe.a.Deposit.MinimumVerificationLevel||r===Fe.a.Deposit.MinimumVerificationLevel&&"underReview"===c}})));Object(tt.createSelector)([function(e){return e.apiProcessing},function(e){return e.user.userInfo},function(e){return e.user.accounts},It,function(e){return e.user.kyc},function(e){return e.auth.token}],(function(e,t,n,r,a,c){var i=t.AccountId,s=t.UserId,o=t.UserName,l=t.Email,u=r.levelIncreaseStatus,d=(n.filter((function(e){return e.AccountId===i}))[0]||{}).VerificationLevel,b=wt()(Fe.a,"KYC",{}),p="Manual"===b.type?e.processingSetUserConfig:e.processingValidateUserRegistration,j=function(e,t,n){for(var r=0;r<e.length;r+=1)if(e[r][t]===n)return r}(r,"Key","levelIncreaseStatus");return{alphaPointSessiontoken:c,alphaPointUserID:s+"",userConfig:r,userName:o,email:l,verificationLevel:d,levelIncreaseStatus:u,kycConfig:b,kyc:a,processing:p,levelIncreaseStatusIndex:j}}));var Nt="PRICE_PER_UNIT",Mt="AMOUNT_FOR_PRICE",Dt={BTC:"btc-64px.svg",USD:"usd-64px.svg",ETH:"eth-64px.svg",LTC:"ltc-64px.svg",BCC:"bcc-64px.svg",XRP:"xrp-64px.svg",USDT:"usdt-64px.svg",XMR:"xmr-64px.svg",ZEC:"zec-64px.svg",DASH:"dash-64px.svg",OMG:"omg-64px.svg",DOGE:"doge-64px.svg",EUR:"eur-64px.svg",EOS:"eos-64px.svg",REP:"rep-64px.svg",CVC:"cvc-48px.svg",BCH:"bch-64px.svg",XLM:"xlm-64px.svg",CAD:"cad-48px.svg",JPY:"jpy-48px.svg",IDR:"idr-64px.svg",AUD:"aud-64px.svg",SGD:"sgd-64px.svg",THB:"thb-64px.svg",GOLD:"gold-64px.svg",TBTC:"btc-64px.svg",ZMT:"zmt-64px.svg",AAPL:"aapl-48px.svg",FB:"fb-64px.svg",NFLX:"nflx-64px.svg",GOOG:"goog-48px.svg",AMZN:"amzn-64px.svg",IDRT:"idrt-48px.png",THBTC:"btc-64px.svg",THAIBTC:"btc-64px.svg",THAIETH:"eth-64px.svg",THAIXRP:"xrp-64px.svg",THAIBCH:"bch-64px.svg",MKR:"mkr-64px.svg",ENJ:"enj-64px.svg",SXP:"sxp-64px.svg",XTZ:"xtz-64px.svg",C8P:"c8p-48px.svg",USDC:"usdc-64px.svg",LINK:"link-64px.svg",YFI:"yfi-64px.svg",AAVE:"aave-64px.svg",ADA:"ada-64px.svg",BAND:"band-64px.svg",BNB:"bnb-64px.svg",BTG:"btg-64px.svg",CBP:"cbp-64px.svg",COMP:"comp-64px.svg",DOGET:"doget-64px.svg",ETC:"etc-64px.svg",GBP:"gbp-64px.svg",GNT:"gnt-64px.svg",MIOTA:"miota-64px.svg",NEO:"neo-64px.svg",SAND:"sand-64px.svg",SIX:"six-64px.svg",SUSHI:"sushi-64px.svg",TRX:"trx-64px.svg",UBQ:"ubq-64px.svg",UNI:"uni-64px.svg",YFII:"yfi-64px.svg",ABNB:"abnb-64px.svg",APPL:"appl-64px.svg",BABA:"baba-64px.svg",GRAB:"grab-64px.svg",PYPL:"pypl-64px.svg",SBUX:"sbux-64px.svg",SE:"se-64px.svg",TSLA:"tsla-64px.svg",TWTR:"twtr-64px.svg",ZM:"zm-64px.svg"},Lt=function(e){return Dt[e]||e+"DEFAULT_ICON"},Ft=n(308),Ut=n.n(Ft),Bt=(Object(tt.createSelector)([function(e){return e.product.products}],(function(e){var t=!1;return{productsOptions:(Fe.a.BaseCurrencies||[]).map((function(n){var r=e.find((function(e){return e.Product===n}));return(t=t||!r)?null:{value:n,label:r.ProductFullName}})),isMisconfigured:t}})),function(e){return function(t){return t.Product1===e||t.Product2===e}}),zt=function(e,t){return e.filter(Bt(t))},Gt=function(e,t){return e.find(Bt(t))},Wt=function(e,t,n){var r=Gt(e,n);if(r){var a=t[r.InstrumentId];return a&&{instrument:r,level:a}}},Zt=function(e,t,n){return e.Product1===n?t.LastTradedPx:1/t.LastTradedPx},qt=(Object(tt.createSelector)([pt,function(e){return e.product.products}],(function(e,t){return{product1:t.find((function(t){return t.ProductId===e.Product1})),product2:t.find((function(t){return t.ProductId===e.Product2}))}})),Object(tt.createSelector)((function(){return Fe.a.global.baseCurrency||"USD"}))),Vt=Ut()((function(e,t){return Object(Y.a)(Object(Y.a)({},e),{},{value:t})})),_t=function(e,t,n,r,a){if(r){var c=n.find((function(e){return e.ProductId===a})),i=n.find((function(e){return e.Product===r}));if(c===i)return Vt(i,1);var s=i&&i.ProductId,o=zt(t,a),l=Gt(o,s);if(l){var u=e[l.InstrumentId];if(!u)return;var d=Zt(l,u,a);return Vt(i,d)}var b,p=zt(t,s);if(n.forEach((function(t){var n=t.ProductId;if(!b){var r=Wt(p,e,n),a=Wt(o,e,n);r&&a&&(b={id:n,base:r,product:a})}})),b){var j=Zt(b.product.instrument,b.product.level,b.id),m=Zt(b.base.instrument,b.base.level,b.id)/j;return Object(Y.a)(Object(Y.a)({},i),{},{value:m})}}},Ht=Object(tt.createSelector)((function(e){return e.level1}),(function(e){return e.instrument.instruments}),(function(e){return e.product.products}),qt,(function(e,t){return t}),_t),Yt=Object(tt.createSelector)((function(e){return e.level1}),(function(e){return e.instrument.instruments}),(function(e){return e.product.products}),(function(e,t){return t}),(function(e,t,n){return n}),_t),Kt=Ut()((function(e,t){return Xt(e).reduce((function(n,r){var a=Yt(e,t,r.ProductId)||{};return a.value?r.rawAmount*a.value+n:n}),0)})),Qt=Object(tt.createSelector)([function(e){return e.product},function(e){return e.position}],(function(e,t,n){return e.fetching||t.fetching})),Jt=Object(tt.createSelector)([function(e){return e.product.products},function(e){return e.product.decimalPlaces},function(e){return e.position.positions}],(function(e,t,n){return e.map((function(e){var r=n[e.ProductId];if(!r)return e;var a=t[e.Product],c=nt(r,a);return Object(Y.a)(Object(Y.a)({},c),e)}))})),Xt=Object(tt.createSelector)([function(e){return e},Jt,qt],(function(e,t,n){return t.map((function(t){var r={iconFileName:Lt(t.Product)},a=Yt(e,n,t.ProductId)||{value:0};return Object(Y.a)(Object(Y.a)(Object(Y.a)({},t),r),{},{BaseCurrencyValue:a.value})}))})),$t=Object(tt.createSelector)([Xt,function(e,t){return t}],(function(e,t){return e.find((function(e){return e.ProductId===t}))})),en=Object(tt.createSelector)([Xt,function(e,t){return t}],(function(e,t){return e.find((function(e){return e.Product===t}))})),tn=Object(tt.createSelector)(Xt,(function(e){return e.filter((function(e){return"-"!==e.Amount}))})),nn=(Object(tt.createSelector)(Xt,(function(e){return e.filter((function(e){return"-"===e.Amount}))})),Object(tt.createSelector)([pt,function(e){return e.level1},jt,function(e,t){return t}],(function(e,t,n,r){var a=r.side,c=r.formatToLocale,i=void 0===c||c,s=function(e,t,n,r){if(e&&t&&n){var a=t.Product2Symbol,c=(e===Te?n.BestOffer:n.BestBid)||0;return B(c,r[a])}return"0"}(a,e,e?t[e.InstrumentId]:null,n);return e&&i?L(s,n[e.Product2Symbol],"0"===a?k.a.ROUND_CEIL:k.a.ROUND_FLOOR):s}))),rn=Object(tt.createSelector)([function(e){return e.form.buySell}],(function(e){return!e||e.values.side===Te})),an=Object(tt.createSelector)([function(e){return e.level2},jt,function(e,t){return t},function(e,t,n){return n},pt],(function(e,t,n,r,a){var c=Fe.a.OrderCalcBuffer,i=(c=void 0===c?{}:c).quantityBuffer,s=qe(n,e);return r.map((function(e){var r=Ue(e,i,s,!1,n),c=r.Quantity,o=r.LimitPrice,l=B(c,t[a.Product1Symbol]).toNumber(),u=l>0?B(e/l,t[a.Product2Symbol],k.a.ROUND_FLOOR).toNumber():null;return{price:e,quantity:l,limitPrice:B(o,t[a.Product2Symbol],"0"===n?k.a.ROUND_CEIL:k.a.ROUND_FLOOR).toNumber(),pricePerUnit:u}}))})),cn=(Object(tt.createSelector)([function(e){return e},function(e,t){return t},pt],(function(e,t,n){var r=Fe.a.RetailBuySell.dealPrices[n.Symbol];return r?an(e,t,r):[]})),Object(tt.createSelector)([function(e){return e},function(e,t){return t},function(e,t,n){return n},pt],(function(e,t,n,r){var a=Fe.a.RetailBuySell.dealPrices[r.Symbol]||[],c=[n].concat(a);return an(e,t,c)}))),sn=Object(tt.createSelector)([function(e){return e.level2},function(e){return e.product},function(e,t){return t},function(e,t,n){return n},pt],(function(e,t,n,r,a){var c=t.decimalPlaces,i=Fe.a.OrderCalcBuffer,s=(i=void 0===i?{}:i).priceBuffer,o=qe(n,e);return r.map((function(e){var t=Be(e,s,o,"GOLD"===a.Product1Symbol,n),r=t.Price,i=t.LimitPrice,l=B(r,c[a.Product1Symbol],"0"===n?k.a.ROUND_CEIL:k.a.ROUND_FLOOR).toNumber(),u=l/e;u=e>0&&u?L(u,c[a.Product2Symbol],"0"===n?k.a.ROUND_CEIL:k.a.ROUND_FLOOR).toString():null;var d=B(i,c[a.Product2Symbol],"0"===n?k.a.ROUND_CEIL:k.a.ROUND_FLOOR);return{price:l,quantity:e,limitPrice:d.toNumber?d.toNumber():d,pricePerUnit:u}}))})),on=(Object(tt.createSelector)([function(e){return e},function(e,t){return t},pt],(function(e,t,n){var r=Fe.a.RetailBuySell.dealPrices[n.Symbol];return r?sn(e,t,r):[]})),Object(tt.createSelector)([function(e){return e},function(e,t){return t},function(e,t,n){return n},pt],(function(e,t,n,r){var a=Fe.a.RetailBuySell.dealPrices[r.Symbol]||[],c=[n].concat(a);return sn(e,t,c)}))),ln=(Object(tt.createSelector)([function(e){return e},function(e){return e.form.buySell||{values:{}}}],(function(e,t){var n=t.values,r=n.side,a=n.amountRadio,c=t.values.layoutType===Nt,i=c?"quantity":"price",s="custom"===a?t.values[i]:a,o=c?on(e,r,s):cn(e,r,s);return _e(o,s,i)})),Object(tt.createSelector)([function(e){return e},function(e){return e.form.buySell||{values:{}}}],(function(e,t){var n=t.values,r=n.side,a=n.amountRadio,c=t.values.layoutType===Nt,i=c?"quantity":"price",s="custom"===a?t.values[i]:a;return(c?sn(e,r,[s]):an(e,r,[s]))[0]}))),un=Object(tt.createSelector)([function(e){return e},function(e){return e.form.buySell||{values:{}}},pt],(function(e,t,n){return ln(e)})),dn=Object(tt.createSelector)([un,Rt],(function(e,t){return t.disableTrading||"xbullion"!==Fe.a.global.brand&&(!e.limitPrice||!Number(e.price))})),bn=(Object(tt.createSelector)([function(e){return e},function(e){return rn(e)},function(e){return e.form.buySell||{values:{}}}],(function(e,t,n){var r=Object(xt.a)("buySell"),a=pt(e),c=$t(e,a.Product1),i=$t(e,a.Product2),s=ln(e),o=r(e,"amountRadio"),l="custom"===o?n.values.price:+o,u=s.quantity;return t?yt(i,false)<l:yt(c,false)<u})),{values:{}}),pn=Object(tt.createSelector)([function(e){return e.level2},function(e){return e.form.buySell||bn},pt,jt],(function(e,t,n,r){var a=t.values.side,c=function(e){return e.reduce((function(e,t){return e.plus(new k.a(t.Quantity))}),new k.a(0))}(qe(a,e));return B(c,r[n.Product1Symbol]).toNumber()})),jn=function(e,t){var n=t.instrument,r=t.userInfo,a=t.selectedAccountId,c={InstrumentId:n.selectedInstrumentId,OMSId:r.OMSId,AccountId:a,TimeInForce:1,ClientOrderId:0,OrderIdOCO:0,TimeInOrder:0,UseDisplayQuantity:!1};return e===He?xn(c,t):e===Ye?gn(c,t):e===Ke?vn(c,t):e===Qe?yn(c,t):(console.error("order form type ".concat(e," does not exists")),{})},mn=function(e){return[Ee.limit.displayName,Ee.stopLimit.displayName,Ee.fillOrKill.displayName,Ee.immediateOrCancel.displayName,Ee.reserveOrder.displayName].some((function(t){return t===e}))},fn=function(e){return[Ee.limit.displayName,Ee.stopLimit.displayName,Ee.trailingStopLimit.displayName].some((function(t){return t===e}))},hn=function(e){return[Ee.stopMarket.displayName,Ee.stopLimit.displayName].some((function(t){return t===e}))},On=function(e){var t=Object.keys(Ee).find((function(t){return Ee[t].displayName===e}));return Ee[t].orderType},xn=function(e,t){var n=t.form,r=Object(Y.a)(Object(Y.a)({},e),{},{Side:Number(n.side),Quantity:n.quantity,OrderType:Number(On(n.orderType)),PegPriceType:Sn(n.side)});return mn(n.orderType)&&(r.LimitPrice=n.limitPrice),fn(n.orderType)&&(r.TimeInForce=Number(n.timeInForce)),hn(n.orderType)&&(r.StopPrice=n.stopPrice),r},gn=function(e,t){var n,r=t.form,a=Object(Y.a)(Object(Y.a)({},e),{},{Side:Number(r.side),Quantity:r.quantity,OrderType:Number(On(r.orderType)),TimeInForce:Cn(r.orderType),PegPriceType:Sn(r.side)});return mn(r.orderType)&&(a.LimitPrice=r.limitPrice),fn(r.orderType)&&(a.TimeInForce=Number(r.timeInForce)),hn(r.orderType)&&(a.StopPrice=r.stopPrice),n=r.orderType,[Ee.trailingStopLimit.displayName,Ee.trailingStopMarket.displayName].some((function(e){return e===n}))&&(a.TrailingAmount=r.trailingAmount),function(e){return[Ee.trailingStopLimit.displayName,Ee.trailingStopMarket.displayName].some((function(t){return t===e}))}(r.orderType)&&(a.PegPriceType=r.pegPriceType),function(e){return[Ee.reserveOrder.displayName].some((function(t){return t===e}))}(r.orderType)&&(a.DisplayQuantity=r.displayQuantity,a.UseDisplayQuantity=!0),function(e){return[Ee.trailingStopLimit.displayName].some((function(t){return t===e}))}(r.orderType)&&(a.LimitOffset=r.limitOffset),a},vn=function(e,t){var n=t.form,r=n,a=n.side===Te?new k.a(r.price):new k.a(r.quantity),c=n.side===Te?new k.a(r.quantity):new k.a(r.price);return{InstrumentId:e.InstrumentId,AccountId:e.AccountId,Side:parseInt(r.side,10),counterPartyId:r.counterparty.toString(),Quantity:c,LimitPrice:a.div(c).toFixed(t.priceDecimalPlaces).toString(),OMSId:e.OMSId,LockedIn:r.lockedIn,Timestamp:Date.now()}},yn=function(e,t){var n=t.form,r=t.level2,a=t.decimalPlaces,c=t.state,i=pt(c).Product2Symbol,s=n,o=un(c),l=!Number(s.side),u=qe(s.side,r),d=Fe.a.OrderCalcPadding,b=(d=void 0===d?{}:d).quantityPadding,p=Ue(o.price,b,u,!1,s.side).LimitPrice;return p=B(p,a[i],l?k.a.ROUND_CEIL:k.a.ROUND_FLOOR).toNumber(),Object(Y.a)(Object(Y.a)({},e),{},{TimeInForce:Je["Fill Or Kill"],Side:Number(s.side),Quantity:L(o.quantity,a[i]),OrderType:Number(Ee.limit.orderType),LimitPrice:p})},Cn=function(e){var t=1;return void 0!==Je[e]&&(t=Je[e]),t},wn=function(e,t){var n=e[t.instrument];return t.pegPriceType===et?n.BestOffer:t.pegPriceType===$e?n.BestBid:t.pegPriceType===Xe?n.LastTradedPx:void 0},Sn=function(e){return e===Te?et:$e},kn=n(268),In="CLOSE_MODAL",An="OPEN_MODAL",Pn=function(e,t){return{type:An,payload:{name:e,modalProps:t}}},Tn=function(e){return{type:In,payload:{name:e}}},En="WITHDRAW",Rn="CONFIRM_SINGLE_REPORT",Nn="CONFIRM_CYCLICAL_REPORT",Mn="RETAIL_SUBMIT_ORDER",Dn="NEW_AFFILIATE_KEY",Ln="ENABLE_2FA",Fn="DISABLE_2FA",Un="DEPOSIT_STATUS",Bn="DEPOSIT_REFERENCE_ID",zn="GET_GOOGLE_2FA_RECOVERY_CODE",Gn="ZIPUP_PLAN",Wn="ZIPCREW_PLAN",Zn="NOT_ENOUGH_FUNDS",qn=Object(tt.createSelector)((function(e){return e.form.tradingStyle}),(function(e){return e?e.values.tradingStyle:ct})),Vn=Object(tt.createSelector)([qn],(function(e){return e===at})),_n=Object(tt.createSelector)((function(e){return e.user.accounts}),(function(e){return e.find((function(e){return"MarginAsset"===e.AccountType}))})),Hn=Object(tt.createSelector)((function(e){return e.user.accounts}),(function(e){return e.filter((function(e){return"MarginAsset"!==e.AccountType}))})),Yn=(Object(tt.createSelector)((function(e){return e.user.userInfo}),(function(e){return!!e.MarginBorrowerEnabled})),Object(tt.createSelector)(_n,(function(e){return e.user.selectedAccountId}),Vn,(function(e,t,n){return n?e.AccountId:t}))),Kn=Object(tt.createSelector)(Hn,_n,(function(e,t){return e.find((function(e){return t.AccountName.includes(e.AccountName)}))})),Qn=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r,a){var c,i,s,o,l,u,d,b,p,j,m;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=a(),i=Yn(c),s=a(),o=s.user.userInfo,l=s.level1,u=s.level2,d=pt(a()),b=jt(a()),p=b[d.Product2Symbol.toString()],j=jn(e,{state:a(),decimalPlaces:b,instrument:{selectedInstrumentId:d.InstrumentId},form:t,userInfo:o,selectedAccountId:i,priceDecimalPlaces:p,level1:l,level2:u}),e!==Ke){n.next=13;break}return n.next=10,Ce.connection.SubmitBlockTrade(j);case 10:m=n.sent,n.next=16;break;case 13:return n.next=15,Ce.connection.SendOrder(j);case 15:m=n.sent;case 16:if("Accepted"===m.status)try{window.dataLayer.push({event:"order.placed","order.placed":{details:{value:t.price,currency:d.Product2Symbol,orderId:m.OrderId}}},{event:"trade.complete"})}catch(r){console.log("Error in GTM tracking")}return n.abrupt("return",m);case 18:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()},Jn=function(e,t){return function(n,r){var a=r(),c=a.form,i=a.product.decimalPlaces,s=pt(a),o=Ht(a,s.Product2)||{};o.value||(o={value:1,Product:s.Product2Symbol});var l=[{name:"buyForm",form:c.buyForm},{name:"sellForm",form:c.sellForm}],u=function(t,r){n(Object(kn.a)(t,"basePrice",B(e*o.value,i[o.Product]))),n(Object(kn.a)(t,"orderTotal",B(e*r.values.quantity,i[s.Product2Symbol])))};t?u(t,c[t]):l.forEach((function(e){var t=e.name,n=e.form;u(t,n)}))}},Xn=function(){return function(e){var t="buySell";e(rr(t,"quantity","")),e(rr(t,"price","")),e(rr(t,"amountRadio","custom")),e(rr(t,"limitPrice","")),e(rr(t,"fee","0")),e(rr(t,"responseMessage",""))}},$n=function(){return function(e){e(Object(kn.a)("buySell","responseMessage",Ae.c.extractT("Your order was filled successfully!")))}},er=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=new k.a(e),c=t.filter((function(e,t){return r?t<n:t>n})).reduce((function(e,t){return e.plus(t.Quantity)}),a);return c.toString()},tr=function(){return function(e,t){t().form.orderEntry.values.orderType===Ee.market.displayName&&e(Object(kn.a)("orderEntry","orderType",Ee.limit.displayName))}},nr=function(e){return function(t){t(rr(e,"fee","0")),t(rr(e,"totalAmount","0"))}},rr=function(e,t,n){return function(r){r(Object(kn.a)(e,t,n)),r(Object(kn.d)(e,t))}},ar="ADD_SNACK",cr="REMOVE_SNACK",ir="REMOVE_SNACK_BY_UNIQUE_ID",sr=function(e){return function(t,n){var r=n().snackbar.snacks,a=e;if(0!==r.length){var c=r.find((function(t){return t.id===e.id}));c&&(c.count?c.count++:c.count=2,c.text="".concat(e.text," (").concat(c.count.toString(),")"),t(or(c.uniqueId)))}t(lr(a))}},or=function(e){return{type:ir,payload:e}},lr=function(e){return{type:ar,payload:Object(Y.a)(Object(Y.a)({},e),{},{uniqueId:Date.now()})}},ur="ADD_OPEN_ORDER",dr="RECEIVE_OPEN_ORDERS",br="REQUEST_OPEN_ORDERS",pr="ADD_ACCOUNT_TRADE",jr="RECEIVE_ACCOUNT_TRADES",mr="REQUEST_ACCOUNT_TRADES",fr="ADD_INACTIVE_ORDER",hr="RECEIVE_INACTIVE_ORDERS",Or="REQUEST_INACTIVE_ORDERS",xr="RECEIVE_TRADE_REPORTS",gr="REQUEST_TRADE_REPORTS",vr="RECEIVE_TRADE_HISTORY",yr="RECEIVE_ACCOUNT_TRADES_FOR_ORDER_ID",Cr="REMOVE_ACTIVE_REQUEST",wr="REQUEST_ACCOUNT_TRADES_OVER_DEFAULT_LIMIT",Sr="RECEIVE_ACCOUNT_TRADES_OVER_DEFAULT_LIMIT",kr=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:Se.initSubscribtion({AccountId:e,OMSId:t}),ke.initSubscribtion({AccountId:e,OMSId:t});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},Ir=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r,a){var c;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(Mr()),n.next=3,Ce.connection.GetOpenOrders({AccountId:e,OMSID:t});case 3:c=n.sent,r(Nr(c));case 5:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()},Ar=function(){return function(e,t){Se.subscribe((function(n){var r=function(e){var t,n,r="Canceled"===e.OrderState;return["Working","FullyExecuted"].some((function(t){return e.OrderState===t}))?(n=Ae.c.t("Your order has been successfully added"),t="success"):("Rejected"===e.OrderState||r)&&(e.RejectReason||e.CancelReason||e.ChangeReason?(n=e.RejectReason||e.CancelReason||e.ChangeReason,t="warning"):(n=Ae.c.t("Your Order has been {orderState}",{orderState:e.OrderState}),t=r?"success":"warning")),{type:t,text:n}}(n),a=r.text.includes("Not_Enough_Funds");["Working"].some((function(e){return n.OrderState===e}))?(e(Dr(n)),t().form.buySell&&e($n())):["Rejected","Canceled","FullyExecuted"].some((function(e){return n.OrderState===e}))&&(e(Lr(n)),t().form.buySell&&("FullyExecuted"===n.OrderState?e($n()):a||e((function(e){e(Object(kn.a)("buySell","responseMessage",Ae.c.extractT("Your order failed, please try again")))})))),e(a?Pn(Zn):sr({id:"OrderStateEventSnackbar",text:r.text,type:r.type}))})),ke.subscribe((function(t){e(Br(t))}))}},Pr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200;return function(){var r=Object(V.a)(q.a.mark((function r(a){var c;return q.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a(Ur()),r.next=3,Ce.connection.GetAccountTrades({AccountId:e,OMSId:t,Count:n});case 3:c=r.sent,a(Fr(c)),a(qr(c));case 6:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()},Tr=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(Gr()),1e3,n.next=4,Ce.connection.GetOrderHistory({AccountId:e,OMSId:t,Depth:1e3});case 4:a=n.sent,r(zr(a));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},Er=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a,c;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(Gr()),1e3,n.next=4,Ce.connection.RPCPromise("GetOrders",{AccountId:e,OMSId:t,Depth:1e3});case 4:a=n.sent,c=JSON.parse(a.o),r(zr(c));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},Rr=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(Zr()),n.next=3,Ce.connection.GetOpenTradeReports({AccountId:e,OMSId:t});case 3:a=n.sent,r(Wr(a));case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},Nr=function(e){return{type:dr,payload:e}},Mr=function(){return{type:br}},Dr=function(e){return{type:ur,payload:e}},Lr=function(e){return{type:fr,payload:e}},Fr=function(e){return{type:jr,payload:e}},Ur=function(){return{type:mr}},Br=function(e){return{type:pr,payload:e}},zr=function(e){return{type:hr,payload:e}},Gr=function(){return{type:Or}},Wr=function(e){return{type:xr,payload:e}},Zr=function(){return{type:gr}},qr=function(e){return{type:vr,payload:e}},Vr=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c,i;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r().user.userInfo.OMSId,c=r().user.selectedAccountId,!(e.length>1)){t.next=13;break}return i=e.map((function(e){return Ce.connection.CancelOrder({OrderId:e,AccountId:c,OMSId:a})})),t.next=6,Promise.all(i);case 6:return t.next=8,n(Ir(c,a));case 8:return t.next=10,n(Rr(c,a));case 10:n(sr({id:"cancelOrderSuccessSnack",text:"Orders ".concat(e.toString()," cancelled"),type:"success"})),t.next=20;break;case 13:return t.next=15,Ce.connection.CancelOrder({OrderId:e[0],AccountId:c,OMSId:a});case 15:return t.next=17,n(Ir(c,a));case 17:return t.next=19,n(Rr(c,a));case 19:n(sr({id:"cancelOrderSuccessSnack",text:"Order ".concat(e[0]," cancelled"),type:"success"}));case 20:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()};var _r,Hr=n(80),Yr=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"DepositTicketUpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we),Kr=new Yr,Qr={get:function(e,t,n){var r;return null!==(r=Reflect.get(e,t,n))&&void 0!==r?r:t}},Jr=(_r={"Withdraw Amount must be greater than zero and less than 79228162514264337593543950335":Ae.c.extractT("Withdraw amount must be greater than the withdrawal fee amount.")},new Proxy(_r,Qr)),Xr=function(e){var t="".concat(e.errorcode,": ").concat(e.errormsg);return e.detail&&(t=Jr[e.detail]),t},$r=n(326),ea=Object($r.b)({name:"deposit",initialState:{isDepositComplete:!1},reducers:{updateDepositComplete:function(e,t){e.isDepositComplete=t.payload}}}),ta=ea.actions.updateDepositComplete,na=ea.reducer,ra="FETCH_PRODUCT_DEPOSIT_TEMPLATES",aa="FETCH_PRODUCT_DEPOSIT_TEMPLATE",ca="RECEIVE_DEPOSIT_TEMPLATES",ia="RECEIVE_DEPOSIT_TEMPLATES_ERROR",sa="RECEIVE_DEPOSIT_TEMPLATE",oa="RECEIVE_DEPOSIT_TEMPLATE_ERROR",la="RECEIVE_DEPOSIT_INFO_ERROR",ua="FETCH_DEPOSIT_INFO",da="RECEIVE_DEPOSIT_INFO",ba="RECEIVE_DEPOSIT_TICKET",pa="RECEIVE_DEPOSIT_TICKETS",ja="RESET_DEPOSIT_INFO",ma="ADD_DEPOSIT",fa="RECEIVE_DEPOSIT_FEES",ha=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r,a){var c,i,s,o,l,u,d;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!isNaN(e)){n.next=2;break}return n.abrupt("return",r({type:ja}));case 2:return r(Ca(e,t)),c=a().deposit.templateTypes.find((function(e){return e.TemplateName===t})),i={OMSId:a().user.userInfo.OMSId,AccountId:a().user.selectedAccountId,ProductId:e,TemplateType:t},c&&(i.AccountProviderId=c.AccountProviderId),n.next=8,Ce.connection.GetDepositRequestInfoTemplate(i);case 8:if(!(s=n.sent).result){n.next=15;break}if(o=s.Template,l=o.UseGetDepositWorkflow,u=o.Template,d=o.DepositWorkflow,r("{}"!==u||!l&&"CryptoWallet"!==d?Pa("Failed to load"):Ea([])),u){n.next=14;break}return n.abrupt("return",r(Aa(Ae.c.extractT("Server provided an unexpected response"))));case 14:return n.abrupt("return",r(ka(s)));case 15:return n.abrupt("return",r(Aa(s.errormsg)));case 16:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()},Oa=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r,a){var c,i,s,o,l,u,d;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c=a().user.userInfo.OMSId,i=a().user.selectedAccountId,s=a().deposit.templateType,o=a().deposit.templateTypes.find((function(e){return e.TemplateName===s})),l=10===e||Fe.a.Deposit.GenerateNewKey,u={OMSId:c,AccountId:i,ProductId:+e,GenerateNewKey:l},o&&(u.AccountProviderId=o.AccountProviderId),t&&(u.DepositInfo=t),r(wa(e)),n.next=11,Ce.connection.GetDepositInfo(u);case 11:if(!(d=n.sent).result){n.next=14;break}return n.abrupt("return",r(Ea(JSON.parse(d.DepositInfo))));case 14:return n.abrupt("return",r(Pa(d.errormsg)));case 15:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()},xa=function(){return function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n().user.userInfo.OMSId,a=n().user.selectedAccountId,e.next=4,Ce.connection.GetDepositTickets({OMSId:r,AccountId:a,OperatorId:1});case 4:return c=e.sent,e.abrupt("return",t(Na(c)));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},ga=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c,i;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r().user.userInfo.OMSId,c={OMSId:a,ProductId:e},t.next=4,Ce.connection.GetOMSDepositFees(c);case 4:if(!1!==(i=t.sent).result){t.next=7;break}return t.abrupt("return",n(sr({id:"depositRejectSnack",text:Xr(i),type:"warning"})));case 7:n(Ma(i));case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},va=function(e){return{type:ma,payload:e}},ya=function(e){return{type:ra,payload:{product:e}}},Ca=function(e,t){return{type:aa,payload:{product:e,templateType:t}}},wa=function(e){return{type:ua,payload:{product:e}}},Sa=function(e){return{type:ca,payload:e}},ka=function(e){return{type:sa,payload:e}},Ia=function(e){return{type:ia,payload:e}},Aa=function(e){return{type:oa,payload:e}},Pa=function(e){return{type:la,payload:e}},Ta={type:"SUBMITTING_DEPOSIT"},Ea=function(e){return{type:da,payload:e}},Ra=function(e){return{type:ba,payload:e}},Na=function(e){return{type:pa,payload:e}},Ma=function(e){return{type:fa,payload:e}},Da=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"WithdrawTicketUpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),La=Object($r.b)({name:"withdraw",initialState:{isComplete:!1},reducers:{updateWithdrawComplete:function(e,t){e.isComplete=t.payload}}}),Fa=La.actions.updateWithdrawComplete,Ua=La.reducer,Ba="FETCH_PRODUCT_WITHDRAW_TEMPLATES",za="FETCH_PRODUCT_WITHDRAW_TEMPLATE",Ga="RECEIVE_WITHDRAW_TEMPLATES",Wa="RECEIVE_WITHDRAW_TEMPLATE",Za="RECEIVE_WITHDRAW_TEMPLATE_ERROR",qa="RECEIVE_WITHDRAW_TEMPLATE_ERROR",Va="RECEIVE_WITHDRAW_TICKET",_a="RECEIVE_WITHDRAW_TICKETS",Ha="RECEIVE_WITHDRAW_WORKFLOW_INFO",Ya="RECEIVE_WITHDRAW_FEE",Ka="RECEIVE_WITHDRAW_FEES",Qa="ADD_WITHDRAWAL_TICKET",Ja=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(){var r=Object(V.a)(q.a.mark((function r(a,c){var i,s,o;return q.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a(ec(e,t)),i=c().withdraw.templateTypes.find((function(e){return e.TemplateName===t})),s=Object(Y.a)({OMSId:c().user.userInfo.OMSId,AccountId:c().user.selectedAccountId,ProductId:e,TemplateType:t},n),i&&(s.AccountProviderId=i.AccountProviderId),r.next=6,Ce.connection.GetWithdrawTemplate(s);case 6:if(!(o=r.sent).result){r.next=9;break}return r.abrupt("return",a(nc(o)));case 9:return r.abrupt("return",a(ac(o.errormsg)));case 10:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()},Xa=function(e){return{type:Qa,payload:e}},$a={type:Ba},ec=function(e,t){return{type:za,payload:{product:e,templateType:t}}},tc=function(e){return{type:Ga,payload:e}},nc=function(e){return{type:Wa,payload:e}},rc=function(e){return{type:Za,payload:e}},ac=function(e){return{type:qa,payload:e}},cc={type:"SUBMITTING_WITHDRAW"},ic=function(e){return{type:Va,payload:e}},sc=function(e){return{type:Ya,payload:e}},oc=function(e){return{type:Ka,payload:e}},lc=function(e){return{type:Ha,payload:e}},uc=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ce.connection.GetWithdrawTickets({AccountId:e,OMSId:t});case 2:a=n.sent,r({type:_a,payload:a});case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},dc="LANGUAGE_CHANGED",bc=n(23),pc=n.n(bc),jc=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"VerificationLevelUpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),mc="Reports",fc="Deposits",hc="Withdraws",Oc="KYCForm",xc="CLOSE_SIDE_PANE",gc="OPEN_SIDE_PANE",vc=function(e,t){return{type:gc,payload:{pane:e,sidePaneProps:t}}},yc=function(e){return{type:xc,payload:e}},Cc=function(){return yc(mc)},wc=function(){return yc(fc)},Sc=function(){return yc(hc)},kc=function(){return yc(Oc)},Ic=n(100),Ac=n(19),Pc="UPDATE_ACCOUNT",Tc="USER_CONFIG_UPDATED",Ec="PROCESSING_VALIDATE_USER_REGISTRATION",Rc="FINISHED_VALIDATE_USER_REGISTRATION",Nc=function(e){return function(t){var n=Object(Y.a)({},e);jc.subscribe((function(e){n.VerificationLevel=e.VerificationLevel,t(function(e){return{type:Pc,payload:e}}({index:0,item:n}))}))}},Mc=(Object(Ic.a)(function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.sessionToken,e.next=3,pc.a.get("".concat(Ac.a.get("REACT_APP_ZIPMEX_API_ENDPOINT"),"/kyc/suitability-surveys"),{headers:{Authorization:"Bearer ".concat(r)},cancelToken:n});case 3:return a=e.sent,c=a.data,e.abrupt("return",c);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),"GET_TRANSFERS_REQUESTED"),Dc="GET_TRANSFERS_RECEIVED",Lc="GET_INCOMING_TRANSFERS",Fc=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(Gc()),n.next=3,Ce.connection.GetTransfers({OMSId:e,AccountId:t});case 3:a=n.sent,r(zc(a));case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},Uc=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a,c;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ce.connection.RPCPromise("GetTransfersReceived",{OMSId:e,AccountId:t});case 2:a=n.sent,c=JSON.parse(a.o),r(Bc(c));case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},Bc=function(e){return{type:Lc,payload:e}},zc=function(e){return{type:Dc,payload:e}},Gc=function(){return{type:Mc}},Wc="TRANSFER_REQUESTS_RECEIVED_REQUESTED",Zc="TRANSFER_REQUESTS_RECEIVED_RECEIVED",qc="TRANSFER_REQUESTS_REQUESTED_REQUESTED",Vc="TRANSFER_REQUESTS_REQUESTED_RECEIVED",_c="TRANSFER_REQUEST_CONFIRMATION_SENT",Hc="TRANSFER_REQUEST_CONFIRMATION_SUCCESS",Yc="TRANSFER_REQUEST_CONFIRMATION_FAILED",Kc=(Ae.c.extractT("Transfer Approved"),Ae.c.extractT("Transfer Rejected"),function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(Jc()),n.next=3,Ce.connection.GetRequestTransferRequestsReceived({PayerAccountId:e,OMSId:t});case 3:a=n.sent,r(Xc(a));case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}),Qc=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r($c()),n.next=3,Ce.connection.GetRequestTransferRequestsRequested({RequestorAccountId:e,OMSId:t,OperatorId:1});case 3:a=n.sent,r(ei(a));case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},Jc=function(){return{type:Wc}},Xc=function(e){return{type:Zc,payload:e}},$c=function(){return{type:qc}},ei=function(e){return{type:Vc,payload:e}},ti=Ac.a.get("REACT_APP_ZIPMEX_API_ENDPOINT")||"http://localhost:3030",ni="UPDATE_AFFILIATE_SUCCESS",ri="GET_AFFILIATE_SUCCESS",ai="GET_AFFILIATE_COUNT_SUCCESS",ci=(Object(Ic.a)(function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,pc.a.get("".concat(ti,"/referrals"),{headers:{Authorization:"Bearer ".concat(t)}});case 3:return n=e.sent,r=n.data,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0.response.data;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()),Object(Ic.a)(function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,pc.a.get("".concat(ti,"/referrals"),{headers:{Authorization:"Bearer ".concat(t)}});case 3:return n=e.sent,r=n.data,e.abrupt("return",r);case 8:throw e.prev=8,e.t0=e.catch(0),e.t0.response.data;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}())),ii=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r){var a;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ce.connection.GetUserAffiliateTag({OMSId:e,UserId:t});case 2:a=n.sent,r(oi(a));case 4:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},si=function(e){return{type:ni,payload:e}},oi=function(e){return{type:ri,payload:e}},li=function(e){return{type:ai,payload:e}},ui=function(e){var t=[];return Fe.a.global.exchangeStatus.products&&Fe.a.global.exchangeStatus.products.length>0?(Fe.a.global.exchangeStatus.products.forEach((function(n){var r=e.find((function(e){return e.ProductId===n.apId}));r&&t.push(r)})),t):e},di=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(e){var t=e.AccountId,n=e.OMSId;Ce.connection.subscribeAccountEvents(t,n)}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"AccountPositionEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),bi="REQUEST_ACCOUNT_POSITIONS",pi="RECEIVE_ACCOUNT_POSITIONS",ji="RECEIVE_POSITION_EVENT",mi="SELECT_POSITION",fi=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r,a;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(xi),t.next=3,Ce.connection.GetAccountPositions(e);case 3:if(!((r=t.sent)instanceof Array)){t.next=10;break}return a=ui(r),n(gi(a)),t.abrupt("return",a);case 10:console.log(r);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},hi=function(e){return function(t){di.subscribe((function(n){n.AccountId===e&&t(Oi(n))}))}},Oi=function(e){return{type:ji,payload:e}},xi={type:bi,payload:{}},gi=function(e){return{type:pi,payload:e}},vi=function(e){return{type:mi,payload:e}},yi=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(){}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"MarketStateUpdate"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),Ci=function(e,t){return{id:"OrderStateEventSnackbar-".concat(t.VenueInstrumentId,"-").concat(t.NewStatus),type:"info",text:"Market for ".concat(e.Symbol," is ").concat(t.NewStatus)}},wi=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"AccountSettlementEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),Si="FETCHING_ACCOUNT_SETTLEMENT_POSITIONS",ki="FETCH_ACCOUNT_SETTLEMENT_POSITIONS_ERROR",Ii="RECEIVE_ACCOUNT_SETTLEMENT_POSITIONS",Ai=function(e){return{type:Ii,payload:e}},Pi=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"LogoutEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}}]),n}(we)),Ti="RECEIVE_PRODUCTS",Ei=function(){return function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce.connection.GetProducts();case 2:n=e.sent,r=ui(n),t(Ri(r));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},Ri=function(e){return{type:Ti,payload:e}},Ni=n(84),Mi=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(e){return new Promise((function(t){var n={instrumentId:e,callback:function(e){t(JSON.parse(e.o))}};Ce.connection.level1.next(n)}))}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"Level1UpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){gb.getState().instrument.instruments.forEach((function(e){var t=e.InstrumentId;Ce.connection.unsubscribeLevel1(t)}))}}]),n}(we)),Di="LEVEL1_LOADED",Li="LEVEL1_UPDATES_BATCH",Fi={},Ui=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r,a;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Mi.initSubscribtion(e);case 2:r=t.sent,a=Gi(e,r),n(a);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},Bi=Object(Ni.throttle)((function(e){e(Wi(Fi)),Fi={}}),2e3),zi=function(){return function(e,t){Mi.subscribe((function(n){var r=t().instrument.selectedInstrumentId,a=n.InstrumentId;a===r?e(Gi(a,n)):(Fi[a]=n,Bi(e))}))}},Gi=function(e,t){return{type:Di,payload:{instrumentId:e,level1Data:t}}},Wi=function(e){return{type:Li,payload:e}},Zi=new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(e){return new Promise((function(t){var n={instrumentId:e,depth:250,callback:function(e){t(e)}};Ce.connection.level2.next(n)}))}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"Level2UpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o).map((function(e){return new le(e)}));e(n)}))}},{key:"stop",value:function(){var e=gb.getState().instrument.selectedInstrumentId;this.stopOne(e)}},{key:"stopOne",value:function(e){Ce.connection.unsubscribeLevel2(e)}}]),n}(we)),qi="UNSUBSCRIBE_LEVEL2",Vi="GET_ALL_LEVEL_2_DATA",_i="LEVEL_2_UPDATES",Hi="REQUEST_LEVEL_2_DATA",Yi=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Xi()),t.next=3,Zi.initSubscribtion(e);case 3:r=t.sent,n(Ji(r));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},Ki=function(){return function(e){Zi.subscribe((function(t){t&&e(function(e){return{type:_i,payload:e}}(t))}))}},Qi=function(e){return function(t){Zi.stopOne(e),t({type:qi})}};function Ji(e){return{type:Vi,payload:e}}var Xi=function(){return{type:Hi}};var $i=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(e){return new Promise((function(t){var n={instrumentId:e,history:40,callback:function(e){t(e)}};Ce.connection.trades.next(n)}))}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"TradeDataUpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o).map((function(e){return new ue(e)}));e(n)}))}},{key:"stop",value:function(){var e=gb.getState().instrument.selectedInstrumentId;this.stopOne(e)}},{key:"stopOne",value:function(e){Ce.connection.unsubscribeTrades(e)}}]),n}(we),es=new $i,ts="REQUEST_RECENT_TRADES",ns="RECEIVE_RECENT_TRADES",rs="ADD_RECENT_TRADE",as=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(os()),t.next=3,es.initSubscribtion(e);case 3:r=t.sent,n(ss(e,r));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},cs=function(){return function(e,t){es.subscribe((function(n){var r=t().instrument.selectedInstrumentId;e(ls(r,n))}))}},is=function(e){return function(t){es.stopOne(e)}},ss=function(e,t){return{type:ns,payload:{instrumentId:e,data:t}}},os=function(){return{type:ts}},ls=function(e,t){return{type:rs,payload:{instrumentId:e,data:t}}},us=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"TickerDataUpdateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){gb.getState().instrument.instruments.forEach((function(e){var t=e.InstrumentId;Ce.connection.RPCPromise("UnsubscribeTicker",{OMSId:1,InstrumentId:t})}))}}]),n}(we),ds=new us,bs="RECEIVE_TICKERS",ps="ADD_TICKERS",js="REQUEST_TICKERS",ms="SET_TICKERS_INTERVAL",fs=function(){return function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c,i;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n().instrument.selectedInstrumentId,a=n().tickers.interval,t(gs()),c={OMSId:1,InstrumentId:r,Interval:a,IncludeLastCount:1e3},e.next=6,Ce.connection.SubscribeTicker(c);case 6:i=e.sent,t(Os(i));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},hs=function(){return function(e){ds.subscribe((function(t){e(xs(t))}))}},Os=function(e){return{type:bs,payload:e}},xs=function(e){return{type:ps,payload:e}},gs=function(){return{type:js}},vs=function(e){return{type:ms,payload:e}},ys=function(e){var t=Fe.a.global.exchangeStatus.instruments;if(!t||0===t.length)return e;var n=[];return t.forEach((function(t){var r=e.find((function(e){return e.Symbol===t.symbol}));r&&n.push(r)})),n},Cs=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"MarginAccountStateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we),ws=(new Cs,function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(e){var t=e.AccountId,n=e.OMSId;Ce.connection.RPCPromise("SubscribeAccountEvents",{AccountId:t,OMSId:n})}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"MarginPositionEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),Ss=(new ws,function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"MarginPositionPaymentEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we)),ks=(new Ss,"REQUEST_OPEN_POSITIONS"),Is="REQUEST_CLOSED_POSITIONS",As="REQUEST_MARGIN_POSITIONS_PAYMENTS",Ps="RECEIVE_OPEN_POSITIONS",Ts="RECEIVE_CLOSED_POSITIONS",Es="ADD_OPEN_POSITION",Rs="ADD_CLOSED_POSITION",Ns="RECEIVE_MARGIN_POSITIONS_PAYMENTS",Ms="REMOVE_MARGIN_HISTORY_ACTIVE_REQUEST",Ds="RECEIVE_MARGIN_POSITION_PAYMENTS_EVENT",Ls=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscribtion",value:function(e){var t=e.AccountId,n=e.OMSId;Ce.connection.subscribeAccountEvents(t,n)}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"MarginAccountProductStateEvent"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stop",value:function(){}}]),n}(we),Fs=(new Ls,"REQUEST_MARGIN_PRODUCTS"),Us="RECEIVE_MARGIN_PRODUCTS",Bs="RECEIVE_MARGIN_PRODUCT_EVENT",zs="REQUEST_MARGIN_ACCOUNT_STATE",Gs="RECEIVE_MARGIN_ACCOUNT_STATE",Ws="RECEIVE_MARGIN_STATUS",Zs="REQUEST_MARGIN_INSTRUMENTS",qs="RECEIVE_MARGIN_INSTRUMENTS",Vs="SET_MARGIN_INSTRUMENT",_s=function(e){return{type:Vs,payload:e}},Hs=n(827),Ys=n.n(Hs),Ks=Ac.a.get("REACT_APP_ZIPMEX_EVENTS_STREAM_WS"),Qs=new Ys.a(Ks,{unique24hrVolSubscription:!0}),Js=Qs,Xs="PRODUCT_VOLUME_UPDATED",$s=function(e){return function(t){Boolean(e)&&Js.subscribe24hrVol(e,(function(n){t(eo(e,n.volume,n.timestamp))}))}},eo=function(e,t,n){return{type:Xs,payload:{productSymbol:e,volume:t,timestamp:n}}},to=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c,i,s,o,l,u,d,b;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n(no());case 3:if(c=t.sent,i=Object(J.a)(c,1),(s=i[0]).length){t.next=8;break}return t.abrupt("return");case 8:e.selectedInstrumentSymbol?o=s.find((function(t){return t.Symbol.toUpperCase()===e.selectedInstrumentSymbol.toUpperCase()})):e.selectInstrumentId&&(o=s.find((function(t){return t.InstrumentId===e.selectedInstrumentId}))),l=o||s[0],u=ft(r(),l.InstrumentId),d=Fe.a.global.exchangeStatus.instruments,"enabled"!==d.find((function(e){return e.symbol===u.Symbol})).status&&(b=d.find((function(e){return"enabled"===e.status})),l=ht(r(),b.symbol)),n(co(l.InstrumentId)),n(Yi(l.InstrumentId)),n(Ki()),s.forEach((function(e){var t=e.InstrumentId;n(Ui(t))})),n($s(null===(a=l)||void 0===a?void 0:a.Product1Symbol)),n(zi()),n(as(l.InstrumentId)),n(cs()),n(fs()),n(hs()),t.next=29;break;case 26:t.prev=26,t.t0=t.catch(0),console.error(t.t0);case 29:case"end":return t.stop()}}),t,null,[[0,26]])})));return function(e,n){return t.apply(this,arguments)}}()},no=function(){return function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(so()),e.next=3,Ce.connection.GetInstruments({OMSId:1});case 3:return n=e.sent,t(bo(n)),r=ys(n),t(lo(r)),e.abrupt("return",[r,n]);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},ro=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c,i,s;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=ft(r(),e),c=Fe.a.global.exchangeStatus.instruments,"enabled"===c.find((function(e){return e.symbol===a.Symbol})).status){t.next=6;break}return n(sr({id:"INSTRUMENT_UNAVAILABLE",text:Ae.c.t("The {instrumentName} pair is currently unavailable. Please check back shortly and refresh your browser for updates.",{instrumentName:a.Symbol}),type:"warning"})),t.abrupt("return");case 6:i=r().instrument.selectedInstrumentId,s=r().form.tradingStyle,n(Object(kn.b)("buyForm","sellForm")),s&&n(_s(e)),n(co(e)),localStorage.setItem("selectedInstrumentId",e),n(Qi(i)),n(Yi(e)),n($s(null===a||void 0===a?void 0:a.Product1Symbol)),n(is(i)),n(as(e)),n((function(){ds.stopAll()})),n(fs()),n(hs());case 20:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},ao="SET_INSTRUMENT",co=function(e){return{type:ao,payload:e}},io="REQUEST_INSTRUMENTS",so=function(){return{type:io,payload:""}},oo="RECEIVE_INSTRUMENTS",lo=function(e){return{type:oo,payload:e}},uo="RECEIVE_ALL_INSTRUMENTS",bo=function(e){return{type:uo,payload:e}},po="TOGGLE_INSTRUMENT_SELECTOR",jo="AUTH_SUCCESS",mo="AUTH_ERROR",fo="AUTH_NONE",ho="AUTH_REDIRECT",Oo="AUTH_2FA_REQUIRED",xo="FORCED_LOGOUT",go="AUTH_SET_TOKEN",vo=function(){return function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n().auth.isAuthenticated,a=ko(r),Ce.connection.RPCPromise("LogOut",{}).then((function(e){console.log("logged out")})).catch((function(e){console.warn(e)})),e.prev=3,c=window.localStorage.getItem("zmToken"),e.next=7,Object(x.y)({token:c});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.log(e.t0);case 12:t(a);case 13:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n){return e.apply(this,arguments)}}()},yo=function(e){return{type:jo,payload:{isAuthenticated:e.Authenticated,userId:e.UserId,token:e.SessionToken,pending:!1,is2FARequired:!1}}},Co=function(e){return{type:mo,payload:{isAuthenticated:e.Authenticated,errorMsg:e.errormsg,pending:!1}}},wo=function(e){return{type:xo,payload:e}},So=function(e){return{type:Oo,payload:{userId:e.UserId,is2FARequired:!0}}},ko=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:fo,payload:{isAuthenticated:!1,userId:null,token:null,pending:!1,wasAuthenticatedBefore:e}}},Io={timeout:8e3,type:"info",showMultiple:!0,showProgressBar:!0},Ao=n(62),Po=n(8),To=Object($r.b)({name:"zipCrew",initialState:{status:{isSubscribed:!1,stakedAmount:"",tier:null,isAutoRestakeEnabled:!1,isAutoRestakeAccepted:!1},stakes:[],interestTransactions:[],amountFieldValue:void 0,fetching:!1},reducers:{initZipCrewData:function(e,t){e.status=t.payload.status,e.stakes=t.payload.stakes},updateStakedAmount:function(e,t){e.status.stakedAmount=new k.a(e.status.stakedAmount).plus(t.payload.amount).toString(),parseInt(e.status.stakedAmount)>=qo.ZIP_STARTER&&(e.status.tier="ZIP_STARTER"),parseInt(e.status.stakedAmount)>=qo.ZIP_MEMBER&&(e.status.tier="ZIP_MEMBER"),parseInt(e.status.stakedAmount)>=qo.ZIP_CREW&&(e.status.tier="ZIP_CREW")},addStake:function(e,t){e.stakes.push(t.payload)},updateIsSubscribed:function(e,t){e.status.isSubscribed=t.payload},updateAmountFieldValue:function(e,t){e.amountFieldValue=t.payload},updateInterestTransactions:function(e,t){e.interestTransactions=[].concat(Object(Q.a)(e.interestTransactions),Object(Q.a)(t.payload.interestTransactions))},updateZipCrewTransactionsFetching:function(e,t){e.fetching=t.payload},updateAutoRestakeEnabled:function(e,t){e.status.isAutoRestakeEnabled=t.payload},updateAutoRestakeAccepted:function(e,t){e.status.isAutoRestakeAccepted=t.payload}}}),Eo=To.actions,Ro=Eo.initZipCrewData,No=Eo.updateStakedAmount,Mo=Eo.updateIsSubscribed,Do=Eo.addStake,Lo=Eo.updateAmountFieldValue,Fo=Eo.updateInterestTransactions,Uo=Eo.updateZipCrewTransactionsFetching,Bo=Eo.updateAutoRestakeEnabled,zo=Eo.updateAutoRestakeAccepted,Go=To.reducer,Wo="ZIP_CREW",Zo={RELEASED:Ae.c.extractT("Released"),RESTAKED:Ae.c.extractT("Re-locked")},qo={ZIP_STARTER:0,ZIP_MEMBER:100,ZIP_CREW:2e4},Vo=(Po.b.lightBlue,Po.b.green,Po.b.purple,{ZIP_STARTER:Ae.c.t("ZipStarter"),ZIP_MEMBER:Ae.c.t("ZipMember"),ZIP_CREW:Ae.c.t("ZipCrew")}),_o="STAKE_AMOUNT",Ho="AUTO_LOCK_STAKE",Yo="USER_INFO_FETCHED",Ko="USER_CONFIG_FETCHED",Qo="RECEIVE_USER_PERMISSIONS",Jo="RECEIVE_ACCOUNT",Xo="SET_ACCOUNT",$o="SET_GOOGLE_QRCODE",el="CLEAR_GOOGLE_QRCODE",tl="RECEIVE_ACCOUNT_FEES",nl="UPDATE_ZIPUP_SIGN_UP",rl=function(e){return{type:Yo,payload:e}},al=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c,i,s,o;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e||r().user.userInfo,c=a.OMSId,i=a.AccountId,s={OMSId:c,AccountId:i},!c||!i){t.next=13;break}return t.prev=3,t.next=6,Ce.connection.GetAccountFees(s);case 6:o=t.sent,n(cl(o)),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),console.error("getAccountFees action error",t.t0);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e,n){return t.apply(this,arguments)}}()},cl=function(e){return{type:tl,payload:e}},il=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ce.connection.GetUserInfo({UserId:e});case 3:r=t.sent,t.next=10;break;case 6:return t.prev=6,t.t0=t.catch(0),console.error("getUserInfo action error",t.t0),t.abrupt("return");case 10:return n(rl(r)),n(al(r)),n(dl(r.UserId)),n(pl(r.OMSId)),n(ol(r.UserId,r.UserName)),n(jl(r.AccountId,r.OMSId)),n(ii(r.OMSId,r.UserId)),t.abrupt("return",r);case 18:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e){return t.apply(this,arguments)}}()},sl=function(e){return{type:Ko,payload:e}},ol=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r,a){var c,i,s,o,l,u,d,b,p,j;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,s=a(),o=s.user,l=(o=void 0===o?{}:o).userInfo,u=window.localStorage.getItem("zmToken"),n.next=7,Promise.all([Ce.connection.GetUserConfig({UserId:e||l.UserId,UserName:t||l.UserName}),Object(x.n)({token:u})]);case 7:return d=n.sent,b=Object(J.a)(d,2),c=b[0],i=b[1],i=Object(Ao.h)(i,Fe.a),r(Object(Ao.j)(i)),r(Ro(i.zipCrew)),p=Fe.a.global.zipUp&&Fe.a.global.zipUp.productIds||[],n.next=17,Object(Ao.g)(u,p);case 17:j=n.sent,r(Object(Ao.k)(j)),n.next=25;break;case 21:return n.prev=21,n.t0=n.catch(0),console.error("getUserConfig action error",n.t0),n.abrupt("return");case 25:return r(sl(c)),n.abrupt("return",c);case 27:case"end":return n.stop()}}),n,null,[[0,21]])})));return function(e,t){return n.apply(this,arguments)}}()},ll=function(e){return function(t,n){var r=Object(Q.a)(n().user.userConfig);e.forEach((function(e){var t=r.findIndex((function(t){return t.Key===e.Key}));-1!==t?r[t]=e:r.push(e)})),t(sl(r))}},ul=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return function(){var a=Object(V.a)(q.a.mark((function a(c,i){var s,o,l,u;return q.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=i(),o=s.user,l=(o=void 0===o?{}:o).userInfo,a.next=5,Ce.connection.SetUserConfig({UserId:e||l.UserId,UserName:t||l.UserName,Config:n});case 5:return!1!==(u=a.sent).result?r&&c(ol(e,t)):c(sr({id:"setUserConfigError",text:Xr(u),type:"warning"})),a.abrupt("return",u);case 8:case"end":return a.stop()}}),a)})));return function(e,t){return a.apply(this,arguments)}}()},dl=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ce.connection.GetUserPermissions({UserId:e});case 2:r=t.sent,n(bl(r));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},bl=function(e){return{type:Qo,payload:e}},pl=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r,a,c,i,s,o;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ce.connection.GetUserAccounts({OMSId:e});case 2:r=t.sent,a=[],c=Object(K.a)(r),t.prev=5,c.s();case 7:if((i=c.n()).done){t.next=15;break}return s=i.value,t.next=11,Ce.connection.GetAccountInfo({AccountId:s,OMSId:e});case 11:o=t.sent,a.push(o);case 13:t.next=7;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(5),c.e(t.t0);case 20:return t.prev=20,c.f(),t.finish(20);case 23:n(Nc(a[0])),n(ml(a));case 25:case"end":return t.stop()}}),t,null,[[5,17,20,23]])})));return function(e){return t.apply(this,arguments)}}()},jl=function(e,t){return function(){var n=Object(V.a)(q.a.mark((function n(r,a){var c,i,s,o,l,u;return q.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r(fl(e)),Fe.a.global.privateMarketData?r(Er(e,t)):(r(Ir(e,t)),r(Tr(e,t))),r(Pr(e,t)),r(Rr(e,t)),r(xa()),r(uc(e,t)),r((function(e){Da.subscribe((function(t){e(Xa(t))}))})),r(kr(e,t)),r(Ar()),r(Fc(t,e)),r(Uc(t,e)),r(Kc(e,t)),r(Qc(e,t)),r(function(){var e=Object(V.a)(q.a.mark((function e(t){return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:yi.initSubscribtion();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),r((function(e,t){var n=t().instrument.instruments.map((function(e){return{InstrumentId:e.InstrumentId,Symbol:e.Symbol,SessionStatus:e.SessionStatus}}));yi.subscribe((function(t){n.map((function(n){if(n.InstrumentId===t.VenueInstrumentId&&n.SessionStatus!==t.NewStatus){n.SessionStatus=t.NewStatus;var r=Ci(n,t);e(sr({id:r.id,text:r.text,type:r.type}))}return n}))}))})),r((function(e){wi.subscribe((function(t){e(Ai(t))}))})),i=_n(a()),s=null!==(c=null===i||void 0===i?void 0:i.AccountId)&&void 0!==c?c:null,e===s){n.next=26;break}return n.next=21,r(fi({accountId:e,OMSId:t}));case 21:o=n.sent,l=Number(localStorage.getItem("selectedPositionId")),u=o.some((function(e){return e.ProductId===l}))?l:o[0].ProductId,r(hi(e)),r(vi(u));case 26:r((function(e){Kr.subscribe((function(t){e(va(t))}))}));case 27:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()},ml=function(e){return{type:Jo,payload:e}},fl=function(e){return{type:Xo,payload:e}},hl=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r,a;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=window.localStorage.getItem("zmToken"),a={},t.prev=2,t.next=5,Object(x.z)({token:r,amount:e});case 5:a=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),"Insufficient balance"===t.t0.message?n(sr({id:"ZIPCREW_FUNDS_ERROR",text:Ae.c.extractT("Sorry, you don't have enough ZMT to lock in that much."),type:"warning"})):n(sr({id:"ZIPCREW_GENERAL_ERROR",text:Ae.c.extractT("Something went wrong"),type:"warning"}));case 11:n(Lo()),a.amount&&(n(No({amount:a.amount})),n(Do({amount:a.amount,id:a.id,stakedAt:a.stakedAt,releasingAt:a.releasingAt})),n(sr({id:"ZIPCREW_DEPOSIT",text:Ae.c.extractT("You added to your ZipCrew deposit."),type:"success"})));case 13:case"end":return t.stop()}}),t,null,[[2,8]])})));return function(e){return t.apply(this,arguments)}}()},Ol=function(e){var t=e.dateBefore;return function(){var e=Object(V.a)(q.a.mark((function e(n){var r,a;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=window.localStorage.getItem("zmToken"),n(Uo(!0)),e.next=4,Object(Ao.f)({token:r,dateBefore:t});case 4:a=e.sent,n(Uo(!1)),n(Fo(a.zipCrew));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},xl=function(){return function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c,i,s,o;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=window.localStorage.getItem("zmToken"),a=n().zipCrewSlice.status,c=a.isAutoRestakeEnabled,i=a.isSubscribed,s=a.isAutoRestakeAccepted,i){e.next=6;break}t(Pn(Wn,{callbackAction:Ho})),e.next=25;break;case 6:if(s){e.next=16;break}return e.prev=7,e.next=10,Object(x.a)({token:r});case 10:t(zo(!0)),e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(7),e.abrupt("return");case 16:return o=!c,e.prev=17,e.next=20,Object(x.x)({token:r,enabled:o});case 20:t(Bo(o)),e.next=25;break;case 23:e.prev=23,e.t1=e.catch(17);case 25:case"end":return e.stop()}}),e,null,[[7,13],[17,23]])})));return function(t,n){return e.apply(this,arguments)}}()},gl="GET_API_KEYS_REQUESTED",vl="GET_API_KEYS_SUCCESS",yl="ADD_API_KEY",Cl="REMOVE_API_KEY_SUCCESS",wl=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Sl()),t.next=3,Ce.connection.GetUserAPIKeys({UserId:e});case 3:a=t.sent,n(kl(a));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},Sl=function(){return{type:gl}},kl=function(e){return{type:vl,payload:e}},Il=n(292),Al=n.n(Il),Pl="GET_USER_REPORTS_REQUESTED",Tl="GET_USER_REPORTS_SUCCESS",El="GET_USER_REPORT_WRITER_RESULTS_REQUESTED",Rl="GET_USER_REPORT_WRITER_RESULTS_SUCCESS",Nl="ADD_REPORT",Ml=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n(Dl()),t.next=3,Ce.connection.GetUserReportTickets({UserId:e});case 3:a=t.sent,n(Ll(a));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},Dl=function(){return{type:Pl}},Ll=function(e){return{type:Tl,payload:e}},Fl=function(){return function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n().user.userInfo.UserId,t(Ul()),e.next=4,Ce.connection.GetUserReportWriterResultRecords({UserId:r});case 4:a=e.sent,t(Bl(a));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},Ul=function(){return{type:El}},Bl=function(e){return{type:Rl,payload:e}},zl=function(e,t){return{OMSId:e().user.userInfo.OMSId,startTime:Al()(t.startDate,1),endTime:Al()(t.endDate,1),accountIdList:t.accountIdList}},Gl=function(e,t){return{OMSId:e().user.userInfo.OMSId,frequency:t.frequency,beginTime:t.startDate,accountIdList:t.accountIdList}},Wl=function(e){return{type:Nl,payload:e}},Zl="CONNECTION_CLOSED_COUNT",ql="CONNECTION_CLOSED",Vl="CONNECTION_OPENED",_l=function(){return{type:Vl,payload:{isConnected:!0}}},Hl=function(){return{type:ql,payload:{isConnected:!1}}},Yl=function(e){return{type:Zl,payload:e}},Kl=function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection||navigator.msConnection;t&&(t.onchange=function(){navigator.onLine&&e(Object(V.a)(q.a.mark((function e(){return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce.connection.Ping();case 2:case"end":return e.stop()}}),e)}))))})},Ql=function(e){Kl(e),e((function(e){Pi.subscribe((function(t){e(wo(t))}))})),$l(e),window.addEventListener("storage",(function(t){var n=t.key,r=t.oldValue,a=t.newValue;"token"===n&&(a&&r?a&&e({type:go,payload:{token:a}}):window.location.reload())}))},Jl=function(e,t){localStorage.setItem("token",t.payload.token),e.dispatch(eu(t.payload.userId))},Xl=function(e){localStorage.removeItem("token"),localStorage.removeItem("zmToken"),(e.type===xo||e.payload.wasAuthenticatedBefore)&&window.location.reload()},$l=function(e){var t=localStorage.getItem("token");e(t?function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c,i;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Fe.a.global.authTimeout,c=a?setTimeout((function(){localStorage.removeItem("token"),window.location.reload()}),a):0,t.next=4,Ce.connection.WebAuthenticateUser({SessionToken:e});case 4:if(i=t.sent,clearTimeout(c),!i.Authenticated){t.next=10;break}n(yo(i)),t.next=12;break;case 10:return t.next=12,n(vo());case 12:clearTimeout(c);case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}(t):vo())},eu=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n(il(e)),n(wl(e)),n(function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce.connection.GetUserAffiliateCount();case 2:r=e.sent,t(li(r));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),n(Ml(e)),n(Fl());case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},tu=function(e){return function(t){return function(n){var r=e.dispatch;return n.type===fo?Xl(n):n.type===jo?Jl(e,n):n.type===_?Ql(r):n.type===xo&&Xl(n),t(n)}}},nu=function(e){return function(e){return function(t){if(t.type===dc){var n=t.payload.lang;localStorage.getItem("language")!==n&&localStorage.setItem("language",n)}return e(t)}}},ru=n(334),au=n(857),cu=n.n(au),iu=Object(tt.createSelector)([function(e){return e.level1},function(e){return e.level2},function(e,t){return t.form}],(function(e,t,n){var r=n.orderType,a=n.quantity,c=n.side,i=n.stopPrice,s=n.limitPrice,o=n.trailingAmount,l=n.limitOffset;if(r===Ee.market.displayName){var u=Fe.a.OrderCalcBuffer,d=(u=void 0===u?{}:u).priceBuffer,b=qe(c,t);return Be(a,d,b,!0,c).Price}if(r===Ee.stopMarket.displayName){var p=new k.a(i),j=new k.a(a);return p.times(j)}if(r===Ee.stopLimit.displayName){var m=new k.a(s),f=new k.a(a);return m.times(f)}if(r===Ee.trailingStopMarket.displayName){var h=new k.a(wn(e,n)),O=c===Te?h.plus(o):h.minus(o),x=new k.a(a);return O.times(x)}if(r===Ee.trailingStopLimit.displayName){var g=new k.a(wn(e,n)),v=c===Te?g.plus(o).plus(l):g.minus(o).minus(l),y=new k.a(a);return v.times(y)}if(r===Ee.reportBlockTrade.displayName){var C=new k.a(n.price||"0"),w=new k.a(a);return c===Te?C:w}var S=new k.a(s),I=new k.a(a);return S.times(I)})),su=function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c,i,s,o,l,u,d,b,p;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.getState(),a=r.level1,c=n.form,i=n.formName,s=n.orders,o=c.side===Te,l=pt(r),u=a[l.InstrumentId]||{},b=Object(Q.a)(s),o?b.sort((function(e,t){return e.Price>t.Price?1:e.Price<t.Price?-1:0})):b.sort((function(e,t){return e.Price<t.Price?1:e.Price>t.Price?-1:0})),"NaN"===(p=iu(r,{form:c})).toString()&&(p=0),!Vn(r)){e.next=23;break}return e.prev=12,e.next=15,lu(t,c,p,u);case 15:d=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),console.error("gerMarginOrderFee error: ",e.t0);case 21:e.next=26;break;case 23:return e.next=25,ou(t,c,p,u);case 25:d=e.sent;case 26:t.dispatch(Object(kn.a)(i,"fee",d));case 27:case"end":return e.stop()}}),e,null,[[12,18]])})));return function(t,n){return e.apply(this,arguments)}}(),ou=function(){var e=Object(V.a)(q.a.mark((function e(t,n,r,a){var c,i,s,o;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=du(n,a),i=parseInt(n.side,10),s=bu(n),e.next=5,Ce.connection.GetOrderFee(Object(Y.a)(Object(Y.a)({},uu(t)),{},{InstrumentId:a.InstrumentId,Amount:s,Quantity:n.quantity,Side:i,Price:c,OrderType:parseInt(On(n.orderType),10),MakerTaker:Ge(n.side,c,a.BestBid,a.BestOffer,n.orderType)}));case 5:return o=e.sent,e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),lu=function(){var e=Object(V.a)(q.a.mark((function e(t,n,r,a){var c,i,s,o,l,u;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=t.getState(),i=du(n,a),s=parseInt(n.side,10),o=1===s?r:n.quantity,l=_n(c),e.next=7,Ce.connection.RPCPromise("GetMarginOrderFee",{OMSId:1,AccountId:l.AccountId,InstrumentId:a.InstrumentId,Amount:o,Quantity:n.quantity,Side:s,Price:i,OrderType:parseInt(On(n.orderType),10),MakerTaker:Ge(n.side,i,a.BestBid,a.BestOffer,n.orderType)});case 7:return u=e.sent,e.abrupt("return",JSON.parse(u.o));case 9:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),uu=function(e){var t=e.getState().user;return{OMSId:t.userInfo.OMSId,AccountId:t.selectedAccountId}},du=function(e,t){return e.orderType===Ee.market.displayName?e.side===Te?t.BestOffer:t.BestBid:e.orderType===Ee.stopMarket.displayName?e.stopPrice:e.orderType===Ee.reportBlockTrade.displayName?e.price:e.limitPrice?e.limitPrice:void 0},bu=function(e,t){return e.orderType===Ee.reportBlockTrade.displayName?0:1===e.side?t:e.quantity},pu=function(e){return function(t){return function(n){var r=e.getState(),a=r.form,c=r.level2,i=!!a.advancedOrderEntry,s=!!a.reportBlockTrade;if(function(e){var t=e.type,n=e.meta;return t===ru.J.CHANGE&&!cu()(["fee"],n.field)&&cu()(["orderEntry","advancedOrderEntry","reportBlockTrade"],n.form)}(n)){if("instrument"===n.meta.field)return e.dispatch(ro(parseInt(n.payload,10))),t(n);var o=a.orderEntry;i?o=a.advancedOrderEntry:s&&(o=a.reportBlockTrade);var l=Object(Y.a)(Object(Y.a)({},o.values),{},Object(Ie.a)({},n.meta.field,n.payload));return su(e,{form:l,formName:n.meta.form,orders:qe(l.side,c)}),t(n)}return t(n)}}},ju="LOAD_STARTUP_DATA",mu=function(){var e=fu()||hu();if(e)return{selectedInstrumentSymbol:e};var t=localStorage.getItem("selectedInstrumentId");return t?{selectedInstrumentId:Number(t)}:{}},fu=function(){var e=window.location.pathname.match(/^\/trade\/(.*)$/);return e&&e.length>1?e[1]:null},hu=function(){var e=window.location.pathname.match(/^\/exchange\/graph\/(.*)$/);return e&&e.length>1?e[1]:null},Ou=function(e){return function(t){return function(n){if(n.type===ju){var r=mu();Promise.all([e.dispatch(Ei()),e.dispatch(to(r))]).then((function(){e.dispatch({type:"STARTUP_DATA_LOADED"})})).catch((function(e){return console.error(e)}))}return t(n)}}},xu=n(867),gu=n.n(xu),vu=n(352),yu=[0,1e4,1e4,1e4,3e4,3e4,3e4,6e4,6e4,6e4,12e4],Cu=function(e){return function(t){return function(n){switch(n.type){case Vl:e.dispatch(Yl(0)),e.dispatch({type:ju}),e.dispatch(H());break;case ql:var r=e.getState().wsConnection.tries+1,a=r>=yu.length?yu[yu.length-1]:yu[r];e.dispatch(Yl(r)),e.dispatch(wu(r,a));var c=Object(vu.a)(_l,e.dispatch),i=Object(vu.a)(Hl,e.dispatch);gu()(ye,a,c,i)}return t(n)}}},wu=function(e,t){var n=Ae.c.extractT("Connection with server lost. Attempting reconnect...");return e>1&&(n=Ae.c.extractT("Still unable to connect after {attemptCount} attempts, trying again...")),sr({id:"websocketConnectionLost",text:n,textVars:{attemptCount:e},type:"warning",timeout:t})},Su=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{meta:{}},r=e.values.layoutType===Nt,a=r?on(t,e.values.side):cn(t,e.values.side),c=ku(e,n);if("amountRadio"===n.meta.field&&"custom"!==n.payload){var i=r?"quantity":"price";c=_e(a,n.payload,i)}return c},ku=function(e,t){var n=e.values,r=t.meta.field;return{price:"price"===r?t.payload:n.price,quantity:"quantity"===r?t.payload:n.quantity}},Iu=function(e){return(e.type===ru.J.CHANGE||e.type===ru.J.BLUR)&&"fee"!==e.meta.field&&"responseMessage"!==e.meta.field&&"buySell"===e.meta.form},Au=function(e){return function(t){return function(n){var r=e.getState(),a=r.form,c=r.level2;if(Iu(n)){var i={};if(!!a.buySell){i=a.buySell;var s=Su(i,e.getState(),n),o=Fe.a.OrderCalcBuffer,l=(o=void 0===o?{}:o).quantityBuffer,u=i.values.side,d=qe(u,c),b=Ue(0,l,d,!1,u).LimitPrice,p=Object(Y.a)(Object(Y.a)({},i.values),{},Object(Ie.a)({limitPrice:b},n.meta.field,n.payload));p.quantity=s.quantity,su(e,{form:p,formName:"buySell",orders:d})}}return t(n)}}},Pu={affiliateTag:"",affiliateCount:0},Tu={apiKeys:[],isLoading:!1},Eu="PROCESSING_CONFIRM_WITHDRAW",Ru="FINISHED_CONFIRM_WITHDRAW",Nu={type:Eu},Mu=function(e){return{type:Ru,payload:e}},Du={processingValidateUserRegistration:!1,processingSetUserConfig:!1,processingConfirmWithdraw:!1},Lu={isAuthenticated:!1,userId:null,token:null,errorMsg:null,pending:!0,is2FARequired:!1,shouldRedirect:!1,location:{}};var Fu={error:!1,message:""},Uu={instruments:[],allInstruments:[],selectedInstrumentId:void 0,fetching:!0,showInstrumentSelector:!0};function Bu(e,t){return Object(Y.a)(Object(Y.a)({},e),{},{selectedInstrumentId:t})}function zu(e,t){var n={fetching:!1,instruments:t};return Object(Y.a)(Object(Y.a)({},e),n)}var Gu={templateInfo:{},template:{},templateTypes:[],error:"",isLoading:!1,depositInfo:[],depositStatus:{},depositsStatus:[],product:0,depositFees:[]};var Wu={};function Zu(e,t){var n=t.instrumentId,r=t.level1Data;return Object(Y.a)(Object(Y.a)({},e),{},Object(Ie.a)({},n,r))}var qu=n(872),Vu=n.n(qu),_u=n(882),Hu=n.n(_u),Yu={buy:[],sell:[],short:[],unknown:[],fetching:!0},Ku=function(e,t){return t.Price-e.Price};var Qu=function(e,t){var n=$u(t);return Object(Y.a)(Object(Y.a)({},e),{},{sell:n.sell.sort(Ku),buy:n.buy.sort(Ku),fetching:!1})};function Ju(e,t){var n=$u(t);return Object(Y.a)(Object(Y.a)({},e),{},{buy:Xu(e.buy,n.buy),sell:Xu(e.sell,n.sell),short:[].concat(Object(Q.a)(e.short),Object(Q.a)(n.short)),unknown:[].concat(Object(Q.a)(e.unknown),Object(Q.a)(n.unknown))})}var Xu=function(e,t){var n=[],r=[];t.forEach((function(e){2===e.ActionType?(-1!==r.findIndex((function(t){return t.Price===e.Price}))&&(r=r.filter((function(t){return t.Price!==e.Price}))),n.push(e)):r.push(e)}));var a=Hu()(e,n,(function(e){return e.Price}));return Vu()(r,a,(function(e){return e.Price})).sort(Ku)};function $u(e){var t={buy:[],sell:[],short:[],unknown:[]};return e.forEach((function(e){switch(e.Side){case 0:t.buy.push(e);break;case 1:t.sell.push(e);break;case 2:t.short.push(e);break;default:t.unknown.push(e)}})),t}var ed="LOYALTY_FEES_REQUESTED",td="LOYALTY_FEES_SUCCESS",nd="LOYALTY_FEES_ERROR",rd={requested:!1,error:"",loyaltyFees:[]},ad={};var cd={openOrders:[],inactiveOrders:[],accountTrades:[],tradeReports:[],activeRequests:0,isAccountTradesOverDefaultLimitLoading:!1,isAccountTradesOverDefaultLimitSuccess:!1},id=function(e,t){return e?e.filter((function(e){return e.OrderId!==t.OrderId})):[]},sd="SET_ACTIVE_PAGE",od={},ld={products:[],decimalPlaces:{}};function ud(e,t){var n={},r=t.filter((function(e){return"unknown"!==e.Product&&"EUR"!==e.Product}));return r.forEach((function(e){n[e.Product]=e.DecimalPlaces})),Object(Y.a)(Object(Y.a)({},e),{},{products:r,decimalPlaces:n})}var dd={volumes:{}},bd={positions:{},fetching:!0,selectedProductId:1},pd=function(e){return e.reduce((function(e,t){return e[t.ProductId]=t,e}),{})},jd={fetching:!0};var md=function(e,t){var n=t.instrumentId,r=t.data;return Object(Y.a)(Object(Y.a)({},e),{},Object(Ie.a)({fetching:!1},n,r.sort((function(e,t){return t.Timestamp-e.Timestamp}))))},fd=function(e,t){var n=t.instrumentId,r=t.data,a=e[n],c=a?a.slice(0,-r.length):[],i=[].concat(Object(Q.a)(r),Object(Q.a)(c));return Object(Y.a)(Object(Y.a)({},e),{},Object(Ie.a)({},n,i))};var hd="FINISHED_VERIFY_NEW_PASSWORD",Od="SET_PASSWORD_ERROR",xd="CLEAR_RESET_PASSWORD_ERROR",gd={type:"PROCESSING_NEW_PASSWORD"},vd=function(e){return{type:hd,payload:e}},yd={error:!1,message:"",validateError:""},Cd={reports:[],reportWriterResults:[],isLoading:!1};var wd={isOpen:!1,name:"",data:{}};var Sd={snacks:[]};var kd="FETCH_THAI_BANK_ACCOUNT",Id="RECEIVE_THAI_BANK_ACCOUNT",Ad="RECEIVE_THAI_BANK_ACCOUNT_ERROR",Pd="FETCH_THAI_BANK_LIST",Td="RECEIVE_THAI_BANK_LIST",Ed="RECEIVE_THAI_BANK_LIST_ERROR",Rd=function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n){var r;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n({type:Pd}),t.prev=1,t.next=4,Object(x.l)({language:e.split("-")[0]});case 4:r=t.sent,n({type:Td,payload:r}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.error(t.t0),n({type:Ed});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},Nd={account:[],error:!1,isLoading:!1,bankList:null,bankListError:!1,bankListLoading:!1};var Md={tickers:[],interval:86400,fetching:!0},Dd={transfers:[],transfersReceived:[],fetching:!0,twoFactorAuth:{isAuthenticated:!0}},Ld={fetching:!0,items:[],itemRequestStatuses:{}},Fd={fetching:!0,items:[]},Ud={userInfo:{},permissions:[],accounts:[],accountFees:[],userConfig:[],selectedAccountId:void 0,kyc:{urlParams:null},qrCode:"",zmUserInfo:{},zipUp:{}};var Bd={templateInfo:{},template:{},templateTypes:[],error:"",isLoading:!1,withdrawStatus:{},withdrawTickets:[],withdrawWorkflowInfo:null,withdrawFee:0,withdrawFees:[]};var zd={tries:0,isConnected:!1};new(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"initSubscription",value:function(e,t){Ce.connection.RPCCall("SubscribePrices",e,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];try{e=JSON.parse(e.o),t(e)}catch(n){console.error("Price subscription parsing data error: ",n)}}))}},{key:"subscribe",value:function(e){this.unsubscribe(),this.subscription=Ce.connection.ws.filter((function(e){return"PriceUpdate"===e.n})).subscribe((function(t){var n=JSON.parse(t.o);e(n)}))}},{key:"stopOne",value:function(e){Ce.connection.RPCCall("UnSubscribePrices",{InstrumentId:e,OMSId:1})}},{key:"stop",value:function(){}}]),n}(we));var Gd="ADD_PRICE",Wd="FETCHING_ACCOUNT_CREDIT_TIERS",Zd="FETCH_ACCOUNT_CREDIT_TIERS_ERROR",qd="RECEIVE_ACCOUNT_CREDIT_TIERS",Vd={isLoading:!1,error:"",creditTiers:[]};var _d="FETCHING_ACCOUNT_WITHDRAW_INFOS",Hd="RECEIVE_ACCOUNT_WITHDRAW_INFOS",Yd="ACCOUNT_WITHDRAW_INFOS_ERROR",Kd={isLoading:!1,error:"",withdrawInfos:[]};var Qd={isLoading:!1,error:"",accountSettlementPositions:[]};var Jd={priceUpdates:{},lastPrices:{}},Xd=function(e){return{Time:e[0],Bid:e[2],Ask:e[3],Mid:e[4]}},$d=function(e,t){return!e||e.Time<t[0]};var eb={accountState:{},marginStatus:null,fetching:!0},tb={openPositions:[],closedPositions:[],positionPayments:[],activeRequests:0},nb={instruments:[],selectedInstrumentId:void 0,fetching:!0},rb={products:[],fetching:!0},ab=function(e,t){var n=e.products.findIndex((function(e){return e.AccountPosition.ProductId===t.AccountPosition.ProductId}));if(-1===n)return e;var r=Object(Q.a)(e.products);return r[n]=t,Object(Y.a)(Object(Y.a)({},e),{},{products:r})},cb=Object(tt.createSelector)((function(e){return e.margin.product.products}),(function(e){return e.position.positions}),(function(e){return e.product.products}),It,(function(e,t,n,r){var a=r.BaseCurrency||"USD";return e.map((function(e){var r,c=e.AccountPosition,i=Object.values(n).find((function(e){return e.ProductId===c.ProductId})),s=Object.values(t).find((function(e){return e.ProductId===c.ProductId})),o=s?s.Amount:0,l=Lt([s.ProductSymbol]),u=null!==(r=null===i||void 0===i?void 0:i.ProductFullName)&&void 0!==r?r:"";return{ProductId:c.ProductId,MarginAmount:c.Amount,BorrowingPower:e.BorrowingPower,ProductPrice:e.ProductPrice,BaseCurrency:a,StandardAmount:o,IconFileName:l,ProductSymbol:i.Product,ProductFullName:u}}))})),ib=(Object(tt.createSelector)(cb,It,(function(e,t){var n=t.BaseCurrency||"USD",r=0,a=0,c=0;return e.forEach((function(e){r+=e.StandardAmount*e.ProductPrice,a+=e.MarginAmount*e.ProductPrice})),e.length>0&&(c=e[0].BorrowingPower*e[0].ProductPrice),{StandardTotalValue:r,MarginTotalValue:a,BorrowingTotalValue:c,BaseCurrency:n}})),"TRANSFER_ASSETS_REQUESTED"),sb="TRANSFER_ASSETS_SUCCESS",ob="TRANSFER_ASSETS_ERROR",lb={loading:!1},ub=Object(vu.b)({accountState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eb,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case zs:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case Gs:return Object(Y.a)(Object(Y.a)({},e),{},{accountState:r,fetching:!1});case Ws:return Object(Y.a)(Object(Y.a)({},e),{},{marginStatus:r});default:return e}},history:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tb,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case ks:case Is:case As:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:++e.activeRequests});case Ps:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:--e.activeRequests,openPositions:r});case Ts:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:--e.activeRequests,closedPositions:r});case Ns:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:--e.activeRequests,positionPayments:r});case Es:return Object(Y.a)(Object(Y.a)({},e),{},{openPositions:St([r].concat(Object(Q.a)(e.openPositions)),(function(e){return e.PositionId}))});case Rs:return Object(Y.a)(Object(Y.a)({},e),{},{closedPositions:St([r].concat(Object(Q.a)(e.closedPositions)),(function(e){return e.PositionId}))});case Ds:return Object(Y.a)(Object(Y.a)({},e),{},{positionPayments:St([r].concat(Object(Q.a)(e.positionPayments)),(function(e){return e.PositionPaymentId}))});case Ms:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:--e.activeRequests});default:return e}},instrument:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nb,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Zs:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case qs:return Object(Y.a)(Object(Y.a)({},e),{},{instruments:r.instruments,selectedInstrumentId:r.selectedInstrumentId,fetching:!1});case Vs:return Object(Y.a)(Object(Y.a)({},e),{},{selectedInstrumentId:r});default:return e}},product:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rb,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Fs:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case Us:return Object(Y.a)(Object(Y.a)({},e),{},{products:r,fetching:!1});case Bs:return ab(e,r);default:return e}},transfer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lb,t=arguments.length>1?arguments[1]:void 0,n=t.type;t.payload;switch(n){case ib:return Object(Y.a)(Object(Y.a)({},e),{},{loading:!0});case sb:case ob:return Object(Y.a)(Object(Y.a)({},e),{},{loading:!1});default:return e}}}),db=Object($r.b)({name:"transactions",initialState:{fetching:!1,deposits:[],withdrawals:[],depositInfo:[],reqDeposit:[]},reducers:{initDeposits:function(e,t){e.deposits=t.payload},initReqDeposit:function(e,t){e.reqDeposit=t.payload},initDepositInfo:function(e,t){e.depositInfo=t.payload},initWithdrawals:function(e,t){e.withdrawals=t.payload},cancelWithdraw:function(e,t){var n=Object(Q.a)(e.withdrawals);e.withdrawals=n.map((function(e){return e.ticketId!==t.payload.ticketId?e:Object(Y.a)(Object(Y.a)({},e),t.payload)}))},cancelDeposit:function(e,t){var n=Object(Q.a)(e.deposits);e.deposits=n.map((function(e){return e.ticketId!==t.payload.ticketId?e:Object(Y.a)(Object(Y.a)({},e),t.payload)}))},updateFetching:function(e,t){e.fetching=t.payload||!1},updateTransactions:function(e,t){}}}),bb=db.actions,pb=(bb.initDepositInfo,bb.initReqDeposit,bb.initDeposits),jb=bb.updateFetching,mb=bb.initWithdrawals,fb=(bb.updateTransactions,bb.cancelWithdraw),hb=bb.cancelDeposit,Ob=db.reducer;function xb(){return window.localStorage.getItem("zmToken")}var gb=Object($r.a)({reducer:{apiKey:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case vl:return Object(Y.a)(Object(Y.a)({},e),{},{apiKeys:r,isLoading:!1});case gl:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case yl:return Object(Y.a)(Object(Y.a)({},e),{},{apiKeys:[].concat(Object(Q.a)(e.apiKeys),[r])});case Cl:return Object(Y.a)(Object(Y.a)({},e),{},{apiKeys:e.apiKeys.filter((function(e){return e.APIKey!==r}))});default:return e}},affiliate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case ni:return Object(Y.a)(Object(Y.a)({},e),{},{affiliateTag:r});case ri:return Object(Y.a)(Object(Y.a)({},e),{},{affiliateTag:r.AffiliateTag});case ai:return Object(Y.a)(Object(Y.a)({},e),{},{affiliateCount:r.Count});default:return e}},auth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case jo:case mo:case fo:case ho:case Oo:case go:return Object(Y.a)(Object(Y.a)({},e),t.payload);default:return e}},form:W.a,instrument:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case ao:return Bu(e,r);case io:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case oo:return zu(e,r);case uo:return Object(Y.a)(Object(Y.a)({},e),{},{allInstruments:r});case po:return Object(Y.a)(Object(Y.a)({},e),{},{showInstrumentSelector:!e.showInstrumentSelector});default:return e}},level1:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Di:return Zu(e,r);case Li:return Object(Y.a)(Object(Y.a)({},e),r);default:return e}},level2:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Hi:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case Vi:return Qu(e,r);case _i:return Ju(e,r);case qi:return{buy:[],sell:[],short:[],unknown:[],fetching:!0};default:return e}},modal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ad,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case An:return Object(Y.a)(Object(Y.a)({},e),{},Object(Ie.a)({},r.name,{isOpen:!0,modalProps:r.modalProps}));case In:return Object(Y.a)(Object(Y.a)({},e),{},Object(Ie.a)({},r.name,{isOpen:!1}));default:return e}},margin:ub,orderHistory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case vr:return Object(Y.a)(Object(Y.a)({},e),{},{accountTrades:St(r,(function(e){return e.TradeId}))});case br:case mr:case Or:case gr:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:e.activeRequests+1});case jr:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:e.activeRequests-1,accountTrades:St(r,(function(e){return e.TradeId})),isAccountTradesOverDefaultLimitSuccess:!1});case pr:return Object(Y.a)(Object(Y.a)({},e),{},{accountTrades:[r].concat(Object(Q.a)(e.accountTrades))});case dr:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:e.activeRequests-1,openOrders:r});case ur:return Object(Y.a)(Object(Y.a)({},e),{},{openOrders:St([r].concat(Object(Q.a)(e.openOrders)),(function(e){return e.OrderId}))});case hr:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:e.activeRequests-1,inactiveOrders:r});case fr:return Object(Y.a)(Object(Y.a)({},e),{},{inactiveOrders:[r].concat(Object(Q.a)(e.inactiveOrders)),openOrders:id(e.openOrders,r)});case xr:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:e.activeRequests-1,tradeReports:r});case yr:return Object(Y.a)(Object(Y.a)({},e),{},{accountTrades:St([].concat(Object(Q.a)(r),Object(Q.a)(e.accountTrades)),(function(e){return e.TradeId}))});case Cr:return Object(Y.a)(Object(Y.a)({},e),{},{activeRequests:e.activeRequests-1});case wr:return Object(Y.a)(Object(Y.a)({},e),{},{isAccountTradesOverDefaultLimitLoading:!0});case Sr:return Object(Y.a)(Object(Y.a)({},e),{},{isAccountTradesOverDefaultLimitLoading:!1,isAccountTradesOverDefaultLimitSuccess:!0});default:return e}},product:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ld,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Ti:return ud(e,r);default:return e}},productVolume:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Xs:var a=Object(Y.a)({},e);return a.volumes[r.productSymbol]={volume:r.volume,timestamp:r.timestamp},a;default:return e}},position:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case bi:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case pi:return Object(Y.a)(Object(Y.a)({},e),{positions:pd(r),fetching:!1});case mi:return Object(Y.a)(Object(Y.a)({},e),{},{selectedProductId:r});case ji:return Object(Y.a)(Object(Y.a)({},e),{positions:Object(Y.a)(Object(Y.a)({},e.positions),{},Object(Ie.a)({},r.ProductId,r))});default:return e}},recentTrades:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jd,t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=t.type;switch(r){case ns:return md(e,n);case ts:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case rs:return fd(e,n);default:return e}},report:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Tl:return Object(Y.a)(Object(Y.a)({},e),{},{reports:r,isLoading:!1});case Pl:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case Rl:return Object(Y.a)(Object(Y.a)({},e),{},{reportWriterResults:r,isLoading:!1});case El:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case Nl:return Object(Y.a)(Object(Y.a)({},e),{},{reports:[].concat(Object(Q.a)(e.reports),[r])});default:return e}},sidePane:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wd,t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=t.type;switch(r){case xc:return{isOpen:!1,name:"",data:{}};case gc:return{isOpen:!0,name:n.pane,data:n.sidePaneProps};default:return e}},snackbar:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sd,t=arguments.length>1?arguments[1]:void 0,n=t.payload,r=t.type,a=e.snacks;switch(r){case ar:return{snacks:[].concat(Object(Q.a)(a),[n])};case ir:return{snacks:a.filter((function(e){return e.uniqueId!==n}))};case cr:var c=!1;return{snacks:a.filter((function(e){return!(!c&&e.id===n)||(e.id===n&&(c=!0),!1)}))};default:return e}},user:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ud,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Yo:return Object(Y.a)(Object(Y.a)({},e),{},{userInfo:r});case tl:return Object(Y.a)(Object(Y.a)({},e),{},{accountFees:r});case Ko:return Object(Y.a)(Object(Y.a)({},e),{},{userConfig:r});case Tc:return Object(Y.a)(Object(Y.a)({},e),{},{userConfig:kt(e.userConfig,r)});case Qo:return Object(Y.a)(Object(Y.a)({},e),{},{permissions:r});case Jo:return Object(Y.a)(Object(Y.a)({},e),{},{accounts:Object(Q.a)(r)});case Pc:return Object(Y.a)(Object(Y.a)({},e),{},{accounts:kt(e.accounts,r)});case Xo:return Object(Y.a)(Object(Y.a)({},e),{},{selectedAccountId:r});case $o:return Object(Y.a)(Object(Y.a)({},e),{},{qrCode:r});case el:return Object(Y.a)(Object(Y.a)({},e),{},{qrCode:""});case nl:return Object(Y.a)(Object(Y.a)({},e),{},{zipUp:Object(Y.a)(Object(Y.a)({},e.zipUp),{},{fetching:!1,status:r})});case Ao.c:return Object(Y.a)(Object(Y.a)({},e),{},{zipUp:Object(Y.a)(Object(Y.a)({},e.zipUp),{},{fetching:!0})});case Ao.b:return Object(Y.a)(Object(Y.a)({},e),{},{zipUp:Object(Y.a)(Object(Y.a)(Object(Y.a)({},e.zipUp),r),{},{fetching:!1})});case Ao.d:return Object(Y.a)(Object(Y.a)({},e),{},{zipUp:Object(Y.a)(Object(Y.a)({},e.zipUp),{},{fetching:!1,interestTransactions:[].concat(Object(Q.a)(e.zipUp.interestTransactions),Object(Q.a)(r))})});case Ao.a:return Object(Y.a)(Object(Y.a)({},e),{},{zipUp:Object(Y.a)(Object(Y.a)({},e.zipUp),r.zipUp),zmUserInfo:{levelIncreaseStatus:r.levelIncreaseStatus,signupHostname:r.signupHostname,applicantId:r.applicantId,mobileVerified:r.mobileVerified,Use2FA:r.Use2FA,email:r.email,zmUserId:r.zmUserId,referralCode:r.referralCode}});default:return e}},apiProcessing:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Du,t=arguments.length>1?arguments[1]:void 0,n=t.type;switch(n){case Ec:return Object(Y.a)(Object(Y.a)({},e),{},{processingValidateUserRegistration:!0});case Rc:return Object(Y.a)(Object(Y.a)({},e),{},{processingValidateUserRegistration:!1});case Eu:return Object(Y.a)(Object(Y.a)({},e),{},{processingConfirmWithdraw:!0});case Ru:return Object(Y.a)(Object(Y.a)({},e),{},{processingConfirmWithdraw:!1});default:return e}},deposit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case ra:case aa:return Object(Y.a)(Object(Y.a)({},e),{},{error:"",isLoading:!0,product:r.product,templateType:r.templateType});case ua:return Object(Y.a)(Object(Y.a)({},e),{},{error:"",isLoading:!0,product:r.product});case ca:return Object(Y.a)(Object(Y.a)({},e),{},{error:"",product:e.product,templateTypes:r,isLoading:!1});case sa:return Object(Y.a)(Object(Y.a)({},e),{},{error:"",product:e.product,templateInfo:r.Template,template:JSON.parse(r.Template.Template),isLoading:!1});case ia:case oa:case la:return Object(Y.a)(Object(Y.a)({},e),{},{depositInfo:[],template:{},templateInfo:{},error:r,isLoading:!1});case da:return Object(Y.a)(Object(Y.a)({},e),{},{error:"",isLoading:!1,depositInfo:r});case ba:return Object(Y.a)(Object(Y.a)({},e),{},{error:"",depositStatus:r});case ma:return Object(Y.a)(Object(Y.a)({},e),{},{depositsStatus:St([r].concat(Object(Q.a)(e.depositsStatus)),(function(e){return e.ReferenceId}))});case pa:return Object(Y.a)(Object(Y.a)({},e),{},{error:"",depositsStatus:r});case xc:return Object(Y.a)(Object(Y.a)({},Gu),{},{depositsStatus:e.depositsStatus});case fa:return Object(Y.a)(Object(Y.a)({},e),{},{depositFees:r});case ja:default:return e}},withdraw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Ba:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case za:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0,product:r.product,templateType:r.templateType});case Ga:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!1,templateTypes:r,error:""});case Wa:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!1,templateInfo:r,template:JSON.parse(r.Template),error:""});case Za:case qa:return Object(Y.a)(Object(Y.a)({},e),{},{template:{},templateInfo:{},error:r,isLoading:!1});case Va:return Object(Y.a)(Object(Y.a)({},e),{},{withdrawStatus:r});case Ya:return Object(Y.a)(Object(Y.a)({},e),{},{withdrawFee:r});case Ka:return Object(Y.a)(Object(Y.a)({},e),{},{withdrawFees:r});case _a:return Object(Y.a)(Object(Y.a)({},e),{},{withdrawTickets:r});case Ha:return Object(Y.a)(Object(Y.a)({},e),{},{withdrawWorkflowInfo:r});case Qa:return Object(Y.a)(Object(Y.a)({},e),{},{withdrawTickets:St([r].concat(Object(Q.a)(e.withdrawTickets)),(function(e){return e.TicketNumber}))});case xc:return Object(Y.a)(Object(Y.a)({},Bd),{},{withdrawTickets:e.withdrawTickets});default:return e}},wsConnection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Zl:return Object(Y.a)(Object(Y.a)({},e),{},{tries:r});case ql:case Vl:return Object(Y.a)(Object(Y.a)({},e),r);default:return e}},tickers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Md,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case bs:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!1,tickers:Object(Q.a)(r)});case ps:return Object(Y.a)(Object(Y.a)({},e),{},{tickers:e.tickers.concat(r)});case js:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case ms:return Object(Y.a)(Object(Y.a)({},e),{},{interval:r});default:return e}},transfer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Lc:return Object(Y.a)(Object(Y.a)({},e),{},{transfersReceived:r});case Dc:return Object(Y.a)(Object(Y.a)({},e),{},{transfers:r,fetching:!1});case Mc:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});default:return e}},transferRequest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ld,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Wc:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case Zc:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!1,items:r});case _c:return Object(Y.a)(Object(Y.a)({},e),{},{itemRequestStatuses:Object(Y.a)(Object(Y.a)({},e.itemRequestStatuses),{},Object(Ie.a)({},r,"fetching"))});case Hc:return Object(Y.a)(Object(Y.a)({},e),{},{itemRequestStatuses:Object(Y.a)(Object(Y.a)({},e.itemRequestStatuses),{},Object(Ie.a)({},r.requestcode,"success"))});case Yc:return Object(Y.a)(Object(Y.a)({},e),{},{itemRequestStatuses:Object(Y.a)(Object(Y.a)({},e.itemRequestStatuses),{},Object(Ie.a)({},r,"failed"))});default:return e}},paginationMemory:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:od,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case sd:var a=r.componentName,c=r.activePage;return Object(Y.a)(Object(Y.a)({},e),{},Object(Ie.a)({},a,c));default:return Object(Y.a)({},e)}},confirmWithdraw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fu,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Ru:return Object(Y.a)(Object(Y.a)({},e),{},{error:r.error,message:r.message});default:return e}},resetPassword:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case hd:return Object(Y.a)(Object(Y.a)({},e),{},{error:r.error,message:r.message});case Od:return Object(Y.a)(Object(Y.a)({},e),{},{validateError:r.errorMessage});case xd:return Object(Y.a)(Object(Y.a)({},e),{},{validateError:""});default:return e}},loyaltyFee:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case nd:return Object(Y.a)(Object(Y.a)({},rd),{},{error:r});case ed:return Object(Y.a)(Object(Y.a)({},e),{},{requested:!0});case td:return Object(Y.a)(Object(Y.a)({},rd),{},{loyaltyFees:r});default:return e}},transferRequestRequested:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case qc:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!0});case Vc:return Object(Y.a)(Object(Y.a)({},e),{},{fetching:!1,items:r});default:return e}},eotc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Wd:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case qd:return Object(Y.a)(Object(Y.a)({},e),{},{creditTiers:r,error:"",isLoading:!1});case Zd:return Object(Y.a)(Object(Y.a)({},e),{},{error:r,isLoading:!1});default:return e}},eotcWithdraw:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case _d:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case Hd:return Object(Y.a)(Object(Y.a)({},e),{},{withdrawInfos:r,error:"",isLoading:!1});case Yd:return Object(Y.a)(Object(Y.a)({},e),{},{error:r,isLoading:!1});default:return e}},eotcSettlement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Si:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case Ii:return Object(Y.a)(Object(Y.a)({},e),{},{accountSettlementPositions:r,error:"",isLoading:!1});case ki:return Object(Y.a)(Object(Y.a)({},e),{},{error:r,isLoading:!1});default:return e}},eotcPrices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case Gd:var a=r[1],c=Object(Y.a)(Object(Y.a)({},e),{},{priceUpdates:Object(Ie.a)({},a,St([Xd(r)].concat(Object(Q.a)(e.priceUpdates[a]||[])),(function(e){return e.Time})))});return $d(e.lastPrices[a],r)&&(c.lastPrices[a]=Xd(r)),c;default:return e}},thBankAccount:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nd,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case kd:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!0});case Id:return Object(Y.a)(Object(Y.a)({},e),{},{isLoading:!1,account:r,error:!1});case Ad:return Object(Y.a)(Object(Y.a)({},e),{},{error:!0,isLoading:!1});case Pd:return Object(Y.a)(Object(Y.a)({},e),{},{bankListLoading:!0});case Td:return Object(Y.a)(Object(Y.a)({},e),{},{bankListLoading:!1,bankList:r,bankListError:!1});case Ed:return Object(Y.a)(Object(Y.a)({},e),{},{bankListError:!0,bankListLoading:!1});default:return e}},router:Object(o.b)(w),zipCrewSlice:Go,depositSlice:na,withdrawSlice:Ua,transactionsSlice:Ob},middleware:function(e){return e({immutableCheck:!1,serializableCheck:!1}).concat([Object(G.a)(w),nu,tu,pu,Ou,Cu,Au])},devTools:!!Ac.a.get("REACT_APP_DEBUG_REDUX_DEVTOOL")&&{actionsBlacklist:["LEVEL1_LOADED","LEVEL_2_UPDATES","REGISTER_FIELD","LEVEL1_UPDATES_BATCH"]}}),vb=function e(){Object(u.a)(this,e),this.login=function(e){return gb.dispatch((t=e,function(){var e=Object(V.a)(q.a.mark((function e(n){var r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ce.connection.WebAuthenticateUser(t);case 3:if(!(r=e.sent).Authenticated||!r.Requires2FA){e.next=8;break}return e.abrupt("return",n(So(r)));case 8:if(!r.Authenticated){e.next=18;break}return e.next=11,Fe.a.fetchConfig(r.SessionToken);case 11:return e.next=13,n(Ei());case 13:return e.next=15,n(no());case 15:return e.abrupt("return",n(yo(r)));case 18:return n(Object(kn.a)("login","password","")),n(Object(kn.d)("login","password")),e.abrupt("return",n(Co(r)));case 21:e.next=28;break;case 23:return e.prev=23,e.t0=e.catch(0),n(Object(kn.a)("login","password","")),n(Object(kn.d)("login","password")),e.abrupt("return",n(Co({Authenticated:!1,errormsg:e.t0.message||Ae.c.extractT("Invalid email or password")})));case 28:case"end":return e.stop()}}),e,null,[[0,23]])})));return function(t){return e.apply(this,arguments)}}()));var t},this.resetPassword=function(e){return gb.dispatch(function(e){return function(t){var n=e.verifycode,r=e.userid,a=e.d1,c=e.formValues.password;t(gd);var i=atob(a),s={PendingCode:n,Password:c,UserId:r};fetch(i+"ResetPassword2",{method:"POST",body:JSON.stringify(s)}).then((function(e){e.text().then((function(n){var r=JSON.parse(n);if(e.ok&&r.result)return t(vd({error:!1,message:Ae.c.extractT("You successfully reset your password. You can now login with your new password.")}));t(vd({error:!0,message:Ae.c.extractT("Your attempt to reset your password has failed. Error message: {errorMsg}. Contact the exchange admin at {admin} if the problem persists.",{errormsg:r.errormsg,admin:Fe.a.global.exchangeAdmin})}))}))}))}}(e))},this.setUserConfig=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return gb.dispatch(ul(e,t,n,r))},this.closeKYCSidePane=function(){return gb.dispatch(kc())},window.APEXWebActions=this};n(888),n(889),n(890),n(479),n(891),n(892);var yb=n(1258),Cb=n(118),wb=n(78),Sb=n(113),kb=n(6),Ib=new URLSearchParams(window.location.search).get("contentOnly");var Ab=function(e){return Object(s.c)((function(e){return{isAuthenticated:e.auth.isAuthenticated,pendingAuth:e.auth.pending}}),(function(e){return{redirectFromLogin:function(t){return e(function(e){return{type:ho,payload:{shouldRedirect:!!e,location:e}}}(t))}}}))((function(t){var n=t.isAuthenticated,r=t.location,a=t.pendingAuth,c=t.redirectFromLogin;if(a)return Object(kb.jsx)(Sb.a,{});if(!n){if(c(r),!Ib)return Object(kb.jsx)(l.a,{to:Object(wb.a)("/login")});alert("Authentication failed.")}return Object(kb.jsx)(e,Object(Y.a)({},t))}))},Pb=n(672),Tb=n(7),Eb=n(374),Rb=n.n(Eb),Nb=n(893),Mb=n.n(Nb),Db=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=(n=(e=Array.prototype).concat.apply(e,Object(Q.a)(n)).filter((function(e){return e}))).map((function(e){return new Rb.a({name:e,outputIsString:!0})}));return function(e,t){return a.map((function(n){return n(e,Lb(t))})).join(" ")}};function Lb(e){return(t=e)!==Object(t)||Array.isArray(t)?e:Mb()(e);var t}n(480);var Fb=function(e){var t=e.name,n=function(e){if(e.modal.hasOwnProperty(t)){var n=e.modal[t],r=n.isOpen,a=n.modalProps;return Object(Y.a)({isOpen:r},a)}return{isOpen:!1}},r=function(e){return{close:function(){return e(Tn(t))}}};return function(e){return Object(s.c)(n,r)(e)}},Ub=n(377),Bb=n.n(Ub),zb=n(271),Gb=n.n(zb),Wb="general",Zb="additive",qb="subtractive",Vb=(O.a.oneOf([Wb,Zb,qb]),function(e){var t=e.children,n=e.styleName,r=e.baseClass,c=e.customClass,i=e.classModifiers,s=e.disabled,o=e.dataTest,l=Object(Hr.a)(e,["children","styleName","baseClass","customClass","classModifiers","disabled","dataTest"]),u=Db(r,c,i);return Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsx)(_b,Object(Y.a)(Object(Y.a)({disabled:s,"data-test":o,className:u("btn",[n,i])},l),{},{children:t}))})});Vb.defaultProps={name:"",value:"",type:"",autoFocus:!1,disabled:!1,baseClass:"ap-button",styleName:Wb};var _b=Object(Tb.a)("button",{target:"eqigt60"})((function(e){return e.rounded&&"border-radius: 7px !important;"})," ",(function(e){return e.outline&&"\n      color: ".concat(Po.a.text_highlight," !important;\n      background: transparent !important;\n      border-color: ").concat(Po.a.text_highlight," !important;\n    ")}),";"),Hb=Vb,Yb=n(379),Kb=n.n(Yb),Qb=(n(907),n(485)),Jb=n(486),Xb=n(487),$b=n(488),ep=n(489),tp=n(490),np=n(491),rp=n(492),ap=n(493),cp=n(494),ip=n(495),sp=n(496),op=n(497),lp=n(498),up=n(499),dp=n(500),bp=n(501),pp=n(502),jp=n(503),mp=n(504),fp=n(505),hp=n(506),Op=n(507),xp=n(508),gp=n(509),vp=n(510),yp=n(511),Cp=n(512),wp=n(513),Sp=n(514),kp=n(515),Ip=n(516),Ap=n(517),Pp=n(518),Tp=n(519),Ep=n(520),Rp=n(521),Np=n(522),Mp=n(523),Dp=n(524),Lp=n(525),Fp=n(526),Up=n(527),Bp=n(528),zp=n(529),Gp=n(530),Wp=n(531),Zp=n(532),qp=n(533),Vp=n(534),_p=n(535),Hp=n(536),Yp=n(537),Kp=n(538),Qp=n(539),Jp=n(540),Xp=n(541),$p=n(542),ej=n(543),tj=n(544),nj=n(545),rj=n(546),aj=n(547),cj=n(548),ij=n(549),sj=n(550),oj=n(551),lj=n(552),uj=n(553),dj=n(554),bj=n(555),pj=n(556),jj=n(557),mj=n(558),fj=n(559),hj=n(560),Oj=n(561),xj=n(562),gj=n(563),vj=n(564),yj=n(565),Cj={"buy-sell":Qb.default,home:cp.default,market:ip.default,conversion:fj.default,dashboard:$b.default,trading:ep.default,transaction:Xb.default,exchange:Jb.default,user:tp.default,"user-settings":np.default,wallet:rp.default,balance:ap.default,activity:sp.default,contacts:op.default,key:lp.default,reports:up.default,security:dp.default,tasks:bp.default,heart:pp.default,paint:mp.default,friends:jp.default,sendWithBorder:fp.default,receiveWithBorder:hp.default,depositWithBorder:Op.default,withdrawWithBorder:xp.default,sendTokenIcon:gp.default,receiveTokenQRIcon:vp.default,"open-buy":yp.default,"open-sell":Cp.default,caretPrevious:wp.default,caretNext:Sp.default,doubleCaretPrevious:kp.default,doubleCaretNext:Ip.default,dropdown:Ap.default,barcode:Pp.default,calendar:Tp.default,eye:Ep.default,info:Rp.default,cancel:Np.default,download:Mp.default,download2:Dp.default,check:Lp.default,"simple-check":Fp.default,refresh:Up.default,close:Bp.default,buy:zp.default,sell:Gp.default,receive:Zp.default,send:Wp.default,deposit:qp.default,withdraw:Vp.default,copy:_p.default,star:Hp.default,stop:Kp.default,arrowPrevious:sj.default,arrowNext:oj.default,search:Qp.default,clear:Jp.default,export:Xp.default,"logo-powered":tj.default,"filled-star":Yp.default,"warning-check":$p.default,"green-check":ej.default,notification:nj.default,center:rj.default,checkbox:aj.default,"menu-toggle":cj.default,bigKey:ij.default,pending:lj.default,settings:uj.default,alert:dj.default,menu:bj.default,plus:pj.default,tick:jj.default,cross:mj.default,world:hj.default},wj={US:Oj.default,GB:xj.default,CN:gj.default,ID:vj.default,TH:yj.default},Sj=function(e){var t=e.name,n=e.isFlag,r=e.customClass,a=e.classModifiers,c=e.onClick,i=function(e,t){var n;return Array.isArray(e)?n=[t].concat(Object(Q.a)(e)):"string"===typeof e?n=[t,e]:"object"===typeof e&&((n=e)[t]=!0),n}(a,t),s=Db(["ap-icon",r]),o=n?wj[t]:Cj[t];return Object(kb.jsx)(Kb.a,{src:o,className:s(null,i),onClick:c})};Sj.defaultProps={name:"",isFlag:!1,customClass:"custom-icon",classModifiers:"",disabled:!1};var kj=Sj,Ij=kj,Aj=(n(908),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).getBEMClasses=function(){return Db("ap-modal",r.props.customClass)},r.renderCloseIcon=function(){var e=r.getBEMClasses(),t=r.props.onCancel||r.props.close;return Object(kb.jsx)("div",{onClick:t,className:e("close-icon"),children:Object(kb.jsx)(Ij,{name:"close",classModifiers:"big"})})},r.handleFooterButtonClick=function(e){r.props.footer.onClick(),!r.props.footer.overrideClose&&r.props.close()},r.modalRef=null,r.unlisten=null,r}return Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this;Bb.a.setAppElement(this.modalRef),this.unlisten=w.listen((function(t,n){var r=e.props.onCancel||e.props.close;"POP"===n&&e.props.isOpen&&r()}))}},{key:"componentWillUnmount",value:function(){this.unlisten(),this.unlisten=null}},{key:"render",value:function(){var e=this;if(!this.props.isOpen)return null;var t=this.getBEMClasses();return Object(kb.jsx)("div",{ref:function(t){return e.modalRef=t},children:Object(kb.jsxs)(Bb.a,{className:t(),ariaHideApp:!1,overlayClassName:t("overlay"),onRequestClose:this.props.onCancel||this.props.close,isOpen:this.props.isOpen,portalClassName:Gb()("ReactModalPortal",t("portal")),children:[!this.props.hideHeader&&Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)("div",{className:t("header"),children:this.props.title}),this.renderCloseIcon()]}),this.props.hideHeader&&this.props.close&&this.renderCloseIcon(),Object(kb.jsx)("div",{className:t("content"),children:this.props.children}),this.props.footer&&Object(kb.jsx)("div",{className:t("footer"),children:Object(kb.jsx)(Hb,{customClass:this.props.footer.customClass+" "+t(),onClick:this.handleFooterButtonClick,styleName:this.props.footer.buttonStyle,disabled:this.props.footer.disabled,children:this.props.footer.buttonText})})]})})}}]),n}(a.a.Component));Aj.defaultProps={overrideClose:!1};var Pj=function(e,t){return e.dataTest||("string"===typeof(n=e[t])||n instanceof String?e[t]:"");var n},Tj=n(16),Ej=(n(909),new Rb.a({name:"ap-label-with-text",outputIsString:!0})),Rj=function(e){var t=e.label,n=e.text,r=e.customClass,a=e.classModifiers,c=e.onCopyToClipboard,i=new Rb.a({name:r,outputIsString:!0});return Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.f,{children:t}),Object(kb.jsxs)(Tj.d,{margin:"0 0 10px 0","data-test":Pj(e,"label"),children:[n,c&&Object(kb.jsx)(Ij,{name:"copy",onClick:c,classModifiers:Gb()(Ej("copy"),i("lwt-copy",a))})]})]})};Rj.defaultProps={customClass:"custom-label-with-text"};var Nj=Rj,Mj=Nj,Dj=(n(910),Db("buy-sell-order-confirmation")),Lj=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).placeOrder=function(){var e=r.props,t=e.confirmReport,n=e.buySellForm;r.setState({submitting:!0}),t(n.values).then((function(e){r.setState({submitting:!1})}),(function(e){}))},r.state={submitting:!1},r}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.isBuySide,n=e.buySellForm,r=e.isOpen,a=e.close,c=e.selectedInstrument,i=e.actualPrice,s=e.totalPrice,o=e.quantity,l=e.actualQuantity,u=e.onClose,d=e.feeFormatted,b=e.feePercentage,p=e.hideFees,j=e.displayPricePerUnit,m=e.pricePerUnit,f=this.context,h=c.Product1Symbol,O=n.values.responseMessage;return Object(kb.jsx)(Aj,{isOpen:r,title:O||(t?f.t("Confirm your buy"):f.t("Confirm your sell")),close:function(){a(),u()},footer:{buttonText:f.t(Uj(t,O)),disabled:this.state.submitting,customClass:Dj(t?"buy-btn":"sell-btn"),onClick:O?function(){a(),u()}:this.placeOrder,overrideClose:!0},customClass:Dj("modal"),children:!O&&Object(kb.jsxs)("div",{className:Dj(),children:[Object(kb.jsx)(Mj,{customClass:Dj(),label:t?f.t("I am buying"):f.t("I am selling"),text:t?"".concat(l," ").concat(h):"".concat(o," ").concat(h)}),j&&Object(kb.jsx)(Mj,{customClass:Dj(),label:f.t("At price"),text:m}),!p&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Mj,{customClass:Dj(),label:f.t("Fee ({feePercentage}%)",{feePercentage:b}),text:d}),Object(kb.jsx)(Mj,{customClass:Dj(),label:t?f.t("You Spend"):f.t("You Receive"),text:" ".concat(t?s:i," ").concat(c.Product2Symbol)})]}),"xbullion"===Fe.a.global.brand&&Object(kb.jsx)("div",{className:Dj("xb-notice"),children:f.t("Prices quoted on the xbullion platform are updated regularly and are indicative only until such time as a sale is confirmed. Live pricing is sourced from a third party.")})]})})}}]),n}(a.a.Component);Lj.defaultProps={displayPricePerUnit:!1},Lj.contextTypes={t:O.a.func.isRequired};var Fj=Lj,Uj=function(e,t){return t?Ae.c.extractT("OK"):e?Ae.c.extractT("Confirm Buy"):Ae.c.extractT("Confirm Sell")},Bj=Object(tt.createSelector)([function(e){return e.form.buySell}],(function(e){return!e||e.values.side===Te})),zj=(Object(tt.createSelector)([function(e){return e}],(function(e){var t=e.instrument.instruments.find((function(e){return"GOLDUSD"===e.Symbol})),n=t&&t.InstrumentId?t.InstrumentId:41,r=e.level1[n];return{Bid:r&&r.BestBid||0,Ask:r&&r.BestOffer||0,isFetching:!r}})),Object(tt.createSelector)([function(e){return e},un,pt,jt,Bj],(function(e,t,n,r,a){var c=t.quantity?t.quantity:0,i=t.price?t.price:0,s=t.limitPrice?t.limitPrice:0,o=t.pricePerUnit?t.pricePerUnit:0,l=n.Product1Symbol,u=n.Product2Symbol,d=e.form.buySell,b=void 0===d?{values:{fee:{}}}:d,p=e.position,j=b.values.fee.OrderFee,m=void 0===j?0:j,f=e.level1[n.InstrumentId],h=Ge(b.values.side,du(b.values.price,f),null===f||void 0===f?void 0:f.BestBid,null===f||void 0===f?void 0:f.BestOffer,b.values.orderType)===Me?Le:De,O=Tt(e,h),x=new k.a(i).minus(m),g=F(b.values.quantity)>0?new k.a(b.values.quantity).minus(m):0;return{quantity:L(c,r[l]),actualQuantity:L(g,r[l]),limitPrice:s,pricePerUnit:gt(u,Ze(o,l,u,r,a),!0),feePercentage:O,feeFormatted:We(b,p.positions,"end"),actualPrice:gt(u,L(x,r[u],a?k.a.ROUND_CEIL:k.a.ROUND_FLOOR),!0),totalPrice:gt(u,L(i,r[u],a?k.a.ROUND_CEIL:k.a.ROUND_FLOOR),!0),price:gt(u,L(i,r[u],a?k.a.ROUND_CEIL:k.a.ROUND_FLOOR),!0)}}))),Gj=Object(s.c)((function(e){var t=e.form.buySell,n=void 0===t?{values:{fee:{}}}:t,r=pt(e),a=rn(e),c=pt(e).Product1Symbol,i=zj(e),s=i.quantity,o=i.actualQuantity,l=i.price,u=i.actualPrice,d=i.totalPrice,b=i.feePercentage,p=i.feeFormatted;return{symbol1:c,isBuySide:a,buySellForm:n,selectedInstrument:r,price:l,actualPrice:u,quantity:s,actualQuantity:o,pricePerUnit:i.pricePerUnit,totalPrice:d,feePercentage:b,feeFormatted:p,hideFees:!!Fe.a.global.hideFees,displayPricePerUnit:Fe.a.RetailBuySell.pricePerUnit}}),(function(e){return{confirmReport:function(t){return e(Qn(Qe,t)).catch((function(t){!1===t.result&&e(sr({id:"confirmBuySellFail",text:t.detail||t.errormsg,type:"warning"}))}))},onClose:function(){return e(Xn())}}}))(Fj),Wj=Fb({name:Mn})(Gj),Zj=n(269);var qj=function(e){var t=e.tabName,n=e.to,r=e.underlineColor,a=e.onClick;return Object(kb.jsxs)(Vj,{onClick:a,to:n,underlineColor:r,activeClassName:"active",children:[Object(kb.jsx)(Tj.d,{className:"navText",children:t}),Object(kb.jsx)("div",{className:"navUnderline"})]})},Vj=Object(Tb.a)(Zj.b,{target:"eu74bu40"})("cursor:pointer;text-align:center;position:relative;.navText{font-family:",Tj.g.heading,";display:inline;color:",Po.a.text_grey,";padding:0 10px;}.navUnderline{height:4px;border-radius:4px;margin-top:3px;background:transparent;}&&.active{&& .navText{color:",Po.a.text_body,";}&& .navUnderline{background:",(function(e){return e.underlineColor?e.underlineColor:Po.a.bg_highlight}),";}}"),_j=(Object(Tb.a)("div",{target:"eu74bu41"})({name:"k008qs",styles:"display:flex;"}),n(239));var Hj=function(e,t){var n=Object(Y.a)(Object(Y.a)({},e),t),r="/".concat(n.buyOrSell);return n.product1&&(r+="/".concat(n.product1)),n.product2&&(r+="/".concat(n.product2)),r},Yj=function(e){var t=Object(_j.a)().t,n=e.clearForm,r=e.match.params;return Object(kb.jsxs)(Kj,{children:[Object(kb.jsx)(qj,{tabName:t("Buy"),onClick:function(){n()},to:Hj(r,{buyOrSell:"buy"})}),Object(kb.jsx)(qj,{tabName:t("Sell"),onClick:function(){n()},to:Hj(r,{buyOrSell:"sell"}),underlineColor:Po.a.bg_danger})]})},Kj=Object(Tb.a)("div",{target:"ekr6ghb0"})({name:"k008qs",styles:"display:flex;"}),Qj={setBuyValue:function(){return Object(kn.a)("buySell","side",Te)},setSellValue:function(){return Object(kn.a)("buySell","side",Pe)},clearForm:Xn},Jj=Object(s.c)((function(e){return{isBuySide:rn(e)}}),Qj)(Yj),Xj=Object(l.i)(Jj),$j=n(671),em=(n(566),function(e){var t=e.input,n=e.meta,r=e.classModifiers,a=e.customClass,c=e.info,i=e.label,s=e.onSelect,o=e.showTriangles,l=e.optionGroups,u=void 0===l?[]:l,d=e.placeholder,b=Object(Hr.a)(e,["input","meta","classModifiers","customClass","info","label","onSelect","showTriangles","optionGroups","placeholder"]),p=Db(["ap-select",a]);return Object(kb.jsxs)("div",{className:"form-group ".concat(p("select-wrapper",r)),children:[Object(kb.jsx)("label",{className:"ap--label ".concat(p("select-label")),children:Object(kb.jsx)(Tj.d,{children:i})}),o?Object(kb.jsx)("div",{className:p("triangles-container"),children:Object(kb.jsx)("span",{className:"triangle-down"})}):"",Object(kb.jsxs)("select",Object(Y.a)(Object(Y.a)(Object(Y.a)({className:Gb()("form-control ".concat(p("select")),t&&!t.value&&p("select-unselected"))},t),b),{},{onChange:function(e){s&&s(e.target.value),t&&t.onChange(e)},children:[d&&Object(kb.jsx)("option",{className:p("option-placeholder"),value:"",disabled:!0,children:d}),u.map((function(e){return Object(kb.jsx)("optgroup",{label:e.label,children:e.options.map((function(e){return Object(kb.jsx)("option",{value:e.value,children:e.label},e.value)}))},e.label)}))]})),Object(kb.jsx)("small",{className:"form-text-muted ".concat(p("select-info")),children:c}),n&&n.dirty&&n.error&&Object(kb.jsx)("span",{className:p("select-error"),children:n.error})]})}),tm=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:em},e))};tm.defaultProps={name:"",label:"",classes:"input",customClass:"custom-select",classModifiers:"",info:"",autoFocus:"",disabled:!1,multiple:!1,required:!1};n(911);var nm=Db("product-icon"),rm=function(e,t,n){return Object(kb.jsx)("div",{className:nm(null,"default")+" "+n,style:{width:e,height:e,MozBorderRadius:e/2,WebkitBorderRadius:e/2,borderRadius:e/2,textAlign:"center",fontSize:.5*e,lineHeight:"".concat(e,"px")},children:Object(kb.jsx)("span",{children:t.charAt(0)})})},am=function(e){var t=e.iconFileName,n=e.size,r=void 0===n?48:n,a=e.customClass,c=void 0===a?"":a,i=e.className,s=void 0===i?"":i;return t&&t.indexOf("DEFAULT_ICON")>0?rm(r,t,s):Object(kb.jsx)("img",{alt:"product icon",height:r+"px",className:c+" "+s,src:Object(wb.a)("/local/product-icons/".concat(t))})},cm=Object(s.c)((function(e,t){return{iconFileName:t.iconFileName,size:t.size||48}}))(am);var im=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).onInstrumentSelect=function(t){var n=e.props.match.params.buyOrSell;e.props.history.push("/".concat(n,"/").concat(t))},e.getInstrumentOptionValue=function(e){return"".concat(e.Product1Symbol,"/").concat(e.Product2Symbol)},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this,t=this.context,n=this.props,r=n.baseClasses,a=n.label,c=n.instruments,i=n.selectedInstrument,s=c.map((function(t){return{value:e.getInstrumentOptionValue(t),label:"".concat(t.Product1FullName," / ").concat(t.Product2FullName)}})),o=[];return s.length>0&&o.push({label:"Instruments",options:s}),Object(kb.jsxs)("div",{className:r("crypto-container"),children:[Object(kb.jsx)(om,{children:Object(kb.jsx)(cm,{iconFileName:Lt(i.Product1Symbol),size:25})}),Object(kb.jsx)(em,{name:"instrument",label:t.t(a),value:this.getInstrumentOptionValue(i),onSelect:this.onInstrumentSelect,optionGroups:o,customClass:r(),showTriangles:!0})]})}}]),n}(a.a.Component);im.contextTypes={t:O.a.func.isRequired};var sm=im,om=Object(Tb.a)("div",{target:"ele43sp0"})({name:"1l7lq42",styles:"position:absolute;bottom:13px;left:10px;z-index:20;"}),lm=Object(s.c)((function(e){var t=rn(e)?Ae.c.extractT("Choose an asset to buy"):Ae.c.extractT("Choose an asset to sell");return{instruments:mt(e),selectedInstrument:pt(e),label:t}}))(sm),um=Object(l.i)(lm),dm=(n(912),function(e,t){var n=e.customClass,r=e.className,a=e.disabled,c=e.isUnderReview,i=e.verificationLevelPageUrl,s=e.enableOnClick,o=e.onVerificationLinkClick,l=e.onClick,u=e.customKYCmessage,d=e.history,b=e.disableKYCLinkUnderReview?c:""===i,p=Db(["verification-required",n]);return a?Object(kb.jsx)("div",{className:p("container"),children:Object(kb.jsxs)("div",{className:p(b?"no-link":""),onClick:function(){b||(i.match(/^http/)?window.location.href=i:(d.push(Object(wb.a)(i)),s&&o()),l&&l())},children:[Object(kb.jsx)(Ij,{name:"alert",customClass:p("warning"),classModifiers:"small"}),Object(kb.jsx)("span",{className:"ap--label ".concat(p("not-verified")," ").concat(r),children:u||bm(t,c,b)})]})}):null}),bm=function(e,t,n){return n&&t?e.t("You are not yet verified. Verification under review."):n?e.t("You are not yet verified. Verify your identity to start trading."):t?e.t("Verification under review. Click here to check your verification status."):e.t("Verify your identity to start trading. Click here to verify.")};dm.defaultProps={className:"",onVerificationLinkClick:function(){},isUnderReview:!1,disabled:!1,enableOnClick:!0,disableKYCLinkUnderReview:!1},dm.contextTypes={t:O.a.func.isRequired};var pm=Object(l.i)(dm),jm=Object(s.c)((function(e,t){var n=Rt(e),r=n.disableTrading,a=n.isUnderReview;return Object(Y.a)({verificationRequired:!0,verificationLevelPageUrl:Fe.a.KYC.verificationRequiredUrl,enableVerificationLinkOnClick:!1,disabled:r,isUnderReview:a},t)}),{})(pm),mm=n(30),fm=n(1287),hm=n(248);var Om=Object(mm.a)("color:",Po.a.text_highlight,";background-color:transparent;"),xm=Object(mm.a)("color:",Po.a.text_buttons_outlined,";background-color:transparent;border:1px solid ",Po.a.border_highlight,";&:hover{background-color:",Po.a.bg_outline_hover,";}&&.Mui-disabled{color:",Po.a.text_disabled,";border:1px solid ",Po.a.border_highlight,";background-color:",Po.a.bg_outline_hover,";}"),gm=Object(mm.a)("color:",Po.a.text_buttons_contained,";background-color:",Po.a.bg_highlight,";&:hover{background-color:",Po.a.bg_highlight_hover,";}"),vm=Object(mm.a)("font-size:",Tj.h.h5,";font-family:",Tj.g.body,";padding:2px 10px;border-radius:7px;max-height:30px;"),ym=Object(mm.a)("font-size:",Tj.h.h3,";"),Cm=Object(mm.a)("font-size:",Tj.h.h2,";"),wm={text:Om,outlined:xm,contained:gm},Sm={small:vm,medium:ym,large:Cm},km={small:"20px",medium:"30px",large:"40px",undefined:"30px"},Im=Object(Tb.a)("span",{target:"evnz6ot1"})({name:"gyp8mm",styles:"visibility:hidden;"}),Am=Object(Tb.a)(hm.a,{target:"evnz6ot2"})("position:absolute;top:calc(50% - ",(function(e){return e.size})," / 2);left:calc(50% - ",(function(e){return e.size})," / 2);color:",Po.a.text_body,";"),Pm=function(e){var t=e.children,n=e.className,r=e.type,a=void 0===r?"button":r,c=e.variant,i=e.size,s=e.showLoading,o=e.disabled,l=e.borderRadius,u=Object(Hr.a)(e,["children","className","type","variant","size","showLoading","disabled","borderRadius"]),d=function(e){return Object(Tb.a)(fm.a,{target:"evnz6ot0"})("&&{font-family:",Tj.g.heading,";font-weight:normal;text-transform:none;position:relative;display:flex;justify-content:center;align-items:center;border-radius:",(function(){return e||"16px"}),";padding:6px 20px;border:0;cursor:pointer;",(function(e){var t=e.variant;return wm[void 0===t?"contained":t]}),";",(function(e){var t=e.size;return Sm[void 0===t?"medium":t]}),";",(function(e){var t=e.fontSize;return t?"font-size: ".concat(t,";"):""}),";}")}(l);return Object(kb.jsx)(d,Object(Y.a)(Object(Y.a)({className:n,type:a,variant:c,size:i,disabled:s||o},u),{},{children:s?Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Im,{children:t}),Object(kb.jsx)(Am,{color:"inherit",size:km[i]})]}):Object(kb.jsx)("span",{children:t})}))};var Tm=function(e,t){var n=e.handleSubmit,r=e.submitting,a=e.disabled,c=e.isBuySide,i=e.VerificationRequiredComponent,s=e.hideKYC,o=e.customKYCmessage,l=e.disableKYCLinkUnderReview,u=c?t.t("Buy"):t.t("Sell");return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Rm,{children:Object(kb.jsx)(Nm,{onClick:n,background:c,disabled:a,showLoading:r,fullWidth:!0,children:t.t(u)})}),!s&&Object(kb.jsx)(i,{customKYCmessage:o,disableKYCLinkUnderReview:l})]})};Tm.defaultProps={disableKYCLinkUnderReview:!1},Tm.contextTypes={t:O.a.func.isRequired};var Em=Tm,Rm=Object(Tb.a)("div",{target:"e1a8026g0"})({name:"1one0gm",styles:"margin-top:25px;width:100%;"}),Nm=Object(Tb.a)(Pm,{target:"e1a8026g1"})("background:",(function(e){return e.background?Po.a.bg_highlight:Po.a.bg_danger}),"!important;"),Mm=Object(s.c)((function(e){var t=rn(e);return{disabled:dn(e),isBuySide:t,VerificationRequiredComponent:jm}}))(Em),Dm=n(913),Lm=n.n(Dm),Fm=n(915),Um=n.n(Fm),Bm=(n(914),function(e,t){var n=e.input,r=e.customClass,a=e.classModifiers,c=e.meta,i=e.rows,s=e.info,o=e.label,l=e.labelInInput,u=e.rightLabelText,d=e.iconComponent,b=e.showErrorMessage,p=Object(Hr.a)(e,["input","customClass","classModifiers","meta","rows","info","label","labelInInput","rightLabelText","iconComponent","showErrorMessage"]),j=i>1,m=Db(["ap-input",r]),f=Object(Y.a)(Object(Y.a)({className:Gb()("form-control",Object(Ie.a)({},m("with-label"),l),Object(Ie.a)({},m("input","error",""),c.dirty&&c.error&&b),Object(Ie.a)({},m("text-area"),j),m("input",u?"with-right-label":a))},n),p);return Object(kb.jsxs)("div",{className:"form-group ".concat(m("input-wrapper",a)," ").concat("hidden"===e.type&&"form-group-hidden"),children:[o&&Object(kb.jsx)("label",{className:"ap--label ".concat(m("label",a)),children:o}),Object(kb.jsxs)("div",{className:Gb()(u&&m("input-with-right-label-container"),m("input-box")),children:[l&&Object(kb.jsx)("span",{className:"label-in-input ".concat(m("label-in-input")),children:l}),j?Object(kb.jsx)("textarea",Object(Y.a)(Object(Y.a)({},f),{},{"data-test":Pj(e,"label")})):d?Object(kb.jsxs)("div",{className:m("input-with-icon"),children:[Object(kb.jsx)("input",Object(Y.a)({"data-test":Pj(e,"label")},f)),d]}):"numericInput"===f.type||"antNumericInput"===f.type?"numericInput"===f.type?Object(kb.jsx)(Lm.a,Object(Y.a)({mobile:!1,style:{input:{padding:""},arrowUp:{borderColor:"transparent transparent #fff"},arrowDown:{borderColor:"#fff transparent transparent"}}},f)):Object(kb.jsx)(Um.a,Object(Y.a)({mobile:!1},f)):Object(kb.jsx)("input",Object(Y.a)({"data-test":Pj(e,"label")},f)),u?Object(kb.jsx)("div",{className:m("right-label"),children:Object(kb.jsx)("span",{className:m("right-label-span"),children:u})}):null,s&&Object(kb.jsx)("div",{className:"form-text-muted ".concat(m("info")),children:s}),b&&c.touched&&c.error&&Object(kb.jsx)("div",{className:m("error"),children:t.t(c.error)})]})]})});Bm.contextTypes={t:O.a.func.isRequired},Bm.defaultProps={showErrorMessage:!0};var zm=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:Bm},e))};zm.defaultProps={name:"",label:"",labelInInput:"",type:"",classModifiers:"",placeholder:"",info:"",autoFocus:"",disabled:!1,required:!1,rows:1};var Gm=zm,Wm=Gm,Zm=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).handleChange=function(t){var n=e.props,r=n.customChange,a=n.defaultValue,c=void 0===a?0:a;t>0&&(c=t),e.props.input.onChange(c),r&&r(t)},e}return Object(d.a)(n,[{key:"shouldComponentUpdate",value:function(e){return e.input.value!==this.props.input.value||e.decimalPlaces!==this.props.decimalPlaces||e.labelInInput!==this.props.labelInInput}},{key:"render",value:function(){var e=this.props,t=e.input,n=e.min,r=(e.customChange,e.decimalPlaces),a=(e.usePlaceholder,e.placeholder),c=e.type,i=e.step,s=Object(Hr.a)(e,["input","min","customChange","decimalPlaces","usePlaceholder","placeholder","type","step"]),o=a||Number(0).toFixed(r),l=r?1/Math.pow(10,r):1,u=i>1?i:l;return Object(kb.jsx)(Bm,Object(Y.a)(Object(Y.a)({},s),{},{autoComplete:"off",type:"antNumericInput"===c?"antNumericInput":"numericInput",step:u,precision:isNaN(r)?0:r,min:n,input:Object(Y.a)(Object(Y.a)({},t),{},{onChange:this.handleChange}),placeholder:o}))}}]),n}(a.a.Component),qm=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:Zm},e))},Vm=function(e,t){var n=e.product1,r=e.product2,c=e.customClass,i=e.baseClasses,s="".concat("compacted"===c&&n.ProductSymbol?n.ProductSymbol:""," ").concat(n.ProductFullName),o="".concat("compacted"===c&&r.ProductSymbol?r.ProductSymbol:""," ").concat(r.ProductFullName),l=gt(n.ProductSymbol,n.AvailableBalance,!0),u=gt(r.ProductSymbol,r.AvailableBalance,!0);return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",children:t.t("Available balances")}),Object(kb.jsxs)("div",{className:i("available-balance"),children:[Object(kb.jsxs)(Hm,{children:[Object(kb.jsx)(Tj.f,{children:s}),Object(kb.jsxs)(Tj.f,{color:Po.a.text_body,children:[l," ",n.ProductSymbol]})]}),Object(kb.jsxs)(Hm,{children:[Object(kb.jsx)(Tj.f,{children:o}),Object(kb.jsxs)(Tj.f,{color:Po.a.text_body,children:[u," ",r.ProductSymbol]})]})]})]})};Vm.contextTypes={t:O.a.func.isRequired};var _m=Vm,Hm=Object(Tb.a)("div",{target:"e14bg4ur0"})("display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid ",Po.a.border,";margin:0 0 10px 0;padding-bottom:4px;"),Ym=Object(s.c)((function(e){var t=pt(e);return{product1:$t(e,t.Product1)||{},product2:$t(e,t.Product2)||{}}}),{})(_m),Km=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.synchronizeQuantityWithPrice,n=e.synchronizePriceWithQuantity,r=e.setAmount,a=e.activeAmount,c=e.themeModifier,i=e.formObj,s=e.isBuySide,o=e.baseClasses,l=e.selectedInstrument,u=e.decimalPlaces,d=e.product2Price,b=e.marketOpen,p=e.changeForm,j=e.minQuantity,m=e.maxQuantity,f=s?this.context.t("I want to spend"):this.context.t("I want to sell"),h=parseFloat(i.values.quantity)>m,O=parseFloat(i.values.quantity)<j;return Object(kb.jsxs)(kb.Fragment,{children:[!b&&Object(kb.jsx)("div",{className:o("market-closed"),children:this.context.t("Market is currently closed")}),b&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)("div",{className:o("instrument-summary"),children:[Object(kb.jsxs)("span",{className:o("product-1"),children:["1 ",l.Product1Symbol]}),Object(kb.jsxs)("span",{className:o("product-2"),children:[" = ",d," ",l.Product2Symbol]})]}),Object(kb.jsx)(Ym,{baseClasses:o}),Object(kb.jsx)(Tj.d,{children:f}),Object(kb.jsx)("div",{className:o("amount-row","two-inputs-layout"),onClick:function(){return r("custom")},children:s?Object(kb.jsx)("div",{className:o("number-input"),children:Object(kb.jsx)(qm,{type:"antNumericInput",usePlaceholder:!0,labelInInput:l.Product2Symbol,name:"price",customClass:o(),classModifiers:"".concat("custom"===a?"active":"disable"," ").concat(c),decimalPlaces:u[l.Product2Symbol],customChange:function(e){t(e,"buySell","quantity",i),p("buySell","layoutType",Mt)}})}):Object(kb.jsx)("div",{className:o("number-input"),children:Object(kb.jsx)(qm,{type:"antNumericInput",usePlaceholder:!0,labelInInput:l.Product1Symbol,name:"quantity",customClass:o(),classModifiers:"".concat("custom"===a?"active":"disable"," ").concat(c),decimalPlaces:u[l.Product1Symbol],customChange:function(e){n(e,"buySell","price",i),p("buySell","layoutType",Nt)}})})}),h&&Object(kb.jsx)("p",{className:o("quantity-warning"),children:this.context.t("Max Quantity: {maxQuantity} {symbol}",{maxQuantity:m,symbol:l.Product1Symbol})}),O&&Object(kb.jsx)("p",{className:o("quantity-warning"),children:this.context.t("Min Quantity: {minQuantity} {symbol}",{minQuantity:j,symbol:l.Product1Symbol})})]})]})}}]),n}(a.a.Component);Km.contextTypes={t:O.a.func.isRequired};var Qm=Km,Jm=Object(xt.a)("buySell"),Xm={setAmount:function(e){return Object(kn.a)("buySell","amountRadio",e)},changeForm:kn.a,synchronizeQuantityWithPrice:function(e,t,n,r){return function(a,c){var i,s=c(),o=r.values.side,l=pt(s),u=s.level2,d=jt(s);i=function(e,t){var n=t.level2,r=t.selectedInstrument,a=t.side,c=t.decimalPlaces,i=qe(a,n),s=Fe.a.OrderCalcBuffer,o=(s=void 0===s?{}:s).quantityBuffer;return i.length?B(Ue(e,o,i,!0,a).Quantity,c[r.Product1Symbol]):0}(e,{level2:u,selectedInstrument:l,side:o,decimalPlaces:d}),a(Object(kn.a)(t,n,i))}},synchronizePriceWithQuantity:function(e,t,n,r){return function(a,c){var i,s=c(),o=r.values.side,l=pt(s),u=s.level2,d=s.product.decimalPlaces;i=ze(e,{level2:u,selectedInstrument:l,side:o,decimalPlaces:d}),a(Object(kn.a)(t,n,i))}}},$m=Object(s.c)((function(e){var t=e.form,n=e.level2,r=t.buySell||{values:{}},a=t.buySell.values.side,c=void 0===a?Te:a,i=c===Te,s=pt(e),o=jt(e),l=pn(e),u=$t(e,s.Product1)||{},d=$t(e,s.Product2)||{},b=0,p=(b=ze(1,{level2:n,selectedInstrument:s,decimalPlaces:o,side:c}))>0;return b=gt(s.Product2Symbol,L(b,s.Product2Symbol,i?k.a.ROUND_CEIL:k.a.ROUND_FLOOR),!0),{layoutType:Nt,isBuySide:rn(e),activeAmount:Jm(e,"amountRadio"),formObj:r,selectedInstrument:s,decimalPlaces:o,product2Price:b,marketOpen:p,minQuantity:0,maxQuantity:l,product1:u,product2:d}}),Xm)(Qm),ef=(n(981),Db("buy-sell-order-overview")),tf=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.getAccountFees;e.feePercentage||t()}},{key:"render",value:function(){var e=this.context,t=this.props,n=t.symbol1,r=t.symbol2,a=t.actualPrice,c=t.quantity,i=t.actualQuantity,s=t.isBuySide,o=t.feeFormatted,l=t.feePercentage,u=t.hideFees,d=t.maxQuantity,b=parseFloat(c)>d;return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsxs)("div",{className:ef("content"),children:[Object(kb.jsxs)("div",{className:ef("total-currency"),children:[c," ",n]}),!u&&Object(kb.jsxs)(rf,{children:[Object(kb.jsx)(Tj.f,{children:e.t("Fee ({feePercentage}%)",{feePercentage:l})}),Object(kb.jsx)(Tj.f,{color:Po.a.text_body,children:b?"-":o})]}),Object(kb.jsxs)(rf,{children:[Object(kb.jsx)(Tj.f,{children:e.t("You receive")}),Object(kb.jsx)(Tj.f,{color:Po.a.text_body,children:s?"".concat(i," ").concat(n):b?"-":"".concat(a," ").concat(r)})]})]})})}}]),n}(a.a.Component);tf.defaultProps={displayPricePerUnit:!1},tf.contextTypes={t:O.a.func.isRequired};var nf=tf,rf=Object(Tb.a)("div",{target:"e6f0f9h0"})("display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid ",Po.a.border,";margin:0 0 10px 0;padding-bottom:4px;"),af={getAccountFees:al},cf=Object(s.c)((function(e){var t=pn(e),n=rn(e),r=pt(e),a=r.Product1Symbol,c=r.Product2Symbol,i=zj(e),s=i.quantity,o=i.actualQuantity,l=i.price,u=i.totalPrice,d=i.actualPrice,b=i.feePercentage;return{symbol1:a,symbol2:c,isBuySide:n,feeFormatted:i.feeFormatted,feePercentage:b,notEnoughMarket:!0,price:l,totalPrice:u,actualPrice:d,quantity:s,actualQuantity:o,pricePerUnit:i.pricePerUnit,hideFees:!!Fe.a.global.hideFees,maxQuantity:t}}),af)(nf),sf=Object(Tb.a)("div",{target:"e92kdd50"})("position:relative;width:100%;border-radius:10px;background:",(function(e){return e.color?e.color:Po.a.bg_secondary}),";padding:",(function(e){return e.padding?e.padding:"14px"}),";margin:",(function(e){return e.margin?e.margin:"0"}),";"),of=n(111),lf="th",uf="id",df=function(){return Object(of.b)().countryCode},bf=["ETH","TETH","USDT","OMG","MKR","USDC","LINK","ENJ","SXP","YFI","SAND","COMP","BNB","BSC","DOGE"],pf=[lf].includes(df())?["IDRT","GOLD"]:["IDRT"],jf=3e4,mf=["DOGE","ADA","BNB","BABA","TSLA","PYPL","TWTR","ZM","ABNB","SE","SBUX"];var ff=Db("buy-sell"),hf=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={product1Symbol:""},e}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(e){var t=e.match.params,n=this.props,r=n.match.params,a=n.setBuyValue,c=n.setSellValue,i=n.clearForm,s=n.changeInstrument;t.buyOrSell!==r.buyOrSell&&("buy"===r.buyOrSell?a():c(),i()),t.product1===r.product1&&t.product2===r.product2||(this.setState({product1Symbol:r.product1}),s(r.product1,r.product2))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.match.params,n=t.product1,r=t.product2,a=e.changeInstrument;this.setState({product1Symbol:n}),a(n,r)}},{key:"render",value:function(){var e=this.props,t=e.handleSubmit,n=e.submitting,r=e.extraInfoComponent,a=e.displayInstrumentSelector,c=e.themeModifier,i=e.formHeader,s=e.hideKYC,o=e.customKYCmessage;return Object(kb.jsxs)("form",{className:ff("container",c),onSubmit:t,children:[i&&Object(kb.jsx)("div",{className:ff("form-header",c),children:i}),Object(kb.jsx)(Xj,{baseClasses:ff,themeModifier:c}),Object(kb.jsxs)(sf,{margin:"10px 0 0 0",padding:"20px",children:[a&&Object(kb.jsx)(um,{baseClasses:ff}),Object(kb.jsxs)("div",{className:ff("amount-container",c),children:[Object(kb.jsx)($m,{baseClasses:ff,themeModifier:c}),Object(kb.jsx)(Wj,{})]}),r&&Object(kb.jsx)("div",{className:ff("extra-info-container",c),children:r}),Object(kb.jsx)(xf,{children:Object(kb.jsx)(cf,{displayPricePerUnit:!0})}),Object(kb.jsx)(Mm,{baseClasses:ff,handleSubmit:t,submitting:n,hideKYC:s,customKYCmessage:o})]}),mf.includes(this.state.product1Symbol)&&Object(kb.jsx)(sf,{margin:"20px 0",color:Po.a.bg_warning,children:Object(kb.jsx)(Tj.d,{children:this.context.t("Please note: You can only buy and sell { productSymbol } on Zipmex. Deposit and withdrawal for { productSymbol } is currently not supported.",{productSymbol:this.state.product1Symbol})})})]})}}]),n}(a.a.Component);hf.defaultProps={displayInstrumentSelector:!0,hideKYC:!1},hf.contextTypes={t:O.a.func.isRequired};var Of=hf,xf=Object(Tb.a)("div",{target:"e18ivk7v0"})({name:"m3i618",styles:"margin:20px 0 10px;"}),gf=function(e,t,n){return e&&t?n.find((function(n){var r=n.Product1Symbol,a=n.Product2Symbol;return r===e&&a===t}))||vf(e,n):e?vf(e,n):yf(n)},vf=function(e,t){return t.find((function(t){return t.Product1Symbol===e}))||yf(t)},yf=function(e){return e[0]},Cf=Object(Pb.a)({form:"buySell",onSubmit:function(e,t){t(Pn(Mn))}})(Of),wf={setBuyValue:function(){return Object(kn.a)("buySell","side",Te)},setSellValue:function(){return Object(kn.a)("buySell","side",Pe)},clearForm:Xn,changeInstrument:function(e,t){return function(n,r){var a=r().instrument.instruments,c=gf(e,t,a);n(ro(c.InstrumentId)),n(Xn())}}},Sf=Object(s.c)((function(e,t){return{initialValues:{side:"buy"===t.match.params.buyOrSell?Te:Pe,amountRadio:"custom",price:"",quantity:"",fee:"0",orderType:Ee.limit.displayName,responseMessage:""}}}),wf)(Cf),kf=Object(l.i)(Sf),If=(n(999),n(1e3),function(e){var t=e.customClass,n=e.linkTo,r=e.onClick,a=Db("ap-logo",t),c=function(){return Fe.a.global.siteLogo.match(/.svg$/)?Object(kb.jsx)(Kb.a,{alt:"Site logo",src:Object(wb.a)("/local/logos/".concat(Fe.a.global.siteLogo)),className:a("img","xbullion"===Fe.a.global.brand?"xbullion":"")}):Object(kb.jsx)("img",{alt:"Site logo",src:Object(wb.a)("/local/logos/".concat(Fe.a.global.siteLogo)),className:a("img","xbullion"===Fe.a.global.brand?"xbullion":"")})};return Object(kb.jsx)("div",{className:a(),children:n?Object(kb.jsx)(Zj.a,{className:a("link"),to:Object(wb.a)(n),onClick:r,children:c()}):c()})});If.defaultProps={customClass:"",linkTo:""};var Af=If,Pf=n(24),Tf=function(e){var t=e.customClass,n=Object(_j.a)().t;return Object(kb.jsx)(a.a.Fragment,{children:e.navItems.map((function(e){return Object(kb.jsxs)(Zj.b,{to:Object(wb.a)(e.path),className:t("item",["hoverable"]),activeClassName:t("item",["selected"]),children:[Object(kb.jsx)(Ij,{name:e.icon,customClass:t("icon")}),Object(kb.jsx)(Ef,{as:"h6",className:t("label"),children:n(e.text)})]},e.path)}))})},Ef=Object(Tb.a)(Tj.b,{target:"e141o9qt0"})("padding-left:0.8rem;font-size:",Tj.h.h6,";font-weight:lighter;color:inherit;@media (max-width:1160px){padding-top:0.5rem;padding-left:0;}@media (max-width:",Pf.a.mobile,"){font-size:",Tj.h.tiny,";padding-top:0.5rem;padding-left:0;}"),Rf=(n(1001),Db("page-header-nav")),Nf=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this;return Object(kb.jsx)("div",{className:Rf("container"),ref:function(t){e.node=t},children:Object(kb.jsx)(Tf,{customClass:Rf,navItems:this.props.navItems})})}}]),n}(a.a.Component),Mf=(n(1002),n(1003),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).componentWillUnmount=function(){r.removeListeners()},r.handleClickOutside=function(e){r.popupRef.contains(e.target)||r.toggleShow()},r.handleKeyDown=function(e){"Escape"===e.code&&(r.toggleShow(),e.target.blur())},r.toggleShow=function(){r.setState({show:!r.state.show,popoverLeftOffset:0},(function(){if(r.state.show&&r.contentRef&&r.isOutOfScreen()){var e=r.getLeftOffset();r.setState({popoverLeftOffset:e})}r.state.show?r.addListeners():r.removeListeners()}))},r.isOutOfScreen=function(){var e=r.contentRef.getBoundingClientRect();return e.x+e.width>window.innerWidth},r.getLeftOffset=function(){var e=r.contentRef.getBoundingClientRect(),t=window.innerWidth-(e.x+e.width);return document.body.scrollHeight>window.innerHeight?t-17:t},r.getBEMClasses=function(){var e=["ap-popover",r.props.customClass,r.props.isMenu&&"popover-menu"];return Db(e)},r.popupRef=null,r.contentRef=null,r.state={show:!1,popoverLeftOffset:0},r}return Object(d.a)(n,[{key:"addListeners",value:function(){document.addEventListener("click",this.handleClickOutside),document.addEventListener("keydown",this.handleKeyDown)}},{key:"removeListeners",value:function(){document.removeEventListener("click",this.handleClickOutside),document.removeEventListener("keydown",this.handleKeyDown)}},{key:"render",value:function(){var e,t,n=this,r=this.props,a=r.trigger,c=r.content,i=r.drawArrow,s=this.state.show,o=(e=a,t=this.toggleShow,Object(kb.jsx)(e,{onClick:t})),l=this.getBEMClasses(),u=l(s?"visible":"hidden");return Object(kb.jsxs)("div",{className:Gb()("popover",l("popover")),ref:function(e){return n.popupRef=e},children:[o,Object(kb.jsx)("div",{ref:function(e){return n.contentRef=e},className:"".concat(u," ").concat(l("content",i&&"with-arrow")),children:s&&c})]})}}]),n}(a.a.Component));Mf.defaultProps={drawArrow:!1};var Df=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).getLinkElement=function(e){return Object(kb.jsxs)(Zj.a,{className:r.baseClasses("item",e.customClass),to:Object(wb.a)(e.linkTo),onClick:function(){return r.popoverRef.toggleShow()},children:[e.beforeLabelElement,Object(kb.jsx)("span",{className:r.baseClasses("item-label"),children:e.label})]},e.label)},r.getOnClickElement=function(e){return Object(kb.jsxs)("a",{className:r.baseClasses("item",e.customClass),onClick:r.getOnItemClick(e),children:[e.beforeLabelElement,Object(kb.jsx)("span",{className:r.baseClasses("item-label"),children:e.label})]},e.label)},r.getOnItemClick=function(e){return function(){"undefined"!==typeof e.onClick&&(e.onClick(),r.popoverRef.toggleShow())}},r.renderContent=function(){return r.props.items.map((function(e,t){return e.divider?Object(kb.jsx)("div",{className:r.baseClasses("item-divider")},t):e.linkTo?r.getLinkElement(e):r.getOnClickElement(e)}))},r.popoverRef=null,r.baseClasses=Db(["popover-menu",r.props.customClass]),r}return Object(d.a)(n,[{key:"render",value:function(){var e=this,t=this.props.popoverProps;return Object(kb.jsx)(Mf,Object(Y.a)({ref:function(t){return e.popoverRef=t},content:Object(kb.jsx)("div",{children:this.renderContent()}),drawArrow:!0,isMenu:"true",customClass:this.baseClasses()},t))}}]),n}(a.a.Component);Df.defaultProps={items:[],customClass:""};var Lf,Ff,Uf,Bf,zf,Gf,Wf,Zf,qf,Vf=function(e){var t=e.isVisible,n=void 0===t||t,r=e.size,c=void 0===r?18:r;return Object(kb.jsx)(a.a.Fragment,{children:n&&Object(kb.jsx)(Yf,{"data-testid":"spinner",children:Object(kb.jsx)(Hf,{children:Object(kb.jsx)(_f,{color:"inherit",size:c})})})})},_f=Object(Tb.a)(hm.a,{target:"e1h7iajj0"})("color:",Po.a.text_body,";"),Hf=Object(Tb.a)("div",{target:"e1h7iajj1"})({name:"1g360fb",styles:"padding:5px;"}),Yf=Object(Tb.a)("div",{target:"e1h7iajj2"})({name:"1p57pc7",styles:"width:100%;height:100%;display:flex;align-items:center;justify-content:space-around;"});function Kf(){return(Kf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qf(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Jf(e,t){var n=e.title,a=e.titleId,c=Qf(e,["title","titleId"]);return r.createElement("svg",Kf({width:33,height:33,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,Lf||(Lf=r.createElement("path",{d:"M16.5 33C25.6127 33 33 25.6127 33 16.5C33 7.3873 25.6127 0 16.5 0C7.3873 0 0 7.3873 0 16.5C0 25.6127 7.3873 33 16.5 33Z",fill:"url(#zipstarter_paint0_linear)"})),Ff||(Ff=r.createElement("path",{opacity:.3,d:"M16.5 33C25.6127 33 33 25.6127 33 16.5C33 7.3873 25.6127 0 16.5 0C7.3873 0 0 7.3873 0 16.5C0 25.6127 7.3873 33 16.5 33Z",fill:"#47D6E2"})),Uf||(Uf=r.createElement("path",{d:"M17 8L12 15.4314L17.202 18.7755L21.6608 15.4314L17 8Z",fill:"url(#zipstarter_paint1_linear)"})),Bf||(Bf=r.createElement("path",{d:"M9.82227 24.2909V21.3184H24.685V24.2909H9.82227Z",fill:"url(#zipstarter_paint2_linear)"})),zf||(zf=r.createElement("path",{d:"M9.82269 20.2042L7.96484 10.1719L16.8825 16.117L26.1717 10.1719L24.6855 20.2042H9.82269Z",fill:"url(#zipstarter_paint3_linear)"})),Gf||(Gf=r.createElement("circle",{cx:8,cy:10,r:1,fill:"white"})),Wf||(Wf=r.createElement("circle",{cx:17,cy:8,r:1,fill:"white"})),Zf||(Zf=r.createElement("circle",{cx:26,cy:10,r:1,fill:"white"})),qf||(qf=r.createElement("defs",null,r.createElement("linearGradient",{id:"zipstarter_paint0_linear",x1:4.83276,y1:28.1672,x2:28.1672,y2:4.83276,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#0E85A3"}),r.createElement("stop",{offset:1,stopColor:"#21BDCA"})),r.createElement("linearGradient",{id:"zipstarter_paint1_linear",x1:16.8304,y1:8,x2:16.8304,y2:17.1035,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:.489583,stopColor:"#AFF7FE"}),r.createElement("stop",{offset:1,stopColor:"#3EC2D0"})),r.createElement("linearGradient",{id:"zipstarter_paint2_linear",x1:17.2537,y1:21.3184,x2:17.2537,y2:24.2909,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#6CE2EB"}),r.createElement("stop",{offset:1,stopColor:"#27CDDC"})),r.createElement("linearGradient",{id:"zipstarter_paint3_linear",x1:17.0683,y1:10.1719,x2:17.0683,y2:20.2042,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:.260417,stopColor:"#D8FCFF"}),r.createElement("stop",{offset:.78125,stopColor:"#5ADDE8"}),r.createElement("stop",{offset:1,stopColor:"#27CDDC"})))))}var Xf,$f,eh,th,nh,rh,ah,ch,ih=r.forwardRef(Jf);n.p;function sh(){return(sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function oh(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function lh(e,t){var n=e.title,a=e.titleId,c=oh(e,["title","titleId"]);return r.createElement("svg",sh({width:33,height:33,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,Xf||(Xf=r.createElement("path",{d:"M16.5 33C25.6127 33 33 25.6127 33 16.5C33 7.3873 25.6127 0 16.5 0C7.3873 0 0 7.3873 0 16.5C0 25.6127 7.3873 33 16.5 33Z",fill:"url(#paint0_linear)"})),$f||($f=r.createElement("path",{d:"M17 8L12 15.4314L17.202 18.7755L21.6608 15.4314L17 8Z",fill:"url(#paint1_linear)"})),eh||(eh=r.createElement("path",{d:"M9.82227 24.2909V21.3184H24.685V24.2909H9.82227Z",fill:"url(#paint2_linear)"})),th||(th=r.createElement("path",{d:"M9.82269 20.2042L7.96484 10.1719L16.8825 16.117L26.1717 10.1719L24.6855 20.2042H9.82269Z",fill:"url(#paint3_linear)"})),nh||(nh=r.createElement("circle",{cx:8,cy:10,r:1,fill:"white"})),rh||(rh=r.createElement("circle",{cx:17,cy:8,r:1,fill:"white"})),ah||(ah=r.createElement("circle",{cx:26,cy:10,r:1,fill:"white"})),ch||(ch=r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear",x1:4.83276,y1:28.1672,x2:28.1672,y2:4.83276,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#0EA36D"}),r.createElement("stop",{offset:1,stopColor:"#21CAAC"})),r.createElement("linearGradient",{id:"paint1_linear",x1:16.8304,y1:8,x2:16.8304,y2:17.1035,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:.489583,stopColor:"#AFFED8"}),r.createElement("stop",{offset:1,stopColor:"#3ED093"})),r.createElement("linearGradient",{id:"paint2_linear",x1:17.2537,y1:21.3184,x2:17.2537,y2:24.2909,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#6CEBAE"}),r.createElement("stop",{offset:1,stopColor:"#27DC85"})),r.createElement("linearGradient",{id:"paint3_linear",x1:17.0683,y1:10.1719,x2:17.0683,y2:20.2042,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:.260417,stopColor:"#D8FFEA"}),r.createElement("stop",{offset:.78125,stopColor:"#5AE8AC"}),r.createElement("stop",{offset:1,stopColor:"#27DC9B"})))))}var uh,dh,bh,ph,jh,mh,fh,hh,Oh=r.forwardRef(lh);n.p;function xh(){return(xh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gh(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vh(e,t){var n=e.title,a=e.titleId,c=gh(e,["title","titleId"]);return r.createElement("svg",xh({width:33,height:33,viewBox:"0 0 33 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,uh||(uh=r.createElement("path",{d:"M16.5 33C25.6127 33 33 25.6127 33 16.5C33 7.3873 25.6127 0 16.5 0C7.3873 0 0 7.3873 0 16.5C0 25.6127 7.3873 33 16.5 33Z",fill:"url(#zipcrew_paint0_linear)"})),dh||(dh=r.createElement("path",{d:"M17 8L12 15.4314L17.202 18.7755L21.6608 15.4314L17 8Z",fill:"url(#zipcrew_paint1_linear)"})),bh||(bh=r.createElement("path",{d:"M9.82227 24.2909V21.3184H24.685V24.2909H9.82227Z",fill:"url(#zipcrew_paint2_linear)"})),ph||(ph=r.createElement("path",{d:"M9.82269 20.2042L7.96484 10.1719L16.8825 16.117L26.1717 10.1719L24.6855 20.2042H9.82269Z",fill:"url(#zipcrew_paint3_linear)"})),jh||(jh=r.createElement("circle",{cx:8,cy:10,r:1,fill:"white"})),mh||(mh=r.createElement("circle",{cx:17,cy:8,r:1,fill:"white"})),fh||(fh=r.createElement("circle",{cx:26,cy:10,r:1,fill:"white"})),hh||(hh=r.createElement("defs",null,r.createElement("linearGradient",{id:"zipcrew_paint0_linear",x1:4.83276,y1:28.1672,x2:28.1672,y2:4.83276,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#A3790E"}),r.createElement("stop",{offset:1,stopColor:"#CA9121"})),r.createElement("linearGradient",{id:"zipcrew_paint1_linear",x1:16.8304,y1:8,x2:16.8304,y2:17.1035,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:.489583,stopColor:"#FEDFAF"}),r.createElement("stop",{offset:1,stopColor:"#D09E3E"})),r.createElement("linearGradient",{id:"zipcrew_paint2_linear",x1:17.2537,y1:21.3184,x2:17.2537,y2:24.2909,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#EBCF6C"}),r.createElement("stop",{offset:1,stopColor:"#DCB427"})),r.createElement("linearGradient",{id:"zipcrew_paint3_linear",x1:17.0683,y1:10.1719,x2:17.0683,y2:20.2042,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:.260417,stopColor:"#FFF4D8"}),r.createElement("stop",{offset:.78125,stopColor:"#E8C05A"}),r.createElement("stop",{offset:1,stopColor:"#DCA927"})))))}var yh=r.forwardRef(vh),Ch=(n.p,{ZIP_STARTER:ih,ZIP_MEMBER:Oh,ZIP_CREW:yh}),wh=function(e){var t=e.level,n=Object(Hr.a)(e,["level"]),r=Ch[t];return Object(kb.jsx)(r,Object(Y.a)({},n),t)},Sh={ZIP_STARTER:{text:Po.a.zipStarterText,bg:Po.a.zipStarterBg},ZIP_MEMBER:{text:Po.a.zipMemberText,bg:Po.a.zipMemberBg},ZIP_CREW:{text:Po.a.zipCrewText,bg:Po.a.zipCrewBg}},kh=(n(1004),[!0,"true",1,"1"]),Ih=function(e){return kh.includes(e)};var Ah=function(){var e=Db("user-summary");return Object(kb.jsxs)("div",{className:e("sign-links"),children:[Object(kb.jsx)(Zj.a,{to:Object(wb.a)("/login"),children:"Sign In"}),"/",Object(kb.jsx)(Zj.a,{to:Object(wb.a)("/signup"),children:"Sign Up"})]})},Ph=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).renderMenuItems=function(){var t=e.props,n=t.accounts,r=t.selectedAccount,a=t.zipCrewStatus,c=Object(kb.jsxs)("span",{children:[Object(kb.jsx)(Eh,{children:e.context.t("Member Level")}),a&&a.tier&&Object(kb.jsxs)(Rh,{children:[Object(kb.jsx)(wh,{height:20,width:20,level:a.tier}),Object(kb.jsx)(Nh,{color:Sh[a.tier].text,fontWeight:"normal",children:Vo[a.tier]})]})]});if(n.length<=1)return[{label:e.context.t(r.AccountName),customClass:e.context.t("username-in-dropdown")},Ih(Ac.a.get("REACT_APP_FEATURE_MEMBER_TIER"))&&{label:c,linkTo:"/settings/member-level"},{label:e.context.t("Sign Out"),onClick:e.props.logout}].filter(Boolean);var i=n.filter((function(e){return e.AccountId!==r.AccountId})).map((function(t){return{label:e.context.t("Switch to {accountName}",{accountName:t.AccountName}),onClick:function(){return e.props.selectAccount(t.AccountId,t.OMSID)}}}));return i.push({divider:!0},{label:e.context.t("Sign Out"),onClick:e.props.logout}),i},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.selectedAccount,n=e.customClass,r=e.loggedOut,a=Db(["user-summary",n]);return Object(kb.jsx)("div",{className:a("container"),children:r?Object(kb.jsx)(Ah,{}):t?Object(kb.jsx)(Df,{customClass:a(),popoverProps:{trigger:function(e){return Object(kb.jsx)("button",Object(Y.a)(Object(Y.a)({className:a("popover-menu-trigger")},e),{},{children:Object(kb.jsxs)("span",{className:a("user-info-container"),children:[Object(kb.jsx)(Ij,{name:"user",customClass:a("icon")}),Object(kb.jsx)(Tj.f,{color:Po.a.text_body,margin:"0 10px 0 0",children:t.AccountName}),Object(kb.jsx)("span",{className:a("popover-menu-trigger-triangle")})]})}))},customClass:"user-summary"},items:this.renderMenuItems()}):Object(kb.jsx)(Vf,{isInline:!0,customClass:a})})}}]),n}(a.a.Component);Ph.contextTypes={t:O.a.func.isRequired};var Th=Ph,Eh=Object(Tb.a)("span",{target:"e11j6yer0"})({name:"13o7eu2",styles:"display:block;"}),Rh=Object(Tb.a)("span",{target:"e11j6yer1"})({name:"zp3rvv",styles:"display:flex;align-items:center;margin-top:0.5rem;"}),Nh=Object(Tb.a)(Tj.c,{target:"e11j6yer2"})({name:"77vupy",styles:"margin-left:1rem;"}),Mh={logout:vo,selectAccount:jl},Dh=Object(s.c)((function(e){var t,n=e.user.selectedAccountId,r=e.auth,a=r.isAuthenticated,c=r.pending,i=!a&&!c,s=_n(e),o=Hn(e),l=o.find((function(e){return e.AccountId===n}));return!l&&s&&(l=Kn(e)),{accounts:o,selectedAccount:l,loggedOut:i,zipCrewStatus:null===(t=e.zipCrewSlice)||void 0===t?void 0:t.status}}),Mh)(Th),Lh=n(1005),Fh=n.n(Lh);var Uh=function(e){return function(t){Object(b.a)(r,t);var n=Object(p.a)(r);function r(e){var t;return Object(u.a)(this,r),(t=n.call(this,e)).handleWindowSizeChange=function(){t.setState({width:window.innerWidth,height:window.innerHeight})},t.state={width:window.innerWidth,height:window.innerHeight},t.throttle=Fh()(t.handleWindowSizeChange,100),t}return Object(d.a)(r,[{key:"componentWillMount",value:function(){window.addEventListener("resize",this.throttle)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.throttle)}},{key:"render",value:function(){var t=this.state,n=t.width,r=t.height;return Object(kb.jsx)(e,Object(Y.a)({width:n,height:r},this.props))}}]),r}(a.a.Component)},Bh=(n(1007),n(1008),n(1009),n(1010),Db("popover-select")),zh=function(e){var t=e.selectedItem,n=e.items;return Object(kb.jsx)(Df,{customClass:"popover-select",popoverProps:{trigger:function(e){return Object(kb.jsx)("button",Object(Y.a)(Object(Y.a)({className:Bh("popover-menu-trigger")},e),{},{children:Object(kb.jsxs)("span",{children:[Object(kb.jsx)("span",{className:Bh("selected-item"),children:t}),Object(kb.jsx)("span",{className:Bh("trigger-triangle")})]})}))}},items:n})},Gh=new URLSearchParams(window.location.search),Wh=Gh.get("contentOnly"),Zh=Gh.get("theme"),qh=Db("region-settings"),Vh=[{value:"en-GB",flag:"GB",text:"English",label:"EN"},{value:"id-ID",flag:"ID",text:"Bahasa Indonesia",label:"ID"},{value:"zh-CN",flag:"CN",text:"\u4e2d\u6587",label:"\u4e2d\u6587"},{value:"th-TH",flag:"TH",text:"\u0e44\u0e17\u0e22",label:"\u0e44\u0e17\u0e22"}],_h=Fe.a.global.configuredLanguages||["en-GB"],Hh=Vh.filter((function(e){return _h.find((function(t){return e.value.includes(t)}))})),Yh=function(e){var t=e.width,n=e.hideCurrentLanguage,r=Object(_j.a)().i18n,c=a.a.useMemo((function(){var e=Vh.find((function(e){return e.value===r.language}));return e?t<=578?"":e.text:""}),[r.language,t]),i=a.a.useMemo((function(){return Hh.map((function(e){return{label:e.label,onClick:function(){return r.changeLanguage(e.value)}}}))}),[r]),s=a.a.useMemo((function(){return Hh.map((function(e){return{label:e.text,onClick:function(){return r.changeLanguage(e.value)}}}))}),[r]),o=a.a.useMemo((function(){var e=Vh.find((function(e){return e.value===r.language}));return e?e.flag:"GB"}),[r.language]);return Wh&&Zh?Object(kb.jsx)(kb.Fragment,{}):Object(kb.jsx)(zh,{customClass:"region-settings",items:t<=578?i:s,selectedItem:Object(kb.jsxs)("span",{className:qh("selected-language-container"),children:[Object(kb.jsx)(Ij,{name:o,isFlag:!0,customClass:"flag"}),!n&&Object(kb.jsx)("span",{className:qh("selected-language"),children:c})]})})},Kh=Uh((function(e){return Object(kb.jsx)("div",{className:qh("language-form"),children:Object(kb.jsx)(Yh,Object(Y.a)({},e))})})),Qh=Db("page-header"),Jh=Fe.a.global.siteLink?Fe.a.global.siteLink:"https://zipmex.com/",Xh=new URLSearchParams(window.location.search).get("contentOnly"),$h=Uh((function(e){var t=e.width,n=e.hideMenu,r=Object(_j.a)().t,c=[{text:r("Markets"),icon:"exchange",path:"/trade",enabled:Object(Ni.get)(Fe.a,"MainMenu.exchange",!0)},{text:r("Buy & Sell"),icon:"buy-sell",path:"/buy",enabled:Object(Ni.get)(Fe.a,"MainMenu.buySell",!0)},{text:r("Wallets"),icon:"wallet",path:"/wallets",enabled:Object(Ni.get)(Fe.a,"MainMenu.wallets",!0)},{text:r("Transactions"),icon:"transaction",path:"/transactions",enabled:Object(Ni.get)(Fe.a,"MainMenu.transactions",!0)},{text:r("Settings"),icon:"user-settings",path:"/settings",enabled:Object(Ni.get)(Fe.a,"MainMenu.settings",!0)}];return t<Pf.b.mobile&&(c=[{text:r("Markets"),icon:"market",path:"/trade",enabled:Object(Ni.get)(Fe.a,"MainMenu.exchange",!0)},{text:r("Buy & Sell"),icon:"buy-sell",path:"/buy",enabled:Object(Ni.get)(Fe.a,"MainMenu.buySell",!0)},{text:r("Wallets"),icon:"wallet",path:"/wallets",enabled:Object(Ni.get)(Fe.a,"MainMenu.wallets",!0)},{text:r("Transactions"),icon:"transaction",path:"/transactions",enabled:Object(Ni.get)(Fe.a,"MainMenu.transactions",!0)}]),Xh?Object(kb.jsx)("div",{className:Qh("container"),children:Object(kb.jsx)("div",{className:Qh("content-wrapper"),children:Object(kb.jsx)(Kh,{})})}):Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsx)("div",{className:Qh("container"),children:Object(kb.jsxs)("div",{className:Qh("content-wrapper"),children:[Object(kb.jsx)("div",{className:Qh("header-item","logo"),children:Object(kb.jsx)("a",{href:Jh,children:Object(kb.jsx)(Af,{})})}),!n&&Object(kb.jsx)(Nf,{navItems:c.filter((function(e){return!1!==e.enabled}))}),Object(kb.jsx)(Zj.a,{to:"/settings",className:Qh("settings-link"),children:Object(kb.jsx)(kj,{name:"user-settings",customClass:Qh("icon")})}),Object(kb.jsx)(Kh,{}),Object(kb.jsx)("div",{className:Qh("right-panel"),children:Object(kb.jsx)(Dh,{customClass:"page-header-user-summary"})})]})})})})),eO=n(87),tO=n(69),nO=n(93),rO=(n(1011),function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)($h,{}),Object(kb.jsxs)(tO.a,{children:[Object(kb.jsx)(eO.a,{children:t.t("Buy & Sell")}),Object(kb.jsx)(kf,{})]}),Object(kb.jsx)(nO.a,{})]})}),aO=Ab(rO);rO.contextTypes={t:O.a.func.isRequired};var cO=function(e){var t=e.input,n=e.customClass,r=e.meta,a=e.inline,c=e.label,i=e.info,s=e.id,o=e.className,l=Object(Hr.a)(e,["input","customClass","meta","inline","label","info","id","className"]),u=Db(["ap-checkbox",n]);return delete l.meta,Object(kb.jsxs)("div",{className:u("checkbox",a&&"inline")+" "+o,children:[Object(kb.jsx)("input",Object(Y.a)(Object(Y.a)(Object(Y.a)({className:u("checkbox"),type:"checkbox"},t),l),{},{id:s})),Object(kb.jsxs)("label",{htmlFor:s,children:[c,t&&t.value&&Object(kb.jsx)(Ij,{name:"checkbox",customClass:u("icon")})]}),i&&Object(kb.jsx)("small",{className:"form-text-muted ".concat(u("checkbox-info")),children:i}),r.dirty&&r.error&&Object(kb.jsx)("span",{className:"".concat(u("checkbox-error")),children:r.error})]})},iO=function(e){return Object(kb.jsx)($j.a,Object(Y.a)(Object(Y.a)({name:e.name,component:cO},e),{},{type:"checkbox"}))};iO.defaultProps={name:"",label:"",autoFocus:!1,required:!1,readOnly:!1,inline:!1,info:""};var sO=iO,oO=n(391),lO=n.n(oO),uO=(n(1012),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=Db(["button",this.props.customClass]),t=this.props,n=t.text,r=t.onClick,a=t.className,c=t.disabled;return Object(kb.jsx)("button",{onClick:r,className:e("button")+" "+a,disabled:c,children:n})}}]),n}(a.a.Component));uO.defaultProps={customClass:""};var dO,bO=uO,pO=n(1013),jO=n(401),mO=n(82),fO=function(e){var t=Ae.c.t("Required");return Array.isArray(e)?e.filter(Boolean).length>0?void 0:t:e?void 0:t},hO=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,OO=function(e){return e&&!/^\d*$/i.test(e)?Ae.c.t("Input should only contain numeric characters"):void 0},xO=function(e){return function(t){return void 0!==t&&""!==t&&t<e?Ae.c.t("Must be bigger than or equal to {a}",{a:e}):void 0}},gO=function(e){return function(t){return void 0!==t&&""!==t&&t>e?Ae.c.t("Must be less than or equal to {a}",{a:e}):void 0}},vO=(dO=0,function(e){return void 0!==e&&e<=dO?Ae.c.t("Must be bigger than {a}",{a:dO}):void 0}),yO=(xO(0),function(e){return function(t){return t&&t.length>e?Ae.c.t("Must be {a} characters or less",{a:e}):void 0}}),CO=function(e){return function(t){return t&&t.length<e?Ae.c.t("Must be at least {a} characters",{a:e}):void 0}},wO=function(e,t){return e&&e.file&&t<=e.file.size/1024/1024?Ae.c.t("File size must be under {a}mb",{a:t}):void 0};var SO=function(e,t){var n=e.handleSubmit,a=e.pristine,c=e.documentUrl,i=e.checkboxText,s=e.buttonText,o=Object(r.useState)(!1),l=Object(J.a)(o,2),u=l[0],d=l[1],b=Object(r.useRef)(),p=Object(r.useCallback)(lO()((function(){var e=b.current;if(e){var t=e.scrollTop+e.clientHeight;.8*e.scrollHeight<=t&&(d(!0),e.removeEventListener("scroll",p))}}),100),[]);Object(r.useEffect)((function(){return window.onmessage=function(e){e.data.hasOwnProperty("frameHeight")&&(document.getElementById("termsIFrame").style.height="".concat(e.data.frameHeight+30,"px"))},b.current.addEventListener("scroll",p),function(){return b.current.removeEventListener("scroll",p)}}),[]);return Object(kb.jsxs)("form",{children:[Object(kb.jsx)(IO,{ref:b,children:Object(kb.jsx)(PO,{src:c,title:"tandc",id:"termsIFrame"})}),Object(kb.jsx)(Tj.d,{children:t.t("Please read to the bottom of the terms and conditions to proceed.")}),Object(kb.jsx)(AO,{name:"accept_terms_and_conditions",label:i,id:"accept_terms_and_conditions",disabled:!u,validate:[fO]}),Object(kb.jsx)(TO,{text:s,onClick:function(e){return e.preventDefault(),void n()},disabled:a})]})},kO=SO;SO.contextTypes={t:O.a.func.isRequired};var IO=Object(Tb.a)("div",{target:"e1ftbll90"})("height:400px;overflow-y:auto;border:1px solid ",Po.a.bg_highlight,";border-radius:4px;margin-bottom:1rem;line-height:1.5;-webkit-overflow-scrolling:touch;&::-webkit-scrollbar{display:block;width:4px;height:4px;}&::-webkit-scrollbar-thumb{background-color:",Po.a.bg_highlight,";}"),AO=Object(Tb.a)(sO,{target:"e1ftbll91"})("margin:15px 0 0;label{font-size:",Tj.h.small,";}"),PO=Object(Tb.a)("iframe",{target:"e1ftbll92"})({name:"1afp10f",styles:"width:100%;overflow:hidden;"}),TO=Object(Tb.a)(bO,{target:"e1ftbll93"})("width:100%;margin:15px auto;background:",Po.a.bg_highlight,";border-radius:15px;border:none;"),EO=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e,t,n=this.props,r=n.isOpen,a=n.close,c=n.handleSubmit,i=n.pristine,s=(null===(e=Fe.a.global.zipUp)||void 0===e?void 0:e.termsAndConditions[Ae.c.language])||(null===(t=Fe.a.global.zipUp)||void 0===t?void 0:t.termsAndConditions[Ae.a]);return Object(kb.jsx)(Aj,{hideHeader:!0,isOpen:r,close:a,customClass:"deposit-withdraw-modal",children:Object(kb.jsx)("div",{children:Object(kb.jsx)(kO,{handleSubmit:c,pristine:i,documentUrl:s,checkboxText:this.context.t("\x7fI accept the ZipUp terms and conditions."),buttonText:this.context.t("Sign up")})})})}}]),n}(a.a.Component);EO.contextTypes={t:O.a.func.isRequired};var RO=EO,NO=Object(Pb.a)({form:"savings",onSubmit:function(e,t){return t(function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.localStorage.getItem("zmToken"),t(Tn(Gn)),r=!1,e.prev=3,e.next=6,Object(x.B)({token:n});case 6:r=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:r?(t({type:nl,payload:{isSubscribed:!0}}),t(sr({id:"ZIPUP_SIGN_UP",text:Ae.c.extractT("Congrats! You are now earning more with ZipUp."),type:"success"}))):t(sr({id:"ZIPUP_SIGN_UP_ERROR",text:Ae.c.extractT("Something went wrong"),type:"warning"}));case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t){return e.apply(this,arguments)}}())}})(RO),MO=Object(s.c)((function(e){}),{})(NO),DO=Fb({name:Gn})(MO),LO=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e,t,n=this.props,r=n.isOpen,a=n.close,c=n.handleSubmit,i=n.pristine,s=(null===(e=Fe.a.global.zipCrew)||void 0===e?void 0:e.termsAndConditions[Ae.c.language])||(null===(t=Fe.a.global.zipCrew)||void 0===t?void 0:t.termsAndConditions[Ae.a]);return Object(kb.jsx)(Aj,{hideHeader:!0,isOpen:r,close:a,customClass:"deposit-withdraw-modal",children:Object(kb.jsx)("div",{children:Object(kb.jsx)(kO,{handleSubmit:c,pristine:i,documentUrl:s,checkboxText:this.context.t("\x7fI accept the ZipLock terms and conditions."),buttonText:this.context.t("Sign up")})})})}}]),n}(a.a.Component);LO.contextTypes={t:O.a.func.isRequired};var FO=LO,UO=Object(vu.c)(Fb({name:Wn}),Object(Pb.a)({form:"zipCrew",onSubmit:function(e,t,n){return t((r=n.callbackAction,function(){var e=Object(V.a)(q.a.mark((function e(t,n){var a,c,i;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=window.localStorage.getItem("zmToken"),t(Tn(Wn)),c=!1,e.prev=3,e.next=6,Object(x.A)({token:a});case 6:c=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:c?(t(Mo(!0)),t(sr({id:"ZIPUP_CREW_SIGN_UP",text:Ae.c.extractT("Congrats! You are now one of the crew."),type:"success"})),r===_o&&(i=n().zipCrewSlice.amountFieldValue,t(hl(i))),r===Ho&&t(xl())):t(sr({id:"ZIPUP_SIGN_UP_ERROR",text:Ae.c.extractT("Something went wrong"),type:"warning"}));case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n){return e.apply(this,arguments)}}()));var r}}))(FO),BO=function(){return Object(s.f)((function(e){return e.product.products.find((function(e){return"ZMT"===e.Product||"THAIZMT"===e.Product}))}))},zO=function(e){var t=Object(_j.a)().t,n=Object(s.f)((function(e){return qt(e)})),r=Object(s.f)((function(e){return Kt(e,n)})),a=L(r,n),c=BO().ProductId,i=Object(s.f)((function(e){return Ht(e,c)||{}})),o=Object(s.f)((function(e){var t;return null===(t=e.zipCrewSlice)||void 0===t?void 0:t.status.stakedAmount})),l=L(i.value*o,i.Product);return Object(kb.jsxs)(GO,{margin:"0 0 15px 0",children:[Object(kb.jsxs)(WO,{children:[Object(kb.jsxs)(Tj.b,{as:"h2",children:[a," ",n," "]}),Object(kb.jsx)(Tj.d,{color:Po.a.text_highlight,children:t("Total wallet value")})]}),o&&o>0&&Object(kb.jsxs)(ZO,{children:[Object(kb.jsxs)(Tj.b,{as:"h4",margin:"10px 0 0",children:[L(o,0)," ZMT",Object(kb.jsxs)(Tj.c,{color:Po.a.text_grey,children:[" ","= ",l," ",n]})]}),Object(kb.jsx)(Tj.d,{color:Po.a.text_highlight,children:t("Locked in with ZipLock")})]})]})},GO=Object(Tb.a)(sf,{target:"e1inh24x0"})("display:flex;align-items:baseline;justify-content:space-between;@media (max-width:",Pf.a.tablet,"){flex-direction:column;}"),WO=Object(Tb.a)("div",{target:"e1inh24x1"})(""),ZO=Object(Tb.a)("div",{target:"e1inh24x2"})("text-align:right;@media (max-width:",Pf.a.tablet,"){text-align:left;}");var qO,VO,_O=Object(Tb.a)("div",{target:"eii0s8w0"})("grid-template-columns:",(function(e){return e.cols?e.cols:"34% 33% 33%"}),";margin:",(function(e){return e.margin?e.margin:"0"}),";display:grid;width:100%;grid-gap:0;"),HO=Object(Tb.a)(_O,{target:"eii0s8w1"})({name:"okf91a",styles:"overflow-x:auto;background-image:linear-gradient(to right,#1b2e3f,#1b2e3f),linear-gradient(to right,#1b2e3f,#1b2e3f),linear-gradient(to right,rgba(45,73,99,0.5),rgba(255,255,255,0)),linear-gradient(to left,rgba(45,73,99,0.5),rgba(255,255,255,0));background-position:left center,right center,left center,right center;background-repeat:no-repeat;background-color:#1b2e3f;background-size:20px 100%,20px 100%,20px 100%,20px 100%;background-attachment:local,local,scroll,scroll;"}),YO=Object(Tb.a)("div",{target:"eii0s8w2"})("display:flex;border-bottom:1px solid ",Po.a.table_border,";min-height:50px;align-items:center;justify-content:",(function(e){return e.justify?e.justify:"center"}),";padding:0 7px;&&.show-on-tablet{display:none;}&&.show-on-mobile{display:none;}@media (max-width:",Pf.a.desktop,"){&&.hide-on-tablet{display:none;}&&.show-on-tablet{display:flex;}}@media (max-width:",Pf.a.tablet,"){&&.hide-on-mobile{display:none;}&&.show-on-mobile{display:flex;}}"),KO=Object(Tb.a)(YO,{target:"eii0s8w3"})("border-radius:12px 12px 0 0;background:",Po.a.table_header_bg,";border-right:1px solid ",Po.a.bg_secondary,";min-height:40px;padding:4px 10px;&&:last-of-type{border-right:none;}"),QO=Object(Tb.a)("div",{target:"eii0s8w4"})("border-bottom:1px solid ",Po.a.table_border,";"),JO=n(27);function XO(){return(XO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $O(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ex(e,t){var n=e.title,a=e.titleId,c=$O(e,["title","titleId"]);return r.createElement("svg",XO({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 200 200",style:{enableBackground:"new 0 0 200 200"},xmlSpace:"preserve",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,qO||(qO=r.createElement("style",{type:"text/css"},"\n\t.st0{fill:#9FA1AA;}\n\t.st1{fill:#D78E2E;}\n\t.st2{fill:#AEB1B7;}\n")),VO||(VO=r.createElement("g",null,r.createElement("g",null,r.createElement("path",{className:"st0",d:"M77.59,109.28h-11.5c-3.13,0-5.68,2.55-5.68,5.68v25.98c0,3.13,2.55,5.68,5.68,5.68h11.5 c3.13,0,5.68-2.55,5.68-5.68v-25.98C83.28,111.83,80.73,109.28,77.59,109.28z M78.58,114.97v25.98c0,0.54-0.45,0.99-0.99,0.99 h-11.5c-0.54,0-0.99-0.44-0.99-0.99v-25.98c0-0.54,0.44-0.99,0.99-0.99h11.5C78.13,113.98,78.58,114.43,78.58,114.97z"}),r.createElement("path",{className:"st0",d:"M106.26,95.87H93.74c-2.85,0-5.17,2.32-5.17,5.17v40.43c0,2.85,2.32,5.17,5.17,5.17h12.52 c2.85,0,5.17-2.32,5.17-5.17v-40.43C111.43,98.19,109.11,95.87,106.26,95.87z M106.73,101.04v40.43c0,0.26-0.21,0.47-0.47,0.47 H93.74c-0.26,0-0.47-0.21-0.47-0.47v-40.43c0-0.25,0.22-0.47,0.47-0.47h12.52C106.51,100.57,106.73,100.79,106.73,101.04z"}),r.createElement("path",{className:"st0",d:"M134.7,84.05h-13.07c-2.7,0-4.9,2.19-4.9,4.89v52.8c0,2.7,2.2,4.89,4.9,4.89h13.07c2.7,0,4.9-2.19,4.9-4.89 v-52.8C139.59,86.25,137.4,84.05,134.7,84.05z M121.42,88.94c0-0.1,0.1-0.2,0.2-0.2h13.07c0.1,0,0.2,0.1,0.2,0.2v52.8 c0,0.1-0.1,0.19-0.2,0.19h-13.07c-0.11,0-0.2-0.09-0.2-0.19V88.94z"})),r.createElement("path",{className:"st1",d:"M74.3,91.23c0.48,0,0.97-0.12,1.41-0.36l45.25-24.79l-1.68,6.64c-0.4,1.57,0.55,3.17,2.12,3.57 c0.24,0.06,0.48,0.09,0.72,0.09c1.31,0,2.51-0.89,2.84-2.22l3.01-11.84c0.62-2.42-0.84-4.91-3.27-5.54l-11.83-3.07 c-1.57-0.4-3.17,0.53-3.58,2.11c-0.41,1.57,0.53,3.17,2.11,3.58l6.46,1.68L72.89,85.71c-1.43,0.78-1.94,2.57-1.16,3.99 C72.26,90.68,73.26,91.23,74.3,91.23z"}))))}var tx,nx,rx=r.forwardRef(ex);n.p;function ax(){return(ax=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cx(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ix(e,t){var n=e.title,a=e.titleId,c=cx(e,["title","titleId"]);return r.createElement("svg",ax({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 200 200",style:{enableBackground:"new 0 0 200 200"},xmlSpace:"preserve",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,tx||(tx=r.createElement("style",{type:"text/css"},"\n\t.st0{fill:#9FA1AA;}\n\t.st1{fill:#D78E2E;}\n\t.st2{fill:#AEB1B7;}\n\t.st3{fill:none;stroke:#D78E2E;stroke-width:5;stroke-linecap:round;stroke-miterlimit:10;}\n\t.st4{fill:none;stroke:#AEB1B7;stroke-width:5;stroke-linecap:round;stroke-miterlimit:10;}\n")),nx||(nx=r.createElement("g",null,r.createElement("rect",{x:83.21,y:83.21,className:"st3",width:19.59,height:8.4}),r.createElement("line",{className:"st3",x1:83.21,y1:105.6,x2:88.8,y2:105.6}),r.createElement("line",{className:"st3",x1:83.21,y1:116.79,x2:88.8,y2:116.79}),r.createElement("line",{className:"st3",x1:97.2,y1:105.6,x2:102.8,y2:105.6}),r.createElement("line",{className:"st3",x1:97.2,y1:116.79,x2:102.8,y2:116.79}),r.createElement("line",{className:"st4",x1:144.78,y1:97.2,x2:144.78,y2:102.8}),r.createElement("path",{className:"st4",d:"M144.78,125.19v12.56c0,3.89-3.15,7.03-7.04,7.03h-81.1c-3.89,0-7.03-3.15-7.03-7.03v-75.5 c0-3.89,3.15-7.03,7.03-7.03h81.1c3.89,0,7.04,3.15,7.04,7.03v12.56"}),r.createElement("path",{className:"st4",d:"M125.19,119.59V128c0,3.08-2.5,5.58-5.58,5.58H66.4c-3.08,0-5.58-2.5-5.58-5.58V72c0-3.08,2.5-5.58,5.58-5.58 h53.21c3.08,0,5.58,2.5,5.58,5.58V119.59"}),r.createElement("rect",{x:139.19,y:80.41,className:"st4",width:11.2,height:11.2}),r.createElement("rect",{x:139.19,y:108.4,className:"st4",width:11.2,height:11.2}))))}var sx,ox=r.forwardRef(ix);n.p;function lx(){return(lx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ux(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function dx(e,t){var n=e.title,a=e.titleId,c=ux(e,["title","titleId"]);return r.createElement("svg",lx({width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,sx||(sx=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 36C27.9411 36 36 27.9411 36 18C36 8.05887 27.9411 0 18 0C8.05887 0 0 8.05887 0 18C0 27.9411 8.05887 36 18 36ZM10.9558 17.3348C10.7974 17.4012 10.6536 17.4981 10.5326 17.6201C10.4114 17.742 10.3154 17.8867 10.2502 18.0458C10.1849 18.2048 10.1517 18.3752 10.1524 18.5472C10.153 18.7191 10.1876 18.8893 10.2541 19.0478C10.3207 19.2064 10.4178 19.3503 10.54 19.4713L17.0784 25.9599C17.3234 26.2029 17.6545 26.3393 17.9995 26.3393C18.3446 26.3393 18.6757 26.2029 18.9206 25.9599L25.4591 19.4713C25.7056 19.227 25.8449 18.8948 25.8464 18.5478C25.848 18.2008 25.7116 17.8673 25.4673 17.6209C25.223 17.3744 24.8908 17.2351 24.5438 17.2336C24.1968 17.232 23.8634 17.3684 23.6169 17.6127L19.3072 21.8889V10.9713C19.3072 10.6244 19.1695 10.2918 18.9242 10.0466C18.679 9.80135 18.3464 9.66357 17.9995 9.66357C17.6527 9.66357 17.3201 9.80135 17.0749 10.0466C16.8296 10.2918 16.6918 10.6244 16.6918 10.9713V21.8889L12.3822 17.6127C12.2603 17.4917 12.1157 17.3959 11.9568 17.3308C11.7978 17.2657 11.6276 17.2326 11.4559 17.2333C11.2841 17.2339 11.1142 17.2685 10.9558 17.3348Z",fill:"#21BDCA"})))}var bx,px=r.forwardRef(dx);n.p;function jx(){return(jx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function mx(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fx(e,t){var n=e.title,a=e.titleId,c=mx(e,["title","titleId"]);return r.createElement("svg",jx({width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,bx||(bx=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 36C27.9411 36 36 27.9411 36 18C36 8.05887 27.9411 0 18 0C8.05887 0 0 8.05887 0 18C0 27.9411 8.05887 36 18 36ZM27.0304 18.6798C27.2231 18.5834 27.4158 18.4389 27.464 18.198C27.5604 17.7645 27.3677 17.4272 26.8377 17.2345C22.0684 14.874 17.2991 12.4652 12.5298 10.0565C12.4816 10.0324 12.4455 10.0204 12.4094 10.0083C12.3732 9.99627 12.3371 9.98422 12.2889 9.96013C11.9035 9.86378 11.6145 9.91196 11.3254 10.201C11.0846 10.4419 11.0364 10.7309 11.1809 11.0682C11.8554 12.8025 12.5298 14.5367 13.1561 16.3192C13.2042 16.4637 13.2524 16.5119 13.3969 16.5119C13.7583 16.5601 14.1075 16.6203 14.4568 16.6805C14.8061 16.7407 15.1553 16.801 15.5166 16.8491H15.5167C17.3955 17.1382 19.2743 17.4272 21.1531 17.7645C21.3699 17.7885 21.5746 17.8247 21.7794 17.8608C21.9841 17.8969 22.1889 17.9331 22.4056 17.9572V18.0053C22.3623 18.0053 22.3093 18.0151 22.2509 18.0258C22.1794 18.0389 22.0998 18.0535 22.0202 18.0535C20.5991 18.2944 19.1659 18.5353 17.7326 18.7761C16.2995 19.017 14.8663 19.2579 13.4451 19.4988C13.3006 19.5469 13.2524 19.5951 13.2042 19.6915C12.9152 20.6068 12.578 21.4739 12.2408 22.3411C12.0721 22.7746 11.9156 23.2082 11.759 23.6418C11.6024 24.0754 11.4459 24.5089 11.2773 24.9425C11.1327 25.4243 11.3254 25.906 11.8072 26.0505C12.0481 26.1469 12.2889 26.0505 12.5298 25.9542L19.467 22.4856C21.3473 21.5093 23.2548 20.5601 25.1486 19.6177C25.7779 19.3045 26.4057 18.9922 27.0304 18.6798Z",fill:"#21BDCA"})))}var hx=r.forwardRef(fx);n.p;var Ox=function(e){var t=Fe.a,n=Object(s.e)(),r=Object(l.g)(),a=Object(_j.a)().t,c=Object(s.f)(Rt).disableWithdraw;return Object(kb.jsxs)(xx,{margin:"0 0 15px 0",children:[Object(kb.jsxs)(gx,{children:[void 0!==t.global.zipUp&&Object(kb.jsxs)(yx,{to:"/wallets/zipup",children:[Object(kb.jsx)(kx,{}),Object(kb.jsx)(Tj.b,{as:"h4",children:"ZipUp"})]}),void 0!==t.global.zipCrew&&Object(kb.jsxs)(Cx,{to:"/wallets/ziplock",children:[Object(kb.jsx)(Ix,{}),Object(kb.jsx)(Tj.b,{as:"h4",children:"ZipLock"})]})]}),Object(kb.jsxs)(gx,{children:[Object(kb.jsxs)(wx,{onClick:function(){var e;c||(r.push("/wallets/deposit/"),n(vc(fc,{product:e})))},enabled:!c,children:[Object(kb.jsx)(Ax,{}),Object(kb.jsx)(Tj.b,{as:"h4",children:a("Deposit")})]}),Object(kb.jsxs)(Sx,{onClick:function(){var e;c||(r.push("/wallets/withdraw/"),n(vc(hc,{product:e})))},enabled:!c,children:[Object(kb.jsx)(Px,{}),Object(kb.jsx)(Tj.b,{as:"h4",children:a("Withdraw")})]})]})]})},xx=Object(Tb.a)(sf,{target:"e1dlvk4l0"})({name:"1kd5czi",styles:"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:7px;"}),gx=Object(Tb.a)("div",{target:"e1dlvk4l1"})("display:flex;@media (max-width:",Pf.a.mobile,"){justify-content:space-between;width:100%;}"),vx=Object(JO.c)("display:flex;padding:3px 20px 3px 0;background-color:",Po.a.bg_secondary,";border-radius:8px;align-items:center;box-shadow:0px 0px 3px 0px ",Po.a.bg_highlight,";color:",Po.a.text_highlight,";height:50px;width:150px;margin:8px;cursor:pointer;@media (max-width:",Pf.a.mobile,"){width:50%;}"),yx=Object(Tb.a)(Zj.a,{target:"e1dlvk4l2"})(vx,""),Cx=Object(Tb.a)(Zj.a,{target:"e1dlvk4l3"})(vx,""),wx=Object(Tb.a)("div",{target:"e1dlvk4l4"})(vx," opacity:",(function(e){return e.enabled?1:.3}),";"),Sx=Object(Tb.a)("div",{target:"e1dlvk4l5"})(vx," opacity:",(function(e){return e.enabled?1:.3}),";"),kx=Object(Tb.a)(rx,{target:"e1dlvk4l6"})({name:"kgitkj",styles:"width:50px;"}),Ix=Object(Tb.a)(ox,{target:"e1dlvk4l7"})({name:"kgitkj",styles:"width:50px;"}),Ax=Object(Tb.a)(px,{target:"e1dlvk4l8"})({name:"1wbi864",styles:"width:50px;padding:0 10px;"}),Px=Object(Tb.a)(hx,{target:"e1dlvk4l9"})({name:"1wbi864",styles:"width:50px;padding:0 10px;"});var Tx=function(e){var t=Object(_j.a)().t,n=Object(s.f)((function(e){return Qt(e)})),r=Object(s.f)((function(e){return Xt(e)})),c=Object(s.f)((function(e){return qt(e)})),i=r.filter((function(e){return e.rawAmount>0})),o=Object(s.f)(Rt).disableWithdraw;return Object(kb.jsxs)(Ex,{children:[Object(kb.jsx)(eO.a,{children:t("Wallets")}),Object(kb.jsx)(zO,{}),Object(kb.jsx)(Ox,{}),Object(kb.jsx)(sf,{children:n?Object(kb.jsx)(Vf,{}):Object(kb.jsx)(kb.Fragment,{children:i.length>0?Object(kb.jsxs)(Dx,{children:[Object(kb.jsx)(KO,{justify:"flex-start",children:Object(kb.jsx)(Tj.d,{children:t("Currency")})}),Object(kb.jsx)(KO,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:t("Total")})}),Object(kb.jsx)(KO,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:t("Available")})}),Object(kb.jsx)(KO,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:t("On Order")})}),Object(kb.jsx)(KO,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:t("{baseCurrency} Value",{baseCurrency:c})})}),Object(kb.jsx)(KO,{className:"show-on-tablet",children:Object(kb.jsx)(Tj.d,{children:t("Value")})}),i.map((function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(Nx,{justify:"flex-start",children:[Object(kb.jsx)(Rx,{children:Object(kb.jsx)(cm,{iconFileName:Lt(e.ProductSymbol),size:35})}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Lx,{children:e.ProductFullName}),Object(kb.jsx)(Fx,{children:e.ProductSymbol})]})]}),Object(kb.jsx)(Nx,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:e.Amount})}),Object(kb.jsx)(Nx,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:e.AvailableBalance})}),Object(kb.jsx)(Nx,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:e.Hold})}),Object(kb.jsx)(Nx,{className:"hide-on-tablet",children:Object(kb.jsx)(Tj.d,{children:L(e.BaseCurrencyValue*e.rawAmount,c)||"-"})}),Object(kb.jsxs)(Mx,{className:"show-on-tablet",children:[e.AvailableBalance&&Object(kb.jsx)(Tj.d,{children:e.AvailableBalance}),Object(kb.jsx)(Tj.f,{children:e.rawAmount>0?L(e.BaseCurrencyValue*e.rawAmount,c)+" ".concat(c):""})]})]},"row".concat(t))}))]}):Object(kb.jsx)(kb.Fragment,{children:o?Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:t("You are nearly there. Complete your KYC in 5 minutes to start your Zipmex journey.")}),Object(kb.jsx)(Zj.a,{to:"/settings/verification",children:Object(kb.jsx)(Pm,{variant:"outlined",size:"small",children:"Start KYC"})})]}):Object(kb.jsx)(Tj.d,{margin:"20px 0 20px 0",children:t("Start your Zipmex journey and make your first deposit.")})})})})]})},Ex=Object(Tb.a)("div",{target:"e12vjcdf0"})({name:"7wlyfr",styles:"margin-bottom:70px;"}),Rx=Object(Tb.a)("div",{target:"e12vjcdf1"})({name:"m8yube",styles:"display:block;padding-right:16px;"}),Nx=Object(Tb.a)(YO,{target:"e12vjcdf2"})({name:"pthnsx",styles:"padding:12px 7px;"}),Mx=Object(Tb.a)(YO,{target:"e12vjcdf3"})({name:"hdahh2",styles:"flex-direction:column;align-items:flex-end;padding-right:15px;"}),Dx=Object(Tb.a)(_O,{target:"e12vjcdf4"})("grid-template-columns:20% 20% 20% 20% 20%;@media (max-width:",Pf.a.desktop,"){grid-template-columns:50% 50%;}"),Lx=Object(Tb.a)(Tj.d,{target:"e12vjcdf5"})("display:inline;@media (max-width:",Pf.a.tablet,"){display:none;}"),Fx=Object(Tb.a)(Tj.d,{target:"e12vjcdf6"})("color:",Po.a.text_grey,";@media (max-width:",Pf.a.tablet,"){color:",Po.a.text_body,";}"),Ux=function(e,t){var n=Object(_j.a)().t,r=Object(s.f)(At),a=r.status&&r.status.isSubscribed||!1,c=Fe.a.global.zipUp.bannerRate,i="en-GB"===window.localStorage.getItem("language")?Fe.a.global.zipUp.interest:"",o=Fe.a.global.zipUp.learnMoreLink||"",l=Object(s.e)();return Object(kb.jsx)(kb.Fragment,{children:a?Object(kb.jsxs)(Wx,{children:[Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.d,{children:n("Congrats, your assets are in ZipUp!")}),Object(kb.jsx)(Tj.b,{as:"h4",padding:"0 0 10px",children:n("ZipUp more. Earn daily. Use any time.")})]}),Object(kb.jsx)(_x,{children:Object(kb.jsx)(qx,{href:o,target:"_blank",children:n("Learn more")})})]}):Object(kb.jsxs)(zx,{children:[Object(kb.jsxs)(Gx,{as:"h3",children:[n("ZipUp and earn up to {bannerRate} {interest} paid daily.",{bannerRate:c,interest:i})," "]}),Object(kb.jsxs)(_x,{children:[Object(kb.jsx)(qx,{href:o,target:"_blank",children:n("Learn more")}),Object(kb.jsx)(Vx,{target:"_blank",onClick:function(){l(Pn(Gn))},children:n("Sign up")})," "]})]})})},Bx=Object(Tb.a)("div",{target:"egm7fys0"})("padding:10px 20px;text-align:center;background:",Po.a.bg_highlight,";width:100%;margin:20px 0;border-radius:5px;"),zx=Object(Tb.a)(Bx,{target:"egm7fys1"})("display:flex;justify-content:space-between;padding:10px 20px;text-align:center;background:",Po.a.bg_highlight,";width:100%;margin:20px 0;border-radius:5px;@media (max-width:",Pf.a.tablet,"){justify-content:center;flex-direction:column;border-radius:0px;}"),Gx=Object(Tb.a)(Tj.b,{target:"egm7fys2"})("padding:12px 10px 12px 0;@media (max-width:",Pf.a.mobile,"){padding:4px 20px 8px;font-size:",Tj.h.paragraph,";}"),Wx=Object(Tb.a)("div",{target:"egm7fys3"})("display:flex;justify-content:space-between;padding:10px 20px;background:",Po.a.bg_highlight,";width:100%;margin:20px 0;border-radius:5px;@media (max-width:",Pf.a.tablet,"){border-radius:0px;flex-direction:column;text-align:center;}"),Zx=Object(JO.c)("display:inline-block;min-width:140px;max-width:300px;height:28px;border:1px solid ",Po.a.text_body,";color:",Po.a.text_body,";border-radius:15px;padding:5px 20px;text-align:center;font-size:",Tj.h.h5,";margin:8px 3px;"),qx=Object(Tb.a)("a",{target:"egm7fys4"})(Zx,";"),Vx=Object(Tb.a)("button",{target:"egm7fys5"})(Zx," background:",Po.a.bg_transparent_light,";"),_x=Object(Tb.a)("div",{target:"egm7fys6"})("display:flex;flex-direction:column;justify-content:space-around;@media (max-width:",Pf.a.tablet,"){flex-direction:row;margin:0 auto;}"),Hx=(n(1035),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).tabContentRef=a.a.createRef(),r.changeTab=function(e){r.props.onTabChange(e),r.setState({activeIndex:e})},r.handleTabChange=function(e,t){e.preventDefault(),r.changeTab(t)},r.state={activeIndex:r.props.defaultActiveIndex},r}return Object(d.a)(n,[{key:"getClasses",value:function(){return Db(["ap-tab",this.props.customClass])}},{key:"_renderMenu",value:function(){var e=this.getClasses();return Object(kb.jsx)("div",{className:e("menu",this.props.classModifiers),children:this._renderMenuItems()})}},{key:"_renderMenuItems",value:function(){var e=this,t=this.props,n=t.panes,r=t.classModifiers,a=t.menuItemComponent,c=this.getClasses();return n.map((function(t,n){var i=e.state.activeIndex===n?c("menu-item",["active"].concat(r.map((function(e){return"".concat(e,"-active")})))):"",s=Gb()(i,c("menu-item",r));return a?Object(kb.jsx)(a,{className:s,onClick:function(r){t.onSelect&&t.onSelect(),e.handleTabChange(r,n)},"data-test":t.menuItem,index:n,isActive:e.state.activeIndex===n,children:e.context.t(t.menuItem)},"menuItem-".concat(n)):Object(kb.jsx)("div",{className:s,onClick:function(r){t.onSelect&&t.onSelect(),e.handleTabChange(r,n)},"data-test":t.menuItem,children:e.context.t(t.menuItem)},"menuItem-".concat(n))}))}},{key:"componentDidUpdate",value:function(e,t){t.activeIndex!==this.state.activeIndex&&(this.tabContentRef.current.scrollTop=0)}},{key:"render",value:function(){var e=this.props,t=e.panes,n=e.classModifiers,r=e.footerComponent,a=Object(Hr.a)(e,["panes","classModifiers","footerComponent"]),c=t[this.state.activeIndex],i=this.getClasses();return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)("div",{className:"".concat(i("tab",n)," ").concat(this.props.className),children:[this._renderMenu(),Object(kb.jsx)("div",{ref:this.tabContentRef,className:i("tab-content",n),children:c.render(Object(Y.a)(Object(Y.a)({},a),{},{handleTabChange:this.handleTabChange}))})]}),r&&Object(kb.jsx)(r,{activeIndex:this.state.activeIndex,lastIndex:t.length-1,handleTabChange:this.handleTabChange})]})}}]),n}(r.Component));Hx.defaultProps={customClass:"custom-tab",classModifiers:[],defaultActiveIndex:0,onTabChange:function(){}},Hx.contextTypes={t:O.a.func.isRequired};var Yx=function(e){return Object(kb.jsx)(Kx,Object(Y.a)({customClass:"styled-tabs"},e))},Kx=Object(Tb.a)(Hx,{target:"e3k313l0"})(".styled-tabs__menu{background:none;border-bottom:0;margin-bottom:1rem;display:flex;}.styled-tabs__menu-item{position:relative;display:flex;flex:initial;align-items:center;height:40px;font-family:",Tj.g.body,";font-size:",Tj.h.paragraph,";font-weight:bold;line-height:",Tj.h.paragraph,";margin-right:1.5rem;border-right:0;color:",Po.a.text_grey,";&:hover{color:",Po.a.text_body,";}&:active{color:",Po.a.text_body,";}}.styled-tabs__menu-item--active{color:",Po.a.text_body,";}.styled-tabs__menu-item:hover:before,.styled-tabs__menu-item--active:before,.styled-tabs__menu-item--active:hover:before{height:4px;border:none;border-radius:2px;background:",Po.a.bg_highlight,";}");var Qx=Object(Tb.a)("div",{target:"e1pl4qst0"})({name:"5k3a3j",styles:"height:30px;border-radius:8px;display:flex;margin:15px 0;"}),Jx=Object(Tb.a)("div",{target:"e1pl4qst1"})("min-width:60px;padding:0 1rem;border-radius:6px;display:flex;justify-content:space-around;align-items:center;cursor:pointer;margin:1px;&&:hover{background:",Po.a.bg_tertiary,";}",(function(e){return e.isActive&&"background: ".concat(Po.a.bg_tertiary)}),""),Xx=Qx,$x=[Ae.c.extractT("All"),Ae.c.extractT("1Y"),Ae.c.extractT("1M"),Ae.c.extractT("1W"),Ae.c.extractT("1D")],eg=function(e){var t=e.onSelect,n=e.selected,r=void 0===n?"All":n,a=Object(_j.a)().t;return Object(kb.jsx)(Xx,{children:$x.map((function(e,n){return Object(kb.jsx)(Jx,{onClick:function(){return t(e)},isActive:e===r,children:Object(kb.jsx)(Tj.f,{color:Po.a.text_body,children:a(e)})},"time".concat(n))}))})};var tg=function(e){var t=Object(_j.a)().t,n=Object(r.useState)("All"),c=Object(J.a)(n,2),i=c[0],o=c[1],l=Object(s.f)(At),u=Object(s.f)((function(e){return e.product.products})),d=Object(s.f)((function(e){return qt(e)})),b=Object(s.f)((function(e){return e})),p=[];switch(i){case"All":p=l.interestAll;break;case"1Y":p=l.interestYear;break;case"1M":p=l.interestMonth;break;case"1W":p=l.interestWeek;break;case"1D":p=l.interestDay}if(p){var j=0,m=p.map((function(e){var t=u.find((function(t){return t.ProductId===e.productId}));if(t){var n=function(e,t){var n,r=null===(n=Ht(b,e))||void 0===n?void 0:n.value;return r&&r!==1/0?r*t:0}(t.ProductId,e.amount);return j+=F(L(n,d)),{product:t.Product,productName:t.ProductFullName,precision:t.DecimalPlaces,amount:e.amount,baseValue:n}}return!1})).filter((function(e){return!1!==e}));return Object(kb.jsxs)(ng,{children:[Object(kb.jsx)(eg,{onSelect:function(e){o(e)},selected:i}),Object(kb.jsxs)(sf,{color:Po.a.bg_secondary,children:[0===m.length&&Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:t("No earnings yet")}),Object(kb.jsxs)(_O,{children:[Object(kb.jsx)(QO,{}),Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:t("Yield")})}),Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:d})}),m.map((function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(YO,{justify:"flex-start",children:[Object(kb.jsx)(rg,{children:Object(kb.jsx)(cm,{iconFileName:Lt(e.product),size:25})}),Object(kb.jsx)(ag,{children:e.product}),Object(kb.jsxs)(ig,{children:["(",e.productName,")"]})]}),Object(kb.jsx)(YO,{justify:"flex-end",children:Object(kb.jsxs)(cg,{children:[L(e.amount,e.precision)," "]})}),Object(kb.jsx)(YO,{justify:"flex-end",children:Object(kb.jsx)(cg,{children:L(e.baseValue,d)})})]},"row".concat(t))})),Object(kb.jsx)(YO,{justify:"flex-start",children:Object(kb.jsxs)(Tj.b,{as:"h4",children:[t("Total")," "]})}),Object(kb.jsx)(QO,{}),Object(kb.jsx)(YO,{justify:"flex-end",children:Object(kb.jsx)(Tj.b,{as:"h4",children:L(j,d)})})]})]})]})}return Object(kb.jsx)(sg,{})},ng=Object(Tb.a)("div",{target:"e1uvnvra0"})({name:"nwf3vl",styles:"display:flex;flex-direction:column;width:100%;margin-bottom:100px;"}),rg=Object(Tb.a)("div",{target:"e1uvnvra1"})({name:"1t9l6fj",styles:"display:block;padding-right:8px;"}),ag=Object(Tb.a)(Tj.d,{target:"e1uvnvra2"})({name:"ttjnck",styles:"margin:0 8px 0 0;"}),cg=Object(Tb.a)(Tj.d,{target:"e1uvnvra3"})("margin:0;color:",Po.a.text_highlight,";@media (max-width:",Pf.a.mobile,"){font-size:",Tj.h.small,";}"),ig=Object(Tb.a)(Tj.f,{target:"e1uvnvra4"})("display:none;@media (min-width:",Pf.a.tablet,"){display:inline;}"),sg=Object(Tb.a)(Vf,{target:"e1uvnvra5"})({name:"1ofqig9",styles:"display:flex;flex-direction:column;width:100%;"});var og=function(e){var t=Object(s.f)(At),n=Object(s.f)((function(e){return e.product.products})),r=t.rates||[],c=Fe.a.global.zipUp.APY||"APY",i=Object(s.f)((function(e){return e.zipCrewSlice.status.tier===Wo})),o=r.map((function(e){var t=n.find((function(t){return t.ProductId===e.productId}));return!!t&&{product:t.Product,productName:t.ProductFullName,memberRate:e.rate+"%",vipRate:e.vipRate+"%"}})).filter((function(e){return!1!==e}));return o.length>0?Object(kb.jsx)(sf,{margin:"30px 0 60px",children:Object(kb.jsxs)(lg,{children:[Object(kb.jsx)(jg,{}),Object(kb.jsx)(dg,{highlight:!i,children:Object(kb.jsx)(hg,{children:Ae.c.t("ZipUp")})}),Object(kb.jsx)(dg,{highlight:i,children:Object(kb.jsx)(hg,{children:Ae.c.t("ZipCrew")})}),o.map((function(e,t){var n=t===o.length-1;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(pg,{children:[Object(kb.jsx)(mg,{children:Object(kb.jsx)(cm,{iconFileName:Lt(e.product),size:25})}),Object(kb.jsx)(fg,{children:e.product}),Object(kb.jsxs)(Og,{children:["(",e.productName,")"]})]}),Object(kb.jsxs)(ug,{highlight:!i,last:n,children:[Object(kb.jsx)(hg,{color:Po.a.text_highlight,children:e.memberRate}),Object(kb.jsx)(gg,{children:c})]}),Object(kb.jsxs)(ug,{highlight:i,last:n,children:[Object(kb.jsx)(hg,{color:Po.a.text_highlight,children:e.vipRate}),Object(kb.jsx)(gg,{children:c})]})]},"row".concat(t))}))]})}):Object(kb.jsx)(xg,{})},lg=Object(Tb.a)("div",{target:"e1dlszcq0"})({name:"17kwjcd",styles:"margin:0;display:grid;grid-template-columns:40% 30% 30%;grid-template-rows:50px 50px 50px;width:100%;grid-gap:0;"}),ug=Object(Tb.a)("div",{target:"e1dlszcq1"})("display:flex;border-bottom:1px solid ",Po.a.table_border,";height:50px;width:100%;justify-content:center;align-items:center;background:",Po.a.bg_secondary,";",(function(e){return e.highlight&&bg(e.last)}),";"),dg=Object(Tb.a)(ug,{target:"e1dlszcq2"})("flex-direction:column;border-radius:5px 5px 0 0;",(function(e){return e.highlight&&bg()}),";"),bg=function(e){return Object(JO.c)("border-top:1px solid ",Po.a.table_border_highlight,";border-left:1px solid ",Po.a.table_border_highlight,";border-right:1px solid ",Po.a.table_border_highlight,";background:",Po.a.table_cell_selected,";",e&&"border-bottom: 1px solid ".concat(Po.a.table_border_highlight),";")},pg=Object(Tb.a)(ug,{target:"e1dlszcq3"})({name:"elyp5t",styles:"justify-content:left;border-left:none;border-right:none;background:none;"}),jg=Object(Tb.a)("div",{target:"e1dlszcq4"})("border-bottom:1px solid ",Po.a.table_border,";"),mg=Object(Tb.a)("div",{target:"e1dlszcq5"})({name:"1t9l6fj",styles:"display:block;padding-right:8px;"}),fg=Object(Tb.a)(Tj.d,{target:"e1dlszcq6"})({name:"ttjnck",styles:"margin:0 8px 0 0;"}),hg=Object(Tb.a)(Tj.d,{target:"e1dlszcq7"})({name:"1uk1gs8",styles:"margin:0;"}),Og=Object(Tb.a)(Tj.f,{target:"e1dlszcq8"})("display:none;@media (min-width:",Pf.a.tablet,"){display:inline;}"),xg=Object(Tb.a)(Vf,{target:"e1dlszcq9"})({name:"1ofqig9",styles:"display:flex;flex-direction:column;width:100%;"}),gg=Object(Tb.a)(Tj.f,{target:"e1dlszcq10"})({name:"1mr7l7v",styles:"display:block;padding-left:3px;padding-top:2px;"});var vg=function(e){var t=Object(_j.a)().t,n=Object(s.e)(),r=Object(s.f)(At),c=Object(s.f)((function(e){var t;return null===(t=e.product)||void 0===t?void 0:t.products})),i=r.interestTransactions,o=r.fetching||!1;if(i){var l=i.map((function(e){var t=c.find((function(t){return t.ProductId===e.productId}));return!!t&&{product:t.Product,productName:t.ProductFullName,precision:t.DecimalPlaces,date:e.date,amount:e.amount}})).filter((function(e){return!1!==e}));return Object(kb.jsx)(yg,{children:Object(kb.jsxs)(sf,{children:[0===l.length&&Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:t("No earnings yet")}),Object(kb.jsxs)(_O,{cols:"33% 33% 34%",children:[Object(kb.jsx)(KO,{justify:"flex-start",children:Object(kb.jsx)(Tj.d,{margin:"0",children:t("Currency")})}),Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:t("Date")})}),Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:t("Amount")})}),l.map((function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(YO,{justify:"flex-start",children:[Object(kb.jsx)(Cg,{children:Object(kb.jsx)(cm,{iconFileName:Lt(e.product),size:25})}),Object(kb.jsx)(wg,{children:e.product}),Object(kb.jsxs)(Sg,{children:["(",e.productName,")"]})]}),Object(kb.jsx)(YO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:e.date})}),Object(kb.jsx)(YO,{children:Object(kb.jsx)(Tj.d,{margin:"0",color:Po.a.text_highlight,children:L(e.amount,e.precision)})})]},"row".concat(t))}))]}),Object(kb.jsx)(Ig,{children:Object(kb.jsx)(Pm,{onClick:function(){if(i){var e,t=null===(e=i[i.length-1])||void 0===e?void 0:e.date;t&&n(function(e){var t=e.dateBefore;return function(){var e=Object(V.a)(q.a.mark((function e(n){var r,a,c;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=window.localStorage.getItem("zmToken"),a=Fe.a.global.zipUp&&Fe.a.global.zipUp.productIds||[],n(Object(Ao.l)()),e.next=5,Object(Ao.e)({token:r,productIds:a,dateBefore:t});case 5:c=e.sent,n(Object(Ao.m)(c));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}({dateBefore:t}))}},showLoading:o,variant:"outlined",size:"small",children:t("Load more")})})]})})}return Object(kb.jsx)(kg,{})},yg=Object(Tb.a)("div",{target:"e5z42a0"})({name:"y7tzna",styles:"display:flex;flex-direction:column;width:100%;margin-top:10px;margin-bottom:60px;"}),Cg=Object(Tb.a)("div",{target:"e5z42a1"})({name:"1t9l6fj",styles:"display:block;padding-right:8px;"}),wg=Object(Tb.a)(Tj.d,{target:"e5z42a2"})({name:"ttjnck",styles:"margin:0 8px 0 0;"}),Sg=Object(Tb.a)(Tj.f,{target:"e5z42a3"})("display:none;@media (min-width:",Pf.a.tablet,"){display:inline;}"),kg=Object(Tb.a)(Vf,{target:"e5z42a4"})({name:"13o6z6d",styles:"margin:0 auto;"}),Ig=Object(Tb.a)("div",{target:"e5z42a5"})({name:"gngv8k",styles:"margin:30px 0;display:flex;justify-content:space-around;"}),Ag=new URLSearchParams(window.location.search).get("contentOnly"),Pg=function(e){var t=e.to;return Object(kb.jsx)(Eg,{to:t,children:Object(kb.jsx)(Ij,{name:"caretPrevious",customClass:""})})},Tg=function(e){var t=e.to;return Ag?Object(kb.jsx)(kb.Fragment,{}):Object(kb.jsx)(Rg,{to:t,children:Object(kb.jsx)(Ij,{name:"caretPrevious",customClass:""})})},Eg=Object(Tb.a)(Zj.a,{target:"e1qncy490"})("position:relative;padding:",(function(e){return e.padding?e.padding:"19px 29px 19px 0"}),";width:15px;height:15px;display:block;svg{width:15px;height:15px;}"),Rg=Object(Tb.a)(Zj.a,{target:"e1qncy491"})("position:absolute;top:0;left:0;padding:19px;width:15px;height:15px;svg{width:15px;height:15px;}@media (min-width:",Pf.a.mobile,"){display:none;}");var Ng=function(e){var t=e.zipUpSignedUp,n=Object(_j.a)().t,r=[{id:"yeild",enabled:!0,menuItem:n("Yield Paid"),render:function(){return Object(kb.jsx)(tg,{})},enable:t},{id:"rates",enabled:!0,menuItem:n("Current Rates"),render:function(){return Object(kb.jsx)(og,{})},enable:!0},{id:"Earnings",enabled:!0,menuItem:n("Earnings"),render:function(){return Object(kb.jsx)(vg,{})},enable:t}].filter((function(e){return!1!==e.enable}));return Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tg,{to:"/wallets"}),Object(kb.jsx)(eO.a,{children:n("ZipUp")}),Object(kb.jsx)(Ux,{}),Object(kb.jsx)(Mg,{children:Object(kb.jsx)(Dg,{panes:r,customClass:"styled-tabs"})})]})},Mg=Object(Tb.a)("div",{target:"e1bxsk340"})({name:"y8aj3r",styles:"padding:0;"}),Dg=Object(Tb.a)(Yx,{target:"e1bxsk341"})({name:"tr0r3x",styles:"margin-top:15px;"}),Lg=function(e){var t=e.panes,n=e.currentPane,r=e.className,a=t[n];return Object(kb.jsxs)("div",{className:r,children:[Object(kb.jsx)(Xx,{children:t.map((function(e,t){return Object(kb.jsx)(Jx,{onClick:e.onSelect,isActive:t===n,children:Object(kb.jsx)(Tj.f,{color:Po.a.text_body,children:e.text})},"item"+t)}))}),Object(kb.jsx)(a.render,{})]})},Fg=n(1301),Ug=n(1288),Bg=n(1303),zg=Object(Tb.a)(Fg.a,{target:"ekub3si0"})("&&{color:",Po.a.input_label_color,";font-family:",Tj.g.body,";font-weight:normal;font-size:",(function(e){return e.fontSize?e.fontSize:Tj.h.paragraph}),";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}&&.Mui-focused{color:",Po.a.input_label_color,";}"),Gg=Object(Tb.a)(Ug.a,{target:"ekub3si1"})("&&.MuiInputBase-root{color:",Po.a.input_text_color,";font-family:",Tj.g.body,";font-weight:normal;font-size:",(function(e){return e.fontSize?e.fontSize:Tj.h.paragraph}),";min-width:100%;margin-top:16px;&&.MuiInputBase-input:focus{box-sizing:content-box;}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}input[type='number']{-moz-appearance:textfield;}}&&.MuiInput-underline:before{border-bottom:1px solid ",Po.a.input_border,";transition:border-bottom-color 200ms cubic-bezier(0.4,0,0.2,1) 0ms;}&&.MuiInput-underline:hover:not(.Mui-disabled):before{border-bottom:1px solid ",Po.a.input_border_hover,";}&&.MuiInput-underline:after{border-bottom:2px solid ",Po.a.input_border_highlight,";}&&.Mui-error:after{border-bottom:2px solid ",Po.a.input_border_error,";}"),Wg=function(e){var t=e.label,n=e.id,r=e.fontSize,a=e.autoCapitalize,c=e.autoComplete,i=e.maxLength,s=e.pattern,o=e.shrink,l=e.inputProps,u=Object(Hr.a)(e,["label","id","fontSize","autoCapitalize","autoComplete","maxLength","pattern","shrink","inputProps"]);return Object(kb.jsxs)(Bg.a,{fullWidth:u.fullWidth,children:[t?Object(kb.jsx)(zg,{shrink:o,htmlFor:n,fontSize:r,children:t}):null,Object(kb.jsx)(Gg,Object(Y.a)(Object(Y.a)({id:n,fontSize:r},u),{},{inputProps:Object(Y.a)(Object(Y.a)({},l),{},{autoCapitalize:a,maxLength:i,pattern:s,autoComplete:c})}))]})};var Zg=function(e){var t=e.instance,n=Object(_j.a)().t,r="id"===t?"0.100%":"0.190%",a=n("th"===t?"Bonus on ZMT (fixed saving ZipLock)":"Interest on ZMT (Fixed Saving ZipLock)"),c=n("th"===t?"Bonus Booster on Cryptos (Flexible Saving ZipUp)":"Interest Booster on Cryptos (Flexible Saving ZipUp)"),i=n("th"===t?"Maker and Taker fee (on instruments with fees)":"Maker and Taker fee");return Object(kb.jsxs)(nv,{role:"table","data-testid":"member-level-benefits-table",children:[Object(kb.jsxs)(qg,{children:[Object(kb.jsx)(_g,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"600",children:n("Benefits / Levels")})}),Object(kb.jsxs)(Hg,{children:[Object(kb.jsx)(wh,{level:"ZIP_STARTER"}),Object(kb.jsx)(Qg,{fontSize:"14px",fontWeight:"bold",color:Po.a.zipStarterText,children:n("Level 1")})]}),Object(kb.jsxs)(Yg,{children:[Object(kb.jsx)(wh,{level:"ZIP_MEMBER"}),Object(kb.jsx)(Qg,{fontSize:"14px",fontWeight:"bold",color:Po.a.zipMemberText,children:n("Level 2")})]}),Object(kb.jsxs)(Kg,{children:[Object(kb.jsx)(wh,{level:"ZIP_CREW"}),Object(kb.jsx)(Qg,{fontSize:"14px",fontWeight:"bold",color:Po.a.zipCrewText,children:n("Level 3")})]})]}),Object(kb.jsxs)(Jg,{children:[Object(kb.jsx)(ev,{children:Object(kb.jsx)(tv,{children:n("Membership Name")})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"700",color:Po.a.zipStarterText,children:"ZipStarter"})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"700",color:Po.a.zipMemberText,children:"ZipMember"})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"700",color:Po.a.zipCrewText,children:"ZipCrew"})})]}),Object(kb.jsxs)(Jg,{children:[Object(kb.jsx)(ev,{children:Object(kb.jsx)(tv,{children:n("Criteria")})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:"-"})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:n("Buy and lock 100 ZMT")})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:n("Buy and lock 20,000 ZMT")})})]}),Object(kb.jsxs)(Jg,{children:[Object(kb.jsx)(ev,{children:Object(kb.jsx)(tv,{children:i})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:"0.200%"})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:"0.195%"})}),Object(kb.jsx)(Xg,{"data-testid":"zipcrew-maker-taker-fee",children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:r})})]}),Object(kb.jsxs)(Jg,{children:[Object(kb.jsx)(ev,{children:Object(kb.jsx)(tv,{children:a})}),Object(kb.jsx)(Xg,{children:Object(kb.jsxs)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:[14,"%"]})}),Object(kb.jsx)(Xg,{children:Object(kb.jsxs)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:[14,"%"]})}),Object(kb.jsx)(Xg,{children:Object(kb.jsxs)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:[14,"%"]})})]}),Object(kb.jsxs)(Jg,{children:[Object(kb.jsx)(ev,{children:Object(kb.jsx)(tv,{children:c})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:n("Up to 8.5%")})}),Object(kb.jsx)(Xg,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:n("Up to 8.5%")})}),Object(kb.jsxs)($g,{children:[Object(kb.jsxs)(Tj.c,{fontSize:"14px",fontWeight:"400",color:Po.a.text_body,children:[n("Up to 8.5%")," +"]}),Object(kb.jsx)(rv,{children:Object(kb.jsx)(iv,{children:Object(kb.jsx)(Tj.c,{fontSize:"14px",color:"#DAAB32",children:n("Extra 2.0%")})})})]})]})]})},qg=Object(Tb.a)("div",{target:"e1egf24a0"})({name:"1kv1ono",styles:"background-color:#2b3e54;position:sticky;display:grid;grid-template-columns:1fr 1fr 1fr;top:0;overflow:hidden;border-top-left-radius:8px;border-top-right-radius:8px;@media (min-width:900px){grid-template-columns:1fr 180px 180px 180px;}"}),Vg=Object(Tb.a)("div",{target:"e1egf24a1"})({name:"1etl79u",styles:"padding:23px 14px;justify-self:stretch;align-self:center;display:flex;align-items:center;justify-content:center;@media (min-width:900px){padding:10px 30px;}"}),_g=Object(Tb.a)(Vg,{target:"e1egf24a2"})({name:"15xop3w",styles:"display:none;justify-content:flex-start;@media (min-width:900px){display:flex;}"}),Hg=Object(Tb.a)(Vg,{target:"e1egf24a3"})("background-color:",Po.a.zipStarterBg,";"),Yg=Object(Tb.a)(Vg,{target:"e1egf24a4"})("background-color:",Po.a.zipMemberBg,";"),Kg=Object(Tb.a)(Vg,{target:"e1egf24a5"})("background-color:",Po.a.zipCrewBg,";"),Qg=Object(Tb.a)(Tj.c,{target:"e1egf24a6"})({name:"1isemmb",styles:"margin-left:8px;"}),Jg=Object(Tb.a)("div",{target:"e1egf24a7"})({name:"u16a8c",styles:"display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto;@media (min-width:900px){grid-template-columns:1fr 180px 180px 180px;grid-template-rows:auto;}"}),Xg=Object(Tb.a)("div",{target:"e1egf24a8"})({name:"4rhx9x",styles:"padding:20px 6px;justify-self:stretch;align-self:center;min-height:70px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:17px;@media (min-width:900px){padding:16px 30px;}"}),$g=Object(Tb.a)(Xg,{target:"e1egf24a9"})({name:"cgq59l",styles:"flex-direction:column;"}),ev=Object(Tb.a)(Xg,{target:"e1egf24a10"})({name:"e93qa1",styles:"grid-row:1;grid-column:span 3;padding-bottom:0;min-height:auto;@media (min-width:900px){grid-column:1;justify-content:flex-start;text-align:left;padding-bottom:16px;}"}),tv=Object(Tb.a)(Tj.c,{target:"e1egf24a11"})("color:",Po.a.text_body_small,";font-size:12px;@media (min-width:900px){font-size:14px;}"),nv=Object(Tb.a)("div",{target:"e1egf24a12"})("border-radius:8px;background-color:",Po.a.bg_secondary,";& > ",Jg,":not(:last-child){border-bottom:1px solid ",Po.a.border,";}"),rv=Object(Tb.a)("ul",{target:"e1egf24a13"})({name:"1vbfcfu",styles:"list-style:none;display:block;margin:0;padding-left:0;"}),av=Object(Tb.a)("li",{target:"e1egf24a14"})({name:"19ug521",styles:"margin-top:6px;"}),cv={name:"9cgosx",styles:"content:'';display:inline-block;background-size:contain;background-repeat:no-repeat;margin-right:0.5em;"},iv=Object(Tb.a)(av,{target:"e1egf24a15"})("&:before{",cv," height:13.33px;width:18.5px;background-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxOSAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImRpYW1vbmQiPgo8cGF0aCBpZD0iVmVjdG9yIDI4IiBkPSJNMCAzLjg4MTEyTDMuMTA0OSAwTDYuMjA5NzkgMy44ODExMkgwWiIgZmlsbD0iI0ZGRUQ5MCIvPgo8cGF0aCBpZD0iVmVjdG9yIDI5IiBkPSJNNS45NTMxMiAzLjg4MTEyTDkuMTg3MzkgMEwxMi4yOTIzIDMuODgxMTJINS45NTMxMloiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcikiLz4KPHBhdGggaWQ9IlZlY3RvciAzMSIgZD0iTTE1LjUyMzQgLTAuMDAwMjU5ODc2TDEyLjI4OTIgMy44ODA4Nkw5LjE4NDI4IC0wLjAwMDI2MDY2OUwxNS41MjM0IC0wLjAwMDI1OTg3NloiIGZpbGw9InVybCgjcGFpbnQxX2xpbmVhcikiLz4KPHBhdGggaWQ9IlZlY3RvciAzMCIgZD0iTTEyLjI4OTEgMy44ODExMkwxNS4zOTQgMEwxOC40O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MjQiIHkxPSI0LjE0MDA3IiB4Mj0iMTQuNzUwNCIgeTI9IjkuODMyMzciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iI0Y4ODQyRSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGN0IwNEEiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDZfbGluZWFyIiB4MT0iMTAuODY0OCIgeTE9IjQuOTE2MjkiIHgyPSI3LjI0MjQ2IiB5Mj0iNy4zNzQzMyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjRkRDQjU4Ii8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0ZFRUJBMCIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=');}"),sv=n(1297),ov=n(1300);var lv=new URLSearchParams(window.location.search).get("contentOnly"),uv=function(e){e.setCurentPane;var t=Object(_j.a)().t,n=Object(s.f)((function(e){var t;return null===(t=e.zipCrewSlice)||void 0===t?void 0:t.status})),a=n.isSubscribed||!1,c=n.stakedAmount||"0",i=n.tier||"",o=Object(r.useRef)(null),u=Object(s.e)(),d=Object(l.g)(),b=Object(r.useState)(!1),p=Object(J.a)(b,2),j=p[0],m=p[1],f=df(),h=Object(r.useState)(void 0),O=Object(J.a)(h,2),x=O[0],g=O[1],v=BO(),y=Object(s.f)((function(e){return $t(e,v.ProductId).rawAvailableBalance})),C=Object(s.f)((function(e){var t;return null===(t=e.zipCrewSlice)||void 0===t?void 0:t.amountFieldValue})),w=function(){var e=Object(V.a)(q.a.mark((function e(n){return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),!(C>0)){e.next=12;break}if(!a){e.next=9;break}return m(!0),e.next=6,u(hl(C));case 6:m(!1),e.next=10;break;case 9:u(Pn(Wn,{callbackAction:_o}));case 10:e.next=13;break;case 12:g(t("Please enter an amount of ZMT to lock."));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=Object(s.f)((function(e){return e.zipCrewSlice.status.isAutoRestakeEnabled})),I=Object.keys(qo).find((function(e){return c<qo[e]}));return Object(kb.jsxs)(dv,{children:[Object(kb.jsxs)(sf,{color:Po.a.bg_secondary,margin:"0 0 15px 0",children:[Object(kb.jsxs)(Tj.b,{children:[L(c,0)," ",i&&Object(kb.jsxs)(hv,{children:[Object(kb.jsx)(wh,{level:i}),Object(kb.jsx)(Tj.d,{color:Sh[i].text,fontWeight:"bold",children:Vo[i]})]})]}),I&&Object(kb.jsx)(Tj.d,{children:t("of {nextTierAmount} ZMT to join {nextTier} benefits",{nextTierAmount:L(qo[I]),nextTier:Vo[I]})}),Object(kb.jsx)(Tj.d,{align:"left",margin:"1rem 0 0 0",children:Object(kb.jsx)(ov.a,{control:Object(kb.jsx)(fv,{checked:S,onChange:function(){u(xl())}}),label:Object(kb.jsx)(Tj.f,{children:t("Automatically re-lock ZMT after {duration} days",{duration:45})})})})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_secondary,margin:"0 0 15px 0",children:[Object(kb.jsxs)(Tj.d,{align:"left",children:[t("Lock ZMT")," ",!lv&&Object(kb.jsx)(hv,{children:Object(kb.jsx)(Tj.d,{onClick:function(){!function(e){var t=sessionStorage.getItem("mobileCallback");t?window.open(t):e()}((function(){return d.push("/buy/ZMT")}))},color:Po.a.text_highlight,children:t("Get more ZMT")})})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"15px 0 15px 0",children:[Object(kb.jsxs)(Tj.b,{as:"h2",align:"left",children:["ZMT",Object(kb.jsx)(hv,{children:Object(kb.jsx)(cm,{iconFileName:Lt("ZMT"),size:32})})]}),Object(kb.jsxs)(Tj.d,{align:"left",children:[t("Available balance"),": ",L(y,v.DecimalPlaces)]})]}),Object(kb.jsxs)("form",{onSubmit:w,children:[Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(jv,{children:[Object(kb.jsx)(Wg,{inputRef:o,type:"number",name:"amount",value:C||"",onChange:function(e){var t=e.target.value;u(Lo(t))},onBlur:function(e){var t=e.target.value,n=t.split(".")[1],r=(null===n||void 0===n?void 0:n.length)>v.DecimalPlaces?new k.a(t).toFixed(v.DecimalPlaces):t;u(Lo(r))},autoComplete:"off",fullWidth:!0,disabled:j}),Object(kb.jsx)(mv,{type:"button",variant:"outlined",onClick:function(){o.current.focus(),u(Lo(y))},children:t("Max")})]}),Object(kb.jsx)(pv,{children:x}),Object(kb.jsx)(bv,{children:Object(kb.jsx)(Pm,{showLoading:j,type:"button",fullWidth:!0,onClick:w,fontSize:Tj.h.paragraph,children:t("Lock in ZMT for {duration} days",{duration:45})})})]}),Object(kb.jsx)(bv,{children:Object(kb.jsx)(Tj.f,{align:"left",children:t("Customers who ZipLock before 1 June 2021 (GMT+7) will still receive a 16% bonus rate and have a 90-day lock period.")})})]})]}),Object(kb.jsx)(Ov,{children:Object(kb.jsx)(Zg,{instance:f})})]})},dv=Object(Tb.a)("div",{target:"e1beigfo0"})({name:"y7tzna",styles:"display:flex;flex-direction:column;width:100%;margin-top:10px;margin-bottom:60px;"}),bv=Object(Tb.a)("div",{target:"e1beigfo1"})({name:"hskn9c",styles:"text-align:center;margin:20px 0;"}),pv=Object(Tb.a)(Tj.f,{target:"e1beigfo2"})("margin:5px 0;text-align:left;color:",Po.a.text_error,";"),jv=Object(Tb.a)("div",{target:"e1beigfo3"})({name:"x1sij0",styles:"display:flex;align-items:baseline;"}),mv=Object(Tb.a)(Pm,{target:"e1beigfo4"})("height:32px;font-size:",Tj.h.paragraph," !important;margin-left:1rem !important;"),fv=Object(Tb.a)(sv.a,{target:"e1beigfo5"})(".MuiSwitch-colorSecondary.Mui-checked{color:",Po.a.text_highlight,";}.MuiSwitch-colorSecondary.Mui-checked + .MuiSwitch-track{background-color:",Po.a.text_highlight,";}.MuiSwitch-track{background-color:",Po.a.bg_tertiary,";}"),hv=Object(Tb.a)("div",{target:"e1beigfo6"})({name:"1cue4sz",styles:"float:right;text-align:center;"}),Ov=Object(Tb.a)("div",{target:"e1beigfo7"})({name:"1c84h31",styles:"margin:0 -5vw;"}),xv=function(e,t,n){return Array.from({length:e},(function(r,a){var c=Math.floor(e/2);return!t||t<=c?a:n&&t+c>=n?n-a-1:t+a-c})).sort((function(e,t){return e-t}))},gv=function(e){var t=e.totalItemsLength,n=e.pageSize,r=e.activePage,a=e.customClassName,c=e.showOnlyActivePage,i=e.onPageChange,s=Object(_j.a)().t,o=Db(["pagination","".concat(a,"-pagination")]),l=Math.ceil(t/n),u=Fe.a.Pagination.maxPages,d=u>l?l:u,b=function(e,t){e.preventDefault(),i&&i(t)},p=0===l||r===l-1,j=Object(kb.jsxs)("span",{className:o("next"),children:[Object(kb.jsxs)("a",{className:o("text",{disabled:p}),onClick:function(e){return!p&&b(e,r+1)},role:"button",children:[Object(kb.jsx)(yv,{children:s("Next")}),Object(kb.jsx)(Ij,{name:"caretNext",customClass:o("arrow","next")})]}),Object(kb.jsx)("a",{className:o("text",{disabled:p,last:!0}),onClick:function(e){return!p&&b(e,l-1)},role:"button",title:"Last Page",children:Object(kb.jsx)(Ij,{name:"doubleCaretNext",customClass:o("arrow","next")})})]}),m=0===l||0===r,f=Object(kb.jsxs)("span",{className:o("previous"),children:[Object(kb.jsx)("a",{className:o("text",{disabled:m,first:!0}),onClick:function(e){return!m&&b(e,0)},role:"button",title:"First Page",children:Object(kb.jsx)(Ij,{name:"doubleCaretPrevious",customClass:o("arrow","previous")})}),Object(kb.jsxs)("a",{className:o("text",{disabled:m}),onClick:function(e){return!m&&b(e,r-1)},role:"button",children:[Object(kb.jsx)(Ij,{name:"caretPrevious",customClass:o("arrow","previous")}),Object(kb.jsx)(yv,{children:s("Prev")})]})]}),h=xv(d,r,l).map((function(e){return Object(kb.jsx)("a",{className:o("page",r===e?"active":null),onClick:function(t){return b(t,e)},title:"Page ".concat(e+1),role:"button",children:e+1},e)}));return t?Object(kb.jsxs)("div",{className:o("container"),children:[f,c?Object(kb.jsx)("div",{className:o("pages"),children:Object(kb.jsx)("div",{className:o("page"),children:r+1})}):Object(kb.jsx)("div",{className:o("pages"),children:h}),j]}):null};gv.defaultProps={activePage:0};var vv=gv,yv=Object(Tb.a)("span",{target:"epiludt0"})("display:none;@media screen and (min-width:",Pf.a.tablet,"){display:inline;}"),Cv=function(e,t){var n=Object(r.useState)(0),a=Object(J.a)(n,2),c=a[0];return{activePage:c,setActivePage:a[1],renderingItems:t?e.slice(t*c,t*(c+1)):e}};var wv,Sv=function(e){var t=e.zipCrewStakes,n=Object(_j.a)().t,r=t.slice().reverse(),c=BO(),i=Cv(t.slice().reverse(),20),s=i.activePage,o=i.setActivePage,l=i.renderingItems;return Object(kb.jsx)(kv,{children:Object(kb.jsxs)(sf,{color:Po.a.bg_secondary,margin:"0 0 60px 0",children:[Object(kb.jsxs)(_O,{cols:"31% 34% 34%",children:[Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{children:n("Currency")})}),Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{children:n("Amount")})}),Object(kb.jsx)(KO,{children:Object(kb.jsxs)(Tv,{align:"center",children:[Object(kb.jsx)(Tj.d,{children:n("Date")}),Object(kb.jsx)(Tj.d,{children:n("Release date")})]})}),0===l.length&&Object(kb.jsx)(Tj.d,{margin:"20px 0 0 0",children:n("No history yet")}),l.map((function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(YO,{children:[Object(kb.jsx)(Iv,{children:Object(kb.jsx)(cm,{iconFileName:Lt("ZMT"),size:25})}),Object(kb.jsx)(Av,{children:"ZMT"}),Object(kb.jsx)(Pv,{children:"Zipmex Token"})]}),Object(kb.jsx)(YO,{children:Object(kb.jsx)(Tj.d,{color:Po.a.text_highlight,children:e.amount?L(e.amount,c.DecimalPlaces):"-"})}),Object(kb.jsx)(YO,{children:Object(kb.jsxs)(Ev,{children:[Object(kb.jsxs)(Tj.f,{color:Po.a.text_body,align:"center",children:[Object(mO.b)(new Date(e.stakedAt))," "]}),Object(kb.jsx)(Tj.f,{color:Po.a.text_body,align:"center",children:Object(mO.b)(new Date(e.releasingAt))}),e.status&&Object(kb.jsx)(Tj.f,{color:Po.a.text_highlight,align:"center",children:n(Zo[e.status])})]})})]},"row".concat(t))}))]}),Object(kb.jsx)(vv,{totalItemsLength:r.length,activePage:s,pageSize:20,onPageChange:function(e){return o(e)},customClassName:"ziplock"})]})})},kv=Object(Tb.a)("div",{target:"ew8r1b40"})({name:"y7tzna",styles:"display:flex;flex-direction:column;width:100%;margin-top:10px;margin-bottom:60px;"}),Iv=Object(Tb.a)("div",{target:"ew8r1b41"})({name:"1t9l6fj",styles:"display:block;padding-right:8px;"}),Av=Object(Tb.a)(Tj.d,{target:"ew8r1b42"})({name:"ttjnck",styles:"margin:0 8px 0 0;"}),Pv=Object(Tb.a)(Tj.f,{target:"ew8r1b43"})("display:none;@media (min-width:",Pf.a.tablet,"){display:inline;}"),Tv=Object(Tb.a)("div",{target:"ew8r1b44"})("text-align:center;",Tj.d,":first-of-type{padding-bottom:2px;}",Tj.d," + ",Tj.d,"{border-top:2px solid ",Po.a.text_body_small,";padding-top:2px;}"),Ev=Object(Tb.a)("div",{target:"ew8r1b45"})({name:"1d3wk8h",styles:"padding:4px 0;"});function Rv(){return(Rv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Nv(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Mv(e,t){var n=e.title,a=e.titleId,c=Nv(e,["title","titleId"]);return r.createElement("svg",Rv({width:10,height:20,viewBox:"0 0 10 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,wv||(wv=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.51856 6.69291H5.58676C5.58676 2.20472 3.0993 5.43307 4.46339 6.77165C6.87061 9.05512 10 8.58268 10 12.9134C10 15.4331 8.71615 17.0866 5.90772 17.4803V19.9213L4.06219 20V17.4803C0.611835 17.1654 0.130391 14.7244 0.130391 12.0472H4.06219C4.06219 12.7559 3.98195 14.252 4.22267 14.8031C4.38315 15.2756 5.10532 15.3543 5.42628 14.9606C5.74724 14.4882 5.58676 12.9134 5.42628 12.3622C5.02507 11.1024 1.73521 10.3937 0.531595 8.11024C-0.912738 5.19685 0.692076 2.59843 4.06219 2.20472V0H5.90772V2.20472C8.79639 2.59843 9.67904 4.25197 9.51856 6.69291Z",fill:"currentColor"})))}var Dv,Lv=r.forwardRef(Mv);n.p;function Fv(){return(Fv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Uv(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Bv(e,t){var n=e.title,a=e.titleId,c=Uv(e,["title","titleId"]);return r.createElement("svg",Fv({width:13,height:16,viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,Dv||(Dv=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0.936523H13V13.3073H0V0.936523ZM10 13.7302H11.5263V15.2634H10V13.7302ZM1.47368 13.7302H3V15.2634H1.47368V13.7302ZM5 7.75631L5.73684 7.70344C5.78947 8.17924 6.05263 8.44357 6.52632 8.44357C6.84211 8.44357 7.26316 8.28497 7.26316 7.91491C7.26316 7.49197 6.63158 7.43911 6.31579 7.33337C5.73684 7.22764 5.15789 6.96331 5.15789 6.22318C5.15789 5.58878 5.63158 5.27158 6.21053 5.21871V4.79578H6.84211V5.21871C7.42105 5.32445 7.89474 5.64165 7.89474 6.32891L7.15789 6.38178C7.10526 5.95884 6.89474 5.80024 6.47368 5.80024C6.26316 5.80024 5.84211 5.90598 5.84211 6.17031C5.84211 6.48751 6.42105 6.59324 6.63158 6.64611C7.36842 6.85758 8 7.06904 8 7.91491C8 8.65504 7.47368 8.97224 6.84211 9.0251V9.44804H6.21053V9.0251C5.52632 8.91937 5.10526 8.5493 5 7.75631ZM11.4211 2.62825V11.6156C8.1579 11.6156 4.84211 11.6156 1.57895 11.6156V2.62825C4.84211 2.62825 8.1579 2.62825 11.4211 2.62825ZM10.5263 3.52698H2.47368V10.7168H10.5263V3.52698Z",fill:"currentColor"})))}var zv,Gv,Wv,Zv=r.forwardRef(Bv);n.p;function qv(){return(qv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Vv(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _v(e,t){var n=e.title,a=e.titleId,c=Vv(e,["title","titleId"]);return r.createElement("svg",qv({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,zv||(zv=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9ZM9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16Z",fill:"currentColor"})),Gv||(Gv=r.createElement("rect",{x:8,y:3,width:2,height:7,rx:1,fill:"white"})),Wv||(Wv=r.createElement("rect",{x:8,y:8,width:6,height:2,rx:1,fill:"white"})))}var Hv=r.forwardRef(_v);n.p;var Yv=function(){var e=Object(_j.a)().t,t=Object(s.e)(),n=Object(s.f)((function(e){return e.product.products})),c=Object(s.f)((function(e){return e.zipCrewSlice.interestTransactions})),i=Object(s.f)((function(e){return e.zipCrewSlice.fetching})),o=BO(),l=function(){var e=Object(V.a)(q.a.mark((function e(){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.length>0?(n=c[c.length-1],(r=n?n.date:null)&&t(Ol({dateBefore:r}))):t(Ol({dateBefore:null}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(Object(r.useEffect)((function(){0===c.length&&t(Ol({dateBefore:null}))}),[]),c){var u=c.map((function(e){var t=n.find((function(t){return t.ProductId===e.productId}));return!!t&&{product:t.Product,productName:t.ProductFullName,precision:t.DecimalPlaces,date:e.date,amount:e.amount}})).filter((function(e){return!1!==e}));return Object(kb.jsx)(Kv,{children:Object(kb.jsxs)(sf,{margin:"0 0 60px 0",children:[Object(kb.jsxs)(_O,{cols:"40% 30% 30%;",children:[Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:e("Currency")})}),Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:e("Amount")})}),Object(kb.jsx)(KO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:e("Date")})}),0===u.length&&Object(kb.jsx)(Tj.d,{margin:"20px 0 0 0",children:e("No history yet")}),u.map((function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(YO,{children:[Object(kb.jsx)(Qv,{children:Object(kb.jsx)(cm,{iconFileName:Lt(e.product),size:25})}),Object(kb.jsx)(Jv,{children:e.product}),Object(kb.jsxs)(Xv,{children:["(",e.productName,")"]})]}),Object(kb.jsx)(YO,{children:Object(kb.jsx)(Tj.d,{margin:"0",color:Po.a.text_highlight,children:L(e.amount,o.DecimalPlaces)})}),Object(kb.jsx)(YO,{children:Object(kb.jsx)(Tj.d,{margin:"0",children:Object(mO.b)(new Date(e.date))})})]},"row".concat(t))}))]}),Object(kb.jsx)(ey,{children:Object(kb.jsx)(Pm,{onClick:l,showLoading:i,fullWidth:!0,fontSize:Tj.h.paragraph,children:e("Load more")})})]})})}return Object(kb.jsx)($v,{})},Kv=Object(Tb.a)("div",{target:"e155soh00"})({name:"y7tzna",styles:"display:flex;flex-direction:column;width:100%;margin-top:10px;margin-bottom:60px;"}),Qv=Object(Tb.a)("div",{target:"e155soh01"})({name:"1t9l6fj",styles:"display:block;padding-right:8px;"}),Jv=Object(Tb.a)(Tj.d,{target:"e155soh02"})({name:"ttjnck",styles:"margin:0 8px 0 0;"}),Xv=Object(Tb.a)(Tj.f,{target:"e155soh03"})("display:none;@media (min-width:",Pf.a.tablet,"){display:inline;}"),$v=Object(Tb.a)(Vf,{target:"e155soh04"})({name:"13o6z6d",styles:"margin:0 auto;"}),ey=Object(Tb.a)("div",{target:"e155soh05"})({name:"gngv8k",styles:"margin:30px 0;display:flex;justify-content:space-around;"});var ty=new URLSearchParams(window.location.search).get("contentOnly"),ny=function(){var e=Object(_j.a)().t,t=Object(r.useState)(0),n=Object(J.a)(t,2),a=n[0],c=n[1],i=Object(s.f)((function(e){return e.zipCrewSlice.stakes})),o=[{text:e("Lock"),enabled:!0,icon:function(){return Object(kb.jsx)(cy,{})},render:function(){return Object(kb.jsx)(uv,{setCurentPane:c})},onSelect:function(){c(0)}},{text:e("History"),enabled:!0,icon:function(){return Object(kb.jsx)(iy,{})},render:function(){return Object(kb.jsx)(Sv,{zipCrewStakes:i})},onSelect:function(){c(1)}},{text:e("Earnings"),enabled:!0,icon:function(){return Object(kb.jsx)(ay,{})},render:function(){return Object(kb.jsx)(Yv,{})},onSelect:function(){c(2)}}];return Object(kb.jsxs)("div",{children:[!ty&&Object(kb.jsx)(Tg,{to:"/wallets"}),Object(kb.jsx)(eO.a,{children:e("ZipLock")}),Object(kb.jsx)(ry,{panes:o,currentPane:a})]})},ry=Object(Tb.a)(Lg,{target:"ey5brpg0"})({name:"m450it",styles:"width:100%;max-width:600px;margin:30px auto 40px;"}),ay=Object(Tb.a)(Lv,{target:"ey5brpg1"})({name:"dq3epe",styles:"color:#fff;margin-top:8px;width:22px;height:22px;"}),cy=Object(Tb.a)(Zv,{target:"ey5brpg2"})({name:"zdn0co",styles:"color:#fff;margin-top:10px;width:22px;height:22px;"}),iy=Object(Tb.a)(Hv,{target:"ey5brpg3"})({name:"dq3epe",styles:"color:#fff;margin-top:8px;width:22px;height:22px;"}),sy=Ab((function(e){var t=Object(s.f)(At),n=t.status&&t.status.isSubscribed||!1;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)($h,{}),Object(kb.jsx)(tO.a,{children:Object(kb.jsxs)(l.d,{children:[Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets"),component:Tx}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets/deposit"),component:Tx}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets/deposit/:productId"),component:Tx}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets/withdraw"),component:Tx}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets/withdraw/:productId"),component:Tx}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets/zipup"),render:function(){return Object(kb.jsx)(Ng,{zipUpSignedUp:n})}}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets/ziplock"),render:function(){return Object(kb.jsx)(ny,{})}}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/wallets/zipcrew"),render:function(){return Object(kb.jsx)(ny,{})}})]})}),Object(kb.jsx)(nO.a,{}),Object(kb.jsx)(DO,{}),Object(kb.jsx)(UO,{})]})})),oy=function(e,t){var n=e.userInfo;return Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.d,{color:Po.a.text_highlight,children:t.t("Email")}),Object(kb.jsxs)(Tj.d,{children:[n.email," "]})]})};oy.contextTypes={t:O.a.func.isRequired};var ly=oy,uy=(n(1036),Db("retail-profile-form")),dy=function(e){var t=!e.useEmailAsUsername;return Object(kb.jsx)("div",{className:uy(),children:Object(kb.jsx)("div",{className:uy("container"),children:Object(kb.jsx)(ly,{showUsernameField:t,userInfo:{email:e.formObj.email,username:e.formObj.username}})})})},by=Object(Pb.a)({form:"userProfileForm",enableReinitialize:!0,onSubmit:function(e,t){return t(function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c,i,s,o,l;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),a=r.form,c=r.user.userInfo,i=a.userProfileForm.values,s=parseInt(c.UserId,10),o=[{Value:i.fname,Key:"fname"},{Value:i.lname,Key:"lname"},{Value:i.email,Key:"email"}],e.next=7,t(ul(s,i.username,o,!1));case 7:if((l=e.sent).result){e.next=11;break}return t(sr({id:"SET_USER_CONFIG_ERROR",text:Xr(l),type:"warning"})),e.abrupt("return");case 11:t(ll(o)),t(sr({id:"SET_USER_CONFIG_SUCCESS",text:Ae.c.extractT("Your profile has been successfully updated"),type:"success"}));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}})(dy),py={goToStep:function(e){return function(t){return t(Object(kn.a)("userProfileForm","step",e))}}},jy=Object(s.c)((function(e){var t=e.form,n=e.user.userInfo,r=Et(e);return{initialValues:{username:n.UserName,email:n.Email},formObj:t.userProfileForm?t.userProfileForm.values:{},editIsDisabled:r,useEmailAsUsername:true}}),py)(by),my=function(e,t){return Object(kb.jsxs)(sf,{margin:"20px 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 10px 0",children:t.t("Profile")}),Object(kb.jsx)(jy,{})]})};my.contextTypes={t:O.a.func.isRequired};var fy=my,hy=Object(C.a)(),Oy=function(e){return"/accounts".concat(e)},xy=function(e){return"/".concat(hy).concat(e)},gy={home:Oy("/"),resetPassword:Oy("/reset-password"),resetPasswordToken:Oy("/reset-password/:token"),signIn:Oy("/sign-in"),signUp:Oy("/sign-up"),mfa:Oy("/mfa"),confirmEmail:Oy("/confirm-email/:token"),kyc:Oy("/kyc"),mobileVerification:Oy("/kyc/mobile-verification"),uploadDocument:Oy("/kyc/upload-document"),personalInfomation:Oy("/kyc/personal-information"),suitabilitySurvey:Oy("/kyc/suitability-survey"),wrongHost:Oy("/wrong-host"),trade:xy("/trade"),settingsUser:xy("/settings/user"),settingsVerification:xy("/settings/verification")},vy=function(){return window.location.assign(gy.resetPassword)},yy=function(e,t){return Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:t.t("Password")}),Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:t.t("To change your password, we will send you an email that will allow you to access the Reset Password feature. Click the button below to receive the email.")}),Object(kb.jsx)(Pm,{type:"button",size:"small",variant:"outlined",onClick:vy,children:t.t("Reset Password")})]})})]})};yy.contextTypes={t:O.a.func.isRequired};var Cy=yy,wy=Object(xt.a)("enableTwoFactorAuth"),Sy=function(e){return{initialValues:{use2FA:!!e.user.zmUserInfo.Use2FA},use2FA:wy(e,"use2FA")}},ky=function(e){return{enable2FA:function(){var t=Object(V.a)(q.a.mark((function t(){return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(function(){var e=Object(V.a)(q.a.mark((function e(t){var n;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(x.m)();case 3:n=e.sent,t({type:$o,payload:n}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),sr({id:"GET_QR_CODE_ERROR",text:Ae.c.extractT("Unable to get QR code"),type:"success"});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}());case 2:e(Object(kn.a)("enableTwoFactorAuth","use2FA",!0)),e(Pn(Ln));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),disable2FA:function(){e(Object(kn.a)("enableTwoFactorAuth","use2FA",!1)),e(Pn(Fn))},getGoogle2FARecoveryKey:function(){e(Pn(zn))}}},Iy=function(e){var t=Object(Pb.a)({form:"enableTwoFactorAuth",enableReinitialize:!0})(e);return Object(s.c)(Sy,ky)(t)},Ay=(n(1037),function(e,t){var n=e.input,r=e.onClick,a=e.customClass,c=n.value,i={on:c},s=c?t.t("On"):t.t("Off"),o=Db("ap-switch",a);return Object(kb.jsxs)("div",{className:o("switch",i),onClick:function(){r(c),n.onChange(!c)},children:[Object(kb.jsx)("div",{className:o("toggle",i)}),Object(kb.jsx)("div",{className:o("text",i),children:s})]})});Ay.contextTypes={t:O.a.func.isRequired};var Py=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:Ay},e))},Ty=n(1038),Ey=n.n(Ty),Ry=(n(1044),function(e){var t=e.value,n=e.customClass,r=e.size,a=Db("qr-code",n);return Object(kb.jsx)(Ey.a,{value:t,size:r,className:a()})});Ry.defaultProps={size:280,customClass:""},Ry.protoTypes={size:O.a.number,customClass:O.a.string,value:O.a.string.isRequired};var Ny=Ry,My=(n(1045),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).handleChange=function(e,t){var n=e.target.value,a=r.props.maxLength,c=r.state.values.slice();n.length<=a?(c[t]=n,r.setNewValues(c)):n.length>a&&t<r.props.numberOfInputs-1&&(c[t+1]=n.substr(n.length-1,1),r.setNewValues(c))},r.handleKeyUp=function(e,t){if(8===e.keyCode&&0===e.target.value.length)for(var n=e.target.previousElementSibling;n&&null!==n;){if("input"===n.tagName.toLowerCase()){n.focus();break}n=n.previousElementSibling}else if(e.target.value.length===r.props.maxLength)for(var a=e.target.nextElementSibling;a&&null!==a;){if("input"===a.tagName.toLowerCase()){a.focus();break}a=a.nextElementSibling}},r.state={values:Array(e.numberOfInputs).fill("")},r}return Object(d.a)(n,[{key:"setNewValues",value:function(e){var t=this;this.setState({values:e},(function(){t.props.input.onChange(t.state.values.join(""))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.info,r=t.meta,a=t.label,c=t.customClass,i=Db("ap-auto-tab-input",c),s=this.state.values.map((function(t,n){return Object(kb.jsx)("input",{className:i(),onKeyUp:function(t){return e.handleKeyUp(t,n)},onChange:function(t){return e.handleChange(t,n)},value:e.state.values[n]},n)}));return Object(kb.jsxs)("div",{className:"form-group",children:["hidden"!==this.props.type&&a&&Object(kb.jsx)("label",{className:i("label"),children:a}),s,n&&Object(kb.jsx)("small",{className:"form-text-muted",children:n}),r.touched&&r.error&&Object(kb.jsx)("span",{className:"".concat(i("error")),children:r.error})]})}}]),n}(a.a.Component)),Dy=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:My},e))};Dy.defaultProps={maxLength:1};var Ly=Dy,Fy=(n(611),Db("enable-2fa-modal")),Uy=function(e,t){var n=e.GoogleQRCode,r=e.handleSubmit,a=e.userName,c=Fe.a.global.siteName,i="otpauth://totp/".concat(a,"?secret=").concat(n,"&issuer=").concat(encodeURI(c));return Object(kb.jsx)("form",{onSubmit:r,children:Object(kb.jsxs)("div",{className:Fy(),children:[Object(kb.jsxs)("div",{children:[Object(kb.jsxs)("ol",{className:Fy("text-container"),children:[Object(kb.jsx)("li",{className:Fy("text-item"),children:t.t("Download a Two-Factor Authentication app to your phone such as Authy or Google Authenticator")}),Object(kb.jsx)("li",{className:Fy("text-item"),children:t.t("You may wish to take a photograph of the QR code as an emergency backup.")}),Object(kb.jsx)("li",{className:Fy("text-item"),children:t.t("Use the app to scan the QR code.")}),Object(kb.jsx)("li",{className:Fy("text-item"),children:t.t("Type in code from your phone.")})]}),Object(kb.jsx)(Ly,{name:"code",type:"input",numberOfInputs:6,validate:[fO]})]}),Object(kb.jsx)("div",{className:Fy("qr-code"),children:Object(kb.jsx)(Ny,{value:i})})]})})};Uy.defaultProps={handleSubmit:function(){},submitting:!1},Uy.contextTypes={t:O.a.func.isRequired};var By=Uy,zy=function(e,t){var n=e.GoogleQRCode,r=e.handleSubmit,a=e.submitting,c=e.isOpen,i=e.close,s=e.changeFieldValue,o=e.userName;return Object(kb.jsx)(Aj,{isOpen:c,title:t.t("Enable Two-Factor Authentication"),onCancel:function(){i(),s("enableTwoFactorAuth","use2FA",!1)},close:i,children:Object(kb.jsx)(By,{userName:o,GoogleQRCode:n,handleSubmit:r,submitting:a})})};zy.defaultProps={handleSubmit:function(){},submitting:!1},zy.contextTypes={t:O.a.func.isRequired};var Gy=zy,Wy={changeFieldValue:kn.a},Zy=Object(Pb.a)({form:"enable2FAModal",onSubmit:function(e,t,n){return t((r=e.code,function(){var e=Object(V.a)(q.a.mark((function e(t,n){var a,c,i,s,o,l;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n().user,c=a.userInfo,i=a.qrCode,s=a.zmUserInfo,o=!1,l=window.localStorage.getItem("zmToken"),e.prev=3,e.next=6,Object(x.f)({code:r,secret:i,token:l});case 6:o=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:o?(t(rl(Object(Y.a)(Object(Y.a)({},c),{},{Use2FA:!0}))),t(Object(Ao.j)(Object(Y.a)(Object(Y.a)({},s),{},{Use2FA:!0}))),t(Tn(Ln)),t({type:el}),t(sr({id:"ENABLE_2FA_SUCCESS",text:Ae.c.extractT("Two-Factor Authenticated is enabled"),type:"success"}))):t(sr({id:"ENABLE_2FA_ERROR",text:Ae.c.extractT("Code Rejected"),type:"warning"}));case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n){return e.apply(this,arguments)}}()));var r},onChange:function(e,t,n){e.code&&6===e.code.length&&n.submit()}})(Gy),qy=Object(s.c)((function(e){return{GoogleQRCode:e.user.qrCode,userName:e.user.userInfo.UserName}}),Wy)(Zy),Vy=Fb({name:Ln})(qy),_y=(n(1046),Db("disable-2fa-modal")),Hy=function(e,t){var n=e.handleSubmit;return Object(kb.jsxs)("form",{onSubmit:n,className:_y(),children:[Object(kb.jsx)("div",{className:_y("text-item"),children:t.t("Do you want to turn off Two-Factor Authentication for this account?")}),Object(kb.jsx)(Ly,{label:t.t("Type Authentication Code Here"),name:"code",type:"input",numberOfInputs:6,validate:[fO]})]})};Hy.defaultProps={handleSubmit:function(){},submitting:!1},Hy.contextTypes={t:O.a.func.isRequired};var Yy=Hy,Ky=function(e,t){var n=e.handleSubmit,r=e.submitting,a=e.isOpen,c=e.close,i=e.changeFieldValue;return Object(kb.jsx)(Aj,{isOpen:a,title:t.t("Disable Two-Factor Authentication"),onCancel:function(){c(),i("enableTwoFactorAuth","use2FA",!0)},close:c,children:Object(kb.jsx)(Yy,{handleSubmit:n,submitting:r})})};Ky.defaultProps={handleSubmit:function(){},submitting:!1},Ky.contextTypes={t:O.a.func.isRequired};var Qy=Ky,Jy={changeFieldValue:kn.a},Xy=Object(Pb.a)({form:"disable2FAModal",onSubmit:function(e,t){return t((n=e.code,function(){var e=Object(V.a)(q.a.mark((function e(t,r){var a,c,i,s,o;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r().user,c=a.userInfo,i=a.zmUserInfo,s=!1,o=window.localStorage.getItem("zmToken"),e.prev=3,e.next=6,Object(x.e)({code:n,token:o});case 6:s=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:s?(t(rl(Object(Y.a)(Object(Y.a)({},c),{},{Use2FA:!1}))),t(Object(Ao.j)(Object(Y.a)(Object(Y.a)({},i),{},{Use2FA:!1}))),t(Tn(Fn)),t(sr({id:"DISABLE_2FA_SUCCESS",text:Ae.c.extractT("Two Factor Authenticated is disabled"),type:"success"}))):t(sr({id:"DISABLE_2FA_ERROR",text:Ae.c.extractT("Code Rejected"),type:"warning"}));case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n){return e.apply(this,arguments)}}()));var n},onChange:function(e,t,n){e.code&&6===e.code.length&&n.submit()}})(Qy),$y=Object(s.c)(null,Jy)(Xy),eC=Fb({name:Fn})($y),tC=function(e){var t=document.createElement("textarea");t.innerText=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()},nC=(n(1047),Db("recovery-2fa-modal")),rC=function(e,t){var n=e.handleSubmit,r=e.isOpen,a=e.close,c=e.onCancel,i=e.recoveryForm,s=e.showSnack;return Object(kb.jsx)(Aj,{isOpen:r,title:t.t("Get Google 2FA Recovery Code"),close:a,onCancel:function(){c(),a()},children:Object(kb.jsxs)("form",{onSubmit:n,className:nC(),children:[Object(kb.jsx)("div",{className:nC("text-item"),children:t.t("RECOVERY")}),Object(kb.jsx)(Ly,{label:t.t("Type Authentication Code Here"),name:"code",type:"input",numberOfInputs:6,validate:[fO]}),i.values.recoveryKey&&Object(kb.jsxs)("div",{className:nC("recovery-code-container"),onClick:function(){s({id:"RECEIVE_RECOVERY_CODE_COPY",text:t.t("The Recovery Code has been copied to the clipboard.")}),tC(i.values.recoveryKey)},children:[Object(kb.jsx)(Nj,{className:nC("copy-recovery-code"),name:"recoveryKey",label:"Copy Recovery Code to the clipboard"}),i.values.recoveryKey,Object(kb.jsx)(Ij,{name:"copy",customClass:nC("copy-icon")})]})]})})};rC.defaultProps={handleSubmit:function(){},submitting:!1},rC.contextTypes={t:O.a.func.isRequired};var aC=rC,cC=Object(Pb.a)({destroyOnUnmount:!0,form:"google2FARecoveryKeyModal",onSubmit:function(e,t){return t((n=e.code,function(){var e=Object(V.a)(q.a.mark((function e(t){var r,a;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce.connection.RPCPromise("GetGoogle2FARecoveryKey",{Code:n});case 2:r=e.sent,(a=JSON.parse(r.o)).Authenticated?t(Object(kn.a)("google2FARecoveryKeyModal","recoveryKey",a.RecoveryKey)):t(sr({id:"RECOVERY_ERROR",text:a.errormsg,type:"warning"}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));var n},onChange:function(e,t,n){e.code&&6===e.code.length&&n.submit()}})(aC),iC=Object(s.c)((function(e){return{recoveryForm:e.form.google2FARecoveryKeyModal||{values:{}},initialValues:{recoveryKey:""}}}),(function(e){return{showSnack:function(t){return e(sr(t))},onCancel:function(){return e(Object(kn.c)("google2FARecoveryKeyModal"))}}}))(cC),sC=Fb({name:zn})(iC),oC=function(e,t){return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(Tj.d,{margin:"0 0 15px 0",children:[t.t("Two-Factor Authentication (2FA) adds another layer of protection to your account by requiring an additional passcode during the logging in process.")," ",t.t("You will need to download Google Authenticator on your smartphone as part of the process to enable 2FA.")]}),Object(kb.jsx)(Py,{name:"use2FA",onClick:function(t){t?e.disable2FA():e.enable2FA()}}),Object(kb.jsx)(Vy,{}),Object(kb.jsx)(eC,{}),Object(kb.jsx)(sC,{})]})};oC.contextTypes={t:O.a.func.isRequired};var lC=Iy(oC),uC=function(e,t){return Object(kb.jsxs)(sf,{children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:t.t("Two-Factor Authentication")}),Object(kb.jsx)(lC,{})]})};uC.contextTypes={t:O.a.func.isRequired};var dC=uC,bC=(n(404),n(1048),Db("settings-page")),pC=Db("user-settings-page"),jC=Ab((function(){return Object(kb.jsx)("div",{className:"".concat(bC("content")," ").concat(pC("")),children:Object(kb.jsxs)("div",{className:pC("container"),children:[Object(kb.jsxs)("div",{className:pC("row"),children:[Object(kb.jsx)(fy,{}),Object(kb.jsx)(Cy,{})]}),Object(kb.jsx)("div",{className:pC("row","sm"),children:Object(kb.jsx)(dC,{})})]})})}));var mC=0,fC=1,hC=function(e,t){var n=e.openReportsSidePane;return Object(kb.jsxs)(xC,{children:[Object(kb.jsx)(gC,{size:"small",type:"submit",variant:"outlined",onClick:function(){return n({index:mC})},children:"Single report"}),Object(kb.jsx)(gC,{type:"submit",size:"small",variant:"outlined",onClick:function(){return n({index:fC})},children:"Cyclical report"})]})};hC.contextTypes={t:O.a.func.isRequired};var OC=hC,xC=Object(Tb.a)("div",{target:"e2fffbs0"})({name:"k008qs",styles:"display:flex;"}),gC=Object(Tb.a)(Pm,{target:"e2fffbs1"})({name:"jv0vcw",styles:"margin-right:20px !important;"}),vC={openReportsSidePane:function(e){return vc(mc,e)}},yC=Object(s.c)(null,vC)(OC),CC=(n(1049),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).getClasses=function(){return Db(["pagination","".concat(e.props.customClass,"-pagination")])},e.goToPage=function(t,n){t.preventDefault(),e.props.setActivePage&&e.props.setActivePage(n)},e.renderNextButtons=function(t){var n=e.getClasses(),r=0===e.props.totalPages||t===e.props.totalPages-1;return Object(kb.jsxs)("span",{className:n("next"),children:[Object(kb.jsxs)("a",{className:n("text",{disabled:r}),onClick:function(n){return!r&&e.goToPage(n,t+1)},children:[e.context.t("Next"),Object(kb.jsx)(Ij,{name:"caretNext",customClass:n("arrow","next")})]}),Object(kb.jsx)("a",{className:n("text",{disabled:r}),onClick:function(t){return!r&&e.goToPage(t,e.props.totalPages-1)},children:Object(kb.jsx)(Ij,{name:"doubleCaretNext",customClass:n("arrow","next")})})]})},e.renderPreviousButtons=function(t){var n=e.getClasses(),r=0===e.props.totalPages||0===t;return Object(kb.jsxs)("span",{className:n("previous"),children:[Object(kb.jsx)("a",{className:n("text",{disabled:r}),onClick:function(t){return!r&&e.goToPage(t,0)},children:Object(kb.jsx)(Ij,{name:"doubleCaretPrevious",customClass:n("arrow","previous")})}),Object(kb.jsxs)("a",{className:n("text",{disabled:r}),onClick:function(n){return!r&&e.goToPage(n,t-1)},children:[Object(kb.jsx)(Ij,{name:"caretPrevious",customClass:n("arrow","previous")}),e.context.t("Prev")]})]})},e}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.content,n=e.activePage,r=e.setActivePage,a=t(n);n>0&&0===a.length&&r(n-1)}},{key:"render",value:function(){var e=this,t=this.getClasses(),n=this.props,r=n.activePage,a=n.totalPages,c=n.maxPages,i=n.showOnlyActivePage,s=xv(c>a?a:c,r,a).map((function(n){return Object(kb.jsx)("a",{className:t("page",r===n?"active":null),onClick:function(t){return e.goToPage(t,n)},children:n+1},n)})),o=this.props.content(r);return Object(kb.jsxs)("div",{className:this.props.containerClassName+" "+this.props.className,children:[Object(kb.jsx)("div",{className:t("content"),children:o}),Object(kb.jsxs)("div",{className:t("container"),children:[this.renderPreviousButtons(r),i?Object(kb.jsx)("div",{className:t("pages"),children:Object(kb.jsx)("div",{className:t("page"),children:r+1})}):Object(kb.jsx)("div",{className:t("pages"),children:s}),this.renderNextButtons(r)]})]})}}]),n}(r.Component));CC.contextTypes={t:O.a.func.isRequired},CC.defaultProps={activePage:0,containerClassName:"",customClass:""};var wC=Object(s.c)((function(e,t){return{activePage:e.paginationMemory[t.componentName],maxPages:Fe.a.Pagination.maxPages}}),(function(e,t){return{setActivePage:function(n){return e((r={componentName:t.componentName,activePage:n},{type:sd,payload:r}));var r}}}))(CC),SC=function(e,t){var n=e.title,a=e.columns,c=e.baseClass,i=e.rows,s=e.empty,o=e.onRowClicked,l=e.fetching,u=e.headerOutside,d=e.pageSize,b=e.minRow,p=e.alwaysShowPagination,j=e.rowProps,m=e.selectedRow,f=e.componentName,h=e.usePagination,O=e.showOnlyActivePage,x=Db("flex-table"),g=c||function(){return""},v=a.map((function(e,t){return Object(kb.jsx)("div",{"data-test":e.dataTest,className:"".concat(x("column")," ").concat(g("header-column",e.classModifier)),children:Object(kb.jsx)("div",{className:"".concat(x("header-cell",u?"absolute":"fixed")," ").concat(g("fixed",e.classModifier)),children:e.header})},t)})),y=function(){return Object(kb.jsx)("div",{className:"".concat(x("row","empty")," ").concat(g("row-empty")),children:Object(kb.jsxs)("div",{className:"".concat(x("column","empty")," ").concat(g("column-empty")),children:[Object(kb.jsx)(Ij,{name:"stop",customClass:"".concat(x("empty-icon")," ").concat(g("empty-icon"))}),s]})})},C=function(e){return e&&e.length&&void 0===e[0]?e.map((function(e,t){return Object(kb.jsx)("div",{className:"".concat(x("row","no-hover")," ").concat(g("row")),children:0===t&&y()},t)})):e.map((function(e,t){return Object(r.createElement)("div",Object(Y.a)(Object(Y.a)({},e&&j(e)),{},{onClick:function(){return e&&o&&o(e)},key:t,className:"".concat(x("row",!e&&"no-hover")," ").concat(g("row",m.key&&m.value===e[m.key]?"selected":""))}),e&&a.map((function(t,n){return Object(kb.jsx)("div",{style:t.style,className:"".concat(x("column")," ").concat(g("column",t.classModifier)),children:t.cell?t.cell(e):e[t.accessor]},t.accessor||n)})))}))},w=function(e,r){return Object(kb.jsx)("div",{className:x("wide-row-container"),children:Object(kb.jsxs)("div",{className:"".concat(x()," ").concat(g()," ").concat(r),children:[n&&Object(kb.jsx)("div",{className:"".concat(x("title")," ").concat(g("table-title")),children:n}),Object(kb.jsx)("div",{className:"".concat(x("header","background")," ").concat(g("table-header","background"))}),u&&Object(kb.jsx)("div",{className:"".concat(x("header")," ").concat(g("table-header",c.classModifier)),children:v}),Object(kb.jsxs)("div",{className:"".concat(x("body")," ").concat(g("body")),children:[!u&&Object(kb.jsx)("div",{className:"".concat(x("header","inside")," ").concat(g("table-header",c.classModifier)),children:v}),l?Object(kb.jsx)(Vf,{text:t.t("Loading..."),customClass:c}):0===e.length?y():C(e)]})]})})},S=function(e,t){var n=t-e.length;return b&&t&&n>0?[].concat(Object(Q.a)(e),Object(Q.a)(new Array(Math.min(b||n,n)))):e},k=Math.ceil(i.length/d||i.length),I=g("body","single-page");return h&&(p||d&&k>1)?function(e,t){var n=g("body","multipage");return Object(kb.jsx)(wC,{totalPages:e,containerClassName:x("pagination-container"),content:function(e){var r=t.slice(d*e,d*(e+1));return w(S(r,b||d),n)},componentName:f,customClass:c(),showOnlyActivePage:O})}(k,i):w(S(i,b||d),I)};SC.defaultProps={headerOutside:!0,rowProps:function(){},selectedRow:{key:"",value:""},usePagination:!0},SC.contextTypes={t:O.a.func.isRequired};var kC=SC,IC=(n(1050),Db("schedule-report-list")),AC=function(e,t){var n=e.reports,r=e.isLoading,a=e.cancelReport,c=[{header:t.t("Report Summary"),classModifier:"type",cell:function(e){return e.reportFlavor}},{header:t.t("Frequency"),classModifier:"frequency",cell:function(e){return e.ReportFrequency}},{header:t.t("Created"),classModifier:"created",cell:function(e){return Object(mO.c)(e.createTime)}},{header:t.t("Actions"),classModifier:"actions",cell:function(e){return Object(kb.jsxs)(Hb,{type:"submit",onClick:function(){return a(e.RequestId)},customClass:IC("action-btn"),children:[Object(kb.jsx)(Ij,{name:"cross",customClass:IC("icon")}),t.t("Cancel")]})}}];return Object(kb.jsx)("div",{className:IC("container"),children:Object(kb.jsx)(kC,{columns:c,baseClass:IC,rows:n,empty:t.t("No Report Is Available"),fetching:r,headerOutside:!0})})};AC.contextTypes={t:O.a.func.isRequired};var PC=AC,TC=Object(tt.createSelector)((function(e){return e.report.reports}),(function(e){return e.filter((function(e){return"onDemand"!==e.ReportFrequency}))})),EC=Object(tt.createSelector)(TC,(function(e){return e.filter((function(e){return"UserCancelled"!==e.RequestStatus&&"SysRetired"!==e.RequestStatus}))})),RC={cancelReport:function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r().user.userInfo.UserId,t.next=3,Ce.connection.CancelUserReport({UserReportId:e});case 3:(c=t.sent).result?n(Ml(a)):n(sr({id:"CANCEL_REPORT_ERROR",text:Xr(c),type:"warning"}));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}},NC=Object(s.c)((function(e){return{reports:EC(e),isLoading:e.report.isLoading}}),RC)(PC),MC=(n(1051),function(e){var t=e.tooltipText,n=e.iconName,r=e.customClass,c=e.action,i=e.showLabel,s=e.tooltipPosition,o=e.label,l=e.isDisabled,u=Db("icon-button",r);return Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)("div",{tooltip:t||null,"tooltip-position":s,onClick:c,className:"".concat(u(null,l?"disabled":"")),children:[Object(kb.jsx)(Ij,{name:n,customClass:u("icon")}),i&&Object(kb.jsx)("span",{className:u("label"),children:o||n})]})})});MC.defaultProps={showLabel:!0,tooltipPosition:"top"},MC.protoTypes={iconName:O.a.string.isRequired,parentClass:O.a.string.isRequired,tooltipPosition:O.a.string,tooltipText:O.a.string,action:O.a.func,showLabel:O.a.bool,label:O.a.string};var DC=MC,LC=n(405),FC=n.n(LC),UC=(n(1052),Db("download-report")),BC=function(e,t){var n=e.reportWriterResults,r=e.isLoading,a=e.getUserReportWriterResults,c=e.downloadDocument,i=navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod/i),s=[{header:t.t("Report Summary"),classModifier:"type",cell:function(e){return function(e){var t=e.reportDescriptiveHeader.split("|"),n=Object(mO.b)(FC()(t[2],1)),r=Object(mO.b)(FC()(t[3],1));return"".concat(t[0]," ").concat(t[1]," from ").concat(n," to ").concat(r)}(e)}},{header:t.t("Created"),classModifier:"created",cell:function(e){return Object(mO.c)(e.reportExecutionStartTime)}},!i&&{header:t.t("Actions"),classModifier:"actions",cell:function(e){return Object(kb.jsxs)(Hb,{type:"submit",customClass:UC("action-btn"),onClick:function(){return c(e.descriptorId)},children:[Object(kb.jsx)(Ij,{name:"download2",customClass:UC("action-btn-icon")}),t.t("Download")]})}}];return Object(kb.jsxs)("div",{className:UC("container"),children:[Object(kb.jsx)(DC,{customClass:UC("refresh-reports"),iconName:"refresh",action:a,showLabel:!1}),Object(kb.jsx)(kC,{columns:s,baseClass:UC,rows:n,empty:t.t("No Report Is Available"),fetching:r,headerOutside:!0})]})};BC.contextTypes={t:O.a.func.isRequired};var zC=BC,GC=function(e,t){var n=e.numSlices,r=[],a=0,c=e.numSlices;function i(e){"Success"===e.statusCode&&(r.push(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:512,r=atob(e),a=[],c=0;c<r.length;c+=n){for(var i=r.slice(c,c+n),s=new Array(i.length),o=0;o<i.length;o++)s[o]=i.charCodeAt(o);var l=new Uint8Array(s);a.push(l)}return new Blob(a,{type:t})}(e.base64Bytes)),--c||function(){var e=document.createElement("a");return document.body.appendChild(e),e.setAttribute("style","display: none"),function(t,n){var r=new Blob(t,{type:"text/csv"}),a=window.URL.createObjectURL(r);return(window.navigator.appVersion.toString().indexOf(".NET")>0||window.navigator.appVersion.toString().indexOf("Edge")>0)&&window.navigator.msSaveBlob?window.navigator.msSaveBlob(r,"".concat(n,".csv")):(e.href=a,e.download="".concat(n,".csv"),e.click(),window.URL.revokeObjectURL(a))}}()(r,t))}for(var s=0;s<n;s++)Ce.connection.DownloadDocumentSlice({descriptorId:e.descriptorId,sliceNum:a++}).then((function(e){i(e)}))},WC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"report";Ce.connection.DownloadDocument({descriptorId:e}).then((function(e){GC(e,t)}))},ZC={getUserReportWriterResults:Fl},qC=Object(s.c)((function(e){var t=e.report;return{reports:t.reports,reportWriterResults:t.reportWriterResults,isLoading:t.isLoading,downloadDocument:WC}}),ZC)(zC),VC=function(e,t){return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"20px 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:t.t("Activity Reporting")}),Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:t.t("All of your activity on the exchange is available for you to download as a spreadsheet. Simply choose the type of activity and the timeframe to generate your report.")}),Object(kb.jsx)(yC,{})]}),Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:t.t("Cyclical Reports")}),Object(kb.jsx)(NC,{})]}),Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:t.t("Reports Available to Download")}),Object(kb.jsx)(qC,{})]})]})};VC.contextTypes={t:O.a.func.isRequired};var _C=Ab(VC),HC=(n(1053),O.a.string,O.a.arrayOf(O.a.shape({level:O.a.number,button:O.a.string,label:O.a.string,description:O.a.shape({benefits:O.a.array,requirements:O.a.string}),verifiedMessage:O.a.string,underReviewMessage:O.a.string,form:O.a.arrayOf(O.a.shape({label:O.a.string,type:O.a.string}))})),n(1054),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.userId,r=t.userName,a=t.getUserConfig;!e.userId&&!e.userName&&n&&r&&a(n,r)}},{key:"render",value:function(){var e=this.props,t=e.kycConfig,n=e.verificationLevel,r=e.levelIncreaseStatus,a=e.LevelsComponent,c=e.highlightStyle,i=wt()(t,"levels",[]),s={highlightStyle:c,verificationLevel:n,levelIncreaseStatus:r,levels:i,level1:i[0],level2:i[1],level3:i[2],level4:i[3]};return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"20px 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:this.context.t("Verification")}),Object(kb.jsx)(Tj.d,{children:this.context.t("For your security, some of our services require you to provide basic or additional levels of verification.")}),Object(kb.jsx)(Tj.d,{children:this.context.t("To verify your account or to check what your current verification level is, see below.")})]}),Object(kb.jsx)(a,Object(Y.a)({},s))]})}}]),n}(a.a.Component));HC.contextTypes={t:O.a.func.isRequired};var YC=HC,KC=Object(s.c)((function(e){var t=Rt(e),n=t.verificationLevel,r=t.levelIncreaseStatus,a=t.kycConfig;return{verificationLevel:n,levelIncreaseStatus:r,kycConfig:a,highlightStyle:a.highlightStyle,userId:e.user.userInfo.UserId,userName:e.user.userInfo.UserName}}),(function(e){return{getUserConfig:function(t,n){return e(ol(t,n))}}}))(YC),QC=(n(1055),Db("kyc-level")),JC=function(){switch(df()){case lf:return Ae.c.extractT("KYC is a critical part of our process - it guarantees the safety of your funds and best in class experience. Currently we are seeing an unprecedented number of applications, resulting in KYC taking longer than expected. \n\nWe expect your KYC to be completed within approximately 2 weeks. \nWe apologise for the delay and thank you for choosing Zipmex.");default:return Ae.c.extractT("We'll send you an email as soon as we are done and you can start buying and selling crypto. It can take up to 48 hours to approve.")}},XC=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.verified,r=t.underReview,a=t.canIncrease,c=t.openPane,i=t.config,s=i.label,o=i.button,l=i.verifiedMessage,u=i.description,d=u.benefits,b=u.requirements;return Object(kb.jsx)("div",{children:Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 10px 0",children:this.context.t(s)}),d&&d.length>0&&Object(kb.jsxs)("div",{children:[Object(kb.jsxs)(Tj.d,{color:Po.a.text_highlight,children:[this.context.t("Benefits"),":"," "]}),Object(kb.jsx)("ul",{children:d.map((function(t,n){return Object(kb.jsx)("li",{children:Object(kb.jsxs)(Tj.d,{children:[e.context.t(t)," "]})},n)}))})]}),b&&""!==b&&Object(kb.jsxs)("div",{children:[Object(kb.jsxs)(Tj.d,{color:Po.a.text_highlight,children:[this.context.t("Requirements"),":"]}),Object(kb.jsx)(Tj.d,{children:this.context.t(b)})]}),n&&Object(kb.jsxs)("div",{className:QC("footer","verified"),children:[Object(kb.jsx)(kj,{name:"tick",customClass:QC("verified-icon")}),Object(kb.jsx)(ew,{children:this.context.t(l)})]}),r&&Object(kb.jsxs)("div",{className:QC("footer","under-review"),children:[Object(kb.jsx)(kj,{name:"pending",customClass:QC("under-review-icon")}),Object(kb.jsx)("div",{children:Object(kb.jsx)(ew,{children:this.context.t(JC())})})]}),a&&Object(kb.jsx)("div",{className:QC("footer","can-increase"),children:Object(kb.jsx)(Pm,{size:"small",variant:"outlined",onClick:c,children:this.context.t(o)||this.context.t("Increase to {label}",{label:s})})}),!n&&!r&&!a&&Object(kb.jsx)("div",{className:QC("footer","cannot-increase"),children:Object(kb.jsx)(Pm,{size:"small",variant:"outlined",disabled:!0,children:this.context.t(o)||this.context.t("Increase to {label}",{label:s})})})]})})}}]),n}(a.a.Component);XC.contextTypes={t:O.a.func.isRequired};var $C=XC,ew=Object(Tb.a)("div",{target:"ev0w38w0"})("font-size:",Tj.h.paragraph,";"),tw=$C,nw=["redo","",null],rw=["pass"].concat(nw),aw=function(e,t){var n=e.highlightStyle,r=e.level1,a=e.level2,c=e.level3,i=e.levelIncreaseStatus,s=e.verificationLevel,o=e.openKYCModal,l=function(e,t){return{currentLevel:0===e||1===e&&"underReview"===t}}(s,i),u=function(e,t){return{underReview:(0===e||1===e)&&!rw.includes(t),verified:e>0&&("pass"===t||""===t)||e>=2,canIncrease:0===e&&nw.includes(t)||1===e&&"fail"===t,currentLevel:(1===e||2===e)&&"pass"===t||2===e&&"underReview"===t}}(s,i),d=function(e,t){var n=e>2;return{underReview:2===e&&"underReview"===t,verified:n,canIncrease:(1===e||2===e)&&"pass"===t||2===e&&"fail"===t,currentLevel:n}}(s,i);return Object(kb.jsxs)(kb.Fragment,{children:[r&&Object(kb.jsx)(tw,Object(Y.a)(Object(Y.a)({verified:!0,config:{level:1,label:t.t("Registered"),button:t.t("Register"),description:{benefits:[],requirements:t.t("Register an account and verify your email address.")},verifiedMessage:t.t("Registered"),underReviewMessage:t.t("Application under review.")}},l),{},{highlightStyle:n})),a&&Object(kb.jsx)(tw,Object(Y.a)(Object(Y.a)({config:{level:2,label:t.t("KYC"),button:t.t("Proceed to KYC"),description:{benefits:[t.t("Crypto Deposits"),t.t("Crypto Withdrawals"),t.t("Fiat Deposit"),t.t("Fiat Withdrawal")],requirements:t.t("Personal Particulars, Billing address and uploading Identity Documents")},verifiedMessage:t.t("Registered for KYC"),underReviewMessage:t.t("Application under review.")}},u),{},{openPane:o,highlightStyle:n})),c&&Object(kb.jsx)(tw,Object(Y.a)(Object(Y.a)({config:{level:3,label:t.t("Extended Validation"),button:t.t("Get Validated"),description:{benefits:[]},requirements:"",verifiedMessage:t.t("Registered for Extended Varification"),underReviewMessage:t.t("Application under review.")}},d),{},{openPane:o,highlightStyle:n}))]})},cw=aw;aw.contextTypes={t:O.a.func.isRequired};var iw=Object(s.c)((function(e){return{userConfig:It(e),userInfo:e.user.userInfo}}),(function(e){return{openKYCModal:function(){window.location.assign(gy.kyc)},setUserConfig:function(t,n,r){return e(ul(t,n,r,!0))},showSnack:function(t,n,r){return e(sr({id:t,text:n,type:r}))}}}))(cw),sw=function(){return Object(kb.jsx)(KC,{LevelsComponent:iw})},ow=Db("settings-page"),lw=Db("api-keys-page"),uw=function(e,t){return Object(kb.jsx)("div",{className:ow("content"),children:Object(kb.jsx)("div",{className:lw(),children:Object(kb.jsx)(sw,{})})})};uw.contextTypes={t:O.a.func.isRequired};var dw=Ab(uw),bw=(n(1056),Db("affiliate-modal")),pw=function(e,t){var n=e.handleSubmit,r=e.submitting;return Object(kb.jsx)(Aj,{isOpen:e.isOpen,title:t.t("Create or Edit Affiliate Tag"),onCancel:function(){e.close()},close:e.close,customClass:bw("ap-modal"),children:Object(kb.jsxs)("form",{onSubmit:n,className:bw("form"),children:[Object(kb.jsxs)("div",{className:bw("input-wraper"),children:[t.t("Change tag"),Object(kb.jsx)(Wm,{customClass:bw(),type:"text",name:"tag"})]}),Object(kb.jsx)("div",{className:bw("footer"),children:Object(kb.jsx)(Hb,{type:"submit",customClass:bw(),children:r?t.t("Submitting..."):t.t("Update")})})]})})};pw.contextTypes={t:O.a.func.isRequired};var jw=pw,mw={getAffiliate:ii},fw=Object(Pb.a)({form:"updateAffiliate",onSubmit:function(e,t){return t((n=e,function(){var e=Object(V.a)(q.a.mark((function e(t,r){var a,c,i,s,o,l,u;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.tag,c=r().user.userInfo,i=c.UserId,s=c.OMSId,o=c.AffiliateId,u={OMSId:s,UserId:i,AffiliateId:o,AffiliateTag:a},0!==o){e.next=9;break}return e.next=6,Ce.connection.AddUserAffiliateTag(u);case 6:l=e.sent,e.next=12;break;case 9:return e.next=11,Ce.connection.UpdateUserAffiliateTag(u);case 11:l=e.sent;case 12:l.result?(t(si(a)),t(Tn(Dn))):t(sr({id:"createAffiliateError",text:Ae.c.extractT("Could not create tag or tag already in use"),type:"warning"}));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));var n}})(jw),hw=Object(s.c)((function(e){return{initialValues:{tag:e.affiliate.affiliateTag}}}),mw)(fw),Ow=Fb({name:Dn})(hw),xw=Db("affiliate"),gw=function(e,t){var n=e.route,r=e.affiliateTag,c=e.showSnack,i="".concat(n).concat(r);return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(Hb,{rounded:!0,outline:!0,type:"button",styleName:"additive",customClass:xw(),onClick:function(){c(t.t("The referral code has been copied to the clipboard.")),tC(r)},children:t.t("Copy code")}),Object(kb.jsx)(Hb,{rounded:!0,type:"button",styleName:"additive",customClass:xw(),onClick:function(){c(t.t("The referral link has been copied to the clipboard.")),tC(i)},children:t.t("Copy link")}),Object(kb.jsx)(Ow,{})]})};gw.contextTypes={t:O.a.func.isRequired};var vw,yw=gw,Cw=Object(s.c)(null,(function(e){return{showSnack:function(t){return e(sr({id:"affiliateCopyTage",text:t,type:"success"}))}}}))(yw);n(1057);function ww(){return(ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Sw(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function kw(e,t){var n=e.title,a=e.titleId,c=Sw(e,["title","titleId"]);return r.createElement("svg",ww({width:10,height:10,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,vw||(vw=r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.244 6.67L4.065 7.847 1.417 5.2 2.596 4.02l1.47 1.47 3.338-3.339L8.583 3.33l-3.34 3.34zM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0z"})))}var Iw,Aw,Pw,Tw,Ew,Rw=r.forwardRef(kw);n.p;function Nw(){return(Nw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Mw(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Dw(e,t){var n=e.title,a=e.titleId,c=Mw(e,["title","titleId"]);return r.createElement("svg",Nw({width:155,height:178,viewBox:"0 0 155 178",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,Iw||(Iw=r.createElement("circle",{cx:72,cy:84,r:68,fill:"#F3F4F5"})),Aw||(Aw=r.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:4,y:16,width:136,height:136},r.createElement("circle",{cx:72,cy:84,r:68,fill:"#F3F4F5"}))),Pw||(Pw=r.createElement("g",{mask:"url(#mask0)"},r.createElement("g",{filter:"url(#filter0_d)"},r.createElement("circle",{cx:72,cy:84,r:68,fill:"url(#paint0_linear)"}),r.createElement("circle",{cx:72,cy:84,r:68,fill:"white"})),r.createElement("circle",{opacity:.56,cx:71.9998,cy:84.0001,r:68,transform:"rotate(-120 71.9998 84.0001)",fill:"url(#paint1_linear)"}),r.createElement("rect",{opacity:.08,x:5.10352,y:79.1724,width:134.069,height:72.8276,fill:"url(#paint2_linear)"}))),Tw||(Tw=r.createElement("g",{filter:"url(#filter1_dd)"},r.createElement("path",{d:"M98.9648 34.4634C98.9648 34.4634 101.492 36.0432 100.945 38.9288C100.486 41.3455 93.9265 47.3695 93.9265 47.3695L101.683 49.157C101.683 49.157 106.831 46.1843 107.942 43.6498C109.145 40.9045 108.949 39.7082 108.949 39.7082L103.736 33.1365L98.9648 34.4634Z",fill:"#B4263D"}),r.createElement("path",{d:"M80.9978 42.32C80.9978 42.32 84.3679 37.4642 87.4122 33.9734C90.7963 30.0922 93.4208 27.6545 97.0479 27.7443C108.158 28.0182 108.948 39.7082 108.948 39.7082C108.948 39.7082 104.661 37.1806 99.091 36.1373C91.7189 34.7583 83.326 43.6245 83.326 43.6245L80.9978 42.32Z",fill:"#FB4764"}),r.createElement("path",{d:"M82.2828 44.0375C82.2828 44.0375 82.0427 30.2356 80.2608 26.4709C78.9549 23.7117 75.2309 22.41 74.2999 22.0168C73.3942 21.9115 70.2446 22.5546 70.2446 22.5546L66.7214 27.5058C66.7214 27.5058 71.8875 28.1152 74.9838 32.1593C78.1362 36.2765 79.2104 42.5041 79.2104 42.5041L82.2828 44.0375Z",fill:"#B4263D"}),r.createElement("path",{d:"M96.7278 102.447L51.7623 91.8701L40.436 41.7723L120.723 60.6575L96.7278 102.447Z",fill:"#919AA3"}),r.createElement("path",{d:"M96.7279 102.447L51.7625 91.8701L49.4736 43.8983L112.591 58.745L96.7279 102.447Z",fill:"#696E72"}),r.createElement("path",{d:"M68.571 40.3401C68.571 40.3401 66.8859 33.2208 68.571 28.0393C70.256 22.8578 74.3001 22.0152 74.3001 22.0152C74.3001 22.0152 69.582 19.7882 63.558 24.3743C60.7201 26.5354 60.23 30.4194 61.0514 33.3107C62.099 36.9981 64.2797 39.5116 64.2797 39.5116L68.571 40.3401Z",fill:"#FB4764"}),r.createElement("path",{d:"M119.383 66.0595L40.3913 47.4791C39.7116 47.319 39.2904 46.6394 39.4505 45.9597L42.2884 33.8962C42.4484 33.2166 43.1281 32.7953 43.8077 32.9554L122.8 51.5358C123.479 51.6959 123.901 52.3756 123.741 53.0552L120.903 65.1187C120.743 65.7983 120.063 66.2196 119.383 66.0595Z",fill:"url(#paint3_linear)"}),r.createElement("path",{d:"M82.9262 58.2702L71.7979 55.6528L75.512 39.8653L87.8676 42.7706L82.9262 58.2702Z",fill:"url(#paint4_linear)"}),r.createElement("path",{d:"M81.13 92.26C90.0384 92.26 97.26 85.0384 97.26 76.13C97.26 67.2216 90.0384 60 81.13 60C72.2216 60 65 67.2216 65 76.13C65 85.0384 72.2216 92.26 81.13 92.26Z",fill:"url(#paint5_linear)"}),r.createElement("path",{opacity:.3,d:"M81.13 91.7752C72.3023 91.7752 65.1334 84.6847 65.0033 75.887C65.0017 75.9687 65 76.0487 65 76.1304C65 85.0381 72.2222 92.2604 81.13 92.2604C90.0378 92.2604 97.26 85.0381 97.26 76.1304C97.26 76.0487 97.2583 75.9687 97.2567 75.8886C97.1266 84.6847 89.9577 91.7752 81.13 91.7752Z",fill:"#FDF356"}),r.createElement("path",{d:"M81.13 60.6069C89.9377 60.6069 97.0949 67.6657 97.2567 76.4334C97.2583 76.3317 97.26 76.2317 97.26 76.13C97.26 67.2222 90.0378 60 81.13 60C72.2222 60 65 67.2222 65 76.13C65 76.2317 65.0017 76.3317 65.0033 76.4334C65.1651 67.664 72.3223 60.6069 81.13 60.6069Z",fill:"#FDF356"}),r.createElement("path",{opacity:.7,d:"M81.1304 60.0596C72.406 60.0596 65.3055 67.0168 65.0754 75.6845C66.851 76.7365 69.6435 75.8945 71.4691 74.9809C73.0396 74.2557 74.9718 74.4974 76.6624 74.6191C80.8887 74.9809 84.9949 76.7932 89.2213 75.7061C90.0665 75.4644 91.2736 74.3774 92.1188 75.1026C93.6076 76.343 95.6082 76.4514 97.1854 75.6961C96.9603 67.0235 89.8581 60.0596 81.1304 60.0596Z",fill:"url(#paint6_linear)"}),r.createElement("path",{d:"M81.1299 88.622C88.0292 88.622 93.6221 83.029 93.6221 76.1298C93.6221 69.2305 88.0292 63.6376 81.1299 63.6376C74.2306 63.6376 68.6377 69.2305 68.6377 76.1298C68.6377 83.029 74.2306 88.622 81.1299 88.622Z",fill:"url(#paint7_linear)"}),r.createElement("path",{d:"M81.1305 88.0159C87.6946 88.0159 93.0158 82.6946 93.0158 76.1305C93.0158 69.5664 87.6946 64.2452 81.1305 64.2452C74.5664 64.2452 69.2451 69.5664 69.2451 76.1305C69.2451 82.6946 74.5664 88.0159 81.1305 88.0159Z",fill:"#EE9B00"}),r.createElement("path",{d:"M81.1302 87.5305C87.4263 87.5305 92.5304 82.4265 92.5304 76.1303C92.5304 69.8341 87.4263 64.7301 81.1302 64.7301C74.834 64.7301 69.73 69.8341 69.73 76.1303C69.73 82.4265 74.834 87.5305 81.1302 87.5305Z",fill:"url(#paint8_radial)"}),r.createElement("path",{opacity:.25,d:"M81.1302 86.6813C74.9349 86.6813 69.895 81.9831 69.7333 75.8262C69.73 75.9263 69.73 76.028 69.73 76.1297C69.73 82.4266 74.8332 87.5299 81.1302 87.5299C87.4271 87.5299 92.5304 82.4266 92.5304 76.1297C92.5304 76.028 92.5287 75.9279 92.527 75.8262C92.3653 81.9831 87.3254 86.6813 81.1302 86.6813Z",fill:"#FDF356"}),r.createElement("path",{opacity:.1,d:"M88.2591 74.5591C88.139 74.1906 87.8273 73.9272 87.4438 73.8722L83.7077 73.3287L82.0371 69.9427C81.8654 69.5959 81.5186 69.3792 81.1319 69.3792C80.7451 69.3792 80.3983 69.5942 80.2266 69.9427L78.5544 73.3287L74.8182 73.8722C74.4348 73.9272 74.123 74.1906 74.003 74.5591C73.8829 74.9275 73.9813 75.3243 74.2581 75.5944L76.9622 78.2302L76.3237 81.9514C76.2587 82.3332 76.4121 82.7116 76.7255 82.9384C77.0323 83.1618 77.4524 83.1918 77.7892 83.015L81.1319 81.2578L84.4746 83.015C84.6246 83.0934 84.7847 83.1317 84.9464 83.1317C85.1548 83.1317 85.3615 83.0667 85.5382 82.9384C85.8517 82.7116 86.005 82.3315 85.94 81.9514L85.3015 78.2302L88.0057 75.5944C88.2807 75.3243 88.3774 74.9275 88.2591 74.5591Z",fill:"#FDF356"}),r.createElement("path",{opacity:.6,d:"M88.0268 74.5122C87.9351 74.2321 87.6984 74.0321 87.4066 73.9904L83.5438 73.4286L81.8166 69.9291C81.6865 69.6657 81.4231 69.5007 81.128 69.5007C80.8346 69.5007 80.5695 69.6641 80.4395 69.9291L78.714 73.4286L74.8511 73.9904C74.5593 74.0321 74.3226 74.2321 74.2309 74.5122C74.1392 74.7923 74.2142 75.0941 74.4243 75.2991L76.9767 77.9016L76.3165 81.7495C76.2665 82.0396 76.3816 82.373 76.62 82.5464C76.755 82.6447 77.1651 82.8698 77.672 82.6798L81.1264 80.8625L84.5808 82.6781C84.8408 82.8148 85.2743 82.8181 85.5127 82.6447C85.7511 82.4714 85.9879 82.0379 85.9379 81.7478L85.2777 77.8999L87.8301 75.2975C88.0435 75.0941 88.1185 74.7923 88.0268 74.5122Z",fill:"url(#paint9_linear)"}),r.createElement("path",{opacity:.15,d:"M88.0273 73.7859C87.9356 73.5058 87.6988 73.3058 87.4071 73.2641L83.5442 72.7023L81.817 69.2012C81.687 68.9378 81.4236 68.7727 81.1285 68.7727C80.8351 68.7727 80.57 68.9361 80.4399 69.2012L78.7127 72.7023L74.8499 73.2641C74.5581 73.3058 74.3214 73.5058 74.2297 73.7859C74.138 74.066 74.213 74.3678 74.4231 74.5728L77.2189 77.297L76.5587 81.1449C76.5087 81.435 76.6254 81.7217 76.8638 81.8951C76.9989 81.9935 77.1556 82.0418 77.314 82.0418C77.4357 82.0418 77.559 82.0118 77.6724 81.9535L81.1268 80.1362L84.5812 81.9518C84.8413 82.0885 85.1514 82.0668 85.3898 81.8934C85.6282 81.7201 85.7449 81.4333 85.6949 81.1432L85.0347 77.2953L87.8306 74.5712C88.044 74.3661 88.119 74.066 88.0273 73.7859Z",fill:"#EE9B00"}),r.createElement("path",{d:"M81.6549 69.5243L83.4254 73.1105L87.3833 73.6856C87.8635 73.7557 88.0552 74.3458 87.7084 74.6843L84.8442 77.4751L85.5194 81.4164C85.6011 81.8949 85.0993 82.26 84.6708 82.0332L81.1297 80.1727L77.5903 82.0332C77.1601 82.2583 76.6583 81.8949 76.7417 81.4164L77.4169 77.4751L74.5527 74.6843C74.2059 74.3458 74.3976 73.7557 74.8778 73.6856L78.8357 73.1105L80.6045 69.5243C80.8196 69.0892 81.4398 69.0892 81.6549 69.5243Z",fill:"url(#paint10_linear)"}),r.createElement("path",{opacity:.3,d:"M77.3634 77.7871L76.7416 81.4166C76.7249 81.5116 76.7332 81.6033 76.7583 81.685L77.4168 77.8388L77.3634 77.7871Z",fill:"#FDF356"}),r.createElement("path",{d:"M74.8775 74.0491L79.0771 73.4739L80.8476 69.8878C81.0627 69.4527 81.1977 69.4527 81.4128 69.8878L83.1834 73.4739L87.383 74.0491C87.6231 74.0841 87.7898 74.2491 87.8548 74.4459C87.9615 74.1208 87.7631 73.739 87.383 73.684L83.4251 73.1088L81.6546 69.5243C81.4395 69.0892 80.8193 69.0892 80.6042 69.5243L78.8353 73.1105L74.8775 73.6856C74.4973 73.7407 74.2989 74.1224 74.4056 74.4475C74.469 74.2491 74.6374 74.0841 74.8775 74.0491Z",fill:"#FDF356"}),r.createElement("path",{opacity:.3,d:"M84.8964 77.7871L84.843 77.8388L85.5032 81.685C85.5282 81.6016 85.5366 81.5116 85.5199 81.4166L84.8964 77.7871Z",fill:"#FDF356"}),r.createElement("path",{d:"M81.6549 69.5243L83.4254 73.1105L87.3833 73.6856C87.8635 73.7557 88.0552 74.3458 87.7084 74.6843L84.8442 77.4751L85.5194 81.4164C85.6011 81.8949 85.0993 82.26 84.6708 82.0332L81.1297 80.1727L77.5903 82.0332C77.1601 82.2583 76.6583 81.8949 76.7417 81.4164L77.4169 77.4751L74.5527 74.6843C74.2059 74.3458 74.3976 73.7557 74.8778 73.6856L78.8357 73.1105L80.6045 69.5243C80.8196 69.0892 81.4398 69.0892 81.6549 69.5243Z",fill:"url(#paint11_radial)"}),r.createElement("path",{d:"M87.3824 73.6856L83.4245 73.1105L81.6556 69.5243C81.4405 69.0892 80.8203 69.0892 80.6053 69.5243L78.8364 73.1105L74.8785 73.6856C74.6751 73.7156 74.5234 73.839 74.4434 73.9957C74.9452 74.6226 75.1369 74.7326 75.9555 75.3095C78.4613 76.7249 84.7282 76.4815 86.4671 75.0661C87.114 74.5392 87.3457 74.4692 87.7375 73.8757C87.6525 73.779 87.5307 73.7073 87.3824 73.6856Z",fill:"url(#paint12_linear)"}),r.createElement("path",{d:"M100.455 65.0015C100.455 65.0015 99.0682 65.8224 97.3622 67.3143C96.5099 68.0576 95.5785 68.9835 94.6552 70.0609C93.732 71.1382 92.8238 72.3655 92.0655 73.717C91.6551 74.4479 91.1682 75.4121 90.635 76.5235C90.1018 77.6349 89.5386 78.8882 89.0176 80.2246C88.4967 81.5611 88.0208 82.9807 87.5844 84.3962C87.1466 85.8118 86.7252 87.2178 86.2957 88.5201C85.4379 91.1248 84.5392 93.3149 83.8887 94.4509C80.3226 100.682 75 105.088 75 105.088L90.9214 119.337C90.9214 119.337 96.0749 115.519 99.9655 110.713C100.623 109.902 101.189 108.895 101.704 107.751C102.22 106.607 102.683 105.327 103.135 103.966C103.586 102.605 104.032 101.167 104.575 99.7408C105.118 98.3143 105.741 96.8892 106.443 95.5078C107.146 94.1263 107.896 92.7722 108.696 91.4876C109.497 90.2016 110.324 88.9756 111.226 87.8669C112.101 86.7909 113.329 85.6018 114.676 84.5462C115.35 84.0185 116.064 83.5357 116.801 83.098C117.537 82.6602 118.294 82.2675 119.071 81.9061C119.849 81.5447 120.614 81.1888 121.312 80.8656C122.01 80.541 122.636 80.2533 123.151 80.0187C124.182 79.5482 124.822 79.2605 124.822 79.2605C124.822 79.2605 124.477 79.0614 123.878 78.6754C123.28 78.2881 122.412 77.7222 121.308 77.0213C120.755 76.6708 120.113 76.2849 119.403 75.8757C118.692 75.4666 117.923 75.0261 117.133 74.5584C116.345 74.0893 115.564 73.5929 114.812 73.0883C114.069 72.5783 113.32 72.0792 112.577 71.6169C110.596 70.3827 108.624 69.2972 106.865 68.348C105.086 67.4016 103.491 66.5629 102.326 65.9629C101.163 65.3601 100.455 65.0015 100.455 65.0015Z",fill:"#70E3AD"}),r.createElement("path",{d:"M121.102 79.169C121.081 79.1772 120.555 79.3763 119.727 79.7227C118.899 80.0691 117.787 80.5532 116.656 81.0946C116.096 81.3633 115.536 81.6646 114.987 82.0028C114.437 82.341 113.897 82.7133 113.384 83.117C112.358 83.9243 111.413 84.8353 110.731 85.6781C109.824 86.799 109.041 87.9132 108.333 89.0096C107.626 90.1074 107.004 91.1916 106.439 92.2662C105.875 93.3408 105.385 94.4099 104.938 95.4777C104.492 96.5441 104.102 97.6133 103.743 98.6852C103.23 100.219 102.798 101.741 102.273 103.24C101.748 104.739 101.114 106.209 100.249 107.661C98.3086 110.92 96.0394 113.46 94.4766 115.014C92.7747 116.707 91.5432 117.619 91.4914 117.657L90.9418 118.061L76.6392 105.059L76.9296 104.766C76.9828 104.711 82.2863 99.3302 84.2501 95.8827C84.9401 94.6704 85.7379 92.9726 86.492 91.0279C87.2461 89.0846 87.9512 86.8945 88.6535 84.7439C89.1867 83.1129 89.7554 81.5392 90.3704 80.1209C90.9854 78.7026 91.6209 77.4303 92.2019 76.3761C93.1306 74.692 94.1015 73.2723 95.0261 72.0954C95.9494 70.9186 96.8235 69.9844 97.5722 69.2644C99.0736 67.8147 100.199 67.2011 100.29 67.1533L100.713 66.9297C100.713 66.9297 103.125 68.1311 106.228 69.7076C107.747 70.4944 109.45 71.389 111.155 72.3027C111.796 72.6846 112.441 73.0855 113.076 73.4946C113.713 73.9037 114.342 74.3224 114.966 74.7329C115.592 75.1433 116.225 75.5252 116.84 75.877C117.455 76.2289 118.039 76.5548 118.567 76.8521C119.622 77.448 120.459 77.9431 121.019 78.2976C121.576 78.6535 121.886 78.8513 121.886 78.8513L121.102 79.169ZM98.6809 69.8439C98.0345 70.474 97.219 71.3372 96.3244 72.465C95.4298 73.5928 94.4561 74.9838 93.5261 76.6584C92.9492 77.6989 92.3123 78.9604 91.6932 80.3691C91.0727 81.7778 90.4945 83.3434 89.9545 84.9662C89.2372 87.1263 88.5226 89.3274 87.7616 91.2843C87.0007 93.2426 86.1947 94.9581 85.491 96.1937C83.7128 99.3152 79.4621 103.79 78.3043 104.984L91.0823 116.599C92.4364 115.488 96.113 112.217 99.0191 107.335C99.8551 105.931 100.471 104.499 100.984 103.03C101.497 101.561 101.909 100.058 102.387 98.5379C102.735 97.4333 103.116 96.3341 103.56 95.2363C104.003 94.1385 104.497 93.038 105.073 91.9348C105.648 90.8302 106.29 89.716 107.031 88.5882C107.771 87.4604 108.598 86.3163 109.561 85.1612C110.166 84.4357 110.945 83.6666 111.796 82.9083C112.641 82.1883 113.57 81.5324 114.505 81.0046C115.442 80.4768 116.4 80.02 117.3 79.6204C118.198 79.2209 119.007 78.8963 119.57 78.6767C119.57 78.6767 119.268 78.4995 118.732 78.1858C118.194 77.8721 117.421 77.4235 116.484 76.8753C116.016 76.6012 115.516 76.2984 115.003 75.9711C114.492 75.6438 113.965 75.2947 113.423 74.9402C112.339 74.231 111.192 73.541 110.049 72.915C108.53 72.1132 107.01 71.3195 105.652 70.6185C102.891 69.2139 100.747 68.1407 100.747 68.1407C100.316 68.427 99.5714 68.9739 98.6809 69.8439Z",fill:"#27A79C"}),r.createElement("path",{d:"M88.3671 87.6459C88.8348 86.5563 89.859 85.5853 91.4668 85.1857C93.076 84.7862 95.292 84.9634 98.0208 86.1512C99.3914 86.7472 100.553 87.5381 101.496 88.4205C102.439 89.3041 103.166 90.2737 103.664 91.227C104.661 93.1348 104.789 94.999 104.272 96.1691C103.757 97.3391 101.977 98.2228 99.9478 98.6047C97.9363 98.9947 95.6002 98.8461 93.8424 97.8942C92.0846 96.9409 90.1631 95.61 88.9958 93.9094C87.808 92.2048 87.3048 90.1156 88.3671 87.6459Z",fill:"#27A79C"}),r.createElement("path",{d:"M102.453 80.1591C103.428 80.5614 104.561 80.496 104.976 80.005C105.39 79.5141 104.95 78.7886 104.006 78.3917C103.069 78.0017 101.946 78.0822 101.498 78.5649C101.052 79.045 101.479 79.7568 102.453 80.1591Z",fill:"#27A79C"}),r.createElement("path",{d:"M87.3717 107.064C88.2036 107.551 89.3014 107.59 89.8237 107.152C90.346 106.715 90.095 105.965 89.2618 105.478C88.43 104.991 87.3322 104.951 86.8099 105.389C86.2889 105.828 86.5398 106.577 87.3717 107.064Z",fill:"#27A79C"}),r.createElement("path",{d:"M101.385 94.3499L100.709 95.5336L99.7897 95.0522C98.7724 96.7419 97.0854 96.9764 95.5513 96.2346C93.4907 95.2377 93.8998 93.1485 94.2557 92.3071C94.613 91.4657 94.7958 90.7143 94.2312 90.2274C93.7662 89.8251 92.6957 90.2288 92.247 90.9693C91.587 92.0616 92.2934 92.3425 92.2934 92.3425L91.7601 93.7022C91.7601 93.7022 89.8291 92.6016 90.6664 90.8043L89.9709 90.3283L90.3855 89.4392L91.1233 89.8497C91.8365 88.756 93.7893 88.4273 94.7753 88.7887C97.0568 89.6247 96.5359 91.5352 96.0654 92.3003C95.5022 93.2153 95.4449 94.0117 95.8936 94.309C97.3132 95.2459 97.9923 94.6049 98.5392 93.6244C99.2769 92.3016 98.0578 91.8693 98.0578 91.8693L99.146 89.9574C99.146 89.9574 101.835 90.387 100.427 93.9395L101.385 94.3499Z",fill:"#70E3AD"}),r.createElement("path",{d:"M98.5513 69.0721C98.6399 70.8954 102.914 71.7014 103.679 69.7294C103.979 68.9576 103.052 68.2034 102.081 67.8461C100.522 67.2734 100.072 68.2498 99.1854 68.5116L98.5513 69.0721Z",fill:"#27A79C"}),r.createElement("path",{d:"M115.044 78.4667C114.885 77.4044 116.098 77.0894 117.68 77.4194L120.536 79.0327L117.684 79.9259C117.488 80.7987 115.156 79.2086 115.044 78.4667Z",fill:"#27A79C"}),r.createElement("path",{d:"M89.6135 115.819L89.7063 115.644C89.2917 113.544 92.6151 113.551 92.7187 115.479C92.7487 116.025 92.341 117.083 91.3373 117.274C90.2831 117.476 89.7035 116.401 89.6135 115.819Z",fill:"#27A79C"}),r.createElement("path",{d:"M78.0426 105.332C77.7221 104.78 78.0889 104.486 78.8853 104.032L78.8526 103.79C80.0404 103.633 80.8818 103.776 81.0809 104.695C81.2078 105.281 80.8245 106.156 79.8699 106.285C79.1349 106.383 78.3221 105.812 78.0426 105.332Z",fill:"#27A79C"}),r.createElement("path",{d:"M99.12 105.366C100.043 106.032 100.953 106.709 101.867 107.382C101.307 108.677 100.692 109.816 99.9669 110.713C96.0762 115.519 90.9227 119.337 90.9227 119.337L75 105.088C75 105.088 80.3239 100.68 83.8887 94.4508C83.9105 94.4127 83.9337 94.369 83.9569 94.3295C89.1949 97.8601 94.0538 101.713 99.12 105.366Z",fill:"url(#paint13_linear)"}),r.createElement("path",{opacity:.07,d:"M96.6162 89.0819C96.053 90.5302 95.4257 91.9593 94.8857 93.4158C94.4316 94.6295 94.032 95.8569 93.6842 97.0937C92.2973 96.1773 90.8968 95.2718 89.4813 94.3786C88.0657 93.4854 86.6297 92.603 85.176 91.7343C85.7092 90.3652 86.2656 88.6973 86.8111 86.915C87.3566 85.1326 87.9198 83.2548 88.5608 81.4547C89.9913 82.3179 91.4846 83.1552 93.0556 84.0021C94.6279 84.8503 96.2235 85.6876 97.8027 86.5236C97.3063 87.3418 96.9544 88.2091 96.6162 89.0819Z",fill:"url(#paint14_linear)"}),r.createElement("path",{opacity:.8,d:"M98.4177 91.8857C98.9959 90.5492 99.6983 89.2496 100.646 88.0264C100.722 88.0686 100.8 88.1109 100.877 88.1546C102.456 89.0464 104.047 89.9437 105.635 90.8329C104.872 92.1175 104.211 93.4894 103.596 94.8722C101.831 93.8999 100.081 92.9139 98.4177 91.8857Z",fill:"white"}),r.createElement("path",{opacity:.8,d:"M102.435 96.4732C101.747 98.1847 101.19 99.933 100.653 101.568C99.0846 100.427 97.4876 99.3084 95.8757 98.2011C96.3203 96.6341 96.769 95.0672 97.3636 93.5426C98.9891 94.549 100.701 95.5145 102.435 96.4732Z",fill:"white"}),r.createElement("path",{opacity:.24,d:"M89.7078 78.5513C89.7078 78.5513 91.6947 79.8986 94.5421 81.7465C95.9659 82.6711 97.5914 83.7157 99.2251 84.7739C100.86 85.8335 102.506 86.9149 103.972 87.8845C106.9 89.821 109.003 91.2311 109.003 91.2311L109.636 90.0924C109.636 90.0924 107.451 88.805 104.422 87.0322C102.907 86.1458 101.208 85.1585 99.5252 84.1957C97.8423 83.2329 96.1677 82.2851 94.7003 81.4464C91.7642 79.7704 89.7078 78.5513 89.7078 78.5513Z",fill:"white"}),r.createElement("path",{d:"M83.5014 95.1082C82.8073 96.7132 80.8094 100.578 76.106 105.23L90.9214 119.337L75 105.088C75 105.088 79.9503 100.988 83.5014 95.1082Z",fill:"white"}),r.createElement("path",{d:"M90.8968 101.91C90.8968 101.91 88.7435 105.662 85.7747 107.564L93.7783 114.429C93.7783 114.429 97.2831 112.051 99.225 107.658L90.8968 101.91Z",fill:"url(#paint15_linear)"}),r.createElement("path",{d:"M80.9717 103.585C81.539 103.027 82.0695 102.449 82.5563 101.846C82.9913 101.309 83.5027 100.728 83.8873 100.114C84.6851 100.652 85.5292 101.148 86.3665 101.663C87.0184 102.064 87.628 102.495 88.2239 102.937C86.4484 105.365 84.5542 106.656 84.5542 106.656L80.9717 103.585Z",fill:"url(#paint16_linear)"}),r.createElement("path",{opacity:.1,d:"M109.113 74.0265C109.113 74.0265 104.57 76.5698 102.742 81.0482L95.0222 76.8998C95.0222 76.8998 96.7405 73.1919 100.037 69.5562L109.113 74.0265Z",fill:"url(#paint17_linear)"}),r.createElement("path",{opacity:.1,d:"M111.361 81.4424C112.143 80.515 112.832 80.17 113.494 79.7677C114.509 79.1499 115.227 78.8936 116.132 78.5417C115.335 78.0044 114.287 77.3498 113.113 76.5793C112.473 76.1593 111.53 75.5647 110.518 75.0615C107.259 76.9816 106.436 79.2836 106.436 79.2836L111.361 81.4424Z",fill:"url(#paint18_linear)"}),r.createElement("path",{d:"M34 70.7719C34 70.7719 34.4528 72.7043 36.2242 75.0513C37.1093 76.2254 38.323 77.5305 39.7221 78.867C41.1213 80.202 42.7414 81.5412 44.5647 82.7331C46.5203 83.835 48.9095 85.1196 51.1228 86.6033C53.332 88.0843 55.1771 89.8626 56.4686 91.8523C57.61 93.9865 58.3655 96.328 58.7187 98.5986C59.0705 100.858 59.2615 102.868 59.2342 104.413C59.181 107.438 58.8755 110.542 58.6573 112.99C58.4405 115.438 58.3682 117.151 58.3682 117.151C58.3682 117.151 60.0852 116.281 62.383 115.18C64.6809 114.079 67.4915 112.804 70.2926 111.46C73.1727 110.051 76.2356 108.355 78.7067 106.957C81.2991 105.633 83.0556 104.862 83.0556 104.862C83.0556 104.862 82.6546 103.087 82.0001 100.808C81.6728 99.6677 81.2718 98.4213 80.8573 97.1367C80.4891 95.8534 80.1768 94.5074 79.9013 93.2269C79.5917 91.4377 79.2208 89.744 78.8662 88.428C78.2594 86.5842 77.4603 84.5727 76.3693 82.4413C75.8238 81.3748 75.1542 80.3384 74.4042 79.3497C73.6541 78.3624 72.8359 77.4132 71.9986 76.5145C71.1626 75.6172 70.3076 74.8195 69.5152 74.113C68.7229 73.4066 67.9947 72.793 67.3047 72.2693C65.9246 71.2233 64.6863 70.3942 63.8054 69.5337C63.2394 69.0359 62.6039 68.4768 61.9016 67.8713C61.1993 67.2658 60.4561 66.599 59.7388 65.8694C59.0215 65.1398 58.3737 64.3093 57.8255 63.4215C57.2773 62.5324 56.8559 61.5819 56.5586 60.6041C56.3227 59.5636 56.1126 58.564 55.9149 57.6571C55.3203 54.9365 54.9576 53 54.9576 53C54.9576 53 52.5329 55.0524 49.3254 57.758C47.7217 59.1108 45.9066 60.6464 44.0765 62.2024C42.2532 63.7502 40.4449 65.2789 38.8944 66.5758C36.0047 69.0346 34 70.7719 34 70.7719Z",fill:"#70E3AD"}),r.createElement("path",{d:"M35.7878 71.361C35.7878 71.361 36.5092 73.0547 38.3639 75.1944C40.2213 77.33 43.1955 79.9483 46.4344 82.2039C48.1827 83.2512 50.2991 84.5045 52.3256 85.9146C54.3507 87.3233 56.1113 88.9747 57.3932 90.7994C58.5373 92.7427 59.3324 94.8742 59.792 96.9538C60.1493 99.0417 60.3347 100.943 60.3088 102.395C60.3934 105.158 60.3688 107.834 60.2625 109.897C60.1547 111.962 60.0756 113.398 60.0756 113.398C60.0756 113.398 61.3943 112.797 63.1849 112.019C64.9755 111.24 67.1929 110.303 69.4007 109.336C71.7245 108.222 74.2746 106.853 76.357 105.72C78.5199 104.548 80.0091 103.815 80.0091 103.815C80.0091 103.815 79.8031 102.766 79.3667 101.214C78.9399 99.6513 78.3371 97.5539 77.718 95.2765C77.4439 93.685 77.1275 91.9722 76.8016 90.1503C76.4757 88.6515 75.8279 86.8732 75.0369 84.8549C74.5174 83.8663 73.9078 82.8462 73.2014 81.8439C72.495 80.8415 71.7013 79.8528 70.8531 78.8901C70.0048 77.9273 69.1075 77.0545 68.2456 76.2772C67.3838 75.4999 66.5887 74.8194 65.8373 74.2534C64.3359 73.1215 63.0049 72.2788 62.2398 71.436C61.393 70.6191 60.2584 69.4927 58.9356 68.2585C58.2741 67.6421 57.6141 66.9466 57.025 66.187C56.4536 65.4179 55.9449 64.601 55.5344 63.7501C54.8335 62.0263 54.3153 60.3776 53.9444 59.1694C53.5734 57.9611 53.3593 57.1906 53.3593 57.1906C53.3593 57.1906 52.2247 58.0961 50.5146 59.4639C48.8045 60.8317 46.4944 62.6932 44.1542 64.5929C41.8577 66.438 39.6663 68.1931 38.1812 69.4013C36.7138 70.5987 35.7878 71.361 35.7878 71.361Z",fill:"#27A79C"}),r.createElement("path",{d:"M59.968 73.4298C58.9834 72.452 57.9333 71.2396 56.8192 69.9782C56.2792 69.3359 55.7514 68.654 55.285 67.9394C54.8172 67.2248 54.4136 66.4857 54.0972 65.7452C53.4631 64.2629 53.0403 62.8869 52.7539 61.8873C52.4676 60.8877 52.3148 60.2658 52.3148 60.2658C52.3148 60.2658 51.3739 60.9981 49.9461 62.115C48.5182 63.2319 46.5859 64.7579 44.6494 66.2812C42.7443 67.7799 40.9537 69.1886 39.7141 70.1773C38.5386 71.1292 37.7913 71.736 37.7913 71.736C37.7913 71.736 38.2481 72.9756 39.6541 74.8221C40.3578 75.7453 41.3683 76.8104 42.6652 77.9505C43.9621 79.0905 45.5044 80.3124 47.2186 81.597C48.7896 82.6621 50.8038 83.929 52.8071 85.3309C54.8104 86.7314 56.6092 88.3543 57.887 90.1898C59.1675 92.0295 60.0389 94.101 60.5244 96.1397C61.0031 98.1512 61.254 99.9963 61.2813 101.371C61.4722 103.976 61.5758 106.438 61.6017 108.274C61.6413 110.091 61.6263 111.356 61.6263 111.356C61.6263 111.356 65.3983 109.537 68.9344 107.686C72.6574 105.695 77.2722 102.934 77.2722 102.934C77.2722 102.934 76.6653 99.7877 75.5457 95.9324C75.3303 94.5619 75.0862 93.0686 74.8311 91.4526C74.5243 89.5134 73.867 87.4897 73.0201 85.4059C72.4774 84.3845 71.8419 83.3849 71.1177 82.4412C70.3936 81.4975 69.5877 80.6015 68.734 79.7601C67.8816 78.9187 66.983 78.185 66.117 77.5427C65.251 76.9004 64.4287 76.3508 63.6446 75.8926C62.0763 74.9789 60.7317 74.2521 59.968 73.4298Z",fill:"#70E3AD"}),r.createElement("path",{d:"M57.4246 89.598C56.17 88.2288 55.1472 86.9306 54.5172 85.6855C53.8885 84.4418 53.8013 83.1695 54.6508 81.7212C55.21 80.8307 56.0705 80.0152 57.1369 79.2379C57.7069 78.8288 58.3179 78.4415 58.9738 78.0637C59.6325 77.6846 60.3553 77.3123 61.1149 76.9659C62.675 76.2759 64.0687 75.9159 65.1433 75.909C66.2192 75.9022 67.032 76.2268 67.553 76.8555C68.0725 77.4841 68.6889 78.3896 69.1512 79.5079C69.6135 80.6261 69.9217 81.9489 69.8072 83.4504C69.5508 84.9668 69.0326 86.5201 68.1557 88.0597C67.3552 89.5298 66.4333 90.9017 65.3792 92.0377C64.1 93.4355 62.7104 93.8733 61.5212 93.7792C60.3307 93.6851 59.2793 93.1191 58.862 92.3282C58.026 90.749 57.4246 89.598 57.4246 89.598Z",fill:"#27A79C"}),r.createElement("path",{d:"M65.9901 82.178L65.0164 80.4802L63.9513 81.5602C63.1386 80.5511 62.2808 79.9592 61.4066 79.8692C60.5339 79.7792 59.687 80.1556 58.9601 81.0516C57.5269 83.1803 59.2833 85.275 59.9734 86.5542C60.5843 87.8524 61.0193 88.6748 60.7166 89.0116C60.4139 89.3484 60.0225 89.1998 59.252 88.2411C57.9128 86.5733 58.416 86.126 58.416 86.126L56.8464 84.6013C56.8464 84.6013 55.9245 85.8696 58.2633 88.5588L57.9578 88.9666L58.6874 90.0889L59.1061 89.7562C60.1138 91.3149 60.9675 91.6517 61.4966 91.2181C62.7267 90.2117 61.8321 87.9002 61.2471 86.6374C60.4589 85.1536 59.9679 84.0654 60.3743 83.4435C61.0112 82.5612 61.8649 82.7944 62.6844 84.2386C63.77 86.3483 62.6981 87.4447 62.6981 87.4447L63.6854 89.2352C63.6854 89.2352 66.3951 87.2742 64.8623 83.1367L65.9901 82.178Z",fill:"#70E3AD"}),r.createElement("path",{d:"M49.1317 72.3456C49.6213 73.187 49.4604 74.203 48.7867 74.5943C48.1144 74.9857 47.1011 74.6434 46.5134 73.8429C45.9652 73.0233 46.1424 72.0142 46.9157 71.5764C47.6903 71.1401 48.6858 71.4796 49.1317 72.3456Z",fill:"#27A79C"}),r.createElement("path",{d:"M68.3956 102.605C68.5483 103.451 68.1828 104.385 67.591 104.683C67.0005 104.982 66.4196 104.535 66.2873 103.682C66.1564 102.83 66.4959 101.899 67.0673 101.606C67.6387 101.314 68.2428 101.758 68.3956 102.605Z",fill:"#27A79C"}),r.createElement("g",{opacity:.24},r.createElement("path",{d:"M67.977 77.2919L67.2965 78.2601L65.3041 80.9589C65.3041 80.9589 64.6195 81.9489 64.0058 82.9063C63.4208 83.8472 62.9149 84.735 62.9149 84.735L61.7625 87.802L60.5747 91.2645L59.6665 93.1369L59.661 93.1464L59.0692 94.1392L58.1091 95.5152C58.8824 98.9599 59.2997 102.173 59.2315 104.42C59.181 107.442 58.8755 110.546 58.6573 112.994C58.4405 115.442 58.3682 117.155 58.3682 117.155C58.3682 117.155 60.0852 116.285 62.383 115.184C64.6809 114.084 67.4915 112.808 70.2926 111.464C73.1727 110.055 76.2356 108.359 78.7067 106.961C81.2991 105.637 83.0556 104.866 83.0556 104.866C83.0556 104.866 82.6546 103.091 82.0001 100.812C81.6728 99.6718 81.2718 98.4254 80.8573 97.1407C80.4891 95.8575 80.1768 94.5115 79.9013 93.231C79.5904 91.4431 79.2194 89.7508 78.8758 88.4252C78.138 86.1628 77.0839 83.6645 75.7188 81.0803C74.846 79.7984 73.8764 78.5928 72.8809 77.4555C71.8854 76.3182 70.8776 75.2395 69.893 74.2521L68.592 76.3741L67.977 77.2919Z",fill:"white"})),r.createElement("path",{opacity:.24,d:"M51.641 80.5252C49.9977 79.1478 48.5399 77.705 47.2594 76.2063C45.9884 74.6925 44.9997 73.0847 44.1447 71.4455C43.1737 68.909 42.736 66.2634 42.5232 63.5292C42.5232 63.5292 40.1954 65.4957 37.9875 67.3435C35.9324 69.0959 34 70.7719 34 70.7719C34 70.7719 34.4528 72.7043 36.2242 75.0512C37.1093 76.2254 38.323 77.5304 39.7317 78.8628C41.1391 80.1951 42.7782 81.5275 44.6465 82.6976C45.2452 83.0521 45.8916 83.4244 46.5776 83.8049C47.3617 83.303 48.1008 82.838 48.7881 82.4016C49.4754 81.9639 50.1437 81.5384 50.8146 81.0925C51.086 80.9111 51.3587 80.7188 51.641 80.5252Z",fill:"white"}),r.createElement("path",{opacity:.24,d:"M45.8822 60.675C45.8249 62.4001 45.8767 64.1266 46.0376 65.8421C46.2081 67.544 46.4999 69.2309 46.9663 70.8797C47.5936 72.4493 48.4596 73.9439 49.5247 75.3663C50.6674 76.7464 51.9371 78.0801 53.294 79.362C53.8995 78.9188 54.5581 78.4169 55.2836 77.8387C56.0596 77.2291 56.9174 76.5391 57.9442 75.7236C58.5156 75.3104 59.1225 74.8767 59.7539 74.4267C60.3853 73.9767 61.0358 73.5144 61.6808 73.0575C62.9736 72.1425 64.1055 71.2847 65.0765 70.4992C64.6101 70.1774 64.1723 69.8569 63.7973 69.5241C63.2423 69.0305 62.6054 68.4754 61.9031 67.8727C61.2008 67.2686 60.4576 66.6017 59.7402 65.8735C59.0229 65.1439 58.3752 64.3147 57.827 63.4256C57.2787 62.5365 56.8574 61.586 56.5601 60.6082C56.3241 59.5677 56.1141 58.568 55.9164 57.6612C55.3218 54.9406 54.9591 53.0041 54.9591 53.0041C54.9591 53.0041 52.6789 54.9351 50.4179 56.8429C48.1555 58.7522 45.8822 60.675 45.8822 60.675Z",fill:"white"}),r.createElement("path",{d:"M101.714 138.41H42.2842C37.9564 138.41 34.4487 134.902 34.4487 130.574V94.5985C34.4487 90.2707 37.9564 86.763 42.2842 86.763H101.713C106.041 86.763 109.548 90.2707 109.548 94.5985V130.574C109.55 134.902 106.042 138.41 101.714 138.41Z",fill:"url(#paint19_linear)"}),r.createElement("path",{opacity:.4,d:"M77.8389 138.831L79.0605 101.507L66.6754 101.76L61.7888 138.831H77.8389Z",fill:"#CFD5DD"}),r.createElement("mask",{id:"mask1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:34,y:86,width:76,height:53},r.createElement("path",{d:"M101.714 138.41H42.2842C37.9564 138.41 34.4487 134.902 34.4487 130.574V94.5985C34.4487 90.2707 37.9564 86.763 42.2842 86.763H101.713C106.041 86.763 109.548 90.2707 109.548 94.5985V130.574C109.55 134.902 106.042 138.41 101.714 138.41Z",fill:"white"})),r.createElement("g",{mask:"url(#mask1)"},r.createElement("path",{opacity:.2,d:"M105.473 110.669C102.946 108.299 86.0126 107.781 68.3814 106.815C49.9821 105.806 31.6685 104.793 31.6685 104.793L32.174 98.6632L51.3203 96.8939L89.6761 97.3362L107.748 96.8939L111.603 98.4736L112.591 108.773L112.172 137.904L106.442 141.948C106.442 141.948 110.158 115.061 105.473 110.669Z",fill:"#C5C6C9"})),r.createElement("g",{filter:"url(#filter2_d)"},r.createElement("path",{d:"M40.275 94.55C45.3974 94.55 49.55 90.3974 49.55 85.275C49.55 80.1526 45.3974 76 40.275 76C35.1526 76 31 80.1526 31 85.275C31 90.3974 35.1526 94.55 40.275 94.55Z",fill:"url(#paint20_linear)"}),r.createElement("path",{opacity:.3,d:"M40.275 94.2711C35.1989 94.2711 31.0767 90.194 31.0019 85.1351C31.001 85.1821 31 85.2281 31 85.2751C31 90.3972 35.1529 94.5501 40.275 94.5501C45.3971 94.5501 49.55 90.3972 49.55 85.2751C49.55 85.2281 49.549 85.1821 49.5481 85.1361C49.4733 90.194 45.3511 94.2711 40.275 94.2711Z",fill:"#FDF356"}),r.createElement("path",{d:"M40.275 76.349C45.3396 76.349 49.4551 80.4079 49.5481 85.4495C49.549 85.391 49.55 85.3335 49.55 85.275C49.55 80.1529 45.3971 76 40.275 76C35.1529 76 31 80.1529 31 85.275C31 85.3335 31.001 85.391 31.0019 85.4495C31.0949 80.4069 35.2104 76.349 40.275 76.349Z",fill:"#FDF356"}),r.createElement("path",{opacity:.7,d:"M40.2751 76.0342C35.2584 76.0342 31.1755 80.0347 31.0432 85.0188C32.0642 85.6237 33.6699 85.1396 34.7197 84.6142C35.6227 84.1972 36.7338 84.3362 37.7059 84.4062C40.1361 84.6142 42.4972 85.6563 44.9274 85.0312C45.4135 84.8922 46.1075 84.2672 46.5936 84.6842C47.4497 85.3974 48.6 85.4598 49.5069 85.0255C49.3775 80.0385 45.2936 76.0342 40.2751 76.0342Z",fill:"url(#paint21_linear)"}),r.createElement("path",{d:"M40.275 92.4582C44.2422 92.4582 47.4582 89.2421 47.4582 85.2749C47.4582 81.3078 44.2422 78.0917 40.275 78.0917C36.3078 78.0917 33.0918 81.3078 33.0918 85.2749C33.0918 89.2421 36.3078 92.4582 40.275 92.4582Z",fill:"url(#paint22_linear)"}),r.createElement("path",{d:"M40.2752 92.1095C44.0496 92.1095 47.1094 89.0497 47.1094 85.2752C47.1094 81.5008 44.0496 78.441 40.2752 78.441C36.5007 78.441 33.4409 81.5008 33.4409 85.2752C33.4409 89.0497 36.5007 92.1095 40.2752 92.1095Z",fill:"#EE9B00"}),r.createElement("path",{d:"M40.2755 91.8307C43.8959 91.8307 46.8308 88.8958 46.8308 85.2754C46.8308 81.655 43.8959 78.7201 40.2755 78.7201C36.6551 78.7201 33.7202 81.655 33.7202 85.2754C33.7202 88.8958 36.6551 91.8307 40.2755 91.8307Z",fill:"url(#paint23_radial)"}),r.createElement("path",{opacity:.25,d:"M40.2755 91.3421C36.7131 91.3421 33.8151 88.6406 33.7221 85.1003C33.7202 85.1578 33.7202 85.2163 33.7202 85.2748C33.7202 88.8956 36.6547 91.83 40.2755 91.83C43.8964 91.83 46.8308 88.8956 46.8308 85.2748C46.8308 85.2163 46.8298 85.1588 46.8289 85.1003C46.7359 88.6406 43.8379 91.3421 40.2755 91.3421Z",fill:"#FDF356"}),r.createElement("path",{opacity:.1,d:"M44.3746 84.3716C44.3056 84.1597 44.1263 84.0082 43.9058 83.9766L41.7575 83.6641L40.7969 81.717C40.6982 81.5176 40.4988 81.393 40.2764 81.393C40.0539 81.393 39.8545 81.5167 39.7558 81.717L38.7943 83.6641L36.6459 83.9766C36.4254 84.0082 36.2462 84.1597 36.1771 84.3716C36.1081 84.5834 36.1647 84.8116 36.3238 84.9669L37.8788 86.4825L37.5116 88.6222C37.4742 88.8418 37.5624 89.0594 37.7426 89.1898C37.919 89.3182 38.1606 89.3355 38.3543 89.2339L40.2764 88.2234L42.1985 89.2339C42.2847 89.2789 42.3768 89.301 42.4698 89.301C42.5896 89.301 42.7085 89.2636 42.8101 89.1898C42.9903 89.0594 43.0785 88.8408 43.0411 88.6222L42.674 86.4825L44.2289 84.9669C44.3871 84.8116 44.4427 84.5834 44.3746 84.3716Z",fill:"#FDF356"}),r.createElement("path",{opacity:.6,d:"M44.2407 84.3449C44.1879 84.1839 44.0518 84.0688 43.884 84.0449L41.6628 83.7218L40.6697 81.7096C40.5949 81.5581 40.4434 81.4632 40.2738 81.4632C40.105 81.4632 39.9526 81.5571 39.8778 81.7096L38.8856 83.7218L36.6644 84.0449C36.4966 84.0688 36.3605 84.1839 36.3078 84.3449C36.2551 84.506 36.2982 84.6795 36.419 84.7974L37.8867 86.2939L37.5071 88.5064C37.4783 88.6733 37.5445 88.865 37.6815 88.9647C37.7592 89.0212 37.995 89.1507 38.2865 89.0414L40.2728 87.9964L42.2591 89.0404C42.4087 89.119 42.6579 89.1209 42.795 89.0212C42.9321 88.9215 43.0682 88.6723 43.0395 88.5055L42.6598 86.2929L44.1275 84.7964C44.2503 84.6795 44.2934 84.506 44.2407 84.3449Z",fill:"url(#paint24_linear)"}),r.createElement("path",{opacity:.15,d:"M44.2411 83.927C44.1884 83.7659 44.0523 83.6509 43.8845 83.6269L41.6633 83.3039L40.6701 81.2907C40.5954 81.1392 40.4439 81.0443 40.2742 81.0443C40.1055 81.0443 39.9531 81.1383 39.8783 81.2907L38.8851 83.3039L36.6639 83.6269C36.4962 83.6509 36.36 83.7659 36.3073 83.927C36.2546 84.088 36.2977 84.2616 36.4185 84.3795L38.0262 85.9459L37.6465 88.1585C37.6178 88.3253 37.6849 88.4902 37.822 88.5899C37.8996 88.6465 37.9897 88.6743 38.0808 88.6743C38.1508 88.6743 38.2217 88.657 38.2869 88.6234L40.2733 87.5785L42.2596 88.6225C42.4091 88.7011 42.5875 88.6886 42.7245 88.5889C42.8616 88.4892 42.9287 88.3243 42.9 88.1575L42.5204 85.945L44.128 84.3785C44.2507 84.2606 44.2939 84.088 44.2411 83.927Z",fill:"#EE9B00"}),r.createElement("path",{d:"M40.577 81.4768L41.5951 83.5389L43.8709 83.8696C44.147 83.9099 44.2573 84.2492 44.0579 84.4438L42.4109 86.0486L42.7991 88.3149C42.8461 88.59 42.5576 88.8 42.3112 88.6696L40.275 87.5997L38.2398 88.6696C37.9924 88.799 37.7039 88.59 37.7518 88.3149L38.1401 86.0486L36.4931 84.4438C36.2937 84.2492 36.4039 83.9099 36.68 83.8696L38.9559 83.5389L39.973 81.4768C40.0967 81.2266 40.4533 81.2266 40.577 81.4768Z",fill:"url(#paint25_linear)"}),r.createElement("path",{opacity:.3,d:"M38.1096 86.2279L37.7521 88.3149C37.7425 88.3695 37.7473 88.4223 37.7616 88.4692L38.1403 86.2576L38.1096 86.2279Z",fill:"#FDF356"}),r.createElement("path",{d:"M36.6796 84.0786L39.0945 83.7478L40.1126 81.6858C40.2363 81.4356 40.3139 81.4356 40.4376 81.6858L41.4557 83.7478L43.8705 84.0786C44.0086 84.0987 44.1044 84.1936 44.1418 84.3067C44.2032 84.1198 44.0891 83.9003 43.8705 83.8686L41.5947 83.5379L40.5766 81.4768C40.4529 81.2266 40.0963 81.2266 39.9726 81.4768L38.9555 83.5389L36.6796 83.8696C36.4611 83.9012 36.347 84.1208 36.4083 84.3077C36.4448 84.1936 36.5416 84.0987 36.6796 84.0786Z",fill:"#FDF356"}),r.createElement("path",{opacity:.3,d:"M42.4408 86.2279L42.4102 86.2576L42.7898 88.4692C42.8042 88.4213 42.809 88.3695 42.7994 88.3149L42.4408 86.2279Z",fill:"#FDF356"}),r.createElement("path",{d:"M40.577 81.4768L41.5951 83.5389L43.8709 83.8696C44.147 83.9099 44.2573 84.2492 44.0579 84.4438L42.4109 86.0486L42.7991 88.3149C42.8461 88.59 42.5576 88.8 42.3112 88.6696L40.275 87.5997L38.2398 88.6696C37.9924 88.799 37.7039 88.59 37.7518 88.3149L38.1401 86.0486L36.4931 84.4438C36.2937 84.2492 36.4039 83.9099 36.68 83.8696L38.9559 83.5389L39.973 81.4768C40.0967 81.2266 40.4533 81.2266 40.577 81.4768Z",fill:"url(#paint26_radial)"}),r.createElement("path",{d:"M43.8703 83.8696L41.5945 83.5389L40.5773 81.4768C40.4537 81.2266 40.097 81.2266 39.9734 81.4768L38.9562 83.5389L36.6804 83.8696C36.5634 83.8868 36.4762 83.9578 36.4302 84.0479C36.7187 84.4084 36.829 84.4716 37.2997 84.8033C38.7405 85.6172 42.3441 85.4773 43.344 84.6634C43.716 84.3604 43.8492 84.3202 44.0745 83.9789C44.0256 83.9233 43.9556 83.882 43.8703 83.8696Z",fill:"url(#paint27_linear)"})),r.createElement("path",{d:"M112.462 102.447H31.5376C30.7204 102.447 30.0576 101.784 30.0576 100.967V88.2421C30.0576 87.4248 30.7204 86.762 31.5376 86.762H112.462C113.279 86.762 113.942 87.4248 113.942 88.2421V100.967C113.941 101.786 113.278 102.447 112.462 102.447Z",fill:"url(#paint28_linear)"}),r.createElement("path",{d:"M66.8016 84.8254L66.3804 103.614L79.2288 103.445L81.1666 84.8254H66.8016Z",fill:"#D9DEE4"}),r.createElement("path",{d:"M85.583 90.9073L85.9537 92.6078C86.0014 92.8283 86.0871 93.0417 86.2149 93.2285C86.2191 93.2355 86.2233 93.2411 86.2289 93.2481C86.4746 93.5964 86.851 93.8295 87.2652 93.9278L89.0261 94.3504C89.1525 94.4192 89.1525 94.6004 89.0261 94.6692L87.2652 95.0919C86.851 95.1916 86.4746 95.4247 86.2289 95.7715C86.2247 95.7785 86.2205 95.7841 86.2149 95.7911C86.0857 95.9779 86.0014 96.1914 85.9537 96.4118L85.583 98.1123C85.5142 98.2387 85.333 98.2387 85.2642 98.1123L84.8935 96.4118C84.8458 96.1914 84.7601 95.9779 84.6323 95.7911C84.6281 95.7841 84.6239 95.7785 84.6183 95.7715C84.3725 95.4233 83.9962 95.1902 83.582 95.0919L81.8211 94.6692C81.6947 94.6004 81.6947 94.4192 81.8211 94.3504L83.582 93.9278C83.9962 93.8281 84.3725 93.595 84.6183 93.2481C84.6225 93.2411 84.6267 93.2355 84.6323 93.2285C84.7615 93.0417 84.8458 92.8283 84.8935 92.6078L85.2642 90.9073C85.333 90.7824 85.5142 90.7824 85.583 90.9073Z",fill:"#FFCF4B"}),r.createElement("path",{d:"M95.7117 96.6167L96.3576 99.5726C96.4419 99.9573 96.5893 100.328 96.8126 100.651C96.821 100.662 96.828 100.673 96.8364 100.685C97.2633 101.29 97.9191 101.694 98.638 101.867L101.699 102.603C101.918 102.722 101.918 103.037 101.699 103.156L98.638 103.892C97.9177 104.065 97.2633 104.47 96.8364 105.074C96.828 105.085 96.821 105.097 96.8126 105.108C96.5893 105.432 96.4419 105.803 96.3576 106.186L95.7117 109.142C95.5923 109.361 95.2778 109.361 95.1584 109.142L94.5125 106.186C94.4282 105.802 94.2808 105.431 94.0575 105.108C94.0491 105.097 94.0421 105.085 94.0336 105.074C93.6068 104.469 92.951 104.065 92.2321 103.892L89.1709 103.156C88.9518 103.037 88.9518 102.722 89.1709 102.603L92.2321 101.867C92.9524 101.694 93.6068 101.289 94.0336 100.685C94.0421 100.673 94.0491 100.662 94.0575 100.651C94.2808 100.327 94.4282 99.9559 94.5125 99.5726L95.1584 96.6167C95.2778 96.3991 95.5923 96.3991 95.7117 96.6167Z",fill:"#FFCF4B"}))),Ew||(Ew=r.createElement("defs",null,r.createElement("filter",{id:"filter0_d",x:-15,y:16,width:174,height:176,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r.createElement("feOffset",{dy:21}),r.createElement("feGaussianBlur",{stdDeviation:9.5}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.01 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r.createElement("filter",{id:"filter1_dd",x:.0576172,y:.474609,width:154.764,height:177.356,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r.createElement("feOffset",{dy:9}),r.createElement("feGaussianBlur",{stdDeviation:15}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r.createElement("feOffset",{dy:2}),r.createElement("feGaussianBlur",{stdDeviation:6}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow",result:"effect2_dropShadow"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow",result:"shape"})),r.createElement("filter",{id:"filter2_d",x:28,y:73,width:24.55,height:24.5501,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:1.5}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})),r.createElement("linearGradient",{id:"paint0_linear",x1:140,y1:83.8621,x2:4,y2:83.8621,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#F3F4F5"}),r.createElement("stop",{offset:.520833,stopColor:"#DFE0E1"}),r.createElement("stop",{offset:.963542,stopColor:"#F3F4F5"})),r.createElement("linearGradient",{id:"paint1_linear",x1:25.5171,y1:27.8622,x2:167.52,y2:220.555,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#F3F4F5"}),r.createElement("stop",{offset:.520833,stopColor:"#DFE0E1"}),r.createElement("stop",{offset:.963542,stopColor:"#F3F4F5"})),r.createElement("linearGradient",{id:"paint2_linear",x1:72.138,y1:152,x2:72.138,y2:79.1724,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#494949"}),r.createElement("stop",{offset:1,stopColor:"#494949",stopOpacity:0})),r.createElement("linearGradient",{id:"paint3_linear",x1:42.0005,y1:37.9996,x2:124,y2:58.9996,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:1,stopColor:"#FBFBFB"})),r.createElement("linearGradient",{id:"paint4_linear",x1:79.8327,y1:39.8653,x2:79.8327,y2:58.2702,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FB4764"}),r.createElement("stop",{offset:1,stopColor:"#FF5050"})),r.createElement("linearGradient",{id:"paint5_linear",x1:81.13,y1:60,x2:81.13,y2:92.26,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#F8DF00"}),r.createElement("stop",{offset:.1397,stopColor:"#FCE900"}),r.createElement("stop",{offset:.3031,stopColor:"#FFEF00"}),r.createElement("stop",{offset:1,stopColor:"#F3A700"})),r.createElement("linearGradient",{id:"paint6_linear",x1:81.1306,y1:89.5742,x2:81.1306,y2:66.1666,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFFAB0"}),r.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),r.createElement("linearGradient",{id:"paint7_linear",x1:81.1299,y1:88.6214,x2:81.1299,y2:57.9274,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE100"}),r.createElement("stop",{offset:.168,stopColor:"#FDD600"}),r.createElement("stop",{offset:.6978,stopColor:"#F7B900"}),r.createElement("stop",{offset:1,stopColor:"#F5AE00"})),r.createElement("radialGradient",{id:"paint8_radial",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(81.2515 66.3068) scale(22.9223)"},r.createElement("stop",{offset:.3085,stopColor:"#FFDF00"}),r.createElement("stop",{offset:1,stopColor:"#F3A700"})),r.createElement("linearGradient",{id:"paint9_linear",x1:81.1297,y1:82.7797,x2:81.1297,y2:69.5011,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#EE9B00"}),r.createElement("stop",{offset:.612,stopColor:"#F3B500"}),r.createElement("stop",{offset:1,stopColor:"#F5C000"})),r.createElement("linearGradient",{id:"paint10_linear",x1:81.1297,y1:69.1982,x2:81.1297,y2:91.7312,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFEF00"}),r.createElement("stop",{offset:.7267,stopColor:"#FAC800"}),r.createElement("stop",{offset:1,stopColor:"#F7CF00"})),r.createElement("radialGradient",{id:"paint11_radial",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(81.0084 66.5342) scale(11.4002)"},r.createElement("stop",{stopColor:"#FFF66E"}),r.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),r.createElement("linearGradient",{id:"paint12_linear",x1:81.0904,y1:81.9647,x2:81.0904,y2:73.95,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFFAB0"}),r.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),r.createElement("linearGradient",{id:"paint13_linear",x1:85.858,y1:110.197,x2:93.2417,y2:100.371,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#70E1E3"}),r.createElement("stop",{offset:1,stopColor:"#70E1E3",stopOpacity:0})),r.createElement("linearGradient",{id:"paint14_linear",x1:88,y1:89,x2:118.615,y2:92.5259,gradientUnits:"userSpaceOnUse"},r.createElement("stop",null),r.createElement("stop",{offset:1e-4}),r.createElement("stop",{offset:1,stopOpacity:0})),r.createElement("linearGradient",{id:"paint15_linear",x1:89.5099,y1:110.779,x2:104.244,y2:97.0257,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#70E1E3"}),r.createElement("stop",{offset:1,stopColor:"#70E1E3",stopOpacity:0})),r.createElement("linearGradient",{id:"paint16_linear",x1:82.7751,y1:104.743,x2:97.2471,y2:91.2356,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#70E1E3"}),r.createElement("stop",{offset:1,stopColor:"#70E1E3",stopOpacity:0})),r.createElement("linearGradient",{id:"paint17_linear",x1:98.7031,y1:79.9839,x2:104.346,y2:70.5697,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#70E1E3"}),r.createElement("stop",{offset:1e-4}),r.createElement("stop",{offset:1,stopOpacity:0})),r.createElement("linearGradient",{id:"paint18_linear",x1:108.969,y1:80.8514,x2:111.754,y2:75.0933,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#70E1E3"}),r.createElement("stop",{offset:1e-4}),r.createElement("stop",{offset:1,stopOpacity:0})),r.createElement("linearGradient",{id:"paint19_linear",x1:70.6558,y1:87.5476,x2:5.32331,y2:130.023,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:1,stopColor:"#FBFBFB"})),r.createElement("linearGradient",{id:"paint20_linear",x1:40.275,y1:76,x2:40.275,y2:94.55,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#F8DF00"}),r.createElement("stop",{offset:.1397,stopColor:"#FCE900"}),r.createElement("stop",{offset:.3031,stopColor:"#FFEF00"}),r.createElement("stop",{offset:1,stopColor:"#F3A700"})),r.createElement("linearGradient",{id:"paint21_linear",x1:40.2752,y1:93.0056,x2:40.2752,y2:79.5458,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFFAB0"}),r.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),r.createElement("linearGradient",{id:"paint22_linear",x1:40.275,y1:92.4578,x2:40.275,y2:74.8083,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE100"}),r.createElement("stop",{offset:.168,stopColor:"#FDD600"}),r.createElement("stop",{offset:.6978,stopColor:"#F7B900"}),r.createElement("stop",{offset:1,stopColor:"#F5AE00"})),r.createElement("radialGradient",{id:"paint23_radial",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(40.3452 79.6267) scale(13.1807)"},r.createElement("stop",{offset:.3085,stopColor:"#FFDF00"}),r.createElement("stop",{offset:1,stopColor:"#F3A700"})),r.createElement("linearGradient",{id:"paint24_linear",x1:40.2747,y1:89.0989,x2:40.2747,y2:81.4634,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#EE9B00"}),r.createElement("stop",{offset:.612,stopColor:"#F3B500"}),r.createElement("stop",{offset:1,stopColor:"#F5C000"})),r.createElement("linearGradient",{id:"paint25_linear",x1:40.275,y1:81.2892,x2:40.275,y2:94.246,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFEF00"}),r.createElement("stop",{offset:.7267,stopColor:"#FAC800"}),r.createElement("stop",{offset:1,stopColor:"#F7CF00"})),r.createElement("radialGradient",{id:"paint26_radial",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(40.2053 79.7574) scale(6.55529)"},r.createElement("stop",{stopColor:"#FFF66E"}),r.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),r.createElement("linearGradient",{id:"paint27_linear",x1:40.2523,y1:88.6302,x2:40.2523,y2:84.0216,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFFAB0"}),r.createElement("stop",{offset:1,stopColor:"white",stopOpacity:0})),r.createElement("linearGradient",{id:"paint28_linear",x1:70.5,y1:87.0003,x2:55.0452,y2:123.955,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:1,stopColor:"#FBFBFB"})))))}var Lw=r.forwardRef(Dw),Fw=(n.p,Db("affiliate-program-page")),Uw=function(e){var t=e.referrals,n=e.render,r=Math.ceil(t.length/5);return Object(kb.jsx)(Hw,{totalPages:r,content:function(e){return t.slice(5*e,5*(e+1)).map(n)},componentName:"FriendListItem",customClass:Fw()})},Bw=function(e){var t=e.affiliate_email,n=e.affiliate_subscribed_zipup_timestamp,r=e.transfer_bonus_timestamp;return Object(kb.jsx)(Vw,{username:t,statusComponent:Object(kb.jsx)(Zw,{isSignedUp:n,isBonusPaid:r})},t)},zw=function(e){var t=e.referrals;return Object(kb.jsx)(Uw,{referrals:t,render:Bw})},Gw=function(e){var t=e.insertedAt,n=e.invitedUserEmail,r=e.invitedUserPassedKyc,a=e.invitedUserStakedMinimumAmount,c=e.referringUserRewardAmountPaid,i=e.referringUserRewardTransferedAt;return Object(kb.jsx)(Vw,{username:n,statusComponent:Object(kb.jsx)(qw,{registeredAt:t,isKyced:r,isLocked:a,bonusAmount:c,paidAt:i})},n)},Ww=function(e){var t=e.referrals;return Object(kb.jsx)(Uw,{referrals:t,render:Gw})},Zw=function(e){var t=e.isBonusPaid,n=e.isSignedUp,r=Object(_j.a)().t;return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsxs)("div",{className:Fw("status-texts"),children:[Object(kb.jsxs)(Yw,{margin:"-3px 0 10px 0",children:[Object(kb.jsx)(Kw,{status:!0})," ",r("Registered")]}),Object(kb.jsxs)(Yw,{margin:"0 0 10px 0",children:[Object(kb.jsx)(Kw,{status:n})," ",r("Signed up to ZipUp")]}),Object(kb.jsxs)(Yw,{margin:"0 0 10px 0",children:[Object(kb.jsx)(Kw,{status:t})," ",r("Paid referral bonus")]})]})})},qw=function(e){var t=e.registeredAt,n=e.isKyced,r=e.isLocked,a=e.bonusAmount,c=e.paidAt,i=Object(_j.a)().t;return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsxs)("div",{children:[Object(kb.jsxs)(Yw,{margin:"-3px 0 10px 0",children:[Object(kb.jsx)(Kw,{status:!0})," ",i("Registered")," ",i("on")," ",Object(mO.b)(t,"YYYY/MM/DD")]}),Object(kb.jsxs)(Yw,{margin:"0 0 10px 0",children:[Object(kb.jsx)(Kw,{status:n})," ",i("Completed the KYC")]}),Object(kb.jsxs)(Yw,{margin:"0 0 10px 0",children:[Object(kb.jsx)(Kw,{status:r})," ",i("Locked eligible amount of ZMT in ZipLock")]}),Object(kb.jsxs)(Yw,{children:[Object(kb.jsx)(Kw,{status:a})," ",a?i("Paid {bonusAmount} referral bonus",{bonusAmount:"".concat(a," ZMT")}):i("Paid referral bonus"),c&&" ".concat(i("on")," ").concat(Object(mO.b)(c,"YYYY/MM/DD"))]})]})})},Vw=function(e){var t=e.username,n=e.statusComponent;return Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 8px 0",children:[Object(kb.jsx)("div",{children:Object(kb.jsx)("div",{className:Fw("email"),children:Object(kb.jsx)(Yw,{margin:"0 0 10px 0",fontWeight:"bold",children:t})})}),Object(kb.jsx)("div",{className:Fw("status"),children:n})]})},_w=function(e){var t=e.status,n=e.className;return t?Object(kb.jsx)(Ij,{name:"green-check",customClass:n}):Object(kb.jsx)(Ij,{name:"warning-check",customClass:n})},Hw=Object(Tb.a)(wC,{target:"es6dy8d0"})(".pagination__container{background:",Po.a.bg_tertiary,";border:none;}"),Yw=Object(Tb.a)(Tj.d,{target:"es6dy8d1"})("font-size:",Tj.h.small,";word-break:break-word;display:flex;align-items:center;"),Kw=Object(Tb.a)(_w,{target:"es6dy8d2"})("height:",Tj.h.h4,";width:",Tj.h.h4," !important;margin-right:",Tj.h.tiny,";vertical-align:middle;");var Qw=Db("affiliate-program-page"),Jw=function(e){return[e.invitedUserEmail,e.invitedUserPassedKyc,e.invitedUserStakedMinimumAmount,e.referringUserRewardAmountPaid].every(Boolean)},Xw=function(e){var t=e.invitedUserEmail,n=e.invitedUserPassedKyc,r=e.invitedUserStakedMinimumAmount,a=e.referringUserRewardAmountPaid;return!Jw({invitedUserEmail:t,invitedUserPassedKyc:n,invitedUserStakedMinimumAmount:r,referringUserRewardAmountPaid:a})},$w=function(e){var t,n=e.sessionToken,a=Object(s.f)((function(e){return e.user.zmUserInfo})),c=(t=null===a||void 0===a?void 0:a.signupHostname).includes("co.th")?lf:t.includes("co.id")?uf:t.includes("com.au")?"au":"",i=function(e){switch(e){case uf:return{referralHeading:Ae.c.extractT("Refer a Friend. Earn Bonus Crypto."),referralDescription:Ae.c.extractT("You and your friend will earn bonus crypto for every friend that signs up and trade crypto."),referralCondition:[Ae.c.extractT("Your friend signs up using your referral code."),Ae.c.extractT("Complete KYC process"),Ae.c.extractT("Deposit Rupiah"),Ae.c.extractT("Buy / Sell crypto")],referralConditionLearnMoreLink:"id-ID"===Ae.c.language?"https://zipmex.com/id/earn-referral/":"https://zipmex.com/id/en/earn-referral/",friendBenefit:Ae.c.extractT("Your friend will earn ZMT and also receive up to {rate}% {APY} ZipLock rates into their wallet daily - plus a bonus of 5 ZMT!"),buyZmtStep:Ae.c.extractT("Buy ZMT, go to ZipLock and put the amount of ZMT you would like to lock, lock 100 ZMT, earn 5 ZMT instantly!")};default:return{referralHeading:Ae.c.extractT("Refer a friend. Earn together."),referralDescription:Ae.c.extractT("Invite your friends to sign up on Zipmex with your referral code. When they lock, you both earn a ZMT bonus. Plus, you get an exclusive gift when your friend locks 5,000 ZMT."),referralCondition:[Ae.c.extractT("Lock 250 ZMT & you both earn 2.5 ZMT each - instantly!"),Ae.c.extractT("Lock 5,000 ZMT & you both earn 25 ZMT each, plus a special gift*")],friendBenefit:Ae.c.extractT("Your friend will also receive up to {rate}% {APY} ZipLock rates into their wallet every day - plus, 2.5 ZMT / 25 ZMT bonus!"),benefitRemark:Ae.c.extractT("*ZMT will be airdropped to your wallet within 14 working days after your friend has locked ZMT under the campaign conditions."),buyZmtStep:Ae.c.extractT("Buy ZMT and lock with our ZipLock feature")}}}(c),o=i.referralHeading,l=i.referralDescription,u=i.referralCondition,d=i.referralConditionLearnMoreLink,b=i.friendBenefit,p=i.benefitRemark,j=i.buyZmtStep,m=Object(_j.a)().t,f=Object(r.useState)([]),h=Object(J.a)(f,2),O=h[0],g=h[1],v=Object(r.useState)([]),y=Object(J.a)(v,2),C=y[0],w=y[1],S=Object(r.useState)(!1),I=Object(J.a)(S,2),A=I[0],P=I[1],T=Object(r.useState)(!1),E=Object(J.a)(T,2),R=E[0],N=E[1],M=Fe.a.global.zipUp.APY||"APY";Object(r.useEffect)((function(){return function(){var e=Object(V.a)(q.a.mark((function e(){var t,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),t=function(){var e=Object(V.a)(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ci(n);case 3:t=e.sent,w(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),r=function(){var e=Object(V.a)(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(x.u)({token:window.localStorage.getItem("zmToken")});case 3:t=e.sent,g(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),e.prev=3,e.next=6,Promise.all([t(),r()]);case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(3);case 10:P(!1);case 11:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(){return e.apply(this,arguments)}}()(),function(){ci.cancel()}}),[]);var D=Object(r.useMemo)((function(){return O.map((function(e){return e.invitedUserEmail}))}),[O]),F=Object(r.useMemo)((function(){return C.filter((function(e){var t=e.affiliate_email;return!D.includes(t)}))}),[C,D]),U=R?F:O,B=Object(r.useMemo)((function(){return O.map((function(e){return e.referringUserRewardAmountPaid})).filter(Boolean).reduce((function(e,t){return e.plus(t)}),new k.a(0)).toString()}),[O]),z=Object(r.useMemo)((function(){var e=U.filter(Xw),t=U.filter(Jw);return[{id:"in-progress",menuItem:m("In Progress ({total})",{total:e.length}),render:function(){return Object(kb.jsx)(Ww,{referrals:e})}},{id:"completed",menuItem:m("Completed ({total})",{total:t.length}),render:function(){return Object(kb.jsx)(Ww,{referrals:t})}}]}),[U,m]);return Object(kb.jsx)("div",{children:Object(kb.jsxs)("div",{className:Qw(),children:[Object(kb.jsxs)(sf,{margin:"20px 0 15px 0",children:[Object(kb.jsx)(Tj.d,{align:"center",children:Object(kb.jsx)(Lw,{})}),Object(kb.jsx)(Tj.b,{as:"h2",align:"center",margin:"0 0 15px 0",children:m(o)}),Object(kb.jsx)(sS,{children:m(l)})]}),c!==uf&&u&&Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:m("Conditions")}),Object(kb.jsx)(eS,{children:u.map((function(e,t){return Object(kb.jsx)("li",{children:Object(kb.jsxs)(Tj.d,{margin:"1rem 0",children:[Object(kb.jsx)(Tj.c,{color:Po.a.bg_success,children:Object(kb.jsx)(tS,{})}),m(e)]})},t)}))})]}),Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:m("Your Referral Code")}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,children:Object(kb.jsxs)("div",{className:Qw("description"),children:[Object(kb.jsxs)(Tj.b,{as:"h2",color:Po.a.text_body,margin:"0 0 20px 0",children:[a.referralCode," "]}),Object(kb.jsx)(Cw,{affiliateTag:a.referralCode,route:"".concat(window.location.origin).concat(Object(wb.a)(""),"/accounts/sign-up?aff=")})]})})]}),c===uf&&u&&Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:m("How to earn bonus crypto")}),Object(kb.jsx)(eS,{children:u.map((function(e,t){return Object(kb.jsx)("li",{children:Object(kb.jsxs)(nS,{children:[Object(kb.jsx)(rS,{children:t+1}),Object(kb.jsx)(Tj.d,{children:m(e)})]})},t)}))}),Object(kb.jsx)(oS,{href:d,target:"_blank",children:m("Learn more")})]}),c!==uf&&Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:m("3 Simple Steps for Your Friends")}),Object(kb.jsxs)("div",{children:[Object(kb.jsxs)("div",{children:[Object(kb.jsxs)(Tj.d,{children:["1."," ",Object(kb.jsx)(Tj.c,{color:Po.a.text_highlight,children:m("Sign up to Zipmex using your referral code")})]}),Object(kb.jsxs)(Tj.d,{children:["2."," ",Object(kb.jsx)(Tj.c,{color:Po.a.text_highlight,children:m("Complete the KYC process")})]}),Object(kb.jsxs)(Tj.d,{children:["3. ",Object(kb.jsx)(Tj.c,{color:Po.a.text_highlight,children:m(j)})]})]}),Object(kb.jsx)(Tj.d,{margin:"2rem 0 0 0",children:m(b,{APY:M,rate:14})}),Object(kb.jsx)("div",{children:Object(kb.jsx)(Tj.d,{margin:"2rem 0 0 0",children:m("Share your referral code and start earning!")})}),p&&Object(kb.jsx)(Tj.f,{margin:"2rem 0 0 0",children:m(p)}),Object(kb.jsx)(Tj.f,{margin:"1rem 0 0 0",children:m("Only non-corporate accounts are eligible to participate as referrers/referees under this program.")})]})]}),c!==uf&&Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:m("Friends")}),Object(kb.jsx)("div",{className:Qw("previous-referral-program-link"),children:!A&&F.length>0&&Object(kb.jsx)("a",{href:"#",onClick:function(e){e.preventDefault(),N(!R)},children:R?Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",color:Po.a.text_highlight,children:m("Click here to show current campaign friend list")}):Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",color:Po.a.text_highlight,children:m("Click here to show previous campaign friend list registered before 1st April 2021")})})}),R?Object(kb.jsxs)(cS,{children:[Object(kb.jsx)(Tj.f,{margin:"0 0 4px 0",children:m("Number of previous campaign friends")}),Object(kb.jsxs)(Tj.b,{as:"h3",children:[" ",U.length]})]}):Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsxs)(aS,{children:[Object(kb.jsxs)(cS,{children:[Object(kb.jsx)(Tj.f,{margin:"0 0 4px 0",children:m("Number of friends")}),Object(kb.jsx)(Tj.b,{as:"h3",children:U.length})]}),Object(kb.jsxs)(iS,{children:[Object(kb.jsx)(Tj.f,{margin:"0 0 4px 0",children:m("Total bonus")}),Object(kb.jsxs)(Tj.b,{as:"h3",children:[L(B)," ZMT"]})]})]})})]}),!!U.length&&Object(kb.jsx)("div",{className:Qw("friend-list"),children:R?Object(kb.jsx)(zw,{referrals:U}):Object(kb.jsx)(Yx,{panes:z})})]})]})})},eS=Object(Tb.a)("ul",{target:"e1nxppxw0"})("padding-left:0;color:",Po.a.text_body,";list-style-type:none;"),tS=Object(Tb.a)(Rw,{target:"e1nxppxw1"})({name:"1nn2di5",styles:"height:13px;width:13px;margin-right:10px;"}),nS=Object(Tb.a)("div",{target:"e1nxppxw2"})({name:"a446m1",styles:"display:flex;margin:1rem 0;"}),rS=Object(Tb.a)("div",{target:"e1nxppxw3"})("height:",Tj.i.paragraph,";line-height:",Tj.i.paragraph,";flex:0 0 ",Tj.i.paragraph,";vertical-align:middle;border-radius:50%;text-align:center;background:",Po.a.bg_success,";margin-right:",Tj.h.tiny,";color:",Po.a.text_white,";"),aS=Object(Tb.a)("div",{target:"e1nxppxw4"})({name:"18shd61",styles:"display:grid;grid-template-columns:minmax(8%,130px) repeat(auto-fit,50%);"}),cS=Object(Tb.a)("div",{target:"e1nxppxw5"})({name:"15poin4",styles:"margin-bottom:15px;"}),iS=Object(Tb.a)("div",{target:"e1nxppxw6"})("margin-bottom:15px;border-left:2px solid ",Po.a.text_highlight,";padding-left:20px;"),sS=Object(Tb.a)(Tj.d,{target:"e1nxppxw7"})({name:"harrmt",styles:"max-width:650px;margin:0 auto 15px auto;text-align:center;"}),oS=Object(Tb.a)("a",{target:"e1nxppxw8"})(Tj.e," text-decoration:underline;margin-top:1rem;"),lS=Ab(Object(s.c)((function(e){return{sessionToken:e.auth.token}}),(function(e){return{showSnack:function(t){return e(sr({id:"affiliateCopyTage",text:t,type:"success"}))}}}))($w));var uS=function(e){var t=e.userInfo,n=e.logout,r=Object(_j.a)().t;return Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)(pS,{margin:"0 0 16px 0",children:[Object(kb.jsx)(Tj.d,{children:t.email}),Object(kb.jsx)(Pm,{onClick:n,size:"small",variant:"outlined",children:r("Sign out ")})]})})};uS.contextTypes={t:O.a.func.isRequired};var dS,bS=uS,pS=Object(Tb.a)(sf,{target:"e1ld4hit0"})({name:"69i1ev",styles:"display:flex;justify-content:space-between;align-items:center;"}),jS={logout:vo},mS=Object(s.c)((function(e){return{userInfo:It(e)}}),jS)(bS);function fS(){return(fS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hS(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function OS(e,t){var n=e.title,a=e.titleId,c=hS(e,["title","titleId"]);return r.createElement("svg",fS({xmlns:"http://www.w3.org/2000/svg",width:6,height:10,viewBox:"0 0 6 10",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,dS||(dS=r.createElement("g",{fill:"none",fillRule:"nonzero"},r.createElement("path",{d:"M-5-3h16v16H-5z"}),r.createElement("path",{fill:"currentColor",d:"M.293 8.293L3.586 5 .293 1.707A1 1 0 0 1 1.707.293l4 4a1 1 0 0 1 0 1.414l-4 4A1 1 0 1 1 .293 8.293z"}))))}var xS=r.forwardRef(OS),gS=(n.p,function(e){var t=e.tabName,n=e.to,r=e.onClick;return Object(kb.jsxs)(vS,{onClick:r,to:n,children:[Object(kb.jsx)(Tj.d,{children:t}),Object(kb.jsx)(yS,{})]})}),vS=Object(Tb.a)(Zj.b,{target:"ehn94cb0"})("display:flex;justify-content:space-between;cursor:pointer;text-align:center;border-radius:12px;position:relative;background:",Po.a.bg_secondary,";padding:15px 15px;margin-bottom:15px;text-align:left;align-items:center;"),yS=Object(Tb.a)(xS,{target:"ehn94cb1"})("color:",Po.a.text_highlight,";"),CS=n(1299),wS=function(e){var t=e.level,n=e.stackedAmount,r=e.className,a={ZIP_STARTER:Ae.c.extractT("Buy and lock <0>{amount} more</0> ZMT to become a ZipMember with more benefits."),ZIP_MEMBER:Ae.c.extractT("Buy and lock <0>{amount} more</0> ZMT to become a ZipCrew with more benefits."),ZIP_CREW:Ae.c.extractT("You are now at the top level of membership.")},c={ZIP_STARTER:qo.ZIP_MEMBER-n,ZIP_MEMBER:qo.ZIP_CREW-n,ZIP_CREW:0};return Object(kb.jsx)(Tj.c,{className:r,fontSize:"14px",color:Po.a.text_body,children:Object(kb.jsx)(CS.a,{i18nKey:a[t],components:[Object(kb.jsx)(Tj.c,{fontSize:"14px",color:Sh[t].text,fontWeight:"bold"})],values:{amount:c[t].toString()}})})};var SS=function(e){var t=e.level,n=e.stakedAmount,r=Object(_j.a)().t;return t?Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(Tj.b,{as:"h2",weight:"600",children:[Object(kb.jsx)(kS,{children:r("You are a")}),Object(kb.jsx)(AS,{children:Object(kb.jsx)(wh,{level:t})}),Object(kb.jsx)(IS,{color:Sh[t].text,children:Vo[t]})]}),Object(kb.jsx)(PS,{level:t,stackedAmount:n})]}):null},kS=Object(Tb.a)("span",{target:"e2muki10"})({name:"h7x4mu",styles:"display:block;margin-bottom:9px;@media (min-width:580px){display:inline-block;margin-right:20px;margin-bottom:none;}"}),IS=Object(Tb.a)(Tj.c,{target:"e2muki11"})({name:"os48u",styles:"letter-spacing:0.01em;font-size:26px;@media (min-width:900px){font-size:32px;}"}),AS=Object(Tb.a)("span",{target:"e2muki12"})({name:"stigyt",styles:"margin-right:10px;svg{margin-bottom:-5px;}"}),PS=Object(Tb.a)(wS,{target:"e2muki13"})({name:"1cr6n62",styles:"margin-top:24px;display:block;@media (min-width:580px){margin-top:14px;}"});var TS=function(){var e=Object(_j.a)().t,t=Object(l.g)();return Object(kb.jsxs)(ES,{children:[Object(kb.jsx)(Pm,{borderRadius:"6px",fontSize:"16px",onClick:function(){return t.push("/buy/ZMT")},children:e("Buy ZMT")}),Object(kb.jsx)(Pm,{borderRadius:"6px",fontSize:"16px",onClick:function(){return t.push("/wallets/ziplock")},children:e("Lock ZMT and earn {rate}% APY",{rate:14})})]})},ES=Object(Tb.a)("div",{target:"e8w12k0"})({name:"1mf9zid",styles:"display:flex;flex-direction:column;align-items:stretch;& > button:not(:last-child){margin-bottom:20px;}@media (min-width:450px){flex-direction:row;align-items:center;& > button:not(:last-child){margin-right:30px;margin-bottom:0;}}"});var RS=Ab((function(){var e,t,n=df(),r=Object(_j.a)().t,a=(null===(e=Fe.a.global.zipCrew)||void 0===e?void 0:e.termsAndConditions[Ae.c.language])||(null===(t=Fe.a.global.zipCrew)||void 0===t?void 0:t.termsAndConditions[Ae.a]),c=Object(s.f)((function(e){var t;return null===(t=e.zipCrewSlice)||void 0===t?void 0:t.status})),i=(null===c||void 0===c?void 0:c.stakedAmount)||"0",o=parseInt(i,10),l=Ae.c.extractT("Here are your benefits as a {memberLevel}");return Object(kb.jsxs)(kb.Fragment,{children:[(null===c||void 0===c?void 0:c.tier)&&Object(kb.jsx)(NS,{"data-testid":"your-member-level-section",children:Object(kb.jsx)(SS,{level:c.tier,stakedAmount:o})}),Object(kb.jsxs)(MS,{children:[Object(kb.jsx)(DS,{as:"h2",children:Object(kb.jsx)(CS.a,{i18nKey:l,values:{memberLevel:Vo[null===c||void 0===c?void 0:c.tier]}})}),Object(kb.jsx)(Zg,{instance:n}),Object(kb.jsx)(LS,{children:Object(kb.jsx)(FS,{href:a,target:"_blank",children:r("Terms & Conditions")})}),Object(kb.jsx)(TS,{})]})]})})),NS=Object(Tb.a)("section",{target:"ezvm3gl0"})({name:"n8bcmw",styles:"margin-top:50px;@media (min-width:900px){margin-top:57px;}"}),MS=Object(Tb.a)("section",{target:"ezvm3gl1"})({name:"13448ee",styles:"margin-top:30px;margin-bottom:98px;@media (min-width:900px){margin-top:52px;}"}),DS=Object(Tb.a)(Tj.b,{target:"ezvm3gl2"})({name:"19bzubh",styles:"margin-bottom:17px;@media (min-width:900px){margin-bottom:36px;}"}),LS=Object(Tb.a)("div",{target:"ezvm3gl3"})({name:"3y3sta",styles:"text-align:center;margin-top:20px;margin-bottom:16px;@media (min-width:450px){text-align:right;}"}),FS=Object(Tb.a)("a",{target:"ezvm3gl4"})(Tj.e," font-size:12px;");var US=Ab(Uh((function(e){var t=e.width,n=Object(_j.a)().t,r=t<=Pf.b.tablet,c=[{text:n("Profile & Security"),path:"/settings/user",component:jC,enabled:Fe.a.Settings.profile},{text:n("Verification Level"),path:"/settings/verification",component:dw,enabled:Fe.a.Settings.verification},{text:n("Member Level"),path:"/settings/member-level",component:RS,enabled:Ih(Ac.a.get("REACT_APP_FEATURE_MEMBER_TIER"))},{text:n("Trade Reports"),path:"/settings/trade-reports",component:_C,enabled:Fe.a.Settings.tradeReports},{text:n("Referral Program"),path:"/settings/affiliate",component:lS,enabled:Fe.a.Settings.affiliate}].filter((function(e){var t=e.enabled;return void 0===t||t}));return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)($h,{}),Object(kb.jsxs)(tO.a,{children:[Object(kb.jsx)(eO.a,{children:n("Settings")}),r?Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/settings/*"),render:function(){return Object(kb.jsx)(Tg,{to:"/settings"})}}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/settings"),render:function(){return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(mS,{}),Object(kb.jsx)(BS,{children:c.map((function(e,t){return Object(kb.jsx)(gS,{tabName:n(e.text),to:e.path},t)}))})]})}})]}):Object(kb.jsx)(zS,{children:c.map((function(e,t){return Object(kb.jsx)(qj,{tabName:n(e.text),to:e.path},t)}))}),Object(kb.jsxs)(l.d,{children:[c.map((function(e){return Object(kb.jsx)(l.b,{path:Object(wb.a)(e.path),component:e.component},e.path)})),!r&&Object(kb.jsx)(l.a,{to:Object(wb.a)("/settings/user")})]})]}),Object(kb.jsx)(nO.a,{})]})}))),BS=Object(Tb.a)("div",{target:"edkcrp60"})({name:"j7qwjs",styles:"display:flex;flex-direction:column;"}),zS=Object(Tb.a)("div",{target:"edkcrp61"})({name:"k008qs",styles:"display:flex;"}),GS=(n(612),O.a.shape({OMSId:O.a.number,InstrumentId:O.a.number.isRequired,Symbol:O.a.string.isRequired,Product1:O.a.number.isRequired,Product1Symbol:O.a.string.isRequired,Product2:O.a.number.isRequired,Product2Symbol:O.a.string.isRequired,InstrumentType:O.a.string.isRequired,VenueInstrumentId:O.a.number.isRequired,VenueId:O.a.number.isRequired,SortIndex:O.a.number.isRequired,SessionStatus:O.a.string.isRequired,PreviousSessionStatus:O.a.string.isRequired,SessionStatusDateTime:O.a.string.isRequired,SelfTradePrevention:O.a.bool.isRequired,QuantityIncrement:O.a.number.isRequired}),n(1059),Db("instrument-selector")),WS=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).runLevel1Updates=function(){return r.updateLevel1=!0},r.stopLevel1Updates=function(){return r.updateLevel1=!1},r.updateLevel1=!0,r}return Object(d.a)(n,[{key:"shouldComponentUpdate",value:function(e){return this.updateLevel1||this.props.open!==e.open}},{key:"render",value:function(){var e=this.props,t=e.selectedInstrument,n=e.toggleInstrumentSelector,r=e.open;return Object(kb.jsxs)("button",{className:GS("trigger"),onMouseOver:this.stopLevel1Updates,onMouseOut:this.runLevel1Updates,onClick:n,children:[Object(kb.jsx)("span",{className:GS("symbol"),children:t.Symbol}),Object(kb.jsx)("span",{className:r?"triangle-up":"triangle-down"})]})}}]),n}(a.a.Component);WS.contextTypes={t:O.a.func.isRequired};var ZS=WS,qS={toggleInstrumentSelector:function(){return function(e){e({type:po,payload:""})}}},VS=Object(s.c)((function(e){var t=pt(e);return{instruments:dt(e),selectedInstrument:t,open:e.instrument.showInstrumentSelector}}),qS)(ZS),_S=(O.a.shape({LastTradedPx:O.a.number.isRequired,Rolling24HrPxChangePercent:O.a.number.isRequired,BestBid:O.a.number.isRequired,BestOffer:O.a.number.isRequired,Rolling24HrVolume:O.a.number.isRequired,SessionLow:O.a.number.isRequired,SessionHigh:O.a.number.isRequired}),function(e){var t=e.value,n=e.label,r=e.classModifiers,a=e.baseClasses;return Object(kb.jsxs)("div",{className:a("row",r),children:[Object(kb.jsx)("span",{className:a("value",r),children:t}),Object(kb.jsx)("span",{className:a("title"),children:n})]})});_S.defaultProps={classModifiers:[]};var HS,YS=_S,KS={lastPrice:"lastPrice",dailyPercentageChange:"dailyPercentageChange",bid:"bid",ask:"ask",dailyVolume:"dailyVolume",dailyMin:"dailyMin",dailyMax:"dailyMax"},QS=(n(1060),function(e,t){var n,r,c=e.level1,i=e.selectedInstrument,s=e.items,o=e.customClass,l=e.width,u=e.recentTrade,d=e.dailyVolumeProduct,b=Db(["instrument-table",o]),p=null!==(n=null===i||void 0===i?void 0:i.Product1Symbol)&&void 0!==n?n:"",j=null!==(r=null===i||void 0===i?void 0:i.Product2Symbol)&&void 0!==r?r:"",m=s.map((function(e){return XS[e.field](t,c,i)})),f={key:"dailyVolume",value:"".concat(L(d,2)," ").concat($S(i)),label:t.t("24 Hour Volume"),classModifiers:["24h-volume"]};m.splice(4,0,f);var h=function(e){return XS[e](t,c,i)},O=h(KS.dailyPercentageChange),x=h(KS.lastPrice),g=h(KS.dailyMax),v=h(KS.dailyMin);return Object(kb.jsxs)("div",{className:b(),children:["market-overview-instrument"===o&&Object(kb.jsx)("div",{className:b("row"),children:Object(kb.jsx)("span",{className:b("title"),children:t.t("".concat(p).concat(j," Price Data:"))})}),l>=600?Object(kb.jsx)(a.a.Fragment,{children:m.map((function(e){var t=e.key,n=e.value,r=e.label,a=e.classModifiers;return Object(kb.jsx)(YS,{value:n,label:r,baseClasses:b,classModifiers:a},t)}))}):Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)("div",{className:b("mobile-instrument"),children:[Object(kb.jsxs)("div",{className:b("section-top"),children:[Object(kb.jsx)("div",{className:b("sub-section"),children:Object(kb.jsxs)("div",{className:b("sub-section-cell"),children:[Object(kb.jsx)("span",{className:b("percentage-change",O.classModifiers),children:O.value}),Object(kb.jsx)("span",{className:b("price"),children:u.Price})]})}),Object(kb.jsx)("div",{className:b("section-divider")}),Object(kb.jsx)("div",{className:b("sub-section"),children:Object(kb.jsx)("div",{className:b("sub-section-cell")})})]}),Object(kb.jsxs)("div",{className:b("section-bottom"),children:[Object(kb.jsxs)("div",{className:b("sub-section"),children:[Object(kb.jsxs)("div",{className:b("sub-section-cell"),children:[Object(kb.jsx)("span",{children:t.t("Price")}),Object(kb.jsx)("span",{children:x.value})]}),Object(kb.jsxs)("div",{className:b("sub-section-cell"),children:[Object(kb.jsx)("span",{children:t.t("Vol")}),Object(kb.jsx)("span",{children:f.value})]})]}),Object(kb.jsx)("div",{className:b("section-divider")}),Object(kb.jsxs)("div",{className:b("sub-section"),children:[Object(kb.jsxs)("div",{className:b("sub-section-cell"),children:[Object(kb.jsx)("span",{children:t.t("High")}),Object(kb.jsx)("span",{children:g.value})]}),Object(kb.jsxs)("div",{className:b("sub-section-cell"),children:[Object(kb.jsx)("span",{children:t.t("Low")}),Object(kb.jsx)("span",{children:v.value})]})]})]})]})})]})});QS.defaultProps={level1:{LastTradedPx:0,Rolling24HrPxChangePercent:0,BestBid:0,BestOffer:0,Rolling24HrVolume:0,SessionLow:0,SessionHigh:0},items:[{field:KS.lastPrice},{field:KS.dailyPercentageChange},{field:KS.bid},{field:KS.ask},{field:KS.dailyMin},{field:KS.dailyMax}]},QS.contextTypes={t:O.a.func.isRequired};var JS=Uh(QS),XS=(HS={},Object(Ie.a)(HS,KS.lastPrice,(function(e,t,n){var r=t.LastTradedPx;return{key:KS.lastPrice,value:L(r,ek(n)),label:e.t("Last Price"),classModifiers:["last-price"]}})),Object(Ie.a)(HS,KS.dailyPercentageChange,(function(e,t,n){var r=t.Rolling24HrPxChangePercent;return{key:KS.dailyPercentageChange,value:D(r),label:e.t("24 Hour Pct Chg"),classModifiers:[r>=0?"24h-positive":"24h-negative"]}})),Object(Ie.a)(HS,KS.bid,(function(e,t,n){var r=t.BestBid;return{key:KS.bid,value:L(r,ek(n)),label:e.t("Bid"),classModifiers:["hideable","bid"]}})),Object(Ie.a)(HS,KS.ask,(function(e,t,n){var r=t.BestOffer;return{key:KS.ask,value:L(r,ek(n)),label:e.t("Ask"),classModifiers:["hideable","ask"]}})),Object(Ie.a)(HS,KS.dailyVolume,(function(e,t,n){var r=t.Rolling24HrVolume;return{key:KS.dailyVolume,value:"".concat(L(r,2)," ").concat($S(n)),label:e.t("24 Hour Volume"),classModifiers:["24h-volume"]}})),Object(Ie.a)(HS,KS.dailyMin,(function(e,t,n){var r=t.SessionLow;return{key:KS.dailyMin,value:L(r,ek(n)),label:e.t("24 Hour Low"),classModifiers:["hideable","24h-low"]}})),Object(Ie.a)(HS,KS.dailyMax,(function(e,t,n){var r=t.SessionHigh;return{key:KS.dailyMax,value:L(r,ek(n)),label:e.t("24 Hour High"),classModifiers:["hideable","24h-high"]}})),HS),$S=function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.Product1Symbol)&&void 0!==t?t:""},ek=function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.Product2Symbol)&&void 0!==t?t:""},tk=Object(tt.createSelector)([function(e){return e.productVolume},pt],(function(e,t){var n,r=t.Product1Symbol;return null===(n=e.volumes[r])||void 0===n?void 0:n.volume})),nk=Object(tt.createSelector)([function(e){return e.recentTrades},ut,function(e){return e.instrument.selectedInstrumentId},function(e){return e.margin.instrument.selectedInstrumentId},Vn],(function(e,t,n,r,a){var c=a?r:n,i=e[c],s=t.find((function(e){return e.InstrumentId===c}));if(!s||!i)return[];var o=s.Product1Symbol,l=s.Product2Symbol;return i.map((function(e){var t=M(e.Quantity,o),n=M(e.Price,l);return Object(Y.a)(Object(Y.a)({},e),{},{Quantity:t,Price:n})}))})),rk=Ut()((function(e,t,n){return Object(Y.a)(Object(Y.a)({},e),{},{Quantity:t,Price:n})})),ak=Object(tt.createSelector)([function(e){return e.recentTrades},ut,function(e){return e.instrument.selectedInstrumentId},function(e){return e.margin.instrument.selectedInstrumentId},Vn],(function(e,t,n,r,a){var c=a?r:n,i=e[c],s=t.find((function(e){return e.InstrumentId===c}));if(s&&i&&0!==i.length){var o=s.Product1Symbol,l=s.Product2Symbol,u=i[0],d=M(u.Quantity,o),b=M(u.Price,l);return rk(u,d,b)}})),ck=Ut()((function(e,t,n){var r={},a=vt(Fe.a.global.baseCurrency);if(e){var c="".concat(a,"-");t&&t.value&&(c="".concat(a).concat(L(e.Price*t.value,t.DecimalPlaces))),r=Object(Y.a)(Object(Y.a)({},e),{},{TakerSide:1===e.TakerSide?"sell":"buy",Price:L(e.Price,n[e.Price.symbol]),baseValue:c})}return r})),ik=Object(s.c)((function(e){var t=pt(e),n=(e||{}).level1,r=t.InstrumentId,a=ak(e),c=jt(e),i=Ht(e,t.Product2);return{recentTrade:ck(a,i,c),level1:n[r],selectedInstrument:t,dailyVolumeProduct:tk(e)||0}}),null)(JS),sk=(n(1061),Db("instrument-row")),ok=function(){return Object(kb.jsxs)("div",{className:sk(),children:[Object(kb.jsx)(VS,{}),Object(kb.jsx)(ik,{})]})},lk=(n(613),Db("instrument-selector-popup")),uk=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).getInstrumentChange=function(){var t=e.props.instrumentLevel1;return t&&Object(kb.jsx)("span",{className:lk(t.Rolling24HrPxChangePercent>=0?"24h-positive":"24h-negative"),children:(t.Rolling24HrPxChangePercent>0?"+":"")+D(t.Rolling24HrPxChangePercent)})},e.getInstrumentPrice=function(){var t=e.props,n=t.decimalPlaces,r=t.instrument,a=t.instrumentLevel1;return a?L(a.LastTradedPx,n[r.Product2Symbol]):"-"},e.getInstrumentQuantity=function(){var t=e.props,n=t.decimalPlaces,r=t.instrument,a=t.instrumentLevel1;return a?L(a.LastTradedQty,n[r.Product1Symbol]):"-"},e.getProductIcon=function(){var t=Lt(e.props.instrument.Product1Symbol);return Object(kb.jsx)(cm,{iconFileName:t,size:20})},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.selectInstrument,n=e.history,r=e.width,a=e.instrument,c=e.instrumentStatus,i=this.getInstrumentPrice(),s="enabled"===c.status;return Object(kb.jsxs)(bk,{onClick:function(){t(a.InstrumentId),s&&(r<=600?n.push("/exchange/graph/".concat(a.Symbol)):n.push("/trade/".concat(a.Symbol)))},children:[Object(kb.jsx)("div",{className:lk("instrument-icon"),children:this.getProductIcon()}),Object(kb.jsxs)("div",{className:lk("instrument-info"),children:[Object(kb.jsx)("div",{children:Object(kb.jsx)("div",{className:lk("instrument-name"),children:"".concat(a.Product1Symbol,"/").concat(a.Product2Symbol)})}),Object(kb.jsx)("div",{className:lk("instrument-change"),children:this.getInstrumentChange()}),Object(kb.jsxs)("div",{className:lk("instrument-price"),children:["1 ",a.Product1Symbol," = ",i," ",a.Product2Symbol]}),Object(kb.jsxs)("div",{className:lk("instrument-last-traded"),children:[Object(kb.jsx)("div",{className:lk("instrument-quantity"),children:this.getInstrumentQuantity()}),Object(kb.jsxs)("div",{className:lk("instrument-price-mobile"),children:["USD"===a.Product2Symbol&&"$",i]})]})]}),!s&&Object(kb.jsx)(pk,{})]},a.InstrumentId)}}]),n}(a.a.Component);uk.contextTypes={t:O.a.func.isRequired};var dk=Object(l.i)(Uh(uk)),bk=Object(Tb.a)("div",{target:"ed7bl7q0"})("position:relative;width:100%;height:5.8rem;display:flex;padding-top:1rem;padding-right:3px;cursor:pointer;border-bottom:solid 1px #2f4154;&:hover{background:",Po.a.bg_secondary,";}&:last-of-type{margin-bottom:30px;}@media (max-width:",Pf.a.mobile,"){border-bottom:0;margin-top:1rem;padding:0 2rem;border-radius:2px;background:",Po.a.bg_secondary,";}"),pk=Object(Tb.a)("div",{target:"ed7bl7q1"})("position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:10px;background:",Po.a.text_error,";"),jk={},mk={selectInstrument:ro},fk=Object(s.c)((function(e,t){var n=jt(e),r=t.instrument.InstrumentId,a=Object(Ni.pick)(e.level1[r],["Rolling24HrPxChangePercent","LastTradedPx","LastTradedQty"]),c=Fe.a.global.exchangeStatus.instruments.find((function(e){return e.symbol===t.instrument.Symbol})),i=jk[r];return Object(Ni.isEqual)(i,a)||(jk[r]=a),{decimalPlaces:n,instrumentLevel1:i,instrumentStatus:c}}),mk)(dk),hk=Db("instrument-selector-popup"),Ok=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={productFilter:null},e.getProductFilters=function(){var t=e.props.instruments;if(t&&t.length>0){var n=["USD","AUD","SGD","IDR","BTC","ETH","USDT","TST2"],r=t.map((function(e){return e.Product2Symbol}));return Array.from(new Set(r)).sort((function(e,t){return n.indexOf(e)-n.indexOf(t)}))}return[]},e.getProductIcon=function(e){var t=Lt(e.Product1Symbol);return Object(kb.jsx)(cm,{iconFileName:t,size:12})},e.isInstrumentInFilter=function(e){return function(t){return t.Product2Symbol===e}},e.getDefaultProductFilter=function(e){var t="BTC";return e.length>0&&!e.includes("BTC")&&(t=e[0]),t},e}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.match.params.instrumentSymbol,n=e.selectedInstrument,r=e.history;!t&&n&&n.Symbol&&r.push("/trade/".concat(n.Symbol))}},{key:"render",value:function(){var e=this,t=this.props,n=t.instruments,r=t.show,a=this.getProductFilters(),c=this.state.productFilter||this.getDefaultProductFilter(a);return r&&Object(kb.jsxs)("div",{className:hk("container"),children:[Object(kb.jsx)("div",{className:hk("filters"),children:a.map((function(t){return Object(kb.jsx)("div",{className:hk("filter")+(t===c?" selected":""),onClick:function(){e.setState({productFilter:t})},children:t},t)}))}),n.filter(this.isInstrumentInFilter(c)).map((function(e){return Object(kb.jsx)(fk,{instrument:e},e.InstrumentId)}))]})}}]),n}(a.a.Component);Ok.contextTypes={t:O.a.func.isRequired};var xk=Object(l.i)(Ok),gk={selectInstrument:ro},vk=Object(s.c)((function(e,t){var n=pt(e);return{instruments:bt(e),selectedInstrument:n,show:t.show||e.instrument.showInstrumentSelector}}),gk)(xk),yk=(n(1062),"ap-inline-btn"),Ck=function(e){var t=e.icon,n=e.text,r=e.customClass,a=e.iconModifier,c=Object(Hr.a)(e,["icon","text","customClass","iconModifier"]),i=Db([yk,r]);return Object(kb.jsxs)(Hb,Object(Y.a)(Object(Y.a)({baseClass:yk,customClass:r},c),{},{children:[Object(kb.jsx)(Ij,{name:t,classModifiers:a,customClass:i("image")}),Object(kb.jsx)("span",{className:i("text"),children:n})]}))};Ck.defaultProps={customClass:"custom-inline-btn"};var wk=Ck,Sk=function(e){return Object(kb.jsx)(wk,Object(Y.a)({styleName:qb,icon:"cancel",iconModifier:"danger"},e))};Sk.defaultProps={text:"Cancel"};var kk=Sk,Ik=function(e){return e.trailingPrice?e.trailingPrice:e.Price?L(e.Price,e.Price.symbol):""},Ak=Db("order-history-table"),Pk=function(e,t){var n=e.data,r=e.instruments,a=e.cancelOrders,c=e.fetching,i=e.config,s=i.maxLines,o=i.usePagination,l=[{header:t.t("Pair"),dataTest:"Pair",cell:function(e){var t,n=r.find((function(t){return t.InstrumentId===e.Instrument}));return null!==(t=null===n||void 0===n?void 0:n.Symbol)&&void 0!==t?t:""}},{header:t.t("Side"),dataTest:"Side",cell:function(e){return Object(kb.jsx)("div",{className:Ak("Buy"===e.Side?"buy":"sell"),children:e.Side})}},{header:t.t("Type"),dataTest:"Type",cell:function(e){return e.IsQuote?t.t("Quote"):e.OrderType}},{header:t.t("Size"),dataTest:"Size",cell:function(e){return Object(kb.jsx)("div",{className:Ak("size"),children:e.quantity&&L(e.quantity,e.quantity.symbol)})}},{header:t.t("Price"),dataTest:"Price",cell:function(e){return Object(kb.jsx)("div",{className:Ak("price"),children:Ik(e)})}},{header:t.t("Date/Time"),dataTest:"Date/Time",cell:function(e){return Object(mO.c)(e.ReceiveTime)}},{header:t.t("Status"),dataTest:"Status",cell:function(e){return e.OrderState}},{header:t.t("Action"),dataTest:"Action",cell:function(e){return Object(kb.jsx)(kk,{text:t.t("Cancel"),customClass:Ak(),dataTest:"Cancel",onClick:function(){a([e.OrderId])}})}}];return Object(kb.jsx)(kC,{columns:l,rows:n,baseClass:Ak,fetching:c,rowProps:function(e){return{"data-tip":!0,"data-for":"orderInfo-".concat(e.OrderId)}},pageSize:s,usePagination:o,empty:t.t("No data is available"),componentName:"OpenOrdersComponent"})};Pk.title=Ae.c.extractT("Open Orders"),Pk.contextTypes={t:O.a.func.isRequired};var Tk=Pk,Ek=n(614),Rk=n.n(Ek),Nk=n(615),Mk=n.n(Nk),Dk=n(54),Lk=n.n(Dk),Fk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),r=arguments.length>3?arguments[3]:void 0,a=wt()(e,r);return a?Lk()(t)&&Lk()(n)?Mk()(a,Rk()(t),Rk()(Al()(n,1))):Mk()(a,0,Date.now()):(console.warn("order history item does not have a ".concat(r," property:"),e),!1)},Uk=Object(xt.a)("order-history-filter"),Bk=function(e){return Object.keys(e).length>0},zk={},Gk=function(){var e=Uk.apply(void 0,arguments);return JSON.stringify(e)!==JSON.stringify(zk)?(zk=e,e):zk},Wk=Object(tt.createSelector)([function(e){return e.orderHistory.openOrders},function(e){return e.instrument.instruments},function(e){return e.orderHistory.tradeReports}],$k),Zk=function(e){return Object(tt.createSelector)(e,(function(e){return e.map((function(e){return"TrailingStopLimit"===e.OrderType||"TrailingStopMarket"===e.OrderType?Object(Y.a)(Object(Y.a)({},e),{},{trailingPrice:"TRL"}):e}))}))},qk=Object(tt.createSelector)(Wk,(function(e){return e.filter((function(e){return"FullyExecuted"!==e.OrderState&&"Working"===e.OrderState})).sort((function(e,t){return t.ReceiveTime-e.ReceiveTime}))})),Vk=function(){return Object(tt.createSelector)([Zk(qk),function(e){return e.position.selectedProductId},pt,function(e){return e.instrument.instruments},function(e){return Gk(e,"startDate","endDate")},function(e,t){return t.filterMode}],(function(e,t,n,r,a,c){var i=n.InstrumentId,s=Object(Q.a)(e);return"all"===c?s.filter(Bk):"selectedProduct"!==c?e.filter((function(e){return e.Instrument===i})):(t&&(s=nI(e,t,r)),void(a&&(s=rI(s,a,"ReceiveTime"))))}))},_k=Object(tt.createSelector)(Vk(),(function(e){return e.filter((function(e){return"Buy"===e.Side&&"BlockTrade"!==e.OrderType}))})),Hk=Object(tt.createSelector)(Vk(),(function(e){return e.filter((function(e){return"Sell"===e.Side&&"BlockTrade"!==e.OrderType}))})),Yk=Object(tt.createSelector)([function(e){return e},function(e){return e.orderHistory.accountTrades},function(e){return e.instrument.instruments},function(e){return e.product.products},function(e){return e.user.accountFees}],(function(e,t,n,r,a){return t.map((function(e){var t,a=n.find((function(t){return t.InstrumentId===e.InstrumentId}));if(!a)return{};var c=a.Product1Symbol,i=a.Product2Symbol,s=M(e.Quantity,c),o=M(e.Price,i),l="Buy"===e.Side?c:i,u=M(e.Value,l),d=r.find((function(t){return t.ProductId===e.FeeProductId})),b=M(e.Fee,null!==(t=null===d||void 0===d?void 0:d.Product)&&void 0!==t?t:l);return Object(Y.a)(Object(Y.a)({},e),{},{Quantity:s,Price:o,Value:u,Fee:b})}))})),Kk=Object(tt.createSelector)(Yk,(function(e){return e.sort((function(e,t){return e.TradeTime<t.TradeTime?1:e.TradeTime>t.TradeTime?-1:0})).filter((function(e){return!e.IsBlockTrade}))})),Qk=function(){return Object(tt.createSelector)([Zk(Kk),function(e){return e.position.selectedProductId},pt,function(e){return e.instrument.instruments},function(e){return Gk(e,"startDate","endDate")},function(e,t){return t.filterMode}],(function(e,t,n,r,a,c){var i=n.InstrumentId;if("all"===c)return e.filter(Bk);if("selectedProduct"===c){var s=e;return t&&(s=nI(e,t,r)),rI(s,a,"TradeTimeMS")}return e.filter((function(e){return e.InstrumentId===i}))}))},Jk=Object(tt.createSelector)([function(e){return e.orderHistory.inactiveOrders},function(e){return e.instrument.instruments}],$k),Xk=Object(tt.createSelector)(Jk,(function(e){return e.filter((function(e){return"FullyExecuted"!==e.OrderState&&"Working"!==e.OrderState})).sort((function(e,t){return t.ReceiveTime-e.ReceiveTime}))}));function $k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=[].concat(Object(Q.a)(e),Object(Q.a)(n));return r.map((function(e){var n=t.find((function(t){return t.InstrumentId===e.Instrument}));if(!n)return e;var r=n.Product1Symbol,a=n.Product2Symbol,c=M(e.Quantity,r),i=M(e.OrigQuantity,r),s=M(e.Price,a);return Object(Y.a)(Object(Y.a)({},e),{},{quantity:c,OrigQuantity:i,Price:s})}))}var eI=Object(tt.createSelector)([function(e){return e.orderHistory.tradeReports},function(e){return e.instrument.instruments}],(function(e,t){var n=e.filter((function(e){return"Working"!==e.OrderState}));return n.map((function(e){var n=t.find((function(t){return t.InstrumentId===e.InstrumentId||e.Instrument})),r=n.Product1Symbol,a=n.Product2Symbol,c=M(e.Quantity,r),i=M(e.Price,a),s="Buy"===e.Side?r:a,o=M(e.Fee,s);return Object(Y.a)(Object(Y.a)({},e),{},{Quantity:c,Price:i,Fee:o})})),n})),tI=Object(tt.createSelector)([eI,Yk],(function(e,t){var n=t.filter((function(e){return e.IsBlockTrade}));return e.concat(n).map((function(e){return Object(Y.a)(Object(Y.a)({},e),{},{SortingTime:e.ReceiveTimeTicks?e.ReceiveTimeTicks:e.TradeTime})})).sort((function(e,t){return e.SortingTime<t.SortingTime?1:e.SortingTime>t.SortingTime?-1:0}))}));function nI(e,t,n){return e.map((function(e){var t,r,a=n.find((function(t){return t.InstrumentId===e.Instrument||t.InstrumentId===e.InstrumentId}));return Object(Y.a)(Object(Y.a)({},e),{},{product1Id:null!==(t=null===a||void 0===a?void 0:a.Product1)&&void 0!==t?t:null,product2Id:null!==(r=null===a||void 0===a?void 0:a.Product2)&&void 0!==r?r:null})})).filter((function(e){return e.product1Id===t||e.product2Id===t}))}function rI(e,t,n){return e.filter((function(e){return Fk(e,t.startDate,t.endDate,n)}))}var aI={cancelOrders:Vr},cI=Object(s.c)((function(){var e=Vk();return function(t,n){return{data:e(t,n.config),instruments:dt(t),fetching:t.orderHistory.activeRequests>0}}}),aI)(Tk),iI=cI,sI=Db("order-history-table"),oI=function(e,t){var n=e.data,r=e.instruments,a=e.config,c=e.fetching,i=e.decimalPlaces,s=a.maxLines,o=a.usePagination,l=[{header:t.t("ID"),dataTest:"ID",classModifier:"short",cell:function(e){return e.TradeId}},{header:t.t("Pair"),dataTest:"Pair",classModifier:"short",cell:function(e){var t,n=r.find((function(t){return t.InstrumentId===e.InstrumentId}));return null!==(t=null===n||void 0===n?void 0:n.Symbol)&&void 0!==t?t:""}},{header:t.t("Side"),dataTest:"Side",classModifier:"short",cell:function(e){return Object(kb.jsx)("div",{className:sI("Buy"===e.Side?"buy":"sell"),children:e.Side})}},{header:t.t("Size"),dataTest:"Size",cell:function(e){return Object(kb.jsx)("div",{className:sI("size"),children:e.Quantity&&L(e.Quantity,e.Quantity.symbol)})}},{header:t.t("Price"),dataTest:"Price",cell:function(e){return Object(kb.jsx)("div",{className:sI("price"),children:Ik(e)})}},{header:t.t("Total"),dataTest:"Total",cell:function(e){var t=r.find((function(t){return t.InstrumentId===e.InstrumentId}));return L(e.Value,i[t.Product2Symbol])}},{header:t.t("Fee"),dataTest:"Fee",classModifier:"long",cell:function(e){return"".concat(L(e.Fee,e.Fee.symbol)," ").concat(e.Fee.symbol)}},{header:t.t("Date/Time"),dataTest:"Date/Time",cell:function(e){return Object(mO.c)(new Date(e.TradeTimeMS))}}];return Object(kb.jsx)(kC,{columns:l,rows:n,baseClass:sI,fetching:c,pageSize:s,usePagination:o,empty:t.t("No data is available"),componentName:"FilledOrdersComponent"})};oI.title=Ae.c.extractT("Filled Orders"),oI.contextTypes={t:O.a.func.isRequired};var lI=oI,uI={cancelOrders:Vr},dI=Object(s.c)((function(){var e=Qk();return function(t,n){var r=e(t,n.config),a=dt(t),c=jt(t);return{data:r,instruments:a,fetching:t.orderHistory.activeRequests>0,decimalPlaces:c}}}),uI)(lI),bI=Db("order-history-table"),pI=function(e,t){var n=e.data,r=e.instruments,a=e.config,c=e.fetching,i=a.maxLines,s=a.usePagination,o=[{header:t.t("Pair"),dataTest:"Pair",cell:function(e){var t,n=r.find((function(t){return t.InstrumentId===e.Instrument}));return null!==(t=null===n||void 0===n?void 0:n.Symbol)&&void 0!==t?t:""}},{header:t.t("Side"),dataTest:"Side",cell:function(e){return Object(kb.jsx)("div",{className:bI("Buy"===e.Side?"buy":"sell"),children:e.Side})}},{header:t.t("Type"),dataTest:"Type",cell:function(e){return e.IsQuote?t.t("Quote"):e.OrderType}},{header:t.t("Size"),dataTest:"Size",cell:function(e){return Object(kb.jsx)("div",{className:bI("size"),children:e.OrigQuantity&&L(e.OrigQuantity,e.OrigQuantity.symbol)})}},{header:t.t("Price"),dataTest:"Price",cell:function(e){return Object(kb.jsx)("div",{className:bI("price"),children:Ik(e)})}},{header:t.t("Date/Time"),dataTest:"Date/Time",cell:function(e){return Object(mO.c)(e.ReceiveTime)}},{header:t.t("Status"),dataTest:"Status",cell:function(e){return e.OrderState}}];return Object(kb.jsx)(kC,{columns:o,rows:n,baseClass:bI,fetching:c,pageSize:i,usePagination:s,empty:t.t("No data is available"),componentName:"InactiveOrdersComponent"})};pI.title=Ae.c.extractT("Inactive Orders"),pI.contextTypes={t:O.a.func.isRequired};var jI=pI,mI={cancelOrders:Vr},fI=Object(s.c)((function(){var e=Object(tt.createSelector)([Zk(Xk),function(e){return e.position.selectedProductId},pt,function(e){return e.instrument.instruments},function(e){return Gk(e,"startDate","endDate")},function(e,t){return t.filterMode}],(function(e,t,n,r,a,c){var i=n.InstrumentId;if("selectedProduct"===c){var s=e;return t&&(s=nI(e,t,r)),rI(s,a,"ReceiveTime")}return e.filter((function(e){return e.Instrument===i}))}));return function(t,n){return{data:e(t,n.config),instruments:dt(t),fetching:t.orderHistory.activeRequests>0}}}),mI)(jI),hI=Db("order-history-table"),OI=function(e,t){var n=e.data,r=e.instruments,a=e.config,c=(e.cancelOrders,e.fetching),i=a.maxLines,s=a.usePagination,o=[{header:t.t("Pair"),dataTest:"Pair",cell:function(e){var t,n=r.find((function(t){return t.InstrumentId===(e.Instrument||e.InstrumentId)}));return null!==(t=null===n||void 0===n?void 0:n.Symbol)&&void 0!==t?t:""}},{header:t.t("Side"),dataTest:"Side",cell:function(e){return Object(kb.jsx)("div",{className:hI("Buy"===e.Side?"buy":"sell"),children:e.Side})}},{header:t.t("Size"),dataTest:"Size",cell:function(e){return Object(kb.jsx)("div",{className:hI("size"),children:e.Quantity&&L(e.Quantity,e.Quantity.symbol)})}},{header:t.t("Price"),dataTest:"Price",cell:function(e){return Object(kb.jsx)("div",{className:hI("price"),children:Ik(e)})}},{header:t.t("Fee"),dataTest:"Fee",cell:function(e){return L(e.Fee,e.Fee.symbol)}},{header:t.t("Date/Time"),dataTest:"Date/Time",cell:function(e){return Object(mO.c)(e.ReceiveTime||e.TradeTimeMS)}},{header:t.t("Status"),dataTest:"Status",cell:function(){return t.t("Complete")}}];return Object(kb.jsx)(kC,{columns:o,rows:n,baseClass:hI,fetching:c,pageSize:i,usePagination:s,empty:t.t("No data is available"),componentName:"OrderHistoryTradeReportsComponent"})};OI.title=Ae.c.extractT("Trade Reports"),OI.contextTypes={t:O.a.func.isRequired};var xI=OI,gI={cancelOrders:Vr},vI=Object(s.c)((function(){var e=Object(tt.createSelector)([Zk(tI),function(e){return e.position.selectedProductId},pt,function(e){return e.instrument.instruments},function(e){return Gk(e,"startDate","endDate")},function(e,t){return t.filterMode}],(function(e,t,n,r,a,c){var i=n.InstrumentId;if("selectedProduct"===c){var s=e;return t&&(s=nI(e,t,r)),rI(s,a,"TradeTimeMS")}return e.filter((function(e){return e.InstrumentId===i||e.Instrument===i}))}));return function(t,n){return{data:e(t,n.config),instruments:dt(t),fetching:t.orderHistory.activeRequests>0}}}),gI)(xI),yI=Db("order-history-table"),CI=function(e,t){var n=e.data,r=e.decimalPlaces,a=e.config,c=a.maxLines,i=a.usePagination,s=[{header:t.t("Product"),dataTest:"Product",cell:function(e){return e.AssetName}},{header:t.t("Amount"),dataTest:"Amount",cell:function(e){return L(e.Amount,r[e.AssetId])}},{header:t.t("Status"),dataTest:"Status",cell:function(e){return e.Status}},{header:t.t("Created"),dataTest:"Created",cell:function(e){return Object(mO.c)(e.CreatedTimestamp)}},{header:t.t("Fee"),dataTest:"Fee",cell:function(e){return e.FeeAmt}}];return Object(kb.jsx)(kC,{columns:s,rows:n,baseClass:yI,pageSize:c,usePagination:i,empty:t.t("No data is available"),componentName:"DepositStatusComponent"})};CI.title=Ae.c.extractT("Deposit Status"),CI.componentName="DepositsStatusComponent",CI.contextTypes={t:O.a.func.isRequired};var wI=CI,SI=Object(xt.a)("order-history-filter"),kI=function(e){return e.product.products},II=(Object(tt.createSelector)((function(e){return e.product.products}),(function(e){return e.map((function(e){return{Product:e.Product,ProductFullName:e.ProductFullName,ProductId:e.ProductId,DecimalPlaces:e.DecimalPlaces}}))})),Object(tt.createSelector)([function(e){return e.deposit.depositsStatus}],(function(e){return e})),Object(tt.createSelector)([function(e){return e.withdraw.withdrawTickets}],(function(e){return e})),Object(tt.createSelector)([function(e){return e.transfer.transfers},function(e){return e.transfer.transfersReceived}],(function(e,t){return e.forEach((function(e){e.Type="Sent"})),t.forEach((function(e){e.Type="Received"})),e.concat(t).filter((function(e){return"Accepted"===e.TransferState}))}))),AI=Object(tt.createSelector)([pt,function(e){return e.deposit.depositsStatus},function(e){return e.position.selectedProductId},function(e){return SI(e,"startDate","endDate")},function(e,t){return t.filterMode}],(function(e,t,n,r,a){return"selectedProduct"===a?t.filter((function(e){return!n||e.AssetId===n})).filter((function(e){return Fk(e,r.startDate,r.endDate,"CreatedTimestamp")})).sort((function(e,t){return new Date(t.CreatedTimestamp)-new Date(e.CreatedTimestamp)})):t.filter((function(t){return t.AssetId===e.Product1||t.AssetId===e.Product2})).sort((function(e,t){return new Date(t.CreatedTimestamp)-new Date(e.CreatedTimestamp)}))})),PI=Object(tt.createSelector)([pt,function(e){return e.withdraw.withdrawTickets},function(e){return e.position.selectedProductId},function(e){return SI(e,"startDate","endDate")},function(e,t){return t.filterMode}],(function(e,t,n,r,a){return"selectedProduct"===a?t.filter((function(e){return!n||e.AssetId===n})).filter((function(e){return Fk(e,r.startDate,r.endDate,"CreatedTimestamp")})).sort((function(e,t){return new Date(t.CreatedTimestamp)-new Date(e.CreatedTimestamp)})):t.filter((function(t){return t.AssetId===e.Product1||t.AssetId===e.Product2})).sort((function(e,t){return new Date(t.CreatedTimestamp)-new Date(e.CreatedTimestamp)}))})),TI=Object(tt.createSelector)([kI,function(e){return e.deposit.product}],(function(e,t){return e.find((function(e){return e.ProductId===t}))})),EI=(Object(tt.createSelector)([kI,function(e){return e.withdraw.product}],(function(e,t){return e.find((function(e){return e.ProductId===t}))})),Object(tt.createSelector)((function(e){return e.deposit}),(function(e){var t,n=e.depositInfo;return!e.isLoading&&n.length&&(t=n[n.length-1]),t})),Object(tt.createSelector)((function(e){return e.deposit.depositFees}),(function(e){return(null===e||void 0===e?void 0:e.find((function(e){return!0===e.IsActive})))||{}}))),RI=Object(tt.createSelector)((function(e){return e.product.products}),(function(e){return e.reduce((function(e,t){return e[t.ProductId]=t.DecimalPlaces,e}),{})})),NI=(Object(tt.createSelector)((function(e){return e.product.products}),(function(e){return e.reduce((function(e,t){return e[t.Product]=t.DecimalPlaces,e}),{})})),Object(s.c)((function(e,t){var n=AI(e,t.config),r=dt(e),a=RI(e);return{data:n,instruments:r,fetching:e.orderHistory.activeRequests>0,decimalPlaces:a}}))(wI)),MI=Db("order-history-table"),DI=function(e,t){var n=e.data,r=e.decimalPlaces,a=e.config,c=e.cancelWithdrawTicket,i=a.maxLines,s=a.usePagination,o=[{header:t.t("Product"),dataTest:"Product",cell:function(e){return e.AssetName}},{header:t.t("Amount"),dataTest:"Amount",cell:function(e){return L(e.Amount,r[e.AssetId])}},{header:t.t("Status"),dataTest:"Status",cell:function(e){return e.Status}},{header:t.t("Created"),dataTest:"Created",cell:function(e){return Object(mO.c)(e.CreatedTimestamp)}},{header:t.t("Fee"),dataTest:"Fee",cell:function(e){return e.FeeAmt}},{header:t.t("Actions"),dataTest:"Actions",cell:function(e){return["Pending","Pending2Fa"].includes(e.Status)?Object(kb.jsx)(kk,{onClick:function(){return c(e)}}):""}}];return Object(kb.jsx)(kC,{columns:o,rows:n,baseClass:MI,pageSize:i,usePagination:s,empty:t.t("No data is available"),componentName:"WithdrawStatusComponent"})};DI.title=Ae.c.extractT("Withdraw Status"),DI.contextTypes={t:O.a.func.isRequired};var LI=DI,FI={cancelWithdrawTicket:function(e){var t=e.RequestCode;return function(){var e=Object(V.a)(q.a.mark((function e(n,r){var a,c,i,s,o,l;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r().user.userInfo,c=a.OMSId,i=a.UserId,s=r().user.selectedAccountId,o={OMSId:c,UserId:i,AccountId:s,RequestCode:t},e.next=5,Ce.connection.CancelWithdraw(o);case 5:if(!1!==(l=e.sent).result){e.next=8;break}return e.abrupt("return",n(sr({id:"cancelWithdrawSnack",text:Xr(l),type:"warning"})));case 8:n(sr({id:"cancelWithdrawSuccessSnack",text:Ae.c.extractT("Your withdraw has been successfully canceled"),type:"success"})),n(uc(s,c));case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}},UI=Object(s.c)((function(e,t){var n=PI(e,t.config),r=dt(e),a=RI(e);return{data:n,instruments:r,fetching:e.orderHistory.activeRequests>0,decimalPlaces:a}}),FI)(LI),BI=n(1063),zI=n.n(BI),GI=n(616),WI=n.n(GI),ZI=n(1064),qI=n.n(ZI),VI=(n(1066),n(1067),new Rb.a({name:"ap-datepicker",outputIsString:!0})),_I=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).handleChange=function(e){r.props.input.onChange(e),r.props.customChange&&r.props.customChange(e)},r.datepickerRef=null,r.inputMaskRef=null,r._picker=null,r.state={inputMask:"",formatMask:""},r}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(e){void 0!==this.props.input.value&&""!==this.props.input.value||(this._picker.setDate(null),this.inputMaskRef.value=""),WI()(e.input.value,this.props.input.value)||!Lk()(this.props.input.value)&&null!==this.props.input.value||(this._picker.setDate(this.props.input.value),null===this.props.input.value?this.inputMaskRef.value="":this.inputMaskRef.value=Object(mO.b)(this.props.input.value,this.state.formatMask)),!Lk()(this.props.minDate)&&null!==this.props.minDate||WI()(e.minDate,this.props.minDate)||this._picker.setMinDate(this.props.minDate),!Lk()(this.props.maxDate)&&null!==this.props.maxDate||WI()(e.maxDate,this.props.maxDate)||this._picker.setMaxDate(this.props.maxDate)}},{key:"componentDidMount",value:function(){var e=Object(mO.a)(),t=e.inputMask,n=e.formatMask;this.setState({inputMask:t,formatMask:n});var r=this.datepickerRef,a=this.props,c=a.customFormat,i=a.customParse,s=a.minDate,o=a.maxDate;this._picker=new zI.a(Object(Y.a)({field:r,yearRange:[1900,(new Date).getFullYear()],format:n,toString:c,parse:i,minDate:s,maxDate:o,onSelect:this.handleChange},this.props.initialOptions)),this.addClassNames(),Lk()(this.props.input.value)&&(this._picker.setDate(this.props.input.value),this.inputMaskRef.value=Object(mO.b)(this.props.input.value,n))}},{key:"componentWillUnmount",value:function(){this._picker.destroy(),this._picker=null}},{key:"getCustomClasses",value:function(){return new Rb.a({name:this.props.customClass,outputIsString:!0})}},{key:"addClassNames",value:function(){var e=this,t=this.getCustomClasses();this._picker.el.classList.add(VI("calendar")),t("calendar").split(" ").forEach((function(t){return e._picker.el.classList.add(t)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.meta,a=t.info,c=t.input,i=t.disabled,s=t.required,o=t.showIcon,l=t.iconClick,u=t.placeholder,d=(c.onChange,c.onBlur),b=(c.value,Object(Hr.a)(c,["onChange","onBlur","value"])),p=this.getCustomClasses();return Object(kb.jsxs)("div",{className:"form-group ".concat(VI("input-wrapper")," ").concat(p("dpk-wrapper")),children:[Object(kb.jsx)("label",{className:"ap--label ".concat(VI("label")," ").concat(p("dpk-label")),children:n}),Object(kb.jsx)(qI.a,Object(Y.a)(Object(Y.a)({ref:function(t){return e.inputMaskRef=t},mask:this.state.inputMask,placeholder:u||this.state.formatMask,disabled:i,required:s},b),{},{onChange:function(t){return e.handleChange(t.target.value)},onBlur:function(e){return d(Object(mO.e)(e.target.value))},children:function(t){return Object(kb.jsx)("input",Object(Y.a)(Object(Y.a)({ref:function(t){return e.datepickerRef=t},className:"form-control ".concat(VI("input")," ").concat(p("dpk-input"))},t),{},{autoComplete:"off"}))}})),o&&Object(kb.jsx)("div",{className:VI("icon-container"),onClick:l,children:Object(kb.jsx)(Ij,{name:"calendar",customClass:VI("icon")})}),Object(kb.jsx)("small",{className:"form-text-muted ".concat(VI("info"),"  ").concat(p("dpk-info")),children:a}),(!r.active&&r.dirty||r.touched)&&r.error&&Object(kb.jsx)("span",{className:VI("error","dpk-error"),children:r.error})]})}}]),n}(a.a.Component);function HI(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:_I},e))}_I.defaultProps={label:"Date",customClass:"custom-datepicker",info:"",disabled:!1,required:!1,initialOptions:{},customFormat:mO.b,customParse:mO.e,showIcon:!1};var YI=Db("order-history"),KI=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).clearFilters=function(){var t=e.props.clearDate;t("startDate"),t("endDate")},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.startDate,n=e.clearDate;return Object(kb.jsxs)("div",{className:YI("header-with-filter"),children:[Object(kb.jsx)("div",{className:YI("header-with-filter-title"),children:this.context.t("Transaction History")}),Object(kb.jsxs)("div",{className:YI("header-with-filter-datapicker"),children:[Object(kb.jsx)(HI,{name:"startDate",customClass:YI("from"),label:this.context.t("Date Range:"),maxDate:new Date,format:function(e){return e},showIcon:!0,iconClick:function(){return n("startDate")}}),Object(kb.jsx)(HI,{name:"endDate",customClass:YI("to"),label:this.context.t("to"),minDate:t,maxDate:new Date,format:function(e){return e},showIcon:!0,iconClick:function(){return n("endDate")}}),Object(kb.jsx)(Hb,{customClass:YI("clear"),classModifiers:"clear-filters",type:"button",onClick:this.clearFilters,children:this.context.t("Clear Filters")})]})]})}}]),n}(a.a.Component);KI.contextTypes={t:O.a.func.isRequired};var QI=KI,JI=Object(xt.a)("order-history-filter"),XI=Object(Pb.a)({form:"order-history-filter",initialValues:{startDate:void 0,endDate:void 0}})(QI),$I=Object(s.c)((function(e){return{startDate:JI(e,"startDate")}}),(function(e){return{clearDate:function(t){return e(Object(kn.a)("order-history-filter",t,null))}}}))(XI),eA=(n(1068),n(1069),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"_getPanes",value:function(){var e=this.props.config;return[{menuItem:iI.title,render:function(){return Object(kb.jsx)(iI,{config:e})}},{menuItem:dI.title,render:function(){return Object(kb.jsx)(dI,{config:e})}},{menuItem:fI.title,render:function(){return Object(kb.jsx)(fI,{config:e})}},{menuItem:vI.title,render:function(){return Object(kb.jsx)(vI,{config:e})}},{menuItem:NI.title,render:function(){return Object(kb.jsx)(NI,{config:e})}},{menuItem:UI.title,render:function(){return Object(kb.jsx)(UI,{config:e})}}]}},{key:"render",value:function(){var e=this.props.loggedOut;return Object(kb.jsxs)(a.a.Fragment,{children:[e&&Object(kb.jsxs)("div",{className:"order-history__overlay",children:[Object(kb.jsx)(Zj.a,{to:Object(wb.a)("/login"),children:this.context.t("Sign In")}),"\xa0 ",this.context.t("to view you orders")]}),this.props.useHeaderWithFilter&&Object(kb.jsx)($I,{}),Object(kb.jsx)(Hx,{panes:this._getPanes(),classModifiers:this.props.classModifiers,customClass:"order-history"})]})}}]),n}(r.Component));eA.contextTypes={t:O.a.func.isRequired};var tA=Object(s.c)((function(e){var t=e.auth,n=t.isAuthenticated,r=t.pending;return{loggedOut:!n&&!r}}),{})(eA),nA=(n(1070),function(e){var t=e.items,n=e.input,r=e.baseClass,a=e.customClass,c=e.styleName,i=e.onClick,s=e.defaultValue,o=Db(r),l=Db(a);return Object(kb.jsx)("div",{className:Gb()("btn-group btn-group-toggle",o(),l("rt-wrapper")),"data-toggle":"buttons",children:t.map((function(e,t){var r=n.value||"boolean"===typeof n.value,a=e.value===(r?n.value:s);return Object(kb.jsxs)("label",{className:Gb()("btn",rA(o,"label",e.styleName||c,a),rA(l,"rt-label",e.styleName||c,a)),onClick:i,"data-test":Pj(e,"text"),children:[Object(kb.jsx)("input",Object(Y.a)(Object(Y.a)({type:"radio",id:e.value.toString()},n),{},{checked:a,value:e.value,onClick:e.onClick,onBlur:function(e){return e.preventDefault()},onChange:function(t){var r="boolean"===typeof e.value?"true"===t.target.value:t.target.value;n.onChange(r)}})),e.text]},e.value)}))})}),rA=function(e,t,n,r){return e({element:t,modifiers:Gb()(n,Object(Ie.a)({checked:r},"checked-".concat(n),r))})};nA.defaultProps={baseClass:"ap-radio-tab",styleName:Wb};var aA=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({component:nA},e))},cA=(n(1071),"ap-segmented-button"),iA=function(e){var t=e.label,n=e.customClass,r=Object(Hr.a)(e,["label","customClass"]),a=Db(cA,n);return Object(kb.jsxs)("div",{className:a("sb-container"),children:[t&&Object(kb.jsx)("div",{children:Object(kb.jsx)("label",{className:Gb()("ap--label",a("group-label")),children:t})}),Object(kb.jsx)(aA,Object(Y.a)({baseClass:cA,customClass:n},r))]})},sA=(n(1072),Db("instrument-positions-summary")),oA=function(e){var t=e.rawAvailableBalance,n=e.ProductSymbol;return L(t,n)+" "+n},lA=function(e,t){var n=e.positions,r=e.fetching,c=e.mobile,i=e.isBuySide,s=oA(n.position2),o=oA(n.position1);return Object(kb.jsx)("div",{className:sA(),children:Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsx)("div",{className:sA("body"),children:r?Object(kb.jsx)(Vf,{}):Object(kb.jsxs)("div",{className:sA("balance-container"),children:[!c&&Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)("div",{className:sA("position"),children:[Object(kb.jsxs)("span",{children:[t.t("Buy")," ",n.position1.ProductSymbol]}),Object(kb.jsxs)("span",{children:[Object(kb.jsxs)("span",{className:sA("secondary-text"),children:[t.t("Avbl"),":"]})," ",s]})]}),Object(kb.jsxs)("div",{className:sA("position"),children:[Object(kb.jsxs)("span",{children:[t.t("Sell")," ",n.position1.ProductSymbol]}),Object(kb.jsxs)("span",{children:[Object(kb.jsxs)("span",{className:sA("secondary-text"),children:[t.t("Avbl"),":"]})," ",o]})]})]}),c&&Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)("div",{children:[t.t("Available"),":"," ",i?s:o]})})]})})})})};lA.contextTypes={t:O.a.func.isRequired};var uA=lA,dA=Object(s.c)((function(e,t){var n=t.mobile;return{isBuySide:"buy"===t.activeTab,mobile:n,positions:Ot(e),fetching:e.position.fetching}}))(uA),bA=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).handleBalanceShareClick=function(t){var n=e.props,r=n.positions,a=n.change,c=n.orderEntryForm,i=n.decimalPlaces,s=n.selectedInstrument;if(n.buy){var o=B(r.position2.rawAvailableBalance*t,i[s.Product2Symbol]);a("orderTotal",o),a("quantity",B(o/c.values.limitPrice,i[s.Product1Symbol]))}else{var l=B(r.position1.rawAvailableBalance*t,i[s.Product1Symbol]);a("quantity",l),a("orderTotal",B(l*c.values.limitPrice,i[s.Product2Symbol]))}},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.orderEntryForm,r=t.selectedInstrument,c=t.handleSubmit,i=t.submitting,s=t.decimalPlaces,o=t.fetching,l=t.invalid,u=t.disableTrading,d=t.baseClasses,b=t.baseClass,p=t.buy,j=t.change,m=t.onLimitPriceChange,f=t.loggedOut,h=t.formName,O=this.context,x=n.values.orderType===Ee.market.displayName,g=n.values.orderType===Ee.limit.displayName;return Object(kb.jsxs)("form",{onSubmit:c,className:d("form"),children:[Object(kb.jsxs)("div",{children:[g&&Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsx)(qm,{type:"antNumericInput",name:"limitPrice",placeholder:"0",step:r.PriceIncrement,customClass:Gb()(d("limit-price"),b),labelInInput:r.Product2Symbol&&"".concat(O.t("Price")," (").concat(r.Product2Symbol,")"),customChange:function(e){m(e,h)},decimalPlaces:s[r.Product2Symbol]})}),x&&Object(kb.jsx)(qm,{customClass:Gb()(d("limit-price"),b),type:"antNumericInput",disabled:!0,name:"Market",placeholder:"Market",labelInInput:r.Product2Symbol&&"".concat(O.t("Price")," (").concat(r.Product2Symbol,")")}),Object(kb.jsx)(qm,{type:"antNumericInput",name:"quantity",placeholder:"0",customClass:b,labelInInput:r.Product1Symbol&&"".concat(O.t("Amount"),"  (").concat(r.Product1Symbol,")"),decimalPlaces:s[r.Product1Symbol],customChange:function(e){n.values.limitPrice>0&&j("orderTotal",B(e*n.values.limitPrice,s[r.Product2Symbol]))}}),Object(kb.jsx)(iA,{name:"balanceShare",items:[{onClick:function(){return e.handleBalanceShareClick(.25)},value:.25,text:"25%"},{onClick:function(){return e.handleBalanceShareClick(.5)},value:.5,text:"50%"},{onClick:function(){return e.handleBalanceShareClick(.75)},value:.75,text:"75%"},{onClick:function(){return e.handleBalanceShareClick(1)},value:1,text:"100%"}],customClass:d("balance-share")}),g&&Object(kb.jsx)(qm,{customChange:function(e){n.values.limitPrice>0&&j("quantity",B(e/n.values.limitPrice,s[r.Product1Symbol]))},type:"antNumericInput",name:"orderTotal",placeholder:"0",customClass:b,labelInInput:r.Product2Symbol&&"".concat(O.t("Total"),"  (").concat(r.Product2Symbol,")"),decimalPlaces:s[r.Product2Symbol]}),x&&Object(kb.jsx)(qm,{customChange:function(e){n.values.marketPrice>0&&j("quantity",B(e/n.values.marketPrice,s[r.Product1Symbol]))},type:"antNumericInput",name:"orderTotal",placeholder:"0",customClass:b,labelInInput:r.Product2Symbol&&"".concat(O.t("Total"),"  (").concat(r.Product2Symbol,")"),decimalPlaces:s[r.Product2Symbol],disabled:!0})]}),Object(kb.jsx)("div",{children:f?Object(kb.jsxs)(Hb,{customClass:d("logged-out"),styleName:p?Zb:qb,children:[Object(kb.jsx)(Zj.a,{to:Object(wb.a)("/login"),children:"Sign In"}),"\xa0or\xa0",Object(kb.jsx)(Zj.a,{to:Object(wb.a)("/signup"),children:"Sign Up"}),"\xa0to trade"]}):Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(Hb,{type:"submit",disabled:i||o||l||u,customClass:b,styleName:p?Zb:qb,rounded:!0,children:i?O.t("Processing..."):O.t(Ve(n))}),Object(kb.jsx)(jm,{})]})})]})}}]),n}(a.a.Component);bA.defaultProps={submitting:!1,isMarginActive:!1},bA.contextTypes={t:O.a.func.isRequired};var pA,jA=bA,mA=Ut()((function(e,t,n,r,a,c,i,s,o){return{layoutType:Nt,quantity:e,orderTotal:t||0,basePrice:n||0,side:r?Te:Pe,orderType:a||c,limitPrice:parseFloat(i)||s,stopPrice:"",fee:"0",totalAmount:"0",selectedInstrumentId:o,timeInForce:"1"}})),fA={},hA={values:{}},OA=Object(Pb.a)({enableReinitialize:!0,onSubmit:function(e,t,n){t(Qn("default",e)).then((function(){var e;t((e=n.formName,function(t){t(nr(e)),t(Object(kn.c)(e))}))}))}})(jA),xA={onLimitPriceChange:Jn,change:kn.a},gA=Object(s.c)((function(e,t){var n=e.form,r=e.position,a=e.user,c=Ot(e),i=t.form,s=Vn(e),o=cb(e),l=(s&&!e.margin.instrument.fetching?e.margin.instrument:e.instrument).fetching,u=pt(e),d=u?u.InstrumentId:1,b=jt(e),p=n[i]&&n[i].values?n[i]:hA,j=Rt(e).disableTrading,m=nn(e,{side:p.values.side,formatToLocale:!1}),f=Ht(e,u.Product2)||fA;f.value||(f={value:1,Product:u.Product2Symbol});var h=e.auth,O=h.isAuthenticated,x=h.pending,g=!O&&!x,v=B(f.value*(p.values.limitPrice||0),f.DecimalPlaces);v=parseFloat(p.values.basePrice)||v;var y=mA(p.values.quantity,p.values.orderTotal,v,t.buy,t.orderType,Ee.limit.displayName,p.values.limitPrice,m,d);return{positions:c,baseProduct:f,formName:i,authorizedUserPermissions:a.permissions,orderEntryForm:p,orderFee:We(p,r.positions),initialValues:y,selectedInstrument:u,decimalPlaces:b,fetching:l,disableTrading:j,hideFees:!!Fe.a.global.hideFees,isMarginActive:s,marginProducts:o,loggedOut:g}}),xA)(OA);function vA(){return(vA=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yA(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function CA(e,t){var n=e.title,a=e.titleId,c=yA(e,["title","titleId"]);return r.createElement("svg",vA({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,pA||(pA=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M-4-4h20v20H-4z"}),r.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M7.414 6l4.293 4.293a1 1 0 0 1-1.414 1.414L6 7.414l-4.293 4.293a1 1 0 1 1-1.414-1.414L4.586 6 .293 1.707A1 1 0 0 1 1.707.293L6 4.586 10.293.293a1 1 0 0 1 1.414 1.414L7.414 6z"}))))}var wA=r.forwardRef(CA);n.p;var SA=function(e){var t=e.id,n=e.storeDismissed,c=e.children,i=e.color,s=e.padding,o=e.margin,l=e.isDismissed,u=e.className,d=a.a.useState(!1),b=Object(J.a)(d,2),p=b[0],j=b[1],m=JSON.parse(window.localStorage.getItem("dismissed"));m||(m={}),Object(r.useEffect)((function(){n&&m[t]&&j(m[t])}),[t,n,m,j]);return l&&l(p),Object(kb.jsx)(kb.Fragment,{children:!p&&Object(kb.jsxs)(sf,{className:u,color:i,padding:s,margin:o,children:[Object(kb.jsx)(IA,{onClick:function(){j(!0),n&&(m[t]=!0,window.localStorage.setItem("dismissed",JSON.stringify(m)))},children:Object(kb.jsx)(AA,{})}),Object(kb.jsx)(kA,{children:c})]})})},kA=Object(Tb.a)("div",{target:"e8cbz1y0"})({name:"oq3pyj",styles:"width:calc(100% - 25px);"}),IA=Object(Tb.a)("div",{target:"e8cbz1y1"})({name:"ir0rfa",styles:"position:absolute;top:10px;right:8px;width:30px;height:30px;padding:8px;cursor:pointer;"}),AA=Object(Tb.a)(wA,{target:"e8cbz1y2"})("color:",Po.a.text_grey,";width:100%;height:100%;");var PA=function(e){var t=Object(_j.a)().t,n=Object(r.useState)(!1),a=Object(J.a)(n,2),c=a[0],i=a[1],o=Object(s.f)((function(e){return pt(e)})).Product1Symbol;return Object(kb.jsx)(kb.Fragment,{children:mf.includes(o)&&Object(kb.jsxs)(kb.Fragment,{children:[!c&&Object(kb.jsx)(TA,{}),Object(kb.jsx)(EA,{color:Po.a.bg_warning,id:"exchange_only12-"+o,storeDismissed:!0,isDismissed:function(e){i(e)},children:Object(kb.jsx)(Tj.d,{children:t("Please note: You can only buy and sell { productSymbol } on Zipmex. Deposit and withdrawal for { productSymbol } is currently not supported.",{productSymbol:o})})},"exchange_only-"+o)]})})},TA=Object(Tb.a)("div",{target:"eozts0b0"})({name:"8416cx",styles:"position:absolute;top:0;left:0;z-index:99;width:101%;height:100%;background:#ffffff22;border-radius:2px;"}),EA=Object(Tb.a)(SA,{target:"eozts0b1"})({name:"13s43rb",styles:"z-index:100 !important;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:80%;box-shadow:1px 1px 8px #333;"}),RA=(n(617),"order-entry"),NA=Db(RA),MA=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.getAccountFees,n=e.takerFee,r=e.makerFee,a=e.AccountId;r&&n||!a||t()}},{key:"render",value:function(){var e=this.props,t=e.takerFee,n=e.makerFee,r=e.loggedOut,a=e.tabs,c=this.context;return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsx)("div",{className:Gb()(NA()),children:Object(kb.jsxs)("div",{className:NA("body"),children:[Object(kb.jsxs)("div",{className:NA("order-type-wrapper"),children:[Object(kb.jsx)("h3",{children:c.t("New Order")}),!r&&Object(kb.jsx)("span",{children:this.context.t("Fee: Taker ({takerFee}%) / Maker ({makerFee}%)",{takerFee:t,makerFee:n})}),Object(kb.jsx)("form",{children:Object(kb.jsx)(iA,{name:"orderType",items:a,customClass:RA})})]}),!e.loggedOut&&Object(kb.jsx)(dA,{}),Object(kb.jsx)(PA,{}),Object(kb.jsxs)("div",{className:NA("buy-sell-container"),children:[Object(kb.jsx)(gA,{form:"buyForm",baseClass:RA,baseClasses:NA,buy:!0,orderType:e.orderEntryForm.values.orderType}),Object(kb.jsx)(gA,{form:"sellForm",baseClass:RA,baseClasses:NA,orderType:e.orderEntryForm.values.orderType})]})]})})})}}]),n}(a.a.Component);MA.contextTypes={t:O.a.func.isRequired};var DA=Uh(MA),LA="order-entry",FA=Db(LA),UA=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props;return Object(kb.jsx)(a.a.Fragment,{children:"orders"!==e.activeTab&&Object(kb.jsx)("div",{className:Gb()(FA()),children:Object(kb.jsxs)("div",{className:FA("body"),children:[Object(kb.jsx)("div",{className:FA("order-type-wrapper"),children:Object(kb.jsx)("form",{children:Object(kb.jsx)(iA,{name:"orderType",items:e.tabs,customClass:LA})})}),!e.loggedOut&&Object(kb.jsx)(dA,{mobile:!0,activeTab:e.activeTab}),Object(kb.jsxs)("div",{className:FA("buy-sell-container"),children:[Object(kb.jsx)(PA,{},"overlay"),"buy"===e.activeTab&&Object(kb.jsx)(gA,{form:"buyForm",baseClass:LA,baseClasses:FA,buy:!0,orderType:e.orderEntryForm.values.orderType}),"sell"===e.activeTab&&Object(kb.jsx)(gA,{form:"sellForm",baseClass:LA,baseClasses:FA,orderType:e.orderEntryForm.values.orderType})]})]})})})}}]),n}(a.a.Component);UA.contextTypes={t:O.a.func.isRequired};var BA=Uh(UA),zA=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=[{value:Ee.market.displayName,text:this.context.t("Market"),dataTest:"Market Order Type"},"xbullion"!==Fe.a.global.brand&&{value:Ee.limit.displayName,text:this.context.t("Limit"),dataTest:"Limit Order Type"}].filter(Boolean);return Object(kb.jsxs)(a.a.Fragment,{children:[e.width>600&&Object(kb.jsx)(DA,Object(Y.a)(Object(Y.a)({},e),{},{tabs:t})),e.width<=600&&Object(kb.jsx)(BA,Object(Y.a)(Object(Y.a)({},e),{},{tabs:t}))]})}}]),n}(a.a.Component);zA.contextTypes={t:O.a.func.isRequired};var GA=Uh(zA),WA=Object(Pb.a)({form:"orderEntry",enableReinitialize:!0,destroyOnUnmount:!1})(GA),ZA=Object(xt.a)("exchangeBuySellTabs"),qA={getAccountFees:al},VA=Object(s.c)((function(e){var t=e.form,n=e.auth,r=n.isAuthenticated,a=n.pending,c=e.user.userInfo.AccountId,i=!r&&!a,s=Tt(e,Le),o=Tt(e,De),l=t.orderEntry||{values:{}};return{AccountId:c,takerFee:s,makerFee:o,activeTab:ZA(e,"activeTab"),orderEntryForm:l,loggedOut:i,initialValues:{orderType:l.values.orderType||Ee.limit.displayName}}}),qA)(WA),_A=(n(1073),Db("ap-vertical-scroller")),HA=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).resetUserScrolled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};r.userScrolled=!1,e()},r.userScrolled=!1,r.handleUserScrolled=function(){if(r.state.isAtRest)return r.userScrolled=!1;r.userScrolled=!0},r.state={isAtRest:!0},r.handleOnScroll=r.handleOnScroll.bind(Object(X.a)(r)),r}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.scrollToRest()}},{key:"componentDidUpdate",value:function(){var e=this.getDescendantCount(this,4);e!==this.descendantCount&&(this.descendantCount=e,this.state.isAtRest&&this.scrollToRest()),this.state.isAtRest&&this.resetUserScrolled()}},{key:"getDescendantCount",value:function(e,t){var n=this;if(t<=0||!e||!e.props||!e.props.children)return 0;var r=e.props.children;return Array.isArray(r)?t>1?r.reduce((function(e,r){return e+1+n.getDescendantCount(r,t-1)}),0):r.length:t>1?1+this.getDescendantCount(r,t-1):1}},{key:"handleOnScroll",value:function(e){if(this.el){this.handleUserScrolled();var t=this.el.clientHeight,n=this.el.scrollHeight,r=e.currentTarget.scrollTop,a=r,c=n-t-r,i=this.state.isAtRest,s="top"===this.props.restPosition&&a<=0||"bottom"===this.props.restPosition&&c<=0;this.setState({isAtRest:s}),i!==s&&this.props.onScrollRestChange&&this.props.onScrollRestChange(s)}}},{key:"getIsAtRest",value:function(){return this.state.isAtRest}},{key:"scrollTo",value:function(e,t){this.el&&(t?this.scrollToAnimate(this.el,e,200):this.el.scrollTop=e)}},{key:"scrollToRest",value:function(e){this.userScrolled&&!this.state.isAtRest||("bottom"!==this.props.restPosition?this.scrollTo(0,e):this.el&&this.scrollTo(this.el.scrollHeight,e))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.styleName,t.restPosition,t.onScrollRestChange,t.customClass),a=Object(Hr.a)(t,["children","styleName","restPosition","onScrollRestChange","customClass"]);return Object(kb.jsx)("div",Object(Y.a)(Object(Y.a)({ref:function(t){return e.el=t},className:"".concat(_A(null,this.state.isAtRest?"at-rest":null)," ").concat(r),onScroll:this.handleOnScroll},a),{},{children:n}))}},{key:"scrollToAnimate",value:function(e,t,n){var r=this,a=e.scrollTop,c=t-a,i=0;!function t(){i+=20;var s=r.easeInOutQuad(i,a,c,n);e.scrollTop=s,i<n&&setTimeout(t,20)}()}},{key:"easeInOutQuad",value:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}}]),n}(a.a.Component),YA=function(){return!!navigator.userAgent.indexOf("Firefox")&&-1===navigator.userAgent.indexOf("Chrome")};n(1074);var KA=function(e){var t=e.bemMod&&e.bemMod.length?"--"+e.bemMod:"",n=z(e.value,e.decimals);return Object(kb.jsxs)("span",{className:"ap-padded-decimal".concat(t),children:[Object(kb.jsx)("span",{className:"ap-padded-decimal__units".concat(t),children:n.units}),n.decimals&&Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)("span",{className:"ap-padded-decimal__decimal-separator".concat(t),children:n.decimalSeparator}),Object(kb.jsx)("span",{className:"ap-padded-decimal__decimals".concat(t),children:n.decimals}),Object(kb.jsx)("span",{className:"ap-padded-decimal__padding".concat(t),children:n.padding})]})]})};KA.defaultProps={value:0,decimals:2,bemMod:null};var QA=KA;var JA=Db("orderbook"),XA=Db("flex-table"),$A=function(e){var t=Object(r.useState)({}),n=Object(J.a)(t,2),a=n[0],c=n[1],i=Object(r.useState)(0),s=Object(J.a)(i,2),o=s[0],l=s[1],u=e.decimalPlaces,d=e.onPriceClick,b=e.onQuantityClick,p=e.level2Data,j=e.classModifier,m=e.fetching,f=e.userId;return Object(r.useEffect)((function(){var e=0;p.forEach((function(t,n){t&&a[n]&&(t.Price.toString()!==a[n].Price.toString()?p[n].changed=!0:p[n].changed=!1),e+=t.Quantity.multipliedBy(t.Price).toNumber()})),c(p),l(e)}),[a,p]),m?Object(kb.jsx)(Vf,{}):p.map((function(e,t){return Object(kb.jsxs)(eP,{children:[Object(kb.jsx)(nP,{mod:j,width:100/(o/2)*e.Quantity.multipliedBy(e.Price).toNumber()}),Object(kb.jsx)(rP,{changed:e.changed,mod:j,len:p.length,index:t}),Object(kb.jsxs)(tP,{children:[Object(kb.jsxs)("div",{onClick:function(){return d(B(e.Price,u[e.Price.symbol]))},className:"".concat(XA("column")," ").concat(JA("table-price",j)),children:[f===e.EnteredBy&&Object(kb.jsx)(Ij,{name:"caretNext",customClass:JA("icon")}),Object(kb.jsx)(QA,{bemMod:j,value:e.Price,decimals:u[e.Price.symbol]})]}),Object(kb.jsx)("div",{onClick:function(n){return b(B(e.Quantity,u[e.Quantity.symbol]),t,p)},className:"".concat(XA("column")," ").concat(JA("table-amt",j)),children:Object(kb.jsx)(QA,{value:e.Quantity,decimals:u[e.Quantity.symbol]})}),Object(kb.jsx)("div",{className:"".concat(XA("column")," ").concat(JA("table-vol",j)),children:Object(kb.jsx)(QA,{value:e.Quantity.multipliedBy(e.Price),decimals:u[e.Price.symbol]})})]})]},e.Price)}))},eP=Object(Tb.a)("div",{target:"erpynw0"})({name:"1h4329t",styles:"position:relative;width:100%;border-top:1px solid #102336;&&:last-of-type{border-bottom:1px solid #102336;}"}),tP=Object(Tb.a)("div",{target:"erpynw1"})({name:"1a642q9",styles:"padding:0 10px;background:transparent;position:relative;display:flex;width:100%;height:2.4rem;line-height:2.4rem;flex-shrink:0;align-items:center;&&:hover{background:#28506078;}"}),nP=Object(Tb.a)("div",{target:"erpynw2"})("position:absolute;top:0px;right:0px;background-color:",(function(e){return"buy"===e.mod?"#1b2d37":"#28232d"}),";width:",(function(e){return e.width+"%"}),";max-width:100%;height:20px;margin:2px;border-radius:3px;"),rP=Object(Tb.a)("div",{target:"erpynw3"})("position:absolute;top:0px;left:0px;width:100%;height:100%;animation-name:",(function(e){return e.changed?e.mod:"none"}),";animation-duration:0.5s;transform:translateZ(0);@keyframes buy{0%{background-color:rgba(100,200,200,0.07);}100%{background-color:transparent;}}@keyframes sell{0%{background-color:rgba(256,100,100,0.07);}100%{background-color:transparent;}}"),aP=n(1075),cP=n.n(aP),iP=(n(1076),n(1077),Db("trade-component")),sP=Db("orderbook"),oP=Db("flex-table"),lP=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e,r){var a;return Object(u.a)(this,n),(a=t.call(this,e,r)).resizeEventListener=function(){return a.onClickCenter(!0)},a.onClickCenter=a.onClickCenter.bind(Object(X.a)(a)),a.resizeEventListener=a.resizeEventListener.bind(Object(X.a)(a)),a}return Object(d.a)(n,[{key:"onClickCenter",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.sellScroller&&this.buyScroller){var n=function(){e.sellScroller.scrollToRest(),e.buyScroller.scrollToRest()};if(t)return this.sellScroller.resetUserScrolled((function(){return e.buyScroller.resetUserScrolled(n)}));n()}}},{key:"componentDidUpdate",value:function(e){this.props.selectedInstrumentId!==e.selectedInstrumentId&&this.onClickCenter(!0),this.onClickCenter()}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.resizeEventListener),this.onClickCenter()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resizeEventListener)}},{key:"render",value:function(){var e=this,t=this.context,n=this.props,r=n.level2,c=r.buy,i=r.sell,s=n.decimalPlaces,o=n.buyPriceClicked,l=n.buyQuantityClicked,u=n.sellPriceClicked,d=n.sellQuantityClicked,b=n.fetching,p=n.product1Symbol,j=n.product2Symbol,m=n.recentTrade,f=n.userId,h=n.width,O=n.activeTab,x=t.t("Price")+(j?" (".concat(j,")"):""),g=t.t("Vol")+(j?" (".concat(j,")"):"");return Object(kb.jsx)(a.a.Fragment,{children:(h>=600||"orders"!==O)&&Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsx)("div",{className:iP(),children:Object(kb.jsx)("div",{className:"".concat(oP()," ").concat(sP()),children:Object(kb.jsxs)("div",{className:"".concat(oP("body")," ").concat(sP("body")),children:[Object(kb.jsxs)("div",{className:"".concat(oP("header","background")," ").concat(sP("header")),children:[Object(kb.jsx)("div",{className:oP("column"),children:Object(kb.jsx)("div",{className:"".concat(oP("fixed")," ").concat(sP("table-header","price")),children:x})}),Object(kb.jsx)("div",{className:oP("column"),children:Object(kb.jsxs)("div",{className:"".concat(oP("fixed")," ").concat(sP("table-header","qty")),children:[t.t("Amt")," ",Object(kb.jsx)("span",{children:p?" (".concat(p,")"):""})]})}),Object(kb.jsx)("div",{className:oP("column"),children:Object(kb.jsx)("div",{className:"".concat(oP("fixed")," ").concat(sP("table-header","my-size")),children:g})})]}),Object(kb.jsxs)("div",{className:sP("order-book-body"),children:[Object(kb.jsx)(HA,{ref:function(t){return e.sellScroller=t},restPosition:"bottom",customClass:sP("vertical-scroller-body",YA()?"firefox":""),children:Object(kb.jsx)("div",{className:"orderbook__table-filler",children:Object(kb.jsx)($A,{userId:f,decimalPlaces:s,onPriceClick:u,onQuantityClick:d,level2Data:i,classModifier:"sell",fetching:b})})}),Object(kb.jsx)("div",{className:sP("recent-trade"),children:Object(kb.jsx)("span",{className:sP("recent-trade--".concat(m.TakerSide)),children:m.Price})}),Object(kb.jsx)(HA,{ref:function(t){return e.buyScroller=t},restPosition:"top",customClass:sP("vertical-scroller-body",YA()?"firefox":""),children:Object(kb.jsx)($A,{userId:f,decimalPlaces:s,onPriceClick:o,onQuantityClick:l,level2Data:c,classModifier:"buy",fetching:b})})]})]})})})})})}}]),n}(a.a.Component);lP.defaultProps={level2:{buy:[],sell:[],short:[],unknown:[]},recentTrades:[]},lP.contextTypes={t:O.a.func.isRequired};var uP=Uh(cP()(lP,50)),dP=function(){return function(e,t,n){if(!t)return e;var r=t.Product1Symbol,a=t.Product2Symbol,c=function(e){var t=Object(Q.a)(e),n=[];return t.sort((function(e,t){return e.Price.minus(t.Price)})),t.forEach((function(e){var t=n[n.length-1];if(t&&e.Price.eq(t.Price)){var r=Object(Y.a)(Object(Y.a)({},e),{},{DisplayQuantity:new k.a(e.DisplayQuantity).plus(new k.a(t.DisplayQuantity)),OrigQuantity:e.OrigQuantity.plus(t.OrigQuantity),OrderIds:[e.OrderId].concat(t.OrderIds)});n.splice(n.length-1,1,r)}else n.push(Object(Y.a)(Object(Y.a)({},e),{},{OrderIds:[e.OrderId]}))})),n}(n).map((function(e){var t=M(e.DisplayQuantity,r);return Object(Y.a)(Object(Y.a)({},e),{},{Quantity:t,MySize:e.OrigQuantity})}));return e.map((function(e){var t=M(e.Price,a),n=M(e.Quantity,r),i=c.findIndex((function(e){return e.Price.isEqualTo(t)}));if(-1!==i){var s=Object(Y.a)(Object(Y.a)({},c[i]),{},{Quantity:n,MySize:c[i].OrigQuantity});return c.splice(i,1),s}return Object(Y.a)(Object(Y.a)({},e),{},{Price:t,Quantity:n})})).sort((function(e,t){return t.Price.minus(e.Price)}))}},bP=Object(tt.createSelector)([function(e){return e.level2.buy},pt,_k],dP()),pP=Object(tt.createSelector)([function(e){return e.level2.sell},pt,Hk],dP()),jP=Object(tt.createSelector)([bP,pP],(function(e,t){return{buy:e,sell:t}})),mP=Object(tt.createSelector)([bP,pP],(function(e,t){var n=e.reduce((function(e,t){return t.Price.gt(e)?t.Price:e}),0),r=t.reduce((function(e,t){return t.Price.lt(e)?t.Price:e}),1/0);return r!==1/0?r.minus(n):0!==n?n.times(-1):new k.a(0)})),fP=Ut()((function(e,t,n){var r={};if(e){var a="-";t&&t.value&&(a="".concat(gt(t.Product,L(e.Price*t.value,t.DecimalPlaces)))),r=Object(Y.a)(Object(Y.a)({},e),{},{TakerSide:1===e.TakerSide?"sell":"buy",Price:L(e.Price,n[e.Price.symbol]),baseValue:a})}return r})),hP=Object(xt.a)("exchangeBuySellTabs"),OP={buyQuantityClicked:function(e,t,n){return function(r){r(nr("orderEntry"));var a=er(e,n,t);r(Object(kn.a)("buyForm","quantity",a)),r(Object(kn.a)("sellForm","quantity",a)),r(Object(kn.a)("orderEntry","orderType",Ee.market.displayName))}},buyPriceClicked:function(e){return function(t,n){var r=n().form.orderEntry.values.orderType===Ee.stopMarket.displayName;t(nr("buyForm")),t(nr("sellForm")),r||t(tr()),t(Object(kn.a)("buyForm",r?"stopPrice":"limitPrice",e)),t(Object(kn.a)("sellForm",r?"stopPrice":"limitPrice",e)),Jn(e)(t,n),t(Object(kn.a)("orderEntry","side",Pe))}},sellQuantityClicked:function(e,t,n){return function(r){r(nr("orderEntry"));var a=er(e,n,t,!1);r(Object(kn.a)("buyForm","quantity",a)),r(Object(kn.a)("sellForm","quantity",a)),r(Object(kn.a)("orderEntry","side",Te)),r(Object(kn.a)("orderEntry","orderType",Ee.market.displayName))}},sellPriceClicked:function(e){return function(t,n){var r=n().form.orderEntry.values.orderType===Ee.stopMarket.displayName;t(nr("buyForm")),t(nr("sellForm")),r||t(tr()),t(Object(kn.a)("buyForm",r?"stopPrice":"limitPrice",e)),t(Object(kn.a)("sellForm",r?"stopPrice":"limitPrice",e)),Jn(e)(t,n),t(Object(kn.a)("orderEntry","side",Te))}}},xP=Object(s.c)((function(e){var t=pt(e),n=t.InstrumentId,r=t.Product1Symbol,a=t.Product2Symbol,c=e.level2.fetching,i=jt(e),s={filterMode:"selectedInstrument"},o=jP(e,s),l=ak(e),u=mP(e,s),d=e.auth.userId,b=Ht(e,t.Product2),p=fP(l,b,i);return{activeTab:hP(e,"activeTab"),level2:o,spread:L(u,t.Product2Symbol),decimalPlaces:i,fetching:c,selectedInstrumentId:n,product1Symbol:r,product2Symbol:a,recentTrade:p,userId:d}}),OP)(uP),gP=(n(1078),Db("recent-trades")),vP=function(e,t){var n=e.recentTrades,r=e.decimalPlaces,a=e.fetching,c=[{header:t.t("Price"),cell:function(e){return Object(kb.jsx)("div",{className:gP("table-price",0===e.TakerSide?"buy":"sell"),children:Object(kb.jsx)(QA,{value:e.Price,bemMod:0===e.TakerSide?"buy":"sell",decimals:r[e.Price.symbol]})})}},{header:t.t("Amt"),cell:function(e){return Object(kb.jsx)("div",{className:gP("table-qty"),children:Object(kb.jsx)(QA,{value:e.Quantity,decimals:r[e.Quantity.symbol]})})}},{header:t.t("Time"),cell:function(e){return Object(kb.jsx)("div",{className:gP("table-time"),children:Object(mO.d)(e.Timestamp)})}}];return Object(kb.jsx)(kC,{columns:c,rows:n,baseClass:gP,empty:t.t("No recent trades"),fetching:a})};vP.defaultProps={recentTrades:[]},vP.contextTypes={t:O.a.func.isRequired};var yP=vP,CP=Object(s.c)((function(e){var t=nk(e),n=e.recentTrades.fetching;return{recentTrades:t,decimalPlaces:jt(e),fetching:n}}))(yP),wP=(n(1079),function(e){var t=e.children,n=e.customClass,r=e.classModifiers,a=e.header,c=Db("base-lt",n);return Object(kb.jsxs)("div",{className:c("layout-template",r),children:[Object(kb.jsx)("div",{className:c("header",r),children:a}),Object(kb.jsx)("div",{className:c("body",r),children:t})]})});wP.defaultProps={customClass:"custom-retail-widget"};var SP=wP,kP=Db("order-book"),IP=Db("recent-trade"),AP=function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)("div",{className:kP("container"),children:Object(kb.jsx)(SP,{header:t.t("Order Book"),customClass:"order-book",children:Object(kb.jsx)(xP,{})})}),Object(kb.jsx)("div",{className:IP("container"),children:Object(kb.jsx)(SP,{header:t.t("Recent Trades"),customClass:"recent-trade",children:Object(kb.jsx)(CP,{})})})]})};AP.contextTypes={t:O.a.func.isRequired};var PP=AP,TP=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).renderContent=function(){var t=e.props.height<=1080;return Object(kb.jsx)(PP,{short:t})},e}return Object(d.a)(n,[{key:"render",value:function(){return Object(kb.jsx)(a.a.Fragment,{children:this.renderContent()})}}]),n}(a.a.Component),EP=function(){var e=Fe.a.global.gateway,t=localStorage.getItem("tradingServer");return Array.isArray(e)?t&&e.includes(t)?t:(localStorage.setItem("tradingServer",e[0]),e[0]):t!==e?(localStorage.setItem("tradingServer",e),e):t};function RP(e){switch(e){case"1":case"1m":return 60;case"5":case"5m":return 300;case"15":case"15m":return 900;case"30":case"30m":return 1800;case"60":case"1H":return 3600;case"120":case"2H":return 7200;case"240":case"4H":return 14400;case"360":case"6H":return 21600;case"720":case"12H":return 43200;case"D":case"1D":return 86400;case"W":case"1W":return 604800;case"4W":return 2419200;case"M":case"1M":return 2592e3;case"16W":return 9676800;default:return 60}}var NP={};NP.UDFCompatibleDatafeed=function e(t,n,r,a,c){var i=this;Object(u.a)(this,e),this.buildBar=function(e){return{time:e[e.length-1],high:e[1],low:e[2],open:e[3],close:e[4],volume:e[5]}},this.getBars=function(){var e=Object(V.a)(q.a.mark((function e(t,n,r,a,c){var s,o,l,u,d,b;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=r.from,o=r.to,l=i,!(s>0&&"".concat(s).length>10)){e.next=4;break}throw new Error("Got a JS time instead of Unix one. rangeStartDate: ".concat(s,", rangeEndDate: ").concat(o));case 4:u=RP(n),d=1e3*u,i.ws.RPCCall("UnsubscribeTicker",i.unsubscribeReqObj),(b={}).OMSId=t.omsId,b.InstrumentId=t.instrumentId,b.Interval=u,b.IncludeLastCount=5e3,i.subscriptionIntervalMs=d,l.ws.RPCCall("SubscribeTicker",b,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i.unsubscribeReqObj.OMSId=t.omsId,i.unsubscribeReqObj.InstrumentId=t.instrumentId;for(var n=!(e=JSON.parse(e.o)).length,r=[],c=e.length,u=0;u<c;++u){var d=e[u],b=l.buildBar(d);r.push(b)}c>0?(i.gotBars=t.name,i.lastBar=r[r.length-1]):i.lastBar=null;var p=r.filter((function(e){return e.time>=1e3*s&&e.time<=1e3*o}));0===p.length?a([],{version:l._protocolVersion,noData:!0,nextTime:null}):a(r,{version:l._protocolVersion,noData:n,nextTime:e.nb||e.nextTime||null})}));case 14:case"end":return e.stop()}}),e)})));return function(t,n,r,a,c){return e.apply(this,arguments)}}(),this.onMessage=function(e){var t=i._amsynchro[e.i];if(void 0===t){if("TickerDataUpdateEvent"===e.n){var n=JSON.parse(e.o);if(void 0!==i.callback&&null!==i.callback){var r=i.buildBar(n[0]);null!==i.lastBar&&(r.time-i.subscriptionIntervalMs<i.lastBar.time&&(r.time=i.lastBar.time),i.callback(r),i.lastBar=r)}}}else""===e.o?t({}):null!=t&&t(JSON.parse(e.o))},this.defaultConfiguration=function(){return{supports_search:!0,supports_group_request:!1,supported_resolutions:[1,5,15,30,60,240,360,720,"D","W","M"],supports_marks:!1,supports_timescale_marks:!1}},this.getServerTime=function(e){i._configuration.supports_time&&i._send("".concat(i._datafeedURL,"/time"),{}).done((function(t){e(+t)})).fail((function(){}))},this.on=function(e,t){return Object.prototype.hasOwnProperty.call(i._callbacks,e)||(i._callbacks[e]=[]),i._callbacks[e].push(t),i},this.onInitialized=function(){i._initializationFinished=!0,i._fireEvent("initialized")},this.onReady=function(e){var t=i;i._configuration?setTimeout((function(){e(t._configuration)}),0):i.on("configuration_ready",(function(){e(t._configuration)}))},this.resolveSymbol=function(e,t,n){var r={},a=i.instrumentsArray.filter((function(t){return t.Symbol===e}))[0];if(a){var c=i._getDecimalPlaces(a.PriceIncrement)||2;r.omsId=a.OMSId,r.name=a.Symbol,r.full_name=a.Symbol,r.description=a.Symbol,r.instrumentId=a.InstrumentId,r.ticker=a.Symbol,r.minmov=1,r.pricescale=Math.pow(10,c),r.timezone=i._timezone,r.session="24x7",r.has_intraday=!0,setTimeout((function(){t(r)}),0)}else i._symbolRetries<10?(i._symbolRetries++,console.log("Symbol resolve retry #".concat(i._symbolRetries)),setTimeout((function(){i.resolveSymbol(e,t,n)}),100)):n("Could not resolve ".concat(e," after ").concat(i._symbolRetries," retries"))},this.searchSymbolsByName=function(){},this.searchSymbols=function(e,t,n,r){if(i._configuration)if(i._configuration.supports_search)i._send("".concat(i._datafeedURL,"/search"),{limit:30,query:e.toUpperCase(),type:n,exchange:t}).done((function(e){for(var t=JSON.parse(e),n=0;n<t.length;++n)t[n].params||(t[n].params=[]);"undefined"===typeof t.s||"error"!==t.s?r(t):r([])})).fail((function(e){throw r([]),new Error(e)}));else{if(!i._symbolSearch)throw new Error("Datafeed error: inconsistent configuration (symbol search)");var a={searchString:e,exchange:t,type:n,onResultReadyCallback:r};if(i._initializationFinished)i._symbolSearch.searchSymbols(a,30);else{var c=i;i.on("initialized",(function(){c._symbolSearch.searchSymbols(a,30)}))}}else r([])},this.subscribeBars=function(e,t,n,r,a){i.callback=n},this.unsubscribeBars=function(e){},this._setupWithConfiguration=function(e){i._configuration=e,i._configuration.exchanges||(i._configuration.exchanges=[]);var t=i._configuration.supported_resolutions||i._configuration.supportedResolutions;i._configuration.supported_resolutions=t;var n=i._configuration.symbols_types||i._configuration.symbolsTypes;if(i._configuration.symbols_types=n,!i._configuration.supports_search&&!i._configuration.supports_group_request)throw new Error("Unsupported datafeed configuration. Must either support search, or support group request");i._configuration.supports_search||(i._symbolSearch=new NP.SymbolSearchComponent(i)),i._configuration.supports_group_request||i.onInitialized(),i._fireEvent("configuration_ready"),i._logMessage("Initialized with ".concat(JSON.stringify(e)))},this._initialize=function(){i._setupWithConfiguration(i.defaultConfiguration()),i.ws.ws.filter((function(e){return"TickerDataUpdateEvent"===e.n})).subscribe((function(e){if(e=e.o,null!==i.callback){var t=i.buildBar(e[0]);null!==i.lastBar&&t&&"string"!==typeof t.time&&(t.time-i.subscriptionIntervalMs<i.lastBar.time&&(t.time=i.lastBar.time),i.callback(t),i.lastBar=t)}}))},this._fireEvent=function(e,t){if(Object.prototype.hasOwnProperty.call(i._callbacks,e)){for(var n=i._callbacks[e],r=0;r<n.length;++r)n[r](t);i._callbacks[e]=[]}},this._logMessage=function(e){i._enableLogging&&console.log(e,new Date)},this._send=function(e,t){var n=e;if(t)for(var r=0;r<Object.keys(t).length;++r){var a=Object.keys(t)[r],c=encodeURIComponent(t[a]);n+="".concat((0===r?"?":"&")+a,"=").concat(c)}return i._logMessage("New request: ".concat(n)),$.ajax({type:"GET",url:n,contentType:"text/plain"})},this._amsynchro={},this._callbacks={},this._configuration=void 0,this._datafeedURL=t,this._enableLogging=!1,this._initializationFinished=!1,this._historyURL="/history",this._protocolVersion=n||2,this._symbolSearch=null,this._symbolsStorage=null,this._symbolResolveURL="/symbols",this._symbolRetries=0,this._timezone=a,this._getDecimalPlaces=c.bind(this),this.callback=null,this.connected=!1,this.lastBar=null,this.unsubscribeReqObj={},this.gotBars="",this.subscriptionIntervalMs=0;var s=this._initialize.bind(this);this.ws=new Oe(r||EP(),{onopen:s}),this.ws.getInstruments((function(e){i.instrumentsArray=JSON.parse(e.o)})),this.ws.ws.filter((function(e){return"TickerDataUpdateEvent"===e.n})).subscribe((function(e){i.onMessage(e)}))};var MP=NP,DP=n(1080),LP=n.n(DP),FP=null,UP=function(e,t,n){if(e.includes("rgb")||e.includes("rgba")){if(e.includes(",")){var r=e.match(/(.*?)\(.*?\((.*?)\),(.*?)\)/),a=r[3],c=r[1];return BP(r[2],c,a)}var i=e.match(/(.*?)\(.*?\((.*?)\)\)/),s=i[1];return BP(i[2],s)}if(e.includes("var")){var o=e.match(/\((.*?)\)/)[1];return t||n?BP(o,t,n):BP(o)}},BP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=window,a=r.cssVariables,c=["rgb","rgba","var"],i=a[e],s=c.some((function(e){return-1!==i.indexOf(e)}));return s?UP(i,t,n):t&&n?"".concat(t,"(").concat(i,",").concat(n,")"):t?"".concat(t,"(").concat(i,")"):i},zP=function(){return window.CSS&&window.CSS.supports&&window.CSS.supports("(--foo: red)")},GP=function(e){return getComputedStyle(document.body).getPropertyValue(e).trim()},WP=(n(1083),Db(["tv-chart"])),ZP="Asia/Bangkok",qP=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={chartInitialized:!1},e.script=function(t){return new Promise((function(n){e.scripts[t]=document.createElement("script"),e.scripts[t].src=Object(wb.a)(t),e.scripts[t].type="text/javascript",e.scripts[t].async=!0,e.scripts[t].onload=n,document.body.appendChild(e.scripts[t])}))},e.createChart=function(t){var n=e.cssVariable("--tv-chart__loading-screen-bg-color"),r=e.cssVariable("--tv-chart__bg-color"),a=e.cssVariable("--tv-chart__grid-vertical-color"),c=e.cssVariable("--tv-chart__grid-horizontal-color"),i=e.cssVariable("--tv-chart__scale-font-color"),s=e.cssVariable("--tv-chart__scale-line-color"),o=e.cssVariable("--tv-chart__scale-bg-color"),l=e.cssVariable("--tv-chart__graph-up-color"),u=e.cssVariable("--tv-chart__graph-down-color"),d=e.cssVariable("--tv-chart__graph-border-up-color"),b=e.cssVariable("--tv-chart__graph-border-down-color"),p="rgba(".concat(e.cssVariable("--pc__accent-additive"),", .3)"),j="rgba(".concat(e.cssVariable("--pc__accent-subtractive"),", .3)"),m={"paneProperties.background":r,"paneProperties.backgroundGradientStartColor":r,"paneProperties.backgroundGradientEndColor":r,"paneProperties.vertGridProperties.color":a,"paneProperties.horzGridProperties.color":c,"paneProperties.topMargin":15,"paneProperties.bottomMargin":5,"scalesProperties.textColor":i,"scalesProperties.lineColor":s,"scalesProperties.backgroundColor":o,"mainSeriesProperties.candleStyle.upColor":l,"mainSeriesProperties.candleStyle.downColor":u,"mainSeriesProperties.candleStyle.borderUpColor":d,"mainSeriesProperties.candleStyle.borderDownColor":b,"mainSeriesProperties.candleStyle.wickUpColor":l,"mainSeriesProperties.candleStyle.wickDownColor":u,"mainSeriesProperties.candleStyle.drawBorder":!0,"mainSeriesProperties.candleStyle.drawWick":!0,"mainSeriesProperties.hollowCandleStyle.upColor":l,"mainSeriesProperties.hollowCandleStyle.downColor":r,"mainSeriesProperties.hollowCandleStyle.borderUpColor":d,"mainSeriesProperties.hollowCandleStyle.borderDownColor":b,"mainSeriesProperties.hollowCandleStyle.drawWick":!1,"mainSeriesProperties.haStyle.upColor":l,"mainSeriesProperties.haStyle.downColor":u,"mainSeriesProperties.haStyle.borderUpColor":d,"mainSeriesProperties.haStyle.borderDownColor":b,"mainSeriesProperties.haStyle.drawWick":!1,"mainSeriesProperties.barStyle.upColor":l,"mainSeriesProperties.barStyle.downColor":u,"mainSeriesProperties.lineStyle.color":l,"mainSeriesProperties.lineStyle.linewidth":"4","mainSeriesProperties.areaStyle.color1":l,"mainSeriesProperties.areaStyle.color2":p,"mainSeriesProperties.areaStyle.linecolor":l,"mainSeriesProperties.baselineStyle.topFillColor1":p,"mainSeriesProperties.baselineStyle.topFillColor2":p,"mainSeriesProperties.baselineStyle.bottomFillColor1":j,"mainSeriesProperties.baselineStyle.bottomFillColor2":j,"mainSeriesProperties.baselineStyle.topLineColor":l,"mainSeriesProperties.baselineStyle.bottomLineColor":u,volumePaneSize:"tiny"},f={"volume.volume.color.0":j,"volume.volume.color.1":p,"volume.precision":4},h={symbol:e.props.selectedInstrument.Symbol,datafeed:t,library_path:Object(wb.a)("/vendor/charting_library/"),custom_css_url:Object(wb.a)("/vendor/charting_library-zipmex.css"),theme:"light"===e.props.theme?"Light":"Dark",autosize:!0,interval:"15",timeframe:"1D",container:"trading-view-chart",loading_screen:{backgroundColor:n},overrides:m,studies_overrides:f,time_frames:[{text:"5Y",resolution:"1W",description:"All",title:"All"},{text:"1Y",resolution:"1W",description:"1Y",title:"1Y"},{text:"6M",resolution:"1D",description:"6M",title:"6M"},{text:"3M",resolution:"720",description:"3M",title:"3M"},{text:"1M",resolution:"360",description:"1M",title:"1M"},{text:"7D",resolution:"60",description:"7D",title:"7D"},{text:"3D",resolution:"30",description:"3D",title:"3D"},{text:"1D",resolution:"15",description:"1D",title:"1D"},{text:"6H",resolution:"5",description:"6H",title:"6H"},{text:"1H",resolution:"1",description:"1H",title:"1H"}]},O=LP.a.determine().name(),x=["Etc/UTC","Africa/Cairo","Africa/Johannesburg","Africa/Lagos","America/Argentina/Buenos_Aires","America/Bogota","America/Caracas","America/Chicago","America/El_Salvador","America/Juneau","America/Lima","America/Los_Angeles","America/Mexico_City","America/New_York","America/Phoenix","America/Santiago","America/Sao_Paulo","America/Toronto","America/Vancouver","Asia/Almaty","Asia/Ashkhabad","Asia/Bahrain","Asia/Bangkok","Asia/Chongqing","Asia/Dubai","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Jakarta","Asia/Jerusalem","Asia/Kathmandu","Asia/Kolkata","Asia/Kuwait","Asia/Muscat","Asia/Qatar","Asia/Riyadh","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Taipei","Asia/Tehran","Asia/Tokyo","Atlantic/Reykjavik","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Perth","Australia/Sydney","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Copenhagen","Europe/Helsinki","Europe/Istanbul","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Riga","Europe/Rome","Europe/Stockholm","Europe/Tallinn","Europe/Vilnius","Europe/Warsaw","Europe/Zurich","Pacific/Auckland","Pacific/Chatham","Pacific/Fakaofo","Pacific/Honolulu","Pacific/Norfolk","US/Mountain"].includes(O)?O:ZP,g=Fe.a.TradingView||{};e.timeout=setTimeout((function(){window.TradingView&&(e.widget=new TradingView.widget(Object(Y.a)(Object(Y.a)(Object(Y.a)({},h),g),{},{timezone:x,disabled_features:["header_symbol_search","header_compare","go_to_date","use_localstorage_for_settings","save_chart_properties_to_local_storage","display_market_status"],enabled_features:["dont_show_boolean_study_arguments","hide_last_na_study_output","move_logo_to_main_pane","hide_left_toolbar_by_default","side_toolbar_in_fullscreen_mode","header_in_fullscreen_mode"]})),e.widget.onChartReady((function(){var t="Moving Average";e.setState({chartInitialized:!0}),e.widget.activeChart().createStudy(t,!1,!1,[7],{"Plot.linewidth":1,"Plot.color":"rgba(255, 194, 0, 0.65)"}),e.widget.activeChart().createStudy(t,!1,!1,[25],{"Plot.linewidth":1,"Plot.color":"rgba(255, 0, 255, 0.65)"}),e.widget.activeChart().createStudy(t,!1,!1,[99],{"Plot.linewidth":1,"Plot.color":"rgba(204, 0, 102, 0.65)"})})))}),2e3)},e}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(){this.initChart()}},{key:"shouldComponentUpdate",value:function(e,t){return!(this.props.selectedInstrument.InstrumentId||!e.selectedInstrument.InstrumentId)||!!window.TradingView&&!!t&&!!t.chartInitialized}},{key:"componentDidMount",value:function(){var e=this;this.cssVariable=(FP||(FP=zP()?GP:BP),FP),this.scripts={},this.script("/vendor/charting_library/charting_library_v19_029.standalone.js").then((function(){e.initChart()}))}},{key:"removeChart",value:function(){try{this.widget&&window.tvChartDataFeed&&this.widget.remove(),window.tvChartDataFeed&&window.tvChartDataFeed.ws.closeConnection()}catch(e){console.warn("silently handled chart error: ",e)}delete this.widget,delete window.tvChartDataFeed}},{key:"initChart",value:function(){var e=this;if(this.props.selectedInstrument.InstrumentId){this.wsUri=EP();var t=LP.a.determine().name(),n=null!==t&&void 0!==t?t:ZP;this.widget?this.widget.activeChart().setSymbol(this.props.selectedInstrument.Symbol):(window.tvChartDataFeed||(window.tvChartDataFeed=new MP.UDFCompatibleDatafeed(this.wsUri,null,this.props.customGateway,n,(function(e){return it(e)}))),window.tvChartDataFeed.onReady((function(){return e.createChart(window.tvChartDataFeed)})))}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),this.widget&&(this.removeChart(),this.scripts["/vendor/charting_library/charting_library_v19_029.standalone.js"].remove())}},{key:"render",value:function(){return Object(kb.jsxs)("div",{className:WP("",{"with-depth-chart":Fe.a.TradingLayout.showDepthChart}),children:[!this.state.chartInitialized&&Object(kb.jsx)(Vf,{}),Object(kb.jsx)("div",{id:"trading-view-chart",className:WP("chart-container")})]})}}]),n}(a.a.Component);qP.contextTypes={t:O.a.func.isRequired};var VP=qP,_P={changeTickersInterval:function(e){return function(t){return t(vs(e)),t(fs())}}},HP=Object(s.c)((function(e){var t=pt(e),n=Fe.a.global.theme;return{selectedInstrument:t,theme:(JSON.parse(localStorage.getItem("apexTemplate"))||{}).theme||n}}),_P)(VP),YP=Db("trading-layout"),KP=Uh(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){return Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)("div",{className:YP("container"),children:[Object(kb.jsxs)("div",{className:YP("left-column"),children:[Object(kb.jsx)("div",{className:YP("body"),children:Object(kb.jsxs)("div",{className:YP("chart-container"),children:[Object(kb.jsx)(ok,{}),Object(kb.jsxs)("div",{className:YP("instrument-selector-chart"),children:[Object(kb.jsx)(vk,{}),Object(kb.jsx)(HP,{})]})]})}),Object(kb.jsx)("div",{className:YP("order-history"),children:Object(kb.jsx)(tA,{config:{filterMode:"selectedInstrument",usePagination:!0,maxLines:8}})})]}),Object(kb.jsxs)("div",{className:YP("right-column"),children:[Object(kb.jsx)("div",{className:YP("order-book-recent-trades-container"),children:Object(kb.jsx)(TP,{height:this.props.height,width:this.props.width})}),Object(kb.jsx)("div",{className:YP("order-entry"),children:Object(kb.jsx)(VA,{})})]})]})})}}]),n}(a.a.Component)),QP=function(e,t){return Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)(tO.a,{children:[Object(kb.jsx)(eO.a,{children:t.t("Markets")}),Object(kb.jsx)(vk,{show:!0})]})})};QP.contextTypes={t:O.a.func.isRequired};var JP=QP,XP=Uh(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)($h,{}),this.props.width>Pf.b.mobile&&Object(kb.jsx)(KP,Object(Y.a)({},this.props)),this.props.width<Pf.b.mobile&&Object(kb.jsx)(JP,Object(Y.a)({},this.props))]})}}]),n}(a.a.Component)),$P=function(e){var t=e.selectedInstrument;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(Tg,{to:"/exchange"}),Object(kb.jsx)(eO.a,{children:Object(kb.jsxs)("span",{children:[t.Product1Symbol," /"," ",t.Product2Symbol]})})]})},eT={selectInstrument:ro},tT=Object(s.c)((function(e,t){var n=pt(e);return n||ro(t.instrumentId),{selectedInstrument:n,selectInstrument:pt(e)}}),eT)($P),nT=(n(618),Db("exchange-page")),rT=new URLSearchParams(window.location.search).get("contentOnly"),aT=Uh((function(e){var t=e.match,n=Object(_j.a)().t;return rT?Object(kb.jsx)(HP,{}):Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)($h,{hideMenu:!0}),Object(kb.jsxs)(tO.a,{children:[Object(kb.jsx)(tT,{instrumentId:t.params.instrumentId}),Object(kb.jsxs)("div",{className:nT("padded-container"),children:[Object(kb.jsx)("div",{className:nT("instrument-table-container"),children:Object(kb.jsx)(ik,{})}),Object(kb.jsx)("div",{className:nT("chart-container"),children:Object(kb.jsx)(HP,{})}),Object(kb.jsxs)("div",{className:nT("latest-transactions"),children:[Object(kb.jsx)("h5",{children:n("Latest Transactions")}),Object(kb.jsx)(CP,{})]})]}),Object(kb.jsxs)("div",{className:nT("buy-sell-buttons"),children:[Object(kb.jsx)(Zj.a,{className:nT("buy-button"),to:"/exchange/buy-sell/".concat(t.params.instrumentId,"/buy"),children:n("Buy")}),Object(kb.jsx)(Zj.a,{className:nT("sell-button"),to:"/exchange/buy-sell/".concat(t.params.instrumentId,"/sell"),children:n("Sell")})]})]})]})})),cT=Db("buy-sell"),iT=function(e,t){var n=e.setActiveTab,r=e.activeTab,a=e.pageClasses;return Object(kb.jsxs)("div",{className:Gb()(cT("tab-wrapper"),a("tab-wrapper")),children:[Object(kb.jsx)("div",{className:cT("tab",{"buy-selected":"buy"===r}),onClick:function(){return n("buy")},children:t.t("Buy")}),Object(kb.jsx)("div",{className:cT("tab",{"sell-selected":"sell"===r}),onClick:function(){return n("sell")},children:t.t("Sell")}),Object(kb.jsx)("div",{className:cT("tab",{"sell-selected":"orders"===r}),onClick:function(){return n("orders")},children:t.t("Orders")})]})};iT.contextTypes={t:O.a.func.isRequired};var sT=iT,oT=Object(Pb.a)({form:"exchangeBuySellTabs",enableReinitialize:!0,destroyOnUnmount:!1})(sT),lT=Object(xt.a)("exchangeBuySellTabs"),uT=Object(s.c)((function(e,t){return{activeTab:lT(e,"activeTab"),initialValues:{activeTab:t.activeTab}}}),(function(e,t){return{setActiveTab:function(t){return e(Object(kn.a)("exchangeBuySellTabs","activeTab",t))}}}))(oT),dT=Db("exchange-page"),bT=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this.context,t=this.props.match;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)($h,{hideMenu:!0}),Object(kb.jsxs)(tO.a,{children:[Object(kb.jsx)(tT,{instrumentId:t.params.instrumentId}),Object(kb.jsxs)("div",{className:dT("padded-container"),children:[Object(kb.jsx)(uT,{pageClasses:dT,activeTab:t.params.activeTab}),Object(kb.jsxs)("div",{className:dT("buy-sell-top-container"),children:[Object(kb.jsx)("div",{className:dT("order-book-container"),children:Object(kb.jsx)(xP,{})}),Object(kb.jsx)(VA,{}),Object(kb.jsx)("div",{className:dT("open-orders-container"),children:Object(kb.jsx)(cI,{config:{filterMode:"selectedInstrument",usePagination:!0,maxLines:8}})})]}),Object(kb.jsxs)("div",{className:dT("latest-transactions"),children:[Object(kb.jsx)("h5",{children:e.t("Latest Transactions")}),Object(kb.jsx)(CP,{})]})]})]})]})}}]),n}(a.a.Component);bT.contextTypes={t:O.a.func};var pT=Uh(bT),jT=n(1084),mT=function(e){var t=e.input,n=e.meta,r=e.classModifiers,a=e.customClass,c=e.info,i=e.label,s=e.onSelect,o=e.showTriangles,l=e.options,u=void 0===l?[]:l,d=e.placeholder,b=Object(Hr.a)(e,["input","meta","classModifiers","customClass","info","label","onSelect","showTriangles","options","placeholder"]),p=Db(["ap-select",a]);return Object(kb.jsxs)("div",{className:"form-group ".concat(p("select-wrapper",r)),children:[Object(kb.jsx)("label",{className:"ap--label ".concat(p("select-label")),children:i}),o?Object(kb.jsx)("div",{className:p("triangles-container"),children:Object(kb.jsx)("span",{className:"triangle-down"})}):"",Object(kb.jsxs)("select",Object(Y.a)(Object(Y.a)(Object(Y.a)({className:Gb()("form-control ".concat(p("select")),t&&!t.value&&p("select-unselected"))},t),b),{},{onChange:function(e){s&&s(e.target.value),t&&t.onChange(e)},children:[d&&Object(kb.jsx)("option",{className:p("option-placeholder"),value:"",disabled:!0,children:d}),u.map((function(e){return Object(kb.jsx)("option",{value:e.value,children:e.label},e.value)}))]})),Object(kb.jsx)("small",{className:"form-text-muted ".concat(p("select-info")),children:c}),n&&n.dirty&&n.error&&Object(kb.jsx)("span",{className:p("select-error"),children:n.error})]})},fT=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:mT},e))};fT.defaultProps={name:"",label:"",classes:"input",customClass:"custom-select",classModifiers:"",info:"",autoFocus:"",disabled:!1,multiple:!1,required:!1};var hT=fT,OT=n(1177);var xT=function(e){var t=e.headline,n=e.setCollapsed,c=e.children,i=e.color,s=e.padding,o=e.margin,l=a.a.useState(!1),u=Object(J.a)(l,2),d=u[0],b=u[1],p=a.a.useState(!0),j=Object(J.a)(p,2),m=j[0],f=j[1],h=a.a.useState(!1),O=Object(J.a)(h,2),x=O[0],g=O[1],v=Object(r.useRef)(null),y=v.current,C=y?y.clientHeight:0,w=function(e){g(!0),e?setTimeout((function(){f(!1)}),400):f(!0),setTimeout((function(){g(!1)}),400),setTimeout((function(){b(e)}),0)};return a.a.useEffect((function(){void 0!==n&&w(n)}),[n]),Object(kb.jsxs)(sf,{color:i,padding:s,margin:o,children:[Object(kb.jsxs)(vT,{children:[Object(kb.jsx)(Tj.b,{as:"h4",children:t}),Object(kb.jsx)(yT,{onClick:function(e){e.preventDefault(),w(!d)},children:d?Object(kb.jsx)(ST,{}):Object(kb.jsx)(wT,{})})]}),Object(kb.jsx)(gT,{collapsed:d,contentHeight:C,animating:x,animSpeed:400,children:m&&c&&Object(kb.jsx)(CT,{ref:v,children:c})})]})},gT=Object(Tb.a)("div",{target:"e1rjga080"})("max-height:",(function(e){var t=e.animating,n=e.collapsed,r=e.contentHeight;return!0===t?n?"0px":r+"px":"none"}),";transition:max-height ",(function(e){return e.animSpeed+"ms"})," cubic-bezier(0.69,0.01,0.3,0.98);overflow:hidden;"),vT=Object(Tb.a)("header",{target:"e1rjga081"})(""),yT=Object(Tb.a)("button",{target:"e1rjga082"})({name:"8820nk",styles:"border:none;padding:8px 15px 0 0;margin:0;position:absolute;top:10px;right:0;width:100%;height:30px;display:flex;justify-content:flex-end;"}),CT=Object(Tb.a)("div",{target:"e1rjga083"})({name:"1hqhqki",styles:"padding:20px 0 0 0;"}),wT=Object(Tb.a)(xS,{target:"e1rjga084"})("transform:rotate(-90deg);width:16px;height:16px;color:",Po.a.text_grey,";"),ST=Object(Tb.a)(xS,{target:"e1rjga085"})("transform:rotate(90deg);width:16px;height:16px;color:",Po.a.text_grey,";");var kT=Object(Tb.a)(KO,{target:"e1c3l7ww0"})({name:"epvm6",styles:"white-space:nowrap;"}),IT=Object(Tb.a)(YO,{target:"e1c3l7ww1"})({name:"to60sb",styles:"padding:12px;font-weight:400;justify-content:center;flex-direction:column;white-space:nowrap;"}),AT=Object(Tb.a)(IT,{target:"e1c3l7ww2"})({name:"1jfvg9w",styles:"align-items:flex-start;"}),PT=Object(Tb.a)(IT,{target:"e1c3l7ww3"})({name:"y1kcm0",styles:"align-items:flex-end;"}),TT=Object(Tb.a)(IT,{target:"e1c3l7ww4"})("align-items:",(function(e){return e.align?e.align:"flex-start"}),";white-space:normal;overflow-wrap:anywhere;"),ET=Object(Tb.a)(IT,{target:"e1c3l7ww5"})({name:"1exq2y4",styles:"height:4rem;padding-left:2rem;line-height:4rem;grid-column-start:1;grid-column-end:end;"}),RT=Object(Tb.a)(Tj.f,{target:"e1c3l7ww6"})("color:",Po.a.text_body,";"),NT=Object(Tb.a)(sf,{target:"e1c3l7ww7"})({name:"dorrmn",styles:"margin-top:25px;margin-bottom:50px;"});var MT=function(e){var t=e.pageSize,n=e.isLoading,r=e.orders,c=e.customClassName,i=Object(_j.a)().t,s=Cv(r,t),o=s.activePage,l=s.setActivePage,u=s.renderingItems,d=n?Object(kb.jsx)(Vf,{}):u.length?u.map((function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(AT,{children:Object(kb.jsx)(RT,{children:e.dateTime})}),Object(kb.jsx)(IT,{children:Object(kb.jsx)(RT,{children:e.instrument})}),Object(kb.jsx)(IT,{children:Object(kb.jsx)(RT,{children:e.orderType})}),Object(kb.jsx)(IT,{children:Object(kb.jsx)(RT,{children:e.side})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:"USD"===e.product2Symbol?"$".concat(e.price):e.price})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:e.quantity})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:e.fee})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:e.amountReceived})})]},t)})):Object(kb.jsx)(ET,{children:i("No data is available")});return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(DT,{children:[Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Date")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Pair Name")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Type")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Buy/Sell")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Price")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Total Amount")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Fee")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:i("Amount Received")})}),d]}),t&&Object(kb.jsx)(vv,{totalItemsLength:r.length,activePage:o,pageSize:t,customClassName:c,onPageChange:function(e){return l(e)}})]})},DT=Object(Tb.a)(HO,{target:"emd3mde0"})({name:"2o9reo",styles:"grid-template-columns:auto auto auto auto 1fr 1fr 1fr 1fr;"});n(349);var LT=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={formValues:{}},e.handleGetAccountTradesOverLimit=function(){var t=Object(V.a)(q.a.mark((function t(n){var r,a;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),r=e.props,a=r.getAccountsTradesOverDefaultLimit,!r.isGetAccountTradesOverDefaultLimitSuccess){t.next=4;break}return t.abrupt("return");case 4:return t.prev=4,t.next=7,a();case 7:t.next=11;break;case 9:t.prev=9,t.t0=t.catch(4);case 11:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),e}return Object(d.a)(n,[{key:"filterOrders",value:function(e){var t=this.state.formValues,n=Object(jT.addDays)(t.endTime,1);return Object(jT.isDate)(t.startTime)&&(e=e.filter((function(e){return e.dateTimeRaw>Date.parse(t.startTime)}))),Object(jT.isDate)(t.endTime)&&(e=e.filter((function(e){return e.dateTimeRaw<Date.parse(n)}))),t.type&&(e=e.filter((function(e){return e.side===t.type}))),t.coinLeft&&(e=e.filter((function(e){return e.product1Symbol===t.coinLeft}))),t.coinRight&&(e=e.filter((function(e){return e.product2Symbol===t.coinRight}))),e}},{key:"render",value:function(){var e=this,t=this.props,n=t.orders,r=t.formValues,c=t.resetForm,i=t.products,s=t.cancelAllOrders,o=t.pageSize,l=t.showGetMoreHistory,u=t.isAccountTradesOverDefaultLimitLoading,d=this.context,b=[{value:"",label:d.t("All")},{value:"Sell",label:d.t("Sell")},{value:"Buy",label:d.t("Buy")}],p=[{value:"",label:d.t("All")}].concat(Object(Q.a)(i.map((function(e){var t=e.Product;return{value:t,label:t}})))),j=[[d.t("Date"),d.t("Pair Name"),d.t("Type"),d.t("Buy/Sell"),d.t("Price"),d.t("Total Amount"),d.t("Fee"),d.t("Amount Received")]].concat(Object(Q.a)(n.map((function(e){return[e.dateTime,e.instrument,e.orderType,e.side,e.price,e.quantity,e.amountReceived]})))),m=this.filterOrders(n);return Object(kb.jsxs)(a.a.Fragment,{children:[m&&Object(kb.jsx)(xT,{headline:d.t("Filters"),margin:"25px 0 0 0",setCollapsed:!0,children:Object(kb.jsx)("form",{children:Object(kb.jsxs)(BT,{children:[Object(kb.jsxs)(GT,{color:Po.a.bg_tertiary,children:[Object(kb.jsx)(HI,{placeholder:d.t("Start time"),name:"startTime",label:d.t("Date range"),initialOptions:{theme:"retail"}}),Object(kb.jsx)(zT,{children:"-"}),Object(kb.jsx)(HI,{placeholder:d.t("End time"),label:" ",name:"endTime",initialOptions:{theme:"retail"}})]}),Object(kb.jsxs)(WT,{color:Po.a.bg_tertiary,children:[Object(kb.jsx)(hT,{name:"coinLeft",label:d.t("Coins"),options:p,showTriangles:!0}),Object(kb.jsx)(zT,{children:"/"}),Object(kb.jsx)(hT,{name:"coinRight",options:p,showTriangles:!0})]}),Object(kb.jsx)(ZT,{color:Po.a.bg_tertiary,children:Object(kb.jsx)(hT,{name:"type",label:d.t("Type"),options:b,showTriangles:!0})}),Object(kb.jsxs)(VT,{children:[Object(kb.jsxs)(qT,{color:Po.a.bg_tertiary,children:[Object(kb.jsx)(Pm,{variant:"outlined",margin:"0 10px 0 0",size:"small",onMouseUp:function(){c(),e.setState({formValues:{}})},children:d.t("Clear Filter")}),Object(kb.jsx)(OT.CSVLink,{data:j,filename:"orders.csv",children:Object(kb.jsx)(Pm,{variant:"outlined",margin:"0 10px 0 0",size:"small",children:d.t("Export")})}),Object(kb.jsx)(Pm,{variant:"outlined",size:"small",onMouseUp:s,children:d.t("Cancel all")})]}),0!==n.length&&0===m.length&&Object(kb.jsxs)("div",{style:{display:"flex",flexDirection:"column",textAlign:"center"},children:[Object(kb.jsx)("span",{children:d.t("Could not find your specific order?")})," ",Object(kb.jsx)(FT,{variant:"text",onClick:this.handleGetAccountTradesOverLimit,children:d.t("Please click here, wait for a few second then try again")})]})]}),Object(kb.jsx)(_T,{size:"medium",onMouseUp:function(){e.setState({formValues:r})},children:d.t("Search")})]})})}),Object(kb.jsx)(NT,{children:m&&Object(kb.jsx)(MT,{isLoading:u&&l,orders:m,pageSize:o})})]})}}]),n}(a.a.Component),FT=Object(Tb.a)(Pm,{target:"e1r0f94a0"})({name:"9smwd2",styles:"display:inline-block !important;font-size:inherit !important;padding:0 1rem !important;"});LT.defaultProps={pageSize:8,showOnlyActivePage:!1,usePagination:!1},LT.contextTypes={t:O.a.func.isRequired};var UT=LT,BT=Object(Tb.a)("div",{target:"e1r0f94a1"})({name:"1dtnjt5",styles:"display:flex;align-items:center;flex-wrap:wrap;"}),zT=Object(Tb.a)("div",{target:"e1r0f94a2"})({name:"jio4sl",styles:"margin:8px;display:flex;align-items:center;flex-direction:column;"}),GT=Object(Tb.a)(sf,{target:"e1r0f94a3"})({name:"1uz5it0",styles:"display:flex;justify-items:flex-start;align-items:flex-end;min-width:259px;max-width:259px;margin:7px 15px 7px 0;"}),WT=Object(Tb.a)(sf,{target:"e1r0f94a4"})({name:"1neiu9w",styles:"display:flex;align-items:flex-end;min-width:167px;max-width:167px;margin:7px 15px 7px 0;"}),ZT=Object(Tb.a)(sf,{target:"e1r0f94a5"})({name:"fisx4b",styles:"display:flex;align-items:flex-end;max-width:76px;margin:7px 15px 7px 0;"}),qT=Object(Tb.a)(sf,{target:"e1r0f94a6"})({name:"jki8q6",styles:"display:flex;align-items:center;justify-content:space-between;min-width:310px;max-width:310px;margin:7px 15px 7px 0;align-self:stretch;"}),VT=Object(Tb.a)("div",{target:"e1r0f94a7"})({name:"j7qwjs",styles:"display:flex;flex-direction:column;"}),_T=Object(Tb.a)(Pm,{target:"e1r0f94a8"})({name:"165zb19",styles:"margin-top:7px !important;"}),HT=n(679),YT=Object(s.c)((function(e,t){var n=e.product,r=n.decimalPlaces,a=n.products,c=e.instrument.instruments,i=e.orderHistory,s=i.isAccountTradesOverDefaultLimitLoading,o=i.isAccountTradesOverDefaultLimitSuccess,l=[],u={filterMode:"all"};"openOrders"===t.activeTab?l=Vk()(e,u):l=Qk()(e,u);return{orders:l=l.map((function(e,t){var n=e.InstrumentId||e.Instrument,a=(c.find((function(e){return e.InstrumentId===n}))||{}).Product1Symbol,i=(c.find((function(e){return e.InstrumentId===n}))||{}).Product2Symbol,s=e.ReceiveTime||e.TradeTimeMS,o="".concat(L(e.Quantity,r[a])," ").concat(a),l="";return e.Fee&&(l="".concat(L(e.Fee,e.Fee.symbol)," ").concat(e.Fee.symbol),o=e.Fee.symbol===a?"".concat(L(e.Quantity-e.Fee,r[a])," ").concat(a):"".concat(L(e.Value-e.Fee,r[i])," ").concat(i)),{quantity:"".concat(L(e.Quantity,r[a])," ").concat(a),price:"".concat(L(e.Price,r[i])," ").concat(i),fee:l,amountReceived:o,orderId:e.OrderId,orderType:e.OrderType,dateTime:Object(mO.c)(e.ReceiveTime||e.TradeTimeMS),dateTimeRaw:s,side:e.Side,instrument:(c.find((function(e){return e.InstrumentId===n}))||{}).Symbol,product1Symbol:a,product2Symbol:i,itemId:t}})),formValues:Object(HT.a)("orderFilterForm")(e)||{},initialValues:{coinLeft:"",countRight:"",type:"",startTime:"",endTime:""},products:a,isAccountTradesOverDefaultLimitLoading:s,isAccountTradesOverDefaultLimitSuccess:o}}),(function(e){return{resetForm:function(){return e(Object(kn.c)("orderFilterForm"))},cancelAllOrders:function(){return e((function(e,t){var n=t().user.userInfo.OMSId,r=t().user.selectedAccountId;Ce.connection.CancelAllOrders({OMSId:n,AccountId:r}),e(sr({id:"cancelAllOrdersSuccessSnack",text:"All orders cancelled",type:"success"}))}))},getAccountsTradesOverDefaultLimit:function(){return e(function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a,c,i,s;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),a=r.user,c=a.userInfo,i=c.OMSId,s=c.AccountId,e.prev=2,t({type:wr}),e.next=6,t(Pr(s,i,5e3));case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(2);case 10:t({type:Sr});case 11:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t,n){return e.apply(this,arguments)}}())}}}))(UT),KT=Object(Pb.a)({form:"orderFilterForm"})(YT),QT=Object(Ni.get)(Fe.a,"global.exchangeStatus.products"),JT=function(e){var t=QT.find((function(t){return t.id===e}));return t?t.apId:""};var XT=function(e){var t=e.pageSize,n=e.withdrawals,c=e.customClassName,i=e.onWithdrawalCancel,o=e.cancelling,l=Object(_j.a)().t,u=Cv(n,t),d=u.activePage,b=u.setActivePage,p=u.renderingItems,j=function(e){if(null!=e)return e.split("2fa").join("2FA").split("_").join(" ")},m=Object(s.f)((function(e){return e.product.products})),f=Object(r.useState)(-1),h=Object(J.a)(f,2),O=h[0],x=h[1],g=p.length?p.map((function(e,t){var n,r,c,s,u,d;try{u=e.WithdrawTransactionDetails?JSON.parse(e.WithdrawTransactionDetails):{}}catch(f){u={}}try{d=e.TemplateForm?JSON.parse(e.TemplateForm):{}}catch(f){d={}}var b=JT(e.product.id),p=m.find((function(e){return e.ProductId===b}));return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(eE,{children:[Object(kb.jsx)(tE,{children:Object(kb.jsx)(cm,{iconFileName:Lt((null===p||void 0===p?void 0:p.Product)||"X"),size:25})}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)(nE,{children:null===p||void 0===p?void 0:p.Product}),Object(kb.jsx)(rE,{children:e.product.name})]})]}),Object(kb.jsx)(IT,{children:Object(kb.jsx)(RT,{children:j(l(e.status))})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:L(e.amount,null===p||void 0===p?void 0:p.DecimalPlaces)})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:L(e.feeAmount,null===p||void 0===p?void 0:p.DecimalPlaces)})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:L(e.receivedAmount,null===p||void 0===p?void 0:p.DecimalPlaces)})}),Object(kb.jsxs)(AT,{children:[Object(kb.jsx)(RT,{children:Object(mO.b)(e.createdAt)}),Object(kb.jsx)(Tj.f,{children:Object(mO.d)(e.createdAt)})]}),Object(kb.jsx)(TT,{align:"center",children:Object(kb.jsx)(RT,{children:(null===e||void 0===e||null===(n=e.details)||void 0===n?void 0:n.hasOwnProperty("txId"))?null===e||void 0===e||null===(r=e.details)||void 0===r?void 0:r.txId:u.TxId||e.isUserCancelable&&"user_canceled"!==e.status&&(o&&O===t?Object(kb.jsx)(Vf,{size:12}):Object(kb.jsx)(kk,{onClick:function(){x(t),function(e){i(e)}(e)}}))})}),Object(kb.jsx)(TT,{children:Object(kb.jsx)(RT,{children:(null===e||void 0===e||null===(c=e.details)||void 0===c?void 0:c.hasOwnProperty("transferAddress"))?null===e||void 0===e||null===(s=e.details)||void 0===s?void 0:s.transferAddress:d.ExternalAddress})})]},t)})):Object(kb.jsx)(ET,{children:l("No data is available")});return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)($T,{children:[Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Currency")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Status")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Total")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Fees")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Total Received")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Date")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Transaction Hash")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Transfer Address")})}),g]}),t&&Object(kb.jsx)(vv,{totalItemsLength:n.length,activePage:d,pageSize:t,customClassName:c,onPageChange:function(e){return b(e)}})]})},$T=Object(Tb.a)(HO,{target:"efkkjzn0"})({name:"1yzsl5n",styles:"grid-template-columns:minmax(180px,200px) minmax(auto,200px) 100px auto auto auto auto auto;text-transform:capitalize;"}),eE=Object(Tb.a)(IT,{target:"efkkjzn1"})({name:"ygxi12",styles:"flex-direction:row;align-items:center;justify-content:flex-start;padding-left:0px;"}),tE=Object(Tb.a)("div",{target:"efkkjzn2"})({name:"1t9l6fj",styles:"display:block;padding-right:8px;"}),nE=Object(Tb.a)(Tj.d,{target:"efkkjzn3"})({name:"ttjnck",styles:"margin:0 8px 0 0;"}),rE=Object(Tb.a)(Tj.f,{target:"efkkjzn4"})("display:none;@media (min-width:",Pf.a.tablet,"){display:inline;max-width:30px;}"),aE=function(e){var t=e.pageSize,n=Object(s.f)((function(e){return e.transactionsSlice.withdrawals})),a=Object(s.f)((function(e){return e.transactionsSlice.fetching})),c=Object(s.e)();Object(r.useEffect)((function(){c(function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=xb(),t(jb(!0)),e.next=4,Object(x.v)({token:n});case 4:r=e.sent,t(mb(r)),t(jb(!1));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),[]);var i=Object(r.useState)(!1),o=Object(J.a)(i,2),l=o[0],u=o[1];return Object(kb.jsx)(NT,{children:a?Object(kb.jsx)(Vf,{}):Object(kb.jsx)(XT,{withdrawals:n,customClassName:Db("orders-list")(),pageSize:t,onWithdrawalCancel:function(e){console.log(e.ticketId,e.ticketVersion);try{c(function(e){var t=e.ticketId,n=e.ticketVersion,r=e.onSetCancelling;return function(){var e=Object(V.a)(q.a.mark((function e(a){var c,i;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=xb(),r(!0),console.log(t,n),e.next=5,Object(x.c)({token:c,ticketId:t,ticketVersion:n});case 5:i=e.sent,console.log("res",i),a(fb(i)),r(!1);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}({ticketId:e.ticketId,ticketVersion:e.ticketVersion,onSetCancelling:u})),c(sr({id:"cancelledSuccess",text:"Withdrawal has been cancelled.",type:"success"}))}catch(t){console.log(t),c(sr({id:"cancelledError",text:t,type:"error"}))}},cancelling:l})})};aE.defaultProps={pageSize:8};var cE=aE;var iE=function(e){var t=e.deposits,n=e.pageSize,c=e.customClassName,i=e.onDepositCancel,o=e.cancelling,l=Object(_j.a)().t,u=Cv(t,n),d=u.activePage,b=u.setActivePage,p=u.renderingItems,j=Object(s.f)((function(e){return e.product.products})),m=Object(r.useState)(-1),f=Object(J.a)(m,2),h=f[0],O=f[1],x=p.length?p.map((function(e,t){var n,r,c,s,u,d=JT(e.product.id),b=j.find((function(e){return e.ProductId===d}));return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(oE,{children:[Object(kb.jsx)(lE,{children:Object(kb.jsx)(cm,{iconFileName:Lt((null===b||void 0===b?void 0:b.Product)||"X"),size:25})}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)(uE,{children:null===b||void 0===b?void 0:b.Product}),Object(kb.jsx)(dE,{children:e.product.name})]})]}),Object(kb.jsx)(IT,{children:Object(kb.jsx)(RT,{children:(u=l(e.status),u.split("_").join(" "))})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:L(e.amount,null===b||void 0===b?void 0:b.DecimalPlaces)})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:e.feeAmount?L(e.feeAmount,null===b||void 0===b?void 0:b.DecimalPlaces):""})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:e.feeAmount?L(Math.max(parseFloat(e.amount)-parseFloat(e.feeAmount),0),null===b||void 0===b?void 0:b.DecimalPlaces):L(e.amount,null===b||void 0===b?void 0:b.DecimalPlaces)})}),Object(kb.jsxs)(AT,{children:[Object(kb.jsx)(RT,{children:Object(mO.b)(e.createdAt)}),Object(kb.jsx)(Tj.f,{children:Object(mO.d)(e.createdAt)})]}),Object(kb.jsx)(TT,{align:"center",children:Object(kb.jsx)(RT,{children:(null===e||void 0===e||null===(n=e.details)||void 0===n?void 0:n.hasOwnProperty("txId"))?null===e||void 0===e||null===(r=e.details)||void 0===r?void 0:r.txId:e.isUserCancelable&&"user_canceled"!==e.status&&(o&&h===t?Object(kb.jsx)(Vf,{size:12}):Object(kb.jsx)(kk,{onClick:function(){O(t),function(e){i(e)}(e)}}))})}),Object(kb.jsx)(TT,{children:Object(kb.jsx)(RT,{children:(null===e||void 0===e||null===(c=e.details)||void 0===c?void 0:c.hasOwnProperty("transferAddress"))?null===e||void 0===e||null===(s=e.details)||void 0===s?void 0:s.transferAddress:""})})]},t)})):Object(kb.jsx)(ET,{children:l("No data is available")});return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sE,{children:[Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Currency")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Status")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Total")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Fees")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Received")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Date")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Transaction")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:l("Transfer Address")})}),x]}),n&&Object(kb.jsx)(vv,{totalItemsLength:t.length,activePage:d,pageSize:n,customClassName:c,onPageChange:function(e){return b(e)}})]})},sE=Object(Tb.a)(HO,{target:"eukbsa0"})({name:"1c3cl6h",styles:"grid-template-columns:minmax(100px,200px) minmax(auto,200px) 100px auto auto minmax( 150px,200px ) auto auto;text-transform:capitalize;"}),oE=Object(Tb.a)(IT,{target:"eukbsa1"})({name:"ygxi12",styles:"flex-direction:row;align-items:center;justify-content:flex-start;padding-left:0px;"}),lE=Object(Tb.a)("div",{target:"eukbsa2"})({name:"1t9l6fj",styles:"display:block;padding-right:8px;"}),uE=Object(Tb.a)(Tj.d,{target:"eukbsa3"})({name:"ttjnck",styles:"margin:0 8px 0 0;"}),dE=Object(Tb.a)(Tj.f,{target:"eukbsa4"})("display:none;@media (min-width:",Pf.a.tablet,"){display:inline;}"),bE=function(e){var t=e.pageSize,n=Object(s.f)((function(e){return e.transactionsSlice.deposits})),a=Object(s.e)(),c=Object(s.f)((function(e){return e.transactionsSlice.fetching}));Object(r.useEffect)((function(){a(function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=xb(),t(jb(!0)),e.next=4,Object(x.t)({token:n});case 4:r=e.sent,t(pb(r)),t(jb(!1));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),[a]);var i=Object(r.useState)(!1),o=Object(J.a)(i,2),l=o[0],u=o[1];return Object(kb.jsx)(NT,{children:c?Object(kb.jsx)(Vf,{}):Object(kb.jsx)(iE,{deposits:n,customClassName:Db("orders-list")(),pageSize:t,onDepositCancel:function(e){console.log(e.ticketId,e.ticketVersion);try{a(function(e){var t=e.ticketId,n=e.ticketVersion,r=e.onSetCancelling;return function(){var e=Object(V.a)(q.a.mark((function e(a){var c,i;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=xb(),r(!0),console.log(t,n),e.next=5,Object(x.b)({token:c,ticketId:t,ticketVersion:n});case 5:i=e.sent,console.log("res",i),a(hb(i)),r(!1);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}({ticketId:e.ticketId,ticketVersion:e.ticketVersion,onSetCancelling:u})),a(sr({id:"cancelledSuccess",text:"Deposit has been cancelled.",type:"success"}))}catch(t){console.log(t),a(sr({id:"cancelledError",text:t,type:"error"}))}},cancelling:l})})};bE.defaultProps={pageSize:8};var pE=bE;var jE=function(e){var t=e.transfers,n=e.pageSize,r=e.customClassName,c=Object(_j.a)().t,i=Cv(t,n),s=i.activePage,o=i.setActivePage,l=i.renderingItems,u=l.length?l.map((function(e,t){return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)(fE,{children:[Object(kb.jsx)(hE,{iconFileName:Lt(e.product.ProductSymbol),size:24}),Object(kb.jsx)(RT,{children:e.product?e.product.ProductSymbol:"-"})]}),Object(kb.jsx)(IT,{children:Object(kb.jsx)(RT,{children:e.Type})}),Object(kb.jsx)(IT,{children:Object(kb.jsx)(RT,{children:"Received"===e.Type?e.SenderUserName:e.ReceiverUserName})}),Object(kb.jsx)(PT,{children:Object(kb.jsx)(RT,{children:e.Amount})}),Object(kb.jsx)(TT,{children:Object(kb.jsx)(RT,{children:e.Notes})})]},t)})):Object(kb.jsx)(ET,{children:c("No data is available")});return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(mE,{children:[Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:c("Product")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:c("Sent / Received")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:c("To / From")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:c("Amount")})}),Object(kb.jsx)(kT,{children:Object(kb.jsx)(Tj.d,{align:"center",children:c("Notes")})}),u]}),n&&Object(kb.jsx)(vv,{totalItemsLength:t.length,activePage:s,pageSize:n,customClassName:r,onPageChange:function(e){return o(e)}})]})},mE=Object(Tb.a)(HO,{target:"e1m0ossh0"})({name:"1tdukvj",styles:"grid-template-columns:auto auto auto 1fr 300px;"}),fE=Object(Tb.a)(IT,{target:"e1m0ossh1"})({name:"1qqz15b",styles:"flex-direction:row;align-items:center;justify-content:flex-start;"}),hE=Object(Tb.a)(am,{target:"e1m0ossh2"})({name:"1kr4fmq",styles:"margin-right:1rem;"}),OE=function(e){var t=e.transfers,n=e.pageSize;return Object(kb.jsx)(NT,{children:Object(kb.jsx)(jE,{transfers:t,customClassName:Db("orders-list")(),pageSize:n})})};OE.defaultProps={pageSize:8};var xE=OE,gE=Object(s.c)((function(e){var t=II(e);return{transfers:(t=t.sort((function(e,t){return t.TransferId-e.TransferId}))).map((function(t){var n=$t(e,t.ProductId);return Object(Y.a)(Object(Y.a)({},t),{},{product:n,Amount:n?L(t.Amount,n.Product):t.Amount})}))}}),{})(xE);var vE=Ab(Uh((function(e){var t=e.width,n=Object(_j.a)().t,r=t<=Pf.b.tablet,c=[{text:n("Open Orders"),path:"/transactions/open-orders",component:function(){return Object(kb.jsx)(KT,{usePagination:!0,activeTab:"openOrders"})},enabled:Object(Ni.get)(Fe.a,"Transactions.openOrders",!0)},{text:n("Order History"),path:"/transactions/order-history",enabled:Object(Ni.get)(Fe.a,"Transactions.filledOrders",!0),component:function(){return Object(kb.jsx)(KT,{usePagination:!0,showGetMoreHistory:!0,activeTab:"order-history"})}},{text:n("Withdrawals"),path:"/transactions/withdrawals",component:function(){return Object(kb.jsx)(cE,{pageSize:30})},enabled:Object(Ni.get)(Fe.a,"Transactions.withdrawalRecords",!0)},{text:n("Deposits"),path:"/transactions/deposits",component:function(){return Object(kb.jsx)(pE,{pageSize:30})},enabled:Object(Ni.get)(Fe.a,"Transactions.depositRecords",!0)},{text:n("Transfers"),path:"/transactions/transsfers",component:function(){return Object(kb.jsx)(gE,{pageSize:30})},enabled:Object(Ni.get)(Fe.a,"Transactions.transferRecords",!0)}].filter((function(e){return!1!==e.enabled}));return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)($h,{}),Object(kb.jsxs)(tO.a,{children:[Object(kb.jsx)(eO.a,{children:n("Transactions")}),r?Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/transactions/*"),render:function(){return Object(kb.jsx)(Tg,{to:"/transactions"})}}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/transactions"),render:function(){return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsx)(yE,{children:c.map((function(e,t){return Object(kb.jsx)(gS,{tabName:n(e.text),to:e.path},t)}))})})}})]}):Object(kb.jsx)(CE,{children:c.map((function(e,t){return Object(kb.jsx)(qj,{tabName:n(e.text),to:e.path},t)}))}),Object(kb.jsxs)(l.d,{children:[c.map((function(e){return Object(kb.jsx)(l.b,{path:Object(wb.a)(e.path),component:e.component},e.path)})),!r&&Object(kb.jsx)(l.a,{to:Object(wb.a)("/transactions/open-orders")})]})]}),Object(kb.jsx)(nO.a,{})]})}))),yE=Object(Tb.a)("div",{target:"e1qmv80f0"})({name:"j7qwjs",styles:"display:flex;flex-direction:column;"}),CE=Object(Tb.a)("div",{target:"e1qmv80f1"})({name:"k008qs",styles:"display:flex;"}),wE=function(e){var t=function(t){Object(b.a)(r,t);var n=Object(p.a)(r);function r(){return Object(u.a)(this,r),n.apply(this,arguments)}return Object(d.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.bankDetails,n=e.bankList,r=e.getBankAccount,a=e.getTHBanksList;t||r(),n||a()}},{key:"render",value:function(){var t,n=this.props,r=n.bankDetails,a=n.bankDetailsLoading,c=n.bankDetailsError,i=n.bankList,s=n.bankListLoading,o=n.bankListError,l=a||s,u=c||o;if(!l&&!u&&r&&i){var d=r.bankCode,b=(i.find((function(e){return e.code===d}))||{}).name;t=Object(Y.a)(Object(Y.a)({},r),{},{bankName:b})}return Object(kb.jsx)(e,Object(Y.a)({thBankAccount:t,thBankAccountLoading:l,thBankAccountError:u},this.props))}}]),r}(a.a.Component);return Object(s.c)((function(e){return{bankDetails:e.thBankAccount.account[0],bankDetailsLoading:e.thBankAccount.isLoading,bankDetailsError:e.thBankAccount.error,bankList:e.thBankAccount.bankList,bankListLoading:e.thBankAccount.bankListLoading,bankListError:e.thBankAccount.bankListError}}),(function(e){return{getBankAccount:function(){return e(function(e){var t=e.sessionToken;return e.userId,function(){var e=Object(V.a)(q.a.mark((function e(n){var r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n({type:kd}),e.prev=1,e.next=4,Object(x.k)({token:t});case 4:r=e.sent,n({type:Id,payload:r}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0),n({type:Ad});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()}({sessionToken:window.localStorage.getItem("zmToken")}))},getTHBanksList:function(){return e(Rd(localStorage.getItem("language")))}}}))(t)},SE=(n(412),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(u.a)(this,n),(e=t.call(this)).onChange=function(t){var n=e.props,r=n.input.name,a=n.customChange,c=t.target.files[0];c?function(e,t){var n=new FileReader;n.onload=function(e){return t(e.target.result)},n.readAsDataURL(e)}(c,(function(t){a(r,{file:c,imgSrc:t}),setTimeout((function(){return e.setState({file:c,imgSrc:t,hasFile:!0})}))})):(e.setState({file:null,imgSrc:null,hasFile:!1}),a(r,null))},e.clearField=function(){var t=e.props.input.onChange;e.setState({file:null,imgSrc:null}),t(null)},e.onFocus=function(){e.setState({focused:!0,hasFocused:!0})},e.onBlur=function(){e.setState({focused:!1})},e.isImage=function(e){var t=e.split("."),n=t[t.length-1];return["jpg","jpeg","png","gif"].includes(n)},e.state={file:null,hasFocused:!1,focused:!1,hasFile:!1},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.classModifiers,n=e.customClass,r=e.info,a=e.placeholder,c=e.label,i=e.acceptedFiles,s=e.meta.error,o=e.alt,l=e.showPreview,u=this.state,d=u.file,b=u.hasFocused,p=u.focused,j=u.hasFile,m=u.imgSrc,f=Db("ap-upload",n);return Object(kb.jsxs)("div",{className:f(),children:[Object(kb.jsxs)("div",{className:"form-group ".concat(f("wrapper",t)),children:[Object(kb.jsx)("div",{className:f("children",t),children:l&&d&&this.isImage(d.name)&&Object(kb.jsx)("div",{className:f("img-wrapper"),children:Object(kb.jsx)("img",{src:m,className:f("preview"),alt:o})})}),Object(kb.jsxs)("div",{className:f("label",t),children:[l&&d?d.name:a,l&&d&&Object(kb.jsx)("span",{className:f("cancel-btn",t),onClick:this.clearField,children:Object(kb.jsx)(Ij,{name:"cancel",classModifiers:"danger",customClass:f("image")})})]}),Object(kb.jsxs)("label",{className:f("input-box"),children:[Object(kb.jsx)(Hb,{customClass:f("btn"),type:"button",children:c}),Object(kb.jsx)("input",{type:"file",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,className:f("input"),value:"",accept:i})]})]}),r&&Object(kb.jsx)("div",{className:"form-text-muted ".concat(f("info")),children:r}),(b||p)&&j&&!d&&s&&Object(kb.jsx)("div",{className:f("error"),children:this.context.t(s)})]})}}]),n}(a.a.Component));SE.defaultProps={name:"",customClass:"",placeholder:"",label:"",value:""},SE.contextTypes={t:O.a.func.isRequired};var kE=function(e){var t=function(t){var n=e.maxSize;if(n)return wO(t,n)},n=e.validate?[].concat(Object(Q.a)(e.validate),[t]):[t];return Object(kb.jsx)($j.a,Object(Y.a)(Object(Y.a)({component:SE},e),{},{validate:n,name:e.name}))};kE.defaultProps={name:"",label:"",classModifiers:"",placeholder:"",info:"",autoFocus:"",disabled:!1,required:!1,maxSize:null,showPreview:!0};var IE=kE,AE=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(u.a)(this,n),(e=t.call(this)).onChange=function(t,n){var r=n.file,a=n.imgSrc,c=e.props,i=c.onChange,s=c.name,o=i||function(){};r?(o(s,{file:r,imgSrc:a}),setTimeout((function(){return e.setState({imgSrc:a})}))):(e.setState({imgSrc:null}),o(s,null))},e.state={imgSrc:null},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.customClass,n=e.labelUpload,r=e.labelChange,a=Object(Hr.a)(e,["customClass","labelUpload","labelChange"]),c=this.state.imgSrc,i=Db("ap-image-upload",t);return Object(kb.jsx)(IE,Object(Y.a)(Object(Y.a)({},a),{},{customChange:this.onChange,label:c?r||this.context.t("Choose another image"):n||this.context.t("Place image"),customClass:i(),acceptedFiles:".png, .jpg, .jpeg, .gif"}))}}]),n}(a.a.Component);AE.defaultProps={name:"",customClass:"",placeholder:"",label:"",value:""},AE.contextTypes={t:O.a.func.isRequired},AE.defaultProps={name:"",label:"",classModifiers:"",placeholder:"",info:"",autoFocus:"",disabled:!1,required:!1,maxSize:null};var PE=AE,TE=Db("kyc-form"),EE=function(e){var t=Fe.a.KYC.IDOptions.find((function(t){return t.code===e}));return t&&t.label},RE=function(e){var t=e.imgSrc,n=e.fieldName,r=e.fieldLabel,a=e.label,c=e.illustrationSrc,i=e.change,s=e.validate,o=void 0===s?[]:s;return Object(kb.jsxs)("div",{className:TE("upload-container"),children:[t?Object(kb.jsx)("img",{src:t,className:TE("preview"),alt:a}):Object(kb.jsx)(Kb.a,{alt:a,src:c,className:TE("upload-img")}),Object(kb.jsx)("span",{className:TE("upload-label"),children:a}),Object(kb.jsx)(PE,{name:n,label:r,alt:r,info:"",customClass:"kyc-form",placeholder:"",autoFocus:"",disabled:!1,required:!1,onChange:i,showPreview:!1,labelUpload:"Upload Photo",labelChange:"Re-Upload",validate:o})]})};(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.formValues,n=e.change,r=t&&t.DocumentType,a=t&&t.scandata&&t.scandata.imgSrc,c=t&&t.backsideimagedata&&t.backsideimagedata.imgSrc,i=t&&t.faceimages&&t.faceimages.imgSrc,s="PP"!==t.DocumentType;return Object(kb.jsxs)("div",{className:TE("step3-container"),children:[Object(kb.jsxs)("p",{className:TE("upload-information"),children:["Upload a photo of your ",EE(r),". Make sure all the information is fully visible on the picture."]}),Object(kb.jsx)(RE,{imgSrc:a,fieldName:"scandata",fieldLabel:"Document",label:"Front side of document",illustrationSrc:Object(wb.a)("/local/images/icon-document-front.svg"),change:n,validate:[fO]}),s&&Object(kb.jsx)(RE,{imgSrc:c,fieldName:"backsideimagedata",fieldLabel:"Back side of document",label:"Back side of document",illustrationSrc:Object(wb.a)("/local/images/icon-document-back.svg"),change:n}),Object(kb.jsx)(RE,{imgSrc:i,fieldName:"faceimages",fieldLabel:"Selfie",label:"Please upload a picture of yourself holding your clearly visible ID and a piece of paper upon which is written the word Zipmex, today\u2019s date, and your signature",illustrationSrc:Object(wb.a)("/local/images/icon-document-front.svg"),change:n,validate:[fO]})]})}}]),n}(a.a.Component)).contextTypes={t:O.a.func.isRequired};var NE=hT,ME=(n(1181),Db("kyc-form")),DE=yO(100),LE=yO(14),FE=CO(10),UE=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).componentDidMount=Object(V.a)(q.a.mark((function e(){var t,n,a,c;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.props,n=t.getBanksList,a=t.bankList,c=t.bankListLoading,a||c||n(localStorage.getItem("language"));case 2:case"end":return e.stop()}}),e)}))),r.handleSubmit=Object(V.a)(q.a.mark((function e(){var t,n,a,c,i;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.props,n=t.createThaiBankAccount,a=t.formValues,c=t.showSnack,i=t.onSuccess,r.setState({submitting:!0}),e.prev=2,e.next=5,n({accountName:a.thaiAccountName,accountNumber:a.thaiAccountNumber,bankCode:a.thaiBankCode,bankBookImage:a.bankbookimage.imgSrc});case 5:c({id:"thBankDetailsSuccess",text:r.context.t("Successfully uploaded thai bank account details")}),i(),e.next=16;break;case 9:if(e.prev=9,e.t0=e.catch(2),!pc.a.isCancel(e.t0)){e.next=13;break}return e.abrupt("return");case 13:console.error(e.t0),c({id:"thBankDetailsError",text:r.context.t("Error uploading thai bank account details"),type:"warning"}),r.setState({submitting:!1});case 16:case"end":return e.stop()}}),e,null,[[2,9]])}))),r.state={submitting:!1},r}return Object(d.a)(n,[{key:"componentWillUnmount",value:function(){x.d.cancel()}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.formValues,n=e.bankList,r=e.change;t&&!t.thaiBankCode&&n&&r("thaiBankCode",n[0].bank_code)}},{key:"render",value:function(){var e=this.context,t=this.state.submitting,n=this.props,r=n.bankList,a=n.bankListLoading,c=n.formValues,i=n.change,s=n.valid,o=c&&c.bankbookimage&&c.bankbookimage.imgSrc;return Object(kb.jsx)(sf,{children:Object(kb.jsxs)("div",{className:ME("personal-information-step-container"),children:[Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:e.t("Add your bank account details")}),Object(kb.jsxs)(Tj.d,{margin:"0 0 15px 0",children:[" ",e.t("You can only deposit and withdraw THB from your approved bank account"),"."]}),Object(kb.jsxs)("div",{className:ME("section-body"),children:[a||!r?Object(kb.jsx)("div",{className:ME("loading-bank-list"),children:e.t("Loading bank list...")}):Object(kb.jsx)(NE,{name:"thaiBankCode",label:e.t("Bank Name"),placeholder:e.t("Bank Name"),customClass:ME(),options:r.map((function(e){var t=e.name;return{value:e.code,label:t}})).sort((function(e,t){return e.label.localeCompare(t.label)})),validate:[fO],showTriangles:!0}),Object(kb.jsx)("div",{className:ME("input-wrapper")}),Object(kb.jsx)(Wm,{name:"thaiAccountName",label:e.t("Account Name"),type:"text",placeholder:e.t("Account Name"),validate:[fO,DE],customClass:ME()}),Object(kb.jsx)(Wm,{name:"thaiAccountNumber",label:e.t("Account Number"),type:"text",placeholder:e.t("Account Number"),validate:[fO,OO,FE,LE],customClass:ME()})]})]}),Object(kb.jsx)("div",{children:Object(kb.jsx)(RE,{imgSrc:o,fieldName:"bankbookimage",fieldLabel:"Bankbook scan",label:e.t("Upload bankbook scan of your account"),illustrationSrc:Object(wb.a)("/local/images/icon-document-back.svg"),change:i,validate:[fO]})}),Object(kb.jsx)("div",{className:ME("section"),children:Object(kb.jsx)(Pm,{type:"button",fullWidth:!0,onClick:this.handleSubmit,disabled:!s||t,children:e.t("Submit")})})]})})}}]),n}(a.a.Component);UE.contextTypes={t:O.a.func.isRequired};var BE=Object(Pb.a)({form:"thaiBankDetailsForm",destroyOnUnmount:!1,forceUnregisterOnUnmount:!0})(UE),zE=Object(s.c)((function(e){return{formValues:Object(HT.a)("thaiBankDetailsForm")(e),bankList:e.thBankAccount.bankList,bankListLoading:e.thBankAccount.bankListLoading}}),(function(e){return{createThaiBankAccount:function(e){return Object(x.d)(Object(Y.a)(Object(Y.a)({},e),{},{token:window.localStorage.getItem("zmToken")}))},getBanksList:function(t){return e(Rd(t))},showSnack:function(t){return e(sr(t))}}}))(BE),GE=function(e,t){var n=e.thBankAccount,r=e.thBankAccountLoading,a=e.thBankAccountError,c=e.getBankAccount,i=e.children;return r?Object(kb.jsx)(Vf,{isInline:!0}):a?Object(kb.jsx)(Tj.d,{children:t.t("Unable to retrieve registered bank account.")}):n?n.isVerified?i:Object(kb.jsx)(Tj.d,{children:t.t("We are reviewing your registered bank account. You will be able to deposit or withdraw THB soon.")}):Object(kb.jsx)(zE,{onSuccess:c})};GE.contextTypes={t:O.a.func.isRequired};var WE=wE(GE);n(1182);var ZE=Db("polipay-form"),qE=function(e,t){var n=e.submitting,a=e.product,c=e.amount,i=Fe.a.Deposit,s=c>=300?3:.01*c;s=L(s,a.Product,4);var o=i[a.Product]&&i[a.Product].maxDeposit||"",l=L(c-s,a.Product,4),u=Object(r.useState)(!1),d=Object(J.a)(u,2),b=d[0],p=d[1];return Object(kb.jsxs)(sf,{children:[Object(kb.jsxs)("div",{children:[Object(kb.jsxs)("div",{children:[Object(kb.jsx)(qm,{type:"number",name:"Amount",labelInInput:"AUD",label:"Amount in AUD",decimalPlaces:2,customClass:"polipay-form",validate:[fO,vO],usePlaceholder:!0,style:{input:{padding:""},arrowUp:{display:"none"},arrowDown:{display:"none"}}}),Object(kb.jsxs)(Tj.f,{margin:"10px 0 10px 0",children:["Max. ",gt(a.Product,o)," per transaction"]}),Object(kb.jsxs)("div",{className:ZE("fee-row"),children:[Object(kb.jsx)(Tj.d,{margin:"10px 0 10px 0",children:"Fee (1% capped at $3)"}),Object(kb.jsxs)(Tj.d,{children:["$",s]})]}),Object(kb.jsxs)("div",{className:ZE("fee-row"),children:[Object(kb.jsx)(Tj.d,{margin:"10px 0 10px 0",children:"Total amount deposited"}),Object(kb.jsxs)(Tj.d,{children:["$",l]})]})]}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)("img",{src:Object(wb.a)("/local/images/poli-logo-44.png"),alt:"Polipay logo",width:"100"}),Object(kb.jsx)(Tj.d,{margin:"20px 0 20px 0",children:"You\u2019ll be redirected to POLi Payments to complete this transaction"}),Object(kb.jsx)("div",{className:"form-group",children:Object(kb.jsx)(Pm,{type:"submit",disabled:n,fullWidth:!0,showLoading:n,children:t.t("Deposit")})})]})]}),Object(kb.jsx)(Tj.f,{margin:"20px 0 0 0",children:'DISCLAIMER: Beware of Money Mule Fraud MONEY MULE FRAUD is a criminal offense. Consequences Can Be Severe. What is a "Money Mule"?'}),Object(kb.jsxs)(_E,{color:Po.a.text_warning,onClick:function(){p(!b)},children:[b?"(Show less)":"(Show more)"," "]}),b&&Object(kb.jsxs)(Tj.f,{children:["\u201cMoney mules\u201d are people who are used to transport and launder stolen money or some kind of merchandise. Criminals may even recruit money mules to use stolen credit card information. Individuals being used as money mules may be willing participants; however, many money mules are not aware that they are being used to commit fraud. The individuals being used as money mules are not the only victims; the larger scheme is designed to extract money from an organization or from other people.MONEY MULE FRAUD is a criminal offense! Consequences Can Be Severe! If caught and prosecuted, the criminal faces the most severe consequences. The other parties involved in the scheme may also face serious consequences. The following are potential consequences for money mules:",Object(kb.jsxs)("ol",{children:[Object(kb.jsxs)("li",{children:["Inaccessible bank accounts \u2013 During an investigation, law enforcement officials may freeze a money mule\u201fs bank accounts. Being unable to access funds may create a significant financial burden. These activities may also have a long-term impact on credit scores."," "]}),Object(kb.jsxs)("li",{children:["Prosecution \u2013 Money mules may be prosecuted for their participation in these schemes."," "]}),Object(kb.jsx)("li",{children:"Accountability for charges \u2013 In some cases, money mules are found personally responsible for repaying the losses suffered by the other victims."}),Object(kb.jsx)("li",{children:"Vulnerability of personal information \u2013 As described in the typical process, criminals often collect personal information from the money mules. It is possible that the criminals may use this information for other malicious purposes."})]})]})]})};qE.defaultProps={product:O.a.object,submitting:!1,amount:0},qE.contextTypes={t:O.a.func.isRequired};var VE=qE,_E=Object(Tb.a)(Tj.f,{target:"ewpue9k0"})({name:"4g6ai3",styles:"cursor:pointer;"}),HE=Object(s.c)((function(e,t){var n=t.submitting;return{product:TI(e),submitting:n,amount:Object(Ni.at)(e,"form.createDeposit.values.Amount")[0]}}))(VE);var YE=function(e){var t=e.imageSrc,r=e.imageName;return Object(kb.jsx)(KE,{src:n(1183)("./".concat(t)).default,alt:r})},KE=Object(Tb.a)("img",{target:"erz2jg50"})({name:"uwwqev",styles:"width:100%;height:100%;"});var QE,JE=function(e){var t,n,r,a,c,i=e.fetching,s=e.depositInfo,o=e.onSubmit,l=Object(_j.a)().t,u=function(e){switch(e){case"PERMATA":return l("Permata and other banks");case"MANDIRI":return l("Mandiri only");default:return e+" bank only"}};return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Vf,{isVisible:i}),!i&&Object(kb.jsxs)(kb.Fragment,{children:[(null===(t=s.channel)||void 0===t?void 0:t.virtual_accounts)&&(null===(n=s.channel)||void 0===n?void 0:n.virtual_accounts.map((function(e,t){return Object(kb.jsx)(sf,{margin:"0 0 15px 0",children:Object(kb.jsxs)($E,{margin:"0 0 5px 0",onClick:function(){o(e)},children:[Object(kb.jsx)(tR,{children:Object(kb.jsx)(YE,{imageName:"".concat(e.bank_code," Virtual Account"),imageSrc:"icons/".concat(e.bank_code.toLowerCase(),"-icon.png")})}),Object(kb.jsxs)(XE,{children:[Object(kb.jsxs)(nR,{children:[e.bank_code.toLowerCase()," ",l("Virtual Account")]}),Object(kb.jsxs)(Tj.f,{children:[l("Accept transfers from Bank "),l(u(e.bank_code))]})]})]})})}))),Object(kb.jsx)(xT,{headline:l("Limits"),margin:"0 0 15px 0",children:s&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(XE,{children:[Object(kb.jsxs)(Tj.f,{children:[l("Min amount per transaction")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(s.minAmountPerTransaction,"IDR")," ","IDR"]})]}),Object(kb.jsxs)(XE,{children:[Object(kb.jsx)(Tj.f,{children:l("Daily deposit limit remaining")}),Object(kb.jsxs)(Tj.d,{children:[L(null===(r=s.dailyLimit)||void 0===r?void 0:r.availableAmount,"IDR")," / ",Object(kb.jsxs)(eR,{children:[L(s.maxAmountPerDay,"IDR")," ","IDR"]})]})]})]})}),Object(kb.jsx)(xT,{setCollapsed:!1,headline:"Fees",margin:"0 0 15px 0",children:Object(kb.jsxs)(XE,{children:[Object(kb.jsx)(Tj.f,{children:l("Fee")}),Object(kb.jsxs)(Tj.d,{children:[L(null===(a=s.fee)||void 0===a?void 0:a.value," IDR"),"PERCENTAGE"===(null===(c=s.fee)||void 0===c?void 0:c.calcType)?"%":" IDR"]})]})})]})]})},XE=Object(Tb.a)("div",{target:"e61lvp00"})({name:"1uqxc62",styles:"margin:0 0 15px 0;padding-right:20px;&:last-of-type{margin:0;}"}),$E=Object(Tb.a)("div",{target:"e61lvp01"})("display:flex;margin:",(function(e){return e.margin?e.margin:"0"}),";align-items:center;cursor:pointer;"),eR=Object(Tb.a)("span",{target:"e61lvp02"})("color:",Po.a.text_grey,";"),tR=Object(Tb.a)("div",{target:"e61lvp03"})({name:"1wqzb5o",styles:"flex:0 0 50px;height:40px;margin-right:10px;img{width:40px;height:40px;}"}),nR=Object(Tb.a)(Tj.d,{target:"e61lvp04"})({name:"10iahqc",styles:"text-transform:capitalize;"});function rR(){return(rR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function aR(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function cR(e,t){var n=e.title,a=e.titleId,c=aR(e,["title","titleId"]);return r.createElement("svg",rR({width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},c),n?r.createElement("title",{id:a},n):null,QE||(QE=r.createElement("path",{d:"M2.68123 0.900096L10.7562 0.900096C11.7385 0.900097 12.5375 1.69906 12.5375 2.68135L12.5375 10.7563C12.5375 11.7386 11.7385 12.5376 10.7562 12.5376L2.68122 12.5376C1.69894 12.5376 0.899973 11.7386 0.899973 10.7563L0.899974 2.68135C0.899974 1.69906 1.69894 0.900096 2.68123 0.900096ZM10.7562 11.3501C11.0836 11.3501 11.35 11.0837 11.35 10.7563L11.35 2.68135C11.35 2.35395 11.0836 2.0876 10.7562 2.0876L2.68123 2.0876C2.35383 2.0876 2.08748 2.35395 2.08748 2.68135L2.08747 10.7563C2.08747 11.0837 2.35383 11.3501 2.68122 11.3501L10.7562 11.3501ZM13.725 5.6501L14.3187 5.6501C14.6461 5.6501 14.9125 5.91645 14.9125 6.24385L14.9125 14.3188C14.9125 14.6462 14.6461 14.9126 14.3187 14.9126L6.24372 14.9126C5.91633 14.9126 5.64997 14.6462 5.64997 14.3188L5.64997 13.7548L4.46247 13.7548L4.46247 14.3188C4.46247 15.3011 5.26144 16.1001 6.24372 16.1001L14.3187 16.1001C15.301 16.1001 16.1 15.3011 16.1 14.3188L16.1 6.24385C16.1 5.26156 15.301 4.4626 14.3187 4.4626L13.725 4.4626L13.725 5.6501Z",fill:"#19ACB8",stroke:"#19ACB8",strokeWidth:.32})))}var iR=r.forwardRef(cR),sR=(n.p,Object(Tb.a)("div",{target:"e1iv2pan0"})("display:flex;flex-direction:column;margin:",(function(e){return e.margin?e.margin:"0"}),";")),oR=Object(Tb.a)("ol",{target:"e1iv2pan1"})("margin:0 0 15px 0;padding:0 0 0 24px;& li{font-size:",Tj.h.small,";line-height:",Tj.i.small,";padding:5px 0;color:",Po.a.text_grey,";}"),lR=function(e){var t=e.bank,n=e.language,r=e.minAmount;console.log("bank",t,"lang",n,r);var a=function(){return Object(kb.jsxs)(xT,{headline:"How to deposit to Permata Virtual Account?",margin:"0 0 15px 0",setCollapsed:!0,children:[Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using ATM"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Choose Other Transactions"}),Object(kb.jsxs)("li",{children:["Choose Payment ",">"," Other payment"]}),Object(kb.jsx)("li",{children:"Choose Virtual Account"}),Object(kb.jsxs)("li",{children:["Input your Virtual Account Number and click ",Object(kb.jsx)("strong",{children:"Yes"})]}),Object(kb.jsxs)("li",{children:["Input the desired amount to deposit. Minimum amount is ",r," ","IDR, then click ",Object(kb.jsx)("strong",{children:"Yes"})]}),Object(kb.jsxs)("li",{children:["Check the data on screen and confirm your transaction then click"," ",Object(kb.jsx)("strong",{children:"Yes"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using PermataNet"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Choose Pay Bills"}),Object(kb.jsx)("li",{children:"Choose Virtual Account"}),Object(kb.jsxs)("li",{children:["Input your Virtual Account Number and click ",Object(kb.jsx)("strong",{children:"Yes"})]}),Object(kb.jsxs)("li",{children:["Input the desired amount to deposit. Minimum amount is ",r," ","IDR"]}),Object(kb.jsxs)("li",{children:["Check the data on screen, if correct then click"," ",Object(kb.jsx)("strong",{children:"Next"})]}),Object(kb.jsxs)("li",{children:["Enter SMS token response code and click ",Object(kb.jsx)("strong",{children:"Next"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using PermataMobileX"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Choose Pay Bills"}),Object(kb.jsx)("li",{children:"Choose Virtual Account"}),Object(kb.jsx)("li",{children:"Enter Virtual Account Number"}),Object(kb.jsxs)("li",{children:["Check the data on screen, if correct then click"," ",Object(kb.jsx)("strong",{children:"Next"})]}),Object(kb.jsx)("li",{children:"Choose your source of payment"}),Object(kb.jsxs)("li",{children:["Input the desired amount to deposit. Minimum amount is ",r," ","IDR"]}),Object(kb.jsxs)("li",{children:["Check the data on screen, if correct then click"," ",Object(kb.jsx)("strong",{children:"Next"})]}),Object(kb.jsxs)("li",{children:["Enter your PIN and click ",Object(kb.jsx)("strong",{children:"Ok"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using ATM BCA"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsxs)("li",{children:["Choose ",Object(kb.jsx)("strong",{children:"Transfer "}),">"," ",Object(kb.jsx)("strong",{children:"Transfer Other Bank"}),"."]}),Object(kb.jsxs)("li",{children:["Input bank code ",Object(kb.jsx)("strong",{children:"Permata "}),"(",Object(kb.jsx)("strong",{children:"013"}),")."]}),Object(kb.jsx)("li",{children:"Input the desired amount to deposit. Minimum amount is Rp100.000."}),Object(kb.jsx)("li",{children:"Enter your Virtual Account Number Permata stated in the app."}),Object(kb.jsx)("li",{children:"Check the data on screen and confirm your transaction."}),Object(kb.jsx)("li",{children:"Keep your receipt as proof of deposit."})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using m-BCA"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsxs)("li",{children:["Choose ",Object(kb.jsx)("strong",{children:"m-transfer "}),"menu."]}),Object(kb.jsx)("li",{children:"Register your Virtual Account Number by selecting the Other Bank on Register Destination account menu."}),Object(kb.jsx)("li",{children:"Enter your Permata Virtual Account Number stated in the app, choose Permata on bank listing then click Send."}),Object(kb.jsx)("li",{children:"Check Virtual Account detail is Xendit PT Zipmex Exchange Indonesia. Then click OK and input your BCA PIN."}),Object(kb.jsx)("li",{children:"After the bank account has been registered, choose Other Bank on Transfer menu."}),Object(kb.jsx)("li",{children:"Choose Permata Bank and choose the virtual account that has been registered."}),Object(kb.jsx)("li",{children:"Input the desired amount to deposit. Minimum amount is Rp100.000."}),Object(kb.jsx)("li",{children:"Check the data on screen and confirm your transaction, then click OK and input your BCA PIN."})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer from Other Bank"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Login to your bank account. You can use ATM, Internet Banking, or Mobile Banking"}),Object(kb.jsx)("li",{children:"Select Transfer to Other Bank menu"}),Object(kb.jsx)("li",{children:"Select the destination bank for Permata Bank (Bank Code: 013)"}),Object(kb.jsx)("li",{children:"Enter the Virtual Account Number"}),Object(kb.jsxs)("li",{children:["Input the desired amount to deposit. Minimum amount is ",r," ","IDR"]}),Object(kb.jsx)("li",{children:"Check the data on screen and follow the instruction to confirm your transaction"})]})]}),Object(kb.jsxs)(Tj.f,{children:["If you have any inquiries, please contact our support team on"," ",Object(kb.jsx)("a",{rel:"noreferrer",href:"mailto:support.id@zipmex.com",target:"_blank",children:"support.id@zipmex.com"})]})]})},c=function(){return Object(kb.jsxs)(xT,{headline:"Cara deposit ke Permata Virtual Account #",margin:"0 0 15px 0",setCollapsed:!0,children:[Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan ATM"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Pilih Transaksi Lainnya"}),Object(kb.jsxs)("li",{children:["Pilih Pembayaran"," > ","Pembayaran Lainnya"]}),Object(kb.jsx)("li",{children:"Pilih Virtual Account"}),Object(kb.jsxs)("li",{children:["Masukkan Nomor Virtual Account lalu pilih ",Object(kb.jsx)("strong",{children:"Benar"})]}),Object(kb.jsxs)("li",{children:["Masukkan nominal deposit yang Anda inginkan. Minimum deposit"," ",r," IDR"]}),Object(kb.jsxs)("li",{children:["Periksa informasi yang tertera di layar. Jika benar, pilih"," ",Object(kb.jsx)("strong",{children:"Benar"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan PermataNet"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Pilih Pembayaran Tagihan"}),Object(kb.jsx)("li",{children:"Pilih Virtual Account"}),Object(kb.jsx)("li",{children:"Masukkan Nomor Virtual Account lalu klik Lanjutkan"}),Object(kb.jsxs)("li",{children:["Masukkan nominal deposito yang Anda inginkan. Minimun deposit"," ",r," IDR"]}),Object(kb.jsxs)("li",{children:["Periksa informasi yang tertera di layar. Jika benar, pilih"," ",Object(kb.jsx)("strong",{children:"Lanjutkan"})]}),Object(kb.jsxs)("li",{children:["Masukkan kode SMS token lalu pilih Lanjutkan"," ",Object(kb.jsx)("strong",{children:"Lanjutkan"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan PermataMobileX"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Pilih Pembayaran Tagihan"}),Object(kb.jsx)("li",{children:"Pilih Virtual Account"}),Object(kb.jsx)("li",{children:"Masukkan Nomor Virtual Account"}),Object(kb.jsxs)("li",{children:["Periksa informasi yang tertera di layar. Jika benar, pilih"," ",Object(kb.jsx)("strong",{children:"Lanjutkan"})]}),Object(kb.jsx)("li",{children:"Pilih sumber pembayaran"}),Object(kb.jsxs)("li",{children:["Masukkan nominal deposit yang Anda inginkan. Minimun deposit"," ",r," IDR"]}),Object(kb.jsxs)("li",{children:["Periksa kembali informasi yang tertera di layar, jika benar pilih"," ",Object(kb.jsx)("strong",{children:"Konfirmasi"})]}),Object(kb.jsxs)("li",{children:["Masukkan PIN da pilih ",Object(kb.jsx)("strong",{children:"Ok"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan ATM BCA"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsxs)("li",{children:["Pilih menu ",Object(kb.jsx)("strong",{children:"Transfer "}),">"," ",Object(kb.jsx)("strong",{children:"Transfer Bank Lain"}),"."]}),Object(kb.jsxs)("li",{children:["Masukkan kode ",Object(kb.jsx)("strong",{children:"bank Permata"})," (",Object(kb.jsx)("strong",{children:"013"}),")."]}),Object(kb.jsx)("li",{children:"Masukkan nominal deposit yang Anda inginkan. Minimum deposit Rp100.000."}),Object(kb.jsx)("li",{children:"Masukkan nomor Virtual Account Bank Permata Anda yang tertera pada aplikasi."}),Object(kb.jsx)("li",{children:"Periksa informasi yang tertera di layar dan konfirmasi transaksi Anda."}),Object(kb.jsx)("li",{children:"Simpan bukti transaksi sebagai bukti deposit."})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan m-BCA"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsxs)("li",{children:["Pilih menu ",Object(kb.jsx)("strong",{children:"m-Transfer"}),"."]}),Object(kb.jsx)("li",{children:"Daftarkan nomor Virtual Account Anda dengan memilih menu Antar Bank pada kolom Daftar Transfer."}),Object(kb.jsx)("li",{children:"Masukkan nomor Virtual Account Bank Permata Anda yang tertera pada aplikasi dan pilih Bank Permata, lalu klik Kirim."}),Object(kb.jsx)("li",{children:"Pastikan detail virtual account adalah Xendit PT Zipmex Exchange Indonesia. Kemudian klik OK dan masukkan PIN BCA Anda."}),Object(kb.jsx)("li",{children:"Setelah rekening sudah terdaftar, pilih menu Antar Bank pada kolom Transfer."}),Object(kb.jsx)("li",{children:"Pilih Bank Permata dan pilih rekening Virtual Account yang sudah didaftarkan."}),Object(kb.jsx)("li",{children:"Masukkan nominal deposit yang Anda inginkan. Minimum deposit Rp100.000. Lalu klik Kirim."}),Object(kb.jsx)("li",{children:"Periksa informasi yang tertera di layar dan konfirmasi transaksi Anda, klik OK dan masukkan PIN BCA Anda."})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dari Bank Lain"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Masuk ke akun bank Anda. Anda bisa menggunakan ATM, Internet Banking atau Mobile Banking"}),Object(kb.jsx)("li",{children:"Pilih menu Transfer Antar Bank"}),Object(kb.jsx)("li",{children:"Pilih destinasi bank yaitu Permata Bank (Kode Bank: 013)"}),Object(kb.jsx)("li",{children:"Masukkan Nomor Virtual Account"}),Object(kb.jsxs)("li",{children:["Masukkan nominal deposit yang Anda inginkan. Minimum deposit"," ",r," IDR"]}),Object(kb.jsxs)("li",{children:["Periksa informasi yang tertera di layar. Jika benar, pilih"," ",Object(kb.jsx)("strong",{children:"Benar"})]})]})]}),Object(kb.jsxs)(Tj.f,{children:["Jika kamu punya pertanyaan atau butuh bantuan, silakan hubungi kami di"," ",Object(kb.jsx)("a",{rel:"noreferrer",href:"mailto:support.id@zipmex.com",target:"_blank",children:"support.id@zipmex.com"})]})]})},i=function(){return Object(kb.jsxs)(xT,{headline:"How to deposit to Mandiri Virtual Account?",margin:"0 0 15px 0",setCollapsed:!0,children:[Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using ATM"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Choose Payment/Purchase"}),Object(kb.jsxs)("li",{children:["Choose Others"," > ","Others"," > ","Multi Payment"]}),Object(kb.jsxs)("li",{children:["Input company code ",Object(kb.jsx)("strong",{children:"88608"})," (XENDIT), then choose"," ",Object(kb.jsx)("strong",{children:"Correct"})]}),Object(kb.jsxs)("li",{children:["Enter your Virtual Account Number, then choose"," ",Object(kb.jsx)("strong",{children:"Correct"})]}),Object(kb.jsxs)("li",{children:["Input the desired amount to deposit. Minimum amount is ",r," IDR"]}),Object(kb.jsx)("li",{children:"Check the data on screen and confirm your transaction"}),Object(kb.jsx)("li",{children:"Keep your receipt as proof of deposit"})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using iBanking"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsxs)("li",{children:["Choose Payment"," > ","Multi payment"]}),Object(kb.jsxs)("li",{children:["Choose From Account then choose ",Object(kb.jsx)("strong",{children:"Continue"})]}),Object(kb.jsxs)("li",{children:["Enter your Virtual Account Number, then choose"," ",Object(kb.jsx)("strong",{children:"Continue"})]}),Object(kb.jsxs)("li",{children:["Input the desired amount to deposit. Minimum amount is ",r," ","IDR"]}),Object(kb.jsxs)("li",{children:["Check the data on screen and confirm your transaction then click"," ",Object(kb.jsx)("strong",{children:"Continue"})]}),Object(kb.jsxs)("li",{children:["Input your ",Object(kb.jsx)("strong",{children:"token PIN"})," and click"," ",Object(kb.jsx)("strong",{children:"Send"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer using Mbanking"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Login to your mBanking"}),Object(kb.jsxs)("li",{children:["Choose Payment"," > ","Multi payment"]}),Object(kb.jsx)("li",{children:"Choose service provider: XENDIT"}),Object(kb.jsxs)("li",{children:["Input your Virtual Account Number then choose"," ",Object(kb.jsx)("strong",{children:"Proceed"})]}),Object(kb.jsxs)("li",{children:["Input the desired amount to deposit. Minimum amount is ",r," "]}),Object(kb.jsx)("li",{children:"Check the data on screen, confirm your transaction, and input your PIN then choose OK"})]})]}),Object(kb.jsxs)(Tj.f,{children:["If you have any inquiries, please contact our support team on"," ",Object(kb.jsx)("a",{rel:"noreferrer",href:"mailto:support.id@zipmex.com",target:"_blank",children:"support.id@zipmex.com"})]})]})},s=function(){return Object(kb.jsxs)(xT,{headline:"Cara deposit ke Mandiri Virtual Account #",margin:"0 0 15px 0",setCollapsed:!0,children:[Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan ATM"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Pilih Bayar/Beli"}),Object(kb.jsxs)("li",{children:["Pilih Lainnya"," > ","Lainnya"," > ","Multi Payment"]}),Object(kb.jsxs)("li",{children:["Masukkan kode perusahaan ",Object(kb.jsx)("strong",{children:"88608"})," (XENDIT) lalu pilih ",Object(kb.jsx)("strong",{children:"Benar"})]}),Object(kb.jsxs)("li",{children:["Masukkan Nomor Virtual Account lalu pilih ",Object(kb.jsx)("strong",{children:"Benar"})]}),Object(kb.jsxs)("li",{children:["Masukkan nominal deposit yang Anda inginkan. Minimum deposit"," ",r," IDR"]}),Object(kb.jsx)("li",{children:"Periksa informasi yang tertera di layar dan konfirmasi transaksi Anda"}),Object(kb.jsx)("li",{children:"Simpan bukti transaksi sebagai bukti deposit"})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan iBanking"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsxs)("li",{children:["Pilih Bayar"," > ","Multi payment"]}),Object(kb.jsxs)("li",{children:["Pilih Dari Rekening dan pilih ",Object(kb.jsx)("strong",{children:"Lanjutkan"})]}),Object(kb.jsxs)("li",{children:["Masukkan nomor Virtual Account lalu klik"," ",Object(kb.jsx)("strong",{children:"Lanjutkan"})]}),Object(kb.jsxs)("li",{children:["Masukkan nominal deposit yang Anda inginkan. Minimum deposit"," ",r," IDR"]}),Object(kb.jsxs)("li",{children:["Periksa informasi yang tertera di layar. Jika benar centang tagihan dan klik ",Object(kb.jsx)("strong",{children:"Lanjut"})]}),Object(kb.jsxs)("li",{children:["Masukkan ",Object(kb.jsx)("strong",{children:"PIN Token"})," dan klik"," ",Object(kb.jsx)("strong",{children:"Kirim"})]})]})]}),Object(kb.jsxs)(sR,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{margin:"0 0 15px 0",as:"h5",children:"Transfer dengan Mbanking"}),Object(kb.jsxs)(oR,{children:[Object(kb.jsx)("li",{children:"Login ke mBanking Anda"}),Object(kb.jsxs)("li",{children:["Pilih Payment"," > ","Multi payment"]}),Object(kb.jsx)("li",{children:"Pilih Penyedia Layanan: XENDIT"}),Object(kb.jsxs)("li",{children:["Masukkan nomor Virtual Account, kemudian pilih"," ",Object(kb.jsx)("strong",{children:"Lanjut"})]}),Object(kb.jsxs)("li",{children:["Masukkan nominal deposit yang Anda inginkan. Minimum deposit"," ",r," "]}),Object(kb.jsx)("li",{children:"Periksa informasi yang tertera di layar. Jika benar, masukkan PIN dan pilih OK"})]})]}),Object(kb.jsxs)(Tj.f,{children:["Jika kamu punya pertanyaan atau butuh bantuan, silakan hubungi kami di"," ",Object(kb.jsx)("a",{rel:"noreferrer",href:"mailto:support.id@zipmex.com",target:"_blank",children:"support.id@zipmex.com"})]})]})},o=function(){return Object(kb.jsx)(sf,{margin:"0 0 15px 0",children:Object(kb.jsx)("a",{href:"https://zipmex.com/id/en/support/fiat-transfers/",target:"_blank",rel:"noreferrer",children:"How to deposit IDR using bank transfers into the Zipmex account wallet?"})})},l=function(){return Object(kb.jsx)(sf,{margin:"0 0 15px 0",children:Object(kb.jsx)("a",{href:"https://zipmex.com/id/en/support/fiat-transfers/",target:"_blank",rel:"noreferrer",children:"Bagaimana cara deposit Rupiah melalui Virtual Account?"})})};switch(t){case"PERMATA":switch(n){case"en-GB":return Object(kb.jsx)(a,{});default:return Object(kb.jsx)(c,{})}case"MANDIRI":switch(n){case"en-GB":return Object(kb.jsx)(i,{});default:return Object(kb.jsx)(s,{})}default:switch(n){case"en-GB":return Object(kb.jsx)(o,{});default:return Object(kb.jsx)(l,{})}}};var uR=new URLSearchParams(window.location.search).get("contentOnly"),dR=function(e){var t,n=e.fetching,r=e.depositInfo,a=e.bank,c=Object(_j.a)().t,i=Object(s.e)(),o=Object(l.g)();return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Vf,{isVisible:n}),!n&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:c("Transfer funds to the following account")}),Object(kb.jsx)(sf,{color:Po.a.text_white,children:Object(kb.jsx)(bR,{children:Object(kb.jsx)(YE,{imageName:"".concat(a.bank_code," Virtual Account"),imageSrc:"logos/".concat(a.bank_code.toLowerCase(),".png")})})}),Object(kb.jsx)(sf,{margin:"15px 0 0 0",children:Object(kb.jsxs)(pR,{children:[Object(kb.jsxs)(jR,{children:[Object(kb.jsxs)(Tj.f,{children:[c("Account Number")," "]}),Object(kb.jsx)(Tj.b,{as:"h3",children:a.account_number})]}),Object(kb.jsx)(mR,{onClick:function(){var e;e=c("Account number has been copied to the clipboard."),i(sr({id:"depositsCopy",text:e,type:"success"})),tC(a.account_number)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(sf,{margin:"0 0 0 0",children:Object(kb.jsxs)(jR,{children:[Object(kb.jsxs)(Tj.f,{children:[c("Account Name")," "]}),Object(kb.jsx)(Tj.d,{children:a.account_holder_name})]})}),Object(kb.jsx)(sf,{children:Object(kb.jsxs)(Tj.f,{color:"".concat(Po.a.text_warning),children:[c("Please Note"),Object(kb.jsx)("br",{}),c("1. Make sure the destination VA number is correct"),Object(kb.jsx)("br",{}),c("2. Transfer from LLG/RTGS will not have instant deposit")]})})]}),Object(kb.jsx)(xT,{headline:c("Limits"),margin:"0 0 15px 0",children:r&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(jR,{margin:"0 0 15px 0",children:[Object(kb.jsxs)(Tj.f,{children:[c("Min amount per transaction")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(r.minAmountPerTransaction,"IDR")," ","IDR"]})]}),Object(kb.jsxs)(jR,{children:[Object(kb.jsx)(Tj.f,{children:c("Daily deposit limit remaining")}),Object(kb.jsxs)(Tj.d,{children:[L(null===(t=r.dailyLimit)||void 0===t?void 0:t.availableAmount,"IDR")," / ",Object(kb.jsxs)(hR,{children:[L(r.maxAmountPerDay,"IDR")," ","IDR"]})]})]})]})}),Object(kb.jsx)(lR,{bank:a.bank_code,language:window.localStorage.getItem("language"),minAmount:L(r.minAmountPerTransaction,"IDR")}),!uR&&Object(kb.jsx)(fR,{children:Object(kb.jsx)(Pm,{onClick:function(){o.push("/wallets/"),i(wc())},type:"submit",fullWidth:!0,children:c("Finish")})})]})]})},bR=Object(Tb.a)("div",{target:"e1g68h6g0"})({name:"y0ht60",styles:"img{max-height:36px;width:auto;}"}),pR=Object(Tb.a)("div",{target:"e1g68h6g1"})("display:flex;justify-content:space-between;align-items:center;margin:",(function(e){return e.margin?e.margin:"0"}),";"),jR=Object(Tb.a)("div",{target:"e1g68h6g2"})("display:flex;flex-direction:column;margin:",(function(e){return e.margin?e.margin:"0"}),";"),mR=Object(Tb.a)("button",{target:"e1g68h6g3"})({name:"r3pp3u",styles:"margin-left:15px;min-width:37px;text-align:right;svg{width:22px;height:22px;}"}),fR=Object(Tb.a)("div",{target:"e1g68h6g4"})({name:"1wcgr0x",styles:"width:100%;margin-top:15px;margin-bottom:15px;"}),hR=Object(Tb.a)("span",{target:"e1g68h6g5"})("color:",Po.a.text_grey,";"),OR=function(e){var t=Object(r.useState)(1),n=Object(J.a)(t,2),a=n[0],c=n[1],i=Object(r.useState)(!1),s=Object(J.a)(i,2),o=s[0],l=s[1],u=window.localStorage.getItem("zmToken"),d=Object(r.useState)({}),b=Object(J.a)(d,2),p=b[0],j=b[1],m=Object(r.useState)("PERMATA"),f=Object(J.a)(m,2),h=f[0],O=f[1],g=function(){var e=Object(V.a)(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,Object(x.g)({token:u,productId:"idr.global"});case 4:t=e.sent,j(t.depositInfo),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:return e.prev=11,l(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})));return function(){return e.apply(this,arguments)}}();switch(Object(r.useEffect)((function(){g().then()}),[]),a){case 1:return Object(kb.jsx)(JE,{fetching:o,depositInfo:p,onSubmit:function(e){return O(e),c(2),!0}});case 2:return Object(kb.jsx)(dR,{fetching:o,depositInfo:p,bank:h});default:return null}},xR=(n(1209),Db("deposit-idr")),gR=Ae.c.extractT("We will send an email to <0>{email}</0> with deposit instructions"),vR=function(e,t){var n=e.onSubmit,a=e.submitting,c=e.email,i=Fe.a.Deposit.THB,s=i.minDeposit,o=i.maxDeposit,l=Object(r.useMemo)((function(){return[fO,xO(parseInt(s)),gO(2e6)]}),[s]);return Object(kb.jsx)("form",{onSubmit:n,children:Object(kb.jsxs)("div",{children:[Object(kb.jsxs)("div",{className:"form-group",children:[Object(kb.jsx)(qm,{type:"antNumericInput",name:"amount",labelInInput:t.t("Deposit amount"),decimalPlaces:0,customClass:"deposit-thb",validate:l,placeholder:"0"}),Object(kb.jsxs)("div",{className:xR("min-max-amounts"),children:[s&&Object(kb.jsxs)(Tj.d,{children:[t.t("Min:")," ",s," THB"]}),o&&Object(kb.jsxs)(Tj.d,{children:[t.t("Max:")," ",o," THB"]})]})]}),Object(kb.jsx)("div",{className:xR("payment-instructions"),children:Object(kb.jsx)(Tj.d,{children:Object(kb.jsx)(CS.a,{i18nKey:gR,components:[Object(kb.jsx)("b",{})],values:{email:c}})})}),Object(kb.jsxs)("div",{className:"form-group",children:[Object(kb.jsx)(Wm,{type:"hidden",name:"comments"}),Object(kb.jsx)(Pm,{type:"submit",disabled:a,fullWidth:!0,showLoading:a,style:{marginTop:"15px"},children:t.t("Deposit THB")})]})]})})};vR.contextTypes={t:O.a.func.isRequired};var yR=vR,CR=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={loading:!1},e.handleCreateDeposit=function(){var t=Object(V.a)(q.a.mark((function t(n){var r,a,c,i,s,o,l,u,d;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),r=e.props,a=r.selectedAccountId,c=r.sessionToken,i=r.onDepositError,s=r.formValues.amount,o=r.productId,l={account_id:a,amount:parseInt(s),asset_id:o},e.setState({loading:!0}),t.prev=4,t.next=7,pc.a.post(Ac.a.get("REACT_APP_DEPOSIT_ENDPOINT"),l,{headers:{Authorization:"Bearer ".concat(c)}});case 7:u=t.sent,d=u.data,e.props.handleDepositCreated(d),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),i(e.context.t("Error creating deposit"));case 15:return t.prev=15,e.setState({loading:!1}),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[4,12,15,18]])})));return function(e){return t.apply(this,arguments)}}(),e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props.email,t=this.state.loading;return Object(kb.jsx)(yR,{email:e,onSubmit:this.handleCreateDeposit,submitting:t})}}]),n}(a.a.Component);CR.contextTypes={t:O.a.func.isRequired};var wR=Object(s.c)((function(e){return{productId:en(e,"THB").ProductId,email:Object(Ni.at)(e,"user.userInfo.Email")[0],selectedAccountId:Object(Ni.at)(e,"user.selectedAccountId")[0],sessionToken:Object(Ni.at)(e,"auth.token")[0],formValues:Object(HT.a)("createDeposit")(e)}}),(function(e){return{onDepositError:function(t){return e(sr({id:"createTHBDepositError",text:t,type:"warning"}))}}}))(CR);n(1210);var SR=function(e,t){var n=e.onMethodSelected;return Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.b,{as:"h3",margin:"0 0 20px 0",children:t.t("Select Payment Option")}),Object(kb.jsxs)(IR,{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",children:t.t("Instant deposit with mobile banking application")}),Object(kb.jsx)(Pm,{size:"small",variant:"outlined",onClick:function(){n("qr")},children:t.t("Instant deposit with QR")})]}),Object(kb.jsxs)(IR,{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",children:t.t("Deposit to ZIPMEX COMPANY LIMITED bank account")}),Object(kb.jsx)(Pm,{size:"small",variant:"outlined",onClick:function(){n("transfer")},children:t.t("Deposit with bank transfer")})]})]})};SR.contextTypes={t:O.a.func.isRequired};var kR=SR,IR=Object(Tb.a)("div",{target:"e2z0oht0"})({name:"28a0cc",styles:"margin:20px 0 0 0;"}),AR=(n(350),Db("deposit-thb-payment-details")),PR=function(e,t){var n=e.qrUrl,r=void 0===n?111:n,c=(e.ticketNumber,e.amount);return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)("div",{className:AR("qr-container"),children:[Object(kb.jsxs)(sf,{color:Po.a.bg_warning,margin:"0 0 30px 0",children:[Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",children:t.t("We only accept deposits from your registered bank account (see above).")}),Object(kb.jsx)(Tj.d,{children:t.t("This is a one-time use QR code, please do not re-use it.")})]}),Object(kb.jsx)("img",{src:r,alt:"QR code",className:AR("qr-image")}),Object(kb.jsxs)("a",{target:"_blank",rel:"noopener noreferrer",className:AR("qr-download"),download:!0,href:r,children:[Object(kb.jsx)(Ij,{name:"download2",customClass:AR()}),t.t("Download")]})]}),Object(kb.jsx)("div",{className:AR("bank-info"),children:Object(kb.jsx)(Mj,{label:t.t("Amount"),text:"".concat(L(c,"THB")," THB"),customClass:AR()})})]})};PR.contextTypes={t:O.a.func.isRequired};var TR=PR,ER=Db("deposit-thb-payment-details"),RR=function(e,t){var n=e.showSnack,r=e.ticketNumber,c=e.amount,i=Fe.a.Deposit.THB.fields,s=i.find((function(e){return"Bank Name"===e.label})).value,o=i.find((function(e){return"Account Name"===e.label})).value,l=i.find((function(e){return"Account Number"===e.label})).value;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)("div",{children:[Object(kb.jsx)("img",{src:Object(wb.a)("/local/images/thb-banks/SCB.svg"),alt:"SCB logo",className:ER("bank-logo")}),Object(kb.jsx)(Mj,{label:t.t("Bank Name"),text:s,customClass:ER()}),Object(kb.jsx)(Mj,{label:t.t("Account Name"),text:o,customClass:ER()}),Object(kb.jsx)(Mj,{label:t.t("Account Number"),text:l,customClass:ER(),onCopyToClipboard:function(){n({id:"copyAccountNumber",text:t.t("The Account Number has been copied to the clipboard.")}),tC(l.replace(/-/g,""))}}),Object(kb.jsx)(Mj,{label:t.t("Amount"),text:"".concat(L(c,"THB")," THB"),customClass:ER()}),Object(kb.jsx)(Mj,{label:t.t("Ticket Number"),text:r,customClass:ER()})]}),Object(kb.jsx)("div",{className:ER("note"),children:Object(kb.jsxs)(Tj.f,{children:[t.t("Your deposit will be approved in:")," ",Object(kb.jsx)("br",{}),t.t("Weekdays 9am - 9pm (GMT+7) : Within 1 hour")," ",Object(kb.jsx)("br",{}),t.t("Outside of hours above: Within 12 hours or by 10am next day")," ",Object(kb.jsx)("br",{})," ",Object(kb.jsx)("br",{}),t.t("Please use your registered bank account to deposit.")]})})]})};RR.contextTypes={t:O.a.func.isRequired};var NR=RR,MR=function(e,t){var n=e.thBankAccount,r=e.thBankAccountLoading,c=e.thBankAccountError;if(r)return Object(kb.jsx)(Tj.d,{children:t.t("Loading your bank account details...")});if(c)return Object(kb.jsx)(Tj.d,{children:t.t("Error while loading your bank account details")});if(!n)return null;var i=n.bankName,s=n.accountName,o=n.accountNumber;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(Tj.b,{margin:"0 0 10px 0",as:"h4",children:t.t("Your registered bank account")}),Object(kb.jsxs)("div",{children:[Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.f,{children:t.t("Bank Name")}),Object(kb.jsx)(Tj.d,{children:i})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.f,{children:t.t("Account Name")}),Object(kb.jsx)(Tj.d,{children:s})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.f,{children:t.t("Account Number")}),Object(kb.jsx)(Tj.d,{children:o})]})]})]})};MR.contextTypes={t:O.a.func.isRequired};var DR=wE(MR),LR=Db("deposit-thb-payment-details"),FR=function(e,t){var n=e.methodSelected,r=e.deposit,c=e.handleGoBack,i=e.closeModal,s=e.showSnack,o=e.amount,l=r.ticket_number,u=r.qr_url;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(DR,{}),"qr"===n?Object(kb.jsx)(TR,{qrUrl:u,amount:o,ticketNumber:l}):Object(kb.jsx)(NR,{ticketNumber:l,amount:o,showSnack:s}),Object(kb.jsxs)("div",{className:LR("section-buttons"),children:[Object(kb.jsx)(Hb,{type:"button",customClass:LR(),onClick:c,children:t.t("Back")}),Object(kb.jsx)(Hb,{type:"button",customClass:LR(),onClick:i,children:t.t("Finish")})]})]})};FR.contextTypes={t:O.a.func.isRequired};var UR=FR,BR=Object(s.c)((function(e){return{amount:Object(HT.a)("createDeposit")(e).amount}}),(function(e){return{showSnack:function(t){return e(sr(t))},closeModal:function(){return e(ta(!0))}}}))(UR),zR=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).handleDepositCreated=function(e){r.setState({page:2,deposit:e,methodSelected:"qr"})},r.handleMethodSelected=function(e){r.setState({page:2,methodSelected:e})},r.handleGoBack=function(){r.setState((function(e){return{page:0}}))},r.state={page:0,deposit:null,methodSelected:null},r}return Object(d.a)(n,[{key:"render",value:function(){var e=this.state,t=e.page,n=e.deposit,r=e.methodSelected;switch(console.log(t),t){case 0:return Object(kb.jsx)(sf,{children:Object(kb.jsx)(wR,{handleDepositCreated:this.handleDepositCreated})});case 1:return Object(kb.jsx)(sf,{children:Object(kb.jsx)(kR,{onMethodSelected:this.handleMethodSelected})});case 2:return Object(kb.jsx)(sf,{children:Object(kb.jsx)(BR,{handleGoBack:this.handleGoBack,methodSelected:r,deposit:n})});default:return null}}}]),n}(a.a.Component),GR=n(1254),WR=n(1259),ZR=(n(1211),n(1212),n(1298)),qR=n(654),VR=["001","AF","IQ","US","CN","BS","BW","KH","KP","GH","IS","IR","MN","PK","PA","SY","TT","YE","ZW"],_R=(Object(Y.a)(Object(Y.a)({},qR),{},{TH:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22"}),Object(ZR.a)().filter((function(e){return!VR.includes(e)}))),HR=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).onChange=function(t){(0,e.props.input.onChange)(t)},e.onBlur=function(){var t=e.props.input,n=t.value;(0,t.onBlur)(n)},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.customClass,n=e.classModifiers,r=e.info,a=e.label,c=e.rightLabelText,i=e.input,s=e.meta,o=s.error,l=s.touched,u=e.maxLength,d=e.showCountrySelect,b=e.filterCountries,p=e.labels,j=Db(["ap-phone-input",t]),m=Gb()("form-control",j("input"));return Object(kb.jsxs)("div",{className:"form-group ".concat(j("input-wrapper",n)),onFocus:this.onFocus,onBlur:this.onBlur,children:[Object(kb.jsx)("label",{className:"ap--label ".concat(j("label",n)),children:a}),Object(kb.jsxs)("div",{className:Gb()(c&&j("input-with-right-label-container"),j("input-box")),children:[d?Object(kb.jsx)(GR.a,Object(Y.a)(Object(Y.a)({},i),{},{name:"telephone",addInternationalOption:!1,international:!1,defaultCountry:Fe.a.global.phoneDefaultCountry,countries:b?_R.filter(b):_R,placeholder:this.props.placeholder,numberInputProps:{className:m},countrySelectProps:{className:j("country-select")},onChange:this.onChange,onBlur:this.onBlur,labels:p,limitMaxLength:u})):Object(kb.jsx)(WR.a,Object(Y.a)(Object(Y.a)({},i),{},{name:"telephone",country:Fe.a.global.phoneDefaultCountry,placeholder:this.props.placeholder,className:m,onChange:this.onChange,onBlur:this.onBlur,maxLength:u})),r&&Object(kb.jsx)("div",{className:"form-text-muted ".concat(j("info")),children:r}),l&&o&&Object(kb.jsx)("div",{className:j("error"),children:this.context.t(o)})]})]})}}]),n}(a.a.Component);HR.contextTypes={t:O.a.func.isRequired},HR.defaultProps={customClass:"",placeholder:"",label:"",onChange:function(){}};var YR=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:HR},e))};YR.defaultProps={name:"",label:"",labelInInput:"",type:"",classModifiers:"",placeholder:"",info:"",autoFocus:"",disabled:!1,required:!1,rows:1,showCountrySelect:!0};var KR=YR;var QR=[fO,xO(1),gO(2e4)],JR=function(e,t){var n=e.onSubmit,a=e.onSubmitOTPRequest,c=e.fetching,i=e.bankData,s=e.pendingRequestError,o=e.depositFee,l=e.product,u=Object(r.useState)(!1),d=Object(J.a)(u,2),b=d[0],p=d[1],j=Object(r.useState)(0),m=Object(J.a)(j,2),f=m[0],h=m[1],O=Object(r.useState)(0),x=Object(J.a)(O,2),g=x[0],v=x[1],y=i.map((function(e){return{value:e.abbreviation,label:e.name}}));return y.unshift({value:"",label:"Please select your bank"}),Object(kb.jsxs)(sf,{children:[Object(kb.jsxs)("form",{children:[Object(kb.jsx)(Tj.d,{margin:" 0 0 10px 0",children:t.t("Step 1")}),Object(kb.jsx)(Tj.d,{margin:" 0 0 20px 0",children:t.t("Enter your phone number to receive a one time password (OTP). You must register with a Singapore mobile number.")}),Object(kb.jsxs)($R,{children:[Object(kb.jsx)(eN,{type:"text",name:"phone_number",label:"Phone Number",filterCountries:function(e){return"SGD"===e},validate:[fO]}),Object(kb.jsx)(Pm,{type:"submit",disabled:b,size:"small",onClick:function(e){return function(e){p(!0),setTimeout((function(){p(!1)}),1e4),a(e)}(e)},children:t.t("Get OTP")})]})]}),Object(kb.jsx)(tN,{}),Object(kb.jsx)(Tj.d,{margin:" 0 0 10px 0",children:t.t("Step 2")}),Object(kb.jsx)(Tj.d,{margin:" 0 0 20px 0",children:t.t("Enter your OTP, the amount you will be depositing, your account number and the bank you will be depositing from.")}),Object(kb.jsxs)("form",{onSubmit:n,children:[Object(kb.jsx)(Wm,{type:"text",name:"otp",label:"One Time Password",autoComplete:"off",validate:[fO]}),Object(kb.jsx)(qm,{type:"number",name:"amount",label:"Deposit amount (SGD)",validate:QR,autoComplete:"off",customChange:function(e){var t=e/100*o.FeeAmt;v(t=e<10?0:t),h(e>0?e-t:0)}}),Object(kb.jsx)(Tj.f,{margin:"0 0 15px 0",children:t.t("Max. 20,000 SGD per transaction, 40,000 SGD per day")}),o.FeeAmt&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)($R,{children:[Object(kb.jsxs)(Tj.d,{children:[t.t("Fee")," (",o.FeeAmt,"%)"]}),Object(kb.jsxs)(Tj.d,{children:[vt(l.Product),L(g,"SGD")," SGD"]})]}),Object(kb.jsxs)($R,{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:t.t("You receive")}),Object(kb.jsxs)(Tj.d,{children:[vt(l.Product),gt(l.Product,L(f,"SGD"))," ","SGD"]})]})]}),i&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Wm,{type:"text",name:"bank_account_number",label:"Account number",validate:[CO(6),yO(21)],autoComplete:"off"}),Object(kb.jsx)(NE,{name:"bank_abbrev",label:t.t("Select the Bank you will be depositing from"),options:y,showTriangles:!0})]}),s&&Object(kb.jsx)(Tj.d,{margin:"20px 0",color:Po.a.text_error,children:t.t("You already have a pending deposit for the same amount.")}),Object(kb.jsx)(Tj.d,{margin:"20px 0 0 0",children:Object(kb.jsx)(Pm,{type:"submit",fullWidth:!0,showLoading:c,disabled:c,children:t.t("Submit")})})]})]})};JR.contextTypes={t:O.a.func.isRequired};var XR=JR,$R=Object(Tb.a)("div",{target:"e15m3c4v0"})({name:"101bh7m",styles:"display:flex;justify-content:space-between;align-items:end;"}),eN=Object(Tb.a)(KR,{target:"e15m3c4v1"})({name:"1pbpksy",styles:"width:80%;height:35px;"}),tN=Object(Tb.a)("div",{target:"e15m3c4v2"})("margin:20px 0;height:1px;border-top:1px solid ",Po.a.border,";"),nN=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).state={loading:!1,virtualAccountData:{},fetching:!1,bankData:[],pendingRequestError:!1},r.getBanks=Object(V.a)(q.a.mark((function e(){var t,n,a;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.localStorage.getItem("token"),e.prev=1,e.next=4,pc.a.get("".concat(Ac.a.get("REACT_APP_DEPOSIT_ENDPOINT"),"/info"),{headers:{Authorization:"Bearer ".concat(t)}});case 4:n=e.sent,(a=n.data).banks&&r.setState({bankData:a.banks}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),r.handleOTPRequest=function(){var e=Object(V.a)(q.a.mark((function e(t){var n,a,c,i,s,o,l;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=r.props,a=n.sessionToken,c=n.formOTPFormValues.phone_number,i=n.productId,s={phone_number:c,asset_id:i},e.prev=3,e.next=6,pc.a.post(Ac.a.get("REACT_APP_DEPOSIT_ENDPOINT")+"/otp",s,{headers:{Authorization:"Bearer ".concat(a)}});case 6:o=e.sent,l=o.data,console.log(l),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}(),r.handleSubmit=function(){var e=Object(V.a)(q.a.mark((function e(t){var n,a,c,i,s,o,l,u,d,b,p,j,m;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=r.props,a=n.sessionToken,c=n.formValues,i=c.amount,s=c.phone_number,o=c.otp,l=c.bank_account_number,u=c.bank_abbrev,d=n.productId,b=n.selectedAccountId,p={amount:parseInt(i),asset_id:d,account_id:b,details:{otp:o,phone_number:s,bank_account_number:l,bank_abbrev:u}},r.setState({loading:!0}),e.prev=4,e.next=7,pc.a.post(Ac.a.get("REACT_APP_DEPOSIT_ENDPOINT"),p,{headers:{Authorization:"Bearer ".concat(a)}});case 7:j=e.sent,m=j.data,r.props.onVirtualAccountCreated(m,i),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),"Pending request with the same amount is found"===e.t0.response.data&&r.setState({pendingRequestError:!0});case 15:return e.prev=15,r.setState({loading:!1}),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[4,12,15,18]])})));return function(t){return e.apply(this,arguments)}}(),r.getBanks(),r}return Object(d.a)(n,[{key:"render",value:function(){var e=this.state,t=e.loading,n=e.bankData,r=e.pendingRequestError;return Object(kb.jsx)(XR,{onSubmitOTPRequest:this.handleOTPRequest,onSubmit:this.handleSubmit,submitting:t,fetching:t,bankData:n,pendingRequestError:r,depositFee:this.props.depositFee,product:this.props.product})}}]),n}(a.a.Component);nN.contextTypes={t:O.a.func.isRequired};var rN=Object(s.c)((function(e){return{productId:en(e,"SGD").ProductId,sessionToken:Object(Ni.at)(e,"auth.token")[0],selectedAccountId:Object(Ni.at)(e,"user.selectedAccountId")[0],formOTPFormValues:Object(HT.a)("createDeposit")(e),formValues:Object(HT.a)("createDeposit")(e),depositFee:EI(e),product:TI(e)}}),(function(e){return{onDepositError:function(t){return e(sr({id:"createSGDDepositError",text:t,type:"warning"}))}}}))(nN),aN=new URLSearchParams(window.location.search).get("contentOnly"),cN=function(e){var t=Object(_j.a)().t,n=Object(l.g)();return Object(kb.jsx)(kb.Fragment,{children:!aN&&Object(kb.jsx)(Pm,{fullWidth:!0,onClick:function(){return n.push("/wallets")},children:t("Complete")})})},iN=function(e){var t=e.virtualAccountData,n=e.amount,r=Object(_j.a)().t;return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(SA,{id:"warningtext",margin:"0 0 20px 0",color:Po.a.bg_warning,children:Object(kb.jsx)(Tj.d,{children:r("Your first deposit will take up to 48 hours to approve. This is to verify your bank account for faster processing later. Please do not deposit more than once into your designated account in the first 48 hours. If you deposit more than once your account will be locked for 48 hours. The restrictions will be removed after your first deposit is approved.")})}),Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 10px 0",children:"Account Details"}),Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",children:r("Deposit {amount} SGD to the bank account below. ",{amount:n})}),Object(kb.jsxs)(sN,{children:[Object(kb.jsx)(Tj.f,{children:r("Bank Name")}),Object(kb.jsx)(Tj.d,{children:t.bank_name_full})]}),Object(kb.jsxs)(sN,{children:[Object(kb.jsx)(Tj.f,{children:r("Account number")}),Object(kb.jsx)(Tj.d,{children:t.bank_account_no})]}),Object(kb.jsxs)(sN,{children:[Object(kb.jsx)(Tj.f,{children:r("Payee name")}),Object(kb.jsx)(Tj.d,{children:t.bank_payee_name})]}),Object(kb.jsxs)(sN,{children:[Object(kb.jsx)(Tj.f,{children:r("Bank code")}),Object(kb.jsx)(Tj.d,{children:t.bank_code})]})," "]}),Object(kb.jsx)(cN,{})]})},sN=Object(Tb.a)(sf,{target:"e67jpw60"})("padding-top:10px;padding-bottom:10px;margin-bottom:15px;background:",Po.a.bg_tertiary,";&:last-of-type{margin-bottom:0px;}"),oN=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).handleVirtualAccountCreated=function(e,t){r.setState({page:1,virtualAccountData:e,amount:t})},r.state={page:0,virtualAccountData:{},amount:0},r}return Object(d.a)(n,[{key:"render",value:function(){var e=this.state,t=e.page,n=e.virtualAccountData,r=e.amount;switch(t){case 0:return Object(kb.jsx)(sf,{children:Object(kb.jsx)(rN,{onVirtualAccountCreated:this.handleVirtualAccountCreated})});case 1:return Object(kb.jsx)(iN,{virtualAccountData:n,amount:r});default:return null}}}]),n}(a.a.Component),lN=n(316);var uN=function(e){var t,n,r,a,c,i,s=e.fetching,o=e.depositInfo,l=e.onSubmit,u=Object(_j.a)().t,d=Object(lN.b)({mode:"all"}),b=d.handleSubmit,p=d.formState.errors,j=d.control,m=(0,d.watch)("amount");return Object(kb.jsxs)("form",{children:[Object(kb.jsx)(Vf,{isVisible:s}),!s&&null!==o&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:u("Step 1")})," ",Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:u("Enter deposit amount")}),Object(kb.jsxs)(dN,{children:[Object(kb.jsx)(lN.a,{name:"amount",control:j,rules:{required:!0,max:o.maxAmountPerTransaction,min:o.minAmountPerTransaction,maxLength:10},render:function(e){var t=e.field;return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{type:"number",fullWidth:!0,label:u("Amount of USD"),autoComplete:"off"}))})}}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(t=p.amount)||void 0===t?void 0:t.type)&&u("Amount is required"),"min"===(null===(n=p.amount)||void 0===n?void 0:n.type)&&u("Amount must be more than {minAmount} USD",{minAmount:L(o.minAmountPerTransaction,"USD")}),"max"===(null===(r=p.amount)||void 0===r?void 0:r.type)&&u("Amount must be less than {maxAmount} USD",{maxAmount:L(o.maxAmountPerTransaction,"USD")})]})]})]}),Object(kb.jsx)(xT,{headline:"Limits",margin:"0 0 15px 0",setCollapsed:!0,children:Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(bN,{children:[Object(kb.jsx)(Tj.f,{children:u("Daily deposit limit remaining")}),Object(kb.jsxs)(Tj.d,{children:[L(null===(a=o.dailyLimit)||void 0===a?void 0:a.availableAmount,"USD")," / ",Object(kb.jsxs)(pN,{children:[L(o.maxAmountPerDay,"USD")," ","USD"]})]})]}),Object(kb.jsxs)(bN,{children:[Object(kb.jsxs)(Tj.f,{children:[u("Min per transaction")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(o.minAmountPerTransaction,"USD")," ","USD"]})]}),Object(kb.jsxs)(bN,{children:[Object(kb.jsxs)(Tj.f,{children:[u("Max per transaction")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(o.maxAmountPerTransaction,"USD")," ","USD"]})]})]})},"slide1"),Object(kb.jsxs)(xT,{headline:"Fees",margin:"0 0 15px 0",children:[Object(kb.jsxs)(bN,{children:[Object(kb.jsx)(Tj.f,{children:u("Amount to deposit")}),Object(kb.jsxs)(Tj.d,{children:[L(m||0,"USD")," USD"]})]}),Object(kb.jsxs)(bN,{children:[Object(kb.jsx)(Tj.f,{children:u("Fee")}),Object(kb.jsxs)(Tj.d,{children:[L(Math.max(null===(c=o.fee)||void 0===c?void 0:c.value,0),"USD")," USD"]})]}),Object(kb.jsxs)(bN,{children:[Object(kb.jsx)(Tj.f,{children:u("You receive")}),Object(kb.jsxs)(Tj.d,{children:[L(Math.max(m-(null===(i=o.fee)||void 0===i?void 0:i.value),0),"USD")," USD"]})]})]},"slide2"),Object(kb.jsx)(Pm,{fullWidth:!0,showLoading:s,onMouseUp:b(l),children:u("Next")})]})]})},dN=Object(Tb.a)(sf,{target:"e1kg5gvk0"})({name:"y8aj3r",styles:"padding:0;"}),bN=Object(Tb.a)("div",{target:"e1kg5gvk1"})({name:"aoyduu",styles:"margin:0 0 15px 0;&:last-of-type{margin:0;}"}),pN=Object(Tb.a)("span",{target:"e1kg5gvk2"})("color:",Po.a.text_grey,";");var jN=new URLSearchParams(window.location.search).get("contentOnly"),mN=function(e){var t=e.fetching,n=e.depositRequestInfo,r=Object(_j.a)().t,a=Object(l.g)(),c=Object(s.e)(),i=n.details.bankAccount.accountName,o=n.details.bankAccount.accountNumber,u=n.details.bankAccount.bankAddress,d=n.details.bankAccount.bankName,b=n.details.bankAccount.beneficiaryAddress,p=n.details.bankAccount.referenceCode,j=n.details.bankAccount.swiftCode,m=parseInt(n.amount)-parseInt(n.feeAmount),f=Object(s.f)((function(e){return e.user.zmUserInfo.email})),h=function(e){c(sr({id:"depositsCopy",text:e,type:"success"}))};return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Vf,{isVisible:t}),!t&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(xT,{headline:"Deposit Instructions",margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.d,{children:"Your deposit ticket has been created. Please deposit funds to the Zipmex bank account using the reference code."}),Object(kb.jsx)(sf,{margin:"15px 0 15px 0",color:Po.a.bg_tertiary,children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Reference Code")}),Object(kb.jsx)(Tj.d,{children:p})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Reference code has been copied to the clipboard.")),tC(p)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(Tj.d,{margin:"15px 0 15px 0",children:"Deposits without the reference code will take 10 days to process (including weekends and public holidays)."}),Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:"Allow up to 3 days(including weekends and public holidays) for your Zipmex account to update."}),Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:"You will receive an email when your deposit has been approved."}),Object(kb.jsxs)(Tj.d,{children:["A copy of the deposit instructions have been emailed to"," ",Object(kb.jsx)(Tj.c,{color:Po.a.text_highlight,children:f}),"."]})]}),Object(kb.jsxs)(xT,{headline:"Fees",margin:"0 0 15px 0",children:[Object(kb.jsxs)(hN,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.f,{children:r("Amount to Deposit")}),Object(kb.jsxs)(Tj.d,{children:[L(n.amount,"USD")," USD"]})," "]}),Object(kb.jsxs)(hN,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.f,{children:r("Fee")}),Object(kb.jsxs)(Tj.d,{children:[L(n.feeAmount,"USD")," USD"]})," "]}),Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("You receive")}),Object(kb.jsxs)(Tj.d,{children:[L(m,"USD")," USD"]})]})]}),Object(kb.jsxs)(xT,{headline:r("Bank account details"),margin:"0 0 15px 0",children:[Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Bank Name")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:d})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Bank name has been copied to the clipboard.")),tC(d)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Bank Swift/BIC Code")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:j})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Swift code has been copied to the clipboard.")),tC(j)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Bank Address")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Bank address has been copied to the clipboard.")),tC(u)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Account Name")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:i})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Account name has been copied to the clipboard.")),tC(i)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Account Number")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:o})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Account number has been copied to the clipboard.")),tC(o)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Beneficiary Address")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:b})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Beneficiary Address has been copied to the clipboard.")),tC(b)},children:Object(kb.jsx)(iR,{})})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,children:Object(kb.jsxs)(fN,{children:[Object(kb.jsxs)(hN,{children:[Object(kb.jsx)(Tj.f,{children:r("Reference Code")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:p})]}),Object(kb.jsx)(ON,{onClick:function(){h(r("Reference Code has been copied to the clipboard.")),tC(p)},children:Object(kb.jsx)(iR,{})})]})})]}),!jN&&Object(kb.jsx)(xN,{children:Object(kb.jsx)(Pm,{onClick:function(){a.push("/wallets/"),c(wc())},type:"submit",fullWidth:!0,children:r("Finish")})})]})]})},fN=Object(Tb.a)("div",{target:"e15qkwpq0"})("display:flex;justify-content:space-between;align-items:center;margin:",(function(e){return e.margin?e.margin:"0"}),";"),hN=Object(Tb.a)("div",{target:"e15qkwpq1"})("display:flex;flex-direction:column;margin:",(function(e){return e.margin?e.margin:"0"}),";"),ON=Object(Tb.a)("button",{target:"e15qkwpq2"})({name:"r3pp3u",styles:"margin-left:15px;min-width:37px;text-align:right;svg{width:22px;height:22px;}"}),xN=Object(Tb.a)("div",{target:"e15qkwpq3"})({name:"1wcgr0x",styles:"width:100%;margin-top:15px;margin-bottom:15px;"}),gN=function(e){var t=Object(r.useState)(1),n=Object(J.a)(t,2),a=n[0],c=n[1],i=Object(r.useState)(!1),s=Object(J.a)(i,2),o=s[0],l=s[1],u=window.localStorage.getItem("zmToken"),d="usd.global",b=Object(r.useState)({}),p=Object(J.a)(b,2),j=p[0],m=p[1],f=Object(r.useState)(),h=Object(J.a)(f,2),O=h[0],g=h[1],v=function(){var e=Object(V.a)(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,Object(x.g)({token:u,productId:d});case 4:t=e.sent,m(t.depositInfo),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:return e.prev=11,l(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=Object(V.a)(q.a.mark((function e(t){var n;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,Object(x.h)({token:u,amount:t.amount,details:"{}",productId:d});case 4:n=e.sent,g(n.requestDeposit),c(2),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:return e.prev=12,l(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})));return function(t){return e.apply(this,arguments)}}();switch(Object(r.useEffect)((function(){v()}),[]),a){case 1:return Object(kb.jsx)(uN,{fetching:o,depositInfo:j,onSubmit:y});case 2:return Object(kb.jsx)(mN,{fetching:o,depositRequestInfo:O});default:return null}};var vN=function(){var e=Object(_j.a)().t,t=Object(s.e)(),n=Object(s.f)((function(e){var t;return null===(t=e.user)||void 0===t?void 0:t.userInfo.Email}));return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsxs)(sf,{children:[Object(kb.jsx)(Tj.d,{children:e("Your {product} deposit address",{product:"ZMT"})}),Object(kb.jsx)(Tj.f,{margin:"10px 0 20px 0",color:Po.a.text_warning,children:e("Important: Send only {currency} to this deposit address. Sending any other coin or token to this address may result in the loss of your deposit.",{currency:"ZMT"})}),Object(kb.jsxs)(yN,{children:[Object(kb.jsx)(Ny,{size:85,value:n}),Object(kb.jsx)(Tj.f,{margin:"30px 0 10px 0",children:n}),Object(kb.jsxs)(CN,{variant:"outlined",size:"small",onClick:function(){return function(n){t(sr({id:"copyDepositAddress",text:e("The address has been copied to the clipboard.")})),tC(n)}(n)},children:[e("Copy")," "]})]})]})})},yN=Object(Tb.a)(sf,{target:"eqgz59o0"})("padding-top:40px;text-align:center;background-color:",Po.a.bg_tertiary,";"),CN=Object(Tb.a)(Pm,{target:"eqgz59o1"})({name:"jkrl3j",styles:"margin:0 auto !important;"}),wN=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).createScript=function(){var t=document.createElement("script");document.body.appendChild(t),t.onload=e.props.onLoadCallback,t.src=e.props.url},e}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.createScript()}},{key:"render",value:function(){return null}}]),n}(a.a.Component);wN.defaultProps={url:"",onLoadCallback:function(){}};var SN=wN,kN=Db("deposit-form"),IN=function(e){var t=e.url;return Object(kb.jsxs)("div",{className:kN("trustpay-form"),children:[Object(kb.jsx)("form",{action:location.href,className:"paymentWidgets","data-brands":"VISA MASTER AMEX"}),Object(kb.jsx)(SN,{url:t})]})};IN.defaultProps={url:"",title:""};var AN=IN,PN=function(e){var t=e.options;return Object(kb.jsx)(SN,{url:"https://checkout.razorpay.com/v1/checkout.js",onLoadCallback:function(){var e=Object(Y.a)(Object(Y.a)({},t),{},{handler:function(){window.location.href=t.redirectUrl}});new Razorpay(e).open()}})};PN.defaultProps={options:{key:"",amount:"",order_id:"",handler:"",prefill:{contact:"",email:""}}};var TN=PN,EN=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.form.submit()}},{key:"render",value:function(){var e=this,t=this.props.options;return Object(kb.jsxs)("div",{children:[Object(kb.jsx)("p",{children:"Redirecting to Psigate..."}),Object(kb.jsxs)("form",{id:"psigateForm",style:{visibility:"hidden"},action:t.APIAddress,method:"post",ref:function(t){return e.form=t},children:[Object(kb.jsx)("input",{name:"MerchantID",type:"text",value:t.MerchantID}),Object(kb.jsx)("input",{name:"PaymentType",type:"text",value:t.PaymentType}),Object(kb.jsx)("input",{name:"OrderID",type:"text",value:t.OrderID}),Object(kb.jsx)("input",{name:"UserID",type:"text",value:t.UserID}),Object(kb.jsx)("input",{name:"SubTotal",type:"text",value:t.SubTotal}),Object(kb.jsx)("input",{name:"CardAction",type:"text",value:0}),Object(kb.jsx)("input",{name:"ResponseFormat",type:"text",value:t.ResponseFormat}),Object(kb.jsx)("input",{name:"Email",type:"text",value:t.Email}),Object(kb.jsx)("input",{name:"ThanksURL",type:"text",value:t.ThanksURL}),Object(kb.jsx)("input",{name:"NoThanksURL",type:"text",value:t.NoThanksURL})]})]})}}]),n}(a.a.Component);EN.defaultProps={options:{MerchantID:"",PaymentType:"",OrderID:"",UserID:"",SubTotal:"",ResponseFormat:"",Email:""}};var RN=EN,NN=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.form.submit()}},{key:"render",value:function(){var e=this,t=this.props.options;return Object(kb.jsxs)("div",{children:[Object(kb.jsx)("p",{children:"Redirecting to Interswitch..."}),Object(kb.jsxs)("form",{id:"interswitchForm",style:{visibility:"hidden"},action:t.postUrl,method:"post",ref:function(t){return e.form=t},children:[Object(kb.jsx)("input",{name:"product_id",type:"text",value:t.productId}),Object(kb.jsx)("input",{name:"pay_item_id",type:"text",value:t.itemId}),Object(kb.jsx)("input",{name:"amount",type:"text",value:t.amount}),Object(kb.jsx)("input",{name:"currency",type:"text",value:t.currency}),Object(kb.jsx)("input",{name:"site_redirect_url",type:"text",value:t.siteRedirectUrl}),Object(kb.jsx)("input",{name:"txn_ref",type:"text",value:t.transRef}),Object(kb.jsx)("input",{name:"cust_id",type:"text",value:t.customerId}),Object(kb.jsx)("input",{name:"hash",type:"text",value:t.hash})]})]})}}]),n}(a.a.Component);NN.defaultProps={options:{postUrl:"",productId:"",itemId:"",amount:"",currency:"",siteRedirectUrl:"",transRef:"",customerId:"",hash:""}};var MN=NN,DN=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.form.submit()}},{key:"render",value:function(){var e=this,t=this.props.options;return Object(kb.jsxs)("div",{children:[Object(kb.jsx)("p",{children:"Redirecting to Fennas..."}),Object(kb.jsxs)("form",{id:"fennasForm",style:{visibility:"hidden"},action:t.PostUrl,method:"post",ref:function(t){return e.form=t},children:[Object(kb.jsx)("input",{name:"MerchantID",type:"text",value:t.MerchantID}),Object(kb.jsx)("input",{name:"MerchantRefNo",type:"text",value:t.MerchantRefNo}),Object(kb.jsx)("input",{name:"MerchantPaysFees",type:"text",value:t.MerchantPaysFees}),Object(kb.jsx)("input",{name:"SendJSONCallBack",type:"text",value:t.SendJSONCallBack}),Object(kb.jsx)("input",{name:"MerchantLanguage",type:"text",value:t.MerchantLanguage}),Object(kb.jsx)("input",{name:"RequestHasCardOrder",type:"text",value:t.RequestHasCardOrder}),Object(kb.jsx)("input",{name:"ResponseFormat",type:"text",value:t.ResponseFormat}),Object(kb.jsx)("input",{name:"RedirectionURLOK",type:"text",value:t.RedirectionURLOK}),Object(kb.jsx)("input",{name:"RedirectionURLFailed",type:"text",value:t.RedirectionURLFailed}),Object(kb.jsx)("input",{name:"RedirectionURLCancelled",type:"text",value:t.RedirectionURLCancelled}),Object(kb.jsx)("input",{name:"RedirectionURLError",type:"text",value:t.RedirectionURLError}),Object(kb.jsx)("input",{name:"NormalAmount",type:"text",value:t.NormalAmount}),Object(kb.jsx)("input",{name:"NormalCurrency",type:"text",value:t.NormalCurrency}),Object(kb.jsx)("input",{name:"NormalDescription",type:"text",value:t.NormalDescription}),Object(kb.jsx)("input",{name:"RequestType",type:"text",value:t.RequestType}),Object(kb.jsx)("input",{name:"Version",type:"text",value:t.Version}),Object(kb.jsx)("input",{name:"CheckSum",type:"text",value:t.CheckSum})]})]})}}]),n}(a.a.Component);DN.defaultProps={options:{MerchantID:"",MerchantRefNo:"",MerchantPaysFees:"",SendJSONCallBack:"",MerchantLanguage:"",RequestHasCardOrder:"",ResponseFormat:"",RedirectionURLOK:"",RedirectionURLFailed:"",RedirectionURLCancelled:"",RedirectionURLError:"",NormalAmount:"",NormalCurrency:"",NormalDescription:"",RequestType:"",Version:"",CheckSum:""}};var LN=DN,FN=function(e,t){e.product.Product;var n=e.bankInfo;return Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)(Mj,{label:t.t("Bank Name:"),text:n.bankName}),Object(kb.jsx)(Mj,{label:t.t("Wire Number:"),text:n.bankWireNumber}),Object(kb.jsx)(Mj,{label:t.t("Account Number:"),text:n.bankAccountNumber})]})};FN.contextTypes={t:O.a.func.isRequired};var UN=FN,BN=Object(s.c)((function(e){var t=TI(e);return{product:t,bankInfo:Fe.a.Deposit[t.Product]}}))(UN),zN=function(e,t){var n,r,a,c,i=e.depositInfo,s=e.templateType;if(i[0])try{var o=JSON.parse(i[0]);n=o.PaymentAPI,r=o.URL,a=o.RedirectURL,c=o.SerializedPaymentTransactionObject}catch(u){}if("Hyphen"===s)return Object(kb.jsx)(BN,{});if(a)return window.location=a,Object(kb.jsx)("p",{children:"Redirecting..."});if("TrustPay"===n)return Object(kb.jsx)(AN,{url:r});if(c){var l=JSON.parse(c);if("Razorpay"===n)return Object(kb.jsx)(TN,{options:l});if("Psigate"===n)return Object(kb.jsx)(RN,{options:Object(Y.a)(Object(Y.a)({},l),{},{Email:""})});if("Interswitch"===n)return Object(kb.jsx)(MN,{options:l});if("Fennas"===n)return Object(kb.jsx)(LN,{options:l})}return null===n?Object(kb.jsx)("p",{children:t.t("Server provided an unexpected response.")}):null};zN.defaultProps={depositInfo:[]},zN.contextTypes={t:O.a.func.isRequired};var GN=zN,WN=Object(s.c)((function(e){return{depositInfo:e.deposit.depositInfo.reverse(),templateType:e.deposit.templateType}}))(GN),ZN=(n(1214),function(e){var t=e.product,n=e.onClick,r=Object(_j.a)().t,a=Object(s.f)((function(e){return qt(e)})),c=Object(s.f)((function(e){return Kt(e,a)})),i=BO().ProductId,o=Object(s.f)((function(e){return Ht(e,i)||{}})),l=Object(s.f)((function(e){var t;return null===(t=e.zipCrewSlice)||void 0===t?void 0:t.status.stakedAmount}))||0,u=c+o.value*l,d=df(),b=!1;return bf.includes(t.Product)&&d===lf&&u<jf&&(b=!0),Object(kb.jsx)(kb.Fragment,{children:b?Object(kb.jsx)(sf,{children:Object(kb.jsx)(Tj.d,{margin:"0 0 20px 0",children:r("Insufficient funds to deposit this currency. Deposit  fiat or a non-ethereum currency to unlock this feature. Contact our Customer Support or check our website for more details.")})}):Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(Tj.d,{margin:"0 0 20px 0",children:[r("Reveal your {product} deposit address",{product:t.ProductFullName})," "]}),Object(kb.jsx)(Pm,{onClick:n,fullWidth:!0,children:r("Show deposit address")})]})})});var qN=Db("cryptowallet-deposit"),VN=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={isAddressShow:e.props.addressList.length>0},e.copyAddress=function(t){(0,e.props.showSnack)(e.context.t("The address has been copied to the clipboard.")),tC(t)},e.showDepositAddress=Object(V.a)(q.a.mark((function t(){var n,r,a;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.props,r=n.getDepositInfo,a=n.product,t.prev=1,t.next=4,r(a.ProductId);case 4:t.next=8;break;case 6:t.prev=6,t.t0=t.catch(1);case 8:case"end":return t.stop()}}),t,null,[[1,6]])}))),e}return Object(d.a)(n,[{key:"render",value:function(){var e,t=this,n=this.context,r=this.props,a=r.addressList,c=r.product,i=r.showSnack,s=a.length?a[a.length-1]:"",o=(e=s)?e.split("?dt="):[""],l=Object(J.a)(o,2),u=l[0],d=l[1];return Object(kb.jsx)("div",{className:qN("wrapper"),children:this.state.isAddressShow?Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(HN,{children:bf.includes(c.Product)&&Object(kb.jsx)(SA,{id:"ERC20-warning"+c.ProductId,color:Po.a.bg_warning,margin:"0 0 20px 0",children:Object(kb.jsx)(Tj.d,{children:n.t("CAUTION: Zipmex supports { product } on the ETH blockchain (ERC20) only. If you send this to another blockchain - e.g. BSC, this will not work, and we will not be able to recover the funds.",{product:c.Product})})},"ERC20-warning"+c.ProductId)}),Object(kb.jsx)(HN,{children:Object(kb.jsxs)(sf,{children:[Object(kb.jsx)(Tj.d,{children:n.t("Your {product} deposit address",{product:c.ProductFullName})}),Object(kb.jsx)(Tj.f,{margin:"10px 0 20px 0",color:Po.a.text_warning,children:n.t("Important: Send only {currency} to this deposit address. Sending any other coin or token to this address may result in the loss of your deposit.",{currency:c.Product})}),Object(kb.jsxs)(YN,{children:[Object(kb.jsx)(Ny,{size:85,value:u}),Object(kb.jsx)(Tj.f,{breakWord:!0,margin:"30px 0 10px 0",children:u}),Object(kb.jsxs)(KN,{variant:"outlined",size:"small",onClick:function(){return t.copyAddress(u)},children:[n.t("Copy")," "]})]})]})}),d&&Object(kb.jsx)(HN,{children:Object(kb.jsxs)(sf,{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",children:n.t("Be sure to include this destination tag:")}),Object(kb.jsxs)("div",{"data-test":"Destination tag",className:qN("address"),onClick:function(){i(n.t("The destination tag has been copied to the clipboard.")),tC(d)},children:[d,Object(kb.jsx)(Ij,{name:"copy",customClass:qN("copy-icon")})]})]})}),Object(kb.jsx)(cN,{})]}):Object(kb.jsx)(ZN,{product:c,onClick:this.showDepositAddress})})}}]),n}(a.a.Component);VN.defaultProps={addressList:[],product:{Product:"",ProductId:0,ProductFullName:"",ProductType:""}},VN.contextTypes={t:O.a.func.isRequired};var _N=VN,HN=Object(Tb.a)("div",{target:"eic1uaz0"})({name:"16b2ug3",styles:"margin:15px 0;"}),YN=Object(Tb.a)(sf,{target:"eic1uaz1"})("padding-top:40px;text-align:center;background-color:",Po.a.bg_tertiary,";"),KN=Object(Tb.a)(Pm,{target:"eic1uaz2"})({name:"jkrl3j",styles:"margin:0 auto !important;"}),QN=Object(s.c)((function(e){return{addressList:e.deposit.depositInfo,product:TI(e)}}),(function(e){return{showSnack:function(t){return e(sr({id:"depositCopyAddress",text:t,type:"success"}))},getDepositInfo:function(t){return e(Oa(t))}}}))(_N),JN="ABCDEFGHIJKLMNOPQRSTUVWXYZ",XN="0123456789",$N=function(e){return e.charAt(Math.floor(Math.random()*e.length))},eM=function(){for(var e=$N(XN),t=0;t<8;t++)e+=$N("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");return e+=$N(JN)},tM=(n(1215),Db("manual-deposit")),nM=function(e,t){var n=e.product,c=n.DecimalPlaces,i=n.Product,s=eM();Object(r.useEffect)((function(){e.changeFieldValue("comments",s)}),[e,s]);var o=Fe.a.Deposit,l=Fe.a.Deposit.hideDepositBankInfo,u=Fe.a.global.brand,d=o[i]&&o[i].fields||[],b=o[i]&&o[i].maxDeposit||"";return Object(kb.jsxs)("div",{className:tM(),children:["xbullion"===u&&Object(kb.jsx)("p",{children:"The xbullion exchange is operated by Zipmex Asia. Please transfer funds to the Zipmex bank account details below"}),!l&&Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)("p",{className:tM("steps"),children:[t.t("Step 1: Create deposit ticket."),Object(kb.jsx)("br",{}),t.t('Step 2: Deposit funds and include "{reference}" with your wire transfer to identify the deposit with your account. We will deposit the equivalent amount that our bank receives net fees.',{reference:s}),Object(kb.jsx)("br",{}),t.t("Step 3: Refer to the following for when your deposit would be approved:"),Object(kb.jsx)("br",{}),Object(kb.jsx)("br",{}),t.t("Weekdays 9am - 9pm (GMT+7) : Within 1 hour of deposit"),Object(kb.jsx)("br",{}),t.t("Outside of hours above: Within 12 hours of deposit or by 10am following day"),Object(kb.jsx)("br",{}),Object(kb.jsx)("br",{}),t.t("Step 4: You will receive an email notification when your deposit has been accepted"),Object(kb.jsx)("br",{})]}),Object(kb.jsx)("div",{className:tM("bank-info-label"),children:t.t("Bank Account Information")}),Object(kb.jsxs)("div",{className:tM("bank-info"),children:[d.map((function(e){var n=e.label,r=e.value;return Object(kb.jsx)(Mj,{label:t.t(n),text:r,customClass:tM()},n)})),Object(kb.jsx)(Mj,{label:t.t("Reference"),text:s,customClass:tM()})]}),Object(kb.jsx)("p",{className:tM("bank-info-reminder"),children:Object(kb.jsx)("i",{children:"Make sure the name of the bank account and the amount matches what is stated in this Deposit Ticket."})})]}),Object(kb.jsxs)("div",{className:tM("input-container"),children:[Object(kb.jsx)(Wm,{type:"text",name:"fullname",placeholder:t.t("Full Name"),customClass:tM(),validate:[fO]}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)(qm,{type:"text",name:"amount",placeholder:t.t("Amount"),decimalPlaces:c,customClass:tM(),validate:[fO,vO]}),Object(kb.jsxs)("div",{style:{marginTop:5},children:["Max. ",gt(i,b)," per day"]})]}),Object(kb.jsx)(Wm,{type:"hidden",name:"comments"}),Object(kb.jsx)(Hb,{customClass:tM(),type:"submit","data-test":"Place Deposit Ticket",disabled:e.submitting,styleName:"additive",onClick:e.onSubmit,children:e.submitting?t.t("Submitting..."):t.t("Place Deposit Ticket")})]})]})};nM.defaultProps={onSubmit:function(){},submitting:!1},nM.contextTypes={t:O.a.func.isRequired};var rM=nM,aM=Object(s.c)((function(e,t){var n=t.onSubmit,r=t.submitting;return{product:TI(e),onSubmit:n,submitting:r}}))(rM),cM=function(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2")},iM=["DestinationTagNumber","Comment","TemplateType"],sM=(Ae.c.extractT("External Address"),Ae.c.extractT("Comment"),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.Product,c=r.ProductSymbol,i=r.DecimalPlaces;return Object.keys(e).map((function(r){var s,o=n.t(cM(r)),l=iM.includes(r)?null:fO,u=["TemplateType","Comment"].includes(r)?"hidden":"text";if(e[r]&&0===e[r].indexOf("[")){var d=e[r].split(",").map((function(e){var t=e.trim().replace(/[[\]]/g,"");return{value:t,label:t}}));if("Country"===r)try{d=JSON.parse(e[r]).map((function(e){return{value:e.Code,label:e.Name}}))}catch(b){}return Object(kb.jsx)(NE,{name:r,customClass:t,"data-test":r,label:o,validate:[fO],options:d},r)}return"UseLowFees"===r?Object(kb.jsx)(kb.Fragment,{}):"ExternalAddress"===r?Object(kb.jsx)(Wm,{productSymbol:a||c,name:r,"data-test":r,customClass:t,placeholder:o,validate:[fO]},r):e[r]&&"TemplateType"!==r?Object(kb.jsx)(Mj,{"data-test":r,label:"".concat(o,":"),text:e[r],customClass:t,classModifiers:"template-info"},r):("DestinationTagNumber"===r&&(s=Object(kb.jsx)(Tj.f,{children:n.t("Please note that a destination tag may be required if you are withdrawing to an exchange or online wallet.")})),"amount"===r.toLowerCase()?Object(kb.jsx)(qm,{type:"text",name:"Amount",labelInInput:a||c,label:n.t("Amount of {productSymbol}",{productSymbol:a||c}),decimalPlaces:i,customClass:t,validate:[fO,vO]},r):Object(kb.jsx)(Wm,{name:r,"data-test":o,customClass:t,placeholder:o,type:u,info:s,validate:l},r))}))}),oM=(n(1216),Db("custom-deposit")),lM=function(e,t){var n=e.product,a=e.template,c=e.depositFee,i={};try{i=JSON.parse(a)}catch(f){}var o=Object(r.useMemo)((function(){return eM()}),[]),l=Object(r.useState)(0),u=Object(J.a)(l,2),d=u[0],b=u[1],p=Object(Ni.get)(Fe.a,"Deposit.".concat(n.Product,".maxDeposit")),j=Object(s.e)();Object(r.useEffect)((function(){e.changeFieldValue("comments",o)}),[o]);var m;return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(xT,{margin:"0 0 20px 0",headline:"Bank Details",setCollapsed:!1,children:[Object(kb.jsx)(Tj.d,{margin:"0 0 20px 0",children:t.t("Deposit funds to the bank account below. Ensure you include the reference code in your transaction description.")}),Object(kb.jsx)(Tj.d,{margin:"0 0 20px 0",children:t.t("Note: Please allow up to 3 days (including weekends and public holidays) for your deposits to be reflected in your account.")}),Object.keys(i).map((function(e){return Object(kb.jsxs)(bM,{children:[Object(kb.jsx)(Tj.f,{children:t.t(cM(e))}),Object(kb.jsx)(Tj.d,{children:i[e]})]},e)})),Object(kb.jsx)(bM,{children:Object(kb.jsxs)(dM,{children:[Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.f,{children:t.t("Reference code")}),Object(kb.jsx)(Tj.d,{children:o})]}),Object(kb.jsx)(Pm,{variant:"outlined",size:"small",onClick:function(){return function(e){tC(e),j(sr({id:"copyDepositAddress",text:t.t("Reference code has been copied to the clipboard.")}))}(o)},fullWidth:!1,children:t.t("Copy")})]})})]}),Object(kb.jsx)(sf,{margin:"20px 0 50px 0",children:Object(kb.jsxs)("div",{className:oM("input-container"),children:[Object(kb.jsx)(Wm,{type:"text",name:"fullname",placeholder:t.t("Full Name"),customClass:oM(),validate:[fO]}),Object(kb.jsx)(qm,{type:"text",name:"amount",placeholder:t.t("Amount"),decimalPlaces:n.DecimalPlaces,customClass:oM(),validate:c.FeeAmt?[fO,vO,(m=c.FeeAmt,function(e){return e>m?void 0:Ae.c.t("Must be more than fee")})]:[fO,vO],customChange:function(e){b(e>c.FeeAmt?e-c.FeeAmt:0)}}),c.FeeAmt&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(dM,{children:[Object(kb.jsx)(Tj.d,{children:t.t("Fee")}),Object(kb.jsxs)(Tj.d,{children:[vt(n.Product),c.FeeAmt]})]}),Object(kb.jsxs)(dM,{children:[Object(kb.jsx)(Tj.d,{children:t.t("Total amount deposited")}),Object(kb.jsxs)(Tj.d,{children:[vt(n.Product),gt(n.Product,d)]})]}),Object(kb.jsxs)("div",{children:[c.FeeAmt&&Object(kb.jsx)(Tj.f,{children:t.t("{fee} fee is to cover the SWIFT transaction cost",{fee:"".concat(vt(n.Product)).concat(c.FeeAmt)})}),Object(kb.jsx)(Tj.f,{children:t.t("Max. {amount} per day",{amount:"".concat(vt(n.Product)).concat(gt(n.Product,p))})})]})]}),Object(kb.jsx)(Pm,{customClass:oM(),type:"submit","data-test":"Place Deposit Ticket",disabled:e.submitting,showLoading:e.submitting,fullWidth:!0,onClick:e.onSubmit,children:t.t("Place Deposit Ticket ")})]})})]})};lM.defaultProps={onSubmit:function(){},submitting:!1},lM.contextTypes={t:O.a.func.isRequired};var uM=lM,dM=Object(Tb.a)("div",{target:"eg3u4ed0"})("display:flex;justify-content:space-between;border-bottom:1px solid ",Po.a.underline,";margin:",(function(e){return e.margin?e.margin:"0"}),";"),bM=Object(Tb.a)(sf,{target:"eg3u4ed1"})("padding-top:10px;padding-bottom:10px;margin-bottom:15px;background:",Po.a.bg_tertiary,";&:last-of-type{margin-bottom:0px;}"),pM=Object(s.c)((function(e,t){var n=t.onSubmit,r=t.submitting,a=t.template;return{product:TI(e),onSubmit:n,submitting:r,template:a,depositFee:EI(e)}}))(uM),jM=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.templateInfo,n=t.DepositWorkflow,r=t.Template,a=e.submitting,c=e.isLoading,i=e.onSubmit,s=e.changeFieldValue,o=null;if(c)return null;switch(n){case"CryptoWallet":o=Object(kb.jsx)(QN,{});break;case"ManualDeposit":o=Object(kb.jsx)(aM,{changeFieldValue:s,submitting:a,onSubmit:i});break;case"GenericPayment":o=Object(kb.jsx)(WN,{});break;case"Custom":o=Object(kb.jsx)(pM,{changeFieldValue:s,submitting:a,onSubmit:i,template:r})}return o}}]),n}(a.a.Component);jM.defaultProps={templateInfo:{},onSubmit:function(){},submitting:!1};var mM=jM,fM=Object(s.c)((function(e,t){var n=t.submitting,r=t.onSubmit;return{templateInfo:e.deposit.templateInfo,submitting:n,isLoading:e.deposit.isLoading,onSubmit:r}}))(mM),hM=(n(1217),Db("deposit-form")),OM=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this.props;(0,e.selectDepositProduct)(e.product.ProductId)}},{key:"shouldComponentUpdate",value:function(){return"USD"!==this.props.product.Product&&"IDR"!==this.props.product.Product}},{key:"render",value:function(){var e=this.props,t=e.handleSubmit,n=e.submitting,r=e.deposit,c=e.product,i=e.changeFieldValue,s=e.isDasc,o="IDR"===c.ProductSymbol,l="THB"===c.ProductSymbol,u="SGD"===c.ProductSymbol,d="USD"===c.ProductSymbol,b="ZMT"===c.ProductSymbol,p=!o&&!l&&!u&&!b&&!d,j="Polipayment"===r.templateType;if(r.depositInfo.length&&s){var m=r.depositInfo[0].split("?dt=");r.template={exchangeAddress:m[0],memo:m[1]},setTimeout((function(){i("exchangeAddress",r.template.exchangeAddress),i("memo",r.template.memo)}))}return Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)("div",{className:hM("body"),children:[o&&Object(kb.jsx)(OR,{}),l&&Object(kb.jsx)(zR,{}),u&&Object(kb.jsx)(oN,{}),d&&Object(kb.jsx)(gN,{}),b&&Object(kb.jsx)(vN,{}),p&&(r.isLoading?Object(kb.jsx)(Vf,{customClass:"deposit-form"}):Object(kb.jsxs)(a.a.Fragment,{children:["AccountProvider 0 not found."===r.error&&mf.includes(c.ProductSymbol)&&Object(kb.jsx)(sf,{children:Object(kb.jsx)(Tj.d,{children:this.context.t("You can only buy and sell {productSymbol} on Zipmex. Deposit and withdrawal for {productSymbol} is currently not supported.",{productSymbol:c.ProductSymbol})})}),Object(kb.jsx)(fM,{changeFieldValue:i,submitting:n,onSubmit:t}),!r.depositInfo.length&&j&&Object(kb.jsx)("form",{onSubmit:t,children:Object(kb.jsx)(HE,{submitting:n,baseClasses:hM})})]}))]})})}}]),n}(a.a.Component);OM.defaultProps={deposit:{templateInfo:{},template:{},isLoading:!1,error:"",depositInfo:{},depositStatus:{}}},OM.contextTypes={t:O.a.func.isRequired};var xM=OM,gM="createDeposit",vM=Object(s.c)((function(e,t){t.product;return{products:Xt(e),deposit:e.deposit}}),(function(e){return{selectDepositProduct:function(t){return e((n=t,function(){var e=Object(V.a)(q.a.mark((function e(t,r){var a,c,i;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!isNaN(n)){e.next=2;break}return e.abrupt("return",t({type:ja}));case 2:if("CryptoCurrency"!==r().product.products.find((function(e){return e.ProductId===n})).ProductType){e.next=5;break}return e.abrupt("return",t(ha(n)));case 5:return t(ya(n)),t(ga(n)),a={ProductId:n,OMSId:r().user.userInfo.OMSId,AccountId:r().user.selectedAccountId},e.prev=8,e.next=11,Ce.connection.RPCPromise("GetDepositTemplateTypes",a);case 11:if(c=e.sent,!(i=JSON.parse(c.o)).result){e.next=19;break}if(!i.TemplateTypes||i.TemplateTypes.length){e.next=16;break}return e.abrupt("return",t(Ia(Ae.c.extractT("There are no providers configured for this product"))));case 16:return t(Sa(i.TemplateTypes)),i.TemplateTypes&&i.TemplateTypes.length&&t(ha(n,i.TemplateTypes[i.TemplateTypes.length-1].TemplateName)),e.abrupt("return",!0);case 19:return e.abrupt("return",t(Ia(i.errormsg)));case 22:e.prev=22,e.t0=e.catch(8),t(ha(n));case 25:case"end":return e.stop()}}),e,null,[[8,22]])})));return function(t,n){return e.apply(this,arguments)}}()));var n},selectDepositTemplate:function(t,n){return e(ha(t,n))},changeFieldValue:function(t,n){return e(Object(kn.a)(gM,t,n))}}}))(xM),yM=Object(Pb.a)({form:gM,onSubmit:function(e,t,n){var r=n.product,a=r.ProductId,c=r.Product;t(function(e){var t=e.ProductId,n=e.amount,r=(e.TemplateType,Object(Hr.a)(e,["ProductId","amount","TemplateType"]));return function(){var e=Object(V.a)(q.a.mark((function e(a,c){var i,s,o,l,u,d;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=c().user.userInfo.OMSId,s=c().user.selectedAccountId,o=c().deposit.templateInfo.UseGetDepositWorkflow,l=JSON.stringify(r),u={OMSId:i,OperatorId:1,AccountId:s,RequestUser:s,AssetId:+t,Amount:+n,DepositInfo:l,Status:"New"},a(Ta),!o){e.next=8;break}return e.abrupt("return",a(Oa(t,l)));case 8:return e.next=10,Ce.connection.CreateDepositTicket(u);case 10:if(!1!==(d=e.sent).result){e.next=13;break}return e.abrupt("return",a(sr({id:"depositRejectSnack",text:Xr(d),type:"warning"})));case 13:return a(ta(!0)),a(xa()),Fe.a.Deposit.showDepositIdModal||a(sr({id:"depositSuccessSnack",text:Ae.c.extractT("Your deposit has been successfully added"),type:"success"})),e.abrupt("return",a(Ra(d)));case 17:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}(Object(Y.a)(Object(Y.a)({},e),{},{ProductId:a}))),Fe.a.Deposit.showDepositIdModal&&t(Pn(Bn,{ProductSymbol:c}))}})(vM);var CM=new URLSearchParams(window.location.search).get("contentOnly"),wM=function(e){var t=Object(_j.a)().t,n=Object(s.f)((function(e){return e.product.products})).map((function(e){return{label:e.Product,labelSmall:e.ProductFullName,value:e.ProductId,icon:Object(kb.jsx)(cm,{iconFileName:Lt(e.Product),size:30})}})),a=Object(r.useState)(n),c=Object(J.a)(a,2),i=c[0],o=c[1];return Object(kb.jsxs)(SM,{children:[Object(kb.jsx)(Tj.d,{margin:"16px 0 1px 0",children:t("Select a currency to deposit")}),Object(kb.jsxs)(sf,{margin:"20px 0 0 0",children:[n.length>0&&Object(kb.jsx)(AM,{children:Object(kb.jsx)(Wg,{label:t("Search"),onChange:function(e){var t=e.target.value.toLowerCase(),r=n.filter((function(e){return e.label.toLowerCase().includes(t)||e.labelSmall.toLowerCase().includes(t)}));o(r)},fullWidth:!0})}),i.map((function(e,t){return Object(kb.jsxs)(IM,{to:"".concat(CM?"":"/wallets","/deposit/").concat(e.value).concat(CM?"?contentOnly=true":""),children:[Object(kb.jsx)(kM,{children:Object(kb.jsx)(cm,{iconFileName:Lt(e.label),size:40})}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.d,{children:e.labelSmall}),Object(kb.jsx)(Tj.d,{color:Po.a.text_grey,children:e.label})]})]},t)}))]})]})},SM=Object(Tb.a)("div",{target:"e1i2qjjv0"})({name:"114ooz9",styles:"width:100%;margin:0 auto;padding-bottom:40px;"}),kM=Object(Tb.a)("div",{target:"e1i2qjjv1"})({name:"1vf44j6",styles:"display:block;padding:0 16px 0 0;"}),IM=Object(Tb.a)(Zj.a,{target:"e1i2qjjv2"})("display:flex;align-items:center;height:50px;padding:35px 5px;border-radius:5px;&:hover{background:",Po.a.bg_tertiary,";}"),AM=Object(Tb.a)("div",{target:"e1i2qjjv3"})({name:"5tmknp",styles:"margin:0 0 15px 0;"});var PM=Ab((function(){var e=Object(_j.a)().t,t=Object(s.e)(),n=Object(l.g)(),r=Object(l.h)("/deposit/:productId"),a=Object(l.h)("/wallets/deposit/:productId"),c=parseInt((null===r||void 0===r?void 0:r.params.productId)||(null===a||void 0===a?void 0:a.params.productId)),i=new URLSearchParams(window.location.search).get("contentOnly"),o=Object(s.f)((function(e){return $t(e,c)}),s.d);Object(s.f)((function(e){var t;return null===(t=e.depositSlice)||void 0===t?void 0:t.isDepositComplete}))&&!i&&(n.push("/wallets"),t(ta(!1)));var u=Object(s.f)((function(e){var t;return null===(t=e.position)||void 0===t?void 0:t.fetching})),d=Object(s.f)(Rt).disableDeposit,b=!pf.includes(null===o||void 0===o?void 0:o.ProductSymbol)&&!d;return Object(kb.jsx)(kb.Fragment,{children:u?Object(kb.jsx)(kb.Fragment,{children:!i&&Object(kb.jsx)(Vf,{})}):Object(kb.jsx)(kb.Fragment,{children:o?Object(kb.jsxs)("div",{children:[Object(kb.jsx)(TM,{children:Object(kb.jsxs)(sf,{children:[Object(kb.jsxs)(Tj.b,{as:"h3",children:[o.Product,Object(kb.jsxs)(Tj.c,{color:Po.a.text_body_small,fontSize:Tj.h.small,children:[" - ",o.ProductFullName]})]}),Object(kb.jsxs)(Tj.d,{children:[Object(kb.jsx)(Tj.c,{color:Po.a.text_grey,children:o.AvailableBalance>0?e("Available balance")+": ":""})," ",o.AvailableBalance<=0?"You have no available balance to withdraw":o.AvailableBalance]}),Object(kb.jsx)(EM,{iconFileName:Lt(o.Product),size:32})]})}),b?Object(kb.jsx)("div",{children:o&&"THB"===o.ProductSymbol?Object(kb.jsx)(WE,{children:Object(kb.jsx)(yM,{product:o})}):Object(kb.jsx)(yM,{product:o})},o.ProductId):Object(kb.jsx)(Tj.d,{children:e("Deposit disabled for this product.")})]}):Object(kb.jsx)(wM,{})})})})),TM=Object(Tb.a)("div",{target:"elxmodd0"})({name:"16b2ug3",styles:"margin:15px 0;"}),EM=Object(Tb.a)(cm,{target:"elxmodd1"})({name:"161uf75",styles:"position:absolute;right:12px;top:13px;"});var RM=Ab((function(e){var t=Object(s.f)((function(e){return e.position.fetching}));return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsx)(NM,{children:!t&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(l.b,{exact:!0,path:"/deposit/:productId",render:function(){return Object(kb.jsx)(Pg,{to:"/deposit"+window.location.search})}}),Object(kb.jsx)(PM,{})]})})})})),NM=Object(Tb.a)(tO.a,{target:"elt81az0"})({name:"6gpkta",styles:"min-height:100%;"}),MM=n(1218),DM=n.n(MM),LM=n(1224),FM=n.n(LM),UM=function(e){var t=e.input,n=e.customClass,r=e.meta,a=e.inline,c=e.label,i=e.info,s=e.id,o=Object(Hr.a)(e,["input","customClass","meta","inline","label","info","id"]),l=Db(["ap-radio",n]);return delete o.meta,Object(kb.jsxs)("div",{className:l(null,{inline:a}),children:[Object(kb.jsx)("input",Object(Y.a)(Object(Y.a)(Object(Y.a)({className:l("input"),type:"radio"},t),o),{},{id:s})),Object(kb.jsxs)("label",{className:l("label"),htmlFor:s,children:[c,Object(kb.jsx)("span",{className:l("check")}),Object(kb.jsx)("span",{className:l("checked")})]}),i&&Object(kb.jsx)("small",{className:"form-text-muted ".concat(l("radio-info")),children:i}),r.dirty&&r.error&&Object(kb.jsx)("span",{className:l("radio-error"),children:r.error})]})},BM=function(e){return Object(kb.jsx)($j.a,Object(Y.a)({name:e.name,component:UM,type:"radio"},e))};BM.defaultProps={name:"",label:"",autoFocus:!1,required:!1,readOnly:!1,inline:!1,info:""};var zM=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).maxSize=function(t){var n=e.props.maxSize;if(n)return wO(t,n)},e.getValidators=function(){var t=e.props.validate;return t?[].concat(Object(Q.a)(t),[e.maxSize]):[e.maxSize]},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props,t=e.customClass,n=Object(Hr.a)(e,["customClass"]),r=Db("ap-image-upload",t);return Object(kb.jsx)(IE,Object(Y.a)(Object(Y.a)({},n),{},{customClass:r(),acceptedFiles:".pdf, .doc, .docx",validate:this.getValidators()}))}}]),n}(a.a.Component);zM.defaultProps={name:"",customClass:"",placeholder:"",label:"",value:""},zM.contextTypes={t:O.a.func.isRequired},zM.defaultProps={name:"",label:"",classModifiers:"",placeholder:"",info:"",autoFocus:"",disabled:!1,required:!1,maxSize:null};n(1234);var GM=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).setIsAM=function(e){r.setState({isAM:e.getHours()<12})},r.handleChange=function(e){r.props.input.onChange(e),r.props.customChange&&r.props.customChange(e),r.setIsAM(e),r.setState({date:new Date(e)})},r.getClasses=function(){var e=r.props.customClasses;return Db(["ap-timepicker-dropdown","ap-select",e])},r.getHours=function(){var e=r.props,t=e.isAMPM,n=e.leadingZero;return HM(t?1:0,t?13:24,n?2:0)},r.onHoursChange=function(e){var t=e.target.value,n=r.state,a=n.date,c=n.isAM,i=r.props.isAMPM,s=+t;s=12===s?c?0:12:i&&!c?+t+12:+t,a.setHours(s),r.handleChange(a)},r.onMinutesChange=function(e){var t=e.target.value,n=r.state.date;n.setMinutes(t),r.handleChange(n)},r.getCurrentValue=function(){var e=r.state,t=e.date,n=e.isAM,a=r.props.isAMPM,c=t.getHours();return a&&(c=n?0===c?12:c:12===c?c:c-12),{hours:c,minutes:t.getMinutes()}},r.onAmPmChange=function(e){var t=e.target.value,n=r.state.date,a=n.getHours();a="AM"===t?a-12:a+12,n.setHours(a),r.handleChange(n)},r.state={date:new Date(0,0,0,0,0,0),isAM:!0},r}return Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.input.value;if(e){var t=new Date(e);this.setState({date:t}),this.setIsAM(t)}}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.meta,r=e.info,a=(e.customClass,e.leadingZero),c=e.isAMPM,i=Object(Hr.a)(e,["label","meta","info","customClass","leadingZero","isAMPM"]),s=this.state.isAM,o=this.getClasses(),l=this.getCurrentValue();return Object(kb.jsxs)("div",{className:"form-group ".concat(o("select-wrapper")),children:[Object(kb.jsx)("label",{className:"ap--label ".concat(o("label")),children:t}),Object(kb.jsxs)("div",{className:o("input"),children:[Object(kb.jsx)("select",Object(Y.a)(Object(Y.a)({value:l.hours,className:o("select"),onChange:this.onHoursChange},i),{},{children:this.getHours()})),Object(kb.jsx)("select",Object(Y.a)(Object(Y.a)({value:l.minutes,className:o("select"),onChange:this.onMinutesChange},i),{},{children:HM(0,60,a?2:0)})),c&&Object(kb.jsxs)("select",Object(Y.a)(Object(Y.a)({value:s?"AM":"PM",className:o("select"),onChange:this.onAmPmChange},i),{},{children:[Object(kb.jsx)("option",{children:"PM"}),Object(kb.jsx)("option",{children:"AM"})]}))]}),Object(kb.jsx)("div",{className:"form-text-muted ".concat(o("info")),children:r}),n.dirty&&n.error&&Object(kb.jsx)("div",{className:o("error","dpk-error"),children:n.error})]})}}]),n}(a.a.Component);GM.contextTypes={t:O.a.func},GM.defaultProps={label:"Time",info:"",disabled:!1,leadingZero:!0};var WM=n(650),ZM=n.n(WM),qM=(n(1235),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).handleChange=function(e){r.props.input.onChange(e),r.props.customChange&&r.props.customChange(e),r.setState({date:new Date(e)})},r.getClasses=function(){var e=r.props.customClass;return Db(["ap-datepicker-dropdown","ap-select",e])},r.getDays=function(){var e=r.state.date,t=r.props.leadingZero,n=r.getDaysInMonth(e);return HM(1,n+1,t?2:0)},r.getMonths=function(){return[{value:0,text:r.context.t("January")},{value:1,text:r.context.t("February")},{value:2,text:r.context.t("March")},{value:3,text:r.context.t("April")},{value:4,text:r.context.t("May")},{value:5,text:r.context.t("June")},{value:6,text:r.context.t("July")},{value:7,text:r.context.t("August")},{value:8,text:r.context.t("September")},{value:9,text:r.context.t("October")},{value:10,text:r.context.t("November")},{value:11,text:r.context.t("December")}].map((function(e){return Object(kb.jsx)("option",{value:e.value,children:e.text},e.value)}))},r.getYears=function(){var e=r.props,t=e.minYear,n=e.maxYear,a=e.leadingZero,c=e.yearOffset,i=new Date;return t=t||1900,n=n||i.getFullYear(),HM(t,n+1,a?2:0,c).reverse()},r.onDayChange=function(e){var t=e.target.value,n=r.state.date;n.setDate(+t),r.handleChange(n)},r.onMonthChange=function(e){var t=e.target.value,n=r.state.date,a=n.getDate();n.setDate(1),n.setMonth(t);var c=r.getDaysInMonth(n);a>c&&n.setDate(c),r.handleChange(n)},r.onYearChange=function(e){var t=e.target.value,n=r.state.date;n.setFullYear(t),r.handleChange(n)},r.getCurrentValue=function(){var e=r.state.date;return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}},r.state={date:ZM()(new Date,e.maxYear)},r}return Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.input.value;if(e){var t=new Date(e);this.setState({date:t})}}},{key:"getDaysInMonth",value:function(e){return new Date(e.getYear(),e.getMonth()+1,0).getDate()}},{key:"render",value:function(){var e=this.props,t=e.label,n=e.meta,r=e.info,a=(e.customClass,e.leadingZero,e.minYear,e.maxYear,e.minDate,e.maxDate,e.yearOffset,Object(Hr.a)(e,["label","meta","info","customClass","leadingZero","minYear","maxYear","minDate","maxDate","yearOffset"])),c=this.getClasses(),i=this.getCurrentValue();return Object(kb.jsxs)("div",{className:"form-group ".concat(c("select-wrapper")),children:[Object(kb.jsx)("label",{className:"ap--label ".concat(c("label")),children:t}),Object(kb.jsxs)("div",{className:c("input"),children:[Object(kb.jsx)("select",Object(Y.a)(Object(Y.a)({value:i.day,className:c("select"),onChange:this.onDayChange},a),{},{children:this.getDays()})),Object(kb.jsx)("select",Object(Y.a)(Object(Y.a)({value:i.month,className:c("select"),onChange:this.onMonthChange},a),{},{children:this.getMonths()})),Object(kb.jsx)("select",Object(Y.a)(Object(Y.a)({value:i.year,className:c("select"),onChange:this.onYearChange},a),{},{children:this.getYears()}))]}),Object(kb.jsx)("div",{className:"form-text-muted ".concat(c("info")),children:r}),n.dirty&&n.error&&Object(kb.jsx)("div",{className:c("error","dpk-error"),children:n.error})]})}}]),n}(a.a.Component));qM.contextTypes={t:O.a.func},qM.defaultProps={label:"Date",customClass:"custom-datepicker",info:"",disabled:!1,leadingZero:!0,yearOffset:0};var VM={required:fO,email:function(e){return e&&!hO.test(e)?Ae.c.t("Invalid email address"):void 0},alphanumeric:function(e){return e&&!/^[a-z0-9]+$/g.test(e)?Ae.c.t("Input should only contain lower case alphanumeric characters"):void 0},isDate:function(e){var t="[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime());return e&&t?Ae.c.t("Invalid date"):void 0},maxLength:yO,isValidPhone:function(e){return Object(pO.isValidNumber)(e,jO)?void 0:Ae.c.t("Must be a valid phone number")},numeric:OO},_M=function(e){if(e.validators)return(e.validators&&e.validators.map((function(e){var t=e.split(":"),n=Object(J.a)(t,2),r=n[0],a=n[1];if(a){var c=a.split(",");return VM[r].apply(VM,Object(Q.a)(c))}return VM[r]}))).filter((function(e){return e}))},HM=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=[],c=e;c<t;c++)a.push(Object(kb.jsx)("option",{value:c,children:FM()(c+r,n,"0")},c));return a},YM=a.a.memo((function(e){var t=e.fields,n=e.baseClasses;return Object(kb.jsx)(a.a.Fragment,{children:t.map((function(e){var t=e.label,r=e.type,c=e.options,i=e.validators,s=i?_M({validators:i}):[];return Object(kb.jsxs)(a.a.Fragment,{children:["bankSelect"===r&&Object(kb.jsx)($j.a,{name:Object(Ni.camelCase)(t),component:function(e){var r=e.input,a=e.meta;return Object(kb.jsxs)("div",{className:n("search-box"),children:[Object(kb.jsx)(DM.a,Object(Y.a)(Object(Y.a)({},r),{},{onChange:function(e){var t=e.value;return r.onChange(t)},options:c,placeholder:t})),a.touched&&a.error&&Object(kb.jsx)("div",{className:n("error"),children:a.error})]})},validate:s}),!r&&Object(kb.jsx)(Wm,{name:Object(Ni.camelCase)(t),"data-test":t,customClass:n(),placeholder:t,type:"text",validate:s})]},Object(Ni.camelCase)(t))}))})})),KM=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).getAmountValidatorsMemo=Ut()(e.getAmountValidators),e}return Object(d.a)(n,[{key:"renderFromTemplate",value:function(e){var t=this.props,n=t.product,r=t.baseClasses;return Object(kb.jsx)(a.a.Fragment,{children:sM(e,r(""),this.context,n)})}},{key:"renderAdditionalInfo",value:function(e){var t=this;return Array.isArray(e)?Object(kb.jsx)(a.a.Fragment,{children:e.map((function(e,n){return Object(kb.jsx)("div",{children:t.context.t(e)},"additional-info-".concat(n))}))}):Object(kb.jsx)("div",{children:e})}},{key:"getAmountValidators",value:function(e,t,n){var r=[fO],a="-"===e?0:F(e);return t?r.push(xO(t)):r.push(vO),n&&a>n?r.push((function(e){return function(e,t){return void 0!==t&&t>e?Ae.c.t("Must be less than {a}",{a:e}):void 0}(n,e)})):r.push(function(e){return function(t){return void 0!==t&&t>e?Ae.c.t("Must be less than or equal to your balance"):void 0}}(a)),r}},{key:"render",value:function(){var e,t,n,r,c,i,s,o=this.props,l=o.product,u=o.product,d=u.Product,b=u.ProductId,p=u.DecimalPlaces,j=o.withdrawWorkflowInfo,m=o.submitting,f=o.invalid,h=o.baseClasses,O=o.children,x=o.errorMessage,g=o.disableWithdraw,v=o.VerificationRequiredComponent,y=o.onAmountChange,C=o.withdrawFee,w=o.feeAmount,S=o.feeProduct,k=o.change,I=o.amount,A=j&&Object.values(j).length,P=Fe.a.Withdraw.Templates[l.ProductSymbol],T=P&&P.additionalInfo||Object(kb.jsx)(Tj.f,{children:this.context.t("Please allow for up to 24 hours of processing of withdrawal")});try{e=P.fields,t=P.minWithdraw,n=P.maxWithdraw,r=P.maxWithdrawPerDay,n&&(i=L(n,l.ProductSymbol)),t&&(c=L(t,l.ProductSymbol)),r&&(s=L(r,l.ProductSymbol))}catch(M){}var E=Object(Y.a)({},this.props.template);"ExternalAddress"in E&&(E=Object(Y.a)({ExternalAddress:d},this.props.template));var R=this.context.t("Withdrawal fee");"THB"!==l.ProductSymbol&&(R+=" ( ".concat(w.FeeAmt||" ").concat("Percentage"===w.FeeCalcType?"%":" "+l.ProductSymbol," )"));var N=I-C;return(Object.keys(E).length||e)&&b?Object(kb.jsxs)(kb.Fragment,{children:[bf.includes(l.ProductSymbol)&&Object(kb.jsx)(SA,{color:Po.a.bg_warning,margin:"0 0 15px 0 ",children:Object(kb.jsx)(Tj.d,{children:this.context.t("CAUTION: Zipmex supports {product} on the ETH blockchain (ERC20) only. If you send this to another blockchain - e.g. BSC, this will not work, and we will not be able to recover the funds.",{product:l.ProductSymbol})})},l.ProductId),Object(kb.jsxs)(sf,{children:[x&&Object(kb.jsx)("div",{className:h("error-message"),children:x}),"CryptoCurrency"===l.ProductType&&Object(kb.jsxs)("div",{className:h("crypto-summary"),children:[Object(kb.jsxs)("div",{className:h("crypto-summary-info"),children:[Object(kb.jsx)(Tj.d,{children:this.context.t("Total")}),Object(kb.jsxs)(Tj.d,{children:[l.Amount," ","-"!==l.Amount&&l.ProductSymbol]})]}),Object(kb.jsxs)("div",{className:h("crypto-summary-info"),children:[Object(kb.jsx)(Tj.d,{children:this.context.t("Available balance")}),Object(kb.jsxs)(Tj.d,{children:[l.AvailableBalance," ","-"!==l.AvailableBalance&&l.ProductSymbol]})]}),Object(kb.jsxs)("div",{className:h("crypto-summary-info"),children:[Object(kb.jsx)(Tj.d,{children:this.context.t("Frozen")}),Object(kb.jsxs)(Tj.d,{children:[l.Hold," ","-"!==l.Hold&&l.ProductSymbol]})]}),S&&Object(kb.jsxs)("div",{className:h("crypto-summary-info"),children:[Object(kb.jsx)(Tj.d,{children:this.context.t("Withdrawal fee")}),Object(kb.jsx)(Tj.d,{children:"".concat(w.FeeAmt).concat("Percentage"===w.FeeCalcType?"%":" "+S.ProductSymbol)})]})]}),Object(kb.jsx)("div",{children:Object(kb.jsxs)("div",{className:Gb()(h("withdraw-form"),"CryptoCurrency"===l.ProductType&&h("withdraw-form-crypto")),children:[(e||!E.hasOwnProperty("Amount"))&&Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsxs)(JM,{children:[Object(kb.jsx)(qm,{name:"Amount","data-test":"Amount",placeholder:this.context.t("Withdraw amount"),customClass:h(),decimalPlaces:p,customChange:function(e){return y(e)},validate:this.getAmountValidatorsMemo(l.AvailableBalance,t,n),defaultValue:"",usePlaceholder:!0},"Amount"),"NationalCurrency"===l.ProductType&&Object(kb.jsx)(Tj.d,{margin:"0 0 0 10px",children:Object(kb.jsx)(Pm,{size:"small",variant:"outlined",onClick:function(e){e.preventDefault(),k("createWithdraw","Amount",F(l.AvailableBalance)),y(F(l.AvailableBalance))},children:this.context.t("100%")})})]})}),"NationalCurrency"===l.ProductType&&Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsxs)("div",{children:[c&&Object(kb.jsxs)(JM,{children:[Object(kb.jsx)(Tj.f,{margin:"15px 0 5px 0",children:this.context.t("Minimum withdrawal")}),Object(kb.jsx)(Tj.f,{margin:"15px 0 5px 0",children:Object(kb.jsxs)(Tj.c,{color:Po.a.text_body,children:[c," ",l.ProductSymbol]})})]}),i&&Object(kb.jsxs)(JM,{children:[Object(kb.jsx)(Tj.f,{margin:"0 0 5px 0",children:this.context.t("Withdrawal limit")}),Object(kb.jsx)(Tj.f,{margin:"0 0 5px 0",children:Object(kb.jsxs)(Tj.c,{color:Po.a.text_body,children:[i," ",l.ProductSymbol]})})]}),s&&Object(kb.jsxs)(JM,{children:[Object(kb.jsx)(Tj.f,{margin:"0 0 5px 0",children:this.context.t("Daily withdrawal limit")}),Object(kb.jsx)(Tj.f,{margin:"0 0 5px 0",children:Object(kb.jsxs)(Tj.c,{color:Po.a.text_body,children:[s," ",l.ProductSymbol]})})]})]}),Object(kb.jsxs)("div",{children:[Object(kb.jsxs)("div",{className:h("crypto-summary-info"),children:[Object(kb.jsx)(Tj.d,{children:R}),Object(kb.jsxs)(Tj.d,{children:[l.ProductSymbol," ",gt(l.ProductSymbol,C)]})]}),Object(kb.jsxs)("div",{className:h("crypto-summary-info"),children:[Object(kb.jsx)(Tj.d,{margin:"0 0 10px 0",children:this.context.t("Your receiving amount")}),Object(kb.jsxs)(Tj.d,{children:[l.ProductSymbol," ",gt(l.ProductSymbol,Math.max(0,N))]})]})]}),Object(kb.jsx)(Tj.f,{margin:"0 0 15px 0",children:this.renderAdditionalInfo(T)})]}),"THB"===l.ProductSymbol?Object(kb.jsx)(DR,{}):e?Object(kb.jsx)(YM,{fields:e,baseClasses:h}):this.renderFromTemplate(E),"SGD"===l.ProductSymbol&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Wm,{name:"BankAccountId",label:"BankAccoutId",type:"hidden"}),Object(kb.jsx)(Wm,{name:"WithdrawFormType",label:"WithdrawFormType",type:"hidden"})]}),Object(kb.jsxs)("div",{className:h("info"),children:["CryptoCurrency"===l.ProductType&&Object(kb.jsx)("div",{className:h("inner"),children:Object(kb.jsx)(Tj.f,{margin:"0 0 15px 0",children:this.context.t("The processing fee is calculated according to the amount of the coin and the handling rate of the platform. Some of the currencies are deducted according to the fixed rate fees and charges, please check the published fee table.")})}),"NationalCurrency"===l.ProductType&&Object(kb.jsx)(Tj.f,{margin:"0 0 25px 0",children:this.context.t("You will receive an email to confirm your withdrawal request")})]}),!A&&Object(kb.jsxs)(a.a.Fragment,{children:[O,Object(kb.jsxs)("div",{className:h("submit-button-wrapper"),children:[Object(kb.jsx)(Pm,{type:"submit",disabled:m||f||g,showLoading:m,fullWidth:!0,children:this.context.t("Withdraw ")+l.ProductSymbol}),Object(kb.jsx)("div",{className:h("verification-required-text"),children:v})]})]})]})})]})]}):Object(kb.jsx)("div",{})}}]),n}(a.a.Component);KM.defaultProps={template:{},product:{},submitting:!1,baseClasses:function(){},onAmountChange:function(){},VerificationRequiredComponent:null},KM.contextTypes={t:O.a.func.isRequired};var QM=KM,JM=Object(Tb.a)("div",{target:"e1bioi7t0"})("display:flex;justify-content:space-between;margin:",(function(e){return e.margin?e.margin:"0"}),";"),XM=Object(xt.a)("createWithdraw"),$M={change:kn.a},eD=Object(s.c)((function(e,t){var n,r=t.submitting,a=t.invalid,c=t.onAmountChange,i=t.baseClasses,s=t.errorMessage,o={};return e.withdraw.withdrawFees.length&&(o=e.withdraw.withdrawFees.find((function(e){return!0===e.IsActive}))||{}),o.ProductId&&(n=$t(e,o.ProductId)),{template:e.withdraw.template,withdrawWorkflowInfo:e.withdraw.withdrawWorkflowInfo,withdrawFee:e.withdraw.withdrawFee,onAmountChange:c,submitting:r,invalid:a,baseClasses:i,errorMessage:s,feeAmount:o,feeProduct:n,amount:Number(XM(e,"Amount"))||0}}),$M)(QM),tD=function(e,t,n){return t>=e?e-n:t},nD=n(1236),rD=n.n(nD);var aD=function(e){var t=e.onScanSuccess,n=Object(r.useState)(null),a=Object(J.a)(n,2),c=a[0],i=a[1],s=Object(_j.a)().t;return Object(kb.jsx)(kb.Fragment,{children:c?Object(kb.jsxs)(cD,{children:[Object(kb.jsx)(iD,{facingMode:"environment",delay:500,onError:function(e){console.error(e)},onScan:function(e){e&&(i(!1),t(e))},style:{width:"100%"}}),Object(kb.jsx)(sD,{size:"small",variant:"outlined",onClick:function(){return i(!1)},children:s("Cancel")})]}):Object(kb.jsx)(sD,{size:"small",variant:"outlined",onClick:function(){return i(!0)},children:s("Scan QR")})})},cD=Object(Tb.a)("div",{target:"e13wqh0d0"})({name:"1yldjo",styles:"position:fixed;display:flex;flex-direction:column;justify-content:center;align-items:center;left:0;top:0;z-index:5000;width:100%;height:100%;background:#000000ee;"}),iD=Object(Tb.a)(rD.a,{target:"e13wqh0d1"})({name:"1midogd",styles:"margin:10px 0;width:100%;max-width:500px;"}),sD=Object(Tb.a)(Pm,{target:"e13wqh0d2"})({name:"13o7eu2",styles:"display:block;"});var oD=function(e){var t,n,r,a,c,i,o=e.onClickSend,l=Object(_j.a)().t,u=Object(s.f)((function(e){return en(e,"ZMT")})).rawAvailableBalance,d=Object(lN.b)({mode:"onChange"}),b=d.handleSubmit,p=d.formState,j=d.formState.errors,m=d.control,f=d.setValue;return Object(kb.jsxs)(sf,{onSubmit:b((function(e){o(e)})),children:[Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0 ",children:l("Transfer ZMT to other Zipmex users")}),Object(kb.jsx)(Tj.d,{margin:"10px 0 15px 0",color:Po.a.text_warning,children:l("Caution: You can only transfer to Zipmex accounts in same country.")}),Object(kb.jsxs)("form",{children:[Object(kb.jsxs)(lD,{children:[Object(kb.jsxs)(uD,{children:[Object(kb.jsx)(lN.a,{name:"receiverEmail",control:m,rules:{required:!0,pattern:hO,maxLength:80},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:l("Recipient email address"),autoComplete:"off",shrink:p.dirtyFields.receiverEmail}))}}),Object(kb.jsx)(aD,{onScanSuccess:function(e){f("receiverEmail",e,{shouldValidate:!0,shouldDirty:!0})}})]}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(t=j.receiverEmail)||void 0===t?void 0:t.type)&&l("Email is required"),"pattern"===(null===(n=j.receiverEmail)||void 0===n?void 0:n.type)&&l("Please enter an email address")]})]}),Object(kb.jsxs)(lD,{margin:"10px 0 0",children:[Object(kb.jsx)(lN.a,{name:"amount",control:m,rules:{required:!0,max:u},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{type:"number",fullWidth:!0,label:l("Amount (ZMT)"),autoComplete:"off"}))}}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(r=j.amount)||void 0===r?void 0:r.type)&&l("Amount is required")," ","max"===(null===(a=j.amount)||void 0===a?void 0:a.type)&&l("Amount must be within your available balance")]})]}),Object(kb.jsxs)(lD,{margin:"10px 0 0",children:[Object(kb.jsx)(lN.a,{name:"notes",control:m,rules:{required:!0,maxLength:30},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{type:"text",fullWidth:!0,label:l("Description"),autoComplete:"off"}))}}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(c=j.notes)||void 0===c?void 0:c.type)&&l("Please add a description up to 30 charactors long"),"maxLength"===(null===(i=j.notes)||void 0===i?void 0:i.type)&&l("Description must be no more than 30 charactors")]})]}),Object(kb.jsx)(lD,{margin:"30px 0 0",children:Object(kb.jsx)(Pm,{type:"submit",fullWidth:!0,children:l("Next")})})]})]})},lD=Object(Tb.a)("div",{target:"e1gsbdob0"})("margin:",(function(e){return e.margin?e.margin:0}),";"),uD=Object(Tb.a)("div",{target:"e1gsbdob1"})({name:"69i1ev",styles:"display:flex;justify-content:space-between;align-items:center;"});var dD=function(e){var t=e.onClickGoBack,n=e.onClickConfirm,r=e.amount,a=e.receiverEmail,c=e.notes,i=Object(_j.a)().t;return Object(kb.jsxs)(sf,{children:[Object(kb.jsx)(Tj.d,{children:i("Please confirm your transfer details")}),Object(kb.jsxs)(bD,{margin:"20px 0 15px 0",children:[Object(kb.jsx)(Tj.d,{children:i("Amount")}),Object(kb.jsxs)(Tj.d,{children:[r," ZMT"]})]}),Object(kb.jsxs)(bD,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.d,{children:i("To")})," ",Object(kb.jsx)(Tj.d,{children:a})]}),Object(kb.jsxs)(bD,{margin:"0 0 30px 0",children:[Object(kb.jsx)(Tj.d,{children:i("Description")}),Object(kb.jsx)(Tj.d,{children:c})]}),Object(kb.jsxs)(pD,{children:[Object(kb.jsx)(Pm,{type:"button",variant:"outlined",size:"small",onClick:t,children:i("Back")}),Object(kb.jsx)(Pm,{type:"button",onClick:n,children:i("Confirm transfer")})]})]})},bD=Object(Tb.a)("div",{target:"e10o1a8a0"})("display:flex;justify-content:space-between;border-bottom:1px solid ",Po.a.underline,";margin:",(function(e){return e.margin?e.margin:"0"}),";"),pD=Object(Tb.a)("div",{target:"e10o1a8a1"})({name:"69i1ev",styles:"display:flex;justify-content:space-between;align-items:center;"}),jD=new URLSearchParams(window.location.search).get("contentOnly"),mD=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).handleClickSend=function(e){var t=e.amount,n=e.receiverEmail,a=e.notes;r.setState({page:1,amount:t,receiverEmail:n,notes:a})},r.handleClickConfirm=Object(V.a)(q.a.mark((function e(){var t,n,a,c,i,s,o,l,u,d;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.props,n=t.transferFunds,a=t.senderAccountId,c=t.showSnack,i=t.closeSendModal,s=r.state,o=s.amount,l=s.receiverEmail,u=s.notes,e.next=4,n({amount:o,receiverEmail:l,notes:u,senderAccountId:a});case 4:!0===(d=e.sent)?(c({id:"sendZMTSuccessSnack",text:r.context.t("Your request to send ZMT has been successful"),type:"success"}),r.props.history.push(jD?"/withdraw":"/wallets")):c({id:"sendZMTFailSnack",text:r.context.t("There was an error while processing your transfer: {errorMsg}",{errorMsg:d}),type:"warning"}),i();case 7:case"end":return e.stop()}}),e)}))),r.handleGoBack=function(){r.setState((function(e){return{page:e.page-1}}))},r.state={page:0,amount:0,receiverEmail:"",notes:""},r}return Object(d.a)(n,[{key:"render",value:function(){var e=this.state,t=e.page,n=e.amount,r=e.receiverEmail,a=e.notes;switch(t){case 0:return Object(kb.jsx)(oD,{onClickSend:this.handleClickSend,amount:n,receiverEmail:r,notes:a});case 1:return Object(kb.jsx)(dD,{onClickConfirm:this.handleClickConfirm,onClickGoBack:this.handleGoBack,amount:n,receiverEmail:r,notes:a});default:return null}}}]),n}(a.a.Component);mD.contextTypes={t:O.a.func};var fD=Object(l.i)(mD),hD=Object(s.c)((function(e){return{senderAccountId:e.user.selectedAccountId}}),(function(e,t){return{closeSendModal:function(){e(Tn(En))},transferFunds:function(){var e=Object(V.a)(q.a.mark((function e(n){var r,a,c,i,s;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.amount,a=n.receiverEmail,c=n.notes,i=n.senderAccountId,e.prev=1,e.next=4,Ce.connection.TransferFunds({OMSId:1,SenderAccountId:i,ProductId:t.productId,Amount:r,Notes:c,ReceiverUserName:a});case 4:if(!0!==(s=e.sent).result){e.next=7;break}return e.abrupt("return",!0);case 7:return e.abrupt("return","".concat(s.errormsg,". ").concat(s.detail));case 10:return e.prev=10,e.t0=e.catch(1),console.error("Error while performing TransferFunds",e.t0),e.abrupt("return",e.t0.message);case 14:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),showSnack:function(t){e(sr(t))}}}))(fD),OD=(n(1242),Db("withdraw-form")),xD=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).renderItems=function(){var e=r.props,t=e.products,n=e.openWithdrawModal,a=e.selectWithdrawProduct,c=e.getWithdrawFees,i=e.amountValue,s=e.getWithdrawFee;return t.map((function(e){return{label:e.ProductFullName,beforeLabelElement:Object(kb.jsx)(cm,{iconFileName:e.iconFileName,size:16}),onClick:function(){n(e),a(e.ProductId),c(e.ProductId),s(e.ProductId,i)}}}))},r.onAmountChange=function(e){var t=r.props.product;isNaN(e)||r.props.getWithdrawFee(t.ProductId,e)},r.doSubmit=function(e){var t=r.props.product,n=t.AvailableBalance,a=t.ProductId,c=t.DecimalPlaces,i=r.props,s=i.withdrawInfo,o=s.withdrawFee,l=s.template.TemplateType,u=i.submitWithdraw,d=e.Amount-o,b=F(n);if("-"!==b&&d<=b)return d=parseFloat(tD(b,d,o).toFixed(c)),u(Object(Y.a)(Object(Y.a)({},Object(Y.a)(Object(Y.a)({},e),{},{Amount:d})),{},{TemplateType:l,ProductId:a}));r.setState({errorMessage:r.context.t("You have insufficient balance")})},r.state={errorMessage:""},r}return Object(d.a)(n,[{key:"componentWillMount",value:function(){var e=this.props,t=e.product;(0,e.selectWithdrawProduct)(t.ProductId)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.product;(0,e.getWithdrawFees)(t.ProductId)}},{key:"render",value:function(){var e=this.state.errorMessage,t=this.props.product,n=this.props,r=n.handleSubmit,a=n.submitting,c=n.withdrawInfo,i=n.invalid;if(c&&c.withdrawStatus&&c.withdrawStatus.success)try{var s="CryptoCurrency"===t.ProductType?"crypto":"cash";window.dataLayer.push({event:"withdraw.success"},{event:"".concat(s,".withdraw.success")})}catch(l){console.log("Error in GTM tracking")}var o="ZMT"===t.ProductSymbol;return Object(kb.jsxs)(kb.Fragment,{children:[o?Object(kb.jsx)(hD,{productId:t.ProductId}):Object(kb.jsx)("form",{onSubmit:r(this.doSubmit),children:c.withdrawStatus.success?Object(kb.jsx)("div",{className:OD("success"),children:this.context.t("Your withdraw ticket was created successfully.")}):Object(kb.jsxs)("div",{className:OD("form-body"),children:[c.error&&Object(kb.jsx)(kb.Fragment,{children:"AccountProvider 0 not found."===c.error&&mf.includes(t.ProductSymbol)&&Object(kb.jsx)(sf,{children:Object(kb.jsx)(Tj.d,{children:this.context.t("You can only buy and sell {productSymbol} on Zipmex. Deposit and withdrawal for {productSymbol} is currently not supported.",{productSymbol:t.ProductSymbol})})})}),c.isLoading&&Object(kb.jsx)(Vf,{}),Object(kb.jsx)(eD,{product:t,submitting:a,invalid:i,baseClasses:OD,onAmountChange:this.onAmountChange,errorMessage:e})]})})," "]})}}]),n}(a.a.Component);xD.defaultProps={withdrawInfo:{templateInfo:{},template:{},isLoading:!1,error:"",TemplateForm:{},withdrawStatus:{},getWithdrawFee:function(){},getWithdrawFees:function(){}}},xD.contextTypes={t:O.a.func.isRequired};var gD=xD,vD=function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r,a;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&void 0!==n){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.next=4,pc.a.get("".concat("https://crypto-address-validator.zipmex.net","/validate/address"),{params:{currency:t,address:n}});case 4:if(r=e.sent,(a=r.data).success){e.next=8;break}return e.abrupt("return",void 0);case 8:return e.abrupt("return",a.data.valid);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),yD=n(340),CD=Object(xt.a)("createWithdraw"),wD=Object(s.c)((function(e,t){var n=Xt(e);return{disableWithdraw:Rt(e).disableWithdraw,products:n,withdrawInfo:e.withdraw,amountValue:CD(e,"Amount"),selectedProductId:CD(e,"ProductId"),hideFees:!!Fe.a.global.hideFees}}),(function(e){return{openWithdrawModal:function(t){e(Pn(En,{product:t}))},selectWithdrawProduct:function(t){return e(function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c,i;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n($a),a={ProductId:e,OMSId:r().user.userInfo.OMSId,AccountId:r().user.selectedAccountId},t.prev=2,t.next=5,Ce.connection.RPCPromise("GetWithdrawFormTemplateTypes",a);case 5:if(c=t.sent,!(i=JSON.parse(c.o)).result){t.next=13;break}if(i.TemplateTypes.length){t.next=10;break}return t.abrupt("return",n(rc(Ae.c.extractT("There are no providers configured for this product"))));case 10:return n(tc(i.TemplateTypes)),i.TemplateTypes.length&&n(Ja(e,i.TemplateTypes[i.TemplateTypes.length-1].TemplateName)),t.abrupt("return",!0);case 13:return t.abrupt("return",n(rc(i.errormsg)));case 16:return t.prev=16,t.t0=t.catch(2),t.next=20,Ce.connection.GetWithdrawTemplateTypes(a);case 20:(i=t.sent).result&&n(Ja(e,i.TemplateTypes[0])),n(rc(i.errormsg));case 23:case"end":return t.stop()}}),t,null,[[2,16]])})));return function(e,n){return t.apply(this,arguments)}}()}(t))},selectWithdrawTemplate:function(t,n){return e(Ja(t,n))},getWithdrawFee:function(t,n){return e((r=t,a=n,function(){var e=Object(V.a)(q.a.mark((function e(t,n){var c,i,s,o;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=n().user.userInfo.OMSId,i=n().user.selectedAccountId,s={OMSId:c,ProductId:r,AccountId:i,Amount:a},e.next=5,Ce.connection.GetWithdrawFee(s);case 5:if(!1!==(o=e.sent).result){e.next=8;break}return e.abrupt("return",t(sr({id:"withdrawRejectSnack",text:Xr(o),type:"warning"})));case 8:t(sc(o.FeeAmount));case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));var r,a},getWithdrawFees:function(t){return e((n=t,function(){var e=Object(V.a)(q.a.mark((function e(t,r){var a,c,i;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r().user.userInfo.OMSId,c={OMSId:a,ProductId:n},e.next=4,Ce.connection.GetOMSWithdrawFees(c);case 4:if(!1!==(i=e.sent).result){e.next=7;break}return e.abrupt("return",t(sr({id:"withdrawRejectSnack",text:Xr(i),type:"warning"})));case 7:t(oc(i));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));var n},submitWithdraw:function(t){return e(function(e){var t=e.ProductId,n=(e.amount,e.iconFileName,e.ProductSymbol,e.ProductFullName,e.TemplateType),r=Object(Hr.a)(e,["ProductId","amount","iconFileName","ProductSymbol","ProductFullName","TemplateType"]);return function(){var e=Object(V.a)(q.a.mark((function e(a,c){var i,s,o,l,u,d,b,p;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(cc),i=c().user.userInfo.OMSId,s=c().user.selectedAccountId,o=r.TemplateForm||r,l=n||c().withdraw.templateType,u=c().withdraw.templateTypes.find((function(e){return e.TemplateName===l})),Object.keys(o).forEach((function(e){return o[e]=o[e]||""})),d={OMSId:i,AccountId:s,ProductId:+t,Amount:+r.Amount,TemplateForm:JSON.stringify(o),TemplateType:l},u&&(d.AccountProviderId=u.AccountProviderId),e.next=11,Ce.connection.CreateWithdrawTicket(d);case 11:if(!1!==(b=e.sent).result){e.next=14;break}return e.abrupt("return",a(sr({id:"withdrawRejectSnack",text:Xr(b),type:"warning"})));case 14:if(e.prev=14,"object"!==typeof(p=JSON.parse(b.detail))||!p.ReplyObject||"0"===p.ReplyObject){e.next=18;break}return e.abrupt("return",a(lc(p)));case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(14);case 22:return a(Fa(!0)),a(sr({id:"withdrawSuccessSnack",text:Ae.c.extractT("Your withdraw has been successfully added"),type:"success"})),a(ic(b)),e.abrupt("return",a(uc(s,i)));case 26:case"end":return e.stop()}}),e,null,[[14,20]])})));return function(t,n){return e.apply(this,arguments)}}()}(t))}}}))(gD),SD=function(){var e=Object(V.a)(q.a.mark((function e(t,n,r){return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ih(Ac.a.get("REACT_APP_DISABLE_CRYPTO_ADDRESS_VALIDATION"))){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,vD(r.product.ProductSymbol,t.ExternalAddress);case 4:if(!1!==e.sent){e.next=7;break}throw{ExternalAddress:"Wrong address format"};case 7:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),kD=Object(Pb.a)({form:"createWithdraw",asyncValidate:SD,asyncChangeFields:["ExternalAddress"],onSubmit:function(){},shouldAsyncValidate:function(e){return Object(yD.a)(Object(Y.a)(Object(Y.a)({},e),{},{syncValidationPasses:!0}))}})(wD);var ID=function(){var e=Object(_j.a)().t,t=new URLSearchParams(window.location.search).get("contentOnly"),n=Object(s.f)(tn).map((function(e){return{label:e.Product,labelSmall:e.ProductFullName,value:e.ProductId,icon:Object(kb.jsx)(cm,{iconFileName:Lt(e.Product),size:30})}})),a=Object(r.useState)(n),c=Object(J.a)(a,2),i=c[0],o=c[1];return Object(kb.jsxs)(AD,{children:[Object(kb.jsx)(Tj.d,{margin:"15px 0 15px 0",children:e("Select a currency to withdraw")}),Object(kb.jsxs)(sf,{children:[0===n.length&&Object(kb.jsx)(Tj.d,{children:e("No currencies available for withdrawal")}),n.length>0&&Object(kb.jsx)(ED,{children:Object(kb.jsx)(Wg,{label:e("Search"),onChange:function(e){var t=e.target.value.toLowerCase(),r=n.filter((function(e){return e.label.toLowerCase().includes(t)||e.labelSmall.toLowerCase().includes(t)}));o(r)},fullWidth:!0})}),i.map((function(e,n){return Object(kb.jsxs)(TD,{to:"".concat(t?"":"/wallets","/withdraw/").concat(e.value).concat(t?"?contentOnly=true":""),children:[Object(kb.jsx)(PD,{children:Object(kb.jsx)(cm,{iconFileName:Lt(e.label),size:40})}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Tj.d,{children:e.labelSmall}),Object(kb.jsx)(Tj.d,{color:Po.a.text_grey,children:e.label})]})]},n)}))]})]})},AD=Object(Tb.a)("div",{target:"e4ngdv90"})({name:"114ooz9",styles:"width:100%;margin:0 auto;padding-bottom:40px;"}),PD=Object(Tb.a)("div",{target:"e4ngdv91"})({name:"1vf44j6",styles:"display:block;padding:0 16px 0 0;"}),TD=Object(Tb.a)(Zj.a,{target:"e4ngdv92"})("display:flex;align-items:center;height:50px;padding:35px 5px;border-radius:5px;&:hover{background:",Po.a.bg_tertiary,";}"),ED=Object(Tb.a)("div",{target:"e4ngdv93"})({name:"5tmknp",styles:"margin:0 0 15px 0;"}),RD=n(1295),ND=Object(Tb.a)(RD.a,{target:"e8kcw5y0"})("color:",Po.a.text_body,";font-family:",Tj.g.body,";font-weight:normal;font-size:",Tj.h.paragraph,"!important;&&.MuiInputBase-root{color:",Po.a.input_text_color,";}& .MuiSelect-select:not([multiple]) option,& .MuiSelect-select:not([multiple]) optgroup,& .MuiSelect-select option,& .MuiSelect-select optgroup{background:",Po.a.bg_tertiary," !important;background-color:",Po.a.bg_tertiary," !important;}& .MuiSelect-select:not([multiple]) option{&:hover{background:",Po.a.bg_highlight,";background-color:",Po.a.bg_highlight,";}}&&.MuiInput-underline:before{border-bottom:1px solid ",Po.a.input_border_highlight,";transition:border-bottom-color 200ms cubic-bezier(0.4,0,0.2,1) 0ms;}&&.MuiInput-underline:hover:not(.Mui-disabled):before{border-bottom:1px solid ",Po.a.input_border_hover,";}&&.MuiInput-underline:after{border-bottom:2px solid ",Po.a.input_border_highlight,";}&&.Mui-error:after{border-bottom:2px solid ",Po.a.input_border_error,";}.MuiSelect-icon{color:",Po.a.input_border_highlight,";}"),MD=Object(Tb.a)(Fg.a,{target:"e8kcw5y1"})("&&{color:",Po.a.text_body,";font-family:",Tj.g.body,";font-weight:normal;font-size:",Tj.h.paragraph,";}&&.Mui-focused{color:",Po.a.text_body,";}"),DD=Object(Tb.a)("option",{target:"e8kcw5y2"})("background-color:",Po.a.bg_tertiary," !important;background:",Po.a.bg_tertiary," !important;&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active{background:",Po.a.bg_tertiary," !important;}"),LD=function(e){e.children;var t=e.options,n=e.placeholder,r=e.fullWidth,a=Object(Hr.a)(e,["children","options","placeholder","fullWidth"]);return Object(kb.jsxs)(Bg.a,{fullWidth:r,children:[a.label?Object(kb.jsx)(MD,{shrink:n?Boolean(n):void 0,children:a.label}):null,Object(kb.jsxs)(ND,Object(Y.a)(Object(Y.a)({},a),{},{children:[n&&Object(kb.jsx)(DD,{value:"",disabled:!0,children:n}),t.map((function(e){var t=e.label,n=e.value;return Object(kb.jsx)(DD,{value:n,children:t},n)}))]}))]})},FD=function(e){var t=e.loading,n=e.accountData,a=e.onAccountSelected,c=Object(_j.a)().t,i=Object(r.useRef)(null),s=Object(r.useState)(void 0),o=Object(J.a)(s,2),l=o[0],u=o[1];return void 0===l&&!0===(null===n||void 0===n?void 0:n.verified)&&u(n.bank_accounts[0].bankAccountId),Object(kb.jsxs)(sf,{children:[t&&Object(kb.jsx)(Vf,{}),n&&!1===n.verified&&Object(kb.jsx)(Tj.d,{children:c("We have upgraded our security measures for your safety. You do not have a verified bank account with Zipmex. Please make a deposit to our new bank account first. Your bank details will be verified and saved for your future withdrawals.")}),(null===n||void 0===n?void 0:n.bank_accounts)&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:c("Select an Account to withdraw into:")}),Object(kb.jsx)(Tj.d,{margin:"0 0 25px 0",children:Object(kb.jsx)(LD,{ref:i,name:"Account",native:!0,fullWidth:!0,value:l,onChange:function(e){return u(e.target.value)},options:n.bank_accounts.map((function(e){return{label:"".concat(e.bankAbbrev," ").concat(e.accountNumber," ").concat(null!==e.accountHolderName?e.accountHolderName:""),value:e.bankAccountId}}))})}),Object(kb.jsx)(Pm,{fullWidth:!0,onClick:function(){return a(l)},children:c("Continue")})]})]})},UD=function(e){var t=e.product,n=Object(r.useState)(0),a=Object(J.a)(n,2),c=a[0],i=a[1],s=Object(r.useState)(!1),o=Object(J.a)(s,2),l=o[0],u=o[1],d=Object(r.useState)(void 0),b=Object(J.a)(d,2),p=b[0],j=b[1],m=Object(r.useState)(void 0),f=Object(J.a)(m,2),h=f[0],O=f[1],x=function(){var e=Object(V.a)(q.a.mark((function e(){var t,n,r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.localStorage.getItem("token"),u(!0),e.prev=2,e.next=5,pc.a.get("".concat(Ac.a.get("REACT_APP_WITHDRAW_ENDPOINT"),"/info"),{headers:{Authorization:"Bearer ".concat(t)}});case 5:n=e.sent,r=n.data,u(!1),r&&j(r),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(){return e.apply(this,arguments)}}();switch(Object(r.useEffect)((function(){x()}),[]),c){case 0:return Object(kb.jsx)(FD,{loading:l,accountData:p,onAccountSelected:function(e){O(e),i(1)}});case 1:return Object(kb.jsx)(kD,{product:t,initialValues:{BankAccountId:h,WithdrawFormType:"SGD-xfers"}});default:return null}};var BD=function(e){var t,n,a,c,i,s,o,l,u,d,b,p,j,m,f=e.fetching,h=e.withdrawInfo,O=e.onSubmit,x=e.product,g=Object(_j.a)().t,v=Object(lN.b)({mode:"onChange"}),y=v.handleSubmit,C=v.setValue,w=v.watch,S=v.formState.errors,k=v.control,I=w("amount"),A=Object(r.useRef)(null);return Object(kb.jsxs)("form",{onSubmit:y(O),children:[Object(kb.jsx)(Vf,{isVisible:f}),!f&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:g("Step 1")})," ",Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:g("Enter withdrawal amount")}),Object(kb.jsxs)(GD,{children:[Object(kb.jsx)(lN.a,{name:"amount",control:k,rules:{required:!0,max:Math.min(x.rawAvailableBalance,h.maxAmountPerTransaction),min:h.minAmountPerTransaction,maxLength:10},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{type:"number",fullWidth:!0,label:g("Amount of USD"),autoComplete:"off",inputRef:A,shrink:void 0!==I&&""!==I}))}}),Object(kb.jsx)(ZD,{size:"small",onClick:function(){C("amount",Math.floor(Number(100*x.rawAvailableBalance))/100,{shouldDirty:!0,shouldValidate:!0,shouldTouch:!0}),A.current.focus()},children:"Max"})]}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(t=S.amount)||void 0===t?void 0:t.type)&&g("Amount is required"),"min"===(null===(n=S.amount)||void 0===n?void 0:n.type)&&g("Amount must be more than {minAmount} USD",{minAmount:L(h.minAmountPerTransaction,"USD")}),"max"===(null===(a=S.amount)||void 0===a?void 0:a.type)&&g("Amount must be less than your available balance and less than the {maxAmount} USD transaction limit",{maxAmount:L(h.maxAmountPerTransaction,"USD")})]}),Object(kb.jsx)(xT,{color:Po.a.bg_tertiary,headline:"Limits",margin:"15px 0 15px 0",setCollapsed:!0,children:h&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(zD,{children:[Object(kb.jsxs)(Tj.f,{children:[g("Daily withdrawal limit remaining")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(null===(c=h.dailyLimit)||void 0===c?void 0:c.availableAmount,"USD")," / ",Object(kb.jsxs)(WD,{children:[L(h.maxAmountPerDay,"USD")," ","USD"]})]})]}),Object(kb.jsxs)(zD,{children:[Object(kb.jsxs)(Tj.f,{children:[g("Min amount per transaction")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(h.minAmountPerTransaction,"USD")," ","USD"]})]}),Object(kb.jsxs)(zD,{children:[Object(kb.jsxs)(Tj.f,{children:[g("Max amount per transaction")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(h.maxAmountPerTransaction,"USD")," ","USD"]})]})]})}),Object(kb.jsxs)(xT,{color:Po.a.bg_tertiary,headline:"Fees",margin:"0 0 15px 0",setCollapsed:!1,children:[Object(kb.jsxs)(zD,{children:[Object(kb.jsx)(Tj.f,{children:g("Amount being withdrawn")}),Object(kb.jsxs)(Tj.d,{children:[L(I||0,"USD")," USD"]})]}),Object(kb.jsxs)(zD,{children:[Object(kb.jsx)(Tj.f,{children:g("Fee")}),Object(kb.jsxs)(Tj.d,{children:[null===(i=h.fee)||void 0===i?void 0:i.value," USD"]})]}),Object(kb.jsxs)(zD,{children:[Object(kb.jsx)(Tj.f,{children:g("You receive ")}),Object(kb.jsxs)(Tj.d,{children:[L(Math.max(I-(null===(s=h.fee)||void 0===s?void 0:s.value),0)||0,"USD")," USD"]})]})]})]}),Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:g("Step 2")})," ",Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:g("Enter your bank details")}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"accountName",control:k,rules:{required:!0},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:g("Account name"),autoComplete:"off",tabIndex:2}))}}),Object(kb.jsx)(Tj.a,{children:"required"===(null===(o=S.accountName)||void 0===o?void 0:o.type)&&g("Account name is required")})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"accountNumber",control:k,rules:{required:!0},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:g("Account number"),autoComplete:"off",tabIndex:3,type:"number"}))}}),Object(kb.jsx)(Tj.a,{children:"required"===(null===(l=S.accountNumber)||void 0===l?void 0:l.type)&&g("Account number is required")})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"beneficiaryAddress",control:k,rules:{required:!0},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:g("Beneficiary address"),autoComplete:"off",tabIndex:4}))}}),Object(kb.jsx)(Tj.a,{children:"required"===(null===(u=S.beneficiaryAddress)||void 0===u?void 0:u.type)&&g("Beneficiary address is required")})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"bankName",control:k,rules:{required:!0},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:g("Bank name"),autoComplete:"off",tabIndex:5}))}}),Object(kb.jsx)(Tj.a,{children:"required"===(null===(d=S.bankName)||void 0===d?void 0:d.type)&&g("Bank name is required")})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"swiftCode",control:k,rules:{required:!0,minLength:8,maxLength:11},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:g("Bank Swift/BIC Code"),autoComplete:"off",tabIndex:6}))}}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(b=S.swiftCode)||void 0===b?void 0:b.type)&&g("Swift code is required"),"minLength"===(null===(p=S.swiftCode)||void 0===p?void 0:p.type)&&g("Swift code must between 8 and 11 characters"),"maxLength"===(null===(j=S.swiftCode)||void 0===j?void 0:j.type)&&g("Swift code must between 8 and 11 characters")]})]}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"bankAddress",control:k,rules:{required:!0},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:g("Bank address"),autoComplete:"off",tabIndex:7}))}}),Object(kb.jsx)(Tj.a,{children:"required"===(null===(m=S.bankAddress)||void 0===m?void 0:m.type)&&g("Bank address is required")})]})]}),Object(kb.jsx)(Pm,{type:"submit",fullWidth:!0,showLoading:f,tabIndex:8,children:g("Next")})]})]})},zD=Object(Tb.a)("div",{target:"eic0d6m0"})({name:"aoyduu",styles:"margin:0 0 15px 0;&:last-of-type{margin:0;}"}),GD=Object(Tb.a)("div",{target:"eic0d6m1"})("display:flex;flex-wrap:no-wrap;align-items:flex-end;justify-content:space-between;margin:",(function(e){return e.margin?e.margin:"0"}),";"),WD=Object(Tb.a)("span",{target:"eic0d6m2"})("color:",Po.a.text_grey,";"),ZD=Object(Tb.a)(Pm,{target:"eic0d6m3"})({name:"u3d36q",styles:"margin-left:10px !important;"});var qD=function(e){var t,n,r,a=e.fetching,c=e.fetching2FA,i=e.requestWithdrawInfo,s=e.onSubmit,o=e.serverError,l=Object(_j.a)().t,u=i.details,d=Object(lN.b)({mode:"onChange"}),b=d.handleSubmit,p=d.getValues,j=d.control,m=d.formState.errors,f=function(){var e=p("code");s(e,i.ticketId,i.ticketVersion)};return Object(kb.jsxs)("form",{onSubmit:b(f),children:[Object(kb.jsx)(Vf,{isVisible:a}),!a&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:l("2FA Authentication")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:l("Please enter the verification code that we emailed you.")}),Object(kb.jsx)(Tj.f,{children:l("Please note: The verification code will be valid for 30 minutes.")}),o&&Object(kb.jsx)(Tj.a,{children:o.toString()}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"15px 0 15px 0",children:Object(kb.jsxs)("form",{onSubmit:b(f),children:[Object(kb.jsx)(lN.a,{name:"code",control:j,rules:{required:!0,minLength:6,maxLength:6},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{type:"number",fullWidth:!0,tabIndex:1,label:l("Verification code"),autoComplete:"off"}))}}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(t=m.code)||void 0===t?void 0:t.type)&&l("Verification code is required"),("minLength"===(null===(n=m.code)||void 0===n?void 0:n.type)||"maxLength"===(null===(r=m.code)||void 0===r?void 0:r.type))&&l("Verification code must be 6 characters")]})]})}),Object(kb.jsx)(Pm,{type:"submit",fullWidth:!0,showLoading:c,tabIndex:2,children:l("Next")})]}),Object(kb.jsxs)(xT,{margin:"0 0 15px 0",headline:"Withdrawal Details",setCollapsed:!0,children:[Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:l("Withdrawal amount")}),Object(kb.jsxs)(Tj.d,{margin:"0 10px 15px 0",children:[L(i.amount,"USD")," USD"]})]}),Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:"Fees"}),Object(kb.jsxs)(Tj.d,{margin:"0 10px 15px 0",children:[L(i.feeAmount,"USD")," ","USD"]})]}),Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:"You receive"}),Object(kb.jsxs)(Tj.d,{margin:"0 10px 0 0",children:[L(i.amount-i.feeAmount,"USD")," ","USD"]})]})]}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:l("Account Name")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u.accountName})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:l("Account Number")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u.accountNumber})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:l("Beneficiary Address")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u.address})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:l("Bank Name")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u.bankName})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:l("Bank Swift/BIC Code")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u.swiftCode})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(VD,{children:[Object(kb.jsx)(Tj.f,{children:l("Bank Address")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u.bankAddress})]})})]})]})]})},VD=Object(Tb.a)("div",{target:"e6jxj050"})({name:"j7qwjs",styles:"display:flex;flex-direction:column;"});var _D=new URLSearchParams(window.location.search).get("contentOnly"),HD=function(e){var t=e.fetching,n=Object(_j.a)().t,r=Object(l.g)(),a=Object(s.e)();return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Vf,{isVisible:t}),!t&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:n("Thank you")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:n("Please allow us up to 3 days (including weekends and public holidays) to process your withdrawal.")})]}),!_D&&Object(kb.jsx)(YD,{children:Object(kb.jsx)(Pm,{onClick:function(){r.push("/wallets/"),a(Sc())},type:"submit",fullWidth:!0,children:n("Finish")})})]})]})},YD=Object(Tb.a)("div",{target:"e1qks3oc0"})({name:"1wcgr0x",styles:"width:100%;margin-top:15px;margin-bottom:15px;"}),KD=function(e){var t=e.product,n=Object(r.useState)(1),a=Object(J.a)(n,2),c=a[0],i=a[1],s=Object(r.useState)(!1),o=Object(J.a)(s,2),l=o[0],u=o[1],d=Object(r.useState)(!1),b=Object(J.a)(d,2),p=b[0],j=b[1],m=Object(r.useState)(!1),f=Object(J.a)(m,2),h=f[0],O=f[1],g=Object(r.useState)(!1),v=Object(J.a)(g,2),y=v[0],C=v[1],w=Object(r.useState)(""),S=Object(J.a)(w,2),k=S[0],I=S[1],A=window.localStorage.getItem("zmToken"),P="usd.global",T=function(){var e=Object(V.a)(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,Object(x.p)({token:A,productId:P});case 4:t=e.sent,O(t.withdrawInfo),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:return e.prev=11,u(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r,a,c;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={swift_code:t.swiftCode,account_number:t.accountNumber,account_name:t.accountName,bank_name:t.bankName,address:t.beneficiaryAddress,bank_address:t.bankAddress},r=JSON.stringify(n),a=t.amount,e.prev=3,u(!0),e.next=7,Object(x.q)({token:A,amount:a,details:r,productId:P});case 7:return c=e.sent,C(c.requestWithdraw),e.next=11,R(A,c.requestWithdraw.ticketId).then((function(){i(2)}));case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),console.log(e.t0);case 16:return e.prev=16,u(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[3,13,16,19]])})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,Object(x.j)({ticketId:n,token:A});case 4:r=e.sent,console.log(r),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0),I(e.t0);case 12:return e.prev=12,u(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(t,n){return e.apply(this,arguments)}}(),N=function(){var e=Object(V.a)(q.a.mark((function e(t,n,r){var a;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,j(!0),e.next=4,Object(x.w)({code:t.toString(),ticketId:n,ticketVersion:r,token:A});case 4:a=e.sent,I(""),i(3),console.log(a),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),"Error: Validation Error"===e.t0.toString()?I("Incorrect verification code entered"):I(e.t0);case 13:return e.prev=13,j(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])})));return function(t,n,r){return e.apply(this,arguments)}}();switch(Object(r.useEffect)((function(){T()}),[]),c){case 1:return Object(kb.jsx)(BD,{fetching:l,withdrawInfo:h,onSubmit:E,product:t});case 2:return Object(kb.jsx)(qD,{fetching:l,fetching2FA:p,requestWithdrawInfo:y,onSubmit:N,serverError:k});case 3:return Object(kb.jsx)(HD,{fetching:l});default:return null}};var QD=function(e){var t,n,a,c,i,s,o,l,u,d,b,p,j,m=e.fetching,f=e.withdrawInfo,h=e.onSubmit,O=e.product,x=Object(_j.a)().t,g=Object(lN.b)({mode:"onChange"}),v=g.handleSubmit,y=g.setValue,C=g.watch,w=g.formState.errors,S=g.control,k=C("amount"),I=null===(t=f.channel)||void 0===t?void 0:t.supported_banks;I&&(j=I.map((function(e){return{value:e.bank_code,label:e.bank_name}}))).unshift({value:"",label:x("Please select your bank")});var A=Object(r.useRef)(null);return Object(kb.jsxs)("form",{onSubmit:v(h),children:[Object(kb.jsx)(Vf,{isVisible:m}),!m&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:x("Step 1")})," ",Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:x("Enter withdrawal amount")}),Object(kb.jsxs)(XD,{children:[Object(kb.jsx)(lN.a,{name:"amount",control:S,rules:{required:!0,max:Math.min(O.rawAvailableBalance,f.maxAmountPerTransaction),min:f.minAmountPerTransaction,maxLength:10},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{type:"number",fullWidth:!0,label:x("Amount of IDR"),autoComplete:"off",inputRef:A,shrink:void 0!==k&&""!==k}))}}),Object(kb.jsx)(eL,{size:"small",onClick:function(){y("amount",Math.floor(Number(100*O.rawAvailableBalance)/100))},children:"Max"})]}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(n=w.amount)||void 0===n?void 0:n.type)&&x("Amount is required"),"min"===(null===(a=w.amount)||void 0===a?void 0:a.type)&&x("Amount must be more than {minAmount} IDR",{minAmount:L(f.minAmountPerTransaction,"IDR")}),"max"===(null===(c=w.amount)||void 0===c?void 0:c.type)&&x("Amount must be less than your available balance and less than the {maxAmount} IDR transaction limit",{maxAmount:L(f.maxAmountPerTransaction,"IDR")})]}),Object(kb.jsx)(xT,{color:Po.a.bg_tertiary,headline:x("Limits"),margin:"15px 0 15px 0",setCollapsed:!0,children:f&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(JD,{children:[Object(kb.jsxs)(Tj.f,{children:[x("Min amount per transaction")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(f.minAmountPerTransaction,"IDR")," ","IDR"]})]}),Object(kb.jsxs)(JD,{children:[Object(kb.jsxs)(Tj.f,{children:[x("Daily withdrawal limit remaining")," "]}),Object(kb.jsxs)(Tj.d,{children:[L(null===(i=f.dailyLimit)||void 0===i?void 0:i.availableAmount,"IDR")," / ",Object(kb.jsxs)($D,{children:[L(f.maxAmountPerDay,"IDR")," ","IDR"]})]})]})]})}),Object(kb.jsxs)(xT,{color:Po.a.bg_tertiary,headline:x("Fees"),margin:"0 0 15px 0",setCollapsed:!1,children:[Object(kb.jsxs)(JD,{children:[Object(kb.jsx)(Tj.f,{children:x("Amount being withdrawn")}),Object(kb.jsxs)(Tj.d,{children:[L(k||0,"IDR")," IDR"]})]}),Object(kb.jsxs)(JD,{children:[Object(kb.jsx)(Tj.f,{children:x("Fee")}),Object(kb.jsxs)(Tj.d,{children:[L(null===(s=f.fee)||void 0===s?void 0:s.value," IDR"),"PERCENTAGE"===(null===(o=f.fee)||void 0===o?void 0:o.calcType)?"%":" IDR"]})]}),Object(kb.jsxs)(JD,{children:[Object(kb.jsx)(Tj.f,{children:x("You receive ")}),Object(kb.jsxs)(Tj.d,{children:["PERCENTAGE"===(null===(l=f.fee)||void 0===l?void 0:l.calcType)?L(Math.max(k-k*(null===(u=f.fee)||void 0===u?void 0:u.value)/100,0)||0,"IDR"):L(Math.max(k-(null===(d=f.fee)||void 0===d?void 0:d.value),0),"IDR")," IDR"]})]})]})]}),Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:x("Step 2")})," ",Object(kb.jsx)(Tj.d,{margin:"0 0 15px 0",children:x("Enter your bank account details")}),I&&Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"bankName",control:S,rules:{required:!0},render:function(e){var t=e.field;return Object(kb.jsx)(kb.Fragment,{children:Object(kb.jsx)(LD,Object(Y.a)(Object(Y.a)({ref:A},t),{},{native:!0,fullWidth:!0,options:j}))})}}),Object(kb.jsx)(Tj.a,{children:"required"===(null===(b=w.bankName)||void 0===b?void 0:b.type)&&x("Bank is required")})]}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsx)(lN.a,{name:"accountName",control:S,rules:{required:!0},render:function(e){var t,n=e.field;return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},n),{},{fullWidth:!0,label:x("Account name"),autoComplete:"off",tabIndex:2})),Object(kb.jsx)(Tj.a,{children:"required"===(null===(t=w.accountName)||void 0===t?void 0:t.type)&&x("Account name is required")})]})}})}),Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsx)(lN.a,{name:"accountNumber",control:S,rules:{required:!0},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{fullWidth:!0,label:x("Account number"),autoComplete:"off",tabIndex:3,type:"number"}))}}),Object(kb.jsx)(Tj.a,{children:"required"===(null===(p=w.accountNumber)||void 0===p?void 0:p.type)&&x("Account number is required")})]})]}),Object(kb.jsx)(Pm,{type:"submit",fullWidth:!0,showLoading:m,tabIndex:8,children:x("Next")})]})]})},JD=Object(Tb.a)("div",{target:"ep8nobr0"})({name:"aoyduu",styles:"margin:0 0 15px 0;&:last-of-type{margin:0;}"}),XD=Object(Tb.a)("div",{target:"ep8nobr1"})("display:flex;flex-wrap:no-wrap;align-items:flex-end;justify-content:space-between;margin:",(function(e){return e.margin?e.margin:"0"}),";"),$D=Object(Tb.a)("span",{target:"ep8nobr2"})("color:",Po.a.text_grey,";"),eL=Object(Tb.a)(Pm,{target:"ep8nobr3"})({name:"u3d36q",styles:"margin-left:10px !important;"});var tL=function(e){var t,n,r,a=e.fetching,c=e.fetching2FA,i=e.requestWithdrawInfo,s=e.onSubmit,o=e.serverError,l=e.formValues,u=Object(_j.a)().t,d=l,b=Object(lN.b)({mode:"onChange"}),p=b.handleSubmit,j=b.getValues,m=b.control,f=b.formState.errors,h=function(){var e=j("code");s(e,i.ticketId,i.ticketVersion)};return Object(kb.jsxs)("form",{onSubmit:p(h),children:[Object(kb.jsx)(Vf,{isVisible:a}),!a&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:u("2FA Authentication")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:u("Please enter the verification code that we emailed you.")}),Object(kb.jsx)(Tj.f,{children:u("Please note: The verification code will be valid for 30 minutes.")}),o&&Object(kb.jsx)(Tj.a,{children:o.toString()}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"15px 0 15px 0",children:Object(kb.jsxs)("form",{onSubmit:p(h),children:[Object(kb.jsx)(lN.a,{name:"code",control:m,rules:{required:!0,minLength:6,maxLength:6},render:function(e){var t=e.field;return Object(kb.jsx)(Wg,Object(Y.a)(Object(Y.a)({},t),{},{type:"number",fullWidth:!0,tabIndex:1,label:u("Verification code"),autoComplete:"off",autoFocus:!0}))}}),Object(kb.jsxs)(Tj.a,{children:["required"===(null===(t=f.code)||void 0===t?void 0:t.type)&&u("Verification code is required"),("minLength"===(null===(n=f.code)||void 0===n?void 0:n.type)||"maxLength"===(null===(r=f.code)||void 0===r?void 0:r.type))&&u("Verification code must be 6 characters")]})]})}),Object(kb.jsx)(Pm,{type:"submit",fullWidth:!0,showLoading:c,tabIndex:2,children:u("Next")})]}),Object(kb.jsxs)(xT,{margin:"0 0 15px 0",headline:u("Withdrawal details"),setCollapsed:!0,children:[Object(kb.jsxs)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:[Object(kb.jsxs)(nL,{children:[Object(kb.jsx)(Tj.f,{children:u("Withdrawal amount")}),Object(kb.jsxs)(Tj.d,{margin:"0 10px 15px 0",children:[L(i.amount,"IDR")," IDR"]})]}),Object(kb.jsxs)(nL,{children:[Object(kb.jsx)(Tj.f,{children:"Fees"}),Object(kb.jsxs)(Tj.d,{margin:"0 10px 15px 0",children:[L(i.feeAmount,"IDR")," ","IDR"]})]}),Object(kb.jsxs)(nL,{children:[Object(kb.jsx)(Tj.f,{children:"You receive"}),Object(kb.jsxs)(Tj.d,{margin:"0 10px 0 0",children:[L(i.amount-i.feeAmount,"IDR")," ","IDR"]})]})]}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(nL,{children:[Object(kb.jsx)(Tj.f,{children:u("Account Name")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:d.accountName})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(nL,{children:[Object(kb.jsx)(Tj.f,{children:u("Account Number")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:d.accountNumber})]})}),Object(kb.jsx)(sf,{color:Po.a.bg_tertiary,margin:"0 0 15px 0",children:Object(kb.jsxs)(nL,{children:[Object(kb.jsx)(Tj.f,{children:u("Bank Name")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:d.bankName})]})})]})]})]})},nL=Object(Tb.a)("div",{target:"ebb79650"})({name:"j7qwjs",styles:"display:flex;flex-direction:column;"});var rL=new URLSearchParams(window.location.search).get("contentOnly"),aL=function(e){var t=e.fetching,n=Object(_j.a)().t,r=Object(s.e)(),a=Object(l.g)();return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(Vf,{isVisible:t}),!t&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(sf,{margin:"0 0 15px 0",children:[Object(kb.jsx)(Tj.b,{as:"h4",margin:"0 0 15px 0",children:n("Thank you")}),Object(kb.jsx)(Tj.d,{margin:"0 10px 0 0",children:n("Please allow us up to 3 days (including weekends and public holidays) to process your withdrawal.")})]}),!rL&&Object(kb.jsx)(cL,{type:"submit",fullWidth:!0,onClick:function(){a.push("/wallets/"),r(Sc())},children:n("Finish")})]})]})},cL=Object(Tb.a)(Pm,{target:"e12f6j7l0"})({name:"1wcgr0x",styles:"width:100%;margin-top:15px;margin-bottom:15px;"}),iL=function(e){var t=e.product,n=Object(r.useState)(1),a=Object(J.a)(n,2),c=a[0],i=a[1],s=Object(r.useState)(!1),o=Object(J.a)(s,2),l=o[0],u=o[1],d=Object(r.useState)(!1),b=Object(J.a)(d,2),p=b[0],j=b[1],m=Object(r.useState)(!1),f=Object(J.a)(m,2),h=f[0],O=f[1],g=Object(r.useState)(!1),v=Object(J.a)(g,2),y=v[0],C=v[1],w=Object(r.useState)(!1),S=Object(J.a)(w,2),k=S[0],I=S[1],A=Object(r.useState)(""),P=Object(J.a)(A,2),T=P[0],E=P[1],R=window.localStorage.getItem("zmToken"),N="idr.global",M=function(){var e=Object(V.a)(q.a.mark((function e(){var t;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,Object(x.p)({token:R,productId:N});case 4:t=e.sent,O(t.withdrawInfo),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:return e.prev=11,u(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=Object(V.a)(q.a.mark((function e(t){var n,r,a,c;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={account_number:t.accountNumber,account_holder_name:t.accountName,bank_code:t.bankName},r=JSON.stringify(n),a=t.amount,e.prev=3,u(!0),e.next=7,Object(x.q)({token:R,amount:a,details:r,productId:N});case 7:return c=e.sent,C(c.requestWithdraw),I(t),e.next=12,L(R,c.requestWithdraw.ticketId).then((function(){i(2)}));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),console.log(e.t0);case 17:return e.prev=17,u(!1),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})));return function(t){return e.apply(this,arguments)}}(),L=function(){var e=Object(V.a)(q.a.mark((function e(t,n){var r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u(!0),e.next=4,Object(x.j)({ticketId:n,token:R});case 4:r=e.sent,console.log(r),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0),E(e.t0);case 12:return e.prev=12,u(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(t,n){return e.apply(this,arguments)}}(),F=function(){var e=Object(V.a)(q.a.mark((function e(t,n,r){var a;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,j(!0),e.next=4,Object(x.w)({code:t.toString(),ticketId:n,ticketVersion:r,token:R});case 4:a=e.sent,E(""),i(3),console.log(a),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),"Error: Validation Error"===e.t0.toString()?E("Incorrect verification code entered"):E(e.t0);case 13:return e.prev=13,j(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])})));return function(t,n,r){return e.apply(this,arguments)}}();switch(Object(r.useEffect)((function(){M()}),[]),c){case 1:return Object(kb.jsx)(QD,{fetching:l,withdrawInfo:h,onSubmit:D,product:t});case 2:return Object(kb.jsx)(tL,{fetching:l,fetching2FA:p,requestWithdrawInfo:y,onSubmit:F,formValues:k,serverError:T});case 3:return Object(kb.jsx)(aL,{fetching:l});default:return null}};var sL=new URLSearchParams(window.location.search).get("contentOnly"),oL=Ab((function(){var e=Object(_j.a)().t,t=Object(s.e)(),n=Object(l.g)(),r=Object(l.h)("/withdraw/:productId"),a=Object(l.h)("/wallets/withdraw/:productId"),c=parseInt((null===r||void 0===r?void 0:r.params.productId)||(null===a||void 0===a?void 0:a.params.productId)),i=Object(s.f)((function(e){return $t(e,c)}),s.d),o=Object(s.f)((function(e){var t;return null===(t=e.position)||void 0===t?void 0:t.fetching})),u=(null===i||void 0===i?void 0:i.rawAvailableBalance)>0,d=Object(s.f)(Rt).disableWithdraw,b=!pf.includes(null===i||void 0===i?void 0:i.ProductSymbol)&&!d&&u;return Object(s.f)((function(e){var t;return null===(t=e.withdrawSlice)||void 0===t?void 0:t.isComplete}))&&!sL&&(n.push("/wallets"),t(Fa(!1))),Object(kb.jsx)(kb.Fragment,{children:o?Object(kb.jsx)(kb.Fragment,{children:!sL&&Object(kb.jsx)(Vf,{})}):Object(kb.jsx)(kb.Fragment,{children:i?Object(kb.jsxs)("div",{children:[Object(kb.jsx)(lL,{children:Object(kb.jsxs)(sf,{children:[Object(kb.jsxs)(Tj.b,{as:"h3",children:[i.Product,Object(kb.jsxs)(Tj.c,{color:Po.a.text_body_small,fontSize:Tj.h.small,children:[" - ",i.ProductFullName]})]}),Object(kb.jsx)(Tj.d,{children:0===(null===i||void 0===i?void 0:i.AvailableBalance)?"You have no available balance to withdraw":Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsxs)(Tj.c,{color:Po.a.text_grey,children:[e("Available balance"),": "]}),i.AvailableBalance]})}),Object(kb.jsx)(uL,{iconFileName:Lt(i.Product),size:32})]})}),b?Object(kb.jsxs)("div",{children:["THB"===(null===i||void 0===i?void 0:i.ProductSymbol)&&Object(kb.jsx)(WE,{children:Object(kb.jsx)(kD,{product:i})}),"SGD"===(null===i||void 0===i?void 0:i.ProductSymbol)&&Object(kb.jsx)(UD,{product:i}),"USD"===(null===i||void 0===i?void 0:i.ProductSymbol)&&Object(kb.jsx)(KD,{product:i}),"IDR"===(null===i||void 0===i?void 0:i.ProductSymbol)&&Object(kb.jsx)(iL,{product:i}),"SGD"!==(null===i||void 0===i?void 0:i.ProductSymbol)&&"THB"!==(null===i||void 0===i?void 0:i.ProductSymbol)&&"IDR"!==(null===i||void 0===i?void 0:i.ProductSymbol)&&"USD"!==(null===i||void 0===i?void 0:i.ProductSymbol)&&Object(kb.jsx)(kD,{product:i})]},i.ProductId):Object(kb.jsx)(Tj.d,{children:e("Withdraw disabled for this product.")})]}):Object(kb.jsx)(ID,{})})})})),lL=Object(Tb.a)("div",{target:"e16nc2y70"})({name:"16b2ug3",styles:"margin:15px 0;"}),uL=Object(Tb.a)(cm,{target:"e16nc2y71"})({name:"161uf75",styles:"position:absolute;right:12px;top:13px;"}),dL=Ab((function(e){var t=Object(s.f)((function(e){return e.position.fetching}));return Object(kb.jsx)(tO.a,{children:!t&&Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(l.b,{exact:!0,path:"/withdraw/:productId",render:function(){return Object(kb.jsx)(Pg,{to:"/withdraw"+window.location.search})}}),Object(kb.jsx)(oL,{})]})})})),bL=function(e,t){var n=e.txnState,r={1:{status:"pending",firstLine:t.t("Your deposit is being processed."),secondLine:t.t("Your account balance will be updated soon.")},2:{status:"successful",firstLine:t.t("Your deposit was successfull."),secondLine:t.t("Your account balance will be updated soon.")},3:{status:"failed",firstLine:t.t("There was a problem with your deposit."),secondLine:t.t("Please check your Bank account before processing another transaction.")}};try{window.dataLayer.push({event:"deposit.".concat(r[n].status)})}catch(a){console.log("Error in GTM tracking")}return Object(kb.jsxs)("div",{children:[Object(kb.jsx)("div",{children:r[n].firstLine}),Object(kb.jsx)("div",{children:r[n].secondLine})]})};bL.contextTypes={t:O.a.func.isRequired};var pL=bL,jL=function(e){var t=window.location.href,n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},mL=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;return Object(u.a)(this,n),(e=t.call(this)).state={txnState:"",title:""},e}return Object(d.a)(n,[{key:"componentDidMount",value:function(){var e,t=jL("txnState");(jL("id")&&jL("resourcePath")&&jL("resourcePath").includes("payment")||"1"===t)&&(e="Deposit pending",this.setState((function(){return{txnState:1,title:e}})),this.props.openModal()),"2"===t&&(e="Deposit succesfull",this.setState((function(){return{txnState:t,title:e}})),this.props.openModal()),"3"===t&&(e="Deposit error",this.setState((function(){return{txnState:t,title:e}})),this.props.openModal())}},{key:"render",value:function(){var e=this.props,t=e.close,n=e.isOpen,r=this.state,a=r.txnState,c=r.title;return a?Object(kb.jsx)(Aj,{isOpen:n,title:this.context.t(c),close:t,children:Object(kb.jsx)(pL,{txnState:a})}):null}}]),n}(a.a.Component);mL.contextTypes={t:O.a.func.isRequired};var fL=mL,hL=Object(s.c)(null,(function(e,t){return{openModal:function(){return e(Pn(Un))},close:function(){e(Tn(Un)),t.history.push(Object(wb.a)("/wallets"))}}}))(fL),OL=Fb({name:Un})(Object(l.i)(hL)),xL=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"render",value:function(){var e=this,t=Db(["snackbar",this.props.customClass]),n=this.props,r=n.type,a=n.text,c=n.textVars;return Object(kb.jsxs)(yL,{type:r,children:[Object(kb.jsxs)(Tj.d,{children:[this.context.t(a,c)," "]}),Object(kb.jsx)(CL,{className:t("close",r),onClick:function(){return e.props.onClose()},children:Object(kb.jsx)(Ij,{name:"close",classModifiers:"big"})})]})}}]),n}(r.Component);xL.defaultProps={timeout:Io.timeout,text:"",textVars:{},type:Io.type,customClass:"custom-snackbar",onClose:function(){}},xL.contextTypes={t:O.a.func.isRequired};var gL=xL,vL={info:Po.a.bg_info,success:Po.a.bg_success,warning:Po.a.bg_warning},yL=Object(Tb.a)("div",{target:"ecfue3p0"})("min-height:52px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-content:stretch;align-items:flex-start;padding:2rem;position:relative;background:",(function(e){return vL[e.type]||vL.info}),";"),CL=Object(Tb.a)("div",{target:"ecfue3p1"})("order:0;flex:0 1 auto;align-self:auto;vertical-align:middle;color:",Po.a.text_body,";cursor:pointer;"),wL=(n(1244),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).bemClasses=Db(["ap-snackbar"]),e}return Object(d.a)(n,[{key:"closeSnack",value:function(e){this.props.dismissSnackByUniqueId(e.uniqueId),e.onClose&&e.onClose()}},{key:"getSnackElement",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=e.timeout||Io.timeout,a=Math.round(r/1e3);return setTimeout((function(){return t.closeSnack(e)}),r),Object(kb.jsxs)("div",{className:this.bemClasses("snack"),children:[Object(kb.jsx)(gL,Object(Y.a)(Object(Y.a)({},e),{},{onClose:function(){return t.closeSnack(t.props.snacks[0])}})),Io.showProgressBar&&Object(kb.jsx)("div",{className:this.bemClasses("snack-progress"),style:{animationDuration:"".concat(a,"s")}})]},n)}},{key:"render",value:function(){var e=this;return i.a.createPortal(Object(kb.jsxs)("div",{className:this.bemClasses(),children:[Io.showMultiple&&this.props.snacks.map((function(t,n){return e.getSnackElement(t,n)})),!Io.showMultiple&&this.props.snacks[0]&&this.getSnackElement(this.props.snacks[0])]}),document.body)}}]),n}(r.Component));wL.defaultProps={timeout:Io.timeout,snacks:[]};var SL=wL,kL=Object(s.c)((function(e){return{snacks:e.snackbar.snacks}}),(function(e){return{dismissSnackByUniqueId:function(t){return e(or(t))}}}))(SL),IL=n(423),AL=(n(1245),n(1246),n(653)),PL=Db("standalone-form"),TL=Db("two-factor-auth-form"),EL=function(e,t){var n=e.handleSubmit,r=e.is2FARequired,c=e.error;return r?Object(kb.jsxs)(a.a.Fragment,{children:[Object(kb.jsx)("div",{className:PL("logo-mobile-container"),children:Object(kb.jsx)("a",{href:"/",children:Object(kb.jsx)(Af,{linkTo:"/",customClass:PL()})})}),Object(kb.jsxs)("div",{className:"".concat(TL("container")),children:[Object(kb.jsxs)("div",{className:"".concat(TL("header")),children:[Object(kb.jsx)("div",{className:TL("header-img"),children:Object(kb.jsx)("img",{src:AL.default,width:72,height:72,alt:"Google 2FA"})}),Object(kb.jsx)("div",{className:"".concat(TL("header-text")),children:t.t("Google Authentication")})]}),Object(kb.jsxs)("form",{onSubmit:n,className:"".concat(TL("form")),children:[Object(kb.jsx)("div",{className:"".concat(TL("information-text")),children:t.t("Enter the authentication code from the app below.")}),Object(kb.jsxs)("div",{children:[Object(kb.jsx)(Gm,{name:"code",type:"input",maxlength:6,validate:[fO],customClass:TL()}),c&&Object(kb.jsx)("div",{className:"".concat(PL("error")," ").concat(TL("error")),children:c}),Object(kb.jsx)("div",{children:Object(kb.jsx)(Hb,{type:"submit",customClass:TL(),styleName:Zb,children:"Confirm"})})]})]})]})]}):Object(kb.jsx)(l.a,{to:Object(wb.a)("/login")})};EL.contextTypes={t:O.a.func.isRequired};var RL=EL,NL=Object(s.c)((function(e){return{is2FARequired:e.auth.is2FARequired}}))(RL),ML=Object(Pb.a)({form:"twoFactorAuth",onSubmit:function(e,t){return t((n=e.code,function(){var e=Object(V.a)(q.a.mark((function e(t){var r;return q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce.connection.Authenticate2FA({Code:n});case 2:if(!(r=e.sent).Authenticated){e.next=13;break}return e.next=6,Fe.a.fetchConfig(r.SessionToken);case 6:return e.next=8,t(Ei());case 8:return e.next=10,t(no());case 10:return e.abrupt("return",t(yo(r)));case 13:return e.abrupt("return",t(Co(r)));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){if(e.type===mo)throw new IL.a({_error:Ae.c.extractT("Invalid Auth Code. Please try again.")});return!0}));var n}})(NL),DL=n(1247),LL=n.n(DL),FL=(n(421),Db("report-form")),UL=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).renderCheckbox=function(e){var t=e.AccountId.toString();return Object(kb.jsx)(sO,{name:t,id:t,label:e.AccountName,customClass:FL()},t)},e}return Object(d.a)(n,[{key:"render",value:function(){var e=this.props.accounts;return Object(kb.jsxs)("div",{className:FL("checkbox-wrapper"),children:[Object(kb.jsx)("label",{className:"ap--label ".concat(FL("checkbox-label")),children:this.context.t("Accounts")}),e&&e.map(this.renderCheckbox)]})}}]),n}(a.a.Component);UL.contextTypes={t:O.a.func.isRequired};var BL=UL,zL=Db("report-form"),GL=function(e,t){var n=e.accounts,r=e.startDate,a=e.invalid;return Object(kb.jsxs)("form",{onSubmit:e.handleSubmit,className:zL("body"),children:[Object(kb.jsxs)("div",{className:zL("form-body"),children:[Object(kb.jsx)(BL,{accounts:n}),Object(kb.jsx)(NE,{name:"type",label:t.t("Report Type:"),customClass:zL(),validate:[fO],options:[{value:"TradeActivity",label:t.t("Trade Activity")},{value:"Transaction",label:t.t("Transaction")},{value:"Treasury",label:t.t("Treasury")}],showTriangles:!0}),Object(kb.jsxs)("div",{className:zL("datapicker-container"),children:[Object(kb.jsx)(HI,{name:"startDate",label:t.t("Start Date:"),customClass:zL(),validate:[fO],maxDate:FC()(new Date,1),initialOptions:{theme:"retail"}}),Object(kb.jsx)(HI,{name:"endDate",label:t.t("End Date:"),customClass:zL(),minDate:Al()(r,1),maxDate:new Date,validate:[fO],initialOptions:{theme:"retail"}})]})]}),Object(kb.jsx)("div",{className:zL("footer"),children:Object(kb.jsx)(Hb,{type:"submit",customClass:zL(),styleName:"additive",disabled:a,children:t.t("Create")})})]})};GL.contextTypes={t:O.a.func.isRequired};var WL=GL,ZL=function(e,t){var n=t.accounts.map((function(e){return e.AccountId})),r={accountIdList:n.filter((function(t){return e[t]}))};return Object.keys(e).filter((function(e){return!n.includes(e)})).forEach((function(t){return r[t]=e[t]})),r},qL=Object(xt.a)("createReport"),VL=Object(Pb.a)({form:"createReport",onSubmit:function(e,t,n){var r=ZL(e,n);return t(Pn(Rn,{payload:r}))}})(WL),_L=Object(s.c)((function(e){var t=e.user,n=t.accounts,r=t.selectedAccountId;return{accounts:n,selectedAccountId:r,initialValues:Object(Ie.a)({type:"TradeActivity"},r,!0),startDate:qL(e,"startDate")}}))(VL),HL=Db("report-form"),YL=function(e,t){var n=e.accounts,r=e.invalid,a=e.handleSubmit;return Object(kb.jsxs)("form",{onSubmit:a,className:HL("body"),children:[Object(kb.jsxs)("div",{className:HL("form-body"),children:[Object(kb.jsx)(BL,{accounts:n}),Object(kb.jsx)(NE,{name:"type",label:t.t("Report Type:"),customClass:HL(),validate:[fO],options:[{value:"TradeActivity",label:t.t("Trade Activity")},{value:"Transaction",label:t.t("Transaction")},{value:"Treasury",label:t.t("Treasury")}],showTriangles:!0}),Object(kb.jsxs)("div",{className:HL("datapicker-container"),children:[Object(kb.jsx)(HI,{name:"startDate",label:t.t("Start Date:"),minDate:new Date,customClass:HL(),validate:[fO],initialOptions:{theme:"retail"}}),Object(kb.jsx)(NE,{name:"frequency",label:t.t("Frequency:"),customClass:HL(),classModifiers:"small",validate:[fO],options:[{value:"Hourly",label:t.t("Hourly")},{value:"Daily",label:t.t("Daily")},{value:"Weekly",label:t.t("Weekly")},{value:"Monthly",label:t.t("Monthly")},{value:"Annual",label:t.t("Annual")}],showTriangles:!0})]})]}),Object(kb.jsx)("div",{className:HL("footer"),children:Object(kb.jsx)(Hb,{type:"submit",customClass:HL(),styleName:"additive",disabled:r,children:t.t("Create")})})]})};YL.contextTypes={t:O.a.func.isRequired};var KL=YL,QL=Object(Pb.a)({form:"scheduleReport",onSubmit:function(e,t,n){var r=ZL(e,n);return t(Pn(Nn,{payload:r}))}})(KL),JL=Object(s.c)((function(e){var t=e.user,n=t.accounts,r=t.selectedAccountId;return{accounts:n,selectedAccountId:r,initialValues:Object(Ie.a)({type:"TradeActivity",frequency:"Daily"},r,!0)}}))(QL),XL=Db("schedule-report"),$L=function(){return Object(kb.jsx)("div",{className:XL(),children:Object(kb.jsx)(JL,{})})},eF=(n(669),Db("confirm-single-report")),tF=function(e,t){return Object(kb.jsxs)("div",{className:eF(),children:[Object(kb.jsx)("p",{className:eF("title"),children:t.t("Confirm")}),Object(kb.jsx)(Mj,{label:t.t("Report Type:"),text:e.payload.type,customClass:eF()}),Object(kb.jsx)(Mj,{label:t.t("Start Date:"),text:Object(mO.b)(e.payload.startDate),customClass:eF()}),Object(kb.jsx)(Mj,{label:t.t("End Date:"),text:Object(mO.b)(e.payload.endDate),customClass:eF()})]})};tF.defaultProps={payload:{type:"",startDate:"",endDate:""}},tF.contextTypes={t:O.a.func.isRequired};var nF=tF,rF=function(e,t){return Object(kb.jsx)(Aj,{isOpen:e.isOpen,title:t.t("Create Single Report"),customClass:"confirm-report-modal",close:e.close,footer:{buttonText:t.t("Create Report"),buttonStyle:"additive",onClick:function(){return e.generateReport(e.payload)}},children:Object(kb.jsx)(nF,{payload:e.payload})})};rF.defaultProps={payload:{type:"",startDate:"",endDate:""}},rF.contextTypes={t:O.a.func.isRequired};var aF=rF,cF={generateReport:function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=zl(r,e),t.t0=e.type,t.next="TradeActivity"===t.t0?4:"Transaction"===t.t0?8:"Treasury"===t.t0?12:16;break;case 4:return t.next=6,Ce.connection.GenerateTradeActivityReport(a);case 6:return c=t.sent,t.abrupt("break",18);case 8:return t.next=10,Ce.connection.GenerateTransactionActivityReport(a);case 10:return c=t.sent,t.abrupt("break",18);case 12:return t.next=14,Ce.connection.GenerateTreasuryActivityReport(a);case 14:return c=t.sent,t.abrupt("break",18);case 16:return console.error("Unsupported '".concat(e.type,"' report type")),t.abrupt("return");case 18:if(!1!==c.bAccepted){t.next=20;break}return t.abrupt("return",n(sr({id:"REPORT_WARNING",type:"warning",text:c.rejectMessage})));case 20:n(Wl(c)),n(Cc()),n(sr({id:"SINGLE_REPORT_SUCCESS",type:"success",text:Ae.c.extractT("Single report was successfully created")}));case 23:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}},iF=Object(s.c)(null,cF)(aF),sF=Fb({name:Rn})(iF),oF=Db("confirm-single-report"),lF=function(e,t){return Object(kb.jsxs)("div",{className:oF(),children:[Object(kb.jsx)("p",{className:oF("title"),children:t.t("Confirm")}),Object(kb.jsx)(Mj,{label:t.t("Report Type:"),text:e.payload.type,customClass:oF()}),Object(kb.jsx)(Mj,{label:t.t("Start Date:"),text:Object(mO.b)(e.payload.startDate),customClass:oF()}),Object(kb.jsx)(Mj,{label:t.t("Frequency:"),text:e.payload.frequency,customClass:oF()})]})};lF.defaultProps={payload:{type:"",startDate:"",frequency:""}},lF.contextTypes={t:O.a.func.isRequired};var uF=lF,dF=function(e,t){return Object(kb.jsx)(Aj,{isOpen:e.isOpen,title:t.t("Schedule a Cyclical Report"),customClass:"confirm-report-modal",close:e.close,footer:{buttonText:t.t("Schedule Report"),buttonStyle:"additive",onClick:function(){return e.scheduleReport(e.payload)}},children:Object(kb.jsx)(uF,{payload:e.payload})})};dF.defaultProps={payload:{type:"",startDate:"",frequency:""}},dF.contextTypes={t:O.a.func.isRequired};var bF=dF,pF={scheduleReport:function(e){return function(){var t=Object(V.a)(q.a.mark((function t(n,r){var a,c;return q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=Gl(r,e),t.t0=e.type,t.next="TradeActivity"===t.t0?4:"Transaction"===t.t0?8:"Treasury"===t.t0?12:16;break;case 4:return t.next=6,Ce.connection.ScheduleTradeActivityReport(a);case 6:return c=t.sent,t.abrupt("break",18);case 8:return t.next=10,Ce.connection.ScheduleTransactionActivityReport(a);case 10:return c=t.sent,t.abrupt("break",18);case 12:return t.next=14,Ce.connection.ScheduleTreasuryActivityReport(a);case 14:return c=t.sent,t.abrupt("break",18);case 16:return console.error("Unsupported '".concat(e.type,"' report type")),t.abrupt("return");case 18:n(Wl(c)),n(Cc()),n(sr({id:"CYCLICAL_REPORT_SUCCESS",type:"success",text:Ae.c.extractT("Cyclical report was successfully created")}));case 21:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}},jF=Object(s.c)(null,pF)(bF),mF=Fb({name:Nn})(jF),fF=(n(1248),Db("reports-sidepane")),hF=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).getTabs=function(){return[{menuItem:e.context.t("Single Report"),render:function(){return Object(kb.jsx)(_L,{})}},{menuItem:e.context.t("Cyclical Report"),render:function(){return Object(kb.jsx)($L,{})}}]},e}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.props.onSidePaneOpen({hideHeader:!0,customClass:"reports-sidepane",classModifiers:"with-tabs"})}},{key:"render",value:function(){var e=this.props.index;return Object(kb.jsxs)("div",{className:fF("body"),children:[Object(kb.jsx)("div",{className:fF("header"),children:this.context.t("Create a Report")}),Object(kb.jsx)(Hx,{panes:this.getTabs(),customClass:"".concat(fF()),defaultActiveIndex:e}),Object(kb.jsx)(sF,{}),Object(kb.jsx)(mF,{})]})}}]),n}(a.a.Component);hF.defaultProps={index:0},hF.contextTypes={t:O.a.func.isRequired},hF.defaultProps={onSidePaneOpen:function(){}};var OF=function(e){var t=e.scrollRef,n=Object(l.g)();return Object(r.useEffect)((function(){var e=n.listen((function(){null===t||void 0===t||t.current.scrollTo(0,0)}));return function(){e()}}),[]),Object(kb.jsx)(kb.Fragment,{})};var xF=function(e){var t=Object(_j.a)().t,n=Object(r.useRef)(null);return Object(r.useEffect)((function(){e.onSidePaneOpen({hideHeader:!0})}),[]),Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(vF,{children:Object(kb.jsxs)(yF,{children:[Object(kb.jsx)(l.b,{exact:!0,path:"/wallets/deposit/:code",render:function(){return Object(kb.jsx)(Pg,{to:"/wallets/deposit"})}}),Object(kb.jsx)(Tj.b,{margin:"15px 0 0 0",as:"h3",children:t("Deposit")})]})}),Object(kb.jsxs)(gF,{ref:n,children:[Object(kb.jsx)(OF,{scrollRef:n}),Object(kb.jsx)(PM,Object(Y.a)({},e))]})]})},gF=Object(Tb.a)("div",{target:"e1rclh9e0"})({name:"13b1v49",styles:"position:relative;width:100%;height:100vh;margin:0 auto;padding:0 15px;overflow:auto;padding-top:60px;"}),vF=Object(Tb.a)("div",{target:"e1rclh9e1"})("position:fixed;top:0;left:0;width:100%;height:55px;padding:0 15px;background:",Po.a.bg_primary,";border-bottom:1px solid ",Po.a.bg_secondary,";z-index:1;"),yF=Object(Tb.a)(Zj.a,{target:"e1rclh9e2"})({name:"hboir5",styles:"display:flex;width:100%;"});var CF=function(e){var t=Object(_j.a)().t,n=Object(r.useRef)(null);return Object(r.useEffect)((function(){e.onSidePaneOpen({hideHeader:!0})}),[]),Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)(SF,{children:Object(kb.jsxs)(kF,{children:[Object(kb.jsx)(l.b,{exact:!0,path:"/wallets/withdraw/:code",render:function(){return Object(kb.jsx)(Pg,{to:"/wallets/withdraw"})}}),Object(kb.jsx)(Tj.b,{margin:"15px 0 0 0",as:"h3",children:t("Withdraw")})]})}),Object(kb.jsxs)(wF,{ref:n,children:[Object(kb.jsx)(OF,{scrollRef:n}),Object(kb.jsx)(oL,Object(Y.a)({},e))]})]})},wF=Object(Tb.a)("div",{target:"ed2uy9s0"})({name:"13b1v49",styles:"position:relative;width:100%;height:100vh;margin:0 auto;padding:0 15px;overflow:auto;padding-top:60px;"}),SF=Object(Tb.a)("div",{target:"ed2uy9s1"})("position:fixed;top:0;left:0;width:100%;height:55px;padding:0 15px;background:",Po.a.bg_primary,";border-bottom:1px solid ",Po.a.bg_secondary,";z-index:1;"),kF=Object(Tb.a)(Zj.a,{target:"ed2uy9s2"})({name:"hboir5",styles:"display:flex;width:100%;"}),IF={Reports:hF,Deposits:xF,Withdraws:CF},AF=(n(1249),n(1250),function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this,e)).getPropsFromChild=function(e){var t=e.title,n=e.customClass,a=e.hideCloseLink,c=e.classModifiers,i=e.hideHeader;r.setState({title:t,customClass:n,hideCloseLink:a,classModifiers:c,hideHeader:i})},r.returnScrollPosition=function(){document.body.style.position="static",window.scroll(0,r.state.scrollPosition)},r.renderCloseIcon=function(){var e=r.getClasses();return Object(kb.jsx)("div",{onClick:r.props.close,className:e("close-button"),children:Object(kb.jsx)(Ij,{name:"close",classModifiers:"big"})})},r.closePane=function(){return r.props.close(r.props.name)},r.unlisten=null,r.state={title:"",customClass:"",hideCloseLink:!1,classModifiers:"",hideHeader:!1,scrollPosition:0},r}return Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this;Bb.a.setAppElement(this.modalRef),this.unlisten=w.listen((function(t,n){"POP"===n&&e.props.isOpen&&e.props.close()}))}},{key:"componentDidUpdate",value:function(){var e=document.body.style.position;this.props.isOpen||"fixed"!==e||this.returnScrollPosition()}},{key:"componentWillUnmount",value:function(){this.unlisten(),this.unlisten=null}},{key:"getClasses",value:function(){return Db(["ap-sidepane",this.state.customClass])}},{key:"render",value:function(){var e=this,t=this.props,n=t.isOpen,r=t.name,a=t.data,c=this.state,i=c.hideCloseLink,s=c.classModifiers,o=Object(Hr.a)(c,["hideCloseLink","classModifiers"]),l=this.getClasses(),u=IF[r],d=navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod/i);return r&&!u?(console.error("SidePane Component named ".concat(r," not found")),null):Object(kb.jsx)("div",{className:l(null,s),ref:function(t){return e.modalRef=t},children:Object(kb.jsxs)(LL.a,Object(Y.a)(Object(Y.a)({className:l("container",s),overlayClassName:l("overlay",s),onAfterOpen:function(){d&&setTimeout((function(){e.setState({scrollPosition:window.pageYOffset}),document.body.style.position="fixed"}),1e3)},onRequestClose:this.closePane,isOpen:n},o),{},{children:[!i&&this.renderCloseIcon(),u&&Object(kb.jsx)(u,Object(Y.a)(Object(Y.a)({name:r,closeSidePane:this.closePane},a),{},{onSidePaneOpen:this.getPropsFromChild}))]}))})}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.isOpen){var n=document.getElementsByClassName("slide-pane__header")[0];n&&t.hideHeader&&n.classList.add("slide-pane__hide-header")}return t}}]),n}(r.Component));AF.defaultProps={customClass:"custom-sidepane"},AF.contextTypes={t:O.a.func.isRequired};var PF=Object(s.c)((function(e){var t=e.sidePane;return{isOpen:t.isOpen,name:t.name,data:t.data}}),(function(e){return{close:function(t){return e(yc(t))}}}))(AF),TF=function(){for(var e=!1,t=[Fe.a.documentationLink,Fe.a.SignupForm.termsAndServicesLink,Fe.a.SignupForm.privacyPolicyLink],n=0;n<t.length;n++)"/"!==t[n]&&window.location.href.includes(t[n])&&(e=!0);return e},EF=function(e,t){return(e.includes(".html")||e===Object(wb.a)("/"))&&Object(kb.jsx)(l.b,{exact:!0,path:e,component:t},e)},RF=function(){return!!window.location.href.includes("confirmWithdraw")||(!!window.location.href.includes("resetPass")||void 0)};var NF=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.waitUntilAuthDone,a=function(n){var a=n.shouldRedirect,c=n.redirectLocation,i=n.isAuthenticated,s=n.isPending;return r&&s?null:i?RF()?Object(kb.jsx)(e,Object(Y.a)({},n)):a?Object(kb.jsx)(l.a,{to:{pathname:c.pathname,search:c.search}}):Object(kb.jsx)(l.a,{to:Object(wb.a)("".concat(t,"?default=redirect"))}):Object(kb.jsx)(e,Object(Y.a)({},n))},c=function(e){return{isAuthenticated:e.auth.isAuthenticated,shouldRedirect:e.auth.shouldRedirect,redirectLocation:e.auth.location,isPending:e.auth.pending}};return Object(s.c)(c,null)(a)},MF="",DF=(n(1251),Db("standalone-modal")),LF=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){return Object(u.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"componentDidMount",value:function(){this.props.fetchConfirmWithdraw()}},{key:"render",value:function(){var e=this.context,t=this.props,n=t.processingConfirmWithdraw,r=t.message;return Object(kb.jsxs)("div",{className:"".concat(DF("wrapper")),children:[Object(kb.jsx)(Af,{customClass:DF("logo"),linkTo:"/"}),Object(kb.jsxs)("div",{className:"".concat(DF("container")),children:[Object(kb.jsx)("div",{className:"".concat(DF("body")),children:Object(kb.jsx)("div",{className:"".concat(DF("body-text")),children:e.t(r)})}),r&&Object(kb.jsx)(a.a.Fragment,{children:Object(kb.jsx)("div",{className:"".concat(DF("footer")),children:Object(kb.jsx)(Zj.a,{to:Object(wb.a)("".concat(MF)),className:DF("btn","additive"),children:e.t("Go to Exchange")})})}),Object(kb.jsx)(Vf,{isVisible:n,text:"Confirming your withdrawal"})]})]})}}]),n}(a.a.Component);LF.defaultProps={fetchConfirmWithdraw:function(){},processingConfirmWithdraw:!0,message:""},LF.contextTypes={t:O.a.func.isRequired};var FF={ConfirmWithdrawContainer:Object(s.c)((function(e){var t=e.apiProcessing.processingConfirmWithdraw,n=e.confirmWithdraw;return{processingConfirmWithdraw:t,message:n.message,error:n.error}}),(function(e){var t=jL("d1"),n=jL("UserId"),r=jL("verifycode");return{fetchConfirmWithdraw:function(){return e((a={verifycode:r,userid:n,d1:t},function(e){var t=a.verifycode,n=a.userid,r=a.d1;e(Nu);var c=atob(r),i={verifycode:t,UserId:Number(n)};fetch(c+"confirmwithdraw",{method:"POST",body:JSON.stringify(i)}).then((function(t){if(t.ok)return e(Mu({error:!1,message:Ae.c.extractT("Your withdrawal has been confirmed successfully and has started processing.")}));e(Mu({error:!0,message:Ae.c.extractT("Your withdrawal confirmation failed. Try clicking the link in the email you received again. Contact the exchange admin if the problem persists.")}))}))}));var a}}}))(LF),DepositConfirmationContainer:OL},UF=NF(function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(u.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).state={StandAloneComponent:void 0},e}return Object(d.a)(n,[{key:"componentWillMount",value:function(){return window.location.href.includes("verifyEmailSuccess")?this.setState({StandAloneComponent:FF.VerifyEmailSuccess}):window.location.href.includes("verifyEmailFailure")?this.setState({StandAloneComponent:FF.VerifyEmailFailure}):window.location.href.includes("verifyEmail")?this.setState({StandAloneComponent:FF.VerifyEmailContainer}):window.location.href.includes("confirmWithdraw")?this.setState({StandAloneComponent:FF.ConfirmWithdrawContainer}):window.location.href.includes("resetPass")?this.setState({StandAloneComponent:FF.ResetPasswordNoAuthFormContainer}):function(){var e=window.location.href,t=e.includes("id")&&e.includes("resourcePath");return!(!e.includes("txnState")&&!t)}()?this.setState({StandAloneComponent:FF.DepositConfirmationContainer}):function(){var e=Fe.a.LandingPage.forceLogIn;return(!e||!TF())&&!!window.location.href.includes(e?"":"login")}()?this.setState({StandAloneComponent:FF.StandaloneLoginContainer}):void 0}},{key:"render",value:function(){var e=this.state.StandAloneComponent;return e?Object(kb.jsx)(e,{}):null}}]),n}(a.a.Component),MF),BF=NF((function(){var e=Object(C.a)();return window.location.replace("/".concat(e,"/accounts/sign-in")),null}),Fe.a.LandingPage.defaultLoggedInRoute,{waitUntilAuthDone:!0}),zF=NF((function(){var e=Object(C.a)();return window.location.replace("/".concat(e,"/accounts/sign-up")),null}),Fe.a.LandingPage.defaultLoggedInRoute,{waitUntilAuthDone:!0}),GF=Fb({name:Zn})((function(e){var t=e.isOpen,n=e.close,r=Object(_j.a)().t;return Object(kb.jsx)(Aj,{title:Object(kb.jsx)("span",{children:r("Not sufficient funds")}),isOpen:t,close:n,children:Object(kb.jsx)(WF,{children:r("That's an error. Either you have insufficient funds, or the price went up in the meantime. Please use a lower amount and try again. If the problem persists, we would like to hear from you, our customer service is available to help you out.")})})})),WF=Object(Tb.a)("div",{target:"e179y8kc0"})("max-width:500px;font-size:",Tj.h.paragraph,";"),ZF=function(e){Object(b.a)(n,e);var t=Object(p.a)(n);function n(e){var r,a;return Object(u.a)(this,n),r=t.call(this,e),a=Fe.a.global.gateway,ve.gateway=a,ye(r.props.connectionOpened,r.props.connectionClosed),Js.start(),r}return Object(d.a)(n,[{key:"render",value:function(){var e=Object(Ni.get)(Fe.a,"MainMenu.exchange",!0),t=this.props.location.pathname;return Object(kb.jsxs)(kb.Fragment,{children:[Object(kb.jsx)("div",{className:"App fluid container",children:Object(kb.jsxs)(l.d,{children:[Object(kb.jsx)(l.b,{exact:!0,path:"/",component:BF}),EF(t,UF),Object(kb.jsx)(l.b,{path:Object(wb.a)("/login"),component:BF}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/signup"),component:zF}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/twofactorauth"),render:function(){return Object(kb.jsx)(ML,{})}}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/wallets"),component:sy}),e&&Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/trade/:instrumentSymbol?"),component:XP}),e&&Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/exchange"),component:XP}),e&&Object(kb.jsx)(l.b,{path:Object(wb.a)("/exchange/graph/:instrumentId"),component:aT}),e&&Object(kb.jsx)(l.b,{path:Object(wb.a)("/exchange/buy-sell/:instrumentId/:activeTab?"),component:pT}),Object(kb.jsx)(l.b,{path:"/:buyOrSell(buy|sell)/:product1?/:product2?",component:aO}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/buy-sell"),component:aO}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/transactions"),component:vE}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/settings"),component:US}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/deposit"),component:RM}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/deposit/:productId"),component:RM}),Object(kb.jsx)(l.b,{exact:!0,path:Object(wb.a)("/withdraw"),component:dL}),Object(kb.jsx)(l.b,{path:Object(wb.a)("/withdraw/:productId"),component:dL})]})}),Object(kb.jsx)(kL,{}),Object(kb.jsx)(PF,{}),Object(kb.jsx)(OL,{}),Object(kb.jsx)(GF,{})]})}}]),n}(r.Component),qF={onInit:H,connectionOpened:_l,connectionClosed:Hl},VF=Object(l.i)(Object(s.c)(null,qF)(ZF)),_F=n(121);t.default=function(e){gb.dispatch(e),new vb,N({locale:Fe.a.global.locale,getDecimalPlaces:function(){return gb.getState().product.decimalPlaces}}),Object(Cb.c)(gb.getState().user.zmUserInfo.zmUserId);var t=Object(Cb.a)();t?i.a.render(Object(kb.jsx)(yb.a,{appsignal:t,fallback:function(){return Object(kb.jsx)("h1",{children:"Something went wrong. Please refresh the page"})},children:Object(kb.jsxs)(r.Suspense,{fallback:"",children:[Object(kb.jsx)(JO.a,{styles:_F.a}),Object(kb.jsx)(s.a,{store:gb,children:Object(kb.jsx)(o.a,{history:w,children:Object(kb.jsx)(v,{children:Object(kb.jsx)(l.c,{history:w,children:Object(kb.jsx)(VF,{})})})})})]})}),document.getElementById("root")):i.a.render(Object(kb.jsxs)(r.Suspense,{fallback:"",children:[Object(kb.jsx)(JO.a,{styles:_F.a}),Object(kb.jsx)(s.a,{store:gb,children:Object(kb.jsx)(o.a,{history:w,children:Object(kb.jsx)(v,{children:Object(kb.jsx)(l.c,{history:w,children:Object(kb.jsx)(VF,{})})})})})]}),document.getElementById("root"))}},349:function(e,t,n){},350:function(e,t,n){},404:function(e,t,n){},412:function(e,t,n){},421:function(e,t,n){},479:function(e,t,n){},480:function(e,t,n){},485:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-buy-sell.4f244fcc.svg"},486:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-exchange.413faf22.svg"},487:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-transactions.b9c1721b.svg"},488:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-dashboard-on.e7d76f42.svg"},489:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-trading.804f9f05.svg"},490:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-user.599705c5.svg"},491:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-settings.f73f9940.svg"},492:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-wallet.df734a73.svg"},493:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-balance.5673e01c.svg"},494:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-home.6f839d47.svg"},495:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-market.0a505297.svg"},496:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-activity.918fee6d.svg"},497:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-contacts.7531627f.svg"},498:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-key.28178c17.svg"},499:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-reports.e8ae8a2b.svg"},500:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-security.e2650bbc.svg"},501:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-tasks.a89c61e2.svg"},502:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-heart.b389a47b.svg"},503:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-friends.b18e34d9.svg"},504:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-paint.11ca0797.svg"},505:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-send-with-border.85492f37.svg"},506:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-receive-with-border.06ce86b3.svg"},507:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-deposit-with-border.6690359e.svg"},508:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-withdraw-with-border.853b6a8b.svg"},509:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-send-token.f5426bcf.svg"},510:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-receive-token-qr.0cd3428a.svg"},511:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-open-buy-big.ba37282a.svg"},512:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-open-sell-big.b81f9d0a.svg"},513:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-caret-prev.8e5d5529.svg"},514:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-caret-next.6f4d1b6b.svg"},515:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-double-caret-prev.7e75b1ff.svg"},516:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-double-caret-next.582a5739.svg"},517:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-dropdown.ccd50a1c.svg"},518:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-barcode.9990d007.svg"},519:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-calendar.b1037927.svg"},520:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-eye.3980ec1c.svg"},521:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-info.d25cbcd5.svg"},522:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-cancel.e7c5f5be.svg"},523:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-download.e14dba02.svg"},524:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-download2.bdd22945.svg"},525:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-check.348bbd78.svg"},526:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-simple-check.a628e49b.svg"},527:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-refresh.d9789d82.svg"},528:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-close.fae19b2a.svg"},529:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-buy.4033b734.svg"},530:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-sell.2640613f.svg"},531:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-send.56a81199.svg"},532:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-receive.378e0d50.svg"},533:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-deposit.04c5eb61.svg"},534:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-withdraw.083295e0.svg"},535:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-copy.64354370.svg"},536:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-star.a65dc6cb.svg"},537:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-filled-star.877b53d0.svg"},538:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-stop.b414477f.svg"},539:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-search.dec0ebe8.svg"},540:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-clear.6f395806.svg"},541:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-export.bdd22945.svg"},542:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-warning-check.725c0d40.svg"},543:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-green-check.a0d08501.svg"},544:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/logo-powered.0fb07d89.svg"},545:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-nav-notification.9755cc82.svg"},546:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-center.8e23b43d.svg"},547:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-checkbox.5beccde5.svg"},548:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-menu-toggle.9c1baaf1.svg"},549:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-key-big.0a7df53d.svg"},550:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-arrow-prev.f452b1ec.svg"},551:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-arrow-next.088037be.svg"},552:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-pending.edadccf7.svg"},553:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-settings.37d6a7a0.svg"},554:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-alert.287b8810.svg"},555:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-menu.e6295a74.svg"},556:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-plus.4443642c.svg"},557:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-tick.1934bece.svg"},558:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-x.478a35fb.svg"},559:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-conversion.5030fd8b.svg"},560:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/icon-world.b37b5e3c.svg"},561:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/US.8cc70d39.svg"},562:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/GB.aac36550.svg"},563:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/CN.fc16898d.svg"},564:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/ID.ae688c03.svg"},565:function(e,t,n){"use strict";n.r(t),t.default=n.p+"static/media/TH.38af9a72.svg"},566:function(e,t,n){},611:function(e,t,n){},612:function(e,t,n){},613:function(e,t,n){},617:function(e,t,n){},618:function(e,t,n){},653:function(e,t,n){"use strict";n.r(t),t.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIplJREFUeAHdnXnQX1V5x9+EPVG2QAA1NYHAwAQc0Y5IrTZ1QRaZgjMilimmLK4MCMO0aFVS1D9cBiuSMmwhbEGgUOhYMtQFtTMg2AgzFWesmIZFkB1BdiX9fi7v9+2Tk+fce3+/9/cmwTNz33Pus5/nOc9Z7v39fu+0sT+Scu65587YZJNNXrPZZpttP23atPnq1nYvvfTSEWq/efr06TM23XTTae7qmjVrxn7/+9+vEf6ZP/zhDyu32mqrK3X/hOB3Pffcc4+K7oGPfvSjz5j+lVxPdPqV1Ikzzzxzq+22227+5ptvvq8C+CYFcIHs300Bmq32TAV5THCCOKYgjhFQiuvmRn+gEf2YBkaDe+GFF6B/WvAHhf6Vgn+n6p8Kfvt999131+LFi58z7yulfsUE+Pzzz583Y8aMtysg79b1Fjl4ngK8OUEiiL5wPO2ylMGt4R10Am/ZL7744guiX6WA36b6u48++uh/nnzyyatLGRvj/UYd4HPOOWfuNttsc7Cm17+S8/ZTPLfB6XJ4E8Ra0DJ4BosByfCGOeiyo9GrjH5CvLd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DljIAqbWxekJ2/ofoL7nlllu+p9PCum9bzLgB6o0uwNEH+sbcXB1zDlKWHCaH7qcpcBvwXkOzIPSFRT1dPASSTCWo0CqofCXjVrWv0zHrBu0n7o7yNqb2Rh3g6Khzzjlnrqbvd8jR7xb8Larn6fizOY5n3eYi8F3BijJpl/QE0wG1bM0eL0j+/wp+q+rvaff9o5NPPnl1KWtjvH/FBDg678wzz9xKLxJ2E2xfBeHNqhfo2lUB2EnXTM69BImA14KOPGi4nJmcm1WeVhAfFHyVgn+n2iul43bthH/lnweE6JVSXpEBzpyrH7/mC0C76Hw9S4Gar+Bsp+B8QLA3K4AzFSTF7OXukrXCrVFmEsyVGhBXq35cdHdpQDy6cuXKB84777yRvtXJbF4fsP8D0jQsw8YlDtAAAAAASUVORK5CYII="},669:function(e,t,n){},888:function(e,t,n){},889:function(e,t,n){},890:function(e,t,n){},891:function(e,t,n){},892:function(e,t,n){},907:function(e,t,n){},908:function(e,t,n){},909:function(e,t,n){},910:function(e,t,n){},911:function(e,t,n){},912:function(e,t,n){},981:function(e,t,n){},999:function(e,t,n){}}]);
  //# sourceMappingURL=3.2e642df1.chunk.js.map