@langchain/macaw-components 1.0.0-beta.0 → 1.0.0-beta.6

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 (187) hide show
  1. package/dist/_chunks/{LoadingIndicator-DgtU9aqD.js → LoadingIndicator-CDcArsiM.js} +13 -12
  2. package/dist/_chunks/LoadingIndicator-CDcArsiM.js.map +1 -0
  3. package/dist/_chunks/render-attachment-icon-BWBEMxXZ.js +270 -0
  4. package/dist/_chunks/render-attachment-icon-BWBEMxXZ.js.map +1 -0
  5. package/dist/catalog.json +527 -408
  6. package/dist/components/Attachment/Attachment.d.ts +21 -0
  7. package/dist/components/Attachment/Attachment.js +165 -0
  8. package/dist/components/Attachment/Attachment.js.map +1 -0
  9. package/dist/components/Attachment/AttachmentList.d.ts +5 -0
  10. package/dist/components/Attachment/AttachmentList.js +32 -0
  11. package/dist/components/Attachment/AttachmentList.js.map +1 -0
  12. package/dist/components/Attachment/index.d.ts +4 -0
  13. package/dist/components/Attachment/index.js +3 -0
  14. package/dist/components/Attachment/render-attachment-icon.d.ts +3 -0
  15. package/dist/components/Attachment/render-attachment-icon.js +2 -0
  16. package/dist/components/Avatar/Avatar.js +2 -2
  17. package/dist/components/Badge/Badge.d.ts +2 -0
  18. package/dist/components/Badge/Badge.js +12 -1
  19. package/dist/components/Badge/Badge.js.map +1 -1
  20. package/dist/components/Banner/Banner.js +1 -1
  21. package/dist/components/Button/Button.js +1 -1
  22. package/dist/components/Button/constants.js +2 -2
  23. package/dist/components/Button/constants.js.map +1 -1
  24. package/dist/components/ChartCard/ChartCard.d.ts +1 -4
  25. package/dist/components/ChartCard/ChartCard.js +2 -2
  26. package/dist/components/ChartCard/ChartCard.js.map +1 -1
  27. package/dist/components/ChartCard/ChartCardSkeleton.d.ts +1 -1
  28. package/dist/components/ChartCard/ChartCardSkeleton.js +37 -0
  29. package/dist/components/ChartCard/ChartCardSkeleton.js.map +1 -1
  30. package/dist/components/ChartLegend/ChartLegend.js +2 -2
  31. package/dist/components/ChartLegend/ChartLegendItemRenderer.js +2 -2
  32. package/dist/components/ChartLegend/ChartLegendItemRenderer.js.map +1 -1
  33. package/dist/components/Code/Code.utils.d.ts +3 -2
  34. package/dist/components/Code/Code.utils.js +7 -3
  35. package/dist/components/Code/Code.utils.js.map +1 -1
  36. package/dist/components/Code/CodeLanguageSelect.d.ts +7 -0
  37. package/dist/components/Code/CodeLanguageSelect.js +29 -0
  38. package/dist/components/Code/CodeLanguageSelect.js.map +1 -0
  39. package/dist/components/Code/CodeLite.js +3 -0
  40. package/dist/components/Code/CodeLite.js.map +1 -1
  41. package/dist/components/Code/CodeToolbar.d.ts +7 -0
  42. package/dist/components/Code/CodeToolbar.js +19 -0
  43. package/dist/components/Code/CodeToolbar.js.map +1 -0
  44. package/dist/components/Code/codeLanguages.d.ts +7 -0
  45. package/dist/components/Code/codeLanguages.js +59 -0
  46. package/dist/components/Code/codeLanguages.js.map +1 -0
  47. package/dist/components/Code/index.d.ts +15 -2
  48. package/dist/components/Code/index.js +70 -50
  49. package/dist/components/Code/index.js.map +1 -1
  50. package/dist/components/Code/types.d.ts +1 -1
  51. package/dist/components/Command/Command.d.ts +10 -13
  52. package/dist/components/Command/Command.js +7 -2
  53. package/dist/components/Command/Command.js.map +1 -1
  54. package/dist/components/Command/CommandMenu.d.ts +7 -1
  55. package/dist/components/Command/CommandMenu.js +17 -9
  56. package/dist/components/Command/CommandMenu.js.map +1 -1
  57. package/dist/components/ContextMenu/ContextMenu.d.ts +6 -0
  58. package/dist/components/ContextMenu/ContextMenu.js +3 -2
  59. package/dist/components/ContextMenu/ContextMenu.js.map +1 -1
  60. package/dist/components/CopyButton/CopyButton.js +2 -2
  61. package/dist/components/Dialog/index.js +2 -2
  62. package/dist/components/DropdownMenu/DropdownMenu.d.ts +11 -0
  63. package/dist/components/DropdownMenu/DropdownMenu.js +5 -4
  64. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  65. package/dist/components/ErrorMessage/ErrorMessage.js +1 -1
  66. package/dist/components/GroupedTabs/GroupedTabs.d.ts +5 -2
  67. package/dist/components/GroupedTabs/GroupedTabs.js +33 -26
  68. package/dist/components/GroupedTabs/GroupedTabs.js.map +1 -1
  69. package/dist/components/IconButton/IconButton.js +2 -2
  70. package/dist/components/Input/Input.js +1 -1
  71. package/dist/components/LineChart/LineChart.d.ts +2 -2
  72. package/dist/components/LineChart/LineChart.js +3 -1
  73. package/dist/components/LineChart/LineChart.js.map +1 -1
  74. package/dist/components/LineChart/LineChart.types.d.ts +16 -0
  75. package/dist/components/LineChart/LineChartPlot.d.ts +3 -2
  76. package/dist/components/LineChart/LineChartPlot.js +8 -1
  77. package/dist/components/LineChart/LineChartPlot.js.map +1 -1
  78. package/dist/components/LineChart/LineChartVerticalMarkers.d.ts +8 -0
  79. package/dist/components/LineChart/LineChartVerticalMarkers.js +47 -0
  80. package/dist/components/LineChart/LineChartVerticalMarkers.js.map +1 -0
  81. package/dist/components/LineChart/index.d.ts +1 -1
  82. package/dist/components/Logo/index.js +11 -6
  83. package/dist/components/Logo/index.js.map +1 -1
  84. package/dist/components/MetricChart/MetricChart.d.ts +2 -0
  85. package/dist/components/MetricChart/MetricChart.js +15 -4
  86. package/dist/components/MetricChart/MetricChart.js.map +1 -1
  87. package/dist/components/MetricChart/formatters.js +15 -2
  88. package/dist/components/MetricChart/formatters.js.map +1 -1
  89. package/dist/components/MetricChart/index.d.ts +1 -1
  90. package/dist/components/Pane/Pane.js +2 -2
  91. package/dist/components/SankeyChart/AnimatedSankeyLink.d.ts +17 -0
  92. package/dist/components/SankeyChart/AnimatedSankeyLink.js +44 -0
  93. package/dist/components/SankeyChart/AnimatedSankeyLink.js.map +1 -0
  94. package/dist/components/SankeyChart/AnimatedSankeyNode.d.ts +16 -0
  95. package/dist/components/SankeyChart/AnimatedSankeyNode.js +42 -0
  96. package/dist/components/SankeyChart/AnimatedSankeyNode.js.map +1 -0
  97. package/dist/components/SankeyChart/SankeyChart.d.ts +42 -0
  98. package/dist/components/SankeyChart/SankeyChart.js +185 -0
  99. package/dist/components/SankeyChart/SankeyChart.js.map +1 -0
  100. package/dist/components/SankeyChart/SankeyChart.types.d.ts +90 -0
  101. package/dist/components/SankeyChart/SankeyChart.types.js +0 -0
  102. package/dist/components/SankeyChart/SankeyChart.utils.d.ts +21 -0
  103. package/dist/components/SankeyChart/SankeyChart.utils.js +299 -0
  104. package/dist/components/SankeyChart/SankeyChart.utils.js.map +1 -0
  105. package/dist/components/SankeyChart/SankeyNodeLabel.d.ts +10 -0
  106. package/dist/components/SankeyChart/SankeyNodeLabel.js +30 -0
  107. package/dist/components/SankeyChart/SankeyNodeLabel.js.map +1 -0
  108. package/dist/components/SankeyChart/SankeyNodeLabel.utils.d.ts +9 -0
  109. package/dist/components/SankeyChart/SankeyNodeLabel.utils.js +29 -0
  110. package/dist/components/SankeyChart/SankeyNodeLabel.utils.js.map +1 -0
  111. package/dist/components/SankeyChart/constants.d.ts +22 -0
  112. package/dist/components/SankeyChart/constants.js +27 -0
  113. package/dist/components/SankeyChart/constants.js.map +1 -0
  114. package/dist/components/SankeyChart/index.d.ts +5 -0
  115. package/dist/components/SankeyChart/index.js +4 -0
  116. package/dist/components/Select/Select.js +5 -5
  117. package/dist/components/Select/Select.js.map +1 -1
  118. package/dist/components/Select/SelectPrimitive.d.ts +6 -0
  119. package/dist/components/Select/SelectPrimitive.js +3 -2
  120. package/dist/components/Select/SelectPrimitive.js.map +1 -1
  121. package/dist/components/Slider/Slider.js +10 -3
  122. package/dist/components/Slider/Slider.js.map +1 -1
  123. package/dist/components/SplitViewPane/SplitViewPane.d.ts +2 -1
  124. package/dist/components/SplitViewPane/SplitViewPane.js +113 -219
  125. package/dist/components/SplitViewPane/SplitViewPane.js.map +1 -1
  126. package/dist/components/SplitViewPane/SplitViewPaneHeader.js +2 -2
  127. package/dist/components/SplitViewPane/useShowChildren.d.ts +5 -0
  128. package/dist/components/SplitViewPane/useShowChildren.js +14 -0
  129. package/dist/components/SplitViewPane/useShowChildren.js.map +1 -0
  130. package/dist/components/SplitViewPane/useSplitViewPaneResize.d.ts +21 -0
  131. package/dist/components/SplitViewPane/useSplitViewPaneResize.js +145 -0
  132. package/dist/components/SplitViewPane/useSplitViewPaneResize.js.map +1 -0
  133. package/dist/components/Textarea/Textarea.d.ts +4 -3
  134. package/dist/components/Textarea/Textarea.js +7 -21
  135. package/dist/components/Textarea/Textarea.js.map +1 -1
  136. package/dist/components/ThinkingState/LoadingIndicator.d.ts +1 -0
  137. package/dist/components/ThinkingState/LoadingIndicator.js +1 -1
  138. package/dist/components/ThinkingState/ThinkingState.d.ts +1 -0
  139. package/dist/components/ThinkingState/ThinkingState.js +5 -4
  140. package/dist/components/ThinkingState/ThinkingState.js.map +1 -1
  141. package/dist/components/ThinkingState/index.js +1 -1
  142. package/dist/components/Toast/index.js +33 -28
  143. package/dist/components/Toast/index.js.map +1 -1
  144. package/dist/components/Tooltip/Tooltip.js +2 -2
  145. package/dist/components/Typeahead/Typeahead.js +18 -8
  146. package/dist/components/Typeahead/Typeahead.js.map +1 -1
  147. package/dist/components/Typeahead/Typeahead.types.d.ts +2 -0
  148. package/dist/components/Typeahead/TypeaheadParts.d.ts +3 -1
  149. package/dist/components/Typeahead/TypeaheadParts.js +7 -6
  150. package/dist/components/Typeahead/TypeaheadParts.js.map +1 -1
  151. package/dist/components/Typeahead/TypeaheadView.js +19 -13
  152. package/dist/components/Typeahead/TypeaheadView.js.map +1 -1
  153. package/dist/components/Typeahead/useTypeaheadDomSync.d.ts +1 -1
  154. package/dist/components/Typeahead/useTypeaheadDomSync.js +14 -8
  155. package/dist/components/Typeahead/useTypeaheadDomSync.js.map +1 -1
  156. package/dist/components/Typeahead/useTypeaheadUncontrolledInput.d.ts +2 -1
  157. package/dist/components/Typeahead/useTypeaheadUncontrolledInput.js +10 -9
  158. package/dist/components/Typeahead/useTypeaheadUncontrolledInput.js.map +1 -1
  159. package/dist/components/UnsavedChangesDialog.js +2 -2
  160. package/dist/components/index.d.ts +3 -1
  161. package/dist/components/index.js +7 -5
  162. package/dist/components.css +22 -18
  163. package/dist/hooks/useDebouncedCommit.d.ts +14 -0
  164. package/dist/hooks/useDebouncedCommit.js +35 -0
  165. package/dist/hooks/useDebouncedCommit.js.map +1 -0
  166. package/dist/icons/LongTailPhosphorIcons.js +1 -1
  167. package/dist/icons/PaddedPhosphorIcons.d.ts +1 -0
  168. package/dist/icons/PaddedPhosphorIcons.js +4 -2
  169. package/dist/icons/PaddedPhosphorIcons.js.map +1 -1
  170. package/dist/icons/WeightedPhosphorIcons.d.ts +1 -0
  171. package/dist/icons/WeightedPhosphorIcons.js +3 -1
  172. package/dist/icons/WeightedPhosphorIcons.js.map +1 -1
  173. package/dist/icons/index.js +3 -3
  174. package/dist/index.js +7 -5
  175. package/dist/utilities.css +1 -1
  176. package/dist/utils/chartColors.d.ts +2 -1
  177. package/dist/utils/chartColors.js +2 -1
  178. package/dist/utils/chartColors.js.map +1 -1
  179. package/dist/utils/componentSizes.d.ts +0 -1
  180. package/dist/utils/componentSizes.js.map +1 -1
  181. package/dist/utils/lazy-codemirror-loader.d.ts +0 -2
  182. package/dist/utils/lazy-codemirror-loader.js +1 -3
  183. package/dist/utils/lazy-codemirror-loader.js.map +1 -1
  184. package/docs/DESIGN.md +17 -0
  185. package/docs/STYLES.md +4 -1
  186. package/package.json +21 -8
  187. package/dist/_chunks/LoadingIndicator-DgtU9aqD.js.map +0 -1
