PageSourceSearch

https://www.belastingaangifte.ai/assets/BtwGrafiek-B-AfIhQR.js

js belastingaangifte.ai collected 2026-10-05 11:52:11 UTC 3,136 bytes, 1 lines download raw bytes

1import{a as d}from"./rolldown-runtime-W-g5d7YK.js";import{b as u,w as x}from"./vendor-react-BM96R1F5.js";import{t as f}from"./trending-up-Ci5xdgpA.js";import{n as l,t as o}from"./colors-CflmsXUh.js";import{a as p,d as h,i as g,n as b,o as m,p as j,u as c}from"./vendor-recharts-B6ahv16Y.js";var y=d(x(),1),e=u(),_=["finalized","review","report_generated","submitted"],N=s=>new Intl.NumberFormat("nl-NL",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(s),k=s=>new Intl.NumberFormat("nl-NL",{style:"currency",currency:"EUR",notation:"compact",maximumFractionDigits:1}).format(s),v=({active:s,payload:n,label:i})=>!s||!n?.length?null:(0,e.jsxs)("div",{className:"bg-card border border-border rounded-lg shadow-lg px-3 py-2 text-xs",children:[(0,e.jsx)("p",{className:"font-semibold text-foreground mb-1",children:i}),n.map(t=>(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"w-2 h-2 rounded-full inline-block",style:{background:t.color}}),(0,e.jsxs)("span",{className:"text-muted-foreground capitalize",children:[t.name,":"]}),(0,e.jsx)("span",{className:"font-medium text-foreground",children:N(t.value)})]},t.name))]}),O=(0,y.memo)(function({filings:n}){const i=n.filter(r=>r.filing_type==="btw"&&_.includes(r.status)&&r.result_data).sort((r,a)=>r.year!==a.year?r.year-a.year:(r.quarter??0)-(a.quarter??0));if(i.length===0)return null;const t=i.map(r=>{const a=r.result_data;return{kwartaal:`Q${r.quarter} ${r.year}`,omzet:typeof a?.omzet_totaal=="number"?a.omzet_totaal:0,kosten:typeof a?.kosten_totaal=="number"?a.kosten_totaal:0}});return(0,e.jsxs)("div",{className:"bg-card rounded-xl border border-border p-5 shadow-card",children:[(0,e.jsxs)("h2",{className:"text-sm font-bold text-foreground uppercase tracking-wider mb-4 flex items-center gap-2",children:[(0,e.jsx)(f,{className:"w-4 h-4 text-primary"}),"Financieel overzicht"]}),(0,e.jsx)("div",{className:"h-44",children:(0,e.jsx)(j,{width:"100%",height:"100%",minWidth:1,minHeight:1,children:(0,e.jsxs)(b,{data:t,barCategoryGap:"30%",margin:{top:0,right:0,bottom:0,left:0},children:[(0,e.jsx)(p,{dataKey:"kwartaal",tick:{fontSize:11,fill:o},axisLine:!1,tickLine:!1}),(0,e.jsx)(g,{tick:{fontSize:11,fill:o},axisLine:!1,tickLine:!1,tickFormatter:r=>k(r),width:42}),(0,e.jsx)(h,{content:(0,e.jsx)(v,{}),cursor:{fill:"rgba(0,0,0,0.04)"}}),(0,e.jsx)(m,{dataKey:"omzet",name:"omzet",radius:[4,4,0,0],children:t.map((r,a)=>(0,e.jsx)(c,{fill:l.amber},a))}),(0,e.jsx)(m,{dataKey:"kosten",name:"kosten",radius:[4,4,0,0],children:t.map((r,a)=>(0,e.jsx)(c,{fill:l.gray},a))})]})})}),(0,e.jsxs)("div",{className:"flex items-center gap-4 mt-3 text-xs text-muted-foreground",children:[(0,e.jsxs)("span",{className:"flex items-center gap-1",children:[(0,e.jsx)("span",{className:"w-3 h-3 rounded-sm inline-block",style:{background:l.amber}})," Omzet"]}),(0,e.jsxs)("span",{className:"flex items-center gap-1",children:[(0,e.jsx)("span",{className:"w-3 h-3 rounded-sm inline-block",style:{background:l.gray}})," Kosten"]}),(0,e.jsx)("span",{className:"ml-auto",children:"Alleen afgeronde aangiftes"})]})]})});export{O as default};

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.