impact-ui 5.0.4 → 5.0.5-chatbot.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/_virtual/ArrowBack.js +4 -0
  2. package/dist/_virtual/AttachFileOutlined.js +4 -0
  3. package/dist/_virtual/ContentCopyOutlined.js +4 -0
  4. package/dist/_virtual/Menu.js +4 -0
  5. package/dist/_virtual/NorthRounded.js +4 -0
  6. package/dist/_virtual/RefreshOutlined.js +4 -0
  7. package/dist/_virtual/StopRounded.js +4 -0
  8. package/dist/_virtual/VolumeUpOutlined.js +4 -0
  9. package/dist/_virtual/index2.js +2 -2
  10. package/dist/_virtual/index3.js +2 -2
  11. package/dist/_virtual/index4.js +4 -2
  12. package/dist/_virtual/index5.js +3 -3
  13. package/dist/_virtual/index6.js +2 -4
  14. package/dist/components/AccordionModern/index.js +1 -1
  15. package/dist/components/Badge/index.js +1 -1
  16. package/dist/components/Breadcrumbs/index.js +1 -1
  17. package/dist/components/Button/index.js +1 -1
  18. package/dist/components/ButtonGroup/index.js +1 -1
  19. package/dist/components/Chatbot/Chatbot.types.d.ts +253 -186
  20. package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
  21. package/dist/components/Chatbot/chatBotFooter.d.ts +1 -1
  22. package/dist/components/Chatbot/chatBotFooter.d.ts.map +1 -1
  23. package/dist/components/Chatbot/chatBotFooter.js +21 -4
  24. package/dist/components/Chatbot/chatbotComposer.d.ts +4 -0
  25. package/dist/components/Chatbot/chatbotComposer.d.ts.map +1 -0
  26. package/dist/components/Chatbot/chatbotComposer.js +328 -0
  27. package/dist/components/Chatbot/chatbotGreetingHeader.d.ts +4 -0
  28. package/dist/components/Chatbot/chatbotGreetingHeader.d.ts.map +1 -0
  29. package/dist/components/Chatbot/chatbotGreetingHeader.js +226 -0
  30. package/dist/components/Chatbot/greetingWeather.d.ts +23 -0
  31. package/dist/components/Chatbot/greetingWeather.d.ts.map +1 -0
  32. package/dist/components/Chatbot/greetingWeather.js +81 -0
  33. package/dist/components/Chatbot/greetingWeather.test.d.ts +2 -0
  34. package/dist/components/Chatbot/greetingWeather.test.d.ts.map +1 -0
  35. package/dist/components/Chatbot/index.d.ts +5 -2
  36. package/dist/components/Chatbot/index.d.ts.map +1 -1
  37. package/dist/components/Chatbot/index.js +390 -421
  38. package/dist/components/Chatbot/irisConversationThread.d.ts +24 -0
  39. package/dist/components/Chatbot/irisConversationThread.d.ts.map +1 -0
  40. package/dist/components/Chatbot/irisConversationThread.js +511 -0
  41. package/dist/components/Chatbot/irisGreetingBackdrop.d.ts +5 -0
  42. package/dist/components/Chatbot/irisGreetingBackdrop.d.ts.map +1 -0
  43. package/dist/components/Chatbot/irisGreetingBackdrop.js +62 -0
  44. package/dist/components/Chatbot/irisMenuListItem.d.ts +11 -0
  45. package/dist/components/Chatbot/irisMenuListItem.d.ts.map +1 -0
  46. package/dist/components/Chatbot/irisMenuListItem.js +126 -0
  47. package/dist/components/Chatbot/irisMenuScreen.d.ts +4 -0
  48. package/dist/components/Chatbot/irisMenuScreen.d.ts.map +1 -0
  49. package/dist/components/Chatbot/irisMenuScreen.js +357 -0
  50. package/dist/components/Chatbot/irisThinking.d.ts +7 -0
  51. package/dist/components/Chatbot/irisThinking.d.ts.map +1 -0
  52. package/dist/components/Chatbot/irisThinking.js +219 -0
  53. package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
  54. package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
  55. package/dist/components/Chatbot/newChatComponent.js +497 -72
  56. package/dist/components/Chips/index.js +1 -1
  57. package/dist/components/CommentsPanel/CommentsPanel.impl.js +1 -1
  58. package/dist/components/DatePicker/DatePicker.types.d.ts +4 -0
  59. package/dist/components/DatePicker/DatePicker.types.d.ts.map +1 -1
  60. package/dist/components/DatePicker/datePickerInput.d.ts +2 -0
  61. package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
  62. package/dist/components/DatePicker/datePickerInput.js +32 -2
  63. package/dist/components/DatePicker/index.d.ts.map +1 -1
  64. package/dist/components/DatePicker/index.js +5 -1
  65. package/dist/components/DatePicker/showMonthYearSelect.d.ts.map +1 -1
  66. package/dist/components/DatePicker/showMonthYearSelect.js +2 -0
  67. package/dist/components/DateRangePicker/index.js +1 -1
  68. package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
  69. package/dist/components/DateRangePicker/showMonthYearSelect.js +2 -0
  70. package/dist/components/FileUpload/index.js +1 -1
  71. package/dist/components/FilterPanel/index.js +1 -1
  72. package/dist/components/FiltersStrip/FilterSlider.js +1 -1
  73. package/dist/components/FiltersStrip/index.js +1 -1
  74. package/dist/components/Input/index.js +1 -1
  75. package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +1 -1
  76. package/dist/components/KeyboardShortCuts/ShortcutModal.js +1 -1
  77. package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
  78. package/dist/components/KeyboardShortCuts/index.js +1 -1
  79. package/dist/components/KeyboardShortCuts/tutorial.js +1 -1
  80. package/dist/components/Menu/IconMenuItem.js +1 -1
  81. package/dist/components/Menu/NestedMenuItem.js +1 -1
  82. package/dist/components/Menu/index.js +1 -1
  83. package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
  84. package/dist/components/Modal/index.js +1 -1
  85. package/dist/components/MonthPicker/index.js +1 -1
  86. package/dist/components/MonthRangePicker/index.js +1 -1
  87. package/dist/components/NewCreateItemFlow/index.js +1 -1
  88. package/dist/components/NewDynamicLayout/index.js +1 -1
  89. package/dist/components/OnboardingTour/index.js +1 -1
  90. package/dist/components/OnboardingTour/productTourList.js +1 -1
  91. package/dist/components/OnboardingTour/tooltipCard.js +1 -1
  92. package/dist/components/Panel/index.js +1 -1
  93. package/dist/components/Popover/index.js +1 -1
  94. package/dist/components/Prompt/index.js +1 -1
  95. package/dist/components/Select/Select.types.d.ts +7 -0
  96. package/dist/components/Select/Select.types.d.ts.map +1 -1
  97. package/dist/components/Select/index.d.ts.map +1 -1
  98. package/dist/components/Select/index.js +44 -26
  99. package/dist/components/Stepper/index.js +1 -1
  100. package/dist/components/TableChat/EmptyContainer.js +1 -1
  101. package/dist/components/TableChat/TableChatSidePanel.js +1 -1
  102. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
  103. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.js +1 -1
  104. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
  105. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
  106. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +1 -1
  107. package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
  108. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +1 -1
  109. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.js +1 -1
  110. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +1 -1
  111. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
  112. package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
  113. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +1 -1
  114. package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
  115. package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
  116. package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
  117. package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
  118. package/dist/components/TableV36/AgGridHeader.js +107 -115
  119. package/dist/components/TableV36/index.d.ts.map +1 -1
  120. package/dist/components/TableV36/index.js +27 -5
  121. package/dist/components/TableV36/tableFunctions.d.ts.map +1 -1
  122. package/dist/components/TableV36/tableFunctions.js +15 -14
  123. package/dist/components/Tag/index.js +1 -1
  124. package/dist/components/TextArea/index.js +1 -1
  125. package/dist/components/common/MentionEditor/MentionList/index.js +1 -1
  126. package/dist/components/common/MentionEditor/index.js +1 -1
  127. package/dist/components/index.d.ts +3 -2
  128. package/dist/components/index.d.ts.map +1 -1
  129. package/dist/components/index.js +3 -0
  130. package/dist/hooks/useDraggableResizable.d.ts +11 -1
  131. package/dist/hooks/useDraggableResizable.d.ts.map +1 -1
  132. package/dist/hooks/useDraggableResizable.js +73 -59
  133. package/dist/locales/de-DE.json.d.ts +50 -30
  134. package/dist/locales/de-DE.json.js +50 -30
  135. package/dist/locales/en-US.json.d.ts +50 -30
  136. package/dist/locales/en-US.json.js +50 -30
  137. package/dist/locales/es-ES.json.d.ts +50 -30
  138. package/dist/locales/es-ES.json.js +50 -30
  139. package/dist/mcp-component-registry.json +65 -263
  140. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +293 -53
  141. package/dist/node_modules/@mui/icons-material/ArrowBack.js +17 -0
  142. package/dist/node_modules/@mui/icons-material/AttachFileOutlined.js +17 -0
  143. package/dist/node_modules/@mui/icons-material/ContentCopyOutlined.js +17 -0
  144. package/dist/node_modules/@mui/icons-material/Menu.js +17 -0
  145. package/dist/node_modules/@mui/icons-material/NorthRounded.js +17 -0
  146. package/dist/node_modules/@mui/icons-material/RefreshOutlined.js +17 -0
  147. package/dist/node_modules/@mui/icons-material/StopRounded.js +17 -0
  148. package/dist/node_modules/@mui/icons-material/VolumeUpOutlined.js +17 -0
  149. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  150. package/dist/node_modules/prop-types/index.js +1 -1
  151. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  152. package/dist/node_modules/react-is/index.js +1 -1
  153. package/dist/stories/chatBotApiMock.d.ts +91 -0
  154. package/dist/stories/chatBotApiMock.d.ts.map +1 -0
  155. package/dist/styles/style.css +1 -1
  156. package/package.json +2 -2
  157. package/dist/_virtual/MoreVert.js +0 -4
  158. package/dist/_virtual/RemoveRounded.js +0 -4
  159. package/dist/_virtual/SaveOutlined.js +0 -4
  160. package/dist/components/Chatbot/bookMarkPanel.d.ts +0 -4
  161. package/dist/components/Chatbot/bookMarkPanel.d.ts.map +0 -1
  162. package/dist/components/Chatbot/bookMarkPanel.js +0 -64
  163. package/dist/components/Chatbot/chatBotLandingScreen.d.ts +0 -4
  164. package/dist/components/Chatbot/chatBotLandingScreen.d.ts.map +0 -1
  165. package/dist/components/Chatbot/chatBotLandingScreen.js +0 -24
  166. package/dist/components/Chatbot/chatInput.d.ts +0 -4
  167. package/dist/components/Chatbot/chatInput.d.ts.map +0 -1
  168. package/dist/components/Chatbot/chatInput.js +0 -198
  169. package/dist/components/Chatbot/chatbotModuleMenu.d.ts +0 -4
  170. package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +0 -1
  171. package/dist/components/Chatbot/chatbotModuleMenu.js +0 -248
  172. package/dist/components/Chatbot/constant.d.ts +0 -6
  173. package/dist/components/Chatbot/constant.d.ts.map +0 -1
  174. package/dist/components/Chatbot/constant.js +0 -27
  175. package/dist/components/Chatbot/conversationScreen.d.ts +0 -4
  176. package/dist/components/Chatbot/conversationScreen.d.ts.map +0 -1
  177. package/dist/components/Chatbot/conversationScreen.js +0 -207
  178. package/dist/components/Chatbot/customScreen.d.ts +0 -4
  179. package/dist/components/Chatbot/customScreen.d.ts.map +0 -1
  180. package/dist/components/Chatbot/customScreen.js +0 -66
  181. package/dist/components/Chatbot/historyPanel.d.ts +0 -4
  182. package/dist/components/Chatbot/historyPanel.d.ts.map +0 -1
  183. package/dist/components/Chatbot/historyPanel.js +0 -374
  184. package/dist/components/Chatbot/utils.d.ts +0 -5
  185. package/dist/components/Chatbot/utils.d.ts.map +0 -1
  186. package/dist/components/Chatbot/utils.js +0 -29
  187. package/dist/node_modules/@mui/icons-material/MoreVert.js +0 -17
  188. package/dist/node_modules/@mui/icons-material/RemoveRounded.js +0 -17
  189. package/dist/node_modules/@mui/icons-material/SaveOutlined.js +0 -17
  190. package/dist/utils/onResize.js +0 -28
