@adyen/bento-vue2 1.49.0 → 1.50.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 (122) hide show
  1. package/dist/@types/index.d.ts +58 -74
  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/dropdown.css +1 -1
  10. package/dist/assets/file-uploader.css +1 -1
  11. package/dist/assets/filter-bar.css +1 -1
  12. package/dist/assets/header.css +1 -1
  13. package/dist/assets/inspector.css +1 -1
  14. package/dist/assets/menu.css +1 -1
  15. package/dist/assets/modal-fullscreen.css +1 -1
  16. package/dist/assets/payment-method.css +1 -1
  17. package/dist/assets/popover.css +1 -1
  18. package/dist/assets/sidepanel.css +1 -1
  19. package/dist/assets/toggle-button.css +1 -1
  20. package/dist/button.js +1 -1
  21. package/dist/checkbox.js +2 -2
  22. package/dist/chunks/{action-bar.pYOeP8WX.js → action-bar.CGJJrMpa.js} +3 -3
  23. package/dist/chunks/{action-bar.pYOeP8WX.js.map → action-bar.CGJJrMpa.js.map} +1 -1
  24. package/dist/chunks/{button-actions-with-menu.BxWulRXh.js → button-actions-with-menu.C5OE7oOu.js} +3 -3
  25. package/dist/chunks/{button-actions-with-menu.BxWulRXh.js.map → button-actions-with-menu.C5OE7oOu.js.map} +1 -1
  26. package/dist/chunks/{checkbox-group.4TiIcnc7.js → checkbox-group.wa6Mtmxa.js} +2 -2
  27. package/dist/chunks/{checkbox-group.4TiIcnc7.js.map → checkbox-group.wa6Mtmxa.js.map} +1 -1
  28. package/dist/chunks/{checkbox.CE9NdY0R.js → checkbox.BPvnJrvd.js} +17 -17
  29. package/dist/chunks/{checkbox.CE9NdY0R.js.map → checkbox.BPvnJrvd.js.map} +1 -1
  30. package/dist/chunks/{code-snippet.DSsZWtwa.js → code-snippet.3s8WCnke.js} +2 -2
  31. package/dist/chunks/{code-snippet.DSsZWtwa.js.map → code-snippet.3s8WCnke.js.map} +1 -1
  32. package/dist/chunks/{dashboard-section.DzMn8yDZ.js → dashboard-section.BgyN5u0K.js} +2 -2
  33. package/dist/chunks/{dashboard-section.DzMn8yDZ.js.map → dashboard-section.BgyN5u0K.js.map} +1 -1
  34. package/dist/chunks/{dashed-underline.COTMts4l.js → dashed-underline.Cvn5IoHT.js} +2 -2
  35. package/dist/chunks/{dashed-underline.COTMts4l.js.map → dashed-underline.Cvn5IoHT.js.map} +1 -1
  36. package/dist/chunks/{data-grid-template.BPBneEHq.js → data-grid-template.DtWM0Tnu.js} +2 -2
  37. package/dist/chunks/{data-grid-template.BPBneEHq.js.map → data-grid-template.DtWM0Tnu.js.map} +1 -1
  38. package/dist/chunks/{data-grid.iqFUbiZy.js → data-grid.N5Rxo6QB.js} +11 -11
  39. package/dist/chunks/data-grid.N5Rxo6QB.js.map +1 -0
  40. package/dist/chunks/{date-picker.C68IAqHR.js → date-picker.Byv5Z-Xj.js} +2 -2
  41. package/dist/chunks/{date-picker.C68IAqHR.js.map → date-picker.Byv5Z-Xj.js.map} +1 -1
  42. package/dist/chunks/{date-range-picker.dcQRDNS7.js → date-range-picker.CUS9Q53T.js} +4 -4
  43. package/dist/chunks/{date-range-picker.dcQRDNS7.js.map → date-range-picker.CUS9Q53T.js.map} +1 -1
  44. package/dist/chunks/{dropdown-tag.DhENnOHT.js → dropdown-tag.ClUMccWv.js} +3 -3
  45. package/dist/chunks/{dropdown-tag.DhENnOHT.js.map → dropdown-tag.ClUMccWv.js.map} +1 -1
  46. package/dist/chunks/{dropdown.BBHNOorv.js → dropdown.CC1i41NX.js} +263 -263
  47. package/dist/chunks/dropdown.CC1i41NX.js.map +1 -0
  48. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  49. package/dist/chunks/{file-uploader.mLUYQnz1.js → file-uploader.DTkxh9Ct.js} +244 -248
  50. package/dist/chunks/file-uploader.DTkxh9Ct.js.map +1 -0
  51. package/dist/chunks/{filter-bar.CFcu6P8H.js → filter-bar.gj9sdW5T.js} +9 -9
  52. package/dist/chunks/{filter-bar.CFcu6P8H.js.map → filter-bar.gj9sdW5T.js.map} +1 -1
  53. package/dist/chunks/{header.BeS6ktqU.js → header.5rAXro_L.js} +48 -48
  54. package/dist/chunks/{header.BeS6ktqU.js.map → header.5rAXro_L.js.map} +1 -1
  55. package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js → info-icon-with-popover.B0zJWJZn.js} +2 -2
  56. package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js.map → info-icon-with-popover.B0zJWJZn.js.map} +1 -1
  57. package/dist/chunks/{input-field-password.Dez8haIj.js → input-field-password.PU9SY4FC.js} +3 -3
  58. package/dist/chunks/{input-field-password.Dez8haIj.js.map → input-field-password.PU9SY4FC.js.map} +1 -1
  59. package/dist/chunks/{input-field-phone-number.CPTonsjM.js → input-field-phone-number.D2juJ9ZD.js} +2 -2
  60. package/dist/chunks/{input-field-phone-number.CPTonsjM.js.map → input-field-phone-number.D2juJ9ZD.js.map} +1 -1
  61. package/dist/chunks/{input-field.lEMEBT7J.js → input-field.BPbe00eB.js} +2 -2
  62. package/dist/chunks/{input-field.lEMEBT7J.js.map → input-field.BPbe00eB.js.map} +1 -1
  63. package/dist/chunks/{menu.lbODB0y3.js → menu.BC7ynpgF.js} +24 -24
  64. package/dist/chunks/{menu.lbODB0y3.js.map → menu.BC7ynpgF.js.map} +1 -1
  65. package/dist/chunks/{pagination.CuJ-P2bO.js → pagination.CT-h2q0J.js} +2 -2
  66. package/dist/chunks/{pagination.CuJ-P2bO.js.map → pagination.CT-h2q0J.js.map} +1 -1
  67. package/dist/chunks/payment-method.Bu76jY3c.js +59 -0
  68. package/dist/chunks/payment-method.Bu76jY3c.js.map +1 -0
  69. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
  70. package/dist/chunks/{popover.BQGNMbQN.js → popover.CRdrSmFW.js} +17 -16
  71. package/dist/chunks/popover.CRdrSmFW.js.map +1 -0
  72. package/dist/chunks/{search-bar.Dk-GuqgF.js → search-bar.bMOGN8_E.js} +3 -3
  73. package/dist/chunks/{search-bar.Dk-GuqgF.js.map → search-bar.bMOGN8_E.js.map} +1 -1
  74. package/dist/chunks/{secondary-nav.DC2GrGaQ.js → secondary-nav.C9sm93do.js} +2 -2
  75. package/dist/chunks/{secondary-nav.DC2GrGaQ.js.map → secondary-nav.C9sm93do.js.map} +1 -1
  76. package/dist/chunks/{selection-card-group.B-YY-iKp.js → selection-card-group.0O3gmtoi.js} +8 -8
  77. package/dist/chunks/{selection-card-group.B-YY-iKp.js.map → selection-card-group.0O3gmtoi.js.map} +1 -1
  78. package/dist/chunks/{toggle-button.BX_9vB0d.js → toggle-button.DK4H4sHT.js} +5 -5
  79. package/dist/chunks/toggle-button.DK4H4sHT.js.map +1 -0
  80. package/dist/chunks/{tutorial.BWWTUI9f.js → tutorial.BbQox1EZ.js} +3 -3
  81. package/dist/chunks/{tutorial.BWWTUI9f.js.map → tutorial.BbQox1EZ.js.map} +1 -1
  82. package/dist/chunks/{use-cached-selected-values.C5gHa-dC.js → use-cached-selected-values.a_5Iw6Dh.js} +258 -254
  83. package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js.map +1 -0
  84. package/dist/code-snippet.js +1 -1
  85. package/dist/dashboard-template.js +1 -1
  86. package/dist/dashed-underline.js +1 -1
  87. package/dist/data-grid-template.js +1 -1
  88. package/dist/data-grid.js +1 -1
  89. package/dist/date-picker.js +1 -1
  90. package/dist/date-range-picker.js +1 -1
  91. package/dist/dropdown.js +3 -3
  92. package/dist/file-uploader.js +1 -1
  93. package/dist/filter-bar.js +1 -1
  94. package/dist/header.js +1 -1
  95. package/dist/index.js +28 -28
  96. package/dist/input-field-password.js +1 -1
  97. package/dist/input-field-phone-number.js +1 -1
  98. package/dist/input-field.js +1 -1
  99. package/dist/internal.js +3 -3
  100. package/dist/menu.js +1 -1
  101. package/dist/pagination.js +1 -1
  102. package/dist/payment-method.js +1 -1
  103. package/dist/popover.js +1 -1
  104. package/dist/search-bar.js +2 -2
  105. package/dist/secondary-nav.js +1 -1
  106. package/dist/selection-card.js +1 -1
  107. package/dist/styles/bento-dark.css +1 -1
  108. package/dist/styles/bento-light.css +1 -1
  109. package/dist/styles/bento.css +1 -1
  110. package/dist/styles/legacy.css +2 -0
  111. package/dist/styles/styleguide.css +1 -1
  112. package/dist/tutorial.js +1 -1
  113. package/dist/web-types.json +41 -39
  114. package/package.json +4 -4
  115. package/dist/chunks/data-grid.iqFUbiZy.js.map +0 -1
  116. package/dist/chunks/dropdown.BBHNOorv.js.map +0 -1
  117. package/dist/chunks/file-uploader.mLUYQnz1.js.map +0 -1
  118. package/dist/chunks/payment-method.BKr_q5cZ.js +0 -84
  119. package/dist/chunks/payment-method.BKr_q5cZ.js.map +0 -1
  120. package/dist/chunks/popover.BQGNMbQN.js.map +0 -1
  121. package/dist/chunks/toggle-button.BX_9vB0d.js.map +0 -1
  122. package/dist/chunks/use-cached-selected-values.C5gHa-dC.js.map +0 -1
