@adyen/bento-vue3 1.48.0 → 1.49.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 (168) hide show
  1. package/dist/@types/index.d.ts +50 -871
  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/card.css +1 -1
  7. package/dist/assets/data-grid.css +1 -1
  8. package/dist/assets/dialog-page.css +1 -1
  9. package/dist/assets/file-uploader.css +1 -1
  10. package/dist/assets/inspector.css +1 -1
  11. package/dist/assets/menu.css +1 -1
  12. package/dist/assets/modal-fullscreen.css +1 -1
  13. package/dist/assets/popover.css +1 -1
  14. package/dist/assets/sidepanel.css +1 -1
  15. package/dist/checkbox.js +2 -2
  16. package/dist/chunks/{action-bar.DWekSxPr.js → action-bar.r_Vt4XIu.js} +4 -4
  17. package/dist/chunks/{action-bar.DWekSxPr.js.map → action-bar.r_Vt4XIu.js.map} +1 -1
  18. package/dist/chunks/{base-modal.DOrcARK1.js → base-modal.Bis0B1AC.js} +2 -2
  19. package/dist/chunks/{base-modal.DOrcARK1.js.map → base-modal.Bis0B1AC.js.map} +1 -1
  20. package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js → button-actions-with-menu.C5LguXWO.js} +3 -3
  21. package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js.map → button-actions-with-menu.C5LguXWO.js.map} +1 -1
  22. package/dist/chunks/{checkbox-group.C-EmVp5t.js → checkbox-group.CxWYSBy1.js} +4 -4
  23. package/dist/chunks/{checkbox-group.C-EmVp5t.js.map → checkbox-group.CxWYSBy1.js.map} +1 -1
  24. package/dist/chunks/{checkbox.BOtqaTUl.js → checkbox.bXN3Yann.js} +3 -3
  25. package/dist/chunks/{checkbox.BOtqaTUl.js.map → checkbox.bXN3Yann.js.map} +1 -1
  26. package/dist/chunks/{code-snippet.C9fCiM5V.js → code-snippet.baKzBaM6.js} +5 -5
  27. package/dist/chunks/{code-snippet.C9fCiM5V.js.map → code-snippet.baKzBaM6.js.map} +1 -1
  28. package/dist/chunks/{controls-group.BeK9igGT.js → controls-group.BnbQO34k.js} +2 -2
  29. package/dist/chunks/{controls-group.BeK9igGT.js.map → controls-group.BnbQO34k.js.map} +1 -1
  30. package/dist/chunks/{copy.HpUjy6OL.js → copy.CXCdp5ly.js} +2 -2
  31. package/dist/chunks/{copy.HpUjy6OL.js.map → copy.CXCdp5ly.js.map} +1 -1
  32. package/dist/chunks/currency.DagWnTry.js.map +1 -1
  33. package/dist/chunks/{dashboard-section.DoGuJKz_.js → dashboard-section.B87x4XsH.js} +3 -3
  34. package/dist/chunks/{dashboard-section.DoGuJKz_.js.map → dashboard-section.B87x4XsH.js.map} +1 -1
  35. package/dist/chunks/{dashed-underline.DZuyR-N7.js → dashed-underline.dWsHmwUp.js} +3 -3
  36. package/dist/chunks/{dashed-underline.DZuyR-N7.js.map → dashed-underline.dWsHmwUp.js.map} +1 -1
  37. package/dist/chunks/{data-grid-template.BpJbblNT.js → data-grid-template.CZrGeSxR.js} +2 -2
  38. package/dist/chunks/{data-grid-template.BpJbblNT.js.map → data-grid-template.CZrGeSxR.js.map} +1 -1
  39. package/dist/chunks/{data-grid.CdTcZ3DP.js → data-grid.Duvh6mRu.js} +977 -971
  40. package/dist/chunks/data-grid.Duvh6mRu.js.map +1 -0
  41. package/dist/chunks/{date-picker.CjbhJWGH.js → date-picker.DXrMLxD0.js} +3 -3
  42. package/dist/chunks/{date-picker.CjbhJWGH.js.map → date-picker.DXrMLxD0.js.map} +1 -1
  43. package/dist/chunks/{date-range-picker.CoonfpYT.js → date-range-picker.D7BDFoqM.js} +6 -6
  44. package/dist/chunks/{date-range-picker.CoonfpYT.js.map → date-range-picker.D7BDFoqM.js.map} +1 -1
  45. package/dist/chunks/{dropdown-tag.B5QFkTl_.js → dropdown-tag.DrBFdX2o.js} +3 -3
  46. package/dist/chunks/{dropdown-tag.B5QFkTl_.js.map → dropdown-tag.DrBFdX2o.js.map} +1 -1
  47. package/dist/chunks/{dropdown.BN6DALZa.js → dropdown.CWq-VlFX.js} +5 -5
  48. package/dist/chunks/{dropdown.BN6DALZa.js.map → dropdown.CWq-VlFX.js.map} +1 -1
  49. package/dist/chunks/{error-message.X-gxnQcx.js → error-message.B3z5WkLF.js} +2 -2
  50. package/dist/chunks/{error-message.X-gxnQcx.js.map → error-message.B3z5WkLF.js.map} +1 -1
  51. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  52. package/dist/chunks/{file-uploader.CLZ1rPz0.js → file-uploader.NbsEgoj1.js} +441 -432
  53. package/dist/chunks/{file-uploader.CLZ1rPz0.js.map → file-uploader.NbsEgoj1.js.map} +1 -1
  54. package/dist/chunks/{filter-bar.zvHeHs9B.js → filter-bar.DP4SHAQj.js} +15 -14
  55. package/dist/chunks/{filter-bar.zvHeHs9B.js.map → filter-bar.DP4SHAQj.js.map} +1 -1
  56. package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DPJj05sV.js} +6 -3
  57. package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DPJj05sV.js.map} +1 -1
  58. package/dist/chunks/{header.CUhyy9NL.js → header.BBIJHMkv.js} +3 -3
  59. package/dist/chunks/{header.CUhyy9NL.js.map → header.BBIJHMkv.js.map} +1 -1
  60. package/dist/chunks/{index.BMkVmbZj.js → index.BS3BeXQJ.js} +8 -7
  61. package/dist/chunks/{index.BMkVmbZj.js.map → index.BS3BeXQJ.js.map} +1 -1
  62. package/dist/chunks/{info-icon-with-popover.NzQciGvf.js → info-icon-with-popover.DbIAJO2-.js} +2 -2
  63. package/dist/chunks/{info-icon-with-popover.NzQciGvf.js.map → info-icon-with-popover.DbIAJO2-.js.map} +1 -1
  64. package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.DQn8-VSp.js} +2 -2
  65. package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.DQn8-VSp.js.map} +1 -1
  66. package/dist/chunks/{input-field-password.B4HgGilX.js → input-field-password.SSiNunUz.js} +5 -5
  67. package/dist/chunks/{input-field-password.B4HgGilX.js.map → input-field-password.SSiNunUz.js.map} +1 -1
  68. package/dist/chunks/{input-field-phone-number.CpY2BLfO.js → input-field-phone-number._PCiyrci.js} +2 -2
  69. package/dist/chunks/{input-field-phone-number.CpY2BLfO.js.map → input-field-phone-number._PCiyrci.js.map} +1 -1
  70. package/dist/chunks/{input-field.DQKiMtZo.js → input-field.DhDfq9Er.js} +3 -3
  71. package/dist/chunks/{input-field.DQKiMtZo.js.map → input-field.DhDfq9Er.js.map} +1 -1
  72. package/dist/chunks/inspector.types.6P_ZowVx.js +184 -0
  73. package/dist/chunks/inspector.types.6P_ZowVx.js.map +1 -0
  74. package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.BAz7JrXo.js} +2 -2
  75. package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.BAz7JrXo.js.map} +1 -1
  76. package/dist/chunks/{listbox-option-tag.CFNRfAtf.js → listbox-option-tag.DIk4F59J.js} +2 -2
  77. package/dist/chunks/{listbox-option-tag.CFNRfAtf.js.map → listbox-option-tag.DIk4F59J.js.map} +1 -1
  78. package/dist/chunks/{menu.DIKy_Pyt.js → menu.DKCUuV6a.js} +2 -2
  79. package/dist/chunks/{menu.DIKy_Pyt.js.map → menu.DKCUuV6a.js.map} +1 -1
  80. package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js → modal-fullscreen.C9FhKsf9.js} +2 -2
  81. package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js.map → modal-fullscreen.C9FhKsf9.js.map} +1 -1
  82. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js → modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js} +2 -2
  83. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js.map → modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js.map} +1 -1
  84. package/dist/chunks/{pagination.DogGVwa2.js → pagination.DdTcv8B6.js} +2 -2
  85. package/dist/chunks/{pagination.DogGVwa2.js.map → pagination.DdTcv8B6.js.map} +1 -1
  86. package/dist/chunks/{popover.NEP6wuPa.js → popover.BHGbUyMF.js} +2 -2
  87. package/dist/chunks/{popover.NEP6wuPa.js.map → popover.BHGbUyMF.js.map} +1 -1
  88. package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.BvGYgqiE.js} +2 -2
  89. package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.BvGYgqiE.js.map} +1 -1
  90. package/dist/chunks/{promo-banner.DTH4CZ_2.js → promo-banner.CKnonHmq.js} +2 -2
  91. package/dist/chunks/{promo-banner.DTH4CZ_2.js.map → promo-banner.CKnonHmq.js.map} +1 -1
  92. package/dist/chunks/{radio-group.BLHcC22p.js → radio-group.CivaJaaQ.js} +4 -4
  93. package/dist/chunks/{radio-group.BLHcC22p.js.map → radio-group.CivaJaaQ.js.map} +1 -1
  94. package/dist/chunks/{search-bar.CatznIEM.js → search-bar.BixBEf58.js} +3 -3
  95. package/dist/chunks/{search-bar.CatznIEM.js.map → search-bar.BixBEf58.js.map} +1 -1
  96. package/dist/chunks/{secondary-nav.LIzkbQY1.js → secondary-nav.DG8xB2Mj.js} +3 -3
  97. package/dist/chunks/{secondary-nav.LIzkbQY1.js.map → secondary-nav.DG8xB2Mj.js.map} +1 -1
  98. package/dist/chunks/{segmented-control.DOxyrdMz.js → segmented-control.DKWpxDho.js} +2 -2
  99. package/dist/chunks/{segmented-control.DOxyrdMz.js.map → segmented-control.DKWpxDho.js.map} +1 -1
  100. package/dist/chunks/{selection-card-group.BKatprYB.js → selection-card-group.B9nOBntu.js} +4 -4
  101. package/dist/chunks/{selection-card-group.BKatprYB.js.map → selection-card-group.B9nOBntu.js.map} +1 -1
  102. package/dist/chunks/{sidepanel.Be3uyOVd.js → sidepanel.dFspFFRG.js} +2 -2
  103. package/dist/chunks/{sidepanel.Be3uyOVd.js.map → sidepanel.dFspFFRG.js.map} +1 -1
  104. package/dist/chunks/{structured-list-item.BwgEJywb.js → structured-list-item.C9vL7KwG.js} +4 -4
  105. package/dist/chunks/{structured-list-item.BwgEJywb.js.map → structured-list-item.C9vL7KwG.js.map} +1 -1
  106. package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js → summary-grid-item-custom.B0SvlYn-.js} +4 -4
  107. package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js.map → summary-grid-item-custom.B0SvlYn-.js.map} +1 -1
  108. package/dist/chunks/{tag.Chr4TP7d.js → tag.Bmw9RaOG.js} +2 -2
  109. package/dist/chunks/{tag.Chr4TP7d.js.map → tag.Bmw9RaOG.js.map} +1 -1
  110. package/dist/chunks/{textarea.BLhKC_iw.js → textarea.CrQk0SR0.js} +2 -2
  111. package/dist/chunks/{textarea.BLhKC_iw.js.map → textarea.CrQk0SR0.js.map} +1 -1
  112. package/dist/chunks/{timeline-item.BVm2YscV.js → timeline-item.Cs8JBNAA.js} +4 -4
  113. package/dist/chunks/{timeline-item.BVm2YscV.js.map → timeline-item.Cs8JBNAA.js.map} +1 -1
  114. package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.DS1ok8gh.js} +2 -2
  115. package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.DS1ok8gh.js.map} +1 -1
  116. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js → tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js} +4 -4
  117. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js.map} +1 -1
  118. package/dist/chunks/{use-cached-selected-values.CoelUIEy.js → use-cached-selected-values.D82-YBdB.js} +2 -2
  119. package/dist/chunks/{use-cached-selected-values.CoelUIEy.js.map → use-cached-selected-values.D82-YBdB.js.map} +1 -1
  120. package/dist/code-snippet.js +1 -1
  121. package/dist/dashboard-template.js +1 -1
  122. package/dist/dashed-underline.js +1 -1
  123. package/dist/data-grid-template.js +1 -1
  124. package/dist/data-grid.js +1 -1
  125. package/dist/date-picker.js +1 -1
  126. package/dist/date-range-picker.js +1 -1
  127. package/dist/dropdown.js +3 -3
  128. package/dist/file-uploader.js +1 -1
  129. package/dist/filter-bar.js +1 -1
  130. package/dist/focus-trap.js +1 -1
  131. package/dist/header.js +1 -1
  132. package/dist/index.js +42 -42
  133. package/dist/info-icon.js +1 -1
  134. package/dist/input-field-password.js +1 -1
  135. package/dist/input-field-phone-number.js +1 -1
  136. package/dist/input-field.js +1 -1
  137. package/dist/inspector.js +1 -1
  138. package/dist/internal.js +8 -8
  139. package/dist/layout.js +1 -1
  140. package/dist/menu.js +1 -1
  141. package/dist/modal-fullscreen.js +1 -1
  142. package/dist/modal.js +2 -2
  143. package/dist/pagination.js +1 -1
  144. package/dist/popover.js +1 -1
  145. package/dist/popper-container.js +1 -1
  146. package/dist/promo-banner.js +1 -1
  147. package/dist/radio-group.js +1 -1
  148. package/dist/search-bar.js +2 -2
  149. package/dist/secondary-nav.js +1 -1
  150. package/dist/segmented-control.js +1 -1
  151. package/dist/selection-card.js +1 -1
  152. package/dist/sidepanel.js +1 -1
  153. package/dist/structured-list.js +1 -1
  154. package/dist/styles/bento-dark.css +1 -0
  155. package/dist/styles/bento-light.css +1 -0
  156. package/dist/styles/bento.css +1 -0
  157. package/dist/styles/legacy.css +1 -0
  158. package/dist/styles/styleguide.css +1 -0
  159. package/dist/summary-grid.js +1 -1
  160. package/dist/tag.js +1 -1
  161. package/dist/textarea.js +1 -1
  162. package/dist/timeline.js +1 -1
  163. package/dist/tutorial.js +1 -1
  164. package/dist/web-types.json +1 -1
  165. package/package.json +5 -4
  166. package/dist/chunks/data-grid.CdTcZ3DP.js.map +0 -1
  167. package/dist/chunks/inspector.types.C-Qos3dV.js +0 -124
  168. package/dist/chunks/inspector.types.C-Qos3dV.js.map +0 -1
