1"use strict";(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["3860"],{86853:function(t,e,o){o.d(e,{B:()=>_}),o(42295);var r=o(32735),n=o(99773),i=o(84823),l=o(48881),a=o(36333),u=o(57358),s=o(479),c=o(19554),f=o(1403),m=o(50255),d=o(13266),y=o(58822),b=o(48260),S=o(61856),p=o(37402),h=o(18699),x=o(92963),v=o(64989),C=o(20231),M=o(3827),P=o(24936),T=o(59395);function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=Array(e);o<e;o++)r[o]=t[o];return r}var z=i.Ry().shape({lotSize:(0,T.sT)(i.Z_()),fillPolicy:(0,T.Ke)(i.nK()),stopLoss:i.Z_().test("test-stop-loss",v.UF,function(t){return(0,v.FY)(t)}).test((0,T.wQ)(p.Qr.STOP_LOSS)).test((0,T._o)(p.Qr.STOP_LOSS)),takeProfit:i.Z_().test("test-take-profit",v.UF,function(t){return(0,v.FY)(t)}).test((0,T.wQ)(p.Qr.TAKE_PROFIT)).test((0,T._o)(p.Qr.TAKE_PROFIT)),expiration:i.hT().transform(v.mf).when(["fillPolicy","$expirationLabel"],function(t,e){var o=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o,r,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=(o=n.next()).done)&&(i.push(o.value),i.length!==e);l=!0);}catch(t){a=!0,r=t}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(t,2)||function(t,e){if(t){if("string"==typeof t)return g(t,2);var o=Object.prototype.toString.call(t).slice(8,-1);if("Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return g(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.")}(),r=o[0],n=o[1];return r===l.T3.GTD?e.required((0,v.$A)({label:n||""})):e})}),_=function(t){var e=t.disablePreservedValues,o=t.onSuccess,i=t.onError,l=t.showTradeConfirmationModal,p=(0,f.jO)(),v=p.isMT4,T=p.isCentroid,g=(0,f.$X)(),_=(0,u.K)(),L=(0,y.XT)(),O=(0,c.Q9)(),j=(0,d._f)(["lotSizeStep","type","symbol","minContractLotSize","maxContractLotSize","contractSize","bid","ask"]),k=j.lotSizeStep,w=j.type,F=j.symbol,Q=j.minContractLotSize,A=j.maxContractLotSize,E=j.contractSize,I=j.bid,Z=j.ask,q=(0,m.d6)(null!=F?F:"")||{},B=q.maxQuantity,V=q.minQuantity,D=(0,M.h)(),K=(0,S.GM)().lotSizeMode,R=(0,y.tl)(),U=(0,y.zi)(),X=(0,C.A)(),Y=X.fillPolicyOptions,$=X.initialFillPolicy,G=(0,r.useMemo)(function(){return(0,x.qn)(x.tV.EXPIRATION,g)},[g]),H=(0,r.useMemo)(function(){return(0,n.X)(z)},[]),N=(0,a.w)({resolver:H,mode:"onBlur",shouldFocusError:!1,context:{lotSizeStep:k,maxContractLotSize:A,minContractLotSize:Q,contractSize:E,sizeLabel:D,lotSizeMode:K,isFillPolicyRequired:!v,isCentroid:T,hasQuoteboardHandling:_,quoteboardMinQuantity:V,quoteboardMaxQuantity:B,expirationLabel:G,buySellType:R,entryPrice:R===h.B9.BUY?I:Z,priceLabel:R===h.B9.BUY?s.ag.t("Sell Price"):s.ag.t("Buy Price")},defaultValues:{lotSize:U.lotSize,units:U.units,fillPolicy:$}}),W=N.handleSubmit,J=N.reset,tt=N.setValue,te=N.trigger,to=(0,r.useCallback)(function(t){var e=function(e){b._.createOrder({formData:t,onSuccess:function(){var r;o(),null==e||e(),J({fillPolicy:null!=(r=null==Y?void 0:Y[0])?r:b._.getFillPolicyDefaultValue({orderTypeLabel:L,symbolCategory:w}),lotSize:t.lotSize,units:t.units})},onError:function(t){i(t),null==e||e()}})};O?e():l({formValues:t,formMethods:N,onConfirm:function(t){e(t)}})},[N,O,i,o,L,J,l,w,Y]),tr=(0,r.useCallback)(function(t){W(to)(t)},[W,to]);return(0,r.useEffect)(function(){var t;tt("fillPolicy",null!=(t=null==Y?void 0:Y[0])?t:b._.getFillPolicyDefaultValue({orderTypeLabel:L,symbolCategory:w}))},[Y,L,tt,w,F]),(0,r.useEffect)(function(){te(["stopLoss","takeProfit"])},[R,te]),(0,P.Z)(N,void 0!==e&&e),{formMethods:N,onSubmit:tr}}},4061:function(t,e,o){o.r(e),o.d(e,{default:()=>v});var r=o(74512),n=o(32735),i=o(10281),l=o(82391),a=o(86853),u=o(57358),s=o(1403),c=o(57753),f=o(13266),m=o(65528),d=o(15861),y=o(58118),b=o(31111),S=o(62772),p=o(6904),h=o(16208),x=o(44536);let v=function(t){var e=t.customMarketFormMethods,o=t.customMarketSubmit,i=(0,f._f)(["symbol","type","expiration"]),v=i.symbol,M=i.type,P=i.expiration,T=(0,s.jO)(),g=T.isCentroid,z=T.isMT5,_=(0,d.R)(),L=_.onSuccessOCTOrMarket,O=_.onError,j=(0,u.K)(),k=(0,a.B)({onSuccess:L,onError:O,showTradeConfirmationModal:m.d}),w=k.onSubmit,F=k.formMethods,Q=(0,n.useMemo)(function(){return null!=e?e:F},[e,F]),A=(0,n.useMemo)(function(){return null!=o?o:w},[o,w]);return(0,r.jsxs)(l.q,{modalType:c.XV.OPW,hasQuoteboardHandling:j,methods:Q,children:[(0,r.jsx)(y.Z,{}),z&&(0,r.jsx)(h.Z,{symbolId:v,symbolCategory:M,symbolMaturityDate:P}),!g&&(0,r.jsx)(C,{children:(0,r.jsx)(b.Z,{})}),!g&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S.default,{}),(0,r.jsx)(p.default,{})]}),g&&(0,r.jsx)(h.Z,{symbolId:v,symbolCategory:M,symbolMaturityDate:P}),(0,r.jsx)(x.Z,{onSubmit:A})]})};
1var C=i.ZP.div.withConfig({componentId:"sc-fdf8d6f8-0"})(["margin-bottom:-6px;"])}}]);
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.