1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2358],{82358:(e,t,n)=>{n.r(t),n.d(t,{OrderHistoryWidget:()=>N});var a=n(63424),l=n(73790),r=n(99093),i=n(97655),s=n(13665),c=n(12006),d=n(17498),o=n(25481),u=n(83518),_=n(76396),p=n(65345),x=n(54213),O=n(12388),f=n(19138),T=n(30459),m=n(46337),w=n(81486),C=n(73616),b=n(6339),h=n(56779);function y(e){var t;let{className:n}=e,r=(0,p.u)("future-conditional-order-form"),o=(0,i.Ri)(s.b.ACCESS_TOKEN),{t:y}=(0,l.Bd)(c.A.COMMON),{t:E}=(0,l.Bd)(c.A.WIDGET),{data:N}=(0,d.t)(),{data:g}=(0,x.V)(),{onWorkspaceConfigUpdate:v}=(0,b.VF)(),R=(0,_.useMemo)(()=>(0,O.GD)({workspace:g,path:{key:"widget",widgetKey:f.O.FUTURE_ORDER_HISTORY}}),[g]),[k,j]=(0,_.useState)(null!=(t=null==R?void 0:R.type)?t:T.Pq.type),I=(0,_.useCallback)(e=>{if(j(e),g){let t=(0,O.d5)({workspace:g,path:{key:"widget",widgetKey:f.O.FUTURE_ORDER_HISTORY},value:{type:e}});v({id:String(g.id),config:t,debounceDelay:0})}},[g,v]),S=[{value:m.r.LIMIT_MARKET,label:E("switcher_limit_market_order")},...r?[{value:m.r.CONDITIONAL,label:E("switcher_conditional_item")}]:[]];return N||o?(0,a.jsxs)("div",{className:(0,w.cn)("px-xl flex size-full flex-col rounded-b-xl",n),children:[k===m.r.LIMIT_MARKET?(0,a.jsx)(h.uP,{SwitcherComponent:(0,a.jsx)(C.i,{variant:"active_primary_accent",items:S,selected:k,className:"px-none py-none border-none bg-transparent",onChange:I})}):null,r&&k===m.r.CONDITIONAL?(0,a.jsx)(h.vo,{SwitcherComponent:(0,a.jsx)(C.i,{variant:"active_primary_accent",items:S,selected:k,className:"px-none py-none border-none bg-transparent",onChange:I})}):null]}):(0,a.jsx)(u._G,{title:y("unlock_widget")})}function E(e){let{className:t}=e;return(0,a.jsx)("div",{className:(0,w.cn)("px-xl flex size-full flex-col rounded-b-xl",t),children:(0,a.jsx)(h.Xq,{})})}function N(e){let t=(0,r.B)(e=>e.tradeType),n=(0,i.Ri)(s.b.ACCESS_TOKEN),{t:_}=(0,l.Bd)(c.A.COMMON),{data:p}=(0,d.t)();if(!p&&!n)return(0,a.jsx)(u._G,{title:_("unlock_widget")});switch(t){case o.q.FUTURE:return(0,a.jsx)(y,{...e});case o.q.SPOT:default:return(0,a.jsx)(E,{...e})}}}}]);
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.