@sproutsocial/seeds-react-data-viz 0.1.0 → 0.2.0

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,1950 @@ 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 defaultSize = logoType === "symbol" ? "small" : void 0;
4574
+ const defaultWidth = viewBoxCoordinates[2];
4575
+ const defaultHeight = viewBoxCoordinates[3];
4576
+ return /* @__PURE__ */ jsx9(
4577
+ styles_default3,
4578
+ {
4579
+ height: height2 ? height2 : defaultHeight + "px",
4580
+ width: width2 ? width2 : defaultWidth + "px",
4581
+ logoSize: size2 ?? defaultSize,
4582
+ className: "logo",
4583
+ role: "img",
4584
+ "aria-label": ariaLabel,
4585
+ "data-qa-logo": partnerName,
4586
+ ...rest,
4587
+ children: /* @__PURE__ */ jsx9(
4588
+ "svg",
4589
+ {
4590
+ className: "logo-svg",
4591
+ viewBox: logoViewBox,
4592
+ focusable: false,
4593
+ "data-qa-logo-svg": `${partnerName}-svg`,
4594
+ ...svgProps,
4595
+ children: /* @__PURE__ */ jsx9(
4596
+ "use",
4597
+ {
4598
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
4599
+ xlinkHref: `#seeds-svgs_${logo}`
4600
+ }
4601
+ )
4602
+ }
4603
+ )
4604
+ }
4605
+ );
4606
+ };
4607
+ var PartnerLogo_default = PartnerLogo;
4608
+ var src_default2 = PartnerLogo_default;
4609
+
4610
+ // ../seeds-react-utilities/dist/index.mjs
4611
+ function includes(coll, el) {
4612
+ return coll.includes(el);
4613
+ }
4614
+
4615
+ // ../seeds-react-icon/dist/esm/index.js
4616
+ import styled7, { css as css6 } from "styled-components";
4617
+
4618
+ // ../../seeds-assets/seeds-icons/dist/index.mjs
4619
+ 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" };
4620
+ 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" };
4621
+ 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"];
4622
+ 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" };
4623
+
4624
+ // ../seeds-react-icon/dist/esm/index.js
4625
+ import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
4626
+ import "react";
4627
+ var sizes = {
4628
+ mini: "12px",
4629
+ /** TODO: deprecate default in favor of small in future release */
4630
+ default: "16px",
4631
+ small: "16px",
4632
+ medium: "24px",
4633
+ large: "32px",
4634
+ jumbo: "64px"
4635
+ };
4636
+ var stylesForSize2 = (iconActualSize, fixedWidth) => css6`
4637
+ line-height: ${iconActualSize};
4638
+
4639
+ &,
4640
+ .Icon-svg {
4641
+ height: ${iconActualSize};
4642
+ fill: currentColor;
4643
+ }
4644
+
4645
+ ${fixedWidth && `
4646
+ &,
4647
+ & .Icon-svg {
4648
+ width: ${iconActualSize}
4649
+ }
4650
+ `}
4651
+ `;
4652
+ var Container4 = styled7.span.attrs({
4653
+ className: "Icon"
4654
+ })`
4655
+ display: inline-block;
4656
+ color: inherit;
4657
+ vertical-align: middle;
4658
+
4659
+ ${(props) => stylesForSize2(sizes[props.iconSize], props.fixedWidth)}
4660
+
4661
+ ${ke}
4662
+ ${verticalAlign}
4663
+ `;
4664
+ var styles_default4 = Container4;
4665
+ var AllViewboxes = {
4666
+ ...ExternalViewBoxes,
4667
+ ...GeneralViewBoxes,
4668
+ ...SproutViewBoxes
4669
+ };
4670
+ var Icon = ({
4671
+ name,
4672
+ size: size2 = "small",
4673
+ fixedWidth = false,
4674
+ ariaLabel,
4675
+ color: color2,
4676
+ svgProps,
4677
+ ...rest
4678
+ }) => {
4679
+ if (includes(LogoNamesWithoutVariants, name)) {
4680
+ const logoSize = size2 === "default" ? "small" : size2;
4681
+ const logoProps = {
4682
+ partnerName: name,
4683
+ size: logoSize,
4684
+ logoType: "symbol",
4685
+ svgProps
4686
+ };
4687
+ return /* @__PURE__ */ jsx10(
4688
+ src_default2,
4689
+ {
4690
+ "aria-label": ariaLabel,
4691
+ ...rest,
4692
+ ...logoProps
4693
+ }
4694
+ );
4695
+ }
4696
+ const defaultVariant = size2 === "mini" ? "solid" : "outline";
4697
+ const iconName = (
4698
+ // if not external and has no variant
4699
+ !name?.endsWith("-outline") && !name?.endsWith("-solid") && !includes(ExternalIconNames, name) ? (
4700
+ // then add default variant
4701
+ `${name}-${defaultVariant}`
4702
+ ) : (
4703
+ // else use name as is
4704
+ name
4705
+ )
4706
+ );
4707
+ const iconViewBox = AllViewboxes[iconName];
4708
+ return /* @__PURE__ */ jsx10(
4709
+ styles_default4,
4710
+ {
4711
+ iconSize: size2,
4712
+ fixedWidth: !!fixedWidth,
4713
+ role: "img",
4714
+ "aria-label": ariaLabel,
4715
+ "data-qa-icon": iconName,
4716
+ color: color2,
4717
+ ...rest,
4718
+ children: /* @__PURE__ */ jsx10(
4719
+ "svg",
4720
+ {
4721
+ className: "Icon-svg",
4722
+ viewBox: iconViewBox,
4723
+ focusable: false,
4724
+ "data-qa-icon-svg": `${iconName}-svg`,
4725
+ ...svgProps,
4726
+ children: /* @__PURE__ */ jsx10(
4727
+ "use",
4728
+ {
4729
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
4730
+ xlinkHref: `#seeds-svgs_${iconName}`
4731
+ }
4732
+ )
4733
+ }
4734
+ )
4735
+ },
4736
+ iconName
4737
+ );
4738
+ };
4739
+ var ToggleableIcon = styled22(Icon)`
4740
+ transition: all ${(p) => p.theme.duration.fast} linear;
4741
+
4742
+ ${(p) => p.active && css22`
4743
+ opacity: 1;
4744
+ transform: scale(1);
4745
+ `}
4746
+
4747
+ ${(p) => !p.active && css22`
4748
+ position: absolute;
4749
+ opacity: 0;
4750
+ transform: scale(0);
4751
+ `}
4752
+ `;
4753
+ var IconToggle = ({
4754
+ activeName,
4755
+ inactiveName,
4756
+ isActive,
4757
+ size: size2 = "small",
4758
+ fixedWidth = false,
4759
+ ariaLabel,
4760
+ ...rest
4761
+ }) => {
4762
+ return /* @__PURE__ */ jsxs3(src_default, { as: "span", position: "relative", display: "inline-flex", ...rest, children: [
4763
+ /* @__PURE__ */ jsx10(
4764
+ ToggleableIcon,
4765
+ {
4766
+ active: isActive,
4767
+ name: activeName,
4768
+ size: size2,
4769
+ fixedWidth,
4770
+ "aria-label": ariaLabel,
4771
+ "aria-hidden": !isActive
4772
+ }
4773
+ ),
4774
+ /* @__PURE__ */ jsx10(
4775
+ ToggleableIcon,
4776
+ {
4777
+ active: !isActive,
4778
+ name: inactiveName,
4779
+ size: size2,
4780
+ fixedWidth,
4781
+ "aria-label": ariaLabel,
4782
+ "aria-hidden": isActive
4783
+ }
4784
+ )
4785
+ ] });
4786
+ };
4787
+ IconToggle.displayName = "Icon.Toggle";
4788
+ Icon.Toggle = IconToggle;
4789
+ var Icon_default = Icon;
4790
+
4791
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
4792
+ import { Duration, Numeral } from "@sproutsocial/racine";
4793
+
4794
+ // src/components/ChartTooltip/ChartTooltip.tsx
4795
+ import { memo as memo5 } from "react";
4796
+ import styled8 from "styled-components";
4797
+ import { jsx as jsx11 } from "react/jsx-runtime";
4798
+ var StyledBox2 = styled8(Box_default)`
4799
+ .Icon,
4800
+ .logo {
4801
+ stroke: none;
4802
+ }
4803
+ `;
4804
+ var ChartTooltip = memo5(function ChartTooltip2({
4805
+ children
4806
+ }) {
4807
+ return /* @__PURE__ */ jsx11(
4808
+ StyledBox2,
4809
+ {
4810
+ bg: "container.background.base",
4811
+ boxShadow: "medium",
4812
+ border: 500,
4813
+ borderColor: "container.border.base",
4814
+ borderRadius: 500,
4815
+ p: 400,
4816
+ minWidth: 285,
4817
+ children: /* @__PURE__ */ jsx11(Box_default, { display: "flex", flexDirection: "column", gap: 350, children })
4818
+ }
4819
+ );
4820
+ });
4821
+
4822
+ // src/components/ChartTooltip/components/ChartTooltipFooter.tsx
4823
+ import { memo as memo6 } from "react";
4824
+ import { jsx as jsx12 } from "react/jsx-runtime";
4825
+ var ChartTooltipFooter = memo6(
4826
+ function ChartTooltipFooter2({ children }) {
4827
+ return /* @__PURE__ */ jsx12(
4828
+ Box_default,
4829
+ {
4830
+ borderTop: 500,
4831
+ borderColor: "container.border.base",
4832
+ mx: -400,
4833
+ mb: -200,
4834
+ px: 400,
4835
+ pt: 350,
4836
+ children
4837
+ }
4838
+ );
4839
+ }
4840
+ );
4841
+
4842
+ // src/components/ChartTooltip/components/ChartTooltipHeader.tsx
4843
+ import { memo as memo7 } from "react";
4844
+ import { jsx as jsx13 } from "react/jsx-runtime";
4845
+ var ChartTooltipHeader = memo7(
4846
+ function ChartTooltipHeader2({ children }) {
4847
+ return /* @__PURE__ */ jsx13(
4848
+ Box_default,
4849
+ {
4850
+ borderBottom: 500,
4851
+ borderColor: "container.border.base",
4852
+ mx: -400,
4853
+ mt: -200,
4854
+ px: 400,
4855
+ pb: 350,
4856
+ children
4857
+ }
4858
+ );
4859
+ }
4860
+ );
4861
+
4862
+ // src/components/ChartTooltip/components/ChartTooltipTable.tsx
4863
+ import { memo as memo9 } from "react";
4864
+
4865
+ // src/components/ChartTable/ChartTable.tsx
4866
+ import { memo as memo8 } from "react";
4867
+ import styled9 from "styled-components";
4868
+ import { Table as RacineTable } from "@sproutsocial/racine";
4869
+ import { jsx as jsx14 } from "react/jsx-runtime";
4870
+ var StyledRacineTable = styled9(RacineTable)`
4871
+ tbody tr:last-child {
4872
+ border-bottom: none;
4873
+ }
4874
+ tr:last-child td,
4875
+ tr:last-child th {
4876
+ padding-bottom: 0;
4877
+ }
4878
+ tr:first-child td,
4879
+ tr:first-child th {
4880
+ padding-top: 0;
4881
+ }
4882
+ tr th {
4883
+ padding-left: 0;
4884
+ }
4885
+ tr td:last-child {
4886
+ padding-right: 0;
4887
+ }
4888
+ `;
4889
+ var StyledRacineTableRow = styled9(RacineTable.TableRow)`
4890
+ ${({ $isAppendedRow, theme: theme2 }) => $isAppendedRow ? `border-top: 2px solid ${theme2.colors.container.border.base}` : ""}
4891
+ `;
4892
+ var ChartTable = memo8(function ChartTable2({
4893
+ rows
4894
+ }) {
4895
+ if (!rows || rows.length === 0) {
4896
+ return null;
4897
+ }
4898
+ return /* @__PURE__ */ jsx14(StyledRacineTable, { children: /* @__PURE__ */ jsx14(RacineTable.TableBody, { children: rows.map(({ cells, isAppendedRow }, rowIndex) => {
4899
+ if (!cells || cells.length === 0) {
4900
+ return null;
4901
+ }
4902
+ return /* @__PURE__ */ jsx14(
4903
+ StyledRacineTableRow,
4904
+ {
4905
+ $isAppendedRow: isAppendedRow,
4906
+ children: cells.map(
4907
+ ({ content, align = "left", colSpan = 1 }, cellIndex) => {
4908
+ const uniqueIdentifier = `chart-tooltip-table-cell-${cellIndex}`;
4909
+ return /* @__PURE__ */ jsx14(
4910
+ RacineTable.Cell,
4911
+ {
4912
+ id: uniqueIdentifier,
4913
+ scope: cellIndex === 0 ? "row" : void 0,
4914
+ align,
4915
+ colSpan,
4916
+ py: 200,
4917
+ children: /* @__PURE__ */ jsx14(Text_default.SmallBodyCopy, { as: "div", children: content })
4918
+ },
4919
+ uniqueIdentifier
4920
+ );
4921
+ }
4922
+ )
4923
+ },
4924
+ `chart-tooltip-table-row-${rowIndex}`
4925
+ );
4926
+ }) }) });
4927
+ });
4928
+
4929
+ // src/components/ChartTooltip/components/ChartTooltipTable.tsx
4930
+ import { jsx as jsx15 } from "react/jsx-runtime";
4931
+ var ChartTooltipTable = memo9(
4932
+ function ChartTooltipTable2({ rows }) {
4933
+ return /* @__PURE__ */ jsx15(ChartTable, { rows });
4934
+ }
4935
+ );
4936
+
4937
+ // src/components/ChartTooltip/components/ChartTooltipTitle.tsx
4938
+ import { memo as memo10 } from "react";
4939
+ import { jsx as jsx16 } from "react/jsx-runtime";
4940
+ var ChartTooltipTitle = memo10(
4941
+ function ChartTooltipTitle2({ children }) {
4942
+ return /* @__PURE__ */ jsx16(Text_default.SmallSubHeadline, { as: "p", children });
4943
+ }
4944
+ );
4945
+
4946
+ // src/components/AreaChart/components/AreaChartTooltip.tsx
4947
+ import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
4948
+ var AreaChartTooltip = memo11(
4949
+ function AreaChartTooltip2({
4950
+ data,
4951
+ invalidNumberLabel,
4952
+ numberLocale,
4953
+ textLocale,
4954
+ tooltipDateFormatter,
4955
+ tooltipTotalLabel,
4956
+ total,
4957
+ x,
4958
+ // optional
4959
+ currency = "USD",
4960
+ numberFormat = "decimal",
4961
+ onClick,
4962
+ tooltipClickLabel
4963
+ }) {
4964
+ const rows = data.map(({ color: color2, icon, name, value }) => {
4965
+ return {
4966
+ cells: [
4967
+ {
4968
+ content: /* @__PURE__ */ jsx17(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx17(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ jsx17(Text_default, { "aria-label": `${name}: `, children: name }) }) })
4969
+ },
4970
+ {
4971
+ content: value === null && invalidNumberLabel ? /* @__PURE__ */ jsx17(Text_default, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ jsx17(Duration, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx17(
4972
+ Numeral,
4973
+ {
4974
+ abbreviate: false,
4975
+ currency,
4976
+ format: numberFormat,
4977
+ locale: numberLocale,
4978
+ number: value
4979
+ }
4980
+ ),
4981
+ align: "right"
4982
+ }
4983
+ ]
4984
+ };
4985
+ });
4986
+ const appendedRows = data.length > 1 ? [
4987
+ {
4988
+ cells: [
4989
+ {
4990
+ content: /* @__PURE__ */ jsx17(
4991
+ Text_default,
4992
+ {
4993
+ fontWeight: "semibold",
4994
+ "aria-label": `${tooltipTotalLabel}: `,
4995
+ children: tooltipTotalLabel
4996
+ }
4997
+ )
4998
+ },
4999
+ {
5000
+ content: /* @__PURE__ */ jsx17(Text_default, { fontWeight: "bold", children: total === null && invalidNumberLabel ? invalidNumberLabel : numberFormat === "duration" ? /* @__PURE__ */ jsx17(Duration, { locale: textLocale, milliseconds: total }) : /* @__PURE__ */ jsx17(
5001
+ Numeral,
5002
+ {
5003
+ abbreviate: false,
5004
+ currency,
5005
+ format: numberFormat,
5006
+ locale: numberLocale,
5007
+ number: total
5008
+ }
5009
+ ) }),
5010
+ align: "right"
5011
+ }
5012
+ ],
5013
+ isAppendedRow: true
5014
+ }
5015
+ ] : [];
5016
+ return /* @__PURE__ */ jsxs4(ChartTooltip, { children: [
5017
+ /* @__PURE__ */ jsx17(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
5018
+ /* @__PURE__ */ jsx17(
5019
+ ChartTooltipTable,
5020
+ {
5021
+ rows: [...rows, ...appendedRows]
5022
+ }
5023
+ ),
5024
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx17(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs4(Box_default, { display: "flex", alignItems: "center", gap: 300, children: [
5025
+ /* @__PURE__ */ jsx17(Icon_default, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
5026
+ /* @__PURE__ */ jsx17(Text_default, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
5027
+ ] }) : tooltipClickLabel }) : null
5028
+ ] });
5029
+ }
5030
+ );
5031
+
5032
+ // src/components/ChartTooltip/components/ChartTooltipPortal.tsx
5033
+ import { memo as memo12, useState, useRef, useEffect } from "react";
5034
+ import { createPortal } from "react-dom";
5035
+ var generateChartTooltipPortalId = (chartId) => `highcharts-custom-tooltip-${chartId}`;
5036
+ var ChartTooltipPortal = memo12(
5037
+ function ChartTooltipPortal2({
5038
+ chart,
5039
+ renderContent
5040
+ }) {
5041
+ const isInitialized = useRef(false);
5042
+ const [node, setNode] = useState(null);
5043
+ const [context, setContext] = useState(null);
5044
+ useEffect(() => {
5045
+ const formatter = function() {
5046
+ if (!isInitialized.current) {
5047
+ isInitialized.current = true;
5048
+ chart.tooltip.refresh.apply(chart.tooltip, [this.point]);
5049
+ chart.tooltip.hide(0);
5050
+ }
5051
+ setContext(this);
5052
+ return `<div id="${generateChartTooltipPortalId(
5053
+ chart.index
5054
+ )}" role='tooltip'></div>`;
5055
+ };
5056
+ chart.update({ tooltip: { formatter } });
5057
+ }, [chart]);
5058
+ useEffect(() => {
5059
+ if (context?.series?.chart?.tooltip) {
5060
+ const tooltip = context.series.chart.tooltip;
5061
+ const textElement = tooltip.label.text.element;
5062
+ tooltip.label.box.attr({
5063
+ height: textElement.offsetHeight,
5064
+ width: textElement.offsetWidth
5065
+ });
5066
+ setNode(
5067
+ document.getElementById(generateChartTooltipPortalId(chart.index))
5068
+ );
5069
+ }
5070
+ }, [context, chart.index]);
5071
+ return node && context ? createPortal(renderContent(context), node) : null;
5072
+ }
5073
+ );
5074
+
5075
+ // src/helpers/transformDataToSeries.ts
5076
+ var transformDataToSeries = ({ data }, type) => {
5077
+ return data.map((dataItem, dataIndex) => {
5078
+ const points = dataItem.points || [];
5079
+ const dataPoints = points.map((point, pointsIndex) => {
5080
+ let enableMarker = false;
5081
+ const isFirstPoint = pointsIndex === 0;
5082
+ const isLastPoint = pointsIndex === points.length - 1;
5083
+ const previousY = isFirstPoint ? null : points[pointsIndex - 1].y;
5084
+ const nextY = isLastPoint ? null : points[pointsIndex + 1].y;
5085
+ if (isFirstPoint && nextY === null) {
5086
+ enableMarker = true;
5087
+ } else if (isLastPoint && previousY === null) {
5088
+ enableMarker = true;
5089
+ } else if (previousY === null && nextY === null) {
5090
+ enableMarker = true;
5091
+ }
5092
+ return {
5093
+ x: point.x,
5094
+ y: point.y,
5095
+ marker: {
5096
+ enabled: enableMarker ? enableMarker : void 0,
5097
+ symbol: enableMarker ? "circle" : void 0
5098
+ }
5099
+ };
5100
+ });
5101
+ return {
5102
+ colorIndex: dataIndex,
5103
+ data: dataPoints,
5104
+ name: dataItem.name,
5105
+ type
5106
+ };
5107
+ });
5108
+ };
5109
+
5110
+ // src/helpers/transformTimeSeriesTooltipData.ts
5111
+ var transformTimeSeriesTooltipData = ({
5112
+ context,
5113
+ data
5114
+ }) => {
5115
+ return (context.series.chart.series || []).map((series, index) => {
5116
+ const pointIndex = context.point.index;
5117
+ const { y: y2 } = series.points[pointIndex];
5118
+ return {
5119
+ color: data[index]?.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index],
5120
+ ...data[index]?.icon ? { icon: data[index]?.icon } : {},
5121
+ name: series.name,
5122
+ value: typeof y2 === "number" ? y2 : null
5123
+ };
5124
+ });
5125
+ };
5126
+
5127
+ // src/helpers/xAxisLabelFormatter.ts
5128
+ var xAxisLabelFormatter = ({
5129
+ textLocale,
5130
+ tickPositions = [],
5131
+ unitName,
5132
+ value,
5133
+ // optional
5134
+ timeFormat = "12"
5135
+ }) => {
5136
+ const tickIndex = tickPositions.indexOf(value);
5137
+ const isFirst = tickIndex === 0;
5138
+ const previousValue = tickPositions[tickIndex - 1];
5139
+ const valueDate = new Date(value);
5140
+ const previousValueDate = new Date(previousValue);
5141
+ let firstPartOptions = {};
5142
+ let secondPartOptions = {};
5143
+ switch (unitName) {
5144
+ case "hour":
5145
+ firstPartOptions = timeFormat === "24" ? { hour: "numeric", minute: "numeric", hour12: false } : { hour: "numeric" };
5146
+ if (isFirst || valueDate.getUTCDate() !== previousValueDate.getUTCDate()) {
5147
+ secondPartOptions = { day: "numeric", month: "short" };
5148
+ }
5149
+ break;
5150
+ case "day":
5151
+ case "week":
5152
+ firstPartOptions = { day: "numeric" };
5153
+ if (isFirst || valueDate.getUTCMonth() !== previousValueDate.getUTCMonth()) {
5154
+ secondPartOptions = { month: "short" };
5155
+ }
5156
+ break;
5157
+ case "month":
5158
+ firstPartOptions = { month: "short" };
5159
+ if (isFirst || valueDate.getUTCFullYear() !== previousValueDate.getUTCFullYear()) {
5160
+ secondPartOptions = { year: "numeric" };
5161
+ }
5162
+ break;
5163
+ case "year":
5164
+ firstPartOptions = { year: "numeric" };
5165
+ break;
5166
+ default:
5167
+ firstPartOptions = {};
5168
+ break;
5169
+ }
5170
+ const firstPart = new Intl.DateTimeFormat(textLocale, {
5171
+ ...firstPartOptions,
5172
+ timeZone: "UTC"
5173
+ }).format(valueDate);
5174
+ const secondPart = Object.keys(secondPartOptions).length > 0 ? new Intl.DateTimeFormat(textLocale, {
5175
+ ...secondPartOptions,
5176
+ timeZone: "UTC"
5177
+ }).format(valueDate) : void 0;
5178
+ return `<span>${firstPart}</span>${secondPart ? `<span>${secondPart}</span>` : ""}`;
5179
+ };
5180
+
5181
+ // src/helpers/yAxisLabelFormatter.ts
5182
+ import { formatDuration, formatNumeral } from "@sproutsocial/racine";
5183
+ var yAxisLabelFormatter = ({
5184
+ numberLocale,
5185
+ textLocale,
5186
+ tickPositions,
5187
+ value,
5188
+ currency = "USD",
5189
+ numberFormat = "decimal"
5190
+ }) => {
5191
+ const numberValue = Number(value);
5192
+ if (numberValue === 0) {
5193
+ return formatNumeral({
5194
+ locale: numberLocale,
5195
+ number: numberValue
5196
+ });
5197
+ }
5198
+ if (numberFormat === "duration") {
5199
+ return formatDuration({
5200
+ display: "narrow",
5201
+ locale: textLocale,
5202
+ milliseconds: numberValue
5203
+ });
5204
+ }
5205
+ const maxValue = tickPositions && tickPositions.length > 0 ? tickPositions[tickPositions.length - 1] : void 0;
5206
+ const abbreviate = typeof maxValue === "number" && maxValue > 9999 ? 1e3 : true;
5207
+ return formatNumeral({
5208
+ abbreviate,
5209
+ currency,
5210
+ format: numberFormat,
5211
+ locale: numberLocale,
5212
+ number: numberValue
5213
+ });
5214
+ };
5215
+
5216
+ // src/hooks/useTimeSeriesChartOptions.ts
5217
+ import { useState as useState2, useEffect as useEffect2, useCallback } from "react";
5218
+ import "highcharts";
5219
+
5220
+ // src/constants/chartOptions.ts
5221
+ import _2 from "lodash";
5222
+ var baseChartOptions = {
5223
+ chart: {
5224
+ animation: false,
5225
+ styledMode: true
5226
+ },
5227
+ credits: {
5228
+ enabled: false
5229
+ },
5230
+ exporting: {
5231
+ enabled: false,
5232
+ fallbackToExportServer: false
5233
+ },
3442
5234
  legend: {
3443
5235
  enabled: false
3444
5236
  },
@@ -3499,184 +5291,847 @@ var timeSeriesChartOptions = _2.merge({}, baseChartOptions, {
3499
5291
  text: void 0
3500
5292
  }
3501
5293
  }
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"
5294
+ });
5295
+ var lineChartOptions = _2.merge({}, timeSeriesChartOptions, {
5296
+ // plotOptions.spline.events.click is set at the component level because of the optional onClick prop
5297
+ });
5298
+ var areaChartOptions = _2.merge({}, timeSeriesChartOptions, {
5299
+ plotOptions: {
5300
+ areaspline: {
5301
+ // events.click is set at the component level because of the optional onClick prop
5302
+ stacking: "normal"
5303
+ }
5304
+ }
5305
+ });
5306
+ var DONUT_CHART_HALO_SIZE = 10;
5307
+ var DONUT_CHART_HEIGHT = 250 + DONUT_CHART_HALO_SIZE * 2;
5308
+ var DONUT_CHART_WIDTH = DONUT_CHART_HEIGHT;
5309
+ var donutChartOptions = _2.merge({}, baseChartOptions, {
5310
+ chart: {
5311
+ height: DONUT_CHART_HEIGHT,
5312
+ spacing: [0, 0, 0, 0]
5313
+ },
5314
+ plotOptions: {
5315
+ pie: {
5316
+ animation: false,
5317
+ borderRadius: 0,
5318
+ // must be handled here instead of css because of path rendering
5319
+ dataLabels: {
5320
+ enabled: false
5321
+ },
5322
+ innerSize: "50%"
5323
+ }
5324
+ }
5325
+ });
5326
+
5327
+ // src/hooks/useTimeSeriesChartOptions.ts
5328
+ var useTimeSeriesChartOptions = ({
5329
+ data,
5330
+ numberLocale,
5331
+ seriesType,
5332
+ textLocale,
5333
+ currency = "USD",
5334
+ numberFormat = "decimal",
5335
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5336
+ onClick,
5337
+ timeFormat = "12"
5338
+ }) => {
5339
+ const [options, setOptions] = useState2(
5340
+ seriesType === "areaspline" ? areaChartOptions : lineChartOptions
5341
+ );
5342
+ const [chart, setChart] = useState2(null);
5343
+ const callback = useCallback((chartInstance) => {
5344
+ setChart(chartInstance);
5345
+ }, []);
5346
+ useEffect2(() => {
5347
+ setOptions({
5348
+ accessibility: {
5349
+ point: {
5350
+ descriptionFormatter: function() {
5351
+ return " ";
5352
+ }
5353
+ }
5354
+ },
5355
+ chart: {
5356
+ events: {
5357
+ click: onClick ? function() {
5358
+ return onClick({ x: this?.hoverPoint?.x });
5359
+ } : void 0,
5360
+ render: function() {
5361
+ const allPoints = this.series.flatMap((series) => series.data);
5362
+ const tooltipId = generateChartTooltipPortalId(this.index);
5363
+ allPoints.forEach((point) => {
5364
+ const pointElement = point?.graphic?.element;
5365
+ pointElement?.setAttribute("aria-describedby", tooltipId);
5366
+ pointElement?.addEventListener("focus", () => {
5367
+ point.series.chart.tooltip.refresh(point);
5368
+ });
5369
+ pointElement?.addEventListener("blur", () => {
5370
+ point.series.chart.tooltip.hide(0);
5371
+ });
5372
+ });
5373
+ }
5374
+ }
5375
+ },
5376
+ plotOptions: {
5377
+ areaspline: {
5378
+ events: {
5379
+ click: onClick && seriesType === "areaspline" ? function(event) {
5380
+ return onClick({ x: event.point.x });
5381
+ } : void 0
5382
+ }
5383
+ },
5384
+ spline: {
5385
+ events: {
5386
+ click: onClick && seriesType === "spline" ? function(event) {
5387
+ return onClick({ x: event.point.x });
5388
+ } : void 0
5389
+ }
5390
+ }
5391
+ },
5392
+ series: transformDataToSeries({ data }, seriesType),
5393
+ xAxis: {
5394
+ labels: {
5395
+ formatter: function() {
5396
+ return xAxisLabelFormatter({
5397
+ textLocale,
5398
+ tickPositions: this.axis.tickPositions || [],
5399
+ timeFormat,
5400
+ unitName: this.tickPositionInfo.unitName,
5401
+ value: this.value
5402
+ });
5403
+ }
5404
+ }
5405
+ },
5406
+ yAxis: {
5407
+ labels: {
5408
+ formatter: function() {
5409
+ return yAxisLabelFormatter2 ? yAxisLabelFormatter2({
5410
+ y: this.value,
5411
+ yValues: this.axis.tickPositions
5412
+ }) : yAxisLabelFormatter({
5413
+ currency,
5414
+ numberFormat,
5415
+ numberLocale,
5416
+ textLocale,
5417
+ tickPositions: this.axis.tickPositions || [],
5418
+ value: this.value
5419
+ });
5420
+ }
5421
+ }
5422
+ }
5423
+ });
5424
+ }, [
5425
+ currency,
5426
+ data,
5427
+ numberFormat,
5428
+ numberLocale,
5429
+ onClick,
5430
+ seriesType,
5431
+ textLocale,
5432
+ timeFormat,
5433
+ yAxisLabelFormatter2
5434
+ ]);
5435
+ return { options, chart, callback };
5436
+ };
5437
+
5438
+ // src/styles/chartStyles.ts
5439
+ import { css as css7 } from "styled-components";
5440
+ var baseChartStyles = css7`
5441
+ // set color variables and map to each series
5442
+ ${({ $colors }) => $colors.map((color2, index) => {
5443
+ const chartColor = color2 || theme_default.colors.DATAVIZ_COLORS_LIST[index];
5444
+ return `
5445
+ // map colors to custom assigned colors or fallback to default data viz color rotation
5446
+ --highcharts-color-${index}: ${chartColor};
5447
+
5448
+ // highcharts already accounts for 10 series, but if we have more, we need to add them
5449
+ .highcharts-color-${index} {
5450
+ color: var(--highcharts-color-${index});
5451
+ stroke: var(--highcharts-color-${index});
5452
+ fill: var(--highcharts-color-${index});
5453
+ }`;
5454
+ }).join("\n")}
5455
+
5456
+ // set overall chart background color
5457
+ .highcharts-background {
5458
+ fill: ${({ theme: theme2 }) => theme2.colors.container.background.base};
5459
+ }
5460
+ `;
5461
+ var timeSeriesChartStyles = css7`
5462
+ ${baseChartStyles}
5463
+
5464
+ // vertical crosshair styles
5465
+ .highcharts-crosshair {
5466
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.decorative.neutral};
5467
+ stroke-width: 1;
5468
+ }
5469
+
5470
+ // axis and gridline styles
5471
+ .highcharts-grid-line {
5472
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.base};
5473
+ }
5474
+ .highcharts-axis-line {
5475
+ stroke: ${({ theme: theme2 }) => theme2.colors.container.border.base};
5476
+ }
5477
+ .highcharts-tick {
5478
+ stroke: none;
5479
+ }
5480
+ .highcharts-xaxis-labels,
5481
+ .highcharts-yaxis-labels {
5482
+ > span {
5483
+ font-family: ${({ theme: theme2 }) => theme2.fontFamily};
5484
+ ${({ theme: theme2 }) => theme2.typography[100]};
5485
+ font-weight: ${({ theme: theme2 }) => theme2.fontWeights.normal};
5486
+ color: ${({ theme: theme2 }) => theme2.colors.text.subtext};
5487
+ }
5488
+ }
5489
+ .highcharts-xaxis-labels {
5490
+ > span {
5491
+ display: flex;
5492
+ flex-direction: column;
5493
+ align-items: center;
5494
+ > span:nth-of-type(2) {
5495
+ font-weight: ${({ theme: theme2 }) => theme2.fontWeights.semibold};
5496
+ }
3511
5497
  }
3512
5498
  }
5499
+
5500
+ // we don't want to drop the opacity when another item is hovered
5501
+ .highcharts-series-inactive {
5502
+ opacity: 1;
5503
+ }
5504
+
5505
+ // apply cursor pointer when click functionality is turned on
5506
+ ${({ $hasOnClick }) => $hasOnClick && `
5507
+ .highcharts-series,
5508
+ .highcharts-point {
5509
+ cursor: pointer;
5510
+ }
5511
+ .highcharts-plot-background,
5512
+ .highcharts-crosshair,
5513
+ .highcharts-grid-line {
5514
+ fill: transparent;
5515
+ cursor: pointer;
5516
+ }`}
5517
+ `;
5518
+ var lineChartStyles = css7`
5519
+ ${timeSeriesChartStyles}
5520
+
5521
+ // set the line stroke
5522
+ .highcharts-graph {
5523
+ stroke-width: 3;
5524
+ }
5525
+
5526
+ // dashed line styles
5527
+ ${({ $patterns }) => $patterns.map((pattern, index) => {
5528
+ return pattern === "dashed" ? `
5529
+ // highcharts already accounts for 10 series, but if we have more, we need to add them
5530
+ .highcharts-series-${index} {
5531
+ stroke-dasharray: 2, 8;
5532
+ }` : "";
5533
+ })}
5534
+ `;
5535
+ var areaChartStyles = css7`
5536
+ ${timeSeriesChartStyles}
5537
+
5538
+ // don't need to show a stroke for the line part of each area
5539
+ .highcharts-graph {
5540
+ stroke-width: 0;
5541
+ }
5542
+
5543
+ // fill areas to full opacity
5544
+ .highcharts-area {
5545
+ fill-opacity: 1;
5546
+ }
5547
+ `;
5548
+ var donutChartStyles = css7`
5549
+ ${baseChartStyles}
5550
+
5551
+ // remove 250ms fade in/out when hovering over different donut chart slices
5552
+ .highcharts-point {
5553
+ transition: opacity 0s;
5554
+ }
5555
+
5556
+ // remove stroke on donut slices
5557
+ .highcharts-point,
5558
+ .highcharts-pie-series {
5559
+ stroke: none;
5560
+ }
5561
+
5562
+ // don't reduce opacity when hovering
5563
+ .highcharts-point-hover {
5564
+ fill-opacity: none;
5565
+ }
5566
+ `;
5567
+
5568
+ // src/components/AreaChart/AreaChart.tsx
5569
+ import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
5570
+ highchartsAccessibility(Highcharts);
5571
+ var StyledBox3 = styled10(Box_default)`
5572
+ ${areaChartStyles}
5573
+ `;
5574
+ var AreaChart = memo13(function AreaChart2(props) {
5575
+ const { data } = props;
5576
+ return data.length === 0 ? null : /* @__PURE__ */ jsx18(AreaChartWithData, { ...props });
3513
5577
  });
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%"
5578
+ var AreaChartWithData = memo13(function AreaChartWithData2({
5579
+ data,
5580
+ invalidNumberLabel,
5581
+ numberLocale = "en-us",
5582
+ textLocale = "en-us",
5583
+ tooltipDateFormatter,
5584
+ tooltipTotalLabel,
5585
+ // optional
5586
+ currency = "USD",
5587
+ numberFormat = "decimal",
5588
+ tooltip,
5589
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5590
+ onClick,
5591
+ tooltipClickLabel,
5592
+ timeFormat = "12"
5593
+ }) {
5594
+ const { options, chart, callback } = useTimeSeriesChartOptions({
5595
+ currency,
5596
+ data,
5597
+ numberFormat,
5598
+ numberLocale,
5599
+ seriesType: "areaspline",
5600
+ textLocale,
5601
+ yAxisLabelFormatter: yAxisLabelFormatter2,
5602
+ onClick,
5603
+ timeFormat
5604
+ });
5605
+ const colors3 = data.map(
5606
+ (series, index) => series.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index]
5607
+ );
5608
+ return /* @__PURE__ */ jsxs5(
5609
+ StyledBox3,
5610
+ {
5611
+ $colors: colors3,
5612
+ $hasOnClick: Boolean(onClick),
5613
+ bg: "container.background.base",
5614
+ children: [
5615
+ /* @__PURE__ */ jsx18(
5616
+ HighchartsReact,
5617
+ {
5618
+ highcharts: Highcharts,
5619
+ options,
5620
+ callback
5621
+ }
5622
+ ),
5623
+ chart ? /* @__PURE__ */ jsx18(
5624
+ ChartTooltipPortal,
5625
+ {
5626
+ chart,
5627
+ renderContent: (context) => {
5628
+ const tooltipData = transformTimeSeriesTooltipData({
5629
+ context,
5630
+ data
5631
+ });
5632
+ const x = context.x;
5633
+ const total = context.total;
5634
+ return tooltip ? tooltip({ data: tooltipData, total, x }) : /* @__PURE__ */ jsx18(
5635
+ AreaChartTooltip,
5636
+ {
5637
+ currency,
5638
+ data: tooltipData,
5639
+ invalidNumberLabel,
5640
+ numberFormat,
5641
+ numberLocale,
5642
+ textLocale,
5643
+ tooltipDateFormatter,
5644
+ tooltipTotalLabel,
5645
+ total,
5646
+ x,
5647
+ onClick,
5648
+ tooltipClickLabel
5649
+ }
5650
+ );
5651
+ }
5652
+ }
5653
+ ) : null,
5654
+ /* @__PURE__ */ jsx18(Box_default, { mt: 350, children: /* @__PURE__ */ jsx18(AreaChartLegend, { data }) })
5655
+ ]
3531
5656
  }
3532
- }
5657
+ );
3533
5658
  });
