1import{r as C,f as S,j as e,t as w}from"./index-WujDCPuW.js";import{cd as l,ce as I,cf as N,cg as P,R as d,az as f,e as m,X as c,Y as r,T as x,L as u,i as g,B as h,o as y,ch as j,p as b,ci as k,k as z,D as B}from"./DataHub-CH_lAK8T.js";import{C as K}from"./ChartActions-Dz_9pM-Y.js";import{u as A}from"./use-mobile-_yCMYchm.js";import{f as v}from"./features-B91tag6Y.js";import{B as G}from"./BarChart-DCZZE07D.js";import"./csvExport-BDo4FyGe.js";import"./analytics-DebTMTIt.js";import"./PageHero-BYPfMj84.js";import"./circle-check-big-BDzuOujn.js";import"./triangle-alert-0KUzRozE.js";import"./clock-fTiImuJ_.js";import"./html2canvas.esm-DXEQVQnt.js";import"./methodologyConfig-9H_4F9di.js";import"./chevron-down-CDEchiGz.js";import"./index-Cq14yg84.js";import"./shield-check-CtLrRxN1.js";import"./pillarMetadata-D8JQPWe_.js";import"./client-Bv69zFM2.js";import"./file-down-B_f5BN3H.js";const se=()=>{const[s,R]=C.useState("inflationRates"),{t:o}=S(),p=A(),D=[{key:"inflationRates",label:o("dataHub.charts.inflationRates")},{key:"reservesDebt",label:o("dataHub.charts.reservesDebt")},{key:"fiscalPosition",label:o("dataHub.charts.fiscalPosition")}],a=s==="inflationRates"?I:s==="reservesDebt"?N:P,i={borderRadius:8,border:"none",boxShadow:"0 4px 20px rgba(0,0,0,0.1)"};return e.jsxs("div",{children:[e.jsx("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:D.map(t=>e.jsx("button",{onClick:()=>R(t.key),className:`px-4 py-2 rounded-lg text-xs font-medium transition-all ${s===t.key?"bg-secondary text-secondary-foreground shadow-sm":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:t.label},t.key))}),e.jsx(K,{pillarKey:"monetary",data:l,tabKey:"monetary"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 mb-8",children:a.highlights.map((t,n)=>e.jsxs("div",{className:"bg-muted/50 rounded-xl p-4 text-center",children:[e.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:t.label}),e.jsx("p",{className:"text-lg font-serif font-bold text-foreground",children:t.value}),t.delta&&e.jsx("p",{className:"text-xs text-secondary mt-0.5 font-medium",children:t.delta})]},n))}),e.jsxs(w.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.3},children:[s==="inflationRates"&&e.jsxs(e.Fragment,{children:[e.jsx("h4",{className:"text-sm font-medium text-muted-foreground mb-4",children:"CPI Inflation (%) and Policy Repo Rate (%) â Bangladesh (2018â2025)"}),e.jsx(d,{width:"100%",height:360,children:e.jsxs(f,{data:l,margin:{left:0,right:20},children:[e.jsx(m,{strokeDasharray:"3 3",stroke:"hsl(214, 25%, 88%)"}),e.jsx(c,{dataKey:"year",tick:{fontSize:11}}),e.jsx(r,{tick:{fontSize:11},unit:"%",domain:[0,14]}),e.jsx(x,{formatter:t=>[`${t}%`],contentStyle:i}),e.jsx(u,{}),g(l.map(t=>t.year),{showLabels:!p,showWip:v.showWipPillars}),e.jsx(h,{dataKey:"cpiInflation",fill:"hsl(0, 70%, 50%)",opacity:.7,radius:[4,4,0,0],name:"CPI Inflation (%)"}),e.jsx(y,{type:"monotone",dataKey:"repoRate",stroke:"hsl(220, 60%, 18%)",strokeWidth:2.5,dot:{r:4,fill:"hsl(220, 60%, 18%)"},name:"Repo Rate (%)"})]})})]}),s==="reservesDebt"&&e.jsxs(e.Fragment,{children:[e.jsx("h4",{className:"text-sm font-medium text-muted-foreground mb-4",children:"FX Gross Reserves ($B) and Import Cover (months) â Bangladesh (2018â2025)"}),e.jsx(d,{width:"100%",height:360,children:e.jsxs(f,{data:j,margin:{left:0,right:40},children:[e.jsx(m,{strokeDasharray:"3 3",stroke:"hsl(214, 25%, 88%)"}),e.jsx(c,{dataKey:"year",tick:{fontSize:11}}),e.jsx(r,{yAxisId:"res",tick:{fontSize:11},unit:"B",domain:[0,55]}),e.jsx(r,{yAxisId:"months",orientation:"right",tick:{fontSize:11},unit:" mo",domain:[0,12]}),e.jsx(x,{contentStyle:i}),e.jsx(u,{}),e.jsx(b,{yAxisId:"months",y:3,stroke:"hsl(0, 70%, 50%)",strokeDasharray:"4 2",label:{value:"IMF min (3 mo)",fill:"hsl(0, 70%, 50%)",fontSize:9}}),g(j.map(t=>t.year),{yAxisId:"res",showLabels:!p,showWip:v.showWipPillars}),e.jsx(h,{yAxisId:"res",dataKey:"grossReservesB",fill:"hsl(160, 45%, 32%)",opacity:.7,radius:[4,4,0,0],name:"Gross Reserves ($B)"}),e.jsx(y,{yAxisId:"months",type:"monotone",dataKey:"importCoverMonths",stroke:"hsl(42, 80%, 55%)",strokeWidth:2.5,dot:{r:4,fill:"hsl(42, 80%, 55%)"},name:"Import Cover (months)"})]})})]}),s==="fiscalPosition"&&e.jsxs(e.Fragment,{children:[e.jsx("h4",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Tax-to-GDP Ratio (%) â Peer Comparison (2023)"}),e.jsx(d,{width:"100%",height:320,children:e.jsxs(G,{data:k,layout:"vertical",margin:{left:10,right:40},children:[e.jsx(m,{strokeDasharray:"3 3",stroke:"hsl(214, 25%, 88%)",horizontal:!1}),e.jsx(c,{type:"number",tick:{fontSize:11},unit:"%",domain:[0,22]}),e.jsx(r,{type:"category",dataKey:"country",tick:{fontSize:12},width:100}),e.jsx(x,{formatter:t=>[`${t}%`,"Tax/GDP"],contentStyle:i}),e.jsx(b,{x:15,stroke:"hsl(42, 80%, 55%)",strokeDasharray:"4 2",label:{value:"Dev. avg ~15%",fill:"hsl(42, 70%, 45%)",fontSize:9}}),e.jsx(h,{dataKey:"taxToGdp",radius:[0,6,6,0],name:"Tax/GDP (%)",children:k.map((t,n)=>e.jsx(z,{fill:t.color},n))})]})}),e.jsx("div",{className:"mt-4 p-4 bg-muted/30 rounded-lg border border-border/30",children:e.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:[e.jsx("strong",{className:"text-foreground",children:"Key insight:"})," Bangladesh's tax-to-GDP ratio of 7.1% is among the lowest in the world and the lowest in the peer group â constraining fiscal space for public investment, social programs, and debt service."]})})]})]},s),e.jsx(B,{source:a.source,sourceUrl:a.sourceUrl,lastUpdated:a.lastUpdated})]})};export{se 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.