@@ -3,14 +3,15 @@ import { VISUAL_ELEMENT_SIZES } from "../utils/componentSizes.js";
3
3
  import { forwardRef } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  var ThinkingState_module_default = {
6
- grid: "_grid_hucnx_2",
7
- pixel: "_pixel_hucnx_8",
8
- "pixel-on": "_pixel-on_hucnx_1",
9
- dot: "_dot_hucnx_14",
10
- inactive: "_inactive_hucnx_18",
11
- shimmer: "_shimmer_hucnx_31",
12
- "shimmer-text": "_shimmer-text_hucnx_1",
13
- brandShimmer: "_brandShimmer_hucnx_37"
6
+ grid: "_grid_167sb_2",
7
+ pixel: "_pixel_167sb_8",
8
+ "pixel-on": "_pixel-on_167sb_1",
9
+ dot: "_dot_167sb_14",
10
+ inactive: "_inactive_167sb_18",
11
+ shimmer: "_shimmer_167sb_31",
12
+ "shimmer-text": "_shimmer-text_167sb_1",
13
+ slow: "_slow_167sb_37",
14
+ brandShimmer: "_brandShimmer_167sb_41"
14
15
  };
15
16
  //#endregion
16
17
  //#region packages/components/src/components/ThinkingState/LoadingIndicator.tsx
@@ -55,10 +56,10 @@ var PATTERNS = {
55
56
  }
56
57
  };
57
58
  /** Decorative indicator. Announce loading on the surrounding control or region. */
