impact-ui 5.0.4 → 5.0.5-alpha.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 (188) 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/index4.js +4 -2
  10. package/dist/_virtual/index5.js +3 -3
  11. package/dist/_virtual/index6.js +2 -4
  12. package/dist/components/AccordionModern/index.js +1 -1
  13. package/dist/components/Badge/index.js +1 -1
  14. package/dist/components/Breadcrumbs/index.js +1 -1
  15. package/dist/components/Button/index.js +1 -1
  16. package/dist/components/ButtonGroup/index.js +1 -1
  17. package/dist/components/Chart/index.d.ts.map +1 -1
  18. package/dist/components/Chart/index.js +105 -4
  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 +229 -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 +500 -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 +66 -264
  140. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +1290 -85
  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/node_modules/react-is/index.js +1 -1
  151. package/dist/stories/chatBotApiMock.d.ts +91 -0
  152. package/dist/stories/chatBotApiMock.d.ts.map +1 -0
  153. package/dist/styles/style.css +1 -1
  154. package/package.json +2 -2
  155. package/dist/_virtual/MoreVert.js +0 -4
  156. package/dist/_virtual/RemoveRounded.js +0 -4
  157. package/dist/_virtual/SaveOutlined.js +0 -4
  158. package/dist/components/Chatbot/bookMarkPanel.d.ts +0 -4
  159. package/dist/components/Chatbot/bookMarkPanel.d.ts.map +0 -1
  160. package/dist/components/Chatbot/bookMarkPanel.js +0 -64
  161. package/dist/components/Chatbot/chatBotLandingScreen.d.ts +0 -4
  162. package/dist/components/Chatbot/chatBotLandingScreen.d.ts.map +0 -1
  163. package/dist/components/Chatbot/chatBotLandingScreen.js +0 -24
  164. package/dist/components/Chatbot/chatInput.d.ts +0 -4
  165. package/dist/components/Chatbot/chatInput.d.ts.map +0 -1
  166. package/dist/components/Chatbot/chatInput.js +0 -198
  167. package/dist/components/Chatbot/chatbotModuleMenu.d.ts +0 -4
  168. package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +0 -1
  169. package/dist/components/Chatbot/chatbotModuleMenu.js +0 -248
  170. package/dist/components/Chatbot/constant.d.ts +0 -6
  171. package/dist/components/Chatbot/constant.d.ts.map +0 -1
  172. package/dist/components/Chatbot/constant.js +0 -27
  173. package/dist/components/Chatbot/conversationScreen.d.ts +0 -4
  174. package/dist/components/Chatbot/conversationScreen.d.ts.map +0 -1
  175. package/dist/components/Chatbot/conversationScreen.js +0 -207
  176. package/dist/components/Chatbot/customScreen.d.ts +0 -4
  177. package/dist/components/Chatbot/customScreen.d.ts.map +0 -1
  178. package/dist/components/Chatbot/customScreen.js +0 -66
  179. package/dist/components/Chatbot/historyPanel.d.ts +0 -4
  180. package/dist/components/Chatbot/historyPanel.d.ts.map +0 -1
  181. package/dist/components/Chatbot/historyPanel.js +0 -374
  182. package/dist/components/Chatbot/utils.d.ts +0 -5
  183. package/dist/components/Chatbot/utils.d.ts.map +0 -1
  184. package/dist/components/Chatbot/utils.js +0 -29
  185. package/dist/node_modules/@mui/icons-material/MoreVert.js +0 -17
  186. package/dist/node_modules/@mui/icons-material/RemoveRounded.js +0 -17
  187. package/dist/node_modules/@mui/icons-material/SaveOutlined.js +0 -17
  188. package/dist/utils/onResize.js +0 -28
