@sproutsocial/seeds-react-data-viz 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.
package/dist/esm/index.js CHANGED
@@ -1,11 +1,109 @@
1
- // src/components/ChartTable/ChartTable.tsx
2
- import { memo } from "react";
3
- import styled3 from "styled-components";
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
4
26
 
5
- // ../seeds-react-text/dist/esm/index.js
6
- import "react";
7
- import styled2 from "styled-components";
8
- import styled, { css } from "styled-components";
27
+ // ../../node_modules/object-assign/index.js
28
+ var require_object_assign = __commonJS({
29
+ "../../node_modules/object-assign/index.js"(exports, module) {
30
+ "use strict";
31
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
32
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
33
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
34
+ function toObject(val) {
35
+ if (val === null || val === void 0) {
36
+ throw new TypeError("Object.assign cannot be called with null or undefined");
37
+ }
38
+ return Object(val);
39
+ }
40
+ function shouldUseNative() {
41
+ try {
42
+ if (!Object.assign) {
43
+ return false;
44
+ }
45
+ var test1 = new String("abc");
46
+ test1[5] = "de";
47
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
48
+ return false;
49
+ }
50
+ var test2 = {};
51
+ for (var i = 0; i < 10; i++) {
52
+ test2["_" + String.fromCharCode(i)] = i;
53
+ }
54
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
55
+ return test2[n2];
56
+ });
57
+ if (order2.join("") !== "0123456789") {
58
+ return false;
59
+ }
60
+ var test3 = {};
61
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
62
+ test3[letter] = letter;
63
+ });
64
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
65
+ return false;
66
+ }
67
+ return true;
68
+ } catch (err) {
69
+ return false;
70
+ }
71
+ }
72
+ module.exports = shouldUseNative() ? Object.assign : function(target, source) {
73
+ var from;
74
+ var to = toObject(target);
75
+ var symbols;
76
+ for (var s = 1; s < arguments.length; s++) {
77
+ from = Object(arguments[s]);
78
+ for (var key in from) {
79
+ if (hasOwnProperty.call(from, key)) {
80
+ to[key] = from[key];
81
+ }
82
+ }
83
+ if (getOwnPropertySymbols) {
84
+ symbols = getOwnPropertySymbols(from);
85
+ for (var i = 0; i < symbols.length; i++) {
86
+ if (propIsEnumerable.call(from, symbols[i])) {
87
+ to[symbols[i]] = from[symbols[i]];
88
+ }
89
+ }
90
+ }
91
+ }
92
+ return to;
93
+ };
94
+ }
95
+ });
96
+
97
+ // src/components/AreaChart/AreaChart.tsx
98
+ import { memo as memo13 } from "react";
99
+ import Highcharts from "highcharts";
100
+ import { HighchartsReact } from "highcharts-react-official";
101
+ import highchartsAccessibility from "highcharts/modules/accessibility";
102
+ import styled10 from "styled-components";
103
+
104
+ // ../seeds-react-box/dist/esm/index.js
105
+ import * as React from "react";
106
+ import styled from "styled-components";
9
107
 
10
108
  // ../seeds-react-system-props/dist/index.mjs
11
109
  import "react";
@@ -445,181 +543,9 @@ var De = y(l({ cursor: true, whiteSpace: true }));
445
543
  var Ve = y(L({ key: "typography", prop: "typeScale" }));
446
544
  var mo = y(De, Ve, V, I, A, D, G, E, H, $, N, M);
447
545
 
448
- // ../seeds-react-text/dist/esm/index.js
449
- import { jsx } from "react/jsx-runtime";
450
- import "react";
451
- var Container = styled.span`
452
- margin: 0;
453
- padding-left: 0;
454
- padding-right: 0;
455
- font-family: ${(props) => props.theme.fontFamily};
456
- font-style: ${(props) => {
457
- return props.isItalicized && "italic";
458
- }};
459
-
460
- ${(props) => props.truncated && css`
461
- display: block;
462
- overflow: hidden;
463
- white-space: nowrap;
464
- text-overflow: ellipsis;
465
- `}
466
-
467
- ${(props) => props.breakWord && css`
468
- word-break: break-word;
469
- hyphens: auto;
470
- `}
471
-
472
- ${ke}
473
- ${Fe}
474
- ${Ee}
475
- ${Me}
476
- ${Ne}
477
- `;
478
- var styles_default = Container;
479
- var Headline = styled2(styles_default)`
480
- color: ${(props) => props.theme.colors.text.headline};
481
- font-weight: ${(props) => props.theme.fontWeights.bold};
482
- ${(props) => props.theme.typography[400]}
483
- `;
484
- var SubHeadline = styled2(styles_default)`
485
- color: ${(props) => props.theme.colors.text.headline};
486
- font-weight: ${(props) => props.theme.fontWeights.bold};
487
- ${(props) => props.theme.typography[300]}
488
- `;
489
- var SmallSubHeadline = styled2(styles_default)`
490
- color: ${(props) => props.theme.colors.text.headline};
491
- font-weight: ${(props) => props.theme.fontWeights.bold};
492
- ${(props) => props.theme.typography[200]}
493
- `;
494
- var Byline = styled2(styles_default)`
495
- color: ${(props) => props.theme.colors.text.subtext};
496
- ${(props) => props.theme.typography[200]}
497
- `;
498
- var SmallByline = styled2(styles_default)`
499
- color: ${(props) => props.theme.colors.text.subtext};
500
- ${(props) => props.theme.typography[100]}
501
- `;
502
- var BodyCopy = styled2(styles_default)`
503
- color: ${(props) => props.theme.colors.text.body};
504
- ${(props) => props.theme.typography[300]}
505
- `;
506
- var SmallBodyCopy = styled2(styles_default)`
507
- color: ${(props) => props.theme.colors.text.body};
508
- ${(props) => props.theme.typography[200]}
509
- `;
510
- var Text = ({ fontSize, children, qa, color, ...rest }) => {
511
- const qaText = typeof children === "string" ? children : void 0;
512
- return /* @__PURE__ */ jsx(
513
- styles_default,
514
- {
515
- typeScale: fontSize,
516
- "data-qa-text": qaText,
517
- color,
518
- ...qa,
519
- ...rest,
520
- children
521
- }
522
- );
523
- };
524
- var withTextLogic = (Component) => {
525
- return ({ children, ...props }) => {
526
- const qaText = typeof children === "string" ? children : void 0;
527
- return /* @__PURE__ */ jsx(Component, { "data-qa-text": qaText, ...props, children });
528
- };
529
- };
530
- var HeadlineWithLogic = withTextLogic(Headline);
531
- HeadlineWithLogic.displayName = "Text.Headline";
532
- Text.Headline = HeadlineWithLogic;
533
- var SubHeadlineWithLogic = withTextLogic(SubHeadline);
534
- SubHeadlineWithLogic.displayName = "Text.SubHeadline";
535
- Text.SubHeadline = SubHeadlineWithLogic;
536
- var SmallSubHeadlineWithLogic = withTextLogic(SmallSubHeadline);
537
- SmallSubHeadlineWithLogic.displayName = "Text.SmallSubHeadline";
538
- Text.SmallSubHeadline = SmallSubHeadlineWithLogic;
539
- var BylineWithLogic = withTextLogic(Byline);
540
- BylineWithLogic.displayName = "Text.Byline";
541
- Text.Byline = BylineWithLogic;
542
- var SmallBylineWithLogic = withTextLogic(SmallByline);
543
- SmallBylineWithLogic.displayName = "Text.SmallByline";
544
- Text.SmallByline = SmallBylineWithLogic;
545
- var BodyCopyWithLogic = withTextLogic(BodyCopy);
546
- BodyCopyWithLogic.displayName = "Text.BodyCopy";
547
- Text.BodyCopy = BodyCopyWithLogic;
548
- var SmallBodyCopyWithLogic = withTextLogic(SmallBodyCopy);
549
- SmallBodyCopyWithLogic.displayName = "Text.SmallBodyCopy";
550
- Text.SmallBodyCopy = SmallBodyCopyWithLogic;
551
- var Text_default = Text;
552
-
553
- // src/components/ChartTable/ChartTable.tsx
554
- import { Table as RacineTable } from "@sproutsocial/racine";
555
- import { jsx as jsx2 } from "react/jsx-runtime";
556
- var StyledRacineTable = styled3(RacineTable)`
557
- tbody tr:last-child {
558
- border-bottom: none;
559
- }
560
- tr:last-child td,
561
- tr:last-child th {
562
- padding-bottom: 0;
563
- }
564
- tr:first-child td,
565
- tr:first-child th {
566
- padding-top: 0;
567
- }
568
- tr th {
569
- padding-left: 0;
570
- }
571
- tr td:last-child {
572
- padding-right: 0;
573
- }
574
- `;
575
- var StyledRacineTableRow = styled3(RacineTable.TableRow)`
576
- ${({ $isAppendedRow, theme: theme2 }) => $isAppendedRow ? `border-top: 2px solid ${theme2.colors.container.border.base}` : ""}
577
- `;
578
- var ChartTable = memo(function ChartTable2({
579
- rows
580
- }) {
581
- if (!rows || rows.length === 0) {
582
- return null;
583
- }
584
- return /* @__PURE__ */ jsx2(StyledRacineTable, { children: /* @__PURE__ */ jsx2(RacineTable.TableBody, { children: rows.map(({ cells, isAppendedRow }, rowIndex) => {
585
- if (!cells || cells.length === 0) {
586
- return null;
587
- }
588
- return /* @__PURE__ */ jsx2(
589
- StyledRacineTableRow,
590
- {
591
- $isAppendedRow: isAppendedRow,
592
- children: cells.map(
593
- ({ content, align = "left", colSpan = 1 }, cellIndex) => {
594
- const uniqueIdentifier = `chart-tooltip-table-cell-${cellIndex}`;
595
- return /* @__PURE__ */ jsx2(
596
- RacineTable.Cell,
597
- {
598
- id: uniqueIdentifier,
599
- scope: cellIndex === 0 ? "row" : void 0,
600
- align,
601
- colSpan,
602
- py: 200,
603
- children: /* @__PURE__ */ jsx2(Text_default.SmallBodyCopy, { as: "div", children: content })
604
- },
605
- uniqueIdentifier
606
- );
607
- }
608
- )
609
- },
610
- `chart-tooltip-table-row-${rowIndex}`
611
- );
612
- }) }) });
613
- });
614
-
615
- // src/components/ColorBox/ColorBox.tsx
616
- import { css as css2 } from "styled-components";
617
-
618
546
  // ../seeds-react-box/dist/esm/index.js
619
- import * as React from "react";
620
- import styled4 from "styled-components";
621
- import { jsx as jsx3 } from "react/jsx-runtime";
622
- var Container2 = styled4.div`
547
+ import { jsx } from "react/jsx-runtime";
548
+ var Container = styled.div`
623
549
  box-sizing: border-box;
624
550
  font-family: ${({ theme: theme2 }) => theme2.fontFamily};
625
551
 
@@ -630,25 +556,25 @@ var Container2 = styled4.div`
630
556
  ${Ee}
631
557
  ${Me}
632
558
  `;