3534
5659
 
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
- });
5660
+ // src/components/DonutChart/DonutChart.tsx
5661
+ import { memo as memo16, useState as useState3, useEffect as useEffect3, useCallback as useCallback2 } from "react";
5662
+ import Highcharts2 from "highcharts";
5663
+ import { HighchartsReact as HighchartsReact2 } from "highcharts-react-official";
5664
+ import highchartsAccessibility2 from "highcharts/modules/accessibility";
5665
+ import styled11 from "styled-components";
5666
+
5667
+ // src/components/DonutChart/components/DonutChartLegend.tsx
5668
+ import { memo as memo14 } from "react";
5669
+ import { jsx as jsx19 } from "react/jsx-runtime";
5670
+ var getDonutChartLegendLabels = ({
5671
+ data
5672
+ }) => {
5673
+ return data.map((slice, index) => ({
5674
+ content: /* @__PURE__ */ jsx19(ChartLegendLabelContentWithIcon, { icon: slice.icon, children: slice.name }),
5675
+ color: slice.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
5676
+ }));
3568
5677
  };
5678
+ var DonutChartLegend = memo14(
5679
+ function DonutChartLegend2({ data }) {
5680
+ return /* @__PURE__ */ jsx19(ChartLegend, { legendLabels: getDonutChartLegendLabels({ data }) });
5681
+ }
5682
+ );
3569
5683
 
