PageSourceSearch

https://webtrader.cmsprime.com/web/assets/js/1269.chunk.cf233214.js

js cmsprime.com collected 2026-09-24 13:09:52 UTC 99,992 bytes, 1 lines download raw bytes

1(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["1269"],{54986:function(e,t,n){var r=n(88113);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},76650:function(e,t,n){var r=n(1702),o=n(17466),i=n(41340),l=n(38415),a=n(84488),c=r(l),u=r("".slice),s=Math.ceil,d=function(e){return function(t,n,r){var l,d,f=i(a(t)),p=o(n),y=f.length,b=void 0===r?" ":i(r);return p<=y||""==b?f:((d=c(b,s((l=p-y)/b.length))).length>l&&(d=u(d,0,l)),e?f+d:d+f)}};e.exports={start:d(!1),end:d(!0)}},83112:function(e,t,n){"use strict";var r=n(82109),o=n(76650).start;r({target:"String",proto:!0,forced:n(54986)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},20231:function(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(32735),o=n(13266),i=n(58822),l=n(48260),a=function(){var e=(0,i.XT)(),t=(0,o._f)(["type","tradeFillPolicy"]),n=t.type,a=t.tradeFillPolicy,c=(0,r.useMemo)(function(){return l._.getFillPoliciesFromOrderTypeLabel({orderTypeLabel:e,overrideTradeFillPolicy:a})},[e,a]),u=(0,r.useMemo)(function(){var t;return null!=(t=null==c?void 0:c[0])?t:l._.getFillPolicyDefaultValue({orderTypeLabel:e,symbolCategory:n})},[c,e,n]);return{fillPolicyOptions:c,initialFillPolicy:u}}},2776:function(e,t,n){"use strict";n.d(t,{Z:()=>l});var r=n(61230),o=n(17609),i=n(30726);let l=function(e){var t=e.openModalVerifyAccount,n=e.openModalVerifyInProgress,l=e.openModalNoTradeAccountCreated,a=((0,o.vU)()||{}).crmKYCStatus,c=(0,i.l)().isKycAlertVisible;return{onCheckKycStatus:function(e){if(!c)return void e();switch(a){case r.Rk.PENDING_KYC:case r.Rk.KYC_REJECTED:null==t||t();break;case r.Rk.VERIFYING_KYC:null==n||n();break;case r.Rk.KYC_VERIFIED:null==l||l()}}}}},694:function(e,t,n){"use strict";n.d(t,{e:()=>l});var r=n(32735),o=n(66698),i=function(e){var t=e.openPrice,n=e.currentPrice,r=new o.BigNumber(n).minus(t).toNumber(),i=new o.BigNumber(r).div(t).times(100).toNumber();return{priceGained:new o.BigNumber(r).isGreaterThan(0)&&new o.BigNumber(i).isGreaterThan(0),priceDifference:r,percentageDifference:i}},l=function(e){var t=e.prevClose,n=e.lastPrice,o=(0,r.useRef)(t),l=(0,r.useRef)(t);t!==l.current&&(o.current=t,l.current=t);var a=(0,r.useMemo)(function(){return i({openPrice:t,currentPrice:n})},[t,n]),c=a.priceDifference,u=a.percentageDifference,s=(0,r.useMemo)(function(){var e=o.current;return o.current=n,{animate:e!==n,priceGained:n>=e,percentageGained:u>=0}},[n,u]);return{animate:s.animate,priceGained:s.priceGained,percentageGained:s.percentageGained,priceDifference:c,percentageDifference:u}}},21791:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(32735),o=n(81182),i=n(69062),l=n(18699),a=function(e,t){if(!e||!t)return!0;switch(e){case l.Zk.LIMIT:return!(null==t?void 0:t.limitFillPolicy)||0===t.limitFillPolicy.length;case l.Zk.STOP:return!(null==t?void 0:t.stopFillPolicy)||0===t.stopFillPolicy.length;case l.Zk.STOP_LIMIT:return!(null==t?void 0:t.stopLimitFillPolicy)||0===t.stopLimitFillPolicy.length;default:return!(null==t?void 0:t.marketFillPolicy)||0===t.marketFillPolicy.length}},c=n(1403);let u=function(e){var t=(0,o.$G)().t,n=(0,c.jO)().isMT5,u=null!=e?e:{},s=u.tradableExeMode,d=u.tradeFillPolicy,f=u.status,p=!s;return{isDisableTrade:(0,r.useMemo)(function(){return!!p||void 0===f||f!==i.nt.TRADING||!!n&&a(l.Zk.MARKET,d)},[n,f,p,d]),disabledLabel:(0,r.useMemo)(function(){return p?t("Stay Tuned"):t("Market Closed")},[p,t])}}},52227:function(e,t,n){"use strict";n.d(t,{Z:()=>l});var r=n(61122),o=n(13266),i=n(19367);let l=function(){var e,t=(null!=(e=(0,o._f)(["tradeMode"]))?e:{}).tradeMode,n=(0,r.x9)(),l=(0,i.aF)(t),a=l.isLongAllowed,c=l.isShortAllowed,u=a&&c;return{isLongAllowed:a,isShortAllowed:c,isTradeModeFull:u,isSingleButtonMode:n&&!u}}},19584:function(e,t,n){"use strict";n.d(t,{P:()=>f,u:()=>d});var r,o=n(74512),i=n(32735),l=n(10281),a=n(96838),c=n(11153),u=n(1403),s=n(33007),d=((r={}).BUY="BUY",r.SELL="SELL",r.BUY_IDLE="BUY_IDLE",r.SELL_IDLE="SELL_IDLE",r);let f=function(e){var t,n,r=(0,s.VC)().theme.themeColors,l=(0,u.YR)(),f=e.variant,b=e.diagonal,h=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,["variant","diagonal"]),m=h.size,g=(0,i.useMemo)(function(){return(0,c.T1)(m)},[m]),v=(0,i.useMemo)(function(){if(b)switch(f){case d.BUY:case d.BUY_IDLE:return l?y:p;default:return l?p:y}return a.ZP},[b,f,l]),x=(0,c.eY)(),S=(0,i.useMemo)(function(){switch(f){case d.SELL:return{textColor:r.white,disabledTextColor:r.white,backgroundColor:r.pnl.negative.default,hoverBackgroun
1dColor:r.pnl.negative.hover,activeBackgroundColor:r.pnl.negative.active,disabledBackgroundColor:r.pnl.negative.disabled};case d.BUY:return{textColor:r.white,disabledTextColor:r.white,backgroundColor:r.pnl.positive.default,hoverBackgroundColor:r.pnl.positive.hover,activeBackgroundColor:r.pnl.positive.active,disabledBackgroundColor:r.pnl.positive.disabled};default:return{textColor:x.textColor,disabledTextColor:x.disabledTextColor,backgroundColor:x.backgroundColor,hoverBackgroundColor:x.hoverBackgroundColor,activeBackgroundColor:x.activeBackgroundColor,disabledBackgroundColor:x.disabledBackgroundColor}}},[x.activeBackgroundColor,x.backgroundColor,x.disabledBackgroundColor,x.disabledTextColor,x.hoverBackgroundColor,x.textColor,r.pnl.negative.active,r.pnl.negative.default,r.pnl.negative.disabled,r.pnl.negative.hover,r.pnl.positive.active,r.pnl.positive.default,r.pnl.positive.disabled,r.pnl.positive.hover,r.white,f]),T=S.textColor,O=S.disabledTextColor,C=S.backgroundColor,P=S.hoverBackgroundColor,w=S.activeBackgroundColor,k=S.disabledBackgroundColor;return(0,o.jsx)(v,(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}({},h),n=n={variant:a.eF.FILLED,height:g,textColor:T,disabledTextColor:O,backgroundColor:null!=C?C:"",hoverBackgroundColor:P,activeBackgroundColor:w,disabledBackgroundColor:k},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))};var p=(0,l.ZP)(a.ZP).withConfig({componentId:"sc-74950f77-0"})(["border-end-end-radius:0px;border-start-end-radius:0px;position:relative;&:before{content:'';position:absolute;inset-inline-end:-","px;border-top:","px solid ",";border-inline-end:","px solid transparent;width:","px;}"],function(e){return e.height/2+1},function(e){return e.height},function(e){return e.backgroundColor},function(e){return e.height/2},1),y=(0,l.ZP)(a.ZP).withConfig({componentId:"sc-74950f77-1"})(["border-end-start-radius:0px;border-start-start-radius:0px;position:relative;&:before{content:'';position:absolute;border:none;inset-inline-start:-","px;border-bottom:","px solid ",";border-inline-start:","px solid transparent;width:","px;}"],function(e){return e.height/2+1},function(e){return e.height},function(e){return e.backgroundColor},function(e){return e.height/2},1)},15861:function(e,t,n){"use strict";n.d(t,{R:()=>s});var r=n(32735),o=n(81182),i=n(16689),l=n(18551),a=n(1403),c=n(56740),u=n(92963),s=function(){var e=(0,a.Cl)(),t=(0,a.$X)(),n=(0,l.j)().getErrorSnackbarProps,s=(0,o.$G)().t,d=(0,r.useCallback)(function(){e&&(0,i.ur)({message:(0,u.r9)(u.tM.ORDER_HAS_BEEN_CREATED,t),messageType:c.KK.SUCCESS})},[e,t]),f=(0,r.useCallback)(function(){e&&(0,i.ur)({message:s("Order has been created."),messageType:c.KK.SUCCESS})},[e,s]);return{onError:(0,r.useCallback)(function(e){var t=n(e),r=t.message,o=t.messageType;(0,i.ur)({message:r,messageType:o})},[n]),onSuccessDefault:f,onSuccessOCTOrMarket:d}}},57694:function(e,t,n){"use strict";n.d(t,{Z:()=>rB}),n(92222);var r,o,i,l=n(74512),a=n(32735),c=n(10281),u=n(71225),s=n(1403),d=n(81468),f=n(17609),p=function(e){var t=(0,f.kz)();return{shouldShowOverlay:t||!1===e,canTrade:!t&&!1!==e,isAccountReadOnly:t}},y=n(81182),b=n(6807),h=n(19554),m=n(71028),g=n(57753),v=n(13266),x=n(18699),S=n(39690);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}var O=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,y.$G)().t,o=(0,h.Q9)(),i=(0,s.rW)(),l=(e=(0,a.useState)(x.Gx.QUICK_TRADE),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=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,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)}}
1(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=l[0],u=l[1],d=(0,s.jO)().isHorizon,f=(0,v._f)(["symbol"]).symbol,p=(0,a.useMemo)(function(){return(0,S.z)(i)},[i]).hasLadderTrading,O=(0,a.useMemo)(function(){var e=[{value:x.Gx.TRADE_FORM,label:d?r("Trade Form"):r("Trade"),dataTestId:b.Of.TAB_TRADE}];return(p||o&&!n)&&!t&&e.unshift({value:x.Gx.QUICK_TRADE,label:o?r("One Click"):r("Ladder"),dataTestId:b.Of.TAB_ONE_CLICK_TRADING}),d||e.push({value:x.Gx.SPECIFICATION,label:r("Specification"),dataTestId:b.Of.TAB_SPECIFICATION}),e},[d,r,p,o,t,n]);return(0,a.useEffect)(function(){if(t||o&&n)return void u(x.Gx.TRADE_FORM);u(p||o?x.Gx.QUICK_TRADE:x.Gx.TRADE_FORM)},[p,t,o,n]),{selectedTab:c,onChangeTab:function(e){e===x.Gx.SPECIFICATION&&m.q.page.actionClick({action:g.pW.SPECIFICATIONS_TAB_CLICKED,symbol:f}),u(e)},setSelectedTab:u,orderFormTabList:O}},C=n(50255);function P(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}n(41539),n(32564);var w=function(e){var t,n=(t=(0,a.useState)(!0),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return P(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 P(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.")}()),r=n[0],o=n[1],i=(0,a.useRef)(null);return(0,a.useEffect)(function(){e&&o(!0)},[e]),(0,a.useEffect)(function(){if(!e||!i.current)return function(){};var t=new MutationObserver(function(e){e.forEach(function(e){var t;if("childList"!==e.type||(null==(t=i.current)?void 0:t.parentNode)||o(!1),"attributes"===e.type&&e.target===i.current){var n=e.target,r=window.getComputedStyle(n);("none"===r.display||"hidden"===r.visibility)&&o(!1)}})});i.current.parentNode&&(t.observe(i.current.parentNode,{childList:!0}),t.observe(i.current,{attributes:!0,attributeFilter:["style","class"],subtree:!0}));var n=setInterval(function(){if(i.current){var e=window.getComputedStyle(i.current);("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)&&o(!1)}},500);return function(){t.disconnect(),clearInterval(n)}},[e]),{overlayPresent:r,overlayRef:i}};n(21249);var k=n(86151),j=n(86653),E=n(69062),I=n(479),L=n(3082),A=[{key:"symbol",label:function(){return I.ag.t("Symbol")}},{key:"description",label:function(){return I.ag.t("Description")}}],R=[{key:"symbol",label:function(){return I.ag.t("Symbol")}},{key:"type",label:function(){return I.ag.t("Security Type")}},{key:"securityId",label:function(){return I.ag.t("Security Id")}},{key:"currency",label:function(){return I.ag.t("Currency")}},{key:"lotSizeStep",label:function(){return I.ag.t("Round Lot")}},{key:"priceType",label:function(){return I.ag.t("Price Type")}},{key:"minContractLotSize",label:function(){return I.ag.t("Minimum Trade Volume")}}],_=[{key:"symbol",label:function(){return I.ag.t("Symbol")}},{key:"type",label:function(){return I.ag.t("Security Type")}},{key:"securityId",label:function(){return I.ag.t("Security Id")}},{key:"expiration",label:function(){return I.ag.t("Maturity Date")}},{key:"currency",label:function(){return I.ag.t("Currency")}},{key:"lotSizeStep",label:function(){return I.ag.t("Round Lot")}},{key:"priceType",label:function(){return I.ag.t("Price Type")}},{key:"minContractLotSize",label:function(){return I.ag.t("Minimum Trade Volume")}},{key:"contractSize",label:function(){return I.ag.t("Contract Multiplier")}},{key:"side",label:function(){return I.ag.t("Put or Call")}},{key:"strikePrice",label:function(){return I.ag.t("Strike Price")}},{key:"excerciseStyle",label:function(){return I.ag.t("Excercise Style")}}],M=[{key:"symbol",label:function(){return I.ag.t("Symbol")}},{key:"type",label:function(){return I.ag.t("Security Type")}},{key:"securityId",label:function(){return I.ag.t("Security Id")}
1},{key:"expiration",label:function(){return I.ag.t("Maturity Date")}},{key:"currency",label:function(){return I.ag.t("Currency")}},{key:"lotSizeStep",label:function(){return I.ag.t("Round Lot")}},{key:"priceType",label:function(){return I.ag.t("Price Type")}},{key:"minContractLotSize",label:function(){return I.ag.t("Minimum Trade Volume")}},{key:"contractSize",label:function(){return I.ag.t("Contract Multiplier")}}],Z=[{key:"minContractLotSize",label:function(){return I.ag.t("Min. Lot Size")}},{key:"maxContractLotSize",label:function(){return I.ag.t("Max. Lot Size")}},{key:"lotSizeStep",label:function(){return I.ag.t("Lot Size Step")}},{key:"pointStep",label:function(){return I.ag.t("One Point Equals")}},{key:"stopsLevel",label:function(){return I.ag.t("Min. Stop Distance")}},{key:"contractSize",label:function(){return I.ag.t("Contract Size")}},{key:"marginCurrency",label:function(){return I.ag.t("Margin Currency")}},{key:"marginHedged",label:function(){return I.ag.t("Margin Hedge")}},{key:"marginInitial",label:function(){return I.ag.t("Initial Margin (%)")}},{key:"marginMaintenance",label:function(){return I.ag.t("Maintenance Margin (%)")}},{key:"swapType",label:function(){return I.ag.t("Swap Type")}},{key:"swapLong",label:function(){return I.ag.t("Swap Long")}},{key:"swapShort",label:function(){return I.ag.t("Swap Short")}},{key:"swapRollover3days",label:function(){return I.ag.t("Swap Rollover (3 days)")}}],B=[{key:"minContractLotSize",label:function(){return I.ag.t("Min. Volume")}},{key:"maxContractLotSize",label:function(){return I.ag.t("Max. Volume")}},{key:"lotSizeStep",label:function(){return I.ag.t("Volume Step")}},{key:"pointStep",label:function(){return I.ag.t("One Point Equals")}},{key:"stopsLevel",label:function(){return I.ag.t("Min. Stop Distance")}},{key:"contractSize",label:function(){return I.ag.t("Contract Size")}},{key:"marginCurrency",label:function(){return I.ag.t("Margin Currency")}},{key:"marginHedged",label:function(){return I.ag.t("Margin Hedge")}},{key:"marginInitial",label:function(){return I.ag.t("Initial Margin (%)")}},{key:"marginMaintenance",label:function(){return I.ag.t("Maintenance Margin (%)")}},{key:"swapType",label:function(){return I.ag.t("Swap Type")}},{key:"swapLong",label:function(){return I.ag.t("Swap Long")}},{key:"swapShort",label:function(){return I.ag.t("Swap Short")}},{key:"swapRollover3days",label:function(){return I.ag.t("Swap Rollover (3 days)")}}],D=[{key:"minContractLotSize",label:function(){return I.ag.t("Min. Volume")}},{key:"maxContractLotSize",label:function(){return I.ag.t("Max. Volume")}},{key:"lotSizeStep",label:function(){return I.ag.t("Volume Step")}},{key:"pointStep",label:function(){return I.ag.t("One Point Equals")}},{key:"contractSize",label:function(){return I.ag.t("Contract Size")}},{key:"marginCurrency",label:function(){return I.ag.t("Margin Currency")}},{key:"marginPercentage",label:function(){return I.ag.t("Margin Percentage")}},{key:"swapType",label:function(){return I.ag.t("Swap Type")}},{key:"swapLong",label:function(){return I.ag.t("Swap Long")}},{key:"swapShort",label:function(){return I.ag.t("Swap Short")}},{key:"swapRollover3days",label:function(){return I.ag.t("Swap Rollover")}}],U=[{key:"symbol",label:function(){return I.ag.t("Symbol")}},{key:"description",label:function(){return I.ag.t("Description")}}],z=((r={}).QUOTES="QUOTES",r.SPECIFICATION="SPECIFICATION",r.MINI_CHART="MINI_CHART",r);function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(e){var t,n=(G(t={},z.QUOTES,I.ag.t("Quotes",{lng:e})),G(t,z.SPECIFICATION,I.ag.t("Specification",{lng:e})),G(t,z.MINI_CHART,I.ag.t("Mini Chart",{lng:e})),t);return[{label:n[z.QUOTES],value:z.QUOTES},{label:n[z.SPECIFICATION],value:z.SPECIFICATION}]},F=function(e,t){var n,r=(G(n={},E.CQ.PER_UNIT,I.ag.t("Per Unit",{lng:t})),G(n,E.CQ.PERCENTAGE,I.ag.t("Percentage",{lng:t})),n);return e?r[e]:"--"},X=function(e){var t,n=L._.getCompanyIntegration();return n===j.wS.HORIZON?(G(t={},E.lp.OPTION,_),G(t,E.lp.FUTURES,M),t)[e]||R:n===j.wS.CENTROID?D:n===j.wS.METATRADER5?B:Z};n(26699),n(32023),n(68233),n(92274),n(75654);var Y=n(82337),H=n(7360),V=n(63913),$=function(e){var t=(0,s.jO)().isMT5,n=(0,y.$G)().t,r=(0,v._f)("description"===e&&t?[e,"contractSize","minContractLotSize","symbol"]:[e]),o=null==r?void 0:r[e];return(0,a.useMemo)(function(){if("type"===e)return(0,V.HZ)(o);if("priceType"===e)return F(o);if("expiration"===e)return(0,Y.IM)(o,Y.Xz);if("description"===e)return l=null==r?void 0:r.contractSize,a=null==r?void 0:r.minContractLotSize,c=null==r?void 0:r.symbol,t&&o&&l&&a&&c?"".concat(o," (1 lot = ").concat(l," ").concat(c,", minimum ").concat(a,")"):o||"--";if("excerciseStyle"===e)return"European";if("swapType"===e)return(0,V.$P)(o);if("swapRollover3days"===e){var i,l,a,c,u=null!=o?o:0;return 0===u?n("None"):(0,H.j4)({day:u,short:!1,t:n})()}return null!=(i=null==o?void 0:o.toString())?i:"--"},[e,o,r,t,n])},Q=n(62715),K=n(38074);let W=function(e){var t=e.label,n=e.subLabel,r=e.value,o=e.breakWord;return(0,l.jsxs)(q,{children:[(0,l.jsxs)(J,{children:[(0,l.jsx)(et,{typography:Q.wZ.TEXT_S_REGULAR,children:t}),(0,l.jsx)(et,{typography:Q.wZ.TEXT_S_REGULAR,children:n})]}),(0,l.jsx)(ee,{$breakWord:void 0===o||o,children:(0,l.jsx)(en,{typography:Q.wZ.TEXT_M_REGULAR,children:r})})]})};var q=c.ZP.div.withConfig({componentId:"sc-a03f8197-0"})(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;border-bottom:1px solid ",";&:last-child{border-bottom:none;}"],u.A.XS,u.A.REGULAR,function(e){return e.theme.themeColors.border.default}),J=c.ZP.div.withConfig({componentId:"sc-a03f8197-1"})(["flex:1;margin-inline-end:","px;"],u.A.XS),ee=c.ZP.div.withConfig({componentId:"sc-a03f8197-2"})(["flex:1;word-break:",";"],function(e){return e.$breakWord?"break-all":"normal"}),et=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-a03f8197-3"})(["color:",";"],function(e){return e.theme.themeColors.text.muted}),en=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-a03f8197-4"})(["color:",";text-align:end;"],function(e){return e.theme.themeColors.text.strong});let er=function(e){var t=e.label,n=e.dataKey,r=$(n),o=(0,a.useMemo)(function(){return!["swapType","description"].includes(n)},[n]);return(0,l.jsx)(W,{label:t,value:r,breakWord:o})};n(39714);let eo=function(){var e=(0,v._f)(["tickRulesGroup","currency"])||{},t=e.tickRulesGroup,n=e.currency,r=(0,y.$G)().t,o=(0,a.useMemo)(function(){return t?t.map(function(e){var t,o;return{key:null==e?void 0:e.startTickPriceRange,label:r("Tick Increment"),subLabel:e.startTickPriceRange>0?"(More than ".concat(n," ").concat(null==e||null==(t=e.startTickPriceRange)?void 0:t.toString(),")"):"",value:null==e||null==(o=e.tickIncrement)?void 0:o.toString()}}):[]},[t,n,r]);return o&&(null==o?void 0:o.length)!==0?(0,l.jsx)(l.Fragment,{children:null==o?void 0:o.map(function(e){return(0,l.jsx)(W,{label:r(e.label),value:e.value,breakWord:!1,subLabel:e.subLabel},e.key)})}):(0,l.jsx)(l.Fragment,{})},ei=(0,a.memo)(function(){var e=(0,y.$G)().t,t=(0,s.jO)().isCentroid,n=(0,a.useMemo)(function(){return L._.getCompanyIntegration()===j.wS.CENTROID?U:A},[]);return(0,l.jsxs)(k.Z,{label:e("Symbol Overview"),defaultExpanded:!0,children:[n.map(function(e){return(0,l.jsx)(er,{label:"function"==typeof e.label?e.label():e.label,dataKey:e.key},e.key)}),!t&&(0,l.jsx)(eo,{})]})}),el=(0,a.memo)(function(){var e=(0,y.$G)().t,t=((0,v._f)(["type"])||{}).type,n=(0,a.useMemo)(function(){return X(null!=t?t:E.lp.EQUITIES)},[t]);return(0,l.jsxs)(k.Z,{label:e("Trade Information"),defaultExpanded:!0,children:[n.map(function(e){return(0,l.jsx)(er,{label:"function"==typeof e.label?e.label():e.label,dataKey:e.key},e.key)}),(0,l.jsx)(eo,{})]})});n(83112),n(57327),n(69600);var ea=n(45954),ec=n(64989);function eu(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 es=function(e){return(0,Y.ZP)(e).locale((0,H.KM)()).format("ddd HH:mm")},ed=function(e){return e.openTime===e.closeTime};let ef=function(){var e=(0,y.$G)().t,t=(0,s.rW)(),n=(0,s.Ug)(),r=(0,s._9)(),o=(0,v._f)(["tradingSessions","tradingEpochSessions","symbol"]),i=(null==t?void 0:t.marketTimeManagement)!==j.wc.SERVER||
1!(0,ec.BI)(n),c=(0,a.useMemo)(function(){if(i)return e("Local Time");if(n){var t=Math.abs(n),r=n>=0?"+":"-",o="".concat(t.toString().padStart(2,"0"),"00");return"GMT ".concat(r).concat(o)}return e("Server Time")},[i,n,e]),u=(0,a.useMemo)(function(){if(!o)return null;var t,n=o.tradingSessions,r=o.tradingEpochSessions,a=o.symbol,u=i?r:n;if(!(null==u?void 0:u.length))return null;var s=[(0,l.jsx)(W,{label:e("Time Display"),value:c,breakWord:!1},"timezone")].concat(function(e){if(Array.isArray(e))return eu(e)}(t=u.map(function(t){if(i&&"tradingStartTime"in t){var r=t.dayOfWeek,o=t.tradingStartTime,c=t.tradingEndTime;if(null==n?void 0:n.some(function(e){return e.dayOfWeek===r&&ed(e)}))return null;var u=es(o),s=es(c);return(0,l.jsx)(W,{label:(0,H.j4)({day:r,t:e})(),value:"".concat(u," - ").concat(s),breakWord:!1},"".concat(a,"-").concat(r,"-").concat(o))}if("openTime"in t){var d=t.dayOfWeek,f=t.openDay,p=t.openTime,y=t.closeDay,b=t.closeTime;if(ed(t))return null;var h=f&&f!==d,m=y&&y!==d,g=[h&&(0,H.j4)({day:f,short:!0,t:e})(),(0,H.s0)(p),"-",m&&(0,H.j4)({day:y,short:!0,t:e})(),(0,H.s0)(b)].filter(Boolean).join(" ");return(0,l.jsx)(W,{label:(0,H.j4)({day:d,t:e})(),value:g,breakWord:!1},"".concat(a,"-").concat(d,"-").concat(p))}return null}).filter(Boolean))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return eu(e,void 0);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 eu(e,t)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return(0,l.jsx)(l.Fragment,{children:s})},[o,i,c,e]);return(0,l.jsx)(k.Z,{label:e("Trading Hours"),defaultExpanded:!0,children:r?(0,l.jsx)(ea.ZP,{}):u})},ep=function(){var e=(0,s.jO)().isHorizon;return(0,l.jsxs)(ey,{children:[!e&&(0,l.jsx)(ei,{}),(0,l.jsx)(el,{}),(0,l.jsx)(ef,{})]})};var ey=c.ZP.div.withConfig({componentId:"sc-2d6f0851-0"})(["display:flex;flex-direction:column;"]),eb=n(82391),eh=n(99773),em=n(84823),eg=n(48881),ev=n(36333),ex=n(58822),eS=n(48260),eT=n(61856),eO=n(92963),eC=n(20231),eP=n(3827),ew=n(59395);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}var ej=em.Ry().shape({lotSize:(0,ew.sT)(em.Z_()),fillPolicy:(0,ew.Ke)(em.nK()),expiration:em.hT().transform(ec.mf).when(["fillPolicy","$expirationLabel"],function(e,t){var n=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=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)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.")}(),r=n[0],o=n[1];return r===eg.T3.GTD?t.required((0,ec.$A)({label:o||""})):t})}),eE=function(e){var t,n=e.onSuccess,r=e.onError,o=e.showTradeConfirmationModal,i=(0,s.jO)().isMT4,l=(0,s.$X)(),c=null!=(t=(0,ex.XT)())?t:x.Zk.MARKET,u=(0,h.Q9)(),d=(0,v._f)(["lotSizeStep","type","symbol","maxContractLotSize","minContractLotSize","contractSize"]),f=d.lotSizeStep,p=d.type,y=d.symbol,b=d.maxContractLotSize,m=d.minContractLotSize,g=d.contractSize,S=(0,eP.h)(),T=(0,eT.GM)().lotSizeMode,O=(0,ex.zi)(),C=(0,eC.A)(),P=C.fillPolicyOptions,w=C.initialFillPolicy,k=(0,a.useMemo)(function(){return(0,eO.qn)(eO.tV.EXPIRATION,l)},[l]),j=(0,a.useMemo)(function(){return(0,eh.X)(ej)},[]),E=(0,ev.w)({resolver:j,mode:"onBlur",shouldFocusError:!1,context:{lotSizeStep:f,maxContractLotSize:b,minContractLotSize:m,contractSize:g,sizeLabel:S,lotSizeMode:T,isFillPolicyRequired:!i,expirationLabel:k},defaultValues:{lotSize:O.lotSize,units:O.units,fillPolicy:w}}),I=E.handleSubmit,L=E.reset,A=E.setValue,R=(0,a.useCallback)(function(e){var t=function(t){eS._.createOrder({formData:e,onSuccess:function(){var r;n(),null==t||t(),L({fillPolicy:null!=(r=null==P?void 0:P[0])?r:eS._.getFillPolicyDefaultValue({orderTypeLabel:c,symbolCategory:p}),lotSize:e.lotSize,units:e.units})},onError:function(e){r(e),null==t||t()}})};u?t():o({formValues:e,formMethods:E,onConfirm:function(e){t(e)}})},[E,u,r,n,c,L,o,p,P]),_=(0,a.useCallback)(function(e){I(R)(e)},[I,R]);return(0,a.useEffect)(function(){var e;A("fillPolicy",null!=(e=null==P?void 0:P[0])?e:eS._.getFillPolicyDefaultValue({orderTypeLabel:c,symbolCategory:p}))},[P,c,A,p,y]),(0,a.useEffect)(function(){return function(){var e=E.getValues();(e.lotSize||e.units)&&(0,ex.NB)({lotSize:e.lotSize,units:e.units})}},[E]),{formMethods:E,onSubmit:_}},eI=n(65528),eL=n(15861),eA=n(58118),eR=n(32964),e_=n(16208),eM=n(2776),eZ=n(21791),eB=n(52227),eD=n(19584),eU=n(33481);let ez=function(e){var t=e.dataTestId,n=(0,v._f)(["ask","tickRulesGroup","decimal"])||{},r=n.ask,o=n.tickRulesGroup,i=n.decimal;return(0,l.jsx)(eG,{"data-testid":void 0===t?"":t,children:(0,eU.Wi)(r,(0,eU.os)(r,o,i),!1)})};var eG=c.ZP.div.withConfig({componentId:"sc-997d762d-0"})(["line-height:16px;"]);let eN=function(e){var t=e.dataTestId,n=(0,v._f)(["bid","tickRulesGroup","decimal"])||{},r=n.bid,o=n.tickRulesGroup,i=n.decimal;return(0,l.jsx)(eF,{"data-testid":t,children:(0,eU.Wi)(r,(0,eU.os)(r,o,i),!1)})};var eF=c.ZP.div.withConfig({componentId:"sc-147a5628-0"})(["line-height:16px;"]),eX=n(47797),eY=n(62237),eH=n(28347),eV=n(96497);let e$=function(){var e=(0,y.$G)().t,t=(0,s.YR)(),n=(0,eb.g)().onQuickTradePlaceOrder,r=(0,v.M8)(),o=(0,eZ.Z)(r),i=o.isDisableTrade,c=o.disabledLabel,u=(0,eB.Z)(),d=u.isLongAllowed,f=u.isShortAllowed,p=u.isSingleButtonMode,h=(0,eM.Z)({openModalVerifyAccount:eY.B,openM
1odalVerifyInProgress:eX.R,openModalNoTradeAccountCreated:eH.q}).onCheckKycStatus,x=(0,a.useMemo)(function(){var n=e("BUY"),r=e("SELL");return{leftBtnLabel:t?r:n,rightBtnLabel:t?n:r,leftBtnVariant:t?eD.u.SELL:eD.u.BUY,rightBtnVariant:t?eD.u.BUY:eD.u.SELL}},[t,e]),S=x.leftBtnLabel,T=x.rightBtnLabel,O=x.leftBtnVariant,C=x.rightBtnVariant,P=(0,a.useCallback)(function(e){m.q.order.orderFieldClick({action:e===eg.pE.BUY?g.mN.BUY_BUTTON_CLICKED:g.mN.SELL_BUTTON_CLICKED,symbol:null==r?void 0:r.symbol,modalType:g.XV.OPW})},[null==r?void 0:r.symbol]),w=(0,a.useCallback)(function(){var e=t?eg.pE.SELL:eg.pE.BUY;P(e),n(e)},[t,n,P]),k=(0,a.useCallback)(function(){var e=t?eg.pE.BUY:eg.pE.SELL;P(e),n(e)},[t,n,P]),j=(0,a.useMemo)(function(){return{leftBtnTestId:t?b.Of.TRADE_BUTTON_OCT_ORDER_SELL:b.Of.TRADE_BUTTON_OCT_ORDER_BUY,rightBtnTestId:t?b.Of.TRADE_BUTTON_OCT_ORDER_BUY:b.Of.TRADE_BUTTON_OCT_ORDER_SELL}},[t]),E=j.leftBtnTestId,I=j.rightBtnTestId,L=t?eN:ez,A=t?ez:eN,R=(0,a.useMemo)(function(){var e=t?f:d;return{variant:e?O:C,label:e?S:T,testId:e?E:I,onClick:e?w:k,LiveText:e?L:A}},[t,f,d,O,C,S,T,E,I,w,k,L,A]);if(i)return(0,l.jsx)(eQ,{children:(0,l.jsx)(eK,{$noTrade:!0,children:(0,l.jsx)(eV.Z,{label:c})})});if(p){var _=R.variant,M=R.label,Z=R.testId,B=R.onClick,D=R.LiveText;return(0,l.jsx)(eQ,{children:(0,l.jsx)(eK,{$noTrade:!0,children:(0,l.jsx)(eD.P,{variant:_,onClick:B,size:"large",stretch:!0,dataTestId:Z,children:(0,l.jsxs)(eW,{children:[(0,l.jsx)(eq,{children:M}),(0,l.jsx)(D,{})]})})})})}return(0,l.jsx)(eQ,{children:(0,l.jsxs)(eK,{children:[(0,l.jsx)(eD.P,{variant:O,onClick:function(){h(w)},size:"large",diagonal:!0,dataTestId:E,children:(0,l.jsxs)(eW,{children:[(0,l.jsx)(eq,{children:S}),(0,l.jsx)(L,{})]})}),(0,l.jsx)(eD.P,{variant:C,onClick:function(){h(k)},size:"large",diagonal:!0,dataTestId:I,children:(0,l.jsxs)(eW,{children:[(0,l.jsx)(eq,{children:T}),(0,l.jsx)(A,{})]})})]})})};var eQ=c.ZP.div.withConfig({componentId:"sc-be317159-0"})(["display:flex;flex-direction:column;"]),eK=c.ZP.div.withConfig({componentId:"sc-be317159-1"})(["display:flex;flex:1;flex-direction:row;padding:","px;padding-top:0;button{flex:1 !important;}button:first-child{margin-inline-end:","px;}"],u.A.REGULAR,function(e){return 28*!e.$noTrade}),eW=c.ZP.div.withConfig({componentId:"sc-be317159-2"})(["display:flex;flex-direction:column;"]),eq=c.ZP.div.withConfig({componentId:"sc-be317159-3"})(["line-height:16px;"]),eJ=n(81993);function e0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e1(e){return(e1=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function e2(e,t){return(e2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function e3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e3=function(){return!!e})()}var e8={loading:!0,displayPriceLadderAsks:[],displayPriceLadderBids:[]},e6=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=e1(n=t),e0(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,e3()?Reflect.construct(n,[],e1(this).constructor):n.apply(this,r)),"setLoading",function(t){e.context.loading=t}),e0(e,"setDisplayPriceLadderAsks",function(t){e.context.displayPriceLadderAsks=t}),e0(e,"setDisplayPriceLadderBids",function(t){e.context.displayPriceLadderBids=t}),e.context=e8,e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&e2(t,e),t}(eJ.default)),e5=((o={})[o.ASK=0]="ASK",o[o.BID=1]="BID",o),e7=function(){return(0,eJ.useService)(e6,function(e){return e.loading})};n(32435),n(48868),n(54861),n(81874),n(13484),n(19975),n(65132),n(36809),n(67285),n(90619),n(37885);var e9=n(25951),e4=n(52941),te=n(46762);function tt(e,t,n,r,o,i,l){try{var a=e[i](l),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function tn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function l(e){tt(i,r,o,l,a,"next",e)}function a(e){tt(i,r,o,l,a,"throw",e)}l(void 0)})}}function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var ti=new function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");tr(this,"currentSymbol",""),tr(this,"symbolToSubscribeSet",new Set),tr(this,"mappedAllAsks",[]),tr(this,"mappedAllBids",[]),tr(this,"init",function(e){return tn(function(){return to(this,function(t){return this.currentSymbol=e,this.getPriceLadder(),[2]})}).call(t)}),tr(this,"reset",function(){t.currentSymbol=void 0,t.mappedAllAsks=[],t.mappedAllBids=[],e6.setDisplayPriceLadderAsks([]),e6.setDisplayPriceLadderBids([])}),tr(this,"getPriceLadder",function(){return tn(function(){var e;return to(this,function(t){switch(t.label){case 0:if(e=this,void 0===this.currentSymbol)return[2];
1return e6.setLoading(!0),[4,e9.YQ.getPriceLadder({symbol:this.currentSymbol},{onSuccess:function(t){e.massagePriceLadderData(t),e6.setLoading(!1)},onError:function(e){e.isAborted||e6.setLoading(!1)}})];case 1:return t.sent(),[2]}})}).call(t)}),tr(this,"subscribeSymbolInViewport",function(e){t.currentSymbol===e&&(t.symbolToSubscribeSet.has(e)||(e4.Rk.subscribe(e,e4.d4,t.updatePriceLadderData),t.symbolToSubscribeSet.add(e)))}),tr(this,"unsubscribeSymbolInViewport",function(){var e=!0,n=!1,r=void 0;try{for(var o,i=t.symbolToSubscribeSet[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var l=o.value;e4.Rk.unsubscribe(l,e4.d4,t.updatePriceLadderData),t.symbolToSubscribeSet.delete(l)}}catch(e){n=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}),tr(this,"initSocketReconnectionListener",function(){e4.LR.addReconnectListener(t.onReconnectSocket)}),tr(this,"removeSocketReconnectionListener",function(){e4.LR.removeReconnectListener(t.onReconnectSocket)}),tr(this,"onReconnectSocket",function(){t.getPriceLadder()}),tr(this,"updatePriceLadderData",function(e){if(t.currentSymbol===(null==e?void 0:e.D.S)){if(e&&e.M===te.Hk.LIVE){var n,r=t.massagePriceLadderSocketLiveData(e.D.A,t.mappedAllAsks.slice()),o=t.massagePriceLadderSocketLiveData(e.D.B,t.mappedAllBids.slice()),i={symbol:null!=(n=e.D.S)?n:"",asks:r,bids:o};t.massagePriceLadderData(i)}else if(e&&e.M===te.Hk.SNAPSHOT){var l,a=[],c=[];e.D.A&&e.D.A.forEach(function(e){a.push({position:e.POS,price:e.P,size:e.S})}),e.D.B&&e.D.B.forEach(function(e){c.push({position:e.POS,price:e.P,size:e.S})});var u={symbol:null!=(l=e.D.S)?l:"",asks:a,bids:c};t.massagePriceLadderData(u)}}}),tr(this,"massagePriceLadderData",function(e){var n,r;t.mappedAllAsks=null!=(n=null==e?void 0:e.asks)?n:[],e6.setDisplayPriceLadderAsks(t.mappedAllAsks.sort(function(e,t){return t.price-e.price})),t.mappedAllBids=null!=(r=null==e?void 0:e.bids)?r:[],e6.setDisplayPriceLadderBids(t.mappedAllBids.sort(function(e,t){return t.price-e.price}))}),tr(this,"massagePriceLadderSocketLiveData",function(e,t){return e.length>0&&e.forEach(function(e){var n={position:e.POS,price:e.P,size:e.S},r=t.findIndex(function(e){return e.price===n.price});e.TYP===te.D5.NEW?t.splice(r>-1?r-1:0,0,n):e.TYP===te.D5.CHANGE?r>-1&&(t[r]=n):e.TYP===te.D5.DELETE&&r>-1&&t.splice(r,1)}),t})},tl=n(16672);let ta=function(e){var t=e.buy,n=e.onClick,r=e.onMouseEnter,o=e.onMouseLeave;return(0,l.jsx)(tc,{onClick:n,onMouseEnter:r,onMouseLeave:o,children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:t>0?t:""})})};var tc=c.ZP.td.withConfig({componentId:"sc-d83e53d6-0"})(["flex:1;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:",";&:hover{background-color:",";}cursor:normal;"],function(e){return e.theme.themeColors.tag.success.background},function(e){return e.theme.themeColors.pnl.positive.disabled});n(82526),n(41817),n(32165),n(66992),n(33948),n(78783);var tu=n(96838),ts=n(80199),td=n(51015),tf=n(97186),tp=n(88651),ty=n(16689),tb=n(18551),th=n(56740),tm=n(86969);function tg(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}n(47042);let tv=function(e){var t,n=e.orderIds,r=(0,y.$G)().t,o=(0,s.$X)(),i=(t=(0,a.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tg(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 tg(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.")}()),c=i[0],u=i[1];return(0,l.jsxs)(tS,{children:[(0,l.jsxs)(tT,{typography:Q.wZ.TEXT_M_REGULAR,children:[(0,eO.r9)(eO.tM.MARKET_ORDER_NO,o),":"]}),(0,l.jsx)(tx,{children:n.length<=3?n.map(function(e){return(0,l.jsx)(tO,{typography:Q.wZ.TEXT_M_REGULAR,children:e},e)}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tC,{children:(c?n:n.slice(0,3)).map(function(e){return(0,l.jsx)(tO,{typography:Q.wZ.TEXT_M_REGULAR,children:e},e)})}),(0,l.jsx)(tP,{children:(0,l.jsx)(tw,{variant:tu.eF.TEXT_ONLY_THEMED,onClick:function(){return u(!c)},children:c?r("Show less"):"".concat(r("Show all")," (").concat(n.length,")")})})]})})]})};var tx=c.ZP.div.withConfig({componentId:"sc-357fc5d3-0"})(["display:flex;flex-direction:column;column-gap:","px;"],u.A.M),tS=c.ZP.div.withConfig({componentId:"sc-357fc5d3-1"})(["display:flex;flex-direction:row;column-gap:","px;"],u.A.M),tT=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-357fc5d3-2"})(["flex:1;flex-grow:1;color:",";"],function(e){return e.theme.themeColors.text.strong}),tO=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-357fc5d3-3"})(["color:",";"],function(e){return e.theme.themeColors.text.strong}),tC=c.ZP.div.withConfig({componentId:"sc-357fc5d3-4"})(["display:flex;flex-direction:column;max-height:190px;overflow-y:auto;gap:","px;"],u.A.XXS),tP=c.ZP.div.withConfig({componentId:"sc-357fc5d3-5"})(["margin-top:","px;display:flex;justify-content:flex-end;"],u.A.XS),tw=(0,c.ZP)(tu.ZP).withConfig({componentId:"sc-357fc5d3-6"})(["padding:0;min-width:40px !important;"]);let tk=function(e){var t=e.orderIds,n=e.orderType,r=e.symbol;return(0,l.jsxs)(tj,{children:[(0,l.jsxs)(tE,{children:[(0,l.jsx)(tI,{typography:Q.wZ.TEXT_L_MEDIUM,children:r}),(0,l.jsx)(tL,{children:void 0!==n&&(0,l.jsx)(tm.Z,{orderType:n})})]}),(null==t?void 0:t.length)>0&&(0,l.jsx)(tv,{orderIds:t})]})};var tj=c.ZP.div.withConfig({componentId:"sc-d4fdea47-0"})(["display:flex;flex-direction:column;row-gap:","px;padding-bottom:20px;border-bottom:1px solid ",";"],u.A.XXS,function(e){return e.theme.themeColors.border.default}),tE=c.ZP.div.withConfig({componentId:"sc-d4fdea47-1"})(["display:flex;flex-direction:row;column-gap:","px;"],u.A.M),tI=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-d4fdea47-2"})(["flex:1;flex-grow:1;color:",";"],function(e){return e.theme.themeColors.text.strong}),tL=c.ZP.div.withConfig({componentId:"sc-d4fdea47-3"})(["align-content:center;"]),tA=function(e){var t=e.orderIds,n=e.onCancel,r=(0,y.$G)().t,o=(0,td.ES)(t[0]),i=o.symbol,c=o.orderType,u=(0,ex.Kg)(),d=(0,tb.j)().getErrorSnackbarProps,f=(0,a.useMemo)(function(){var e=s.lj.getCompanyIntegration()===j.wS.CENTROID,n=td.yF.context.mappedPendingOrders;return t.map(function(t){var r=t;if(e){var o=n[t];(null==o?void 0:o.id)!==void 0&&(null==o?void 0:o.id)!==null&&(r=o.id.toString())}return{symbol:i,orderId:r}})},[t,i]),p=(0,a.useCallback)(function(){eS._.bulkClosePendingOrder({params:f,onSuccess:function(){null==n||n(),(0,ty.ur)({message:r("Order has been deleted."),messageType:th.KK.SUCCESS})},onError:function(e){var t=d(e),n=t.message,r=t.messageType;(0,ty.ur)({message:n,messageType:r})}})},[n,f,r,d]);return(0,l.jsx)(tf.ZP,{variant:tf.KH.CONFIRMATION,okText:r("Confirm"),cancelText:r("Cancel"),onCancel:n,onOk:p,modalTitle:r("Confirm To Delete Pending Orders"),loading:u,children:(0,l.jsxs)(t_,{children:[(0,l.jsx)(tk,{orderIds:t,orderType:c,symbol:i}),(0,l.jsx)(tM,{children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_M_REGULAR,children:r("Would you like to delete all associated pending orders?")})})]})})};let tR=function(e){var t=(e||{}).onCancel,n=function(e){null==t||t(),e()};(0,tp.ZP)(function(t){var r,o;return(0,l.jsx)(tA,(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){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}({},e),o=o={onCancel:function(){return n(t)}},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(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(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r))})};var t_=c.ZP.div.withConfig({componentId:"sc-57b15dbe-0"})(["display:flex;flex-direction:column;width:376px;padding:","px ","px;padding-bottom:","px;box-sizing:border-box;"],u.A.XL,u.A.L,u.A.XXS),tM=c.ZP.div.withConfig({componentId:"sc-57b15dbe-1"})(["display:flex;flex-direction:column;row-gap:","px;padding-top:20px;"],u.A.REGULAR);function tZ(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 tB=function(e){var t,n=e.currentPrice,r=e.isBuyHovered,o=e.isAboveTopOfBook,i=(0,y.$G)().t,c=(0,v.EQ)(),u=(0,td.wB)(c).pendingOrders,s=(t=(0,a.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return tZ(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 tZ(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.")}()),d=s[0],f=s[1],p=(0,(0,eb.g)().watch)("lotSize")||0,b=(0,a.useCallback)(function(){var e=u.filter(function(e){return e.orderType===eg.pE.BUY_LIMIT||e.orderType===eg.pE.BUY_STOP}),t=o?e.filter(function(e){return e.orderType===eg.pE.BUY_STOP&&e.stopPrice===n}):e.filter(function(e){return e.orderType===eg.pE.BUY_LIMIT&&e.limitPrice===n}),r=0,i=[],l=!0,a=!1,c=void 0;try{for(var s,d=t[Symbol.iterator]();!(l=(s=d.next()).done);l=!0){var f=s.value;r+=f.remainedLotSize||0,i.push(f.orderId)}}catch(e){a=!0,c=e}finally{try{l||null==d.return||d.return()}finally{if(a)throw c}}return{buyOrderLotSize:r,buyOrderIds:i}},[n,o,u])(),h=b.buyOrderLotSize,m=b.buyOrderIds,g=(0,a.useCallback)(function(){(null==m?void 0:m.length)>0&&tR({orderIds:m})},[m]);return r?(0,l.jsxs)(tU,{children:[(0,l.jsx)(tz,{typography:Q.wZ.TEXT_XS_MEDIUM,children:i(o?"Buy STP":"Buy LMT")}),(0,l.jsx)(tz,{typography:Q.wZ.TEXT_XS_MEDIUM,children:p})]}):(0,l.jsxs)(tD,{onMouseEnter:function(){return f(!0)},onMouseLeave:function(){return f(!1)},$isHover:h>0,children:[(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:h>0?h:""}),d&&h>0&&(0,l.jsx)(tu.ZP,{variant:tu.eF.ICON_ONLY,icon:ts.Ro.CANCEL_CIRCLE,onClick:g,iconSize:ts.sk.S})]})};var tD=c.ZP.td.withConfig({componentId:"sc-3f22fc8f-0"})(["flex:1;display:flex;justify-content:center;align-items:center;background-color:",";&:hover{background-color:",";}cursor:",";"],function(e){return e.theme.themeColors.background.default},function(e){var t=e.theme;return e.$isHover?t.themeColors.background.subtle:t.themeColors.background.default},function(e){return e.$isHover?"pointer":"normal"}),tU=c.ZP.td.withConfig({componentId:"sc-3f22fc8f-1"})(["flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:",";"],function(e){return e.theme.themeColors.pnl.positive.default}),tz=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-3f22fc8f-2"})(["color:",";"],function(e){return e.theme.themeColors.background.default}),tG=n(99747),tN=n(30070),tF=n(15226),tX=n(82100),tY=((i={}).BUY="BUY",i.SELL="SELL",i.HIGH="HIGH",i.LOW="LOW",i);let tH=function(e){var t,n,r=e.variant,o=e.positionId,i=e.units,c=e.price,u=e.tickRulesGroup,s=e.decimal,d=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,["variant","positionId","units","price","tickRulesGroup","decimal"]),f=(0,y.$G)().t,p=[{title:r===tY.BUY?"Buy Position":"Sell Position",paragraphs:["".concat(i," units at $").concat((0,eU.Wi)(c,(0,eU.os)(c,u,s),!1))]}],b=(0,a.useCallback)(function(){o&&(0,tX.K)({positionId:o})},[o]);return(0,l.jsx)(tF.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}({},d),n=n={placement:"top",content:(0,l.jsx)(l.Fragment,{children:p.map(function(e,t){var n=e.title,r=e.paragraphs;return(0,l.jsxs)(tV,{children:[n&&(0,l.jsx)(t$,{typography:Q.wZ.TEXT_S_MEDIUM,children:n}),r&&r.map(function(e,t){return(0,l.jsx)(t$,{typography:Q.wZ.TEXT_S_REGULAR,children:e},"".concat(t+e))}),(0,l.jsx)(tW,{children:(0,l.jsx)(tu.ZP,{variant:tu.eF.OUTLINED_THEMED,size:"xsmall",onClick:b,children:f("Close")})})]},"".concat(t.toString(),"-").concat(n))})}),children:(0,l.jsx)(tQ,{$variant:r,children:(0,l.jsx)(tK,{typography:Q.wZ.TEXT_XXS_REGULAR,children:"P"})})}
1,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))};var tV=c.ZP.div.withConfig({componentId:"sc-60af603c-0"})(["padding:","px ","px;display:flex;flex-direction:column;"],u.A.XXS,u.A.XS),t$=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-60af603c-1"})(["color:",";"],function(e){return e.theme.themeColors.background.default}),tQ=c.ZP.div.withConfig({componentId:"sc-60af603c-2"})(["display:flex;padding:0 3px;flex-direction:column;align-items:center;border-radius:80px;background-color:",";"],function(e){var t=e.theme;return e.$variant===tY.BUY?t.themeColors.pnl.positive.default:t.themeColors.pnl.negative.hover}),tK=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-60af603c-3"})(["color:",";"],function(e){return e.theme.themeColors.background.default}),tW=c.ZP.div.withConfig({componentId:"sc-60af603c-4"})(["display:inline-flex;flex-direction:column;padding-top:2px;"]);let tq=function(e){var t=e.price,n=e.nextRowPrice,r=(0,v.oC)().lastPrice,o=(0,tl.M7)(n),i=(0,v.EQ)(),c=(0,v._f)(["tickRulesGroup","decimal"]),u=c.tickRulesGroup,d=c.decimal,f=(0,td.wB)(i).openPositions,p=(0,a.useCallback)(function(){var e=[];return f.forEach(function(n){n.orderType===eg.pE.BUY?[n.avgBoughtPrice===t,!!o&&n.avgBoughtPrice<=t&&n.avgBoughtPrice>=o].includes(!0)&&e.push(n):n.orderType===eg.pE.SELL&&[n.avgSoldPrice===t,!!o&&n.avgSoldPrice<=t&&n.avgSoldPrice>=o].includes(!0)&&e.push(n)}),e[0]},[f,o,t])(),y=(0,s.jO)().isHorizon?null==p?void 0:p.symbol:null==p?void 0:p.orderId;return(0,l.jsxs)(tJ,{$isLastPrice:r===t,children:[(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:(0,tN.W)(t,(0,eU.os)(t,u,d),!1)}),p&&(0,l.jsx)(tH,{variant:p.orderType===eg.pE.BUY?tY.BUY:tY.SELL,positionId:y,units:null==p?void 0:p.lotSize,price:p.orderType===eg.pE.BUY?null==p?void 0:p.avgBoughtPrice:null==p?void 0:p.avgSoldPrice,tickRulesGroup:u})]})};var tJ=c.ZP.td.withConfig({componentId:"sc-6ef6c13b-0"})(["flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:",";"],function(e){var t=e.theme;return e.$isLastPrice?(0,tG.m4)(t.themeColors.primary,.24):t.themeColors.background.default});let t0=function(e){var t,n,r=e.variant,o=e.price,i=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,["variant","price"]),a=[{title:r===tY.HIGH?"High":"Low",paragraphs:["".concat(o)]}];return(0,l.jsx)(tF.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}({},i),n=n={placement:"top",content:(0,l.jsx)(l.Fragment,{children:a.map(function(e,t){var n=e.title,o=e.paragraphs;return(0,l.jsxs)(t1,{children:[(0,l.jsx)(t2,{typography:Q.wZ.TEXT_S_MEDIUM,$isHigh:r===tY.HIGH,children:n}),(0,l.jsx)(t3,{typography:Q.wZ.TEXT_S_REGULAR,children:" ".concat(o[0])})]},"high-low-".concat(t.toString()))})}),children:(0,l.jsx)(t8,{},r===tY.HIGH?"high-price":"low-price")},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))};var t1=c.ZP.div.withConfig({componentId:"sc-a71d7872-0"})(["flex:1;display:flex;flex-direction:row;padding:","px ","px;"],u.A.XXS,u.A.XS),t2=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-a71d7872-1"})(["color:",";"],function(e){var t=e.theme;return e.$isHigh?t.themeColors.pnl.positive.default:t.themeColors.pnl.negative.hover}
1),t3=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-a71d7872-2"})(["color:",";margin-inline-start:","px;"],function(e){return e.theme.themeColors.background.default},u.A.XXS),t8=c.ZP.div.withConfig({componentId:"sc-a71d7872-3"})(["flex:1;display:flex;width:240px;height:1px;background-color:",";cursor:pointer;"],function(e){return e.theme.themeColors.primary});let t6=function(e){var t=e.price,n=e.isHighPrice,r=e.isLowPrice,o=(0,v.oC)(),i=o.high,a=o.low;return n||r?(0,l.jsx)(t5,{children:(0,l.jsx)(t7,{children:(0,l.jsx)(t0,{variant:n?tY.HIGH:tY.LOW,price:n?void 0===i?0:i:void 0===a?0:a})})},n?"high-price-row-".concat(t):"low-price-row-".concat(t)):null};var t5=c.ZP.tr.withConfig({componentId:"sc-8a0ee2ac-0"})(["display:flex;"]),t7=c.ZP.td.withConfig({componentId:"sc-8a0ee2ac-1"})(["display:flex;"]);let t9=function(e){var t=e.sell,n=e.onClick,r=e.onMouseEnter,o=e.onMouseLeave;return(0,l.jsx)(t4,{onClick:n,onMouseEnter:r,onMouseLeave:o,children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:t>0?t:""})})};var t4=c.ZP.td.withConfig({componentId:"sc-e98c3bbe-0"})(["flex:1;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:",";&:hover{background-color:",";}cursor:normal;"],function(e){return e.theme.themeColors.tag.error.background},function(e){return e.theme.themeColors.pnl.negative.disabled});function ne(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 nt=function(e){var t,n=e.currentPrice,r=e.isSellHovered,o=e.isAboveTopOfBook,i=(0,y.$G)().t,c=(0,v.EQ)(),u=(0,td.wB)(c).pendingOrders,s=(t=(0,a.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ne(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 ne(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.")}()),d=s[0],f=s[1],p=(0,(0,eb.g)().watch)("lotSize")||0,b=(0,a.useCallback)(function(){var e=u.filter(function(e){return e.orderType===eg.pE.SELL_LIMIT||e.orderType===eg.pE.SELL_STOP}),t=o?e.filter(function(e){return e.orderType===eg.pE.SELL_LIMIT&&e.limitPrice===n}):e.filter(function(e){return e.orderType===eg.pE.SELL_STOP&&e.stopPrice===n}),r=0,i=[],l=!0,a=!1,c=void 0;try{for(var s,d=t[Symbol.iterator]();!(l=(s=d.next()).done);l=!0){var f=s.value;r+=f.remainedLotSize||0,i.push(f.orderId)}}catch(e){a=!0,c=e}finally{try{l||null==d.return||d.return()}finally{if(a)throw c}}return{sellOrderLotSize:r,sellOrderIds:i}},[n,o,u])(),h=b.sellOrderLotSize,m=b.sellOrderIds,g=(0,a.useCallback)(function(){m.length>0&&tR({orderIds:m})},[m]);return r?(0,l.jsxs)(nr,{children:[(0,l.jsx)(no,{typography:Q.wZ.TEXT_XS_MEDIUM,children:i(o?"Sell LMT":"Sell STP")}),(0,l.jsx)(no,{typography:Q.wZ.TEXT_XS_MEDIUM,children:p})]}):(0,l.jsxs)(nn,{onMouseEnter:function(){return f(!0)},onMouseLeave:function(){return f(!1)},$isHover:h>0,children:[(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:h>0?h:""}),d&&h>0&&(0,l.jsx)(tu.ZP,{variant:tu.eF.ICON_ONLY,icon:ts.Ro.CANCEL_CIRCLE,onClick:g,iconSize:ts.sk.S})]})};var nn=c.ZP.td.withConfig({componentId:"sc-852c4883-0"})(["flex:1;display:flex;justify-content:center;align-items:center;background-color:",";&:hover{background-color:",";}cursor:",";"],function(e){return e.theme.themeColors.background.default},function(e){var t=e.theme;return e.$isHover?t.themeColors.background.subtle:t.themeColors.background.default},function(e){return e.$isHover?"pointer":"normal"}),nr=c.ZP.td.withConfig({componentId:"sc-852c4883-1"})(["flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:",";"],function(e){return e.theme.themeColors.pnl.negative.default}),no=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-852c4883-2"})(["color:",";"],function(e){return e.theme.themeColors.background.default});function ni(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 nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function na(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){nl(e,t,n[t])})}return e}function nc(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}let nu=function(e){var t,n,r,o=e.item,i=e.isHighPrice,c=e.isLowPrice,u=e.nextRowPrice,s=(t=(0,a.useState)({}),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ni(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 ni(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.")}()),d=s[0],f=s[1],p=(0,eb.g)().onLadderPlaceOrder,y=(0,eJ.useService)(e6,function(e){if(0!==e.displayPriceLadderAsks.length||0!==e.displayPriceLadderBids.length){if(e.displayPriceLadderAsks.length>0){var t=e.displayPriceLadderAsks[e.displayPriceLadderAsks.length-1];return{position:t.position,price:t.price,size:t.size,dataType:0}}else if(e.displayPriceLadderBids.length>0){var n=e.displayPriceLadderBids[0];return{position:n.position,price:n.price,size:n.size,dataType:1}}}}),b=function(e,t){f(function(n){return nc(na({},n),nl({},e,na({},n[e],t===eg.pE.BUY?{isBuyHovered:!0}:{isSellHovered:!0})))})},h=function(e,t){f(function(n){return nc(na({},n),nl({},e,na({},n[e],t===eg.pE.BUY?{isBuyHovered:!1}:{isSellHovered:!1})))})},m=(0,a.useCallback)(function(e){return e.dataType===e5.ASK&&e.size>0},[]),g=(0,a.useCallback)(function(e){return e.dataType===e5.BID&&e.size>0},[]),v=(0,a.useCallback)(function(e,t){var n;t===eg.pE.BUY?n=m(e)?eg.pE.BUY_STOP:eg.pE.BUY_LIMIT:t===eg.pE.SELL&&(n=g(e)?eg.pE.SELL_STOP:eg.pE.SELL_LIMIT),n&&(null==p||p(n,e.price.toString()))},[m,g,p]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(ns,{"data-price":o.price,$topOfBookDataType:null==y?void 0:y.dataType,$topOfBookLine:(0,tl.U8)(o.price)===(0,tl.U8)(null==y?void 0:y.price),$isHighLow:i||c,children:[(0,l.jsx)(tB,{currentPrice:o.price,isBuyHovered:null==(n=d[o.price])?void 0:n.isBuyHovered,isAboveTopOfBook:m(o)}),(0,l.jsx)(ta,{buy:o.dataType===e5.BID?o.size:0,onClick:function(){return v(o,eg.pE.BUY)},onMouseEnter:function(){return b(o.price,eg.pE.BUY)},onMouseLeave:function(){return h(o.price,eg.pE.BUY)}}),(0,l.jsx)(tq,{price:o.price,nextRowPrice:u}),(0,l.jsx)(t9,{sell:o.dataType===e5.ASK?o.size:0,onClick:function(){return v(o,eg.pE.SELL)},onMouseEnter:function(){return b(o.price,eg.pE.SELL)},onMouseLeave:function(){return h(o.price,eg.pE.SELL)}}),(0,l.jsx)(nt,{currentPrice:o.price,isSellHovered:null==(r=d[o.price])?void 0:r.isSellHovered,isAboveTopOfBook:!g(o)})]},o.price),(0,l.jsx)(t6,{price:o.price,isHighPrice:i,isLowPrice:c})]})};var ns=c.ZP.tr.withConfig({componentId:"sc-4ecfcdd3-0"})(["display:flex;height:32px;border-top:",";border-bottom:",";"],function(e){var t=e.$topOfBookLine,n=e.$topOfBookDataType;return t&&n===e5.BID?"2px solid black":"0px solid transparent"},function(e){var t=e.$topOfBookLine,n=e.$isHighLow,r=e.$topOfBookDataType;return t&&r===e5.ASK?"2px solid black":n?"0px solid transparent":"1px solid transparent"});let nd=function(){var e=(0,eJ.useService)(e6,function(e){var t=[];return e.displayPriceLadderAsks.length>0&&e.displayPriceLadderAsks.forEach(function(e){t.push({position:e.position,price:e.price,size:e.size,dataType:0})}),e.displayPriceLadderBids.length>0&&e.displayPriceLadderBids.forEach(function(e){t.push({position:e.position,price:e.price,size:e.size,dataType:1})}),t}),t=(0,v.oC)(),n=t.high,r=void 0===n?0:n,o=t.low,i=void 0===o?0:o;return(0,l.jsx)("tbody",{children:e.map(function(t,n){var o,a,c,u=t.price>=r&&(null==(o=e[n+1])?void 0:o.price)<r&&n>=0,s=t.price>=i&&(null==(a=e[n+1])?void 0:a.price)<i&&n>=0;return(0,l.jsx)(nu,{item:t,isHighPrice:u,isLowPrice:s,nextRowPrice:null==(c=e[n+1])?void 0:c.price},"".concat(t.position,"_").concat(t.price,"_").concat(t.size))})})},nf=function(){var e=(0,y.$G)().t;return(0,l.jsx)(np,{children:(0,l.jsxs)(ny,{children:[(0,l.jsx)(nb,{children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:e("Buy Orders")})}),(0,l.jsx)(nb,{children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:e("Buy")})}),(0,l.jsx)(nb,{children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:e("Price")})}),(0,l.jsx)(nb,{children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:e("Sell")})}),(0,l.jsx)(nb,{children:(0,l.jsx)(K.ZP,{typography:Q.wZ.TEXT_XS_REGULAR,children:e("Sell Orders")})})]})})};var np=c.ZP.thead.withConfig({componentId:"sc-6e6dd9e3-0"})(["flex:1;display:flex;position:sticky;top:0;background-color:",";z-index:1;"],function(e){return e.theme.themeColors.background.active}),ny=c.ZP.tr.withConfig({componentId:"sc-6e6dd9e3-1"})(["flex:1;display:flex;"]),nb=c.ZP.th.withConfig({componentId:"sc-6e6dd9e3-2"})(["flex:1;height:34px;align-content:center;"]);function nh(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 nm=function(e){var t,n=e.symbol,r=e7(),o=(t=(0,a.useState)(!0),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return nh(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 nh(e,t)}}
1(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.")}()),i=o[0],c=o[1],u=(0,a.useRef)(null),s=(0,a.useRef)(null),d=(0,a.useRef)(null),f=(0,v._f)(["ask","bid"]),p=f.ask,y=f.bid,b=(void 0===p?0:p)||(void 0===y?0:y),h=(0,a.useCallback)(function(){if(u.current&&s.current){var e=u.current.querySelector('[data-price="'.concat(b,'"]'));if(e){var t=Math.max(0,e.offsetTop-4*e.clientHeight);i?(s.current.scrollTop=t,c(!1)):s.current.scrollTo({top:t,behavior:"smooth"})}}},[b,i]),m=(0,a.useCallback)(function(){d.current&&clearInterval(d.current),d.current=setInterval(function(){h()},3e3)},[h]),g=(0,a.useCallback)(function(){m()},[m]);return(0,a.useEffect)(function(){return h(),m(),function(){d.current&&clearInterval(d.current)}},[n,h,m]),(0,a.useEffect)(function(){c(!0)},[n]),(0,a.useEffect)(function(){var e=s.current;return e&&e.addEventListener("scroll",g),function(){e&&e.removeEventListener("scroll",g)}},[g]),(0,a.useEffect)(function(){r||h()},[r,h]),(0,l.jsx)(ng,{ref:s,children:(0,l.jsxs)(nv,{ref:u,children:[(0,l.jsx)(nf,{}),(0,l.jsx)(nd,{})]})})};var ng=c.ZP.div.withConfig({componentId:"sc-b3860ef4-0"}
1)(["height:548px;overflow-y:auto;"]),nv=c.ZP.table.withConfig({componentId:"sc-b3860ef4-1"})(["border-collapse:collapse;table-layout:fixed;width:100%;border-spacing:0px;"]);let nx=function(){var e=(0,v.EQ)(),t=e7();return(0,a.useEffect)(function(){return e&&(ti.init(e),ti.subscribeSymbolInViewport(e)),function(){ti.reset(),ti.unsubscribeSymbolInViewport()}},[e]),(0,a.useEffect)(function(){return ti.initSocketReconnectionListener(),function(){ti.removeSocketReconnectionListener()}},[]),(0,l.jsxs)(nS,{children:[(0,l.jsx)(nm,{symbol:e}),(0,l.jsx)(ea.ZP,{absolute:!0,visible:t})]})};var nS=c.ZP.div.withConfig({componentId:"sc-66d55b1-0"})(["flex-direction:column;min-height:528px;background-color:",";overflow:hidden;"],function(e){return e.theme.themeColors.background.default});let nT=function(){var e=(0,s.rW)(),t=(0,v._f)(["expiration","symbol","type"]),n=t.expiration,r=t.symbol,o=t.type,i=(0,s.jO)().isHorizon,c=(0,eL.R)(),u=eE({onSuccess:c.onSuccessOCTOrMarket,onError:c.onError,showTradeConfirmationModal:eI.d}),d=u.formMethods,f=u.onSubmit,p=(0,a.useMemo)(function(){return(0,S.z)(e)},[e]).hasLadderTrading,y=(0,h.Q9)();return p||y?(0,l.jsx)(eb.q,{modalType:g.XV.OPW,methods:d,onSubmit:f,children:(0,l.jsxs)(nO,{children:[(0,l.jsxs)(nC,{children:[(0,l.jsx)(nP,{children:i?(0,l.jsx)(eR.Z,{}):(0,l.jsx)(eA.Z,{})}),i&&(0,l.jsx)(e_.Z,{symbolId:r,symbolMaturityDate:n,symbolCategory:o,isOneClickTradingForm:!0})]}),y&&(0,l.jsx)(e$,{}),p&&(0,l.jsx)(nx,{})]})}):null};var nO=c.ZP.div.withConfig({componentId:"sc-30ab2a41-0"})(["display:flex;flex-direction:column;min-height:654px;"]),nC=c.ZP.div.withConfig({componentId:"sc-30ab2a41-1"})(["display:flex;flex-direction:column;gap:10px;padding:","px;"],u.A.REGULAR),nP=c.ZP.div.withConfig({componentId:"sc-30ab2a41-2"})(["display:flex;flex-direction:row;gap:10px;align-items:flex-end;"]),nw=n(18354),nk=n(67492),nj=n(19367);let nE=function(){var e=(0,y.$G)().t,t=(0,ex.XT)(),n=(0,v._f)(["symbol","orderTypes"]),r=(0,a.useMemo)(function(){var e;return(null!=(e=null==n?void 0:n.orderTypes)?e:[]).map(function(e){return{label:(0,nj.oK)(e,(0,I.of)()),value:e}})},[e,null==n?void 0:n.orderTypes]);(0,a.useEffect)(function(){eS._.ensureValidOrderTypeLabel(null==n?void 0:n.orderTypes)},[null==n?void 0:n.orderTypes]);var o=(0,a.useCallback)(function(){m.q.order.orderFieldClick({action:g.mN.ORDER_TYPE_CLICKED,symbol:null==n?void 0:n.symbol,modalType:g.XV.OPW})},[null==n?void 0:n.symbol]),i=(0,a.useCallback)(function(e){m.q.order.orderTypeSelect({orderTypeLabel:e,symbol:null==n?void 0:n.symbol,modalType:g.XV.OPW}),eS._.setOrderTypeLabel(e)},[null==n?void 0:n.symbol]);return(0,l.jsx)(nw.e1,{variant:nw.vI.ITEM_WITH_FIELD_LABEL,label:e("Order Type"),children:(0,l.jsx)(nk.Z,{dataTestId:b.Of.TRADE_DROPDOWN_ORDER_TYPE,options:r,onSelect:i,selectedValue:t,onToggleOnCallback:o,placeholder:e("Select an option")})})},nI=function(){var e=(0,y.$G)().t,t=(0,ex.tl)(),n=(0,s.YR)(),r=(0,v._f)(["symbol"]).symbol,o=(0,a.useMemo)(function(){return n?{leftOrderVariant:void 0===t||t===x.B9.SELL?eD.u.SELL:eD.u.SELL_IDLE,rightOrderVariant:void 0===t||t===x.B9.BUY?eD.u.BUY:eD.u.BUY_IDLE}:{leftOrderVariant:void 0===t||t===x.B9.BUY?eD.u.BUY:eD.u.BUY_IDLE,rightOrderVariant:void 0===t||t===x.B9.SELL?eD.u.SELL:eD.u.SELL_IDLE}},[t,n]),i=o.leftOrderVariant,c=o.rightOrderVariant,u=(0,a.useMemo)(function(){var t=e("BUY"),r=e("SELL");return{leftBtnLabel:n?r:t,rightBtnLabel:n?t:r}},[n,e]),d=u.leftBtnLabel,f=u.rightBtnLabel,p=(0,a.useCallback)(function(e){m.q.order.orderFieldClick({action:e===x.B9.BUY?g.mN.BUY_BUTTON_CLICKED:g.mN.SELL_BUTTON_CLICKED,symbol:r,modalType:g.XV.OPW})},[r]),h=(0,a.useCallback)(function(){var e=n?x.B9.SELL:x.B9.BUY;p(e),eS._.setBuySellType(e)},[n,p]),S=(0,a.useCallback)(function(){var e=n?x.B9.BUY:x.B9.SELL;p(e),eS._.setBuySellType(e)},[n,p]),T=(0,a.useMemo)(function(){return{leftBtnTestId:n?b.Of.TRADE_BUTTON_ORDER_SELL:b.Of.TRADE_BUTTON_ORDER_BUY,leftLiveBtnTestId:n?b.Of.TRADE_LIVE_SELL_PRICE:b.Of.TRADE_LIVE_BUY_PRICE,rightBtnTestId:n?b.Of.TRADE_BUTTON_ORDER_BUY:b.Of.TRADE_BUTTON_ORDER_SELL,rightLiveBtnTestId:n?b.Of.TRADE_LIVE_BUY_PRICE:b.Of.TRADE_LIVE_SELL_PRICE}},[n]),O=T.leftBtnTestId,C=T.leftLiveBtnTestId,P=T.rightBtnTestId,w=T.rightLiveBtnTestId,k=n?eN:ez,j=n?ez:eN;return(0,l.jsxs)(nL,{children:[(0,l.jsx)(eD.P,{dataTestId:O,diagonal:!0,variant:i,onClick:h,size:"large",children:(0,l.jsxs)(nA,{children:[(0,l.jsx)(nR,{children:d}),(0,l.jsx)(k,{dataTestId:C})]})}),(0,l.jsx)(eD.P,{dataTestId:P,diagonal:!0,variant:c,onClick:S,size:"large",children:(0,l.jsxs)(nA,{children:[(0,l.jsx)(nR,{children:f}),(0,l.jsx)(j,{dataTestId:w})]})})]})};var nL=c.ZP.div.withConfig({componentId:"sc-a4c38fe2-0"})(["display:flex;flex:1;flex-direction:row;padding:","px;button{flex:1 !important;}button:first-child{margin-inline-end:28px;}"],u.A.REGULAR),nA=c.ZP.div.withConfig({componentId:"sc-a4c38fe2-1"})(["display:flex;flex-direction:column;"]),nR=c.ZP.div.withConfig({componentId:"sc-a4c38fe2-2"})(["line-height:16px;"]);n(88674);var n_=(0,a.lazy)(function(){return Promise.all([n.e("125"),n.e("6897")]).then(n.bind(n,99460))}),nM=(0,a.lazy)(function(){return Promise.all([n.e("412"),n.e("9792"),n.e("125"),n.e("9763")]).then(n.bind(n,45262))}),nZ=(0,a.lazy)(function(){return Promise.all([n.e("125"),n.e("9670")]).then(n.bind(n,88107))});let nB=function(e){var t=e.customLimitFormMethods,n=e.customLimitSubmit,r=(0,s._9)(),o=(0,s.jO)(),i=o.isHorizon,c=o.isCentroid;return r?null:(0,l.jsx)(a.Suspense,{children:i?(0,l.jsx)(n_,{}
1):c?(0,l.jsx)(nZ,{customLimitFormMethods:t,customLimitSubmit:n}):(0,l.jsx)(nM,{})})};var nD=(0,a.lazy)(function(){return n.e("7508").then(n.bind(n,31963))}),nU=(0,a.lazy)(function(){return Promise.all([n.e("412"),n.e("125"),n.e("3860")]).then(n.bind(n,4061))});let nz=function(e){var t=e.customMarketFormMethods,n=e.customMarketSubmit,r=(0,s._9)(),o=(0,s.jO)().isHorizon;return r?null:(0,l.jsx)(a.Suspense,{children:o?(0,l.jsx)(nD,{}):(0,l.jsx)(nU,{customMarketFormMethods:t,customMarketSubmit:n})})},nG=function(e){var t=e.customLimitFormMethods,n=e.customLimitSubmit,r=e.customMarketFormMethods,o=e.customMarketSubmit,i=(0,ex.XT)(),c=(0,ex.tl)(),u=(0,s.YR)();(0,a.useEffect)(function(){if(void 0===c){var e=u?x.B9.SELL:x.B9.BUY;eS._.setBuySellType(e)}},[c,u]),(0,a.useEffect)(function(){return function(){eS._.setOrderType(void 0),eS._.setOrderTypeLabel(void 0)}},[]);var d=(0,a.useMemo)(function(){switch(i){case x.Zk.MARKET:return(0,l.jsx)(nz,{customMarketFormMethods:r,customMarketSubmit:o});case x.Zk.MARKET_TO_LIMIT:case x.Zk.LIMIT:case x.Zk.STOP:case x.Zk.STOP_LIMIT:return(0,l.jsx)(nB,{customLimitFormMethods:t,customLimitSubmit:n});default:return null}},[i,t,r,n,o]);return(0,l.jsxs)(nF,{children:[(0,l.jsx)(nI,{}),(0,l.jsxs)(nN,{children:[(0,l.jsx)(nE,{}),d]}),(0,l.jsx)(nX,{})]})};var nN=c.ZP.div.withConfig({componentId:"sc-6f212e85-0"})(["display:flex;flex-direction:column;gap:","px;padding:0 ","px;"],u.A.REGULAR,u.A.REGULAR),nF=c.ZP.div.withConfig({componentId:"sc-6f212e85-1"})(["display:flex;flex:1;flex-direction:column;overflow:scroll;"]),nX=c.ZP.div.withConfig({componentId:"sc-6f212e85-2"})(["height:270px;"]),nY=n(31378),nH=n(33007),nV=n(25932),n$=(0,a.forwardRef)(function(e,t){var n,r;return(0,l.jsx)(nQ,(n=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}({ref:t,"data-component":"view-only"},e),r=r={children:(0,l.jsx)(nV.Z,{variant:nV.R.NOT_TRADABLE})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n))}),nQ=c.ZP.div.withConfig({componentId:"sc-5493839-0"})(["position:absolute;display:flex;flex-direction:row;align-items:center;justify-content:center;height:calc(100% - 40px);width:100%;backdrop-filter:blur(3px);background:",";z-index:1001;"],function(e){var t=e.theme;return t.themeMode===nY.bS.DARK?(0,nH.m4)(t.themeColors.background.default,.7):(0,nH.m4)(t.themeColors.white,.75)});let nK=function(e){var t=e.customLimitFormMethods,n=e.customLimitSubmit,r=e.customMarketFormMethods,o=e.customMarketSubmit,i=e.isSignal,a=((0,v._f)(["tradable"])||{}).tradable,c=(0,C.gl)(),u=O(void 0!==i&&i,c),f=u.orderFormTabList,y=u.selectedTab,b=u.onChangeTab,h=(0,s.jO)().isHorizon,m=p(a),g=m.shouldShowOverlay,S=m.canTrade,T=y===x.Gx.SPECIFICATION,P=g&&!T,k=w(P),j=k.overlayPresent,E=k.overlayRef,I=S||j;return(0,l.jsxs)(nW,{children:[(0,l.jsx)(d.Z,{variant:d.N.UNDERLINED,tabList:f,selectedValue:y,onClick:b,stretch:!0}),P&&(0,l.jsx)(n$,{ref:E}),I&&y===x.Gx.QUICK_TRADE&&!c&&(0,l.jsx)(nT,{}),I&&y===x.Gx.TRADE_FORM&&(0,l.jsx)(nG,{customLimitFormMethods:t,customLimitSubmit:n,customMarketFormMethods:r,customMarketSubmit:o}),!h&&y===x.Gx.SPECIFICATION&&(0,l.jsx)(ep,{})]})};var nW=c.ZP.div.withConfig({componentId:"sc-5f1b1505-0"})(["width:100%;position:relative;"]),nq=n(73407);let nJ={getSymbolQuotes:function(e,t){return nq.WY.get("/api/market/v1/symbol/quotes",{params:e,signal:t})}};var n0=n(82721);function n1(e,t,n,r,o,i,l){try{var a=e[i](l),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}function n2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n3=new function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");n2(this,"getSymbolQuoteAC",void 0),n2(this,"getSymbolQuoteDetail",function(e,n){var r;return(r=function(){var t,r,o;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:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),null==(t=this.getSymbolQuoteAC)||t.abort(),this.get
1SymbolQuoteAC=new AbortController,[4,nJ.getSymbolQuotes(e,this.getSymbolQuoteAC.signal)];case 1:if(r=i.sent().result,(null==e?void 0:e.symbol)==="AAPL"||(null==e?void 0:e.symbol)==="TSLA"||(0,n0.d)(null==e?void 0:e.symbol)){var l,a;l=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){n2(e,t,n[t])})}return e}({},r),a=a={volume:4e7,low52wk:164.07,high52wk:237.49,marketCap:339e10,noOfTrades:1512e7,peRatio:36.88,valueTraded:906e7,pbRatio:59.52,dividendYield:.98,eps:6.08},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(a)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(a)).forEach(function(e){Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(a,e))}),r=l,(0,n0.d)(null==e?void 0:e.symbol)&&(r.high=225.59,r.low=223.35,r.open=224.55,r.prevClose=225.23)}return n.onSuccess(r),[3,3];case 2:return o=i.sent(),n.onError(o),[3,3];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){n1(i,n,o,l,a,"next",e)}function a(e){n1(i,n,o,l,a,"throw",e)}l(void 0)})}).call(t)})},n8=n(49863);function n6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}
1function n5(e){return(n5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n7(e,t){return(n7=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function n9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n9=function(){return!!e})()}var n4={loading:!1,symbolQuoteDetail:{},isExpanded:!1},re=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=n5(n=t),n6(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,n9()?Reflect.construct(n,[],n5(this).constructor):n.apply(this,r)),"setIsExpanded",function(t){e.context.isExpanded=t}),n6(e,"setLoading",function(t){e.context.loading=t}),n6(e,"setSymbolQuoteDetail",function(t){e.context.symbolQuoteDetail=t}),e.context=n4,e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n7(t,e),t}(eJ.default));function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=new function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");rt(this,"symbolQuoteDetail",{}),rt(this,"symbolId",void 0),rt(this,"init",function(e){if(!e)return void re.setLoading(!1);re.setLoading(!0),t.getSymbolQuoteDetail(e)}),rt(this,"setIsExpanded",function(e){re.setIsExpanded(e)}),rt(this,"subscribeSymbolQuoteTopic",function(e){e&&e4.sA.subscribe(e,n8.uV,t.updateSymbolQuote)}),rt(this,"unsubscribeSymbolQuoteTopic",function(){var e=t.symbolId;e&&e4.sA.unsubscribe(e,n8.uV,t.updateSymbolQuote)}),rt(this,"initSocketReconnectionListener",function(){e4.LR.addReconnectListener(t.onReconnectSocket)}),rt(this,"removeSocketReconnectionListener",function(){e4.LR.removeReconnectListener(t.onReconnectSocket)}),rt(this,"onReconnectSocket",function(){t.refetchSymbolQuote()}),rt(this,"updateSymbolQuote",function(e){t.symbolQuoteDetail=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){rt(e,t,n[t])})}return e}({},t.symbolQuoteDetail,e),re.setSymbolQuoteDetail(t.symbolQuoteDetail)}),rt(this,"getSymbolQuoteDetail",function(e){t.unsubscribeSymbolQuoteTopic(),n3.getSymbolQuoteDetail({symbol:e},{onSuccess:function(n){n&&(t.symbolQuoteDetail=n,re.setSymbolQuoteDetail(n)),re.setLoading(!1),t.subscribeSymbolQuoteTopic(e),t.symbolId=e},onError:function(){re.setLoading(!1)}})}),rt(this,"refetchSymbolQuote",function(){var e=t.symbolId;e&&t.getSymbolQuoteDetail(e)})},rr=n(7433),ro=Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2,minimumFractionDigits:1});let ri=(0,a.memo)(function(e){var t,n=e.label,r=e.dataKey,o=(t=[r],(0,eJ.useService)(re,function(e){return(0,rr.j$)(e.symbolQuoteDetail,t)})),i=(0,v._f)(["tickRulesGroup","decimal"])||{},a=i.tickRulesGroup,c=i.decimal,u=null==o?void 0:o[r],s=(0,y.$G)().t;return(0,l.jsxs)(rl,{children:[(0,l.jsx)(ra,{typography:Q.wZ.TEXT_M_REGULAR,children:s(n)}),(0,l.jsx)(rc,{typography:Q.wZ.TEXT_M_REGULAR,children:function(){if(u)if("number"!=typeof u)return u;else return["high","low","open","prevClose"].includes(r)?(0,eU.Wi)(u,(0,eU.os)(u,a,c),!0):u>=1e3?ro.format(u):(0,eU.Wi)(u,2,!0,!0);return"--"}()})]})});var rl=c.ZP.div.withConfig({componentId:"sc-96f50b2b-0"})(["display:flex;flex-direction:column;flex-grow:1;"]),ra=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-96f50b2b-1"})(["color:",";"],function(e){return e.theme.themeColors.text.muted}),rc=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-96f50b2b-2"})(["color:",";"],function(e){return e.theme.themeColors.text.strong}),ru=n(34965);function rs(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 rd=function(){var e,t=(0,nH.VC)().theme,n=(0,v._f)(["symbol","description","wat
1ch","type"])||{},r=n.symbol,o=n.description,i=n.watch,c=n.type,u=(e=(0,a.useState)(null!=i&&i),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=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return rs(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 rs(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.")}()),s=u[0],d=u[1];(0,a.useEffect)(function(){d(null!=i&&i)},[i,r]);var f=(0,a.useCallback)(function(){var e=!s;d(e),ru.l.onFavouriteSymbol(null!=r?r:"",e)},[s,r]);return(0,l.jsxs)(rf,{children:[c===E.lp.OPTION?(0,l.jsx)(rp,{typography:Q.wZ.TEXT_M_MEDIUM,children:(0,V.g8)(r,c)}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ry,{typography:Q.wZ.TEXT_M_MEDIUM,children:null!=r?r:"--"}),(0,l.jsx)(K.ZP,{variant:K.fD.WITH_TOOLTIP,tooltip:o,typography:Q.wZ.TEXT_M_REGULAR,width:"80px",children:o})]}),(0,l.jsx)(rb,{children:(0,l.jsx)(tu.ZP,{variant:tu.eF.ICON_ONLY,onClick:f,icon:s?ts.Ro.STAR_FAVOURITE:ts.Ro.STAR_UNFAVOURITE,textColor:s?t.themeColors.primary:t.themeColors.icon.default,hoverTextColor:t.themeColors.primary,activeTextColor:t.themeColors.primary})})]})};var rf=c.ZP.div.withConfig({componentId:"sc-6b32c5be-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;"]),rp=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-6b32c5be-1"})(["margin-inline-end:","px;overflow:hidden;text-overflow:ellipsis;"],u.A.XXS),ry=(0,c.ZP)(rp).withConfig({componentId:"sc-6b32c5be-2"})(["max-width:120px;"]),rb=c.ZP.div.withConfig({componentId:"sc-6b32c5be-3"})(["margin-inline-start:auto;display:flex;"]),rh=n(694),rm=n(13589),rg=n(42014);let rv=function(){var e=(0,v._f)(["prevClose","lastPrice","tickRulesGroup","decimal"])||{},t=e.prevClose,n=e.lastPrice,r=e.tickRulesGroup,o=e.decimal,i=(0,rh.e)({prevClose:(0,tl.U8)(t),lastPrice:(0,tl.U8)(null!=n?n:0)}),a=i.percentageDifference,c=i.percentageGained,u=i.priceGained;return(0,l.jsxs)(rx,{children:[(0,l.jsx)(rg.g,{typography:Q.wZ.TEXT_XL_MEDIUM,withArrow:!0,profitLoss:(0,rm.By)(u),children:(0,eU.Wi)(n,(0,eU.os)(n,r,o))}),(0,l.jsxs)(rO,{children:[(0,l.jsx)(rS,{typography:Q.wZ.TEXT_M_REGULAR,children:"Chg (%)"}),(0,l.jsx)(rT,{typography:Q.wZ.TEXT_M_REGULAR,profitLoss:(0,rm.By)(c),children:void 0!==(0,tl.M7)(a)?"".concat((0,eU.Wi)(a,2,!1),"%"):"--"})]})]})};var rx=c.ZP.div.withConfig({componentId:"sc-d16ab01-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-top:2px;"]),rS=(0,c.ZP)(K.ZP).withConfig({componentId:"sc-d16ab01-1"})(["color:",";"],function(e){return e.theme.themeColors.text.muted}),rT=(0,c.ZP)(rg.g).withConfig({componentId:"sc-d16ab01-2"})(["margin-inline-start:3px;"]),rO=c.ZP.div.withConfig({componentId:"sc-d16ab01-3"})(["display:flex;align-items:center;margin-inline-start:auto;"]),rC=[{key:"high",label:function(){return I.ag.t("High")}},{key:"open",label:function(){return I.ag.t("Open")}},{key:"volume",label:function(){return I.ag.t("Volume")}},{key:"low",label:function(){return I.ag.t("Low")}},{key:"prevClose",label:function(){return I.ag.t("Prev Close")}},{key:"noOfTrades",label:function(){return I.ag.t("No of Trades")}},{key:"high52wk",label:function(){return I.ag.t("52wk High")}},{key:"marketCap",label:function(){return I.ag.t("Market Cap")}},{key:"peRatio",label:function(){return I.ag.t("P/E")}},{key:"low52wk",label:function(){return I.ag.t("52wk Low")}},{key:"valueTraded",label:function(){return I.ag.t("Value Traded")}},{key:"pbRatio",label:function(){return I.ag.t("P/B")}},{key:"dividendYield",label:function(){return I.ag.t("Dividend Yield")}},{key:"eps",label:function(){return I.ag.t("EPS")}}],rP=[{key:"high",label:function(){return I.ag.t("High")}},{key:"open",label:function(){return I.ag.t("Open")}},{key:"volume",label:function(){return I.ag.t("Volume")}},{key:"low",label:function(){return I.ag.t("Low")}},{key:"prevClose",label:function(){return I.ag.t("Prev Close")}},{key:"noOfTrades",label:function(){return I.ag.t("No of Trades")}},{key:"delta",label:function(){return I.ag.t("Delta")}},{key:"gamma",label:function(){return I.ag.t("Gamma")}},{key:"theta",label:function(){return I.ag.t("Theta")}},{key:"vega",label:function(){return I.ag.t("Vega")}},{key:"rho",label:function(){return I.ag.t("Rho")}},{key:"value",label:function(){return I.ag.t("Value")}}],rw=[{key:"high",label:function(){return I.ag.t("High")}},{key:"open",label:function(){return I.ag.t("Open")}},{key:"volume",label:function(){return I.ag.t("Volume")}},{key:"low",label:function(){return I.ag.t("Low")}},{key:"prevClose",label:function(){return I.ag.t("Prev Close")}},{key:"prevSettlement",label:function(){return I.ag.t("Prev Settlement")}}];
1function rk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rj=function(e){var t;return(rk(t={},E.lp.EQUITIES,rC),rk(t,E.lp.OPTION,rP),rk(t,E.lp.FUTURES,rw),t)[e]||rC};let rE=function(){var e=(0,eJ.useService)(re,function(e){return e.isExpanded}),t=(0,a.useCallback)(function(){rn.setIsExpanded(!e)},[e]),n=((0,v._f)(["type"])||{}).type,r=(0,v.EQ)(),o=(0,eJ.useService)(re,function(e){return e.loading});(0,a.useEffect)(function(){r&&rn.init(r)},[r]),(0,a.useEffect)(function(){return rn.initSocketReconnectionListener(),function(){rn.removeSocketReconnectionListener()}},[]);var i=(0,a.useMemo)(function(){return rj(null!=n?n:E.lp.EQUITIES)},[n]),c=(0,a.useMemo)(function(){return i.slice(0,e?void 0:6)},[i,e]);return(0,l.jsxs)(rI,{children:[(0,l.jsxs)(rL,{children:[(0,l.jsx)(rd,{}),(0,l.jsx)(rv,{})]}),(0,l.jsx)(rA,{children:c.map(function(e){return(0,l.jsx)(ri,{label:e.label(),dataKey:e.key},e.key)})}),i.length>6&&(0,l.jsx)(rR,{onClick:t,children:(0,l.jsx)(tu.ZP,{variant:tu.eF.ICON_ONLY,icon:e?ts.Ro.CHEVRON_UP:ts.Ro.CHEVRON_DOWN})}),(0,l.jsx)(ea.ZP,{visible:o,absolute:!0})]})};var rI=c.ZP.div.withConfig({componentId:"sc-c20d305f-0"})(["display:flex;flex-direction:column;max-height:312px;"]),rL=c.ZP.div.withConfig({componentId:"sc-c20d305f-1"})(["padding:","px ","px;border-bottom:1px solid ",";"],u.A.XS,u.A.REGULAR,function(e){return e.theme.themeColors.background.subtle}),rA=c.ZP.div.withConfig({componentId:"sc-c20d305f-2"})(["padding:10px ","px;padding-bottom:0px;display:grid;grid-template-columns:1fr 1fr 70px;gap:","px;row-gap:","px;max-height:234px;overflow-y:auto;"],u.A.XS,u.A.XXS,u.A.XS),rR=c.ZP.div.withConfig({componentId:"sc-c20d305f-3"})(["display:flex;align-items:center;justify-content:center;padding:","px;cursor:pointer;"],u.A.XXS);function r_(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 rM=function(){var e,t=(e=(0,a.useState)(z.QUOTES),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=[],l=!0,a=!1;try{for(o=o.call(e);!(l=(n=o.next()).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return r_(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 r_(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.")}()),n=t[0],r=t[1];return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(rZ,{children:[(0,l.jsx)(d.Z,{variant:d.N.UNDERLINED,tabList:N(),selectedValue:n,onClick:function(e){e===z.QUOTES?rn.setIsExpanded(!1):rn.setIsExpanded(!0),r(e)},stretch:!0}),n===z.QUOTES&&(0,l.jsx)(rE,{}),n===z.SPECIFICATION&&(0,l.jsx)(ep,{})]})})};var rZ=c.ZP.div.withConfig({componentId:"sc-5c2f7778-0"})(["width:100%;"]);let rB=function(e){var t=e.customLimitFormMethods,n=e.customLimitSubmit,r=e.customMarketFormMethods,o=e.customMarketSubmit,i=e.isFullScreen,a=e.isSignal,c=void 0!==a&&a,u=e.tradeDetailsHeight,d=(0,s.jO)().isHorizon;return(0,l.jsxs)(rD,{$isFullScreen:i,$isSignal:c,$tradeDetailsHeight:u,children:[d&&(0,l.jsx)(rU,{children:(0,l.jsx)(rM,{})}),(0,l.jsx)(rz,{children:(0,l.jsx)(nK,{customLimitFormMethods:t,customLimitSubmit:n,customMarketFormMethods:r,customMarketSubmit:o,isSignal:c})})]})};var rD=c.ZP.div.withConfig({componentId:"sc-40ed13d4-0"})(["width:240px;display:flex;flex-direction:column;background-color:",";max-height:",";overflow:auto;"],function(e){return e.theme.themeColors.background.default},function(e){var t=e.$isFullScreen,n=e.$isSignal,r=e.$tradeDetailsHeight;return r?"".concat(r,"px"):t?"calc(100vh - 76px)":n?"calc(100vh - 70px)":"100%"}),rU=c.ZP.div.withConfig({componentId:"sc-40ed13d4-1"})(["display:flex;min-height:194px;background-color:",";margin-bottom:","px;flex-shrink:0;"],function(e){return e.theme.themeColors.background.default},u.A.XS),rz=c.ZP.div.withConfig({componentId:"sc-40ed13d4-2"})(["display:flex;flex:1 0;min-height:528px;background-color:",";"],function(e){return e.theme.themeColors.background.default})},47797:function(e,t,n){"use strict";n.d(t,{R:()=>b});var r=n(74512),o=n(32735),i=n(81182),l=n(80199),a=n(97186),c=n(88651),u=n(38074),s=n(6053),d=n(33007),f=n(78319);function p(e,t,n,r,o,i,l){try{var a=e[i](l),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}var y=function(e){var t=e.onCancel,n=(0,i.$G)().t,o=(0,d.VC)().theme,c=(0,s.cN)(function(e){return(0,f.Y)(e,"_blank")}),y=c.openKycUrl,b=c.isLoading;return(0,r.jsx)(a.ZP,{variant:a.KH.BASIC,title:n("Verification In Progress"),titlePrefix:(0,r.jsx)(l.ZP,{icon:l.Ro.INFO,color:o.theme
1Colors.warning.background,size:l.sk.M}),okText:n("Check Status"),cancelText:n("Close"),loading:b,onOk:function(e){var t,n=e.onCancel;return(t=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:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,y()];case 1:return e.sent(),null==n||n(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function l(e){p(i,r,o,l,a,"next",e)}function a(e){p(i,r,o,l,a,"throw",e)}l(void 0)})})()},onCancel:t,children:(0,r.jsx)(u.ZP,{children:n("Your information is being reviewed. This feature will be available once your verification is complete.")})})},b=function(){(0,c.ZP)(function(e){return(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(y,{onCancel:e})})})}},62237:function(e,t,n){"use strict";n.d(t,{B:()=>b});var r=n(74512),o=n(32735),i=n(81182),l=n(80199),a=n(97186),c=n(88651),u=n(38074),s=n(6053),d=n(33007),f=n(78319);function p(e,t,n,r,o,i,l){try{var a=e[i](l),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}var y=function(e){var t=e.onCancel,n=(0,i.$G)().t,o=(0,d.VC)().theme,c=(0,s.cN)(function(e){return(0,f.Y)(e,"_blank")}),y=c.openKycUrl,b=c.isLoading;return(0,r.jsx)(a.ZP,{variant:a.KH.BASIC,title:n("Verify Your Account"),titlePrefix:(0,r.jsx)(l.ZP,{icon:l.Ro.INFO,color:o.themeColors.warning.background,size:l.sk.M}),okText:n("Verify Now"),cancelText:n("Maybe Later"),loading:b,onOk:function(e){var t,n=e.onCancel;return(t=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:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,y()];case 1:return e.sent(),null==n||n(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function l(e){p(i,r,o,l,a,"next",e)}function a(e){p(i,r,o,l,a,"throw",e)}l(void 0)})})()},onCancel:t,children:(0,r.jsx)(u.ZP,{children:n("Complete KYC to access all services and start trading.")})})},b=function(){(0,c.ZP)(function(e){return(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(y,{onCancel:e})})})}},28347:function(e,t,n){"use strict";n.d(t,{q:()=>b});var r=n(74512),o=n(32735),i=n(81182),l=n(80199),a=n(97186),c=n(88651),u=n(38074),s=n(6053),d=n(33007),f=n(78319);function p(e,t,n,r,o,i,l){try{var a=e[i](l),c=a.value}catch(e){n(e);return}a.done?t(c):Promise.resolve(c).then(r,o)}var y=function(e){var t=e.onCancel,n=(0,i.$G)().t,o=(0,d.VC)().theme,c=(0,s.z_)(function(e){return(0,f.Y)(e,"_blank")}),y=c.openManageAccountUrl,b=c.isLoading;return(0,r.jsx)(a.ZP,{variant:a.KH.BASIC,title:n("No Trade Account Created"),titlePrefix:(0,r.jsx)(l.ZP,{icon:l.Ro.INFO,color:o.theme
1Colors.warning.background,size:l.sk.M}),okText:n("Create Trade Account"),cancelText:n("Maybe Later"),loading:b,onOk:function(e){var t,n=e.onCancel;return(t=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:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=a(0),l.throw=a(1),l.return=a(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(a){return function(c){var u=[a,c];if(n)throw TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,y()];case 1:return e.sent(),null==n||n(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function l(e){p(i,r,o,l,a,"next",e)}function a(e){p(i,r,o,l,a,"throw",e)}l(void 0)})})()},onCancel:t,children:(0,r.jsx)(u.ZP,{children:n("Your information has been verified. To start trading, please create a trade account.")})})},b=function(){(0,c.ZP)(function(e){return(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(y,{onCancel:e})})})}},96497:function(e,t,n){"use strict";n.d(t,{Z:()=>l});var r=n(74512),o=n(96838),i=n(6807);let l=function(e){var t=e.label;return(0,r.jsx)(o.ZP,{stretch:!0,dataTestId:i.Of.TRADE_BUTTON_ORDER,disabled:!0,variant:o.eF.FILLED,children:t})}}}]);

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.