@@ -1,95 +1,520 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
2
+ import { useState, useMemo, useEffect } from "react";
3
3
  import { getAssetUrl } from "../../utils/assetBase.js";
4
+ import { Skeleton } from "../Skeleton/index.js";
4
5
  import { ChatBotFooter } from "./chatBotFooter.js";
5
- import ChatInput from "./chatInput.js";
6
+ import { ChatbotComposer } from "./chatbotComposer.js";
7
+ import { ChatbotGreetingHeader } from "./chatbotGreetingHeader.js";
8
+ import { IrisConversationThread } from "./irisConversationThread.js";
9
+ import { IrisGreetingBackdrop } from "./irisGreetingBackdrop.js";
10
+ import { IrisMenuScreen } from "./irisMenuScreen.js";
11
+ import { fetchGreetingWeather } from "./greetingWeather.js";
6
12
  import { useTranslation } from "../../i18n/useTranslation.js";
7
13
  const SmartBotIcon = getAssetUrl("icons/smartBotAlan.svg");
8
- const SunIcon = getAssetUrl("icons/sun.webp");
9
- const getGreeting = (t) => {
10
- const hour = (/* @__PURE__ */ new Date()).getHours();
11
- if (hour >= 5 && hour < 12) return t ? t("chatBot.greeting.morning") : "Good Morning";
12
- if (hour >= 12 && hour < 16) return t ? t("chatBot.greeting.afternoon") : "Good Afternoon";
13
- return t ? t("chatBot.greeting.evening") : "Good Evening";
14
+ const CONVERSATION_TITLE_MAX = 28;
15
+ const TYPEWRITER_MS = 28;
16
+ const SUGGESTED_SKELETON_COUNT = 3;
17
+ const GREETING_ICONS = {
18
+ morning: {
19
+ clear: "☀️",
20
+ partlyCloudy: "🌤",
21
+ cloudy: "☁️",
22
+ rain: "🌦",
23
+ snow: "🌨",
24
+ storm: "⛈"
25
+ },
26
+ afternoon: {
27
+ clear: "☀️",
28
+ partlyCloudy: "⛅",
29
+ cloudy: "☁️",
30
+ rain: "🌧",
31
+ snow: "🌨",
32
+ storm: "⛈"
33
+ },
34
+ evening: {
35
+ clear: "🌙",
36
+ partlyCloudy: "☁️",
37
+ cloudy: "☁️",
38
+ rain: "🌧",
39
+ snow: "🌨",
40
+ storm: "⛈"
41
+ }
14
42
  };
43
+ function getGreetingPeriod(date = /* @__PURE__ */ new Date()) {
44
+ const hour = date.getHours();
45
+ if (hour >= 5 && hour < 12) return "morning";
46
+ if (hour >= 12 && hour < 17) return "afternoon";
47
+ return "evening";
48
+ }
49
+ const getGreeting = (t, period = getGreetingPeriod()) => {
50
+ if (period === "morning") return t("chatBot.greeting.morning");
51
+ if (period === "afternoon") return t("chatBot.greeting.afternoon");
52
+ return t("chatBot.greeting.evening");
53
+ };
54
+ function getGreetingIconGlyph(period, weather = "clear", iconOverride) {
55
+ if (iconOverride != null && iconOverride !== "") return iconOverride;
56
+ return GREETING_ICONS[period][weather] ?? GREETING_ICONS[period].clear;
57
+ }
58
+ function getTitleIcon(iconGlyph) {
59
+ return ` ${iconGlyph}`;
60
+ }
61
+ function truncateTitle(text) {
62
+ const trimmed = text.trim().replace(/\s+/g, " ");
63
+ if (trimmed.length <= CONVERSATION_TITLE_MAX) return trimmed;
64
+ return `${trimmed.slice(0, CONVERSATION_TITLE_MAX - 1).trimEnd()}…`;
65
+ }
66
+ function shouldSkipEntranceAnimation() {
67
+ if (typeof window === "undefined") return true;
68
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
69
+ }
70
+ function getNamePart(userName) {
71
+ return userName ? ` ${userName}!` : "";
72
+ }
73
+ function getTitleLength(greeting, userName, titleIcon) {
74
+ return greeting.length + getNamePart(userName).length + titleIcon.length;
75
+ }
76
+ function splitTypedTitle(greeting, userName, typedLen, titleIcon) {
77
+ const namePart = getNamePart(userName);
78
+ let remaining = Math.max(0, typedLen);
79
+ const greetingPart = greeting.slice(0, Math.min(remaining, greeting.length));
80
+ remaining -= greetingPart.length;
81
+ const nameVisible = namePart.slice(0, Math.min(remaining, namePart.length));
82
+ remaining -= nameVisible.length;
83
+ const iconPart = remaining > 0 ? titleIcon.slice(0, remaining) : "";
84
+ return { greetingPart, namePart: nameVisible, iconPart };
85
+ }
86
+ function extractHostMessages(conversation) {
87
+ var _a;
88
+ if (!(conversation == null ? void 0 : conversation.conversations)) return void 0;
89
+ const keys = Object.keys(conversation.conversations);
90
+ const firstKey = keys[0];
91
+ if (!firstKey) return [];
92
+ return ((_a = conversation.conversations[firstKey]) == null ? void 0 : _a.messages) ?? [];
93
+ }
94
+ function toIrisMessage(message) {
95
+ const text = message.text != null && message.text !== "" ? message.text : message.bodyText != null && message.bodyText !== "" ? message.bodyText : message.text;
96
+ const isUser = message.role === "user" || message.userType === "user";
97
+ return {
98
+ ...message,
99
+ text,
100
+ timestamp: message.timestamp ?? message.timeStamp,
101
+ role: isUser ? "user" : "assistant",
102
+ userType: isUser ? "user" : "bot"
103
+ };
104
+ }
15
105
  function NewChatComponent({
16
- onClose: _onClose,
106
+ onClose,
17
107
  userName,
108
+ greetingWeather,
109
+ autoGreetingWeather = false,
110
+ greetingIcon,
18
111
  inputValue,
19
112
  setInputValue,
20
- setIsNewChat,
21
- onSendIconClick,
22
- userChats,
23
- setUserChats,
24
- moduleList: _moduleList,
25
- onModuleClick: _onModuleClick,
26
- activeList,
27
- handleRefresh,
28
- handleSaveChat,
29
113
  handleMicClick,
30
- hideMenuArrow: _hideMenuArrow,
31
- isModuleListLoading: _isModuleListLoading,
32
- suggestionBanner,
33
- isStopIcon,
34
- onStopIconClick,
35
- onCloseSuggestionBanner,
36
- showSuggestionBanner,
37
114
  customInputComponent,
38
- footerText
115
+ footerText,
116
+ suggestedPrompts = [],
117
+ isSuggestedPromptsLoading = false,
118
+ onSuggestedPromptClick,
119
+ modelOptions,
120
+ selectedModel,
121
+ onModelChange,
122
+ onAddClick,
123
+ onAttachClick,
124
+ onMenuClick,
125
+ onFooterLinkClick,
126
+ onToggleCollapse,
127
+ onMinimiseChatBot,
128
+ onEnterFloating,
129
+ onEnterFullScreen,
130
+ onExitFullScreen,
131
+ isFullScreen = false,
132
+ onSendIconClick,
133
+ onNewChatClick,
134
+ isStopIcon = false,
135
+ onStopIconClick,
136
+ isAssistantThinking = false,
137
+ thinking,
138
+ isCollapsed = false,
139
+ isFloating = false,
140
+ isFullWidth = false,
141
+ dragHandleProps,
142
+ conversation,
143
+ historyPanelData = [],
144
+ artifacts = [],
145
+ isRecentChatsLoading = false,
146
+ isArtifactsLoading = false,
147
+ onHistorySelectConversation,
148
+ onSelectArtifact,
149
+ onIrisMenuFilterSelect,
150
+ onHistoryMenuAction,
151
+ onArtifactMenuAction,
152
+ onLikeClick,
153
+ onDislikeClick,
154
+ onRegenerateClick,
155
+ onSpeakClick,
156
+ onRevertClick,
157
+ defaultAssistantActions
39
158
  }) {
159
+ var _a;
40
160
  const { t } = useTranslation();
41
- const [loading, setLoading] = useState(true);
42
- const [greeting, setGreeting] = useState(() => getGreeting(t));
161
+ const greetingPeriod = getGreetingPeriod();
162
+ const [resolvedWeather, setResolvedWeather] = useState(
163
+ () => greetingWeather ?? "clear"
164
+ );
165
+ const titleIcon = getTitleIcon(
166
+ getGreetingIconGlyph(greetingPeriod, resolvedWeather, greetingIcon)
167
+ );
168
+ const [greeting, setGreeting] = useState(() => getGreeting(t, greetingPeriod));
169
+ const [messages, setMessages] = useState([]);
170
+ const [isWaiting, setIsWaiting] = useState(false);
171
+ const [irisView, setIrisView] = useState("chat");
172
+ const [entrancePhase, setEntrancePhase] = useState(
173
+ () => shouldSkipEntranceAnimation() ? "done" : "logo"
174
+ );
175
+ const [typedTitleLen, setTypedTitleLen] = useState(
176
+ () => shouldSkipEntranceAnimation() ? getTitleLength(getGreeting(t, greetingPeriod), userName, titleIcon) : 0
177
+ );
178
+ const [typedSubtitleLen, setTypedSubtitleLen] = useState(
179
+ () => shouldSkipEntranceAnimation() ? t("chatBot.irisIntro").length : 0
180
+ );
181
+ const hasDraft = inputValue.trim().length > 0;
182
+ const showSuggested = !hasDraft && (isSuggestedPromptsLoading || suggestedPrompts.length > 0);
183
+ const isConversation = messages.length > 0;
184
+ const isThinking = isConversation && (isAssistantThinking || isStopIcon || isWaiting);
185
+ const conversationTitle = truncateTitle(
186
+ typeof ((_a = messages[0]) == null ? void 0 : _a.text) === "string" ? messages[0].text : t("chatBot.greeting.brand")
187
+ );
188
+ const isMenuOpen = irisView !== "chat";
189
+ const introText = t("chatBot.irisIntro");
190
+ const titleFullLen = useMemo(
191
+ () => getTitleLength(greeting, userName, titleIcon),
192
+ [greeting, userName, titleIcon]
193
+ );
194
+ const entranceDone = isConversation || entrancePhase === "done";
195
+ const typedTitle = splitTypedTitle(greeting, userName, typedTitleLen, titleIcon);
196
+ const typedSubtitle = introText.slice(0, typedSubtitleLen);
197
+ const titleAriaLabel = `${greeting}${getNamePart(userName)}${titleIcon}`.trim();
198
+ useEffect(() => {
199
+ setGreeting(getGreeting(t, getGreetingPeriod()));
200
+ }, [t]);
43
201
  useEffect(() => {
44
- const timer = setTimeout(() => {
45
- setLoading(false);
46
- }, 450);
202
+ if (greetingWeather != null) {
203
+ setResolvedWeather(greetingWeather);
204
+ return;
205
+ }
206
+ if (!autoGreetingWeather || greetingIcon || false) {
207
+ setResolvedWeather("clear");
208
+ return;
209
+ }
210
+ const controller = new AbortController();
211
+ let cancelled = false;
212
+ void fetchGreetingWeather({ signal: controller.signal }).then((weather) => {
213
+ if (!cancelled) setResolvedWeather(weather);
214
+ }).catch(() => {
215
+ if (!cancelled) setResolvedWeather("clear");
216
+ });
47
217
  return () => {
48
- clearTimeout(timer);
218
+ cancelled = true;
219
+ controller.abort();
49
220
  };
50
- }, []);
221
+ }, [greetingWeather, autoGreetingWeather, greetingIcon]);
51
222
  useEffect(() => {
52
- setGreeting(getGreeting(t));
53
- }, [t]);
54
- return /* @__PURE__ */ jsx("div", { className: "chatbot-component-body", children: /* @__PURE__ */ jsxs("div", { className: "chatbot-component-body-container", children: [
55
- /* @__PURE__ */ jsx("div", { className: `chatbot-component-body-icon${loading ? " rotating" : ""}`, children: /* @__PURE__ */ jsx("img", { alt: "smartbot", src: SmartBotIcon }) }),
56
- /* @__PURE__ */ jsxs("div", { className: "chatbot-component-body-text", children: [
57
- /* @__PURE__ */ jsxs("span", { className: "chatbot-component-body-text-title", children: [
58
- greeting,
59
- " ",
60
- /* @__PURE__ */ jsxs("span", { className: "chatbot-component-body-text-username", children: [
61
- userName,
62
- "!"
63
- ] }),
64
- /* @__PURE__ */ jsx("img", { alt: t("chatBot.sunAlt"), src: SunIcon })
65
- ] }),
66
- /* @__PURE__ */ jsx("span", { className: "chatbot-component-body-text-description", children: t("chatBot.irisIntro") })
67
- ] }),
68
- /* @__PURE__ */ jsx("div", { className: "chatbot-component-body-input-container", children: /* @__PURE__ */ jsx(
69
- ChatInput,
223
+ if (entrancePhase !== "done") return;
224
+ setTypedTitleLen(getTitleLength(greeting, userName, titleIcon));
225
+ setTypedSubtitleLen(introText.length);
226
+ }, [entrancePhase, greeting, userName, introText, titleIcon]);
227
+ useEffect(() => {
228
+ const remote = extractHostMessages(conversation);
229
+ if (remote === void 0) return;
230
+ setMessages((local) => {
231
+ if (remote.length === 0) return [];
232
+ if (remote.length >= local.length) return remote.map(toIrisMessage);
233
+ return local;
234
+ });
235
+ if (remote.length > 0) setIsWaiting(false);
236
+ }, [conversation]);
237
+ useEffect(() => {
238
+ if (isConversation || entrancePhase !== "logo") return;
239
+ const id = window.setTimeout(() => setEntrancePhase("title"), 800);
240
+ return () => window.clearTimeout(id);
241
+ }, [entrancePhase, isConversation]);
242
+ useEffect(() => {
243
+ if (isConversation || entrancePhase !== "title") return;
244
+ if (typedTitleLen >= titleFullLen) {
245
+ setEntrancePhase("subtitle");
246
+ return;
247
+ }
248
+ const id = window.setTimeout(() => {
249
+ setTypedTitleLen((len) => len + 1);
250
+ }, TYPEWRITER_MS);
251
+ return () => window.clearTimeout(id);
252
+ }, [entrancePhase, typedTitleLen, titleFullLen, isConversation]);
253
+ useEffect(() => {
254
+ if (isConversation || entrancePhase !== "subtitle") return;
255
+ if (typedSubtitleLen >= introText.length) {
256
+ setEntrancePhase("done");
257
+ return;
258
+ }
259
+ const id = window.setTimeout(() => {
260
+ setTypedSubtitleLen((len) => len + 1);
261
+ }, TYPEWRITER_MS);
262
+ return () => window.clearTimeout(id);
263
+ }, [entrancePhase, typedSubtitleLen, introText.length, isConversation]);
264
+ const showGreetingWithoutEntrance = () => {
265
+ setEntrancePhase("done");
266
+ setTypedTitleLen(getTitleLength(greeting, userName, titleIcon));
267
+ setTypedSubtitleLen(introText.length);
268
+ };
269
+ const handleSend = () => {
270
+ const text = inputValue.trim();
271
+ if (!text) return;
272
+ const message = {
273
+ id: `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
274
+ text,
275
+ role: "user",
276
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
277
+ };
278
+ setMessages((prev) => [...prev, message]);
279
+ setIsWaiting(true);
280
+ setInputValue("");
281
+ onSendIconClick == null ? void 0 : onSendIconClick(message);
282
+ };
283
+ const handleEditUserMessage = (_message, index, nextText) => {
284
+ const text = nextText.trim();
285
+ if (!text) return;
286
+ const message = {
287
+ id: `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
288
+ text,
289
+ role: "user",
290
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
291
+ };
292
+ setMessages((prev) => [...prev.slice(0, index), message]);
293
+ setIsWaiting(true);
294
+ setInputValue("");
295
+ onSendIconClick == null ? void 0 : onSendIconClick(message);
296
+ };
297
+ const handleStop = () => {
298
+ setIsWaiting(false);
299
+ onStopIconClick == null ? void 0 : onStopIconClick();
300
+ };
301
+ const resetToGreeting = () => {
302
+ showGreetingWithoutEntrance();
303
+ setMessages([]);
304
+ setIsWaiting(false);
305
+ setInputValue("");
306
+ setIrisView("chat");
307
+ onNewChatClick == null ? void 0 : onNewChatClick();
308
+ };
309
+ const handleOpenMenu = () => {
310
+ setIrisView("menu");
311
+ onMenuClick == null ? void 0 : onMenuClick();
312
+ };
313
+ const handleMenuBack = () => {
314
+ if (irisView === "recent-chats" || irisView === "artifacts") {
315
+ setIrisView("menu");
316
+ return;
317
+ }
318
+ setIrisView("chat");
319
+ };
320
+ const handleViewMore = (section) => {
321
+ setIrisView(section === "artifacts" ? "artifacts" : "recent-chats");
322
+ };
323
+ const handleSelectConversation = (item) => {
324
+ setIrisView("chat");
325
+ onHistorySelectConversation == null ? void 0 : onHistorySelectConversation(item);
326
+ };
327
+ const handleSelectArtifact = (item) => {
328
+ setIrisView("chat");
329
+ onSelectArtifact == null ? void 0 : onSelectArtifact(item);
330
+ };
331
+ if (isMenuOpen) {
332
+ return /* @__PURE__ */ jsx(
333
+ IrisMenuScreen,
70
334
  {
71
- newChatScreen: true,
72
- activeList,
73
- customInputComponent,
74
- handleMicClick,
75
- handleRefresh,
76
- handleSaveChat,
77
- inputValue,
78
- isStopIcon,
79
- minRows: 4,
80
- setInputValue,
81
- setIsNewChat,
82
- setUserChats,
83
- showSuggestionBanner,
84
- suggestionBanner,
85
- userChats,
86
- onCloseSuggestionBanner,
87
- onSendIconClick,
88
- onStopIconClick
335
+ artifacts,
336
+ dragHandleProps,
337
+ footerText,
338
+ historyPanelData,
339
+ isArtifactsLoading,
340
+ isCollapsed,
341
+ isFloating,
342
+ isFullScreen,
343
+ isFullWidth,
344
+ isRecentChatsLoading,
345
+ view: irisView,
346
+ onBackClick: handleMenuBack,
347
+ onClose,
348
+ onEnterFloating,
349
+ onEnterFullScreen,
350
+ onExitFullScreen,
351
+ onFilterSelect: onIrisMenuFilterSelect,
352
+ onFooterLinkClick,
353
+ onMinimiseChatBot,
354
+ onNewChatClick: resetToGreeting,
355
+ onArtifactMenuAction,
356
+ onChatMenuAction: (action, item) => onHistoryMenuAction == null ? void 0 : onHistoryMenuAction(action, item),
357
+ onSelectArtifact: handleSelectArtifact,
358
+ onSelectConversation: handleSelectConversation,
359
+ onToggleCollapse,
360
+ onViewMore: handleViewMore
89
361
  }
90
- ) }),
91
- /* @__PURE__ */ jsx(ChatBotFooter, { footerText })
92
- ] }) });
362
+ );
363
+ }
364
+ return /* @__PURE__ */ jsxs(
365
+ "div",
366
+ {
367
+ className: `chatbot-greeting${isCollapsed ? " is-collapsed" : ""}${isConversation ? " is-conversation" : ""}${isFullScreen ? " is-full-screen" : ""}`,
368
+ children: [
369
+ /* @__PURE__ */ jsx(
370
+ ChatbotGreetingHeader,
371
+ {
372
+ dragHandleProps,
373
+ isCollapsed,
374
+ isFloating,
375
+ isFullScreen,
376
+ isFullWidth,
377
+ title: isConversation ? conversationTitle : void 0,
378
+ variant: isConversation ? "conversation" : "greeting",
379
+ onClose,
380
+ onEnterFloating,
381
+ onEnterFullScreen,
382
+ onExitFullScreen,
383
+ onMenuClick: handleOpenMenu,
384
+ onMinimiseChatBot,
385
+ onNewChatClick: isConversation ? resetToGreeting : void 0,
386
+ onToggleCollapse
387
+ }
388
+ ),
389
+ /* @__PURE__ */ jsxs("main", { className: "chatbot-greeting-main", children: [
390
+ !isConversation && /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "chatbot-greeting-hero", children: /* @__PURE__ */ jsx(IrisGreetingBackdrop, { className: "chatbot-greeting-hero-image" }) }),
391
+ /* @__PURE__ */ jsxs("div", { className: "chatbot-greeting-content", children: [
392
+ isConversation ? /* @__PURE__ */ jsx(
393
+ IrisConversationThread,
394
+ {
395
+ defaultAssistantActions,
396
+ isThinking,
397
+ messages,
398
+ thinking: thinking ?? (isWaiting && !isAssistantThinking && !isStopIcon ? { phase: "status" } : void 0),
399
+ onDislikeAssistantMessage: onDislikeClick,
400
+ onEditUserMessage: handleEditUserMessage,
401
+ onLikeAssistantMessage: onLikeClick,
402
+ onRegenerateAssistantMessage: onRegenerateClick,
403
+ onRevertAssistantMessage: onRevertClick,
404
+ onSpeakAssistantMessage: onSpeakClick
405
+ }
406
+ ) : /* @__PURE__ */ jsxs(
407
+ "div",
408
+ {
409
+ "aria-busy": entrancePhase !== "done",
410
+ className: "chatbot-greeting-intro",
411
+ children: [
412
+ /* @__PURE__ */ jsx(
413
+ "div",
414
+ {
415
+ className: `chatbot-greeting-logo${entrancePhase === "logo" ? " chatbot-greeting-logo--spin" : ""}`,
416
+ onAnimationEnd: (event) => {
417
+ if (event.target !== event.currentTarget) return;
418
+ if (entrancePhase !== "logo") return;
419
+ if (!String(event.animationName).includes("chatbot-greeting-logo-spin")) {
420
+ return;
421
+ }
422
+ setEntrancePhase("title");
423
+ },
424
+ children: /* @__PURE__ */ jsx("img", { alt: "", src: SmartBotIcon })
425
+ }
426
+ ),
427
+ /* @__PURE__ */ jsxs("h1", { "aria-label": titleAriaLabel, className: "chatbot-greeting-title", children: [
428
+ typedTitle.greetingPart ? /* @__PURE__ */ jsx("span", { className: "chatbot-greeting-title-text", children: typedTitle.greetingPart }) : null,
429
+ typedTitle.namePart ? /* @__PURE__ */ jsx("span", { className: "chatbot-greeting-title-name", children: typedTitle.namePart }) : null,
430
+ typedTitle.iconPart ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "chatbot-greeting-title-sun", children: typedTitle.iconPart }) : null
431
+ ] }),
432
+ /* @__PURE__ */ jsx("p", { "aria-label": introText, className: "chatbot-greeting-subtitle", children: typedSubtitle })
433
+ ]
434
+ }
435
+ ),
436
+ /* @__PURE__ */ jsx(
437
+ "div",
438
+ {
439
+ className: `chatbot-greeting-composer-wrap${entranceDone ? " is-revealed" : ""}`,
440
+ children: /* @__PURE__ */ jsx(
441
+ ChatbotComposer,
442
+ {
443
+ customInputComponent,
444
+ handleMicClick,
445
+ inputValue,
446
+ isStopIcon: isThinking,
447
+ modelOptions,
448
+ selectedModel,
449
+ setInputValue,
450
+ onAddClick,
451
+ onAttachClick,
452
+ onModelChange,
453
+ onSend: handleSend,
454
+ onStop: handleStop
455
+ }
456
+ )
457
+ }
458
+ ),
459
+ !isConversation && (isSuggestedPromptsLoading || suggestedPrompts.length > 0) && /* @__PURE__ */ jsxs(
460
+ "section",
461
+ {
462
+ "aria-busy": isSuggestedPromptsLoading || void 0,
463
+ "aria-hidden": !showSuggested || !entranceDone,
464
+ "aria-label": t("chatBot.suggested.label"),
465
+ className: `chatbot-greeting-suggested${entranceDone ? " is-revealed" : ""}${showSuggested ? "" : " is-hidden"}`,
466
+ children: [
467
+ /* @__PURE__ */ jsx("h2", { className: "chatbot-greeting-suggested-label", children: t("chatBot.suggested.label") }),
468
+ isSuggestedPromptsLoading ? /* @__PURE__ */ jsx(
469
+ "div",
470
+ {
471
+ "aria-live": "polite",
472
+ className: "chatbot-greeting-suggested-skeleton",
473
+ "data-testid": "suggested-prompts-skeleton",
474
+ children: Array.from({ length: SUGGESTED_SKELETON_COUNT }, (_, index) => /* @__PURE__ */ jsx(
475
+ Skeleton,
476
+ {
477
+ className: "chatbot-greeting-suggested-skeleton-item",
478
+ height: 20,
479
+ variant: "rounded",
480
+ width: `${88 - index % 3 * 10}%`
481
+ },
482
+ index
483
+ ))
484
+ }
485
+ ) : /* @__PURE__ */ jsx("ul", { className: "chatbot-greeting-suggested-list", children: suggestedPrompts.map((prompt) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
486
+ "button",
487
+ {
488
+ className: "chatbot-greeting-suggested-item",
489
+ disabled: !showSuggested || !entranceDone,
490
+ tabIndex: showSuggested && entranceDone ? 0 : -1,
491
+ type: "button",
492
+ onClick: () => {
493
+ setInputValue(prompt.label);
494
+ onSuggestedPromptClick == null ? void 0 : onSuggestedPromptClick(prompt);
495
+ },
496
+ children: [
497
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "chatbot-greeting-suggested-icon", children: "↳" }),
498
+ /* @__PURE__ */ jsx("span", { className: "chatbot-greeting-suggested-text", children: prompt.label })
499
+ ]
500
+ }
501
+ ) }, prompt.id)) })
502
+ ]
503
+ }
504
+ )
505
+ ] })
506
+ ] }),
507
+ /* @__PURE__ */ jsx(
508
+ ChatBotFooter,
509
+ {
510
+ footerLinkLabel: onFooterLinkClick ? t("chatBot.footerLearnMore") : void 0,
511
+ footerText,
512
+ onFooterLinkClick
513
+ }
514
+ )
515
+ ]
516
+ }
517
+ );
93
518
  }
