@adyen/bento-vue2 1.52.0 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +474 -75
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid-item-custom.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.DuJkjAt1.js → action-bar.Cuktzrp5.js} +4 -4
- package/dist/chunks/{action-bar.DuJkjAt1.js.map → action-bar.Cuktzrp5.js.map} +1 -1
- package/dist/chunks/{base-modal.CiTysydg.js → base-modal.DnaWOvaM.js} +3 -3
- package/dist/chunks/{base-modal.CiTysydg.js.map → base-modal.DnaWOvaM.js.map} +1 -1
- package/dist/chunks/bin.DuebwJYu.js +24 -0
- package/dist/chunks/bin.DuebwJYu.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.B9oXYIgo.js → button-actions-with-menu.twMFsb82.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.B9oXYIgo.js.map → button-actions-with-menu.twMFsb82.js.map} +1 -1
- package/dist/chunks/{calendar.Bq67h02Z.js → calendar.CJToU_uI.js} +2 -2
- package/dist/chunks/{calendar.Bq67h02Z.js.map → calendar.CJToU_uI.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CqSIn-lG.js → checkbox-group.DkM6n3JR.js} +4 -4
- package/dist/chunks/{checkbox-group.CqSIn-lG.js.map → checkbox-group.DkM6n3JR.js.map} +1 -1
- package/dist/chunks/checkbox.l7h6GYew.js +176 -0
- package/dist/chunks/checkbox.l7h6GYew.js.map +1 -0
- package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
- package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
- package/dist/chunks/{code-snippet.CW42FdpP.js → code-snippet.BsEe6nml.js} +5 -5
- package/dist/chunks/{code-snippet.CW42FdpP.js.map → code-snippet.BsEe6nml.js.map} +1 -1
- package/dist/chunks/{controls-group.D0_cJaFF.js → controls-group.vFyThDMU.js} +2 -2
- package/dist/chunks/{controls-group.D0_cJaFF.js.map → controls-group.vFyThDMU.js.map} +1 -1
- package/dist/chunks/{copy.2iD8aI5a.js → copy.DD_Yfyn_.js} +3 -3
- package/dist/chunks/{copy.2iD8aI5a.js.map → copy.DD_Yfyn_.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Cmulh6WM.js → dashboard-section.z-Rnv5E-.js} +3 -3
- package/dist/chunks/{dashboard-section.Cmulh6WM.js.map → dashboard-section.z-Rnv5E-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.eMF75SuT.js → dashed-underline.CfQuYKV9.js} +8 -8
- package/dist/chunks/{dashed-underline.eMF75SuT.js.map → dashed-underline.CfQuYKV9.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CdHnPE1-.js → data-grid-template.73mazFER.js} +2 -2
- package/dist/chunks/{data-grid-template.CdHnPE1-.js.map → data-grid-template.73mazFER.js.map} +1 -1
- package/dist/chunks/{data-grid.DedjAz4_.js → data-grid.C_Xoz-GC.js} +28 -18
- package/dist/chunks/data-grid.C_Xoz-GC.js.map +1 -0
- package/dist/chunks/{date-picker.BdMr3Sn2.js → date-picker.bgk9aymW.js} +5 -5
- package/dist/chunks/{date-picker.BdMr3Sn2.js.map → date-picker.bgk9aymW.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BHfvD0GK.js → date-range-picker.-s05jOQA.js} +8 -8
- package/dist/chunks/{date-range-picker.BHfvD0GK.js.map → date-range-picker.-s05jOQA.js.map} +1 -1
- package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
- package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CvZ1jckk.js → dropdown-tag.8qh8J-NE.js} +3 -3
- package/dist/chunks/{dropdown-tag.CvZ1jckk.js.map → dropdown-tag.8qh8J-NE.js.map} +1 -1
- package/dist/chunks/{dropdown.CcHoKbLz.js → dropdown.DzWXcJyF.js} +50 -42
- package/dist/chunks/dropdown.DzWXcJyF.js.map +1 -0
- package/dist/chunks/{error-message.B1-ekAMa.js → error-message.CzQf7YOD.js} +2 -2
- package/dist/chunks/{error-message.B1-ekAMa.js.map → error-message.CzQf7YOD.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.Dlfzh5QQ.js → file-uploader.CcZPr-jD.js} +327 -326
- package/dist/chunks/file-uploader.CcZPr-jD.js.map +1 -0
- package/dist/chunks/{filter-bar.CwqoJGiK.js → filter-bar.BdGtQC7p.js} +305 -304
- package/dist/chunks/filter-bar.BdGtQC7p.js.map +1 -0
- package/dist/chunks/{focus-trap.CWlKh48z.js → focus-trap.CIUzScHc.js} +2 -2
- package/dist/chunks/{focus-trap.CWlKh48z.js.map → focus-trap.CIUzScHc.js.map} +1 -1
- package/dist/chunks/header-with-views.ChEgH2tn.js +1536 -0
- package/dist/chunks/header-with-views.ChEgH2tn.js.map +1 -0
- package/dist/chunks/{header.BAKjEGmH.js → header.0hX8OYwM.js} +3 -3
- package/dist/chunks/{header.BAKjEGmH.js.map → header.0hX8OYwM.js.map} +1 -1
- package/dist/chunks/index.BCUiAdb6.js +387 -0
- package/dist/chunks/{index.-wO_BQCb.js.map → index.BCUiAdb6.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.CxXWP4TR.js → info-icon-with-popover.w6MpKOWh.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.CxXWP4TR.js.map → info-icon-with-popover.w6MpKOWh.js.map} +1 -1
- package/dist/chunks/{info-icon.D3neDWqH.js → info-icon.C1ReXurF.js} +3 -3
- package/dist/chunks/{info-icon.D3neDWqH.js.map → info-icon.C1ReXurF.js.map} +1 -1
- package/dist/chunks/input-field-password.CZn4kW8v.js +198 -0
- package/dist/chunks/input-field-password.CZn4kW8v.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.TXnK0dch.js → input-field-phone-number.C8WTJ1W-.js} +3 -3
- package/dist/chunks/{input-field-phone-number.TXnK0dch.js.map → input-field-phone-number.C8WTJ1W-.js.map} +1 -1
- package/dist/chunks/{input-field.De4sp76g.js → input-field.tP3Eupoo.js} +3 -3
- package/dist/chunks/{input-field.De4sp76g.js.map → input-field.tP3Eupoo.js.map} +1 -1
- package/dist/chunks/{inspector.types.ClnPOYmb.js → inspector.types.A0b4jNO3.js} +3 -3
- package/dist/chunks/{inspector.types.ClnPOYmb.js.map → inspector.types.A0b4jNO3.js.map} +1 -1
- package/dist/chunks/{layout-row.dh2VyGoD.js → layout-row.BgBazwnM.js} +2 -2
- package/dist/chunks/{layout-row.dh2VyGoD.js.map → layout-row.BgBazwnM.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.xGQr3Su1.js → listbox-option-tag.T9cfTst7.js} +2 -2
- package/dist/chunks/{listbox-option-tag.xGQr3Su1.js.map → listbox-option-tag.T9cfTst7.js.map} +1 -1
- package/dist/chunks/{menu.li3Kg9Uq.js → menu.CY7ceslP.js} +84 -83
- package/dist/chunks/{menu.li3Kg9Uq.js.map → menu.CY7ceslP.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.C4eL63TC.js → modal-fullscreen.Dz5w250z.js} +2 -2
- package/dist/chunks/{modal-fullscreen.C4eL63TC.js.map → modal-fullscreen.Dz5w250z.js.map} +1 -1
- package/dist/chunks/{modal.BpDz0Dhc.js → modal.CnmRkXZM.js} +2 -2
- package/dist/chunks/{modal.BpDz0Dhc.js.map → modal.CnmRkXZM.js.map} +1 -1
- package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
- package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
- package/dist/chunks/{pagination.FuELftBG.js → pagination.CvGOUwd8.js} +2 -2
- package/dist/chunks/{pagination.FuELftBG.js.map → pagination.CvGOUwd8.js.map} +1 -1
- package/dist/chunks/{popover.Cb6utVhS.js → popover.BvsqsZQ1.js} +2 -2
- package/dist/chunks/{popover.Cb6utVhS.js.map → popover.BvsqsZQ1.js.map} +1 -1
- package/dist/chunks/{popper-container.CiEkF7eb.js → popper-container.LRQgzjRf.js} +2 -2
- package/dist/chunks/{popper-container.CiEkF7eb.js.map → popper-container.LRQgzjRf.js.map} +1 -1
- package/dist/chunks/{promo-banner.PnHud5Wi.js → promo-banner.DDnJwMDC.js} +2 -2
- package/dist/chunks/{promo-banner.PnHud5Wi.js.map → promo-banner.DDnJwMDC.js.map} +1 -1
- package/dist/chunks/{radio-group._8PsjPCZ.js → radio-group.BvswbJa8.js} +4 -4
- package/dist/chunks/{radio-group._8PsjPCZ.js.map → radio-group.BvswbJa8.js.map} +1 -1
- package/dist/chunks/{search-bar.CVY2e8_B.js → search-bar.kKLreEXo.js} +3 -3
- package/dist/chunks/{search-bar.CVY2e8_B.js.map → search-bar.kKLreEXo.js.map} +1 -1
- package/dist/chunks/{secondary-nav.LxcuTR16.js → secondary-nav.C6bfsK2p.js} +3 -3
- package/dist/chunks/{secondary-nav.LxcuTR16.js.map → secondary-nav.C6bfsK2p.js.map} +1 -1
- package/dist/chunks/{segmented-control.D69WXQGh.js → segmented-control.BywW3ont.js} +2 -2
- package/dist/chunks/{segmented-control.D69WXQGh.js.map → segmented-control.BywW3ont.js.map} +1 -1
- package/dist/chunks/{selection-card-group.MTKkCBeK.js → selection-card-group.Ca4G00h5.js} +11 -11
- package/dist/chunks/{selection-card-group.MTKkCBeK.js.map → selection-card-group.Ca4G00h5.js.map} +1 -1
- package/dist/chunks/{sidepanel.BStCbRqN.js → sidepanel.D4H3Vu0m.js} +3 -3
- package/dist/chunks/{sidepanel.BStCbRqN.js.map → sidepanel.D4H3Vu0m.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CeosjL40.js → structured-list-item.Bv8reTz2.js} +4 -4
- package/dist/chunks/{structured-list-item.CeosjL40.js.map → structured-list-item.Bv8reTz2.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CF_TS7oA.js → summary-grid-item-custom.Bbdie4EL.js} +188 -135
- package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js.map +1 -0
- package/dist/chunks/{tag.OgtZ3-ql.js → tag.IyMxowGc.js} +2 -2
- package/dist/chunks/{tag.OgtZ3-ql.js.map → tag.IyMxowGc.js.map} +1 -1
- package/dist/chunks/{teleport.B5fwsT5y.js → teleport.BHfrns33.js} +2 -2
- package/dist/chunks/{teleport.B5fwsT5y.js.map → teleport.BHfrns33.js.map} +1 -1
- package/dist/chunks/{textarea.BEISPJua.js → textarea.B9HjT5LH.js} +2 -2
- package/dist/chunks/{textarea.BEISPJua.js.map → textarea.B9HjT5LH.js.map} +1 -1
- package/dist/chunks/{timeline-item.BeWMuM8A.js → timeline-item.BIwk0vqM.js} +4 -4
- package/dist/chunks/{timeline-item.BeWMuM8A.js.map → timeline-item.BIwk0vqM.js.map} +1 -1
- package/dist/chunks/{tooltip.RPURZd36.js → tooltip.DShIiBiY.js} +2 -2
- package/dist/chunks/{tooltip.RPURZd36.js.map → tooltip.DShIiBiY.js.map} +1 -1
- package/dist/chunks/{tutorial.Ba8PTa0x.js → tutorial.DDlXTjAO.js} +4 -4
- package/dist/chunks/{tutorial.Ba8PTa0x.js.map → tutorial.DDlXTjAO.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CxlYYUbd.js → use-cached-selected-values.LVldNial.js} +12 -8
- package/dist/chunks/{use-cached-selected-values.CxlYYUbd.js.map → use-cached-selected-values.LVldNial.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +2 -2
- 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 +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +1 -1
- package/dist/index.js +195 -193
- package/dist/index.js.map +1 -1
- 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/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 +47 -1
- package/dist/styles/bento-light.css +47 -1
- package/dist/styles/bento.css +47 -1
- package/dist/styles/legacy.css +47 -1
- package/dist/styles/styleguide.css +47 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +520 -5
- package/package.json +6 -5
- package/dist/chunks/checkbox.BeYtbfPv.js +0 -170
- package/dist/chunks/checkbox.BeYtbfPv.js.map +0 -1
- package/dist/chunks/data-grid.DedjAz4_.js.map +0 -1
- package/dist/chunks/dropdown.CcHoKbLz.js.map +0 -1
- package/dist/chunks/file-uploader.Dlfzh5QQ.js.map +0 -1
- package/dist/chunks/filter-bar.CwqoJGiK.js.map +0 -1
- package/dist/chunks/index.-wO_BQCb.js +0 -370
- package/dist/chunks/input-field-password.CO0lAgMh.js +0 -194
- package/dist/chunks/input-field-password.CO0lAgMh.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.CF_TS7oA.js.map +0 -1
|
@@ -1,88 +1,71 @@
|
|
|
1
|
-
import { defineComponent as H, ref as
|
|
1
|
+
import { defineComponent as H, ref as w, onUnmounted as ja, onMounted as da, computed as r, watch as D, reactive as W, toRef as P } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { n as
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { B as G } from "./typography.J1v_SPG3.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { g as
|
|
10
|
-
import { i as
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { B as
|
|
16
|
-
import { B as
|
|
17
|
-
import {
|
|
3
|
+
import { n as x } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
4
|
+
import { W as ma } from "./warning-filled.Cd0kVWwa.js";
|
|
5
|
+
import { B as za } from "./alert.BkMKX9wD.js";
|
|
6
|
+
import { B as va } from "./button.D-3uUhuG.js";
|
|
7
|
+
import { B as G, d as Ea } from "./typography.J1v_SPG3.js";
|
|
8
|
+
import { u as B } from "./i18n.BQkEbtPM.js";
|
|
9
|
+
import { g as N } from "./generate-uid.NJ8tVoha.js";
|
|
10
|
+
import { i as ua } from "./index.Cl4_42j5.js";
|
|
11
|
+
import { B as La } from "./bin.DuebwJYu.js";
|
|
12
|
+
import { C as Fa } from "./checkmark-circle-fill.DZBl7CeY.js";
|
|
13
|
+
import { C as $a } from "./cross.CJ5EEL2c.js";
|
|
14
|
+
import { R as Ia } from "./refresh.Bc9FzGjJ.js";
|
|
15
|
+
import { B as Ta } from "./link.BH3eB_7E.js";
|
|
16
|
+
import { B as Ma } from "./loading-indicator.z8COalOc.js";
|
|
17
|
+
import { B as Sa } from "./tooltip.DShIiBiY.js";
|
|
18
|
+
import { F as Va, E as Da } from "./error-message.CzQf7YOD.js";
|
|
18
19
|
import "../assets/file-uploader.css";
|
|
19
|
-
let
|
|
20
|
-
const
|
|
20
|
+
let aa = 0;
|
|
21
|
+
const Oa = {
|
|
21
22
|
beforeCreate() {
|
|
22
|
-
this.uuid =
|
|
23
|
+
this.uuid = aa.toString(), aa += 1;
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
|
-
var
|
|
26
|
+
var Ha = function() {
|
|
26
27
|
var a = this, i = a._self._c;
|
|
27
28
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M8.00011 0.939453L12.0608 5.00011L11.0001 6.06077L8.75 3.81066V11.75H7.25V3.81089L5.00011 6.06077L3.93945 5.00011L8.00011 0.939453Z" } }), i("path", { attrs: { fill: "#00112C", d: "M2.75 12.5V10.25H1.25V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V10.25H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5Z" } })]);
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
}, Ba = [], qa = /* @__PURE__ */ x(
|
|
30
|
+
Oa,
|
|
31
|
+
Ha,
|
|
32
|
+
Ba,
|
|
32
33
|
!1,
|
|
33
34
|
null,
|
|
34
35
|
null
|
|
35
36
|
);
|
|
36
|
-
const
|
|
37
|
+
const Aa = qa.exports, Ua = /* @__PURE__ */ H({
|
|
37
38
|
__name: "file-uploader-file-card-animation",
|
|
38
39
|
props: {
|
|
39
40
|
name: null,
|
|
40
41
|
showFileIcon: { type: Boolean }
|
|
41
42
|
},
|
|
42
43
|
setup(e) {
|
|
43
|
-
return { __sfc: !0, isVue2:
|
|
44
|
+
return { __sfc: !0, isVue2: ua };
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
var
|
|
47
|
+
var Za = function() {
|
|
47
48
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
48
49
|
return t.isVue2 ? i("Transition", { attrs: { name: a.name, mode: "out-in", css: a.showFileIcon } }, [a._t("default")], 2) : i("TransitionGroup", { attrs: { name: a.name, css: a.showFileIcon } }, [a._t("default")], 2);
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
qa,
|
|
50
|
+
}, Pa = [], Na = /* @__PURE__ */ x(
|
|
51
|
+
Ua,
|
|
52
52
|
Za,
|
|
53
|
-
!1,
|
|
54
|
-
null,
|
|
55
|
-
null
|
|
56
|
-
);
|
|
57
|
-
const Aa = Ua.exports;
|
|
58
|
-
let Q = 0;
|
|
59
|
-
const Pa = {
|
|
60
|
-
beforeCreate() {
|
|
61
|
-
this.uuid = Q.toString(), Q += 1;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
var Na = function() {
|
|
65
|
-
var a = this, i = a._self._c;
|
|
66
|
-
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M7.25 6.25H5.75V12.75H7.25V6.25Z" } }), i("path", { attrs: { fill: "#00112C", d: "M8.75 6.25H10.25V12.75H8.75V6.25Z" } }), i("path", { attrs: { fill: "#00112C", d: "M14.75 3.24999H12.54L12.05 1.74999C11.9 1.29999 11.61 0.92999 11.22 0.64999C10.83 0.37999 10.34 0.24999 9.92 0.23999H6.09C5.64 0.23999 5.17 0.37999 4.78 0.64999C4.39 0.91999 4.11 1.29999 3.95 1.75999L3.46 3.23999H1.25V4.73999H2.32L3.14 13.7C3.19 14.26 3.45 14.78 3.86 15.16C4.27 15.54 4.81 15.75 5.37 15.75H10.64C11.2 15.75 11.74 15.54 12.15 15.16C12.57 14.78 12.82 14.26 12.87 13.7L13.69 4.73999H14.76V3.23999L14.75 3.24999ZM5.37 2.24999C5.42 2.09999 5.52 1.97999 5.64 1.88999C5.77 1.79999 5.92 1.74999 6.08 1.75999H9.93C10.08 1.75999 10.23 1.80999 10.35 1.88999C10.48 1.97999 10.57 2.09999 10.62 2.23999L10.95 3.25999H5.02L5.35 2.25999L5.37 2.24999ZM11.37 13.58C11.35 13.77 11.27 13.94 11.13 14.06C10.99 14.19 10.81 14.25 10.63 14.25H5.36C5.17 14.25 5 14.18 4.86 14.06C4.72 13.93 4.64 13.76 4.62 13.57L3.81 4.74999H12.17L11.36 13.57L11.37 13.58Z" } })]);
|
|
67
|
-
}, Wa = [], Ga = /* @__PURE__ */ f(
|
|
68
53
|
Pa,
|
|
69
|
-
Na,
|
|
70
|
-
Wa,
|
|
71
54
|
!1,
|
|
72
55
|
null,
|
|
73
56
|
null
|
|
74
57
|
);
|
|
75
|
-
const
|
|
76
|
-
function
|
|
77
|
-
const i =
|
|
58
|
+
const Wa = Na.exports;
|
|
59
|
+
function Ga(e, a) {
|
|
60
|
+
const i = w(!1);
|
|
78
61
|
let t;
|
|
79
|
-
function
|
|
62
|
+
function l() {
|
|
80
63
|
t && t.disconnect();
|
|
81
64
|
}
|
|
82
|
-
return
|
|
83
|
-
|
|
84
|
-
}),
|
|
85
|
-
|
|
65
|
+
return ja(() => {
|
|
66
|
+
l();
|
|
67
|
+
}), da(() => {
|
|
68
|
+
l(), t = new IntersectionObserver(
|
|
86
69
|
(o) => {
|
|
87
70
|
i.value = !o[0].isIntersecting;
|
|
88
71
|
},
|
|
@@ -93,23 +76,23 @@ function Xa(e, a) {
|
|
|
93
76
|
), t.observe(e.value.$el);
|
|
94
77
|
}), i;
|
|
95
78
|
}
|
|
96
|
-
const
|
|
97
|
-
function
|
|
98
|
-
const i = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)),
|
|
79
|
+
const ia = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
80
|
+
function fa(e, a) {
|
|
81
|
+
const i = Math.max(0, Math.min(Math.floor(Math.log(a) / Math.log(1024)), ia.length - 1));
|
|
99
82
|
return Intl.NumberFormat(e, {
|
|
100
83
|
style: "unit",
|
|
101
|
-
unit:
|
|
84
|
+
unit: ia[i]
|
|
102
85
|
}).format(a / 1024 ** i);
|
|
103
86
|
}
|
|
104
|
-
var
|
|
105
|
-
const
|
|
87
|
+
var b = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(b || {}), f = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(f || {}), O = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(O || {}), 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 Ya = [
|
|
106
89
|
"application/msword",
|
|
107
90
|
// .doc
|
|
108
91
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
109
92
|
// .docx
|
|
110
93
|
"application/rtf"
|
|
111
94
|
// .rtf
|
|
112
|
-
],
|
|
95
|
+
], Xa = [
|
|
113
96
|
"application/vnd.ms-excel",
|
|
114
97
|
// .xls
|
|
115
98
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -122,14 +105,14 @@ const Ja = [
|
|
|
122
105
|
// .numbers
|
|
123
106
|
"text/csv"
|
|
124
107
|
// .csv
|
|
125
|
-
],
|
|
108
|
+
], Ja = [
|
|
126
109
|
"application/vnd.ms-powerpoint",
|
|
127
110
|
// .ppt
|
|
128
111
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
129
112
|
// .pptx
|
|
130
113
|
"application/vnd.oasis.opendocument.presentation"
|
|
131
114
|
// .odp
|
|
132
|
-
],
|
|
115
|
+
], Ka = [
|
|
133
116
|
"application/zip",
|
|
134
117
|
// .zip
|
|
135
118
|
"application/vnd.rar",
|
|
@@ -151,10 +134,10 @@ const Ja = [
|
|
|
151
134
|
"application/vnd.ms-cab-compressed"
|
|
152
135
|
// .cab
|
|
153
136
|
];
|
|
154
|
-
function
|
|
155
|
-
return
|
|
137
|
+
function Qa(e) {
|
|
138
|
+
return Xa.includes(e.type) ? d.TABLE : e.type.startsWith("text/") || Ya.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 : Ja.includes(e.type) ? d.SLIDES : Ka.includes(e.type) ? d.COMPRESSED : d.GENERIC;
|
|
156
139
|
}
|
|
157
|
-
function
|
|
140
|
+
function ai(e, a) {
|
|
158
141
|
if (!a)
|
|
159
142
|
return !0;
|
|
160
143
|
const i = a.split(",").map((t) => t.trim());
|
|
@@ -163,212 +146,212 @@ function ti(e, a) {
|
|
|
163
146
|
if (e.name.endsWith(t))
|
|
164
147
|
return !0;
|
|
165
148
|
} else if (t.endsWith("/*")) {
|
|
166
|
-
const
|
|
167
|
-
if (e.type.startsWith(
|
|
149
|
+
const l = t.split("/")[0];
|
|
150
|
+
if (e.type.startsWith(l))
|
|
168
151
|
return !0;
|
|
169
152
|
} else if (e.type === t)
|
|
170
153
|
return !0;
|
|
171
154
|
return !1;
|
|
172
155
|
}
|
|
173
|
-
function
|
|
174
|
-
const t = new FileReader(),
|
|
175
|
-
if (!
|
|
176
|
-
|
|
156
|
+
function ii(e, a, i) {
|
|
157
|
+
const t = new FileReader(), l = e;
|
|
158
|
+
if (!ai(l.data, a)) {
|
|
159
|
+
l.state = b.ERROR, l.errors.push(f.ERROR_TYPE);
|
|
177
160
|
return;
|
|
178
161
|
}
|
|
179
162
|
t.onload = (o) => {
|
|
180
|
-
if (i &&
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
(
|
|
184
|
-
},
|
|
163
|
+
if (i && l.type === d.IMAGE) {
|
|
164
|
+
const m = new Blob([o.target.result], { type: l.data.type }), c = URL.createObjectURL(m), p = new Image();
|
|
165
|
+
p.onload = function() {
|
|
166
|
+
(p.width > i.width || p.height > i.height) && (l.state = b.ERROR, l.errors.push(f.ERROR_DIMENSIONS)), URL.revokeObjectURL(c);
|
|
167
|
+
}, p.onerror = function() {
|
|
185
168
|
URL.revokeObjectURL(c);
|
|
186
|
-
},
|
|
169
|
+
}, p.src = c;
|
|
187
170
|
}
|
|
188
171
|
}, t.onprogress = (o) => {
|
|
189
|
-
o.lengthComputable && (
|
|
172
|
+
o.lengthComputable && (l.progress = o.loaded / o.total * 100);
|
|
190
173
|
}, t.onloadend = () => {
|
|
191
|
-
|
|
174
|
+
l.state !== b.ERROR && (l.state = b.SUCCESS), l.progress = null;
|
|
192
175
|
}, t.onerror = () => {
|
|
193
|
-
|
|
194
|
-
}, t.readAsArrayBuffer(
|
|
176
|
+
l.state = b.ERROR, l.errors.push(f.ERROR_LOAD), l.progress = null;
|
|
177
|
+
}, t.readAsArrayBuffer(l.data);
|
|
195
178
|
}
|
|
196
|
-
let
|
|
197
|
-
const
|
|
179
|
+
let ta = 0;
|
|
180
|
+
const ti = {
|
|
198
181
|
beforeCreate() {
|
|
199
|
-
this.uuid =
|
|
182
|
+
this.uuid = ta.toString(), ta += 1;
|
|
200
183
|
}
|
|
201
184
|
};
|
|
202
|
-
var
|
|
185
|
+
var ei = function() {
|
|
203
186
|
var a = this, i = a._self._c;
|
|
204
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" } })])])]);
|
|
205
|
-
},
|
|
188
|
+
}, ni = [], oi = /* @__PURE__ */ x(
|
|
189
|
+
ti,
|
|
190
|
+
ei,
|
|
206
191
|
ni,
|
|
207
|
-
oi,
|
|
208
|
-
pi,
|
|
209
192
|
!1,
|
|
210
193
|
null,
|
|
211
194
|
null
|
|
212
195
|
);
|
|
213
|
-
const
|
|
214
|
-
let
|
|
215
|
-
const
|
|
196
|
+
const pi = oi.exports;
|
|
197
|
+
let ea = 0;
|
|
198
|
+
const li = {
|
|
216
199
|
beforeCreate() {
|
|
217
|
-
this.uuid =
|
|
200
|
+
this.uuid = ea.toString(), ea += 1;
|
|
218
201
|
}
|
|
219
202
|
};
|
|
220
|
-
var
|
|
203
|
+
var si = function() {
|
|
221
204
|
var a = this, i = a._self._c;
|
|
222
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" } })]);
|
|
223
|
-
},
|
|
206
|
+
}, ci = [], ri = /* @__PURE__ */ x(
|
|
207
|
+
li,
|
|
208
|
+
si,
|
|
224
209
|
ci,
|
|
225
|
-
ri,
|
|
226
|
-
di,
|
|
227
210
|
!1,
|
|
228
211
|
null,
|
|
229
212
|
null
|
|
230
213
|
);
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
const
|
|
214
|
+
const di = ri.exports;
|
|
215
|
+
let na = 0;
|
|
216
|
+
const mi = {
|
|
234
217
|
beforeCreate() {
|
|
235
|
-
this.uuid =
|
|
218
|
+
this.uuid = na.toString(), na += 1;
|
|
236
219
|
}
|
|
237
220
|
};
|
|
238
|
-
var
|
|
221
|
+
var vi = function() {
|
|
239
222
|
var a = this, i = a._self._c;
|
|
240
223
|
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: "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" } })]);
|
|
241
|
-
},
|
|
224
|
+
}, ui = [], fi = /* @__PURE__ */ x(
|
|
225
|
+
mi,
|
|
226
|
+
vi,
|
|
242
227
|
ui,
|
|
243
|
-
fi,
|
|
244
|
-
xi,
|
|
245
228
|
!1,
|
|
246
229
|
null,
|
|
247
230
|
null
|
|
248
231
|
);
|
|
249
|
-
const
|
|
250
|
-
let
|
|
251
|
-
const
|
|
232
|
+
const xi = fi.exports;
|
|
233
|
+
let oa = 0;
|
|
234
|
+
const gi = {
|
|
252
235
|
beforeCreate() {
|
|
253
|
-
this.uuid =
|
|
236
|
+
this.uuid = oa.toString(), oa += 1;
|
|
254
237
|
}
|
|
255
238
|
};
|
|
256
|
-
var
|
|
239
|
+
var hi = function() {
|
|
257
240
|
var a = this, i = a._self._c;
|
|
258
241
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z" } }), i("path", { attrs: { fill: "#00112C", d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z" } }), i("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" } })]);
|
|
259
|
-
},
|
|
260
|
-
|
|
242
|
+
}, bi = [], _i = /* @__PURE__ */ x(
|
|
243
|
+
gi,
|
|
244
|
+
hi,
|
|
261
245
|
bi,
|
|
262
|
-
wi,
|
|
263
246
|
!1,
|
|
264
247
|
null,
|
|
265
248
|
null
|
|
266
249
|
);
|
|
267
|
-
const
|
|
268
|
-
let
|
|
269
|
-
const
|
|
250
|
+
const wi = _i.exports;
|
|
251
|
+
let pa = 0;
|
|
252
|
+
const yi = {
|
|
270
253
|
beforeCreate() {
|
|
271
|
-
this.uuid =
|
|
254
|
+
this.uuid = pa.toString(), pa += 1;
|
|
272
255
|
}
|
|
273
256
|
};
|
|
274
|
-
var
|
|
257
|
+
var Ci = function() {
|
|
275
258
|
var a = this, i = a._self._c;
|
|
276
259
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M1.24609 4.5C1.24609 3.25579 2.25188 2.25 3.49609 2.25H6.37609C6.97727 2.25 7.54738 2.49062 7.96642 2.90967L10.0864 5.02967C10.2274 5.17062 10.4173 5.25 10.6161 5.25H12.4961C13.7403 5.25 14.7461 6.25579 14.7461 7.5V12.5C14.7461 13.7442 13.7403 14.75 12.4961 14.75H3.49609C2.25188 14.75 1.24609 13.7442 1.24609 12.5V4.5ZM3.49609 3.75C3.08031 3.75 2.74609 4.08421 2.74609 4.5V12.5C2.74609 12.9158 3.08031 13.25 3.49609 13.25H12.4961C12.9119 13.25 13.2461 12.9158 13.2461 12.5V7.5C13.2461 7.08421 12.9119 6.75 12.4961 6.75H10.6161C10.0149 6.75 9.44481 6.50938 9.02576 6.09033L6.90576 3.97033C6.76481 3.82938 6.57492 3.75 6.37609 3.75H3.49609Z" } })]);
|
|
277
|
-
},
|
|
260
|
+
}, ki = [], Ri = /* @__PURE__ */ x(
|
|
261
|
+
yi,
|
|
262
|
+
Ci,
|
|
278
263
|
ki,
|
|
279
|
-
Ri,
|
|
280
|
-
ji,
|
|
281
264
|
!1,
|
|
282
265
|
null,
|
|
283
266
|
null
|
|
284
267
|
);
|
|
285
|
-
const
|
|
286
|
-
let
|
|
287
|
-
const
|
|
268
|
+
const ji = Ri.exports;
|
|
269
|
+
let la = 0;
|
|
270
|
+
const zi = {
|
|
288
271
|
beforeCreate() {
|
|
289
|
-
this.uuid =
|
|
272
|
+
this.uuid = la.toString(), la += 1;
|
|
290
273
|
}
|
|
291
274
|
};
|
|
292
|
-
var
|
|
275
|
+
var Ei = function() {
|
|
293
276
|
var a = this, i = a._self._c;
|
|
294
277
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M9.99609 3.24805C8.47731 3.24805 7.24609 4.47926 7.24609 5.99805C7.24609 7.51683 8.47731 8.74805 9.99609 8.74805C11.5149 8.74805 12.7461 7.51683 12.7461 5.99805C12.7461 4.47926 11.5149 3.24805 9.99609 3.24805ZM8.74609 5.99805C8.74609 5.30769 9.30574 4.74805 9.99609 4.74805C10.6865 4.74805 11.2461 5.30769 11.2461 5.99805C11.2461 6.6884 10.6865 7.24805 9.99609 7.24805C9.30574 7.24805 8.74609 6.6884 8.74609 5.99805Z" } }), i("path", { attrs: { fill: "#00112C", d: "M1.24609 3.49805C1.24609 2.25541 2.25345 1.24805 3.49609 1.24805H12.4961C13.7387 1.24805 14.7461 2.25541 14.7461 3.49805V12.498C14.7461 13.7407 13.7387 14.748 12.4961 14.748H3.49609C2.25345 14.748 1.24609 13.7407 1.24609 12.498V3.49805ZM3.49609 2.74805C3.08188 2.74805 2.74609 3.08383 2.74609 3.49805V6.68756L3.99615 5.4375L11.8067 13.248H12.4961C12.9103 13.248 13.2461 12.9123 13.2461 12.498V3.49805C13.2461 3.08383 12.9103 2.74805 12.4961 2.74805H3.49609ZM2.74609 12.498C2.74609 12.9123 3.08188 13.248 3.49609 13.248H9.68538L3.99615 7.55882L2.74609 8.80888V12.498Z" } })]);
|
|
295
|
-
},
|
|
296
|
-
|
|
278
|
+
}, Li = [], Fi = /* @__PURE__ */ x(
|
|
279
|
+
zi,
|
|
280
|
+
Ei,
|
|
297
281
|
Li,
|
|
298
|
-
Ii,
|
|
299
282
|
!1,
|
|
300
283
|
null,
|
|
301
284
|
null
|
|
302
285
|
);
|
|
303
|
-
const
|
|
304
|
-
let
|
|
305
|
-
const
|
|
286
|
+
const $i = Fi.exports;
|
|
287
|
+
let sa = 0;
|
|
288
|
+
const Ii = {
|
|
306
289
|
beforeCreate() {
|
|
307
|
-
this.uuid =
|
|
290
|
+
this.uuid = sa.toString(), sa += 1;
|
|
308
291
|
}
|
|
309
292
|
};
|
|
310
|
-
var
|
|
293
|
+
var Ti = function() {
|
|
311
294
|
var a = this, i = a._self._c;
|
|
312
295
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")" } }, [i("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), i("path", { attrs: { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" } })]), i("defs", [i("clipPath", { attrs: { id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid } }, [i("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
313
|
-
},
|
|
296
|
+
}, Mi = [], Si = /* @__PURE__ */ x(
|
|
297
|
+
Ii,
|
|
298
|
+
Ti,
|
|
314
299
|
Mi,
|
|
315
|
-
Si,
|
|
316
|
-
Vi,
|
|
317
300
|
!1,
|
|
318
301
|
null,
|
|
319
302
|
null
|
|
320
303
|
);
|
|
321
|
-
const
|
|
322
|
-
let
|
|
323
|
-
const
|
|
304
|
+
const Vi = Si.exports;
|
|
305
|
+
let ca = 0;
|
|
306
|
+
const Di = {
|
|
324
307
|
beforeCreate() {
|
|
325
|
-
this.uuid =
|
|
308
|
+
this.uuid = ca.toString(), ca += 1;
|
|
326
309
|
}
|
|
327
310
|
};
|
|
328
|
-
var
|
|
311
|
+
var Oi = function() {
|
|
329
312
|
var a = this, i = a._self._c;
|
|
330
313
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z" } }), i("path", { attrs: { fill: "#00112C", d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z" } }), i("path", { attrs: { fill: "#00112C", d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z" } })]);
|
|
331
|
-
},
|
|
314
|
+
}, Hi = [], Bi = /* @__PURE__ */ x(
|
|
315
|
+
Di,
|
|
332
316
|
Oi,
|
|
333
|
-
|
|
334
|
-
qi,
|
|
317
|
+
Hi,
|
|
335
318
|
!1,
|
|
336
319
|
null,
|
|
337
320
|
null
|
|
338
321
|
);
|
|
339
|
-
const
|
|
340
|
-
let
|
|
322
|
+
const qi = Bi.exports;
|
|
323
|
+
let ra = 0;
|
|
341
324
|
const Ai = {
|
|
342
325
|
beforeCreate() {
|
|
343
|
-
this.uuid =
|
|
326
|
+
this.uuid = ra.toString(), ra += 1;
|
|
344
327
|
}
|
|
345
328
|
};
|
|
346
|
-
var
|
|
329
|
+
var Ui = function() {
|
|
347
330
|
var a = this, i = a._self._c;
|
|
348
331
|
return i("svg", a._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", a.$attrs, !1), [a.$attrs["svg-title"] ? i("title", [a._v(a._s(a.$attrs["svg-title"]))]) : a._e(), i("path", { attrs: { fill: "#00112C", d: "M3.5 1.25L3.49505 1.25002C2.90084 1.25394 2.33208 1.49173 1.91191 1.91191C1.49173 2.33208 1.25392 2.90084 1.25 3.49505V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V3.5C14.75 2.90326 14.5129 2.33097 14.091 1.90901C13.669 1.48705 13.0967 1.25 12.5 1.25H3.5ZM5.25 2.75V5.25H2.75V3.5029C2.75185 3.30382 2.83175 3.11338 2.97257 2.97257C3.11338 2.83175 3.30382 2.75185 3.5029 2.75H5.25ZM5.25 6.75V9.25H2.75V6.75H5.25ZM6.75 9.25V6.75H13.25V9.25H6.75ZM5.25 10.75V13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5V10.75H5.25ZM6.75 13.25V10.75H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H6.75ZM6.75 5.25V2.75H12.5C12.6989 2.75 12.8897 2.82902 13.0303 2.96967C13.171 3.11032 13.25 3.30109 13.25 3.5V5.25H6.75Z" } })]);
|
|
349
|
-
},
|
|
332
|
+
}, Zi = [], Pi = /* @__PURE__ */ x(
|
|
350
333
|
Ai,
|
|
351
|
-
|
|
352
|
-
|
|
334
|
+
Ui,
|
|
335
|
+
Zi,
|
|
353
336
|
!1,
|
|
354
337
|
null,
|
|
355
338
|
null
|
|
356
339
|
);
|
|
357
|
-
const
|
|
358
|
-
[d.AUDIO]:
|
|
359
|
-
[d.COMPRESSED]:
|
|
360
|
-
[d.GENERIC]:
|
|
361
|
-
[d.IMAGE]:
|
|
362
|
-
[d.PDF]:
|
|
363
|
-
[d.SLIDES]:
|
|
364
|
-
[d.TABLE]:
|
|
365
|
-
[d.TEXT]:
|
|
366
|
-
[d.VIDEO]:
|
|
340
|
+
const Ni = Pi.exports, Wi = {
|
|
341
|
+
[d.AUDIO]: qi,
|
|
342
|
+
[d.COMPRESSED]: ji,
|
|
343
|
+
[d.GENERIC]: pi,
|
|
344
|
+
[d.IMAGE]: $i,
|
|
345
|
+
[d.PDF]: xi,
|
|
346
|
+
[d.SLIDES]: di,
|
|
347
|
+
[d.TABLE]: Ni,
|
|
348
|
+
[d.TEXT]: wi,
|
|
349
|
+
[d.VIDEO]: Vi
|
|
367
350
|
};
|
|
368
|
-
function
|
|
369
|
-
return
|
|
351
|
+
function Gi(e) {
|
|
352
|
+
return Wi[e.type];
|
|
370
353
|
}
|
|
371
|
-
function
|
|
354
|
+
function Yi(e) {
|
|
372
355
|
switch (e.type) {
|
|
373
356
|
case d.COMPRESSED:
|
|
374
357
|
case d.GENERIC:
|
|
@@ -382,7 +365,7 @@ function Ji(e) {
|
|
|
382
365
|
return "green";
|
|
383
366
|
}
|
|
384
367
|
}
|
|
385
|
-
const
|
|
368
|
+
const Xi = {
|
|
386
369
|
"en-US": {
|
|
387
370
|
cancel: "Cancel",
|
|
388
371
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -401,59 +384,59 @@ const Ki = {
|
|
|
401
384
|
remove: "Remover",
|
|
402
385
|
retry: "Tentar novamente"
|
|
403
386
|
}
|
|
404
|
-
},
|
|
387
|
+
}, Ji = {
|
|
405
388
|
name: "file-uploader-file-card",
|
|
406
|
-
i18n: { messages:
|
|
407
|
-
},
|
|
408
|
-
...
|
|
389
|
+
i18n: { messages: Xi }
|
|
390
|
+
}, Ki = /* @__PURE__ */ H({
|
|
391
|
+
...Ji,
|
|
409
392
|
props: {
|
|
410
393
|
file: null,
|
|
411
394
|
supportedFileTypes: { default: null }
|
|
412
395
|
},
|
|
413
396
|
emits: ["cancel", "remove", "retry"],
|
|
414
397
|
setup(e, { emit: a }) {
|
|
415
|
-
const i = e, t = 1200, { t:
|
|
416
|
-
"b-file-uploader-file-card--error":
|
|
417
|
-
})),
|
|
418
|
-
[`b-file-uploader-file-card__icon--${
|
|
419
|
-
"b-file-uploader-file-card__icon--error":
|
|
420
|
-
})),
|
|
421
|
-
return
|
|
398
|
+
const i = e, t = 1200, { t: l, locale: o } = B(), m = w(i.file.state === b.SUCCESS), c = r(() => URL.createObjectURL(i.file.data)), p = r(() => i.file.state === b.ERROR), v = r(() => i.file.errors.includes(f.ERROR_LOAD)), j = r(() => i.file.errors.includes(f.ERROR_SIZE)), q = r(() => i.file.errors.includes(f.ERROR_DIMENSIONS)), z = r(() => i.file.errors.includes(f.ERROR_TYPE)), _ = r(() => i.file.state === b.LOADING), k = r(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), F = r(() => fa(o.value, i.file.data.size)), $ = w(), y = w(), A = Ga($, y), E = r(() => ({
|
|
399
|
+
"b-file-uploader-file-card--error": p.value
|
|
400
|
+
})), U = r(() => ({
|
|
401
|
+
[`b-file-uploader-file-card__icon--${Yi(i.file)}`]: m.value,
|
|
402
|
+
"b-file-uploader-file-card__icon--error": p.value
|
|
403
|
+
})), I = r(() => _.value ? Ma : p.value ? ma : m.value ? Gi(i.file) : Fa);
|
|
404
|
+
return D(
|
|
422
405
|
() => i.file.state,
|
|
423
|
-
(
|
|
424
|
-
if (
|
|
425
|
-
const
|
|
426
|
-
|
|
406
|
+
(T) => {
|
|
407
|
+
if (T === b.SUCCESS && !m.value) {
|
|
408
|
+
const M = setTimeout(() => {
|
|
409
|
+
m.value = !0, clearTimeout(M);
|
|
427
410
|
}, t);
|
|
428
411
|
}
|
|
429
412
|
}
|
|
430
|
-
), { __sfc: !0, ICON_TIMER: t, props: i, emit: a, t:
|
|
413
|
+
), { __sfc: !0, ICON_TIMER: t, props: i, emit: a, t: l, locale: o, showFileIcon: m, downloadUrl: c, hasError: p, hasLoadError: v, hasSizeError: j, hasDimensionsError: q, hasTypeError: z, isLoading: _, progressLabel: k, sizeLabel: F, fileNameRef: $, fileNameContainerRef: y, isFileNameTruncated: A, conditionalClasses: E, conditionalIconClasses: U, fileUploaderIcon: I, isVue2: ua, FileUploaderFileCardAnimation: Wa, BinIcon: La, CrossIcon: $a, RefreshIcon: Ia, vBentoTooltipDirective: Sa, BentoButton: va, BentoLink: Ta, BentoTypography: G };
|
|
431
414
|
}
|
|
432
415
|
});
|
|
433
|
-
var
|
|
416
|
+
var Qi = function() {
|
|
434
417
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
435
|
-
return i("div", { staticClass: "b-file-uploader-file-card", class: t.conditionalClasses }, [i("div", { staticClass: "b-file-uploader-file-card__details" }, [i("div", { staticClass: "b-file-uploader-file-card__info" }, [i(t.FileUploaderFileCardAnimation, { attrs: { name: t.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": t.showFileIcon } }, [i(t.fileUploaderIcon, { key: JSON.stringify(t.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: t.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), i("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [i(t.BentoLink, { attrs: { download: a.file.data.name, to: t.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [i(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? i(t.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(t.progressLabel))]) : a.file.data.size ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [a._v(a._s(t.sizeLabel))]) : a._e()], 1), t.hasSizeError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileExceedsSizeLimit")) + " ")]) : a._e(), t.hasDimensionsError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), t.hasTypeError && a.supportedFileTypes ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1), i("div", { staticClass: "b-file-uploader-file-card__actions" }, [t.hasLoadError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(
|
|
418
|
+
return i("div", { staticClass: "b-file-uploader-file-card", class: t.conditionalClasses }, [i("div", { staticClass: "b-file-uploader-file-card__details" }, [i("div", { staticClass: "b-file-uploader-file-card__info" }, [i(t.FileUploaderFileCardAnimation, { attrs: { name: t.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": t.showFileIcon } }, [i(t.fileUploaderIcon, { key: JSON.stringify(t.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: t.conditionalIconClasses, attrs: { small: "", "data-testid": "file-uploader-item-icon" } })], 1), i("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [i(t.BentoLink, { attrs: { download: a.file.data.name, to: t.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [i(t.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: t.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? i(t.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(t.progressLabel))]) : a.file.data.size ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { el: "span" } }, [a._v(a._s(t.sizeLabel))]) : a._e()], 1), t.hasSizeError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileExceedsSizeLimit")) + " ")]) : a._e(), t.hasDimensionsError ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), t.hasTypeError && a.supportedFileTypes ? i(t.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(t.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1), i("div", { staticClass: "b-file-uploader-file-card__actions" }, [t.hasLoadError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(l) {
|
|
436
419
|
return t.emit("retry");
|
|
437
420
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
438
421
|
return [i(t.RefreshIcon, { attrs: { "svg-title": t.t("retry") } })];
|
|
439
|
-
}, proxy: !0 }], null, !1, 3564309296) }, [a._v(" " + a._s(t.t("retry")) + " ")]) : a._e(), t.isLoading || t.hasError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(
|
|
422
|
+
}, proxy: !0 }], null, !1, 3564309296) }, [a._v(" " + a._s(t.t("retry")) + " ")]) : a._e(), t.isLoading || t.hasError ? i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(l) {
|
|
440
423
|
return t.emit("cancel");
|
|
441
424
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
442
425
|
return [i(t.CrossIcon, { attrs: { "svg-title": t.t("cancel") } })];
|
|
443
|
-
}, proxy: !0 }], null, !1, 1692450141) }) : i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(
|
|
426
|
+
}, proxy: !0 }], null, !1, 1692450141) }) : i(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(l) {
|
|
444
427
|
return t.emit("remove");
|
|
445
428
|
} }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
|
|
446
429
|
return [i(t.BinIcon, { attrs: { "svg-title": t.t("remove") } })];
|
|
447
430
|
}, proxy: !0 }]) })], 1)]);
|
|
448
|
-
},
|
|
431
|
+
}, at = [], it = /* @__PURE__ */ x(
|
|
432
|
+
Ki,
|
|
433
|
+
Qi,
|
|
449
434
|
at,
|
|
450
|
-
it,
|
|
451
|
-
tt,
|
|
452
435
|
!1,
|
|
453
436
|
null,
|
|
454
437
|
"56f32ebc"
|
|
455
438
|
);
|
|
456
|
-
const
|
|
439
|
+
const tt = it.exports, et = {
|
|
457
440
|
"en-US": {
|
|
458
441
|
maxFileSize: "Max file size: {size}",
|
|
459
442
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -462,10 +445,10 @@ const nt = et.exports, ot = {
|
|
|
462
445
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
463
446
|
supportedFileTypes: "Supported file types: {list}"
|
|
464
447
|
}
|
|
465
|
-
},
|
|
466
|
-
i18n: { messages:
|
|
467
|
-
},
|
|
468
|
-
...
|
|
448
|
+
}, nt = {
|
|
449
|
+
i18n: { messages: et }
|
|
450
|
+
}, ot = /* @__PURE__ */ H({
|
|
451
|
+
...nt,
|
|
469
452
|
__name: "file-uploader-restrictions",
|
|
470
453
|
props: {
|
|
471
454
|
condensed: { default: null },
|
|
@@ -476,38 +459,38 @@ const nt = et.exports, ot = {
|
|
|
476
459
|
supportedFileTypes: { default: null }
|
|
477
460
|
},
|
|
478
461
|
setup(e) {
|
|
479
|
-
const a = e, { t: i, tc: t, locale:
|
|
462
|
+
const a = e, { t: i, tc: t, locale: l } = B(), o = r(() => ({
|
|
480
463
|
"b-file-uploader-restrictions--condensed": a.condensed,
|
|
481
464
|
"b-file-uploader-restrictions--disabled": a.disabled
|
|
482
465
|
}));
|
|
483
|
-
function
|
|
466
|
+
function m(p) {
|
|
484
467
|
return {
|
|
485
|
-
"b-file-uploader-restrictions--error":
|
|
468
|
+
"b-file-uploader-restrictions--error": p
|
|
486
469
|
};
|
|
487
470
|
}
|
|
488
|
-
const c =
|
|
471
|
+
const c = r(() => {
|
|
489
472
|
if (!a.maxDimensions)
|
|
490
473
|
return null;
|
|
491
474
|
const {
|
|
492
|
-
value: { width:
|
|
475
|
+
value: { width: p, height: v }
|
|
493
476
|
} = a.maxDimensions;
|
|
494
|
-
return
|
|
477
|
+
return p && v ? i("maxImageDimensions", { width: p, height: v }) : p ? i("maxImageWidth", { width: p }) : v ? i("maxImageHeight", { height: v }) : null;
|
|
495
478
|
});
|
|
496
|
-
return { __sfc: !0, props: a, t: i, tc: t, locale:
|
|
479
|
+
return { __sfc: !0, props: a, t: i, tc: t, locale: l, conditionalClasses: o, setRestrictionErrorClass: m, maxDimensionsLabel: c, BentoTypography: G, formatFileSize: fa };
|
|
497
480
|
}
|
|
498
481
|
});
|
|
499
|
-
var
|
|
482
|
+
var pt = function() {
|
|
500
483
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
501
484
|
return i("div", { staticClass: "b-file-uploader-restrictions", class: t.conditionalClasses }, [a.supportedFileTypes ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.supportedFileTypes.error) }, [a._v(" " + a._s(t.t("supportedFileTypes", { list: a.supportedFileTypes.value })) + " ")]) : a._e(), a.maxSize ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxSize.error) }, [a._v(" " + a._s(t.t("maxFileSize", { size: t.formatFileSize(t.locale, a.maxSize.value) })) + " ")]) : a._e(), a.maxDimensions ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxDimensions.error) }, [a._v(" " + a._s(t.maxDimensionsLabel) + " ")]) : a._e(), a.maxCount ? i(t.BentoTypography, { class: t.setRestrictionErrorClass(a.maxCount.error) }, [a._v(" " + a._s(t.tc("maxUpload", a.maxCount.value)) + " ")]) : a._e()], 1);
|
|
502
|
-
},
|
|
485
|
+
}, lt = [], st = /* @__PURE__ */ x(
|
|
486
|
+
ot,
|
|
487
|
+
pt,
|
|
503
488
|
lt,
|
|
504
|
-
st,
|
|
505
|
-
ct,
|
|
506
489
|
!1,
|
|
507
490
|
null,
|
|
508
491
|
"3c1d05d1"
|
|
509
492
|
);
|
|
510
|
-
const
|
|
493
|
+
const ct = st.exports, xa = {
|
|
511
494
|
"application/prs.cww": ["cww"],
|
|
512
495
|
"application/prs.xsf+xml": ["xsf"],
|
|
513
496
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1206,8 +1189,8 @@ const dt = rt.exports, ua = {
|
|
|
1206
1189
|
"video/x-smv": ["smv"],
|
|
1207
1190
|
"x-conference/x-cooltalk": ["ice"]
|
|
1208
1191
|
};
|
|
1209
|
-
Object.freeze(
|
|
1210
|
-
const
|
|
1192
|
+
Object.freeze(xa);
|
|
1193
|
+
const ga = {
|
|
1211
1194
|
"application/andrew-inset": ["ez"],
|
|
1212
1195
|
"application/appinstaller": ["appinstaller"],
|
|
1213
1196
|
"application/applixware": ["aw"],
|
|
@@ -1559,31 +1542,31 @@ const fa = {
|
|
|
1559
1542
|
"video/quicktime": ["qt", "mov"],
|
|
1560
1543
|
"video/webm": ["webm"]
|
|
1561
1544
|
};
|
|
1562
|
-
Object.freeze(
|
|
1563
|
-
var
|
|
1545
|
+
Object.freeze(ga);
|
|
1546
|
+
var h = function(e, a, i, t) {
|
|
1564
1547
|
if (i === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
|
|
1565
1548
|
if (typeof a == "function" ? e !== a || !t : !a.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1566
1549
|
return i === "m" ? t : i === "a" ? t.call(e) : t ? t.value : a.get(e);
|
|
1567
|
-
},
|
|
1568
|
-
class
|
|
1550
|
+
}, R, L, C;
|
|
1551
|
+
class rt {
|
|
1569
1552
|
constructor(...a) {
|
|
1570
|
-
|
|
1553
|
+
R.set(this, /* @__PURE__ */ new Map()), L.set(this, /* @__PURE__ */ new Map()), C.set(this, /* @__PURE__ */ new Map());
|
|
1571
1554
|
for (const i of a)
|
|
1572
1555
|
this.define(i);
|
|
1573
1556
|
}
|
|
1574
1557
|
define(a, i = !1) {
|
|
1575
|
-
for (let [t,
|
|
1576
|
-
t = t.toLowerCase(),
|
|
1577
|
-
const o =
|
|
1578
|
-
let
|
|
1579
|
-
for (let c of
|
|
1580
|
-
const
|
|
1581
|
-
if (c =
|
|
1558
|
+
for (let [t, l] of Object.entries(a)) {
|
|
1559
|
+
t = t.toLowerCase(), l = l.map((c) => c.toLowerCase()), h(this, C, "f").has(t) || h(this, C, "f").set(t, /* @__PURE__ */ new Set());
|
|
1560
|
+
const o = h(this, C, "f").get(t);
|
|
1561
|
+
let m = !0;
|
|
1562
|
+
for (let c of l) {
|
|
1563
|
+
const p = c.startsWith("*");
|
|
1564
|
+
if (c = p ? c.slice(1) : c, o == null || o.add(c), m && h(this, L, "f").set(t, c), m = !1, p)
|
|
1582
1565
|
continue;
|
|
1583
|
-
const v =
|
|
1566
|
+
const v = h(this, R, "f").get(c);
|
|
1584
1567
|
if (v && v != t && !i)
|
|
1585
1568
|
throw new Error(`"${t} -> ${c}" conflicts with "${v} -> ${c}". Pass \`force=true\` to override this definition.`);
|
|
1586
|
-
|
|
1569
|
+
h(this, R, "f").set(c, t);
|
|
1587
1570
|
}
|
|
1588
1571
|
}
|
|
1589
1572
|
return this;
|
|
@@ -1591,41 +1574,41 @@ class mt {
|
|
|
1591
1574
|
getType(a) {
|
|
1592
1575
|
if (typeof a != "string")
|
|
1593
1576
|
return null;
|
|
1594
|
-
const i = a.replace(/^.*[/\\]/, "").toLowerCase(), t = i.replace(/^.*\./, "").toLowerCase(),
|
|
1595
|
-
return !(t.length < i.length - 1) &&
|
|
1577
|
+
const i = a.replace(/^.*[/\\]/, "").toLowerCase(), t = i.replace(/^.*\./, "").toLowerCase(), l = i.length < a.length;
|
|
1578
|
+
return !(t.length < i.length - 1) && l ? null : h(this, R, "f").get(t) ?? null;
|
|
1596
1579
|
}
|
|
1597
1580
|
getExtension(a) {
|
|
1598
1581
|
var i;
|
|
1599
|
-
return typeof a != "string" ? null : (a = (i = a == null ? void 0 : a.split) == null ? void 0 : i.call(a, ";")[0], (a &&
|
|
1582
|
+
return typeof a != "string" ? null : (a = (i = a == null ? void 0 : a.split) == null ? void 0 : i.call(a, ";")[0], (a && h(this, L, "f").get(a.trim().toLowerCase())) ?? null);
|
|
1600
1583
|
}
|
|
1601
1584
|
getAllExtensions(a) {
|
|
1602
|
-
return typeof a != "string" ? null :
|
|
1585
|
+
return typeof a != "string" ? null : h(this, C, "f").get(a.toLowerCase()) ?? null;
|
|
1603
1586
|
}
|
|
1604
1587
|
_freeze() {
|
|
1605
1588
|
this.define = () => {
|
|
1606
1589
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1607
1590
|
}, Object.freeze(this);
|
|
1608
|
-
for (const a of
|
|
1591
|
+
for (const a of h(this, C, "f").values())
|
|
1609
1592
|
Object.freeze(a);
|
|
1610
1593
|
return this;
|
|
1611
1594
|
}
|
|
1612
1595
|
_getTestState() {
|
|
1613
1596
|
return {
|
|
1614
|
-
types:
|
|
1615
|
-
extensions:
|
|
1597
|
+
types: h(this, R, "f"),
|
|
1598
|
+
extensions: h(this, L, "f")
|
|
1616
1599
|
};
|
|
1617
1600
|
}
|
|
1618
1601
|
}
|
|
1619
|
-
|
|
1620
|
-
const
|
|
1621
|
-
function
|
|
1622
|
-
return e.includes("/") ? `.${
|
|
1602
|
+
R = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap();
|
|
1603
|
+
const ha = new rt(ga, xa)._freeze();
|
|
1604
|
+
function dt(e) {
|
|
1605
|
+
return e.includes("/") ? `.${ha.getExtension(e).toUpperCase()}` : e.toUpperCase();
|
|
1623
1606
|
}
|
|
1624
|
-
function
|
|
1625
|
-
const { locale: a, t: i } =
|
|
1626
|
-
return { supportedFileTypeList:
|
|
1627
|
-
const
|
|
1628
|
-
return e != null && e.value ?
|
|
1607
|
+
function mt(e) {
|
|
1608
|
+
const { locale: a, t: i } = B();
|
|
1609
|
+
return { supportedFileTypeList: r(() => {
|
|
1610
|
+
const l = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
|
|
1611
|
+
return e != null && e.value ? l.format(
|
|
1629
1612
|
e.value.split(",").map((o) => {
|
|
1630
1613
|
switch (o.trim()) {
|
|
1631
1614
|
case "audio/*":
|
|
@@ -1635,13 +1618,13 @@ function ut(e) {
|
|
|
1635
1618
|
case "video/*":
|
|
1636
1619
|
return i("videoFiles");
|
|
1637
1620
|
default:
|
|
1638
|
-
return
|
|
1621
|
+
return dt(o);
|
|
1639
1622
|
}
|
|
1640
1623
|
})
|
|
1641
1624
|
) : null;
|
|
1642
1625
|
}) };
|
|
1643
1626
|
}
|
|
1644
|
-
const
|
|
1627
|
+
const vt = {
|
|
1645
1628
|
"en-US": {
|
|
1646
1629
|
audioFiles: "audio files",
|
|
1647
1630
|
browseFiles: "Browse files",
|
|
@@ -1664,10 +1647,10 @@ const ft = {
|
|
|
1664
1647
|
warning: "Aviso"
|
|
1665
1648
|
}
|
|
1666
1649
|
};
|
|
1667
|
-
function
|
|
1668
|
-
return
|
|
1650
|
+
function ut(e) {
|
|
1651
|
+
return ha.getType(e) ?? e;
|
|
1669
1652
|
}
|
|
1670
|
-
function
|
|
1653
|
+
function ft({ maxCount: e, accept: a }) {
|
|
1671
1654
|
const i = W({
|
|
1672
1655
|
invalidTypes: !1,
|
|
1673
1656
|
partiallyInvalidTypes: !1,
|
|
@@ -1675,34 +1658,34 @@ function gt({ maxCount: e, accept: a }) {
|
|
|
1675
1658
|
}), t = W({
|
|
1676
1659
|
dragging: !1,
|
|
1677
1660
|
error: !1
|
|
1678
|
-
}),
|
|
1661
|
+
}), l = r(() => a.value ? a.value.split(",").map((p) => ut(p.trim().toLocaleLowerCase())) : void 0);
|
|
1679
1662
|
function o() {
|
|
1680
1663
|
t.dragging = !1, t.error = !1, i.invalidTypes = !1, i.partiallyInvalidTypes = !1, i.maxCountOverflow = !1;
|
|
1681
1664
|
}
|
|
1682
|
-
function
|
|
1683
|
-
if (t.dragging = !0, (!
|
|
1665
|
+
function m(c, p) {
|
|
1666
|
+
if (t.dragging = !0, (!p.dataTransfer.types.includes("Files") || c > e.value) && (i.maxCountOverflow = !0, t.error = !0), !l.value)
|
|
1684
1667
|
return;
|
|
1685
1668
|
let v = 0;
|
|
1686
|
-
for (const
|
|
1687
|
-
|
|
1669
|
+
for (const j of p.dataTransfer.items)
|
|
1670
|
+
l.value.includes(j.type) && v++;
|
|
1688
1671
|
if (v === 0) {
|
|
1689
1672
|
t.error = !0, i.invalidTypes = !0;
|
|
1690
1673
|
return;
|
|
1691
1674
|
}
|
|
1692
|
-
!i.invalidTypes && v !==
|
|
1675
|
+
!i.invalidTypes && v !== p.dataTransfer.items.length && (t.error = !0, i.partiallyInvalidTypes = !0);
|
|
1693
1676
|
}
|
|
1694
1677
|
return {
|
|
1695
1678
|
dragState: t,
|
|
1696
1679
|
dragErrors: i,
|
|
1697
1680
|
resetDragState: o,
|
|
1698
|
-
onDragEnterValidations:
|
|
1681
|
+
onDragEnterValidations: m
|
|
1699
1682
|
};
|
|
1700
1683
|
}
|
|
1701
|
-
const
|
|
1684
|
+
const xt = {
|
|
1702
1685
|
model: { prop: "modelValue" },
|
|
1703
|
-
i18n: { messages:
|
|
1704
|
-
},
|
|
1705
|
-
...
|
|
1686
|
+
i18n: { messages: vt }
|
|
1687
|
+
}, gt = /* @__PURE__ */ H({
|
|
1688
|
+
...xt,
|
|
1706
1689
|
__name: "file-uploader",
|
|
1707
1690
|
props: {
|
|
1708
1691
|
accept: { default: null },
|
|
@@ -1721,133 +1704,151 @@ const ht = {
|
|
|
1721
1704
|
},
|
|
1722
1705
|
emits: ["change", "update:modelValue", "error:upload"],
|
|
1723
1706
|
setup(e, { emit: a }) {
|
|
1724
|
-
const i = e, { t, tc:
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1707
|
+
const i = e, { t, tc: l } = B(), o = (n) => !!n && typeof n.length == "number" && typeof n.item == "function", m = r(() => o(i.modelValue) || i.modelValue instanceof FileList);
|
|
1708
|
+
da(() => {
|
|
1709
|
+
m.value || Ea(
|
|
1710
|
+
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1711
|
+
"Use FileList instead.",
|
|
1712
|
+
"2.0.0"
|
|
1713
|
+
);
|
|
1714
|
+
});
|
|
1715
|
+
const { supportedFileTypeList: c } = mt(P(i, "accept")), p = w(null), v = w(null), j = N("input"), q = N("input-error"), { dragState: z, dragErrors: _, resetDragState: k, onDragEnterValidations: F } = ft({
|
|
1716
|
+
accept: P(i, "accept"),
|
|
1717
|
+
maxCount: P(i, "maxCount")
|
|
1718
|
+
}), $ = r(() => {
|
|
1728
1719
|
var n, s, u;
|
|
1729
1720
|
return {
|
|
1730
1721
|
condensed: i.condensed,
|
|
1731
1722
|
disabled: i.disabled,
|
|
1732
|
-
maxCount:
|
|
1723
|
+
maxCount: E.value ? {
|
|
1733
1724
|
value: i.maxCount,
|
|
1734
|
-
error:
|
|
1725
|
+
error: _.maxCountOverflow || M.value
|
|
1735
1726
|
} : null,
|
|
1736
1727
|
maxDimensions: i.maxDimensions ? {
|
|
1737
1728
|
value: i.maxDimensions,
|
|
1738
|
-
error: (n =
|
|
1729
|
+
error: (n = p.value) == null ? void 0 : n.some((g) => g.errors.includes(f.ERROR_DIMENSIONS))
|
|
1739
1730
|
} : null,
|
|
1740
1731
|
maxSize: i.maxSize ? {
|
|
1741
1732
|
value: i.maxSize,
|
|
1742
|
-
error: (s =
|
|
1733
|
+
error: (s = p.value) == null ? void 0 : s.some((g) => g.errors.includes(f.ERROR_SIZE))
|
|
1743
1734
|
} : null,
|
|
1744
|
-
supportedFileTypes:
|
|
1745
|
-
value:
|
|
1746
|
-
error:
|
|
1735
|
+
supportedFileTypes: c.value ? {
|
|
1736
|
+
value: c.value,
|
|
1737
|
+
error: _.invalidTypes || _.partiallyInvalidTypes || ((u = p.value) == null ? void 0 : u.some((g) => g.errors.includes(f.ERROR_TYPE)))
|
|
1747
1738
|
} : null
|
|
1748
1739
|
};
|
|
1749
|
-
}),
|
|
1750
|
-
[`b-file-uploader--${
|
|
1751
|
-
[`b-file-uploader--${
|
|
1752
|
-
[`b-file-uploader--${
|
|
1740
|
+
}), y = w(), A = r(() => ({
|
|
1741
|
+
[`b-file-uploader--${O.DISABLED}`]: i.disabled,
|
|
1742
|
+
[`b-file-uploader--${O.DRAG_OVER}`]: z.dragging,
|
|
1743
|
+
[`b-file-uploader--${O.ERROR}`]: T.value,
|
|
1753
1744
|
"b-file-uploader--condensed": i.condensed
|
|
1754
|
-
})),
|
|
1745
|
+
})), E = r(() => i.maxCount > 1), U = r(() => {
|
|
1755
1746
|
var n;
|
|
1756
|
-
return i.maxCount && ((n =
|
|
1757
|
-
}), I =
|
|
1747
|
+
return i.maxCount && ((n = p.value) == null ? void 0 : n.length) >= i.maxCount;
|
|
1748
|
+
}), I = r(() => {
|
|
1758
1749
|
var n;
|
|
1759
|
-
return (n =
|
|
1760
|
-
}), T =
|
|
1750
|
+
return (n = p.value) == null ? void 0 : n.some((s) => s.state === "loading");
|
|
1751
|
+
}), T = r(() => !!i.errorMessage || z.error), M = r(() => {
|
|
1761
1752
|
var n;
|
|
1762
|
-
return ((n =
|
|
1763
|
-
}),
|
|
1753
|
+
return ((n = p.value) == null ? void 0 : n.length) > i.maxCount;
|
|
1754
|
+
}), Y = w(!1), X = r(() => {
|
|
1764
1755
|
var n;
|
|
1765
|
-
return (n =
|
|
1756
|
+
return (n = p.value) == null ? void 0 : n.some((s) => s.state === "error");
|
|
1766
1757
|
});
|
|
1767
|
-
|
|
1758
|
+
D(X, (n) => {
|
|
1768
1759
|
I.value || a("error:upload", n);
|
|
1769
1760
|
});
|
|
1770
|
-
function
|
|
1771
|
-
|
|
1761
|
+
function ba(n) {
|
|
1762
|
+
p.value = p.value.filter(({ id: s }) => s !== n.id);
|
|
1772
1763
|
}
|
|
1773
|
-
function
|
|
1764
|
+
function S(n) {
|
|
1774
1765
|
const s = W({
|
|
1775
|
-
id:
|
|
1766
|
+
id: N("file"),
|
|
1776
1767
|
data: n,
|
|
1777
1768
|
errors: [],
|
|
1778
1769
|
progress: null,
|
|
1779
|
-
state:
|
|
1780
|
-
type:
|
|
1770
|
+
state: b.LOADING,
|
|
1771
|
+
type: Qa(n)
|
|
1781
1772
|
});
|
|
1782
|
-
return
|
|
1773
|
+
return ii(s, i.accept, i.maxDimensions), s;
|
|
1783
1774
|
}
|
|
1784
|
-
function
|
|
1775
|
+
function _a(n) {
|
|
1785
1776
|
var s;
|
|
1786
|
-
((s =
|
|
1777
|
+
((s = p.value) == null ? void 0 : s.length) === i.maxCount && n.preventDefault();
|
|
1787
1778
|
}
|
|
1788
|
-
function
|
|
1779
|
+
function Z(n) {
|
|
1789
1780
|
if (i.maxCount === 1 && n.length > i.maxCount) {
|
|
1790
1781
|
V(), k();
|
|
1791
1782
|
return;
|
|
1792
1783
|
}
|
|
1793
|
-
|
|
1784
|
+
E.value ? p.value = [...p.value || [], ...Array.from(n).map((s) => S(s))] : p.value = [S(n[0])];
|
|
1794
1785
|
}
|
|
1795
|
-
function
|
|
1796
|
-
var u,
|
|
1786
|
+
function wa(n) {
|
|
1787
|
+
var u, g;
|
|
1797
1788
|
if (i.disabled)
|
|
1798
1789
|
return;
|
|
1799
|
-
|
|
1800
|
-
const s = (((u = n.dataTransfer.items) == null ? void 0 : u.length) ?? 0) + (((
|
|
1801
|
-
|
|
1790
|
+
y.value = n.target;
|
|
1791
|
+
const s = (((u = n.dataTransfer.items) == null ? void 0 : u.length) ?? 0) + (((g = p.value) == null ? void 0 : g.length) ?? 0);
|
|
1792
|
+
F(s, n);
|
|
1802
1793
|
}
|
|
1803
1794
|
function V() {
|
|
1804
|
-
|
|
1795
|
+
y.value = null;
|
|
1805
1796
|
}
|
|
1806
|
-
function
|
|
1807
|
-
|
|
1797
|
+
function ya(n) {
|
|
1798
|
+
y.value === n.target && (V(), k());
|
|
1808
1799
|
}
|
|
1809
|
-
function
|
|
1800
|
+
function Ca(n) {
|
|
1810
1801
|
n.preventDefault(), i.disabled && (n.dataTransfer.dropEffect = "none");
|
|
1811
1802
|
}
|
|
1812
|
-
function
|
|
1803
|
+
function ka(n) {
|
|
1813
1804
|
var s;
|
|
1814
|
-
i.disabled || (!
|
|
1805
|
+
i.disabled || (!_.invalidTypes && ((s = n.dataTransfer.files) != null && s.length) && Z(n.dataTransfer.files), V(), k());
|
|
1815
1806
|
}
|
|
1816
|
-
function
|
|
1807
|
+
function Ra() {
|
|
1817
1808
|
var n;
|
|
1818
|
-
(n =
|
|
1809
|
+
(n = v.value.files) != null && n.length && Z(v.value.files), v.value.value = "";
|
|
1819
1810
|
}
|
|
1820
|
-
|
|
1811
|
+
D(
|
|
1812
|
+
() => i.modelValue,
|
|
1813
|
+
(n) => {
|
|
1814
|
+
if (n && m.value) {
|
|
1815
|
+
const s = n, u = Array.from(s);
|
|
1816
|
+
p.value = u.map((g) => S(g));
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
{ immediate: !0 }
|
|
1820
|
+
);
|
|
1821
|
+
function J(n) {
|
|
1821
1822
|
const s = i.maxCount && n.length <= i.maxCount;
|
|
1822
|
-
|
|
1823
|
+
Y.value = !s;
|
|
1823
1824
|
}
|
|
1824
|
-
function
|
|
1825
|
+
function K(n) {
|
|
1825
1826
|
i.maxSize && n.forEach((s) => {
|
|
1826
1827
|
const u = s;
|
|
1827
|
-
u.data.size > i.maxSize && (u.state =
|
|
1828
|
+
u.data.size > i.maxSize && (u.state = b.ERROR, u.errors.push(f.ERROR_SIZE));
|
|
1828
1829
|
});
|
|
1829
1830
|
}
|
|
1830
|
-
function
|
|
1831
|
+
function Q(n) {
|
|
1831
1832
|
const s = n.filter(
|
|
1832
|
-
({ errors: u }) => !u.includes(
|
|
1833
|
+
({ errors: u }) => !u.includes(f.ERROR_LOAD) && !u.includes(f.ERROR_SIZE)
|
|
1833
1834
|
);
|
|
1834
1835
|
if (s.length) {
|
|
1835
1836
|
const u = new DataTransfer();
|
|
1836
|
-
return s.forEach(({ data:
|
|
1837
|
+
return s.forEach(({ data: g }) => u.items.add(g)), u.files;
|
|
1837
1838
|
}
|
|
1838
1839
|
}
|
|
1839
|
-
return
|
|
1840
|
+
return D(p, (n) => {
|
|
1840
1841
|
if (n) {
|
|
1841
|
-
|
|
1842
|
-
const s =
|
|
1842
|
+
J(n), K(n);
|
|
1843
|
+
const s = Q(n);
|
|
1843
1844
|
a("change", s), a("update:modelValue", s);
|
|
1844
1845
|
} else
|
|
1845
1846
|
a("change"), a("update:modelValue");
|
|
1846
|
-
}), { __sfc: !0, t, tc:
|
|
1847
|
+
}), { __sfc: !0, t, tc: l, emit: a, props: i, isFileListLike: o, isFileList: m, supportedFileTypeList: c, files: p, inputRef: v, inputFieldId: j, errorId: q, dragState: z, dragErrors: _, resetDragState: k, onDragEnterValidations: F, fileUploadRestrictionsProps: $, enterTarget: y, conditionalClasses: A, isMultiple: E, hideArea: U, loadingStateExists: I, hasError: T, maxFileCountError: M, maxFileError: Y, hasRestrictionError: X, removeFile: ba, processFile: S, onInputClick: _a, onFileInput: Z, onDragEnter: wa, resetEnterTarget: V, onDragLeave: ya, onDragOver: Ca, onDrop: ka, onInputChange: Ra, verifyFileCount: J, verifyFileSize: K, convertToFileList: Q, UploadIcon: Aa, WarningFilledIcon: ma, BentoAlert: za, BentoButton: va, BentoTypography: G, ErrorMessage: Da, FieldLabel: Va, FileUploaderFileCard: tt, FileUploaderRestrictions: ct };
|
|
1847
1848
|
}
|
|
1848
1849
|
});
|
|
1849
|
-
var
|
|
1850
|
-
var
|
|
1850
|
+
var ht = function() {
|
|
1851
|
+
var l;
|
|
1851
1852
|
var a = this, i = a._self._c, t = a._self._setupProxy;
|
|
1852
1853
|
return i("div", { staticClass: "b-file-uploader", class: t.conditionalClasses }, [i(t.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: t.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), i("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: t.inputFieldId, type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: t.isMultiple }, on: { change: t.onInputChange, click: t.onInputClick } }), t.hideArea ? a._e() : i("div", { staticClass: "b-file-uploader__area", attrs: { "aria-label": t.t("dropArea"), tabindex: a.disabled ? -1 : 0 }, on: { click: function(o) {
|
|
1853
1854
|
return t.inputRef.click();
|
|
@@ -1863,23 +1864,23 @@ var bt = function() {
|
|
|
1863
1864
|
return !o.type.indexOf("key") && a._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : (o.preventDefault(), t.inputRef.click());
|
|
1864
1865
|
}] } }, [i("div", { staticClass: "b-file-uploader__icon" }, [t.hasError ? i(t.WarningFilledIcon, { attrs: { "svg-title": t.t("warning") } }) : i(t.UploadIcon, { attrs: { "svg-title": t.t("upload") } })], 1), a.condensed ? a._e() : [i(t.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { el: "span", strongest: "" } }, [a._v(" " + a._s(t.tc("dropFiles", a.maxCount)) + " ")]), a.description ? i(t.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), i(t.FileUploaderRestrictions, a._b({}, "file-uploader-restrictions", t.fileUploadRestrictionsProps, !1))], i(t.BentoButton, { staticClass: "b-file-uploader__button", attrs: { disabled: a.disabled, variant: a.condensed ? "tertiary" : "secondary", condensed: "", tabindex: "-1" } }, [a._v(" " + a._s(t.t("browseFiles")) + " ")])], 2), t.hasError && a.errorMessage ? i(t.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: t.errorId, "error-message": a.errorMessage } }) : a._e(), a.condensed && a.description ? i(t.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), a.condensed ? i(t.FileUploaderRestrictions, a._b({}, "file-uploader-restrictions", t.fileUploadRestrictionsProps, !1)) : a._e(), t.maxFileCountError ? i(t.BentoAlert, { attrs: { type: "critical" }, scopedSlots: a._u([{ key: "description", fn: function() {
|
|
1865
1866
|
return [a._v(" " + a._s(t.t("youHaveExceededTheMaximum", { count: t.props.maxCount })) + " ")];
|
|
1866
|
-
}, proxy: !0 }], null, !1, 239749076) }, [a._v(" " + a._s(t.t("tooManyFiles")) + " ")]) : a._e(), i("div", { directives: [{ name: "show", rawName: "v-show", value: (
|
|
1867
|
-
return i(t.FileUploaderFileCard, { key: o.id, attrs: { file: o, "supported-file-types": t.supportedFileTypeList }, on: { cancel: function(
|
|
1867
|
+
}, proxy: !0 }], null, !1, 239749076) }, [a._v(" " + a._s(t.t("tooManyFiles")) + " ")]) : a._e(), i("div", { directives: [{ name: "show", rawName: "v-show", value: (l = t.files) == null ? void 0 : l.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(t.files, function(o) {
|
|
1868
|
+
return i(t.FileUploaderFileCard, { key: o.id, attrs: { file: o, "supported-file-types": t.supportedFileTypeList }, on: { cancel: function(m) {
|
|
1868
1869
|
return t.removeFile(o);
|
|
1869
|
-
}, remove: function(
|
|
1870
|
+
}, remove: function(m) {
|
|
1870
1871
|
return t.removeFile(o);
|
|
1871
1872
|
} } });
|
|
1872
1873
|
}), 1)], 1);
|
|
1873
|
-
},
|
|
1874
|
-
|
|
1874
|
+
}, bt = [], _t = /* @__PURE__ */ x(
|
|
1875
|
+
gt,
|
|
1876
|
+
ht,
|
|
1875
1877
|
bt,
|
|
1876
|
-
wt,
|
|
1877
1878
|
!1,
|
|
1878
1879
|
null,
|
|
1879
|
-
"
|
|
1880
|
+
"137d5f82"
|
|
1880
1881
|
);
|
|
1881
|
-
const
|
|
1882
|
+
const Ht = _t.exports;
|
|
1882
1883
|
export {
|
|
1883
|
-
|
|
1884
|
+
Ht as f
|
|
1884
1885
|
};
|
|
1885
|
-
//# sourceMappingURL=file-uploader.
|
|
1886
|
+
//# sourceMappingURL=file-uploader.CcZPr-jD.js.map
|