@adyen/bento-vue3 1.52.0 → 1.53.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 (202) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +474 -75
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/checkbox.css +1 -1
  9. package/dist/assets/dashed-underline.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/dropdown.css +1 -1
  13. package/dist/assets/file-uploader.css +1 -1
  14. package/dist/assets/filter-bar.css +1 -1
  15. package/dist/assets/header-with-views.css +1 -0
  16. package/dist/assets/input-field-password.css +1 -1
  17. package/dist/assets/inspector.css +1 -1
  18. package/dist/assets/menu.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/popover.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/assets/summary-grid-item-custom.css +1 -1
  23. package/dist/assets/use-cached-selected-values.css +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chunks/{action-bar.eo5EXYmg.js → action-bar.PIz6tShf.js} +4 -4
  26. package/dist/chunks/{action-bar.eo5EXYmg.js.map → action-bar.PIz6tShf.js.map} +1 -1
  27. package/dist/chunks/{base-modal.BlC6TZNz.js → base-modal.D4INiJGX.js} +3 -3
  28. package/dist/chunks/{base-modal.BlC6TZNz.js.map → base-modal.D4INiJGX.js.map} +1 -1
  29. package/dist/chunks/bin.CA6UQCNZ.js +37 -0
  30. package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
  31. package/dist/chunks/{button-actions-with-menu.DQaq1bkf.js → button-actions-with-menu.DFD7gbdT.js} +4 -4
  32. package/dist/chunks/{button-actions-with-menu.DQaq1bkf.js.map → button-actions-with-menu.DFD7gbdT.js.map} +1 -1
  33. package/dist/chunks/{calendar.D2X834TU.js → calendar.DKHNrb9_.js} +2 -2
  34. package/dist/chunks/{calendar.D2X834TU.js.map → calendar.DKHNrb9_.js.map} +1 -1
  35. package/dist/chunks/{checkbox-group.BVJfN48k.js → checkbox-group.X2fi2jkS.js} +4 -4
  36. package/dist/chunks/{checkbox-group.BVJfN48k.js.map → checkbox-group.X2fi2jkS.js.map} +1 -1
  37. package/dist/chunks/{checkbox.erdZ58Kk.js → checkbox.CXZQtFhM.js} +81 -74
  38. package/dist/chunks/checkbox.CXZQtFhM.js.map +1 -0
  39. package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
  40. package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
  41. package/dist/chunks/{code-snippet.Bb4_r0C8.js → code-snippet.CcdsPxT7.js} +5 -5
  42. package/dist/chunks/{code-snippet.Bb4_r0C8.js.map → code-snippet.CcdsPxT7.js.map} +1 -1
  43. package/dist/chunks/{controls-group.BaDhGB9H.js → controls-group.ClMNznTz.js} +2 -2
  44. package/dist/chunks/{controls-group.BaDhGB9H.js.map → controls-group.ClMNznTz.js.map} +1 -1
  45. package/dist/chunks/{copy.gmSTAqHY.js → copy.BYG9aoNO.js} +2 -2
  46. package/dist/chunks/{copy.gmSTAqHY.js.map → copy.BYG9aoNO.js.map} +1 -1
  47. package/dist/chunks/{dashboard-section.MAHmbUDG.js → dashboard-section.Dz9GpOvy.js} +3 -3
  48. package/dist/chunks/{dashboard-section.MAHmbUDG.js.map → dashboard-section.Dz9GpOvy.js.map} +1 -1
  49. package/dist/chunks/{dashed-underline.DY8xR9GH.js → dashed-underline.BuCIjMch.js} +11 -11
  50. package/dist/chunks/{dashed-underline.DY8xR9GH.js.map → dashed-underline.BuCIjMch.js.map} +1 -1
  51. package/dist/chunks/{data-grid-template.Dievz913.js → data-grid-template.B4jxtwoW.js} +2 -2
  52. package/dist/chunks/{data-grid-template.Dievz913.js.map → data-grid-template.B4jxtwoW.js.map} +1 -1
  53. package/dist/chunks/{data-grid.KZqjmRvk.js → data-grid.CLu8mvil.js} +29 -17
  54. package/dist/chunks/data-grid.CLu8mvil.js.map +1 -0
  55. package/dist/chunks/{date-picker.BWJYkSmo.js → date-picker.CA2i6QxD.js} +17 -17
  56. package/dist/chunks/{date-picker.BWJYkSmo.js.map → date-picker.CA2i6QxD.js.map} +1 -1
  57. package/dist/chunks/{date-range-picker.1Vbf9Zk8.js → date-range-picker.DVQ-j-JX.js} +25 -25
  58. package/dist/chunks/{date-range-picker.1Vbf9Zk8.js.map → date-range-picker.DVQ-j-JX.js.map} +1 -1
  59. package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
  60. package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
  61. package/dist/chunks/{dropdown-tag.C9nM0YHC.js → dropdown-tag.DFWV7Zj_.js} +3 -3
  62. package/dist/chunks/{dropdown-tag.C9nM0YHC.js.map → dropdown-tag.DFWV7Zj_.js.map} +1 -1
  63. package/dist/chunks/{dropdown.qw5oXFYs.js → dropdown.RVt9T6j5.js} +115 -105
  64. package/dist/chunks/dropdown.RVt9T6j5.js.map +1 -0
  65. package/dist/chunks/{error-message.DAjisbU1.js → error-message.BQ5MlnLg.js} +2 -2
  66. package/dist/chunks/{error-message.DAjisbU1.js.map → error-message.BQ5MlnLg.js.map} +1 -1
  67. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  68. package/dist/chunks/{file-uploader.BLJpDgAZ.js → file-uploader.DJLGEmtF.js} +464 -475
  69. package/dist/chunks/file-uploader.DJLGEmtF.js.map +1 -0
  70. package/dist/chunks/{filter-bar.DYrXBQDF.js → filter-bar.GGHRoo6O.js} +492 -486
  71. package/dist/chunks/filter-bar.GGHRoo6O.js.map +1 -0
  72. package/dist/chunks/{focus-trap.DMgm-9f7.js → focus-trap.D-HSKa_Q.js} +2 -2
  73. package/dist/chunks/{focus-trap.DMgm-9f7.js.map → focus-trap.D-HSKa_Q.js.map} +1 -1
  74. package/dist/chunks/header-with-views.BkcFu7QW.js +2354 -0
  75. package/dist/chunks/header-with-views.BkcFu7QW.js.map +1 -0
  76. package/dist/chunks/{header.BASKzNwu.js → header.CyTcPWF4.js} +3 -3
  77. package/dist/chunks/{header.BASKzNwu.js.map → header.CyTcPWF4.js.map} +1 -1
  78. package/dist/chunks/index.C5sL_d0I.js +386 -0
  79. package/dist/chunks/{index.CMGT-6mh.js.map → index.C5sL_d0I.js.map} +1 -1
  80. package/dist/chunks/{info-icon-with-popover.BJccyOFx.js → info-icon-with-popover.DgZh2mnN.js} +2 -2
  81. package/dist/chunks/{info-icon-with-popover.BJccyOFx.js.map → info-icon-with-popover.DgZh2mnN.js.map} +1 -1
  82. package/dist/chunks/{info-icon.L8AexnZg.js → info-icon.DxOAiUg4.js} +2 -2
  83. package/dist/chunks/{info-icon.L8AexnZg.js.map → info-icon.DxOAiUg4.js.map} +1 -1
  84. package/dist/chunks/{input-field-password.CZNUHo6s.js → input-field-password.BSJMbPHf.js} +94 -90
  85. package/dist/chunks/input-field-password.BSJMbPHf.js.map +1 -0
  86. package/dist/chunks/{input-field-phone-number.D1zlBh3R.js → input-field-phone-number.BtRMkC84.js} +3 -3
  87. package/dist/chunks/{input-field-phone-number.D1zlBh3R.js.map → input-field-phone-number.BtRMkC84.js.map} +1 -1
  88. package/dist/chunks/{input-field.DqMdqM2u.js → input-field.CRlXtS3z.js} +3 -3
  89. package/dist/chunks/{input-field.DqMdqM2u.js.map → input-field.CRlXtS3z.js.map} +1 -1
  90. package/dist/chunks/{inspector.types.Dwt3V80X.js → inspector.types.s0va--Nn.js} +3 -3
  91. package/dist/chunks/{inspector.types.Dwt3V80X.js.map → inspector.types.s0va--Nn.js.map} +1 -1
  92. package/dist/chunks/{layout-row.Drm_y8e3.js → layout-row.CwwbWO7s.js} +2 -2
  93. package/dist/chunks/{layout-row.Drm_y8e3.js.map → layout-row.CwwbWO7s.js.map} +1 -1
  94. package/dist/chunks/{listbox-option-tag.YSvtcy4P.js → listbox-option-tag.2k0hRv0z.js} +2 -2
  95. package/dist/chunks/{listbox-option-tag.YSvtcy4P.js.map → listbox-option-tag.2k0hRv0z.js.map} +1 -1
  96. package/dist/chunks/{menu.DfzP2nRU.js → menu.DBRBVdsd.js} +106 -105
  97. package/dist/chunks/menu.DBRBVdsd.js.map +1 -0
  98. package/dist/chunks/{modal-fullscreen.T1x_vroe.js → modal-fullscreen.POY-6qYC.js} +2 -2
  99. package/dist/chunks/{modal-fullscreen.T1x_vroe.js.map → modal-fullscreen.POY-6qYC.js.map} +1 -1
  100. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js} +2 -2
  101. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js.map → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js.map} +1 -1
  102. package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
  103. package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
  104. package/dist/chunks/{pagination.Bt8DNme-.js → pagination.TWtayPVy.js} +2 -2
  105. package/dist/chunks/{pagination.Bt8DNme-.js.map → pagination.TWtayPVy.js.map} +1 -1
  106. package/dist/chunks/{popover.COzLcAET.js → popover.BBnUL5Y_.js} +2 -2
  107. package/dist/chunks/{popover.COzLcAET.js.map → popover.BBnUL5Y_.js.map} +1 -1
  108. package/dist/chunks/{popper-container.CEtaux25.js → popper-container.Be3h7X17.js} +2 -2
  109. package/dist/chunks/{popper-container.CEtaux25.js.map → popper-container.Be3h7X17.js.map} +1 -1
  110. package/dist/chunks/{promo-banner.BCpw2tDD.js → promo-banner.BdaUFMsl.js} +2 -2
  111. package/dist/chunks/{promo-banner.BCpw2tDD.js.map → promo-banner.BdaUFMsl.js.map} +1 -1
  112. package/dist/chunks/{radio-group.rxg-4rF_.js → radio-group.BUazlUAi.js} +4 -4
  113. package/dist/chunks/{radio-group.rxg-4rF_.js.map → radio-group.BUazlUAi.js.map} +1 -1
  114. package/dist/chunks/{search-bar.DlihXfPt.js → search-bar.21CWuOHb.js} +3 -3
  115. package/dist/chunks/{search-bar.DlihXfPt.js.map → search-bar.21CWuOHb.js.map} +1 -1
  116. package/dist/chunks/{secondary-nav.D2loVonk.js → secondary-nav.CUQi4Ybt.js} +3 -3
  117. package/dist/chunks/{secondary-nav.D2loVonk.js.map → secondary-nav.CUQi4Ybt.js.map} +1 -1
  118. package/dist/chunks/{segmented-control.Wn-miTIl.js → segmented-control.BZJ9DzRF.js} +2 -2
  119. package/dist/chunks/{segmented-control.Wn-miTIl.js.map → segmented-control.BZJ9DzRF.js.map} +1 -1
  120. package/dist/chunks/{selection-card-group.CtQaeZFM.js → selection-card-group.Bdrx1b6M.js} +4 -4
  121. package/dist/chunks/{selection-card-group.CtQaeZFM.js.map → selection-card-group.Bdrx1b6M.js.map} +1 -1
  122. package/dist/chunks/{sidepanel.CjaHQEin.js → sidepanel.D_bGUcyi.js} +3 -3
  123. package/dist/chunks/{sidepanel.CjaHQEin.js.map → sidepanel.D_bGUcyi.js.map} +1 -1
  124. package/dist/chunks/{structured-list-item.DAwADFpI.js → structured-list-item.r1jYiX6Y.js} +4 -4
  125. package/dist/chunks/{structured-list-item.DAwADFpI.js.map → structured-list-item.r1jYiX6Y.js.map} +1 -1
  126. package/dist/chunks/{summary-grid-item-custom.DTCzOBBy.js → summary-grid-item-custom.ACP0RH0N.js} +299 -198
  127. package/dist/chunks/summary-grid-item-custom.ACP0RH0N.js.map +1 -0
  128. package/dist/chunks/{tag.B1hW92hG.js → tag.DVkBzXMx.js} +2 -2
  129. package/dist/chunks/{tag.B1hW92hG.js.map → tag.DVkBzXMx.js.map} +1 -1
  130. package/dist/chunks/{teleport.B1NhF5-O.js → teleport.DfTpEQBR.js} +2 -2
  131. package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.DfTpEQBR.js.map} +1 -1
  132. package/dist/chunks/{textarea.DMA29yQA.js → textarea.C8R71Q4l.js} +2 -2
  133. package/dist/chunks/{textarea.DMA29yQA.js.map → textarea.C8R71Q4l.js.map} +1 -1
  134. package/dist/chunks/{timeline-item.kWg3dTy1.js → timeline-item.DBeAlt3N.js} +4 -4
  135. package/dist/chunks/{timeline-item.kWg3dTy1.js.map → timeline-item.DBeAlt3N.js.map} +1 -1
  136. package/dist/chunks/{tooltip.Y730-n-n.js → tooltip.Cbs_YIap.js} +2 -2
  137. package/dist/chunks/{tooltip.Y730-n-n.js.map → tooltip.Cbs_YIap.js.map} +1 -1
  138. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js → tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js} +4 -4
  139. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js.map → tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js.map} +1 -1
  140. package/dist/chunks/{use-cached-selected-values.DDP7LJoI.js → use-cached-selected-values.Chb18cq_.js} +145 -136
  141. package/dist/chunks/{use-cached-selected-values.DDP7LJoI.js.map → use-cached-selected-values.Chb18cq_.js.map} +1 -1
  142. package/dist/click-outside.js +1 -1
  143. package/dist/code-snippet.js +1 -1
  144. package/dist/dashboard-template.js +1 -1
  145. package/dist/dashed-underline.js +2 -2
  146. package/dist/data-grid-template.js +1 -1
  147. package/dist/data-grid.js +1 -1
  148. package/dist/date-picker.js +2 -2
  149. package/dist/date-range-picker.js +2 -2
  150. package/dist/dropdown.js +3 -3
  151. package/dist/file-uploader.js +1 -1
  152. package/dist/filter-bar.js +1 -1
  153. package/dist/focus-trap.js +1 -1
  154. package/dist/header-with-views.js +5 -0
  155. package/dist/header-with-views.js.map +1 -0
  156. package/dist/header.js +1 -1
  157. package/dist/index.js +196 -194
  158. package/dist/index.js.map +1 -1
  159. package/dist/info-icon.js +1 -1
  160. package/dist/input-field-password.js +1 -1
  161. package/dist/input-field-phone-number.js +1 -1
  162. package/dist/input-field.js +1 -1
  163. package/dist/inspector.js +1 -1
  164. package/dist/internal.js +10 -10
  165. package/dist/layout.js +1 -1
  166. package/dist/menu.js +1 -1
  167. package/dist/modal-fullscreen.js +1 -1
  168. package/dist/modal.js +2 -2
  169. package/dist/pagination.js +1 -1
  170. package/dist/popover.js +1 -1
  171. package/dist/popper-container.js +1 -1
  172. package/dist/promo-banner.js +1 -1
  173. package/dist/radio-group.js +1 -1
  174. package/dist/search-bar.js +2 -2
  175. package/dist/secondary-nav.js +1 -1
  176. package/dist/segmented-control.js +1 -1
  177. package/dist/selection-card.js +1 -1
  178. package/dist/sidepanel.js +1 -1
  179. package/dist/structured-list.js +1 -1
  180. package/dist/styles/bento-dark.css +47 -1
  181. package/dist/styles/bento-light.css +47 -1
  182. package/dist/styles/bento.css +47 -1
  183. package/dist/styles/legacy.css +47 -1
  184. package/dist/styles/styleguide.css +47 -1
  185. package/dist/summary-grid.js +1 -1
  186. package/dist/tag.js +1 -1
  187. package/dist/textarea.js +1 -1
  188. package/dist/timeline.js +1 -1
  189. package/dist/tutorial.js +1 -1
  190. package/dist/use-form-v4.js +8300 -0
  191. package/dist/use-form-v4.js.map +1 -0
  192. package/dist/web-types.json +1 -1
  193. package/package.json +7 -6
  194. package/dist/chunks/checkbox.erdZ58Kk.js.map +0 -1
  195. package/dist/chunks/data-grid.KZqjmRvk.js.map +0 -1
  196. package/dist/chunks/dropdown.qw5oXFYs.js.map +0 -1
  197. package/dist/chunks/file-uploader.BLJpDgAZ.js.map +0 -1
  198. package/dist/chunks/filter-bar.DYrXBQDF.js.map +0 -1
  199. package/dist/chunks/index.CMGT-6mh.js +0 -369
  200. package/dist/chunks/input-field-password.CZNUHo6s.js.map +0 -1
  201. package/dist/chunks/menu.DfzP2nRU.js.map +0 -1
  202. package/dist/chunks/summary-grid-item-custom.DTCzOBBy.js.map +0 -1
