impact-ui 5.0.2-alpha.1 → 5.0.2-alpha.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 (79) hide show
  1. package/dist/components/Badge/index.js +1 -1
  2. package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +1 -1
  3. package/dist/components/Panel/Panel.types.d.ts +0 -7
  4. package/dist/components/Panel/Panel.types.d.ts.map +1 -1
  5. package/dist/components/Panel/index.d.ts +1 -1
  6. package/dist/components/Panel/index.d.ts.map +1 -1
  7. package/dist/components/Panel/index.js +2 -5
  8. package/dist/components/TableChat/EmptyContainer.js +3 -3
  9. package/dist/components/TableChat/TableChatSidePanel.d.ts +1 -2
  10. package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
  11. package/dist/components/TableChat/TableChatSidePanel.js +23 -214
  12. package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
  13. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +2 -4
  14. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
  15. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +24 -55
  16. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
  17. package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +2 -3
  18. package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts.map +1 -1
  19. package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +43 -20
  20. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
  21. package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -37
  22. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
  23. package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +18 -54
  24. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -4
  25. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
  26. package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +81 -90
  27. package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +2 -2
  28. package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +65 -0
  29. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
  30. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +4 -11
  31. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
  32. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +56 -67
  33. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -8
  34. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
  35. package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +4 -170
  36. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts +1 -5
  37. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
  38. package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +124 -138
  39. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +9 -11
  40. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
  41. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +106 -102
  42. package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +17 -0
  43. package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts.map +1 -1
  44. package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -4
  45. package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts +1 -2
  46. package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
  47. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
  48. package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +215 -327
  49. package/dist/components/TableChat/components/chatConfig.js +1 -0
  50. package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -1
  51. package/dist/components/TableV36/AgGridHeader.js +22 -3
  52. package/dist/components/TableV36/index.d.ts.map +1 -1
  53. package/dist/components/TableV36/index.js +8 -135
  54. package/dist/components/TableV36/tableHeader.d.ts +1 -5
  55. package/dist/components/TableV36/tableHeader.d.ts.map +1 -1
  56. package/dist/components/TableV36/tableHeader.js +11 -36
  57. package/dist/locales/de-DE.json.d.ts +3 -16
  58. package/dist/locales/de-DE.json.js +3 -15
  59. package/dist/locales/en-US.json.d.ts +3 -16
  60. package/dist/locales/en-US.json.js +3 -15
  61. package/dist/locales/es-ES.json.d.ts +3 -16
  62. package/dist/locales/es-ES.json.js +3 -15
  63. package/dist/mcp-component-registry.json +7 -1
  64. package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +156 -250
  65. package/dist/stories/tableV36ChatApiMock.d.ts +74 -222
  66. package/dist/stories/tableV36ChatApiMock.d.ts.map +1 -1
  67. package/package.json +2 -2
  68. package/dist/_virtual/Check.js +0 -4
  69. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts +0 -11
  70. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.d.ts.map +0 -1
  71. package/dist/components/TableChat/components/TableChatLeftSection/ChatFilterChips/ChatFilterChips.js +0 -57
  72. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts +0 -12
  73. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.d.ts.map +0 -1
  74. package/dist/components/TableChat/components/TableChatRightSection/ChatInlineEdit/ChatInlineEdit.js +0 -132
  75. package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.js +0 -29
  76. package/dist/components/TableV36/withChatIndicator.d.ts +0 -3
  77. package/dist/components/TableV36/withChatIndicator.d.ts.map +0 -1
  78. package/dist/components/TableV36/withChatIndicator.js +0 -89
  79. package/dist/node_modules/@mui/icons-material/Check.js +0 -17
