PageSourceSearch

https://www.strawman.com/web/dist/assets/MemberPendingOrdersSection-Dfe9cTqV.js

js strawman.com collected 2026-10-03 21:46:42 UTC 3,732 bytes, 2 lines download raw bytes

1import{j as i}from"./motion-s_jJ0Hey.js";import{G as y}from"./GlassDataTableSection-N9qluaNY.js";import{D as j,a as O}from"./TableRow-7T7ABQDX.js";import{D as T}from"./DataTableColGroup-DypgiqSi.js";import{a as r}from"./GlassDataTableCells-BapsFWgc.js";import{al as P,am as u,c as D,ab as n}from"./index-DtoF3ya7.js";import{P as w}from"./PendingOrderActionsMenu-MT5bTjUW.js";import{P as v}from"./HoldingsTableSection-uhH_wcer.js";import"./tiptap-C8axTDK9.js";import"./ConfirmDialog-Bef3Vp7T.js";import"./PillButton-dN1Axc25.js";import"./OverlayPopover-hN1VIk16.js";import"./IconButton-oaggNZIY.js";import"./useClickOutside-C-hk9IRw.js";import"./useCancelTradeOrder-Urmuenic.js";import"./trade-YQKtTb4W.js";import"./newsfeed-DXtxSwnF.js";import"./ticker-C5SXhZuh.js";import"./useInfiniteQuery-wO1PL3Gc.js";import"./useBaseQuery-B8b1xHF1.js";import"./TradeSidePill-BFRj_AvF.js";import"./ComingSoonNotice-BELDAapx.js";import"./format-DiM13dGK.js";import"./memberHoldingTradesQuery-CP1ct4qy.js";import"./HelpButton-DYNzoKZJ.js";import"./chevron-down-DVcnfxbG.js";import"./TableEmptyRow-C03_-zoa.js";import"./useTickerLabel-B9O2O1Ye.js";import"./useQuery-D8gzRlnl.js";import"./AnimatedPct-DQaJgThv.js";import"./index-D7a5Wrpr.js";import"./usePriceAlerts-Dfzcu4kE.js";import"./Input-BOqfBOMq.js";import"./FormGroup-0GfEh3G9.js";import"./useFollowCompany-D3Rd26eQ.js";import"./followInvalidation-BTa_HNAj.js";import"./plus-Bxo6vmnn.js";import"./bell-D9950HYV.js";import"./Toggle-DPpksRGM.js";import"./arrow-down-DvFU4Rax.js";import"./arrow-up-down-Ch6Q2wjI.js";const R=592,h={paddingRight:n.pendingOrdersTable.dateColumnCellPaddingRight};function S({showVolume:l,showPrice:d}){const{pendingOrdersTable:o}=n,t=[o.tradeColumnMinWidth];return l&&t.push(o.volumeColumnMinWidth),d&&t.push(o.limitPriceColumnMinWidth),t}function A({showVolume:l,showPrice:d}){const o=[n.pendingOrdersTradeColumnWidth];return l&&o.push(n.pendingOrdersVolumeColumnWidth),d&&o.push(n.pendingOrdersLimitPriceColumnWidth),o}function Mi({orders:l,isSelf:d,returnTo:o}){if(l.length===0)return null;const t=d,e=P(),p=u("(max-width: 639px)")&&!e,g=u("(max-width: 479px)")&&!e,s=!p,m=!g,C=e||p,x=1+(s?1:0)+(m?1:0),{pendingOrdersTable:c}=n,W=e?n.portfolioTableCompanyColumnWidth:null,b=e?null:c.companyColumnMinWidth,f=S({showVolume:s,showPrice:m}),M=e?A({showVolume:s,showPrice:m}):void 0;return i.jsxs(y,{title:"Pending orders",titleAs:"h2",children:[i.jsx("p",{className:"m-0 mb-4 text-sm",style:{color:D.text.muted},children:"Open orders awaiting execution. They affect your effective cash and weightings."}),i.jsx(j,{minWidth:R,children:i.jsxs(O,{fixed:!0,"aria-label":"Pending trade orders",children:[i.jsx(T,{leadingColumnWidth:n.pendingOrdersDateColumnWidth,primaryColumnWidth:W,primaryColumnMinWidth:b,middleCount:x,middleWidths:M,middleMinWidths:e?void 0:f,preControlColumnWidth:e?n.pendingOrdersValueColumnWidth:null,preControlColumnMinWidth:e?null:c.valueColumnMinWidth,controlWidth:t?n.actionColumnWidth:null}),i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx(r,{boundary:"left",style:h,children:"Date"}),i.jsx(r,{children:"Company"}),i.jsx(r,{align:"center",children:"Trade"}),s?i.jsx(r,{align:"center",children:"Volume"}):null,m?i.jsx(r,{align:"center",children:"Limit price"}):null,i.jsx(r,{align:t?"right":void 0,boundary:t?void 0:"right",children:"Value"}),t?i.jsx(r,{align:"right",boundary:"right",children:"Actions"}):null]})}),i.jsx("tbody",{children:l.map(a=>i.jsx(v,{order:a,showVolume:s,showPrice:m,prioritizeCompanyName:C,showActionsColumn:t,dateBoundaryCellStyle:h,actions:t?i.jsx(w,{order:a,returnTo:o}):void 0},`pending-${a.id??a.createdOn}`))})]})})]})}export{Mi as default};
2//# sourceMappingURL=MemberPendingOrdersSection-Dfe9cTqV.js.map

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.