1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c1bea03d-1dc4-54d5-a3bd-420f60cc9ec8")}catch(e){}}(); 3import{a as m,b as c,c as u,j as p,k as g,l as v,m as S,n as a,s as y}from"/build/_shared/chunk-MXVK5D72.js";import{d as h,e as o}from"/build/_shared/chunk-7UVRC7Q4.js";import{y as f}from"/build/_shared/chunk-ST6U23C6.js";import{e as d}from"/build/_shared/chunk-PELIJBCN.js";var t=d(f());function D({weeklyProgress:e,totalCompletedScenarios:i,totalMinutesPracticed:n,isDemo:l=!1,title:x}){var r,s;if(!(e&&e.length>0))return null;let b=!1&&n,F=(s=i!=null?i:(r=e[e.length-1])==null?void 0:r.cumulativeScenarios)!=null?s:0;return(0,t.jsxs)("div",{className:"w-full rounded-md bg-white p-4 shadow-md md:p-6",children:[(0,t.jsx)(h,{children:x}),(0,t.jsx)("div",{className:"relative mt-4 h-64 md:h-80",children:(0,t.jsx)(u,{width:"100%",height:"100%",children:(0,t.jsxs)(y,{data:e,margin:{top:20,right:30,left:20,bottom:20},children:[(0,t.jsx)(g,{strokeDasharray:"3 3",stroke:"#f0f0f0"}),(0,t.jsx)(S,{dataKey:"week",tick:{fill:"#2B4F30",fontSize:16},interval:"preserveStartEnd"}),(0,t.jsx)(a,{yAxisId:"left",tick:{fill:"#2B4F30",fontSize:16},label:{value:"Scenarios",angle:-90,position:"insideLeft",style:{fill:"#2B4F30",fontWeight:500,textAnchor:"middle"}}}),l&&(0,t.jsx)(a,{yAxisId:"right",orientation:"right",tick:{fill:"#D6905F",fontSize:16},label:{value:"Minutes",angle:90,position:"insideRight",style:{fill:"#D6905F",fontWeight:500,textAnchor:"middle"}}}),(0,t.jsx)(c,{contentStyle:{backgroundColor:"white",border:"1px solid #E7BDA0",borderRadius:"4px"},labelStyle:{color:"#2B4F30",fontWeight:"bold"},itemStyle:{fontSize:16}}),(0,t.jsx)(m,{wrapperStyle:{paddingTop:"10px",fontSize:16,color:"#2B4F30",fontWeight:500}}),(0,t.jsx)(p,{yAxisId:"left",dataKey:"scenariosCompleted",name:"Scenarios Per Week",fill:"#4CAF50",maxBarSize:40,radius:[4,4,0,0]}),l&&(0,t.jsx)(v,{yAxisId:"right",type:"monotone",dataKey:"cumulativeMinutes",name:"Total Minutes Spoken",stroke:"#D6905F",strokeWidth:3,dot:{fill:"#D6905F",r:6},activeDot:{r:8}})]})})}),(0,t.jsxs)("div",{className:"mt-4 text-center",children:[(0,t.jsxs)(o,{children:["Total Scenarios Completed: ",F]}),b?(0,t.jsxs)(o,{children:["Total minutes practiced: ",n]}):null]})]})}export{D as a}; 4//# sourceMappingURL=/build/_shared/chunk-F2HSIYXI.js.map 5 6//# debugId=c1bea03d-1dc4-54d5-a3bd-420f60cc9ec8
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.