@adyen/bento-vue2 1.45.0 → 1.47.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 +16740 -18774
- package/dist/accordion.js +1 -1
- 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/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/divider.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- 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/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{accordion-item.CzKttO4w.js → accordion-item.CTxrEQEW.js} +5 -5
- package/dist/chunks/{accordion-item.CzKttO4w.js.map → accordion-item.CTxrEQEW.js.map} +1 -1
- package/dist/chunks/{action-bar.BXemSuq4.js → action-bar.EcN2I7Az.js} +11 -11
- package/dist/chunks/{action-bar.BXemSuq4.js.map → action-bar.EcN2I7Az.js.map} +1 -1
- package/dist/chunks/{alert.CAIp-87f.js → alert.BRN8cpXl.js} +7 -7
- package/dist/chunks/{alert.CAIp-87f.js.map → alert.BRN8cpXl.js.map} +1 -1
- package/dist/chunks/{base-modal.4JSNBM4T.js → base-modal.BgTZ8iQ6.js} +5 -5
- package/dist/chunks/{base-modal.4JSNBM4T.js.map → base-modal.BgTZ8iQ6.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ieopdfI7.js → button-actions-with-menu.C8EjGVCT.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ieopdfI7.js.map → button-actions-with-menu.C8EjGVCT.js.map} +1 -1
- package/dist/chunks/{button-actions.CtFB6iRj.js → button-actions.BU173IFE.js} +5 -5
- package/dist/chunks/{button-actions.CtFB6iRj.js.map → button-actions.BU173IFE.js.map} +1 -1
- package/dist/chunks/{calendar.BouORZfb.js → calendar.DlOcbH6E.js} +161 -148
- package/dist/chunks/{calendar.BouORZfb.js.map → calendar.DlOcbH6E.js.map} +1 -1
- package/dist/chunks/{card.BabmUkTG.js → card.DoyCGJay.js} +10 -10
- package/dist/chunks/{card.BabmUkTG.js.map → card.DoyCGJay.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DbLznnsa.js → checkbox-group.BQN9gjgH.js} +4 -4
- package/dist/chunks/{checkbox-group.DbLznnsa.js.map → checkbox-group.BQN9gjgH.js.map} +1 -1
- package/dist/chunks/{checkbox.fhQLs-NN.js → checkbox.O1CbmNdS.js} +22 -22
- package/dist/chunks/{checkbox.fhQLs-NN.js.map → checkbox.O1CbmNdS.js.map} +1 -1
- package/dist/chunks/{code-snippet.5iJcUZSo.js → code-snippet.BDBD85qD.js} +117 -87
- package/dist/chunks/code-snippet.BDBD85qD.js.map +1 -0
- package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.0fz2cWJS.js} +4970 -4661
- package/dist/chunks/codemirror.0fz2cWJS.js.map +1 -0
- package/dist/chunks/{controls-group.CnXzOQkX.js → controls-group.C3RDqB9H.js} +2 -2
- package/dist/chunks/{controls-group.CnXzOQkX.js.map → controls-group.C3RDqB9H.js.map} +1 -1
- package/dist/chunks/{copy.DN0tClPm.js → copy.BuMSGw23.js} +5 -5
- package/dist/chunks/{copy.DN0tClPm.js.map → copy.BuMSGw23.js.map} +1 -1
- package/dist/chunks/{country.Bft91V1L.js → country.2-ZtYkh7.js} +2 -2
- package/dist/chunks/{country.Bft91V1L.js.map → country.2-ZtYkh7.js.map} +1 -1
- package/dist/chunks/{country.types.pilf5B3F.js → country.types.CLjbulKL.js} +4114 -4114
- package/dist/chunks/{country.types.pilf5B3F.js.map → country.types.CLjbulKL.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DYXZhtop.js → dashboard-section.COWO5SVw.js} +3 -3
- package/dist/chunks/{dashboard-section.DYXZhtop.js.map → dashboard-section.COWO5SVw.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BvSZS1-m.js → dashed-underline.BEAEmTCb.js} +2 -2
- package/dist/chunks/{dashed-underline.BvSZS1-m.js.map → dashed-underline.BEAEmTCb.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Du92TEFY.js → data-grid-template.vBl7u2cB.js} +2 -2
- package/dist/chunks/{data-grid-template.Du92TEFY.js.map → data-grid-template.vBl7u2cB.js.map} +1 -1
- package/dist/chunks/{data-grid.Kwtf1DMq.js → data-grid.DQ0578m9.js} +46 -46
- package/dist/chunks/{data-grid.Kwtf1DMq.js.map → data-grid.DQ0578m9.js.map} +1 -1
- package/dist/chunks/{date-picker.B7mTNghB.js → date-picker.Bym2OEd9.js} +47 -39
- package/dist/chunks/date-picker.Bym2OEd9.js.map +1 -0
- package/dist/chunks/{date-range-picker.DPLri9D-.js → date-range-picker.P2Q5FNB-.js} +310 -306
- package/dist/chunks/date-range-picker.P2Q5FNB-.js.map +1 -0
- package/dist/chunks/divider.Cc4JFWG_.js +35 -0
- package/dist/chunks/divider.Cc4JFWG_.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js → dropdown-default-textbox.CC9Z_RFG.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js.map → dropdown-default-textbox.CC9Z_RFG.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.XIlES6IT.js → dropdown-tag.CiCDvGyN.js} +4 -4
- package/dist/chunks/{dropdown-tag.XIlES6IT.js.map → dropdown-tag.CiCDvGyN.js.map} +1 -1
- package/dist/chunks/{dropdown.BqsoncJr.js → dropdown.hc9ZuuTt.js} +197 -193
- package/dist/chunks/dropdown.hc9ZuuTt.js.map +1 -0
- package/dist/chunks/{error-message.Ccc1sTTp.js → error-message.Da-p1QIA.js} +8 -8
- package/dist/chunks/{error-message.Ccc1sTTp.js.map → error-message.Da-p1QIA.js.map} +1 -1
- package/dist/chunks/{es6.jIyAPBgt.js → es6.BtaxuP0b.js} +7 -7
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -0
- package/dist/chunks/file-uploader.DVyryYaq.js +1879 -0
- package/dist/chunks/file-uploader.DVyryYaq.js.map +1 -0
- package/dist/chunks/{filter-bar.DT_-lVmf.js → filter-bar.DzcNo5nF.js} +53 -53
- package/dist/chunks/{filter-bar.DT_-lVmf.js.map → filter-bar.DzcNo5nF.js.map} +1 -1
- package/dist/chunks/{footer-actions.D0uH9JWq.js → footer-actions.Cbe_YLjP.js} +2 -2
- package/dist/chunks/{footer-actions.D0uH9JWq.js.map → footer-actions.Cbe_YLjP.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DN0jonFa.js → form-layout-title.Xdsi84v2.js} +2 -2
- package/dist/chunks/{form-layout-title.DN0jonFa.js.map → form-layout-title.Xdsi84v2.js.map} +1 -1
- package/dist/chunks/{header.BvZxtIOD.js → header.BIZTUAJE.js} +4 -4
- package/dist/chunks/{header.BvZxtIOD.js.map → header.BIZTUAJE.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DEjsASNU.js → info-icon-with-popover.Bly2e0uy.js} +5 -5
- package/dist/chunks/{info-icon-with-popover.DEjsASNU.js.map → info-icon-with-popover.Bly2e0uy.js.map} +1 -1
- package/dist/chunks/{input-field-password.HRDEb0jL.js → input-field-password.CosL-n__.js} +27 -27
- package/dist/chunks/{input-field-password.HRDEb0jL.js.map → input-field-password.CosL-n__.js.map} +1 -1
- package/dist/chunks/input-field.DgDFJbg7.js +231 -0
- package/dist/chunks/input-field.DgDFJbg7.js.map +1 -0
- package/dist/chunks/{inspector.types.2YEArjPi.js → inspector.types.8071wkf0.js} +5 -5
- package/dist/chunks/{inspector.types.2YEArjPi.js.map → inspector.types.8071wkf0.js.map} +1 -1
- package/dist/chunks/{menu.CLaN9Eys.js → menu.Dq7RlryT.js} +5 -5
- package/dist/chunks/{menu.CLaN9Eys.js.map → menu.Dq7RlryT.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.B-qr1Szh.js → modal-fullscreen.CfrgVR_K.js} +5 -5
- package/dist/chunks/{modal-fullscreen.B-qr1Szh.js.map → modal-fullscreen.CfrgVR_K.js.map} +1 -1
- package/dist/chunks/{modal.wU3uUJKq.js → modal.CuUUMIU_.js} +4 -4
- package/dist/chunks/{modal.wU3uUJKq.js.map → modal.CuUUMIU_.js.map} +1 -1
- package/dist/chunks/{pagination.BM3FhtxJ.js → pagination.QF1EEUfX.js} +45 -45
- package/dist/chunks/{pagination.BM3FhtxJ.js.map → pagination.QF1EEUfX.js.map} +1 -1
- package/dist/chunks/{popover.DsUymZWJ.js → popover.nev0GndY.js} +2 -2
- package/dist/chunks/{popover.DsUymZWJ.js.map → popover.nev0GndY.js.map} +1 -1
- package/dist/chunks/radio-group.D1q0VKvv.js +229 -0
- package/dist/chunks/radio-group.D1q0VKvv.js.map +1 -0
- package/dist/chunks/{radio-input.C1DZbkcT.js → radio-input.uJAhxKRs.js} +29 -25
- package/dist/chunks/{radio-input.C1DZbkcT.js.map → radio-input.uJAhxKRs.js.map} +1 -1
- package/dist/chunks/{search-bar.rubkdbcD.js → search-bar.fmMx-zRN.js} +7 -7
- package/dist/chunks/{search-bar.rubkdbcD.js.map → search-bar.fmMx-zRN.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DKSjc5bn.js → secondary-nav.ldVrzGbB.js} +7 -7
- package/dist/chunks/{secondary-nav.DKSjc5bn.js.map → secondary-nav.ldVrzGbB.js.map} +1 -1
- package/dist/chunks/{selection-card-group.iYyZ9yX4.js → selection-card-group.CdkrhyZV.js} +11 -11
- package/dist/chunks/{selection-card-group.iYyZ9yX4.js.map → selection-card-group.CdkrhyZV.js.map} +1 -1
- package/dist/chunks/{sidepanel.CQnLpV8A.js → sidepanel.D-KuHnwI.js} +5 -5
- package/dist/chunks/{sidepanel.CQnLpV8A.js.map → sidepanel.D-KuHnwI.js.map} +1 -1
- package/dist/chunks/{status.types.Cv6hHRMu.js → status.types.Ce018tQy.js} +18 -17
- package/dist/chunks/status.types.Ce018tQy.js.map +1 -0
- package/dist/chunks/{structured-list-item.BhBbmkbw.js → structured-list-item.Dk8Z-FPn.js} +5 -5
- package/dist/chunks/{structured-list-item.BhBbmkbw.js.map → structured-list-item.Dk8Z-FPn.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js → summary-grid-item-custom.atXX3GY9.js} +2 -2
- package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js.map → summary-grid-item-custom.atXX3GY9.js.map} +1 -1
- package/dist/chunks/{textarea.Cf21WMwL.js → textarea.BVzGn3zO.js} +2 -2
- package/dist/chunks/{textarea.Cf21WMwL.js.map → textarea.BVzGn3zO.js.map} +1 -1
- package/dist/chunks/{timeline-item.Cu5b-Mqj.js → timeline-item.D_YNHlRi.js} +13 -13
- package/dist/chunks/{timeline-item.Cu5b-Mqj.js.map → timeline-item.D_YNHlRi.js.map} +1 -1
- package/dist/chunks/{tutorial.w2ZqeOh1.js → tutorial.cQXPvqV4.js} +10 -10
- package/dist/chunks/{tutorial.w2ZqeOh1.js.map → tutorial.cQXPvqV4.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.impKjAIS.js → use-cached-selected-values.BGlHmPhX.js} +10 -10
- package/dist/chunks/{use-cached-selected-values.impKjAIS.js.map → use-cached-selected-values.BGlHmPhX.js.map} +1 -1
- package/dist/chunks/{use-country-items.DPBbl1KK.js → use-country-items.eWARMT6I.js} +2 -2
- package/dist/chunks/{use-country-items.DPBbl1KK.js.map → use-country-items.eWARMT6I.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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 +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +47 -47
- package/dist/input-field-password.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- 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/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +2 -0
- package/dist/styles/bento-light.css +2 -0
- package/dist/styles/bento.css +2 -0
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +2 -0
- package/dist/summary-grid.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 +42 -3
- package/package.json +12 -7
- package/dist/chunks/code-snippet.5iJcUZSo.js.map +0 -1
- package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
- package/dist/chunks/date-picker.B7mTNghB.js.map +0 -1
- package/dist/chunks/date-range-picker.DPLri9D-.js.map +0 -1
- package/dist/chunks/divider.BZfeYmB9.js +0 -30
- package/dist/chunks/divider.BZfeYmB9.js.map +0 -1
- package/dist/chunks/dropdown.BqsoncJr.js.map +0 -1
- package/dist/chunks/es6.jIyAPBgt.js.map +0 -1
- package/dist/chunks/file-uploader.C6kcnhqp.js +0 -729
- package/dist/chunks/file-uploader.C6kcnhqp.js.map +0 -1
- package/dist/chunks/input-field.D6N2kt7s.js +0 -228
- package/dist/chunks/input-field.D6N2kt7s.js.map +0 -1
- package/dist/chunks/radio-group.DMob8x2J.js +0 -219
- package/dist/chunks/radio-group.DMob8x2J.js.map +0 -1
- package/dist/chunks/status.types.Cv6hHRMu.js.map +0 -1
|
@@ -1,729 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, ref as h, onUnmounted as ce, onMounted as ue, computed as u, watch as ee, reactive as A, toRef as de } from "vue";
|
|
2
|
-
import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
3
|
-
import { W as te } from "./warning-filled.CLKRzGMT.js";
|
|
4
|
-
import { B as pe } from "./alert.CAIp-87f.js";
|
|
5
|
-
import { B as se } from "./button.BX6ZJxF7.js";
|
|
6
|
-
import { B as U } from "./typography.J1v_SPG3.js";
|
|
7
|
-
import { u as M } from "./i18n.BQkEbtPM.js";
|
|
8
|
-
import { g as Z } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
-
import { i as re } from "./index.Cl4_42j5.js";
|
|
10
|
-
import { C as fe } from "./checkmark-circle-fill.Cn7JN_Tk.js";
|
|
11
|
-
import { C as _e } from "./cross.CsUPDmaA.js";
|
|
12
|
-
import { R as me } from "./refresh.BKI9WwKh.js";
|
|
13
|
-
import { B as Ce } from "./link.UOEUR35A.js";
|
|
14
|
-
import { B as ve } from "./loading-indicator.z8COalOc.js";
|
|
15
|
-
import { B as ge } from "./tooltip.R2sqydIE.js";
|
|
16
|
-
import { F as he, E as Re } from "./error-message.Ccc1sTTp.js";
|
|
17
|
-
import "../assets/file-uploader.css";
|
|
18
|
-
let N = 0;
|
|
19
|
-
const ye = {
|
|
20
|
-
beforeCreate() {
|
|
21
|
-
this.uuid = N.toString(), N += 1;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
var be = 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
|
-
}, xe = [], Ee = /* @__PURE__ */ f(
|
|
28
|
-
ye,
|
|
29
|
-
be,
|
|
30
|
-
xe,
|
|
31
|
-
!1,
|
|
32
|
-
null,
|
|
33
|
-
null
|
|
34
|
-
);
|
|
35
|
-
const $e = Ee.exports, Le = /* @__PURE__ */ D({
|
|
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: re };
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
var Ie = 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
|
-
}, we = [], Fe = /* @__PURE__ */ f(
|
|
49
|
-
Le,
|
|
50
|
-
Ie,
|
|
51
|
-
we,
|
|
52
|
-
!1,
|
|
53
|
-
null,
|
|
54
|
-
null
|
|
55
|
-
);
|
|
56
|
-
const Ve = Fe.exports;
|
|
57
|
-
let P = 0;
|
|
58
|
-
const Se = {
|
|
59
|
-
beforeCreate() {
|
|
60
|
-
this.uuid = P.toString(), P += 1;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
var He = 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
|
-
}, De = [], Me = /* @__PURE__ */ f(
|
|
67
|
-
Se,
|
|
68
|
-
He,
|
|
69
|
-
De,
|
|
70
|
-
!1,
|
|
71
|
-
null,
|
|
72
|
-
null
|
|
73
|
-
);
|
|
74
|
-
const Te = Me.exports;
|
|
75
|
-
function Oe(r, e) {
|
|
76
|
-
const t = h(!1);
|
|
77
|
-
let s;
|
|
78
|
-
function n() {
|
|
79
|
-
s && s.disconnect();
|
|
80
|
-
}
|
|
81
|
-
return ce(() => {
|
|
82
|
-
n();
|
|
83
|
-
}), ue(() => {
|
|
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 k = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
-
function ae(r, e) {
|
|
97
|
-
let t = 0, s = e;
|
|
98
|
-
for (; s >= 1e3 && t < k.length - 1; )
|
|
99
|
-
s /= 1e3, t++;
|
|
100
|
-
return new Intl.NumberFormat(r, {
|
|
101
|
-
style: "unit",
|
|
102
|
-
unit: k[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 g = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(g || {}), m = /* @__PURE__ */ ((r) => (r.ERROR_SIZE = "error-size", r.ERROR_LOAD = "error-load", r.ERROR_DIMENSIONS = "error-dimensions", r.ERROR_TYPE = "error-type", r))(m || {}), H = /* @__PURE__ */ ((r) => (r.DISABLED = "disabled", r.DRAG_OVER = "drag-over", r.ERROR = "error", r.READONLY = "readonly", r))(H || {}), 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 Be = [
|
|
111
|
-
"application/msword",
|
|
112
|
-
// .doc
|
|
113
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
114
|
-
// .docx
|
|
115
|
-
"application/rtf"
|
|
116
|
-
// .rtf
|
|
117
|
-
], Ze = [
|
|
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
|
-
], Ue = [
|
|
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
|
-
], ze = [
|
|
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 Ae(r) {
|
|
160
|
-
return Ze.includes(r.type) ? l.TABLE : r.type.startsWith("text/") || Be.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 : Ue.includes(r.type) ? l.SLIDES : ze.includes(r.type) ? l.COMPRESSED : l.GENERIC;
|
|
161
|
-
}
|
|
162
|
-
function Ne(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 Pe(r, e, t) {
|
|
179
|
-
const s = new FileReader(), n = r;
|
|
180
|
-
if (!Ne(n.data, e)) {
|
|
181
|
-
n.state = g.ERROR, n.errors.push(m.ERROR_TYPE);
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
s.onload = (a) => {
|
|
185
|
-
if (t && n.type === l.IMAGE) {
|
|
186
|
-
const d = new Blob([a.target.result], { type: n.data.type }), C = URL.createObjectURL(d), c = new Image();
|
|
187
|
-
c.onload = function() {
|
|
188
|
-
(c.width > t.width || c.height > t.height) && (n.state = g.ERROR, n.errors.push(m.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 !== g.ERROR && (n.state = g.SUCCESS), n.progress = null;
|
|
197
|
-
}, s.onerror = () => {
|
|
198
|
-
n.state = g.ERROR, n.errors.push(m.ERROR_LOAD), n.progress = null;
|
|
199
|
-
}, s.readAsArrayBuffer(n.data);
|
|
200
|
-
}
|
|
201
|
-
let G = 0;
|
|
202
|
-
const ke = {
|
|
203
|
-
beforeCreate() {
|
|
204
|
-
this.uuid = G.toString(), G += 1;
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
var Ge = 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 = [], je = /* @__PURE__ */ f(
|
|
211
|
-
ke,
|
|
212
|
-
Ge,
|
|
213
|
-
We,
|
|
214
|
-
!1,
|
|
215
|
-
null,
|
|
216
|
-
null
|
|
217
|
-
);
|
|
218
|
-
const Ye = je.exports;
|
|
219
|
-
let W = 0;
|
|
220
|
-
const qe = {
|
|
221
|
-
beforeCreate() {
|
|
222
|
-
this.uuid = W.toString(), W += 1;
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
var Xe = 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
|
-
}, Je = [], Ke = /* @__PURE__ */ f(
|
|
229
|
-
qe,
|
|
230
|
-
Xe,
|
|
231
|
-
Je,
|
|
232
|
-
!1,
|
|
233
|
-
null,
|
|
234
|
-
null
|
|
235
|
-
);
|
|
236
|
-
const Qe = Ke.exports;
|
|
237
|
-
let j = 0;
|
|
238
|
-
const et = {
|
|
239
|
-
beforeCreate() {
|
|
240
|
-
this.uuid = j.toString(), j += 1;
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
var tt = 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
|
-
}, st = [], rt = /* @__PURE__ */ f(
|
|
247
|
-
et,
|
|
248
|
-
tt,
|
|
249
|
-
st,
|
|
250
|
-
!1,
|
|
251
|
-
null,
|
|
252
|
-
null
|
|
253
|
-
);
|
|
254
|
-
const at = rt.exports;
|
|
255
|
-
let Y = 0;
|
|
256
|
-
const it = {
|
|
257
|
-
beforeCreate() {
|
|
258
|
-
this.uuid = Y.toString(), Y += 1;
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
var nt = 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
|
-
}, ot = [], lt = /* @__PURE__ */ f(
|
|
265
|
-
it,
|
|
266
|
-
nt,
|
|
267
|
-
ot,
|
|
268
|
-
!1,
|
|
269
|
-
null,
|
|
270
|
-
null
|
|
271
|
-
);
|
|
272
|
-
const ct = lt.exports;
|
|
273
|
-
let q = 0;
|
|
274
|
-
const ut = {
|
|
275
|
-
beforeCreate() {
|
|
276
|
-
this.uuid = q.toString(), q += 1;
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
var dt = 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
|
-
}, pt = [], ft = /* @__PURE__ */ f(
|
|
283
|
-
ut,
|
|
284
|
-
dt,
|
|
285
|
-
pt,
|
|
286
|
-
!1,
|
|
287
|
-
null,
|
|
288
|
-
null
|
|
289
|
-
);
|
|
290
|
-
const _t = ft.exports;
|
|
291
|
-
let X = 0;
|
|
292
|
-
const mt = {
|
|
293
|
-
beforeCreate() {
|
|
294
|
-
this.uuid = X.toString(), X += 1;
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
var Ct = 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
|
-
}, vt = [], gt = /* @__PURE__ */ f(
|
|
301
|
-
mt,
|
|
302
|
-
Ct,
|
|
303
|
-
vt,
|
|
304
|
-
!1,
|
|
305
|
-
null,
|
|
306
|
-
null
|
|
307
|
-
);
|
|
308
|
-
const ht = gt.exports;
|
|
309
|
-
let J = 0;
|
|
310
|
-
const Rt = {
|
|
311
|
-
beforeCreate() {
|
|
312
|
-
this.uuid = J.toString(), J += 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
|
-
}, bt = [], xt = /* @__PURE__ */ f(
|
|
319
|
-
Rt,
|
|
320
|
-
yt,
|
|
321
|
-
bt,
|
|
322
|
-
!1,
|
|
323
|
-
null,
|
|
324
|
-
null
|
|
325
|
-
);
|
|
326
|
-
const Et = xt.exports;
|
|
327
|
-
let K = 0;
|
|
328
|
-
const $t = {
|
|
329
|
-
beforeCreate() {
|
|
330
|
-
this.uuid = K.toString(), K += 1;
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
var Lt = 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
|
-
}, It = [], wt = /* @__PURE__ */ f(
|
|
337
|
-
$t,
|
|
338
|
-
Lt,
|
|
339
|
-
It,
|
|
340
|
-
!1,
|
|
341
|
-
null,
|
|
342
|
-
null
|
|
343
|
-
);
|
|
344
|
-
const Ft = wt.exports;
|
|
345
|
-
let Q = 0;
|
|
346
|
-
const Vt = {
|
|
347
|
-
beforeCreate() {
|
|
348
|
-
this.uuid = Q.toString(), Q += 1;
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
var St = 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
|
-
}, Ht = [], Dt = /* @__PURE__ */ f(
|
|
355
|
-
Vt,
|
|
356
|
-
St,
|
|
357
|
-
Ht,
|
|
358
|
-
!1,
|
|
359
|
-
null,
|
|
360
|
-
null
|
|
361
|
-
);
|
|
362
|
-
const Mt = Dt.exports, Tt = {
|
|
363
|
-
[l.AUDIO]: Ft,
|
|
364
|
-
[l.COMPRESSED]: _t,
|
|
365
|
-
[l.GENERIC]: Ye,
|
|
366
|
-
[l.IMAGE]: ht,
|
|
367
|
-
[l.PDF]: at,
|
|
368
|
-
[l.SLIDES]: Qe,
|
|
369
|
-
[l.TABLE]: Mt,
|
|
370
|
-
[l.TEXT]: ct,
|
|
371
|
-
[l.VIDEO]: Et
|
|
372
|
-
};
|
|
373
|
-
function Ot(r) {
|
|
374
|
-
return Tt[r.type];
|
|
375
|
-
}
|
|
376
|
-
function Bt(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 Zt = {
|
|
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
|
-
}, Ut = {
|
|
410
|
-
name: "file-uploader-file-card",
|
|
411
|
-
i18n: { messages: Zt }
|
|
412
|
-
}, zt = /* @__PURE__ */ D({
|
|
413
|
-
...Ut,
|
|
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 } = M(), d = h(t.file.state === g.SUCCESS), C = u(() => URL.createObjectURL(t.file.data)), c = u(() => t.file.state === g.ERROR), _ = u(() => t.file.errors.includes(m.ERROR_LOAD)), v = u(() => t.file.errors.includes(m.ERROR_SIZE)), y = u(() => t.file.errors.includes(m.ERROR_DIMENSIONS)), b = u(() => t.file.errors.includes(m.ERROR_TYPE)), x = u(() => t.file.state === g.LOADING), E = u(() => t.file.progress && `(${t.file.progress.toFixed(0)}%)`), T = u(() => ae(a.value, t.file.data.size)), w = h(), F = h(), V = Oe(w, F), S = u(() => ({
|
|
421
|
-
"b-file-uploader-file-card--error": c.value
|
|
422
|
-
})), O = u(() => ({
|
|
423
|
-
[`b-file-uploader-file-card__icon--${Bt(t.file)}`]: d.value,
|
|
424
|
-
"b-file-uploader-file-card__icon--error": c.value
|
|
425
|
-
})), $ = u(() => x.value ? ve : c.value ? te : d.value ? Ot(t.file) : fe);
|
|
426
|
-
return ee(
|
|
427
|
-
() => t.file.state,
|
|
428
|
-
(L) => {
|
|
429
|
-
if (L === g.SUCCESS && !d.value) {
|
|
430
|
-
const B = setTimeout(() => {
|
|
431
|
-
d.value = !0, clearTimeout(B);
|
|
432
|
-
}, s);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
), { __sfc: !0, ICON_TIMER: s, props: t, emit: e, t: n, locale: a, showFileIcon: d, downloadUrl: C, hasError: c, hasLoadError: _, hasSizeError: v, hasDimensionsError: y, hasTypeError: b, isLoading: x, progressLabel: E, sizeLabel: T, fileNameRef: w, fileNameContainerRef: F, isFileNameTruncated: V, conditionalClasses: S, conditionalIconClasses: O, fileUploaderIcon: $, isVue2: re, FileUploaderFileCardAnimation: Ve, BinIcon: Te, CrossIcon: _e, RefreshIcon: me, vBentoTooltipDirective: ge, BentoButton: se, BentoLink: Ce, BentoTypography: U };
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
var At = 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")) + " ")]) : e._e(), s.hasDimensionsError ? t(s.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [e._v(" " + e._s(s.t("imageDimensionsExceedLimits")) + " ")]) : e._e(), 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
|
-
}, Nt = [], Pt = /* @__PURE__ */ f(
|
|
454
|
-
zt,
|
|
455
|
-
At,
|
|
456
|
-
Nt,
|
|
457
|
-
!1,
|
|
458
|
-
null,
|
|
459
|
-
"56f32ebc"
|
|
460
|
-
);
|
|
461
|
-
const kt = Pt.exports, Gt = {
|
|
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: Gt }
|
|
472
|
-
}, jt = /* @__PURE__ */ D({
|
|
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 } = M(), a = u(() => ({
|
|
485
|
-
"b-file-uploader-restrictions--condensed": e.condensed,
|
|
486
|
-
"b-file-uploader-restrictions--disabled": e.disabled
|
|
487
|
-
}));
|
|
488
|
-
function d(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: d, maxDimensionsLabel: C, BentoTypography: U, formatFileSize: ae };
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
var Yt = 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
|
-
}, qt = [], Xt = /* @__PURE__ */ f(
|
|
508
|
-
jt,
|
|
509
|
-
Yt,
|
|
510
|
-
qt,
|
|
511
|
-
!1,
|
|
512
|
-
null,
|
|
513
|
-
"3c1d05d1"
|
|
514
|
-
);
|
|
515
|
-
const Jt = Xt.exports;
|
|
516
|
-
function Kt(r) {
|
|
517
|
-
const { locale: e, t } = M();
|
|
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 d = a.trim();
|
|
523
|
-
switch (d) {
|
|
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 d.toUpperCase();
|
|
532
|
-
}
|
|
533
|
-
})
|
|
534
|
-
) : null;
|
|
535
|
-
}) };
|
|
536
|
-
}
|
|
537
|
-
const Qt = {
|
|
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
|
-
}, es = {
|
|
560
|
-
model: { prop: "modelValue" },
|
|
561
|
-
i18n: { messages: Qt }
|
|
562
|
-
}, ts = /* @__PURE__ */ D({
|
|
563
|
-
...es,
|
|
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 } = M(), a = Z("input"), d = Z("input-error"), C = h(null), c = h(), _ = A({
|
|
583
|
-
dragging: !1,
|
|
584
|
-
error: !1
|
|
585
|
-
}), v = h(null), { supportedFileTypeList: y } = Kt(de(t, "accept")), b = h(!1), x = u(() => !!t.errorMessage || _.error), E = u(() => t.maxCount > 1), T = u(() => ({
|
|
586
|
-
[`b-file-uploader--${H.DISABLED}`]: t.disabled,
|
|
587
|
-
[`b-file-uploader--${H.DRAG_OVER}`]: _.dragging,
|
|
588
|
-
[`b-file-uploader--${H.ERROR}`]: x.value,
|
|
589
|
-
"b-file-uploader--condensed": t.condensed
|
|
590
|
-
})), w = u(() => {
|
|
591
|
-
var i;
|
|
592
|
-
return t.maxCount && ((i = v.value) == null ? void 0 : i.length) >= t.maxCount;
|
|
593
|
-
}), F = u(() => {
|
|
594
|
-
var i, o, p;
|
|
595
|
-
return {
|
|
596
|
-
condensed: t.condensed,
|
|
597
|
-
disabled: t.disabled,
|
|
598
|
-
maxCount: E.value ? {
|
|
599
|
-
value: t.maxCount,
|
|
600
|
-
error: b.value
|
|
601
|
-
} : null,
|
|
602
|
-
maxDimensions: t.maxDimensions ? {
|
|
603
|
-
value: t.maxDimensions,
|
|
604
|
-
error: (i = v.value) == null ? void 0 : i.some((R) => R.errors.includes(m.ERROR_DIMENSIONS))
|
|
605
|
-
} : null,
|
|
606
|
-
maxSize: t.maxSize ? {
|
|
607
|
-
value: t.maxSize,
|
|
608
|
-
error: (o = v.value) == null ? void 0 : o.some((R) => R.errors.includes(m.ERROR_SIZE))
|
|
609
|
-
} : null,
|
|
610
|
-
supportedFileTypes: y.value ? {
|
|
611
|
-
value: y.value,
|
|
612
|
-
error: (p = v.value) == null ? void 0 : p.some((R) => R.errors.includes(m.ERROR_TYPE))
|
|
613
|
-
} : null
|
|
614
|
-
};
|
|
615
|
-
});
|
|
616
|
-
function V(i) {
|
|
617
|
-
const o = t.maxCount && i.length <= t.maxCount;
|
|
618
|
-
b.value = !o;
|
|
619
|
-
}
|
|
620
|
-
function S(i) {
|
|
621
|
-
t.maxSize && i.forEach((o) => {
|
|
622
|
-
const p = o;
|
|
623
|
-
p.data.size > t.maxSize && (p.state = g.ERROR, p.errors.push(m.ERROR_SIZE));
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
function O(i) {
|
|
627
|
-
i.preventDefault(), t.disabled && (i.dataTransfer.dropEffect = "none");
|
|
628
|
-
}
|
|
629
|
-
function $(i) {
|
|
630
|
-
const o = A({
|
|
631
|
-
id: Z("file"),
|
|
632
|
-
data: i,
|
|
633
|
-
errors: [],
|
|
634
|
-
state: g.LOADING,
|
|
635
|
-
type: Ae(i),
|
|
636
|
-
progress: null
|
|
637
|
-
});
|
|
638
|
-
return Pe(o, t.accept, t.maxDimensions), o;
|
|
639
|
-
}
|
|
640
|
-
function L(i) {
|
|
641
|
-
E.value ? v.value = [...v.value || [], ...Array.from(i).map((o) => $(o))] : v.value = [$(i[0])];
|
|
642
|
-
}
|
|
643
|
-
function B() {
|
|
644
|
-
var i, o;
|
|
645
|
-
if (t.maxCount === 1 && ((i = C.value.files) == null ? void 0 : i.length) > t.maxCount) {
|
|
646
|
-
I();
|
|
647
|
-
return;
|
|
648
|
-
}
|
|
649
|
-
(o = C.value.files) != null && o.length && L(C.value.files), C.value.value = "";
|
|
650
|
-
}
|
|
651
|
-
function I() {
|
|
652
|
-
c.value = null, !t.disabled && (_.dragging = !1, _.error = !1);
|
|
653
|
-
}
|
|
654
|
-
function ie(i) {
|
|
655
|
-
var o;
|
|
656
|
-
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));
|
|
657
|
-
}
|
|
658
|
-
function ne(i) {
|
|
659
|
-
c.value === i.target && I();
|
|
660
|
-
}
|
|
661
|
-
function oe(i) {
|
|
662
|
-
var o, p;
|
|
663
|
-
if (!t.disabled) {
|
|
664
|
-
if (t.maxCount === 1 && ((o = i.dataTransfer.files) == null ? void 0 : o.length) > t.maxCount) {
|
|
665
|
-
I();
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
(p = i.dataTransfer.files) != null && p.length && L(i.dataTransfer.files), I();
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
function le(i) {
|
|
672
|
-
v.value = v.value.filter(({ id: o }) => o !== i.id);
|
|
673
|
-
}
|
|
674
|
-
function z(i) {
|
|
675
|
-
const o = i.filter(
|
|
676
|
-
({ errors: p }) => !p.includes(m.ERROR_LOAD) && !p.includes(m.ERROR_SIZE)
|
|
677
|
-
);
|
|
678
|
-
if (o.length) {
|
|
679
|
-
const p = new DataTransfer();
|
|
680
|
-
return o.forEach(({ data: R }) => p.items.add(R)), p.files;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
return ee(v, (i) => {
|
|
684
|
-
if (i) {
|
|
685
|
-
V(i), S(i);
|
|
686
|
-
const o = z(i);
|
|
687
|
-
e("change", o), e("update:modelValue", o);
|
|
688
|
-
} else
|
|
689
|
-
e("change"), e("update:modelValue");
|
|
690
|
-
}), { __sfc: !0, props: t, emit: e, t: s, tc: n, inputFieldId: a, errorId: d, input: C, enterTarget: c, dragState: _, files: v, supportedFileTypeList: y, maxFileError: b, hasError: x, isMultiple: E, conditionalClasses: T, hideArea: w, fileUploadRestrictionsProps: F, verifyFileCount: V, verifyFileSize: S, onDragOver: O, processFile: $, onFileInput: L, onInputChange: B, resetDragState: I, onDragEnter: ie, onDragLeave: ne, onDrop: oe, removeFile: le, convertToFileList: z, UploadIcon: $e, WarningFilledIcon: te, BentoAlert: pe, BentoButton: se, BentoTypography: U, ErrorMessage: Re, FieldLabel: he, FileUploaderFileCard: kt, FileUploaderRestrictions: Jt };
|
|
691
|
-
}
|
|
692
|
-
});
|
|
693
|
-
var ss = function() {
|
|
694
|
-
var n;
|
|
695
|
-
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
696
|
-
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) {
|
|
697
|
-
return s.input.click();
|
|
698
|
-
}, dragenter: function(a) {
|
|
699
|
-
return a.stopPropagation(), a.preventDefault(), s.onDragEnter.apply(null, arguments);
|
|
700
|
-
}, dragleave: function(a) {
|
|
701
|
-
return a.stopPropagation(), a.preventDefault(), s.onDragLeave.apply(null, arguments);
|
|
702
|
-
}, drop: function(a) {
|
|
703
|
-
return a.stopPropagation(), a.preventDefault(), s.onDrop.apply(null, arguments);
|
|
704
|
-
}, dragover: s.onDragOver, "!keydown": [function(a) {
|
|
705
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : (a.preventDefault(), s.input.click());
|
|
706
|
-
}, function(a) {
|
|
707
|
-
return !a.type.indexOf("key") && e._k(a.keyCode, "space", 32, a.key, [" ", "Spacebar"]) ? null : (a.preventDefault(), s.input.click());
|
|
708
|
-
}] } }, [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() {
|
|
709
|
-
return [e._v(" " + e._s(s.t("youHaveExceededTheMaximum", { count: s.props.maxCount })) + " ")];
|
|
710
|
-
}, 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) {
|
|
711
|
-
return t(s.FileUploaderFileCard, { key: a.id, attrs: { file: a, "supported-file-types": s.supportedFileTypeList }, on: { cancel: function(d) {
|
|
712
|
-
return s.removeFile(a);
|
|
713
|
-
}, remove: function(d) {
|
|
714
|
-
return s.removeFile(a);
|
|
715
|
-
} } });
|
|
716
|
-
}), 1)], 1);
|
|
717
|
-
}, rs = [], as = /* @__PURE__ */ f(
|
|
718
|
-
ts,
|
|
719
|
-
ss,
|
|
720
|
-
rs,
|
|
721
|
-
!1,
|
|
722
|
-
null,
|
|
723
|
-
"c5ba3553"
|
|
724
|
-
);
|
|
725
|
-
const ys = as.exports;
|
|
726
|
-
export {
|
|
727
|
-
ys as f
|
|
728
|
-
};
|
|
729
|
-
//# sourceMappingURL=file-uploader.C6kcnhqp.js.map
|