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