3570
- // src/helpers/transformTimeSeriesTooltipData.ts
3571
- var transformTimeSeriesTooltipData = ({
5684
+ // src/components/DonutChart/components/DonutChartTooltip.tsx
5685
+ import { memo as memo15 } from "react";
5686
+ import { Duration as Duration2, Numeral as Numeral2 } from "@sproutsocial/racine";
5687
+ import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
5688
+ var DonutChartTooltip = memo15(
5689
+ function DonutChartTooltip2({
5690
+ color: color2,
5691
+ name,
5692
+ numberLocale,
5693
+ percent,
5694
+ textLocale,
5695
+ value,
5696
+ currency,
5697
+ icon,
5698
+ numberFormat
5699
+ }) {
5700
+ const rows = [
5701
+ {
5702
+ cells: [
5703
+ {
5704
+ content: /* @__PURE__ */ jsx20(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx20(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ jsx20(Text_default, { "aria-label": `${name}: `, children: name }) }) })
5705
+ },
5706
+ {
5707
+ content: /* @__PURE__ */ jsxs6(Box_default, { display: "inline-flex", alignItems: "center", gap: 350, children: [
5708
+ /* @__PURE__ */ jsx20(
5709
+ Numeral2,
5710
+ {
5711
+ number: percent,
5712
+ format: "percent",
5713
+ abbreviate: false,
5714
+ locale: numberLocale
5715
+ }
5716
+ ),
5717
+ /* @__PURE__ */ jsx20(Text_default, { fontWeight: "semibold", children: numberFormat === "duration" ? /* @__PURE__ */ jsx20(Duration2, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx20(
5718
+ Numeral2,
5719
+ {
5720
+ abbreviate: false,
5721
+ currency,
5722
+ format: numberFormat,
5723
+ locale: numberLocale,
5724
+ number: value
5725
+ }
5726
+ ) })
5727
+ ] }),
5728
+ align: "right"
5729
+ }
5730
+ ]
5731
+ }
5732
+ ];
5733
+ return /* @__PURE__ */ jsx20(ChartTooltip, { children: /* @__PURE__ */ jsx20(ChartTooltipTable, { rows }) });
5734
+ }
5735
+ );
5736
+
5737
+ // src/components/DonutChart/helpers/transformDonutChartTooltipData.ts
5738
+ var transformDonutChartTooltipData = ({
3572
5739
  context,
3573
5740
  data
3574
5741
  }) => {
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
- });
5742
+ const colorIndex = context.colorIndex;
5743
+ return {
5744
+ color: data[colorIndex]?.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[colorIndex] ?? "",
5745
+ ...data[colorIndex]?.icon ? { icon: data[colorIndex]?.icon } : {},
5746
+ name: context.key,
5747
+ percent: context.percentage,
5748
+ value: context.y
5749
+ };
3585
5750
  };