@@ -1,95 +1,523 @@
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
+ let text = message.text;
96
+ if ((text == null || text === "") && message.bodyText != null && message.bodyText !== "") {
97
+ text = message.bodyText;
98
+ }
99
+ const isUser = message.role === "user" || message.userType === "user";
100
+ return {
101
+ ...message,
102
+ text,
103
+ timestamp: message.timestamp ?? message.timeStamp,
104
+ role: isUser ? "user" : "assistant",
105
+ userType: isUser ? "user" : "bot"
106
+ };
107
+ }
15
108
  function NewChatComponent({
16
- onClose: _onClose,
109
+ onClose,
17
110
  userName,
111
+ greetingWeather,
112
+ autoGreetingWeather = false,
113
+ greetingIcon,
18
114
  inputValue,
19
115
  setInputValue,
20
- setIsNewChat,
21
- onSendIconClick,
22
- userChats,
23
- setUserChats,
24
- moduleList: _moduleList,
25
- onModuleClick: _onModuleClick,
26
- activeList,
27
- handleRefresh,
28
- handleSaveChat,
29
116
  handleMicClick,
30
- hideMenuArrow: _hideMenuArrow,
31
- isModuleListLoading: _isModuleListLoading,
32
- suggestionBanner,
33
- isStopIcon,
34
- onStopIconClick,
35
- onCloseSuggestionBanner,
36
- showSuggestionBanner,
37
117
  customInputComponent,
38
- footerText
118
+ footerText,
119
+ suggestedPrompts = [],
120
+ isSuggestedPromptsLoading = false,
121
+ onSuggestedPromptClick,
122
+ modelOptions,
123
+ selectedModel,
124
+ onModelChange,
125
+ onAddClick,
126
+ onAttachClick,
127
+ onMenuClick,
128
+ onFooterLinkClick,
129
+ onToggleCollapse,
130
+ onMinimiseChatBot,
131
+ onEnterFloating,
132
+ onEnterFullScreen,
133
+ onExitFullScreen,
134
+ isFullScreen = false,
135
+ onSendIconClick,
136
+ onNewChatClick,
137
+ isStopIcon = false,
138
+ onStopIconClick,
139
+ isAssistantThinking = false,
140
+ thinking,
141
+ isCollapsed = false,
142
+ isFloating = false,
143
+ isFullWidth = false,
144
+ dragHandleProps,
145
+ conversation,
146
+ historyPanelData = [],
147
+ artifacts = [],
148
+ isRecentChatsLoading = false,
149
+ isArtifactsLoading = false,
150
+ onHistorySelectConversation,
151
+ onSelectArtifact,
152
+ onIrisMenuFilterSelect,
153
+ onHistoryMenuAction,
154
+ onArtifactMenuAction,
155
+ onLikeClick,
156
+ onDislikeClick,
157
+ onRegenerateClick,
158
+ onSpeakClick,
159
+ onRevertClick,
160
+ defaultAssistantActions
39
161
  }) {
162
+ var _a;
40
163
  const { t } = useTranslation();
41
- const [loading, setLoading] = useState(true);
42
- const [greeting, setGreeting] = useState(() => getGreeting(t));
164
+ const greetingPeriod = getGreetingPeriod();
165
+ const [resolvedWeather, setResolvedWeather] = useState(
166
+ () => greetingWeather ?? "clear"
167
+ );
168
+ const titleIcon = getTitleIcon(
169
+ getGreetingIconGlyph(greetingPeriod, resolvedWeather, greetingIcon)
170
+ );
171
+ const [greeting, setGreeting] = useState(() => getGreeting(t, greetingPeriod));
172
+ const [messages, setMessages] = useState([]);
173
+ const [isWaiting, setIsWaiting] = useState(false);
174
+ const [irisView, setIrisView] = useState("chat");
175
+ const [entrancePhase, setEntrancePhase] = useState(
176
+ () => shouldSkipEntranceAnimation() ? "done" : "logo"
177
+ );
178
+ const [typedTitleLen, setTypedTitleLen] = useState(
179
+ () => shouldSkipEntranceAnimation() ? getTitleLength(getGreeting(t, greetingPeriod), userName, titleIcon) : 0
180
+ );
181
+ const [typedSubtitleLen, setTypedSubtitleLen] = useState(
182
+ () => shouldSkipEntranceAnimation() ? t("chatBot.irisIntro").length : 0
183
+ );
184
+ const hasDraft = inputValue.trim().length > 0;
185
+ const showSuggested = !hasDraft && (isSuggestedPromptsLoading || suggestedPrompts.length > 0);
186
+ const isConversation = messages.length > 0;
187
+ const isThinking = isConversation && (isAssistantThinking || isStopIcon || isWaiting);
188
+ const conversationTitle = truncateTitle(
189
+ typeof ((_a = messages[0]) == null ? void 0 : _a.text) === "string" ? messages[0].text : t("chatBot.greeting.brand")
190
+ );
191
+ const isMenuOpen = irisView !== "chat";
192
+ const introText = t("chatBot.irisIntro");
193
+ const titleFullLen = useMemo(
194
+ () => getTitleLength(greeting, userName, titleIcon),
195
+ [greeting, userName, titleIcon]
196
+ );
197
+ const entranceDone = isConversation || entrancePhase === "done";
198
+ const typedTitle = splitTypedTitle(greeting, userName, typedTitleLen, titleIcon);
199
+ const typedSubtitle = introText.slice(0, typedSubtitleLen);
200
+ const titleAriaLabel = `${greeting}${getNamePart(userName)}${titleIcon}`.trim();
201
+ useEffect(() => {
202
+ setGreeting(getGreeting(t, getGreetingPeriod()));
203
+ }, [t]);
43
204
  useEffect(() => {
44
- const timer = setTimeout(() => {
45
- setLoading(false);
46
- }, 450);
205
+ if (greetingWeather != null) {
206
+ setResolvedWeather(greetingWeather);
207
+ return;
208
+ }
209
+ if (!autoGreetingWeather || greetingIcon || false) {
210
+ setResolvedWeather("clear");
211
+ return;
212
+ }
213
+ const controller = new AbortController();
214
+ let cancelled = false;
215
+ void fetchGreetingWeather({ signal: controller.signal }).then((weather) => {
216
+ if (!cancelled) setResolvedWeather(weather);
217
+ }).catch(() => {
218
+ if (!cancelled) setResolvedWeather("clear");
219
+ });
47
220
  return () => {
48
- clearTimeout(timer);
221
+ cancelled = true;
222
+ controller.abort();
49
223
  };
50
- }, []);
224
+ }, [greetingWeather, autoGreetingWeather, greetingIcon]);
51
225
  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,
