@petal-nexus/toolkit 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/README.md +31 -12
  2. package/dist/petal-toolkit.cjs10.js +1 -1
  3. package/dist/petal-toolkit.cjs11.js +1 -1
  4. package/dist/petal-toolkit.cjs1123.js +1 -1
  5. package/dist/petal-toolkit.cjs1125.js +1 -1
  6. package/dist/petal-toolkit.cjs1128.js +1 -1
  7. package/dist/petal-toolkit.cjs12.js +1 -1
  8. package/dist/petal-toolkit.cjs13.js +1 -1
  9. package/dist/petal-toolkit.cjs1320.js +1 -1
  10. package/dist/petal-toolkit.cjs1320.js.map +1 -1
  11. package/dist/petal-toolkit.cjs1321.js +1 -1
  12. package/dist/petal-toolkit.cjs1321.js.map +1 -1
  13. package/dist/petal-toolkit.cjs1322.js +1 -2
  14. package/dist/petal-toolkit.cjs1322.js.map +1 -1
  15. package/dist/petal-toolkit.cjs1325.js +1 -1
  16. package/dist/petal-toolkit.cjs1327.js +1 -1
  17. package/dist/petal-toolkit.cjs1328.js +1 -1
  18. package/dist/petal-toolkit.cjs1329.js +1 -1
  19. package/dist/petal-toolkit.cjs1329.js.map +1 -1
  20. package/dist/petal-toolkit.cjs1330.js +1 -1
  21. package/dist/petal-toolkit.cjs1330.js.map +1 -1
  22. package/dist/petal-toolkit.cjs1331.js +2 -1
  23. package/dist/petal-toolkit.cjs1331.js.map +1 -1
  24. package/dist/petal-toolkit.cjs1332.js +1 -1
  25. package/dist/petal-toolkit.cjs1332.js.map +1 -1
  26. package/dist/petal-toolkit.cjs1333.js +1 -1
  27. package/dist/petal-toolkit.cjs1333.js.map +1 -1
  28. package/dist/petal-toolkit.cjs1334.js +1 -1
  29. package/dist/petal-toolkit.cjs1334.js.map +1 -1
  30. package/dist/petal-toolkit.cjs1335.js +1 -1
  31. package/dist/petal-toolkit.cjs1346.js +1 -1
  32. package/dist/petal-toolkit.cjs1347.js +1 -1
  33. package/dist/petal-toolkit.cjs1348.js +1 -1
  34. package/dist/petal-toolkit.cjs14.js +1 -1
  35. package/dist/petal-toolkit.cjs15.js +1 -1
  36. package/dist/petal-toolkit.cjs18.js +1 -1
  37. package/dist/petal-toolkit.cjs19.js +1 -1
  38. package/dist/petal-toolkit.cjs22.js +1 -1
  39. package/dist/petal-toolkit.cjs24.js +1 -1
  40. package/dist/petal-toolkit.cjs25.js +1 -1
  41. package/dist/petal-toolkit.cjs26.js +1 -1
  42. package/dist/petal-toolkit.cjs27.js +1 -1
  43. package/dist/petal-toolkit.cjs30.js +1 -1
  44. package/dist/petal-toolkit.cjs31.js +1 -1
  45. package/dist/petal-toolkit.cjs32.js +1 -1
  46. package/dist/petal-toolkit.cjs34.js +1 -1
  47. package/dist/petal-toolkit.cjs35.js +1 -1
  48. package/dist/petal-toolkit.cjs36.js +1 -1
  49. package/dist/petal-toolkit.cjs37.js +1 -1
  50. package/dist/petal-toolkit.cjs38.js +1 -1
  51. package/dist/petal-toolkit.cjs4.js +1 -1
  52. package/dist/petal-toolkit.cjs40.js +1 -1
  53. package/dist/petal-toolkit.cjs41.js +1 -1
  54. package/dist/petal-toolkit.cjs42.js +1 -1
  55. package/dist/petal-toolkit.cjs43.js +1 -1
  56. package/dist/petal-toolkit.cjs44.js +1 -1
  57. package/dist/petal-toolkit.cjs45.js +1 -1
  58. package/dist/petal-toolkit.cjs47.js +1 -1
  59. package/dist/petal-toolkit.cjs48.js +1 -1
  60. package/dist/petal-toolkit.cjs5.js +1 -1
  61. package/dist/petal-toolkit.cjs50.js +1 -1
  62. package/dist/petal-toolkit.cjs52.js +1 -1
  63. package/dist/petal-toolkit.cjs6.js +1 -1
  64. package/dist/petal-toolkit.cjs682.js +1 -1
  65. package/dist/petal-toolkit.cjs684.js +1 -1
  66. package/dist/petal-toolkit.cjs7.js +1 -1
  67. package/dist/petal-toolkit.cjs715.js +1 -1
  68. package/dist/petal-toolkit.cjs719.js +1 -1
  69. package/dist/petal-toolkit.cjs721.js +1 -1
  70. package/dist/petal-toolkit.cjs726.js +1 -1
  71. package/dist/petal-toolkit.cjs734.js +1 -1
  72. package/dist/petal-toolkit.cjs752.js +1 -1
  73. package/dist/petal-toolkit.cjs764.js +1 -1
  74. package/dist/petal-toolkit.cjs787.js +1 -1
  75. package/dist/petal-toolkit.cjs8.js +1 -1
  76. package/dist/petal-toolkit.cjs847.js +1 -1
  77. package/dist/petal-toolkit.cjs848.js +1 -1
  78. package/dist/petal-toolkit.cjs850.js +1 -1
  79. package/dist/petal-toolkit.cjs851.js +1 -1
  80. package/dist/petal-toolkit.cjs854.js +1 -1
  81. package/dist/petal-toolkit.cjs859.js +1 -1
  82. package/dist/petal-toolkit.cjs861.js +1 -1
  83. package/dist/petal-toolkit.cjs864.js +1 -1
  84. package/dist/petal-toolkit.cjs866.js +1 -1
  85. package/dist/petal-toolkit.cjs867.js +1 -1
  86. package/dist/petal-toolkit.cjs868.js +1 -1
  87. package/dist/petal-toolkit.cjs870.js +1 -1
  88. package/dist/petal-toolkit.cjs874.js +1 -1
  89. package/dist/petal-toolkit.cjs9.js +1 -1
  90. package/dist/petal-toolkit.es10.js +3 -3
  91. package/dist/petal-toolkit.es11.js +3 -3
  92. package/dist/petal-toolkit.es1123.js +1 -1
  93. package/dist/petal-toolkit.es1125.js +1 -1
  94. package/dist/petal-toolkit.es1128.js +1 -1
  95. package/dist/petal-toolkit.es12.js +3 -3
  96. package/dist/petal-toolkit.es13.js +2 -2
  97. package/dist/petal-toolkit.es1320.js +2 -34
  98. package/dist/petal-toolkit.es1320.js.map +1 -1
  99. package/dist/petal-toolkit.es1321.js +2 -52
  100. package/dist/petal-toolkit.es1321.js.map +1 -1
  101. package/dist/petal-toolkit.es1322.js +2 -48
  102. package/dist/petal-toolkit.es1322.js.map +1 -1
  103. package/dist/petal-toolkit.es1324.js +2 -2
  104. package/dist/petal-toolkit.es1325.js +2 -2
  105. package/dist/petal-toolkit.es1326.js +2 -2
  106. package/dist/petal-toolkit.es1327.js +2 -2
  107. package/dist/petal-toolkit.es1328.js +2 -2
  108. package/dist/petal-toolkit.es1329.js +52 -2
  109. package/dist/petal-toolkit.es1329.js.map +1 -1
  110. package/dist/petal-toolkit.es1330.js +95 -2
  111. package/dist/petal-toolkit.es1330.js.map +1 -1
  112. package/dist/petal-toolkit.es1331.js +48 -2
  113. package/dist/petal-toolkit.es1331.js.map +1 -1
  114. package/dist/petal-toolkit.es1332.js +34 -17
  115. package/dist/petal-toolkit.es1332.js.map +1 -1
  116. package/dist/petal-toolkit.es1333.js +2 -95
  117. package/dist/petal-toolkit.es1333.js.map +1 -1
  118. package/dist/petal-toolkit.es1334.js +17 -2
  119. package/dist/petal-toolkit.es1334.js.map +1 -1
  120. package/dist/petal-toolkit.es1335.js +2 -2
  121. package/dist/petal-toolkit.es1338.js +2 -2
  122. package/dist/petal-toolkit.es1339.js +2 -2
  123. package/dist/petal-toolkit.es1340.js +2 -2
  124. package/dist/petal-toolkit.es1341.js +2 -2
  125. package/dist/petal-toolkit.es1343.js +2 -2
  126. package/dist/petal-toolkit.es1344.js +2 -2
  127. package/dist/petal-toolkit.es1346.js +2 -2
  128. package/dist/petal-toolkit.es1347.js +2 -2
  129. package/dist/petal-toolkit.es1348.js +2 -2
  130. package/dist/petal-toolkit.es14.js +2 -2
  131. package/dist/petal-toolkit.es15.js +2 -2
  132. package/dist/petal-toolkit.es18.js +3 -3
  133. package/dist/petal-toolkit.es19.js +3 -3
  134. package/dist/petal-toolkit.es22.js +2 -2
  135. package/dist/petal-toolkit.es24.js +2 -2
  136. package/dist/petal-toolkit.es25.js +2 -2
  137. package/dist/petal-toolkit.es26.js +2 -2
  138. package/dist/petal-toolkit.es27.js +3 -3
  139. package/dist/petal-toolkit.es30.js +1 -1
  140. package/dist/petal-toolkit.es31.js +2 -2
  141. package/dist/petal-toolkit.es32.js +2 -2
  142. package/dist/petal-toolkit.es34.js +2 -2
  143. package/dist/petal-toolkit.es35.js +1 -1
  144. package/dist/petal-toolkit.es36.js +2 -2
  145. package/dist/petal-toolkit.es37.js +2 -2
  146. package/dist/petal-toolkit.es38.js +1 -1
  147. package/dist/petal-toolkit.es4.js +2 -2
  148. package/dist/petal-toolkit.es40.js +2 -2
  149. package/dist/petal-toolkit.es41.js +2 -2
  150. package/dist/petal-toolkit.es42.js +2 -2
  151. package/dist/petal-toolkit.es43.js +2 -2
  152. package/dist/petal-toolkit.es44.js +3 -3
  153. package/dist/petal-toolkit.es45.js +2 -2
  154. package/dist/petal-toolkit.es47.js +2 -2
  155. package/dist/petal-toolkit.es48.js +1 -1
  156. package/dist/petal-toolkit.es5.js +2 -2
  157. package/dist/petal-toolkit.es50.js +1 -1
  158. package/dist/petal-toolkit.es52.js +2 -2
  159. package/dist/petal-toolkit.es6.js +3 -3
  160. package/dist/petal-toolkit.es682.js +1 -1
  161. package/dist/petal-toolkit.es684.js +1 -1
  162. package/dist/petal-toolkit.es7.js +2 -2
  163. package/dist/petal-toolkit.es715.js +1 -1
  164. package/dist/petal-toolkit.es719.js +1 -1
  165. package/dist/petal-toolkit.es721.js +1 -1
  166. package/dist/petal-toolkit.es726.js +1 -1
  167. package/dist/petal-toolkit.es734.js +1 -1
  168. package/dist/petal-toolkit.es752.js +1 -1
  169. package/dist/petal-toolkit.es764.js +1 -1
  170. package/dist/petal-toolkit.es787.js +1 -1
  171. package/dist/petal-toolkit.es8.js +1 -1
  172. package/dist/petal-toolkit.es847.js +1 -1
  173. package/dist/petal-toolkit.es848.js +1 -1
  174. package/dist/petal-toolkit.es850.js +1 -1
  175. package/dist/petal-toolkit.es851.js +1 -1
  176. package/dist/petal-toolkit.es854.js +1 -1
  177. package/dist/petal-toolkit.es859.js +1 -1
  178. package/dist/petal-toolkit.es861.js +1 -1
  179. package/dist/petal-toolkit.es864.js +1 -1
  180. package/dist/petal-toolkit.es866.js +1 -1
  181. package/dist/petal-toolkit.es867.js +1 -1
  182. package/dist/petal-toolkit.es868.js +1 -1
  183. package/dist/petal-toolkit.es870.js +1 -1
  184. package/dist/petal-toolkit.es874.js +1 -1
  185. package/dist/petal-toolkit.es9.js +3 -3
  186. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),f=require("react"),e=require("./petal-toolkit.cjs59.js"),D=require("./petal-toolkit.cjs1321.js"),k=require("./petal-toolkit.cjs1322.js");function F(u){switch(u){case"light":return{amount:"#16a34a",adjustedAmount:"#f59e0b"};case"navy":return{amount:"#10b981",adjustedAmount:"#fbbf24"};case"dark":default:return{amount:"#00FFB3",adjustedAmount:"#FFB300"}}}const M=f.memo(function({data:a,width:A="100%",height:E=400,className:b,themePreset:h="dark",theme:w,showLegend:m=!0,onChartReady:o}){const{containerId:l,containerRef:x,surfaceRef:c,sciChartTheme:S,baseColors:n,containerStyle:y}=D.useFinancialChartSetup({chartName:"dividends",width:A,height:E,themePreset:h,customTheme:w}),i=F(h);return f.useEffect(()=>{if(!x.current||a.length===0)return;let p=!1;return(async()=>{try{const{sciChartSurface:r,wasmContext:t}=await e.scichartExports.SciChartSurface.create(l,{theme:S});if(p){r.delete();return}c.current=r;const C=new e.scichartExports.DateTimeNumericAxis(t,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,maxAutoTicks:8,axisBandsFill:"transparent",majorGridLineStyle:{color:n.gridColor,strokeThickness:.5},labelStyle:{color:n.axisLabelColor,fontSize:10}});r.xAxes.add(C);const j=new e.scichartExports.NumericAxis(t,{autoRange:e.scichartExports.EAutoRange.Always,labelFormat:e.scichartExports.ENumericFormat.Decimal,labelPrecision:4,labelPrefix:"$",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:n.gridColor,strokeThickness:.5},labelStyle:{color:n.axisLabelColor,fontSize:10}});r.yAxes.add(j);const d=a.map(s=>s.date.getTime()/1e3);r.renderableSeries.add(new e.scichartExports.FastLineRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.amount),dataSeriesName:"Dividend Amount"}),stroke:i.amount,strokeThickness:2})),r.renderableSeries.add(new e.scichartExports.XyScatterRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.amount)}),pointMarker:new e.scichartExports.EllipsePointMarker(t,{width:8,height:8,strokeThickness:1,stroke:i.amount,fill:i.amount})})),r.renderableSeries.add(new e.scichartExports.FastLineRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.adjustedAmount),dataSeriesName:"Adjusted Amount"}),stroke:i.adjustedAmount,strokeThickness:2,strokeDashArray:[5,5]})),r.renderableSeries.add(new e.scichartExports.XyScatterRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.adjustedAmount)}),pointMarker:new e.scichartExports.EllipsePointMarker(t,{width:8,height:8,strokeThickness:1,stroke:i.adjustedAmount,fill:i.adjustedAmount})})),k.addStandardModifiers(r,{crosshairColor:n.crosshairColor}),m&&k.addLegendModifier(r),r.zoomExtents(),o==null||o(r)}catch(r){console.error("Failed to initialize DividendsChart:",r)}})(),()=>{p=!0,c.current&&(c.current.delete(),c.current=null)}},[a,l,S,n,i,m,o]),g.jsx("div",{ref:x,id:l,className:b,style:y})});exports.DividendsChart=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),f=require("react"),e=require("./petal-toolkit.cjs59.js"),D=require("./petal-toolkit.cjs1329.js"),k=require("./petal-toolkit.cjs1331.js");function F(u){switch(u){case"light":return{amount:"#16a34a",adjustedAmount:"#f59e0b"};case"navy":return{amount:"#10b981",adjustedAmount:"#fbbf24"};case"dark":default:return{amount:"#00FFB3",adjustedAmount:"#FFB300"}}}const M=f.memo(function({data:a,width:A="100%",height:E=400,className:b,themePreset:h="dark",theme:w,showLegend:m=!0,onChartReady:o}){const{containerId:l,containerRef:x,surfaceRef:c,sciChartTheme:S,baseColors:n,containerStyle:y}=D.useFinancialChartSetup({chartName:"dividends",width:A,height:E,themePreset:h,customTheme:w}),i=F(h);return f.useEffect(()=>{if(!x.current||a.length===0)return;let p=!1;return(async()=>{try{const{sciChartSurface:r,wasmContext:t}=await e.scichartExports.SciChartSurface.create(l,{theme:S});if(p){r.delete();return}c.current=r;const C=new e.scichartExports.DateTimeNumericAxis(t,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,maxAutoTicks:8,axisBandsFill:"transparent",majorGridLineStyle:{color:n.gridColor,strokeThickness:.5},labelStyle:{color:n.axisLabelColor,fontSize:10}});r.xAxes.add(C);const j=new e.scichartExports.NumericAxis(t,{autoRange:e.scichartExports.EAutoRange.Always,labelFormat:e.scichartExports.ENumericFormat.Decimal,labelPrecision:4,labelPrefix:"$",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:n.gridColor,strokeThickness:.5},labelStyle:{color:n.axisLabelColor,fontSize:10}});r.yAxes.add(j);const d=a.map(s=>s.date.getTime()/1e3);r.renderableSeries.add(new e.scichartExports.FastLineRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.amount),dataSeriesName:"Dividend Amount"}),stroke:i.amount,strokeThickness:2})),r.renderableSeries.add(new e.scichartExports.XyScatterRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.amount)}),pointMarker:new e.scichartExports.EllipsePointMarker(t,{width:8,height:8,strokeThickness:1,stroke:i.amount,fill:i.amount})})),r.renderableSeries.add(new e.scichartExports.FastLineRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.adjustedAmount),dataSeriesName:"Adjusted Amount"}),stroke:i.adjustedAmount,strokeThickness:2,strokeDashArray:[5,5]})),r.renderableSeries.add(new e.scichartExports.XyScatterRenderableSeries(t,{dataSeries:new e.scichartExports.XyDataSeries(t,{xValues:d,yValues:a.map(s=>s.adjustedAmount)}),pointMarker:new e.scichartExports.EllipsePointMarker(t,{width:8,height:8,strokeThickness:1,stroke:i.adjustedAmount,fill:i.adjustedAmount})})),k.addStandardModifiers(r,{crosshairColor:n.crosshairColor}),m&&k.addLegendModifier(r),r.zoomExtents(),o==null||o(r)}catch(r){console.error("Failed to initialize DividendsChart:",r)}})(),()=>{p=!0,c.current&&(c.current.delete(),c.current=null)}},[a,l,S,n,i,m,o]),g.jsx("div",{ref:x,id:l,className:b,style:y})});exports.DividendsChart=M;
2
2
  //# sourceMappingURL=petal-toolkit.cjs22.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),b=require("react"),i=require("./petal-toolkit.cjs59.js"),F=require("./petal-toolkit.cjs54.js"),j=require("./petal-toolkit.cjs1321.js"),k=require("./petal-toolkit.cjs55.js"),I=require("./petal-toolkit.cjs1322.js");function N(x){switch(x){case"light":return{lineColor:"#16a34a"};case"navy":return{lineColor:"#10b981"};case"dark":default:return{lineColor:"#00FFB3"}}}const V=b.memo(function({data:o,width:y="100%",height:T=400,className:v,themePreset:g="dark",theme:M,showLegend:p=!0,onChartReady:a}){const{containerId:h,containerRef:m,surfaceRef:c,sciChartTheme:C,baseColors:s,containerStyle:P}=j.useFinancialChartSetup({chartName:"eps-growth",width:y,height:T,themePreset:g,customTheme:M}),l=N(g);return b.useEffect(()=>{if(!m.current||o.length===0)return;let S=!1;return(async()=>{try{const{sciChartSurface:e,wasmContext:n}=await i.scichartExports.SciChartSurface.create(h,{theme:C});if(S){e.delete();return}c.current=e;const A=o.map(t=>t.period),L=k.createCategoryXAxis(n,{labelColor:s.axisLabelColor,labels:A,fontSize:10});e.xAxes.add(L);const q=k.createNumericYAxis(n,{labelColor:s.axisLabelColor,gridColor:s.gridColor,labelFormatter:t=>`$${t.toFixed(2)}`});e.yAxes.add(q);const Y=o.map((t,u)=>u),z=new i.scichartExports.FastLineRenderableSeries(n,{dataSeries:new i.scichartExports.XyDataSeries(n,{xValues:Y,yValues:o.map(t=>t.eps),dataSeriesName:"Diluted EPS"}),stroke:l.lineColor,strokeThickness:3,pointMarker:new i.scichartExports.EllipsePointMarker(n,{width:8,height:8,fill:l.lineColor,stroke:"#FFFFFF",strokeThickness:2})});e.renderableSeries.add(z),e.chartModifiers.add(new i.scichartExports.ZoomPanModifier,new i.scichartExports.MouseWheelZoomModifier,new i.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300}),new i.scichartExports.CursorModifier({showTooltip:!0,showAxisLabels:!0,crosshairStroke:`${s.crosshairColor}99`,crosshairStrokeThickness:1,tooltipSvgTemplate:t=>{if(t.length===0)return'<svg width="1" height="1"></svg>';const u=Math.round(t[0].hitTestInfo.xValue),d=o[u];if(!d)return'<svg width="1" height="1"></svg>';const r=10,w=160,f=22,E=8,D=f+E+16+r*2,H=r+14,$=r+f+2,O=r+f+E+14;return`<svg width="${w}" height="${D}">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),b=require("react"),i=require("./petal-toolkit.cjs59.js"),F=require("./petal-toolkit.cjs54.js"),j=require("./petal-toolkit.cjs1329.js"),k=require("./petal-toolkit.cjs55.js"),I=require("./petal-toolkit.cjs1331.js");function N(x){switch(x){case"light":return{lineColor:"#16a34a"};case"navy":return{lineColor:"#10b981"};case"dark":default:return{lineColor:"#00FFB3"}}}const V=b.memo(function({data:o,width:y="100%",height:T=400,className:v,themePreset:g="dark",theme:M,showLegend:p=!0,onChartReady:a}){const{containerId:h,containerRef:m,surfaceRef:c,sciChartTheme:C,baseColors:s,containerStyle:P}=j.useFinancialChartSetup({chartName:"eps-growth",width:y,height:T,themePreset:g,customTheme:M}),l=N(g);return b.useEffect(()=>{if(!m.current||o.length===0)return;let S=!1;return(async()=>{try{const{sciChartSurface:e,wasmContext:n}=await i.scichartExports.SciChartSurface.create(h,{theme:C});if(S){e.delete();return}c.current=e;const A=o.map(t=>t.period),L=k.createCategoryXAxis(n,{labelColor:s.axisLabelColor,labels:A,fontSize:10});e.xAxes.add(L);const q=k.createNumericYAxis(n,{labelColor:s.axisLabelColor,gridColor:s.gridColor,labelFormatter:t=>`$${t.toFixed(2)}`});e.yAxes.add(q);const Y=o.map((t,u)=>u),z=new i.scichartExports.FastLineRenderableSeries(n,{dataSeries:new i.scichartExports.XyDataSeries(n,{xValues:Y,yValues:o.map(t=>t.eps),dataSeriesName:"Diluted EPS"}),stroke:l.lineColor,strokeThickness:3,pointMarker:new i.scichartExports.EllipsePointMarker(n,{width:8,height:8,fill:l.lineColor,stroke:"#FFFFFF",strokeThickness:2})});e.renderableSeries.add(z),e.chartModifiers.add(new i.scichartExports.ZoomPanModifier,new i.scichartExports.MouseWheelZoomModifier,new i.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300}),new i.scichartExports.CursorModifier({showTooltip:!0,showAxisLabels:!0,crosshairStroke:`${s.crosshairColor}99`,crosshairStrokeThickness:1,tooltipSvgTemplate:t=>{if(t.length===0)return'<svg width="1" height="1"></svg>';const u=Math.round(t[0].hitTestInfo.xValue),d=o[u];if(!d)return'<svg width="1" height="1"></svg>';const r=10,w=160,f=22,E=8,D=f+E+16+r*2,H=r+14,$=r+f+2,O=r+f+E+14;return`<svg width="${w}" height="${D}">
2
2
  <rect width="100%" height="100%" fill="rgba(0,0,0,0.85)" stroke="rgba(255,255,255,0.15)" stroke-width="1" rx="6"/>
3
3
  <text x="${r}" y="${H}" font-size="12" font-weight="600" font-family="${F.TOOLTIP_STYLE.fontFamily}" fill="rgba(255,255,255,0.9)">${d.period}</text>
