@adyen/bento-vue3 1.55.1 → 1.56.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 (227) hide show
  1. package/dist/@types/index.d.ts +844 -289
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/code-snippet.css +1 -1
  11. package/dist/assets/dashed-underline.css +1 -1
  12. package/dist/assets/data-grid-template.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/file-uploader.css +1 -1
  16. package/dist/assets/filter-bar.css +1 -1
  17. package/dist/assets/input-field-password.css +1 -1
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/menu.css +1 -1
  20. package/dist/assets/modal-fullscreen.css +1 -1
  21. package/dist/assets/popover.css +1 -1
  22. package/dist/assets/sidepanel.css +1 -1
  23. package/dist/assets/summary-grid.css +1 -1
  24. package/dist/assets/tabs.css +1 -1
  25. package/dist/assets/teleport.css +1 -1
  26. package/dist/assets/timeline-item.css +1 -1
  27. package/dist/button.js +3 -3
  28. package/dist/card.js +1 -1
  29. package/dist/checkbox.js +2 -2
  30. package/dist/chip.js +1 -1
  31. package/dist/chunks/{accordion-item.DLyCF015.js → accordion-item.CihL7JaZ.js} +2 -2
  32. package/dist/chunks/{accordion-item.DLyCF015.js.map → accordion-item.CihL7JaZ.js.map} +1 -1
  33. package/dist/chunks/{action-bar.CDOaDenE.js → action-bar.CD5FQjE9.js} +6 -6
  34. package/dist/chunks/{action-bar.CDOaDenE.js.map → action-bar.CD5FQjE9.js.map} +1 -1
  35. package/dist/chunks/{alert.4SefwHLO.js → alert.CFb4Sejw.js} +3 -3
  36. package/dist/chunks/{alert.4SefwHLO.js.map → alert.CFb4Sejw.js.map} +1 -1
  37. package/dist/chunks/{base-modal.DZy1WuJs.js → base-modal.qhldLovE.js} +5 -5
  38. package/dist/chunks/{base-modal.DZy1WuJs.js.map → base-modal.qhldLovE.js.map} +1 -1
  39. package/dist/chunks/{button-actions-with-menu.DQRTu42W.js → button-actions-with-menu.CxB1fVvx.js} +4 -4
  40. package/dist/chunks/{button-actions-with-menu.DQRTu42W.js.map → button-actions-with-menu.CxB1fVvx.js.map} +1 -1
  41. package/dist/chunks/{button-actions.N99QthUv.js → button-actions.ODJKaCW7.js} +3 -3
  42. package/dist/chunks/{button-actions.N99QthUv.js.map → button-actions.ODJKaCW7.js.map} +1 -1
  43. package/dist/chunks/{button.DEVuqLVT.js → button.BHZgsGkp.js} +43 -41
  44. package/dist/chunks/button.BHZgsGkp.js.map +1 -0
  45. package/dist/chunks/{calendar.CNt90BvO.js → calendar.Dymq4e0Y.js} +4 -4
  46. package/dist/chunks/{calendar.CNt90BvO.js.map → calendar.Dymq4e0Y.js.map} +1 -1
  47. package/dist/chunks/{card.E2xhS_6Z.js → card.DQ6g6hqK.js} +3 -3
  48. package/dist/chunks/{card.E2xhS_6Z.js.map → card.DQ6g6hqK.js.map} +1 -1
  49. package/dist/chunks/{checkbox-group.BMzsgOeI.js → checkbox-group.DFmUrvgx.js} +4 -4
  50. package/dist/chunks/{checkbox-group.BMzsgOeI.js.map → checkbox-group.DFmUrvgx.js.map} +1 -1
  51. package/dist/chunks/{checkbox.BIaD03Bg.js → checkbox.Bti_jnp2.js} +17 -17
  52. package/dist/chunks/{checkbox.BIaD03Bg.js.map → checkbox.Bti_jnp2.js.map} +1 -1
  53. package/dist/chunks/{chip.3T0x6FuI.js → chip.DbhxDQiT.js} +2 -2
  54. package/dist/chunks/{chip.3T0x6FuI.js.map → chip.DbhxDQiT.js.map} +1 -1
  55. package/dist/chunks/code-snippet.Df5XwyWD.js +334 -0
  56. package/dist/chunks/code-snippet.Df5XwyWD.js.map +1 -0
  57. package/dist/chunks/{controls-group.DJqvAWte.js → controls-group.DgrzEh4C.js} +2 -2
  58. package/dist/chunks/{controls-group.DJqvAWte.js.map → controls-group.DgrzEh4C.js.map} +1 -1
  59. package/dist/chunks/{copy.MId-I684.js → copy.CfFh4b_c.js} +3 -3
  60. package/dist/chunks/{copy.MId-I684.js.map → copy.CfFh4b_c.js.map} +1 -1
  61. package/dist/chunks/{country.D0WFfaql.js → country.BhAcCmRx.js} +2 -2
  62. package/dist/chunks/{country.D0WFfaql.js.map → country.BhAcCmRx.js.map} +1 -1
  63. package/dist/chunks/{dashboard-section.CrbSjoA8.js → dashboard-section.tza4iYcv.js} +3 -3
  64. package/dist/chunks/{dashboard-section.CrbSjoA8.js.map → dashboard-section.tza4iYcv.js.map} +1 -1
  65. package/dist/chunks/dashed-underline.B2cIJkg_.js +98 -0
  66. package/dist/chunks/dashed-underline.B2cIJkg_.js.map +1 -0
  67. package/dist/chunks/data-grid-template.PGPytWvk.js +111 -0
  68. package/dist/chunks/data-grid-template.PGPytWvk.js.map +1 -0
  69. package/dist/chunks/{data-grid.CsyayKK3.js → data-grid.DsZQ-F9m.js} +1328 -1299
  70. package/dist/chunks/data-grid.DsZQ-F9m.js.map +1 -0
  71. package/dist/chunks/{date-picker.CjwoOQ3B.js → date-picker.8jgg3MJm.js} +7 -7
  72. package/dist/chunks/{date-picker.CjwoOQ3B.js.map → date-picker.8jgg3MJm.js.map} +1 -1
  73. package/dist/chunks/{date-range-picker.DGY91Rwc.js → date-range-picker.uGwtO7SA.js} +10 -10
  74. package/dist/chunks/{date-range-picker.DGY91Rwc.js.map → date-range-picker.uGwtO7SA.js.map} +1 -1
  75. package/dist/chunks/{date.DoJuTLhO.js → date.CKXySBQv.js} +2 -2
  76. package/dist/chunks/{date.DoJuTLhO.js.map → date.CKXySBQv.js.map} +1 -1
  77. package/dist/chunks/{dialog-page.BRlAYf5w.js → dialog-page.MLFdqTcL.js} +3 -3
  78. package/dist/chunks/{dialog-page.BRlAYf5w.js.map → dialog-page.MLFdqTcL.js.map} +1 -1
  79. package/dist/chunks/{dropdown-default-textbox.CTyt2klK.js → dropdown-default-textbox.BNhy-QDH.js} +2 -2
  80. package/dist/chunks/{dropdown-default-textbox.CTyt2klK.js.map → dropdown-default-textbox.BNhy-QDH.js.map} +1 -1
  81. package/dist/chunks/{dropdown-tag.CJtSH5cZ.js → dropdown-tag.DEAOevYN.js} +3 -3
  82. package/dist/chunks/{dropdown-tag.CJtSH5cZ.js.map → dropdown-tag.DEAOevYN.js.map} +1 -1
  83. package/dist/chunks/{dropdown.CQvyjn6d.js → dropdown.CVa4_qCe.js} +6 -6
  84. package/dist/chunks/{dropdown.CQvyjn6d.js.map → dropdown.CVa4_qCe.js.map} +1 -1
  85. package/dist/chunks/{empty-state.m0U14LVw.js → empty-state.DiXLZmQJ.js} +2 -2
  86. package/dist/chunks/{empty-state.m0U14LVw.js.map → empty-state.DiXLZmQJ.js.map} +1 -1
  87. package/dist/chunks/{error-message.CMgsMDny.js → error-message.CPw3y44N.js} +2 -2
  88. package/dist/chunks/{error-message.CMgsMDny.js.map → error-message.CPw3y44N.js.map} +1 -1
  89. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  90. package/dist/chunks/{file-uploader.D3KUe-MO.js → file-uploader.Dv4sh1IO.js} +477 -452
  91. package/dist/chunks/file-uploader.Dv4sh1IO.js.map +1 -0
  92. package/dist/chunks/filter-bar.DfIcZ5dX.js +2886 -0
  93. package/dist/chunks/filter-bar.DfIcZ5dX.js.map +1 -0
  94. package/dist/chunks/{fixed-scroller.BNP4SR5J.js → fixed-scroller.DsTyshyt.js} +3 -3
  95. package/dist/chunks/{fixed-scroller.BNP4SR5J.js.map → fixed-scroller.DsTyshyt.js.map} +1 -1
  96. package/dist/chunks/{footer-actions.DmGDpPBW.js → footer-actions.C00o4tuW.js} +3 -3
  97. package/dist/chunks/{footer-actions.DmGDpPBW.js.map → footer-actions.C00o4tuW.js.map} +1 -1
  98. package/dist/chunks/{form-layout-title.P5ajTo4C.js → form-layout-title.dcT8eXwc.js} +2 -2
  99. package/dist/chunks/{form-layout-title.P5ajTo4C.js.map → form-layout-title.dcT8eXwc.js.map} +1 -1
  100. package/dist/chunks/{header-with-views.BJIQZVAq.js → header-with-views.DEn9HFkT.js} +14 -14
  101. package/dist/chunks/{header-with-views.BJIQZVAq.js.map → header-with-views.DEn9HFkT.js.map} +1 -1
  102. package/dist/chunks/{header.vHSsdURt.js → header.hDkWwQuQ.js} +5 -5
  103. package/dist/chunks/{header.vHSsdURt.js.map → header.hDkWwQuQ.js.map} +1 -1
  104. package/dist/chunks/{i18n.D9azDLPe.js → i18n.B6g5VX0q.js} +1050 -1020
  105. package/dist/chunks/i18n.B6g5VX0q.js.map +1 -0
  106. package/dist/chunks/{info-icon-with-popover.CXaaxjeT.js → info-icon-with-popover.COJrCw_o.js} +3 -3
  107. package/dist/chunks/{info-icon-with-popover.CXaaxjeT.js.map → info-icon-with-popover.COJrCw_o.js.map} +1 -1
  108. package/dist/chunks/{input-field-password.CWr26esx.js → input-field-password._CliYJ7N.js} +86 -81
  109. package/dist/chunks/{input-field-password.CWr26esx.js.map → input-field-password._CliYJ7N.js.map} +1 -1
  110. package/dist/chunks/{input-field-phone-number.zf8WxBCn.js → input-field-phone-number.WPcQbE3z.js} +4 -4
  111. package/dist/chunks/{input-field-phone-number.zf8WxBCn.js.map → input-field-phone-number.WPcQbE3z.js.map} +1 -1
  112. package/dist/chunks/{input-field.CR262X1w.js → input-field.Cr1r2STY.js} +4 -4
  113. package/dist/chunks/{input-field.CR262X1w.js.map → input-field.Cr1r2STY.js.map} +1 -1
  114. package/dist/chunks/{inspector.types.YK45k4D_.js → inspector.types.D5QBC3-G.js} +3 -3
  115. package/dist/chunks/{inspector.types.YK45k4D_.js.map → inspector.types.D5QBC3-G.js.map} +1 -1
  116. package/dist/chunks/{menu.CVMSGvtb.js → menu.B0q9q97N.js} +17 -16
  117. package/dist/chunks/{menu.CVMSGvtb.js.map → menu.B0q9q97N.js.map} +1 -1
  118. package/dist/chunks/{modal-fullscreen.Cqlf6PWo.js → modal-fullscreen.BgqNc9jE.js} +5 -5
  119. package/dist/chunks/{modal-fullscreen.Cqlf6PWo.js.map → modal-fullscreen.BgqNc9jE.js.map} +1 -1
  120. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.dXxru4S9.js → modal.vue_vue_type_script_setup_true_lang.Dr847POU.js} +6 -6
  121. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.dXxru4S9.js.map → modal.vue_vue_type_script_setup_true_lang.Dr847POU.js.map} +1 -1
  122. package/dist/chunks/{pagination.C65tc-nX.js → pagination.Bi5BwIWq.js} +4 -4
  123. package/dist/chunks/{pagination.C65tc-nX.js.map → pagination.Bi5BwIWq.js.map} +1 -1
  124. package/dist/chunks/{popover.DjbACET6.js → popover.R5OM_tFu.js} +3 -3
  125. package/dist/chunks/{popover.DjbACET6.js.map → popover.R5OM_tFu.js.map} +1 -1
  126. package/dist/chunks/{promo-banner.ZCfJQh-S.js → promo-banner.DFt2dVxk.js} +3 -3
  127. package/dist/chunks/{promo-banner.ZCfJQh-S.js.map → promo-banner.DFt2dVxk.js.map} +1 -1
  128. package/dist/chunks/{radio-group.Tgf3BF5X.js → radio-group.muZVaVEm.js} +3 -3
  129. package/dist/chunks/{radio-group.Tgf3BF5X.js.map → radio-group.muZVaVEm.js.map} +1 -1
  130. package/dist/chunks/{search-bar.CTn5DIQZ.js → search-bar.DlVK3bBQ.js} +4 -4
  131. package/dist/chunks/{search-bar.CTn5DIQZ.js.map → search-bar.DlVK3bBQ.js.map} +1 -1
  132. package/dist/chunks/{secondary-nav.CnE-aV2P.js → secondary-nav.CIEVFTYS.js} +3 -3
  133. package/dist/chunks/{secondary-nav.CnE-aV2P.js.map → secondary-nav.CIEVFTYS.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.C2OFZgKd.js → selection-card-group.BgANSy3b.js} +11 -11
  135. package/dist/chunks/{selection-card-group.C2OFZgKd.js.map → selection-card-group.BgANSy3b.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.Drn-lKR3.js → sidepanel.BjR0Ab22.js} +5 -5
  137. package/dist/chunks/{sidepanel.Drn-lKR3.js.map → sidepanel.BjR0Ab22.js.map} +1 -1
  138. package/dist/chunks/{step.BGFaHGFO.js → step.7l-t-eN9.js} +2 -2
  139. package/dist/chunks/{step.BGFaHGFO.js.map → step.7l-t-eN9.js.map} +1 -1
  140. package/dist/chunks/{structured-list-item.CWiwoP5F.js → structured-list-item.BMsATRrU.js} +4 -4
  141. package/dist/chunks/{structured-list-item.CWiwoP5F.js.map → structured-list-item.BMsATRrU.js.map} +1 -1
  142. package/dist/chunks/{summary-grid.types.DOYW579A.js → summary-grid.types.lGX16F4w.js} +126 -114
  143. package/dist/chunks/summary-grid.types.lGX16F4w.js.map +1 -0
  144. package/dist/chunks/{tabs.DZk78MLK.js → tabs.BVuOvNxx.js} +17 -17
  145. package/dist/chunks/{tabs.DZk78MLK.js.map → tabs.BVuOvNxx.js.map} +1 -1
  146. package/dist/chunks/{teleport.zSiKZmRE.js → teleport.CfGWjxe2.js} +17 -26
  147. package/dist/chunks/teleport.CfGWjxe2.js.map +1 -0
  148. package/dist/chunks/{textarea.CR7su54i.js → textarea.CAc_VYFm.js} +4 -4
  149. package/dist/chunks/{textarea.CR7su54i.js.map → textarea.CAc_VYFm.js.map} +1 -1
  150. package/dist/chunks/timeline-item.BQ4qiBii.js +567 -0
  151. package/dist/chunks/timeline-item.BQ4qiBii.js.map +1 -0
  152. package/dist/chunks/{toast.DxVfamh-.js → toast.BOpWHAfu.js} +3 -3
  153. package/dist/chunks/{toast.DxVfamh-.js.map → toast.BOpWHAfu.js.map} +1 -1
  154. package/dist/chunks/{toggle-button.D-9TFTy8.js → toggle-button.E0VQtyEX.js} +2 -2
  155. package/dist/chunks/{toggle-button.D-9TFTy8.js.map → toggle-button.E0VQtyEX.js.map} +1 -1
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ENhKvQLv.js → tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js} +5 -5
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.ENhKvQLv.js.map → tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.CQKeFUJd.js → use-cached-selected-values.DHUa2Emx.js} +6 -6
  159. package/dist/chunks/{use-cached-selected-values.CQKeFUJd.js.map → use-cached-selected-values.DHUa2Emx.js.map} +1 -1
  160. package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
  161. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
  162. package/dist/chunks/{use-country-items.BMhCqIWd.js → use-country-items.4kZgVg_l.js} +2 -2
  163. package/dist/chunks/{use-country-items.BMhCqIWd.js.map → use-country-items.4kZgVg_l.js.map} +1 -1
  164. package/dist/code-snippet.js +1 -1
  165. package/dist/country.js +1 -1
  166. package/dist/dashboard-template.js +1 -1
  167. package/dist/dashed-underline.js +1 -1
  168. package/dist/data-grid-template.js +1 -1
  169. package/dist/data-grid.js +1 -1
  170. package/dist/date-picker.js +2 -2
  171. package/dist/date-range-picker.js +2 -2
  172. package/dist/date.js +1 -1
  173. package/dist/dropdown.js +4 -4
  174. package/dist/empty-state.js +1 -1
  175. package/dist/file-uploader.js +1 -1
  176. package/dist/filter-bar.js +1 -1
  177. package/dist/form-layout.js +1 -1
  178. package/dist/header-with-views.js +1 -1
  179. package/dist/header.js +1 -1
  180. package/dist/index.js +55 -55
  181. package/dist/input-field-password.js +1 -1
  182. package/dist/input-field-phone-number.js +1 -1
  183. package/dist/input-field.js +1 -1
  184. package/dist/inspector.js +1 -1
  185. package/dist/internal.js +11 -11
  186. package/dist/menu.js +1 -1
  187. package/dist/modal-fullscreen.js +1 -1
  188. package/dist/modal.js +2 -2
  189. package/dist/pagination.js +1 -1
  190. package/dist/popover.js +1 -1
  191. package/dist/promo-banner.js +1 -1
  192. package/dist/radio-group.js +1 -1
  193. package/dist/search-bar.js +2 -2
  194. package/dist/secondary-nav.js +1 -1
  195. package/dist/selection-card.js +1 -1
  196. package/dist/sidepanel.js +1 -1
  197. package/dist/stepper.js +1 -1
  198. package/dist/structured-list.js +1 -1
  199. package/dist/styles/bento-dark.css +13 -2
  200. package/dist/styles/bento-light.css +13 -2
  201. package/dist/styles/bento.css +13 -2
  202. package/dist/styles/legacy.css +14 -4
  203. package/dist/styles/styleguide.css +13 -2
  204. package/dist/summary-grid.js +1 -1
  205. package/dist/tabs.js +1 -1
  206. package/dist/textarea.js +1 -1
  207. package/dist/timeline.js +1 -1
  208. package/dist/toast.js +1 -1
  209. package/dist/tutorial.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +5 -5
  212. package/dist/chunks/button.DEVuqLVT.js.map +0 -1
  213. package/dist/chunks/code-snippet.DJgiqDzZ.js +0 -422
  214. package/dist/chunks/code-snippet.DJgiqDzZ.js.map +0 -1
  215. package/dist/chunks/dashed-underline.DWhGZIhS.js +0 -80
  216. package/dist/chunks/dashed-underline.DWhGZIhS.js.map +0 -1
  217. package/dist/chunks/data-grid-template.LlK-7o84.js +0 -93
  218. package/dist/chunks/data-grid-template.LlK-7o84.js.map +0 -1
  219. package/dist/chunks/data-grid.CsyayKK3.js.map +0 -1
  220. package/dist/chunks/file-uploader.D3KUe-MO.js.map +0 -1
  221. package/dist/chunks/filter-bar.cRJmUX-v.js +0 -2771
  222. package/dist/chunks/filter-bar.cRJmUX-v.js.map +0 -1
  223. package/dist/chunks/i18n.D9azDLPe.js.map +0 -1
  224. package/dist/chunks/summary-grid.types.DOYW579A.js.map +0 -1
  225. package/dist/chunks/teleport.zSiKZmRE.js.map +0 -1
  226. package/dist/chunks/timeline-item.BhQp0ICP.js +0 -560
  227. package/dist/chunks/timeline-item.BhQp0ICP.js.map +0 -1
