@adyen/bento-vue2 1.48.0 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +195 -170
- package/dist/action-bar.js +1 -1
- 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/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.CSgrrcK0.js → action-bar.pYOeP8WX.js} +4 -4
- package/dist/chunks/{action-bar.CSgrrcK0.js.map → action-bar.pYOeP8WX.js.map} +1 -1
- package/dist/chunks/{base-modal.47Xa68h9.js → base-modal.8kcvtFRx.js} +2 -2
- package/dist/chunks/{base-modal.47Xa68h9.js.map → base-modal.8kcvtFRx.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.D13mJiKO.js → button-actions-with-menu.BxWulRXh.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.D13mJiKO.js.map → button-actions-with-menu.BxWulRXh.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BXfJo9NR.js → checkbox-group.4TiIcnc7.js} +4 -4
- package/dist/chunks/{checkbox-group.BXfJo9NR.js.map → checkbox-group.4TiIcnc7.js.map} +1 -1
- package/dist/chunks/{checkbox.BEHpJDrF.js → checkbox.CE9NdY0R.js} +3 -3
- package/dist/chunks/{checkbox.BEHpJDrF.js.map → checkbox.CE9NdY0R.js.map} +1 -1
- package/dist/chunks/{code-snippet.CUx6b252.js → code-snippet.DSsZWtwa.js} +5 -5
- package/dist/chunks/{code-snippet.CUx6b252.js.map → code-snippet.DSsZWtwa.js.map} +1 -1
- package/dist/chunks/{controls-group.C3RDqB9H.js → controls-group.BnDPMaGI.js} +2 -2
- package/dist/chunks/{controls-group.C3RDqB9H.js.map → controls-group.BnDPMaGI.js.map} +1 -1
- package/dist/chunks/{copy.adSQlAOY.js → copy.DMlIj53I.js} +3 -3
- package/dist/chunks/{copy.adSQlAOY.js.map → copy.DMlIj53I.js.map} +1 -1
- package/dist/chunks/currency.B1F9YOIx.js.map +1 -1
- package/dist/chunks/{dashboard-section.q1XXEUZc.js → dashboard-section.DzMn8yDZ.js} +3 -3
- package/dist/chunks/{dashboard-section.q1XXEUZc.js.map → dashboard-section.DzMn8yDZ.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CpVP3VDL.js → dashed-underline.COTMts4l.js} +3 -3
- package/dist/chunks/{dashed-underline.CpVP3VDL.js.map → dashed-underline.COTMts4l.js.map} +1 -1
- package/dist/chunks/{data-grid-template.kCxfVaW7.js → data-grid-template.BPBneEHq.js} +2 -2
- package/dist/chunks/{data-grid-template.kCxfVaW7.js.map → data-grid-template.BPBneEHq.js.map} +1 -1
- package/dist/chunks/{data-grid.DgxC3G4n.js → data-grid.iqFUbiZy.js} +670 -664
- package/dist/chunks/data-grid.iqFUbiZy.js.map +1 -0
- package/dist/chunks/{date-picker.DqsQJ7P7.js → date-picker.C68IAqHR.js} +3 -3
- package/dist/chunks/{date-picker.DqsQJ7P7.js.map → date-picker.C68IAqHR.js.map} +1 -1
- package/dist/chunks/{date-range-picker.VZlIz83o.js → date-range-picker.dcQRDNS7.js} +6 -6
- package/dist/chunks/{date-range-picker.VZlIz83o.js.map → date-range-picker.dcQRDNS7.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BLAjuup5.js → dropdown-tag.DhENnOHT.js} +3 -3
- package/dist/chunks/{dropdown-tag.BLAjuup5.js.map → dropdown-tag.DhENnOHT.js.map} +1 -1
- package/dist/chunks/{dropdown.DWgwNFNB.js → dropdown.BBHNOorv.js} +5 -5
- package/dist/chunks/{dropdown.DWgwNFNB.js.map → dropdown.BBHNOorv.js.map} +1 -1
- package/dist/chunks/{error-message.Da-p1QIA.js → error-message.xTNEaNn8.js} +2 -2
- package/dist/chunks/{error-message.Da-p1QIA.js.map → error-message.xTNEaNn8.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.DT7GsNqI.js → file-uploader.mLUYQnz1.js} +325 -316
- package/dist/chunks/{file-uploader.DT7GsNqI.js.map → file-uploader.mLUYQnz1.js.map} +1 -1
- package/dist/chunks/{filter-bar.D2YR4Tpz.js → filter-bar.CFcu6P8H.js} +16 -17
- package/dist/chunks/{filter-bar.D2YR4Tpz.js.map → filter-bar.CFcu6P8H.js.map} +1 -1
- package/dist/chunks/{focus-trap.CGypVwG6.js → focus-trap._RrLaKlq.js} +6 -3
- package/dist/chunks/{focus-trap.CGypVwG6.js.map → focus-trap._RrLaKlq.js.map} +1 -1
- package/dist/chunks/{header.D5MLt9hG.js → header.BeS6ktqU.js} +3 -3
- package/dist/chunks/{header.D5MLt9hG.js.map → header.BeS6ktqU.js.map} +1 -1
- package/dist/chunks/{index.D8ivUe7P.js → index.CU8GKq4C.js} +8 -7
- package/dist/chunks/{index.D8ivUe7P.js.map → index.CU8GKq4C.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.CO0mky_N.js → info-icon-with-popover.yeIoJzhj.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.CO0mky_N.js.map → info-icon-with-popover.yeIoJzhj.js.map} +1 -1
- package/dist/chunks/{info-icon.0d0GzDe2.js → info-icon.C4_l0WAf.js} +3 -3
- package/dist/chunks/{info-icon.0d0GzDe2.js.map → info-icon.C4_l0WAf.js.map} +1 -1
- package/dist/chunks/{input-field-password.CQtzruQM.js → input-field-password.Dez8haIj.js} +5 -5
- package/dist/chunks/{input-field-password.CQtzruQM.js.map → input-field-password.Dez8haIj.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DWKZy2-k.js → input-field-phone-number.CPTonsjM.js} +2 -2
- package/dist/chunks/{input-field-phone-number.DWKZy2-k.js.map → input-field-phone-number.CPTonsjM.js.map} +1 -1
- package/dist/chunks/{input-field.3V5IblWw.js → input-field.lEMEBT7J.js} +3 -3
- package/dist/chunks/{input-field.3V5IblWw.js.map → input-field.lEMEBT7J.js.map} +1 -1
- package/dist/chunks/inspector.types.BtgXpTC7.js +101 -0
- package/dist/chunks/inspector.types.BtgXpTC7.js.map +1 -0
- package/dist/chunks/{layout-row.BfS-cPky.js → layout-row.CHwDU8yK.js} +7 -7
- package/dist/chunks/{layout-row.BfS-cPky.js.map → layout-row.CHwDU8yK.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.XbvBQqlt.js → listbox-option-tag.BJBWnC2r.js} +2 -2
- package/dist/chunks/{listbox-option-tag.XbvBQqlt.js.map → listbox-option-tag.BJBWnC2r.js.map} +1 -1
- package/dist/chunks/{menu.DYopJZ12.js → menu.lbODB0y3.js} +2 -2
- package/dist/chunks/{menu.DYopJZ12.js.map → menu.lbODB0y3.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Pp5mp7hD.js → modal-fullscreen.Dz3kSuTz.js} +2 -2
- package/dist/chunks/{modal-fullscreen.Pp5mp7hD.js.map → modal-fullscreen.Dz3kSuTz.js.map} +1 -1
- package/dist/chunks/{modal.CCjAy7Hv.js → modal.DV55hSPn.js} +2 -2
- package/dist/chunks/{modal.CCjAy7Hv.js.map → modal.DV55hSPn.js.map} +1 -1
- package/dist/chunks/{pagination.8g4bC4tv.js → pagination.CuJ-P2bO.js} +2 -2
- package/dist/chunks/{pagination.8g4bC4tv.js.map → pagination.CuJ-P2bO.js.map} +1 -1
- package/dist/chunks/{popover.C-LwO38X.js → popover.BQGNMbQN.js} +2 -2
- package/dist/chunks/{popover.C-LwO38X.js.map → popover.BQGNMbQN.js.map} +1 -1
- package/dist/chunks/{popper-container.B1iB2ovW.js → popper-container.CsW4R0-t.js} +2 -2
- package/dist/chunks/{popper-container.B1iB2ovW.js.map → popper-container.CsW4R0-t.js.map} +1 -1
- package/dist/chunks/{promo-banner.DS0_aROF.js → promo-banner.BNXfyv3h.js} +6 -6
- package/dist/chunks/{promo-banner.DS0_aROF.js.map → promo-banner.BNXfyv3h.js.map} +1 -1
- package/dist/chunks/{radio-group.1z-IZvLU.js → radio-group.CUgib4vp.js} +4 -4
- package/dist/chunks/{radio-group.1z-IZvLU.js.map → radio-group.CUgib4vp.js.map} +1 -1
- package/dist/chunks/{search-bar.Bu12OC-l.js → search-bar.Dk-GuqgF.js} +3 -3
- package/dist/chunks/{search-bar.Bu12OC-l.js.map → search-bar.Dk-GuqgF.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CLDlWCXX.js → secondary-nav.DC2GrGaQ.js} +3 -3
- package/dist/chunks/{secondary-nav.CLDlWCXX.js.map → secondary-nav.DC2GrGaQ.js.map} +1 -1
- package/dist/chunks/{segmented-control.BJIlas0M.js → segmented-control.BxCcPbKd.js} +2 -2
- package/dist/chunks/{segmented-control.BJIlas0M.js.map → segmented-control.BxCcPbKd.js.map} +1 -1
- package/dist/chunks/{selection-card-group.usHcqYKO.js → selection-card-group.B-YY-iKp.js} +4 -4
- package/dist/chunks/{selection-card-group.usHcqYKO.js.map → selection-card-group.B-YY-iKp.js.map} +1 -1
- package/dist/chunks/{sidepanel.C_ff-PEn.js → sidepanel.Dp6dKRnq.js} +2 -2
- package/dist/chunks/{sidepanel.C_ff-PEn.js.map → sidepanel.Dp6dKRnq.js.map} +1 -1
- package/dist/chunks/{structured-list-item.TC8mVrrA.js → structured-list-item.DrY71Ndc.js} +4 -4
- package/dist/chunks/{structured-list-item.TC8mVrrA.js.map → structured-list-item.DrY71Ndc.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.A11AzfH0.js → summary-grid-item-custom.CXs6AMS4.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.A11AzfH0.js.map → summary-grid-item-custom.CXs6AMS4.js.map} +1 -1
- package/dist/chunks/{tag.3fthBtwc.js → tag.CevG31iQ.js} +2 -2
- package/dist/chunks/{tag.3fthBtwc.js.map → tag.CevG31iQ.js.map} +1 -1
- package/dist/chunks/{textarea.CpXux8qX.js → textarea.DHbXaxdU.js} +2 -2
- package/dist/chunks/{textarea.CpXux8qX.js.map → textarea.DHbXaxdU.js.map} +1 -1
- package/dist/chunks/{timeline-item.Ca9RJt0z.js → timeline-item.C4HOsaEG.js} +4 -4
- package/dist/chunks/{timeline-item.Ca9RJt0z.js.map → timeline-item.C4HOsaEG.js.map} +1 -1
- package/dist/chunks/{tooltip.R2sqydIE.js → tooltip.Bu8o7uyZ.js} +2 -2
- package/dist/chunks/{tooltip.R2sqydIE.js.map → tooltip.Bu8o7uyZ.js.map} +1 -1
- package/dist/chunks/{tutorial.Cc0tv59x.js → tutorial.BWWTUI9f.js} +4 -4
- package/dist/chunks/{tutorial.Cc0tv59x.js.map → tutorial.BWWTUI9f.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.C24AnZ-w.js → use-cached-selected-values.C5gHa-dC.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.C24AnZ-w.js.map → use-cached-selected-values.C5gHa-dC.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +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/focus-trap.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +42 -42
- package/dist/info-icon.js +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/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +1 -0
- package/dist/styles/styleguide.css +1 -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/tutorial.js +1 -1
- package/dist/web-types.json +31 -3
- package/package.json +4 -4
- package/dist/chunks/data-grid.DgxC3G4n.js.map +0 -1
- package/dist/chunks/inspector.types.GOl_-hXm.js +0 -70
- package/dist/chunks/inspector.types.GOl_-hXm.js.map +0 -1
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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";
|
|
2
2
|
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
3
|
-
import { W as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { i as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
12
|
-
import { R as
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { B as
|
|
16
|
-
import { F as
|
|
3
|
+
import { W as ra } from "./warning-filled.CLKRzGMT.js";
|
|
4
|
+
import { B as Ra } from "./alert.hiTIDSeX.js";
|
|
5
|
+
import { B as da } from "./button.CdAFZa4V.js";
|
|
6
|
+
import { B as G } from "./typography.J1v_SPG3.js";
|
|
7
|
+
import { u as O } from "./i18n.BQkEbtPM.js";
|
|
8
|
+
import { g as P } from "./generate-uid.NJ8tVoha.js";
|
|
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";
|
|
17
17
|
import "../assets/file-uploader.css";
|
|
18
|
-
let
|
|
19
|
-
const
|
|
18
|
+
let K = 0;
|
|
19
|
+
const Ma = {
|
|
20
20
|
beforeCreate() {
|
|
21
|
-
this.uuid =
|
|
21
|
+
this.uuid = K.toString(), K += 1;
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
var
|
|
24
|
+
var Sa = 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
|
-
},
|
|
28
|
-
Ta,
|
|
29
|
-
Fa,
|
|
27
|
+
}, Va = [], Da = /* @__PURE__ */ f(
|
|
30
28
|
Ma,
|
|
29
|
+
Sa,
|
|
30
|
+
Va,
|
|
31
31
|
!1,
|
|
32
32
|
null,
|
|
33
33
|
null
|
|
34
34
|
);
|
|
35
|
-
const
|
|
35
|
+
const Ha = Da.exports, Oa = /* @__PURE__ */ H({
|
|
36
36
|
__name: "file-uploader-file-card-animation",
|
|
37
37
|
props: {
|
|
38
38
|
name: null,
|
|
39
39
|
showFileIcon: { type: Boolean }
|
|
40
40
|
},
|
|
41
41
|
setup(e) {
|
|
42
|
-
return { __sfc: !0, isVue2:
|
|
42
|
+
return { __sfc: !0, isVue2: ma };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
var
|
|
45
|
+
var Ba = 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
|
-
},
|
|
49
|
-
Da,
|
|
50
|
-
Ha,
|
|
48
|
+
}, qa = [], Za = /* @__PURE__ */ f(
|
|
51
49
|
Oa,
|
|
50
|
+
Ba,
|
|
51
|
+
qa,
|
|
52
52
|
!1,
|
|
53
53
|
null,
|
|
54
54
|
null
|
|
55
55
|
);
|
|
56
|
-
const
|
|
57
|
-
let
|
|
58
|
-
const
|
|
56
|
+
const Ua = Za.exports;
|
|
57
|
+
let Q = 0;
|
|
58
|
+
const Aa = {
|
|
59
59
|
beforeCreate() {
|
|
60
|
-
this.uuid =
|
|
60
|
+
this.uuid = Q.toString(), Q += 1;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
var
|
|
63
|
+
var Pa = 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
|
-
},
|
|
67
|
-
Za,
|
|
68
|
-
Ua,
|
|
66
|
+
}, Na = [], Wa = /* @__PURE__ */ f(
|
|
69
67
|
Aa,
|
|
68
|
+
Pa,
|
|
69
|
+
Na,
|
|
70
70
|
!1,
|
|
71
71
|
null,
|
|
72
72
|
null
|
|
73
73
|
);
|
|
74
|
-
const
|
|
75
|
-
function
|
|
74
|
+
const Ga = Wa.exports;
|
|
75
|
+
function Ya(e, a) {
|
|
76
76
|
const i = b(!1);
|
|
77
77
|
let t;
|
|
78
78
|
function o() {
|
|
79
79
|
t && t.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return ya(() => {
|
|
82
82
|
o();
|
|
83
|
-
}),
|
|
83
|
+
}), ka(() => {
|
|
84
84
|
o(), t = new IntersectionObserver(
|
|
85
|
-
(
|
|
86
|
-
i.value = !
|
|
85
|
+
(p) => {
|
|
86
|
+
i.value = !p[0].isIntersecting;
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
root: a.value,
|
|
@@ -92,29 +92,29 @@ function Wa(e, a) {
|
|
|
92
92
|
), t.observe(e.value.$el);
|
|
93
93
|
}), i;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
95
|
+
const aa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function va(e, a) {
|
|
97
97
|
let i = 0, t = a;
|
|
98
|
-
for (; t >= 1e3 && i <
|
|
98
|
+
for (; t >= 1e3 && i < aa.length - 1; )
|
|
99
99
|
t /= 1e3, i++;
|
|
100
100
|
return new Intl.NumberFormat(e, {
|
|
101
101
|
style: "unit",
|
|
102
|
-
unit:
|
|
102
|
+
unit: aa[i],
|
|
103
103
|
unitDisplay: "short",
|
|
104
104
|
// Displays as "kB" instead of "kilobytes"
|
|
105
105
|
maximumFractionDigits: 2
|
|
106
106
|
// Limits to 2 decimal places
|
|
107
107
|
}).format(t);
|
|
108
108
|
}
|
|
109
|
-
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 || {}),
|
|
110
|
-
const
|
|
109
|
+
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 = [
|
|
111
111
|
"application/msword",
|
|
112
112
|
// .doc
|
|
113
113
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
114
114
|
// .docx
|
|
115
115
|
"application/rtf"
|
|
116
116
|
// .rtf
|
|
117
|
-
],
|
|
117
|
+
], Ja = [
|
|
118
118
|
"application/vnd.ms-excel",
|
|
119
119
|
// .xls
|
|
120
120
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -127,14 +127,14 @@ const Ga = [
|
|
|
127
127
|
// .numbers
|
|
128
128
|
"text/csv"
|
|
129
129
|
// .csv
|
|
130
|
-
],
|
|
130
|
+
], Ka = [
|
|
131
131
|
"application/vnd.ms-powerpoint",
|
|
132
132
|
// .ppt
|
|
133
133
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
134
134
|
// .pptx
|
|
135
135
|
"application/vnd.oasis.opendocument.presentation"
|
|
136
136
|
// .odp
|
|
137
|
-
],
|
|
137
|
+
], Qa = [
|
|
138
138
|
"application/zip",
|
|
139
139
|
// .zip
|
|
140
140
|
"application/vnd.rar",
|
|
@@ -156,10 +156,10 @@ const Ga = [
|
|
|
156
156
|
"application/vnd.ms-cab-compressed"
|
|
157
157
|
// .cab
|
|
158
158
|
];
|
|
159
|
-
function
|
|
160
|
-
return
|
|
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;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function ii(e, a) {
|
|
163
163
|
if (!a)
|
|
164
164
|
return !0;
|
|
165
165
|
const i = a.split(",").map((t) => t.trim());
|
|
@@ -175,205 +175,205 @@ function Qa(e, a) {
|
|
|
175
175
|
return !0;
|
|
176
176
|
return !1;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function ti(e, a, i) {
|
|
179
179
|
const t = new FileReader(), o = e;
|
|
180
|
-
if (!
|
|
180
|
+
if (!ii(o.data, a)) {
|
|
181
181
|
o.state = h.ERROR, o.errors.push(x.ERROR_TYPE);
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
|
-
t.onload = (
|
|
184
|
+
t.onload = (p) => {
|
|
185
185
|
if (i && o.type === d.IMAGE) {
|
|
186
|
-
const l = new Blob([
|
|
187
|
-
|
|
188
|
-
(
|
|
189
|
-
},
|
|
190
|
-
URL.revokeObjectURL(
|
|
191
|
-
},
|
|
186
|
+
const l = new Blob([p.target.result], { type: o.data.type }), c = URL.createObjectURL(l), r = new Image();
|
|
187
|
+
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);
|
|
189
|
+
}, r.onerror = function() {
|
|
190
|
+
URL.revokeObjectURL(c);
|
|
191
|
+
}, r.src = c;
|
|
192
192
|
}
|
|
193
|
-
}, t.onprogress = (
|
|
194
|
-
|
|
193
|
+
}, t.onprogress = (p) => {
|
|
194
|
+
p.lengthComputable && (o.progress = p.loaded / p.total * 100);
|
|
195
195
|
}, t.onloadend = () => {
|
|
196
196
|
o.state !== h.ERROR && (o.state = h.SUCCESS), o.progress = null;
|
|
197
197
|
}, t.onerror = () => {
|
|
198
198
|
o.state = h.ERROR, o.errors.push(x.ERROR_LOAD), o.progress = null;
|
|
199
199
|
}, t.readAsArrayBuffer(o.data);
|
|
200
200
|
}
|
|
201
|
-
let
|
|
202
|
-
const
|
|
201
|
+
let ia = 0;
|
|
202
|
+
const ei = {
|
|
203
203
|
beforeCreate() {
|
|
204
|
-
this.uuid =
|
|
204
|
+
this.uuid = ia.toString(), ia += 1;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
var
|
|
207
|
+
var ni = function() {
|
|
208
208
|
var a = this, i = a._self._c;
|
|
209
209
|
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
|
-
},
|
|
211
|
-
ii,
|
|
212
|
-
ti,
|
|
210
|
+
}, pi = [], oi = /* @__PURE__ */ f(
|
|
213
211
|
ei,
|
|
212
|
+
ni,
|
|
213
|
+
pi,
|
|
214
214
|
!1,
|
|
215
215
|
null,
|
|
216
216
|
null
|
|
217
217
|
);
|
|
218
|
-
const
|
|
219
|
-
let
|
|
220
|
-
const
|
|
218
|
+
const li = oi.exports;
|
|
219
|
+
let ta = 0;
|
|
220
|
+
const si = {
|
|
221
221
|
beforeCreate() {
|
|
222
|
-
this.uuid =
|
|
222
|
+
this.uuid = ta.toString(), ta += 1;
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
var
|
|
225
|
+
var ci = function() {
|
|
226
226
|
var a = this, i = a._self._c;
|
|
227
227
|
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
|
-
},
|
|
229
|
-
oi,
|
|
230
|
-
li,
|
|
228
|
+
}, ri = [], di = /* @__PURE__ */ f(
|
|
231
229
|
si,
|
|
230
|
+
ci,
|
|
231
|
+
ri,
|
|
232
232
|
!1,
|
|
233
233
|
null,
|
|
234
234
|
null
|
|
235
235
|
);
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
const
|
|
236
|
+
const mi = di.exports;
|
|
237
|
+
let ea = 0;
|
|
238
|
+
const vi = {
|
|
239
239
|
beforeCreate() {
|
|
240
|
-
this.uuid =
|
|
240
|
+
this.uuid = ea.toString(), ea += 1;
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
var
|
|
243
|
+
var ui = function() {
|
|
244
244
|
var a = this, i = a._self._c;
|
|
245
245
|
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
|
-
},
|
|
247
|
-
di,
|
|
248
|
-
mi,
|
|
246
|
+
}, fi = [], xi = /* @__PURE__ */ f(
|
|
249
247
|
vi,
|
|
248
|
+
ui,
|
|
249
|
+
fi,
|
|
250
250
|
!1,
|
|
251
251
|
null,
|
|
252
252
|
null
|
|
253
253
|
);
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
const
|
|
254
|
+
const gi = xi.exports;
|
|
255
|
+
let na = 0;
|
|
256
|
+
const hi = {
|
|
257
257
|
beforeCreate() {
|
|
258
|
-
this.uuid =
|
|
258
|
+
this.uuid = na.toString(), na += 1;
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
|
-
var
|
|
261
|
+
var _i = function() {
|
|
262
262
|
var a = this, i = a._self._c;
|
|
263
263
|
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
|
-
},
|
|
265
|
-
xi,
|
|
266
|
-
gi,
|
|
264
|
+
}, bi = [], wi = /* @__PURE__ */ f(
|
|
267
265
|
hi,
|
|
266
|
+
_i,
|
|
267
|
+
bi,
|
|
268
268
|
!1,
|
|
269
269
|
null,
|
|
270
270
|
null
|
|
271
271
|
);
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const
|
|
272
|
+
const Ci = wi.exports;
|
|
273
|
+
let pa = 0;
|
|
274
|
+
const yi = {
|
|
275
275
|
beforeCreate() {
|
|
276
|
-
this.uuid =
|
|
276
|
+
this.uuid = pa.toString(), pa += 1;
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
var
|
|
279
|
+
var ki = function() {
|
|
280
280
|
var a = this, i = a._self._c;
|
|
281
281
|
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
|
-
},
|
|
283
|
-
wi,
|
|
284
|
-
Ci,
|
|
282
|
+
}, Ri = [], ji = /* @__PURE__ */ f(
|
|
285
283
|
yi,
|
|
284
|
+
ki,
|
|
285
|
+
Ri,
|
|
286
286
|
!1,
|
|
287
287
|
null,
|
|
288
288
|
null
|
|
289
289
|
);
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
const
|
|
290
|
+
const zi = ji.exports;
|
|
291
|
+
let oa = 0;
|
|
292
|
+
const Ei = {
|
|
293
293
|
beforeCreate() {
|
|
294
|
-
this.uuid =
|
|
294
|
+
this.uuid = oa.toString(), oa += 1;
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
var
|
|
297
|
+
var $i = function() {
|
|
298
298
|
var a = this, i = a._self._c;
|
|
299
299
|
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
|
-
},
|
|
301
|
-
ji,
|
|
302
|
-
zi,
|
|
300
|
+
}, Li = [], Ii = /* @__PURE__ */ f(
|
|
303
301
|
Ei,
|
|
302
|
+
$i,
|
|
303
|
+
Li,
|
|
304
304
|
!1,
|
|
305
305
|
null,
|
|
306
306
|
null
|
|
307
307
|
);
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
const
|
|
308
|
+
const Ti = Ii.exports;
|
|
309
|
+
let la = 0;
|
|
310
|
+
const Fi = {
|
|
311
311
|
beforeCreate() {
|
|
312
|
-
this.uuid =
|
|
312
|
+
this.uuid = la.toString(), la += 1;
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
|
-
var
|
|
315
|
+
var Mi = function() {
|
|
316
316
|
var a = this, i = a._self._c;
|
|
317
317
|
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
|
-
},
|
|
319
|
-
Ii,
|
|
320
|
-
Ti,
|
|
318
|
+
}, Si = [], Vi = /* @__PURE__ */ f(
|
|
321
319
|
Fi,
|
|
320
|
+
Mi,
|
|
321
|
+
Si,
|
|
322
322
|
!1,
|
|
323
323
|
null,
|
|
324
324
|
null
|
|
325
325
|
);
|
|
326
|
-
const
|
|
327
|
-
let
|
|
328
|
-
const
|
|
326
|
+
const Di = Vi.exports;
|
|
327
|
+
let sa = 0;
|
|
328
|
+
const Hi = {
|
|
329
329
|
beforeCreate() {
|
|
330
|
-
this.uuid =
|
|
330
|
+
this.uuid = sa.toString(), sa += 1;
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
var
|
|
333
|
+
var Oi = function() {
|
|
334
334
|
var a = this, i = a._self._c;
|
|
335
335
|
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
|
-
},
|
|
337
|
-
Vi,
|
|
338
|
-
Di,
|
|
336
|
+
}, Bi = [], qi = /* @__PURE__ */ f(
|
|
339
337
|
Hi,
|
|
338
|
+
Oi,
|
|
339
|
+
Bi,
|
|
340
340
|
!1,
|
|
341
341
|
null,
|
|
342
342
|
null
|
|
343
343
|
);
|
|
344
|
-
const
|
|
345
|
-
let
|
|
346
|
-
const
|
|
344
|
+
const Zi = qi.exports;
|
|
345
|
+
let ca = 0;
|
|
346
|
+
const Ui = {
|
|
347
347
|
beforeCreate() {
|
|
348
|
-
this.uuid =
|
|
348
|
+
this.uuid = ca.toString(), ca += 1;
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
|
-
var
|
|
351
|
+
var Ai = function() {
|
|
352
352
|
var a = this, i = a._self._c;
|
|
353
353
|
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
|
-
},
|
|
355
|
-
qi,
|
|
356
|
-
Zi,
|
|
354
|
+
}, Pi = [], Ni = /* @__PURE__ */ f(
|
|
357
355
|
Ui,
|
|
356
|
+
Ai,
|
|
357
|
+
Pi,
|
|
358
358
|
!1,
|
|
359
359
|
null,
|
|
360
360
|
null
|
|
361
361
|
);
|
|
362
|
-
const
|
|
363
|
-
[d.AUDIO]:
|
|
364
|
-
[d.COMPRESSED]:
|
|
365
|
-
[d.GENERIC]:
|
|
366
|
-
[d.IMAGE]:
|
|
367
|
-
[d.PDF]:
|
|
368
|
-
[d.SLIDES]:
|
|
369
|
-
[d.TABLE]:
|
|
370
|
-
[d.TEXT]:
|
|
371
|
-
[d.VIDEO]:
|
|
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
|
|
372
372
|
};
|
|
373
|
-
function
|
|
374
|
-
return
|
|
373
|
+
function Yi(e) {
|
|
374
|
+
return Gi[e.type];
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Xi(e) {
|
|
377
377
|
switch (e.type) {
|
|
378
378
|
case d.COMPRESSED:
|
|
379
379
|
case d.GENERIC:
|
|
@@ -387,7 +387,7 @@ function Gi(e) {
|
|
|
387
387
|
return "green";
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
const
|
|
390
|
+
const Ji = {
|
|
391
391
|
"en-US": {
|
|
392
392
|
cancel: "Cancel",
|
|
393
393
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -406,36 +406,36 @@ const Yi = {
|
|
|
406
406
|
remove: "Remover",
|
|
407
407
|
retry: "Tentar novamente"
|
|
408
408
|
}
|
|
409
|
-
},
|
|
409
|
+
}, Ki = {
|
|
410
410
|
name: "file-uploader-file-card",
|
|
411
|
-
i18n: { messages:
|
|
412
|
-
},
|
|
413
|
-
...
|
|
411
|
+
i18n: { messages: Ji }
|
|
412
|
+
}, Qi = /* @__PURE__ */ H({
|
|
413
|
+
...Ki,
|
|
414
414
|
props: {
|
|
415
415
|
file: null,
|
|
416
416
|
supportedFileTypes: { default: null }
|
|
417
417
|
},
|
|
418
418
|
emits: ["cancel", "remove", "retry"],
|
|
419
419
|
setup(e, { emit: a }) {
|
|
420
|
-
const i = e, t = 1200, { t: o, locale:
|
|
421
|
-
"b-file-uploader-file-card--error":
|
|
422
|
-
})),
|
|
423
|
-
[`b-file-uploader-file-card__icon--${
|
|
424
|
-
"b-file-uploader-file-card__icon--error":
|
|
425
|
-
})),
|
|
426
|
-
return
|
|
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(() => ({
|
|
421
|
+
"b-file-uploader-file-card--error": r.value
|
|
422
|
+
})), T = m(() => ({
|
|
423
|
+
[`b-file-uploader-file-card__icon--${Xi(i.file)}`]: l.value,
|
|
424
|
+
"b-file-uploader-file-card__icon--error": r.value
|
|
425
|
+
})), F = m(() => E.value ? La : r.value ? ra : l.value ? Yi(i.file) : ja);
|
|
426
|
+
return N(
|
|
427
427
|
() => i.file.state,
|
|
428
|
-
(
|
|
429
|
-
if (
|
|
430
|
-
const
|
|
431
|
-
l.value = !0, clearTimeout(
|
|
428
|
+
(M) => {
|
|
429
|
+
if (M === h.SUCCESS && !l.value) {
|
|
430
|
+
const S = setTimeout(() => {
|
|
431
|
+
l.value = !0, clearTimeout(S);
|
|
432
432
|
}, t);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
), { __sfc: !0, ICON_TIMER: t, props: i, emit: a, t: o, locale:
|
|
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 };
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
|
-
var
|
|
438
|
+
var at = function() {
|
|
439
439
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
440
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) {
|
|
441
441
|
return t.emit("retry");
|
|
@@ -450,15 +450,15 @@ var Ki = function() {
|
|
|
450
450
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
451
451
|
return [i(t.BinIcon, { attrs: { "svg-title": t.t("remove") } })];
|
|
452
452
|
}, proxy: !0 }]) })], 1)]);
|
|
453
|
-
},
|
|
454
|
-
Ji,
|
|
455
|
-
Ki,
|
|
453
|
+
}, it = [], tt = /* @__PURE__ */ f(
|
|
456
454
|
Qi,
|
|
455
|
+
at,
|
|
456
|
+
it,
|
|
457
457
|
!1,
|
|
458
458
|
null,
|
|
459
459
|
"56f32ebc"
|
|
460
460
|
);
|
|
461
|
-
const
|
|
461
|
+
const et = tt.exports, nt = {
|
|
462
462
|
"en-US": {
|
|
463
463
|
maxFileSize: "Max file size: {size}",
|
|
464
464
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -467,10 +467,10 @@ const it = at.exports, tt = {
|
|
|
467
467
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
468
468
|
supportedFileTypes: "Supported file types: {list}"
|
|
469
469
|
}
|
|
470
|
-
},
|
|
471
|
-
i18n: { messages:
|
|
472
|
-
},
|
|
473
|
-
...
|
|
470
|
+
}, pt = {
|
|
471
|
+
i18n: { messages: nt }
|
|
472
|
+
}, ot = /* @__PURE__ */ H({
|
|
473
|
+
...pt,
|
|
474
474
|
__name: "file-uploader-restrictions",
|
|
475
475
|
props: {
|
|
476
476
|
condensed: { default: null },
|
|
@@ -481,45 +481,45 @@ const it = at.exports, tt = {
|
|
|
481
481
|
supportedFileTypes: { default: null }
|
|
482
482
|
},
|
|
483
483
|
setup(e) {
|
|
484
|
-
const a = e, { t: i, tc: t, locale: o } =
|
|
484
|
+
const a = e, { t: i, tc: t, locale: o } = O(), p = m(() => ({
|
|
485
485
|
"b-file-uploader-restrictions--condensed": a.condensed,
|
|
486
486
|
"b-file-uploader-restrictions--disabled": a.disabled
|
|
487
487
|
}));
|
|
488
|
-
function l(
|
|
488
|
+
function l(r) {
|
|
489
489
|
return {
|
|
490
|
-
"b-file-uploader-restrictions--error":
|
|
490
|
+
"b-file-uploader-restrictions--error": r
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
const
|
|
493
|
+
const c = m(() => {
|
|
494
494
|
if (!a.maxDimensions)
|
|
495
495
|
return null;
|
|
496
496
|
const {
|
|
497
|
-
value: { width:
|
|
497
|
+
value: { width: r, height: v }
|
|
498
498
|
} = a.maxDimensions;
|
|
499
|
-
return
|
|
499
|
+
return r && v ? i("maxImageDimensions", { width: r, height: v }) : r ? i("maxImageWidth", { width: r }) : v ? i("maxImageHeight", { height: v }) : null;
|
|
500
500
|
});
|
|
501
|
-
return { __sfc: !0, props: a, t: i, tc: t, locale: o, conditionalClasses:
|
|
501
|
+
return { __sfc: !0, props: a, t: i, tc: t, locale: o, conditionalClasses: p, setRestrictionErrorClass: l, maxDimensionsLabel: c, BentoTypography: G, formatFileSize: va };
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
|
-
var
|
|
504
|
+
var lt = function() {
|
|
505
505
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
506
506
|
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
|
-
},
|
|
508
|
-
nt,
|
|
509
|
-
pt,
|
|
507
|
+
}, st = [], ct = /* @__PURE__ */ f(
|
|
510
508
|
ot,
|
|
509
|
+
lt,
|
|
510
|
+
st,
|
|
511
511
|
!1,
|
|
512
512
|
null,
|
|
513
513
|
"3c1d05d1"
|
|
514
514
|
);
|
|
515
|
-
const
|
|
516
|
-
function
|
|
517
|
-
const { locale: a, t: i } =
|
|
515
|
+
const rt = ct.exports;
|
|
516
|
+
function dt(e) {
|
|
517
|
+
const { locale: a, t: i } = O();
|
|
518
518
|
return { supportedFileTypeList: m(() => {
|
|
519
519
|
const o = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
|
|
520
520
|
return e != null && e.value ? o.format(
|
|
521
|
-
e.value.split(",").map((
|
|
522
|
-
const l =
|
|
521
|
+
e.value.split(",").map((p) => {
|
|
522
|
+
const l = p.trim();
|
|
523
523
|
switch (l) {
|
|
524
524
|
case "audio/*":
|
|
525
525
|
return i("audioFiles");
|
|
@@ -534,7 +534,7 @@ function ct(e) {
|
|
|
534
534
|
) : null;
|
|
535
535
|
}) };
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const mt = {
|
|
538
538
|
"en-US": {
|
|
539
539
|
audioFiles: "audio files",
|
|
540
540
|
browseFiles: "Browse files",
|
|
@@ -556,7 +556,7 @@ const rt = {
|
|
|
556
556
|
upload: "Carregar",
|
|
557
557
|
warning: "Aviso"
|
|
558
558
|
}
|
|
559
|
-
},
|
|
559
|
+
}, ua = {
|
|
560
560
|
"application/prs.cww": ["cww"],
|
|
561
561
|
"application/prs.xsf+xml": ["xsf"],
|
|
562
562
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1255,8 +1255,8 @@ const rt = {
|
|
|
1255
1255
|
"video/x-smv": ["smv"],
|
|
1256
1256
|
"x-conference/x-cooltalk": ["ice"]
|
|
1257
1257
|
};
|
|
1258
|
-
Object.freeze(
|
|
1259
|
-
const
|
|
1258
|
+
Object.freeze(ua);
|
|
1259
|
+
const fa = {
|
|
1260
1260
|
"application/andrew-inset": ["ez"],
|
|
1261
1261
|
"application/appinstaller": ["appinstaller"],
|
|
1262
1262
|
"application/applixware": ["aw"],
|
|
@@ -1608,31 +1608,31 @@ const ua = {
|
|
|
1608
1608
|
"video/quicktime": ["qt", "mov"],
|
|
1609
1609
|
"video/webm": ["webm"]
|
|
1610
1610
|
};
|
|
1611
|
-
Object.freeze(
|
|
1611
|
+
Object.freeze(fa);
|
|
1612
1612
|
var g = function(e, a, i, t) {
|
|
1613
1613
|
if (i === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
|
|
1614
1614
|
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
1615
|
return i === "m" ? t : i === "a" ? t.call(e) : t ? t.value : a.get(e);
|
|
1616
|
-
}, z,
|
|
1617
|
-
class
|
|
1616
|
+
}, z, $, y;
|
|
1617
|
+
class vt {
|
|
1618
1618
|
constructor(...a) {
|
|
1619
|
-
z.set(this, /* @__PURE__ */ new Map()),
|
|
1619
|
+
z.set(this, /* @__PURE__ */ new Map()), $.set(this, /* @__PURE__ */ new Map()), y.set(this, /* @__PURE__ */ new Map());
|
|
1620
1620
|
for (const i of a)
|
|
1621
1621
|
this.define(i);
|
|
1622
1622
|
}
|
|
1623
1623
|
define(a, i = !1) {
|
|
1624
1624
|
for (let [t, o] of Object.entries(a)) {
|
|
1625
|
-
t = t.toLowerCase(), o = o.map((
|
|
1626
|
-
const
|
|
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);
|
|
1627
1627
|
let l = !0;
|
|
1628
|
-
for (let
|
|
1629
|
-
const
|
|
1630
|
-
if (
|
|
1628
|
+
for (let c of o) {
|
|
1629
|
+
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)
|
|
1631
1631
|
continue;
|
|
1632
|
-
const v = g(this, z, "f").get(
|
|
1632
|
+
const v = g(this, z, "f").get(c);
|
|
1633
1633
|
if (v && v != t && !i)
|
|
1634
|
-
throw new Error(`"${t} -> ${
|
|
1635
|
-
g(this, z, "f").set(
|
|
1634
|
+
throw new Error(`"${t} -> ${c}" conflicts with "${v} -> ${c}". Pass \`force=true\` to override this definition.`);
|
|
1635
|
+
g(this, z, "f").set(c, t);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
return this;
|
|
@@ -1645,7 +1645,7 @@ class dt {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
getExtension(a) {
|
|
1647
1647
|
var i;
|
|
1648
|
-
return typeof a != "string" ? null : (a = (i = a == null ? void 0 : a.split) == null ? void 0 : i.call(a, ";")[0], (a && g(this,
|
|
1648
|
+
return typeof a != "string" ? null : (a = (i = a == null ? void 0 : a.split) == null ? void 0 : i.call(a, ";")[0], (a && g(this, $, "f").get(a.trim().toLowerCase())) ?? null);
|
|
1649
1649
|
}
|
|
1650
1650
|
getAllExtensions(a) {
|
|
1651
1651
|
return typeof a != "string" ? null : g(this, y, "f").get(a.toLowerCase()) ?? null;
|
|
@@ -1661,51 +1661,51 @@ class dt {
|
|
|
1661
1661
|
_getTestState() {
|
|
1662
1662
|
return {
|
|
1663
1663
|
types: g(this, z, "f"),
|
|
1664
|
-
extensions: g(this,
|
|
1664
|
+
extensions: g(this, $, "f")
|
|
1665
1665
|
};
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
|
-
z = /* @__PURE__ */ new WeakMap(),
|
|
1669
|
-
const
|
|
1670
|
-
function
|
|
1671
|
-
return
|
|
1668
|
+
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;
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1674
|
-
const i =
|
|
1673
|
+
function xt({ maxCount: e, accept: a }) {
|
|
1674
|
+
const i = W({
|
|
1675
1675
|
invalidTypes: !1,
|
|
1676
1676
|
partiallyInvalidTypes: !1,
|
|
1677
1677
|
maxCountOverflow: !1
|
|
1678
|
-
}), t =
|
|
1678
|
+
}), t = W({
|
|
1679
1679
|
dragging: !1,
|
|
1680
1680
|
error: !1
|
|
1681
|
-
}), o = m(() => a.value ? a.value.split(",").map((
|
|
1682
|
-
function
|
|
1681
|
+
}), o = m(() => a.value ? a.value.split(",").map((r) => ft(r.trim().toLocaleLowerCase())) : void 0);
|
|
1682
|
+
function p() {
|
|
1683
1683
|
t.dragging = !1, t.error = !1, i.invalidTypes = !1, i.partiallyInvalidTypes = !1, i.maxCountOverflow = !1;
|
|
1684
1684
|
}
|
|
1685
|
-
function l(
|
|
1686
|
-
if (t.dragging = !0, (!
|
|
1685
|
+
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)
|
|
1687
1687
|
return;
|
|
1688
1688
|
let v = 0;
|
|
1689
|
-
for (const w of
|
|
1689
|
+
for (const w of r.dataTransfer.items)
|
|
1690
1690
|
o.value.includes(w.type) && v++;
|
|
1691
1691
|
if (v === 0) {
|
|
1692
1692
|
t.error = !0, i.invalidTypes = !0;
|
|
1693
1693
|
return;
|
|
1694
1694
|
}
|
|
1695
|
-
!i.invalidTypes && v !==
|
|
1695
|
+
!i.invalidTypes && v !== r.dataTransfer.items.length && (t.error = !0, i.partiallyInvalidTypes = !0);
|
|
1696
1696
|
}
|
|
1697
1697
|
return {
|
|
1698
1698
|
dragState: t,
|
|
1699
1699
|
dragErrors: i,
|
|
1700
|
-
resetDragState:
|
|
1700
|
+
resetDragState: p,
|
|
1701
1701
|
onDragEnterValidations: l
|
|
1702
1702
|
};
|
|
1703
1703
|
}
|
|
1704
|
-
const
|
|
1704
|
+
const gt = {
|
|
1705
1705
|
model: { prop: "modelValue" },
|
|
1706
|
-
i18n: { messages:
|
|
1707
|
-
},
|
|
1708
|
-
...
|
|
1706
|
+
i18n: { messages: mt }
|
|
1707
|
+
}, ht = /* @__PURE__ */ H({
|
|
1708
|
+
...gt,
|
|
1709
1709
|
__name: "file-uploader",
|
|
1710
1710
|
props: {
|
|
1711
1711
|
accept: { default: null },
|
|
@@ -1722,13 +1722,13 @@ const ft = {
|
|
|
1722
1722
|
required: { type: Boolean },
|
|
1723
1723
|
tooltipText: { default: null }
|
|
1724
1724
|
},
|
|
1725
|
-
emits: ["change", "update:modelValue"],
|
|
1725
|
+
emits: ["change", "update:modelValue", "error:upload"],
|
|
1726
1726
|
setup(e, { emit: a }) {
|
|
1727
|
-
const i = e, { t, tc: o } =
|
|
1728
|
-
accept:
|
|
1729
|
-
maxCount:
|
|
1730
|
-
}),
|
|
1731
|
-
var
|
|
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({
|
|
1728
|
+
accept: A(i, "accept"),
|
|
1729
|
+
maxCount: A(i, "maxCount")
|
|
1730
|
+
}), B = m(() => {
|
|
1731
|
+
var n, s, u;
|
|
1732
1732
|
return {
|
|
1733
1733
|
condensed: i.condensed,
|
|
1734
1734
|
disabled: i.disabled,
|
|
@@ -1738,142 +1738,151 @@ const ft = {
|
|
|
1738
1738
|
} : null,
|
|
1739
1739
|
maxDimensions: i.maxDimensions ? {
|
|
1740
1740
|
value: i.maxDimensions,
|
|
1741
|
-
error: (
|
|
1741
|
+
error: (n = l.value) == null ? void 0 : n.some((_) => _.errors.includes(x.ERROR_DIMENSIONS))
|
|
1742
1742
|
} : null,
|
|
1743
1743
|
maxSize: i.maxSize ? {
|
|
1744
1744
|
value: i.maxSize,
|
|
1745
|
-
error: (
|
|
1745
|
+
error: (s = l.value) == null ? void 0 : s.some((_) => _.errors.includes(x.ERROR_SIZE))
|
|
1746
1746
|
} : null,
|
|
1747
|
-
supportedFileTypes:
|
|
1748
|
-
value:
|
|
1747
|
+
supportedFileTypes: p.value ? {
|
|
1748
|
+
value: p.value,
|
|
1749
1749
|
error: C.invalidTypes || C.partiallyInvalidTypes || ((u = l.value) == null ? void 0 : u.some((_) => _.errors.includes(x.ERROR_TYPE)))
|
|
1750
1750
|
} : null
|
|
1751
1751
|
};
|
|
1752
|
-
}), R = b(),
|
|
1753
|
-
[`b-file-uploader--${
|
|
1754
|
-
[`b-file-uploader--${
|
|
1755
|
-
[`b-file-uploader--${
|
|
1752
|
+
}), R = b(), L = m(() => ({
|
|
1753
|
+
[`b-file-uploader--${D.DISABLED}`]: i.disabled,
|
|
1754
|
+
[`b-file-uploader--${D.DRAG_OVER}`]: w.dragging,
|
|
1755
|
+
[`b-file-uploader--${D.ERROR}`]: T.value,
|
|
1756
1756
|
"b-file-uploader--condensed": i.condensed
|
|
1757
|
-
})), j = m(() => i.maxCount > 1),
|
|
1758
|
-
var
|
|
1759
|
-
return i.maxCount && ((
|
|
1757
|
+
})), j = m(() => i.maxCount > 1), q = m(() => {
|
|
1758
|
+
var n;
|
|
1759
|
+
return i.maxCount && ((n = l.value) == null ? void 0 : n.length) >= i.maxCount;
|
|
1760
|
+
}), I = m(() => {
|
|
1761
|
+
var n;
|
|
1762
|
+
return (n = l.value) == null ? void 0 : n.some((s) => s.state === "loading");
|
|
1760
1763
|
}), T = m(() => !!i.errorMessage || w.error), F = m(() => {
|
|
1761
|
-
var
|
|
1762
|
-
return ((
|
|
1763
|
-
}), M = b(!1)
|
|
1764
|
-
|
|
1765
|
-
|
|
1764
|
+
var n;
|
|
1765
|
+
return ((n = l.value) == null ? void 0 : n.length) > i.maxCount;
|
|
1766
|
+
}), M = b(!1), S = m(() => {
|
|
1767
|
+
var n;
|
|
1768
|
+
return (n = l.value) == null ? void 0 : n.some((s) => s.state === "error");
|
|
1769
|
+
});
|
|
1770
|
+
N(S, (n) => {
|
|
1771
|
+
I.value || a("error:upload", n);
|
|
1772
|
+
});
|
|
1773
|
+
function xa(n) {
|
|
1774
|
+
l.value = l.value.filter(({ id: s }) => s !== n.id);
|
|
1766
1775
|
}
|
|
1767
|
-
function
|
|
1768
|
-
const
|
|
1769
|
-
id:
|
|
1770
|
-
data:
|
|
1776
|
+
function Z(n) {
|
|
1777
|
+
const s = W({
|
|
1778
|
+
id: P("file"),
|
|
1779
|
+
data: n,
|
|
1771
1780
|
errors: [],
|
|
1772
1781
|
progress: null,
|
|
1773
1782
|
state: h.LOADING,
|
|
1774
|
-
type:
|
|
1783
|
+
type: ai(n)
|
|
1775
1784
|
});
|
|
1776
|
-
return
|
|
1785
|
+
return ti(s, i.accept, i.maxDimensions), s;
|
|
1777
1786
|
}
|
|
1778
|
-
function
|
|
1779
|
-
var
|
|
1780
|
-
((
|
|
1787
|
+
function ga(n) {
|
|
1788
|
+
var s;
|
|
1789
|
+
((s = l.value) == null ? void 0 : s.length) === i.maxCount && n.preventDefault();
|
|
1781
1790
|
}
|
|
1782
|
-
function
|
|
1783
|
-
if (i.maxCount === 1 &&
|
|
1784
|
-
|
|
1791
|
+
function U(n) {
|
|
1792
|
+
if (i.maxCount === 1 && n.length > i.maxCount) {
|
|
1793
|
+
V(), k();
|
|
1785
1794
|
return;
|
|
1786
1795
|
}
|
|
1787
|
-
j.value ? l.value = [...l.value || [], ...Array.from(
|
|
1796
|
+
j.value ? l.value = [...l.value || [], ...Array.from(n).map((s) => Z(s))] : l.value = [Z(n[0])];
|
|
1788
1797
|
}
|
|
1789
|
-
function
|
|
1798
|
+
function ha(n) {
|
|
1790
1799
|
var u, _;
|
|
1791
1800
|
if (i.disabled)
|
|
1792
1801
|
return;
|
|
1793
|
-
R.value =
|
|
1794
|
-
const
|
|
1795
|
-
E(
|
|
1802
|
+
R.value = n.target;
|
|
1803
|
+
const s = (((u = n.dataTransfer.items) == null ? void 0 : u.length) ?? 0) + (((_ = l.value) == null ? void 0 : _.length) ?? 0);
|
|
1804
|
+
E(s, n);
|
|
1796
1805
|
}
|
|
1797
|
-
function
|
|
1806
|
+
function V() {
|
|
1798
1807
|
R.value = null;
|
|
1799
1808
|
}
|
|
1800
|
-
function
|
|
1801
|
-
R.value ===
|
|
1809
|
+
function _a(n) {
|
|
1810
|
+
R.value === n.target && (V(), k());
|
|
1802
1811
|
}
|
|
1803
|
-
function
|
|
1804
|
-
|
|
1812
|
+
function ba(n) {
|
|
1813
|
+
n.preventDefault(), i.disabled && (n.dataTransfer.dropEffect = "none");
|
|
1805
1814
|
}
|
|
1806
|
-
function
|
|
1807
|
-
var
|
|
1808
|
-
i.disabled || (!C.invalidTypes && ((
|
|
1815
|
+
function wa(n) {
|
|
1816
|
+
var s;
|
|
1817
|
+
i.disabled || (!C.invalidTypes && ((s = n.dataTransfer.files) != null && s.length) && U(n.dataTransfer.files), V(), k());
|
|
1809
1818
|
}
|
|
1810
|
-
function
|
|
1811
|
-
var
|
|
1812
|
-
(
|
|
1819
|
+
function Ca() {
|
|
1820
|
+
var n;
|
|
1821
|
+
(n = c.value.files) != null && n.length && U(c.value.files), c.value.value = "";
|
|
1813
1822
|
}
|
|
1814
|
-
function
|
|
1815
|
-
const
|
|
1816
|
-
M.value = !
|
|
1823
|
+
function Y(n) {
|
|
1824
|
+
const s = i.maxCount && n.length <= i.maxCount;
|
|
1825
|
+
M.value = !s;
|
|
1817
1826
|
}
|
|
1818
|
-
function
|
|
1819
|
-
i.maxSize &&
|
|
1820
|
-
const u =
|
|
1827
|
+
function X(n) {
|
|
1828
|
+
i.maxSize && n.forEach((s) => {
|
|
1829
|
+
const u = s;
|
|
1821
1830
|
u.data.size > i.maxSize && (u.state = h.ERROR, u.errors.push(x.ERROR_SIZE));
|
|
1822
1831
|
});
|
|
1823
1832
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const
|
|
1833
|
+
function J(n) {
|
|
1834
|
+
const s = n.filter(
|
|
1826
1835
|
({ errors: u }) => !u.includes(x.ERROR_LOAD) && !u.includes(x.ERROR_SIZE)
|
|
1827
1836
|
);
|
|
1828
|
-
if (
|
|
1837
|
+
if (s.length) {
|
|
1829
1838
|
const u = new DataTransfer();
|
|
1830
|
-
return
|
|
1839
|
+
return s.forEach(({ data: _ }) => u.items.add(_)), u.files;
|
|
1831
1840
|
}
|
|
1832
1841
|
}
|
|
1833
|
-
return
|
|
1834
|
-
if (
|
|
1835
|
-
|
|
1836
|
-
const
|
|
1837
|
-
a("change",
|
|
1842
|
+
return N(l, (n) => {
|
|
1843
|
+
if (n) {
|
|
1844
|
+
Y(n), X(n);
|
|
1845
|
+
const s = J(n);
|
|
1846
|
+
a("change", s), a("update:modelValue", s);
|
|
1838
1847
|
} else
|
|
1839
1848
|
a("change"), a("update:modelValue");
|
|
1840
|
-
}), { __sfc: !0, t, tc: o, emit: a, props: i, supportedFileTypeList:
|
|
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 };
|
|
1841
1850
|
}
|
|
1842
1851
|
});
|
|
1843
|
-
var
|
|
1852
|
+
var _t = function() {
|
|
1844
1853
|
var o;
|
|
1845
1854
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
1846
|
-
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(
|
|
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) {
|
|
1847
1856
|
return t.inputRef.click();
|
|
1848
|
-
}, dragenter: function(
|
|
1849
|
-
return
|
|
1850
|
-
}, dragleave: function(
|
|
1851
|
-
return
|
|
1852
|
-
}, drop: function(
|
|
1853
|
-
return
|
|
1854
|
-
}, dragover: t.onDragOver, "!keydown": [function(
|
|
1855
|
-
return !
|
|
1856
|
-
}, function(
|
|
1857
|
-
return !
|
|
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());
|
|
1858
1867
|
}] } }, [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() {
|
|
1859
1868
|
return [a._v(" " + a._s(t.t("youHaveExceededTheMaximum", { count: t.props.maxCount })) + " ")];
|
|
1860
|
-
}, 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(
|
|
1861
|
-
return i(t.FileUploaderFileCard, { key:
|
|
1862
|
-
return t.removeFile(
|
|
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);
|
|
1863
1872
|
}, remove: function(l) {
|
|
1864
|
-
return t.removeFile(
|
|
1873
|
+
return t.removeFile(p);
|
|
1865
1874
|
} } });
|
|
1866
1875
|
}), 1)], 1);
|
|
1867
|
-
},
|
|
1868
|
-
xt,
|
|
1869
|
-
gt,
|
|
1876
|
+
}, bt = [], wt = /* @__PURE__ */ f(
|
|
1870
1877
|
ht,
|
|
1878
|
+
_t,
|
|
1879
|
+
bt,
|
|
1871
1880
|
!1,
|
|
1872
1881
|
null,
|
|
1873
|
-
"
|
|
1882
|
+
"83f464d9"
|
|
1874
1883
|
);
|
|
1875
|
-
const
|
|
1884
|
+
const Ht = wt.exports;
|
|
1876
1885
|
export {
|
|
1877
|
-
|
|
1886
|
+
Ht as f
|
|
1878
1887
|
};
|
|
1879
|
-
//# sourceMappingURL=file-uploader.
|
|
1888
|
+
//# sourceMappingURL=file-uploader.mLUYQnz1.js.map
|