4
4
  <line x1="${r}" y1="${$}" x2="${w-r}" y2="${$}" stroke="rgba(255,255,255,0.15)" stroke-width="1"/>
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),b=require("react"),r=require("./petal-toolkit.cjs59.js"),M=require("./petal-toolkit.cjs1321.js"),A=require("./petal-toolkit.cjs1322.js");function j(d){switch(d){case"light":return{growth:"#16a34a",movingAvg:"#7c3aed",zeroLine:"#dc2626"};case"navy":return{growth:"#10b981",movingAvg:"#8b5cf6",zeroLine:"#f87171"};case"dark":default:return{growth:"#00FFB3",movingAvg:"#6C5CE7",zeroLine:"#FF6B6B"}}}const D=b.memo(function({data:a,metric:E="eps",width:L="100%",height:k=400,className:C,themePreset:h="dark",theme:v,showLegend:m=!0,onChartReady:n}){const{containerId:l,containerRef:x,surfaceRef:c,sciChartTheme:f,baseColors:i,containerStyle:F}=M.useFinancialChartSetup({chartName:"estimate-growth",width:L,height:k,themePreset:h,customTheme:v}),s=j(h);return b.useEffect(()=>{if(!x.current||a.length===0)return;let g=!1;return(async()=>{try{const{sciChartSurface:e,wasmContext:o}=await r.scichartExports.SciChartSurface.create(l,{theme:f});if(g){e.delete();return}c.current=e;const w=new r.scichartExports.NumericAxis(o,{autoRange:r.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:i.gridColor,strokeThickness:.5},labelStyle:{color:i.axisLabelColor,fontSize:11}});w.labelProvider.formatLabel=t=>{var y;const u=Math.round(t);return((y=a[u])==null?void 0:y.displayPeriod)||""},e.xAxes.add(w);const G=new r.scichartExports.NumericAxis(o,{autoRange:r.scichartExports.EAutoRange.Always,labelFormat:r.scichartExports.ENumericFormat.Decimal,labelPrecision:1,labelPostfix:"%",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:i.gridColor,strokeThickness:.5},labelStyle:{color:i.axisLabelColor,fontSize:11}});e.yAxes.add(G);const S=a.map((t,u)=>u);e.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(o,{dataSeries:new r.scichartExports.XyDataSeries(o,{xValues:S,yValues:a.map(t=>t.yoyGrowth),dataSeriesName:"YoY Growth Rate"}),stroke:s.growth,strokeThickness:3,strokeDashArray:[6,4],opacity:.9}));const p=a.map(t=>t.movingAvg??0);p.some(t=>t!==0)&&e.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(o,{dataSeries:new r.scichartExports.XyDataSeries(o,{xValues:S,yValues:p,dataSeriesName:"4-Quarter Avg"}),stroke:s.movingAvg,strokeThickness:3,strokeDashArray:[8,4],opacity:.9})),e.annotations.add(new r.scichartExports.HorizontalLineAnnotation({y1:0,stroke:s.zeroLine,strokeThickness:2,strokeDashArray:[10,5],opacity:.8,showLabel:!0,labelValue:"Break-even",axisLabelFill:s.zeroLine,axisLabelStroke:s.zeroLine})),A.addStandardModifiers(e,{crosshairColor:i.crosshairColor}),m&&A.addLegendModifier(e),e.zoomExtents(),n==null||n(e)}catch(e){console.error("Failed to initialize EstimateGrowthChart:",e)}})(),()=>{g=!0,c.current&&(c.current.delete(),c.current=null)}},[a,E,l,f,i,s,m,n]),z.jsx("div",{ref:x,id:l,className:C,style:F})});exports.EstimateGrowthChart=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),b=require("react"),r=require("./petal-toolkit.cjs59.js"),M=require("./petal-toolkit.cjs1329.js"),A=require("./petal-toolkit.cjs1331.js");function j(d){switch(d){case"light":return{growth:"#16a34a",movingAvg:"#7c3aed",zeroLine:"#dc2626"};case"navy":return{growth:"#10b981",movingAvg:"#8b5cf6",zeroLine:"#f87171"};case"dark":default:return{growth:"#00FFB3",movingAvg:"#6C5CE7",zeroLine:"#FF6B6B"}}}const D=b.memo(function({data:a,metric:E="eps",width:L="100%",height:k=400,className:C,themePreset:h="dark",theme:v,showLegend:m=!0,onChartReady:n}){const{containerId:l,containerRef:x,surfaceRef:c,sciChartTheme:f,baseColors:i,containerStyle:F}=M.useFinancialChartSetup({chartName:"estimate-growth",width:L,height:k,themePreset:h,customTheme:v}),s=j(h);return b.useEffect(()=>{if(!x.current||a.length===0)return;let g=!1;return(async()=>{try{const{sciChartSurface:e,wasmContext:o}=await r.scichartExports.SciChartSurface.create(l,{theme:f});if(g){e.delete();return}c.current=e;const w=new r.scichartExports.NumericAxis(o,{autoRange:r.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:i.gridColor,strokeThickness:.5},labelStyle:{color:i.axisLabelColor,fontSize:11}});w.labelProvider.formatLabel=t=>{var y;const u=Math.round(t);return((y=a[u])==null?void 0:y.displayPeriod)||""},e.xAxes.add(w);const G=new r.scichartExports.NumericAxis(o,{autoRange:r.scichartExports.EAutoRange.Always,labelFormat:r.scichartExports.ENumericFormat.Decimal,labelPrecision:1,labelPostfix:"%",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:i.gridColor,strokeThickness:.5},labelStyle:{color:i.axisLabelColor,fontSize:11}});e.yAxes.add(G);const S=a.map((t,u)=>u);e.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(o,{dataSeries:new r.scichartExports.XyDataSeries(o,{xValues:S,yValues:a.map(t=>t.yoyGrowth),dataSeriesName:"YoY Growth Rate"}),stroke:s.growth,strokeThickness:3,strokeDashArray:[6,4],opacity:.9}));const p=a.map(t=>t.movingAvg??0);p.some(t=>t!==0)&&e.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(o,{dataSeries:new r.scichartExports.XyDataSeries(o,{xValues:S,yValues:p,dataSeriesName:"4-Quarter Avg"}),stroke:s.movingAvg,strokeThickness:3,strokeDashArray:[8,4],opacity:.9})),e.annotations.add(new r.scichartExports.HorizontalLineAnnotation({y1:0,stroke:s.zeroLine,strokeThickness:2,strokeDashArray:[10,5],opacity:.8,showLabel:!0,labelValue:"Break-even",axisLabelFill:s.zeroLine,axisLabelStroke:s.zeroLine})),A.addStandardModifiers(e,{crosshairColor:i.crosshairColor}),m&&A.addLegendModifier(e),e.zoomExtents(),n==null||n(e)}catch(e){console.error("Failed to initialize EstimateGrowthChart:",e)}})(),()=>{g=!0,c.current&&(c.current.delete(),c.current=null)}},[a,E,l,f,i,s,m,n]),z.jsx("div",{ref:x,id:l,className:C,style:F})});exports.EstimateGrowthChart=D;
2
2
  //# sourceMappingURL=petal-toolkit.cjs25.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),F=require("react"),r=require("./petal-toolkit.cjs59.js"),j=require("./petal-toolkit.cjs1321.js"),$=require("./petal-toolkit.cjs1322.js");function G(e){switch(e){case"light":return{high:"#16a34a",low:"#dc2626",avg:"#7c3aed",today:"#eab308"};case"navy":return{high:"#10b981",low:"#f87171",avg:"#8b5cf6",today:"#fbbf24"};case"dark":default:return{high:"rgba(0, 255, 179, 0.7)",low:"rgba(255, 71, 87, 0.7)",avg:"#6C5CE7",today:"#FFD700"}}}const P={eps:e=>`$${e.toFixed(2)}`,revenue:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(1)}M`:`$${e.toFixed(0)}`,ebitda:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(1)}M`:`$${e.toFixed(0)}`,ebit:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(1)}M`:`$${e.toFixed(0)}`},R=F.memo(function({data:s,metric:d="eps",formatter:C,width:M="100%",height:L=400,className:A,themePreset:f="dark",theme:T,showLegend:S=!0,onChartReady:l}){const{containerId:h,containerRef:m,surfaceRef:u,sciChartTheme:p,baseColors:o,containerStyle:D}=j.useFinancialChartSetup({chartName:"estimate-trend",width:M,height:L,themePreset:f,customTheme:T}),n=G(f),y=C||P[d];return F.useEffect(()=>{if(!m.current||s.length===0)return;let b=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:i}=await r.scichartExports.SciChartSurface.create(h,{theme:p});if(b){t.delete();return}u.current=t;const E=new r.scichartExports.NumericAxis(i,{autoRange:r.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:11}});E.labelProvider.formatLabel=a=>{var k;const c=Math.round(a);return((k=s[c])==null?void 0:k.displayPeriod)||""},t.xAxes.add(E);const g=new r.scichartExports.NumericAxis(i,{autoRange:r.scichartExports.EAutoRange.Always,labelFormat:r.scichartExports.ENumericFormat.Decimal,labelPrecision:d==="eps"?2:0,labelPrefix:"$",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:11}});d!=="eps"&&(g.labelProvider.formatLabel=a=>y(a)),t.yAxes.add(g);const x=s.map((a,c)=>c);t.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:x,yValues:s.map(a=>a.high),dataSeriesName:"High Estimate"}),stroke:n.high,strokeThickness:2,strokeDashArray:[6,4]})),t.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:x,yValues:s.map(a=>a.low),dataSeriesName:"Low Estimate"}),stroke:n.low,strokeThickness:2,strokeDashArray:[6,4]})),t.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:x,yValues:s.map(a=>a.avg),dataSeriesName:"Average"}),stroke:n.avg,strokeThickness:3}));const w=s.filter(a=>a.todayMarker!=null);if(w.length>0){const a=s.findIndex(c=>c.todayMarker!=null);t.renderableSeries.add(new r.scichartExports.XyScatterRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:[a],yValues:[w[0].todayMarker],dataSeriesName:"Current Quarter"}),pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:12,height:12,strokeThickness:2,stroke:n.today,fill:n.today})}))}$.addStandardModifiers(t,{crosshairColor:o.crosshairColor}),S&&$.addLegendModifier(t),t.zoomExtents(),l==null||l(t)}catch(t){console.error("Failed to initialize EstimateTrendChart:",t)}})(),()=>{b=!0,u.current&&(u.current.delete(),u.current=null)}},[s,d,y,h,p,o,n,S,l]),N.jsx("div",{ref:m,id:h,className:A,style:D})});exports.EstimateTrendChart=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),F=require("react"),r=require("./petal-toolkit.cjs59.js"),j=require("./petal-toolkit.cjs1329.js"),$=require("./petal-toolkit.cjs1331.js");function G(e){switch(e){case"light":return{high:"#16a34a",low:"#dc2626",avg:"#7c3aed",today:"#eab308"};case"navy":return{high:"#10b981",low:"#f87171",avg:"#8b5cf6",today:"#fbbf24"};case"dark":default:return{high:"rgba(0, 255, 179, 0.7)",low:"rgba(255, 71, 87, 0.7)",avg:"#6C5CE7",today:"#FFD700"}}}const P={eps:e=>`$${e.toFixed(2)}`,revenue:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(1)}M`:`$${e.toFixed(0)}`,ebitda:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(1)}M`:`$${e.toFixed(0)}`,ebit:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(1)}M`:`$${e.toFixed(0)}`},R=F.memo(function({data:s,metric:d="eps",formatter:C,width:M="100%",height:L=400,className:A,themePreset:f="dark",theme:T,showLegend:S=!0,onChartReady:l}){const{containerId:h,containerRef:m,surfaceRef:u,sciChartTheme:p,baseColors:o,containerStyle:D}=j.useFinancialChartSetup({chartName:"estimate-trend",width:M,height:L,themePreset:f,customTheme:T}),n=G(f),y=C||P[d];return F.useEffect(()=>{if(!m.current||s.length===0)return;let b=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:i}=await r.scichartExports.SciChartSurface.create(h,{theme:p});if(b){t.delete();return}u.current=t;const E=new r.scichartExports.NumericAxis(i,{autoRange:r.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:11}});E.labelProvider.formatLabel=a=>{var k;const c=Math.round(a);return((k=s[c])==null?void 0:k.displayPeriod)||""},t.xAxes.add(E);const g=new r.scichartExports.NumericAxis(i,{autoRange:r.scichartExports.EAutoRange.Always,labelFormat:r.scichartExports.ENumericFormat.Decimal,labelPrecision:d==="eps"?2:0,labelPrefix:"$",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:11}});d!=="eps"&&(g.labelProvider.formatLabel=a=>y(a)),t.yAxes.add(g);const x=s.map((a,c)=>c);t.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:x,yValues:s.map(a=>a.high),dataSeriesName:"High Estimate"}),stroke:n.high,strokeThickness:2,strokeDashArray:[6,4]})),t.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:x,yValues:s.map(a=>a.low),dataSeriesName:"Low Estimate"}),stroke:n.low,strokeThickness:2,strokeDashArray:[6,4]})),t.renderableSeries.add(new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:x,yValues:s.map(a=>a.avg),dataSeriesName:"Average"}),stroke:n.avg,strokeThickness:3}));const w=s.filter(a=>a.todayMarker!=null);if(w.length>0){const a=s.findIndex(c=>c.todayMarker!=null);t.renderableSeries.add(new r.scichartExports.XyScatterRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:[a],yValues:[w[0].todayMarker],dataSeriesName:"Current Quarter"}),pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:12,height:12,strokeThickness:2,stroke:n.today,fill:n.today})}))}$.addStandardModifiers(t,{crosshairColor:o.crosshairColor}),S&&$.addLegendModifier(t),t.zoomExtents(),l==null||l(t)}catch(t){console.error("Failed to initialize EstimateTrendChart:",t)}})(),()=>{b=!0,u.current&&(u.current.delete(),u.current=null)}},[s,d,y,h,p,o,n,S,l]),N.jsx("div",{ref:m,id:h,className:A,style:D})});exports.EstimateTrendChart=R;
2
2
  //# sourceMappingURL=petal-toolkit.cjs26.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),y=require("react"),d=require("./petal-toolkit.cjs59.js"),M=require("./petal-toolkit.cjs1321.js"),C=require("./petal-toolkit.cjs55.js"),w=require("./petal-toolkit.cjs1333.js"),q=require("./petal-toolkit.cjs1322.js"),R=require("./petal-toolkit.cjs58.js");function V(h){switch(h){case"light":return{fcfColor:"#16a34a",bandColor:"#16a34a33",referenceColor:"#9ca3af"};case"navy":return{fcfColor:"#10b981",bandColor:"#10b98133",referenceColor:"#64748b"};case"dark":default:return{fcfColor:"#00FFB3",bandColor:"#00FFB333",referenceColor:"#6B7280"}}}const j=y.memo(function({data:r,width:B="100%",height:v=400,className:L,themePreset:F="dark",theme:k,showLegend:b=!0,showReferenceLine:m=!0,onChartReady:i}){const{containerId:f,containerRef:p,surfaceRef:l,sciChartTheme:g,baseColors:t,containerStyle:A}=M.useFinancialChartSetup({chartName:"fcf-range-band",width:B,height:v,themePreset:F,customTheme:k}),c=V(F),x=r.some(s=>s.fcfHigh!==void 0&&s.fcfLow!==void 0);return y.useEffect(()=>{if(!p.current||r.length===0)return;let s=!1;return(async()=>{try{const u=r.map(a=>a.period),S=r.map((a,o)=>o),{sciChartSurface:e,wasmContext:n}=await d.scichartExports.SciChartSurface.create(f,{theme:g});if(s){e.delete();return}if(l.current=e,e.xAxes.add(C.createCategoryXAxis(n,{labelColor:t.axisLabelColor,labels:u})),e.yAxes.add(C.createNumericYAxis(n,{labelColor:t.axisLabelColor,gridColor:t.gridColor,labelFormatter:C.labelFormatters.currency})),m&&w.addReferenceLine(e,{y:0,color:c.referenceColor,label:"$0"}),x){const a=new d.scichartExports.FastBandRenderableSeries(n,{dataSeries:new d.scichartExports.XyyDataSeries(n,{xValues:S,yValues:r.map(o=>o.fcfHigh??o.freeCashFlow),y1Values:r.map(o=>o.fcfLow??o.freeCashFlow)}),fill:c.bandColor,fillY1:c.bandColor,stroke:"transparent",strokeY1:"transparent"});e.renderableSeries.add(a)}e.renderableSeries.add(w.createLineSeries(n,{xValues:S,yValues:r.map(a=>a.freeCashFlow),name:"Free Cash Flow",color:c.fcfColor})),q.addStandardModifiers(e,{crosshairColor:t.crosshairColor,valueFormatters:{"Free Cash Flow":R.tooltipFormatters.currency}}),b&&q.addLegendModifier(e),i==null||i(e)}catch(u){console.error("Failed to initialize FcfRangeBandChart:",u)}})(),()=>{s=!0,l.current&&(l.current.delete(),l.current=null)}},[r,f,g,t,c,b,m,x,i]),E.jsx("div",{ref:p,id:f,className:L,style:A})});exports.FcfRangeBandChart=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),y=require("react"),d=require("./petal-toolkit.cjs59.js"),M=require("./petal-toolkit.cjs1329.js"),C=require("./petal-toolkit.cjs55.js"),w=require("./petal-toolkit.cjs1330.js"),q=require("./petal-toolkit.cjs1331.js"),R=require("./petal-toolkit.cjs58.js");function V(h){switch(h){case"light":return{fcfColor:"#16a34a",bandColor:"#16a34a33",referenceColor:"#9ca3af"};case"navy":return{fcfColor:"#10b981",bandColor:"#10b98133",referenceColor:"#64748b"};case"dark":default:return{fcfColor:"#00FFB3",bandColor:"#00FFB333",referenceColor:"#6B7280"}}}const j=y.memo(function({data:r,width:B="100%",height:v=400,className:L,themePreset:F="dark",theme:k,showLegend:b=!0,showReferenceLine:m=!0,onChartReady:i}){const{containerId:f,containerRef:p,surfaceRef:l,sciChartTheme:g,baseColors:t,containerStyle:A}=M.useFinancialChartSetup({chartName:"fcf-range-band",width:B,height:v,themePreset:F,customTheme:k}),c=V(F),x=r.some(s=>s.fcfHigh!==void 0&&s.fcfLow!==void 0);return y.useEffect(()=>{if(!p.current||r.length===0)return;let s=!1;return(async()=>{try{const u=r.map(a=>a.period),S=r.map((a,o)=>o),{sciChartSurface:e,wasmContext:n}=await d.scichartExports.SciChartSurface.create(f,{theme:g});if(s){e.delete();return}if(l.current=e,e.xAxes.add(C.createCategoryXAxis(n,{labelColor:t.axisLabelColor,labels:u})),e.yAxes.add(C.createNumericYAxis(n,{labelColor:t.axisLabelColor,gridColor:t.gridColor,labelFormatter:C.labelFormatters.currency})),m&&w.addReferenceLine(e,{y:0,color:c.referenceColor,label:"$0"}),x){const a=new d.scichartExports.FastBandRenderableSeries(n,{dataSeries:new d.scichartExports.XyyDataSeries(n,{xValues:S,yValues:r.map(o=>o.fcfHigh??o.freeCashFlow),y1Values:r.map(o=>o.fcfLow??o.freeCashFlow)}),fill:c.bandColor,fillY1:c.bandColor,stroke:"transparent",strokeY1:"transparent"});e.renderableSeries.add(a)}e.renderableSeries.add(w.createLineSeries(n,{xValues:S,yValues:r.map(a=>a.freeCashFlow),name:"Free Cash Flow",color:c.fcfColor})),q.addStandardModifiers(e,{crosshairColor:t.crosshairColor,valueFormatters:{"Free Cash Flow":R.tooltipFormatters.currency}}),b&&q.addLegendModifier(e),i==null||i(e)}catch(u){console.error("Failed to initialize FcfRangeBandChart:",u)}})(),()=>{s=!0,l.current&&(l.current.delete(),l.current=null)}},[r,f,g,t,c,b,m,x,i]),E.jsx("div",{ref:p,id:f,className:L,style:A})});exports.FcfRangeBandChart=j;