@@ -1,38 +1,38 @@
1
- import { defineComponent as H, ref as b, onUnmounted as ya, onMounted as ka, computed as m, watch as N, reactive as W, toRef as A } from "vue";
1
+ import { defineComponent as H, ref as b, onUnmounted as ka, onMounted as Ra, computed as m, watch as N, reactive as W, toRef as A } from "vue";
2
2
  import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
3
3
  import { W as ra } from "./warning-filled.CLKRzGMT.js";
4
- import { B as Ra } from "./alert.hiTIDSeX.js";
4
+ import { B as ja } from "./alert.hiTIDSeX.js";
5
5
  import { B as da } from "./button.CdAFZa4V.js";
6
6
  import { B as G } from "./typography.J1v_SPG3.js";
7
7
  import { u as O } from "./i18n.BQkEbtPM.js";
8
8
  import { g as P } from "./generate-uid.NJ8tVoha.js";
9
9
  import { i as ma } from "./index.Cl4_42j5.js";
10
- import { C as ja } from "./checkmark-circle-fill.Cn7JN_Tk.js";
11
- import { C as za } from "./cross.CsUPDmaA.js";
12
- import { R as Ea } from "./refresh.BKI9WwKh.js";
13
- import { B as $a } from "./link.DZlbzVSB.js";
14
- import { B as La } from "./loading-indicator.z8COalOc.js";
15
- import { B as Ia } from "./tooltip.Bu8o7uyZ.js";
16
- import { F as Ta, E as Fa } from "./error-message.xTNEaNn8.js";
10
+ import { C as za } from "./checkmark-circle-fill.Cn7JN_Tk.js";
11
+ import { C as Ea } from "./cross.CsUPDmaA.js";
12
+ import { R as $a } from "./refresh.BKI9WwKh.js";
13
+ import { B as La } from "./link.DZlbzVSB.js";
14
+ import { B as Ia } from "./loading-indicator.z8COalOc.js";
15
+ import { B as Ta } from "./tooltip.Bu8o7uyZ.js";
16
+ import { F as Fa, E as Ma } from "./error-message.xTNEaNn8.js";
17
17
  import "../assets/file-uploader.css";
18
18
  let K = 0;