@@ -1,37 +1,38 @@
1
- import { createElementBlock as v, openBlock as s, mergeProps as L, createCommentVNode as f, createElementVNode as m, toDisplayString as u, defineComponent as aa, createBlock as b, unref as o, Transition as Ga, withCtx as g, renderSlot as ra, TransitionGroup as Ya, ref as T, onUnmounted as Xa, onMounted as Ja, computed as h, watch as la, normalizeClass as S, createVNode as V, resolveDynamicComponent as Ka, withDirectives as Ea, createTextVNode as $, reactive as sa, toRef as pa, withKeys as ma, withModifiers as U, Fragment as ua, normalizeProps as va, guardReactiveProps as Qa, renderList as ai, vShow as ii } from "vue";
1
+ import { createElementBlock as x, openBlock as s, mergeProps as V, createCommentVNode as f, createElementVNode as m, toDisplayString as v, defineComponent as Q, createBlock as w, unref as o, Transition as Xa, withCtx as b, renderSlot as ma, TransitionGroup as Ja, ref as D, onUnmounted as Ka, onMounted as Ea, computed as g, watch as X, normalizeClass as T, createVNode as S, resolveDynamicComponent as Qa, withDirectives as Ra, createTextVNode as C, reactive as ca, toRef as la, withKeys as ua, withModifiers as N, Fragment as va, normalizeProps as fa, guardReactiveProps as ai, renderList as ii, vShow as ei } from "vue";
2
2
  /* empty css */
3
- import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
- import { W as Ra } from "./warning-filled.DmHh0nYG.js";
5
- import { B as ei } from "./alert.DEf0borp.js";
6
- import { B as K } from "./button.6HMG0xEY.js";
7
- import { B as z } from "./typography.DN5eC5ch.js";
8
- import { u as ia } from "./i18n.D9azDLPe.js";
9
- import { g as oa } from "./generate-uid.NJ8tVoha.js";
10
- import { i as La } from "./index.CWuzEfiV.js";
11
- import { C as ti } from "./checkmark-circle-fill.jicbqe7k.js";
12
- import { C as ni } from "./cross.CbLEjiVy.js";
13
- import { R as pi } from "./refresh.C20ROVDS.js";
3
+ import { _ as E } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import { W as La } from "./warning-filled.DmHh0nYG.js";
5
+ import { B as ti } from "./alert.DEf0borp.js";
6
+ import { B as J } from "./button.6HMG0xEY.js";
7
+ import { B as z, d as ni } from "./typography.DN5eC5ch.js";
8
+ import { u as aa } from "./i18n.D9azDLPe.js";
9
+ import { g as sa } from "./generate-uid.NJ8tVoha.js";
10
+ import { i as Ia } from "./index.CWuzEfiV.js";
11
+ import { B as pi } from "./bin.CA6UQCNZ.js";
12
+ import { C as oi } from "./checkmark-circle-fill.jicbqe7k.js";
13
+ import { C as li } from "./cross.CbLEjiVy.js";
14
+ import { R as si } from "./refresh.C20ROVDS.js";
14
15
  import "./events.FNmSWp_P.js";
15
- import { B as oi } from "./tooltip.Y730-n-n.js";
16
- import { B as li } from "./link.D3Fq5tt_.js";
17
- import { B as si } from "./loading-indicator.DEepb9Wl.js";
18
- import { F as ci, E as di } from "./error-message.DAjisbU1.js";
16
+ import { B as ci } from "./tooltip.Cbs_YIap.js";
17
+ import { B as di } from "./link.D3Fq5tt_.js";
18
+ import { B as ri } from "./loading-indicator.DEepb9Wl.js";
19
+ import { F as mi, E as ui } from "./error-message.BQ5MlnLg.js";
19
20
  import "../assets/file-uploader.css";