2
2
  //# sourceMappingURL=petal-toolkit.cjs27.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),x=require("react"),t=require("./petal-toolkit.cjs59.js"),ge=require("./petal-toolkit.cjs60.js"),se=require("./petal-toolkit.cjs1320.js"),Ee=require("./petal-toolkit.cjs16.js"),ye=require("./petal-toolkit.cjs17.js"),Y=require("./petal-toolkit.cjs53.js"),Fe=require("./petal-toolkit.cjs51.js"),Ie=require("./petal-toolkit.cjs33.js"),Pe=require("./petal-toolkit.cjs29.js"),je={FAST:9,SHORT:20,MEDIUM:50,LONG:100,VERY_LONG:200},Ue=[9,20,50,100,200],be="VolumeAxis";function Ce(o){for(let e=0;e<o.length;e++)if(!isNaN(o[e]))return e;return o.length}function ae(o,e){const a=Ce(e);return a>=e.length?{x:[],y:[]}:{x:o.slice(a),y:e.slice(a)}}function $e(o,...e){let a=0;for(const S of e){const f=Ce(S);f>a&&(a=f)}return a>=o.length?{x:[],ys:e.map(()=>[])}:{x:o.slice(a),ys:e.map(S=>S.slice(a))}}function Oe(o,e){switch(o){case"ohlc":return{strokeThickness:2,dataPointWidth:.7,brushUp:"Transparent",brushDown:"Transparent",strokeUp:e.upColor,strokeDown:e.downColor};case"hlc":return{strokeThickness:2,dataPointWidth:.7,brushUp:"Transparent",brushDown:"Transparent",strokeUp:e.upColor,strokeDown:e.downColor};case"hollow-candlestick":return{strokeThickness:1,dataPointWidth:.7,brushUp:"Transparent",brushDown:e.downColor+"CC",strokeUp:e.upColor,strokeDown:e.downColor};case"line":return null;case"candlestick":default:return{strokeThickness:1,dataPointWidth:.7,brushUp:e.upColor+"CC",brushDown:e.downColor+"CC",strokeUp:e.upColor,strokeDown:e.downColor}}}const _e=x.memo(function({data:e,width:a="100%",height:S=500,showVolume:f=!0,className:Se,themePreset:L="dark",theme:ke,volumeUpColor:De,volumeDownColor:Ae,volumeOpacity:ne=.5,onChartReady:P,chartType:D="candlestick",showMA:m=!1,maType:g="sma",maPeriod:E=20,maColor:Te,showMACD:u=!1,macdParams:oe=Ee.DEFAULT_MACD_PARAMS,showRSI:c=!1,rsiPeriod:ce=ye.DEFAULT_RSI_PERIOD,showLegend:le=!0}){const z=x.useId(),Z=x.useRef(null),A=x.useRef(null),v=x.useRef(null),J=x.useRef(null),K=x.useRef(null),j=ke??ge.getThemeFromPreset(L),p=ge.getFinancialChartColors(L),ue=De??p.upColor+"CC",pe=Ae??p.downColor+"CC",de=Te??p.maColor,U=`financial-main-${z}`,he=`financial-macd-${z}`,xe=`financial-rsi-${z}`;let y=1,T=0,$=0;u&&c?(y=.6,T=.2,$=.2):u?(y=.7,T=.3):c&&(y=.7,$=.3),x.useEffect(()=>{if(!Z.current||e.length===0)return;let b=!1;return(async()=>{var _;try{const n=e.map(i=>se.toUnixTimestamp(i.date)),M=e.map(i=>i.open),ee=e.map(i=>i.high),r=e.map(i=>i.low),d=e.map(i=>i.close),q=e.map(i=>i.volume??0),ve=m?g==="ema"?Y.calculateEMA(d,E):Y.calculateSMA(d,E):[],G=u?Ee.calculateMACD(d,oe):null,fe=c?ye.calculateRSI(d,ce):null,ie=m?ae(n,ve):{x:[],y:[]},C=G?$e(n,G.macdLine,G.signalLine,G.histogram):null,X=fe?ae(n,fe.rsi):null,te=[{type:t.scichartExports.EChart2DModifierType.ZoomPan,options:{xyDirection:t.scichartExports.EXyDirection.XDirection}},{type:t.scichartExports.EChart2DModifierType.ZoomExtents,options:{xyDirection:t.scichartExports.EXyDirection.XDirection}},{type:t.scichartExports.EChart2DModifierType.MouseWheelZoom,options:{xyDirection:t.scichartExports.EXyDirection.XDirection}}],me=[{type:t.scichartExports.EAxisType.NumericAxis,options:{growBy:new t.scichartExports.NumberRange(.1,.1),labelFormat:t.scichartExports.ENumericFormat.Decimal,labelPrecision:2,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1}}];f&&me.push({type:t.scichartExports.EAxisType.NumericAxis,options:{id:be,growBy:new t.scichartExports.NumberRange(0,4),isVisible:!1,autoRange:t.scichartExports.EAutoRange.Always}});const Me=Oe(D,p),V=[];if(D==="line"?V.push({type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:n,yValues:d,dataSeriesName:"Price"},options:{stroke:p.upColor,strokeThickness:2}}):V.push({type:t.scichartExports.ESeriesType.CandlestickSeries,ohlcData:{xValues:n,openValues:M,highValues:ee,lowValues:r,closeValues:d,dataSeriesName:"OHLC"},options:{...Me}}),m&&ie.y.length>0){const i=g==="ema"?`EMA${E}`:`SMA${E}`;V.push({type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:ie.x,yValues:ie.y,dataSeriesName:i},options:{stroke:de,strokeThickness:1.5}})}f&&V.push({type:t.scichartExports.ESeriesType.ColumnSeries,xyData:{xValues:n,yValues:q,dataSeriesName:"Volume"},options:{yAxisId:be,strokeThickness:0,dataPointWidth:.7,opacity:ne}});const H=[];let N=0;if(H.push({surface:{id:"mainChart",position:new t.scichartExports.Rect(0,N,1,y),theme:j,subChartContainerId:U},xAxes:{type:t.scichartExports.EAxisType.DateTimeNumericAxis,options:{drawLabels:!u&&!c,drawMajorTickLines:!0,drawMinorTickLines:!1,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,maxAutoTicks:10}},yAxes:me,series:V,modifiers:te}),N+=y,u&&C&&C.x.length>0){const[i,s,F]=C.ys;H.push({surface:{id:"macdChart",position:new t.scichartExports.Rect(0,N,1,T),theme:j,subChartContainerId:he},xAxes:{type:t.scichartExports.EAxisType.DateTimeNumericAxis,options:{drawLabels:!c,drawMajorTickLines:!0,drawMinorTickLines:!1,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,maxAutoTicks:10}},yAxes:{type:t.scichartExports.EAxisType.NumericAxis,options:{growBy:new t.scichartExports.NumberRange(.1,.1),autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,labelFormat:t.scichartExports.ENumericFormat.Decimal,labelPrecision:4}},series:[{type:t.scichartExports.ESeriesType.ColumnSeries,xyData:{xValues:C.x,yValues:F,dataSeriesName:"Histogram"},options:{strokeThickness:0,dataPointWidth:.6}},{type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:C.x,yValues:i,dataSeriesName:"MACD"},options:{stroke:p.macdLineColor,strokeThickness:1.5}},{type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:C.x,yValues:s,dataSeriesName:"Signal"},options:{stroke:p.signalLineColor,strokeThickness:1.5}}],modifiers:te}),N+=T}c&&X&&X.y.length>0&&H.push({surface:{id:"rsiChart",position:new t.scichartExports.Rect(0,N,1,$),theme:j,subChartContainerId:xe},xAxes:{type:t.scichartExports.EAxisType.DateTimeNumericAxis,options:{drawLabels:!0,drawMajorTickLines:!0,drawMinorTickLines:!1,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,maxAutoTicks:10}},yAxes:{type:t.scichartExports.EAxisType.NumericAxis,options:{visibleRange:new t.scichartExports.NumberRange(0,100),autoRange:t.scichartExports.EAutoRange.Never,drawMajorGridLines:!0,drawMinorGridLines:!1,labelFormat:t.scichartExports.ENumericFormat.Decimal,labelPrecision:0}},series:[{type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:X.x,yValues:X.y,dataSeriesName:"RSI"},options:{stroke:p.rsiColor,strokeThickness:1.5}}],modifiers:te});const{sciChartSurface:l}=await t.scichartExports.chartBuilder.build2DChart(Z.current,{subCharts:H});if(b){l.delete();return}A.current=l;const Ve=Math.min(...n),Ne=Math.max(...n);l.subCharts.forEach(i=>{const s=i.xAxes.get(0);s!=null&&s.labelProvider&&(s.labelProvider.formatLabel=F=>se.formatAxisLabel(F,[Ve,Ne]))});const W=l.subCharts[0];if(D!=="line"){const i=W.renderableSeries.get(0);v.current=i.dataSeries}let re=1;if(m){const i=W.renderableSeries.get(re);i&&(K.current=i.dataSeries),re++}if(f){const i=W.renderableSeries.get(re);i&&(J.current=i.dataSeries,v.current&&(i.paletteProvider=new Fe.VolumePaletteProvider(v.current,ue,pe)))}if(u&&C&&C.x.length>0){const i=l.subCharts.find(s=>s.id==="macdChart");if(i){const s=i.renderableSeries.get(0);s&&(s.paletteProvider=new Ie.MACDHistogramPaletteProvider(p.histogramUpColor,p.histogramDownColor))}}if(c){const i=l.subCharts.find(s=>s.id==="rsiChart")}if(le){const i=new Pe.FinChartLegendModifier({crosshairStroke:"#666666",crosshairStrokeDashArray:[3,3],showAxisLabels:!0,axisLabelFill:L==="light"?"#f0f0f0":"#1a3a4a",axisLabelStroke:L==="light"?"#333333":"#e0e0e0"});l.chartModifiers.add(i)}if(l.subCharts.length>1){let i=!1;const s=W.xAxes.get(0);if(s){const F=h=>{i||(i=!0,l.subCharts.forEach(I=>{if(I.id!=="mainChart"){const k=I.xAxes.get(0);k&&(k.visibleRange=h)}}),i=!1)};(_=s.visibleRangeChanged)!=null&&_.subscribe&&s.visibleRangeChanged.subscribe(h=>{h!=null&&h.visibleRange&&F(h.visibleRange)}),l.subCharts.forEach(h=>{var I;if(h.id!=="mainChart"){const k=h.xAxes.get(0);(I=k==null?void 0:k.visibleRangeChanged)!=null&&I.subscribe&&k.visibleRangeChanged.subscribe(B=>{i||!(B!=null&&B.visibleRange)||(i=!0,s.visibleRange=B.visibleRange,i=!1)})}})}}P==null||P(l)}catch(n){console.error("Failed to initialize FinancialChart:",n)}})(),()=>{b=!0,A.current&&(A.current.delete(),A.current=null)}},[j,f,ue,pe,ne,D,m,g,E,de,u,oe,c,ce,le,L,P]),x.useEffect(()=>{if(!A.current||e.length===0)return;const b=e.map(r=>se.toUnixTimestamp(r.date)),O=e.map(r=>r.open),_=e.map(r=>r.high),n=e.map(r=>r.low),M=e.map(r=>r.close),ee=e.map(r=>r.volume??0);if(v.current){const r=v.current;r.clear(),r.appendRange(b,O,_,n,M)}if(K.current&&m){const r=g==="ema"?Y.calculateEMA(M,E):Y.calculateSMA(M,E),d=ae(b,r),q=K.current;q.clear(),d.x.length>0&&q.appendRange(d.x,d.y)}if(J.current){const r=J.current;r.clear(),r.appendRange(b,ee)}A.current.invalidateElement()},[e,m,g,E]);const Re={width:typeof a=="number"?`${a}px`:a,height:typeof S=="number"?`${S}px`:S,position:"relative",overflow:"hidden"},we={position:"absolute",width:"100%",height:"100%"},Q=(b,O)=>({position:"absolute",left:0,right:0,top:`${b*100}%`,height:`${O*100}%`}),R=[];f&&R.push("volume"),m&&R.push(`${g==null?void 0:g.toUpperCase()} moving average`),u&&R.push("MACD"),c&&R.push("RSI");const Le=R.length>0?` with ${R.join(", ")} indicators`:"";return w.jsxs("div",{className:Se,style:Re,role:"img","aria-label":`Financial chart displaying ${e.length} ${D} price points${Le}`,"aria-describedby":`${U}-desc`,children:[w.jsxs("span",{id:`${U}-desc`,style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:["Interactive financial chart with ",D," display."," ",u?"Includes MACD subchart. ":"",c?"Includes RSI subchart. ":"","Chart features zoom, pan, and synchronized crosshair across all panes."]}),w.jsxs("div",{ref:Z,style:we,children:[w.jsx("div",{id:U,style:Q(0,y)}),w.jsx("div",{id:he,style:{...Q(y,T),display:u?"block":"none"}}),w.jsx("div",{id:xe,style:{...Q(y+T,$),display:c?"block":"none"}})]})]})});exports.FinancialChart=_e;exports.MA_PERIODS=je;exports.MA_PERIOD_OPTIONS=Ue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),x=require("react"),t=require("./petal-toolkit.cjs59.js"),ge=require("./petal-toolkit.cjs60.js"),se=require("./petal-toolkit.cjs1332.js"),Ee=require("./petal-toolkit.cjs16.js"),ye=require("./petal-toolkit.cjs17.js"),Y=require("./petal-toolkit.cjs53.js"),Fe=require("./petal-toolkit.cjs51.js"),Ie=require("./petal-toolkit.cjs33.js"),Pe=require("./petal-toolkit.cjs29.js"),je={FAST:9,SHORT:20,MEDIUM:50,LONG:100,VERY_LONG:200},Ue=[9,20,50,100,200],be="VolumeAxis";function Ce(o){for(let e=0;e<o.length;e++)if(!isNaN(o[e]))return e;return o.length}function ae(o,e){const a=Ce(e);return a>=e.length?{x:[],y:[]}:{x:o.slice(a),y:e.slice(a)}}function $e(o,...e){let a=0;for(const S of e){const f=Ce(S);f>a&&(a=f)}return a>=o.length?{x:[],ys:e.map(()=>[])}:{x:o.slice(a),ys:e.map(S=>S.slice(a))}}function Oe(o,e){switch(o){case"ohlc":return{strokeThickness:2,dataPointWidth:.7,brushUp:"Transparent",brushDown:"Transparent",strokeUp:e.upColor,strokeDown:e.downColor};case"hlc":return{strokeThickness:2,dataPointWidth:.7,brushUp:"Transparent",brushDown:"Transparent",strokeUp:e.upColor,strokeDown:e.downColor};case"hollow-candlestick":return{strokeThickness:1,dataPointWidth:.7,brushUp:"Transparent",brushDown:e.downColor+"CC",strokeUp:e.upColor,strokeDown:e.downColor};case"line":return null;case"candlestick":default:return{strokeThickness:1,dataPointWidth:.7,brushUp:e.upColor+"CC",brushDown:e.downColor+"CC",strokeUp:e.upColor,strokeDown:e.downColor}}}const _e=x.memo(function({data:e,width:a="100%",height:S=500,showVolume:f=!0,className:Se,themePreset:L="dark",theme:ke,volumeUpColor:De,volumeDownColor:Ae,volumeOpacity:ne=.5,onChartReady:P,chartType:D="candlestick",showMA:m=!1,maType:g="sma",maPeriod:E=20,maColor:Te,showMACD:u=!1,macdParams:oe=Ee.DEFAULT_MACD_PARAMS,showRSI:c=!1,rsiPeriod:ce=ye.DEFAULT_RSI_PERIOD,showLegend:le=!0}){const z=x.useId(),Z=x.useRef(null),A=x.useRef(null),v=x.useRef(null),J=x.useRef(null),K=x.useRef(null),j=ke??ge.getThemeFromPreset(L),p=ge.getFinancialChartColors(L),ue=De??p.upColor+"CC",pe=Ae??p.downColor+"CC",de=Te??p.maColor,U=`financial-main-${z}`,he=`financial-macd-${z}`,xe=`financial-rsi-${z}`;let y=1,T=0,$=0;u&&c?(y=.6,T=.2,$=.2):u?(y=.7,T=.3):c&&(y=.7,$=.3),x.useEffect(()=>{if(!Z.current||e.length===0)return;let b=!1;return(async()=>{var _;try{const n=e.map(i=>se.toUnixTimestamp(i.date)),M=e.map(i=>i.open),ee=e.map(i=>i.high),r=e.map(i=>i.low),d=e.map(i=>i.close),q=e.map(i=>i.volume??0),ve=m?g==="ema"?Y.calculateEMA(d,E):Y.calculateSMA(d,E):[],G=u?Ee.calculateMACD(d,oe):null,fe=c?ye.calculateRSI(d,ce):null,ie=m?ae(n,ve):{x:[],y:[]},C=G?$e(n,G.macdLine,G.signalLine,G.histogram):null,X=fe?ae(n,fe.rsi):null,te=[{type:t.scichartExports.EChart2DModifierType.ZoomPan,options:{xyDirection:t.scichartExports.EXyDirection.XDirection}},{type:t.scichartExports.EChart2DModifierType.ZoomExtents,options:{xyDirection:t.scichartExports.EXyDirection.XDirection}},{type:t.scichartExports.EChart2DModifierType.MouseWheelZoom,options:{xyDirection:t.scichartExports.EXyDirection.XDirection}}],me=[{type:t.scichartExports.EAxisType.NumericAxis,options:{growBy:new t.scichartExports.NumberRange(.1,.1),labelFormat:t.scichartExports.ENumericFormat.Decimal,labelPrecision:2,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1}}];f&&me.push({type:t.scichartExports.EAxisType.NumericAxis,options:{id:be,growBy:new t.scichartExports.NumberRange(0,4),isVisible:!1,autoRange:t.scichartExports.EAutoRange.Always}});const Me=Oe(D,p),V=[];if(D==="line"?V.push({type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:n,yValues:d,dataSeriesName:"Price"},options:{stroke:p.upColor,strokeThickness:2}}):V.push({type:t.scichartExports.ESeriesType.CandlestickSeries,ohlcData:{xValues:n,openValues:M,highValues:ee,lowValues:r,closeValues:d,dataSeriesName:"OHLC"},options:{...Me}}),m&&ie.y.length>0){const i=g==="ema"?`EMA${E}`:`SMA${E}`;V.push({type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:ie.x,yValues:ie.y,dataSeriesName:i},options:{stroke:de,strokeThickness:1.5}})}f&&V.push({type:t.scichartExports.ESeriesType.ColumnSeries,xyData:{xValues:n,yValues:q,dataSeriesName:"Volume"},options:{yAxisId:be,strokeThickness:0,dataPointWidth:.7,opacity:ne}});const H=[];let N=0;if(H.push({surface:{id:"mainChart",position:new t.scichartExports.Rect(0,N,1,y),theme:j,subChartContainerId:U},xAxes:{type:t.scichartExports.EAxisType.DateTimeNumericAxis,options:{drawLabels:!u&&!c,drawMajorTickLines:!0,drawMinorTickLines:!1,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,maxAutoTicks:10}},yAxes:me,series:V,modifiers:te}),N+=y,u&&C&&C.x.length>0){const[i,s,F]=C.ys;H.push({surface:{id:"macdChart",position:new t.scichartExports.Rect(0,N,1,T),theme:j,subChartContainerId:he},xAxes:{type:t.scichartExports.EAxisType.DateTimeNumericAxis,options:{drawLabels:!c,drawMajorTickLines:!0,drawMinorTickLines:!1,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,maxAutoTicks:10}},yAxes:{type:t.scichartExports.EAxisType.NumericAxis,options:{growBy:new t.scichartExports.NumberRange(.1,.1),autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,labelFormat:t.scichartExports.ENumericFormat.Decimal,labelPrecision:4}},series:[{type:t.scichartExports.ESeriesType.ColumnSeries,xyData:{xValues:C.x,yValues:F,dataSeriesName:"Histogram"},options:{strokeThickness:0,dataPointWidth:.6}},{type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:C.x,yValues:i,dataSeriesName:"MACD"},options:{stroke:p.macdLineColor,strokeThickness:1.5}},{type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:C.x,yValues:s,dataSeriesName:"Signal"},options:{stroke:p.signalLineColor,strokeThickness:1.5}}],modifiers:te}),N+=T}c&&X&&X.y.length>0&&H.push({surface:{id:"rsiChart",position:new t.scichartExports.Rect(0,N,1,$),theme:j,subChartContainerId:xe},xAxes:{type:t.scichartExports.EAxisType.DateTimeNumericAxis,options:{drawLabels:!0,drawMajorTickLines:!0,drawMinorTickLines:!1,autoRange:t.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,maxAutoTicks:10}},yAxes:{type:t.scichartExports.EAxisType.NumericAxis,options:{visibleRange:new t.scichartExports.NumberRange(0,100),autoRange:t.scichartExports.EAutoRange.Never,drawMajorGridLines:!0,drawMinorGridLines:!1,labelFormat:t.scichartExports.ENumericFormat.Decimal,labelPrecision:0}},series:[{type:t.scichartExports.ESeriesType.LineSeries,xyData:{xValues:X.x,yValues:X.y,dataSeriesName:"RSI"},options:{stroke:p.rsiColor,strokeThickness:1.5}}],modifiers:te});const{sciChartSurface:l}=await t.scichartExports.chartBuilder.build2DChart(Z.current,{subCharts:H});if(b){l.delete();return}A.current=l;const Ve=Math.min(...n),Ne=Math.max(...n);l.subCharts.forEach(i=>{const s=i.xAxes.get(0);s!=null&&s.labelProvider&&(s.labelProvider.formatLabel=F=>se.formatAxisLabel(F,[Ve,Ne]))});const W=l.subCharts[0];if(D!=="line"){const i=W.renderableSeries.get(0);v.current=i.dataSeries}let re=1;if(m){const i=W.renderableSeries.get(re);i&&(K.current=i.dataSeries),re++}if(f){const i=W.renderableSeries.get(re);i&&(J.current=i.dataSeries,v.current&&(i.paletteProvider=new Fe.VolumePaletteProvider(v.current,ue,pe)))}if(u&&C&&C.x.length>0){const i=l.subCharts.find(s=>s.id==="macdChart");if(i){const s=i.renderableSeries.get(0);s&&(s.paletteProvider=new Ie.MACDHistogramPaletteProvider(p.histogramUpColor,p.histogramDownColor))}}if(c){const i=l.subCharts.find(s=>s.id==="rsiChart")}if(le){const i=new Pe.FinChartLegendModifier({crosshairStroke:"#666666",crosshairStrokeDashArray:[3,3],showAxisLabels:!0,axisLabelFill:L==="light"?"#f0f0f0":"#1a3a4a",axisLabelStroke:L==="light"?"#333333":"#e0e0e0"});l.chartModifiers.add(i)}if(l.subCharts.length>1){let i=!1;const s=W.xAxes.get(0);if(s){const F=h=>{i||(i=!0,l.subCharts.forEach(I=>{if(I.id!=="mainChart"){const k=I.xAxes.get(0);k&&(k.visibleRange=h)}}),i=!1)};(_=s.visibleRangeChanged)!=null&&_.subscribe&&s.visibleRangeChanged.subscribe(h=>{h!=null&&h.visibleRange&&F(h.visibleRange)}),l.subCharts.forEach(h=>{var I;if(h.id!=="mainChart"){const k=h.xAxes.get(0);(I=k==null?void 0:k.visibleRangeChanged)!=null&&I.subscribe&&k.visibleRangeChanged.subscribe(B=>{i||!(B!=null&&B.visibleRange)||(i=!0,s.visibleRange=B.visibleRange,i=!1)})}})}}P==null||P(l)}catch(n){console.error("Failed to initialize FinancialChart:",n)}})(),()=>{b=!0,A.current&&(A.current.delete(),A.current=null)}},[j,f,ue,pe,ne,D,m,g,E,de,u,oe,c,ce,le,L,P]),x.useEffect(()=>{if(!A.current||e.length===0)return;const b=e.map(r=>se.toUnixTimestamp(r.date)),O=e.map(r=>r.open),_=e.map(r=>r.high),n=e.map(r=>r.low),M=e.map(r=>r.close),ee=e.map(r=>r.volume??0);if(v.current){const r=v.current;r.clear(),r.appendRange(b,O,_,n,M)}if(K.current&&m){const r=g==="ema"?Y.calculateEMA(M,E):Y.calculateSMA(M,E),d=ae(b,r),q=K.current;q.clear(),d.x.length>0&&q.appendRange(d.x,d.y)}if(J.current){const r=J.current;r.clear(),r.appendRange(b,ee)}A.current.invalidateElement()},[e,m,g,E]);const Re={width:typeof a=="number"?`${a}px`:a,height:typeof S=="number"?`${S}px`:S,position:"relative",overflow:"hidden"},we={position:"absolute",width:"100%",height:"100%"},Q=(b,O)=>({position:"absolute",left:0,right:0,top:`${b*100}%`,height:`${O*100}%`}),R=[];f&&R.push("volume"),m&&R.push(`${g==null?void 0:g.toUpperCase()} moving average`),u&&R.push("MACD"),c&&R.push("RSI");const Le=R.length>0?` with ${R.join(", ")} indicators`:"";return w.jsxs("div",{className:Se,style:Re,role:"img","aria-label":`Financial chart displaying ${e.length} ${D} price points${Le}`,"aria-describedby":`${U}-desc`,children:[w.jsxs("span",{id:`${U}-desc`,style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:["Interactive financial chart with ",D," display."," ",u?"Includes MACD subchart. ":"",c?"Includes RSI subchart. ":"","Chart features zoom, pan, and synchronized crosshair across all panes."]}),w.jsxs("div",{ref:Z,style:we,children:[w.jsx("div",{id:U,style:Q(0,y)}),w.jsx("div",{id:he,style:{...Q(y,T),display:u?"block":"none"}}),w.jsx("div",{id:xe,style:{...Q(y+T,$),display:c?"block":"none"}})]})]})});exports.FinancialChart=_e;exports.MA_PERIODS=je;exports.MA_PERIOD_OPTIONS=Ue;
2
2
  //# sourceMappingURL=petal-toolkit.cjs30.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),M=require("react"),o=require("./petal-toolkit.cjs59.js"),T=require("./petal-toolkit.cjs1321.js"),k=require("./petal-toolkit.cjs55.js"),U=require("./petal-toolkit.cjs1322.js"),B=require("./petal-toolkit.cjs58.js");function I(d){switch(d){case"light":return{negativeColor:"#dc2626",neutralColor:"#fafafa",positiveColor:"#16a34a"};case"navy":return{negativeColor:"#f43f5e",neutralColor:"#1e293b",positiveColor:"#10b981"};case"dark":default:return{negativeColor:"#FF4757",neutralColor:"#1f2937",positiveColor:"#00FFB3"}}}const O=M.memo(function({data:a,width:A="100%",height:E=400,className:q,themePreset:C="dark",theme:H,minGrowth:x=-50,maxGrowth:S=50,onChartReady:s}){const{containerId:f,containerRef:w,surfaceRef:n,sciChartTheme:g,baseColors:c,containerStyle:L}=T.useFinancialChartSetup({chartName:"growth-heatmap",width:A,height:E,themePreset:C,customTheme:H}),l=I(C);return M.useEffect(()=>{if(!w.current||a.length===0)return;let b=!1;return(async()=>{try{const i=[...new Set(a.map(e=>e.period))],p=[...new Set(a.map(e=>e.metric))],v=[];for(let e=0;e<p.length;e++){const t=[];for(let h=0;h<i.length;h++){const m=a.find(y=>y.period===i[h]&&y.metric===p[e]);t.push((m==null?void 0:m.growth)??0)}v.push(t)}const{sciChartSurface:r,wasmContext:u}=await o.scichartExports.SciChartSurface.create(f,{theme:g});if(b){r.delete();return}n.current=r;const F=new o.scichartExports.NumericAxis(u,{autoRange:o.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,labelStyle:{color:c.axisLabelColor,fontSize:11}});F.labelProvider.formatLabel=e=>{const t=Math.round(e);return i[t]||""},r.xAxes.add(F);const j=k.createNumericYAxis(u,{labelColor:c.axisLabelColor,drawMajorGridLines:!1,labelFormatter:e=>{const t=Math.round(e);return p[t]||""}});r.yAxes.add(j);const G=new o.scichartExports.UniformHeatmapDataSeries(u,{xStart:0,xStep:1,yStart:0,yStep:1,zValues:v}),D=new o.scichartExports.HeatmapColorMap({minimum:x,maximum:S,gradientStops:[{offset:0,color:l.negativeColor},{offset:.5,color:l.neutralColor},{offset:1,color:l.positiveColor}]}),z=new o.scichartExports.UniformHeatmapRenderableSeries(u,{dataSeries:G,colorMap:D,useLinearTextureFiltering:!1});r.renderableSeries.add(z),U.addStandardModifiers(r,{crosshairColor:c.crosshairColor,valueFormatters:{default:B.tooltipFormatters.percent}}),s==null||s(r)}catch(i){console.error("Failed to initialize GrowthHeatmapChart:",i)}})(),()=>{b=!0,n.current&&(n.current.delete(),n.current=null)}},[a,f,g,c,l,x,S,s]),N.jsx("div",{ref:w,id:f,className:q,style:L})});exports.GrowthHeatmapChart=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),M=require("react"),o=require("./petal-toolkit.cjs59.js"),T=require("./petal-toolkit.cjs1329.js"),k=require("./petal-toolkit.cjs55.js"),U=require("./petal-toolkit.cjs1331.js"),B=require("./petal-toolkit.cjs58.js");function I(d){switch(d){case"light":return{negativeColor:"#dc2626",neutralColor:"#fafafa",positiveColor:"#16a34a"};case"navy":return{negativeColor:"#f43f5e",neutralColor:"#1e293b",positiveColor:"#10b981"};case"dark":default:return{negativeColor:"#FF4757",neutralColor:"#1f2937",positiveColor:"#00FFB3"}}}const O=M.memo(function({data:a,width:A="100%",height:E=400,className:q,themePreset:C="dark",theme:H,minGrowth:x=-50,maxGrowth:S=50,onChartReady:s}){const{containerId:f,containerRef:w,surfaceRef:n,sciChartTheme:g,baseColors:c,containerStyle:L}=T.useFinancialChartSetup({chartName:"growth-heatmap",width:A,height:E,themePreset:C,customTheme:H}),l=I(C);return M.useEffect(()=>{if(!w.current||a.length===0)return;let b=!1;return(async()=>{try{const i=[...new Set(a.map(e=>e.period))],p=[...new Set(a.map(e=>e.metric))],v=[];for(let e=0;e<p.length;e++){const t=[];for(let h=0;h<i.length;h++){const m=a.find(y=>y.period===i[h]&&y.metric===p[e]);t.push((m==null?void 0:m.growth)??0)}v.push(t)}const{sciChartSurface:r,wasmContext:u}=await o.scichartExports.SciChartSurface.create(f,{theme:g});if(b){r.delete();return}n.current=r;const F=new o.scichartExports.NumericAxis(u,{autoRange:o.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,labelStyle:{color:c.axisLabelColor,fontSize:11}});F.labelProvider.formatLabel=e=>{const t=Math.round(e);return i[t]||""},r.xAxes.add(F);const j=k.createNumericYAxis(u,{labelColor:c.axisLabelColor,drawMajorGridLines:!1,labelFormatter:e=>{const t=Math.round(e);return p[t]||""}});r.yAxes.add(j);const G=new o.scichartExports.UniformHeatmapDataSeries(u,{xStart:0,xStep:1,yStart:0,yStep:1,zValues:v}),D=new o.scichartExports.HeatmapColorMap({minimum:x,maximum:S,gradientStops:[{offset:0,color:l.negativeColor},{offset:.5,color:l.neutralColor},{offset:1,color:l.positiveColor}]}),z=new o.scichartExports.UniformHeatmapRenderableSeries(u,{dataSeries:G,colorMap:D,useLinearTextureFiltering:!1});r.renderableSeries.add(z),U.addStandardModifiers(r,{crosshairColor:c.crosshairColor,valueFormatters:{default:B.tooltipFormatters.percent}}),s==null||s(r)}catch(i){console.error("Failed to initialize GrowthHeatmapChart:",i)}})(),()=>{b=!0,n.current&&(n.current.delete(),n.current=null)}},[a,f,g,c,l,x,S,s]),N.jsx("div",{ref:w,id:f,className:q,style:L})});exports.GrowthHeatmapChart=O;
2
2
  //# sourceMappingURL=petal-toolkit.cjs31.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),F=require("react"),c=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs1321.js"),M=require("./petal-toolkit.cjs55.js"),N=require("./petal-toolkit.cjs1322.js"),T=require("./petal-toolkit.cjs58.js");function U(C){switch(C){case"light":return{lowColor:"#dbeafe",highColor:"#1d4ed8"};case"navy":return{lowColor:"#1e3a5f",highColor:"#60a5fa"};case"dark":default:return{lowColor:"#1a1a2e",highColor:"#00FFB3"}}}const B=F.memo(function({data:t,width:q="100%",height:E=400,className:H,themePreset:S="dark",theme:I,onChartReady:o}){const{containerId:l,containerRef:x,surfaceRef:i,sciChartTheme:g,baseColors:a,containerStyle:A}=L.useFinancialChartSetup({chartName:"investment-heatmap",width:q,height:E,themePreset:S,customTheme:I}),u=U(S);return F.useEffect(()=>{if(!x.current||t.length===0)return;let b=!1;return(async()=>{try{const s=[...new Set(t.map(r=>r.period))],w=[...new Set(t.map(r=>r.category))],m=[];let h=1/0,f=-1/0;w.forEach((r,y)=>{m[y]=[],s.forEach((V,k)=>{const d=t.find(v=>v.period===V&&v.category===r),p=(d==null?void 0:d.value)??0;m[y][k]=p,h=Math.min(h,p),f=Math.max(f,p)})});const{sciChartSurface:e,wasmContext:n}=await c.scichartExports.SciChartSurface.create(l,{theme:g});if(b){e.delete();return}i.current=e,e.xAxes.add(M.createCategoryXAxis(n,{labelColor:a.axisLabelColor,labels:s})),e.yAxes.add(M.createNumericYAxis(n,{labelColor:a.axisLabelColor,gridColor:a.gridColor,labelFormatter:r=>w[Math.round(r)]||""}));const j=new c.scichartExports.UniformHeatmapDataSeries(n,{xStart:0,xStep:1,yStart:0,yStep:1,zValues:m}),D=new c.scichartExports.UniformHeatmapRenderableSeries(n,{dataSeries:j,colorMap:new c.scichartExports.HeatmapColorMap({minimum:h,maximum:f,gradientStops:[{offset:0,color:u.lowColor},{offset:1,color:u.highColor}]})});e.renderableSeries.add(D),N.addStandardModifiers(e,{crosshairColor:a.crosshairColor,valueFormatters:{default:T.tooltipFormatters.currency}}),o==null||o(e)}catch(s){console.error("Failed to initialize InvestmentHeatmapChart:",s)}})(),()=>{b=!0,i.current&&(i.current.delete(),i.current=null)}},[t,l,g,a,u,o]),z.jsx("div",{ref:x,id:l,className:H,style:A})});exports.InvestmentHeatmapChart=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),F=require("react"),c=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs1329.js"),M=require("./petal-toolkit.cjs55.js"),N=require("./petal-toolkit.cjs1331.js"),T=require("./petal-toolkit.cjs58.js");function U(C){switch(C){case"light":return{lowColor:"#dbeafe",highColor:"#1d4ed8"};case"navy":return{lowColor:"#1e3a5f",highColor:"#60a5fa"};case"dark":default:return{lowColor:"#1a1a2e",highColor:"#00FFB3"}}}const B=F.memo(function({data:t,width:q="100%",height:E=400,className:H,themePreset:S="dark",theme:I,onChartReady:o}){const{containerId:l,containerRef:x,surfaceRef:i,sciChartTheme:g,baseColors:a,containerStyle:A}=L.useFinancialChartSetup({chartName:"investment-heatmap",width:q,height:E,themePreset:S,customTheme:I}),u=U(S);return F.useEffect(()=>{if(!x.current||t.length===0)return;let b=!1;return(async()=>{try{const s=[...new Set(t.map(r=>r.period))],w=[...new Set(t.map(r=>r.category))],m=[];let h=1/0,f=-1/0;w.forEach((r,y)=>{m[y]=[],s.forEach((V,k)=>{const d=t.find(v=>v.period===V&&v.category===r),p=(d==null?void 0:d.value)??0;m[y][k]=p,h=Math.min(h,p),f=Math.max(f,p)})});const{sciChartSurface:e,wasmContext:n}=await c.scichartExports.SciChartSurface.create(l,{theme:g});if(b){e.delete();return}i.current=e,e.xAxes.add(M.createCategoryXAxis(n,{labelColor:a.axisLabelColor,labels:s})),e.yAxes.add(M.createNumericYAxis(n,{labelColor:a.axisLabelColor,gridColor:a.gridColor,labelFormatter:r=>w[Math.round(r)]||""}));const j=new c.scichartExports.UniformHeatmapDataSeries(n,{xStart:0,xStep:1,yStart:0,yStep:1,zValues:m}),D=new c.scichartExports.UniformHeatmapRenderableSeries(n,{dataSeries:j,colorMap:new c.scichartExports.HeatmapColorMap({minimum:h,maximum:f,gradientStops:[{offset:0,color:u.lowColor},{offset:1,color:u.highColor}]})});e.renderableSeries.add(D),N.addStandardModifiers(e,{crosshairColor:a.crosshairColor,valueFormatters:{default:T.tooltipFormatters.currency}}),o==null||o(e)}catch(s){console.error("Failed to initialize InvestmentHeatmapChart:",s)}})(),()=>{b=!0,i.current&&(i.current.delete(),i.current=null)}},[t,l,g,a,u,o]),z.jsx("div",{ref:x,id:l,className:H,style:A})});exports.InvestmentHeatmapChart=B;
