impact-ui 5.0.4-chatbot.1 → 5.0.4-chatbot.2

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 (147) hide show
  1. package/dist/_virtual/index2.js +2 -2
  2. package/dist/_virtual/index3.js +2 -2
  3. package/dist/_virtual/index4.js +4 -2
  4. package/dist/_virtual/index5.js +3 -3
  5. package/dist/_virtual/index6.js +2 -4
  6. package/dist/components/AccordionModern/index.js +1 -1
  7. package/dist/components/Badge/index.js +1 -1
  8. package/dist/components/Breadcrumbs/index.js +1 -1
  9. package/dist/components/Button/index.js +1 -1
  10. package/dist/components/ButtonGroup/index.js +1 -1
  11. package/dist/components/Chatbot/Chatbot.types.d.ts +79 -185
  12. package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
  13. package/dist/components/Chatbot/chatbotComposer.d.ts +1 -1
  14. package/dist/components/Chatbot/chatbotComposer.d.ts.map +1 -1
  15. package/dist/components/Chatbot/chatbotComposer.js +107 -5
  16. package/dist/components/Chatbot/chatbotGreetingHeader.d.ts +1 -1
  17. package/dist/components/Chatbot/chatbotGreetingHeader.d.ts.map +1 -1
  18. package/dist/components/Chatbot/chatbotGreetingHeader.js +21 -8
  19. package/dist/components/Chatbot/greetingWeather.d.ts +23 -0
  20. package/dist/components/Chatbot/greetingWeather.d.ts.map +1 -0
  21. package/dist/components/Chatbot/greetingWeather.js +81 -0
  22. package/dist/components/Chatbot/greetingWeather.test.d.ts +2 -0
  23. package/dist/components/Chatbot/greetingWeather.test.d.ts.map +1 -0
  24. package/dist/components/Chatbot/index.d.ts +5 -2
  25. package/dist/components/Chatbot/index.d.ts.map +1 -1
  26. package/dist/components/Chatbot/index.js +355 -436
  27. package/dist/components/Chatbot/irisConversationThread.d.ts.map +1 -1
  28. package/dist/components/Chatbot/irisConversationThread.js +56 -15
  29. package/dist/components/Chatbot/irisMenuScreen.d.ts +1 -1
  30. package/dist/components/Chatbot/irisMenuScreen.d.ts.map +1 -1
  31. package/dist/components/Chatbot/irisMenuScreen.js +157 -111
  32. package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
  33. package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
  34. package/dist/components/Chatbot/newChatComponent.js +137 -29
  35. package/dist/components/Chips/index.js +1 -1
  36. package/dist/components/CommentsPanel/CommentsPanel.impl.js +1 -1
  37. package/dist/components/DatePicker/index.js +1 -1
  38. package/dist/components/DateRangePicker/index.js +1 -1
  39. package/dist/components/FileUpload/index.js +1 -1
  40. package/dist/components/FilterPanel/index.js +1 -1
  41. package/dist/components/FiltersStrip/FilterSlider.js +1 -1
  42. package/dist/components/FiltersStrip/index.js +1 -1
  43. package/dist/components/Input/index.js +1 -1
  44. package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +1 -1
  45. package/dist/components/KeyboardShortCuts/ShortcutModal.js +1 -1
  46. package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
  47. package/dist/components/KeyboardShortCuts/index.js +1 -1
  48. package/dist/components/KeyboardShortCuts/tutorial.js +1 -1
  49. package/dist/components/Menu/IconMenuItem.js +1 -1
  50. package/dist/components/Menu/NestedMenuItem.js +1 -1
  51. package/dist/components/Menu/index.js +1 -1
  52. package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
  53. package/dist/components/Modal/index.js +1 -1
  54. package/dist/components/MonthPicker/index.js +1 -1
  55. package/dist/components/MonthRangePicker/index.js +1 -1
  56. package/dist/components/NewCreateItemFlow/index.js +1 -1
  57. package/dist/components/NewDynamicLayout/index.js +1 -1
  58. package/dist/components/OnboardingTour/index.js +1 -1
  59. package/dist/components/OnboardingTour/productTourList.js +1 -1
  60. package/dist/components/OnboardingTour/tooltipCard.js +1 -1
  61. package/dist/components/Panel/index.js +1 -1
  62. package/dist/components/Popover/index.js +1 -1
  63. package/dist/components/Prompt/index.js +1 -1
  64. package/dist/components/Select/index.js +1 -1
  65. package/dist/components/Stepper/index.js +1 -1
  66. package/dist/components/TableChat/EmptyContainer.js +1 -1
  67. package/dist/components/TableChat/TableChatSidePanel.js +1 -1
  68. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
  69. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.js +1 -1
  70. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
  71. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
  72. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +1 -1
  73. package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
  74. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +1 -1
  75. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.js +1 -1
  76. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +1 -1
  77. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
  78. package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
  79. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +1 -1
  80. package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
  81. package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
  82. package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
  83. package/dist/components/TableV36/index.js +1 -1
  84. package/dist/components/Tag/index.js +1 -1
  85. package/dist/components/TextArea/index.js +1 -1
  86. package/dist/components/common/MentionEditor/MentionList/index.js +1 -1
  87. package/dist/components/common/MentionEditor/index.js +1 -1
  88. package/dist/components/index.d.ts +3 -2
  89. package/dist/components/index.d.ts.map +1 -1
  90. package/dist/components/index.js +3 -0
  91. package/dist/hooks/useDraggableResizable.d.ts +11 -1
  92. package/dist/hooks/useDraggableResizable.d.ts.map +1 -1
  93. package/dist/hooks/useDraggableResizable.js +73 -59
  94. package/dist/locales/de-DE.json.d.ts +1 -32
  95. package/dist/locales/de-DE.json.js +1 -32
  96. package/dist/locales/en-US.json.d.ts +1 -32
  97. package/dist/locales/en-US.json.js +1 -32
  98. package/dist/locales/es-ES.json.d.ts +1 -32
  99. package/dist/locales/es-ES.json.js +1 -32
  100. package/dist/mcp-component-registry.json +49 -321
  101. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +13 -5
  102. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  103. package/dist/node_modules/prop-types/index.js +1 -1
  104. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  105. package/dist/node_modules/react-is/index.js +1 -1
  106. package/dist/stories/chatBotApiMock.d.ts +2 -387
  107. package/dist/stories/chatBotApiMock.d.ts.map +1 -1
  108. package/dist/styles/style.css +1 -1
  109. package/package.json +1 -1
  110. package/dist/_virtual/MoreVert.js +0 -4
  111. package/dist/_virtual/RemoveRounded.js +0 -4
  112. package/dist/_virtual/SaveOutlined.js +0 -4
  113. package/dist/_virtual/ThumbDownOutlined.js +0 -4
  114. package/dist/_virtual/ThumbUpOutlined.js +0 -4
  115. package/dist/components/Chatbot/bookMarkPanel.d.ts +0 -4
  116. package/dist/components/Chatbot/bookMarkPanel.d.ts.map +0 -1
  117. package/dist/components/Chatbot/bookMarkPanel.js +0 -64
  118. package/dist/components/Chatbot/chatBotLandingScreen.d.ts +0 -4
  119. package/dist/components/Chatbot/chatBotLandingScreen.d.ts.map +0 -1
  120. package/dist/components/Chatbot/chatBotLandingScreen.js +0 -24
  121. package/dist/components/Chatbot/chatInput.d.ts +0 -4
  122. package/dist/components/Chatbot/chatInput.d.ts.map +0 -1
  123. package/dist/components/Chatbot/chatInput.js +0 -198
  124. package/dist/components/Chatbot/chatbotModuleMenu.d.ts +0 -4
  125. package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +0 -1
  126. package/dist/components/Chatbot/chatbotModuleMenu.js +0 -248
  127. package/dist/components/Chatbot/constant.d.ts +0 -6
  128. package/dist/components/Chatbot/constant.d.ts.map +0 -1
  129. package/dist/components/Chatbot/constant.js +0 -27
  130. package/dist/components/Chatbot/conversationScreen.d.ts +0 -4
  131. package/dist/components/Chatbot/conversationScreen.d.ts.map +0 -1
  132. package/dist/components/Chatbot/conversationScreen.js +0 -209
  133. package/dist/components/Chatbot/customScreen.d.ts +0 -4
  134. package/dist/components/Chatbot/customScreen.d.ts.map +0 -1
  135. package/dist/components/Chatbot/customScreen.js +0 -66
  136. package/dist/components/Chatbot/historyPanel.d.ts +0 -4
  137. package/dist/components/Chatbot/historyPanel.d.ts.map +0 -1
  138. package/dist/components/Chatbot/historyPanel.js +0 -374
  139. package/dist/components/Chatbot/utils.d.ts +0 -5
  140. package/dist/components/Chatbot/utils.d.ts.map +0 -1
  141. package/dist/components/Chatbot/utils.js +0 -29
  142. package/dist/node_modules/@mui/icons-material/MoreVert.js +0 -17
  143. package/dist/node_modules/@mui/icons-material/RemoveRounded.js +0 -17
  144. package/dist/node_modules/@mui/icons-material/SaveOutlined.js +0 -17
  145. package/dist/node_modules/@mui/icons-material/ThumbDownOutlined.js +0 -17
  146. package/dist/node_modules/@mui/icons-material/ThumbUpOutlined.js +0 -17
  147. package/dist/utils/onResize.js +0 -28
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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)}}.MuiChip-root.impact-tag{border:1px solid #b3bdf8;color:#60697d}.MuiChip-root.impact-tag: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}.MuiChip-root.impact-tag:focus:not(:focus-visible){box-shadow:none;outline:none}.MuiChip-root.impact-tag.Mui-focusVisible{background:#eceefd}.MuiChip-root.impact-tag .MuiSvgIcon-root{color:#60697d;margin-left:10px;margin-right:-9px;width:16px}.MuiChip-root.impact-tag .MuiChip-deleteIcon{background-position:50%;background-size:16px;margin-left:-5px;margin-right:10px}.MuiChip-root.impact-tag-solid{background:#eceefd;border:none;border-radius:8px;color:#1f2b4d}.MuiChip-root.impact-tag-solid:hover{background:#eceefd}.MuiChip-root.impact-tag:hover{background:#fff;border:1px solid #b3bdf8;box-shadow:0 0 4px #0000001f}.MuiChip-root.impact-tag.MuiChip-outlined{background-color:#fff;border:1px solid #b3bdf8}.impact-tag-large{height:32px!important}.impact-tag-large .MuiChip-label{font-size:14px;font-weight:500;line-height:18px}.impact-tag-medium{height:24px!important}.impact-tag-medium .MuiChip-label{font-size:14px;line-height:20px}.impact-tag-small{height:22px!important}.impact-tag-small .MuiChip-label{font-size:12px;line-height:15px}.active_tags{background:#ff0}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var c=document.createElement("style");c.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)}}.MuiChip-root.impact-tag{border:1px solid #b3bdf8;color:#60697d}.MuiChip-root.impact-tag: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}.MuiChip-root.impact-tag:focus:not(:focus-visible){box-shadow:none;outline:none}.MuiChip-root.impact-tag.Mui-focusVisible{background:#eceefd}.MuiChip-root.impact-tag .MuiSvgIcon-root{color:#60697d;margin-left:10px;margin-right:-9px;width:16px}.MuiChip-root.impact-tag .MuiChip-deleteIcon{background-position:50%;background-size:16px;margin-left:-5px;margin-right:10px}.MuiChip-root.impact-tag-solid{background:#eceefd;border:none;border-radius:8px;color:#1f2b4d}.MuiChip-root.impact-tag-solid:hover{background:#eceefd}.MuiChip-root.impact-tag:hover{background:#fff;border:1px solid #b3bdf8;box-shadow:0 0 4px #0000001f}.MuiChip-root.impact-tag.MuiChip-outlined{background-color:#fff;border:1px solid #b3bdf8}.impact-tag-large{height:32px!important}.impact-tag-large .MuiChip-label{font-size:14px;font-weight:500;line-height:18px}.impact-tag-medium{height:24px!important}.impact-tag-medium .MuiChip-label{font-size:14px;line-height:20px}.impact-tag-small{height:22px!important}.impact-tag-small .MuiChip-label{font-size:12px;line-height:15px}.active_tags{background:#ff0}')),document.head.appendChild(c)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { forwardRef } from "react";
4
4
  import FilledTags from "./filled.js";
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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_textarea_label{color:#60697d;font-size:12px;padding-bottom:6px}.impact_textarea{margin-top:6px}.impact_textarea textarea{border:1px solid #d9dde7;border-radius:8px;min-height:100px;min-width:240px;padding:12px;position:relative;resize:none}.impact_textarea textarea:focus,.impact_textarea textarea:hover{border:1px solid #4259ee;outline:none}.impact_textarea_btm_container{display:flex;justify-content:space-between;margin-top:6px}.impact_textarea_btm_container .left_secondary_label_container,.impact_textarea_btm_container .right_numeric_container{color:#5f6673;font-size:10px}.impact_textarea_disabled .impact_textarea_label{color:#b4bac7}.impact_textarea_disabled textarea{background:#f8f9fb;color:#d9dde7;pointer-events:none}.impact_textarea_disabled .impact_textarea_btm_container .left_secondary_label_container{color:#b4bac7;text-align:start}.impact_textarea_disabled .impact_textarea_btm_container .right_numeric_container{color:#b4bac7}.impact_textarea_error textarea{color:#ab3939}textarea{font-family:Manrope,sans-serif!important}.impact_textarea_disabled textarea::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#b4bac7}.impact_textarea_error .left_secondary_label_container,.impact_textarea_error .right_numeric_container{color:#ab3939}.impact_textarea_error textarea,.impact_textarea_error textarea:focus,.impact_textarea_error textarea:hover{border:1px solid #ec4c5c}.impact_textarea_error textarea{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/material-symbols_error.svg) no-repeat;background-position:top 12px right 12px;background-size:16px;padding-right:34px}.impact_textarea_success textarea{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/success-icon.svg) no-repeat;background-position:top 12px right 12px;background-size:16px;padding-right:34px}.impact_textarea_success textarea,.impact_textarea_success textarea:focus,.impact_textarea_success textarea:hover{border:1px solid #108431}.impact_textarea_success .left_secondary_label_container,.impact_textarea_success .right_numeric_container{color:#26734b}.impact_textarea_warning textarea{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/warning-fill.svg) no-repeat;background-position:top 12px right 12px;background-size:16px;border:1px solid #ffe174;padding-right:34px}.impact_textarea_warning textarea:focus,.impact_textarea_warning textarea:hover{border:1px solid #ffe174}.impact_textarea_warning .left_secondary_label_container,.impact_textarea_warning .right_numeric_container{color:#9d831c}.impact_textarea textarea::placeholder{color:#b4bac7;font-weight:400;transition:font-weight .2s ease}.impact_textarea_disabled textarea::placeholder{color:#b4bac7}.impact_textarea textarea:focus::placeholder{color:#0000}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.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_textarea_label{color:#60697d;font-size:12px;padding-bottom:6px}.impact_textarea{margin-top:6px}.impact_textarea textarea{border:1px solid #d9dde7;border-radius:8px;min-height:100px;min-width:240px;padding:12px;position:relative;resize:none}.impact_textarea textarea:focus,.impact_textarea textarea:hover{border:1px solid #4259ee;outline:none}.impact_textarea_btm_container{display:flex;justify-content:space-between;margin-top:6px}.impact_textarea_btm_container .left_secondary_label_container,.impact_textarea_btm_container .right_numeric_container{color:#5f6673;font-size:10px}.impact_textarea_disabled .impact_textarea_label{color:#b4bac7}.impact_textarea_disabled textarea{background:#f8f9fb;color:#d9dde7;pointer-events:none}.impact_textarea_disabled .impact_textarea_btm_container .left_secondary_label_container{color:#b4bac7;text-align:start}.impact_textarea_disabled .impact_textarea_btm_container .right_numeric_container{color:#b4bac7}.impact_textarea_error textarea{color:#ab3939}textarea{font-family:Manrope,sans-serif!important}.impact_textarea_disabled textarea::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#b4bac7}.impact_textarea_error .left_secondary_label_container,.impact_textarea_error .right_numeric_container{color:#ab3939}.impact_textarea_error textarea,.impact_textarea_error textarea:focus,.impact_textarea_error textarea:hover{border:1px solid #ec4c5c}.impact_textarea_error textarea{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/material-symbols_error.svg) no-repeat;background-position:top 12px right 12px;background-size:16px;padding-right:34px}.impact_textarea_success textarea{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/success-icon.svg) no-repeat;background-position:top 12px right 12px;background-size:16px;padding-right:34px}.impact_textarea_success textarea,.impact_textarea_success textarea:focus,.impact_textarea_success textarea:hover{border:1px solid #108431}.impact_textarea_success .left_secondary_label_container,.impact_textarea_success .right_numeric_container{color:#26734b}.impact_textarea_warning textarea{background:url(https://impact-kit.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/warning-fill.svg) no-repeat;background-position:top 12px right 12px;background-size:16px;border:1px solid #ffe174;padding-right:34px}.impact_textarea_warning textarea:focus,.impact_textarea_warning textarea:hover{border:1px solid #ffe174}.impact_textarea_warning .left_secondary_label_container,.impact_textarea_warning .right_numeric_container{color:#9d831c}.impact_textarea textarea::placeholder{color:#b4bac7;font-weight:400;transition:font-weight .2s ease}.impact_textarea_disabled textarea::placeholder{color:#b4bac7}.impact_textarea textarea:focus::placeholder{color:#0000}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
4
 
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.dropdown-menu{background:#fff;border-radius:8px;display:flex;flex-direction:column;max-height:250px;min-width:180px;overflow:auto;padding:8px;position:relative}.dropdown-menu .mention-item{align-items:center;background-color:initial;border:none;border-radius:4px;color:#0d152c;cursor:pointer;display:flex;font-size:14px;gap:12px;padding:8px 12px;text-align:left;transition:all .2s ease;width:100%}.dropdown-menu .mention-item .mention-avatar{align-items:center;display:flex;justify-content:center}.dropdown-menu .mention-item .mention-info{display:flex;flex:1;flex-direction:column;gap:2px}.dropdown-menu .mention-item .mention-name{font-weight:400;line-height:1.2}.dropdown-menu .mention-item .mention-status{font-size:11px;font-weight:400;line-height:1;opacity:.7;text-transform:capitalize}.dropdown-menu .mention-item .mention-status.online{color:#22c55e}.dropdown-menu .mention-item .mention-status.offline{color:#b4bac7}.dropdown-menu .mention-item:hover,.dropdown-menu .mention-item:hover.is-selected{background-color:#f5f5f5}.dropdown-menu .mention-item.is-selected{background-color:#f0f0f0;font-weight:500}.dropdown-menu .mention-item:focus{box-shadow:0 0 0 2px #4259ee33;outline:none}.dropdown-menu .item{color:#b4bac7;font-size:14px;padding:8px 12px;text-align:center}.dropdown-menu .mention-loading{align-items:center;color:#b4bac7;display:flex;font-size:14px;gap:8px;padding:12px;text-align:center}.dropdown-menu .mention-loading .loading-spinner{animation:spin 1s linear infinite;border:2px solid #f5f5f5;border-radius:50%;border-top-color:#4259ee;height:16px;width:16px}.dropdown-menu .mention-error{color:#ef4444;font-size:14px;padding:12px;text-align:center}.dropdown-menu .mention-no-result{color:#b4bac7;font-size:14px;padding:12px;text-align:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.dropdown-menu::-webkit-scrollbar{width:6px}.dropdown-menu::-webkit-scrollbar-track{background:#f5f5f5;border-radius:3px}.dropdown-menu::-webkit-scrollbar-thumb{background:#d4d4d4;border-radius:3px}.dropdown-menu::-webkit-scrollbar-thumb:hover{background:#c7c7c7}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.dropdown-menu{background:#fff;border-radius:8px;display:flex;flex-direction:column;max-height:250px;min-width:180px;overflow:auto;padding:8px;position:relative}.dropdown-menu .mention-item{align-items:center;background-color:initial;border:none;border-radius:4px;color:#0d152c;cursor:pointer;display:flex;font-size:14px;gap:12px;padding:8px 12px;text-align:left;transition:all .2s ease;width:100%}.dropdown-menu .mention-item .mention-avatar{align-items:center;display:flex;justify-content:center}.dropdown-menu .mention-item .mention-info{display:flex;flex:1;flex-direction:column;gap:2px}.dropdown-menu .mention-item .mention-name{font-weight:400;line-height:1.2}.dropdown-menu .mention-item .mention-status{font-size:11px;font-weight:400;line-height:1;opacity:.7;text-transform:capitalize}.dropdown-menu .mention-item .mention-status.online{color:#22c55e}.dropdown-menu .mention-item .mention-status.offline{color:#b4bac7}.dropdown-menu .mention-item:hover,.dropdown-menu .mention-item:hover.is-selected{background-color:#f5f5f5}.dropdown-menu .mention-item.is-selected{background-color:#f0f0f0;font-weight:500}.dropdown-menu .mention-item:focus{box-shadow:0 0 0 2px #4259ee33;outline:none}.dropdown-menu .item{color:#b4bac7;font-size:14px;padding:8px 12px;text-align:center}.dropdown-menu .mention-loading{align-items:center;color:#b4bac7;display:flex;font-size:14px;gap:8px;padding:12px;text-align:center}.dropdown-menu .mention-loading .loading-spinner{animation:spin 1s linear infinite;border:2px solid #f5f5f5;border-radius:50%;border-top-color:#4259ee;height:16px;width:16px}.dropdown-menu .mention-error{color:#ef4444;font-size:14px;padding:12px;text-align:center}.dropdown-menu .mention-no-result{color:#b4bac7;font-size:14px;padding:12px;text-align:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.dropdown-menu::-webkit-scrollbar{width:6px}.dropdown-menu::-webkit-scrollbar-track{background:#f5f5f5;border-radius:3px}.dropdown-menu::-webkit-scrollbar-thumb{background:#d4d4d4;border-radius:3px}.dropdown-menu::-webkit-scrollbar-thumb:hover{background:#c7c7c7}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
 
4
4
  import { forwardRef, useState, useEffect, useImperativeHandle } from "react";
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.ProseMirror-focused{outline:none}.tiptap :first-child{margin-top:0}.tiptap p{margin:0!important;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}.tiptap h1{font-size:2em;margin:1em 0 .5em}.tiptap h1,.tiptap h2{color:#1a202c;font-weight:600}.tiptap h2{font-size:1.5em;margin:.83em 0 .5em}.tiptap h3{color:#1a202c;font-size:1.17em;font-weight:600;margin:.67em 0 .5em}.tiptap h4{font-size:1em}.tiptap h4,.tiptap h5{color:#1a202c;font-weight:600;margin:.5em 0}.tiptap h5{font-size:.83em}.tiptap h6{color:#1a202c;font-size:.67em;margin:.5em 0}.tiptap h6,.tiptap strong{font-weight:600}.tiptap em{font-style:italic}.tiptap s{color:#666;text-decoration:line-through;text-decoration-thickness:.1em}.tiptap .highlight{background-color:#fef3c7!important}.tiptap .highlight,.tiptap mark{border-radius:4px;margin:0 2px;padding:2px 4px}.tiptap mark{background-color:#fef3c7}.tiptap a{border-bottom:1px solid #2b6cb0;color:#2b6cb0;text-decoration:none;transition:all .2s ease}.tiptap a:hover{border-bottom-color:#1a4971;color:#1a4971}.tiptap img{border-radius:4px;height:auto;margin:.5em 0;max-width:100%}.tiptap .mention{background-color:#f0f4f8;border-radius:4px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#2b6cb0;font-weight:500;padding:2px 6px;text-decoration:none;transition:background-color .2s ease;white-space:nowrap}.tiptap .mention:hover{background-color:#e2e8f0;cursor:pointer}.tiptap .is-active{background-color:#f0f4f8}.tiptap ol,.tiptap ul{margin:.5em 0;padding-left:1.2em}.tiptap ol li,.tiptap ul li{line-height:1.2;margin:.2em 0;padding-left:0}.tiptap ol li p,.tiptap ul li p{display:inline-block;margin:0}.tiptap ul li{list-style-type:disc}.tiptap ol li{list-style-type:decimal}.tiptap ol ol,.tiptap ol ul,.tiptap ul ol,.tiptap ul ul{margin:.2em 0 .2em .5em}.tiptap ul ul li{list-style-type:circle}.tiptap ul ul ul li{list-style-type:square}.tiptap ol ol li{list-style-type:lower-alpha}.tiptap ol ol ol li{list-style-type:lower-roman}.tiptap ol[data-type=orderedList] li,.tiptap ul[data-type=bulletList] li{position:relative}.tiptap ol[data-type=orderedList] li:before,.tiptap ul[data-type=bulletList] li:before{border-radius:50%;content:"";height:4px;left:-1em;position:absolute;top:50%;transform:translateY(-50%);width:4px}.tiptap .highlight{background-color:#fef3c7;border-radius:2px;padding:0 2px}.tiptap code{background-color:#f7fafc;border-radius:4px;font-family:monospace;padding:.2em .4em}.tiptap blockquote{border-left:3px solid #e2e8f0;color:#4a5568;margin:.5em 0;padding-left:1em}.character-count{align-items:center;color:var(--gray-5);display:flex;font-size:.75rem;gap:.5rem;margin:1.5rem}.character-count svg{color:var(--purple)}.character-count--warning,.character-count--warning svg{color:var(--red)}.tiptap-editor{background:#0000;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;font-weight:400;line-height:160%;max-height:130px;min-height:20px;outline:none;overflow-y:auto;padding:0;resize:none;transition:all .2s ease-in-out;width:100%}.tiptap-editor::placeholder{color:#b4bac7}.tiptap-editor .ProseMirror{max-height:100px;min-height:40px;outline:none;overflow-y:auto;word-wrap:break-word}.tiptap-editor .ProseMirror::-webkit-scrollbar{width:4px}.tiptap-editor .ProseMirror::-webkit-scrollbar-track{background:#0000}.tiptap-editor .ProseMirror::-webkit-scrollbar-thumb{background:#0003;border-radius:2px}.tiptap-editor .ProseMirror::-webkit-scrollbar-thumb:hover{background:#0000004d}.single-line .tiptap{line-height:24px}.tiptap-editor div.ProseMirror{padding:0!important}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.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)}}:root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px;--ia-modal-backdrop:#0d152ccc}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.ProseMirror-focused{outline:none}.tiptap :first-child{margin-top:0}.tiptap p{margin:0!important;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}.tiptap h1{font-size:2em;margin:1em 0 .5em}.tiptap h1,.tiptap h2{color:#1a202c;font-weight:600}.tiptap h2{font-size:1.5em;margin:.83em 0 .5em}.tiptap h3{color:#1a202c;font-size:1.17em;font-weight:600;margin:.67em 0 .5em}.tiptap h4{font-size:1em}.tiptap h4,.tiptap h5{color:#1a202c;font-weight:600;margin:.5em 0}.tiptap h5{font-size:.83em}.tiptap h6{color:#1a202c;font-size:.67em;margin:.5em 0}.tiptap h6,.tiptap strong{font-weight:600}.tiptap em{font-style:italic}.tiptap s{color:#666;text-decoration:line-through;text-decoration-thickness:.1em}.tiptap .highlight{background-color:#fef3c7!important}.tiptap .highlight,.tiptap mark{border-radius:4px;margin:0 2px;padding:2px 4px}.tiptap mark{background-color:#fef3c7}.tiptap a{border-bottom:1px solid #2b6cb0;color:#2b6cb0;text-decoration:none;transition:all .2s ease}.tiptap a:hover{border-bottom-color:#1a4971;color:#1a4971}.tiptap img{border-radius:4px;height:auto;margin:.5em 0;max-width:100%}.tiptap .mention{background-color:#f0f4f8;border-radius:4px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#2b6cb0;font-weight:500;padding:2px 6px;text-decoration:none;transition:background-color .2s ease;white-space:nowrap}.tiptap .mention:hover{background-color:#e2e8f0;cursor:pointer}.tiptap .is-active{background-color:#f0f4f8}.tiptap ol,.tiptap ul{margin:.5em 0;padding-left:1.2em}.tiptap ol li,.tiptap ul li{line-height:1.2;margin:.2em 0;padding-left:0}.tiptap ol li p,.tiptap ul li p{display:inline-block;margin:0}.tiptap ul li{list-style-type:disc}.tiptap ol li{list-style-type:decimal}.tiptap ol ol,.tiptap ol ul,.tiptap ul ol,.tiptap ul ul{margin:.2em 0 .2em .5em}.tiptap ul ul li{list-style-type:circle}.tiptap ul ul ul li{list-style-type:square}.tiptap ol ol li{list-style-type:lower-alpha}.tiptap ol ol ol li{list-style-type:lower-roman}.tiptap ol[data-type=orderedList] li,.tiptap ul[data-type=bulletList] li{position:relative}.tiptap ol[data-type=orderedList] li:before,.tiptap ul[data-type=bulletList] li:before{border-radius:50%;content:"";height:4px;left:-1em;position:absolute;top:50%;transform:translateY(-50%);width:4px}.tiptap .highlight{background-color:#fef3c7;border-radius:2px;padding:0 2px}.tiptap code{background-color:#f7fafc;border-radius:4px;font-family:monospace;padding:.2em .4em}.tiptap blockquote{border-left:3px solid #e2e8f0;color:#4a5568;margin:.5em 0;padding-left:1em}.character-count{align-items:center;color:var(--gray-5);display:flex;font-size:.75rem;gap:.5rem;margin:1.5rem}.character-count svg{color:var(--purple)}.character-count--warning,.character-count--warning svg{color:var(--red)}.tiptap-editor{background:#0000;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;font-weight:400;line-height:160%;max-height:130px;min-height:20px;outline:none;overflow-y:auto;padding:0;resize:none;transition:all .2s ease-in-out;width:100%}.tiptap-editor::placeholder{color:#b4bac7}.tiptap-editor .ProseMirror{max-height:100px;min-height:40px;outline:none;overflow-y:auto;word-wrap:break-word}.tiptap-editor .ProseMirror::-webkit-scrollbar{width:4px}.tiptap-editor .ProseMirror::-webkit-scrollbar-track{background:#0000}.tiptap-editor .ProseMirror::-webkit-scrollbar-thumb{background:#0003;border-radius:2px}.tiptap-editor .ProseMirror::-webkit-scrollbar-thumb:hover{background:#0000004d}.single-line .tiptap{line-height:24px}.tiptap-editor div.ProseMirror{padding:0!important}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
2
  import { jsx } from "react/jsx-runtime";
3
3
 
4
4
  import { forwardRef, useEffect, useImperativeHandle } from "react";
@@ -43,8 +43,9 @@ export { BottomSheet } from './BottomSheet';
43
43
  export type { BottomSheetProps } from './BottomSheet/BottomSheet.types';
44
44
  export { Sidebar } from './Sidebar';
45
45
  export type { SidebarProps, SidebarRoute } from './Sidebar/Sidebar.types';
46
- export { ChatBotComponent } from './Chatbot';
47
- export type { ChatbotProps, IrisAssistantActionKey, } from './Chatbot/Chatbot.types';
46
+ export { ChatBotComponent, fetchGreetingWeather, mapWeatherCodeToGreetingWeather, } from './Chatbot';
47
+ export type { ChatbotProps, GreetingPeriod, GreetingWeather, IrisAssistantActionKey, } from './Chatbot/Chatbot.types';
48
+ export type { FetchGreetingWeatherOptions, GreetingWeatherLocation, } from './Chatbot/greetingWeather';
48
49
  export { Panel } from './Panel';
49
50
  export type { PanelProps, PanelAnchor, PanelSize } from './Panel/Panel.types';
50
51
  export { HomePage } from './HomePage';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts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jB,MAAM,SAAS,CAAC"}
@@ -74,6 +74,7 @@ import { ShortcutsConfigContext } from "./Shortcuts/ShortcutsConfigContext.js";
74
74
  import { ShortcutsProvider } from "./Shortcuts/ShortcutsProvider.js";
75
75
  import { buildMessages, translate } from "../i18n/translate.js";
76
76
  import { default as default3 } from "../locales/en-US.json.js";
77
+ import { fetchGreetingWeather, mapWeatherCodeToGreetingWeather } from "./Chatbot/greetingWeather.js";
77
78
  import { formatShortcutDisplay } from "../utils/shortcuts/format.js";
78
79
  import { isMac } from "../utils/shortcuts/platform.js";
79
80
  import { normalizeKey } from "../utils/shortcuts/match.js";
@@ -163,10 +164,12 @@ export {
163
164
  Tooltip,
164
165
  buildMessages,
165
166
  default3 as enUS,
167
+ fetchGreetingWeather,
166
168
  formatShortcutDisplay,
167
169
  getAssetUrl,
168
170
  getShimmerClass,
169
171
  isMac,
172
+ mapWeatherCodeToGreetingWeather,
170
173
  normalizeKey,
171
174
  normalizeShortcutString,
172
175
  ourDictionaries,
@@ -23,6 +23,16 @@ export interface UseDraggableResizableOptions {
23
23
  minHeight?: number;
24
24
  maxWidth?: number;
25
25
  maxHeight?: number;
26
+ /**
27
+ * Live viewport-relative max width (e.g. `0.6` = 60% of `window.innerWidth`).
28
+ * Prefer this over a render-time `maxWidth` snapshot so zoom/resize cannot go stale.
29
+ */
30
+ maxWidthRatio?: number;
31
+ /**
32
+ * Live viewport-relative max height (e.g. `0.7` = 70% of `window.innerHeight`).
33
+ * Prefer this over a render-time `maxHeight` snapshot so zoom/resize cannot go stale.
34
+ */
35
+ maxHeightRatio?: number;
26
36
  /**
27
37
  * Gap kept clear between the panel and the viewport edges while dragging/resizing, so it
28
38
  * stops short of the edge instead of touching it. Pass a number for a uniform margin, or
@@ -100,5 +110,5 @@ export interface UseDraggableResizableResult {
100
110
  * - Resize handles expose `role="separator"` + keyboard nudging (arrow keys, Shift for a
101
111
  * larger step) for accessibility.
102
112
  */
103
- export declare function useDraggableResizable({ initialRect, minWidth, minHeight, maxWidth, maxHeight, viewportMargin, disabled, onChange, onDragEnd, onResizeEnd, }: UseDraggableResizableOptions): UseDraggableResizableResult;
113
+ export declare function useDraggableResizable({ initialRect, minWidth, minHeight, maxWidth, maxHeight, maxWidthRatio, maxHeightRatio, viewportMargin, disabled, onChange, onDragEnd, onResizeEnd, }: UseDraggableResizableOptions): UseDraggableResizableResult;
104
114
  //# sourceMappingURL=useDraggableResizable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDraggableResizable.d.ts","sourceRoot":"","sources":["../../src/hooks/useDraggableResizable.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,aAAa,IAAI,kBAAkB,EACxC,KAAK,YAAY,IAAI,iBAAiB,EACvC,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,eAAe,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAShF,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iEAAiE;AACjE,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAcnE,MAAM,WAAW,4BAA4B;IAC3C,oGAAoG;IACpG,WAAW,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM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9E,eAAe,EAAE,WAAW,CAAC;IAC7B,uDAAuD;IACvD,oBAAoB,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,WAAW,GAAG;QAClE,IAAI,EAAE,WAAW,CAAC;QAClB,QAAQ,EAAE,CAAC,CAAC;QACZ,kBAAkB,EAAE,YAAY,GAAG,UAAU,CAAC;KAC/C,CAAC;IACF;;;OAGG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;IACzF,0EAA0E;IAC1E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AA+HD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,WAAW,EACX,QAAc,EACd,SAAe,EACf,QAAmB,EACnB,SAAoB,EACpB,aAAa,EACb,cAAc,EACd,cAAc,EACd,QAAgB,EAChB,QAAQ,EACR,SAAS,EACT,WAAW,GACZ,EAAE,4BAA4B,GAAG,2BAA2B,CAiS5D"}
@@ -16,6 +16,36 @@ function resolveViewportMargin(input) {
16
16
  function clampNumber(value, min, max) {
17
17
  return Math.min(Math.max(value, min), Math.max(min, max));
18
18
  }
19
+ function resolveMaxSize(explicit, ratio, viewportSize, boundsSize) {
20
+ const fromRatio = ratio != null && Number.isFinite(viewportSize) ? Math.floor(viewportSize * ratio) : Infinity;
21
+ return Math.min(explicit, fromRatio, boundsSize);
22
+ }
23
+ function applyResizeDelta(startRect, direction, dx, dy, opts) {
24
+ const viewportWidth = typeof window !== "undefined" ? window.innerWidth : Infinity;
25
+ const viewportHeight = typeof window !== "undefined" ? window.innerHeight : Infinity;
26
+ const boundsWidth = viewportWidth - opts.margin.left - opts.margin.right;
27
+ const boundsHeight = viewportHeight - opts.margin.top - opts.margin.bottom;
28
+ const maxWidth = resolveMaxSize(opts.maxWidth, opts.maxWidthRatio, viewportWidth, boundsWidth);
29
+ const maxHeight = resolveMaxSize(
30
+ opts.maxHeight,
31
+ opts.maxHeightRatio,
32
+ viewportHeight,
33
+ boundsHeight
34
+ );
35
+ let width = startRect.width;
36
+ let height = startRect.height;
37
+ if (direction.includes("e")) width = startRect.width + dx;
38
+ if (direction.includes("s")) height = startRect.height + dy;
39
+ if (direction.includes("w")) width = startRect.width - dx;
40
+ if (direction.includes("n")) height = startRect.height - dy;
41
+ width = clampNumber(width, opts.minWidth, maxWidth);
42
+ height = clampNumber(height, opts.minHeight, maxHeight);
43
+ let x = startRect.x;
44
+ let y = startRect.y;
45
+ if (direction.includes("w")) x = startRect.x + startRect.width - width;
46
+ if (direction.includes("n")) y = startRect.y + startRect.height - height;
47
+ return { x, y, width, height };
48
+ }
19
49
  function safeCapturePointer(target, pointerId) {
20
50
  if (typeof target.setPointerCapture !== "function") return;
21
51
  try {
@@ -36,8 +66,15 @@ function clampRect(rect, opts) {
36
66
  const { margin } = opts;
37
67
  const boundsWidth = viewportWidth - margin.left - margin.right;
38
68
  const boundsHeight = viewportHeight - margin.top - margin.bottom;
39
- const width = clampNumber(rect.width, opts.minWidth, Math.min(opts.maxWidth, boundsWidth));
40
- const height = clampNumber(rect.height, opts.minHeight, Math.min(opts.maxHeight, boundsHeight));
69
+ const maxWidth = resolveMaxSize(opts.maxWidth, opts.maxWidthRatio, viewportWidth, boundsWidth);
70
+ const maxHeight = resolveMaxSize(
71
+ opts.maxHeight,
72
+ opts.maxHeightRatio,
73
+ viewportHeight,
74
+ boundsHeight
75
+ );
76
+ const width = clampNumber(rect.width, opts.minWidth, maxWidth);
77
+ const height = clampNumber(rect.height, opts.minHeight, maxHeight);
41
78
  const x = clampNumber(
42
79
  rect.x,
43
80
  margin.left,
@@ -56,6 +93,8 @@ function useDraggableResizable({
56
93
  minHeight = 320,
57
94
  maxWidth = Infinity,
58
95
  maxHeight = Infinity,
96
+ maxWidthRatio,
97
+ maxHeightRatio,
59
98
  viewportMargin,
60
99
  disabled = false,
61
100
  onChange,
@@ -73,11 +112,22 @@ function useDraggableResizable({
73
112
  const pendingRectRef = useRef(null);
74
113
  const cleanupRef = useRef(null);
75
114
  const margin = resolveViewportMargin(viewportMargin);
76
- const limits = { minWidth, minHeight, maxWidth, maxHeight, margin };
115
+ const limits = {
116
+ minWidth,
117
+ minHeight,
118
+ maxWidth,
119
+ maxHeight,
120
+ maxWidthRatio,
121
+ maxHeightRatio,
122
+ margin
123
+ };
124
+ const limitsRef = useRef(limits);
125
+ limitsRef.current = limits;
77
126
  const { top: marginTop, right: marginRight, bottom: marginBottom, left: marginLeft } = margin;
78
127
  const commitRect = useCallback(
79
128
  (next) => {
80
- const clamped = clampRect(next, limits);
129
+ const clamped = clampRect(next, limitsRef.current);
130
+ rectRef.current = clamped;
81
131
  pendingRectRef.current = clamped;
82
132
  if (rafRef.current == null) {
83
133
  rafRef.current = requestAnimationFrame(() => {
@@ -89,39 +139,21 @@ function useDraggableResizable({
89
139
  });
90
140
  }
91
141
  },
92
- // eslint-disable-next-line react-hooks/exhaustive-deps
93
- [
94
- minWidth,
95
- minHeight,
96
- maxWidth,
97
- maxHeight,
98
- marginTop,
99
- marginRight,
100
- marginBottom,
101
- marginLeft,
102
- onChange
103
- ]
142
+ [onChange]
104
143
  );
105
144
  const setRect = useCallback(
106
145
  (updater) => {
107
- const next = typeof updater === "function" ? updater(rectRef.current) : updater;
108
- const clamped = clampRect(next, limits);
146
+ const prev = rectRef.current;
147
+ const next = typeof updater === "function" ? updater(prev) : updater;
148
+ const clamped = clampRect(next, limitsRef.current);
149
+ if (clamped.x === prev.x && clamped.y === prev.y && clamped.width === prev.width && clamped.height === prev.height) {
150
+ return;
151
+ }
109
152
  rectRef.current = clamped;
110
153
  setRectState(clamped);
111
154
  onChange == null ? void 0 : onChange(clamped);
112
155
  },
113
- // eslint-disable-next-line react-hooks/exhaustive-deps
114
- [
115
- minWidth,
116
- minHeight,
117
- maxWidth,
118
- maxHeight,
119
- marginTop,
120
- marginRight,
121
- marginBottom,
122
- marginLeft,
123
- onChange
124
- ]
156
+ [onChange]
125
157
  );
126
158
  const endInteraction = useCallback(() => {
127
159
  document.body.classList.remove("no-select");
@@ -135,6 +167,7 @@ function useDraggableResizable({
135
167
  if (pendingRectRef.current) {
136
168
  setRectState(pendingRectRef.current);
137
169
  onChange == null ? void 0 : onChange(pendingRectRef.current);
170
+ pendingRectRef.current = null;
138
171
  }
139
172
  }, [onChange]);
140
173
  useEffect(
@@ -160,7 +193,7 @@ function useDraggableResizable({
160
193
  const onMove = (ev) => {
161
194
  const dx = ev.clientX - startX;
162
195
  const dy = ev.clientY - startY;
163
- commitRect({ ...startRect, x: startRect.x - 24 + dx, y: startRect.y - 24 + dy });
196
+ commitRect({ ...startRect, x: startRect.x + dx, y: startRect.y + dy });
164
197
  };
165
198
  const onUp = () => {
166
199
  safeReleasePointer(target, pointerId);
@@ -193,18 +226,7 @@ function useDraggableResizable({
193
226
  const onMove = (ev) => {
194
227
  const dx = ev.clientX - startX;
195
228
  const dy = ev.clientY - startY;
196
- let { x, y, width, height } = startRect;
197
- if (direction.includes("e")) width = startRect.width + dx;
198
- if (direction.includes("s")) height = startRect.height + dy;
199
- if (direction.includes("w")) {
200
- width = startRect.width - dx;
201
- x = startRect.x + dx;
202
- }
203
- if (direction.includes("n")) {
204
- height = startRect.height - dy;
205
- y = startRect.y + dy;
206
- }
207
- commitRect({ x, y, width, height });
229
+ commitRect(applyResizeDelta(startRect, direction, dx, dy, limitsRef.current));
208
230
  };
209
231
  const onUp = () => {
210
232
  safeReleasePointer(target, pointerId);
@@ -234,19 +256,7 @@ function useDraggableResizable({
234
256
  else if (e.key === "ArrowDown") dy = step;
235
257
  else return;
236
258
  e.preventDefault();
237
- const startRect = rectRef.current;
238
- let { x, y, width, height } = startRect;
239
- if (direction.includes("e")) width += dx;
240
- if (direction.includes("s")) height += dy;
241
- if (direction.includes("w")) {
242
- width -= dx;
243
- x += dx;
244
- }
245
- if (direction.includes("n")) {
246
- height -= dy;
247
- y += dy;
248
- }
249
- setRect({ x, y, width, height });
259
+ setRect(applyResizeDelta(rectRef.current, direction, dx, dy, limitsRef.current));
250
260
  onResizeEnd == null ? void 0 : onResizeEnd(rectRef.current);
251
261
  },
252
262
  [disabled, setRect, onResizeEnd]
@@ -289,14 +299,18 @@ function useDraggableResizable({
289
299
  const y = anchor.startsWith("bottom") ? viewportHeight - size.height - m.bottom : m.top;
290
300
  const clamped = clampRect(
291
301
  { x, y, width: size.width, height: size.height },
292
- { minWidth: size.width, minHeight: size.height, maxWidth, maxHeight, margin: m }
302
+ {
303
+ ...limitsRef.current,
304
+ minWidth: size.width,
305
+ minHeight: size.height,
306
+ margin: m
307
+ }
293
308
  );
294
309
  rectRef.current = clamped;
295
310
  setRectState(clamped);
296
311
  onChange == null ? void 0 : onChange(clamped);
297
312
  },
298
- // eslint-disable-next-line react-hooks/exhaustive-deps
299
- [maxWidth, maxHeight, marginTop, marginRight, marginBottom, marginLeft, onChange]
313
+ [marginTop, marginRight, marginBottom, marginLeft, onChange]
300
314
  );
301
315
  const restore = useCallback(() => {
302
316
  if (savedRectRef.current) {
@@ -493,13 +493,6 @@ declare const _default: {
493
493
  "homePage.agenticUsecasesTitle": "Agentische Anwendungsfälle",
494
494
 
495
495
  "chatBot.menu.newChat": "Neuer Chat",
496
- "chatBot.menu.bookmark": "Lesezeichen",
497
- "chatBot.menu.history": "Verlauf",
498
- "chatBot.menu.page": "Seite",
499
- "chatBot.menu.notification": "Benachrichtigung",
500
- "chatBot.suggestionBanner.freeTextHeading": "Mehr Details hinzufügen:",
501
- "chatBot.suggestionBanner.freeTextContent": "Iris arbeitet am besten mit kontext-reichen Eingaben und gezielten Fragen",
502
- "chatBot.footerText": "KI-generierte Antworten können Fehler enthalten – bitte wichtige Informationen prüfen",
503
496
  "chatBot.irisFooterText": "Alan kann Fehler machen.",
504
497
  "chatBot.footerLearnMore": "mehr erfahren",
505
498
  "chatBot.greeting.morning": "Guten Morgen",
@@ -508,13 +501,11 @@ declare const _default: {
508
501
  "chatBot.greeting.brand": "Ask Iris",
509
502
  "chatBot.greeting.menu": "Menü öffnen",
510
503
  "chatBot.greeting.window": "Fensterlayout",
511
- "chatBot.greeting.minimise": "Chatbot minimieren",
512
- "chatBot.greeting.expand": "Chatbot erweitern",
513
504
  "chatBot.greeting.layout.sidebar": "Seitenleiste",
514
505
  "chatBot.greeting.layout.collapse": "Minimieren",
515
506
  "chatBot.greeting.layout.floating": "Schwebend",
516
507
  "chatBot.greeting.layout.fullScreen": "Vollbild",
517
- "chatBot.sunAlt": "Sonne",
508
+ "chatBot.greeting.dockToSidebar": "Ablegen, um die Seitenleiste zu öffnen",
518
509
  "chatBot.irisIntro": "Ich bin Iris, wie kann ich Ihnen helfen?",
519
510
  "chatBot.irisInputPlaceholder": "Fragen Sie Iris alles",
520
511
  "chatBot.irisThinking": "Iris denkt nach",
@@ -524,7 +515,6 @@ declare const _default: {
524
515
  "chatBot.irisThinking.stepsLabel": "Prozessschritte ({{current}}/{{total}})",
525
516
  "chatBot.irisThinking.citations": "Zitat",
526
517
  "chatBot.irisThinking.citationsLabel": "Zitat ({{count}})",
527
- "chatBot.inputPlaceholder": "Alles fragen...",
528
518
  "chatBot.suggested.label": "Vorschläge",
529
519
  "chatBot.composer.add": "Hinzufügen",
530
520
  "chatBot.composer.attach": "Datei anhängen",
@@ -532,12 +522,8 @@ declare const _default: {
532
522
  "chatBot.composer.mic": "Mikrofon verwenden",
533
523
  "chatBot.composer.send": "Nachricht senden",
534
524
  "chatBot.composer.stop": "Antwort stoppen",
535
- "chatBot.saveChat": "Chat speichern",
536
- "chatBot.newThread": "Neuer Thread",
537
- "chatBot.addToPage": "Zur Seite hinzufügen",
538
525
  "chatBot.closeAlt": "Schließen",
539
526
  "chatBot.dateSeparator.today": "Heute",
540
- "chatBot.dateSeparator.yesterday": "Gestern",
541
527
  "chatBot.message.copy": "Kopieren",
542
528
  "chatBot.message.copied": "Kopiert",
543
529
  "chatBot.message.edit": "Bearbeiten",
@@ -546,18 +532,6 @@ declare const _default: {
546
532
  "chatBot.message.regenerate": "Neu generieren",
547
533
  "chatBot.message.speak": "Vorlesen",
548
534
  "chatBot.message.revert": "Antwort zurücksetzen",
549
- "chatBot.moduleMenu.module": "Modul",
550
- "chatBot.moduleMenu.homeAlt": "Startseite",
551
- "chatBot.moduleMenu.closeThreadAlt": "Thread schließen",
552
- "chatBot.history.title": "Ihr Verlauf",
553
- "chatBot.history.searchPlaceholder": "Nach Name oder Chat-Inhalt suchen",
554
- "chatBot.history.searchAriaLabel": "Verlauf durchsuchen",
555
- "chatBot.history.moreActions": "Weitere Aktionen",
556
- "chatBot.history.share": "Teilen",
557
- "chatBot.history.rename": "Umbenennen",
558
- "chatBot.history.pin": "Chat anheften",
559
- "chatBot.history.unpin": "Chat lösen",
560
- "chatBot.history.delete": "Löschen",
561
535
  "chatBot.history.noConversations": "Keine Unterhaltungen gefunden",
562
536
  "chatBot.irisMenu.title": "Menü",
563
537
  "chatBot.irisMenu.back": "Zurück",
@@ -576,11 +550,6 @@ declare const _default: {
576
550
  "chatBot.irisMenu.item.rename": "Umbenennen",
577
551
  "chatBot.irisMenu.item.archive": "Archivieren",
578
552
  "chatBot.irisMenu.item.delete": "Löschen",
579
- "chatBot.bookmark.alt": "Lesezeichen",
580
- "chatBot.bookmark.title": "Gespeicherte Fragen",
581
- "chatBot.bookmark.add": "Hinzufügen",
582
- "chatBot.bookmark.preDefined": "Vordefiniert",
583
- "chatBot.bookmark.addedByYou": "Von Ihnen hinzugefügt",
584
553
 
585
554
  "notification.settingAndHelp": "Einstellungen & Hilfe",
586
555
  "notification.searchPlaceholder": "Benachrichtigung suchen...",