@@ -1,38 +1,38 @@
1
- import { createElementBlock as v, openBlock as s, mergeProps as S, createCommentVNode as m, createElementVNode as r, toDisplayString as u, defineComponent as la, createBlock as w, unref as t, Transition as ti, withCtx as b, renderSlot as ya, TransitionGroup as ni, ref as E, onUnmounted as oi, onMounted as pi, computed as x, watch as xa, normalizeClass as B, createVNode as O, resolveDynamicComponent as li, withDirectives as Da, createTextVNode as _, reactive as ga, toRef as va, withKeys as ka, withModifiers as Q, Fragment as Ca, renderList as si, vShow as ci, nextTick as di } from "vue";
1
+ import { createElementBlock as f, openBlock as s, mergeProps as V, createCommentVNode as u, createElementVNode as r, toDisplayString as v, defineComponent as la, createBlock as b, unref as t, Transition as pi, withCtx as h, renderSlot as Ca, TransitionGroup as li, ref as I, onUnmounted as si, onMounted as Oa, computed as x, watch as ha, normalizeClass as q, createVNode as O, resolveDynamicComponent as ci, withDirectives as Ha, createTextVNode as j, reactive as ba, toRef as xa, withKeys as $a, withModifiers as J, Fragment as _a, renderList as di, vShow as ri, nextTick as mi } from "vue";
2
2
  /* empty css */
3
- import { _ as I } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
- import { W as Fa } from "./warning-filled.DmHh0nYG.js";
5
- import { B as ri } from "./alert.4SefwHLO.js";
6
- import { B as z } from "./typography.DN5eC5ch.js";
7
- import { u as sa } from "./i18n.D9azDLPe.js";
8
- import { g as T } from "./generate-uid.NJ8tVoha.js";
9
- import { i as Oa } from "./index.CWuzEfiV.js";
10
- import { B as mi } from "./bin.CA6UQCNZ.js";
11
- import { C as ui } from "./checkmark-circle-fill.jicbqe7k.js";
12
- import { C as vi } from "./cross.CbLEjiVy.js";
13
- import { R as fi } from "./refresh.C20ROVDS.js";
3
+ import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import { W as qa } from "./warning-filled.DmHh0nYG.js";
5
+ import { B as ui } from "./alert.CFb4Sejw.js";
6
+ import { B as z, d as vi } from "./typography.DN5eC5ch.js";
7
+ import { u as sa } from "./i18n.B6g5VX0q.js";
8
+ import { g as M } from "./generate-uid.NJ8tVoha.js";
9
+ import { i as Ba } from "./index.CWuzEfiV.js";
10
+ import { B as fi } from "./bin.CA6UQCNZ.js";
11
+ import { C as xi } from "./checkmark-circle-fill.jicbqe7k.js";
12
+ import { C as gi } from "./cross.CbLEjiVy.js";
13
+ import { R as hi } from "./refresh.C20ROVDS.js";
14
14
  import "./events.FNmSWp_P.js";
15
- import { B as xi } from "./tooltip.BkBDReK0.js";
16
- import { B as fa } from "./button.DEVuqLVT.js";
17
- import { B as gi } from "./link.D3Fq5tt_.js";
18
- import { B as hi } from "./loading-indicator.DEepb9Wl.js";
19
- import { F as bi, E as wi } from "./error-message.CMgsMDny.js";
15
+ import { B as bi } from "./tooltip.BkBDReK0.js";
16
+ import { B as ga } from "./button.BHZgsGkp.js";
17
+ import { B as wi } from "./link.D3Fq5tt_.js";
18
+ import { B as yi } from "./loading-indicator.DEepb9Wl.js";
19
+ import { F as ki, E as Ci } from "./error-message.CPw3y44N.js";
20
20
  import "../assets/file-uploader.css";
21
- let $a = 0;
22
- const yi = {
21
+ let ja = 0;
22
+ const $i = {
23
23
  beforeCreate() {
24
- this.uuid = $a.toString(), $a += 1;
24
+ this.uuid = ja.toString(), ja += 1;
25
25
  }
26
- }, ki = { key: 0 };
27
- function Ci(a, i, p, l, o, n) {
28
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
26
+ }, _i = { key: 0 };
27
+ function ji(a, i, p, l, o, n) {
28
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
29
29
  class: "ui-assets-icons-16",
30
30
  xmlns: "http://www.w3.org/2000/svg",
31
31
  width: "16",
32
32
  height: "16",
33
33
  fill: "none"
34
34
  }), [
35
- a.$attrs["svg-title"] ? (s(), v("title", ki, u(a.$attrs["svg-title"]), 1)) : m("", !0),
35
+ a.$attrs["svg-title"] ? (s(), f("title", _i, v(a.$attrs["svg-title"]), 1)) : u("", !0),
36
36
  i[0] || (i[0] = r("path", {
37
37
  fill: "#00112C",
38
38
  d: "M8.00011 0.939453L12.0608 5.00011L11.0001 6.06077L8.75 3.81066V11.75H7.25V3.81089L5.00011 6.06077L3.93945 5.00011L8.00011 0.939453Z"
@@ -43,44 +43,44 @@ function Ci(a, i, p, l, o, n) {
43
43
  }, null, -1))
44
44
  ], 16);
45
45
  }