2
2
  //# sourceMappingURL=petal-toolkit.cjs32.js.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("react/jsx-runtime"),L=require("react"),r=require("./petal-toolkit.cjs59.js"),A=require("./petal-toolkit.cjs54.js"),K=require("./petal-toolkit.cjs1321.js"),Q=require("./petal-toolkit.cjs55.js"),U=require("./petal-toolkit.cjs1322.js");function ee(x){switch(x){case"light":return{grossMarginColor:"#16a34a",operatingMarginColor:"#ea580c",netMarginColor:"#7c3aed"};case"navy":return{grossMarginColor:"#10b981",operatingMarginColor:"#f97316",netMarginColor:"#8b5cf6"};case"dark":default:return{grossMarginColor:"#00FFB3",operatingMarginColor:"#FFA502",netMarginColor:"#6C5CE7"}}}const re=L.memo(function({data:s,width:N="100%",height:P=400,className:q,themePreset:f="dark",theme:O,showLegend:C=!0,yAxisMax:m,onChartReady:c}){const{containerId:h,containerRef:k,surfaceRef:g,sciChartTheme:F,baseColors:n,containerStyle:j}=K.useFinancialChartSetup({chartName:"margin-analysis",width:N,height:P,themePreset:f,customTheme:O}),o=ee(f);return L.useEffect(()=>{if(!k.current||s.length===0)return;let S=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:i}=await r.scichartExports.SciChartSurface.create(h,{theme:F});if(S){t.delete();return}g.current=t;const z=s.map(e=>e.period),D=Q.createCategoryXAxis(i,{labelColor:n.axisLabelColor,labels:z,fontSize:10});t.xAxes.add(D);const G=s.flatMap(e=>[e.grossMargin,e.operatingMargin,e.netMargin]),H=Math.max(...G),R=m??Math.ceil(H/10)*10+10,w=new r.scichartExports.NumericAxis(i,{visibleRange:new r.scichartExports.NumberRange(0,R),autoRange:r.scichartExports.EAutoRange.Never,drawMajorGridLines:!0,drawMinorGridLines:!1,majorGridLineStyle:{color:n.gridColor,strokeThickness:.5},labelStyle:{color:n.axisLabelColor,fontSize:9}});w.labelProvider.formatLabel=e=>`${e.toFixed(0)}%`,t.yAxes.add(w);const u=s.map((e,M)=>M),V=new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:u,yValues:s.map(e=>e.grossMargin),dataSeriesName:"Gross Margin"}),stroke:o.grossMarginColor,strokeThickness:3,pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:o.grossMarginColor,stroke:"#FFFFFF",strokeThickness:2})}),Y=new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:u,yValues:s.map(e=>e.operatingMargin),dataSeriesName:"Operating Margin"}),stroke:o.operatingMarginColor,strokeThickness:3,pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:o.operatingMarginColor,stroke:"#FFFFFF",strokeThickness:2})}),X=new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:u,yValues:s.map(e=>e.netMargin),dataSeriesName:"Net Margin"}),stroke:o.netMarginColor,strokeThickness:3,pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:o.netMarginColor,stroke:"#FFFFFF",strokeThickness:2})});t.renderableSeries.add(V,Y,X),t.chartModifiers.add(new r.scichartExports.ZoomPanModifier,new r.scichartExports.MouseWheelZoomModifier,new r.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300}),new r.scichartExports.CursorModifier({showTooltip:!0,showAxisLabels:!0,crosshairStroke:`${n.crosshairColor}99`,crosshairStrokeThickness:1,tooltipSvgTemplate:e=>{if(e.length===0)return'<svg width="1" height="1"></svg>';const M=Math.round(e[0].hitTestInfo.xValue),l=s[M];if(!l)return'<svg width="1" height="1"></svg>';const b=[{label:"Gross Margin",value:`${l.grossMargin.toFixed(1)}%`,color:o.grossMarginColor},{label:"Operating Margin",value:`${l.operatingMargin.toFixed(1)}%`,color:o.operatingMarginColor},{label:"Net Margin",value:`${l.netMargin.toFixed(1)}%`,color:o.netMarginColor}],y=16,a=10,E=180,d=22,$=8,I=b.length*y,Z=d+$+I+a*2;let T=a+d+$+2;const _=b.map(p=>{const W=`<text x="${a}" y="${T}" font-size="11" font-family="${A.TOOLTIP_STYLE.fontFamily}">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("react/jsx-runtime"),L=require("react"),r=require("./petal-toolkit.cjs59.js"),A=require("./petal-toolkit.cjs54.js"),K=require("./petal-toolkit.cjs1329.js"),Q=require("./petal-toolkit.cjs55.js"),U=require("./petal-toolkit.cjs1331.js");function ee(x){switch(x){case"light":return{grossMarginColor:"#16a34a",operatingMarginColor:"#ea580c",netMarginColor:"#7c3aed"};case"navy":return{grossMarginColor:"#10b981",operatingMarginColor:"#f97316",netMarginColor:"#8b5cf6"};case"dark":default:return{grossMarginColor:"#00FFB3",operatingMarginColor:"#FFA502",netMarginColor:"#6C5CE7"}}}const re=L.memo(function({data:s,width:N="100%",height:P=400,className:q,themePreset:f="dark",theme:O,showLegend:C=!0,yAxisMax:m,onChartReady:c}){const{containerId:h,containerRef:k,surfaceRef:g,sciChartTheme:F,baseColors:n,containerStyle:j}=K.useFinancialChartSetup({chartName:"margin-analysis",width:N,height:P,themePreset:f,customTheme:O}),o=ee(f);return L.useEffect(()=>{if(!k.current||s.length===0)return;let S=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:i}=await r.scichartExports.SciChartSurface.create(h,{theme:F});if(S){t.delete();return}g.current=t;const z=s.map(e=>e.period),D=Q.createCategoryXAxis(i,{labelColor:n.axisLabelColor,labels:z,fontSize:10});t.xAxes.add(D);const G=s.flatMap(e=>[e.grossMargin,e.operatingMargin,e.netMargin]),H=Math.max(...G),R=m??Math.ceil(H/10)*10+10,w=new r.scichartExports.NumericAxis(i,{visibleRange:new r.scichartExports.NumberRange(0,R),autoRange:r.scichartExports.EAutoRange.Never,drawMajorGridLines:!0,drawMinorGridLines:!1,majorGridLineStyle:{color:n.gridColor,strokeThickness:.5},labelStyle:{color:n.axisLabelColor,fontSize:9}});w.labelProvider.formatLabel=e=>`${e.toFixed(0)}%`,t.yAxes.add(w);const u=s.map((e,M)=>M),V=new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:u,yValues:s.map(e=>e.grossMargin),dataSeriesName:"Gross Margin"}),stroke:o.grossMarginColor,strokeThickness:3,pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:o.grossMarginColor,stroke:"#FFFFFF",strokeThickness:2})}),Y=new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:u,yValues:s.map(e=>e.operatingMargin),dataSeriesName:"Operating Margin"}),stroke:o.operatingMarginColor,strokeThickness:3,pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:o.operatingMarginColor,stroke:"#FFFFFF",strokeThickness:2})}),X=new r.scichartExports.FastLineRenderableSeries(i,{dataSeries:new r.scichartExports.XyDataSeries(i,{xValues:u,yValues:s.map(e=>e.netMargin),dataSeriesName:"Net Margin"}),stroke:o.netMarginColor,strokeThickness:3,pointMarker:new r.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:o.netMarginColor,stroke:"#FFFFFF",strokeThickness:2})});t.renderableSeries.add(V,Y,X),t.chartModifiers.add(new r.scichartExports.ZoomPanModifier,new r.scichartExports.MouseWheelZoomModifier,new r.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300}),new r.scichartExports.CursorModifier({showTooltip:!0,showAxisLabels:!0,crosshairStroke:`${n.crosshairColor}99`,crosshairStrokeThickness:1,tooltipSvgTemplate:e=>{if(e.length===0)return'<svg width="1" height="1"></svg>';const M=Math.round(e[0].hitTestInfo.xValue),l=s[M];if(!l)return'<svg width="1" height="1"></svg>';const b=[{label:"Gross Margin",value:`${l.grossMargin.toFixed(1)}%`,color:o.grossMarginColor},{label:"Operating Margin",value:`${l.operatingMargin.toFixed(1)}%`,color:o.operatingMarginColor},{label:"Net Margin",value:`${l.netMargin.toFixed(1)}%`,color:o.netMarginColor}],y=16,a=10,E=180,d=22,$=8,I=b.length*y,Z=d+$+I+a*2;let T=a+d+$+2;const _=b.map(p=>{const W=`<text x="${a}" y="${T}" font-size="11" font-family="${A.TOOLTIP_STYLE.fontFamily}">
2
2
  <tspan fill="${p.color}">${p.label}:</tspan><tspan fill="rgba(255,255,255,0.95)"> ${p.value}</tspan>
3
3
  </text>`;return T+=y,W}).join(`
4
4
  `),B=a+14,v=a+d+2;return`<svg width="${E}" height="${Z}">
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),C=require("react"),e=require("./petal-toolkit.cjs59.js"),k=require("./petal-toolkit.cjs54.js"),y=require("./petal-toolkit.cjs1321.js");function A(a){switch(a){case"light":return{line:"#3b82f6",fillTop:"#3b82f666",fillBottom:"#3b82f611"};case"navy":return{line:"#60a5fa",fillTop:"#60a5fa66",fillBottom:"#60a5fa11"};case"dark":default:return{line:"#5B5FFF",fillTop:"#5B5FFF66",fillBottom:"#5B5FFF11"}}}function v(a){const r=a*1e6;return r>=1e12?`$${(r/1e12).toFixed(2)}T`:r>=1e9?`$${(r/1e9).toFixed(2)}B`:r>=1e6?`$${(r/1e6).toFixed(2)}M`:`$${r.toFixed(0)}`}const B=C.memo(function({data:r,width:w="100%",height:S=400,className:F,themePreset:f="dark",theme:M,onChartReady:s}){const{containerId:u,containerRef:d,surfaceRef:n,sciChartTheme:p,baseColors:o,containerStyle:E}=y.useFinancialChartSetup({chartName:"market-cap",width:w,height:S,themePreset:f,customTheme:M}),l=A(f);return C.useEffect(()=>{if(!d.current||r.length===0)return;let h=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:c}=await e.scichartExports.SciChartSurface.create(u,{theme:p});if(h){t.delete();return}n.current=t;const T=new e.scichartExports.DateTimeNumericAxis(c,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,maxAutoTicks:6,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});t.xAxes.add(T);const x=new e.scichartExports.NumericAxis(c,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});x.labelProvider.formatLabel=i=>v(i),t.yAxes.add(x);const b=r.map(i=>i.date.getTime()/1e3),L=r.map(i=>i.marketCap),m=new e.scichartExports.FastMountainRenderableSeries(c,{dataSeries:new e.scichartExports.XyDataSeries(c,{xValues:b,yValues:L,dataSeriesName:"Market Cap"}),stroke:l.line,strokeThickness:2,fillLinearGradient:new e.scichartExports.GradientParams(new e.scichartExports.Point(0,0),new e.scichartExports.Point(0,1),[{color:l.fillTop,offset:0},{color:l.fillBottom,offset:1}])});m.rolloverModifierProps.tooltipTemplate=k.createRolloverTooltip(k.tooltipFormatters.marketCap),t.renderableSeries.add(m),t.chartModifiers.add(new e.scichartExports.ZoomPanModifier,new e.scichartExports.MouseWheelZoomModifier,new e.scichartExports.ZoomExtentsModifier,new e.scichartExports.RolloverModifier({showTooltip:!0,showRolloverLine:!0,rolloverLineStroke:`${o.crosshairColor}99`,rolloverLineStrokeThickness:1})),t.zoomExtents(),s==null||s(t)}catch(t){console.error("Failed to initialize MarketCapChart:",t)}})(),()=>{h=!0,n.current&&(n.current.delete(),n.current=null)}},[r,u,p,o,l,s]),g.jsx("div",{ref:d,id:u,className:F,style:E})});exports.MarketCapChart=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),C=require("react"),e=require("./petal-toolkit.cjs59.js"),k=require("./petal-toolkit.cjs54.js"),y=require("./petal-toolkit.cjs1329.js");function A(a){switch(a){case"light":return{line:"#3b82f6",fillTop:"#3b82f666",fillBottom:"#3b82f611"};case"navy":return{line:"#60a5fa",fillTop:"#60a5fa66",fillBottom:"#60a5fa11"};case"dark":default:return{line:"#5B5FFF",fillTop:"#5B5FFF66",fillBottom:"#5B5FFF11"}}}function v(a){const r=a*1e6;return r>=1e12?`$${(r/1e12).toFixed(2)}T`:r>=1e9?`$${(r/1e9).toFixed(2)}B`:r>=1e6?`$${(r/1e6).toFixed(2)}M`:`$${r.toFixed(0)}`}const B=C.memo(function({data:r,width:w="100%",height:S=400,className:F,themePreset:f="dark",theme:M,onChartReady:s}){const{containerId:u,containerRef:d,surfaceRef:n,sciChartTheme:p,baseColors:o,containerStyle:E}=y.useFinancialChartSetup({chartName:"market-cap",width:w,height:S,themePreset:f,customTheme:M}),l=A(f);return C.useEffect(()=>{if(!d.current||r.length===0)return;let h=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:c}=await e.scichartExports.SciChartSurface.create(u,{theme:p});if(h){t.delete();return}n.current=t;const T=new e.scichartExports.DateTimeNumericAxis(c,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,maxAutoTicks:6,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});t.xAxes.add(T);const x=new e.scichartExports.NumericAxis(c,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});x.labelProvider.formatLabel=i=>v(i),t.yAxes.add(x);const b=r.map(i=>i.date.getTime()/1e3),L=r.map(i=>i.marketCap),m=new e.scichartExports.FastMountainRenderableSeries(c,{dataSeries:new e.scichartExports.XyDataSeries(c,{xValues:b,yValues:L,dataSeriesName:"Market Cap"}),stroke:l.line,strokeThickness:2,fillLinearGradient:new e.scichartExports.GradientParams(new e.scichartExports.Point(0,0),new e.scichartExports.Point(0,1),[{color:l.fillTop,offset:0},{color:l.fillBottom,offset:1}])});m.rolloverModifierProps.tooltipTemplate=k.createRolloverTooltip(k.tooltipFormatters.marketCap),t.renderableSeries.add(m),t.chartModifiers.add(new e.scichartExports.ZoomPanModifier,new e.scichartExports.MouseWheelZoomModifier,new e.scichartExports.ZoomExtentsModifier,new e.scichartExports.RolloverModifier({showTooltip:!0,showRolloverLine:!0,rolloverLineStroke:`${o.crosshairColor}99`,rolloverLineStrokeThickness:1})),t.zoomExtents(),s==null||s(t)}catch(t){console.error("Failed to initialize MarketCapChart:",t)}})(),()=>{h=!0,n.current&&(n.current.delete(),n.current=null)}},[r,u,p,o,l,s]),g.jsx("div",{ref:d,id:u,className:F,style:E})});exports.MarketCapChart=B;
2
2
  //# sourceMappingURL=petal-toolkit.cjs35.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),y=require("react"),b=require("./petal-toolkit.cjs59.js"),D=require("./petal-toolkit.cjs1321.js"),p=require("./petal-toolkit.cjs55.js"),A=require("./petal-toolkit.cjs1322.js"),f=require("./petal-toolkit.cjs58.js");function M(v){switch(v){case"light":return{positiveColor:"#16a34a",negativeColor:"#dc2626",subtotalColor:"#3b82f6",totalColor:"#8b5cf6"};case"navy":return{positiveColor:"#10b981",negativeColor:"#f43f5e",subtotalColor:"#60a5fa",totalColor:"#a78bfa"};case"dark":default:return{positiveColor:"#00FFB3",negativeColor:"#FF4757",subtotalColor:"#3B82F6",totalColor:"#A78BFA"}}}const j=y.memo(function({data:i,width:q="100%",height:T=400,className:k,themePreset:x="dark",theme:w,showLegend:m=!0,onChartReady:s}){const{containerId:C,containerRef:F,surfaceRef:c,sciChartTheme:S,baseColors:a,containerStyle:E}=D.useFinancialChartSetup({chartName:"ocf-waterfall",width:q,height:T,themePreset:x,customTheme:w}),l=M(x);return y.useEffect(()=>{if(!F.current||i.length===0)return;let g=!1;return(async()=>{try{const d=i.map(t=>t.label),{sciChartSurface:e,wasmContext:n}=await b.scichartExports.SciChartSurface.create(C,{theme:S});if(g){e.delete();return}c.current=e,e.xAxes.add(p.createCategoryXAxis(n,{labelColor:a.axisLabelColor,labels:d})),e.yAxes.add(p.createNumericYAxis(n,{labelColor:a.axisLabelColor,gridColor:a.gridColor,labelFormatter:p.labelFormatters.currency}));const r={positive:[],negative:[],subtotal:[],total:[]};i.forEach((t,o)=>{t.isTotal?r.total.push({x:o,y:t.value}):t.isSubtotal?r.subtotal.push({x:o,y:t.value}):t.value>=0?r.positive.push({x:o,y:t.value}):r.negative.push({x:o,y:t.value})});const u=(t,o,O)=>{t.length!==0&&e.renderableSeries.add(new b.scichartExports.FastColumnRenderableSeries(n,{dataSeries:new b.scichartExports.XyDataSeries(n,{xValues:t.map(h=>h.x),yValues:t.map(h=>h.y),dataSeriesName:O}),fill:o+"CC",stroke:o,strokeThickness:0,dataPointWidth:.6}))};u(r.positive,l.positiveColor,"Additions"),u(r.negative,l.negativeColor,"Deductions"),u(r.subtotal,l.subtotalColor,"Subtotal"),u(r.total,l.totalColor,"Total"),A.addStandardModifiers(e,{crosshairColor:a.crosshairColor,valueFormatters:{Additions:f.tooltipFormatters.currency,Deductions:f.tooltipFormatters.currency,Subtotal:f.tooltipFormatters.currency,Total:f.tooltipFormatters.currency}}),m&&A.addLegendModifier(e),s==null||s(e)}catch(d){console.error("Failed to initialize OcfWaterfallChart:",d)}})(),()=>{g=!0,c.current&&(c.current.delete(),c.current=null)}},[i,C,S,a,l,m,s]),W.jsx("div",{ref:F,id:C,className:k,style:E})});exports.OcfWaterfallChart=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),y=require("react"),b=require("./petal-toolkit.cjs59.js"),D=require("./petal-toolkit.cjs1329.js"),p=require("./petal-toolkit.cjs55.js"),A=require("./petal-toolkit.cjs1331.js"),f=require("./petal-toolkit.cjs58.js");function M(v){switch(v){case"light":return{positiveColor:"#16a34a",negativeColor:"#dc2626",subtotalColor:"#3b82f6",totalColor:"#8b5cf6"};case"navy":return{positiveColor:"#10b981",negativeColor:"#f43f5e",subtotalColor:"#60a5fa",totalColor:"#a78bfa"};case"dark":default:return{positiveColor:"#00FFB3",negativeColor:"#FF4757",subtotalColor:"#3B82F6",totalColor:"#A78BFA"}}}const j=y.memo(function({data:i,width:q="100%",height:T=400,className:k,themePreset:x="dark",theme:w,showLegend:m=!0,onChartReady:s}){const{containerId:C,containerRef:F,surfaceRef:c,sciChartTheme:S,baseColors:a,containerStyle:E}=D.useFinancialChartSetup({chartName:"ocf-waterfall",width:q,height:T,themePreset:x,customTheme:w}),l=M(x);return y.useEffect(()=>{if(!F.current||i.length===0)return;let g=!1;return(async()=>{try{const d=i.map(t=>t.label),{sciChartSurface:e,wasmContext:n}=await b.scichartExports.SciChartSurface.create(C,{theme:S});if(g){e.delete();return}c.current=e,e.xAxes.add(p.createCategoryXAxis(n,{labelColor:a.axisLabelColor,labels:d})),e.yAxes.add(p.createNumericYAxis(n,{labelColor:a.axisLabelColor,gridColor:a.gridColor,labelFormatter:p.labelFormatters.currency}));const r={positive:[],negative:[],subtotal:[],total:[]};i.forEach((t,o)=>{t.isTotal?r.total.push({x:o,y:t.value}):t.isSubtotal?r.subtotal.push({x:o,y:t.value}):t.value>=0?r.positive.push({x:o,y:t.value}):r.negative.push({x:o,y:t.value})});const u=(t,o,O)=>{t.length!==0&&e.renderableSeries.add(new b.scichartExports.FastColumnRenderableSeries(n,{dataSeries:new b.scichartExports.XyDataSeries(n,{xValues:t.map(h=>h.x),yValues:t.map(h=>h.y),dataSeriesName:O}),fill:o+"CC",stroke:o,strokeThickness:0,dataPointWidth:.6}))};u(r.positive,l.positiveColor,"Additions"),u(r.negative,l.negativeColor,"Deductions"),u(r.subtotal,l.subtotalColor,"Subtotal"),u(r.total,l.totalColor,"Total"),A.addStandardModifiers(e,{crosshairColor:a.crosshairColor,valueFormatters:{Additions:f.tooltipFormatters.currency,Deductions:f.tooltipFormatters.currency,Subtotal:f.tooltipFormatters.currency,Total:f.tooltipFormatters.currency}}),m&&A.addLegendModifier(e),s==null||s(e)}catch(d){console.error("Failed to initialize OcfWaterfallChart:",d)}})(),()=>{g=!0,c.current&&(c.current.delete(),c.current=null)}},[i,C,S,a,l,m,s]),W.jsx("div",{ref:F,id:C,className:k,style:E})});exports.OcfWaterfallChart=j;
2
2
  //# sourceMappingURL=petal-toolkit.cjs36.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),b=require("react"),i=require("./petal-toolkit.cjs59.js"),j=require("./petal-toolkit.cjs1321.js"),l=require("./petal-toolkit.cjs55.js"),y=require("./petal-toolkit.cjs1322.js"),d=require("./petal-toolkit.cjs58.js");function B(g){switch(g){case"light":return{revenueGrowthColor:"#3b82f6",operatingIncomeColor:"#16a34a",leverageColor:"#8b5cf6"};case"navy":return{revenueGrowthColor:"#60a5fa",operatingIncomeColor:"#10b981",leverageColor:"#a78bfa"};case"dark":default:return{revenueGrowthColor:"#3B82F6",operatingIncomeColor:"#00FFB3",leverageColor:"#A78BFA"}}}const R=b.memo(function({data:o,width:A="100%",height:F=400,className:k,themePreset:m="dark",theme:G,showLegend:C=!0,showLeverageRatio:x=!0,onChartReady:c}){const{containerId:p,containerRef:v,surfaceRef:u,sciChartTheme:f,baseColors:s,containerStyle:I}=j.useFinancialChartSetup({chartName:"operating-leverage",width:A,height:F,themePreset:m,customTheme:G}),t=B(m);return b.useEffect(()=>{if(!v.current||o.length===0)return;let S=!1;return(async()=>{try{const h=o.map(a=>a.period),{sciChartSurface:e,wasmContext:r}=await i.scichartExports.SciChartSurface.create(p,{theme:f});if(S){e.delete();return}u.current=e;const L=l.createCategoryXAxis(r,{labelColor:s.axisLabelColor,labels:h});e.xAxes.add(L);const E=l.createNumericYAxis(r,{id:"yAxisGrowth",labelColor:s.axisLabelColor,gridColor:s.gridColor,labelFormatter:l.labelFormatters.percent});if(e.yAxes.add(E),x){const a=l.createNumericYAxis(r,{id:"yAxisLeverage",labelColor:t.leverageColor,drawMajorGridLines:!1,growBy:[0,.15],labelFormatter:l.labelFormatters.multiplier,isRightAxis:!0});e.yAxes.add(a);const n=new i.scichartExports.XyDataSeries(r,{xValues:o.map((w,V)=>V),yValues:o.map(w=>w.operatingLeverage),dataSeriesName:"Operating Leverage"}),N=new i.scichartExports.FastColumnRenderableSeries(r,{dataSeries:n,yAxisId:"yAxisLeverage",fill:t.leverageColor+"66",stroke:t.leverageColor,strokeThickness:0,dataPointWidth:.4});e.renderableSeries.add(N)}const M=new i.scichartExports.XyDataSeries(r,{xValues:o.map((a,n)=>n),yValues:o.map(a=>a.revenueGrowth),dataSeriesName:"Revenue Growth"}),O=new i.scichartExports.FastLineRenderableSeries(r,{dataSeries:M,yAxisId:"yAxisGrowth",stroke:t.revenueGrowthColor,strokeThickness:2,pointMarker:new i.scichartExports.EllipsePointMarker(r,{width:8,height:8,fill:t.revenueGrowthColor,stroke:t.revenueGrowthColor})});e.renderableSeries.add(O);const q=new i.scichartExports.XyDataSeries(r,{xValues:o.map((a,n)=>n),yValues:o.map(a=>a.operatingIncomeGrowth),dataSeriesName:"Operating Income Growth"}),D=new i.scichartExports.FastLineRenderableSeries(r,{dataSeries:q,yAxisId:"yAxisGrowth",stroke:t.operatingIncomeColor,strokeThickness:2,pointMarker:new i.scichartExports.EllipsePointMarker(r,{width:8,height:8,fill:t.operatingIncomeColor,stroke:t.operatingIncomeColor})});e.renderableSeries.add(D),y.addStandardModifiers(e,{crosshairColor:s.crosshairColor,valueFormatters:{"Revenue Growth":d.tooltipFormatters.percent,"Operating Income Growth":d.tooltipFormatters.percent,"Operating Leverage":d.tooltipFormatters.multiplier}}),C&&y.addLegendModifier(e),c==null||c(e)}catch(h){console.error("Failed to initialize OperatingLeverageChart:",h)}})(),()=>{S=!0,u.current&&(u.current.delete(),u.current=null)}},[o,p,f,s,t,C,x,c]),T.jsx("div",{ref:v,id:p,className:k,style:I})});exports.OperatingLeverageChart=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),b=require("react"),i=require("./petal-toolkit.cjs59.js"),j=require("./petal-toolkit.cjs1329.js"),l=require("./petal-toolkit.cjs55.js"),y=require("./petal-toolkit.cjs1331.js"),d=require("./petal-toolkit.cjs58.js");function B(g){switch(g){case"light":return{revenueGrowthColor:"#3b82f6",operatingIncomeColor:"#16a34a",leverageColor:"#8b5cf6"};case"navy":return{revenueGrowthColor:"#60a5fa",operatingIncomeColor:"#10b981",leverageColor:"#a78bfa"};case"dark":default:return{revenueGrowthColor:"#3B82F6",operatingIncomeColor:"#00FFB3",leverageColor:"#A78BFA"}}}const R=b.memo(function({data:o,width:A="100%",height:F=400,className:k,themePreset:m="dark",theme:G,showLegend:C=!0,showLeverageRatio:x=!0,onChartReady:c}){const{containerId:p,containerRef:v,surfaceRef:u,sciChartTheme:f,baseColors:s,containerStyle:I}=j.useFinancialChartSetup({chartName:"operating-leverage",width:A,height:F,themePreset:m,customTheme:G}),t=B(m);return b.useEffect(()=>{if(!v.current||o.length===0)return;let S=!1;return(async()=>{try{const h=o.map(a=>a.period),{sciChartSurface:e,wasmContext:r}=await i.scichartExports.SciChartSurface.create(p,{theme:f});if(S){e.delete();return}u.current=e;const L=l.createCategoryXAxis(r,{labelColor:s.axisLabelColor,labels:h});e.xAxes.add(L);const E=l.createNumericYAxis(r,{id:"yAxisGrowth",labelColor:s.axisLabelColor,gridColor:s.gridColor,labelFormatter:l.labelFormatters.percent});if(e.yAxes.add(E),x){const a=l.createNumericYAxis(r,{id:"yAxisLeverage",labelColor:t.leverageColor,drawMajorGridLines:!1,growBy:[0,.15],labelFormatter:l.labelFormatters.multiplier,isRightAxis:!0});e.yAxes.add(a);const n=new i.scichartExports.XyDataSeries(r,{xValues:o.map((w,V)=>V),yValues:o.map(w=>w.operatingLeverage),dataSeriesName:"Operating Leverage"}),N=new i.scichartExports.FastColumnRenderableSeries(r,{dataSeries:n,yAxisId:"yAxisLeverage",fill:t.leverageColor+"66",stroke:t.leverageColor,strokeThickness:0,dataPointWidth:.4});e.renderableSeries.add(N)}const M=new i.scichartExports.XyDataSeries(r,{xValues:o.map((a,n)=>n),yValues:o.map(a=>a.revenueGrowth),dataSeriesName:"Revenue Growth"}),O=new i.scichartExports.FastLineRenderableSeries(r,{dataSeries:M,yAxisId:"yAxisGrowth",stroke:t.revenueGrowthColor,strokeThickness:2,pointMarker:new i.scichartExports.EllipsePointMarker(r,{width:8,height:8,fill:t.revenueGrowthColor,stroke:t.revenueGrowthColor})});e.renderableSeries.add(O);const q=new i.scichartExports.XyDataSeries(r,{xValues:o.map((a,n)=>n),yValues:o.map(a=>a.operatingIncomeGrowth),dataSeriesName:"Operating Income Growth"}),D=new i.scichartExports.FastLineRenderableSeries(r,{dataSeries:q,yAxisId:"yAxisGrowth",stroke:t.operatingIncomeColor,strokeThickness:2,pointMarker:new i.scichartExports.EllipsePointMarker(r,{width:8,height:8,fill:t.operatingIncomeColor,stroke:t.operatingIncomeColor})});e.renderableSeries.add(D),y.addStandardModifiers(e,{crosshairColor:s.crosshairColor,valueFormatters:{"Revenue Growth":d.tooltipFormatters.percent,"Operating Income Growth":d.tooltipFormatters.percent,"Operating Leverage":d.tooltipFormatters.multiplier}}),C&&y.addLegendModifier(e),c==null||c(e)}catch(h){console.error("Failed to initialize OperatingLeverageChart:",h)}})(),()=>{S=!0,u.current&&(u.current.delete(),u.current=null)}},[o,p,f,s,t,C,x,c]),T.jsx("div",{ref:v,id:p,className:k,style:I})});exports.OperatingLeverageChart=R;
