@adyen/bento-vue3 1.89.2 → 1.90.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 (243) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +403 -298
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/dialog-page.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/input-time.css +1 -0
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/secondary-nav.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/button.js +1 -1
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chip.js +1 -1
  26. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  27. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  28. package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
  29. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
  30. package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
  31. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
  32. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  33. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  34. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  35. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  36. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
  37. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
  38. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
  39. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
  40. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
  41. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
  42. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
  43. package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
  44. package/dist/chunks/card.BzCGCCzH.js +223 -0
  45. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
  46. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
  47. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
  48. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
  49. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
  50. package/dist/chunks/chip.DFldnqfz.js +72 -0
  51. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  52. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
  53. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
  54. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
  55. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
  56. package/dist/chunks/copy.CL893i9-.js +114 -0
  57. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  58. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  59. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  60. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  61. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  62. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
  63. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
  64. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
  65. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
  66. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
  67. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
  68. package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
  69. package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
  70. package/dist/chunks/date-picker.DPjCROIP.js +238 -0
  71. package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
  72. package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
  73. package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
  74. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  75. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  76. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
  77. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
  78. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
  79. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
  80. package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
  81. package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
  82. package/dist/chunks/error-message.849uzpkq.js +157 -0
  83. package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
  84. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
  85. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
  86. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
  87. package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
  88. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  89. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  90. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
  91. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
  92. package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
  93. package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
  94. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
  95. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
  96. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
  97. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
  98. package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
  99. package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
  100. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  101. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  102. package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
  103. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
  104. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
  105. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
  106. package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
  107. package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
  108. package/dist/chunks/input-time.DeJ8lDio.js +103 -0
  109. package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
  110. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  111. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  112. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  113. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  114. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  115. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  116. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
  117. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
  118. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
  119. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
  120. package/dist/chunks/pagination.DL-h8OLF.js +413 -0
  121. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
  122. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  123. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  124. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
  125. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
  126. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
  127. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
  128. package/dist/chunks/search-bar.DfNwnjes.js +114 -0
  129. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
  130. package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
  131. package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
  132. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  133. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
  135. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
  137. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
  138. package/dist/chunks/step.AsX2jAeL.js +268 -0
  139. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  140. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  141. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  142. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
  143. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
  144. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  145. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  146. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  147. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  148. package/dist/chunks/textarea.C-sBemuo.js +256 -0
  149. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
  150. package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
  151. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
  152. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  153. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  154. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  155. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
  159. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
  160. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  161. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  162. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  163. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  164. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
  165. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
  166. package/dist/code-snippet.js +1 -1
  167. package/dist/country.js +3 -3
  168. package/dist/dashboard-template.js +1 -1
  169. package/dist/dashed-underline.js +1 -1
  170. package/dist/data-grid-template.js +1 -1
  171. package/dist/data-grid.js +1 -1
  172. package/dist/date-picker.js +2 -2
  173. package/dist/date-range-picker.js +2 -2
  174. package/dist/draggable-handle.js +51 -44
  175. package/dist/draggable-handle.js.map +1 -1
  176. package/dist/dropdown.js +4 -4
  177. package/dist/file-uploader.js +1 -1
  178. package/dist/filter-bar.js +1 -1
  179. package/dist/form-layout.js +1 -1
  180. package/dist/header-with-views.js +1 -1
  181. package/dist/header.js +1 -1
  182. package/dist/index.js +205 -203
  183. package/dist/index.js.map +1 -1
  184. package/dist/info-icon.js +1 -1
  185. package/dist/input-field-password.js +1 -1
  186. package/dist/input-field-phone-number.js +1 -1
  187. package/dist/input-field.js +1 -1
  188. package/dist/input-time.js +5 -0
  189. package/dist/input-time.js.map +1 -0
  190. package/dist/inspector.js +1 -1
  191. package/dist/internal.js +12 -12
  192. package/dist/list.js +1 -1
  193. package/dist/menu.js +1 -1
  194. package/dist/modal-fullscreen.js +1 -1
  195. package/dist/modal.js +2 -2
  196. package/dist/pagination.js +1 -1
  197. package/dist/popover.js +1 -1
  198. package/dist/promo-banner.js +1 -1
  199. package/dist/radio-group.js +1 -1
  200. package/dist/rich-text-editor.js +1 -1
  201. package/dist/search-bar.js +2 -2
  202. package/dist/secondary-nav.js +1 -1
  203. package/dist/segmented-control.js +1 -1
  204. package/dist/selection-card.js +1 -1
  205. package/dist/sidepanel.js +1 -1
  206. package/dist/stepper.js +1 -1
  207. package/dist/structured-list.js +1 -1
  208. package/dist/summary-grid.js +1 -1
  209. package/dist/tabs.js +1 -1
  210. package/dist/tag.js +1 -1
  211. package/dist/textarea.js +1 -1
  212. package/dist/timeline.js +1 -1
  213. package/dist/toast.js +1 -1
  214. package/dist/tutorial.js +1 -1
  215. package/dist/web-types.json +1 -1
  216. package/package.json +4 -4
  217. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  218. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  219. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  220. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  221. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  222. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  223. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  224. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  225. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  226. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  227. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  228. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  229. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  230. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  231. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  232. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  233. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  234. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  235. package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
  236. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  237. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  238. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  239. package/dist/chunks/step.BlwoLfdw.js +0 -259
  240. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  241. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  242. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  243. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
@@ -1,114 +1,114 @@
1
- import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as r, defineComponent as ca, unref as t, createBlock as y, Transition as di, withCtx as w, renderSlot as ja, TransitionGroup as ri, ref as F, onUnmounted as mi, onMounted as Aa, computed as f, watch as wa, normalizeClass as Z, createVNode as U, resolveDynamicComponent as ui, withDirectives as Ua, createTextVNode as $, reactive as ya, toRef as ha, withModifiers as J, withKeys as Ea, Fragment as Ra, renderList as vi, vShow as fi, nextTick as xi } from "vue";
1
+ import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as c, defineComponent as ri, unref as t, createBlock as w, Transition as de, withCtx as y, renderSlot as $i, TransitionGroup as ce, ref as S, onUnmounted as me, onMounted as Bi, computed as f, watch as yi, normalizeClass as Z, createVNode as U, resolveDynamicComponent as ue, withDirectives as Ui, createTextVNode as C, reactive as wi, toRef as hi, withModifiers as X, withKeys as Ti, Fragment as _i, renderList as ve, vShow as fe, nextTick as xe } from "vue";
2
2
  /* empty css */
3
- import { _ as S } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
- import { W as Za } from "./warning-filled.BzyK_mMj.js";
5
- import { B as gi } from "./alert.C_8-VNi_.js";
6
- import { B as R, d as hi } from "./typography.B3J6_tYk.js";
7
- import { u as da } from "./index.B875RXHM.js";
8
- import { g as I } from "./generate-uid.DBWe4g6T.js";
9
- import { u as bi } from "./form-field.D_2g7vaP.js";
10
- import { i as Na } from "./index.CWuzEfiV.js";
11
- import { B as wi } from "./bin.Cude0fiB.js";
12
- import { C as yi } from "./checkmark-circle-fill.DugX5fbG.js";
13
- import { C as ki } from "./cross.CCHdi6v3.js";
14
- import { R as Ci } from "./refresh.C31KClfx.js";
15
- import { b as $i } from "./tooltip.CbADa_4p.js";
16
- import { B as ba } from "./button.DWF7FSIw.js";
17
- import { B as zi } from "./link.D6D6YGsN.js";
18
- import { B as _i } from "./loading-indicator.BPol9I84.js";
19
- import { F as ji, E as Ei } from "./error-message.DCgo8q20.js";
3
+ import { _ as j } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import { W as Zi } from "./warning-filled.BzyK_mMj.js";
5
+ import { B as ge } from "./alert.CFWN2E0b.js";
6
+ import { B as _, d as he } from "./typography.B3J6_tYk.js";
7
+ import { u as di } from "./index.B875RXHM.js";
8
+ import { g as R } from "./generate-uid.DBWe4g6T.js";
9
+ import { u as be } from "./form-field.D_2g7vaP.js";
10
+ import { i as Ni } from "./index.CWuzEfiV.js";
11
+ import { B as ye } from "./bin.Cude0fiB.js";
12
+ import { C as we } from "./checkmark-circle-fill.DugX5fbG.js";
13
+ import { C as ke } from "./cross.CCHdi6v3.js";
14
+ import { R as ze } from "./refresh.C31KClfx.js";
15
+ import { b as Ce } from "./tooltip.DHfG2aRt.js";
16
+ import { B as bi } from "./button.DWF7FSIw.js";
17
+ import { B as Ee } from "./link.D6D6YGsN.js";
18
+ import { B as Fe } from "./loading-indicator.BPol9I84.js";
19
+ import { F as $e, E as Te } from "./error-message.849uzpkq.js";
20
20
  import "../assets/file-uploader.css";
