@adyen/bento-vue2 1.53.0 → 1.54.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 +1832 -2154
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid.css +1 -0
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.Cuktzrp5.js → action-bar.CH1Mswou.js} +5 -5
- package/dist/chunks/{action-bar.Cuktzrp5.js.map → action-bar.CH1Mswou.js.map} +1 -1
- package/dist/chunks/{base-modal.DnaWOvaM.js → base-modal.kHzGyWf6.js} +3 -3
- package/dist/chunks/{base-modal.DnaWOvaM.js.map → base-modal.kHzGyWf6.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.twMFsb82.js → button-actions-with-menu.mqNecwDb.js} +5 -5
- package/dist/chunks/{button-actions-with-menu.twMFsb82.js.map → button-actions-with-menu.mqNecwDb.js.map} +1 -1
- package/dist/chunks/{button-actions.DAvSJtOB.js → button-actions.XlUhz42n.js} +42 -100
- package/dist/chunks/{button-actions.DAvSJtOB.js.map → button-actions.XlUhz42n.js.map} +1 -1
- package/dist/chunks/{calendar.CJToU_uI.js → calendar.D4dMXwc0.js} +4 -4
- package/dist/chunks/{calendar.CJToU_uI.js.map → calendar.D4dMXwc0.js.map} +1 -1
- package/dist/chunks/{card.AQO_BjGb.js → card.BT04hjvV.js} +2 -2
- package/dist/chunks/{card.AQO_BjGb.js.map → card.BT04hjvV.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DkM6n3JR.js → checkbox-group.DZF4UIym.js} +4 -4
- package/dist/chunks/{checkbox-group.DkM6n3JR.js.map → checkbox-group.DZF4UIym.js.map} +1 -1
- package/dist/chunks/{checkbox.l7h6GYew.js → checkbox.DloQJI-K.js} +40 -40
- package/dist/chunks/checkbox.DloQJI-K.js.map +1 -0
- package/dist/chunks/{code-snippet.BsEe6nml.js → code-snippet.B3GhZo7r.js} +5 -5
- package/dist/chunks/{code-snippet.BsEe6nml.js.map → code-snippet.B3GhZo7r.js.map} +1 -1
- package/dist/chunks/{controls-group.vFyThDMU.js → controls-group.C-HKhH1m.js} +2 -2
- package/dist/chunks/{controls-group.vFyThDMU.js.map → controls-group.C-HKhH1m.js.map} +1 -1
- package/dist/chunks/{copy.DD_Yfyn_.js → copy.k18tXmP1.js} +3 -3
- package/dist/chunks/{copy.DD_Yfyn_.js.map → copy.k18tXmP1.js.map} +1 -1
- package/dist/chunks/{dashboard-section.z-Rnv5E-.js → dashboard-section.DlIwNKkx.js} +4 -4
- package/dist/chunks/{dashboard-section.z-Rnv5E-.js.map → dashboard-section.DlIwNKkx.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CfQuYKV9.js → dashed-underline.BbQIbZfu.js} +3 -3
- package/dist/chunks/{dashed-underline.CfQuYKV9.js.map → dashed-underline.BbQIbZfu.js.map} +1 -1
- package/dist/chunks/{data-grid-template.73mazFER.js → data-grid-template.BJTWe6Ty.js} +3 -3
- package/dist/chunks/{data-grid-template.73mazFER.js.map → data-grid-template.BJTWe6Ty.js.map} +1 -1
- package/dist/chunks/{data-grid.C_Xoz-GC.js → data-grid.BjtvKzyw.js} +199 -199
- package/dist/chunks/data-grid.BjtvKzyw.js.map +1 -0
- package/dist/chunks/{date-picker.bgk9aymW.js → date-picker.Dy0k-7_1.js} +15 -15
- package/dist/chunks/{date-picker.bgk9aymW.js.map → date-picker.Dy0k-7_1.js.map} +1 -1
- package/dist/chunks/{date-range-picker.-s05jOQA.js → date-range-picker.B_uiZRMc.js} +24 -24
- package/dist/chunks/{date-range-picker.-s05jOQA.js.map → date-range-picker.B_uiZRMc.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.8qh8J-NE.js → dropdown-tag.D3py85f0.js} +4 -4
- package/dist/chunks/{dropdown-tag.8qh8J-NE.js.map → dropdown-tag.D3py85f0.js.map} +1 -1
- package/dist/chunks/{dropdown.DzWXcJyF.js → dropdown.CI6ccgJJ.js} +52 -53
- package/dist/chunks/{dropdown.DzWXcJyF.js.map → dropdown.CI6ccgJJ.js.map} +1 -1
- package/dist/chunks/{error-message.CzQf7YOD.js → error-message.qHRfH-8Y.js} +2 -2
- package/dist/chunks/{error-message.CzQf7YOD.js.map → error-message.qHRfH-8Y.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.CcZPr-jD.js → file-uploader.BOWE87dN.js} +469 -449
- package/dist/chunks/file-uploader.BOWE87dN.js.map +1 -0
- package/dist/chunks/{filter-bar.BdGtQC7p.js → filter-bar.pVpO62X3.js} +633 -627
- package/dist/chunks/filter-bar.pVpO62X3.js.map +1 -0
- package/dist/chunks/{focus-trap.CIUzScHc.js → focus-trap.V3Q8H_5C.js} +2 -2
- package/dist/chunks/{focus-trap.CIUzScHc.js.map → focus-trap.V3Q8H_5C.js.map} +1 -1
- package/dist/chunks/{footer-actions.BkHpWa7A.js → footer-actions.DYi_MR9I.js} +2 -2
- package/dist/chunks/{footer-actions.BkHpWa7A.js.map → footer-actions.DYi_MR9I.js.map} +1 -1
- package/dist/chunks/{header-with-views.ChEgH2tn.js → header-with-views.CLSMOYua.js} +11 -11
- package/dist/chunks/{header-with-views.ChEgH2tn.js.map → header-with-views.CLSMOYua.js.map} +1 -1
- package/dist/chunks/{header.0hX8OYwM.js → header.DWx6s2nt.js} +4 -4
- package/dist/chunks/{header.0hX8OYwM.js.map → header.DWx6s2nt.js.map} +1 -1
- package/dist/chunks/{index.BCUiAdb6.js → index.48Mn1OCp.js} +3 -3
- package/dist/chunks/{index.BCUiAdb6.js.map → index.48Mn1OCp.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.w6MpKOWh.js → info-icon-with-popover.B4wYDzGz.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.w6MpKOWh.js.map → info-icon-with-popover.B4wYDzGz.js.map} +1 -1
- package/dist/chunks/{info-icon.C1ReXurF.js → info-icon.J62KXp9I.js} +3 -3
- package/dist/chunks/{info-icon.C1ReXurF.js.map → info-icon.J62KXp9I.js.map} +1 -1
- package/dist/chunks/input-field-password.D6lhO8b2.js +228 -0
- package/dist/chunks/input-field-password.D6lhO8b2.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.C8WTJ1W-.js → input-field-phone-number.CYRNWZL8.js} +3 -3
- package/dist/chunks/{input-field-phone-number.C8WTJ1W-.js.map → input-field-phone-number.CYRNWZL8.js.map} +1 -1
- package/dist/chunks/{input-field.tP3Eupoo.js → input-field.CsnMZceM.js} +3 -3
- package/dist/chunks/{input-field.tP3Eupoo.js.map → input-field.CsnMZceM.js.map} +1 -1
- package/dist/chunks/inspector.types.Cmq6sdCz.js +105 -0
- package/dist/chunks/inspector.types.Cmq6sdCz.js.map +1 -0
- package/dist/chunks/{layout-row.BgBazwnM.js → layout-row.DWRoI0dm.js} +2 -2
- package/dist/chunks/{layout-row.BgBazwnM.js.map → layout-row.DWRoI0dm.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.T9cfTst7.js → listbox-option-tag.BHI-8rRX.js} +2 -2
- package/dist/chunks/{listbox-option-tag.T9cfTst7.js.map → listbox-option-tag.BHI-8rRX.js.map} +1 -1
- package/dist/chunks/{menu.CY7ceslP.js → menu.BoxhffPs.js} +2 -2
- package/dist/chunks/{menu.CY7ceslP.js.map → menu.BoxhffPs.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Dz5w250z.js → modal-fullscreen.E7e13pW9.js} +3 -3
- package/dist/chunks/{modal-fullscreen.Dz5w250z.js.map → modal-fullscreen.E7e13pW9.js.map} +1 -1
- package/dist/chunks/{modal.CnmRkXZM.js → modal.BUPJIcb6.js} +4 -4
- package/dist/chunks/{modal.CnmRkXZM.js.map → modal.BUPJIcb6.js.map} +1 -1
- package/dist/chunks/{pagination.CvGOUwd8.js → pagination.FBlW1fUz.js} +3 -3
- package/dist/chunks/{pagination.CvGOUwd8.js.map → pagination.FBlW1fUz.js.map} +1 -1
- package/dist/chunks/{payment-method.NZKiNOmM.js → payment-method.Cx4nPDtE.js} +6 -6
- package/dist/chunks/payment-method.Cx4nPDtE.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
- package/dist/chunks/{popover.BvsqsZQ1.js → popover.C4PNSrnW.js} +3 -3
- package/dist/chunks/{popover.BvsqsZQ1.js.map → popover.C4PNSrnW.js.map} +1 -1
- package/dist/chunks/{popper-container.LRQgzjRf.js → popper-container.DWY19wS0.js} +2 -2
- package/dist/chunks/{popper-container.LRQgzjRf.js.map → popper-container.DWY19wS0.js.map} +1 -1
- package/dist/chunks/{promo-banner.DDnJwMDC.js → promo-banner.DgCKKp6o.js} +6 -6
- package/dist/chunks/{promo-banner.DDnJwMDC.js.map → promo-banner.DgCKKp6o.js.map} +1 -1
- package/dist/chunks/{radio-group.BvswbJa8.js → radio-group.WbbrQhEO.js} +4 -4
- package/dist/chunks/{radio-group.BvswbJa8.js.map → radio-group.WbbrQhEO.js.map} +1 -1
- package/dist/chunks/{search-bar.kKLreEXo.js → search-bar.CFKWbNeA.js} +3 -3
- package/dist/chunks/{search-bar.kKLreEXo.js.map → search-bar.CFKWbNeA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.C6bfsK2p.js → secondary-nav.C0gPD0MR.js} +3 -3
- package/dist/chunks/{secondary-nav.C6bfsK2p.js.map → secondary-nav.C0gPD0MR.js.map} +1 -1
- package/dist/chunks/{segmented-control.BywW3ont.js → segmented-control.DGNMY2BP.js} +2 -2
- package/dist/chunks/{segmented-control.BywW3ont.js.map → segmented-control.DGNMY2BP.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Ca4G00h5.js → selection-card-group.BmKUEuny.js} +11 -11
- package/dist/chunks/{selection-card-group.Ca4G00h5.js.map → selection-card-group.BmKUEuny.js.map} +1 -1
- package/dist/chunks/{sidepanel.D4H3Vu0m.js → sidepanel.CyhG1nQR.js} +3 -3
- package/dist/chunks/{sidepanel.D4H3Vu0m.js.map → sidepanel.CyhG1nQR.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Bv8reTz2.js → structured-list-item.Co5P9bFC.js} +4 -4
- package/dist/chunks/{structured-list-item.Bv8reTz2.js.map → structured-list-item.Co5P9bFC.js.map} +1 -1
- package/dist/chunks/summary-grid.types.egM7irBt.js +295 -0
- package/dist/chunks/summary-grid.types.egM7irBt.js.map +1 -0
- package/dist/chunks/tabs.C8CgvNt4.js +214 -0
- package/dist/chunks/tabs.C8CgvNt4.js.map +1 -0
- package/dist/chunks/{tag.IyMxowGc.js → tag.CyspYb1E.js} +2 -2
- package/dist/chunks/{tag.IyMxowGc.js.map → tag.CyspYb1E.js.map} +1 -1
- package/dist/chunks/{textarea.B9HjT5LH.js → textarea.CC8esIW6.js} +75 -71
- package/dist/chunks/textarea.CC8esIW6.js.map +1 -0
- package/dist/chunks/{timeline-item.BIwk0vqM.js → timeline-item.Byorbxmc.js} +5 -5
- package/dist/chunks/{timeline-item.BIwk0vqM.js.map → timeline-item.Byorbxmc.js.map} +1 -1
- package/dist/chunks/{tooltip.DShIiBiY.js → tooltip.DOvci5lX.js} +2 -2
- package/dist/chunks/{tooltip.DShIiBiY.js.map → tooltip.DOvci5lX.js.map} +1 -1
- package/dist/chunks/{tutorial.DDlXTjAO.js → tutorial.QwHbq1FO.js} +5 -5
- package/dist/chunks/{tutorial.DDlXTjAO.js.map → tutorial.QwHbq1FO.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.LVldNial.js → use-cached-selected-values.DHpjo2tV.js} +26 -26
- package/dist/chunks/{use-cached-selected-values.LVldNial.js.map → use-cached-selected-values.DHpjo2tV.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 +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +49 -49
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +10 -10
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +42 -16
- package/dist/styles/bento-light.css +42 -16
- package/dist/styles/bento.css +42 -16
- package/dist/styles/legacy.css +30 -4
- package/dist/styles/styleguide.css +42 -16
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.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 +5535 -5431
- package/package.json +5 -5
- package/dist/assets/summary-grid-item-custom.css +0 -1
- package/dist/chunks/checkbox.l7h6GYew.js.map +0 -1
- package/dist/chunks/data-grid.C_Xoz-GC.js.map +0 -1
- package/dist/chunks/file-uploader.CcZPr-jD.js.map +0 -1
- package/dist/chunks/filter-bar.BdGtQC7p.js.map +0 -1
- package/dist/chunks/input-field-password.CZn4kW8v.js +0 -198
- package/dist/chunks/input-field-password.CZn4kW8v.js.map +0 -1
- package/dist/chunks/inspector.types.A0b4jNO3.js +0 -101
- package/dist/chunks/inspector.types.A0b4jNO3.js.map +0 -1
- package/dist/chunks/payment-method.NZKiNOmM.js.map +0 -1
- package/dist/chunks/payment-method.types.CJKfZQN5.js +0 -5
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js +0 -631
- package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js.map +0 -1
- package/dist/chunks/tabs.UFoTqvew.js +0 -154
- package/dist/chunks/tabs.UFoTqvew.js.map +0 -1
- package/dist/chunks/textarea.B9HjT5LH.js.map +0 -1
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as G, ref as h, onUnmounted as Ma, onMounted as wa, computed as r, watch as N, reactive as ea, toRef as ta, nextTick as Da } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { n as
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { B as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { F as
|
|
3
|
+
import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
4
|
+
import { W as ya } from "./warning-filled.Cd0kVWwa.js";
|
|
5
|
+
import { B as Va } from "./alert.BkMKX9wD.js";
|
|
6
|
+
import { B as na, d as Ba } from "./typography.J1v_SPG3.js";
|
|
7
|
+
import { u as Y } from "./i18n.BQkEbtPM.js";
|
|
8
|
+
import { g as _ } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
+
import { i as Ca } from "./index.Cl4_42j5.js";
|
|
10
|
+
import { B as Oa } from "./bin.DuebwJYu.js";
|
|
11
|
+
import { C as Ha } from "./checkmark-circle-fill.DZBl7CeY.js";
|
|
12
|
+
import { C as qa } from "./cross.CJ5EEL2c.js";
|
|
13
|
+
import { R as Ua } from "./refresh.Bc9FzGjJ.js";
|
|
14
|
+
import { B as Aa } from "./button.D-3uUhuG.js";
|
|
15
|
+
import { B as Za } from "./link.BH3eB_7E.js";
|
|
16
|
+
import { B as Pa } from "./loading-indicator.z8COalOc.js";
|
|
17
|
+
import { B as Na } from "./tooltip.DOvci5lX.js";
|
|
18
|
+
import { F as Wa, E as Ga } from "./error-message.qHRfH-8Y.js";
|
|
19
19
|
import "../assets/file-uploader.css";
|
|
20
|
-
let
|
|
21
|
-
const
|
|
20
|
+
let ra = 0;
|
|
21
|
+
const Ya = {
|
|
22
22
|
beforeCreate() {
|
|
23
|
-
this.uuid =
|
|
23
|
+
this.uuid = ra.toString(), ra += 1;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
var
|
|
27
|
-
var a = this,
|
|
28
|
-
return
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
var Xa = function() {
|
|
27
|
+
var a = this, t = a._self._c;
|
|
28
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._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" } })]);
|
|
29
|
+
}, Ja = [], Ka = /* @__PURE__ */ g(
|
|
30
|
+
Ya,
|
|
31
|
+
Xa,
|
|
32
|
+
Ja,
|
|
33
33
|
!1,
|
|
34
34
|
null,
|
|
35
35
|
null
|
|
36
36
|
);
|
|
37
|
-
const
|
|
37
|
+
const Qa = Ka.exports, ai = /* @__PURE__ */ G({
|
|
38
38
|
__name: "file-uploader-file-card-animation",
|
|
39
39
|
props: {
|
|
40
40
|
name: null,
|
|
41
41
|
showFileIcon: { type: Boolean }
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
return { __sfc: !0, isVue2:
|
|
44
|
+
return { __sfc: !0, isVue2: Ca };
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
var
|
|
48
|
-
var a = this,
|
|
49
|
-
return
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
var ii = function() {
|
|
48
|
+
var a = this, t = a._self._c, i = a._self._setupProxy;
|
|
49
|
+
return i.isVue2 ? t("Transition", { attrs: { name: a.name, mode: "out-in", css: a.showFileIcon } }, [a._t("default")], 2) : t("TransitionGroup", { attrs: { name: a.name, css: a.showFileIcon } }, [a._t("default")], 2);
|
|
50
|
+
}, ti = [], ei = /* @__PURE__ */ g(
|
|
51
|
+
ai,
|
|
52
|
+
ii,
|
|
53
|
+
ti,
|
|
54
54
|
!1,
|
|
55
55
|
null,
|
|
56
56
|
null
|
|
57
57
|
);
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
let
|
|
62
|
-
function
|
|
63
|
-
|
|
58
|
+
const ni = ei.exports;
|
|
59
|
+
function oi(e, a) {
|
|
60
|
+
const t = h(!1);
|
|
61
|
+
let i;
|
|
62
|
+
function p() {
|
|
63
|
+
i && i.disconnect();
|
|
64
64
|
}
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
}),
|
|
68
|
-
|
|
65
|
+
return Ma(() => {
|
|
66
|
+
p();
|
|
67
|
+
}), wa(() => {
|
|
68
|
+
p(), i = new IntersectionObserver(
|
|
69
69
|
(o) => {
|
|
70
|
-
|
|
70
|
+
t.value = !o[0].isIntersecting;
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
root: a.value,
|
|
74
74
|
threshold: 1
|
|
75
75
|
}
|
|
76
|
-
),
|
|
77
|
-
}),
|
|
76
|
+
), i.observe(e.value.$el);
|
|
77
|
+
}), t;
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
function
|
|
81
|
-
const
|
|
79
|
+
const da = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
80
|
+
function ka(e, a) {
|
|
81
|
+
const t = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)), da.length - 1));
|
|
82
82
|
return Intl.NumberFormat(e, {
|
|
83
83
|
style: "unit",
|
|
84
|
-
unit:
|
|
85
|
-
}).format(a / 1024 **
|
|
84
|
+
unit: da[t]
|
|
85
|
+
}).format(a / 1024 ** t);
|
|
86
86
|
}
|
|
87
|
-
var
|
|
88
|
-
const
|
|
87
|
+
var w = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(w || {}), x = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(x || {}), W = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(W || {}), d = /* @__PURE__ */ ((e) => (e.TABLE = "table", e.IMAGE = "image", e.VIDEO = "video", e.AUDIO = "audio", e.TEXT = "text", e.PDF = "pdf", e.SLIDES = "slides", e.COMPRESSED = "compressed", e.GENERIC = "generic", e))(d || {});
|
|
88
|
+
const pi = [
|
|
89
89
|
"application/msword",
|
|
90
90
|
// .doc
|
|
91
91
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
92
92
|
// .docx
|
|
93
93
|
"application/rtf"
|
|
94
94
|
// .rtf
|
|
95
|
-
],
|
|
95
|
+
], li = [
|
|
96
96
|
"application/vnd.ms-excel",
|
|
97
97
|
// .xls
|
|
98
98
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -105,14 +105,14 @@ const Ya = [
|
|
|
105
105
|
// .numbers
|
|
106
106
|
"text/csv"
|
|
107
107
|
// .csv
|
|
108
|
-
],
|
|
108
|
+
], si = [
|
|
109
109
|
"application/vnd.ms-powerpoint",
|
|
110
110
|
// .ppt
|
|
111
111
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
112
112
|
// .pptx
|
|
113
113
|
"application/vnd.oasis.opendocument.presentation"
|
|
114
114
|
// .odp
|
|
115
|
-
],
|
|
115
|
+
], ci = [
|
|
116
116
|
"application/zip",
|
|
117
117
|
// .zip
|
|
118
118
|
"application/vnd.rar",
|
|
@@ -134,224 +134,224 @@ const Ya = [
|
|
|
134
134
|
"application/vnd.ms-cab-compressed"
|
|
135
135
|
// .cab
|
|
136
136
|
];
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function ri(e) {
|
|
138
|
+
return li.includes(e.type) ? d.TABLE : e.type.startsWith("text/") || pi.includes(e.type) ? d.TEXT : e.type.startsWith("image/") ? d.IMAGE : e.type.startsWith("video/") ? d.VIDEO : e.type.startsWith("audio/") ? d.AUDIO : e.type === "application/pdf" ? d.PDF : si.includes(e.type) ? d.SLIDES : ci.includes(e.type) ? d.COMPRESSED : d.GENERIC;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function di(e, a) {
|
|
141
141
|
if (!a)
|
|
142
142
|
return !0;
|
|
143
|
-
const
|
|
144
|
-
for (const
|
|
145
|
-
if (
|
|
146
|
-
if (e.name.endsWith(
|
|
143
|
+
const t = a.split(",").map((i) => i.trim());
|
|
144
|
+
for (const i of t)
|
|
145
|
+
if (i.startsWith(".")) {
|
|
146
|
+
if (e.name.endsWith(i))
|
|
147
147
|
return !0;
|
|
148
|
-
} else if (
|
|
149
|
-
const
|
|
150
|
-
if (e.type.startsWith(
|
|
148
|
+
} else if (i.endsWith("/*")) {
|
|
149
|
+
const p = i.split("/")[0];
|
|
150
|
+
if (e.type.startsWith(p))
|
|
151
151
|
return !0;
|
|
152
|
-
} else if (e.type ===
|
|
152
|
+
} else if (e.type === i)
|
|
153
153
|
return !0;
|
|
154
154
|
return !1;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
const
|
|
158
|
-
if (!
|
|
159
|
-
|
|
156
|
+
function mi(e, a, t) {
|
|
157
|
+
const i = new FileReader(), p = e;
|
|
158
|
+
if (!di(p.data, a)) {
|
|
159
|
+
p.state = w.ERROR, p.errors.push(x.ERROR_TYPE);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
|
|
163
|
-
if (
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
(
|
|
167
|
-
},
|
|
168
|
-
URL.revokeObjectURL(
|
|
169
|
-
},
|
|
162
|
+
i.onload = (o) => {
|
|
163
|
+
if (t && p.type === d.IMAGE) {
|
|
164
|
+
const f = new Blob([o.target.result], { type: p.data.type }), s = URL.createObjectURL(f), c = new Image();
|
|
165
|
+
c.onload = function() {
|
|
166
|
+
(c.width > t.width || c.height > t.height) && (p.state = w.ERROR, p.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(s);
|
|
167
|
+
}, c.onerror = function() {
|
|
168
|
+
URL.revokeObjectURL(s);
|
|
169
|
+
}, c.src = s;
|
|
170
170
|
}
|
|
171
|
-
},
|
|
172
|
-
o.lengthComputable && (
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
},
|
|
171
|
+
}, i.onprogress = (o) => {
|
|
172
|
+
o.lengthComputable && (p.progress = o.loaded / o.total * 100);
|
|
173
|
+
}, i.onloadend = () => {
|
|
174
|
+
p.state !== w.ERROR && (p.state = w.SUCCESS), p.progress = null;
|
|
175
|
+
}, i.onerror = () => {
|
|
176
|
+
p.state = w.ERROR, p.errors.push(x.ERROR_LOAD), p.progress = null;
|
|
177
|
+
}, i.readAsArrayBuffer(p.data);
|
|
178
178
|
}
|
|
179
|
-
let
|
|
180
|
-
const
|
|
181
|
-
beforeCreate() {
|
|
182
|
-
this.uuid = ta.toString(), ta += 1;
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
var ei = function() {
|
|
186
|
-
var a = this, i = a._self._c;
|
|
187
|
-
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")" } }, [i("path", { attrs: { fill: "#00112C", d: "M12.866 4.09026C11.5689 2.79315 9.4638 2.79315 8.1667 4.09026L2.7267 9.53026C1.95959 10.2974 1.95959 11.5425 2.7267 12.3096C3.49381 13.0767 4.73893 13.0767 5.50604 12.3096L10.946 6.8696C11.1831 6.63249 11.1831 6.24737 10.946 6.01026C10.7089 5.77316 10.3238 5.77316 10.0867 6.01026L4.75637 11.3406L3.69571 10.2799L9.02604 4.9496C9.84893 4.12671 11.1838 4.12671 12.0067 4.9496C12.8296 5.7725 12.8296 7.10737 12.0067 7.93026L6.5667 13.3703C5.2138 14.7232 3.01893 14.7232 1.66604 13.3703C0.313144 12.0174 0.313144 9.82249 1.66604 8.4696L7.10604 3.0296C8.98893 1.14671 12.0438 1.14671 13.9267 3.0296C15.8096 4.91249 15.8096 7.96737 13.9267 9.85026L11.1564 12.6206L10.0957 11.5599L12.866 8.7896C14.1631 7.49249 14.1631 5.38737 12.866 4.09026Z" } })]), i("defs", [i("clipPath", { attrs: { id: "uia-ui-assets/icons-16-attachment__a" + a.uuid } }, [i("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
188
|
-
}, ni = [], oi = /* @__PURE__ */ x(
|
|
189
|
-
ti,
|
|
190
|
-
ei,
|
|
191
|
-
ni,
|
|
192
|
-
!1,
|
|
193
|
-
null,
|
|
194
|
-
null
|
|
195
|
-
);
|
|
196
|
-
const pi = oi.exports;
|
|
197
|
-
let ea = 0;
|
|
198
|
-
const li = {
|
|
199
|
-
beforeCreate() {
|
|
200
|
-
this.uuid = ea.toString(), ea += 1;
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
var si = function() {
|
|
204
|
-
var a = this, i = a._self._c;
|
|
205
|
-
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M13.75 9.58159C14.3412 9.30073 14.75 8.6981 14.75 8V2C14.75 1.0335 13.9665 0.25 13 0.25H3C2.0335 0.25 1.25 1.0335 1.25 2V8C1.25 8.6981 1.65876 9.30073 2.25 9.58159V11C2.25 11.4641 2.43438 11.9092 2.76256 12.2374C2.90555 12.3804 3.07072 12.4961 3.25 12.5811V14C3.25 14.4641 3.43438 14.9092 3.76256 15.2374C4.09075 15.5656 4.53587 15.75 5 15.75H11C11.4641 15.75 11.9092 15.5656 12.2374 15.2374C12.5656 14.9092 12.75 14.4641 12.75 14V12.5811C12.9293 12.4961 13.0945 12.3804 13.2374 12.2374C13.5656 11.9092 13.75 11.4641 13.75 11V9.58159ZM3 1.75H13C13.1381 1.75 13.25 1.86193 13.25 2V8C13.25 8.13807 13.1381 8.25 13 8.25H3C2.86193 8.25 2.75 8.13807 2.75 8V2C2.75 1.86193 2.86193 1.75 3 1.75ZM12.25 9.75V11C12.25 11.0663 12.2237 11.1299 12.1768 11.1768C12.1299 11.2237 12.0663 11.25 12 11.25H4C3.9337 11.25 3.87011 11.2237 3.82322 11.1768C3.77634 11.1299 3.75 11.0663 3.75 11V9.75H12.25ZM11.25 12.75V14C11.25 14.0663 11.2237 14.1299 11.1768 14.1768C11.1299 14.2237 11.0663 14.25 11 14.25H5C4.9337 14.25 4.87011 14.2237 4.82322 14.1768C4.77634 14.1299 4.75 14.0663 4.75 14V12.75H11.25Z" } })]);
|
|
206
|
-
}, ci = [], ri = /* @__PURE__ */ x(
|
|
207
|
-
li,
|
|
208
|
-
si,
|
|
209
|
-
ci,
|
|
210
|
-
!1,
|
|
211
|
-
null,
|
|
212
|
-
null
|
|
213
|
-
);
|
|
214
|
-
const di = ri.exports;
|
|
215
|
-
let na = 0;
|
|
216
|
-
const mi = {
|
|
179
|
+
let ma = 0;
|
|
180
|
+
const ui = {
|
|
217
181
|
beforeCreate() {
|
|
218
|
-
this.uuid =
|
|
182
|
+
this.uuid = ma.toString(), ma += 1;
|
|
219
183
|
}
|
|
220
184
|
};
|
|
221
185
|
var vi = function() {
|
|
222
|
-
var a = this,
|
|
223
|
-
return
|
|
224
|
-
},
|
|
225
|
-
mi,
|
|
226
|
-
vi,
|
|
186
|
+
var a = this, t = a._self._c;
|
|
187
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.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-ui-assets/icons-16-attachment__a" + a.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
188
|
+
}, fi = [], xi = /* @__PURE__ */ g(
|
|
227
189
|
ui,
|
|
190
|
+
vi,
|
|
191
|
+
fi,
|
|
228
192
|
!1,
|
|
229
193
|
null,
|
|
230
194
|
null
|
|
231
195
|
);
|
|
232
|
-
const
|
|
233
|
-
let
|
|
234
|
-
const
|
|
196
|
+
const gi = xi.exports;
|
|
197
|
+
let ua = 0;
|
|
198
|
+
const hi = {
|
|
235
199
|
beforeCreate() {
|
|
236
|
-
this.uuid =
|
|
200
|
+
this.uuid = ua.toString(), ua += 1;
|
|
237
201
|
}
|
|
238
202
|
};
|
|
239
|
-
var
|
|
240
|
-
var a = this,
|
|
241
|
-
return
|
|
242
|
-
},
|
|
243
|
-
gi,
|
|
203
|
+
var bi = function() {
|
|
204
|
+
var a = this, t = a._self._c;
|
|
205
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._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" } })]);
|
|
206
|
+
}, _i = [], wi = /* @__PURE__ */ g(
|
|
244
207
|
hi,
|
|
245
208
|
bi,
|
|
209
|
+
_i,
|
|
246
210
|
!1,
|
|
247
211
|
null,
|
|
248
212
|
null
|
|
249
213
|
);
|
|
250
|
-
const
|
|
251
|
-
let
|
|
252
|
-
const
|
|
214
|
+
const yi = wi.exports;
|
|
215
|
+
let va = 0;
|
|
216
|
+
const Ci = {
|
|
253
217
|
beforeCreate() {
|
|
254
|
-
this.uuid =
|
|
218
|
+
this.uuid = va.toString(), va += 1;
|
|
255
219
|
}
|
|
256
220
|
};
|
|
257
|
-
var
|
|
258
|
-
var a = this,
|
|
259
|
-
return
|
|
260
|
-
},
|
|
261
|
-
yi,
|
|
221
|
+
var ki = function() {
|
|
222
|
+
var a = this, t = a._self._c;
|
|
223
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#00112C", d: "M2.25 0.25V15.75H13.75V4.68934L9.31066 0.25H2.25ZM7.25 1.75V6.75H12.25V14.25H3.75V1.75H7.25ZM12.1893 5.25H8.75V1.81066L12.1893 5.25Z" } })]);
|
|
224
|
+
}, Ri = [], Ei = /* @__PURE__ */ g(
|
|
262
225
|
Ci,
|
|
263
226
|
ki,
|
|
227
|
+
Ri,
|
|
264
228
|
!1,
|
|
265
229
|
null,
|
|
266
230
|
null
|
|
267
231
|
);
|
|
268
|
-
const ji =
|
|
269
|
-
let
|
|
232
|
+
const ji = Ei.exports;
|
|
233
|
+
let fa = 0;
|
|
270
234
|
const zi = {
|
|
271
235
|
beforeCreate() {
|
|
272
|
-
this.uuid =
|
|
236
|
+
this.uuid = fa.toString(), fa += 1;
|
|
273
237
|
}
|
|
274
238
|
};
|
|
275
|
-
var
|
|
276
|
-
var a = this,
|
|
277
|
-
return
|
|
278
|
-
},
|
|
239
|
+
var Ii = function() {
|
|
240
|
+
var a = this, t = a._self._c;
|
|
241
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("path", { attrs: { fill: "#00112C", d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z" } }), t("path", { attrs: { fill: "#00112C", d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z" } }), t("path", { attrs: { fill: "#00112C", d: "M2.24609 0.25V15.75H13.7461V4.68934L9.30675 0.25H2.24609ZM7.24609 1.75V6.75H12.2461V14.25H3.74609V1.75H7.24609ZM12.1854 5.25H8.74609V1.81066L12.1854 5.25Z" } })]);
|
|
242
|
+
}, Fi = [], $i = /* @__PURE__ */ g(
|
|
279
243
|
zi,
|
|
280
|
-
|
|
281
|
-
|
|
244
|
+
Ii,
|
|
245
|
+
Fi,
|
|
282
246
|
!1,
|
|
283
247
|
null,
|
|
284
248
|
null
|
|
285
249
|
);
|
|
286
|
-
const
|
|
287
|
-
let
|
|
288
|
-
const
|
|
250
|
+
const Ti = $i.exports;
|
|
251
|
+
let xa = 0;
|
|
252
|
+
const Li = {
|
|
289
253
|
beforeCreate() {
|
|
290
|
-
this.uuid =
|
|
254
|
+
this.uuid = xa.toString(), xa += 1;
|
|
291
255
|
}
|
|
292
256
|
};
|
|
293
|
-
var
|
|
294
|
-
var a = this,
|
|
295
|
-
return
|
|
296
|
-
}, Mi = [],
|
|
297
|
-
|
|
298
|
-
|
|
257
|
+
var Si = function() {
|
|
258
|
+
var a = this, t = a._self._c;
|
|
259
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._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" } })]);
|
|
260
|
+
}, Mi = [], Di = /* @__PURE__ */ g(
|
|
261
|
+
Li,
|
|
262
|
+
Si,
|
|
299
263
|
Mi,
|
|
300
264
|
!1,
|
|
301
265
|
null,
|
|
302
266
|
null
|
|
303
267
|
);
|
|
304
|
-
const Vi =
|
|
305
|
-
let
|
|
306
|
-
const
|
|
268
|
+
const Vi = Di.exports;
|
|
269
|
+
let ga = 0;
|
|
270
|
+
const Bi = {
|
|
307
271
|
beforeCreate() {
|
|
308
|
-
this.uuid =
|
|
272
|
+
this.uuid = ga.toString(), ga += 1;
|
|
309
273
|
}
|
|
310
274
|
};
|
|
311
275
|
var Oi = function() {
|
|
312
|
-
var a = this,
|
|
313
|
-
return
|
|
314
|
-
}, Hi = [],
|
|
315
|
-
|
|
276
|
+
var a = this, t = a._self._c;
|
|
277
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._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" } })]);
|
|
278
|
+
}, Hi = [], qi = /* @__PURE__ */ g(
|
|
279
|
+
Bi,
|
|
316
280
|
Oi,
|
|
317
281
|
Hi,
|
|
318
282
|
!1,
|
|
319
283
|
null,
|
|
320
284
|
null
|
|
321
285
|
);
|
|
322
|
-
const
|
|
323
|
-
let
|
|
286
|
+
const Ui = qi.exports;
|
|
287
|
+
let ha = 0;
|
|
324
288
|
const Ai = {
|
|
325
289
|
beforeCreate() {
|
|
326
|
-
this.uuid =
|
|
290
|
+
this.uuid = ha.toString(), ha += 1;
|
|
327
291
|
}
|
|
328
292
|
};
|
|
329
|
-
var
|
|
330
|
-
var a = this,
|
|
331
|
-
return
|
|
332
|
-
},
|
|
293
|
+
var Zi = function() {
|
|
294
|
+
var a = this, t = a._self._c;
|
|
295
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), t("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.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-ui-assets/icons-16-play_circle__a" + a.uuid } }, [t("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
296
|
+
}, Pi = [], Ni = /* @__PURE__ */ g(
|
|
333
297
|
Ai,
|
|
334
|
-
Ui,
|
|
335
298
|
Zi,
|
|
299
|
+
Pi,
|
|
336
300
|
!1,
|
|
337
301
|
null,
|
|
338
302
|
null
|
|
339
303
|
);
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
[
|
|
304
|
+
const Wi = Ni.exports;
|
|
305
|
+
let ba = 0;
|
|
306
|
+
const Gi = {
|
|
307
|
+
beforeCreate() {
|
|
308
|
+
this.uuid = ba.toString(), ba += 1;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
var Yi = function() {
|
|
312
|
+
var a = this, t = a._self._c;
|
|
313
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._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" } })]);
|
|
314
|
+
}, Xi = [], Ji = /* @__PURE__ */ g(
|
|
315
|
+
Gi,
|
|
316
|
+
Yi,
|
|
317
|
+
Xi,
|
|
318
|
+
!1,
|
|
319
|
+
null,
|
|
320
|
+
null
|
|
321
|
+
);
|
|
322
|
+
const Ki = Ji.exports;
|
|
323
|
+
let _a = 0;
|
|
324
|
+
const Qi = {
|
|
325
|
+
beforeCreate() {
|
|
326
|
+
this.uuid = _a.toString(), _a += 1;
|
|
327
|
+
}
|
|
350
328
|
};
|
|
351
|
-
function
|
|
352
|
-
|
|
329
|
+
var at = function() {
|
|
330
|
+
var a = this, t = a._self._c;
|
|
331
|
+
return t("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? t("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._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" } })]);
|
|
332
|
+
}, it = [], tt = /* @__PURE__ */ g(
|
|
333
|
+
Qi,
|
|
334
|
+
at,
|
|
335
|
+
it,
|
|
336
|
+
!1,
|
|
337
|
+
null,
|
|
338
|
+
null
|
|
339
|
+
);
|
|
340
|
+
const et = tt.exports, nt = {
|
|
341
|
+
[d.AUDIO]: Ki,
|
|
342
|
+
[d.COMPRESSED]: Vi,
|
|
343
|
+
[d.GENERIC]: gi,
|
|
344
|
+
[d.IMAGE]: Ui,
|
|
345
|
+
[d.PDF]: ji,
|
|
346
|
+
[d.SLIDES]: yi,
|
|
347
|
+
[d.TABLE]: et,
|
|
348
|
+
[d.TEXT]: Ti,
|
|
349
|
+
[d.VIDEO]: Wi
|
|
350
|
+
};
|
|
351
|
+
function ot(e) {
|
|
352
|
+
return nt[e.type];
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function pt(e) {
|
|
355
355
|
switch (e.type) {
|
|
356
356
|
case d.COMPRESSED:
|
|
357
357
|
case d.GENERIC:
|
|
@@ -365,7 +365,7 @@ function Yi(e) {
|
|
|
365
365
|
return "green";
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const lt = {
|
|
369
369
|
"en-US": {
|
|
370
370
|
cancel: "Cancel",
|
|
371
371
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -384,59 +384,76 @@ const Xi = {
|
|
|
384
384
|
remove: "Remover",
|
|
385
385
|
retry: "Tentar novamente"
|
|
386
386
|
}
|
|
387
|
-
},
|
|
387
|
+
}, st = {
|
|
388
388
|
name: "file-uploader-file-card",
|
|
389
|
-
i18n: { messages:
|
|
390
|
-
},
|
|
391
|
-
...
|
|
389
|
+
i18n: { messages: lt }
|
|
390
|
+
}, ct = /* @__PURE__ */ G({
|
|
391
|
+
...st,
|
|
392
392
|
props: {
|
|
393
393
|
file: null,
|
|
394
394
|
supportedFileTypes: { default: null }
|
|
395
395
|
},
|
|
396
396
|
emits: ["cancel", "remove", "retry"],
|
|
397
|
-
setup(e, {
|
|
398
|
-
const i = e,
|
|
399
|
-
"b-file-uploader-file-card--error":
|
|
400
|
-
})),
|
|
401
|
-
[`b-file-uploader-file-card__icon--${
|
|
402
|
-
"b-file-uploader-file-card__icon--error":
|
|
403
|
-
})),
|
|
404
|
-
|
|
397
|
+
setup(e, { expose: a, emit: t }) {
|
|
398
|
+
const i = e, p = 1200, { t: o, locale: f } = Y(), s = h(null), c = h(null), u = h(null), z = _("file-errors-section"), I = _("cancel-file-button"), D = _("remove-file-button"), m = _("retry-file-button"), C = h(i.file.state === w.SUCCESS), F = r(() => URL.createObjectURL(i.file.data)), R = r(() => i.file.state === w.ERROR), X = r(() => i.file.errors.includes(x.ERROR_LOAD)), J = r(() => i.file.errors.includes(x.ERROR_SIZE)), K = r(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), L = r(() => i.file.errors.includes(x.ERROR_TYPE)), k = r(() => i.file.state === w.LOADING), $ = r(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), V = r(() => ka(f.value, i.file.data.size)), B = h(), E = h(), Q = oi(B, E), S = r(() => ({
|
|
399
|
+
"b-file-uploader-file-card--error": R.value
|
|
400
|
+
})), aa = r(() => ({
|
|
401
|
+
[`b-file-uploader-file-card__icon--${pt(i.file)}`]: C.value,
|
|
402
|
+
"b-file-uploader-file-card__icon--error": R.value
|
|
403
|
+
})), O = r(() => k.value ? Pa : R.value ? ya : C.value ? ot(i.file) : Ha);
|
|
404
|
+
N(
|
|
405
405
|
() => i.file.state,
|
|
406
|
-
(
|
|
407
|
-
if (
|
|
408
|
-
const
|
|
409
|
-
|
|
410
|
-
},
|
|
406
|
+
(q) => {
|
|
407
|
+
if (q === w.SUCCESS && !C.value) {
|
|
408
|
+
const U = setTimeout(() => {
|
|
409
|
+
C.value = !0, clearTimeout(U);
|
|
410
|
+
}, p);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
)
|
|
413
|
+
);
|
|
414
|
+
function H() {
|
|
415
|
+
if (u.value) {
|
|
416
|
+
u.value.$el.focus();
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
if (s.value) {
|
|
420
|
+
s.value.$el.focus();
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
if (c.value) {
|
|
424
|
+
c.value.$el.focus();
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return a({
|
|
429
|
+
focus: H
|
|
430
|
+
}), { __sfc: !0, ICON_TIMER: p, props: i, emit: t, t: o, locale: f, removeFileButtonRef: s, cancelFileButtonRef: c, retryFileButtonRef: u, fileErrorsSectionId: z, cancelFileButtonId: I, removeFileButtonId: D, retryFileButtonId: m, showFileIcon: C, downloadUrl: F, hasError: R, hasLoadError: X, hasSizeError: J, hasDimensionsError: K, hasTypeError: L, isLoading: k, progressLabel: $, sizeLabel: V, fileNameRef: B, fileNameContainerRef: E, isFileNameTruncated: Q, conditionalClasses: S, conditionalIconClasses: aa, fileUploaderIcon: O, focus: H, isVue2: Ca, FileUploaderFileCardAnimation: ni, BinIcon: Oa, CrossIcon: qa, RefreshIcon: Ua, vBentoTooltipDirective: Na, BentoButton: Aa, BentoLink: Za, BentoTypography: na };
|
|
414
431
|
}
|
|
415
432
|
});
|
|
416
|
-
var
|
|
417
|
-
var a = this,
|
|
418
|
-
return
|
|
419
|
-
return
|
|
433
|
+
var rt = function() {
|
|
434
|
+
var a = this, t = a._self._c, i = a._self._setupProxy;
|
|
435
|
+
return t("div", { staticClass: "b-file-uploader-file-card", class: i.conditionalClasses }, [t("div", { staticClass: "b-file-uploader-file-card__details" }, [t("div", { staticClass: "b-file-uploader-file-card__info" }, [t(i.FileUploaderFileCardAnimation, { attrs: { name: i.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": i.showFileIcon } }, [t(i.fileUploaderIcon, { key: JSON.stringify(i.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: i.conditionalIconClasses, attrs: { small: "", "aria-hidden": "true", "data-testid": "file-uploader-item-icon" } })], 1), t("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [t(i.BentoLink, { attrs: { "aria-hidden": "true", tabindex: "-1", download: a.file.data.name, to: i.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [t(i.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: i.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? t(i.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(i.progressLabel))]) : a.file.data.size ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(i.sizeLabel) + " ")]) : a._e()], 1), i.hasSizeError || i.hasDimensionsError || i.hasTypeError && a.supportedFileTypes ? t("div", { attrs: { id: i.fileErrorsSectionId, role: "alert" } }, [i.hasSizeError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileExceedsSizeLimit")) + " ")]) : a._e(), i.hasDimensionsError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), i.hasTypeError && a.supportedFileTypes ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1) : a._e()]), t("div", { staticClass: "b-file-uploader-file-card__actions" }, [i.hasLoadError ? t(i.BentoButton, { ref: "retryFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.retryFileButtonId}`, variant: "tertiary" }, on: { click: function(p) {
|
|
436
|
+
return i.emit("retry");
|
|
420
437
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
421
|
-
return [i
|
|
422
|
-
}, proxy: !0 }], null, !1,
|
|
423
|
-
return
|
|
438
|
+
return [t(i.RefreshIcon, { attrs: { id: i.retryFileButtonId, "svg-title": `${i.t("retry")} - ${a.file.data.name} ` } })];
|
|
439
|
+
}, proxy: !0 }], null, !1, 4044719554) }, [a._v(" " + a._s(i.t("retry")) + " ")]) : a._e(), i.isLoading || i.hasError ? t(i.BentoButton, { ref: "cancelFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.cancelFileButtonId}`, variant: "tertiary" }, on: { click: function(p) {
|
|
440
|
+
return i.emit("cancel");
|
|
424
441
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
425
|
-
return [i
|
|
426
|
-
}, proxy: !0 }], null, !1,
|
|
427
|
-
return
|
|
442
|
+
return [t(i.CrossIcon, { attrs: { id: i.cancelFileButtonId, "svg-title": `${i.t("cancel")} - ${a.file.data.name}` } })];
|
|
443
|
+
}, proxy: !0 }], null, !1, 1610167681) }) : t(i.BentoButton, { ref: "removeFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.removeFileButtonId}`, variant: "tertiary" }, on: { click: function(p) {
|
|
444
|
+
return i.emit("remove");
|
|
428
445
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
429
|
-
return [i
|
|
446
|
+
return [t(i.BinIcon, { attrs: { id: i.removeFileButtonId, "svg-title": `${i.t("remove")} - ${a.file.data.name}` } })];
|
|
430
447
|
}, proxy: !0 }]) })], 1)]);
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
448
|
+
}, dt = [], mt = /* @__PURE__ */ g(
|
|
449
|
+
ct,
|
|
450
|
+
rt,
|
|
451
|
+
dt,
|
|
435
452
|
!1,
|
|
436
453
|
null,
|
|
437
|
-
"
|
|
454
|
+
"f3f8a80e"
|
|
438
455
|
);
|
|
439
|
-
const
|
|
456
|
+
const ut = mt.exports, vt = {
|
|
440
457
|
"en-US": {
|
|
441
458
|
maxFileSize: "Max file size: {size}",
|
|
442
459
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -445,10 +462,10 @@ const tt = it.exports, et = {
|
|
|
445
462
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
446
463
|
supportedFileTypes: "Supported file types: {list}"
|
|
447
464
|
}
|
|
448
|
-
},
|
|
449
|
-
i18n: { messages:
|
|
450
|
-
},
|
|
451
|
-
...
|
|
465
|
+
}, ft = {
|
|
466
|
+
i18n: { messages: vt }
|
|
467
|
+
}, xt = /* @__PURE__ */ G({
|
|
468
|
+
...ft,
|
|
452
469
|
__name: "file-uploader-restrictions",
|
|
453
470
|
props: {
|
|
454
471
|
condensed: { default: null },
|
|
@@ -459,38 +476,38 @@ const tt = it.exports, et = {
|
|
|
459
476
|
supportedFileTypes: { default: null }
|
|
460
477
|
},
|
|
461
478
|
setup(e) {
|
|
462
|
-
const a = e, { t
|
|
479
|
+
const a = e, { t, tc: i, locale: p } = Y(), o = r(() => ({
|
|
463
480
|
"b-file-uploader-restrictions--condensed": a.condensed,
|
|
464
481
|
"b-file-uploader-restrictions--disabled": a.disabled
|
|
465
482
|
}));
|
|
466
|
-
function
|
|
483
|
+
function f(c) {
|
|
467
484
|
return {
|
|
468
|
-
"b-file-uploader-restrictions--error":
|
|
485
|
+
"b-file-uploader-restrictions--error": c
|
|
469
486
|
};
|
|
470
487
|
}
|
|
471
|
-
const
|
|
488
|
+
const s = r(() => {
|
|
472
489
|
if (!a.maxDimensions)
|
|
473
490
|
return null;
|
|
474
491
|
const {
|
|
475
|
-
value: { width:
|
|
492
|
+
value: { width: c, height: u }
|
|
476
493
|
} = a.maxDimensions;
|
|
477
|
-
return
|
|
494
|
+
return c && u ? t("maxImageDimensions", { width: c, height: u }) : c ? t("maxImageWidth", { width: c }) : u ? t("maxImageHeight", { height: u }) : null;
|
|
478
495
|
});
|
|
479
|
-
return { __sfc: !0, props: a, t
|
|
496
|
+
return { __sfc: !0, props: a, t, tc: i, locale: p, conditionalClasses: o, setRestrictionErrorClass: f, maxDimensionsLabel: s, BentoTypography: na, formatFileSize: ka };
|
|
480
497
|
}
|
|
481
498
|
});
|
|
482
|
-
var
|
|
483
|
-
var a = this,
|
|
484
|
-
return
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
499
|
+
var gt = function() {
|
|
500
|
+
var a = this, t = a._self._c, i = a._self._setupProxy;
|
|
501
|
+
return t("div", { staticClass: "b-file-uploader-restrictions", class: i.conditionalClasses }, [a.supportedFileTypes ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.supportedFileTypes.error) }, [a._v(" " + a._s(i.t("supportedFileTypes", { list: a.supportedFileTypes.value })) + " ")]) : a._e(), a.maxSize ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxSize.error) }, [a._v(" " + a._s(i.t("maxFileSize", { size: i.formatFileSize(i.locale, a.maxSize.value) })) + " ")]) : a._e(), a.maxDimensions ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxDimensions.error) }, [a._v(" " + a._s(i.maxDimensionsLabel) + " ")]) : a._e(), a.maxCount ? t(i.BentoTypography, { class: i.setRestrictionErrorClass(a.maxCount.error) }, [a._v(" " + a._s(i.tc("maxUpload", a.maxCount.value)) + " ")]) : a._e()], 1);
|
|
502
|
+
}, ht = [], bt = /* @__PURE__ */ g(
|
|
503
|
+
xt,
|
|
504
|
+
gt,
|
|
505
|
+
ht,
|
|
489
506
|
!1,
|
|
490
507
|
null,
|
|
491
508
|
"3c1d05d1"
|
|
492
509
|
);
|
|
493
|
-
const
|
|
510
|
+
const _t = bt.exports, Ra = {
|
|
494
511
|
"application/prs.cww": ["cww"],
|
|
495
512
|
"application/prs.xsf+xml": ["xsf"],
|
|
496
513
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1189,8 +1206,8 @@ const ct = st.exports, xa = {
|
|
|
1189
1206
|
"video/x-smv": ["smv"],
|
|
1190
1207
|
"x-conference/x-cooltalk": ["ice"]
|
|
1191
1208
|
};
|
|
1192
|
-
Object.freeze(
|
|
1193
|
-
const
|
|
1209
|
+
Object.freeze(Ra);
|
|
1210
|
+
const Ea = {
|
|
1194
1211
|
"application/andrew-inset": ["ez"],
|
|
1195
1212
|
"application/appinstaller": ["appinstaller"],
|
|
1196
1213
|
"application/applixware": ["aw"],
|
|
@@ -1542,31 +1559,31 @@ const ga = {
|
|
|
1542
1559
|
"video/quicktime": ["qt", "mov"],
|
|
1543
1560
|
"video/webm": ["webm"]
|
|
1544
1561
|
};
|
|
1545
|
-
Object.freeze(
|
|
1546
|
-
var
|
|
1547
|
-
if (
|
|
1548
|
-
if (typeof a == "function" ? e !== a || !
|
|
1549
|
-
return
|
|
1550
|
-
},
|
|
1551
|
-
class
|
|
1562
|
+
Object.freeze(Ea);
|
|
1563
|
+
var b = function(e, a, t, i) {
|
|
1564
|
+
if (t === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
|
|
1565
|
+
if (typeof a == "function" ? e !== a || !i : !a.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1566
|
+
return t === "m" ? i : t === "a" ? i.call(e) : i ? i.value : a.get(e);
|
|
1567
|
+
}, T, M, j;
|
|
1568
|
+
class wt {
|
|
1552
1569
|
constructor(...a) {
|
|
1553
|
-
|
|
1554
|
-
for (const
|
|
1555
|
-
this.define(
|
|
1570
|
+
T.set(this, /* @__PURE__ */ new Map()), M.set(this, /* @__PURE__ */ new Map()), j.set(this, /* @__PURE__ */ new Map());
|
|
1571
|
+
for (const t of a)
|
|
1572
|
+
this.define(t);
|
|
1556
1573
|
}
|
|
1557
|
-
define(a,
|
|
1558
|
-
for (let [
|
|
1559
|
-
|
|
1560
|
-
const o =
|
|
1561
|
-
let
|
|
1562
|
-
for (let
|
|
1563
|
-
const
|
|
1564
|
-
if (
|
|
1574
|
+
define(a, t = !1) {
|
|
1575
|
+
for (let [i, p] of Object.entries(a)) {
|
|
1576
|
+
i = i.toLowerCase(), p = p.map((s) => s.toLowerCase()), b(this, j, "f").has(i) || b(this, j, "f").set(i, /* @__PURE__ */ new Set());
|
|
1577
|
+
const o = b(this, j, "f").get(i);
|
|
1578
|
+
let f = !0;
|
|
1579
|
+
for (let s of p) {
|
|
1580
|
+
const c = s.startsWith("*");
|
|
1581
|
+
if (s = c ? s.slice(1) : s, o == null || o.add(s), f && b(this, M, "f").set(i, s), f = !1, c)
|
|
1565
1582
|
continue;
|
|
1566
|
-
const
|
|
1567
|
-
if (
|
|
1568
|
-
throw new Error(`"${
|
|
1569
|
-
|
|
1583
|
+
const u = b(this, T, "f").get(s);
|
|
1584
|
+
if (u && u != i && !t)
|
|
1585
|
+
throw new Error(`"${i} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);
|
|
1586
|
+
b(this, T, "f").set(s, i);
|
|
1570
1587
|
}
|
|
1571
1588
|
}
|
|
1572
1589
|
return this;
|
|
@@ -1574,57 +1591,57 @@ class rt {
|
|
|
1574
1591
|
getType(a) {
|
|
1575
1592
|
if (typeof a != "string")
|
|
1576
1593
|
return null;
|
|
1577
|
-
const
|
|
1578
|
-
return !(
|
|
1594
|
+
const t = a.replace(/^.*[/\\]/, "").toLowerCase(), i = t.replace(/^.*\./, "").toLowerCase(), p = t.length < a.length;
|
|
1595
|
+
return !(i.length < t.length - 1) && p ? null : b(this, T, "f").get(i) ?? null;
|
|
1579
1596
|
}
|
|
1580
1597
|
getExtension(a) {
|
|
1581
|
-
var
|
|
1582
|
-
return typeof a != "string" ? null : (a = (
|
|
1598
|
+
var t;
|
|
1599
|
+
return typeof a != "string" ? null : (a = (t = a == null ? void 0 : a.split) == null ? void 0 : t.call(a, ";")[0], (a && b(this, M, "f").get(a.trim().toLowerCase())) ?? null);
|
|
1583
1600
|
}
|
|
1584
1601
|
getAllExtensions(a) {
|
|
1585
|
-
return typeof a != "string" ? null :
|
|
1602
|
+
return typeof a != "string" ? null : b(this, j, "f").get(a.toLowerCase()) ?? null;
|
|
1586
1603
|
}
|
|
1587
1604
|
_freeze() {
|
|
1588
1605
|
this.define = () => {
|
|
1589
1606
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1590
1607
|
}, Object.freeze(this);
|
|
1591
|
-
for (const a of
|
|
1608
|
+
for (const a of b(this, j, "f").values())
|
|
1592
1609
|
Object.freeze(a);
|
|
1593
1610
|
return this;
|
|
1594
1611
|
}
|
|
1595
1612
|
_getTestState() {
|
|
1596
1613
|
return {
|
|
1597
|
-
types:
|
|
1598
|
-
extensions:
|
|
1614
|
+
types: b(this, T, "f"),
|
|
1615
|
+
extensions: b(this, M, "f")
|
|
1599
1616
|
};
|
|
1600
1617
|
}
|
|
1601
1618
|
}
|
|
1602
|
-
|
|
1603
|
-
const
|
|
1604
|
-
function
|
|
1605
|
-
return e.includes("/") ? `.${
|
|
1619
|
+
T = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap();
|
|
1620
|
+
const ja = new wt(Ea, Ra)._freeze();
|
|
1621
|
+
function yt(e) {
|
|
1622
|
+
return e.includes("/") ? `.${ja.getExtension(e).toUpperCase()}` : e.toUpperCase();
|
|
1606
1623
|
}
|
|
1607
|
-
function
|
|
1608
|
-
const { locale: a, t
|
|
1624
|
+
function Ct(e) {
|
|
1625
|
+
const { locale: a, t } = Y();
|
|
1609
1626
|
return { supportedFileTypeList: r(() => {
|
|
1610
|
-
const
|
|
1611
|
-
return e != null && e.value ?
|
|
1627
|
+
const p = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
|
|
1628
|
+
return e != null && e.value ? p.format(
|
|
1612
1629
|
e.value.split(",").map((o) => {
|
|
1613
1630
|
switch (o.trim()) {
|
|
1614
1631
|
case "audio/*":
|
|
1615
|
-
return
|
|
1632
|
+
return t("audioFiles");
|
|
1616
1633
|
case "image/*":
|
|
1617
|
-
return
|
|
1634
|
+
return t("imageFiles");
|
|
1618
1635
|
case "video/*":
|
|
1619
|
-
return
|
|
1636
|
+
return t("videoFiles");
|
|
1620
1637
|
default:
|
|
1621
|
-
return
|
|
1638
|
+
return yt(o);
|
|
1622
1639
|
}
|
|
1623
1640
|
})
|
|
1624
1641
|
) : null;
|
|
1625
1642
|
}) };
|
|
1626
1643
|
}
|
|
1627
|
-
const
|
|
1644
|
+
const kt = {
|
|
1628
1645
|
"en-US": {
|
|
1629
1646
|
audioFiles: "audio files",
|
|
1630
1647
|
browseFiles: "Browse files",
|
|
@@ -1633,59 +1650,49 @@ const vt = {
|
|
|
1633
1650
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
1634
1651
|
imageFiles: "image files",
|
|
1635
1652
|
tooManyFiles: "Too many files",
|
|
1636
|
-
upload: "Upload",
|
|
1637
1653
|
videoFiles: "video files",
|
|
1638
|
-
warning: "Warning",
|
|
1639
1654
|
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1640
|
-
},
|
|
1641
|
-
"ja-JP": {
|
|
1642
|
-
upload: "アップロード",
|
|
1643
|
-
warning: "警告"
|
|
1644
|
-
},
|
|
1645
|
-
"pt-BR": {
|
|
1646
|
-
upload: "Carregar",
|
|
1647
|
-
warning: "Aviso"
|
|
1648
1655
|
}
|
|
1649
1656
|
};
|
|
1650
|
-
function
|
|
1651
|
-
return
|
|
1657
|
+
function Rt(e) {
|
|
1658
|
+
return ja.getType(e) ?? e;
|
|
1652
1659
|
}
|
|
1653
|
-
function
|
|
1654
|
-
const
|
|
1660
|
+
function Et({ maxCount: e, accept: a }) {
|
|
1661
|
+
const t = ea({
|
|
1655
1662
|
invalidTypes: !1,
|
|
1656
1663
|
partiallyInvalidTypes: !1,
|
|
1657
1664
|
maxCountOverflow: !1
|
|
1658
|
-
}),
|
|
1665
|
+
}), i = ea({
|
|
1659
1666
|
dragging: !1,
|
|
1660
1667
|
error: !1
|
|
1661
|
-
}),
|
|
1668
|
+
}), p = r(() => a.value ? a.value.split(",").map((c) => Rt(c.trim().toLocaleLowerCase())) : void 0);
|
|
1662
1669
|
function o() {
|
|
1663
|
-
|
|
1670
|
+
i.dragging = !1, i.error = !1, t.invalidTypes = !1, t.partiallyInvalidTypes = !1, t.maxCountOverflow = !1;
|
|
1664
1671
|
}
|
|
1665
|
-
function
|
|
1666
|
-
if (
|
|
1672
|
+
function f(s, c) {
|
|
1673
|
+
if (i.dragging = !0, (!c.dataTransfer.types.includes("Files") || s > e.value) && (t.maxCountOverflow = !0, i.error = !0), !p.value)
|
|
1667
1674
|
return;
|
|
1668
|
-
let
|
|
1669
|
-
for (const
|
|
1670
|
-
|
|
1671
|
-
if (
|
|
1672
|
-
|
|
1675
|
+
let u = 0;
|
|
1676
|
+
for (const z of c.dataTransfer.items)
|
|
1677
|
+
p.value.includes(z.type) && u++;
|
|
1678
|
+
if (u === 0) {
|
|
1679
|
+
i.error = !0, t.invalidTypes = !0;
|
|
1673
1680
|
return;
|
|
1674
1681
|
}
|
|
1675
|
-
!
|
|
1682
|
+
!t.invalidTypes && u !== c.dataTransfer.items.length && (i.error = !0, t.partiallyInvalidTypes = !0);
|
|
1676
1683
|
}
|
|
1677
1684
|
return {
|
|
1678
|
-
dragState:
|
|
1679
|
-
dragErrors:
|
|
1685
|
+
dragState: i,
|
|
1686
|
+
dragErrors: t,
|
|
1680
1687
|
resetDragState: o,
|
|
1681
|
-
onDragEnterValidations:
|
|
1688
|
+
onDragEnterValidations: f
|
|
1682
1689
|
};
|
|
1683
1690
|
}
|
|
1684
|
-
const
|
|
1691
|
+
const jt = {
|
|
1685
1692
|
model: { prop: "modelValue" },
|
|
1686
|
-
i18n: { messages:
|
|
1687
|
-
},
|
|
1688
|
-
...
|
|
1693
|
+
i18n: { messages: kt }
|
|
1694
|
+
}, zt = /* @__PURE__ */ G({
|
|
1695
|
+
...jt,
|
|
1689
1696
|
__name: "file-uploader",
|
|
1690
1697
|
props: {
|
|
1691
1698
|
accept: { default: null },
|
|
@@ -1704,183 +1711,196 @@ const xt = {
|
|
|
1704
1711
|
},
|
|
1705
1712
|
emits: ["change", "update:modelValue", "error:upload"],
|
|
1706
1713
|
setup(e, { emit: a }) {
|
|
1707
|
-
const
|
|
1708
|
-
|
|
1709
|
-
|
|
1714
|
+
const t = e, { t: i, tc: p } = Y(), o = (n) => !!n && typeof (n == null ? void 0 : n.length) == "number" && typeof (n == null ? void 0 : n.item) == "function" || n instanceof FileList, f = r(() => o(t.modelValue));
|
|
1715
|
+
wa(() => {
|
|
1716
|
+
f.value || Ba(
|
|
1710
1717
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1711
1718
|
"Use FileList instead.",
|
|
1712
1719
|
"2.0.0"
|
|
1713
1720
|
);
|
|
1714
1721
|
});
|
|
1715
|
-
const { supportedFileTypeList:
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
}),
|
|
1719
|
-
|
|
1722
|
+
const { supportedFileTypeList: s } = Ct(ta(t, "accept")), c = _("browse-button"), u = _("custom-text"), z = _("drop-files-text"), I = _("comma-text"), D = _("file-uploader-restrictions"), m = h(null), C = h([]), F = h(null), R = h(null), X = _("input"), J = _("input-error"), K = r(() => {
|
|
1723
|
+
const n = t.condensed ? "" : `${z} ${I}`, l = t.description ? `${u} ${I}` : "", v = `${D} ${I}`;
|
|
1724
|
+
return `${n} ${l} ${v} ${c}`;
|
|
1725
|
+
}), { dragState: L, dragErrors: k, resetDragState: $, onDragEnterValidations: V } = Et({
|
|
1726
|
+
accept: ta(t, "accept"),
|
|
1727
|
+
maxCount: ta(t, "maxCount")
|
|
1728
|
+
}), B = r(() => {
|
|
1729
|
+
var n, l, v;
|
|
1720
1730
|
return {
|
|
1721
|
-
condensed:
|
|
1722
|
-
disabled:
|
|
1723
|
-
maxCount:
|
|
1724
|
-
value:
|
|
1725
|
-
error:
|
|
1731
|
+
condensed: t.condensed,
|
|
1732
|
+
disabled: t.disabled,
|
|
1733
|
+
maxCount: S.value ? {
|
|
1734
|
+
value: t.maxCount,
|
|
1735
|
+
error: k.maxCountOverflow || U.value
|
|
1726
1736
|
} : null,
|
|
1727
|
-
maxDimensions:
|
|
1728
|
-
value:
|
|
1729
|
-
error: (n =
|
|
1737
|
+
maxDimensions: t.maxDimensions ? {
|
|
1738
|
+
value: t.maxDimensions,
|
|
1739
|
+
error: (n = m.value) == null ? void 0 : n.some((y) => y.errors.includes(x.ERROR_DIMENSIONS))
|
|
1730
1740
|
} : null,
|
|
1731
|
-
maxSize:
|
|
1732
|
-
value:
|
|
1733
|
-
error: (
|
|
1741
|
+
maxSize: t.maxSize ? {
|
|
1742
|
+
value: t.maxSize,
|
|
1743
|
+
error: (l = m.value) == null ? void 0 : l.some((y) => y.errors.includes(x.ERROR_SIZE))
|
|
1734
1744
|
} : null,
|
|
1735
|
-
supportedFileTypes:
|
|
1736
|
-
value:
|
|
1737
|
-
error:
|
|
1745
|
+
supportedFileTypes: s.value ? {
|
|
1746
|
+
value: s.value,
|
|
1747
|
+
error: k.invalidTypes || k.partiallyInvalidTypes || ((v = m.value) == null ? void 0 : v.some((y) => y.errors.includes(x.ERROR_TYPE)))
|
|
1738
1748
|
} : null
|
|
1739
1749
|
};
|
|
1740
|
-
}),
|
|
1741
|
-
[`b-file-uploader--${
|
|
1742
|
-
[`b-file-uploader--${
|
|
1743
|
-
[`b-file-uploader--${
|
|
1744
|
-
"b-file-uploader--condensed":
|
|
1745
|
-
})),
|
|
1750
|
+
}), E = h(), Q = r(() => ({
|
|
1751
|
+
[`b-file-uploader--${W.DISABLED}`]: t.disabled,
|
|
1752
|
+
[`b-file-uploader--${W.DRAG_OVER}`]: L.dragging,
|
|
1753
|
+
[`b-file-uploader--${W.ERROR}`]: q.value,
|
|
1754
|
+
"b-file-uploader--condensed": t.condensed
|
|
1755
|
+
})), S = r(() => t.maxCount > 1), aa = r(() => {
|
|
1746
1756
|
var n;
|
|
1747
|
-
return
|
|
1748
|
-
}),
|
|
1757
|
+
return t.maxCount && ((n = m.value) == null ? void 0 : n.length) >= t.maxCount;
|
|
1758
|
+
}), O = r(() => {
|
|
1749
1759
|
var n;
|
|
1750
|
-
return (n =
|
|
1751
|
-
}),
|
|
1760
|
+
return (n = m.value) == null ? void 0 : n.some((l) => l.state === "loading");
|
|
1761
|
+
}), H = (n) => (l) => {
|
|
1762
|
+
C.value[n] = l;
|
|
1763
|
+
}, q = r(() => !!t.errorMessage || L.error), U = r(() => {
|
|
1752
1764
|
var n;
|
|
1753
|
-
return ((n =
|
|
1754
|
-
}),
|
|
1765
|
+
return ((n = m.value) == null ? void 0 : n.length) > t.maxCount;
|
|
1766
|
+
}), oa = h(!1), pa = r(() => {
|
|
1755
1767
|
var n;
|
|
1756
|
-
return (n =
|
|
1768
|
+
return (n = m.value) == null ? void 0 : n.some((l) => l.state === "error");
|
|
1757
1769
|
});
|
|
1758
|
-
|
|
1759
|
-
|
|
1770
|
+
N(pa, (n) => {
|
|
1771
|
+
O.value || a("error:upload", n);
|
|
1760
1772
|
});
|
|
1761
|
-
function
|
|
1762
|
-
|
|
1773
|
+
async function A() {
|
|
1774
|
+
var n;
|
|
1775
|
+
if (await Da(), m.value.length === t.maxCount) {
|
|
1776
|
+
(n = C.value[0]) == null || n.focus();
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
R.value.focus();
|
|
1780
|
+
}
|
|
1781
|
+
async function za(n) {
|
|
1782
|
+
m.value = m.value.filter(({ id: l }) => l !== n.id), await A();
|
|
1763
1783
|
}
|
|
1764
|
-
function
|
|
1765
|
-
const
|
|
1766
|
-
id:
|
|
1784
|
+
function Z(n) {
|
|
1785
|
+
const l = ea({
|
|
1786
|
+
id: _("file"),
|
|
1767
1787
|
data: n,
|
|
1768
1788
|
errors: [],
|
|
1769
1789
|
progress: null,
|
|
1770
|
-
state:
|
|
1771
|
-
type:
|
|
1790
|
+
state: w.LOADING,
|
|
1791
|
+
type: ri(n)
|
|
1772
1792
|
});
|
|
1773
|
-
return
|
|
1793
|
+
return mi(l, t.accept, t.maxDimensions), l;
|
|
1774
1794
|
}
|
|
1775
|
-
function
|
|
1776
|
-
var
|
|
1777
|
-
((
|
|
1795
|
+
function Ia(n) {
|
|
1796
|
+
var l;
|
|
1797
|
+
((l = m.value) == null ? void 0 : l.length) === t.maxCount && n.preventDefault();
|
|
1778
1798
|
}
|
|
1779
|
-
function
|
|
1780
|
-
if (
|
|
1781
|
-
|
|
1799
|
+
async function ia(n) {
|
|
1800
|
+
if (t.maxCount === 1 && n.length > t.maxCount) {
|
|
1801
|
+
P(), $();
|
|
1782
1802
|
return;
|
|
1783
1803
|
}
|
|
1784
|
-
|
|
1804
|
+
S.value ? m.value = [...m.value || [], ...Array.from(n).map((l) => Z(l))] : (m.value = [Z(n[0])], await A());
|
|
1785
1805
|
}
|
|
1786
|
-
function
|
|
1787
|
-
var
|
|
1788
|
-
if (
|
|
1806
|
+
function Fa(n) {
|
|
1807
|
+
var v, y;
|
|
1808
|
+
if (t.disabled)
|
|
1789
1809
|
return;
|
|
1790
|
-
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1810
|
+
E.value = n.target;
|
|
1811
|
+
const l = (((v = n.dataTransfer.items) == null ? void 0 : v.length) ?? 0) + (((y = m.value) == null ? void 0 : y.length) ?? 0);
|
|
1812
|
+
V(l, n);
|
|
1793
1813
|
}
|
|
1794
|
-
function
|
|
1795
|
-
|
|
1814
|
+
function P() {
|
|
1815
|
+
E.value = null;
|
|
1796
1816
|
}
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1817
|
+
function $a(n) {
|
|
1818
|
+
E.value === n.target && (P(), $());
|
|
1799
1819
|
}
|
|
1800
|
-
function
|
|
1801
|
-
n.preventDefault(),
|
|
1820
|
+
function Ta(n) {
|
|
1821
|
+
n.preventDefault(), t.disabled && (n.dataTransfer.dropEffect = "none");
|
|
1802
1822
|
}
|
|
1803
|
-
function
|
|
1804
|
-
var
|
|
1805
|
-
|
|
1823
|
+
async function La(n) {
|
|
1824
|
+
var l;
|
|
1825
|
+
t.disabled || (!k.invalidTypes && ((l = n.dataTransfer.files) != null && l.length) && ia(n.dataTransfer.files), P(), $());
|
|
1806
1826
|
}
|
|
1807
|
-
function
|
|
1827
|
+
async function Sa() {
|
|
1808
1828
|
var n;
|
|
1809
|
-
(n =
|
|
1829
|
+
(n = F.value.files) != null && n.length && ia(F.value.files), F.value.value = "", await A();
|
|
1810
1830
|
}
|
|
1811
|
-
|
|
1812
|
-
() =>
|
|
1831
|
+
N(
|
|
1832
|
+
() => t.modelValue,
|
|
1813
1833
|
(n) => {
|
|
1814
|
-
if (n &&
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1834
|
+
if (n && o(n)) {
|
|
1835
|
+
const l = Array.from(n);
|
|
1836
|
+
m.value = l.map((v) => Z(v));
|
|
1817
1837
|
}
|
|
1818
1838
|
},
|
|
1819
1839
|
{ immediate: !0 }
|
|
1820
1840
|
);
|
|
1821
|
-
function
|
|
1822
|
-
const
|
|
1823
|
-
|
|
1841
|
+
function la(n) {
|
|
1842
|
+
const l = t.maxCount && n.length <= t.maxCount;
|
|
1843
|
+
oa.value = !l;
|
|
1824
1844
|
}
|
|
1825
|
-
function
|
|
1826
|
-
|
|
1827
|
-
const
|
|
1828
|
-
|
|
1845
|
+
function sa(n) {
|
|
1846
|
+
t.maxSize && n.forEach((l) => {
|
|
1847
|
+
const v = l;
|
|
1848
|
+
v.data.size > t.maxSize && (v.state = w.ERROR, v.errors.push(x.ERROR_SIZE));
|
|
1829
1849
|
});
|
|
1830
1850
|
}
|
|
1831
|
-
function
|
|
1832
|
-
const
|
|
1833
|
-
({ errors:
|
|
1851
|
+
function ca(n) {
|
|
1852
|
+
const l = n.filter(
|
|
1853
|
+
({ errors: v }) => !v.includes(x.ERROR_LOAD) && !v.includes(x.ERROR_SIZE)
|
|
1834
1854
|
);
|
|
1835
|
-
if (
|
|
1836
|
-
const
|
|
1837
|
-
return
|
|
1855
|
+
if (l.length) {
|
|
1856
|
+
const v = new DataTransfer();
|
|
1857
|
+
return l.forEach(({ data: y }) => v.items.add(y)), v.files;
|
|
1838
1858
|
}
|
|
1839
1859
|
}
|
|
1840
|
-
return
|
|
1860
|
+
return N(m, (n) => {
|
|
1841
1861
|
if (n) {
|
|
1842
|
-
|
|
1843
|
-
const
|
|
1844
|
-
a("change",
|
|
1862
|
+
la(n), sa(n);
|
|
1863
|
+
const l = ca(n);
|
|
1864
|
+
a("change", l), a("update:modelValue", l);
|
|
1845
1865
|
} else
|
|
1846
1866
|
a("change"), a("update:modelValue");
|
|
1847
|
-
}), { __sfc: !0, t, tc:
|
|
1867
|
+
}), { __sfc: !0, t: i, tc: p, emit: a, props: t, isFileListLike: o, isFileList: f, supportedFileTypeList: s, browseFilesButtonId: c, customTextId: u, dropFilesTextId: z, commaTextId: I, fileUploaderRestrictionsId: D, files: m, fileCardRefs: C, inputRef: F, dropAreaRef: R, inputFieldId: X, errorId: J, fileUploadAriaLabelledBy: K, dragState: L, dragErrors: k, resetDragState: $, onDragEnterValidations: V, fileUploadRestrictionsProps: B, enterTarget: E, conditionalClasses: Q, isMultiple: S, hideArea: aa, loadingStateExists: O, registerFileCardRef: H, hasError: q, maxFileCountError: U, maxFileError: oa, hasRestrictionError: pa, resetFocus: A, removeFile: za, processFile: Z, onInputClick: Ia, onFileInput: ia, onDragEnter: Fa, resetEnterTarget: P, onDragLeave: $a, onDragOver: Ta, onDrop: La, onInputChange: Sa, verifyFileCount: la, verifyFileSize: sa, convertToFileList: ca, UploadIcon: Qa, WarningFilledIcon: ya, BentoAlert: Va, BentoTypography: na, ErrorMessage: Ga, FieldLabel: Wa, FileUploaderFileCard: ut, FileUploaderRestrictions: _t };
|
|
1848
1868
|
}
|
|
1849
1869
|
});
|
|
1850
|
-
var
|
|
1851
|
-
var
|
|
1852
|
-
var a = this,
|
|
1853
|
-
return
|
|
1854
|
-
return
|
|
1870
|
+
var It = function() {
|
|
1871
|
+
var p;
|
|
1872
|
+
var a = this, t = a._self._c, i = a._self._setupProxy;
|
|
1873
|
+
return t("div", { staticClass: "b-file-uploader", class: i.conditionalClasses }, [t(i.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: i.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), t("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: i.inputFieldId, "aria-hidden": "true", type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: i.isMultiple }, on: { change: i.onInputChange, click: i.onInputClick } }), t("span", { staticClass: "b-file-uploader__invisible-comma", attrs: { id: i.commaTextId, "aria-hidden": "true" } }, [a._v(" , ")]), i.hideArea ? a._e() : t("div", { ref: "dropAreaRef", staticClass: "b-file-uploader__area", attrs: { "aria-labelledby": i.fileUploadAriaLabelledBy, role: "button", tabindex: a.disabled ? -1 : 0 }, on: { click: function(o) {
|
|
1874
|
+
return i.inputRef.click();
|
|
1855
1875
|
}, dragenter: function(o) {
|
|
1856
|
-
return o.stopPropagation(), o.preventDefault(),
|
|
1876
|
+
return o.stopPropagation(), o.preventDefault(), i.onDragEnter.apply(null, arguments);
|
|
1857
1877
|
}, dragleave: function(o) {
|
|
1858
|
-
return o.stopPropagation(), o.preventDefault(),
|
|
1878
|
+
return o.stopPropagation(), o.preventDefault(), i.onDragLeave.apply(null, arguments);
|
|
1859
1879
|
}, drop: function(o) {
|
|
1860
|
-
return o.stopPropagation(), o.preventDefault(),
|
|
1861
|
-
}, dragover:
|
|
1862
|
-
return !o.type.indexOf("key") && a._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : (o.preventDefault(),
|
|
1880
|
+
return o.stopPropagation(), o.preventDefault(), i.onDrop.apply(null, arguments);
|
|
1881
|
+
}, dragover: i.onDragOver, "!keydown": [function(o) {
|
|
1882
|
+
return !o.type.indexOf("key") && a._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : (o.preventDefault(), i.inputRef.click());
|
|
1863
1883
|
}, function(o) {
|
|
1864
|
-
return !o.type.indexOf("key") && a._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : (o.preventDefault(),
|
|
1865
|
-
}] } }, [
|
|
1866
|
-
return [a._v(" " + a._s(
|
|
1867
|
-
}, proxy: !0 }], null, !1, 239749076) }, [a._v(" " + a._s(
|
|
1868
|
-
return i
|
|
1869
|
-
return
|
|
1870
|
-
}, remove: function(
|
|
1871
|
-
return
|
|
1884
|
+
return !o.type.indexOf("key") && a._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : (o.preventDefault(), i.inputRef.click());
|
|
1885
|
+
}] } }, [t("div", { staticClass: "b-file-uploader__icon", attrs: { "aria-hidden": "true" } }, [i.hasError ? t(i.WarningFilledIcon) : t(i.UploadIcon)], 1), a.condensed ? a._e() : [t(i.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { id: i.dropFilesTextId, el: "span", strongest: "" } }, [a._v(" " + a._s(i.tc("dropFiles", a.maxCount)) + " ")]), a.description ? t(i.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { id: i.customTextId, el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), t(i.FileUploaderRestrictions, a._b({ attrs: { id: i.fileUploaderRestrictionsId } }, "file-uploader-restrictions", i.fileUploadRestrictionsProps, !1))], t(i.BentoTypography, { staticClass: "b-file-uploader__button", attrs: { id: i.browseFilesButtonId, stronger: "" } }, [a._v(" " + a._s(i.t("browseFiles")) + " ")])], 2), i.hasError && a.errorMessage ? t(i.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: i.errorId, "error-message": a.errorMessage } }) : a._e(), a.condensed && a.description ? t(i.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { id: i.customTextId, "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), a.condensed ? t(i.FileUploaderRestrictions, a._b({ attrs: { id: i.fileUploaderRestrictionsId } }, "file-uploader-restrictions", i.fileUploadRestrictionsProps, !1)) : a._e(), i.maxFileCountError ? t(i.BentoAlert, { attrs: { type: "critical" }, scopedSlots: a._u([{ key: "description", fn: function() {
|
|
1886
|
+
return [a._v(" " + a._s(i.t("youHaveExceededTheMaximum", { count: i.props.maxCount })) + " ")];
|
|
1887
|
+
}, proxy: !0 }], null, !1, 239749076) }, [a._v(" " + a._s(i.t("tooManyFiles")) + " ")]) : a._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: (p = i.files) == null ? void 0 : p.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(i.files, function(o, f) {
|
|
1888
|
+
return t(i.FileUploaderFileCard, { key: o.id, ref: i.registerFileCardRef(f), refInFor: !0, attrs: { file: o, "supported-file-types": i.supportedFileTypeList }, on: { cancel: function(s) {
|
|
1889
|
+
return i.removeFile(o);
|
|
1890
|
+
}, remove: function(s) {
|
|
1891
|
+
return i.removeFile(o);
|
|
1872
1892
|
} } });
|
|
1873
1893
|
}), 1)], 1);
|
|
1874
|
-
},
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1894
|
+
}, Ft = [], $t = /* @__PURE__ */ g(
|
|
1895
|
+
zt,
|
|
1896
|
+
It,
|
|
1897
|
+
Ft,
|
|
1878
1898
|
!1,
|
|
1879
1899
|
null,
|
|
1880
|
-
"
|
|
1900
|
+
"33412898"
|
|
1881
1901
|
);
|
|
1882
|
-
const
|
|
1902
|
+
const Xt = $t.exports;
|
|
1883
1903
|
export {
|
|
1884
|
-
|
|
1904
|
+
Xt as f
|
|
1885
1905
|
};
|
|
1886
|
-
//# sourceMappingURL=file-uploader.
|
|
1906
|
+
//# sourceMappingURL=file-uploader.BOWE87dN.js.map
|