2
2
  //# sourceMappingURL=petal-toolkit.cjs37.js.map
@@ -1,4 +1,4 @@
1
- "use strict";var X=Object.defineProperty;var J=(i,t,e)=>t in i?X(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var h=(i,t,e)=>J(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react/jsx-runtime"),m=require("react"),r=require("./petal-toolkit.cjs59.js"),Q=require("./petal-toolkit.cjs60.js"),f=require("./petal-toolkit.cjs1332.js");function Y(i){switch(i){case"light":return{positiveColor:"#16a34a",negativeColor:"#dc2626",positiveCappedColor:"#14532d",negativeCappedColor:"#7f1d1d",gridColor:"rgba(0, 0, 0, 0.08)",labelColor:"#374151",axisLabelColor:"#6b7280",zeroLineColor:"#9ca3af",bandColor:"rgba(0, 0, 0, 0.025)"};case"navy":return{positiveColor:"#10b981",negativeColor:"#f43f5e",positiveCappedColor:"#065f46",negativeCappedColor:"#9f1239",gridColor:"rgba(255, 255, 255, 0.08)",labelColor:"#94a3b8",axisLabelColor:"#64748b",zeroLineColor:"#64748b",bandColor:"rgba(255, 255, 255, 0.02)"};case"dark":default:return{positiveColor:"#10B981",negativeColor:"#EF4444",positiveCappedColor:"#065F46",negativeCappedColor:"#991B1B",gridColor:"rgba(255, 255, 255, 0.06)",labelColor:"#9CA3AF",axisLabelColor:"#6B7280",zeroLineColor:"#9CA3AF",bandColor:"rgba(255, 255, 255, 0.02)"}}}const ee=(i,t=90,e=100)=>{if(i.length===0)return{upperCap:e,lowerCap:-e};const o=[...i].sort((b,A)=>b-A),l=o.length,s=Math.floor(l*(1-t/100)),p=Math.floor(l*(t/100)),v=o[s]??-e,y=o[p]??e;return{upperCap:f.roundToNice(Math.max(y,e)),lowerCap:f.roundToNice(Math.min(v,-e))}},te=(i,t)=>i.map(e=>{const o=e.pl>t.upperCap,l=e.pl<t.lowerCap,s=(e.marketValue??0)-e.pl,p=e.plPercent??(s>0?e.pl/s*100:0);return{...e,plPercent:p,displayValue:o?t.upperCap:l?t.lowerCap:e.pl,isCapped:o||l,capDirection:o?"upper":l?"lower":null}});class re{constructor(t,e){h(this,"fillPaletteMode",r.scichartExports.EFillPaletteMode.SOLID);h(this,"strokePaletteMode",r.scichartExports.EStrokePaletteMode.SOLID);h(this,"positiveColor");h(this,"negativeColor");h(this,"positiveCappedColor");h(this,"negativeCappedColor");h(this,"data");this.data=t,this.positiveColor=r.scichartExports.parseColorToUIntArgb(e.positiveColor),this.negativeColor=r.scichartExports.parseColorToUIntArgb(e.negativeColor),this.positiveCappedColor=r.scichartExports.parseColorToUIntArgb(e.positiveCappedColor),this.negativeCappedColor=r.scichartExports.parseColorToUIntArgb(e.negativeCappedColor)}onAttached(t){}onDetached(){}overrideFillArgb(t,e,o,l,s){const p=this.data[o];return p?p.isCapped?p.capDirection==="upper"?this.positiveCappedColor:this.negativeCappedColor:p.pl>=0?this.positiveColor:this.negativeColor:this.positiveColor}overrideStrokeArgb(t,e,o,l,s){return this.overrideFillArgb(t,e,o,l,s)}}const oe=(i,t,e)=>t.map((o,l)=>{if(!o.isCapped)return null;const s=o.capDirection==="upper";return new r.scichartExports.TextAnnotation({x1:l,y1:o.displayValue,xCoordinateMode:r.scichartExports.ECoordinateMode.DataValue,yCoordinateMode:r.scichartExports.ECoordinateMode.DataValue,horizontalAnchorPoint:r.scichartExports.EHorizontalAnchorPoint.Center,verticalAnchorPoint:s?r.scichartExports.EVerticalAnchorPoint.Bottom:r.scichartExports.EVerticalAnchorPoint.Top,yCoordShift:s?-4:4,text:f.formatCurrency(o.pl),fontFamily:"Inter, system-ui, sans-serif",fontSize:9,fontWeight:"600",textColor:s?e.positiveColor:e.negativeColor})}).filter(o=>o!==null),ae=m.memo(function({data:t,width:e="100%",height:o=400,className:l,themePreset:s="dark",theme:p,sortMode:v="pl",maxPositions:y=50,showOutlierLabels:b=!0,capPercentile:A=90,onChartReady:E}){const j=m.useId(),S=m.useRef(null),w=m.useRef(null),P=p??Q.getThemeFromPreset(s),n=Y(s),L=`performance-bar-${j}`;m.useEffect(()=>{if(!S.current||t.length===0)return;let k=!1;return(async()=>{try{let d=[...t];switch(v){case"value":d.sort((a,c)=>(c.marketValue??0)-(a.marketValue??0));break;case"alpha":d.sort((a,c)=>a.symbol.localeCompare(c.symbol));break;case"pl":default:d.sort((a,c)=>c.pl-a.pl);break}d=d.slice(0,y);const U=d.map(a=>a.pl),{upperCap:T,lowerCap:z}=ee(U,A,50),x=te(d,{upperCap:T,lowerCap:z,showOutlierLabels:b}),N=x.map(a=>a.symbol),F=Math.max(Math.abs(T),Math.abs(z))*1.15,{sciChartSurface:C,wasmContext:g}=await r.scichartExports.SciChartSurface.create(L,{theme:P});if(k){C.delete();return}w.current=C;const V=new r.scichartExports.CategoryAxis(g,{axisAlignment:r.scichartExports.EAxisAlignment.Bottom,autoRange:r.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,drawMajorBands:!0,axisBandsFill:n.bandColor,maxAutoTicks:x.length,rotation:-45,labelStyle:{color:n.labelColor,fontSize:9}});V.labelProvider.formatLabel=a=>{const c=Math.round(a);return N[c]||""},C.xAxes.add(V);const B=new r.scichartExports.NumericAxis(g,{axisAlignment:r.scichartExports.EAxisAlignment.Left,autoRange:r.scichartExports.EAutoRange.Never,visibleRange:new r.scichartExports.NumberRange(-F,F),drawMajorGridLines:!0,drawMinorGridLines:!1,drawMajorBands:!0,axisBandsFill:n.bandColor,majorGridLineStyle:{color:n.gridColor,strokeThickness:1,strokeDashArray:[4,4]},labelStyle:{color:n.axisLabelColor,fontSize:11}});B.labelProvider.formatLabel=f.formatCurrency,C.yAxes.add(B),C.annotations.add(new r.scichartExports.HorizontalLineAnnotation({y1:0,stroke:n.zeroLineColor,strokeThickness:2,annotationLayer:r.scichartExports.EAnnotationLayer.BelowChart,showLabel:!1}));const q=()=>(a,c,H)=>{const Z=Math.round(c.xValue||0),u=x[Z];if(!u)return"";const I=u.pl>=0?n.positiveColor:n.negativeColor,$=200,R=u.isCapped?106:90;H.updateSize($,R);let M=`<svg width="${$}" height="${R}">
1
+ "use strict";var X=Object.defineProperty;var J=(i,t,e)=>t in i?X(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var h=(i,t,e)=>J(i,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react/jsx-runtime"),m=require("react"),r=require("./petal-toolkit.cjs59.js"),Q=require("./petal-toolkit.cjs60.js"),f=require("./petal-toolkit.cjs1334.js");function Y(i){switch(i){case"light":return{positiveColor:"#16a34a",negativeColor:"#dc2626",positiveCappedColor:"#14532d",negativeCappedColor:"#7f1d1d",gridColor:"rgba(0, 0, 0, 0.08)",labelColor:"#374151",axisLabelColor:"#6b7280",zeroLineColor:"#9ca3af",bandColor:"rgba(0, 0, 0, 0.025)"};case"navy":return{positiveColor:"#10b981",negativeColor:"#f43f5e",positiveCappedColor:"#065f46",negativeCappedColor:"#9f1239",gridColor:"rgba(255, 255, 255, 0.08)",labelColor:"#94a3b8",axisLabelColor:"#64748b",zeroLineColor:"#64748b",bandColor:"rgba(255, 255, 255, 0.02)"};case"dark":default:return{positiveColor:"#10B981",negativeColor:"#EF4444",positiveCappedColor:"#065F46",negativeCappedColor:"#991B1B",gridColor:"rgba(255, 255, 255, 0.06)",labelColor:"#9CA3AF",axisLabelColor:"#6B7280",zeroLineColor:"#9CA3AF",bandColor:"rgba(255, 255, 255, 0.02)"}}}const ee=(i,t=90,e=100)=>{if(i.length===0)return{upperCap:e,lowerCap:-e};const o=[...i].sort((b,A)=>b-A),l=o.length,s=Math.floor(l*(1-t/100)),p=Math.floor(l*(t/100)),v=o[s]??-e,y=o[p]??e;return{upperCap:f.roundToNice(Math.max(y,e)),lowerCap:f.roundToNice(Math.min(v,-e))}},te=(i,t)=>i.map(e=>{const o=e.pl>t.upperCap,l=e.pl<t.lowerCap,s=(e.marketValue??0)-e.pl,p=e.plPercent??(s>0?e.pl/s*100:0);return{...e,plPercent:p,displayValue:o?t.upperCap:l?t.lowerCap:e.pl,isCapped:o||l,capDirection:o?"upper":l?"lower":null}});class re{constructor(t,e){h(this,"fillPaletteMode",r.scichartExports.EFillPaletteMode.SOLID);h(this,"strokePaletteMode",r.scichartExports.EStrokePaletteMode.SOLID);h(this,"positiveColor");h(this,"negativeColor");h(this,"positiveCappedColor");h(this,"negativeCappedColor");h(this,"data");this.data=t,this.positiveColor=r.scichartExports.parseColorToUIntArgb(e.positiveColor),this.negativeColor=r.scichartExports.parseColorToUIntArgb(e.negativeColor),this.positiveCappedColor=r.scichartExports.parseColorToUIntArgb(e.positiveCappedColor),this.negativeCappedColor=r.scichartExports.parseColorToUIntArgb(e.negativeCappedColor)}onAttached(t){}onDetached(){}overrideFillArgb(t,e,o,l,s){const p=this.data[o];return p?p.isCapped?p.capDirection==="upper"?this.positiveCappedColor:this.negativeCappedColor:p.pl>=0?this.positiveColor:this.negativeColor:this.positiveColor}overrideStrokeArgb(t,e,o,l,s){return this.overrideFillArgb(t,e,o,l,s)}}const oe=(i,t,e)=>t.map((o,l)=>{if(!o.isCapped)return null;const s=o.capDirection==="upper";return new r.scichartExports.TextAnnotation({x1:l,y1:o.displayValue,xCoordinateMode:r.scichartExports.ECoordinateMode.DataValue,yCoordinateMode:r.scichartExports.ECoordinateMode.DataValue,horizontalAnchorPoint:r.scichartExports.EHorizontalAnchorPoint.Center,verticalAnchorPoint:s?r.scichartExports.EVerticalAnchorPoint.Bottom:r.scichartExports.EVerticalAnchorPoint.Top,yCoordShift:s?-4:4,text:f.formatCurrency(o.pl),fontFamily:"Inter, system-ui, sans-serif",fontSize:9,fontWeight:"600",textColor:s?e.positiveColor:e.negativeColor})}).filter(o=>o!==null),ae=m.memo(function({data:t,width:e="100%",height:o=400,className:l,themePreset:s="dark",theme:p,sortMode:v="pl",maxPositions:y=50,showOutlierLabels:b=!0,capPercentile:A=90,onChartReady:E}){const j=m.useId(),S=m.useRef(null),w=m.useRef(null),P=p??Q.getThemeFromPreset(s),n=Y(s),L=`performance-bar-${j}`;m.useEffect(()=>{if(!S.current||t.length===0)return;let k=!1;return(async()=>{try{let d=[...t];switch(v){case"value":d.sort((a,c)=>(c.marketValue??0)-(a.marketValue??0));break;case"alpha":d.sort((a,c)=>a.symbol.localeCompare(c.symbol));break;case"pl":default:d.sort((a,c)=>c.pl-a.pl);break}d=d.slice(0,y);const U=d.map(a=>a.pl),{upperCap:T,lowerCap:z}=ee(U,A,50),x=te(d,{upperCap:T,lowerCap:z,showOutlierLabels:b}),N=x.map(a=>a.symbol),F=Math.max(Math.abs(T),Math.abs(z))*1.15,{sciChartSurface:C,wasmContext:g}=await r.scichartExports.SciChartSurface.create(L,{theme:P});if(k){C.delete();return}w.current=C;const V=new r.scichartExports.CategoryAxis(g,{axisAlignment:r.scichartExports.EAxisAlignment.Bottom,autoRange:r.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,drawMajorBands:!0,axisBandsFill:n.bandColor,maxAutoTicks:x.length,rotation:-45,labelStyle:{color:n.labelColor,fontSize:9}});V.labelProvider.formatLabel=a=>{const c=Math.round(a);return N[c]||""},C.xAxes.add(V);const B=new r.scichartExports.NumericAxis(g,{axisAlignment:r.scichartExports.EAxisAlignment.Left,autoRange:r.scichartExports.EAutoRange.Never,visibleRange:new r.scichartExports.NumberRange(-F,F),drawMajorGridLines:!0,drawMinorGridLines:!1,drawMajorBands:!0,axisBandsFill:n.bandColor,majorGridLineStyle:{color:n.gridColor,strokeThickness:1,strokeDashArray:[4,4]},labelStyle:{color:n.axisLabelColor,fontSize:11}});B.labelProvider.formatLabel=f.formatCurrency,C.yAxes.add(B),C.annotations.add(new r.scichartExports.HorizontalLineAnnotation({y1:0,stroke:n.zeroLineColor,strokeThickness:2,annotationLayer:r.scichartExports.EAnnotationLayer.BelowChart,showLabel:!1}));const q=()=>(a,c,H)=>{const Z=Math.round(c.xValue||0),u=x[Z];if(!u)return"";const I=u.pl>=0?n.positiveColor:n.negativeColor,$=200,R=u.isCapped?106:90;H.updateSize($,R);let M=`<svg width="${$}" height="${R}">
2
2
  <rect width="100%" height="100%" fill="rgba(0,0,0,0.85)" rx="6" />
3
3
  <text x="12" y="20" font-size="13" font-weight="600" fill="white">${u.symbol}</text>
4
4
  <text x="12" y="40" font-size="11" fill="#9CA3AF">P&L:</text>
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),w=require("react"),e=require("./petal-toolkit.cjs59.js"),v=require("./petal-toolkit.cjs1321.js"),C=require("./petal-toolkit.cjs1322.js");function D(h){switch(h){case"light":return{upgrade:"#16a34a",downgrade:"#dc2626",initiation:"#7c3aed",reiteration:"#f59e0b",maintain:"#3b82f6"};case"navy":return{upgrade:"#10b981",downgrade:"#f87171",initiation:"#a78bfa",reiteration:"#fbbf24",maintain:"#60a5fa"};case"dark":default:return{upgrade:"#00FFB3",downgrade:"#FF6B6B",initiation:"#9747FF",reiteration:"#FFB300",maintain:"#3498DB"}}}const N=w.memo(function({data:s,width:b="100%",height:E=400,className:F,themePreset:S="dark",theme:A,showLegend:m=!0,onChartReady:d}){const{containerId:u,containerRef:f,surfaceRef:l,sciChartTheme:x,baseColors:o,containerStyle:G}=v.useFinancialChartSetup({chartName:"analyst-upgrades",width:b,height:E,themePreset:S,customTheme:A}),t=D(S);return w.useEffect(()=>{if(!f.current||s.length===0)return;let k=!1;return(async()=>{try{const{sciChartSurface:i,wasmContext:r}=await e.scichartExports.SciChartSurface.create(u,{theme:x});if(k){i.delete();return}l.current=i;const g=new e.scichartExports.NumericAxis(r,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});g.labelProvider.formatLabel=a=>{var y;const p=Math.round(a);return((y=s[p])==null?void 0:y.weekLabel)||""},i.xAxes.add(g);const L=new e.scichartExports.NumericAxis(r,{autoRange:e.scichartExports.EAutoRange.Always,labelFormat:e.scichartExports.ENumericFormat.Decimal,labelPrecision:0,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});i.yAxes.add(L);const c=s.map((a,p)=>p),n=new e.scichartExports.StackedColumnCollection(r);n.dataPointWidth=.6,n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.upgrade),dataSeriesName:"Upgrades"}),fill:t.upgrade,stroke:t.upgrade,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.downgrade),dataSeriesName:"Downgrades"}),fill:t.downgrade,stroke:t.downgrade,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.initiation),dataSeriesName:"Initiations"}),fill:t.initiation,stroke:t.initiation,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.reiteration),dataSeriesName:"Reiterations"}),fill:t.reiteration,stroke:t.reiteration,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.maintain),dataSeriesName:"Maintains"}),fill:t.maintain,stroke:t.maintain,strokeThickness:0,stackedGroupId:"activity"})),i.renderableSeries.add(n),C.addStandardModifiers(i,{crosshairColor:o.crosshairColor}),m&&C.addLegendModifier(i),i.zoomExtents(),d==null||d(i)}catch(i){console.error("Failed to initialize AnalystUpgradesChart:",i)}})(),()=>{k=!0,l.current&&(l.current.delete(),l.current=null)}},[s,u,x,o,t,m,d]),M.jsx("div",{ref:f,id:u,className:F,style:G})});exports.AnalystUpgradesChart=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),w=require("react"),e=require("./petal-toolkit.cjs59.js"),v=require("./petal-toolkit.cjs1329.js"),C=require("./petal-toolkit.cjs1331.js");function D(h){switch(h){case"light":return{upgrade:"#16a34a",downgrade:"#dc2626",initiation:"#7c3aed",reiteration:"#f59e0b",maintain:"#3b82f6"};case"navy":return{upgrade:"#10b981",downgrade:"#f87171",initiation:"#a78bfa",reiteration:"#fbbf24",maintain:"#60a5fa"};case"dark":default:return{upgrade:"#00FFB3",downgrade:"#FF6B6B",initiation:"#9747FF",reiteration:"#FFB300",maintain:"#3498DB"}}}const N=w.memo(function({data:s,width:b="100%",height:E=400,className:F,themePreset:S="dark",theme:A,showLegend:m=!0,onChartReady:d}){const{containerId:u,containerRef:f,surfaceRef:l,sciChartTheme:x,baseColors:o,containerStyle:G}=v.useFinancialChartSetup({chartName:"analyst-upgrades",width:b,height:E,themePreset:S,customTheme:A}),t=D(S);return w.useEffect(()=>{if(!f.current||s.length===0)return;let k=!1;return(async()=>{try{const{sciChartSurface:i,wasmContext:r}=await e.scichartExports.SciChartSurface.create(u,{theme:x});if(k){i.delete();return}l.current=i;const g=new e.scichartExports.NumericAxis(r,{autoRange:e.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});g.labelProvider.formatLabel=a=>{var y;const p=Math.round(a);return((y=s[p])==null?void 0:y.weekLabel)||""},i.xAxes.add(g);const L=new e.scichartExports.NumericAxis(r,{autoRange:e.scichartExports.EAutoRange.Always,labelFormat:e.scichartExports.ENumericFormat.Decimal,labelPrecision:0,drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:o.gridColor,strokeThickness:.5},labelStyle:{color:o.axisLabelColor,fontSize:10}});i.yAxes.add(L);const c=s.map((a,p)=>p),n=new e.scichartExports.StackedColumnCollection(r);n.dataPointWidth=.6,n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.upgrade),dataSeriesName:"Upgrades"}),fill:t.upgrade,stroke:t.upgrade,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.downgrade),dataSeriesName:"Downgrades"}),fill:t.downgrade,stroke:t.downgrade,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.initiation),dataSeriesName:"Initiations"}),fill:t.initiation,stroke:t.initiation,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.reiteration),dataSeriesName:"Reiterations"}),fill:t.reiteration,stroke:t.reiteration,strokeThickness:0,stackedGroupId:"activity"})),n.add(new e.scichartExports.StackedColumnRenderableSeries(r,{dataSeries:new e.scichartExports.XyDataSeries(r,{xValues:c,yValues:s.map(a=>a.maintain),dataSeriesName:"Maintains"}),fill:t.maintain,stroke:t.maintain,strokeThickness:0,stackedGroupId:"activity"})),i.renderableSeries.add(n),C.addStandardModifiers(i,{crosshairColor:o.crosshairColor}),m&&C.addLegendModifier(i),i.zoomExtents(),d==null||d(i)}catch(i){console.error("Failed to initialize AnalystUpgradesChart:",i)}})(),()=>{k=!0,l.current&&(l.current.delete(),l.current=null)}},[s,u,x,o,t,m,d]),M.jsx("div",{ref:f,id:u,className:F,style:G})});exports.AnalystUpgradesChart=N;
2
2
  //# sourceMappingURL=petal-toolkit.cjs4.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("react/jsx-runtime"),j=require("react"),a=require("./petal-toolkit.cjs59.js"),se=require("./petal-toolkit.cjs1321.js"),z=require("./petal-toolkit.cjs1322.js");function re(F){switch(F){case"light":return{historicalLine:"#3b82f6",lowTarget:"#3498DB",meanTarget:"#eab308",highTarget:"#ef4444",bandCore:"#22c55e",bandMid:"#f59e0b",bandFull:"#ef4444",todayLine:"rgba(100, 100, 100, 0.6)"};case"navy":return{historicalLine:"#60a5fa",lowTarget:"#3498DB",meanTarget:"#fbbf24",highTarget:"#f87171",bandCore:"#10b981",bandMid:"#f59e0b",bandFull:"#f87171",todayLine:"rgba(150, 150, 150, 0.5)"};case"dark":default:return{historicalLine:"#60a5fa",lowTarget:"#3498DB",meanTarget:"#FFD700",highTarget:"#FF6B6B",bandCore:"#00FFB3",bandMid:"#FFB300",bandFull:"#FF6B6B",todayLine:"rgba(255, 255, 255, 0.4)"}}}const oe=j.memo(function({priceTarget:b,currentPrice:e,width:G="100%",height:Y=400,className:q,themePreset:k="dark",theme:I,showLegend:T=!0,onChartReady:p}){const{containerId:u,containerRef:C,surfaceRef:x,sciChartTheme:M,baseColors:l,containerStyle:O}=se.useFinancialChartSetup({chartName:"price-target",width:G,height:Y,themePreset:k,customTheme:I}),o=re(k);return j.useEffect(()=>{if(!C.current)return;let L=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:s}=await a.scichartExports.SciChartSurface.create(u,{theme:M});if(L){t.delete();return}x.current=t;const W=new a.scichartExports.DateTimeNumericAxis(s,{autoRange:a.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,maxAutoTicks:8,axisBandsFill:"transparent",majorGridLineStyle:{color:l.gridColor,strokeThickness:.5},labelStyle:{color:l.axisLabelColor,fontSize:10}});t.xAxes.add(W);const J=new a.scichartExports.NumericAxis(s,{autoRange:a.scichartExports.EAutoRange.Always,labelFormat:a.scichartExports.ENumericFormat.Decimal,labelPrecision:2,labelPrefix:"$",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:l.gridColor,strokeThickness:.5},labelStyle:{color:l.axisLabelColor,fontSize:10}});t.yAxes.add(J);const f=new Date,g=f.getTime()/1e3,y=4,V=12,D=[],A=[],B=e*.85,K=(e-B)/y;for(let r=-y;r<=0;r++){const i=new Date(f);i.setMonth(i.getMonth()+r);const E=i.getTime()/1e3,n=B+(r+y)*K,ee=Math.sin((r+y)*Math.PI/6)*(e*.02),ae=r===0?e:n+ee;D.push(E),A.push(ae)}const c=[g],m=[e],w=[e],R=[e],v=[e],$=[e],N=[e],H=[e],{targetMean:X,targetHigh:d,targetLow:h}=b,S=d-h,Q=h+S*.25,U=h+S*.4,Z=d-S*.4,_=d-S*.25;for(let r=1;r<=V;r++){const i=new Date(f);i.setMonth(i.getMonth()+r);const E=i.getTime()/1e3,n=r/V;c.push(E),m.push(e+(h-e)*n),w.push(e+(d-e)*n),R.push(e+(Q-e)*n),v.push(e+(U-e)*n),$.push(e+(Z-e)*n),N.push(e+(_-e)*n),H.push(e+(X-e)*n)}const P=new a.scichartExports.XyDataSeries(s,{xValues:D,yValues:A,dataSeriesName:"Historical Price"});t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:P,stroke:o.historicalLine,strokeThickness:3,opacity:1})),t.renderableSeries.add(new a.scichartExports.SplineBandRenderableSeries(s,{dataSeries:new a.scichartExports.XyyDataSeries(s,{xValues:c,yValues:m,y1Values:w}),fill:o.bandFull,fillY1:o.bandFull,strokeY1:"transparent",stroke:"transparent",opacity:.2})),t.renderableSeries.add(new a.scichartExports.SplineBandRenderableSeries(s,{dataSeries:new a.scichartExports.XyyDataSeries(s,{xValues:c,yValues:R,y1Values:N}),fill:o.bandMid,fillY1:o.bandMid,strokeY1:"transparent",stroke:"transparent",opacity:.25})),t.renderableSeries.add(new a.scichartExports.SplineBandRenderableSeries(s,{dataSeries:new a.scichartExports.XyyDataSeries(s,{xValues:c,yValues:v,y1Values:$}),fill:o.bandCore,fillY1:o.bandCore,strokeY1:"transparent",stroke:"transparent",opacity:.3})),t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:c,yValues:m,dataSeriesName:`Low: $${h.toFixed(2)}`}),stroke:o.lowTarget,strokeThickness:2,strokeDashArray:[6,4],opacity:.9})),t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:c,yValues:H,dataSeriesName:`Mean: $${X.toFixed(2)}`}),stroke:o.meanTarget,strokeThickness:2,strokeDashArray:[6,4],opacity:.9})),t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:c,yValues:w,dataSeriesName:`High: $${d.toFixed(2)}`}),stroke:o.highTarget,strokeThickness:2,strokeDashArray:[6,4],opacity:.9})),t.renderableSeries.add(new a.scichartExports.FastLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:[g,g],yValues:[h*.9,d*1.1],dataSeriesName:"Today"}),stroke:o.todayLine,strokeThickness:2,strokeDashArray:[6,4],opacity:.6})),[`Last Price: $${e.toFixed(2)}`,`Analysts: ${b.numberAnalysts}`].forEach((r,i)=>{t.annotations.add(new a.scichartExports.TextAnnotation({x1:.02,y1:.98-i*.05,xCoordinateMode:a.scichartExports.ECoordinateMode.Relative,yCoordinateMode:a.scichartExports.ECoordinateMode.Relative,horizontalAnchorPoint:a.scichartExports.EHorizontalAnchorPoint.Left,verticalAnchorPoint:a.scichartExports.EVerticalAnchorPoint.Bottom,text:r,fontSize:11,fontWeight:"500",textColor:l.axisLabelColor,opacity:1}))}),z.addStandardModifiers(t,{crosshairColor:l.crosshairColor}),T&&z.addLegendModifier(t),t.zoomExtents(),p==null||p(t)}catch(t){console.error("Failed to initialize PriceTargetChart:",t)}})(),()=>{L=!0,x.current&&(x.current.delete(),x.current=null)}},[b,e,u,M,l,o,T,p]),te.jsx("div",{ref:C,id:u,className:q,style:O})});exports.PriceTargetChart=oe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("react/jsx-runtime"),j=require("react"),a=require("./petal-toolkit.cjs59.js"),se=require("./petal-toolkit.cjs1329.js"),z=require("./petal-toolkit.cjs1331.js");function re(F){switch(F){case"light":return{historicalLine:"#3b82f6",lowTarget:"#3498DB",meanTarget:"#eab308",highTarget:"#ef4444",bandCore:"#22c55e",bandMid:"#f59e0b",bandFull:"#ef4444",todayLine:"rgba(100, 100, 100, 0.6)"};case"navy":return{historicalLine:"#60a5fa",lowTarget:"#3498DB",meanTarget:"#fbbf24",highTarget:"#f87171",bandCore:"#10b981",bandMid:"#f59e0b",bandFull:"#f87171",todayLine:"rgba(150, 150, 150, 0.5)"};case"dark":default:return{historicalLine:"#60a5fa",lowTarget:"#3498DB",meanTarget:"#FFD700",highTarget:"#FF6B6B",bandCore:"#00FFB3",bandMid:"#FFB300",bandFull:"#FF6B6B",todayLine:"rgba(255, 255, 255, 0.4)"}}}const oe=j.memo(function({priceTarget:b,currentPrice:e,width:G="100%",height:Y=400,className:q,themePreset:k="dark",theme:I,showLegend:T=!0,onChartReady:p}){const{containerId:u,containerRef:C,surfaceRef:x,sciChartTheme:M,baseColors:l,containerStyle:O}=se.useFinancialChartSetup({chartName:"price-target",width:G,height:Y,themePreset:k,customTheme:I}),o=re(k);return j.useEffect(()=>{if(!C.current)return;let L=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:s}=await a.scichartExports.SciChartSurface.create(u,{theme:M});if(L){t.delete();return}x.current=t;const W=new a.scichartExports.DateTimeNumericAxis(s,{autoRange:a.scichartExports.EAutoRange.Always,drawMajorGridLines:!0,drawMinorGridLines:!1,maxAutoTicks:8,axisBandsFill:"transparent",majorGridLineStyle:{color:l.gridColor,strokeThickness:.5},labelStyle:{color:l.axisLabelColor,fontSize:10}});t.xAxes.add(W);const J=new a.scichartExports.NumericAxis(s,{autoRange:a.scichartExports.EAutoRange.Always,labelFormat:a.scichartExports.ENumericFormat.Decimal,labelPrecision:2,labelPrefix:"$",drawMajorGridLines:!0,drawMinorGridLines:!1,axisBandsFill:"transparent",majorGridLineStyle:{color:l.gridColor,strokeThickness:.5},labelStyle:{color:l.axisLabelColor,fontSize:10}});t.yAxes.add(J);const f=new Date,g=f.getTime()/1e3,y=4,V=12,D=[],A=[],B=e*.85,K=(e-B)/y;for(let r=-y;r<=0;r++){const i=new Date(f);i.setMonth(i.getMonth()+r);const E=i.getTime()/1e3,n=B+(r+y)*K,ee=Math.sin((r+y)*Math.PI/6)*(e*.02),ae=r===0?e:n+ee;D.push(E),A.push(ae)}const c=[g],m=[e],w=[e],R=[e],v=[e],$=[e],N=[e],H=[e],{targetMean:X,targetHigh:d,targetLow:h}=b,S=d-h,Q=h+S*.25,U=h+S*.4,Z=d-S*.4,_=d-S*.25;for(let r=1;r<=V;r++){const i=new Date(f);i.setMonth(i.getMonth()+r);const E=i.getTime()/1e3,n=r/V;c.push(E),m.push(e+(h-e)*n),w.push(e+(d-e)*n),R.push(e+(Q-e)*n),v.push(e+(U-e)*n),$.push(e+(Z-e)*n),N.push(e+(_-e)*n),H.push(e+(X-e)*n)}const P=new a.scichartExports.XyDataSeries(s,{xValues:D,yValues:A,dataSeriesName:"Historical Price"});t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:P,stroke:o.historicalLine,strokeThickness:3,opacity:1})),t.renderableSeries.add(new a.scichartExports.SplineBandRenderableSeries(s,{dataSeries:new a.scichartExports.XyyDataSeries(s,{xValues:c,yValues:m,y1Values:w}),fill:o.bandFull,fillY1:o.bandFull,strokeY1:"transparent",stroke:"transparent",opacity:.2})),t.renderableSeries.add(new a.scichartExports.SplineBandRenderableSeries(s,{dataSeries:new a.scichartExports.XyyDataSeries(s,{xValues:c,yValues:R,y1Values:N}),fill:o.bandMid,fillY1:o.bandMid,strokeY1:"transparent",stroke:"transparent",opacity:.25})),t.renderableSeries.add(new a.scichartExports.SplineBandRenderableSeries(s,{dataSeries:new a.scichartExports.XyyDataSeries(s,{xValues:c,yValues:v,y1Values:$}),fill:o.bandCore,fillY1:o.bandCore,strokeY1:"transparent",stroke:"transparent",opacity:.3})),t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:c,yValues:m,dataSeriesName:`Low: $${h.toFixed(2)}`}),stroke:o.lowTarget,strokeThickness:2,strokeDashArray:[6,4],opacity:.9})),t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:c,yValues:H,dataSeriesName:`Mean: $${X.toFixed(2)}`}),stroke:o.meanTarget,strokeThickness:2,strokeDashArray:[6,4],opacity:.9})),t.renderableSeries.add(new a.scichartExports.SplineLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:c,yValues:w,dataSeriesName:`High: $${d.toFixed(2)}`}),stroke:o.highTarget,strokeThickness:2,strokeDashArray:[6,4],opacity:.9})),t.renderableSeries.add(new a.scichartExports.FastLineRenderableSeries(s,{dataSeries:new a.scichartExports.XyDataSeries(s,{xValues:[g,g],yValues:[h*.9,d*1.1],dataSeriesName:"Today"}),stroke:o.todayLine,strokeThickness:2,strokeDashArray:[6,4],opacity:.6})),[`Last Price: $${e.toFixed(2)}`,`Analysts: ${b.numberAnalysts}`].forEach((r,i)=>{t.annotations.add(new a.scichartExports.TextAnnotation({x1:.02,y1:.98-i*.05,xCoordinateMode:a.scichartExports.ECoordinateMode.Relative,yCoordinateMode:a.scichartExports.ECoordinateMode.Relative,horizontalAnchorPoint:a.scichartExports.EHorizontalAnchorPoint.Left,verticalAnchorPoint:a.scichartExports.EVerticalAnchorPoint.Bottom,text:r,fontSize:11,fontWeight:"500",textColor:l.axisLabelColor,opacity:1}))}),z.addStandardModifiers(t,{crosshairColor:l.crosshairColor}),T&&z.addLegendModifier(t),t.zoomExtents(),p==null||p(t)}catch(t){console.error("Failed to initialize PriceTargetChart:",t)}})(),()=>{L=!0,x.current&&(x.current.delete(),x.current=null)}},[b,e,u,M,l,o,T,p]),te.jsx("div",{ref:C,id:u,className:q,style:O})});exports.PriceTargetChart=oe;