20
- let fa = 0;
21
- const ri = {
21
+ let xa = 0;
22
+ const vi = {
22
23
  beforeCreate() {
23
- this.uuid = fa.toString(), fa += 1;
24
+ this.uuid = xa.toString(), xa += 1;
24
25
  }
25
- }, mi = { key: 0 };
26
- function ui(a, i, p, e, l, n) {
27
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
26
+ }, fi = { key: 0 };
27
+ function xi(a, i, p, t, l, n) {
28
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
28
29
  class: "ui-assets-icons-16",
29
30
  xmlns: "http://www.w3.org/2000/svg",
30
31
  width: "16",
31
32
  height: "16",
32
33
  fill: "none"
33
34
  }), [
34
- a.$attrs["svg-title"] ? (s(), v("title", mi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
35
+ a.$attrs["svg-title"] ? (s(), x("title", fi, v(a.$attrs["svg-title"]), 1)) : f("", !0),
35
36
  i[0] || (i[0] = m("path", {
36
37
  fill: "#00112C",
37
38
  d: "M8.00011 0.939453L12.0608 5.00011L11.0001 6.06077L8.75 3.81066V11.75H7.25V3.81089L5.00011 6.06077L3.93945 5.00011L8.00011 0.939453Z"
@@ -42,75 +43,45 @@ function ui(a, i, p, e, l, n) {
42
43
  }, null, -1))
43
44
  ], 16);
44
45
  }
45
- const vi = /* @__PURE__ */ _(ri, [["render", ui]]), fi = /* @__PURE__ */ aa({
46
+ const gi = /* @__PURE__ */ E(vi, [["render", xi]]), hi = /* @__PURE__ */ Q({
46
47
  __name: "file-uploader-file-card-animation",
47
48
  props: {
48
49
  name: {},
49
50
  showFileIcon: { type: Boolean }
50
51
  },
51
52
  setup(a) {
52
- return (i, p) => o(La) ? (s(), b(Ga, {
53
+ return (i, p) => o(Ia) ? (s(), w(Xa, {
53
54
  key: 0,
54
55
  name: i.name,
55
56
  mode: "out-in",
56
57
  css: i.showFileIcon
57
58
  }, {
58
- default: g(() => [
59
- ra(i.$slots, "default")
59
+ default: b(() => [
60
+ ma(i.$slots, "default")
60
61
  ]),
61
62
  _: 3
62
- }, 8, ["name", "css"])) : (s(), b(Ya, {
63
+ }, 8, ["name", "css"])) : (s(), w(Ja, {
63
64
  key: 1,
64
65
  name: i.name,
65
66
  css: i.showFileIcon
66
67
  }, {
67
- default: g(() => [
68
- ra(i.$slots, "default")
68
+ default: b(() => [
69
+ ma(i.$slots, "default")
69
70
  ]),
70
71
  _: 3
71
72
  }, 8, ["name", "css"]));
72
73
  }
73
74
  });
74
- let xa = 0;
75
- const xi = {
76
- beforeCreate() {
77
- this.uuid = xa.toString(), xa += 1;
78
- }
79
- }, gi = { key: 0 };
80
- function hi(a, i, p, e, l, n) {
81
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
82
- class: "ui-assets-icons-16",
83
- xmlns: "http://www.w3.org/2000/svg",
84
- width: "16",
85
- height: "16",
86
- fill: "none"
87
- }), [
88
- a.$attrs["svg-title"] ? (s(), v("title", gi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
89
- i[0] || (i[0] = m("path", {
90
- fill: "#00112C",
91
- d: "M7.25 6.25H5.75V12.75H7.25V6.25Z"
92
- }, null, -1)),
93
- i[1] || (i[1] = m("path", {
94
- fill: "#00112C",
95
- d: "M8.75 6.25H10.25V12.75H8.75V6.25Z"
96
- }, null, -1)),
97
- i[2] || (i[2] = m("path", {
98
- fill: "#00112C",
99
- d: "M14.75 3.24999H12.54L12.05 1.74999C11.9 1.29999 11.61 0.92999 11.22 0.64999C10.83 0.37999 10.34 0.24999 9.92 0.23999H6.09C5.64 0.23999 5.17 0.37999 4.78 0.64999C4.39 0.91999 4.11 1.29999 3.95 1.75999L3.46 3.23999H1.25V4.73999H2.32L3.14 13.7C3.19 14.26 3.45 14.78 3.86 15.16C4.27 15.54 4.81 15.75 5.37 15.75H10.64C11.2 15.75 11.74 15.54 12.15 15.16C12.57 14.78 12.82 14.26 12.87 13.7L13.69 4.73999H14.76V3.23999L14.75 3.24999ZM5.37 2.24999C5.42 2.09999 5.52 1.97999 5.64 1.88999C5.77 1.79999 5.92 1.74999 6.08 1.75999H9.93C10.08 1.75999 10.23 1.80999 10.35 1.88999C10.48 1.97999 10.57 2.09999 10.62 2.23999L10.95 3.25999H5.02L5.35 2.25999L5.37 2.24999ZM11.37 13.58C11.35 13.77 11.27 13.94 11.13 14.06C10.99 14.19 10.81 14.25 10.63 14.25H5.36C5.17 14.25 5 14.18 4.86 14.06C4.72 13.93 4.64 13.76 4.62 13.57L3.81 4.74999H12.17L11.36 13.57L11.37 13.58Z"
100
- }, null, -1))
101
- ], 16);
102
- }
103
- const bi = /* @__PURE__ */ _(xi, [["render", hi]]);
104
- function wi(a, i) {
105
- const p = T(!1);
106
- let e;
75
+ function bi(a, i) {
76
+ const p = D(!1);
77
+ let t;
107
78
  function l() {
108
- e && e.disconnect();
79
+ t && t.disconnect();
109
80
  }
110
- return Xa(() => {
81
+ return Ka(() => {
111
82
  l();
112
- }), Ja(() => {
113
- l(), e = new IntersectionObserver(
83
+ }), Ea(() => {
84
+ l(), t = new IntersectionObserver(
114
85
  (n) => {
115
86
  p.value = !n[0].isIntersecting;
116
87
  },
@@ -118,7 +89,7 @@ function wi(a, i) {
118
89
  root: i.value,
119
90
  threshold: 1
120
91
  }
121
- ), e.observe(a.value.$el);
92
+ ), t.observe(a.value.$el);
122
93
  }), p;
123
94
  }
124
95
  const ga = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
@@ -129,15 +100,15 @@ function Ma(a, i) {
129
100
  unit: ga[p]
130
101
  }).format(i / 1024 ** p);
131
102
  }
132
- var R = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(R || {}), j = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(j || {}), Q = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(Q || {}), x = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(x || {});
133
- const yi = [
103
+ var L = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(L || {}), j = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(j || {}), K = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(K || {}), h = /* @__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))(h || {});
104
+ const wi = [
134
105
  "application/msword",
135
106
  // .doc
136
107
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
137
108
  // .docx
138
109
  "application/rtf"
139
110
  // .rtf
140
- ], Ci = [
111
+ ], yi = [
141
112
  "application/vnd.ms-excel",
142
113
  // .xls
143
114
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -157,7 +128,7 @@ const yi = [
157
128
  // .pptx
158
129
  "application/vnd.oasis.opendocument.presentation"
159
130
  // .odp
160
- ], $i = [
131
+ ], Ci = [
161
132
  "application/zip",
162
133
  // .zip
163
134
  "application/vnd.rar",
@@ -179,63 +150,63 @@ const yi = [
179
150
  "application/vnd.ms-cab-compressed"
180
151
  // .cab
181
152
  ];
182
- function ji(a) {
183
- return Ci.includes(a.type) ? x.TABLE : a.type.startsWith("text/") || yi.includes(a.type) ? x.TEXT : a.type.startsWith("image/") ? x.IMAGE : a.type.startsWith("video/") ? x.VIDEO : a.type.startsWith("audio/") ? x.AUDIO : a.type === "application/pdf" ? x.PDF : ki.includes(a.type) ? x.SLIDES : $i.includes(a.type) ? x.COMPRESSED : x.GENERIC;
153
+ function _i(a) {
154
+ return yi.includes(a.type) ? h.TABLE : a.type.startsWith("text/") || wi.includes(a.type) ? h.TEXT : a.type.startsWith("image/") ? h.IMAGE : a.type.startsWith("video/") ? h.VIDEO : a.type.startsWith("audio/") ? h.AUDIO : a.type === "application/pdf" ? h.PDF : ki.includes(a.type) ? h.SLIDES : Ci.includes(a.type) ? h.COMPRESSED : h.GENERIC;
184
155
  }
185
- function _i(a, i) {
156
+ function ji(a, i) {
186
157
  if (!i)
187
158
  return !0;
188
- const p = i.split(",").map((e) => e.trim());
189
- for (const e of p)
190
- if (e.startsWith(".")) {
191
- if (a.name.endsWith(e))
159
+ const p = i.split(",").map((t) => t.trim());
160
+ for (const t of p)
161
+ if (t.startsWith(".")) {
162
+ if (a.name.endsWith(t))
192
163
  return !0;
193
- } else if (e.endsWith("/*")) {
194
- const l = e.split("/")[0];
164
+ } else if (t.endsWith("/*")) {
165
+ const l = t.split("/")[0];
195
166
  if (a.type.startsWith(l))
196
167
  return !0;
197
- } else if (a.type === e)
168
+ } else if (a.type === t)
198
169
  return !0;
199
170
  return !1;
200
171
  }
201
- function zi(a, i, p) {
202
- const e = new FileReader(), l = a;
203
- if (!_i(l.data, i)) {
204
- l.state = R.ERROR, l.errors.push(j.ERROR_TYPE);
172
+ function $i(a, i, p) {
173
+ const t = new FileReader(), l = a;
174
+ if (!ji(l.data, i)) {
175
+ l.state = L.ERROR, l.errors.push(j.ERROR_TYPE);
205
176
  return;
206
177
  }
207
- e.onload = (n) => {
208
- if (p && l.type === x.IMAGE) {
209
- const y = new Blob([n.target.result], { type: l.data.type }), c = URL.createObjectURL(y), d = new Image();
178
+ t.onload = (n) => {
179
+ if (p && l.type === h.IMAGE) {
180
+ const _ = new Blob([n.target.result], { type: l.data.type }), u = URL.createObjectURL(_), d = new Image();
210
181
  d.onload = function() {
211
- (d.width > p.width || d.height > p.height) && (l.state = R.ERROR, l.errors.push(j.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
182
+ (d.width > p.width || d.height > p.height) && (l.state = L.ERROR, l.errors.push(j.ERROR_DIMENSIONS)), URL.revokeObjectURL(u);
212
183
  }, d.onerror = function() {
213
- URL.revokeObjectURL(c);
214
- }, d.src = c;
184
+ URL.revokeObjectURL(u);
185
+ }, d.src = u;
215
186
  }
216
- }, e.onprogress = (n) => {
187
+ }, t.onprogress = (n) => {
217
188
  n.lengthComputable && (l.progress = n.loaded / n.total * 100);
218
- }, e.onloadend = () => {
219
- l.state !== R.ERROR && (l.state = R.SUCCESS), l.progress = null;
220
- }, e.onerror = () => {
221
- l.state = R.ERROR, l.errors.push(j.ERROR_LOAD), l.progress = null;
222
- }, e.readAsArrayBuffer(l.data);
189
+ }, t.onloadend = () => {
190
+ l.state !== L.ERROR && (l.state = L.SUCCESS), l.progress = null;
191
+ }, t.onerror = () => {
192
+ l.state = L.ERROR, l.errors.push(j.ERROR_LOAD), l.progress = null;
193
+ }, t.readAsArrayBuffer(l.data);
223
194
  }
224
195
  let ha = 0;
225
- const Ei = {
196
+ const zi = {
226
197
  beforeCreate() {
227
198
  this.uuid = ha.toString(), ha += 1;
228
199
  }
229
- }, Ri = { key: 0 }, Li = ["clip-path"], Mi = ["id"];
230
- function Ii(a, i, p, e, l, n) {
231
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
200
+ }, Ei = { key: 0 }, Ri = ["clip-path"], Li = ["id"];
201
+ function Ii(a, i, p, t, l, n) {
202
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
232
203
  class: "ui-assets-icons-16",
233
204
  xmlns: "http://www.w3.org/2000/svg",
234
205
  width: "16",
235
206
  height: "16",
236
207
  fill: "none"
237
208
  }), [
238
- a.$attrs["svg-title"] ? (s(), v("title", Ri, u(a.$attrs["svg-title"]), 1)) : f("", !0),
209
+ a.$attrs["svg-title"] ? (s(), x("title", Ei, v(a.$attrs["svg-title"]), 1)) : f("", !0),
239
210
  m("g", {
240
211
  "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
241
212
  }, i[0] || (i[0] = [
@@ -243,7 +214,7 @@ function Ii(a, i, p, e, l, n) {
243
214
  fill: "#00112C",
244
215
  d: "M12.866 4.09026C11.5689 2.79315 9.4638 2.79315 8.1667 4.09026L2.7267 9.53026C1.95959 10.2974 1.95959 11.5425 2.7267 12.3096C3.49381 13.0767 4.73893 13.0767 5.50604 12.3096L10.946 6.8696C11.1831 6.63249 11.1831 6.24737 10.946 6.01026C10.7089 5.77316 10.3238 5.77316 10.0867 6.01026L4.75637 11.3406L3.69571 10.2799L9.02604 4.9496C9.84893 4.12671 11.1838 4.12671 12.0067 4.9496C12.8296 5.7725 12.8296 7.10737 12.0067 7.93026L6.5667 13.3703C5.2138 14.7232 3.01893 14.7232 1.66604 13.3703C0.313144 12.0174 0.313144 9.82249 1.66604 8.4696L7.10604 3.0296C8.98893 1.14671 12.0438 1.14671 13.9267 3.0296C15.8096 4.91249 15.8096 7.96737 13.9267 9.85026L11.1564 12.6206L10.0957 11.5599L12.866 8.7896C14.1631 7.49249 14.1631 5.38737 12.866 4.09026Z"
245
216
  }, null, -1)
246
- ]), 8, Li),
217
+ ]), 8, Ri),
247
218
  m("defs", null, [
248
219
  m("clipPath", {
249
220
  id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
@@ -253,70 +224,70 @@ function Ii(a, i, p, e, l, n) {
253
224
  height: "16",
254
225
  fill: "#fff"
255
226
  }, null, -1)
256
- ]), 8, Mi)
227
+ ]), 8, Li)
257
228
  ])
258
229
  ], 16);
259
230
  }
260
- const Vi = /* @__PURE__ */ _(Ei, [["render", Ii]]);
231
+ const Mi = /* @__PURE__ */ E(zi, [["render", Ii]]);
261
232
  let ba = 0;
262
- const Si = {
233
+ const Vi = {
263
234
  beforeCreate() {
264
235
  this.uuid = ba.toString(), ba += 1;
265
236
  }
266
- }, Ti = { key: 0 };
267
- function Hi(a, i, p, e, l, n) {
268
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
237
+ }, Si = { key: 0 };
238
+ function Ti(a, i, p, t, l, n) {
239
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
269
240
  class: "ui-assets-icons-16",
270
241
  xmlns: "http://www.w3.org/2000/svg",
271
242
  width: "16",
272
243
  height: "16",
273
244
  fill: "none"
274
245
  }), [
275
- a.$attrs["svg-title"] ? (s(), v("title", Ti, u(a.$attrs["svg-title"]), 1)) : f("", !0),
246
+ a.$attrs["svg-title"] ? (s(), x("title", Si, v(a.$attrs["svg-title"]), 1)) : f("", !0),
276
247
  i[0] || (i[0] = m("path", {
277
248
  fill: "#00112C",
278
249
  d: "M13.75 9.58159C14.3412 9.30073 14.75 8.6981 14.75 8V2C14.75 1.0335 13.9665 0.25 13 0.25H3C2.0335 0.25 1.25 1.0335 1.25 2V8C1.25 8.6981 1.65876 9.30073 2.25 9.58159V11C2.25 11.4641 2.43438 11.9092 2.76256 12.2374C2.90555 12.3804 3.07072 12.4961 3.25 12.5811V14C3.25 14.4641 3.43438 14.9092 3.76256 15.2374C4.09075 15.5656 4.53587 15.75 5 15.75H11C11.4641 15.75 11.9092 15.5656 12.2374 15.2374C12.5656 14.9092 12.75 14.4641 12.75 14V12.5811C12.9293 12.4961 13.0945 12.3804 13.2374 12.2374C13.5656 11.9092 13.75 11.4641 13.75 11V9.58159ZM3 1.75H13C13.1381 1.75 13.25 1.86193 13.25 2V8C13.25 8.13807 13.1381 8.25 13 8.25H3C2.86193 8.25 2.75 8.13807 2.75 8V2C2.75 1.86193 2.86193 1.75 3 1.75ZM12.25 9.75V11C12.25 11.0663 12.2237 11.1299 12.1768 11.1768C12.1299 11.2237 12.0663 11.25 12 11.25H4C3.9337 11.25 3.87011 11.2237 3.82322 11.1768C3.77634 11.1299 3.75 11.0663 3.75 11V9.75H12.25ZM11.25 12.75V14C11.25 14.0663 11.2237 14.1299 11.1768 14.1768C11.1299 14.2237 11.0663 14.25 11 14.25H5C4.9337 14.25 4.87011 14.2237 4.82322 14.1768C4.77634 14.1299 4.75 14.0663 4.75 14V12.75H11.25Z"
279
250
  }, null, -1))
280
251
  ], 16);
281
252
  }
282
- const Di = /* @__PURE__ */ _(Si, [["render", Hi]]);
253
+ const Di = /* @__PURE__ */ E(Vi, [["render", Ti]]);
283
254
  let wa = 0;
284
- const Oi = {
255
+ const Fi = {
285
256
  beforeCreate() {
286
257
  this.uuid = wa.toString(), wa += 1;
287
258
  }
288
- }, Fi = { key: 0 };
289
- function qi(a, i, p, e, l, n) {
290
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
259
+ }, Oi = { key: 0 };
260
+ function Hi(a, i, p, t, l, n) {
261
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
291
262
  class: "ui-assets-icons-16",
292
263
  xmlns: "http://www.w3.org/2000/svg",
293
264
  width: "16",
294
265
  height: "16",
295
266
  fill: "none"
296
267
  }), [
297
- a.$attrs["svg-title"] ? (s(), v("title", Fi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
268
+ a.$attrs["svg-title"] ? (s(), x("title", Oi, v(a.$attrs["svg-title"]), 1)) : f("", !0),
298
269
  i[0] || (i[0] = m("path", {
299
270
  fill: "#00112C",
300
271
  d: "M2.25 0.25V15.75H13.75V4.68934L9.31066 0.25H2.25ZM7.25 1.75V6.75H12.25V14.25H3.75V1.75H7.25ZM12.1893 5.25H8.75V1.81066L12.1893 5.25Z"
301
272
  }, null, -1))
302
273
  ], 16);
303
274
  }
304
- const Zi = /* @__PURE__ */ _(Oi, [["render", qi]]);
275
+ const qi = /* @__PURE__ */ E(Fi, [["render", Hi]]);
305
276
  let ya = 0;
306
- const Bi = {
277
+ const Zi = {
307
278
  beforeCreate() {
308
279
  this.uuid = ya.toString(), ya += 1;
309
280
  }
310
281
  }, Ai = { key: 0 };
311
- function Ni(a, i, p, e, l, n) {
312
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
282
+ function Bi(a, i, p, t, l, n) {
283
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
313
284
  class: "ui-assets-icons-16",
314
285
  xmlns: "http://www.w3.org/2000/svg",
315
286
  width: "16",
316
287
  height: "16",
317
288
  fill: "none"
318
289
  }), [
319
- a.$attrs["svg-title"] ? (s(), v("title", Ai, u(a.$attrs["svg-title"]), 1)) : f("", !0),
290
+ a.$attrs["svg-title"] ? (s(), x("title", Ai, v(a.$attrs["svg-title"]), 1)) : f("", !0),
320
291
  i[0] || (i[0] = m("path", {
321
292
  fill: "#00112C",
322
293
  d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
@@ -331,44 +302,44 @@ function Ni(a, i, p, e, l, n) {
331
302
  }, null, -1))
332
303
  ], 16);
333
304
  }
334
- const Pi = /* @__PURE__ */ _(Bi, [["render", Ni]]);
335
- let Ca = 0;
305
+ const Ni = /* @__PURE__ */ E(Zi, [["render", Bi]]);
306
+ let ka = 0;
336
307
  const Ui = {
337
308
  beforeCreate() {
338
- this.uuid = Ca.toString(), Ca += 1;
309
+ this.uuid = ka.toString(), ka += 1;
339
310
  }
340
- }, Wi = { key: 0 };
341
- function Gi(a, i, p, e, l, n) {
342
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
311
+ }, Pi = { key: 0 };
312
+ function Wi(a, i, p, t, l, n) {
313
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
343
314
  class: "ui-assets-icons-16",
344
315
  xmlns: "http://www.w3.org/2000/svg",
345
316
  width: "16",
346
317
  height: "16",
347
318
  fill: "none"
348
319
  }), [
349
- a.$attrs["svg-title"] ? (s(), v("title", Wi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
320
+ a.$attrs["svg-title"] ? (s(), x("title", Pi, v(a.$attrs["svg-title"]), 1)) : f("", !0),
350
321
  i[0] || (i[0] = m("path", {
351
322
  fill: "#00112C",
352
323
  d: "M1.24609 4.5C1.24609 3.25579 2.25188 2.25 3.49609 2.25H6.37609C6.97727 2.25 7.54738 2.49062 7.96642 2.90967L10.0864 5.02967C10.2274 5.17062 10.4173 5.25 10.6161 5.25H12.4961C13.7403 5.25 14.7461 6.25579 14.7461 7.5V12.5C14.7461 13.7442 13.7403 14.75 12.4961 14.75H3.49609C2.25188 14.75 1.24609 13.7442 1.24609 12.5V4.5ZM3.49609 3.75C3.08031 3.75 2.74609 4.08421 2.74609 4.5V12.5C2.74609 12.9158 3.08031 13.25 3.49609 13.25H12.4961C12.9119 13.25 13.2461 12.9158 13.2461 12.5V7.5C13.2461 7.08421 12.9119 6.75 12.4961 6.75H10.6161C10.0149 6.75 9.44481 6.50938 9.02576 6.09033L6.90576 3.97033C6.76481 3.82938 6.57492 3.75 6.37609 3.75H3.49609Z"
353
324
  }, null, -1))
354
325
  ], 16);
355
326
  }
356
- const Yi = /* @__PURE__ */ _(Ui, [["render", Gi]]);
357
- let ka = 0;
358
- const Xi = {
327
+ const Gi = /* @__PURE__ */ E(Ui, [["render", Wi]]);
328
+ let Ca = 0;
329
+ const Yi = {
359
330
  beforeCreate() {
360
- this.uuid = ka.toString(), ka += 1;
331
+ this.uuid = Ca.toString(), Ca += 1;
361
332
  }
362
- }, Ji = { key: 0 };
363
- function Ki(a, i, p, e, l, n) {
364
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
333
+ }, Xi = { key: 0 };
334
+ function Ji(a, i, p, t, l, n) {
335
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
365
336
  class: "ui-assets-icons-16",
366
337
  xmlns: "http://www.w3.org/2000/svg",
367
338
  width: "16",
368
339
  height: "16",
369
340
  fill: "none"
370
341
  }), [
371
- a.$attrs["svg-title"] ? (s(), v("title", Ji, u(a.$attrs["svg-title"]), 1)) : f("", !0),
342
+ a.$attrs["svg-title"] ? (s(), x("title", Xi, v(a.$attrs["svg-title"]), 1)) : f("", !0),
372
343
  i[0] || (i[0] = m("path", {
373
344
  fill: "#00112C",
374
345
  d: "M9.99609 3.24805C8.47731 3.24805 7.24609 4.47926 7.24609 5.99805C7.24609 7.51683 8.47731 8.74805 9.99609 8.74805C11.5149 8.74805 12.7461 7.51683 12.7461 5.99805C12.7461 4.47926 11.5149 3.24805 9.99609 3.24805ZM8.74609 5.99805C8.74609 5.30769 9.30574 4.74805 9.99609 4.74805C10.6865 4.74805 11.2461 5.30769 11.2461 5.99805C11.2461 6.6884 10.6865 7.24805 9.99609 7.24805C9.30574 7.24805 8.74609 6.6884 8.74609 5.99805Z"
@@ -379,29 +350,29 @@ function Ki(a, i, p, e, l, n) {
379
350
  }, null, -1))
380
351
  ], 16);
381
352
  }
382
- const Qi = /* @__PURE__ */ _(Xi, [["render", Ki]]);
383
- let $a = 0;
384
- const ae = {
353
+ const Ki = /* @__PURE__ */ E(Yi, [["render", Ji]]);
354
+ let _a = 0;
355
+ const Qi = {
385
356
  beforeCreate() {
386
- this.uuid = $a.toString(), $a += 1;
357
+ this.uuid = _a.toString(), _a += 1;
387
358
  }
388
- }, ie = { key: 0 }, ee = ["clip-path"], te = ["id"];
389
- function ne(a, i, p, e, l, n) {
390
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
359
+ }, ae = { key: 0 }, ie = ["clip-path"], ee = ["id"];
360
+ function te(a, i, p, t, l, n) {
361
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
391
362
  class: "ui-assets-icons-16",
392
363
  xmlns: "http://www.w3.org/2000/svg",
393
364
  width: "16",
394
365
  height: "16",
395
366
  fill: "none"
396
367
  }), [
397
- a.$attrs["svg-title"] ? (s(), v("title", ie, u(a.$attrs["svg-title"]), 1)) : f("", !0),
368
+ a.$attrs["svg-title"] ? (s(), x("title", ae, v(a.$attrs["svg-title"]), 1)) : f("", !0),
398
369
  m("g", {
399
370
  fill: "#00112C",
400
371
  "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
401
372
  }, i[0] || (i[0] = [
402
373
  m("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
403
374
  m("path", { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" }, null, -1)
404
- ]), 8, ee),
375
+ ]), 8, ie),
405
376
  m("defs", null, [
406
377
  m("clipPath", {
407
378
  id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
@@ -411,26 +382,26 @@ function ne(a, i, p, e, l, n) {
411
382
  height: "16",
412
383
  fill: "#fff"
413
384
  }, null, -1)
414
- ]), 8, te)
385
+ ]), 8, ee)
415
386
  ])
416
387
  ], 16);
417
388
  }