46
- const $i = /* @__PURE__ */ I(yi, [["render", Ci]]), _i = /* @__PURE__ */ la({
46
+ const zi = /* @__PURE__ */ L($i, [["render", ji]]), Ri = /* @__PURE__ */ la({
47
47
  __name: "file-uploader-file-card-animation",
48
48
  props: {
49
49
  name: {},
50
50
  showFileIcon: { type: Boolean }
51
51
  },
52
52
  setup(a) {
53
- return (i, p) => t(Oa) ? (s(), w(ti, {
53
+ return (i, p) => t(Ba) ? (s(), b(pi, {
54
54
  key: 0,
55
55
  name: i.name,
56
56
  mode: "out-in",
57
57
  css: i.showFileIcon
58
58
  }, {
59
- default: b(() => [
60
- ya(i.$slots, "default")
59
+ default: h(() => [
60
+ Ca(i.$slots, "default")
61
61
  ]),
62
62
  _: 3
63
- }, 8, ["name", "css"])) : (s(), w(ni, {
63
+ }, 8, ["name", "css"])) : (s(), b(li, {
64
64
  key: 1,
65
65
  name: i.name,
66
66
  css: i.showFileIcon
67
67
  }, {
68
- default: b(() => [
69
- ya(i.$slots, "default")
68
+ default: h(() => [
69
+ Ca(i.$slots, "default")
70
70
  ]),
71
71
  _: 3
72
72
  }, 8, ["name", "css"]));
73
73
  }
74
74
  });
75
- function ji(a, i) {
76
- const p = E(!1);
75
+ function Ei(a, i) {
76
+ const p = I(!1);
77
77
  let l;
78
78
  function o() {
79
79
  l && l.disconnect();
80
80
  }
81
- return oi(() => {
81
+ return si(() => {
82
82
  o();
83
- }), pi(() => {
83
+ }), Oa(() => {
84
84
  o(), l = new IntersectionObserver(
85
85
  (n) => {
86
86
  p.value = !n[0].isIntersecting;
@@ -92,23 +92,23 @@ function ji(a, i) {
92
92
  ), l.observe(a.value.$el);
93
93
  }), p;
94
94
  }
95
- const _a = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
96
- function Ha(a, i) {
97
- const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), _a.length - 1));
95
+ const za = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
96
+ function Za(a, i) {
97
+ const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), za.length - 1));
98
98
  return Intl.NumberFormat(a, {
99
99
  style: "unit",
100
- unit: _a[p]
100
+ unit: za[p]
101
101
  }).format(i / 1024 ** p);
102
102
  }
103
- var M = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(M || {}), R = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(R || {}), pa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(pa || {}), g = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(g || {});
104
- const zi = [
103
+ var S = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(S || {}), R = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(R || {}), pa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(pa || {}), g = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(g || {});
104
+ const Ii = [
105
105
  "application/msword",
106
106
  // .doc
107
107
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
108
108
  // .docx
109
109
  "application/rtf"
110
110
  // .rtf
111
- ], Ri = [
111
+ ], Li = [
112
112
  "application/vnd.ms-excel",
113
113
  // .xls
114
114
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -121,14 +121,14 @@ const zi = [
121
121
  // .numbers
122
122
  "text/csv"
123
123
  // .csv
124
- ], Ei = [
124
+ ], Ti = [
125
125
  "application/vnd.ms-powerpoint",
126
126
  // .ppt
127
127
  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
128
128
  // .pptx
129
129
  "application/vnd.oasis.opendocument.presentation"
130
130
  // .odp
131
- ], Ii = [
131
+ ], Mi = [
132
132
  "application/zip",
133
133
  // .zip
134
134
  "application/vnd.rar",
@@ -150,10 +150,10 @@ const zi = [
150
150
  "application/vnd.ms-cab-compressed"
151
151
  // .cab
152
152
  ];
153
- function Li(a) {
154
- return Ri.includes(a.type) ? g.TABLE : a.type.startsWith("text/") || zi.includes(a.type) ? g.TEXT : a.type.startsWith("image/") ? g.IMAGE : a.type.startsWith("video/") ? g.VIDEO : a.type.startsWith("audio/") ? g.AUDIO : a.type === "application/pdf" ? g.PDF : Ei.includes(a.type) ? g.SLIDES : Ii.includes(a.type) ? g.COMPRESSED : g.GENERIC;
153
+ function Si(a) {
154
+ return Li.includes(a.type) ? g.TABLE : a.type.startsWith("text/") || Ii.includes(a.type) ? g.TEXT : a.type.startsWith("image/") ? g.IMAGE : a.type.startsWith("video/") ? g.VIDEO : a.type.startsWith("audio/") ? g.AUDIO : a.type === "application/pdf" ? g.PDF : Ti.includes(a.type) ? g.SLIDES : Mi.includes(a.type) ? g.COMPRESSED : g.GENERIC;
155
155
  }
156
- function Ti(a, i) {
156
+ function Vi(a, i) {
157
157
  if (!i)
158
158
  return !0;
159
159
  const p = i.split(",").map((l) => l.trim());
@@ -169,44 +169,44 @@ function Ti(a, i) {
169
169
  return !0;
170
170
  return !1;
171
171
  }
172
- function Mi(a, i, p) {
172
+ function Fi(a, i, p) {
173
173
  const l = new FileReader(), o = a;
174
- if (!Ti(o.data, i)) {
175
- o.state = M.ERROR, o.errors.push(R.ERROR_TYPE);
174
+ if (!Vi(o.data, i)) {
175
+ o.state = S.ERROR, o.errors.push(R.ERROR_TYPE);
176
176
  return;
177
177
  }
178
178
  l.onload = (n) => {
179
179
  if (p && o.type === g.IMAGE) {
180
- const h = new Blob([n.target.result], { type: o.data.type }), f = URL.createObjectURL(h), d = new Image();
180
+ const w = new Blob([n.target.result], { type: o.data.type }), m = URL.createObjectURL(w), d = new Image();
181
181
  d.onload = function() {
182
- (d.width > p.width || d.height > p.height) && (o.state = M.ERROR, o.errors.push(R.ERROR_DIMENSIONS)), URL.revokeObjectURL(f);
182
+ (d.width > p.width || d.height > p.height) && (o.state = S.ERROR, o.errors.push(R.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
183
183
  }, d.onerror = function() {
184
- URL.revokeObjectURL(f);
185
- }, d.src = f;
184
+ URL.revokeObjectURL(m);
185
+ }, d.src = m;
186
186
  }
187
187
  }, l.onprogress = (n) => {
188
188
  n.lengthComputable && (o.progress = n.loaded / n.total * 100);
189
189
  }, l.onloadend = () => {
190
- o.state !== M.ERROR && (o.state = M.SUCCESS), o.progress = null;
190
+ o.state !== S.ERROR && (o.state = S.SUCCESS), o.progress = null;
191
191
  }, l.onerror = () => {
192
- o.state = M.ERROR, o.errors.push(R.ERROR_LOAD), o.progress = null;
192
+ o.state = S.ERROR, o.errors.push(R.ERROR_LOAD), o.progress = null;
193
193
  }, l.readAsArrayBuffer(o.data);
194
194
  }
195
- let ja = 0;
196
- const Si = {
195
+ let Ra = 0;
196
+ const Di = {
197
197
  beforeCreate() {
198
- this.uuid = ja.toString(), ja += 1;
198
+ this.uuid = Ra.toString(), Ra += 1;
199
199
  }
200
- }, Vi = { key: 0 }, Di = ["clip-path"], Fi = ["id"];
201
- function Oi(a, i, p, l, o, n) {
202
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
200
+ }, Oi = { key: 0 }, Hi = ["clip-path"], qi = ["id"];
201
+ function Bi(a, i, p, l, o, n) {
202
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
203
203
  class: "ui-assets-icons-16",
204
204
  xmlns: "http://www.w3.org/2000/svg",
205
205
  width: "16",
206
206
  height: "16",
207
207
  fill: "none"
208
208
  }), [
209
- a.$attrs["svg-title"] ? (s(), v("title", Vi, u(a.$attrs["svg-title"]), 1)) : m("", !0),
209
+ a.$attrs["svg-title"] ? (s(), f("title", Oi, v(a.$attrs["svg-title"]), 1)) : u("", !0),
210
210
  r("g", {
211
211
  "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
212
212
  }, i[0] || (i[0] = [
@@ -214,7 +214,7 @@ function Oi(a, i, p, l, o, n) {
214
214
  fill: "#00112C",
215
215
  d: "M12.866 4.09026C11.5689 2.79315 9.4638 2.79315 8.1667 4.09026L2.7267 9.53026C1.95959 10.2974 1.95959 11.5425 2.7267 12.3096C3.49381 13.0767 4.73893 13.0767 5.50604 12.3096L10.946 6.8696C11.1831 6.63249 11.1831 6.24737 10.946 6.01026C10.7089 5.77316 10.3238 5.77316 10.0867 6.01026L4.75637 11.3406L3.69571 10.2799L9.02604 4.9496C9.84893 4.12671 11.1838 4.12671 12.0067 4.9496C12.8296 5.7725 12.8296 7.10737 12.0067 7.93026L6.5667 13.3703C5.2138 14.7232 3.01893 14.7232 1.66604 13.3703C0.313144 12.0174 0.313144 9.82249 1.66604 8.4696L7.10604 3.0296C8.98893 1.14671 12.0438 1.14671 13.9267 3.0296C15.8096 4.91249 15.8096 7.96737 13.9267 9.85026L11.1564 12.6206L10.0957 11.5599L12.866 8.7896C14.1631 7.49249 14.1631 5.38737 12.866 4.09026Z"
216
216
  }, null, -1)
217
- ]), 8, Di),
217
+ ]), 8, Hi),
218
218
  r("defs", null, [
219
219
  r("clipPath", {
220
220
  id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
@@ -224,70 +224,70 @@ function Oi(a, i, p, l, o, n) {
224
224
  height: "16",
225
225
  fill: "#fff"
226
226
  }, null, -1)
227
- ]), 8, Fi)
227
+ ]), 8, qi)
228
228
  ])
229
229
  ], 16);
230
230
  }
231
- const Hi = /* @__PURE__ */ I(Si, [["render", Oi]]);
232
- let za = 0;
233
- const qi = {
231
+ const Zi = /* @__PURE__ */ L(Di, [["render", Bi]]);
232
+ let Ea = 0;
233
+ const Ai = {
234
234
  beforeCreate() {
235
- this.uuid = za.toString(), za += 1;
235
+ this.uuid = Ea.toString(), Ea += 1;
236
236
  }
237
- }, Bi = { key: 0 };
238
- function Zi(a, i, p, l, o, n) {
239
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
237
+ }, Ui = { key: 0 };
238
+ function Ni(a, i, p, l, o, n) {
239
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
240
240
  class: "ui-assets-icons-16",
241
241
  xmlns: "http://www.w3.org/2000/svg",
242
242
  width: "16",
243
243
  height: "16",
244
244
  fill: "none"
245
245
  }), [
246
- a.$attrs["svg-title"] ? (s(), v("title", Bi, u(a.$attrs["svg-title"]), 1)) : m("", !0),
246
+ a.$attrs["svg-title"] ? (s(), f("title", Ui, v(a.$attrs["svg-title"]), 1)) : u("", !0),
247
247
  i[0] || (i[0] = r("path", {
248
248
  fill: "#00112C",
249
249
  d: "M13.75 9.58159C14.3412 9.30073 14.75 8.6981 14.75 8V2C14.75 1.0335 13.9665 0.25 13 0.25H3C2.0335 0.25 1.25 1.0335 1.25 2V8C1.25 8.6981 1.65876 9.30073 2.25 9.58159V11C2.25 11.4641 2.43438 11.9092 2.76256 12.2374C2.90555 12.3804 3.07072 12.4961 3.25 12.5811V14C3.25 14.4641 3.43438 14.9092 3.76256 15.2374C4.09075 15.5656 4.53587 15.75 5 15.75H11C11.4641 15.75 11.9092 15.5656 12.2374 15.2374C12.5656 14.9092 12.75 14.4641 12.75 14V12.5811C12.9293 12.4961 13.0945 12.3804 13.2374 12.2374C13.5656 11.9092 13.75 11.4641 13.75 11V9.58159ZM3 1.75H13C13.1381 1.75 13.25 1.86193 13.25 2V8C13.25 8.13807 13.1381 8.25 13 8.25H3C2.86193 8.25 2.75 8.13807 2.75 8V2C2.75 1.86193 2.86193 1.75 3 1.75ZM12.25 9.75V11C12.25 11.0663 12.2237 11.1299 12.1768 11.1768C12.1299 11.2237 12.0663 11.25 12 11.25H4C3.9337 11.25 3.87011 11.2237 3.82322 11.1768C3.77634 11.1299 3.75 11.0663 3.75 11V9.75H12.25ZM11.25 12.75V14C11.25 14.0663 11.2237 14.1299 11.1768 14.1768C11.1299 14.2237 11.0663 14.25 11 14.25H5C4.9337 14.25 4.87011 14.2237 4.82322 14.1768C4.77634 14.1299 4.75 14.0663 4.75 14V12.75H11.25Z"
250
250
  }, null, -1))
251
251
  ], 16);
252
252
  }
253
- const Ai = /* @__PURE__ */ I(qi, [["render", Zi]]);
254
- let Ra = 0;
255
- const Ni = {
253
+ const Pi = /* @__PURE__ */ L(Ai, [["render", Ni]]);
254
+ let Ia = 0;
255
+ const Gi = {
256
256
  beforeCreate() {
257
- this.uuid = Ra.toString(), Ra += 1;
257
+ this.uuid = Ia.toString(), Ia += 1;
258
258
  }
259
- }, Ui = { key: 0 };
260
- function Pi(a, i, p, l, o, n) {
261
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
259
+ }, Wi = { key: 0 };
260
+ function Yi(a, i, p, l, o, n) {
261
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
262
262
  class: "ui-assets-icons-16",
263
263
  xmlns: "http://www.w3.org/2000/svg",
264
264
  width: "16",
265
265
  height: "16",
266
266
  fill: "none"
267
267
  }), [
268
- a.$attrs["svg-title"] ? (s(), v("title", Ui, u(a.$attrs["svg-title"]), 1)) : m("", !0),
268
+ a.$attrs["svg-title"] ? (s(), f("title", Wi, v(a.$attrs["svg-title"]), 1)) : u("", !0),
269
269
  i[0] || (i[0] = r("path", {
270
270
  fill: "#00112C",
271
271
  d: "M2.25 0.25V15.75H13.75V4.68934L9.31066 0.25H2.25ZM7.25 1.75V6.75H12.25V14.25H3.75V1.75H7.25ZM12.1893 5.25H8.75V1.81066L12.1893 5.25Z"
272
272
  }, null, -1))
273
273
  ], 16);
274
274
  }
275
- const Gi = /* @__PURE__ */ I(Ni, [["render", Pi]]);
276
- let Ea = 0;
277
- const Wi = {
275
+ const Xi = /* @__PURE__ */ L(Gi, [["render", Yi]]);
276
+ let La = 0;
277
+ const Ji = {
278
278
  beforeCreate() {
279
- this.uuid = Ea.toString(), Ea += 1;
279
+ this.uuid = La.toString(), La += 1;
280
280
  }
281
- }, Yi = { key: 0 };
282
- function Xi(a, i, p, l, o, n) {
283
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
281
+ }, Ki = { key: 0 };
282
+ function Qi(a, i, p, l, o, n) {
283
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
284
284
  class: "ui-assets-icons-16",
285
285
  xmlns: "http://www.w3.org/2000/svg",
286
286
  width: "16",
287
287
  height: "16",
288
288
  fill: "none"
289
289
  }), [
290
- a.$attrs["svg-title"] ? (s(), v("title", Yi, u(a.$attrs["svg-title"]), 1)) : m("", !0),
290
+ a.$attrs["svg-title"] ? (s(), f("title", Ki, v(a.$attrs["svg-title"]), 1)) : u("", !0),
291
291
  i[0] || (i[0] = r("path", {
292
292
  fill: "#00112C",
293
293
  d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
@@ -302,44 +302,44 @@ function Xi(a, i, p, l, o, n) {
302
302
  }, null, -1))
303
303
  ], 16);
304
304
  }
305
- const Ji = /* @__PURE__ */ I(Wi, [["render", Xi]]);
306
- let Ia = 0;
307
- const Ki = {
305
+ const ae = /* @__PURE__ */ L(Ji, [["render", Qi]]);
306
+ let Ta = 0;
307
+ const ie = {
308
308
  beforeCreate() {
309
- this.uuid = Ia.toString(), Ia += 1;
309
+ this.uuid = Ta.toString(), Ta += 1;
310
310
  }
311
- }, Qi = { key: 0 };
312
- function ae(a, i, p, l, o, n) {
313
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
311
+ }, ee = { key: 0 };
312
+ function te(a, i, p, l, o, n) {
313
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
314
314
  class: "ui-assets-icons-16",
315
315
  xmlns: "http://www.w3.org/2000/svg",
316
316
  width: "16",
317
317
  height: "16",
318
318
  fill: "none"
319
319
  }), [
320
- a.$attrs["svg-title"] ? (s(), v("title", Qi, u(a.$attrs["svg-title"]), 1)) : m("", !0),
320
+ a.$attrs["svg-title"] ? (s(), f("title", ee, v(a.$attrs["svg-title"]), 1)) : u("", !0),
321
321
  i[0] || (i[0] = r("path", {
322
322
  fill: "#00112C",
323
323
  d: "M1.24609 4.5C1.24609 3.25579 2.25188 2.25 3.49609 2.25H6.37609C6.97727 2.25 7.54738 2.49062 7.96642 2.90967L10.0864 5.02967C10.2274 5.17062 10.4173 5.25 10.6161 5.25H12.4961C13.7403 5.25 14.7461 6.25579 14.7461 7.5V12.5C14.7461 13.7442 13.7403 14.75 12.4961 14.75H3.49609C2.25188 14.75 1.24609 13.7442 1.24609 12.5V4.5ZM3.49609 3.75C3.08031 3.75 2.74609 4.08421 2.74609 4.5V12.5C2.74609 12.9158 3.08031 13.25 3.49609 13.25H12.4961C12.9119 13.25 13.2461 12.9158 13.2461 12.5V7.5C13.2461 7.08421 12.9119 6.75 12.4961 6.75H10.6161C10.0149 6.75 9.44481 6.50938 9.02576 6.09033L6.90576 3.97033C6.76481 3.82938 6.57492 3.75 6.37609 3.75H3.49609Z"
324
324
  }, null, -1))
325
325
  ], 16);
326
326
  }
