PageSourceSearch

https://webtrader.cmsprime.com/web/assets/js/4980.chunk.60e0a5be.js

js cmsprime.com collected 2026-09-24 13:10:22 UTC 40,072 bytes, 1 lines download raw bytes

1(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["4980"],{79587:function(e,t,n){var r=n(60614),o=n(70111),i=n(27674);e.exports=function(e,t,n){var a,c;return i&&r(a=t.constructor)&&a!==n&&o(c=a.prototype)&&c!==n.prototype&&i(e,c),e}},53111:function(e,t,n){var r=n(1702),o=n(84488),i=n(41340),a=n(81361),c=r("".replace),l=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(t){var n=i(o(t));return 1&e&&(n=c(n,l,"")),2&e&&(n=c(n,s,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},81361:function(e){e.exports="	\n\v\f\r \xa0               \u2028\u2029\uFEFF"},14485:function(e,t,n){"use strict";n.d(t,{HZ:()=>y,K$:()=>u});var r=n(81993);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}var l={visibility:{}},s=new(function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n,r;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=i(n=t),o(e=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,c()?Reflect.construct(n,[],i(this).constructor):n.apply(this,r)),"setVisibility",function(t,n){var r,i;e.context.visibility=(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}({},e.context.visibility),i=null!=(i=o({},t,n))?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}),r)}),o(e,"getVisibility",function(t){return e.context.visibility[t]}),e.context=l,e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e),t}(r.default)),u=function(e){return(0,r.useService)(s,function(t){return t.visibility[e]})},f=n(43545);function p(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,c,"next",e)}function c(e){p(i,r,o,a,c,"throw",e)}a(void 0)})}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){var s=[c,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var y=new function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");h(this,"initAccountBalanceVisibility",function(e){return d(function(){return b(this,function(t){switch(t.label){case 0:return[4,f.VM.getUserPreference({type:e,category:f.iQ.UI_PREFERENCE},{onSuccess:function(t){if(t&&t.length>0){var n="true"===t[0].value;s.setVisibility(e,n)}t&&0===t.length&&s.setVisibility(e,!0)},onError:function(){}})];case 1:return t.sent(),[2]}})})()}),h(this,"toggleAccountBalanceVisibility",function(e){return d(function(){var t,n,r;return b(this,function(o){switch(o.label){case 0:return r=!(n=null!=(t=s.getVisibility(e))&&t),s.setVisibility(e,r),[4,f.VM.updateUserPreference({type:e,category:f.iQ.UI_PREFERENCE,value:r?"true":"false"},{onSuccess:function(){},onError:function(){s.setVisibility(e,n)}})];case 1:return o.sent(),[2]}})})()})}},67610:function(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>tu});var r,o=n(74512),i=n(32735),a=n(10281),c=n(82647),l=n(71225),s=n(479),u=n(98435),f=n(3051),p=n(1403),d=n(81182),h=n(62715),b=n(86544),y=n(38074),v=(0,b.Y)(function(e){var t,n,r=e.header,i=e.suffix,a=e.dataTestId,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["header","suffix","dataTestId"]);return(0,o.jsxs)(g,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({"data-testid":a},c),n=n={children:[(0,o.jsx)(m,{typography:h.wZ.TEXT_M_MEDIUM,children:r}),i&&(0,o.jsx)(x,{children:i})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}),g=a.ZP.div.withConfig({componentId:"sc-8371bb68-0"})(["padding:","px ","px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid ",";border-bottom:1px solid ",";background:",";"],l.A.XS,l.A.REGULAR,function(e){return e.theme.themeColors.border.default},function(e){return e.theme.themeColors.border.default},function(e){return e.theme.themeColors.background.subtle}),m=(0,a.ZP)(y.ZP).withConfig({componentId:"sc-8371bb68-1"})(["color:",";"],function(e){return e.theme.themeColors.text.default}),x=a.ZP.div.withConfig({componentId:"sc-8371bb68-2"})([""]),O=a.zo.div.withConfig({componentId:"sc-848160a5-0"})(["display:flex;padding:","px;flex-direction:column;align-items:flex-start;row-gap:","px;"],l.A.M,l.A.XXS),w=(0,a.zo)(y.ZP).withConfig({componentId:"sc-848160a5-1"})(["color:",";"],function(e){return e.theme.themeColors.primary}),j=(0,a.zo)(y.ZP).withConfig({componentId:"sc-848160a5-2"})(["color:",";"],function(e){return e.theme.themeColors.text.subtle}),S=(0,a.zo)(y.ZP).withConfig({componentId:"sc-848160a5-3"})(["color:",";"],function(e){return e.theme.themeColors.text.strong});n(92222),n(57327),n(41539),n(21249);var A=n(43545),C=n(21312),E=n(6807),I=n(6053),T=n(14485),P=n(66425),_=n(81993),D=n(7829),L=n(17609),M=n(24861),k=n(33481),N=n(13589),Z=n(42014);n(32564);var R=n(96838),U=n(15226),F=n(19554),B=n(76898);function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}let G=function(){var e,t=(0,d.$G)().t,n=(0,L.MO)(["userId","serverId","accountNumber"])||{},r=n.userId,a=n.serverId,c=n.accountNumber,l=(0,p.Vs)(),s=(0,I.gp)(),u=(0,I.lE)().isKycAlertVisible,f=(0,T.K$)(A.Gt.SHOW_ASSET_ACCOUNT_BALANCE),b=(0,F.DI)(),y=(e=(0,i.useState)(!1),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return H(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=y[0],g=y[1],m=(0,i.useMemo)(function(){return l&&r&&a&&c?"".concat(B.V.ASSET_BALANCE_VISIBILITY_TOOLTIP_SEEN,":").concat(l,":").concat(r,":").concat(a,":").concat(c):null},[l,r,a,c]);(0,i.useEffect)(function(){m&&(!1!==f||B.Z.getItem(m)?g(!1):g(!0))},[f,m]);var x=(0,i.useCallback)(function(){g(!1),B.Z.setItem(m,!0)},[m]);return(0,i.useEffect)(function(){if(v){var e=setTimeout(function(){document.addEventListener("click",x)},0);return function(){clearTimeout(e),document.removeEventListener("click",x)}}},[v,x]),(0,o.jsxs)(V,{children:[(0,o.jsx)(j,{typography:h.wZ.TEXT_M_REGULAR,dataTestId:"".concat(E.Of.ASSET_ACCOUNT_INFO_ID,"-label"),children:t("Account ID",{context:"asset"})}),(0,o.jsx)(U.Z,{variant:U.q.BASE,content:(0,o.jsxs)(Y,{onClick:function(e){return e.stopPropagation()},children:[(0,o.jsx)(z,{typography:h.wZ.TEXT_S_REGULAR,children:t("Go to settings to show/hide user information")}),(0,o.jsx)(W,{children:(0,o.jsx)(R.ZP,{variant:R.eF.FILLED_THEMED,size:"small",onClick:x,children:t("Got it")})})]}),placement:"right",trigger:"manual",visible:v,interactive:!0,children:(0,o.jsx)(X,{typography:h.wZ.TEXT_M_MEDIUM,dataTestId:"".concat(E.Of.ASSET_ACCOUNT_INFO_ID,"-value"),children:u?"-":b(s)})})]})};var V=a.zo.div.withConfig({componentId:"sc-495a949f-0"})(["display:flex;justify-content:space-between;align-items:center;padding-left:","px;"],l.A.M),Y=a.zo.div.withConfig({componentId:"sc-495a949f-1"})(["display:flex;flex-direction:column;gap:","px;padding:","px ","px;"],l.A.XS,l.A.XS,l.A.M),X=(0,a.zo)(S).withConfig({componentId:"sc-495a949f-2"})(["padding-right:","px;"],l.A.M),z=(0,a.zo)(y.ZP).withConfig({componentId:"sc-495a949f-3"})(["color:",";"],function(e){return e.theme.themeColors.background.default}),W=a.zo.div.withConfig({componentId:"sc-495a949f-4"})(["display:flex;justify-content:flex-end;"]);let $=function(){var e=(0,d.$G)().t,t=(0,L.ij)(["balance","buyingPower"]),n=t.balance,r=t.buyingPower,a=((0,L.MO)(["leverage"])||{}).leverage,c=(0,p.jO)(),l=c.isHorizon,s=c.isCentroid,u=(0,_.useService)(P.N,function(e){return e.accountStatistic})||{},f=u.realisedProfit,b=void 0===f?0:f,y=u.deposit,v=void 0===y?0:y,g=u.withdrawal,m=void 0===g?0:g,x=u.credit,O=void 0===x?0:x,w=(0,L.ln)(),R=(0,M.j)(null==w?void 0:w.baseCurrency),U=(0,I.lE)().isKycAlertVisible,F=(0,i.useMemo)(function(){return b>0?"+":""}
1,[b]),B=(0,T.K$)(A.Gt.SHOW_ASSET_ACCOUNT_BALANCE),H=(0,i.useMemo)(function(){return U?"-":B?"1:".concat(a):C.A},[U,B,a]),V=(0,i.useCallback)(function(e){return B?(0,k.Wi)(e,2,!1,!1,!1,R):C.A},[B,R]),Y=(0,i.useMemo)(function(){return[s?null:{label:e("Leverage"),value:H,dataTestId:E.Of.ASSET_ACCOUNT_INFO_LEVERAGE},{label:e("Available Balance"),value:V(n),dataTestId:E.Of.ASSET_ACCOUNT_INFO_BALANCE},{label:e("Realised Profit/Loss"),value:B?(0,o.jsxs)(Z.g,{typography:h.wZ.TEXT_M_MEDIUM,profitLoss:(0,N.Ov)(b),children:[F,V(b)]}):C.A,dataTestId:E.Of.ASSET_ACCOUNT_INFO_PNL},l?{label:e("Buying Power"),value:V(r),dataTestId:E.Of.ASSET_ACCOUNT_INFO_BUYING_POWER}:{label:e("Credit"),value:V(O),dataTestId:E.Of.ASSET_ACCOUNT_INFO_CREDIT},{label:e("Deposit"),value:V(v),dataTestId:E.Of.ASSET_ACCOUNT_INFO_DEPOSIT},{label:e("Withdrawal"),value:V(m),dataTestId:E.Of.ASSET_ACCOUNT_INFO_WITHDRAWAL}].filter(Boolean)},[s,e,H,V,n,B,b,F,l,r,O,v,m]);return(0,i.useEffect)(function(){D.r.getAccountStatistics()},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(G,{}),Y.map(function(e){return(0,o.jsxs)(K,{children:[(0,o.jsx)(j,{typography:h.wZ.TEXT_M_REGULAR,dataTestId:"".concat(e.dataTestId,"-label"),children:e.label}),(0,o.jsx)(S,{typography:h.wZ.TEXT_M_MEDIUM,dataTestId:"".concat(e.dataTestId,"-value"),children:e.value})]},e.label)})]})};var K=a.zo.div.withConfig({componentId:"sc-da9decb4-0"})(["display:flex;justify-content:space-between;align-items:center;padding:0px ","px;"],l.A.M);let q=function(){var e=(0,d.$G)().t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{header:e("Account Information")}),(0,o.jsxs)(Q,{children:[(0,o.jsx)(J,{typography:h.wZ.TEXT_L_MEDIUM,children:e("Assets")}),(0,o.jsx)($,{})]})]})};var Q=a.zo.div.withConfig({componentId:"sc-11743290-0"})(["display:flex;flex-direction:column;row-gap:","px;padding:","px 0px;"],l.A.XS,l.A.M),J=(0,a.zo)(w).withConfig({componentId:"sc-11743290-1"})(["padding-left:","px;"],l.A.M);n(47941);var ee=n(45954),et=n(25932);n(63045),n(92274);var en=n(33007),er=n(6454);function eo(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ea=new function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");ei(this,"remoteChart",void 0),ei(this,"init",function(e){var r;return(r=function(){var t,r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){var s=[c,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n.e("5645").then(n.t.bind(n,74363,23))];case 1:return t=o.sent(),[3,3];case 2:return console.warn("Remote chart module not available:",o.sent()),[2];case 3:return(r=new t.default).init({token:B.Z.getItem(B.V.TOKEN),type:er.zm.ASSETS,assetsStatistic:e,colors:en.MQ.context.theme.themeColors}),this.remoteChart=r,[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){eo(i,n,o,a,c,"next",e)}function c(e){eo(i,n,o,a,c,"throw",e)}a(void 0)})}).call(t)}),ei(this,"reset",function(){var e;null==(e=t.remoteChart)||e.reset(),t.remoteChart=void 0})};let ec=function(e){var t=e.dailyStatistics;return(0,i.useEffect)(function(){return ea.init(t),function(){ea.reset()}},[t]),(0,o.jsx)(el,{children:(0,o.jsx)("div",{id:"daily-assets-chart"})})};var el=a.ZP.div.withConfig({componentId:"sc-f3e19d20-0"}
1)(["height:100%;width:100%;"]);let es=function(){var e=(0,d.$G)(),t=e.t,n=e.i18n.language,r=(0,_.useService)(P.N,function(e){return e.dailyStatistics}),a=(0,_.useService)(P.N,function(e){return e.dailyStatisticLoading});(0,i.useEffect)(function(){D.r.getDailyStatistics()},[]);var c=(0,i.useMemo)(function(){return a?(0,o.jsx)(ee.ZP,{visible:a,absolute:!0}):r&&0!==Object.keys(r).length&&r.totalAssetWorth?(0,o.jsx)(ec,{dailyStatistics:r},"asset-chart-".concat(n)):(0,o.jsx)(et.Z,{variant:et.R.NO_DATA_TO_DISPLAY})},[r,a,n]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{header:t("My Portfolio")}),(0,o.jsx)(O,{children:(0,o.jsx)(eu,{children:c})})]})};var eu=a.ZP.div.withConfig({componentId:"sc-cb6e418c-0"})(["height:170px;width:100%;"]),ef=n(56749);let ep=function(e){var t=e.profitStatistics;return(0,i.useEffect)(function(){return ef.o.init(t),function(){ef.o.reset()}},[t]),(0,o.jsx)(ed,{children:(0,o.jsx)("div",{id:"profit-loss-chart"})})};var ed=a.ZP.div.withConfig({componentId:"sc-7a8772fb-0"})(["height:100%;width:100%;"]);let eh=function(){var e=(0,d.$G)(),t=e.t,n=e.i18n.language,r=(0,_.useService)(P.N,function(e){return e.profitStatisticLoading}),a=(0,_.useService)(P.N,function(e){return e.profitStatistics});(0,i.useEffect)(function(){D.r.getProfitStatistics(14)},[]);var c=(0,i.useMemo)(function(){return r?(0,o.jsx)(ee.ZP,{visible:r,absolute:!0}):0===a.length?(0,o.jsx)(ey,{children:(0,o.jsx)(et.Z,{variant:et.R.NO_DATA_TO_DISPLAY})}):(0,o.jsx)(ep,{profitStatistics:a},"profit-loss-chart-".concat(n))},[r,a,n]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{header:t("Profit/Loss")}),(0,o.jsxs)(eb,{children:[(0,o.jsx)(ev,{typography:h.wZ.TEXT_M_MEDIUM,children:t("P/L Statistics for Past 14 days")}),(0,o.jsx)(eg,{children:c})]})]})};var eb=a.ZP.div.withConfig({componentId:"sc-a6931e03-0"})(["display:flex;padding:","px;padding-inline-end:0;flex-direction:column;align-items:flex-start;row-gap:","px;"],l.A.M,l.A.M),ey=a.ZP.div.withConfig({componentId:"sc-a6931e03-1"})(["align-self:center;"]),ev=(0,a.ZP)(y.ZP).withConfig({componentId:"sc-a6931e03-2"})(["color:",";"],function(e){return e.theme.themeColors.text.default}),eg=a.ZP.div.withConfig({componentId:"sc-a6931e03-3"})(["height:180px;width:100%;"]),em=n(80199),ex=n(97186),eO=n(88651),ew=n(16689),ej=n(56740);function eS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eA(e){return(eA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eC(e,t){return(eC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eE=function(){return!!e})()}var eI={isLoading:!1,histories:void 0,selectedUuid:void 0},eT=new(function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n,r;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return n=eA(n=t),eS(e=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,eE()?Reflect.construct(n,[],eA(this).constructor):n.apply(this,r)),"setLoading",function(t){e.context.isLoading=t}),eS(e,"setHistories",function(t){e.context.histories=t}),eS(e,"setUuid",function(t){e.context.selectedUuid=t}),eS(e,"getUuid",function(){return e.context.selectedUuid}),eS(e,"reset",function(){e.context=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){eS(e,t,n[t])})}return e}({},eI)}),e.context=eI,e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eC(t,e),t}(_.default)),eP=((r={}).DAILY="DAILY",r.MONTHLY="MONTHLY",r),e_=n(73407);let eD={exportStatementDaily:function(e,t){return e_.WY.get("/api/trade/statement/export/v1/daily",{params:e,signal:t,responseType:"blob"})},exportStatementMonthly:function(e,t){return e_.WY.get("/api/trade/statement/export/v1/monthly",{params:e,signal:t,responseType:"blob"})},exportStatementHistories:function(e){return e_.WY.get("/api/trade/statement/v1/histories",{signal:e})}};function eL(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}function eM(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){eL(i,r,o,a,c,"next",e)}function c(e){eL(i,r,o,a,c,"throw",e)}a(void 0)})}}function ek(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eN(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){var s=[c,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var eZ=new function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");ek(this,"statementDailyAC",void 0),ek(this,"statementMonthlyAC",void 0),ek(this,"statementHistoriesAC",void 0),ek(this,"exportStatementDaily",function(e){return eM(function(){var t,n,r,o,i;return eN(this,function(a){switch(a.label){case 0:t=e.params,n=e.callbacks,a.label=1;case 1:return a.trys.push([1,3,4,5]),null==(r=this.statementDailyAC)||r.abort(),this.statementDailyAC=new AbortController,[4,eD.exportStatementDaily(t,this.statementDailyAC.signal)];case 2:return a.sent(),n.onSuccess(),[3,5];case 3:return o=a.sent(),n.onError(o),[3,5];case 4:return null==(i=n.onFinally)||i.call(n),[7];case 5:return[2]}})}).call(t)}),ek(this,"exportStatementMonthly",function(e){return eM(function(){var t,n,r,o,i;return eN(this,function(a){switch(a.label){case 0:t=e.params,n=e.callbacks,a.label=1;case 1:return a.trys.push([1,3,4,5]),null==(r=this.statementMonthlyAC)||r.abort(),this.statementMonthlyAC=new AbortController,[4,eD.exportStatementMonthly(t,this.statementMonthlyAC.signal)];case 2:return a.sent(),n.onSuccess(),[3,5];case 3:return o=a.sent(),n.onError(o),[3,5];case 4:return null==(i=n.onFinally)||i.call(n),[7];case 5:return[2]}})}).call(t)}),ek(this,"exportStatementHistories",function(e){return eM(function(){var t,n,r,o;return eN(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),null==(t=this.statementHistoriesAC)||t.abort(),this.statementHistoriesAC=new AbortController,[4,eD.exportStatementHistories(this.statementHistoriesAC.signal)];case 1:return n=i.sent().result,e.onSuccess(n),[3,4];case 2:return r=i.sent(),e.onError(r),[3,4];case 3:return null==(o=e.onFinally)||o.call(e),[7];case 4:return[2]}})}).call(t)})};function eR(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}function eU(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){eR(i,r,o,a,c,"next",e)}function c(e){eR(i,r,o,a,c,"throw",e)}a(void 0)})}}function eF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){eF(e,t,n[t])})}return e}function eH(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function eG(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){var s=[c,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var eV=new function e(){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");eF(this,"exportDaily",function(e){return eU(function(){var t,n;return eG(this,function(r){switch(r.label){case 0:return t=e.params,n=e.callbacks,eT.setLoading(!0),[4,eZ.exportStatementDaily({params:t,callbacks:eH(eB({},n),{onFinally:function(){var e;eT.setLoading(!1),null==(e=n.onFinally)||e.call(n)}})})];case 1:return r.sent(),[2]}})})()}),eF(this,"exportMonthly",function(e){return eU(function(){var t,n;return eG(this,function(r){switch(r.label){case 0:return t=e.params,n=e.callbacks,eT.setLoading(!0),[4,eZ.exportStatementMonthly({params:t,callbacks:eH(eB({},n),{onFinally:function(){var e;eT.setLoading(!1),null==(e=n.onFinally)||e.call(n)}})})];case 1:return r.sent(),[2]}})})()}),eF(this,"exportHistories",function(e){return eU(function(){return eG(this,function(t){switch(t.label){case 0:return eT.setLoading(!0),[4,eZ.exportStatementHistories(eH(eB({},e),{onSuccess:function(e){e&&eT.setHistories(e)},onFinally:function(){var t;eT.setLoading(!1),null==(t=e.onFinally)||t.call(e)}}))];case 1:return t.sent(),[2]}})})()})},eY=n(99773),eX=n(84823),ez=n(36333),eW=n(79191),e$=n(64989);function eK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eq(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}var eQ=eX.Ry().shape({exportRange:eX.nK().required(e$.pw),selectedDate:eX.hT().required(e$.pw)}),eJ=function(){var e,t=(0,d.$G)().t,n=(0,ez.w)({resolver:(0,eY.X)(eQ),mode:"onBlur",defaultValues:{exportRange:eP.DAILY,selectedDate:new Date}}),r=n.reset,o=n.watch,a=n.setValue,c=n.getValues,l=n.formState.errors,s=(e=o(["exportRange","selectedDate"]),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return eK(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eK(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],f=s[1],p=(0,i.useMemo)(function(){return[{label:t("Daily"),value:eP.DAILY},{label:t("Monthly"),value:eP.MONTHLY}]},[t]),h=(0,i.useCallback)(function(e){a("exportRange",e),eT.setUuid(void 0),e===eP.DAILY&&a("selectedDate",new Date)},[a]);return{errors:l,exportRange:u,exportRangeOptions:p,getValues:c,handleDateChange:(0,i.useCallback)(function(e){a("selectedDate",e)},[a]),handleExportPDF:(0,i.useCallback)(function(e){var t;return(t=function(){var t;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){var s=[c,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(n){switch(n.label){case 0:if(t=eT.getUuid(),e!==eP.DAILY)return[3,2];return[4,eV.exportDaily({params:{uuid:t},callbacks:{onError:function(e){(0,eW.c2)(e)},onSuccess:function(){(0,eW.y_)()}}})];case 1:return n.sent(),[3,4];case 2:if(e!==eP.MONTHLY)return[3,4];return[4,eV.exportMonthly({params:{uuid:t},callbacks:{onError:function(e){(0,eW.c2)(e)},onSuccess:function(){(0,eW.y_)()}}})];case 3:n.sent(),n.label=4;case 4:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){eq(i,r,o,a,c,"next",e)}function c(e){eq(i,r,o,a,c,"throw",e)}a(void 0)})})()},[]),handleExportRangeChange:h,reset:r,selectedDate:f}};function e0(e,t,n,r,o,i,a){try{var c=e[i](a),l=c.value}catch(e){n(e);return}c.done?t(l):Promise.resolve(l).then(r,o)}var e1=function(e){var t=e.isLoading,n=e.exportRange,r=e.handleExportPDF,a=e.onCancel,c=(0,d.$G)().t,l=(0,i.useCallback)(function(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){var s=[c,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,r(n)];case 1:return e.sent(),a(),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){e0(i,r,o,a,c,"next",e)}function c(e){e0(i,r,o,a,c,"throw",e)}a(void 0)})})()},[n,r,a]);return(0,o.jsx)(e2,{children:(0,o.jsx)(e4,{children:(0,o.jsxs)(e3,{children:[(0,o.jsx)(R.ZP,{variant:R.eF.OUTLINED,onClick:a,loading:t,children:c("Cancel")}),(0,o.jsx)(R.ZP,{variant:R.eF.FILLED_THEMED,onClick:l,loading:t,children:c("Export")})]})})})}
1,e2=a.zo.div.withConfig({componentId:"sc-4c541e5d-0"})(["width:100%;"]),e4=a.zo.div.withConfig({componentId:"sc-4c541e5d-1"})(["display:flex;justify-content:end;padding:20px;gap:","px;"],l.A.XS),e3=a.zo.div.withConfig({componentId:"sc-4c541e5d-2"})(["display:flex;gap:","px;"],l.A.XS);n(15306),n(74916),n(69826);var e5=n(30838),e8=n(18354),e6=n(67492),e9=n(82337),e7={zIndex:9999},te=function(e){var t,n,r,a,l=e.errors,u=e.exportRange,f=e.exportRangeOptions,p=e.handleDateChange,h=e.handleExportRangeChange,b=e.histories,y=e.isLoading,v=e.selectedDate,g=(0,d.$G)(),m=g.i18n,x=g.t,O=(0,i.useMemo)(function(){return u===eP.DAILY},[u]),w=(0,i.useMemo)(function(){return O?null==b?void 0:b.dailyList:null==b?void 0:b.monthlyList},[O,null==b?void 0:b.dailyList,null==b?void 0:b.monthlyList]),j=(0,i.useMemo)(function(){var e;return(null==(e=m.language)?void 0:e.replace("_","-"))||"en_US"},[m.language]),S=(0,i.useMemo)(function(){return O?e9.LU:e9.nz},[O]),A=(0,i.useCallback)(function(e){var t=e.date,n=(0,e9.ZP)(t);return!n.isSame((0,e9.ZP)(),O?"day":"month")&&!(null==w?void 0:w.some(function(e){return e.time===n.format(S)}))},[S,O,w]),C=(0,i.useCallback)(function(e){var t=(0,e9.ZP)(e).format(S),n=null==w?void 0:w.find(function(e){return e.time===t});n?eT.setUuid(n.uuid):eT.setUuid(void 0)},[S,w]);return(0,o.jsxs)(tt,{children:[(0,o.jsx)(e8.e1,{variant:e8.vI.ITEM_WITH_FIELD_LABEL,label:x("Export Range"),children:(0,o.jsx)(e6.Z,{options:f,onSelect:h,dropdownPlacement:c.s1.BOTTOM_START,selectedValue:u,placeholder:x("Select an option"),error:null==(r=l.exportRange)?void 0:r.message,disabled:y})}),(0,o.jsx)(e8.e1,{variant:e8.vI.ITEM_WITH_FIELD_LABEL,label:x(u===eP.MONTHLY?"Select Month":"Select Date"),children:(0,o.jsx)(e5.Z,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({variant:e5.n.SINGLE,value:v,onSelect:p,error:null==(a=l.selectedDate)?void 0:a.message,dropdownProps:{dropdownPlacement:(0,s.dZ)()?c.s1.BOTTOM_END:c.s1.BOTTOM_START,dropdownWidth:"300px",style:e7}},u===eP.MONTHLY&&{view:"year",dateFormat:e9.vo,maxDetail:"year"}),n=n={locale:j,disabled:y,tileDisabled:A,onClickDay:C,onClickMonth:C,showNeighboringCentury:!1,minDetail:"month"},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))})]})},tt=a.ZP.div.withConfig({componentId:"sc-9b12f0bc-0"})(["display:flex;flex-direction:column;gap:","px;width:376px;padding:","px ","px ","px ","px;"],l.A.M,l.A.XL,l.A.L,l.A.XXS,l.A.L),tn=function(e){var t=e.onCancel,n=(0,d.$G)().t,r=(0,_.useService)(eT,function(e){return{isLoading:e.isLoading,histories:e.histories}}),a=r.isLoading,c=r.histories,l=eJ(),s=l.errors,u=l.exportRange,f=l.exportRangeOptions,p=l.handleDateChange,h=l.handleExportPDF,b=l.handleExportRangeChange,y=l.reset,v=l.selectedDate;return(0,i.useEffect)(function(){eV.exportHistories({onError:function(e){ej.Yu.showAlert({messageType:ew.KK.ERROR,message:e.message})},onSuccess:function(){ej.Yu.showAlert({messageType:ew.KK.SUCCESS,message:n("Success")})}})},[n]),(0,i.useEffect)(function(){return function(){y(),eT.reset()}},[y]),(0,o.jsx)(ex.ZP,{variant:ex.KH.CONFIRMATION,modalTitle:n("Export Statement"),footer:(0,o.jsx)(e1,{exportRange:u,handleExportPDF:h,isLoading:a,onCancel:t,selectedDate:v}),children:(0,o.jsx)(tr,{children:(0,o.jsx)(te,{errors:s,exportRange:u,exportRangeOptions:f,handleDateChange:p,handleExportRangeChange:b,histories:c,isLoading:a,selectedDate:v})})})},tr=a.ZP.div.withConfig({componentId:"sc-d7bddbee-0"})(["width:100%;"]),to=function(){var e=function(e){e()};(0,eO.ZP)(function(t){return(0,o.jsx)(tn,{onCancel:function(){return e(t)}})})};let ti=function(){var e=(0,en.VC)().theme,t=(0,d.$G)().t,n=((0,L.fk)()||{}).balance,r=(0,p.jO)().isCentroid,a=(0,L.ln)(),c=(0,M.j)(null==a?void 0:a.baseCurrency);(0,i.useEffect)(function(){T.HZ.initAccountBalanceVisibility(A.Gt.SHOW_ASSET_ACCOUNT_BA
1LANCE)},[]);var l=(0,T.K$)(A.Gt.SHOW_ASSET_ACCOUNT_BALANCE);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{header:t("Total Assets"),suffix:r&&(0,o.jsx)(U.Z,{variant:U.q.BASE,content:(0,o.jsx)(ta,{children:t("Export Statement")}),placement:"bottom",trigger:"mouseenter",children:(0,o.jsx)(R.ZP,{variant:R.eF.OUTLINED,size:"small",onClick:to,textColor:e.themeColors.icon.default,children:(0,o.jsx)(em.ZP,{icon:em.Ro.DOWNLOAD_STATEMENT})})})}),(0,o.jsxs)(O,{children:[(0,o.jsxs)(tc,{children:[(0,o.jsx)(j,{typography:h.wZ.TEXT_M_REGULAR,dataTestId:E.Of.ASSET_AVAILABLE_BALANCE_TITLE,children:t("Available Balance")}),(0,o.jsx)(R.ZP,{icon:l?em.Ro.VISIBILITY:em.Ro.VISIBILITY_OFF,variant:R.eF.ICON_ONLY,textColor:e.themeColors.primary,hoverTextColor:e.themeColors.primary,onClick:function(){T.HZ.toggleAccountBalanceVisibility(A.Gt.SHOW_ASSET_ACCOUNT_BALANCE)}})]}),(0,o.jsxs)(w,{typography:h.wZ.DISPLAY_S_MEDIUM,dataTestId:E.Of.ASSET_AVAILABLE_BALANCE_VALUE,children:[c,l?(0,k.Wi)(n,2,!1):C.A]})]})]})};var ta=(0,a.ZP)(y.ZP).withConfig({componentId:"sc-14abf128-0"})(["color:",";padding:","px ","px;"],function(e){return e.theme.themeColors.background.default},l.A.XS,l.A.M),tc=a.ZP.div.withConfig({componentId:"sc-14abf128-1"})(["display:flex;align-items:center;gap:","px;"],l.A.XXS);let tl=function(){var e=(0,p.c)().hasPortfolioPieChartAccess;return(0,o.jsxs)(ts,{children:[(0,o.jsx)(ti,{}),(0,o.jsx)(q,{}),(0,o.jsx)(eh,{}),e&&(0,o.jsx)(es,{})]})};var ts=a.ZP.div.withConfig({componentId:"sc-ebf47be4-0"})(["overflow-y:scroll;min-width:300px;border-inline-start:1px solid ",";background:",";"],function(e){return e.theme.themeColors.border.default},function(e){return e.theme.themeColors.background.default});let tu=function(){return(0,o.jsxs)(tf,{children:[(0,o.jsx)(u.Z,{}),(0,o.jsxs)(tp,{children:[(0,o.jsx)(tl,{}),(0,o.jsx)(f.Z,{showHideOtherSymbol:!1,calendarDropdownPlacement:(0,s.dZ)()?c.s1.BOTTOM_START:c.s1.BOTTOM_END,assetPage:!0})]})]})};var tf=a.ZP.div.withConfig({componentId:"sc-3bb8895b-0"})(["display:flex;flex-direction:column;height:100%;"]),tp=a.ZP.div.withConfig({componentId:"sc-3bb8895b-1"})(["display:flex;height:100%;max-height:calc(100vh - 42px);overflow:hidden;column-gap:","px;background:",";"],l.A.XS,function(e){return e.theme.themeColors.background.active})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.