418
- const pe = /* @__PURE__ */ _(ae, [["render", ne]]);
389
+ const ne = /* @__PURE__ */ E(Qi, [["render", te]]);
419
390
  let ja = 0;
420
- const oe = {
391
+ const pe = {
421
392
  beforeCreate() {
422
393
  this.uuid = ja.toString(), ja += 1;
423
394
  }
424
- }, le = { key: 0 };
425
- function se(a, i, p, e, l, n) {
426
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
395
+ }, oe = { key: 0 };
396
+ function le(a, i, p, t, l, n) {
397
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
427
398
  class: "ui-assets-icons-16",
428
399
  xmlns: "http://www.w3.org/2000/svg",
429
400
  width: "16",
430
401
  height: "16",
431
402
  fill: "none"
432
403
  }), [
433
- a.$attrs["svg-title"] ? (s(), v("title", le, u(a.$attrs["svg-title"]), 1)) : f("", !0),
404
+ a.$attrs["svg-title"] ? (s(), x("title", oe, v(a.$attrs["svg-title"]), 1)) : f("", !0),
434
405
  i[0] || (i[0] = m("path", {
435
406
  fill: "#00112C",
436
407
  d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z"
@@ -445,57 +416,57 @@ function se(a, i, p, e, l, n) {
445
416
  }, null, -1))
446
417
  ], 16);
447
418
  }