@@ -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)}}.MuiChip-root.impact_badges_icon_label_filled{background:#5f6673;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_icon_label_filled .MuiChip-label{color:#fff;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_icon_label_filled.small-badge{height:20px}.MuiChip-root.impact_badges_icon_label_filled.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_icon_label_filled svg{color:#fff!important;font-size:14px!important;height:14px;margin:0 6px 0 0!important;width:14px}.MuiChip-root.impact_badges_icon_label_filled.Mui-focusVisible,.MuiChip-root.impact_badges_icon_label_filled:hover{background:#5f6673}.MuiChip-root.impact_badges_only_icon_filled{background:#5f6673;cursor:default!important;height:24px;max-width:24px;padding:4px;width:24px}.MuiChip-root.impact_badges_only_icon_filled.small-badge{height:20px;width:20px}.MuiChip-root.impact_badges_only_icon_filled svg{color:#fff;font-size:14px!important;height:14px;margin:0!important;width:14px}.MuiChip-root.impact_badges_only_icon_filled span{display:none}.MuiChip-root.impact_badges_only_icon_filled.Mui-focusVisible,.MuiChip-root.impact_badges_only_icon_filled:hover{background:#5f6673}.MuiChip-root.impact_badges_only_label_filled{background:#5f6673;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_only_label_filled .MuiChip-label{color:#fff;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_filled.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_filled.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_filled svg{cursor:default!important;height:14px;width:14px}.MuiChip-root.impact_badges_only_label_filled.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_filled:hover{background:#5f6673}.MuiChip-root.info-badge-filled,.MuiChip-root.info-badge-filled.Mui-focusVisible,.MuiChip-root.info-badge-filled:hover{background:#5267f4}.MuiChip-root.success-badge-filled,.MuiChip-root.success-badge-filled.Mui-focusVisible,.MuiChip-root.success-badge-filled:hover{background:#108431}.MuiChip-root.warning-badge-filled,.MuiChip-root.warning-badge-filled.Mui-focusVisible,.MuiChip-root.warning-badge-filled:hover{background:#ffe174}.MuiChip-root.warning-badge-filled .MuiChip-label{color:#1f2b4d}.MuiChip-root.warning-badge-filled svg{color:#1f2b4d!important}.MuiChip-root.error-badge-filled,.MuiChip-root.error-badge-filled.Mui-focusVisible,.MuiChip-root.error-badge-filled:hover{background:#ec4c5c}.MuiChip-root.impact_badges_icon_label_stroke{background:#fff;border:1px solid #5f6673;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_icon_label_stroke .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_icon_label_stroke.small-badge{height:20px}.MuiChip-root.impact_badges_icon_label_stroke.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_icon_label_stroke svg{color:#5f6673;font-size:14px!important;height:14px;margin:0 6px 0 0!important;width:14px}.MuiChip-root.impact_badges_icon_label_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_icon_label_stroke:hover{background:#fff}.MuiChip-root.impact_badges_only_icon_stroke{background:#fff;border:1px solid #c3c8d4;cursor:default!important;height:24px;max-width:24px;padding:4px;width:24px}.MuiChip-root.impact_badges_only_icon_stroke.small-badge{height:20px;width:20px}.MuiChip-root.impact_badges_only_icon_stroke svg{color:#5f6673;font-size:14px!important;height:14px;margin:0!important;width:14px}.MuiChip-root.impact_badges_only_icon_stroke span{display:none}.MuiChip-root.impact_badges_only_icon_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_only_icon_stroke:hover{background:#f5f6fa}.MuiChip-root.impact_badges_only_label_stroke{background:#fff;border:1px solid #5f6673;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_only_label_stroke .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_stroke.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_stroke.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_stroke:hover{background:#fff}.MuiChip-root.info-badge-stroke{background:#fff;border:1px solid #5267f4}.MuiChip-root.info-badge-stroke .MuiChip-label,.MuiChip-root.info-badge-stroke svg{color:#4259ee}.MuiChip-root.info-badge-stroke.Mui-focusVisible,.MuiChip-root.info-badge-stroke:hover{background-color:#fff}.MuiChip-root.success-badge-stroke{background:#fff;border:1px solid #108431}.MuiChip-root.success-badge-stroke .MuiChip-label,.MuiChip-root.success-badge-stroke svg{color:#108431}.MuiChip-root.success-badge-stroke.Mui-focusVisible,.MuiChip-root.success-badge-stroke:hover{background:#fff}.MuiChip-root.warning-badge-stroke{background:#fff;border:1px solid #8c6f06}.MuiChip-root.warning-badge-stroke .MuiChip-label,.MuiChip-root.warning-badge-stroke svg{color:#8c6f06}.MuiChip-root.warning-badge-stroke.Mui-focusVisible,.MuiChip-root.warning-badge-stroke:hover{background:#fff}.MuiChip-root.error-badge-stroke{background:#fff;border:1px solid #d62f2d}.MuiChip-root.error-badge-stroke .MuiChip-label,.MuiChip-root.error-badge-stroke svg{color:#d62f2d}.MuiChip-root.error-badge-stroke.Mui-focusVisible,.MuiChip-root.error-badge-stroke:hover{background:#fff}.MuiChip-root.impact_badges_icon_label_subtle{background:#f2f3f4;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_icon_label_subtle .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_icon_label_subtle.small-badge{height:20px}.MuiChip-root.impact_badges_icon_label_subtle.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_icon_label_subtle svg{color:#5f6673!important;font-size:14px!important;height:14px;margin:0 6px 0 0!important;width:14px}.MuiChip-root.impact_badges_icon_label_subtle.Mui-focusVisible,.MuiChip-root.impact_badges_icon_label_subtle:hover{background:#f2f3f4}.MuiChip-root.info-badge-subtle svg{color:#5267f4!important}.MuiChip-root.success-badge-subtle svg{color:#0b832f!important}.MuiChip-root.warning-badge-subtle svg{color:#8c6f06!important}.MuiChip-root.error-badge-subtle svg{color:#d62f2d!important}.MuiChip-root.impact_badges_only_icon_subtle{background:#5f6673;cursor:default!important;height:24px;max-width:24px;padding:4px;width:24px}.MuiChip-root.impact_badges_only_icon_subtle.small-badge{height:20px;width:20px}.MuiChip-root.impact_badges_only_icon_subtle svg{color:#fff;font-size:14px!important;height:14px;margin:0!important;width:14px}.MuiChip-root.impact_badges_only_icon_subtle span{display:none}.MuiChip-root.impact_badges_only_icon_subtle.Mui-focusVisible,.MuiChip-root.impact_badges_only_icon_subtle:hover{background:#5f6673}.MuiChip-root.impact_badges_only_label_subtle{background:#f2f3f4;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_only_label_subtle .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_subtle.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_subtle.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_subtle svg{cursor:default!important;height:14px;width:14px}.MuiChip-root.impact_badges_only_label_subtle.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_subtle:hover{background:#f2f3f4}.MuiChip-root.info-badge-subtle{background:#f1f3fe}.MuiChip-root.info-badge-subtle .MuiChip-label{color:#5267f4}.MuiChip-root.info-badge-subtle.Mui-focusVisible,.MuiChip-root.info-badge-subtle:hover{background:#f1f3fe}.MuiChip-root.success-badge-subtle{background:#f4fff7}.MuiChip-root.success-badge-subtle .MuiChip-label{color:#0b832f}.MuiChip-root.success-badge-subtle.Mui-focusVisible,.MuiChip-root.success-badge-subtle:hover{background:#f4fff7}.MuiChip-root.warning-badge-subtle{background:#fdfae9}.MuiChip-root.warning-badge-subtle .MuiChip-label{color:#8c6f06}.MuiChip-root.warning-badge-subtle.Mui-focusVisible,.MuiChip-root.warning-badge-subtle:hover{background:#fdfae9}.MuiChip-root.error-badge-subtle{background:#fef4f5}.MuiChip-root.error-badge-subtle .MuiChip-label{color:#d62f2d}.MuiChip-root.error-badge-subtle.Mui-focusVisible,.MuiChip-root.error-badge-subtle:hover{background:#fef4f5}.MuiChip-root{font-family:Manrope,sans-serif!important}.MuiChip-root: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:focus:not(:focus-visible){box-shadow:none;outline:none}.MuiChip-root.Mui-disabled:focus-visible,.MuiChip-root.ia-btn-disabled:focus-visible,.MuiChip-root.ia-switch-disabled:focus-visible,.MuiChip-root.impact-select-disabled:focus-visible,.MuiChip-root.impact_input_disabled:focus-visible,.MuiChip-root.route-disabled:focus-visible,.MuiChip-root:disabled:focus-visible,.MuiChip-root[aria-disabled=true]:focus-visible{box-shadow:none;outline:none}.MuiChip-root.Mui-disabled{background-color:#f8f9fb!important;opacity:1!important}.MuiChip-root.Mui-disabled .MuiChip-label,.MuiChip-root.Mui-disabled svg{color:#b4bac7!important}.MuiChip-root.impact_badges_icon_label_filled .MuiChip-label,.MuiChip-root.impact_badges_icon_label_stroke .MuiChip-label,.MuiChip-root.impact_badges_icon_label_subtle .MuiChip-label,.MuiChip-root.impact_badges_only_label_filled.small-badge .MuiChip-label,.MuiChip-root.impact_badges_only_label_stroke.small-badge .MuiChip-label,.MuiChip-root.impact_badges_only_label_subtle.small-badge .MuiChip-label{font-size:12px}.MuiChip-root.impact_badges_icon_label_filled svg,.MuiChip-root.impact_badges_icon_label_stroke svg,.MuiChip-root.impact_badges_icon_label_subtle svg,.MuiChip-root.impact_badges_only_label_filled.small-badge svg,.MuiChip-root.impact_badges_only_label_stroke.small-badge svg,.MuiChip-root.impact_badges_only_label_subtle.small-badge svg{height:14px;width:14px}.MuiChip-root.impact_badges_icon_label_stroke.Mui-disabled,.MuiChip-root.impact_badges_only_label_stroke.Mui-disabled{border-color:#d9dde7!important}\n.impact_toast.MuiChip-root{background:#ebecf0;border-radius:4px;box-sizing:border-box;color:#758490;font-size:12px;height:26px;padding:4px 8px}.impact_toast.MuiChip-root.small_chip{height:22px;padding:2px 4px}.impact_toast.MuiChip-root span{padding:0}.impact_toast.MuiChip-root.MuiChip-deletable span{padding-right:8px}.impact_toast.MuiChip-root.MuiChip-deletable svg.MuiChip-deleteIcon{height:16px;margin:0;width:16px}.impact_toast.MuiChip-root.small_chip svg.MuiChip-deleteIcon{height:12px;margin:0;width:12px}.impact_toast.MuiChip-root.MuiChip-deletable:hover{background:#e2e4ed;cursor:pointer}.impact_toast.MuiChip-root.Mui-disabled{background:#efefef;color:#c7c7c7;opacity:1}.impact_chip_layout{border:1px solid #d4d4d4;display:flex;flex-direction:column;flex-wrap:wrap;gap:20px;margin:0 15px!important;padding:15px;width:100%}.impact_chip_layout h1{font-weight:600;margin-bottom:15px}')),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:#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_badges_icon_label_filled{background:#5f6673;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_icon_label_filled .MuiChip-label{color:#fff;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_icon_label_filled.small-badge{height:20px}.MuiChip-root.impact_badges_icon_label_filled.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_icon_label_filled svg{color:#fff!important;font-size:14px!important;height:14px;margin:0 6px 0 0!important;width:14px}.MuiChip-root.impact_badges_icon_label_filled.Mui-focusVisible,.MuiChip-root.impact_badges_icon_label_filled:hover{background:#5f6673}.MuiChip-root.impact_badges_only_icon_filled{background:#5f6673;cursor:default!important;height:24px;max-width:24px;padding:4px;width:24px}.MuiChip-root.impact_badges_only_icon_filled.small-badge{height:20px;width:20px}.MuiChip-root.impact_badges_only_icon_filled svg{color:#fff;font-size:14px!important;height:14px;margin:0!important;width:14px}.MuiChip-root.impact_badges_only_icon_filled span{display:none}.MuiChip-root.impact_badges_only_icon_filled.Mui-focusVisible,.MuiChip-root.impact_badges_only_icon_filled:hover{background:#5f6673}.MuiChip-root.impact_badges_only_label_filled{background:#5f6673;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_only_label_filled .MuiChip-label{color:#fff;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_filled.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_filled.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_filled svg{cursor:default!important;height:14px;width:14px}.MuiChip-root.impact_badges_only_label_filled.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_filled:hover{background:#5f6673}.MuiChip-root.info-badge-filled,.MuiChip-root.info-badge-filled.Mui-focusVisible,.MuiChip-root.info-badge-filled:hover{background:#5267f4}.MuiChip-root.success-badge-filled,.MuiChip-root.success-badge-filled.Mui-focusVisible,.MuiChip-root.success-badge-filled:hover{background:#108431}.MuiChip-root.warning-badge-filled,.MuiChip-root.warning-badge-filled.Mui-focusVisible,.MuiChip-root.warning-badge-filled:hover{background:#ffe174}.MuiChip-root.warning-badge-filled .MuiChip-label{color:#1f2b4d}.MuiChip-root.warning-badge-filled svg{color:#1f2b4d!important}.MuiChip-root.error-badge-filled,.MuiChip-root.error-badge-filled.Mui-focusVisible,.MuiChip-root.error-badge-filled:hover{background:#ec4c5c}.MuiChip-root.impact_badges_icon_label_stroke{background:#fff;border:1px solid #5f6673;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_icon_label_stroke .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_icon_label_stroke.small-badge{height:20px}.MuiChip-root.impact_badges_icon_label_stroke.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_icon_label_stroke svg{color:#5f6673;font-size:14px!important;height:14px;margin:0 6px 0 0!important;width:14px}.MuiChip-root.impact_badges_icon_label_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_icon_label_stroke:hover{background:#fff}.MuiChip-root.impact_badges_only_icon_stroke{background:#fff;border:1px solid #c3c8d4;cursor:default!important;height:24px;max-width:24px;padding:4px;width:24px}.MuiChip-root.impact_badges_only_icon_stroke.small-badge{height:20px;width:20px}.MuiChip-root.impact_badges_only_icon_stroke svg{color:#5f6673;font-size:14px!important;height:14px;margin:0!important;width:14px}.MuiChip-root.impact_badges_only_icon_stroke span{display:none}.MuiChip-root.impact_badges_only_icon_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_only_icon_stroke:hover{background:#f5f6fa}.MuiChip-root.impact_badges_only_label_stroke{background:#fff;border:1px solid #5f6673;height:24px!important;max-width:max-content;min-height:24px;padding:2px 8px}.MuiChip-root.impact_badges_only_label_stroke .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_stroke.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_stroke.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_stroke:hover{background:#fff}.MuiChip-root.info-badge-stroke{background:#fff;border:1px solid #5267f4}.MuiChip-root.info-badge-stroke .MuiChip-label,.MuiChip-root.info-badge-stroke svg{color:#4259ee}.MuiChip-root.info-badge-stroke.Mui-focusVisible,.MuiChip-root.info-badge-stroke:hover{background-color:#fff}.MuiChip-root.success-badge-stroke{background:#fff;border:1px solid #108431}.MuiChip-root.success-badge-stroke .MuiChip-label,.MuiChip-root.success-badge-stroke svg{color:#108431}.MuiChip-root.success-badge-stroke.Mui-focusVisible,.MuiChip-root.success-badge-stroke:hover{background:#fff}.MuiChip-root.warning-badge-stroke{background:#fff;border:1px solid #8c6f06}.MuiChip-root.warning-badge-stroke .MuiChip-label,.MuiChip-root.warning-badge-stroke svg{color:#8c6f06}.MuiChip-root.warning-badge-stroke.Mui-focusVisible,.MuiChip-root.warning-badge-stroke:hover{background:#fff}.MuiChip-root.error-badge-stroke{background:#fff;border:1px solid #d62f2d}.MuiChip-root.error-badge-stroke .MuiChip-label,.MuiChip-root.error-badge-stroke svg{color:#d62f2d}.MuiChip-root.error-badge-stroke.Mui-focusVisible,.MuiChip-root.error-badge-stroke:hover{background:#fff}.MuiChip-root.impact_badges_icon_label_subtle{background:#f2f3f4;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_icon_label_subtle .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_icon_label_subtle.small-badge{height:20px}.MuiChip-root.impact_badges_icon_label_subtle.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_icon_label_subtle svg{color:#5f6673!important;font-size:14px!important;height:14px;margin:0 6px 0 0!important;width:14px}.MuiChip-root.impact_badges_icon_label_subtle.Mui-focusVisible,.MuiChip-root.impact_badges_icon_label_subtle:hover{background:#f2f3f4}.MuiChip-root.info-badge-subtle svg{color:#5267f4!important}.MuiChip-root.success-badge-subtle svg{color:#0b832f!important}.MuiChip-root.warning-badge-subtle svg{color:#8c6f06!important}.MuiChip-root.error-badge-subtle svg{color:#d62f2d!important}.MuiChip-root.impact_badges_only_icon_subtle{background:#5f6673;cursor:default!important;height:24px;max-width:24px;padding:4px;width:24px}.MuiChip-root.impact_badges_only_icon_subtle.small-badge{height:20px;width:20px}.MuiChip-root.impact_badges_only_icon_subtle svg{color:#fff;font-size:14px!important;height:14px;margin:0!important;width:14px}.MuiChip-root.impact_badges_only_icon_subtle span{display:none}.MuiChip-root.impact_badges_only_icon_subtle.Mui-focusVisible,.MuiChip-root.impact_badges_only_icon_subtle:hover{background:#5f6673}.MuiChip-root.impact_badges_only_label_subtle{background:#f2f3f4;cursor:default;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_only_label_subtle .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_subtle.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_subtle.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_subtle svg{cursor:default!important;height:14px;width:14px}.MuiChip-root.impact_badges_only_label_subtle.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_subtle:hover{background:#f2f3f4}.MuiChip-root.info-badge-subtle{background:#f1f3fe}.MuiChip-root.info-badge-subtle .MuiChip-label{color:#5267f4}.MuiChip-root.info-badge-subtle.Mui-focusVisible,.MuiChip-root.info-badge-subtle:hover{background:#f1f3fe}.MuiChip-root.success-badge-subtle{background:#f4fff7}.MuiChip-root.success-badge-subtle .MuiChip-label{color:#0b832f}.MuiChip-root.success-badge-subtle.Mui-focusVisible,.MuiChip-root.success-badge-subtle:hover{background:#f4fff7}.MuiChip-root.warning-badge-subtle{background:#fdfae9}.MuiChip-root.warning-badge-subtle .MuiChip-label{color:#8c6f06}.MuiChip-root.warning-badge-subtle.Mui-focusVisible,.MuiChip-root.warning-badge-subtle:hover{background:#fdfae9}.MuiChip-root.error-badge-subtle{background:#fef4f5}.MuiChip-root.error-badge-subtle .MuiChip-label{color:#d62f2d}.MuiChip-root.error-badge-subtle.Mui-focusVisible,.MuiChip-root.error-badge-subtle:hover{background:#fef4f5}.MuiChip-root{font-family:Manrope,sans-serif!important}.MuiChip-root: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:focus:not(:focus-visible){box-shadow:none;outline:none}.MuiChip-root.Mui-disabled:focus-visible,.MuiChip-root.ia-btn-disabled:focus-visible,.MuiChip-root.ia-switch-disabled:focus-visible,.MuiChip-root.impact-select-disabled:focus-visible,.MuiChip-root.impact_input_disabled:focus-visible,.MuiChip-root.route-disabled:focus-visible,.MuiChip-root:disabled:focus-visible,.MuiChip-root[aria-disabled=true]:focus-visible{box-shadow:none;outline:none}.MuiChip-root.Mui-disabled{background-color:#f8f9fb!important;opacity:1!important}.MuiChip-root.Mui-disabled .MuiChip-label,.MuiChip-root.Mui-disabled svg{color:#b4bac7!important}.MuiChip-root.impact_badges_icon_label_filled .MuiChip-label,.MuiChip-root.impact_badges_icon_label_stroke .MuiChip-label,.MuiChip-root.impact_badges_icon_label_subtle .MuiChip-label,.MuiChip-root.impact_badges_only_label_filled.small-badge .MuiChip-label,.MuiChip-root.impact_badges_only_label_stroke.small-badge .MuiChip-label,.MuiChip-root.impact_badges_only_label_subtle.small-badge .MuiChip-label{font-size:12px}.MuiChip-root.impact_badges_icon_label_filled svg,.MuiChip-root.impact_badges_icon_label_stroke svg,.MuiChip-root.impact_badges_icon_label_subtle svg,.MuiChip-root.impact_badges_only_label_filled.small-badge svg,.MuiChip-root.impact_badges_only_label_stroke.small-badge svg,.MuiChip-root.impact_badges_only_label_subtle.small-badge svg{height:14px;width:14px}.MuiChip-root.impact_badges_icon_label_stroke.Mui-disabled,.MuiChip-root.impact_badges_only_label_stroke.Mui-disabled{border-color:#d9dde7!important}\n.impact_toast.MuiChip-root{background:#ebecf0;border-radius:4px;box-sizing:border-box;color:#758490;font-size:12px;height:26px;padding:4px 8px}.impact_toast.MuiChip-root.small_chip{height:22px;padding:2px 4px}.impact_toast.MuiChip-root span{padding:0}.impact_toast.MuiChip-root.MuiChip-deletable span{padding-right:8px}.impact_toast.MuiChip-root.MuiChip-deletable svg.MuiChip-deleteIcon{height:16px;margin:0;width:16px}.impact_toast.MuiChip-root.small_chip svg.MuiChip-deleteIcon{height:12px;margin:0;width:12px}.impact_toast.MuiChip-root.MuiChip-deletable:hover{background:#e2e4ed;cursor:pointer}.impact_toast.MuiChip-root.Mui-disabled{background:#efefef;color:#c7c7c7;opacity:1}.impact_chip_layout{border:1px solid #d4d4d4;display:flex;flex-direction:column;flex-wrap:wrap;gap:20px;margin:0 15px!important;padding:15px;width:100%}.impact_chip_layout h1{font-weight:600;margin-bottom:15px}')),document.head.appendChild(i)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import FilledBadges from "./filled/index.js";
4
4
  import StrokeBadges from "./stroke/index.js";
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode(".MuiChip-root.impact_badges_only_label_stroke{background:#fff;border:1px solid #5f6673;height:24px;max-width:max-content;padding:2px 8px}.MuiChip-root.impact_badges_only_label_stroke .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_stroke.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_stroke.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_stroke:hover{background:#fff}.MuiChip-root.info-badge-stroke{background:#fff;border:1px solid #5267f4}.MuiChip-root.info-badge-stroke .MuiChip-label,.MuiChip-root.info-badge-stroke svg{color:#4259ee}.MuiChip-root.info-badge-stroke.Mui-focusVisible,.MuiChip-root.info-badge-stroke:hover{background-color:#fff}.MuiChip-root.success-badge-stroke{background:#fff;border:1px solid #108431}.MuiChip-root.success-badge-stroke .MuiChip-label,.MuiChip-root.success-badge-stroke svg{color:#108431}.MuiChip-root.success-badge-stroke.Mui-focusVisible,.MuiChip-root.success-badge-stroke:hover{background:#fff}.MuiChip-root.warning-badge-stroke{background:#fff;border:1px solid #8c6f06}.MuiChip-root.warning-badge-stroke .MuiChip-label,.MuiChip-root.warning-badge-stroke svg{color:#8c6f06}.MuiChip-root.warning-badge-stroke.Mui-focusVisible,.MuiChip-root.warning-badge-stroke:hover{background:#fff}.MuiChip-root.error-badge-stroke{background:#fff;border:1px solid #d62f2d}.MuiChip-root.error-badge-stroke .MuiChip-label,.MuiChip-root.error-badge-stroke svg{color:#d62f2d}.MuiChip-root.error-badge-stroke.Mui-focusVisible,.MuiChip-root.error-badge-stroke:hover{background:#fff}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode(".MuiChip-root.impact_badges_only_label_stroke{background:#fff;border:1px solid #5f6673;height:24px!important;max-width:max-content;min-height:24px;padding:2px 8px}.MuiChip-root.impact_badges_only_label_stroke .MuiChip-label{color:#5f6673;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;line-height:20px;padding:0}.MuiChip-root.impact_badges_only_label_stroke.small-badge{height:20px}.MuiChip-root.impact_badges_only_label_stroke.small-badge .MuiChip-label{line-height:16px}.MuiChip-root.impact_badges_only_label_stroke.Mui-focusVisible,.MuiChip-root.impact_badges_only_label_stroke:hover{background:#fff}.MuiChip-root.info-badge-stroke{background:#fff;border:1px solid #5267f4}.MuiChip-root.info-badge-stroke .MuiChip-label,.MuiChip-root.info-badge-stroke svg{color:#4259ee}.MuiChip-root.info-badge-stroke.Mui-focusVisible,.MuiChip-root.info-badge-stroke:hover{background-color:#fff}.MuiChip-root.success-badge-stroke{background:#fff;border:1px solid #108431}.MuiChip-root.success-badge-stroke .MuiChip-label,.MuiChip-root.success-badge-stroke svg{color:#108431}.MuiChip-root.success-badge-stroke.Mui-focusVisible,.MuiChip-root.success-badge-stroke:hover{background:#fff}.MuiChip-root.warning-badge-stroke{background:#fff;border:1px solid #8c6f06}.MuiChip-root.warning-badge-stroke .MuiChip-label,.MuiChip-root.warning-badge-stroke svg{color:#8c6f06}.MuiChip-root.warning-badge-stroke.Mui-focusVisible,.MuiChip-root.warning-badge-stroke:hover{background:#fff}.MuiChip-root.error-badge-stroke{background:#fff;border:1px solid #d62f2d}.MuiChip-root.error-badge-stroke .MuiChip-label,.MuiChip-root.error-badge-stroke svg{color:#d62f2d}.MuiChip-root.error-badge-stroke.Mui-focusVisible,.MuiChip-root.error-badge-stroke:hover{background:#fff}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
2
  import { jsx } from "react/jsx-runtime";
3
3
 
4
4
  import Chip from "../../../../node_modules/@mui/material/Chip/Chip.js";
@@ -19,13 +19,6 @@ export interface PanelProps extends BaseComponentProps, Omit<DrawerProps, 'ancho
19
19
  onClose?: () => void;
20
20
  /** Panel title in the header */
21
21
  title?: ReactNode;
22
- /**
23
- * Whether to show the built-in close icon in the header.
24
- * @default true
25
- */
26
- showCloseButton?: boolean;
27
- /** Custom content rendered on the right side of the header (e.g. a Button) */
28
- headerRightContent?: ReactNode;
29
22
  /** Size of the panel (affects width) */
30
23
  size?: PanelSize;
31
24
  /** Custom width in pixels (overrides size when set) */
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.types.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC9D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,UACf,SACE,kBAAkB,EAClB,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IACzE,6BAA6B;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,gCAAgC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,6EAA6E;IAC7E,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,wCAAwC;IACxC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,oCAAoC;IACpC,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,4CAA4C;IAC5C,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,8CAA8C;IAC9C,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;IACpC,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1C,2CAA2C;IAC3C,oBAAoB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5C,yBAAyB;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC"}
1
+ {"version":3,"file":"Panel.types.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC9D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,UACf,SACE,kBAAkB,EAClB,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IACzE,6BAA6B;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,gCAAgC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,6EAA6E;IAC7E,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gCAAgC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wCAAwC;IACxC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,oCAAoC;IACpC,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,4CAA4C;IAC5C,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,8CAA8C;IAC9C,sBAAsB,CAAC,EAAE,MAAM,IAAI,CAAC;IACpC,yCAAyC;IACzC,kBAAkB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1C,2CAA2C;IAC3C,oBAAoB,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5C,yBAAyB;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC"}
@@ -1,5 +1,5 @@
1
1
  import { PanelProps } from './Panel.types';
2
2
 
3
3
  export type { PanelProps, PanelAnchor, PanelSize } from './Panel.types';
4
- export declare function Panel({ className, title, size, anchor, open, setIsOpen, children, onClose, primaryButtonLabel, onPrimaryButtonClick, secondaryButtonLabel, onSecondaryButtonClick, primaryButtonProps, secondaryButtonProps, width, zIndex, customFooterContent, resizable, minWidth, maxWidth, onResize, showCloseButton, headerRightContent, ...args }: PanelProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function Panel({ className, title, size, anchor, open, setIsOpen, children, onClose, primaryButtonLabel, onPrimaryButtonClick, secondaryButtonLabel, onSecondaryButtonClick, primaryButtonProps, secondaryButtonProps, width, zIndex, customFooterContent, resizable, minWidth, maxWidth, onResize, ...args }: PanelProps): import("react/jsx-runtime").JSX.Element;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AAC3D,OAAO,qBAAqB,CAAC;AAE7B,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAWxE,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,KAAK,EACL,IAAI,EACJ,MAAgB,EAChB,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,EACL,MAAa,EACb,mBAAmB,EACnB,SAAS,EACT,QAAc,EACd,QAAQ,EACR,QAAQ,EACR,eAAsB,EACtB,kBAAkB,EAClB,GAAG,IAAI,EACR,EAAE,UAAU,2CAkIZ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AAC3D,OAAO,qBAAqB,CAAC;AAE7B,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAWxE,wBAAgB,KAAK,CAAC,EACpB,SAAS,EACT,KAAK,EACL,IAAI,EACJ,MAAgB,EAChB,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,EACL,MAAa,EACb,mBAAmB,EACnB,SAAS,EACT,QAAc,EACd,QAAQ,EACR,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,UAAU,2CA+HZ"}
@@ -35,8 +35,6 @@ function Panel({
35
35
  minWidth = 375,
36
36
  maxWidth,
37
37
  onResize,
38
- showCloseButton = true,
39
- headerRightContent,
40
38
  ...args
41
39
  }) {
42
40
  const { t } = useTranslation();
@@ -113,8 +111,7 @@ function Panel({
113
111
  resizerHandle,
114
112
  /* @__PURE__ */ jsxs("div", { className: "impact_drawer_header", children: [
115
113
  /* @__PURE__ */ jsx("div", { className: "impact_drawer_heading", children: title }),
116
- headerRightContent,
117
- showCloseButton ? /* @__PURE__ */ jsx(
114
+ /* @__PURE__ */ jsx(
118
115
  "span",
119
116
  {
120
117
  "aria-label": t("common.close"),
@@ -130,7 +127,7 @@ function Panel({
130
127
  }
131
128
  }
132
129
  }
133
- ) : null
130
+ )
134
131
  ] }),
135
132
  /* @__PURE__ */ jsx(
136
133
  "div",
@@ -1,12 +1,12 @@
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}.table-chat-panel .impact_drawer_container{background:#f8f9fb}.table-chat-panel .impact_drawer_header{background:#fff;border-bottom:1px solid #d9dde7;box-sizing:border-box;height:auto;padding:12px 16px}.table-chat-panel .impact_drawer_header .impact_drawer_heading{color:#1f2b4d;font-size:20px;font-weight:800;line-height:30px}.table-chat-panel .impact_drawer_header .table-chat-panel-close{height:26px;min-width:26px;padding:0;width:26px}.table-chat-panel .impact_drawer_body{height:calc(100% - 56px)!important;padding:6px}.table-chat-container{box-sizing:border-box;display:flex;flex-direction:row;gap:10px;height:100%;overflow:hidden;padding:4px;width:100%}.table-chat-container .table-left-panel-container{flex:0 0 350px;flex-shrink:0;max-width:350px;width:350px;z-index:2}.empty-container{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;justify-content:center;max-width:100%;padding:16px;text-align:center;width:100%}.empty-container img{height:197px;object-fit:contain;width:190px}.empty-container__title{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container__subtitle{color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:1.25;text-align:center}.loader-padding{padding:16px;width:100%}')),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:#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}#table-chat-side-panel .impact_drawer_container{background:#fff}#table-chat-side-panel .impact_drawer_header{background:#eceefd;border-bottom:1px solid #d9dde7}#table-chat-side-panel .impact_drawer_body{padding:0}.table-chat-container{box-sizing:border-box;display:flex;flex-direction:row;gap:10px;height:100%;overflow:hidden;width:100%}.table-chat-container .table-left-panel-container{flex:0 0 350px;flex-shrink:0;max-width:350px;width:350px}.table-chat-container .table-chat-right-section-container{flex:1 1 0;max-width:100%;min-width:0;width:auto}.empty-container{align-items:center;display:flex;justify-content:center}.empty-container img{height:197px;width:190px}.empty-container p:first-of-type{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container p:nth-of-type(2){color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:125%;text-align:center}.loader-padding{padding:16px;width:100%}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
 
4
4
  import { EmptyStateImage } from "../EmptyState/EmptyStateImage.js";
5
5
  const EmptyContainer = ({ title, subTitle }) => {
6
6
  return /* @__PURE__ */ jsxs("div", { className: "table-chat-right-section-container-empty empty-container", children: [
7
7
  /* @__PURE__ */ jsx(EmptyStateImage, {}),
8
- title ? /* @__PURE__ */ jsx("p", { className: "empty-container__title", children: title }) : null,
9
- subTitle ? /* @__PURE__ */ jsx("p", { className: "empty-container__subtitle", children: subTitle }) : null
8
+ /* @__PURE__ */ jsx("p", { children: title }),
9
+ /* @__PURE__ */ jsx("p", { children: subTitle })
10
10
  ] });
11
11
  };
12
12
  export {
@@ -1,9 +1,8 @@
1
1
 
2
- declare const TableChatSidePanel: ({ isOpen, handleClose, chatConfiguration, entryContext }: {
2
+ declare const TableChatSidePanel: ({ isOpen, handleClose, chatConfiguration }: {
3
3
  isOpen: any;
4
4
  handleClose: any;
5
5
  chatConfiguration: any;
6
- entryContext?: null | undefined;
7
6
  }) => import("react/jsx-runtime").JSX.Element;
8
7
  export default TableChatSidePanel;
9
8
  //# sourceMappingURL=TableChatSidePanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableChatSidePanel.d.ts","sourceRoot":"","sources":["../../../src/components/TableChat/TableChatSidePanel.tsx"],"names":[],"mappings":"AAeA,OAAO,kCAAkC,CAAC;AAE1C,QAAA,MAAM,kBAAkB,GAAI;;;;;CAA+D,4CA+/B1F,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"TableChatSidePanel.d.ts","sourceRoot":"","sources":["../../../src/components/TableChat/TableChatSidePanel.tsx"],"names":[],"mappings":"AAaA,OAAO,kCAAkC,CAAC;AAE1C,QAAA,MAAM,kBAAkB,GAAI;;;;CAA0C,4CAmvBrE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,8 +1,6 @@
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}.table-chat-panel .impact_drawer_container{background:#f8f9fb}.table-chat-panel .impact_drawer_header{background:#fff;border-bottom:1px solid #d9dde7;box-sizing:border-box;height:auto;padding:12px 16px}.table-chat-panel .impact_drawer_header .impact_drawer_heading{color:#1f2b4d;font-size:20px;font-weight:800;line-height:30px}.table-chat-panel .impact_drawer_header .table-chat-panel-close{height:26px;min-width:26px;padding:0;width:26px}.table-chat-panel .impact_drawer_body{height:calc(100% - 56px)!important;padding:6px}.table-chat-container{box-sizing:border-box;display:flex;flex-direction:row;gap:10px;height:100%;overflow:hidden;padding:4px;width:100%}.table-chat-container .table-left-panel-container{flex:0 0 350px;flex-shrink:0;max-width:350px;width:350px;z-index:2}.empty-container{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;justify-content:center;max-width:100%;padding:16px;text-align:center;width:100%}.empty-container img{height:197px;object-fit:contain;width:190px}.empty-container__title{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container__subtitle{color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:1.25;text-align:center}.loader-padding{padding:16px;width:100%}')),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:#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}#table-chat-side-panel .impact_drawer_container{background:#fff}#table-chat-side-panel .impact_drawer_header{background:#eceefd;border-bottom:1px solid #d9dde7}#table-chat-side-panel .impact_drawer_body{padding:0}.table-chat-container{box-sizing:border-box;display:flex;flex-direction:row;gap:10px;height:100%;overflow:hidden;width:100%}.table-chat-container .table-left-panel-container{flex:0 0 350px;flex-shrink:0;max-width:350px;width:350px}.table-chat-container .table-chat-right-section-container{flex:1 1 0;max-width:100%;min-width:0;width:auto}.empty-container{align-items:center;display:flex;justify-content:center}.empty-container img{height:197px;width:190px}.empty-container p:first-of-type{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container p:nth-of-type(2){color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:125%;text-align:center}.loader-padding{padding:16px;width:100%}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
2
2
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
3
3
  import { useState, useCallback, useMemo, useEffect } from "react";
4
- import default_1 from "../../node_modules/@mui/icons-material/Close.js";
5
- import { Button } from "../Button/index.js";
6
4
  import { Panel } from "../Panel/index.js";
7
5
  import { Prompt } from "../Prompt/index.js";
8
6
  import { Toast } from "../Toast/index.js";
@@ -15,8 +13,8 @@ import { EmptyContainer } from "./EmptyContainer.js";
15
13
  import { formatChatHeaderTimestamp } from "./utils/formatChatTimestamp.js";
16
14
 
17
15
  import { useTranslation } from "../../i18n/useTranslation.js";
18
- const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryContext = null }) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R;
16
+ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration }) => {
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L;
20
18
  const { t } = useTranslation();
21
19
  const [selectedChannelId, setSelectedChannelId] = useState(null);
22
20
  const [selectedChannelInfo, setSelectedChannelInfo] = useState(null);
@@ -173,14 +171,9 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
173
171
  setToastVariant("info");
174
172
  }
175
173
  };
176
- const handleChatClick = async (chatId, selectedChatData, options = {}) => {
174
+ const handleChatClick = async (chatId, selectedChatData) => {
177
175
  var _a2;
178
- const { screen, keepScreen = false } = options;
179
- if (screen) {
180
- setCurrentSelectedScreen(screen);
181
- } else if (!keepScreen) {
182
- setCurrentSelectedScreen("chats");
183
- }
176
+ setCurrentSelectedScreen("chats");
184
177
  setLoadingMessages(true);
185
178
  setSelectedChatId(chatId);
186
179
  setSelectedChatInfo(selectedChatData);
@@ -196,7 +189,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
196
189
  setLoadingMessages(false);
197
190
  }
198
191
  };
199
- const fetchChatList = async (currentActiveChannelInfo, { autoOpenFirst = true } = {}) => {
192
+ const fetchChatList = async (currentActiveChannelInfo) => {
200
193
  var _a2;
201
194
  setCurrentSelectedScreen("chats");
202
195
  setSelectedChat([]);
@@ -206,10 +199,6 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
206
199
  const chatList2 = await chatConfiguration.leftPanel.loadChatList(currentActiveChannelInfo);
207
200
  setChatList(chatList2);
208
201
  setOriginalChatList(chatList2);
209
- if (autoOpenFirst && (chatList2 == null ? void 0 : chatList2.length) > 0) {
210
- const firstChat = chatList2[0];
211
- await handleChatClick(firstChat.id, firstChat, { keepScreen: true });
212
- }
213
202
  return chatList2;
214
203
  } catch (err) {
215
204
  console.error("[TableChatSidePanel] [fetchChatList] [error]:", err);
@@ -236,7 +225,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
236
225
  title: t("tableChat.sidePanel.chatList"),
237
226
  objectType: (_e2 = newChat == null ? void 0 : newChat.otherProps) == null ? void 0 : _e2.object_type
238
227
  };
239
- await fetchChatList(newChannelInfo, { autoOpenFirst: false });
228
+ await fetchChatList(newChannelInfo);
240
229
  setSelectedChannelInfo(newChannelInfo);
241
230
  setSelectedChannelId((_g2 = (_f2 = newChat == null ? void 0 : newChat.otherProps) == null ? void 0 : _f2.object_ids) == null ? void 0 : _g2[0]);
242
231
  await handleChatClick(newChat.id, newChat);
@@ -252,12 +241,6 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
252
241
  };
253
242
  const fetchChannelList = async () => {
254
243
  setCurrentSelectedScreen("channels");
255
- setSelectedChannelId(null);
256
- setSelectedChannelInfo(null);
257
- setSelectedChatId(null);
258
- setSelectedChatInfo(null);
259
- setChatList([]);
260
- setOriginalChatList([]);
261
244
  setLoadingChannelsOrChats(true);
262
245
  try {
263
246
  const channelList = await chatConfiguration.leftPanel.loadChannelsList();
@@ -313,90 +296,11 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
313
296
  setLoadingChannelsOrChats(false);
314
297
  }
315
298
  };
316
- const openChatFromSelection = async (selectedRows = []) => {
317
- var _a2;
318
- setLoadingChannelsOrChats(true);
319
- setLoadingMessages(true);
320
- setIsCreateNewChatOpen(false);
321
- try {
322
- const onStartNewChat = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _a2.onStartNewChat;
323
- if (typeof onStartNewChat !== "function") {
324
- await fetchChannelList();
325
- return;
326
- }
327
- const result = await onStartNewChat(selectedRows);
328
- const channel = result == null ? void 0 : result.channel;
329
- const chatToOpen = (result == null ? void 0 : result.openChat) || (result == null ? void 0 : result.formattedChat);
330
- if (!(result == null ? void 0 : result.success) || !channel || !(chatToOpen == null ? void 0 : chatToOpen.id)) {
331
- await fetchChannelList();
332
- return;
333
- }
334
- const nextChannels = Array.isArray(result.channelsList) ? result.channelsList : [channel];
335
- const nextScreen = result.screen === "channels" ? "channels" : "chats";
336
- const nextChatList = Array.isArray(result.chatList) ? result.chatList : [chatToOpen];
337
- setChannelsList(nextChannels);
338
- setOriginalChanelList(nextChannels);
339
- setSelectedChannelId(channel.id);
340
- setSelectedChannelInfo(channel);
341
- setChatList(nextChatList);
342
- setOriginalChatList(nextChatList);
343
- setCurrentSelectedScreen(nextScreen);
344
- await handleChatClick(chatToOpen.id, chatToOpen, { screen: nextScreen });
345
- } catch (error) {
346
- console.error("[TableChatSidePanel] [openChatFromSelection] [error]:", error);
347
- handleToast(true, t("tableChat.sidePanel.errorLoadingChat"), "error");
348
- await fetchChannelList();
349
- } finally {
350
- setLoadingChannelsOrChats(false);
351
- setLoadingMessages(false);
352
- }
353
- };
354
- const openChannelFromRow = async (selectedRows = []) => {
355
- var _a2, _b2;
356
- setLoadingChannelsOrChats(true);
357
- setIsCreateNewChatOpen(false);
358
- setSelectedChatId(null);
359
- setSelectedChatInfo(null);
360
- try {
361
- const onOpenChannelFromRow = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _a2.onOpenChannelFromRow;
362
- if (typeof onOpenChannelFromRow !== "function") {
363
- await fetchChannelList();
364
- return;
365
- }
366
- const result = await onOpenChannelFromRow(selectedRows);
367
- if (!(result == null ? void 0 : result.success) || !(result == null ? void 0 : result.channel)) {
368
- await fetchChannelList();
369
- return;
370
- }
371
- const nextChannels = Array.isArray(result.channelsList) ? result.channelsList : [result.channel];
372
- const nextChatList = Array.isArray(result.chatList) ? result.chatList : [];
373
- const nextScreen = result.screen === "channels" ? "channels" : "chats";
374
- setChannelsList(nextChannels);
375
- setOriginalChanelList(nextChannels);
376
- setSelectedChannelId(result.channel.id);
377
- setSelectedChannelInfo(result.channel);
378
- setChatList(nextChatList);
379
- setOriginalChatList(nextChatList);
380
- setCurrentSelectedScreen(nextScreen);
381
- const chatToOpen = ((_b2 = result.openChat) == null ? void 0 : _b2.id) != null ? result.openChat : nextChatList.length > 0 ? nextChatList[0] : null;
382
- if (chatToOpen == null ? void 0 : chatToOpen.id) {
383
- await handleChatClick(chatToOpen.id, chatToOpen, { screen: nextScreen });
384
- }
385
- } catch (error) {
386
- console.error("[TableChatSidePanel] [openChannelFromRow] [error]:", error);
387
- handleToast(true, t("tableChat.sidePanel.errorLoadingChat"), "error");
388
- await fetchChannelList();
389
- } finally {
390
- setLoadingChannelsOrChats(false);
391
- }
392
- };
393
299
  const clearnupLocalStates = () => {
394
300
  setSelectedChannelId(null);
395
301
  setSelectedChannelInfo(null);
396
302
  setSelectedChatInfo(null);
397
303
  setSelectedChatId(null);
398
- setChannelsList([]);
399
- setOriginalChanelList([]);
400
304
  setChatList([]);
401
305
  setOriginalChatList([]);
402
306
  setSelectedChat([]);
@@ -408,7 +312,6 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
408
312
  setIsMoreOpen(false);
409
313
  setHighlightMessageId(null);
410
314
  setIsCreateNewChatOpen(false);
411
- setCurrentSelectedScreen("channels");
412
315
  };
413
316
  const handleBackToChannels = async () => {
414
317
  var _a2;
@@ -419,17 +322,10 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
419
322
  await fetchChannelList();
420
323
  };
421
324
  useEffect(() => {
422
- if (!isOpen) {
423
- return;
424
- }
425
- if ((entryContext == null ? void 0 : entryContext.mode) === "startNewChat") {
426
- openChatFromSelection(entryContext.selectedRows);
427
- } else if ((entryContext == null ? void 0 : entryContext.mode) === "openChannel") {
428
- openChannelFromRow(entryContext.selectedRows);
429
- } else {
325
+ if (isOpen) {
430
326
  fetchChannelsOrChats();
431
327
  }
432
- }, [isOpen, entryContext == null ? void 0 : entryContext.mode, entryContext == null ? void 0 : entryContext.openedAt]);
328
+ }, [isOpen]);
433
329
  useEffect(() => {
434
330
  var _a2;
435
331
  if (!isOpen) {
@@ -477,42 +373,13 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
477
373
  setHighlightTrigger((prev) => prev + 1);
478
374
  };
479
375
  const handleChannelClick = async (selectedChannelId2, selectedChannelInfo2) => {
480
- var _a2, _b2, _c2;
481
376
  setSelectedChannelId(selectedChannelId2);
482
377
  setSelectedChannelInfo(selectedChannelInfo2);
483
- setSelectedChatId(null);
484
- setSelectedChatInfo(null);
485
- setSelectedChat([]);
486
- const onChannelOpen = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _a2.onChannelOpen;
487
- if (typeof onChannelOpen === "function") {
488
- try {
489
- const result = await onChannelOpen(selectedChannelInfo2);
490
- if (Array.isArray(result == null ? void 0 : result.channelsList)) {
491
- setChannelsList(result.channelsList);
492
- setOriginalChanelList(result.channelsList);
493
- }
494
- if (Array.isArray(result == null ? void 0 : result.chatList)) {
495
- setCurrentSelectedScreen(result.screen === "channels" ? "channels" : "chats");
496
- setChatList(result.chatList);
497
- setOriginalChatList(result.chatList);
498
- } else {
499
- await fetchChatList(selectedChannelInfo2);
500
- return;
501
- }
502
- const chatToOpen = ((_b2 = result == null ? void 0 : result.openChat) == null ? void 0 : _b2.id) != null ? result.openChat : ((_c2 = result == null ? void 0 : result.chatList) == null ? void 0 : _c2.length) > 0 ? result.chatList[0] : null;
503
- if (chatToOpen == null ? void 0 : chatToOpen.id) {
504
- await handleChatClick(chatToOpen.id, chatToOpen, {
505
- screen: result.screen === "channels" ? "channels" : "chats"
506
- });
507
- }
508
- return;
509
- } catch (error) {
510
- console.error("[TableChatSidePanel] [onChannelOpen] [error]:", error);
511
- handleToast(true, t("tableChat.sidePanel.errorLoadingChat"), "error");
512
- return;
513
- }
378
+ const chatList2 = await fetchChatList(selectedChannelInfo2);
379
+ if (chatList2 && chatList2.length > 0) {
380
+ const firstChat = chatList2 == null ? void 0 : chatList2[0];
381
+ await handleChatClick(firstChat == null ? void 0 : firstChat.id, firstChat);
514
382
  }
515
- await fetchChatList(selectedChannelInfo2);
516
383
  };
517
384
  const handleChatSelect = (selectedChatId2) => {
518
385
  setSelectedChat(
@@ -602,22 +469,10 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
602
469
  {
603
470
  anchor: "right",
604
471
  className: "table-chat-panel",
605
- headerRightContent: /* @__PURE__ */ jsx(
606
- Button,
607
- {
608
- "aria-label": t("common.close"),
609
- className: "table-chat-panel-close",
610
- icon: /* @__PURE__ */ jsx(default_1, { fontSize: "small" }),
611
- size: "medium",
612
- variant: "text",
613
- onClick: handleClose
614
- }
615
- ),
616
472
  open: isOpen,
617
473
  setIsOpen: () => {
618
474
  setIsChatOpen(!isChatOpen);
619
475
  },
620
- showCloseButton: false,
621
476
  size: "medium",
622
477
  title: chatConfiguration == null ? void 0 : chatConfiguration.title,
623
478
  width: pinnedMsg || showThread ? 1450 : 985,
@@ -642,7 +497,7 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
642
497
  showAddChatBtn: (_u = (_t = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _t.leftHeaderPanel) == null ? void 0 : _u.showAddChat,
643
498
  showChannelList: isChannelsScreen,
644
499
  showCheckbox: (_w = (_v = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _v.leftChatPanel) == null ? void 0 : _w.showCheckbox,
645
- title: isChannelsScreen ? ((_x = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _x.channelListTitle) ?? t("tableChat.sidePanel.channelsList") : selectedChannelInfo == null ? void 0 : selectedChannelInfo.title,
500
+ title: isChannelsScreen ? t("tableChat.sidePanel.channelsList") : selectedChannelInfo == null ? void 0 : selectedChannelInfo.title,
646
501
  onBack: handleBackToChannels,
647
502
  onChannelSelect: (id, selectedChannelOrChat) => {
648
503
  if (isChannelsScreen) {
@@ -654,67 +509,21 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
654
509
  onDeleteTopics: handleDeletePromptOpen,
655
510
  onMenuClick: toggleMenu,
656
511
  onMoreClick: showMore,
657
- onPinnedChatClick: (_y = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _y.onPinnedChatClick,
512
+ onPinnedChatClick: (_x = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _x.onPinnedChatClick,
658
513
  onSearchClick: openSearch
659
514
  }
660
515
  ),
661
516
  loadingMessages ? /* @__PURE__ */ jsx(ChatSkeleton, { text: t("tableChat.loadingMessages") }) : /* @__PURE__ */ jsx(Fragment, { children: !selectedChannelId || !selectedChatId ? /* @__PURE__ */ jsx(
662
517
  EmptyContainer,
663
518
  {
664
- subTitle: !selectedChannelId ? (_z = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _z.emptyChannelStateSubTitle : !selectedChatId ? (_A = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _A.emptyChatStateSubTitle : "",
665
- title: !selectedChannelId ? (_B = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _B.emptyChannelStateTitle : !selectedChatId ? (_C = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _C.emptyChatStateTitle : ""
519
+ subTitle: !selectedChannelId ? (_y = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _y.emptyChannelStateSubTitle : !selectedChatId ? (_z = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _z.emptyChatStateSubTitle : "",
520
+ title: !selectedChannelId ? (_A = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _A.emptyChannelStateTitle : !selectedChatId ? (_B = chatConfiguration == null ? void 0 : chatConfiguration.messageChatConfig) == null ? void 0 : _B.emptyChatStateTitle : ""
666
521
  }
667
522
  ) : /* @__PURE__ */ jsx(
668
523
  TableChatRightSection,
669
524
  {
670
525
  chatHeaderConfig: {
671
526
  ...chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig,
672
- isResolved: (selectedChatInfo == null ? void 0 : selectedChatInfo.isResolved) ?? ((_D = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _D.is_resolved) ?? ((_E = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _E.isResolved),
673
- chatDisplayId: (selectedChatInfo == null ? void 0 : selectedChatInfo.displayId) ?? ((_F = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _F.reference_id) ?? ((_G = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _G.display_id) ?? ((_H = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _H.chatDisplayId),
674
- onResolve: async (resolvedChatId) => {
675
- var _a2, _b2;
676
- const result = await ((_b2 = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _a2.onResolve) == null ? void 0 : _b2.call(_a2, resolvedChatId));
677
- setSelectedChatInfo(
678
- (prev) => prev ? {
679
- ...prev,
680
- isResolved: true,
681
- otherProps: { ...prev.otherProps, is_resolved: true }
682
- } : prev
683
- );
684
- return result;
685
- },
686
- onTitleChange: async (renamedChatId, nextTitle) => {
687
- var _a2, _b2, _c2;
688
- const result = await ((_b2 = (_a2 = chatConfiguration == null ? void 0 : chatConfiguration.headerChatConfig) == null ? void 0 : _a2.onTitleChange) == null ? void 0 : _b2.call(
689
- _a2,
690
- renamedChatId,
691
- nextTitle
692
- ));
693
- const resolvedTitle = (result == null ? void 0 : result.title) ?? ((_c2 = result == null ? void 0 : result.formattedChat) == null ? void 0 : _c2.title) ?? nextTitle;
694
- setSelectedChatInfo(
695
- (prev) => prev ? {
696
- ...prev,
697
- title: resolvedTitle,
698
- otherProps: {
699
- ...prev.otherProps,
700
- name: resolvedTitle
701
- }
702
- } : prev
703
- );
704
- const patchChatTitle = (list = []) => list.map(
705
- (chat) => (chat == null ? void 0 : chat.id) === renamedChatId ? {
706
- ...chat,
707
- title: resolvedTitle,
708
- otherProps: {
709
- ...chat.otherProps,
710
- name: resolvedTitle
711
- }
712
- } : chat
713
- );
714
- setChatList((prev) => patchChatTitle(prev));
715
- setOriginalChatList((prev) => patchChatTitle(prev));
716
- return result;
717
- },
718
527
  onPinnedClick: (chatId) => {
719
528
  setShowThread(false);
720
529
  setShowPinnedMsg(true);
@@ -722,18 +531,18 @@ const TableChatSidePanel = ({ isOpen, handleClose, chatConfiguration, entryConte
722
531
  }
723
532
  },
724
533
  chatId: selectedChatId,
725
- CreatedBy: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdBy) || (selectedChatInfo == null ? void 0 : selectedChatInfo.user) || ((_I = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _I.created_by_user),
534
+ CreatedBy: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdBy) || (selectedChatInfo == null ? void 0 : selectedChatInfo.user) || ((_C = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _C.created_by_user),
726
535
  handleToast,
727
536
  inputChatConfig: {
728
537
  ...chatConfiguration.inputChatConfig
729
538
  },
730
539
  messageConfig: memoizedMessageConfig,
731
540
  setPinnedMessages,
732
- showActionBtn: (_K = (_J = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _J.rightHeaderPanel) == null ? void 0 : _K.showActionBtn,
733
- showParticipantsList: (_M = (_L = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _L.rightHeaderPanel) == null ? void 0 : _M.showParticipants,
734
- showPinnedChat: (_O = (_N = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _N.rightHeaderPanel) == null ? void 0 : _O.showPinnedChat,
735
- showSearch: (_Q = (_P = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _P.rightHeaderPanel) == null ? void 0 : _Q.showChatSearch,
736
- createdAt: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdAt) || formatChatHeaderTimestamp((_R = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _R.created_at),
541
+ showActionBtn: (_E = (_D = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _D.rightHeaderPanel) == null ? void 0 : _E.showActionBtn,
542
+ showParticipantsList: (_G = (_F = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _F.rightHeaderPanel) == null ? void 0 : _G.showParticipants,
543
+ showPinnedChat: (_I = (_H = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _H.rightHeaderPanel) == null ? void 0 : _I.showPinnedChat,
544
+ showSearch: (_K = (_J = chatConfiguration == null ? void 0 : chatConfiguration.leftPanel) == null ? void 0 : _J.rightHeaderPanel) == null ? void 0 : _K.showChatSearch,
545
+ createdAt: (selectedChatInfo == null ? void 0 : selectedChatInfo.createdAt) || formatChatHeaderTimestamp((_L = selectedChatInfo == null ? void 0 : selectedChatInfo.otherProps) == null ? void 0 : _L.created_at),
737
546
  title: selectedChatInfo == null ? void 0 : selectedChatInfo.title
738
547
  }
739
548
  ) }),