PageSourceSearch

https://webtrader.cmsprime.com/web/assets/js/125.chunk.8f723c3f.js

js cmsprime.com collected 2026-10-01 16:31:24 UTC 11,053 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["125"],{24936:function(e,t,n){n.d(t,{Z:()=>o});var r=n(32735),i=n(58822);function o(e,t){(0,r.useEffect)(function(){return function(){if(!t){var n=e.getValues();(n.lotSize||n.units)&&(0,i.NB)({lotSize:n.lotSize,units:n.units})}}},[e,t])}},30124:function(e,t,n){n.d(t,{Z:()=>S});var r,i=n(74512),o=n(32735),a=n(10281),l=n(81182),c=n(96838),s=n(6807),u=n(2776),d=n(21791),f=n(52227),h=n(479),m=n(13266),p=n(58822),g=n(18699),x=n(33007),b=n(19584),v=n(47797),T=n(62237),I=n(28347),C=n(96497);function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=(y(r={},g.B9.BUY,{variant:b.u.BUY,label:function(){return h.ag.t("Place Buy Order")}}),y(r,g.B9.SELL,{variant:b.u.SELL,label:function(){return h.ag.t("Place Sell Order")}}),r);let S=function(e){var t=e.onSubmit,n=(0,l.$G)().t,r=(0,x.VC)().theme,a=(0,p.tl)(),h=(0,m.M8)(),y=(0,d.Z)(h),S=y.isDisableTrade,E=y.disabledLabel,P=(0,f.Z)(),w=P.isLongAllowed,_=P.isShortAllowed,j=(0,u.Z)({openModalVerifyAccount:T.B,openM
1odalVerifyInProgress:v.R,openModalNoTradeAccountCreated:I.q}).onCheckKycStatus,k=(0,o.useMemo)(function(){return a===g.B9.BUY?!w:a===g.B9.SELL&&!_},[a,w,_]),Z=(0,o.useCallback)(function(){j(t)},[j,t]),D=(0,o.useMemo)(function(){if(void 0===a)return(0,i.jsx)(c.ZP,{dataTestId:s.Of.TRADE_BUTTON_ORDER,variant:c.eF.FILLED,textColor:r.themeColors.background.default,stretch:!0,disabled:!0,onClick:Z,children:n("Place Order")});var e=A[a];return(0,i.jsx)(b.P,{dataTestId:s.Of.TRADE_BUTTON_ORDER,variant:e.variant,stretch:!0,disabled:k,onClick:Z,children:n(e.label())})},[a,k,Z,n,r.themeColors.background.default]);return(0,i.jsx)(R,{children:S?(0,i.jsx)(C.Z,{label:E}):D})};var R=a.ZP.div.withConfig({componentId:"sc-c4a1136e-0"})(["display:flex;flex-direction:row;width:100%;"])},44536:function(e,t,n){n.d(t,{Z:()=>z});var r=n(74512),i=n(32735),o=n(10281),a=n(71225),l=n(1403),c=n(39690);n(15306),n(74916),n(21249);var s=n(81182),u=n(62715),d=n(80199),f=n(38074),h=n(15226),m=n(6807),p=n(12140),g=n(33007),x=n(13589),b=n(16029);n(92222);var v=n(11153);function T(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 I=function(e){var t,n=e.children,o=e.selectorContent,a=e.defaultExpanded,l=void 0!==a&&a,c=e.onSwitchExpandVisibility,s=e.withArrow,u=e.dataTestId,f=e.rightIcon,h=e.onClick,m=e.onIconClick,p=(0,g.VC)().theme.themeColors,x=(0,g.MD)(),b=(0,i.useRef)(null),I=(0,i.useRef)(null),k=(t=(0,i.useState)(l),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return T(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 T(e,t)}}(t,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.")}()),Z=k[0],D=k[1],L=(0,i.useRef)(!1),O=function(){D(function(e){var t=!e;return null==c||c(t),t})};return(0,i.useEffect)(function(){L.current||!l||Z?!L.current&&Z&&(L.current=!0):(D(!0),L.current=!0)},[l,Z]),(0,i.useEffect)(function(){var e=I.current;if(e){var t=new ResizeObserver(function(){var t=b.current;t&&(Z?t.style.maxHeight="".concat(e.scrollHeight,"px"):t.style.maxHeight="0")});return t.observe(e),function(){t.unobserve(e)}}return function(){}},[Z]),(0,r.jsxs)(C,{$backgroundColor:x,children:[(0,r.jsxs)(y,{children:[(0,r.jsxs)(A,{className:(0,v.yI)({expanded:Z}),onClick:function(){O(),h()},"data-testid":u,children:[(0,r.jsx)(S,{children:o}),(void 0===s||s)&&(0,r.jsx)(P,{children:(0,r.jsx)(w,{className:Z?"expanded":"",children:(0,r.jsx)(d.ZP,{icon:d.Ro.CHEVRON_DOWN,color:p.icon.default})})})]}),(0,r.jsx)(R,{}),(0,r.jsx)(E,{onClick:m,children:f})]}),(0,r.jsx)(_,{ref:b,children:(0,r.jsx)(j,{ref:I,children:n})})]})};var C=o.ZP.div.withConfig({componentId:"sc-4c72b742-0"})(["font-size:13px;color:",";background-color:",";"],function(e){return e.theme.themeColors.text.default},function(e){return e.$backgroundColor}),y=o.ZP.div.withConfig({componentId:"sc-4c72b742-1"})(["display:flex;align-items:center;background-color:",";"],function(e){return e.theme.themeColors.background.subtle}),A=o.ZP.div.withConfig({componentId:"sc-4c72b742-2"})(["cursor:pointer;display:flex;flex:1;position:relative;align-items:center;"]),S=o.ZP.div.withConfig({componentId:"sc-4c72b742-3"})(["display:flex;padding:","px ","px;align-items:center;width:100%;gap:","px;&:hover{background-color:",";}"],a.A.XS,a.A.REGULAR,a.A.XS,function(e){return e.theme.themeColors.background.subtle}),R=o.ZP.div.withConfig({componentId:"sc-4c72b742-4"})(["height:","px;width:1px;background-color:",";"],a.A.L,function(e){return e.theme.themeColors.border.strong}),E=o.ZP.div.withConfig({componentId:"sc-4c72b742-5"})(["display:flex;justify-content:center;margin-inline-start:","px;margin-inline-end:","px;
1cursor:pointer;"],a.A.S,a.A.REGULAR),P=o.ZP.div.withConfig({componentId:"sc-4c72b742-6"})(["display:flex;position:absolute;inset-inline-end:0;gap:","px;"],a.A.XS),w=o.ZP.div.withConfig({componentId:"sc-4c72b742-7"})(["padding-inline-end:","px;svg{color:",";transform:rotate(180deg);transition:0.2s;}&.expanded{svg{transform:rotate(0deg);}}"],a.A.XS,function(e){return e.theme.themeColors.text.default}),_=o.ZP.div.withConfig({componentId:"sc-4c72b742-8"})(["overflow:hidden;max-height:0;transition:max-height 0.2s ease;"]),j=o.ZP.div.withConfig({componentId:"sc-4c72b742-9"})([""]);function k(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}var Z=function(e){var t=e.iconColor,n=(0,s.$G)().t,o=(0,i.useMemo)(function(){return{labelTooltip:[{paragraphs:[n("Changes in forex rates may affect the est. amount")]}],tradeDetailsText:n("Trade Details")}},[n]),a=o.labelTooltip,l=o.tradeDetailsText;return(0,r.jsxs)(O,{children:[(0,r.jsx)(h.Z,{variant:h.q.MULTI_SECTIONS_WITH_HEADER_DESCRIPTION,contentSections:a,trigger:"mouseenter",children:(0,r.jsx)(d.ZP,{icon:d.Ro.INFO,color:t,size:d.sk.SM})}),(0,r.jsxs)(M,{typography:u.wZ.TEXT_M_MEDIUM,width:"100px",children:[l," (USD)"]})]})},D=function(e){var t=e.isMT5,n=e.t,r=e.tradeSize,o=e.marginRequirement,a=e.amountPerTick,l=e.potentialLoss,c=e.potentialGain,s=e.riskReward,u=e.hideMarginRequirement,d=e.themeColors,f=(0,i.useCallback)(function(e){if(!e||"0.00"===e)return d.text.strong;var t=parseFloat(e.replace(/[^-0-9.]/g,""));return t>0?(0,x.n1)(d,b.a.PROFIT):t<0?(0,x.n1)(d,b.a.LOSS):d.text.strong},[d]);return(0,i.useMemo)(function(){return[{title:t?n("Trade Volume"):n("Trade Size"),value:r||"0.00",dataTestId:m.Of.TRADE_DETAILS_TRADE_SIZE,hide:!1},{title:n("Est. Margin Required"),value:o||"0.00",dataTestId:m.Of.TRADE_DETAILS_MARGIN_REQUIRED,hide:u},{title:n("Amount Per Tick"),value:a||"+/- 0.00",dataTestId:m.Of.TRADE_DETAILS_AMOUNT_PER_TICK,hide:u},{title:n("Potential Loss | Triggered by Stop Loss"),value:l||"0.00",textColor:f(l||"0.00"),dataTestId:m.Of.TRADE_DETAILS_POTENTIAL_LOSS,hide:!1},{title:n("Potential Gain | Triggered by Take Profit"),value:c||"0.00",textColor:f(c||"0.00"),dataTestId:m.Of.TRADE_DETAILS_POTENTIAL_GAIN,hide:!1},{title:n("Risk:Reward"),value:s||"",dataTestId:m.Of.TRADE_DETAILS_RISK_REWARD,hide:!1}]},[t,n,r,o,u,a,l,c,s,f])};let L=function(){var e,t=(0,g.VC)().theme.themeColors,n=(0,s.$G)().t,o=(0,p.SZ)().tradeSize,a=(0,p.P1)().marginRequirement,c=(0,p.K3)().amountPerTick,f=(0,p.Lg)().potentialLoss,h=(0,p.Xp)().potentialGain,x=(0,p.QI)().riskReward,b=(0,l.jO)().isMT5,v=(0,l.t7)(),T=(e=(0,i.useState)(!1),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return k(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 k(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.")}()),C=T[0],y=T[1],A=(0,i.useCallback)(function(){p.WU.toggleUserPreferencePin(C,function(e){return y(e)},function(){return y(C)})}
1,[C]),S=D({isMT5:b,t:n,tradeSize:o,marginRequirement:a,amountPerTick:c,potentialLoss:f,potentialGain:h,riskReward:x,hideMarginRequirement:v,themeColors:t});return(0,i.useEffect)(function(){p.WU.getUserPreferencePinState(function(e){return y(e)},function(){return y(!1)})},[]),(0,r.jsx)("div",{"data-testid":m.Of.TRADE_DETAILS,children:(0,r.jsx)(I,{defaultExpanded:C,selectorContent:(0,r.jsx)(Z,{iconColor:t.icon.disabled}),rightIcon:(0,r.jsx)(d.ZP,{icon:C?d.Ro.PIN:d.Ro.UNPIN,color:C?t.primary:void 0,"data-testid":m.Of.TRADE_DETAILS_PIN_ICON}),onClick:function(){},onIconClick:A,children:(0,r.jsx)(N,{children:S.map(function(e){return e.hide?null:(0,r.jsxs)(G,{"data-testid":e.dataTestId,children:[(0,r.jsx)(M,{typography:u.wZ.TEXT_S_REGULAR,color:t.text.muted,children:e.title}),(0,r.jsx)(U,{typography:u.wZ.TEXT_M_REGULAR,color:e.textColor||t.text.strong,children:e.value})]},e.title)})})})})};var O=o.ZP.div.withConfig({componentId:"sc-43e9f948-0"})(["display:flex;align-items:center;"]),M=(0,o.ZP)(f.ZP).withConfig({componentId:"sc-43e9f948-1"})(["max-width:150px;margin-inline-start:","px;"],a.A.XXS),U=(0,o.ZP)(f.ZP).withConfig({componentId:"sc-43e9f948-2"})([""]),N=o.ZP.div.withConfig({componentId:"sc-43e9f948-3"})(["padding:","px ","px;"],a.A.XS,a.A.REGULAR),G=o.ZP.div.withConfig({componentId:"sc-43e9f948-4"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-block-end:","px;"],a.A.XXS),X=n(30124);let z=function(e){var t=e.onSubmit,n=e.forceHidePretradeDetails,o=void 0!==n&&n,a=(0,l.rW)();return(0,i.useMemo)(function(){return o?{hasPretradeDetails:!1}:(0,c.z)(a)},[a,o]).hasPretradeDetails?(0,r.jsxs)(B,{children:[(0,r.jsx)(L,{}),(0,r.jsx)(q,{children:(0,r.jsx)(X.Z,{onSubmit:t})})]}):(0,r.jsx)(X.Z,{onSubmit:t})};var B=o.ZP.div.withConfig({componentId:"sc-3ca19648-0"})(["position:fixed;inset-block-end:0;inset-inline-end:0;width:240px;z-index:1;"]),q=o.ZP.div.withConfig({componentId:"sc-3ca19648-1"})(["padding:","px;background-color:",";"],a.A.REGULAR,function(e){return e.theme.themeColors.background.default})}}]);

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.