sag_components 2.0.0-beta231 → 2.0.0-beta233

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
@@ -10591,24 +10591,23 @@ const QuarterPopupPicker = ({
10591
10591
  };
10592
10592
 
10593
10593
  /* eslint-disable import/no-extraneous-dependencies */
10594
- const QuarterPicker = _ref => {
10595
- let {
10596
- availableQuarters,
10597
- // ["Q1-2024"]
10598
- label,
10599
- onChange,
10600
- borderRadius,
10601
- required,
10602
- width,
10603
- height,
10604
- placeholder,
10605
- disabled,
10606
- borderColor,
10607
- borderColorFocus,
10608
- textColor,
10609
- selectedValue,
10610
- startYear
10611
- } = _ref;
10594
+ const QuarterPicker = ({
10595
+ availableQuarters,
10596
+ // ["Q1-2024"]
10597
+ label,
10598
+ onChange,
10599
+ borderRadius,
10600
+ required,
10601
+ width,
10602
+ height,
10603
+ placeholder,
10604
+ disabled,
10605
+ borderColor,
10606
+ borderColorFocus,
10607
+ textColor,
10608
+ selectedValue,
10609
+ startYear
10610
+ }) => {
10612
10611
  const [isFocused, setIsFocused] = React$1.useState(false);
10613
10612
  const [isOpen, setIsOpen] = React$1.useState(false);
10614
10613
  const [value, setValue] = React$1.useState('');
@@ -11050,23 +11049,22 @@ const MonthPopupPicker = ({
11050
11049
  };
11051
11050
 
11052
11051
  /* eslint-disable import/no-extraneous-dependencies */
11053
- const MonthPicker = _ref => {
11054
- let {
11055
- availableMonths,
11056
- label,
11057
- onChange,
11058
- borderRadius,
11059
- required,
11060
- width,
11061
- height,
11062
- placeholder,
11063
- disabled,
11064
- borderColor,
11065
- borderColorFocus,
11066
- textColor,
11067
- selectedValue,
11068
- startYear
11069
- } = _ref;
11052
+ const MonthPicker = ({
11053
+ availableMonths,
11054
+ label,
11055
+ onChange,
11056
+ borderRadius,
11057
+ required,
11058
+ width,
11059
+ height,
11060
+ placeholder,
11061
+ disabled,
11062
+ borderColor,
11063
+ borderColorFocus,
11064
+ textColor,
11065
+ selectedValue,
11066
+ startYear
11067
+ }) => {
11070
11068
  const [isFocused, setIsFocused] = React$1.useState(false);
11071
11069
  const [isOpen, setIsOpen] = React$1.useState(false);
11072
11070
  const [value, setValue] = React$1.useState('');
@@ -24177,22 +24175,21 @@ const DeleteIcon = styled__default["default"].div`
24177
24175
  position: absolute;
24178
24176
  `;
24179
24177
 
24180
- const QuickFilterDropdownSingle = _ref => {
24181
- let {
24182
- label,
24183
- hoverColor,
24184
- options,
24185
- selectedValue,
24186
- placeHolder,
24187
- onChange,
24188
- disabled,
24189
- width,
24190
- error,
24191
- errorMessage,
24192
- xIconShow,
24193
- labelColor,
24194
- showLabelOnTop
24195
- } = _ref;
24178
+ const QuickFilterDropdownSingle = ({
24179
+ label,
24180
+ hoverColor,
24181
+ options,
24182
+ selectedValue,
24183
+ placeHolder,
24184
+ onChange,
24185
+ disabled,
24186
+ width,
24187
+ error,
24188
+ errorMessage,
24189
+ xIconShow,
24190
+ labelColor,
24191
+ showLabelOnTop
24192
+ }) => {
24196
24193
  const [isFocused, setIsFocused] = React$1.useState(false);
24197
24194
  const [showOptions, setShowOptions] = React$1.useState(false);
24198
24195
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24649,26 +24646,25 @@ const IconContainer$2 = styled__default["default"].div`
24649
24646
  cursor: pointer;
24650
24647
  `;
24651
24648
 
24652
- const QuickFilterDropdownMultiSelection = _ref => {
24653
- let {
24654
- label,
24655
- labelEmptyValue,
24656
- options,
24657
- selectedValue,
24658
- placeHolder,
24659
- onChange,
24660
- required,
24661
- disabled,
24662
- width,
24663
- height,
24664
- error,
24665
- errorMessage,
24666
- labelColor,
24667
- xIconShow,
24668
- checkBoxColor,
24669
- showLabelOnTop,
24670
- dropdownHeight
24671
- } = _ref;
24649
+ const QuickFilterDropdownMultiSelection = ({
24650
+ label,
24651
+ labelEmptyValue,
24652
+ options,
24653
+ selectedValue,
24654
+ placeHolder,
24655
+ onChange,
24656
+ required,
24657
+ disabled,
24658
+ width,
24659
+ height,
24660
+ error,
24661
+ errorMessage,
24662
+ labelColor,
24663
+ xIconShow,
24664
+ checkBoxColor,
24665
+ showLabelOnTop,
24666
+ dropdownHeight
24667
+ }) => {
24672
24668
  const [isFocused, setIsFocused] = React$1.useState(false);
24673
24669
  const [showOptions, setShowOptions] = React$1.useState(false);
24674
24670
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36165,9 +36161,9 @@ const ToggleSlider = styled__default["default"].span`
36165
36161
  }
36166
36162
  `;
36167
36163
 
36168
- /**
36169
- * ToggleSwitch component for on/off states.
36170
- * Supports small/large sizes and disabled state.
36164
+ /**
36165
+ * ToggleSwitch component for on/off states.
36166
+ * Supports small/large sizes and disabled state.
36171
36167
  */
36172
36168
  function ToggleSwitch(_ref) {
36173
36169
  let {
@@ -38252,48 +38248,28 @@ const SortPop = props => {
38252
38248
  color = '#066768',
38253
38249
  onCheck = () => {},
38254
38250
  onReset = () => {},
38255
- selectedValue: externalSelectedValue = null // Accept external state
38251
+ selectedValue: externalSelectedValue = null
38256
38252
  } = props;
38257
-
38258
- // Use external state if provided, otherwise use internal state
38259
38253
  const [internalValue, setInternalValue] = React$1.useState(null);
38260
38254
  const value = externalSelectedValue !== null ? externalSelectedValue : internalValue;
38261
38255
  const setValue = externalSelectedValue !== null ? () => {} : setInternalValue;
38262
-
38263
- // Initialize internal state from external state if provided
38264
38256
  React$1.useEffect(() => {
38265
38257
  if (externalSelectedValue !== null) {
38266
38258
  setInternalValue(externalSelectedValue);
38267
38259
  }
38268
38260
  }, [externalSelectedValue]);
38269
38261
  const handleReset = () => {
38270
- // console.log('SortPop Reset:', {
38271
- // menuName,
38272
- // previousValue: value,
38273
- // newValue: null,
38274
- // timestamp: new Date().toISOString()
38275
- // });
38276
-
38277
- // Reset state (either internal or external)
38278
38262
  if (externalSelectedValue === null) {
38279
38263
  setValue(null);
38280
38264
  }
38281
-
38282
- // Call the onReset callback
38283
38265
  onReset();
38284
-
38285
- // Notify parent about the reset
38286
38266
  onCheck(null);
38287
38267
  };
38288
38268
  const handleChange = newValue => {
38289
38269
  const selectedItem = list.find(item => item.value === newValue.value);
38290
-
38291
- // Update state (either internal or external)
38292
38270
  if (externalSelectedValue === null) {
38293
38271
  setValue(selectedItem);
38294
38272
  }
38295
-
38296
- // Notify parent about the change
38297
38273
  onCheck(selectedItem);
38298
38274
  };
38299
38275
  React$1.useEffect(() => {
@@ -38304,17 +38280,18 @@ const SortPop = props => {
38304
38280
  height: height
38305
38281
  }, /*#__PURE__*/React__default["default"].createElement(Title$3, null, menuName), /*#__PURE__*/React__default["default"].createElement(DropdownList$1, {
38306
38282
  role: "listbox"
38307
- }, list.map(item => /*#__PURE__*/React__default["default"].createElement(DropdownItem$1, {
38308
- key: item.value,
38309
- selected: item.value === value,
38310
- onClick: () => {
38311
- handleChange(item);
38312
- }
38313
- }, /*#__PURE__*/React__default["default"].createElement(TruncatedText$1, null, item.label), item.value === value && /*#__PURE__*/React__default["default"].createElement(Checkmark, {
38314
- color: color
38315
- }, "\u2713")))), /*#__PURE__*/React__default["default"].createElement(ButtonWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(ResetButton, {
38283
+ }, list.map(item => {
38284
+ const isSelected = value && item.value === value.value;
38285
+ return /*#__PURE__*/React__default["default"].createElement(DropdownItem$1, {
38286
+ key: item.value,
38287
+ selected: isSelected,
38288
+ onClick: () => handleChange(item)
38289
+ }, /*#__PURE__*/React__default["default"].createElement(TruncatedText$1, null, item.label), isSelected && /*#__PURE__*/React__default["default"].createElement(Checkmark, {
38290
+ color: color
38291
+ }, "\u2713"));
38292
+ })), /*#__PURE__*/React__default["default"].createElement(ButtonWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(ResetButton, {
38316
38293
  onClick: handleReset,
38317
- disabled: value === null // Disable reset if no value is selected
38294
+ disabled: value === null
38318
38295
  }, "Reset")));
38319
38296
  };
38320
38297
 
@@ -55019,6 +54996,79 @@ const Label$1 = styled__default["default"].label`
55019
54996
  }
55020
54997
  `;
55021
54998
 
54999
+ const PenIcon = _ref => {
55000
+ let {
55001
+ width = "24",
55002
+ height = "24",
55003
+ color = "#212121"
55004
+ } = _ref;
55005
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
55006
+ width: width,
55007
+ height: height,
55008
+ viewBox: "0 0 25 25",
55009
+ fill: "none",
55010
+ xmlns: "http://www.w3.org/2000/svg"
55011
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
55012
+ filter: "url(#filter0_d_2525_123082)"
55013
+ }, /*#__PURE__*/React__default["default"].createElement("mask", {
55014
+ id: "path-1-outside-1_2525_123082",
55015
+ maskUnits: "userSpaceOnUse",
55016
+ x: "3.73438",
55017
+ y: "3.375",
55018
+ width: "17",
55019
+ height: "19",
55020
+ fill: color
55021
+ }, /*#__PURE__*/React__default["default"].createElement("rect", {
55022
+ fill: "white",
55023
+ x: "3.73438",
55024
+ y: "3.375",
55025
+ width: "17",
55026
+ height: "19"
55027
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
55028
+ d: "M15.1572 5.32807C16.031 4.33374 17.3136 4.07387 18.0234 4.7558L19.3105 5.99116C19.6459 6.4461 19.802 7.00854 19.749 7.57123C19.696 8.13395 19.4378 8.65758 19.0234 9.04194L9.57031 19.9384C9.34115 20.2236 9.05407 20.4571 8.72754 20.622C8.40112 20.7869 8.04311 20.8802 7.67773 20.8955L4.73438 21.1464L4.95605 18.0234C4.95807 17.9606 4.96275 17.8968 4.96973 17.833L4.9873 17.5898L5.00488 17.6103C5.11537 17.0963 5.35621 16.6187 5.7041 16.2246L15.1572 5.32807ZM6.9043 17.2705C6.73634 17.4579 6.61798 17.6844 6.56152 17.9296L6.55273 17.9746L6.5459 18.0126C6.54191 18.0332 6.53798 18.0541 6.54199 18.0751L6.53809 18.1386L6.44727 19.4121L7.61328 19.3095L7.69434 19.3115C7.96355 19.2647 8.20438 19.1159 8.36719 18.8964L15.6064 10.5517L13.9961 9.09369L6.9043 17.2705ZM16.9922 5.96088C16.7403 6.02342 16.5162 6.16848 16.3564 6.37299L15.0342 7.89741L16.6436 9.35541L17.8203 7.99994C17.9368 7.88082 18.0279 7.73901 18.0889 7.58393C18.1498 7.42886 18.179 7.26318 18.1748 7.09662L16.9922 5.96088Z"
55029
+ })), /*#__PURE__*/React__default["default"].createElement("path", {
55030
+ d: "M15.1572 5.32807C16.031 4.33374 17.3136 4.07387 18.0234 4.7558L19.3105 5.99116C19.6459 6.4461 19.802 7.00854 19.749 7.57123C19.696 8.13395 19.4378 8.65758 19.0234 9.04194L9.57031 19.9384C9.34115 20.2236 9.05407 20.4571 8.72754 20.622C8.40112 20.7869 8.04311 20.8802 7.67773 20.8955L4.73438 21.1464L4.95605 18.0234C4.95807 17.9606 4.96275 17.8968 4.96973 17.833L4.9873 17.5898L5.00488 17.6103C5.11537 17.0963 5.35621 16.6187 5.7041 16.2246L15.1572 5.32807ZM6.9043 17.2705C6.73634 17.4579 6.61798 17.6844 6.56152 17.9296L6.55273 17.9746L6.5459 18.0126C6.54191 18.0332 6.53798 18.0541 6.54199 18.0751L6.53809 18.1386L6.44727 19.4121L7.61328 19.3095L7.69434 19.3115C7.96355 19.2647 8.20438 19.1159 8.36719 18.8964L15.6064 10.5517L13.9961 9.09369L6.9043 17.2705ZM16.9922 5.96088C16.7403 6.02342 16.5162 6.16848 16.3564 6.37299L15.0342 7.89741L16.6436 9.35541L17.8203 7.99994C17.9368 7.88082 18.0279 7.73901 18.0889 7.58393C18.1498 7.42886 18.179 7.26318 18.1748 7.09662L16.9922 5.96088Z",
55031
+ fill: color
55032
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
55033
+ d: "M15.1572 5.32807L14.7816 4.998L14.7795 5.00042L15.1572 5.32807ZM18.0234 4.7558L17.677 5.11638L17.6772 5.11654L18.0234 4.7558ZM19.3105 5.99116L19.713 5.69448L19.6876 5.66005L19.6568 5.63042L19.3105 5.99116ZM19.749 7.57123L20.2468 7.61814L20.2468 7.61806L19.749 7.57123ZM19.0234 9.04194L18.6834 8.67535L18.6635 8.69379L18.6458 8.71428L19.0234 9.04194ZM9.57031 19.9384L9.19263 19.6108L9.18647 19.6179L9.18058 19.6252L9.57031 19.9384ZM8.72754 20.622L8.95297 21.0683L8.95297 21.0683L8.72754 20.622ZM7.67773 20.8955L7.65684 20.3959L7.64603 20.3963L7.63525 20.3973L7.67773 20.8955ZM4.73438 21.1464L4.23563 21.111L4.19423 21.6943L4.77686 21.6446L4.73438 21.1464ZM4.95605 18.0234L5.4548 18.0588L5.45549 18.0491L5.4558 18.0394L4.95605 18.0234ZM4.96973 17.833L5.46677 17.8873L5.46776 17.8782L5.46843 17.869L4.96973 17.833ZM4.9873 17.5898L5.36693 17.2644L4.57621 16.3419L4.48861 17.5537L4.9873 17.5898ZM5.00488 17.6103L4.62525 17.9357L5.28172 18.7016L5.49372 17.7154L5.00488 17.6103ZM5.7041 16.2246L6.07897 16.5554L6.08178 16.5522L5.7041 16.2246ZM6.9043 17.2705L7.27672 17.6042L7.28202 17.5981L6.9043 17.2705ZM6.56152 17.9296L6.07427 17.8175L6.07241 17.8255L6.07083 17.8336L6.56152 17.9296ZM6.55273 17.9746L6.06198 17.8785L6.0606 17.8862L6.55273 17.9746ZM6.5459 18.0126L7.03676 18.1081L7.03803 18.101L6.5459 18.0126ZM6.54199 18.0751L7.04105 18.1059L7.04491 18.0431L7.03313 17.9814L6.54199 18.0751ZM6.53809 18.1386L7.03684 18.1742L7.03714 18.1693L6.53809 18.1386ZM6.44727 19.4121L5.94853 19.3765L5.90681 19.9615L6.49107 19.9101L6.44727 19.4121ZM7.61328 19.3095L7.62533 18.8097L7.59735 18.809L7.56948 18.8114L7.61328 19.3095ZM7.69434 19.3115L7.68229 19.8113L7.73148 19.8125L7.77995 19.8041L7.69434 19.3115ZM8.36719 18.8964L7.9895 18.5688L7.977 18.5832L7.96563 18.5985L8.36719 18.8964ZM15.6064 10.5517L15.9841 10.8794L16.3049 10.5096L15.942 10.1811L15.6064 10.5517ZM13.9961 9.09369L14.3317 8.72304L13.953 8.38022L13.6184 8.76609L13.9961 9.09369ZM16.9922 5.96088L17.3385 5.60025L17.1395 5.40912L16.8717 5.47562L16.9922 5.96088ZM16.3564 6.37299L16.7342 6.70061L16.7426 6.69089L16.7505 6.68075L16.3564 6.37299ZM15.0342 7.89741L14.6565 7.56978L14.3358 7.93943L14.6985 8.26796L15.0342 7.89741ZM16.6436 9.35541L16.3079 9.72596L16.6863 10.0688L17.0211 9.6832L16.6436 9.35541ZM17.8203 7.99994L17.4628 7.65034L17.4525 7.66095L17.4427 7.67216L17.8203 7.99994ZM18.0889 7.58393L18.5542 7.7668L18.5542 7.76677L18.0889 7.58393ZM18.1748 7.09662L18.6746 7.08391L18.6694 6.87839L18.5211 6.736L18.1748 7.09662ZM15.1572 5.32807L15.5328 5.65813C15.9066 5.23273 16.3521 4.98342 16.7501 4.90358C17.1457 4.82425 17.4653 4.91295 17.677 5.11638L18.0234 4.7558L18.3698 4.39523C17.8717 3.91673 17.1952 3.7944 16.5535 3.9231C15.9144 4.05129 15.2816 4.42908 14.7816 4.99801L15.1572 5.32807ZM18.0234 4.7558L17.6772 5.11654L18.9643 6.35189L19.3105 5.99116L19.6568 5.63042L18.3697 4.39507L18.0234 4.7558ZM19.3105 5.99116L18.9081 6.28783C19.1705 6.64386 19.2927 7.08401 19.2512 7.5244L19.749 7.57123L20.2468 7.61806C20.3113 6.93306 20.1213 6.24834 19.713 5.69448L19.3105 5.99116ZM19.749 7.57123L19.2512 7.52433C19.2097 7.96486 19.0076 8.37465 18.6834 8.67535L19.0234 9.04194L19.3635 9.40852C19.868 8.94051 20.1823 8.30303 20.2468 7.61814L19.749 7.57123ZM19.0234 9.04194L18.6458 8.71428L9.19263 19.6108L9.57031 19.9384L9.94799 20.2661L19.4011 9.36959L19.0234 9.04194ZM9.57031 19.9384L9.18058 19.6252C8.99561 19.8553 8.76436 20.0432 8.5021 20.1757L8.72754 20.622L8.95297 21.0683C9.34377 20.8709 9.68668 20.5918 9.96005 20.2516L9.57031 19.9384ZM8.72754 20.622L8.50211 20.1757C8.23926 20.3085 7.95099 20.3836 7.65684 20.3959L7.67773 20.8955L7.69863 21.395C8.13524 21.3768 8.56298 21.2653 8.95297 21.0683L8.72754 20.622ZM7.67773 20.8955L7.63525 20.3973L4.69189 20.6482L4.73438 21.1464L4.77686 21.6446L7.72021 21.3936L7.67773 20.8955ZM4.73438 21.1464L5.23312 21.1818L5.4548 18.0588L4.95605 18.0234L4.45731 17.988L4.23563 21.111L4.73438 21.1464ZM4.95605 18.0234L5.4558 18.0394C5.45737 17.9905 5.46106 17.9395 5.46677 17.8873L4.96973 17.833L4.47269 17.7786C4.46444 17.8541 4.45877 17.9307 4.45631 18.0073L4.95605 18.0234ZM4.96973 17.833L5.46843 17.869L5.486 17.6258L4.9873 17.5898L4.48861 17.5537L4.47103 17.7969L4.96973 17.833ZM4.9873 17.5898L4.60768 17.9152L4.62525 17.9357L5.00488 17.6103L5.38451 17.2849L5.36693 17.2644L4.9873 17.5898ZM5.00488 17.6103L5.49372 17.7154C5.58622 17.2851 5.78788 16.8852 6.07896 16.5554L5.7041 16.2246L5.32924 15.8937C4.92453 16.3522 4.64451 16.9076 4.51605 17.5052L5.00488 17.6103ZM5.7041 16.2246L6.08178 16.5522L15.5349 5.65572L15.1572 5.32807L14.7795 5.00042L5.32642 15.8969L5.7041 16.2246ZM6.9043 17.2705L6.53192 16.9368C6.3083 17.1863 6.14993 17.4888 6.07427 17.8175L6.56152 17.9296L7.04878 18.0418C7.08604 17.88 7.16438 17.7294 7.27667 17.6041L6.9043 17.2705ZM6.56152 17.9296L6.07083 17.8336L6.06204 17.8785L6.55273 17.9746L7.04343 18.0706L7.05222 18.0256L6.56152 17.9296ZM6.55273 17.9746L6.0606 17.8862L6.05376 17.9243L6.5459 18.0126L7.03803 18.101L7.04487 18.0629L6.55273 17.9746ZM6.5459 18.0126L6.05508 17.9172C6.0537 17.9243 6.02602 18.0387 6.05085 18.1688L6.54199 18.0751L7.03313 17.9814C7.04251 18.0306 7.04069 18.0698 7.03875 18.0905C7.03709 18.1081 7.03421 18.1209 7.03671 18.108L6.5459 18.0126ZM6.54199 18.0751L6.04294 18.0444L6.03903 18.1079L6.53809 18.1386L7.03714 18.1693L7.04105 18.1059L6.54199 18.0751ZM6.53809 18.1386L6.03935 18.103L5.94853 19.3765L6.44727 19.4121L6.946 19.4476L7.03682 18.1742L6.53809 18.1386ZM6.44727 19.4121L6.49107 19.9101L7.65708 19.8076L7.61328 19.3095L7.56948 18.8114L6.40346 18.914L6.44727 19.4121ZM7.61328 19.3095L7.60124 19.8094L7.68229 19.8113L7.69434 19.3115L7.70638 18.8116L7.62533 18.8097L7.61328 19.3095ZM7.69434 19.3115L7.77995 19.8041C8.17599 19.7353 8.52976 19.5165 8.76874 19.1943L8.36719 18.8964L7.96563 18.5985C7.879 18.7153 7.7511 18.7941 7.60872 18.8189L7.69434 19.3115ZM8.36719 18.8964L8.74487 19.2241L15.9841 10.8794L15.6064 10.5517L15.2288 10.2241L7.9895 18.5688L8.36719 18.8964ZM15.6064 10.5517L15.942 10.1811L14.3317 8.72304L13.9961 9.09369L13.6605 9.46435L15.2709 10.9224L15.6064 10.5517ZM13.9961 9.09369L13.6184 8.76609L6.52657 16.9428L6.9043 17.2705L7.28202 17.5981L14.3738 9.4213L13.9961 9.09369ZM16.9922 5.96088L16.8717 5.47562C16.5118 5.56498 16.1912 5.77228 15.9624 6.06523L16.3564 6.37299L16.7505 6.68075C16.8412 6.56468 16.9689 6.48186 17.1127 6.44615L16.9922 5.96088ZM16.3564 6.37299L15.9787 6.04537L14.6565 7.56978L15.0342 7.89741L15.4119 8.22503L16.7342 6.70061L16.3564 6.37299ZM15.0342 7.89741L14.6985 8.26796L16.3079 9.72596L16.6436 9.35541L16.9793 8.98486L15.3699 7.52686L15.0342 7.89741ZM16.6436 9.35541L17.0211 9.6832L18.1979 8.32773L17.8203 7.99994L17.4427 7.67216L16.266 9.02763L16.6436 9.35541ZM17.8203 7.99994L18.1778 8.34954C18.3418 8.18181 18.4692 7.98306 18.5542 7.7668L18.0889 7.58393L17.6235 7.40106C17.5866 7.49497 17.5318 7.57983 17.4628 7.65034L17.8203 7.99994ZM18.0889 7.58393L18.5542 7.76677C18.6396 7.54957 18.6806 7.31739 18.6746 7.08391L18.1748 7.09662L17.675 7.10934C17.6775 7.20896 17.66 7.30816 17.6235 7.40109L18.0889 7.58393ZM18.1748 7.09662L18.5211 6.736L17.3385 5.60025L16.9922 5.96088L16.6459 6.32151L17.8285 7.45725L18.1748 7.09662Z",
55034
+ fill: "white",
55035
+ mask: "url(#path-1-outside-1_2525_123082)"
55036
+ })), /*#__PURE__*/React__default["default"].createElement("defs", null, /*#__PURE__*/React__default["default"].createElement("filter", {
55037
+ id: "filter0_d_2525_123082",
55038
+ x: "-15.8047",
55039
+ y: "-16.125",
55040
+ width: "56.0625",
55041
+ height: "57.8203",
55042
+ filterUnits: "userSpaceOnUse",
55043
+ "color-interpolation-filters": "sRGB"
55044
+ }, /*#__PURE__*/React__default["default"].createElement("feFlood", {
55045
+ "flood-opacity": "0",
55046
+ result: "BackgroundImageFix"
55047
+ }), /*#__PURE__*/React__default["default"].createElement("feColorMatrix", {
55048
+ in: "SourceAlpha",
55049
+ type: "matrix",
55050
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
55051
+ result: "hardAlpha"
55052
+ }), /*#__PURE__*/React__default["default"].createElement("feOffset", null), /*#__PURE__*/React__default["default"].createElement("feGaussianBlur", {
55053
+ stdDeviation: "10"
55054
+ }), /*#__PURE__*/React__default["default"].createElement("feComposite", {
55055
+ in2: "hardAlpha",
55056
+ operator: "out"
55057
+ }), /*#__PURE__*/React__default["default"].createElement("feColorMatrix", {
55058
+ type: "matrix",
55059
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
55060
+ }), /*#__PURE__*/React__default["default"].createElement("feBlend", {
55061
+ mode: "normal",
55062
+ in2: "BackgroundImageFix",
55063
+ result: "effect1_dropShadow_2525_123082"
55064
+ }), /*#__PURE__*/React__default["default"].createElement("feBlend", {
55065
+ mode: "normal",
55066
+ in: "SourceGraphic",
55067
+ in2: "effect1_dropShadow_2525_123082",
55068
+ result: "shape"
55069
+ }))));
55070
+ };
55071
+
55022
55072
  const DialogOverlay = styled__default["default"].div`
55023
55073
  position: fixed;
55024
55074
  font-family: "Poppins", sans-serif;
@@ -55238,25 +55288,26 @@ const OverlayDropdown = _ref => {
55238
55288
  disabled = false,
55239
55289
  isDarkerBackground = false,
55240
55290
  required = false,
55241
- selectedColor = '#066768',
55242
- hoverColor = '#E6F0F0',
55243
- dropdownMaxHeight = '600px',
55244
- width = '100%',
55245
- height = 'auto',
55291
+ selectedColor = "#066768",
55292
+ hoverColor = "#E6F0F0",
55293
+ dropdownMaxHeight = "600px",
55294
+ width = "100%",
55295
+ height = "auto",
55246
55296
  label,
55247
55297
  labelEmptyValue,
55248
55298
  showLabelOnTop,
55249
55299
  placeHolder,
55250
55300
  labelColor,
55251
55301
  placeHolderColor,
55252
- margin = '8px',
55302
+ margin = "8px",
55303
+ editableDigitalCoupon = false,
55253
55304
  ...props
55254
55305
  } = _ref;
55255
55306
  const [open, setOpen] = React$1.useState(false);
55256
55307
  const [hoveredText, setHoveredText] = React$1.useState(null);
55257
55308
  const [templateDialog, setTemplateDialog] = React$1.useState(null);
55258
- const [dropdownPosition, setDropdownPosition] = React$1.useState('below');
55259
- const [lastDefinedGroup, setLastDefinedGroup] = React$1.useState(data.find(group => group.overlayCode === 'last_defined'));
55309
+ const [dropdownPosition, setDropdownPosition] = React$1.useState("below");
55310
+ const [lastDefinedGroup, setLastDefinedGroup] = React$1.useState(data.find(group => group.overlayCode === "last_defined"));
55260
55311
  const buttonRef = React$1.useRef(null);
55261
55312
  const dropdownRef = React$1.useRef(null);
55262
55313
  const containerRef = React$1.useRef(null);
@@ -55269,12 +55320,12 @@ const OverlayDropdown = _ref => {
55269
55320
  }
55270
55321
  };
55271
55322
  if (open) {
55272
- document.addEventListener('mousedown', handleClickOutside);
55273
- document.addEventListener('touchstart', handleClickOutside);
55323
+ document.addEventListener("mousedown", handleClickOutside);
55324
+ document.addEventListener("touchstart", handleClickOutside);
55274
55325
  }
55275
55326
  return () => {
55276
- document.removeEventListener('mousedown', handleClickOutside);
55277
- document.removeEventListener('touchstart', handleClickOutside);
55327
+ document.removeEventListener("mousedown", handleClickOutside);
55328
+ document.removeEventListener("touchstart", handleClickOutside);
55278
55329
  };
55279
55330
  }, [open]);
55280
55331
 
@@ -55292,9 +55343,9 @@ const OverlayDropdown = _ref => {
55292
55343
 
55293
55344
  // If there's not enough space below, but more space above, position above
55294
55345
  if (spaceBelow < dropdownHeight && spaceAbove > spaceBelow) {
55295
- setDropdownPosition('above');
55346
+ setDropdownPosition("above");
55296
55347
  } else {
55297
- setDropdownPosition('below');
55348
+ setDropdownPosition("below");
55298
55349
  }
55299
55350
  }
55300
55351
  }, [open, dropdownMaxHeight, margin]);
@@ -55324,8 +55375,8 @@ const OverlayDropdown = _ref => {
55324
55375
 
55325
55376
  // Tooltip logic for long string
55326
55377
  const getDisplayText = text => {
55327
- if (!text) return '';
55328
- if (text.length > 66) return text.slice(0, 66) + '...';
55378
+ if (!text) return "";
55379
+ if (text.length > 66) return text.slice(0, 66) + "...";
55329
55380
  return text;
55330
55381
  };
55331
55382
  const getTemplateParams = label => {
@@ -55340,12 +55391,12 @@ const OverlayDropdown = _ref => {
55340
55391
  return [{
55341
55392
  label: beforeX.trim(),
55342
55393
  // "Buy "
55343
- type: 'number',
55344
- suffix: ''
55394
+ type: "number",
55395
+ suffix: ""
55345
55396
  }, {
55346
55397
  label: betweenXY.trim(),
55347
55398
  // " & Get "
55348
- type: 'number',
55399
+ type: "number",
55349
55400
  suffix: afterY.trim() // " % Off"
55350
55401
  }];
55351
55402
  }
@@ -55358,16 +55409,16 @@ const OverlayDropdown = _ref => {
55358
55409
  return [{
55359
55410
  label: beforeVar.trim(),
55360
55411
  // "Buy "
55361
- type: 'number',
55412
+ type: "number",
55362
55413
  suffix: afterVar.trim() // " of item(s), Get Free Item"
55363
55414
  }];
55364
55415
  }
55365
55416
 
55366
55417
  // Fallback: if no pattern matches, treat as single input
55367
55418
  return [{
55368
- label: 'Value',
55369
- type: 'number',
55370
- suffix: ''
55419
+ label: "Value",
55420
+ type: "number",
55421
+ suffix: ""
55371
55422
  }];
55372
55423
  };
55373
55424
  const generateFinalSentence = (template, values) => {
@@ -55418,8 +55469,8 @@ const OverlayDropdown = _ref => {
55418
55469
  } else {
55419
55470
  // Create new group
55420
55471
  setLastDefinedGroup({
55421
- overlayCode: 'last_defined',
55422
- overlayName: 'Last defined by you',
55472
+ overlayCode: "last_defined",
55473
+ overlayName: "Last defined by you",
55423
55474
  templateType: 1,
55424
55475
  items: [newItem]
55425
55476
  });
@@ -55480,7 +55531,7 @@ const OverlayDropdown = _ref => {
55480
55531
  onMouseEnter: () => setHoveredText(selected?.label),
55481
55532
  onMouseLeave: () => setHoveredText(null),
55482
55533
  color: !selected && open ? placeHolderColor : "inherit"
55483
- }, selected ? getDisplayText(selected.label) : open ? placeHolder : ''), open ? /*#__PURE__*/React__default["default"].createElement(MenuItemUpIcon, {
55534
+ }, selected ? getDisplayText(selected.label) : open ? placeHolder : ""), open ? /*#__PURE__*/React__default["default"].createElement(MenuItemUpIcon, {
55484
55535
  width: "12px",
55485
55536
  height: "12px",
55486
55537
  color: "#B1B1B1"
@@ -55498,7 +55549,7 @@ const OverlayDropdown = _ref => {
55498
55549
  $showBorder: group.overlayName,
55499
55550
  margin: margin,
55500
55551
  key: group.overlayCode
55501
- }, ['Template Offer', 'Last defined by you'].includes(group.overlayName) && /*#__PURE__*/React__default["default"].createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
55552
+ }, ["Template Offer", "Last defined by you"].includes(group.overlayName) && /*#__PURE__*/React__default["default"].createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
55502
55553
  key: item.value,
55503
55554
  selected: item.value === value,
55504
55555
  selectedColor: selectedColor,
@@ -55532,6 +55583,8 @@ const OverlayDropdown = _ref => {
55532
55583
  onMouseLeave: () => setHoveredText(null)
55533
55584
  }, getDisplayText(item.label)), group.templateType === 2 ? /*#__PURE__*/React__default["default"].createElement(ChervronRightIcon, {
55534
55585
  fill: item.value === value ? "#fff" : "#212121"
55586
+ }) : group.templateType === 3 && editableDigitalCoupon ? /*#__PURE__*/React__default["default"].createElement(PenIcon, {
55587
+ fill: item.value === value ? "#fff" : "#212121"
55535
55588
  }) : item.value === value && /*#__PURE__*/React__default["default"].createElement(OkIcon, {
55536
55589
  width: "22px",
55537
55590
  height: "22px",