3586
5751
 
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" };
5752
+ // src/components/DonutChart/DonutChart.tsx
5753
+ import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
5754
+ highchartsAccessibility2(Highcharts2);
5755
+ var StyledBox4 = styled11(Box_default)`
5756
+ ${donutChartStyles}
5757
+ `;
5758
+ var DonutChart = memo16(function DonutChart2(props) {
5759
+ const { data } = props;
5760
+ return data.length === 0 ? null : /* @__PURE__ */ jsx21(DonutChartWithData, { ...props });
5761
+ });
5762
+ var DonutChartWithData = memo16(
5763
+ function DonutChartWithData2({
5764
+ data,
5765
+ numberLocale = "en-us",
5766
+ textLocale = "en-us",
5767
+ // optional
5768
+ currency = "USD",
5769
+ hideLegend = false,
5770
+ numberFormat = "decimal",
5771
+ tooltip
5772
+ }) {
5773
+ const [options, setOptions] = useState3(donutChartOptions);
5774
+ const [chart, setChart] = useState3(null);
5775
+ const callback = useCallback2((chartInstance) => {
5776
+ setChart(chartInstance);
5777
+ }, []);
5778
+ useEffect3(() => {
5779
+ setOptions({
5780
+ accessibility: {
5781
+ point: {
5782
+ descriptionFormatter: function() {
5783
+ return " ";
5784
+ }
5785
+ }
5786
+ },
5787
+ chart: {
5788
+ events: {
5789
+ render: function() {
5790
+ const allSlices = this.series[0]?.data ?? [];
5791
+ const tooltipId = generateChartTooltipPortalId(this.index);
5792
+ allSlices.forEach((slice) => {
5793
+ const sliceElement = slice?.graphic?.element;
5794
+ sliceElement?.setAttribute("aria-describedby", tooltipId);
5795
+ sliceElement?.addEventListener("focus", () => {
5796
+ slice.series.chart.tooltip.refresh(slice);
5797
+ });
5798
+ sliceElement?.addEventListener("blur", () => {
5799
+ slice.series.chart.tooltip.hide(0);
5800
+ });
5801
+ });
5802
+ }
5803
+ }
5804
+ },
5805
+ series: [
5806
+ {
5807
+ type: "pie",
5808
+ data: data.map((item, index) => {
5809
+ return {
5810
+ name: item.name,
5811
+ y: item.value,
5812
+ colorIndex: index
5813
+ };
5814
+ })
5815
+ }
5816
+ ]
5817
+ });
5818
+ }, [data]);
5819
+ const colors3 = data.map(
5820
+ (series, index) => series.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index] ?? ""
5821
+ );
5822
+ return /* @__PURE__ */ jsxs7(StyledBox4, { $colors: colors3, bg: "container.background.base", children: [
5823
+ /* @__PURE__ */ jsx21(
5824
+ HighchartsReact2,
5825
+ {
5826
+ highcharts: Highcharts2,
5827
+ options,
5828
+ callback
5829
+ }
5830
+ ),
5831
+ chart ? /* @__PURE__ */ jsx21(
5832
+ ChartTooltipPortal,
5833
+ {
5834
+ chart,
5835
+ renderContent: (context) => {
5836
+ const { color: color2, icon, name, percent, value } = transformDonutChartTooltipData({ context, data });
5837
+ return tooltip ? tooltip({ color: color2, icon, name, percent, value }) : /* @__PURE__ */ jsx21(
5838
+ DonutChartTooltip,
5839
+ {
5840
+ color: color2,
5841
+ currency,
5842
+ icon,
5843
+ name,
5844
+ numberFormat,
5845
+ numberLocale,
5846
+ percent,
5847
+ textLocale,
5848
+ value
5849
+ }
5850
+ );
5851
+ }
5852
+ }
5853
+ ) : null,
5854
+ hideLegend ? null : /* @__PURE__ */ jsx21(Box_default, { mt: 350, children: /* @__PURE__ */ jsx21(DonutChartLegend, { data }) })
5855
+ ] });
5856
+ }
5857
+ );
5858
+
5859
+ // src/components/DonutChart/components/DonutChartLegendTable.tsx
5860
+ import { memo as memo17 } from "react";
5861
+ import { Duration as Duration3, Numeral as Numeral3 } from "@sproutsocial/racine";
5862
+ import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
5863
+ var DonutChartLegendTable = memo17(
5864
+ function DonutChartLegendTable2({
5865
+ data,
5866
+ numberLocale = "en-us",
5867
+ textLocale = "en-us",
5868
+ totalLabel,
5869
+ // optional
5870
+ currency = "USD",
5871
+ numberFormat = "decimal"
5872
+ }) {
5873
+ const total = data.reduce(
5874
+ (accumulator, dataItem) => accumulator + dataItem.value,
5875
+ 0
5876
+ );
5877
+ const rows = data.map((dataPoint, index) => {
5878
+ const { name, icon, styles, value } = dataPoint;
5879
+ const color2 = styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index];
5880
+ return {
5881
+ cells: [
5882
+ {
5883
+ content: /* @__PURE__ */ jsx22(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx22(ChartLegendLabelContentWithIcon, { icon, children: name }) })
5884
+ },
5885
+ {
5886
+ content: /* @__PURE__ */ jsxs8(Box_default, { display: "inline-flex", alignItems: "center", gap: 350, children: [
5887
+ /* @__PURE__ */ jsx22(Text_default, { color: "text.body", children: /* @__PURE__ */ jsx22(
5888
+ Numeral3,
5889
+ {
5890
+ abbreviate: false,
5891
+ format: "percent",
5892
+ locale: numberLocale,
5893
+ number: value / total * 100
5894
+ }
5895
+ ) }),
5896
+ /* @__PURE__ */ jsx22(Text_default, { color: "text.body", fontWeight: "semibold", children: numberFormat === "duration" ? /* @__PURE__ */ jsx22(Duration3, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx22(
5897
+ Numeral3,
5898
+ {
5899
+ abbreviate: false,
5900
+ currency,
5901
+ format: numberFormat,
5902
+ locale: numberLocale,
5903
+ number: value
5904
+ }
5905
+ ) })
5906
+ ] }),
5907
+ align: "right"
5908
+ }
5909
+ ]
5910
+ };
5911
+ });
5912
+ const totalRow = [
5913
+ {
5914
+ cells: [
5915
+ {
5916
+ content: /* @__PURE__ */ jsx22(Text_default, { fontWeight: "semibold", color: "text.headline", children: totalLabel })
5917
+ },
5918
+ {
5919
+ content: /* @__PURE__ */ jsx22(Text_default, { color: "text.body", fontWeight: "bold", children: numberFormat === "duration" ? /* @__PURE__ */ jsx22(Duration3, { locale: textLocale, milliseconds: total }) : /* @__PURE__ */ jsx22(
5920
+ Numeral3,
5921
+ {
5922
+ abbreviate: false,
5923
+ currency,
5924
+ format: numberFormat,
5925
+ locale: numberLocale,
5926
+ number: total
5927
+ }
5928
+ ) }),
5929
+ align: "right"
5930
+ }
5931
+ ],
5932
+ isAppendedRow: true
3613
5933
  }
3614
- break;
3615
- case "month":
3616
- firstPartOptions = { month: "short" };
3617
- if (isFirst || valueDate.getUTCFullYear() !== previousValueDate.getUTCFullYear()) {
3618
- secondPartOptions = { year: "numeric" };
5934
+ ];
5935
+ return /* @__PURE__ */ jsx22(
5936
+ ChartTable,
5937
+ {
5938
+ rows: [...rows, ...totalRow]
3619
5939
  }
3620
- break;
3621
- case "year":
3622
- firstPartOptions = { year: "numeric" };
3623
- break;
3624
- default:
3625
- firstPartOptions = {};
3626
- break;
5940
+ );
3627
5941
  }
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
- };
5942
+ );
3638
5943
 
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"
5944
+ // src/components/LineChart/LineChart.tsx
5945
+ import { memo as memo20 } from "react";
5946
+ import Highcharts3 from "highcharts";
5947
+ import { HighchartsReact as HighchartsReact3 } from "highcharts-react-official";
5948
+ import highchartsAccessibility3 from "highcharts/modules/accessibility";
5949
+ import styled12 from "styled-components";
5950
+
5951
+ // src/components/LineChart/components/LineChartLegend.tsx
5952
+ import { memo as memo18 } from "react";
5953
+ import { jsx as jsx23 } from "react/jsx-runtime";
5954
+ var getLineChartLegendLabels = ({
5955
+ data
3648
5956
  }) => {
3649
- const numberValue = Number(value);
3650
- if (numberValue === 0) {
3651
- return formatNumeral({
3652
- locale: numberLocale,
3653
- number: numberValue
3654
- });
5957
+ return data.map((series, index) => ({
5958
+ content: /* @__PURE__ */ jsx23(ChartLegendLabelContentWithIcon, { icon: series.icon, children: series.name }),
5959
+ color: series.styles?.color || theme_default.colors.DATAVIZ_COLORS_LIST[index]
5960
+ }));
5961
+ };
5962
+ var LineChartLegend = memo18(
5963
+ function LineChartLegend2({ data }) {
5964
+ return /* @__PURE__ */ jsx23(ChartLegend, { legendLabels: getLineChartLegendLabels({ data }) });
3655
5965
  }
3656
- if (numberFormat === "duration") {
3657
- return formatDuration({
3658
- display: "narrow",
3659
- locale: textLocale,
3660
- milliseconds: numberValue
5966
+ );
5967
+
5968
+ // src/components/LineChart/components/LineChartTooltip.tsx
5969
+ import { memo as memo19 } from "react";
5970
+ import { Duration as Duration4, Numeral as Numeral4 } from "@sproutsocial/racine";
5971
+ import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
5972
+ var LineChartTooltip = memo19(
5973
+ function LineChartTooltip2({
5974
+ data,
5975
+ invalidNumberLabel,
5976
+ numberLocale,
5977
+ textLocale,
5978
+ tooltipDateFormatter,
5979
+ x,
5980
+ // optional
5981
+ currency = "USD",
5982
+ numberFormat = "decimal",
5983
+ onClick,
5984
+ tooltipClickLabel
5985
+ }) {
5986
+ const rows = data.map(({ color: color2, icon, name, value }) => {
5987
+ return {
5988
+ cells: [
5989
+ {
5990
+ content: /* @__PURE__ */ jsx24(ChartLegendLabel, { color: color2, children: /* @__PURE__ */ jsx24(ChartLegendLabelContentWithIcon, { icon, children: /* @__PURE__ */ jsx24(Text_default, { "aria-label": `${name}: `, children: name }) }) })
5991
+ },
5992
+ {
5993
+ content: value === null && invalidNumberLabel ? /* @__PURE__ */ jsx24(Text_default, { children: invalidNumberLabel }) : numberFormat === "duration" ? /* @__PURE__ */ jsx24(Duration4, { locale: textLocale, milliseconds: value }) : /* @__PURE__ */ jsx24(
5994
+ Numeral4,
5995
+ {
5996
+ abbreviate: false,
5997
+ currency,
5998
+ format: numberFormat,
5999
+ locale: numberLocale,
6000
+ number: value
6001
+ }
6002
+ ),
6003
+ align: "right"
6004
+ }
6005
+ ]
6006
+ };
3661
6007
  });
6008
+ return /* @__PURE__ */ jsxs9(ChartTooltip, { children: [
6009
+ /* @__PURE__ */ jsx24(ChartTooltipTitle, { children: tooltipDateFormatter({ x }) }),
6010
+ /* @__PURE__ */ jsx24(ChartTooltipTable, { rows }),
6011
+ onClick && tooltipClickLabel ? /* @__PURE__ */ jsx24(ChartTooltipFooter, { children: typeof tooltipClickLabel === "string" ? /* @__PURE__ */ jsxs9(Box_default, { display: "flex", alignItems: "center", gap: 300, children: [
6012
+ /* @__PURE__ */ jsx24(Icon_default, { name: "hand-pointer-clicking-outline", color: "icon.base" }),
6013
+ /* @__PURE__ */ jsx24(Text_default, { color: "text.subtext", fontSize: 200, children: tooltipClickLabel })
6014
+ ] }) : tooltipClickLabel }) : null
6015
+ ] });
3662
6016
  }
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,
6017
+ );
6018
+
6019
+ // src/components/LineChart/LineChart.tsx
6020
+ import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
6021
+ highchartsAccessibility3(Highcharts3);
6022
+ var StyledBox5 = styled12(Box_default)`
6023
+ ${lineChartStyles}
6024
+ `;
6025
+ var LineChart = memo20(function LineChart2(props) {
6026
+ const { data } = props;
6027
+ return data.length === 0 ? null : /* @__PURE__ */ jsx25(LineChartWithData, { ...props });
6028
+ });
6029
+ var LineChartWithData = memo20(function LineChartWithData2({
6030
+ data,
6031
+ invalidNumberLabel,
6032
+ numberLocale = "en-us",
6033
+ textLocale = "en-us",
6034
+ tooltipDateFormatter,
6035
+ // optional
6036
+ currency = "USD",
6037
+ numberFormat = "decimal",
6038
+ tooltip,
6039
+ yAxisLabelFormatter: yAxisLabelFormatter2,
6040
+ onClick,
6041
+ tooltipClickLabel,
6042
+ timeFormat = "12"
6043
+ }) {
6044
+ const { options, chart, callback } = useTimeSeriesChartOptions({
3667
6045
  currency,
3668
- format: numberFormat,
3669
- locale: numberLocale,
3670
- number: numberValue
6046
+ data,
6047
+ numberFormat,
6048
+ numberLocale,
6049
+ seriesType: "spline",
6050
+ textLocale,
6051
+ yAxisLabelFormatter: yAxisLabelFormatter2,
6052
+ onClick,
6053
+ timeFormat
3671
6054
  });
3672
- };
6055
+ const { colors: colors3, patterns } = data.reduce(
6056
+ (acc, item, index) => {
6057
+ acc.colors.push(
6058
+ item.styles?.color ?? theme_default.colors.DATAVIZ_COLORS_LIST[index] ?? ""
6059
+ );
6060
+ acc.patterns.push(item.styles?.pattern ?? "solid");
6061
+ return acc;
6062
+ },
6063
+ {
6064
+ colors: [],
6065
+ patterns: []
6066
+ }
6067
+ );
6068
+ return /* @__PURE__ */ jsxs10(
6069
+ StyledBox5,
6070
+ {
6071
+ $colors: colors3,
6072
+ $patterns: patterns,
6073
+ $hasOnClick: Boolean(onClick),
6074
+ bg: "container.background.base",
6075
+ children: [
6076
+ /* @__PURE__ */ jsx25(
6077
+ HighchartsReact3,
6078
+ {
6079
+ highcharts: Highcharts3,
6080
+ options,
6081
+ callback
6082
+ }
6083
+ ),
6084
+ chart ? /* @__PURE__ */ jsx25(
6085
+ ChartTooltipPortal,
6086
+ {
6087
+ chart,
6088
+ renderContent: (context) => {
6089
+ const tooltipData = transformTimeSeriesTooltipData({
6090
+ context,
6091
+ data
6092
+ });
6093
+ const x = context.x;
6094
+ return tooltip ? tooltip({ data: tooltipData, x }) : /* @__PURE__ */ jsx25(
6095
+ LineChartTooltip,
6096
+ {
6097
+ currency,
6098
+ data: tooltipData,
6099
+ invalidNumberLabel,
6100
+ numberFormat,
6101
+ numberLocale,
6102
+ textLocale,
6103
+ tooltipDateFormatter,
6104
+ x,
6105
+ onClick,
6106
+ tooltipClickLabel
6107
+ }
6108
+ );
6109
+ }
6110
+ }
6111
+ ) : null,
6112
+ /* @__PURE__ */ jsx25(Box_default, { mt: 350, children: /* @__PURE__ */ jsx25(LineChartLegend, { data }) })
6113
+ ]
6114
+ }
6115
+ );
6116
+ });
3673
6117
  export {
6118
+ AreaChart,
6119
+ ChartLegend,
6120
+ ChartLegendLabel,
3674
6121
  ChartTable,
6122
+ ChartTooltip,
6123
+ ChartTooltipFooter,
6124
+ ChartTooltipHeader,
6125
+ ChartTooltipTable,
6126
+ ChartTooltipTitle,
3675
6127
  ColorBox,
3676
6128
  DONUT_CHART_HALO_SIZE,
3677
6129
  DONUT_CHART_HEIGHT,
3678
6130
  DONUT_CHART_WIDTH,
3679
6131
  DatavizColorBox,
6132
+ DonutChart,
6133
+ DonutChartLegendTable,
6134
+ LineChart,
3680
6135
  NetworkColorBox,
3681
6136
  TIME_SERIES_CHART_HEIGHT,
3682
6137
  areaChartOptions,
@@ -3693,6 +6148,15 @@ export {
3693
6148
  };
3694
6149
  /*! Bundled license information:
3695
6150
 
6151
+ object-assign/index.js:
6152
+ (*
6153
+ object-assign
6154
+ (c) Sindre Sorhus
6155
+ @license MIT
6156
+ *)
6157
+ */
6158
+ /*! Bundled license information:
6159
+
3696
6160
  object-assign/index.js:
3697
6161
  (*
3698
6162
  object-assign