@adyen/bento-vue3 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.
- package/dist/@types/index.d.ts +216 -33
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{checkbox-group.8ebmaHsA.js → checkbox-group.COUx8Ne8.js} +2 -2
- package/dist/chunks/{checkbox-group.8ebmaHsA.js.map → checkbox-group.COUx8Ne8.js.map} +1 -1
- package/dist/chunks/{checkbox.BI0dqARY.js → checkbox.SffuKyNj.js} +3 -3
- package/dist/chunks/{checkbox.BI0dqARY.js.map → checkbox.SffuKyNj.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bjf1ma1L.js → code-snippet.ByoBEM00.js} +2 -2
- package/dist/chunks/{code-snippet.Bjf1ma1L.js.map → code-snippet.ByoBEM00.js.map} +1 -1
- package/dist/chunks/{currency.CBZMwm21.js → currency.WmvQjX7l.js} +2 -2
- package/dist/chunks/{currency.CBZMwm21.js.map → currency.WmvQjX7l.js.map} +1 -1
- package/dist/chunks/{data-grid.VBEJO94f.js → data-grid.CMIG82Xt.js} +7 -7
- package/dist/chunks/{data-grid.VBEJO94f.js.map → data-grid.CMIG82Xt.js.map} +1 -1
- package/dist/chunks/date-picker.CsGq3iSK.js +244 -0
- package/dist/chunks/date-picker.CsGq3iSK.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date-range-picker.C19CWG27.js +1149 -0
- package/dist/chunks/date-range-picker.C19CWG27.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.MkU0tMf1.js → dropdown-default-textbox._KEBXjKT.js} +88 -86
- package/dist/chunks/dropdown-default-textbox._KEBXjKT.js.map +1 -0
- package/dist/chunks/dropdown-tag.B90dpg8J.js +301 -0
- package/dist/chunks/dropdown-tag.B90dpg8J.js.map +1 -0
- package/dist/chunks/dropdown.DYDHM__3.js +833 -0
- package/dist/chunks/{dropdown.KStrJVoP.js.map → dropdown.DYDHM__3.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{file-uploader.By0MTfKk.js → file-uploader.BDXQ7Ccv.js} +416 -415
- package/dist/chunks/{file-uploader.By0MTfKk.js.map → file-uploader.BDXQ7Ccv.js.map} +1 -1
- package/dist/chunks/{filter-bar.JXmlFnHV.js → filter-bar.CmF92iAr.js} +303 -303
- package/dist/chunks/filter-bar.CmF92iAr.js.map +1 -0
- package/dist/chunks/form-field.BBqLu-vs.js +10 -0
- package/dist/chunks/form-field.BBqLu-vs.js.map +1 -0
- package/dist/chunks/get-slot-text.CQRAP2_q.js +12 -0
- package/dist/chunks/get-slot-text.CQRAP2_q.js.map +1 -0
- package/dist/chunks/{header-with-views.Dg2usaMY.js → header-with-views.xPfeOz0Y.js} +3 -3
- package/dist/chunks/{header-with-views.Dg2usaMY.js.map → header-with-views.xPfeOz0Y.js.map} +1 -1
- package/dist/chunks/{input-field-password.B6nJ7ygZ.js → input-field-password.BZBYVyAb.js} +3 -3
- package/dist/chunks/{input-field-password.B6nJ7ygZ.js.map → input-field-password.BZBYVyAb.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.D_UBAN2s.js → input-field-phone-number.a8Mw5PAW.js} +5 -5
- package/dist/chunks/{input-field-phone-number.D_UBAN2s.js.map → input-field-phone-number.a8Mw5PAW.js.map} +1 -1
- package/dist/chunks/{input-field.C29FCI4j.js → input-field.CYGGIK48.js} +48 -48
- package/dist/chunks/input-field.CYGGIK48.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.uHSB7MO6.js → listbox-option-tag.Cwe9Bn-R.js} +2 -2
- package/dist/chunks/{listbox-option-tag.uHSB7MO6.js.map → listbox-option-tag.Cwe9Bn-R.js.map} +1 -1
- package/dist/chunks/{pagination.BaBWNlIF.js → pagination.CYdGcyMA.js} +49 -49
- package/dist/chunks/pagination.CYdGcyMA.js.map +1 -0
- package/dist/chunks/{payment-method.CDnn1bjo.js → payment-method.D6PeTYWq.js} +45 -42
- package/dist/chunks/payment-method.D6PeTYWq.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/{radio-group.DWNqrkZ3.js → radio-group.B_8R6vGx.js} +3 -3
- package/dist/chunks/{radio-group.DWNqrkZ3.js.map → radio-group.B_8R6vGx.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Bh7KS617.js → rich-text-editor.B6Ftqv55.js} +2 -2
- package/dist/chunks/{rich-text-editor.Bh7KS617.js.map → rich-text-editor.B6Ftqv55.js.map} +1 -1
- package/dist/chunks/{search-bar.RS02IcLc.js → search-bar.D3Ri_RUK.js} +3 -3
- package/dist/chunks/{search-bar.RS02IcLc.js.map → search-bar.D3Ri_RUK.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DXsgUTqk.js → secondary-nav.CAb20jWW.js} +24 -24
- package/dist/chunks/secondary-nav.CAb20jWW.js.map +1 -0
- package/dist/chunks/{summary-grid.types.ByQ4u19J.js → summary-grid.types.cE1fyLvC.js} +2 -2
- package/dist/chunks/{summary-grid.types.ByQ4u19J.js.map → summary-grid.types.cE1fyLvC.js.map} +1 -1
- package/dist/chunks/tag.CjaB9DxL.js +57 -0
- package/dist/chunks/tag.CjaB9DxL.js.map +1 -0
- package/dist/chunks/textarea.C_gnXj6b.js +254 -0
- package/dist/chunks/textarea.C_gnXj6b.js.map +1 -0
- package/dist/chunks/{timeline-item.DNjubXL2.js → timeline-item.rSY0Xce3.js} +48 -48
- package/dist/chunks/timeline-item.rSY0Xce3.js.map +1 -0
- package/dist/chunks/{toggle.Dd_NA8eH.js → toggle.BHCUjMpp.js} +2 -2
- package/dist/chunks/{toggle.Dd_NA8eH.js.map → toggle.BHCUjMpp.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +7 -6
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +246 -245
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/styles/bento-dark.css +4 -0
- package/dist/styles/bento-light.css +4 -0
- package/dist/styles/bento.css +4 -0
- package/dist/styles/legacy.css +4 -0
- package/dist/styles/styleguide.css +4 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/chunks/date-picker.OI-sQ232.js +0 -234
- package/dist/chunks/date-picker.OI-sQ232.js.map +0 -1
- package/dist/chunks/date-range-picker.D7IwIR5V.js +0 -1114
- package/dist/chunks/date-range-picker.D7IwIR5V.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.MkU0tMf1.js.map +0 -1
- package/dist/chunks/dropdown-tag.DFeoXIgH.js +0 -242
- package/dist/chunks/dropdown-tag.DFeoXIgH.js.map +0 -1
- package/dist/chunks/dropdown.KStrJVoP.js +0 -825
- package/dist/chunks/filter-bar.JXmlFnHV.js.map +0 -1
- package/dist/chunks/get-slot-text.DQlZEsId.js +0 -12
- package/dist/chunks/get-slot-text.DQlZEsId.js.map +0 -1
- package/dist/chunks/input-field.C29FCI4j.js.map +0 -1
- package/dist/chunks/pagination.BaBWNlIF.js.map +0 -1
- package/dist/chunks/payment-method.CDnn1bjo.js.map +0 -1
- package/dist/chunks/secondary-nav.DXsgUTqk.js.map +0 -1
- package/dist/chunks/tag.CEmpyuYX.js +0 -50
- package/dist/chunks/tag.CEmpyuYX.js.map +0 -1
- package/dist/chunks/textarea.C1jkfowf.js +0 -246
- package/dist/chunks/textarea.C1jkfowf.js.map +0 -1
- package/dist/chunks/timeline-item.DNjubXL2.js.map +0 -1
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as g, openBlock as s, mergeProps as V, createCommentVNode as f, createElementVNode as m, toDisplayString as x, defineComponent as ca, createBlock as y, unref as t, Transition as si, withCtx as w, renderSlot as _a, TransitionGroup as ci, ref as I, onUnmounted as di, onMounted as qa, computed as h, watch as ha, normalizeClass as q, createVNode as O, resolveDynamicComponent as ri, withDirectives as Ba, createTextVNode as _, reactive as ba, toRef as xa, withKeys as ja, withModifiers as aa, Fragment as za, renderList as mi, vShow as ui, nextTick as vi } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as R, d as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
4
|
+
import { W as Za } from "./warning-filled.BMGD0G-_.js";
|
|
5
|
+
import { B as fi } from "./alert.C2pusd-_.js";
|
|
6
|
+
import { B as R, d as xi } from "./typography.yBEME_Gu.js";
|
|
7
|
+
import { u as da } from "./index.pdBj0KQU.js";
|
|
8
|
+
import { g as F } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
+
import { u as gi } from "./form-field.BBqLu-vs.js";
|
|
10
|
+
import { i as Aa } from "./index.CWuzEfiV.js";
|
|
11
|
+
import { B as hi } from "./bin.DuHlEQBO.js";
|
|
12
|
+
import { C as bi } from "./checkmark-circle-fill._6-d40ru.js";
|
|
13
|
+
import { C as wi } from "./cross.B92GxFTY.js";
|
|
14
|
+
import { R as yi } from "./refresh.BB4ouvz_.js";
|
|
15
|
+
import { b as ki } from "./tooltip.Dp9_ESm_.js";
|
|
15
16
|
import { B as ga } from "./button.DhcxX2GJ.js";
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { F as
|
|
17
|
+
import { B as Ci } from "./link.cwPmWlsk.js";
|
|
18
|
+
import { B as $i } from "./loading-indicator.Db794TT5.js";
|
|
19
|
+
import { F as _i, E as ji } from "./field-label.C97CrBI_.js";
|
|
19
20
|
import "../assets/file-uploader.css";
|
|
20
|
-
let
|
|
21
|
-
const
|
|
21
|
+
let Ra = 0;
|
|
22
|
+
const zi = {
|
|
22
23
|
beforeCreate() {
|
|
23
|
-
this.uuid =
|
|
24
|
+
this.uuid = Ra.toString(), Ra += 1;
|
|
24
25
|
}
|
|
25
|
-
},
|
|
26
|
-
function
|
|
27
|
-
return s(),
|
|
26
|
+
}, Ri = { key: 0 };
|
|
27
|
+
function Ei(a, i, o, p, n, d) {
|
|
28
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
28
29
|
class: "ui-assets-icons-16",
|
|
29
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
31
|
width: "16",
|
|
31
32
|
height: "16",
|
|
32
33
|
fill: "none"
|
|
33
34
|
}), [
|
|
34
|
-
a.$attrs["svg-title"] ? (s(),
|
|
35
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ri, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
35
36
|
i[0] || (i[0] = m("path", {
|
|
36
37
|
fill: "#001222",
|
|
37
38
|
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"
|
|
@@ -42,44 +43,44 @@ function zi(a, i, o, p, n, d) {
|
|
|
42
43
|
}, null, -1))
|
|
43
44
|
], 16);
|
|
44
45
|
}
|
|
45
|
-
const
|
|
46
|
+
const Ii = /* @__PURE__ */ L(zi, [["render", Ei]]), Li = /* @__PURE__ */ ca({
|
|
46
47
|
__name: "file-uploader-file-card-animation",
|
|
47
48
|
props: {
|
|
48
49
|
name: {},
|
|
49
50
|
showFileIcon: { type: Boolean }
|
|
50
51
|
},
|
|
51
52
|
setup(a) {
|
|
52
|
-
return (i, o) => t(
|
|
53
|
+
return (i, o) => t(Aa) ? (s(), y(si, {
|
|
53
54
|
key: 0,
|
|
54
55
|
name: i.name,
|
|
55
56
|
mode: "out-in",
|
|
56
57
|
css: i.showFileIcon
|
|
57
58
|
}, {
|
|
58
|
-
default:
|
|
59
|
-
|
|
59
|
+
default: w(() => [
|
|
60
|
+
_a(i.$slots, "default")
|
|
60
61
|
]),
|
|
61
62
|
_: 3
|
|
62
|
-
}, 8, ["name", "css"])) : (s(),
|
|
63
|
+
}, 8, ["name", "css"])) : (s(), y(ci, {
|
|
63
64
|
key: 1,
|
|
64
65
|
name: i.name,
|
|
65
66
|
css: i.showFileIcon
|
|
66
67
|
}, {
|
|
67
|
-
default:
|
|
68
|
-
|
|
68
|
+
default: w(() => [
|
|
69
|
+
_a(i.$slots, "default")
|
|
69
70
|
]),
|
|
70
71
|
_: 3
|
|
71
72
|
}, 8, ["name", "css"]));
|
|
72
73
|
}
|
|
73
74
|
});
|
|
74
|
-
function
|
|
75
|
+
function Ti(a, i) {
|
|
75
76
|
const o = I(!1);
|
|
76
77
|
let p;
|
|
77
78
|
function n() {
|
|
78
79
|
p && p.disconnect();
|
|
79
80
|
}
|
|
80
|
-
return
|
|
81
|
+
return di(() => {
|
|
81
82
|
n();
|
|
82
|
-
}),
|
|
83
|
+
}), qa(() => {
|
|
83
84
|
n(), p = new IntersectionObserver(
|
|
84
85
|
(d) => {
|
|
85
86
|
o.value = !d[0].isIntersecting;
|
|
@@ -91,23 +92,23 @@ function Ii(a, i) {
|
|
|
91
92
|
), p.observe(a.value.$el);
|
|
92
93
|
}), o;
|
|
93
94
|
}
|
|
94
|
-
const
|
|
95
|
-
function
|
|
96
|
-
const o = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)),
|
|
95
|
+
const Ea = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function Ua(a, i) {
|
|
97
|
+
const o = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), Ea.length - 1));
|
|
97
98
|
return Intl.NumberFormat(a, {
|
|
98
99
|
style: "unit",
|
|
99
|
-
unit:
|
|
100
|
+
unit: Ea[o]
|
|
100
101
|
}).format(i / 1024 ** o);
|
|
101
102
|
}
|
|
102
|
-
var
|
|
103
|
-
const
|
|
103
|
+
var S = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(S || {}), E = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(E || {}), sa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(sa || {}), b = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(b || {});
|
|
104
|
+
const Mi = [
|
|
104
105
|
"application/msword",
|
|
105
106
|
// .doc
|
|
106
107
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
107
108
|
// .docx
|
|
108
109
|
"application/rtf"
|
|
109
110
|
// .rtf
|
|
110
|
-
],
|
|
111
|
+
], Fi = [
|
|
111
112
|
"application/vnd.ms-excel",
|
|
112
113
|
// .xls
|
|
113
114
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -120,14 +121,14 @@ const Li = [
|
|
|
120
121
|
// .numbers
|
|
121
122
|
"text/csv"
|
|
122
123
|
// .csv
|
|
123
|
-
],
|
|
124
|
+
], Si = [
|
|
124
125
|
"application/vnd.ms-powerpoint",
|
|
125
126
|
// .ppt
|
|
126
127
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
127
128
|
// .pptx
|
|
128
129
|
"application/vnd.oasis.opendocument.presentation"
|
|
129
130
|
// .odp
|
|
130
|
-
],
|
|
131
|
+
], Vi = [
|
|
131
132
|
"application/zip",
|
|
132
133
|
// .zip
|
|
133
134
|
"application/vnd.rar",
|
|
@@ -149,10 +150,10 @@ const Li = [
|
|
|
149
150
|
"application/vnd.ms-cab-compressed"
|
|
150
151
|
// .cab
|
|
151
152
|
];
|
|
152
|
-
function
|
|
153
|
-
return
|
|
153
|
+
function Di(a) {
|
|
154
|
+
return Fi.includes(a.type) ? b.TABLE : a.type.startsWith("text/") || Mi.includes(a.type) ? b.TEXT : a.type.startsWith("image/") ? b.IMAGE : a.type.startsWith("video/") ? b.VIDEO : a.type.startsWith("audio/") ? b.AUDIO : a.type === "application/pdf" ? b.PDF : Si.includes(a.type) ? b.SLIDES : Vi.includes(a.type) ? b.COMPRESSED : b.GENERIC;
|
|
154
155
|
}
|
|
155
|
-
function
|
|
156
|
+
function Oi(a, i) {
|
|
156
157
|
if (!i)
|
|
157
158
|
return !0;
|
|
158
159
|
const o = i.split(",").map((p) => p.trim());
|
|
@@ -168,44 +169,44 @@ function Vi(a, i) {
|
|
|
168
169
|
return !0;
|
|
169
170
|
return !1;
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function Hi(a, i, o) {
|
|
172
173
|
const p = new FileReader(), n = a;
|
|
173
|
-
if (!
|
|
174
|
-
n.state =
|
|
174
|
+
if (!Oi(n.data, i)) {
|
|
175
|
+
n.state = S.ERROR, n.errors.push(E.ERROR_TYPE);
|
|
175
176
|
return;
|
|
176
177
|
}
|
|
177
178
|
p.onload = (d) => {
|
|
178
179
|
if (o && n.type === b.IMAGE) {
|
|
179
|
-
const l = new Blob([d.target.result], { type: n.data.type }), u = URL.createObjectURL(l),
|
|
180
|
-
|
|
181
|
-
(
|
|
182
|
-
},
|
|
180
|
+
const l = new Blob([d.target.result], { type: n.data.type }), u = URL.createObjectURL(l), k = new Image();
|
|
181
|
+
k.onload = function() {
|
|
182
|
+
(k.width > o.width || k.height > o.height) && (n.state = S.ERROR, n.errors.push(E.ERROR_DIMENSIONS)), URL.revokeObjectURL(u);
|
|
183
|
+
}, k.onerror = function() {
|
|
183
184
|
URL.revokeObjectURL(u);
|
|
184
|
-
},
|
|
185
|
+
}, k.src = u;
|
|
185
186
|
}
|
|
186
187
|
}, p.onprogress = (d) => {
|
|
187
188
|
d.lengthComputable && (n.progress = d.loaded / d.total * 100);
|
|
188
189
|
}, p.onloadend = () => {
|
|
189
|
-
n.state !==
|
|
190
|
+
n.state !== S.ERROR && (n.state = S.SUCCESS), n.progress = null;
|
|
190
191
|
}, p.onerror = () => {
|
|
191
|
-
n.state =
|
|
192
|
+
n.state = S.ERROR, n.errors.push(E.ERROR_LOAD), n.progress = null;
|
|
192
193
|
}, p.readAsArrayBuffer(n.data);
|
|
193
194
|
}
|
|
194
|
-
let
|
|
195
|
-
const
|
|
195
|
+
let Ia = 0;
|
|
196
|
+
const qi = {
|
|
196
197
|
beforeCreate() {
|
|
197
|
-
this.uuid =
|
|
198
|
+
this.uuid = Ia.toString(), Ia += 1;
|
|
198
199
|
}
|
|
199
|
-
},
|
|
200
|
-
function
|
|
201
|
-
return s(),
|
|
200
|
+
}, Bi = { key: 0 }, Zi = ["clip-path"], Ai = ["id"];
|
|
201
|
+
function Ui(a, i, o, p, n, d) {
|
|
202
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
202
203
|
class: "ui-assets-icons-16",
|
|
203
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
204
205
|
width: "16",
|
|
205
206
|
height: "16",
|
|
206
207
|
fill: "none"
|
|
207
208
|
}), [
|
|
208
|
-
a.$attrs["svg-title"] ? (s(),
|
|
209
|
+
a.$attrs["svg-title"] ? (s(), g("title", Bi, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
209
210
|
m("g", {
|
|
210
211
|
"clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
|
|
211
212
|
}, i[0] || (i[0] = [
|
|
@@ -213,7 +214,7 @@ function Zi(a, i, o, p, n, d) {
|
|
|
213
214
|
fill: "#001222",
|
|
214
215
|
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"
|
|
215
216
|
}, null, -1)
|
|
216
|
-
]), 8,
|
|
217
|
+
]), 8, Zi),
|
|
217
218
|
m("defs", null, [
|
|
218
219
|
m("clipPath", {
|
|
219
220
|
id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
|
|
@@ -223,26 +224,26 @@ function Zi(a, i, o, p, n, d) {
|
|
|
223
224
|
height: "16",
|
|
224
225
|
fill: "#fff"
|
|
225
226
|
}, null, -1)
|
|
226
|
-
]), 8,
|
|
227
|
+
]), 8, Ai)
|
|
227
228
|
])
|
|
228
229
|
], 16);
|
|
229
230
|
}
|
|
230
|
-
const
|
|
231
|
-
let
|
|
232
|
-
const
|
|
231
|
+
const Ni = /* @__PURE__ */ L(qi, [["render", Ui]]);
|
|
232
|
+
let La = 0;
|
|
233
|
+
const Pi = {
|
|
233
234
|
beforeCreate() {
|
|
234
|
-
this.uuid =
|
|
235
|
+
this.uuid = La.toString(), La += 1;
|
|
235
236
|
}
|
|
236
|
-
},
|
|
237
|
-
function
|
|
238
|
-
return s(),
|
|
237
|
+
}, Gi = { key: 0 };
|
|
238
|
+
function Wi(a, i, o, p, n, d) {
|
|
239
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
239
240
|
class: "ui-assets-icons-16",
|
|
240
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
241
242
|
width: "16",
|
|
242
243
|
height: "16",
|
|
243
244
|
fill: "none"
|
|
244
245
|
}), [
|
|
245
|
-
a.$attrs["svg-title"] ? (s(),
|
|
246
|
+
a.$attrs["svg-title"] ? (s(), g("title", Gi, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
246
247
|
i[0] || (i[0] = m("path", {
|
|
247
248
|
fill: "#001222",
|
|
248
249
|
"fill-rule": "evenodd",
|
|
@@ -251,44 +252,44 @@ function Pi(a, i, o, p, n, d) {
|
|
|
251
252
|
}, null, -1))
|
|
252
253
|
], 16);
|
|
253
254
|
}
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
const
|
|
255
|
+
const Yi = /* @__PURE__ */ L(Pi, [["render", Wi]]);
|
|
256
|
+
let Ta = 0;
|
|
257
|
+
const Xi = {
|
|
257
258
|
beforeCreate() {
|
|
258
|
-
this.uuid =
|
|
259
|
+
this.uuid = Ta.toString(), Ta += 1;
|
|
259
260
|
}
|
|
260
|
-
},
|
|
261
|
-
function
|
|
262
|
-
return s(),
|
|
261
|
+
}, Ji = { key: 0 };
|
|
262
|
+
function Ki(a, i, o, p, n, d) {
|
|
263
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
263
264
|
class: "ui-assets-icons-16",
|
|
264
265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
265
266
|
width: "16",
|
|
266
267
|
height: "16",
|
|
267
268
|
fill: "none"
|
|
268
269
|
}), [
|
|
269
|
-
a.$attrs["svg-title"] ? (s(),
|
|
270
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ji, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
270
271
|
i[0] || (i[0] = m("path", {
|
|
271
272
|
fill: "#001222",
|
|
272
273
|
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"
|
|
273
274
|
}, null, -1))
|
|
274
275
|
], 16);
|
|
275
276
|
}
|
|
276
|
-
const
|
|
277
|
-
let
|
|
278
|
-
const
|
|
277
|
+
const Qi = /* @__PURE__ */ L(Xi, [["render", Ki]]);
|
|
278
|
+
let Ma = 0;
|
|
279
|
+
const ae = {
|
|
279
280
|
beforeCreate() {
|
|
280
|
-
this.uuid =
|
|
281
|
+
this.uuid = Ma.toString(), Ma += 1;
|
|
281
282
|
}
|
|
282
|
-
},
|
|
283
|
-
function
|
|
284
|
-
return s(),
|
|
283
|
+
}, ie = { key: 0 };
|
|
284
|
+
function ee(a, i, o, p, n, d) {
|
|
285
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
285
286
|
class: "ui-assets-icons-16",
|
|
286
287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
287
288
|
width: "16",
|
|
288
289
|
height: "16",
|
|
289
290
|
fill: "none"
|
|
290
291
|
}), [
|
|
291
|
-
a.$attrs["svg-title"] ? (s(),
|
|
292
|
+
a.$attrs["svg-title"] ? (s(), g("title", ie, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
292
293
|
i[0] || (i[0] = m("path", {
|
|
293
294
|
fill: "#001222",
|
|
294
295
|
d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
|
|
@@ -303,44 +304,44 @@ function ae(a, i, o, p, n, d) {
|
|
|
303
304
|
}, null, -1))
|
|
304
305
|
], 16);
|
|
305
306
|
}
|
|
306
|
-
const
|
|
307
|
-
let
|
|
308
|
-
const
|
|
307
|
+
const te = /* @__PURE__ */ L(ae, [["render", ee]]);
|
|
308
|
+
let Fa = 0;
|
|
309
|
+
const ne = {
|
|
309
310
|
beforeCreate() {
|
|
310
|
-
this.uuid =
|
|
311
|
+
this.uuid = Fa.toString(), Fa += 1;
|
|
311
312
|
}
|
|
312
|
-
},
|
|
313
|
-
function
|
|
314
|
-
return s(),
|
|
313
|
+
}, oe = { key: 0 };
|
|
314
|
+
function pe(a, i, o, p, n, d) {
|
|
315
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
315
316
|
class: "ui-assets-icons-16",
|
|
316
317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
317
318
|
width: "16",
|
|
318
319
|
height: "16",
|
|
319
320
|
fill: "none"
|
|
320
321
|
}), [
|
|
321
|
-
a.$attrs["svg-title"] ? (s(),
|
|
322
|
+
a.$attrs["svg-title"] ? (s(), g("title", oe, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
322
323
|
i[0] || (i[0] = m("path", {
|
|
323
324
|
fill: "#001222",
|
|
324
325
|
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"
|
|
325
326
|
}, null, -1))
|
|
326
327
|
], 16);
|
|
327
328
|
}
|
|
328
|
-
const
|
|
329
|
+
const le = /* @__PURE__ */ L(ne, [["render", pe]]);
|
|
329
330
|
let Sa = 0;
|
|
330
|
-
const
|
|
331
|
+
const se = {
|
|
331
332
|
beforeCreate() {
|
|
332
333
|
this.uuid = Sa.toString(), Sa += 1;
|
|
333
334
|
}
|
|
334
|
-
},
|
|
335
|
-
function
|
|
336
|
-
return s(),
|
|
335
|
+
}, ce = { key: 0 };
|
|
336
|
+
function de(a, i, o, p, n, d) {
|
|
337
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
337
338
|
class: "ui-assets-icons-16",
|
|
338
339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
339
340
|
width: "16",
|
|
340
341
|
height: "16",
|
|
341
342
|
fill: "none"
|
|
342
343
|
}), [
|
|
343
|
-
a.$attrs["svg-title"] ? (s(),
|
|
344
|
+
a.$attrs["svg-title"] ? (s(), g("title", ce, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
344
345
|
i[0] || (i[0] = m("path", {
|
|
345
346
|
fill: "#001222",
|
|
346
347
|
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"
|
|
@@ -351,29 +352,29 @@ function se(a, i, o, p, n, d) {
|
|
|
351
352
|
}, null, -1))
|
|
352
353
|
], 16);
|
|
353
354
|
}
|
|
354
|
-
const
|
|
355
|
-
let
|
|
356
|
-
const
|
|
355
|
+
const re = /* @__PURE__ */ L(se, [["render", de]]);
|
|
356
|
+
let Va = 0;
|
|
357
|
+
const me = {
|
|
357
358
|
beforeCreate() {
|
|
358
|
-
this.uuid =
|
|
359
|
+
this.uuid = Va.toString(), Va += 1;
|
|
359
360
|
}
|
|
360
|
-
},
|
|
361
|
-
function
|
|
362
|
-
return s(),
|
|
361
|
+
}, ue = { key: 0 }, ve = ["clip-path"], fe = ["id"];
|
|
362
|
+
function xe(a, i, o, p, n, d) {
|
|
363
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
363
364
|
class: "ui-assets-icons-16",
|
|
364
365
|
xmlns: "http://www.w3.org/2000/svg",
|
|
365
366
|
width: "16",
|
|
366
367
|
height: "16",
|
|
367
368
|
fill: "none"
|
|
368
369
|
}), [
|
|
369
|
-
a.$attrs["svg-title"] ? (s(),
|
|
370
|
+
a.$attrs["svg-title"] ? (s(), g("title", ue, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
370
371
|
m("g", {
|
|
371
372
|
fill: "#001222",
|
|
372
373
|
"clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
|
|
373
374
|
}, i[0] || (i[0] = [
|
|
374
375
|
m("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
|
|
375
376
|
m("path", { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" }, null, -1)
|
|
376
|
-
]), 8,
|
|
377
|
+
]), 8, ve),
|
|
377
378
|
m("defs", null, [
|
|
378
379
|
m("clipPath", {
|
|
379
380
|
id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
|
|
@@ -383,26 +384,26 @@ function ve(a, i, o, p, n, d) {
|
|
|
383
384
|
height: "16",
|
|
384
385
|
fill: "#fff"
|
|
385
386
|
}, null, -1)
|
|
386
|
-
]), 8,
|
|
387
|
+
]), 8, fe)
|
|
387
388
|
])
|
|
388
389
|
], 16);
|
|
389
390
|
}
|
|
390
|
-
const
|
|
391
|
-
let
|
|
392
|
-
const
|
|
391
|
+
const ge = /* @__PURE__ */ L(me, [["render", xe]]);
|
|
392
|
+
let Da = 0;
|
|
393
|
+
const he = {
|
|
393
394
|
beforeCreate() {
|
|
394
|
-
this.uuid =
|
|
395
|
+
this.uuid = Da.toString(), Da += 1;
|
|
395
396
|
}
|
|
396
|
-
},
|
|
397
|
-
function
|
|
398
|
-
return s(),
|
|
397
|
+
}, be = { key: 0 };
|
|
398
|
+
function we(a, i, o, p, n, d) {
|
|
399
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
399
400
|
class: "ui-assets-icons-16",
|
|
400
401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
401
402
|
width: "16",
|
|
402
403
|
height: "16",
|
|
403
404
|
fill: "none"
|
|
404
405
|
}), [
|
|
405
|
-
a.$attrs["svg-title"] ? (s(),
|
|
406
|
+
a.$attrs["svg-title"] ? (s(), g("title", be, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
406
407
|
i[0] || (i[0] = m("path", {
|
|
407
408
|
fill: "#001222",
|
|
408
409
|
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"
|
|
@@ -417,43 +418,43 @@ function he(a, i, o, p, n, d) {
|
|
|
417
418
|
}, null, -1))
|
|
418
419
|
], 16);
|
|
419
420
|
}
|
|
420
|
-
const
|
|
421
|
-
let
|
|
422
|
-
const
|
|
421
|
+
const ye = /* @__PURE__ */ L(he, [["render", we]]);
|
|
422
|
+
let Oa = 0;
|
|
423
|
+
const ke = {
|
|
423
424
|
beforeCreate() {
|
|
424
|
-
this.uuid =
|
|
425
|
+
this.uuid = Oa.toString(), Oa += 1;
|
|
425
426
|
}
|
|
426
|
-
},
|
|
427
|
-
function
|
|
428
|
-
return s(),
|
|
427
|
+
}, Ce = { key: 0 };
|
|
428
|
+
function $e(a, i, o, p, n, d) {
|
|
429
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
429
430
|
class: "ui-assets-icons-16",
|
|
430
431
|
xmlns: "http://www.w3.org/2000/svg",
|
|
431
432
|
width: "16",
|
|
432
433
|
height: "16",
|
|
433
434
|
fill: "none"
|
|
434
435
|
}), [
|
|
435
|
-
a.$attrs["svg-title"] ? (s(),
|
|
436
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ce, x(a.$attrs["svg-title"]), 1)) : f("", !0),
|
|
436
437
|
i[0] || (i[0] = m("path", {
|
|
437
438
|
fill: "#001222",
|
|
438
439
|
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"
|
|
439
440
|
}, null, -1))
|
|
440
441
|
], 16);
|
|
441
442
|
}
|
|
442
|
-
const
|
|
443
|
-
[b.AUDIO]:
|
|
444
|
-
[b.COMPRESSED]:
|
|
445
|
-
[b.GENERIC]:
|
|
446
|
-
[b.IMAGE]:
|
|
447
|
-
[b.PDF]:
|
|
448
|
-
[b.SLIDES]:
|
|
449
|
-
[b.TABLE]:
|
|
450
|
-
[b.TEXT]:
|
|
451
|
-
[b.VIDEO]:
|
|
443
|
+
const _e = /* @__PURE__ */ L(ke, [["render", $e]]), je = {
|
|
444
|
+
[b.AUDIO]: ye,
|
|
445
|
+
[b.COMPRESSED]: le,
|
|
446
|
+
[b.GENERIC]: Ni,
|
|
447
|
+
[b.IMAGE]: re,
|
|
448
|
+
[b.PDF]: Qi,
|
|
449
|
+
[b.SLIDES]: Yi,
|
|
450
|
+
[b.TABLE]: _e,
|
|
451
|
+
[b.TEXT]: te,
|
|
452
|
+
[b.VIDEO]: ge
|
|
452
453
|
};
|
|
453
|
-
function
|
|
454
|
-
return
|
|
454
|
+
function ze(a) {
|
|
455
|
+
return je[a.type];
|
|
455
456
|
}
|
|
456
|
-
function
|
|
457
|
+
function Re(a) {
|
|
457
458
|
switch (a.type) {
|
|
458
459
|
case b.COMPRESSED:
|
|
459
460
|
case b.GENERIC:
|
|
@@ -467,7 +468,7 @@ function je(a) {
|
|
|
467
468
|
return "green";
|
|
468
469
|
}
|
|
469
470
|
}
|
|
470
|
-
const
|
|
471
|
+
const Na = {
|
|
471
472
|
"en-US": {
|
|
472
473
|
cancel: "Cancel",
|
|
473
474
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -486,29 +487,29 @@ const Ua = {
|
|
|
486
487
|
remove: "Remover",
|
|
487
488
|
retry: "Tentar novamente"
|
|
488
489
|
}
|
|
489
|
-
},
|
|
490
|
+
}, Ee = { class: "b-file-uploader-file-card__details" }, Ie = { class: "b-file-uploader-file-card__info" }, Le = ["id"], Te = { class: "b-file-uploader-file-card__actions" }, Me = {
|
|
490
491
|
name: "file-uploader-file-card",
|
|
491
|
-
i18n: { messages:
|
|
492
|
-
},
|
|
493
|
-
...
|
|
492
|
+
i18n: { messages: Na }
|
|
493
|
+
}, Fe = /* @__PURE__ */ ca({
|
|
494
|
+
...Me,
|
|
494
495
|
props: {
|
|
495
496
|
file: {},
|
|
496
497
|
supportedFileTypes: { default: null }
|
|
497
498
|
},
|
|
498
499
|
emits: ["cancel", "remove", "retry"],
|
|
499
500
|
setup(a, { expose: i, emit: o }) {
|
|
500
|
-
const n = a, d = o, { t: l, locale: u } =
|
|
501
|
-
"b-file-uploader-file-card--error":
|
|
502
|
-
})),
|
|
503
|
-
[`b-file-uploader-file-card__icon--${
|
|
504
|
-
"b-file-uploader-file-card__icon--error":
|
|
505
|
-
})),
|
|
501
|
+
const n = a, d = o, { t: l, locale: u } = da({ messages: Na }), k = I(null), r = I(null), z = I(null), H = F("file-errors-section"), G = F("cancel-file-button"), B = F("remove-file-button"), A = F("retry-file-button"), v = I(n.file.state === S.SUCCESS), ea = h(() => URL.createObjectURL(n.file.data)), T = h(() => n.file.state === S.ERROR), ta = h(() => n.file.errors.includes(E.ERROR_LOAD)), W = h(() => n.file.errors.includes(E.ERROR_SIZE)), na = h(() => n.file.errors.includes(E.ERROR_DIMENSIONS)), oa = h(() => n.file.errors.includes(E.ERROR_TYPE)), Y = h(() => n.file.state === S.LOADING), U = h(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), X = h(() => Ua(u.value, n.file.data.size)), pa = I(), J = I(), K = Ti(pa, J), ra = h(() => ({
|
|
502
|
+
"b-file-uploader-file-card--error": T.value
|
|
503
|
+
})), Q = h(() => ({
|
|
504
|
+
[`b-file-uploader-file-card__icon--${Re(n.file)}`]: v.value,
|
|
505
|
+
"b-file-uploader-file-card__icon--error": T.value
|
|
506
|
+
})), la = h(() => Y.value ? $i : T.value ? Za : v.value ? ze(n.file) : bi);
|
|
506
507
|
ha(
|
|
507
508
|
() => n.file.state,
|
|
508
509
|
(j) => {
|
|
509
|
-
if (j ===
|
|
510
|
-
const
|
|
511
|
-
|
|
510
|
+
if (j === S.SUCCESS && !v.value) {
|
|
511
|
+
const D = setTimeout(() => {
|
|
512
|
+
v.value = !0, clearTimeout(D);
|
|
512
513
|
}, 1200);
|
|
513
514
|
}
|
|
514
515
|
}
|
|
@@ -518,8 +519,8 @@ const Ua = {
|
|
|
518
519
|
z.value.$el.focus();
|
|
519
520
|
return;
|
|
520
521
|
}
|
|
521
|
-
if (
|
|
522
|
-
|
|
522
|
+
if (k.value) {
|
|
523
|
+
k.value.$el.focus();
|
|
523
524
|
return;
|
|
524
525
|
}
|
|
525
526
|
if (r.value) {
|
|
@@ -529,21 +530,21 @@ const Ua = {
|
|
|
529
530
|
}
|
|
530
531
|
return i({
|
|
531
532
|
focus: ma
|
|
532
|
-
}), (j,
|
|
533
|
-
class: q(["b-file-uploader-file-card",
|
|
533
|
+
}), (j, D) => (s(), g("div", {
|
|
534
|
+
class: q(["b-file-uploader-file-card", ra.value])
|
|
534
535
|
}, [
|
|
535
|
-
m("div",
|
|
536
|
-
m("div",
|
|
537
|
-
O(t(
|
|
538
|
-
name: t(
|
|
539
|
-
"show-file-icon":
|
|
536
|
+
m("div", Ee, [
|
|
537
|
+
m("div", Ie, [
|
|
538
|
+
O(t(Li), {
|
|
539
|
+
name: t(Aa) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
540
|
+
"show-file-icon": v.value
|
|
540
541
|
}, {
|
|
541
|
-
default:
|
|
542
|
-
(s(),
|
|
543
|
-
key: JSON.stringify(
|
|
542
|
+
default: w(() => [
|
|
543
|
+
(s(), y(ri(la.value), {
|
|
544
|
+
key: JSON.stringify(la.value),
|
|
544
545
|
small: "",
|
|
545
546
|
"aria-hidden": "true",
|
|
546
|
-
class: q(["b-file-uploader-file-card__icon",
|
|
547
|
+
class: q(["b-file-uploader-file-card__icon", Q.value]),
|
|
547
548
|
"data-testid": "file-uploader-item-icon"
|
|
548
549
|
}, null, 8, ["class"]))
|
|
549
550
|
]),
|
|
@@ -551,136 +552,136 @@ const Ua = {
|
|
|
551
552
|
}, 8, ["name", "show-file-icon"]),
|
|
552
553
|
m("div", {
|
|
553
554
|
ref_key: "fileNameContainerRef",
|
|
554
|
-
ref:
|
|
555
|
+
ref: J,
|
|
555
556
|
class: "b-file-uploader-file-card__file-name"
|
|
556
557
|
}, [
|
|
557
|
-
O(t(
|
|
558
|
+
O(t(Ci), {
|
|
558
559
|
"aria-hidden": "true",
|
|
559
560
|
tabindex: "-1",
|
|
560
561
|
download: j.file.data.name,
|
|
561
|
-
to:
|
|
562
|
+
to: ea.value,
|
|
562
563
|
"disable-typography": "",
|
|
563
564
|
"is-not-routing": "",
|
|
564
565
|
variant: "quiet"
|
|
565
566
|
}, {
|
|
566
|
-
default:
|
|
567
|
-
|
|
567
|
+
default: w(() => [
|
|
568
|
+
Ba((s(), y(t(R), {
|
|
568
569
|
ref_key: "fileNameRef",
|
|
569
|
-
ref:
|
|
570
|
+
ref: pa,
|
|
570
571
|
stronger: "",
|
|
571
572
|
el: "span"
|
|
572
573
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
_(
|
|
574
|
+
default: w(() => [
|
|
575
|
+
_(x(j.file.data.name), 1)
|
|
575
576
|
]),
|
|
576
577
|
_: 1
|
|
577
578
|
})), [
|
|
578
|
-
[t(
|
|
579
|
+
[t(ki), t(K) ? j.file.data.name : null]
|
|
579
580
|
])
|
|
580
581
|
]),
|
|
581
582
|
_: 1
|
|
582
583
|
}, 8, ["download", "to"])
|
|
583
584
|
], 512),
|
|
584
|
-
j.file.progress ? (s(),
|
|
585
|
+
j.file.progress ? (s(), y(t(R), {
|
|
585
586
|
key: 0,
|
|
586
587
|
el: "span"
|
|
587
588
|
}, {
|
|
588
|
-
default:
|
|
589
|
-
_(
|
|
589
|
+
default: w(() => [
|
|
590
|
+
_(x(U.value), 1)
|
|
590
591
|
]),
|
|
591
592
|
_: 1
|
|
592
|
-
})) : j.file.data.size ? (s(),
|
|
593
|
+
})) : j.file.data.size ? (s(), y(t(R), {
|
|
593
594
|
key: 1,
|
|
594
595
|
class: "b-file-uploader-file-card__file-size",
|
|
595
596
|
"aria-hidden": "true",
|
|
596
597
|
el: "span"
|
|
597
598
|
}, {
|
|
598
|
-
default:
|
|
599
|
-
_(
|
|
599
|
+
default: w(() => [
|
|
600
|
+
_(x(X.value), 1)
|
|
600
601
|
]),
|
|
601
602
|
_: 1
|
|
602
|
-
})) :
|
|
603
|
+
})) : f("", !0)
|
|
603
604
|
]),
|
|
604
|
-
|
|
605
|
+
W.value || na.value || oa.value && j.supportedFileTypes ? (s(), g("div", {
|
|
605
606
|
key: 0,
|
|
606
|
-
id: t(
|
|
607
|
+
id: t(H),
|
|
607
608
|
role: "alert"
|
|
608
609
|
}, [
|
|
609
|
-
|
|
610
|
+
W.value ? (s(), y(t(R), {
|
|
610
611
|
key: 0,
|
|
611
612
|
class: "b-file-uploader-file-card__error-message"
|
|
612
613
|
}, {
|
|
613
|
-
default:
|
|
614
|
-
_(
|
|
614
|
+
default: w(() => [
|
|
615
|
+
_(x(t(l)("fileExceedsSizeLimit")), 1)
|
|
615
616
|
]),
|
|
616
617
|
_: 1
|
|
617
|
-
})) :
|
|
618
|
-
na.value ? (s(),
|
|
618
|
+
})) : f("", !0),
|
|
619
|
+
na.value ? (s(), y(t(R), {
|
|
619
620
|
key: 1,
|
|
620
621
|
class: "b-file-uploader-file-card__error-message"
|
|
621
622
|
}, {
|
|
622
|
-
default:
|
|
623
|
-
_(
|
|
623
|
+
default: w(() => [
|
|
624
|
+
_(x(t(l)("imageDimensionsExceedLimits")), 1)
|
|
624
625
|
]),
|
|
625
626
|
_: 1
|
|
626
|
-
})) :
|
|
627
|
-
|
|
627
|
+
})) : f("", !0),
|
|
628
|
+
oa.value && j.supportedFileTypes ? (s(), y(t(R), {
|
|
628
629
|
key: 2,
|
|
629
630
|
class: "b-file-uploader-file-card__error-message"
|
|
630
631
|
}, {
|
|
631
|
-
default:
|
|
632
|
-
_(
|
|
632
|
+
default: w(() => [
|
|
633
|
+
_(x(t(l)("fileTypeMustBe", { list: j.supportedFileTypes })), 1)
|
|
633
634
|
]),
|
|
634
635
|
_: 1
|
|
635
|
-
})) :
|
|
636
|
-
], 8,
|
|
636
|
+
})) : f("", !0)
|
|
637
|
+
], 8, Le)) : f("", !0)
|
|
637
638
|
]),
|
|
638
|
-
m("div",
|
|
639
|
-
|
|
639
|
+
m("div", Te, [
|
|
640
|
+
ta.value ? (s(), y(t(ga), {
|
|
640
641
|
key: 0,
|
|
641
642
|
ref_key: "retryFileButtonRef",
|
|
642
643
|
ref: z,
|
|
643
|
-
"aria-labelledby": `${t(
|
|
644
|
+
"aria-labelledby": `${t(H)} ${t(A)}`,
|
|
644
645
|
variant: "tertiary",
|
|
645
|
-
onClick:
|
|
646
|
+
onClick: D[0] || (D[0] = (N) => d("retry"))
|
|
646
647
|
}, {
|
|
647
|
-
iconLeft:
|
|
648
|
-
O(t(
|
|
649
|
-
id: t(
|
|
648
|
+
iconLeft: w(() => [
|
|
649
|
+
O(t(yi), {
|
|
650
|
+
id: t(A),
|
|
650
651
|
"svg-title": `${t(l)("retry")} - ${j.file.data.name} `
|
|
651
652
|
}, null, 8, ["id", "svg-title"])
|
|
652
653
|
]),
|
|
653
|
-
default:
|
|
654
|
-
_(" " +
|
|
654
|
+
default: w(() => [
|
|
655
|
+
_(" " + x(t(l)("retry")), 1)
|
|
655
656
|
]),
|
|
656
657
|
_: 1
|
|
657
|
-
}, 8, ["aria-labelledby"])) :
|
|
658
|
-
|
|
658
|
+
}, 8, ["aria-labelledby"])) : f("", !0),
|
|
659
|
+
Y.value || T.value ? (s(), y(t(ga), {
|
|
659
660
|
key: 1,
|
|
660
661
|
ref_key: "cancelFileButtonRef",
|
|
661
662
|
ref: r,
|
|
662
|
-
"aria-labelledby": `${t(
|
|
663
|
+
"aria-labelledby": `${t(H)} ${t(G)}`,
|
|
663
664
|
variant: "tertiary",
|
|
664
|
-
onClick:
|
|
665
|
+
onClick: D[1] || (D[1] = (N) => d("cancel"))
|
|
665
666
|
}, {
|
|
666
|
-
iconLeft:
|
|
667
|
-
O(t(
|
|
668
|
-
id: t(
|
|
667
|
+
iconLeft: w(() => [
|
|
668
|
+
O(t(wi), {
|
|
669
|
+
id: t(G),
|
|
669
670
|
"svg-title": `${t(l)("cancel")} - ${j.file.data.name}`
|
|
670
671
|
}, null, 8, ["id", "svg-title"])
|
|
671
672
|
]),
|
|
672
673
|
_: 1
|
|
673
|
-
}, 8, ["aria-labelledby"])) : (s(),
|
|
674
|
+
}, 8, ["aria-labelledby"])) : (s(), y(t(ga), {
|
|
674
675
|
key: 2,
|
|
675
676
|
ref_key: "removeFileButtonRef",
|
|
676
|
-
ref:
|
|
677
|
-
"aria-labelledby": `${t(
|
|
677
|
+
ref: k,
|
|
678
|
+
"aria-labelledby": `${t(H)} ${t(B)}`,
|
|
678
679
|
variant: "tertiary",
|
|
679
|
-
onClick:
|
|
680
|
+
onClick: D[2] || (D[2] = (N) => d("remove"))
|
|
680
681
|
}, {
|
|
681
|
-
iconLeft:
|
|
682
|
-
O(t(
|
|
683
|
-
id: t(
|
|
682
|
+
iconLeft: w(() => [
|
|
683
|
+
O(t(hi), {
|
|
684
|
+
id: t(B),
|
|
684
685
|
"svg-title": `${t(l)("remove")} - ${j.file.data.name}`
|
|
685
686
|
}, null, 8, ["id", "svg-title"])
|
|
686
687
|
]),
|
|
@@ -689,7 +690,7 @@ const Ua = {
|
|
|
689
690
|
])
|
|
690
691
|
], 2));
|
|
691
692
|
}
|
|
692
|
-
}),
|
|
693
|
+
}), Se = /* @__PURE__ */ L(Fe, [["__scopeId", "data-v-e2340e06"]]), Pa = {
|
|
693
694
|
"en-US": {
|
|
694
695
|
maxFileSize: "Max file size: {size}",
|
|
695
696
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -698,10 +699,10 @@ const Ua = {
|
|
|
698
699
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
699
700
|
supportedFileTypes: "Supported file types: {list}"
|
|
700
701
|
}
|
|
701
|
-
},
|
|
702
|
-
i18n: { messages:
|
|
703
|
-
},
|
|
704
|
-
...
|
|
702
|
+
}, Ve = {
|
|
703
|
+
i18n: { messages: Pa }
|
|
704
|
+
}, De = /* @__PURE__ */ ca({
|
|
705
|
+
...Ve,
|
|
705
706
|
__name: "file-uploader-restrictions",
|
|
706
707
|
props: {
|
|
707
708
|
condensed: { type: Boolean, default: null },
|
|
@@ -712,7 +713,7 @@ const Ua = {
|
|
|
712
713
|
supportedFileTypes: { default: null }
|
|
713
714
|
},
|
|
714
715
|
setup(a) {
|
|
715
|
-
const i = a, { t: o, tc: p, n, locale: d } =
|
|
716
|
+
const i = a, { t: o, tc: p, n, locale: d } = da({ messages: Pa }), l = h(() => ({
|
|
716
717
|
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
717
718
|
"b-file-uploader-restrictions--disabled": i.disabled
|
|
718
719
|
}));
|
|
@@ -721,7 +722,7 @@ const Ua = {
|
|
|
721
722
|
"b-file-uploader-restrictions--error": r
|
|
722
723
|
};
|
|
723
724
|
}
|
|
724
|
-
const
|
|
725
|
+
const k = h(() => {
|
|
725
726
|
if (!i.maxDimensions)
|
|
726
727
|
return null;
|
|
727
728
|
const {
|
|
@@ -729,48 +730,48 @@ const Ua = {
|
|
|
729
730
|
} = i.maxDimensions;
|
|
730
731
|
return r && z ? o("maxImageDimensions", { width: n(r), height: n(z) }) : r ? o("maxImageWidth", { width: n(r) }) : z ? o("maxImageHeight", { height: n(z) }) : null;
|
|
731
732
|
});
|
|
732
|
-
return (r, z) => (s(),
|
|
733
|
+
return (r, z) => (s(), g("div", {
|
|
733
734
|
class: q(["b-file-uploader-restrictions", l.value])
|
|
734
735
|
}, [
|
|
735
|
-
r.supportedFileTypes ? (s(),
|
|
736
|
+
r.supportedFileTypes ? (s(), y(t(R), {
|
|
736
737
|
key: 0,
|
|
737
738
|
class: q(u(r.supportedFileTypes.error))
|
|
738
739
|
}, {
|
|
739
|
-
default:
|
|
740
|
-
_(
|
|
740
|
+
default: w(() => [
|
|
741
|
+
_(x(t(o)("supportedFileTypes", { list: r.supportedFileTypes.value })), 1)
|
|
741
742
|
]),
|
|
742
743
|
_: 1
|
|
743
|
-
}, 8, ["class"])) :
|
|
744
|
-
r.maxSize ? (s(),
|
|
744
|
+
}, 8, ["class"])) : f("", !0),
|
|
745
|
+
r.maxSize ? (s(), y(t(R), {
|
|
745
746
|
key: 1,
|
|
746
747
|
class: q(u(r.maxSize.error))
|
|
747
748
|
}, {
|
|
748
|
-
default:
|
|
749
|
-
_(
|
|
749
|
+
default: w(() => [
|
|
750
|
+
_(x(t(o)("maxFileSize", { size: t(Ua)(t(d), r.maxSize.value) })), 1)
|
|
750
751
|
]),
|
|
751
752
|
_: 1
|
|
752
|
-
}, 8, ["class"])) :
|
|
753
|
-
r.maxDimensions ? (s(),
|
|
753
|
+
}, 8, ["class"])) : f("", !0),
|
|
754
|
+
r.maxDimensions ? (s(), y(t(R), {
|
|
754
755
|
key: 2,
|
|
755
756
|
class: q(u(r.maxDimensions.error))
|
|
756
757
|
}, {
|
|
757
|
-
default:
|
|
758
|
-
_(
|
|
758
|
+
default: w(() => [
|
|
759
|
+
_(x(k.value), 1)
|
|
759
760
|
]),
|
|
760
761
|
_: 1
|
|
761
|
-
}, 8, ["class"])) :
|
|
762
|
-
r.maxCount ? (s(),
|
|
762
|
+
}, 8, ["class"])) : f("", !0),
|
|
763
|
+
r.maxCount ? (s(), y(t(R), {
|
|
763
764
|
key: 3,
|
|
764
765
|
class: q(u(r.maxCount.error))
|
|
765
766
|
}, {
|
|
766
|
-
default:
|
|
767
|
-
_(
|
|
767
|
+
default: w(() => [
|
|
768
|
+
_(x(t(p)("maxUpload", r.maxCount.value, { count: t(n)(r.maxCount.value) })), 1)
|
|
768
769
|
]),
|
|
769
770
|
_: 1
|
|
770
|
-
}, 8, ["class"])) :
|
|
771
|
+
}, 8, ["class"])) : f("", !0)
|
|
771
772
|
], 2));
|
|
772
773
|
}
|
|
773
|
-
}),
|
|
774
|
+
}), Ha = /* @__PURE__ */ L(De, [["__scopeId", "data-v-6ad327db"]]), Ga = {
|
|
774
775
|
"application/prs.cww": ["cww"],
|
|
775
776
|
"application/prs.xsf+xml": ["xsf"],
|
|
776
777
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1469,8 +1470,8 @@ const Ua = {
|
|
|
1469
1470
|
"video/x-smv": ["smv"],
|
|
1470
1471
|
"x-conference/x-cooltalk": ["ice"]
|
|
1471
1472
|
};
|
|
1472
|
-
Object.freeze(
|
|
1473
|
-
const
|
|
1473
|
+
Object.freeze(Ga);
|
|
1474
|
+
const Wa = {
|
|
1474
1475
|
"application/andrew-inset": ["ez"],
|
|
1475
1476
|
"application/appinstaller": ["appinstaller"],
|
|
1476
1477
|
"application/applixware": ["aw"],
|
|
@@ -1822,31 +1823,31 @@ const Ga = {
|
|
|
1822
1823
|
"video/quicktime": ["qt", "mov"],
|
|
1823
1824
|
"video/webm": ["webm"]
|
|
1824
1825
|
};
|
|
1825
|
-
Object.freeze(
|
|
1826
|
+
Object.freeze(Wa);
|
|
1826
1827
|
var M = function(a, i, o, p) {
|
|
1827
1828
|
if (o === "a" && !p) throw new TypeError("Private accessor was defined without a getter");
|
|
1828
1829
|
if (typeof i == "function" ? a !== i || !p : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1829
1830
|
return o === "m" ? p : o === "a" ? p.call(a) : p ? p.value : i.get(a);
|
|
1830
|
-
},
|
|
1831
|
-
class
|
|
1831
|
+
}, P, ia, Z;
|
|
1832
|
+
class Oe {
|
|
1832
1833
|
constructor(...i) {
|
|
1833
|
-
|
|
1834
|
+
P.set(this, /* @__PURE__ */ new Map()), ia.set(this, /* @__PURE__ */ new Map()), Z.set(this, /* @__PURE__ */ new Map());
|
|
1834
1835
|
for (const o of i)
|
|
1835
1836
|
this.define(o);
|
|
1836
1837
|
}
|
|
1837
1838
|
define(i, o = !1) {
|
|
1838
1839
|
for (let [p, n] of Object.entries(i)) {
|
|
1839
|
-
p = p.toLowerCase(), n = n.map((u) => u.toLowerCase()), M(this,
|
|
1840
|
-
const d = M(this,
|
|
1840
|
+
p = p.toLowerCase(), n = n.map((u) => u.toLowerCase()), M(this, Z, "f").has(p) || M(this, Z, "f").set(p, /* @__PURE__ */ new Set());
|
|
1841
|
+
const d = M(this, Z, "f").get(p);
|
|
1841
1842
|
let l = !0;
|
|
1842
1843
|
for (let u of n) {
|
|
1843
|
-
const
|
|
1844
|
-
if (u =
|
|
1844
|
+
const k = u.startsWith("*");
|
|
1845
|
+
if (u = k ? u.slice(1) : u, d == null || d.add(u), l && M(this, ia, "f").set(p, u), l = !1, k)
|
|
1845
1846
|
continue;
|
|
1846
|
-
const r = M(this,
|
|
1847
|
+
const r = M(this, P, "f").get(u);
|
|
1847
1848
|
if (r && r != p && !o)
|
|
1848
1849
|
throw new Error(`"${p} -> ${u}" conflicts with "${r} -> ${u}". Pass \`force=true\` to override this definition.`);
|
|
1849
|
-
M(this,
|
|
1850
|
+
M(this, P, "f").set(u, p);
|
|
1850
1851
|
}
|
|
1851
1852
|
}
|
|
1852
1853
|
return this;
|
|
@@ -1855,32 +1856,32 @@ class Ve {
|
|
|
1855
1856
|
if (typeof i != "string")
|
|
1856
1857
|
return null;
|
|
1857
1858
|
const o = i.replace(/^.*[/\\]/, "").toLowerCase(), p = o.replace(/^.*\./, "").toLowerCase(), n = o.length < i.length;
|
|
1858
|
-
return !(p.length < o.length - 1) && n ? null : M(this,
|
|
1859
|
+
return !(p.length < o.length - 1) && n ? null : M(this, P, "f").get(p) ?? null;
|
|
1859
1860
|
}
|
|
1860
1861
|
getExtension(i) {
|
|
1861
1862
|
var o;
|
|
1862
1863
|
return typeof i != "string" ? null : (i = (o = i == null ? void 0 : i.split) == null ? void 0 : o.call(i, ";")[0], (i && M(this, ia, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1863
1864
|
}
|
|
1864
1865
|
getAllExtensions(i) {
|
|
1865
|
-
return typeof i != "string" ? null : M(this,
|
|
1866
|
+
return typeof i != "string" ? null : M(this, Z, "f").get(i.toLowerCase()) ?? null;
|
|
1866
1867
|
}
|
|
1867
1868
|
_freeze() {
|
|
1868
1869
|
this.define = () => {
|
|
1869
1870
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1870
1871
|
}, Object.freeze(this);
|
|
1871
|
-
for (const i of M(this,
|
|
1872
|
+
for (const i of M(this, Z, "f").values())
|
|
1872
1873
|
Object.freeze(i);
|
|
1873
1874
|
return this;
|
|
1874
1875
|
}
|
|
1875
1876
|
_getTestState() {
|
|
1876
1877
|
return {
|
|
1877
|
-
types: M(this,
|
|
1878
|
+
types: M(this, P, "f"),
|
|
1878
1879
|
extensions: M(this, ia, "f")
|
|
1879
1880
|
};
|
|
1880
1881
|
}
|
|
1881
1882
|
}
|
|
1882
|
-
|
|
1883
|
-
const
|
|
1883
|
+
P = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap();
|
|
1884
|
+
const Ya = new Oe(Wa, Ga)._freeze(), wa = {
|
|
1884
1885
|
"en-US": {
|
|
1885
1886
|
audioFiles: "audio files",
|
|
1886
1887
|
browseFiles: "Browse files",
|
|
@@ -1893,11 +1894,11 @@ const Wa = new Ve(Ga, Pa)._freeze(), wa = {
|
|
|
1893
1894
|
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1894
1895
|
}
|
|
1895
1896
|
};
|
|
1896
|
-
function
|
|
1897
|
-
return a.includes("/") ? `.${
|
|
1897
|
+
function He(a) {
|
|
1898
|
+
return a.includes("/") ? `.${Ya.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1898
1899
|
}
|
|
1899
|
-
function
|
|
1900
|
-
const { locale: i, t: o } =
|
|
1900
|
+
function qe(a) {
|
|
1901
|
+
const { locale: i, t: o } = da({ messages: wa });
|
|
1901
1902
|
return { supportedFileTypeList: h(() => {
|
|
1902
1903
|
const n = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
1903
1904
|
return a != null && a.value ? n.format(
|
|
@@ -1910,16 +1911,16 @@ function Oe(a) {
|
|
|
1910
1911
|
case "video/*":
|
|
1911
1912
|
return o("videoFiles");
|
|
1912
1913
|
default:
|
|
1913
|
-
return
|
|
1914
|
+
return He(d);
|
|
1914
1915
|
}
|
|
1915
1916
|
})
|
|
1916
1917
|
) : null;
|
|
1917
1918
|
}) };
|
|
1918
1919
|
}
|
|
1919
|
-
function
|
|
1920
|
-
return
|
|
1920
|
+
function Be(a) {
|
|
1921
|
+
return Ya.getType(a) ?? a;
|
|
1921
1922
|
}
|
|
1922
|
-
function
|
|
1923
|
+
function Ze({ maxCount: a, accept: i }) {
|
|
1923
1924
|
const o = ba({
|
|
1924
1925
|
invalidTypes: !1,
|
|
1925
1926
|
partiallyInvalidTypes: !1,
|
|
@@ -1927,21 +1928,21 @@ function qe({ maxCount: a, accept: i }) {
|
|
|
1927
1928
|
}), p = ba({
|
|
1928
1929
|
dragging: !1,
|
|
1929
1930
|
error: !1
|
|
1930
|
-
}), n = h(() => i.value ? i.value.split(",").map((
|
|
1931
|
+
}), n = h(() => i.value ? i.value.split(",").map((k) => Be(k.trim().toLocaleLowerCase())) : void 0);
|
|
1931
1932
|
function d() {
|
|
1932
1933
|
p.dragging = !1, p.error = !1, o.invalidTypes = !1, o.partiallyInvalidTypes = !1, o.maxCountOverflow = !1;
|
|
1933
1934
|
}
|
|
1934
|
-
function l(u,
|
|
1935
|
-
if (p.dragging = !0, (!
|
|
1935
|
+
function l(u, k) {
|
|
1936
|
+
if (p.dragging = !0, (!k.dataTransfer.types.includes("Files") || u > a.value) && (o.maxCountOverflow = !0, p.error = !0), !n.value)
|
|
1936
1937
|
return;
|
|
1937
1938
|
let r = 0;
|
|
1938
|
-
for (const z of
|
|
1939
|
+
for (const z of k.dataTransfer.items)
|
|
1939
1940
|
n.value.includes(z.type) && r++;
|
|
1940
1941
|
if (r === 0) {
|
|
1941
1942
|
p.error = !0, o.invalidTypes = !0;
|
|
1942
1943
|
return;
|
|
1943
1944
|
}
|
|
1944
|
-
!o.invalidTypes && r !==
|
|
1945
|
+
!o.invalidTypes && r !== k.dataTransfer.items.length && (p.error = !0, o.partiallyInvalidTypes = !0);
|
|
1945
1946
|
}
|
|
1946
1947
|
return {
|
|
1947
1948
|
dragState: p,
|
|
@@ -1950,14 +1951,14 @@ function qe({ maxCount: a, accept: i }) {
|
|
|
1950
1951
|
onDragEnterValidations: l
|
|
1951
1952
|
};
|
|
1952
1953
|
}
|
|
1953
|
-
const
|
|
1954
|
+
const Ae = ["id", "accept", "disabled", "multiple"], Ue = ["id"], Ne = ["aria-labelledby", "tabindex"], Pe = {
|
|
1954
1955
|
class: "b-file-uploader__icon",
|
|
1955
1956
|
"aria-hidden": "true"
|
|
1956
|
-
},
|
|
1957
|
+
}, Ge = { class: "b-file-uploader__files" }, We = {
|
|
1957
1958
|
model: { prop: "modelValue" },
|
|
1958
1959
|
i18n: { messages: wa }
|
|
1959
|
-
},
|
|
1960
|
-
...
|
|
1960
|
+
}, Ye = /* @__PURE__ */ ca({
|
|
1961
|
+
...We,
|
|
1961
1962
|
__name: "file-uploader",
|
|
1962
1963
|
props: {
|
|
1963
1964
|
accept: { default: null },
|
|
@@ -1974,23 +1975,23 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
1974
1975
|
required: { type: Boolean },
|
|
1975
1976
|
tooltipText: { default: null }
|
|
1976
1977
|
},
|
|
1977
|
-
emits: ["change", "input", "update:
|
|
1978
|
+
emits: ["change", "input", "update:model-value", "error:upload"],
|
|
1978
1979
|
setup(a, { emit: i }) {
|
|
1979
|
-
const { t: o, tc: p, n } =
|
|
1980
|
-
function
|
|
1980
|
+
const { t: o, tc: p, n } = da({ messages: wa }), d = i, l = a, { emitValue: u } = gi(d);
|
|
1981
|
+
function k(e) {
|
|
1981
1982
|
return !!e && typeof e.length == "number" && typeof e.item == "function";
|
|
1982
1983
|
}
|
|
1983
|
-
|
|
1984
|
-
|
|
1984
|
+
qa(() => {
|
|
1985
|
+
k(l.modelValue) || xi(
|
|
1985
1986
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1986
1987
|
"Use FileList instead.",
|
|
1987
1988
|
"2.0.0"
|
|
1988
1989
|
);
|
|
1989
1990
|
});
|
|
1990
|
-
const { supportedFileTypeList:
|
|
1991
|
-
const e = l.condensed ? "" : `${
|
|
1992
|
-
return `${e} ${c} ${C} ${
|
|
1993
|
-
}), { dragState: Y, dragErrors: U, resetDragState: X, onDragEnterValidations:
|
|
1991
|
+
const { supportedFileTypeList: r } = qe(xa(l, "accept")), z = F("browse-button"), H = F("custom-text"), G = F("drop-files-text"), B = F("comma-text"), A = F("file-uploader-restrictions"), v = I(null), ea = I([]), T = I(null), ta = I(null), W = F("input"), na = F("input-error"), oa = h(() => {
|
|
1992
|
+
const e = l.condensed ? "" : `${G} ${B}`, c = l.description ? `${H} ${B}` : "", C = `${A} ${B}`;
|
|
1993
|
+
return `${e} ${c} ${C} ${z}`;
|
|
1994
|
+
}), { dragState: Y, dragErrors: U, resetDragState: X, onDragEnterValidations: pa } = Ze({
|
|
1994
1995
|
accept: xa(l, "accept"),
|
|
1995
1996
|
maxCount: xa(l, "maxCount")
|
|
1996
1997
|
}), J = h(() => {
|
|
@@ -1998,161 +1999,161 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
1998
1999
|
return {
|
|
1999
2000
|
condensed: l.condensed,
|
|
2000
2001
|
disabled: l.disabled,
|
|
2001
|
-
maxCount:
|
|
2002
|
+
maxCount: Q.value ? {
|
|
2002
2003
|
value: l.maxCount,
|
|
2003
|
-
error: U.maxCountOverflow ||
|
|
2004
|
+
error: U.maxCountOverflow || ya.value
|
|
2004
2005
|
} : null,
|
|
2005
2006
|
maxDimensions: l.maxDimensions ? {
|
|
2006
2007
|
value: l.maxDimensions,
|
|
2007
|
-
error: (e =
|
|
2008
|
+
error: (e = v.value) == null ? void 0 : e.some(($) => $.errors.includes(E.ERROR_DIMENSIONS))
|
|
2008
2009
|
} : null,
|
|
2009
2010
|
maxSize: l.maxSize ? {
|
|
2010
2011
|
value: l.maxSize,
|
|
2011
|
-
error: (c =
|
|
2012
|
+
error: (c = v.value) == null ? void 0 : c.some(($) => $.errors.includes(E.ERROR_SIZE))
|
|
2012
2013
|
} : null,
|
|
2013
|
-
supportedFileTypes:
|
|
2014
|
-
value:
|
|
2015
|
-
error: U.invalidTypes || U.partiallyInvalidTypes || ((C =
|
|
2014
|
+
supportedFileTypes: r.value ? {
|
|
2015
|
+
value: r.value,
|
|
2016
|
+
error: U.invalidTypes || U.partiallyInvalidTypes || ((C = v.value) == null ? void 0 : C.some(($) => $.errors.includes(E.ERROR_TYPE)))
|
|
2016
2017
|
} : null
|
|
2017
2018
|
};
|
|
2018
|
-
}),
|
|
2019
|
-
[`b-file-uploader--${
|
|
2020
|
-
[`b-file-uploader--${
|
|
2021
|
-
[`b-file-uploader--${
|
|
2019
|
+
}), K = I(), ra = h(() => ({
|
|
2020
|
+
[`b-file-uploader--${sa.DISABLED}`]: l.disabled,
|
|
2021
|
+
[`b-file-uploader--${sa.DRAG_OVER}`]: Y.dragging,
|
|
2022
|
+
[`b-file-uploader--${sa.ERROR}`]: N.value,
|
|
2022
2023
|
"b-file-uploader--condensed": l.condensed
|
|
2023
|
-
})),
|
|
2024
|
+
})), Q = h(() => l.maxCount > 1), la = h(() => {
|
|
2024
2025
|
var e;
|
|
2025
|
-
return l.maxCount && ((e =
|
|
2026
|
-
}),
|
|
2026
|
+
return l.maxCount && ((e = v.value) == null ? void 0 : e.length) >= l.maxCount;
|
|
2027
|
+
}), ma = h(() => {
|
|
2027
2028
|
var e;
|
|
2028
|
-
return (e =
|
|
2029
|
-
}),
|
|
2030
|
-
|
|
2029
|
+
return (e = v.value) == null ? void 0 : e.some((c) => c.state === "loading");
|
|
2030
|
+
}), j = (e) => (c) => {
|
|
2031
|
+
ea.value[e] = c;
|
|
2031
2032
|
};
|
|
2032
|
-
function
|
|
2033
|
+
function D(e) {
|
|
2033
2034
|
if (e) {
|
|
2034
|
-
|
|
2035
|
-
const c =
|
|
2036
|
-
d("change", c),
|
|
2035
|
+
ni(e), oi(e);
|
|
2036
|
+
const c = pi(e);
|
|
2037
|
+
d("change", c), u(c);
|
|
2037
2038
|
} else
|
|
2038
|
-
d("change"
|
|
2039
|
+
d("change", void 0), u(void 0);
|
|
2039
2040
|
}
|
|
2040
|
-
const
|
|
2041
|
+
const N = h(() => !!l.errorMessage || Y.error), ya = h(() => {
|
|
2041
2042
|
var e;
|
|
2042
|
-
return ((e =
|
|
2043
|
-
}),
|
|
2043
|
+
return ((e = v.value) == null ? void 0 : e.length) > l.maxCount;
|
|
2044
|
+
}), Xa = I(!1), Ja = h(() => {
|
|
2044
2045
|
var e;
|
|
2045
|
-
return (e =
|
|
2046
|
+
return (e = v.value) == null ? void 0 : e.some((c) => c.state === "error");
|
|
2046
2047
|
});
|
|
2047
|
-
ha(
|
|
2048
|
-
|
|
2048
|
+
ha(Ja, (e) => {
|
|
2049
|
+
ma.value || d("error:upload", e);
|
|
2049
2050
|
});
|
|
2050
2051
|
async function ua() {
|
|
2051
2052
|
var e;
|
|
2052
|
-
if (await
|
|
2053
|
-
(e =
|
|
2053
|
+
if (await vi(), v.value.length === l.maxCount) {
|
|
2054
|
+
(e = ea.value[0]) == null || e.focus();
|
|
2054
2055
|
return;
|
|
2055
2056
|
}
|
|
2056
|
-
|
|
2057
|
+
ta.value.focus();
|
|
2057
2058
|
}
|
|
2058
|
-
async function
|
|
2059
|
-
|
|
2059
|
+
async function ka(e) {
|
|
2060
|
+
v.value = v.value.filter(({ id: c }) => c !== e.id), await ua(), D(v.value);
|
|
2060
2061
|
}
|
|
2061
2062
|
function va(e) {
|
|
2062
2063
|
const c = ba({
|
|
2063
|
-
id:
|
|
2064
|
+
id: F("file"),
|
|
2064
2065
|
data: e,
|
|
2065
2066
|
errors: [],
|
|
2066
2067
|
progress: null,
|
|
2067
|
-
state:
|
|
2068
|
-
type:
|
|
2068
|
+
state: S.LOADING,
|
|
2069
|
+
type: Di(e)
|
|
2069
2070
|
});
|
|
2070
|
-
return
|
|
2071
|
+
return Hi(c, l.accept, l.maxDimensions), c;
|
|
2071
2072
|
}
|
|
2072
|
-
function
|
|
2073
|
+
function Ka(e) {
|
|
2073
2074
|
var c;
|
|
2074
|
-
((c =
|
|
2075
|
+
((c = v.value) == null ? void 0 : c.length) === l.maxCount && e.preventDefault();
|
|
2075
2076
|
}
|
|
2076
|
-
async function
|
|
2077
|
+
async function Ca(e) {
|
|
2077
2078
|
if (l.maxCount === 1 && e.length > l.maxCount) {
|
|
2078
2079
|
fa(), X();
|
|
2079
2080
|
return;
|
|
2080
2081
|
}
|
|
2081
|
-
|
|
2082
|
+
Q.value ? v.value = [...v.value || [], ...Array.from(e).map((c) => va(c))] : (v.value = [va(e[0])], await ua()), D(v.value);
|
|
2082
2083
|
}
|
|
2083
|
-
function
|
|
2084
|
+
function Qa(e) {
|
|
2084
2085
|
var C, $;
|
|
2085
2086
|
if (l.disabled)
|
|
2086
2087
|
return;
|
|
2087
|
-
|
|
2088
|
-
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + ((($ =
|
|
2089
|
-
|
|
2088
|
+
K.value = e.target;
|
|
2089
|
+
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + ((($ = v.value) == null ? void 0 : $.length) ?? 0);
|
|
2090
|
+
pa(c, e);
|
|
2090
2091
|
}
|
|
2091
2092
|
function fa() {
|
|
2092
|
-
|
|
2093
|
-
}
|
|
2094
|
-
function Qa(e) {
|
|
2095
|
-
G.value === e.target && (fa(), X());
|
|
2093
|
+
K.value = null;
|
|
2096
2094
|
}
|
|
2097
2095
|
function ai(e) {
|
|
2096
|
+
K.value === e.target && (fa(), X());
|
|
2097
|
+
}
|
|
2098
|
+
function ii(e) {
|
|
2098
2099
|
e.preventDefault(), l.disabled && (e.dataTransfer.dropEffect = "none");
|
|
2099
2100
|
}
|
|
2100
|
-
async function
|
|
2101
|
+
async function ei(e) {
|
|
2101
2102
|
var c;
|
|
2102
|
-
l.disabled || (!U.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) &&
|
|
2103
|
+
l.disabled || (!U.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && Ca(e.dataTransfer.files), fa(), X());
|
|
2103
2104
|
}
|
|
2104
|
-
async function
|
|
2105
|
+
async function ti() {
|
|
2105
2106
|
var e;
|
|
2106
|
-
(e =
|
|
2107
|
+
(e = T.value.files) != null && e.length && Ca(T.value.files), T.value.value = "", await ua();
|
|
2107
2108
|
}
|
|
2108
2109
|
ha(
|
|
2109
2110
|
() => l.modelValue,
|
|
2110
2111
|
(e) => {
|
|
2111
|
-
if (e &&
|
|
2112
|
+
if (e && k(e)) {
|
|
2112
2113
|
const c = e, C = Array.from(c);
|
|
2113
|
-
|
|
2114
|
-
} else !e &&
|
|
2114
|
+
v.value = C.map(($) => va($));
|
|
2115
|
+
} else !e && v.value && (v.value = null);
|
|
2115
2116
|
},
|
|
2116
2117
|
{ immediate: !0 }
|
|
2117
2118
|
);
|
|
2118
|
-
function
|
|
2119
|
+
function ni(e) {
|
|
2119
2120
|
const c = l.maxCount && e.length <= l.maxCount;
|
|
2120
|
-
|
|
2121
|
+
Xa.value = !c;
|
|
2121
2122
|
}
|
|
2122
|
-
function
|
|
2123
|
+
function oi(e) {
|
|
2123
2124
|
l.maxSize && e.forEach((c) => {
|
|
2124
2125
|
const C = c;
|
|
2125
|
-
C.data.size > l.maxSize && (C.state =
|
|
2126
|
+
C.data.size > l.maxSize && (C.state = S.ERROR, C.errors.push(E.ERROR_SIZE));
|
|
2126
2127
|
});
|
|
2127
2128
|
}
|
|
2128
|
-
function
|
|
2129
|
+
function pi(e) {
|
|
2129
2130
|
const c = e.filter(
|
|
2130
2131
|
({ errors: C }) => !C.includes(E.ERROR_LOAD) && !C.includes(E.ERROR_SIZE)
|
|
2131
2132
|
);
|
|
2132
2133
|
if (c.length) {
|
|
2133
2134
|
const C = new DataTransfer();
|
|
2134
|
-
return c.forEach(({ data: $, id:
|
|
2135
|
+
return c.forEach(({ data: $, id: $a }) => {
|
|
2135
2136
|
C.items.add($);
|
|
2136
2137
|
}), C.files;
|
|
2137
2138
|
}
|
|
2138
2139
|
}
|
|
2139
2140
|
return (e, c) => {
|
|
2140
2141
|
var C;
|
|
2141
|
-
return s(),
|
|
2142
|
-
class: q(["b-file-uploader",
|
|
2142
|
+
return s(), g("div", {
|
|
2143
|
+
class: q(["b-file-uploader", ra.value])
|
|
2143
2144
|
}, [
|
|
2144
|
-
O(t(
|
|
2145
|
+
O(t(_i), {
|
|
2145
2146
|
class: "b-file-uploader__label",
|
|
2146
|
-
for: t(
|
|
2147
|
+
for: t(W),
|
|
2147
2148
|
label: e.label,
|
|
2148
2149
|
optional: e.optional,
|
|
2149
2150
|
required: e.required,
|
|
2150
2151
|
"tooltip-text": e.tooltipText
|
|
2151
2152
|
}, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
|
|
2152
2153
|
m("input", {
|
|
2153
|
-
id: t(
|
|
2154
|
+
id: t(W),
|
|
2154
2155
|
ref_key: "inputRef",
|
|
2155
|
-
ref:
|
|
2156
|
+
ref: T,
|
|
2156
2157
|
"aria-hidden": "true",
|
|
2157
2158
|
type: "file",
|
|
2158
2159
|
tabindex: "-1",
|
|
@@ -2160,121 +2161,121 @@ const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-la
|
|
|
2160
2161
|
class: "b-file-uploader__input",
|
|
2161
2162
|
accept: e.accept,
|
|
2162
2163
|
disabled: e.disabled,
|
|
2163
|
-
multiple:
|
|
2164
|
-
onChange:
|
|
2165
|
-
onClick:
|
|
2166
|
-
}, null, 40,
|
|
2164
|
+
multiple: Q.value,
|
|
2165
|
+
onChange: ti,
|
|
2166
|
+
onClick: Ka
|
|
2167
|
+
}, null, 40, Ae),
|
|
2167
2168
|
m("span", {
|
|
2168
|
-
id: t(
|
|
2169
|
+
id: t(B),
|
|
2169
2170
|
"aria-hidden": "true",
|
|
2170
2171
|
class: "b-file-uploader__invisible-comma"
|
|
2171
|
-
}, " , ", 8,
|
|
2172
|
-
|
|
2172
|
+
}, " , ", 8, Ue),
|
|
2173
|
+
la.value ? f("", !0) : (s(), g("div", {
|
|
2173
2174
|
key: 0,
|
|
2174
2175
|
ref_key: "dropAreaRef",
|
|
2175
|
-
ref:
|
|
2176
|
-
"aria-labelledby":
|
|
2176
|
+
ref: ta,
|
|
2177
|
+
"aria-labelledby": oa.value,
|
|
2177
2178
|
class: "b-file-uploader__area",
|
|
2178
2179
|
role: "button",
|
|
2179
2180
|
tabindex: e.disabled ? -1 : 0,
|
|
2180
|
-
onClick: c[0] || (c[0] = ($) =>
|
|
2181
|
-
onDragenter: aa(
|
|
2182
|
-
onDragleave: aa(
|
|
2183
|
-
onDrop: aa(
|
|
2184
|
-
onDragover:
|
|
2181
|
+
onClick: c[0] || (c[0] = ($) => T.value.click()),
|
|
2182
|
+
onDragenter: aa(Qa, ["stop", "prevent"]),
|
|
2183
|
+
onDragleave: aa(ai, ["stop", "prevent"]),
|
|
2184
|
+
onDrop: aa(ei, ["stop", "prevent"]),
|
|
2185
|
+
onDragover: ii,
|
|
2185
2186
|
onKeydownCapture: [
|
|
2186
|
-
c[1] || (c[1] =
|
|
2187
|
-
c[2] || (c[2] =
|
|
2187
|
+
c[1] || (c[1] = ja(aa(($) => T.value.click(), ["prevent"]), ["enter"])),
|
|
2188
|
+
c[2] || (c[2] = ja(aa(($) => T.value.click(), ["prevent"]), ["space"]))
|
|
2188
2189
|
]
|
|
2189
2190
|
}, [
|
|
2190
|
-
m("div",
|
|
2191
|
-
|
|
2191
|
+
m("div", Pe, [
|
|
2192
|
+
N.value ? (s(), y(t(Za), { key: 0 })) : (s(), y(t(Ii), { key: 1 }))
|
|
2192
2193
|
]),
|
|
2193
|
-
e.condensed ?
|
|
2194
|
+
e.condensed ? f("", !0) : (s(), g(za, { key: 0 }, [
|
|
2194
2195
|
O(t(R), {
|
|
2195
|
-
id: t(
|
|
2196
|
+
id: t(G),
|
|
2196
2197
|
el: "span",
|
|
2197
2198
|
strongest: "",
|
|
2198
2199
|
class: "b-file-uploader__title"
|
|
2199
2200
|
}, {
|
|
2200
|
-
default:
|
|
2201
|
-
_(
|
|
2201
|
+
default: w(() => [
|
|
2202
|
+
_(x(t(p)("dropFiles", e.maxCount)), 1)
|
|
2202
2203
|
]),
|
|
2203
2204
|
_: 1
|
|
2204
2205
|
}, 8, ["id"]),
|
|
2205
|
-
e.description ? (s(),
|
|
2206
|
+
e.description ? (s(), y(t(R), {
|
|
2206
2207
|
key: 0,
|
|
2207
|
-
id: t(
|
|
2208
|
+
id: t(H),
|
|
2208
2209
|
el: "span",
|
|
2209
2210
|
class: "b-file-uploader__description"
|
|
2210
2211
|
}, {
|
|
2211
|
-
default:
|
|
2212
|
-
_(
|
|
2212
|
+
default: w(() => [
|
|
2213
|
+
_(x(e.description), 1)
|
|
2213
2214
|
]),
|
|
2214
2215
|
_: 1
|
|
2215
|
-
}, 8, ["id"])) :
|
|
2216
|
-
O(t(
|
|
2216
|
+
}, 8, ["id"])) : f("", !0),
|
|
2217
|
+
O(t(Ha), V(J.value, { id: t(A) }), null, 16, ["id"])
|
|
2217
2218
|
], 64)),
|
|
2218
2219
|
O(t(R), {
|
|
2219
|
-
id: t(
|
|
2220
|
+
id: t(z),
|
|
2220
2221
|
stronger: "",
|
|
2221
2222
|
class: "b-file-uploader__button"
|
|
2222
2223
|
}, {
|
|
2223
|
-
default:
|
|
2224
|
-
_(
|
|
2224
|
+
default: w(() => [
|
|
2225
|
+
_(x(t(o)("browseFiles")), 1)
|
|
2225
2226
|
]),
|
|
2226
2227
|
_: 1
|
|
2227
2228
|
}, 8, ["id"])
|
|
2228
|
-
], 40,
|
|
2229
|
-
|
|
2229
|
+
], 40, Ne)),
|
|
2230
|
+
N.value && e.errorMessage ? (s(), y(t(ji), {
|
|
2230
2231
|
key: 1,
|
|
2231
|
-
id: t(
|
|
2232
|
+
id: t(na),
|
|
2232
2233
|
"error-message": e.errorMessage,
|
|
2233
2234
|
class: "b-file-uploader__error-message"
|
|
2234
|
-
}, null, 8, ["id", "error-message"])) :
|
|
2235
|
-
e.condensed && e.description ? (s(),
|
|
2235
|
+
}, null, 8, ["id", "error-message"])) : f("", !0),
|
|
2236
|
+
e.condensed && e.description ? (s(), y(t(R), {
|
|
2236
2237
|
key: 2,
|
|
2237
|
-
id: t(
|
|
2238
|
+
id: t(H),
|
|
2238
2239
|
"aria-hidden": "true",
|
|
2239
2240
|
el: "span",
|
|
2240
2241
|
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2241
2242
|
}, {
|
|
2242
|
-
default:
|
|
2243
|
-
_(
|
|
2243
|
+
default: w(() => [
|
|
2244
|
+
_(x(e.description), 1)
|
|
2244
2245
|
]),
|
|
2245
2246
|
_: 1
|
|
2246
|
-
}, 8, ["id"])) :
|
|
2247
|
-
e.condensed ? (s(),
|
|
2248
|
-
|
|
2247
|
+
}, 8, ["id"])) : f("", !0),
|
|
2248
|
+
e.condensed ? (s(), y(t(Ha), V({ key: 3 }, J.value, { id: t(A) }), null, 16, ["id"])) : f("", !0),
|
|
2249
|
+
ya.value ? (s(), y(t(fi), {
|
|
2249
2250
|
key: 4,
|
|
2250
2251
|
type: "critical"
|
|
2251
2252
|
}, {
|
|
2252
|
-
description:
|
|
2253
|
-
_(
|
|
2253
|
+
description: w(() => [
|
|
2254
|
+
_(x(t(o)("youHaveExceededTheMaximum", { count: t(n)(l.maxCount) })), 1)
|
|
2254
2255
|
]),
|
|
2255
|
-
default:
|
|
2256
|
-
_(
|
|
2256
|
+
default: w(() => [
|
|
2257
|
+
_(x(t(o)("tooManyFiles")) + " ", 1)
|
|
2257
2258
|
]),
|
|
2258
2259
|
_: 1
|
|
2259
|
-
})) :
|
|
2260
|
-
|
|
2261
|
-
(s(!0),
|
|
2260
|
+
})) : f("", !0),
|
|
2261
|
+
Ba(m("div", Ge, [
|
|
2262
|
+
(s(!0), g(za, null, mi(v.value, ($, $a) => (s(), y(t(Se), {
|
|
2262
2263
|
ref_for: !0,
|
|
2263
|
-
ref:
|
|
2264
|
+
ref: j($a),
|
|
2264
2265
|
key: $.id,
|
|
2265
2266
|
file: $,
|
|
2266
|
-
"supported-file-types": t(
|
|
2267
|
-
onCancel: (
|
|
2268
|
-
onRemove: (
|
|
2267
|
+
"supported-file-types": t(r),
|
|
2268
|
+
onCancel: (li) => ka($),
|
|
2269
|
+
onRemove: (li) => ka($)
|
|
2269
2270
|
}, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
|
|
2270
2271
|
], 512), [
|
|
2271
|
-
[
|
|
2272
|
+
[ui, (C = v.value) == null ? void 0 : C.length]
|
|
2272
2273
|
])
|
|
2273
2274
|
], 2);
|
|
2274
2275
|
};
|
|
2275
2276
|
}
|
|
2276
|
-
}),
|
|
2277
|
+
}), ft = /* @__PURE__ */ L(Ye, [["__scopeId", "data-v-91e31414"]]);
|
|
2277
2278
|
export {
|
|
2278
|
-
|
|
2279
|
+
ft as f
|
|
2279
2280
|
};
|
|
2280
|
-
//# sourceMappingURL=file-uploader.
|
|
2281
|
+
//# sourceMappingURL=file-uploader.BDXQ7Ccv.js.map
|