impact-chatbot 2.3.23 → 2.3.25

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.
@@ -1,6 +1,5 @@
1
- declare const CheckboxContent: ({ bodyText, isFormDisabled, messageIndex }: {
1
+ declare const CheckboxContent: ({ bodyText, isFormDisabled }: {
2
2
  bodyText: any;
3
3
  isFormDisabled?: boolean;
4
- messageIndex: any;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default CheckboxContent;
@@ -1,6 +1,5 @@
1
- declare const DatePickerContent: ({ bodyText, isFormDisabled, messageIndex }: {
1
+ declare const DatePickerContent: ({ bodyText, isFormDisabled }: {
2
2
  bodyText: any;
3
3
  isFormDisabled?: boolean;
4
- messageIndex: any;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default DatePickerContent;
@@ -1,6 +1,5 @@
1
- declare const DateRangePickerContent: ({ bodyText, isFormDisabled, messageIndex }: {
1
+ declare const DateRangePickerContent: ({ bodyText, isFormDisabled }: {
2
2
  bodyText: any;
3
3
  isFormDisabled?: boolean;
4
- messageIndex: any;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default DateRangePickerContent;
@@ -1,6 +1,5 @@
1
- declare const InputContent: ({ bodyText, isFormDisabled, messageIndex }: {
1
+ declare const InputContent: ({ bodyText, isFormDisabled }: {
2
2
  bodyText: any;
3
3
  isFormDisabled?: boolean;
4
- messageIndex: any;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default InputContent;
@@ -1,6 +1,5 @@
1
- declare const RadioContent: ({ bodyText, isFormDisabled, messageIndex }: {
1
+ declare const RadioContent: ({ bodyText, isFormDisabled }: {
2
2
  bodyText: any;
3
3
  isFormDisabled?: boolean;
4
- messageIndex: any;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default RadioContent;
@@ -1,6 +1,5 @@
1
- declare const SelectContent: ({ bodyText, isFormDisabled, messageIndex }: {
1
+ declare const SelectContent: ({ bodyText, isFormDisabled }: {
2
2
  bodyText: any;
3
3
  isFormDisabled?: boolean;
4
- messageIndex: any;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default SelectContent;
@@ -1,6 +1,5 @@
1
- declare const SliderContent: ({ bodyText, isFormDisabled, messageIndex }: {
1
+ declare const SliderContent: ({ bodyText, isFormDisabled }: {
2
2
  bodyText: any;
3
3
  isFormDisabled?: boolean;
4
- messageIndex: any;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  export default SliderContent;
@@ -3,6 +3,6 @@ export function getCurrentUserId(): any;
3
3
  export function getUserName(): any;
4
4
  export function fetchApplicationCode(): string;
5
5
  export function fetchBaseUrl(): string;
6
- export function getFormattedApplicationName(applicationURL: any): "application access management" | "AssortSmart" | "module configurator" | "InventorySmart" | "ADA" | "PlanSmart" | "ADAConfigurator" | "ItemSmart" | "ItemSmart-New" | "SourceSmart" | "PriceSmart Markdown" | "PriceSmart Promo" | "workflow input center";
6
+ export function getFormattedApplicationName(applicationURL: any): "application access management" | "AssortSmart" | "module configurator" | "InventorySmart" | "ADA" | "PlanSmart" | "ADAConfigurator" | "ItemSmart" | "ItemSmart-New" | "SourceSmart" | "PriceSmart Markdown" | "PriceSmart Promo" | "SizeSmart" | "workflow input center";
7
7
  export function fetchLegacyAgentScreen(): any;
8
8
  export function replaceSpecialCharacter(str: any): any;
package/dist/index.cjs.js CHANGED
@@ -1007,6 +1007,10 @@ const getFormattedApplicationName = (applicationURL) => {
1007
1007
  return "PriceSmart Promo";
1008
1008
  case "agentic-assort":
1009
1009
  return "AssortSmart";
1010
+ case "source-smart":
1011
+ return "SourceSmart"
1012
+ case "size-smart":
1013
+ return "SizeSmart"
1010
1014
  default:
1011
1015
  return "workflow input center";
1012
1016
  }
@@ -1032,9 +1036,9 @@ const preprocessMarkdown = (content) => {
1032
1036
  .replace(/<br\s*\/?>/g, '\n') // <br> to newline
1033
1037
  // Ensure proper line breaks before numbered lists (at line start)
1034
1038
  .replace(/(^|\n)(\d+\.\s+)/g, '$1\n$2')
1035
- // Ensure proper line breaks before bullet points (-, •) but NOT * (to preserve **bold**)
1036
- // Only match - or at start of line or after newline, followed by space
1037
- .replace(/(^|\n)([-•]\s+)/g, '$1\n$2')
1039
+ // Ensure proper line breaks before the first bullet point in a list (-, •) but NOT * (to preserve **bold**)
1040
+ // Only add a blank line before a bullet that follows a non-list line (paragraph → list transition)
1041
+ .replace(/(^|\n)([^\n-•]*[a-zA-Z0-9][^\n]*)\n([-•]\s+)/g, '$1$2\n\n$3')
1038
1042
  // Handle list items with - or • appearing directly after text without newline
1039
1043
  .replace(/([^\n])([-•])\s+/g, '$1\n\n$2 ')
1040
1044
  // Handle nested list items with proper indentation
@@ -6119,7 +6123,7 @@ const StreamedContent = ({ botData }) => {
6119
6123
  // }
6120
6124
  let endPoint = botData?.utilityObject?.endpoint
6121
6125
  ? `${api.BASE_API}${botData?.utilityObject?.endpoint}`
6122
- : `${api.BASE_API}/core/chatbot/navigation-v3`;
6126
+ : `${api.BASE_API}/core/chatbot/navigation-v2`;
6123
6127
  let method = botData?.utilityObject?.method
6124
6128
  ? botData?.utilityObject?.method
6125
6129
  : "PUT";
@@ -6687,13 +6691,11 @@ const StreamedContent = ({ botData }) => {
6687
6691
  return renderContent();
6688
6692
  };
6689
6693
 
6690
- const SliderContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6691
- const formKey = `${messageIndex}_${bodyText?.paramName}`;
6694
+ const SliderContent = ({ bodyText, isFormDisabled = false }) => {
6692
6695
  const { header, headerOrentiation, inputPosition, label, max, min, required, disabled, } = bodyText;
6696
+ const [sliderValue, setSliderValue] = React.useState(0);
6693
6697
  const chatbotContext = reactRedux.useSelector((state) => state.smartBotReducer.chatbotContext);
6694
- const persistedFormValues = reactRedux.useSelector((state) => state.smartBotReducer.persistedFormValues);
6695
6698
  const dispatch = reactRedux.useDispatch();
6696
- const [sliderValue, setSliderValue] = React.useState(persistedFormValues[formKey] !== undefined ? persistedFormValues[formKey] : 0);
6697
6699
  if (!bodyText)
6698
6700
  return null;
6699
6701
  const handleChange = (value) => {
@@ -6705,7 +6707,6 @@ const SliderContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6705
6707
  updated: true
6706
6708
  };
6707
6709
  dispatch(smartBotActions.setChatbotContext(chatbotContext));
6708
- dispatch(smartBotActions.setPersistedFormValues({ [formKey]: value?.target?.value }));
6709
6710
  }
6710
6711
  catch (error) {
6711
6712
  console.error("Error in slider handleChange", error);
@@ -6714,13 +6715,11 @@ const SliderContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6714
6715
  return (jsxRuntime.jsx("div", { style: { width: "100%", marginTop: "10px" }, children: jsxRuntime.jsx(impactUiV3.Slider, { header: header, headerOrientation: headerOrentiation, inputPosition: inputPosition, label: label, max: max, min: min, required: required, disabled: disabled || isFormDisabled, onChange: (e) => handleChange(e), value: sliderValue }) }));
6715
6716
  };
6716
6717
 
6717
- const SelectContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6718
- const formKey = `${messageIndex}_${bodyText?.paramName}`;
6718
+ const SelectContent = ({ bodyText, isFormDisabled = false }) => {
6719
6719
  const { header, inputPosition, labelOrientation, label, options, isRequired, isDisabled, isMulti, paramName } = bodyText;
6720
6720
  const [isOpen, setIsOpen] = React.useState(false);
6721
6721
  const [currentOptions, setCurrentOptions] = React.useState([]);
6722
- const persistedFormValues = reactRedux.useSelector((state) => state.smartBotReducer.persistedFormValues);
6723
- const [currentSelectedOptions, setCurrentSelectedOptions] = React.useState(persistedFormValues?.[formKey] || []);
6722
+ const [currentSelectedOptions, setCurrentSelectedOptions] = React.useState([]);
6724
6723
  const [isAllSelected, setIsAllSelected] = React.useState(false);
6725
6724
  const [initialOptions, setInitialOptions] = React.useState([]);
6726
6725
  const chatbotContext = reactRedux.useSelector((state) => state.smartBotReducer.chatbotContext);
@@ -6748,7 +6747,6 @@ const SelectContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6748
6747
  // updated: true
6749
6748
  // };
6750
6749
  dispatch(smartBotActions.setChatbotContext(chatbotContext));
6751
- dispatch(smartBotActions.setPersistedFormValues({ [formKey]: Array.isArray(selectedOptions) ? selectedOptions : [selectedOptions] }));
6752
6750
  }
6753
6751
  catch (error) {
6754
6752
  console.error("Error in select handleChange", error);
@@ -6770,13 +6768,11 @@ const SelectContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6770
6768
  isRequired: isRequired, isDisabled: isDisabled || isFormDisabled, handleChange: (selected) => onChange(selected), isCloseWhenClickOutside: true, setIsOpen: setIsOpen, isOpen: isOpen, selectedOptions: currentSelectedOptions, setSelectedOptions: setCurrentSelectedOptions, initialOptions: initialOptions, isMulti: isMulti, isSelectAll: isAllSelected, setIsSelectAll: setIsAllSelected, toggleSelectAll: true, isWithSearch: isMulti ? true : false }) }));
6771
6769
  };
6772
6770
 
6773
- const DatePickerContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6774
- const formKey = `${messageIndex}_${bodyText?.paramName}`;
6771
+ const DatePickerContent = ({ bodyText, isFormDisabled = false }) => {
6775
6772
  const { displayFormat, label, isRequired, labelOrientation, placeholder, minDate, maxDate, isDisabled, } = bodyText;
6773
+ const [selectedDate, setSelectedDate] = React.useState(null);
6776
6774
  const chatbotContext = reactRedux.useSelector((state) => state.smartBotReducer.chatbotContext);
6777
- const persistedFormValues = reactRedux.useSelector((state) => state.smartBotReducer.persistedFormValues);
6778
6775
  const dispatch = reactRedux.useDispatch();
6779
- const [selectedDate, setSelectedDate] = React.useState(persistedFormValues[formKey] || null);
6780
6776
  if (lodash.isEmpty(bodyText))
6781
6777
  return null;
6782
6778
  const handleDateChange = (date) => {
@@ -6788,7 +6784,6 @@ const DatePickerContent = ({ bodyText, isFormDisabled = false, messageIndex }) =
6788
6784
  updated: true
6789
6785
  };
6790
6786
  dispatch(smartBotActions.setChatbotContext(chatbotContext));
6791
- dispatch(smartBotActions.setPersistedFormValues({ [formKey]: date }));
6792
6787
  }
6793
6788
  catch (error) {
6794
6789
  console.error("Error in datepicker handleChange", error);
@@ -6803,14 +6798,12 @@ const DatePickerContent = ({ bodyText, isFormDisabled = false, messageIndex }) =
6803
6798
  selectedDate: selectedDate }) }));
6804
6799
  };
6805
6800
 
6806
- const DateRangePickerContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6807
- const formKey = `${messageIndex}_${bodyText?.paramName}`;
6801
+ const DateRangePickerContent = ({ bodyText, isFormDisabled = false }) => {
6808
6802
  const { displayFormat, label, isRequired, labelOrientation, minDate, maxDate, isDisabled, showMonthYearSelect, } = bodyText;
6803
+ const [startDate, setStartDate] = React.useState(null);
6804
+ const [endDate, setEndDate] = React.useState(null);
6809
6805
  const chatbotContext = reactRedux.useSelector((state) => state.smartBotReducer.chatbotContext);
6810
- const persistedFormValues = reactRedux.useSelector((state) => state.smartBotReducer.persistedFormValues);
6811
6806
  const dispatch = reactRedux.useDispatch();
6812
- const [startDate, setStartDate] = React.useState(persistedFormValues[formKey]?.startDate || null);
6813
- const [endDate, setEndDate] = React.useState(persistedFormValues[formKey]?.endDate || null);
6814
6807
  if (lodash.isEmpty(bodyText))
6815
6808
  return null;
6816
6809
  const handleDatesChange = (start, end) => {
@@ -6826,7 +6819,6 @@ const DateRangePickerContent = ({ bodyText, isFormDisabled = false, messageIndex
6826
6819
  updated: true,
6827
6820
  };
6828
6821
  dispatch(smartBotActions.setChatbotContext(chatbotContext));
6829
- dispatch(smartBotActions.setPersistedFormValues({ [formKey]: { startDate: start, endDate: end } }));
6830
6822
  }
6831
6823
  catch (error) {
6832
6824
  console.error("Error in dateRangePicker handleDatesChange", error);
@@ -6842,13 +6834,11 @@ const DateRangePickerContent = ({ bodyText, isFormDisabled = false, messageIndex
6842
6834
  } }) }));
6843
6835
  };
6844
6836
 
6845
- const CheckboxContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6846
- const formKey = `${messageIndex}_${bodyText?.paramName}`;
6837
+ const CheckboxContent = ({ bodyText, isFormDisabled = false }) => {
6847
6838
  const { label, checked: checkedValue, required, disabled, } = bodyText;
6848
6839
  const chatbotContext = reactRedux.useSelector((state) => state.smartBotReducer.chatbotContext);
6849
- const persistedFormValues = reactRedux.useSelector((state) => state.smartBotReducer.persistedFormValues);
6850
6840
  const dispatch = reactRedux.useDispatch();
6851
- const [checked, setChecked] = React.useState(persistedFormValues[formKey] !== undefined ? persistedFormValues[formKey] : checkedValue);
6841
+ const [checked, setChecked] = React.useState(checkedValue);
6852
6842
  if (lodash.isEmpty(bodyText))
6853
6843
  return null;
6854
6844
  const handleChange = (isChecked) => {
@@ -6865,7 +6855,6 @@ const CheckboxContent = ({ bodyText, isFormDisabled = false, messageIndex }) =>
6865
6855
  updated: true
6866
6856
  };
6867
6857
  dispatch(smartBotActions.setChatbotContext(chatbotContext));
6868
- dispatch(smartBotActions.setPersistedFormValues({ [formKey]: isChecked?.currentTarget?.checked }));
6869
6858
  }
6870
6859
  catch (error) {
6871
6860
  console.error("Error in checkbox handleChange", error);
@@ -6874,14 +6863,12 @@ const CheckboxContent = ({ bodyText, isFormDisabled = false, messageIndex }) =>
6874
6863
  return (jsxRuntime.jsx("div", { style: { width: '100%', marginTop: '10px' }, children: jsxRuntime.jsx(impactUiV3.Checkbox, { label: label, checked: checked, required: required, disabled: disabled || isFormDisabled, onChange: (e) => handleChange(e), variant: "default" }) }));
6875
6864
  };
6876
6865
 
6877
- const RadioContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6878
- const formKey = `${messageIndex}_${bodyText?.paramName}`;
6866
+ const RadioContent = ({ bodyText, isFormDisabled = false }) => {
6879
6867
  const classes = useStyles$6();
6880
6868
  const { label, isDisabled, orientation, options } = bodyText;
6881
6869
  const chatbotContext = reactRedux.useSelector((state) => state.smartBotReducer.chatbotContext);
6882
- const persistedFormValues = reactRedux.useSelector((state) => state.smartBotReducer.persistedFormValues);
6883
6870
  const dispatch = reactRedux.useDispatch();
6884
- const [selectedOption, setSelectedOption] = React.useState(persistedFormValues[formKey] ?? null);
6871
+ const [selectedOption, setSelectedOption] = React.useState(null);
6885
6872
  if (lodash.isEmpty(bodyText))
6886
6873
  return null;
6887
6874
  const handleChange = (selectedOption) => {
@@ -6899,7 +6886,6 @@ const RadioContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6899
6886
  updated: true
6900
6887
  };
6901
6888
  dispatch(smartBotActions.setChatbotContext(chatbotContext));
6902
- dispatch(smartBotActions.setPersistedFormValues({ [formKey]: value }));
6903
6889
  }
6904
6890
  catch (error) {
6905
6891
  console.error("Error in radio handleChange", error);
@@ -6908,13 +6894,11 @@ const RadioContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6908
6894
  return (jsxRuntime.jsxs("div", { style: { width: "100%", marginTop: "10px" }, children: [bodyText?.label && jsxRuntime.jsx("p", { className: classes.radioGrpLabel, children: bodyText.label }), jsxRuntime.jsx(impactUiV3.RadioButtonGroup, { name: "radio-group", options: options, onChange: (e) => handleChange(e), orientation: orientation, isDisabled: isDisabled || isFormDisabled, selectedOption: selectedOption })] }));
6909
6895
  };
6910
6896
 
6911
- const InputContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6912
- const formKey = `${messageIndex}_${bodyText?.paramName}`;
6897
+ const InputContent = ({ bodyText, isFormDisabled = false }) => {
6913
6898
  const { label, placeholder, isRequired, isDisabled, inputType, labelOrientation, defaultValue, maxLength, minLength, } = bodyText;
6914
6899
  const chatbotContext = reactRedux.useSelector((state) => state.smartBotReducer.chatbotContext);
6915
- const persistedFormValues = reactRedux.useSelector((state) => state.smartBotReducer.persistedFormValues);
6916
6900
  const dispatch = reactRedux.useDispatch();
6917
- const [value, setValue] = React.useState(persistedFormValues[formKey] !== undefined ? persistedFormValues[formKey] : (defaultValue || ""));
6901
+ const [value, setValue] = React.useState(defaultValue || "");
6918
6902
  if (lodash.isEmpty(bodyText))
6919
6903
  return null;
6920
6904
  const handleChange = (event) => {
@@ -6928,7 +6912,6 @@ const InputContent = ({ bodyText, isFormDisabled = false, messageIndex }) => {
6928
6912
  type: inputType,
6929
6913
  };
6930
6914
  dispatch(smartBotActions.setChatbotContext(chatbotContext));
6931
- dispatch(smartBotActions.setPersistedFormValues({ [formKey]: newValue }));
6932
6915
  }
6933
6916
  catch (error) {
6934
6917
  console.error("Error in input handleChange", error);
@@ -7183,21 +7166,21 @@ const CombinedContent = ({ botData, props }) => {
7183
7166
  case "graph":
7184
7167
  return jsxRuntime.jsx(GraphContent, { bodyText: parsedData.bodyText }, key);
7185
7168
  case "slider":
7186
- return jsxRuntime.jsx(SliderContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled, messageIndex: botData.messageIndex }, key);
7169
+ return jsxRuntime.jsx(SliderContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7187
7170
  case "select":
7188
- return jsxRuntime.jsx(SelectContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled, messageIndex: botData.messageIndex }, key);
7171
+ return jsxRuntime.jsx(SelectContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7189
7172
  case "datePicker":
7190
- return jsxRuntime.jsx(DatePickerContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled, messageIndex: botData.messageIndex }, key);
7173
+ return jsxRuntime.jsx(DatePickerContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7191
7174
  case "dateRangePicker":
7192
- return jsxRuntime.jsx(DateRangePickerContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled, messageIndex: botData.messageIndex }, key);
7175
+ return jsxRuntime.jsx(DateRangePickerContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7193
7176
  case "checkbox":
7194
- return jsxRuntime.jsx(CheckboxContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled, messageIndex: botData.messageIndex }, key);
7177
+ return jsxRuntime.jsx(CheckboxContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7195
7178
  case "radio":
7196
- return jsxRuntime.jsx(RadioContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled, messageIndex: botData.messageIndex }, key);
7179
+ return jsxRuntime.jsx(RadioContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7197
7180
  case "button":
7198
7181
  return jsxRuntime.jsx(ButtonContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7199
7182
  case "input":
7200
- return jsxRuntime.jsx(InputContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled, messageIndex: botData.messageIndex }, key);
7183
+ return jsxRuntime.jsx(InputContent, { bodyText: parsedData.bodyText, isFormDisabled: isFormDisabled }, key);
7201
7184
  case "image":
7202
7185
  return jsxRuntime.jsx(ImageContent, { bodyText: parsedData.bodyText }, key);
7203
7186
  default:
@@ -7279,21 +7262,21 @@ const BotMessage = ({ botData, state, handleLikeDislike, props }) => {
7279
7262
  case "graph":
7280
7263
  return jsxRuntime.jsx(GraphContent, { bodyText: botData.bodyText });
7281
7264
  case "slider":
7282
- return jsxRuntime.jsx(SliderContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled, messageIndex: botData.messageIndex });
7265
+ return jsxRuntime.jsx(SliderContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7283
7266
  case "select":
7284
- return jsxRuntime.jsx(SelectContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled, messageIndex: botData.messageIndex });
7267
+ return jsxRuntime.jsx(SelectContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7285
7268
  case "datePicker":
7286
- return jsxRuntime.jsx(DatePickerContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled, messageIndex: botData.messageIndex });
7269
+ return jsxRuntime.jsx(DatePickerContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7287
7270
  case "dateRangePicker":
7288
- return jsxRuntime.jsx(DateRangePickerContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled, messageIndex: botData.messageIndex });
7271
+ return jsxRuntime.jsx(DateRangePickerContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7289
7272
  case "checkbox":
7290
- return jsxRuntime.jsx(CheckboxContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled, messageIndex: botData.messageIndex });
7273
+ return jsxRuntime.jsx(CheckboxContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7291
7274
  case "radio":
7292
- return jsxRuntime.jsx(RadioContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled, messageIndex: botData.messageIndex });
7275
+ return jsxRuntime.jsx(RadioContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7293
7276
  case "button":
7294
7277
  return jsxRuntime.jsx(ButtonContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7295
7278
  case "input":
7296
- return jsxRuntime.jsx(InputContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled, messageIndex: botData.messageIndex });
7279
+ return jsxRuntime.jsx(InputContent, { bodyText: botData.bodyText, isFormDisabled: botData.isFormDisabled });
7297
7280
  case "image":
7298
7281
  return jsxRuntime.jsx(ImageContent, { bodyText: botData.bodyText });
7299
7282
  case "combined":
@@ -10801,7 +10784,6 @@ const SmartBot = (props) => {
10801
10784
  // />
10802
10785
  // ;
10803
10786
  message.isFormDisabled = index !== lastBotMessageIndex;
10804
- message.messageIndex = index;
10805
10787
  let originalUtilityObject = message.utilityObject;
10806
10788
  let newMessage = lodash.cloneDeep(message);
10807
10789
  if (originalUtilityObject) {