2
2
  //# sourceMappingURL=petal-toolkit.cjs40.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),S=require("react"),o=require("./petal-toolkit.cjs59.js"),B=require("./petal-toolkit.cjs1321.js"),c=require("./petal-toolkit.cjs55.js"),y=require("./petal-toolkit.cjs1322.js"),F=require("./petal-toolkit.cjs58.js");function N(C){switch(C){case"light":return{barColor:"#3b82f6",lineColor:"#16a34a"};case"navy":return{barColor:"#60a5fa",lineColor:"#10b981"};case"dark":default:return{barColor:"#3B82F6",lineColor:"#00FFB3"}}}const j=S.memo(function({data:s,width:A="100%",height:g=400,className:R,themePreset:f="dark",theme:k,showLegend:h=!0,onChartReady:a}){const{containerId:u,containerRef:m,surfaceRef:n,sciChartTheme:p,baseColors:l,containerStyle:w}=B.useFinancialChartSetup({chartName:"rd-investment",width:A,height:g,themePreset:f,customTheme:k}),t=N(f);return S.useEffect(()=>{if(!m.current||s.length===0)return;let b=!1;return(async()=>{try{const d=s.map(e=>e.period),{sciChartSurface:r,wasmContext:i}=await o.scichartExports.SciChartSurface.create(u,{theme:p});if(b){r.delete();return}n.current=r;const D=c.createCategoryXAxis(i,{labelColor:l.axisLabelColor,labels:d});r.xAxes.add(D);const E=c.createNumericYAxis(i,{id:"yAxisLeft",labelColor:t.barColor,gridColor:l.gridColor,growBy:[0,.15],labelFormatter:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(0)}M`:`$${e.toFixed(0)}`});r.yAxes.add(E);const v=c.createNumericYAxis(i,{id:"yAxisRight",labelColor:t.lineColor,drawMajorGridLines:!1,growBy:[0,.15],labelFormatter:c.labelFormatters.percent,isRightAxis:!0});r.yAxes.add(v);const M=new o.scichartExports.XyDataSeries(i,{xValues:s.map((e,x)=>x),yValues:s.map(e=>e.rdExpense),dataSeriesName:"R&D Expense"}),q=new o.scichartExports.FastColumnRenderableSeries(i,{dataSeries:M,yAxisId:"yAxisLeft",fill:t.barColor+"CC",stroke:t.barColor,strokeThickness:0,dataPointWidth:.5});r.renderableSeries.add(q);const I=new o.scichartExports.XyDataSeries(i,{xValues:s.map((e,x)=>x),yValues:s.map(e=>e.rdAsPercentOfRevenue),dataSeriesName:"% of Revenue"}),L=new o.scichartExports.FastLineRenderableSeries(i,{dataSeries:I,yAxisId:"yAxisRight",stroke:t.lineColor,strokeThickness:2,pointMarker:new o.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:t.lineColor,stroke:t.lineColor})});r.renderableSeries.add(L),y.addStandardModifiers(r,{crosshairColor:l.crosshairColor,valueFormatters:{"R&D Expense":F.tooltipFormatters.currency,"% of Revenue":F.tooltipFormatters.percent}}),h&&y.addLegendModifier(r),a==null||a(r)}catch(d){console.error("Failed to initialize RDInvestmentChart:",d)}})(),()=>{b=!0,n.current&&(n.current.delete(),n.current=null)}},[s,u,p,l,t,h,a]),$.jsx("div",{ref:m,id:u,className:R,style:w})});exports.RDInvestmentChart=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),S=require("react"),o=require("./petal-toolkit.cjs59.js"),B=require("./petal-toolkit.cjs1329.js"),c=require("./petal-toolkit.cjs55.js"),y=require("./petal-toolkit.cjs1331.js"),F=require("./petal-toolkit.cjs58.js");function N(C){switch(C){case"light":return{barColor:"#3b82f6",lineColor:"#16a34a"};case"navy":return{barColor:"#60a5fa",lineColor:"#10b981"};case"dark":default:return{barColor:"#3B82F6",lineColor:"#00FFB3"}}}const j=S.memo(function({data:s,width:A="100%",height:g=400,className:R,themePreset:f="dark",theme:k,showLegend:h=!0,onChartReady:a}){const{containerId:u,containerRef:m,surfaceRef:n,sciChartTheme:p,baseColors:l,containerStyle:w}=B.useFinancialChartSetup({chartName:"rd-investment",width:A,height:g,themePreset:f,customTheme:k}),t=N(f);return S.useEffect(()=>{if(!m.current||s.length===0)return;let b=!1;return(async()=>{try{const d=s.map(e=>e.period),{sciChartSurface:r,wasmContext:i}=await o.scichartExports.SciChartSurface.create(u,{theme:p});if(b){r.delete();return}n.current=r;const D=c.createCategoryXAxis(i,{labelColor:l.axisLabelColor,labels:d});r.xAxes.add(D);const E=c.createNumericYAxis(i,{id:"yAxisLeft",labelColor:t.barColor,gridColor:l.gridColor,growBy:[0,.15],labelFormatter:e=>e>=1e9?`$${(e/1e9).toFixed(1)}B`:e>=1e6?`$${(e/1e6).toFixed(0)}M`:`$${e.toFixed(0)}`});r.yAxes.add(E);const v=c.createNumericYAxis(i,{id:"yAxisRight",labelColor:t.lineColor,drawMajorGridLines:!1,growBy:[0,.15],labelFormatter:c.labelFormatters.percent,isRightAxis:!0});r.yAxes.add(v);const M=new o.scichartExports.XyDataSeries(i,{xValues:s.map((e,x)=>x),yValues:s.map(e=>e.rdExpense),dataSeriesName:"R&D Expense"}),q=new o.scichartExports.FastColumnRenderableSeries(i,{dataSeries:M,yAxisId:"yAxisLeft",fill:t.barColor+"CC",stroke:t.barColor,strokeThickness:0,dataPointWidth:.5});r.renderableSeries.add(q);const I=new o.scichartExports.XyDataSeries(i,{xValues:s.map((e,x)=>x),yValues:s.map(e=>e.rdAsPercentOfRevenue),dataSeriesName:"% of Revenue"}),L=new o.scichartExports.FastLineRenderableSeries(i,{dataSeries:I,yAxisId:"yAxisRight",stroke:t.lineColor,strokeThickness:2,pointMarker:new o.scichartExports.EllipsePointMarker(i,{width:8,height:8,fill:t.lineColor,stroke:t.lineColor})});r.renderableSeries.add(L),y.addStandardModifiers(r,{crosshairColor:l.crosshairColor,valueFormatters:{"R&D Expense":F.tooltipFormatters.currency,"% of Revenue":F.tooltipFormatters.percent}}),h&&y.addLegendModifier(r),a==null||a(r)}catch(d){console.error("Failed to initialize RDInvestmentChart:",d)}})(),()=>{b=!0,n.current&&(n.current.delete(),n.current=null)}},[s,u,p,l,t,h,a]),$.jsx("div",{ref:m,id:u,className:R,style:w})});exports.RDInvestmentChart=j;
2
2
  //# sourceMappingURL=petal-toolkit.cjs41.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),p=require("react"),a=require("./petal-toolkit.cjs59.js"),N=require("./petal-toolkit.cjs1321.js"),E=require("./petal-toolkit.cjs55.js"),k=require("./petal-toolkit.cjs1322.js"),j=require("./petal-toolkit.cjs58.js");function D(h){switch(h){case"light":return{barColor:"#16a34a",lineColor:"#3b82f6"};case"navy":return{barColor:"#10b981",lineColor:"#60a5fa"};case"dark":default:return{barColor:"#00FFB3",lineColor:"#3B82F6"}}}const L=p.memo(function({data:i,width:y="100%",height:M=400,className:q,themePreset:f="dark",theme:w,showLegend:x=!0,showAsBars:b=!0,onChartReady:c}){const{containerId:d,containerRef:F,surfaceRef:l,sciChartTheme:S,baseColors:s,containerStyle:R}=N.useFinancialChartSetup({chartName:"retained-earnings",width:y,height:M,themePreset:f,customTheme:w}),n=D(f);return p.useEffect(()=>{if(!F.current||i.length===0)return;let m=!1;return(async()=>{try{const u=i.map(e=>e.period),{sciChartSurface:r,wasmContext:t}=await a.scichartExports.SciChartSurface.create(d,{theme:S});if(m){r.delete();return}l.current=r;const $=E.createCategoryXAxis(t,{labelColor:s.axisLabelColor,labels:u});r.xAxes.add($);const A=E.createNumericYAxis(t,{labelColor:s.axisLabelColor,gridColor:s.gridColor,labelFormatter:e=>Math.abs(e)>=1e9?`$${(e/1e9).toFixed(1)}B`:Math.abs(e)>=1e6?`$${(e/1e6).toFixed(0)}M`:`$${e.toFixed(0)}`});r.yAxes.add(A);const g=i.map((e,o)=>o);if(b){const e=new a.scichartExports.XyDataSeries(t,{xValues:g,yValues:i.map(C=>C.retainedEarnings),dataSeriesName:"Retained Earnings"}),o=new a.scichartExports.FastColumnRenderableSeries(t,{dataSeries:e,fill:n.barColor+"CC",stroke:n.barColor,strokeThickness:0,dataPointWidth:.6});r.renderableSeries.add(o)}else{const e=new a.scichartExports.XyDataSeries(t,{xValues:g,yValues:i.map(C=>C.retainedEarnings),dataSeriesName:"Retained Earnings"}),o=new a.scichartExports.FastLineRenderableSeries(t,{dataSeries:e,stroke:n.lineColor,strokeThickness:3,pointMarker:new a.scichartExports.EllipsePointMarker(t,{width:8,height:8,fill:n.lineColor,stroke:"#FFFFFF",strokeThickness:2})});r.renderableSeries.add(o)}k.addStandardModifiers(r,{crosshairColor:s.crosshairColor,valueFormatters:{"Retained Earnings":j.tooltipFormatters.currency}}),x&&k.addLegendModifier(r),c==null||c(r)}catch(u){console.error("Failed to initialize RetainedEarningsChart:",u)}})(),()=>{m=!0,l.current&&(l.current.delete(),l.current=null)}},[i,d,S,s,n,x,b,c]),T.jsx("div",{ref:F,id:d,className:q,style:R})});exports.RetainedEarningsChart=L;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),p=require("react"),a=require("./petal-toolkit.cjs59.js"),N=require("./petal-toolkit.cjs1329.js"),E=require("./petal-toolkit.cjs55.js"),k=require("./petal-toolkit.cjs1331.js"),j=require("./petal-toolkit.cjs58.js");function D(h){switch(h){case"light":return{barColor:"#16a34a",lineColor:"#3b82f6"};case"navy":return{barColor:"#10b981",lineColor:"#60a5fa"};case"dark":default:return{barColor:"#00FFB3",lineColor:"#3B82F6"}}}const L=p.memo(function({data:i,width:y="100%",height:M=400,className:q,themePreset:f="dark",theme:w,showLegend:x=!0,showAsBars:b=!0,onChartReady:c}){const{containerId:d,containerRef:F,surfaceRef:l,sciChartTheme:S,baseColors:s,containerStyle:R}=N.useFinancialChartSetup({chartName:"retained-earnings",width:y,height:M,themePreset:f,customTheme:w}),n=D(f);return p.useEffect(()=>{if(!F.current||i.length===0)return;let m=!1;return(async()=>{try{const u=i.map(e=>e.period),{sciChartSurface:r,wasmContext:t}=await a.scichartExports.SciChartSurface.create(d,{theme:S});if(m){r.delete();return}l.current=r;const $=E.createCategoryXAxis(t,{labelColor:s.axisLabelColor,labels:u});r.xAxes.add($);const A=E.createNumericYAxis(t,{labelColor:s.axisLabelColor,gridColor:s.gridColor,labelFormatter:e=>Math.abs(e)>=1e9?`$${(e/1e9).toFixed(1)}B`:Math.abs(e)>=1e6?`$${(e/1e6).toFixed(0)}M`:`$${e.toFixed(0)}`});r.yAxes.add(A);const g=i.map((e,o)=>o);if(b){const e=new a.scichartExports.XyDataSeries(t,{xValues:g,yValues:i.map(C=>C.retainedEarnings),dataSeriesName:"Retained Earnings"}),o=new a.scichartExports.FastColumnRenderableSeries(t,{dataSeries:e,fill:n.barColor+"CC",stroke:n.barColor,strokeThickness:0,dataPointWidth:.6});r.renderableSeries.add(o)}else{const e=new a.scichartExports.XyDataSeries(t,{xValues:g,yValues:i.map(C=>C.retainedEarnings),dataSeriesName:"Retained Earnings"}),o=new a.scichartExports.FastLineRenderableSeries(t,{dataSeries:e,stroke:n.lineColor,strokeThickness:3,pointMarker:new a.scichartExports.EllipsePointMarker(t,{width:8,height:8,fill:n.lineColor,stroke:"#FFFFFF",strokeThickness:2})});r.renderableSeries.add(o)}k.addStandardModifiers(r,{crosshairColor:s.crosshairColor,valueFormatters:{"Retained Earnings":j.tooltipFormatters.currency}}),x&&k.addLegendModifier(r),c==null||c(r)}catch(u){console.error("Failed to initialize RetainedEarningsChart:",u)}})(),()=>{m=!0,l.current&&(l.current.delete(),l.current=null)}},[i,d,S,s,n,x,b,c]),T.jsx("div",{ref:F,id:d,className:q,style:R})});exports.RetainedEarningsChart=L;
2
2
  //# sourceMappingURL=petal-toolkit.cjs42.js.map