58
- var LoadingIndicator = forwardRef(function LoadingIndicator({ variant = "drive", size = "sm", tone = "neutral", animated = true, className, style, ...props }, ref) {
59
+ var LoadingIndicator = forwardRef(function LoadingIndicator({ variant = "drive", size = "sm", tone = "neutral", animated = true, speed = "normal", className, style, ...props }, ref) {
59
60
  const pattern = PATTERNS[variant];
60
61
  const indicatorStyle = {
61
- "--loading-cycle": pattern.duration,
62
+ "--loading-cycle": speed === "slow" ? `calc(${pattern.duration} * 2)` : pattern.duration,
62
63
  ...style
63
64
  };
64
65
  return /* @__PURE__ */ jsx("span", {
@@ -70,11 +71,11 @@ var LoadingIndicator = forwardRef(function LoadingIndicator({ variant = "drive",
70
71
  style: indicatorStyle,
71
72
  children: pattern.delays.map((delay, index) => /* @__PURE__ */ jsx("span", {
72
73
  className: cn(ThinkingState_module_default.pixel, "bg-current", variant === "dots" && ThinkingState_module_default.dot, delay === null && ThinkingState_module_default.inactive),
73
- style: { animationDelay: `${delay ?? 0}ms` }
74
+ style: { animationDelay: `${(delay ?? 0) * (speed === "slow" ? 2 : 1)}ms` }
74
75
  }, index))
75
76
  });
76
77
  });
77
78
  //#endregion
78
79
  export { ThinkingState_module_default as n, LoadingIndicator as t };
79
80
 
80
- //# sourceMappingURL=LoadingIndicator-DgtU9aqD.js.map
81
+ //# sourceMappingURL=LoadingIndicator-CDcArsiM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingIndicator-CDcArsiM.js","names":[],"sources":["../../src/components/ThinkingState/ThinkingState.module.css","../../src/components/ThinkingState/LoadingIndicator.tsx"],"sourcesContent":["/* Adapted from TurboKach/ai-native-react-components (MIT). See NOTICE. */\n.grid {\n display: inline-grid;\n grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr));\n gap: 10%;\n}\n\n.pixel {\n border-radius: 1px;\n opacity: 0.15;\n animation: pixel-on var(--loading-cycle) ease-in-out infinite;\n}\n\n.dot {\n @apply rounded-full;\n}\n\n.inactive {\n opacity: 0.07;\n animation: none;\n}\n\n.grid[data-animated='false'] .pixel {\n animation: none;\n}\n\n.grid[data-animated='false'] .pixel:not(.inactive) {\n opacity: 0.5;\n}\n\n.shimmer {\n @apply bg-gradient-to-r from-text-tertiary from-35% via-text-primary via-50% to-text-tertiary to-65% bg-clip-text text-transparent;\n background-size: 200% 100%;\n animation: shimmer-text 1.4s linear infinite;\n}\n\n.slow {\n animation-duration: 2.8s;\n}\n\n.brandShimmer {\n @apply via-text-brand-primary to-text-tertiary;\n}\n\n@keyframes pixel-on {\n 0%,\n 100% {\n opacity: 0.15;\n }\n 18%,\n 42% {\n opacity: 1;\n }\n 62% {\n opacity: 0.15;\n }\n}\n\n@keyframes shimmer-text {\n from {\n background-position: 150% 50%;\n }\n to {\n background-position: -50% 50%;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .pixel,\n .shimmer {\n animation: none;\n }\n\n .pixel:not(.inactive) {\n opacity: 0.5;\n }\n .shimmer {\n @apply text-secondary;\n background: none;\n }\n}\n\n@media (forced-colors: active) {\n .shimmer {\n background: none;\n color: CanvasText;\n }\n .pixel {\n background: CanvasText;\n }\n}\n","// Adapted from TurboKach/ai-native-react-components (MIT). See NOTICE.\nimport { forwardRef } from 'react';\nimport type { ComponentPropsWithRef, CSSProperties } from 'react';\n\nimport { cn } from '../../utils/cn';\nimport { VISUAL_ELEMENT_SIZES } from '../../utils/componentSizes';\n\nimport styles from './ThinkingState.module.css';\n\ntype ThinkingStateVariant = 'drive' | 'dots' | 'orbit';\n\nconst SIZES = {\n sm: VISUAL_ELEMENT_SIZES.xs.className,\n md: VISUAL_ELEMENT_SIZES.sm.className,\n lg: VISUAL_ELEMENT_SIZES.md.className,\n};\n\ninterface LoadingIndicatorProps extends Omit<\n ComponentPropsWithRef<'span'>,\n 'children'\n> {\n variant?: ThinkingStateVariant;\n /** Indicator outer size: sm=16px, md=20px, lg=24px. */\n size?: keyof typeof SIZES;\n tone?: 'neutral' | 'brand';\n /** Reduced-motion preferences always take precedence. */\n animated?: boolean;\n speed?: 'normal' | 'slow';\n}\n\nconst CHEVRON_DELAYS = [90, 180, 270, 0, 90, 180, 90, 180, 270];\nconst PATTERNS: Record<\n ThinkingStateVariant,\n { delays: (number | null)[]; duration: string }\n> = {\n drive: { delays: CHEVRON_DELAYS, duration: '650ms' },\n dots: { delays: CHEVRON_DELAYS, duration: '650ms' },\n orbit: {\n delays: [0, 110, 220, 770, null, 330, 660, 550, 440],\n duration: '950ms',\n },\n};\n\ninterface IndicatorStyle extends CSSProperties {\n '--loading-cycle': string;\n}\n\n/** Decorative indicator. Announce loading on the surrounding control or region. */\nconst LoadingIndicator = forwardRef<HTMLSpanElement, LoadingIndicatorProps>(\n function LoadingIndicator(\n {\n variant = 'drive',\n size = 'sm',\n tone = 'neutral',\n animated = true,\n speed = 'normal',\n className,\n style,\n ...props\n },\n ref\n ) {\n const pattern = PATTERNS[variant];\n const indicatorStyle: IndicatorStyle = {\n '--loading-cycle':\n speed === 'slow' ? `calc(${pattern.duration} * 2)` : pattern.duration,\n ...style,\n };\n\n return (\n <span\n {...props}\n ref={ref}\n aria-hidden=\"true\"\n data-animated={animated}\n className={cn(\n styles.grid,\n SIZES[size],\n 'shrink-0',\n tone === 'brand' ? 'text-icon-brand' : 'text-icon-primary',\n className\n )}\n style={indicatorStyle}\n >\n {pattern.delays.map((delay, index) => (\n <span\n key={index}\n className={cn(\n styles.pixel,\n 'bg-current',\n variant === 'dots' && styles.dot,\n delay === null && styles.inactive\n )}\n style={{\n animationDelay: `${(delay ?? 0) * (speed === 'slow' ? 2 : 1)}ms`,\n }}\n />\n ))}\n </span>\n );\n }\n);\n\nexport { LoadingIndicator };\nexport type { LoadingIndicatorProps, ThinkingStateVariant };\n"],"mappings":";;;;;;;;;;;;;;;;;ACWA,IAAM,QAAQ;CACZ,IAAI,qBAAqB,GAAG;CAC5B,IAAI,qBAAqB,GAAG;CAC5B,IAAI,qBAAqB,GAAG;AAC9B;AAeA,IAAM,iBAAiB;CAAC;CAAI;CAAK;CAAK;CAAG;CAAI;CAAK;CAAI;CAAK;AAAG;AAC9D,IAAM,WAGF;CACF,OAAO;EAAE,QAAQ;EAAgB,UAAU;CAAQ;CACnD,MAAM;EAAE,QAAQ;EAAgB,UAAU;CAAQ;CAClD,OAAO;EACL,QAAQ;GAAC;GAAG;GAAK;GAAK;GAAK;GAAM;GAAK;GAAK;GAAK;EAAG;EACnD,UAAU;CACZ;AACF;;AAOA,IAAM,mBAAmB,WACvB,SAAS,iBACP,EACE,UAAU,SACV,OAAO,MACP,OAAO,WACP,WAAW,MACX,QAAQ,UACR,WACA,OACA,GAAG,SAEL,KACA;CACA,MAAM,UAAU,SAAS;CACzB,MAAM,iBAAiC;EACrC,mBACE,UAAU,SAAS,QAAQ,QAAQ,SAAS,SAAS,QAAQ;EAC/D,GAAG;CACL;CAEA,OACE,oBAAC,QAAD;EACE,GAAI;EACC;EACL,eAAY;EACZ,iBAAe;EACf,WAAW,GACT,6BAAO,MACP,MAAM,OACN,YACA,SAAS,UAAU,oBAAoB,qBACvC,SACF;EACA,OAAO;EAEN,UAAA,QAAQ,OAAO,KAAK,OAAO,UAC1B,oBAAC,QAAD;GAEE,WAAW,GACT,6BAAO,OACP,cACA,YAAY,UAAU,6BAAO,KAC7B,UAAU,QAAQ,6BAAO,QAC3B;GACA,OAAO,EACL,gBAAgB,IAAI,SAAS,MAAM,UAAU,SAAS,IAAI,GAAG,IAC/D;EACD,GAVM,KAUN,CACF;CACG,CAAA;AAEV,CACF"}
@@ -0,0 +1,270 @@
1
+ import { cn } from "../utils/cn.js";
2
+ import "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region packages/components/src/icons/file-types/CSVIcon.svg?react
5
+ var SvgCsvIcon = (props) => /* @__PURE__ */ jsxs("svg", {
6
+ width: 24,
7
+ height: 30,
8
+ viewBox: "0 0 24 30",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ ...props,
12
+ children: [/* @__PURE__ */ jsx("path", {
13
+ d: "M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z",
14
+ fill: "#079455"
15
+ }), /* @__PURE__ */ jsx("path", {
16
+ d: "M9.01811 21.4688H7.77379C7.75107 21.3078 7.70466 21.1648 7.63459 21.0398C7.56451 20.9129 7.47455 20.8049 7.3647 20.7159C7.25485 20.6269 7.12796 20.5587 6.98402 20.5114C6.84197 20.464 6.68762 20.4403 6.52095 20.4403C6.21982 20.4403 5.9575 20.5152 5.73402 20.6648C5.51054 20.8125 5.33724 21.0284 5.21413 21.3125C5.09103 21.5947 5.02947 21.9375 5.02947 22.3409C5.02947 22.7557 5.09103 23.1042 5.21413 23.3864C5.33913 23.6686 5.51338 23.8816 5.73686 24.0256C5.96035 24.1695 6.21887 24.2415 6.51243 24.2415C6.6772 24.2415 6.82966 24.2197 6.96982 24.1761C7.11186 24.1326 7.23781 24.0691 7.34766 23.9858C7.4575 23.9006 7.54841 23.7973 7.62038 23.6761C7.69425 23.5549 7.74538 23.4167 7.77379 23.2614L9.01811 23.267C8.98591 23.5341 8.90542 23.7917 8.77663 24.0398C8.64974 24.286 8.47834 24.5066 8.26243 24.7017C8.04841 24.8949 7.79273 25.0483 7.49538 25.1619C7.19993 25.2737 6.86565 25.3295 6.49254 25.3295C5.9736 25.3295 5.50959 25.2121 5.1005 24.9773C4.6933 24.7424 4.37133 24.4025 4.13459 23.9574C3.89974 23.5123 3.78232 22.9735 3.78232 22.3409C3.78232 21.7064 3.90163 21.1667 4.14027 20.7216C4.37891 20.2765 4.70277 19.9375 5.11186 19.7045C5.52095 19.4697 5.98118 19.3523 6.49254 19.3523C6.82966 19.3523 7.14216 19.3996 7.43004 19.4943C7.71982 19.589 7.97644 19.7273 8.19993 19.9091C8.42341 20.089 8.60523 20.3097 8.74538 20.571C8.88743 20.8324 8.97834 21.1316 9.01811 21.4688ZM13.0565 21.1051C13.0337 20.8759 12.9362 20.6979 12.7638 20.571C12.5915 20.4441 12.3576 20.3807 12.0621 20.3807C11.8614 20.3807 11.6919 20.4091 11.5536 20.4659C11.4154 20.5208 11.3093 20.5975 11.2354 20.696C11.1635 20.7945 11.1275 20.9062 11.1275 21.0312C11.1237 21.1354 11.1455 21.2263 11.1928 21.304C11.2421 21.3816 11.3093 21.4489 11.3945 21.5057C11.4798 21.5606 11.5782 21.6089 11.69 21.6506C11.8017 21.6903 11.921 21.7244 12.0479 21.7528L12.5707 21.8778C12.8245 21.9347 13.0574 22.0104 13.2695 22.1051C13.4817 22.1998 13.6654 22.3163 13.8207 22.4545C13.976 22.5928 14.0962 22.7557 14.1815 22.9432C14.2686 23.1307 14.3131 23.3456 14.315 23.5881C14.3131 23.9441 14.2222 24.2528 14.0423 24.5142C13.8642 24.7737 13.6067 24.9754 13.2695 25.1193C12.9343 25.2614 12.5299 25.3324 12.0565 25.3324C11.5868 25.3324 11.1777 25.2604 10.8292 25.1165C10.4826 24.9725 10.2118 24.7595 10.0167 24.4773C9.82351 24.1932 9.72218 23.8419 9.71271 23.4233H10.9031C10.9163 23.6184 10.9722 23.7812 11.0707 23.9119C11.171 24.0407 11.3046 24.1383 11.4712 24.2045C11.6398 24.2689 11.8301 24.3011 12.0423 24.3011C12.2506 24.3011 12.4315 24.2708 12.5849 24.2102C12.7402 24.1496 12.8604 24.0653 12.9457 23.9574C13.0309 23.8494 13.0735 23.7254 13.0735 23.5852C13.0735 23.4545 13.0347 23.3447 12.957 23.2557C12.8813 23.1667 12.7695 23.0909 12.6218 23.0284C12.476 22.9659 12.297 22.9091 12.0849 22.858L11.4513 22.6989C10.9608 22.5795 10.5735 22.393 10.2894 22.1392C10.0053 21.8854 9.86423 21.5436 9.86612 21.1136C9.86423 20.7614 9.95798 20.4536 10.1474 20.1903C10.3387 19.9271 10.601 19.7216 10.9343 19.5739C11.2676 19.4261 11.6464 19.3523 12.0707 19.3523C12.5025 19.3523 12.8794 19.4261 13.2013 19.5739C13.5252 19.7216 13.7771 19.9271 13.957 20.1903C14.137 20.4536 14.2298 20.7585 14.2354 21.1051H13.0565ZM16.1935 19.4318L17.5998 23.8523H17.6538L19.0629 19.4318H20.4265L18.4208 25.25H16.8356L14.8271 19.4318H16.1935Z",
17
+ fill: "white"
18
+ })]
19
+ });
20
+ //#endregion
21
+ //#region packages/components/src/icons/file-types/HTMLIcon.svg?react
22
+ var SvgHtmlIcon = (props) => /* @__PURE__ */ jsxs("svg", {
23
+ width: 24,
24
+ height: 30,
25
+ viewBox: "0 0 24 30",
26
+ fill: "none",
27
+ xmlns: "http://www.w3.org/2000/svg",
28
+ ...props,
29
+ children: [
30
+ /* @__PURE__ */ jsx("path", {
31
+ d: "M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z",
32
+ fill: "#444CE7"
33
+ }),
34
+ /* @__PURE__ */ jsx("path", {
35
+ opacity: .3,
36
+ d: "M15 0L24 9H19C16.7909 9 15 7.20914 15 5V0Z",
37
+ fill: "white"
38
+ }),
39
+ /* @__PURE__ */ jsx("path", {
40
+ d: "M2.51478 24.25V19.1591H3.59113V21.2596H5.77614V19.1591H6.85V24.25H5.77614V22.147H3.59113V24.25H2.51478ZM7.40354 20.0465V19.1591H11.5846V20.0465H10.0261V24.25H8.96213V20.0465H7.40354ZM12.1332 19.1591H13.4606L14.8626 22.5795H14.9223L16.3243 19.1591H17.6517V24.25H16.6076V20.9364H16.5654L15.2479 24.2251H14.537L13.2195 20.924H13.1772V24.25H12.1332V19.1591ZM18.3985 24.25V19.1591H19.4748V23.3626H21.6574V24.25H18.3985Z",
41
+ fill: "white"
42
+ })
43
+ ]
44
+ });
45
+ //#endregion
46
+ //#region packages/components/src/icons/file-types/IMGIcon.svg?react
47
+ var SvgImgIcon = (props) => /* @__PURE__ */ jsxs("svg", {
48
+ width: 30,
49
+ height: 30,
50
+ viewBox: "0 0 30 30",
51
+ fill: "none",
52
+ xmlns: "http://www.w3.org/2000/svg",
53
+ ...props,
54
+ children: [
55
+ /* @__PURE__ */ jsx("rect", {
56
+ width: 30,
57
+ height: 30,
58
+ rx: 4,
59
+ fill: "url(#paint0_linear_5671_22248)"
60
+ }),
61
+ /* @__PURE__ */ jsx("path", {
62
+ d: "M19.6667 21H20.3403C20.9877 21 21.3114 21 21.4899 20.865C21.6453 20.7474 21.7415 20.5677 21.7531 20.3731C21.7665 20.1497 21.5869 19.8804 21.2278 19.3417L19.2209 16.3313C18.9241 15.8862 18.7757 15.6636 18.5887 15.586C18.4252 15.5182 18.2415 15.5182 18.078 15.586C17.8909 15.6636 17.7426 15.8862 17.4458 16.3313L16.9497 17.0755M19.6667 21L14.5437 13.6001C14.2491 13.1745 14.1017 12.9618 13.9177 12.887C13.7568 12.8215 13.5766 12.8215 13.4156 12.887C13.2316 12.9618 13.0843 13.1745 12.7897 13.6001L8.82548 19.3262C8.45013 19.8684 8.26245 20.1394 8.27314 20.3649C8.28244 20.5612 8.37792 20.7435 8.53406 20.8629C8.71335 21 9.04306 21 9.70248 21H19.6667ZM21 11C21 12.1046 20.1046 13 19 13C17.8954 13 17 12.1046 17 11C17 9.89543 17.8954 9 19 9C20.1046 9 21 9.89543 21 11Z",
63
+ stroke: "#70707B",
64
+ strokeLinecap: "round",
65
+ strokeLinejoin: "round"
66
+ }),
67
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
68
+ id: "paint0_linear_5671_22248",
69
+ x1: 15,
70
+ y1: 0,
71
+ x2: 15,
72
+ y2: 30,
73
+ gradientUnits: "userSpaceOnUse",
74
+ children: [/* @__PURE__ */ jsx("stop", { stopColor: "#F4F4F5" }), /* @__PURE__ */ jsx("stop", {
75
+ offset: 1,
76
+ stopColor: "#DADAE2"
77
+ })]
78
+ }) })
79
+ ]
80
+ });
81
+ //#endregion
82
+ //#region packages/components/src/icons/file-types/JSONIcon.svg?react
83
+ var SvgJsonIcon = (props) => /* @__PURE__ */ jsxs("svg", {
84
+ width: 30,
85
+ height: 30,
86
+ viewBox: "0 0 30 30",
87
+ fill: "none",
88
+ xmlns: "http://www.w3.org/2000/svg",
89
+ ...props,
90
+ children: [
91
+ /* @__PURE__ */ jsx("path", {
92
+ d: "M3 4C3 1.79086 4.79086 0 7 0H18L27 9V26C27 28.2091 25.2091 30 23 30H7C4.79086 30 3 28.2091 3 26V4Z",
93
+ fill: "#444CE7"
94
+ }),
95
+ /* @__PURE__ */ jsx("path", {
96
+ opacity: .3,
97
+ d: "M18 0L27 9H22C19.7909 9 18 7.20914 18 5V0Z",
98
+ fill: "white"
99
+ }),
100
+ /* @__PURE__ */ jsx("path", {
101
+ d: "M7.87975 19.1591H8.94367V22.7088C8.94367 23.0369 8.86992 23.322 8.72243 23.5639C8.5766 23.8059 8.37359 23.9923 8.11341 24.1232C7.85323 24.2541 7.5508 24.3196 7.2061 24.3196C6.89952 24.3196 6.62111 24.2657 6.37087 24.158C6.12229 24.0487 5.92509 23.8829 5.77925 23.6609C5.63342 23.4371 5.56133 23.1562 5.56299 22.8182H6.63437C6.63768 22.9524 6.66502 23.0676 6.7164 23.1637C6.76943 23.2582 6.84152 23.3311 6.93266 23.3825C7.02546 23.4322 7.13484 23.457 7.26079 23.457C7.39336 23.457 7.50522 23.4289 7.59637 23.3725C7.68917 23.3145 7.7596 23.23 7.80766 23.119C7.85572 23.0079 7.87975 22.8712 7.87975 22.7088V19.1591ZM12.5953 20.6232C12.5754 20.4227 12.4901 20.2669 12.3393 20.1559C12.1885 20.0449 11.9838 19.9893 11.7253 19.9893C11.5496 19.9893 11.4013 20.0142 11.2803 20.0639C11.1593 20.112 11.0665 20.1791 11.0019 20.2653C10.9389 20.3514 10.9074 20.4492 10.9074 20.5586C10.9041 20.6497 10.9232 20.7293 10.9646 20.7972C11.0077 20.8652 11.0665 20.924 11.1411 20.9737C11.2157 21.0218 11.3019 21.064 11.3996 21.1005C11.4974 21.1353 11.6018 21.1651 11.7128 21.19L12.1702 21.2994C12.3923 21.3491 12.5961 21.4154 12.7817 21.4982C12.9673 21.5811 13.1281 21.683 13.264 21.804C13.3999 21.925 13.5051 22.0675 13.5797 22.2315C13.6559 22.3956 13.6949 22.5837 13.6965 22.7958C13.6949 23.1074 13.6153 23.3775 13.4579 23.6062C13.3021 23.8332 13.0767 24.0097 12.7817 24.1357C12.4884 24.2599 12.1346 24.3221 11.7203 24.3221C11.3093 24.3221 10.9514 24.2591 10.6464 24.1332C10.3432 24.0072 10.1062 23.8208 9.9355 23.5739C9.76647 23.3253 9.67781 23.0179 9.66952 22.6516H10.7111C10.7227 22.8223 10.7716 22.9648 10.8577 23.0792C10.9456 23.1919 11.0624 23.2772 11.2082 23.3352C11.3557 23.3916 11.5223 23.4197 11.7079 23.4197C11.8902 23.4197 12.0484 23.3932 12.1827 23.3402C12.3186 23.2872 12.4238 23.2134 12.4984 23.119C12.5729 23.0245 12.6102 22.916 12.6102 22.7933C12.6102 22.679 12.5762 22.5829 12.5083 22.505C12.442 22.4271 12.3442 22.3608 12.215 22.3061C12.0874 22.2514 11.9308 22.2017 11.7452 22.157L11.1908 22.0178C10.7616 21.9134 10.4227 21.7501 10.1741 21.5281C9.92556 21.306 9.8021 21.0069 9.80376 20.6307C9.8021 20.3224 9.88413 20.0531 10.0498 19.8228C10.2172 19.5924 10.4467 19.4126 10.7384 19.2834C11.0301 19.1541 11.3615 19.0895 11.7327 19.0895C12.1106 19.0895 12.4404 19.1541 12.7221 19.2834C13.0055 19.4126 13.2259 19.5924 13.3833 19.8228C13.5407 20.0531 13.6219 20.32 13.6269 20.6232H12.5953ZM19.0988 21.7045C19.0988 22.2597 18.9935 22.732 18.7831 23.1214C18.5743 23.5109 18.2892 23.8084 17.928 24.0138C17.5683 24.2177 17.164 24.3196 16.7149 24.3196C16.2625 24.3196 15.8565 24.2169 15.4968 24.0114C15.1372 23.8059 14.853 23.5084 14.6442 23.119C14.4354 22.7295 14.331 22.258 14.331 21.7045C14.331 21.1494 14.4354 20.6771 14.6442 20.2876C14.853 19.8982 15.1372 19.6016 15.4968 19.3977C15.8565 19.1922 16.2625 19.0895 16.7149 19.0895C17.164 19.0895 17.5683 19.1922 17.928 19.3977C18.2892 19.6016 18.5743 19.8982 18.7831 20.2876C18.9935 20.6771 19.0988 21.1494 19.0988 21.7045ZM18.0075 21.7045C18.0075 21.3449 17.9536 21.0417 17.8459 20.7947C17.7399 20.5478 17.5899 20.3606 17.396 20.233C17.2021 20.1054 16.9751 20.0415 16.7149 20.0415C16.4547 20.0415 16.2277 20.1054 16.0338 20.233C15.8399 20.3606 15.6891 20.5478 15.5814 20.7947C15.4753 21.0417 15.4223 21.3449 15.4223 21.7045C15.4223 22.0642 15.4753 22.3674 15.5814 22.6143C15.6891 22.8613 15.8399 23.0485 16.0338 23.1761C16.2277 23.3037 16.4547 23.3675 16.7149 23.3675C16.9751 23.3675 17.2021 23.3037 17.396 23.1761C17.5899 23.0485 17.7399 22.8613 17.8459 22.6143C17.9536 22.3674 18.0075 22.0642 18.0075 21.7045ZM24.1543 19.1591V24.25H23.2246L21.0097 21.0458H20.9724V24.25H19.8961V19.1591H20.8407L23.0381 22.3608H23.0829V19.1591H24.1543Z",
102
+ fill: "white"
103
+ })
104
+ ]
105
+ });
106
+ //#endregion
107
+ //#region packages/components/src/icons/file-types/MP3Icon.svg?react
108
+ var SvgMp3Icon = (props) => /* @__PURE__ */ jsxs("svg", {
109
+ width: 30,
110
+ height: 30,
111
+ viewBox: "0 0 30 30",
112
+ fill: "none",
113
+ xmlns: "http://www.w3.org/2000/svg",
114
+ ...props,
115
+ children: [
116
+ /* @__PURE__ */ jsx("rect", {
117
+ width: 30,
118
+ height: 30,
119
+ rx: 4,
120
+ fill: "url(#paint0_linear_5671_22297)"
121
+ }),
122
+ /* @__PURE__ */ jsx("path", {
123
+ d: "M9 13.6667L9 16.3333L9 13.6667Z",
124
+ fill: "#D1D1D6"
125
+ }),
126
+ /* @__PURE__ */ jsx("path", {
127
+ d: "M12 14.3333V15.6667V14.3333Z",
128
+ fill: "#D1D1D6"
129
+ }),
130
+ /* @__PURE__ */ jsx("path", {
131
+ d: "M15 11V19V11Z",
132
+ fill: "#D1D1D6"
133
+ }),
134
+ /* @__PURE__ */ jsx("path", {
135
+ d: "M18 9V21V9Z",
136
+ fill: "#D1D1D6"
137
+ }),
138
+ /* @__PURE__ */ jsx("path", {
139
+ d: "M21 13.6667V16.3333V13.6667Z",
140
+ fill: "#D1D1D6"
141
+ }),
142
+ /* @__PURE__ */ jsx("path", {
143
+ d: "M9 13.6667L9 16.3333M12 14.3333V15.6667M15 11V19M18 9V21M21 13.6667V16.3333",
144
+ stroke: "white",
145
+ strokeLinecap: "round",
146
+ strokeLinejoin: "round"
147
+ }),
148
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
149
+ id: "paint0_linear_5671_22297",
150
+ x1: 15,
151
+ y1: 30,
152
+ x2: 15,
153
+ y2: 0,
154
+ gradientUnits: "userSpaceOnUse",
155
+ children: [/* @__PURE__ */ jsx("stop", { stopColor: "#373743" }), /* @__PURE__ */ jsx("stop", {
156
+ offset: 1,
157
+ stopColor: "#6A6A6A"
158
+ })]
159
+ }) })
160
+ ]
161
+ });
162
+ //#endregion
163
+ //#region packages/components/src/icons/file-types/MP4Icon.svg?react
164
+ var SvgMp4Icon = (props) => /* @__PURE__ */ jsxs("svg", {
165
+ width: 30,
166
+ height: 30,
167
+ viewBox: "0 0 30 30",
168
+ fill: "none",
169
+ xmlns: "http://www.w3.org/2000/svg",
170
+ ...props,
171
+ children: [
172
+ /* @__PURE__ */ jsx("rect", {
173
+ width: 30,
174
+ height: 30,
175
+ rx: 4,
176
+ fill: "url(#paint0_linear_5671_22160)"
177
+ }),
178
+ /* @__PURE__ */ jsx("path", {
179
+ d: "M10.3333 10.3264C10.3333 9.67898 10.3333 9.35526 10.4682 9.17681C10.5858 9.02135 10.7656 8.92515 10.9602 8.91353C11.1835 8.9002 11.4529 9.07977 11.9916 9.4389L19.002 14.1125C19.4471 14.4092 19.6697 14.5576 19.7472 14.7446C19.815 14.9081 19.815 15.0919 19.7472 15.2554C19.6697 15.4424 19.4471 15.5908 19.002 15.8875L11.9916 20.5611C11.4529 20.9202 11.1835 21.0998 10.9602 21.0865C10.7656 21.0749 10.5858 20.9787 10.4682 20.8232C10.3333 20.6447 10.3333 20.321 10.3333 19.6736V10.3264Z",
180
+ fill: "#D1D1D6",
181
+ stroke: "#D1D1D6",
182
+ strokeLinecap: "round",
183
+ strokeLinejoin: "round"
184
+ }),
185
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
186
+ id: "paint0_linear_5671_22160",
187
+ x1: 15,
188
+ y1: 30,
189
+ x2: 15,
190
+ y2: 0,
191
+ gradientUnits: "userSpaceOnUse",
192
+ children: [/* @__PURE__ */ jsx("stop", { stopColor: "#373743" }), /* @__PURE__ */ jsx("stop", {
193
+ offset: 1,
194
+ stopColor: "#6A6A6A"
195
+ })]
196
+ }) })
197
+ ]
198
+ });
199
+ //#endregion
200
+ //#region packages/components/src/icons/file-types/PDFIcon.svg?react
201
+ var SvgPdfIcon = (props) => /* @__PURE__ */ jsxs("svg", {
202
+ width: 30,
203
+ height: 30,
204
+ viewBox: "0 0 24 30",
205
+ fill: "none",
206
+ xmlns: "http://www.w3.org/2000/svg",
207
+ ...props,
208
+ children: [
209
+ /* @__PURE__ */ jsx("path", {
210
+ d: "M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z",
211
+ fill: "#D92D20"
212
+ }),
213
+ /* @__PURE__ */ jsx("path", {
214
+ opacity: .3,
215
+ d: "M15 0L24 9H19C16.7909 9 15 7.20914 15 5V0Z",
216
+ fill: "white"
217
+ }),
218
+ /* @__PURE__ */ jsx("path", {
219
+ d: "M4.66584 25.25V19.4318H6.96129C7.40258 19.4318 7.77853 19.5161 8.08913 19.6847C8.39974 19.8513 8.63648 20.0833 8.79936 20.3807C8.96413 20.6761 9.04652 21.017 9.04652 21.4034C9.04652 21.7898 8.96319 22.1307 8.79652 22.4261C8.62985 22.7216 8.38838 22.9517 8.07209 23.1165C7.75769 23.2812 7.37701 23.3636 6.93004 23.3636H5.46697V22.3778H6.73118C6.96792 22.3778 7.163 22.3371 7.31641 22.2557C7.47171 22.1723 7.58724 22.0578 7.663 21.9119C7.74065 21.7642 7.77947 21.5947 7.77947 21.4034C7.77947 21.2102 7.74065 21.0417 7.663 20.8977C7.58724 20.7519 7.47171 20.6392 7.31641 20.5597C7.1611 20.4782 6.96413 20.4375 6.7255 20.4375H5.89595V25.25H4.66584ZM11.908 25.25H9.84553V19.4318H11.9251C12.5103 19.4318 13.0141 19.5483 13.4364 19.7812C13.8588 20.0123 14.1836 20.3447 14.4109 20.7784C14.64 21.2121 14.7546 21.7311 14.7546 22.3352C14.7546 22.9413 14.64 23.4621 14.4109 23.8977C14.1836 24.3333 13.8569 24.6676 13.4308 24.9006C13.0065 25.1335 12.4989 25.25 11.908 25.25ZM11.0756 24.196H11.8569C12.2205 24.196 12.5264 24.1316 12.7745 24.0028C13.0245 23.8722 13.212 23.6705 13.337 23.3977C13.4639 23.1231 13.5273 22.7689 13.5273 22.3352C13.5273 21.9053 13.4639 21.554 13.337 21.2812C13.212 21.0085 13.0254 20.8078 12.7773 20.679C12.5292 20.5502 12.2234 20.4858 11.8597 20.4858H11.0756V24.196ZM15.6658 25.25V19.4318H19.5181V20.446H16.896V21.8324H19.2624V22.8466H16.896V25.25H15.6658Z",
220
+ fill: "white"
221
+ })
222
+ ]
223
+ });
224
+ //#endregion
225
+ //#region packages/components/src/icons/file-types/TXTIcon.svg?react
226
+ var SvgTxtIcon = (props) => /* @__PURE__ */ jsxs("svg", {
227
+ width: 24,
228
+ height: 30,
229
+ viewBox: "0 0 24 30",
230
+ fill: "none",
231
+ xmlns: "http://www.w3.org/2000/svg",
232
+ ...props,
233
+ children: [
234
+ /* @__PURE__ */ jsx("path", {
235
+ d: "M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z",
236
+ fill: "#344054"
237
+ }),
238
+ /* @__PURE__ */ jsx("path", {
239
+ opacity: .3,
240
+ d: "M15 0L24 9H19C16.7909 9 15 7.20914 15 5V0Z",
241
+ fill: "white"
242
+ }),
243
+ /* @__PURE__ */ jsx("path", {
244
+ d: "M4.08097 20.446V19.4318H8.85938V20.446H7.07812V25.25H5.86222V20.446H4.08097ZM10.7997 19.4318L11.973 21.4148H12.0185L13.1974 19.4318H14.5866L12.8111 22.3409L14.6264 25.25H13.2116L12.0185 23.2642H11.973L10.7798 25.25H9.37074L11.1918 22.3409L9.40483 19.4318H10.7997ZM15.1435 20.446V19.4318H19.9219V20.446H18.1406V25.25H16.9247V20.446H15.1435Z",
245
+ fill: "white"
246
+ })
247
+ ]
248
+ });
249
+ //#endregion
250
+ //#region packages/components/src/components/Attachment/render-attachment-icon.tsx
251
+ var getAttachmentIcon = (contentType) => {
252
+ if (!contentType) return null;
253
+ if (contentType.startsWith("image")) return SvgImgIcon;
254
+ if (contentType.startsWith("audio")) return SvgMp3Icon;
255
+ if (contentType.startsWith("video")) return SvgMp4Icon;
256
+ if (contentType === "text/html") return SvgHtmlIcon;
257
+ if (contentType === "text/plain") return SvgTxtIcon;
258
+ if (contentType === "text/csv") return SvgCsvIcon;
259
+ if (contentType === "application/pdf") return SvgPdfIcon;
260
+ if (contentType === "application/json") return SvgJsonIcon;
261
+ return null;
262
+ };
263
+ var renderAttachmentIcon = (contentType, size) => {
264
+ const AttachmentIcon = getAttachmentIcon(contentType);
265
+ return AttachmentIcon ? /* @__PURE__ */ jsx(AttachmentIcon, { className: cn(size === "small" && "h-4 w-4") }) : null;
266
+ };
267
+ //#endregion
268
+ export { renderAttachmentIcon as n, getAttachmentIcon as t };
269
+
270
+ //# sourceMappingURL=render-attachment-icon-BWBEMxXZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-attachment-icon-BWBEMxXZ.js","names":[],"sources":["../../src/icons/file-types/CSVIcon.svg?react","../../src/icons/file-types/HTMLIcon.svg?react","../../src/icons/file-types/IMGIcon.svg?react","../../src/icons/file-types/JSONIcon.svg?react","../../src/icons/file-types/MP3Icon.svg?react","../../src/icons/file-types/MP4Icon.svg?react","../../src/icons/file-types/PDFIcon.svg?react","../../src/icons/file-types/TXTIcon.svg?react","../../src/components/Attachment/render-attachment-icon.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgCsvIcon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 24,\n\theight: 30,\n\tviewBox: \"0 0 24 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [/* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z\",\n\t\tfill: \"#079455\"\n\t}), /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M9.01811 21.4688H7.77379C7.75107 21.3078 7.70466 21.1648 7.63459 21.0398C7.56451 20.9129 7.47455 20.8049 7.3647 20.7159C7.25485 20.6269 7.12796 20.5587 6.98402 20.5114C6.84197 20.464 6.68762 20.4403 6.52095 20.4403C6.21982 20.4403 5.9575 20.5152 5.73402 20.6648C5.51054 20.8125 5.33724 21.0284 5.21413 21.3125C5.09103 21.5947 5.02947 21.9375 5.02947 22.3409C5.02947 22.7557 5.09103 23.1042 5.21413 23.3864C5.33913 23.6686 5.51338 23.8816 5.73686 24.0256C5.96035 24.1695 6.21887 24.2415 6.51243 24.2415C6.6772 24.2415 6.82966 24.2197 6.96982 24.1761C7.11186 24.1326 7.23781 24.0691 7.34766 23.9858C7.4575 23.9006 7.54841 23.7973 7.62038 23.6761C7.69425 23.5549 7.74538 23.4167 7.77379 23.2614L9.01811 23.267C8.98591 23.5341 8.90542 23.7917 8.77663 24.0398C8.64974 24.286 8.47834 24.5066 8.26243 24.7017C8.04841 24.8949 7.79273 25.0483 7.49538 25.1619C7.19993 25.2737 6.86565 25.3295 6.49254 25.3295C5.9736 25.3295 5.50959 25.2121 5.1005 24.9773C4.6933 24.7424 4.37133 24.4025 4.13459 23.9574C3.89974 23.5123 3.78232 22.9735 3.78232 22.3409C3.78232 21.7064 3.90163 21.1667 4.14027 20.7216C4.37891 20.2765 4.70277 19.9375 5.11186 19.7045C5.52095 19.4697 5.98118 19.3523 6.49254 19.3523C6.82966 19.3523 7.14216 19.3996 7.43004 19.4943C7.71982 19.589 7.97644 19.7273 8.19993 19.9091C8.42341 20.089 8.60523 20.3097 8.74538 20.571C8.88743 20.8324 8.97834 21.1316 9.01811 21.4688ZM13.0565 21.1051C13.0337 20.8759 12.9362 20.6979 12.7638 20.571C12.5915 20.4441 12.3576 20.3807 12.0621 20.3807C11.8614 20.3807 11.6919 20.4091 11.5536 20.4659C11.4154 20.5208 11.3093 20.5975 11.2354 20.696C11.1635 20.7945 11.1275 20.9062 11.1275 21.0312C11.1237 21.1354 11.1455 21.2263 11.1928 21.304C11.2421 21.3816 11.3093 21.4489 11.3945 21.5057C11.4798 21.5606 11.5782 21.6089 11.69 21.6506C11.8017 21.6903 11.921 21.7244 12.0479 21.7528L12.5707 21.8778C12.8245 21.9347 13.0574 22.0104 13.2695 22.1051C13.4817 22.1998 13.6654 22.3163 13.8207 22.4545C13.976 22.5928 14.0962 22.7557 14.1815 22.9432C14.2686 23.1307 14.3131 23.3456 14.315 23.5881C14.3131 23.9441 14.2222 24.2528 14.0423 24.5142C13.8642 24.7737 13.6067 24.9754 13.2695 25.1193C12.9343 25.2614 12.5299 25.3324 12.0565 25.3324C11.5868 25.3324 11.1777 25.2604 10.8292 25.1165C10.4826 24.9725 10.2118 24.7595 10.0167 24.4773C9.82351 24.1932 9.72218 23.8419 9.71271 23.4233H10.9031C10.9163 23.6184 10.9722 23.7812 11.0707 23.9119C11.171 24.0407 11.3046 24.1383 11.4712 24.2045C11.6398 24.2689 11.8301 24.3011 12.0423 24.3011C12.2506 24.3011 12.4315 24.2708 12.5849 24.2102C12.7402 24.1496 12.8604 24.0653 12.9457 23.9574C13.0309 23.8494 13.0735 23.7254 13.0735 23.5852C13.0735 23.4545 13.0347 23.3447 12.957 23.2557C12.8813 23.1667 12.7695 23.0909 12.6218 23.0284C12.476 22.9659 12.297 22.9091 12.0849 22.858L11.4513 22.6989C10.9608 22.5795 10.5735 22.393 10.2894 22.1392C10.0053 21.8854 9.86423 21.5436 9.86612 21.1136C9.86423 20.7614 9.95798 20.4536 10.1474 20.1903C10.3387 19.9271 10.601 19.7216 10.9343 19.5739C11.2676 19.4261 11.6464 19.3523 12.0707 19.3523C12.5025 19.3523 12.8794 19.4261 13.2013 19.5739C13.5252 19.7216 13.7771 19.9271 13.957 20.1903C14.137 20.4536 14.2298 20.7585 14.2354 21.1051H13.0565ZM16.1935 19.4318L17.5998 23.8523H17.6538L19.0629 19.4318H20.4265L18.4208 25.25H16.8356L14.8271 19.4318H16.1935Z\",\n\t\tfill: \"white\"\n\t})]\n});\nexport default SvgCsvIcon;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgHtmlIcon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 24,\n\theight: 30,\n\tviewBox: \"0 0 24 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z\",\n\t\t\tfill: \"#444CE7\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\topacity: .3,\n\t\t\td: \"M15 0L24 9H19C16.7909 9 15 7.20914 15 5V0Z\",\n\t\t\tfill: \"white\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M2.51478 24.25V19.1591H3.59113V21.2596H5.77614V19.1591H6.85V24.25H5.77614V22.147H3.59113V24.25H2.51478ZM7.40354 20.0465V19.1591H11.5846V20.0465H10.0261V24.25H8.96213V20.0465H7.40354ZM12.1332 19.1591H13.4606L14.8626 22.5795H14.9223L16.3243 19.1591H17.6517V24.25H16.6076V20.9364H16.5654L15.2479 24.2251H14.537L13.2195 20.924H13.1772V24.25H12.1332V19.1591ZM18.3985 24.25V19.1591H19.4748V23.3626H21.6574V24.25H18.3985Z\",\n\t\t\tfill: \"white\"\n\t\t})\n\t]\n});\nexport default SvgHtmlIcon;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgImgIcon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 30,\n\theight: 30,\n\tviewBox: \"0 0 30 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"rect\", {\n\t\t\twidth: 30,\n\t\t\theight: 30,\n\t\t\trx: 4,\n\t\t\tfill: \"url(#paint0_linear_5671_22248)\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M19.6667 21H20.3403C20.9877 21 21.3114 21 21.4899 20.865C21.6453 20.7474 21.7415 20.5677 21.7531 20.3731C21.7665 20.1497 21.5869 19.8804 21.2278 19.3417L19.2209 16.3313C18.9241 15.8862 18.7757 15.6636 18.5887 15.586C18.4252 15.5182 18.2415 15.5182 18.078 15.586C17.8909 15.6636 17.7426 15.8862 17.4458 16.3313L16.9497 17.0755M19.6667 21L14.5437 13.6001C14.2491 13.1745 14.1017 12.9618 13.9177 12.887C13.7568 12.8215 13.5766 12.8215 13.4156 12.887C13.2316 12.9618 13.0843 13.1745 12.7897 13.6001L8.82548 19.3262C8.45013 19.8684 8.26245 20.1394 8.27314 20.3649C8.28244 20.5612 8.37792 20.7435 8.53406 20.8629C8.71335 21 9.04306 21 9.70248 21H19.6667ZM21 11C21 12.1046 20.1046 13 19 13C17.8954 13 17 12.1046 17 11C17 9.89543 17.8954 9 19 9C20.1046 9 21 9.89543 21 11Z\",\n\t\t\tstroke: \"#70707B\",\n\t\t\tstrokeLinecap: \"round\",\n\t\t\tstrokeLinejoin: \"round\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"defs\", { children: /* @__PURE__ */ _jsxs(\"linearGradient\", {\n\t\t\tid: \"paint0_linear_5671_22248\",\n\t\t\tx1: 15,\n\t\t\ty1: 0,\n\t\t\tx2: 15,\n\t\t\ty2: 30,\n\t\t\tgradientUnits: \"userSpaceOnUse\",\n\t\t\tchildren: [/* @__PURE__ */ _jsx(\"stop\", { stopColor: \"#F4F4F5\" }), /* @__PURE__ */ _jsx(\"stop\", {\n\t\t\t\toffset: 1,\n\t\t\t\tstopColor: \"#DADAE2\"\n\t\t\t})]\n\t\t}) })\n\t]\n});\nexport default SvgImgIcon;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgJsonIcon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 30,\n\theight: 30,\n\tviewBox: \"0 0 30 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M3 4C3 1.79086 4.79086 0 7 0H18L27 9V26C27 28.2091 25.2091 30 23 30H7C4.79086 30 3 28.2091 3 26V4Z\",\n\t\t\tfill: \"#444CE7\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\topacity: .3,\n\t\t\td: \"M18 0L27 9H22C19.7909 9 18 7.20914 18 5V0Z\",\n\t\t\tfill: \"white\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M7.87975 19.1591H8.94367V22.7088C8.94367 23.0369 8.86992 23.322 8.72243 23.5639C8.5766 23.8059 8.37359 23.9923 8.11341 24.1232C7.85323 24.2541 7.5508 24.3196 7.2061 24.3196C6.89952 24.3196 6.62111 24.2657 6.37087 24.158C6.12229 24.0487 5.92509 23.8829 5.77925 23.6609C5.63342 23.4371 5.56133 23.1562 5.56299 22.8182H6.63437C6.63768 22.9524 6.66502 23.0676 6.7164 23.1637C6.76943 23.2582 6.84152 23.3311 6.93266 23.3825C7.02546 23.4322 7.13484 23.457 7.26079 23.457C7.39336 23.457 7.50522 23.4289 7.59637 23.3725C7.68917 23.3145 7.7596 23.23 7.80766 23.119C7.85572 23.0079 7.87975 22.8712 7.87975 22.7088V19.1591ZM12.5953 20.6232C12.5754 20.4227 12.4901 20.2669 12.3393 20.1559C12.1885 20.0449 11.9838 19.9893 11.7253 19.9893C11.5496 19.9893 11.4013 20.0142 11.2803 20.0639C11.1593 20.112 11.0665 20.1791 11.0019 20.2653C10.9389 20.3514 10.9074 20.4492 10.9074 20.5586C10.9041 20.6497 10.9232 20.7293 10.9646 20.7972C11.0077 20.8652 11.0665 20.924 11.1411 20.9737C11.2157 21.0218 11.3019 21.064 11.3996 21.1005C11.4974 21.1353 11.6018 21.1651 11.7128 21.19L12.1702 21.2994C12.3923 21.3491 12.5961 21.4154 12.7817 21.4982C12.9673 21.5811 13.1281 21.683 13.264 21.804C13.3999 21.925 13.5051 22.0675 13.5797 22.2315C13.6559 22.3956 13.6949 22.5837 13.6965 22.7958C13.6949 23.1074 13.6153 23.3775 13.4579 23.6062C13.3021 23.8332 13.0767 24.0097 12.7817 24.1357C12.4884 24.2599 12.1346 24.3221 11.7203 24.3221C11.3093 24.3221 10.9514 24.2591 10.6464 24.1332C10.3432 24.0072 10.1062 23.8208 9.9355 23.5739C9.76647 23.3253 9.67781 23.0179 9.66952 22.6516H10.7111C10.7227 22.8223 10.7716 22.9648 10.8577 23.0792C10.9456 23.1919 11.0624 23.2772 11.2082 23.3352C11.3557 23.3916 11.5223 23.4197 11.7079 23.4197C11.8902 23.4197 12.0484 23.3932 12.1827 23.3402C12.3186 23.2872 12.4238 23.2134 12.4984 23.119C12.5729 23.0245 12.6102 22.916 12.6102 22.7933C12.6102 22.679 12.5762 22.5829 12.5083 22.505C12.442 22.4271 12.3442 22.3608 12.215 22.3061C12.0874 22.2514 11.9308 22.2017 11.7452 22.157L11.1908 22.0178C10.7616 21.9134 10.4227 21.7501 10.1741 21.5281C9.92556 21.306 9.8021 21.0069 9.80376 20.6307C9.8021 20.3224 9.88413 20.0531 10.0498 19.8228C10.2172 19.5924 10.4467 19.4126 10.7384 19.2834C11.0301 19.1541 11.3615 19.0895 11.7327 19.0895C12.1106 19.0895 12.4404 19.1541 12.7221 19.2834C13.0055 19.4126 13.2259 19.5924 13.3833 19.8228C13.5407 20.0531 13.6219 20.32 13.6269 20.6232H12.5953ZM19.0988 21.7045C19.0988 22.2597 18.9935 22.732 18.7831 23.1214C18.5743 23.5109 18.2892 23.8084 17.928 24.0138C17.5683 24.2177 17.164 24.3196 16.7149 24.3196C16.2625 24.3196 15.8565 24.2169 15.4968 24.0114C15.1372 23.8059 14.853 23.5084 14.6442 23.119C14.4354 22.7295 14.331 22.258 14.331 21.7045C14.331 21.1494 14.4354 20.6771 14.6442 20.2876C14.853 19.8982 15.1372 19.6016 15.4968 19.3977C15.8565 19.1922 16.2625 19.0895 16.7149 19.0895C17.164 19.0895 17.5683 19.1922 17.928 19.3977C18.2892 19.6016 18.5743 19.8982 18.7831 20.2876C18.9935 20.6771 19.0988 21.1494 19.0988 21.7045ZM18.0075 21.7045C18.0075 21.3449 17.9536 21.0417 17.8459 20.7947C17.7399 20.5478 17.5899 20.3606 17.396 20.233C17.2021 20.1054 16.9751 20.0415 16.7149 20.0415C16.4547 20.0415 16.2277 20.1054 16.0338 20.233C15.8399 20.3606 15.6891 20.5478 15.5814 20.7947C15.4753 21.0417 15.4223 21.3449 15.4223 21.7045C15.4223 22.0642 15.4753 22.3674 15.5814 22.6143C15.6891 22.8613 15.8399 23.0485 16.0338 23.1761C16.2277 23.3037 16.4547 23.3675 16.7149 23.3675C16.9751 23.3675 17.2021 23.3037 17.396 23.1761C17.5899 23.0485 17.7399 22.8613 17.8459 22.6143C17.9536 22.3674 18.0075 22.0642 18.0075 21.7045ZM24.1543 19.1591V24.25H23.2246L21.0097 21.0458H20.9724V24.25H19.8961V19.1591H20.8407L23.0381 22.3608H23.0829V19.1591H24.1543Z\",\n\t\t\tfill: \"white\"\n\t\t})\n\t]\n});\nexport default SvgJsonIcon;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgMp3Icon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 30,\n\theight: 30,\n\tviewBox: \"0 0 30 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"rect\", {\n\t\t\twidth: 30,\n\t\t\theight: 30,\n\t\t\trx: 4,\n\t\t\tfill: \"url(#paint0_linear_5671_22297)\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M9 13.6667L9 16.3333L9 13.6667Z\",\n\t\t\tfill: \"#D1D1D6\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M12 14.3333V15.6667V14.3333Z\",\n\t\t\tfill: \"#D1D1D6\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M15 11V19V11Z\",\n\t\t\tfill: \"#D1D1D6\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M18 9V21V9Z\",\n\t\t\tfill: \"#D1D1D6\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M21 13.6667V16.3333V13.6667Z\",\n\t\t\tfill: \"#D1D1D6\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M9 13.6667L9 16.3333M12 14.3333V15.6667M15 11V19M18 9V21M21 13.6667V16.3333\",\n\t\t\tstroke: \"white\",\n\t\t\tstrokeLinecap: \"round\",\n\t\t\tstrokeLinejoin: \"round\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"defs\", { children: /* @__PURE__ */ _jsxs(\"linearGradient\", {\n\t\t\tid: \"paint0_linear_5671_22297\",\n\t\t\tx1: 15,\n\t\t\ty1: 30,\n\t\t\tx2: 15,\n\t\t\ty2: 0,\n\t\t\tgradientUnits: \"userSpaceOnUse\",\n\t\t\tchildren: [/* @__PURE__ */ _jsx(\"stop\", { stopColor: \"#373743\" }), /* @__PURE__ */ _jsx(\"stop\", {\n\t\t\t\toffset: 1,\n\t\t\t\tstopColor: \"#6A6A6A\"\n\t\t\t})]\n\t\t}) })\n\t]\n});\nexport default SvgMp3Icon;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgMp4Icon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 30,\n\theight: 30,\n\tviewBox: \"0 0 30 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"rect\", {\n\t\t\twidth: 30,\n\t\t\theight: 30,\n\t\t\trx: 4,\n\t\t\tfill: \"url(#paint0_linear_5671_22160)\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M10.3333 10.3264C10.3333 9.67898 10.3333 9.35526 10.4682 9.17681C10.5858 9.02135 10.7656 8.92515 10.9602 8.91353C11.1835 8.9002 11.4529 9.07977 11.9916 9.4389L19.002 14.1125C19.4471 14.4092 19.6697 14.5576 19.7472 14.7446C19.815 14.9081 19.815 15.0919 19.7472 15.2554C19.6697 15.4424 19.4471 15.5908 19.002 15.8875L11.9916 20.5611C11.4529 20.9202 11.1835 21.0998 10.9602 21.0865C10.7656 21.0749 10.5858 20.9787 10.4682 20.8232C10.3333 20.6447 10.3333 20.321 10.3333 19.6736V10.3264Z\",\n\t\t\tfill: \"#D1D1D6\",\n\t\t\tstroke: \"#D1D1D6\",\n\t\t\tstrokeLinecap: \"round\",\n\t\t\tstrokeLinejoin: \"round\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"defs\", { children: /* @__PURE__ */ _jsxs(\"linearGradient\", {\n\t\t\tid: \"paint0_linear_5671_22160\",\n\t\t\tx1: 15,\n\t\t\ty1: 30,\n\t\t\tx2: 15,\n\t\t\ty2: 0,\n\t\t\tgradientUnits: \"userSpaceOnUse\",\n\t\t\tchildren: [/* @__PURE__ */ _jsx(\"stop\", { stopColor: \"#373743\" }), /* @__PURE__ */ _jsx(\"stop\", {\n\t\t\t\toffset: 1,\n\t\t\t\tstopColor: \"#6A6A6A\"\n\t\t\t})]\n\t\t}) })\n\t]\n});\nexport default SvgMp4Icon;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgPdfIcon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 30,\n\theight: 30,\n\tviewBox: \"0 0 24 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z\",\n\t\t\tfill: \"#D92D20\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\topacity: .3,\n\t\t\td: \"M15 0L24 9H19C16.7909 9 15 7.20914 15 5V0Z\",\n\t\t\tfill: \"white\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M4.66584 25.25V19.4318H6.96129C7.40258 19.4318 7.77853 19.5161 8.08913 19.6847C8.39974 19.8513 8.63648 20.0833 8.79936 20.3807C8.96413 20.6761 9.04652 21.017 9.04652 21.4034C9.04652 21.7898 8.96319 22.1307 8.79652 22.4261C8.62985 22.7216 8.38838 22.9517 8.07209 23.1165C7.75769 23.2812 7.37701 23.3636 6.93004 23.3636H5.46697V22.3778H6.73118C6.96792 22.3778 7.163 22.3371 7.31641 22.2557C7.47171 22.1723 7.58724 22.0578 7.663 21.9119C7.74065 21.7642 7.77947 21.5947 7.77947 21.4034C7.77947 21.2102 7.74065 21.0417 7.663 20.8977C7.58724 20.7519 7.47171 20.6392 7.31641 20.5597C7.1611 20.4782 6.96413 20.4375 6.7255 20.4375H5.89595V25.25H4.66584ZM11.908 25.25H9.84553V19.4318H11.9251C12.5103 19.4318 13.0141 19.5483 13.4364 19.7812C13.8588 20.0123 14.1836 20.3447 14.4109 20.7784C14.64 21.2121 14.7546 21.7311 14.7546 22.3352C14.7546 22.9413 14.64 23.4621 14.4109 23.8977C14.1836 24.3333 13.8569 24.6676 13.4308 24.9006C13.0065 25.1335 12.4989 25.25 11.908 25.25ZM11.0756 24.196H11.8569C12.2205 24.196 12.5264 24.1316 12.7745 24.0028C13.0245 23.8722 13.212 23.6705 13.337 23.3977C13.4639 23.1231 13.5273 22.7689 13.5273 22.3352C13.5273 21.9053 13.4639 21.554 13.337 21.2812C13.212 21.0085 13.0254 20.8078 12.7773 20.679C12.5292 20.5502 12.2234 20.4858 11.8597 20.4858H11.0756V24.196ZM15.6658 25.25V19.4318H19.5181V20.446H16.896V21.8324H19.2624V22.8466H16.896V25.25H15.6658Z\",\n\t\t\tfill: \"white\"\n\t\t})\n\t]\n});\nexport default SvgPdfIcon;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgTxtIcon = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\twidth: 24,\n\theight: 30,\n\tviewBox: \"0 0 24 30\",\n\tfill: \"none\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M0 4C0 1.79086 1.79086 0 4 0H15L24 9V26C24 28.2091 22.2091 30 20 30H4C1.79086 30 0 28.2091 0 26V4Z\",\n\t\t\tfill: \"#344054\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\topacity: .3,\n\t\t\td: \"M15 0L24 9H19C16.7909 9 15 7.20914 15 5V0Z\",\n\t\t\tfill: \"white\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M4.08097 20.446V19.4318H8.85938V20.446H7.07812V25.25H5.86222V20.446H4.08097ZM10.7997 19.4318L11.973 21.4148H12.0185L13.1974 19.4318H14.5866L12.8111 22.3409L14.6264 25.25H13.2116L12.0185 23.2642H11.973L10.7798 25.25H9.37074L11.1918 22.3409L9.40483 19.4318H10.7997ZM15.1435 20.446V19.4318H19.9219V20.446H18.1406V25.25H16.9247V20.446H15.1435Z\",\n\t\t\tfill: \"white\"\n\t\t})\n\t]\n});\nexport default SvgTxtIcon;\n","import CSVIcon from '../../icons/file-types/CSVIcon.svg?react';\nimport HTMLIcon from '../../icons/file-types/HTMLIcon.svg?react';\nimport IMGIcon from '../../icons/file-types/IMGIcon.svg?react';\nimport JSONIcon from '../../icons/file-types/JSONIcon.svg?react';\nimport MP3Icon from '../../icons/file-types/MP3Icon.svg?react';\nimport MP4Icon from '../../icons/file-types/MP4Icon.svg?react';\nimport PDFIcon from '../../icons/file-types/PDFIcon.svg?react';\nimport TXTIcon from '../../icons/file-types/TXTIcon.svg?react';\nimport { cn } from '../../utils/cn';\nimport type { IconComponent } from '../../utils/icon-types';\n\n// Presentation only: this mapping does not determine safe preview or upload types.\nexport const getAttachmentIcon = (\n contentType: string | null\n): IconComponent | null => {\n if (!contentType) {\n return null;\n }\n if (contentType.startsWith('image')) {\n return IMGIcon;\n }\n if (contentType.startsWith('audio')) {\n return MP3Icon;\n }\n if (contentType.startsWith('video')) {\n return MP4Icon;\n }\n if (contentType === 'text/html') {\n return HTMLIcon;\n }\n if (contentType === 'text/plain') {\n return TXTIcon;\n }\n if (contentType === 'text/csv') {\n return CSVIcon;\n }\n if (contentType === 'application/pdf') {\n return PDFIcon;\n }\n if (contentType === 'application/json') {\n return JSONIcon;\n }\n\n return null;\n};\n\nexport const renderAttachmentIcon = (\n contentType: string | null,\n size: 'small' | 'default'\n) => {\n const AttachmentIcon = getAttachmentIcon(contentType);\n return AttachmentIcon ? (\n <AttachmentIcon className={cn(size === 'small' && 'h-4 w-4')} />\n ) : null;\n};\n"],"mappings":"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"}