21
- let Ia = 0;
22
- const Ri = {
21
+ let Ri = 0;
22
+ const _e = {
23
23
  beforeCreate() {
24
- this.uuid = Ia.toString(), Ia += 1;
24
+ this.uuid = Ri.toString(), Ri += 1;
25
25
  }
26
- }, Ii = { key: 0 };
27
- function Fi(a, i, p, n, o, c) {
28
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
26
+ }, Re = { key: 0 };
27
+ function Se(i, e, l, o, n, r) {
28
+ return s(), g("svg", D({ role: "img" }, i.$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(), g("title", Ii, x(a.$attrs["svg-title"]), 1)) : u("", !0),
36
- i[0] || (i[0] = r("path", {
35
+ i.$attrs["svg-title"] ? (s(), g("title", Re, x(i.$attrs["svg-title"]), 1)) : u("", !0),
36
+ e[0] || (e[0] = c("path", {
37
37
  fill: "#001222",
38
38
  d: "M2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.25H14.75V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V10.25H2.75V12Z"
39
39
  }, null, -1)),
40
- i[1] || (i[1] = r("path", {
40
+ e[1] || (e[1] = c("path", {
41
41
  fill: "#001222",
42
42
  d: "M12.0605 5L11 6.06055L8.75 3.81055V11.75H7.25V3.81055L5 6.06055L3.93945 5L8 0.939453L12.0605 5Z"
43
43
  }, null, -1))
44
44
  ], 16);
45
45
  }
46
- const Si = /* @__PURE__ */ S(Ri, [["render", Fi]]), Li = /* @__PURE__ */ ca({
46
+ const je = /* @__PURE__ */ j(_e, [["render", Se]]), Ie = /* @__PURE__ */ ri({
47
47
  __name: "file-uploader-file-card-animation",
48
48
  props: {
49
49
  name: {},
50
50
  showFileIcon: { type: Boolean }
51
51
  },
52
- setup(a) {
53
- return (i, p) => t(Na) ? (s(), y(di, {
52
+ setup(i) {
53
+ return (e, l) => t(Ni) ? (s(), w(de, {
54
54
  key: 0,
55
- name: i.name,
55
+ name: e.name,
56
56
  mode: "out-in",
57
- css: i.showFileIcon
57
+ css: e.showFileIcon
58
58
  }, {
59
- default: w(() => [
60
- ja(i.$slots, "default")
59
+ default: y(() => [
60
+ $i(e.$slots, "default")
61
61
  ]),
62
62
  _: 3
63
- }, 8, ["name", "css"])) : (s(), y(ri, {
63
+ }, 8, ["name", "css"])) : (s(), w(ce, {
64
64
  key: 1,
65
- name: i.name,
66
- css: i.showFileIcon
65
+ name: e.name,
66
+ css: e.showFileIcon
67
67
  }, {
68
- default: w(() => [
69
- ja(i.$slots, "default")
68
+ default: y(() => [
69
+ $i(e.$slots, "default")
70
70
  ]),
71
71
  _: 3
72
72
  }, 8, ["name", "css"]));
73
73
  }
74
74
  });
75
- function Ti(a, i) {
76
- const p = F(!1);
77
- let n;
78
- function o() {
79
- n && n.disconnect();
75
+ function Le(i, e) {
76
+ const l = S(!1);
77
+ let o;
78
+ function n() {
79
+ o && o.disconnect();
80
80
  }
81
- return mi(() => {
82
- o();
83
- }), Aa(() => {
84
- o(), n = new IntersectionObserver(
85
- (c) => {
86
- p.value = !c[0].isIntersecting;
81
+ return me(() => {
82
+ n();
83
+ }), Bi(() => {
84
+ n(), o = new IntersectionObserver(
85
+ (r) => {
86
+ l.value = !r[0].isIntersecting;
87
87
  },
88
88
  {
89
- root: i.value,
89
+ root: e.value,
90
90
  threshold: 1
91
91
  }
92
- ), n.observe(a.value.$el);
93
- }), p;
92
+ ), o.observe(i.value.$el);
93
+ }), l;
94
94
  }
95
- const Fa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
96
- function ka(a, i) {
97
- const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), Fa.length - 1));
98
- return Intl.NumberFormat(a, {
95
+ const Si = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
96
+ function ki(i, e) {
97
+ const l = Math.max(0, Math.min(Math.floor(Math.log(e) / Math.log(1024)), Si.length - 1));
98
+ return Intl.NumberFormat(i, {
99
99
  style: "unit",
100
- unit: Fa[p]
101
- }).format(i / 1024 ** p);
100
+ unit: Si[l]
101
+ }).format(e / 1024 ** l);
102
102
  }
103
- var M = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(M || {}), E = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(E || {}), sa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(sa || {}), k = /* @__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))(k || {});
104
- const Mi = [
103
+ var M = /* @__PURE__ */ ((i) => (i.LOADING = "loading", i.SUCCESS = "success", i.ERROR = "error", i))(M || {}), T = /* @__PURE__ */ ((i) => (i.ERROR_SIZE = "error-size", i.ERROR_LOAD = "error-load", i.ERROR_DIMENSIONS = "error-dimensions", i.ERROR_TYPE = "error-type", i))(T || {}), si = /* @__PURE__ */ ((i) => (i.DISABLED = "disabled", i.DRAG_OVER = "drag-over", i.ERROR = "error", i.READONLY = "readonly", i))(si || {}), k = /* @__PURE__ */ ((i) => (i.TABLE = "table", i.IMAGE = "image", i.VIDEO = "video", i.AUDIO = "audio", i.TEXT = "text", i.PDF = "pdf", i.SLIDES = "slides", i.COMPRESSED = "compressed", i.GENERIC = "generic", i))(k || {});
104
+ const Me = [
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
- ], Di = [
111
+ ], De = [
112
112
  "application/vnd.ms-excel",
113
113
  // .xls
114
114
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -121,14 +121,14 @@ const Mi = [
121
121
  // .numbers
122
122
  "text/csv"
123
123
  // .csv
124
- ], Vi = [
124
+ ], He = [
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
- ], Oi = [
131
+ ], Ve = [
132
132
  "application/zip",
133
133
  // .zip
134
134
  "application/vnd.rar",
@@ -150,104 +150,104 @@ const Mi = [
150
150
  "application/vnd.ms-cab-compressed"
151
151
  // .cab
152
152
  ];
153
- function qi(a) {
154
- return Di.includes(a.type) ? k.TABLE : a.type.startsWith("text/") || Mi.includes(a.type) ? k.TEXT : a.type.startsWith("image/") ? k.IMAGE : a.type.startsWith("video/") ? k.VIDEO : a.type.startsWith("audio/") ? k.AUDIO : a.type === "application/pdf" ? k.PDF : Vi.includes(a.type) ? k.SLIDES : Oi.includes(a.type) ? k.COMPRESSED : k.GENERIC;
153
+ function qe(i) {
154
+ return De.includes(i.type) ? k.TABLE : i.type.startsWith("text/") || Me.includes(i.type) ? k.TEXT : i.type.startsWith("image/") ? k.IMAGE : i.type.startsWith("video/") ? k.VIDEO : i.type.startsWith("audio/") ? k.AUDIO : i.type === "application/pdf" ? k.PDF : He.includes(i.type) ? k.SLIDES : Ve.includes(i.type) ? k.COMPRESSED : k.GENERIC;
155
155
  }
156
- function Pa(a, i) {
157
- if (!i)
156
+ function Pi(i, e) {
157
+ if (!e)
158
158
  return !0;
159
- const p = i.split(",").map((n) => n.trim());
160
- for (const n of p)
161
- if (n.startsWith(".")) {
162
- if (a.name.endsWith(n))
159
+ const l = e.split(",").map((o) => o.trim());
160
+ for (const o of l)
161
+ if (o.startsWith(".")) {
162
+ if (i.name.endsWith(o))
163
163
  return !0;
164
- } else if (n.endsWith("/*")) {
165
- const o = n.split("/")[0];
166
- if (a.type.startsWith(o))
164
+ } else if (o.endsWith("/*")) {
165
+ const n = o.split("/")[0];
166
+ if (i.type.startsWith(n))
167
167
  return !0;
168
- } else if (n.includes("/")) {
169
- if (a.type === n)
168
+ } else if (o.includes("/")) {
169
+ if (i.type === o)
170
170
  return !0;
171
- } else if (a.name.endsWith(`.${n}`))
171
+ } else if (i.name.endsWith(`.${o}`))
172
172
  return !0;
173
173
  return !1;
174
174
  }
175
- function Hi(a, i, p) {
176
- const n = new FileReader(), o = a;
177
- if (!Pa(o.data, i)) {
178
- o.state = M.ERROR, o.errors.push(E.ERROR_TYPE);
175
+ function Ae(i, e, l) {
176
+ const o = new FileReader(), n = i;
177
+ if (!Pi(n.data, e)) {
178
+ n.state = M.ERROR, n.errors.push(T.ERROR_TYPE);
179
179
  return;
180
180
  }
181
- n.onload = (c) => {
182
- if (p && o.type === k.IMAGE) {
183
- const l = new Blob([c.target.result], { type: o.data.type }), m = URL.createObjectURL(l), h = new Image();
181
+ o.onload = (r) => {
182
+ if (l && n.type === k.IMAGE) {
183
+ const p = new Blob([r.target.result], { type: n.data.type }), m = URL.createObjectURL(p), h = new Image();
184
184
  h.onload = function() {
185
- (h.width > p.width || h.height > p.height) && (o.state = M.ERROR, o.errors.push(E.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
185
+ (h.width > l.width || h.height > l.height) && (n.state = M.ERROR, n.errors.push(T.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
186
186
  }, h.onerror = function() {
187
187
  URL.revokeObjectURL(m);
188
188
  }, h.src = m;
189
189
  }
190
- }, n.onprogress = (c) => {
191
- c.lengthComputable && (o.progress = c.loaded / c.total * 100);
192
- }, n.onloadend = () => {
193
- o.state !== M.ERROR && (o.state = M.SUCCESS), o.progress = null;
194
- }, n.onerror = () => {
195
- o.state = M.ERROR, o.errors.push(E.ERROR_LOAD), o.progress = null;
196
- }, n.readAsArrayBuffer(o.data);
190
+ }, o.onprogress = (r) => {
191
+ r.lengthComputable && (n.progress = r.loaded / r.total * 100);
192
+ }, o.onloadend = () => {
193
+ n.state !== M.ERROR && (n.state = M.SUCCESS), n.progress = null;
194
+ }, o.onerror = () => {
195
+ n.state = M.ERROR, n.errors.push(T.ERROR_LOAD), n.progress = null;
196
+ }, o.readAsArrayBuffer(n.data);
197
197
  }
198
- let Sa = 0;
199
- const Bi = {
198
+ let ji = 0;
199
+ const Oe = {
200
200
  beforeCreate() {
201
- this.uuid = Sa.toString(), Sa += 1;
201
+ this.uuid = ji.toString(), ji += 1;
202
202
  }
203
- }, Ai = { key: 0 }, Ui = ["clip-path"], Zi = ["id"];
204
- function Ni(a, i, p, n, o, c) {
205
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
203
+ }, Be = { key: 0 }, Ue = ["clip-path"], Ze = ["id"];
204
+ function Ne(i, e, l, o, n, r) {
205
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
206
206
  class: "ui-assets-icons-16",
207
207
  xmlns: "http://www.w3.org/2000/svg",
208
208
  width: "16",
209
209
  height: "16",
210
210
  fill: "none"
211
211
  }), [
212
- a.$attrs["svg-title"] ? (s(), g("title", Ai, x(a.$attrs["svg-title"]), 1)) : u("", !0),
213
- r("g", {
214
- "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
215
- }, i[0] || (i[0] = [
216
- r("path", {
212
+ i.$attrs["svg-title"] ? (s(), g("title", Be, x(i.$attrs["svg-title"]), 1)) : u("", !0),
213
+ c("g", {
214
+ "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + i.uuid + ")"
215
+ }, e[0] || (e[0] = [
216
+ c("path", {
217
217
  fill: "#001222",
218
218
  d: "M7.10655 3.02949C8.98948 1.14706 12.0441 1.14675 13.9269 3.02949C15.8095 4.91225 15.8093 7.96692 13.9269 9.84981L11.1564 12.6203L10.0958 11.5598L12.8663 8.78926C14.1629 7.49216 14.1631 5.38701 12.8663 4.09004C11.5694 2.79309 9.46424 2.79339 8.1671 4.09004L2.72667 9.53047C1.95976 10.2976 1.95963 11.5427 2.72667 12.3098C3.49372 13.0766 4.7389 13.0766 5.50597 12.3098L10.9464 6.86934C11.183 6.63224 11.1832 6.24693 10.9464 6.00996C10.7094 5.77301 10.3242 5.77331 10.087 6.00996L4.4962 11.6008L3.43565 10.5402L9.02647 4.94942C9.8494 4.12698 11.1842 4.12668 12.0069 4.94942C12.8296 5.77217 12.8293 7.107 12.0069 7.92989L6.56651 13.3703C5.21366 14.723 3.01896 14.723 1.66612 13.3703C0.313294 12.0175 0.313425 9.82283 1.66612 8.46992L7.10655 3.02949Z"
219
219
  }, null, -1)
220
- ]), 8, Ui),
221
- r("defs", null, [
222
- r("clipPath", {
223
- id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
224
- }, i[1] || (i[1] = [
225
- r("rect", {
220
+ ]), 8, Ue),
221
+ c("defs", null, [
222
+ c("clipPath", {
223
+ id: "uia-ui-assets/icons-16-attachment__a" + i.uuid
224
+ }, e[1] || (e[1] = [
225
+ c("rect", {
226
226
  width: "16",
227
227
  height: "16",
228
228
  fill: "#fff"
229
229
  }, null, -1)
230
- ]), 8, Zi)
230
+ ]), 8, Ze)
231
231
  ])
232
232
  ], 16);
233
233
  }
234
- const Pi = /* @__PURE__ */ S(Bi, [["render", Ni]]);
235
- let La = 0;
236
- const Wi = {
234
+ const Pe = /* @__PURE__ */ j(Oe, [["render", Ne]]);
235
+ let Ii = 0;
236
+ const We = {
237
237
  beforeCreate() {
238
- this.uuid = La.toString(), La += 1;
238
+ this.uuid = Ii.toString(), Ii += 1;
239
239
  }
240
- }, Gi = { key: 0 };
241
- function Yi(a, i, p, n, o, c) {
242
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
240
+ }, Ge = { key: 0 };
241
+ function Ye(i, e, l, o, n, r) {
242
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
243
243
  class: "ui-assets-icons-16",
244
244
  xmlns: "http://www.w3.org/2000/svg",
245
245
  width: "16",
246
246
  height: "16",
247
247
  fill: "none"
248
248
  }), [
249
- a.$attrs["svg-title"] ? (s(), g("title", Gi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
250
- i[0] || (i[0] = r("path", {
249
+ i.$attrs["svg-title"] ? (s(), g("title", Ge, x(i.$attrs["svg-title"]), 1)) : u("", !0),
250
+ e[0] || (e[0] = c("path", {
251
251
  fill: "#001222",
252
252
  "fill-rule": "evenodd",
253
253
  d: "M11 0.25C12.5188 0.25 13.75 1.48122 13.75 3V7C13.75 7.85389 13.3607 8.6167 12.75 9.12109V10C12.75 10.8539 12.3607 11.6167 11.75 12.1211V13C11.75 14.5188 10.5188 15.75 9 15.75H7C5.48122 15.75 4.25 14.5188 4.25 13V12.1211C3.63934 11.6167 3.25 10.8539 3.25 10V9.12109C2.63934 8.6167 2.25 7.85389 2.25 7V3C2.25 1.48122 3.48122 0.25 5 0.25H11ZM10 12.75H6C5.91565 12.75 5.83241 12.7438 5.75 12.7363V13C5.75 13.6904 6.30964 14.25 7 14.25H9C9.69036 14.25 10.25 13.6904 10.25 13V12.7363C10.1676 12.7438 10.0843 12.75 10 12.75ZM11 9.75H5C4.91565 9.75 4.83241 9.74376 4.75 9.73633V10C4.75 10.6904 5.30964 11.25 6 11.25H10C10.6904 11.25 11.25 10.6904 11.25 10V9.73633C11.1676 9.74376 11.0843 9.75 11 9.75ZM5 1.75C4.30964 1.75 3.75 2.30964 3.75 3V7C3.75 7.69036 4.30964 8.25 5 8.25H11C11.6904 8.25 12.25 7.69036 12.25 7V3C12.25 2.30964 11.6904 1.75 11 1.75H5Z",
@@ -255,210 +255,210 @@ function Yi(a, i, p, n, o, c) {
255
255
  }, null, -1))
256
256
  ], 16);
257
257
  }
258
- const Ji = /* @__PURE__ */ S(Wi, [["render", Yi]]);
259
- let Ta = 0;
260
- const Xi = {
258
+ const Xe = /* @__PURE__ */ j(We, [["render", Ye]]);
259
+ let Li = 0;
260
+ const Je = {
261
261
  beforeCreate() {
262
- this.uuid = Ta.toString(), Ta += 1;
262
+ this.uuid = Li.toString(), Li += 1;
263
263
  }
264
- }, Ki = { key: 0 };
265
- function Qi(a, i, p, n, o, c) {
266
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
264
+ }, Ke = { key: 0 };
265
+ function Qe(i, e, l, o, n, r) {
266
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
267
267
  class: "ui-assets-icons-16",
268
268
  xmlns: "http://www.w3.org/2000/svg",
269
269
  width: "16",
270
270
  height: "16",
271
271
  fill: "none"
272
272
  }), [
273
- a.$attrs["svg-title"] ? (s(), g("title", Ki, x(a.$attrs["svg-title"]), 1)) : u("", !0),
274
- i[0] || (i[0] = r("path", {
273
+ i.$attrs["svg-title"] ? (s(), g("title", Ke, x(i.$attrs["svg-title"]), 1)) : u("", !0),
274
+ e[0] || (e[0] = c("path", {
275
275
  fill: "#001222",
276
276
  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"
277
277
  }, null, -1))
278
278
  ], 16);
279
279
  }
280
- const ae = /* @__PURE__ */ S(Xi, [["render", Qi]]);
281
- let Ma = 0;
282
- const ie = {
280
+ const ia = /* @__PURE__ */ j(Je, [["render", Qe]]);
281
+ let Mi = 0;
282
+ const ea = {
283
283
  beforeCreate() {
284
- this.uuid = Ma.toString(), Ma += 1;
284
+ this.uuid = Mi.toString(), Mi += 1;
285
285
  }
286
- }, ee = { key: 0 };
287
- function te(a, i, p, n, o, c) {
288
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
286
+ }, aa = { key: 0 };
287
+ function ta(i, e, l, o, n, r) {
288
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
289
289
  class: "ui-assets-icons-16",
290
290
  xmlns: "http://www.w3.org/2000/svg",
291
291
  width: "16",
292
292
  height: "16",
293
293
  fill: "none"
294
294
  }), [
295
- a.$attrs["svg-title"] ? (s(), g("title", ee, x(a.$attrs["svg-title"]), 1)) : u("", !0),
296
- i[0] || (i[0] = r("path", {
295
+ i.$attrs["svg-title"] ? (s(), g("title", aa, x(i.$attrs["svg-title"]), 1)) : u("", !0),
296
+ e[0] || (e[0] = c("path", {
297
297
  fill: "#001222",
298
298
  d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
299
299
  }, null, -1)),
300
- i[1] || (i[1] = r("path", {
300
+ e[1] || (e[1] = c("path", {
301
301
  fill: "#001222",
302
302
  d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z"
303
303
  }, null, -1)),
304
- i[2] || (i[2] = r("path", {
304
+ e[2] || (e[2] = c("path", {
305
305
  fill: "#001222",
306
306
  d: "M2.24609 0.25V15.75H13.7461V4.68934L9.30675 0.25H2.24609ZM7.24609 1.75V6.75H12.2461V14.25H3.74609V1.75H7.24609ZM12.1854 5.25H8.74609V1.81066L12.1854 5.25Z"
307
307
  }, null, -1))
308
308
  ], 16);
309
309
  }
310
- const ne = /* @__PURE__ */ S(ie, [["render", te]]);
311
- let Da = 0;
312
- const oe = {
310
+ const oa = /* @__PURE__ */ j(ea, [["render", ta]]);
311
+ let Di = 0;
312
+ const na = {
313
313
  beforeCreate() {
314
- this.uuid = Da.toString(), Da += 1;
314
+ this.uuid = Di.toString(), Di += 1;
315
315
  }
316
- }, pe = { key: 0 };
317
- function le(a, i, p, n, o, c) {
318
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
316
+ }, la = { key: 0 };
317
+ function pa(i, e, l, o, n, r) {
318
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
319
319
  class: "ui-assets-icons-16",
320
320
  xmlns: "http://www.w3.org/2000/svg",
321
321
  width: "16",
322
322
  height: "16",
323
323
  fill: "none"
324
324
  }), [
325
- a.$attrs["svg-title"] ? (s(), g("title", pe, x(a.$attrs["svg-title"]), 1)) : u("", !0),
326
- i[0] || (i[0] = r("path", {
325
+ i.$attrs["svg-title"] ? (s(), g("title", la, x(i.$attrs["svg-title"]), 1)) : u("", !0),
326
+ e[0] || (e[0] = c("path", {
327
327
  fill: "#001222",
328
328
  d: "M1.24609 12V5C1.24609 3.48579 2.48188 2.25 3.99609 2.25H7.30664L10.3066 5.25H11.9961C13.5103 5.25 14.7461 6.48579 14.7461 8V12C14.7461 13.5142 13.5103 14.75 11.9961 14.75H3.99609C2.48188 14.75 1.24609 13.5142 1.24609 12ZM2.74609 12C2.74609 12.6858 3.31031 13.25 3.99609 13.25H11.9961C12.6819 13.25 13.2461 12.6858 13.2461 12V8C13.2461 7.31421 12.6819 6.75 11.9961 6.75H9.68555L6.68555 3.75H3.99609C3.31031 3.75 2.74609 4.31421 2.74609 5V12Z"
329
329
  }, null, -1))
330
330
  ], 16);
331
331
  }
332
- const se = /* @__PURE__ */ S(oe, [["render", le]]);
333
- let Va = 0;
334
- const ce = {
332
+ const sa = /* @__PURE__ */ j(na, [["render", pa]]);
333
+ let Hi = 0;
334
+ const ra = {
335
335
  beforeCreate() {
336
- this.uuid = Va.toString(), Va += 1;
336
+ this.uuid = Hi.toString(), Hi += 1;
337
337
  }
338
- }, de = { key: 0 };
339
- function re(a, i, p, n, o, c) {
340
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
338
+ }, da = { key: 0 };
339
+ function ca(i, e, l, o, n, r) {
340
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
341
341
  class: "ui-assets-icons-16",
342
342
  xmlns: "http://www.w3.org/2000/svg",
343
343
  width: "16",
344
344
  height: "16",
345
345
  fill: "none"
346
346
  }), [
347
- a.$attrs["svg-title"] ? (s(), g("title", de, x(a.$attrs["svg-title"]), 1)) : u("", !0),
348
- i[0] || (i[0] = r("path", {
347
+ i.$attrs["svg-title"] ? (s(), g("title", da, x(i.$attrs["svg-title"]), 1)) : u("", !0),
348
+ e[0] || (e[0] = c("path", {
349
349
  fill: "#001222",
350
350
  d: "M9.74609 3.74805C11.1268 3.74805 12.2461 4.86733 12.2461 6.24805C12.2461 7.62876 11.1268 8.74805 9.74609 8.74805C8.36538 8.74805 7.24609 7.62876 7.24609 6.24805C7.24609 4.86733 8.36538 3.74805 9.74609 3.74805ZM9.74609 5.24805C9.19381 5.24805 8.74609 5.69576 8.74609 6.24805C8.74609 6.80033 9.19381 7.24805 9.74609 7.24805C10.2984 7.24805 10.7461 6.80033 10.7461 6.24805C10.7461 5.69576 10.2984 5.24805 9.74609 5.24805Z"
351
351
  }, null, -1)),
352
- i[1] || (i[1] = r("path", {
352
+ e[1] || (e[1] = c("path", {
353
353
  fill: "#001222",
354
354
  d: "M11.9961 1.24805C13.5149 1.24805 14.7461 2.47926 14.7461 3.99805V11.998C14.7461 13.5168 13.5149 14.748 11.9961 14.748H3.99609C2.47731 14.748 1.24609 13.5168 1.24609 11.998V3.99805C1.24609 2.47926 2.47731 1.24805 3.99609 1.24805H11.9961ZM2.74609 11.3105V11.998C2.74609 12.6884 3.30574 13.248 3.99609 13.248H9.18359L4.99609 9.06055L2.74609 11.3105ZM3.99609 2.74805C3.30574 2.74805 2.74609 3.30769 2.74609 3.99805V9.18945L4.99609 6.93945L11.3047 13.248H11.9961C12.6864 13.248 13.2461 12.6884 13.2461 11.998V3.99805C13.2461 3.30769 12.6865 2.74805 11.9961 2.74805H3.99609Z"
355
355
  }, null, -1))
356
356
  ], 16);
357
357
  }
358
- const me = /* @__PURE__ */ S(ce, [["render", re]]);
359
- let Oa = 0;
360
- const ue = {
358
+ const ma = /* @__PURE__ */ j(ra, [["render", ca]]);
359
+ let Vi = 0;
360
+ const ua = {
361
361
  beforeCreate() {
362
- this.uuid = Oa.toString(), Oa += 1;
362
+ this.uuid = Vi.toString(), Vi += 1;
363
363
  }
364
- }, ve = { key: 0 }, fe = ["clip-path"], xe = ["id"];
365
- function ge(a, i, p, n, o, c) {
366
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
364
+ }, va = { key: 0 }, fa = ["clip-path"], xa = ["id"];
365
+ function ga(i, e, l, o, n, r) {
366
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
367
367
  class: "ui-assets-icons-16",
368
368
  xmlns: "http://www.w3.org/2000/svg",
369
369
  width: "16",
370
370
  height: "16",
371
371
  fill: "none"
372
372
  }), [
373
- a.$attrs["svg-title"] ? (s(), g("title", ve, x(a.$attrs["svg-title"]), 1)) : u("", !0),
374
- r("g", {
373
+ i.$attrs["svg-title"] ? (s(), g("title", va, x(i.$attrs["svg-title"]), 1)) : u("", !0),
374
+ c("g", {
375
375
  fill: "#001222",
376
- "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
377
- }, i[0] || (i[0] = [
378
- r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
379
- 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)
380
- ]), 8, fe),
381
- r("defs", null, [
382
- r("clipPath", {
383
- id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
384
- }, i[1] || (i[1] = [
385
- r("rect", {
376
+ "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + i.uuid + ")"
377
+ }, e[0] || (e[0] = [
378
+ c("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
379
+ c("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)
380
+ ]), 8, fa),
381
+ c("defs", null, [
382
+ c("clipPath", {
383
+ id: "uia-ui-assets/icons-16-play_circle__a" + i.uuid
384
+ }, e[1] || (e[1] = [
385
+ c("rect", {
386
386
  width: "16",
387
387
  height: "16",
388
388
  fill: "#fff"
389
389
  }, null, -1)
390
- ]), 8, xe)
390
+ ]), 8, xa)
391
391
  ])
392
392
  ], 16);
393
393
  }
394
- const he = /* @__PURE__ */ S(ue, [["render", ge]]);
395
- let qa = 0;
396
- const be = {
394
+ const ha = /* @__PURE__ */ j(ua, [["render", ga]]);
395
+ let qi = 0;
396
+ const ba = {
397
397
  beforeCreate() {
398
- this.uuid = qa.toString(), qa += 1;
398
+ this.uuid = qi.toString(), qi += 1;
399
399
  }
400
- }, we = { key: 0 };
401
- function ye(a, i, p, n, o, c) {
402
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
400
+ }, ya = { key: 0 };
401
+ function wa(i, e, l, o, n, r) {
402
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
403
403
  class: "ui-assets-icons-16",
404
404
  xmlns: "http://www.w3.org/2000/svg",
405
405
  width: "16",
406
406
  height: "16",
407
407
  fill: "none"
408
408
  }), [
409
- a.$attrs["svg-title"] ? (s(), g("title", we, x(a.$attrs["svg-title"]), 1)) : u("", !0),
410
- i[0] || (i[0] = r("path", {
409
+ i.$attrs["svg-title"] ? (s(), g("title", ya, x(i.$attrs["svg-title"]), 1)) : u("", !0),
410
+ e[0] || (e[0] = c("path", {
411
411
  fill: "#001222",
412
412
  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"
413
413
  }, null, -1)),
414
- i[1] || (i[1] = r("path", {
414
+ e[1] || (e[1] = c("path", {
415
415
  fill: "#001222",
416
416
  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"
417
417
  }, null, -1)),
418
- i[2] || (i[2] = r("path", {
418
+ e[2] || (e[2] = c("path", {
419
419
  fill: "#001222",
420
420
  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"
421
421
  }, null, -1))
422
422
  ], 16);
423
423
  }
424
- const ke = /* @__PURE__ */ S(be, [["render", ye]]);
425
- let Ha = 0;
426
- const Ce = {
424
+ const ka = /* @__PURE__ */ j(ba, [["render", wa]]);
425
+ let Ai = 0;
426
+ const za = {
427
427
  beforeCreate() {
428
- this.uuid = Ha.toString(), Ha += 1;
428
+ this.uuid = Ai.toString(), Ai += 1;
429
429
  }
430
- }, $e = { key: 0 };
431
- function ze(a, i, p, n, o, c) {
432
- return s(), g("svg", D({ role: "img" }, a.$attrs, {
430
+ }, Ca = { key: 0 };
431
+ function Ea(i, e, l, o, n, r) {
432
+ return s(), g("svg", D({ role: "img" }, i.$attrs, {
433
433
  class: "ui-assets-icons-16",
434
434
  xmlns: "http://www.w3.org/2000/svg",
435
435
  width: "16",
436
436
  height: "16",
437
437
  fill: "none"
438
438
  }), [
439
- a.$attrs["svg-title"] ? (s(), g("title", $e, x(a.$attrs["svg-title"]), 1)) : u("", !0),
440
- i[0] || (i[0] = r("path", {
439
+ i.$attrs["svg-title"] ? (s(), g("title", Ca, x(i.$attrs["svg-title"]), 1)) : u("", !0),
440
+ e[0] || (e[0] = c("path", {
441
441
  fill: "#001222",
442
442
  d: "M12 1.25C13.5188 1.25 14.75 2.48122 14.75 4V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V4C1.25 2.48122 2.48122 1.25 4 1.25H12ZM6.75 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.75H6.75V13.25ZM2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H5.25V10.75H2.75V12ZM6.75 9.25H13.25V6.75H6.75V9.25ZM2.75 9.25H5.25V6.75H2.75V9.25ZM6.75 5.25H13.25V4C13.25 3.30964 12.6904 2.75 12 2.75H6.75V5.25ZM4 2.75C3.30964 2.75 2.75 3.30964 2.75 4V5.25H5.25V2.75H4Z"
443
443
  }, null, -1))
444
444
  ], 16);
445
445
  }
446
- const _e = /* @__PURE__ */ S(Ce, [["render", ze]]), je = {
447
- [k.AUDIO]: ke,
448
- [k.COMPRESSED]: se,
449
- [k.GENERIC]: Pi,
450
- [k.IMAGE]: me,
451
- [k.PDF]: ae,
452
- [k.SLIDES]: Ji,
453
- [k.TABLE]: _e,
454
- [k.TEXT]: ne,
455
- [k.VIDEO]: he
446
+ const Fa = /* @__PURE__ */ j(za, [["render", Ea]]), $a = {
447
+ [k.AUDIO]: ka,
448
+ [k.COMPRESSED]: sa,
449
+ [k.GENERIC]: Pe,
450
+ [k.IMAGE]: ma,
451
+ [k.PDF]: ia,
452
+ [k.SLIDES]: Xe,
453
+ [k.TABLE]: Fa,
454
+ [k.TEXT]: oa,
455
+ [k.VIDEO]: ha
456
456
  };
457
- function Ee(a) {
458
- return je[a.type];
457
+ function Ta(i) {
458
+ return $a[i.type];
459
459
  }
460
- function Re(a) {
461
- switch (a.type) {
460
+ function _a(i) {
461
+ switch (i.type) {
462
462
  case k.COMPRESSED:
463
463
  case k.GENERIC:
464
464
  return "grey";
@@ -471,210 +471,217 @@ function Re(a) {
471
471
  return "green";
472
472
  }
473
473
  }
474
- const Wa = {
474
+ const Wi = {
475
+ "de-DE": { cancel: "Abbrechen", fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung", fileTypeMustBe: "Der Dateityp muss {list} sein.", imageDimensionsExceedLimits: "Die Bildabmessungen überschreiten die zulässigen Grenzwerte", remove: "Entfernen", retry: "Wiederholen" },
476
+ "en-GB": { cancel: "Cancel", fileExceedsSizeLimit: "File exceeds size limit", fileTypeMustBe: "File type must be {list}", imageDimensionsExceedLimits: "Image dimensions exceed limits", remove: "Remove", retry: "Retry" },
475
477
  "en-US": { cancel: "Cancel", fileExceedsSizeLimit: "File exceeds size limit", fileTypeMustBe: "File type must be {list}", imageDimensionsExceedLimits: "Image dimensions exceed limits", remove: "Remove", retry: "Retry" },
478
+ "es-ES": { cancel: "Cancelar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", fileTypeMustBe: "El tipo de archivo debe ser {list}", imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites", remove: "Eliminar", retry: "Reintentar" },
479
+ "es-MX": { cancel: "Cancelar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", fileTypeMustBe: "El tipo de archivo debe ser {list}", imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites", remove: "Eliminar", retry: "Reintentar" },
480
+ "fr-FR": { cancel: "Annuler", fileExceedsSizeLimit: "Le fichier dépasse la limite de taille", fileTypeMustBe: "Le type de fichier doit être {list}", imageDimensionsExceedLimits: "Les dimensions de l'image dépassent les limites", remove: "Supprimer", retry: "Réessayer" },
481
+ "it-IT": { cancel: "Annulla", fileExceedsSizeLimit: "Il file supera il limite di dimensione", fileTypeMustBe: "Il tipo di file deve essere {list}", imageDimensionsExceedLimits: "Le dimensioni dell'immagine superano i limiti", remove: "Rimuovi", retry: "Riprova" },
476
482
  "ja-JP": { cancel: "キャンセル", fileExceedsSizeLimit: "ファイルがサイズ制限を超えています", fileTypeMustBe: "ファイル形式は{list}でなければなりません", imageDimensionsExceedLimits: "画像のサイズが制限を超えています", remove: "削除", retry: "再試行" },
477
- "pt-BR": { cancel: "Cancelar", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", fileTypeMustBe: "O tipo de arquivo deve ser {list}", imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites", remove: "Remover", retry: "Tentar novamente" }
478
- }, Ie = { class: "b-file-uploader-file-card__details" }, Fe = { class: "b-file-uploader-file-card__info" }, Se = ["id"], Le = {
483
+ "pt-BR": { cancel: "Cancelar", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", fileTypeMustBe: "O tipo de arquivo deve ser {list}", imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites", remove: "Retirar", retry: "Tentar de novo" },
484
+ "zh-CN": { cancel: "取消", fileExceedsSizeLimit: "文件大小超过限制", fileTypeMustBe: "文件类型必须为 {list}", imageDimensionsExceedLimits: "图像尺寸超过限制", remove: "移除", retry: "重试" }
485
+ }, Ra = { class: "b-file-uploader-file-card__details" }, Sa = { class: "b-file-uploader-file-card__info" }, ja = ["id"], Ia = {
479
486
  key: 0,
480
487
  class: "b-file-uploader-file-card__actions"
481
- }, Te = {
488
+ }, La = {
482
489
  name: "file-uploader-file-card",
483
- i18n: { messages: Wa }
484
- }, Me = /* @__PURE__ */ ca({
485
- ...Te,
490
+ i18n: { messages: Wi }
491
+ }, Ma = /* @__PURE__ */ ri({
492
+ ...La,
486
493
  props: {
487
494
  file: {},
488
495
  supportedFileTypes: { default: null },
489
496
  readonly: { type: Boolean }
490
497
  },
491
498
  emits: ["cancel", "remove", "retry"],
492
- setup(a, { expose: i, emit: p }) {
493
- const o = a, c = p, { t: l, locale: m } = da({ messages: Wa }), h = F(null), z = F(null), V = F(null), O = I("file-errors-section"), v = I("cancel-file-button"), _ = I("remove-file-button"), B = I("retry-file-button"), q = F(o.file.state === M.SUCCESS), b = f(() => URL.createObjectURL(o.file.data)), N = f(() => o.file.state === M.ERROR), A = f(() => o.file.errors.includes(E.ERROR_LOAD)), K = f(() => o.file.errors.includes(E.ERROR_SIZE)), Q = f(() => o.file.errors.includes(E.ERROR_DIMENSIONS)), ta = f(() => o.file.errors.includes(E.ERROR_TYPE)), na = f(() => o.file.state === M.LOADING), oa = f(() => o.file.progress && `(${o.file.progress.toFixed(0)}%)`), W = f(() => ka(m.value, o.file.data.size)), G = F(), pa = F(), la = Ti(G, pa), aa = f(() => ({
499
+ setup(i, { expose: e, emit: l }) {
500
+ const n = i, r = l, { t: p, locale: m } = di({ messages: Wi }), h = S(null), E = S(null), H = S(null), V = R("file-errors-section"), v = R("cancel-file-button"), F = R("remove-file-button"), O = R("retry-file-button"), q = S(n.file.state === M.SUCCESS), b = f(() => URL.createObjectURL(n.file.data)), N = f(() => n.file.state === M.ERROR), B = f(() => n.file.errors.includes(T.ERROR_LOAD)), K = f(() => n.file.errors.includes(T.ERROR_SIZE)), Q = f(() => n.file.errors.includes(T.ERROR_DIMENSIONS)), ti = f(() => n.file.errors.includes(T.ERROR_TYPE)), oi = f(() => n.file.state === M.LOADING), ni = f(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), W = f(() => ki(m.value, n.file.data.size)), G = S(), li = S(), pi = Le(G, li), ii = f(() => ({
494
501
  "b-file-uploader-file-card--error": N.value
495
- })), ra = f(() => ({
496
- [`b-file-uploader-file-card__icon--${Re(o.file)}`]: q.value,
502
+ })), ci = f(() => ({
503
+ [`b-file-uploader-file-card__icon--${_a(n.file)}`]: q.value,
497
504
  "b-file-uploader-file-card__icon--error": N.value
498
- })), Y = f(() => na.value ? _i : N.value ? Za : q.value ? Ee(o.file) : yi);
499
- wa(
500
- () => o.file.state,
501
- (j) => {
502
- if (j === M.SUCCESS && !q.value) {
503
- const H = setTimeout(() => {
504
- q.value = !0, clearTimeout(H);
505
+ })), Y = f(() => oi.value ? Fe : N.value ? Zi : q.value ? Ta(n.file) : we);
506
+ yi(
507
+ () => n.file.state,
508
+ ($) => {
509
+ if ($ === M.SUCCESS && !q.value) {
510
+ const A = setTimeout(() => {
511
+ q.value = !0, clearTimeout(A);
505
512
  }, 1200);
506
513
  }
507
514
  }
508
515
  );
509
- function ma() {
510
- if (V.value) {
511
- V.value.$el.focus();
516
+ function mi() {
517
+ if (H.value) {
518
+ H.value.$el.focus();
512
519
  return;
513
520
  }
514
521
  if (h.value) {
515
522
  h.value.$el.focus();
516
523
  return;
517
524
  }
518
- if (z.value) {
519
- z.value.$el.focus();
525
+ if (E.value) {
526
+ E.value.$el.focus();
520
527
  return;
521
528
  }
522
529
  }
523
- return i({
524
- focus: ma
525
- }), (j, H) => (s(), g("div", {
526
- class: Z(["b-file-uploader-file-card", aa.value])
530
+ return e({
531
+ focus: mi
532
+ }), ($, A) => (s(), g("div", {
533
+ class: Z(["b-file-uploader-file-card", ii.value])
527
534
  }, [
528
- r("div", Ie, [
529
- r("div", Fe, [
530
- U(t(Li), {
531
- name: t(Na) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
535
+ c("div", Ra, [
536
+ c("div", Sa, [
537
+ U(t(Ie), {
538
+ name: t(Ni) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
532
539
  "show-file-icon": q.value
533
540
  }, {
534
- default: w(() => [
535
- (s(), y(ui(Y.value), {
541
+ default: y(() => [
542
+ (s(), w(ue(Y.value), {
536
543
  key: JSON.stringify(Y.value),
537
544
  small: "",
538
545
  "aria-hidden": "true",
539
- class: Z(["b-file-uploader-file-card__icon", ra.value]),
546
+ class: Z(["b-file-uploader-file-card__icon", ci.value]),
540
547
  "data-testid": "file-uploader-item-icon"
541
548
  }, null, 8, ["class"]))
542
549
  ]),
543
550
  _: 1
544
551
  }, 8, ["name", "show-file-icon"]),
545
- r("div", {
552
+ c("div", {
546
553
  ref_key: "fileNameContainerRef",
547
- ref: pa,
554
+ ref: li,
548
555
  class: "b-file-uploader-file-card__file-name"
549
556
  }, [
550
- U(t(zi), {
557
+ U(t(Ee), {
551
558
  "aria-hidden": "true",
552
559
  tabindex: "-1",
553
- download: j.file.data.name,
560
+ download: $.file.data.name,
554
561
  to: b.value,
555
562
  "disable-typography": "",
556
563
  "is-not-routing": "",
557
564
  variant: "quiet"
558
565
  }, {
559
- default: w(() => [
560
- Ua((s(), y(t(R), {
566
+ default: y(() => [
567
+ Ui((s(), w(t(_), {
561
568
  ref_key: "fileNameRef",
562
569
  ref: G,
563
570
  stronger: "",
564
571
  el: "span"
565
572
  }, {
566
- default: w(() => [
567
- $(x(j.file.data.name), 1)
573
+ default: y(() => [
574
+ C(x($.file.data.name), 1)
568
575
  ]),
569
576
  _: 1
570
577
  })), [
571
- [t($i), t(la) ? j.file.data.name : null]
578
+ [t(Ce), t(pi) ? $.file.data.name : null]
572
579
  ])
573
580
  ]),
574
581
  _: 1
575
582
  }, 8, ["download", "to"])
576
583
  ], 512),
577
- j.file.progress ? (s(), y(t(R), {
584
+ $.file.progress ? (s(), w(t(_), {
578
585
  key: 0,
579
586
  el: "span"
580
587
  }, {
581
- default: w(() => [
582
- $(x(oa.value), 1)
588
+ default: y(() => [
589
+ C(x(ni.value), 1)
583
590
  ]),
584
591
  _: 1
585
- })) : j.file.data.size ? (s(), y(t(R), {
592
+ })) : $.file.data.size ? (s(), w(t(_), {
586
593
  key: 1,
587
594
  class: "b-file-uploader-file-card__file-size",
588
595
  "aria-hidden": "true",
589
596
  el: "span"
590
597
  }, {
591
- default: w(() => [
592
- $(x(W.value), 1)
598
+ default: y(() => [
599
+ C(x(W.value), 1)
593
600
  ]),
594
601
  _: 1
595
602
  })) : u("", !0)
596
603
  ]),
597
- K.value || Q.value || ta.value && j.supportedFileTypes ? (s(), g("div", {
604
+ K.value || Q.value || ti.value && $.supportedFileTypes ? (s(), g("div", {
598
605
  key: 0,
599
- id: t(O),
606
+ id: t(V),
600
607
  role: "alert"
601
608
  }, [
602
- K.value ? (s(), y(t(R), {
609
+ K.value ? (s(), w(t(_), {
603
610
  key: 0,
604
611
  class: "b-file-uploader-file-card__error-message"
605
612
  }, {
606
- default: w(() => [
607
- $(x(t(l)("fileExceedsSizeLimit")), 1)
613
+ default: y(() => [
614
+ C(x(t(p)("fileExceedsSizeLimit")), 1)
608
615
  ]),
609
616
  _: 1
610
617
  })) : u("", !0),
611
- Q.value ? (s(), y(t(R), {
618
+ Q.value ? (s(), w(t(_), {
612
619
  key: 1,
613
620
  class: "b-file-uploader-file-card__error-message"
614
621
  }, {
615
- default: w(() => [
616
- $(x(t(l)("imageDimensionsExceedLimits")), 1)
622
+ default: y(() => [
623
+ C(x(t(p)("imageDimensionsExceedLimits")), 1)
617
624
  ]),
618
625
  _: 1
619
626
  })) : u("", !0),
620
- ta.value && j.supportedFileTypes ? (s(), y(t(R), {
627
+ ti.value && $.supportedFileTypes ? (s(), w(t(_), {
621
628
  key: 2,
622
629
  class: "b-file-uploader-file-card__error-message"
623
630
  }, {
624
- default: w(() => [
625
- $(x(t(l)("fileTypeMustBe", { list: j.supportedFileTypes })), 1)
631
+ default: y(() => [
632
+ C(x(t(p)("fileTypeMustBe", { list: $.supportedFileTypes })), 1)
626
633
  ]),
627
634
  _: 1
628
635
  })) : u("", !0)
629
- ], 8, Se)) : u("", !0)
636
+ ], 8, ja)) : u("", !0)
630
637
  ]),
631
- j.readonly ? u("", !0) : (s(), g("div", Le, [
632
- A.value ? (s(), y(t(ba), {
638
+ $.readonly ? u("", !0) : (s(), g("div", Ia, [
639
+ B.value ? (s(), w(t(bi), {
633
640
  key: 0,
634
641
  ref_key: "retryFileButtonRef",
635
- ref: V,
636
- "aria-labelledby": `${t(O)} ${t(B)}`,
642
+ ref: H,
643
+ "aria-labelledby": `${t(V)} ${t(O)}`,
637
644
  variant: "tertiary",
638
- onClick: H[0] || (H[0] = (ia) => c("retry"))
645
+ onClick: A[0] || (A[0] = (ei) => r("retry"))
639
646
  }, {
640
- iconLeft: w(() => [
641
- U(t(Ci), {
642
- id: t(B),
643
- "svg-title": `${t(l)("retry")} - ${j.file.data.name} `
647
+ iconLeft: y(() => [
648
+ U(t(ze), {
649
+ id: t(O),
650
+ "svg-title": `${t(p)("retry")} - ${$.file.data.name} `
644
651
  }, null, 8, ["id", "svg-title"])
645
652
  ]),
646
- default: w(() => [
647
- $(" " + x(t(l)("retry")), 1)
653
+ default: y(() => [
654
+ C(" " + x(t(p)("retry")), 1)
648
655
  ]),
649
656
  _: 1
650
657
  }, 8, ["aria-labelledby"])) : u("", !0),
651
- na.value || N.value ? (s(), y(t(ba), {
658
+ oi.value || N.value ? (s(), w(t(bi), {
652
659
  key: 1,
653
660
  ref_key: "cancelFileButtonRef",
654
- ref: z,
655
- "aria-labelledby": `${t(O)} ${t(v)}`,
661
+ ref: E,
662
+ "aria-labelledby": `${t(V)} ${t(v)}`,
656
663
  variant: "tertiary",
657
- onClick: H[1] || (H[1] = (ia) => c("cancel"))
664
+ onClick: A[1] || (A[1] = (ei) => r("cancel"))
658
665
  }, {
659
- iconLeft: w(() => [
660
- U(t(ki), {
666
+ iconLeft: y(() => [
667
+ U(t(ke), {
661
668
  id: t(v),
662
- "svg-title": `${t(l)("cancel")} - ${j.file.data.name}`
669
+ "svg-title": `${t(p)("cancel")} - ${$.file.data.name}`
663
670
  }, null, 8, ["id", "svg-title"])
664
671
  ]),
665
672
  _: 1
666
- }, 8, ["aria-labelledby"])) : (s(), y(t(ba), {
673
+ }, 8, ["aria-labelledby"])) : (s(), w(t(bi), {
667
674
  key: 2,
668
675
  ref_key: "removeFileButtonRef",
669
676
  ref: h,
670
- "aria-labelledby": `${t(O)} ${t(_)}`,
677
+ "aria-labelledby": `${t(V)} ${t(F)}`,
671
678
  variant: "tertiary",
672
- onClick: H[2] || (H[2] = (ia) => c("remove"))
679
+ onClick: A[2] || (A[2] = (ei) => r("remove"))
673
680
  }, {
674
- iconLeft: w(() => [
675
- U(t(wi), {
676
- id: t(_),
677
- "svg-title": `${t(l)("remove")} - ${j.file.data.name}`
681
+ iconLeft: y(() => [
682
+ U(t(ye), {
683
+ id: t(F),
684
+ "svg-title": `${t(p)("remove")} - ${$.file.data.name}`
678
685
  }, null, 8, ["id", "svg-title"])
679
686
  ]),
680
687
  _: 1
@@ -682,14 +689,21 @@ const Wa = {
682
689
  ]))
683
690
  ], 2));
684
691
  }
685
- }), De = /* @__PURE__ */ S(Me, [["__scopeId", "data-v-0051c431"]]), Ga = {
692
+ }), Da = /* @__PURE__ */ j(Ma, [["__scopeId", "data-v-0051c431"]]), Gi = {
693
+ "de-DE": { maxFileSize: "Maximale Dateigröße: {size}", maxImageDimensions: "Maximale Bilddimensionen: {width} × {height}px", maxImageHeight: "Maximale Bildhöhe: {height}px", maxImageWidth: "Maximale Bildbreite: {width}px", maxUpload: "Maximale Anzahl Uploads: {count} Datei | Maximale Anzahl Uploads: {count} Dateien", supportedFileTypes: "Unterstützte Dateitypen: {list}", upToSize: "(bis zu {size})" },
694
+ "en-GB": { maxFileSize: "Max. file size: {size}", maxImageDimensions: "Max. image dimensions: {width} × {height}px", maxImageHeight: "Max. image height: {height}px", maxImageWidth: "Max. image width: {width}px", maxUpload: "Max. upload: {count} file | Max. upload: {count} files", supportedFileTypes: "Supported file types: {list}", upToSize: "(up to {size})" },
686
695
  "en-US": { maxFileSize: "Max file size: {size}", maxImageDimensions: "Max image dimensions: {width} × {height}px", maxImageHeight: "Max image height: {height}px", maxImageWidth: "Max image width: {width}px", maxUpload: "Max upload: {count} file | Max upload: {count} files", supportedFileTypes: "Supported file types: {list}", upToSize: "(up to {size})" },
687
- "ja-JP": { maxFileSize: "最大ファイルサイズ:{size}", maxImageDimensions: "最大画像サイズ: {width} × {height}px", maxImageHeight: "最大画像高さ: {height}px", maxImageWidth: "最大画像幅: {width}px", maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル", supportedFileTypes: "対応ファイル形式: {list}" },
688
- "pt-BR": { maxFileSize: "Tamanho máx. do arquivo: {size}", maxImageDimensions: "Dimensões máximas da imagem: {width} × {height}px", maxImageHeight: "Altura máx. da imagem: {height}px", maxImageWidth: "Largura máxima da imagem: {width}px", maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos", supportedFileTypes: "Tipos de arquivo aceitos: {list}" }
689
- }, Ve = {
690
- i18n: { messages: Ga }
691
- }, Oe = /* @__PURE__ */ ca({
692
- ...Ve,
696
+ "es-ES": { maxFileSize: "Tamaño máximo del archivo: {size}", maxImageDimensions: "Dimensiones máximas de la imagen: {width} × {height} px", maxImageHeight: "Altura máxima de la imagen: {height} px", maxImageWidth: "Anchura máximo de la imagen: {width} px", maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos", supportedFileTypes: "Tipos de archivo compatibles: {list}", upToSize: "(hasta {size})" },
697
+ "es-MX": { maxFileSize: "Tamaño máximo de archivo: {size}", maxImageDimensions: "Dimensiones máximas de la imagen: {ancho} × {altura}px", maxImageHeight: "Altura máxima de la imagen: {height}px", maxImageWidth: "Ancho máximo de la imagen: {width}px", maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos", supportedFileTypes: "Tipos de archivo compatibles: {list}", upToSize: "(hasta {size})" },
698
+ "fr-FR": { maxFileSize: "Taille maximale du fichier : {size}", maxImageDimensions: "Dimensions maximales de l'image : {width} × {height} px", maxImageHeight: "Hauteur maximale de l'image : {height} px", maxImageWidth: "Largeur maximale de l'image : {width} px", maxUpload: "Téléchargement maximal : {count} fichier | Téléchargement maximal : {count} fichiers", supportedFileTypes: "Types de fichiers pris en charge : {list}", upToSize: "(jusqu'à {size})" },
699
+ "it-IT": { maxFileSize: "Dimensione massima del file: {size}", maxImageDimensions: "Dimensioni massime dell'immagine: {width} × {height}px", maxImageHeight: "Altezza massima dell'immagine: {height} px", maxImageWidth: "Larghezza massima dell'immagine: {width} px", maxUpload: "Upload massimo: file {count} | Upload massimo: {count} file", supportedFileTypes: "Tipi di file supportati: {list}", upToSize: "(fino a {size})" },
700
+ "ja-JP": { maxFileSize: "最大ファイルサイズ:{size}", maxImageDimensions: "最大画像サイズ: {width} × {height}px", maxImageHeight: "最大画像高さ: {height}px", maxImageWidth: "最大画像幅: {width}px", maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル", supportedFileTypes: "対応ファイル形式: {list}", upToSize: "({size}まで)" },
701
+ "pt-BR": { maxFileSize: "Tamanho máx. do arquivo: {size}", maxImageDimensions: "Dimensões máx. da imagem: {width} × {height}px", maxImageHeight: "Altura máx. da imagem: {height}px", maxImageWidth: "Largura máx. da imagem: {width}px", maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos", supportedFileTypes: "Tipos de arquivo aceitos: {list}", upToSize: "(até {size})" },
702
+ "zh-CN": { maxFileSize: "最大文件大小:{size}", maxImageDimensions: "最大图像尺寸:{width} × {height}px", maxImageHeight: "最大图像高度:{height}px", maxImageWidth: "最大图像宽度:{width}px", maxUpload: "最多上传:{count} 个文件 | 最多上传:{count} 个文件", supportedFileTypes: "支持的文件类型:{list}", upToSize: "(最多 {size})" }
703
+ }, Ha = {
704
+ i18n: { messages: Gi }
705
+ }, Va = /* @__PURE__ */ ri({
706
+ ...Ha,
693
707
  __name: "file-uploader-restrictions",
694
708
  props: {
695
709
  condensed: { type: Boolean, default: null },
@@ -699,76 +713,76 @@ const Wa = {
699
713
  maxSize: { default: null },
700
714
  supportedFileTypes: { default: null }
701
715
  },
702
- setup(a) {
703
- const i = a, { t: p, tc: n, n: o, locale: c } = da({ messages: Ga }), l = f(() => ({
704
- "b-file-uploader-restrictions--condensed": i.condensed,
705
- "b-file-uploader-restrictions--disabled": i.disabled
716
+ setup(i) {
717
+ const e = i, { t: l, tc: o, n, locale: r } = di({ messages: Gi }), p = f(() => ({
718
+ "b-file-uploader-restrictions--condensed": e.condensed,
719
+ "b-file-uploader-restrictions--disabled": e.disabled
706
720
  }));
707
721
  function m(v) {
708
722
  return {
709
723
  "b-file-uploader-restrictions--error": v
710
724
  };
711
725
  }
712
- const h = f(() => i.maxSize && Array.isArray(i.maxSize.value)), z = f(() => !i.maxSize || h.value ? null : p("maxFileSize", { size: ka(c.value, i.maxSize.value) })), V = f(() => {
713
- if (!i.supportedFileTypes)
726
+ const h = f(() => e.maxSize && Array.isArray(e.maxSize.value)), E = f(() => !e.maxSize || h.value ? null : l("maxFileSize", { size: ki(r.value, e.maxSize.value) })), H = f(() => {
727
+ if (!e.supportedFileTypes)
714
728
  return null;
715
729
  if (!h.value)
716
- return i.supportedFileTypes.value;
717
- let v = i.supportedFileTypes.value;
718
- return i.maxSize.value.forEach((_) => {
719
- const B = _.fileType.toUpperCase(), q = p("upToSize", { size: ka(c.value, _.maxSize) });
720
- v = v.replace(B, `${B} ${q}`);
730
+ return e.supportedFileTypes.value;
731
+ let v = e.supportedFileTypes.value;
732
+ return e.maxSize.value.forEach((F) => {
733
+ const O = F.fileType.toUpperCase(), q = l("upToSize", { size: ki(r.value, F.maxSize) });
734
+ v = v.replace(O, `${O} ${q}`);
721
735
  }), v;
722
- }), O = f(() => {
723
- if (!i.maxDimensions)
736
+ }), V = f(() => {
737
+ if (!e.maxDimensions)
724
738
  return null;
725
739
  const {
726
- value: { width: v, height: _ }
727
- } = i.maxDimensions;
728
- return v && _ ? p("maxImageDimensions", { width: o(v), height: o(_) }) : v ? p("maxImageWidth", { width: o(v) }) : _ ? p("maxImageHeight", { height: o(_) }) : null;
740
+ value: { width: v, height: F }
741
+ } = e.maxDimensions;
742
+ return v && F ? l("maxImageDimensions", { width: n(v), height: n(F) }) : v ? l("maxImageWidth", { width: n(v) }) : F ? l("maxImageHeight", { height: n(F) }) : null;
729
743
  });
730
- return (v, _) => (s(), g("div", {
731
- class: Z(["b-file-uploader-restrictions", l.value])
744
+ return (v, F) => (s(), g("div", {
745
+ class: Z(["b-file-uploader-restrictions", p.value])
732
746
  }, [
733
- v.supportedFileTypes ? (s(), y(t(R), {
747
+ v.supportedFileTypes ? (s(), w(t(_), {
734
748
  key: 0,
735
749
  class: Z(m(v.supportedFileTypes.error || h.value && v.maxSize.error))
736
750
  }, {
737
- default: w(() => [
738
- $(x(t(p)("supportedFileTypes", { list: V.value })), 1)
751
+ default: y(() => [
752
+ C(x(t(l)("supportedFileTypes", { list: H.value })), 1)
739
753
  ]),
740
754
  _: 1
741
755
  }, 8, ["class"])) : u("", !0),
742
- !h.value && v.maxSize ? (s(), y(t(R), {
756
+ !h.value && v.maxSize ? (s(), w(t(_), {
743
757
  key: 1,
744
758
  class: Z(m(v.maxSize.error))
745
759
  }, {
746
- default: w(() => [
747
- $(x(z.value), 1)
760
+ default: y(() => [
761
+ C(x(E.value), 1)
748
762
  ]),
749
763
  _: 1
750
764
  }, 8, ["class"])) : u("", !0),
751
- v.maxDimensions ? (s(), y(t(R), {
765
+ v.maxDimensions ? (s(), w(t(_), {
752
766
  key: 2,
753
767
  class: Z(m(v.maxDimensions.error))
754
768
  }, {
755
- default: w(() => [
756
- $(x(O.value), 1)
769
+ default: y(() => [
770
+ C(x(V.value), 1)
757
771
  ]),
758
772
  _: 1
759
773
  }, 8, ["class"])) : u("", !0),
760
- v.maxCount ? (s(), y(t(R), {
774
+ v.maxCount ? (s(), w(t(_), {
761
775
  key: 3,
762
776
  class: Z(m(v.maxCount.error))
763
777
  }, {
764
- default: w(() => [
765
- $(x(t(n)("maxUpload", v.maxCount.value, { count: t(o)(v.maxCount.value) })), 1)
778
+ default: y(() => [
779
+ C(x(t(o)("maxUpload", v.maxCount.value, { count: t(n)(v.maxCount.value) })), 1)
766
780
  ]),
767
781
  _: 1
768
782
  }, 8, ["class"])) : u("", !0)
769
783
  ], 2));
770
784
  }
771
- }), Ba = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-e75ae2de"]]), Ya = {
785
+ }), Oi = /* @__PURE__ */ j(Va, [["__scopeId", "data-v-e75ae2de"]]), Yi = {
772
786
  "application/prs.cww": ["cww"],
773
787
  "application/prs.xsf+xml": ["xsf"],
774
788
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1467,8 +1481,8 @@ const Wa = {
1467
1481
  "video/x-smv": ["smv"],
1468
1482
  "x-conference/x-cooltalk": ["ice"]
1469
1483
  };
1470
- Object.freeze(Ya);
1471
- const Ja = {
1484
+ Object.freeze(Yi);
1485
+ const Xi = {
1472
1486
  "application/andrew-inset": ["ez"],
1473
1487
  "application/appinstaller": ["appinstaller"],
1474
1488
  "application/applixware": ["aw"],
@@ -1820,133 +1834,140 @@ const Ja = {
1820
1834
  "video/quicktime": ["qt", "mov"],
1821
1835
  "video/webm": ["webm"]
1822
1836
  };
1823
- Object.freeze(Ja);
1824
- var T = function(a, i, p, n) {
1825
- if (p === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
1826
- if (typeof i == "function" ? a !== i || !n : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1827
- return p === "m" ? n : p === "a" ? n.call(a) : n ? n.value : i.get(a);
1828
- }, X, ea, P;
1829
- class qe {
1830
- constructor(...i) {
1831
- X.set(this, /* @__PURE__ */ new Map()), ea.set(this, /* @__PURE__ */ new Map()), P.set(this, /* @__PURE__ */ new Map());
1832
- for (const p of i)
1833
- this.define(p);
1837
+ Object.freeze(Xi);
1838
+ var L = function(i, e, l, o) {
1839
+ if (l === "a" && !o) throw new TypeError("Private accessor was defined without a getter");
1840
+ if (typeof e == "function" ? i !== e || !o : !e.has(i)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1841
+ return l === "m" ? o : l === "a" ? o.call(i) : o ? o.value : e.get(i);
1842
+ }, J, ai, P;
1843
+ class qa {
1844
+ constructor(...e) {
1845
+ J.set(this, /* @__PURE__ */ new Map()), ai.set(this, /* @__PURE__ */ new Map()), P.set(this, /* @__PURE__ */ new Map());
1846
+ for (const l of e)
1847
+ this.define(l);
1834
1848
  }
1835
- define(i, p = !1) {
1836
- for (let [n, o] of Object.entries(i)) {
1837
- n = n.toLowerCase(), o = o.map((m) => m.toLowerCase()), T(this, P, "f").has(n) || T(this, P, "f").set(n, /* @__PURE__ */ new Set());
1838
- const c = T(this, P, "f").get(n);
1839
- let l = !0;
1840
- for (let m of o) {
1849
+ define(e, l = !1) {
1850
+ for (let [o, n] of Object.entries(e)) {
1851
+ o = o.toLowerCase(), n = n.map((m) => m.toLowerCase()), L(this, P, "f").has(o) || L(this, P, "f").set(o, /* @__PURE__ */ new Set());
1852
+ const r = L(this, P, "f").get(o);
1853
+ let p = !0;
1854
+ for (let m of n) {
1841
1855
  const h = m.startsWith("*");
1842
- if (m = h ? m.slice(1) : m, c?.add(m), l && T(this, ea, "f").set(n, m), l = !1, h)
1856
+ if (m = h ? m.slice(1) : m, r?.add(m), p && L(this, ai, "f").set(o, m), p = !1, h)
1843
1857
  continue;
1844
- const z = T(this, X, "f").get(m);
1845
- if (z && z != n && !p)
1846
- throw new Error(`"${n} -> ${m}" conflicts with "${z} -> ${m}". Pass \`force=true\` to override this definition.`);
1847
- T(this, X, "f").set(m, n);
1858
+ const E = L(this, J, "f").get(m);
1859
+ if (E && E != o && !l)
1860
+ throw new Error(`"${o} -> ${m}" conflicts with "${E} -> ${m}". Pass \`force=true\` to override this definition.`);
1861
+ L(this, J, "f").set(m, o);
1848
1862
  }
1849
1863
  }
1850
1864
  return this;
1851
1865
  }
1852
- getType(i) {
1853
- if (typeof i != "string")
1866
+ getType(e) {
1867
+ if (typeof e != "string")
1854
1868
  return null;
1855
- const p = i.replace(/^.*[/\\]/, "").toLowerCase(), n = p.replace(/^.*\./, "").toLowerCase(), o = p.length < i.length;
1856
- return !(n.length < p.length - 1) && o ? null : T(this, X, "f").get(n) ?? null;
1869
+ const l = e.replace(/^.*[/\\]/, "").toLowerCase(), o = l.replace(/^.*\./, "").toLowerCase(), n = l.length < e.length;
1870
+ return !(o.length < l.length - 1) && n ? null : L(this, J, "f").get(o) ?? null;
1857
1871
  }
1858
- getExtension(i) {
1859
- return typeof i != "string" ? null : (i = i?.split?.(";")[0], (i && T(this, ea, "f").get(i.trim().toLowerCase())) ?? null);
1872
+ getExtension(e) {
1873
+ return typeof e != "string" ? null : (e = e?.split?.(";")[0], (e && L(this, ai, "f").get(e.trim().toLowerCase())) ?? null);
1860
1874
  }
1861
- getAllExtensions(i) {
1862
- return typeof i != "string" ? null : T(this, P, "f").get(i.toLowerCase()) ?? null;
1875
+ getAllExtensions(e) {
1876
+ return typeof e != "string" ? null : L(this, P, "f").get(e.toLowerCase()) ?? null;
1863
1877
  }
1864
1878
  _freeze() {
1865
1879
  this.define = () => {
1866
1880
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1867
1881
  }, Object.freeze(this);
1868
- for (const i of T(this, P, "f").values())
1869
- Object.freeze(i);
1882
+ for (const e of L(this, P, "f").values())
1883
+ Object.freeze(e);
1870
1884
  return this;
1871
1885
  }
1872
1886
  _getTestState() {
1873
1887
  return {
1874
- types: T(this, X, "f"),
1875
- extensions: T(this, ea, "f")
1888
+ types: L(this, J, "f"),
1889
+ extensions: L(this, ai, "f")
1876
1890
  };
1877
1891
  }
1878
1892
  }
1879
- X = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap();
1880
- const Xa = new qe(Ja, Ya)._freeze(), Ca = {
1893
+ J = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap();
1894
+ const Ji = new qa(Xi, Yi)._freeze(), zi = {
1895
+ "de-DE": { audioFiles: "Audiodateien", browseFiles: "Dateien durchsuchen", dropArea: "Ablagebereich", dropFiles: "Datei zum Hochladen ablegen | Dateien zum Hochladen ablegen", fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung", imageFiles: "Bilddateien", noFilesUploaded: "Keine Dateien hochgeladen", tooManyFiles: "Zu viele Dateien", videoFiles: "Videodateien", youHaveExceededTheMaximum: "Sie haben die maximale Anzahl von {count} Dateien überschritten. Bitte entfernen Sie einige Dateien, bevor Sie fortfahren." },
1896
+ "en-GB": { audioFiles: "audio files", browseFiles: "Browse files", dropArea: "Drop area", dropFiles: "Drop file to upload | Drop files to upload", fileExceedsSizeLimit: "File exceeds size limit", imageFiles: "image files", noFilesUploaded: "No files uploaded", tooManyFiles: "Too many files", videoFiles: "video files", youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding." },
1881
1897
  "en-US": { audioFiles: "audio files", browseFiles: "Browse files", dropArea: "Drop area", dropFiles: "Drop file to upload | Drop files to upload", fileExceedsSizeLimit: "File exceeds size limit", imageFiles: "image files", noFilesUploaded: "No files uploaded", tooManyFiles: "Too many files", videoFiles: "video files", youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding." },
1898
+ "es-ES": { audioFiles: "archivos de audio", browseFiles: "Explorar archivos", dropArea: "Zona de soltar", dropFiles: "Arrastrar archivo para cargar | Arrastrar archivos para cargar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", imageFiles: "archivos de imagen", noFilesUploaded: "No se han cargado archivos", tooManyFiles: "Demasiados archivos", videoFiles: "archivos de vídeo", youHaveExceededTheMaximum: "Has superado el límite máximo de {count} archivos. Elimina algunos antes de continuar." },
1899
+ "es-MX": { audioFiles: "archivos de audio", browseFiles: "Explorar archivos", dropArea: "Área de soltar", dropFiles: "Soltar archivo para cargar | Arrastrar archivos para cargar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", imageFiles: "archivos de imagen", noFilesUploaded: "No hay archivos cargados", tooManyFiles: "Demasiados archivos", videoFiles: "archivos de video", youHaveExceededTheMaximum: "Superaste el límite máximo de {count} archivos. Elimina algunos archivos antes de continuar." },
1900
+ "fr-FR": { audioFiles: "fichiers audio", browseFiles: "Parcourir les fichiers", dropArea: "Zone de dépôt", dropFiles: "Déposer un fichier à télécharger | Déposer des fichiers à télécharger", fileExceedsSizeLimit: "Le fichier dépasse la limite de taille", imageFiles: "fichiers image", noFilesUploaded: "Aucun fichier téléchargé", tooManyFiles: "Trop de fichiers", videoFiles: "fichiers vidéo", youHaveExceededTheMaximum: "Vous avez dépassé la limite maximale de {count} fichiers. Veuillez supprimer certains fichiers avant de continuer." },
1901
+ "it-IT": { audioFiles: "file audio", browseFiles: "Sfoglia i file", dropArea: "Area di scarico", dropFiles: "Trascina il file per caricarlo | Trascina i file per caricarli", fileExceedsSizeLimit: "Il file supera il limite di dimensione", imageFiles: "file di immagini", noFilesUploaded: "Nessun file caricato", tooManyFiles: "Troppi file", videoFiles: "file video", youHaveExceededTheMaximum: "Hai superato il limite massimo di {count} file. Rimuovi alcuni file prima di procedere." },
1882
1902
  "ja-JP": { audioFiles: "オーディオファイル", browseFiles: "ファイルを参照", dropArea: "ドロップエリア", dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード", fileExceedsSizeLimit: "ファイルがサイズ制限を超えています", imageFiles: "画像ファイル", noFilesUploaded: "ファイルはアップロードされていません", tooManyFiles: "ファイルが多すぎます", videoFiles: "ビデオファイル", youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。" },
1883
- "pt-BR": { audioFiles: "arquivos de áudio", browseFiles: "Procurar arquivos", dropArea: "Área de soltar", dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", imageFiles: "arquivos de imagem", noFilesUploaded: "Nenhum arquivo carregado", tooManyFiles: "Muitos arquivos", videoFiles: "arquivos de vídeo", youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir." }
1903
+ "pt-BR": { audioFiles: "arquivos de áudio", browseFiles: "Procurar arquivos", dropArea: "Área de soltar", dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", imageFiles: "arquivos de imagem", noFilesUploaded: "Nenhum arquivo carregado", tooManyFiles: "Arquivos demais", videoFiles: "arquivos de vídeo", youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir." },
1904
+ "zh-CN": { audioFiles: "音频文件", browseFiles: "浏览文件", dropArea: "拖放区", dropFiles: "拖放文件以上传 | 拖放文件以上传", fileExceedsSizeLimit: "文件大小超过限制", imageFiles: "图像文件", noFilesUploaded: "未上传文件", tooManyFiles: "文件过多", videoFiles: "视频文件", youHaveExceededTheMaximum: "已超出 {count} 个文件的上限数量。请在继续之前移除一些文件。" }
1884
1905
  };
1885
- function He(a) {
1886
- return a.includes("/") ? `.${Xa.getExtension(a).toUpperCase()}` : a.toUpperCase();
1906
+ function Aa(i) {
1907
+ return i.includes("/") ? `.${Ji.getExtension(i).toUpperCase()}` : i.toUpperCase();
1887
1908
  }
1888
- function Be(a) {
1889
- const { locale: i, t: p } = da({ messages: Ca });
1909
+ function Oa(i) {
1910
+ const { locale: e, t: l } = di({ messages: zi });
1890
1911
  return { supportedFileTypeList: f(() => {
1891
- const o = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
1892
- return a?.value ? o.format(
1893
- a.value.split(",").map((c) => {
1894
- switch (c.trim()) {
1912
+ const n = new Intl.ListFormat(e.value, { style: "short", type: "unit" });
1913
+ return i?.value ? n.format(
1914
+ i.value.split(",").map((r) => {
1915
+ switch (r.trim()) {
1895
1916
  case "audio/*":
1896
- return p("audioFiles");
1917
+ return l("audioFiles");
1897
1918
  case "image/*":
1898
- return p("imageFiles");
1919
+ return l("imageFiles");
1899
1920
  case "video/*":
1900
- return p("videoFiles");
1921
+ return l("videoFiles");
1901
1922
  default:
1902
- return He(c);
1923
+ return Aa(r);
1903
1924
  }
1904
1925
  })
1905
1926
  ) : null;
1906
1927
  }) };
1907
1928
  }
1908
- function Ae(a) {
1909
- return Xa.getType(a) ?? a;
1929
+ function Ba(i) {
1930
+ return Ji.getType(i) ?? i;
1910
1931
  }
1911
- function Ue({ maxCount: a, accept: i }) {
1912
- const p = ya({
1932
+ function Ua({ maxCount: i, accept: e }) {
1933
+ const l = wi({
1913
1934
  invalidTypes: !1,
1914
1935
  partiallyInvalidTypes: !1,
1915
1936
  maxCountOverflow: !1
1916
- }), n = ya({
1937
+ }), o = wi({
1917
1938
  dragging: !1,
1918
1939
  error: !1
1919
- }), o = f(() => i.value ? i.value.split(",").map((h) => Ae(h.trim().toLocaleLowerCase())) : void 0);
1920
- function c() {
1921
- n.dragging = !1, n.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
1940
+ }), n = f(() => e.value ? e.value.split(",").map((h) => Ba(h.trim().toLocaleLowerCase())) : void 0);
1941
+ function r() {
1942
+ o.dragging = !1, o.error = !1, l.invalidTypes = !1, l.partiallyInvalidTypes = !1, l.maxCountOverflow = !1;
1922
1943
  }
1923
- function l(m, h) {
1924
- if (n.dragging = !0, (!h.dataTransfer.types.includes("Files") || m > a.value) && (p.maxCountOverflow = !0, n.error = !0), !o.value)
1944
+ function p(m, h) {
1945
+ if (o.dragging = !0, (!h.dataTransfer.types.includes("Files") || m > i.value) && (l.maxCountOverflow = !0, o.error = !0), !n.value)
1925
1946
  return;
1926
- let z = 0;
1927
- for (const V of h.dataTransfer.items)
1928
- o.value.includes(V.type) && z++;
1929
- if (z === 0) {
1930
- n.error = !0, p.invalidTypes = !0;
1947
+ let E = 0;
1948
+ for (const H of h.dataTransfer.items)
1949
+ n.value.includes(H.type) && E++;
1950
+ if (E === 0) {
1951
+ o.error = !0, l.invalidTypes = !0;
1931
1952
  return;
1932
1953
  }
1933
- !p.invalidTypes && z !== h.dataTransfer.items.length && (n.error = !0, p.partiallyInvalidTypes = !0);
1954
+ !l.invalidTypes && E !== h.dataTransfer.items.length && (o.error = !0, l.partiallyInvalidTypes = !0);
1934
1955
  }
1935
1956
  return {
1936
- dragState: n,
1937
- dragErrors: p,
1938
- resetDragState: c,
1939
- onDragEnterValidations: l
1957
+ dragState: o,
1958
+ dragErrors: l,
1959
+ resetDragState: r,
1960
+ onDragEnterValidations: p
1940
1961
  };
1941
1962
  }
1942
- const Ze = ["id", "aria-required", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-labelledby", "tabindex"], We = {
1963
+ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"], Pa = ["aria-labelledby", "tabindex"], Wa = {
1943
1964
  class: "b-file-uploader__icon",
1944
1965
  "aria-hidden": "true"
1945
- }, Ge = { class: "b-file-uploader__files" }, Ye = {
1966
+ }, Ga = { class: "b-file-uploader__files" }, Ya = {
1946
1967
  model: { prop: "modelValue" },
1947
- i18n: { messages: Ca }
1948
- }, Je = /* @__PURE__ */ ca({
1949
- ...Ye,
1968
+ i18n: { messages: zi }
1969
+ }, Xa = /* @__PURE__ */ ri({
1970
+ ...Ya,
1950
1971
  __name: "file-uploader",
1951
1972
  props: {
1952
1973
  accept: { default: null },
@@ -1966,300 +1987,300 @@ const Ze = ["id", "aria-required", "accept", "disabled", "multiple"], Ne = ["id"
1966
1987
  tooltipText: { default: null }
1967
1988
  },
1968
1989
  emits: ["change", "input", "update:model-value", "error:upload"],
1969
- setup(a, { emit: i }) {
1970
- const { t: p, tc: n, n: o } = da({ messages: Ca }), c = i, l = a, { emitValue: m } = bi(c);
1971
- function h(e) {
1972
- return !!e && typeof e.length == "number" && typeof e.item == "function";
1990
+ setup(i, { emit: e }) {
1991
+ const { t: l, tc: o, n } = di({ messages: zi }), r = e, p = i, { emitValue: m } = be(r);
1992
+ function h(a) {
1993
+ return !!a && typeof a.length == "number" && typeof a.item == "function";
1973
1994
  }
1974
- Aa(() => {
1975
- h(l.modelValue) || hi(
1995
+ Bi(() => {
1996
+ h(p.modelValue) || he(
1976
1997
  "BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
1977
1998
  "Use FileList instead.",
1978
1999
  "2.0.0"
1979
2000
  );
1980
2001
  });
1981
- const { supportedFileTypeList: z } = Be(ha(l, "accept")), V = I("browse-button"), O = I("custom-text"), v = I("drop-files-text"), _ = I("comma-text"), B = I("file-uploader-restrictions"), q = I("field-label"), b = F(null), N = F([]), A = F(null), K = F(null), Q = I("input"), ta = I("input-error"), na = f(() => {
1982
- const e = l.label ? `${q} ${_}` : "", d = l.condensed ? "" : `${v} ${_}`, C = l.description ? `${O} ${_}` : "", L = `${B} ${_}`;
1983
- return `${e} ${d} ${C} ${L} ${V}`;
1984
- }), { dragState: oa, dragErrors: W, resetDragState: G, onDragEnterValidations: pa } = Ue({
1985
- accept: ha(l, "accept"),
1986
- maxCount: ha(l, "maxCount")
1987
- }), la = f(() => ({
1988
- condensed: l.condensed,
1989
- disabled: l.disabled,
2002
+ const { supportedFileTypeList: E } = Oa(hi(p, "accept")), H = R("browse-button"), V = R("custom-text"), v = R("drop-files-text"), F = R("comma-text"), O = R("file-uploader-restrictions"), q = R("field-label"), b = S(null), N = S([]), B = S(null), K = S(null), Q = R("input"), ti = R("input-error"), oi = f(() => {
2003
+ const a = p.label ? `${q} ${F}` : "", d = p.condensed ? "" : `${v} ${F}`, z = p.description ? `${V} ${F}` : "", I = `${O} ${F}`;
2004
+ return `${a} ${d} ${z} ${I} ${H}`;
2005
+ }), { dragState: ni, dragErrors: W, resetDragState: G, onDragEnterValidations: li } = Ua({
2006
+ accept: hi(p, "accept"),
2007
+ maxCount: hi(p, "maxCount")
2008
+ }), pi = f(() => ({
2009
+ condensed: p.condensed,
2010
+ disabled: p.disabled,
1990
2011
  maxCount: Y.value ? {
1991
- value: l.maxCount,
1992
- error: W.maxCountOverflow || $a.value
2012
+ value: p.maxCount,
2013
+ error: W.maxCountOverflow || Ci.value
1993
2014
  } : null,
1994
- maxDimensions: l.maxDimensions ? {
1995
- value: l.maxDimensions,
1996
- error: b.value?.some((e) => e.errors.includes(E.ERROR_DIMENSIONS))
2015
+ maxDimensions: p.maxDimensions ? {
2016
+ value: p.maxDimensions,
2017
+ error: b.value?.some((a) => a.errors.includes(T.ERROR_DIMENSIONS))
1997
2018
  } : null,
1998
- maxSize: l.maxSize ? {
1999
- value: l.maxSize,
2000
- error: b.value?.some((e) => e.errors.includes(E.ERROR_SIZE))
2019
+ maxSize: p.maxSize ? {
2020
+ value: p.maxSize,
2021
+ error: b.value?.some((a) => a.errors.includes(T.ERROR_SIZE))
2001
2022
  } : null,
2002
- supportedFileTypes: z.value ? {
2003
- value: z.value,
2004
- error: W.invalidTypes || W.partiallyInvalidTypes || b.value?.some((e) => e.errors.includes(E.ERROR_TYPE))
2023
+ supportedFileTypes: E.value ? {
2024
+ value: E.value,
2025
+ error: W.invalidTypes || W.partiallyInvalidTypes || b.value?.some((a) => a.errors.includes(T.ERROR_TYPE))
2005
2026
  } : null
2006
- })), aa = F(), ra = f(() => ({
2007
- [`b-file-uploader--${sa.DISABLED}`]: l.disabled,
2008
- [`b-file-uploader--${sa.DRAG_OVER}`]: oa.dragging,
2009
- [`b-file-uploader--${sa.ERROR}`]: ua.value,
2010
- "b-file-uploader--condensed": l.condensed
2011
- })), Y = f(() => l.maxCount > 1), ma = f(() => l.maxCount && b.value?.length >= l.maxCount || l.readonly), j = f(() => b.value?.some((e) => e.state === "loading")), H = (e) => (d) => {
2012
- N.value[e] = d;
2027
+ })), ii = S(), ci = f(() => ({
2028
+ [`b-file-uploader--${si.DISABLED}`]: p.disabled,
2029
+ [`b-file-uploader--${si.DRAG_OVER}`]: ni.dragging,
2030
+ [`b-file-uploader--${si.ERROR}`]: ui.value,
2031
+ "b-file-uploader--condensed": p.condensed
2032
+ })), Y = f(() => p.maxCount > 1), mi = f(() => p.maxCount && b.value?.length >= p.maxCount || p.readonly), $ = f(() => b.value?.some((a) => a.state === "loading")), A = (a) => (d) => {
2033
+ N.value[a] = d;
2013
2034
  };
2014
- function ia(e) {
2015
- if (e) {
2016
- pi(e), li(e);
2017
- const d = si(e);
2018
- c("change", d), m(d);
2035
+ function ei(a) {
2036
+ if (a) {
2037
+ le(a), pe(a);
2038
+ const d = se(a);
2039
+ r("change", d), m(d);
2019
2040
  } else
2020
- c("change", void 0), m(void 0);
2041
+ r("change", void 0), m(void 0);
2021
2042
  }
2022
- const ua = f(() => !!l.errorMessage || oa.error), $a = f(() => b.value?.length > l.maxCount), Ka = F(!1), Qa = f(() => b.value?.some((e) => e.state === "error"));
2023
- wa(Qa, (e) => {
2024
- j.value || c("error:upload", e);
2043
+ const ui = f(() => !!p.errorMessage || ni.error), Ci = f(() => b.value?.length > p.maxCount), Ki = S(!1), Qi = f(() => b.value?.some((a) => a.state === "error"));
2044
+ yi(Qi, (a) => {
2045
+ $.value || r("error:upload", a);
2025
2046
  });
2026
- async function va() {
2027
- if (await xi(), b.value.length === l.maxCount) {
2047
+ async function vi() {
2048
+ if (await xe(), b.value.length === p.maxCount) {
2028
2049
  N.value[0]?.focus();
2029
2050
  return;
2030
2051
  }
2031
2052
  K.value.focus();
2032
2053
  }
2033
- async function za(e) {
2034
- b.value = b.value.filter(({ id: d }) => d !== e.id), await va(), ia(b.value);
2054
+ async function Ei(a) {
2055
+ b.value = b.value.filter(({ id: d }) => d !== a.id), await vi(), ei(b.value);
2035
2056
  }
2036
- function fa(e) {
2037
- const d = ya({
2038
- id: I("file"),
2039
- data: e,
2057
+ function fi(a) {
2058
+ const d = wi({
2059
+ id: R("file"),
2060
+ data: a,
2040
2061
  errors: [],
2041
2062
  progress: null,
2042
2063
  state: M.LOADING,
2043
- type: qi(e)
2064
+ type: qe(a)
2044
2065
  });
2045
- return Hi(d, l.accept, l.maxDimensions), d;
2066
+ return Ae(d, p.accept, p.maxDimensions), d;
2046
2067
  }
2047
- function ai(e) {
2048
- b.value?.length === l.maxCount && e.preventDefault();
2068
+ function ie(a) {
2069
+ b.value?.length === p.maxCount && a.preventDefault();
2049
2070
  }
2050
- async function _a(e) {
2051
- if (l.maxCount === 1 && e.length > l.maxCount) {
2052
- xa(), G();
2071
+ async function Fi(a) {
2072
+ if (p.maxCount === 1 && a.length > p.maxCount) {
2073
+ xi(), G();
2053
2074
  return;
2054
2075
  }
2055
- Y.value ? b.value = [...b.value || [], ...Array.from(e).map((d) => fa(d))] : (b.value = [fa(e[0])], await va()), ia(b.value);
2076
+ Y.value ? b.value = [...b.value || [], ...Array.from(a).map((d) => fi(d))] : (b.value = [fi(a[0])], await vi()), ei(b.value);
2056
2077
  }
2057
- function ii(e) {
2058
- if (l.disabled)
2078
+ function ee(a) {
2079
+ if (p.disabled)
2059
2080
  return;
2060
- aa.value = e.target;
2061
- const d = (e.dataTransfer.items?.length ?? 0) + (b.value?.length ?? 0);
2062
- pa(d, e);
2081
+ ii.value = a.target;
2082
+ const d = (a.dataTransfer.items?.length ?? 0) + (b.value?.length ?? 0);
2083
+ li(d, a);
2063
2084
  }
2064
- function xa() {
2065
- aa.value = null;
2085
+ function xi() {
2086
+ ii.value = null;
2066
2087
  }
2067
- function ei(e) {
2068
- aa.value === e.target && (xa(), G());
2088
+ function ae(a) {
2089
+ ii.value === a.target && (xi(), G());
2069
2090
  }
2070
- function ti(e) {
2071
- e.preventDefault(), l.disabled && (e.dataTransfer.dropEffect = "none");
2091
+ function te(a) {
2092
+ a.preventDefault(), p.disabled && (a.dataTransfer.dropEffect = "none");
2072
2093
  }
2073
- async function ni(e) {
2074
- l.disabled || (!W.invalidTypes && e.dataTransfer.files?.length && _a(e.dataTransfer.files), xa(), G());
2094
+ async function oe(a) {
2095
+ p.disabled || (!W.invalidTypes && a.dataTransfer.files?.length && Fi(a.dataTransfer.files), xi(), G());
2075
2096
  }
2076
- async function oi() {
2077
- A.value.files?.length && _a(A.value.files), A.value.value = "", await va();
2097
+ async function ne() {
2098
+ B.value.files?.length && Fi(B.value.files), B.value.value = "", await vi();
2078
2099
  }
2079
- wa(
2080
- () => l.modelValue,
2081
- (e) => {
2082
- if (e && h(e)) {
2083
- const C = Array.from(e);
2084
- b.value = C.map((L) => fa(L));
2085
- } else !e && b.value && (b.value = null);
2100
+ yi(
2101
+ () => p.modelValue,
2102
+ (a) => {
2103
+ if (a && h(a)) {
2104
+ const z = Array.from(a);
2105
+ b.value = z.map((I) => fi(I));
2106
+ } else !a && b.value && (b.value = null);
2086
2107
  },
2087
2108
  { immediate: !0 }
2088
2109
  );
2089
- function pi(e) {
2090
- const d = l.maxCount && e.length <= l.maxCount;
2091
- Ka.value = !d;
2110
+ function le(a) {
2111
+ const d = p.maxCount && a.length <= p.maxCount;
2112
+ Ki.value = !d;
2092
2113
  }
2093
- function li(e) {
2094
- l.maxSize && e.forEach((d) => {
2095
- const C = d;
2096
- let L;
2097
- Array.isArray(l.maxSize) ? L = l.maxSize.find(
2098
- (ci) => Pa(C.data, ci.fileType)
2099
- )?.maxSize : L = l.maxSize, L && C.data.size > L && (C.state = M.ERROR, C.errors.includes(E.ERROR_SIZE) || C.errors.push(E.ERROR_SIZE));
2114
+ function pe(a) {
2115
+ p.maxSize && a.forEach((d) => {
2116
+ const z = d;
2117
+ let I;
2118
+ Array.isArray(p.maxSize) ? I = p.maxSize.find(
2119
+ (re) => Pi(z.data, re.fileType)
2120
+ )?.maxSize : I = p.maxSize, I && z.data.size > I && (z.state = M.ERROR, z.errors.includes(T.ERROR_SIZE) || z.errors.push(T.ERROR_SIZE));
2100
2121
  });
2101
2122
  }
2102
- function si(e) {
2103
- const d = e.filter(
2104
- ({ errors: C }) => !C.includes(E.ERROR_LOAD) && !C.includes(E.ERROR_SIZE)
2123
+ function se(a) {
2124
+ const d = a.filter(
2125
+ ({ errors: z }) => !z.includes(T.ERROR_LOAD) && !z.includes(T.ERROR_SIZE)
2105
2126
  );
2106
2127
  if (d.length) {
2107
- const C = new DataTransfer();
2108
- return d.forEach(({ data: L, id: ga }) => {
2109
- C.items.add(L);
2110
- }), C.files;
2128
+ const z = new DataTransfer();
2129
+ return d.forEach(({ data: I, id: gi }) => {
2130
+ z.items.add(I);
2131
+ }), z.files;
2111
2132
  }
2112
2133
  }
2113
- return (e, d) => (s(), g("div", {
2114
- class: Z(["b-file-uploader", ra.value])
2134
+ return (a, d) => (s(), g("div", {
2135
+ class: Z(["b-file-uploader", ci.value])
2115
2136
  }, [
2116
- U(t(ji), {
2137
+ U(t($e), {
2117
2138
  id: t(q),
2118
2139
  class: "b-file-uploader__label",
2119
2140
  for: t(Q),
2120
- label: e.label,
2121
- optional: e.optional,
2122
- required: e.required,
2123
- "tooltip-text": e.tooltipText
2141
+ label: a.label,
2142
+ optional: a.optional,
2143
+ required: a.required,
2144
+ "tooltip-text": a.tooltipText
2124
2145
  }, null, 8, ["id", "for", "label", "optional", "required", "tooltip-text"]),
2125
- r("input", {
2146
+ c("input", {
2126
2147
  id: t(Q),
2127
2148
  ref_key: "inputRef",
2128
- ref: A,
2129
- "aria-required": e.required,
2149
+ ref: B,
2150
+ "aria-required": a.required,
2130
2151
  type: "file",
2131
2152
  tabindex: "-1",
2132
2153
  "data-testid": "input",
2133
2154
  class: "b-file-uploader__input",
2134
- accept: e.accept,
2135
- disabled: e.disabled,
2155
+ accept: a.accept,
2156
+ disabled: a.disabled,
2136
2157
  multiple: Y.value,
2137
- onChange: oi,
2138
- onClick: ai,
2139
- onInvalid: d[0] || (d[0] = J(() => {
2158
+ onChange: ne,
2159
+ onClick: ie,
2160
+ onInvalid: d[0] || (d[0] = X(() => {
2140
2161
  }, ["prevent"]))
2141
- }, null, 40, Ze),
2142
- r("span", {
2143
- id: t(_),
2162
+ }, null, 40, Za),
2163
+ c("span", {
2164
+ id: t(F),
2144
2165
  "aria-hidden": "true",
2145
2166
  class: "b-file-uploader__invisible-comma"
2146
- }, " , ", 8, Ne),
2147
- ma.value ? u("", !0) : (s(), g("div", {
2167
+ }, " , ", 8, Na),
2168
+ mi.value ? u("", !0) : (s(), g("div", {
2148
2169
  key: 0,
2149
2170
  ref_key: "dropAreaRef",
2150
2171
  ref: K,
2151
- "aria-labelledby": na.value,
2172
+ "aria-labelledby": oi.value,
2152
2173
  class: "b-file-uploader__area",
2153
2174
  role: "button",
2154
- tabindex: e.disabled ? -1 : 0,
2155
- onClick: d[1] || (d[1] = (C) => A.value.click()),
2156
- onDragenter: J(ii, ["stop", "prevent"]),
2157
- onDragleave: J(ei, ["stop", "prevent"]),
2158
- onDrop: J(ni, ["stop", "prevent"]),
2159
- onDragover: ti,
2175
+ tabindex: a.disabled ? -1 : 0,
2176
+ onClick: d[1] || (d[1] = (z) => B.value.click()),
2177
+ onDragenter: X(ee, ["stop", "prevent"]),
2178
+ onDragleave: X(ae, ["stop", "prevent"]),
2179
+ onDrop: X(oe, ["stop", "prevent"]),
2180
+ onDragover: te,
2160
2181
  onKeydownCapture: [
2161
- d[2] || (d[2] = Ea(J((C) => A.value.click(), ["prevent"]), ["enter"])),
2162
- d[3] || (d[3] = Ea(J((C) => A.value.click(), ["prevent"]), ["space"]))
2182
+ d[2] || (d[2] = Ti(X((z) => B.value.click(), ["prevent"]), ["enter"])),
2183
+ d[3] || (d[3] = Ti(X((z) => B.value.click(), ["prevent"]), ["space"]))
2163
2184
  ]
2164
2185
  }, [
2165
- r("div", We, [
2166
- ua.value ? (s(), y(t(Za), { key: 0 })) : (s(), y(t(Si), { key: 1 }))
2186
+ c("div", Wa, [
2187
+ ui.value ? (s(), w(t(Zi), { key: 0 })) : (s(), w(t(je), { key: 1 }))
2167
2188
  ]),
2168
- e.condensed ? u("", !0) : (s(), g(Ra, { key: 0 }, [
2169
- U(t(R), {
2189
+ a.condensed ? u("", !0) : (s(), g(_i, { key: 0 }, [
2190
+ U(t(_), {
2170
2191
  id: t(v),
2171
2192
  el: "span",
2172
2193
  strongest: "",
2173
2194
  class: "b-file-uploader__title"
2174
2195
  }, {
2175
- default: w(() => [
2176
- $(x(t(n)("dropFiles", e.maxCount)), 1)
2196
+ default: y(() => [
2197
+ C(x(t(o)("dropFiles", a.maxCount)), 1)
2177
2198
  ]),
2178
2199
  _: 1
2179
2200
  }, 8, ["id"]),
2180
- e.description ? (s(), y(t(R), {
2201
+ a.description ? (s(), w(t(_), {
2181
2202
  key: 0,
2182
- id: t(O),
2203
+ id: t(V),
2183
2204
  el: "span",
2184
2205
  class: "b-file-uploader__description"
2185
2206
  }, {
2186
- default: w(() => [
2187
- $(x(e.description), 1)
2207
+ default: y(() => [
2208
+ C(x(a.description), 1)
2188
2209
  ]),
2189
2210
  _: 1
2190
2211
  }, 8, ["id"])) : u("", !0),
2191
- U(t(Ba), D(la.value, { id: t(B) }), null, 16, ["id"])
2212
+ U(t(Oi), D(pi.value, { id: t(O) }), null, 16, ["id"])
2192
2213
  ], 64)),
2193
- U(t(R), {
2194
- id: t(V),
2214
+ U(t(_), {
2215
+ id: t(H),
2195
2216
  stronger: "",
2196
2217
  class: "b-file-uploader__button"
2197
2218
  }, {
2198
- default: w(() => [
2199
- $(x(t(p)("browseFiles")), 1)
2219
+ default: y(() => [
2220
+ C(x(t(l)("browseFiles")), 1)
2200
2221
  ]),
2201
2222
  _: 1
2202
2223
  }, 8, ["id"])
2203
- ], 40, Pe)),
2204
- ua.value && e.errorMessage ? (s(), y(t(Ei), {
2224
+ ], 40, Pa)),
2225
+ ui.value && a.errorMessage ? (s(), w(t(Te), {
2205
2226
  key: 1,
2206
- id: t(ta),
2207
- "error-message": e.errorMessage,
2227
+ id: t(ti),
2228
+ "error-message": a.errorMessage,
2208
2229
  class: "b-file-uploader__error-message"
2209
2230
  }, null, 8, ["id", "error-message"])) : u("", !0),
2210
- e.condensed && e.description ? (s(), y(t(R), {
2231
+ a.condensed && a.description ? (s(), w(t(_), {
2211
2232
  key: 2,
2212
- id: t(O),
2233
+ id: t(V),
2213
2234
  "aria-hidden": "true",
2214
2235
  el: "span",
2215
2236
  class: "b-file-uploader__description b-file-uploader__description--condensed"
2216
2237
  }, {
2217
- default: w(() => [
2218
- $(x(e.description), 1)
2238
+ default: y(() => [
2239
+ C(x(a.description), 1)
2219
2240
  ]),
2220
2241
  _: 1
2221
2242
  }, 8, ["id"])) : u("", !0),
2222
- e.condensed ? (s(), y(t(Ba), D({ key: 3 }, la.value, { id: t(B) }), null, 16, ["id"])) : u("", !0),
2223
- $a.value ? (s(), y(t(gi), {
2243
+ a.condensed ? (s(), w(t(Oi), D({ key: 3 }, pi.value, { id: t(O) }), null, 16, ["id"])) : u("", !0),
2244
+ Ci.value ? (s(), w(t(ge), {
2224
2245
  key: 4,
2225
2246
  type: "critical"
2226
2247
  }, {
2227
- description: w(() => [
2228
- $(x(t(p)("youHaveExceededTheMaximum", { count: t(o)(l.maxCount) })), 1)
2248
+ description: y(() => [
2249
+ C(x(t(l)("youHaveExceededTheMaximum", { count: t(n)(p.maxCount) })), 1)
2229
2250
  ]),
2230
- default: w(() => [
2231
- $(x(t(p)("tooManyFiles")) + " ", 1)
2251
+ default: y(() => [
2252
+ C(x(t(l)("tooManyFiles")) + " ", 1)
2232
2253
  ]),
2233
2254
  _: 1
2234
2255
  })) : u("", !0),
2235
- Ua(r("div", Ge, [
2236
- (s(!0), g(Ra, null, vi(b.value, (C, L) => (s(), y(t(De), {
2256
+ Ui(c("div", Ga, [
2257
+ (s(!0), g(_i, null, ve(b.value, (z, I) => (s(), w(t(Da), {
2237
2258
  ref_for: !0,
2238
- ref: H(L),
2239
- key: C.id,
2240
- file: C,
2241
- "supported-file-types": t(z),
2242
- readonly: e.readonly,
2243
- onCancel: (ga) => za(C),
2244
- onRemove: (ga) => za(C)
2259
+ ref: A(I),
2260
+ key: z.id,
2261
+ file: z,
2262
+ "supported-file-types": t(E),
2263
+ readonly: a.readonly,
2264
+ onCancel: (gi) => Ei(z),
2265
+ onRemove: (gi) => Ei(z)
2245
2266
  }, null, 8, ["file", "supported-file-types", "readonly", "onCancel", "onRemove"]))), 128))
2246
2267
  ], 512), [
2247
- [fi, b.value?.length]
2268
+ [fe, b.value?.length]
2248
2269
  ]),
2249
- !b.value?.length && e.readonly ? (s(), y(t(R), {
2270
+ !b.value?.length && a.readonly ? (s(), w(t(_), {
2250
2271
  key: 5,
2251
2272
  class: "b-file-uploader__no-files",
2252
2273
  wide: ""
2253
2274
  }, {
2254
- default: w(() => [
2255
- $(x(t(p)("noFilesUploaded")), 1)
2275
+ default: y(() => [
2276
+ C(x(t(l)("noFilesUploaded")), 1)
2256
2277
  ]),
2257
2278
  _: 1
2258
2279
  })) : u("", !0)
2259
2280
  ], 2));
2260
2281
  }
2261
- }), xt = /* @__PURE__ */ S(Je, [["__scopeId", "data-v-9e27903c"]]);
2282
+ }), xt = /* @__PURE__ */ j(Xa, [["__scopeId", "data-v-9e27903c"]]);
2262
2283
  export {
2263
2284
  xt as f
2264
2285
  };
2265
- //# sourceMappingURL=file-uploader.Bfd1uUMe.js.map
2286
+ //# sourceMappingURL=file-uploader.BUvDU_cn.js.map