@@ -1,4 +1,4 @@
1
- "use strict";var Z=Object.defineProperty;var B=(t,e,i)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var h=(t,e,i)=>B(t,typeof e!="symbol"?e+"":e,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react/jsx-runtime"),_=require("react"),o=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs54.js"),X=require("./petal-toolkit.cjs1321.js"),Y=require("./petal-toolkit.cjs55.js"),K=require("./petal-toolkit.cjs1322.js");function J(t){switch(t){case"light":return{positiveColor:"#16a34a",negativeColor:"#dc2626",labelColor:"#94a3b8"};case"navy":return{positiveColor:"#10b981",negativeColor:"#f43f5e",labelColor:"#94a3b8"};case"dark":default:return{positiveColor:"#00FFB3",negativeColor:"#FF4757",labelColor:"#94a3b8"}}}class Q{constructor(e){h(this,"fillPaletteMode",o.scichartExports.EFillPaletteMode.SOLID);h(this,"strokePaletteMode",o.scichartExports.EStrokePaletteMode.SOLID);h(this,"positiveColor");h(this,"negativeColor");this.positiveColor=o.scichartExports.parseColorToUIntArgb(e.positiveColor),this.negativeColor=o.scichartExports.parseColorToUIntArgb(e.negativeColor)}onAttached(e){}onDetached(){}overrideFillArgb(e,i,C,p,u){return i>=0?this.positiveColor:this.negativeColor}overrideStrokeArgb(e,i,C,p,u){return i>=0?this.positiveColor:this.negativeColor}}const $=t=>{const e=Math.abs(t);return e>=1e9?`$${(t/1e9).toFixed(1)}B`:e>=1e6?`$${(t/1e6).toFixed(1)}M`:e>=1e3?`$${(t/1e3).toFixed(1)}K`:`$${t.toFixed(0)}`},ee=_.memo(function({data:e,width:i="100%",height:C=400,className:p,themePreset:u="dark",theme:q,showLegend:w=!0,onChartReady:d}){const{containerId:x,containerRef:S,surfaceRef:g,sciChartTheme:y,baseColors:c,containerStyle:I}=X.useFinancialChartSetup({chartName:"revenue-waterfall",width:i,height:C,themePreset:u,customTheme:q}),a=J(u);return _.useEffect(()=>{if(!S.current||e.length===0)return;let F=!1;return(async()=>{try{const{sciChartSurface:r,wasmContext:f}=await o.scichartExports.SciChartSurface.create(x,{theme:y});if(F){r.delete();return}g.current=r;const O=e.map(l=>l.period),W=Y.createCategoryXAxis(f,{labelColor:c.axisLabelColor,labels:O,fontSize:10});r.xAxes.add(W);const D=Y.createNumericYAxis(f,{labelColor:c.axisLabelColor,gridColor:c.gridColor,labelFormatter:$});r.yAxes.add(D);const R=e.map((l,v)=>v),V=new o.scichartExports.FastColumnRenderableSeries(f,{dataSeries:new o.scichartExports.XyDataSeries(f,{xValues:R,yValues:e.map(l=>l.change),dataSeriesName:"YoY Revenue Change"}),fill:a.positiveColor,stroke:a.positiveColor,strokeThickness:1,dataPointWidth:.7,paletteProvider:new Q(a)});r.renderableSeries.add(V),r.chartModifiers.add(new o.scichartExports.ZoomPanModifier,new o.scichartExports.MouseWheelZoomModifier,new o.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300}),new o.scichartExports.CursorModifier({showTooltip:!0,showAxisLabels:!0,crosshairStroke:`${c.crosshairColor}99`,crosshairStrokeThickness:1,tooltipSvgTemplate:l=>{if(l.length===0)return'<svg width="1" height="1"></svg>';const v=Math.round(l[0].hitTestInfo.xValue),n=e[v];if(!n)return'<svg width="1" height="1"></svg>';const E=[{label:"Revenue",value:$(n.currentRevenue),color:a.labelColor},{label:"YoY Change",value:$(n.change),color:n.change>=0?a.positiveColor:a.negativeColor},{label:"Growth %",value:`${n.changePercent>=0?"+":""}${n.changePercent.toFixed(1)}%`,color:n.changePercent>=0?a.positiveColor:a.negativeColor}],M=16,s=10,T=180,b=22,k=8,z=E.length*M,G=b+k+z+s*2;let P=s+b+k+2;const H=E.map(m=>{const N=`<text x="${s}" y="${P}" font-size="11" font-family="${L.TOOLTIP_STYLE.fontFamily}">
1
+ "use strict";var Z=Object.defineProperty;var B=(t,e,i)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var h=(t,e,i)=>B(t,typeof e!="symbol"?e+"":e,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react/jsx-runtime"),_=require("react"),o=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs54.js"),X=require("./petal-toolkit.cjs1329.js"),Y=require("./petal-toolkit.cjs55.js"),K=require("./petal-toolkit.cjs1331.js");function J(t){switch(t){case"light":return{positiveColor:"#16a34a",negativeColor:"#dc2626",labelColor:"#94a3b8"};case"navy":return{positiveColor:"#10b981",negativeColor:"#f43f5e",labelColor:"#94a3b8"};case"dark":default:return{positiveColor:"#00FFB3",negativeColor:"#FF4757",labelColor:"#94a3b8"}}}class Q{constructor(e){h(this,"fillPaletteMode",o.scichartExports.EFillPaletteMode.SOLID);h(this,"strokePaletteMode",o.scichartExports.EStrokePaletteMode.SOLID);h(this,"positiveColor");h(this,"negativeColor");this.positiveColor=o.scichartExports.parseColorToUIntArgb(e.positiveColor),this.negativeColor=o.scichartExports.parseColorToUIntArgb(e.negativeColor)}onAttached(e){}onDetached(){}overrideFillArgb(e,i,C,p,u){return i>=0?this.positiveColor:this.negativeColor}overrideStrokeArgb(e,i,C,p,u){return i>=0?this.positiveColor:this.negativeColor}}const $=t=>{const e=Math.abs(t);return e>=1e9?`$${(t/1e9).toFixed(1)}B`:e>=1e6?`$${(t/1e6).toFixed(1)}M`:e>=1e3?`$${(t/1e3).toFixed(1)}K`:`$${t.toFixed(0)}`},ee=_.memo(function({data:e,width:i="100%",height:C=400,className:p,themePreset:u="dark",theme:q,showLegend:w=!0,onChartReady:d}){const{containerId:x,containerRef:S,surfaceRef:g,sciChartTheme:y,baseColors:c,containerStyle:I}=X.useFinancialChartSetup({chartName:"revenue-waterfall",width:i,height:C,themePreset:u,customTheme:q}),a=J(u);return _.useEffect(()=>{if(!S.current||e.length===0)return;let F=!1;return(async()=>{try{const{sciChartSurface:r,wasmContext:f}=await o.scichartExports.SciChartSurface.create(x,{theme:y});if(F){r.delete();return}g.current=r;const O=e.map(l=>l.period),W=Y.createCategoryXAxis(f,{labelColor:c.axisLabelColor,labels:O,fontSize:10});r.xAxes.add(W);const D=Y.createNumericYAxis(f,{labelColor:c.axisLabelColor,gridColor:c.gridColor,labelFormatter:$});r.yAxes.add(D);const R=e.map((l,v)=>v),V=new o.scichartExports.FastColumnRenderableSeries(f,{dataSeries:new o.scichartExports.XyDataSeries(f,{xValues:R,yValues:e.map(l=>l.change),dataSeriesName:"YoY Revenue Change"}),fill:a.positiveColor,stroke:a.positiveColor,strokeThickness:1,dataPointWidth:.7,paletteProvider:new Q(a)});r.renderableSeries.add(V),r.chartModifiers.add(new o.scichartExports.ZoomPanModifier,new o.scichartExports.MouseWheelZoomModifier,new o.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300}),new o.scichartExports.CursorModifier({showTooltip:!0,showAxisLabels:!0,crosshairStroke:`${c.crosshairColor}99`,crosshairStrokeThickness:1,tooltipSvgTemplate:l=>{if(l.length===0)return'<svg width="1" height="1"></svg>';const v=Math.round(l[0].hitTestInfo.xValue),n=e[v];if(!n)return'<svg width="1" height="1"></svg>';const E=[{label:"Revenue",value:$(n.currentRevenue),color:a.labelColor},{label:"YoY Change",value:$(n.change),color:n.change>=0?a.positiveColor:a.negativeColor},{label:"Growth %",value:`${n.changePercent>=0?"+":""}${n.changePercent.toFixed(1)}%`,color:n.changePercent>=0?a.positiveColor:a.negativeColor}],M=16,s=10,T=180,b=22,k=8,z=E.length*M,G=b+k+z+s*2;let P=s+b+k+2;const H=E.map(m=>{const N=`<text x="${s}" y="${P}" font-size="11" font-family="${L.TOOLTIP_STYLE.fontFamily}">
2
2
  <tspan fill="${m.color}">${m.label}:</tspan><tspan fill="rgba(255,255,255,0.95)"> ${m.value}</tspan>
3
3
  </text>`;return P+=M,N}).join(`
4
4
  `),j=s+14,A=s+b+2;return`<svg width="${T}" height="${G}">
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),S=require("react"),T=require("./petal-toolkit.cjs59.js"),V=require("./petal-toolkit.cjs1321.js"),u=require("./petal-toolkit.cjs55.js"),x=require("./petal-toolkit.cjs1333.js"),k=require("./petal-toolkit.cjs1322.js"),d=require("./petal-toolkit.cjs58.js");function j(C){switch(C){case"light":return{dividendsColor:"#16a34a",buybacksColor:"#3b82f6",totalColor:"#f97316"};case"navy":return{dividendsColor:"#10b981",buybacksColor:"#60a5fa",totalColor:"#fb923c"};case"dark":default:return{dividendsColor:"#00FFB3",buybacksColor:"#3B82F6",totalColor:"#FFA502"}}}const D=S.memo(function({data:t,width:v="100%",height:g=400,className:q,themePreset:h="dark",theme:R,showLegend:b=!0,showTotalLine:f=!0,onChartReady:s}){const{containerId:l,containerRef:m,surfaceRef:a,sciChartTheme:p,baseColors:o,containerStyle:A}=V.useFinancialChartSetup({chartName:"shareholder-returns",width:v,height:g,themePreset:h,customTheme:R}),i=j(h);return S.useEffect(()=>{if(!m.current||t.length===0)return;let y=!1;return(async()=>{try{const n=t.map(r=>r.period),F=t.map((r,M)=>M),{sciChartSurface:e,wasmContext:c}=await T.scichartExports.SciChartSurface.create(l,{theme:p});if(y){e.delete();return}a.current=e,e.xAxes.add(u.createCategoryXAxis(c,{labelColor:o.axisLabelColor,labels:n})),e.yAxes.add(u.createNumericYAxis(c,{labelColor:o.axisLabelColor,gridColor:o.gridColor,labelFormatter:u.labelFormatters.currency})),e.renderableSeries.add(x.createStackedCollection(c,{xValues:F,groupId:"returns",series:[{yValues:t.map(r=>r.dividends),name:"Dividends",color:i.dividendsColor},{yValues:t.map(r=>r.shareRepurchases),name:"Buybacks",color:i.buybacksColor}]})),f&&e.renderableSeries.add(x.createLineSeries(c,{xValues:F,yValues:t.map(r=>r.totalReturn??r.dividends+r.shareRepurchases),name:"Total Return",color:i.totalColor,strokeThickness:2,pointMarker:{size:6}})),k.addStandardModifiers(e,{crosshairColor:o.crosshairColor,valueFormatters:{Dividends:d.tooltipFormatters.currency,Buybacks:d.tooltipFormatters.currency,"Total Return":d.tooltipFormatters.currency}}),b&&k.addLegendModifier(e),s==null||s(e)}catch(n){console.error("Failed to initialize ShareholderReturnsChart:",n)}})(),()=>{y=!0,a.current&&(a.current.delete(),a.current=null)}},[t,l,p,o,i,b,f,s]),B.jsx("div",{ref:m,id:l,className:q,style:A})});exports.ShareholderReturnsChart=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),S=require("react"),T=require("./petal-toolkit.cjs59.js"),V=require("./petal-toolkit.cjs1329.js"),u=require("./petal-toolkit.cjs55.js"),x=require("./petal-toolkit.cjs1330.js"),k=require("./petal-toolkit.cjs1331.js"),d=require("./petal-toolkit.cjs58.js");function j(C){switch(C){case"light":return{dividendsColor:"#16a34a",buybacksColor:"#3b82f6",totalColor:"#f97316"};case"navy":return{dividendsColor:"#10b981",buybacksColor:"#60a5fa",totalColor:"#fb923c"};case"dark":default:return{dividendsColor:"#00FFB3",buybacksColor:"#3B82F6",totalColor:"#FFA502"}}}const D=S.memo(function({data:t,width:v="100%",height:g=400,className:q,themePreset:h="dark",theme:R,showLegend:b=!0,showTotalLine:f=!0,onChartReady:s}){const{containerId:l,containerRef:m,surfaceRef:a,sciChartTheme:p,baseColors:o,containerStyle:A}=V.useFinancialChartSetup({chartName:"shareholder-returns",width:v,height:g,themePreset:h,customTheme:R}),i=j(h);return S.useEffect(()=>{if(!m.current||t.length===0)return;let y=!1;return(async()=>{try{const n=t.map(r=>r.period),F=t.map((r,M)=>M),{sciChartSurface:e,wasmContext:c}=await T.scichartExports.SciChartSurface.create(l,{theme:p});if(y){e.delete();return}a.current=e,e.xAxes.add(u.createCategoryXAxis(c,{labelColor:o.axisLabelColor,labels:n})),e.yAxes.add(u.createNumericYAxis(c,{labelColor:o.axisLabelColor,gridColor:o.gridColor,labelFormatter:u.labelFormatters.currency})),e.renderableSeries.add(x.createStackedCollection(c,{xValues:F,groupId:"returns",series:[{yValues:t.map(r=>r.dividends),name:"Dividends",color:i.dividendsColor},{yValues:t.map(r=>r.shareRepurchases),name:"Buybacks",color:i.buybacksColor}]})),f&&e.renderableSeries.add(x.createLineSeries(c,{xValues:F,yValues:t.map(r=>r.totalReturn??r.dividends+r.shareRepurchases),name:"Total Return",color:i.totalColor,strokeThickness:2,pointMarker:{size:6}})),k.addStandardModifiers(e,{crosshairColor:o.crosshairColor,valueFormatters:{Dividends:d.tooltipFormatters.currency,Buybacks:d.tooltipFormatters.currency,"Total Return":d.tooltipFormatters.currency}}),b&&k.addLegendModifier(e),s==null||s(e)}catch(n){console.error("Failed to initialize ShareholderReturnsChart:",n)}})(),()=>{y=!0,a.current&&(a.current.delete(),a.current=null)}},[t,l,p,o,i,b,f,s]),B.jsx("div",{ref:m,id:l,className:q,style:A})});exports.ShareholderReturnsChart=D;
2
2
  //# sourceMappingURL=petal-toolkit.cjs44.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react/jsx-runtime"),g=require("react"),o=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs1321.js"),p=require("./petal-toolkit.cjs55.js"),b=require("./petal-toolkit.cjs1322.js"),N=require("./petal-toolkit.cjs58.js");function $(d){switch(d){case"light":return{sharesColor:"#3b82f6"};case"navy":return{sharesColor:"#60a5fa"};case"dark":default:return{sharesColor:"#3B82F6"}}}const D=g.memo(function({data:s,width:k="100%",height:y=400,className:O,themePreset:h="dark",theme:q,showLegend:C=!0,showAsBars:f=!1,onChartReady:n}){const{containerId:l,containerRef:x,surfaceRef:c,sciChartTheme:S,baseColors:i,containerStyle:E}=L.useFinancialChartSetup({chartName:"shares-outstanding",width:k,height:y,themePreset:h,customTheme:q}),a=$(h);return g.useEffect(()=>{if(!x.current||s.length===0)return;let F=!1;return(async()=>{try{const u=s.map(e=>e.period),{sciChartSurface:r,wasmContext:t}=await o.scichartExports.SciChartSurface.create(l,{theme:S});if(F){r.delete();return}c.current=r;const M=p.createCategoryXAxis(t,{labelColor:i.axisLabelColor,labels:u});r.xAxes.add(M);const w=p.createNumericYAxis(t,{labelColor:i.axisLabelColor,gridColor:i.gridColor,labelFormatter:e=>e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(0)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:e.toFixed(0)});r.yAxes.add(w);const A=s.map((e,T)=>T),m=new o.scichartExports.XyDataSeries(t,{xValues:A,yValues:s.map(e=>e.sharesOutstanding),dataSeriesName:"Shares Outstanding"});if(f){const e=new o.scichartExports.FastColumnRenderableSeries(t,{dataSeries:m,fill:a.sharesColor+"CC",stroke:a.sharesColor,strokeThickness:0,dataPointWidth:.6});r.renderableSeries.add(e)}else{const e=new o.scichartExports.FastLineRenderableSeries(t,{dataSeries:m,stroke:a.sharesColor,strokeThickness:3,pointMarker:new o.scichartExports.EllipsePointMarker(t,{width:8,height:8,fill:a.sharesColor,stroke:"#FFFFFF",strokeThickness:2})});r.renderableSeries.add(e)}b.addStandardModifiers(r,{crosshairColor:i.crosshairColor,valueFormatters:{"Shares Outstanding":N.tooltipFormatters.shares}}),C&&b.addLegendModifier(r),n==null||n(r)}catch(u){console.error("Failed to initialize SharesOutstandingChart:",u)}})(),()=>{F=!0,c.current&&(c.current.delete(),c.current=null)}},[s,l,S,i,a,C,f,n]),j.jsx("div",{ref:x,id:l,className:O,style:E})});exports.SharesOutstandingChart=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react/jsx-runtime"),g=require("react"),o=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs1329.js"),p=require("./petal-toolkit.cjs55.js"),b=require("./petal-toolkit.cjs1331.js"),N=require("./petal-toolkit.cjs58.js");function $(d){switch(d){case"light":return{sharesColor:"#3b82f6"};case"navy":return{sharesColor:"#60a5fa"};case"dark":default:return{sharesColor:"#3B82F6"}}}const D=g.memo(function({data:s,width:k="100%",height:y=400,className:O,themePreset:h="dark",theme:q,showLegend:C=!0,showAsBars:f=!1,onChartReady:n}){const{containerId:l,containerRef:x,surfaceRef:c,sciChartTheme:S,baseColors:i,containerStyle:E}=L.useFinancialChartSetup({chartName:"shares-outstanding",width:k,height:y,themePreset:h,customTheme:q}),a=$(h);return g.useEffect(()=>{if(!x.current||s.length===0)return;let F=!1;return(async()=>{try{const u=s.map(e=>e.period),{sciChartSurface:r,wasmContext:t}=await o.scichartExports.SciChartSurface.create(l,{theme:S});if(F){r.delete();return}c.current=r;const M=p.createCategoryXAxis(t,{labelColor:i.axisLabelColor,labels:u});r.xAxes.add(M);const w=p.createNumericYAxis(t,{labelColor:i.axisLabelColor,gridColor:i.gridColor,labelFormatter:e=>e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(0)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:e.toFixed(0)});r.yAxes.add(w);const A=s.map((e,T)=>T),m=new o.scichartExports.XyDataSeries(t,{xValues:A,yValues:s.map(e=>e.sharesOutstanding),dataSeriesName:"Shares Outstanding"});if(f){const e=new o.scichartExports.FastColumnRenderableSeries(t,{dataSeries:m,fill:a.sharesColor+"CC",stroke:a.sharesColor,strokeThickness:0,dataPointWidth:.6});r.renderableSeries.add(e)}else{const e=new o.scichartExports.FastLineRenderableSeries(t,{dataSeries:m,stroke:a.sharesColor,strokeThickness:3,pointMarker:new o.scichartExports.EllipsePointMarker(t,{width:8,height:8,fill:a.sharesColor,stroke:"#FFFFFF",strokeThickness:2})});r.renderableSeries.add(e)}b.addStandardModifiers(r,{crosshairColor:i.crosshairColor,valueFormatters:{"Shares Outstanding":N.tooltipFormatters.shares}}),C&&b.addLegendModifier(r),n==null||n(r)}catch(u){console.error("Failed to initialize SharesOutstandingChart:",u)}})(),()=>{F=!0,c.current&&(c.current.delete(),c.current=null)}},[s,l,S,i,a,C,f,n]),j.jsx("div",{ref:x,id:l,className:O,style:E})});exports.SharesOutstandingChart=D;
2
2
  //# sourceMappingURL=petal-toolkit.cjs45.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),k=require("react"),a=require("./petal-toolkit.cjs59.js"),j=require("./petal-toolkit.cjs1321.js"),h=require("./petal-toolkit.cjs55.js"),E=require("./petal-toolkit.cjs1322.js"),B=require("./petal-toolkit.cjs58.js");function N(C){switch(C){case"light":return{effectiveColor:"#3b82f6",statutoryColor:"#9ca3af"};case"navy":return{effectiveColor:"#60a5fa",statutoryColor:"#64748b"};case"dark":default:return{effectiveColor:"#3B82F6",statutoryColor:"#6B7280"}}}const V=k.memo(function({data:r,width:F="100%",height:T=400,className:R,themePreset:x="dark",theme:g,showLegend:y=!0,showStatutoryRate:p=!0,onChartReady:c}){const{containerId:u,containerRef:m,surfaceRef:n,sciChartTheme:v,baseColors:o,containerStyle:A}=j.useFinancialChartSetup({chartName:"tax-rate",width:F,height:T,themePreset:x,customTheme:g}),i=N(x),S=r.some(l=>l.statutoryRate!==void 0);return k.useEffect(()=>{if(!m.current||r.length===0)return;let l=!1;return(async()=>{var b;try{const f=r.map(t=>t.period),{sciChartSurface:e,wasmContext:s}=await a.scichartExports.SciChartSurface.create(u,{theme:v});if(l){e.delete();return}n.current=e;const w=h.createCategoryXAxis(s,{labelColor:o.axisLabelColor,labels:f});e.xAxes.add(w);const q=h.createNumericYAxis(s,{labelColor:o.axisLabelColor,gridColor:o.gridColor,labelFormatter:h.labelFormatters.percent});e.yAxes.add(q);const L=new a.scichartExports.XyDataSeries(s,{xValues:r.map((t,d)=>d),yValues:r.map(t=>t.effectiveTaxRate),dataSeriesName:"Effective Tax Rate"}),M=new a.scichartExports.FastLineRenderableSeries(s,{dataSeries:L,stroke:i.effectiveColor,strokeThickness:2,pointMarker:new a.scichartExports.EllipsePointMarker(s,{width:10,height:10,fill:i.effectiveColor,stroke:i.effectiveColor})});if(e.renderableSeries.add(M),p&&S){const t=(b=r.find(d=>d.statutoryRate!==void 0))==null?void 0:b.statutoryRate;t!==void 0&&e.annotations.add(new a.scichartExports.HorizontalLineAnnotation({y1:t,stroke:i.statutoryColor,strokeThickness:2,strokeDashArray:[5,5],annotationLayer:a.scichartExports.EAnnotationLayer.BelowChart,showLabel:!0,labelValue:`Statutory: ${t}%`}))}E.addStandardModifiers(e,{crosshairColor:o.crosshairColor,valueFormatters:{"Effective Tax Rate":B.tooltipFormatters.percent}}),y&&E.addLegendModifier(e),c==null||c(e)}catch(f){console.error("Failed to initialize TaxRateChart:",f)}})(),()=>{l=!0,n.current&&(n.current.delete(),n.current=null)}},[r,u,v,o,i,y,p,S,c]),D.jsx("div",{ref:m,id:u,className:R,style:A})});exports.TaxRateChart=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("react/jsx-runtime"),k=require("react"),a=require("./petal-toolkit.cjs59.js"),j=require("./petal-toolkit.cjs1329.js"),h=require("./petal-toolkit.cjs55.js"),E=require("./petal-toolkit.cjs1331.js"),B=require("./petal-toolkit.cjs58.js");function N(C){switch(C){case"light":return{effectiveColor:"#3b82f6",statutoryColor:"#9ca3af"};case"navy":return{effectiveColor:"#60a5fa",statutoryColor:"#64748b"};case"dark":default:return{effectiveColor:"#3B82F6",statutoryColor:"#6B7280"}}}const V=k.memo(function({data:r,width:F="100%",height:T=400,className:R,themePreset:x="dark",theme:g,showLegend:y=!0,showStatutoryRate:p=!0,onChartReady:c}){const{containerId:u,containerRef:m,surfaceRef:n,sciChartTheme:v,baseColors:o,containerStyle:A}=j.useFinancialChartSetup({chartName:"tax-rate",width:F,height:T,themePreset:x,customTheme:g}),i=N(x),S=r.some(l=>l.statutoryRate!==void 0);return k.useEffect(()=>{if(!m.current||r.length===0)return;let l=!1;return(async()=>{var b;try{const f=r.map(t=>t.period),{sciChartSurface:e,wasmContext:s}=await a.scichartExports.SciChartSurface.create(u,{theme:v});if(l){e.delete();return}n.current=e;const w=h.createCategoryXAxis(s,{labelColor:o.axisLabelColor,labels:f});e.xAxes.add(w);const q=h.createNumericYAxis(s,{labelColor:o.axisLabelColor,gridColor:o.gridColor,labelFormatter:h.labelFormatters.percent});e.yAxes.add(q);const L=new a.scichartExports.XyDataSeries(s,{xValues:r.map((t,d)=>d),yValues:r.map(t=>t.effectiveTaxRate),dataSeriesName:"Effective Tax Rate"}),M=new a.scichartExports.FastLineRenderableSeries(s,{dataSeries:L,stroke:i.effectiveColor,strokeThickness:2,pointMarker:new a.scichartExports.EllipsePointMarker(s,{width:10,height:10,fill:i.effectiveColor,stroke:i.effectiveColor})});if(e.renderableSeries.add(M),p&&S){const t=(b=r.find(d=>d.statutoryRate!==void 0))==null?void 0:b.statutoryRate;t!==void 0&&e.annotations.add(new a.scichartExports.HorizontalLineAnnotation({y1:t,stroke:i.statutoryColor,strokeThickness:2,strokeDashArray:[5,5],annotationLayer:a.scichartExports.EAnnotationLayer.BelowChart,showLabel:!0,labelValue:`Statutory: ${t}%`}))}E.addStandardModifiers(e,{crosshairColor:o.crosshairColor,valueFormatters:{"Effective Tax Rate":B.tooltipFormatters.percent}}),y&&E.addLegendModifier(e),c==null||c(e)}catch(f){console.error("Failed to initialize TaxRateChart:",f)}})(),()=>{l=!0,n.current&&(n.current.delete(),n.current=null)}},[r,u,v,o,i,y,p,S,c]),D.jsx("div",{ref:m,id:u,className:R,style:A})});exports.TaxRateChart=V;
2
2
  //# sourceMappingURL=petal-toolkit.cjs47.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),b=require("react"),r=require("./petal-toolkit.cjs59.js"),U=require("./petal-toolkit.cjs3.js"),X=require("./petal-toolkit.cjs54.js"),G=require("./petal-toolkit.cjs60.js"),j=require("./petal-toolkit.cjs1320.js");function Y(o){switch(o){case"minimal":return{drawMajorGridLines:!1,drawMinorGridLines:!1,drawLabels:!1,drawMajorTickLines:!1,drawMinorTickLines:!1};case"default":default:return{drawMajorGridLines:!0,drawMinorGridLines:!1,drawLabels:!0,drawMajorTickLines:!0,drawMinorTickLines:!1}}}function Z(o,e){var d,u,A,m,C,S,E,h,p,T,x,y,M,l,R,f,s,L,D,z,w,v;o.chartModifiers.clear();const n=c=>{switch(c){case"x":return r.scichartExports.EXyDirection.XDirection;case"y":return r.scichartExports.EXyDirection.YDirection;default:return r.scichartExports.EXyDirection.XyDirection}};((d=e.pan)==null?void 0:d.enabled)!==!1&&o.chartModifiers.add(new r.scichartExports.ZoomPanModifier({xyDirection:n((u=e.pan)==null?void 0:u.direction)})),((A=e.zoom)==null?void 0:A.enabled)!==!1&&(((m=e.zoom)==null?void 0:m.mouseWheel)!==!1&&o.chartModifiers.add(new r.scichartExports.MouseWheelZoomModifier({xyDirection:n((C=e.zoom)==null?void 0:C.direction)})),((S=e.zoom)==null?void 0:S.zoomExtents)!==!1&&o.chartModifiers.add(new r.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300,xyDirection:n((E=e.zoom)==null?void 0:E.direction)})),(h=e.zoom)!=null&&h.rubberBand&&o.chartModifiers.add(new r.scichartExports.RubberBandXyZoomModifier({isAnimated:!0,animationDuration:300,xyDirection:n((p=e.zoom)==null?void 0:p.direction)}))),e.useCursor&&((T=e.cursor)==null?void 0:T.enabled)!==!1?o.chartModifiers.add(new r.scichartExports.CursorModifier({showTooltip:((x=e.cursor)==null?void 0:x.showTooltip)??!0,showAxisLabels:((y=e.cursor)==null?void 0:y.showAxisLabels)??!0,showXLine:((l=(M=e.cursor)==null?void 0:M.cursor)==null?void 0:l.showXLine)??!0,showYLine:((f=(R=e.cursor)==null?void 0:R.cursor)==null?void 0:f.showYLine)??!0,crosshairStrokeDashArray:(L=(s=e.cursor)==null?void 0:s.cursor)==null?void 0:L.dashArray})):((D=e.rollover)==null?void 0:D.enabled)!==!1&&o.chartModifiers.add(new r.scichartExports.RolloverModifier({showTooltip:((z=e.rollover)==null?void 0:z.showTooltip)??!0,showRolloverLine:((w=e.rollover)==null?void 0:w.showRolloverLine)??!0,snapToDataPoint:((v=e.rollover)==null?void 0:v.snapToDataPoint)??!0}))}const W=b.memo(function({data:e,chartType:n="line",width:d="100%",height:u=300,className:A,themePreset:m="dark",theme:C,displayPreset:S="default",interactionPreset:E="default",modifiers:h,strokeColor:p,fillColor:T,strokeThickness:x=2,yAxisLabel:y,yAxisPrecision:M=2,onChartReady:l}){const R=b.useId(),f=b.useRef(null),s=b.useRef(null),L=C??G.getThemeFromPreset(m),D=G.getBaseThemeColors(m);b.useEffect(()=>{if(!f.current)return;let c=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:a}=await r.scichartExports.SciChartSurface.create(f.current,{theme:L});if(c){t.delete();return}const $=Y(S),g=new r.scichartExports.DateTimeNumericAxis(a,{...$,drawLabels:$.drawLabels??!0,autoRange:r.scichartExports.EAutoRange.Always,maxAutoTicks:10,axisBandsFill:"transparent",majorGridLineStyle:{color:D.gridColor,strokeThickness:.5},labelStyle:{color:D.textColor,fontSize:10}});if(g.labelProvider){const i=e.map(P=>j.toUnixTimestamp(P.x)),I=Math.min(...i),N=Math.max(...i);g.labelProvider.formatLabel=P=>j.formatAxisLabel(P,[I,N])}const V=new r.scichartExports.NumericAxis(a,{...$,autoRange:r.scichartExports.EAutoRange.Always,growBy:new r.scichartExports.NumberRange(.1,.1),labelFormat:r.scichartExports.ENumericFormat.Decimal,labelPrecision:M,axisTitle:y});t.xAxes.add(g),t.yAxes.add(V);const k=new r.scichartExports.XyDataSeries(a,{xValues:e.map(i=>j.toUnixTimestamp(i.x)),yValues:e.map(i=>i.y)});if(n==="area"){const i=new r.scichartExports.FastMountainRenderableSeries(a,{dataSeries:k,stroke:p,strokeThickness:x,fill:T,zeroLineY:0});i.rolloverModifierProps.tooltipTemplate=X.createRolloverTooltip(X.tooltipFormatters.timeSeries),t.renderableSeries.add(i)}else{const i=new r.scichartExports.FastLineRenderableSeries(a,{dataSeries:k,stroke:p,strokeThickness:x});i.rolloverModifierProps.tooltipTemplate=X.createRolloverTooltip(X.tooltipFormatters.timeSeries),t.renderableSeries.add(i)}let q=h??U.getPresetConfig(E);h||(q={...q,useCursor:!1,rollover:{enabled:!0,showTooltip:!0,showRolloverLine:!0,snapToDataPoint:!0}}),Z(t,q),s.current=t,l==null||l(t)}catch(t){console.error("Failed to initialize SciChart TimeSeriesChart:",t)}})(),()=>{c=!0,s.current&&(s.current.delete(),s.current=null)}},[L,m,S,E,h,n,p,T,x,y,M,l]),b.useEffect(()=>{if(!s.current||e.length===0)return;const c=s.current,F=c.renderableSeries.get(0);if(F){const t=new r.scichartExports.XyDataSeries(c.webAssemblyContext2D,{xValues:e.map(a=>j.toUnixTimestamp(a.x)),yValues:e.map(a=>a.y)});F.dataSeries=t}},[e]);const z={width:typeof d=="number"?`${d}px`:d,height:typeof u=="number"?`${u}px`:u,overflow:"hidden"},w=`time-series-${R}`,v=n==="area"?"area":"line";return B.jsx("div",{ref:f,id:w,className:A,style:z,role:"img","aria-label":`${v} chart displaying ${e.length} time series data points`,"aria-describedby":`${w}-desc`,children:B.jsxs("span",{id:`${w}-desc`,style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:["Interactive ",v," chart showing data trends over time with zoom and pan capabilities."]})})});exports.TimeSeriesChart=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),b=require("react"),r=require("./petal-toolkit.cjs59.js"),U=require("./petal-toolkit.cjs3.js"),X=require("./petal-toolkit.cjs54.js"),G=require("./petal-toolkit.cjs60.js"),j=require("./petal-toolkit.cjs1332.js");function Y(o){switch(o){case"minimal":return{drawMajorGridLines:!1,drawMinorGridLines:!1,drawLabels:!1,drawMajorTickLines:!1,drawMinorTickLines:!1};case"default":default:return{drawMajorGridLines:!0,drawMinorGridLines:!1,drawLabels:!0,drawMajorTickLines:!0,drawMinorTickLines:!1}}}function Z(o,e){var d,u,A,m,C,S,E,h,p,T,x,y,M,l,R,f,s,L,D,z,w,v;o.chartModifiers.clear();const n=c=>{switch(c){case"x":return r.scichartExports.EXyDirection.XDirection;case"y":return r.scichartExports.EXyDirection.YDirection;default:return r.scichartExports.EXyDirection.XyDirection}};((d=e.pan)==null?void 0:d.enabled)!==!1&&o.chartModifiers.add(new r.scichartExports.ZoomPanModifier({xyDirection:n((u=e.pan)==null?void 0:u.direction)})),((A=e.zoom)==null?void 0:A.enabled)!==!1&&(((m=e.zoom)==null?void 0:m.mouseWheel)!==!1&&o.chartModifiers.add(new r.scichartExports.MouseWheelZoomModifier({xyDirection:n((C=e.zoom)==null?void 0:C.direction)})),((S=e.zoom)==null?void 0:S.zoomExtents)!==!1&&o.chartModifiers.add(new r.scichartExports.ZoomExtentsModifier({isAnimated:!0,animationDuration:300,xyDirection:n((E=e.zoom)==null?void 0:E.direction)})),(h=e.zoom)!=null&&h.rubberBand&&o.chartModifiers.add(new r.scichartExports.RubberBandXyZoomModifier({isAnimated:!0,animationDuration:300,xyDirection:n((p=e.zoom)==null?void 0:p.direction)}))),e.useCursor&&((T=e.cursor)==null?void 0:T.enabled)!==!1?o.chartModifiers.add(new r.scichartExports.CursorModifier({showTooltip:((x=e.cursor)==null?void 0:x.showTooltip)??!0,showAxisLabels:((y=e.cursor)==null?void 0:y.showAxisLabels)??!0,showXLine:((l=(M=e.cursor)==null?void 0:M.cursor)==null?void 0:l.showXLine)??!0,showYLine:((f=(R=e.cursor)==null?void 0:R.cursor)==null?void 0:f.showYLine)??!0,crosshairStrokeDashArray:(L=(s=e.cursor)==null?void 0:s.cursor)==null?void 0:L.dashArray})):((D=e.rollover)==null?void 0:D.enabled)!==!1&&o.chartModifiers.add(new r.scichartExports.RolloverModifier({showTooltip:((z=e.rollover)==null?void 0:z.showTooltip)??!0,showRolloverLine:((w=e.rollover)==null?void 0:w.showRolloverLine)??!0,snapToDataPoint:((v=e.rollover)==null?void 0:v.snapToDataPoint)??!0}))}const W=b.memo(function({data:e,chartType:n="line",width:d="100%",height:u=300,className:A,themePreset:m="dark",theme:C,displayPreset:S="default",interactionPreset:E="default",modifiers:h,strokeColor:p,fillColor:T,strokeThickness:x=2,yAxisLabel:y,yAxisPrecision:M=2,onChartReady:l}){const R=b.useId(),f=b.useRef(null),s=b.useRef(null),L=C??G.getThemeFromPreset(m),D=G.getBaseThemeColors(m);b.useEffect(()=>{if(!f.current)return;let c=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:a}=await r.scichartExports.SciChartSurface.create(f.current,{theme:L});if(c){t.delete();return}const $=Y(S),g=new r.scichartExports.DateTimeNumericAxis(a,{...$,drawLabels:$.drawLabels??!0,autoRange:r.scichartExports.EAutoRange.Always,maxAutoTicks:10,axisBandsFill:"transparent",majorGridLineStyle:{color:D.gridColor,strokeThickness:.5},labelStyle:{color:D.textColor,fontSize:10}});if(g.labelProvider){const i=e.map(P=>j.toUnixTimestamp(P.x)),I=Math.min(...i),N=Math.max(...i);g.labelProvider.formatLabel=P=>j.formatAxisLabel(P,[I,N])}const V=new r.scichartExports.NumericAxis(a,{...$,autoRange:r.scichartExports.EAutoRange.Always,growBy:new r.scichartExports.NumberRange(.1,.1),labelFormat:r.scichartExports.ENumericFormat.Decimal,labelPrecision:M,axisTitle:y});t.xAxes.add(g),t.yAxes.add(V);const k=new r.scichartExports.XyDataSeries(a,{xValues:e.map(i=>j.toUnixTimestamp(i.x)),yValues:e.map(i=>i.y)});if(n==="area"){const i=new r.scichartExports.FastMountainRenderableSeries(a,{dataSeries:k,stroke:p,strokeThickness:x,fill:T,zeroLineY:0});i.rolloverModifierProps.tooltipTemplate=X.createRolloverTooltip(X.tooltipFormatters.timeSeries),t.renderableSeries.add(i)}else{const i=new r.scichartExports.FastLineRenderableSeries(a,{dataSeries:k,stroke:p,strokeThickness:x});i.rolloverModifierProps.tooltipTemplate=X.createRolloverTooltip(X.tooltipFormatters.timeSeries),t.renderableSeries.add(i)}let q=h??U.getPresetConfig(E);h||(q={...q,useCursor:!1,rollover:{enabled:!0,showTooltip:!0,showRolloverLine:!0,snapToDataPoint:!0}}),Z(t,q),s.current=t,l==null||l(t)}catch(t){console.error("Failed to initialize SciChart TimeSeriesChart:",t)}})(),()=>{c=!0,s.current&&(s.current.delete(),s.current=null)}},[L,m,S,E,h,n,p,T,x,y,M,l]),b.useEffect(()=>{if(!s.current||e.length===0)return;const c=s.current,F=c.renderableSeries.get(0);if(F){const t=new r.scichartExports.XyDataSeries(c.webAssemblyContext2D,{xValues:e.map(a=>j.toUnixTimestamp(a.x)),yValues:e.map(a=>a.y)});F.dataSeries=t}},[e]);const z={width:typeof d=="number"?`${d}px`:d,height:typeof u=="number"?`${u}px`:u,overflow:"hidden"},w=`time-series-${R}`,v=n==="area"?"area":"line";return B.jsx("div",{ref:f,id:w,className:A,style:z,role:"img","aria-label":`${v} chart displaying ${e.length} time series data points`,"aria-describedby":`${w}-desc`,children:B.jsxs("span",{id:`${w}-desc`,style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:["Interactive ",v," chart showing data trends over time with zoom and pan capabilities."]})})});exports.TimeSeriesChart=W;
2
2
  //# sourceMappingURL=petal-toolkit.cjs48.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),S=require("react"),C=require("./petal-toolkit.cjs59.js"),O=require("./petal-toolkit.cjs1321.js"),g=require("./petal-toolkit.cjs55.js"),v=require("./petal-toolkit.cjs1322.js"),i=require("./petal-toolkit.cjs58.js");function I(d){switch(d){case"light":return{cashColor:"#16a34a",receivablesColor:"#3b82f6",inventoryColor:"#f97316",otherCurrentColor:"#eab308",ppeColor:"#8b5cf6",otherLongTermColor:"#6b7280"};case"navy":return{cashColor:"#10b981",receivablesColor:"#60a5fa",inventoryColor:"#fb923c",otherCurrentColor:"#fbbf24",ppeColor:"#a78bfa",otherLongTermColor:"#64748b"};case"dark":default:return{cashColor:"#00FFB3",receivablesColor:"#3B82F6",inventoryColor:"#FFA502",otherCurrentColor:"#FFEAA7",ppeColor:"#A78BFA",otherLongTermColor:"#6B7280"}}}const j=S.memo(function({data:e,width:T="100%",height:k=400,className:E,themePreset:f="dark",theme:L,showLegend:b=!0,onChartReady:c}){const{containerId:u,containerRef:F,surfaceRef:l,sciChartTheme:x,baseColors:n,containerStyle:q}=O.useFinancialChartSetup({chartName:"asset-composition",width:T,height:k,themePreset:f,customTheme:L}),t=I(f);return S.useEffect(()=>{if(!F.current||e.length===0)return;let y=!1;return(async()=>{try{const h=e.map(r=>r.period),{sciChartSurface:o,wasmContext:a}=await C.scichartExports.SciChartSurface.create(u,{theme:x});if(y){o.delete();return}l.current=o;const P=g.createCategoryXAxis(a,{labelColor:n.axisLabelColor,labels:h});o.xAxes.add(P);const $=g.createNumericYAxis(a,{labelColor:n.axisLabelColor,gridColor:n.gridColor,labelFormatter:r=>r>=1e9?`$${(r/1e9).toFixed(1)}B`:r>=1e6?`$${(r/1e6).toFixed(0)}M`:`$${r.toFixed(0)}`});o.yAxes.add($);const w=e.map((r,p)=>p),m=new C.scichartExports.StackedColumnCollection(a);m.dataPointWidth=.7;const s=(r,p,A)=>{const B=new C.scichartExports.XyDataSeries(a,{xValues:w,yValues:r,dataSeriesName:p});return new C.scichartExports.StackedColumnRenderableSeries(a,{dataSeries:B,fill:A,stroke:A,strokeThickness:0,stackedGroupId:"assets"})};m.add(s(e.map(r=>r.cash),"Cash",t.cashColor),s(e.map(r=>r.receivables),"Receivables",t.receivablesColor),s(e.map(r=>r.inventory),"Inventory",t.inventoryColor),s(e.map(r=>r.otherCurrentAssets),"Other Current",t.otherCurrentColor),s(e.map(r=>r.propertyPlantEquipment),"PP&E",t.ppeColor),s(e.map(r=>r.otherLongTermAssets),"Other Long-Term",t.otherLongTermColor)),o.renderableSeries.add(m),v.addStandardModifiers(o,{crosshairColor:n.crosshairColor,valueFormatters:{Cash:i.tooltipFormatters.currency,Receivables:i.tooltipFormatters.currency,Inventory:i.tooltipFormatters.currency,"Other Current":i.tooltipFormatters.currency,"PP&E":i.tooltipFormatters.currency,"Other Long-Term":i.tooltipFormatters.currency}}),b&&v.addLegendModifier(o),c==null||c(o)}catch(h){console.error("Failed to initialize AssetCompositionChart:",h)}})(),()=>{y=!0,l.current&&(l.current.delete(),l.current=null)}},[e,u,x,n,t,b,c]),M.jsx("div",{ref:F,id:u,className:E,style:q})});exports.AssetCompositionChart=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),S=require("react"),C=require("./petal-toolkit.cjs59.js"),O=require("./petal-toolkit.cjs1329.js"),g=require("./petal-toolkit.cjs55.js"),v=require("./petal-toolkit.cjs1331.js"),i=require("./petal-toolkit.cjs58.js");function I(d){switch(d){case"light":return{cashColor:"#16a34a",receivablesColor:"#3b82f6",inventoryColor:"#f97316",otherCurrentColor:"#eab308",ppeColor:"#8b5cf6",otherLongTermColor:"#6b7280"};case"navy":return{cashColor:"#10b981",receivablesColor:"#60a5fa",inventoryColor:"#fb923c",otherCurrentColor:"#fbbf24",ppeColor:"#a78bfa",otherLongTermColor:"#64748b"};case"dark":default:return{cashColor:"#00FFB3",receivablesColor:"#3B82F6",inventoryColor:"#FFA502",otherCurrentColor:"#FFEAA7",ppeColor:"#A78BFA",otherLongTermColor:"#6B7280"}}}const j=S.memo(function({data:e,width:T="100%",height:k=400,className:E,themePreset:f="dark",theme:L,showLegend:b=!0,onChartReady:c}){const{containerId:u,containerRef:F,surfaceRef:l,sciChartTheme:x,baseColors:n,containerStyle:q}=O.useFinancialChartSetup({chartName:"asset-composition",width:T,height:k,themePreset:f,customTheme:L}),t=I(f);return S.useEffect(()=>{if(!F.current||e.length===0)return;let y=!1;return(async()=>{try{const h=e.map(r=>r.period),{sciChartSurface:o,wasmContext:a}=await C.scichartExports.SciChartSurface.create(u,{theme:x});if(y){o.delete();return}l.current=o;const P=g.createCategoryXAxis(a,{labelColor:n.axisLabelColor,labels:h});o.xAxes.add(P);const $=g.createNumericYAxis(a,{labelColor:n.axisLabelColor,gridColor:n.gridColor,labelFormatter:r=>r>=1e9?`$${(r/1e9).toFixed(1)}B`:r>=1e6?`$${(r/1e6).toFixed(0)}M`:`$${r.toFixed(0)}`});o.yAxes.add($);const w=e.map((r,p)=>p),m=new C.scichartExports.StackedColumnCollection(a);m.dataPointWidth=.7;const s=(r,p,A)=>{const B=new C.scichartExports.XyDataSeries(a,{xValues:w,yValues:r,dataSeriesName:p});return new C.scichartExports.StackedColumnRenderableSeries(a,{dataSeries:B,fill:A,stroke:A,strokeThickness:0,stackedGroupId:"assets"})};m.add(s(e.map(r=>r.cash),"Cash",t.cashColor),s(e.map(r=>r.receivables),"Receivables",t.receivablesColor),s(e.map(r=>r.inventory),"Inventory",t.inventoryColor),s(e.map(r=>r.otherCurrentAssets),"Other Current",t.otherCurrentColor),s(e.map(r=>r.propertyPlantEquipment),"PP&E",t.ppeColor),s(e.map(r=>r.otherLongTermAssets),"Other Long-Term",t.otherLongTermColor)),o.renderableSeries.add(m),v.addStandardModifiers(o,{crosshairColor:n.crosshairColor,valueFormatters:{Cash:i.tooltipFormatters.currency,Receivables:i.tooltipFormatters.currency,Inventory:i.tooltipFormatters.currency,"Other Current":i.tooltipFormatters.currency,"PP&E":i.tooltipFormatters.currency,"Other Long-Term":i.tooltipFormatters.currency}}),b&&v.addLegendModifier(o),c==null||c(o)}catch(h){console.error("Failed to initialize AssetCompositionChart:",h)}})(),()=>{y=!0,l.current&&(l.current.delete(),l.current=null)}},[e,u,x,n,t,b,c]),M.jsx("div",{ref:F,id:u,className:E,style:q})});exports.AssetCompositionChart=j;
2
2
  //# sourceMappingURL=petal-toolkit.cjs5.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),n=require("react"),i=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs60.js"),y=require("./petal-toolkit.cjs1320.js"),N=require("./petal-toolkit.cjs51.js");function x(l){return l.length>0&&"open"in l[0]&&"close"in l[0]}const B=n.memo(function({data:e,width:g="100%",height:w=150,className:P,themePreset:E="dark",theme:X,upColor:S="#22c55eCC",downColor:D="#ef4444CC",onChartReady:u}){const j=n.useId(),v=n.useRef(null),c=n.useRef(null),m=n.useRef(null),p=n.useRef(null),V=X??L.getThemeFromPreset(E),M=L.getBaseThemeColors(E);n.useEffect(()=>{if(!v.current||e.length===0)return;let a=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:o}=await i.scichartExports.SciChartSurface.create(v.current,{theme:V});if(a){t.delete();return}const r=new i.scichartExports.DateTimeNumericAxis(o,{drawLabels:!0,autoRange:i.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,drawMajorTickLines:!0,drawMinorTickLines:!1,maxAutoTicks:10,axisBandsFill:"transparent",majorGridLineStyle:{color:M.gridColor,strokeThickness:.5},labelStyle:{color:M.textColor,fontSize:10}}),k=new i.scichartExports.NumericAxis(o,{autoRange:i.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,growBy:new i.scichartExports.NumberRange(0,.1),labelFormat:i.scichartExports.ENumericFormat.Engineering,labelPrecision:1});t.xAxes.add(r),t.yAxes.add(k);const h=e.map(s=>y.toUnixTimestamp(s.date)),q=x(e)?e.map(s=>s.volume??0):e.map(s=>s.volume);if(r.labelProvider){const s=Math.min(...h),$=Math.max(...h);r.labelProvider.formatLabel=I=>y.formatAxisLabel(I,[s,$])}const A=new i.scichartExports.XyDataSeries(o,{xValues:h,yValues:q});m.current=A;let d,f;x(e)?(d=e.map(s=>s.open),f=e.map(s=>s.close)):(d=e.map(s=>s.isUp===!1?1:0),f=e.map(s=>s.isUp===!1?0:1));const R=new i.scichartExports.OhlcDataSeries(o,{xValues:h,openValues:d,highValues:f,lowValues:d,closeValues:f});p.current=R;const F=new N.VolumePaletteProvider(R,S,D),G=new i.scichartExports.FastColumnRenderableSeries(o,{dataSeries:A,dataPointWidth:.7,paletteProvider:F});t.renderableSeries.add(G),t.chartModifiers.add(new i.scichartExports.ZoomPanModifier({xyDirection:i.scichartExports.EXyDirection.XDirection})),t.chartModifiers.add(new i.scichartExports.MouseWheelZoomModifier({xyDirection:i.scichartExports.EXyDirection.XDirection})),t.chartModifiers.add(new i.scichartExports.ZoomExtentsModifier({xyDirection:i.scichartExports.EXyDirection.XDirection})),c.current=t,u==null||u(t)}catch(t){console.error("Failed to initialize SciChart VolumeChart:",t)}})(),()=>{a=!0,c.current&&(c.current.delete(),c.current=null)}},[V,E,S,D,u]),n.useEffect(()=>{if(!m.current||!p.current||e.length===0)return;const a=e.map(r=>y.toUnixTimestamp(r.date)),C=x(e)?e.map(r=>r.volume??0):e.map(r=>r.volume);let t,o;x(e)?(t=e.map(r=>r.open),o=e.map(r=>r.close)):(t=e.map(r=>r.isUp===!1?1:0),o=e.map(r=>r.isUp===!1?0:1)),m.current.clear(),m.current.appendRange(a,C),p.current.clear(),p.current.appendRange(a,t,o,t,o),c.current&&c.current.invalidateElement()},[e]);const U={width:typeof g=="number"?`${g}px`:g,height:typeof w=="number"?`${w}px`:w,overflow:"hidden"},b=`volume-chart-${j}`;return T.jsx("div",{ref:v,id:b,className:P,style:U,role:"img","aria-label":`Volume chart displaying ${e.length} trading volume bars`,"aria-describedby":`${b}-desc`,children:T.jsx("span",{id:`${b}-desc`,style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:"Interactive volume chart showing trading volume over time. Green bars indicate buying pressure, red bars indicate selling pressure."})})});exports.VolumeChart=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),n=require("react"),i=require("./petal-toolkit.cjs59.js"),L=require("./petal-toolkit.cjs60.js"),y=require("./petal-toolkit.cjs1332.js"),N=require("./petal-toolkit.cjs51.js");function x(l){return l.length>0&&"open"in l[0]&&"close"in l[0]}const B=n.memo(function({data:e,width:g="100%",height:w=150,className:P,themePreset:E="dark",theme:X,upColor:S="#22c55eCC",downColor:D="#ef4444CC",onChartReady:u}){const j=n.useId(),v=n.useRef(null),c=n.useRef(null),m=n.useRef(null),p=n.useRef(null),V=X??L.getThemeFromPreset(E),M=L.getBaseThemeColors(E);n.useEffect(()=>{if(!v.current||e.length===0)return;let a=!1;return(async()=>{try{const{sciChartSurface:t,wasmContext:o}=await i.scichartExports.SciChartSurface.create(v.current,{theme:V});if(a){t.delete();return}const r=new i.scichartExports.DateTimeNumericAxis(o,{drawLabels:!0,autoRange:i.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,drawMajorTickLines:!0,drawMinorTickLines:!1,maxAutoTicks:10,axisBandsFill:"transparent",majorGridLineStyle:{color:M.gridColor,strokeThickness:.5},labelStyle:{color:M.textColor,fontSize:10}}),k=new i.scichartExports.NumericAxis(o,{autoRange:i.scichartExports.EAutoRange.Always,drawMajorGridLines:!1,drawMinorGridLines:!1,growBy:new i.scichartExports.NumberRange(0,.1),labelFormat:i.scichartExports.ENumericFormat.Engineering,labelPrecision:1});t.xAxes.add(r),t.yAxes.add(k);const h=e.map(s=>y.toUnixTimestamp(s.date)),q=x(e)?e.map(s=>s.volume??0):e.map(s=>s.volume);if(r.labelProvider){const s=Math.min(...h),$=Math.max(...h);r.labelProvider.formatLabel=I=>y.formatAxisLabel(I,[s,$])}const A=new i.scichartExports.XyDataSeries(o,{xValues:h,yValues:q});m.current=A;let d,f;x(e)?(d=e.map(s=>s.open),f=e.map(s=>s.close)):(d=e.map(s=>s.isUp===!1?1:0),f=e.map(s=>s.isUp===!1?0:1));const R=new i.scichartExports.OhlcDataSeries(o,{xValues:h,openValues:d,highValues:f,lowValues:d,closeValues:f});p.current=R;const F=new N.VolumePaletteProvider(R,S,D),G=new i.scichartExports.FastColumnRenderableSeries(o,{dataSeries:A,dataPointWidth:.7,paletteProvider:F});t.renderableSeries.add(G),t.chartModifiers.add(new i.scichartExports.ZoomPanModifier({xyDirection:i.scichartExports.EXyDirection.XDirection})),t.chartModifiers.add(new i.scichartExports.MouseWheelZoomModifier({xyDirection:i.scichartExports.EXyDirection.XDirection})),t.chartModifiers.add(new i.scichartExports.ZoomExtentsModifier({xyDirection:i.scichartExports.EXyDirection.XDirection})),c.current=t,u==null||u(t)}catch(t){console.error("Failed to initialize SciChart VolumeChart:",t)}})(),()=>{a=!0,c.current&&(c.current.delete(),c.current=null)}},[V,E,S,D,u]),n.useEffect(()=>{if(!m.current||!p.current||e.length===0)return;const a=e.map(r=>y.toUnixTimestamp(r.date)),C=x(e)?e.map(r=>r.volume??0):e.map(r=>r.volume);let t,o;x(e)?(t=e.map(r=>r.open),o=e.map(r=>r.close)):(t=e.map(r=>r.isUp===!1?1:0),o=e.map(r=>r.isUp===!1?0:1)),m.current.clear(),m.current.appendRange(a,C),p.current.clear(),p.current.appendRange(a,t,o,t,o),c.current&&c.current.invalidateElement()},[e]);const U={width:typeof g=="number"?`${g}px`:g,height:typeof w=="number"?`${w}px`:w,overflow:"hidden"},b=`volume-chart-${j}`;return T.jsx("div",{ref:v,id:b,className:P,style:U,role:"img","aria-label":`Volume chart displaying ${e.length} trading volume bars`,"aria-describedby":`${b}-desc`,children:T.jsx("span",{id:`${b}-desc`,style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:"Interactive volume chart showing trading volume over time. Green bars indicate buying pressure, red bars indicate selling pressure."})})});exports.VolumeChart=B;
2
2
  //# sourceMappingURL=petal-toolkit.cjs50.js.map