@purpur/library 9.10.0 → 10.0.0

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 (520) hide show
  1. package/CHANGELOG.json +124 -0
  2. package/CHANGELOG.md +53 -1
  3. package/dist/LICENSE.txt +270 -175
  4. package/dist/{RichText-BAVZadzi.js → RichText-B865Qkzj.js} +2 -2
  5. package/dist/{RichText-BAVZadzi.js.map → RichText-B865Qkzj.js.map} +1 -1
  6. package/dist/{RichText-D4vznH1B.mjs → RichText-CPkBwXNI.mjs} +3 -3
  7. package/dist/{RichText-D4vznH1B.mjs.map → RichText-CPkBwXNI.mjs.map} +1 -1
  8. package/dist/accordion-aEZas0k1.mjs +122 -0
  9. package/dist/accordion-aEZas0k1.mjs.map +1 -0
  10. package/dist/accordion-zwsF1oUj.js +2 -0
  11. package/dist/accordion-zwsF1oUj.js.map +1 -0
  12. package/dist/accordion.cjs.js +1 -1
  13. package/dist/accordion.es.js +1 -1
  14. package/dist/button-C5CYysw5.js +2 -0
  15. package/dist/button-C5CYysw5.js.map +1 -0
  16. package/dist/button-mHw_J7JU.mjs +106 -0
  17. package/dist/button-mHw_J7JU.mjs.map +1 -0
  18. package/dist/button.cjs.js +1 -1
  19. package/dist/button.es.js +1 -1
  20. package/dist/{calendar-Cru-p6gC.mjs → calendar-DTL_g0ue.mjs} +4 -14
  21. package/dist/{calendar-Cru-p6gC.mjs.map → calendar-DTL_g0ue.mjs.map} +1 -1
  22. package/dist/{calendar-DDR8CQYo.js → calendar-DVOrK53J.js} +2 -2
  23. package/dist/{calendar-DDR8CQYo.js.map → calendar-DVOrK53J.js.map} +1 -1
  24. package/dist/calendar.cjs.js +1 -1
  25. package/dist/calendar.es.js +1 -1
  26. package/dist/{card-t2ZkZ82G.mjs → card-C0yhMN5d.mjs} +3 -3
  27. package/dist/card-C0yhMN5d.mjs.map +1 -0
  28. package/dist/{card-pdsBEJif.js → card-CIlY38WI.js} +2 -2
  29. package/dist/card-CIlY38WI.js.map +1 -0
  30. package/dist/card.cjs.js +1 -1
  31. package/dist/card.es.js +1 -1
  32. package/dist/{carousel-BIKcwvYz.mjs → carousel-Dq9yzk_-.mjs} +2 -2
  33. package/dist/{carousel-BIKcwvYz.mjs.map → carousel-Dq9yzk_-.mjs.map} +1 -1
  34. package/dist/{carousel-DnSaLDZf.js → carousel-j-s6M1hu.js} +2 -2
  35. package/dist/{carousel-DnSaLDZf.js.map → carousel-j-s6M1hu.js.map} +1 -1
  36. package/dist/carousel.cjs.js +1 -1
  37. package/dist/carousel.es.js +1 -1
  38. package/dist/{chat-field-Wjvh2J6C.js → chat-field-CLAjIHlM.js} +2 -2
  39. package/dist/{chat-field-Wjvh2J6C.js.map → chat-field-CLAjIHlM.js.map} +1 -1
  40. package/dist/{chat-field-CVF4DooY.mjs → chat-field-nxFRXoQx.mjs} +2 -2
  41. package/dist/{chat-field-CVF4DooY.mjs.map → chat-field-nxFRXoQx.mjs.map} +1 -1
  42. package/dist/chat-field.cjs.js +1 -1
  43. package/dist/chat-field.es.js +1 -1
  44. package/dist/{chip-group-B775zvKD.js → chip-group-BLuG0MC6.js} +2 -2
  45. package/dist/{chip-group-B775zvKD.js.map → chip-group-BLuG0MC6.js.map} +1 -1
  46. package/dist/{chip-group-xuOe7nL3.mjs → chip-group-Bo4kJ8Vq.mjs} +2 -2
  47. package/dist/{chip-group-xuOe7nL3.mjs.map → chip-group-Bo4kJ8Vq.mjs.map} +1 -1
  48. package/dist/chip-group.cjs.js +1 -1
  49. package/dist/chip-group.es.js +1 -1
  50. package/dist/color-dot-BEE5rKco.js.map +1 -1
  51. package/dist/color-dot-Dz9yzVX3.mjs.map +1 -1
  52. package/dist/{comparison-table-Dtqxz8vL.js → comparison-table-CRWRijfG.js} +2 -2
  53. package/dist/{comparison-table-Dtqxz8vL.js.map → comparison-table-CRWRijfG.js.map} +1 -1
  54. package/dist/{comparison-table-D1evE0ri.mjs → comparison-table-DYaRaP9Z.mjs} +3 -3
  55. package/dist/{comparison-table-D1evE0ri.mjs.map → comparison-table-DYaRaP9Z.mjs.map} +1 -1
  56. package/dist/comparison-table.cjs.js +1 -1
  57. package/dist/comparison-table.es.js +1 -1
  58. package/dist/components/accordion/src/accordion-item.d.ts +3 -3
  59. package/dist/components/accordion/src/accordion-item.d.ts.map +1 -1
  60. package/dist/components/accordion/src/accordion.d.ts +3 -7
  61. package/dist/components/accordion/src/accordion.d.ts.map +1 -1
  62. package/dist/components/accordion/src/accordion.visual.fixtures.d.ts.map +1 -1
  63. package/dist/components/alert-badge/src/alert-badge.d.ts +1 -1
  64. package/dist/components/avatar/src/avatar.d.ts +1 -1
  65. package/dist/components/badge/src/badge.d.ts +1 -1
  66. package/dist/components/button/src/button.d.ts +7 -8
  67. package/dist/components/button/src/button.d.ts.map +1 -1
  68. package/dist/components/button/src/button.visual.fixtures.d.ts +1 -1
  69. package/dist/components/calendar/src/calendar.d.ts.map +1 -1
  70. package/dist/components/card/src/card-content-container.d.ts +1 -1
  71. package/dist/components/card/src/card-content.d.ts +1 -1
  72. package/dist/components/card/src/card-cta.d.ts +1 -1
  73. package/dist/components/card/src/card-heading.d.ts +4 -4
  74. package/dist/components/card/src/card-heading.d.ts.map +1 -1
  75. package/dist/components/card/src/card-media-layout.d.ts +1 -1
  76. package/dist/components/card/src/card-media.d.ts +1 -1
  77. package/dist/components/card/src/card-root.d.ts +1 -1
  78. package/dist/components/checkbox/src/checkbox.d.ts +1 -1
  79. package/dist/components/color-dot/src/color-dot.d.ts +2 -1
  80. package/dist/components/color-dot/src/color-dot.d.ts.map +1 -1
  81. package/dist/components/content-block/src/content-block-group.d.ts +1 -1
  82. package/dist/components/content-block/src/content-block.d.ts +3 -3
  83. package/dist/components/content-block/src/content-block.d.ts.map +1 -1
  84. package/dist/components/country-flag-icon/src/all-country-flag-assets.d.ts +0 -1
  85. package/dist/components/country-flag-icon/src/all-country-flag-assets.d.ts.map +1 -1
  86. package/dist/components/country-flag-icon/src/country-flag-icon.d.ts +2 -2
  87. package/dist/components/cta-link/src/cta-link.d.ts +10 -10
  88. package/dist/components/date-picker/src/date-picker.d.ts +5 -5
  89. package/dist/components/date-range-field/src/date-range-field.d.ts +2 -2
  90. package/dist/components/date-range-field/src/date-range-field.d.ts.map +1 -1
  91. package/dist/components/dismissable-chip-group/src/dismissable-chip-group-item.d.ts +1 -1
  92. package/dist/components/dismissable-chip-group/src/dismissable-chip-group.d.ts +4 -4
  93. package/dist/components/dismissable-chip-group/src/dismissable-chip-group.d.ts.map +1 -1
  94. package/dist/components/drawer/src/drawer-container.d.ts +1 -1
  95. package/dist/components/drawer/src/drawer-container.d.ts.map +1 -1
  96. package/dist/components/drawer/src/drawer-content.d.ts +2 -2
  97. package/dist/components/drawer/src/drawer-frame.d.ts +1 -1
  98. package/dist/components/drawer/src/drawer-handle.d.ts +1 -1
  99. package/dist/components/drawer/src/drawer-header.d.ts +1 -1
  100. package/dist/components/drawer/src/drawer-scroll-area.d.ts +1 -1
  101. package/dist/components/drawer/src/drawer.context.d.ts +2 -0
  102. package/dist/components/drawer/src/drawer.context.d.ts.map +1 -1
  103. package/dist/components/drawer/src/drawer.d.ts +2 -0
  104. package/dist/components/drawer/src/drawer.d.ts.map +1 -1
  105. package/dist/components/dropdown/src/dropdown-combobox.d.ts +2 -34
  106. package/dist/components/dropdown/src/dropdown-combobox.d.ts.map +1 -1
  107. package/dist/components/dropdown/src/dropdown-select.d.ts +2 -34
  108. package/dist/components/dropdown/src/dropdown-select.d.ts.map +1 -1
  109. package/dist/components/dropdown/src/dropdown-shared.d.ts +2 -1
  110. package/dist/components/dropdown/src/dropdown-shared.d.ts.map +1 -1
  111. package/dist/components/dropdown/src/dropdown.types.d.ts +24 -13
  112. package/dist/components/dropdown/src/dropdown.types.d.ts.map +1 -1
  113. package/dist/components/dropdown/src/useDropdown.d.ts +1 -1
  114. package/dist/components/dropdown/src/useDropdown.d.ts.map +1 -1
  115. package/dist/components/dropdown/src/useDropdownFilter.d.ts.map +1 -1
  116. package/dist/components/dropdown/src/useDropdownInput.d.ts.map +1 -1
  117. package/dist/components/field-error-text/src/field-error-text.d.ts +2 -2
  118. package/dist/components/file-upload/src/file-upload-button.d.ts +22 -0
  119. package/dist/components/file-upload/src/file-upload-button.d.ts.map +1 -0
  120. package/dist/components/file-upload/src/file-upload-drag-and-drop.d.ts +10 -0
  121. package/dist/components/file-upload/src/file-upload-drag-and-drop.d.ts.map +1 -0
  122. package/dist/components/file-upload/src/file-upload-file-name-label.d.ts +8 -0
  123. package/dist/components/file-upload/src/file-upload-file-name-label.d.ts.map +1 -0
  124. package/dist/components/file-upload/src/file-upload-icon.d.ts +8 -0
  125. package/dist/components/file-upload/src/file-upload-icon.d.ts.map +1 -0
  126. package/dist/components/file-upload/src/file-upload-types.d.ts +82 -0
  127. package/dist/components/file-upload/src/file-upload-types.d.ts.map +1 -0
  128. package/dist/components/file-upload/src/file-upload-utils.d.ts +7 -0
  129. package/dist/components/file-upload/src/file-upload-utils.d.ts.map +1 -0
  130. package/dist/components/file-upload/src/file-upload.d.ts +6 -0
  131. package/dist/components/file-upload/src/file-upload.d.ts.map +1 -0
  132. package/dist/components/file-upload/src/file-upload.visual.fixtures.d.ts +14 -0
  133. package/dist/components/file-upload/src/file-upload.visual.fixtures.d.ts.map +1 -0
  134. package/dist/components/footer/src/footer-navigation.d.ts +1 -1
  135. package/dist/components/footer/src/footer.d.ts +3 -3
  136. package/dist/components/grid/src/grid.item.d.ts +1 -1
  137. package/dist/components/heading/src/heading.d.ts +20 -2
  138. package/dist/components/heading/src/heading.d.ts.map +1 -1
  139. package/dist/components/hero-banner/src/hero-banner-actions.d.ts +1 -1
  140. package/dist/components/hero-banner/src/hero-banner-media.d.ts +1 -1
  141. package/dist/components/hero-banner/src/hero-banner-types.d.ts +2 -2
  142. package/dist/components/hero-banner/src/hero-banner-types.d.ts.map +1 -1
  143. package/dist/components/hero-banner/src/hero-banner.d.ts +1 -1
  144. package/dist/components/hero-banner/src/hero-banner.d.ts.map +1 -1
  145. package/dist/components/icon/src/icon.d.ts +2 -2
  146. package/dist/components/label/src/label.d.ts +1 -1
  147. package/dist/components/listbox/src/listbox-item.d.ts +1 -1
  148. package/dist/components/loading/src/loading-illustrative.d.ts +1 -1
  149. package/dist/components/logo/src/logo.types.d.ts +2 -2
  150. package/dist/components/modal/src/modal-content.d.ts +1 -1
  151. package/dist/components/modal/src/modal-content.d.ts.map +1 -1
  152. package/dist/components/notification-banner/src/notification-banner.d.ts +5 -5
  153. package/dist/components/notification-banner/src/notification-banner.d.ts.map +1 -1
  154. package/dist/components/pagination/src/pagination-page-selector.d.ts +2 -2
  155. package/dist/components/pagination/src/pagination-page-trigger.d.ts +1 -1
  156. package/dist/components/pagination/src/pagination-step-trigger.d.ts +2 -2
  157. package/dist/components/pagination/src/pagination-truncation-separator.d.ts +1 -1
  158. package/dist/components/pagination/src/types.d.ts +1 -1
  159. package/dist/components/pagination/src/use-page-options.hook.d.ts +1 -1
  160. package/dist/components/pagination/src/use-page-size-options.hook.d.ts +1 -1
  161. package/dist/components/password-field/src/password-strength-indicator.d.ts +1 -1
  162. package/dist/components/password-field/src/password-strength.d.ts +2 -2
  163. package/dist/components/promotion-card/src/promotion-card.d.ts +9 -9
  164. package/dist/components/promotion-card/src/promotion-card.d.ts.map +1 -1
  165. package/dist/components/quantity-selector/src/quantity-selector-button.d.ts +2 -3
  166. package/dist/components/quantity-selector/src/quantity-selector-button.d.ts.map +1 -1
  167. package/dist/components/quantity-selector/src/quantity-selector.d.ts +2 -5
  168. package/dist/components/quantity-selector/src/quantity-selector.d.ts.map +1 -1
  169. package/dist/components/radio-card-group/src/radio-card-group.d.ts +2 -2
  170. package/dist/components/radio-card-group/src/radio-card-item.d.ts +1 -1
  171. package/dist/components/rich-text/src/types.d.ts +3 -3
  172. package/dist/components/search-field/src/search-field.d.ts +6 -6
  173. package/dist/components/skeleton/src/skeleton.d.ts +1 -1
  174. package/dist/components/spinner/src/spinner.d.ts +2 -2
  175. package/dist/components/stepper/src/stepper-container.d.ts +1 -1
  176. package/dist/components/stepper/src/stepper-content.d.ts +1 -1
  177. package/dist/components/stepper/src/{stepper-button.d.ts → stepper-link.d.ts} +5 -4
  178. package/dist/components/stepper/src/stepper-link.d.ts.map +1 -0
  179. package/dist/components/stepper/src/stepper-nav-items.d.ts +1 -0
  180. package/dist/components/stepper/src/stepper-nav-items.d.ts.map +1 -1
  181. package/dist/components/stepper/src/stepper.d.ts.map +1 -1
  182. package/dist/components/stepper/src/types.d.ts +2 -2
  183. package/dist/components/stepper/src/types.d.ts.map +1 -1
  184. package/dist/components/stepper/src/use-content-focus.hook.d.ts.map +1 -1
  185. package/dist/components/table/src/cell-types/button-group-cell.d.ts +3 -3
  186. package/dist/components/table/src/draggable-table.d.ts.map +1 -1
  187. package/dist/components/table/src/table-column-header-cell.d.ts +1 -2
  188. package/dist/components/table/src/table-column-header-cell.d.ts.map +1 -1
  189. package/dist/components/table/src/table-content.d.ts +1 -1
  190. package/dist/components/table/src/table-headers.d.ts +2 -3
  191. package/dist/components/table/src/table-headers.d.ts.map +1 -1
  192. package/dist/components/table/src/table-settings-drawer.d.ts +11 -20
  193. package/dist/components/table/src/table-settings-drawer.d.ts.map +1 -1
  194. package/dist/components/table/src/table.d.ts +2 -9
  195. package/dist/components/table/src/table.d.ts.map +1 -1
  196. package/dist/components/table/src/test-utils/helpers.d.ts +10 -19
  197. package/dist/components/table/src/test-utils/helpers.d.ts.map +1 -1
  198. package/dist/components/table/src/test-utils/table-data.d.ts +3 -3
  199. package/dist/components/tabs/src/tab-content.d.ts +3 -1
  200. package/dist/components/tabs/src/tab-content.d.ts.map +1 -1
  201. package/dist/components/text-area/src/text-area.d.ts +1 -1
  202. package/dist/components/text-field/src/text-field-ai.d.ts +4 -4
  203. package/dist/components/text-field/src/text-field-base.d.ts +4 -4
  204. package/dist/components/text-field/src/text-field.d.ts +5 -5
  205. package/dist/components/text-spacing/src/text-spacing.d.ts +2 -2
  206. package/dist/components/tooltip/src/tooltip.d.ts +4 -6
  207. package/dist/components/tooltip/src/tooltip.d.ts.map +1 -1
  208. package/dist/components-metadata.js +20 -10
  209. package/dist/{content-block-CDMrz41K.mjs → content-block-BCM0I3Y2.mjs} +2 -2
  210. package/dist/content-block-BCM0I3Y2.mjs.map +1 -0
  211. package/dist/{content-block-DyYAnL2e.js → content-block-DQppQumZ.js} +2 -2
  212. package/dist/content-block-DQppQumZ.js.map +1 -0
  213. package/dist/content-block.cjs.js +1 -1
  214. package/dist/content-block.es.js +1 -1
  215. package/dist/core.esm-BmIwrKkJ.js +6 -0
  216. package/dist/core.esm-BmIwrKkJ.js.map +1 -0
  217. package/dist/core.esm-CKGHpLM_.mjs +2892 -0
  218. package/dist/core.esm-CKGHpLM_.mjs.map +1 -0
  219. package/dist/country-flag-icon/LICENSE.txt +11 -0
  220. package/dist/country-flag-icon/all-country-flag-assets.cjs.js +1 -1
  221. package/dist/country-flag-icon/all-country-flag-assets.cjs.js.map +1 -1
  222. package/dist/country-flag-icon/all-country-flag-assets.d.ts +0 -1
  223. package/dist/country-flag-icon/all-country-flag-assets.d.ts.map +1 -1
  224. package/dist/country-flag-icon/all-country-flag-assets.es.js +0 -1
  225. package/dist/country-flag-icon/all-country-flag-assets.es.js.map +1 -1
  226. package/dist/country-flag-icon/dynamic-country-flag-icon.cjs.js +2 -0
  227. package/dist/country-flag-icon/dynamic-country-flag-icon.cjs.js.map +1 -0
  228. package/dist/country-flag-icon/dynamic-country-flag-icon.es.js +366 -0
  229. package/dist/country-flag-icon/dynamic-country-flag-icon.es.js.map +1 -0
  230. package/dist/{date-field-hA79n6mP.js → date-field-CtpWDaSh.js} +2 -2
  231. package/dist/{date-field-hA79n6mP.js.map → date-field-CtpWDaSh.js.map} +1 -1
  232. package/dist/{date-field-DVp_RMNm.mjs → date-field-_rCuf15v.mjs} +2 -2
  233. package/dist/{date-field-DVp_RMNm.mjs.map → date-field-_rCuf15v.mjs.map} +1 -1
  234. package/dist/date-field.cjs.js +1 -1
  235. package/dist/date-field.es.js +1 -1
  236. package/dist/{date-picker-Dzoo_hhQ.js → date-picker-BYlszX1W.js} +2 -2
  237. package/dist/{date-picker-Dzoo_hhQ.js.map → date-picker-BYlszX1W.js.map} +1 -1
  238. package/dist/{date-picker-B8ta-Q8V.mjs → date-picker-sqcNAplg.mjs} +6 -6
  239. package/dist/{date-picker-B8ta-Q8V.mjs.map → date-picker-sqcNAplg.mjs.map} +1 -1
  240. package/dist/date-picker.cjs.js +1 -1
  241. package/dist/date-picker.es.js +1 -1
  242. package/dist/date-range-field-B33XeBW8.js +2 -0
  243. package/dist/date-range-field-B33XeBW8.js.map +1 -0
  244. package/dist/{date-range-field-BZUjfftV.mjs → date-range-field-BmjQeiOv.mjs} +23 -23
  245. package/dist/date-range-field-BmjQeiOv.mjs.map +1 -0
  246. package/dist/date-range-field.cjs.js +1 -1
  247. package/dist/date-range-field.es.js +1 -1
  248. package/dist/{dismissable-chip-group-2updhyuR.js → dismissable-chip-group-5ALErhD2.js} +2 -2
  249. package/dist/dismissable-chip-group-5ALErhD2.js.map +1 -0
  250. package/dist/{dismissable-chip-group-Cfs2s2BH.mjs → dismissable-chip-group-DMNU7g5e.mjs} +3 -3
  251. package/dist/dismissable-chip-group-DMNU7g5e.mjs.map +1 -0
  252. package/dist/dismissable-chip-group.cjs.js +1 -1
  253. package/dist/dismissable-chip-group.es.js +1 -1
  254. package/dist/{drawer-cIUx6WSZ.mjs → drawer-Chx3H8EU.mjs} +241 -233
  255. package/dist/drawer-Chx3H8EU.mjs.map +1 -0
  256. package/dist/drawer-oFJcxW58.js +2 -0
  257. package/dist/drawer-oFJcxW58.js.map +1 -0
  258. package/dist/drawer.cjs.js +1 -1
  259. package/dist/drawer.es.js +1 -1
  260. package/dist/dropdown-Bn7WvsL2.js +2 -0
  261. package/dist/dropdown-Bn7WvsL2.js.map +1 -0
  262. package/dist/dropdown-CrufJnb4.mjs +945 -0
  263. package/dist/dropdown-CrufJnb4.mjs.map +1 -0
  264. package/dist/dropdown.cjs.js +1 -1
  265. package/dist/dropdown.es.js +1 -1
  266. package/dist/file-upload-Ctw6LCTU.mjs +589 -0
  267. package/dist/file-upload-Ctw6LCTU.mjs.map +1 -0
  268. package/dist/file-upload-MvNuX4ks.js +2 -0
  269. package/dist/file-upload-MvNuX4ks.js.map +1 -0
  270. package/dist/file-upload.cjs.js +2 -0
  271. package/dist/file-upload.cjs.js.map +1 -0
  272. package/dist/file-upload.es.js +5 -0
  273. package/dist/file-upload.es.js.map +1 -0
  274. package/dist/{floating-ui.react-dom-EredA301.mjs → floating-ui.react-dom-1kwKo24Z.mjs} +15 -15
  275. package/dist/{floating-ui.react-dom-EredA301.mjs.map → floating-ui.react-dom-1kwKo24Z.mjs.map} +1 -1
  276. package/dist/footer-Bbemct3Z.js +2 -0
  277. package/dist/footer-Bbemct3Z.js.map +1 -0
  278. package/dist/{footer-D-2b7UIB.mjs → footer-DkVmTd-f.mjs} +25 -25
  279. package/dist/footer-DkVmTd-f.mjs.map +1 -0
  280. package/dist/footer.cjs.js +1 -1
  281. package/dist/footer.es.js +1 -1
  282. package/dist/{heading-xwBuT_-9.mjs → heading-BG7JTFO1.mjs} +25 -24
  283. package/dist/heading-BG7JTFO1.mjs.map +1 -0
  284. package/dist/{heading-drD5ugCC.js → heading-BPeRwNYu.js} +2 -2
  285. package/dist/heading-BPeRwNYu.js.map +1 -0
  286. package/dist/heading.cjs.js +1 -1
  287. package/dist/heading.es.js +6 -5
  288. package/dist/{hero-banner-n9K-Jsdz.mjs → hero-banner-ChDoFRhq.mjs} +4 -4
  289. package/dist/hero-banner-ChDoFRhq.mjs.map +1 -0
  290. package/dist/{hero-banner--v-ezYMr.js → hero-banner-Mag1OwL4.js} +2 -2
  291. package/dist/hero-banner-Mag1OwL4.js.map +1 -0
  292. package/dist/hero-banner.cjs.js +1 -1
  293. package/dist/hero-banner.es.js +1 -1
  294. package/dist/index-BPY_9ddu.js +2 -0
  295. package/dist/index-BPY_9ddu.js.map +1 -0
  296. package/dist/index-Fewa56cA.mjs +440 -0
  297. package/dist/index-Fewa56cA.mjs.map +1 -0
  298. package/dist/libraries/library/src/calendar.d.ts +1 -1
  299. package/dist/libraries/library/src/card.d.ts +1 -1
  300. package/dist/libraries/library/src/container.d.ts +1 -1
  301. package/dist/libraries/library/src/content-block.d.ts +1 -1
  302. package/dist/libraries/library/src/dismissable-chip-group.d.ts +1 -1
  303. package/dist/libraries/library/src/drawer.d.ts +1 -1
  304. package/dist/libraries/library/src/file-upload.d.ts +6 -0
  305. package/dist/libraries/library/src/file-upload.d.ts.map +1 -0
  306. package/dist/libraries/library/src/library.d.ts +2 -1
  307. package/dist/libraries/library/src/library.d.ts.map +1 -1
  308. package/dist/libraries/library/src/notification-banner.d.ts +1 -1
  309. package/dist/libraries/library/src/notification.d.ts +1 -1
  310. package/dist/libraries/library/src/password-field.d.ts +6 -2
  311. package/dist/libraries/library/src/password-field.d.ts.map +1 -1
  312. package/dist/libraries/library/src/radio-button-group.d.ts +1 -1
  313. package/dist/libraries/library/src/radio-card-group.d.ts +1 -1
  314. package/dist/libraries/library/src/spinner.d.ts +1 -1
  315. package/dist/libraries/library/src/stepper.d.ts +1 -1
  316. package/dist/libraries/library/src/tooltip.d.ts +1 -1
  317. package/dist/libraries/library/src/visually-hidden.d.ts +1 -1
  318. package/dist/libraries/theme/src/ThemeProvider.d.ts +1 -1
  319. package/dist/library.cjs.js +1 -1
  320. package/dist/library.es.js +603 -601
  321. package/dist/library.es.js.map +1 -1
  322. package/dist/link-Dzqd0QuD.js +2 -0
  323. package/dist/{link-DhWVrkTz.js.map → link-Dzqd0QuD.js.map} +1 -1
  324. package/dist/link-ccCdDvBc.mjs +72 -0
  325. package/dist/{link-DY5WLpyc.mjs.map → link-ccCdDvBc.mjs.map} +1 -1
  326. package/dist/link.cjs.js +1 -1
  327. package/dist/link.es.js +1 -1
  328. package/dist/main-B501z9Ql.js +2 -0
  329. package/dist/main-B501z9Ql.js.map +1 -0
  330. package/dist/main-L71Sqg3s.mjs +1016 -0
  331. package/dist/main-L71Sqg3s.mjs.map +1 -0
  332. package/dist/{modal-D0Qxrvx5.js → modal-CXOYUsJm.js} +2 -2
  333. package/dist/modal-CXOYUsJm.js.map +1 -0
  334. package/dist/{modal-Bu1Zv5Ic.mjs → modal-Pwvhrzn-.mjs} +31 -31
  335. package/dist/modal-Pwvhrzn-.mjs.map +1 -0
  336. package/dist/modal.cjs.js +1 -1
  337. package/dist/modal.es.js +1 -1
  338. package/dist/{notification-D2oClkX2.js → notification-BkM2vLzI.js} +2 -2
  339. package/dist/{notification-D2oClkX2.js.map → notification-BkM2vLzI.js.map} +1 -1
  340. package/dist/{notification-DiVdy6E_.mjs → notification-Cbn0UN1p.mjs} +3 -3
  341. package/dist/{notification-DiVdy6E_.mjs.map → notification-Cbn0UN1p.mjs.map} +1 -1
  342. package/dist/notification-banner-B9RhXAZ8.js +2 -0
  343. package/dist/notification-banner-B9RhXAZ8.js.map +1 -0
  344. package/dist/{notification-banner-CZTQZ5Le.mjs → notification-banner-C4NVekCZ.mjs} +5 -5
  345. package/dist/notification-banner-C4NVekCZ.mjs.map +1 -0
  346. package/dist/notification-banner.cjs.js +1 -1
  347. package/dist/notification-banner.es.js +1 -1
  348. package/dist/notification.cjs.js +1 -1
  349. package/dist/notification.es.js +1 -1
  350. package/dist/password-field-Cy_E-D_G.mjs +200 -0
  351. package/dist/password-field-Cy_E-D_G.mjs.map +1 -0
  352. package/dist/password-field-lKyWHjQS.js +2 -0
  353. package/dist/password-field-lKyWHjQS.js.map +1 -0
  354. package/dist/password-field.cjs.js +2 -0
  355. package/dist/password-field.cjs.js.map +1 -0
  356. package/dist/password-field.es.js +6 -0
  357. package/dist/password-field.es.js.map +1 -0
  358. package/dist/popover-B6ntmuEK.mjs +614 -0
  359. package/dist/popover-B6ntmuEK.mjs.map +1 -0
  360. package/dist/popover-DJHMEFXP.js +2 -0
  361. package/dist/popover-DJHMEFXP.js.map +1 -0
  362. package/dist/popover.cjs.js +1 -1
  363. package/dist/popover.es.js +1 -1
  364. package/dist/{product-card-CxfHfJVV.mjs → product-card-BMseoNrG.mjs} +3 -3
  365. package/dist/{product-card-CxfHfJVV.mjs.map → product-card-BMseoNrG.mjs.map} +1 -1
  366. package/dist/{product-card-XxBwuxM-.js → product-card-D0jX5-up.js} +2 -2
  367. package/dist/{product-card-XxBwuxM-.js.map → product-card-D0jX5-up.js.map} +1 -1
  368. package/dist/product-card.cjs.js +1 -1
  369. package/dist/product-card.es.js +1 -1
  370. package/dist/{promotion-card-C1UoxzcV.js → promotion-card-B3mz__m7.js} +2 -2
  371. package/dist/promotion-card-B3mz__m7.js.map +1 -0
  372. package/dist/{promotion-card-CooYPpFo.mjs → promotion-card-Co6qAkTZ.mjs} +5 -5
  373. package/dist/promotion-card-Co6qAkTZ.mjs.map +1 -0
  374. package/dist/promotion-card.cjs.js +1 -1
  375. package/dist/promotion-card.es.js +1 -1
  376. package/dist/purpur.css +1 -1
  377. package/dist/quantity-selector-Cy0aJGGX.js +2 -0
  378. package/dist/quantity-selector-Cy0aJGGX.js.map +1 -0
  379. package/dist/quantity-selector-k6ZaVrk1.mjs +162 -0
  380. package/dist/quantity-selector-k6ZaVrk1.mjs.map +1 -0
  381. package/dist/quantity-selector.cjs.js +1 -1
  382. package/dist/quantity-selector.es.js +2 -3
  383. package/dist/{radio-button-group-D_F6kWD6.mjs → radio-button-group-DjiTo3b1.mjs} +2 -2
  384. package/dist/{radio-button-group-D_F6kWD6.mjs.map → radio-button-group-DjiTo3b1.mjs.map} +1 -1
  385. package/dist/{radio-button-group-CdUrC7h9.js → radio-button-group-uCRGh1H5.js} +2 -2
  386. package/dist/{radio-button-group-CdUrC7h9.js.map → radio-button-group-uCRGh1H5.js.map} +1 -1
  387. package/dist/radio-button-group.cjs.js +1 -1
  388. package/dist/radio-button-group.es.js +1 -1
  389. package/dist/{radio-card-group-B9_jOJnM.mjs → radio-card-group-DoM7qYO1.mjs} +2 -2
  390. package/dist/{radio-card-group-B9_jOJnM.mjs.map → radio-card-group-DoM7qYO1.mjs.map} +1 -1
  391. package/dist/{radio-card-group-DcdGkfOp.js → radio-card-group-_9wJC-s3.js} +2 -2
  392. package/dist/{radio-card-group-DcdGkfOp.js.map → radio-card-group-_9wJC-s3.js.map} +1 -1
  393. package/dist/radio-card-group.cjs.js +1 -1
  394. package/dist/radio-card-group.es.js +1 -1
  395. package/dist/rich-text.cjs.js +1 -1
  396. package/dist/rich-text.es.js +1 -1
  397. package/dist/{search-field-afhtC6q5.mjs → search-field-BTJtRyw5.mjs} +3 -3
  398. package/dist/{search-field-afhtC6q5.mjs.map → search-field-BTJtRyw5.mjs.map} +1 -1
  399. package/dist/{search-field-WJBtiK0K.js → search-field-nzVXak1a.js} +2 -2
  400. package/dist/{search-field-WJBtiK0K.js.map → search-field-nzVXak1a.js.map} +1 -1
  401. package/dist/search-field.cjs.js +1 -1
  402. package/dist/search-field.es.js +1 -1
  403. package/dist/stepper-D59T-Y2_.mjs +469 -0
  404. package/dist/stepper-D59T-Y2_.mjs.map +1 -0
  405. package/dist/stepper-Dao4XaDV.js +2 -0
  406. package/dist/stepper-Dao4XaDV.js.map +1 -0
  407. package/dist/stepper.cjs.js +1 -1
  408. package/dist/stepper.es.js +1 -1
  409. package/dist/table-DRSgesQ4.mjs +4545 -0
  410. package/dist/table-DRSgesQ4.mjs.map +1 -0
  411. package/dist/table-zBs9JALh.js +5 -0
  412. package/dist/table-zBs9JALh.js.map +1 -0
  413. package/dist/table.cjs.js +1 -1
  414. package/dist/table.es.js +1 -1
  415. package/dist/tabs-D2__wbCs.js +2 -0
  416. package/dist/tabs-D2__wbCs.js.map +1 -0
  417. package/dist/tabs-DOG5g2wf.mjs +440 -0
  418. package/dist/tabs-DOG5g2wf.mjs.map +1 -0
  419. package/dist/tabs.cjs.js +1 -1
  420. package/dist/tabs.es.js +1 -1
  421. package/dist/{text-field-VW8ObP83.js → text-field-BSgqJjpv.js} +2 -2
  422. package/dist/text-field-BSgqJjpv.js.map +1 -0
  423. package/dist/{text-field-D0e-cRbG.mjs → text-field-MQHeITxy.mjs} +3 -3
  424. package/dist/text-field-MQHeITxy.mjs.map +1 -0
  425. package/dist/text-field.cjs.js +1 -1
  426. package/dist/text-field.es.js +1 -1
  427. package/dist/tooltip-DeP1UsPW.js +2 -0
  428. package/dist/{tooltip-B-11qk-0.js.map → tooltip-DeP1UsPW.js.map} +1 -1
  429. package/dist/{tooltip-DngYHn5W.mjs → tooltip-bqdd2lJL.mjs} +347 -309
  430. package/dist/{tooltip-DngYHn5W.mjs.map → tooltip-bqdd2lJL.mjs.map} +1 -1
  431. package/dist/tooltip.cjs.js +1 -1
  432. package/dist/tooltip.es.js +1 -1
  433. package/package.json +21 -26
  434. package/scripts/generate.mts +1 -4
  435. package/src/aliases.ts +8 -4
  436. package/src/entries.js +2 -1
  437. package/src/{autocomplete.ts → file-upload.ts} +1 -1
  438. package/src/library.ts +2 -2
  439. package/src/password-field.ts +0 -1
  440. package/src/purpur.css +4 -0
  441. package/dist/accordion-B6OoQ4uZ.mjs +0 -128
  442. package/dist/accordion-B6OoQ4uZ.mjs.map +0 -1
  443. package/dist/accordion-BfpN5h4C.js +0 -2
  444. package/dist/accordion-BfpN5h4C.js.map +0 -1
  445. package/dist/autocomplete-BX1KDZqL.js +0 -2
  446. package/dist/autocomplete-BX1KDZqL.js.map +0 -1
  447. package/dist/autocomplete-CmLzmWp4.mjs +0 -228
  448. package/dist/autocomplete-CmLzmWp4.mjs.map +0 -1
  449. package/dist/autocomplete.cjs.js +0 -2
  450. package/dist/autocomplete.cjs.js.map +0 -1
  451. package/dist/autocomplete.es.js +0 -6
  452. package/dist/autocomplete.es.js.map +0 -1
  453. package/dist/button-4-yWOgtD.mjs +0 -109
  454. package/dist/button-4-yWOgtD.mjs.map +0 -1
  455. package/dist/button-DmybVApa.js +0 -2
  456. package/dist/button-DmybVApa.js.map +0 -1
  457. package/dist/card-pdsBEJif.js.map +0 -1
  458. package/dist/card-t2ZkZ82G.mjs.map +0 -1
  459. package/dist/components/autocomplete/src/autocomplete.d.ts +0 -18
  460. package/dist/components/autocomplete/src/autocomplete.d.ts.map +0 -1
  461. package/dist/components/autocomplete/src/useAutocomplete.d.ts +0 -59
  462. package/dist/components/autocomplete/src/useAutocomplete.d.ts.map +0 -1
  463. package/dist/components/autocomplete/src/utils.d.ts +0 -7
  464. package/dist/components/autocomplete/src/utils.d.ts.map +0 -1
  465. package/dist/components/stepper/src/stepper-button.d.ts.map +0 -1
  466. package/dist/content-block-CDMrz41K.mjs.map +0 -1
  467. package/dist/content-block-DyYAnL2e.js.map +0 -1
  468. package/dist/date-range-field-BZUjfftV.mjs.map +0 -1
  469. package/dist/date-range-field-Dqqgj41u.js +0 -2
  470. package/dist/date-range-field-Dqqgj41u.js.map +0 -1
  471. package/dist/dismissable-chip-group-2updhyuR.js.map +0 -1
  472. package/dist/dismissable-chip-group-Cfs2s2BH.mjs.map +0 -1
  473. package/dist/drawer-DyLQfvEh.js +0 -2
  474. package/dist/drawer-DyLQfvEh.js.map +0 -1
  475. package/dist/drawer-cIUx6WSZ.mjs.map +0 -1
  476. package/dist/dropdown-C8VsfTQw.mjs +0 -936
  477. package/dist/dropdown-C8VsfTQw.mjs.map +0 -1
  478. package/dist/dropdown-p4R2yCnJ.js +0 -2
  479. package/dist/dropdown-p4R2yCnJ.js.map +0 -1
  480. package/dist/footer-Cn1-zG1v.js +0 -2
  481. package/dist/footer-Cn1-zG1v.js.map +0 -1
  482. package/dist/footer-D-2b7UIB.mjs.map +0 -1
  483. package/dist/heading-drD5ugCC.js.map +0 -1
  484. package/dist/heading-xwBuT_-9.mjs.map +0 -1
  485. package/dist/hero-banner--v-ezYMr.js.map +0 -1
  486. package/dist/hero-banner-n9K-Jsdz.mjs.map +0 -1
  487. package/dist/libraries/library/src/autocomplete.d.ts +0 -6
  488. package/dist/libraries/library/src/autocomplete.d.ts.map +0 -1
  489. package/dist/link-DY5WLpyc.mjs +0 -72
  490. package/dist/link-DhWVrkTz.js +0 -2
  491. package/dist/modal-Bu1Zv5Ic.mjs.map +0 -1
  492. package/dist/modal-D0Qxrvx5.js.map +0 -1
  493. package/dist/notification-banner-BxHwTFnH.js +0 -2
  494. package/dist/notification-banner-BxHwTFnH.js.map +0 -1
  495. package/dist/notification-banner-CZTQZ5Le.mjs.map +0 -1
  496. package/dist/popover-CY75TnbA.js +0 -2
  497. package/dist/popover-CY75TnbA.js.map +0 -1
  498. package/dist/popover-wiiwtqWE.mjs +0 -1043
  499. package/dist/popover-wiiwtqWE.mjs.map +0 -1
  500. package/dist/promotion-card-C1UoxzcV.js.map +0 -1
  501. package/dist/promotion-card-CooYPpFo.mjs.map +0 -1
  502. package/dist/quantity-selector-BEYMDsBM.js +0 -2
  503. package/dist/quantity-selector-BEYMDsBM.js.map +0 -1
  504. package/dist/quantity-selector-Cp-e5xKJ.mjs +0 -172
  505. package/dist/quantity-selector-Cp-e5xKJ.mjs.map +0 -1
  506. package/dist/stepper-20s8dnPA.mjs +0 -449
  507. package/dist/stepper-20s8dnPA.mjs.map +0 -1
  508. package/dist/stepper-VDiR2I8F.js +0 -2
  509. package/dist/stepper-VDiR2I8F.js.map +0 -1
  510. package/dist/table-B5ZitZoL.js +0 -9
  511. package/dist/table-B5ZitZoL.js.map +0 -1
  512. package/dist/table-CNIL-60s.mjs +0 -7428
  513. package/dist/table-CNIL-60s.mjs.map +0 -1
  514. package/dist/tabs-Bye5lgZ1.mjs +0 -424
  515. package/dist/tabs-Bye5lgZ1.mjs.map +0 -1
  516. package/dist/tabs-D-nfZHIA.js +0 -2
  517. package/dist/tabs-D-nfZHIA.js.map +0 -1
  518. package/dist/text-field-D0e-cRbG.mjs.map +0 -1
  519. package/dist/text-field-VW8ObP83.js.map +0 -1
  520. package/dist/tooltip-B-11qk-0.js +0 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-Ctw6LCTU.mjs","sources":["../../../components/icon/dist/components/remove.es.js","../../../components/icon/dist/components/attachment.es.js","../../../components/icon/dist/components/upload.es.js","../../../components/file-upload/src/file-upload-button.tsx","../../../components/illustrative-icon/dist/_commonjsHelpers-C6fGbg64.mjs","../../../components/illustrative-icon/dist/static-illustrative-icon-B1ddcvze.mjs","../../../components/illustrative-icon/dist/components/document-attach-duocolor-static.es.js","../../../components/illustrative-icon/dist/components/document-upload-duocolor-static.es.js","../../../components/file-upload/src/file-upload-drag-and-drop.tsx","../../../components/file-upload/src/file-upload-file-name-label.tsx","../../../components/icon/dist/components/doc.es.js","../../../components/icon/dist/components/document-doc.es.js","../../../components/icon/dist/components/document-excel.es.js","../../../components/icon/dist/components/document-pdf.es.js","../../../components/icon/dist/components/document-ppt.es.js","../../../components/icon/dist/components/image.es.js","../../../components/icon/dist/components/video.es.js","../../../components/icon/dist/components/volume.es.js","../../../components/file-upload/src/file-upload-icon.tsx","../../../components/file-upload/src/file-upload-utils.ts","../../../components/file-upload/src/file-upload.tsx"],"sourcesContent":["import { jsx as a } from \"react/jsx-runtime\";\nimport { I as e } from \"../icon-DNHpBTHs.mjs\";\nconst v = {\n name: \"remove\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M7.6 2.5a.9.9 0 0 1 .9-.9h7a.9.9 0 0 1 .9.9v2.6h4.1a.9.9 0 0 1 0 1.8h-17a.9.9 0 0 1 0-1.8h11.1V3.4H9.4v.1a.9.9 0 0 1-1.8 0v-1ZM5 8.1a.9.9 0 0 1 .9.9v11.6h12.2V9a.9.9 0 1 1 1.8 0v12.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V9a.9.9 0 0 1 .9-.9Zm4.5 1a.9.9 0 0 1 .9.9v8a.9.9 0 0 1-1.8 0v-8a.9.9 0 0 1 .9-.9Zm5 0a.9.9 0 0 1 .9.9v8a.9.9 0 0 1-1.8 0v-8a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"remove\"],\n category: \"action\"\n}, r = (o) => /* @__PURE__ */ a(e, { ...o, svg: v });\nr.displayName = \"IconRemove\";\nexport {\n r as IconRemove\n};\n//# sourceMappingURL=remove.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nimport { I as o } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"attachment\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M15.654 3.87a3.872 3.872 0 0 1 5.484 0 3.913 3.913 0 0 1 0 5.5L10.934 19.636a5.34 5.34 0 0 1-7.588 0l-.002-.002a5.42 5.42 0 0 1 0-7.613l.004-.004 8.016-8.015a.9.9 0 0 1 1.272 1.273l-8.013 8.013a3.62 3.62 0 0 0 0 5.08 3.54 3.54 0 0 0 5.035-.002L19.862 8.102a2.113 2.113 0 0 0 0-2.962 2.072 2.072 0 0 0-2.931 0l-9.396 9.456a.607.607 0 0 0 0 .847c.226.228.6.228.827 0l.002-.002 3-3a.9.9 0 0 1 1.272 1.273L9.638 16.71a2.386 2.386 0 0 1-3.38 0 2.406 2.406 0 0 1 0-3.385l9.396-9.456Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"attachment\"],\n category: \"action\"\n}, l = (t) => /* @__PURE__ */ a(o, { ...t, svg: e });\nl.displayName = \"IconAttachment\";\nexport {\n l as IconAttachment\n};\n//# sourceMappingURL=attachment.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nimport { I as l } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"upload\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M1.6 2.5a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9V13a.9.9 0 0 1-1.8 0V3.4H3.4V13a.9.9 0 0 1-1.8 0V2.5Zm9.764 4.864a.9.9 0 0 1 1.272 0l5 5a.9.9 0 1 1-1.272 1.272L12.9 10.173V21.5a.9.9 0 0 1-1.8 0V10.173l-3.464 3.463a.9.9 0 0 1-1.272-1.272l5-5Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"upload\"],\n category: \"action\"\n}, r = (o) => /* @__PURE__ */ a(l, { ...o, svg: e });\nr.displayName = \"IconUpload\";\nexport {\n r as IconUpload\n};\n//# sourceMappingURL=upload.es.js.map\n","import React, { type ReactNode, useEffect, useId, useRef } from \"react\";\nimport { Button } from \"@purpur/button\";\nimport { IconAttachment } from \"@purpur/icon/attachment\";\nimport { IconUpload } from \"@purpur/icon/upload\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-button.module.scss\";\nimport type { FileUploadProps } from \"./file-upload-types\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-button\";\n\ntype Props = {\n accept?: string;\n children: ReactNode;\n disabled?: boolean;\n /** The full, merged list of files currently shown, kept in sync with the input's own file list. */\n files: File[];\n /**\n * Whether the trigger renders as a real, focusable button. Set to `false` when the\n * whole surrounding area (e.g. the drag-and-drop drop zone) is the actual clickable\n * control, so the visible trigger is just a \"fake\" button used for styling only.\n */\n interactive?: boolean;\n multiple: boolean;\n onFilesChange: (files: FileList | null | undefined) => void;\n useMediaQueries?: boolean;\n variant: FileUploadProps[\"variant\"];\n};\n\nexport const FileUploadButton = ({\n accept,\n children,\n disabled = false,\n files,\n interactive = true,\n multiple,\n onFilesChange,\n useMediaQueries = false,\n variant,\n}: Props) => {\n const inputId = useId();\n const inputRef = useRef<HTMLInputElement>(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n const icon = variant === \"attach\" ? <IconAttachment size=\"xs\" /> : <IconUpload size=\"xs\" />;\n\n // Selections can be added via drag-and-drop or merged with previous ones, so the input's own\n // file list (used e.g. when submitting a form) is kept in sync with the full list shown to the user.\n useEffect(() => {\n // jsdom (used in tests) doesn't implement DataTransfer, so skip syncing there.\n if (!inputRef.current || typeof DataTransfer === \"undefined\") {\n return;\n }\n\n const dataTransfer = new DataTransfer();\n files.forEach((file) => dataTransfer.items.add(file));\n inputRef.current.files = dataTransfer.files;\n }, [files]);\n\n const responsiveWidthClasses = {\n [`${rootClassName}--use-media-queries`]: useMediaQueries,\n [`${rootClassName}--use-container-queries`]: !useMediaQueries,\n };\n\n return (\n <>\n <input\n id={inputId}\n ref={inputRef}\n className={cx(`${rootClassName}__input`)}\n type=\"file\"\n accept={accept}\n disabled={disabled}\n multiple={multiple}\n tabIndex={interactive ? -1 : undefined}\n onFocus={\n interactive\n ? () => {\n // The browser moves focus to the (visually hidden) file input once the\n // file selection dialog closes. Send it back to the visible trigger\n // button so keyboard/focus-visible styling stays on the upload area.\n buttonRef.current?.focus();\n }\n : undefined\n }\n onChange={(e) => {\n onFilesChange(e.target.files);\n e.target.value = \"\";\n }}\n name=\"upload\"\n />\n {interactive ? (\n <Button\n ref={buttonRef}\n variant=\"secondary\"\n aria-controls={inputId}\n className={cx(rootClassName, responsiveWidthClasses)}\n onClick={() => inputRef.current?.click()}\n disabled={disabled}\n fullWidth\n >\n {icon}\n {children}\n </Button>\n ) : (\n <span\n className={cx(\n [\n rootClassName,\n `${rootClassName}--fake`,\n `${rootClassName}--fake--secondary`,\n `${rootClassName}--fake--md`,\n ],\n { [`${rootClassName}--fake--disabled`]: disabled },\n responsiveWidthClasses\n )}\n >\n {children}\n </span>\n )}\n </>\n );\n};\n","function e(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n}\nexport {\n e as g\n};\n//# sourceMappingURL=_commonjsHelpers-C6fGbg64.mjs.map\n","import { jsx as c } from \"react/jsx-runtime\";\nimport { forwardRef as p } from \"react\";\nimport { g as f } from \"./_commonjsHelpers-C6fGbg64.mjs\";\nvar u = { exports: {} };\nvar l;\nfunction v() {\n return l || (l = 1, (function(n) {\n (function() {\n var e = {}.hasOwnProperty;\n function i() {\n for (var t = \"\", r = 0; r < arguments.length; r++) {\n var s = arguments[r];\n s && (t = a(t, o.call(this, s)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return i.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var r = \"\";\n for (var s in t)\n e.call(t, s) && t[s] && (r = a(r, this && this[s] || s));\n return r;\n }\n function a(t, r) {\n return r ? t ? t + \" \" + r : t + r : t;\n }\n n.exports ? (i.default = i, n.exports = i) : window.classNames = i;\n })();\n })(u)), u.exports;\n}\nvar m = v();\nconst d = /* @__PURE__ */ f(m), g = {\n \"purpur-illustrative-icon\": \"_purpur-illustrative-icon_64k5d_1\"\n}, h = d.bind(g), S = \"purpur-illustrative-icon\", x = (n) => n.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}=\"${e.value}\"`).join(\" \"), b = ({ content: n = \"\", title: e } = {}) => {\n const i = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"none\" },\n { name: \"viewBox\", value: \"0 0 64 64\" },\n e ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], o = e ? `<title>${e}</title>` : \"\";\n return `<svg ${x(i)}>${o}${n}</svg>`;\n}, y = (n) => n.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), w = p(\n ({ svg: n, allyTitle: e, className: i, ...o }, a) => {\n const t = b({\n content: y(n),\n title: e\n });\n return /* @__PURE__ */ c(\n \"span\",\n {\n className: h(S, i),\n dangerouslySetInnerHTML: { __html: t },\n ref: a,\n ...o\n }\n );\n }\n);\nw.displayName = \"StaticIllustrativeIcon\";\nexport {\n w as S\n};\n//# sourceMappingURL=static-illustrative-icon-B1ddcvze.mjs.map\n","import { jsx as t } from \"react/jsx-runtime\";\nimport { S as c } from \"../static-illustrative-icon-B1ddcvze.mjs\";\nconst v = {\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 64 64\"><path fill=\"#990AE3\" d=\"M30.14 43.815a3.925 3.925 0 0 1-3.92-3.92v-10.21a2.953 2.953 0 0 1 2.95-2.95 2.953 2.953 0 0 1 2.95 2.95v6.67a.5.5 0 1 1-1 0v-6.67c0-1.075-.875-1.95-1.95-1.95-1.076 0-1.95.875-1.95 1.95v10.21c0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92v-11.93c0-2.09-1.7-3.79-3.79-3.79s-3.79 1.7-3.79 3.79v6.71a.5.5 0 1 1-1 0v-6.71a4.795 4.795 0 0 1 4.79-4.79 4.795 4.795 0 0 1 4.79 4.79v11.93a3.925 3.925 0 0 1-3.92 3.92Z\"/><path fill=\"#29003E\" d=\"M47.59 56.335H14.35c-.85 0-1.54-.69-1.54-1.54v-42.59c0-.85.69-1.54 1.54-1.54h24.5c.417 0 .805.158 1.093.446l7.7 7.7c.288.288.447.676.447 1.094v32.9a.5.5 0 1 1-1 0v-32.9a.541.541 0 0 0-.154-.387l-7.7-7.7a.534.534 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54v42.59c0 .302.238.54.54.54h33.24a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M47.33 20.255h-8.2a.5.5 0 0 1-.5-.5v-8.21a.5.5 0 1 1 1 0v7.71h7.7a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M50.69 51.495a.5.5 0 0 1-.5-.5v-34.09a.542.542 0 0 0-.154-.388l-7.7-7.699a.528.528 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54.5.5 0 1 1-1 0c0-.85.69-1.54 1.54-1.54h24.5c.416 0 .805.158 1.093.445l7.7 7.701c.289.29.447.678.447 1.094v34.09a.5.5 0 0 1-.5.5Z\"/></svg>'\n}, l = (a) => /* @__PURE__ */ t(c, { ...a, svg: v.svg });\nl.displayName = \"IllustrativeIconDocumentAttachDuocolorStatic\";\nexport {\n l as IllustrativeIconDocumentAttachDuocolorStatic\n};\n//# sourceMappingURL=document-attach-duocolor-static.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nimport { S as t } from \"../static-illustrative-icon-B1ddcvze.mjs\";\nconst o = {\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 64 64\"><path fill=\"#990AE3\" d=\"M30.45 43.685a.5.5 0 0 1-.5-.5v-11.41a.5.5 0 1 1 1 0v11.41a.5.5 0 0 1-.5.5Z\"/><path fill=\"#990AE3\" d=\"M26.44 36.215a.499.499 0 0 1-.354-.854l4.01-4.01a.5.5 0 0 1 .707 0l4.011 4.01a.5.5 0 1 1-.707.707l-3.657-3.656-3.656 3.656a.499.499 0 0 1-.354.147Z\"/><path fill=\"#990AE3\" d=\"M27.46 40.668a.395.395 0 0 1-.181-.045l-.107-.056c-2.303-1.271-3.682-3.604-3.682-6.132a6.958 6.958 0 0 1 6.95-6.95 6.959 6.959 0 0 1 6.95 6.95 6.976 6.976 0 0 1-3.696 6.15c-.242.124-.58.056-.711-.182-.13-.238-.088-.514.147-.65l.104-.056a5.974 5.974 0 0 0 3.156-5.262 5.957 5.957 0 0 0-5.95-5.95 5.956 5.956 0 0 0-5.95 5.95 5.96 5.96 0 0 0 3.082 5.212c.247.122.424.461.302.71-.091.185-.24.31-.415.31Z\"/><path fill=\"#29003E\" d=\"M47.59 56.335H14.35c-.85 0-1.54-.69-1.54-1.54v-42.59c0-.85.69-1.54 1.54-1.54h24.5c.418 0 .806.158 1.094.446l7.7 7.7c.287.288.446.677.446 1.094v32.9a.5.5 0 1 1-1 0v-32.9a.541.541 0 0 0-.154-.387l-7.7-7.7a.526.526 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54v42.59c0 .302.237.54.54.54h33.24a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M47.33 20.255h-8.2a.5.5 0 0 1-.5-.5v-8.21a.5.5 0 1 1 1 0v7.71h7.7a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M50.69 51.495a.5.5 0 0 1-.5-.5v-34.09a.541.541 0 0 0-.153-.387l-7.7-7.7a.526.526 0 0 0-.387-.153h-24.5a.534.534 0 0 0-.54.54.5.5 0 1 1-1 0c0-.85.69-1.54 1.54-1.54h24.5c.418 0 .805.158 1.093.446l7.7 7.7c.289.288.447.676.447 1.094v34.09a.5.5 0 0 1-.5.5Z\"/></svg>'\n}, c = (a) => /* @__PURE__ */ l(t, { ...a, svg: o.svg });\nc.displayName = \"IllustrativeIconDocumentUploadDuocolorStatic\";\nexport {\n c as IllustrativeIconDocumentUploadDuocolorStatic\n};\n//# sourceMappingURL=document-upload-duocolor-static.es.js.map\n","import React, { useId, useRef, useState } from \"react\";\nimport { DndContext, useDroppable } from \"@dnd-kit/core\";\nimport { IllustrativeIconDocumentAttachDuocolorStatic } from \"@purpur/illustrative-icon/document-attach-duocolor-static\";\nimport { IllustrativeIconDocumentUploadDuocolorStatic } from \"@purpur/illustrative-icon/document-upload-duocolor-static\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-drag-and-drop.module.scss\";\nimport type { FileUploadProps } from \"./file-upload-types\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-drag-and-drop\";\n\ntype FileUploadDragAndDropProps = Pick<\n FileUploadProps,\n \"backgroundColor\" | \"dragAndDropLabel\" | \"variant\"\n> & {\n children: React.ReactNode;\n disabled?: boolean;\n onFilesChange: (files: FileList | null | undefined) => void;\n};\n\nexport const FileUploadDragAndDrop = ({\n backgroundColor,\n children,\n disabled = false,\n dragAndDropLabel,\n onFilesChange,\n variant,\n}: FileUploadDragAndDropProps) => {\n const dragAndDropId = useId();\n const dragDepthRef = useRef(0);\n const [isDragOver, setIsDragOver] = useState(false);\n const { setNodeRef } = useDroppable({ id: dragAndDropId });\n\n const isFileDragEvent = (event: React.DragEvent<HTMLDivElement>) => {\n return Array.from(event.dataTransfer?.types ?? []).includes(\"Files\");\n };\n\n const resetDragState = () => {\n dragDepthRef.current = 0;\n setIsDragOver(false);\n };\n\n const handleDragEnter = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n\n if (disabled) {\n return;\n }\n\n dragDepthRef.current += 1;\n setIsDragOver(true);\n };\n\n const handleDragOver = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n event.dataTransfer.dropEffect = disabled ? \"none\" : \"copy\";\n\n if (disabled) {\n return;\n }\n\n setIsDragOver(true);\n };\n\n const handleDragLeave = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n\n if (disabled) {\n return;\n }\n\n dragDepthRef.current = Math.max(0, dragDepthRef.current - 1);\n\n if (dragDepthRef.current === 0) {\n setIsDragOver(false);\n }\n };\n\n const handleDrop = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n\n if (disabled) {\n return;\n }\n\n onFilesChange(event.dataTransfer.files);\n resetDragState();\n };\n\n return (\n <DndContext>\n <div\n ref={setNodeRef}\n className={cx(`${rootClassName}__hit-area`)}\n onDragEnter={handleDragEnter}\n onDragOver={handleDragOver}\n onDragLeave={handleDragLeave}\n onDrop={handleDrop}\n >\n <label\n className={cx(rootClassName, {\n [`${rootClassName}--${backgroundColor}`]: backgroundColor,\n [`${rootClassName}--drag-over`]: isDragOver,\n [`${rootClassName}--disabled`]: disabled,\n })}\n >\n <div className={cx(`${rootClassName}__icon-and-text`)}>\n {variant === \"attach\" ? (\n <IllustrativeIconDocumentAttachDuocolorStatic\n className={cx(`${rootClassName}__icon`, {\n [`${rootClassName}__icon--disabled`]: disabled,\n })}\n />\n ) : (\n <IllustrativeIconDocumentUploadDuocolorStatic\n className={cx(`${rootClassName}__icon`, {\n [`${rootClassName}__icon--disabled`]: disabled,\n })}\n />\n )}\n <Paragraph variant=\"paragraph-100-medium\" disabled={disabled}>\n {dragAndDropLabel}\n </Paragraph>\n </div>\n {children}\n </label>\n </div>\n </DndContext>\n );\n};\n","import React, {\n type ComponentPropsWithoutRef,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-file-name-label.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-file-name-label\";\n\ntype FileNameLabelProps = {\n fileName: string;\n muted?: boolean;\n} & ComponentPropsWithoutRef<\"p\">;\n\ntype FileNameParts = {\n start: string;\n separator: string;\n end: string;\n};\n\nconst END_PART_WIDTH_RATIO = 0.4;\nconst MIN_END_PART_CHAR_LENGTH = 3;\nconst MAX_END_PART_CHAR_LENGTH = 28;\nconst MIN_START_CHAR_LENGTH = 3;\nconst FIRST_EXTENSION_DOT_MIN_INDEX = 1;\n\nconst splitFileName = (fileName: string) => {\n const lastDotIndex = fileName.lastIndexOf(\".\");\n\n const hasExtension =\n lastDotIndex >= FIRST_EXTENSION_DOT_MIN_INDEX && lastDotIndex < fileName.length - 1;\n\n return {\n baseName: hasExtension ? fileName.slice(0, lastDotIndex) : fileName,\n extension: hasExtension ? fileName.slice(lastDotIndex) : \"\",\n };\n};\n\nconst getTextWidth = (text: string, font: string) => {\n const canvas = document.createElement(\"canvas\");\n const context = canvas.getContext(\"2d\");\n\n if (!context) {\n return 0;\n }\n\n context.font = font;\n\n return context.measureText(text).width;\n};\n\nconst extractBoundaryWhitespace = (start: string, end: string): FileNameParts => {\n const trailingWhitespace = start.match(/\\s+$/)?.[0] ?? \"\";\n const leadingWhitespace = end.match(/^\\s+/)?.[0] ?? \"\";\n\n const separator = `${trailingWhitespace}${leadingWhitespace}`;\n\n return {\n start: trailingWhitespace ? start.slice(0, -trailingWhitespace.length) : start,\n separator,\n end: leadingWhitespace ? end.slice(leadingWhitespace.length) : end,\n };\n};\n\nconst getFileNameParts = (fileName: string, labelWidth: number, font: string): FileNameParts => {\n const { baseName, extension } = splitFileName(fileName);\n\n if (!labelWidth || !baseName) {\n return extractBoundaryWhitespace(baseName, extension);\n }\n\n const maxEndPartWidth = labelWidth * END_PART_WIDTH_RATIO;\n\n // Never trim more of the base name than leaves fewer than MIN_START_CHAR_LENGTH characters visible at the start.\n const maxStartTrimLength = Math.max(baseName.length - MIN_START_CHAR_LENGTH, 0);\n const maxAllowedEndPartLength = Math.min(MAX_END_PART_CHAR_LENGTH, maxStartTrimLength);\n\n let bestEndPartLength = Math.min(MIN_END_PART_CHAR_LENGTH, maxAllowedEndPartLength);\n\n for (\n let endPartLength = MIN_END_PART_CHAR_LENGTH;\n endPartLength <= maxAllowedEndPartLength;\n endPartLength += 1\n ) {\n const endPart = `${baseName.slice(-endPartLength)}${extension}`;\n const endPartWidth = getTextWidth(endPart, font);\n\n if (endPartWidth <= maxEndPartWidth) {\n bestEndPartLength = endPartLength;\n } else {\n break;\n }\n }\n\n const endPartLength = Math.min(bestEndPartLength, baseName.length);\n\n const start = baseName.slice(0, baseName.length - endPartLength);\n const end = `${baseName.slice(-endPartLength)}${extension}`;\n\n return extractBoundaryWhitespace(start, end);\n};\n\nexport const FileNameLabel = ({ fileName, muted, ...props }: FileNameLabelProps) => {\n const labelRef = useRef<HTMLParagraphElement>(null);\n const [labelWidth, setLabelWidth] = useState(0);\n const [font, setFont] = useState(\"\");\n\n useLayoutEffect(() => {\n const labelElement = labelRef.current;\n\n if (!labelElement) {\n return;\n }\n\n const updateMeasurements = () => {\n const computedStyle = window.getComputedStyle(labelElement);\n\n setLabelWidth(labelElement.getBoundingClientRect().width);\n setFont(computedStyle.font);\n };\n\n updateMeasurements();\n\n const resizeObserver = new ResizeObserver(updateMeasurements);\n\n resizeObserver.observe(labelElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, []);\n\n const { start, separator, end } = useMemo(\n () => getFileNameParts(fileName, labelWidth, font),\n [fileName, labelWidth, font]\n );\n\n return (\n <Paragraph\n variant=\"paragraph-100-medium\"\n className={cx(rootClassName)}\n ref={labelRef}\n disabled={muted}\n {...props}\n >\n <span className={cx(`${rootClassName}__start`)}>{start}</span>\n\n {separator && (\n <span className={cx(`${rootClassName}__separator`)} aria-hidden=\"true\">\n {separator.replace(/ /g, \"\\u00A0\")}\n </span>\n )}\n\n <span className={cx(`${rootClassName}__end`)}>{end}</span>\n </Paragraph>\n );\n};\n","import { jsx as o } from \"react/jsx-runtime\";\nimport { I as e } from \"../icon-DNHpBTHs.mjs\";\nconst c = {\n name: \"doc\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M4.1 2.5a.9.9 0 0 1 .9-.9h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19.9 8v13.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9v-19Zm1.8.9v17.2h12.2V8.9H14a.9.9 0 0 1-.9-.9V3.4H5.9Zm9 1.428L16.965 7.1H14.9V4.828ZM8.1 7a.9.9 0 0 1 .9-.9h1.5a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 1 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"doc\"],\n category: \"file\"\n}, r = (a) => /* @__PURE__ */ o(e, { ...a, svg: c });\nr.displayName = \"IconDoc\";\nexport {\n r as IconDoc\n};\n//# sourceMappingURL=doc.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nimport { I as o } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"document-doc\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-opacity=\".84\" fill-rule=\"evenodd\" d=\"M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 0 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/><path d=\"M5.572 10.05H3.184V16h2.388c1.581 0 2.924-1.241 2.924-2.975S7.153 10.05 5.572 10.05Zm-1.24 4.981v-4.012h1.24c1.012 0 1.768.825 1.768 2.006 0 1.181-.756 2.006-1.768 2.006h-1.24Zm7.938 1.105c1.658 0 3.052-1.3 3.052-3.111 0-1.81-1.394-3.111-3.052-3.111-1.649 0-3.043 1.3-3.043 3.111 0 1.81 1.394 3.111 3.043 3.111Zm0-.969c-1.08 0-1.895-.884-1.895-2.142s.816-2.142 1.895-2.142c1.088 0 1.904.884 1.904 2.142s-.816 2.142-1.904 2.142Zm6.832.969c.927 0 1.734-.391 2.244-.977l-.773-.706a1.883 1.883 0 0 1-1.47.714c-1.089 0-1.905-.884-1.905-2.142s.816-2.142 1.904-2.142c.57 0 1.063.255 1.403.629l.756-.714c-.51-.527-1.283-.884-2.159-.884-1.657 0-3.051 1.3-3.051 3.111 0 1.81 1.394 3.111 3.051 3.111Z\"/><path fill-rule=\"evenodd\" d=\"M3.084 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H3.084V9.95Zm.1 6.05h2.388c1.581 0 2.924-1.241 2.924-2.975S7.153 10.05 5.572 10.05H3.184V16Zm1.247-4.881v3.812h1.141c.946 0 1.668-.769 1.668-1.906s-.722-1.906-1.668-1.906h-1.14Zm10.99 1.906c0 1.867-1.439 3.211-3.15 3.211-1.704 0-3.144-1.345-3.144-3.211 0-1.866 1.44-3.211 3.143-3.211 1.712 0 3.152 1.345 3.152 3.211Zm-4.946 0c0 1.213.781 2.042 1.795 2.042 1.023 0 1.804-.829 1.804-2.042 0-1.213-.78-2.042-1.804-2.042-1.014 0-1.795.829-1.795 2.042Zm11.01 2.125-.063.074c-.53.61-1.365 1.012-2.32 1.012-1.712 0-3.151-1.345-3.151-3.211 0-1.866 1.44-3.211 3.151-3.211.903 0 1.702.368 2.231.915l.07.072-.904.854-.068-.076a1.79 1.79 0 0 0-1.329-.596c-1.023 0-1.804.829-1.804 2.042 0 1.213.781 2.042 1.804 2.042.579 0 1.078-.281 1.392-.676l.067-.084.925.843Zm-.977-.62c.023-.025.044-.051.065-.077l.773.706c-.51.586-1.317.977-2.244.977-1.657 0-3.051-1.3-3.051-3.111 0-1.81 1.394-3.111 3.051-3.111a3.022 3.022 0 0 1 2.16.884l-.757.714a1.885 1.885 0 0 0-1.402-.629c-1.089 0-1.905.884-1.905 2.142s.816 2.142 1.904 2.142a1.88 1.88 0 0 0 1.406-.637Zm-16.177.501h1.241c1.012 0 1.768-.825 1.768-2.006 0-1.181-.756-2.006-1.768-2.006h-1.24v4.012Zm10.99-2.006c0 1.81-1.393 3.111-3.05 3.111-1.65 0-3.044-1.3-3.044-3.111 0-1.81 1.394-3.111 3.043-3.111 1.658 0 3.052 1.3 3.052 3.111Zm-4.946 0c0 1.258.816 2.142 1.895 2.142 1.088 0 1.904-.884 1.904-2.142s-.816-2.142-1.904-2.142c-1.08 0-1.895.884-1.895 2.142Z\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M3.084 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H3.084V9.95Zm18.402 5.2-.064.074c-.53.61-1.365 1.012-2.32 1.012-1.712 0-3.151-1.345-3.151-3.211 0-1.866 1.44-3.211 3.151-3.211a3.122 3.122 0 0 1 2.231.915l.07.072-.904.854-.068-.076a1.825 1.825 0 0 0-.049-.05 1.786 1.786 0 0 0-1.28-.546c-1.023 0-1.804.829-1.804 2.042 0 1.213.781 2.042 1.804 2.042a1.78 1.78 0 0 0 1.392-.676l.067-.084.925.843ZM2.934 9.8h2.638c1.716 0 3.174 1.35 3.174 3.225S7.288 16.25 5.572 16.25H2.934V9.8Zm18.761 5.338-.16.185c-.56.642-1.436 1.063-2.433 1.063-1.794 0-3.301-1.41-3.301-3.361 0-1.95 1.507-3.361 3.301-3.361.943 0 1.782.384 2.339.96l.176.182-1.126 1.063-.171-.189a1.64 1.64 0 0 0-1.218-.547c-.926 0-1.654.747-1.654 1.892s.728 1.892 1.654 1.892c.529 0 .986-.257 1.275-.62l.167-.209 1.151 1.05ZM4.581 11.27v3.512h.991c.848 0 1.518-.685 1.518-1.756 0-1.07-.67-1.756-1.518-1.756h-.99Zm10.99 1.756c0 1.95-1.507 3.361-3.3 3.361-1.786 0-3.294-1.411-3.294-3.361 0-1.95 1.508-3.361 3.293-3.361 1.794 0 3.302 1.41 3.302 3.361Zm-4.946 0c0 1.146.729 1.892 1.645 1.892.926 0 1.654-.747 1.654-1.892s-.728-1.892-1.654-1.892c-.916 0-1.645.746-1.645 1.892ZM4.43 11.119h1.141c.946 0 1.668.769 1.668 1.906s-.722 1.906-1.668 1.906h-1.14v-3.812Zm7.84 5.117c1.711 0 3.15-1.345 3.15-3.211 0-1.866-1.439-3.211-3.15-3.211-1.704 0-3.144 1.345-3.144 3.211 0 1.866 1.44 3.211 3.143 3.211Zm0-1.169c-1.015 0-1.796-.829-1.796-2.042 0-1.213.781-2.042 1.795-2.042 1.023 0 1.804.829 1.804 2.042 0 1.213-.78 2.042-1.804 2.042Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"document-doc\"],\n category: \"file\"\n}, m = (c) => /* @__PURE__ */ l(o, { ...c, svg: e });\nm.displayName = \"IconDocumentDoc\";\nexport {\n m as IconDocumentDoc\n};\n//# sourceMappingURL=document-doc.es.js.map\n","import { jsx as L } from \"react/jsx-runtime\";\nimport { I as e } from \"../icon-DNHpBTHs.mjs\";\nconst H = {\n name: \"document-excel\",\n svg: '<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.09123 1.59961C4.85254 1.59961 4.62362 1.69443 4.45484 1.86321C4.28606 2.032 4.19123 2.26091 4.19123 2.49961V6.99961C4.19123 7.49667 4.59418 7.89961 5.09123 7.89961C5.58829 7.89961 5.99123 7.49667 5.99123 6.99961V3.39961H13.1912V7.99961C13.1912 8.49667 13.5942 8.89961 14.0912 8.89961H19.0912C19.4475 8.89961 19.7702 8.68949 19.9143 8.36371C20.0584 8.03793 19.9968 7.6578 19.7572 7.3942L14.7572 1.8942C14.5866 1.70658 14.3448 1.59961 14.0912 1.59961H5.09123ZM17.0567 7.09961L14.9912 4.82756V7.09961H17.0567Z\"/><path d=\"M5.99123 18.9996C5.99123 18.5026 5.58829 18.0996 5.09123 18.0996C4.59418 18.0996 4.19123 18.5026 4.19123 18.9996V21.4996C4.19123 21.9967 4.59418 22.3996 5.09123 22.3996H19.0912C19.5883 22.3996 19.9912 21.9967 19.9912 21.4996V18.9996C19.9912 18.5026 19.5883 18.0996 19.0912 18.0996C18.5942 18.0996 18.1912 18.5026 18.1912 18.9996V20.5996H5.99123V18.9996Z\"/><path d=\"M5.85772 9.94957L7.25113 11.9085L8.64454 9.94957H10.2271L8.10585 12.863L10.4653 16.0996H8.88269L7.25113 13.817L5.61957 16.0996H4.03655L6.40474 12.863L4.27464 9.94957H5.85772Z\"/><path d=\"M12.2278 14.9306V9.94957H10.8803V16.0996H14.9138V14.9306H12.2278Z\"/><path d=\"M15.7846 12.6443C16.0307 12.9326 16.4176 13.159 16.9777 13.3486L17.6572 13.5865C17.9185 13.6749 18.144 13.7729 18.3022 13.897C18.4568 14.0182 18.5423 14.1594 18.5423 14.3421C18.5423 14.5514 18.4498 14.7268 18.286 14.8524C18.1203 14.9795 17.8776 15.0581 17.5798 15.0581C17.0136 15.0581 16.4832 14.7468 16.1684 14.2463L16.1118 14.1563L15.137 14.8569L15.1804 14.9347C15.6612 15.7984 16.6434 16.2271 17.5628 16.2271C18.7539 16.2271 19.8048 15.4779 19.8048 14.2996C19.8048 13.8283 19.6726 13.452 19.3893 13.1458C19.1093 12.8432 18.6893 12.6175 18.1303 12.4283L17.5103 12.216C17.2511 12.1268 17.0456 12.0416 16.9053 11.9371C16.7702 11.8365 16.7023 11.7236 16.7023 11.5711C16.7023 11.2846 16.9787 10.9911 17.5628 10.9911C18.0557 10.9911 18.4859 11.1849 18.7539 11.4923L18.8168 11.5644L19.7256 10.8395L19.6645 10.7614C19.1826 10.1456 18.3599 9.82207 17.5628 9.82207C16.4054 9.82207 15.4398 10.5544 15.4398 11.6051C15.4398 12.0089 15.5358 12.3529 15.7846 12.6443Z\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.85772 9.94957L7.25113 11.9085L8.64454 9.94957H10.2271L8.10585 12.863L10.4653 16.0996H8.88269L7.25113 13.817L5.61957 16.0996H4.03655L6.40474 12.863L4.27464 9.94957H5.85772ZM6.25606 12.863L4.03826 9.82957H5.91962L7.25113 11.7015L8.58264 9.82957H10.4629L8.25432 12.863L10.7013 16.2196H8.82096L7.25113 14.0234L5.6813 16.2196H3.80005L6.25606 12.863ZM12.3478 9.82957V14.8106H14.9959L16.1454 13.9843L16.27 14.1824C16.5648 14.6511 17.0584 14.9381 17.5798 14.9381C17.8577 14.9381 18.0728 14.8647 18.213 14.7572C18.3489 14.6529 18.4223 14.512 18.4223 14.3421C18.4223 14.2053 18.3617 14.0961 18.2282 13.9914C18.0867 13.8805 17.8773 13.7877 17.6187 13.7001L17.6176 13.6997L16.9393 13.4623C16.9391 13.4622 16.9394 13.4624 16.9393 13.4623C16.3699 13.2695 15.9594 13.0339 15.6933 12.7222C15.4213 12.4036 15.3198 12.0293 15.3198 11.6051C15.3198 10.4663 16.3633 9.70207 17.5628 9.70207C18.3883 9.70207 19.2496 10.0365 19.759 10.6875L19.8933 10.8591L18.8018 11.7299L18.6634 11.5711C18.4207 11.2928 18.0249 11.1111 17.5628 11.1111C17.0137 11.1111 16.8223 11.3783 16.8223 11.5711C16.8223 11.6772 16.8648 11.7574 16.977 11.8409C17.1008 11.9331 17.29 12.0133 17.5493 12.1025C17.5493 12.1025 17.5492 12.1025 17.5493 12.1025L18.1688 12.3147C18.1688 12.3147 18.1687 12.3147 18.1688 12.3147C18.7355 12.5065 19.1776 12.7403 19.4774 13.0643C19.7846 13.3963 19.9248 13.8033 19.9248 14.2996C19.9248 15.5662 18.7958 16.3471 17.5628 16.3471C16.6113 16.3471 15.5826 15.9038 15.0755 14.9931L15.0338 14.9181V16.2196H10.7603V9.82957H12.3478ZM18.1303 12.4283L17.5103 12.216C17.2511 12.1268 17.0456 12.0416 16.9053 11.9371C16.7702 11.8365 16.7023 11.7236 16.7023 11.5711C16.7023 11.2846 16.9787 10.9911 17.5628 10.9911C18.0557 10.9911 18.4859 11.1849 18.7539 11.4923L18.8168 11.5644L19.7256 10.8395L19.6645 10.7614C19.1826 10.1456 18.3599 9.82207 17.5628 9.82207C16.4054 9.82207 15.4398 10.5544 15.4398 11.6051C15.4398 12.0089 15.5358 12.3529 15.7846 12.6443C16.0307 12.9326 16.4176 13.159 16.9777 13.3486L17.6572 13.5865C17.9185 13.6749 18.144 13.7729 18.3022 13.897C18.4568 14.0182 18.5423 14.1594 18.5423 14.3421C18.5423 14.5514 18.4498 14.7268 18.286 14.8524C18.1203 14.9795 17.8776 15.0581 17.5798 15.0581C17.018 15.0581 16.4915 14.7517 16.1758 14.258C16.1733 14.2541 16.1709 14.2502 16.1684 14.2463L16.1118 14.1563L15.137 14.8569L15.1804 14.9347C15.6612 15.7984 16.6434 16.2271 17.5628 16.2271C18.7539 16.2271 19.8048 15.4779 19.8048 14.2996C19.8048 13.8283 19.6726 13.452 19.3893 13.1458C19.1093 12.8432 18.6893 12.6175 18.1303 12.4283ZM12.2278 14.9306V9.94957H10.8803V16.0996H14.9138V14.9306H12.2278Z\"/></svg>',\n keywords: [\"document-excel\"],\n category: \"file\"\n}, o = (C) => /* @__PURE__ */ L(e, { ...C, svg: H });\no.displayName = \"IconDocumentExcel\";\nexport {\n o as IconDocumentExcel\n};\n//# sourceMappingURL=document-excel.es.js.map\n","import { jsx as v } from \"react/jsx-runtime\";\nimport { I as c } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"document-pdf\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-opacity=\".84\" fill-rule=\"evenodd\" d=\"M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 1 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/><path d=\"M6.765 10.05H4.487V16h1.139v-2.074h1.139c1.113 0 2.048-.799 2.048-1.93 0-1.139-.935-1.946-2.048-1.946Zm-1.14 2.907v-1.938h1.03c.594 0 1.01.408 1.01.977 0 .57-.416.961-1.01.961h-1.03Zm6.488-2.907H9.725V16h2.388c1.581 0 2.924-1.241 2.924-2.975s-1.343-2.975-2.924-2.975Zm-1.24 4.981v-4.012h1.24c1.012 0 1.768.825 1.768 2.006 0 1.181-.756 2.006-1.768 2.006h-1.24Zm9.112-4.981h-3.927V16h1.148v-2.49h2.218v-.97h-2.218v-1.52h2.78v-.969Z\"/><path fill-rule=\"evenodd\" d=\"M4.387 9.95h2.378c1.161 0 2.148.845 2.148 2.046 0 1.194-.988 2.03-2.148 2.03h-1.04V16.1H4.388V9.95ZM5.626 16h-1.14v-5.95h2.279c1.113 0 2.048.807 2.048 1.946 0 1.131-.935 1.93-2.048 1.93h-1.14V16Zm.1-4.881v1.738h.928c.276 0 .503-.09.66-.24a.833.833 0 0 0 .252-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247h-.928ZM9.625 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H9.625V9.95Zm.1 6.05h2.388c1.581 0 2.924-1.241 2.924-2.975s-1.343-2.975-2.924-2.975H9.725V16Zm1.247-4.881v3.812h1.141c.946 0 1.668-.769 1.668-1.906s-.722-1.906-1.668-1.906h-1.14Zm9.113-1.169v1.169h-2.78v1.322h2.22v1.168h-2.22V16.1h-1.347V9.95h4.127ZM17.205 16h-1.147v-5.95h3.927v.969h-2.78v1.521h2.22v.97h-2.22V16Zm-11.58-3.043h1.03c.594 0 1.01-.391 1.01-.96 0-.57-.416-.978-1.01-.978h-1.03v1.938Zm5.247 2.074h1.241c1.012 0 1.768-.825 1.768-2.006 0-1.181-.756-2.006-1.768-2.006h-1.24v4.012Z\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M4.387 9.95h2.378c1.161 0 2.148.845 2.148 2.046 0 1.194-.988 2.03-2.148 2.03h-1.04V16.1H4.388V9.95Zm1.489 4.226v2.074h-1.64V9.8h2.529c1.232 0 2.298.9 2.298 2.196 0 1.29-1.068 2.18-2.298 2.18h-.89ZM9.625 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H9.625V9.95Zm10.46 0v1.169h-2.78v1.322h2.22v1.168h-2.22V16.1h-1.347V9.95h4.127Zm-2.63 3.81v2.49h-1.647V9.8h4.427v1.469h-2.78v1.021h2.22v1.47h-2.22ZM9.476 9.8h2.638c1.716 0 3.174 1.35 3.174 3.225s-1.458 3.225-3.174 3.225H9.475V9.8Zm-3.6 1.469v1.438h.78c.242 0 .43-.079.556-.198a.684.684 0 0 0 .205-.513.71.71 0 0 0-.207-.522.779.779 0 0 0-.555-.205h-.778Zm5.247 0v3.512h.991c.848 0 1.518-.685 1.518-1.756 0-1.07-.67-1.756-1.518-1.756h-.99Zm-5.396-.15h.928a.93.93 0 0 1 .66.247.86.86 0 0 1 .252.63c0 .26-.094.473-.251.622a.942.942 0 0 1-.66.239h-.93v-1.738Zm5.246 0h1.141c.946 0 1.668.769 1.668 1.906s-.722 1.906-1.668 1.906h-1.14v-3.812Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"document-pdf\"],\n category: \"file\"\n}, m = (h) => /* @__PURE__ */ v(c, { ...h, svg: e });\nm.displayName = \"IconDocumentPdf\";\nexport {\n m as IconDocumentPdf\n};\n//# sourceMappingURL=document-pdf.es.js.map\n","import { jsx as v } from \"react/jsx-runtime\";\nimport { I as c } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"document-ppt\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-opacity=\".84\" fill-rule=\"evenodd\" d=\"M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 1 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/><path d=\"M7.11 10.05H4.83V16h1.14v-2.074h1.138c1.114 0 2.049-.799 2.049-1.93 0-1.139-.935-1.946-2.049-1.946Zm-1.14 2.907v-1.938H7c.595 0 1.011.408 1.011.977 0 .57-.416.961-1.011.961H5.97Zm6.377-2.907H10.07V16h1.14v-2.074h1.138c1.114 0 2.049-.799 2.049-1.93 0-1.139-.935-1.946-2.049-1.946Zm-1.139 2.907v-1.938h1.029c.595 0 1.011.408 1.011.977 0 .57-.416.961-1.011.961h-1.029Zm8.366-2.907h-4.675v.969h1.785V16h1.122v-4.981h1.768v-.969Z\"/><path fill-rule=\"evenodd\" d=\"M4.731 9.95H7.11c1.161 0 2.149.845 2.149 2.046 0 1.194-.988 2.03-2.149 2.03H6.07V16.1H4.731V9.95ZM5.971 16H4.83v-5.95h2.28c1.114 0 2.049.807 2.049 1.946 0 1.131-.935 1.93-2.049 1.93H5.97V16Zm.1-4.881v1.738h.928a.94.94 0 0 0 .66-.24.833.833 0 0 0 .251-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247H6.07ZM9.968 9.95h2.378c1.161 0 2.149.845 2.149 2.046 0 1.194-.989 2.03-2.149 2.03h-1.039V16.1H9.97V9.95ZM11.21 16h-1.14v-5.95h2.278c1.114 0 2.049.807 2.049 1.946 0 1.131-.935 1.93-2.049 1.93h-1.139V16Zm.1-4.881v1.738h.928a.94.94 0 0 0 .66-.24.833.833 0 0 0 .251-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247h-.928Zm8.365-1.169v1.169h-1.768V16.1h-1.322v-4.981H14.8V9.95h4.875ZM14.9 11.019v-.969h4.675v.969h-1.768V16h-1.122v-4.981H14.9Zm-8.93 1.938H7c.595 0 1.011-.391 1.011-.96 0-.57-.416-.978-1.011-.978H5.97v1.938Zm5.238 0h1.029c.595 0 1.011-.391 1.011-.96 0-.57-.416-.978-1.011-.978h-1.029v1.938Z\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M4.731 9.95H7.11c1.161 0 2.149.845 2.149 2.046 0 1.194-.988 2.03-2.149 2.03H6.07V16.1H4.731V9.95Zm1.49 4.226v2.074H4.58V9.8h2.53c1.233 0 2.299.9 2.299 2.196 0 1.29-1.069 2.18-2.299 2.18h-.89ZM9.968 9.95h2.378c1.161 0 2.149.845 2.149 2.046 0 1.194-.989 2.03-2.149 2.03h-1.039V16.1H9.97V9.95Zm1.49 4.226v2.074h-1.64V9.8h2.528c1.232 0 2.299.9 2.299 2.196 0 1.29-1.069 2.18-2.299 2.18h-.889Zm8.215-4.226v1.169h-1.768V16.1h-1.322v-4.981h-1.785V9.95h4.875Zm-3.24 1.319h-1.785V9.8h5.175v1.469h-1.768v4.981h-1.622v-4.981Zm-10.214 0v1.438H7c.242 0 .43-.079.557-.198a.684.684 0 0 0 .204-.513.71.71 0 0 0-.206-.522.779.779 0 0 0-.555-.205h-.78Zm5.238 0v1.438h.779c.242 0 .43-.079.557-.198a.684.684 0 0 0 .204-.513.71.71 0 0 0-.207-.522.779.779 0 0 0-.554-.205h-.779Zm-5.388-.15H7c.274 0 .501.094.66.247a.86.86 0 0 1 .251.63c0 .26-.094.473-.251.622a.942.942 0 0 1-.66.239h-.93v-1.738Zm5.238 0h.929c.274 0 .5.094.659.247a.86.86 0 0 1 .252.63c0 .26-.094.473-.251.622a.941.941 0 0 1-.66.239h-.929v-1.738Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"document-ppt\"],\n category: \"file\"\n}, m = (h) => /* @__PURE__ */ v(c, { ...h, svg: e });\nm.displayName = \"IconDocumentPpt\";\nexport {\n m as IconDocumentPpt\n};\n//# sourceMappingURL=document-ppt.es.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nimport { I as o } from \"../icon-DNHpBTHs.mjs\";\nconst m = {\n name: \"image\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 25\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M1.6 4.5a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9v16a.9.9 0 0 1-.9.9h-19a.9.9 0 0 1-.9-.9v-16Zm1.8.9v14.2h17.2V5.4H3.4Zm4.1 2.5a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2ZM4.1 9.5a3.4 3.4 0 1 1 6.8 0 3.4 3.4 0 0 1-6.8 0Zm11.264.864a.9.9 0 0 1 1.272 0l3 3a.9.9 0 1 1-1.272 1.272L16 12.273l-5.364 5.363a.9.9 0 0 1-1.272 0L8 16.273l-2.364 2.363a.9.9 0 1 1-1.272-1.272l3-3a.9.9 0 0 1 1.272 0L10 15.727l5.364-5.363Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"image\"],\n category: \"media\"\n}, l = (a) => /* @__PURE__ */ e(o, { ...a, svg: m });\nl.displayName = \"IconImage\";\nexport {\n l as IconImage\n};\n//# sourceMappingURL=image.es.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nimport { I as v } from \"../icon-DNHpBTHs.mjs\";\nconst a = {\n name: \"video\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 25\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M1.6 6a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9v14a.9.9 0 0 1-.9.9h-19a.9.9 0 0 1-.9-.9V6Zm1.8.9v12.2h17.2V6.9H3.4Zm6.167 1.811a.9.9 0 0 1 .916.03l5.5 3.5a.9.9 0 0 1 0 1.518l-5.5 3.5A.9.9 0 0 1 9.1 16.5v-7a.9.9 0 0 1 .467-.789ZM10.9 11.14v3.722L13.824 13 10.9 11.14Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"video\"],\n category: \"media\"\n}, d = (o) => /* @__PURE__ */ e(v, { ...o, svg: a });\nd.displayName = \"IconVideo\";\nexport {\n d as IconVideo\n};\n//# sourceMappingURL=video.es.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nimport { I as l } from \"../icon-DNHpBTHs.mjs\";\nconst a = {\n name: \"volume\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M12.864 3.177A.9.9 0 0 1 13.4 4v16a.9.9 0 0 1-1.505.666L6.652 15.9H4A1.9 1.9 0 0 1 2.1 14v-4c0-1.05.85-1.9 1.9-1.9h2.652l5.243-4.766a.9.9 0 0 1 .97-.157ZM11.6 6.034 7.605 9.666A.9.9 0 0 1 7 9.9H4a.1.1 0 0 0-.1.1v4a.1.1 0 0 0 .1.1h3a.9.9 0 0 1 .605.234l3.995 3.631V6.035Zm6.835-1.741a.9.9 0 0 1 1.273 0c4.256 4.256 4.256 11.158 0 15.414a.9.9 0 1 1-1.273-1.272 9.1 9.1 0 0 0 0-12.87.9.9 0 0 1 0-1.272Zm-3.071 3.07a.9.9 0 0 1 1.272 0 6.557 6.557 0 0 1 0 9.273.9.9 0 1 1-1.272-1.272 4.757 4.757 0 0 0 0-6.728.9.9 0 0 1 0-1.272Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"volume\"],\n category: \"action\"\n}, m = (o) => /* @__PURE__ */ e(l, { ...o, svg: a });\nm.displayName = \"IconVolume\";\nexport {\n m as IconVolume\n};\n//# sourceMappingURL=volume.es.js.map\n","import React from \"react\";\nimport { IconDoc } from \"@purpur/icon/doc\";\nimport { IconDocumentDoc } from \"@purpur/icon/document-doc\";\nimport { IconDocumentExcel } from \"@purpur/icon/document-excel\";\nimport { IconDocumentPdf } from \"@purpur/icon/document-pdf\";\nimport { IconDocumentPpt } from \"@purpur/icon/document-ppt\";\nimport { IconImage } from \"@purpur/icon/image\";\nimport { IconVideo } from \"@purpur/icon/video\";\nimport { IconVolume } from \"@purpur/icon/volume\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-icon.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-icon\";\n\ntype Props = {\n filetype: string;\n muted?: boolean;\n};\n\nexport const FileUploadIcon = ({ filetype, muted }: Props) => {\n const props = {\n size: \"sm\",\n className: cx(rootClassName, { [`${rootClassName}--muted`]: muted }),\n } as const;\n\n if (filetype.startsWith(\"image/\")) {\n return <IconImage {...props} />;\n }\n if (filetype.startsWith(\"video/\")) {\n return <IconVideo {...props} />;\n }\n if (filetype.startsWith(\"audio/\")) {\n return <IconVolume {...props} />;\n }\n if (filetype.includes(\"powerpoint\") || filetype.includes(\"presentationml\")) {\n return <IconDocumentPpt {...props} />;\n }\n if (\n filetype.includes(\"msword\") ||\n filetype.includes(\"ms-word\") ||\n filetype.includes(\"wordprocessingml\")\n ) {\n return <IconDocumentDoc {...props} />;\n }\n if (filetype.includes(\"excel\") || filetype.includes(\"spreadsheetml\")) {\n return <IconDocumentExcel {...props} />;\n }\n if (filetype === \"application/pdf\") {\n return <IconDocumentPdf {...props} />;\n }\n return <IconDoc {...props} />;\n};\n","const isSameFile = (a: File, b: File) =>\n a.name === b.name && a.size === b.size && a.lastModified === b.lastModified;\n\n// Merges new files into the existing list, replacing rather than duplicating files that match an existing one.\nexport const mergeFiles = (existingFiles: File[], newFiles: File[]) => {\n const merged = [...existingFiles];\n\n newFiles.forEach((file) => {\n const existingIndex = merged.findIndex((existingFile) => isSameFile(existingFile, file));\n\n if (existingIndex === -1) {\n merged.push(file);\n } else {\n merged[existingIndex] = file;\n }\n });\n\n return merged;\n};\n\nconst isFileTypeAccepted = (file: File, acceptedFileTypes: string[]) => {\n return acceptedFileTypes.some((type) => {\n if (type.startsWith(\".\")) {\n return file.name.toLowerCase().endsWith(type.toLowerCase());\n }\n\n if (type.endsWith(\"/*\")) {\n return file.type.startsWith(type.slice(0, -1));\n }\n\n return file.type === type;\n });\n};\n\nexport const getAcceptedFiles = (\n files: FileList | File[] | null | undefined,\n maxFileSizeBytes?: number,\n acceptedFileTypes?: string[]\n) => {\n if (!files) {\n return { acceptedFiles: [], hasOversizedFiles: false, hasInvalidFileType: false };\n }\n\n const allFiles = Array.from(files);\n const sizeAcceptedFiles = maxFileSizeBytes\n ? allFiles.filter((file) => file.size <= maxFileSizeBytes)\n : allFiles;\n\n const acceptedFiles =\n acceptedFileTypes && acceptedFileTypes.length > 0\n ? sizeAcceptedFiles.filter((file) => isFileTypeAccepted(file, acceptedFileTypes))\n : sizeAcceptedFiles;\n\n return {\n acceptedFiles,\n hasOversizedFiles: sizeAcceptedFiles.length !== allFiles.length,\n hasInvalidFileType: acceptedFiles.length !== sizeAcceptedFiles.length,\n };\n};\n","import React, { forwardRef, useId, useState } from \"react\";\nimport { Button } from \"@purpur/button\";\nimport { FieldErrorText } from \"@purpur/field-error-text\";\nimport { FieldHelperText } from \"@purpur/field-helper-text\";\nimport { Heading } from \"@purpur/heading\";\nimport { IconRemove } from \"@purpur/icon/remove\";\nimport { Spinner } from \"@purpur/spinner\";\nimport { Tooltip } from \"@purpur/tooltip\";\nimport { VisuallyHidden } from \"@purpur/visually-hidden\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload.module.scss\";\nimport { FileUploadButton } from \"./file-upload-button\";\nimport { FileUploadDragAndDrop } from \"./file-upload-drag-and-drop\";\nimport { FileNameLabel } from \"./file-upload-file-name-label\";\nimport { FileUploadIcon } from \"./file-upload-icon\";\nimport type { FileUploadProps } from \"./file-upload-types\";\nimport { getAcceptedFiles, mergeFiles } from \"./file-upload-utils\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload\";\n\nexport const FileUpload = forwardRef<HTMLDivElement, FileUploadProps>(\n (\n {\n acceptedFileTypes,\n acceptedFileTypesErrorText,\n backgroundColor = \"primary\",\n buttonLabel,\n disabled = false,\n dragAndDrop = false,\n dragAndDropLabel,\n errorText,\n helperText,\n label,\n labelTag = \"h2\",\n maxFiles,\n maxFilesErrorText,\n maxFileSizeBytes,\n maxFileSizeErrorText,\n removeFileButtonLabel,\n tooltipText,\n useMediaQueries = false,\n variant = \"attach\",\n ...uploadProps\n },\n ref\n ) => {\n const labelId = useId();\n const helperTextId = useId();\n const errorTextId = useId();\n const [files, setFiles] = useState<File[]>([]);\n const [maxFilesExceeded, setMaxFilesExceeded] = useState(false);\n const [maxFileSizeExceeded, setMaxFileSizeExceeded] = useState(false);\n const [invalidFileType, setInvalidFileType] = useState(false);\n const isFileUploading = \"onFileSelect\" in uploadProps ? uploadProps.isUploading : undefined;\n const uploadingText = \"onFileSelect\" in uploadProps ? uploadProps.uploadingText : undefined;\n const isFileRemoving = \"onFileSelect\" in uploadProps ? uploadProps.isRemoving : undefined;\n const removingText = \"onFileSelect\" in uploadProps ? uploadProps.removingText : undefined;\n\n const handleFilesChange = (nextFiles: FileList | File[] | null | undefined) => {\n if (disabled) {\n return;\n }\n\n const { acceptedFiles, hasOversizedFiles, hasInvalidFileType } = getAcceptedFiles(\n nextFiles,\n maxFileSizeBytes,\n acceptedFileTypes\n );\n setMaxFileSizeExceeded(hasOversizedFiles);\n setInvalidFileType(hasInvalidFileType);\n\n const combinedFiles = mergeFiles(files, acceptedFiles);\n\n if (maxFiles && combinedFiles.length > maxFiles) {\n setMaxFilesExceeded(true);\n return;\n }\n\n setMaxFilesExceeded(false);\n setFiles(combinedFiles);\n\n if (\"onFileSelect\" in uploadProps) {\n acceptedFiles.forEach((file) => {\n Promise.resolve(uploadProps.onFileSelect(file)).then((accepted) => {\n if (!accepted) {\n setFiles((currentFiles) =>\n currentFiles.filter((currentFile) => currentFile !== file)\n );\n }\n });\n });\n }\n };\n\n const handleRemoveFile = (file: File) => {\n if (disabled) {\n return;\n }\n\n if (\"onFileSelect\" in uploadProps) {\n Promise.resolve(uploadProps.onFileRemove(file)).then((removed) => {\n if (!removed) {\n return;\n }\n\n setFiles((currentFiles) => currentFiles.filter((currentFile) => currentFile !== file));\n setMaxFilesExceeded(false);\n setMaxFileSizeExceeded(false);\n setInvalidFileType(false);\n });\n return;\n }\n\n setFiles((currentFiles) => currentFiles.filter((currentFile) => currentFile !== file));\n setMaxFilesExceeded(false);\n setMaxFileSizeExceeded(false);\n setInvalidFileType(false);\n };\n\n const button = (\n <FileUploadButton\n accept={acceptedFileTypes?.join(\",\")}\n disabled={disabled}\n files={files}\n interactive={!dragAndDrop}\n multiple={maxFiles !== 1}\n onFilesChange={handleFilesChange}\n useMediaQueries={useMediaQueries}\n variant={variant}\n >\n {buttonLabel}\n </FileUploadButton>\n );\n\n const errorContent = maxFilesExceeded\n ? maxFilesErrorText\n : maxFileSizeExceeded\n ? maxFileSizeErrorText\n : invalidFileType\n ? acceptedFileTypesErrorText\n : errorText;\n\n return (\n <div\n ref={ref}\n className={cx(rootClassName)}\n role=\"group\"\n aria-labelledby={label ? labelId : undefined}\n >\n <div className={cx(`${rootClassName}__content`)}>\n {label && (\n <Heading\n tag={labelTag}\n variant=\"subsection-100\"\n id={labelId}\n className={cx(`${rootClassName}__label`, {\n [`${rootClassName}__label--disabled`]: disabled,\n })}\n >\n {label}\n </Heading>\n )}\n {dragAndDrop ? (\n <FileUploadDragAndDrop\n backgroundColor={backgroundColor}\n disabled={disabled}\n dragAndDropLabel={dragAndDropLabel}\n onFilesChange={handleFilesChange}\n variant={variant}\n >\n {button}\n </FileUploadDragAndDrop>\n ) : (\n button\n )}\n {(helperText !== undefined || errorContent) && (\n <div className={cx(`${rootClassName}__messages`)}>\n {helperText !== undefined && (\n <div className={cx(`${rootClassName}__helper-text-row`)}>\n {helperText && <FieldHelperText id={helperTextId}>{helperText}</FieldHelperText>}\n {tooltipText && (\n <Tooltip buttonSize=\"xs\" iconSize=\"xs\" triggerAriaLabel={tooltipText}>\n {tooltipText}\n </Tooltip>\n )}\n </div>\n )}\n {errorContent && <FieldErrorText id={errorTextId}>{errorContent}</FieldErrorText>}\n </div>\n )}\n </div>\n {files.length > 0 && (\n <ul className={cx(`${rootClassName}__files`)}>\n {files.map((file, index) => {\n const isBusy = isFileUploading?.(file) || isFileRemoving?.(file);\n const busyText = isFileUploading?.(file) ? uploadingText : removingText;\n const muted = isBusy || disabled;\n\n return (\n <li\n key={`${file.name}-${index}`}\n className={cx(\n `${rootClassName}__file`,\n `${rootClassName}__file--${backgroundColor}`,\n {\n [`${rootClassName}__file--disabled`]: disabled,\n }\n )}\n >\n <FileUploadIcon filetype={file.type} muted={muted} />\n <FileNameLabel fileName={file.name} muted={muted} />\n {isBusy ? (\n <span className={cx(`${rootClassName}__spinner`)}>\n <Spinner size=\"xxs\" aria-hidden=\"true\" disabled />\n <VisuallyHidden aria-live=\"polite\">{`${busyText} ${file.name}`}</VisuallyHidden>\n </span>\n ) : (\n <Button\n iconOnly\n variant=\"text\"\n aria-label={`${removeFileButtonLabel} ${file.name}`}\n onClick={() => handleRemoveFile(file)}\n className={cx(`${rootClassName}__remove-button`)}\n disabled={disabled}\n >\n <IconRemove size=\"xs\" />\n </Button>\n )}\n </li>\n );\n })}\n </ul>\n )}\n </div>\n );\n }\n);\n\nFileUpload.displayName = \"FileUpload\";\n\nexport type { FileUploadProps };\nexport type {\n FileUploadAttachProps,\n FileUploadUploadProps,\n FileUploadWithAcceptedFileTypesProps,\n FileUploadWithDndProps,\n FileUploadWithMaxFileSizeProps,\n FileUploadWithMaxFilesProps,\n FileUploadWithoutAcceptedFileTypesProps,\n FileUploadWithoutDndProps,\n FileUploadWithoutMaxFileSizeProps,\n FileUploadWithoutMaxFilesProps,\n FileUploadWithoutTooltipProps,\n FileUploadWithTooltipProps,\n} from \"./file-upload-types\";\n"],"names":["v","r","o","a","e","l","t","cx","c","styles","rootClassName","FileUploadButton","accept","children","disabled","files","interactive","multiple","onFilesChange","useMediaQueries","variant","inputId","useId","inputRef","useRef","buttonRef","icon","jsx","IconAttachment","IconUpload","useEffect","dataTransfer","file","responsiveWidthClasses","jsxs","Fragment","Button","u","n","i","m","d","f","g","h","S","x","b","y","w","p","FileUploadDragAndDrop","backgroundColor","dragAndDropLabel","dragAndDropId","dragDepthRef","isDragOver","setIsDragOver","useState","setNodeRef","useDroppable","isFileDragEvent","event","resetDragState","handleDragEnter","handleDragOver","handleDragLeave","handleDrop","DndContext","IllustrativeIconDocumentAttachDuocolorStatic","IllustrativeIconDocumentUploadDuocolorStatic","Paragraph","END_PART_WIDTH_RATIO","MIN_END_PART_CHAR_LENGTH","MAX_END_PART_CHAR_LENGTH","MIN_START_CHAR_LENGTH","FIRST_EXTENSION_DOT_MIN_INDEX","splitFileName","fileName","lastDotIndex","hasExtension","getTextWidth","text","font","context","extractBoundaryWhitespace","start","end","trailingWhitespace","leadingWhitespace","separator","getFileNameParts","labelWidth","baseName","extension","maxEndPartWidth","maxStartTrimLength","maxAllowedEndPartLength","bestEndPartLength","endPartLength","endPart","FileNameLabel","muted","props","labelRef","setLabelWidth","setFont","useLayoutEffect","labelElement","updateMeasurements","computedStyle","resizeObserver","useMemo","H","C","L","FileUploadIcon","filetype","IconImage","IconVideo","IconVolume","IconDocumentPpt","IconDocumentDoc","IconDocumentExcel","IconDocumentPdf","IconDoc","isSameFile","mergeFiles","existingFiles","newFiles","merged","existingIndex","existingFile","isFileTypeAccepted","acceptedFileTypes","type","getAcceptedFiles","maxFileSizeBytes","allFiles","sizeAcceptedFiles","acceptedFiles","FileUpload","forwardRef","acceptedFileTypesErrorText","buttonLabel","dragAndDrop","errorText","helperText","label","labelTag","maxFiles","maxFilesErrorText","maxFileSizeErrorText","removeFileButtonLabel","tooltipText","uploadProps","ref","labelId","helperTextId","errorTextId","setFiles","maxFilesExceeded","setMaxFilesExceeded","maxFileSizeExceeded","setMaxFileSizeExceeded","invalidFileType","setInvalidFileType","isFileUploading","uploadingText","isFileRemoving","removingText","handleFilesChange","nextFiles","hasOversizedFiles","hasInvalidFileType","combinedFiles","accepted","currentFiles","currentFile","handleRemoveFile","removed","button","errorContent","Heading","FieldHelperText","Tooltip","FieldErrorText","index","isBusy","busyText","Spinner","VisuallyHidden","IconRemove"],"mappings":";;;;;;;;;;;;;AAEA,MAAMA,KAAI;AAAA,EACR,MAAM;AAAA,EACN,KAAK;AAAA,EACL,UAAU,CAAC,QAAQ;AAAA,EACnB,UAAU;AACZ,GAAGC,KAAI,CAACC,MAAsBC,gBAAAA,EAAEC,GAAG,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A;AAAA,UA8BhC,CAAC,EAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;AAEA9C,GAAW,cAAc;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const r=require("react/jsx-runtime"),u=require("react"),a1=require("./button-C5CYysw5.js"),k1=require("./field-error-text-FhQulSV5.js"),j1=require("./field-helper-text-DSKO-Tce.js"),N1=require("./heading-BPeRwNYu.js"),w=require("./icon-DNHpBTHs-faYHqTXU.js"),F1=require("./spinner-tKunS_o-.js"),I1=require("./tooltip-DeP1UsPW.js"),D1=require("./visually-hidden-C2CKovZx.js"),N=require("./bind-DeUYJ6m9.js"),X=require("./core.esm-BmIwrKkJ.js"),r1=require("./paragraph-B8HFdNne.js"),E1={name:"remove",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M7.6 2.5a.9.9 0 0 1 .9-.9h7a.9.9 0 0 1 .9.9v2.6h4.1a.9.9 0 0 1 0 1.8h-17a.9.9 0 0 1 0-1.8h11.1V3.4H9.4v.1a.9.9 0 0 1-1.8 0v-1ZM5 8.1a.9.9 0 0 1 .9.9v11.6h12.2V9a.9.9 0 1 1 1.8 0v12.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V9a.9.9 0 0 1 .9-.9Zm4.5 1a.9.9 0 0 1 .9.9v8a.9.9 0 0 1-1.8 0v-8a.9.9 0 0 1 .9-.9Zm5 0a.9.9 0 0 1 .9.9v8a.9.9 0 0 1-1.8 0v-8a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/></svg>',keywords:["remove"],category:"action"},l1=e=>r.jsx(w.b,{...e,svg:E1});l1.displayName="IconRemove";const S1={"purpur-file-upload":"_purpur-file-upload_a5riu_1","purpur-file-upload__content":"_purpur-file-upload__content_a5riu_7","purpur-file-upload__files":"_purpur-file-upload__files_a5riu_7","purpur-file-upload__label--disabled":"_purpur-file-upload__label--disabled_a5riu_13","purpur-file-upload__helper-text-row":"_purpur-file-upload__helper-text-row_a5riu_16","purpur-file-upload__messages":"_purpur-file-upload__messages_a5riu_21","purpur-file-upload__file":"_purpur-file-upload__file_a5riu_7","purpur-file-upload__file--primary":"_purpur-file-upload__file--primary_a5riu_41","purpur-file-upload__file--secondary":"_purpur-file-upload__file--secondary_a5riu_44","purpur-file-upload__file--disabled":"_purpur-file-upload__file--disabled_a5riu_47","purpur-file-upload__remove-button":"_purpur-file-upload__remove-button_a5riu_50","purpur-file-upload__spinner":"_purpur-file-upload__spinner_a5riu_53"},A1={name:"attachment",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M15.654 3.87a3.872 3.872 0 0 1 5.484 0 3.913 3.913 0 0 1 0 5.5L10.934 19.636a5.34 5.34 0 0 1-7.588 0l-.002-.002a5.42 5.42 0 0 1 0-7.613l.004-.004 8.016-8.015a.9.9 0 0 1 1.272 1.273l-8.013 8.013a3.62 3.62 0 0 0 0 5.08 3.54 3.54 0 0 0 5.035-.002L19.862 8.102a2.113 2.113 0 0 0 0-2.962 2.072 2.072 0 0 0-2.931 0l-9.396 9.456a.607.607 0 0 0 0 .847c.226.228.6.228.827 0l.002-.002 3-3a.9.9 0 0 1 1.272 1.273L9.638 16.71a2.386 2.386 0 0 1-3.38 0 2.406 2.406 0 0 1 0-3.385l9.396-9.456Z" clip-rule="evenodd"/></svg>',keywords:["attachment"],category:"action"},t1=e=>r.jsx(w.b,{...e,svg:A1});t1.displayName="IconAttachment";const T1={name:"upload",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M1.6 2.5a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9V13a.9.9 0 0 1-1.8 0V3.4H3.4V13a.9.9 0 0 1-1.8 0V2.5Zm9.764 4.864a.9.9 0 0 1 1.272 0l5 5a.9.9 0 1 1-1.272 1.272L12.9 10.173V21.5a.9.9 0 0 1-1.8 0V10.173l-3.464 3.463a.9.9 0 0 1-1.272-1.272l5-5Z" clip-rule="evenodd"/></svg>',keywords:["upload"],category:"action"},n1=e=>r.jsx(w.b,{...e,svg:T1});n1.displayName="IconUpload";const R1={"purpur-file-upload-button--use-container-queries":"_purpur-file-upload-button--use-container-queries_r1okd_2","purpur-file-upload-button--use-media-queries":"_purpur-file-upload-button--use-media-queries_r1okd_7","purpur-file-upload-button__input":"_purpur-file-upload-button__input_r1okd_11","purpur-file-upload-button--fake":"_purpur-file-upload-button--fake_r1okd_18","purpur-file-upload-button--fake--xs":"_purpur-file-upload-button--fake--xs_r1okd_40","purpur-file-upload-button--fake--icon-only":"_purpur-file-upload-button--fake--icon-only_r1okd_43","purpur-file-upload-button--fake--sm":"_purpur-file-upload-button--fake--sm_r1okd_46","purpur-file-upload-button--fake--md":"_purpur-file-upload-button--fake--md_r1okd_52","purpur-file-upload-button--fake--lg":"_purpur-file-upload-button--fake--lg_r1okd_58","purpur-file-upload-button--fake--full-width":"_purpur-file-upload-button--fake--full-width_r1okd_64","purpur-file-upload-button--fake--primary":"_purpur-file-upload-button--fake--primary_r1okd_82","purpur-file-upload-button--fake--disabled":"_purpur-file-upload-button--fake--disabled_r1okd_86","purpur-file-upload-button--fake--primary-negative":"_purpur-file-upload-button--fake--primary-negative_r1okd_92","purpur-file-upload-button--fake--secondary":"_purpur-file-upload-button--fake--secondary_r1okd_104","purpur-file-upload-button--fake--secondary-negative":"_purpur-file-upload-button--fake--secondary-negative_r1okd_115","purpur-file-upload-button--fake--expressive":"_purpur-file-upload-button--fake--expressive_r1okd_126","purpur-file-upload-button--fake--expressive-negative":"_purpur-file-upload-button--fake--expressive-negative_r1okd_136"},B=N.c.bind(R1),C="purpur-file-upload-button",B1=({accept:e,children:l,disabled:a=!1,files:t,interactive:o=!0,multiple:n,onFilesChange:s,useMediaQueries:i=!1,variant:h})=>{const c=u.useId(),m=u.useRef(null),d=u.useRef(null),f=h==="attach"?r.jsx(t1,{size:"xs"}):r.jsx(n1,{size:"xs"});u.useEffect(()=>{if(!m.current||typeof DataTransfer>"u")return;const _=new DataTransfer;t.forEach($=>_.items.add($)),m.current.files=_.files},[t]);const Z={[`${C}--use-media-queries`]:i,[`${C}--use-container-queries`]:!i};return r.jsxs(r.Fragment,{children:[r.jsx("input",{id:c,ref:m,className:B(`${C}__input`),type:"file",accept:e,disabled:a,multiple:n,tabIndex:o?-1:void 0,onFocus:o?()=>{d.current?.focus()}:void 0,onChange:_=>{s(_.target.files),_.target.value=""},name:"upload"}),o?r.jsxs(a1.Button,{ref:d,variant:"secondary","aria-controls":c,className:B(C,Z),onClick:()=>m.current?.click(),disabled:a,fullWidth:!0,children:[f,l]}):r.jsx("span",{className:B([C,`${C}--fake`,`${C}--fake--secondary`,`${C}--fake--md`],{[`${C}--fake--disabled`]:a},Z),children:l})]})};function q1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J={exports:{}},K;function O1(){return K||(K=1,(function(e){(function(){var l={}.hasOwnProperty;function a(){for(var n="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(n=o(n,t.call(this,i)))}return n}function t(n){if(typeof n=="string"||typeof n=="number")return this&&this[n]||n;if(typeof n!="object")return"";if(Array.isArray(n))return a.apply(this,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var s="";for(var i in n)l.call(n,i)&&n[i]&&(s=o(s,this&&this[i]||i));return s}function o(n,s){return s?n?n+" "+s:n+s:n}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(J)),J.exports}var W1=O1();const z1=q1(W1),U1={"purpur-illustrative-icon":"_purpur-illustrative-icon_64k5d_1"},P1=z1.bind(U1),G1="purpur-illustrative-icon",X1=e=>e.filter(l=>Object.keys(l).length>=1).map(l=>`${l.name}="${l.value}"`).join(" "),J1=({content:e="",title:l}={})=>{const a=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"none"},{name:"viewBox",value:"0 0 64 64"},l?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],t=l?`<title>${l}</title>`:"";return`<svg ${X1(a)}>${t}${e}</svg>`},K1=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),q=u.forwardRef(({svg:e,allyTitle:l,className:a,...t},o)=>{const n=J1({content:K1(e),title:l});return r.jsx("span",{className:P1(G1,a),dangerouslySetInnerHTML:{__html:n},ref:o,...t})});q.displayName="StaticIllustrativeIcon";const Y1={svg:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 64 64"><path fill="#990AE3" d="M30.14 43.815a3.925 3.925 0 0 1-3.92-3.92v-10.21a2.953 2.953 0 0 1 2.95-2.95 2.953 2.953 0 0 1 2.95 2.95v6.67a.5.5 0 1 1-1 0v-6.67c0-1.075-.875-1.95-1.95-1.95-1.076 0-1.95.875-1.95 1.95v10.21c0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92v-11.93c0-2.09-1.7-3.79-3.79-3.79s-3.79 1.7-3.79 3.79v6.71a.5.5 0 1 1-1 0v-6.71a4.795 4.795 0 0 1 4.79-4.79 4.795 4.795 0 0 1 4.79 4.79v11.93a3.925 3.925 0 0 1-3.92 3.92Z"/><path fill="#29003E" d="M47.59 56.335H14.35c-.85 0-1.54-.69-1.54-1.54v-42.59c0-.85.69-1.54 1.54-1.54h24.5c.417 0 .805.158 1.093.446l7.7 7.7c.288.288.447.676.447 1.094v32.9a.5.5 0 1 1-1 0v-32.9a.541.541 0 0 0-.154-.387l-7.7-7.7a.534.534 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54v42.59c0 .302.238.54.54.54h33.24a.5.5 0 1 1 0 1Z"/><path fill="#29003E" d="M47.33 20.255h-8.2a.5.5 0 0 1-.5-.5v-8.21a.5.5 0 1 1 1 0v7.71h7.7a.5.5 0 1 1 0 1Z"/><path fill="#29003E" d="M50.69 51.495a.5.5 0 0 1-.5-.5v-34.09a.542.542 0 0 0-.154-.388l-7.7-7.699a.528.528 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54.5.5 0 1 1-1 0c0-.85.69-1.54 1.54-1.54h24.5c.416 0 .805.158 1.093.445l7.7 7.701c.289.29.447.678.447 1.094v34.09a.5.5 0 0 1-.5.5Z"/></svg>'},o1=e=>r.jsx(q,{...e,svg:Y1.svg});o1.displayName="IllustrativeIconDocumentAttachDuocolorStatic";const Q1={svg:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 64 64"><path fill="#990AE3" d="M30.45 43.685a.5.5 0 0 1-.5-.5v-11.41a.5.5 0 1 1 1 0v11.41a.5.5 0 0 1-.5.5Z"/><path fill="#990AE3" d="M26.44 36.215a.499.499 0 0 1-.354-.854l4.01-4.01a.5.5 0 0 1 .707 0l4.011 4.01a.5.5 0 1 1-.707.707l-3.657-3.656-3.656 3.656a.499.499 0 0 1-.354.147Z"/><path fill="#990AE3" d="M27.46 40.668a.395.395 0 0 1-.181-.045l-.107-.056c-2.303-1.271-3.682-3.604-3.682-6.132a6.958 6.958 0 0 1 6.95-6.95 6.959 6.959 0 0 1 6.95 6.95 6.976 6.976 0 0 1-3.696 6.15c-.242.124-.58.056-.711-.182-.13-.238-.088-.514.147-.65l.104-.056a5.974 5.974 0 0 0 3.156-5.262 5.957 5.957 0 0 0-5.95-5.95 5.956 5.956 0 0 0-5.95 5.95 5.96 5.96 0 0 0 3.082 5.212c.247.122.424.461.302.71-.091.185-.24.31-.415.31Z"/><path fill="#29003E" d="M47.59 56.335H14.35c-.85 0-1.54-.69-1.54-1.54v-42.59c0-.85.69-1.54 1.54-1.54h24.5c.418 0 .806.158 1.094.446l7.7 7.7c.287.288.446.677.446 1.094v32.9a.5.5 0 1 1-1 0v-32.9a.541.541 0 0 0-.154-.387l-7.7-7.7a.526.526 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54v42.59c0 .302.237.54.54.54h33.24a.5.5 0 1 1 0 1Z"/><path fill="#29003E" d="M47.33 20.255h-8.2a.5.5 0 0 1-.5-.5v-8.21a.5.5 0 1 1 1 0v7.71h7.7a.5.5 0 1 1 0 1Z"/><path fill="#29003E" d="M50.69 51.495a.5.5 0 0 1-.5-.5v-34.09a.541.541 0 0 0-.153-.387l-7.7-7.7a.526.526 0 0 0-.387-.153h-24.5a.534.534 0 0 0-.54.54.5.5 0 1 1-1 0c0-.85.69-1.54 1.54-1.54h24.5c.418 0 .805.158 1.093.446l7.7 7.7c.289.288.447.676.447 1.094v34.09a.5.5 0 0 1-.5.5Z"/></svg>'},s1=e=>r.jsx(q,{...e,svg:Q1.svg});s1.displayName="IllustrativeIconDocumentUploadDuocolorStatic";const e0={"purpur-file-upload-drag-and-drop__hit-area":"_purpur-file-upload-drag-and-drop__hit-area_19evd_1","purpur-file-upload-drag-and-drop":"_purpur-file-upload-drag-and-drop_19evd_1","purpur-file-upload-drag-and-drop__icon-and-text":"_purpur-file-upload-drag-and-drop__icon-and-text_19evd_16","purpur-file-upload-drag-and-drop--primary":"_purpur-file-upload-drag-and-drop--primary_19evd_33","purpur-file-upload-drag-and-drop--secondary":"_purpur-file-upload-drag-and-drop--secondary_19evd_36","purpur-file-upload-drag-and-drop--disabled":"_purpur-file-upload-drag-and-drop--disabled_19evd_39","purpur-file-upload-drag-and-drop--drag-over":"_purpur-file-upload-drag-and-drop--drag-over_19evd_56","purpur-file-upload-drag-and-drop__icon":"_purpur-file-upload-drag-and-drop__icon_19evd_16","purpur-file-upload-drag-and-drop__icon--disabled":"_purpur-file-upload-drag-and-drop__icon--disabled_19evd_81"},j=N.c.bind(e0),H="purpur-file-upload-drag-and-drop",a0=({backgroundColor:e,children:l,disabled:a=!1,dragAndDropLabel:t,onFilesChange:o,variant:n})=>{const s=u.useId(),i=u.useRef(0),[h,c]=u.useState(!1),{setNodeRef:m}=X.useDroppable({id:s}),d=p=>Array.from(p.dataTransfer?.types??[]).includes("Files"),f=()=>{i.current=0,c(!1)},Z=p=>{d(p)&&(p.preventDefault(),!a&&(i.current+=1,c(!0)))},_=p=>{d(p)&&(p.preventDefault(),p.dataTransfer.dropEffect=a?"none":"copy",!a&&c(!0))},$=p=>{d(p)&&(p.preventDefault(),!a&&(i.current=Math.max(0,i.current-1),i.current===0&&c(!1)))},M=p=>{d(p)&&(p.preventDefault(),!a&&(o(p.dataTransfer.files),f()))};return r.jsx(X.DndContext,{children:r.jsx("div",{ref:m,className:j(`${H}__hit-area`),onDragEnter:Z,onDragOver:_,onDragLeave:$,onDrop:M,children:r.jsxs("label",{className:j(H,{[`${H}--${e}`]:e,[`${H}--drag-over`]:h,[`${H}--disabled`]:a}),children:[r.jsxs("div",{className:j(`${H}__icon-and-text`),children:[n==="attach"?r.jsx(o1,{className:j(`${H}__icon`,{[`${H}__icon--disabled`]:a})}):r.jsx(s1,{className:j(`${H}__icon`,{[`${H}__icon--disabled`]:a})}),r.jsx(r1.Paragraph,{variant:"paragraph-100-medium",disabled:a,children:t})]}),l]})})})},r0={"purpur-file-upload-file-name-label":"_purpur-file-upload-file-name-label_l8uck_1","purpur-file-upload-file-name-label__start":"_purpur-file-upload-file-name-label__start_l8uck_7","purpur-file-upload-file-name-label__separator":"_purpur-file-upload-file-name-label__separator_l8uck_13","purpur-file-upload-file-name-label__end":"_purpur-file-upload-file-name-label__end_l8uck_13"},E=N.c.bind(r0),S="purpur-file-upload-file-name-label",l0=.4,Y=3,t0=28,n0=3,o0=1,s0=e=>{const l=e.lastIndexOf("."),a=l>=o0&&l<e.length-1;return{baseName:a?e.slice(0,l):e,extension:a?e.slice(l):""}},i0=(e,l)=>{const t=document.createElement("canvas").getContext("2d");return t?(t.font=l,t.measureText(e).width):0},Q=(e,l)=>{const a=e.match(/\s+$/)?.[0]??"",t=l.match(/^\s+/)?.[0]??"",o=`${a}${t}`;return{start:a?e.slice(0,-a.length):e,separator:o,end:t?l.slice(t.length):l}},u0=(e,l,a)=>{const{baseName:t,extension:o}=s0(e);if(!l||!t)return Q(t,o);const n=l*l0,s=Math.max(t.length-n0,0),i=Math.min(t0,s);let h=Math.min(Y,i);for(let f=Y;f<=i;f+=1){const Z=`${t.slice(-f)}${o}`;if(i0(Z,a)<=n)h=f;else break}const c=Math.min(h,t.length),m=t.slice(0,t.length-c),d=`${t.slice(-c)}${o}`;return Q(m,d)},d0=({fileName:e,muted:l,...a})=>{const t=u.useRef(null),[o,n]=u.useState(0),[s,i]=u.useState("");u.useLayoutEffect(()=>{const d=t.current;if(!d)return;const f=()=>{const _=window.getComputedStyle(d);n(d.getBoundingClientRect().width),i(_.font)};f();const Z=new ResizeObserver(f);return Z.observe(d),()=>{Z.disconnect()}},[]);const{start:h,separator:c,end:m}=u.useMemo(()=>u0(e,o,s),[e,o,s]);return r.jsxs(r1.Paragraph,{variant:"paragraph-100-medium",className:E(S),ref:t,disabled:l,...a,children:[r.jsx("span",{className:E(`${S}__start`),children:h}),c&&r.jsx("span",{className:E(`${S}__separator`),"aria-hidden":"true",children:c.replace(/ /g," ")}),r.jsx("span",{className:E(`${S}__end`),children:m})]})},c0={name:"doc",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.1 2.5a.9.9 0 0 1 .9-.9h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19.9 8v13.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9v-19Zm1.8.9v17.2h12.2V8.9H14a.9.9 0 0 1-.9-.9V3.4H5.9Zm9 1.428L16.965 7.1H14.9V4.828ZM8.1 7a.9.9 0 0 1 .9-.9h1.5a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 1 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',keywords:["doc"],category:"file"},i1=e=>r.jsx(w.b,{...e,svg:c0});i1.displayName="IconDoc";const p0={name:"document-doc",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-opacity=".84" fill-rule="evenodd" d="M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 0 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/><path d="M5.572 10.05H3.184V16h2.388c1.581 0 2.924-1.241 2.924-2.975S7.153 10.05 5.572 10.05Zm-1.24 4.981v-4.012h1.24c1.012 0 1.768.825 1.768 2.006 0 1.181-.756 2.006-1.768 2.006h-1.24Zm7.938 1.105c1.658 0 3.052-1.3 3.052-3.111 0-1.81-1.394-3.111-3.052-3.111-1.649 0-3.043 1.3-3.043 3.111 0 1.81 1.394 3.111 3.043 3.111Zm0-.969c-1.08 0-1.895-.884-1.895-2.142s.816-2.142 1.895-2.142c1.088 0 1.904.884 1.904 2.142s-.816 2.142-1.904 2.142Zm6.832.969c.927 0 1.734-.391 2.244-.977l-.773-.706a1.883 1.883 0 0 1-1.47.714c-1.089 0-1.905-.884-1.905-2.142s.816-2.142 1.904-2.142c.57 0 1.063.255 1.403.629l.756-.714c-.51-.527-1.283-.884-2.159-.884-1.657 0-3.051 1.3-3.051 3.111 0 1.81 1.394 3.111 3.051 3.111Z"/><path fill-rule="evenodd" d="M3.084 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H3.084V9.95Zm.1 6.05h2.388c1.581 0 2.924-1.241 2.924-2.975S7.153 10.05 5.572 10.05H3.184V16Zm1.247-4.881v3.812h1.141c.946 0 1.668-.769 1.668-1.906s-.722-1.906-1.668-1.906h-1.14Zm10.99 1.906c0 1.867-1.439 3.211-3.15 3.211-1.704 0-3.144-1.345-3.144-3.211 0-1.866 1.44-3.211 3.143-3.211 1.712 0 3.152 1.345 3.152 3.211Zm-4.946 0c0 1.213.781 2.042 1.795 2.042 1.023 0 1.804-.829 1.804-2.042 0-1.213-.78-2.042-1.804-2.042-1.014 0-1.795.829-1.795 2.042Zm11.01 2.125-.063.074c-.53.61-1.365 1.012-2.32 1.012-1.712 0-3.151-1.345-3.151-3.211 0-1.866 1.44-3.211 3.151-3.211.903 0 1.702.368 2.231.915l.07.072-.904.854-.068-.076a1.79 1.79 0 0 0-1.329-.596c-1.023 0-1.804.829-1.804 2.042 0 1.213.781 2.042 1.804 2.042.579 0 1.078-.281 1.392-.676l.067-.084.925.843Zm-.977-.62c.023-.025.044-.051.065-.077l.773.706c-.51.586-1.317.977-2.244.977-1.657 0-3.051-1.3-3.051-3.111 0-1.81 1.394-3.111 3.051-3.111a3.022 3.022 0 0 1 2.16.884l-.757.714a1.885 1.885 0 0 0-1.402-.629c-1.089 0-1.905.884-1.905 2.142s.816 2.142 1.904 2.142a1.88 1.88 0 0 0 1.406-.637Zm-16.177.501h1.241c1.012 0 1.768-.825 1.768-2.006 0-1.181-.756-2.006-1.768-2.006h-1.24v4.012Zm10.99-2.006c0 1.81-1.393 3.111-3.05 3.111-1.65 0-3.044-1.3-3.044-3.111 0-1.81 1.394-3.111 3.043-3.111 1.658 0 3.052 1.3 3.052 3.111Zm-4.946 0c0 1.258.816 2.142 1.895 2.142 1.088 0 1.904-.884 1.904-2.142s-.816-2.142-1.904-2.142c-1.08 0-1.895.884-1.895 2.142Z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M3.084 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H3.084V9.95Zm18.402 5.2-.064.074c-.53.61-1.365 1.012-2.32 1.012-1.712 0-3.151-1.345-3.151-3.211 0-1.866 1.44-3.211 3.151-3.211a3.122 3.122 0 0 1 2.231.915l.07.072-.904.854-.068-.076a1.825 1.825 0 0 0-.049-.05 1.786 1.786 0 0 0-1.28-.546c-1.023 0-1.804.829-1.804 2.042 0 1.213.781 2.042 1.804 2.042a1.78 1.78 0 0 0 1.392-.676l.067-.084.925.843ZM2.934 9.8h2.638c1.716 0 3.174 1.35 3.174 3.225S7.288 16.25 5.572 16.25H2.934V9.8Zm18.761 5.338-.16.185c-.56.642-1.436 1.063-2.433 1.063-1.794 0-3.301-1.41-3.301-3.361 0-1.95 1.507-3.361 3.301-3.361.943 0 1.782.384 2.339.96l.176.182-1.126 1.063-.171-.189a1.64 1.64 0 0 0-1.218-.547c-.926 0-1.654.747-1.654 1.892s.728 1.892 1.654 1.892c.529 0 .986-.257 1.275-.62l.167-.209 1.151 1.05ZM4.581 11.27v3.512h.991c.848 0 1.518-.685 1.518-1.756 0-1.07-.67-1.756-1.518-1.756h-.99Zm10.99 1.756c0 1.95-1.507 3.361-3.3 3.361-1.786 0-3.294-1.411-3.294-3.361 0-1.95 1.508-3.361 3.293-3.361 1.794 0 3.302 1.41 3.302 3.361Zm-4.946 0c0 1.146.729 1.892 1.645 1.892.926 0 1.654-.747 1.654-1.892s-.728-1.892-1.654-1.892c-.916 0-1.645.746-1.645 1.892ZM4.43 11.119h1.141c.946 0 1.668.769 1.668 1.906s-.722 1.906-1.668 1.906h-1.14v-3.812Zm7.84 5.117c1.711 0 3.15-1.345 3.15-3.211 0-1.866-1.439-3.211-3.15-3.211-1.704 0-3.144 1.345-3.144 3.211 0 1.866 1.44 3.211 3.143 3.211Zm0-1.169c-1.015 0-1.796-.829-1.796-2.042 0-1.213.781-2.042 1.795-2.042 1.023 0 1.804.829 1.804 2.042 0 1.213-.78 2.042-1.804 2.042Z" clip-rule="evenodd"/></svg>',keywords:["document-doc"],category:"file"},u1=e=>r.jsx(w.b,{...e,svg:p0});u1.displayName="IconDocumentDoc";const v0={name:"document-excel",svg:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.09123 1.59961C4.85254 1.59961 4.62362 1.69443 4.45484 1.86321C4.28606 2.032 4.19123 2.26091 4.19123 2.49961V6.99961C4.19123 7.49667 4.59418 7.89961 5.09123 7.89961C5.58829 7.89961 5.99123 7.49667 5.99123 6.99961V3.39961H13.1912V7.99961C13.1912 8.49667 13.5942 8.89961 14.0912 8.89961H19.0912C19.4475 8.89961 19.7702 8.68949 19.9143 8.36371C20.0584 8.03793 19.9968 7.6578 19.7572 7.3942L14.7572 1.8942C14.5866 1.70658 14.3448 1.59961 14.0912 1.59961H5.09123ZM17.0567 7.09961L14.9912 4.82756V7.09961H17.0567Z"/><path d="M5.99123 18.9996C5.99123 18.5026 5.58829 18.0996 5.09123 18.0996C4.59418 18.0996 4.19123 18.5026 4.19123 18.9996V21.4996C4.19123 21.9967 4.59418 22.3996 5.09123 22.3996H19.0912C19.5883 22.3996 19.9912 21.9967 19.9912 21.4996V18.9996C19.9912 18.5026 19.5883 18.0996 19.0912 18.0996C18.5942 18.0996 18.1912 18.5026 18.1912 18.9996V20.5996H5.99123V18.9996Z"/><path d="M5.85772 9.94957L7.25113 11.9085L8.64454 9.94957H10.2271L8.10585 12.863L10.4653 16.0996H8.88269L7.25113 13.817L5.61957 16.0996H4.03655L6.40474 12.863L4.27464 9.94957H5.85772Z"/><path d="M12.2278 14.9306V9.94957H10.8803V16.0996H14.9138V14.9306H12.2278Z"/><path d="M15.7846 12.6443C16.0307 12.9326 16.4176 13.159 16.9777 13.3486L17.6572 13.5865C17.9185 13.6749 18.144 13.7729 18.3022 13.897C18.4568 14.0182 18.5423 14.1594 18.5423 14.3421C18.5423 14.5514 18.4498 14.7268 18.286 14.8524C18.1203 14.9795 17.8776 15.0581 17.5798 15.0581C17.0136 15.0581 16.4832 14.7468 16.1684 14.2463L16.1118 14.1563L15.137 14.8569L15.1804 14.9347C15.6612 15.7984 16.6434 16.2271 17.5628 16.2271C18.7539 16.2271 19.8048 15.4779 19.8048 14.2996C19.8048 13.8283 19.6726 13.452 19.3893 13.1458C19.1093 12.8432 18.6893 12.6175 18.1303 12.4283L17.5103 12.216C17.2511 12.1268 17.0456 12.0416 16.9053 11.9371C16.7702 11.8365 16.7023 11.7236 16.7023 11.5711C16.7023 11.2846 16.9787 10.9911 17.5628 10.9911C18.0557 10.9911 18.4859 11.1849 18.7539 11.4923L18.8168 11.5644L19.7256 10.8395L19.6645 10.7614C19.1826 10.1456 18.3599 9.82207 17.5628 9.82207C16.4054 9.82207 15.4398 10.5544 15.4398 11.6051C15.4398 12.0089 15.5358 12.3529 15.7846 12.6443Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.85772 9.94957L7.25113 11.9085L8.64454 9.94957H10.2271L8.10585 12.863L10.4653 16.0996H8.88269L7.25113 13.817L5.61957 16.0996H4.03655L6.40474 12.863L4.27464 9.94957H5.85772ZM6.25606 12.863L4.03826 9.82957H5.91962L7.25113 11.7015L8.58264 9.82957H10.4629L8.25432 12.863L10.7013 16.2196H8.82096L7.25113 14.0234L5.6813 16.2196H3.80005L6.25606 12.863ZM12.3478 9.82957V14.8106H14.9959L16.1454 13.9843L16.27 14.1824C16.5648 14.6511 17.0584 14.9381 17.5798 14.9381C17.8577 14.9381 18.0728 14.8647 18.213 14.7572C18.3489 14.6529 18.4223 14.512 18.4223 14.3421C18.4223 14.2053 18.3617 14.0961 18.2282 13.9914C18.0867 13.8805 17.8773 13.7877 17.6187 13.7001L17.6176 13.6997L16.9393 13.4623C16.9391 13.4622 16.9394 13.4624 16.9393 13.4623C16.3699 13.2695 15.9594 13.0339 15.6933 12.7222C15.4213 12.4036 15.3198 12.0293 15.3198 11.6051C15.3198 10.4663 16.3633 9.70207 17.5628 9.70207C18.3883 9.70207 19.2496 10.0365 19.759 10.6875L19.8933 10.8591L18.8018 11.7299L18.6634 11.5711C18.4207 11.2928 18.0249 11.1111 17.5628 11.1111C17.0137 11.1111 16.8223 11.3783 16.8223 11.5711C16.8223 11.6772 16.8648 11.7574 16.977 11.8409C17.1008 11.9331 17.29 12.0133 17.5493 12.1025C17.5493 12.1025 17.5492 12.1025 17.5493 12.1025L18.1688 12.3147C18.1688 12.3147 18.1687 12.3147 18.1688 12.3147C18.7355 12.5065 19.1776 12.7403 19.4774 13.0643C19.7846 13.3963 19.9248 13.8033 19.9248 14.2996C19.9248 15.5662 18.7958 16.3471 17.5628 16.3471C16.6113 16.3471 15.5826 15.9038 15.0755 14.9931L15.0338 14.9181V16.2196H10.7603V9.82957H12.3478ZM18.1303 12.4283L17.5103 12.216C17.2511 12.1268 17.0456 12.0416 16.9053 11.9371C16.7702 11.8365 16.7023 11.7236 16.7023 11.5711C16.7023 11.2846 16.9787 10.9911 17.5628 10.9911C18.0557 10.9911 18.4859 11.1849 18.7539 11.4923L18.8168 11.5644L19.7256 10.8395L19.6645 10.7614C19.1826 10.1456 18.3599 9.82207 17.5628 9.82207C16.4054 9.82207 15.4398 10.5544 15.4398 11.6051C15.4398 12.0089 15.5358 12.3529 15.7846 12.6443C16.0307 12.9326 16.4176 13.159 16.9777 13.3486L17.6572 13.5865C17.9185 13.6749 18.144 13.7729 18.3022 13.897C18.4568 14.0182 18.5423 14.1594 18.5423 14.3421C18.5423 14.5514 18.4498 14.7268 18.286 14.8524C18.1203 14.9795 17.8776 15.0581 17.5798 15.0581C17.018 15.0581 16.4915 14.7517 16.1758 14.258C16.1733 14.2541 16.1709 14.2502 16.1684 14.2463L16.1118 14.1563L15.137 14.8569L15.1804 14.9347C15.6612 15.7984 16.6434 16.2271 17.5628 16.2271C18.7539 16.2271 19.8048 15.4779 19.8048 14.2996C19.8048 13.8283 19.6726 13.452 19.3893 13.1458C19.1093 12.8432 18.6893 12.6175 18.1303 12.4283ZM12.2278 14.9306V9.94957H10.8803V16.0996H14.9138V14.9306H12.2278Z"/></svg>',keywords:["document-excel"],category:"file"},d1=e=>r.jsx(w.b,{...e,svg:v0});d1.displayName="IconDocumentExcel";const h0={name:"document-pdf",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-opacity=".84" fill-rule="evenodd" d="M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 1 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/><path d="M6.765 10.05H4.487V16h1.139v-2.074h1.139c1.113 0 2.048-.799 2.048-1.93 0-1.139-.935-1.946-2.048-1.946Zm-1.14 2.907v-1.938h1.03c.594 0 1.01.408 1.01.977 0 .57-.416.961-1.01.961h-1.03Zm6.488-2.907H9.725V16h2.388c1.581 0 2.924-1.241 2.924-2.975s-1.343-2.975-2.924-2.975Zm-1.24 4.981v-4.012h1.24c1.012 0 1.768.825 1.768 2.006 0 1.181-.756 2.006-1.768 2.006h-1.24Zm9.112-4.981h-3.927V16h1.148v-2.49h2.218v-.97h-2.218v-1.52h2.78v-.969Z"/><path fill-rule="evenodd" d="M4.387 9.95h2.378c1.161 0 2.148.845 2.148 2.046 0 1.194-.988 2.03-2.148 2.03h-1.04V16.1H4.388V9.95ZM5.626 16h-1.14v-5.95h2.279c1.113 0 2.048.807 2.048 1.946 0 1.131-.935 1.93-2.048 1.93h-1.14V16Zm.1-4.881v1.738h.928c.276 0 .503-.09.66-.24a.833.833 0 0 0 .252-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247h-.928ZM9.625 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H9.625V9.95Zm.1 6.05h2.388c1.581 0 2.924-1.241 2.924-2.975s-1.343-2.975-2.924-2.975H9.725V16Zm1.247-4.881v3.812h1.141c.946 0 1.668-.769 1.668-1.906s-.722-1.906-1.668-1.906h-1.14Zm9.113-1.169v1.169h-2.78v1.322h2.22v1.168h-2.22V16.1h-1.347V9.95h4.127ZM17.205 16h-1.147v-5.95h3.927v.969h-2.78v1.521h2.22v.97h-2.22V16Zm-11.58-3.043h1.03c.594 0 1.01-.391 1.01-.96 0-.57-.416-.978-1.01-.978h-1.03v1.938Zm5.247 2.074h1.241c1.012 0 1.768-.825 1.768-2.006 0-1.181-.756-2.006-1.768-2.006h-1.24v4.012Z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.387 9.95h2.378c1.161 0 2.148.845 2.148 2.046 0 1.194-.988 2.03-2.148 2.03h-1.04V16.1H4.388V9.95Zm1.489 4.226v2.074h-1.64V9.8h2.529c1.232 0 2.298.9 2.298 2.196 0 1.29-1.068 2.18-2.298 2.18h-.89ZM9.625 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H9.625V9.95Zm10.46 0v1.169h-2.78v1.322h2.22v1.168h-2.22V16.1h-1.347V9.95h4.127Zm-2.63 3.81v2.49h-1.647V9.8h4.427v1.469h-2.78v1.021h2.22v1.47h-2.22ZM9.476 9.8h2.638c1.716 0 3.174 1.35 3.174 3.225s-1.458 3.225-3.174 3.225H9.475V9.8Zm-3.6 1.469v1.438h.78c.242 0 .43-.079.556-.198a.684.684 0 0 0 .205-.513.71.71 0 0 0-.207-.522.779.779 0 0 0-.555-.205h-.778Zm5.247 0v3.512h.991c.848 0 1.518-.685 1.518-1.756 0-1.07-.67-1.756-1.518-1.756h-.99Zm-5.396-.15h.928a.93.93 0 0 1 .66.247.86.86 0 0 1 .252.63c0 .26-.094.473-.251.622a.942.942 0 0 1-.66.239h-.93v-1.738Zm5.246 0h1.141c.946 0 1.668.769 1.668 1.906s-.722 1.906-1.668 1.906h-1.14v-3.812Z" clip-rule="evenodd"/></svg>',keywords:["document-pdf"],category:"file"},c1=e=>r.jsx(w.b,{...e,svg:h0});c1.displayName="IconDocumentPdf";const f0={name:"document-ppt",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-opacity=".84" fill-rule="evenodd" d="M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 1 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z" clip-rule="evenodd"/><path d="M7.11 10.05H4.83V16h1.14v-2.074h1.138c1.114 0 2.049-.799 2.049-1.93 0-1.139-.935-1.946-2.049-1.946Zm-1.14 2.907v-1.938H7c.595 0 1.011.408 1.011.977 0 .57-.416.961-1.011.961H5.97Zm6.377-2.907H10.07V16h1.14v-2.074h1.138c1.114 0 2.049-.799 2.049-1.93 0-1.139-.935-1.946-2.049-1.946Zm-1.139 2.907v-1.938h1.029c.595 0 1.011.408 1.011.977 0 .57-.416.961-1.011.961h-1.029Zm8.366-2.907h-4.675v.969h1.785V16h1.122v-4.981h1.768v-.969Z"/><path fill-rule="evenodd" d="M4.731 9.95H7.11c1.161 0 2.149.845 2.149 2.046 0 1.194-.988 2.03-2.149 2.03H6.07V16.1H4.731V9.95ZM5.971 16H4.83v-5.95h2.28c1.114 0 2.049.807 2.049 1.946 0 1.131-.935 1.93-2.049 1.93H5.97V16Zm.1-4.881v1.738h.928a.94.94 0 0 0 .66-.24.833.833 0 0 0 .251-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247H6.07ZM9.968 9.95h2.378c1.161 0 2.149.845 2.149 2.046 0 1.194-.989 2.03-2.149 2.03h-1.039V16.1H9.97V9.95ZM11.21 16h-1.14v-5.95h2.278c1.114 0 2.049.807 2.049 1.946 0 1.131-.935 1.93-2.049 1.93h-1.139V16Zm.1-4.881v1.738h.928a.94.94 0 0 0 .66-.24.833.833 0 0 0 .251-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247h-.928Zm8.365-1.169v1.169h-1.768V16.1h-1.322v-4.981H14.8V9.95h4.875ZM14.9 11.019v-.969h4.675v.969h-1.768V16h-1.122v-4.981H14.9Zm-8.93 1.938H7c.595 0 1.011-.391 1.011-.96 0-.57-.416-.978-1.011-.978H5.97v1.938Zm5.238 0h1.029c.595 0 1.011-.391 1.011-.96 0-.57-.416-.978-1.011-.978h-1.029v1.938Z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4.731 9.95H7.11c1.161 0 2.149.845 2.149 2.046 0 1.194-.988 2.03-2.149 2.03H6.07V16.1H4.731V9.95Zm1.49 4.226v2.074H4.58V9.8h2.53c1.233 0 2.299.9 2.299 2.196 0 1.29-1.069 2.18-2.299 2.18h-.89ZM9.968 9.95h2.378c1.161 0 2.149.845 2.149 2.046 0 1.194-.989 2.03-2.149 2.03h-1.039V16.1H9.97V9.95Zm1.49 4.226v2.074h-1.64V9.8h2.528c1.232 0 2.299.9 2.299 2.196 0 1.29-1.069 2.18-2.299 2.18h-.889Zm8.215-4.226v1.169h-1.768V16.1h-1.322v-4.981h-1.785V9.95h4.875Zm-3.24 1.319h-1.785V9.8h5.175v1.469h-1.768v4.981h-1.622v-4.981Zm-10.214 0v1.438H7c.242 0 .43-.079.557-.198a.684.684 0 0 0 .204-.513.71.71 0 0 0-.206-.522.779.779 0 0 0-.555-.205h-.78Zm5.238 0v1.438h.779c.242 0 .43-.079.557-.198a.684.684 0 0 0 .204-.513.71.71 0 0 0-.207-.522.779.779 0 0 0-.554-.205h-.779Zm-5.388-.15H7c.274 0 .501.094.66.247a.86.86 0 0 1 .251.63c0 .26-.094.473-.251.622a.942.942 0 0 1-.66.239h-.93v-1.738Zm5.238 0h.929c.274 0 .5.094.659.247a.86.86 0 0 1 .252.63c0 .26-.094.473-.251.622a.941.941 0 0 1-.66.239h-.929v-1.738Z" clip-rule="evenodd"/></svg>',keywords:["document-ppt"],category:"file"},p1=e=>r.jsx(w.b,{...e,svg:f0});p1.displayName="IconDocumentPpt";const m0={name:"image",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 25" fill="currentColor"><path fill-rule="evenodd" d="M1.6 4.5a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9v16a.9.9 0 0 1-.9.9h-19a.9.9 0 0 1-.9-.9v-16Zm1.8.9v14.2h17.2V5.4H3.4Zm4.1 2.5a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2ZM4.1 9.5a3.4 3.4 0 1 1 6.8 0 3.4 3.4 0 0 1-6.8 0Zm11.264.864a.9.9 0 0 1 1.272 0l3 3a.9.9 0 1 1-1.272 1.272L16 12.273l-5.364 5.363a.9.9 0 0 1-1.272 0L8 16.273l-2.364 2.363a.9.9 0 1 1-1.272-1.272l3-3a.9.9 0 0 1 1.272 0L10 15.727l5.364-5.363Z" clip-rule="evenodd"/></svg>',keywords:["image"],category:"media"},v1=e=>r.jsx(w.b,{...e,svg:m0});v1.displayName="IconImage";const _0={name:"video",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 25" fill="currentColor"><path fill-rule="evenodd" d="M1.6 6a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9v14a.9.9 0 0 1-.9.9h-19a.9.9 0 0 1-.9-.9V6Zm1.8.9v12.2h17.2V6.9H3.4Zm6.167 1.811a.9.9 0 0 1 .916.03l5.5 3.5a.9.9 0 0 1 0 1.518l-5.5 3.5A.9.9 0 0 1 9.1 16.5v-7a.9.9 0 0 1 .467-.789ZM10.9 11.14v3.722L13.824 13 10.9 11.14Z" clip-rule="evenodd"/></svg>',keywords:["video"],category:"media"},h1=e=>r.jsx(w.b,{...e,svg:_0});h1.displayName="IconVideo";const g0={name:"volume",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12.864 3.177A.9.9 0 0 1 13.4 4v16a.9.9 0 0 1-1.505.666L6.652 15.9H4A1.9 1.9 0 0 1 2.1 14v-4c0-1.05.85-1.9 1.9-1.9h2.652l5.243-4.766a.9.9 0 0 1 .97-.157ZM11.6 6.034 7.605 9.666A.9.9 0 0 1 7 9.9H4a.1.1 0 0 0-.1.1v4a.1.1 0 0 0 .1.1h3a.9.9 0 0 1 .605.234l3.995 3.631V6.035Zm6.835-1.741a.9.9 0 0 1 1.273 0c4.256 4.256 4.256 11.158 0 15.414a.9.9 0 1 1-1.273-1.272 9.1 9.1 0 0 0 0-12.87.9.9 0 0 1 0-1.272Zm-3.071 3.07a.9.9 0 0 1 1.272 0 6.557 6.557 0 0 1 0 9.273.9.9 0 1 1-1.272-1.272 4.757 4.757 0 0 0 0-6.728.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["volume"],category:"action"},f1=e=>r.jsx(w.b,{...e,svg:g0});f1.displayName="IconVolume";const x0={"purpur-file-upload-icon":"_purpur-file-upload-icon_w5n80_1","purpur-file-upload-icon--muted":"_purpur-file-upload-icon--muted_w5n80_5"},Z0=N.c.bind(x0),e1="purpur-file-upload-icon",w0=({filetype:e,muted:l})=>{const a={size:"sm",className:Z0(e1,{[`${e1}--muted`]:l})};return e.startsWith("image/")?r.jsx(v1,{...a}):e.startsWith("video/")?r.jsx(h1,{...a}):e.startsWith("audio/")?r.jsx(f1,{...a}):e.includes("powerpoint")||e.includes("presentationml")?r.jsx(p1,{...a}):e.includes("msword")||e.includes("ms-word")||e.includes("wordprocessingml")?r.jsx(u1,{...a}):e.includes("excel")||e.includes("spreadsheetml")?r.jsx(d1,{...a}):e==="application/pdf"?r.jsx(c1,{...a}):r.jsx(i1,{...a})},H0=(e,l)=>e.name===l.name&&e.size===l.size&&e.lastModified===l.lastModified,C0=(e,l)=>{const a=[...e];return l.forEach(t=>{const o=a.findIndex(n=>H0(n,t));o===-1?a.push(t):a[o]=t}),a},V0=(e,l)=>l.some(a=>a.startsWith(".")?e.name.toLowerCase().endsWith(a.toLowerCase()):a.endsWith("/*")?e.type.startsWith(a.slice(0,-1)):e.type===a),b0=(e,l,a)=>{if(!e)return{acceptedFiles:[],hasOversizedFiles:!1,hasInvalidFileType:!1};const t=Array.from(e),o=l?t.filter(s=>s.size<=l):t,n=a&&a.length>0?o.filter(s=>V0(s,a)):o;return{acceptedFiles:n,hasOversizedFiles:o.length!==t.length,hasInvalidFileType:n.length!==o.length}},V=N.c.bind(S1),x="purpur-file-upload",m1=u.forwardRef(({acceptedFileTypes:e,acceptedFileTypesErrorText:l,backgroundColor:a="primary",buttonLabel:t,disabled:o=!1,dragAndDrop:n=!1,dragAndDropLabel:s,errorText:i,helperText:h,label:c,labelTag:m="h2",maxFiles:d,maxFilesErrorText:f,maxFileSizeBytes:Z,maxFileSizeErrorText:_,removeFileButtonLabel:$,tooltipText:M,useMediaQueries:p=!1,variant:O="attach",...g},_1)=>{const W=u.useId(),g1=u.useId(),x1=u.useId(),[F,I]=u.useState([]),[Z1,D]=u.useState(!1),[w1,A]=u.useState(!1),[H1,T]=u.useState(!1),z="onFileSelect"in g?g.isUploading:void 0,C1="onFileSelect"in g?g.uploadingText:void 0,V1="onFileSelect"in g?g.isRemoving:void 0,b1="onFileSelect"in g?g.removingText:void 0,U=v=>{if(o)return;const{acceptedFiles:b,hasOversizedFiles:y,hasInvalidFileType:L}=b0(v,Z,e);A(y),T(L);const k=C0(F,b);if(d&&k.length>d){D(!0);return}D(!1),I(k),"onFileSelect"in g&&b.forEach(G=>{Promise.resolve(g.onFileSelect(G)).then($1=>{$1||I(M1=>M1.filter(L1=>L1!==G))})})},y1=v=>{if(!o){if("onFileSelect"in g){Promise.resolve(g.onFileRemove(v)).then(b=>{b&&(I(y=>y.filter(L=>L!==v)),D(!1),A(!1),T(!1))});return}I(b=>b.filter(y=>y!==v)),D(!1),A(!1),T(!1)}},P=r.jsx(B1,{accept:e?.join(","),disabled:o,files:F,interactive:!n,multiple:d!==1,onFilesChange:U,useMediaQueries:p,variant:O,children:t}),R=Z1?f:w1?_:H1?l:i;return r.jsxs("div",{ref:_1,className:V(x),role:"group","aria-labelledby":c?W:void 0,children:[r.jsxs("div",{className:V(`${x}__content`),children:[c&&r.jsx(N1.Heading,{tag:m,variant:"subsection-100",id:W,className:V(`${x}__label`,{[`${x}__label--disabled`]:o}),children:c}),n?r.jsx(a0,{backgroundColor:a,disabled:o,dragAndDropLabel:s,onFilesChange:U,variant:O,children:P}):P,(h!==void 0||R)&&r.jsxs("div",{className:V(`${x}__messages`),children:[h!==void 0&&r.jsxs("div",{className:V(`${x}__helper-text-row`),children:[h&&r.jsx(j1.FieldHelperText,{id:g1,children:h}),M&&r.jsx(I1.Tooltip,{buttonSize:"xs",iconSize:"xs",triggerAriaLabel:M,children:M})]}),R&&r.jsx(k1.FieldErrorText,{id:x1,children:R})]})]}),F.length>0&&r.jsx("ul",{className:V(`${x}__files`),children:F.map((v,b)=>{const y=z?.(v)||V1?.(v),L=z?.(v)?C1:b1,k=y||o;return r.jsxs("li",{className:V(`${x}__file`,`${x}__file--${a}`,{[`${x}__file--disabled`]:o}),children:[r.jsx(w0,{filetype:v.type,muted:k}),r.jsx(d0,{fileName:v.name,muted:k}),y?r.jsxs("span",{className:V(`${x}__spinner`),children:[r.jsx(F1.Spinner,{size:"xxs","aria-hidden":"true",disabled:!0}),r.jsx(D1.VisuallyHidden,{"aria-live":"polite",children:`${L} ${v.name}`})]}):r.jsx(a1.Button,{iconOnly:!0,variant:"text","aria-label":`${$} ${v.name}`,onClick:()=>y1(v),className:V(`${x}__remove-button`),disabled:o,children:r.jsx(l1,{size:"xs"})})]},`${v.name}-${b}`)})})]})});m1.displayName="FileUpload";exports.FileUpload=m1;
2
+ //# sourceMappingURL=file-upload-MvNuX4ks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-MvNuX4ks.js","sources":["../../../components/icon/dist/components/remove.es.js","../../../components/icon/dist/components/attachment.es.js","../../../components/icon/dist/components/upload.es.js","../../../components/file-upload/src/file-upload-button.tsx","../../../components/illustrative-icon/dist/_commonjsHelpers-C6fGbg64.mjs","../../../components/illustrative-icon/dist/static-illustrative-icon-B1ddcvze.mjs","../../../components/illustrative-icon/dist/components/document-attach-duocolor-static.es.js","../../../components/illustrative-icon/dist/components/document-upload-duocolor-static.es.js","../../../components/file-upload/src/file-upload-drag-and-drop.tsx","../../../components/file-upload/src/file-upload-file-name-label.tsx","../../../components/icon/dist/components/doc.es.js","../../../components/icon/dist/components/document-doc.es.js","../../../components/icon/dist/components/document-excel.es.js","../../../components/icon/dist/components/document-pdf.es.js","../../../components/icon/dist/components/document-ppt.es.js","../../../components/icon/dist/components/image.es.js","../../../components/icon/dist/components/video.es.js","../../../components/icon/dist/components/volume.es.js","../../../components/file-upload/src/file-upload-icon.tsx","../../../components/file-upload/src/file-upload-utils.ts","../../../components/file-upload/src/file-upload.tsx"],"sourcesContent":["import { jsx as a } from \"react/jsx-runtime\";\nimport { I as e } from \"../icon-DNHpBTHs.mjs\";\nconst v = {\n name: \"remove\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M7.6 2.5a.9.9 0 0 1 .9-.9h7a.9.9 0 0 1 .9.9v2.6h4.1a.9.9 0 0 1 0 1.8h-17a.9.9 0 0 1 0-1.8h11.1V3.4H9.4v.1a.9.9 0 0 1-1.8 0v-1ZM5 8.1a.9.9 0 0 1 .9.9v11.6h12.2V9a.9.9 0 1 1 1.8 0v12.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V9a.9.9 0 0 1 .9-.9Zm4.5 1a.9.9 0 0 1 .9.9v8a.9.9 0 0 1-1.8 0v-8a.9.9 0 0 1 .9-.9Zm5 0a.9.9 0 0 1 .9.9v8a.9.9 0 0 1-1.8 0v-8a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"remove\"],\n category: \"action\"\n}, r = (o) => /* @__PURE__ */ a(e, { ...o, svg: v });\nr.displayName = \"IconRemove\";\nexport {\n r as IconRemove\n};\n//# sourceMappingURL=remove.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nimport { I as o } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"attachment\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M15.654 3.87a3.872 3.872 0 0 1 5.484 0 3.913 3.913 0 0 1 0 5.5L10.934 19.636a5.34 5.34 0 0 1-7.588 0l-.002-.002a5.42 5.42 0 0 1 0-7.613l.004-.004 8.016-8.015a.9.9 0 0 1 1.272 1.273l-8.013 8.013a3.62 3.62 0 0 0 0 5.08 3.54 3.54 0 0 0 5.035-.002L19.862 8.102a2.113 2.113 0 0 0 0-2.962 2.072 2.072 0 0 0-2.931 0l-9.396 9.456a.607.607 0 0 0 0 .847c.226.228.6.228.827 0l.002-.002 3-3a.9.9 0 0 1 1.272 1.273L9.638 16.71a2.386 2.386 0 0 1-3.38 0 2.406 2.406 0 0 1 0-3.385l9.396-9.456Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"attachment\"],\n category: \"action\"\n}, l = (t) => /* @__PURE__ */ a(o, { ...t, svg: e });\nl.displayName = \"IconAttachment\";\nexport {\n l as IconAttachment\n};\n//# sourceMappingURL=attachment.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nimport { I as l } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"upload\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M1.6 2.5a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9V13a.9.9 0 0 1-1.8 0V3.4H3.4V13a.9.9 0 0 1-1.8 0V2.5Zm9.764 4.864a.9.9 0 0 1 1.272 0l5 5a.9.9 0 1 1-1.272 1.272L12.9 10.173V21.5a.9.9 0 0 1-1.8 0V10.173l-3.464 3.463a.9.9 0 0 1-1.272-1.272l5-5Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"upload\"],\n category: \"action\"\n}, r = (o) => /* @__PURE__ */ a(l, { ...o, svg: e });\nr.displayName = \"IconUpload\";\nexport {\n r as IconUpload\n};\n//# sourceMappingURL=upload.es.js.map\n","import React, { type ReactNode, useEffect, useId, useRef } from \"react\";\nimport { Button } from \"@purpur/button\";\nimport { IconAttachment } from \"@purpur/icon/attachment\";\nimport { IconUpload } from \"@purpur/icon/upload\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-button.module.scss\";\nimport type { FileUploadProps } from \"./file-upload-types\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-button\";\n\ntype Props = {\n accept?: string;\n children: ReactNode;\n disabled?: boolean;\n /** The full, merged list of files currently shown, kept in sync with the input's own file list. */\n files: File[];\n /**\n * Whether the trigger renders as a real, focusable button. Set to `false` when the\n * whole surrounding area (e.g. the drag-and-drop drop zone) is the actual clickable\n * control, so the visible trigger is just a \"fake\" button used for styling only.\n */\n interactive?: boolean;\n multiple: boolean;\n onFilesChange: (files: FileList | null | undefined) => void;\n useMediaQueries?: boolean;\n variant: FileUploadProps[\"variant\"];\n};\n\nexport const FileUploadButton = ({\n accept,\n children,\n disabled = false,\n files,\n interactive = true,\n multiple,\n onFilesChange,\n useMediaQueries = false,\n variant,\n}: Props) => {\n const inputId = useId();\n const inputRef = useRef<HTMLInputElement>(null);\n const buttonRef = useRef<HTMLButtonElement>(null);\n\n const icon = variant === \"attach\" ? <IconAttachment size=\"xs\" /> : <IconUpload size=\"xs\" />;\n\n // Selections can be added via drag-and-drop or merged with previous ones, so the input's own\n // file list (used e.g. when submitting a form) is kept in sync with the full list shown to the user.\n useEffect(() => {\n // jsdom (used in tests) doesn't implement DataTransfer, so skip syncing there.\n if (!inputRef.current || typeof DataTransfer === \"undefined\") {\n return;\n }\n\n const dataTransfer = new DataTransfer();\n files.forEach((file) => dataTransfer.items.add(file));\n inputRef.current.files = dataTransfer.files;\n }, [files]);\n\n const responsiveWidthClasses = {\n [`${rootClassName}--use-media-queries`]: useMediaQueries,\n [`${rootClassName}--use-container-queries`]: !useMediaQueries,\n };\n\n return (\n <>\n <input\n id={inputId}\n ref={inputRef}\n className={cx(`${rootClassName}__input`)}\n type=\"file\"\n accept={accept}\n disabled={disabled}\n multiple={multiple}\n tabIndex={interactive ? -1 : undefined}\n onFocus={\n interactive\n ? () => {\n // The browser moves focus to the (visually hidden) file input once the\n // file selection dialog closes. Send it back to the visible trigger\n // button so keyboard/focus-visible styling stays on the upload area.\n buttonRef.current?.focus();\n }\n : undefined\n }\n onChange={(e) => {\n onFilesChange(e.target.files);\n e.target.value = \"\";\n }}\n name=\"upload\"\n />\n {interactive ? (\n <Button\n ref={buttonRef}\n variant=\"secondary\"\n aria-controls={inputId}\n className={cx(rootClassName, responsiveWidthClasses)}\n onClick={() => inputRef.current?.click()}\n disabled={disabled}\n fullWidth\n >\n {icon}\n {children}\n </Button>\n ) : (\n <span\n className={cx(\n [\n rootClassName,\n `${rootClassName}--fake`,\n `${rootClassName}--fake--secondary`,\n `${rootClassName}--fake--md`,\n ],\n { [`${rootClassName}--fake--disabled`]: disabled },\n responsiveWidthClasses\n )}\n >\n {children}\n </span>\n )}\n </>\n );\n};\n","function e(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\n}\nexport {\n e as g\n};\n//# sourceMappingURL=_commonjsHelpers-C6fGbg64.mjs.map\n","import { jsx as c } from \"react/jsx-runtime\";\nimport { forwardRef as p } from \"react\";\nimport { g as f } from \"./_commonjsHelpers-C6fGbg64.mjs\";\nvar u = { exports: {} };\nvar l;\nfunction v() {\n return l || (l = 1, (function(n) {\n (function() {\n var e = {}.hasOwnProperty;\n function i() {\n for (var t = \"\", r = 0; r < arguments.length; r++) {\n var s = arguments[r];\n s && (t = a(t, o.call(this, s)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return i.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var r = \"\";\n for (var s in t)\n e.call(t, s) && t[s] && (r = a(r, this && this[s] || s));\n return r;\n }\n function a(t, r) {\n return r ? t ? t + \" \" + r : t + r : t;\n }\n n.exports ? (i.default = i, n.exports = i) : window.classNames = i;\n })();\n })(u)), u.exports;\n}\nvar m = v();\nconst d = /* @__PURE__ */ f(m), g = {\n \"purpur-illustrative-icon\": \"_purpur-illustrative-icon_64k5d_1\"\n}, h = d.bind(g), S = \"purpur-illustrative-icon\", x = (n) => n.filter((e) => Object.keys(e).length >= 1).map((e) => `${e.name}=\"${e.value}\"`).join(\" \"), b = ({ content: n = \"\", title: e } = {}) => {\n const i = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"none\" },\n { name: \"viewBox\", value: \"0 0 64 64\" },\n e ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], o = e ? `<title>${e}</title>` : \"\";\n return `<svg ${x(i)}>${o}${n}</svg>`;\n}, y = (n) => n.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), w = p(\n ({ svg: n, allyTitle: e, className: i, ...o }, a) => {\n const t = b({\n content: y(n),\n title: e\n });\n return /* @__PURE__ */ c(\n \"span\",\n {\n className: h(S, i),\n dangerouslySetInnerHTML: { __html: t },\n ref: a,\n ...o\n }\n );\n }\n);\nw.displayName = \"StaticIllustrativeIcon\";\nexport {\n w as S\n};\n//# sourceMappingURL=static-illustrative-icon-B1ddcvze.mjs.map\n","import { jsx as t } from \"react/jsx-runtime\";\nimport { S as c } from \"../static-illustrative-icon-B1ddcvze.mjs\";\nconst v = {\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 64 64\"><path fill=\"#990AE3\" d=\"M30.14 43.815a3.925 3.925 0 0 1-3.92-3.92v-10.21a2.953 2.953 0 0 1 2.95-2.95 2.953 2.953 0 0 1 2.95 2.95v6.67a.5.5 0 1 1-1 0v-6.67c0-1.075-.875-1.95-1.95-1.95-1.076 0-1.95.875-1.95 1.95v10.21c0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92v-11.93c0-2.09-1.7-3.79-3.79-3.79s-3.79 1.7-3.79 3.79v6.71a.5.5 0 1 1-1 0v-6.71a4.795 4.795 0 0 1 4.79-4.79 4.795 4.795 0 0 1 4.79 4.79v11.93a3.925 3.925 0 0 1-3.92 3.92Z\"/><path fill=\"#29003E\" d=\"M47.59 56.335H14.35c-.85 0-1.54-.69-1.54-1.54v-42.59c0-.85.69-1.54 1.54-1.54h24.5c.417 0 .805.158 1.093.446l7.7 7.7c.288.288.447.676.447 1.094v32.9a.5.5 0 1 1-1 0v-32.9a.541.541 0 0 0-.154-.387l-7.7-7.7a.534.534 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54v42.59c0 .302.238.54.54.54h33.24a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M47.33 20.255h-8.2a.5.5 0 0 1-.5-.5v-8.21a.5.5 0 1 1 1 0v7.71h7.7a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M50.69 51.495a.5.5 0 0 1-.5-.5v-34.09a.542.542 0 0 0-.154-.388l-7.7-7.699a.528.528 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54.5.5 0 1 1-1 0c0-.85.69-1.54 1.54-1.54h24.5c.416 0 .805.158 1.093.445l7.7 7.701c.289.29.447.678.447 1.094v34.09a.5.5 0 0 1-.5.5Z\"/></svg>'\n}, l = (a) => /* @__PURE__ */ t(c, { ...a, svg: v.svg });\nl.displayName = \"IllustrativeIconDocumentAttachDuocolorStatic\";\nexport {\n l as IllustrativeIconDocumentAttachDuocolorStatic\n};\n//# sourceMappingURL=document-attach-duocolor-static.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nimport { S as t } from \"../static-illustrative-icon-B1ddcvze.mjs\";\nconst o = {\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 64 64\"><path fill=\"#990AE3\" d=\"M30.45 43.685a.5.5 0 0 1-.5-.5v-11.41a.5.5 0 1 1 1 0v11.41a.5.5 0 0 1-.5.5Z\"/><path fill=\"#990AE3\" d=\"M26.44 36.215a.499.499 0 0 1-.354-.854l4.01-4.01a.5.5 0 0 1 .707 0l4.011 4.01a.5.5 0 1 1-.707.707l-3.657-3.656-3.656 3.656a.499.499 0 0 1-.354.147Z\"/><path fill=\"#990AE3\" d=\"M27.46 40.668a.395.395 0 0 1-.181-.045l-.107-.056c-2.303-1.271-3.682-3.604-3.682-6.132a6.958 6.958 0 0 1 6.95-6.95 6.959 6.959 0 0 1 6.95 6.95 6.976 6.976 0 0 1-3.696 6.15c-.242.124-.58.056-.711-.182-.13-.238-.088-.514.147-.65l.104-.056a5.974 5.974 0 0 0 3.156-5.262 5.957 5.957 0 0 0-5.95-5.95 5.956 5.956 0 0 0-5.95 5.95 5.96 5.96 0 0 0 3.082 5.212c.247.122.424.461.302.71-.091.185-.24.31-.415.31Z\"/><path fill=\"#29003E\" d=\"M47.59 56.335H14.35c-.85 0-1.54-.69-1.54-1.54v-42.59c0-.85.69-1.54 1.54-1.54h24.5c.418 0 .806.158 1.094.446l7.7 7.7c.287.288.446.677.446 1.094v32.9a.5.5 0 1 1-1 0v-32.9a.541.541 0 0 0-.154-.387l-7.7-7.7a.526.526 0 0 0-.386-.153h-24.5a.534.534 0 0 0-.54.54v42.59c0 .302.237.54.54.54h33.24a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M47.33 20.255h-8.2a.5.5 0 0 1-.5-.5v-8.21a.5.5 0 1 1 1 0v7.71h7.7a.5.5 0 1 1 0 1Z\"/><path fill=\"#29003E\" d=\"M50.69 51.495a.5.5 0 0 1-.5-.5v-34.09a.541.541 0 0 0-.153-.387l-7.7-7.7a.526.526 0 0 0-.387-.153h-24.5a.534.534 0 0 0-.54.54.5.5 0 1 1-1 0c0-.85.69-1.54 1.54-1.54h24.5c.418 0 .805.158 1.093.446l7.7 7.7c.289.288.447.676.447 1.094v34.09a.5.5 0 0 1-.5.5Z\"/></svg>'\n}, c = (a) => /* @__PURE__ */ l(t, { ...a, svg: o.svg });\nc.displayName = \"IllustrativeIconDocumentUploadDuocolorStatic\";\nexport {\n c as IllustrativeIconDocumentUploadDuocolorStatic\n};\n//# sourceMappingURL=document-upload-duocolor-static.es.js.map\n","import React, { useId, useRef, useState } from \"react\";\nimport { DndContext, useDroppable } from \"@dnd-kit/core\";\nimport { IllustrativeIconDocumentAttachDuocolorStatic } from \"@purpur/illustrative-icon/document-attach-duocolor-static\";\nimport { IllustrativeIconDocumentUploadDuocolorStatic } from \"@purpur/illustrative-icon/document-upload-duocolor-static\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-drag-and-drop.module.scss\";\nimport type { FileUploadProps } from \"./file-upload-types\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-drag-and-drop\";\n\ntype FileUploadDragAndDropProps = Pick<\n FileUploadProps,\n \"backgroundColor\" | \"dragAndDropLabel\" | \"variant\"\n> & {\n children: React.ReactNode;\n disabled?: boolean;\n onFilesChange: (files: FileList | null | undefined) => void;\n};\n\nexport const FileUploadDragAndDrop = ({\n backgroundColor,\n children,\n disabled = false,\n dragAndDropLabel,\n onFilesChange,\n variant,\n}: FileUploadDragAndDropProps) => {\n const dragAndDropId = useId();\n const dragDepthRef = useRef(0);\n const [isDragOver, setIsDragOver] = useState(false);\n const { setNodeRef } = useDroppable({ id: dragAndDropId });\n\n const isFileDragEvent = (event: React.DragEvent<HTMLDivElement>) => {\n return Array.from(event.dataTransfer?.types ?? []).includes(\"Files\");\n };\n\n const resetDragState = () => {\n dragDepthRef.current = 0;\n setIsDragOver(false);\n };\n\n const handleDragEnter = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n\n if (disabled) {\n return;\n }\n\n dragDepthRef.current += 1;\n setIsDragOver(true);\n };\n\n const handleDragOver = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n event.dataTransfer.dropEffect = disabled ? \"none\" : \"copy\";\n\n if (disabled) {\n return;\n }\n\n setIsDragOver(true);\n };\n\n const handleDragLeave = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n\n if (disabled) {\n return;\n }\n\n dragDepthRef.current = Math.max(0, dragDepthRef.current - 1);\n\n if (dragDepthRef.current === 0) {\n setIsDragOver(false);\n }\n };\n\n const handleDrop = (event: React.DragEvent<HTMLDivElement>) => {\n if (!isFileDragEvent(event)) {\n return;\n }\n\n event.preventDefault();\n\n if (disabled) {\n return;\n }\n\n onFilesChange(event.dataTransfer.files);\n resetDragState();\n };\n\n return (\n <DndContext>\n <div\n ref={setNodeRef}\n className={cx(`${rootClassName}__hit-area`)}\n onDragEnter={handleDragEnter}\n onDragOver={handleDragOver}\n onDragLeave={handleDragLeave}\n onDrop={handleDrop}\n >\n <label\n className={cx(rootClassName, {\n [`${rootClassName}--${backgroundColor}`]: backgroundColor,\n [`${rootClassName}--drag-over`]: isDragOver,\n [`${rootClassName}--disabled`]: disabled,\n })}\n >\n <div className={cx(`${rootClassName}__icon-and-text`)}>\n {variant === \"attach\" ? (\n <IllustrativeIconDocumentAttachDuocolorStatic\n className={cx(`${rootClassName}__icon`, {\n [`${rootClassName}__icon--disabled`]: disabled,\n })}\n />\n ) : (\n <IllustrativeIconDocumentUploadDuocolorStatic\n className={cx(`${rootClassName}__icon`, {\n [`${rootClassName}__icon--disabled`]: disabled,\n })}\n />\n )}\n <Paragraph variant=\"paragraph-100-medium\" disabled={disabled}>\n {dragAndDropLabel}\n </Paragraph>\n </div>\n {children}\n </label>\n </div>\n </DndContext>\n );\n};\n","import React, {\n type ComponentPropsWithoutRef,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-file-name-label.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-file-name-label\";\n\ntype FileNameLabelProps = {\n fileName: string;\n muted?: boolean;\n} & ComponentPropsWithoutRef<\"p\">;\n\ntype FileNameParts = {\n start: string;\n separator: string;\n end: string;\n};\n\nconst END_PART_WIDTH_RATIO = 0.4;\nconst MIN_END_PART_CHAR_LENGTH = 3;\nconst MAX_END_PART_CHAR_LENGTH = 28;\nconst MIN_START_CHAR_LENGTH = 3;\nconst FIRST_EXTENSION_DOT_MIN_INDEX = 1;\n\nconst splitFileName = (fileName: string) => {\n const lastDotIndex = fileName.lastIndexOf(\".\");\n\n const hasExtension =\n lastDotIndex >= FIRST_EXTENSION_DOT_MIN_INDEX && lastDotIndex < fileName.length - 1;\n\n return {\n baseName: hasExtension ? fileName.slice(0, lastDotIndex) : fileName,\n extension: hasExtension ? fileName.slice(lastDotIndex) : \"\",\n };\n};\n\nconst getTextWidth = (text: string, font: string) => {\n const canvas = document.createElement(\"canvas\");\n const context = canvas.getContext(\"2d\");\n\n if (!context) {\n return 0;\n }\n\n context.font = font;\n\n return context.measureText(text).width;\n};\n\nconst extractBoundaryWhitespace = (start: string, end: string): FileNameParts => {\n const trailingWhitespace = start.match(/\\s+$/)?.[0] ?? \"\";\n const leadingWhitespace = end.match(/^\\s+/)?.[0] ?? \"\";\n\n const separator = `${trailingWhitespace}${leadingWhitespace}`;\n\n return {\n start: trailingWhitespace ? start.slice(0, -trailingWhitespace.length) : start,\n separator,\n end: leadingWhitespace ? end.slice(leadingWhitespace.length) : end,\n };\n};\n\nconst getFileNameParts = (fileName: string, labelWidth: number, font: string): FileNameParts => {\n const { baseName, extension } = splitFileName(fileName);\n\n if (!labelWidth || !baseName) {\n return extractBoundaryWhitespace(baseName, extension);\n }\n\n const maxEndPartWidth = labelWidth * END_PART_WIDTH_RATIO;\n\n // Never trim more of the base name than leaves fewer than MIN_START_CHAR_LENGTH characters visible at the start.\n const maxStartTrimLength = Math.max(baseName.length - MIN_START_CHAR_LENGTH, 0);\n const maxAllowedEndPartLength = Math.min(MAX_END_PART_CHAR_LENGTH, maxStartTrimLength);\n\n let bestEndPartLength = Math.min(MIN_END_PART_CHAR_LENGTH, maxAllowedEndPartLength);\n\n for (\n let endPartLength = MIN_END_PART_CHAR_LENGTH;\n endPartLength <= maxAllowedEndPartLength;\n endPartLength += 1\n ) {\n const endPart = `${baseName.slice(-endPartLength)}${extension}`;\n const endPartWidth = getTextWidth(endPart, font);\n\n if (endPartWidth <= maxEndPartWidth) {\n bestEndPartLength = endPartLength;\n } else {\n break;\n }\n }\n\n const endPartLength = Math.min(bestEndPartLength, baseName.length);\n\n const start = baseName.slice(0, baseName.length - endPartLength);\n const end = `${baseName.slice(-endPartLength)}${extension}`;\n\n return extractBoundaryWhitespace(start, end);\n};\n\nexport const FileNameLabel = ({ fileName, muted, ...props }: FileNameLabelProps) => {\n const labelRef = useRef<HTMLParagraphElement>(null);\n const [labelWidth, setLabelWidth] = useState(0);\n const [font, setFont] = useState(\"\");\n\n useLayoutEffect(() => {\n const labelElement = labelRef.current;\n\n if (!labelElement) {\n return;\n }\n\n const updateMeasurements = () => {\n const computedStyle = window.getComputedStyle(labelElement);\n\n setLabelWidth(labelElement.getBoundingClientRect().width);\n setFont(computedStyle.font);\n };\n\n updateMeasurements();\n\n const resizeObserver = new ResizeObserver(updateMeasurements);\n\n resizeObserver.observe(labelElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, []);\n\n const { start, separator, end } = useMemo(\n () => getFileNameParts(fileName, labelWidth, font),\n [fileName, labelWidth, font]\n );\n\n return (\n <Paragraph\n variant=\"paragraph-100-medium\"\n className={cx(rootClassName)}\n ref={labelRef}\n disabled={muted}\n {...props}\n >\n <span className={cx(`${rootClassName}__start`)}>{start}</span>\n\n {separator && (\n <span className={cx(`${rootClassName}__separator`)} aria-hidden=\"true\">\n {separator.replace(/ /g, \"\\u00A0\")}\n </span>\n )}\n\n <span className={cx(`${rootClassName}__end`)}>{end}</span>\n </Paragraph>\n );\n};\n","import { jsx as o } from \"react/jsx-runtime\";\nimport { I as e } from \"../icon-DNHpBTHs.mjs\";\nconst c = {\n name: \"doc\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M4.1 2.5a.9.9 0 0 1 .9-.9h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19.9 8v13.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9v-19Zm1.8.9v17.2h12.2V8.9H14a.9.9 0 0 1-.9-.9V3.4H5.9Zm9 1.428L16.965 7.1H14.9V4.828ZM8.1 7a.9.9 0 0 1 .9-.9h1.5a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 1 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Zm0 3.5a.9.9 0 0 1 .9-.9h6a.9.9 0 0 1 0 1.8H9a.9.9 0 0 1-.9-.9Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"doc\"],\n category: \"file\"\n}, r = (a) => /* @__PURE__ */ o(e, { ...a, svg: c });\nr.displayName = \"IconDoc\";\nexport {\n r as IconDoc\n};\n//# sourceMappingURL=doc.es.js.map\n","import { jsx as l } from \"react/jsx-runtime\";\nimport { I as o } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"document-doc\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-opacity=\".84\" fill-rule=\"evenodd\" d=\"M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 0 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/><path d=\"M5.572 10.05H3.184V16h2.388c1.581 0 2.924-1.241 2.924-2.975S7.153 10.05 5.572 10.05Zm-1.24 4.981v-4.012h1.24c1.012 0 1.768.825 1.768 2.006 0 1.181-.756 2.006-1.768 2.006h-1.24Zm7.938 1.105c1.658 0 3.052-1.3 3.052-3.111 0-1.81-1.394-3.111-3.052-3.111-1.649 0-3.043 1.3-3.043 3.111 0 1.81 1.394 3.111 3.043 3.111Zm0-.969c-1.08 0-1.895-.884-1.895-2.142s.816-2.142 1.895-2.142c1.088 0 1.904.884 1.904 2.142s-.816 2.142-1.904 2.142Zm6.832.969c.927 0 1.734-.391 2.244-.977l-.773-.706a1.883 1.883 0 0 1-1.47.714c-1.089 0-1.905-.884-1.905-2.142s.816-2.142 1.904-2.142c.57 0 1.063.255 1.403.629l.756-.714c-.51-.527-1.283-.884-2.159-.884-1.657 0-3.051 1.3-3.051 3.111 0 1.81 1.394 3.111 3.051 3.111Z\"/><path fill-rule=\"evenodd\" d=\"M3.084 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H3.084V9.95Zm.1 6.05h2.388c1.581 0 2.924-1.241 2.924-2.975S7.153 10.05 5.572 10.05H3.184V16Zm1.247-4.881v3.812h1.141c.946 0 1.668-.769 1.668-1.906s-.722-1.906-1.668-1.906h-1.14Zm10.99 1.906c0 1.867-1.439 3.211-3.15 3.211-1.704 0-3.144-1.345-3.144-3.211 0-1.866 1.44-3.211 3.143-3.211 1.712 0 3.152 1.345 3.152 3.211Zm-4.946 0c0 1.213.781 2.042 1.795 2.042 1.023 0 1.804-.829 1.804-2.042 0-1.213-.78-2.042-1.804-2.042-1.014 0-1.795.829-1.795 2.042Zm11.01 2.125-.063.074c-.53.61-1.365 1.012-2.32 1.012-1.712 0-3.151-1.345-3.151-3.211 0-1.866 1.44-3.211 3.151-3.211.903 0 1.702.368 2.231.915l.07.072-.904.854-.068-.076a1.79 1.79 0 0 0-1.329-.596c-1.023 0-1.804.829-1.804 2.042 0 1.213.781 2.042 1.804 2.042.579 0 1.078-.281 1.392-.676l.067-.084.925.843Zm-.977-.62c.023-.025.044-.051.065-.077l.773.706c-.51.586-1.317.977-2.244.977-1.657 0-3.051-1.3-3.051-3.111 0-1.81 1.394-3.111 3.051-3.111a3.022 3.022 0 0 1 2.16.884l-.757.714a1.885 1.885 0 0 0-1.402-.629c-1.089 0-1.905.884-1.905 2.142s.816 2.142 1.904 2.142a1.88 1.88 0 0 0 1.406-.637Zm-16.177.501h1.241c1.012 0 1.768-.825 1.768-2.006 0-1.181-.756-2.006-1.768-2.006h-1.24v4.012Zm10.99-2.006c0 1.81-1.393 3.111-3.05 3.111-1.65 0-3.044-1.3-3.044-3.111 0-1.81 1.394-3.111 3.043-3.111 1.658 0 3.052 1.3 3.052 3.111Zm-4.946 0c0 1.258.816 2.142 1.895 2.142 1.088 0 1.904-.884 1.904-2.142s-.816-2.142-1.904-2.142c-1.08 0-1.895.884-1.895 2.142Z\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M3.084 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H3.084V9.95Zm18.402 5.2-.064.074c-.53.61-1.365 1.012-2.32 1.012-1.712 0-3.151-1.345-3.151-3.211 0-1.866 1.44-3.211 3.151-3.211a3.122 3.122 0 0 1 2.231.915l.07.072-.904.854-.068-.076a1.825 1.825 0 0 0-.049-.05 1.786 1.786 0 0 0-1.28-.546c-1.023 0-1.804.829-1.804 2.042 0 1.213.781 2.042 1.804 2.042a1.78 1.78 0 0 0 1.392-.676l.067-.084.925.843ZM2.934 9.8h2.638c1.716 0 3.174 1.35 3.174 3.225S7.288 16.25 5.572 16.25H2.934V9.8Zm18.761 5.338-.16.185c-.56.642-1.436 1.063-2.433 1.063-1.794 0-3.301-1.41-3.301-3.361 0-1.95 1.507-3.361 3.301-3.361.943 0 1.782.384 2.339.96l.176.182-1.126 1.063-.171-.189a1.64 1.64 0 0 0-1.218-.547c-.926 0-1.654.747-1.654 1.892s.728 1.892 1.654 1.892c.529 0 .986-.257 1.275-.62l.167-.209 1.151 1.05ZM4.581 11.27v3.512h.991c.848 0 1.518-.685 1.518-1.756 0-1.07-.67-1.756-1.518-1.756h-.99Zm10.99 1.756c0 1.95-1.507 3.361-3.3 3.361-1.786 0-3.294-1.411-3.294-3.361 0-1.95 1.508-3.361 3.293-3.361 1.794 0 3.302 1.41 3.302 3.361Zm-4.946 0c0 1.146.729 1.892 1.645 1.892.926 0 1.654-.747 1.654-1.892s-.728-1.892-1.654-1.892c-.916 0-1.645.746-1.645 1.892ZM4.43 11.119h1.141c.946 0 1.668.769 1.668 1.906s-.722 1.906-1.668 1.906h-1.14v-3.812Zm7.84 5.117c1.711 0 3.15-1.345 3.15-3.211 0-1.866-1.439-3.211-3.15-3.211-1.704 0-3.144 1.345-3.144 3.211 0 1.866 1.44 3.211 3.143 3.211Zm0-1.169c-1.015 0-1.796-.829-1.796-2.042 0-1.213.781-2.042 1.795-2.042 1.023 0 1.804.829 1.804 2.042 0 1.213-.78 2.042-1.804 2.042Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"document-doc\"],\n category: \"file\"\n}, m = (c) => /* @__PURE__ */ l(o, { ...c, svg: e });\nm.displayName = \"IconDocumentDoc\";\nexport {\n m as IconDocumentDoc\n};\n//# sourceMappingURL=document-doc.es.js.map\n","import { jsx as L } from \"react/jsx-runtime\";\nimport { I as e } from \"../icon-DNHpBTHs.mjs\";\nconst H = {\n name: \"document-excel\",\n svg: '<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.09123 1.59961C4.85254 1.59961 4.62362 1.69443 4.45484 1.86321C4.28606 2.032 4.19123 2.26091 4.19123 2.49961V6.99961C4.19123 7.49667 4.59418 7.89961 5.09123 7.89961C5.58829 7.89961 5.99123 7.49667 5.99123 6.99961V3.39961H13.1912V7.99961C13.1912 8.49667 13.5942 8.89961 14.0912 8.89961H19.0912C19.4475 8.89961 19.7702 8.68949 19.9143 8.36371C20.0584 8.03793 19.9968 7.6578 19.7572 7.3942L14.7572 1.8942C14.5866 1.70658 14.3448 1.59961 14.0912 1.59961H5.09123ZM17.0567 7.09961L14.9912 4.82756V7.09961H17.0567Z\"/><path d=\"M5.99123 18.9996C5.99123 18.5026 5.58829 18.0996 5.09123 18.0996C4.59418 18.0996 4.19123 18.5026 4.19123 18.9996V21.4996C4.19123 21.9967 4.59418 22.3996 5.09123 22.3996H19.0912C19.5883 22.3996 19.9912 21.9967 19.9912 21.4996V18.9996C19.9912 18.5026 19.5883 18.0996 19.0912 18.0996C18.5942 18.0996 18.1912 18.5026 18.1912 18.9996V20.5996H5.99123V18.9996Z\"/><path d=\"M5.85772 9.94957L7.25113 11.9085L8.64454 9.94957H10.2271L8.10585 12.863L10.4653 16.0996H8.88269L7.25113 13.817L5.61957 16.0996H4.03655L6.40474 12.863L4.27464 9.94957H5.85772Z\"/><path d=\"M12.2278 14.9306V9.94957H10.8803V16.0996H14.9138V14.9306H12.2278Z\"/><path d=\"M15.7846 12.6443C16.0307 12.9326 16.4176 13.159 16.9777 13.3486L17.6572 13.5865C17.9185 13.6749 18.144 13.7729 18.3022 13.897C18.4568 14.0182 18.5423 14.1594 18.5423 14.3421C18.5423 14.5514 18.4498 14.7268 18.286 14.8524C18.1203 14.9795 17.8776 15.0581 17.5798 15.0581C17.0136 15.0581 16.4832 14.7468 16.1684 14.2463L16.1118 14.1563L15.137 14.8569L15.1804 14.9347C15.6612 15.7984 16.6434 16.2271 17.5628 16.2271C18.7539 16.2271 19.8048 15.4779 19.8048 14.2996C19.8048 13.8283 19.6726 13.452 19.3893 13.1458C19.1093 12.8432 18.6893 12.6175 18.1303 12.4283L17.5103 12.216C17.2511 12.1268 17.0456 12.0416 16.9053 11.9371C16.7702 11.8365 16.7023 11.7236 16.7023 11.5711C16.7023 11.2846 16.9787 10.9911 17.5628 10.9911C18.0557 10.9911 18.4859 11.1849 18.7539 11.4923L18.8168 11.5644L19.7256 10.8395L19.6645 10.7614C19.1826 10.1456 18.3599 9.82207 17.5628 9.82207C16.4054 9.82207 15.4398 10.5544 15.4398 11.6051C15.4398 12.0089 15.5358 12.3529 15.7846 12.6443Z\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.85772 9.94957L7.25113 11.9085L8.64454 9.94957H10.2271L8.10585 12.863L10.4653 16.0996H8.88269L7.25113 13.817L5.61957 16.0996H4.03655L6.40474 12.863L4.27464 9.94957H5.85772ZM6.25606 12.863L4.03826 9.82957H5.91962L7.25113 11.7015L8.58264 9.82957H10.4629L8.25432 12.863L10.7013 16.2196H8.82096L7.25113 14.0234L5.6813 16.2196H3.80005L6.25606 12.863ZM12.3478 9.82957V14.8106H14.9959L16.1454 13.9843L16.27 14.1824C16.5648 14.6511 17.0584 14.9381 17.5798 14.9381C17.8577 14.9381 18.0728 14.8647 18.213 14.7572C18.3489 14.6529 18.4223 14.512 18.4223 14.3421C18.4223 14.2053 18.3617 14.0961 18.2282 13.9914C18.0867 13.8805 17.8773 13.7877 17.6187 13.7001L17.6176 13.6997L16.9393 13.4623C16.9391 13.4622 16.9394 13.4624 16.9393 13.4623C16.3699 13.2695 15.9594 13.0339 15.6933 12.7222C15.4213 12.4036 15.3198 12.0293 15.3198 11.6051C15.3198 10.4663 16.3633 9.70207 17.5628 9.70207C18.3883 9.70207 19.2496 10.0365 19.759 10.6875L19.8933 10.8591L18.8018 11.7299L18.6634 11.5711C18.4207 11.2928 18.0249 11.1111 17.5628 11.1111C17.0137 11.1111 16.8223 11.3783 16.8223 11.5711C16.8223 11.6772 16.8648 11.7574 16.977 11.8409C17.1008 11.9331 17.29 12.0133 17.5493 12.1025C17.5493 12.1025 17.5492 12.1025 17.5493 12.1025L18.1688 12.3147C18.1688 12.3147 18.1687 12.3147 18.1688 12.3147C18.7355 12.5065 19.1776 12.7403 19.4774 13.0643C19.7846 13.3963 19.9248 13.8033 19.9248 14.2996C19.9248 15.5662 18.7958 16.3471 17.5628 16.3471C16.6113 16.3471 15.5826 15.9038 15.0755 14.9931L15.0338 14.9181V16.2196H10.7603V9.82957H12.3478ZM18.1303 12.4283L17.5103 12.216C17.2511 12.1268 17.0456 12.0416 16.9053 11.9371C16.7702 11.8365 16.7023 11.7236 16.7023 11.5711C16.7023 11.2846 16.9787 10.9911 17.5628 10.9911C18.0557 10.9911 18.4859 11.1849 18.7539 11.4923L18.8168 11.5644L19.7256 10.8395L19.6645 10.7614C19.1826 10.1456 18.3599 9.82207 17.5628 9.82207C16.4054 9.82207 15.4398 10.5544 15.4398 11.6051C15.4398 12.0089 15.5358 12.3529 15.7846 12.6443C16.0307 12.9326 16.4176 13.159 16.9777 13.3486L17.6572 13.5865C17.9185 13.6749 18.144 13.7729 18.3022 13.897C18.4568 14.0182 18.5423 14.1594 18.5423 14.3421C18.5423 14.5514 18.4498 14.7268 18.286 14.8524C18.1203 14.9795 17.8776 15.0581 17.5798 15.0581C17.018 15.0581 16.4915 14.7517 16.1758 14.258C16.1733 14.2541 16.1709 14.2502 16.1684 14.2463L16.1118 14.1563L15.137 14.8569L15.1804 14.9347C15.6612 15.7984 16.6434 16.2271 17.5628 16.2271C18.7539 16.2271 19.8048 15.4779 19.8048 14.2996C19.8048 13.8283 19.6726 13.452 19.3893 13.1458C19.1093 12.8432 18.6893 12.6175 18.1303 12.4283ZM12.2278 14.9306V9.94957H10.8803V16.0996H14.9138V14.9306H12.2278Z\"/></svg>',\n keywords: [\"document-excel\"],\n category: \"file\"\n}, o = (C) => /* @__PURE__ */ L(e, { ...C, svg: H });\no.displayName = \"IconDocumentExcel\";\nexport {\n o as IconDocumentExcel\n};\n//# sourceMappingURL=document-excel.es.js.map\n","import { jsx as v } from \"react/jsx-runtime\";\nimport { I as c } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"document-pdf\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-opacity=\".84\" fill-rule=\"evenodd\" d=\"M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 1 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/><path d=\"M6.765 10.05H4.487V16h1.139v-2.074h1.139c1.113 0 2.048-.799 2.048-1.93 0-1.139-.935-1.946-2.048-1.946Zm-1.14 2.907v-1.938h1.03c.594 0 1.01.408 1.01.977 0 .57-.416.961-1.01.961h-1.03Zm6.488-2.907H9.725V16h2.388c1.581 0 2.924-1.241 2.924-2.975s-1.343-2.975-2.924-2.975Zm-1.24 4.981v-4.012h1.24c1.012 0 1.768.825 1.768 2.006 0 1.181-.756 2.006-1.768 2.006h-1.24Zm9.112-4.981h-3.927V16h1.148v-2.49h2.218v-.97h-2.218v-1.52h2.78v-.969Z\"/><path fill-rule=\"evenodd\" d=\"M4.387 9.95h2.378c1.161 0 2.148.845 2.148 2.046 0 1.194-.988 2.03-2.148 2.03h-1.04V16.1H4.388V9.95ZM5.626 16h-1.14v-5.95h2.279c1.113 0 2.048.807 2.048 1.946 0 1.131-.935 1.93-2.048 1.93h-1.14V16Zm.1-4.881v1.738h.928c.276 0 .503-.09.66-.24a.833.833 0 0 0 .252-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247h-.928ZM9.625 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H9.625V9.95Zm.1 6.05h2.388c1.581 0 2.924-1.241 2.924-2.975s-1.343-2.975-2.924-2.975H9.725V16Zm1.247-4.881v3.812h1.141c.946 0 1.668-.769 1.668-1.906s-.722-1.906-1.668-1.906h-1.14Zm9.113-1.169v1.169h-2.78v1.322h2.22v1.168h-2.22V16.1h-1.347V9.95h4.127ZM17.205 16h-1.147v-5.95h3.927v.969h-2.78v1.521h2.22v.97h-2.22V16Zm-11.58-3.043h1.03c.594 0 1.01-.391 1.01-.96 0-.57-.416-.978-1.01-.978h-1.03v1.938Zm5.247 2.074h1.241c1.012 0 1.768-.825 1.768-2.006 0-1.181-.756-2.006-1.768-2.006h-1.24v4.012Z\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M4.387 9.95h2.378c1.161 0 2.148.845 2.148 2.046 0 1.194-.988 2.03-2.148 2.03h-1.04V16.1H4.388V9.95Zm1.489 4.226v2.074h-1.64V9.8h2.529c1.232 0 2.298.9 2.298 2.196 0 1.29-1.068 2.18-2.298 2.18h-.89ZM9.625 9.95h2.488c1.635 0 3.024 1.285 3.024 3.075 0 1.79-1.389 3.075-3.024 3.075H9.625V9.95Zm10.46 0v1.169h-2.78v1.322h2.22v1.168h-2.22V16.1h-1.347V9.95h4.127Zm-2.63 3.81v2.49h-1.647V9.8h4.427v1.469h-2.78v1.021h2.22v1.47h-2.22ZM9.476 9.8h2.638c1.716 0 3.174 1.35 3.174 3.225s-1.458 3.225-3.174 3.225H9.475V9.8Zm-3.6 1.469v1.438h.78c.242 0 .43-.079.556-.198a.684.684 0 0 0 .205-.513.71.71 0 0 0-.207-.522.779.779 0 0 0-.555-.205h-.778Zm5.247 0v3.512h.991c.848 0 1.518-.685 1.518-1.756 0-1.07-.67-1.756-1.518-1.756h-.99Zm-5.396-.15h.928a.93.93 0 0 1 .66.247.86.86 0 0 1 .252.63c0 .26-.094.473-.251.622a.942.942 0 0 1-.66.239h-.93v-1.738Zm5.246 0h1.141c.946 0 1.668.769 1.668 1.906s-.722 1.906-1.668 1.906h-1.14v-3.812Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"document-pdf\"],\n category: \"file\"\n}, m = (h) => /* @__PURE__ */ v(c, { ...h, svg: e });\nm.displayName = \"IconDocumentPdf\";\nexport {\n m as IconDocumentPdf\n};\n//# sourceMappingURL=document-pdf.es.js.map\n","import { jsx as v } from \"react/jsx-runtime\";\nimport { I as c } from \"../icon-DNHpBTHs.mjs\";\nconst e = {\n name: \"document-ppt\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-opacity=\".84\" fill-rule=\"evenodd\" d=\"M4.364 1.864A.9.9 0 0 1 5 1.6h9a.9.9 0 0 1 .666.295l5 5.5A.9.9 0 0 1 19 8.9h-5a.9.9 0 0 1-.9-.9V3.4H5.9V7a.9.9 0 0 1-1.8 0V2.5a.9.9 0 0 1 .264-.636ZM14.9 4.828 16.965 7.1H14.9V4.828ZM5 18.1a.9.9 0 0 1 .9.9v1.6h12.2V19a.9.9 0 1 1 1.8 0v2.5a.9.9 0 0 1-.9.9H5a.9.9 0 0 1-.9-.9V19a.9.9 0 0 1 .9-.9Z\" clip-rule=\"evenodd\"/><path d=\"M7.11 10.05H4.83V16h1.14v-2.074h1.138c1.114 0 2.049-.799 2.049-1.93 0-1.139-.935-1.946-2.049-1.946Zm-1.14 2.907v-1.938H7c.595 0 1.011.408 1.011.977 0 .57-.416.961-1.011.961H5.97Zm6.377-2.907H10.07V16h1.14v-2.074h1.138c1.114 0 2.049-.799 2.049-1.93 0-1.139-.935-1.946-2.049-1.946Zm-1.139 2.907v-1.938h1.029c.595 0 1.011.408 1.011.977 0 .57-.416.961-1.011.961h-1.029Zm8.366-2.907h-4.675v.969h1.785V16h1.122v-4.981h1.768v-.969Z\"/><path fill-rule=\"evenodd\" d=\"M4.731 9.95H7.11c1.161 0 2.149.845 2.149 2.046 0 1.194-.988 2.03-2.149 2.03H6.07V16.1H4.731V9.95ZM5.971 16H4.83v-5.95h2.28c1.114 0 2.049.807 2.049 1.946 0 1.131-.935 1.93-2.049 1.93H5.97V16Zm.1-4.881v1.738h.928a.94.94 0 0 0 .66-.24.833.833 0 0 0 .251-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247H6.07ZM9.968 9.95h2.378c1.161 0 2.149.845 2.149 2.046 0 1.194-.989 2.03-2.149 2.03h-1.039V16.1H9.97V9.95ZM11.21 16h-1.14v-5.95h2.278c1.114 0 2.049.807 2.049 1.946 0 1.131-.935 1.93-2.049 1.93h-1.139V16Zm.1-4.881v1.738h.928a.94.94 0 0 0 .66-.24.833.833 0 0 0 .251-.62.86.86 0 0 0-.252-.631.928.928 0 0 0-.66-.247h-.928Zm8.365-1.169v1.169h-1.768V16.1h-1.322v-4.981H14.8V9.95h4.875ZM14.9 11.019v-.969h4.675v.969h-1.768V16h-1.122v-4.981H14.9Zm-8.93 1.938H7c.595 0 1.011-.391 1.011-.96 0-.57-.416-.978-1.011-.978H5.97v1.938Zm5.238 0h1.029c.595 0 1.011-.391 1.011-.96 0-.57-.416-.978-1.011-.978h-1.029v1.938Z\" clip-rule=\"evenodd\"/><path fill-rule=\"evenodd\" d=\"M4.731 9.95H7.11c1.161 0 2.149.845 2.149 2.046 0 1.194-.988 2.03-2.149 2.03H6.07V16.1H4.731V9.95Zm1.49 4.226v2.074H4.58V9.8h2.53c1.233 0 2.299.9 2.299 2.196 0 1.29-1.069 2.18-2.299 2.18h-.89ZM9.968 9.95h2.378c1.161 0 2.149.845 2.149 2.046 0 1.194-.989 2.03-2.149 2.03h-1.039V16.1H9.97V9.95Zm1.49 4.226v2.074h-1.64V9.8h2.528c1.232 0 2.299.9 2.299 2.196 0 1.29-1.069 2.18-2.299 2.18h-.889Zm8.215-4.226v1.169h-1.768V16.1h-1.322v-4.981h-1.785V9.95h4.875Zm-3.24 1.319h-1.785V9.8h5.175v1.469h-1.768v4.981h-1.622v-4.981Zm-10.214 0v1.438H7c.242 0 .43-.079.557-.198a.684.684 0 0 0 .204-.513.71.71 0 0 0-.206-.522.779.779 0 0 0-.555-.205h-.78Zm5.238 0v1.438h.779c.242 0 .43-.079.557-.198a.684.684 0 0 0 .204-.513.71.71 0 0 0-.207-.522.779.779 0 0 0-.554-.205h-.779Zm-5.388-.15H7c.274 0 .501.094.66.247a.86.86 0 0 1 .251.63c0 .26-.094.473-.251.622a.942.942 0 0 1-.66.239h-.93v-1.738Zm5.238 0h.929c.274 0 .5.094.659.247a.86.86 0 0 1 .252.63c0 .26-.094.473-.251.622a.941.941 0 0 1-.66.239h-.929v-1.738Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"document-ppt\"],\n category: \"file\"\n}, m = (h) => /* @__PURE__ */ v(c, { ...h, svg: e });\nm.displayName = \"IconDocumentPpt\";\nexport {\n m as IconDocumentPpt\n};\n//# sourceMappingURL=document-ppt.es.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nimport { I as o } from \"../icon-DNHpBTHs.mjs\";\nconst m = {\n name: \"image\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 25\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M1.6 4.5a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9v16a.9.9 0 0 1-.9.9h-19a.9.9 0 0 1-.9-.9v-16Zm1.8.9v14.2h17.2V5.4H3.4Zm4.1 2.5a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2ZM4.1 9.5a3.4 3.4 0 1 1 6.8 0 3.4 3.4 0 0 1-6.8 0Zm11.264.864a.9.9 0 0 1 1.272 0l3 3a.9.9 0 1 1-1.272 1.272L16 12.273l-5.364 5.363a.9.9 0 0 1-1.272 0L8 16.273l-2.364 2.363a.9.9 0 1 1-1.272-1.272l3-3a.9.9 0 0 1 1.272 0L10 15.727l5.364-5.363Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"image\"],\n category: \"media\"\n}, l = (a) => /* @__PURE__ */ e(o, { ...a, svg: m });\nl.displayName = \"IconImage\";\nexport {\n l as IconImage\n};\n//# sourceMappingURL=image.es.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nimport { I as v } from \"../icon-DNHpBTHs.mjs\";\nconst a = {\n name: \"video\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 25\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M1.6 6a.9.9 0 0 1 .9-.9h19a.9.9 0 0 1 .9.9v14a.9.9 0 0 1-.9.9h-19a.9.9 0 0 1-.9-.9V6Zm1.8.9v12.2h17.2V6.9H3.4Zm6.167 1.811a.9.9 0 0 1 .916.03l5.5 3.5a.9.9 0 0 1 0 1.518l-5.5 3.5A.9.9 0 0 1 9.1 16.5v-7a.9.9 0 0 1 .467-.789ZM10.9 11.14v3.722L13.824 13 10.9 11.14Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"video\"],\n category: \"media\"\n}, d = (o) => /* @__PURE__ */ e(v, { ...o, svg: a });\nd.displayName = \"IconVideo\";\nexport {\n d as IconVideo\n};\n//# sourceMappingURL=video.es.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nimport { I as l } from \"../icon-DNHpBTHs.mjs\";\nconst a = {\n name: \"volume\",\n svg: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M12.864 3.177A.9.9 0 0 1 13.4 4v16a.9.9 0 0 1-1.505.666L6.652 15.9H4A1.9 1.9 0 0 1 2.1 14v-4c0-1.05.85-1.9 1.9-1.9h2.652l5.243-4.766a.9.9 0 0 1 .97-.157ZM11.6 6.034 7.605 9.666A.9.9 0 0 1 7 9.9H4a.1.1 0 0 0-.1.1v4a.1.1 0 0 0 .1.1h3a.9.9 0 0 1 .605.234l3.995 3.631V6.035Zm6.835-1.741a.9.9 0 0 1 1.273 0c4.256 4.256 4.256 11.158 0 15.414a.9.9 0 1 1-1.273-1.272 9.1 9.1 0 0 0 0-12.87.9.9 0 0 1 0-1.272Zm-3.071 3.07a.9.9 0 0 1 1.272 0 6.557 6.557 0 0 1 0 9.273.9.9 0 1 1-1.272-1.272 4.757 4.757 0 0 0 0-6.728.9.9 0 0 1 0-1.272Z\" clip-rule=\"evenodd\"/></svg>',\n keywords: [\"volume\"],\n category: \"action\"\n}, m = (o) => /* @__PURE__ */ e(l, { ...o, svg: a });\nm.displayName = \"IconVolume\";\nexport {\n m as IconVolume\n};\n//# sourceMappingURL=volume.es.js.map\n","import React from \"react\";\nimport { IconDoc } from \"@purpur/icon/doc\";\nimport { IconDocumentDoc } from \"@purpur/icon/document-doc\";\nimport { IconDocumentExcel } from \"@purpur/icon/document-excel\";\nimport { IconDocumentPdf } from \"@purpur/icon/document-pdf\";\nimport { IconDocumentPpt } from \"@purpur/icon/document-ppt\";\nimport { IconImage } from \"@purpur/icon/image\";\nimport { IconVideo } from \"@purpur/icon/video\";\nimport { IconVolume } from \"@purpur/icon/volume\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload-icon.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload-icon\";\n\ntype Props = {\n filetype: string;\n muted?: boolean;\n};\n\nexport const FileUploadIcon = ({ filetype, muted }: Props) => {\n const props = {\n size: \"sm\",\n className: cx(rootClassName, { [`${rootClassName}--muted`]: muted }),\n } as const;\n\n if (filetype.startsWith(\"image/\")) {\n return <IconImage {...props} />;\n }\n if (filetype.startsWith(\"video/\")) {\n return <IconVideo {...props} />;\n }\n if (filetype.startsWith(\"audio/\")) {\n return <IconVolume {...props} />;\n }\n if (filetype.includes(\"powerpoint\") || filetype.includes(\"presentationml\")) {\n return <IconDocumentPpt {...props} />;\n }\n if (\n filetype.includes(\"msword\") ||\n filetype.includes(\"ms-word\") ||\n filetype.includes(\"wordprocessingml\")\n ) {\n return <IconDocumentDoc {...props} />;\n }\n if (filetype.includes(\"excel\") || filetype.includes(\"spreadsheetml\")) {\n return <IconDocumentExcel {...props} />;\n }\n if (filetype === \"application/pdf\") {\n return <IconDocumentPdf {...props} />;\n }\n return <IconDoc {...props} />;\n};\n","const isSameFile = (a: File, b: File) =>\n a.name === b.name && a.size === b.size && a.lastModified === b.lastModified;\n\n// Merges new files into the existing list, replacing rather than duplicating files that match an existing one.\nexport const mergeFiles = (existingFiles: File[], newFiles: File[]) => {\n const merged = [...existingFiles];\n\n newFiles.forEach((file) => {\n const existingIndex = merged.findIndex((existingFile) => isSameFile(existingFile, file));\n\n if (existingIndex === -1) {\n merged.push(file);\n } else {\n merged[existingIndex] = file;\n }\n });\n\n return merged;\n};\n\nconst isFileTypeAccepted = (file: File, acceptedFileTypes: string[]) => {\n return acceptedFileTypes.some((type) => {\n if (type.startsWith(\".\")) {\n return file.name.toLowerCase().endsWith(type.toLowerCase());\n }\n\n if (type.endsWith(\"/*\")) {\n return file.type.startsWith(type.slice(0, -1));\n }\n\n return file.type === type;\n });\n};\n\nexport const getAcceptedFiles = (\n files: FileList | File[] | null | undefined,\n maxFileSizeBytes?: number,\n acceptedFileTypes?: string[]\n) => {\n if (!files) {\n return { acceptedFiles: [], hasOversizedFiles: false, hasInvalidFileType: false };\n }\n\n const allFiles = Array.from(files);\n const sizeAcceptedFiles = maxFileSizeBytes\n ? allFiles.filter((file) => file.size <= maxFileSizeBytes)\n : allFiles;\n\n const acceptedFiles =\n acceptedFileTypes && acceptedFileTypes.length > 0\n ? sizeAcceptedFiles.filter((file) => isFileTypeAccepted(file, acceptedFileTypes))\n : sizeAcceptedFiles;\n\n return {\n acceptedFiles,\n hasOversizedFiles: sizeAcceptedFiles.length !== allFiles.length,\n hasInvalidFileType: acceptedFiles.length !== sizeAcceptedFiles.length,\n };\n};\n","import React, { forwardRef, useId, useState } from \"react\";\nimport { Button } from \"@purpur/button\";\nimport { FieldErrorText } from \"@purpur/field-error-text\";\nimport { FieldHelperText } from \"@purpur/field-helper-text\";\nimport { Heading } from \"@purpur/heading\";\nimport { IconRemove } from \"@purpur/icon/remove\";\nimport { Spinner } from \"@purpur/spinner\";\nimport { Tooltip } from \"@purpur/tooltip\";\nimport { VisuallyHidden } from \"@purpur/visually-hidden\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./file-upload.module.scss\";\nimport { FileUploadButton } from \"./file-upload-button\";\nimport { FileUploadDragAndDrop } from \"./file-upload-drag-and-drop\";\nimport { FileNameLabel } from \"./file-upload-file-name-label\";\nimport { FileUploadIcon } from \"./file-upload-icon\";\nimport type { FileUploadProps } from \"./file-upload-types\";\nimport { getAcceptedFiles, mergeFiles } from \"./file-upload-utils\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-file-upload\";\n\nexport const FileUpload = forwardRef<HTMLDivElement, FileUploadProps>(\n (\n {\n acceptedFileTypes,\n acceptedFileTypesErrorText,\n backgroundColor = \"primary\",\n buttonLabel,\n disabled = false,\n dragAndDrop = false,\n dragAndDropLabel,\n errorText,\n helperText,\n label,\n labelTag = \"h2\",\n maxFiles,\n maxFilesErrorText,\n maxFileSizeBytes,\n maxFileSizeErrorText,\n removeFileButtonLabel,\n tooltipText,\n useMediaQueries = false,\n variant = \"attach\",\n ...uploadProps\n },\n ref\n ) => {\n const labelId = useId();\n const helperTextId = useId();\n const errorTextId = useId();\n const [files, setFiles] = useState<File[]>([]);\n const [maxFilesExceeded, setMaxFilesExceeded] = useState(false);\n const [maxFileSizeExceeded, setMaxFileSizeExceeded] = useState(false);\n const [invalidFileType, setInvalidFileType] = useState(false);\n const isFileUploading = \"onFileSelect\" in uploadProps ? uploadProps.isUploading : undefined;\n const uploadingText = \"onFileSelect\" in uploadProps ? uploadProps.uploadingText : undefined;\n const isFileRemoving = \"onFileSelect\" in uploadProps ? uploadProps.isRemoving : undefined;\n const removingText = \"onFileSelect\" in uploadProps ? uploadProps.removingText : undefined;\n\n const handleFilesChange = (nextFiles: FileList | File[] | null | undefined) => {\n if (disabled) {\n return;\n }\n\n const { acceptedFiles, hasOversizedFiles, hasInvalidFileType } = getAcceptedFiles(\n nextFiles,\n maxFileSizeBytes,\n acceptedFileTypes\n );\n setMaxFileSizeExceeded(hasOversizedFiles);\n setInvalidFileType(hasInvalidFileType);\n\n const combinedFiles = mergeFiles(files, acceptedFiles);\n\n if (maxFiles && combinedFiles.length > maxFiles) {\n setMaxFilesExceeded(true);\n return;\n }\n\n setMaxFilesExceeded(false);\n setFiles(combinedFiles);\n\n if (\"onFileSelect\" in uploadProps) {\n acceptedFiles.forEach((file) => {\n Promise.resolve(uploadProps.onFileSelect(file)).then((accepted) => {\n if (!accepted) {\n setFiles((currentFiles) =>\n currentFiles.filter((currentFile) => currentFile !== file)\n );\n }\n });\n });\n }\n };\n\n const handleRemoveFile = (file: File) => {\n if (disabled) {\n return;\n }\n\n if (\"onFileSelect\" in uploadProps) {\n Promise.resolve(uploadProps.onFileRemove(file)).then((removed) => {\n if (!removed) {\n return;\n }\n\n setFiles((currentFiles) => currentFiles.filter((currentFile) => currentFile !== file));\n setMaxFilesExceeded(false);\n setMaxFileSizeExceeded(false);\n setInvalidFileType(false);\n });\n return;\n }\n\n setFiles((currentFiles) => currentFiles.filter((currentFile) => currentFile !== file));\n setMaxFilesExceeded(false);\n setMaxFileSizeExceeded(false);\n setInvalidFileType(false);\n };\n\n const button = (\n <FileUploadButton\n accept={acceptedFileTypes?.join(\",\")}\n disabled={disabled}\n files={files}\n interactive={!dragAndDrop}\n multiple={maxFiles !== 1}\n onFilesChange={handleFilesChange}\n useMediaQueries={useMediaQueries}\n variant={variant}\n >\n {buttonLabel}\n </FileUploadButton>\n );\n\n const errorContent = maxFilesExceeded\n ? maxFilesErrorText\n : maxFileSizeExceeded\n ? maxFileSizeErrorText\n : invalidFileType\n ? acceptedFileTypesErrorText\n : errorText;\n\n return (\n <div\n ref={ref}\n className={cx(rootClassName)}\n role=\"group\"\n aria-labelledby={label ? labelId : undefined}\n >\n <div className={cx(`${rootClassName}__content`)}>\n {label && (\n <Heading\n tag={labelTag}\n variant=\"subsection-100\"\n id={labelId}\n className={cx(`${rootClassName}__label`, {\n [`${rootClassName}__label--disabled`]: disabled,\n })}\n >\n {label}\n </Heading>\n )}\n {dragAndDrop ? (\n <FileUploadDragAndDrop\n backgroundColor={backgroundColor}\n disabled={disabled}\n dragAndDropLabel={dragAndDropLabel}\n onFilesChange={handleFilesChange}\n variant={variant}\n >\n {button}\n </FileUploadDragAndDrop>\n ) : (\n button\n )}\n {(helperText !== undefined || errorContent) && (\n <div className={cx(`${rootClassName}__messages`)}>\n {helperText !== undefined && (\n <div className={cx(`${rootClassName}__helper-text-row`)}>\n {helperText && <FieldHelperText id={helperTextId}>{helperText}</FieldHelperText>}\n {tooltipText && (\n <Tooltip buttonSize=\"xs\" iconSize=\"xs\" triggerAriaLabel={tooltipText}>\n {tooltipText}\n </Tooltip>\n )}\n </div>\n )}\n {errorContent && <FieldErrorText id={errorTextId}>{errorContent}</FieldErrorText>}\n </div>\n )}\n </div>\n {files.length > 0 && (\n <ul className={cx(`${rootClassName}__files`)}>\n {files.map((file, index) => {\n const isBusy = isFileUploading?.(file) || isFileRemoving?.(file);\n const busyText = isFileUploading?.(file) ? uploadingText : removingText;\n const muted = isBusy || disabled;\n\n return (\n <li\n key={`${file.name}-${index}`}\n className={cx(\n `${rootClassName}__file`,\n `${rootClassName}__file--${backgroundColor}`,\n {\n [`${rootClassName}__file--disabled`]: disabled,\n }\n )}\n >\n <FileUploadIcon filetype={file.type} muted={muted} />\n <FileNameLabel fileName={file.name} muted={muted} />\n {isBusy ? (\n <span className={cx(`${rootClassName}__spinner`)}>\n <Spinner size=\"xxs\" aria-hidden=\"true\" disabled />\n <VisuallyHidden aria-live=\"polite\">{`${busyText} ${file.name}`}</VisuallyHidden>\n </span>\n ) : (\n <Button\n iconOnly\n variant=\"text\"\n aria-label={`${removeFileButtonLabel} ${file.name}`}\n onClick={() => handleRemoveFile(file)}\n className={cx(`${rootClassName}__remove-button`)}\n disabled={disabled}\n >\n <IconRemove size=\"xs\" />\n </Button>\n )}\n </li>\n );\n })}\n </ul>\n )}\n </div>\n );\n }\n);\n\nFileUpload.displayName = \"FileUpload\";\n\nexport type { FileUploadProps };\nexport type {\n FileUploadAttachProps,\n FileUploadUploadProps,\n FileUploadWithAcceptedFileTypesProps,\n FileUploadWithDndProps,\n FileUploadWithMaxFileSizeProps,\n FileUploadWithMaxFilesProps,\n FileUploadWithoutAcceptedFileTypesProps,\n FileUploadWithoutDndProps,\n FileUploadWithoutMaxFileSizeProps,\n FileUploadWithoutMaxFilesProps,\n FileUploadWithoutTooltipProps,\n FileUploadWithTooltipProps,\n} from \"./file-upload-types\";\n"],"names":["v","r","o","a","e","l","t","cx","c","styles","rootClassName","FileUploadButton","accept","children","disabled","files","interactive","multiple","onFilesChange","useMediaQueries","variant","inputId","useId","inputRef","useRef","buttonRef","icon","jsx","IconAttachment","IconUpload","useEffect","dataTransfer","file","responsiveWidthClasses","jsxs","Fragment","Button","u","n","i","s","m","d","f","g","h","S","x","b","y","w","p","FileUploadDragAndDrop","backgroundColor","dragAndDropLabel","dragAndDropId","dragDepthRef","isDragOver","setIsDragOver","useState","setNodeRef","useDroppable","isFileDragEvent","event","resetDragState","handleDragEnter","handleDragOver","handleDragLeave","handleDrop","DndContext","IllustrativeIconDocumentAttachDuocolorStatic","IllustrativeIconDocumentUploadDuocolorStatic","Paragraph","END_PART_WIDTH_RATIO","MIN_END_PART_CHAR_LENGTH","MAX_END_PART_CHAR_LENGTH","MIN_START_CHAR_LENGTH","FIRST_EXTENSION_DOT_MIN_INDEX","splitFileName","fileName","lastDotIndex","hasExtension","getTextWidth","text","font","context","extractBoundaryWhitespace","start","end","trailingWhitespace","leadingWhitespace","separator","getFileNameParts","labelWidth","baseName","extension","maxEndPartWidth","maxStartTrimLength","maxAllowedEndPartLength","bestEndPartLength","endPartLength","endPart","FileNameLabel","muted","props","labelRef","setLabelWidth","setFont","useLayoutEffect","labelElement","updateMeasurements","computedStyle","resizeObserver","useMemo","H","C","L","FileUploadIcon","filetype","IconImage","IconVideo","IconVolume","IconDocumentPpt","IconDocumentDoc","IconDocumentExcel","IconDocumentPdf","IconDoc","isSameFile","mergeFiles","existingFiles","newFiles","merged","existingIndex","existingFile","isFileTypeAccepted","acceptedFileTypes","type","getAcceptedFiles","maxFileSizeBytes","allFiles","sizeAcceptedFiles","acceptedFiles","FileUpload","forwardRef","acceptedFileTypesErrorText","buttonLabel","dragAndDrop","errorText","helperText","label","labelTag","maxFiles","maxFilesErrorText","maxFileSizeErrorText","removeFileButtonLabel","tooltipText","uploadProps","ref","labelId","helperTextId","errorTextId","setFiles","maxFilesExceeded","setMaxFilesExceeded","maxFileSizeExceeded","setMaxFileSizeExceeded","invalidFileType","setInvalidFileType","isFileUploading","uploadingText","isFileRemoving","removingText","handleFilesChange","nextFiles","hasOversizedFiles","hasInvalidFileType","combinedFiles","accepted","currentFiles","currentFile","handleRemoveFile","removed","button","errorContent","Heading","FieldHelperText","Tooltip","FieldErrorText","index","isBusy","busyText","Spinner","VisuallyHidden","IconRemove"],"mappings":"8eAEMA,GAAI,CACR,KAAM,SACN,IAAK,ofACL,SAAU,CAAC,QAAQ,EACnB,SAAU,QACZ,EAAGC,GAAKC,GAAsBC,MAAEC,EAAAA,EAAG,CAAE,GAAGF,EAAG,IAAKF,GAAG,EACnDC,GAAE,YAAc,w5BCNVG,GAAI,CACR,KAAM,aACN,IAAK,0mBACL,SAAU,CAAC,YAAY,EACvB,SAAU,QACZ,EAAGC,GAAKC,GAAsBH,MAAED,EAAAA,EAAG,CAAE,GAAGI,EAAG,IAAKF,GAAG,EACnDC,GAAE,YAAc,iBCNhB,MAAMD,GAAI,CACR,KAAM,SACN,IAAK,0XACL,SAAU,CAAC,QAAQ,EACnB,SAAU,QACZ,EAAGH,GAAKC,GAAsBC,MAAEE,EAAAA,EAAG,CAAE,GAAGH,EAAG,IAAKE,GAAG,EACnDH,GAAE,YAAc,8pDCCVM,EAAKC,EAAAA,EAAE,KAAKC,EAAM,EAClBC,EAAgB,4BAoBTC,GAAmB,CAAC,CAC/B,OAAAC,EACA,SAAAC,EACA,SAAAC,EAAW,GACX,MAAAC,EACA,YAAAC,EAAc,GACd,SAAAC,EACA,cAAAC,EACA,gBAAAC,EAAkB,GAClB,QAAAC,CACF,IAAa,CACX,MAAMC,EAAUC,EAAAA,MAAA,EACVC,EAAWC,EAAAA,OAAyB,IAAI,EACxCC,EAAYD,EAAAA,OAA0B,IAAI,EAE1CE,EAAON,IAAY,SAAWO,EAAAA,IAACC,GAAA,CAAe,KAAK,IAAA,CAAK,EAAKD,EAAAA,IAACE,GAAA,CAAW,KAAK,IAAA,CAAK,EAIzFC,EAAAA,UAAU,IAAM,CAEd,GAAI,CAACP,EAAS,SAAW,OAAO,aAAiB,IAC/C,OAGF,MAAMQ,EAAe,IAAI,aACzBhB,EAAM,QAASiB,GAASD,EAAa,MAAM,IAAIC,CAAI,CAAC,EACpDT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AA,CAAG,CAAA,CAAA,CACjE,EAEAL,EAAAA,IAACS,GAAAA,OAAA,CACC,SAAQ,GACR,QAAQ,OACR,aAAY,GAAGsH,CAAqB,IAAI1H,EAAK,IAAI,GACjD,QAAS,IAAMoJ,GAAiBpJ,CAAI,EACpC,UAAWzB,EAAG,GAAGG,CAAa,iBAAiB,EAC/C,SAAAI,EAEA,SAAAa,EAAAA,IAACsK,GAAA,CAAW,KAAK,IAAA,CAAK,CAAA,CAAA,CACxB,CAAA,EA1BG,GAAGjK,EAAK,IAAI,IAAI4J,CAAK,EAAA,CA8BhC,CAAC,CAAA,CACH,CAAA,CAAA,CAAA,CAIR,CACF,EAEA9C,GAAW,YAAc"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./file-upload-MvNuX4ks.js");exports.FileUpload=e.FileUpload;
2
+ //# sourceMappingURL=file-upload.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { F as e } from "./file-upload-Ctw6LCTU.mjs";
2
+ export {
3
+ e as FileUpload
4
+ };
5
+ //# sourceMappingURL=file-upload.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1340,24 +1340,24 @@ const Ie = (t) => {
1340
1340
  };
1341
1341
  };
1342
1342
  export {
1343
- Y as a,
1344
- N as b,
1345
- bt as c,
1346
- Z as d,
1347
- U as e,
1348
- H as f,
1343
+ Qe as a,
1344
+ tn as b,
1345
+ Ye as c,
1346
+ Y as d,
1347
+ N as e,
1348
+ Je as f,
1349
1349
  nt as g,
1350
- Bt as h,
1350
+ Ze as h,
1351
1351
  St as i,
1352
- tt as j,
1353
- Ye as k,
1354
- Je as l,
1355
- Ge as m,
1356
- Qe as n,
1352
+ bt as j,
1353
+ Z as k,
1354
+ Ge as l,
1355
+ U as m,
1356
+ H as n,
1357
1357
  Ue as o,
1358
- tn as p,
1359
- Ze as q,
1358
+ Bt as p,
1359
+ tt as q,
1360
1360
  Ke as s,
1361
1361
  qe as u
1362
1362
  };
1363
- //# sourceMappingURL=floating-ui.react-dom-EredA301.mjs.map
1363
+ //# sourceMappingURL=floating-ui.react-dom-1kwKo24Z.mjs.map