@adyen/bento-vue2 1.76.2 → 1.77.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 (145) hide show
  1. package/dist/@types/index.d.ts +300 -35
  2. package/dist/assets/accordion-item.css +1 -1
  3. package/dist/assets/action-bar.css +1 -1
  4. package/dist/assets/base-modal.css +1 -1
  5. package/dist/assets/button-actions.css +1 -1
  6. package/dist/assets/card.css +1 -1
  7. package/dist/assets/data-grid.css +1 -1
  8. package/dist/assets/date-picker.css +1 -1
  9. package/dist/assets/date-range-picker.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown-default-textbox.css +1 -1
  12. package/dist/assets/dropdown-tag.css +1 -1
  13. package/dist/assets/dropdown.css +1 -1
  14. package/dist/assets/file-uploader.css +1 -1
  15. package/dist/assets/filter-bar.css +1 -1
  16. package/dist/assets/input-field-phone-number.css +1 -1
  17. package/dist/assets/input-field.css +1 -1
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/pagination.css +1 -1
  21. package/dist/assets/payment-method.css +1 -1
  22. package/dist/assets/secondary-nav.css +1 -1
  23. package/dist/assets/sidepanel.css +1 -1
  24. package/dist/assets/tag.css +1 -1
  25. package/dist/assets/textarea.css +1 -1
  26. package/dist/assets/timeline-item.css +1 -1
  27. package/dist/checkbox.js +2 -2
  28. package/dist/chunks/{checkbox-group.CtNVRcmP.js → checkbox-group.C3RH5Gcg.js} +2 -2
  29. package/dist/chunks/{checkbox-group.CtNVRcmP.js.map → checkbox-group.C3RH5Gcg.js.map} +1 -1
  30. package/dist/chunks/{checkbox.nyUc0gLb.js → checkbox.itbBlXev.js} +3 -3
  31. package/dist/chunks/{checkbox.nyUc0gLb.js.map → checkbox.itbBlXev.js.map} +1 -1
  32. package/dist/chunks/{code-snippet.DFf3KMSi.js → code-snippet.BEbA1bIn.js} +2 -2
  33. package/dist/chunks/{code-snippet.DFf3KMSi.js.map → code-snippet.BEbA1bIn.js.map} +1 -1
  34. package/dist/chunks/{currency.AvvbekWO.js → currency.Cwhzzxw2.js} +2 -2
  35. package/dist/chunks/{currency.AvvbekWO.js.map → currency.Cwhzzxw2.js.map} +1 -1
  36. package/dist/chunks/{data-grid.C07AmPwV.js → data-grid.B-kBw540.js} +7 -7
  37. package/dist/chunks/{data-grid.C07AmPwV.js.map → data-grid.B-kBw540.js.map} +1 -1
  38. package/dist/chunks/date-picker.CKaQJcPa.js +168 -0
  39. package/dist/chunks/date-picker.CKaQJcPa.js.map +1 -0
  40. package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
  41. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
  42. package/dist/chunks/date-range-picker.BtPxkPN0.js +942 -0
  43. package/dist/chunks/date-range-picker.BtPxkPN0.js.map +1 -0
  44. package/dist/chunks/{dropdown-default-textbox.yLeN0E2z.js → dropdown-default-textbox.BCOVaw-a.js} +10 -10
  45. package/dist/chunks/dropdown-default-textbox.BCOVaw-a.js.map +1 -0
  46. package/dist/chunks/dropdown-tag.BXMgDH3v.js +294 -0
  47. package/dist/chunks/dropdown-tag.BXMgDH3v.js.map +1 -0
  48. package/dist/chunks/{dropdown.RxD2TqnP.js → dropdown.-3x2IBDg.js} +305 -297
  49. package/dist/chunks/{dropdown.RxD2TqnP.js.map → dropdown.-3x2IBDg.js.map} +1 -1
  50. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  51. package/dist/chunks/{file-uploader.BGoCYrnw.js → file-uploader.BkTtqgvQ.js} +296 -295
  52. package/dist/chunks/{file-uploader.BGoCYrnw.js.map → file-uploader.BkTtqgvQ.js.map} +1 -1
  53. package/dist/chunks/{filter-bar.DVqgwt2p.js → filter-bar.BLnSnOlj.js} +201 -201
  54. package/dist/chunks/filter-bar.BLnSnOlj.js.map +1 -0
  55. package/dist/chunks/form-field.BBqLu-vs.js +10 -0
  56. package/dist/chunks/form-field.BBqLu-vs.js.map +1 -0
  57. package/dist/chunks/get-slot-text.Bjb9dTSV.js +12 -0
  58. package/dist/chunks/get-slot-text.Bjb9dTSV.js.map +1 -0
  59. package/dist/chunks/{header-with-views.jnhILkoQ.js → header-with-views.C6Y7mAkq.js} +3 -3
  60. package/dist/chunks/{header-with-views.jnhILkoQ.js.map → header-with-views.C6Y7mAkq.js.map} +1 -1
  61. package/dist/chunks/{input-field-password.CHn2GUcL.js → input-field-password.sthICA2L.js} +3 -3
  62. package/dist/chunks/{input-field-password.CHn2GUcL.js.map → input-field-password.sthICA2L.js.map} +1 -1
  63. package/dist/chunks/{input-field-phone-number.CpnfVw6w.js → input-field-phone-number.BjinuvOl.js} +5 -5
  64. package/dist/chunks/{input-field-phone-number.CpnfVw6w.js.map → input-field-phone-number.BjinuvOl.js.map} +1 -1
  65. package/dist/chunks/{input-field.sGmuIXiw.js → input-field.CwKD3p3q.js} +34 -34
  66. package/dist/chunks/input-field.CwKD3p3q.js.map +1 -0
  67. package/dist/chunks/link.D8qpqg3W.js.map +1 -1
  68. package/dist/chunks/{listbox-option-tag.Dl8GwHLT.js → listbox-option-tag.DkPz3wPc.js} +2 -2
  69. package/dist/chunks/{listbox-option-tag.Dl8GwHLT.js.map → listbox-option-tag.DkPz3wPc.js.map} +1 -1
  70. package/dist/chunks/{pagination.C0YW_A_o.js → pagination.BzyyZJy6.js} +7 -7
  71. package/dist/chunks/pagination.BzyyZJy6.js.map +1 -0
  72. package/dist/chunks/{payment-method.DtvfUnit.js → payment-method.CcASYR3B.js} +12 -12
  73. package/dist/chunks/payment-method.CcASYR3B.js.map +1 -0
  74. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  75. package/dist/chunks/{radio-group.AcYMFudv.js → radio-group.B8ukv-pw.js} +3 -3
  76. package/dist/chunks/{radio-group.AcYMFudv.js.map → radio-group.B8ukv-pw.js.map} +1 -1
  77. package/dist/chunks/{rich-text-editor.eYW8X_YP.js → rich-text-editor.DzH-Z5oi.js} +2 -2
  78. package/dist/chunks/{rich-text-editor.eYW8X_YP.js.map → rich-text-editor.DzH-Z5oi.js.map} +1 -1
  79. package/dist/chunks/{search-bar.D8SJsbze.js → search-bar.CgzPXP8r.js} +3 -3
  80. package/dist/chunks/{search-bar.D8SJsbze.js.map → search-bar.CgzPXP8r.js.map} +1 -1
  81. package/dist/chunks/{secondary-nav.BFiTQaag.js → secondary-nav.3eZKyb8K.js} +4 -4
  82. package/dist/chunks/secondary-nav.3eZKyb8K.js.map +1 -0
  83. package/dist/chunks/{summary-grid.types.B80533d1.js → summary-grid.types.CaYrtyVO.js} +2 -2
  84. package/dist/chunks/{summary-grid.types.B80533d1.js.map → summary-grid.types.CaYrtyVO.js.map} +1 -1
  85. package/dist/chunks/tag.BltIbSh3.js +44 -0
  86. package/dist/chunks/tag.BltIbSh3.js.map +1 -0
  87. package/dist/chunks/textarea.h-WF62HP.js +173 -0
  88. package/dist/chunks/textarea.h-WF62HP.js.map +1 -0
  89. package/dist/chunks/{timeline-item.CZBuknZ_.js → timeline-item.BLhS7uNF.js} +5 -5
  90. package/dist/chunks/timeline-item.BLhS7uNF.js.map +1 -0
  91. package/dist/chunks/{toggle.BJMXpHRu.js → toggle.D2wmNu7m.js} +2 -2
  92. package/dist/chunks/{toggle.BJMXpHRu.js.map → toggle.D2wmNu7m.js.map} +1 -1
  93. package/dist/code-snippet.js +1 -1
  94. package/dist/currency.js +1 -1
  95. package/dist/data-grid.js +1 -1
  96. package/dist/date-picker.js +7 -6
  97. package/dist/date-picker.js.map +1 -1
  98. package/dist/date-range-picker.js +1 -1
  99. package/dist/dropdown.js +3 -3
  100. package/dist/file-uploader.js +1 -1
  101. package/dist/filter-bar.js +1 -1
  102. package/dist/header-with-views.js +1 -1
  103. package/dist/index.js +247 -246
  104. package/dist/index.js.map +1 -1
  105. package/dist/input-field-password.js +1 -1
  106. package/dist/input-field-phone-number.js +1 -1
  107. package/dist/input-field.js +1 -1
  108. package/dist/internal.js +1 -1
  109. package/dist/pagination.js +1 -1
  110. package/dist/payment-method.js +1 -1
  111. package/dist/radio-group.js +1 -1
  112. package/dist/rich-text-editor.js +1 -1
  113. package/dist/search-bar.js +2 -2
  114. package/dist/secondary-nav.js +1 -1
  115. package/dist/styles/bento-dark.css +4 -0
  116. package/dist/styles/bento-light.css +4 -0
  117. package/dist/styles/bento.css +4 -0
  118. package/dist/styles/legacy.css +4 -0
  119. package/dist/styles/styleguide.css +4 -0
  120. package/dist/summary-grid.js +1 -1
  121. package/dist/tag.js +1 -1
  122. package/dist/textarea.js +1 -1
  123. package/dist/timeline.js +1 -1
  124. package/dist/toggle.js +1 -1
  125. package/dist/web-types.json +144 -6
  126. package/package.json +6 -6
  127. package/dist/chunks/date-picker.DImAYvoM.js +0 -158
  128. package/dist/chunks/date-picker.DImAYvoM.js.map +0 -1
  129. package/dist/chunks/date-range-picker.NAG_5i8I.js +0 -914
  130. package/dist/chunks/date-range-picker.NAG_5i8I.js.map +0 -1
  131. package/dist/chunks/dropdown-default-textbox.yLeN0E2z.js.map +0 -1
  132. package/dist/chunks/dropdown-tag.CpvU8eSZ.js +0 -260
  133. package/dist/chunks/dropdown-tag.CpvU8eSZ.js.map +0 -1
  134. package/dist/chunks/filter-bar.DVqgwt2p.js.map +0 -1
  135. package/dist/chunks/get-slot-text.BQS5Olxm.js +0 -12
  136. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +0 -1
  137. package/dist/chunks/input-field.sGmuIXiw.js.map +0 -1
  138. package/dist/chunks/pagination.C0YW_A_o.js.map +0 -1
  139. package/dist/chunks/payment-method.DtvfUnit.js.map +0 -1
  140. package/dist/chunks/secondary-nav.BFiTQaag.js.map +0 -1
  141. package/dist/chunks/tag.BwKc2d2E.js +0 -44
  142. package/dist/chunks/tag.BwKc2d2E.js.map +0 -1
  143. package/dist/chunks/textarea.CIQuLWQ8.js +0 -165
  144. package/dist/chunks/textarea.CIQuLWQ8.js.map +0 -1
  145. package/dist/chunks/timeline-item.CZBuknZ_.js.map +0 -1
