@adyen/bento-vue3 1.48.0 → 1.50.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 (223) hide show
  1. package/dist/@types/index.d.ts +107 -944
  2. package/dist/action-bar.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/data-grid.css +1 -1
  9. package/dist/assets/dialog-page.css +1 -1
  10. package/dist/assets/dropdown.css +1 -1
  11. package/dist/assets/file-uploader.css +1 -1
  12. package/dist/assets/filter-bar.css +1 -1
  13. package/dist/assets/header.css +1 -1
  14. package/dist/assets/inspector.css +1 -1
  15. package/dist/assets/link.css +1 -1
  16. package/dist/assets/menu.css +1 -1
  17. package/dist/assets/modal-fullscreen.css +1 -1
  18. package/dist/assets/payment-method.css +1 -1
  19. package/dist/assets/popover.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/assets/toggle-button.css +1 -1
  22. package/dist/button.js +3 -3
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chunks/{action-bar.DWekSxPr.js → action-bar.DkGjsKiy.js} +6 -6
  26. package/dist/chunks/{action-bar.DWekSxPr.js.map → action-bar.DkGjsKiy.js.map} +1 -1
  27. package/dist/chunks/{alert.Dd2DYCZ1.js → alert.DGewBB2a.js} +2 -2
  28. package/dist/chunks/{alert.Dd2DYCZ1.js.map → alert.DGewBB2a.js.map} +1 -1
  29. package/dist/chunks/{base-modal.DOrcARK1.js → base-modal.gW2mkOwf.js} +5 -5
  30. package/dist/chunks/{base-modal.DOrcARK1.js.map → base-modal.gW2mkOwf.js.map} +1 -1
  31. package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js → button-actions-with-menu.BXRKkFiw.js} +4 -4
  32. package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js.map → button-actions-with-menu.BXRKkFiw.js.map} +1 -1
  33. package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BZEKcCbe.js} +2 -2
  34. package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BZEKcCbe.js.map} +1 -1
  35. package/dist/chunks/{button.Cneb6rPP.js → button.BXVKUuum.js} +2 -2
  36. package/dist/chunks/{button.Cneb6rPP.js.map → button.BXVKUuum.js.map} +1 -1
  37. package/dist/chunks/{calendar.BdLQOioy.js → calendar.DNQlLbkK.js} +2 -2
  38. package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DNQlLbkK.js.map} +1 -1
  39. package/dist/chunks/{card.BAg7yMMT.js → card.Ec-SR2qG.js} +2 -2
  40. package/dist/chunks/{card.BAg7yMMT.js.map → card.Ec-SR2qG.js.map} +1 -1
  41. package/dist/chunks/{checkbox-group.C-EmVp5t.js → checkbox-group.KeIRO8lx.js} +4 -4
  42. package/dist/chunks/{checkbox-group.C-EmVp5t.js.map → checkbox-group.KeIRO8lx.js.map} +1 -1
  43. package/dist/chunks/{checkbox.BOtqaTUl.js → checkbox.BllRk82F.js} +17 -17
  44. package/dist/chunks/{checkbox.BOtqaTUl.js.map → checkbox.BllRk82F.js.map} +1 -1
  45. package/dist/chunks/{code-snippet.C9fCiM5V.js → code-snippet.DfTfz3vU.js} +6 -6
  46. package/dist/chunks/{code-snippet.C9fCiM5V.js.map → code-snippet.DfTfz3vU.js.map} +1 -1
  47. package/dist/chunks/{controls-group.BeK9igGT.js → controls-group.BnbQO34k.js} +2 -2
  48. package/dist/chunks/{controls-group.BeK9igGT.js.map → controls-group.BnbQO34k.js.map} +1 -1
  49. package/dist/chunks/{copy.HpUjy6OL.js → copy.DAu8GrR9.js} +3 -3
  50. package/dist/chunks/{copy.HpUjy6OL.js.map → copy.DAu8GrR9.js.map} +1 -1
  51. package/dist/chunks/currency.DagWnTry.js.map +1 -1
  52. package/dist/chunks/{dashboard-section.DoGuJKz_.js → dashboard-section.pyg05_v_.js} +4 -4
  53. package/dist/chunks/{dashboard-section.DoGuJKz_.js.map → dashboard-section.pyg05_v_.js.map} +1 -1
  54. package/dist/chunks/{dashed-underline.DZuyR-N7.js → dashed-underline.DTZGLrPu.js} +3 -3
  55. package/dist/chunks/{dashed-underline.DZuyR-N7.js.map → dashed-underline.DTZGLrPu.js.map} +1 -1
  56. package/dist/chunks/{data-grid-template.BpJbblNT.js → data-grid-template.sUNqCvbt.js} +3 -3
  57. package/dist/chunks/{data-grid-template.BpJbblNT.js.map → data-grid-template.sUNqCvbt.js.map} +1 -1
  58. package/dist/chunks/{data-grid.CdTcZ3DP.js → data-grid.BNXoMZf9.js} +1028 -1022
  59. package/dist/chunks/data-grid.BNXoMZf9.js.map +1 -0
  60. package/dist/chunks/{date-picker.CjbhJWGH.js → date-picker.DgpHNnu_.js} +17 -17
  61. package/dist/chunks/{date-picker.CjbhJWGH.js.map → date-picker.DgpHNnu_.js.map} +1 -1
  62. package/dist/chunks/{date-range-picker.CoonfpYT.js → date-range-picker.CUIOfxjB.js} +26 -26
  63. package/dist/chunks/{date-range-picker.CoonfpYT.js.map → date-range-picker.CUIOfxjB.js.map} +1 -1
  64. package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.DK2UKGH8.js} +2 -2
  65. package/dist/chunks/{dialog-page.D_r_CbyD.js.map → dialog-page.DK2UKGH8.js.map} +1 -1
  66. package/dist/chunks/{dropdown-tag.B5QFkTl_.js → dropdown-tag.DqfoOcUU.js} +4 -4
  67. package/dist/chunks/{dropdown-tag.B5QFkTl_.js.map → dropdown-tag.DqfoOcUU.js.map} +1 -1
  68. package/dist/chunks/{dropdown.BN6DALZa.js → dropdown.a8OeeVAZ.js} +344 -344
  69. package/dist/chunks/dropdown.a8OeeVAZ.js.map +1 -0
  70. package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DkYtiTHG.js} +2 -2
  71. package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DkYtiTHG.js.map} +1 -1
  72. package/dist/chunks/{error-message.X-gxnQcx.js → error-message.B3z5WkLF.js} +2 -2
  73. package/dist/chunks/{error-message.X-gxnQcx.js.map → error-message.B3z5WkLF.js.map} +1 -1
  74. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  75. package/dist/chunks/{file-uploader.CLZ1rPz0.js → file-uploader.DV4I5Lvf.js} +475 -470
  76. package/dist/chunks/file-uploader.DV4I5Lvf.js.map +1 -0
  77. package/dist/chunks/{filter-bar.zvHeHs9B.js → filter-bar.BZkXUVLH.js} +20 -19
  78. package/dist/chunks/{filter-bar.zvHeHs9B.js.map → filter-bar.BZkXUVLH.js.map} +1 -1
  79. package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.B4Eag_Sd.js} +2 -2
  80. package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.B4Eag_Sd.js.map} +1 -1
  81. package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DPJj05sV.js} +6 -3
  82. package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DPJj05sV.js.map} +1 -1
  83. package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.WvWwFKM8.js} +3 -3
  84. package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.WvWwFKM8.js.map} +1 -1
  85. package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.BHL_MDqT.js} +2 -2
  86. package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.BHL_MDqT.js.map} +1 -1
  87. package/dist/chunks/{header.CUhyy9NL.js → header.CRC9X7v2.js} +20 -20
  88. package/dist/chunks/{header.CUhyy9NL.js.map → header.CRC9X7v2.js.map} +1 -1
  89. package/dist/chunks/{index.BMkVmbZj.js → index.BS3BeXQJ.js} +8 -7
  90. package/dist/chunks/{index.BMkVmbZj.js.map → index.BS3BeXQJ.js.map} +1 -1
  91. package/dist/chunks/{info-icon-with-popover.NzQciGvf.js → info-icon-with-popover.BM0esxKN.js} +2 -2
  92. package/dist/chunks/{info-icon-with-popover.NzQciGvf.js.map → info-icon-with-popover.BM0esxKN.js.map} +1 -1
  93. package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.DQn8-VSp.js} +2 -2
  94. package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.DQn8-VSp.js.map} +1 -1
  95. package/dist/chunks/{input-field-password.B4HgGilX.js → input-field-password.Bo7FiAOq.js} +6 -6
  96. package/dist/chunks/{input-field-password.B4HgGilX.js.map → input-field-password.Bo7FiAOq.js.map} +1 -1
  97. package/dist/chunks/{input-field-phone-number.CpY2BLfO.js → input-field-phone-number.DO2uU2XW.js} +2 -2
  98. package/dist/chunks/{input-field-phone-number.CpY2BLfO.js.map → input-field-phone-number.DO2uU2XW.js.map} +1 -1
  99. package/dist/chunks/{input-field.DQKiMtZo.js → input-field.rgA0t2sp.js} +3 -3
  100. package/dist/chunks/{input-field.DQKiMtZo.js.map → input-field.rgA0t2sp.js.map} +1 -1
  101. package/dist/chunks/inspector.types.Io6ONte7.js +184 -0
  102. package/dist/chunks/inspector.types.Io6ONte7.js.map +1 -0
  103. package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.BAz7JrXo.js} +2 -2
  104. package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.BAz7JrXo.js.map} +1 -1
  105. package/dist/chunks/{link.ClFi8uSm.js → link.CyGCtpse.js} +9 -9
  106. package/dist/chunks/link.CyGCtpse.js.map +1 -0
  107. package/dist/chunks/{listbox-option-tag.CFNRfAtf.js → listbox-option-tag.DIk4F59J.js} +2 -2
  108. package/dist/chunks/{listbox-option-tag.CFNRfAtf.js.map → listbox-option-tag.DIk4F59J.js.map} +1 -1
  109. package/dist/chunks/{menu.DIKy_Pyt.js → menu.DKluB_Dn.js} +45 -44
  110. package/dist/chunks/menu.DKluB_Dn.js.map +1 -0
  111. package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js → modal-fullscreen.D1gvJFag.js} +5 -5
  112. package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js.map → modal-fullscreen.D1gvJFag.js.map} +1 -1
  113. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js} +5 -5
  114. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js.map → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js.map} +1 -1
  115. package/dist/chunks/{pagination.DogGVwa2.js → pagination.CGS6fGUm.js} +3 -3
  116. package/dist/chunks/{pagination.DogGVwa2.js.map → pagination.CGS6fGUm.js.map} +1 -1
  117. package/dist/chunks/payment-method.CGNHCiy1.js +73 -0
  118. package/dist/chunks/payment-method.CGNHCiy1.js.map +1 -0
  119. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
  120. package/dist/chunks/{popover.NEP6wuPa.js → popover.BNOfWuSb.js} +94 -93
  121. package/dist/chunks/popover.BNOfWuSb.js.map +1 -0
  122. package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.BvGYgqiE.js} +2 -2
  123. package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.BvGYgqiE.js.map} +1 -1
  124. package/dist/chunks/{promo-banner.DTH4CZ_2.js → promo-banner.BUtq-2iR.js} +3 -3
  125. package/dist/chunks/{promo-banner.DTH4CZ_2.js.map → promo-banner.BUtq-2iR.js.map} +1 -1
  126. package/dist/chunks/{radio-group.BLHcC22p.js → radio-group.CivaJaaQ.js} +4 -4
  127. package/dist/chunks/{radio-group.BLHcC22p.js.map → radio-group.CivaJaaQ.js.map} +1 -1
  128. package/dist/chunks/{search-bar.CatznIEM.js → search-bar.Zdai5UhB.js} +3 -3
  129. package/dist/chunks/{search-bar.CatznIEM.js.map → search-bar.Zdai5UhB.js.map} +1 -1
  130. package/dist/chunks/{secondary-nav.LIzkbQY1.js → secondary-nav.C6D6dcs6.js} +3 -3
  131. package/dist/chunks/{secondary-nav.LIzkbQY1.js.map → secondary-nav.C6D6dcs6.js.map} +1 -1
  132. package/dist/chunks/{segmented-control.DOxyrdMz.js → segmented-control.DKWpxDho.js} +2 -2
  133. package/dist/chunks/{segmented-control.DOxyrdMz.js.map → segmented-control.DKWpxDho.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.BKatprYB.js → selection-card-group.DzwIeKQC.js} +12 -12
  135. package/dist/chunks/{selection-card-group.BKatprYB.js.map → selection-card-group.DzwIeKQC.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.Be3uyOVd.js → sidepanel.DzF1iCZM.js} +5 -5
  137. package/dist/chunks/{sidepanel.Be3uyOVd.js.map → sidepanel.DzF1iCZM.js.map} +1 -1
  138. package/dist/chunks/{structured-list-item.BwgEJywb.js → structured-list-item.DQHvIbQo.js} +5 -5
  139. package/dist/chunks/{structured-list-item.BwgEJywb.js.map → structured-list-item.DQHvIbQo.js.map} +1 -1
  140. package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js → summary-grid-item-custom.D6s8sw36.js} +4 -4
  141. package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js.map → summary-grid-item-custom.D6s8sw36.js.map} +1 -1
  142. package/dist/chunks/{tabs.CR2tWuz3.js → tabs.CiTn85aw.js} +2 -2
  143. package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.CiTn85aw.js.map} +1 -1
  144. package/dist/chunks/{tag.Chr4TP7d.js → tag.Bmw9RaOG.js} +2 -2
  145. package/dist/chunks/{tag.Chr4TP7d.js.map → tag.Bmw9RaOG.js.map} +1 -1
  146. package/dist/chunks/{textarea.BLhKC_iw.js → textarea.CzuRg2pM.js} +3 -3
  147. package/dist/chunks/{textarea.BLhKC_iw.js.map → textarea.CzuRg2pM.js.map} +1 -1
  148. package/dist/chunks/{timeline-item.BVm2YscV.js → timeline-item.CjltBKy0.js} +7 -7
  149. package/dist/chunks/{timeline-item.BVm2YscV.js.map → timeline-item.CjltBKy0.js.map} +1 -1
  150. package/dist/chunks/{toast.A5f1_NqV.js → toast.BWxPbCOy.js} +2 -2
  151. package/dist/chunks/{toast.A5f1_NqV.js.map → toast.BWxPbCOy.js.map} +1 -1
  152. package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.B9LWddx9.js} +23 -22
  153. package/dist/chunks/toggle-button.B9LWddx9.js.map +1 -0
  154. package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.DS1ok8gh.js} +2 -2
  155. package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.DS1ok8gh.js.map} +1 -1
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js} +5 -5
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.CoelUIEy.js → use-cached-selected-values.CxAhnNa6.js} +483 -479
  159. package/dist/chunks/use-cached-selected-values.CxAhnNa6.js.map +1 -0
  160. package/dist/code-snippet.js +1 -1
  161. package/dist/dashboard-template.js +1 -1
  162. package/dist/dashed-underline.js +1 -1
  163. package/dist/data-grid-template.js +1 -1
  164. package/dist/data-grid.js +1 -1
  165. package/dist/date-picker.js +2 -2
  166. package/dist/date-range-picker.js +2 -2
  167. package/dist/dropdown.js +3 -3
  168. package/dist/empty-state.js +1 -1
  169. package/dist/file-uploader.js +1 -1
  170. package/dist/filter-bar.js +1 -1
  171. package/dist/focus-trap.js +1 -1
  172. package/dist/form-layout.js +1 -1
  173. package/dist/header.js +1 -1
  174. package/dist/index.js +54 -54
  175. package/dist/info-icon.js +1 -1
  176. package/dist/input-field-password.js +1 -1
  177. package/dist/input-field-phone-number.js +1 -1
  178. package/dist/input-field.js +1 -1
  179. package/dist/inspector.js +1 -1
  180. package/dist/internal.js +12 -12
  181. package/dist/layout.js +1 -1
  182. package/dist/link.js +1 -1
  183. package/dist/menu.js +1 -1
  184. package/dist/modal-fullscreen.js +1 -1
  185. package/dist/modal.js +2 -2
  186. package/dist/pagination.js +1 -1
  187. package/dist/payment-method.js +1 -1
  188. package/dist/popover.js +1 -1
  189. package/dist/popper-container.js +1 -1
  190. package/dist/promo-banner.js +1 -1
  191. package/dist/radio-group.js +1 -1
  192. package/dist/search-bar.js +2 -2
  193. package/dist/secondary-nav.js +1 -1
  194. package/dist/segmented-control.js +1 -1
  195. package/dist/selection-card.js +1 -1
  196. package/dist/sidepanel.js +1 -1
  197. package/dist/structured-list.js +1 -1
  198. package/dist/styles/bento-dark.css +2 -1
  199. package/dist/styles/bento-light.css +2 -1
  200. package/dist/styles/bento.css +2 -1
  201. package/dist/styles/legacy.css +3 -0
  202. package/dist/styles/styleguide.css +2 -1
  203. package/dist/summary-grid.js +1 -1
  204. package/dist/tabs.js +1 -1
  205. package/dist/tag.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 +4 -4
  212. package/dist/chunks/data-grid.CdTcZ3DP.js.map +0 -1
  213. package/dist/chunks/dropdown.BN6DALZa.js.map +0 -1
  214. package/dist/chunks/file-uploader.CLZ1rPz0.js.map +0 -1
  215. package/dist/chunks/inspector.types.C-Qos3dV.js +0 -124
  216. package/dist/chunks/inspector.types.C-Qos3dV.js.map +0 -1
  217. package/dist/chunks/link.ClFi8uSm.js.map +0 -1
  218. package/dist/chunks/menu.DIKy_Pyt.js.map +0 -1
  219. package/dist/chunks/payment-method.NguqkTwG.js +0 -103
  220. package/dist/chunks/payment-method.NguqkTwG.js.map +0 -1
  221. package/dist/chunks/popover.NEP6wuPa.js.map +0 -1
  222. package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
  223. package/dist/chunks/use-cached-selected-values.CoelUIEy.js.map +0 -1