327
- const ie = /* @__PURE__ */ I(Ki, [["render", ae]]);
328
- let La = 0;
329
- const ee = {
327
+ const ne = /* @__PURE__ */ L(ie, [["render", te]]);
328
+ let Ma = 0;
329
+ const oe = {
330
330
  beforeCreate() {
331
- this.uuid = La.toString(), La += 1;
331
+ this.uuid = Ma.toString(), Ma += 1;
332
332
  }
333
- }, te = { key: 0 };
334
- function ne(a, i, p, l, o, n) {
335
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
333
+ }, pe = { key: 0 };
334
+ function le(a, i, p, l, o, n) {
335
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
336
336
  class: "ui-assets-icons-16",
337
337
  xmlns: "http://www.w3.org/2000/svg",
338
338
  width: "16",
339
339
  height: "16",
340
340
  fill: "none"
341
341
  }), [
342
- a.$attrs["svg-title"] ? (s(), v("title", te, u(a.$attrs["svg-title"]), 1)) : m("", !0),
342
+ a.$attrs["svg-title"] ? (s(), f("title", pe, v(a.$attrs["svg-title"]), 1)) : u("", !0),
343
343
  i[0] || (i[0] = r("path", {
344
344
  fill: "#00112C",
345
345
  d: "M9.99609 3.24805C8.47731 3.24805 7.24609 4.47926 7.24609 5.99805C7.24609 7.51683 8.47731 8.74805 9.99609 8.74805C11.5149 8.74805 12.7461 7.51683 12.7461 5.99805C12.7461 4.47926 11.5149 3.24805 9.99609 3.24805ZM8.74609 5.99805C8.74609 5.30769 9.30574 4.74805 9.99609 4.74805C10.6865 4.74805 11.2461 5.30769 11.2461 5.99805C11.2461 6.6884 10.6865 7.24805 9.99609 7.24805C9.30574 7.24805 8.74609 6.6884 8.74609 5.99805Z"
@@ -350,29 +350,29 @@ function ne(a, i, p, l, o, n) {
350
350
  }, null, -1))
351
351
  ], 16);
352
352
  }
353
- const oe = /* @__PURE__ */ I(ee, [["render", ne]]);
354
- let Ta = 0;
355
- const pe = {
353
+ const se = /* @__PURE__ */ L(oe, [["render", le]]);
354
+ let Sa = 0;
355
+ const ce = {
356
356
  beforeCreate() {
357
- this.uuid = Ta.toString(), Ta += 1;
357
+ this.uuid = Sa.toString(), Sa += 1;
358
358
  }
359
- }, le = { key: 0 }, se = ["clip-path"], ce = ["id"];
360
- function de(a, i, p, l, o, n) {
361
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
359
+ }, de = { key: 0 }, re = ["clip-path"], me = ["id"];
360
+ function ue(a, i, p, l, o, n) {
361
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
362
362
  class: "ui-assets-icons-16",
363
363
  xmlns: "http://www.w3.org/2000/svg",
364
364
  width: "16",
365
365
  height: "16",
366
366
  fill: "none"
367
367
  }), [
368
- a.$attrs["svg-title"] ? (s(), v("title", le, u(a.$attrs["svg-title"]), 1)) : m("", !0),
368
+ a.$attrs["svg-title"] ? (s(), f("title", de, v(a.$attrs["svg-title"]), 1)) : u("", !0),
369
369
  r("g", {
370
370
  fill: "#00112C",
371
371
  "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
372
372
  }, i[0] || (i[0] = [
373
373
  r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
374
374
  r("path", { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" }, null, -1)
375
- ]), 8, se),
375
+ ]), 8, re),
376
376
  r("defs", null, [
377
377
  r("clipPath", {
378
378
  id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
@@ -382,26 +382,26 @@ function de(a, i, p, l, o, n) {
382
382
  height: "16",
383
383
  fill: "#fff"
384
384
  }, null, -1)
385
- ]), 8, ce)
385
+ ]), 8, me)
386
386
  ])
387
387
  ], 16);
388
388
  }
389
- const re = /* @__PURE__ */ I(pe, [["render", de]]);
390
- let Ma = 0;
391
- const me = {
389
+ const ve = /* @__PURE__ */ L(ce, [["render", ue]]);
390
+ let Va = 0;
391
+ const fe = {
392
392
  beforeCreate() {
393
- this.uuid = Ma.toString(), Ma += 1;
393
+ this.uuid = Va.toString(), Va += 1;
394
394
  }
395
- }, ue = { key: 0 };
396
- function ve(a, i, p, l, o, n) {
397
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
395
+ }, xe = { key: 0 };
396
+ function ge(a, i, p, l, o, n) {
397
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
398
398
  class: "ui-assets-icons-16",
399
399
  xmlns: "http://www.w3.org/2000/svg",
400
400
  width: "16",
401
401
  height: "16",
402
402
  fill: "none"
403
403
  }), [
404
- a.$attrs["svg-title"] ? (s(), v("title", ue, u(a.$attrs["svg-title"]), 1)) : m("", !0),
404
+ a.$attrs["svg-title"] ? (s(), f("title", xe, v(a.$attrs["svg-title"]), 1)) : u("", !0),
405
405
  i[0] || (i[0] = r("path", {
406
406
  fill: "#00112C",
407
407
  d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z"
@@ -416,43 +416,43 @@ function ve(a, i, p, l, o, n) {
416
416
  }, null, -1))
417
417
  ], 16);
418
418
  }
