1"use strict";(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["7508"],{86853:function(t,e,r){r.d(e,{B:()=>_}),r(42295);var o=r(32735),n=r(99773),i=r(84823),l=r(48881),a=r(36333),u=r(57358),s=r(479),c=r(19554),f=r(1403),d=r(50255),y=r(13266),b=r(58822),m=r(48260),S=r(61856),p=r(37402),h=r(18699),v=r(92963),P=r(64989),T=r(20231),C=r(3827),L=r(24936),g=r(59395);function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}var z=i.Ry().shape({lotSize:(0,g.sT)(i.Z_()),fillPolicy:(0,g.Ke)(i.nK()),stopLoss:i.Z_().test("test-stop-loss",P.UF,function(t){return(0,P.FY)(t)}).test((0,g.wQ)(p.Qr.STOP_LOSS)).test((0,g._o)(p.Qr.STOP_LOSS)),takeProfit:i.Z_().test("test-take-profit",P.UF,function(t){return(0,P.FY)(t)}).test((0,g.wQ)(p.Qr.TAKE_PROFIT)).test((0,g._o)(p.Qr.TAKE_PROFIT)),expiration:i.hT().transform(P.mf).when(["fillPolicy","$expirationLabel"],function(t,e){var r=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r,o,n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i=[],l=!0,a=!1;try{for(n=n.call(t);!(l=(r=n.next()).done)&&(i.push(r.value),i.length!==e);l=!0);}catch(t){a=!0,o=t}finally{try{l||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,2)||function(t,e){if(t){if("string"==typeof t)return x(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(t,e)}}(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.")}(),o=r[0],n=r[1];return o===l.T3.GTD?e.required((0,P.$A)({label:n||""})):e})}),_=function(t){var e=t.disablePreservedValues,r=t.onSuccess,i=t.onError,l=t.showTradeConfirmationModal,p=(0,f.jO)(),P=p.isMT4,g=p.isCentroid,x=(0,f.$X)(),_=(0,u.K)(),O=(0,b.XT)(),M=(0,c.Q9)(),B=(0,y._f)(["lotSizeStep","type","symbol","minContractLotSize","maxContractLotSize","contractSize","bid","ask"]),E=B.lotSizeStep,w=B.type,k=B.symbol,A=B.minContractLotSize,Z=B.maxContractLotSize,j=B.contractSize,F=B.bid,I=B.ask,R=(0,d.d6)(null!=k?k:"")||{},D=R.maxQuantity,Q=R.minQuantity,V=(0,C.h)(),U=(0,S.GM)().lotSizeMode,q=(0,b.tl)(),Y=(0,b.zi)(),K=(0,T.A)(),N=K.fillPolicyOptions,X=K.initialFillPolicy,$=(0,o.useMemo)(function(){return(0,v.qn)(v.tV.EXPIRATION,x)},[x]),G=(0,o.useMemo)(function(){return(0,n.X)(z)},[]),H=(0,a.w)({resolver:G,mode:"onBlur",shouldFocusError:!1,context:{lotSizeStep:E,maxContractLotSize:Z,minContractLotSize:A,contractSize:j,sizeLabel:V,lotSizeMode:U,isFillPolicyRequired:!P,isCentroid:g,hasQuoteboardHandling:_,quoteboardMinQuantity:Q,quoteboardMaxQuantity:D,expirationLabel:$,buySellType:q,entryPrice:q===h.B9.BUY?F:I,priceLabel:q===h.B9.BUY?s.ag.t("Sell Price"):s.ag.t("Buy Price")},defaultValues:{lotSize:Y.lotSize,units:Y.units,fillPolicy:X}}),W=H.handleSubmit,J=H.reset,tt=H.setValue,te=H.trigger,tr=(0,o.useCallback)(function(t){var e=function(e){m._.createOrder({formData:t,onSuccess:function(){var o;r(),null==e||e(),J({fillPolicy:null!=(o=null==N?void 0:N[0])?o:m._.getFillPolicyDefaultValue({orderTypeLabel:O,symbolCategory:w}),lotSize:t.lotSize,units:t.units})},onError:function(t){i(t),null==e||e()}})};M?e():l({formValues:t,formMethods:H,onConfirm:function(t){e(t)}})},[H,M,i,r,O,J,l,w,N]),to=(0,o.useCallback)(function(t){W(tr)(t)},[W,tr]);return(0,o.useEffect)(function(){var t;tt("fillPolicy",null!=(t=null==N?void 0:N[0])?t:m._.getFillPolicyDefaultValue({orderTypeLabel:O,symbolCategory:w}))},[N,O,tt,w,k]),(0,o.useEffect)(function(){te(["stopLoss","takeProfit"])},[q,te]),(0,L.Z)(H,void 0!==e&&e),{formMethods:H,onSubmit:to}}},24936:function(t,e,r){r.d(e,{Z:()=>i});var o=r(32735),n=r(58822);function i(t,e){(0,o.useEffect)(function(){return function(){if(!e){var r=t.getValues();(r.lotSize||r.units)&&(0,n.NB)({lotSize:r.lotSize,units:r.units})}}},[t,e])}},30124:function(t,e,r){r.d(e,{Z:()=>x});var o,n=r(74512),i=r(32735),l=r(10281),a=r(81182),u=r(96838),s=r(6807),c=r(2776),f=r(21791),d=r(52227),y=r(479),b=r(13266),m=r(58822),S=r(18699),p=r(33007),h=r(19584),v=r(47797),P=r(62237),T=r(28347),C=r(96497);function L(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g=(L(o={},S.B9.BUY,{variant:h.u.BUY,label:function(){return y.ag.t("Place Buy Order")}}),L(o,S.B9.SELL,{variant:h.u.SELL,label:function(){return y.ag.t("Place Sell Order")}}),o);let x=function(t){var e=t.onSubmit,r=(0,a.$G)().t,o=(0,p.VC)().theme,l=(0,m.tl)(),y=(0,b.M8)(),L=(0,f.Z)(y),x=L.isDisableTrade,_=L.disabledLabel,O=(0,d.Z)(),M=O.isLongAllowed,B=O.isShortAllowed,E=(0,c.Z)({openModalVerifyAccount:P.B,openM
1odalVerifyInProgress:v.R,openModalNoTradeAccountCreated:T.q}).onCheckKycStatus,w=(0,i.useMemo)(function(){return l===S.B9.BUY?!M:l===S.B9.SELL&&!B},[l,M,B]),k=(0,i.useCallback)(function(){E(e)},[E,e]),A=(0,i.useMemo)(function(){if(void 0===l)return(0,n.jsx)(u.ZP,{dataTestId:s.Of.TRADE_BUTTON_ORDER,variant:u.eF.FILLED,textColor:o.themeColors.background.default,stretch:!0,disabled:!0,onClick:k,children:r("Place Order")});var t=g[l];return(0,n.jsx)(h.P,{dataTestId:s.Of.TRADE_BUTTON_ORDER,variant:t.variant,stretch:!0,disabled:w,onClick:k,children:r(t.label())})},[l,w,k,r,o.themeColors.background.default]);return(0,n.jsx)(z,{children:x?(0,n.jsx)(C.Z,{label:_}):A})};var z=l.ZP.div.withConfig({componentId:"sc-c4a1136e-0"})(["display:flex;flex-direction:row;width:100%;"])},31963:function(t,e,r){r.r(e),r.d(e,{default:()=>y});var o=r(74512),n=r(82391),i=r(86853),l=r(57753),a=r(13266),u=r(65528),s=r(15861),c=r(32964),f=r(16208),d=r(30124);let y=function(){var t=(0,a._f)(["symbol","type","expiration"]),e=t.symbol,r=t.type,y=t.expiration,b=(0,s.R)(),m=b.onError,S=b.onSuccessDefault,p=(0,i.B)({onSuccess:S,onError:m,showTradeConfirmationModal:u.d}),h=p.onSubmit,v=p.formMethods;return(0,o.jsxs)(n.q,{modalType:l.XV.OPW,methods:v,children:[(0,o.jsx)(c.Z,{}),(0,o.jsx)(f.Z,{symbolId:e,symbolCategory:r,symbolMaturityDate:y}),(0,o.jsx)(d.Z,{onSubmit:h})]})}}}]);
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.