@@ -1,148 +1,142 @@
1
- import { createElementBlock as v, openBlock as s, mergeProps as I, createCommentVNode as f, createElementVNode as r, toDisplayString as u, defineComponent as ia, createBlock as h, unref as o, Transition as Pa, withCtx as g, renderSlot as ca, TransitionGroup as Ua, ref as T, onUnmounted as Wa, onMounted as Ga, computed as b, watch as _a, normalizeClass as S, createVNode as M, resolveDynamicComponent as Ya, withDirectives as za, createTextVNode as $, reactive as la, toRef as pa, withKeys as da, withModifiers as N, Fragment as ra, normalizeProps as ma, guardReactiveProps as Xa, renderList as Ja, vShow as Ka } from "vue";
1
+ import { createElementBlock as v, openBlock as s, mergeProps as L, createCommentVNode as f, createElementVNode as m, toDisplayString as u, defineComponent as aa, createBlock as b, unref as o, Transition as Ga, withCtx as g, renderSlot as ra, TransitionGroup as Ya, ref as T, onUnmounted as Xa, onMounted as Ja, computed as h, watch as la, normalizeClass as S, createVNode as V, resolveDynamicComponent as Ka, withDirectives as Ea, createTextVNode as $, reactive as sa, toRef as pa, withKeys as ma, withModifiers as U, Fragment as ua, normalizeProps as va, guardReactiveProps as Qa, renderList as ai, vShow as ii } from "vue";
2
2
  import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
- import { W as Ea } from "./warning-filled.tTkVob0l.js";
4
- import { B as Qa } from "./alert.Dd2DYCZ1.js";
5
- import { B as Q } from "./button.Cneb6rPP.js";
3
+ import { W as Ra } from "./warning-filled.tTkVob0l.js";
4
+ import { B as ei } from "./alert.DGewBB2a.js";
5
+ import { B as K } from "./button.BXVKUuum.js";
6
6
  import { B as z } from "./typography.DN5eC5ch.js";
7
- import { u as ea } from "./i18n.D9azDLPe.js";
7
+ import { u as ia } from "./i18n.D9azDLPe.js";
8
8
  import { g as oa } from "./generate-uid.NJ8tVoha.js";
9
- import { i as Ra } from "./index.CWuzEfiV.js";
10
- import { C as ai } from "./checkmark-circle-fill.g_tcBhFJ.js";
11
- import { C as ii } from "./cross.BZYw4R3N.js";
12
- import { R as ei } from "./refresh.SzRxQ44W.js";
9
+ import { i as La } from "./index.CWuzEfiV.js";
10
+ import { C as ti } from "./checkmark-circle-fill.g_tcBhFJ.js";
11
+ import { C as ni } from "./cross.BZYw4R3N.js";
12
+ import { R as pi } from "./refresh.SzRxQ44W.js";
13
13
  import "./events.FNmSWp_P.js";
14
- import { B as ti } from "./tooltip.2MOlGHD9.js";
15
- import { B as ni } from "./link.ClFi8uSm.js";
16
- import { B as pi } from "./loading-indicator.DEepb9Wl.js";
17
- import { F as oi, E as li } from "./error-message.X-gxnQcx.js";
14
+ import { B as oi } from "./tooltip.DS1ok8gh.js";
15
+ import { B as li } from "./link.CyGCtpse.js";
16
+ import { B as si } from "./loading-indicator.DEepb9Wl.js";
17
+ import { F as ci, E as di } from "./error-message.B3z5WkLF.js";
18
18
  import "../assets/file-uploader.css";