@@ -1,148 +1,148 @@
1
- import { createElementBlock as v, openBlock as s, mergeProps as I, createCommentVNode as f, createElementVNode as r, toDisplayString as u, defineComponent as ia, createBlock as h, unref as o, Transition as Pa, withCtx as g, renderSlot as ca, TransitionGroup as Ua, ref as T, onUnmounted as Wa, onMounted as Ga, computed as b, watch as _a, normalizeClass as S, createVNode as M, resolveDynamicComponent as Ya, withDirectives as za, createTextVNode as $, reactive as la, toRef as pa, withKeys as da, withModifiers as N, Fragment as ra, normalizeProps as ma, guardReactiveProps as Xa, renderList as Ja, vShow as Ka } from "vue";
1
+ import { createElementBlock as v, openBlock as s, mergeProps as L, createCommentVNode as f, createElementVNode as m, toDisplayString as u, defineComponent as aa, createBlock as b, unref as o, Transition as Wa, withCtx as g, renderSlot as ra, TransitionGroup as Ga, ref as T, onUnmounted as Ya, onMounted as Xa, computed as h, watch as la, normalizeClass as S, createVNode as M, resolveDynamicComponent as Ja, 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 Ka, renderList as Qa, vShow as ai } from "vue";
2
2
  import { _ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
- import { W as Ea } from "./warning-filled.tTkVob0l.js";
4
- import { B as Qa } from "./alert.Dd2DYCZ1.js";
5
- import { B as Q } from "./button.Cneb6rPP.js";
3
+ import { W as Ra } from "./warning-filled.tTkVob0l.js";
4
+ import { B as ii } from "./alert.Dd2DYCZ1.js";
5
+ import { B as K } from "./button.Cneb6rPP.js";
6
6
  import { B as z } from "./typography.DN5eC5ch.js";
7
- import { u as ea } from "./i18n.D9azDLPe.js";
7
+ import { u as ia } from "./i18n.D9azDLPe.js";
8
8
  import { g as oa } from "./generate-uid.NJ8tVoha.js";
9
- import { i as Ra } from "./index.CWuzEfiV.js";
10
- import { C as ai } from "./checkmark-circle-fill.g_tcBhFJ.js";
11
- import { C as ii } from "./cross.BZYw4R3N.js";
12
- import { R as ei } from "./refresh.SzRxQ44W.js";
9
+ import { i as La } from "./index.CWuzEfiV.js";
10
+ import { C as ei } from "./checkmark-circle-fill.g_tcBhFJ.js";
11
+ import { C as ti } from "./cross.BZYw4R3N.js";
12
+ import { R as ni } from "./refresh.SzRxQ44W.js";
13
13
  import "./events.FNmSWp_P.js";
14
- import { B as ti } from "./tooltip.2MOlGHD9.js";
15
- import { B as ni } from "./link.ClFi8uSm.js";
16
- import { B as pi } from "./loading-indicator.DEepb9Wl.js";
17
- import { F as oi, E as li } from "./error-message.X-gxnQcx.js";
14
+ import { B as pi } from "./tooltip.DS1ok8gh.js";
15
+ import { B as oi } from "./link.ClFi8uSm.js";
16
+ import { B as li } from "./loading-indicator.DEepb9Wl.js";
17
+ import { F as si, E as ci } from "./error-message.B3z5WkLF.js";
18
18
  import "../assets/file-uploader.css";
19
- let ua = 0;
20
- const si = {
19
+ let fa = 0;
20
+ const di = {
21
21
  beforeCreate() {
22
- this.uuid = ua.toString(), ua += 1;
22
+ this.uuid = fa.toString(), fa += 1;
23
23
  }
24
- }, ci = { key: 0 };
25
- function di(a, i, n, e, l, t) {
26
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
24
+ }, ri = { key: 0 };
25
+ function mi(a, i, p, e, l, n) {
26
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
27
27
  class: "ui-assets-icons-16",
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
29
  width: "16",
30
30
  height: "16",
31
31
  fill: "none"
32
32
  }), [
33
- a.$attrs["svg-title"] ? (s(), v("title", ci, u(a.$attrs["svg-title"]), 1)) : f("", !0),
34
- i[0] || (i[0] = r("path", {
33
+ a.$attrs["svg-title"] ? (s(), v("title", ri, u(a.$attrs["svg-title"]), 1)) : f("", !0),
34
+ i[0] || (i[0] = m("path", {
35
35
  fill: "#00112C",
36
36
  d: "M8.00011 0.939453L12.0608 5.00011L11.0001 6.06077L8.75 3.81066V11.75H7.25V3.81089L5.00011 6.06077L3.93945 5.00011L8.00011 0.939453Z"
37
37
  }, null, -1)),
38
- i[1] || (i[1] = r("path", {
38
+ i[1] || (i[1] = m("path", {
39
39
  fill: "#00112C",
40
40
  d: "M2.75 12.5V10.25H1.25V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V10.25H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5Z"
41
41
  }, null, -1))
42
42
  ], 16);
43
43
  }
44
- const ri = /* @__PURE__ */ _(si, [["render", di]]), mi = /* @__PURE__ */ ia({
44
+ const ui = /* @__PURE__ */ _(di, [["render", mi]]), vi = /* @__PURE__ */ aa({
45
45
  __name: "file-uploader-file-card-animation",
46
46
  props: {
47
47
  name: {},
48
48
  showFileIcon: { type: Boolean }
49
49
  },
50
50
  setup(a) {
51
- return (i, n) => o(Ra) ? (s(), h(Pa, {
51
+ return (i, p) => o(La) ? (s(), b(Wa, {
52
52
  key: 0,
53
53
  name: i.name,
54
54
  mode: "out-in",
55
55
  css: i.showFileIcon
56
56
  }, {
57
57
  default: g(() => [
58
- ca(i.$slots, "default")
58
+ ra(i.$slots, "default")
59
59
  ]),
60
60
  _: 3
61
- }, 8, ["name", "css"])) : (s(), h(Ua, {
61
+ }, 8, ["name", "css"])) : (s(), b(Ga, {
62
62
  key: 1,
63
63
  name: i.name,
64
64
  css: i.showFileIcon
65
65
  }, {
66
66
  default: g(() => [
67
- ca(i.$slots, "default")
67
+ ra(i.$slots, "default")
68
68
  ]),
69
69
  _: 3
70
70
  }, 8, ["name", "css"]));
71
71
  }
72
72
  });
73
- let va = 0;
74
- const ui = {
73
+ let xa = 0;
74
+ const fi = {
75
75
  beforeCreate() {
76
- this.uuid = va.toString(), va += 1;
76
+ this.uuid = xa.toString(), xa += 1;
77
77
  }
78
- }, vi = { key: 0 };
79
- function fi(a, i, n, e, l, t) {
80
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
78
+ }, xi = { key: 0 };
79
+ function gi(a, i, p, e, l, n) {
80
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
81
81
  class: "ui-assets-icons-16",
82
82
  xmlns: "http://www.w3.org/2000/svg",
83
83
  width: "16",
84
84
  height: "16",
85
85
  fill: "none"
86
86
  }), [
87
- a.$attrs["svg-title"] ? (s(), v("title", vi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
88
- i[0] || (i[0] = r("path", {
87
+ a.$attrs["svg-title"] ? (s(), v("title", xi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
88
+ i[0] || (i[0] = m("path", {
89
89
  fill: "#00112C",
90
90
  d: "M7.25 6.25H5.75V12.75H7.25V6.25Z"
91
91
  }, null, -1)),
92
- i[1] || (i[1] = r("path", {
92
+ i[1] || (i[1] = m("path", {
93
93
  fill: "#00112C",
94
94
  d: "M8.75 6.25H10.25V12.75H8.75V6.25Z"
95
95
  }, null, -1)),
96
- i[2] || (i[2] = r("path", {
96
+ i[2] || (i[2] = m("path", {
97
97
  fill: "#00112C",
98
98
  d: "M14.75 3.24999H12.54L12.05 1.74999C11.9 1.29999 11.61 0.92999 11.22 0.64999C10.83 0.37999 10.34 0.24999 9.92 0.23999H6.09C5.64 0.23999 5.17 0.37999 4.78 0.64999C4.39 0.91999 4.11 1.29999 3.95 1.75999L3.46 3.23999H1.25V4.73999H2.32L3.14 13.7C3.19 14.26 3.45 14.78 3.86 15.16C4.27 15.54 4.81 15.75 5.37 15.75H10.64C11.2 15.75 11.74 15.54 12.15 15.16C12.57 14.78 12.82 14.26 12.87 13.7L13.69 4.73999H14.76V3.23999L14.75 3.24999ZM5.37 2.24999C5.42 2.09999 5.52 1.97999 5.64 1.88999C5.77 1.79999 5.92 1.74999 6.08 1.75999H9.93C10.08 1.75999 10.23 1.80999 10.35 1.88999C10.48 1.97999 10.57 2.09999 10.62 2.23999L10.95 3.25999H5.02L5.35 2.25999L5.37 2.24999ZM11.37 13.58C11.35 13.77 11.27 13.94 11.13 14.06C10.99 14.19 10.81 14.25 10.63 14.25H5.36C5.17 14.25 5 14.18 4.86 14.06C4.72 13.93 4.64 13.76 4.62 13.57L3.81 4.74999H12.17L11.36 13.57L11.37 13.58Z"
99
99
  }, null, -1))
100
100
  ], 16);
101
101
  }
102
- const xi = /* @__PURE__ */ _(ui, [["render", fi]]);
103
- function gi(a, i) {
104
- const n = T(!1);
102
+ const hi = /* @__PURE__ */ _(fi, [["render", gi]]);
103
+ function bi(a, i) {
104
+ const p = T(!1);
105
105
  let e;
106
106
  function l() {
107
107
  e && e.disconnect();
108
108
  }
109
- return Wa(() => {
109
+ return Ya(() => {
110
110
  l();
111
- }), Ga(() => {
111
+ }), Xa(() => {
112
112
  l(), e = new IntersectionObserver(
113
- (t) => {
114
- n.value = !t[0].isIntersecting;
113
+ (n) => {
114
+ p.value = !n[0].isIntersecting;
115
115
  },
116
116
  {
117
117
  root: i.value,
118
118
  threshold: 1
119
119
  }
120
120
  ), e.observe(a.value.$el);
121
- }), n;
121
+ }), p;
122
122
  }
123
- const fa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
124
- function La(a, i) {
125
- let n = 0, e = i;
126
- for (; e >= 1e3 && n < fa.length - 1; )
127
- e /= 1e3, n++;
123
+ const ga = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
124
+ function Ia(a, i) {
125
+ let p = 0, e = i;
126
+ for (; e >= 1e3 && p < ga.length - 1; )
127
+ e /= 1e3, p++;
128
128
  return new Intl.NumberFormat(a, {
129
129
  style: "unit",
130
- unit: fa[n],
130
+ unit: ga[p],
131
131
  unitDisplay: "short",
132
132
  // Displays as "kB" instead of "kilobytes"
133
133
  maximumFractionDigits: 2
134
134
  // Limits to 2 decimal places
135
135
  }).format(e);
136
136
  }
137
- var L = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(L || {}), j = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(j || {}), aa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(aa || {}), x = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(x || {});
138
- const hi = [
137
+ 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 || {});
138
+ const wi = [
139
139
  "application/msword",
140
140
  // .doc
141
141
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
142
142
  // .docx
143
143
  "application/rtf"
144
144
  // .rtf
145
- ], bi = [
145
+ ], Ci = [
146
146
  "application/vnd.ms-excel",
147
147
  // .xls
148
148
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -155,14 +155,14 @@ const hi = [
155
155
  // .numbers
156
156
  "text/csv"
157
157
  // .csv
158
- ], wi = [
158
+ ], yi = [
159
159
  "application/vnd.ms-powerpoint",
160
160
  // .ppt
161
161
  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
162
162
  // .pptx
163
163
  "application/vnd.oasis.opendocument.presentation"
164
164
  // .odp
165
- ], Ci = [
165
+ ], ki = [
166
166
  "application/zip",
167
167
  // .zip
168
168
  "application/vnd.rar",
@@ -184,14 +184,14 @@ const hi = [
184
184
  "application/vnd.ms-cab-compressed"
185
185
  // .cab
186
186
  ];
187
- function yi(a) {
188
- return bi.includes(a.type) ? x.TABLE : a.type.startsWith("text/") || hi.includes(a.type) ? x.TEXT : a.type.startsWith("image/") ? x.IMAGE : a.type.startsWith("video/") ? x.VIDEO : a.type.startsWith("audio/") ? x.AUDIO : a.type === "application/pdf" ? x.PDF : wi.includes(a.type) ? x.SLIDES : Ci.includes(a.type) ? x.COMPRESSED : x.GENERIC;
187
+ function $i(a) {
188
+ return Ci.includes(a.type) ? x.TABLE : a.type.startsWith("text/") || wi.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 : yi.includes(a.type) ? x.SLIDES : ki.includes(a.type) ? x.COMPRESSED : x.GENERIC;
189
189
  }
190
- function ki(a, i) {
190
+ function ji(a, i) {
191
191
  if (!i)
192
192
  return !0;
193
- const n = i.split(",").map((e) => e.trim());
194
- for (const e of n)
193
+ const p = i.split(",").map((e) => e.trim());
194
+ for (const e of p)
195
195
  if (e.startsWith(".")) {
196
196
  if (a.name.endsWith(e))
197
197
  return !0;
@@ -203,290 +203,290 @@ function ki(a, i) {
203
203
  return !0;
204
204
  return !1;
205
205
  }
206
- function $i(a, i, n) {
206
+ function _i(a, i, p) {
207
207
  const e = new FileReader(), l = a;
208
- if (!ki(l.data, i)) {
209
- l.state = L.ERROR, l.errors.push(j.ERROR_TYPE);
208
+ if (!ji(l.data, i)) {
209
+ l.state = R.ERROR, l.errors.push(j.ERROR_TYPE);
210
210
  return;
211
211
  }
212
- e.onload = (t) => {
213
- if (n && l.type === x.IMAGE) {
214
- const C = new Blob([t.target.result], { type: l.data.type }), c = URL.createObjectURL(C), d = new Image();
212
+ e.onload = (n) => {
213
+ if (p && l.type === x.IMAGE) {
214
+ const C = new Blob([n.target.result], { type: l.data.type }), c = URL.createObjectURL(C), d = new Image();
215
215
  d.onload = function() {
216
- (d.width > n.width || d.height > n.height) && (l.state = L.ERROR, l.errors.push(j.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
216
+ (d.width > p.width || d.height > p.height) && (l.state = R.ERROR, l.errors.push(j.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
217
217
  }, d.onerror = function() {
218
218
  URL.revokeObjectURL(c);
219
219
  }, d.src = c;
220
220
  }
221
- }, e.onprogress = (t) => {
222
- t.lengthComputable && (l.progress = t.loaded / t.total * 100);
221
+ }, e.onprogress = (n) => {
222
+ n.lengthComputable && (l.progress = n.loaded / n.total * 100);
223
223
  }, e.onloadend = () => {
224
- l.state !== L.ERROR && (l.state = L.SUCCESS), l.progress = null;
224
+ l.state !== R.ERROR && (l.state = R.SUCCESS), l.progress = null;
225
225
  }, e.onerror = () => {
226
- l.state = L.ERROR, l.errors.push(j.ERROR_LOAD), l.progress = null;
226
+ l.state = R.ERROR, l.errors.push(j.ERROR_LOAD), l.progress = null;
227
227
  }, e.readAsArrayBuffer(l.data);
228
228
  }
229
- let xa = 0;
230
- const ji = {
229
+ let ha = 0;
230
+ const zi = {
231
231
  beforeCreate() {
232
- this.uuid = xa.toString(), xa += 1;
232
+ this.uuid = ha.toString(), ha += 1;
233
233
  }
234
- }, _i = { key: 0 }, zi = ["clip-path"], Ei = ["id"];
235
- function Ri(a, i, n, e, l, t) {
236
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
234
+ }, Ei = { key: 0 }, Ri = ["clip-path"], Li = ["id"];
235
+ function Ii(a, i, p, e, l, n) {
236
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
237
237
  class: "ui-assets-icons-16",
238
238
  xmlns: "http://www.w3.org/2000/svg",
239
239
  width: "16",
240
240
  height: "16",
241
241
  fill: "none"
242
242
  }), [
243
- a.$attrs["svg-title"] ? (s(), v("title", _i, u(a.$attrs["svg-title"]), 1)) : f("", !0),
244
- r("g", {
243
+ a.$attrs["svg-title"] ? (s(), v("title", Ei, u(a.$attrs["svg-title"]), 1)) : f("", !0),
244
+ m("g", {
245
245
  "clip-path": "url(#uia-icons-16-attachment__a" + a.uuid + ")"
246
246
  }, i[0] || (i[0] = [
247
- r("path", {
247
+ m("path", {
248
248
  fill: "#00112C",
249
249
  d: "M12.866 4.09026C11.5689 2.79315 9.4638 2.79315 8.1667 4.09026L2.7267 9.53026C1.95959 10.2974 1.95959 11.5425 2.7267 12.3096C3.49381 13.0767 4.73893 13.0767 5.50604 12.3096L10.946 6.8696C11.1831 6.63249 11.1831 6.24737 10.946 6.01026C10.7089 5.77316 10.3238 5.77316 10.0867 6.01026L4.75637 11.3406L3.69571 10.2799L9.02604 4.9496C9.84893 4.12671 11.1838 4.12671 12.0067 4.9496C12.8296 5.7725 12.8296 7.10737 12.0067 7.93026L6.5667 13.3703C5.2138 14.7232 3.01893 14.7232 1.66604 13.3703C0.313144 12.0174 0.313144 9.82249 1.66604 8.4696L7.10604 3.0296C8.98893 1.14671 12.0438 1.14671 13.9267 3.0296C15.8096 4.91249 15.8096 7.96737 13.9267 9.85026L11.1564 12.6206L10.0957 11.5599L12.866 8.7896C14.1631 7.49249 14.1631 5.38737 12.866 4.09026Z"
250
250
  }, null, -1)
251
- ]), 8, zi),
252
- r("defs", null, [
253
- r("clipPath", {
251
+ ]), 8, Ri),
252
+ m("defs", null, [
253
+ m("clipPath", {
254
254
  id: "uia-icons-16-attachment__a" + a.uuid
255
255
  }, i[1] || (i[1] = [
256
- r("rect", {
256
+ m("rect", {
257
257
  width: "16",
258
258
  height: "16",
259
259
  fill: "#fff"
260
260
  }, null, -1)
261
- ]), 8, Ei)
261
+ ]), 8, Li)
262
262
  ])
263
263
  ], 16);
264
264
  }
265
- const Li = /* @__PURE__ */ _(ji, [["render", Ri]]);
266
- let ga = 0;
267
- const Ii = {
265
+ const Vi = /* @__PURE__ */ _(zi, [["render", Ii]]);
266
+ let ba = 0;
267
+ const Mi = {
268
268
  beforeCreate() {
269
- this.uuid = ga.toString(), ga += 1;
269
+ this.uuid = ba.toString(), ba += 1;
270
270
  }
271
- }, Vi = { key: 0 };
272
- function Mi(a, i, n, e, l, t) {
273
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
271
+ }, Si = { key: 0 };
272
+ function Ti(a, i, p, e, l, n) {
273
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
274
274
  class: "ui-assets-icons-16",
275
275
  xmlns: "http://www.w3.org/2000/svg",
276
276
  width: "16",
277
277
  height: "16",
278
278
  fill: "none"
279
279
  }), [
280
- a.$attrs["svg-title"] ? (s(), v("title", Vi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
281
- i[0] || (i[0] = r("path", {
280
+ a.$attrs["svg-title"] ? (s(), v("title", Si, u(a.$attrs["svg-title"]), 1)) : f("", !0),
281
+ i[0] || (i[0] = m("path", {
282
282
  fill: "#00112C",
283
283
  d: "M13.75 9.58159C14.3412 9.30073 14.75 8.6981 14.75 8V2C14.75 1.0335 13.9665 0.25 13 0.25H3C2.0335 0.25 1.25 1.0335 1.25 2V8C1.25 8.6981 1.65876 9.30073 2.25 9.58159V11C2.25 11.4641 2.43438 11.9092 2.76256 12.2374C2.90555 12.3804 3.07072 12.4961 3.25 12.5811V14C3.25 14.4641 3.43438 14.9092 3.76256 15.2374C4.09075 15.5656 4.53587 15.75 5 15.75H11C11.4641 15.75 11.9092 15.5656 12.2374 15.2374C12.5656 14.9092 12.75 14.4641 12.75 14V12.5811C12.9293 12.4961 13.0945 12.3804 13.2374 12.2374C13.5656 11.9092 13.75 11.4641 13.75 11V9.58159ZM3 1.75H13C13.1381 1.75 13.25 1.86193 13.25 2V8C13.25 8.13807 13.1381 8.25 13 8.25H3C2.86193 8.25 2.75 8.13807 2.75 8V2C2.75 1.86193 2.86193 1.75 3 1.75ZM12.25 9.75V11C12.25 11.0663 12.2237 11.1299 12.1768 11.1768C12.1299 11.2237 12.0663 11.25 12 11.25H4C3.9337 11.25 3.87011 11.2237 3.82322 11.1768C3.77634 11.1299 3.75 11.0663 3.75 11V9.75H12.25ZM11.25 12.75V14C11.25 14.0663 11.2237 14.1299 11.1768 14.1768C11.1299 14.2237 11.0663 14.25 11 14.25H5C4.9337 14.25 4.87011 14.2237 4.82322 14.1768C4.77634 14.1299 4.75 14.0663 4.75 14V12.75H11.25Z"
284
284
  }, null, -1))
285
285
  ], 16);
286
286
  }
287
- const Si = /* @__PURE__ */ _(Ii, [["render", Mi]]);
288
- let ha = 0;
289
- const Ti = {
287
+ const Di = /* @__PURE__ */ _(Mi, [["render", Ti]]);
288
+ let wa = 0;
289
+ const Hi = {
290
290
  beforeCreate() {
291
- this.uuid = ha.toString(), ha += 1;
291
+ this.uuid = wa.toString(), wa += 1;
292
292
  }
293
- }, Di = { key: 0 };
294
- function Hi(a, i, n, e, l, t) {
295
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
293
+ }, Oi = { key: 0 };
294
+ function Fi(a, i, p, e, l, n) {
295
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
296
296
  class: "ui-assets-icons-16",
297
297
  xmlns: "http://www.w3.org/2000/svg",
298
298
  width: "16",
299
299
  height: "16",
300
300
  fill: "none"
301
301
  }), [
302
- a.$attrs["svg-title"] ? (s(), v("title", Di, u(a.$attrs["svg-title"]), 1)) : f("", !0),
303
- i[0] || (i[0] = r("path", {
302
+ a.$attrs["svg-title"] ? (s(), v("title", Oi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
303
+ i[0] || (i[0] = m("path", {
304
304
  fill: "#00112C",
305
305
  d: "M13.75 13.5C13.75 14.7442 12.7442 15.75 11.5 15.75H4.5C3.25579 15.75 2.25 14.7442 2.25 13.5V2.5C2.25 1.25579 3.25579 0.25 4.5 0.25H9.31055L13.75 4.68728V13.5ZM3.75 2.5V13.5C3.75 13.9158 4.08421 14.25 4.5 14.25H11.5C11.9158 14.25 12.25 13.9158 12.25 13.5V6.75H9.5C8.25736 6.75 7.25 5.74264 7.25 4.5V1.75H4.5C4.08421 1.75 3.75 2.08421 3.75 2.5ZM8.75 1.81052V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H12.1912L8.75 1.81052Z"
306
306
  }, null, -1))
307
307
  ], 16);
308
308
  }
309
- const Oi = /* @__PURE__ */ _(Ti, [["render", Hi]]);
310
- let ba = 0;
311
- const Fi = {
309
+ const qi = /* @__PURE__ */ _(Hi, [["render", Fi]]);
310
+ let Ca = 0;
311
+ const Zi = {
312
312
  beforeCreate() {
313
- this.uuid = ba.toString(), ba += 1;
313
+ this.uuid = Ca.toString(), Ca += 1;
314
314
  }
315
- }, qi = { key: 0 };
316
- function Zi(a, i, n, e, l, t) {
317
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
315
+ }, Bi = { key: 0 };
316
+ function Ai(a, i, p, e, l, n) {
317
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
318
318
  class: "ui-assets-icons-16",
319
319
  xmlns: "http://www.w3.org/2000/svg",
320
320
  width: "16",
321
321
  height: "16",
322
322
  fill: "none"
323
323
  }), [
324
- a.$attrs["svg-title"] ? (s(), v("title", qi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
325
- i[0] || (i[0] = r("path", {
324
+ a.$attrs["svg-title"] ? (s(), v("title", Bi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
325
+ i[0] || (i[0] = m("path", {
326
326
  fill: "#00112C",
327
327
  d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z"
328
328
  }, null, -1)),
329
- i[1] || (i[1] = r("path", {
329
+ i[1] || (i[1] = m("path", {
330
330
  fill: "#00112C",
331
331
  d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z"
332
332
  }, null, -1)),
333
- i[2] || (i[2] = r("path", {
333
+ i[2] || (i[2] = m("path", {
334
334
  fill: "#00112C",
335
335
  d: "M13.7461 13.5C13.7461 14.7442 12.7403 15.75 11.4961 15.75H4.49609C3.25188 15.75 2.24609 14.7442 2.24609 13.5V2.5C2.24609 1.25579 3.25188 0.25 4.49609 0.25H9.30665L13.7461 4.68728V13.5ZM3.74609 2.5V13.5C3.74609 13.9158 4.08031 14.25 4.49609 14.25H11.4961C11.9119 14.25 12.2461 13.9158 12.2461 13.5V6.75H9.49609C8.25345 6.75 7.24609 5.74264 7.24609 4.5V1.75H4.49609C4.08031 1.75 3.74609 2.08421 3.74609 2.5ZM8.74609 1.81052V4.5C8.74609 4.91421 9.08188 5.25 9.49609 5.25H12.1873L8.74609 1.81052Z"
336
336
  }, null, -1))
337
337
  ], 16);
338
338
  }
339
- const Bi = /* @__PURE__ */ _(Fi, [["render", Zi]]);
340
- let wa = 0;
341
- const Ai = {
339
+ const Ni = /* @__PURE__ */ _(Zi, [["render", Ai]]);
340
+ let ya = 0;
341
+ const Pi = {
342
342
  beforeCreate() {
343
- this.uuid = wa.toString(), wa += 1;
343
+ this.uuid = ya.toString(), ya += 1;
344
344
  }
345
- }, Ni = { key: 0 };
346
- function Pi(a, i, n, e, l, t) {
347
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
345
+ }, Ui = { key: 0 };
346
+ function Wi(a, i, p, e, l, n) {
347
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
348
348
  class: "ui-assets-icons-16",
349
349
  xmlns: "http://www.w3.org/2000/svg",
350
350
  width: "16",
351
351
  height: "16",
352
352
  fill: "none"
353
353
  }), [
354
- a.$attrs["svg-title"] ? (s(), v("title", Ni, u(a.$attrs["svg-title"]), 1)) : f("", !0),
355
- i[0] || (i[0] = r("path", {
354
+ a.$attrs["svg-title"] ? (s(), v("title", Ui, u(a.$attrs["svg-title"]), 1)) : f("", !0),
355
+ i[0] || (i[0] = m("path", {
356
356
  fill: "#00112C",
357
357
  d: "M1.24609 4.5C1.24609 3.25579 2.25188 2.25 3.49609 2.25H6.37609C6.97727 2.25 7.54738 2.49062 7.96642 2.90967L10.0864 5.02967C10.2274 5.17062 10.4173 5.25 10.6161 5.25H12.4961C13.7403 5.25 14.7461 6.25579 14.7461 7.5V12.5C14.7461 13.7442 13.7403 14.75 12.4961 14.75H3.49609C2.25188 14.75 1.24609 13.7442 1.24609 12.5V4.5ZM3.49609 3.75C3.08031 3.75 2.74609 4.08421 2.74609 4.5V12.5C2.74609 12.9158 3.08031 13.25 3.49609 13.25H12.4961C12.9119 13.25 13.2461 12.9158 13.2461 12.5V7.5C13.2461 7.08421 12.9119 6.75 12.4961 6.75H10.6161C10.0149 6.75 9.44481 6.50938 9.02576 6.09033L6.90576 3.97033C6.76481 3.82938 6.57492 3.75 6.37609 3.75H3.49609Z"
358
358
  }, null, -1))
359
359
  ], 16);
360
360
  }
361
- const Ui = /* @__PURE__ */ _(Ai, [["render", Pi]]);
362
- let Ca = 0;
363
- const Wi = {
361
+ const Gi = /* @__PURE__ */ _(Pi, [["render", Wi]]);
362
+ let ka = 0;
363
+ const Yi = {
364
364
  beforeCreate() {
365
- this.uuid = Ca.toString(), Ca += 1;
365
+ this.uuid = ka.toString(), ka += 1;
366
366
  }
367
- }, Gi = { key: 0 };
368
- function Yi(a, i, n, e, l, t) {
369
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
367
+ }, Xi = { key: 0 };
368
+ function Ji(a, i, p, e, l, n) {
369
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
370
370
  class: "ui-assets-icons-16",
371
371
  xmlns: "http://www.w3.org/2000/svg",
372
372
  width: "16",
373
373
  height: "16",
374
374
  fill: "none"
375
375
  }), [
376
- a.$attrs["svg-title"] ? (s(), v("title", Gi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
377
- i[0] || (i[0] = r("path", {
376
+ a.$attrs["svg-title"] ? (s(), v("title", Xi, u(a.$attrs["svg-title"]), 1)) : f("", !0),
377
+ i[0] || (i[0] = m("path", {
378
378
  fill: "#00112C",
379
379
  d: "M9.99609 3.24805C8.47731 3.24805 7.24609 4.47926 7.24609 5.99805C7.24609 7.51683 8.47731 8.74805 9.99609 8.74805C11.5149 8.74805 12.7461 7.51683 12.7461 5.99805C12.7461 4.47926 11.5149 3.24805 9.99609 3.24805ZM8.74609 5.99805C8.74609 5.30769 9.30574 4.74805 9.99609 4.74805C10.6865 4.74805 11.2461 5.30769 11.2461 5.99805C11.2461 6.6884 10.6865 7.24805 9.99609 7.24805C9.30574 7.24805 8.74609 6.6884 8.74609 5.99805Z"
380
380
  }, null, -1)),
381
- i[1] || (i[1] = r("path", {
381
+ i[1] || (i[1] = m("path", {
382
382
  fill: "#00112C",
383
383
  d: "M1.24609 3.49805C1.24609 2.25541 2.25345 1.24805 3.49609 1.24805H12.4961C13.7387 1.24805 14.7461 2.25541 14.7461 3.49805V12.498C14.7461 13.7407 13.7387 14.748 12.4961 14.748H3.49609C2.25345 14.748 1.24609 13.7407 1.24609 12.498V3.49805ZM3.49609 2.74805C3.08188 2.74805 2.74609 3.08383 2.74609 3.49805V6.68756L3.99615 5.4375L11.8067 13.248H12.4961C12.9103 13.248 13.2461 12.9123 13.2461 12.498V3.49805C13.2461 3.08383 12.9103 2.74805 12.4961 2.74805H3.49609ZM2.74609 12.498C2.74609 12.9123 3.08188 13.248 3.49609 13.248H9.68538L3.99615 7.55882L2.74609 8.80888V12.498Z"
384
384
  }, null, -1))
385
385
  ], 16);
386
386
  }
387
- const Xi = /* @__PURE__ */ _(Wi, [["render", Yi]]);
388
- let ya = 0;
389
- const Ji = {
387
+ const Ki = /* @__PURE__ */ _(Yi, [["render", Ji]]);
388
+ let $a = 0;
389
+ const Qi = {
390
390
  beforeCreate() {
391
- this.uuid = ya.toString(), ya += 1;
391
+ this.uuid = $a.toString(), $a += 1;
392
392
  }
393
- }, Ki = { key: 0 }, Qi = ["clip-path"], ae = ["id"];
394
- function ie(a, i, n, e, l, t) {
395
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
393
+ }, ae = { key: 0 }, ie = ["clip-path"], ee = ["id"];
394
+ function te(a, i, p, e, l, n) {
395
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
396
396
  class: "ui-assets-icons-16",
397
397
  xmlns: "http://www.w3.org/2000/svg",
398
398
  width: "16",
399
399
  height: "16",
400
400
  fill: "none"
401
401
  }), [
402
- a.$attrs["svg-title"] ? (s(), v("title", Ki, u(a.$attrs["svg-title"]), 1)) : f("", !0),
403
- r("g", {
402
+ a.$attrs["svg-title"] ? (s(), v("title", ae, u(a.$attrs["svg-title"]), 1)) : f("", !0),
403
+ m("g", {
404
404
  fill: "#00112C",
405
405
  "clip-path": "url(#uia-icons-16-play_circle__a" + a.uuid + ")"
406
406
  }, i[0] || (i[0] = [
407
- r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
408
- r("path", { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" }, null, -1)
409
- ]), 8, Qi),
410
- r("defs", null, [
411
- r("clipPath", {
407
+ m("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
408
+ 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)
409
+ ]), 8, ie),
410
+ m("defs", null, [
411
+ m("clipPath", {
412
412
  id: "uia-icons-16-play_circle__a" + a.uuid
413
413
  }, i[1] || (i[1] = [
414
- r("rect", {
414
+ m("rect", {
415
415
  width: "16",
416
416
  height: "16",
417
417
  fill: "#fff"
418
418
  }, null, -1)
419
- ]), 8, ae)
419
+ ]), 8, ee)
420
420
  ])
421
421
  ], 16);
422
422
  }
423
- const ee = /* @__PURE__ */ _(Ji, [["render", ie]]);
424
- let ka = 0;
425
- const te = {
423
+ const ne = /* @__PURE__ */ _(Qi, [["render", te]]);
424
+ let ja = 0;
425
+ const pe = {
426
426
  beforeCreate() {
427
- this.uuid = ka.toString(), ka += 1;
427
+ this.uuid = ja.toString(), ja += 1;
428
428
  }
429
- }, ne = { key: 0 };
430
- function pe(a, i, n, e, l, t) {
431
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
429
+ }, oe = { key: 0 };
430
+ function le(a, i, p, e, l, n) {
431
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
432
432
  class: "ui-assets-icons-16",
433
433
  xmlns: "http://www.w3.org/2000/svg",
434
434
  width: "16",
435
435
  height: "16",
436
436
  fill: "none"
437
437
  }), [
438
- a.$attrs["svg-title"] ? (s(), v("title", ne, u(a.$attrs["svg-title"]), 1)) : f("", !0),
439
- i[0] || (i[0] = r("path", {
438
+ a.$attrs["svg-title"] ? (s(), v("title", oe, u(a.$attrs["svg-title"]), 1)) : f("", !0),
439
+ i[0] || (i[0] = m("path", {
440
440
  fill: "#00112C",
441
441
  d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z"
442
442
  }, null, -1)),
443
- i[1] || (i[1] = r("path", {
443
+ i[1] || (i[1] = m("path", {
444
444
  fill: "#00112C",
445
445
  d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z"
446
446
  }, null, -1)),
447
- i[2] || (i[2] = r("path", {
447
+ i[2] || (i[2] = m("path", {
448
448
  fill: "#00112C",
449
449
  d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z"
450
450
  }, null, -1))
451
451
  ], 16);
452
452
  }
453
- const oe = /* @__PURE__ */ _(te, [["render", pe]]);
454
- let $a = 0;
455
- const le = {
453
+ const se = /* @__PURE__ */ _(pe, [["render", le]]);
454
+ let _a = 0;
455
+ const ce = {
456
456
  beforeCreate() {
457
- this.uuid = $a.toString(), $a += 1;
457
+ this.uuid = _a.toString(), _a += 1;
458
458
  }
459
- }, se = { key: 0 };
460
- function ce(a, i, n, e, l, t) {
461
- return s(), v("svg", I({ role: "img" }, a.$attrs, {
459
+ }, de = { key: 0 };
460
+ function re(a, i, p, e, l, n) {
461
+ return s(), v("svg", L({ role: "img" }, a.$attrs, {
462
462
  class: "ui-assets-icons-16",
463
463
  xmlns: "http://www.w3.org/2000/svg",
464
464
  width: "16",
465
465
  height: "16",
466
466
  fill: "none"
467
467
  }), [
468
- a.$attrs["svg-title"] ? (s(), v("title", se, u(a.$attrs["svg-title"]), 1)) : f("", !0),
469
- i[0] || (i[0] = r("path", {
468
+ a.$attrs["svg-title"] ? (s(), v("title", de, u(a.$attrs["svg-title"]), 1)) : f("", !0),
469
+ i[0] || (i[0] = m("path", {
470
470
  fill: "#00112C",
471
471
  d: "M3.5 1.25L3.49505 1.25002C2.90084 1.25394 2.33208 1.49173 1.91191 1.91191C1.49173 2.33208 1.25392 2.90084 1.25 3.49505V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V3.5C14.75 2.90326 14.5129 2.33097 14.091 1.90901C13.669 1.48705 13.0967 1.25 12.5 1.25H3.5ZM5.25 2.75V5.25H2.75V3.5029C2.75185 3.30382 2.83175 3.11338 2.97257 2.97257C3.11338 2.83175 3.30382 2.75185 3.5029 2.75H5.25ZM5.25 6.75V9.25H2.75V6.75H5.25ZM6.75 9.25V6.75H13.25V9.25H6.75ZM5.25 10.75V13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5V10.75H5.25ZM6.75 13.25V10.75H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H6.75ZM6.75 5.25V2.75H12.5C12.6989 2.75 12.8897 2.82902 13.0303 2.96967C13.171 3.11032 13.25 3.30109 13.25 3.5V5.25H6.75Z"
472
472
  }, null, -1))
473
473
  ], 16);
474
474
  }
475
- const de = /* @__PURE__ */ _(le, [["render", ce]]), re = {
476
- [x.AUDIO]: oe,
477
- [x.COMPRESSED]: Ui,
478
- [x.GENERIC]: Li,
479
- [x.IMAGE]: Xi,
480
- [x.PDF]: Oi,
481
- [x.SLIDES]: Si,
482
- [x.TABLE]: de,
483
- [x.TEXT]: Bi,
484
- [x.VIDEO]: ee
475
+ const me = /* @__PURE__ */ _(ce, [["render", re]]), ue = {
476
+ [x.AUDIO]: se,
477
+ [x.COMPRESSED]: Gi,
478
+ [x.GENERIC]: Vi,
479
+ [x.IMAGE]: Ki,
480
+ [x.PDF]: qi,
481
+ [x.SLIDES]: Di,
482
+ [x.TABLE]: me,
483
+ [x.TEXT]: Ni,
484
+ [x.VIDEO]: ne
485
485
  };
486
- function me(a) {
487
- return re[a.type];
486
+ function ve(a) {
487
+ return ue[a.type];
488
488
  }
489
- function ue(a) {
489
+ function fe(a) {
490
490
  switch (a.type) {
491
491
  case x.COMPRESSED:
492
492
  case x.GENERIC:
@@ -500,7 +500,7 @@ function ue(a) {
500
500
  return "green";
501
501
  }
502
502
  }
503
- const Ia = {
503
+ const Va = {
504
504
  "en-US": {
505
505
  cancel: "Cancel",
506
506
  fileExceedsSizeLimit: "File exceeds size limit",
@@ -519,90 +519,90 @@ const Ia = {
519
519
  remove: "Remover",
520
520
  retry: "Tentar novamente"
521
521
  }
522
- }, ve = { class: "b-file-uploader-file-card__details" }, fe = { class: "b-file-uploader-file-card__info" }, xe = { class: "b-file-uploader-file-card__actions" }, ge = {
522
+ }, 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 = {
523
523
  name: "file-uploader-file-card",
524
- i18n: { messages: Ia }
525
- }, he = /* @__PURE__ */ ia({
526
- ...ge,
524
+ i18n: { messages: Va }
525
+ }, we = /* @__PURE__ */ aa({
526
+ ...be,
527
527
  props: {
528
528
  file: {},
529
529
  supportedFileTypes: { default: null }
530
530
  },
531
531
  emits: ["cancel", "remove", "retry"],
532
532
  setup(a, { emit: i }) {
533
- const e = a, l = i, { t, locale: C } = ea({ messages: Ia }), c = T(e.file.state === L.SUCCESS), d = b(() => URL.createObjectURL(e.file.data)), w = b(() => e.file.state === L.ERROR), q = b(() => e.file.errors.includes(j.ERROR_LOAD)), U = b(() => e.file.errors.includes(j.ERROR_SIZE)), H = b(() => e.file.errors.includes(j.ERROR_DIMENSIONS)), Z = b(() => e.file.errors.includes(j.ERROR_TYPE)), W = b(() => e.file.state === L.LOADING), G = b(() => e.file.progress && `(${e.file.progress.toFixed(0)}%)`), B = b(() => La(C.value, e.file.data.size)), Y = T(), O = T(), ta = gi(Y, O), A = b(() => ({
533
+ const e = a, l = i, { t: n, locale: C } = ia({ messages: Va }), 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)), H = 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(() => Ia(C.value, e.file.data.size)), J = T(), O = T(), ea = bi(J, O), ta = h(() => ({
534
534
  "b-file-uploader-file-card--error": w.value
535
- })), X = b(() => ({
536
- [`b-file-uploader-file-card__icon--${ue(e.file)}`]: c.value,
535
+ })), A = h(() => ({
536
+ [`b-file-uploader-file-card__icon--${fe(e.file)}`]: c.value,
537
537
  "b-file-uploader-file-card__icon--error": w.value
538
- })), J = b(() => W.value ? pi : w.value ? Ea : c.value ? me(e.file) : ai);
539
- return _a(
538
+ })), N = h(() => Y.value ? li : w.value ? Ra : c.value ? ve(e.file) : ei);
539
+ return la(
540
540
  () => e.file.state,
541
- (E) => {
542
- if (E === L.SUCCESS && !c.value) {
541
+ (I) => {
542
+ if (I === R.SUCCESS && !c.value) {
543
543
  const V = setTimeout(() => {
544
544
  c.value = !0, clearTimeout(V);
545
545
  }, 1200);
546
546
  }
547
547
  }
548
- ), (E, V) => (s(), v("div", {
549
- class: S(["b-file-uploader-file-card", A.value])
548
+ ), (I, V) => (s(), v("div", {
549
+ class: S(["b-file-uploader-file-card", ta.value])
550
550
  }, [
551
- r("div", ve, [
552
- r("div", fe, [
553
- M(o(mi), {
554
- name: o(Ra) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
551
+ m("div", xe, [
552
+ m("div", ge, [
553
+ M(o(vi), {
554
+ name: o(La) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
555
555
  "show-file-icon": c.value
556
556
  }, {
557
557
  default: g(() => [
558
- (s(), h(Ya(J.value), {
559
- key: JSON.stringify(J.value),
558
+ (s(), b(Ja(N.value), {
559
+ key: JSON.stringify(N.value),
560
560
  small: "",
561
- class: S(["b-file-uploader-file-card__icon", X.value]),
561
+ class: S(["b-file-uploader-file-card__icon", A.value]),
562
562
  "data-testid": "file-uploader-item-icon"
563
563
  }, null, 8, ["class"]))
564
564
  ]),
565
565
  _: 1
566
566
  }, 8, ["name", "show-file-icon"]),
567
- r("div", {
567
+ m("div", {
568
568
  ref_key: "fileNameContainerRef",
569
569
  ref: O,
570
570
  class: "b-file-uploader-file-card__file-name"
571
571
  }, [
572
- M(o(ni), {
573
- download: E.file.data.name,
572
+ M(o(oi), {
573
+ download: I.file.data.name,
574
574
  to: d.value,
575
575
  "disable-typography": "",
576
576
  "is-not-routing": "",
577
577
  variant: "quiet"
578
578
  }, {
579
579
  default: g(() => [
580
- za((s(), h(o(z), {
580
+ Ea((s(), b(o(z), {
581
581
  ref_key: "fileNameRef",
582
- ref: Y,
582
+ ref: J,
583
583
  stronger: "",
584
584
  el: "span"
585
585
  }, {
586
586
  default: g(() => [
587
- $(u(E.file.data.name), 1)
587
+ $(u(I.file.data.name), 1)
588
588
  ]),
589
589
  _: 1
590
590
  })), [
591
- [o(ti), o(ta) ? E.file.data.name : null]
591
+ [o(pi), o(ea) ? I.file.data.name : null]
592
592
  ])
593
593
  ]),
594
594
  _: 1
595
595
  }, 8, ["download", "to"])
596
596
  ], 512),
597
- E.file.progress ? (s(), h(o(z), {
597
+ I.file.progress ? (s(), b(o(z), {
598
598
  key: 0,
599
599
  el: "span"
600
600
  }, {
601
601
  default: g(() => [
602
- $(u(G.value), 1)
602
+ $(u(X.value), 1)
603
603
  ]),
604
604
  _: 1
605
- })) : E.file.data.size ? (s(), h(o(z), {
605
+ })) : I.file.data.size ? (s(), b(o(z), {
606
606
  key: 1,
607
607
  class: "b-file-uploader-file-card__file-size",
608
608
  el: "span"
@@ -613,69 +613,69 @@ const Ia = {
613
613
  _: 1
614
614
  })) : f("", !0)
615
615
  ]),
616
- U.value ? (s(), h(o(z), {
616
+ G.value ? (s(), b(o(z), {
617
617
  key: 0,
618
618
  class: "b-file-uploader-file-card__error-message"
619
619
  }, {
620
620
  default: g(() => [
621
- $(u(o(t)("fileExceedsSizeLimit")), 1)
621
+ $(u(o(n)("fileExceedsSizeLimit")), 1)
622
622
  ]),
623
623
  _: 1
624
624
  })) : f("", !0),
625
- H.value ? (s(), h(o(z), {
625
+ H.value ? (s(), b(o(z), {
626
626
  key: 1,
627
627
  class: "b-file-uploader-file-card__error-message"
628
628
  }, {
629
629
  default: g(() => [
630
- $(u(o(t)("imageDimensionsExceedLimits")), 1)
630
+ $(u(o(n)("imageDimensionsExceedLimits")), 1)
631
631
  ]),
632
632
  _: 1
633
633
  })) : f("", !0),
634
- Z.value && E.supportedFileTypes ? (s(), h(o(z), {
634
+ Z.value && I.supportedFileTypes ? (s(), b(o(z), {
635
635
  key: 2,
636
636
  class: "b-file-uploader-file-card__error-message"
637
637
  }, {
638
638
  default: g(() => [
639
- $(u(o(t)("fileTypeMustBe", { list: E.supportedFileTypes })), 1)
639
+ $(u(o(n)("fileTypeMustBe", { list: I.supportedFileTypes })), 1)
640
640
  ]),
641
641
  _: 1
642
642
  })) : f("", !0)
643
643
  ]),
644
- r("div", xe, [
645
- q.value ? (s(), h(o(Q), {
644
+ m("div", he, [
645
+ q.value ? (s(), b(o(K), {
646
646
  key: 0,
647
647
  variant: "tertiary",
648
- onClick: V[0] || (V[0] = (K) => l("retry"))
648
+ onClick: V[0] || (V[0] = (P) => l("retry"))
649
649
  }, {
650
650
  iconLeft: g(() => [
651
- M(o(ei), {
652
- "svg-title": o(t)("retry")
651
+ M(o(ni), {
652
+ "svg-title": o(n)("retry")
653
653
  }, null, 8, ["svg-title"])
654
654
  ]),
655
655
  default: g(() => [
656
- $(" " + u(o(t)("retry")), 1)
656
+ $(" " + u(o(n)("retry")), 1)
657
657
  ]),
658
658
  _: 1
659
659
  })) : f("", !0),
660
- W.value || w.value ? (s(), h(o(Q), {
660
+ Y.value || w.value ? (s(), b(o(K), {
661
661
  key: 1,
662
662
  variant: "tertiary",
663
- onClick: V[1] || (V[1] = (K) => l("cancel"))
663
+ onClick: V[1] || (V[1] = (P) => l("cancel"))
664
664
  }, {
665
665
  iconLeft: g(() => [
666
- M(o(ii), {
667
- "svg-title": o(t)("cancel")
666
+ M(o(ti), {
667
+ "svg-title": o(n)("cancel")
668
668
  }, null, 8, ["svg-title"])
669
669
  ]),
670
670
  _: 1
671
- })) : (s(), h(o(Q), {
671
+ })) : (s(), b(o(K), {
672
672
  key: 2,
673
673
  variant: "tertiary",
674
- onClick: V[2] || (V[2] = (K) => l("remove"))
674
+ onClick: V[2] || (V[2] = (P) => l("remove"))
675
675
  }, {
676
676
  iconLeft: g(() => [
677
- M(o(xi), {
678
- "svg-title": o(t)("remove")
677
+ M(o(hi), {
678
+ "svg-title": o(n)("remove")
679
679
  }, null, 8, ["svg-title"])
680
680
  ]),
681
681
  _: 1
@@ -683,7 +683,7 @@ const Ia = {
683
683
  ])
684
684
  ], 2));
685
685
  }
686
- }), be = /* @__PURE__ */ _(he, [["__scopeId", "data-v-13fa0d5e"]]), Va = {
686
+ }), Ce = /* @__PURE__ */ _(we, [["__scopeId", "data-v-13fa0d5e"]]), Ma = {
687
687
  "en-US": {
688
688
  maxFileSize: "Max file size: {size}",
689
689
  maxImageDimensions: "Max image dimensions: {width} × {height}px",
@@ -692,10 +692,10 @@ const Ia = {
692
692
  maxUpload: "Max upload: {count} file | Max upload: {count} files",
693
693
  supportedFileTypes: "Supported file types: {list}"
694
694
  }
695
- }, we = {
696
- i18n: { messages: Va }
697
- }, Ce = /* @__PURE__ */ ia({
698
- ...we,
695
+ }, ye = {
696
+ i18n: { messages: Ma }
697
+ }, ke = /* @__PURE__ */ aa({
698
+ ...ye,
699
699
  __name: "file-uploader-restrictions",
700
700
  props: {
701
701
  condensed: { type: Boolean, default: null },
@@ -706,7 +706,7 @@ const Ia = {
706
706
  supportedFileTypes: { default: null }
707
707
  },
708
708
  setup(a) {
709
- const i = a, { t: n, tc: e, locale: l } = ea({ messages: Va }), t = b(() => ({
709
+ const i = a, { t: p, tc: e, locale: l } = ia({ messages: Ma }), n = h(() => ({
710
710
  "b-file-uploader-restrictions--condensed": i.condensed,
711
711
  "b-file-uploader-restrictions--disabled": i.disabled
712
712
  }));
@@ -715,36 +715,36 @@ const Ia = {
715
715
  "b-file-uploader-restrictions--error": d
716
716
  };
717
717
  }
718
- const c = b(() => {
718
+ const c = h(() => {
719
719
  if (!i.maxDimensions)
720
720
  return null;
721
721
  const {
722
722
  value: { width: d, height: w }
723
723
  } = i.maxDimensions;
724
- return d && w ? n("maxImageDimensions", { width: d, height: w }) : d ? n("maxImageWidth", { width: d }) : w ? n("maxImageHeight", { height: w }) : null;
724
+ return d && w ? p("maxImageDimensions", { width: d, height: w }) : d ? p("maxImageWidth", { width: d }) : w ? p("maxImageHeight", { height: w }) : null;
725
725
  });
726
726
  return (d, w) => (s(), v("div", {
727
- class: S(["b-file-uploader-restrictions", t.value])
727
+ class: S(["b-file-uploader-restrictions", n.value])
728
728
  }, [
729
- d.supportedFileTypes ? (s(), h(o(z), {
729
+ d.supportedFileTypes ? (s(), b(o(z), {
730
730
  key: 0,
731
731
  class: S(C(d.supportedFileTypes.error))
732
732
  }, {
733
733
  default: g(() => [
734
- $(u(o(n)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
734
+ $(u(o(p)("supportedFileTypes", { list: d.supportedFileTypes.value })), 1)
735
735
  ]),
736
736
  _: 1
737
737
  }, 8, ["class"])) : f("", !0),
738
- d.maxSize ? (s(), h(o(z), {
738
+ d.maxSize ? (s(), b(o(z), {
739
739
  key: 1,
740
740
  class: S(C(d.maxSize.error))
741
741
  }, {
742
742
  default: g(() => [
743
- $(u(o(n)("maxFileSize", { size: o(La)(o(l), d.maxSize.value) })), 1)
743
+ $(u(o(p)("maxFileSize", { size: o(Ia)(o(l), d.maxSize.value) })), 1)
744
744
  ]),
745
745
  _: 1
746
746
  }, 8, ["class"])) : f("", !0),
747
- d.maxDimensions ? (s(), h(o(z), {
747
+ d.maxDimensions ? (s(), b(o(z), {
748
748
  key: 2,
749
749
  class: S(C(d.maxDimensions.error))
750
750
  }, {
@@ -753,7 +753,7 @@ const Ia = {
753
753
  ]),
754
754
  _: 1
755
755
  }, 8, ["class"])) : f("", !0),
756
- d.maxCount ? (s(), h(o(z), {
756
+ d.maxCount ? (s(), b(o(z), {
757
757
  key: 3,
758
758
  class: S(C(d.maxCount.error))
759
759
  }, {
@@ -764,21 +764,21 @@ const Ia = {
764
764
  }, 8, ["class"])) : f("", !0)
765
765
  ], 2));
766
766
  }
767
- }), ja = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-d7c2e9cd"]]);
768
- function ye(a) {
769
- const { locale: i, t: n } = ea();
770
- return { supportedFileTypeList: b(() => {
767
+ }), za = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-d7c2e9cd"]]);
768
+ function $e(a) {
769
+ const { locale: i, t: p } = ia();
770
+ return { supportedFileTypeList: h(() => {
771
771
  const l = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
772
772
  return a != null && a.value ? l.format(
773
- a.value.split(",").map((t) => {
774
- const C = t.trim();
773
+ a.value.split(",").map((n) => {
774
+ const C = n.trim();
775
775
  switch (C) {
776
776
  case "audio/*":
777
- return n("audioFiles");
777
+ return p("audioFiles");
778
778
  case "image/*":
779
- return n("imageFiles");
779
+ return p("imageFiles");
780
780
  case "video/*":
781
- return n("videoFiles");
781
+ return p("videoFiles");
782
782
  default:
783
783
  return C.toUpperCase();
784
784
  }
@@ -786,7 +786,7 @@ function ye(a) {
786
786
  ) : null;
787
787
  }) };
788
788
  }
789
- const Ma = {
789
+ const Sa = {
790
790
  "en-US": {
791
791
  audioFiles: "audio files",
792
792
  browseFiles: "Browse files",
@@ -808,7 +808,7 @@ const Ma = {
808
808
  upload: "Carregar",
809
809
  warning: "Aviso"
810
810
  }
811
- }, Sa = {
811
+ }, Ta = {
812
812
  "application/prs.cww": ["cww"],
813
813
  "application/prs.xsf+xml": ["xsf"],
814
814
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1507,8 +1507,8 @@ const Ma = {
1507
1507
  "video/x-smv": ["smv"],
1508
1508
  "x-conference/x-cooltalk": ["ice"]
1509
1509
  };
1510
- Object.freeze(Sa);
1511
- const Ta = {
1510
+ Object.freeze(Ta);
1511
+ const Da = {
1512
1512
  "application/andrew-inset": ["ez"],
1513
1513
  "application/appinstaller": ["appinstaller"],
1514
1514
  "application/applixware": ["aw"],
@@ -1860,31 +1860,31 @@ const Ta = {
1860
1860
  "video/quicktime": ["qt", "mov"],
1861
1861
  "video/webm": ["webm"]
1862
1862
  };
1863
- Object.freeze(Ta);
1864
- var R = function(a, i, n, e) {
1865
- if (n === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
1863
+ Object.freeze(Da);
1864
+ var E = function(a, i, p, e) {
1865
+ if (p === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
1866
1866
  if (typeof i == "function" ? a !== i || !e : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1867
- return n === "m" ? e : n === "a" ? e.call(a) : e ? e.value : i.get(a);
1868
- }, F, P, D;
1869
- class ke {
1867
+ return p === "m" ? e : p === "a" ? e.call(a) : e ? e.value : i.get(a);
1868
+ }, F, W, D;
1869
+ class je {
1870
1870
  constructor(...i) {
1871
- F.set(this, /* @__PURE__ */ new Map()), P.set(this, /* @__PURE__ */ new Map()), D.set(this, /* @__PURE__ */ new Map());
1872
- for (const n of i)
1873
- this.define(n);
1871
+ F.set(this, /* @__PURE__ */ new Map()), W.set(this, /* @__PURE__ */ new Map()), D.set(this, /* @__PURE__ */ new Map());
1872
+ for (const p of i)
1873
+ this.define(p);
1874
1874
  }
1875
- define(i, n = !1) {
1875
+ define(i, p = !1) {
1876
1876
  for (let [e, l] of Object.entries(i)) {
1877
- e = e.toLowerCase(), l = l.map((c) => c.toLowerCase()), R(this, D, "f").has(e) || R(this, D, "f").set(e, /* @__PURE__ */ new Set());
1878
- const t = R(this, D, "f").get(e);
1877
+ e = e.toLowerCase(), l = l.map((c) => c.toLowerCase()), E(this, D, "f").has(e) || E(this, D, "f").set(e, /* @__PURE__ */ new Set());
1878
+ const n = E(this, D, "f").get(e);
1879
1879
  let C = !0;
1880
1880
  for (let c of l) {
1881
1881
  const d = c.startsWith("*");
1882
- if (c = d ? c.slice(1) : c, t == null || t.add(c), C && R(this, P, "f").set(e, c), C = !1, d)
1882
+ if (c = d ? c.slice(1) : c, n == null || n.add(c), C && E(this, W, "f").set(e, c), C = !1, d)
1883
1883
  continue;
1884
- const w = R(this, F, "f").get(c);
1885
- if (w && w != e && !n)
1884
+ const w = E(this, F, "f").get(c);
1885
+ if (w && w != e && !p)
1886
1886
  throw new Error(`"${e} -> ${c}" conflicts with "${w} -> ${c}". Pass \`force=true\` to override this definition.`);
1887
- R(this, F, "f").set(c, e);
1887
+ E(this, F, "f").set(c, e);
1888
1888
  }
1889
1889
  }
1890
1890
  return this;
@@ -1892,72 +1892,72 @@ class ke {
1892
1892
  getType(i) {
1893
1893
  if (typeof i != "string")
1894
1894
  return null;
1895
- const n = i.replace(/^.*[/\\]/, "").toLowerCase(), e = n.replace(/^.*\./, "").toLowerCase(), l = n.length < i.length;
1896
- return !(e.length < n.length - 1) && l ? null : R(this, F, "f").get(e) ?? null;
1895
+ const p = i.replace(/^.*[/\\]/, "").toLowerCase(), e = p.replace(/^.*\./, "").toLowerCase(), l = p.length < i.length;
1896
+ return !(e.length < p.length - 1) && l ? null : E(this, F, "f").get(e) ?? null;
1897
1897
  }
1898
1898
  getExtension(i) {
1899
- var n;
1900
- return typeof i != "string" ? null : (i = (n = i == null ? void 0 : i.split) == null ? void 0 : n.call(i, ";")[0], (i && R(this, P, "f").get(i.trim().toLowerCase())) ?? null);
1899
+ var p;
1900
+ return typeof i != "string" ? null : (i = (p = i == null ? void 0 : i.split) == null ? void 0 : p.call(i, ";")[0], (i && E(this, W, "f").get(i.trim().toLowerCase())) ?? null);
1901
1901
  }
1902
1902
  getAllExtensions(i) {
1903
- return typeof i != "string" ? null : R(this, D, "f").get(i.toLowerCase()) ?? null;
1903
+ return typeof i != "string" ? null : E(this, D, "f").get(i.toLowerCase()) ?? null;
1904
1904
  }
1905
1905
  _freeze() {
1906
1906
  this.define = () => {
1907
1907
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1908
1908
  }, Object.freeze(this);
1909
- for (const i of R(this, D, "f").values())
1909
+ for (const i of E(this, D, "f").values())
1910
1910
  Object.freeze(i);
1911
1911
  return this;
1912
1912
  }
1913
1913
  _getTestState() {
1914
1914
  return {
1915
- types: R(this, F, "f"),
1916
- extensions: R(this, P, "f")
1915
+ types: E(this, F, "f"),
1916
+ extensions: E(this, W, "f")
1917
1917
  };
1918
1918
  }
1919
1919
  }
1920
- F = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
1921
- const $e = new ke(Ta, Sa)._freeze();
1922
- function je(a) {
1923
- return $e.getType(a) ?? a;
1920
+ F = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap();
1921
+ const _e = new je(Da, Ta)._freeze();
1922
+ function ze(a) {
1923
+ return _e.getType(a) ?? a;
1924
1924
  }
1925
- function _e({ maxCount: a, accept: i }) {
1926
- const n = la({
1925
+ function Ee({ maxCount: a, accept: i }) {
1926
+ const p = sa({
1927
1927
  invalidTypes: !1,
1928
1928
  partiallyInvalidTypes: !1,
1929
1929
  maxCountOverflow: !1
1930
- }), e = la({
1930
+ }), e = sa({
1931
1931
  dragging: !1,
1932
1932
  error: !1
1933
- }), l = b(() => i.value ? i.value.split(",").map((d) => je(d.trim().toLocaleLowerCase())) : void 0);
1934
- function t() {
1935
- e.dragging = !1, e.error = !1, n.invalidTypes = !1, n.partiallyInvalidTypes = !1, n.maxCountOverflow = !1;
1933
+ }), l = h(() => i.value ? i.value.split(",").map((d) => ze(d.trim().toLocaleLowerCase())) : void 0);
1934
+ function n() {
1935
+ e.dragging = !1, e.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
1936
1936
  }
1937
1937
  function C(c, d) {
1938
- if (e.dragging = !0, (!d.dataTransfer.types.includes("Files") || c > a.value) && (n.maxCountOverflow = !0, e.error = !0), !l.value)
1938
+ if (e.dragging = !0, (!d.dataTransfer.types.includes("Files") || c > a.value) && (p.maxCountOverflow = !0, e.error = !0), !l.value)
1939
1939
  return;
1940
1940
  let w = 0;
1941
1941
  for (const q of d.dataTransfer.items)
1942
1942
  l.value.includes(q.type) && w++;
1943
1943
  if (w === 0) {
1944
- e.error = !0, n.invalidTypes = !0;
1944
+ e.error = !0, p.invalidTypes = !0;
1945
1945
  return;
1946
1946
  }
1947
- !n.invalidTypes && w !== d.dataTransfer.items.length && (e.error = !0, n.partiallyInvalidTypes = !0);
1947
+ !p.invalidTypes && w !== d.dataTransfer.items.length && (e.error = !0, p.partiallyInvalidTypes = !0);
1948
1948
  }
1949
1949
  return {
1950
1950
  dragState: e,
1951
- dragErrors: n,
1952
- resetDragState: t,
1951
+ dragErrors: p,
1952
+ resetDragState: n,
1953
1953
  onDragEnterValidations: C
1954
1954
  };
1955
1955
  }
1956
- const ze = ["id", "accept", "disabled", "multiple"], Ee = ["aria-label", "tabindex"], Re = { class: "b-file-uploader__icon" }, Le = { class: "b-file-uploader__files" }, Ie = {
1956
+ const Re = ["id", "accept", "disabled", "multiple"], Le = ["aria-label", "tabindex"], Ie = { class: "b-file-uploader__icon" }, Ve = { class: "b-file-uploader__files" }, Me = {
1957
1957
  model: { prop: "modelValue" },
1958
- i18n: { messages: Ma }
1959
- }, Ve = /* @__PURE__ */ ia({
1960
- ...Ie,
1958
+ i18n: { messages: Sa }
1959
+ }, Se = /* @__PURE__ */ aa({
1960
+ ...Me,
1961
1961
  __name: "file-uploader",
1962
1962
  props: {
1963
1963
  accept: { default: null },
@@ -1974,135 +1974,144 @@ const ze = ["id", "accept", "disabled", "multiple"], Ee = ["aria-label", "tabind
1974
1974
  required: { type: Boolean },
1975
1975
  tooltipText: { default: null }
1976
1976
  },
1977
- emits: ["change", "update:modelValue"],
1977
+ emits: ["change", "update:modelValue", "error:upload"],
1978
1978
  setup(a, { emit: i }) {
1979
- const { t: n, tc: e } = ea({ messages: Ma }), l = i, t = a, { supportedFileTypeList: C } = ye(pa(t, "accept")), c = T(null), d = T(null), w = oa("input"), q = oa("input-error"), { dragState: U, dragErrors: H, resetDragState: Z, onDragEnterValidations: W } = _e({
1980
- accept: pa(t, "accept"),
1981
- maxCount: pa(t, "maxCount")
1982
- }), G = b(() => {
1983
- var p, m, y;
1979
+ const { t: p, tc: e } = ia({ messages: Sa }), l = i, n = a, { supportedFileTypeList: C } = $e(pa(n, "accept")), c = T(null), d = T(null), w = oa("input"), q = oa("input-error"), { dragState: G, dragErrors: H, resetDragState: Z, onDragEnterValidations: Y } = Ee({
1980
+ accept: pa(n, "accept"),
1981
+ maxCount: pa(n, "maxCount")
1982
+ }), X = h(() => {
1983
+ var t, r, y;
1984
1984
  return {
1985
- condensed: t.condensed,
1986
- disabled: t.disabled,
1985
+ condensed: n.condensed,
1986
+ disabled: n.disabled,
1987
1987
  maxCount: O.value ? {
1988
- value: t.maxCount,
1989
- error: H.maxCountOverflow || X.value
1988
+ value: n.maxCount,
1989
+ error: H.maxCountOverflow || N.value
1990
1990
  } : null,
1991
- maxDimensions: t.maxDimensions ? {
1992
- value: t.maxDimensions,
1993
- error: (p = c.value) == null ? void 0 : p.some((k) => k.errors.includes(j.ERROR_DIMENSIONS))
1991
+ maxDimensions: n.maxDimensions ? {
1992
+ value: n.maxDimensions,
1993
+ error: (t = c.value) == null ? void 0 : t.some((k) => k.errors.includes(j.ERROR_DIMENSIONS))
1994
1994
  } : null,
1995
- maxSize: t.maxSize ? {
1996
- value: t.maxSize,
1997
- error: (m = c.value) == null ? void 0 : m.some((k) => k.errors.includes(j.ERROR_SIZE))
1995
+ maxSize: n.maxSize ? {
1996
+ value: n.maxSize,
1997
+ error: (r = c.value) == null ? void 0 : r.some((k) => k.errors.includes(j.ERROR_SIZE))
1998
1998
  } : null,
1999
1999
  supportedFileTypes: C.value ? {
2000
2000
  value: C.value,
2001
2001
  error: H.invalidTypes || H.partiallyInvalidTypes || ((y = c.value) == null ? void 0 : y.some((k) => k.errors.includes(j.ERROR_TYPE)))
2002
2002
  } : null
2003
2003
  };
2004
- }), B = T(), Y = b(() => ({
2005
- [`b-file-uploader--${aa.DISABLED}`]: t.disabled,
2006
- [`b-file-uploader--${aa.DRAG_OVER}`]: U.dragging,
2007
- [`b-file-uploader--${aa.ERROR}`]: A.value,
2008
- "b-file-uploader--condensed": t.condensed
2009
- })), O = b(() => t.maxCount > 1), ta = b(() => {
2010
- var p;
2011
- return t.maxCount && ((p = c.value) == null ? void 0 : p.length) >= t.maxCount;
2012
- }), A = b(() => !!t.errorMessage || U.error), X = b(() => {
2013
- var p;
2014
- return ((p = c.value) == null ? void 0 : p.length) > t.maxCount;
2015
- }), J = T(!1);
2016
- function E(p) {
2017
- c.value = c.value.filter(({ id: m }) => m !== p.id);
2004
+ }), B = T(), J = h(() => ({
2005
+ [`b-file-uploader--${Q.DISABLED}`]: n.disabled,
2006
+ [`b-file-uploader--${Q.DRAG_OVER}`]: G.dragging,
2007
+ [`b-file-uploader--${Q.ERROR}`]: A.value,
2008
+ "b-file-uploader--condensed": n.condensed
2009
+ })), O = h(() => n.maxCount > 1), ea = h(() => {
2010
+ var t;
2011
+ return n.maxCount && ((t = c.value) == null ? void 0 : t.length) >= n.maxCount;
2012
+ }), ta = h(() => {
2013
+ var t;
2014
+ return (t = c.value) == null ? void 0 : t.some((r) => r.state === "loading");
2015
+ }), A = h(() => !!n.errorMessage || G.error), N = h(() => {
2016
+ var t;
2017
+ return ((t = c.value) == null ? void 0 : t.length) > n.maxCount;
2018
+ }), I = T(!1), V = h(() => {
2019
+ var t;
2020
+ return (t = c.value) == null ? void 0 : t.some((r) => r.state === "error");
2021
+ });
2022
+ la(V, (t) => {
2023
+ ta.value || l("error:upload", t);
2024
+ });
2025
+ function P(t) {
2026
+ c.value = c.value.filter(({ id: r }) => r !== t.id);
2018
2027
  }
2019
- function V(p) {
2020
- const m = la({
2028
+ function ca(t) {
2029
+ const r = sa({
2021
2030
  id: oa("file"),
2022
- data: p,
2031
+ data: t,
2023
2032
  errors: [],
2024
2033
  progress: null,
2025
- state: L.LOADING,
2026
- type: yi(p)
2034
+ state: R.LOADING,
2035
+ type: $i(t)
2027
2036
  });
2028
- return $i(m, t.accept, t.maxDimensions), m;
2037
+ return _i(r, n.accept, n.maxDimensions), r;
2029
2038
  }
2030
- function K(p) {
2031
- var m;
2032
- ((m = c.value) == null ? void 0 : m.length) === t.maxCount && p.preventDefault();
2039
+ function Ha(t) {
2040
+ var r;
2041
+ ((r = c.value) == null ? void 0 : r.length) === n.maxCount && t.preventDefault();
2033
2042
  }
2034
- function sa(p) {
2035
- if (t.maxCount === 1 && p.length > t.maxCount) {
2043
+ function da(t) {
2044
+ if (n.maxCount === 1 && t.length > n.maxCount) {
2036
2045
  na(), Z();
2037
2046
  return;
2038
2047
  }
2039
- O.value ? c.value = [...c.value || [], ...Array.from(p).map((m) => V(m))] : c.value = [V(p[0])];
2048
+ O.value ? c.value = [...c.value || [], ...Array.from(t).map((r) => ca(r))] : c.value = [ca(t[0])];
2040
2049
  }
2041
- function Da(p) {
2050
+ function Oa(t) {
2042
2051
  var y, k;
2043
- if (t.disabled)
2052
+ if (n.disabled)
2044
2053
  return;
2045
- B.value = p.target;
2046
- const m = (((y = p.dataTransfer.items) == null ? void 0 : y.length) ?? 0) + (((k = c.value) == null ? void 0 : k.length) ?? 0);
2047
- W(m, p);
2054
+ B.value = t.target;
2055
+ const r = (((y = t.dataTransfer.items) == null ? void 0 : y.length) ?? 0) + (((k = c.value) == null ? void 0 : k.length) ?? 0);
2056
+ Y(r, t);
2048
2057
  }
2049
2058
  function na() {
2050
2059
  B.value = null;
2051
2060
  }
2052
- function Ha(p) {
2053
- B.value === p.target && (na(), Z());
2061
+ function Fa(t) {
2062
+ B.value === t.target && (na(), Z());
2054
2063
  }
2055
- function Oa(p) {
2056
- p.preventDefault(), t.disabled && (p.dataTransfer.dropEffect = "none");
2064
+ function qa(t) {
2065
+ t.preventDefault(), n.disabled && (t.dataTransfer.dropEffect = "none");
2057
2066
  }
2058
- function Fa(p) {
2059
- var m;
2060
- t.disabled || (!H.invalidTypes && ((m = p.dataTransfer.files) != null && m.length) && sa(p.dataTransfer.files), na(), Z());
2067
+ function Za(t) {
2068
+ var r;
2069
+ n.disabled || (!H.invalidTypes && ((r = t.dataTransfer.files) != null && r.length) && da(t.dataTransfer.files), na(), Z());
2061
2070
  }
2062
- function qa() {
2063
- var p;
2064
- (p = d.value.files) != null && p.length && sa(d.value.files), d.value.value = "";
2071
+ function Ba() {
2072
+ var t;
2073
+ (t = d.value.files) != null && t.length && da(d.value.files), d.value.value = "";
2065
2074
  }
2066
- function Za(p) {
2067
- const m = t.maxCount && p.length <= t.maxCount;
2068
- J.value = !m;
2075
+ function Aa(t) {
2076
+ const r = n.maxCount && t.length <= n.maxCount;
2077
+ I.value = !r;
2069
2078
  }
2070
- function Ba(p) {
2071
- t.maxSize && p.forEach((m) => {
2072
- const y = m;
2073
- y.data.size > t.maxSize && (y.state = L.ERROR, y.errors.push(j.ERROR_SIZE));
2079
+ function Na(t) {
2080
+ n.maxSize && t.forEach((r) => {
2081
+ const y = r;
2082
+ y.data.size > n.maxSize && (y.state = R.ERROR, y.errors.push(j.ERROR_SIZE));
2074
2083
  });
2075
2084
  }
2076
- function Aa(p) {
2077
- const m = p.filter(
2085
+ function Pa(t) {
2086
+ const r = t.filter(
2078
2087
  ({ errors: y }) => !y.includes(j.ERROR_LOAD) && !y.includes(j.ERROR_SIZE)
2079
2088
  );
2080
- if (m.length) {
2089
+ if (r.length) {
2081
2090
  const y = new DataTransfer();
2082
- return m.forEach(({ data: k }) => y.items.add(k)), y.files;
2091
+ return r.forEach(({ data: k }) => y.items.add(k)), y.files;
2083
2092
  }
2084
2093
  }
2085
- return _a(c, (p) => {
2086
- if (p) {
2087
- Za(p), Ba(p);
2088
- const m = Aa(p);
2089
- l("change", m), l("update:modelValue", m);
2094
+ return la(c, (t) => {
2095
+ if (t) {
2096
+ Aa(t), Na(t);
2097
+ const r = Pa(t);
2098
+ l("change", r), l("update:modelValue", r);
2090
2099
  } else
2091
2100
  l("change"), l("update:modelValue");
2092
- }), (p, m) => {
2101
+ }), (t, r) => {
2093
2102
  var y;
2094
2103
  return s(), v("div", {
2095
- class: S(["b-file-uploader", Y.value])
2104
+ class: S(["b-file-uploader", J.value])
2096
2105
  }, [
2097
- M(o(oi), {
2106
+ M(o(si), {
2098
2107
  class: "b-file-uploader__label",
2099
2108
  for: o(w),
2100
- label: p.label,
2101
- optional: p.optional,
2102
- required: p.required,
2103
- "tooltip-text": p.tooltipText
2109
+ label: t.label,
2110
+ optional: t.optional,
2111
+ required: t.required,
2112
+ "tooltip-text": t.tooltipText
2104
2113
  }, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
2105
- r("input", {
2114
+ m("input", {
2106
2115
  id: o(w),
2107
2116
  ref_key: "inputRef",
2108
2117
  ref: d,
@@ -2110,117 +2119,117 @@ const ze = ["id", "accept", "disabled", "multiple"], Ee = ["aria-label", "tabind
2110
2119
  tabindex: "-1",
2111
2120
  "data-testid": "input",
2112
2121
  class: "b-file-uploader__input",
2113
- accept: p.accept,
2114
- disabled: p.disabled,
2122
+ accept: t.accept,
2123
+ disabled: t.disabled,
2115
2124
  multiple: O.value,
2116
- onChange: qa,
2117
- onClick: K
2118
- }, null, 40, ze),
2119
- ta.value ? f("", !0) : (s(), v("div", {
2125
+ onChange: Ba,
2126
+ onClick: Ha
2127
+ }, null, 40, Re),
2128
+ ea.value ? f("", !0) : (s(), v("div", {
2120
2129
  key: 0,
2121
2130
  class: "b-file-uploader__area",
2122
- "aria-label": o(n)("dropArea"),
2123
- tabindex: p.disabled ? -1 : 0,
2124
- onClick: m[0] || (m[0] = (k) => d.value.click()),
2125
- onDragenter: N(Da, ["stop", "prevent"]),
2126
- onDragleave: N(Ha, ["stop", "prevent"]),
2127
- onDrop: N(Fa, ["stop", "prevent"]),
2128
- onDragover: Oa,
2131
+ "aria-label": o(p)("dropArea"),
2132
+ tabindex: t.disabled ? -1 : 0,
2133
+ onClick: r[0] || (r[0] = (k) => d.value.click()),
2134
+ onDragenter: U(Oa, ["stop", "prevent"]),
2135
+ onDragleave: U(Fa, ["stop", "prevent"]),
2136
+ onDrop: U(Za, ["stop", "prevent"]),
2137
+ onDragover: qa,
2129
2138
  onKeydownCapture: [
2130
- m[1] || (m[1] = da(N((k) => d.value.click(), ["prevent"]), ["enter"])),
2131
- m[2] || (m[2] = da(N((k) => d.value.click(), ["prevent"]), ["space"]))
2139
+ r[1] || (r[1] = ma(U((k) => d.value.click(), ["prevent"]), ["enter"])),
2140
+ r[2] || (r[2] = ma(U((k) => d.value.click(), ["prevent"]), ["space"]))
2132
2141
  ]
2133
2142
  }, [
2134
- r("div", Re, [
2135
- A.value ? (s(), h(o(Ea), {
2143
+ m("div", Ie, [
2144
+ A.value ? (s(), b(o(Ra), {
2136
2145
  key: 0,
2137
- "svg-title": o(n)("warning")
2138
- }, null, 8, ["svg-title"])) : (s(), h(o(ri), {
2146
+ "svg-title": o(p)("warning")
2147
+ }, null, 8, ["svg-title"])) : (s(), b(o(ui), {
2139
2148
  key: 1,
2140
- "svg-title": o(n)("upload")
2149
+ "svg-title": o(p)("upload")
2141
2150
  }, null, 8, ["svg-title"]))
2142
2151
  ]),
2143
- p.condensed ? f("", !0) : (s(), v(ra, { key: 0 }, [
2152
+ t.condensed ? f("", !0) : (s(), v(ua, { key: 0 }, [
2144
2153
  M(o(z), {
2145
2154
  el: "span",
2146
2155
  strongest: "",
2147
2156
  class: "b-file-uploader__title"
2148
2157
  }, {
2149
2158
  default: g(() => [
2150
- $(u(o(e)("dropFiles", p.maxCount)), 1)
2159
+ $(u(o(e)("dropFiles", t.maxCount)), 1)
2151
2160
  ]),
2152
2161
  _: 1
2153
2162
  }),
2154
- p.description ? (s(), h(o(z), {
2163
+ t.description ? (s(), b(o(z), {
2155
2164
  key: 0,
2156
2165
  el: "span",
2157
2166
  class: "b-file-uploader__description"
2158
2167
  }, {
2159
2168
  default: g(() => [
2160
- $(u(p.description), 1)
2169
+ $(u(t.description), 1)
2161
2170
  ]),
2162
2171
  _: 1
2163
2172
  })) : f("", !0),
2164
- M(o(ja), ma(Xa(G.value)), null, 16)
2173
+ M(o(za), va(Ka(X.value)), null, 16)
2165
2174
  ], 64)),
2166
- M(o(Q), {
2167
- disabled: p.disabled,
2168
- variant: p.condensed ? "tertiary" : "secondary",
2175
+ M(o(K), {
2176
+ disabled: t.disabled,
2177
+ variant: t.condensed ? "tertiary" : "secondary",
2169
2178
  condensed: "",
2170
2179
  tabindex: "-1",
2171
2180
  class: "b-file-uploader__button"
2172
2181
  }, {
2173
2182
  default: g(() => [
2174
- $(u(o(n)("browseFiles")), 1)
2183
+ $(u(o(p)("browseFiles")), 1)
2175
2184
  ]),
2176
2185
  _: 1
2177
2186
  }, 8, ["disabled", "variant"])
2178
- ], 40, Ee)),
2179
- A.value && p.errorMessage ? (s(), h(o(li), {
2187
+ ], 40, Le)),
2188
+ A.value && t.errorMessage ? (s(), b(o(ci), {
2180
2189
  key: 1,
2181
2190
  id: o(q),
2182
- "error-message": p.errorMessage,
2191
+ "error-message": t.errorMessage,
2183
2192
  class: "b-file-uploader__error-message"
2184
2193
  }, null, 8, ["id", "error-message"])) : f("", !0),
2185
- p.condensed && p.description ? (s(), h(o(z), {
2194
+ t.condensed && t.description ? (s(), b(o(z), {
2186
2195
  key: 2,
2187
2196
  el: "span",
2188
2197
  class: "b-file-uploader__description b-file-uploader__description--condensed"
2189
2198
  }, {
2190
2199
  default: g(() => [
2191
- $(u(p.description), 1)
2200
+ $(u(t.description), 1)
2192
2201
  ]),
2193
2202
  _: 1
2194
2203
  })) : f("", !0),
2195
- p.condensed ? (s(), h(o(ja), ma(I({ key: 3 }, G.value)), null, 16)) : f("", !0),
2196
- X.value ? (s(), h(o(Qa), {
2204
+ t.condensed ? (s(), b(o(za), va(L({ key: 3 }, X.value)), null, 16)) : f("", !0),
2205
+ N.value ? (s(), b(o(ii), {
2197
2206
  key: 4,
2198
2207
  type: "critical"
2199
2208
  }, {
2200
2209
  description: g(() => [
2201
- $(u(o(n)("youHaveExceededTheMaximum", { count: t.maxCount })), 1)
2210
+ $(u(o(p)("youHaveExceededTheMaximum", { count: n.maxCount })), 1)
2202
2211
  ]),
2203
2212
  default: g(() => [
2204
- $(u(o(n)("tooManyFiles")) + " ", 1)
2213
+ $(u(o(p)("tooManyFiles")) + " ", 1)
2205
2214
  ]),
2206
2215
  _: 1
2207
2216
  })) : f("", !0),
2208
- za(r("div", Le, [
2209
- (s(!0), v(ra, null, Ja(c.value, (k) => (s(), h(o(be), {
2217
+ Ea(m("div", Ve, [
2218
+ (s(!0), v(ua, null, Qa(c.value, (k) => (s(), b(o(Ce), {
2210
2219
  key: k.id,
2211
2220
  file: k,
2212
2221
  "supported-file-types": o(C),
2213
- onCancel: (Na) => E(k),
2214
- onRemove: (Na) => E(k)
2222
+ onCancel: (Ua) => P(k),
2223
+ onRemove: (Ua) => P(k)
2215
2224
  }, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
2216
2225
  ], 512), [
2217
- [Ka, (y = c.value) == null ? void 0 : y.length]
2226
+ [ai, (y = c.value) == null ? void 0 : y.length]
2218
2227
  ])
2219
2228
  ], 2);
2220
2229
  };
2221
2230
  }
2222
- }), Xe = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-07ee096a"]]);
2231
+ }), Ke = /* @__PURE__ */ _(Se, [["__scopeId", "data-v-19f4b656"]]);
2223
2232
  export {
2224
- Xe as f
2233
+ Ke as f
2225
2234
  };
2226
- //# sourceMappingURL=file-uploader.CLZ1rPz0.js.map
2235
+ //# sourceMappingURL=file-uploader.NbsEgoj1.js.map