@adyen/bento-vue2 1.41.0 → 1.42.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/components.d.ts +4 -0
- package/dist/@types/index.d.ts +457 -54
- package/dist/action-bar.js +1 -1
- package/dist/alert.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 -0
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -0
- package/dist/assets/input-field.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/assets/step.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.r05wfyni.js → action-bar.C1iwQWyj.js} +5 -5
- package/dist/chunks/{action-bar.r05wfyni.js.map → action-bar.C1iwQWyj.js.map} +1 -1
- package/dist/chunks/{alert.Y4JUnmhl.js → alert.D2Z_aiFC.js} +19 -19
- package/dist/chunks/{alert.Y4JUnmhl.js.map → alert.D2Z_aiFC.js.map} +1 -1
- package/dist/chunks/{base-modal.SJX9uGT4.js → base-modal.DroVbSCn.js} +2 -2
- package/dist/chunks/{base-modal.SJX9uGT4.js.map → base-modal.DroVbSCn.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js → button-actions-with-menu.dp6C-PKX.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js.map → button-actions-with-menu.dp6C-PKX.js.map} +1 -1
- package/dist/chunks/{button-actions.BJMK3kZC.js → button-actions.Cpx4PQp0.js} +2 -2
- package/dist/chunks/{button-actions.BJMK3kZC.js.map → button-actions.Cpx4PQp0.js.map} +1 -1
- package/dist/chunks/{card.Cfj-r6CX.js → card.BcjxzwZV.js} +2 -2
- package/dist/chunks/{card.Cfj-r6CX.js.map → card.BcjxzwZV.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BEI5FPnW.js → checkbox-group.B1FsPVSl.js} +4 -4
- package/dist/chunks/{checkbox-group.BEI5FPnW.js.map → checkbox-group.B1FsPVSl.js.map} +1 -1
- package/dist/chunks/{checkbox.5uVM-HLg.js → checkbox.kd1EnszA.js} +16 -16
- package/dist/chunks/{checkbox.5uVM-HLg.js.map → checkbox.kd1EnszA.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.Cn7JN_Tk.js} +5 -5
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.Cn7JN_Tk.js.map} +1 -1
- package/dist/chunks/{code-snippet.DRH4X9pH.js → code-snippet.DGMVhQoj.js} +5 -5
- package/dist/chunks/{code-snippet.DRH4X9pH.js.map → code-snippet.DGMVhQoj.js.map} +1 -1
- package/dist/chunks/{controls-group.Sni8leS5.js → controls-group.J8shO_JL.js} +2 -2
- package/dist/chunks/{controls-group.Sni8leS5.js.map → controls-group.J8shO_JL.js.map} +1 -1
- package/dist/chunks/{copy.C5j6vSQT.js → copy.DgzxvExj.js} +2 -2
- package/dist/chunks/{copy.C5j6vSQT.js.map → copy.DgzxvExj.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DchlD4B2.js → dashboard-section.D8ey7nzl.js} +3 -3
- package/dist/chunks/{dashboard-section.DchlD4B2.js.map → dashboard-section.D8ey7nzl.js.map} +1 -1
- package/dist/chunks/{dashed-underline.6Aw4MP34.js → dashed-underline.dGO33Q_E.js} +3 -3
- package/dist/chunks/{dashed-underline.6Aw4MP34.js.map → dashed-underline.dGO33Q_E.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Bhotcrsr.js → data-grid-template.BF7JMfoJ.js} +2 -2
- package/dist/chunks/{data-grid-template.Bhotcrsr.js.map → data-grid-template.BF7JMfoJ.js.map} +1 -1
- package/dist/chunks/{data-grid.ahAWR42s.js → data-grid.bti50Fs6.js} +459 -494
- package/dist/chunks/data-grid.bti50Fs6.js.map +1 -0
- package/dist/chunks/{date-picker.lFLlAGXs.js → date-picker.Dfg1_eo6.js} +3 -3
- package/dist/chunks/{date-picker.lFLlAGXs.js.map → date-picker.Dfg1_eo6.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Cr_YCwxP.js → date-range-picker.BvHFTptS.js} +7 -7
- package/dist/chunks/{date-range-picker.Cr_YCwxP.js.map → date-range-picker.BvHFTptS.js.map} +1 -1
- package/dist/chunks/dot.BCX4w7eT.js +24 -0
- package/dist/chunks/dot.BCX4w7eT.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BPkMWSmY.js → dropdown-tag.DqgJnpjk.js} +3 -3
- package/dist/chunks/{dropdown-tag.BPkMWSmY.js.map → dropdown-tag.DqgJnpjk.js.map} +1 -1
- package/dist/chunks/{dropdown.D8xKm1YA.js → dropdown.2tXfuDlU.js} +4 -4
- package/dist/chunks/{dropdown.D8xKm1YA.js.map → dropdown.2tXfuDlU.js.map} +1 -1
- package/dist/chunks/{error-message.Bk2maRF8.js → error-message.B7uoqQpq.js} +2 -2
- package/dist/chunks/{error-message.Bk2maRF8.js.map → error-message.B7uoqQpq.js.map} +1 -1
- package/dist/chunks/es6.b4enG1py.js.map +1 -1
- package/dist/chunks/file-uploader.CK-Frs_q.js +728 -0
- package/dist/chunks/file-uploader.CK-Frs_q.js.map +1 -0
- package/dist/chunks/{filter-bar.dQZY8j9C.js → filter-bar.DP_nQeeo.js} +702 -697
- package/dist/chunks/filter-bar.DP_nQeeo.js.map +1 -0
- package/dist/chunks/{footer-actions.B68XcD93.js → footer-actions.DwnLB4NW.js} +2 -2
- package/dist/chunks/{footer-actions.B68XcD93.js.map → footer-actions.DwnLB4NW.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Cd2WlefD.js → form-layout-title.BarHgyjC.js} +2 -2
- package/dist/chunks/{form-layout-title.Cd2WlefD.js.map → form-layout-title.BarHgyjC.js.map} +1 -1
- package/dist/chunks/{header.DwTrDlSa.js → header.CAJtHW1k.js} +4 -4
- package/dist/chunks/{header.DwTrDlSa.js.map → header.CAJtHW1k.js.map} +1 -1
- package/dist/chunks/index.BiaBX5uu.js +345 -0
- package/dist/chunks/{index.D5am6ibQ.js.map → index.BiaBX5uu.js.map} +1 -1
- package/dist/chunks/{info-icon.CCR-cAFR.js → info-icon.p-28zHUJ.js} +2 -2
- package/dist/chunks/{info-icon.CCR-cAFR.js.map → info-icon.p-28zHUJ.js.map} +1 -1
- package/dist/chunks/input-field-password.ijBN-aVx.js +191 -0
- package/dist/chunks/input-field-password.ijBN-aVx.js.map +1 -0
- package/dist/chunks/{input-field.CKOdyDVy.js → input-field.BoElSWuV.js} +37 -35
- package/dist/chunks/input-field.BoElSWuV.js.map +1 -0
- package/dist/chunks/{layout-row.CtFsZ5-v.js → layout-row.6jCBhtd4.js} +2 -2
- package/dist/chunks/{layout-row.CtFsZ5-v.js.map → layout-row.6jCBhtd4.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CuHL51H9.js → listbox-option-tag.BnX0H4HE.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CuHL51H9.js.map → listbox-option-tag.BnX0H4HE.js.map} +1 -1
- package/dist/chunks/{loading-button.2h9RXXIZ.js → loading-button.CiPmvU7F.js} +2 -2
- package/dist/chunks/{loading-button.2h9RXXIZ.js.map → loading-button.CiPmvU7F.js.map} +1 -1
- package/dist/chunks/{menu.DEeyofbM.js → menu.N41WnXc8.js} +2 -2
- package/dist/chunks/{menu.DEeyofbM.js.map → menu.N41WnXc8.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Ct4aitSv.js → modal-fullscreen.BbNe6M9T.js} +2 -2
- package/dist/chunks/{modal-fullscreen.Ct4aitSv.js.map → modal-fullscreen.BbNe6M9T.js.map} +1 -1
- package/dist/chunks/{modal.tUtoM34X.js → modal.Cb4zg5fN.js} +4 -4
- package/dist/chunks/{modal.tUtoM34X.js.map → modal.Cb4zg5fN.js.map} +1 -1
- package/dist/chunks/{pagination.CqrSR1Md.js → pagination.FbkfItkS.js} +2 -2
- package/dist/chunks/{pagination.CqrSR1Md.js.map → pagination.FbkfItkS.js.map} +1 -1
- package/dist/chunks/{popover.BcWFpCY_.js → popover.Uy-vuQq5.js} +2 -2
- package/dist/chunks/{popover.BcWFpCY_.js.map → popover.Uy-vuQq5.js.map} +1 -1
- package/dist/chunks/{promo-banner.NSOVGA7M.js → promo-banner.CGz3MVPw.js} +2 -2
- package/dist/chunks/{promo-banner.NSOVGA7M.js.map → promo-banner.CGz3MVPw.js.map} +1 -1
- package/dist/chunks/{radio-group.DtlPzh_w.js → radio-group.EnMXbuly.js} +4 -4
- package/dist/chunks/{radio-group.DtlPzh_w.js.map → radio-group.EnMXbuly.js.map} +1 -1
- package/dist/chunks/{search-bar.CN9pWrLP.js → search-bar.DD6eA0jG.js} +3 -3
- package/dist/chunks/{search-bar.CN9pWrLP.js.map → search-bar.DD6eA0jG.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DMw1l7rH.js → secondary-nav.C56_jw55.js} +3 -3
- package/dist/chunks/{secondary-nav.DMw1l7rH.js.map → secondary-nav.C56_jw55.js.map} +1 -1
- package/dist/chunks/{segmented-control.uVH5ahVY.js → segmented-control.CVeUROYR.js} +2 -2
- package/dist/chunks/{segmented-control.uVH5ahVY.js.map → segmented-control.CVeUROYR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BjOuUbQD.js → selection-card-group.DwkH9xJd.js} +10 -10
- package/dist/chunks/{selection-card-group.BjOuUbQD.js.map → selection-card-group.DwkH9xJd.js.map} +1 -1
- package/dist/chunks/show.IEAxtCB7.js +43 -0
- package/dist/chunks/show.IEAxtCB7.js.map +1 -0
- package/dist/chunks/{sidepanel.BjrsqXLl.js → sidepanel.CRJN9Acz.js} +2 -2
- package/dist/chunks/{sidepanel.BjrsqXLl.js.map → sidepanel.CRJN9Acz.js.map} +1 -1
- package/dist/chunks/step.5g9BIi15.js +217 -0
- package/dist/chunks/step.5g9BIi15.js.map +1 -0
- package/dist/chunks/{structured-list-item.CAcBJutf.js → structured-list-item.BEhWyaVP.js} +4 -4
- package/dist/chunks/{structured-list-item.CAcBJutf.js.map → structured-list-item.BEhWyaVP.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CPprUptt.js → summary-grid-item-custom.CSXo4NjY.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.CPprUptt.js.map → summary-grid-item-custom.CSXo4NjY.js.map} +1 -1
- package/dist/chunks/{tag.DSFSfnAf.js → tag.wTXg-O7i.js} +2 -2
- package/dist/chunks/{tag.DSFSfnAf.js.map → tag.wTXg-O7i.js.map} +1 -1
- package/dist/chunks/{textarea.B4MZ_pi1.js → textarea.Y3yd_3ll.js} +2 -2
- package/dist/chunks/{textarea.B4MZ_pi1.js.map → textarea.Y3yd_3ll.js.map} +1 -1
- package/dist/chunks/{timeline-item.CxB3KFiu.js → timeline-item.CCV4U3Zx.js} +5 -5
- package/dist/chunks/{timeline-item.CxB3KFiu.js.map → timeline-item.CCV4U3Zx.js.map} +1 -1
- package/dist/chunks/{tooltip.CS2Gij6x.js → tooltip.DH8TqpYV.js} +84 -68
- package/dist/chunks/tooltip.DH8TqpYV.js.map +1 -0
- package/dist/chunks/{tutorial.CGjM0EJT.js → tutorial.4r7MKNEU.js} +4 -4
- package/dist/chunks/{tutorial.CGjM0EJT.js.map → tutorial.4r7MKNEU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.D5ARl96f.js → use-cached-selected-values.-_Gk6HO_.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.D5ARl96f.js.map → use-cached-selected-values.-_Gk6HO_.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 +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +227 -218
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field.js +1 -1
- package/dist/internal.js +6 -6
- 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/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/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +95 -34
- package/dist/styles/bento-light.css +95 -34
- package/dist/styles/bento.css +95 -34
- package/dist/styles/legacy.css +103 -42
- package/dist/styles/styleguide.css +95 -34
- 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 +550 -4
- package/package.json +6 -7
- package/dist/chunks/data-grid.ahAWR42s.js.map +0 -1
- package/dist/chunks/filter-bar.dQZY8j9C.js.map +0 -1
- package/dist/chunks/index.D5am6ibQ.js +0 -249
- package/dist/chunks/input-field.CKOdyDVy.js.map +0 -1
- package/dist/chunks/step.D3-7YL7-.js +0 -234
- package/dist/chunks/step.D3-7YL7-.js.map +0 -1
- package/dist/chunks/tooltip.CS2Gij6x.js.map +0 -1
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
import { defineComponent as H, ref as g, onUnmounted as le, onMounted as ce, computed as u, watch as Q, reactive as z, toRef as ue } from "vue";
|
|
2
|
+
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
3
|
+
import { W as ee } from "./warning-filled.CLKRzGMT.js";
|
|
4
|
+
import { B as de } from "./alert.D2Z_aiFC.js";
|
|
5
|
+
import { B as te } from "./button.CufUNBkv.js";
|
|
6
|
+
import { B as Z } from "./typography.Bu_WAKdf.js";
|
|
7
|
+
import { u as T } from "./i18n.BQkEbtPM.js";
|
|
8
|
+
import { g as B } from "./generate-uid.D-HFI38h.js";
|
|
9
|
+
import { i as se } from "./index.Cl4_42j5.js";
|
|
10
|
+
import { C as pe } from "./checkmark-circle-fill.Cn7JN_Tk.js";
|
|
11
|
+
import { C as fe } from "./cross.CsUPDmaA.js";
|
|
12
|
+
import { R as _e } from "./refresh.BKI9WwKh.js";
|
|
13
|
+
import { B as me } from "./link.v-y0fKjn.js";
|
|
14
|
+
import { B as Ce } from "./loading-indicator.z8COalOc.js";
|
|
15
|
+
import { B as ve } from "./tooltip.DH8TqpYV.js";
|
|
16
|
+
import { E as ge, F as he } from "./error-message.B7uoqQpq.js";
|
|
17
|
+
import "../assets/file-uploader.css";
|
|
18
|
+
let A = 0;
|
|
19
|
+
const ye = {
|
|
20
|
+
beforeCreate() {
|
|
21
|
+
this.uuid = A.toString(), A += 1;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var xe = function() {
|
|
25
|
+
var e = this, t = e._self._c;
|
|
26
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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" } }), t("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
|
+
}, be = [], Re = /* @__PURE__ */ f(
|
|
28
|
+
ye,
|
|
29
|
+
xe,
|
|
30
|
+
be,
|
|
31
|
+
!1,
|
|
32
|
+
null,
|
|
33
|
+
null
|
|
34
|
+
);
|
|
35
|
+
const Ee = Re.exports, $e = /* @__PURE__ */ H({
|
|
36
|
+
__name: "file-uploader-file-card-animation",
|
|
37
|
+
props: {
|
|
38
|
+
name: null,
|
|
39
|
+
showFileIcon: { type: Boolean }
|
|
40
|
+
},
|
|
41
|
+
setup(r) {
|
|
42
|
+
return { __sfc: !0, isVue2: se };
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
var Le = function() {
|
|
46
|
+
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
47
|
+
return s.isVue2 ? t("Transition", { attrs: { name: e.name, mode: "out-in", css: e.showFileIcon } }, [e._t("default")], 2) : t("TransitionGroup", { attrs: { name: e.name, css: e.showFileIcon } }, [e._t("default")], 2);
|
|
48
|
+
}, Ie = [], we = /* @__PURE__ */ f(
|
|
49
|
+
$e,
|
|
50
|
+
Le,
|
|
51
|
+
Ie,
|
|
52
|
+
!1,
|
|
53
|
+
null,
|
|
54
|
+
null
|
|
55
|
+
);
|
|
56
|
+
const Fe = we.exports;
|
|
57
|
+
let N = 0;
|
|
58
|
+
const Ve = {
|
|
59
|
+
beforeCreate() {
|
|
60
|
+
this.uuid = N.toString(), N += 1;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var Se = function() {
|
|
64
|
+
var e = this, t = e._self._c;
|
|
65
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M7.25 6.25H5.75V12.75H7.25V6.25Z" } }), t("path", { attrs: { fill: "#00112C", d: "M8.75 6.25H10.25V12.75H8.75V6.25Z" } }), t("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
|
+
}, He = [], Te = /* @__PURE__ */ f(
|
|
67
|
+
Ve,
|
|
68
|
+
Se,
|
|
69
|
+
He,
|
|
70
|
+
!1,
|
|
71
|
+
null,
|
|
72
|
+
null
|
|
73
|
+
);
|
|
74
|
+
const De = Te.exports;
|
|
75
|
+
function Me(r, e) {
|
|
76
|
+
const t = g(!1);
|
|
77
|
+
let s;
|
|
78
|
+
function n() {
|
|
79
|
+
s && s.disconnect();
|
|
80
|
+
}
|
|
81
|
+
return le(() => {
|
|
82
|
+
n();
|
|
83
|
+
}), ce(() => {
|
|
84
|
+
n(), s = new IntersectionObserver(
|
|
85
|
+
(a) => {
|
|
86
|
+
t.value = !a[0].isIntersecting;
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
root: e.value,
|
|
90
|
+
threshold: 1
|
|
91
|
+
}
|
|
92
|
+
), s.observe(r.value.$el);
|
|
93
|
+
}), t;
|
|
94
|
+
}
|
|
95
|
+
const P = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function re(r, e) {
|
|
97
|
+
let t = 0, s = e;
|
|
98
|
+
for (; s >= 1e3 && t < P.length - 1; )
|
|
99
|
+
s /= 1e3, t++;
|
|
100
|
+
return new Intl.NumberFormat(r, {
|
|
101
|
+
style: "unit",
|
|
102
|
+
unit: P[t],
|
|
103
|
+
unitDisplay: "short",
|
|
104
|
+
// Displays as "kB" instead of "kilobytes"
|
|
105
|
+
maximumFractionDigits: 2
|
|
106
|
+
// Limits to 2 decimal places
|
|
107
|
+
}).format(s);
|
|
108
|
+
}
|
|
109
|
+
var d = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.ERROR_SIZE = "error-size", r.ERROR_LOAD = "error-load", r.ERROR_DIMENSIONS = "error-dimensions", r.ERROR_TYPE = "error-type", r.SUCCESS = "success", r))(d || {}), S = /* @__PURE__ */ ((r) => (r.DISABLED = "disabled", r.DRAG_OVER = "drag-over", r.ERROR = "error", r.READONLY = "readonly", r))(S || {}), l = /* @__PURE__ */ ((r) => (r.TABLE = "table", r.IMAGE = "image", r.VIDEO = "video", r.AUDIO = "audio", r.TEXT = "text", r.PDF = "pdf", r.SLIDES = "slides", r.COMPRESSED = "compressed", r.GENERIC = "generic", r))(l || {});
|
|
110
|
+
const Oe = [
|
|
111
|
+
"application/msword",
|
|
112
|
+
// .doc
|
|
113
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
114
|
+
// .docx
|
|
115
|
+
"application/rtf"
|
|
116
|
+
// .rtf
|
|
117
|
+
], Be = [
|
|
118
|
+
"application/vnd.ms-excel",
|
|
119
|
+
// .xls
|
|
120
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
121
|
+
// .xlsx
|
|
122
|
+
"application/vnd.oasis.opendocument.spreadsheet",
|
|
123
|
+
//.ods
|
|
124
|
+
"application/vnd.apple.numbers",
|
|
125
|
+
// .numbers
|
|
126
|
+
"application/x-iwork-numbers-sffnumbers",
|
|
127
|
+
// .numbers
|
|
128
|
+
"text/csv"
|
|
129
|
+
// .csv
|
|
130
|
+
], Ze = [
|
|
131
|
+
"application/vnd.ms-powerpoint",
|
|
132
|
+
// .ppt
|
|
133
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
134
|
+
// .pptx
|
|
135
|
+
"application/vnd.oasis.opendocument.presentation"
|
|
136
|
+
// .odp
|
|
137
|
+
], Ue = [
|
|
138
|
+
"application/zip",
|
|
139
|
+
// .zip
|
|
140
|
+
"application/vnd.rar",
|
|
141
|
+
// .rar
|
|
142
|
+
"application/x-7z-compressed",
|
|
143
|
+
// .7z
|
|
144
|
+
"application/gzip",
|
|
145
|
+
// .gz, .tar.gz, .tgz
|
|
146
|
+
"application/x-tar",
|
|
147
|
+
// .tar
|
|
148
|
+
"application/x-bzip2",
|
|
149
|
+
// .bz2
|
|
150
|
+
"application/x-xz",
|
|
151
|
+
// .xz
|
|
152
|
+
"application/x-lzma",
|
|
153
|
+
// .lzma
|
|
154
|
+
"application/x-compress",
|
|
155
|
+
// .Z
|
|
156
|
+
"application/vnd.ms-cab-compressed"
|
|
157
|
+
// .cab
|
|
158
|
+
];
|
|
159
|
+
function ze(r) {
|
|
160
|
+
return Be.includes(r.type) ? l.TABLE : r.type.startsWith("text/") || Oe.includes(r.type) ? l.TEXT : r.type.startsWith("image/") ? l.IMAGE : r.type.startsWith("video/") ? l.VIDEO : r.type.startsWith("audio/") ? l.AUDIO : r.type === "application/pdf" ? l.PDF : Ze.includes(r.type) ? l.SLIDES : Ue.includes(r.type) ? l.COMPRESSED : l.GENERIC;
|
|
161
|
+
}
|
|
162
|
+
function Ae(r, e) {
|
|
163
|
+
if (!e)
|
|
164
|
+
return !0;
|
|
165
|
+
const t = e.split(",").map((s) => s.trim());
|
|
166
|
+
for (const s of t)
|
|
167
|
+
if (s.startsWith(".")) {
|
|
168
|
+
if (r.name.endsWith(s))
|
|
169
|
+
return !0;
|
|
170
|
+
} else if (s.endsWith("/*")) {
|
|
171
|
+
const n = s.split("/")[0];
|
|
172
|
+
if (r.type.startsWith(n))
|
|
173
|
+
return !0;
|
|
174
|
+
} else if (r.type === s)
|
|
175
|
+
return !0;
|
|
176
|
+
return !1;
|
|
177
|
+
}
|
|
178
|
+
function Ne(r, e, t) {
|
|
179
|
+
const s = new FileReader(), n = r;
|
|
180
|
+
if (!Ae(n.data, e)) {
|
|
181
|
+
n.state = d.ERROR_TYPE;
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
s.onload = (a) => {
|
|
185
|
+
if (t && n.type === l.IMAGE) {
|
|
186
|
+
const p = new Blob([a.target.result], { type: n.data.type }), C = URL.createObjectURL(p), c = new Image();
|
|
187
|
+
c.onload = function() {
|
|
188
|
+
(c.width > t.width || c.height > t.height) && (n.state = d.ERROR_DIMENSIONS), URL.revokeObjectURL(C);
|
|
189
|
+
}, c.onerror = function() {
|
|
190
|
+
URL.revokeObjectURL(C);
|
|
191
|
+
}, c.src = C;
|
|
192
|
+
}
|
|
193
|
+
}, s.onprogress = (a) => {
|
|
194
|
+
a.lengthComputable && (n.progress = a.loaded / a.total * 100);
|
|
195
|
+
}, s.onloadend = () => {
|
|
196
|
+
n.state !== d.ERROR_SIZE && (n.state = d.SUCCESS), n.progress = null;
|
|
197
|
+
}, s.onerror = () => {
|
|
198
|
+
n.state = d.ERROR_LOAD, n.progress = null;
|
|
199
|
+
}, s.readAsArrayBuffer(n.data);
|
|
200
|
+
}
|
|
201
|
+
let k = 0;
|
|
202
|
+
const Pe = {
|
|
203
|
+
beforeCreate() {
|
|
204
|
+
this.uuid = k.toString(), k += 1;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
var ke = function() {
|
|
208
|
+
var e = this, t = e._self._c;
|
|
209
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("g", { attrs: { "clip-path": "url(#uia-icons-16-attachment__a" + e.uuid + ")" } }, [t("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" } })]), t("defs", [t("clipPath", { attrs: { id: "uia-icons-16-attachment__a" + e.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
210
|
+
}, We = [], Ge = /* @__PURE__ */ f(
|
|
211
|
+
Pe,
|
|
212
|
+
ke,
|
|
213
|
+
We,
|
|
214
|
+
!1,
|
|
215
|
+
null,
|
|
216
|
+
null
|
|
217
|
+
);
|
|
218
|
+
const je = Ge.exports;
|
|
219
|
+
let W = 0;
|
|
220
|
+
const Ye = {
|
|
221
|
+
beforeCreate() {
|
|
222
|
+
this.uuid = W.toString(), W += 1;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
var qe = function() {
|
|
226
|
+
var e = this, t = e._self._c;
|
|
227
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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
|
+
}, Xe = [], Je = /* @__PURE__ */ f(
|
|
229
|
+
Ye,
|
|
230
|
+
qe,
|
|
231
|
+
Xe,
|
|
232
|
+
!1,
|
|
233
|
+
null,
|
|
234
|
+
null
|
|
235
|
+
);
|
|
236
|
+
const Ke = Je.exports;
|
|
237
|
+
let G = 0;
|
|
238
|
+
const Qe = {
|
|
239
|
+
beforeCreate() {
|
|
240
|
+
this.uuid = G.toString(), G += 1;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
var et = function() {
|
|
244
|
+
var e = this, t = e._self._c;
|
|
245
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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
|
+
}, tt = [], st = /* @__PURE__ */ f(
|
|
247
|
+
Qe,
|
|
248
|
+
et,
|
|
249
|
+
tt,
|
|
250
|
+
!1,
|
|
251
|
+
null,
|
|
252
|
+
null
|
|
253
|
+
);
|
|
254
|
+
const rt = st.exports;
|
|
255
|
+
let j = 0;
|
|
256
|
+
const at = {
|
|
257
|
+
beforeCreate() {
|
|
258
|
+
this.uuid = j.toString(), j += 1;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
var it = function() {
|
|
262
|
+
var e = this, t = e._self._c;
|
|
263
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z" } }), t("path", { attrs: { fill: "#00112C", d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z" } }), t("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
|
+
}, nt = [], ot = /* @__PURE__ */ f(
|
|
265
|
+
at,
|
|
266
|
+
it,
|
|
267
|
+
nt,
|
|
268
|
+
!1,
|
|
269
|
+
null,
|
|
270
|
+
null
|
|
271
|
+
);
|
|
272
|
+
const lt = ot.exports;
|
|
273
|
+
let Y = 0;
|
|
274
|
+
const ct = {
|
|
275
|
+
beforeCreate() {
|
|
276
|
+
this.uuid = Y.toString(), Y += 1;
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
var ut = function() {
|
|
280
|
+
var e = this, t = e._self._c;
|
|
281
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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
|
+
}, dt = [], pt = /* @__PURE__ */ f(
|
|
283
|
+
ct,
|
|
284
|
+
ut,
|
|
285
|
+
dt,
|
|
286
|
+
!1,
|
|
287
|
+
null,
|
|
288
|
+
null
|
|
289
|
+
);
|
|
290
|
+
const ft = pt.exports;
|
|
291
|
+
let q = 0;
|
|
292
|
+
const _t = {
|
|
293
|
+
beforeCreate() {
|
|
294
|
+
this.uuid = q.toString(), q += 1;
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
var mt = function() {
|
|
298
|
+
var e = this, t = e._self._c;
|
|
299
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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" } }), t("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
|
+
}, Ct = [], vt = /* @__PURE__ */ f(
|
|
301
|
+
_t,
|
|
302
|
+
mt,
|
|
303
|
+
Ct,
|
|
304
|
+
!1,
|
|
305
|
+
null,
|
|
306
|
+
null
|
|
307
|
+
);
|
|
308
|
+
const gt = vt.exports;
|
|
309
|
+
let X = 0;
|
|
310
|
+
const ht = {
|
|
311
|
+
beforeCreate() {
|
|
312
|
+
this.uuid = X.toString(), X += 1;
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
var yt = function() {
|
|
316
|
+
var e = this, t = e._self._c;
|
|
317
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-play_circle__a" + e.uuid + ")" } }, [t("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), t("path", { attrs: { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" } })]), t("defs", [t("clipPath", { attrs: { id: "uia-icons-16-play_circle__a" + e.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
318
|
+
}, xt = [], bt = /* @__PURE__ */ f(
|
|
319
|
+
ht,
|
|
320
|
+
yt,
|
|
321
|
+
xt,
|
|
322
|
+
!1,
|
|
323
|
+
null,
|
|
324
|
+
null
|
|
325
|
+
);
|
|
326
|
+
const Rt = bt.exports;
|
|
327
|
+
let J = 0;
|
|
328
|
+
const Et = {
|
|
329
|
+
beforeCreate() {
|
|
330
|
+
this.uuid = J.toString(), J += 1;
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
var $t = function() {
|
|
334
|
+
var e = this, t = e._self._c;
|
|
335
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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" } }), t("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" } }), t("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
|
+
}, Lt = [], It = /* @__PURE__ */ f(
|
|
337
|
+
Et,
|
|
338
|
+
$t,
|
|
339
|
+
Lt,
|
|
340
|
+
!1,
|
|
341
|
+
null,
|
|
342
|
+
null
|
|
343
|
+
);
|
|
344
|
+
const wt = It.exports;
|
|
345
|
+
let K = 0;
|
|
346
|
+
const Ft = {
|
|
347
|
+
beforeCreate() {
|
|
348
|
+
this.uuid = K.toString(), K += 1;
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
var Vt = function() {
|
|
352
|
+
var e = this, t = e._self._c;
|
|
353
|
+
return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("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
|
+
}, St = [], Ht = /* @__PURE__ */ f(
|
|
355
|
+
Ft,
|
|
356
|
+
Vt,
|
|
357
|
+
St,
|
|
358
|
+
!1,
|
|
359
|
+
null,
|
|
360
|
+
null
|
|
361
|
+
);
|
|
362
|
+
const Tt = Ht.exports, Dt = {
|
|
363
|
+
[l.AUDIO]: wt,
|
|
364
|
+
[l.COMPRESSED]: ft,
|
|
365
|
+
[l.GENERIC]: je,
|
|
366
|
+
[l.IMAGE]: gt,
|
|
367
|
+
[l.PDF]: rt,
|
|
368
|
+
[l.SLIDES]: Ke,
|
|
369
|
+
[l.TABLE]: Tt,
|
|
370
|
+
[l.TEXT]: lt,
|
|
371
|
+
[l.VIDEO]: Rt
|
|
372
|
+
};
|
|
373
|
+
function Mt(r) {
|
|
374
|
+
return Dt[r.type];
|
|
375
|
+
}
|
|
376
|
+
function Ot(r) {
|
|
377
|
+
switch (r.type) {
|
|
378
|
+
case l.COMPRESSED:
|
|
379
|
+
case l.GENERIC:
|
|
380
|
+
return "grey";
|
|
381
|
+
case l.PDF:
|
|
382
|
+
case l.SLIDES:
|
|
383
|
+
return "orange";
|
|
384
|
+
case l.TEXT:
|
|
385
|
+
return "blue";
|
|
386
|
+
default:
|
|
387
|
+
return "green";
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
const Bt = {
|
|
391
|
+
"en-US": {
|
|
392
|
+
cancel: "Cancel",
|
|
393
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
394
|
+
fileTypeMustBe: "File type must be {list}",
|
|
395
|
+
imageDimensionsExceedLimits: "Image dimensions exceed limits",
|
|
396
|
+
remove: "Remove",
|
|
397
|
+
retry: "Retry"
|
|
398
|
+
},
|
|
399
|
+
"pt-BR": {
|
|
400
|
+
cancel: "Cancelar",
|
|
401
|
+
remove: "Remover",
|
|
402
|
+
retry: "Tentar novamente"
|
|
403
|
+
},
|
|
404
|
+
"ja-JP": {
|
|
405
|
+
cancel: "キャンセル",
|
|
406
|
+
remove: "削除",
|
|
407
|
+
retry: "再試行"
|
|
408
|
+
}
|
|
409
|
+
}, Zt = {
|
|
410
|
+
name: "file-uploader-file-card",
|
|
411
|
+
i18n: { messages: Bt }
|
|
412
|
+
}, Ut = /* @__PURE__ */ H({
|
|
413
|
+
...Zt,
|
|
414
|
+
props: {
|
|
415
|
+
file: null,
|
|
416
|
+
supportedFileTypes: { default: null }
|
|
417
|
+
},
|
|
418
|
+
emits: ["cancel", "remove", "retry"],
|
|
419
|
+
setup(r, { emit: e }) {
|
|
420
|
+
const t = r, s = 1200, { t: n, locale: a } = T(), p = g(t.file.state === d.SUCCESS), C = u(() => URL.createObjectURL(t.file.data)), c = u(() => t.file.state.startsWith("error")), _ = u(() => t.file.state === d.ERROR_LOAD), v = u(() => t.file.state === d.ERROR_SIZE), y = u(() => t.file.state === d.ERROR_DIMENSIONS), x = u(() => t.file.state === d.ERROR_TYPE), b = u(() => t.file.state === d.LOADING), R = u(() => t.file.progress && `(${t.file.progress.toFixed(0)}%)`), D = u(() => re(a.value, t.file.data.size)), I = g(), w = g(), F = Me(I, w), V = u(() => ({
|
|
421
|
+
"b-file-uploader-file-card--error": c.value
|
|
422
|
+
})), M = u(() => ({
|
|
423
|
+
[`b-file-uploader-file-card__icon--${Ot(t.file)}`]: p.value,
|
|
424
|
+
"b-file-uploader-file-card__icon--error": c.value
|
|
425
|
+
})), E = u(() => b.value ? Ce : c.value ? ee : p.value ? Mt(t.file) : pe);
|
|
426
|
+
return Q(
|
|
427
|
+
() => t.file.state,
|
|
428
|
+
($) => {
|
|
429
|
+
if ($ === d.SUCCESS && !p.value) {
|
|
430
|
+
const O = setTimeout(() => {
|
|
431
|
+
p.value = !0, clearTimeout(O);
|
|
432
|
+
}, s);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
), { __sfc: !0, ICON_TIMER: s, props: t, emit: e, t: n, locale: a, showFileIcon: p, downloadUrl: C, hasError: c, hasLoadError: _, hasSizeError: v, hasDimensionsError: y, hasTypeError: x, isLoading: b, progressLabel: R, sizeLabel: D, fileNameRef: I, fileNameContainerRef: w, isFileNameTruncated: F, conditionalClasses: V, conditionalIconClasses: M, fileUploaderIcon: E, isVue2: se, FileUploaderFileCardAnimation: Fe, BinIcon: De, CrossIcon: fe, RefreshIcon: _e, vBentoTooltipDirective: ve, BentoButton: te, BentoLink: me, BentoTypography: Z };
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
var zt = function() {
|
|
439
|
+
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
440
|
+
return t("div", { staticClass: "b-file-uploader-file-card", class: s.conditionalClasses }, [t("div", { staticClass: "b-file-uploader-file-card__details" }, [t("div", { staticClass: "b-file-uploader-file-card__info" }, [t(s.FileUploaderFileCardAnimation, { attrs: { name: s.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": s.showFileIcon } }, [t(s.fileUploaderIcon, { key: JSON.stringify(s.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: s.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), t("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [t(s.BentoLink, { attrs: { download: e.file.data.name, to: s.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [t(s.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: s.isFileNameTruncated ? e.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [e._v(" " + e._s(e.file.data.name) + " ")])], 1)], 1), e.file.progress ? t(s.BentoTypography, { attrs: { el: "span" } }, [e._v(e._s(s.progressLabel))]) : e.file.data.size ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [e._v(e._s(s.sizeLabel))]) : e._e()], 1), s.hasSizeError ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("fileExceedsSizeLimit")) + " ")]) : s.hasDimensionsError ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("imageDimensionsExceedLimits")) + " ")]) : s.hasTypeError && e.supportedFileTypes ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("fileTypeMustBe", { list: e.supportedFileTypes })) + " ")]) : e._e()], 1), t("div", { staticClass: "b-file-uploader-file-card__actions" }, [s.hasLoadError ? t(s.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(n) {
|
|
441
|
+
return s.emit("retry");
|
|
442
|
+
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
443
|
+
return [t(s.RefreshIcon, { attrs: { "svg-title": s.t("retry") } })];
|
|
444
|
+
}, proxy: !0 }], null, !1, 3564309296) }, [e._v(" " + e._s(s.t("retry")) + " ")]) : e._e(), s.isLoading || s.hasError ? t(s.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(n) {
|
|
445
|
+
return s.emit("cancel");
|
|
446
|
+
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
447
|
+
return [t(s.CrossIcon, { attrs: { "svg-title": s.t("cancel") } })];
|
|
448
|
+
}, proxy: !0 }], null, !1, 1692450141) }) : t(s.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(n) {
|
|
449
|
+
return s.emit("remove");
|
|
450
|
+
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
451
|
+
return [t(s.BinIcon, { attrs: { "svg-title": s.t("remove") } })];
|
|
452
|
+
}, proxy: !0 }]) })], 1)]);
|
|
453
|
+
}, At = [], Nt = /* @__PURE__ */ f(
|
|
454
|
+
Ut,
|
|
455
|
+
zt,
|
|
456
|
+
At,
|
|
457
|
+
!1,
|
|
458
|
+
null,
|
|
459
|
+
"cf8bad53"
|
|
460
|
+
);
|
|
461
|
+
const Pt = Nt.exports, kt = {
|
|
462
|
+
"en-US": {
|
|
463
|
+
maxFileSize: "Max file size: {size}",
|
|
464
|
+
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
465
|
+
maxImageHeight: "Max image height: {height}px",
|
|
466
|
+
maxImageWidth: "Max image width: {width}px",
|
|
467
|
+
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
468
|
+
supportedFileTypes: "Supported file types: {list}"
|
|
469
|
+
}
|
|
470
|
+
}, Wt = {
|
|
471
|
+
i18n: { messages: kt }
|
|
472
|
+
}, Gt = /* @__PURE__ */ H({
|
|
473
|
+
...Wt,
|
|
474
|
+
__name: "file-uploader-restrictions",
|
|
475
|
+
props: {
|
|
476
|
+
condensed: { default: null },
|
|
477
|
+
disabled: { default: null },
|
|
478
|
+
maxCount: { default: null },
|
|
479
|
+
maxDimensions: { default: null },
|
|
480
|
+
maxSize: { default: null },
|
|
481
|
+
supportedFileTypes: { default: null }
|
|
482
|
+
},
|
|
483
|
+
setup(r) {
|
|
484
|
+
const e = r, { t, tc: s, locale: n } = T(), a = u(() => ({
|
|
485
|
+
"b-file-uploader-restrictions--condensed": e.condensed,
|
|
486
|
+
"b-file-uploader-restrictions--disabled": e.disabled
|
|
487
|
+
}));
|
|
488
|
+
function p(c) {
|
|
489
|
+
return {
|
|
490
|
+
"b-file-uploader-restrictions--error": c
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
const C = u(() => {
|
|
494
|
+
if (!e.maxDimensions)
|
|
495
|
+
return null;
|
|
496
|
+
const {
|
|
497
|
+
value: { width: c, height: _ }
|
|
498
|
+
} = e.maxDimensions;
|
|
499
|
+
return c && _ ? t("maxImageDimensions", { width: c, height: _ }) : c ? t("maxImageWidth", { width: c }) : _ ? t("maxImageHeight", { height: _ }) : null;
|
|
500
|
+
});
|
|
501
|
+
return { __sfc: !0, props: e, t, tc: s, locale: n, conditionalClasses: a, setRestrictionErrorClass: p, maxDimensionsLabel: C, BentoTypography: Z, formatFileSize: re };
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
var jt = function() {
|
|
505
|
+
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
506
|
+
return t("div", { staticClass: "b-file-uploader-restrictions", class: s.conditionalClasses }, [e.supportedFileTypes ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.supportedFileTypes.error) }, [e._v(" " + e._s(s.t("supportedFileTypes", { list: e.supportedFileTypes.value })) + " ")]) : e._e(), e.maxSize ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.maxSize.error) }, [e._v(" " + e._s(s.t("maxFileSize", { size: s.formatFileSize(s.locale, e.maxSize.value) })) + " ")]) : e._e(), e.maxDimensions ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.maxDimensions.error) }, [e._v(" " + e._s(s.maxDimensionsLabel) + " ")]) : e._e(), e.maxCount ? t(s.BentoTypography, { class: s.setRestrictionErrorClass(e.maxCount.error) }, [e._v(" " + e._s(s.tc("maxUpload", e.maxCount.value)) + " ")]) : e._e()], 1);
|
|
507
|
+
}, Yt = [], qt = /* @__PURE__ */ f(
|
|
508
|
+
Gt,
|
|
509
|
+
jt,
|
|
510
|
+
Yt,
|
|
511
|
+
!1,
|
|
512
|
+
null,
|
|
513
|
+
"3c1d05d1"
|
|
514
|
+
);
|
|
515
|
+
const Xt = qt.exports;
|
|
516
|
+
function Jt(r) {
|
|
517
|
+
const { locale: e, t } = T();
|
|
518
|
+
return { supportedFileTypeList: u(() => {
|
|
519
|
+
const n = new Intl.ListFormat(e.value, { style: "short", type: "unit" });
|
|
520
|
+
return r != null && r.value ? n.format(
|
|
521
|
+
r.value.split(",").map((a) => {
|
|
522
|
+
const p = a.trim();
|
|
523
|
+
switch (p) {
|
|
524
|
+
case "audio/*":
|
|
525
|
+
return t("audioFiles");
|
|
526
|
+
case "image/*":
|
|
527
|
+
return t("imageFiles");
|
|
528
|
+
case "video/*":
|
|
529
|
+
return t("videoFiles");
|
|
530
|
+
default:
|
|
531
|
+
return p.toUpperCase();
|
|
532
|
+
}
|
|
533
|
+
})
|
|
534
|
+
) : null;
|
|
535
|
+
}) };
|
|
536
|
+
}
|
|
537
|
+
const Kt = {
|
|
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
|
+
"pt-BR": {
|
|
552
|
+
upload: "Carregar",
|
|
553
|
+
warning: "Aviso"
|
|
554
|
+
},
|
|
555
|
+
"ja-JP": {
|
|
556
|
+
upload: "アップロード",
|
|
557
|
+
warning: "警告"
|
|
558
|
+
}
|
|
559
|
+
}, Qt = {
|
|
560
|
+
model: { prop: "modelValue" },
|
|
561
|
+
i18n: { messages: Kt }
|
|
562
|
+
}, e1 = /* @__PURE__ */ H({
|
|
563
|
+
...Qt,
|
|
564
|
+
__name: "file-uploader",
|
|
565
|
+
props: {
|
|
566
|
+
accept: { default: null },
|
|
567
|
+
condensed: { type: Boolean },
|
|
568
|
+
description: { default: null },
|
|
569
|
+
disabled: { type: Boolean },
|
|
570
|
+
errorMessage: { default: null },
|
|
571
|
+
label: null,
|
|
572
|
+
maxCount: { default: 1 },
|
|
573
|
+
maxDimensions: { default: null },
|
|
574
|
+
maxSize: { default: null },
|
|
575
|
+
modelValue: { default: null },
|
|
576
|
+
optional: { type: Boolean },
|
|
577
|
+
required: { type: Boolean },
|
|
578
|
+
tooltipText: { default: null }
|
|
579
|
+
},
|
|
580
|
+
emits: ["change", "update:modelValue"],
|
|
581
|
+
setup(r, { emit: e }) {
|
|
582
|
+
const t = r, { t: s, tc: n } = T(), a = B("input"), p = B("input-error"), C = g(null), c = g(), _ = z({
|
|
583
|
+
dragging: !1,
|
|
584
|
+
error: !1
|
|
585
|
+
}), v = g(null), { supportedFileTypeList: y } = Jt(ue(t, "accept")), x = g(!1), b = u(() => !!t.errorMessage || _.error), R = u(() => t.maxCount > 1), D = u(() => ({
|
|
586
|
+
[`b-file-uploader--${S.DISABLED}`]: t.disabled,
|
|
587
|
+
[`b-file-uploader--${S.DRAG_OVER}`]: _.dragging,
|
|
588
|
+
[`b-file-uploader--${S.ERROR}`]: b.value,
|
|
589
|
+
"b-file-uploader--condensed": t.condensed
|
|
590
|
+
})), I = u(() => {
|
|
591
|
+
var i;
|
|
592
|
+
return t.maxCount && ((i = v.value) == null ? void 0 : i.length) >= t.maxCount;
|
|
593
|
+
}), w = u(() => {
|
|
594
|
+
var i, o, m;
|
|
595
|
+
return {
|
|
596
|
+
condensed: t.condensed,
|
|
597
|
+
disabled: t.disabled,
|
|
598
|
+
maxCount: R.value ? {
|
|
599
|
+
value: t.maxCount,
|
|
600
|
+
error: x.value
|
|
601
|
+
} : null,
|
|
602
|
+
maxDimensions: t.maxDimensions ? {
|
|
603
|
+
value: t.maxDimensions,
|
|
604
|
+
error: (i = v.value) == null ? void 0 : i.some((h) => h.state === d.ERROR_DIMENSIONS)
|
|
605
|
+
} : null,
|
|
606
|
+
maxSize: t.maxSize ? {
|
|
607
|
+
value: t.maxSize,
|
|
608
|
+
error: (o = v.value) == null ? void 0 : o.some((h) => h.state === d.ERROR_SIZE)
|
|
609
|
+
} : null,
|
|
610
|
+
supportedFileTypes: y.value ? {
|
|
611
|
+
value: y.value,
|
|
612
|
+
error: (m = v.value) == null ? void 0 : m.some((h) => h.state === d.ERROR_TYPE)
|
|
613
|
+
} : null
|
|
614
|
+
};
|
|
615
|
+
});
|
|
616
|
+
function F(i) {
|
|
617
|
+
const o = t.maxCount && i.length <= t.maxCount;
|
|
618
|
+
x.value = !o;
|
|
619
|
+
}
|
|
620
|
+
function V(i) {
|
|
621
|
+
t.maxSize && i.forEach((o) => {
|
|
622
|
+
const m = o;
|
|
623
|
+
m.data.size > t.maxSize && (m.state = d.ERROR_SIZE);
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
function M(i) {
|
|
627
|
+
i.preventDefault(), t.disabled && (i.dataTransfer.dropEffect = "none");
|
|
628
|
+
}
|
|
629
|
+
function E(i) {
|
|
630
|
+
const o = z({
|
|
631
|
+
id: B("file"),
|
|
632
|
+
data: i,
|
|
633
|
+
state: d.LOADING,
|
|
634
|
+
type: ze(i),
|
|
635
|
+
progress: null
|
|
636
|
+
});
|
|
637
|
+
return Ne(o, t.accept, t.maxDimensions), o;
|
|
638
|
+
}
|
|
639
|
+
function $(i) {
|
|
640
|
+
R.value ? v.value = [...v.value || [], ...Array.from(i).map((o) => E(o))] : v.value = [E(i[0])];
|
|
641
|
+
}
|
|
642
|
+
function O() {
|
|
643
|
+
var i, o;
|
|
644
|
+
if (t.maxCount === 1 && ((i = C.value.files) == null ? void 0 : i.length) > t.maxCount) {
|
|
645
|
+
L();
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
(o = C.value.files) != null && o.length && $(C.value.files), C.value.value = "";
|
|
649
|
+
}
|
|
650
|
+
function L() {
|
|
651
|
+
c.value = null, !t.disabled && (_.dragging = !1, _.error = !1);
|
|
652
|
+
}
|
|
653
|
+
function ae(i) {
|
|
654
|
+
var o;
|
|
655
|
+
c.value = i.target, !t.disabled && (_.dragging = !0, (!i.dataTransfer.types.includes("Files") || ((o = i.dataTransfer.items) == null ? void 0 : o.length) > t.maxCount) && (_.error = !0));
|
|
656
|
+
}
|
|
657
|
+
function ie(i) {
|
|
658
|
+
c.value === i.target && L();
|
|
659
|
+
}
|
|
660
|
+
function ne(i) {
|
|
661
|
+
var o, m;
|
|
662
|
+
if (!t.disabled) {
|
|
663
|
+
if (t.maxCount === 1 && ((o = i.dataTransfer.files) == null ? void 0 : o.length) > t.maxCount) {
|
|
664
|
+
L();
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
(m = i.dataTransfer.files) != null && m.length && $(i.dataTransfer.files), L();
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
function oe(i) {
|
|
671
|
+
v.value = v.value.filter(({ id: o }) => o !== i.id);
|
|
672
|
+
}
|
|
673
|
+
function U(i) {
|
|
674
|
+
const o = i.filter(
|
|
675
|
+
({ state: m }) => m !== d.ERROR_LOAD && m !== d.ERROR_SIZE
|
|
676
|
+
);
|
|
677
|
+
if (o.length) {
|
|
678
|
+
const m = new DataTransfer();
|
|
679
|
+
return o.forEach(({ data: h }) => m.items.add(h)), m.files;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
return Q(v, (i) => {
|
|
683
|
+
if (i) {
|
|
684
|
+
F(i), V(i);
|
|
685
|
+
const o = U(i);
|
|
686
|
+
e("change", o), e("update:modelValue", o);
|
|
687
|
+
} else
|
|
688
|
+
e("change"), e("update:modelValue");
|
|
689
|
+
}), { __sfc: !0, props: t, emit: e, t: s, tc: n, inputFieldId: a, errorId: p, input: C, enterTarget: c, dragState: _, files: v, supportedFileTypeList: y, maxFileError: x, hasError: b, isMultiple: R, conditionalClasses: D, hideArea: I, fileUploadRestrictionsProps: w, verifyFileCount: F, verifyFileSize: V, onDragOver: M, processFile: E, onFileInput: $, onInputChange: O, resetDragState: L, onDragEnter: ae, onDragLeave: ie, onDrop: ne, removeFile: oe, convertToFileList: U, UploadIcon: Ee, WarningFilledIcon: ee, BentoAlert: de, BentoButton: te, BentoTypography: Z, ErrorMessage: ge, FieldLabel: he, FileUploaderFileCard: Pt, FileUploaderRestrictions: Xt };
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
var t1 = function() {
|
|
693
|
+
var n;
|
|
694
|
+
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
695
|
+
return t("div", { staticClass: "b-file-uploader", class: s.conditionalClasses }, [t(s.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { condensed: e.condensed, for: s.inputFieldId, label: e.label, optional: e.optional, required: e.required, "tooltip-text": e.tooltipText } }), t("input", { ref: "input", staticClass: "b-file-uploader__input", attrs: { id: s.inputFieldId, type: "file", tabindex: "-1", "data-testid": "input", accept: e.accept, disabled: e.disabled, multiple: s.isMultiple }, on: { change: s.onInputChange } }), s.hideArea ? e._e() : t("div", { staticClass: "b-file-uploader__area", attrs: { "aria-label": s.t("dropArea"), tabindex: e.disabled ? -1 : 0 }, on: { click: function(a) {
|
|
696
|
+
return s.input.click();
|
|
697
|
+
}, dragenter: function(a) {
|
|
698
|
+
return a.stopPropagation(), a.preventDefault(), s.onDragEnter.apply(null, arguments);
|
|
699
|
+
}, dragleave: function(a) {
|
|
700
|
+
return a.stopPropagation(), a.preventDefault(), s.onDragLeave.apply(null, arguments);
|
|
701
|
+
}, drop: function(a) {
|
|
702
|
+
return a.stopPropagation(), a.preventDefault(), s.onDrop.apply(null, arguments);
|
|
703
|
+
}, dragover: s.onDragOver, "!keydown": [function(a) {
|
|
704
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : (a.preventDefault(), s.input.click());
|
|
705
|
+
}, function(a) {
|
|
706
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "space", 32, a.key, [" ", "Spacebar"]) ? null : (a.preventDefault(), s.input.click());
|
|
707
|
+
}] } }, [t("div", { staticClass: "b-file-uploader__icon" }, [s.hasError ? t(s.WarningFilledIcon, { attrs: { "svg-title": s.t("warning") } }) : t(s.UploadIcon, { attrs: { "svg-title": s.t("upload") } })], 1), e.condensed ? e._e() : [t(s.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { el: "span", strongest: "" } }, [e._v(" " + e._s(s.tc("dropFiles", +!s.isMultiple)) + " ")]), e.description ? t(s.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), t(s.FileUploaderRestrictions, e._b({}, "file-uploader-restrictions", s.fileUploadRestrictionsProps, !1))], t(s.BentoButton, { staticClass: "b-file-uploader__button", attrs: { disabled: e.disabled, variant: e.condensed ? "tertiary" : "secondary", condensed: "", tabindex: "-1" } }, [e._v(" " + e._s(s.t("browseFiles")) + " ")])], 2), s.hasError && e.errorMessage ? t(s.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: s.errorId, "error-message": e.errorMessage } }) : e._e(), e.condensed && e.description ? t(s.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.condensed ? t(s.FileUploaderRestrictions, e._b({}, "file-uploader-restrictions", s.fileUploadRestrictionsProps, !1)) : e._e(), s.maxFileError ? t(s.BentoAlert, { staticClass: "b-file-uploader__alert", attrs: { type: "critical" }, scopedSlots: e._u([{ key: "description", fn: function() {
|
|
708
|
+
return [e._v(" " + e._s(s.t("youHaveExceededTheMaximum", { count: s.props.maxCount })) + " ")];
|
|
709
|
+
}, proxy: !0 }], null, !1, 239749076) }, [e._v(" " + e._s(s.t("tooManyFiles")) + " ")]) : e._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: (n = s.files) == null ? void 0 : n.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, e._l(s.files, function(a) {
|
|
710
|
+
return t(s.FileUploaderFileCard, { key: a.id, attrs: { file: a, "supported-file-types": s.supportedFileTypeList }, on: { cancel: function(p) {
|
|
711
|
+
return s.removeFile(a);
|
|
712
|
+
}, remove: function(p) {
|
|
713
|
+
return s.removeFile(a);
|
|
714
|
+
} } });
|
|
715
|
+
}), 1)], 1);
|
|
716
|
+
}, s1 = [], r1 = /* @__PURE__ */ f(
|
|
717
|
+
e1,
|
|
718
|
+
t1,
|
|
719
|
+
s1,
|
|
720
|
+
!1,
|
|
721
|
+
null,
|
|
722
|
+
"87f85c4c"
|
|
723
|
+
);
|
|
724
|
+
const y1 = r1.exports;
|
|
725
|
+
export {
|
|
726
|
+
y1 as f
|
|
727
|
+
};
|
|
728
|
+
//# sourceMappingURL=file-uploader.CK-Frs_q.js.map
|