19
- let ua = 0;
20
- const si = {
19
+ let fa = 0;
20
+ const ri = {
21
21
  beforeCreate() {
22
- this.uuid = ua.toString(), ua += 1;
22
+ this.uuid = fa.toString(), fa += 1;
23
23
  }
24
- }, ci = { key: 0 };
25
- function di(a, i, n, e, l, t) {
26
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
24
+ }, mi = { key: 0 };
25
+ function ui(a, i, p, e, l, n) {
26
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
27
27
  class: "ui-assets-icons-16",
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
29
  width: "16",
30
30
  height: "16",
31
31
  fill: "none"
32
32
  }), [
33
- a.$attrs["svg-title"] ? (s(), v("title", ci, u(a.$attrs["svg-title"]), 1)) : f("", !0),
34
- i[0] || (i[0] = r("path", {
33
+ a.$attrs["svg-title"] ? (s(), v("title", mi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
34
+ i[0] || (i[0] = m("path", {
35
35
  fill: "#00112C",
36
36
  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"
37
37
  }, null, -1)),
38
- i[1] || (i[1] = r("path", {
38
+ i[1] || (i[1] = m("path", {
39
39
  fill: "#00112C",
40
40
  d: "M2.75 12.5V10.25H1.25V12.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.5V10.25H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5Z"
41
41
  }, null, -1))
42
42
  ], 16);
43
43
  }
44
- const ri = /* @__PURE__ */ _(si, [["render", di]]), mi = /* @__PURE__ */ ia({
44
+ const vi = /* @__PURE__ */ _(ri, [["render", ui]]), fi = /* @__PURE__ */ aa({
45
45
  __name: "file-uploader-file-card-animation",
46
46
  props: {
47
47
  name: {},
48
48
  showFileIcon: { type: Boolean }
49
49
  },
50
50
  setup(a) {
51
- return (i, n) => o(Ra) ? (s(), h(Pa, {
51
+ return (i, p) => o(La) ? (s(), b(Ga, {
52
52
  key: 0,
53
53
  name: i.name,
54
54
  mode: "out-in",
55
55
  css: i.showFileIcon
56
56
  }, {
57
57
  default: g(() => [
58
- ca(i.$slots, "default")
58
+ ra(i.$slots, "default")
59
59
  ]),
60
60
  _: 3
61
- }, 8, ["name", "css"])) : (s(), h(Ua, {
61
+ }, 8, ["name", "css"])) : (s(), b(Ya, {
62
62
  key: 1,
63
63
  name: i.name,
64
64
  css: i.showFileIcon
65
65
  }, {
66
66
  default: g(() => [
67
- ca(i.$slots, "default")
67
+ ra(i.$slots, "default")
68
68
  ]),
69
69
  _: 3
70
70
  }, 8, ["name", "css"]));
71
71
  }
72
72
  });
73
- let va = 0;
74
- const ui = {
73
+ let xa = 0;
74
+ const xi = {
75
75
  beforeCreate() {
76
- this.uuid = va.toString(), va += 1;
76
+ this.uuid = xa.toString(), xa += 1;
77
77
  }
78
- }, vi = { key: 0 };
79
- function fi(a, i, n, e, l, t) {
80
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
78
+ }, gi = { key: 0 };
79
+ function hi(a, i, p, e, l, n) {
80
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
81
81
  class: "ui-assets-icons-16",
82
82
  xmlns: "http://www.w3.org/2000/svg",
83
83
  width: "16",
84
84
  height: "16",
85
85
  fill: "none"
86
86
  }), [
87
- a.$attrs["svg-title"] ? (s(), v("title", vi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
88
- i[0] || (i[0] = r("path", {
87
+ a.$attrs["svg-title"] ? (s(), v("title", gi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
88
+ i[0] || (i[0] = m("path", {
89
89
  fill: "#00112C",
90
90
  d: "M7.25 6.25H5.75V12.75H7.25V6.25Z"
91
91
  }, null, -1)),
92
- i[1] || (i[1] = r("path", {
92
+ i[1] || (i[1] = m("path", {
93
93
  fill: "#00112C",
94
94
  d: "M8.75 6.25H10.25V12.75H8.75V6.25Z"
95
95
  }, null, -1)),
96
- i[2] || (i[2] = r("path", {
96
+ i[2] || (i[2] = m("path", {
97
97
  fill: "#00112C",
98
98
  d: "M14.75 3.24999H12.54L12.05 1.74999C11.9 1.29999 11.61 0.92999 11.22 0.64999C10.83 0.37999 10.34 0.24999 9.92 0.23999H6.09C5.64 0.23999 5.17 0.37999 4.78 0.64999C4.39 0.91999 4.11 1.29999 3.95 1.75999L3.46 3.23999H1.25V4.73999H2.32L3.14 13.7C3.19 14.26 3.45 14.78 3.86 15.16C4.27 15.54 4.81 15.75 5.37 15.75H10.64C11.2 15.75 11.74 15.54 12.15 15.16C12.57 14.78 12.82 14.26 12.87 13.7L13.69 4.73999H14.76V3.23999L14.75 3.24999ZM5.37 2.24999C5.42 2.09999 5.52 1.97999 5.64 1.88999C5.77 1.79999 5.92 1.74999 6.08 1.75999H9.93C10.08 1.75999 10.23 1.80999 10.35 1.88999C10.48 1.97999 10.57 2.09999 10.62 2.23999L10.95 3.25999H5.02L5.35 2.25999L5.37 2.24999ZM11.37 13.58C11.35 13.77 11.27 13.94 11.13 14.06C10.99 14.19 10.81 14.25 10.63 14.25H5.36C5.17 14.25 5 14.18 4.86 14.06C4.72 13.93 4.64 13.76 4.62 13.57L3.81 4.74999H12.17L11.36 13.57L11.37 13.58Z"
99
99
  }, null, -1))
100
100
  ], 16);
101
101
  }
102
- const xi = /* @__PURE__ */ _(ui, [["render", fi]]);
103
- function gi(a, i) {
104
- const n = T(!1);
102
+ const bi = /* @__PURE__ */ _(xi, [["render", hi]]);
103
+ function wi(a, i) {
104
+ const p = T(!1);
105
105
  let e;
106
106
  function l() {
107
107
  e && e.disconnect();
108
108
  }
109
- return Wa(() => {
109
+ return Xa(() => {
110
110
  l();
111
- }), Ga(() => {
111
+ }), Ja(() => {
112
112
  l(), e = new IntersectionObserver(
113
- (t) => {
114
- n.value = !t[0].isIntersecting;
113
+ (n) => {
114
+ p.value = !n[0].isIntersecting;
115
115
  },
116
116
  {
117
117
  root: i.value,
118
118
  threshold: 1
119
119
  }
120
120
  ), e.observe(a.value.$el);
121
- }), n;
121
+ }), p;
122
122
  }
123
- const fa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
124
- function La(a, i) {
125
- let n = 0, e = i;
126
- for (; e >= 1e3 && n < fa.length - 1; )
127
- e /= 1e3, n++;
128
- return new Intl.NumberFormat(a, {
123
+ const ga = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
124
+ function Ma(a, i) {
125
+ const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), ga.length - 1));
126
+ return Intl.NumberFormat(a, {
129
127
  style: "unit",
130
- unit: fa[n],
131
- unitDisplay: "short",
132
- // Displays as "kB" instead of "kilobytes"
133
- maximumFractionDigits: 2
134
- // Limits to 2 decimal places
135
- }).format(e);
128
+ unit: ga[p]
129
+ }).format(i / 1024 ** p);
136
130
  }
137
- var L = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(L || {}), j = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(j || {}), aa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(aa || {}), x = /* @__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))(x || {});
138
- const hi = [
131
+ var R = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(R || {}), j = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(j || {}), Q = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(Q || {}), x = /* @__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))(x || {});
132
+ const Ci = [
139
133
  "application/msword",
140
134
  // .doc
141
135
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
142
136
  // .docx
143
137
  "application/rtf"
144
138
  // .rtf
145
- ], bi = [
139
+ ], yi = [
146
140
  "application/vnd.ms-excel",
147
141
  // .xls
148
142
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -155,14 +149,14 @@ const hi = [
155
149
  // .numbers
156
150
  "text/csv"
157
151
  // .csv
158
- ], wi = [
152
+ ], ki = [
159
153
  "application/vnd.ms-powerpoint",
160
154
  // .ppt
161
155
  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
162
156
  // .pptx
163
157
  "application/vnd.oasis.opendocument.presentation"
164
158
  // .odp
165
- ], Ci = [
159
+ ], $i = [
166
160
  "application/zip",
167
161
  // .zip
168
162
  "application/vnd.rar",
@@ -184,14 +178,14 @@ const hi = [
184
178
  "application/vnd.ms-cab-compressed"
185
179
  // .cab
186
180
  ];
187
- function yi(a) {
188
- return bi.includes(a.type) ? x.TABLE : a.type.startsWith("text/") || hi.includes(a.type) ? x.TEXT : a.type.startsWith("image/") ? x.IMAGE : a.type.startsWith("video/") ? x.VIDEO : a.type.startsWith("audio/") ? x.AUDIO : a.type === "application/pdf" ? x.PDF : wi.includes(a.type) ? x.SLIDES : Ci.includes(a.type) ? x.COMPRESSED : x.GENERIC;
181
+ function ji(a) {
182
+ return yi.includes(a.type) ? x.TABLE : a.type.startsWith("text/") || Ci.includes(a.type) ? x.TEXT : a.type.startsWith("image/") ? x.IMAGE : a.type.startsWith("video/") ? x.VIDEO : a.type.startsWith("audio/") ? x.AUDIO : a.type === "application/pdf" ? x.PDF : ki.includes(a.type) ? x.SLIDES : $i.includes(a.type) ? x.COMPRESSED : x.GENERIC;
189
183
  }
190
- function ki(a, i) {
184
+ function _i(a, i) {
191
185
  if (!i)
192
186
  return !0;
193
- const n = i.split(",").map((e) => e.trim());
194
- for (const e of n)
187
+ const p = i.split(",").map((e) => e.trim());
188
+ for (const e of p)
195
189
  if (e.startsWith(".")) {
196
190
  if (a.name.endsWith(e))
197
191
  return !0;
@@ -203,290 +197,290 @@ function ki(a, i) {
203
197
  return !0;
204
198
  return !1;
205
199
  }
206
- function $i(a, i, n) {
200
+ function zi(a, i, p) {
207
201
  const e = new FileReader(), l = a;
208
- if (!ki(l.data, i)) {
209
- l.state = L.ERROR, l.errors.push(j.ERROR_TYPE);
202
+ if (!_i(l.data, i)) {
203
+ l.state = R.ERROR, l.errors.push(j.ERROR_TYPE);
210
204
  return;
211
205
  }
212
- e.onload = (t) => {
213
- if (n && l.type === x.IMAGE) {
214
- const C = new Blob([t.target.result], { type: l.data.type }), c = URL.createObjectURL(C), d = new Image();
206
+ e.onload = (n) => {
207
+ if (p && l.type === x.IMAGE) {
208
+ const C = new Blob([n.target.result], { type: l.data.type }), c = URL.createObjectURL(C), d = new Image();
215
209
  d.onload = function() {
216
- (d.width > n.width || d.height > n.height) && (l.state = L.ERROR, l.errors.push(j.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
210
+ (d.width > p.width || d.height > p.height) && (l.state = R.ERROR, l.errors.push(j.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
217
211
  }, d.onerror = function() {
218
212
  URL.revokeObjectURL(c);
219
213
  }, d.src = c;
220
214
  }
221
- }, e.onprogress = (t) => {
222
- t.lengthComputable && (l.progress = t.loaded / t.total * 100);
215
+ }, e.onprogress = (n) => {
216
+ n.lengthComputable && (l.progress = n.loaded / n.total * 100);
223
217
  }, e.onloadend = () => {
224
- l.state !== L.ERROR && (l.state = L.SUCCESS), l.progress = null;
218
+ l.state !== R.ERROR && (l.state = R.SUCCESS), l.progress = null;
225
219
  }, e.onerror = () => {
226
- l.state = L.ERROR, l.errors.push(j.ERROR_LOAD), l.progress = null;
220
+ l.state = R.ERROR, l.errors.push(j.ERROR_LOAD), l.progress = null;
227
221
  }, e.readAsArrayBuffer(l.data);
228
222
  }
229
- let xa = 0;
230
- const ji = {
223
+ let ha = 0;
224
+ const Ei = {
231
225
  beforeCreate() {
232
- this.uuid = xa.toString(), xa += 1;
226
+ this.uuid = ha.toString(), ha += 1;
233
227
  }
234
- }, _i = { key: 0 }, zi = ["clip-path"], Ei = ["id"];
235
- function Ri(a, i, n, e, l, t) {
236
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
228
+ }, Ri = { key: 0 }, Li = ["clip-path"], Mi = ["id"];
229
+ function Ii(a, i, p, e, l, n) {
230
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
237
231
  class: "ui-assets-icons-16",
238
232
  xmlns: "http://www.w3.org/2000/svg",
239
233
  width: "16",
240
234
  height: "16",
241
235
  fill: "none"
242
236
  }), [
243
- a.$attrs["svg-title"] ? (s(), v("title", _i, u(a.$attrs["svg-title"]), 1)) : f("", !0),
244
- r("g", {
237
+ a.$attrs["svg-title"] ? (s(), v("title", Ri, u(a.$attrs["svg-title"]), 1)) : f("", !0),
238
+ m("g", {
245
239
  "clip-path": "url(#uia-icons-16-attachment__a" + a.uuid + ")"
246
240
  }, i[0] || (i[0] = [
247
- r("path", {
241
+ m("path", {
248
242
  fill: "#00112C",
249
243
  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"
250
244
  }, null, -1)
251
- ]), 8, zi),
252
- r("defs", null, [
253
- r("clipPath", {
245
+ ]), 8, Li),
246
+ m("defs", null, [
247
+ m("clipPath", {
254
248
  id: "uia-icons-16-attachment__a" + a.uuid
255
249
  }, i[1] || (i[1] = [
256
- r("rect", {
250
+ m("rect", {
257
251
  width: "16",
258
252
  height: "16",
259
253
  fill: "#fff"
260
254
  }, null, -1)
261
- ]), 8, Ei)
255
+ ]), 8, Mi)
262
256
  ])
263
257
  ], 16);
264
258
  }
265
- const Li = /* @__PURE__ */ _(ji, [["render", Ri]]);
266
- let ga = 0;
267
- const Ii = {
259
+ const Vi = /* @__PURE__ */ _(Ei, [["render", Ii]]);
260
+ let ba = 0;
261
+ const Si = {
268
262
  beforeCreate() {
269
- this.uuid = ga.toString(), ga += 1;
263
+ this.uuid = ba.toString(), ba += 1;
270
264
  }
271
- }, Vi = { key: 0 };
272
- function Mi(a, i, n, e, l, t) {
273
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
265
+ }, Ti = { key: 0 };
266
+ function Hi(a, i, p, e, l, n) {
267
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
274
268
  class: "ui-assets-icons-16",
275
269
  xmlns: "http://www.w3.org/2000/svg",
276
270
  width: "16",
277
271
  height: "16",
278
272
  fill: "none"
279
273
  }), [
280
- a.$attrs["svg-title"] ? (s(), v("title", Vi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
281
- i[0] || (i[0] = r("path", {
274
+ a.$attrs["svg-title"] ? (s(), v("title", Ti, u(a.$attrs["svg-title"]), 1)) : f("", !0),
275
+ i[0] || (i[0] = m("path", {
282
276
  fill: "#00112C",
283
277
  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"
284
278
  }, null, -1))
285
279
  ], 16);
286
280
  }
287
- const Si = /* @__PURE__ */ _(Ii, [["render", Mi]]);
288
- let ha = 0;
289
- const Ti = {
281
+ const Di = /* @__PURE__ */ _(Si, [["render", Hi]]);
282
+ let wa = 0;
283
+ const Oi = {
290
284
  beforeCreate() {
291
- this.uuid = ha.toString(), ha += 1;
285
+ this.uuid = wa.toString(), wa += 1;
292
286
  }
293
- }, Di = { key: 0 };
294
- function Hi(a, i, n, e, l, t) {
295
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
287
+ }, Fi = { key: 0 };
288
+ function qi(a, i, p, e, l, n) {
289
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
296
290
  class: "ui-assets-icons-16",
297
291
  xmlns: "http://www.w3.org/2000/svg",
298
292
  width: "16",
299
293
  height: "16",
300
294
  fill: "none"
301
295
  }), [
302
- a.$attrs["svg-title"] ? (s(), v("title", Di, u(a.$attrs["svg-title"]), 1)) : f("", !0),
303
- i[0] || (i[0] = r("path", {
296
+ a.$attrs["svg-title"] ? (s(), v("title", Fi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
297
+ i[0] || (i[0] = m("path", {
304
298
  fill: "#00112C",
305
299
  d: "M13.75 13.5C13.75 14.7442 12.7442 15.75 11.5 15.75H4.5C3.25579 15.75 2.25 14.7442 2.25 13.5V2.5C2.25 1.25579 3.25579 0.25 4.5 0.25H9.31055L13.75 4.68728V13.5ZM3.75 2.5V13.5C3.75 13.9158 4.08421 14.25 4.5 14.25H11.5C11.9158 14.25 12.25 13.9158 12.25 13.5V6.75H9.5C8.25736 6.75 7.25 5.74264 7.25 4.5V1.75H4.5C4.08421 1.75 3.75 2.08421 3.75 2.5ZM8.75 1.81052V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H12.1912L8.75 1.81052Z"
306
300
  }, null, -1))
307
301
  ], 16);
308
302
  }
309
- const Oi = /* @__PURE__ */ _(Ti, [["render", Hi]]);
310
- let ba = 0;
311
- const Fi = {
303
+ const Zi = /* @__PURE__ */ _(Oi, [["render", qi]]);
304
+ let Ca = 0;
305
+ const Bi = {
312
306
  beforeCreate() {
313
- this.uuid = ba.toString(), ba += 1;
307
+ this.uuid = Ca.toString(), Ca += 1;
314
308
  }
315
- }, qi = { key: 0 };
316
- function Zi(a, i, n, e, l, t) {
317
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
309
+ }, Ai = { key: 0 };
310
+ function Ni(a, i, p, e, l, n) {
311
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
318
312
  class: "ui-assets-icons-16",
319
313
  xmlns: "http://www.w3.org/2000/svg",
320
314
  width: "16",
321
315
  height: "16",
322
316
  fill: "none"
323
317
  }), [
324
- a.$attrs["svg-title"] ? (s(), v("title", qi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
325
- i[0] || (i[0] = r("path", {
318
+ a.$attrs["svg-title"] ? (s(), v("title", Ai, u(a.$attrs["svg-title"]), 1)) : f("", !0),
319
+ i[0] || (i[0] = m("path", {
326
320
  fill: "#00112C",
327
321
  d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z"
328
322
  }, null, -1)),
329
- i[1] || (i[1] = r("path", {
323
+ i[1] || (i[1] = m("path", {
330
324
  fill: "#00112C",
331
325
  d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z"
332
326
  }, null, -1)),
333
- i[2] || (i[2] = r("path", {
327
+ i[2] || (i[2] = m("path", {
334
328
  fill: "#00112C",
335
329
  d: "M13.7461 13.5C13.7461 14.7442 12.7403 15.75 11.4961 15.75H4.49609C3.25188 15.75 2.24609 14.7442 2.24609 13.5V2.5C2.24609 1.25579 3.25188 0.25 4.49609 0.25H9.30665L13.7461 4.68728V13.5ZM3.74609 2.5V13.5C3.74609 13.9158 4.08031 14.25 4.49609 14.25H11.4961C11.9119 14.25 12.2461 13.9158 12.2461 13.5V6.75H9.49609C8.25345 6.75 7.24609 5.74264 7.24609 4.5V1.75H4.49609C4.08031 1.75 3.74609 2.08421 3.74609 2.5ZM8.74609 1.81052V4.5C8.74609 4.91421 9.08188 5.25 9.49609 5.25H12.1873L8.74609 1.81052Z"
336
330
  }, null, -1))
337
331
  ], 16);
338
332
  }
339
- const Bi = /* @__PURE__ */ _(Fi, [["render", Zi]]);
340
- let wa = 0;
341
- const Ai = {
333
+ const Pi = /* @__PURE__ */ _(Bi, [["render", Ni]]);
334
+ let ya = 0;
335
+ const Ui = {
342
336
  beforeCreate() {
343
- this.uuid = wa.toString(), wa += 1;
337
+ this.uuid = ya.toString(), ya += 1;
344
338
  }
345
- }, Ni = { key: 0 };
346
- function Pi(a, i, n, e, l, t) {
347
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
339
+ }, Wi = { key: 0 };
340
+ function Gi(a, i, p, e, l, n) {
341
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
348
342
  class: "ui-assets-icons-16",
349
343
  xmlns: "http://www.w3.org/2000/svg",
350
344
  width: "16",
351
345
  height: "16",
352
346
  fill: "none"
353
347
  }), [
354
- a.$attrs["svg-title"] ? (s(), v("title", Ni, u(a.$attrs["svg-title"]), 1)) : f("", !0),
355
- i[0] || (i[0] = r("path", {
348
+ a.$attrs["svg-title"] ? (s(), v("title", Wi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
349
+ i[0] || (i[0] = m("path", {
356
350
  fill: "#00112C",
357
351
  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"
358
352
  }, null, -1))
359
353
  ], 16);
360
354
  }
361
- const Ui = /* @__PURE__ */ _(Ai, [["render", Pi]]);
362
- let Ca = 0;
363
- const Wi = {
355
+ const Yi = /* @__PURE__ */ _(Ui, [["render", Gi]]);
356
+ let ka = 0;
357
+ const Xi = {
364
358
  beforeCreate() {
365
- this.uuid = Ca.toString(), Ca += 1;
359
+ this.uuid = ka.toString(), ka += 1;
366
360
  }
367
- }, Gi = { key: 0 };
368
- function Yi(a, i, n, e, l, t) {
369
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
361
+ }, Ji = { key: 0 };
362
+ function Ki(a, i, p, e, l, n) {
363
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
370
364
  class: "ui-assets-icons-16",
371
365
  xmlns: "http://www.w3.org/2000/svg",
372
366
  width: "16",
373
367
  height: "16",
374
368
  fill: "none"
375
369
  }), [
376
- a.$attrs["svg-title"] ? (s(), v("title", Gi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
377
- i[0] || (i[0] = r("path", {
370
+ a.$attrs["svg-title"] ? (s(), v("title", Ji, u(a.$attrs["svg-title"]), 1)) : f("", !0),
371
+ i[0] || (i[0] = m("path", {
378
372
  fill: "#00112C",
379
373
  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"
380
374
  }, null, -1)),
381
- i[1] || (i[1] = r("path", {
375
+ i[1] || (i[1] = m("path", {
382
376
  fill: "#00112C",
383
377
  d: "M1.24609 3.49805C1.24609 2.25541 2.25345 1.24805 3.49609 1.24805H12.4961C13.7387 1.24805 14.7461 2.25541 14.7461 3.49805V12.498C14.7461 13.7407 13.7387 14.748 12.4961 14.748H3.49609C2.25345 14.748 1.24609 13.7407 1.24609 12.498V3.49805ZM3.49609 2.74805C3.08188 2.74805 2.74609 3.08383 2.74609 3.49805V6.68756L3.99615 5.4375L11.8067 13.248H12.4961C12.9103 13.248 13.2461 12.9123 13.2461 12.498V3.49805C13.2461 3.08383 12.9103 2.74805 12.4961 2.74805H3.49609ZM2.74609 12.498C2.74609 12.9123 3.08188 13.248 3.49609 13.248H9.68538L3.99615 7.55882L2.74609 8.80888V12.498Z"
384
378
  }, null, -1))
385
379
  ], 16);
386
380
  }
387
- const Xi = /* @__PURE__ */ _(Wi, [["render", Yi]]);
388
- let ya = 0;
389
- const Ji = {
381
+ const Qi = /* @__PURE__ */ _(Xi, [["render", Ki]]);
382
+ let $a = 0;
383
+ const ae = {
390
384
  beforeCreate() {
391
- this.uuid = ya.toString(), ya += 1;
385
+ this.uuid = $a.toString(), $a += 1;
392
386
  }
393
- }, Ki = { key: 0 }, Qi = ["clip-path"], ae = ["id"];
394
- function ie(a, i, n, e, l, t) {
395
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
387
+ }, ie = { key: 0 }, ee = ["clip-path"], te = ["id"];
388
+ function ne(a, i, p, e, l, n) {
389
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
396
390
  class: "ui-assets-icons-16",
397
391
  xmlns: "http://www.w3.org/2000/svg",
398
392
  width: "16",
399
393
  height: "16",
400
394
  fill: "none"
401
395
  }), [
402
- a.$attrs["svg-title"] ? (s(), v("title", Ki, u(a.$attrs["svg-title"]), 1)) : f("", !0),
403
- r("g", {
396
+ a.$attrs["svg-title"] ? (s(), v("title", ie, u(a.$attrs["svg-title"]), 1)) : f("", !0),
397
+ m("g", {
404
398
  fill: "#00112C",
405
399
  "clip-path": "url(#uia-icons-16-play_circle__a" + a.uuid + ")"
406
400
  }, i[0] || (i[0] = [
407
- r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
408
- 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)
409
- ]), 8, Qi),
410
- r("defs", null, [
411
- r("clipPath", {
401
+ m("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
402
+ m("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)
403
+ ]), 8, ee),
404
+ m("defs", null, [
405
+ m("clipPath", {
412
406
  id: "uia-icons-16-play_circle__a" + a.uuid
413
407
  }, i[1] || (i[1] = [
414
- r("rect", {
408
+ m("rect", {
415
409
  width: "16",
416
410
  height: "16",
417
411
  fill: "#fff"
418
412
  }, null, -1)
419
- ]), 8, ae)
413
+ ]), 8, te)
420
414
  ])
421
415
  ], 16);
422
416
  }
423
- const ee = /* @__PURE__ */ _(Ji, [["render", ie]]);
424
- let ka = 0;
425
- const te = {
417
+ const pe = /* @__PURE__ */ _(ae, [["render", ne]]);
418
+ let ja = 0;
419
+ const oe = {
426
420
  beforeCreate() {
427
- this.uuid = ka.toString(), ka += 1;
421
+ this.uuid = ja.toString(), ja += 1;
428
422
  }
429
- }, ne = { key: 0 };
430
- function pe(a, i, n, e, l, t) {
431
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
423
+ }, le = { key: 0 };
424
+ function se(a, i, p, e, l, n) {
425
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
432
426
  class: "ui-assets-icons-16",
433
427
  xmlns: "http://www.w3.org/2000/svg",
434
428
  width: "16",
435
429
  height: "16",
436
430
  fill: "none"
437
431
  }), [
438
- a.$attrs["svg-title"] ? (s(), v("title", ne, u(a.$attrs["svg-title"]), 1)) : f("", !0),
439
- i[0] || (i[0] = r("path", {
432
+ a.$attrs["svg-title"] ? (s(), v("title", le, u(a.$attrs["svg-title"]), 1)) : f("", !0),
433
+ i[0] || (i[0] = m("path", {
440
434
  fill: "#00112C",
441
435
  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"
442
436
  }, null, -1)),
443
- i[1] || (i[1] = r("path", {
437
+ i[1] || (i[1] = m("path", {
444
438
  fill: "#00112C",
445
439
  d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z"
446
440
  }, null, -1)),
447
- i[2] || (i[2] = r("path", {
441
+ i[2] || (i[2] = m("path", {
448
442
  fill: "#00112C",
449
443
  d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z"
450
444
  }, null, -1))
451
445
  ], 16);
452
446
  }
453
- const oe = /* @__PURE__ */ _(te, [["render", pe]]);
454
- let $a = 0;
455
- const le = {
447
+ const ce = /* @__PURE__ */ _(oe, [["render", se]]);
448
+ let _a = 0;
449
+ const de = {
456
450
  beforeCreate() {
457
- this.uuid = $a.toString(), $a += 1;
451
+ this.uuid = _a.toString(), _a += 1;
458
452
  }
459
- }, se = { key: 0 };
460
- function ce(a, i, n, e, l, t) {
461
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
453
+ }, re = { key: 0 };
454
+ function me(a, i, p, e, l, n) {
455
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
462
456
  class: "ui-assets-icons-16",
463
457
  xmlns: "http://www.w3.org/2000/svg",
464
458
  width: "16",
465
459
  height: "16",
466
460
  fill: "none"
467
461
  }), [
468
- a.$attrs["svg-title"] ? (s(), v("title", se, u(a.$attrs["svg-title"]), 1)) : f("", !0),
469
- i[0] || (i[0] = r("path", {
462
+ a.$attrs["svg-title"] ? (s(), v("title", re, u(a.$attrs["svg-title"]), 1)) : f("", !0),
463
+ i[0] || (i[0] = m("path", {
470
464
  fill: "#00112C",
471
465
  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"
472
466
  }, null, -1))
473
467
  ], 16);
474
468
  }
475
- const de = /* @__PURE__ */ _(le, [["render", ce]]), re = {
476
- [x.AUDIO]: oe,
477
- [x.COMPRESSED]: Ui,
478
- [x.GENERIC]: Li,
479
- [x.IMAGE]: Xi,
480
- [x.PDF]: Oi,
481
- [x.SLIDES]: Si,
482
- [x.TABLE]: de,
483
- [x.TEXT]: Bi,
484
- [x.VIDEO]: ee
469
+ const ue = /* @__PURE__ */ _(de, [["render", me]]), ve = {
470
+ [x.AUDIO]: ce,
471
+ [x.COMPRESSED]: Yi,
472
+ [x.GENERIC]: Vi,
473
+ [x.IMAGE]: Qi,
474
+ [x.PDF]: Zi,
475
+ [x.SLIDES]: Di,
476
+ [x.TABLE]: ue,
477
+ [x.TEXT]: Pi,
478
+ [x.VIDEO]: pe
485
479
  };
486
- function me(a) {
487
- return re[a.type];
480
+ function fe(a) {
481
+ return ve[a.type];
488
482
  }
489
- function ue(a) {
483
+ function xe(a) {
490
484
  switch (a.type) {
491
485
  case x.COMPRESSED:
492
486
  case x.GENERIC:
@@ -519,90 +513,90 @@ const Ia = {
519
513
  remove: "Remover",
520
514
  retry: "Tentar novamente"
521
515
  }
522
- }, ve = { class: "b-file-uploader-file-card__details" }, fe = { class: "b-file-uploader-file-card__info" }, xe = { class: "b-file-uploader-file-card__actions" }, ge = {
516
+ }, ge = { class: "b-file-uploader-file-card__details" }, he = { class: "b-file-uploader-file-card__info" }, be = { class: "b-file-uploader-file-card__actions" }, we = {
523
517
  name: "file-uploader-file-card",
524
518
  i18n: { messages: Ia }
525
- }, he = /* @__PURE__ */ ia({
526
- ...ge,
519
+ }, Ce = /* @__PURE__ */ aa({
520
+ ...we,
527
521
  props: {
528
522
  file: {},
529
523
  supportedFileTypes: { default: null }
530
524
  },
531
525
  emits: ["cancel", "remove", "retry"],
532
526
  setup(a, { emit: i }) {
533
- const e = a, l = i, { t, locale: C } = ea({ messages: Ia }), c = T(e.file.state === L.SUCCESS), d = b(() => URL.createObjectURL(e.file.data)), w = b(() => e.file.state === L.ERROR), q = b(() => e.file.errors.includes(j.ERROR_LOAD)), U = b(() => e.file.errors.includes(j.ERROR_SIZE)), H = b(() => e.file.errors.includes(j.ERROR_DIMENSIONS)), Z = b(() => e.file.errors.includes(j.ERROR_TYPE)), W = b(() => e.file.state === L.LOADING), G = b(() => e.file.progress && `(${e.file.progress.toFixed(0)}%)`), B = b(() => La(C.value, e.file.data.size)), Y = T(), O = T(), ta = gi(Y, O), A = b(() => ({
527
+ const e = a, l = i, { t: n, locale: C } = ia({ messages: Ia }), c = T(e.file.state === R.SUCCESS), d = h(() => URL.createObjectURL(e.file.data)), w = h(() => e.file.state === R.ERROR), q = h(() => e.file.errors.includes(j.ERROR_LOAD)), G = h(() => e.file.errors.includes(j.ERROR_SIZE)), D = h(() => e.file.errors.includes(j.ERROR_DIMENSIONS)), Z = h(() => e.file.errors.includes(j.ERROR_TYPE)), Y = h(() => e.file.state === R.LOADING), X = h(() => e.file.progress && `(${e.file.progress.toFixed(0)}%)`), B = h(() => Ma(C.value, e.file.data.size)), J = T(), O = T(), ea = wi(J, O), ta = h(() => ({
534
528
  "b-file-uploader-file-card--error": w.value
535
- })), X = b(() => ({
536
- [`b-file-uploader-file-card__icon--${ue(e.file)}`]: c.value,
529
+ })), A = h(() => ({
530
+ [`b-file-uploader-file-card__icon--${xe(e.file)}`]: c.value,
537
531
  "b-file-uploader-file-card__icon--error": w.value
538
- })), J = b(() => W.value ? pi : w.value ? Ea : c.value ? me(e.file) : ai);
539
- return _a(
532
+ })), N = h(() => Y.value ? si : w.value ? Ra : c.value ? fe(e.file) : ti);
533
+ return la(
540
534
  () => e.file.state,
541
- (E) => {
542
- if (E === L.SUCCESS && !c.value) {
543
- const V = setTimeout(() => {
544
- c.value = !0, clearTimeout(V);
535
+ (M) => {
536
+ if (M === R.SUCCESS && !c.value) {
537
+ const I = setTimeout(() => {
538
+ c.value = !0, clearTimeout(I);
545
539
  }, 1200);
546
540
  }
547
541
  }
548
- ), (E, V) => (s(), v("div", {
549
- class: S(["b-file-uploader-file-card", A.value])
542
+ ), (M, I) => (s(), v("div", {
543
+ class: S(["b-file-uploader-file-card", ta.value])
550
544
  }, [
551
- r("div", ve, [
552
- r("div", fe, [
553
- M(o(mi), {
554
- name: o(Ra) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
545
+ m("div", ge, [
546
+ m("div", he, [
547
+ V(o(fi), {
548
+ name: o(La) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
555
549
  "show-file-icon": c.value
556
550
  }, {
557
551
  default: g(() => [
558
- (s(), h(Ya(J.value), {
559
- key: JSON.stringify(J.value),
552
+ (s(), b(Ka(N.value), {
553
+ key: JSON.stringify(N.value),
560
554
  small: "",
561
- class: S(["b-file-uploader-file-card__icon", X.value]),
555
+ class: S(["b-file-uploader-file-card__icon", A.value]),
562
556
  "data-testid": "file-uploader-item-icon"
563
557
  }, null, 8, ["class"]))
564
558
  ]),
565
559
  _: 1
566
560
  }, 8, ["name", "show-file-icon"]),
567
- r("div", {
561
+ m("div", {
568
562
  ref_key: "fileNameContainerRef",
569
563
  ref: O,
570
564
  class: "b-file-uploader-file-card__file-name"
571
565
  }, [
572
- M(o(ni), {
573
- download: E.file.data.name,
566
+ V(o(li), {
567
+ download: M.file.data.name,
574
568
  to: d.value,
575
569
  "disable-typography": "",
576
570
  "is-not-routing": "",
577
571
  variant: "quiet"
578
572
  }, {
579
573
  default: g(() => [
580
- za((s(), h(o(z), {
574
+ Ea((s(), b(o(z), {
581
575
  ref_key: "fileNameRef",
582
- ref: Y,
576
+ ref: J,
583
577
  stronger: "",
584
578
  el: "span"
585
579
  }, {
586
580
  default: g(() => [
587
- $(u(E.file.data.name), 1)
581
+ $(u(M.file.data.name), 1)
588
582
  ]),
589
583
  _: 1
590
584
  })), [
591
- [o(ti), o(ta) ? E.file.data.name : null]
585
+ [o(oi), o(ea) ? M.file.data.name : null]
592
586
  ])
593
587
  ]),
594
588
  _: 1
595
589
  }, 8, ["download", "to"])
596
590
  ], 512),
597
- E.file.progress ? (s(), h(o(z), {
591
+ M.file.progress ? (s(), b(o(z), {
598
592
  key: 0,
599
593
  el: "span"
600
594
  }, {
601
595
  default: g(() => [
602
- $(u(G.value), 1)
596
+ $(u(X.value), 1)
603
597
  ]),
604
598
  _: 1
605
- })) : E.file.data.size ? (s(), h(o(z), {
599
+ })) : M.file.data.size ? (s(), b(o(z), {
606
600
  key: 1,
607
601
  class: "b-file-uploader-file-card__file-size",
608
602
  el: "span"
@@ -613,69 +607,69 @@ const Ia = {
613
607
  _: 1
614
608
  })) : f("", !0)
615
609
  ]),
616
- U.value ? (s(), h(o(z), {
610
+ G.value ? (s(), b(o(z), {
617
611
  key: 0,
618
612
  class: "b-file-uploader-file-card__error-message"
619
613
  }, {
620
614
  default: g(() => [
621
- $(u(o(t)("fileExceedsSizeLimit")), 1)
615
+ $(u(o(n)("fileExceedsSizeLimit")), 1)
622
616
  ]),
623
617
  _: 1
624
618
  })) : f("", !0),
625
- H.value ? (s(), h(o(z), {
619
+ D.value ? (s(), b(o(z), {
626
620
  key: 1,
627
621
  class: "b-file-uploader-file-card__error-message"
628
622
  }, {
629
623
  default: g(() => [
630
- $(u(o(t)("imageDimensionsExceedLimits")), 1)
624
+ $(u(o(n)("imageDimensionsExceedLimits")), 1)
631
625
  ]),
632
626
  _: 1
633
627
  })) : f("", !0),
634
- Z.value && E.supportedFileTypes ? (s(), h(o(z), {
628
+ Z.value && M.supportedFileTypes ? (s(), b(o(z), {
635
629
  key: 2,
636
630
  class: "b-file-uploader-file-card__error-message"
637
631
  }, {
638
632
  default: g(() => [
639
- $(u(o(t)("fileTypeMustBe", { list: E.supportedFileTypes })), 1)
633
+ $(u(o(n)("fileTypeMustBe", { list: M.supportedFileTypes })), 1)
640
634
  ]),
641
635
  _: 1
642
636
  })) : f("", !0)
643
637
  ]),
644
- r("div", xe, [
645
- q.value ? (s(), h(o(Q), {
638
+ m("div", be, [
639
+ q.value ? (s(), b(o(K), {
646
640
  key: 0,
647
641
  variant: "tertiary",
648
- onClick: V[0] || (V[0] = (K) => l("retry"))
642
+ onClick: I[0] || (I[0] = (P) => l("retry"))
649
643
  }, {
650
644
  iconLeft: g(() => [
651
- M(o(ei), {
652
- "svg-title": o(t)("retry")
645
+ V(o(pi), {
646
+ "svg-title": o(n)("retry")
653
647
  }, null, 8, ["svg-title"])
654
648
  ]),
655
649
  default: g(() => [
656
- $(" " + u(o(t)("retry")), 1)
650
+ $(" " + u(o(n)("retry")), 1)
657
651
  ]),
658
652
  _: 1
659
653
  })) : f("", !0),
660
- W.value || w.value ? (s(), h(o(Q), {
654
+ Y.value || w.value ? (s(), b(o(K), {
661
655
  key: 1,
662
656
  variant: "tertiary",
663
- onClick: V[1] || (V[1] = (K) => l("cancel"))
657
+ onClick: I[1] || (I[1] = (P) => l("cancel"))
664
658
  }, {
665
659
  iconLeft: g(() => [
666
- M(o(ii), {
667
- "svg-title": o(t)("cancel")
660
+ V(o(ni), {
661
+ "svg-title": o(n)("cancel")
668
662
  }, null, 8, ["svg-title"])
669
663
  ]),
670
664
  _: 1
671
- })) : (s(), h(o(Q), {
665
+ })) : (s(), b(o(K), {
672
666
  key: 2,
673
667
  variant: "tertiary",
674
- onClick: V[2] || (V[2] = (K) => l("remove"))
668
+ onClick: I[2] || (I[2] = (P) => l("remove"))
675
669
  }, {
676
670
  iconLeft: g(() => [
677
- M(o(xi), {
678
- "svg-title": o(t)("remove")
671
+ V(o(bi), {
672
+ "svg-title": o(n)("remove")
679
673
  }, null, 8, ["svg-title"])
680
674
  ]),
681
675
  _: 1
@@ -683,7 +677,7 @@ const Ia = {
683
677
  ])
684
678
  ], 2));
685
679
  }
686
- }), be = /* @__PURE__ */ _(he, [["__scopeId", "data-v-13fa0d5e"]]), Va = {
680
+ }), ye = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-13fa0d5e"]]), Va = {
687
681
  "en-US": {
688
682
  maxFileSize: "Max file size: {size}",
689
683
  maxImageDimensions: "Max image dimensions: {width} × {height}px",
@@ -692,10 +686,10 @@ const Ia = {
692
686
  maxUpload: "Max upload: {count} file | Max upload: {count} files",
693
687
  supportedFileTypes: "Supported file types: {list}"
694
688
  }
695
- }, we = {
689
+ }, ke = {
696
690
  i18n: { messages: Va }
697
- }, Ce = /* @__PURE__ */ ia({
698
- ...we,
691
+ }, $e = /* @__PURE__ */ aa({
692
+ ...ke,
699
693
  __name: "file-uploader-restrictions",
700
694
  props: {
701
695
  condensed: { type: Boolean, default: null },
@@ -706,7 +700,7 @@ const Ia = {
706
700
  supportedFileTypes: { default: null }
707
701
  },
708
702
  setup(a) {
709
- const i = a, { t: n, tc: e, locale: l } = ea({ messages: Va }), t = b(() => ({
703
+ const i = a, { t: p, tc: e, locale: l } = ia({ messages: Va }), n = h(() => ({
710
704
  "b-file-uploader-restrictions--condensed": i.condensed,
711
705
  "b-file-uploader-restrictions--disabled": i.disabled
712
706
  }));
@@ -715,36 +709,36 @@ const Ia = {
715
709
  "b-file-uploader-restrictions--error": d
716
710
  };
717
711
  }
718
- const c = b(() => {
712
+ const c = h(() => {
719
713
  if (!i.maxDimensions)
720
714
  return null;
721
715
  const {
722
716
  value: { width: d, height: w }
723
717
  } = i.maxDimensions;
724
- return d && w ? n("maxImageDimensions", { width: d, height: w }) : d ? n("maxImageWidth", { width: d }) : w ? n("maxImageHeight", { height: w }) : null;
718
+ return d && w ? p("maxImageDimensions", { width: d, height: w }) : d ? p("maxImageWidth", { width: d }) : w ? p("maxImageHeight", { height: w }) : null;
725
719
  });
726
720
  return (d, w) => (s(), v("div", {
727
- class: S(["b-file-uploader-restrictions", t.value])
721
+ class: S(["b-file-uploader-restrictions", n.value])
728
722
  }, [
729
- d.supportedFileTypes ? (s(), h(o(z), {
723
+ d.supportedFileTypes ? (s(), b(o(z), {
730
724
  key: 0,
731
725
  class: S(C(d.supportedFileTypes.error))
732
726
  }, {
733
727
  default: g(() => [
734
- $(u(o(n)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
728
+ $(u(o(p)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
735
729
  ]),
736
730
  _: 1
737
731
  }, 8, ["class"])) : f("", !0),
738
- d.maxSize ? (s(), h(o(z), {
732
+ d.maxSize ? (s(), b(o(z), {
739
733
  key: 1,
740
734
  class: S(C(d.maxSize.error))
741
735
  }, {
742
736
  default: g(() => [
743
- $(u(o(n)("maxFileSize", { size: o(La)(o(l), d.maxSize.value) })), 1)
737
+ $(u(o(p)("maxFileSize", { size: o(Ma)(o(l), d.maxSize.value) })), 1)
744
738
  ]),
745
739
  _: 1
746
740
  }, 8, ["class"])) : f("", !0),
747
- d.maxDimensions ? (s(), h(o(z), {
741
+ d.maxDimensions ? (s(), b(o(z), {
748
742
  key: 2,
749
743
  class: S(C(d.maxDimensions.error))
750
744
  }, {
@@ -753,7 +747,7 @@ const Ia = {
753
747
  ]),
754
748
  _: 1
755
749
  }, 8, ["class"])) : f("", !0),
756
- d.maxCount ? (s(), h(o(z), {
750
+ d.maxCount ? (s(), b(o(z), {
757
751
  key: 3,
758
752
  class: S(C(d.maxCount.error))
759
753
  }, {
@@ -764,51 +758,7 @@ const Ia = {
764
758
  }, 8, ["class"])) : f("", !0)
765
759
  ], 2));
766
760
  }
767
- }), ja = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-d7c2e9cd"]]);
768
- function ye(a) {
769
- const { locale: i, t: n } = ea();
770
- return { supportedFileTypeList: b(() => {
771
- const l = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
772
- return a != null && a.value ? l.format(
773
- a.value.split(",").map((t) => {
774
- const C = t.trim();
775
- switch (C) {
776
- case "audio/*":
777
- return n("audioFiles");
778
- case "image/*":
779
- return n("imageFiles");
780
- case "video/*":
781
- return n("videoFiles");
782
- default:
783
- return C.toUpperCase();
784
- }
785
- })
786
- ) : null;
787
- }) };
788
- }
789
- const Ma = {
790
- "en-US": {
791
- audioFiles: "audio files",
792
- browseFiles: "Browse files",
793
- dropArea: "Drop area",
794
- dropFiles: "Drop file to upload | Drop files to upload",
795
- fileExceedsSizeLimit: "File exceeds size limit",
796
- imageFiles: "image files",
797
- tooManyFiles: "Too many files",
798
- upload: "Upload",
799
- videoFiles: "video files",
800
- warning: "Warning",
801
- youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
802
- },
803
- "ja-JP": {
804
- upload: "アップロード",
805
- warning: "警告"
806
- },
807
- "pt-BR": {
808
- upload: "Carregar",
809
- warning: "Aviso"
810
- }
811
- }, Sa = {
761
+ }), za = /* @__PURE__ */ _($e, [["__scopeId", "data-v-d7c2e9cd"]]), Sa = {
812
762
  "application/prs.cww": ["cww"],
813
763
  "application/prs.xsf+xml": ["xsf"],
814
764
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1861,30 +1811,30 @@ const Ta = {
1861
1811
  "video/webm": ["webm"]
1862
1812
  };
1863
1813
  Object.freeze(Ta);
1864
- var R = function(a, i, n, e) {
1865
- if (n === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
1814
+ var E = function(a, i, p, e) {
1815
+ if (p === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
1866
1816
  if (typeof i == "function" ? a !== i || !e : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1867
- return n === "m" ? e : n === "a" ? e.call(a) : e ? e.value : i.get(a);
1868
- }, F, P, D;
1869
- class ke {
1817
+ return p === "m" ? e : p === "a" ? e.call(a) : e ? e.value : i.get(a);
1818
+ }, F, W, H;
1819
+ class je {
1870
1820
  constructor(...i) {
1871
- F.set(this, /* @__PURE__ */ new Map()), P.set(this, /* @__PURE__ */ new Map()), D.set(this, /* @__PURE__ */ new Map());
1872
- for (const n of i)
1873
- this.define(n);
1821
+ F.set(this, /* @__PURE__ */ new Map()), W.set(this, /* @__PURE__ */ new Map()), H.set(this, /* @__PURE__ */ new Map());
1822
+ for (const p of i)
1823
+ this.define(p);
1874
1824
  }
1875
- define(i, n = !1) {
1825
+ define(i, p = !1) {
1876
1826
  for (let [e, l] of Object.entries(i)) {
1877
- e = e.toLowerCase(), l = l.map((c) => c.toLowerCase()), R(this, D, "f").has(e) || R(this, D, "f").set(e, /* @__PURE__ */ new Set());
1878
- const t = R(this, D, "f").get(e);
1827
+ e = e.toLowerCase(), l = l.map((c) => c.toLowerCase()), E(this, H, "f").has(e) || E(this, H, "f").set(e, /* @__PURE__ */ new Set());
1828
+ const n = E(this, H, "f").get(e);
1879
1829
  let C = !0;
1880
1830
  for (let c of l) {
1881
1831
  const d = c.startsWith("*");
1882
- if (c = d ? c.slice(1) : c, t == null || t.add(c), C && R(this, P, "f").set(e, c), C = !1, d)
1832
+ if (c = d ? c.slice(1) : c, n == null || n.add(c), C && E(this, W, "f").set(e, c), C = !1, d)
1883
1833
  continue;
1884
- const w = R(this, F, "f").get(c);
1885
- if (w && w != e && !n)
1834
+ const w = E(this, F, "f").get(c);
1835
+ if (w && w != e && !p)
1886
1836
  throw new Error(`"${e} -> ${c}" conflicts with "${w} -> ${c}". Pass \`force=true\` to override this definition.`);
1887
- R(this, F, "f").set(c, e);
1837
+ E(this, F, "f").set(c, e);
1888
1838
  }
1889
1839
  }
1890
1840
  return this;
@@ -1892,72 +1842,118 @@ class ke {
1892
1842
  getType(i) {
1893
1843
  if (typeof i != "string")
1894
1844
  return null;
1895
- const n = i.replace(/^.*[/\\]/, "").toLowerCase(), e = n.replace(/^.*\./, "").toLowerCase(), l = n.length < i.length;
1896
- return !(e.length < n.length - 1) && l ? null : R(this, F, "f").get(e) ?? null;
1845
+ const p = i.replace(/^.*[/\\]/, "").toLowerCase(), e = p.replace(/^.*\./, "").toLowerCase(), l = p.length < i.length;
1846
+ return !(e.length < p.length - 1) && l ? null : E(this, F, "f").get(e) ?? null;
1897
1847
  }
1898
1848
  getExtension(i) {
1899
- var n;
1900
- return typeof i != "string" ? null : (i = (n = i == null ? void 0 : i.split) == null ? void 0 : n.call(i, ";")[0], (i && R(this, P, "f").get(i.trim().toLowerCase())) ?? null);
1849
+ var p;
1850
+ return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i && E(this, W, "f").get(i.trim().toLowerCase())) ?? null);
1901
1851
  }
1902
1852
  getAllExtensions(i) {
1903
- return typeof i != "string" ? null : R(this, D, "f").get(i.toLowerCase()) ?? null;
1853
+ return typeof i != "string" ? null : E(this, H, "f").get(i.toLowerCase()) ?? null;
1904
1854
  }
1905
1855
  _freeze() {
1906
1856
  this.define = () => {
1907
1857
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1908
1858
  }, Object.freeze(this);
1909
- for (const i of R(this, D, "f").values())
1859
+ for (const i of E(this, H, "f").values())
1910
1860
  Object.freeze(i);
1911
1861
  return this;
1912
1862
  }
1913
1863
  _getTestState() {
1914
1864
  return {
1915
- types: R(this, F, "f"),
1916
- extensions: R(this, P, "f")
1865
+ types: E(this, F, "f"),
1866
+ extensions: E(this, W, "f")
1917
1867
  };
1918
1868
  }
1919
1869
  }
1920
- F = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
1921
- const $e = new ke(Ta, Sa)._freeze();
1922
- function je(a) {
1923
- return $e.getType(a) ?? a;
1870
+ F = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap();
1871
+ const Ha = new je(Ta, Sa)._freeze();
1872
+ function _e(a) {
1873
+ return a.includes("/") ? `.${Ha.getExtension(a).toUpperCase()}` : a.toUpperCase();
1874
+ }
1875
+ function ze(a) {
1876
+ const { locale: i, t: p } = ia();
1877
+ return { supportedFileTypeList: h(() => {
1878
+ const l = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
1879
+ return a != null && a.value ? l.format(
1880
+ a.value.split(",").map((n) => {
1881
+ switch (n.trim()) {
1882
+ case "audio/*":
1883
+ return p("audioFiles");
1884
+ case "image/*":
1885
+ return p("imageFiles");
1886
+ case "video/*":
1887
+ return p("videoFiles");
1888
+ default:
1889
+ return _e(n);
1890
+ }
1891
+ })
1892
+ ) : null;
1893
+ }) };
1924
1894
  }
1925
- function _e({ maxCount: a, accept: i }) {
1926
- const n = la({
1895
+ const Da = {
1896
+ "en-US": {
1897
+ audioFiles: "audio files",
1898
+ browseFiles: "Browse files",
1899
+ dropArea: "Drop area",
1900
+ dropFiles: "Drop file to upload | Drop files to upload",
1901
+ fileExceedsSizeLimit: "File exceeds size limit",
1902
+ imageFiles: "image files",
1903
+ tooManyFiles: "Too many files",
1904
+ upload: "Upload",
1905
+ videoFiles: "video files",
1906
+ warning: "Warning",
1907
+ youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
1908
+ },
1909
+ "ja-JP": {
1910
+ upload: "アップロード",
1911
+ warning: "警告"
1912
+ },
1913
+ "pt-BR": {
1914
+ upload: "Carregar",
1915
+ warning: "Aviso"
1916
+ }
1917
+ };
1918
+ function Ee(a) {
1919
+ return Ha.getType(a) ?? a;
1920
+ }
1921
+ function Re({ maxCount: a, accept: i }) {
1922
+ const p = sa({
1927
1923
  invalidTypes: !1,
1928
1924
  partiallyInvalidTypes: !1,
1929
1925
  maxCountOverflow: !1
1930
- }), e = la({
1926
+ }), e = sa({
1931
1927
  dragging: !1,
1932
1928
  error: !1
1933
- }), l = b(() => i.value ? i.value.split(",").map((d) => je(d.trim().toLocaleLowerCase())) : void 0);
1934
- function t() {
1935
- e.dragging = !1, e.error = !1, n.invalidTypes = !1, n.partiallyInvalidTypes = !1, n.maxCountOverflow = !1;
1929
+ }), l = h(() => i.value ? i.value.split(",").map((d) => Ee(d.trim().toLocaleLowerCase())) : void 0);
1930
+ function n() {
1931
+ e.dragging = !1, e.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
1936
1932
  }
1937
1933
  function C(c, d) {
1938
- if (e.dragging = !0, (!d.dataTransfer.types.includes("Files") || c > a.value) && (n.maxCountOverflow = !0, e.error = !0), !l.value)
1934
+ if (e.dragging = !0, (!d.dataTransfer.types.includes("Files") || c > a.value) && (p.maxCountOverflow = !0, e.error = !0), !l.value)
1939
1935
  return;
1940
1936
  let w = 0;
1941
1937
  for (const q of d.dataTransfer.items)
1942
1938
  l.value.includes(q.type) && w++;
1943
1939
  if (w === 0) {
1944
- e.error = !0, n.invalidTypes = !0;
1940
+ e.error = !0, p.invalidTypes = !0;
1945
1941
  return;
1946
1942
  }
1947
- !n.invalidTypes && w !== d.dataTransfer.items.length && (e.error = !0, n.partiallyInvalidTypes = !0);
1943
+ !p.invalidTypes && w !== d.dataTransfer.items.length && (e.error = !0, p.partiallyInvalidTypes = !0);
1948
1944
  }
1949
1945
  return {
1950
1946
  dragState: e,
1951
- dragErrors: n,
1952
- resetDragState: t,
1947
+ dragErrors: p,
1948
+ resetDragState: n,
1953
1949
  onDragEnterValidations: C
1954
1950
  };
1955
1951
  }
1956
- const ze = ["id", "accept", "disabled", "multiple"], Ee = ["aria-label", "tabindex"], Re = { class: "b-file-uploader__icon" }, Le = { class: "b-file-uploader__files" }, Ie = {
1952
+ const Le = ["id", "accept", "disabled", "multiple"], Me = ["aria-label", "tabindex"], Ie = { class: "b-file-uploader__icon" }, Ve = { class: "b-file-uploader__files" }, Se = {
1957
1953
  model: { prop: "modelValue" },
1958
- i18n: { messages: Ma }
1959
- }, Ve = /* @__PURE__ */ ia({
1960
- ...Ie,
1954
+ i18n: { messages: Da }
1955
+ }, Te = /* @__PURE__ */ aa({
1956
+ ...Se,
1961
1957
  __name: "file-uploader",
1962
1958
  props: {
1963
1959
  accept: { default: null },
@@ -1974,135 +1970,144 @@ const ze = ["id", "accept", "disabled", "multiple"], Ee = ["aria-label", "tabind
1974
1970
  required: { type: Boolean },
1975
1971
  tooltipText: { default: null }
1976
1972
  },
1977
- emits: ["change", "update:modelValue"],
1973
+ emits: ["change", "update:modelValue", "error:upload"],
1978
1974
  setup(a, { emit: i }) {
1979
- const { t: n, tc: e } = ea({ messages: Ma }), l = i, t = a, { supportedFileTypeList: C } = ye(pa(t, "accept")), c = T(null), d = T(null), w = oa("input"), q = oa("input-error"), { dragState: U, dragErrors: H, resetDragState: Z, onDragEnterValidations: W } = _e({
1980
- accept: pa(t, "accept"),
1981
- maxCount: pa(t, "maxCount")
1982
- }), G = b(() => {
1983
- var p, m, y;
1975
+ const { t: p, tc: e } = ia({ messages: Da }), l = i, n = a, { supportedFileTypeList: C } = ze(pa(n, "accept")), c = T(null), d = T(null), w = oa("input"), q = oa("input-error"), { dragState: G, dragErrors: D, resetDragState: Z, onDragEnterValidations: Y } = Re({
1976
+ accept: pa(n, "accept"),
1977
+ maxCount: pa(n, "maxCount")
1978
+ }), X = h(() => {
1979
+ var t, r, y;
1984
1980
  return {
1985
- condensed: t.condensed,
1986
- disabled: t.disabled,
1981
+ condensed: n.condensed,
1982
+ disabled: n.disabled,
1987
1983
  maxCount: O.value ? {
1988
- value: t.maxCount,
1989
- error: H.maxCountOverflow || X.value
1984
+ value: n.maxCount,
1985
+ error: D.maxCountOverflow || N.value
1990
1986
  } : null,
1991
- maxDimensions: t.maxDimensions ? {
1992
- value: t.maxDimensions,
1993
- error: (p = c.value) == null ? void 0 : p.some((k) => k.errors.includes(j.ERROR_DIMENSIONS))
1987
+ maxDimensions: n.maxDimensions ? {
1988
+ value: n.maxDimensions,
1989
+ error: (t = c.value) == null ? void 0 : t.some((k) => k.errors.includes(j.ERROR_DIMENSIONS))
1994
1990
  } : null,
1995
- maxSize: t.maxSize ? {
1996
- value: t.maxSize,
1997
- error: (m = c.value) == null ? void 0 : m.some((k) => k.errors.includes(j.ERROR_SIZE))
1991
+ maxSize: n.maxSize ? {
1992
+ value: n.maxSize,
1993
+ error: (r = c.value) == null ? void 0 : r.some((k) => k.errors.includes(j.ERROR_SIZE))
1998
1994
  } : null,
1999
1995
  supportedFileTypes: C.value ? {
2000
1996
  value: C.value,
2001
- error: H.invalidTypes || H.partiallyInvalidTypes || ((y = c.value) == null ? void 0 : y.some((k) => k.errors.includes(j.ERROR_TYPE)))
1997
+ error: D.invalidTypes || D.partiallyInvalidTypes || ((y = c.value) == null ? void 0 : y.some((k) => k.errors.includes(j.ERROR_TYPE)))
2002
1998
  } : null
2003
1999
  };
2004
- }), B = T(), Y = b(() => ({
2005
- [`b-file-uploader--${aa.DISABLED}`]: t.disabled,
2006
- [`b-file-uploader--${aa.DRAG_OVER}`]: U.dragging,
2007
- [`b-file-uploader--${aa.ERROR}`]: A.value,
2008
- "b-file-uploader--condensed": t.condensed
2009
- })), O = b(() => t.maxCount > 1), ta = b(() => {
2010
- var p;
2011
- return t.maxCount && ((p = c.value) == null ? void 0 : p.length) >= t.maxCount;
2012
- }), A = b(() => !!t.errorMessage || U.error), X = b(() => {
2013
- var p;
2014
- return ((p = c.value) == null ? void 0 : p.length) > t.maxCount;
2015
- }), J = T(!1);
2016
- function E(p) {
2017
- c.value = c.value.filter(({ id: m }) => m !== p.id);
2000
+ }), B = T(), J = h(() => ({
2001
+ [`b-file-uploader--${Q.DISABLED}`]: n.disabled,
2002
+ [`b-file-uploader--${Q.DRAG_OVER}`]: G.dragging,
2003
+ [`b-file-uploader--${Q.ERROR}`]: A.value,
2004
+ "b-file-uploader--condensed": n.condensed
2005
+ })), O = h(() => n.maxCount > 1), ea = h(() => {
2006
+ var t;
2007
+ return n.maxCount && ((t = c.value) == null ? void 0 : t.length) >= n.maxCount;
2008
+ }), ta = h(() => {
2009
+ var t;
2010
+ return (t = c.value) == null ? void 0 : t.some((r) => r.state === "loading");
2011
+ }), A = h(() => !!n.errorMessage || G.error), N = h(() => {
2012
+ var t;
2013
+ return ((t = c.value) == null ? void 0 : t.length) > n.maxCount;
2014
+ }), M = T(!1), I = h(() => {
2015
+ var t;
2016
+ return (t = c.value) == null ? void 0 : t.some((r) => r.state === "error");
2017
+ });
2018
+ la(I, (t) => {
2019
+ ta.value || l("error:upload", t);
2020
+ });
2021
+ function P(t) {
2022
+ c.value = c.value.filter(({ id: r }) => r !== t.id);
2018
2023
  }
2019
- function V(p) {
2020
- const m = la({
2024
+ function ca(t) {
2025
+ const r = sa({
2021
2026
  id: oa("file"),
2022
- data: p,
2027
+ data: t,
2023
2028
  errors: [],
2024
2029
  progress: null,
2025
- state: L.LOADING,
2026
- type: yi(p)
2030
+ state: R.LOADING,
2031
+ type: ji(t)
2027
2032
  });
2028
- return $i(m, t.accept, t.maxDimensions), m;
2033
+ return zi(r, n.accept, n.maxDimensions), r;
2029
2034
  }
2030
- function K(p) {
2031
- var m;
2032
- ((m = c.value) == null ? void 0 : m.length) === t.maxCount && p.preventDefault();
2035
+ function Oa(t) {
2036
+ var r;
2037
+ ((r = c.value) == null ? void 0 : r.length) === n.maxCount && t.preventDefault();
2033
2038
  }
2034
- function sa(p) {
2035
- if (t.maxCount === 1 && p.length > t.maxCount) {
2039
+ function da(t) {
2040
+ if (n.maxCount === 1 && t.length > n.maxCount) {
2036
2041
  na(), Z();
2037
2042
  return;
2038
2043
  }
2039
- O.value ? c.value = [...c.value || [], ...Array.from(p).map((m) => V(m))] : c.value = [V(p[0])];
2044
+ O.value ? c.value = [...c.value || [], ...Array.from(t).map((r) => ca(r))] : c.value = [ca(t[0])];
2040
2045
  }
2041
- function Da(p) {
2046
+ function Fa(t) {
2042
2047
  var y, k;
2043
- if (t.disabled)
2048
+ if (n.disabled)
2044
2049
  return;
2045
- B.value = p.target;
2046
- const m = (((y = p.dataTransfer.items) == null ? void 0 : y.length) ?? 0) + (((k = c.value) == null ? void 0 : k.length) ?? 0);
2047
- W(m, p);
2050
+ B.value = t.target;
2051
+ const r = (((y = t.dataTransfer.items) == null ? void 0 : y.length) ?? 0) + (((k = c.value) == null ? void 0 : k.length) ?? 0);
2052
+ Y(r, t);
2048
2053
  }
2049
2054
  function na() {
2050
2055
  B.value = null;
2051
2056
  }
2052
- function Ha(p) {
2053
- B.value === p.target && (na(), Z());
2057
+ function qa(t) {
2058
+ B.value === t.target && (na(), Z());
2054
2059
  }
2055
- function Oa(p) {
2056
- p.preventDefault(), t.disabled && (p.dataTransfer.dropEffect = "none");
2060
+ function Za(t) {
2061
+ t.preventDefault(), n.disabled && (t.dataTransfer.dropEffect = "none");
2057
2062
  }
2058
- function Fa(p) {
2059
- var m;
2060
- t.disabled || (!H.invalidTypes && ((m = p.dataTransfer.files) != null && m.length) && sa(p.dataTransfer.files), na(), Z());
2063
+ function Ba(t) {
2064
+ var r;
2065
+ n.disabled || (!D.invalidTypes && ((r = t.dataTransfer.files) != null && r.length) && da(t.dataTransfer.files), na(), Z());
2061
2066
  }
2062
- function qa() {
2063
- var p;
2064
- (p = d.value.files) != null && p.length && sa(d.value.files), d.value.value = "";
2067
+ function Aa() {
2068
+ var t;
2069
+ (t = d.value.files) != null && t.length && da(d.value.files), d.value.value = "";
2065
2070
  }
2066
- function Za(p) {
2067
- const m = t.maxCount && p.length <= t.maxCount;
2068
- J.value = !m;
2071
+ function Na(t) {
2072
+ const r = n.maxCount && t.length <= n.maxCount;
2073
+ M.value = !r;
2069
2074
  }
2070
- function Ba(p) {
2071
- t.maxSize && p.forEach((m) => {
2072
- const y = m;
2073
- y.data.size > t.maxSize && (y.state = L.ERROR, y.errors.push(j.ERROR_SIZE));
2075
+ function Pa(t) {
2076
+ n.maxSize && t.forEach((r) => {
2077
+ const y = r;
2078
+ y.data.size > n.maxSize && (y.state = R.ERROR, y.errors.push(j.ERROR_SIZE));
2074
2079
  });
2075
2080
  }
2076
- function Aa(p) {
2077
- const m = p.filter(
2081
+ function Ua(t) {
2082
+ const r = t.filter(
2078
2083
  ({ errors: y }) => !y.includes(j.ERROR_LOAD) && !y.includes(j.ERROR_SIZE)
2079
2084
  );
2080
- if (m.length) {
2085
+ if (r.length) {
2081
2086
  const y = new DataTransfer();
2082
- return m.forEach(({ data: k }) => y.items.add(k)), y.files;
2087
+ return r.forEach(({ data: k }) => y.items.add(k)), y.files;
2083
2088
  }
2084
2089
  }
2085
- return _a(c, (p) => {
2086
- if (p) {
2087
- Za(p), Ba(p);
2088
- const m = Aa(p);
2089
- l("change", m), l("update:modelValue", m);
2090
+ return la(c, (t) => {
2091
+ if (t) {
2092
+ Na(t), Pa(t);
2093
+ const r = Ua(t);
2094
+ l("change", r), l("update:modelValue", r);
2090
2095
  } else
2091
2096
  l("change"), l("update:modelValue");
2092
- }), (p, m) => {
2097
+ }), (t, r) => {
2093
2098
  var y;
2094
2099
  return s(), v("div", {
2095
- class: S(["b-file-uploader", Y.value])
2100
+ class: S(["b-file-uploader", J.value])
2096
2101
  }, [
2097
- M(o(oi), {
2102
+ V(o(ci), {
2098
2103
  class: "b-file-uploader__label",
2099
2104
  for: o(w),
2100
- label: p.label,
2101
- optional: p.optional,
2102
- required: p.required,
2103
- "tooltip-text": p.tooltipText
2105
+ label: t.label,
2106
+ optional: t.optional,
2107
+ required: t.required,
2108
+ "tooltip-text": t.tooltipText
2104
2109
  }, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
2105
- r("input", {
2110
+ m("input", {
2106
2111
  id: o(w),
2107
2112
  ref_key: "inputRef",
2108
2113
  ref: d,
@@ -2110,117 +2115,117 @@ const ze = ["id", "accept", "disabled", "multiple"], Ee = ["aria-label", "tabind
2110
2115
  tabindex: "-1",
2111
2116
  "data-testid": "input",
2112
2117
  class: "b-file-uploader__input",
2113
- accept: p.accept,
2114
- disabled: p.disabled,
2118
+ accept: t.accept,
2119
+ disabled: t.disabled,
2115
2120
  multiple: O.value,
2116
- onChange: qa,
2117
- onClick: K
2118
- }, null, 40, ze),
2119
- ta.value ? f("", !0) : (s(), v("div", {
2121
+ onChange: Aa,
2122
+ onClick: Oa
2123
+ }, null, 40, Le),
2124
+ ea.value ? f("", !0) : (s(), v("div", {
2120
2125
  key: 0,
2121
2126
  class: "b-file-uploader__area",
2122
- "aria-label": o(n)("dropArea"),
2123
- tabindex: p.disabled ? -1 : 0,
2124
- onClick: m[0] || (m[0] = (k) => d.value.click()),
2125
- onDragenter: N(Da, ["stop", "prevent"]),
2126
- onDragleave: N(Ha, ["stop", "prevent"]),
2127
- onDrop: N(Fa, ["stop", "prevent"]),
2128
- onDragover: Oa,
2127
+ "aria-label": o(p)("dropArea"),
2128
+ tabindex: t.disabled ? -1 : 0,
2129
+ onClick: r[0] || (r[0] = (k) => d.value.click()),
2130
+ onDragenter: U(Fa, ["stop", "prevent"]),
2131
+ onDragleave: U(qa, ["stop", "prevent"]),
2132
+ onDrop: U(Ba, ["stop", "prevent"]),
2133
+ onDragover: Za,
2129
2134
  onKeydownCapture: [
2130
- m[1] || (m[1] = da(N((k) => d.value.click(), ["prevent"]), ["enter"])),
2131
- m[2] || (m[2] = da(N((k) => d.value.click(), ["prevent"]), ["space"]))
2135
+ r[1] || (r[1] = ma(U((k) => d.value.click(), ["prevent"]), ["enter"])),
2136
+ r[2] || (r[2] = ma(U((k) => d.value.click(), ["prevent"]), ["space"]))
2132
2137
  ]
2133
2138
  }, [
2134
- r("div", Re, [
2135
- A.value ? (s(), h(o(Ea), {
2139
+ m("div", Ie, [
2140
+ A.value ? (s(), b(o(Ra), {
2136
2141
  key: 0,
2137
- "svg-title": o(n)("warning")
2138
- }, null, 8, ["svg-title"])) : (s(), h(o(ri), {
2142
+ "svg-title": o(p)("warning")
2143
+ }, null, 8, ["svg-title"])) : (s(), b(o(vi), {
2139
2144
  key: 1,
2140
- "svg-title": o(n)("upload")
2145
+ "svg-title": o(p)("upload")
2141
2146
  }, null, 8, ["svg-title"]))
2142
2147
  ]),
2143
- p.condensed ? f("", !0) : (s(), v(ra, { key: 0 }, [
2144
- M(o(z), {
2148
+ t.condensed ? f("", !0) : (s(), v(ua, { key: 0 }, [
2149
+ V(o(z), {
2145
2150
  el: "span",
2146
2151
  strongest: "",
2147
2152
  class: "b-file-uploader__title"
2148
2153
  }, {
2149
2154
  default: g(() => [
2150
- $(u(o(e)("dropFiles", p.maxCount)), 1)
2155
+ $(u(o(e)("dropFiles", t.maxCount)), 1)
2151
2156
  ]),
2152
2157
  _: 1
2153
2158
  }),
2154
- p.description ? (s(), h(o(z), {
2159
+ t.description ? (s(), b(o(z), {
2155
2160
  key: 0,
2156
2161
  el: "span",
2157
2162
  class: "b-file-uploader__description"
2158
2163
  }, {
2159
2164
  default: g(() => [
2160
- $(u(p.description), 1)
2165
+ $(u(t.description), 1)
2161
2166
  ]),
2162
2167
  _: 1
2163
2168
  })) : f("", !0),
2164
- M(o(ja), ma(Xa(G.value)), null, 16)
2169
+ V(o(za), va(Qa(X.value)), null, 16)
2165
2170
  ], 64)),
2166
- M(o(Q), {
2167
- disabled: p.disabled,
2168
- variant: p.condensed ? "tertiary" : "secondary",
2171
+ V(o(K), {
2172
+ disabled: t.disabled,
2173
+ variant: t.condensed ? "tertiary" : "secondary",
2169
2174
  condensed: "",
2170
2175
  tabindex: "-1",
2171
2176
  class: "b-file-uploader__button"
2172
2177
  }, {
2173
2178
  default: g(() => [
2174
- $(u(o(n)("browseFiles")), 1)
2179
+ $(u(o(p)("browseFiles")), 1)
2175
2180
  ]),
2176
2181
  _: 1
2177
2182
  }, 8, ["disabled", "variant"])
2178
- ], 40, Ee)),
2179
- A.value && p.errorMessage ? (s(), h(o(li), {
2183
+ ], 40, Me)),
2184
+ A.value && t.errorMessage ? (s(), b(o(di), {
2180
2185
  key: 1,
2181
2186
  id: o(q),
2182
- "error-message": p.errorMessage,
2187
+ "error-message": t.errorMessage,
2183
2188
  class: "b-file-uploader__error-message"
2184
2189
  }, null, 8, ["id", "error-message"])) : f("", !0),
2185
- p.condensed && p.description ? (s(), h(o(z), {
2190
+ t.condensed && t.description ? (s(), b(o(z), {
2186
2191
  key: 2,
2187
2192
  el: "span",
2188
2193
  class: "b-file-uploader__description b-file-uploader__description--condensed"
2189
2194
  }, {
2190
2195
  default: g(() => [
2191
- $(u(p.description), 1)
2196
+ $(u(t.description), 1)
2192
2197
  ]),
2193
2198
  _: 1
2194
2199
  })) : f("", !0),
2195
- p.condensed ? (s(), h(o(ja), ma(I({ key: 3 }, G.value)), null, 16)) : f("", !0),
2196
- X.value ? (s(), h(o(Qa), {
2200
+ t.condensed ? (s(), b(o(za), va(L({ key: 3 }, X.value)), null, 16)) : f("", !0),
2201
+ N.value ? (s(), b(o(ei), {
2197
2202
  key: 4,
2198
2203
  type: "critical"
2199
2204
  }, {
2200
2205
  description: g(() => [
2201
- $(u(o(n)("youHaveExceededTheMaximum", { count: t.maxCount })), 1)
2206
+ $(u(o(p)("youHaveExceededTheMaximum", { count: n.maxCount })), 1)
2202
2207
  ]),
2203
2208
  default: g(() => [
2204
- $(u(o(n)("tooManyFiles")) + " ", 1)
2209
+ $(u(o(p)("tooManyFiles")) + " ", 1)
2205
2210
  ]),
2206
2211
  _: 1
2207
2212
  })) : f("", !0),
2208
- za(r("div", Le, [
2209
- (s(!0), v(ra, null, Ja(c.value, (k) => (s(), h(o(be), {
2213
+ Ea(m("div", Ve, [
2214
+ (s(!0), v(ua, null, ai(c.value, (k) => (s(), b(o(ye), {
2210
2215
  key: k.id,
2211
2216
  file: k,
2212
2217
  "supported-file-types": o(C),
2213
- onCancel: (Na) => E(k),
2214
- onRemove: (Na) => E(k)
2218
+ onCancel: (Wa) => P(k),
2219
+ onRemove: (Wa) => P(k)
2215
2220
  }, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
2216
2221
  ], 512), [
2217
- [Ka, (y = c.value) == null ? void 0 : y.length]
2222
+ [ii, (y = c.value) == null ? void 0 : y.length]
2218
2223
  ])
2219
2224
  ], 2);
2220
2225
  };
2221
2226
  }
2222
- }), Xe = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-07ee096a"]]);
2227
+ }), Qe = /* @__PURE__ */ _(Te, [["__scopeId", "data-v-19f4b656"]]);
2223
2228
  export {
2224
- Xe as f
2229
+ Qe as f
2225
2230
  };
2226
- //# sourceMappingURL=file-uploader.CLZ1rPz0.js.map
2231
+ //# sourceMappingURL=file-uploader.DV4I5Lvf.js.map