226
+ if (entrancePhase !== "done") return;
227
+ setTypedTitleLen(getTitleLength(greeting, userName, titleIcon));
228
+ setTypedSubtitleLen(introText.length);
229
+ }, [entrancePhase, greeting, userName, introText, titleIcon]);
230
+ useEffect(() => {
231
+ const remote = extractHostMessages(conversation);
232
+ if (remote === void 0) return;
233
+ setMessages((local) => {
234
+ if (remote.length === 0) return [];
235
+ if (remote.length >= local.length) return remote.map(toIrisMessage);
236
+ return local;
237
+ });
238
+ if (remote.length > 0) setIsWaiting(false);
239
+ }, [conversation]);
240
+ useEffect(() => {
241
+ if (isConversation || entrancePhase !== "logo") return;
242
+ const id = window.setTimeout(() => setEntrancePhase("title"), 800);
243
+ return () => window.clearTimeout(id);
244
+ }, [entrancePhase, isConversation]);
245
+ useEffect(() => {
246
+ if (isConversation || entrancePhase !== "title") return;
247
+ if (typedTitleLen >= titleFullLen) {
248
+ setEntrancePhase("subtitle");
249
+ return;
250
+ }
251
+ const id = window.setTimeout(() => {
252
+ setTypedTitleLen((len) => len + 1);
253
+ }, TYPEWRITER_MS);
254
+ return () => window.clearTimeout(id);
255
+ }, [entrancePhase, typedTitleLen, titleFullLen, isConversation]);
256
+ useEffect(() => {
257
+ if (isConversation || entrancePhase !== "subtitle") return;
258
+ if (typedSubtitleLen >= introText.length) {
259
+ setEntrancePhase("done");
260
+ return;
261
+ }
262
+ const id = window.setTimeout(() => {
263
+ setTypedSubtitleLen((len) => len + 1);
264
+ }, TYPEWRITER_MS);
265
+ return () => window.clearTimeout(id);
266
+ }, [entrancePhase, typedSubtitleLen, introText.length, isConversation]);
267
+ const showGreetingWithoutEntrance = () => {
268
+ setEntrancePhase("done");
269
+ setTypedTitleLen(getTitleLength(greeting, userName, titleIcon));
270
+ setTypedSubtitleLen(introText.length);
271
+ };
272
+ const handleSend = () => {
273
+ const text = inputValue.trim();
274
+ if (!text) return;
275
+ const message = {
276
+ id: `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
277
+ text,
278
+ role: "user",
279
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
280
+ };
281
+ setMessages((prev) => [...prev, message]);
282
+ setIsWaiting(true);
283
+ setInputValue("");
284
+ onSendIconClick == null ? void 0 : onSendIconClick(message);
285
+ };
286
+ const handleEditUserMessage = (_message, index, nextText) => {
287
+ const text = nextText.trim();
288
+ if (!text) return;
289
+ const message = {
290
+ id: `${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
291
+ text,
292
+ role: "user",
293
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
294
+ };
295
+ setMessages((prev) => [...prev.slice(0, index), message]);
296
+ setIsWaiting(true);
297
+ setInputValue("");
298
+ onSendIconClick == null ? void 0 : onSendIconClick(message);
299
+ };
300
+ const handleStop = () => {
301
+ setIsWaiting(false);
302
+ onStopIconClick == null ? void 0 : onStopIconClick();
303
+ };
304
+ const resetToGreeting = () => {
305
+ showGreetingWithoutEntrance();
306
+ setMessages([]);
307
+ setIsWaiting(false);
308
+ setInputValue("");
309
+ setIrisView("chat");
310
+ onNewChatClick == null ? void 0 : onNewChatClick();
311
+ };
312
+ const handleOpenMenu = () => {
313
+ setIrisView("menu");
314
+ onMenuClick == null ? void 0 : onMenuClick();
315
+ };
316
+ const handleMenuBack = () => {
317
+ if (irisView === "recent-chats" || irisView === "artifacts") {
318
+ setIrisView("menu");
319
+ return;
320
+ }
321
+ setIrisView("chat");
322
+ };
323
+ const handleViewMore = (section) => {
324
+ setIrisView(section === "artifacts" ? "artifacts" : "recent-chats");
325
+ };
326
+ const handleSelectConversation = (item) => {
327
+ setIrisView("chat");
328
+ onHistorySelectConversation == null ? void 0 : onHistorySelectConversation(item);
329
+ };
330
+ const handleSelectArtifact = (item) => {
331
+ setIrisView("chat");
332
+ onSelectArtifact == null ? void 0 : onSelectArtifact(item);
333
+ };
334
+ if (isMenuOpen) {
335
+ return /* @__PURE__ */ jsx(
336
+ IrisMenuScreen,
70
337
  {
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
338
+ artifacts,
339
+ dragHandleProps,
340
+ footerText,
341
+ historyPanelData,
342
+ isArtifactsLoading,
343
+ isCollapsed,
344
+ isFloating,
345
+ isFullScreen,
346
+ isFullWidth,
347
+ isRecentChatsLoading,
348
+ view: irisView,
349
+ onBackClick: handleMenuBack,
350
+ onClose,
351
+ onEnterFloating,
352
+ onEnterFullScreen,
353
+ onExitFullScreen,
354
+ onFilterSelect: onIrisMenuFilterSelect,
355
+ onFooterLinkClick,
356
+ onMinimiseChatBot,
357
+ onNewChatClick: resetToGreeting,
358
+ onArtifactMenuAction,
359
+ onChatMenuAction: (action, item) => onHistoryMenuAction == null ? void 0 : onHistoryMenuAction(action, item),
360
+ onSelectArtifact: handleSelectArtifact,
361
+ onSelectConversation: handleSelectConversation,
362
+ onToggleCollapse,
363
+ onViewMore: handleViewMore
89
364
  }
90
- ) }),
91
- /* @__PURE__ */ jsx(ChatBotFooter, { footerText })
92
- ] }) });
365
+ );
366
+ }
367
+ return /* @__PURE__ */ jsxs(
368
+ "div",
369
+ {
370
+ className: `chatbot-greeting${isCollapsed ? " is-collapsed" : ""}${isConversation ? " is-conversation" : ""}${isFullScreen ? " is-full-screen" : ""}`,
371
+ children: [
372
+ /* @__PURE__ */ jsx(
373
+ ChatbotGreetingHeader,
374
+ {
375
+ dragHandleProps,
376
+ isCollapsed,
377
+ isFloating,
378
+ isFullScreen,
379
+ isFullWidth,
380
+ title: isConversation ? conversationTitle : void 0,
381
+ variant: isConversation ? "conversation" : "greeting",
382
+ onClose,
383
+ onEnterFloating,
384
+ onEnterFullScreen,
385
+ onExitFullScreen,
386
+ onMenuClick: handleOpenMenu,
387
+ onMinimiseChatBot,
388
+ onNewChatClick: isConversation ? resetToGreeting : void 0,
389
+ onToggleCollapse
390
+ }
391
+ ),
392
+ /* @__PURE__ */ jsxs("main", { className: "chatbot-greeting-main", children: [
393
+ !isConversation && /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "chatbot-greeting-hero", children: /* @__PURE__ */ jsx(IrisGreetingBackdrop, { className: "chatbot-greeting-hero-image" }) }),
394
+ /* @__PURE__ */ jsxs("div", { className: "chatbot-greeting-content", children: [
395
+ isConversation ? /* @__PURE__ */ jsx(
396
+ IrisConversationThread,
397
+ {
398
+ defaultAssistantActions,
399
+ isThinking,
400
+ messages,
401
+ thinking: thinking ?? (isWaiting && !isAssistantThinking && !isStopIcon ? { phase: "status" } : void 0),
402
+ onDislikeAssistantMessage: onDislikeClick,
403
+ onEditUserMessage: handleEditUserMessage,
404
+ onLikeAssistantMessage: onLikeClick,
405
+ onRegenerateAssistantMessage: onRegenerateClick,
406
+ onRevertAssistantMessage: onRevertClick,
407
+ onSpeakAssistantMessage: onSpeakClick
408
+ }
409
+ ) : /* @__PURE__ */ jsxs(
410
+ "div",
411
+ {
412
+ "aria-busy": entrancePhase !== "done",
413
+ className: "chatbot-greeting-intro",
414
+ children: [
415
+ /* @__PURE__ */ jsx(
416
+ "div",
417
+ {
418
+ className: `chatbot-greeting-logo${entrancePhase === "logo" ? " chatbot-greeting-logo--spin" : ""}`,
419
+ onAnimationEnd: (event) => {
420
+ if (event.target !== event.currentTarget) return;
421
+ if (entrancePhase !== "logo") return;
422
+ if (!String(event.animationName).includes("chatbot-greeting-logo-spin")) {
423
+ return;
424
+ }
425
+ setEntrancePhase("title");
426
+ },
427
+ children: /* @__PURE__ */ jsx("img", { alt: "", src: SmartBotIcon })
428
+ }
429
+ ),
430
+ /* @__PURE__ */ jsxs("h1", { "aria-label": titleAriaLabel, className: "chatbot-greeting-title", children: [
431
+ typedTitle.greetingPart ? /* @__PURE__ */ jsx("span", { className: "chatbot-greeting-title-text", children: typedTitle.greetingPart }) : null,
432
+ typedTitle.namePart ? /* @__PURE__ */ jsx("span", { className: "chatbot-greeting-title-name", children: typedTitle.namePart }) : null,
433
+ typedTitle.iconPart ? /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "chatbot-greeting-title-sun", children: typedTitle.iconPart }) : null
434
+ ] }),
435
+ /* @__PURE__ */ jsx("p", { "aria-label": introText, className: "chatbot-greeting-subtitle", children: typedSubtitle })
436
+ ]
437
+ }
438
+ ),
439
+ /* @__PURE__ */ jsx(
440
+ "div",
441
+ {
442
+ className: `chatbot-greeting-composer-wrap${entranceDone ? " is-revealed" : ""}`,
443
+ children: /* @__PURE__ */ jsx(
444
+ ChatbotComposer,
445
+ {
446
+ customInputComponent,
447
+ handleMicClick,
448
+ inputValue,
449
+ isStopIcon: isThinking,
450
+ modelOptions,
451
+ selectedModel,
452
+ setInputValue,
453
+ onAddClick,
454
+ onAttachClick,
455
+ onModelChange,
456
+ onSend: handleSend,
457
+ onStop: handleStop
458
+ }
459
+ )
460
+ }
461
+ ),
462
+ !isConversation && (isSuggestedPromptsLoading || suggestedPrompts.length > 0) && /* @__PURE__ */ jsxs(
463
+ "section",
464
+ {
465
+ "aria-busy": isSuggestedPromptsLoading || void 0,
466
+ "aria-hidden": !showSuggested || !entranceDone,
467
+ "aria-label": t("chatBot.suggested.label"),
468
+ className: `chatbot-greeting-suggested${entranceDone ? " is-revealed" : ""}${showSuggested ? "" : " is-hidden"}`,
469
+ children: [
470
+ /* @__PURE__ */ jsx("h2", { className: "chatbot-greeting-suggested-label", children: t("chatBot.suggested.label") }),
471
+ isSuggestedPromptsLoading ? /* @__PURE__ */ jsx(
472
+ "div",
473
+ {
474
+ "aria-live": "polite",
475
+ className: "chatbot-greeting-suggested-skeleton",
476
+ "data-testid": "suggested-prompts-skeleton",
477
+ children: Array.from({ length: SUGGESTED_SKELETON_COUNT }, (_, index) => /* @__PURE__ */ jsx(
478
+ Skeleton,
479
+ {
480
+ className: "chatbot-greeting-suggested-skeleton-item",
481
+ height: 20,
482
+ variant: "rounded",
483
+ width: `${88 - index % 3 * 10}%`
484
+ },
485
+ index
486
+ ))
487
+ }
488
+ ) : /* @__PURE__ */ jsx("ul", { className: "chatbot-greeting-suggested-list", children: suggestedPrompts.map((prompt) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
489
+ "button",
490
+ {
491
+ className: "chatbot-greeting-suggested-item",
492
+ disabled: !showSuggested || !entranceDone,
493
+ tabIndex: showSuggested && entranceDone ? 0 : -1,
494
+ type: "button",
495
+ onClick: () => {
496
+ setInputValue(prompt.label);
497
+ onSuggestedPromptClick == null ? void 0 : onSuggestedPromptClick(prompt);
498
+ },
499
+ children: [
500
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "chatbot-greeting-suggested-icon", children: "↳" }),
501
+ /* @__PURE__ */ jsx("span", { className: "chatbot-greeting-suggested-text", children: prompt.label })
502
+ ]
503
+ }
504
+ ) }, prompt.id)) })
505
+ ]
506
+ }
507
+ )
508
+ ] })
509
+ ] }),
510
+ /* @__PURE__ */ jsx(
511
+ ChatBotFooter,
512
+ {
513
+ footerLinkLabel: onFooterLinkClick ? t("chatBot.footerLearnMore") : void 0,
514
+ footerText,
515
+ onFooterLinkClick
516
+ }
517
+ )
518
+ ]
519
+ }
520
+ );
93
521
  }
94
522
  export {
95
523
  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