@@ -1,70 +1,71 @@
1
- import { defineComponent as W, ref as h, onUnmounted as Da, onMounted as ya, computed as c, watch as ta, reactive as ea, toRef as ia, nextTick as Va } from "vue";
1
+ import { defineComponent as N, ref as h, onUnmounted as Va, onMounted as Ca, computed as r, watch as ta, reactive as ea, toRef as ia, nextTick as Ba } from "vue";
2
2
  /* empty css */
3
3
  import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
4
- import { W as Ca } from "./warning-filled.CbJ1pcB2.js";
5
- import { B as Ba } from "./alert.SZPP58tl.js";
6
- import { B as na, d as Oa } from "./typography.hlOAxsEn.js";
7
- import { u as G } from "./index.B6WW_F-J.js";
4
+ import { W as ka } from "./warning-filled.CbJ1pcB2.js";
5
+ import { B as Oa } from "./alert.SZPP58tl.js";
6
+ import { B as na, d as Ha } from "./typography.hlOAxsEn.js";
7
+ import { u as W } from "./index.B6WW_F-J.js";
8
8
  import { g as w } from "./generate-uid.NJ8tVoha.js";
9
- import { i as ka } from "./index.Cl4_42j5.js";
10
- import { B as Ha } from "./bin.Ddb69cr1.js";
11
- import { C as qa } from "./checkmark-circle-fill.BttTCjrM.js";
12
- import { C as Ua } from "./cross.CC_B-vG-.js";
13
- import { R as Aa } from "./refresh.arF7jP-l.js";
14
- import { B as Za } from "./button.CS_kdxYh.js";
15
- import { B as Pa } from "./link.D8qpqg3W.js";
16
- import { B as Na } from "./loading-indicator.PxbRzshH.js";
17
- import { b as Wa } from "./tooltip.D3SDcRef.js";
18
- import { F as Ga, E as Ya } from "./field-label.Auq-Pzho.js";
9
+ import { u as qa } from "./form-field.BBqLu-vs.js";
10
+ import { i as Ra } from "./index.Cl4_42j5.js";
11
+ import { B as Ua } from "./bin.Ddb69cr1.js";
12
+ import { C as Aa } from "./checkmark-circle-fill.BttTCjrM.js";
13
+ import { C as Za } from "./cross.CC_B-vG-.js";
14
+ import { R as Pa } from "./refresh.arF7jP-l.js";
15
+ import { B as Na } from "./button.CS_kdxYh.js";
16
+ import { B as Wa } from "./link.D8qpqg3W.js";
17
+ import { B as Ga } from "./loading-indicator.PxbRzshH.js";
18
+ import { b as Ya } from "./tooltip.D3SDcRef.js";
19
+ import { F as Xa, E as Ja } from "./field-label.Auq-Pzho.js";
19
20
  import "../assets/file-uploader.css";