448
- const ce = /* @__PURE__ */ _(oe, [["render", se]]);
449
- let _a = 0;
450
- const de = {
419
+ const se = /* @__PURE__ */ E(pe, [["render", le]]);
420
+ let $a = 0;
421
+ const ce = {
451
422
  beforeCreate() {
452
- this.uuid = _a.toString(), _a += 1;
423
+ this.uuid = $a.toString(), $a += 1;
453
424
  }
454
- }, re = { key: 0 };
455
- function me(a, i, p, e, l, n) {
456
- return s(), v("svg", L({ role: "img" }, a.$attrs, {
425
+ }, de = { key: 0 };
426
+ function re(a, i, p, t, l, n) {
427
+ return s(), x("svg", V({ role: "img" }, a.$attrs, {
457
428
  class: "ui-assets-icons-16",
458
429
  xmlns: "http://www.w3.org/2000/svg",
459
430
  width: "16",
460
431
  height: "16",
461
432
  fill: "none"
462
433
  }), [
463
- a.$attrs["svg-title"] ? (s(), v("title", re, u(a.$attrs["svg-title"]), 1)) : f("", !0),
434
+ a.$attrs["svg-title"] ? (s(), x("title", de, v(a.$attrs["svg-title"]), 1)) : f("", !0),
464
435
  i[0] || (i[0] = m("path", {
465
436
  fill: "#00112C",
466
437
  d: "M3.5 1.25L3.49505 1.25002C2.90084 1.25394 2.33208 1.49173 1.91191 1.91191C1.49173 2.33208 1.25392 2.90084 1.25 3.49505V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V3.5C14.75 2.90326 14.5129 2.33097 14.091 1.90901C13.669 1.48705 13.0967 1.25 12.5 1.25H3.5ZM5.25 2.75V5.25H2.75V3.5029C2.75185 3.30382 2.83175 3.11338 2.97257 2.97257C3.11338 2.83175 3.30382 2.75185 3.5029 2.75H5.25ZM5.25 6.75V9.25H2.75V6.75H5.25ZM6.75 9.25V6.75H13.25V9.25H6.75ZM5.25 10.75V13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5V10.75H5.25ZM6.75 13.25V10.75H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H6.75ZM6.75 5.25V2.75H12.5C12.6989 2.75 12.8897 2.82902 13.0303 2.96967C13.171 3.11032 13.25 3.30109 13.25 3.5V5.25H6.75Z"
467
438
  }, null, -1))
468
439
  ], 16);
469
440
  }
470
- const ue = /* @__PURE__ */ _(de, [["render", me]]), ve = {
471
- [x.AUDIO]: ce,
472
- [x.COMPRESSED]: Yi,
473
- [x.GENERIC]: Vi,
474
- [x.IMAGE]: Qi,
475
- [x.PDF]: Zi,
476
- [x.SLIDES]: Di,
477
- [x.TABLE]: ue,
478
- [x.TEXT]: Pi,
479
- [x.VIDEO]: pe
441
+ const me = /* @__PURE__ */ E(ce, [["render", re]]), ue = {
442
+ [h.AUDIO]: se,
443
+ [h.COMPRESSED]: Gi,
444
+ [h.GENERIC]: Mi,
445
+ [h.IMAGE]: Ki,
446
+ [h.PDF]: qi,
447
+ [h.SLIDES]: Di,
448
+ [h.TABLE]: me,
449
+ [h.TEXT]: Ni,
450
+ [h.VIDEO]: ne
480
451
  };
481
- function fe(a) {
482
- return ve[a.type];
452
+ function ve(a) {
453
+ return ue[a.type];
483
454
  }
484
- function xe(a) {
455
+ function fe(a) {
485
456
  switch (a.type) {
486
- case x.COMPRESSED:
487
- case x.GENERIC:
457
+ case h.COMPRESSED:
458
+ case h.GENERIC:
488
459
  return "grey";
489
- case x.PDF:
490
- case x.SLIDES:
460
+ case h.PDF:
461
+ case h.SLIDES:
491
462
  return "orange";
492
- case x.TEXT:
463
+ case h.TEXT:
493
464
  return "blue";
494
465
  default:
495
466
  return "green";
496
467
  }
497
468
  }
498
- const Ia = {
469
+ const Va = {
499
470
  "en-US": {
500
471
  cancel: "Cancel",
501
472
  fileExceedsSizeLimit: "File exceeds size limit",
@@ -514,46 +485,46 @@ const Ia = {
514
485
  remove: "Remover",
515
486
  retry: "Tentar novamente"
516
487
  }
517
- }, ge = { class: "b-file-uploader-file-card__details" }, he = { class: "b-file-uploader-file-card__info" }, be = { class: "b-file-uploader-file-card__actions" }, we = {
488
+ }, xe = { class: "b-file-uploader-file-card__details" }, ge = { class: "b-file-uploader-file-card__info" }, he = { class: "b-file-uploader-file-card__actions" }, be = {
518
489
  name: "file-uploader-file-card",
519
- i18n: { messages: Ia }
520
- }, ye = /* @__PURE__ */ aa({
521
- ...we,
490
+ i18n: { messages: Va }
491
+ }, we = /* @__PURE__ */ Q({
492
+ ...be,
522
493
  props: {
523
494
  file: {},
524
495
  supportedFileTypes: { default: null }
525
496
  },
526
497
  emits: ["cancel", "remove", "retry"],
527
498
  setup(a, { emit: i }) {
528
- const e = a, l = i, { t: n, locale: y } = ia({ messages: Ia }), c = T(e.file.state === R.SUCCESS), d = h(() => URL.createObjectURL(e.file.data)), w = h(() => e.file.state === R.ERROR), q = h(() => e.file.errors.includes(j.ERROR_LOAD)), G = h(() => e.file.errors.includes(j.ERROR_SIZE)), D = h(() => e.file.errors.includes(j.ERROR_DIMENSIONS)), Z = h(() => e.file.errors.includes(j.ERROR_TYPE)), Y = h(() => e.file.state === R.LOADING), X = h(() => e.file.progress && `(${e.file.progress.toFixed(0)}%)`), B = h(() => Ma(y.value, e.file.data.size)), J = T(), O = T(), ea = wi(J, O), ta = h(() => ({
529
- "b-file-uploader-file-card--error": w.value
530
- })), A = h(() => ({
531
- [`b-file-uploader-file-card__icon--${xe(e.file)}`]: c.value,
532
- "b-file-uploader-file-card__icon--error": w.value
533
- })), N = h(() => Y.value ? si : w.value ? Ra : c.value ? fe(e.file) : ti);
534
- return la(
535
- () => e.file.state,
536
- (M) => {
537
- if (M === R.SUCCESS && !c.value) {
538
- const I = setTimeout(() => {
539
- c.value = !0, clearTimeout(I);
499
+ const t = a, l = i, { t: n, locale: _ } = aa({ messages: Va }), u = D(t.file.state === L.SUCCESS), d = g(() => URL.createObjectURL(t.file.data)), r = g(() => t.file.state === L.ERROR), I = g(() => t.file.errors.includes(j.ERROR_LOAD)), P = g(() => t.file.errors.includes(j.ERROR_SIZE)), ia = g(() => t.file.errors.includes(j.ERROR_DIMENSIONS)), W = g(() => t.file.errors.includes(j.ERROR_TYPE)), F = g(() => t.file.state === L.LOADING), Z = g(() => t.file.progress && `(${t.file.progress.toFixed(0)}%)`), ea = g(() => Ma(_.value, t.file.data.size)), A = D(), H = D(), ta = bi(A, H), B = g(() => ({
500
+ "b-file-uploader-file-card--error": r.value
501
+ })), na = g(() => ({
502
+ [`b-file-uploader-file-card__icon--${fe(t.file)}`]: u.value,
503
+ "b-file-uploader-file-card__icon--error": r.value
504
+ })), G = g(() => F.value ? ri : r.value ? La : u.value ? ve(t.file) : oi);
505
+ return X(
506
+ () => t.file.state,
507
+ ($) => {
508
+ if ($ === L.SUCCESS && !u.value) {
509
+ const M = setTimeout(() => {
510
+ u.value = !0, clearTimeout(M);
540
511
  }, 1200);
541
512
  }
542
513
  }
543
- ), (M, I) => (s(), v("div", {
544
- class: S(["b-file-uploader-file-card", ta.value])
514
+ ), ($, M) => (s(), x("div", {
515
+ class: T(["b-file-uploader-file-card", B.value])
545
516
  }, [
546
- m("div", ge, [
547
- m("div", he, [
548
- V(o(fi), {
549
- name: o(La) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
550
- "show-file-icon": c.value
517
+ m("div", xe, [
518
+ m("div", ge, [
519
+ S(o(hi), {
520
+ name: o(Ia) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
521
+ "show-file-icon": u.value
551
522
  }, {
552
- default: g(() => [
553
- (s(), b(Ka(N.value), {
554
- key: JSON.stringify(N.value),
523
+ default: b(() => [
524
+ (s(), w(Qa(G.value), {
525
+ key: JSON.stringify(G.value),
555
526
  small: "",
556
- class: S(["b-file-uploader-file-card__icon", A.value]),
527
+ class: T(["b-file-uploader-file-card__icon", na.value]),
557
528
  "data-testid": "file-uploader-item-icon"
558
529
  }, null, 8, ["class"]))
559
530
  ]),
@@ -561,115 +532,115 @@ const Ia = {
561
532
  }, 8, ["name", "show-file-icon"]),
562
533
  m("div", {
563
534
  ref_key: "fileNameContainerRef",
564
- ref: O,
535
+ ref: H,
565
536
  class: "b-file-uploader-file-card__file-name"
566
537
  }, [
567
- V(o(li), {
568
- download: M.file.data.name,
538
+ S(o(di), {
539
+ download: $.file.data.name,
569
540
  to: d.value,
570
541
  "disable-typography": "",
571
542
  "is-not-routing": "",
572
543
  variant: "quiet"
573
544
  }, {
574
- default: g(() => [
575
- Ea((s(), b(o(z), {
545
+ default: b(() => [
546
+ Ra((s(), w(o(z), {
576
547
  ref_key: "fileNameRef",
577
- ref: J,
548
+ ref: A,
578
549
  stronger: "",
579
550
  el: "span"
580
551
  }, {
581
- default: g(() => [
582
- $(u(M.file.data.name), 1)
552
+ default: b(() => [
553
+ C(v($.file.data.name), 1)
583
554
  ]),
584
555
  _: 1
585
556
  })), [
586
- [o(oi), o(ea) ? M.file.data.name : null]
557
+ [o(ci), o(ta) ? $.file.data.name : null]
587
558
  ])
588
559
  ]),
589
560
  _: 1
590
561
  }, 8, ["download", "to"])
591
562
  ], 512),
592
- M.file.progress ? (s(), b(o(z), {
563
+ $.file.progress ? (s(), w(o(z), {
593
564
  key: 0,
594
565
  el: "span"
595
566
  }, {
596
- default: g(() => [
597
- $(u(X.value), 1)
567
+ default: b(() => [
568
+ C(v(Z.value), 1)
598
569
  ]),
599
570
  _: 1
600
- })) : M.file.data.size ? (s(), b(o(z), {
571
+ })) : $.file.data.size ? (s(), w(o(z), {
601
572
  key: 1,
602
573
  class: "b-file-uploader-file-card__file-size",
603
574
  el: "span"
604
575
  }, {
605
- default: g(() => [
606
- $(u(B.value), 1)
576
+ default: b(() => [
577
+ C(v(ea.value), 1)
607
578
  ]),
608
579
  _: 1
609
580
  })) : f("", !0)
610
581
  ]),
611
- G.value ? (s(), b(o(z), {
582
+ P.value ? (s(), w(o(z), {
612
583
  key: 0,
613
584
  class: "b-file-uploader-file-card__error-message"
614
585
  }, {
615
- default: g(() => [
616
- $(u(o(n)("fileExceedsSizeLimit")), 1)
586
+ default: b(() => [
587
+ C(v(o(n)("fileExceedsSizeLimit")), 1)
617
588
  ]),
618
589
  _: 1
619
590
  })) : f("", !0),
620
- D.value ? (s(), b(o(z), {
591
+ ia.value ? (s(), w(o(z), {
621
592
  key: 1,
622
593
  class: "b-file-uploader-file-card__error-message"
623
594
  }, {
624
- default: g(() => [
625
- $(u(o(n)("imageDimensionsExceedLimits")), 1)
595
+ default: b(() => [
596
+ C(v(o(n)("imageDimensionsExceedLimits")), 1)
626
597
  ]),
627
598
  _: 1
628
599
  })) : f("", !0),
629
- Z.value && M.supportedFileTypes ? (s(), b(o(z), {
600
+ W.value && $.supportedFileTypes ? (s(), w(o(z), {
630
601
  key: 2,
631
602
  class: "b-file-uploader-file-card__error-message"
632
603
  }, {
633
- default: g(() => [
634
- $(u(o(n)("fileTypeMustBe", { list: M.supportedFileTypes })), 1)
604
+ default: b(() => [
605
+ C(v(o(n)("fileTypeMustBe", { list: $.supportedFileTypes })), 1)
635
606
  ]),
636
607
  _: 1
637
608
  })) : f("", !0)
638
609
  ]),
639
- m("div", be, [
640
- q.value ? (s(), b(o(K), {
610
+ m("div", he, [
611
+ I.value ? (s(), w(o(J), {
641
612
  key: 0,
642
613
  variant: "tertiary",
643
- onClick: I[0] || (I[0] = (P) => l("retry"))
614
+ onClick: M[0] || (M[0] = (Y) => l("retry"))
644
615
  }, {
645
- iconLeft: g(() => [
646
- V(o(pi), {
616
+ iconLeft: b(() => [
617
+ S(o(si), {
647
618
  "svg-title": o(n)("retry")
648
619
  }, null, 8, ["svg-title"])
649
620
  ]),
650
- default: g(() => [
651
- $(" " + u(o(n)("retry")), 1)
621
+ default: b(() => [
622
+ C(" " + v(o(n)("retry")), 1)
652
623
  ]),
653
624
  _: 1
654
625
  })) : f("", !0),
655
- Y.value || w.value ? (s(), b(o(K), {
626
+ F.value || r.value ? (s(), w(o(J), {
656
627
  key: 1,
657
628
  variant: "tertiary",
658
- onClick: I[1] || (I[1] = (P) => l("cancel"))
629
+ onClick: M[1] || (M[1] = (Y) => l("cancel"))
659
630
  }, {
660
- iconLeft: g(() => [
661
- V(o(ni), {
631
+ iconLeft: b(() => [
632
+ S(o(li), {
662
633
  "svg-title": o(n)("cancel")
663
634
  }, null, 8, ["svg-title"])
664
635
  ]),
665
636
  _: 1
666
- })) : (s(), b(o(K), {
637
+ })) : (s(), w(o(J), {
667
638
  key: 2,
668
639
  variant: "tertiary",
669
- onClick: I[2] || (I[2] = (P) => l("remove"))
640
+ onClick: M[2] || (M[2] = (Y) => l("remove"))
670
641
  }, {
671
- iconLeft: g(() => [
672
- V(o(bi), {
642
+ iconLeft: b(() => [
643
+ S(o(pi), {
673
644
  "svg-title": o(n)("remove")
674
645
  }, null, 8, ["svg-title"])
675
646
  ]),
@@ -678,7 +649,7 @@ const Ia = {
678
649
  ])
679
650
  ], 2));
680
651
  }
681
- }), Ce = /* @__PURE__ */ _(ye, [["__scopeId", "data-v-13fa0d5e"]]), Va = {
652
+ }), ye = /* @__PURE__ */ E(we, [["__scopeId", "data-v-13fa0d5e"]]), Sa = {
682
653
  "en-US": {
683
654
  maxFileSize: "Max file size: {size}",
684
655
  maxImageDimensions: "Max image dimensions: {width} × {height}px",
@@ -688,8 +659,8 @@ const Ia = {
688
659
  supportedFileTypes: "Supported file types: {list}"
689
660
  }
690
661
  }, ke = {
691
- i18n: { messages: Va }
692
- }, $e = /* @__PURE__ */ aa({
662
+ i18n: { messages: Sa }
663
+ }, Ce = /* @__PURE__ */ Q({
693
664
  ...ke,
694
665
  __name: "file-uploader-restrictions",
695
666
  props: {
@@ -701,65 +672,65 @@ const Ia = {
701
672
  supportedFileTypes: { default: null }
702
673
  },
703
674
  setup(a) {
704
- const i = a, { t: p, tc: e, locale: l } = ia({ messages: Va }), n = h(() => ({
675
+ const i = a, { t: p, tc: t, locale: l } = aa({ messages: Sa }), n = g(() => ({
705
676
  "b-file-uploader-restrictions--condensed": i.condensed,
706
677
  "b-file-uploader-restrictions--disabled": i.disabled
707
678
  }));
708
- function y(d) {
679
+ function _(d) {
709
680
  return {
710
681
  "b-file-uploader-restrictions--error": d
711
682
  };
712
683
  }
713
- const c = h(() => {
684
+ const u = g(() => {
714
685
  if (!i.maxDimensions)
715
686
  return null;
716
687
  const {
717
- value: { width: d, height: w }
688
+ value: { width: d, height: r }
718
689
  } = i.maxDimensions;
719
- return d && w ? p("maxImageDimensions", { width: d, height: w }) : d ? p("maxImageWidth", { width: d }) : w ? p("maxImageHeight", { height: w }) : null;
690
+ return d && r ? p("maxImageDimensions", { width: d, height: r }) : d ? p("maxImageWidth", { width: d }) : r ? p("maxImageHeight", { height: r }) : null;
720
691
  });
721
- return (d, w) => (s(), v("div", {
722
- class: S(["b-file-uploader-restrictions", n.value])
692
+ return (d, r) => (s(), x("div", {
693
+ class: T(["b-file-uploader-restrictions", n.value])
723
694
  }, [
724
- d.supportedFileTypes ? (s(), b(o(z), {
695
+ d.supportedFileTypes ? (s(), w(o(z), {
725
696
  key: 0,
726
- class: S(y(d.supportedFileTypes.error))
697
+ class: T(_(d.supportedFileTypes.error))
727
698
  }, {
728
- default: g(() => [
729
- $(u(o(p)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
699
+ default: b(() => [
700
+ C(v(o(p)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
730
701
  ]),
731
702
  _: 1
732
703
  }, 8, ["class"])) : f("", !0),
733
- d.maxSize ? (s(), b(o(z), {
704
+ d.maxSize ? (s(), w(o(z), {
734
705
  key: 1,
735
- class: S(y(d.maxSize.error))
706
+ class: T(_(d.maxSize.error))
736
707
  }, {
737
- default: g(() => [
738
- $(u(o(p)("maxFileSize", { size: o(Ma)(o(l), d.maxSize.value) })), 1)
708
+ default: b(() => [
709
+ C(v(o(p)("maxFileSize", { size: o(Ma)(o(l), d.maxSize.value) })), 1)
739
710
  ]),
740
711
  _: 1
741
712
  }, 8, ["class"])) : f("", !0),
742
- d.maxDimensions ? (s(), b(o(z), {
713
+ d.maxDimensions ? (s(), w(o(z), {
743
714
  key: 2,
744
- class: S(y(d.maxDimensions.error))
715
+ class: T(_(d.maxDimensions.error))
745
716
  }, {
746
- default: g(() => [
747
- $(u(c.value), 1)
717
+ default: b(() => [
718
+ C(v(u.value), 1)
748
719
  ]),
749
720
  _: 1
750
721
  }, 8, ["class"])) : f("", !0),
751
- d.maxCount ? (s(), b(o(z), {
722
+ d.maxCount ? (s(), w(o(z), {
752
723
  key: 3,
753
- class: S(y(d.maxCount.error))
724
+ class: T(_(d.maxCount.error))
754
725
  }, {
755
- default: g(() => [
756
- $(u(o(e)("maxUpload", d.maxCount.value)), 1)
726
+ default: b(() => [
727
+ C(v(o(t)("maxUpload", d.maxCount.value)), 1)
757
728
  ]),
758
729
  _: 1
759
730
  }, 8, ["class"])) : f("", !0)
760
731
  ], 2));
761
732
  }
762
- }), za = /* @__PURE__ */ _($e, [["__scopeId", "data-v-d7c2e9cd"]]), Sa = {
733
+ }), za = /* @__PURE__ */ E(Ce, [["__scopeId", "data-v-d7c2e9cd"]]), Ta = {
763
734
  "application/prs.cww": ["cww"],
764
735
  "application/prs.xsf+xml": ["xsf"],
765
736
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1458,8 +1429,8 @@ const Ia = {
1458
1429
  "video/x-smv": ["smv"],
1459
1430
  "x-conference/x-cooltalk": ["ice"]
1460
1431
  };
1461
- Object.freeze(Sa);
1462
- const Ta = {
1432
+ Object.freeze(Ta);
1433
+ const Da = {
1463
1434
  "application/andrew-inset": ["ez"],
1464
1435
  "application/appinstaller": ["appinstaller"],
1465
1436
  "application/applixware": ["aw"],
@@ -1811,31 +1782,31 @@ const Ta = {
1811
1782
  "video/quicktime": ["qt", "mov"],
1812
1783
  "video/webm": ["webm"]
1813
1784
  };
1814
- Object.freeze(Ta);
1815
- var E = function(a, i, p, e) {
1816
- if (p === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
1817
- if (typeof i == "function" ? a !== i || !e : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1818
- return p === "m" ? e : p === "a" ? e.call(a) : e ? e.value : i.get(a);
1819
- }, F, W, H;
1820
- class je {
1785
+ Object.freeze(Da);
1786
+ var R = function(a, i, p, t) {
1787
+ if (p === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
1788
+ if (typeof i == "function" ? a !== i || !t : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1789
+ return p === "m" ? t : p === "a" ? t.call(a) : t ? t.value : i.get(a);
1790
+ }, q, U, O;
1791
+ class _e {
1821
1792
  constructor(...i) {
1822
- F.set(this, /* @__PURE__ */ new Map()), W.set(this, /* @__PURE__ */ new Map()), H.set(this, /* @__PURE__ */ new Map());
1793
+ q.set(this, /* @__PURE__ */ new Map()), U.set(this, /* @__PURE__ */ new Map()), O.set(this, /* @__PURE__ */ new Map());
1823
1794
  for (const p of i)
1824
1795
  this.define(p);
1825
1796
  }
1826
1797
  define(i, p = !1) {
1827
- for (let [e, l] of Object.entries(i)) {
1828
- e = e.toLowerCase(), l = l.map((c) => c.toLowerCase()), E(this, H, "f").has(e) || E(this, H, "f").set(e, /* @__PURE__ */ new Set());
1829
- const n = E(this, H, "f").get(e);
1830
- let y = !0;
1831
- for (let c of l) {
1832
- const d = c.startsWith("*");
1833
- if (c = d ? c.slice(1) : c, n == null || n.add(c), y && E(this, W, "f").set(e, c), y = !1, d)
1798
+ for (let [t, l] of Object.entries(i)) {
1799
+ t = t.toLowerCase(), l = l.map((u) => u.toLowerCase()), R(this, O, "f").has(t) || R(this, O, "f").set(t, /* @__PURE__ */ new Set());
1800
+ const n = R(this, O, "f").get(t);
1801
+ let _ = !0;
1802
+ for (let u of l) {
1803
+ const d = u.startsWith("*");
1804
+ if (u = d ? u.slice(1) : u, n == null || n.add(u), _ && R(this, U, "f").set(t, u), _ = !1, d)
1834
1805
  continue;
1835
- const w = E(this, F, "f").get(c);
1836
- if (w && w != e && !p)
1837
- throw new Error(`"${e} -> ${c}" conflicts with "${w} -> ${c}". Pass \`force=true\` to override this definition.`);
1838
- E(this, F, "f").set(c, e);
1806
+ const r = R(this, q, "f").get(u);
1807
+ if (r && r != t && !p)
1808
+ throw new Error(`"${t} -> ${u}" conflicts with "${r} -> ${u}". Pass \`force=true\` to override this definition.`);
1809
+ R(this, q, "f").set(u, t);
1839
1810
  }
1840
1811
  }
1841
1812
  return this;
@@ -1843,39 +1814,39 @@ class je {
1843
1814
  getType(i) {
1844
1815
  if (typeof i != "string")
1845
1816
  return null;
1846
- const p = i.replace(/^.*[/\\]/, "").toLowerCase(), e = p.replace(/^.*\./, "").toLowerCase(), l = p.length < i.length;
1847
- return !(e.length < p.length - 1) && l ? null : E(this, F, "f").get(e) ?? null;
1817
+ const p = i.replace(/^.*[/\\]/, "").toLowerCase(), t = p.replace(/^.*\./, "").toLowerCase(), l = p.length < i.length;
1818
+ return !(t.length < p.length - 1) && l ? null : R(this, q, "f").get(t) ?? null;
1848
1819
  }
1849
1820
  getExtension(i) {
1850
1821
  var p;
1851
- return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i && E(this, W, "f").get(i.trim().toLowerCase())) ?? null);
1822
+ return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i && R(this, U, "f").get(i.trim().toLowerCase())) ?? null);
1852
1823
  }
1853
1824
  getAllExtensions(i) {
1854
- return typeof i != "string" ? null : E(this, H, "f").get(i.toLowerCase()) ?? null;
1825
+ return typeof i != "string" ? null : R(this, O, "f").get(i.toLowerCase()) ?? null;
1855
1826
  }
1856
1827
  _freeze() {
1857
1828
  this.define = () => {
1858
1829
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1859
1830
  }, Object.freeze(this);
1860
- for (const i of E(this, H, "f").values())
1831
+ for (const i of R(this, O, "f").values())
1861
1832
  Object.freeze(i);
1862
1833
  return this;
1863
1834
  }
1864
1835
  _getTestState() {
1865
1836
  return {
1866
- types: E(this, F, "f"),
1867
- extensions: E(this, W, "f")
1837
+ types: R(this, q, "f"),
1838
+ extensions: R(this, U, "f")
1868
1839
  };
1869
1840
  }
1870
1841
  }
1871
- F = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap();
1872
- const Ha = new je(Ta, Sa)._freeze();
1873
- function _e(a) {
1874
- return a.includes("/") ? `.${Ha.getExtension(a).toUpperCase()}` : a.toUpperCase();
1842
+ q = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap();
1843
+ const Fa = new _e(Da, Ta)._freeze();
1844
+ function je(a) {
1845
+ return a.includes("/") ? `.${Fa.getExtension(a).toUpperCase()}` : a.toUpperCase();
1875
1846
  }
1876
- function ze(a) {
1877
- const { locale: i, t: p } = ia();
1878
- return { supportedFileTypeList: h(() => {
1847
+ function $e(a) {
1848
+ const { locale: i, t: p } = aa();
1849
+ return { supportedFileTypeList: g(() => {
1879
1850
  const l = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
1880
1851
  return a != null && a.value ? l.format(
1881
1852
  a.value.split(",").map((n) => {
@@ -1887,13 +1858,13 @@ function ze(a) {
1887
1858
  case "video/*":
1888
1859
  return p("videoFiles");
1889
1860
  default:
1890
- return _e(n);
1861
+ return je(n);
1891
1862
  }
1892
1863
  })
1893
1864
  ) : null;
1894
1865
  }) };
1895
1866
  }
1896
- const Da = {
1867
+ const Oa = {
1897
1868
  "en-US": {
1898
1869
  audioFiles: "audio files",
1899
1870
  browseFiles: "Browse files",
@@ -1916,45 +1887,45 @@ const Da = {
1916
1887
  warning: "Aviso"
1917
1888
  }
1918
1889
  };
1919
- function Ee(a) {
1920
- return Ha.getType(a) ?? a;
1890
+ function ze(a) {
1891
+ return Fa.getType(a) ?? a;
1921
1892
  }
1922
- function Re({ maxCount: a, accept: i }) {
1923
- const p = sa({
1893
+ function Ee({ maxCount: a, accept: i }) {
1894
+ const p = ca({
1924
1895
  invalidTypes: !1,
1925
1896
  partiallyInvalidTypes: !1,
1926
1897
  maxCountOverflow: !1
1927
- }), e = sa({
1898
+ }), t = ca({
1928
1899
  dragging: !1,
1929
1900
  error: !1
1930
- }), l = h(() => i.value ? i.value.split(",").map((d) => Ee(d.trim().toLocaleLowerCase())) : void 0);
1901
+ }), l = g(() => i.value ? i.value.split(",").map((d) => ze(d.trim().toLocaleLowerCase())) : void 0);
1931
1902
  function n() {
1932
- e.dragging = !1, e.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
1903
+ t.dragging = !1, t.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
1933
1904
  }
1934
- function y(c, d) {
1935
- if (e.dragging = !0, (!d.dataTransfer.types.includes("Files") || c > a.value) && (p.maxCountOverflow = !0, e.error = !0), !l.value)
1905
+ function _(u, d) {
1906
+ if (t.dragging = !0, (!d.dataTransfer.types.includes("Files") || u > a.value) && (p.maxCountOverflow = !0, t.error = !0), !l.value)
1936
1907
  return;
1937
- let w = 0;
1938
- for (const q of d.dataTransfer.items)
1939
- l.value.includes(q.type) && w++;
1940
- if (w === 0) {
1941
- e.error = !0, p.invalidTypes = !0;
1908
+ let r = 0;
1909
+ for (const I of d.dataTransfer.items)
1910
+ l.value.includes(I.type) && r++;
1911
+ if (r === 0) {
1912
+ t.error = !0, p.invalidTypes = !0;
1942
1913
  return;
1943
1914
  }
1944
- !p.invalidTypes && w !== d.dataTransfer.items.length && (e.error = !0, p.partiallyInvalidTypes = !0);
1915
+ !p.invalidTypes && r !== d.dataTransfer.items.length && (t.error = !0, p.partiallyInvalidTypes = !0);
1945
1916
  }
1946
1917
  return {
1947
- dragState: e,
1918
+ dragState: t,
1948
1919
  dragErrors: p,
1949
1920
  resetDragState: n,
1950
- onDragEnterValidations: y
1921
+ onDragEnterValidations: _
1951
1922
  };
1952
1923
  }
1953
- const Le = ["id", "accept", "disabled", "multiple"], Me = ["aria-label", "tabindex"], Ie = { class: "b-file-uploader__icon" }, Ve = { class: "b-file-uploader__files" }, Se = {
1924
+ const Re = ["id", "accept", "disabled", "multiple"], Le = ["aria-label", "tabindex"], Ie = { class: "b-file-uploader__icon" }, Me = { class: "b-file-uploader__files" }, Ve = {
1954
1925
  model: { prop: "modelValue" },
1955
- i18n: { messages: Da }
1956
- }, Te = /* @__PURE__ */ aa({
1957
- ...Se,
1926
+ i18n: { messages: Oa }
1927
+ }, Se = /* @__PURE__ */ Q({
1928
+ ...Ve,
1958
1929
  __name: "file-uploader",
1959
1930
  props: {
1960
1931
  accept: { default: null },
@@ -1973,260 +1944,278 @@ const Le = ["id", "accept", "disabled", "multiple"], Me = ["aria-label", "tabind
1973
1944
  },
1974
1945
  emits: ["change", "update:modelValue", "error:upload"],
1975
1946
  setup(a, { emit: i }) {
1976
- const { t: p, tc: e } = ia({ messages: Da }), l = i, n = a, { supportedFileTypeList: y } = ze(pa(n, "accept")), c = T(null), d = T(null), w = oa("input"), q = oa("input-error"), { dragState: G, dragErrors: D, resetDragState: Z, onDragEnterValidations: Y } = Re({
1977
- accept: pa(n, "accept"),
1978
- maxCount: pa(n, "maxCount")
1979
- }), X = h(() => {
1980
- var t, r, C;
1947
+ const { t: p, tc: t } = aa({ messages: Oa }), l = i, n = a, _ = (e) => !!e && typeof e.length == "number" && typeof e.item == "function", u = g(() => _(n.modelValue) || n.modelValue instanceof FileList);
1948
+ Ea(() => {
1949
+ u.value || ni(
1950
+ "BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
1951
+ "Use FileList instead.",
1952
+ "2.0.0"
1953
+ );
1954
+ });
1955
+ const { supportedFileTypeList: d } = $e(la(n, "accept")), r = D(null), I = D(null), P = sa("input"), ia = sa("input-error"), { dragState: W, dragErrors: F, resetDragState: Z, onDragEnterValidations: ea } = Ee({
1956
+ accept: la(n, "accept"),
1957
+ maxCount: la(n, "maxCount")
1958
+ }), A = g(() => {
1959
+ var e, c, y;
1981
1960
  return {
1982
1961
  condensed: n.condensed,
1983
1962
  disabled: n.disabled,
1984
- maxCount: O.value ? {
1963
+ maxCount: B.value ? {
1985
1964
  value: n.maxCount,
1986
- error: D.maxCountOverflow || N.value
1965
+ error: F.maxCountOverflow || M.value
1987
1966
  } : null,
1988
1967
  maxDimensions: n.maxDimensions ? {
1989
1968
  value: n.maxDimensions,
1990
- error: (t = c.value) == null ? void 0 : t.some((k) => k.errors.includes(j.ERROR_DIMENSIONS))
1969
+ error: (e = r.value) == null ? void 0 : e.some((k) => k.errors.includes(j.ERROR_DIMENSIONS))
1991
1970
  } : null,
1992
1971
  maxSize: n.maxSize ? {
1993
1972
  value: n.maxSize,
1994
- error: (r = c.value) == null ? void 0 : r.some((k) => k.errors.includes(j.ERROR_SIZE))
1973
+ error: (c = r.value) == null ? void 0 : c.some((k) => k.errors.includes(j.ERROR_SIZE))
1995
1974
  } : null,
1996
- supportedFileTypes: y.value ? {
1997
- value: y.value,
1998
- error: D.invalidTypes || D.partiallyInvalidTypes || ((C = c.value) == null ? void 0 : C.some((k) => k.errors.includes(j.ERROR_TYPE)))
1975
+ supportedFileTypes: d.value ? {
1976
+ value: d.value,
1977
+ error: F.invalidTypes || F.partiallyInvalidTypes || ((y = r.value) == null ? void 0 : y.some((k) => k.errors.includes(j.ERROR_TYPE)))
1999
1978
  } : null
2000
1979
  };
2001
- }), B = T(), J = h(() => ({
2002
- [`b-file-uploader--${Q.DISABLED}`]: n.disabled,
2003
- [`b-file-uploader--${Q.DRAG_OVER}`]: G.dragging,
2004
- [`b-file-uploader--${Q.ERROR}`]: A.value,
1980
+ }), H = D(), ta = g(() => ({
1981
+ [`b-file-uploader--${K.DISABLED}`]: n.disabled,
1982
+ [`b-file-uploader--${K.DRAG_OVER}`]: W.dragging,
1983
+ [`b-file-uploader--${K.ERROR}`]: $.value,
2005
1984
  "b-file-uploader--condensed": n.condensed
2006
- })), O = h(() => n.maxCount > 1), ea = h(() => {
2007
- var t;
2008
- return n.maxCount && ((t = c.value) == null ? void 0 : t.length) >= n.maxCount;
2009
- }), ta = h(() => {
2010
- var t;
2011
- return (t = c.value) == null ? void 0 : t.some((r) => r.state === "loading");
2012
- }), A = h(() => !!n.errorMessage || G.error), N = h(() => {
2013
- var t;
2014
- return ((t = c.value) == null ? void 0 : t.length) > n.maxCount;
2015
- }), M = T(!1), I = h(() => {
2016
- var t;
2017
- return (t = c.value) == null ? void 0 : t.some((r) => r.state === "error");
1985
+ })), B = g(() => n.maxCount > 1), na = g(() => {
1986
+ var e;
1987
+ return n.maxCount && ((e = r.value) == null ? void 0 : e.length) >= n.maxCount;
1988
+ }), G = g(() => {
1989
+ var e;
1990
+ return (e = r.value) == null ? void 0 : e.some((c) => c.state === "loading");
1991
+ }), $ = g(() => !!n.errorMessage || W.error), M = g(() => {
1992
+ var e;
1993
+ return ((e = r.value) == null ? void 0 : e.length) > n.maxCount;
1994
+ }), Y = D(!1), Ha = g(() => {
1995
+ var e;
1996
+ return (e = r.value) == null ? void 0 : e.some((c) => c.state === "error");
2018
1997
  });
2019
- la(I, (t) => {
2020
- ta.value || l("error:upload", t);
1998
+ X(Ha, (e) => {
1999
+ G.value || l("error:upload", e);
2021
2000
  });
2022
- function P(t) {
2023
- c.value = c.value.filter(({ id: r }) => r !== t.id);
2001
+ function da(e) {
2002
+ r.value = r.value.filter(({ id: c }) => c !== e.id);
2024
2003
  }
2025
- function ca(t) {
2026
- const r = sa({
2027
- id: oa("file"),
2028
- data: t,
2004
+ function pa(e) {
2005
+ const c = ca({
2006
+ id: sa("file"),
2007
+ data: e,
2029
2008
  errors: [],
2030
2009
  progress: null,
2031
- state: R.LOADING,
2032
- type: ji(t)
2010
+ state: L.LOADING,
2011
+ type: _i(e)
2033
2012
  });
2034
- return zi(r, n.accept, n.maxDimensions), r;
2013
+ return $i(c, n.accept, n.maxDimensions), c;
2035
2014
  }
2036
- function Oa(t) {
2037
- var r;
2038
- ((r = c.value) == null ? void 0 : r.length) === n.maxCount && t.preventDefault();
2015
+ function qa(e) {
2016
+ var c;
2017
+ ((c = r.value) == null ? void 0 : c.length) === n.maxCount && e.preventDefault();
2039
2018
  }
2040
- function da(t) {
2041
- if (n.maxCount === 1 && t.length > n.maxCount) {
2042
- na(), Z();
2019
+ function ra(e) {
2020
+ if (n.maxCount === 1 && e.length > n.maxCount) {
2021
+ oa(), Z();
2043
2022
  return;
2044
2023
  }
2045
- O.value ? c.value = [...c.value || [], ...Array.from(t).map((r) => ca(r))] : c.value = [ca(t[0])];
2024
+ B.value ? r.value = [...r.value || [], ...Array.from(e).map((c) => pa(c))] : r.value = [pa(e[0])];
2046
2025
  }
2047
- function Fa(t) {
2048
- var C, k;
2026
+ function Za(e) {
2027
+ var y, k;
2049
2028
  if (n.disabled)
2050
2029
  return;
2051
- B.value = t.target;
2052
- const r = (((C = t.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + (((k = c.value) == null ? void 0 : k.length) ?? 0);
2053
- Y(r, t);
2030
+ H.value = e.target;
2031
+ const c = (((y = e.dataTransfer.items) == null ? void 0 : y.length) ?? 0) + (((k = r.value) == null ? void 0 : k.length) ?? 0);
2032
+ ea(c, e);
2054
2033
  }
2055
- function na() {
2056
- B.value = null;
2034
+ function oa() {
2035
+ H.value = null;
2057
2036
  }
2058
- function qa(t) {
2059
- B.value === t.target && (na(), Z());
2037
+ function Aa(e) {
2038
+ H.value === e.target && (oa(), Z());
2060
2039
  }
2061
- function Za(t) {
2062
- t.preventDefault(), n.disabled && (t.dataTransfer.dropEffect = "none");
2040
+ function Ba(e) {
2041
+ e.preventDefault(), n.disabled && (e.dataTransfer.dropEffect = "none");
2063
2042
  }
2064
- function Ba(t) {
2065
- var r;
2066
- n.disabled || (!D.invalidTypes && ((r = t.dataTransfer.files) != null && r.length) && da(t.dataTransfer.files), na(), Z());
2043
+ function Na(e) {
2044
+ var c;
2045
+ n.disabled || (!F.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && ra(e.dataTransfer.files), oa(), Z());
2067
2046
  }
2068
- function Aa() {
2069
- var t;
2070
- (t = d.value.files) != null && t.length && da(d.value.files), d.value.value = "";
2047
+ function Ua() {
2048
+ var e;
2049
+ (e = I.value.files) != null && e.length && ra(I.value.files), I.value.value = "";
2071
2050
  }
2072
- function Na(t) {
2073
- const r = n.maxCount && t.length <= n.maxCount;
2074
- M.value = !r;
2051
+ X(
2052
+ () => n.modelValue,
2053
+ (e) => {
2054
+ if (e && u.value) {
2055
+ const c = e, y = Array.from(c);
2056
+ r.value = y.map((k) => pa(k));
2057
+ }
2058
+ },
2059
+ { immediate: !0 }
2060
+ );
2061
+ function Pa(e) {
2062
+ const c = n.maxCount && e.length <= n.maxCount;
2063
+ Y.value = !c;
2075
2064
  }
2076
- function Pa(t) {
2077
- n.maxSize && t.forEach((r) => {
2078
- const C = r;
2079
- C.data.size > n.maxSize && (C.state = R.ERROR, C.errors.push(j.ERROR_SIZE));
2065
+ function Wa(e) {
2066
+ n.maxSize && e.forEach((c) => {
2067
+ const y = c;
2068
+ y.data.size > n.maxSize && (y.state = L.ERROR, y.errors.push(j.ERROR_SIZE));
2080
2069
  });
2081
2070
  }
2082
- function Ua(t) {
2083
- const r = t.filter(
2084
- ({ errors: C }) => !C.includes(j.ERROR_LOAD) && !C.includes(j.ERROR_SIZE)
2071
+ function Ga(e) {
2072
+ const c = e.filter(
2073
+ ({ errors: y }) => !y.includes(j.ERROR_LOAD) && !y.includes(j.ERROR_SIZE)
2085
2074
  );
2086
- if (r.length) {
2087
- const C = new DataTransfer();
2088
- return r.forEach(({ data: k }) => C.items.add(k)), C.files;
2075
+ if (c.length) {
2076
+ const y = new DataTransfer();
2077
+ return c.forEach(({ data: k }) => y.items.add(k)), y.files;
2089
2078
  }
2090
2079
  }
2091
- return la(c, (t) => {
2092
- if (t) {
2093
- Na(t), Pa(t);
2094
- const r = Ua(t);
2095
- l("change", r), l("update:modelValue", r);
2080
+ return X(r, (e) => {
2081
+ if (e) {
2082
+ Pa(e), Wa(e);
2083
+ const c = Ga(e);
2084
+ l("change", c), l("update:modelValue", c);
2096
2085
  } else
2097
2086
  l("change"), l("update:modelValue");
2098
- }), (t, r) => {
2099
- var C;
2100
- return s(), v("div", {
2101
- class: S(["b-file-uploader", J.value])
2087
+ }), (e, c) => {
2088
+ var y;
2089
+ return s(), x("div", {
2090
+ class: T(["b-file-uploader", ta.value])
2102
2091
  }, [
2103
- V(o(ci), {
2092
+ S(o(mi), {
2104
2093
  class: "b-file-uploader__label",
2105
- for: o(w),
2106
- label: t.label,
2107
- optional: t.optional,
2108
- required: t.required,
2109
- "tooltip-text": t.tooltipText
2094
+ for: o(P),
2095
+ label: e.label,
2096
+ optional: e.optional,
2097
+ required: e.required,
2098
+ "tooltip-text": e.tooltipText
2110
2099
  }, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
2111
2100
  m("input", {
2112
- id: o(w),
2101
+ id: o(P),
2113
2102
  ref_key: "inputRef",
2114
- ref: d,
2103
+ ref: I,
2115
2104
  type: "file",
2116
2105
  tabindex: "-1",
2117
2106
  "data-testid": "input",
2118
2107
  class: "b-file-uploader__input",
2119
- accept: t.accept,
2120
- disabled: t.disabled,
2121
- multiple: O.value,
2122
- onChange: Aa,
2123
- onClick: Oa
2124
- }, null, 40, Le),
2125
- ea.value ? f("", !0) : (s(), v("div", {
2108
+ accept: e.accept,
2109
+ disabled: e.disabled,
2110
+ multiple: B.value,
2111
+ onChange: Ua,
2112
+ onClick: qa
2113
+ }, null, 40, Re),
2114
+ na.value ? f("", !0) : (s(), x("div", {
2126
2115
  key: 0,
2127
2116
  class: "b-file-uploader__area",
2128
2117
  "aria-label": o(p)("dropArea"),
2129
- tabindex: t.disabled ? -1 : 0,
2130
- onClick: r[0] || (r[0] = (k) => d.value.click()),
2131
- onDragenter: U(Fa, ["stop", "prevent"]),
2132
- onDragleave: U(qa, ["stop", "prevent"]),
2133
- onDrop: U(Ba, ["stop", "prevent"]),
2134
- onDragover: Za,
2118
+ tabindex: e.disabled ? -1 : 0,
2119
+ onClick: c[0] || (c[0] = (k) => I.value.click()),
2120
+ onDragenter: N(Za, ["stop", "prevent"]),
2121
+ onDragleave: N(Aa, ["stop", "prevent"]),
2122
+ onDrop: N(Na, ["stop", "prevent"]),
2123
+ onDragover: Ba,
2135
2124
  onKeydownCapture: [
2136
- r[1] || (r[1] = ma(U((k) => d.value.click(), ["prevent"]), ["enter"])),
2137
- r[2] || (r[2] = ma(U((k) => d.value.click(), ["prevent"]), ["space"]))
2125
+ c[1] || (c[1] = ua(N((k) => I.value.click(), ["prevent"]), ["enter"])),
2126
+ c[2] || (c[2] = ua(N((k) => I.value.click(), ["prevent"]), ["space"]))
2138
2127
  ]
2139
2128
  }, [
2140
2129
  m("div", Ie, [
2141
- A.value ? (s(), b(o(Ra), {
2130
+ $.value ? (s(), w(o(La), {
2142
2131
  key: 0,
2143
2132
  "svg-title": o(p)("warning")
2144
- }, null, 8, ["svg-title"])) : (s(), b(o(vi), {
2133
+ }, null, 8, ["svg-title"])) : (s(), w(o(gi), {
2145
2134
  key: 1,
2146
2135
  "svg-title": o(p)("upload")
2147
2136
  }, null, 8, ["svg-title"]))
2148
2137
  ]),
2149
- t.condensed ? f("", !0) : (s(), v(ua, { key: 0 }, [
2150
- V(o(z), {
2138
+ e.condensed ? f("", !0) : (s(), x(va, { key: 0 }, [
2139
+ S(o(z), {
2151
2140
  el: "span",
2152
2141
  strongest: "",
2153
2142
  class: "b-file-uploader__title"
2154
2143
  }, {
2155
- default: g(() => [
2156
- $(u(o(e)("dropFiles", t.maxCount)), 1)
2144
+ default: b(() => [
2145
+ C(v(o(t)("dropFiles", e.maxCount)), 1)
2157
2146
  ]),
2158
2147
  _: 1
2159
2148
  }),
2160
- t.description ? (s(), b(o(z), {
2149
+ e.description ? (s(), w(o(z), {
2161
2150
  key: 0,
2162
2151
  el: "span",
2163
2152
  class: "b-file-uploader__description"
2164
2153
  }, {
2165
- default: g(() => [
2166
- $(u(t.description), 1)
2154
+ default: b(() => [
2155
+ C(v(e.description), 1)
2167
2156
  ]),
2168
2157
  _: 1
2169
2158
  })) : f("", !0),
2170
- V(o(za), va(Qa(X.value)), null, 16)
2159
+ S(o(za), fa(ai(A.value)), null, 16)
2171
2160
  ], 64)),
2172
- V(o(K), {
2173
- disabled: t.disabled,
2174
- variant: t.condensed ? "tertiary" : "secondary",
2161
+ S(o(J), {
2162
+ disabled: e.disabled,
2163
+ variant: e.condensed ? "tertiary" : "secondary",
2175
2164
  condensed: "",
2176
2165
  tabindex: "-1",
2177
2166
  class: "b-file-uploader__button"
2178
2167
  }, {
2179
- default: g(() => [
2180
- $(u(o(p)("browseFiles")), 1)
2168
+ default: b(() => [
2169
+ C(v(o(p)("browseFiles")), 1)
2181
2170
  ]),
2182
2171
  _: 1
2183
2172
  }, 8, ["disabled", "variant"])
2184
- ], 40, Me)),
2185
- A.value && t.errorMessage ? (s(), b(o(di), {
2173
+ ], 40, Le)),
2174
+ $.value && e.errorMessage ? (s(), w(o(ui), {
2186
2175
  key: 1,
2187
- id: o(q),
2188
- "error-message": t.errorMessage,
2176
+ id: o(ia),
2177
+ "error-message": e.errorMessage,
2189
2178
  class: "b-file-uploader__error-message"
2190
2179
  }, null, 8, ["id", "error-message"])) : f("", !0),
2191
- t.condensed && t.description ? (s(), b(o(z), {
2180
+ e.condensed && e.description ? (s(), w(o(z), {
2192
2181
  key: 2,
2193
2182
  el: "span",
2194
2183
  class: "b-file-uploader__description b-file-uploader__description--condensed"
2195
2184
  }, {
2196
- default: g(() => [
2197
- $(u(t.description), 1)
2185
+ default: b(() => [
2186
+ C(v(e.description), 1)
2198
2187
  ]),
2199
2188
  _: 1
2200
2189
  })) : f("", !0),
2201
- t.condensed ? (s(), b(o(za), va(L({ key: 3 }, X.value)), null, 16)) : f("", !0),
2202
- N.value ? (s(), b(o(ei), {
2190
+ e.condensed ? (s(), w(o(za), fa(V({ key: 3 }, A.value)), null, 16)) : f("", !0),
2191
+ M.value ? (s(), w(o(ti), {
2203
2192
  key: 4,
2204
2193
  type: "critical"
2205
2194
  }, {
2206
- description: g(() => [
2207
- $(u(o(p)("youHaveExceededTheMaximum", { count: n.maxCount })), 1)
2195
+ description: b(() => [
2196
+ C(v(o(p)("youHaveExceededTheMaximum", { count: n.maxCount })), 1)
2208
2197
  ]),
2209
- default: g(() => [
2210
- $(u(o(p)("tooManyFiles")) + " ", 1)
2198
+ default: b(() => [
2199
+ C(v(o(p)("tooManyFiles")) + " ", 1)
2211
2200
  ]),
2212
2201
  _: 1
2213
2202
  })) : f("", !0),
2214
- Ea(m("div", Ve, [
2215
- (s(!0), v(ua, null, ai(c.value, (k) => (s(), b(o(Ce), {
2203
+ Ra(m("div", Me, [
2204
+ (s(!0), x(va, null, ii(r.value, (k) => (s(), w(o(ye), {
2216
2205
  key: k.id,
2217
2206
  file: k,
2218
- "supported-file-types": o(y),
2219
- onCancel: (Wa) => P(k),
2220
- onRemove: (Wa) => P(k)
2207
+ "supported-file-types": o(d),
2208
+ onCancel: (Ya) => da(k),
2209
+ onRemove: (Ya) => da(k)
2221
2210
  }, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
2222
2211
  ], 512), [
2223
- [ii, (C = c.value) == null ? void 0 : C.length]
2212
+ [ei, (y = r.value) == null ? void 0 : y.length]
2224
2213
  ])
2225
2214
  ], 2);
2226
2215
  };
2227
2216
  }
2228
- }), at = /* @__PURE__ */ _(Te, [["__scopeId", "data-v-19f4b656"]]);
2217
+ }), at = /* @__PURE__ */ E(Se, [["__scopeId", "data-v-fff9637b"]]);
2229
2218
  export {
2230
2219
  at as f
2231
2220
  };
2232
- //# sourceMappingURL=file-uploader.BLJpDgAZ.js.map
2221
+ //# sourceMappingURL=file-uploader.DJLGEmtF.js.map