633
- var styles_default2 = Container2;
559
+ var styles_default = Container;
634
560
  var Box = React.forwardRef(
635
- ({ color, ...props }, ref) => {
636
- return /* @__PURE__ */ jsx3(
637
- styles_default2,
561
+ ({ color: color2, ...props }, ref) => {
562
+ return /* @__PURE__ */ jsx(
563
+ styles_default,
638
564
  {
639
565
  ...props,
640
566
  ref,
641
- color
567
+ color: color2
642
568
  }
643
569
  );
644
570
  }
645
571
  );
646
572
  Box.displayName = "Box";
647
573
  var Box_default = Box;
574
+ var src_default = Box_default;
648
575
 
649
- // ../seeds-react-theme-provider/dist/index.mjs
650
- import "react";
651
- import { ThemeProvider as BaseThemeProvider } from "styled-components";
576
+ // src/components/AreaChart/components/AreaChartLegend.tsx
577
+ import { memo as memo4 } from "react";
652
578
 
653
579
  // ../../node_modules/@babel/runtime/helpers/esm/extends.js
654
580
  function _extends() {
@@ -868,8 +794,8 @@ var PolishedError = /* @__PURE__ */ function(_Error) {
868
794
  }
869
795
  return PolishedError2;
870
796
  }(/* @__PURE__ */ _wrapNativeSuper(Error));
871
- function colorToInt(color) {
872
- return Math.round(color * 255);
797
+ function colorToInt(color2) {
798
+ return Math.round(color2 * 255);
873
799
  }
874
800
  function convertToInt(red3, green3, blue3) {
875
801
  return colorToInt(red3) + "," + colorToInt(green3) + "," + colorToInt(blue3);
@@ -1062,11 +988,11 @@ var namedColorMap = {
1062
988
  yellow: "ff0",
1063
989
  yellowgreen: "9acd32"
1064
990
  };
1065
- function nameToHex(color) {
1066
- if (typeof color !== "string")
1067
- return color;
1068
- var normalizedColorName = color.toLowerCase();
1069
- return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
991
+ function nameToHex(color2) {
992
+ if (typeof color2 !== "string")
993
+ return color2;
994
+ var normalizedColorName = color2.toLowerCase();
995
+ return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
1070
996
  }
1071
997
  var hexRegex = /^#[a-fA-F0-9]{6}$/;
1072
998
  var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
@@ -1076,11 +1002,11 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
1076
1002
  var rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
1077
1003
  var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
1078
1004
  var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
1079
- function parseToRgb(color) {
1080
- if (typeof color !== "string") {
1005
+ function parseToRgb(color2) {
1006
+ if (typeof color2 !== "string") {
1081
1007
  throw new PolishedError(3);
1082
1008
  }
1083
- var normalizedColor = nameToHex(color);
1009
+ var normalizedColor = nameToHex(color2);
1084
1010
  if (normalizedColor.match(hexRegex)) {
1085
1011
  return {
1086
1012
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -1206,10 +1132,10 @@ function curry(f2) {
1206
1132
  function guard(lowerBoundary, upperBoundary, value) {
1207
1133
  return Math.max(lowerBoundary, Math.min(upperBoundary, value));
1208
1134
  }
1209
- function transparentize(amount, color) {
1210
- if (color === "transparent")
1211
- return color;
1212
- var parsedColor = parseToRgb(color);
1135
+ function transparentize(amount, color2) {
1136
+ if (color2 === "transparent")
1137
+ return color2;
1138
+ var parsedColor = parseToRgb(color2);
1213
1139
  var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
1214
1140
  var colorWithAlpha = _extends({}, parsedColor, {
1215
1141
  alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
@@ -3361,84 +3287,1947 @@ var darkTheme2 = _objectSpread4(_objectSpread4({}, theme_default2), {}, {
3361
3287
  })
3362
3288
  });
3363
3289
 
3364
- // ../seeds-react-theme-provider/dist/index.mjs
3365
- import { jsx as jsx4 } from "react/jsx-runtime";
3366
-
3367
- // src/components/ColorBox/ColorBox.tsx
3368
- import { jsx as jsx5 } from "react/jsx-runtime";
3369
- var ColorBox = ({
3370
- display = "inline-block",
3371
- height = "16px",
3372
- width = "16px",
3373
- minWidth = width,
3374
- borderRadius = "400",
3375
- ...props
3376
- }) => {
3377
- return /* @__PURE__ */ jsx5(
3378
- Box_default,
3379
- {
3380
- ...props,
3381
- display,
3382
- height,
3383
- width,
3384
- minWidth,
3385
- borderRadius,
3386
- css: css2`
3387
- cursor: ${(props2) => props2?.onClick ? "pointer" : "default"};
3388
- `
3389
- }
3390
- );
3391
- };
3290
+ // src/components/ChartLegend/ChartLegend.tsx
3291
+ import { memo as memo2 } from "react";
3392
3292
 
3393
- // src/components/ColorBox/DatavizColorBox.tsx
3293
+ // src/components/ChartLegend/components/ChartLegendLabel.tsx
3394
3294
  import styled5 from "styled-components";
3395
- var DatavizColorBox = styled5(ColorBox).attrs(
3396
- ({ colorIndex }) => ({
3397
- style: {
3398
- background: getDatavizColor(colorIndex),
3399
- opacity: getDatavizOpacity(colorIndex)
3400
- }
3401
- })
3402
- )``;
3403
- var getDatavizColor = (colorIndex) => theme_default.colors.DATAVIZ_COLORS_LIST[colorIndex % theme_default.colors.DATAVIZ_COLORS_LIST.length] || "";
3404
- var getDatavizOpacity = (colorIndex) => {
3405
- const opacitySteps = [1, 0.6, 0.4, 0.2];
3406
- const opacityStep = Math.floor(colorIndex / theme_default.colors.DATAVIZ_COLORS_LIST.length) % opacitySteps.length;
3407
- return opacitySteps[opacityStep];
3408
- };
3409
- var getDatavizColorWithAlpha = (colorIndex) => {
3410
- const color = getDatavizColor(colorIndex);
3411
- const opacity = getDatavizOpacity(colorIndex);
3412
- if (opacity < 0 || opacity > 1) {
3413
- return color;
3414
- }
3415
- return `${color}${Math.floor(opacity * 255).toString(16).padStart(2, "0")}`;
3416
- };
3295
+ import { memo } from "react";
3417
3296
 
3418
- // src/components/ColorBox/NetworkColorBox.tsx
3419
- import NETWORK_COLORS from "@sproutsocial/seeds-networkcolor";
3420
- import { jsx as jsx6 } from "react/jsx-runtime";
3421
- var NetworkColorBox = ({
3422
- networkColor,
3423
- ...props
3424
- }) => {
3425
- return /* @__PURE__ */ jsx6(ColorBox, { ...props, bg: NETWORK_COLORS[networkColor] });
3426
- };
3297
+ // ../seeds-react-text/dist/esm/index.js
3298
+ import "react";
3299
+ import styled2 from "styled-components";
3300
+ import styled3, { css } from "styled-components";
3301
+ import { jsx as jsx2 } from "react/jsx-runtime";
3302
+ import "react";
3303
+ var Container2 = styled3.span`
3304
+ margin: 0;
3305
+ padding-left: 0;
3306
+ padding-right: 0;
3307
+ font-family: ${(props) => props.theme.fontFamily};
3308
+ font-style: ${(props) => {
3309
+ return props.isItalicized && "italic";
3310
+ }};
3427
3311
 
3428
- // src/constants/chartOptions.ts
3429
- import _2 from "lodash";
3430
- var baseChartOptions = {
3431
- chart: {
3432
- animation: false,
3433
- styledMode: true
3434
- },
3435
- credits: {
3436
- enabled: false
3437
- },
3438
- exporting: {
3439
- enabled: false,
3440
- fallbackToExportServer: false
3441
- },
3312
+ ${(props) => props.truncated && css`
3313
+ display: block;
3314
+ overflow: hidden;
3315
+ white-space: nowrap;
3316
+ text-overflow: ellipsis;
3317
+ `}
3318
+
3319
+ ${(props) => props.breakWord && css`
3320
+ word-break: break-word;
3321
+ hyphens: auto;
3322
+ `}
3323
+
3324
+ ${ke}
3325
+ ${Fe}
3326
+ ${Ee}
3327
+ ${Me}
3328
+ ${Ne}
3329
+ `;
3330
+ var styles_default2 = Container2;
3331
+ var Headline = styled2(styles_default2)`
3332
+ color: ${(props) => props.theme.colors.text.headline};
3333
+ font-weight: ${(props) => props.theme.fontWeights.bold};
3334
+ ${(props) => props.theme.typography[400]}
3335
+ `;
3336
+ var SubHeadline = styled2(styles_default2)`
3337
+ color: ${(props) => props.theme.colors.text.headline};
3338
+ font-weight: ${(props) => props.theme.fontWeights.bold};
3339
+ ${(props) => props.theme.typography[300]}
3340
+ `;
3341
+ var SmallSubHeadline = styled2(styles_default2)`
3342
+ color: ${(props) => props.theme.colors.text.headline};
3343
+ font-weight: ${(props) => props.theme.fontWeights.bold};
3344
+ ${(props) => props.theme.typography[200]}
3345
+ `;
3346
+ var Byline = styled2(styles_default2)`
3347
+ color: ${(props) => props.theme.colors.text.subtext};
3348
+ ${(props) => props.theme.typography[200]}
3349
+ `;
3350
+ var SmallByline = styled2(styles_default2)`
3351
+ color: ${(props) => props.theme.colors.text.subtext};
3352
+ ${(props) => props.theme.typography[100]}
3353
+ `;
3354
+ var BodyCopy = styled2(styles_default2)`
3355
+ color: ${(props) => props.theme.colors.text.body};
3356
+ ${(props) => props.theme.typography[300]}
3357
+ `;
3358
+ var SmallBodyCopy = styled2(styles_default2)`
3359
+ color: ${(props) => props.theme.colors.text.body};
3360
+ ${(props) => props.theme.typography[200]}
3361
+ `;
3362
+ var Text = ({ fontSize: fontSize2, children, qa, color: color2, ...rest }) => {
3363
+ const qaText = typeof children === "string" ? children : void 0;
3364
+ return /* @__PURE__ */ jsx2(
3365
+ styles_default2,
3366
+ {
3367
+ typeScale: fontSize2,
3368
+ "data-qa-text": qaText,
3369
+ color: color2,
3370
+ ...qa,
3371
+ ...rest,
3372
+ children
3373
+ }
3374
+ );
3375
+ };
3376
+ var withTextLogic = (Component) => {
3377
+ return ({ children, ...props }) => {
3378
+ const qaText = typeof children === "string" ? children : void 0;
3379
+ return /* @__PURE__ */ jsx2(Component, { "data-qa-text": qaText, ...props, children });
3380
+ };
3381
+ };
3382
+ var HeadlineWithLogic = withTextLogic(Headline);
3383
+ HeadlineWithLogic.displayName = "Text.Headline";
3384
+ Text.Headline = HeadlineWithLogic;
3385
+ var SubHeadlineWithLogic = withTextLogic(SubHeadline);
3386
+ SubHeadlineWithLogic.displayName = "Text.SubHeadline";
3387
+ Text.SubHeadline = SubHeadlineWithLogic;
3388
+ var SmallSubHeadlineWithLogic = withTextLogic(SmallSubHeadline);
3389
+ SmallSubHeadlineWithLogic.displayName = "Text.SmallSubHeadline";
3390
+ Text.SmallSubHeadline = SmallSubHeadlineWithLogic;
3391
+ var BylineWithLogic = withTextLogic(Byline);
3392
+ BylineWithLogic.displayName = "Text.Byline";
3393
+ Text.Byline = BylineWithLogic;
3394
+ var SmallBylineWithLogic = withTextLogic(SmallByline);
3395
+ SmallBylineWithLogic.displayName = "Text.SmallByline";
3396
+ Text.SmallByline = SmallBylineWithLogic;
3397
+ var BodyCopyWithLogic = withTextLogic(BodyCopy);
3398
+ BodyCopyWithLogic.displayName = "Text.BodyCopy";
3399
+ Text.BodyCopy = BodyCopyWithLogic;
3400
+ var SmallBodyCopyWithLogic = withTextLogic(SmallBodyCopy);
3401
+ SmallBodyCopyWithLogic.displayName = "Text.SmallBodyCopy";
3402
+ Text.SmallBodyCopy = SmallBodyCopyWithLogic;
3403
+ var Text_default = Text;
3404
+
3405
+ // src/components/ColorBox/ColorBox.tsx
3406
+ import { css as css2 } from "styled-components";
3407
+
3408
+ // ../seeds-react-theme-provider/dist/index.mjs
3409
+ import "react";
3410
+ import { ThemeProvider as BaseThemeProvider } from "styled-components";
3411
+ import { jsx as jsx3 } from "react/jsx-runtime";
3412
+
3413
+ // src/components/ColorBox/ColorBox.tsx
3414
+ import { jsx as jsx4 } from "react/jsx-runtime";
3415
+ var ColorBox = ({
3416
+ display: display2 = "inline-block",
3417
+ height: height2 = "16px",
3418
+ width: width2 = "16px",
3419
+ minWidth: minWidth2 = width2,
3420
+ borderRadius: borderRadius2 = "400",
3421
+ ...props
3422
+ }) => {
3423
+ return /* @__PURE__ */ jsx4(
3424
+ Box_default,
3425
+ {
3426
+ ...props,
3427
+ display: display2,
3428
+ height: height2,
3429
+ width: width2,
3430
+ minWidth: minWidth2,
3431
+ borderRadius: borderRadius2,
3432
+ css: css2`
3433
+ cursor: ${(props2) => props2?.onClick ? "pointer" : "default"};
3434
+ `
3435
+ }
3436
+ );
3437
+ };
3438
+
3439
+ // src/components/ColorBox/DatavizColorBox.tsx
3440
+ import styled4 from "styled-components";
3441
+ var DatavizColorBox = styled4(ColorBox).attrs(
3442
+ ({ colorIndex }) => ({
3443
+ style: {
3444
+ background: getDatavizColor(colorIndex),
3445
+ opacity: getDatavizOpacity(colorIndex)
3446
+ }
3447
+ })
3448
+ )``;
3449
+ var getDatavizColor = (colorIndex) => theme_default.colors.DATAVIZ_COLORS_LIST[colorIndex % theme_default.colors.DATAVIZ_COLORS_LIST.length] || "";
3450
+ var getDatavizOpacity = (colorIndex) => {
3451
+ const opacitySteps = [1, 0.6, 0.4, 0.2];
3452
+ const opacityStep = Math.floor(colorIndex / theme_default.colors.DATAVIZ_COLORS_LIST.length) % opacitySteps.length;
3453
+ return opacitySteps[opacityStep];
3454
+ };
3455
+ var getDatavizColorWithAlpha = (colorIndex) => {
3456
+ const color2 = getDatavizColor(colorIndex);
3457
+ const opacity2 = getDatavizOpacity(colorIndex);
3458
+ if (opacity2 < 0 || opacity2 > 1) {
3459
+ return color2;
3460
+ }
3461
+ return `${color2}${Math.floor(opacity2 * 255).toString(16).padStart(2, "0")}`;
3462
+ };
3463
+
3464
+ // src/components/ColorBox/NetworkColorBox.tsx
3465
+ import NETWORK_COLORS from "@sproutsocial/seeds-networkcolor";
3466
+ import { jsx as jsx5 } from "react/jsx-runtime";
3467
+ var NetworkColorBox = ({
3468
+ networkColor,
3469
+ ...props
3470
+ }) => {
3471
+ return /* @__PURE__ */ jsx5(ColorBox, { ...props, bg: NETWORK_COLORS[networkColor] });
3472
+ };
3473
+
3474
+ // src/components/ChartLegend/components/ChartLegendLabel.tsx
3475
+ import { jsx as jsx6, jsxs } from "react/jsx-runtime";
3476
+ var StyledBox = styled5(Box_default)`
3477
+ list-style: none;
3478
+ display: flex;
3479
+ align-items: center;
3480
+ gap: ${({ theme: theme2 }) => theme2.space[300]};
3481
+ `;
3482
+ var ChartLegendLabel = memo(
3483
+ function ChartLegendLabel2({
3484
+ children,
3485
+ color: color2 = "#CCC",
3486
+ containerBoxProps = {}
3487
+ }) {
3488
+ return /* @__PURE__ */ jsxs(StyledBox, { ...containerBoxProps, children: [
3489
+ /* @__PURE__ */ jsx6(ColorBox, { bg: color2 }),
3490
+ /* @__PURE__ */ jsx6(Text_default, { as: "div", fontSize: 200, color: "text.subtext", children })
3491
+ ] });
3492
+ }
3493
+ );
3494
+
3495
+ // src/components/ChartLegend/ChartLegend.tsx
3496
+ import { jsx as jsx7 } from "react/jsx-runtime";
3497
+ var ChartLegend = memo2(function ChartLegend2({
3498
+ legendLabels,
3499
+ containerBoxProps = {},
3500
+ stacked = false
3501
+ }) {
3502
+ return /* @__PURE__ */ jsx7(
3503
+ Box_default,
3504
+ {
3505
+ as: "ul",
3506
+ "aria-hidden": "true",
3507
+ display: "flex",
3508
+ justifyContent: "center",
3509
+ flexDirection: stacked ? "column" : "row",
3510
+ flexWrap: "wrap",
3511
+ columnGap: 450,
3512
+ rowGap: 200,
3513
+ m: 0,
3514
+ p: 0,
3515
+ ...containerBoxProps,
3516
+ children: legendLabels.map(({ color: color2, content }, index) => /* @__PURE__ */ jsx7(
3517
+ ChartLegendLabel,
3518
+ {
3519
+ color: color2 || theme_default.colors.DATAVIZ_COLORS_LIST[index],
3520
+ containerBoxProps: { as: "li" },
3521
+ children: content
3522
+ },
3523
+ `chart-legend-label-${index}`
3524
+ ))
3525
+ }
3526
+ );
3527
+ });
3528
+
3529
+ // src/components/ChartLegend/components/ChartLegendLabelContentWithIcon.tsx
3530
+ import { memo as memo3 } from "react";
3531
+ import { jsxs as jsxs2 } from "react/jsx-runtime";
3532
+ var ChartLegendLabelContentWithIcon = memo3(
3533
+ function ChartLegendLabelContentWithIcon2({
3534
+ children,
3535
+ icon
3536
+ }) {
3537
+ return icon ? /* @__PURE__ */ jsxs2(Box_default, { display: "flex", alignItems: "center", gap: 200, children: [
3538
+ icon,
3539
+ children
3540
+ ] }) : children;
3541
+ }
3542
+ );
3543
+
3544
+ // src/components/AreaChart/components/AreaChartLegend.tsx
3545
+ import { jsx as jsx8 } from "react/jsx-runtime";
3546
+ var getAreaChartLegendLabels = ({
3547
+ data
3548
+ }) => {
3549
+ return data.map((series, index) => ({
3550
+ content: /* @__PURE__ */ jsx8(ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
3551
+ color: series.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
3552
+ }));
3553
+ };
3554
+ var AreaChartLegend = memo4(
3555
+ function AreaChartLegend2({ data }) {
3556
+ return /* @__PURE__ */ jsx8(ChartLegend, { legendLabels: getAreaChartLegendLabels({ data }) });
3557
+ }
3558
+ );
3559
+
3560
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
3561
+ import { memo as memo11 } from "react";
3562
+
3563
+ // ../seeds-react-icon/dist/esm/index.js
3564
+ import "react";
3565
+ import styled22, { css as css22 } from "styled-components";
3566
+
3567
+ // ../seeds-react-partner-logo/dist/esm/index.js
3568
+ import "react";
3569
+ import { useTheme } from "styled-components";
3570
+ import styled6, { css as css5 } from "styled-components";
3571
+
3572
+ // ../../node_modules/@styled-system/core/dist/index.esm.js
3573
+ var import_object_assign = __toESM(require_object_assign());
3574
+ var merge = function merge2(a3, b2) {
3575
+ var result = (0, import_object_assign.default)({}, a3, b2);
3576
+ for (var key in a3) {
3577
+ var _assign;
3578
+ if (!a3[key] || typeof b2[key] !== "object")
3579
+ continue;
3580
+ (0, import_object_assign.default)(result, (_assign = {}, _assign[key] = (0, import_object_assign.default)(a3[key], b2[key]), _assign));
3581
+ }
3582
+ return result;
3583
+ };
3584
+ var sort = function sort2(obj) {
3585
+ var next = {};
3586
+ Object.keys(obj).sort(function(a3, b2) {
3587
+ return a3.localeCompare(b2, void 0, {
3588
+ numeric: true,
3589
+ sensitivity: "base"
3590
+ });
3591
+ }).forEach(function(key) {
3592
+ next[key] = obj[key];
3593
+ });
3594
+ return next;
3595
+ };
3596
+ var defaults = {
3597
+ breakpoints: [40, 52, 64].map(function(n2) {
3598
+ return n2 + "em";
3599
+ })
3600
+ };
3601
+ var createMediaQuery = function createMediaQuery2(n2) {
3602
+ return "@media screen and (min-width: " + n2 + ")";
3603
+ };
3604
+ var getValue = function getValue2(n2, scale) {
3605
+ return get(scale, n2, n2);
3606
+ };
3607
+ var get = function get2(obj, key, def, p, undef) {
3608
+ key = key && key.split ? key.split(".") : [key];
3609
+ for (p = 0; p < key.length; p++) {
3610
+ obj = obj ? obj[key[p]] : undef;
3611
+ }
3612
+ return obj === undef ? def : obj;
3613
+ };
3614
+ var createParser = function createParser2(config9) {
3615
+ var cache = {};
3616
+ var parse = function parse2(props) {
3617
+ var styles = {};
3618
+ var shouldSort = false;
3619
+ var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache;
3620
+ for (var key in props) {
3621
+ if (!config9[key])
3622
+ continue;
3623
+ var sx = config9[key];
3624
+ var raw = props[key];
3625
+ var scale = get(props.theme, sx.scale, sx.defaults);
3626
+ if (typeof raw === "object") {
3627
+ cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, "breakpoints", defaults.breakpoints);
3628
+ if (Array.isArray(raw)) {
3629
+ cache.media = !isCacheDisabled && cache.media || [null].concat(cache.breakpoints.map(createMediaQuery));
3630
+ styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props));
3631
+ continue;
3632
+ }
3633
+ if (raw !== null) {
3634
+ styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props));
3635
+ shouldSort = true;
3636
+ }
3637
+ continue;
3638
+ }
3639
+ (0, import_object_assign.default)(styles, sx(raw, scale, props));
3640
+ }
3641
+ if (shouldSort) {
3642
+ styles = sort(styles);
3643
+ }
3644
+ return styles;
3645
+ };
3646
+ parse.config = config9;
3647
+ parse.propNames = Object.keys(config9);
3648
+ parse.cache = cache;
3649
+ var keys = Object.keys(config9).filter(function(k2) {
3650
+ return k2 !== "config";
3651
+ });
3652
+ if (keys.length > 1) {
3653
+ keys.forEach(function(key) {
3654
+ var _createParser;
3655
+ parse[key] = createParser2((_createParser = {}, _createParser[key] = config9[key], _createParser));
3656
+ });
3657
+ }
3658
+ return parse;
3659
+ };
3660
+ var parseResponsiveStyle = function parseResponsiveStyle2(mediaQueries, sx, scale, raw, _props) {
3661
+ var styles = {};
3662
+ raw.slice(0, mediaQueries.length).forEach(function(value, i) {
3663
+ var media = mediaQueries[i];
3664
+ var style = sx(value, scale, _props);
3665
+ if (!media) {
3666
+ (0, import_object_assign.default)(styles, style);
3667
+ } else {
3668
+ var _assign2;
3669
+ (0, import_object_assign.default)(styles, (_assign2 = {}, _assign2[media] = (0, import_object_assign.default)({}, styles[media], style), _assign2));
3670
+ }
3671
+ });
3672
+ return styles;
3673
+ };
3674
+ var parseResponsiveObject = function parseResponsiveObject2(breakpoints2, sx, scale, raw, _props) {
3675
+ var styles = {};
3676
+ for (var key in raw) {
3677
+ var breakpoint = breakpoints2[key];
3678
+ var value = raw[key];
3679
+ var style = sx(value, scale, _props);
3680
+ if (!breakpoint) {
3681
+ (0, import_object_assign.default)(styles, style);
3682
+ } else {
3683
+ var _assign3;
3684
+ var media = createMediaQuery(breakpoint);
3685
+ (0, import_object_assign.default)(styles, (_assign3 = {}, _assign3[media] = (0, import_object_assign.default)({}, styles[media], style), _assign3));
3686
+ }
3687
+ }
3688
+ return styles;
3689
+ };
3690
+ var createStyleFunction = function createStyleFunction2(_ref) {
3691
+ var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform = _ref$transform === void 0 ? getValue : _ref$transform, defaultScale = _ref.defaultScale;
3692
+ properties = properties || [property];
3693
+ var sx = function sx2(value, scale2, _props) {
3694
+ var result = {};
3695
+ var n2 = transform(value, scale2, _props);
3696
+ if (n2 === null)
3697
+ return;
3698
+ properties.forEach(function(prop) {
3699
+ result[prop] = n2;
3700
+ });
3701
+ return result;
3702
+ };
3703
+ sx.scale = scale;
3704
+ sx.defaults = defaultScale;
3705
+ return sx;
3706
+ };
3707
+ var system = function system2(args) {
3708
+ if (args === void 0) {
3709
+ args = {};
3710
+ }
3711
+ var config9 = {};
3712
+ Object.keys(args).forEach(function(key) {
3713
+ var conf = args[key];
3714
+ if (conf === true) {
3715
+ config9[key] = createStyleFunction({
3716
+ property: key,
3717
+ scale: key
3718
+ });
3719
+ return;
3720
+ }
3721
+ if (typeof conf === "function") {
3722
+ config9[key] = conf;
3723
+ return;
3724
+ }
3725
+ config9[key] = createStyleFunction(conf);
3726
+ });
3727
+ var parser = createParser(config9);
3728
+ return parser;
3729
+ };
3730
+ var compose = function compose2() {
3731
+ var config9 = {};
3732
+ for (var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++) {
3733
+ parsers[_key] = arguments[_key];
3734
+ }
3735
+ parsers.forEach(function(parser2) {
3736
+ if (!parser2 || !parser2.config)
3737
+ return;
3738
+ (0, import_object_assign.default)(config9, parser2.config);
3739
+ });
3740
+ var parser = createParser(config9);
3741
+ return parser;
3742
+ };
3743
+
3744
+ // ../../node_modules/@styled-system/layout/dist/index.esm.js
3745
+ var isNumber = function isNumber2(n2) {
3746
+ return typeof n2 === "number" && !isNaN(n2);
3747
+ };
3748
+ var getWidth = function getWidth2(n2, scale) {
3749
+ return get(scale, n2, !isNumber(n2) || n2 > 1 ? n2 : n2 * 100 + "%");
3750
+ };
3751
+ var config = {
3752
+ width: {
3753
+ property: "width",
3754
+ scale: "sizes",
3755
+ transform: getWidth
3756
+ },
3757
+ height: {
3758
+ property: "height",
3759
+ scale: "sizes"
3760
+ },
3761
+ minWidth: {
3762
+ property: "minWidth",
3763
+ scale: "sizes"
3764
+ },
3765
+ minHeight: {
3766
+ property: "minHeight",
3767
+ scale: "sizes"
3768
+ },
3769
+ maxWidth: {
3770
+ property: "maxWidth",
3771
+ scale: "sizes"
3772
+ },
3773
+ maxHeight: {
3774
+ property: "maxHeight",
3775
+ scale: "sizes"
3776
+ },
3777
+ size: {
3778
+ properties: ["width", "height"],
3779
+ scale: "sizes"
3780
+ },
3781
+ overflow: true,
3782
+ overflowX: true,
3783
+ overflowY: true,
3784
+ display: true,
3785
+ verticalAlign: true
3786
+ };
3787
+ var layout = system(config);
3788
+ var index_esm_default = layout;
3789
+
3790
+ // ../../node_modules/@styled-system/color/dist/index.esm.js
3791
+ var config2 = {
3792
+ color: {
3793
+ property: "color",
3794
+ scale: "colors"
3795
+ },
3796
+ backgroundColor: {
3797
+ property: "backgroundColor",
3798
+ scale: "colors"
3799
+ },
3800
+ opacity: true
3801
+ };
3802
+ config2.bg = config2.backgroundColor;
3803
+ var color = system(config2);
3804
+ var index_esm_default2 = color;
3805
+
3806
+ // ../../node_modules/@styled-system/typography/dist/index.esm.js
3807
+ var defaults2 = {
3808
+ fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
3809
+ };
3810
+ var config3 = {
3811
+ fontFamily: {
3812
+ property: "fontFamily",
3813
+ scale: "fonts"
3814
+ },
3815
+ fontSize: {
3816
+ property: "fontSize",
3817
+ scale: "fontSizes",
3818
+ defaultScale: defaults2.fontSizes
3819
+ },
3820
+ fontWeight: {
3821
+ property: "fontWeight",
3822
+ scale: "fontWeights"
3823
+ },
3824
+ lineHeight: {
3825
+ property: "lineHeight",
3826
+ scale: "lineHeights"
3827
+ },
3828
+ letterSpacing: {
3829
+ property: "letterSpacing",
3830
+ scale: "letterSpacings"
3831
+ },
3832
+ textAlign: true,
3833
+ fontStyle: true
3834
+ };
3835
+ var typography2 = system(config3);
3836
+ var index_esm_default3 = typography2;
3837
+
3838
+ // ../../node_modules/@styled-system/flexbox/dist/index.esm.js
3839
+ var config4 = {
3840
+ alignItems: true,
3841
+ alignContent: true,
3842
+ justifyItems: true,
3843
+ justifyContent: true,
3844
+ flexWrap: true,
3845
+ flexDirection: true,
3846
+ // item
3847
+ flex: true,
3848
+ flexGrow: true,
3849
+ flexShrink: true,
3850
+ flexBasis: true,
3851
+ justifySelf: true,
3852
+ alignSelf: true,
3853
+ order: true
3854
+ };
3855
+ var flexbox = system(config4);
3856
+ var index_esm_default4 = flexbox;
3857
+
3858
+ // ../../node_modules/@styled-system/grid/dist/index.esm.js
3859
+ var defaults3 = {
3860
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
3861
+ };
3862
+ var config5 = {
3863
+ gridGap: {
3864
+ property: "gridGap",
3865
+ scale: "space",
3866
+ defaultScale: defaults3.space
3867
+ },
3868
+ gridColumnGap: {
3869
+ property: "gridColumnGap",
3870
+ scale: "space",
3871
+ defaultScale: defaults3.space
3872
+ },
3873
+ gridRowGap: {
3874
+ property: "gridRowGap",
3875
+ scale: "space",
3876
+ defaultScale: defaults3.space
3877
+ },
3878
+ gridColumn: true,
3879
+ gridRow: true,
3880
+ gridAutoFlow: true,
3881
+ gridAutoColumns: true,
3882
+ gridAutoRows: true,
3883
+ gridTemplateColumns: true,
3884
+ gridTemplateRows: true,
3885
+ gridTemplateAreas: true,
3886
+ gridArea: true
3887
+ };
3888
+ var grid = system(config5);
3889
+ var index_esm_default5 = grid;
3890
+
3891
+ // ../../node_modules/@styled-system/border/dist/index.esm.js
3892
+ var config6 = {
3893
+ border: {
3894
+ property: "border",
3895
+ scale: "borders"
3896
+ },
3897
+ borderWidth: {
3898
+ property: "borderWidth",
3899
+ scale: "borderWidths"
3900
+ },
3901
+ borderStyle: {
3902
+ property: "borderStyle",
3903
+ scale: "borderStyles"
3904
+ },
3905
+ borderColor: {
3906
+ property: "borderColor",
3907
+ scale: "colors"
3908
+ },
3909
+ borderRadius: {
3910
+ property: "borderRadius",
3911
+ scale: "radii"
3912
+ },
3913
+ borderTop: {
3914
+ property: "borderTop",
3915
+ scale: "borders"
3916
+ },
3917
+ borderTopLeftRadius: {
3918
+ property: "borderTopLeftRadius",
3919
+ scale: "radii"
3920
+ },
3921
+ borderTopRightRadius: {
3922
+ property: "borderTopRightRadius",
3923
+ scale: "radii"
3924
+ },
3925
+ borderRight: {
3926
+ property: "borderRight",
3927
+ scale: "borders"
3928
+ },
3929
+ borderBottom: {
3930
+ property: "borderBottom",
3931
+ scale: "borders"
3932
+ },
3933
+ borderBottomLeftRadius: {
3934
+ property: "borderBottomLeftRadius",
3935
+ scale: "radii"
3936
+ },
3937
+ borderBottomRightRadius: {
3938
+ property: "borderBottomRightRadius",
3939
+ scale: "radii"
3940
+ },
3941
+ borderLeft: {
3942
+ property: "borderLeft",
3943
+ scale: "borders"
3944
+ },
3945
+ borderX: {
3946
+ properties: ["borderLeft", "borderRight"],
3947
+ scale: "borders"
3948
+ },
3949
+ borderY: {
3950
+ properties: ["borderTop", "borderBottom"],
3951
+ scale: "borders"
3952
+ }
3953
+ };
3954
+ config6.borderTopWidth = {
3955
+ property: "borderTopWidth",
3956
+ scale: "borderWidths"
3957
+ };
3958
+ config6.borderTopColor = {
3959
+ property: "borderTopColor",
3960
+ scale: "colors"
3961
+ };
3962
+ config6.borderTopStyle = {
3963
+ property: "borderTopStyle",
3964
+ scale: "borderStyles"
3965
+ };
3966
+ config6.borderTopLeftRadius = {
3967
+ property: "borderTopLeftRadius",
3968
+ scale: "radii"
3969
+ };
3970
+ config6.borderTopRightRadius = {
3971
+ property: "borderTopRightRadius",
3972
+ scale: "radii"
3973
+ };
3974
+ config6.borderBottomWidth = {
3975
+ property: "borderBottomWidth",
3976
+ scale: "borderWidths"
3977
+ };
3978
+ config6.borderBottomColor = {
3979
+ property: "borderBottomColor",
3980
+ scale: "colors"
3981
+ };
3982
+ config6.borderBottomStyle = {
3983
+ property: "borderBottomStyle",
3984
+ scale: "borderStyles"
3985
+ };
3986
+ config6.borderBottomLeftRadius = {
3987
+ property: "borderBottomLeftRadius",
3988
+ scale: "radii"
3989
+ };
3990
+ config6.borderBottomRightRadius = {
3991
+ property: "borderBottomRightRadius",
3992
+ scale: "radii"
3993
+ };
3994
+ config6.borderLeftWidth = {
3995
+ property: "borderLeftWidth",
3996
+ scale: "borderWidths"
3997
+ };
3998
+ config6.borderLeftColor = {
3999
+ property: "borderLeftColor",
4000
+ scale: "colors"
4001
+ };
4002
+ config6.borderLeftStyle = {
4003
+ property: "borderLeftStyle",
4004
+ scale: "borderStyles"
4005
+ };
4006
+ config6.borderRightWidth = {
4007
+ property: "borderRightWidth",
4008
+ scale: "borderWidths"
4009
+ };
4010
+ config6.borderRightColor = {
4011
+ property: "borderRightColor",
4012
+ scale: "colors"
4013
+ };
4014
+ config6.borderRightStyle = {
4015
+ property: "borderRightStyle",
4016
+ scale: "borderStyles"
4017
+ };
4018
+ var border = system(config6);
4019
+ var index_esm_default6 = border;
4020
+
4021
+ // ../../node_modules/@styled-system/background/dist/index.esm.js
4022
+ var config7 = {
4023
+ background: true,
4024
+ backgroundImage: true,
4025
+ backgroundSize: true,
4026
+ backgroundPosition: true,
4027
+ backgroundRepeat: true
4028
+ };
4029
+ config7.bgImage = config7.backgroundImage;
4030
+ config7.bgSize = config7.backgroundSize;
4031
+ config7.bgPosition = config7.backgroundPosition;
4032
+ config7.bgRepeat = config7.backgroundRepeat;
4033
+ var background = system(config7);
4034
+ var index_esm_default7 = background;
4035
+
4036
+ // ../../node_modules/@styled-system/position/dist/index.esm.js
4037
+ var defaults4 = {
4038
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
4039
+ };
4040
+ var config8 = {
4041
+ position: true,
4042
+ zIndex: {
4043
+ property: "zIndex",
4044
+ scale: "zIndices"
4045
+ },
4046
+ top: {
4047
+ property: "top",
4048
+ scale: "space",
4049
+ defaultScale: defaults4.space
4050
+ },
4051
+ right: {
4052
+ property: "right",
4053
+ scale: "space",
4054
+ defaultScale: defaults4.space
4055
+ },
4056
+ bottom: {
4057
+ property: "bottom",
4058
+ scale: "space",
4059
+ defaultScale: defaults4.space
4060
+ },
4061
+ left: {
4062
+ property: "left",
4063
+ scale: "space",
4064
+ defaultScale: defaults4.space
4065
+ }
4066
+ };
4067
+ var position = system(config8);
4068
+ var index_esm_default8 = position;
4069
+
4070
+ // ../../node_modules/@styled-system/space/dist/index.esm.js
4071
+ var defaults5 = {
4072
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512]
4073
+ };
4074
+ var isNumber3 = function isNumber4(n2) {
4075
+ return typeof n2 === "number" && !isNaN(n2);
4076
+ };
4077
+ var getMargin = function getMargin2(n2, scale) {
4078
+ if (!isNumber3(n2)) {
4079
+ return get(scale, n2, n2);
4080
+ }
4081
+ var isNegative = n2 < 0;
4082
+ var absolute = Math.abs(n2);
4083
+ var value = get(scale, absolute, absolute);
4084
+ if (!isNumber3(value)) {
4085
+ return isNegative ? "-" + value : value;
4086
+ }
4087
+ return value * (isNegative ? -1 : 1);
4088
+ };
4089
+ var configs = {};
4090
+ configs.margin = {
4091
+ margin: {
4092
+ property: "margin",
4093
+ scale: "space",
4094
+ transform: getMargin,
4095
+ defaultScale: defaults5.space
4096
+ },
4097
+ marginTop: {
4098
+ property: "marginTop",
4099
+ scale: "space",
4100
+ transform: getMargin,
4101
+ defaultScale: defaults5.space
4102
+ },
4103
+ marginRight: {
4104
+ property: "marginRight",
4105
+ scale: "space",
4106
+ transform: getMargin,
4107
+ defaultScale: defaults5.space
4108
+ },
4109
+ marginBottom: {
4110
+ property: "marginBottom",
4111
+ scale: "space",
4112
+ transform: getMargin,
4113
+ defaultScale: defaults5.space
4114
+ },
4115
+ marginLeft: {
4116
+ property: "marginLeft",
4117
+ scale: "space",
4118
+ transform: getMargin,
4119
+ defaultScale: defaults5.space
4120
+ },
4121
+ marginX: {
4122
+ properties: ["marginLeft", "marginRight"],
4123
+ scale: "space",
4124
+ transform: getMargin,
4125
+ defaultScale: defaults5.space
4126
+ },
4127
+ marginY: {
4128
+ properties: ["marginTop", "marginBottom"],
4129
+ scale: "space",
4130
+ transform: getMargin,
4131
+ defaultScale: defaults5.space
4132
+ }
4133
+ };
4134
+ configs.margin.m = configs.margin.margin;
4135
+ configs.margin.mt = configs.margin.marginTop;
4136
+ configs.margin.mr = configs.margin.marginRight;
4137
+ configs.margin.mb = configs.margin.marginBottom;
4138
+ configs.margin.ml = configs.margin.marginLeft;
4139
+ configs.margin.mx = configs.margin.marginX;
4140
+ configs.margin.my = configs.margin.marginY;
4141
+ configs.padding = {
4142
+ padding: {
4143
+ property: "padding",
4144
+ scale: "space",
4145
+ defaultScale: defaults5.space
4146
+ },
4147
+ paddingTop: {
4148
+ property: "paddingTop",
4149
+ scale: "space",
4150
+ defaultScale: defaults5.space
4151
+ },
4152
+ paddingRight: {
4153
+ property: "paddingRight",
4154
+ scale: "space",
4155
+ defaultScale: defaults5.space
4156
+ },
4157
+ paddingBottom: {
4158
+ property: "paddingBottom",
4159
+ scale: "space",
4160
+ defaultScale: defaults5.space
4161
+ },
4162
+ paddingLeft: {
4163
+ property: "paddingLeft",
4164
+ scale: "space",
4165
+ defaultScale: defaults5.space
4166
+ },
4167
+ paddingX: {
4168
+ properties: ["paddingLeft", "paddingRight"],
4169
+ scale: "space",
4170
+ defaultScale: defaults5.space
4171
+ },
4172
+ paddingY: {
4173
+ properties: ["paddingTop", "paddingBottom"],
4174
+ scale: "space",
4175
+ defaultScale: defaults5.space
4176
+ }
4177
+ };
4178
+ configs.padding.p = configs.padding.padding;
4179
+ configs.padding.pt = configs.padding.paddingTop;
4180
+ configs.padding.pr = configs.padding.paddingRight;
4181
+ configs.padding.pb = configs.padding.paddingBottom;
4182
+ configs.padding.pl = configs.padding.paddingLeft;
4183
+ configs.padding.px = configs.padding.paddingX;
4184
+ configs.padding.py = configs.padding.paddingY;
4185
+ var margin = system(configs.margin);
4186
+ var padding = system(configs.padding);
4187
+ var space2 = compose(margin, padding);
4188
+
4189
+ // ../../node_modules/@styled-system/shadow/dist/index.esm.js
4190
+ var shadow = system({
4191
+ boxShadow: {
4192
+ property: "boxShadow",
4193
+ scale: "shadows"
4194
+ },
4195
+ textShadow: {
4196
+ property: "textShadow",
4197
+ scale: "shadows"
4198
+ }
4199
+ });
4200
+
4201
+ // ../../node_modules/@styled-system/css/dist/index.esm.js
4202
+ function _extends2() {
4203
+ _extends2 = Object.assign || function(target) {
4204
+ for (var i = 1; i < arguments.length; i++) {
4205
+ var source = arguments[i];
4206
+ for (var key in source) {
4207
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4208
+ target[key] = source[key];
4209
+ }
4210
+ }
4211
+ }
4212
+ return target;
4213
+ };
4214
+ return _extends2.apply(this, arguments);
4215
+ }
4216
+ var get3 = function get4(obj, key, def, p, undef) {
4217
+ key = key && key.split ? key.split(".") : [key];
4218
+ for (p = 0; p < key.length; p++) {
4219
+ obj = obj ? obj[key[p]] : undef;
4220
+ }
4221
+ return obj === undef ? def : obj;
4222
+ };
4223
+ var defaultBreakpoints = [40, 52, 64].map(function(n2) {
4224
+ return n2 + "em";
4225
+ });
4226
+ var defaultTheme = {
4227
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
4228
+ fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72]
4229
+ };
4230
+ var aliases = {
4231
+ bg: "backgroundColor",
4232
+ m: "margin",
4233
+ mt: "marginTop",
4234
+ mr: "marginRight",
4235
+ mb: "marginBottom",
4236
+ ml: "marginLeft",
4237
+ mx: "marginX",
4238
+ my: "marginY",
4239
+ p: "padding",
4240
+ pt: "paddingTop",
4241
+ pr: "paddingRight",
4242
+ pb: "paddingBottom",
4243
+ pl: "paddingLeft",
4244
+ px: "paddingX",
4245
+ py: "paddingY"
4246
+ };
4247
+ var multiples = {
4248
+ marginX: ["marginLeft", "marginRight"],
4249
+ marginY: ["marginTop", "marginBottom"],
4250
+ paddingX: ["paddingLeft", "paddingRight"],
4251
+ paddingY: ["paddingTop", "paddingBottom"],
4252
+ size: ["width", "height"]
4253
+ };
4254
+ var scales = {
4255
+ color: "colors",
4256
+ backgroundColor: "colors",
4257
+ borderColor: "colors",
4258
+ margin: "space",
4259
+ marginTop: "space",
4260
+ marginRight: "space",
4261
+ marginBottom: "space",
4262
+ marginLeft: "space",
4263
+ marginX: "space",
4264
+ marginY: "space",
4265
+ padding: "space",
4266
+ paddingTop: "space",
4267
+ paddingRight: "space",
4268
+ paddingBottom: "space",
4269
+ paddingLeft: "space",
4270
+ paddingX: "space",
4271
+ paddingY: "space",
4272
+ top: "space",
4273
+ right: "space",
4274
+ bottom: "space",
4275
+ left: "space",
4276
+ gridGap: "space",
4277
+ gridColumnGap: "space",
4278
+ gridRowGap: "space",
4279
+ gap: "space",
4280
+ columnGap: "space",
4281
+ rowGap: "space",
4282
+ fontFamily: "fonts",
4283
+ fontSize: "fontSizes",
4284
+ fontWeight: "fontWeights",
4285
+ lineHeight: "lineHeights",
4286
+ letterSpacing: "letterSpacings",
4287
+ border: "borders",
4288
+ borderTop: "borders",
4289
+ borderRight: "borders",
4290
+ borderBottom: "borders",
4291
+ borderLeft: "borders",
4292
+ borderWidth: "borderWidths",
4293
+ borderStyle: "borderStyles",
4294
+ borderRadius: "radii",
4295
+ borderTopRightRadius: "radii",
4296
+ borderTopLeftRadius: "radii",
4297
+ borderBottomRightRadius: "radii",
4298
+ borderBottomLeftRadius: "radii",
4299
+ borderTopWidth: "borderWidths",
4300
+ borderTopColor: "colors",
4301
+ borderTopStyle: "borderStyles",
4302
+ borderBottomWidth: "borderWidths",
4303
+ borderBottomColor: "colors",
4304
+ borderBottomStyle: "borderStyles",
4305
+ borderLeftWidth: "borderWidths",
4306
+ borderLeftColor: "colors",
4307
+ borderLeftStyle: "borderStyles",
4308
+ borderRightWidth: "borderWidths",
4309
+ borderRightColor: "colors",
4310
+ borderRightStyle: "borderStyles",
4311
+ outlineColor: "colors",
4312
+ boxShadow: "shadows",
4313
+ textShadow: "shadows",
4314
+ zIndex: "zIndices",
4315
+ width: "sizes",
4316
+ minWidth: "sizes",
4317
+ maxWidth: "sizes",
4318
+ height: "sizes",
4319
+ minHeight: "sizes",
4320
+ maxHeight: "sizes",
4321
+ flexBasis: "sizes",
4322
+ size: "sizes",
4323
+ // svg
4324
+ fill: "colors",
4325
+ stroke: "colors"
4326
+ };
4327
+ var positiveOrNegative = function positiveOrNegative2(scale, value) {
4328
+ if (typeof value !== "number" || value >= 0) {
4329
+ return get3(scale, value, value);
4330
+ }
4331
+ var absolute = Math.abs(value);
4332
+ var n2 = get3(scale, absolute, absolute);
4333
+ if (typeof n2 === "string")
4334
+ return "-" + n2;
4335
+ return n2 * -1;
4336
+ };
4337
+ var transforms = ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right"].reduce(function(acc, curr) {
4338
+ var _extends22;
4339
+ return _extends2({}, acc, (_extends22 = {}, _extends22[curr] = positiveOrNegative, _extends22));
4340
+ }, {});
4341
+ var responsive = function responsive2(styles) {
4342
+ return function(theme2) {
4343
+ var next = {};
4344
+ var breakpoints2 = get3(theme2, "breakpoints", defaultBreakpoints);
4345
+ var mediaQueries = [null].concat(breakpoints2.map(function(n2) {
4346
+ return "@media screen and (min-width: " + n2 + ")";
4347
+ }));
4348
+ for (var key in styles) {
4349
+ var value = typeof styles[key] === "function" ? styles[key](theme2) : styles[key];
4350
+ if (value == null)
4351
+ continue;
4352
+ if (!Array.isArray(value)) {
4353
+ next[key] = value;
4354
+ continue;
4355
+ }
4356
+ for (var i = 0; i < value.slice(0, mediaQueries.length).length; i++) {
4357
+ var media = mediaQueries[i];
4358
+ if (!media) {
4359
+ next[key] = value[i];
4360
+ continue;
4361
+ }
4362
+ next[media] = next[media] || {};
4363
+ if (value[i] == null)
4364
+ continue;
4365
+ next[media][key] = value[i];
4366
+ }
4367
+ }
4368
+ return next;
4369
+ };
4370
+ };
4371
+ var css3 = function css4(args) {
4372
+ return function(props) {
4373
+ if (props === void 0) {
4374
+ props = {};
4375
+ }
4376
+ var theme2 = _extends2({}, defaultTheme, {}, props.theme || props);
4377
+ var result = {};
4378
+ var obj = typeof args === "function" ? args(theme2) : args;
4379
+ var styles = responsive(obj)(theme2);
4380
+ for (var key in styles) {
4381
+ var x = styles[key];
4382
+ var val = typeof x === "function" ? x(theme2) : x;
4383
+ if (key === "variant") {
4384
+ var variant3 = css4(get3(theme2, val))(theme2);
4385
+ result = _extends2({}, result, {}, variant3);
4386
+ continue;
4387
+ }
4388
+ if (val && typeof val === "object") {
4389
+ result[key] = css4(val)(theme2);
4390
+ continue;
4391
+ }
4392
+ var prop = get3(aliases, key, key);
4393
+ var scaleName = get3(scales, prop);
4394
+ var scale = get3(theme2, scaleName, get3(theme2, prop, {}));
4395
+ var transform = get3(transforms, prop, get3);
4396
+ var value = transform(scale, val, val);
4397
+ if (multiples[prop]) {
4398
+ var dirs = multiples[prop];
4399
+ for (var i = 0; i < dirs.length; i++) {
4400
+ result[dirs[i]] = value;
4401
+ }
4402
+ } else {
4403
+ result[prop] = value;
4404
+ }
4405
+ }
4406
+ return result;
4407
+ };
4408
+ };
4409
+ var index_esm_default9 = css3;
4410
+
4411
+ // ../../node_modules/@styled-system/variant/dist/index.esm.js
4412
+ var variant = function variant2(_ref) {
4413
+ var _config;
4414
+ var scale = _ref.scale, _ref$prop = _ref.prop, prop = _ref$prop === void 0 ? "variant" : _ref$prop, _ref$variants = _ref.variants, variants = _ref$variants === void 0 ? {} : _ref$variants, key = _ref.key;
4415
+ var sx;
4416
+ if (Object.keys(variants).length) {
4417
+ sx = function sx2(value, scale2, props) {
4418
+ return index_esm_default9(get(scale2, value, null))(props.theme);
4419
+ };
4420
+ } else {
4421
+ sx = function sx2(value, scale2) {
4422
+ return get(scale2, value, null);
4423
+ };
4424
+ }
4425
+ sx.scale = scale || key;
4426
+ sx.defaults = variants;
4427
+ var config9 = (_config = {}, _config[prop] = sx, _config);
4428
+ var parser = createParser(config9);
4429
+ return parser;
4430
+ };
4431
+ var buttonStyle = variant({
4432
+ key: "buttons"
4433
+ });
4434
+ var textStyle = variant({
4435
+ key: "textStyles",
4436
+ prop: "textStyle"
4437
+ });
4438
+ var colorStyle = variant({
4439
+ key: "colorStyles",
4440
+ prop: "colors"
4441
+ });
4442
+
4443
+ // ../../node_modules/styled-system/dist/index.esm.js
4444
+ var width = index_esm_default.width;
4445
+ var height = index_esm_default.height;
4446
+ var minWidth = index_esm_default.minWidth;
4447
+ var minHeight = index_esm_default.minHeight;
4448
+ var maxWidth = index_esm_default.maxWidth;
4449
+ var maxHeight = index_esm_default.maxHeight;
4450
+ var size = index_esm_default.size;
4451
+ var verticalAlign = index_esm_default.verticalAlign;
4452
+ var display = index_esm_default.display;
4453
+ var overflow = index_esm_default.overflow;
4454
+ var overflowX = index_esm_default.overflowX;
4455
+ var overflowY = index_esm_default.overflowY;
4456
+ var opacity = index_esm_default2.opacity;
4457
+ var fontSize = index_esm_default3.fontSize;
4458
+ var fontFamily2 = index_esm_default3.fontFamily;
4459
+ var fontWeight = index_esm_default3.fontWeight;
4460
+ var lineHeight = index_esm_default3.lineHeight;
4461
+ var textAlign = index_esm_default3.textAlign;
4462
+ var fontStyle = index_esm_default3.fontStyle;
4463
+ var letterSpacing = index_esm_default3.letterSpacing;
4464
+ var alignItems = index_esm_default4.alignItems;
4465
+ var alignContent = index_esm_default4.alignContent;
4466
+ var justifyItems = index_esm_default4.justifyItems;
4467
+ var justifyContent = index_esm_default4.justifyContent;
4468
+ var flexWrap = index_esm_default4.flexWrap;
4469
+ var flexDirection = index_esm_default4.flexDirection;
4470
+ var flex = index_esm_default4.flex;
4471
+ var flexGrow = index_esm_default4.flexGrow;
4472
+ var flexShrink = index_esm_default4.flexShrink;
4473
+ var flexBasis = index_esm_default4.flexBasis;
4474
+ var justifySelf = index_esm_default4.justifySelf;
4475
+ var alignSelf = index_esm_default4.alignSelf;
4476
+ var order = index_esm_default4.order;
4477
+ var gridGap = index_esm_default5.gridGap;
4478
+ var gridColumnGap = index_esm_default5.gridColumnGap;
4479
+ var gridRowGap = index_esm_default5.gridRowGap;
4480
+ var gridColumn = index_esm_default5.gridColumn;
4481
+ var gridRow = index_esm_default5.gridRow;
4482
+ var gridAutoFlow = index_esm_default5.gridAutoFlow;
4483
+ var gridAutoColumns = index_esm_default5.gridAutoColumns;
4484
+ var gridAutoRows = index_esm_default5.gridAutoRows;
4485
+ var gridTemplateColumns = index_esm_default5.gridTemplateColumns;
4486
+ var gridTemplateRows = index_esm_default5.gridTemplateRows;
4487
+ var gridTemplateAreas = index_esm_default5.gridTemplateAreas;
4488
+ var gridArea = index_esm_default5.gridArea;
4489
+ var borderWidth = index_esm_default6.borderWidth;
4490
+ var borderStyle = index_esm_default6.borderStyle;
4491
+ var borderColor = index_esm_default6.borderColor;
4492
+ var borderTop = index_esm_default6.borderTop;
4493
+ var borderRight = index_esm_default6.borderRight;
4494
+ var borderBottom = index_esm_default6.borderBottom;
4495
+ var borderLeft = index_esm_default6.borderLeft;
4496
+ var borderRadius = index_esm_default6.borderRadius;
4497
+ var backgroundImage = index_esm_default7.backgroundImage;
4498
+ var backgroundSize = index_esm_default7.backgroundSize;
4499
+ var backgroundPosition = index_esm_default7.backgroundPosition;
4500
+ var backgroundRepeat = index_esm_default7.backgroundRepeat;
4501
+ var zIndex = index_esm_default8.zIndex;
4502
+ var top = index_esm_default8.top;
4503
+ var right = index_esm_default8.right;
4504
+ var bottom = index_esm_default8.bottom;
4505
+ var left = index_esm_default8.left;
4506
+
4507
+ // ../seeds-react-partner-logo/dist/esm/index.js
4508
+ import "react";
4509
+
4510
+ // ../../seeds-assets/seeds-partner-logos/dist/index.mjs
4511
+ var ViewBoxes = { "adobe-experience-manager-dark": "0 0 18 18", "adobe-experience-manager": "0 0 18 18", "android-dark": "0 0 18 18", "android": "0 0 18 18", "apple-app-store-dark": "0 0 18 18", "apple-app-store": "0 0 18 18", "apple-dark": "0 0 18 18", "apple": "0 0 18 18", "bigcommerce-dark": "0 0 18 18", "bigcommerce-lockup-dark": "0 0 291 66", "bigcommerce-lockup": "0 0 291 66", "bigcommerce": "0 0 18 18", "bitly-dark": "0 0 18 18", "bitly": "0 0 18 18", "bluesky-dark": "0 0 18 18", "bluesky": "0 0 18 18", "bynder-dark": "0 0 18 18", "bynder": "0 0 18 18", "canva-dark": "0 0 18 18", "canva": "0 0 18 18", "dropbox-dark": "0 0 18 18", "dropbox-lockup-dark": "0 0 291 57", "dropbox-lockup": "0 0 291 57", "dropbox-wordmark-dark": "0 0 308 71", "dropbox-wordmark": "0 0 308 71", "dropbox": "0 0 18 18", "facebook-audience-network-dark": "0 0 18 18", "facebook-audience-network": "0 0 18 18", "facebook-dark": "0 0 18 18", "facebook-groups-dark": "0 0 18 18", "facebook-groups": "0 0 18 18", "facebook-shops-dark": "0 0 18 18", "facebook-shops": "0 0 18 18", "facebook": "0 0 18 18", "feedly-dark": "0 0 18 18", "feedly": "0 0 18 18", "github-dark": "0 0 18 18", "github": "0 0 18 18", "glassdoor-dark": "0 0 18 18", "glassdoor": "0 0 18 18", "google-analytics-dark": "0 0 18 18", "google-analytics": "0 0 18 18", "google-business-messages-dark": "0 0 18 18", "google-business-messages": "0 0 18 18", "google-drive-dark": "0 0 18 18", "google-drive": "0 0 18 18", "google-my-business-dark": "0 0 18 18", "google-my-business": "0 0 18 18", "google-play-store-dark": "0 0 16 18", "google-play-store": "0 0 16 18", "hubspot-dark": "0 0 18 18", "hubspot": "0 0 18 18", "instagram-dark": "0 0 18 18", "instagram": "0 0 18 18", "linkedin-audience-network-dark": "0 0 18 18", "linkedin-audience-network": "0 0 18 18", "linkedin-dark": "0 0 18 18", "linkedin": "0 0 18 18", "marketo-dark": "0 0 18 18", "marketo": "0 0 18 18", "messenger-dark": "0 0 18 18", "messenger": "0 0 18 18", "meta-dark": "0 0 18 18", "meta-lockup-dark": "0 0 273 55", "meta-lockup": "0 0 273 55", "meta": "0 0 18 18", "microsoft-dynamics-dark": "0 0 18 18", "microsoft-dynamics": "0 0 18 18", "paypal-lockup-dark": "0 0 245 60", "paypal-lockup": "0 0 245 60", "pinterest-dark": "0 0 18 18", "pinterest": "0 0 18 18", "reddit-dark": "0 0 18 18", "reddit": "0 0 18 18", "salesforce-cloud-dark": "0 0 20 18", "salesforce-cloud": "0 0 20 18", "salesforce-dark": "0 0 20 18", "salesforce": "0 0 20 18", "shopify-dark": "0 0 18 18", "shopify": "0 0 18 18", "slack-dark": "0 0 18 18", "slack": "0 0 18 18", "sproutsocial-dark": "0 0 18 18", "sproutsocial-lockup-dark": "0 0 291 58", "sproutsocial-lockup": "0 0 291 58", "sproutsocial-wordmark-dark": "0 0 320 52", "sproutsocial-wordmark": "0 0 320 52", "sproutsocial": "0 0 18 18", "tableau-dark": "0 0 18 18", "tableau-lockup-dark": "0 0 291 56", "tableau-lockup": "0 0 291 56", "tableau": "0 0 18 18", "threads-dark": "0 0 18 18", "threads": "0 0 18 18", "tiktok-dark": "0 0 18 18", "tiktok-lockup-dark": "0 0 276 68", "tiktok-lockup": "0 0 275 67", "tiktok": "0 0 18 18", "tripadvisor-dark": "0 0 18 18", "tripadvisor": "0 0 18 18", "trustpilot-dark": "0 0 18 18", "trustpilot": "0 0 18 18", "tumblr-dark": "0 0 18 18", "tumblr": "0 0 18 18", "twitter-audience-network-dark": "0 0 18 18", "twitter-audience-network": "0 0 18 18", "twitter-dark": "0 0 18 18", "twitter": "0 0 18 18", "whatsapp-dark": "0 0 18 18", "whatsapp": "0 0 18 18", "woocommerce-dark": "0 0 18 18", "woocommerce": "0 0 18 18", "x-twitter-dark": "0 0 18 18", "x-twitter": "0 0 18 18", "yelp-dark": "0 0 18 18", "yelp": "0 0 18 18", "youtube-dark": "0 0 18 18", "youtube-lockup-dark": "0 0 265 59", "youtube-lockup": "0 0 265 59", "youtube": "0 0 18 18", "zendesk-dark": "0 0 18 18", "zendesk-lockup-dark": "0 0 160 115", "zendesk-lockup": "0 0 160 115", "zendesk-wordmark-dark": "0 0 350 68", "zendesk-wordmark": "0 0 350 68", "zendesk": "0 0 18 18" };
4512
+ var LogoNamesWithoutVariants = ["adobe-experience-manager", "android", "apple-app-store", "apple", "bigcommerce", "bitly", "bluesky", "bynder", "canva", "dropbox", "facebook-audience-network", "facebook", "facebook-groups", "facebook-shops", "feedly", "github", "glassdoor", "google-analytics", "google-business-messages", "google-drive", "google-my-business", "google-play-store", "hubspot", "instagram", "linkedin-audience-network", "linkedin", "marketo", "messenger", "meta", "microsoft-dynamics", "paypal", "pinterest", "reddit", "salesforce-cloud", "salesforce", "shopify", "slack", "sproutsocial", "tableau", "threads", "tiktok", "tripadvisor", "trustpilot", "tumblr", "twitter-audience-network", "twitter", "whatsapp", "woocommerce", "x-twitter", "yelp", "youtube", "zendesk"];
4513
+
4514
+ // ../seeds-react-partner-logo/dist/esm/index.js
4515
+ import { jsx as jsx9 } from "react/jsx-runtime";
4516
+ var PartnerLogoSizes = {
4517
+ mini: "12px",
4518
+ small: "16px",
4519
+ medium: "24px",
4520
+ large: "32px",
4521
+ jumbo: "64px"
4522
+ };
4523
+ var stylesForSize = (height2, logoSize) => css5`
4524
+ height: ${logoSize ? logoSize : height2};
4525
+ line-height: ${logoSize ? logoSize : height2};
4526
+
4527
+ .logo-svg {
4528
+ height: ${logoSize ? logoSize : height2};
4529
+ width: ${logoSize ? logoSize : ""};
4530
+ }
4531
+ `;
4532
+ var Container3 = styled6("span")`
4533
+ display: inline-block;
4534
+ color: inherit;
4535
+ vertical-align: middle;
4536
+ ${ke}
4537
+ ${Ee}
4538
+ ${verticalAlign}
4539
+ ${(props) => stylesForSize(props.height, PartnerLogoSizes[props.logoSize])}
4540
+ `;
4541
+ var styles_default3 = Container3;
4542
+ var whichLogo = ({
4543
+ backgroundType,
4544
+ logoType,
4545
+ partnerName
4546
+ }, mode) => {
4547
+ const logo = logoType && logoType !== "symbol" ? partnerName + "-" + logoType : partnerName;
4548
+ if (backgroundType && backgroundType === "dark") {
4549
+ return `${logo}-dark`;
4550
+ } else if (backgroundType && backgroundType === "light") {
4551
+ return logo;
4552
+ } else if (mode === "dark") {
4553
+ return `${logo}-dark`;
4554
+ } else {
4555
+ return logo;
4556
+ }
4557
+ };
4558
+ var PartnerLogo = ({
4559
+ partnerName,
4560
+ backgroundType,
4561
+ logoType = "symbol",
4562
+ height: height2,
4563
+ width: width2,
4564
+ size: size2,
4565
+ "aria-label": ariaLabel,
4566
+ svgProps,
4567
+ ...rest
4568
+ }) => {
4569
+ const { mode } = useTheme();
4570
+ const logo = whichLogo({ backgroundType, logoType, partnerName }, mode);
4571
+ const logoViewBox = ViewBoxes[logo];
4572
+ const viewBoxCoordinates = logoViewBox?.split(" ") || [];
4573
+ const defaultWidth = viewBoxCoordinates[2];
4574
+ const defaultHeight = viewBoxCoordinates[3];
4575
+ return /* @__PURE__ */ jsx9(
4576
+ styles_default3,
4577
+ {
4578
+ height: height2 ? height2 : defaultHeight + "px",
4579
+ width: width2 ? width2 : defaultWidth + "px",
4580
+ logoSize: size2,
4581
+ className: "logo",
4582
+ role: "img",
4583
+ "aria-label": ariaLabel,
4584
+ "data-qa-logo": partnerName,
4585
+ ...rest,
4586
+ children: /* @__PURE__ */ jsx9(
4587
+ "svg",
4588
+ {
4589
+ className: "logo-svg",
4590
+ viewBox: logoViewBox,
4591
+ focusable: false,
4592
+ "data-qa-logo-svg": `${partnerName}-svg`,
4593
+ ...svgProps,
4594
+ children: /* @__PURE__ */ jsx9(
4595
+ "use",
4596
+ {
4597
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
4598
+ xlinkHref: `#seeds-svgs_${logo}`
4599
+ }
4600
+ )
4601
+ }
4602
+ )
4603
+ }
4604
+ );
4605
+ };
4606
+ var PartnerLogo_default = PartnerLogo;
4607
+ var src_default2 = PartnerLogo_default;
4608
+
4609
+ // ../seeds-react-utilities/dist/index.mjs
4610
+ function includes(coll, el) {
4611
+ return coll.includes(el);
4612
+ }
4613
+
4614
+ // ../seeds-react-icon/dist/esm/index.js
4615
+ import styled7, { css as css6 } from "styled-components";
4616
+
4617
+ // ../../seeds-assets/seeds-icons/dist/index.mjs
4618
+ var GeneralViewBoxes = { "alarm-clock-outline": "0 0 18 18", "alarm-clock-solid": "0 0 18 18", "all-caps-outline": "0 0 18 18", "all-caps-solid": "0 0 18 18", "alt-text-outline": "0 0 18 18", "alt-text-solid": "0 0 18 18", "arrow-down-outline": "0 0 18 18", "arrow-down-solid": "0 0 18 18", "arrow-down-to-bracket-outline": "0 0 18 18", "arrow-down-to-bracket-solid": "0 0 18 18", "arrow-down-to-line-outline": "0 0 18 18", "arrow-down-to-line-solid": "0 0 18 18", "arrow-left-outline": "0 0 18 18", "arrow-left-solid": "0 0 18 18", "arrow-left-to-line-outline": "0 0 18 18", "arrow-left-to-line-solid": "0 0 18 18", "arrow-right-down-outline": "0 0 18 18", "arrow-right-down-solid": "0 0 18 18", "arrow-right-from-bracket-outline": "0 0 18 18", "arrow-right-from-bracket-solid": "0 0 18 18", "arrow-right-outline": "0 0 18 18", "arrow-right-solid": "0 0 18 18", "arrow-right-to-line-outline": "0 0 18 18", "arrow-right-to-line-solid": "0 0 18 18", "arrow-right-up-outline": "0 0 18 18", "arrow-right-up-solid": "0 0 18 18", "arrow-turn-left-outline": "0 0 18 18", "arrow-turn-left-solid": "0 0 18 18", "arrow-turn-right-outline": "0 0 18 18", "arrow-turn-right-solid": "0 0 18 18", "arrow-up-from-bracket-outline": "0 0 18 18", "arrow-up-from-bracket-solid": "0 0 18 18", "arrow-up-outline": "0 0 18 18", "arrow-up-solid": "0 0 18 18", "arrow-up-to-line-outline": "0 0 18 18", "arrow-up-to-line-solid": "0 0 18 18", "arrows-left-right-outline": "0 0 18 18", "arrows-left-right-solid": "0 0 18 18", "arrows-pointing-in-outline": "0 0 18 18", "arrows-pointing-in-solid": "0 0 18 18", "arrows-pointing-out-outline": "0 0 18 18", "arrows-pointing-out-solid": "0 0 18 18", "arrows-rotate-outline": "0 0 18 18", "arrows-rotate-solid": "0 0 18 18", "arrows-up-down-left-right-outline": "0 0 18 18", "arrows-up-down-left-right-solid": "0 0 18 18", "art-palette-outline": "0 0 18 18", "art-palette-solid": "0 0 18 18", "atom-outline": "0 0 18 18", "atom-solid": "0 0 18 18", "audio-outline": "0 0 18 18", "audio-solid": "0 0 18 18", "ban-outline": "0 0 18 18", "ban-solid": "0 0 18 18", "barcode-outline": "0 0 18 18", "barcode-solid": "0 0 18 18", "bars-density-large-outline": "0 0 18 18", "bars-density-large-solid": "0 0 18 18", "bars-density-medium-outline": "0 0 18 18", "bars-density-medium-solid": "0 0 18 18", "bars-density-small-outline": "0 0 18 18", "bars-density-small-solid": "0 0 18 18", "bars-density-two-panel-outline": "0 0 18 18", "bars-density-two-panel-solid": "0 0 18 18", "basketball-outline": "0 0 18 18", "basketball-solid": "0 0 18 18", "beaker-outline": "0 0 18 18", "beaker-solid": "0 0 18 18", "bell-outline": "0 0 18 18", "bell-slash-outline": "0 0 18 18", "bell-slash-solid": "0 0 18 18", "bell-solid": "0 0 18 18", "bold-outline": "0 0 18 18", "bold-solid": "0 0 18 18", "book-open-outline": "0 0 18 18", "book-open-solid": "0 0 18 18", "book-outline": "0 0 18 18", "book-solid": "0 0 18 18", "bookmark-filter-outline": "0 0 18 18", "bookmark-filter-solid": "0 0 18 18", "bookmark-outline": "0 0 18 18", "bookmark-reply-outline": "0 0 18 18", "bookmark-reply-solid": "0 0 18 18", "bookmark-solid": "0 0 18 18", "briefcase-outline": "0 0 18 18", "briefcase-solid": "0 0 18 18", "browser-nav-bar-outline": "0 0 18 18", "browser-nav-bar-solid": "0 0 18 18", "browser-outline": "0 0 18 18", "browser-restore-outline": "0 0 18 18", "browser-restore-solid": "0 0 18 18", "browser-solid": "0 0 18 18", "bullseye-arrow-outline": "0 0 18 18", "bullseye-arrow-solid": "0 0 18 18", "calculator-outline": "0 0 18 18", "calculator-solid": "0 0 18 18", "calendar-clock-outline": "0 0 18 18", "calendar-clock-solid": "0 0 18 18", "calendar-day-outline": "0 0 18 18", "calendar-day-solid": "0 0 18 18", "calendar-outline": "0 0 18 18", "calendar-range-outline": "0 0 18 18", "calendar-range-solid": "0 0 18 18", "calendar-solid": "0 0 18 18", "camera-outline": "0 0 18 18", "camera-solid": "0 0 18 18", "camera-story-outline": "0 0 18 18", "camera-story-solid": "0 0 18 18", "camera-x-outline": "0 0 18 18", "camera-x-solid": "0 0 18 18", "caret-down-outline": "0 0 18 18", "caret-down-solid": "0 0 18 18", "caret-up-down-outline": "0 0 18 18", "caret-up-down-solid": "0 0 18 18", "caret-up-down-sort-down-outline": "0 0 18 18", "caret-up-down-sort-down-solid": "0 0 18 18", "caret-up-down-sort-up-outline": "0 0 18 18", "caret-up-down-sort-up-solid": "0 0 18 18", "caret-up-outline": "0 0 18 18", "caret-up-solid": "0 0 18 18", "carousel-outline": "0 0 18 18", "carousel-solid": "0 0 18 18", "cart-outline": "0 0 18 18", "cart-plus-outline": "0 0 18 18", "cart-plus-solid": "0 0 18 18", "cart-solid": "0 0 18 18", "chart-area-outline": "0 0 18 18", "chart-area-solid": "0 0 18 18", "chart-arrow-down-outline": "0 0 18 18", "chart-arrow-down-solid": "0 0 18 18", "chart-arrow-neutral-outline": "0 0 18 18", "chart-arrow-neutral-solid": "0 0 18 18", "chart-arrow-up-outline": "0 0 18 18", "chart-arrow-up-solid": "0 0 18 18", "chart-bar-outline": "0 0 18 18", "chart-bar-simple-outline": "0 0 18 18", "chart-bar-simple-solid": "0 0 18 18", "chart-bar-solid": "0 0 18 18", "chart-bar-sparkle-outline": "0 0 18 18", "chart-bar-sparkle-solid": "0 0 18 18", "chart-donut-outline": "0 0 18 18", "chart-donut-solid": "0 0 18 18", "chart-line-average-outline": "0 0 18 18", "chart-line-average-solid": "0 0 18 18", "chart-line-outline": "0 0 18 18", "chart-line-solid": "0 0 18 18", "chart-pie-outline": "0 0 18 18", "chart-pie-solid": "0 0 18 18", "check-outline": "0 0 18 18", "check-solid": "0 0 18 18", "chevron-down-outline": "0 0 18 18", "chevron-down-solid": "0 0 18 18", "chevron-left-outline": "0 0 18 18", "chevron-left-solid": "0 0 18 18", "chevron-right-outline": "0 0 18 18", "chevron-right-solid": "0 0 18 18", "chevron-up-outline": "0 0 18 18", "chevron-up-solid": "0 0 18 18", "circle-check-double-outline": "0 0 21 18", "circle-check-double-solid": "0 0 21 18", "circle-check-outline": "0 0 18 18", "circle-check-solid": "0 0 18 18", "circle-dollar-arrow-up-outline": "0 0 22 18", "circle-dollar-arrow-up-solid": "0 0 22 18", "circle-dollar-outline": "0 0 18 18", "circle-dollar-solid": "0 0 18 18", "circle-exclamation-outline": "0 0 18 18", "circle-exclamation-solid": "0 0 18 18", "circle-fill-outline": "0 0 18 18", "circle-fill-solid": "0 0 18 18", "circle-half-outline": "0 0 18 18", "circle-half-solid": "0 0 18 18", "circle-i-outline": "0 0 18 18", "circle-i-solid": "0 0 18 18", "circle-minus-outline": "0 0 18 18", "circle-minus-solid": "0 0 18 18", "circle-no-fill-outline": "0 0 18 18", "circle-no-fill-solid": "0 0 18 18", "circle-overlap-outline": "0 0 18 18", "circle-overlap-solid": "0 0 18 18", "circle-person-outline": "0 0 18 18", "circle-person-solid": "0 0 18 18", "circle-question-outline": "0 0 18 18", "circle-question-solid": "0 0 18 18", "circle-user-outline": "0 0 18 18", "circle-user-solid": "0 0 18 18", "circle-vertical-lines-outline": "0 0 18 18", "circle-vertical-lines-solid": "0 0 18 18", "circle-x-outline": "0 0 18 18", "circle-x-solid": "0 0 18 18", "clipboard-outline": "0 0 18 18", "clipboard-solid": "0 0 18 18", "clock-outline": "0 0 18 18", "clock-rotate-left-outline": "0 0 18 18", "clock-rotate-left-solid": "0 0 18 18", "clock-solid": "0 0 18 18", "closed-caption-outline": "0 0 18 18", "closed-caption-solid": "0 0 18 18", "cloud-outline": "0 0 18 18", "cloud-solid": "0 0 18 18", "code-outline": "0 0 18 18", "code-solid": "0 0 18 18", "columns-outline": "0 0 18 18", "columns-solid": "0 0 18 18", "comment-plus-outline": "0 0 18 18", "comment-plus-solid": "0 0 18 18", "comment-slash-outline": "0 0 18 18", "comment-slash-solid": "0 0 18 18", "comment-star-outline": "0 0 18 18", "comment-star-slash-outline": "0 0 18 18", "comment-star-slash-solid": "0 0 18 18", "comment-star-solid": "0 0 18 18", "compass-outline": "0 0 18 18", "compass-solid": "0 0 18 18", "credit-card-outline": "0 0 18 18", "credit-card-solid": "0 0 18 18", "crop-outline": "0 0 18 18", "crop-solid": "0 0 18 18", "crown-outline": "0 0 18 18", "crown-solid": "0 0 18 18", "curly-brackets-plus-outline": "0 0 18 18", "curly-brackets-plus-solid": "0 0 18 18", "delete-left-outline": "0 0 18 18", "delete-left-solid": "0 0 18 18", "diamond-line-outline": "0 0 18 18", "diamond-line-solid": "0 0 18 18", "diamond-outline": "0 0 18 18", "diamond-solid": "0 0 18 18", "diamond-vs-outline": "0 0 18 18", "diamond-vs-solid": "0 0 18 18", "dollar-outline": "0 0 18 18", "dollar-solid": "0 0 18 18", "ellipsis-horizontal-outline": "0 0 18 18", "ellipsis-horizontal-solid": "0 0 18 18", "ellipsis-vertical-outline": "0 0 18 18", "ellipsis-vertical-solid": "0 0 18 18", "envelope-outline": "0 0 18 18", "envelope-solid": "0 0 18 18", "expression-frown-outline": "0 0 18 18", "expression-frown-solid": "0 0 18 18", "expression-neutral-outline": "0 0 18 18", "expression-neutral-solid": "0 0 18 18", "expression-smile-open-outline": "0 0 18 18", "expression-smile-open-solid": "0 0 18 18", "eye-dropper-outline": "0 0 18 18", "eye-dropper-solid": "0 0 18 18", "eye-outline": "0 0 18 18", "eye-slash-outline": "0 0 18 18", "eye-slash-solid": "0 0 18 18", "eye-solid": "0 0 18 18", "face-frown-open-outline": "0 0 18 18", "face-frown-open-solid": "0 0 18 18", "face-frown-outline": "0 0 18 18", "face-frown-solid": "0 0 18 18", "face-neutral-outline": "0 0 18 18", "face-neutral-solid": "0 0 18 18", "face-smile-open-outline": "0 0 18 18", "face-smile-open-solid": "0 0 18 18", "face-smile-outline": "0 0 18 18", "face-smile-solid": "0 0 18 18", "file-box-arrow-up-outline": "0 0 18 18", "file-box-arrow-up-solid": "0 0 18 18", "file-box-outline": "0 0 18 18", "file-box-solid": "0 0 18 18", "filter-outline": "0 0 18 18", "filter-solid": "0 0 18 18", "fire-outline": "0 0 18 18", "fire-solid": "0 0 18 18", "flag-outline": "0 0 18 18", "flag-solid": "0 0 18 18", "folder-open-outline": "0 0 18 18", "folder-open-solid": "0 0 18 18", "folder-outline": "0 0 18 18", "folder-solid": "0 0 18 18", "font-case-outline": "0 0 18 18", "font-case-solid": "0 0 18 18", "four-squares-outline": "0 0 18 18", "four-squares-solid": "0 0 18 18", "gauge-outline": "0 0 18 18", "gauge-solid": "0 0 18 18", "gear-outline": "0 0 18 18", "gear-solid": "0 0 18 18", "gem-outline": "0 0 18 18", "gem-solid": "0 0 18 18", "gif-outline": "0 0 18 18", "gif-solid": "0 0 18 18", "glasses-outline": "0 0 18 18", "glasses-solid": "0 0 18 18", "globe-outline": "0 0 18 18", "globe-solid": "0 0 18 18", "grip-lines-vertical-outline": "0 0 18 18", "grip-lines-vertical-solid": "0 0 18 18", "h1-outline": "0 0 18 18", "h1-solid": "0 0 18 18", "h2-outline": "0 0 18 18", "h2-solid": "0 0 18 18", "h3-outline": "0 0 18 18", "h3-solid": "0 0 18 18", "h4-outline": "0 0 18 18", "h4-solid": "0 0 18 18", "hand-pointer-clicking-outline": "0 0 18 18", "hand-pointer-clicking-solid": "0 0 18 18", "handshake-outline": "0 0 18 18", "handshake-solid": "0 0 18 18", "hashtag-outline": "0 0 18 18", "hashtag-solid": "0 0 18 18", "headset-outline": "0 0 18 18", "headset-solid": "0 0 18 18", "heart-outline": "0 0 18 18", "heart-pulse-outline": "0 0 18 18", "heart-pulse-solid": "0 0 18 18", "heart-solid": "0 0 18 18", "horizontal-lines-outline": "0 0 18 18", "horizontal-lines-solid": "0 0 18 18", "hourglass-outline": "0 0 18 18", "hourglass-solid": "0 0 18 18", "house-outline": "0 0 18 18", "house-solid": "0 0 18 18", "image-outline": "0 0 18 18", "image-solid": "0 0 18 18", "images-outline": "0 0 18 18", "images-solid": "0 0 18 18", "inbox-arrow-up-outline": "0 0 18 18", "inbox-arrow-up-solid": "0 0 18 18", "inbox-check-outline": "0 0 18 18", "inbox-check-solid": "0 0 18 18", "inbox-lightning-bolt-outline": "0 0 18 18", "inbox-lightning-bolt-solid": "0 0 18 18", "inbox-outline": "0 0 18 18", "inbox-solid": "0 0 18 18", "inboxes-outline": "0 0 18 18", "inboxes-solid": "0 0 18 18", "infinity-outline": "0 0 18 18", "infinity-solid": "0 0 18 18", "insert-after-outline": "0 0 18 18", "insert-after-solid": "0 0 18 18", "italics-outline": "0 0 18 18", "italics-solid": "0 0 18 18", "justify-center-outline": "0 0 18 18", "justify-center-solid": "0 0 18 18", "justify-left-outline": "0 0 18 18", "justify-left-solid": "0 0 18 18", "justify-right-outline": "0 0 18 18", "justify-right-solid": "0 0 18 18", "key-outline": "0 0 18 18", "key-solid": "0 0 18 18", "keyboard-outline": "0 0 18 18", "keyboard-solid": "0 0 18 18", "language-outline": "0 0 18 18", "language-solid": "0 0 18 18", "laptop-mobile-outline": "0 0 18 18", "laptop-mobile-solid": "0 0 18 18", "large-circle-small-circle-outline": "0 0 18 18", "large-circle-small-circle-solid": "0 0 18 18", "larger-circle-small-circle-outline": "0 0 24 24", "larger-circle-small-circle-solid": "0 0 24 24", "lightbulb-outline": "0 0 18 18", "lightbulb-solid": "0 0 18 18", "lightning-bolt-outline": "0 0 18 18", "lightning-bolt-solid": "0 0 18 18", "link-broken-outline": "0 0 18 18", "link-broken-solid": "0 0 18 18", "link-outline": "0 0 18 18", "link-slash-outline": "0 0 18 18", "link-slash-solid": "0 0 18 18", "link-solid": "0 0 18 18", "locate-outline": "0 0 24 24", "locate-solid": "0 0 24 24", "location-pin-outline": "0 0 18 18", "location-pin-solid": "0 0 18 18", "lock-outline": "0 0 18 18", "lock-solid": "0 0 18 18", "magic-wand-outline": "0 0 18 18", "magic-wand-solid": "0 0 18 18", "magnifying-glass-chart-outline": "0 0 18 18", "magnifying-glass-chart-solid": "0 0 18 18", "magnifying-glass-outline": "0 0 18 18", "magnifying-glass-solid": "0 0 18 18", "magnifying-glass-twitter-outline": "0 0 18 18", "magnifying-glass-twitter-solid": "0 0 18 18", "make-longer-outline": "0 0 18 18", "make-longer-solid": "0 0 18 18", "make-shorter-outline": "0 0 18 18", "make-shorter-solid": "0 0 18 18", "masks-theater-outline": "0 0 22 18", "masks-theater-soild": "0 0 22 18", "masks-theater-solid": "0 0 22 18", "megaphone-dollar-outline": "0 0 18 18", "megaphone-dollar-solid": "0 0 18 18", "megaphone-outline": "0 0 18 18", "megaphone-solid": "0 0 18 18", "metric-table-outline": "0 0 18 18", "metric-table-solid": "0 0 18 18", "microphone-outline": "0 0 18 18", "microphone-solid": "0 0 18 18", "minus-outline": "0 0 18 18", "minus-solid": "0 0 18 18", "mobile-outline": "0 0 18 18", "mobile-solid": "0 0 18 18", "mood-boards-outline": "0 0 18 18", "mood-boards-solid": "0 0 18 18", "moon-crescent-outline": "0 0 18 18", "moon-crescent-solid": "0 0 18 18", "newspaper-outline": "0 0 18 18", "newspaper-solid": "0 0 18 18", "note-outline": "0 0 18 18", "note-solid": "0 0 18 18", "office-building-outline": "0 0 18 18", "office-building-solid": "0 0 18 18", "ordered-list-outline": "0 0 18 18", "ordered-list-solid": "0 0 18 18", "paint-can-outline": "0 0 18 18", "paint-can-solid": "0 0 18 18", "paper-bars-outline": "0 0 18 18", "paper-bars-solid": "0 0 18 18", "paper-outline": "0 0 18 18", "paper-pencil-outline": "0 0 18 18", "paper-pencil-solid": "0 0 18 18", "paper-plane-arrows-rotate-outline": "0 0 18 18", "paper-plane-arrows-rotate-solid": "0 0 18 18", "paper-plane-outline": "0 0 18 18", "paper-plane-solid": "0 0 18 18", "paper-solid": "0 0 18 18", "paper-x-outline": "0 0 18 18", "paper-x-solid": "0 0 18 18", "paperclip-outline": "0 0 18 18", "paperclip-solid": "0 0 18 18", "papers-outline": "0 0 18 18", "papers-solid": "0 0 18 18", "pattern-circle-triangle-square-outline": "0 0 18 18", "pattern-circle-triangle-square-solid": "0 0 18 18", "pause-outline": "0 0 18 18", "pause-solid": "0 0 18 18", "pencil-outline": "0 0 18 18", "pencil-solid": "0 0 18 18", "pencil-sparkle-outline": "0 0 18 18", "pencil-sparkle-solid": "0 0 18 18", "person-hiking-outline": "0 0 18 18", "person-hiking-solid": "0 0 18 18", "phone-outline": "0 0 18 18", "phone-solid": "0 0 18 18", "play-outline": "0 0 18 18", "play-solid": "0 0 18 18", "plug-outline": "0 0 18 18", "plug-solid": "0 0 18 18", "plus-outline": "0 0 18 18", "plus-solid": "0 0 18 18", "pointer-outline": "0 0 18 18", "pointer-solid": "0 0 18 18", "profile-card-outline": "0 0 18 18", "profile-card-solid": "0 0 18 18", "pulse-outline": "0 0 18 18", "pulse-solid": "0 0 18 18", "puzzle-piece-outline": "0 0 18 18", "puzzle-piece-solid": "0 0 18 18", "qr-code-outline": "0 0 18 18", "qr-code-solid": "0 0 18 18", "question-mark-outline": "0 0 18 18", "question-mark-solid": "0 0 18 18", "quotes-outline": "0 0 18 18", "quotes-solid": "0 0 18 18", "radar-outline": "0 0 18 18", "radar-solid": "0 0 18 18", "rectangle-caption-outline": "0 0 18 18", "rectangle-caption-solid": "0 0 18 18", "reply-outline": "0 0 18 18", "reply-solid": "0 0 18 18", "repost-outline": "0 0 18 18", "repost-solid": "0 0 18 18", "robot-outline": "0 0 19 18", "robot-solid": "0 0 19 18", "route-outline": "0 0 18 18", "route-solid": "0 0 18 18", "rss-outline": "0 0 18 18", "rss-solid": "0 0 18 18", "screwdriver-hammer-outline": "0 0 18 18", "screwdriver-hammer-solid": "0 0 18 18", "seeds-outline": "0 0 18 18", "seeds-solid": "0 0 18 18", "shopping-bag-outline": "0 0 18 18", "shopping-bag-solid": "0 0 18 18", "sitemap-outline": "0 0 18 18", "sitemap-solid": "0 0 18 18", "slider-outline": "0 0 18 18", "slider-solid": "0 0 18 18", "social-post-outline": "0 0 18 18", "social-post-solid": "0 0 18 18", "sort-ascending-outline": "0 0 18 18", "sort-ascending-solid": "0 0 18 18", "sort-descending-outline": "0 0 18 18", "sort-descending-solid": "0 0 18 18", "sparkle-outline": "0 0 18 18", "sparkle-solid": "0 0 18 18", "square-check-outline": "0 0 18 18", "square-check-solid": "0 0 18 18", "square-outline": "0 0 18 18", "square-slash-outline": "0 0 18 18", "square-slash-solid": "0 0 18 18", "square-solid": "0 0 18 18", "squares-arrow-up-right-outline": "0 0 18 18", "squares-arrow-up-right-solid": "0 0 18 18", "stamp-check-outline": "0 0 20 18", "stamp-check-solid": "0 0 20 18", "stamp-outline": "0 0 18 18", "stamp-solid": "0 0 18 18", "star-full-outline": "0 0 18 18", "star-full-solid": "0 0 18 18", "star-half-outline": "0 0 18 18", "star-half-solid": "0 0 18 18", "star-of-life-outline": "0 0 18 18", "star-of-life-solid": "0 0 18 18", "star-outline": "0 0 18 18", "star-solid": "0 0 18 18", "story-outline": "0 0 18 18", "story-solid": "0 0 18 18", "strikethrough-outline": "0 0 18 18", "strikethrough-solid": "0 0 18 18", "sun-outline": "0 0 18 18", "sun-solid": "0 0 18 18", "symbol-at-outline": "0 0 18 18", "symbol-at-solid": "0 0 18 18", "symbol-mars-outline": "0 0 18 18", "symbol-mars-solid": "0 0 18 18", "symbol-venus-outline": "0 0 18 18", "symbol-venus-solid": "0 0 18 18", "tag-outline": "0 0 18 18", "tag-solid": "0 0 18 18", "tag-x-outline": "0 0 18 18", "tag-x-solid": "0 0 18 18", "tags-outline": "0 0 18 18", "tags-solid": "0 0 18 18", "text-serif-outline": "0 0 18 18", "text-serif-solid": "0 0 18 18", "thread-outline": "0 0 18 18", "thread-solid": "0 0 18 18", "thumbs-down-outline": "0 0 18 18", "thumbs-down-solid": "0 0 18 18", "thumbs-up-outline": "0 0 18 18", "thumbs-up-solid": "0 0 18 18", "thumbtack-check-outline": "0 0 18 18", "thumbtack-check-solid": "0 0 18 18", "thumbtack-outline": "0 0 18 18", "thumbtack-solid": "0 0 18 18", "ticket-outline": "0 0 18 18", "ticket-solid": "0 0 18 18", "trash-outline": "0 0 18 18", "trash-solid": "0 0 18 18", "triangle-exclamation-outline": "0 0 18 18", "triangle-exclamation-solid": "0 0 18 18", "triangle-outline": "0 0 18 18", "triangle-solid": "0 0 18 18", "trophy-outline": "0 0 18 18", "trophy-solid": "0 0 18 18", "underline-outline": "0 0 18 18", "underline-solid": "0 0 18 18", "unlock-outline": "0 0 18 18", "unlock-solid": "0 0 18 18", "unordered-list-outline": "0 0 18 18", "unordered-list-solid": "0 0 18 18", "user-arrow-up-outline": "0 0 21 18", "user-arrow-up-solid": "0 0 21 18", "user-check-outline": "0 0 21 18", "user-check-solid": "0 0 21 18", "user-minus-outline": "0 0 20 18", "user-minus-solid": "0 0 20 18", "user-outline": "0 0 18 18", "user-plus-outline": "0 0 20 18", "user-plus-solid": "0 0 20 18", "user-solid": "0 0 18 18", "user-x-outline": "0 0 20 18", "user-x-solid": "0 0 20 18", "users-outline": "0 0 18 18", "users-solid": "0 0 18 18", "video-camera-outline": "0 0 18 18", "video-camera-solid": "0 0 18 18", "video-camera-story-outline": "0 0 18 18", "video-camera-story-solid": "0 0 18 18", "weight-outline": "0 0 18 18", "weight-solid": "0 0 18 18", "wifi-outline": "0 0 18 18", "wifi-slash-outline": "0 0 18 18", "wifi-slash-solid": "0 0 18 18", "wifi-solid": "0 0 18 18", "window-arrow-up-left-outline": "0 0 18 18", "window-arrow-up-left-solid": "0 0 18 18", "window-dock-left-outline": "0 0 24 24", "window-dock-left-solid": "0 0 24 24", "window-dock-right-outline": "0 0 24 24", "window-dock-right-solid": "0 0 24 24", "window-docked-left-outline": "0 0 18 18", "window-docked-left-solid": "0 0 18 18", "window-docked-right-outline": "0 0 18 18", "window-docked-right-solid": "0 0 18 18", "window-full-outline": "0 0 18 18", "window-full-solid": "0 0 18 18", "window-minimize-outline": "0 0 18 18", "window-minimize-solid": "0 0 18 18", "window-modal-outline": "0 0 18 18", "window-modal-solid": "0 0 18 18", "x-outline": "0 0 18 18", "x-solid": "0 0 18 18" };
4619
+ var ExternalViewBoxes = { "fb-reactions-angry": "0 0 18 18", "fb-reactions-care": "0 0 18 18", "fb-reactions-haha": "0 0 18 18", "fb-reactions-like": "0 0 18 18", "fb-reactions-love": "0 0 18 18", "fb-reactions-pride": "0 0 18 18", "fb-reactions-sad": "0 0 18 18", "fb-reactions-wow": "0 0 18 18", "recommendation": "0 0 18 18", "reels-outline": "0 0 18 18", "reels-solid": "0 0 18 18", "tripadvisor-circle-outline": "0 0 18 18", "tripadvisor-circle-solid": "0 0 18 18", "trustpilot-star": "0 0 18 18", "verified": "0 0 18 18", "yelp-full-star": "0 0 18 18", "yelp-half-star": "0 0 18 18" };
4620
+ var ExternalIconNames = ["fb-reactions-angry", "fb-reactions-care", "fb-reactions-haha", "fb-reactions-like", "fb-reactions-love", "fb-reactions-pride", "fb-reactions-sad", "fb-reactions-wow", "recommendation", "reels-outline", "reels-solid", "tripadvisor-circle-outline", "tripadvisor-circle-solid", "trustpilot-star", "verified", "yelp-full-star", "yelp-half-star"];
4621
+ var SproutViewBoxes = { "advocacy-outline": "0 0 18 18", "advocacy-solid": "0 0 18 18", "asset-library-outline": "0 0 18 18", "asset-library-plus-outline": "0 0 18 18", "asset-library-plus-solid": "0 0 18 18", "asset-library-solid": "0 0 18 18", "bambu-outline": "0 0 18 18", "bambu-solid": "0 0 18 18", "comment-arrow-up-outline": "0 0 18 18", "comment-arrow-up-solid": "0 0 18 18", "comment-bookmark-outline": "0 0 18 18", "comment-bookmark-solid": "0 0 18 18", "comment-dash-outline": "0 0 18 18", "comment-dash-solid": "0 0 18 18", "comment-exclamation-outline": "0 0 18 18", "comment-exclamation-solid": "0 0 18 18", "comment-eye-outline": "0 0 18 18", "comment-eye-solid": "0 0 18 18", "comment-heart-outline": "0 0 18 18", "comment-heart-solid": "0 0 18 18", "comment-light-bulb-outline": "0 0 18 18", "comment-light-bulb-solid": "0 0 18 18", "comment-outline": "0 0 18 18", "comment-solid": "0 0 18 18", "comment-sparkle-outline": "0 0 18 18", "comment-sparkle-solid": "0 0 18 18", "comments-outline": "0 0 18 18", "comments-solid": "0 0 18 18", "hand-sparkle-outline": "0 0 18 18", "hand-sparkle-solid": "0 0 18 18", "leaf-minus-outline": "0 0 18 18", "leaf-minus-solid": "0 0 18 18", "leaf-plus-outline": "0 0 18 18", "leaf-plus-solid": "0 0 18 18", "leaf-stacked-dotted-outline": "0 0 18 18", "leaf-stacked-dotted-solid": "0 0 18 18", "listening-outline": "0 0 18 18", "listening-solid": "0 0 18 18", "pencil-to-square-outline": "0 0 18 18", "pencil-to-square-solid": "0 0 18 18", "queue-outline": "0 0 18 18", "queue-solid": "0 0 18 18", "sprout-leaf-ellipsis-outline": "0 0 18 18", "sprout-leaf-ellipsis-solid": "0 0 18 18", "sprout-leaf-lightning-bolt-outline": "0 0 18 18", "sprout-leaf-lightning-bolt-solid": "0 0 18 18", "sprout-leaf-outline": "0 0 18 18", "sprout-leaf-solid": "0 0 18 18", "sprout-leaf-sync-outline": "0 0 18 18", "sprout-leaf-sync-solid": "0 0 18 18", "square-round-arrow-up-right-outline": "0 0 16 16", "square-round-arrow-up-right-solid": "0 0 16 16", "team-sprout-outline": "0 0 18 18", "team-sprout-solid": "0 0 18 18", "user-sprout-outline": "0 0 18 18", "user-sprout-solid": "0 0 18 18" };
4622
+
4623
+ // ../seeds-react-icon/dist/esm/index.js
4624
+ import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
4625
+ import "react";
4626
+ var sizes = {
4627
+ mini: "12px",
4628
+ /** TODO: deprecate default in favor of small in future release */
4629
+ default: "16px",
4630
+ small: "16px",
4631
+ medium: "24px",
4632
+ large: "32px",
4633
+ jumbo: "64px"
4634
+ };
4635
+ var stylesForSize2 = (iconActualSize, fixedWidth) => css6`
4636
+ line-height: ${iconActualSize};
4637
+
4638
+ &,
4639
+ .Icon-svg {
4640
+ height: ${iconActualSize};
4641
+ fill: currentColor;
4642
+ }
4643
+
4644
+ ${fixedWidth && `
4645
+ &,
4646
+ & .Icon-svg {
4647
+ width: ${iconActualSize}
4648
+ }
4649
+ `}
4650
+ `;
4651
+ var Container4 = styled7.span.attrs({
4652
+ className: "Icon"
4653
+ })`
4654
+ display: inline-block;
4655
+ color: inherit;
4656
+ vertical-align: middle;
4657
+
4658
+ ${(props) => stylesForSize2(sizes[props.iconSize], props.fixedWidth)}
4659
+
4660
+ ${ke}
4661
+ ${verticalAlign}
4662
+ `;
4663
+ var styles_default4 = Container4;
4664
+ var AllViewboxes = {
4665
+ ...ExternalViewBoxes,
4666
+ ...GeneralViewBoxes,
4667
+ ...SproutViewBoxes
4668
+ };
4669
+ var Icon = ({
4670
+ name,
4671
+ size: size2 = "small",
4672
+ fixedWidth = false,
4673
+ ariaLabel,
4674
+ color: color2,
4675
+ svgProps,
4676
+ ...rest
4677
+ }) => {
4678
+ if (includes(LogoNamesWithoutVariants, name)) {
4679
+ const logoSize = size2 === "default" ? "small" : size2;
4680
+ const logoProps = {
4681
+ partnerName: name,
4682
+ size: logoSize,
4683
+ logoType: "symbol",
4684
+ svgProps
4685
+ };
4686
+ return /* @__PURE__ */ jsx10(
4687
+ src_default2,
4688
+ {
4689
+ "aria-label": ariaLabel,
4690
+ ...rest,
4691
+ ...logoProps
4692
+ }
4693
+ );
4694
+ }
4695
+ const defaultVariant = size2 === "mini" ? "solid" : "outline";
4696
+ const iconName = (
4697
+ // if not external and has no variant
4698
+ !name?.endsWith("-outline") && !name?.endsWith("-solid") && !includes(ExternalIconNames, name) ? (
4699
+ // then add default variant
4700
+ `${name}-${defaultVariant}`
4701
+ ) : (
4702
+ // else use name as is
4703
+ name
4704
+ )
4705
+ );
4706
+ const iconViewBox = AllViewboxes[iconName];
4707
+ return /* @__PURE__ */ jsx10(
4708
+ styles_default4,
4709
+ {
4710
+ iconSize: size2,
4711
+ fixedWidth: !!fixedWidth,
4712
+ role: "img",
4713
+ "aria-label": ariaLabel,
4714
+ "data-qa-icon": iconName,
4715
+ color: color2,
4716
+ ...rest,
4717
+ children: /* @__PURE__ */ jsx10(
4718
+ "svg",
4719
+ {
4720
+ className: "Icon-svg",
4721
+ viewBox: iconViewBox,
4722
+ focusable: false,
4723
+ "data-qa-icon-svg": `${iconName}-svg`,
4724
+ ...svgProps,
4725
+ children: /* @__PURE__ */ jsx10(
4726
+ "use",
4727
+ {
4728
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
4729
+ xlinkHref: `#seeds-svgs_${iconName}`
4730
+ }
4731
+ )
4732
+ }
4733
+ )
4734
+ },
4735
+ iconName
4736
+ );
4737
+ };
4738
+ var ToggleableIcon = styled22(Icon)`
4739
+ transition: all ${(p) => p.theme.duration.fast} linear;
4740
+
4741
+ ${(p) => p.active && css22`
4742
+ opacity: 1;
4743
+ transform: scale(1);
4744
+ `}
4745
+
4746
+ ${(p) => !p.active && css22`
4747
+ position: absolute;
4748
+ opacity: 0;
4749
+ transform: scale(0);
4750
+ `}
4751
+ `;
4752
+ var IconToggle = ({
4753
+ activeName,
4754
+ inactiveName,
4755
+ isActive,
4756
+ size: size2 = "small",
4757
+ fixedWidth = false,
4758
+ ariaLabel,
4759
+ ...rest
4760
+ }) => {
4761
+ return /* @__PURE__ */ jsxs3(src_default, { as: "span", position: "relative", display: "inline-flex", ...rest, children: [
4762
+ /* @__PURE__ */ jsx10(
4763
+ ToggleableIcon,
4764
+ {
4765
+ active: isActive,
4766
+ name: activeName,
4767
+ size: size2,
4768
+ fixedWidth,
4769
+ "aria-label": ariaLabel,
4770
+ "aria-hidden": !isActive
4771
+ }
4772
+ ),
4773
+ /* @__PURE__ */ jsx10(
4774
+ ToggleableIcon,
4775
+ {
4776
+ active: !isActive,
4777
+ name: inactiveName,
4778
+ size: size2,
4779
+ fixedWidth,
4780
+ "aria-label": ariaLabel,
4781
+ "aria-hidden": isActive
4782
+ }
4783
+ )
4784
+ ] });
4785
+ };
4786
+ IconToggle.displayName = "Icon.Toggle";
4787
+ Icon.Toggle = IconToggle;
4788
+ var Icon_default = Icon;
4789
+
4790
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
4791
+ import { Duration, Numeral } from "@sproutsocial/racine";
4792
+
4793
+ // src/components/ChartTooltip/ChartTooltip.tsx
4794
+ import { memo as memo5 } from "react";
4795
+ import styled8 from "styled-components";
4796
+ import { jsx as jsx11 } from "react/jsx-runtime";
4797
+ var StyledBox2 = styled8(Box_default)`
4798
+ .Icon,
4799
+ .logo {
4800
+ stroke: none;
4801
+ }
4802
+ `;
4803
+ var ChartTooltip = memo5(function ChartTooltip2({
4804
+ children
4805
+ }) {
4806
+ return /* @__PURE__ */ jsx11(
4807
+ StyledBox2,
4808
+ {
4809
+ bg: "container.background.base",
4810
+ boxShadow: "medium",
4811
+ border: 500,
4812
+ borderColor: "container.border.base",
4813
+ borderRadius: 500,
4814
+ p: 400,
4815
+ minWidth: 285,
4816
+ children: /* @__PURE__ */ jsx11(Box_default, { display: "flex", flexDirection: "column", gap: 350, children })
4817
+ }
4818
+ );
4819
+ });
4820
+
4821
+ // src/components/ChartTooltip/components/ChartTooltipFooter.tsx
4822
+ import { memo as memo6 } from "react";
4823
+ import { jsx as jsx12 } from "react/jsx-runtime";
4824
+ var ChartTooltipFooter = memo6(
4825
+ function ChartTooltipFooter2({ children }) {
4826
+ return /* @__PURE__ */ jsx12(
4827
+ Box_default,
4828
+ {
4829
+ borderTop: 500,
4830
+ borderColor: "container.border.base",
4831
+ mx: -400,
4832
+ mb: -200,
4833
+ px: 400,
4834
+ pt: 350,
4835
+ children
4836
+ }
4837
+ );
4838
+ }
4839
+ );
4840
+
4841
+ // src/components/ChartTooltip/components/ChartTooltipHeader.tsx
4842
+ import { memo as memo7 } from "react";
4843
+ import { jsx as jsx13 } from "react/jsx-runtime";
4844
+ var ChartTooltipHeader = memo7(
4845
+ function ChartTooltipHeader2({ children }) {
4846
+ return /* @__PURE__ */ jsx13(
4847
+ Box_default,
4848
+ {
4849
+ borderBottom: 500,
4850
+ borderColor: "container.border.base",
4851
+ mx: -400,
4852
+ mt: -200,
4853
+ px: 400,
4854
+ pb: 350,
4855
+ children
4856
+ }
4857
+ );
4858
+ }
4859
+ );
4860
+
4861
+ // src/components/ChartTooltip/components/ChartTooltipTable.tsx
4862
+ import { memo as memo9 } from "react";
4863
+
4864
+ // src/components/ChartTable/ChartTable.tsx
4865
+ import { memo as memo8 } from "react";
4866
+ import styled9 from "styled-components";
4867
+ import { Table as RacineTable } from "@sproutsocial/racine";
4868
+ import { jsx as jsx14 } from "react/jsx-runtime";
4869
+ var StyledRacineTable = styled9(RacineTable)`
4870
+ tbody tr:last-child {
4871
+ border-bottom: none;
4872
+ }
4873
+ tr:last-child td,
4874
+ tr:last-child th {
4875
+ padding-bottom: 0;
4876
+ }
4877
+ tr:first-child td,
4878
+ tr:first-child th {
4879
+ padding-top: 0;
4880
+ }
4881
+ tr th {
4882
+ padding-left: 0;
4883
+ }
4884
+ tr td:last-child {
4885
+ padding-right: 0;
4886
+ }
4887
+ `;
4888
+ var StyledRacineTableRow = styled9(RacineTable.TableRow)`
4889
+ ${({ $isAppendedRow, theme: theme2 }) => $isAppendedRow ? `border-top: 2px solid ${theme2.colors.container.border.base}` : ""}
4890
+ `;
4891
+ var ChartTable = memo8(function ChartTable2({
4892
+ rows
4893
+ }) {
4894
+ if (!rows || rows.length === 0) {
4895
+ return null;
4896
+ }
4897
+ return /* @__PURE__ */ jsx14(StyledRacineTable, { children: /* @__PURE__ */ jsx14(RacineTable.TableBody, { children: rows.map(({ cells, isAppendedRow }, rowIndex) => {
4898
+ if (!cells || cells.length === 0) {
4899
+ return null;
4900
+ }
4901
+ return /* @__PURE__ */ jsx14(
4902
+ StyledRacineTableRow,
4903
+ {
4904
+ $isAppendedRow: isAppendedRow,
4905
+ children: cells.map(
4906
+ ({ content, align = "left", colSpan = 1 }, cellIndex) => {
4907
+ const uniqueIdentifier = `chart-tooltip-table-cell-${cellIndex}`;
4908
+ return /* @__PURE__ */ jsx14(
4909
+ RacineTable.Cell,
4910
+ {
4911
+ id: uniqueIdentifier,
4912
+ scope: cellIndex === 0 ? "row" : void 0,
4913
+ align,
4914
+ colSpan,
4915
+ py: 200,
4916
+ children: /* @__PURE__ */ jsx14(Text_default.SmallBodyCopy, { as: "div", children: content })
4917
+ },
4918
+ uniqueIdentifier
4919
+ );
4920
+ }
4921
+ )
4922
+ },
4923
+ `chart-tooltip-table-row-${rowIndex}`
4924
+ );
4925
+ }) }) });
4926
+ });
4927
+
4928
+ // src/components/ChartTooltip/components/ChartTooltipTable.tsx
4929
+ import { jsx as jsx15 } from "react/jsx-runtime";
4930
+ var ChartTooltipTable = memo9(
4931
+ function ChartTooltipTable2({ rows }) {
4932
+ return /* @__PURE__ */ jsx15(ChartTable, { rows });
4933
+ }
4934
+ );
4935
+
4936
+ // src/components/ChartTooltip/components/ChartTooltipTitle.tsx
4937
+ import { memo as memo10 } from "react";
4938
+ import { jsx as jsx16 } from "react/jsx-runtime";
4939
+ var ChartTooltipTitle = memo10(
4940
+ function ChartTooltipTitle2({ children }) {
4941
+ return /* @__PURE__ */ jsx16(Text_default.SmallSubHeadline, { as: "p", children });
4942
+ }
4943
+ );
4944
+
4945
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
4946
+ import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
4947
+ var AreaChartTooltip = memo11(
4948
+ function AreaChartTooltip2({
4949
+ data,
4950
+ invalidNumberLabel,
4951
+ numberLocale,
4952
+ textLocale,
4953
+ tooltipDateFormatter,
4954
+ tooltipTotalLabel,
4955
+ total,
4956
+ x,
4957
+ // optional
4958
+ currency = "USD",
4959
+ numberFormat = "decimal",
4960
+ onClick,
4961
+ tooltipClickLabel
4962
+ }) {
4963
+ const rows = data.map(({ color: color2, icon, name, value }) => {
4964
+ return {
4965
+ cells: [
4966
+ {
4967
+ content: /* @__PURE__ */ jsx17(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx17(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ jsx17(Text_default, { "aria-label": `${name}: `, children: name }) }) })
4968
+ },
4969
+ {
4970
+ content: value === null && invalidNumberLabel ? /* @__PURE__ */ jsx17(Text_default, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ jsx17(Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx17(
4971
+ Numeral,
4972
+ {
4973
+ abbreviate: false,
4974
+ currency,
4975
+ format: numberFormat,
4976
+ locale: numberLocale,
4977
+ number: value
4978
+ }
4979
+ ),
4980
+ align: "right"
4981
+ }
4982
+ ]
4983
+ };
4984
+ });
4985
+ const appendedRows = data.length > 1 ? [
4986
+ {
4987
+ cells: [
4988
+ {
4989
+ content: /* @__PURE__ */ jsx17(
4990
+ Text_default,
4991
+ {
4992
+ fontWeight: "semibold",
4993
+ "aria-label": `${tooltipTotalLabel}: `,
4994
+ children: tooltipTotalLabel
4995
+ }
4996
+ )
4997
+ },
4998
+ {
4999
+ content: /* @__PURE__ */ jsx17(Text_default, { fontWeight: "bold", children: total === null && invalidNumberLabel ? invalidNumberLabel : numberFormat === "duration" ? /* @__PURE__ */ jsx17(Duration, { locale: textLocale, milliseconds: total }) : /* @__PURE__ */ jsx17(
5000
+ Numeral,
5001
+ {
5002
+ abbreviate: false,
5003
+ currency,
5004
+ format: numberFormat,
5005
+ locale: numberLocale,
5006
+ number: total
5007
+ }
5008
+ ) }),
5009
+ align: "right"
5010
+ }
5011
+ ],
5012
+ isAppendedRow: true
5013
+ }
5014
+ ] : [];
5015
+ return /* @__PURE__ */ jsxs4(ChartTooltip, { children: [
5016
+ /* @__PURE__ */ jsx17(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
5017
+ /* @__PURE__ */ jsx17(
5018
+ ChartTooltipTable,
5019
+ {
5020
+ rows: [...rows, ...appendedRows]
5021
+ }
5022
+ ),
5023
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx17(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs4(Box_default, { display: "flex", alignItems: "center", gap: 300, children: [
5024
+ /* @__PURE__ */ jsx17(Icon_default, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
5025
+ /* @__PURE__ */ jsx17(Text_default, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
5026
+ ] }) : tooltipClickLabel }) : null
5027
+ ] });
5028
+ }
5029
+ );
5030
+
5031
+ // src/components/ChartTooltip/components/ChartTooltipPortal.tsx
5032
+ import { memo as memo12, useState, useRef, useEffect } from "react";
5033
+ import { createPortal } from "react-dom";
5034
+ var generateChartTooltipPortalId = (chartId) => `highcharts-custom-tooltip-${chartId}`;
5035
+ var ChartTooltipPortal = memo12(
5036
+ function ChartTooltipPortal2({
5037
+ chart,
5038
+ renderContent
5039
+ }) {
5040
+ const isInitialized = useRef(false);
5041
+ const [node, setNode] = useState(null);
5042
+ const [context, setContext] = useState(null);
5043
+ useEffect(() => {
5044
+ const formatter = function() {
5045
+ if (!isInitialized.current) {
5046
+ isInitialized.current = true;
5047
+ chart.tooltip.refresh.apply(chart.tooltip, [this.point]);
5048
+ chart.tooltip.hide(0);
5049
+ }
5050
+ setContext(this);
5051
+ return `<div id="${generateChartTooltipPortalId(
5052
+ chart.index
5053
+ )}" role='tooltip'></div>`;
5054
+ };
5055
+ chart.update({ tooltip: { formatter } });
5056
+ }, [chart]);
5057
+ useEffect(() => {
5058
+ if (context?.series?.chart?.tooltip) {
5059
+ const tooltip = context.series.chart.tooltip;
5060
+ const textElement = tooltip.label.text.element;
5061
+ tooltip.label.box.attr({
5062
+ height: textElement.offsetHeight,
5063
+ width: textElement.offsetWidth
5064
+ });
5065
+ setNode(
5066
+ document.getElementById(generateChartTooltipPortalId(chart.index))
5067
+ );
5068
+ }
5069
+ }, [context, chart.index]);
5070
+ return node && context ? createPortal(renderContent(context), node) : null;
5071
+ }
5072
+ );
5073
+
5074
+ // src/helpers/transformDataToSeries.ts
5075
+ var transformDataToSeries = ({ data }, type) => {
5076
+ return data.map((dataItem, dataIndex) => {
5077
+ const points = dataItem.points || [];
5078
+ const dataPoints = points.map((point, pointsIndex) => {
5079
+ let enableMarker = false;
5080
+ const isFirstPoint = pointsIndex === 0;
5081
+ const isLastPoint = pointsIndex === points.length - 1;
5082
+ const previousY = isFirstPoint ? null : points[pointsIndex - 1].y;
5083
+ const nextY = isLastPoint ? null : points[pointsIndex + 1].y;
5084
+ if (isFirstPoint && nextY === null) {
5085
+ enableMarker = true;
5086
+ } else if (isLastPoint && previousY === null) {
5087
+ enableMarker = true;
5088
+ } else if (previousY === null && nextY === null) {
5089
+ enableMarker = true;
5090
+ }
5091
+ return {
5092
+ x: point.x,
5093
+ y: point.y,
5094
+ marker: {
5095
+ enabled: enableMarker ? enableMarker : void 0,
5096
+ symbol: enableMarker ? "circle" : void 0
5097
+ }
5098
+ };
5099
+ });
5100
+ return {
5101
+ colorIndex: dataIndex,
5102
+ data: dataPoints,
5103
+ name: dataItem.name,
5104
+ type
5105
+ };
5106
+ });
5107
+ };
5108
+
5109
+ // src/helpers/transformTimeSeriesTooltipData.ts
5110
+ var transformTimeSeriesTooltipData = ({
5111
+ context,
5112
+ data
5113
+ }) => {
5114
+ return (context.series.chart.series || []).map((series, index) => {
5115
+ const pointIndex = context.point.index;
5116
+ const { y: y2 } = series.points[pointIndex];
5117
+ return {
5118
+ color: data[index]?.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index],
5119
+ ...data[index]?.icon ? { icon: data[index]?.icon } : {},
5120
+ name: series.name,
5121
+ value: typeof y2 === "number" ? y2 : null
5122
+ };
5123
+ });
5124
+ };
5125
+
5126
+ // src/helpers/xAxisLabelFormatter.ts
5127
+ var xAxisLabelFormatter = ({
5128
+ textLocale,
5129
+ tickPositions = [],
5130
+ unitName,
5131
+ value
5132
+ }) => {
5133
+ const tickIndex = tickPositions.indexOf(value);
5134
+ const isFirst = tickIndex === 0;
5135
+ const previousValue = tickPositions[tickIndex - 1];
5136
+ const valueDate = new Date(value);
5137
+ const previousValueDate = new Date(previousValue);
5138
+ let firstPartOptions = {};
5139
+ let secondPartOptions = {};
5140
+ switch (unitName) {
5141
+ case "hour":
5142
+ firstPartOptions = { hour: "numeric" };
5143
+ if (isFirst || valueDate.getUTCDate() !== previousValueDate.getUTCDate()) {
5144
+ secondPartOptions = { day: "numeric", month: "short" };
5145
+ }
5146
+ break;
5147
+ case "day":
5148
+ case "week":
5149
+ firstPartOptions = { day: "numeric" };
5150
+ if (isFirst || valueDate.getUTCMonth() !== previousValueDate.getUTCMonth()) {
5151
+ secondPartOptions = { month: "short" };
5152
+ }
5153
+ break;
5154
+ case "month":
5155
+ firstPartOptions = { month: "short" };
5156
+ if (isFirst || valueDate.getUTCFullYear() !== previousValueDate.getUTCFullYear()) {
5157
+ secondPartOptions = { year: "numeric" };
5158
+ }
5159
+ break;
5160
+ case "year":
5161
+ firstPartOptions = { year: "numeric" };
5162
+ break;
5163
+ default:
5164
+ firstPartOptions = {};
5165
+ break;
5166
+ }
5167
+ const firstPart = new Intl.DateTimeFormat(textLocale, {
5168
+ ...firstPartOptions,
5169
+ timeZone: "UTC"
5170
+ }).format(valueDate);
5171
+ const secondPart = Object.keys(secondPartOptions).length > 0 ? new Intl.DateTimeFormat(textLocale, {
5172
+ ...secondPartOptions,
5173
+ timeZone: "UTC"
5174
+ }).format(valueDate) : void 0;
5175
+ return `<span>${firstPart}</span>${secondPart ? `<span>${secondPart}</span>` : ""}`;
5176
+ };
5177
+
5178
+ // src/helpers/yAxisLabelFormatter.ts
5179
+ import { formatDuration, formatNumeral } from "@sproutsocial/racine";
5180
+ var yAxisLabelFormatter = ({
5181
+ numberLocale,
5182
+ textLocale,
5183
+ tickPositions,
5184
+ value,
5185
+ currency = "USD",
5186
+ numberFormat = "decimal"
5187
+ }) => {
5188
+ const numberValue = Number(value);
5189
+ if (numberValue === 0) {
5190
+ return formatNumeral({
5191
+ locale: numberLocale,
5192
+ number: numberValue
5193
+ });
5194
+ }
5195
+ if (numberFormat === "duration") {
5196
+ return formatDuration({
5197
+ display: "narrow",
5198
+ locale: textLocale,
5199
+ milliseconds: numberValue
5200
+ });
5201
+ }
5202
+ const maxValue = tickPositions && tickPositions.length > 0 ? tickPositions[tickPositions.length - 1] : void 0;
5203
+ const abbreviate = typeof maxValue === "number" && maxValue > 9999 ? 1e3 : true;
5204
+ return formatNumeral({
5205
+ abbreviate,
5206
+ currency,
5207
+ format: numberFormat,
5208
+ locale: numberLocale,
5209
+ number: numberValue
5210
+ });
5211
+ };
5212
+
5213
+ // src/hooks/useTimeSeriesChartOptions.ts
5214
+ import { useState as useState2, useEffect as useEffect2, useCallback } from "react";
5215
+ import "highcharts";
5216
+
5217
+ // src/constants/chartOptions.ts
5218
+ import _2 from "lodash";
5219
+ var baseChartOptions = {
5220
+ chart: {
5221
+ animation: false,
5222
+ styledMode: true
5223
+ },
5224
+ credits: {
5225
+ enabled: false
5226
+ },
5227
+ exporting: {
5228
+ enabled: false,
5229
+ fallbackToExportServer: false
5230
+ },
3442
5231
  legend: {
3443
5232
  enabled: false
3444
5233
  },
@@ -3499,184 +5288,840 @@ var timeSeriesChartOptions = _2.merge({}, baseChartOptions, {
3499
5288
  text: void 0
3500
5289
  }
3501
5290
  }
3502
- });
3503
- var lineChartOptions = _2.merge({}, timeSeriesChartOptions, {
3504
- // plotOptions.spline.events.click is set at the component level because of the optional onClick prop
3505
- });
3506
- var areaChartOptions = _2.merge({}, timeSeriesChartOptions, {
3507
- plotOptions: {
3508
- areaspline: {
3509
- // events.click is set at the component level because of the optional onClick prop
3510
- stacking: "normal"
5291
+ });
5292
+ var lineChartOptions = _2.merge({}, timeSeriesChartOptions, {
5293
+ // plotOptions.spline.events.click is set at the component level because of the optional onClick prop
5294
+ });
5295
+ var areaChartOptions = _2.merge({}, timeSeriesChartOptions, {
5296
+ plotOptions: {
5297
+ areaspline: {
5298
+ // events.click is set at the component level because of the optional onClick prop
5299
+ stacking: "normal"
5300
+ }
5301
+ }
5302
+ });
5303
+ var DONUT_CHART_HALO_SIZE = 10;
5304
+ var DONUT_CHART_HEIGHT = 250 + DONUT_CHART_HALO_SIZE * 2;
5305
+ var DONUT_CHART_WIDTH = DONUT_CHART_HEIGHT;
5306
+ var donutChartOptions = _2.merge({}, baseChartOptions, {
5307
+ chart: {
5308
+ height: DONUT_CHART_HEIGHT,
5309
+ spacing: [0, 0, 0, 0]
5310
+ },
5311
+ plotOptions: {
5312
+ pie: {
5313
+ animation: false,
5314
+ borderRadius: 0,
5315
+ // must be handled here instead of css because of path rendering
5316
+ dataLabels: {
5317
+ enabled: false
5318
+ },
5319
+ innerSize: "50%"
5320
+ }
5321
+ }
5322
+ });
5323
+
5324
+ // src/hooks/useTimeSeriesChartOptions.ts
5325
+ var useTimeSeriesChartOptions = ({
5326
+ data,
5327
+ numberLocale,
5328
+ seriesType,
5329
+ textLocale,
5330
+ currency = "USD",
5331
+ numberFormat = "decimal",
5332
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5333
+ onClick
5334
+ }) => {
5335
+ const [options, setOptions] = useState2(
5336
+ seriesType === "areaspline" ? areaChartOptions : lineChartOptions
5337
+ );
5338
+ const [chart, setChart] = useState2(null);
5339
+ const callback = useCallback((chartInstance) => {
5340
+ setChart(chartInstance);
5341
+ }, []);
5342
+ useEffect2(() => {
5343
+ setOptions({
5344
+ accessibility: {
5345
+ point: {
5346
+ descriptionFormatter: function() {
5347
+ return " ";
5348
+ }
5349
+ }
5350
+ },
5351
+ chart: {
5352
+ events: {
5353
+ click: onClick ? function() {
5354
+ return onClick({ x: this?.hoverPoint?.x });
5355
+ } : void 0,
5356
+ render: function() {
5357
+ const allPoints = this.series.flatMap((series) => series.data);
5358
+ const tooltipId = generateChartTooltipPortalId(this.index);
5359
+ allPoints.forEach((point) => {
5360
+ const pointElement = point?.graphic?.element;
5361
+ pointElement?.setAttribute("aria-describedby", tooltipId);
5362
+ pointElement?.addEventListener("focus", () => {
5363
+ point.series.chart.tooltip.refresh(point);
5364
+ });
5365
+ pointElement?.addEventListener("blur", () => {
5366
+ point.series.chart.tooltip.hide(0);
5367
+ });
5368
+ });
5369
+ }
5370
+ }
5371
+ },
5372
+ plotOptions: {
5373
+ areaspline: {
5374
+ events: {
5375
+ click: onClick && seriesType === "areaspline" ? function(event) {
5376
+ return onClick({ x: event.point.x });
5377
+ } : void 0
5378
+ }
5379
+ },
5380
+ spline: {
5381
+ events: {
5382
+ click: onClick && seriesType === "spline" ? function(event) {
5383
+ return onClick({ x: event.point.x });
5384
+ } : void 0
5385
+ }
5386
+ }
5387
+ },
5388
+ series: transformDataToSeries({ data }, seriesType),
5389
+ xAxis: {
5390
+ labels: {
5391
+ formatter: function() {
5392
+ return xAxisLabelFormatter({
5393
+ textLocale,
5394
+ tickPositions: this.axis.tickPositions || [],
5395
+ unitName: this.tickPositionInfo.unitName,
5396
+ value: this.value
5397
+ });
5398
+ }
5399
+ }
5400
+ },
5401
+ yAxis: {
5402
+ labels: {
5403
+ formatter: function() {
5404
+ return yAxisLabelFormatter2 ? yAxisLabelFormatter2({
5405
+ y: this.value,
5406
+ yValues: this.axis.tickPositions
5407
+ }) : yAxisLabelFormatter({
5408
+ currency,
5409
+ numberFormat,
5410
+ numberLocale,
5411
+ textLocale,
5412
+ tickPositions: this.axis.tickPositions || [],
5413
+ value: this.value
5414
+ });
5415
+ }
5416
+ }
5417
+ }
5418
+ });
5419
+ }, [
5420
+ currency,
5421
+ data,
5422
+ numberFormat,
5423
+ numberLocale,
5424
+ onClick,
5425
+ seriesType,
5426
+ textLocale,
5427
+ yAxisLabelFormatter2
5428
+ ]);
5429
+ return { options, chart, callback };
5430
+ };
5431
+
5432
+ // src/styles/chartStyles.ts
5433
+ import { css as css7 } from "styled-components";
5434
+ var baseChartStyles = css7`
5435
+ // set color variables and map to each series
5436
+ ${({ $colors }) => $colors.map((color2, index) => {
5437
+ const chartColor = color2 || theme_default.colors.DATAVIZ_COLORS_LIST[index];
5438
+ return `
5439
+ // map colors to custom assigned colors or fallback to default data viz color rotation
5440
+ --highcharts-color-${index}: ${chartColor};
5441
+
5442
+ // highcharts already accounts for 10 series, but if we have more, we need to add them
5443
+ .highcharts-color-${index} {
5444
+ color: var(--highcharts-color-${index});
5445
+ stroke: var(--highcharts-color-${index});
5446
+ fill: var(--highcharts-color-${index});
5447
+ }`;
5448
+ }).join("\n")}
5449
+
5450
+ // set overall chart background color
5451
+ .highcharts-background {
5452
+ fill: ${({ theme: theme2 }) => theme2.colors.container.background.base};
5453
+ }
5454
+ `;
5455
+ var timeSeriesChartStyles = css7`
5456
+ ${baseChartStyles}
5457
+
5458
+ // vertical crosshair styles
5459
+ .highcharts-crosshair {
5460
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.decorative.neutral};
5461
+ stroke-width: 1;
5462
+ }
5463
+
5464
+ // axis and gridline styles
5465
+ .highcharts-grid-line {
5466
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.base};
5467
+ }
5468
+ .highcharts-axis-line {
5469
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.base};
5470
+ }
5471
+ .highcharts-tick {
5472
+ stroke: none;
5473
+ }
5474
+ .highcharts-xaxis-labels,
5475
+ .highcharts-yaxis-labels {
5476
+ > span {
5477
+ font-family: ${({ theme: theme2 }) => theme2.fontFamily};
5478
+ ${({ theme: theme2 }) => theme2.typography[100]};
5479
+ font-weight: ${({ theme: theme2 }) => theme2.fontWeights.normal};
5480
+ color: ${({ theme: theme2 }) => theme2.colors.text.subtext};
5481
+ }
5482
+ }
5483
+ .highcharts-xaxis-labels {
5484
+ > span {
5485
+ display: flex;
5486
+ flex-direction: column;
5487
+ align-items: center;
5488
+ > span:nth-of-type(2) {
5489
+ font-weight: ${({ theme: theme2 }) => theme2.fontWeights.semibold};
5490
+ }
3511
5491
  }
3512
5492
  }
5493
+
5494
+ // we don't want to drop the opacity when another item is hovered
5495
+ .highcharts-series-inactive {
5496
+ opacity: 1;
5497
+ }
5498
+
5499
+ // apply cursor pointer when click functionality is turned on
5500
+ ${({ $hasOnClick }) => $hasOnClick && `
5501
+ .highcharts-series,
5502
+ .highcharts-point {
5503
+ cursor: pointer;
5504
+ }
5505
+ .highcharts-plot-background,
5506
+ .highcharts-crosshair,
5507
+ .highcharts-grid-line {
5508
+ fill: transparent;
5509
+ cursor: pointer;
5510
+ }`}
5511
+ `;
5512
+ var lineChartStyles = css7`
5513
+ ${timeSeriesChartStyles}
5514
+
5515
+ // set the line stroke
5516
+ .highcharts-graph {
5517
+ stroke-width: 3;
5518
+ }
5519
+
5520
+ // dashed line styles
5521
+ ${({ $patterns }) => $patterns.map((pattern, index) => {
5522
+ return pattern === "dashed" ? `
5523
+ // highcharts already accounts for 10 series, but if we have more, we need to add them
5524
+ .highcharts-series-${index} {
5525
+ stroke-dasharray: 2, 8;
5526
+ }` : "";
5527
+ })}
5528
+ `;
5529
+ var areaChartStyles = css7`
5530
+ ${timeSeriesChartStyles}
5531
+
5532
+ // don't need to show a stroke for the line part of each area
5533
+ .highcharts-graph {
5534
+ stroke-width: 0;
5535
+ }
5536
+
5537
+ // fill areas to full opacity
5538
+ .highcharts-area {
5539
+ fill-opacity: 1;
5540
+ }
5541
+ `;
5542
+ var donutChartStyles = css7`
5543
+ ${baseChartStyles}
5544
+
5545
+ // remove 250ms fade in/out when hovering over different donut chart slices
5546
+ .highcharts-point {
5547
+ transition: opacity 0s;
5548
+ }
5549
+
5550
+ // remove stroke on donut slices
5551
+ .highcharts-point,
5552
+ .highcharts-pie-series {
5553
+ stroke: none;
5554
+ }
5555
+
5556
+ // don't reduce opacity when hovering
5557
+ .highcharts-point-hover {
5558
+ fill-opacity: none;
5559
+ }
5560
+ `;
5561
+
5562
+ // src/components/AreaChart/AreaChart.tsx
5563
+ import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
5564
+ highchartsAccessibility(Highcharts);
5565
+ var StyledBox3 = styled10(Box_default)`
5566
+ ${areaChartStyles}
5567
+ `;
5568
+ var AreaChart = memo13(function AreaChart2(props) {
5569
+ const { data } = props;
5570
+ return data.length === 0 ? null : /* @__PURE__ */ jsx18(AreaChartWithData, { ...props });
3513
5571
  });
3514
- var DONUT_CHART_HALO_SIZE = 10;
3515
- var DONUT_CHART_HEIGHT = 250 + DONUT_CHART_HALO_SIZE * 2;
3516
- var DONUT_CHART_WIDTH = DONUT_CHART_HEIGHT;
3517
- var donutChartOptions = _2.merge({}, baseChartOptions, {
3518
- chart: {
3519
- height: DONUT_CHART_HEIGHT,
3520
- spacing: [0, 0, 0, 0]
3521
- },
3522
- plotOptions: {
3523
- pie: {
3524
- animation: false,
3525
- borderRadius: 0,
3526
- // must be handled here instead of css because of path rendering
3527
- dataLabels: {
3528
- enabled: false
3529
- },
3530
- innerSize: "50%"
5572
+ var AreaChartWithData = memo13(function AreaChartWithData2({
5573
+ data,
5574
+ invalidNumberLabel,
5575
+ numberLocale = "en-us",
5576
+ textLocale = "en-us",
5577
+ tooltipDateFormatter,
5578
+ tooltipTotalLabel,
5579
+ // optional
5580
+ currency = "USD",
5581
+ numberFormat = "decimal",
5582
+ tooltip,
5583
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5584
+ onClick,
5585
+ tooltipClickLabel
5586
+ }) {
5587
+ const { options, chart, callback } = useTimeSeriesChartOptions({
5588
+ currency,
5589
+ data,
5590
+ numberFormat,
5591
+ numberLocale,
5592
+ seriesType: "areaspline",
5593
+ textLocale,
5594
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5595
+ onClick
5596
+ });
5597
+ const colors3 = data.map(
5598
+ (series, index) => series.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index]
5599
+ );
5600
+ return /* @__PURE__ */ jsxs5(
5601
+ StyledBox3,
5602
+ {
5603
+ $colors: colors3,
5604
+ $hasOnClick: Boolean(onClick),
5605
+ bg: "container.background.base",
5606
+ children: [
5607
+ /* @__PURE__ */ jsx18(
5608
+ HighchartsReact,
5609
+ {
5610
+ highcharts: Highcharts,
5611
+ options,
5612
+ callback
5613
+ }
5614
+ ),
5615
+ chart ? /* @__PURE__ */ jsx18(
5616
+ ChartTooltipPortal,
5617
+ {
5618
+ chart,
5619
+ renderContent: (context) => {
5620
+ const tooltipData = transformTimeSeriesTooltipData({
5621
+ context,
5622
+ data
5623
+ });
5624
+ const x = context.x;
5625
+ const total = context.total;
5626
+ return tooltip ? tooltip({ data: tooltipData, total, x }) : /* @__PURE__ */ jsx18(
5627
+ AreaChartTooltip,
5628
+ {
5629
+ currency,
5630
+ data: tooltipData,
5631
+ invalidNumberLabel,
5632
+ numberFormat,
5633
+ numberLocale,
5634
+ textLocale,
5635
+ tooltipDateFormatter,
5636
+ tooltipTotalLabel,
5637
+ total,
5638
+ x,
5639
+ onClick,
5640
+ tooltipClickLabel
5641
+ }
5642
+ );
5643
+ }
5644
+ }
5645
+ ) : null,
5646
+ /* @__PURE__ */ jsx18(Box_default, { mt: 350, children: /* @__PURE__ */ jsx18(AreaChartLegend, { data }) })
5647
+ ]
3531
5648
  }
3532
- }
5649
+ );
3533
5650
  });
3534
5651
 
3535
- // src/helpers/transformDataToSeries.ts
3536
- var transformDataToSeries = ({ data }, type) => {
3537
- return data.map((dataItem, dataIndex) => {
3538
- const points = dataItem.points || [];
3539
- const dataPoints = points.map((point, pointsIndex) => {
3540
- let enableMarker = false;
3541
- const isFirstPoint = pointsIndex === 0;
3542
- const isLastPoint = pointsIndex === points.length - 1;
3543
- const previousY = isFirstPoint ? null : points[pointsIndex - 1].y;
3544
- const nextY = isLastPoint ? null : points[pointsIndex + 1].y;
3545
- if (isFirstPoint && nextY === null) {
3546
- enableMarker = true;
3547
- } else if (isLastPoint && previousY === null) {
3548
- enableMarker = true;
3549
- } else if (previousY === null && nextY === null) {
3550
- enableMarker = true;
3551
- }
3552
- return {
3553
- x: point.x,
3554
- y: point.y,
3555
- marker: {
3556
- enabled: enableMarker ? enableMarker : void 0,
3557
- symbol: enableMarker ? "circle" : void 0
3558
- }
3559
- };
3560
- });
3561
- return {
3562
- colorIndex: dataIndex,
3563
- data: dataPoints,
3564
- name: dataItem.name,
3565
- type
3566
- };
3567
- });
5652
+ // src/components/DonutChart/DonutChart.tsx
5653
+ import { memo as memo16, useState as useState3, useEffect as useEffect3, useCallback as useCallback2 } from "react";
5654
+ import Highcharts2 from "highcharts";
5655
+ import { HighchartsReact as HighchartsReact2 } from "highcharts-react-official";
5656
+ import highchartsAccessibility2 from "highcharts/modules/accessibility";
5657
+ import styled11 from "styled-components";
5658
+
5659
+ // src/components/DonutChart/components/DonutChartLegend.tsx
5660
+ import { memo as memo14 } from "react";
5661
+ import { jsx as jsx19 } from "react/jsx-runtime";
5662
+ var getDonutChartLegendLabels = ({
5663
+ data
5664
+ }) => {
5665
+ return data.map((slice, index) => ({
5666
+ content: /* @__PURE__ */ jsx19(ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
5667
+ color: slice.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
5668
+ }));
3568
5669
  };
5670
+ var DonutChartLegend = memo14(
5671
+ function DonutChartLegend2({ data }) {
5672
+ return /* @__PURE__ */ jsx19(ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
5673
+ }
5674
+ );
3569
5675
 
3570
- // src/helpers/transformTimeSeriesTooltipData.ts
3571
- var transformTimeSeriesTooltipData = ({
5676
+ // src/components/DonutChart/components/DonutChartTooltip.tsx
5677
+ import { memo as memo15 } from "react";
5678
+ import { Duration as Duration2, Numeral as Numeral2 } from "@sproutsocial/racine";
5679
+ import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
5680
+ var DonutChartTooltip = memo15(
5681
+ function DonutChartTooltip2({
5682
+ color: color2,
5683
+ name,
5684
+ numberLocale,
5685
+ percent,
5686
+ textLocale,
5687
+ value,
5688
+ currency,
5689
+ icon,
5690
+ numberFormat
5691
+ }) {
5692
+ const rows = [
5693
+ {
5694
+ cells: [
5695
+ {
5696
+ content: /* @__PURE__ */ jsx20(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx20(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ jsx20(Text_default, { "aria-label": `${name}: `, children: name }) }) })
5697
+ },
5698
+ {
5699
+ content: /* @__PURE__ */ jsxs6(Box_default, { display: "inline-flex", alignItems: "center", gap: 350, children: [
5700
+ /* @__PURE__ */ jsx20(
5701
+ Numeral2,
5702
+ {
5703
+ number: percent,
5704
+ format: "percent",
5705
+ abbreviate: false,
5706
+ locale: numberLocale
5707
+ }
5708
+ ),
5709
+ /* @__PURE__ */ jsx20(Text_default, { fontWeight: "semibold", children: numberFormat === "duration" ? /* @__PURE__ */ jsx20(Duration2, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx20(
5710
+ Numeral2,
5711
+ {
5712
+ abbreviate: false,
5713
+ currency,
5714
+ format: numberFormat,
5715
+ locale: numberLocale,
5716
+ number: value
5717
+ }
5718
+ ) })
5719
+ ] }),
5720
+ align: "right"
5721
+ }
5722
+ ]
5723
+ }
5724
+ ];
5725
+ return /* @__PURE__ */ jsx20(ChartTooltip, { children: /* @__PURE__ */ jsx20(ChartTooltipTable, { rows }) });
5726
+ }
5727
+ );
5728
+
5729
+ // src/components/DonutChart/helpers/transformDonutChartTooltipData.ts
5730
+ var transformDonutChartTooltipData = ({
3572
5731
  context,
3573
5732
  data
3574
5733
  }) => {
3575
- return (context.series.chart.series || []).map((series, index) => {
3576
- const pointIndex = context.point.index;
3577
- const { y: y2 } = series.points[pointIndex];
3578
- return {
3579
- color: data[index]?.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index],
3580
- ...data[index]?.icon ? { icon: data[index]?.icon } : {},
3581
- name: series.name,
3582
- value: typeof y2 === "number" ? y2 : null
3583
- };
3584
- });
5734
+ const colorIndex = context.colorIndex;
5735
+ return {
5736
+ color: data[colorIndex]?.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[colorIndex] ?? "",
5737
+ ...data[colorIndex]?.icon ? { icon: data[colorIndex]?.icon } : {},
5738
+ name: context.key,
5739
+ percent: context.percentage,
5740
+ value: context.y
5741
+ };
3585
5742
  };
3586
5743
 
3587
- // src/helpers/xAxisLabelFormatter.ts
3588
- var xAxisLabelFormatter = ({
3589
- textLocale,
3590
- tickPositions = [],
3591
- unitName,
3592
- value
3593
- }) => {
3594
- const tickIndex = tickPositions.indexOf(value);
3595
- const isFirst = tickIndex === 0;
3596
- const previousValue = tickPositions[tickIndex - 1];
3597
- const valueDate = new Date(value);
3598
- const previousValueDate = new Date(previousValue);
3599
- let firstPartOptions = {};
3600
- let secondPartOptions = {};
3601
- switch (unitName) {
3602
- case "hour":
3603
- firstPartOptions = { hour: "numeric" };
3604
- if (isFirst || valueDate.getUTCDate() !== previousValueDate.getUTCDate()) {
3605
- secondPartOptions = { day: "numeric", month: "short" };
3606
- }
3607
- break;
3608
- case "day":
3609
- case "week":
3610
- firstPartOptions = { day: "numeric" };
3611
- if (isFirst || valueDate.getUTCMonth() !== previousValueDate.getUTCMonth()) {
3612
- secondPartOptions = { month: "short" };
5744
+ // src/components/DonutChart/DonutChart.tsx
5745
+ import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
5746
+ highchartsAccessibility2(Highcharts2);
5747
+ var StyledBox4 = styled11(Box_default)`
5748
+ ${donutChartStyles}
5749
+ `;
5750
+ var DonutChart = memo16(function DonutChart2(props) {
5751
+ const { data } = props;
5752
+ return data.length === 0 ? null : /* @__PURE__ */ jsx21(DonutChartWithData, { ...props });
5753
+ });
5754
+ var DonutChartWithData = memo16(
5755
+ function DonutChartWithData2({
5756
+ data,
5757
+ numberLocale = "en-us",
5758
+ textLocale = "en-us",
5759
+ // optional
5760
+ currency = "USD",
5761
+ hideLegend = false,
5762
+ numberFormat = "decimal",
5763
+ tooltip
5764
+ }) {
5765
+ const [options, setOptions] = useState3(donutChartOptions);
5766
+ const [chart, setChart] = useState3(null);
5767
+ const callback = useCallback2((chartInstance) => {
5768
+ setChart(chartInstance);
5769
+ }, []);
5770
+ useEffect3(() => {
5771
+ setOptions({
5772
+ accessibility: {
5773
+ point: {
5774
+ descriptionFormatter: function() {
5775
+ return " ";
5776
+ }
5777
+ }
5778
+ },
5779
+ chart: {
5780
+ events: {
5781
+ render: function() {
5782
+ const allSlices = this.series[0]?.data ?? [];
5783
+ const tooltipId = generateChartTooltipPortalId(this.index);
5784
+ allSlices.forEach((slice) => {
5785
+ const sliceElement = slice?.graphic?.element;
5786
+ sliceElement?.setAttribute("aria-describedby", tooltipId);
5787
+ sliceElement?.addEventListener("focus", () => {
5788
+ slice.series.chart.tooltip.refresh(slice);
5789
+ });
5790
+ sliceElement?.addEventListener("blur", () => {
5791
+ slice.series.chart.tooltip.hide(0);
5792
+ });
5793
+ });
5794
+ }
5795
+ }
5796
+ },
5797
+ series: [
5798
+ {
5799
+ type: "pie",
5800
+ data: data.map((item, index) => {
5801
+ return {
5802
+ name: item.name,
5803
+ y: item.value,
5804
+ colorIndex: index
5805
+ };
5806
+ })
5807
+ }
5808
+ ]
5809
+ });
5810
+ }, [data]);
5811
+ const colors3 = data.map(
5812
+ (series, index) => series.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index] ?? ""
5813
+ );
5814
+ return /* @__PURE__ */ jsxs7(StyledBox4, { $colors: colors3, bg: "container.background.base", children: [
5815
+ /* @__PURE__ */ jsx21(
5816
+ HighchartsReact2,
5817
+ {
5818
+ highcharts: Highcharts2,
5819
+ options,
5820
+ callback
5821
+ }
5822
+ ),
5823
+ chart ? /* @__PURE__ */ jsx21(
5824
+ ChartTooltipPortal,
5825
+ {
5826
+ chart,
5827
+ renderContent: (context) => {
5828
+ const { color: color2, icon, name, percent, value } = transformDonutChartTooltipData({ context, data });
5829
+ return tooltip ? tooltip({ color: color2, icon, name, percent, value }) : /* @__PURE__ */ jsx21(
5830
+ DonutChartTooltip,
5831
+ {
5832
+ color: color2,
5833
+ currency,
5834
+ icon,
5835
+ name,
5836
+ numberFormat,
5837
+ numberLocale,
5838
+ percent,
5839
+ textLocale,
5840
+ value
5841
+ }
5842
+ );
5843
+ }
5844
+ }
5845
+ ) : null,
5846
+ hideLegend ? null : /* @__PURE__ */ jsx21(Box_default, { mt: 350, children: /* @__PURE__ */ jsx21(DonutChartLegend, { data }) })
5847
+ ] });
5848
+ }
5849
+ );
5850
+
5851
+ // src/components/DonutChart/components/DonutChartLegendTable.tsx
5852
+ import { memo as memo17 } from "react";
5853
+ import { Duration as Duration3, Numeral as Numeral3 } from "@sproutsocial/racine";
5854
+ import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
5855
+ var DonutChartLegendTable = memo17(
5856
+ function DonutChartLegendTable2({
5857
+ data,
5858
+ numberLocale = "en-us",
5859
+ textLocale = "en-us",
5860
+ totalLabel,
5861
+ // optional
5862
+ currency = "USD",
5863
+ numberFormat = "decimal"
5864
+ }) {
5865
+ const total = data.reduce(
5866
+ (accumulator, dataItem) => accumulator + dataItem.value,
5867
+ 0
5868
+ );
5869
+ const rows = data.map((dataPoint, index) => {
5870
+ const { name, icon, styles, value } = dataPoint;
5871
+ const color2 = styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index];
5872
+ return {
5873
+ cells: [
5874
+ {
5875
+ content: /* @__PURE__ */ jsx22(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx22(ChartLegendLabelContentWithIcon, { icon, children: name }) })
5876
+ },
5877
+ {
5878
+ content: /* @__PURE__ */ jsxs8(Box_default, { display: "inline-flex", alignItems: "center", gap: 350, children: [
5879
+ /* @__PURE__ */ jsx22(Text_default, { color: "text.body", children: /* @__PURE__ */ jsx22(
5880
+ Numeral3,
5881
+ {
5882
+ abbreviate: false,
5883
+ format: "percent",
5884
+ locale: numberLocale,
5885
+ number: value / total * 100
5886
+ }
5887
+ ) }),
5888
+ /* @__PURE__ */ jsx22(Text_default, { color: "text.body", fontWeight: "semibold", children: numberFormat === "duration" ? /* @__PURE__ */ jsx22(Duration3, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx22(
5889
+ Numeral3,
5890
+ {
5891
+ abbreviate: false,
5892
+ currency,
5893
+ format: numberFormat,
5894
+ locale: numberLocale,
5895
+ number: value
5896
+ }
5897
+ ) })
5898
+ ] }),
5899
+ align: "right"
5900
+ }
5901
+ ]
5902
+ };
5903
+ });
5904
+ const totalRow = [
5905
+ {
5906
+ cells: [
5907
+ {
5908
+ content: /* @__PURE__ */ jsx22(Text_default, { fontWeight: "semibold", color: "text.headline", children: totalLabel })
5909
+ },
5910
+ {
5911
+ content: /* @__PURE__ */ jsx22(Text_default, { color: "text.body", fontWeight: "bold", children: numberFormat === "duration" ? /* @__PURE__ */ jsx22(Duration3, { locale: textLocale, milliseconds: total }) : /* @__PURE__ */ jsx22(
5912
+ Numeral3,
5913
+ {
5914
+ abbreviate: false,
5915
+ currency,
5916
+ format: numberFormat,
5917
+ locale: numberLocale,
5918
+ number: total
5919
+ }
5920
+ ) }),
5921
+ align: "right"
5922
+ }
5923
+ ],
5924
+ isAppendedRow: true
3613
5925
  }
3614
- break;
3615
- case "month":
3616
- firstPartOptions = { month: "short" };
3617
- if (isFirst || valueDate.getUTCFullYear() !== previousValueDate.getUTCFullYear()) {
3618
- secondPartOptions = { year: "numeric" };
5926
+ ];
5927
+ return /* @__PURE__ */ jsx22(
5928
+ ChartTable,
5929
+ {
5930
+ rows: [...rows, ...totalRow]
3619
5931
  }
3620
- break;
3621
- case "year":
3622
- firstPartOptions = { year: "numeric" };
3623
- break;
3624
- default:
3625
- firstPartOptions = {};
3626
- break;
5932
+ );
3627
5933
  }
3628
- const firstPart = new Intl.DateTimeFormat(textLocale, {
3629
- ...firstPartOptions,
3630
- timeZone: "UTC"
3631
- }).format(valueDate);
3632
- const secondPart = Object.keys(secondPartOptions).length > 0 ? new Intl.DateTimeFormat(textLocale, {
3633
- ...secondPartOptions,
3634
- timeZone: "UTC"
3635
- }).format(valueDate) : void 0;
3636
- return `<span>${firstPart}</span>${secondPart ? `<span>${secondPart}</span>` : ""}`;
3637
- };
5934
+ );
3638
5935
 
3639
- // src/helpers/yAxisLabelFormatter.ts
3640
- import { formatDuration, formatNumeral } from "@sproutsocial/racine";
3641
- var yAxisLabelFormatter = ({
3642
- numberLocale,
3643
- textLocale,
3644
- tickPositions,
3645
- value,
3646
- currency = "USD",
3647
- numberFormat = "decimal"
5936
+ // src/components/LineChart/LineChart.tsx
5937
+ import { memo as memo20 } from "react";
5938
+ import Highcharts3 from "highcharts";
5939
+ import { HighchartsReact as HighchartsReact3 } from "highcharts-react-official";
5940
+ import highchartsAccessibility3 from "highcharts/modules/accessibility";
5941
+ import styled12 from "styled-components";
5942
+
5943
+ // src/components/LineChart/components/LineChartLegend.tsx
5944
+ import { memo as memo18 } from "react";
5945
+ import { jsx as jsx23 } from "react/jsx-runtime";
5946
+ var getLineChartLegendLabels = ({
5947
+ data
3648
5948
  }) => {
3649
- const numberValue = Number(value);
3650
- if (numberValue === 0) {
3651
- return formatNumeral({
3652
- locale: numberLocale,
3653
- number: numberValue
3654
- });
5949
+ return data.map((series, index) => ({
5950
+ content: /* @__PURE__ */ jsx23(ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
5951
+ color: series.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
5952
+ }));
5953
+ };
5954
+ var LineChartLegend = memo18(
5955
+ function LineChartLegend2({ data }) {
5956
+ return /* @__PURE__ */ jsx23(ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
3655
5957
  }
3656
- if (numberFormat === "duration") {
3657
- return formatDuration({
3658
- display: "narrow",
3659
- locale: textLocale,
3660
- milliseconds: numberValue
5958
+ );
5959
+
5960
+ // src/components/LineChart/components/LineChartTooltip.tsx
5961
+ import { memo as memo19 } from "react";
5962
+ import { Duration as Duration4, Numeral as Numeral4 } from "@sproutsocial/racine";
5963
+ import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
5964
+ var LineChartTooltip = memo19(
5965
+ function LineChartTooltip2({
5966
+ data,
5967
+ invalidNumberLabel,
5968
+ numberLocale,
5969
+ textLocale,
5970
+ tooltipDateFormatter,
5971
+ x,
5972
+ // optional
5973
+ currency = "USD",
5974
+ numberFormat = "decimal",
5975
+ onClick,
5976
+ tooltipClickLabel
5977
+ }) {
5978
+ const rows = data.map(({ color: color2, icon, name, value }) => {
5979
+ return {
5980
+ cells: [
5981
+ {
5982
+ content: /* @__PURE__ */ jsx24(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx24(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ jsx24(Text_default, { "aria-label": `${name}: `, children: name }) }) })
5983
+ },
5984
+ {
5985
+ content: value === null && invalidNumberLabel ? /* @__PURE__ */ jsx24(Text_default, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ jsx24(Duration4, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx24(
5986
+ Numeral4,
5987
+ {
5988
+ abbreviate: false,
5989
+ currency,
5990
+ format: numberFormat,
5991
+ locale: numberLocale,
5992
+ number: value
5993
+ }
5994
+ ),
5995
+ align: "right"
5996
+ }
5997
+ ]
5998
+ };
3661
5999
  });
6000
+ return /* @__PURE__ */ jsxs9(ChartTooltip, { children: [
6001
+ /* @__PURE__ */ jsx24(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
6002
+ /* @__PURE__ */ jsx24(ChartTooltipTable, { rows }),
6003
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx24(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs9(Box_default, { display: "flex", alignItems: "center", gap: 300, children: [
6004
+ /* @__PURE__ */ jsx24(Icon_default, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
6005
+ /* @__PURE__ */ jsx24(Text_default, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
6006
+ ] }) : tooltipClickLabel }) : null
6007
+ ] });
3662
6008
  }
3663
- const maxValue = tickPositions && tickPositions.length > 0 ? tickPositions[tickPositions.length - 1] : void 0;
3664
- const abbreviate = typeof maxValue === "number" && maxValue > 9999 ? 1e3 : true;
3665
- return formatNumeral({
3666
- abbreviate,
6009
+ );
6010
+
6011
+ // src/components/LineChart/LineChart.tsx
6012
+ import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
6013
+ highchartsAccessibility3(Highcharts3);
6014
+ var StyledBox5 = styled12(Box_default)`
6015
+ ${lineChartStyles}
6016
+ `;
6017
+ var LineChart = memo20(function LineChart2(props) {
6018
+ const { data } = props;
6019
+ return data.length === 0 ? null : /* @__PURE__ */ jsx25(LineChartWithData, { ...props });
6020
+ });
6021
+ var LineChartWithData = memo20(function LineChartWithData2({
6022
+ data,
6023
+ invalidNumberLabel,
6024
+ numberLocale = "en-us",
6025
+ textLocale = "en-us",
6026
+ tooltipDateFormatter,
6027
+ // optional
6028
+ currency = "USD",
6029
+ numberFormat = "decimal",
6030
+ tooltip,
6031
+ yAxisLabelFormatter: yAxisLabelFormatter2,
6032
+ onClick,
6033
+ tooltipClickLabel
6034
+ }) {
6035
+ const { options, chart, callback } = useTimeSeriesChartOptions({
3667
6036
  currency,
3668
- format: numberFormat,
3669
- locale: numberLocale,
3670
- number: numberValue
6037
+ data,
6038
+ numberFormat,
6039
+ numberLocale,
6040
+ seriesType: "spline",
6041
+ textLocale,
6042
+ yAxisLabelFormatter: yAxisLabelFormatter2,
6043
+ onClick
3671
6044
  });
3672
- };
6045
+ const { colors: colors3, patterns } = data.reduce(
6046
+ (acc, item, index) => {
6047
+ acc.colors.push(
6048
+ item.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index] ?? ""
6049
+ );
6050
+ acc.patterns.push(item.styles?.pattern ?? "solid");
6051
+ return acc;
6052
+ },
6053
+ {
6054
+ colors: [],
6055
+ patterns: []
6056
+ }
6057
+ );
6058
+ return /* @__PURE__ */ jsxs10(
6059
+ StyledBox5,
6060
+ {
6061
+ $colors: colors3,
6062
+ $patterns: patterns,
6063
+ $hasOnClick: Boolean(onClick),
6064
+ bg: "container.background.base",
6065
+ children: [
6066
+ /* @__PURE__ */ jsx25(
6067
+ HighchartsReact3,
6068
+ {
6069
+ highcharts: Highcharts3,
6070
+ options,
6071
+ callback
6072
+ }
6073
+ ),
6074
+ chart ? /* @__PURE__ */ jsx25(
6075
+ ChartTooltipPortal,
6076
+ {
6077
+ chart,
6078
+ renderContent: (context) => {
6079
+ const tooltipData = transformTimeSeriesTooltipData({
6080
+ context,
6081
+ data
6082
+ });
6083
+ const x = context.x;
6084
+ return tooltip ? tooltip({ data: tooltipData, x }) : /* @__PURE__ */ jsx25(
6085
+ LineChartTooltip,
6086
+ {
6087
+ currency,
6088
+ data: tooltipData,
6089
+ invalidNumberLabel,
6090
+ numberFormat,
6091
+ numberLocale,
6092
+ textLocale,
6093
+ tooltipDateFormatter,
6094
+ x,
6095
+ onClick,
6096
+ tooltipClickLabel
6097
+ }
6098
+ );
6099
+ }
6100
+ }
6101
+ ) : null,
6102
+ /* @__PURE__ */ jsx25(Box_default, { mt: 350, children: /* @__PURE__ */ jsx25(LineChartLegend, { data }) })
6103
+ ]
6104
+ }
6105
+ );
6106
+ });
3673
6107
  export {
6108
+ AreaChart,
6109
+ ChartLegend,
6110
+ ChartLegendLabel,
3674
6111
  ChartTable,
6112
+ ChartTooltip,
6113
+ ChartTooltipFooter,
6114
+ ChartTooltipHeader,
6115
+ ChartTooltipTable,
6116
+ ChartTooltipTitle,
3675
6117
  ColorBox,
3676
6118
  DONUT_CHART_HALO_SIZE,
3677
6119
  DONUT_CHART_HEIGHT,
3678
6120
  DONUT_CHART_WIDTH,
3679
6121
  DatavizColorBox,
6122
+ DonutChart,
6123
+ DonutChartLegendTable,
6124
+ LineChart,
3680
6125
  NetworkColorBox,
3681
6126
  TIME_SERIES_CHART_HEIGHT,
3682
6127
  areaChartOptions,
@@ -3693,6 +6138,15 @@ export {
3693
6138
  };
3694
6139
  /*! Bundled license information:
3695
6140
 
6141
+ object-assign/index.js:
6142
+ (*
6143
+ object-assign
6144
+ (c) Sindre Sorhus
6145
+ @license MIT
6146
+ *)
6147
+ */
6148
+ /*! Bundled license information:
6149
+
3696
6150
  object-assign/index.js:
3697
6151
  (*
3698
6152
  object-assign