1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f09d16a4-9f15-424d-a0b9-71373324a0b1",e._sentryDebugIdIdentifier="sentry-dbid-f09d16a4-9f15-424d-a0b9-71373324a0b1")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1112],{17702:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(95155),a=s(16102);let n=e=>{let{loading:t}=e;return(0,r.jsx)("div",{className:"pb-12 pointer-events-none absolute inset-0 flex items-center justify-center bg-background transition-opacity duration-300 ".concat(t?"opacity-50":"opacity-0"),"data-sentry-component":"GraphLoadingIndicator","data-sentry-source-file":"graph-loading-indicator.tsx",children:(0,r.jsx)(a.A,{className:"animate-spin size-8","data-sentry-element":"Loader2Icon","data-sentry-source-file":"graph-loading-indicator.tsx"})})}},98731:(e,t,s)=>{s.r(t),s.d(t,{default:()=>L});var r=s(95155),a=s(15030),n=s(26894);s(14046);var o=s(85745),l=s(12115),i=s(67427),d=s(17702),c=s(38919),u=s(84357),p=s(26197),x=s(64269),m=s(57391),f=s(54918),g=s(52619),h=s.n(g);let y=e=>{let{x:t,y:s,blogPosts:a}=e;return(0,r.jsxs)(u.Popover,{"data-sentry-element":"Popover","data-sentry-component":"AnnotationPopover","data-sentry-source-file":"annotation-popover.tsx",children:[(0,r.jsx)(u.PopoverTrigger,{asChild:!0,"data-sentry-element":"PopoverTrigger","data-sentry-source-file":"annotation-popover.tsx",children:(0,r.jsx)("div",{className:(0,x.cn)("absolute flex items-center justify-center size-8 rounded-full bg-background/80","border border-border cursor-pointer pointer-events-auto hover:border-primary group"),style:{left:"".concat(t,"px"),top:"".concat(s,"px"),transform:"translate(-50%, -50%)"},children:(0,r.jsx)(m.A,{className:"size-4 text-muted-foreground group-hover:text-primary","data-sentry-element":"Newspaper","data-sentry-source-file":"annotation-popover.tsx"})})}),(0,r.jsxs)(u.PopoverContent,{className:"w-128 p-0","data-sentry-element":"PopoverContent","data-sentry-source-file":"annotation-popover.tsx",children:[(0,r.jsx)("div",{className:"px-3 py-2 border-b",children:(0,r.jsx)("h2",{className:"text-sm font-semibold text-primary",children:"Blog Posts"})}),(0,r.jsx)(p.F,{className:"max-h-[300px]","data-sentry-element":"ScrollArea","data-sentry-source-file":"annotation-popover.tsx",children:(0,r.jsx)("div",{className:"px-2 py-2",children:a.map((e,t)=>(0,r.jsxs)(h(),{href:e.url,target:"_blank",className:"flex flex-col gap-1 py-2 px-2 hover:bg-muted rounded-md transition-colors mr-2 group relative",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsx)("h3",{className:"text-sm font-medium text-primary",children:e.title}),(0,r.jsx)(f.A,{className:"size-3 text-primary opacity-0 group-hover:opacity-100 transition-opacity absolute right-2 bottom-2"}),e.category&&(0,r.jsx)(c.E,{variant:e.category.toLowerCase().includes("community")?"outline":"default",className:"text-2xs px-2 py-0.5",children:e.category})]}),(0,r.jsx)("time",{className:"text-xs text-muted-foreground",children:new Date(e.timestamp).toLocaleDateString()})]},t))})})]})]})};var b=s(28981),v=s(80460);let j=e=>{let{buyPrice:t,sellPrice:s,marginAfterTax:a,roi:n,onClose:o}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-0 text-xs font-mono pointer-events-auto","data-sentry-component":"MarginSelectionBar","data-sentry-source-file":"margin-tooltip.tsx",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-r border-border",children:[(0,r.jsx)("span",{className:"text-success font-semibold",children:"BUY"}),(0,r.jsx)("span",{className:"text-success",children:t.toLocaleString()})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-r border-border",children:[(0,r.jsx)("span",{className:"text-failure font-semibold",children:"SELL"}),(0,r.jsx)("span",{className:"text-failure",children:s.toLocaleString()})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-r border-border",children:[(0,r.jsx)("span",{className:"text-muted-foreground font-semibold",children:"MARGIN"}),(0,r.jsxs)("span",{className:"text-foreground font-semibold",children:[a>
10&&"+",a.toLocaleString()]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-r border-border",children:[(0,r.jsx)("span",{className:"text-muted-foreground font-semibold",children:"ROI"}),(0,r.jsxs)("span",{className:"text-foreground font-semibold",children:[n>0&&"+",n.toFixed(1),"%"]})]}),(0,r.jsx)("button",{onClick:o,className:"flex items-center justify-center px-2.5 py-1.5 hover:bg-muted/50 transition-colors",children:(0,r.jsx)(v.A,{className:"size-3.5 text-muted-foreground","data-sentry-element":"X","data-sentry-source-file":"margin-tooltip.tsx"})})]})};function N(e,t,s,r){e.save(),e.beginPath(),e.arc(t,s,3,0,2*Math.PI),e.fillStyle=r,e.fill(),e.beginPath(),e.arc(t,s,7,0,2*Math.PI),e.setLineDash([3,2]),e.strokeStyle=r,e.lineWidth=1,e.stroke(),e.restore()}var P=s(9369),A=s(31910),k=s(72096),w=s(95874);n.t1.register(n.PP,n.kc,n.FN,n.No,n.E8,n.hE,n.m_,n.s$,n.dN,n.UA,w.Ay,k.Ay,A.A,{id:"selectionHighlight",afterDatasetsDraw(e){var t;let s=null==(t=e.options.plugins)?void 0:t.selectionHighlight;if(!s)return;let{ctx:r}=e,{selectedBuyIndex:a,selectedSellIndex:n,buyColor:o,sellColor:l}=s;if(null!=a){let t=e.getDatasetMeta(0).data[a];t&&N(r,t.x,t.y,null!=o?o:"#22c55e")}if(null!=n){let t=e.getDatasetMeta(1).data[n];t&&N(r,t.x,t.y,null!=l?l:"#ef4444")}}});let I=e=>{let{chartRef:t,chartData:s,options:n,period:c,loading:u,annotations:p,onChartClick:x,selection:m,buyColor:f,sellColor:g,onClearSelection:h}=e,[v,N]=l.useState(!1);l.useEffect(()=>{let e=t.current;e&&(e.options.plugins.zoom.zoom.onZoom=()=>{N(1!==e.getZoomLevel())})},[t]),l.useEffect(()=>{let e=t.current;if(!e)return;let s=t=>{let s=t.target;s&&"canvas"!==s.tagName.toLowerCase()&&e.canvas.dispatchEvent(new Event("mouseout"))};return document.addEventListener("touchend",s),()=>{document.removeEventListener("touchend",s)}},[t]);let A=l.useMemo(()=>{let e={...n};return x&&(e.onClick=x),m&&(e.plugins={...e.plugins,selectionHighlight:{selectedBuyIndex:m.selectedBuyIndex,selectedSellIndex:m.selectedSellIndex,buyColor:f,sellColor:g}}),e},[n,x,m,f,g]),k=(0,P.a)()?b.ki:b.sg,w=(null==m?void 0:m.buyPrice)!=null&&(null==m?void 0:m.sellPrice)!=null&&(null==m?void 0:m.marginAfterTax)!=null&&(null==m?void 0:m.roi)!=null;return(0,r.jsxs)("div",{className:"relative",style:{height:k},"data-sentry-component":"BaseChart","data-sentry-source-file":"base-chart.tsx",children:[v&&(0,r.jsx)("div",{className:"absolute top-2 right-4 z-10 flex gap-1.5",children:(0,r.jsxs)(a.$,{variant:"outline",size:"icon",onClick:()=>{var e;null==(e=t.current)||e.resetZoom(),N(!1)},children:[(0,r.jsx)("span",{className:"sr-only",children:"Reset Zoom"}),(0,r.jsx)(o.A,{})]})}),(0,r.jsx)(i.t1,{ref:t,type:"bar",data:s,options:A,height:b.sg,"data-sentry-element":"Chart","data-sentry-source-file":"base-chart.tsx"}),(0,r.jsx)("div",{className:"absolute inset-0 pointer-events-none",children:p.map((e,t)=>(0,r.jsx)(y,{x:e.x,y:e.y,blogPosts:e.blogPosts},t))}),w&&(0,r.jsx)("div",{className:"absolute top-2 left-1/2 -translate-x-1/2 z-10 bg-popover/95 backdrop-blur border border-border rounded-md shadow-lg",children:(0,r.jsx)(j,{buyPrice:m.buyPrice,sellPrice:m.sellPrice,marginAfterTax:m.marginAfterTax,roi:m.roi,onClose:h})}),(0,r.jsx)(d.A,{loading:u,"data-sentry-element":"GraphLoadingIndicator","data-sentry-source-file":"base-chart.tsx"})]})};I.displayName="BaseChart";let L=I}}]);
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.