sag_components 2.0.0-beta2 → 2.0.0-beta3

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/index.js CHANGED
@@ -39532,7 +39532,7 @@ generateCategoricalChart({
39532
39532
  /**
39533
39533
  * @fileOverview Bar Chart
39534
39534
  */
39535
- var BarChart = generateCategoricalChart({
39535
+ var BarChart$1 = generateCategoricalChart({
39536
39536
  chartName: 'BarChart',
39537
39537
  GraphicalChild: Bar,
39538
39538
  defaultTooltipEventType: 'axis',
@@ -43172,7 +43172,7 @@ const scrollableStyles$a = `
43172
43172
  border-radius: 5px;
43173
43173
  }
43174
43174
  `;
43175
- const ControlsContainer$8 = dt.div`
43175
+ const ControlsContainer$9 = dt.div`
43176
43176
  position: relative;
43177
43177
  font-family: "Poppins", sans-serif;
43178
43178
  font-style: normal;
@@ -43191,7 +43191,7 @@ const ControlsContainer$8 = dt.div`
43191
43191
  box-sizing: border-box;
43192
43192
  }
43193
43193
  `;
43194
- const Controls$5 = dt.div`
43194
+ const Controls$6 = dt.div`
43195
43195
  display: flex;
43196
43196
  flex-direction: column;
43197
43197
  width: 100%;
@@ -43222,7 +43222,7 @@ const TitleAndValueContainer$4 = dt.div`
43222
43222
  flex-direction: column;
43223
43223
  padding: 0 20px;
43224
43224
  `;
43225
- const Title$9 = dt.h4`
43225
+ const Title$a = dt.h4`
43226
43226
  font-weight: 400;
43227
43227
  font-size: 18px;
43228
43228
  margin: 0 0 8px;
@@ -43302,7 +43302,7 @@ const LegendFormattedValue$1 = dt.span`
43302
43302
  white-space: nowrap;
43303
43303
  `;
43304
43304
 
43305
- const ControlsContainer$7 = dt.div`
43305
+ const ControlsContainer$8 = dt.div`
43306
43306
  display: flex;
43307
43307
  position: relative;
43308
43308
  margin: 0px 0 0px;
@@ -43315,7 +43315,7 @@ const ControlsContainer$7 = dt.div`
43315
43315
  //border: 1px solid red;
43316
43316
  align-items: center;
43317
43317
  `;
43318
- const Controls$4 = dt.div`
43318
+ const Controls$5 = dt.div`
43319
43319
  position: relative;
43320
43320
  border-radius: 100px;
43321
43321
  width: ${props => props.width.toString().concat('', 'px')};
@@ -43563,7 +43563,7 @@ const Benchmark = props => {
43563
43563
  return width * (benchmarkValue / totalValue);
43564
43564
  };
43565
43565
  const getTooltipText = () => /*#__PURE__*/React__default["default"].createElement("h4", null, tooltipLabel, tooltipLabel ? ': ' : '', getFormattedValue(benchmarkValue)?.toString(), getFormattedUnits(benchmarkValue)?.toString());
43566
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$7, {
43566
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$8, {
43567
43567
  id: "ControlsContainer",
43568
43568
  height: height,
43569
43569
  width: width
@@ -43571,7 +43571,7 @@ const Benchmark = props => {
43571
43571
  id: "Tooltip",
43572
43572
  content: getTooltipText(),
43573
43573
  direction: tooltipDirection
43574
- }, /*#__PURE__*/React__default["default"].createElement(Controls$4, {
43574
+ }, /*#__PURE__*/React__default["default"].createElement(Controls$5, {
43575
43575
  id: "ControlsBenchmark",
43576
43576
  height: height,
43577
43577
  width: width
@@ -43688,7 +43688,7 @@ const PieChart = props => {
43688
43688
  }
43689
43689
  return null;
43690
43690
  };
43691
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$8, {
43691
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$9, {
43692
43692
  className: className,
43693
43693
  height: height,
43694
43694
  width: width,
@@ -43696,13 +43696,13 @@ const PieChart = props => {
43696
43696
  }, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/React__default["default"].createElement(NoDataFoundMessage, {
43697
43697
  className: "NoDataFoundMessage",
43698
43698
  noDataText: noDataText
43699
- }) : /*#__PURE__*/React__default["default"].createElement(Controls$5, {
43699
+ }) : /*#__PURE__*/React__default["default"].createElement(Controls$6, {
43700
43700
  className: "Controls",
43701
43701
  height: height,
43702
43702
  width: width
43703
43703
  }, !hideTitleAndValue && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$4, {
43704
43704
  className: "TitleAndValueContainer"
43705
- }, /*#__PURE__*/React__default["default"].createElement(Title$9, {
43705
+ }, /*#__PURE__*/React__default["default"].createElement(Title$a, {
43706
43706
  className: "Title"
43707
43707
  }, title), /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer$2, {
43708
43708
  className: "CurrencySignAndFormattedValueContainer"
@@ -44658,7 +44658,7 @@ EventDetailsCard.defaultProps = {
44658
44658
  disableViewDetailsButton: false
44659
44659
  };
44660
44660
 
44661
- const LinnerContainer = dt.div`
44661
+ const LinnerContainer$1 = dt.div`
44662
44662
  font-family: "Poppins", sans-serif;
44663
44663
  display: flex;
44664
44664
  justify-content: space-between;
@@ -44675,11 +44675,11 @@ const DataBoxWrap = dt.div`
44675
44675
  width: ${props => props.width};
44676
44676
  height: 100%;
44677
44677
  `;
44678
- const DataBox = dt.div`
44678
+ const DataBox$1 = dt.div`
44679
44679
  color: #212121;
44680
44680
  font-weight: 400;
44681
44681
  `;
44682
- const DataBoxTitle = dt.span`
44682
+ const DataBoxTitle$1 = dt.span`
44683
44683
  font-size: 18px;
44684
44684
  font-weight: 500;
44685
44685
  `;
@@ -44729,7 +44729,7 @@ const LinnerDataBox = props => {
44729
44729
  className,
44730
44730
  customDataFormat
44731
44731
  } = props;
44732
- return /*#__PURE__*/React__default["default"].createElement(LinnerContainer, {
44732
+ return /*#__PURE__*/React__default["default"].createElement(LinnerContainer$1, {
44733
44733
  className: className,
44734
44734
  backgroundColor: backgroundColor,
44735
44735
  width: width || "100%",
@@ -44738,7 +44738,7 @@ const LinnerDataBox = props => {
44738
44738
  }, data.map((item, index) => /*#__PURE__*/React__default["default"].createElement(DataBoxWrap, {
44739
44739
  key: `${item.title}`,
44740
44740
  width: `${100 / data.length}%`
44741
- }, /*#__PURE__*/React__default["default"].createElement(DataBox, null, item.title && /*#__PURE__*/React__default["default"].createElement(DataBoxTitle, {
44741
+ }, /*#__PURE__*/React__default["default"].createElement(DataBox$1, null, item.title && /*#__PURE__*/React__default["default"].createElement(DataBoxTitle$1, {
44742
44742
  className: "DataBoxTitle"
44743
44743
  }, item.title), /*#__PURE__*/React__default["default"].createElement(DataBoxContent, null, item.value !== null && item.value !== undefined && !isNaN(item.value) && item.value !== "null" && item.value !== "undefined" ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, item.sign && /*#__PURE__*/React__default["default"].createElement(DataBoxContentSign, null, item.sign), customDataFormat ? /*#__PURE__*/React__default["default"].createElement(DataBoxContentValue, {
44744
44744
  className: "DataBoxValue"
@@ -45149,7 +45149,7 @@ const SagIconButtonWrapper = dt.button`
45149
45149
  box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);
45150
45150
  }
45151
45151
  `;
45152
- const SpanText = dt.span`
45152
+ const SpanText$1 = dt.span`
45153
45153
  `;
45154
45154
 
45155
45155
  const SagIconButton = props => {
@@ -45245,7 +45245,7 @@ const SagIconButton = props => {
45245
45245
  onClick: event => {
45246
45246
  onClickHandler(event);
45247
45247
  }
45248
- }, getIcon(iconName), buttonText && /*#__PURE__*/React__default["default"].createElement(SpanText, null, buttonText));
45248
+ }, getIcon(iconName), buttonText && /*#__PURE__*/React__default["default"].createElement(SpanText$1, null, buttonText));
45249
45249
  };
45250
45250
  SagIconButton.propTypes = {
45251
45251
  className: PropTypes.string,
@@ -51275,70 +51275,67 @@ const DropdownMain = dt.div`
51275
51275
  `;
51276
51276
 
51277
51277
  /* eslint-disable react/prop-types */
51278
- const DropdownNew = _ref => {
51279
- let {
51280
- isMulti,
51281
- label,
51282
- labelEmptyValue,
51283
- options,
51284
- selectedValue,
51285
- placeHolder,
51286
- onChange,
51287
- required,
51288
- disabled,
51289
- width,
51290
- error,
51291
- errorMessage,
51292
- labelColor,
51293
- checkBoxColor,
51294
- xIconShow,
51295
- showLabelOnTop,
51296
- orderBy,
51297
- elementType
51298
- } = _ref;
51299
- return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
51300
- className: "DropdownMain",
51301
- width: width
51302
- }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
51303
- className: "DropdownMultiNew",
51304
- placeHolder: placeHolder,
51305
- label: label,
51306
- labelEmptyValue: labelEmptyValue,
51307
- labelColor: labelColor,
51308
- checkBoxColor: checkBoxColor,
51309
- required: required,
51310
- options: options,
51311
- width: width,
51312
- disabled: disabled,
51313
- error: error,
51314
- errorMessage: errorMessage,
51315
- selectedValue: selectedValue,
51316
- xIconShow: xIconShow,
51317
- onChange: onChange,
51318
- showLabelOnTop: showLabelOnTop,
51319
- orderBy: orderBy,
51320
- elementType: elementType
51321
- }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
51322
- className: "DropdownSingleNew",
51323
- placeHolder: placeHolder,
51324
- label: label,
51325
- labelEmptyValue: labelEmptyValue,
51326
- labelColor: labelColor,
51327
- checkBoxColor: checkBoxColor,
51328
- required: required,
51329
- options: options,
51330
- width: width,
51331
- disabled: disabled,
51332
- error: error,
51333
- errorMessage: errorMessage,
51334
- selectedValue: selectedValue,
51335
- xIconShow: xIconShow,
51336
- onChange: onChange,
51337
- showLabelOnTop: showLabelOnTop,
51338
- orderBy: orderBy,
51339
- elementType: elementType
51340
- }));
51341
- };
51278
+ const DropdownNew = ({
51279
+ isMulti,
51280
+ label,
51281
+ labelEmptyValue,
51282
+ options,
51283
+ selectedValue,
51284
+ placeHolder,
51285
+ onChange,
51286
+ required,
51287
+ disabled,
51288
+ width,
51289
+ error,
51290
+ errorMessage,
51291
+ labelColor,
51292
+ checkBoxColor,
51293
+ xIconShow,
51294
+ showLabelOnTop,
51295
+ orderBy,
51296
+ elementType
51297
+ }) => /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
51298
+ className: "DropdownMain",
51299
+ width: width
51300
+ }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
51301
+ className: "DropdownMultiNew",
51302
+ placeHolder: placeHolder,
51303
+ label: label,
51304
+ labelEmptyValue: labelEmptyValue,
51305
+ labelColor: labelColor,
51306
+ checkBoxColor: checkBoxColor,
51307
+ required: required,
51308
+ options: options,
51309
+ width: width,
51310
+ disabled: disabled,
51311
+ error: error,
51312
+ errorMessage: errorMessage,
51313
+ selectedValue: selectedValue,
51314
+ xIconShow: xIconShow,
51315
+ onChange: onChange,
51316
+ showLabelOnTop: showLabelOnTop,
51317
+ orderBy: orderBy,
51318
+ elementType: elementType
51319
+ }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
51320
+ className: "DropdownSingleNew",
51321
+ placeHolder: placeHolder,
51322
+ label: label,
51323
+ labelEmptyValue: labelEmptyValue,
51324
+ labelColor: labelColor,
51325
+ checkBoxColor: checkBoxColor,
51326
+ required: required,
51327
+ options: options,
51328
+ width: width,
51329
+ disabled: disabled,
51330
+ error: error,
51331
+ errorMessage: errorMessage,
51332
+ selectedValue: selectedValue,
51333
+ xIconShow: xIconShow,
51334
+ onChange: onChange,
51335
+ showLabelOnTop: showLabelOnTop,
51336
+ orderBy: orderBy,
51337
+ elementType: elementType
51338
+ }));
51342
51339
  DropdownNew.propTypes = {
51343
51340
  placeHolder: PropTypes.string,
51344
51341
  label: PropTypes.string,
@@ -51752,21 +51749,20 @@ const DatePicker = ({
51752
51749
  };
51753
51750
 
51754
51751
  /* eslint-disable import/no-extraneous-dependencies */
51755
- const RangePicker = _ref => {
51756
- let {
51757
- label,
51758
- onChange,
51759
- borderRadius,
51760
- required,
51761
- width,
51762
- height,
51763
- placeholder,
51764
- disabled,
51765
- borderColor,
51766
- borderColorFocus,
51767
- textColor,
51768
- selectedValue
51769
- } = _ref;
51752
+ const RangePicker = ({
51753
+ label,
51754
+ onChange,
51755
+ borderRadius,
51756
+ required,
51757
+ width,
51758
+ height,
51759
+ placeholder,
51760
+ disabled,
51761
+ borderColor,
51762
+ borderColorFocus,
51763
+ textColor,
51764
+ selectedValue
51765
+ }) => {
51770
51766
  const [isFocused, setIsFocused] = React.useState(false);
51771
51767
  const [isOpen, setIsOpen] = React.useState(false);
51772
51768
  const [value, setValue] = React.useState(''); // Added value state
@@ -52198,23 +52194,22 @@ const QuarterPopupPicker = ({
52198
52194
  };
52199
52195
 
52200
52196
  /* eslint-disable import/no-extraneous-dependencies */
52201
- const QuarterPicker = _ref => {
52202
- let {
52203
- availableQuarters,
52204
- // ["Q1-2024"]
52205
- label,
52206
- onChange,
52207
- borderRadius,
52208
- required,
52209
- width,
52210
- height,
52211
- placeholder,
52212
- disabled,
52213
- borderColor,
52214
- borderColorFocus,
52215
- textColor,
52216
- selectedValue
52217
- } = _ref;
52197
+ const QuarterPicker = ({
52198
+ availableQuarters,
52199
+ // ["Q1-2024"]
52200
+ label,
52201
+ onChange,
52202
+ borderRadius,
52203
+ required,
52204
+ width,
52205
+ height,
52206
+ placeholder,
52207
+ disabled,
52208
+ borderColor,
52209
+ borderColorFocus,
52210
+ textColor,
52211
+ selectedValue
52212
+ }) => {
52218
52213
  const [isFocused, setIsFocused] = React.useState(false);
52219
52214
  const [isOpen, setIsOpen] = React.useState(false);
52220
52215
  const [value, setValue] = React.useState('');
@@ -52653,22 +52648,21 @@ const MonthPopupPicker = ({
52653
52648
  };
52654
52649
 
52655
52650
  /* eslint-disable import/no-extraneous-dependencies */
52656
- const MonthPicker = _ref => {
52657
- let {
52658
- availableMonths,
52659
- label,
52660
- onChange,
52661
- borderRadius,
52662
- required,
52663
- width,
52664
- height,
52665
- placeholder,
52666
- disabled,
52667
- borderColor,
52668
- borderColorFocus,
52669
- textColor,
52670
- selectedValue
52671
- } = _ref;
52651
+ const MonthPicker = ({
52652
+ availableMonths,
52653
+ label,
52654
+ onChange,
52655
+ borderRadius,
52656
+ required,
52657
+ width,
52658
+ height,
52659
+ placeholder,
52660
+ disabled,
52661
+ borderColor,
52662
+ borderColorFocus,
52663
+ textColor,
52664
+ selectedValue
52665
+ }) => {
52672
52666
  const [isFocused, setIsFocused] = React.useState(false);
52673
52667
  const [isOpen, setIsOpen] = React.useState(false);
52674
52668
  const [value, setValue] = React.useState('');
@@ -52821,7 +52815,7 @@ MonthPicker.defaultProps = {
52821
52815
  selectedValue: ''
52822
52816
  };
52823
52817
 
52824
- const ControlsContainer$6 = dt.div`
52818
+ const ControlsContainer$7 = dt.div`
52825
52819
  display: flex;
52826
52820
  flex-direction: column;
52827
52821
  justify-content: space-between;
@@ -53441,7 +53435,7 @@ const FilterPanel = props => {
53441
53435
  }
53442
53436
  return content;
53443
53437
  };
53444
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$6, {
53438
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$7, {
53445
53439
  className: className,
53446
53440
  height: height,
53447
53441
  width: width,
@@ -65839,22 +65833,21 @@ const DeleteIcon = dt.div`
65839
65833
  position: absolute;
65840
65834
  `;
65841
65835
 
65842
- const QuickFilterDropdownSingle = _ref => {
65843
- let {
65844
- label,
65845
- hoverColor,
65846
- options,
65847
- selectedValue,
65848
- placeHolder,
65849
- onChange,
65850
- disabled,
65851
- width,
65852
- error,
65853
- errorMessage,
65854
- xIconShow,
65855
- labelColor,
65856
- showLabelOnTop
65857
- } = _ref;
65836
+ const QuickFilterDropdownSingle = ({
65837
+ label,
65838
+ hoverColor,
65839
+ options,
65840
+ selectedValue,
65841
+ placeHolder,
65842
+ onChange,
65843
+ disabled,
65844
+ width,
65845
+ error,
65846
+ errorMessage,
65847
+ xIconShow,
65848
+ labelColor,
65849
+ showLabelOnTop
65850
+ }) => {
65858
65851
  const [isFocused, setIsFocused] = React.useState(false);
65859
65852
  const [showOptions, setShowOptions] = React.useState(false);
65860
65853
  const [inputValue, setInputValue] = React.useState("");
@@ -66252,24 +66245,23 @@ const IconContainer$1 = dt.div`
66252
66245
  cursor: pointer;
66253
66246
  `;
66254
66247
 
66255
- const QuickFilterDropdownMultiSelection = _ref => {
66256
- let {
66257
- label,
66258
- labelEmptyValue,
66259
- options,
66260
- selectedValue,
66261
- placeHolder,
66262
- onChange,
66263
- required,
66264
- disabled,
66265
- width,
66266
- error,
66267
- errorMessage,
66268
- labelColor,
66269
- xIconShow,
66270
- checkBoxColor,
66271
- showLabelOnTop
66272
- } = _ref;
66248
+ const QuickFilterDropdownMultiSelection = ({
66249
+ label,
66250
+ labelEmptyValue,
66251
+ options,
66252
+ selectedValue,
66253
+ placeHolder,
66254
+ onChange,
66255
+ required,
66256
+ disabled,
66257
+ width,
66258
+ error,
66259
+ errorMessage,
66260
+ labelColor,
66261
+ xIconShow,
66262
+ checkBoxColor,
66263
+ showLabelOnTop
66264
+ }) => {
66273
66265
  const [isFocused, setIsFocused] = React.useState(false);
66274
66266
  const [showOptions, setShowOptions] = React.useState(false);
66275
66267
  const [inputValue, setInputValue] = React.useState('');
@@ -67109,7 +67101,7 @@ const scrollableStyles$3 = `
67109
67101
  border-radius: 5px;
67110
67102
  }
67111
67103
  `;
67112
- const ControlsContainer$5 = dt.div`
67104
+ const ControlsContainer$6 = dt.div`
67113
67105
  position: relative;
67114
67106
  font-family: "Poppins", sans-serif;
67115
67107
  font-style: normal;
@@ -67128,7 +67120,7 @@ const ControlsContainer$5 = dt.div`
67128
67120
  box-sizing: border-box;
67129
67121
  }
67130
67122
  `;
67131
- const Controls$3 = dt.div`
67123
+ const Controls$4 = dt.div`
67132
67124
  display: flex;
67133
67125
  flex-direction: column;
67134
67126
  width: 100%;
@@ -67139,7 +67131,7 @@ const TitleAndValueContainer$3 = dt.div`
67139
67131
  display: flex;
67140
67132
  flex-direction: column;
67141
67133
  `;
67142
- const Title$8 = dt.h4`
67134
+ const Title$9 = dt.h4`
67143
67135
  font-weight: 400;
67144
67136
  font-size: 20px;
67145
67137
  margin: 0;
@@ -67191,18 +67183,18 @@ const FormattedValue$2 = props => {
67191
67183
  textcolor,
67192
67184
  isPercent
67193
67185
  } = props;
67194
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$5, {
67186
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$6, {
67195
67187
  className: className || 'FormattedValue_ControlsContainer',
67196
67188
  height: height,
67197
67189
  width: width,
67198
67190
  textcolor: textcolor
67199
- }, /*#__PURE__*/React__default["default"].createElement(Controls$3, {
67191
+ }, /*#__PURE__*/React__default["default"].createElement(Controls$4, {
67200
67192
  className: "Controls",
67201
67193
  height: height,
67202
67194
  width: width
67203
67195
  }, /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$3, {
67204
67196
  className: "TitleAndValueContainer"
67205
- }, title ? /*#__PURE__*/React__default["default"].createElement(Title$8, {
67197
+ }, title ? /*#__PURE__*/React__default["default"].createElement(Title$9, {
67206
67198
  className: "Title",
67207
67199
  width: width
67208
67200
  }, title) : '', showTopValue && /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer$1, {
@@ -67214,7 +67206,7 @@ const FormattedValue$2 = props => {
67214
67206
  className: "CurrencySignOrPercent"
67215
67207
  }, currencySign ? getCurrencySign(currencyType, value) : ''), dotCut ? getFormattedValue(value && Math.abs(value) > 0 && value % 1 !== 0 ? value?.toFixed(2) : value) : getNumberWithCommas(value), dotCut ? getFormattedUnits(value) : '', /*#__PURE__*/React__default["default"].createElement(CurrencySignOrPercent, {
67216
67208
  className: "CurrencySignOrPercent"
67217
- }, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default["default"].createElement(Title$8, {
67209
+ }, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default["default"].createElement(Title$9, {
67218
67210
  className: "Title",
67219
67211
  width: width
67220
67212
  }, subtitle) : '')));
@@ -67248,7 +67240,7 @@ FormattedValue$2.defaultProps = {
67248
67240
  isPercent: false
67249
67241
  };
67250
67242
 
67251
- const ControlsContainer$4 = dt.div`
67243
+ const ControlsContainer$5 = dt.div`
67252
67244
  position: relative;
67253
67245
  font-family: "Poppins", sans-serif;
67254
67246
  color: #212121;
@@ -67256,27 +67248,27 @@ const ControlsContainer$4 = dt.div`
67256
67248
  height: ${props => props.height};
67257
67249
  min-width: 250px;
67258
67250
  `;
67259
- const Controls$2 = dt.div`
67251
+ const Controls$3 = dt.div`
67260
67252
  height: 100%;
67261
67253
  width: 100%;
67262
67254
  background: white;
67263
67255
  display: flex;
67264
67256
  flex-direction: column;
67265
67257
  `;
67266
- const TooltipDiv$1 = dt.div`
67258
+ const TooltipDiv$2 = dt.div`
67267
67259
  border-radius: 5px;
67268
67260
  padding: 8px 12px;
67269
67261
  background: white;
67270
67262
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
67271
67263
  margin: 0;
67272
67264
  `;
67273
- const TooltipLabel$1 = dt.div`
67265
+ const TooltipLabel$2 = dt.div`
67274
67266
  color: #212121;
67275
67267
  font-size: 14px;
67276
67268
  font-weight: 400;
67277
67269
  width: fit-content;
67278
67270
  `;
67279
- const TooltipTitle = dt.div`
67271
+ const TooltipTitle$1 = dt.div`
67280
67272
  color: #212121;
67281
67273
  font-size: 14px;
67282
67274
  font-weight: 600;
@@ -67284,7 +67276,7 @@ const TooltipTitle = dt.div`
67284
67276
  const TitleAndValueContainer$2 = dt.div`
67285
67277
  padding: 0 1rem;
67286
67278
  `;
67287
- const Title$7 = dt.h5`
67279
+ const Title$8 = dt.h5`
67288
67280
  font-weight: 500;
67289
67281
  font-size: 18px;
67290
67282
  line-height: 20px;
@@ -67371,7 +67363,7 @@ const LegendLineIcon = ({
67371
67363
  fill: color
67372
67364
  }));
67373
67365
 
67374
- const ControlsContainer$3 = dt.div`
67366
+ const ControlsContainer$4 = dt.div`
67375
67367
  position: relative;
67376
67368
  font-family: "Poppins", sans-serif;
67377
67369
  font-size: ${props => props.rootFont};
@@ -67383,7 +67375,7 @@ const ControlsContainer$3 = dt.div`
67383
67375
  box-sizing: border-box;
67384
67376
  }
67385
67377
  `;
67386
- const Controls$1 = dt.div`
67378
+ const Controls$2 = dt.div`
67387
67379
  display: flex;
67388
67380
  gap: 20px;
67389
67381
  flex-direction: column;
@@ -67407,7 +67399,7 @@ const TitleAndIconContainer = dt.div`
67407
67399
  display: flex;
67408
67400
  align-items: center;
67409
67401
  `;
67410
- const Title$6 = dt.h4`
67402
+ const Title$7 = dt.h4`
67411
67403
  font-weight: 400;
67412
67404
  font-size: 14px;
67413
67405
  line-height: 27px;
@@ -67428,9 +67420,9 @@ const LegendColorRectangle$1 = dt.div`
67428
67420
  `;
67429
67421
 
67430
67422
  /* eslint-disable no-nested-ternary */
67431
- const ICON_TYPE_SQUARE$1 = 'Square';
67432
- const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
67433
- const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
67423
+ const ICON_TYPE_SQUARE$2 = 'Square';
67424
+ const ICON_TYPE_LEGEND_UNION_ICON$2 = 'LegendUnionIcon';
67425
+ const ICON_TYPE_LEGEND_LINE_ICON$2 = 'LegendLineIcon';
67434
67426
  const PerformanceAnalyticsLegend = props => {
67435
67427
  const {
67436
67428
  className,
@@ -67438,26 +67430,26 @@ const PerformanceAnalyticsLegend = props => {
67438
67430
  width,
67439
67431
  height
67440
67432
  } = props;
67441
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$3, {
67433
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$4, {
67442
67434
  className: className,
67443
67435
  height: height,
67444
67436
  width: width
67445
- }, legendData?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Controls$1, {
67437
+ }, legendData?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Controls$2, {
67446
67438
  height: height,
67447
67439
  width: width
67448
67440
  }, /*#__PURE__*/React__default["default"].createElement(LegendDataContainer, {
67449
67441
  id: "LegendDataContainer"
67450
67442
  }, legendData?.map((item, i) => /*#__PURE__*/React__default["default"].createElement(TitleAndIconContainer, {
67451
67443
  key: `${item.title + i}`
67452
- }, item.iconType === ICON_TYPE_SQUARE$1 ? /*#__PURE__*/React__default["default"].createElement(LegendColorRectangle$1, {
67444
+ }, item.iconType === ICON_TYPE_SQUARE$2 ? /*#__PURE__*/React__default["default"].createElement(LegendColorRectangle$1, {
67453
67445
  color: item.iconColor
67454
- }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendUnionIcon, {
67446
+ }) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON$2 ? /*#__PURE__*/React__default["default"].createElement(LegendUnionIcon, {
67455
67447
  width: 30,
67456
67448
  height: 30,
67457
67449
  color: item.iconColor
67458
- }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$1 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
67450
+ }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
67459
67451
  color: item.iconColor
67460
- }) : '', /*#__PURE__*/React__default["default"].createElement(Title$6, {
67452
+ }) : '', /*#__PURE__*/React__default["default"].createElement(Title$7, {
67461
67453
  id: "Title",
67462
67454
  width: width
67463
67455
  }, item.title))))) : '');
@@ -67468,7 +67460,7 @@ PerformanceAnalyticsLegend.propTypes = {
67468
67460
  height: PropTypes.string,
67469
67461
  legendData: PropTypes.arrayOf(PropTypes.shape({
67470
67462
  title: PropTypes.string.isRequired,
67471
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
67463
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$2, ICON_TYPE_LEGEND_UNION_ICON$2, ICON_TYPE_LEGEND_LINE_ICON$2]).isRequired,
67472
67464
  iconColor: PropTypes.string.isRequired
67473
67465
  }))
67474
67466
  };
@@ -67478,15 +67470,15 @@ PerformanceAnalyticsLegend.defaultProps = {
67478
67470
  height: '',
67479
67471
  legendData: [{
67480
67472
  title: '',
67481
- iconType: ICON_TYPE_SQUARE$1,
67473
+ iconType: ICON_TYPE_SQUARE$2,
67482
67474
  iconColor: '#1F7677'
67483
67475
  }]
67484
67476
  };
67485
67477
 
67486
67478
  /* eslint-disable no-nested-ternary */
67487
- const ICON_TYPE_SQUARE = 'Square';
67488
- const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
67489
- const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
67479
+ const ICON_TYPE_SQUARE$1 = 'Square';
67480
+ const ICON_TYPE_LEGEND_UNION_ICON$1 = 'LegendUnionIcon';
67481
+ const ICON_TYPE_LEGEND_LINE_ICON$1 = 'LegendLineIcon';
67490
67482
  const BarChartsByWeeks = props => {
67491
67483
  const {
67492
67484
  className,
@@ -67575,9 +67567,9 @@ const BarChartsByWeeks = props => {
67575
67567
  let currentTooltipSecondValue = 0;
67576
67568
  if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
67577
67569
  if (payload[0].payload?.secondValue) currentTooltipSecondValue = payload[0].payload?.secondValue;
67578
- return /*#__PURE__*/React__default["default"].createElement(TooltipDiv$1, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${isTitleOriganal ? '' : 'Week: '}${week}`), /*#__PURE__*/React__default["default"].createElement(TooltipLabel$1, null, `${tooltipTitle}
67570
+ return /*#__PURE__*/React__default["default"].createElement(TooltipDiv$2, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle$1, null, `${isTitleOriganal ? '' : 'Week: '}${week}`), /*#__PURE__*/React__default["default"].createElement(TooltipLabel$2, null, `${tooltipTitle}
67579
67571
  ${displayFormattedValue(currentTooltipValue)}
67580
- `), currentTooltipSecondValue ? /*#__PURE__*/React__default["default"].createElement(TooltipLabel$1, null, `${tooltipSecondTitle}
67572
+ `), currentTooltipSecondValue ? /*#__PURE__*/React__default["default"].createElement(TooltipLabel$2, null, `${tooltipSecondTitle}
67581
67573
  ${displayFormattedValue(currentTooltipSecondValue)}
67582
67574
  `) : '');
67583
67575
  };
@@ -67625,14 +67617,14 @@ const BarChartsByWeeks = props => {
67625
67617
  }
67626
67618
  return `${newHeight}px`;
67627
67619
  };
67628
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$4, {
67620
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$5, {
67629
67621
  className: className,
67630
67622
  height: height,
67631
67623
  width: width,
67632
67624
  ref: controlsContainerRef
67633
- }, /*#__PURE__*/React__default["default"].createElement(Controls$2, {
67625
+ }, /*#__PURE__*/React__default["default"].createElement(Controls$3, {
67634
67626
  height: getControlsHeight()
67635
- }, showTitle && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default["default"].createElement(Title$7, null, title), /*#__PURE__*/React__default["default"].createElement(FormattedValue$2, {
67627
+ }, showTitle && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default["default"].createElement(Title$8, null, title), /*#__PURE__*/React__default["default"].createElement(FormattedValue$2, {
67636
67628
  title: headerValueTopTitle,
67637
67629
  subtitle: headerValueBottomTitle,
67638
67630
  showTopValue: showHeaderTopValue,
@@ -67643,7 +67635,7 @@ const BarChartsByWeeks = props => {
67643
67635
  })), /*#__PURE__*/React__default["default"].createElement(ResponsiveContainer, {
67644
67636
  width: "100%",
67645
67637
  height: "100%"
67646
- }, /*#__PURE__*/React__default["default"].createElement(BarChart, {
67638
+ }, /*#__PURE__*/React__default["default"].createElement(BarChart$1, {
67647
67639
  width: width,
67648
67640
  height: height,
67649
67641
  data: formmatedData,
@@ -67727,7 +67719,7 @@ BarChartsByWeeks.propTypes = {
67727
67719
  showLegend: PropTypes.bool,
67728
67720
  legendData: PropTypes.arrayOf(PropTypes.shape({
67729
67721
  title: PropTypes.string.isRequired,
67730
- iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
67722
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE$1, ICON_TYPE_LEGEND_UNION_ICON$1, ICON_TYPE_LEGEND_LINE_ICON$1]).isRequired,
67731
67723
  iconColor: PropTypes.string.isRequired
67732
67724
  })),
67733
67725
  showTwoBars: PropTypes.bool,
@@ -67791,11 +67783,11 @@ BarChartsByWeeks.defaultProps = {
67791
67783
  isTitleOriganal: false,
67792
67784
  legendData: [{
67793
67785
  title: 'Sales',
67794
- iconType: ICON_TYPE_SQUARE,
67786
+ iconType: ICON_TYPE_SQUARE$1,
67795
67787
  iconColor: '#90CE9C'
67796
67788
  }, {
67797
67789
  title: 'Category Average',
67798
- iconType: ICON_TYPE_LEGEND_LINE_ICON,
67790
+ iconType: ICON_TYPE_LEGEND_LINE_ICON$1,
67799
67791
  iconColor: '#C906FD'
67800
67792
  }],
67801
67793
  showTwoBars: false,
@@ -67820,7 +67812,7 @@ const scrollableStyles$2 = `
67820
67812
  border-radius: 5px;
67821
67813
  }
67822
67814
  `;
67823
- const ControlsContainer$2 = dt.div`
67815
+ const ControlsContainer$3 = dt.div`
67824
67816
  position: relative;
67825
67817
  font-family: "Poppins", sans-serif;
67826
67818
  font-style: normal;
@@ -67839,7 +67831,7 @@ const ControlsContainer$2 = dt.div`
67839
67831
  box-sizing: border-box;
67840
67832
  }
67841
67833
  `;
67842
- const Controls = dt.div`
67834
+ const Controls$1 = dt.div`
67843
67835
  display: flex;
67844
67836
  flex-direction: column;
67845
67837
  width: 100%;
@@ -67847,7 +67839,7 @@ const Controls = dt.div`
67847
67839
  background: white;
67848
67840
  border-radius: 12px;
67849
67841
  `;
67850
- const TooltipDiv = dt.div`
67842
+ const TooltipDiv$1 = dt.div`
67851
67843
  display: flex;
67852
67844
  background: white;
67853
67845
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
@@ -67855,7 +67847,7 @@ const TooltipDiv = dt.div`
67855
67847
  padding: 6px 10px;
67856
67848
  margin: 0;
67857
67849
  `;
67858
- const TooltipLabel = dt.p`
67850
+ const TooltipLabel$1 = dt.p`
67859
67851
  color: #212121;
67860
67852
  font-family: "Poppins", sans-serif;
67861
67853
  font-size: 12px;
@@ -67870,7 +67862,7 @@ const TitleAndValueContainer$1 = dt.div`
67870
67862
  flex-direction: column;
67871
67863
  padding: 0 20px;
67872
67864
  `;
67873
- const Title$5 = dt.h4`
67865
+ const Title$6 = dt.h4`
67874
67866
  font-weight: 500;
67875
67867
  font-size: 1rem;
67876
67868
  margin: 0;
@@ -68049,7 +68041,7 @@ const TotalDoughnutChart = props => {
68049
68041
  fontWeight: itemsBoldedValues ? '700' : '400'
68050
68042
  }
68051
68043
  }, ' (', `${Math.round(row.value / value * 100)}%)`), isPercent && row.value && `${row.value.toFixed(1)}%`);
68052
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$2, {
68044
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$3, {
68053
68045
  className: className,
68054
68046
  height: height,
68055
68047
  width: width,
@@ -68057,13 +68049,13 @@ const TotalDoughnutChart = props => {
68057
68049
  }, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/React__default["default"].createElement(NoDataFoundMessage, {
68058
68050
  className: "NoDataFoundMessage",
68059
68051
  noDataText: noDataText
68060
- }) : /*#__PURE__*/React__default["default"].createElement(Controls, {
68052
+ }) : /*#__PURE__*/React__default["default"].createElement(Controls$1, {
68061
68053
  className: "Controls",
68062
68054
  height: height,
68063
68055
  width: width
68064
68056
  }, !hideTitleAndValue && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$1, {
68065
68057
  className: "TitleAndValueContainer"
68066
- }, /*#__PURE__*/React__default["default"].createElement(Title$5, {
68058
+ }, /*#__PURE__*/React__default["default"].createElement(Title$6, {
68067
68059
  className: "Title"
68068
68060
  }, title), /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer, {
68069
68061
  className: "CurrencySignAndFormattedValueContainer"
@@ -68158,7 +68150,7 @@ function CustomTooltip(_ref) {
68158
68150
  if (active && payload && payload.length) {
68159
68151
  // eslint-disable-next-line no-nested-ternary
68160
68152
  const percent = value && value !== 0 && !isPercent ? (payload[0].value / value * 100).toFixed(1) : value && isPercent ? payload[0].value.toFixed(1) : 0;
68161
- return /*#__PURE__*/React__default["default"].createElement(TooltipDiv, null, /*#__PURE__*/React__default["default"].createElement(TooltipLabel, null, `${payload[0].name} ${percent}%`));
68153
+ return /*#__PURE__*/React__default["default"].createElement(TooltipDiv$1, null, /*#__PURE__*/React__default["default"].createElement(TooltipLabel$1, null, `${payload[0].name} ${percent}%`));
68162
68154
  }
68163
68155
  }
68164
68156
  CustomTooltip.propTypes = {
@@ -68307,7 +68299,7 @@ Tooltip.defaultProps = {
68307
68299
  content: ''
68308
68300
  };
68309
68301
 
68310
- const ControlsContainer$1 = dt.div`
68302
+ const ControlsContainer$2 = dt.div`
68311
68303
  font-family: "Poppins", sans-serif;
68312
68304
  background-color: white;
68313
68305
  color: ${props => props.textColor};
@@ -68370,7 +68362,7 @@ const TotalValue = dt.div`
68370
68362
  font-size: 20px;
68371
68363
  }
68372
68364
  `;
68373
- const Title$4 = dt.h4`
68365
+ const Title$5 = dt.h4`
68374
68366
  font-size: 18px;
68375
68367
  font-weight: 400;
68376
68368
  line-height: 1;
@@ -68517,7 +68509,7 @@ const TotalHorizontalCharts = props => {
68517
68509
  }
68518
68510
  return null;
68519
68511
  };
68520
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$1, {
68512
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$2, {
68521
68513
  ref: wrapper,
68522
68514
  height: height,
68523
68515
  width: width,
@@ -68527,14 +68519,14 @@ const TotalHorizontalCharts = props => {
68527
68519
  }, chartsData?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(CardHeader, {
68528
68520
  ref: topHeader,
68529
68521
  className: "CardHeader"
68530
- }, !hideTitle ? /*#__PURE__*/React__default["default"].createElement(Title$4, null, title) : '', !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(TotalValue, {
68522
+ }, !hideTitle ? /*#__PURE__*/React__default["default"].createElement(Title$5, null, title) : '', !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(TotalValue, {
68531
68523
  className: "TotalValue"
68532
68524
  }, currencySign && /*#__PURE__*/React__default["default"].createElement(CurrencySign, {
68533
68525
  className: "CurrencySign"
68534
68526
  }, getCurrencySign(currencyType, value)), dotCut ? getFormattedValue(value && Math.abs(value) > 0 && value % 1 !== 0 ? value?.toFixed(2) : value) : getNumberWithCommas(value), dotCut ? getFormattedUnits(value) : '') : '') : '', /*#__PURE__*/React__default["default"].createElement(ResponsiveContainer, {
68535
68527
  width: "100%",
68536
68528
  height: calculateChartHeight()
68537
- }, /*#__PURE__*/React__default["default"].createElement(BarChart, {
68529
+ }, /*#__PURE__*/React__default["default"].createElement(BarChart$1, {
68538
68530
  layout: "vertical",
68539
68531
  data: chartsData,
68540
68532
  margin: {
@@ -68636,7 +68628,7 @@ TotalHorizontalCharts.defaultProps = {
68636
68628
  hideTitle: false
68637
68629
  };
68638
68630
 
68639
- const ControlsContainer = dt.div`
68631
+ const ControlsContainer$1 = dt.div`
68640
68632
  // position: relative;
68641
68633
  display: flex;
68642
68634
  flex-direction: column;
@@ -68667,7 +68659,7 @@ const ItemContainer = dt.div`
68667
68659
  flex-direction: column;
68668
68660
  flex-wrap: wrap;
68669
68661
  `;
68670
- const Title$3 = dt.h4`
68662
+ const Title$4 = dt.h4`
68671
68663
  font-size: 18px;
68672
68664
  font-weight: 500;
68673
68665
  margin: 0;
@@ -68775,7 +68767,7 @@ const SalesAndROI = props => {
68775
68767
  }, /*#__PURE__*/React__default["default"].createElement(TextBeforeAndAfterValue, {
68776
68768
  id: "TextBeforeAndAfterValue"
68777
68769
  }, getTextBefore(dataItem)), dotCut ? getFormattedValue(dataItem.value && Math.abs(dataItem.value) > 0 && dataItem.value % 1 !== 0 ? dataItem.value?.toFixed(2) : dataItem.value) : getNumberWithCommas(dataItem.value), dotCut ? getFormattedUnits(dataItem.value) : '', /*#__PURE__*/React__default["default"].createElement(TextBeforeAndAfterValue, null, dataItem.textAfter)));
68778
- return /*#__PURE__*/React__default["default"].createElement(ControlsContainer, {
68770
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer$1, {
68779
68771
  id: "ControlsContainer",
68780
68772
  height: height,
68781
68773
  width: width,
@@ -68783,7 +68775,7 @@ const SalesAndROI = props => {
68783
68775
  showBorderShadow: showBorderShadow
68784
68776
  }, /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer, {
68785
68777
  id: "TitleAndValueContainer"
68786
- }, /*#__PURE__*/React__default["default"].createElement(Title$3, {
68778
+ }, /*#__PURE__*/React__default["default"].createElement(Title$4, {
68787
68779
  id: "Title"
68788
68780
  }, title), showBanner && /*#__PURE__*/React__default["default"].createElement(OutBanner, {
68789
68781
  id: "OutBanner",
@@ -68882,7 +68874,7 @@ const TitleContainer$1 = dt.div`
68882
68874
  margin: 0;
68883
68875
  border-bottom: 1px solid #b1b1b1;
68884
68876
  `;
68885
- const Title$2 = dt.p`
68877
+ const Title$3 = dt.p`
68886
68878
  font-weight: 400;
68887
68879
  font-size: 24px;
68888
68880
  margin: 0;
@@ -69102,7 +69094,7 @@ const PopupCharts = props => {
69102
69094
  height: height,
69103
69095
  width: width,
69104
69096
  onClick: e => e.stopPropagation()
69105
- }, /*#__PURE__*/React__default["default"].createElement(TitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Title$2, null, title), /*#__PURE__*/React__default["default"].createElement(CloseXIconContainer, {
69097
+ }, /*#__PURE__*/React__default["default"].createElement(TitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Title$3, null, title), /*#__PURE__*/React__default["default"].createElement(CloseXIconContainer, {
69106
69098
  onClick: e => closePopupCharts(e)
69107
69099
  }, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, null))), /*#__PURE__*/React__default["default"].createElement(ChartsContainer, {
69108
69100
  id: "ChartsContainer",
@@ -69200,7 +69192,7 @@ const TopToggleListMainContainer = dt.div`
69200
69192
  padding: 0 24px;
69201
69193
  width: ${props => props.width};
69202
69194
  `;
69203
- const Title$1 = dt.h4`
69195
+ const Title$2 = dt.h4`
69204
69196
  font-size: 14px;
69205
69197
  font-weight: 600;
69206
69198
  margin: 20px 0 12px;
@@ -69230,7 +69222,7 @@ const TopToggleList = props => {
69230
69222
  } = props;
69231
69223
  return /*#__PURE__*/React__default["default"].createElement(TopToggleListMainContainer, {
69232
69224
  width: width
69233
- }, /*#__PURE__*/React__default["default"].createElement(Title$1, null, title), /*#__PURE__*/React__default["default"].createElement(ListContainer, {
69225
+ }, /*#__PURE__*/React__default["default"].createElement(Title$2, null, title), /*#__PURE__*/React__default["default"].createElement(ListContainer, {
69234
69226
  height: height
69235
69227
  }, list.map(item => /*#__PURE__*/React__default["default"].createElement(ListItem, {
69236
69228
  key: item.value
@@ -80685,7 +80677,7 @@ const TitleContainer = dt.div`
80685
80677
  justify-content: flex-start;
80686
80678
  margin: 0 0 10px 0;
80687
80679
  `;
80688
- const Title = dt.h3`
80680
+ const Title$1 = dt.h3`
80689
80681
  user-select: none;
80690
80682
  text-align: left;
80691
80683
  margin: 0;
@@ -80960,7 +80952,7 @@ const Heatmap = props => {
80960
80952
  className: "HeatmapWrapper"
80961
80953
  }, /*#__PURE__*/React__default["default"].createElement(TitleContainer, {
80962
80954
  className: "TitleContainer"
80963
- }, /*#__PURE__*/React__default["default"].createElement(Title, {
80955
+ }, /*#__PURE__*/React__default["default"].createElement(Title$1, {
80964
80956
  className: "Title"
80965
80957
  }, title)), refreshRequired && renderBars(), !refreshRequired && renderBars(), renderLegend()));
80966
80958
  };
@@ -80975,15 +80967,711 @@ Heatmap.propTypes = {
80975
80967
  barHeight: PropTypes.string.isRequired
80976
80968
  };
80977
80969
 
80970
+ const ButtonWrapper = dt.div`
80971
+ width: fit-content;
80972
+ text-align: center;
80973
+ `;
80974
+ const IconButtonContainer = dt.a`
80975
+ font-size: 14px;
80976
+ font-weight: 400;
80977
+ display: flex;
80978
+ gap: 10px;
80979
+ align-items: center;
80980
+ justify-content: center;
80981
+ padding: 12px 20px;
80982
+ text-decoration: none;
80983
+ color: ${props => props.color};
80984
+ border-radius: ${props => props.borderRadius};
80985
+ border: 1px solid ${props => props.borderColor.toString()};
80986
+ background: ${props => props.backgroundColor.toString()};
80987
+ position: relative;
80988
+ transition: all .3s;
80989
+ ${props => props.inProgress && lt`
80990
+ pointer-events: none;
80991
+ &:after {
80992
+ content: 'In progress';
80993
+ display: flex;
80994
+ align-items: center;
80995
+ justify-content: center;
80996
+ text-wrap: nowrap;
80997
+ position: absolute;
80998
+ background: linear-gradient(
80999
+ to right,
81000
+ #5FCC70 ${props.progress}%,
81001
+ #B1B1B1 ${props.progress + 1}%,
81002
+ #B1B1B1 100%
81003
+ );
81004
+ width: 100%;
81005
+ height: 100%;
81006
+ border-radius: ${props => props.borderRadius};
81007
+ border-width: 0;
81008
+ z-index: 9;
81009
+ }
81010
+ `}
81011
+ &:hover, &:focus {
81012
+ cursor: pointer;
81013
+ box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);
81014
+ }
81015
+ `;
81016
+ const SpanText = dt.span`
81017
+ `;
81018
+ const CancelClick = dt.span`
81019
+ display: inherit;
81020
+ font-family: "Lato", sans-serif;;
81021
+ font-size: 14px;
81022
+ color: #568202;
81023
+ cursor: pointer;
81024
+ margin-top: 5px;
81025
+ `;
81026
+
81027
+ /* IconButton */
81028
+ const IconButton = props => {
81029
+ const {
81030
+ // downloadStatus,
81031
+ // fileName,
81032
+ fileLink,
81033
+ showProcess,
81034
+ contentColor,
81035
+ buttonText,
81036
+ backgroundColor,
81037
+ borderColor,
81038
+ borderRadius,
81039
+ iconName,
81040
+ iconWidth,
81041
+ iconHeight,
81042
+ disabled,
81043
+ onClick,
81044
+ onCancelClick
81045
+ } = props;
81046
+ const [progress, setProgress] = React.useState(0);
81047
+ let interval;
81048
+ const incrementProgress = () => {
81049
+ if (showProcess && progress <= 90) {
81050
+ interval = setInterval(() => {
81051
+ setProgress(prevProgress => {
81052
+ const newProgress = prevProgress + 2;
81053
+ if (newProgress >= 90) {
81054
+ clearInterval(interval);
81055
+ }
81056
+ return newProgress;
81057
+ });
81058
+ }, 500);
81059
+ } else {
81060
+ setProgress(0);
81061
+ clearInterval(interval);
81062
+ }
81063
+ };
81064
+ React.useEffect(() => {
81065
+ incrementProgress();
81066
+ }, [showProcess]);
81067
+ const getIcon = icon => {
81068
+ switch (icon) {
81069
+ case 'download':
81070
+ return /*#__PURE__*/React__default["default"].createElement(DownloadIcon, {
81071
+ height: iconHeight,
81072
+ width: iconWidth,
81073
+ color: contentColor
81074
+ });
81075
+ case 'document':
81076
+ return /*#__PURE__*/React__default["default"].createElement(DocumentIcon, {
81077
+ height: iconHeight,
81078
+ width: iconWidth,
81079
+ color: contentColor
81080
+ });
81081
+ case 'fly':
81082
+ return /*#__PURE__*/React__default["default"].createElement(FlyIcon, {
81083
+ height: iconHeight,
81084
+ width: iconWidth,
81085
+ color: contentColor
81086
+ });
81087
+ case 'bell':
81088
+ return /*#__PURE__*/React__default["default"].createElement(BellIcon, {
81089
+ height: iconHeight,
81090
+ width: iconWidth,
81091
+ color: contentColor
81092
+ });
81093
+ case 'maintenance':
81094
+ return /*#__PURE__*/React__default["default"].createElement(MaintenanceIcon, {
81095
+ height: iconHeight,
81096
+ width: iconWidth,
81097
+ color: contentColor
81098
+ });
81099
+ case 'exit':
81100
+ return /*#__PURE__*/React__default["default"].createElement(ExitIcon, {
81101
+ height: iconHeight,
81102
+ width: iconWidth,
81103
+ color: contentColor
81104
+ });
81105
+ case 'eye':
81106
+ return /*#__PURE__*/React__default["default"].createElement(EyeIcon, {
81107
+ height: iconHeight,
81108
+ width: iconWidth,
81109
+ color: contentColor
81110
+ });
81111
+ default:
81112
+ return '';
81113
+ }
81114
+ };
81115
+ const onClickHandler = event => {
81116
+ onClick(event);
81117
+ };
81118
+ const onCancelClickHandler = event => {
81119
+ onCancelClick(event);
81120
+ };
81121
+ return /*#__PURE__*/React__default["default"].createElement(ButtonWrapper, {
81122
+ id: "ButtonWrapper"
81123
+ }, /*#__PURE__*/React__default["default"].createElement(IconButtonContainer, {
81124
+ download: true,
81125
+ href: fileLink,
81126
+ backgroundColor: disabled ? '#E3E4E5' : backgroundColor,
81127
+ borderColor: disabled ? '#B1B1B1' : borderColor,
81128
+ borderRadius: borderRadius,
81129
+ color: disabled ? '#B1B1B1' : contentColor,
81130
+ inProgress: showProcess,
81131
+ progress: progress,
81132
+ onClick: event => {
81133
+ onClickHandler(event);
81134
+ }
81135
+ }, getIcon(iconName), buttonText !== '' && buttonText !== undefined && /*#__PURE__*/React__default["default"].createElement(SpanText, null, buttonText)), showProcess && /*#__PURE__*/React__default["default"].createElement(CancelClick, {
81136
+ onClick: event => onCancelClickHandler(event)
81137
+ }, "Click here to cancel"));
81138
+ };
81139
+ IconButton.propTypes = {
81140
+ // downloadStatus: PropTypes.string,
81141
+ // fileName: PropTypes.string,
81142
+ fileLink: PropTypes.string,
81143
+ showProcess: PropTypes.bool,
81144
+ buttonText: PropTypes.string,
81145
+ iconName: PropTypes.string,
81146
+ contentColor: PropTypes.string,
81147
+ backgroundColor: PropTypes.string,
81148
+ borderColor: PropTypes.string,
81149
+ borderRadius: PropTypes.string,
81150
+ iconHeight: PropTypes.number,
81151
+ iconWidth: PropTypes.number,
81152
+ disabled: PropTypes.bool,
81153
+ onClick: PropTypes.func,
81154
+ onCancelClick: PropTypes.func
81155
+ };
81156
+ IconButton.defaultProps = {
81157
+ // downloadStatus: '',
81158
+ // fileName: '',
81159
+ fileLink: '',
81160
+ showProcess: false,
81161
+ buttonText: '',
81162
+ iconName: 'eye',
81163
+ contentColor: '#212121',
81164
+ backgroundColor: '#FFFFFF',
81165
+ borderColor: '#B1B1B1',
81166
+ borderRadius: '12px',
81167
+ iconHeight: 18,
81168
+ iconWidth: 18,
81169
+ disabled: false,
81170
+ onClick: () => {},
81171
+ onCancelClick: () => {}
81172
+ };
81173
+
81174
+ const LinnerContainer = dt.div`
81175
+ font-family: "Poppins", sans-serif;
81176
+ display: grid;
81177
+ gap: 48px 0;
81178
+ grid-template-columns: repeat(5, 1fr);
81179
+ grid-template-rows: auto auto;
81180
+ width: ${props => props.width};
81181
+ height: ${props => props.height};
81182
+ background-color: ${props => props.backgroundColor};
81183
+ padding: 50px 20px 20px;
81184
+ box-sizing: border-box;
81185
+ `;
81186
+ const DataBox = dt.div`
81187
+ height: 100%;
81188
+ padding: 0 40px;
81189
+ border-left: 1px solid #d0d0d0;
81190
+ &:nth-child(1),
81191
+ &:nth-child(6) {
81192
+ border-left: none;
81193
+ padding-left: 0;
81194
+ }
81195
+ &:nth-child(5),
81196
+ &:nth-child(10) {
81197
+ padding-right: 0;
81198
+ }
81199
+ `;
81200
+ const CellItem = dt.div`
81201
+ display: flex;
81202
+ align-items: center;
81203
+ `;
81204
+ const DataBoxTitle = dt.span`
81205
+ font-size: 18px;
81206
+ display: block;
81207
+ margin: 0 0 12px;
81208
+ `;
81209
+ const BigValue = dt.span`
81210
+ font-size: 40px;
81211
+ font-weight: 500;
81212
+ margin-right: 5px;
81213
+ `;
81214
+ const CellItemValueSign = dt.span`
81215
+ font-size: 16px;
81216
+ font-weight: 400;
81217
+ `;
81218
+ const ValueChange = dt.span`
81219
+ font-size: 16px;
81220
+ font-weight: 400;
81221
+ `;
81222
+ const CellItemNoValue = dt.span`
81223
+ font-size: 40px;
81224
+ font-weight: 500;
81225
+ `;
81226
+ const PercentageChange = dt.div`
81227
+ display: flex;
81228
+ align-items: center;
81229
+ font-size: 16px;
81230
+ color: ${props => props.color};
81231
+ `;
81232
+
81233
+ const ArrowUpIcon = _ref => {
81234
+ let {
81235
+ clicked,
81236
+ width = '8',
81237
+ height = '9'
81238
+ } = _ref;
81239
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
81240
+ width: width,
81241
+ height: height,
81242
+ viewBox: "0 0 8 9",
81243
+ fill: "none",
81244
+ xmlns: "http://www.w3.org/2000/svg"
81245
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
81246
+ d: "M4.47065 0.188348C4.21033 -0.0627825 3.78758 -0.0627825 3.52727 0.188348L0.195236 3.40281C-0.0650787 3.65394 -0.0650787 4.06178 0.195236 4.31291C0.455551 4.56404 0.878303 4.56404 1.13862 4.31291L3.33359 2.19337V8.35711C3.33359 8.71271 3.63139 9 4 9C4.36861 9 4.66641 8.71271 4.66641 8.35711V2.19337L6.86138 4.3109C7.1217 4.56203 7.54445 4.56203 7.80476 4.3109C8.06508 4.05977 8.06508 3.65193 7.80476 3.4008L4.47273 0.186338L4.47065 0.188348Z",
81247
+ fill: "#5FCC70"
81248
+ }));
81249
+ };
81250
+
81251
+ const ArrowDownIcon = _ref => {
81252
+ let {
81253
+ clicked,
81254
+ width = '8',
81255
+ height = '9'
81256
+ } = _ref;
81257
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
81258
+ width: width,
81259
+ height: height,
81260
+ viewBox: "0 0 8 9",
81261
+ fill: "none",
81262
+ xmlns: "http://www.w3.org/2000/svg"
81263
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
81264
+ d: "M3.52935 8.81165C3.78967 9.06278 4.21242 9.06278 4.47273 8.81165L7.80476 5.59719C8.06508 5.34606 8.06508 4.93822 7.80476 4.68709C7.54445 4.43596 7.1217 4.43596 6.86138 4.68709L4.66641 6.80663L4.66641 0.642893C4.66641 0.287292 4.36861 -4.08657e-07 4 -4.40881e-07C3.63139 -4.73106e-07 3.33359 0.287292 3.33359 0.642893L3.33359 6.80663L1.13862 4.6891C0.878303 4.43797 0.455551 4.43797 0.195236 4.6891C-0.0650787 4.94023 -0.0650787 5.34807 0.195236 5.5992L3.52727 8.81366L3.52935 8.81165Z",
81265
+ fill: "#F00021"
81266
+ }));
81267
+ };
81268
+
81269
+ /* eslint-disable no-restricted-globals */
81270
+ const DoublePanelDataRow = props => {
81271
+ const {
81272
+ width,
81273
+ height,
81274
+ data,
81275
+ backgroundColor,
81276
+ className,
81277
+ customDataFormat,
81278
+ showPercentChange
81279
+ } = props;
81280
+ const getArrowSign = arrowSign => {
81281
+ if (!arrowSign) {
81282
+ return '-';
81283
+ }
81284
+ if (arrowSign === 'up') {
81285
+ return /*#__PURE__*/React__default["default"].createElement(PercentageChange, {
81286
+ color: "#5FCC70",
81287
+ value: 34 // TODO: when ready, replace with actual value
81288
+ }, /*#__PURE__*/React__default["default"].createElement(ArrowUpIcon, {
81289
+ width: 12,
81290
+ height: 12
81291
+ }), ' ', "(+34K)");
81292
+ }
81293
+ return /*#__PURE__*/React__default["default"].createElement(PercentageChange, {
81294
+ color: "#D23630",
81295
+ value: 66 // TODO: when ready, replace with actual value
81296
+ }, /*#__PURE__*/React__default["default"].createElement(ArrowDownIcon, {
81297
+ width: 12,
81298
+ height: 12
81299
+ }), ' ', "(-12K)");
81300
+ };
81301
+ return /*#__PURE__*/React__default["default"].createElement(LinnerContainer, {
81302
+ className: className,
81303
+ backgroundColor: backgroundColor,
81304
+ width: width,
81305
+ height: height,
81306
+ customDataFormat: customDataFormat
81307
+ }, data.map(item => /*#__PURE__*/React__default["default"].createElement(DataBox, {
81308
+ className: "data-box-item"
81309
+ }, item.title && /*#__PURE__*/React__default["default"].createElement(DataBoxTitle, {
81310
+ className: "DataBoxTitle"
81311
+ }, item.title), /*#__PURE__*/React__default["default"].createElement(CellItem, null, item.value !== null && item.value !== undefined && !isNaN(item.value) && item.value !== 'null' && item.value !== 'undefined' ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, item.sign && /*#__PURE__*/React__default["default"].createElement(CellItemValueSign, null, item.sign), customDataFormat ? /*#__PURE__*/React__default["default"].createElement(BigValue, {
81312
+ className: "DataBoxValue"
81313
+ }, ''.concat(formattedValue(item.value), getFormattedUnits(item.value)), item.isPercent && /*#__PURE__*/React__default["default"].createElement(CellItemValueSign, null, "%")) : /*#__PURE__*/React__default["default"].createElement(BigValue, null, ''.concat(getFormattedValue(item.value), getFormattedUnits(item.value)), item.isPercent && /*#__PURE__*/React__default["default"].createElement(CellItemValueSign, null, "%")), showPercentChange && getArrowSign(item.value >= 0 ? 'up' : 'down')) : /*#__PURE__*/React__default["default"].createElement(CellItemNoValue, null, "N/A")), /*#__PURE__*/React__default["default"].createElement(ValueChange, null))));
81314
+ };
81315
+ DoublePanelDataRow.propTypes = {
81316
+ className: PropTypes.string,
81317
+ width: PropTypes.string,
81318
+ height: PropTypes.string,
81319
+ data: PropTypes.arrayOf(PropTypes.shape({
81320
+ title: PropTypes.string,
81321
+ value: PropTypes.number,
81322
+ sign: PropTypes.string
81323
+ })),
81324
+ backgroundColor: PropTypes.string,
81325
+ customDataFormat: PropTypes.bool,
81326
+ showPercentChange: PropTypes.bool
81327
+ };
81328
+ DoublePanelDataRow.defaultProps = {
81329
+ className: '',
81330
+ width: '100%',
81331
+ height: 'auto',
81332
+ data: [],
81333
+ backgroundColor: '#FFFFFF',
81334
+ customDataFormat: false,
81335
+ showPercentChange: false
81336
+ };
81337
+
81338
+ const ControlsContainer = dt.div`
81339
+ position: relative;
81340
+ font-family: "Poppins", sans-serif;
81341
+ color: #212121;
81342
+ width: ${props => props.width};
81343
+ height: ${props => props.height};
81344
+ min-width: 250px;
81345
+ `;
81346
+ const Controls = dt.div`
81347
+ height: 100%;
81348
+ width: 100%;
81349
+ background: white;
81350
+ display: flex;
81351
+ flex-direction: column;
81352
+ `;
81353
+ const TooltipDiv = dt.div`
81354
+ border-radius: 5px;
81355
+ padding: 8px 12px;
81356
+ background: white;
81357
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
81358
+ margin: 0;
81359
+ `;
81360
+ const TooltipLabel = dt.div`
81361
+ color: #212121;
81362
+ font-size: 14px;
81363
+ font-weight: 400;
81364
+ width: fit-content;
81365
+ `;
81366
+ const TooltipTitle = dt.div`
81367
+ color: #212121;
81368
+ font-size: 14px;
81369
+ font-weight: 600;
81370
+ `;
81371
+ const Title = dt.h5`
81372
+ font-weight: 500;
81373
+ font-size: 18px;
81374
+ line-height: 20px;
81375
+ margin: 0 0 30px;
81376
+ @media (max-width: 1536px) {
81377
+ font-size: 16px;
81378
+ margin: 0 0 20px;
81379
+ }
81380
+ @media (max-width: 1366px) {
81381
+ font-size: 14px;
81382
+ }
81383
+ `;
81384
+ const LabelBoldText = dt.tspan`
81385
+ font-size: 0.7em;
81386
+ `;
81387
+ const LabelText = dt.tspan`
81388
+ font-size: 0.6em;
81389
+ `;
81390
+
81391
+ /* eslint-disable react/prop-types */
81392
+ const ICON_TYPE_SQUARE = 'Square';
81393
+ const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
81394
+ const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
81395
+
81396
+ /* BarCharts */
81397
+ const BarChart = props => {
81398
+ const {
81399
+ className,
81400
+ title,
81401
+ barChartData,
81402
+ barSize,
81403
+ barFontSizeValue,
81404
+ isDollar,
81405
+ width,
81406
+ height,
81407
+ barChartColor,
81408
+ currentBarColor,
81409
+ showLegend,
81410
+ legendData,
81411
+ showDollarSign,
81412
+ showReferenceLine,
81413
+ referenceLinePoint,
81414
+ referenceLineColor,
81415
+ referenceLineDashed,
81416
+ showCurrentCampaignStyle,
81417
+ isPercent
81418
+ } = props;
81419
+ const controlsContainerRef = React.useRef();
81420
+ const areAllDatesEmpty = () => {
81421
+ if (!barChartData || barChartData?.length === 0) return true;
81422
+ return barChartData?.every(item => !item.date);
81423
+ };
81424
+ const displayFormattedValue = function (value) {
81425
+ let showFullNumber = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
81426
+ if (value === undefined || value === null) return '';
81427
+ let formattedValue = '';
81428
+ if (isPercent) {
81429
+ formattedValue = ''.concat(value.toFixed(1), '%');
81430
+ } else if (isDollar) {
81431
+ formattedValue = ''.concat(showDollarSign ? '$' : '', !showFullNumber ? getFormattedValue(value) : getNumberWithCommas(Number.isInteger(value) ? value : value.toFixed(1)), !showFullNumber ? getFormattedUnits(value) : '');
81432
+ } else {
81433
+ formattedValue = ''.concat(!showFullNumber ? getFormattedValue(value) : getNumberWithCommas(Number.isInteger(value) ? value : value.toFixed(1)), !showFullNumber ? getFormattedUnits(value) : '');
81434
+ }
81435
+ return formattedValue;
81436
+ };
81437
+
81438
+ // eslint-disable-next-line react/no-unstable-nested-components
81439
+ const CustomTooltip = tooltipData => {
81440
+ const {
81441
+ active,
81442
+ payload,
81443
+ label
81444
+ } = tooltipData;
81445
+ if (!active || !payload || payload?.length === 0) return null;
81446
+ let currentTooltipValue = 0;
81447
+ if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
81448
+ return /*#__PURE__*/React__default["default"].createElement(TooltipDiv, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${label}`), /*#__PURE__*/React__default["default"].createElement(TooltipLabel, null, `${displayFormattedValue(currentTooltipValue, !!showCurrentCampaignStyle)}`));
81449
+ };
81450
+ const CustomizedTickBarChart = props => {
81451
+ const {
81452
+ x,
81453
+ y,
81454
+ payload
81455
+ } = props;
81456
+ if (barChartData && barChartData.length > 0 && payload) {
81457
+ const retailerData = barChartData.filter(item => item.title === payload.value);
81458
+ if (retailerData && retailerData.length > 0) {
81459
+ return /*#__PURE__*/React__default["default"].createElement("g", {
81460
+ transform: `translate(${x},${y})`
81461
+ }, showCurrentCampaignStyle && retailerData[0].isCurrent && /*#__PURE__*/React__default["default"].createElement("rect", {
81462
+ x: -56 // Adjust this to position the background properly
81463
+ ,
81464
+ y: 5 // Adjust this for vertical alignment with your text
81465
+ ,
81466
+ width: 112 // Adjust width based on the text length
81467
+ ,
81468
+ height: 22 // Adjust height based on font size
81469
+ ,
81470
+ fill: currentBarColor || '#90CE9C',
81471
+ rx: 12
81472
+ }), /*#__PURE__*/React__default["default"].createElement("text", {
81473
+ x: 0,
81474
+ y: 0,
81475
+ dy: 16,
81476
+ fill: "#212121"
81477
+ }, /*#__PURE__*/React__default["default"].createElement(LabelBoldText, {
81478
+ textAnchor: "middle",
81479
+ x: 0,
81480
+ dy: showCurrentCampaignStyle ? 20 : 50,
81481
+ fontSize: showCurrentCampaignStyle ? 12 : 16,
81482
+ fontWeight: showCurrentCampaignStyle ? 500 : 600,
81483
+ fill: showCurrentCampaignStyle && !retailerData[0].isCurrent ? '#8B8989' : '#212121'
81484
+ }, (() => {
81485
+ if (showCurrentCampaignStyle) {
81486
+ if (retailerData[0].isCurrent) {
81487
+ if (payload?.value?.length > 6) {
81488
+ return `${payload.value.slice(0, 6)}...-Current`;
81489
+ }
81490
+ return `${payload.value}-Current`;
81491
+ }
81492
+ if (payload?.value?.length > 10) {
81493
+ return `${payload.value.slice(0, 10)}...`;
81494
+ }
81495
+ return `${payload.value}`;
81496
+ }
81497
+ return payload?.value;
81498
+ })()), /*#__PURE__*/React__default["default"].createElement(LabelText, {
81499
+ textAnchor: "middle",
81500
+ x: "0",
81501
+ dy: "30",
81502
+ fontSize: 14,
81503
+ fontWeight: 400
81504
+ }, retailerData[0].date)));
81505
+ }
81506
+ return null;
81507
+ }
81508
+ return null;
81509
+ };
81510
+ const CustomizedLabel = props => {
81511
+ const {
81512
+ x,
81513
+ y,
81514
+ stroke,
81515
+ value
81516
+ } = props;
81517
+ return /*#__PURE__*/React__default["default"].createElement("text", {
81518
+ x: x + 30,
81519
+ y: y,
81520
+ dy: -8,
81521
+ fill: showCurrentCampaignStyle ? '#8B8989' : stroke,
81522
+ fontSize: barFontSizeValue,
81523
+ textAnchor: "middle"
81524
+ }, displayFormattedValue(value));
81525
+ };
81526
+ return /*#__PURE__*/React__default["default"].createElement(ControlsContainer, {
81527
+ className: className,
81528
+ height: height,
81529
+ width: width,
81530
+ ref: controlsContainerRef
81531
+ }, /*#__PURE__*/React__default["default"].createElement(Controls, null, /*#__PURE__*/React__default["default"].createElement(Title, null, title), /*#__PURE__*/React__default["default"].createElement(ResponsiveContainer, {
81532
+ width: "100%",
81533
+ height: 400
81534
+ }, /*#__PURE__*/React__default["default"].createElement(BarChart$1, {
81535
+ width: width,
81536
+ height: height,
81537
+ data: barChartData,
81538
+ margin: {
81539
+ top: 20,
81540
+ right: 0,
81541
+ bottom: 0,
81542
+ left: -5
81543
+ }
81544
+ }, showCurrentCampaignStyle && /*#__PURE__*/React__default["default"].createElement(CartesianGrid, {
81545
+ strokeDasharray: "3 3",
81546
+ vertical: false
81547
+ }), showCurrentCampaignStyle && /*#__PURE__*/React__default["default"].createElement(YAxis, {
81548
+ tickCount: 10,
81549
+ interval: "preserveEnd",
81550
+ domain: [0, 'auto'],
81551
+ tick: {
81552
+ fill: '#8B8989'
81553
+ },
81554
+ axisLine: false,
81555
+ fontWeight: 400,
81556
+ fontSize: "12px",
81557
+ tickLine: false,
81558
+ tickFormatter: value => `${displayFormattedValue(value)}`
81559
+ }), showReferenceLine && /*#__PURE__*/React__default["default"].createElement(ReferenceLine, {
81560
+ y: referenceLinePoint,
81561
+ stroke: referenceLineColor,
81562
+ strokeDasharray: referenceLineDashed
81563
+ }), /*#__PURE__*/React__default["default"].createElement(XAxis, {
81564
+ dataKey: "title",
81565
+ tick: CustomizedTickBarChart,
81566
+ tickLine: false,
81567
+ height: areAllDatesEmpty() ? 50 : 120,
81568
+ stroke: "#D0D0D0",
81569
+ domain: [0, 'auto'],
81570
+ interval: 0
81571
+ }), /*#__PURE__*/React__default["default"].createElement(Brush, {
81572
+ dataKey: "name",
81573
+ height: 30,
81574
+ stroke: "#8884d8"
81575
+ }), /*#__PURE__*/React__default["default"].createElement(Tooltip$2, {
81576
+ content: /*#__PURE__*/React__default["default"].createElement(CustomTooltip, null)
81577
+ }), /*#__PURE__*/React__default["default"].createElement(Tooltip$2, null), /*#__PURE__*/React__default["default"].createElement(Bar, {
81578
+ dataKey: "value",
81579
+ fill: barChartColor,
81580
+ minPointSize: 5,
81581
+ barSize: barSize ?? 60,
81582
+ radius: [5, 5, 0, 0]
81583
+ }, /*#__PURE__*/React__default["default"].createElement(LabelList, {
81584
+ dataKey: "value",
81585
+ content: CustomizedLabel
81586
+ })))), showLegend && /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
81587
+ legendData: legendData
81588
+ })));
81589
+ };
81590
+ BarChart.propTypes = {
81591
+ title: PropTypes.string,
81592
+ barChartData: PropTypes.arrayOf(PropTypes.shape({
81593
+ title: PropTypes.string,
81594
+ date: PropTypes.string,
81595
+ value: PropTypes.number
81596
+ })),
81597
+ width: PropTypes.string,
81598
+ height: PropTypes.string,
81599
+ barSize: PropTypes.number,
81600
+ barFontSizeValue: PropTypes.string,
81601
+ barChartColor: PropTypes.string,
81602
+ showDollarSign: PropTypes.bool,
81603
+ isDollar: PropTypes.bool,
81604
+ showLegend: PropTypes.bool,
81605
+ legendData: PropTypes.arrayOf(PropTypes.shape({
81606
+ title: PropTypes.string.isRequired,
81607
+ iconType: PropTypes.oneOf([ICON_TYPE_SQUARE, ICON_TYPE_LEGEND_UNION_ICON, ICON_TYPE_LEGEND_LINE_ICON]).isRequired,
81608
+ iconColor: PropTypes.string.isRequired
81609
+ })),
81610
+ showReferenceLine: PropTypes.bool,
81611
+ referenceLinePoint: PropTypes.number,
81612
+ referenceLineColor: PropTypes.string,
81613
+ referenceLineDashed: PropTypes.string,
81614
+ showCurrentCampaignStyle: PropTypes.bool,
81615
+ currentBarColor: PropTypes.string,
81616
+ isPercent: PropTypes.bool
81617
+ };
81618
+ BarChart.defaultProps = {
81619
+ title: 'String',
81620
+ barChartData: [{
81621
+ title: 'Food Lion',
81622
+ date: '15.01.24-31.01.24',
81623
+ value: 542366
81624
+ }, {
81625
+ title: 'Hannaford',
81626
+ date: '15.01.24-31.01.24',
81627
+ value: 699511
81628
+ }, {
81629
+ title: 'The Giant Company',
81630
+ date: '15.01.24-31.01.24',
81631
+ value: 403092
81632
+ }, {
81633
+ title: 'Giant Food',
81634
+ date: '15.01.24-31.01.24',
81635
+ value: 396184
81636
+ }, {
81637
+ title: 'Stop&Shop',
81638
+ date: '15.01.24-31.01.24',
81639
+ value: 415317
81640
+ }],
81641
+ width: '100%',
81642
+ height: '100%',
81643
+ barSize: 60,
81644
+ barFontSizeValue: '0.6em',
81645
+ barChartColor: '#BD9EFF',
81646
+ showDollarSign: true,
81647
+ isDollar: true,
81648
+ showLegend: true,
81649
+ legendData: [{
81650
+ title: 'Incremental Sales',
81651
+ iconType: ICON_TYPE_SQUARE,
81652
+ iconColor: '#BD9EFF'
81653
+ }],
81654
+ showReferenceLine: false,
81655
+ referenceLinePoint: 0,
81656
+ referenceLineColor: '#212121',
81657
+ referenceLineDashed: '5',
81658
+ showCurrentCampaignStyle: false,
81659
+ currentBarColor: '#90CE9C',
81660
+ isPercent: false
81661
+ };
81662
+
80978
81663
  exports.BannerEventBoxList = BannerEventBoxList;
81664
+ exports.BarChart = BarChart;
80979
81665
  exports.BarChartsByWeeks = BarChartsByWeeks;
80980
81666
  exports.Button = Button;
80981
81667
  exports.CollapseHeader = CollapseHeader;
80982
81668
  exports.DialogOverlay = DialogOverlay;
81669
+ exports.DoublePanelDataRow = DoublePanelDataRow;
80983
81670
  exports.EventDetailsCard = EventDetailsCard;
80984
81671
  exports.EventList = EventList;
80985
81672
  exports.FilterPanel = FilterPanel;
80986
81673
  exports.Heatmap = Heatmap;
81674
+ exports.IconButton = IconButton;
80987
81675
  exports.LinnerDataBox = LinnerDataBox;
80988
81676
  exports.MarketShareDescription = MarketShareDescription;
80989
81677
  exports.OneColumnContainer = OneColumnContainer;