419
- const fe = /* @__PURE__ */ I(me, [["render", ve]]);
420
- let Sa = 0;
421
- const xe = {
419
+ const he = /* @__PURE__ */ L(fe, [["render", ge]]);
420
+ let Fa = 0;
421
+ const be = {
422
422
  beforeCreate() {
423
- this.uuid = Sa.toString(), Sa += 1;
423
+ this.uuid = Fa.toString(), Fa += 1;
424
424
  }
425
- }, ge = { key: 0 };
426
- function he(a, i, p, l, o, n) {
427
- return s(), v("svg", S({ role: "img" }, a.$attrs, {
425
+ }, we = { key: 0 };
426
+ function ye(a, i, p, l, o, n) {
427
+ return s(), f("svg", V({ role: "img" }, a.$attrs, {
428
428
  class: "ui-assets-icons-16",
429
429
  xmlns: "http://www.w3.org/2000/svg",
430
430
  width: "16",
431
431
  height: "16",
432
432
  fill: "none"
433
433
  }), [
434
- a.$attrs["svg-title"] ? (s(), v("title", ge, u(a.$attrs["svg-title"]), 1)) : m("", !0),
434
+ a.$attrs["svg-title"] ? (s(), f("title", we, v(a.$attrs["svg-title"]), 1)) : u("", !0),
435
435
  i[0] || (i[0] = r("path", {
436
436
  fill: "#00112C",
437
437
  d: "M3.5 1.25L3.49505 1.25002C2.90084 1.25394 2.33208 1.49173 1.91191 1.91191C1.49173 2.33208 1.25392 2.90084 1.25 3.49505V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V3.5C14.75 2.90326 14.5129 2.33097 14.091 1.90901C13.669 1.48705 13.0967 1.25 12.5 1.25H3.5ZM5.25 2.75V5.25H2.75V3.5029C2.75185 3.30382 2.83175 3.11338 2.97257 2.97257C3.11338 2.83175 3.30382 2.75185 3.5029 2.75H5.25ZM5.25 6.75V9.25H2.75V6.75H5.25ZM6.75 9.25V6.75H13.25V9.25H6.75ZM5.25 10.75V13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5V10.75H5.25ZM6.75 13.25V10.75H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H6.75ZM6.75 5.25V2.75H12.5C12.6989 2.75 12.8897 2.82902 13.0303 2.96967C13.171 3.11032 13.25 3.30109 13.25 3.5V5.25H6.75Z"
438
438
  }, null, -1))
439
439
  ], 16);
440
440
  }
441
- const be = /* @__PURE__ */ I(xe, [["render", he]]), we = {
442
- [g.AUDIO]: fe,
443
- [g.COMPRESSED]: ie,
444
- [g.GENERIC]: Hi,
445
- [g.IMAGE]: oe,
446
- [g.PDF]: Gi,
447
- [g.SLIDES]: Ai,
448
- [g.TABLE]: be,
449
- [g.TEXT]: Ji,
450
- [g.VIDEO]: re
441
+ const ke = /* @__PURE__ */ L(be, [["render", ye]]), Ce = {
442
+ [g.AUDIO]: he,
443
+ [g.COMPRESSED]: ne,
444
+ [g.GENERIC]: Zi,
445
+ [g.IMAGE]: se,
446
+ [g.PDF]: Xi,
447
+ [g.SLIDES]: Pi,
448
+ [g.TABLE]: ke,
449
+ [g.TEXT]: ae,
450
+ [g.VIDEO]: ve
451
451
  };
452
- function ye(a) {
453
- return we[a.type];
452
+ function $e(a) {
453
+ return Ce[a.type];
454
454
  }
455
- function ke(a) {
455
+ function _e(a) {
456
456
  switch (a.type) {
457
457
  case g.COMPRESSED:
458
458
  case g.GENERIC:
@@ -466,7 +466,7 @@ function ke(a) {
466
466
  return "green";
467
467
  }
468
468
  }
469
- const qa = {
469
+ const Aa = {
470
470
  "en-US": {
471
471
  cancel: "Cancel",
472
472
  fileExceedsSizeLimit: "File exceeds size limit",
@@ -485,64 +485,64 @@ const qa = {
485
485
  remove: "Remover",
486
486
  retry: "Tentar novamente"
487
487
  }
488
- }, Ce = { class: "b-file-uploader-file-card__details" }, $e = { class: "b-file-uploader-file-card__info" }, _e = ["id"], je = { class: "b-file-uploader-file-card__actions" }, ze = {
488
+ }, je = { class: "b-file-uploader-file-card__details" }, ze = { class: "b-file-uploader-file-card__info" }, Re = ["id"], Ee = { class: "b-file-uploader-file-card__actions" }, Ie = {
489
489
  name: "file-uploader-file-card",
490
- i18n: { messages: qa }
491
- }, Re = /* @__PURE__ */ la({
492
- ...ze,
490
+ i18n: { messages: Aa }
491
+ }, Le = /* @__PURE__ */ la({
492
+ ...Ie,
493
493
  props: {
494
494
  file: {},
495
495
  supportedFileTypes: { default: null }
496
496
  },
497
497
  emits: ["cancel", "remove", "retry"],
498
498
  setup(a, { expose: i, emit: p }) {
499
- const o = a, n = p, { t: h, locale: f } = sa({ messages: qa }), d = E(null), k = E(null), V = E(null), H = T("file-errors-section"), y = T("cancel-file-button"), X = T("remove-file-button"), D = T("retry-file-button"), q = E(o.file.state === M.SUCCESS), ia = x(() => URL.createObjectURL(o.file.data)), N = x(() => o.file.state === M.ERROR), ca = x(() => o.file.errors.includes(R.ERROR_LOAD)), J = x(() => o.file.errors.includes(R.ERROR_SIZE)), Z = x(() => o.file.errors.includes(R.ERROR_DIMENSIONS)), U = x(() => o.file.errors.includes(R.ERROR_TYPE)), ea = x(() => o.file.state === M.LOADING), ta = x(() => o.file.progress && `(${o.file.progress.toFixed(0)}%)`), K = x(() => Ha(f.value, o.file.data.size)), na = E(), P = E(), da = ji(na, P), ra = x(() => ({
500
- "b-file-uploader-file-card--error": N.value
499
+ const o = a, n = p, { t: w, locale: m } = sa({ messages: Aa }), d = I(null), C = I(null), H = I(null), D = M("file-errors-section"), U = M("cancel-file-button"), y = M("remove-file-button"), W = M("retry-file-button"), E = I(o.file.state === S.SUCCESS), Q = x(() => URL.createObjectURL(o.file.data)), B = x(() => o.file.state === S.ERROR), ca = x(() => o.file.errors.includes(R.ERROR_LOAD)), aa = x(() => o.file.errors.includes(R.ERROR_SIZE)), Y = x(() => o.file.errors.includes(R.ERROR_DIMENSIONS)), Z = x(() => o.file.errors.includes(R.ERROR_TYPE)), N = x(() => o.file.state === S.LOADING), da = x(() => o.file.progress && `(${o.file.progress.toFixed(0)}%)`), ia = x(() => Za(m.value, o.file.data.size)), P = I(), ea = I(), X = Ei(P, ea), ra = x(() => ({
500
+ "b-file-uploader-file-card--error": B.value
501
501
  })), ma = x(() => ({
502
- [`b-file-uploader-file-card__icon--${ke(o.file)}`]: q.value,
503
- "b-file-uploader-file-card__icon--error": N.value
504
- })), G = x(() => ea.value ? hi : N.value ? Fa : q.value ? ye(o.file) : ui);
505
- xa(
502
+ [`b-file-uploader-file-card__icon--${_e(o.file)}`]: E.value,
503
+ "b-file-uploader-file-card__icon--error": B.value
504
+ })), ta = x(() => N.value ? yi : B.value ? qa : E.value ? $e(o.file) : xi);
505
+ ha(
506
506
  () => o.file.state,
507
- (j) => {
508
- if (j === M.SUCCESS && !q.value) {
507
+ (_) => {
508
+ if (_ === S.SUCCESS && !E.value) {
509
509
  const F = setTimeout(() => {
510
- q.value = !0, clearTimeout(F);
510
+ E.value = !0, clearTimeout(F);
511
511
  }, 1200);
512
512
  }
513
513
  }
514
514
  );
515
- function oa() {
516
- if (V.value) {
517
- V.value.$el.focus();
515
+ function na() {
516
+ if (H.value) {
517
+ H.value.$el.focus();
518
518
  return;
519
519
  }
520
520
  if (d.value) {
521
521
  d.value.$el.focus();
522
522
  return;
523
523
  }
524
- if (k.value) {
525
- k.value.$el.focus();
524
+ if (C.value) {
525
+ C.value.$el.focus();
526
526
  return;
527
527
  }
528
528
  }
529
529
  return i({
530
- focus: oa
531
- }), (j, F) => (s(), v("div", {
532
- class: B(["b-file-uploader-file-card", ra.value])
530
+ focus: na
531
+ }), (_, F) => (s(), f("div", {
532
+ class: q(["b-file-uploader-file-card", ra.value])
533
533
  }, [
534
- r("div", Ce, [
535
- r("div", $e, [
536
- O(t(_i), {
537
- name: t(Oa) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
538
- "show-file-icon": q.value
534
+ r("div", je, [
535
+ r("div", ze, [
536
+ O(t(Ri), {
537
+ name: t(Ba) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
538
+ "show-file-icon": E.value
539
539
  }, {
540
- default: b(() => [
541
- (s(), w(li(G.value), {
542
- key: JSON.stringify(G.value),
540
+ default: h(() => [
541
+ (s(), b(ci(ta.value), {
542
+ key: JSON.stringify(ta.value),
543
543
  small: "",
544
544
  "aria-hidden": "true",
545
- class: B(["b-file-uploader-file-card__icon", ma.value]),
545
+ class: q(["b-file-uploader-file-card__icon", ma.value]),
546
546
  "data-testid": "file-uploader-item-icon"
547
547
  }, null, 8, ["class"]))
548
548
  ]),
@@ -550,137 +550,137 @@ const qa = {
550
550
  }, 8, ["name", "show-file-icon"]),
551
551
  r("div", {
552
552
  ref_key: "fileNameContainerRef",
553
- ref: P,
553
+ ref: ea,
554
554
  class: "b-file-uploader-file-card__file-name"
555
555
  }, [
556
- O(t(gi), {
556
+ O(t(wi), {
557
557
  "aria-hidden": "true",
558
558
  tabindex: "-1",
559
- download: j.file.data.name,
560
- to: ia.value,
559
+ download: _.file.data.name,
560
+ to: Q.value,
561
561
  "disable-typography": "",
562
562
  "is-not-routing": "",
563
563
  variant: "quiet"
564
564
  }, {
565
- default: b(() => [
566
- Da((s(), w(t(z), {
565
+ default: h(() => [
566
+ Ha((s(), b(t(z), {
567
567
  ref_key: "fileNameRef",
568
- ref: na,
568
+ ref: P,
569
569
  stronger: "",
570
570
  el: "span"
571
571
  }, {
572
- default: b(() => [
573
- _(u(j.file.data.name), 1)
572
+ default: h(() => [
573
+ j(v(_.file.data.name), 1)
574
574
  ]),
575
575
  _: 1
576
576
  })), [
577
- [t(xi), t(da) ? j.file.data.name : null]
577
+ [t(bi), t(X) ? _.file.data.name : null]
578
578
  ])
579
579
  ]),
580
580
  _: 1
581
581
  }, 8, ["download", "to"])
582
582
  ], 512),
583
- j.file.progress ? (s(), w(t(z), {
583
+ _.file.progress ? (s(), b(t(z), {
584
584
  key: 0,
585
585
  el: "span"
586
586
  }, {
587
- default: b(() => [
588
- _(u(ta.value), 1)
587
+ default: h(() => [
588
+ j(v(da.value), 1)
589
589
  ]),
590
590
  _: 1
591
- })) : j.file.data.size ? (s(), w(t(z), {
591
+ })) : _.file.data.size ? (s(), b(t(z), {
592
592
  key: 1,
593
593
  class: "b-file-uploader-file-card__file-size",
594
594
  "aria-hidden": "true",
595
595
  el: "span"
596
596
  }, {
597
- default: b(() => [
598
- _(u(K.value), 1)
597
+ default: h(() => [
598
+ j(v(ia.value), 1)
599
599
  ]),
600
600
  _: 1
601
- })) : m("", !0)
601
+ })) : u("", !0)
602
602
  ]),
603
- J.value || Z.value || U.value && j.supportedFileTypes ? (s(), v("div", {
603
+ aa.value || Y.value || Z.value && _.supportedFileTypes ? (s(), f("div", {
604
604
  key: 0,
605
- id: t(H),
605
+ id: t(D),
606
606
  role: "alert"
607
607
  }, [
608
- J.value ? (s(), w(t(z), {
608
+ aa.value ? (s(), b(t(z), {
609
609
  key: 0,
610
610
  class: "b-file-uploader-file-card__error-message"
611
611
  }, {
612
- default: b(() => [
613
- _(u(t(h)("fileExceedsSizeLimit")), 1)
612
+ default: h(() => [
613
+ j(v(t(w)("fileExceedsSizeLimit")), 1)
614
614
  ]),
615
615
  _: 1
616
- })) : m("", !0),
617
- Z.value ? (s(), w(t(z), {
616
+ })) : u("", !0),
617
+ Y.value ? (s(), b(t(z), {
618
618
  key: 1,
619
619
  class: "b-file-uploader-file-card__error-message"
620
620
  }, {
621
- default: b(() => [
622
- _(u(t(h)("imageDimensionsExceedLimits")), 1)
621
+ default: h(() => [
622
+ j(v(t(w)("imageDimensionsExceedLimits")), 1)
623
623
  ]),
624
624
  _: 1
625
- })) : m("", !0),
626
- U.value && j.supportedFileTypes ? (s(), w(t(z), {
625
+ })) : u("", !0),
626
+ Z.value && _.supportedFileTypes ? (s(), b(t(z), {
627
627
  key: 2,
628
628
  class: "b-file-uploader-file-card__error-message"
629
629
  }, {
630
- default: b(() => [
631
- _(u(t(h)("fileTypeMustBe", { list: j.supportedFileTypes })), 1)
630
+ default: h(() => [
631
+ j(v(t(w)("fileTypeMustBe", { list: _.supportedFileTypes })), 1)
632
632
  ]),
633
633
  _: 1
634
- })) : m("", !0)
635
- ], 8, _e)) : m("", !0)
634
+ })) : u("", !0)
635
+ ], 8, Re)) : u("", !0)
636
636
  ]),
637
- r("div", je, [
638
- ca.value ? (s(), w(t(fa), {
637
+ r("div", Ee, [
638
+ ca.value ? (s(), b(t(ga), {
639
639
  key: 0,
640
640
  ref_key: "retryFileButtonRef",
641
- ref: V,
642
- "aria-labelledby": `${t(H)} ${t(D)}`,
641
+ ref: H,
642
+ "aria-labelledby": `${t(D)} ${t(W)}`,
643
643
  variant: "tertiary",
644
- onClick: F[0] || (F[0] = (W) => n("retry"))
644
+ onClick: F[0] || (F[0] = (oa) => n("retry"))
645
645
  }, {
646
- iconLeft: b(() => [
647
- O(t(fi), {
648
- id: t(D),
649
- "svg-title": `${t(h)("retry")} - ${j.file.data.name} `
646
+ iconLeft: h(() => [
647
+ O(t(hi), {
648
+ id: t(W),
649
+ "svg-title": `${t(w)("retry")} - ${_.file.data.name} `
650
650
  }, null, 8, ["id", "svg-title"])
651
651
  ]),
652
- default: b(() => [
653
- _(" " + u(t(h)("retry")), 1)
652
+ default: h(() => [
653
+ j(" " + v(t(w)("retry")), 1)
654
654
  ]),
655
655
  _: 1
656
- }, 8, ["aria-labelledby"])) : m("", !0),
657
- ea.value || N.value ? (s(), w(t(fa), {
656
+ }, 8, ["aria-labelledby"])) : u("", !0),
657
+ N.value || B.value ? (s(), b(t(ga), {
658
658
  key: 1,
659
659
  ref_key: "cancelFileButtonRef",
660
- ref: k,
661
- "aria-labelledby": `${t(H)} ${t(y)}`,
660
+ ref: C,
661
+ "aria-labelledby": `${t(D)} ${t(U)}`,
662
662
  variant: "tertiary",
663
- onClick: F[1] || (F[1] = (W) => n("cancel"))
663
+ onClick: F[1] || (F[1] = (oa) => n("cancel"))
664
664
  }, {
665
- iconLeft: b(() => [
666
- O(t(vi), {
667
- id: t(y),
668
- "svg-title": `${t(h)("cancel")} - ${j.file.data.name}`
665
+ iconLeft: h(() => [
666
+ O(t(gi), {
667
+ id: t(U),
668
+ "svg-title": `${t(w)("cancel")} - ${_.file.data.name}`
669
669
  }, null, 8, ["id", "svg-title"])
670
670
  ]),
671
671
  _: 1
672
- }, 8, ["aria-labelledby"])) : (s(), w(t(fa), {
672
+ }, 8, ["aria-labelledby"])) : (s(), b(t(ga), {
673
673
  key: 2,
674
674
  ref_key: "removeFileButtonRef",
675
675
  ref: d,
676
- "aria-labelledby": `${t(H)} ${t(X)}`,
676
+ "aria-labelledby": `${t(D)} ${t(y)}`,
677
677
  variant: "tertiary",
678
- onClick: F[2] || (F[2] = (W) => n("remove"))
678
+ onClick: F[2] || (F[2] = (oa) => n("remove"))
679
679
  }, {
680
- iconLeft: b(() => [
681
- O(t(mi), {
682
- id: t(X),
683
- "svg-title": `${t(h)("remove")} - ${j.file.data.name}`
680
+ iconLeft: h(() => [
681
+ O(t(fi), {
682
+ id: t(y),
683
+ "svg-title": `${t(w)("remove")} - ${_.file.data.name}`
684
684
  }, null, 8, ["id", "svg-title"])
685
685
  ]),
686
686
  _: 1
@@ -688,7 +688,7 @@ const qa = {
688
688
  ])
689
689
  ], 2));
690
690
  }
691
- }), Ee = /* @__PURE__ */ I(Re, [["__scopeId", "data-v-389ff9bd"]]), Ba = {
691
+ }), Te = /* @__PURE__ */ L(Le, [["__scopeId", "data-v-389ff9bd"]]), Ua = {
692
692
  "en-US": {
693
693
  maxFileSize: "Max file size: {size}",
694
694
  maxImageDimensions: "Max image dimensions: {width} × {height}px",
@@ -697,10 +697,10 @@ const qa = {
697
697
  maxUpload: "Max upload: {count} file | Max upload: {count} files",
698
698
  supportedFileTypes: "Supported file types: {list}"
699
699
  }
700
- }, Ie = {
701
- i18n: { messages: Ba }
702
- }, Le = /* @__PURE__ */ la({
703
- ...Ie,
700
+ }, Me = {
701
+ i18n: { messages: Ua }
702
+ }, Se = /* @__PURE__ */ la({
703
+ ...Me,
704
704
  __name: "file-uploader-restrictions",
705
705
  props: {
706
706
  condensed: { type: Boolean, default: null },
@@ -711,65 +711,65 @@ const qa = {
711
711
  supportedFileTypes: { default: null }
712
712
  },
713
713
  setup(a) {
714
- const i = a, { t: p, tc: l, locale: o } = sa({ messages: Ba }), n = x(() => ({
714
+ const i = a, { t: p, tc: l, locale: o } = sa({ messages: Ua }), n = x(() => ({
715
715
  "b-file-uploader-restrictions--condensed": i.condensed,
716
716
  "b-file-uploader-restrictions--disabled": i.disabled
717
717
  }));
718
- function h(d) {
718
+ function w(d) {
719
719
  return {
720
720
  "b-file-uploader-restrictions--error": d
721
721
  };
722
722
  }
723
- const f = x(() => {
723
+ const m = x(() => {
724
724
  if (!i.maxDimensions)
725
725
  return null;
726
726
  const {
727
- value: { width: d, height: k }
727
+ value: { width: d, height: C }
728
728
  } = i.maxDimensions;
729
- return d && k ? p("maxImageDimensions", { width: d, height: k }) : d ? p("maxImageWidth", { width: d }) : k ? p("maxImageHeight", { height: k }) : null;
729
+ return d && C ? p("maxImageDimensions", { width: d, height: C }) : d ? p("maxImageWidth", { width: d }) : C ? p("maxImageHeight", { height: C }) : null;
730
730
  });
731
- return (d, k) => (s(), v("div", {
732
- class: B(["b-file-uploader-restrictions", n.value])
731
+ return (d, C) => (s(), f("div", {
732
+ class: q(["b-file-uploader-restrictions", n.value])
733
733
  }, [
734
- d.supportedFileTypes ? (s(), w(t(z), {
734
+ d.supportedFileTypes ? (s(), b(t(z), {
735
735
  key: 0,
736
- class: B(h(d.supportedFileTypes.error))
736
+ class: q(w(d.supportedFileTypes.error))
737
737
  }, {
738
- default: b(() => [
739
- _(u(t(p)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
738
+ default: h(() => [
739
+ j(v(t(p)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
740
740
  ]),
741
741
  _: 1
742
- }, 8, ["class"])) : m("", !0),
743
- d.maxSize ? (s(), w(t(z), {
742
+ }, 8, ["class"])) : u("", !0),
743
+ d.maxSize ? (s(), b(t(z), {
744
744
  key: 1,
745
- class: B(h(d.maxSize.error))
745
+ class: q(w(d.maxSize.error))
746
746
  }, {
747
- default: b(() => [
748
- _(u(t(p)("maxFileSize", { size: t(Ha)(t(o), d.maxSize.value) })), 1)
747
+ default: h(() => [
748
+ j(v(t(p)("maxFileSize", { size: t(Za)(t(o), d.maxSize.value) })), 1)
749
749
  ]),
750
750
  _: 1
751
- }, 8, ["class"])) : m("", !0),
752
- d.maxDimensions ? (s(), w(t(z), {
751
+ }, 8, ["class"])) : u("", !0),
752
+ d.maxDimensions ? (s(), b(t(z), {
753
753
  key: 2,
754
- class: B(h(d.maxDimensions.error))
754
+ class: q(w(d.maxDimensions.error))
755
755
  }, {
756
- default: b(() => [
757
- _(u(f.value), 1)
756
+ default: h(() => [
757
+ j(v(m.value), 1)
758
758
  ]),
759
759
  _: 1
760
- }, 8, ["class"])) : m("", !0),
761
- d.maxCount ? (s(), w(t(z), {
760
+ }, 8, ["class"])) : u("", !0),
761
+ d.maxCount ? (s(), b(t(z), {
762
762
  key: 3,
763
- class: B(h(d.maxCount.error))
763
+ class: q(w(d.maxCount.error))
764
764
  }, {
765
- default: b(() => [
766
- _(u(t(l)("maxUpload", d.maxCount.value)), 1)
765
+ default: h(() => [
766
+ j(v(t(l)("maxUpload", d.maxCount.value)), 1)
767
767
  ]),
768
768
  _: 1
769
- }, 8, ["class"])) : m("", !0)
769
+ }, 8, ["class"])) : u("", !0)
770
770
  ], 2));
771
771
  }
772
- }), Va = /* @__PURE__ */ I(Le, [["__scopeId", "data-v-d7c2e9cd"]]), Za = {
772
+ }), Da = /* @__PURE__ */ L(Se, [["__scopeId", "data-v-d7c2e9cd"]]), Na = {
773
773
  "application/prs.cww": ["cww"],
774
774
  "application/prs.xsf+xml": ["xsf"],
775
775
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1468,8 +1468,8 @@ const qa = {
1468
1468
  "video/x-smv": ["smv"],
1469
1469
  "x-conference/x-cooltalk": ["ice"]
1470
1470
  };
1471
- Object.freeze(Za);
1472
- const Aa = {
1471
+ Object.freeze(Na);
1472
+ const Pa = {
1473
1473
  "application/andrew-inset": ["ez"],
1474
1474
  "application/appinstaller": ["appinstaller"],
1475
1475
  "application/applixware": ["aw"],
@@ -1821,31 +1821,31 @@ const Aa = {
1821
1821
  "video/quicktime": ["qt", "mov"],
1822
1822
  "video/webm": ["webm"]
1823
1823
  };
1824
- Object.freeze(Aa);
1825
- var L = function(a, i, p, l) {
1824
+ Object.freeze(Pa);
1825
+ var T = function(a, i, p, l) {
1826
1826
  if (p === "a" && !l) throw new TypeError("Private accessor was defined without a getter");
1827
1827
  if (typeof i == "function" ? a !== i || !l : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1828
1828
  return p === "m" ? l : p === "a" ? l.call(a) : l ? l.value : i.get(a);
1829
- }, Y, aa, A;
1830
- class Te {
1829
+ }, G, K, A;
1830
+ class Ve {
1831
1831
  constructor(...i) {
1832
- Y.set(this, /* @__PURE__ */ new Map()), aa.set(this, /* @__PURE__ */ new Map()), A.set(this, /* @__PURE__ */ new Map());
1832
+ G.set(this, /* @__PURE__ */ new Map()), K.set(this, /* @__PURE__ */ new Map()), A.set(this, /* @__PURE__ */ new Map());
1833
1833
  for (const p of i)
1834
1834
  this.define(p);
1835
1835
  }
1836
1836
  define(i, p = !1) {
1837
1837
  for (let [l, o] of Object.entries(i)) {
1838
- l = l.toLowerCase(), o = o.map((f) => f.toLowerCase()), L(this, A, "f").has(l) || L(this, A, "f").set(l, /* @__PURE__ */ new Set());
1839
- const n = L(this, A, "f").get(l);
1840
- let h = !0;
1841
- for (let f of o) {
1842
- const d = f.startsWith("*");
1843
- if (f = d ? f.slice(1) : f, n == null || n.add(f), h && L(this, aa, "f").set(l, f), h = !1, d)
1838
+ l = l.toLowerCase(), o = o.map((m) => m.toLowerCase()), T(this, A, "f").has(l) || T(this, A, "f").set(l, /* @__PURE__ */ new Set());
1839
+ const n = T(this, A, "f").get(l);
1840
+ let w = !0;
1841
+ for (let m of o) {
1842
+ const d = m.startsWith("*");
1843
+ if (m = d ? m.slice(1) : m, n == null || n.add(m), w && T(this, K, "f").set(l, m), w = !1, d)
1844
1844
  continue;
1845
- const k = L(this, Y, "f").get(f);
1846
- if (k && k != l && !p)
1847
- throw new Error(`"${l} -> ${f}" conflicts with "${k} -> ${f}". Pass \`force=true\` to override this definition.`);
1848
- L(this, Y, "f").set(f, l);
1845
+ const C = T(this, G, "f").get(m);
1846
+ if (C && C != l && !p)
1847
+ throw new Error(`"${l} -> ${m}" conflicts with "${C} -> ${m}". Pass \`force=true\` to override this definition.`);
1848
+ T(this, G, "f").set(m, l);
1849
1849
  }
1850
1850
  }
1851
1851
  return this;
@@ -1854,36 +1854,36 @@ class Te {
1854
1854
  if (typeof i != "string")
1855
1855
  return null;
1856
1856
  const p = i.replace(/^.*[/\\]/, "").toLowerCase(), l = p.replace(/^.*\./, "").toLowerCase(), o = p.length < i.length;
1857
- return !(l.length < p.length - 1) && o ? null : L(this, Y, "f").get(l) ?? null;
1857
+ return !(l.length < p.length - 1) && o ? null : T(this, G, "f").get(l) ?? null;
1858
1858
  }
1859
1859
  getExtension(i) {
1860
1860
  var p;
1861
- return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i && L(this, aa, "f").get(i.trim().toLowerCase())) ?? null);
1861
+ return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i && T(this, K, "f").get(i.trim().toLowerCase())) ?? null);
1862
1862
  }
1863
1863
  getAllExtensions(i) {
1864
- return typeof i != "string" ? null : L(this, A, "f").get(i.toLowerCase()) ?? null;
1864
+ return typeof i != "string" ? null : T(this, A, "f").get(i.toLowerCase()) ?? null;
1865
1865
  }
1866
1866
  _freeze() {
1867
1867
  this.define = () => {
1868
1868
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1869
1869
  }, Object.freeze(this);
1870
- for (const i of L(this, A, "f").values())
1870
+ for (const i of T(this, A, "f").values())
1871
1871
  Object.freeze(i);
1872
1872
  return this;
1873
1873
  }
1874
1874
  _getTestState() {
1875
1875
  return {
1876
- types: L(this, Y, "f"),
1877
- extensions: L(this, aa, "f")
1876
+ types: T(this, G, "f"),
1877
+ extensions: T(this, K, "f")
1878
1878
  };
1879
1879
  }
1880
1880
  }
1881
- Y = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap();
1882
- const Na = new Te(Aa, Za)._freeze();
1883
- function Me(a) {
1884
- return a.includes("/") ? `.${Na.getExtension(a).toUpperCase()}` : a.toUpperCase();
1881
+ G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap();
1882
+ const Ga = new Ve(Pa, Na)._freeze();
1883
+ function Fe(a) {
1884
+ return a.includes("/") ? `.${Ga.getExtension(a).toUpperCase()}` : a.toUpperCase();
1885
1885
  }
1886
- function Se(a) {
1886
+ function De(a) {
1887
1887
  const { locale: i, t: p } = sa();
1888
1888
  return { supportedFileTypeList: x(() => {
1889
1889
  const o = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
@@ -1897,13 +1897,13 @@ function Se(a) {
1897
1897
  case "video/*":
1898
1898
  return p("videoFiles");
1899
1899
  default:
1900
- return Me(n);
1900
+ return Fe(n);
1901
1901
  }
1902
1902
  })
1903
1903
  ) : null;
1904
1904
  }) };
1905
1905
  }
1906
- const Ua = {
1906
+ const Wa = {
1907
1907
  "en-US": {
1908
1908
  audioFiles: "audio files",
1909
1909
  browseFiles: "Browse files",
@@ -1916,48 +1916,48 @@ const Ua = {
1916
1916
  youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
1917
1917
  }
1918
1918
  };
1919
- function Ve(a) {
1920
- return Na.getType(a) ?? a;
1919
+ function Oe(a) {
1920
+ return Ga.getType(a) ?? a;
1921
1921
  }
1922
- function De({ maxCount: a, accept: i }) {
1923
- const p = ga({
1922
+ function He({ maxCount: a, accept: i }) {
1923
+ const p = ba({
1924
1924
  invalidTypes: !1,
1925
1925
  partiallyInvalidTypes: !1,
1926
1926
  maxCountOverflow: !1
1927
- }), l = ga({
1927
+ }), l = ba({
1928
1928
  dragging: !1,
1929
1929
  error: !1
1930
- }), o = x(() => i.value ? i.value.split(",").map((d) => Ve(d.trim().toLocaleLowerCase())) : void 0);
1930
+ }), o = x(() => i.value ? i.value.split(",").map((d) => Oe(d.trim().toLocaleLowerCase())) : void 0);
1931
1931
  function n() {
1932
1932
  l.dragging = !1, l.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
1933
1933
  }
1934
- function h(f, d) {
1935
- if (l.dragging = !0, (!d.dataTransfer.types.includes("Files") || f > a.value) && (p.maxCountOverflow = !0, l.error = !0), !o.value)
1934
+ function w(m, d) {
1935
+ if (l.dragging = !0, (!d.dataTransfer.types.includes("Files") || m > a.value) && (p.maxCountOverflow = !0, l.error = !0), !o.value)
1936
1936
  return;
1937
- let k = 0;
1938
- for (const V of d.dataTransfer.items)
1939
- o.value.includes(V.type) && k++;
1940
- if (k === 0) {
1937
+ let C = 0;
1938
+ for (const H of d.dataTransfer.items)
1939
+ o.value.includes(H.type) && C++;
1940
+ if (C === 0) {
1941
1941
  l.error = !0, p.invalidTypes = !0;
1942
1942
  return;
1943
1943
  }
1944
- !p.invalidTypes && k !== d.dataTransfer.items.length && (l.error = !0, p.partiallyInvalidTypes = !0);
1944
+ !p.invalidTypes && C !== d.dataTransfer.items.length && (l.error = !0, p.partiallyInvalidTypes = !0);
1945
1945
  }
1946
1946
  return {
1947
1947
  dragState: l,
1948
1948
  dragErrors: p,
1949
1949
  resetDragState: n,
1950
- onDragEnterValidations: h
1950
+ onDragEnterValidations: w
1951
1951
  };
1952
1952
  }
1953
- const Fe = ["id", "accept", "disabled", "multiple"], Oe = ["id"], He = ["aria-labelledby", "tabindex"], qe = {
1953
+ const qe = ["id", "accept", "disabled", "multiple"], Be = ["id"], Ze = ["aria-labelledby", "tabindex"], Ae = {
1954
1954
  class: "b-file-uploader__icon",
1955
1955
  "aria-hidden": "true"
1956
- }, Be = { class: "b-file-uploader__files" }, Ze = {
1956
+ }, Ue = { class: "b-file-uploader__files" }, Ne = {
1957
1957
  model: { prop: "modelValue" },
1958
- i18n: { messages: Ua }
1959
- }, Ae = /* @__PURE__ */ la({
1960
- ...Ze,
1958
+ i18n: { messages: Wa }
1959
+ }, Pe = /* @__PURE__ */ la({
1960
+ ...Ne,
1961
1961
  __name: "file-uploader",
1962
1962
  props: {
1963
1963
  accept: { default: null },
@@ -1974,22 +1974,33 @@ const Fe = ["id", "accept", "disabled", "multiple"], Oe = ["id"], He = ["aria-la
1974
1974
  required: { type: Boolean },
1975
1975
  tooltipText: { default: null }
1976
1976
  },
1977
- emits: ["change", "update:modelValue", "error:upload"],
1977
+ emits: ["change", "input", "update:modelValue", "error:upload"],
1978
1978
  setup(a, { emit: i }) {
1979
- const { t: p, tc: l } = sa({ messages: Ua }), o = i, n = a, { supportedFileTypeList: h } = Se(va(n, "accept")), f = T("browse-button"), d = T("custom-text"), k = T("drop-files-text"), V = T("comma-text"), H = T("file-uploader-restrictions"), y = E(null), X = E([]), D = E(null), q = E(null), ia = T("input"), N = T("input-error"), ca = x(() => {
1980
- const e = n.condensed ? "" : `${k} ${V}`, c = n.description ? `${d} ${V}` : "", C = `${H} ${V}`;
1981
- return `${e} ${c} ${C} ${f}`;
1982
- }), { dragState: J, dragErrors: Z, resetDragState: U, onDragEnterValidations: ea } = De({
1983
- accept: va(n, "accept"),
1984
- maxCount: va(n, "maxCount")
1985
- }), ta = x(() => {
1986
- var e, c, C;
1979
+ const { t: p, tc: l } = sa({ messages: Wa }), o = i, n = a;
1980
+ function w(e) {
1981
+ return !!e && typeof e.length == "number" && typeof e.item == "function";
1982
+ }
1983
+ Oa(() => {
1984
+ w(n.modelValue) || vi(
1985
+ "BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
1986
+ "Use FileList instead.",
1987
+ "2.0.0"
1988
+ );
1989
+ });
1990
+ const { supportedFileTypeList: m } = De(xa(n, "accept")), d = M("browse-button"), C = M("custom-text"), H = M("drop-files-text"), D = M("comma-text"), U = M("file-uploader-restrictions"), y = I(null), W = I([]), E = I(null), Q = I(null), B = M("input"), ca = M("input-error"), aa = x(() => {
1991
+ const e = n.condensed ? "" : `${H} ${D}`, c = n.description ? `${C} ${D}` : "", k = `${U} ${D}`;
1992
+ return `${e} ${c} ${k} ${d}`;
1993
+ }), { dragState: Y, dragErrors: Z, resetDragState: N, onDragEnterValidations: da } = He({
1994
+ accept: xa(n, "accept"),
1995
+ maxCount: xa(n, "maxCount")
1996
+ }), ia = x(() => {
1997
+ var e, c, k;
1987
1998
  return {
1988
1999
  condensed: n.condensed,
1989
2000
  disabled: n.disabled,
1990
- maxCount: P.value ? {
2001
+ maxCount: X.value ? {
1991
2002
  value: n.maxCount,
1992
- error: Z.maxCountOverflow || oa.value
2003
+ error: Z.maxCountOverflow || F.value
1993
2004
  } : null,
1994
2005
  maxDimensions: n.maxDimensions ? {
1995
2006
  value: n.maxDimensions,
@@ -1999,135 +2010,149 @@ const Fe = ["id", "accept", "disabled", "multiple"], Oe = ["id"], He = ["aria-la
1999
2010
  value: n.maxSize,
2000
2011
  error: (c = y.value) == null ? void 0 : c.some(($) => $.errors.includes(R.ERROR_SIZE))
2001
2012
  } : null,
2002
- supportedFileTypes: h.value ? {
2003
- value: h.value,
2004
- error: Z.invalidTypes || Z.partiallyInvalidTypes || ((C = y.value) == null ? void 0 : C.some(($) => $.errors.includes(R.ERROR_TYPE)))
2013
+ supportedFileTypes: m.value ? {
2014
+ value: m.value,
2015
+ error: Z.invalidTypes || Z.partiallyInvalidTypes || ((k = y.value) == null ? void 0 : k.some(($) => $.errors.includes(R.ERROR_TYPE)))
2005
2016
  } : null
2006
2017
  };
2007
- }), K = E(), na = x(() => ({
2018
+ }), P = I(), ea = x(() => ({
2008
2019
  [`b-file-uploader--${pa.DISABLED}`]: n.disabled,
2009
- [`b-file-uploader--${pa.DRAG_OVER}`]: J.dragging,
2010
- [`b-file-uploader--${pa.ERROR}`]: G.value,
2020
+ [`b-file-uploader--${pa.DRAG_OVER}`]: Y.dragging,
2021
+ [`b-file-uploader--${pa.ERROR}`]: _.value,
2011
2022
  "b-file-uploader--condensed": n.condensed
2012
- })), P = x(() => n.maxCount > 1), da = x(() => {
2023
+ })), X = x(() => n.maxCount > 1), ra = x(() => {
2013
2024
  var e;
2014
2025
  return n.maxCount && ((e = y.value) == null ? void 0 : e.length) >= n.maxCount;
2015
- }), ra = x(() => {
2026
+ }), ma = x(() => {
2016
2027
  var e;
2017
2028
  return (e = y.value) == null ? void 0 : e.some((c) => c.state === "loading");
2018
- }), ma = (e) => (c) => {
2019
- X.value[e] = c;
2020
- }, G = x(() => !!n.errorMessage || J.error), oa = x(() => {
2029
+ }), ta = (e) => (c) => {
2030
+ W.value[e] = c;
2031
+ };
2032
+ function na(e) {
2033
+ if (e) {
2034
+ ei(e), ti(e);
2035
+ const c = ni(e);
2036
+ o("change", c), o("update:modelValue", c), o("input", c);
2037
+ } else
2038
+ o("change"), o("update:modelValue"), o("input");
2039
+ }
2040
+ const _ = x(() => !!n.errorMessage || Y.error), F = x(() => {
2021
2041
  var e;
2022
2042
  return ((e = y.value) == null ? void 0 : e.length) > n.maxCount;
2023
- }), j = E(!1), F = x(() => {
2043
+ }), oa = I(!1), Ya = x(() => {
2024
2044
  var e;
2025
2045
  return (e = y.value) == null ? void 0 : e.some((c) => c.state === "error");
2026
2046
  });
2027
- xa(F, (e) => {
2028
- ra.value || o("error:upload", e);
2047
+ ha(Ya, (e) => {
2048
+ ma.value || o("error:upload", e);
2029
2049
  });
2030
- async function W() {
2050
+ async function ua() {
2031
2051
  var e;
2032
- if (await di(), y.value.length === n.maxCount) {
2033
- (e = X.value[0]) == null || e.focus();
2052
+ if (await mi(), y.value.length === n.maxCount) {
2053
+ (e = W.value[0]) == null || e.focus();
2034
2054
  return;
2035
2055
  }
2036
- q.value.focus();
2056
+ Q.value.focus();
2037
2057
  }
2038
- async function ha(e) {
2039
- y.value = y.value.filter(({ id: c }) => c !== e.id), await W();
2058
+ async function wa(e) {
2059
+ y.value = y.value.filter(({ id: c }) => c !== e.id), await ua(), na(y.value);
2040
2060
  }
2041
- function ba(e) {
2042
- const c = ga({
2043
- id: T("file"),
2061
+ function va(e) {
2062
+ const c = ba({
2063
+ id: M("file"),
2044
2064
  data: e,
2045
2065
  errors: [],
2046
2066
  progress: null,
2047
- state: M.LOADING,
2048
- type: Li(e)
2067
+ state: S.LOADING,
2068
+ type: Si(e)
2049
2069
  });
2050
- return Mi(c, n.accept, n.maxDimensions), c;
2070
+ return Fi(c, n.accept, n.maxDimensions), c;
2051
2071
  }
2052
- function Pa(e) {
2072
+ function Xa(e) {
2053
2073
  var c;
2054
2074
  ((c = y.value) == null ? void 0 : c.length) === n.maxCount && e.preventDefault();
2055
2075
  }
2056
- async function wa(e) {
2076
+ async function ya(e) {
2057
2077
  if (n.maxCount === 1 && e.length > n.maxCount) {
2058
- ua(), U();
2078
+ fa(), N();
2059
2079
  return;
2060
2080
  }
2061
- P.value ? y.value = [...y.value || [], ...Array.from(e).map((c) => ba(c))] : (y.value = [ba(e[0])], await W());
2081
+ X.value ? y.value = [...y.value || [], ...Array.from(e).map((c) => va(c))] : (y.value = [va(e[0])], await ua()), na(y.value);
2062
2082
  }
2063
- function Ga(e) {
2064
- var C, $;
2083
+ function Ja(e) {
2084
+ var k, $;
2065
2085
  if (n.disabled)
2066
2086
  return;
2067
- K.value = e.target;
2068
- const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + ((($ = y.value) == null ? void 0 : $.length) ?? 0);
2069
- ea(c, e);
2087
+ P.value = e.target;
2088
+ const c = (((k = e.dataTransfer.items) == null ? void 0 : k.length) ?? 0) + ((($ = y.value) == null ? void 0 : $.length) ?? 0);
2089
+ da(c, e);
2070
2090
  }
2071
- function ua() {
2072
- K.value = null;
2091
+ function fa() {
2092
+ P.value = null;
2073
2093
  }
2074
- function Wa(e) {
2075
- K.value === e.target && (ua(), U());
2094
+ function Ka(e) {
2095
+ P.value === e.target && (fa(), N());
2076
2096
  }
2077
- function Ya(e) {
2097
+ function Qa(e) {
2078
2098
  e.preventDefault(), n.disabled && (e.dataTransfer.dropEffect = "none");
2079
2099
  }
2080
- async function Xa(e) {
2100
+ async function ai(e) {
2081
2101
  var c;
2082
- n.disabled || (!Z.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && wa(e.dataTransfer.files), ua(), U());
2102
+ n.disabled || (!Z.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && ya(e.dataTransfer.files), fa(), N());
2083
2103
  }
2084
- async function Ja() {
2104
+ async function ii() {
2085
2105
  var e;
2086
- (e = D.value.files) != null && e.length && wa(D.value.files), D.value.value = "", await W();
2106
+ (e = E.value.files) != null && e.length && ya(E.value.files), E.value.value = "", await ua();
2087
2107
  }
2088
- function Ka(e) {
2108
+ ha(
2109
+ () => n.modelValue,
2110
+ (e) => {
2111
+ if (e && w(e)) {
2112
+ const c = e, k = Array.from(c);
2113
+ y.value = k.map(($) => va($));
2114
+ }
2115
+ },
2116
+ { immediate: !0 }
2117
+ );
2118
+ function ei(e) {
2089
2119
  const c = n.maxCount && e.length <= n.maxCount;
2090
- j.value = !c;
2120
+ oa.value = !c;
2091
2121
  }
2092
- function Qa(e) {
2122
+ function ti(e) {
2093
2123
  n.maxSize && e.forEach((c) => {
2094
- const C = c;
2095
- C.data.size > n.maxSize && (C.state = M.ERROR, C.errors.push(R.ERROR_SIZE));
2124
+ const k = c;
2125
+ k.data.size > n.maxSize && (k.state = S.ERROR, k.errors.push(R.ERROR_SIZE));
2096
2126
  });
2097
2127
  }
2098
- function ai(e) {
2128
+ function ni(e) {
2099
2129
  const c = e.filter(
2100
- ({ errors: C }) => !C.includes(R.ERROR_LOAD) && !C.includes(R.ERROR_SIZE)
2130
+ ({ errors: k }) => !k.includes(R.ERROR_LOAD) && !k.includes(R.ERROR_SIZE)
2101
2131
  );
2102
2132
  if (c.length) {
2103
- const C = new DataTransfer();
2104
- return c.forEach(({ data: $ }) => C.items.add($)), C.files;
2133
+ const k = new DataTransfer();
2134
+ return c.forEach(({ data: $, id: ka }) => {
2135
+ k.items.add($);
2136
+ }), k.files;
2105
2137
  }
2106
2138
  }
2107
- return xa(y, (e) => {
2108
- if (e) {
2109
- Ka(e), Qa(e);
2110
- const c = ai(e);
2111
- o("change", c), o("update:modelValue", c);
2112
- } else
2113
- o("change"), o("update:modelValue");
2114
- }), (e, c) => {
2115
- var C;
2116
- return s(), v("div", {
2117
- class: B(["b-file-uploader", na.value])
2139
+ return (e, c) => {
2140
+ var k;
2141
+ return s(), f("div", {
2142
+ class: q(["b-file-uploader", ea.value])
2118
2143
  }, [
2119
- O(t(bi), {
2144
+ O(t(ki), {
2120
2145
  class: "b-file-uploader__label",
2121
- for: t(ia),
2146
+ for: t(B),
2122
2147
  label: e.label,
2123
2148
  optional: e.optional,
2124
2149
  required: e.required,
2125
2150
  "tooltip-text": e.tooltipText
2126
2151
  }, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
2127
2152
  r("input", {
2128
- id: t(ia),
2153
+ id: t(B),
2129
2154
  ref_key: "inputRef",
2130
- ref: D,
2155
+ ref: E,
2131
2156
  "aria-hidden": "true",
2132
2157
  type: "file",
2133
2158
  tabindex: "-1",
@@ -2135,121 +2160,121 @@ const Fe = ["id", "accept", "disabled", "multiple"], Oe = ["id"], He = ["aria-la
2135
2160
  class: "b-file-uploader__input",
2136
2161
  accept: e.accept,
2137
2162
  disabled: e.disabled,
2138
- multiple: P.value,
2139
- onChange: Ja,
2140
- onClick: Pa
2141
- }, null, 40, Fe),
2163
+ multiple: X.value,
2164
+ onChange: ii,
2165
+ onClick: Xa
2166
+ }, null, 40, qe),
2142
2167
  r("span", {
2143
- id: t(V),
2168
+ id: t(D),
2144
2169
  "aria-hidden": "true",
2145
2170
  class: "b-file-uploader__invisible-comma"
2146
- }, " , ", 8, Oe),
2147
- da.value ? m("", !0) : (s(), v("div", {
2171
+ }, " , ", 8, Be),
2172
+ ra.value ? u("", !0) : (s(), f("div", {
2148
2173
  key: 0,
2149
2174
  ref_key: "dropAreaRef",
2150
- ref: q,
2151
- "aria-labelledby": ca.value,
2175
+ ref: Q,
2176
+ "aria-labelledby": aa.value,
2152
2177
  class: "b-file-uploader__area",
2153
2178
  role: "button",
2154
2179
  tabindex: e.disabled ? -1 : 0,
2155
- onClick: c[0] || (c[0] = ($) => D.value.click()),
2156
- onDragenter: Q(Ga, ["stop", "prevent"]),
2157
- onDragleave: Q(Wa, ["stop", "prevent"]),
2158
- onDrop: Q(Xa, ["stop", "prevent"]),
2159
- onDragover: Ya,
2180
+ onClick: c[0] || (c[0] = ($) => E.value.click()),
2181
+ onDragenter: J(Ja, ["stop", "prevent"]),
2182
+ onDragleave: J(Ka, ["stop", "prevent"]),
2183
+ onDrop: J(ai, ["stop", "prevent"]),
2184
+ onDragover: Qa,
2160
2185
  onKeydownCapture: [
2161
- c[1] || (c[1] = ka(Q(($) => D.value.click(), ["prevent"]), ["enter"])),
2162
- c[2] || (c[2] = ka(Q(($) => D.value.click(), ["prevent"]), ["space"]))
2186
+ c[1] || (c[1] = $a(J(($) => E.value.click(), ["prevent"]), ["enter"])),
2187
+ c[2] || (c[2] = $a(J(($) => E.value.click(), ["prevent"]), ["space"]))
2163
2188
  ]
2164
2189
  }, [
2165
- r("div", qe, [
2166
- G.value ? (s(), w(t(Fa), { key: 0 })) : (s(), w(t($i), { key: 1 }))
2190
+ r("div", Ae, [
2191
+ _.value ? (s(), b(t(qa), { key: 0 })) : (s(), b(t(zi), { key: 1 }))
2167
2192
  ]),
2168
- e.condensed ? m("", !0) : (s(), v(Ca, { key: 0 }, [
2193
+ e.condensed ? u("", !0) : (s(), f(_a, { key: 0 }, [
2169
2194
  O(t(z), {
2170
- id: t(k),
2195
+ id: t(H),
2171
2196
  el: "span",
2172
2197
  strongest: "",
2173
2198
  class: "b-file-uploader__title"
2174
2199
  }, {
2175
- default: b(() => [
2176
- _(u(t(l)("dropFiles", e.maxCount)), 1)
2200
+ default: h(() => [
2201
+ j(v(t(l)("dropFiles", e.maxCount)), 1)
2177
2202
  ]),
2178
2203
  _: 1
2179
2204
  }, 8, ["id"]),
2180
- e.description ? (s(), w(t(z), {
2205
+ e.description ? (s(), b(t(z), {
2181
2206
  key: 0,
2182
- id: t(d),
2207
+ id: t(C),
2183
2208
  el: "span",
2184
2209
  class: "b-file-uploader__description"
2185
2210
  }, {
2186
- default: b(() => [
2187
- _(u(e.description), 1)
2211
+ default: h(() => [
2212
+ j(v(e.description), 1)
2188
2213
  ]),
2189
2214
  _: 1
2190
- }, 8, ["id"])) : m("", !0),
2191
- O(t(Va), S(ta.value, { id: t(H) }), null, 16, ["id"])
2215
+ }, 8, ["id"])) : u("", !0),
2216
+ O(t(Da), V(ia.value, { id: t(U) }), null, 16, ["id"])
2192
2217
  ], 64)),
2193
2218
  O(t(z), {
2194
- id: t(f),
2219
+ id: t(d),
2195
2220
  stronger: "",
2196
2221
  class: "b-file-uploader__button"
2197
2222
  }, {
2198
- default: b(() => [
2199
- _(u(t(p)("browseFiles")), 1)
2223
+ default: h(() => [
2224
+ j(v(t(p)("browseFiles")), 1)
2200
2225
  ]),
2201
2226
  _: 1
2202
2227
  }, 8, ["id"])
2203
- ], 40, He)),
2204
- G.value && e.errorMessage ? (s(), w(t(wi), {
2228
+ ], 40, Ze)),
2229
+ _.value && e.errorMessage ? (s(), b(t(Ci), {
2205
2230
  key: 1,
2206
- id: t(N),
2231
+ id: t(ca),
2207
2232
  "error-message": e.errorMessage,
2208
2233
  class: "b-file-uploader__error-message"
2209
- }, null, 8, ["id", "error-message"])) : m("", !0),
2210
- e.condensed && e.description ? (s(), w(t(z), {
2234
+ }, null, 8, ["id", "error-message"])) : u("", !0),
2235
+ e.condensed && e.description ? (s(), b(t(z), {
2211
2236
  key: 2,
2212
- id: t(d),
2237
+ id: t(C),
2213
2238
  "aria-hidden": "true",
2214
2239
  el: "span",
2215
2240
  class: "b-file-uploader__description b-file-uploader__description--condensed"
2216
2241
  }, {
2217
- default: b(() => [
2218
- _(u(e.description), 1)
2242
+ default: h(() => [
2243
+ j(v(e.description), 1)
2219
2244
  ]),
2220
2245
  _: 1
2221
- }, 8, ["id"])) : m("", !0),
2222
- e.condensed ? (s(), w(t(Va), S({ key: 3 }, ta.value, { id: t(H) }), null, 16, ["id"])) : m("", !0),
2223
- oa.value ? (s(), w(t(ri), {
2246
+ }, 8, ["id"])) : u("", !0),
2247
+ e.condensed ? (s(), b(t(Da), V({ key: 3 }, ia.value, { id: t(U) }), null, 16, ["id"])) : u("", !0),
2248
+ F.value ? (s(), b(t(ui), {
2224
2249
  key: 4,
2225
2250
  type: "critical"
2226
2251
  }, {
2227
- description: b(() => [
2228
- _(u(t(p)("youHaveExceededTheMaximum", { count: n.maxCount })), 1)
2252
+ description: h(() => [
2253
+ j(v(t(p)("youHaveExceededTheMaximum", { count: n.maxCount })), 1)
2229
2254
  ]),
2230
- default: b(() => [
2231
- _(u(t(p)("tooManyFiles")) + " ", 1)
2255
+ default: h(() => [
2256
+ j(v(t(p)("tooManyFiles")) + " ", 1)
2232
2257
  ]),
2233
2258
  _: 1
2234
- })) : m("", !0),
2235
- Da(r("div", Be, [
2236
- (s(!0), v(Ca, null, si(y.value, ($, ii) => (s(), w(t(Ee), {
2259
+ })) : u("", !0),
2260
+ Ha(r("div", Ue, [
2261
+ (s(!0), f(_a, null, di(y.value, ($, ka) => (s(), b(t(Te), {
2237
2262
  ref_for: !0,
2238
- ref: ma(ii),
2263
+ ref: ta(ka),
2239
2264
  key: $.id,
2240
2265
  file: $,
2241
- "supported-file-types": t(h),
2242
- onCancel: (ei) => ha($),
2243
- onRemove: (ei) => ha($)
2266
+ "supported-file-types": t(m),
2267
+ onCancel: (oi) => wa($),
2268
+ onRemove: (oi) => wa($)
2244
2269
  }, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
2245
2270
  ], 512), [
2246
- [ci, (C = y.value) == null ? void 0 : C.length]
2271
+ [ri, (k = y.value) == null ? void 0 : k.length]
2247
2272
  ])
2248
2273
  ], 2);
2249
2274
  };
2250
2275
  }
2251
- }), ct = /* @__PURE__ */ I(Ae, [["__scopeId", "data-v-e4fb1ae1"]]);
2276
+ }), mt = /* @__PURE__ */ L(Pe, [["__scopeId", "data-v-8a59b0a4"]]);
2252
2277
  export {
2253
- ct as f
2278
+ mt as f
2254
2279
  };
2255
- //# sourceMappingURL=file-uploader.D3KUe-MO.js.map
2280
+ //# sourceMappingURL=file-uploader.Dv4sh1IO.js.map