@adyen/bento-vue2 1.48.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +253 -244
- 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/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.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/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/button.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.CSgrrcK0.js → action-bar.CGJJrMpa.js} +4 -4
- package/dist/chunks/{action-bar.CSgrrcK0.js.map → action-bar.CGJJrMpa.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.C5OE7oOu.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.D13mJiKO.js.map → button-actions-with-menu.C5OE7oOu.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BXfJo9NR.js → checkbox-group.wa6Mtmxa.js} +4 -4
- package/dist/chunks/{checkbox-group.BXfJo9NR.js.map → checkbox-group.wa6Mtmxa.js.map} +1 -1
- package/dist/chunks/{checkbox.BEHpJDrF.js → checkbox.BPvnJrvd.js} +17 -17
- package/dist/chunks/{checkbox.BEHpJDrF.js.map → checkbox.BPvnJrvd.js.map} +1 -1
- package/dist/chunks/{code-snippet.CUx6b252.js → code-snippet.3s8WCnke.js} +5 -5
- package/dist/chunks/{code-snippet.CUx6b252.js.map → code-snippet.3s8WCnke.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.BgyN5u0K.js} +3 -3
- package/dist/chunks/{dashboard-section.q1XXEUZc.js.map → dashboard-section.BgyN5u0K.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CpVP3VDL.js → dashed-underline.Cvn5IoHT.js} +3 -3
- package/dist/chunks/{dashed-underline.CpVP3VDL.js.map → dashed-underline.Cvn5IoHT.js.map} +1 -1
- package/dist/chunks/{data-grid-template.kCxfVaW7.js → data-grid-template.DtWM0Tnu.js} +2 -2
- package/dist/chunks/{data-grid-template.kCxfVaW7.js.map → data-grid-template.DtWM0Tnu.js.map} +1 -1
- package/dist/chunks/{data-grid.DgxC3G4n.js → data-grid.N5Rxo6QB.js} +671 -665
- package/dist/chunks/data-grid.N5Rxo6QB.js.map +1 -0
- package/dist/chunks/{date-picker.DqsQJ7P7.js → date-picker.Byv5Z-Xj.js} +3 -3
- package/dist/chunks/{date-picker.DqsQJ7P7.js.map → date-picker.Byv5Z-Xj.js.map} +1 -1
- package/dist/chunks/{date-range-picker.VZlIz83o.js → date-range-picker.CUS9Q53T.js} +6 -6
- package/dist/chunks/{date-range-picker.VZlIz83o.js.map → date-range-picker.CUS9Q53T.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BLAjuup5.js → dropdown-tag.ClUMccWv.js} +4 -4
- package/dist/chunks/{dropdown-tag.BLAjuup5.js.map → dropdown-tag.ClUMccWv.js.map} +1 -1
- package/dist/chunks/{dropdown.DWgwNFNB.js → dropdown.CC1i41NX.js} +264 -264
- package/dist/chunks/dropdown.CC1i41NX.js.map +1 -0
- 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.DTkxh9Ct.js} +400 -395
- package/dist/chunks/file-uploader.DTkxh9Ct.js.map +1 -0
- package/dist/chunks/{filter-bar.D2YR4Tpz.js → filter-bar.gj9sdW5T.js} +17 -18
- package/dist/chunks/{filter-bar.D2YR4Tpz.js.map → filter-bar.gj9sdW5T.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.5rAXro_L.js} +48 -48
- package/dist/chunks/{header.D5MLt9hG.js.map → header.5rAXro_L.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.B0zJWJZn.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.CO0mky_N.js.map → info-icon-with-popover.B0zJWJZn.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.PU9SY4FC.js} +5 -5
- package/dist/chunks/{input-field-password.CQtzruQM.js.map → input-field-password.PU9SY4FC.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.DWKZy2-k.js → input-field-phone-number.D2juJ9ZD.js} +2 -2
- package/dist/chunks/{input-field-phone-number.DWKZy2-k.js.map → input-field-phone-number.D2juJ9ZD.js.map} +1 -1
- package/dist/chunks/{input-field.3V5IblWw.js → input-field.BPbe00eB.js} +3 -3
- package/dist/chunks/{input-field.3V5IblWw.js.map → input-field.BPbe00eB.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.BC7ynpgF.js} +24 -24
- package/dist/chunks/{menu.DYopJZ12.js.map → menu.BC7ynpgF.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.CT-h2q0J.js} +2 -2
- package/dist/chunks/{pagination.8g4bC4tv.js.map → pagination.CT-h2q0J.js.map} +1 -1
- package/dist/chunks/payment-method.Bu76jY3c.js +59 -0
- package/dist/chunks/payment-method.Bu76jY3c.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.C-LwO38X.js → popover.CRdrSmFW.js} +17 -16
- package/dist/chunks/popover.CRdrSmFW.js.map +1 -0
- 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.bMOGN8_E.js} +3 -3
- package/dist/chunks/{search-bar.Bu12OC-l.js.map → search-bar.bMOGN8_E.js.map} +1 -1
- package/dist/chunks/{secondary-nav.CLDlWCXX.js → secondary-nav.C9sm93do.js} +3 -3
- package/dist/chunks/{secondary-nav.CLDlWCXX.js.map → secondary-nav.C9sm93do.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.0O3gmtoi.js} +11 -11
- package/dist/chunks/{selection-card-group.usHcqYKO.js.map → selection-card-group.0O3gmtoi.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/{toggle-button.BX_9vB0d.js → toggle-button.DK4H4sHT.js} +5 -5
- package/dist/chunks/toggle-button.DK4H4sHT.js.map +1 -0
- 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.BbQox1EZ.js} +4 -4
- package/dist/chunks/{tutorial.Cc0tv59x.js.map → tutorial.BbQox1EZ.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.C24AnZ-w.js → use-cached-selected-values.a_5Iw6Dh.js} +258 -254
- package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js.map +1 -0
- 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 +44 -44
- 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/payment-method.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 +2 -1
- package/dist/styles/bento-light.css +2 -1
- package/dist/styles/bento.css +2 -1
- package/dist/styles/legacy.css +3 -0
- package/dist/styles/styleguide.css +2 -1
- 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 +71 -41
- package/package.json +5 -5
- package/dist/chunks/data-grid.DgxC3G4n.js.map +0 -1
- package/dist/chunks/dropdown.DWgwNFNB.js.map +0 -1
- package/dist/chunks/file-uploader.DT7GsNqI.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
- package/dist/chunks/payment-method.BKr_q5cZ.js +0 -84
- package/dist/chunks/payment-method.BKr_q5cZ.js.map +0 -1
- package/dist/chunks/popover.C-LwO38X.js.map +0 -1
- package/dist/chunks/toggle-button.BX_9vB0d.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C24AnZ-w.js.map +0 -1
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as H, ref as b, onUnmounted as ka, onMounted as Ra, computed as m, watch as N, reactive as W, toRef as A } from "vue";
|
|
2
2
|
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
3
|
-
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 ja } 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 za } from "./checkmark-circle-fill.Cn7JN_Tk.js";
|
|
11
|
+
import { C as Ea } from "./cross.CsUPDmaA.js";
|
|
12
|
+
import { R as $a } from "./refresh.BKI9WwKh.js";
|
|
13
|
+
import { B as La } from "./link.DZlbzVSB.js";
|
|
14
|
+
import { B as Ia } from "./loading-indicator.z8COalOc.js";
|
|
15
|
+
import { B as Ta } from "./tooltip.Bu8o7uyZ.js";
|
|
16
|
+
import { F as Fa, E as Ma } from "./error-message.xTNEaNn8.js";
|
|
17
17
|
import "../assets/file-uploader.css";
|
|
18
|
-
let
|
|
19
|
-
const
|
|
18
|
+
let K = 0;
|
|
19
|
+
const Sa = {
|
|
20
20
|
beforeCreate() {
|
|
21
|
-
this.uuid =
|
|
21
|
+
this.uuid = K.toString(), K += 1;
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
var
|
|
24
|
+
var Va = function() {
|
|
25
25
|
var a = this, i = a._self._c;
|
|
26
26
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M8.00011 0.939453L12.0608 5.00011L11.0001 6.06077L8.75 3.81066V11.75H7.25V3.81089L5.00011 6.06077L3.93945 5.00011L8.00011 0.939453Z" } }), i("path", { attrs: { fill: "#00112C", d: "M2.75 12.5V10.25H1.25V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V10.25H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5Z" } })]);
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
}, Da = [], Ha = /* @__PURE__ */ f(
|
|
28
|
+
Sa,
|
|
29
|
+
Va,
|
|
30
|
+
Da,
|
|
31
31
|
!1,
|
|
32
32
|
null,
|
|
33
33
|
null
|
|
34
34
|
);
|
|
35
|
-
const
|
|
35
|
+
const Oa = Ha.exports, Ba = /* @__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 qa = function() {
|
|
46
46
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
47
47
|
return t.isVue2 ? i("Transition", { attrs: { name: a.name, mode: "out-in", css: a.showFileIcon } }, [a._t("default")], 2) : i("TransitionGroup", { attrs: { name: a.name, css: a.showFileIcon } }, [a._t("default")], 2);
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
}, Za = [], Ua = /* @__PURE__ */ f(
|
|
49
|
+
Ba,
|
|
50
|
+
qa,
|
|
51
|
+
Za,
|
|
52
52
|
!1,
|
|
53
53
|
null,
|
|
54
54
|
null
|
|
55
55
|
);
|
|
56
|
-
const
|
|
57
|
-
let
|
|
58
|
-
const
|
|
56
|
+
const Aa = Ua.exports;
|
|
57
|
+
let Q = 0;
|
|
58
|
+
const Pa = {
|
|
59
59
|
beforeCreate() {
|
|
60
|
-
this.uuid =
|
|
60
|
+
this.uuid = Q.toString(), Q += 1;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
var
|
|
63
|
+
var Na = function() {
|
|
64
64
|
var a = this, i = a._self._c;
|
|
65
65
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M7.25 6.25H5.75V12.75H7.25V6.25Z" } }), i("path", { attrs: { fill: "#00112C", d: "M8.75 6.25H10.25V12.75H8.75V6.25Z" } }), i("path", { attrs: { fill: "#00112C", d: "M14.75 3.24999H12.54L12.05 1.74999C11.9 1.29999 11.61 0.92999 11.22 0.64999C10.83 0.37999 10.34 0.24999 9.92 0.23999H6.09C5.64 0.23999 5.17 0.37999 4.78 0.64999C4.39 0.91999 4.11 1.29999 3.95 1.75999L3.46 3.23999H1.25V4.73999H2.32L3.14 13.7C3.19 14.26 3.45 14.78 3.86 15.16C4.27 15.54 4.81 15.75 5.37 15.75H10.64C11.2 15.75 11.74 15.54 12.15 15.16C12.57 14.78 12.82 14.26 12.87 13.7L13.69 4.73999H14.76V3.23999L14.75 3.24999ZM5.37 2.24999C5.42 2.09999 5.52 1.97999 5.64 1.88999C5.77 1.79999 5.92 1.74999 6.08 1.75999H9.93C10.08 1.75999 10.23 1.80999 10.35 1.88999C10.48 1.97999 10.57 2.09999 10.62 2.23999L10.95 3.25999H5.02L5.35 2.25999L5.37 2.24999ZM11.37 13.58C11.35 13.77 11.27 13.94 11.13 14.06C10.99 14.19 10.81 14.25 10.63 14.25H5.36C5.17 14.25 5 14.18 4.86 14.06C4.72 13.93 4.64 13.76 4.62 13.57L3.81 4.74999H12.17L11.36 13.57L11.37 13.58Z" } })]);
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
}, Wa = [], Ga = /* @__PURE__ */ f(
|
|
67
|
+
Pa,
|
|
68
|
+
Na,
|
|
69
|
+
Wa,
|
|
70
70
|
!1,
|
|
71
71
|
null,
|
|
72
72
|
null
|
|
73
73
|
);
|
|
74
|
-
const
|
|
75
|
-
function
|
|
74
|
+
const Ya = Ga.exports;
|
|
75
|
+
function Xa(e, a) {
|
|
76
76
|
const i = b(!1);
|
|
77
77
|
let t;
|
|
78
|
-
function
|
|
78
|
+
function p() {
|
|
79
79
|
t && t.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
i.value = !
|
|
81
|
+
return ka(() => {
|
|
82
|
+
p();
|
|
83
|
+
}), Ra(() => {
|
|
84
|
+
p(), t = new IntersectionObserver(
|
|
85
|
+
(o) => {
|
|
86
|
+
i.value = !o[0].isIntersecting;
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
root: a.value,
|
|
@@ -92,29 +92,23 @@ function Wa(e, a) {
|
|
|
92
92
|
), t.observe(e.value.$el);
|
|
93
93
|
}), i;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
t /= 1e3, i++;
|
|
100
|
-
return new Intl.NumberFormat(e, {
|
|
95
|
+
const aa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function va(e, a) {
|
|
97
|
+
const i = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)), aa.length - 1));
|
|
98
|
+
return Intl.NumberFormat(e, {
|
|
101
99
|
style: "unit",
|
|
102
|
-
unit:
|
|
103
|
-
|
|
104
|
-
// Displays as "kB" instead of "kilobytes"
|
|
105
|
-
maximumFractionDigits: 2
|
|
106
|
-
// Limits to 2 decimal places
|
|
107
|
-
}).format(t);
|
|
100
|
+
unit: aa[i]
|
|
101
|
+
}).format(a / 1024 ** i);
|
|
108
102
|
}
|
|
109
|
-
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
|
|
103
|
+
var h = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(h || {}), x = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(x || {}), D = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(D || {}), d = /* @__PURE__ */ ((e) => (e.TABLE = "table", e.IMAGE = "image", e.VIDEO = "video", e.AUDIO = "audio", e.TEXT = "text", e.PDF = "pdf", e.SLIDES = "slides", e.COMPRESSED = "compressed", e.GENERIC = "generic", e))(d || {});
|
|
104
|
+
const Ja = [
|
|
111
105
|
"application/msword",
|
|
112
106
|
// .doc
|
|
113
107
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
114
108
|
// .docx
|
|
115
109
|
"application/rtf"
|
|
116
110
|
// .rtf
|
|
117
|
-
],
|
|
111
|
+
], Ka = [
|
|
118
112
|
"application/vnd.ms-excel",
|
|
119
113
|
// .xls
|
|
120
114
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -127,14 +121,14 @@ const Ga = [
|
|
|
127
121
|
// .numbers
|
|
128
122
|
"text/csv"
|
|
129
123
|
// .csv
|
|
130
|
-
],
|
|
124
|
+
], Qa = [
|
|
131
125
|
"application/vnd.ms-powerpoint",
|
|
132
126
|
// .ppt
|
|
133
127
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
134
128
|
// .pptx
|
|
135
129
|
"application/vnd.oasis.opendocument.presentation"
|
|
136
130
|
// .odp
|
|
137
|
-
],
|
|
131
|
+
], ai = [
|
|
138
132
|
"application/zip",
|
|
139
133
|
// .zip
|
|
140
134
|
"application/vnd.rar",
|
|
@@ -156,10 +150,10 @@ const Ga = [
|
|
|
156
150
|
"application/vnd.ms-cab-compressed"
|
|
157
151
|
// .cab
|
|
158
152
|
];
|
|
159
|
-
function
|
|
160
|
-
return
|
|
153
|
+
function ii(e) {
|
|
154
|
+
return Ka.includes(e.type) ? d.TABLE : e.type.startsWith("text/") || Ja.includes(e.type) ? d.TEXT : e.type.startsWith("image/") ? d.IMAGE : e.type.startsWith("video/") ? d.VIDEO : e.type.startsWith("audio/") ? d.AUDIO : e.type === "application/pdf" ? d.PDF : Qa.includes(e.type) ? d.SLIDES : ai.includes(e.type) ? d.COMPRESSED : d.GENERIC;
|
|
161
155
|
}
|
|
162
|
-
function
|
|
156
|
+
function ti(e, a) {
|
|
163
157
|
if (!a)
|
|
164
158
|
return !0;
|
|
165
159
|
const i = a.split(",").map((t) => t.trim());
|
|
@@ -168,212 +162,212 @@ function Qa(e, a) {
|
|
|
168
162
|
if (e.name.endsWith(t))
|
|
169
163
|
return !0;
|
|
170
164
|
} else if (t.endsWith("/*")) {
|
|
171
|
-
const
|
|
172
|
-
if (e.type.startsWith(
|
|
165
|
+
const p = t.split("/")[0];
|
|
166
|
+
if (e.type.startsWith(p))
|
|
173
167
|
return !0;
|
|
174
168
|
} else if (e.type === t)
|
|
175
169
|
return !0;
|
|
176
170
|
return !1;
|
|
177
171
|
}
|
|
178
|
-
function
|
|
179
|
-
const t = new FileReader(),
|
|
180
|
-
if (!
|
|
181
|
-
|
|
172
|
+
function ei(e, a, i) {
|
|
173
|
+
const t = new FileReader(), p = e;
|
|
174
|
+
if (!ti(p.data, a)) {
|
|
175
|
+
p.state = h.ERROR, p.errors.push(x.ERROR_TYPE);
|
|
182
176
|
return;
|
|
183
177
|
}
|
|
184
|
-
t.onload = (
|
|
185
|
-
if (i &&
|
|
186
|
-
const l = new Blob([
|
|
187
|
-
|
|
188
|
-
(
|
|
189
|
-
},
|
|
190
|
-
URL.revokeObjectURL(
|
|
191
|
-
},
|
|
178
|
+
t.onload = (o) => {
|
|
179
|
+
if (i && p.type === d.IMAGE) {
|
|
180
|
+
const l = new Blob([o.target.result], { type: p.data.type }), c = URL.createObjectURL(l), r = new Image();
|
|
181
|
+
r.onload = function() {
|
|
182
|
+
(r.width > i.width || r.height > i.height) && (p.state = h.ERROR, p.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
|
|
183
|
+
}, r.onerror = function() {
|
|
184
|
+
URL.revokeObjectURL(c);
|
|
185
|
+
}, r.src = c;
|
|
192
186
|
}
|
|
193
|
-
}, t.onprogress = (
|
|
194
|
-
|
|
187
|
+
}, t.onprogress = (o) => {
|
|
188
|
+
o.lengthComputable && (p.progress = o.loaded / o.total * 100);
|
|
195
189
|
}, t.onloadend = () => {
|
|
196
|
-
|
|
190
|
+
p.state !== h.ERROR && (p.state = h.SUCCESS), p.progress = null;
|
|
197
191
|
}, t.onerror = () => {
|
|
198
|
-
|
|
199
|
-
}, t.readAsArrayBuffer(
|
|
192
|
+
p.state = h.ERROR, p.errors.push(x.ERROR_LOAD), p.progress = null;
|
|
193
|
+
}, t.readAsArrayBuffer(p.data);
|
|
200
194
|
}
|
|
201
|
-
let
|
|
202
|
-
const
|
|
195
|
+
let ia = 0;
|
|
196
|
+
const ni = {
|
|
203
197
|
beforeCreate() {
|
|
204
|
-
this.uuid =
|
|
198
|
+
this.uuid = ia.toString(), ia += 1;
|
|
205
199
|
}
|
|
206
200
|
};
|
|
207
|
-
var
|
|
201
|
+
var oi = function() {
|
|
208
202
|
var a = this, i = a._self._c;
|
|
209
203
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("g", { attrs: { "clip-path": "url(#uia-icons-16-attachment__a" + a.uuid + ")" } }, [i("path", { attrs: { fill: "#00112C", d: "M12.866 4.09026C11.5689 2.79315 9.4638 2.79315 8.1667 4.09026L2.7267 9.53026C1.95959 10.2974 1.95959 11.5425 2.7267 12.3096C3.49381 13.0767 4.73893 13.0767 5.50604 12.3096L10.946 6.8696C11.1831 6.63249 11.1831 6.24737 10.946 6.01026C10.7089 5.77316 10.3238 5.77316 10.0867 6.01026L4.75637 11.3406L3.69571 10.2799L9.02604 4.9496C9.84893 4.12671 11.1838 4.12671 12.0067 4.9496C12.8296 5.7725 12.8296 7.10737 12.0067 7.93026L6.5667 13.3703C5.2138 14.7232 3.01893 14.7232 1.66604 13.3703C0.313144 12.0174 0.313144 9.82249 1.66604 8.4696L7.10604 3.0296C8.98893 1.14671 12.0438 1.14671 13.9267 3.0296C15.8096 4.91249 15.8096 7.96737 13.9267 9.85026L11.1564 12.6206L10.0957 11.5599L12.866 8.7896C14.1631 7.49249 14.1631 5.38737 12.866 4.09026Z" } })]), i("defs", [i("clipPath", { attrs: { id: "uia-icons-16-attachment__a" + a.uuid } }, [i("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
204
|
+
}, pi = [], li = /* @__PURE__ */ f(
|
|
205
|
+
ni,
|
|
206
|
+
oi,
|
|
207
|
+
pi,
|
|
214
208
|
!1,
|
|
215
209
|
null,
|
|
216
210
|
null
|
|
217
211
|
);
|
|
218
|
-
const
|
|
219
|
-
let
|
|
220
|
-
const
|
|
212
|
+
const si = li.exports;
|
|
213
|
+
let ta = 0;
|
|
214
|
+
const ci = {
|
|
221
215
|
beforeCreate() {
|
|
222
|
-
this.uuid =
|
|
216
|
+
this.uuid = ta.toString(), ta += 1;
|
|
223
217
|
}
|
|
224
218
|
};
|
|
225
|
-
var
|
|
219
|
+
var ri = function() {
|
|
226
220
|
var a = this, i = a._self._c;
|
|
227
221
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M13.75 9.58159C14.3412 9.30073 14.75 8.6981 14.75 8V2C14.75 1.0335 13.9665 0.25 13 0.25H3C2.0335 0.25 1.25 1.0335 1.25 2V8C1.25 8.6981 1.65876 9.30073 2.25 9.58159V11C2.25 11.4641 2.43438 11.9092 2.76256 12.2374C2.90555 12.3804 3.07072 12.4961 3.25 12.5811V14C3.25 14.4641 3.43438 14.9092 3.76256 15.2374C4.09075 15.5656 4.53587 15.75 5 15.75H11C11.4641 15.75 11.9092 15.5656 12.2374 15.2374C12.5656 14.9092 12.75 14.4641 12.75 14V12.5811C12.9293 12.4961 13.0945 12.3804 13.2374 12.2374C13.5656 11.9092 13.75 11.4641 13.75 11V9.58159ZM3 1.75H13C13.1381 1.75 13.25 1.86193 13.25 2V8C13.25 8.13807 13.1381 8.25 13 8.25H3C2.86193 8.25 2.75 8.13807 2.75 8V2C2.75 1.86193 2.86193 1.75 3 1.75ZM12.25 9.75V11C12.25 11.0663 12.2237 11.1299 12.1768 11.1768C12.1299 11.2237 12.0663 11.25 12 11.25H4C3.9337 11.25 3.87011 11.2237 3.82322 11.1768C3.77634 11.1299 3.75 11.0663 3.75 11V9.75H12.25ZM11.25 12.75V14C11.25 14.0663 11.2237 14.1299 11.1768 14.1768C11.1299 14.2237 11.0663 14.25 11 14.25H5C4.9337 14.25 4.87011 14.2237 4.82322 14.1768C4.77634 14.1299 4.75 14.0663 4.75 14V12.75H11.25Z" } })]);
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
222
|
+
}, di = [], mi = /* @__PURE__ */ f(
|
|
223
|
+
ci,
|
|
224
|
+
ri,
|
|
225
|
+
di,
|
|
232
226
|
!1,
|
|
233
227
|
null,
|
|
234
228
|
null
|
|
235
229
|
);
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
const
|
|
230
|
+
const vi = mi.exports;
|
|
231
|
+
let ea = 0;
|
|
232
|
+
const ui = {
|
|
239
233
|
beforeCreate() {
|
|
240
|
-
this.uuid =
|
|
234
|
+
this.uuid = ea.toString(), ea += 1;
|
|
241
235
|
}
|
|
242
236
|
};
|
|
243
|
-
var
|
|
237
|
+
var fi = function() {
|
|
244
238
|
var a = this, i = a._self._c;
|
|
245
239
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M13.75 13.5C13.75 14.7442 12.7442 15.75 11.5 15.75H4.5C3.25579 15.75 2.25 14.7442 2.25 13.5V2.5C2.25 1.25579 3.25579 0.25 4.5 0.25H9.31055L13.75 4.68728V13.5ZM3.75 2.5V13.5C3.75 13.9158 4.08421 14.25 4.5 14.25H11.5C11.9158 14.25 12.25 13.9158 12.25 13.5V6.75H9.5C8.25736 6.75 7.25 5.74264 7.25 4.5V1.75H4.5C4.08421 1.75 3.75 2.08421 3.75 2.5ZM8.75 1.81052V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H12.1912L8.75 1.81052Z" } })]);
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
240
|
+
}, xi = [], gi = /* @__PURE__ */ f(
|
|
241
|
+
ui,
|
|
242
|
+
fi,
|
|
243
|
+
xi,
|
|
250
244
|
!1,
|
|
251
245
|
null,
|
|
252
246
|
null
|
|
253
247
|
);
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
const
|
|
248
|
+
const hi = gi.exports;
|
|
249
|
+
let na = 0;
|
|
250
|
+
const _i = {
|
|
257
251
|
beforeCreate() {
|
|
258
|
-
this.uuid =
|
|
252
|
+
this.uuid = na.toString(), na += 1;
|
|
259
253
|
}
|
|
260
254
|
};
|
|
261
|
-
var
|
|
255
|
+
var bi = function() {
|
|
262
256
|
var a = this, i = a._self._c;
|
|
263
257
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z" } }), i("path", { attrs: { fill: "#00112C", d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z" } }), i("path", { attrs: { fill: "#00112C", d: "M13.7461 13.5C13.7461 14.7442 12.7403 15.75 11.4961 15.75H4.49609C3.25188 15.75 2.24609 14.7442 2.24609 13.5V2.5C2.24609 1.25579 3.25188 0.25 4.49609 0.25H9.30665L13.7461 4.68728V13.5ZM3.74609 2.5V13.5C3.74609 13.9158 4.08031 14.25 4.49609 14.25H11.4961C11.9119 14.25 12.2461 13.9158 12.2461 13.5V6.75H9.49609C8.25345 6.75 7.24609 5.74264 7.24609 4.5V1.75H4.49609C4.08031 1.75 3.74609 2.08421 3.74609 2.5ZM8.74609 1.81052V4.5C8.74609 4.91421 9.08188 5.25 9.49609 5.25H12.1873L8.74609 1.81052Z" } })]);
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
258
|
+
}, wi = [], Ci = /* @__PURE__ */ f(
|
|
259
|
+
_i,
|
|
260
|
+
bi,
|
|
261
|
+
wi,
|
|
268
262
|
!1,
|
|
269
263
|
null,
|
|
270
264
|
null
|
|
271
265
|
);
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const
|
|
266
|
+
const yi = Ci.exports;
|
|
267
|
+
let oa = 0;
|
|
268
|
+
const ki = {
|
|
275
269
|
beforeCreate() {
|
|
276
|
-
this.uuid =
|
|
270
|
+
this.uuid = oa.toString(), oa += 1;
|
|
277
271
|
}
|
|
278
272
|
};
|
|
279
|
-
var
|
|
273
|
+
var Ri = function() {
|
|
280
274
|
var a = this, i = a._self._c;
|
|
281
275
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M1.24609 4.5C1.24609 3.25579 2.25188 2.25 3.49609 2.25H6.37609C6.97727 2.25 7.54738 2.49062 7.96642 2.90967L10.0864 5.02967C10.2274 5.17062 10.4173 5.25 10.6161 5.25H12.4961C13.7403 5.25 14.7461 6.25579 14.7461 7.5V12.5C14.7461 13.7442 13.7403 14.75 12.4961 14.75H3.49609C2.25188 14.75 1.24609 13.7442 1.24609 12.5V4.5ZM3.49609 3.75C3.08031 3.75 2.74609 4.08421 2.74609 4.5V12.5C2.74609 12.9158 3.08031 13.25 3.49609 13.25H12.4961C12.9119 13.25 13.2461 12.9158 13.2461 12.5V7.5C13.2461 7.08421 12.9119 6.75 12.4961 6.75H10.6161C10.0149 6.75 9.44481 6.50938 9.02576 6.09033L6.90576 3.97033C6.76481 3.82938 6.57492 3.75 6.37609 3.75H3.49609Z" } })]);
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
276
|
+
}, ji = [], zi = /* @__PURE__ */ f(
|
|
277
|
+
ki,
|
|
278
|
+
Ri,
|
|
279
|
+
ji,
|
|
286
280
|
!1,
|
|
287
281
|
null,
|
|
288
282
|
null
|
|
289
283
|
);
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
const
|
|
284
|
+
const Ei = zi.exports;
|
|
285
|
+
let pa = 0;
|
|
286
|
+
const $i = {
|
|
293
287
|
beforeCreate() {
|
|
294
|
-
this.uuid =
|
|
288
|
+
this.uuid = pa.toString(), pa += 1;
|
|
295
289
|
}
|
|
296
290
|
};
|
|
297
|
-
var
|
|
291
|
+
var Li = function() {
|
|
298
292
|
var a = this, i = a._self._c;
|
|
299
293
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M9.99609 3.24805C8.47731 3.24805 7.24609 4.47926 7.24609 5.99805C7.24609 7.51683 8.47731 8.74805 9.99609 8.74805C11.5149 8.74805 12.7461 7.51683 12.7461 5.99805C12.7461 4.47926 11.5149 3.24805 9.99609 3.24805ZM8.74609 5.99805C8.74609 5.30769 9.30574 4.74805 9.99609 4.74805C10.6865 4.74805 11.2461 5.30769 11.2461 5.99805C11.2461 6.6884 10.6865 7.24805 9.99609 7.24805C9.30574 7.24805 8.74609 6.6884 8.74609 5.99805Z" } }), i("path", { attrs: { fill: "#00112C", d: "M1.24609 3.49805C1.24609 2.25541 2.25345 1.24805 3.49609 1.24805H12.4961C13.7387 1.24805 14.7461 2.25541 14.7461 3.49805V12.498C14.7461 13.7407 13.7387 14.748 12.4961 14.748H3.49609C2.25345 14.748 1.24609 13.7407 1.24609 12.498V3.49805ZM3.49609 2.74805C3.08188 2.74805 2.74609 3.08383 2.74609 3.49805V6.68756L3.99615 5.4375L11.8067 13.248H12.4961C12.9103 13.248 13.2461 12.9123 13.2461 12.498V3.49805C13.2461 3.08383 12.9103 2.74805 12.4961 2.74805H3.49609ZM2.74609 12.498C2.74609 12.9123 3.08188 13.248 3.49609 13.248H9.68538L3.99615 7.55882L2.74609 8.80888V12.498Z" } })]);
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
294
|
+
}, Ii = [], Ti = /* @__PURE__ */ f(
|
|
295
|
+
$i,
|
|
296
|
+
Li,
|
|
297
|
+
Ii,
|
|
304
298
|
!1,
|
|
305
299
|
null,
|
|
306
300
|
null
|
|
307
301
|
);
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
const
|
|
302
|
+
const Fi = Ti.exports;
|
|
303
|
+
let la = 0;
|
|
304
|
+
const Mi = {
|
|
311
305
|
beforeCreate() {
|
|
312
|
-
this.uuid =
|
|
306
|
+
this.uuid = la.toString(), la += 1;
|
|
313
307
|
}
|
|
314
308
|
};
|
|
315
|
-
var
|
|
309
|
+
var Si = function() {
|
|
316
310
|
var a = this, i = a._self._c;
|
|
317
311
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-play_circle__a" + a.uuid + ")" } }, [i("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), i("path", { attrs: { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" } })]), i("defs", [i("clipPath", { attrs: { id: "uia-icons-16-play_circle__a" + a.uuid } }, [i("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
312
|
+
}, Vi = [], Di = /* @__PURE__ */ f(
|
|
313
|
+
Mi,
|
|
314
|
+
Si,
|
|
315
|
+
Vi,
|
|
322
316
|
!1,
|
|
323
317
|
null,
|
|
324
318
|
null
|
|
325
319
|
);
|
|
326
|
-
const
|
|
327
|
-
let
|
|
328
|
-
const
|
|
320
|
+
const Hi = Di.exports;
|
|
321
|
+
let sa = 0;
|
|
322
|
+
const Oi = {
|
|
329
323
|
beforeCreate() {
|
|
330
|
-
this.uuid =
|
|
324
|
+
this.uuid = sa.toString(), sa += 1;
|
|
331
325
|
}
|
|
332
326
|
};
|
|
333
|
-
var
|
|
327
|
+
var Bi = function() {
|
|
334
328
|
var a = this, i = a._self._c;
|
|
335
329
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z" } }), i("path", { attrs: { fill: "#00112C", d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z" } }), i("path", { attrs: { fill: "#00112C", d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z" } })]);
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
330
|
+
}, qi = [], Zi = /* @__PURE__ */ f(
|
|
331
|
+
Oi,
|
|
332
|
+
Bi,
|
|
333
|
+
qi,
|
|
340
334
|
!1,
|
|
341
335
|
null,
|
|
342
336
|
null
|
|
343
337
|
);
|
|
344
|
-
const
|
|
345
|
-
let
|
|
346
|
-
const
|
|
338
|
+
const Ui = Zi.exports;
|
|
339
|
+
let ca = 0;
|
|
340
|
+
const Ai = {
|
|
347
341
|
beforeCreate() {
|
|
348
|
-
this.uuid =
|
|
342
|
+
this.uuid = ca.toString(), ca += 1;
|
|
349
343
|
}
|
|
350
344
|
};
|
|
351
|
-
var
|
|
345
|
+
var Pi = function() {
|
|
352
346
|
var a = this, i = a._self._c;
|
|
353
347
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M3.5 1.25L3.49505 1.25002C2.90084 1.25394 2.33208 1.49173 1.91191 1.91191C1.49173 2.33208 1.25392 2.90084 1.25 3.49505V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V3.5C14.75 2.90326 14.5129 2.33097 14.091 1.90901C13.669 1.48705 13.0967 1.25 12.5 1.25H3.5ZM5.25 2.75V5.25H2.75V3.5029C2.75185 3.30382 2.83175 3.11338 2.97257 2.97257C3.11338 2.83175 3.30382 2.75185 3.5029 2.75H5.25ZM5.25 6.75V9.25H2.75V6.75H5.25ZM6.75 9.25V6.75H13.25V9.25H6.75ZM5.25 10.75V13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5V10.75H5.25ZM6.75 13.25V10.75H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H6.75ZM6.75 5.25V2.75H12.5C12.6989 2.75 12.8897 2.82902 13.0303 2.96967C13.171 3.11032 13.25 3.30109 13.25 3.5V5.25H6.75Z" } })]);
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
348
|
+
}, Ni = [], Wi = /* @__PURE__ */ f(
|
|
349
|
+
Ai,
|
|
350
|
+
Pi,
|
|
351
|
+
Ni,
|
|
358
352
|
!1,
|
|
359
353
|
null,
|
|
360
354
|
null
|
|
361
355
|
);
|
|
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]:
|
|
356
|
+
const Gi = Wi.exports, Yi = {
|
|
357
|
+
[d.AUDIO]: Ui,
|
|
358
|
+
[d.COMPRESSED]: Ei,
|
|
359
|
+
[d.GENERIC]: si,
|
|
360
|
+
[d.IMAGE]: Fi,
|
|
361
|
+
[d.PDF]: hi,
|
|
362
|
+
[d.SLIDES]: vi,
|
|
363
|
+
[d.TABLE]: Gi,
|
|
364
|
+
[d.TEXT]: yi,
|
|
365
|
+
[d.VIDEO]: Hi
|
|
372
366
|
};
|
|
373
|
-
function
|
|
374
|
-
return
|
|
367
|
+
function Xi(e) {
|
|
368
|
+
return Yi[e.type];
|
|
375
369
|
}
|
|
376
|
-
function
|
|
370
|
+
function Ji(e) {
|
|
377
371
|
switch (e.type) {
|
|
378
372
|
case d.COMPRESSED:
|
|
379
373
|
case d.GENERIC:
|
|
@@ -387,7 +381,7 @@ function Gi(e) {
|
|
|
387
381
|
return "green";
|
|
388
382
|
}
|
|
389
383
|
}
|
|
390
|
-
const
|
|
384
|
+
const Ki = {
|
|
391
385
|
"en-US": {
|
|
392
386
|
cancel: "Cancel",
|
|
393
387
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -406,59 +400,59 @@ const Yi = {
|
|
|
406
400
|
remove: "Remover",
|
|
407
401
|
retry: "Tentar novamente"
|
|
408
402
|
}
|
|
409
|
-
},
|
|
403
|
+
}, Qi = {
|
|
410
404
|
name: "file-uploader-file-card",
|
|
411
|
-
i18n: { messages:
|
|
412
|
-
},
|
|
413
|
-
...
|
|
405
|
+
i18n: { messages: Ki }
|
|
406
|
+
}, at = /* @__PURE__ */ H({
|
|
407
|
+
...Qi,
|
|
414
408
|
props: {
|
|
415
409
|
file: null,
|
|
416
410
|
supportedFileTypes: { default: null }
|
|
417
411
|
},
|
|
418
412
|
emits: ["cancel", "remove", "retry"],
|
|
419
413
|
setup(e, { emit: a }) {
|
|
420
|
-
const i = e, t = 1200, { t:
|
|
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
|
|
414
|
+
const i = e, t = 1200, { t: p, locale: o } = O(), l = b(i.file.state === h.SUCCESS), c = m(() => URL.createObjectURL(i.file.data)), r = m(() => i.file.state === h.ERROR), v = m(() => i.file.errors.includes(x.ERROR_LOAD)), w = m(() => i.file.errors.includes(x.ERROR_SIZE)), C = m(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), k = m(() => i.file.errors.includes(x.ERROR_TYPE)), E = m(() => i.file.state === h.LOADING), B = m(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), R = m(() => va(o.value, i.file.data.size)), L = b(), j = b(), q = Xa(L, j), I = m(() => ({
|
|
415
|
+
"b-file-uploader-file-card--error": r.value
|
|
416
|
+
})), T = m(() => ({
|
|
417
|
+
[`b-file-uploader-file-card__icon--${Ji(i.file)}`]: l.value,
|
|
418
|
+
"b-file-uploader-file-card__icon--error": r.value
|
|
419
|
+
})), F = m(() => E.value ? Ia : r.value ? ra : l.value ? Xi(i.file) : za);
|
|
420
|
+
return N(
|
|
427
421
|
() => i.file.state,
|
|
428
|
-
(
|
|
429
|
-
if (
|
|
430
|
-
const
|
|
431
|
-
l.value = !0, clearTimeout(
|
|
422
|
+
(M) => {
|
|
423
|
+
if (M === h.SUCCESS && !l.value) {
|
|
424
|
+
const S = setTimeout(() => {
|
|
425
|
+
l.value = !0, clearTimeout(S);
|
|
432
426
|
}, t);
|
|
433
427
|
}
|
|
434
428
|
}
|
|
435
|
-
), { __sfc: !0, ICON_TIMER: t, props: i, emit: a, t:
|
|
429
|
+
), { __sfc: !0, ICON_TIMER: t, props: i, emit: a, t: p, locale: o, showFileIcon: l, downloadUrl: c, hasError: r, hasLoadError: v, hasSizeError: w, hasDimensionsError: C, hasTypeError: k, isLoading: E, progressLabel: B, sizeLabel: R, fileNameRef: L, fileNameContainerRef: j, isFileNameTruncated: q, conditionalClasses: I, conditionalIconClasses: T, fileUploaderIcon: F, isVue2: ma, FileUploaderFileCardAnimation: Aa, BinIcon: Ya, CrossIcon: Ea, RefreshIcon: $a, vBentoTooltipDirective: Ta, BentoButton: da, BentoLink: La, BentoTypography: G };
|
|
436
430
|
}
|
|
437
431
|
});
|
|
438
|
-
var
|
|
432
|
+
var it = function() {
|
|
439
433
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
440
|
-
return i("div", { staticClass: "b-file-uploader-file-card", class: t.conditionalClasses }, [i("div", { staticClass: "b-file-uploader-file-card__details" }, [i("div", { staticClass: "b-file-uploader-file-card__info" }, [i(t.FileUploaderFileCardAnimation, { attrs: { name: t.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": t.showFileIcon } }, [i(t.fileUploaderIcon, { key: JSON.stringify(t.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: t.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), i("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [i(t.BentoLink, { attrs: { download: a.file.data.name, to: t.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [i(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? i(t.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(t.progressLabel))]) : a.file.data.size ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [a._v(a._s(t.sizeLabel))]) : a._e()], 1), t.hasSizeError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileExceedsSizeLimit")) + " ")]) : a._e(), t.hasDimensionsError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), t.hasTypeError && a.supportedFileTypes ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1), i("div", { staticClass: "b-file-uploader-file-card__actions" }, [t.hasLoadError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(
|
|
434
|
+
return i("div", { staticClass: "b-file-uploader-file-card", class: t.conditionalClasses }, [i("div", { staticClass: "b-file-uploader-file-card__details" }, [i("div", { staticClass: "b-file-uploader-file-card__info" }, [i(t.FileUploaderFileCardAnimation, { attrs: { name: t.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": t.showFileIcon } }, [i(t.fileUploaderIcon, { key: JSON.stringify(t.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: t.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), i("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [i(t.BentoLink, { attrs: { download: a.file.data.name, to: t.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [i(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? i(t.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(t.progressLabel))]) : a.file.data.size ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [a._v(a._s(t.sizeLabel))]) : a._e()], 1), t.hasSizeError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileExceedsSizeLimit")) + " ")]) : a._e(), t.hasDimensionsError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), t.hasTypeError && a.supportedFileTypes ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1), i("div", { staticClass: "b-file-uploader-file-card__actions" }, [t.hasLoadError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(p) {
|
|
441
435
|
return t.emit("retry");
|
|
442
436
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
443
437
|
return [i(t.RefreshIcon, { attrs: { "svg-title": t.t("retry") } })];
|
|
444
|
-
}, proxy: !0 }], null, !1, 3564309296) }, [a._v(" " + a._s(t.t("retry")) + " ")]) : a._e(), t.isLoading || t.hasError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(
|
|
438
|
+
}, proxy: !0 }], null, !1, 3564309296) }, [a._v(" " + a._s(t.t("retry")) + " ")]) : a._e(), t.isLoading || t.hasError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(p) {
|
|
445
439
|
return t.emit("cancel");
|
|
446
440
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
447
441
|
return [i(t.CrossIcon, { attrs: { "svg-title": t.t("cancel") } })];
|
|
448
|
-
}, proxy: !0 }], null, !1, 1692450141) }) : i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(
|
|
442
|
+
}, proxy: !0 }], null, !1, 1692450141) }) : i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(p) {
|
|
449
443
|
return t.emit("remove");
|
|
450
444
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
451
445
|
return [i(t.BinIcon, { attrs: { "svg-title": t.t("remove") } })];
|
|
452
446
|
}, proxy: !0 }]) })], 1)]);
|
|
453
|
-
},
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
447
|
+
}, tt = [], et = /* @__PURE__ */ f(
|
|
448
|
+
at,
|
|
449
|
+
it,
|
|
450
|
+
tt,
|
|
457
451
|
!1,
|
|
458
452
|
null,
|
|
459
453
|
"56f32ebc"
|
|
460
454
|
);
|
|
461
|
-
const
|
|
455
|
+
const nt = et.exports, ot = {
|
|
462
456
|
"en-US": {
|
|
463
457
|
maxFileSize: "Max file size: {size}",
|
|
464
458
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -467,10 +461,10 @@ const it = at.exports, tt = {
|
|
|
467
461
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
468
462
|
supportedFileTypes: "Supported file types: {list}"
|
|
469
463
|
}
|
|
470
|
-
},
|
|
471
|
-
i18n: { messages:
|
|
472
|
-
},
|
|
473
|
-
...
|
|
464
|
+
}, pt = {
|
|
465
|
+
i18n: { messages: ot }
|
|
466
|
+
}, lt = /* @__PURE__ */ H({
|
|
467
|
+
...pt,
|
|
474
468
|
__name: "file-uploader-restrictions",
|
|
475
469
|
props: {
|
|
476
470
|
condensed: { default: null },
|
|
@@ -481,82 +475,38 @@ const it = at.exports, tt = {
|
|
|
481
475
|
supportedFileTypes: { default: null }
|
|
482
476
|
},
|
|
483
477
|
setup(e) {
|
|
484
|
-
const a = e, { t: i, tc: t, locale:
|
|
478
|
+
const a = e, { t: i, tc: t, locale: p } = O(), o = m(() => ({
|
|
485
479
|
"b-file-uploader-restrictions--condensed": a.condensed,
|
|
486
480
|
"b-file-uploader-restrictions--disabled": a.disabled
|
|
487
481
|
}));
|
|
488
|
-
function l(
|
|
482
|
+
function l(r) {
|
|
489
483
|
return {
|
|
490
|
-
"b-file-uploader-restrictions--error":
|
|
484
|
+
"b-file-uploader-restrictions--error": r
|
|
491
485
|
};
|
|
492
486
|
}
|
|
493
|
-
const
|
|
487
|
+
const c = m(() => {
|
|
494
488
|
if (!a.maxDimensions)
|
|
495
489
|
return null;
|
|
496
490
|
const {
|
|
497
|
-
value: { width:
|
|
491
|
+
value: { width: r, height: v }
|
|
498
492
|
} = a.maxDimensions;
|
|
499
|
-
return
|
|
493
|
+
return r && v ? i("maxImageDimensions", { width: r, height: v }) : r ? i("maxImageWidth", { width: r }) : v ? i("maxImageHeight", { height: v }) : null;
|
|
500
494
|
});
|
|
501
|
-
return { __sfc: !0, props: a, t: i, tc: t, locale:
|
|
495
|
+
return { __sfc: !0, props: a, t: i, tc: t, locale: p, conditionalClasses: o, setRestrictionErrorClass: l, maxDimensionsLabel: c, BentoTypography: G, formatFileSize: va };
|
|
502
496
|
}
|
|
503
497
|
});
|
|
504
|
-
var
|
|
498
|
+
var st = function() {
|
|
505
499
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
506
500
|
return i("div", { staticClass: "b-file-uploader-restrictions", class: t.conditionalClasses }, [a.supportedFileTypes ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.supportedFileTypes.error) }, [a._v(" " + a._s(t.t("supportedFileTypes", { list: a.supportedFileTypes.value })) + " ")]) : a._e(), a.maxSize ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxSize.error) }, [a._v(" " + a._s(t.t("maxFileSize", { size: t.formatFileSize(t.locale, a.maxSize.value) })) + " ")]) : a._e(), a.maxDimensions ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxDimensions.error) }, [a._v(" " + a._s(t.maxDimensionsLabel) + " ")]) : a._e(), a.maxCount ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxCount.error) }, [a._v(" " + a._s(t.tc("maxUpload", a.maxCount.value)) + " ")]) : a._e()], 1);
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
501
|
+
}, ct = [], rt = /* @__PURE__ */ f(
|
|
502
|
+
lt,
|
|
503
|
+
st,
|
|
504
|
+
ct,
|
|
511
505
|
!1,
|
|
512
506
|
null,
|
|
513
507
|
"3c1d05d1"
|
|
514
508
|
);
|
|
515
|
-
const
|
|
516
|
-
function ct(e) {
|
|
517
|
-
const { locale: a, t: i } = H();
|
|
518
|
-
return { supportedFileTypeList: m(() => {
|
|
519
|
-
const o = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
|
|
520
|
-
return e != null && e.value ? o.format(
|
|
521
|
-
e.value.split(",").map((n) => {
|
|
522
|
-
const l = n.trim();
|
|
523
|
-
switch (l) {
|
|
524
|
-
case "audio/*":
|
|
525
|
-
return i("audioFiles");
|
|
526
|
-
case "image/*":
|
|
527
|
-
return i("imageFiles");
|
|
528
|
-
case "video/*":
|
|
529
|
-
return i("videoFiles");
|
|
530
|
-
default:
|
|
531
|
-
return l.toUpperCase();
|
|
532
|
-
}
|
|
533
|
-
})
|
|
534
|
-
) : null;
|
|
535
|
-
}) };
|
|
536
|
-
}
|
|
537
|
-
const rt = {
|
|
538
|
-
"en-US": {
|
|
539
|
-
audioFiles: "audio files",
|
|
540
|
-
browseFiles: "Browse files",
|
|
541
|
-
dropArea: "Drop area",
|
|
542
|
-
dropFiles: "Drop file to upload | Drop files to upload",
|
|
543
|
-
fileExceedsSizeLimit: "File exceeds size limit",
|
|
544
|
-
imageFiles: "image files",
|
|
545
|
-
tooManyFiles: "Too many files",
|
|
546
|
-
upload: "Upload",
|
|
547
|
-
videoFiles: "video files",
|
|
548
|
-
warning: "Warning",
|
|
549
|
-
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
550
|
-
},
|
|
551
|
-
"ja-JP": {
|
|
552
|
-
upload: "アップロード",
|
|
553
|
-
warning: "警告"
|
|
554
|
-
},
|
|
555
|
-
"pt-BR": {
|
|
556
|
-
upload: "Carregar",
|
|
557
|
-
warning: "Aviso"
|
|
558
|
-
}
|
|
559
|
-
}, va = {
|
|
509
|
+
const dt = rt.exports, ua = {
|
|
560
510
|
"application/prs.cww": ["cww"],
|
|
561
511
|
"application/prs.xsf+xml": ["xsf"],
|
|
562
512
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1255,8 +1205,8 @@ const rt = {
|
|
|
1255
1205
|
"video/x-smv": ["smv"],
|
|
1256
1206
|
"x-conference/x-cooltalk": ["ice"]
|
|
1257
1207
|
};
|
|
1258
|
-
Object.freeze(
|
|
1259
|
-
const
|
|
1208
|
+
Object.freeze(ua);
|
|
1209
|
+
const fa = {
|
|
1260
1210
|
"application/andrew-inset": ["ez"],
|
|
1261
1211
|
"application/appinstaller": ["appinstaller"],
|
|
1262
1212
|
"application/applixware": ["aw"],
|
|
@@ -1608,31 +1558,31 @@ const ua = {
|
|
|
1608
1558
|
"video/quicktime": ["qt", "mov"],
|
|
1609
1559
|
"video/webm": ["webm"]
|
|
1610
1560
|
};
|
|
1611
|
-
Object.freeze(
|
|
1561
|
+
Object.freeze(fa);
|
|
1612
1562
|
var g = function(e, a, i, t) {
|
|
1613
1563
|
if (i === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
|
|
1614
1564
|
if (typeof a == "function" ? e !== a || !t : !a.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1615
1565
|
return i === "m" ? t : i === "a" ? t.call(e) : t ? t.value : a.get(e);
|
|
1616
|
-
}, z,
|
|
1617
|
-
class
|
|
1566
|
+
}, z, $, y;
|
|
1567
|
+
class mt {
|
|
1618
1568
|
constructor(...a) {
|
|
1619
|
-
z.set(this, /* @__PURE__ */ new Map()),
|
|
1569
|
+
z.set(this, /* @__PURE__ */ new Map()), $.set(this, /* @__PURE__ */ new Map()), y.set(this, /* @__PURE__ */ new Map());
|
|
1620
1570
|
for (const i of a)
|
|
1621
1571
|
this.define(i);
|
|
1622
1572
|
}
|
|
1623
1573
|
define(a, i = !1) {
|
|
1624
|
-
for (let [t,
|
|
1625
|
-
t = t.toLowerCase(),
|
|
1626
|
-
const
|
|
1574
|
+
for (let [t, p] of Object.entries(a)) {
|
|
1575
|
+
t = t.toLowerCase(), p = p.map((c) => c.toLowerCase()), g(this, y, "f").has(t) || g(this, y, "f").set(t, /* @__PURE__ */ new Set());
|
|
1576
|
+
const o = g(this, y, "f").get(t);
|
|
1627
1577
|
let l = !0;
|
|
1628
|
-
for (let
|
|
1629
|
-
const
|
|
1630
|
-
if (
|
|
1578
|
+
for (let c of p) {
|
|
1579
|
+
const r = c.startsWith("*");
|
|
1580
|
+
if (c = r ? c.slice(1) : c, o == null || o.add(c), l && g(this, $, "f").set(t, c), l = !1, r)
|
|
1631
1581
|
continue;
|
|
1632
|
-
const v = g(this, z, "f").get(
|
|
1582
|
+
const v = g(this, z, "f").get(c);
|
|
1633
1583
|
if (v && v != t && !i)
|
|
1634
|
-
throw new Error(`"${t} -> ${
|
|
1635
|
-
g(this, z, "f").set(
|
|
1584
|
+
throw new Error(`"${t} -> ${c}" conflicts with "${v} -> ${c}". Pass \`force=true\` to override this definition.`);
|
|
1585
|
+
g(this, z, "f").set(c, t);
|
|
1636
1586
|
}
|
|
1637
1587
|
}
|
|
1638
1588
|
return this;
|
|
@@ -1640,12 +1590,12 @@ class dt {
|
|
|
1640
1590
|
getType(a) {
|
|
1641
1591
|
if (typeof a != "string")
|
|
1642
1592
|
return null;
|
|
1643
|
-
const i = a.replace(/^.*[/\\]/, "").toLowerCase(), t = i.replace(/^.*\./, "").toLowerCase(),
|
|
1644
|
-
return !(t.length < i.length - 1) &&
|
|
1593
|
+
const i = a.replace(/^.*[/\\]/, "").toLowerCase(), t = i.replace(/^.*\./, "").toLowerCase(), p = i.length < a.length;
|
|
1594
|
+
return !(t.length < i.length - 1) && p ? null : g(this, z, "f").get(t) ?? null;
|
|
1645
1595
|
}
|
|
1646
1596
|
getExtension(a) {
|
|
1647
1597
|
var i;
|
|
1648
|
-
return typeof a != "string" ? null : (a = (i = a == null ? void 0 : a.split) == null ? void 0 : i.call(a, ";")[0], (a && g(this,
|
|
1598
|
+
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
1599
|
}
|
|
1650
1600
|
getAllExtensions(a) {
|
|
1651
1601
|
return typeof a != "string" ? null : g(this, y, "f").get(a.toLowerCase()) ?? null;
|
|
@@ -1661,51 +1611,97 @@ class dt {
|
|
|
1661
1611
|
_getTestState() {
|
|
1662
1612
|
return {
|
|
1663
1613
|
types: g(this, z, "f"),
|
|
1664
|
-
extensions: g(this,
|
|
1614
|
+
extensions: g(this, $, "f")
|
|
1665
1615
|
};
|
|
1666
1616
|
}
|
|
1667
1617
|
}
|
|
1668
|
-
z = /* @__PURE__ */ new WeakMap(),
|
|
1669
|
-
const
|
|
1618
|
+
z = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap();
|
|
1619
|
+
const xa = new mt(fa, ua)._freeze();
|
|
1670
1620
|
function vt(e) {
|
|
1671
|
-
return
|
|
1621
|
+
return e.includes("/") ? `.${xa.getExtension(e).toUpperCase()}` : e.toUpperCase();
|
|
1672
1622
|
}
|
|
1673
|
-
function ut(
|
|
1674
|
-
const i =
|
|
1623
|
+
function ut(e) {
|
|
1624
|
+
const { locale: a, t: i } = O();
|
|
1625
|
+
return { supportedFileTypeList: m(() => {
|
|
1626
|
+
const p = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
|
|
1627
|
+
return e != null && e.value ? p.format(
|
|
1628
|
+
e.value.split(",").map((o) => {
|
|
1629
|
+
switch (o.trim()) {
|
|
1630
|
+
case "audio/*":
|
|
1631
|
+
return i("audioFiles");
|
|
1632
|
+
case "image/*":
|
|
1633
|
+
return i("imageFiles");
|
|
1634
|
+
case "video/*":
|
|
1635
|
+
return i("videoFiles");
|
|
1636
|
+
default:
|
|
1637
|
+
return vt(o);
|
|
1638
|
+
}
|
|
1639
|
+
})
|
|
1640
|
+
) : null;
|
|
1641
|
+
}) };
|
|
1642
|
+
}
|
|
1643
|
+
const ft = {
|
|
1644
|
+
"en-US": {
|
|
1645
|
+
audioFiles: "audio files",
|
|
1646
|
+
browseFiles: "Browse files",
|
|
1647
|
+
dropArea: "Drop area",
|
|
1648
|
+
dropFiles: "Drop file to upload | Drop files to upload",
|
|
1649
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
1650
|
+
imageFiles: "image files",
|
|
1651
|
+
tooManyFiles: "Too many files",
|
|
1652
|
+
upload: "Upload",
|
|
1653
|
+
videoFiles: "video files",
|
|
1654
|
+
warning: "Warning",
|
|
1655
|
+
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1656
|
+
},
|
|
1657
|
+
"ja-JP": {
|
|
1658
|
+
upload: "アップロード",
|
|
1659
|
+
warning: "警告"
|
|
1660
|
+
},
|
|
1661
|
+
"pt-BR": {
|
|
1662
|
+
upload: "Carregar",
|
|
1663
|
+
warning: "Aviso"
|
|
1664
|
+
}
|
|
1665
|
+
};
|
|
1666
|
+
function xt(e) {
|
|
1667
|
+
return xa.getType(e) ?? e;
|
|
1668
|
+
}
|
|
1669
|
+
function gt({ maxCount: e, accept: a }) {
|
|
1670
|
+
const i = W({
|
|
1675
1671
|
invalidTypes: !1,
|
|
1676
1672
|
partiallyInvalidTypes: !1,
|
|
1677
1673
|
maxCountOverflow: !1
|
|
1678
|
-
}), t =
|
|
1674
|
+
}), t = W({
|
|
1679
1675
|
dragging: !1,
|
|
1680
1676
|
error: !1
|
|
1681
|
-
}),
|
|
1682
|
-
function
|
|
1677
|
+
}), p = m(() => a.value ? a.value.split(",").map((r) => xt(r.trim().toLocaleLowerCase())) : void 0);
|
|
1678
|
+
function o() {
|
|
1683
1679
|
t.dragging = !1, t.error = !1, i.invalidTypes = !1, i.partiallyInvalidTypes = !1, i.maxCountOverflow = !1;
|
|
1684
1680
|
}
|
|
1685
|
-
function l(
|
|
1686
|
-
if (t.dragging = !0, (!
|
|
1681
|
+
function l(c, r) {
|
|
1682
|
+
if (t.dragging = !0, (!r.dataTransfer.types.includes("Files") || c > e.value) && (i.maxCountOverflow = !0, t.error = !0), !p.value)
|
|
1687
1683
|
return;
|
|
1688
1684
|
let v = 0;
|
|
1689
|
-
for (const w of
|
|
1690
|
-
|
|
1685
|
+
for (const w of r.dataTransfer.items)
|
|
1686
|
+
p.value.includes(w.type) && v++;
|
|
1691
1687
|
if (v === 0) {
|
|
1692
1688
|
t.error = !0, i.invalidTypes = !0;
|
|
1693
1689
|
return;
|
|
1694
1690
|
}
|
|
1695
|
-
!i.invalidTypes && v !==
|
|
1691
|
+
!i.invalidTypes && v !== r.dataTransfer.items.length && (t.error = !0, i.partiallyInvalidTypes = !0);
|
|
1696
1692
|
}
|
|
1697
1693
|
return {
|
|
1698
1694
|
dragState: t,
|
|
1699
1695
|
dragErrors: i,
|
|
1700
|
-
resetDragState:
|
|
1696
|
+
resetDragState: o,
|
|
1701
1697
|
onDragEnterValidations: l
|
|
1702
1698
|
};
|
|
1703
1699
|
}
|
|
1704
|
-
const
|
|
1700
|
+
const ht = {
|
|
1705
1701
|
model: { prop: "modelValue" },
|
|
1706
|
-
i18n: { messages:
|
|
1707
|
-
},
|
|
1708
|
-
...
|
|
1702
|
+
i18n: { messages: ft }
|
|
1703
|
+
}, _t = /* @__PURE__ */ H({
|
|
1704
|
+
...ht,
|
|
1709
1705
|
__name: "file-uploader",
|
|
1710
1706
|
props: {
|
|
1711
1707
|
accept: { default: null },
|
|
@@ -1722,13 +1718,13 @@ const ft = {
|
|
|
1722
1718
|
required: { type: Boolean },
|
|
1723
1719
|
tooltipText: { default: null }
|
|
1724
1720
|
},
|
|
1725
|
-
emits: ["change", "update:modelValue"],
|
|
1721
|
+
emits: ["change", "update:modelValue", "error:upload"],
|
|
1726
1722
|
setup(e, { emit: a }) {
|
|
1727
|
-
const i = e, { t, tc:
|
|
1728
|
-
accept:
|
|
1729
|
-
maxCount:
|
|
1730
|
-
}),
|
|
1731
|
-
var
|
|
1723
|
+
const i = e, { t, tc: p } = O(), { supportedFileTypeList: o } = ut(A(i, "accept")), l = b(null), c = b(null), r = P("input"), v = P("input-error"), { dragState: w, dragErrors: C, resetDragState: k, onDragEnterValidations: E } = gt({
|
|
1724
|
+
accept: A(i, "accept"),
|
|
1725
|
+
maxCount: A(i, "maxCount")
|
|
1726
|
+
}), B = m(() => {
|
|
1727
|
+
var n, s, u;
|
|
1732
1728
|
return {
|
|
1733
1729
|
condensed: i.condensed,
|
|
1734
1730
|
disabled: i.disabled,
|
|
@@ -1738,142 +1734,151 @@ const ft = {
|
|
|
1738
1734
|
} : null,
|
|
1739
1735
|
maxDimensions: i.maxDimensions ? {
|
|
1740
1736
|
value: i.maxDimensions,
|
|
1741
|
-
error: (
|
|
1737
|
+
error: (n = l.value) == null ? void 0 : n.some((_) => _.errors.includes(x.ERROR_DIMENSIONS))
|
|
1742
1738
|
} : null,
|
|
1743
1739
|
maxSize: i.maxSize ? {
|
|
1744
1740
|
value: i.maxSize,
|
|
1745
|
-
error: (
|
|
1741
|
+
error: (s = l.value) == null ? void 0 : s.some((_) => _.errors.includes(x.ERROR_SIZE))
|
|
1746
1742
|
} : null,
|
|
1747
|
-
supportedFileTypes:
|
|
1748
|
-
value:
|
|
1743
|
+
supportedFileTypes: o.value ? {
|
|
1744
|
+
value: o.value,
|
|
1749
1745
|
error: C.invalidTypes || C.partiallyInvalidTypes || ((u = l.value) == null ? void 0 : u.some((_) => _.errors.includes(x.ERROR_TYPE)))
|
|
1750
1746
|
} : null
|
|
1751
1747
|
};
|
|
1752
|
-
}), R = b(),
|
|
1753
|
-
[`b-file-uploader--${
|
|
1754
|
-
[`b-file-uploader--${
|
|
1755
|
-
[`b-file-uploader--${
|
|
1748
|
+
}), R = b(), L = m(() => ({
|
|
1749
|
+
[`b-file-uploader--${D.DISABLED}`]: i.disabled,
|
|
1750
|
+
[`b-file-uploader--${D.DRAG_OVER}`]: w.dragging,
|
|
1751
|
+
[`b-file-uploader--${D.ERROR}`]: T.value,
|
|
1756
1752
|
"b-file-uploader--condensed": i.condensed
|
|
1757
|
-
})), j = m(() => i.maxCount > 1),
|
|
1758
|
-
var
|
|
1759
|
-
return i.maxCount && ((
|
|
1753
|
+
})), j = m(() => i.maxCount > 1), q = m(() => {
|
|
1754
|
+
var n;
|
|
1755
|
+
return i.maxCount && ((n = l.value) == null ? void 0 : n.length) >= i.maxCount;
|
|
1756
|
+
}), I = m(() => {
|
|
1757
|
+
var n;
|
|
1758
|
+
return (n = l.value) == null ? void 0 : n.some((s) => s.state === "loading");
|
|
1760
1759
|
}), T = m(() => !!i.errorMessage || w.error), F = m(() => {
|
|
1761
|
-
var
|
|
1762
|
-
return ((
|
|
1763
|
-
}), M = b(!1)
|
|
1764
|
-
|
|
1765
|
-
|
|
1760
|
+
var n;
|
|
1761
|
+
return ((n = l.value) == null ? void 0 : n.length) > i.maxCount;
|
|
1762
|
+
}), M = b(!1), S = m(() => {
|
|
1763
|
+
var n;
|
|
1764
|
+
return (n = l.value) == null ? void 0 : n.some((s) => s.state === "error");
|
|
1765
|
+
});
|
|
1766
|
+
N(S, (n) => {
|
|
1767
|
+
I.value || a("error:upload", n);
|
|
1768
|
+
});
|
|
1769
|
+
function ga(n) {
|
|
1770
|
+
l.value = l.value.filter(({ id: s }) => s !== n.id);
|
|
1766
1771
|
}
|
|
1767
|
-
function
|
|
1768
|
-
const
|
|
1769
|
-
id:
|
|
1770
|
-
data:
|
|
1772
|
+
function Z(n) {
|
|
1773
|
+
const s = W({
|
|
1774
|
+
id: P("file"),
|
|
1775
|
+
data: n,
|
|
1771
1776
|
errors: [],
|
|
1772
1777
|
progress: null,
|
|
1773
1778
|
state: h.LOADING,
|
|
1774
|
-
type:
|
|
1779
|
+
type: ii(n)
|
|
1775
1780
|
});
|
|
1776
|
-
return
|
|
1781
|
+
return ei(s, i.accept, i.maxDimensions), s;
|
|
1777
1782
|
}
|
|
1778
|
-
function
|
|
1779
|
-
var
|
|
1780
|
-
((
|
|
1783
|
+
function ha(n) {
|
|
1784
|
+
var s;
|
|
1785
|
+
((s = l.value) == null ? void 0 : s.length) === i.maxCount && n.preventDefault();
|
|
1781
1786
|
}
|
|
1782
|
-
function
|
|
1783
|
-
if (i.maxCount === 1 &&
|
|
1784
|
-
|
|
1787
|
+
function U(n) {
|
|
1788
|
+
if (i.maxCount === 1 && n.length > i.maxCount) {
|
|
1789
|
+
V(), k();
|
|
1785
1790
|
return;
|
|
1786
1791
|
}
|
|
1787
|
-
j.value ? l.value = [...l.value || [], ...Array.from(
|
|
1792
|
+
j.value ? l.value = [...l.value || [], ...Array.from(n).map((s) => Z(s))] : l.value = [Z(n[0])];
|
|
1788
1793
|
}
|
|
1789
|
-
function
|
|
1794
|
+
function _a(n) {
|
|
1790
1795
|
var u, _;
|
|
1791
1796
|
if (i.disabled)
|
|
1792
1797
|
return;
|
|
1793
|
-
R.value =
|
|
1794
|
-
const
|
|
1795
|
-
E(
|
|
1798
|
+
R.value = n.target;
|
|
1799
|
+
const s = (((u = n.dataTransfer.items) == null ? void 0 : u.length) ?? 0) + (((_ = l.value) == null ? void 0 : _.length) ?? 0);
|
|
1800
|
+
E(s, n);
|
|
1796
1801
|
}
|
|
1797
|
-
function
|
|
1802
|
+
function V() {
|
|
1798
1803
|
R.value = null;
|
|
1799
1804
|
}
|
|
1800
|
-
function
|
|
1801
|
-
R.value ===
|
|
1805
|
+
function ba(n) {
|
|
1806
|
+
R.value === n.target && (V(), k());
|
|
1802
1807
|
}
|
|
1803
|
-
function
|
|
1804
|
-
|
|
1808
|
+
function wa(n) {
|
|
1809
|
+
n.preventDefault(), i.disabled && (n.dataTransfer.dropEffect = "none");
|
|
1805
1810
|
}
|
|
1806
|
-
function
|
|
1807
|
-
var
|
|
1808
|
-
i.disabled || (!C.invalidTypes && ((
|
|
1811
|
+
function Ca(n) {
|
|
1812
|
+
var s;
|
|
1813
|
+
i.disabled || (!C.invalidTypes && ((s = n.dataTransfer.files) != null && s.length) && U(n.dataTransfer.files), V(), k());
|
|
1809
1814
|
}
|
|
1810
|
-
function
|
|
1811
|
-
var
|
|
1812
|
-
(
|
|
1815
|
+
function ya() {
|
|
1816
|
+
var n;
|
|
1817
|
+
(n = c.value.files) != null && n.length && U(c.value.files), c.value.value = "";
|
|
1813
1818
|
}
|
|
1814
|
-
function
|
|
1815
|
-
const
|
|
1816
|
-
M.value = !
|
|
1819
|
+
function Y(n) {
|
|
1820
|
+
const s = i.maxCount && n.length <= i.maxCount;
|
|
1821
|
+
M.value = !s;
|
|
1817
1822
|
}
|
|
1818
|
-
function
|
|
1819
|
-
i.maxSize &&
|
|
1820
|
-
const u =
|
|
1823
|
+
function X(n) {
|
|
1824
|
+
i.maxSize && n.forEach((s) => {
|
|
1825
|
+
const u = s;
|
|
1821
1826
|
u.data.size > i.maxSize && (u.state = h.ERROR, u.errors.push(x.ERROR_SIZE));
|
|
1822
1827
|
});
|
|
1823
1828
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const
|
|
1829
|
+
function J(n) {
|
|
1830
|
+
const s = n.filter(
|
|
1826
1831
|
({ errors: u }) => !u.includes(x.ERROR_LOAD) && !u.includes(x.ERROR_SIZE)
|
|
1827
1832
|
);
|
|
1828
|
-
if (
|
|
1833
|
+
if (s.length) {
|
|
1829
1834
|
const u = new DataTransfer();
|
|
1830
|
-
return
|
|
1835
|
+
return s.forEach(({ data: _ }) => u.items.add(_)), u.files;
|
|
1831
1836
|
}
|
|
1832
1837
|
}
|
|
1833
|
-
return
|
|
1834
|
-
if (
|
|
1835
|
-
|
|
1836
|
-
const
|
|
1837
|
-
a("change",
|
|
1838
|
+
return N(l, (n) => {
|
|
1839
|
+
if (n) {
|
|
1840
|
+
Y(n), X(n);
|
|
1841
|
+
const s = J(n);
|
|
1842
|
+
a("change", s), a("update:modelValue", s);
|
|
1838
1843
|
} else
|
|
1839
1844
|
a("change"), a("update:modelValue");
|
|
1840
|
-
}), { __sfc: !0, t, tc:
|
|
1845
|
+
}), { __sfc: !0, t, tc: p, emit: a, props: i, supportedFileTypeList: o, files: l, inputRef: c, inputFieldId: r, errorId: v, dragState: w, dragErrors: C, resetDragState: k, onDragEnterValidations: E, fileUploadRestrictionsProps: B, enterTarget: R, conditionalClasses: L, isMultiple: j, hideArea: q, loadingStateExists: I, hasError: T, maxFileCountError: F, maxFileError: M, hasRestrictionError: S, removeFile: ga, processFile: Z, onInputClick: ha, onFileInput: U, onDragEnter: _a, resetEnterTarget: V, onDragLeave: ba, onDragOver: wa, onDrop: Ca, onInputChange: ya, verifyFileCount: Y, verifyFileSize: X, convertToFileList: J, UploadIcon: Oa, WarningFilledIcon: ra, BentoAlert: ja, BentoButton: da, BentoTypography: G, ErrorMessage: Ma, FieldLabel: Fa, FileUploaderFileCard: nt, FileUploaderRestrictions: dt };
|
|
1841
1846
|
}
|
|
1842
1847
|
});
|
|
1843
|
-
var
|
|
1844
|
-
var
|
|
1848
|
+
var bt = function() {
|
|
1849
|
+
var p;
|
|
1845
1850
|
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(
|
|
1851
|
+
return i("div", { staticClass: "b-file-uploader", class: t.conditionalClasses }, [i(t.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: t.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), i("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: t.inputFieldId, type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: t.isMultiple }, on: { change: t.onInputChange, click: t.onInputClick } }), t.hideArea ? a._e() : i("div", { staticClass: "b-file-uploader__area", attrs: { "aria-label": t.t("dropArea"), tabindex: a.disabled ? -1 : 0 }, on: { click: function(o) {
|
|
1847
1852
|
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 !
|
|
1853
|
+
}, dragenter: function(o) {
|
|
1854
|
+
return o.stopPropagation(), o.preventDefault(), t.onDragEnter.apply(null, arguments);
|
|
1855
|
+
}, dragleave: function(o) {
|
|
1856
|
+
return o.stopPropagation(), o.preventDefault(), t.onDragLeave.apply(null, arguments);
|
|
1857
|
+
}, drop: function(o) {
|
|
1858
|
+
return o.stopPropagation(), o.preventDefault(), t.onDrop.apply(null, arguments);
|
|
1859
|
+
}, dragover: t.onDragOver, "!keydown": [function(o) {
|
|
1860
|
+
return !o.type.indexOf("key") && a._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : (o.preventDefault(), t.inputRef.click());
|
|
1861
|
+
}, function(o) {
|
|
1862
|
+
return !o.type.indexOf("key") && a._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : (o.preventDefault(), t.inputRef.click());
|
|
1858
1863
|
}] } }, [i("div", { staticClass: "b-file-uploader__icon" }, [t.hasError ? i(t.WarningFilledIcon, { attrs: { "svg-title": t.t("warning") } }) : i(t.UploadIcon, { attrs: { "svg-title": t.t("upload") } })], 1), a.condensed ? a._e() : [i(t.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { el: "span", strongest: "" } }, [a._v(" " + a._s(t.tc("dropFiles", a.maxCount)) + " ")]), a.description ? i(t.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), i(t.FileUploaderRestrictions, a._b({}, "file-uploader-restrictions", t.fileUploadRestrictionsProps, !1))], i(t.BentoButton, { staticClass: "b-file-uploader__button", attrs: { disabled: a.disabled, variant: a.condensed ? "tertiary" : "secondary", condensed: "", tabindex: "-1" } }, [a._v(" " + a._s(t.t("browseFiles")) + " ")])], 2), t.hasError && a.errorMessage ? i(t.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: t.errorId, "error-message": a.errorMessage } }) : a._e(), a.condensed && a.description ? i(t.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), a.condensed ? i(t.FileUploaderRestrictions, a._b({}, "file-uploader-restrictions", t.fileUploadRestrictionsProps, !1)) : a._e(), t.maxFileCountError ? i(t.BentoAlert, { attrs: { type: "critical" }, scopedSlots: a._u([{ key: "description", fn: function() {
|
|
1859
1864
|
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: (
|
|
1861
|
-
return i(t.FileUploaderFileCard, { key:
|
|
1862
|
-
return t.removeFile(
|
|
1865
|
+
}, proxy: !0 }], null, !1, 239749076) }, [a._v(" " + a._s(t.t("tooManyFiles")) + " ")]) : a._e(), i("div", { directives: [{ name: "show", rawName: "v-show", value: (p = t.files) == null ? void 0 : p.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(t.files, function(o) {
|
|
1866
|
+
return i(t.FileUploaderFileCard, { key: o.id, attrs: { file: o, "supported-file-types": t.supportedFileTypeList }, on: { cancel: function(l) {
|
|
1867
|
+
return t.removeFile(o);
|
|
1863
1868
|
}, remove: function(l) {
|
|
1864
|
-
return t.removeFile(
|
|
1869
|
+
return t.removeFile(o);
|
|
1865
1870
|
} } });
|
|
1866
1871
|
}), 1)], 1);
|
|
1867
|
-
},
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1872
|
+
}, wt = [], Ct = /* @__PURE__ */ f(
|
|
1873
|
+
_t,
|
|
1874
|
+
bt,
|
|
1875
|
+
wt,
|
|
1871
1876
|
!1,
|
|
1872
1877
|
null,
|
|
1873
|
-
"
|
|
1878
|
+
"83f464d9"
|
|
1874
1879
|
);
|
|
1875
|
-
const
|
|
1880
|
+
const Ot = Ct.exports;
|
|
1876
1881
|
export {
|
|
1877
|
-
|
|
1882
|
+
Ot as f
|
|
1878
1883
|
};
|
|
1879
|
-
//# sourceMappingURL=file-uploader.
|
|
1884
|
+
//# sourceMappingURL=file-uploader.DTkxh9Ct.js.map
|