94
519
  export {
95
520
  NewChatComponent
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(90deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(270deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#e8edf5;background-image:linear-gradient(0deg,#e8edf5,#eceef4 22%,#e8edf5 48%,#d5dbe8 62%,#e8edf5);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#e8edf5,#eceef4 40%,#d5dbe8);background-size:100% 100%}}.ia-shimmer--circular{background-color:#e8edf5;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#eceef4 0deg,#e8edf5 80deg,#d5dbe8 160deg,#e8edf5 260deg,#eceef4 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#eceef4,#e8edf5,#d5dbe8,#e8edf5 1turn)}}.impact-chip-container .MuiChip-filled{background:#fff;border:1px solid #d9dde7;border-radius:12px;cursor:pointer;height:32px;min-width:83px;padding:6px 12px}.impact-chip-container .MuiChip-filled:focus-visible{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none;transition:box-shadow .15s ease-in-out}.impact-chip-container .MuiChip-filled:focus:not(:focus-visible){box-shadow:none;outline:none}.impact-chip-container .MuiChip-filled.Mui-disabled:focus-visible,.impact-chip-container .MuiChip-filled.ia-btn-disabled:focus-visible,.impact-chip-container .MuiChip-filled.ia-switch-disabled:focus-visible,.impact-chip-container .MuiChip-filled.impact-select-disabled:focus-visible,.impact-chip-container .MuiChip-filled.impact_input_disabled:focus-visible,.impact-chip-container .MuiChip-filled.route-disabled:focus-visible,.impact-chip-container .MuiChip-filled:disabled:focus-visible,.impact-chip-container .MuiChip-filled[aria-disabled=true]:focus-visible{box-shadow:none;outline:none}.impact-chip-container .MuiChip-filled:hover{background:#eceefd;border-color:#3649c6}.impact-chip-container .MuiChip-filled:hover .MuiChip-label{color:#3649c6}.impact-chip-container .MuiChip-filled.Mui-focusVisible{background:#fff}.impact-chip-container .MuiChip-filled:active{background:#fff;border-color:#4259ee}.impact-chip-container .MuiChip-filled .MuiChip-label{color:#60697d;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding-inline:4px}.impact-chip-container .Mui-disabled{background:#f8f9fb;border-color:#d9dde7;border:1px solid #d9dde7!important;opacity:1}.impact-chip-container .Mui-disabled .MuiChip-label{color:#b4bac7}.impact-chip-container.single:not(.selected) .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButton.svg);background-position:left 12px center;background-repeat:no-repeat;flex-direction:row-reverse}.impact-chip-container.single:not(.selected) .MuiChip-filled .MuiChip-label{margin-bottom:1px;margin-left:20px}.impact-chip-container.single:not(.selected) .MuiChip-filled:hover{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonChipHover.svg)}.impact-chip-container.single:not(.selected) .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonChipDisable.svg)}.impact-chip-container.single.selected .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonFilledChip.svg);background-position:left 12px center;background-repeat:no-repeat}.impact-chip-container.single.selected .MuiChip-filled .MuiChip-label{margin-bottom:1px;margin-left:20px}.impact-chip-container.single.selected .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonFilledDisable.svg);background-position:left 12px center;background-repeat:no-repeat;border:1px solid #b3bdf8!important}.impact-chip-container.single.selected .Mui-disabled .MuiChip-label{color:#b3bdf8!important}.impact-chip-container.multi .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChip.svg);background-position:left 12px center;background-repeat:no-repeat;flex-direction:row-reverse}.impact-chip-container.multi .MuiChip-filled .MuiChip-label{margin-bottom:1px;margin-left:16px}.impact-chip-container.multi .MuiChip-filled:hover{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChipHover.svg)}.impact-chip-container.multi .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChipDisable.svg)}.impact-chip-container.multi.selected .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChipHover.svg)}.impact-chip-container.multi.selected .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkActiveDisable.svg);background-position:left 12px center;background-repeat:no-repeat;border:1px solid #b3bdf8!important}.impact-chip-container.multi.selected .Mui-disabled .MuiChip-label{color:#b3bdf8!important}.impact-chip-container.selected .MuiChip-filled{border-color:#4259ee;flex-direction:row-reverse}.impact-chip-container.selected .MuiChip-filled .MuiChip-label{color:#4259ee}')),document.head.appendChild(i)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var i=document.createElement("style");i.appendChild(document.createTextNode('@keyframes ia-shimmer-horizontal{0%{background-position:100% 0}to{background-position:0 0}}@keyframes ia-shimmer-vertical{0%{background-position:0 100%}to{background-position:0 0}}@property --ia-shimmer-angle{syntax:"<angle>";inherits:false;initial-value:0deg}@keyframes ia-shimmer-circular{0%{--ia-shimmer-angle:0deg}to{--ia-shimmer-angle:360deg}}.ia-shimmer{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#cacbcc33;background-image:linear-gradient(90deg,#cacbcc33,#cacbcc99 22%,#cacbcc33 48%,#cacbcc1a 62%,#cacbcc33);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer{animation:none;background-image:linear-gradient(90deg,#cacbcc33,#cacbcc99 40%,#cacbcc1a);background-size:100% 100%}}.ia-shimmer--ltr{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:normal;background-color:#cacbcc33;background-image:linear-gradient(90deg,#cacbcc33,#cacbcc99 22%,#cacbcc33 48%,#cacbcc1a 62%,#cacbcc33);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ltr{animation:none;background-image:linear-gradient(90deg,#cacbcc33,#cacbcc99 40%,#cacbcc1a);background-size:100% 100%}}.ia-shimmer--rtl{animation:ia-shimmer-horizontal 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#cacbcc33;background-image:linear-gradient(270deg,#cacbcc33,#cacbcc99 22%,#cacbcc33 48%,#cacbcc1a 62%,#cacbcc33);background-repeat:no-repeat;background-size:300% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--rtl{animation:none;background-image:linear-gradient(270deg,#cacbcc33,#cacbcc99 40%,#cacbcc1a);background-size:100% 100%}}.ia-shimmer--btt{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:reverse;background-color:#cacbcc33;background-image:linear-gradient(0deg,#cacbcc33,#cacbcc99 22%,#cacbcc33 48%,#cacbcc1a 62%,#cacbcc33);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--btt{animation:none;background-image:linear-gradient(0deg,#cacbcc33,#cacbcc99 40%,#cacbcc1a);background-size:100% 100%}}.ia-shimmer--ttb{animation:ia-shimmer-vertical 1.6s ease-in-out infinite;animation-direction:normal;background-color:#cacbcc33;background-image:linear-gradient(0deg,#cacbcc33,#cacbcc99 22%,#cacbcc33 48%,#cacbcc1a 62%,#cacbcc33);background-repeat:no-repeat;background-size:100% 300%}@media (prefers-reduced-motion:reduce){.ia-shimmer--ttb{animation:none;background-image:linear-gradient(0deg,#cacbcc33,#cacbcc99 40%,#cacbcc1a);background-size:100% 100%}}.ia-shimmer--circular{background-color:#cacbcc33;background-repeat:no-repeat;--ia-shimmer-angle:0deg;animation:ia-shimmer-circular 1.6s linear infinite;background-image:conic-gradient(from var(--ia-shimmer-angle),#cacbcc99 0deg,#cacbcc33 80deg,#cacbcc1a 160deg,#cacbcc33 260deg,#cacbcc99 1turn);background-size:100% 100%}@media (prefers-reduced-motion:reduce){.ia-shimmer--circular{animation:none;background-image:conic-gradient(from 0deg,#cacbcc99,#cacbcc33,#cacbcc1a,#cacbcc33 1turn)}}.impact-chip-container .MuiChip-filled{background:#fff;border:1px solid #d9dde7;border-radius:12px;cursor:pointer;height:32px;min-width:83px;padding:6px 12px}.impact-chip-container .MuiChip-filled:focus-visible{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none;transition:box-shadow .15s ease-in-out}.impact-chip-container .MuiChip-filled:focus:not(:focus-visible){box-shadow:none;outline:none}.impact-chip-container .MuiChip-filled.Mui-disabled:focus-visible,.impact-chip-container .MuiChip-filled.ia-btn-disabled:focus-visible,.impact-chip-container .MuiChip-filled.ia-switch-disabled:focus-visible,.impact-chip-container .MuiChip-filled.impact-select-disabled:focus-visible,.impact-chip-container .MuiChip-filled.impact_input_disabled:focus-visible,.impact-chip-container .MuiChip-filled.route-disabled:focus-visible,.impact-chip-container .MuiChip-filled:disabled:focus-visible,.impact-chip-container .MuiChip-filled[aria-disabled=true]:focus-visible{box-shadow:none;outline:none}.impact-chip-container .MuiChip-filled:hover{background:#eceefd;border-color:#3649c6}.impact-chip-container .MuiChip-filled:hover .MuiChip-label{color:#3649c6}.impact-chip-container .MuiChip-filled.Mui-focusVisible{background:#fff}.impact-chip-container .MuiChip-filled:active{background:#fff;border-color:#4259ee}.impact-chip-container .MuiChip-filled .MuiChip-label{color:#60697d;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding-inline:4px}.impact-chip-container .Mui-disabled{background:#f8f9fb;border-color:#d9dde7;border:1px solid #d9dde7!important;opacity:1}.impact-chip-container .Mui-disabled .MuiChip-label{color:#b4bac7}.impact-chip-container.single:not(.selected) .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButton.svg);background-position:left 12px center;background-repeat:no-repeat;flex-direction:row-reverse}.impact-chip-container.single:not(.selected) .MuiChip-filled .MuiChip-label{margin-bottom:1px;margin-left:20px}.impact-chip-container.single:not(.selected) .MuiChip-filled:hover{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonChipHover.svg)}.impact-chip-container.single:not(.selected) .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonChipDisable.svg)}.impact-chip-container.single.selected .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonFilledChip.svg);background-position:left 12px center;background-repeat:no-repeat}.impact-chip-container.single.selected .MuiChip-filled .MuiChip-label{margin-bottom:1px;margin-left:20px}.impact-chip-container.single.selected .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/radioButtonFilledDisable.svg);background-position:left 12px center;background-repeat:no-repeat;border:1px solid #b3bdf8!important}.impact-chip-container.single.selected .Mui-disabled .MuiChip-label{color:#b3bdf8!important}.impact-chip-container.multi .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChip.svg);background-position:left 12px center;background-repeat:no-repeat;flex-direction:row-reverse}.impact-chip-container.multi .MuiChip-filled .MuiChip-label{margin-bottom:1px;margin-left:16px}.impact-chip-container.multi .MuiChip-filled:hover{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChipHover.svg)}.impact-chip-container.multi .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChipDisable.svg)}.impact-chip-container.multi.selected .MuiChip-filled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkChipHover.svg)}.impact-chip-container.multi.selected .Mui-disabled{background-image:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/checkMarkActiveDisable.svg);background-position:left 12px center;background-repeat:no-repeat;border:1px solid #b3bdf8!important}.impact-chip-container.multi.selected .Mui-disabled .MuiChip-label{color:#b3bdf8!important}.impact-chip-container.selected .MuiChip-filled{border-color:#4259ee;flex-direction:row-reverse}.impact-chip-container.selected .MuiChip-filled .MuiChip-label{color:#4259ee}')),document.head.appendChild(i)}}catch(c){console.error("vite-plugin-css-injected-by-js",c)}}();
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { forwardRef, useMemo } from "react";
4
4