20
- let da = 0;
21
- const Xa = {
21
+ let ma = 0;
22
+ const Ka = {
22
23
  beforeCreate() {
23
- this.uuid = da.toString(), da += 1;
24
+ this.uuid = ma.toString(), ma += 1;
24
25
  }
25
26
  };
26
- var Ja = function() {
27
+ var Qa = function() {
27
28
  var a = this, t = a._self._c;
28
29
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", d: "M2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.25H14.75V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V10.25H2.75V12Z" } }), t("path", { attrs: { fill: "#001222", d: "M12.0605 5L11 6.06055L8.75 3.81055V11.75H7.25V3.81055L5 6.06055L3.93945 5L8 0.939453L12.0605 5Z" } })]);
29
- }, Ka = [], Qa = /* @__PURE__ */ g(
30
- Xa,
31
- Ja,
30
+ }, ai = [], ii = /* @__PURE__ */ g(
32
31
  Ka,
32
+ Qa,
33
+ ai,
33
34
  !1,
34
35
  null,
35
36
  null
36
37
  );
37
- const ai = Qa.exports, ii = /* @__PURE__ */ W({
38
+ const ti = ii.exports, ei = /* @__PURE__ */ N({
38
39
  __name: "file-uploader-file-card-animation",
39
40
  props: {
40
41
  name: null,
41
42
  showFileIcon: { type: Boolean }
42
43
  },
43
44
  setup(e) {
44
- return { __sfc: !0, isVue2: ka };
45
+ return { __sfc: !0, isVue2: Ra };
45
46
  }
46
47
  });
47
- var ti = function() {
48
+ var ni = function() {
48
49
  var a = this, t = a._self._c, i = a._self._setupProxy;
49
50
  return i.isVue2 ? t("Transition", { attrs: { name: a.name, mode: "out-in", css: a.showFileIcon } }, [a._t("default")], 2) : t("TransitionGroup", { attrs: { name: a.name, css: a.showFileIcon } }, [a._t("default")], 2);
50
- }, ei = [], ni = /* @__PURE__ */ g(
51
- ii,
52
- ti,
51
+ }, oi = [], pi = /* @__PURE__ */ g(
53
52
  ei,
53
+ ni,
54
+ oi,
54
55
  !1,
55
56
  null,
56
57
  null
57
58
  );
58
- const oi = ni.exports;
59
- function pi(e, a) {
59
+ const li = pi.exports;
60
+ function si(e, a) {
60
61
  const t = h(!1);
61
62
  let i;
62
63
  function o() {
63
64
  i && i.disconnect();
64
65
  }
65
- return Da(() => {
66
+ return Va(() => {
66
67
  o();
67
- }), ya(() => {
68
+ }), Ca(() => {
68
69
  o(), i = new IntersectionObserver(
69
70
  (p) => {
70
71
  t.value = !p[0].isIntersecting;
@@ -76,23 +77,23 @@ function pi(e, a) {
76
77
  ), i.observe(e.value.$el);
77
78
  }), t;
78
79
  }
79
- const ma = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
80
- function Ra(e, a) {
81
- const t = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)), ma.length - 1));
80
+ const ua = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
81
+ function Ea(e, a) {
82
+ const t = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)), ua.length - 1));
82
83
  return Intl.NumberFormat(e, {
83
84
  style: "unit",
84
- unit: ma[t]
85
+ unit: ua[t]
85
86
  }).format(a / 1024 ** t);
86
87
  }
87
- var y = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(y || {}), x = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(x || {}), N = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(N || {}), r = /* @__PURE__ */ ((e) => (e.TABLE = "table", e.IMAGE = "image", e.VIDEO = "video", e.AUDIO = "audio", e.TEXT = "text", e.PDF = "pdf", e.SLIDES = "slides", e.COMPRESSED = "compressed", e.GENERIC = "generic", e))(r || {});
88
- const li = [
88
+ var y = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(y || {}), x = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(x || {}), P = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(P || {}), d = /* @__PURE__ */ ((e) => (e.TABLE = "table", e.IMAGE = "image", e.VIDEO = "video", e.AUDIO = "audio", e.TEXT = "text", e.PDF = "pdf", e.SLIDES = "slides", e.COMPRESSED = "compressed", e.GENERIC = "generic", e))(d || {});
89
+ const ci = [
89
90
  "application/msword",
90
91
  // .doc
91
92
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
92
93
  // .docx
93
94
  "application/rtf"
94
95
  // .rtf
95
- ], si = [
96
+ ], ri = [
96
97
  "application/vnd.ms-excel",
97
98
  // .xls
98
99
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -105,14 +106,14 @@ const li = [
105
106
  // .numbers
106
107
  "text/csv"
107
108
  // .csv
108
- ], ci = [
109
+ ], di = [
109
110
  "application/vnd.ms-powerpoint",
110
111
  // .ppt
111
112
  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
112
113
  // .pptx
113
114
  "application/vnd.oasis.opendocument.presentation"
114
115
  // .odp
115
- ], ri = [
116
+ ], mi = [
116
117
  "application/zip",
117
118
  // .zip
118
119
  "application/vnd.rar",
@@ -134,10 +135,10 @@ const li = [
134
135
  "application/vnd.ms-cab-compressed"
135
136
  // .cab
136
137
  ];
137
- function di(e) {
138
- return si.includes(e.type) ? r.TABLE : e.type.startsWith("text/") || li.includes(e.type) ? r.TEXT : e.type.startsWith("image/") ? r.IMAGE : e.type.startsWith("video/") ? r.VIDEO : e.type.startsWith("audio/") ? r.AUDIO : e.type === "application/pdf" ? r.PDF : ci.includes(e.type) ? r.SLIDES : ri.includes(e.type) ? r.COMPRESSED : r.GENERIC;
138
+ function ui(e) {
139
+ return ri.includes(e.type) ? d.TABLE : e.type.startsWith("text/") || ci.includes(e.type) ? d.TEXT : e.type.startsWith("image/") ? d.IMAGE : e.type.startsWith("video/") ? d.VIDEO : e.type.startsWith("audio/") ? d.AUDIO : e.type === "application/pdf" ? d.PDF : di.includes(e.type) ? d.SLIDES : mi.includes(e.type) ? d.COMPRESSED : d.GENERIC;
139
140
  }
140
- function mi(e, a) {
141
+ function vi(e, a) {
141
142
  if (!a)
142
143
  return !0;
143
144
  const t = a.split(",").map((i) => i.trim());
@@ -153,20 +154,20 @@ function mi(e, a) {
153
154
  return !0;
154
155
  return !1;
155
156
  }
156
- function ui(e, a, t) {
157
+ function fi(e, a, t) {
157
158
  const i = new FileReader(), o = e;
158
- if (!mi(o.data, a)) {
159
+ if (!vi(o.data, a)) {
159
160
  o.state = y.ERROR, o.errors.push(x.ERROR_TYPE);
160
161
  return;
161
162
  }
162
163
  i.onload = (p) => {
163
- if (t && o.type === r.IMAGE) {
164
- const f = new Blob([p.target.result], { type: o.data.type }), s = URL.createObjectURL(f), d = new Image();
165
- d.onload = function() {
166
- (d.width > t.width || d.height > t.height) && (o.state = y.ERROR, o.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(s);
167
- }, d.onerror = function() {
164
+ if (t && o.type === d.IMAGE) {
165
+ const f = new Blob([p.target.result], { type: o.data.type }), s = URL.createObjectURL(f), m = new Image();
166
+ m.onload = function() {
167
+ (m.width > t.width || m.height > t.height) && (o.state = y.ERROR, o.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(s);
168
+ }, m.onerror = function() {
168
169
  URL.revokeObjectURL(s);
169
- }, d.src = s;
170
+ }, m.src = s;
170
171
  }
171
172
  }, i.onprogress = (p) => {
172
173
  p.lengthComputable && (o.progress = p.loaded / p.total * 100);
@@ -176,196 +177,196 @@ function ui(e, a, t) {
176
177
  o.state = y.ERROR, o.errors.push(x.ERROR_LOAD), o.progress = null;
177
178
  }, i.readAsArrayBuffer(o.data);
178
179
  }
179
- let ua = 0;
180
- const vi = {
180
+ let va = 0;
181
+ const xi = {
181
182
  beforeCreate() {
182
- this.uuid = ua.toString(), ua += 1;
183
+ this.uuid = va.toString(), va += 1;
183
184
  }
184
185
  };
185
- var fi = function() {
186
+ var gi = function() {
186
187
  var a = this, t = a._self._c;
187
188
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")" } }, [t("path", { attrs: { fill: "#001222", d: "M7.10655 3.02949C8.98948 1.14706 12.0441 1.14675 13.9269 3.02949C15.8095 4.91225 15.8093 7.96692 13.9269 9.84981L11.1564 12.6203L10.0958 11.5598L12.8663 8.78926C14.1629 7.49216 14.1631 5.38701 12.8663 4.09004C11.5694 2.79309 9.46424 2.79339 8.1671 4.09004L2.72667 9.53047C1.95976 10.2976 1.95963 11.5427 2.72667 12.3098C3.49372 13.0766 4.7389 13.0766 5.50597 12.3098L10.9464 6.86934C11.183 6.63224 11.1832 6.24693 10.9464 6.00996C10.7094 5.77301 10.3242 5.77331 10.087 6.00996L4.4962 11.6008L3.43565 10.5402L9.02647 4.94942C9.8494 4.12698 11.1842 4.12668 12.0069 4.94942C12.8296 5.77217 12.8293 7.107 12.0069 7.92989L6.56651 13.3703C5.21366 14.723 3.01896 14.723 1.66612 13.3703C0.313294 12.0175 0.313425 9.82283 1.66612 8.46992L7.10655 3.02949Z" } })]), t("defs", [t("clipPath", { attrs: { id: "uia-ui-assets/icons-16-attachment__a" + a.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
188
- }, xi = [], gi = /* @__PURE__ */ g(
189
- vi,
190
- fi,
189
+ }, hi = [], bi = /* @__PURE__ */ g(
191
190
  xi,
191
+ gi,
192
+ hi,
192
193
  !1,
193
194
  null,
194
195
  null
195
196
  );
196
- const hi = gi.exports;
197
- let va = 0;
198
- const bi = {
197
+ const _i = bi.exports;
198
+ let fa = 0;
199
+ const wi = {
199
200
  beforeCreate() {
200
- this.uuid = va.toString(), va += 1;
201
+ this.uuid = fa.toString(), fa += 1;
201
202
  }
202
203
  };
203
- var _i = function() {
204
+ var yi = function() {
204
205
  var a = this, t = a._self._c;
205
206
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", "fill-rule": "evenodd", d: "M11 0.25C12.5188 0.25 13.75 1.48122 13.75 3V7C13.75 7.85389 13.3607 8.6167 12.75 9.12109V10C12.75 10.8539 12.3607 11.6167 11.75 12.1211V13C11.75 14.5188 10.5188 15.75 9 15.75H7C5.48122 15.75 4.25 14.5188 4.25 13V12.1211C3.63934 11.6167 3.25 10.8539 3.25 10V9.12109C2.63934 8.6167 2.25 7.85389 2.25 7V3C2.25 1.48122 3.48122 0.25 5 0.25H11ZM10 12.75H6C5.91565 12.75 5.83241 12.7438 5.75 12.7363V13C5.75 13.6904 6.30964 14.25 7 14.25H9C9.69036 14.25 10.25 13.6904 10.25 13V12.7363C10.1676 12.7438 10.0843 12.75 10 12.75ZM11 9.75H5C4.91565 9.75 4.83241 9.74376 4.75 9.73633V10C4.75 10.6904 5.30964 11.25 6 11.25H10C10.6904 11.25 11.25 10.6904 11.25 10V9.73633C11.1676 9.74376 11.0843 9.75 11 9.75ZM5 1.75C4.30964 1.75 3.75 2.30964 3.75 3V7C3.75 7.69036 4.30964 8.25 5 8.25H11C11.6904 8.25 12.25 7.69036 12.25 7V3C12.25 2.30964 11.6904 1.75 11 1.75H5Z", "clip-rule": "evenodd" } })]);
206
- }, wi = [], yi = /* @__PURE__ */ g(
207
- bi,
208
- _i,
207
+ }, Ci = [], ki = /* @__PURE__ */ g(
209
208
  wi,
209
+ yi,
210
+ Ci,
210
211
  !1,
211
212
  null,
212
213
  null
213
214
  );
214
- const Ci = yi.exports;
215
- let fa = 0;
216
- const ki = {
215
+ const Ri = ki.exports;
216
+ let xa = 0;
217
+ const Ei = {
217
218
  beforeCreate() {
218
- this.uuid = fa.toString(), fa += 1;
219
+ this.uuid = xa.toString(), xa += 1;
219
220
  }
220
221
  };
221
- var Ri = function() {
222
+ var ji = function() {
222
223
  var a = this, t = a._self._c;
223
224
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", 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" } })]);
224
- }, Ei = [], ji = /* @__PURE__ */ g(
225
- ki,
226
- Ri,
225
+ }, zi = [], Ii = /* @__PURE__ */ g(
227
226
  Ei,
227
+ ji,
228
+ zi,
228
229
  !1,
229
230
  null,
230
231
  null
231
232
  );
232
- const zi = ji.exports;
233
- let xa = 0;
234
- const Ii = {
233
+ const Fi = Ii.exports;
234
+ let ga = 0;
235
+ const $i = {
235
236
  beforeCreate() {
236
- this.uuid = xa.toString(), xa += 1;
237
+ this.uuid = ga.toString(), ga += 1;
237
238
  }
238
239
  };
239
- var $i = function() {
240
+ var Ti = function() {
240
241
  var a = this, t = a._self._c;
241
242
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z" } }), t("path", { attrs: { fill: "#001222", d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z" } }), t("path", { attrs: { fill: "#001222", 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" } })]);
242
- }, Fi = [], Ti = /* @__PURE__ */ g(
243
- Ii,
243
+ }, Li = [], Si = /* @__PURE__ */ g(
244
244
  $i,
245
- Fi,
245
+ Ti,
246
+ Li,
246
247
  !1,
247
248
  null,
248
249
  null
249
250
  );
250
- const Li = Ti.exports;
251
- let ga = 0;
252
- const Si = {
251
+ const Mi = Si.exports;
252
+ let ha = 0;
253
+ const Di = {
253
254
  beforeCreate() {
254
- this.uuid = ga.toString(), ga += 1;
255
+ this.uuid = ha.toString(), ha += 1;
255
256
  }
256
257
  };
257
- var Mi = function() {
258
+ var Vi = function() {
258
259
  var a = this, t = a._self._c;
259
260
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", d: "M1.24609 12V5C1.24609 3.48579 2.48188 2.25 3.99609 2.25H7.30664L10.3066 5.25H11.9961C13.5103 5.25 14.7461 6.48579 14.7461 8V12C14.7461 13.5142 13.5103 14.75 11.9961 14.75H3.99609C2.48188 14.75 1.24609 13.5142 1.24609 12ZM2.74609 12C2.74609 12.6858 3.31031 13.25 3.99609 13.25H11.9961C12.6819 13.25 13.2461 12.6858 13.2461 12V8C13.2461 7.31421 12.6819 6.75 11.9961 6.75H9.68555L6.68555 3.75H3.99609C3.31031 3.75 2.74609 4.31421 2.74609 5V12Z" } })]);
260
- }, Di = [], Vi = /* @__PURE__ */ g(
261
- Si,
262
- Mi,
261
+ }, Bi = [], Oi = /* @__PURE__ */ g(
263
262
  Di,
263
+ Vi,
264
+ Bi,
264
265
  !1,
265
266
  null,
266
267
  null
267
268
  );
268
- const Bi = Vi.exports;
269
- let ha = 0;
270
- const Oi = {
269
+ const Hi = Oi.exports;
270
+ let ba = 0;
271
+ const qi = {
271
272
  beforeCreate() {
272
- this.uuid = ha.toString(), ha += 1;
273
+ this.uuid = ba.toString(), ba += 1;
273
274
  }
274
275
  };
275
- var Hi = function() {
276
+ var Ui = function() {
276
277
  var a = this, t = a._self._c;
277
278
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", d: "M9.74609 3.74805C11.1268 3.74805 12.2461 4.86733 12.2461 6.24805C12.2461 7.62876 11.1268 8.74805 9.74609 8.74805C8.36538 8.74805 7.24609 7.62876 7.24609 6.24805C7.24609 4.86733 8.36538 3.74805 9.74609 3.74805ZM9.74609 5.24805C9.19381 5.24805 8.74609 5.69576 8.74609 6.24805C8.74609 6.80033 9.19381 7.24805 9.74609 7.24805C10.2984 7.24805 10.7461 6.80033 10.7461 6.24805C10.7461 5.69576 10.2984 5.24805 9.74609 5.24805Z" } }), t("path", { attrs: { fill: "#001222", d: "M11.9961 1.24805C13.5149 1.24805 14.7461 2.47926 14.7461 3.99805V11.998C14.7461 13.5168 13.5149 14.748 11.9961 14.748H3.99609C2.47731 14.748 1.24609 13.5168 1.24609 11.998V3.99805C1.24609 2.47926 2.47731 1.24805 3.99609 1.24805H11.9961ZM2.74609 11.3105V11.998C2.74609 12.6884 3.30574 13.248 3.99609 13.248H9.18359L4.99609 9.06055L2.74609 11.3105ZM3.99609 2.74805C3.30574 2.74805 2.74609 3.30769 2.74609 3.99805V9.18945L4.99609 6.93945L11.3047 13.248H11.9961C12.6864 13.248 13.2461 12.6884 13.2461 11.998V3.99805C13.2461 3.30769 12.6865 2.74805 11.9961 2.74805H3.99609Z" } })]);
278
- }, qi = [], Ui = /* @__PURE__ */ g(
279
- Oi,
280
- Hi,
279
+ }, Ai = [], Zi = /* @__PURE__ */ g(
281
280
  qi,
281
+ Ui,
282
+ Ai,
282
283
  !1,
283
284
  null,
284
285
  null
285
286
  );
286
- const Ai = Ui.exports;
287
- let ba = 0;
288
- const Zi = {
287
+ const Pi = Zi.exports;
288
+ let _a = 0;
289
+ const Ni = {
289
290
  beforeCreate() {
290
- this.uuid = ba.toString(), ba += 1;
291
+ this.uuid = _a.toString(), _a += 1;
291
292
  }
292
293
  };
293
- var Pi = function() {
294
+ var Wi = function() {
294
295
  var a = this, t = a._self._c;
295
296
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")" } }, [t("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), t("path", { attrs: { 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" } })]), t("defs", [t("clipPath", { attrs: { id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
296
- }, Ni = [], Wi = /* @__PURE__ */ g(
297
- Zi,
298
- Pi,
297
+ }, Gi = [], Yi = /* @__PURE__ */ g(
299
298
  Ni,
299
+ Wi,
300
+ Gi,
300
301
  !1,
301
302
  null,
302
303
  null
303
304
  );
304
- const Gi = Wi.exports;
305
- let _a = 0;
306
- const Yi = {
305
+ const Xi = Yi.exports;
306
+ let wa = 0;
307
+ const Ji = {
307
308
  beforeCreate() {
308
- this.uuid = _a.toString(), _a += 1;
309
+ this.uuid = wa.toString(), wa += 1;
309
310
  }
310
311
  };
311
- var Xi = function() {
312
+ var Ki = function() {
312
313
  var a = this, t = a._self._c;
313
314
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", 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" } }), t("path", { attrs: { fill: "#001222", 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" } }), t("path", { attrs: { fill: "#001222", 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" } })]);
314
- }, Ji = [], Ki = /* @__PURE__ */ g(
315
- Yi,
316
- Xi,
315
+ }, Qi = [], at = /* @__PURE__ */ g(
317
316
  Ji,
317
+ Ki,
318
+ Qi,
318
319
  !1,
319
320
  null,
320
321
  null
321
322
  );
322
- const Qi = Ki.exports;
323
- let wa = 0;
324
- const at = {
323
+ const it = at.exports;
324
+ let ya = 0;
325
+ const tt = {
325
326
  beforeCreate() {
326
- this.uuid = wa.toString(), wa += 1;
327
+ this.uuid = ya.toString(), ya += 1;
327
328
  }
328
329
  };
329
- var it = function() {
330
+ var et = function() {
330
331
  var a = this, t = a._self._c;
331
332
  return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#001222", d: "M12 1.25C13.5188 1.25 14.75 2.48122 14.75 4V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V4C1.25 2.48122 2.48122 1.25 4 1.25H12ZM6.75 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.75H6.75V13.25ZM2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H5.25V10.75H2.75V12ZM6.75 9.25H13.25V6.75H6.75V9.25ZM2.75 9.25H5.25V6.75H2.75V9.25ZM6.75 5.25H13.25V4C13.25 3.30964 12.6904 2.75 12 2.75H6.75V5.25ZM4 2.75C3.30964 2.75 2.75 3.30964 2.75 4V5.25H5.25V2.75H4Z" } })]);
332
- }, tt = [], et = /* @__PURE__ */ g(
333
- at,
334
- it,
333
+ }, nt = [], ot = /* @__PURE__ */ g(
335
334
  tt,
335
+ et,
336
+ nt,
336
337
  !1,
337
338
  null,
338
339
  null
339
340
  );
340
- const nt = et.exports, ot = {
341
- [r.AUDIO]: Qi,
342
- [r.COMPRESSED]: Bi,
343
- [r.GENERIC]: hi,
344
- [r.IMAGE]: Ai,
345
- [r.PDF]: zi,
346
- [r.SLIDES]: Ci,
347
- [r.TABLE]: nt,
348
- [r.TEXT]: Li,
349
- [r.VIDEO]: Gi
341
+ const pt = ot.exports, lt = {
342
+ [d.AUDIO]: it,
343
+ [d.COMPRESSED]: Hi,
344
+ [d.GENERIC]: _i,
345
+ [d.IMAGE]: Pi,
346
+ [d.PDF]: Fi,
347
+ [d.SLIDES]: Ri,
348
+ [d.TABLE]: pt,
349
+ [d.TEXT]: Mi,
350
+ [d.VIDEO]: Xi
350
351
  };
351
- function pt(e) {
352
- return ot[e.type];
352
+ function st(e) {
353
+ return lt[e.type];
353
354
  }
354
- function lt(e) {
355
+ function ct(e) {
355
356
  switch (e.type) {
356
- case r.COMPRESSED:
357
- case r.GENERIC:
357
+ case d.COMPRESSED:
358
+ case d.GENERIC:
358
359
  return "grey";
359
- case r.PDF:
360
- case r.SLIDES:
360
+ case d.PDF:
361
+ case d.SLIDES:
361
362
  return "orange";
362
- case r.TEXT:
363
+ case d.TEXT:
363
364
  return "blue";
364
365
  default:
365
366
  return "green";
366
367
  }
367
368
  }
368
- const st = {
369
+ const rt = {
369
370
  "en-US": {
370
371
  cancel: "Cancel",
371
372
  fileExceedsSizeLimit: "File exceeds size limit",
@@ -384,34 +385,34 @@ const st = {
384
385
  remove: "Remover",
385
386
  retry: "Tentar novamente"
386
387
  }
387
- }, ct = {
388
+ }, dt = {
388
389
  name: "file-uploader-file-card",
389
- i18n: { messages: st }
390
- }, rt = /* @__PURE__ */ W({
391
- ...ct,
390
+ i18n: { messages: rt }
391
+ }, mt = /* @__PURE__ */ N({
392
+ ...dt,
392
393
  props: {
393
394
  file: null,
394
395
  supportedFileTypes: { default: null }
395
396
  },
396
397
  emits: ["cancel", "remove", "retry"],
397
398
  setup(e, { expose: a, emit: t }) {
398
- const i = e, o = 1200, { t: p, locale: f } = G(), s = h(null), d = h(null), u = h(null), C = w("file-errors-section"), I = w("cancel-file-button"), V = w("remove-file-button"), m = w("retry-file-button"), k = h(i.file.state === y.SUCCESS), $ = c(() => URL.createObjectURL(i.file.data)), E = c(() => i.file.state === y.ERROR), Y = c(() => i.file.errors.includes(x.ERROR_LOAD)), X = c(() => i.file.errors.includes(x.ERROR_SIZE)), J = c(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), L = c(() => i.file.errors.includes(x.ERROR_TYPE)), R = c(() => i.file.state === y.LOADING), F = c(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), B = c(() => Ra(f.value, i.file.data.size)), O = h(), j = h(), K = pi(O, j), S = c(() => ({
399
- "b-file-uploader-file-card--error": E.value
400
- })), Q = c(() => ({
401
- [`b-file-uploader-file-card__icon--${lt(i.file)}`]: k.value,
402
- "b-file-uploader-file-card__icon--error": E.value
403
- })), H = c(() => R.value ? Na : E.value ? Ca : k.value ? pt(i.file) : qa);
399
+ const i = e, o = 1200, { t: p, locale: f } = W(), s = h(null), m = h(null), u = h(null), C = w("file-errors-section"), B = w("cancel-file-button"), j = w("remove-file-button"), O = w("retry-file-button"), c = h(i.file.state === y.SUCCESS), T = r(() => URL.createObjectURL(i.file.data)), k = r(() => i.file.state === y.ERROR), H = r(() => i.file.errors.includes(x.ERROR_LOAD)), G = r(() => i.file.errors.includes(x.ERROR_SIZE)), Y = r(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), X = r(() => i.file.errors.includes(x.ERROR_TYPE)), z = r(() => i.file.state === y.LOADING), R = r(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), I = r(() => Ea(f.value, i.file.data.size)), L = h(), q = h(), F = si(L, q), J = r(() => ({
400
+ "b-file-uploader-file-card--error": k.value
401
+ })), S = r(() => ({
402
+ [`b-file-uploader-file-card__icon--${ct(i.file)}`]: c.value,
403
+ "b-file-uploader-file-card__icon--error": k.value
404
+ })), K = r(() => z.value ? Ga : k.value ? ka : c.value ? st(i.file) : Aa);
404
405
  ta(
405
406
  () => i.file.state,
406
- (M) => {
407
- if (M === y.SUCCESS && !k.value) {
408
- const U = setTimeout(() => {
409
- k.value = !0, clearTimeout(U);
407
+ (Q) => {
408
+ if (Q === y.SUCCESS && !c.value) {
409
+ const D = setTimeout(() => {
410
+ c.value = !0, clearTimeout(D);
410
411
  }, o);
411
412
  }
412
413
  }
413
414
  );
414
- function q() {
415
+ function M() {
415
416
  if (u.value) {
416
417
  u.value.$el.focus();
417
418
  return;
@@ -420,17 +421,17 @@ const st = {
420
421
  s.value.$el.focus();
421
422
  return;
422
423
  }
423
- if (d.value) {
424
- d.value.$el.focus();
424
+ if (m.value) {
425
+ m.value.$el.focus();
425
426
  return;
426
427
  }
427
428
  }
428
429
  return a({
429
- focus: q
430
- }), { __sfc: !0, ICON_TIMER: o, props: i, emit: t, t: p, locale: f, removeFileButtonRef: s, cancelFileButtonRef: d, retryFileButtonRef: u, fileErrorsSectionId: C, cancelFileButtonId: I, removeFileButtonId: V, retryFileButtonId: m, showFileIcon: k, downloadUrl: $, hasError: E, hasLoadError: Y, hasSizeError: X, hasDimensionsError: J, hasTypeError: L, isLoading: R, progressLabel: F, sizeLabel: B, fileNameRef: O, fileNameContainerRef: j, isFileNameTruncated: K, conditionalClasses: S, conditionalIconClasses: Q, fileUploaderIcon: H, focus: q, isVue2: ka, FileUploaderFileCardAnimation: oi, BinIcon: Ha, CrossIcon: Ua, RefreshIcon: Aa, vBentoTooltipDirective: Wa, BentoButton: Za, BentoLink: Pa, BentoTypography: na };
430
+ focus: M
431
+ }), { __sfc: !0, ICON_TIMER: o, props: i, emit: t, t: p, locale: f, removeFileButtonRef: s, cancelFileButtonRef: m, retryFileButtonRef: u, fileErrorsSectionId: C, cancelFileButtonId: B, removeFileButtonId: j, retryFileButtonId: O, showFileIcon: c, downloadUrl: T, hasError: k, hasLoadError: H, hasSizeError: G, hasDimensionsError: Y, hasTypeError: X, isLoading: z, progressLabel: R, sizeLabel: I, fileNameRef: L, fileNameContainerRef: q, isFileNameTruncated: F, conditionalClasses: J, conditionalIconClasses: S, fileUploaderIcon: K, focus: M, isVue2: Ra, FileUploaderFileCardAnimation: li, BinIcon: Ua, CrossIcon: Za, RefreshIcon: Pa, vBentoTooltipDirective: Ya, BentoButton: Na, BentoLink: Wa, BentoTypography: na };
431
432
  }
432
433
  });
433
- var dt = function() {
434
+ var ut = function() {
434
435
  var a = this, t = a._self._c, i = a._self._setupProxy;
435
436
  return t("div", { staticClass: "b-file-uploader-file-card", class: i.conditionalClasses }, [t("div", { staticClass: "b-file-uploader-file-card__details" }, [t("div", { staticClass: "b-file-uploader-file-card__info" }, [t(i.FileUploaderFileCardAnimation, { attrs: { name: i.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": i.showFileIcon } }, [t(i.fileUploaderIcon, { key: JSON.stringify(i.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: i.conditionalIconClasses, attrs: { small: "", "aria-hidden": "true", "data-testid": "file-uploader-item-icon" } })], 1), t("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [t(i.BentoLink, { attrs: { "aria-hidden": "true", tabindex: "-1", download: a.file.data.name, to: i.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [t(i.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: i.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? t(i.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(i.progressLabel))]) : a.file.data.size ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(i.sizeLabel) + " ")]) : a._e()], 1), i.hasSizeError || i.hasDimensionsError || i.hasTypeError && a.supportedFileTypes ? t("div", { attrs: { id: i.fileErrorsSectionId, role: "alert" } }, [i.hasSizeError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileExceedsSizeLimit")) + " ")]) : a._e(), i.hasDimensionsError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), i.hasTypeError && a.supportedFileTypes ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1) : a._e()]), t("div", { staticClass: "b-file-uploader-file-card__actions" }, [i.hasLoadError ? t(i.BentoButton, { ref: "retryFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.retryFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
436
437
  return i.emit("retry");
@@ -445,15 +446,15 @@ var dt = function() {
445
446
  } }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
446
447
  return [t(i.BinIcon, { attrs: { id: i.removeFileButtonId, "svg-title": `${i.t("remove")} - ${a.file.data.name}` } })];
447
448
  }, proxy: !0 }]) })], 1)]);
448
- }, mt = [], ut = /* @__PURE__ */ g(
449
- rt,
450
- dt,
449
+ }, vt = [], ft = /* @__PURE__ */ g(
451
450
  mt,
451
+ ut,
452
+ vt,
452
453
  !1,
453
454
  null,
454
455
  "7ab6dd6d"
455
456
  );
456
- const vt = ut.exports, ft = {
457
+ const xt = ft.exports, gt = {
457
458
  "en-US": {
458
459
  maxFileSize: "Max file size: {size}",
459
460
  maxImageDimensions: "Max image dimensions: {width} × {height}px",
@@ -462,10 +463,10 @@ const vt = ut.exports, ft = {
462
463
  maxUpload: "Max upload: {count} file | Max upload: {count} files",
463
464
  supportedFileTypes: "Supported file types: {list}"
464
465
  }
465
- }, xt = {
466
- i18n: { messages: ft }
467
- }, gt = /* @__PURE__ */ W({
468
- ...xt,
466
+ }, ht = {
467
+ i18n: { messages: gt }
468
+ }, bt = /* @__PURE__ */ N({
469
+ ...ht,
469
470
  __name: "file-uploader-restrictions",
470
471
  props: {
471
472
  condensed: { default: null },
@@ -476,7 +477,7 @@ const vt = ut.exports, ft = {
476
477
  supportedFileTypes: { default: null }
477
478
  },
478
479
  setup(e) {
479
- const a = e, { t, tc: i, n: o, locale: p } = G(), f = c(() => ({
480
+ const a = e, { t, tc: i, n: o, locale: p } = W(), f = r(() => ({
480
481
  "b-file-uploader-restrictions--condensed": a.condensed,
481
482
  "b-file-uploader-restrictions--disabled": a.disabled
482
483
  }));
@@ -485,7 +486,7 @@ const vt = ut.exports, ft = {
485
486
  "b-file-uploader-restrictions--error": u
486
487
  };
487
488
  }
488
- const d = c(() => {
489
+ const m = r(() => {
489
490
  if (!a.maxDimensions)
490
491
  return null;
491
492
  const {
@@ -493,21 +494,21 @@ const vt = ut.exports, ft = {
493
494
  } = a.maxDimensions;
494
495
  return u && C ? t("maxImageDimensions", { width: o(u), height: o(C) }) : u ? t("maxImageWidth", { width: o(u) }) : C ? t("maxImageHeight", { height: o(C) }) : null;
495
496
  });
496
- return { __sfc: !0, props: a, t, tc: i, n: o, locale: p, conditionalClasses: f, setRestrictionErrorClass: s, maxDimensionsLabel: d, BentoTypography: na, formatFileSize: Ra };
497
+ return { __sfc: !0, props: a, t, tc: i, n: o, locale: p, conditionalClasses: f, setRestrictionErrorClass: s, maxDimensionsLabel: m, BentoTypography: na, formatFileSize: Ea };
497
498
  }
498
499
  });
499
- var ht = function() {
500
+ var _t = function() {
500
501
  var a = this, t = a._self._c, i = a._self._setupProxy;
501
502
  return t("div", { staticClass: "b-file-uploader-restrictions", class: i.conditionalClasses }, [a.supportedFileTypes ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.supportedFileTypes.error) }, [a._v(" " + a._s(i.t("supportedFileTypes", { list: a.supportedFileTypes.value })) + " ")]) : a._e(), a.maxSize ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxSize.error) }, [a._v(" " + a._s(i.t("maxFileSize", { size: i.formatFileSize(i.locale, a.maxSize.value) })) + " ")]) : a._e(), a.maxDimensions ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxDimensions.error) }, [a._v(" " + a._s(i.maxDimensionsLabel) + " ")]) : a._e(), a.maxCount ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxCount.error) }, [a._v(" " + a._s(i.tc("maxUpload", a.maxCount.value, { count: i.n(a.maxCount.value) })) + " ")]) : a._e()], 1);
502
- }, bt = [], _t = /* @__PURE__ */ g(
503
- gt,
504
- ht,
503
+ }, wt = [], yt = /* @__PURE__ */ g(
505
504
  bt,
505
+ _t,
506
+ wt,
506
507
  !1,
507
508
  null,
508
509
  "c49d2e15"
509
510
  );
510
- const wt = _t.exports, Ea = {
511
+ const Ct = yt.exports, ja = {
511
512
  "application/prs.cww": ["cww"],
512
513
  "application/prs.xsf+xml": ["xsf"],
513
514
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1206,8 +1207,8 @@ const wt = _t.exports, Ea = {
1206
1207
  "video/x-smv": ["smv"],
1207
1208
  "x-conference/x-cooltalk": ["ice"]
1208
1209
  };
1209
- Object.freeze(Ea);
1210
- const ja = {
1210
+ Object.freeze(ja);
1211
+ const za = {
1211
1212
  "application/andrew-inset": ["ez"],
1212
1213
  "application/appinstaller": ["appinstaller"],
1213
1214
  "application/applixware": ["aw"],
@@ -1559,31 +1560,31 @@ const ja = {
1559
1560
  "video/quicktime": ["qt", "mov"],
1560
1561
  "video/webm": ["webm"]
1561
1562
  };
1562
- Object.freeze(ja);
1563
+ Object.freeze(za);
1563
1564
  var _ = function(e, a, t, i) {
1564
1565
  if (t === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
1565
1566
  if (typeof a == "function" ? e !== a || !i : !a.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1566
1567
  return t === "m" ? i : t === "a" ? i.call(e) : i ? i.value : a.get(e);
1567
- }, T, D, z;
1568
- class yt {
1568
+ }, $, V, E;
1569
+ class kt {
1569
1570
  constructor(...a) {
1570
- T.set(this, /* @__PURE__ */ new Map()), D.set(this, /* @__PURE__ */ new Map()), z.set(this, /* @__PURE__ */ new Map());
1571
+ $.set(this, /* @__PURE__ */ new Map()), V.set(this, /* @__PURE__ */ new Map()), E.set(this, /* @__PURE__ */ new Map());
1571
1572
  for (const t of a)
1572
1573
  this.define(t);
1573
1574
  }
1574
1575
  define(a, t = !1) {
1575
1576
  for (let [i, o] of Object.entries(a)) {
1576
- i = i.toLowerCase(), o = o.map((s) => s.toLowerCase()), _(this, z, "f").has(i) || _(this, z, "f").set(i, /* @__PURE__ */ new Set());
1577
- const p = _(this, z, "f").get(i);
1577
+ i = i.toLowerCase(), o = o.map((s) => s.toLowerCase()), _(this, E, "f").has(i) || _(this, E, "f").set(i, /* @__PURE__ */ new Set());
1578
+ const p = _(this, E, "f").get(i);
1578
1579
  let f = !0;
1579
1580
  for (let s of o) {
1580
- const d = s.startsWith("*");
1581
- if (s = d ? s.slice(1) : s, p == null || p.add(s), f && _(this, D, "f").set(i, s), f = !1, d)
1581
+ const m = s.startsWith("*");
1582
+ if (s = m ? s.slice(1) : s, p == null || p.add(s), f && _(this, V, "f").set(i, s), f = !1, m)
1582
1583
  continue;
1583
- const u = _(this, T, "f").get(s);
1584
+ const u = _(this, $, "f").get(s);
1584
1585
  if (u && u != i && !t)
1585
1586
  throw new Error(`"${i} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);
1586
- _(this, T, "f").set(s, i);
1587
+ _(this, $, "f").set(s, i);
1587
1588
  }
1588
1589
  }
1589
1590
  return this;
@@ -1592,32 +1593,32 @@ class yt {
1592
1593
  if (typeof a != "string")
1593
1594
  return null;
1594
1595
  const t = a.replace(/^.*[/\\]/, "").toLowerCase(), i = t.replace(/^.*\./, "").toLowerCase(), o = t.length < a.length;
1595
- return !(i.length < t.length - 1) && o ? null : _(this, T, "f").get(i) ?? null;
1596
+ return !(i.length < t.length - 1) && o ? null : _(this, $, "f").get(i) ?? null;
1596
1597
  }
1597
1598
  getExtension(a) {
1598
1599
  var t;
1599
- return typeof a != "string" ? null : (a = (t = a == null ? void 0 : a.split) == null ? void 0 : t.call(a, ";")[0], (a && _(this, D, "f").get(a.trim().toLowerCase())) ?? null);
1600
+ return typeof a != "string" ? null : (a = (t = a == null ? void 0 : a.split) == null ? void 0 : t.call(a, ";")[0], (a && _(this, V, "f").get(a.trim().toLowerCase())) ?? null);
1600
1601
  }
1601
1602
  getAllExtensions(a) {
1602
- return typeof a != "string" ? null : _(this, z, "f").get(a.toLowerCase()) ?? null;
1603
+ return typeof a != "string" ? null : _(this, E, "f").get(a.toLowerCase()) ?? null;
1603
1604
  }
1604
1605
  _freeze() {
1605
1606
  this.define = () => {
1606
1607
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1607
1608
  }, Object.freeze(this);
1608
- for (const a of _(this, z, "f").values())
1609
+ for (const a of _(this, E, "f").values())
1609
1610
  Object.freeze(a);
1610
1611
  return this;
1611
1612
  }
1612
1613
  _getTestState() {
1613
1614
  return {
1614
- types: _(this, T, "f"),
1615
- extensions: _(this, D, "f")
1615
+ types: _(this, $, "f"),
1616
+ extensions: _(this, V, "f")
1616
1617
  };
1617
1618
  }
1618
1619
  }
1619
- T = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap();
1620
- const za = new yt(ja, Ea)._freeze(), Ct = {
1620
+ $ = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
1621
+ const Ia = new kt(za, ja)._freeze(), Rt = {
1621
1622
  "en-US": {
1622
1623
  audioFiles: "audio files",
1623
1624
  browseFiles: "Browse files",
@@ -1630,12 +1631,12 @@ const za = new yt(ja, Ea)._freeze(), Ct = {
1630
1631
  youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
1631
1632
  }
1632
1633
  };
1633
- function kt(e) {
1634
- return e.includes("/") ? `.${za.getExtension(e).toUpperCase()}` : e.toUpperCase();
1634
+ function Et(e) {
1635
+ return e.includes("/") ? `.${Ia.getExtension(e).toUpperCase()}` : e.toUpperCase();
1635
1636
  }
1636
- function Rt(e) {
1637
- const { locale: a, t } = G();
1638
- return { supportedFileTypeList: c(() => {
1637
+ function jt(e) {
1638
+ const { locale: a, t } = W();
1639
+ return { supportedFileTypeList: r(() => {
1639
1640
  const o = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
1640
1641
  return e != null && e.value ? o.format(
1641
1642
  e.value.split(",").map((p) => {
@@ -1647,16 +1648,16 @@ function Rt(e) {
1647
1648
  case "video/*":
1648
1649
  return t("videoFiles");
1649
1650
  default:
1650
- return kt(p);
1651
+ return Et(p);
1651
1652
  }
1652
1653
  })
1653
1654
  ) : null;
1654
1655
  }) };
1655
1656
  }
1656
- function Et(e) {
1657
- return za.getType(e) ?? e;
1657
+ function zt(e) {
1658
+ return Ia.getType(e) ?? e;
1658
1659
  }
1659
- function jt({ maxCount: e, accept: a }) {
1660
+ function It({ maxCount: e, accept: a }) {
1660
1661
  const t = ea({
1661
1662
  invalidTypes: !1,
1662
1663
  partiallyInvalidTypes: !1,
@@ -1664,21 +1665,21 @@ function jt({ maxCount: e, accept: a }) {
1664
1665
  }), i = ea({
1665
1666
  dragging: !1,
1666
1667
  error: !1
1667
- }), o = c(() => a.value ? a.value.split(",").map((d) => Et(d.trim().toLocaleLowerCase())) : void 0);
1668
+ }), o = r(() => a.value ? a.value.split(",").map((m) => zt(m.trim().toLocaleLowerCase())) : void 0);
1668
1669
  function p() {
1669
1670
  i.dragging = !1, i.error = !1, t.invalidTypes = !1, t.partiallyInvalidTypes = !1, t.maxCountOverflow = !1;
1670
1671
  }
1671
- function f(s, d) {
1672
- if (i.dragging = !0, (!d.dataTransfer.types.includes("Files") || s > e.value) && (t.maxCountOverflow = !0, i.error = !0), !o.value)
1672
+ function f(s, m) {
1673
+ if (i.dragging = !0, (!m.dataTransfer.types.includes("Files") || s > e.value) && (t.maxCountOverflow = !0, i.error = !0), !o.value)
1673
1674
  return;
1674
1675
  let u = 0;
1675
- for (const C of d.dataTransfer.items)
1676
+ for (const C of m.dataTransfer.items)
1676
1677
  o.value.includes(C.type) && u++;
1677
1678
  if (u === 0) {
1678
1679
  i.error = !0, t.invalidTypes = !0;
1679
1680
  return;
1680
1681
  }
1681
- !t.invalidTypes && u !== d.dataTransfer.items.length && (i.error = !0, t.partiallyInvalidTypes = !0);
1682
+ !t.invalidTypes && u !== m.dataTransfer.items.length && (i.error = !0, t.partiallyInvalidTypes = !0);
1682
1683
  }
1683
1684
  return {
1684
1685
  dragState: i,
@@ -1687,11 +1688,11 @@ function jt({ maxCount: e, accept: a }) {
1687
1688
  onDragEnterValidations: f
1688
1689
  };
1689
1690
  }
1690
- const zt = {
1691
+ const Ft = {
1691
1692
  model: { prop: "modelValue" },
1692
- i18n: { messages: Ct }
1693
- }, It = /* @__PURE__ */ W({
1694
- ...zt,
1693
+ i18n: { messages: Rt }
1694
+ }, $t = /* @__PURE__ */ N({
1695
+ ...Ft,
1695
1696
  __name: "file-uploader",
1696
1697
  props: {
1697
1698
  accept: { default: null },
@@ -1708,172 +1709,172 @@ const zt = {
1708
1709
  required: { type: Boolean },
1709
1710
  tooltipText: { default: null }
1710
1711
  },
1711
- emits: ["change", "input", "update:modelValue", "error:upload"],
1712
+ emits: ["change", "input", "update:model-value", "error:upload"],
1712
1713
  setup(e, { emit: a }) {
1713
- const t = e, { t: i, tc: o, n: p } = G();
1714
- function f(n) {
1714
+ const t = e, { t: i, tc: o, n: p } = W(), { emitValue: f } = qa(a);
1715
+ function s(n) {
1715
1716
  return !!n && typeof n.length == "number" && typeof n.item == "function";
1716
1717
  }
1717
- ya(() => {
1718
- f(t.modelValue) || Oa(
1718
+ Ca(() => {
1719
+ s(t.modelValue) || Ha(
1719
1720
  "BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
1720
1721
  "Use FileList instead.",
1721
1722
  "2.0.0"
1722
1723
  );
1723
1724
  });
1724
- const { supportedFileTypeList: s } = Rt(ia(t, "accept")), d = w("browse-button"), u = w("custom-text"), C = w("drop-files-text"), I = w("comma-text"), V = w("file-uploader-restrictions"), m = h(null), k = h([]), $ = h(null), E = h(null), Y = w("input"), X = w("input-error"), J = c(() => {
1725
- const n = t.condensed ? "" : `${C} ${I}`, l = t.description ? `${u} ${I}` : "", v = `${V} ${I}`;
1726
- return `${n} ${l} ${v} ${d}`;
1727
- }), { dragState: L, dragErrors: R, resetDragState: F, onDragEnterValidations: B } = jt({
1725
+ const { supportedFileTypeList: m } = jt(ia(t, "accept")), u = w("browse-button"), C = w("custom-text"), B = w("drop-files-text"), j = w("comma-text"), O = w("file-uploader-restrictions"), c = h(null), T = h([]), k = h(null), H = h(null), G = w("input"), Y = w("input-error"), X = r(() => {
1726
+ const n = t.condensed ? "" : `${B} ${j}`, l = t.description ? `${C} ${j}` : "", v = `${O} ${j}`;
1727
+ return `${n} ${l} ${v} ${u}`;
1728
+ }), { dragState: z, dragErrors: R, resetDragState: I, onDragEnterValidations: L } = It({
1728
1729
  accept: ia(t, "accept"),
1729
1730
  maxCount: ia(t, "maxCount")
1730
- }), O = c(() => {
1731
+ }), q = r(() => {
1731
1732
  var n, l, v;
1732
1733
  return {
1733
1734
  condensed: t.condensed,
1734
1735
  disabled: t.disabled,
1735
1736
  maxCount: S.value ? {
1736
1737
  value: t.maxCount,
1737
- error: R.maxCountOverflow || oa.value
1738
+ error: R.maxCountOverflow || pa.value
1738
1739
  } : null,
1739
1740
  maxDimensions: t.maxDimensions ? {
1740
1741
  value: t.maxDimensions,
1741
- error: (n = m.value) == null ? void 0 : n.some((b) => b.errors.includes(x.ERROR_DIMENSIONS))
1742
+ error: (n = c.value) == null ? void 0 : n.some((b) => b.errors.includes(x.ERROR_DIMENSIONS))
1742
1743
  } : null,
1743
1744
  maxSize: t.maxSize ? {
1744
1745
  value: t.maxSize,
1745
- error: (l = m.value) == null ? void 0 : l.some((b) => b.errors.includes(x.ERROR_SIZE))
1746
+ error: (l = c.value) == null ? void 0 : l.some((b) => b.errors.includes(x.ERROR_SIZE))
1746
1747
  } : null,
1747
- supportedFileTypes: s.value ? {
1748
- value: s.value,
1749
- error: R.invalidTypes || R.partiallyInvalidTypes || ((v = m.value) == null ? void 0 : v.some((b) => b.errors.includes(x.ERROR_TYPE)))
1748
+ supportedFileTypes: m.value ? {
1749
+ value: m.value,
1750
+ error: R.invalidTypes || R.partiallyInvalidTypes || ((v = c.value) == null ? void 0 : v.some((b) => b.errors.includes(x.ERROR_TYPE)))
1750
1751
  } : null
1751
1752
  };
1752
- }), j = h(), K = c(() => ({
1753
- [`b-file-uploader--${N.DISABLED}`]: t.disabled,
1754
- [`b-file-uploader--${N.DRAG_OVER}`]: L.dragging,
1755
- [`b-file-uploader--${N.ERROR}`]: U.value,
1753
+ }), F = h(), J = r(() => ({
1754
+ [`b-file-uploader--${P.DISABLED}`]: t.disabled,
1755
+ [`b-file-uploader--${P.DRAG_OVER}`]: z.dragging,
1756
+ [`b-file-uploader--${P.ERROR}`]: oa.value,
1756
1757
  "b-file-uploader--condensed": t.condensed
1757
- })), S = c(() => t.maxCount > 1), Q = c(() => {
1758
+ })), S = r(() => t.maxCount > 1), K = r(() => {
1758
1759
  var n;
1759
- return t.maxCount && ((n = m.value) == null ? void 0 : n.length) >= t.maxCount;
1760
- }), H = c(() => {
1760
+ return t.maxCount && ((n = c.value) == null ? void 0 : n.length) >= t.maxCount;
1761
+ }), M = r(() => {
1761
1762
  var n;
1762
- return (n = m.value) == null ? void 0 : n.some((l) => l.state === "loading");
1763
- }), q = (n) => (l) => {
1764
- k.value[n] = l;
1763
+ return (n = c.value) == null ? void 0 : n.some((l) => l.state === "loading");
1764
+ }), Q = (n) => (l) => {
1765
+ T.value[n] = l;
1765
1766
  };
1766
- function M(n) {
1767
+ function D(n) {
1767
1768
  if (n) {
1768
- sa(n), ca(n);
1769
- const l = ra(n);
1770
- a("change", l), a("update:modelValue", l), a("input", l);
1769
+ ca(n), ra(n);
1770
+ const l = da(n);
1771
+ a("change", l), f(l);
1771
1772
  } else
1772
- a("change"), a("update:modelValue"), a("input");
1773
+ a("change", void 0), f(void 0);
1773
1774
  }
1774
- const U = c(() => !!t.errorMessage || L.error), oa = c(() => {
1775
+ const oa = r(() => !!t.errorMessage || z.error), pa = r(() => {
1775
1776
  var n;
1776
- return ((n = m.value) == null ? void 0 : n.length) > t.maxCount;
1777
- }), pa = h(!1), la = c(() => {
1777
+ return ((n = c.value) == null ? void 0 : n.length) > t.maxCount;
1778
+ }), la = h(!1), sa = r(() => {
1778
1779
  var n;
1779
- return (n = m.value) == null ? void 0 : n.some((l) => l.state === "error");
1780
+ return (n = c.value) == null ? void 0 : n.some((l) => l.state === "error");
1780
1781
  });
1781
- ta(la, (n) => {
1782
- H.value || a("error:upload", n);
1782
+ ta(sa, (n) => {
1783
+ M.value || a("error:upload", n);
1783
1784
  });
1784
- async function A() {
1785
+ async function U() {
1785
1786
  var n;
1786
- if (await Va(), m.value.length === t.maxCount) {
1787
- (n = k.value[0]) == null || n.focus();
1787
+ if (await Ba(), c.value.length === t.maxCount) {
1788
+ (n = T.value[0]) == null || n.focus();
1788
1789
  return;
1789
1790
  }
1790
- E.value.focus();
1791
+ H.value.focus();
1791
1792
  }
1792
- async function Ia(n) {
1793
- m.value = m.value.filter(({ id: l }) => l !== n.id), await A(), M(m.value);
1793
+ async function Fa(n) {
1794
+ c.value = c.value.filter(({ id: l }) => l !== n.id), await U(), D(c.value);
1794
1795
  }
1795
- function Z(n) {
1796
+ function A(n) {
1796
1797
  const l = ea({
1797
1798
  id: w("file"),
1798
1799
  data: n,
1799
1800
  errors: [],
1800
1801
  progress: null,
1801
1802
  state: y.LOADING,
1802
- type: di(n)
1803
+ type: ui(n)
1803
1804
  });
1804
- return ui(l, t.accept, t.maxDimensions), l;
1805
+ return fi(l, t.accept, t.maxDimensions), l;
1805
1806
  }
1806
1807
  function $a(n) {
1807
1808
  var l;
1808
- ((l = m.value) == null ? void 0 : l.length) === t.maxCount && n.preventDefault();
1809
+ ((l = c.value) == null ? void 0 : l.length) === t.maxCount && n.preventDefault();
1809
1810
  }
1810
1811
  async function aa(n) {
1811
1812
  if (t.maxCount === 1 && n.length > t.maxCount) {
1812
- P(), F();
1813
+ Z(), I();
1813
1814
  return;
1814
1815
  }
1815
- S.value ? m.value = [...m.value || [], ...Array.from(n).map((l) => Z(l))] : (m.value = [Z(n[0])], await A()), M(m.value);
1816
+ S.value ? c.value = [...c.value || [], ...Array.from(n).map((l) => A(l))] : (c.value = [A(n[0])], await U()), D(c.value);
1816
1817
  }
1817
- function Fa(n) {
1818
+ function Ta(n) {
1818
1819
  var v, b;
1819
1820
  if (t.disabled)
1820
1821
  return;
1821
- j.value = n.target;
1822
- const l = (((v = n.dataTransfer.items) == null ? void 0 : v.length) ?? 0) + (((b = m.value) == null ? void 0 : b.length) ?? 0);
1823
- B(l, n);
1824
- }
1825
- function P() {
1826
- j.value = null;
1822
+ F.value = n.target;
1823
+ const l = (((v = n.dataTransfer.items) == null ? void 0 : v.length) ?? 0) + (((b = c.value) == null ? void 0 : b.length) ?? 0);
1824
+ L(l, n);
1827
1825
  }
1828
- function Ta(n) {
1829
- j.value === n.target && (P(), F());
1826
+ function Z() {
1827
+ F.value = null;
1830
1828
  }
1831
1829
  function La(n) {
1830
+ F.value === n.target && (Z(), I());
1831
+ }
1832
+ function Sa(n) {
1832
1833
  n.preventDefault(), t.disabled && (n.dataTransfer.dropEffect = "none");
1833
1834
  }
1834
- async function Sa(n) {
1835
+ async function Ma(n) {
1835
1836
  var l;
1836
- t.disabled || (!R.invalidTypes && ((l = n.dataTransfer.files) != null && l.length) && aa(n.dataTransfer.files), P(), F());
1837
+ t.disabled || (!R.invalidTypes && ((l = n.dataTransfer.files) != null && l.length) && aa(n.dataTransfer.files), Z(), I());
1837
1838
  }
1838
- async function Ma() {
1839
+ async function Da() {
1839
1840
  var n;
1840
- (n = $.value.files) != null && n.length && aa($.value.files), $.value.value = "", await A();
1841
+ (n = k.value.files) != null && n.length && aa(k.value.files), k.value.value = "", await U();
1841
1842
  }
1842
1843
  ta(
1843
1844
  () => t.modelValue,
1844
1845
  (n) => {
1845
- if (n && f(n)) {
1846
+ if (n && s(n)) {
1846
1847
  const l = n, v = Array.from(l);
1847
- m.value = v.map((b) => Z(b));
1848
- } else !n && m.value && (m.value = null);
1848
+ c.value = v.map((b) => A(b));
1849
+ } else !n && c.value && (c.value = null);
1849
1850
  },
1850
1851
  { immediate: !0 }
1851
1852
  );
1852
- function sa(n) {
1853
+ function ca(n) {
1853
1854
  const l = t.maxCount && n.length <= t.maxCount;
1854
- pa.value = !l;
1855
+ la.value = !l;
1855
1856
  }
1856
- function ca(n) {
1857
+ function ra(n) {
1857
1858
  t.maxSize && n.forEach((l) => {
1858
1859
  const v = l;
1859
1860
  v.data.size > t.maxSize && (v.state = y.ERROR, v.errors.push(x.ERROR_SIZE));
1860
1861
  });
1861
1862
  }
1862
- function ra(n) {
1863
+ function da(n) {
1863
1864
  const l = n.filter(
1864
1865
  ({ errors: v }) => !v.includes(x.ERROR_LOAD) && !v.includes(x.ERROR_SIZE)
1865
1866
  );
1866
1867
  if (l.length) {
1867
1868
  const v = new DataTransfer();
1868
- return l.forEach(({ data: b, id: Lt }) => {
1869
+ return l.forEach(({ data: b, id: Mt }) => {
1869
1870
  v.items.add(b);
1870
1871
  }), v.files;
1871
1872
  }
1872
1873
  }
1873
- return { __sfc: !0, t: i, tc: o, n: p, emit: a, props: t, isFileList: f, supportedFileTypeList: s, browseFilesButtonId: d, customTextId: u, dropFilesTextId: C, commaTextId: I, fileUploaderRestrictionsId: V, files: m, fileCardRefs: k, inputRef: $, dropAreaRef: E, inputFieldId: Y, errorId: X, fileUploadAriaLabelledBy: J, dragState: L, dragErrors: R, resetDragState: F, onDragEnterValidations: B, fileUploadRestrictionsProps: O, enterTarget: j, conditionalClasses: K, isMultiple: S, hideArea: Q, loadingStateExists: H, registerFileCardRef: q, emitUpdate: M, hasError: U, maxFileCountError: oa, maxFileError: pa, hasRestrictionError: la, resetFocus: A, removeFile: Ia, processFile: Z, onInputClick: $a, onFileInput: aa, onDragEnter: Fa, resetEnterTarget: P, onDragLeave: Ta, onDragOver: La, onDrop: Sa, onInputChange: Ma, verifyFileCount: sa, verifyFileSize: ca, convertToFileList: ra, UploadIcon: ai, WarningFilledIcon: Ca, BentoAlert: Ba, BentoTypography: na, ErrorMessage: Ya, FieldLabel: Ga, FileUploaderFileCard: vt, FileUploaderRestrictions: wt };
1874
+ return { __sfc: !0, t: i, tc: o, n: p, emit: a, props: t, emitValue: f, isFileList: s, supportedFileTypeList: m, browseFilesButtonId: u, customTextId: C, dropFilesTextId: B, commaTextId: j, fileUploaderRestrictionsId: O, files: c, fileCardRefs: T, inputRef: k, dropAreaRef: H, inputFieldId: G, errorId: Y, fileUploadAriaLabelledBy: X, dragState: z, dragErrors: R, resetDragState: I, onDragEnterValidations: L, fileUploadRestrictionsProps: q, enterTarget: F, conditionalClasses: J, isMultiple: S, hideArea: K, loadingStateExists: M, registerFileCardRef: Q, emitUpdate: D, hasError: oa, maxFileCountError: pa, maxFileError: la, hasRestrictionError: sa, resetFocus: U, removeFile: Fa, processFile: A, onInputClick: $a, onFileInput: aa, onDragEnter: Ta, resetEnterTarget: Z, onDragLeave: La, onDragOver: Sa, onDrop: Ma, onInputChange: Da, verifyFileCount: ca, verifyFileSize: ra, convertToFileList: da, UploadIcon: ti, WarningFilledIcon: ka, BentoAlert: Oa, BentoTypography: na, ErrorMessage: Ja, FieldLabel: Xa, FileUploaderFileCard: xt, FileUploaderRestrictions: Ct };
1874
1875
  }
1875
1876
  });
1876
- var $t = function() {
1877
+ var Tt = function() {
1877
1878
  var o;
1878
1879
  var a = this, t = a._self._c, i = a._self._setupProxy;
1879
1880
  return t("div", { staticClass: "b-file-uploader", class: i.conditionalClasses }, [t(i.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: i.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), t("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: i.inputFieldId, "aria-hidden": "true", type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: i.isMultiple }, on: { change: i.onInputChange, click: i.onInputClick } }), t("span", { staticClass: "b-file-uploader__invisible-comma", attrs: { id: i.commaTextId, "aria-hidden": "true" } }, [a._v(" , ")]), i.hideArea ? a._e() : t("div", { ref: "dropAreaRef", staticClass: "b-file-uploader__area", attrs: { "aria-labelledby": i.fileUploadAriaLabelledBy, role: "button", tabindex: a.disabled ? -1 : 0 }, on: { click: function(p) {
@@ -1897,16 +1898,16 @@ var $t = function() {
1897
1898
  return i.removeFile(p);
1898
1899
  } } });
1899
1900
  }), 1)], 1);
1900
- }, Ft = [], Tt = /* @__PURE__ */ g(
1901
- It,
1901
+ }, Lt = [], St = /* @__PURE__ */ g(
1902
1902
  $t,
1903
- Ft,
1903
+ Tt,
1904
+ Lt,
1904
1905
  !1,
1905
1906
  null,
1906
- "bf4d5c0a"
1907
+ "a851453d"
1907
1908
  );
1908
- const Kt = Tt.exports;
1909
+ const ie = St.exports;
1909
1910
  export {
1910
- Kt as f
1911
+ ie as f
1911
1912
  };
1912
- //# sourceMappingURL=file-uploader.BGoCYrnw.js.map
1913
+ //# sourceMappingURL=file-uploader.BkTtqgvQ.js.map