19
- const Ma = {
19
+ const Sa = {
20
20
  beforeCreate() {
21
21
  this.uuid = K.toString(), K += 1;
22
22
  }
23
23
  };
24
- var Sa = function() {
24
+ var Va = function() {
25
25
  var a = this, i = a._self._c;
26
26
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", 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" } }), i("path", { attrs: { fill: "#00112C", 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" } })]);
27
- }, Va = [], Da = /* @__PURE__ */ f(
28
- Ma,
27
+ }, Da = [], Ha = /* @__PURE__ */ f(
29
28
  Sa,
30
29
  Va,
30
+ Da,
31
31
  !1,
32
32
  null,
33
33
  null
34
34
  );
35
- const Ha = Da.exports, Oa = /* @__PURE__ */ H({
35
+ const Oa = Ha.exports, Ba = /* @__PURE__ */ H({
36
36
  __name: "file-uploader-file-card-animation",
37
37
  props: {
38
38
  name: null,
@@ -42,48 +42,48 @@ const Ha = Da.exports, Oa = /* @__PURE__ */ H({
42
42
  return { __sfc: !0, isVue2: ma };
43
43
  }
44
44
  });
45
- var Ba = function() {
45
+ var qa = function() {
46
46
  var a = this, i = a._self._c, t = a._self._setupProxy;
47
47
  return t.isVue2 ? i("Transition", { attrs: { name: a.name, mode: "out-in", css: a.showFileIcon } }, [a._t("default")], 2) : i("TransitionGroup", { attrs: { name: a.name, css: a.showFileIcon } }, [a._t("default")], 2);
48
- }, qa = [], Za = /* @__PURE__ */ f(
49
- Oa,
48
+ }, Za = [], Ua = /* @__PURE__ */ f(
50
49
  Ba,
51
50
  qa,
51
+ Za,
52
52
  !1,
53
53
  null,
54
54
  null
55
55
  );
56
- const Ua = Za.exports;
56
+ const Aa = Ua.exports;
57
57
  let Q = 0;
58
- const Aa = {
58
+ const Pa = {
59
59
  beforeCreate() {
60
60
  this.uuid = Q.toString(), Q += 1;
61
61
  }
62
62
  };
63
- var Pa = function() {
63
+ var Na = function() {
64
64
  var a = this, i = a._self._c;
65
65
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M7.25 6.25H5.75V12.75H7.25V6.25Z" } }), i("path", { attrs: { fill: "#00112C", d: "M8.75 6.25H10.25V12.75H8.75V6.25Z" } }), i("path", { attrs: { fill: "#00112C", 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" } })]);
66
- }, Na = [], Wa = /* @__PURE__ */ f(
67
- Aa,
66
+ }, Wa = [], Ga = /* @__PURE__ */ f(
68
67
  Pa,
69
68
  Na,
69
+ Wa,
70
70
  !1,
71
71
  null,
72
72
  null
73
73
  );
74
- const Ga = Wa.exports;
75
- function Ya(e, a) {
74
+ const Ya = Ga.exports;
75
+ function Xa(e, a) {
76
76
  const i = b(!1);
77
77
  let t;
78
- function o() {
78
+ function p() {
79
79
  t && t.disconnect();
80
80
  }
81
- return ya(() => {
82
- o();
83
- }), ka(() => {
84
- o(), t = new IntersectionObserver(
85
- (p) => {
86
- i.value = !p[0].isIntersecting;
81
+ return ka(() => {
82
+ p();
83
+ }), Ra(() => {
84
+ p(), t = new IntersectionObserver(
85
+ (o) => {
86
+ i.value = !o[0].isIntersecting;
87
87
  },
88
88
  {
89
89
  root: a.value,
@@ -94,27 +94,21 @@ function Ya(e, a) {
94
94
  }
95
95
  const aa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
96
96
  function va(e, a) {
97
- let i = 0, t = a;
98
- for (; t >= 1e3 && i < aa.length - 1; )
99
- t /= 1e3, i++;
100
- return new Intl.NumberFormat(e, {
97
+ const i = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)), aa.length - 1));
98
+ return Intl.NumberFormat(e, {
101
99
  style: "unit",
102
- unit: aa[i],
103
- unitDisplay: "short",
104
- // Displays as "kB" instead of "kilobytes"
105
- maximumFractionDigits: 2
106
- // Limits to 2 decimal places
107
- }).format(t);
100
+ unit: aa[i]
101
+ }).format(a / 1024 ** i);
108
102
  }
109
103
  var h = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(h || {}), 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 || {}), D = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(D || {}), 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 || {});
110
- const Xa = [
104
+ const Ja = [
111
105
  "application/msword",
112
106
  // .doc
113
107
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
114
108
  // .docx
115
109
  "application/rtf"
116
110
  // .rtf
117
- ], Ja = [
111
+ ], Ka = [
118
112
  "application/vnd.ms-excel",
119
113
  // .xls
120
114
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -127,14 +121,14 @@ const Xa = [
127
121
  // .numbers
128
122
  "text/csv"
129
123
  // .csv
130
- ], Ka = [
124
+ ], Qa = [
131
125
  "application/vnd.ms-powerpoint",
132
126
  // .ppt
133
127
  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
134
128
  // .pptx
135
129
  "application/vnd.oasis.opendocument.presentation"
136
130
  // .odp
137
- ], Qa = [
131
+ ], ai = [
138
132
  "application/zip",
139
133
  // .zip
140
134
  "application/vnd.rar",
@@ -156,10 +150,10 @@ const Xa = [
156
150
  "application/vnd.ms-cab-compressed"
157
151
  // .cab
158
152
  ];
159
- function ai(e) {
160
- return Ja.includes(e.type) ? d.TABLE : e.type.startsWith("text/") || Xa.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 : Ka.includes(e.type) ? d.SLIDES : Qa.includes(e.type) ? d.COMPRESSED : d.GENERIC;
153
+ function ii(e) {
154
+ return Ka.includes(e.type) ? d.TABLE : e.type.startsWith("text/") || Ja.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 : Qa.includes(e.type) ? d.SLIDES : ai.includes(e.type) ? d.COMPRESSED : d.GENERIC;
161
155
  }
162
- function ii(e, a) {
156
+ function ti(e, a) {
163
157
  if (!a)
164
158
  return !0;
165
159
  const i = a.split(",").map((t) => t.trim());
@@ -168,212 +162,212 @@ function ii(e, a) {
168
162
  if (e.name.endsWith(t))
169
163
  return !0;
170
164
  } else if (t.endsWith("/*")) {
171
- const o = t.split("/")[0];
172
- if (e.type.startsWith(o))
165
+ const p = t.split("/")[0];
166
+ if (e.type.startsWith(p))
173
167
  return !0;
174
168
  } else if (e.type === t)
175
169
  return !0;
176
170
  return !1;
177
171
  }
178
- function ti(e, a, i) {
179
- const t = new FileReader(), o = e;
180
- if (!ii(o.data, a)) {
181
- o.state = h.ERROR, o.errors.push(x.ERROR_TYPE);
172
+ function ei(e, a, i) {
173
+ const t = new FileReader(), p = e;
174
+ if (!ti(p.data, a)) {
175
+ p.state = h.ERROR, p.errors.push(x.ERROR_TYPE);
182
176
  return;
183
177
  }
184
- t.onload = (p) => {
185
- if (i && o.type === d.IMAGE) {
186
- const l = new Blob([p.target.result], { type: o.data.type }), c = URL.createObjectURL(l), r = new Image();
178
+ t.onload = (o) => {
179
+ if (i && p.type === d.IMAGE) {
180
+ const l = new Blob([o.target.result], { type: p.data.type }), c = URL.createObjectURL(l), r = new Image();
187
181
  r.onload = function() {
188
- (r.width > i.width || r.height > i.height) && (o.state = h.ERROR, o.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
182
+ (r.width > i.width || r.height > i.height) && (p.state = h.ERROR, p.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
189
183
  }, r.onerror = function() {
190
184
  URL.revokeObjectURL(c);
191
185
  }, r.src = c;
192
186
  }
193
- }, t.onprogress = (p) => {
194
- p.lengthComputable && (o.progress = p.loaded / p.total * 100);
187
+ }, t.onprogress = (o) => {
188
+ o.lengthComputable && (p.progress = o.loaded / o.total * 100);
195
189
  }, t.onloadend = () => {
196
- o.state !== h.ERROR && (o.state = h.SUCCESS), o.progress = null;
190
+ p.state !== h.ERROR && (p.state = h.SUCCESS), p.progress = null;
197
191
  }, t.onerror = () => {
198
- o.state = h.ERROR, o.errors.push(x.ERROR_LOAD), o.progress = null;
199
- }, t.readAsArrayBuffer(o.data);
192
+ p.state = h.ERROR, p.errors.push(x.ERROR_LOAD), p.progress = null;
193
+ }, t.readAsArrayBuffer(p.data);
200
194
  }
201
195
  let ia = 0;
202
- const ei = {
196
+ const ni = {
203
197
  beforeCreate() {
204
198
  this.uuid = ia.toString(), ia += 1;
205
199
  }
206
200
  };
207
- var ni = function() {
201
+ var oi = function() {
208
202
  var a = this, i = a._self._c;
209
203
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("g", { attrs: { "clip-path": "url(#uia-icons-16-attachment__a" + a.uuid + ")" } }, [i("path", { attrs: { fill: "#00112C", 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" } })]), i("defs", [i("clipPath", { attrs: { id: "uia-icons-16-attachment__a" + a.uuid } }, [i("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
210
- }, pi = [], oi = /* @__PURE__ */ f(
211
- ei,
204
+ }, pi = [], li = /* @__PURE__ */ f(
212
205
  ni,
206
+ oi,
213
207
  pi,
214
208
  !1,
215
209
  null,
216
210
  null
217
211
  );
218
- const li = oi.exports;
212
+ const si = li.exports;
219
213
  let ta = 0;
220
- const si = {
214
+ const ci = {
221
215
  beforeCreate() {
222
216
  this.uuid = ta.toString(), ta += 1;
223
217
  }
224
218
  };
225
- var ci = function() {
219
+ var ri = function() {
226
220
  var a = this, i = a._self._c;
227
221
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", 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" } })]);
228
- }, ri = [], di = /* @__PURE__ */ f(
229
- si,
222
+ }, di = [], mi = /* @__PURE__ */ f(
230
223
  ci,
231
224
  ri,
225
+ di,
232
226
  !1,
233
227
  null,
234
228
  null
235
229
  );
236
- const mi = di.exports;
230
+ const vi = mi.exports;
237
231
  let ea = 0;
238
- const vi = {
232
+ const ui = {
239
233
  beforeCreate() {
240
234
  this.uuid = ea.toString(), ea += 1;
241
235
  }
242
236
  };
243
- var ui = function() {
237
+ var fi = function() {
244
238
  var a = this, i = a._self._c;
245
239
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", 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" } })]);
246
- }, fi = [], xi = /* @__PURE__ */ f(
247
- vi,
240
+ }, xi = [], gi = /* @__PURE__ */ f(
248
241
  ui,
249
242
  fi,
243
+ xi,
250
244
  !1,
251
245
  null,
252
246
  null
253
247
  );
254
- const gi = xi.exports;
248
+ const hi = gi.exports;
255
249
  let na = 0;
256
- const hi = {
250
+ const _i = {
257
251
  beforeCreate() {
258
252
  this.uuid = na.toString(), na += 1;
259
253
  }
260
254
  };
261
- var _i = function() {
255
+ var bi = function() {
262
256
  var a = this, i = a._self._c;
263
257
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z" } }), i("path", { attrs: { fill: "#00112C", d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z" } }), i("path", { attrs: { fill: "#00112C", 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" } })]);
264
- }, bi = [], wi = /* @__PURE__ */ f(
265
- hi,
258
+ }, wi = [], Ci = /* @__PURE__ */ f(
266
259
  _i,
267
260
  bi,
261
+ wi,
268
262
  !1,
269
263
  null,
270
264
  null
271
265
  );
272
- const Ci = wi.exports;
273
- let pa = 0;
274
- const yi = {
266
+ const yi = Ci.exports;
267
+ let oa = 0;
268
+ const ki = {
275
269
  beforeCreate() {
276
- this.uuid = pa.toString(), pa += 1;
270
+ this.uuid = oa.toString(), oa += 1;
277
271
  }
278
272
  };
279
- var ki = function() {
273
+ var Ri = function() {
280
274
  var a = this, i = a._self._c;
281
275
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", 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" } })]);
282
- }, Ri = [], ji = /* @__PURE__ */ f(
283
- yi,
276
+ }, ji = [], zi = /* @__PURE__ */ f(
284
277
  ki,
285
278
  Ri,
279
+ ji,
286
280
  !1,
287
281
  null,
288
282
  null
289
283
  );
290
- const zi = ji.exports;
291
- let oa = 0;
292
- const Ei = {
284
+ const Ei = zi.exports;
285
+ let pa = 0;
286
+ const $i = {
293
287
  beforeCreate() {
294
- this.uuid = oa.toString(), oa += 1;
288
+ this.uuid = pa.toString(), pa += 1;
295
289
  }
296
290
  };
297
- var $i = function() {
291
+ var Li = function() {
298
292
  var a = this, i = a._self._c;
299
293
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", 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" } }), i("path", { attrs: { fill: "#00112C", 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" } })]);
300
- }, Li = [], Ii = /* @__PURE__ */ f(
301
- Ei,
294
+ }, Ii = [], Ti = /* @__PURE__ */ f(
302
295
  $i,
303
296
  Li,
297
+ Ii,
304
298
  !1,
305
299
  null,
306
300
  null
307
301
  );
308
- const Ti = Ii.exports;
302
+ const Fi = Ti.exports;
309
303
  let la = 0;
310
- const Fi = {
304
+ const Mi = {
311
305
  beforeCreate() {
312
306
  this.uuid = la.toString(), la += 1;
313
307
  }
314
308
  };
315
- var Mi = function() {
309
+ var Si = function() {
316
310
  var a = this, i = a._self._c;
317
311
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-play_circle__a" + a.uuid + ")" } }, [i("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), i("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" } })]), i("defs", [i("clipPath", { attrs: { id: "uia-icons-16-play_circle__a" + a.uuid } }, [i("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
318
- }, Si = [], Vi = /* @__PURE__ */ f(
319
- Fi,
312
+ }, Vi = [], Di = /* @__PURE__ */ f(
320
313
  Mi,
321
314
  Si,
315
+ Vi,
322
316
  !1,
323
317
  null,
324
318
  null
325
319
  );
326
- const Di = Vi.exports;
320
+ const Hi = Di.exports;
327
321
  let sa = 0;
328
- const Hi = {
322
+ const Oi = {
329
323
  beforeCreate() {
330
324
  this.uuid = sa.toString(), sa += 1;
331
325
  }
332
326
  };
333
- var Oi = function() {
327
+ var Bi = function() {
334
328
  var a = this, i = a._self._c;
335
329
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", 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" } }), i("path", { attrs: { fill: "#00112C", 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" } }), i("path", { attrs: { fill: "#00112C", 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" } })]);
336
- }, Bi = [], qi = /* @__PURE__ */ f(
337
- Hi,
330
+ }, qi = [], Zi = /* @__PURE__ */ f(
338
331
  Oi,
339
332
  Bi,
333
+ qi,
340
334
  !1,
341
335
  null,
342
336
  null
343
337
  );
344
- const Zi = qi.exports;
338
+ const Ui = Zi.exports;
345
339
  let ca = 0;
346
- const Ui = {
340
+ const Ai = {
347
341
  beforeCreate() {
348
342
  this.uuid = ca.toString(), ca += 1;
349
343
  }
350
344
  };
351
- var Ai = function() {
345
+ var Pi = function() {
352
346
  var a = this, i = a._self._c;
353
347
  return i("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"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", 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" } })]);
354
- }, Pi = [], Ni = /* @__PURE__ */ f(
355
- Ui,
348
+ }, Ni = [], Wi = /* @__PURE__ */ f(
356
349
  Ai,
357
350
  Pi,
351
+ Ni,
358
352
  !1,
359
353
  null,
360
354
  null
361
355
  );
362
- const Wi = Ni.exports, Gi = {
363
- [d.AUDIO]: Zi,
364
- [d.COMPRESSED]: zi,
365
- [d.GENERIC]: li,
366
- [d.IMAGE]: Ti,
367
- [d.PDF]: gi,
368
- [d.SLIDES]: mi,
369
- [d.TABLE]: Wi,
370
- [d.TEXT]: Ci,
371
- [d.VIDEO]: Di
356
+ const Gi = Wi.exports, Yi = {
357
+ [d.AUDIO]: Ui,
358
+ [d.COMPRESSED]: Ei,
359
+ [d.GENERIC]: si,
360
+ [d.IMAGE]: Fi,
361
+ [d.PDF]: hi,
362
+ [d.SLIDES]: vi,
363
+ [d.TABLE]: Gi,
364
+ [d.TEXT]: yi,
365
+ [d.VIDEO]: Hi
372
366
  };
373
- function Yi(e) {
374
- return Gi[e.type];
375
- }
376
367
  function Xi(e) {
368
+ return Yi[e.type];
369
+ }
370
+ function Ji(e) {
377
371
  switch (e.type) {
378
372
  case d.COMPRESSED:
379
373
  case d.GENERIC:
@@ -387,7 +381,7 @@ function Xi(e) {
387
381
  return "green";
388
382
  }
389
383
  }
390
- const Ji = {
384
+ const Ki = {
391
385
  "en-US": {
392
386
  cancel: "Cancel",
393
387
  fileExceedsSizeLimit: "File exceeds size limit",
@@ -406,23 +400,23 @@ const Ji = {
406
400
  remove: "Remover",
407
401
  retry: "Tentar novamente"
408
402
  }
409
- }, Ki = {
403
+ }, Qi = {
410
404
  name: "file-uploader-file-card",
411
- i18n: { messages: Ji }
412
- }, Qi = /* @__PURE__ */ H({
413
- ...Ki,
405
+ i18n: { messages: Ki }
406
+ }, at = /* @__PURE__ */ H({
407
+ ...Qi,
414
408
  props: {
415
409
  file: null,
416
410
  supportedFileTypes: { default: null }
417
411
  },
418
412
  emits: ["cancel", "remove", "retry"],
419
413
  setup(e, { emit: a }) {
420
- const i = e, t = 1200, { t: o, locale: p } = O(), l = b(i.file.state === h.SUCCESS), c = m(() => URL.createObjectURL(i.file.data)), r = m(() => i.file.state === h.ERROR), v = m(() => i.file.errors.includes(x.ERROR_LOAD)), w = m(() => i.file.errors.includes(x.ERROR_SIZE)), C = m(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), k = m(() => i.file.errors.includes(x.ERROR_TYPE)), E = m(() => i.file.state === h.LOADING), B = m(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), R = m(() => va(p.value, i.file.data.size)), L = b(), j = b(), q = Ya(L, j), I = m(() => ({
414
+ const i = e, t = 1200, { t: p, locale: o } = O(), l = b(i.file.state === h.SUCCESS), c = m(() => URL.createObjectURL(i.file.data)), r = m(() => i.file.state === h.ERROR), v = m(() => i.file.errors.includes(x.ERROR_LOAD)), w = m(() => i.file.errors.includes(x.ERROR_SIZE)), C = m(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), k = m(() => i.file.errors.includes(x.ERROR_TYPE)), E = m(() => i.file.state === h.LOADING), B = m(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), R = m(() => va(o.value, i.file.data.size)), L = b(), j = b(), q = Xa(L, j), I = m(() => ({
421
415
  "b-file-uploader-file-card--error": r.value
422
416
  })), T = m(() => ({
423
- [`b-file-uploader-file-card__icon--${Xi(i.file)}`]: l.value,
417
+ [`b-file-uploader-file-card__icon--${Ji(i.file)}`]: l.value,
424
418
  "b-file-uploader-file-card__icon--error": r.value
425
- })), F = m(() => E.value ? La : r.value ? ra : l.value ? Yi(i.file) : ja);
419
+ })), F = m(() => E.value ? Ia : r.value ? ra : l.value ? Xi(i.file) : za);
426
420
  return N(
427
421
  () => i.file.state,
428
422
  (M) => {
@@ -432,33 +426,33 @@ const Ji = {
432
426
  }, t);
433
427
  }
434
428
  }
435
- ), { __sfc: !0, ICON_TIMER: t, props: i, emit: a, t: o, locale: p, showFileIcon: l, downloadUrl: c, hasError: r, hasLoadError: v, hasSizeError: w, hasDimensionsError: C, hasTypeError: k, isLoading: E, progressLabel: B, sizeLabel: R, fileNameRef: L, fileNameContainerRef: j, isFileNameTruncated: q, conditionalClasses: I, conditionalIconClasses: T, fileUploaderIcon: F, isVue2: ma, FileUploaderFileCardAnimation: Ua, BinIcon: Ga, CrossIcon: za, RefreshIcon: Ea, vBentoTooltipDirective: Ia, BentoButton: da, BentoLink: $a, BentoTypography: G };
429
+ ), { __sfc: !0, ICON_TIMER: t, props: i, emit: a, t: p, locale: o, showFileIcon: l, downloadUrl: c, hasError: r, hasLoadError: v, hasSizeError: w, hasDimensionsError: C, hasTypeError: k, isLoading: E, progressLabel: B, sizeLabel: R, fileNameRef: L, fileNameContainerRef: j, isFileNameTruncated: q, conditionalClasses: I, conditionalIconClasses: T, fileUploaderIcon: F, isVue2: ma, FileUploaderFileCardAnimation: Aa, BinIcon: Ya, CrossIcon: Ea, RefreshIcon: $a, vBentoTooltipDirective: Ta, BentoButton: da, BentoLink: La, BentoTypography: G };
436
430
  }
437
431
  });
438
- var at = function() {
432
+ var it = function() {
439
433
  var a = this, i = a._self._c, t = a._self._setupProxy;
440
- return i("div", { staticClass: "b-file-uploader-file-card", class: t.conditionalClasses }, [i("div", { staticClass: "b-file-uploader-file-card__details" }, [i("div", { staticClass: "b-file-uploader-file-card__info" }, [i(t.FileUploaderFileCardAnimation, { attrs: { name: t.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": t.showFileIcon } }, [i(t.fileUploaderIcon, { key: JSON.stringify(t.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: t.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), i("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [i(t.BentoLink, { attrs: { download: a.file.data.name, to: t.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [i(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.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 ? i(t.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(t.progressLabel))]) : a.file.data.size ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [a._v(a._s(t.sizeLabel))]) : a._e()], 1), t.hasSizeError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileExceedsSizeLimit")) + " ")]) : a._e(), t.hasDimensionsError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), t.hasTypeError && a.supportedFileTypes ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1), i("div", { staticClass: "b-file-uploader-file-card__actions" }, [t.hasLoadError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(o) {
434
+ return i("div", { staticClass: "b-file-uploader-file-card", class: t.conditionalClasses }, [i("div", { staticClass: "b-file-uploader-file-card__details" }, [i("div", { staticClass: "b-file-uploader-file-card__info" }, [i(t.FileUploaderFileCardAnimation, { attrs: { name: t.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": t.showFileIcon } }, [i(t.fileUploaderIcon, { key: JSON.stringify(t.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: t.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), i("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [i(t.BentoLink, { attrs: { download: a.file.data.name, to: t.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [i(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.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 ? i(t.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(t.progressLabel))]) : a.file.data.size ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [a._v(a._s(t.sizeLabel))]) : a._e()], 1), t.hasSizeError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileExceedsSizeLimit")) + " ")]) : a._e(), t.hasDimensionsError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), t.hasTypeError && a.supportedFileTypes ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1), i("div", { staticClass: "b-file-uploader-file-card__actions" }, [t.hasLoadError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(p) {
441
435
  return t.emit("retry");
442
436
  } }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
443
437
  return [i(t.RefreshIcon, { attrs: { "svg-title": t.t("retry") } })];
444
- }, proxy: !0 }], null, !1, 3564309296) }, [a._v(" " + a._s(t.t("retry")) + " ")]) : a._e(), t.isLoading || t.hasError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(o) {
438
+ }, proxy: !0 }], null, !1, 3564309296) }, [a._v(" " + a._s(t.t("retry")) + " ")]) : a._e(), t.isLoading || t.hasError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(p) {
445
439
  return t.emit("cancel");
446
440
  } }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
447
441
  return [i(t.CrossIcon, { attrs: { "svg-title": t.t("cancel") } })];
448
- }, proxy: !0 }], null, !1, 1692450141) }) : i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(o) {
442
+ }, proxy: !0 }], null, !1, 1692450141) }) : i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(p) {
449
443
  return t.emit("remove");
450
444
  } }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
451
445
  return [i(t.BinIcon, { attrs: { "svg-title": t.t("remove") } })];
452
446
  }, proxy: !0 }]) })], 1)]);
453
- }, it = [], tt = /* @__PURE__ */ f(
454
- Qi,
447
+ }, tt = [], et = /* @__PURE__ */ f(
455
448
  at,
456
449
  it,
450
+ tt,
457
451
  !1,
458
452
  null,
459
453
  "56f32ebc"
460
454
  );
461
- const et = tt.exports, nt = {
455
+ const nt = et.exports, ot = {
462
456
  "en-US": {
463
457
  maxFileSize: "Max file size: {size}",
464
458
  maxImageDimensions: "Max image dimensions: {width} × {height}px",
@@ -468,8 +462,8 @@ const et = tt.exports, nt = {
468
462
  supportedFileTypes: "Supported file types: {list}"
469
463
  }
470
464
  }, pt = {
471
- i18n: { messages: nt }
472
- }, ot = /* @__PURE__ */ H({
465
+ i18n: { messages: ot }
466
+ }, lt = /* @__PURE__ */ H({
473
467
  ...pt,
474
468
  __name: "file-uploader-restrictions",
475
469
  props: {
@@ -481,7 +475,7 @@ const et = tt.exports, nt = {
481
475
  supportedFileTypes: { default: null }
482
476
  },
483
477
  setup(e) {
484
- const a = e, { t: i, tc: t, locale: o } = O(), p = m(() => ({
478
+ const a = e, { t: i, tc: t, locale: p } = O(), o = m(() => ({
485
479
  "b-file-uploader-restrictions--condensed": a.condensed,
486
480
  "b-file-uploader-restrictions--disabled": a.disabled
487
481
  }));
@@ -498,65 +492,21 @@ const et = tt.exports, nt = {
498
492
  } = a.maxDimensions;
499
493
  return r && v ? i("maxImageDimensions", { width: r, height: v }) : r ? i("maxImageWidth", { width: r }) : v ? i("maxImageHeight", { height: v }) : null;
500
494
  });
501
- return { __sfc: !0, props: a, t: i, tc: t, locale: o, conditionalClasses: p, setRestrictionErrorClass: l, maxDimensionsLabel: c, BentoTypography: G, formatFileSize: va };
495
+ return { __sfc: !0, props: a, t: i, tc: t, locale: p, conditionalClasses: o, setRestrictionErrorClass: l, maxDimensionsLabel: c, BentoTypography: G, formatFileSize: va };
502
496
  }
503
497
  });
504
- var lt = function() {
498
+ var st = function() {
505
499
  var a = this, i = a._self._c, t = a._self._setupProxy;
506
500
  return i("div", { staticClass: "b-file-uploader-restrictions", class: t.conditionalClasses }, [a.supportedFileTypes ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.supportedFileTypes.error) }, [a._v(" " + a._s(t.t("supportedFileTypes", { list: a.supportedFileTypes.value })) + " ")]) : a._e(), a.maxSize ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxSize.error) }, [a._v(" " + a._s(t.t("maxFileSize", { size: t.formatFileSize(t.locale, a.maxSize.value) })) + " ")]) : a._e(), a.maxDimensions ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxDimensions.error) }, [a._v(" " + a._s(t.maxDimensionsLabel) + " ")]) : a._e(), a.maxCount ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxCount.error) }, [a._v(" " + a._s(t.tc("maxUpload", a.maxCount.value)) + " ")]) : a._e()], 1);
507
- }, st = [], ct = /* @__PURE__ */ f(
508
- ot,
501
+ }, ct = [], rt = /* @__PURE__ */ f(
509
502
  lt,
510
503
  st,
504
+ ct,
511
505
  !1,
512
506
  null,
513
507
  "3c1d05d1"
514
508
  );
515
- const rt = ct.exports;
516
- function dt(e) {
517
- const { locale: a, t: i } = O();
518
- return { supportedFileTypeList: m(() => {
519
- const o = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
520
- return e != null && e.value ? o.format(
521
- e.value.split(",").map((p) => {
522
- const l = p.trim();
523
- switch (l) {
524
- case "audio/*":
525
- return i("audioFiles");
526
- case "image/*":
527
- return i("imageFiles");
528
- case "video/*":
529
- return i("videoFiles");
530
- default:
531
- return l.toUpperCase();
532
- }
533
- })
534
- ) : null;
535
- }) };
536
- }
537
- const mt = {
538
- "en-US": {
539
- audioFiles: "audio files",
540
- browseFiles: "Browse files",
541
- dropArea: "Drop area",
542
- dropFiles: "Drop file to upload | Drop files to upload",
543
- fileExceedsSizeLimit: "File exceeds size limit",
544
- imageFiles: "image files",
545
- tooManyFiles: "Too many files",
546
- upload: "Upload",
547
- videoFiles: "video files",
548
- warning: "Warning",
549
- youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
550
- },
551
- "ja-JP": {
552
- upload: "アップロード",
553
- warning: "警告"
554
- },
555
- "pt-BR": {
556
- upload: "Carregar",
557
- warning: "Aviso"
558
- }
559
- }, ua = {
509
+ const dt = rt.exports, ua = {
560
510
  "application/prs.cww": ["cww"],
561
511
  "application/prs.xsf+xml": ["xsf"],
562
512
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1614,20 +1564,20 @@ var g = function(e, a, i, t) {
1614
1564
  if (typeof a == "function" ? e !== a || !t : !a.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1615
1565
  return i === "m" ? t : i === "a" ? t.call(e) : t ? t.value : a.get(e);
1616
1566
  }, z, $, y;
1617
- class vt {
1567
+ class mt {
1618
1568
  constructor(...a) {
1619
1569
  z.set(this, /* @__PURE__ */ new Map()), $.set(this, /* @__PURE__ */ new Map()), y.set(this, /* @__PURE__ */ new Map());
1620
1570
  for (const i of a)
1621
1571
  this.define(i);
1622
1572
  }
1623
1573
  define(a, i = !1) {
1624
- for (let [t, o] of Object.entries(a)) {
1625
- t = t.toLowerCase(), o = o.map((c) => c.toLowerCase()), g(this, y, "f").has(t) || g(this, y, "f").set(t, /* @__PURE__ */ new Set());
1626
- const p = g(this, y, "f").get(t);
1574
+ for (let [t, p] of Object.entries(a)) {
1575
+ t = t.toLowerCase(), p = p.map((c) => c.toLowerCase()), g(this, y, "f").has(t) || g(this, y, "f").set(t, /* @__PURE__ */ new Set());
1576
+ const o = g(this, y, "f").get(t);
1627
1577
  let l = !0;
1628
- for (let c of o) {
1578
+ for (let c of p) {
1629
1579
  const r = c.startsWith("*");
1630
- if (c = r ? c.slice(1) : c, p == null || p.add(c), l && g(this, $, "f").set(t, c), l = !1, r)
1580
+ if (c = r ? c.slice(1) : c, o == null || o.add(c), l && g(this, $, "f").set(t, c), l = !1, r)
1631
1581
  continue;
1632
1582
  const v = g(this, z, "f").get(c);
1633
1583
  if (v && v != t && !i)
@@ -1640,8 +1590,8 @@ class vt {
1640
1590
  getType(a) {
1641
1591
  if (typeof a != "string")
1642
1592
  return null;
1643
- const i = a.replace(/^.*[/\\]/, "").toLowerCase(), t = i.replace(/^.*\./, "").toLowerCase(), o = i.length < a.length;
1644
- return !(t.length < i.length - 1) && o ? null : g(this, z, "f").get(t) ?? null;
1593
+ const i = a.replace(/^.*[/\\]/, "").toLowerCase(), t = i.replace(/^.*\./, "").toLowerCase(), p = i.length < a.length;
1594
+ return !(t.length < i.length - 1) && p ? null : g(this, z, "f").get(t) ?? null;
1645
1595
  }
1646
1596
  getExtension(a) {
1647
1597
  var i;
@@ -1666,11 +1616,57 @@ class vt {
1666
1616
  }
1667
1617
  }
1668
1618
  z = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap();
1669
- const ut = new vt(fa, ua)._freeze();
1670
- function ft(e) {
1671
- return ut.getType(e) ?? e;
1619
+ const xa = new mt(fa, ua)._freeze();
1620
+ function vt(e) {
1621
+ return e.includes("/") ? `.${xa.getExtension(e).toUpperCase()}` : e.toUpperCase();
1622
+ }
1623
+ function ut(e) {
1624
+ const { locale: a, t: i } = O();
1625
+ return { supportedFileTypeList: m(() => {
1626
+ const p = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
1627
+ return e != null && e.value ? p.format(
1628
+ e.value.split(",").map((o) => {
1629
+ switch (o.trim()) {
1630
+ case "audio/*":
1631
+ return i("audioFiles");
1632
+ case "image/*":
1633
+ return i("imageFiles");
1634
+ case "video/*":
1635
+ return i("videoFiles");
1636
+ default:
1637
+ return vt(o);
1638
+ }
1639
+ })
1640
+ ) : null;
1641
+ }) };
1642
+ }
1643
+ const ft = {
1644
+ "en-US": {
1645
+ audioFiles: "audio files",
1646
+ browseFiles: "Browse files",
1647
+ dropArea: "Drop area",
1648
+ dropFiles: "Drop file to upload | Drop files to upload",
1649
+ fileExceedsSizeLimit: "File exceeds size limit",
1650
+ imageFiles: "image files",
1651
+ tooManyFiles: "Too many files",
1652
+ upload: "Upload",
1653
+ videoFiles: "video files",
1654
+ warning: "Warning",
1655
+ youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
1656
+ },
1657
+ "ja-JP": {
1658
+ upload: "アップロード",
1659
+ warning: "警告"
1660
+ },
1661
+ "pt-BR": {
1662
+ upload: "Carregar",
1663
+ warning: "Aviso"
1664
+ }
1665
+ };
1666
+ function xt(e) {
1667
+ return xa.getType(e) ?? e;
1672
1668
  }
1673
- function xt({ maxCount: e, accept: a }) {
1669
+ function gt({ maxCount: e, accept: a }) {
1674
1670
  const i = W({
1675
1671
  invalidTypes: !1,
1676
1672
  partiallyInvalidTypes: !1,
@@ -1678,16 +1674,16 @@ function xt({ maxCount: e, accept: a }) {
1678
1674
  }), t = W({
1679
1675
  dragging: !1,
1680
1676
  error: !1
1681
- }), o = m(() => a.value ? a.value.split(",").map((r) => ft(r.trim().toLocaleLowerCase())) : void 0);
1682
- function p() {
1677
+ }), p = m(() => a.value ? a.value.split(",").map((r) => xt(r.trim().toLocaleLowerCase())) : void 0);
1678
+ function o() {
1683
1679
  t.dragging = !1, t.error = !1, i.invalidTypes = !1, i.partiallyInvalidTypes = !1, i.maxCountOverflow = !1;
1684
1680
  }
1685
1681
  function l(c, r) {
1686
- if (t.dragging = !0, (!r.dataTransfer.types.includes("Files") || c > e.value) && (i.maxCountOverflow = !0, t.error = !0), !o.value)
1682
+ if (t.dragging = !0, (!r.dataTransfer.types.includes("Files") || c > e.value) && (i.maxCountOverflow = !0, t.error = !0), !p.value)
1687
1683
  return;
1688
1684
  let v = 0;
1689
1685
  for (const w of r.dataTransfer.items)
1690
- o.value.includes(w.type) && v++;
1686
+ p.value.includes(w.type) && v++;
1691
1687
  if (v === 0) {
1692
1688
  t.error = !0, i.invalidTypes = !0;
1693
1689
  return;
@@ -1697,15 +1693,15 @@ function xt({ maxCount: e, accept: a }) {
1697
1693
  return {
1698
1694
  dragState: t,
1699
1695
  dragErrors: i,
1700
- resetDragState: p,
1696
+ resetDragState: o,
1701
1697
  onDragEnterValidations: l
1702
1698
  };
1703
1699
  }
1704
- const gt = {
1700
+ const ht = {
1705
1701
  model: { prop: "modelValue" },
1706
- i18n: { messages: mt }
1707
- }, ht = /* @__PURE__ */ H({
1708
- ...gt,
1702
+ i18n: { messages: ft }
1703
+ }, _t = /* @__PURE__ */ H({
1704
+ ...ht,
1709
1705
  __name: "file-uploader",
1710
1706
  props: {
1711
1707
  accept: { default: null },
@@ -1724,7 +1720,7 @@ const gt = {
1724
1720
  },
1725
1721
  emits: ["change", "update:modelValue", "error:upload"],
1726
1722
  setup(e, { emit: a }) {
1727
- const i = e, { t, tc: o } = O(), { supportedFileTypeList: p } = dt(A(i, "accept")), l = b(null), c = b(null), r = P("input"), v = P("input-error"), { dragState: w, dragErrors: C, resetDragState: k, onDragEnterValidations: E } = xt({
1723
+ const i = e, { t, tc: p } = O(), { supportedFileTypeList: o } = ut(A(i, "accept")), l = b(null), c = b(null), r = P("input"), v = P("input-error"), { dragState: w, dragErrors: C, resetDragState: k, onDragEnterValidations: E } = gt({
1728
1724
  accept: A(i, "accept"),
1729
1725
  maxCount: A(i, "maxCount")
1730
1726
  }), B = m(() => {
@@ -1744,8 +1740,8 @@ const gt = {
1744
1740
  value: i.maxSize,
1745
1741
  error: (s = l.value) == null ? void 0 : s.some((_) => _.errors.includes(x.ERROR_SIZE))
1746
1742
  } : null,
1747
- supportedFileTypes: p.value ? {
1748
- value: p.value,
1743
+ supportedFileTypes: o.value ? {
1744
+ value: o.value,
1749
1745
  error: C.invalidTypes || C.partiallyInvalidTypes || ((u = l.value) == null ? void 0 : u.some((_) => _.errors.includes(x.ERROR_TYPE)))
1750
1746
  } : null
1751
1747
  };
@@ -1770,7 +1766,7 @@ const gt = {
1770
1766
  N(S, (n) => {
1771
1767
  I.value || a("error:upload", n);
1772
1768
  });
1773
- function xa(n) {
1769
+ function ga(n) {
1774
1770
  l.value = l.value.filter(({ id: s }) => s !== n.id);
1775
1771
  }
1776
1772
  function Z(n) {
@@ -1780,11 +1776,11 @@ const gt = {
1780
1776
  errors: [],
1781
1777
  progress: null,
1782
1778
  state: h.LOADING,
1783
- type: ai(n)
1779
+ type: ii(n)
1784
1780
  });
1785
- return ti(s, i.accept, i.maxDimensions), s;
1781
+ return ei(s, i.accept, i.maxDimensions), s;
1786
1782
  }
1787
- function ga(n) {
1783
+ function ha(n) {
1788
1784
  var s;
1789
1785
  ((s = l.value) == null ? void 0 : s.length) === i.maxCount && n.preventDefault();
1790
1786
  }
@@ -1795,7 +1791,7 @@ const gt = {
1795
1791
  }
1796
1792
  j.value ? l.value = [...l.value || [], ...Array.from(n).map((s) => Z(s))] : l.value = [Z(n[0])];
1797
1793
  }
1798
- function ha(n) {
1794
+ function _a(n) {
1799
1795
  var u, _;
1800
1796
  if (i.disabled)
1801
1797
  return;
@@ -1806,17 +1802,17 @@ const gt = {
1806
1802
  function V() {
1807
1803
  R.value = null;
1808
1804
  }
1809
- function _a(n) {
1805
+ function ba(n) {
1810
1806
  R.value === n.target && (V(), k());
1811
1807
  }
1812
- function ba(n) {
1808
+ function wa(n) {
1813
1809
  n.preventDefault(), i.disabled && (n.dataTransfer.dropEffect = "none");
1814
1810
  }
1815
- function wa(n) {
1811
+ function Ca(n) {
1816
1812
  var s;
1817
1813
  i.disabled || (!C.invalidTypes && ((s = n.dataTransfer.files) != null && s.length) && U(n.dataTransfer.files), V(), k());
1818
1814
  }
1819
- function Ca() {
1815
+ function ya() {
1820
1816
  var n;
1821
1817
  (n = c.value.files) != null && n.length && U(c.value.files), c.value.value = "";
1822
1818
  }
@@ -1846,43 +1842,43 @@ const gt = {
1846
1842
  a("change", s), a("update:modelValue", s);
1847
1843
  } else
1848
1844
  a("change"), a("update:modelValue");
1849
- }), { __sfc: !0, t, tc: o, emit: a, props: i, supportedFileTypeList: p, files: l, inputRef: c, inputFieldId: r, errorId: v, dragState: w, dragErrors: C, resetDragState: k, onDragEnterValidations: E, fileUploadRestrictionsProps: B, enterTarget: R, conditionalClasses: L, isMultiple: j, hideArea: q, loadingStateExists: I, hasError: T, maxFileCountError: F, maxFileError: M, hasRestrictionError: S, removeFile: xa, processFile: Z, onInputClick: ga, onFileInput: U, onDragEnter: ha, resetEnterTarget: V, onDragLeave: _a, onDragOver: ba, onDrop: wa, onInputChange: Ca, verifyFileCount: Y, verifyFileSize: X, convertToFileList: J, UploadIcon: Ha, WarningFilledIcon: ra, BentoAlert: Ra, BentoButton: da, BentoTypography: G, ErrorMessage: Fa, FieldLabel: Ta, FileUploaderFileCard: et, FileUploaderRestrictions: rt };
1845
+ }), { __sfc: !0, t, tc: p, emit: a, props: i, supportedFileTypeList: o, files: l, inputRef: c, inputFieldId: r, errorId: v, dragState: w, dragErrors: C, resetDragState: k, onDragEnterValidations: E, fileUploadRestrictionsProps: B, enterTarget: R, conditionalClasses: L, isMultiple: j, hideArea: q, loadingStateExists: I, hasError: T, maxFileCountError: F, maxFileError: M, hasRestrictionError: S, removeFile: ga, processFile: Z, onInputClick: ha, onFileInput: U, onDragEnter: _a, resetEnterTarget: V, onDragLeave: ba, onDragOver: wa, onDrop: Ca, onInputChange: ya, verifyFileCount: Y, verifyFileSize: X, convertToFileList: J, UploadIcon: Oa, WarningFilledIcon: ra, BentoAlert: ja, BentoButton: da, BentoTypography: G, ErrorMessage: Ma, FieldLabel: Fa, FileUploaderFileCard: nt, FileUploaderRestrictions: dt };
1850
1846
  }
1851
1847
  });
1852
- var _t = function() {
1853
- var o;
1848
+ var bt = function() {
1849
+ var p;
1854
1850
  var a = this, i = a._self._c, t = a._self._setupProxy;
1855
- return i("div", { staticClass: "b-file-uploader", class: t.conditionalClasses }, [i(t.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: t.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), i("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: t.inputFieldId, type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: t.isMultiple }, on: { change: t.onInputChange, click: t.onInputClick } }), t.hideArea ? a._e() : i("div", { staticClass: "b-file-uploader__area", attrs: { "aria-label": t.t("dropArea"), tabindex: a.disabled ? -1 : 0 }, on: { click: function(p) {
1851
+ return i("div", { staticClass: "b-file-uploader", class: t.conditionalClasses }, [i(t.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: t.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), i("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: t.inputFieldId, type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: t.isMultiple }, on: { change: t.onInputChange, click: t.onInputClick } }), t.hideArea ? a._e() : i("div", { staticClass: "b-file-uploader__area", attrs: { "aria-label": t.t("dropArea"), tabindex: a.disabled ? -1 : 0 }, on: { click: function(o) {
1856
1852
  return t.inputRef.click();
1857
- }, dragenter: function(p) {
1858
- return p.stopPropagation(), p.preventDefault(), t.onDragEnter.apply(null, arguments);
1859
- }, dragleave: function(p) {
1860
- return p.stopPropagation(), p.preventDefault(), t.onDragLeave.apply(null, arguments);
1861
- }, drop: function(p) {
1862
- return p.stopPropagation(), p.preventDefault(), t.onDrop.apply(null, arguments);
1863
- }, dragover: t.onDragOver, "!keydown": [function(p) {
1864
- return !p.type.indexOf("key") && a._k(p.keyCode, "enter", 13, p.key, "Enter") ? null : (p.preventDefault(), t.inputRef.click());
1865
- }, function(p) {
1866
- return !p.type.indexOf("key") && a._k(p.keyCode, "space", 32, p.key, [" ", "Spacebar"]) ? null : (p.preventDefault(), t.inputRef.click());
1853
+ }, dragenter: function(o) {
1854
+ return o.stopPropagation(), o.preventDefault(), t.onDragEnter.apply(null, arguments);
1855
+ }, dragleave: function(o) {
1856
+ return o.stopPropagation(), o.preventDefault(), t.onDragLeave.apply(null, arguments);
1857
+ }, drop: function(o) {
1858
+ return o.stopPropagation(), o.preventDefault(), t.onDrop.apply(null, arguments);
1859
+ }, dragover: t.onDragOver, "!keydown": [function(o) {
1860
+ return !o.type.indexOf("key") && a._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : (o.preventDefault(), t.inputRef.click());
1861
+ }, function(o) {
1862
+ return !o.type.indexOf("key") && a._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : (o.preventDefault(), t.inputRef.click());
1867
1863
  }] } }, [i("div", { staticClass: "b-file-uploader__icon" }, [t.hasError ? i(t.WarningFilledIcon, { attrs: { "svg-title": t.t("warning") } }) : i(t.UploadIcon, { attrs: { "svg-title": t.t("upload") } })], 1), a.condensed ? a._e() : [i(t.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { el: "span", strongest: "" } }, [a._v(" " + a._s(t.tc("dropFiles", a.maxCount)) + " ")]), a.description ? i(t.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), i(t.FileUploaderRestrictions, a._b({}, "file-uploader-restrictions", t.fileUploadRestrictionsProps, !1))], i(t.BentoButton, { staticClass: "b-file-uploader__button", attrs: { disabled: a.disabled, variant: a.condensed ? "tertiary" : "secondary", condensed: "", tabindex: "-1" } }, [a._v(" " + a._s(t.t("browseFiles")) + " ")])], 2), t.hasError && a.errorMessage ? i(t.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: t.errorId, "error-message": a.errorMessage } }) : a._e(), a.condensed && a.description ? i(t.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), a.condensed ? i(t.FileUploaderRestrictions, a._b({}, "file-uploader-restrictions", t.fileUploadRestrictionsProps, !1)) : a._e(), t.maxFileCountError ? i(t.BentoAlert, { attrs: { type: "critical" }, scopedSlots: a._u([{ key: "description", fn: function() {
1868
1864
  return [a._v(" " + a._s(t.t("youHaveExceededTheMaximum", { count: t.props.maxCount })) + " ")];
1869
- }, proxy: !0 }], null, !1, 239749076) }, [a._v(" " + a._s(t.t("tooManyFiles")) + " ")]) : a._e(), i("div", { directives: [{ name: "show", rawName: "v-show", value: (o = t.files) == null ? void 0 : o.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(t.files, function(p) {
1870
- return i(t.FileUploaderFileCard, { key: p.id, attrs: { file: p, "supported-file-types": t.supportedFileTypeList }, on: { cancel: function(l) {
1871
- return t.removeFile(p);
1865
+ }, proxy: !0 }], null, !1, 239749076) }, [a._v(" " + a._s(t.t("tooManyFiles")) + " ")]) : a._e(), i("div", { directives: [{ name: "show", rawName: "v-show", value: (p = t.files) == null ? void 0 : p.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(t.files, function(o) {
1866
+ return i(t.FileUploaderFileCard, { key: o.id, attrs: { file: o, "supported-file-types": t.supportedFileTypeList }, on: { cancel: function(l) {
1867
+ return t.removeFile(o);
1872
1868
  }, remove: function(l) {
1873
- return t.removeFile(p);
1869
+ return t.removeFile(o);
1874
1870
  } } });
1875
1871
  }), 1)], 1);
1876
- }, bt = [], wt = /* @__PURE__ */ f(
1877
- ht,
1872
+ }, wt = [], Ct = /* @__PURE__ */ f(
1878
1873
  _t,
1879
1874
  bt,
1875
+ wt,
1880
1876
  !1,
1881
1877
  null,
1882
1878
  "83f464d9"
1883
1879
  );
1884
- const Ht = wt.exports;
1880
+ const Ot = Ct.exports;
1885
1881
  export {
1886
- Ht as f
1882
+ Ot as f
1887
1883
  };
1888
- //# sourceMappingURL=file-uploader.mLUYQnz1.js.map
1884
+ //# sourceMappingURL=file-uploader.DTkxh9Ct.js.map