@adyen/bento-vue3 1.65.0 → 1.67.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 +499 -250
- 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-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/date.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.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/footer-actions.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/summary-grid.css +1 -1
- package/dist/assets/tab.css +1 -0
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/use-cached-selected-values.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.BAfqAQjP.js → action-bar.ComuZPet.js} +38 -38
- package/dist/chunks/action-bar.ComuZPet.js.map +1 -0
- package/dist/chunks/{base-modal.CCwWuH6k.js → base-modal.DzJrvis_.js} +2 -2
- package/dist/chunks/{base-modal.CCwWuH6k.js.map → base-modal.DzJrvis_.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js +91 -0
- package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js.map +1 -0
- package/dist/chunks/{button-actions.D1pXI1AJ.js → button-actions.BwpznQ6c.js} +2 -2
- package/dist/chunks/button-actions.BwpznQ6c.js.map +1 -0
- package/dist/chunks/calendar._oPk_A1C.js +2209 -0
- package/dist/chunks/calendar._oPk_A1C.js.map +1 -0
- package/dist/chunks/{card.DiBtLuRU.js → card.JBOvn2BO.js} +2 -2
- package/dist/chunks/{card.DiBtLuRU.js.map → card.JBOvn2BO.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BKsddn67.js → checkbox-group.Dc5Olq0c.js} +4 -4
- package/dist/chunks/{checkbox-group.BKsddn67.js.map → checkbox-group.Dc5Olq0c.js.map} +1 -1
- package/dist/chunks/{checkbox.C1y3Ad4Z.js → checkbox.fkPJvdUo.js} +2 -2
- package/dist/chunks/{checkbox.C1y3Ad4Z.js.map → checkbox.fkPJvdUo.js.map} +1 -1
- package/dist/chunks/{code-snippet.Bj5SAyT-.js → code-snippet.vrlSqi9k.js} +4 -4
- package/dist/chunks/{code-snippet.Bj5SAyT-.js.map → code-snippet.vrlSqi9k.js.map} +1 -1
- package/dist/chunks/{controls-group.DD1m4EKn.js → controls-group.CrzkSu0U.js} +2 -2
- package/dist/chunks/{controls-group.DD1m4EKn.js.map → controls-group.CrzkSu0U.js.map} +1 -1
- package/dist/chunks/copy.RUoQOydT.js +118 -0
- package/dist/chunks/copy.RUoQOydT.js.map +1 -0
- package/dist/chunks/{dashboard-section.C6FNJuEz.js → dashboard-section.Bg0dfNs-.js} +3 -3
- package/dist/chunks/{dashboard-section.C6FNJuEz.js.map → dashboard-section.Bg0dfNs-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.ywc0ydgS.js → dashed-underline.DgE-UB-x.js} +2 -2
- package/dist/chunks/{dashed-underline.ywc0ydgS.js.map → dashed-underline.DgE-UB-x.js.map} +1 -1
- package/dist/chunks/data-grid-template.Df7j2oxe.js +144 -0
- package/dist/chunks/data-grid-template.Df7j2oxe.js.map +1 -0
- package/dist/chunks/{data-grid.DroQMKSc.js → data-grid.rDZadZwc.js} +370 -368
- package/dist/chunks/data-grid.rDZadZwc.js.map +1 -0
- package/dist/chunks/{date-picker.BuX2J2OW.js → date-picker.CZ6zU-NJ.js} +24 -25
- package/dist/chunks/{date-picker.BuX2J2OW.js.map → date-picker.CZ6zU-NJ.js.map} +1 -1
- package/dist/chunks/date-range-picker.Dw4R9bIs.js +1225 -0
- package/dist/chunks/date-range-picker.Dw4R9bIs.js.map +1 -0
- package/dist/chunks/date.DSjCnSgL.js +163 -0
- package/dist/chunks/date.DSjCnSgL.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.B05elQig.js → dropdown-default-textbox.Ce5D3ipi.js} +40 -39
- package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Dm-1VD3B.js → dropdown-tag.BlHovDol.js} +2 -2
- package/dist/chunks/{dropdown-tag.Dm-1VD3B.js.map → dropdown-tag.BlHovDol.js.map} +1 -1
- package/dist/chunks/{dropdown.Bj6DK-2v.js → dropdown.B5ZaFDn_.js} +308 -313
- package/dist/chunks/{dropdown.Bj6DK-2v.js.map → dropdown.B5ZaFDn_.js.map} +1 -1
- package/dist/chunks/{error-message.DZWphzoT.js → error-message.DHMHq9bR.js} +2 -2
- package/dist/chunks/{error-message.DZWphzoT.js.map → error-message.DHMHq9bR.js.map} +1 -1
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{file-uploader.C8DwUCMp.js → file-uploader.B_EI2fAc.js} +523 -523
- package/dist/chunks/file-uploader.B_EI2fAc.js.map +1 -0
- package/dist/chunks/{filter-bar.BvInaVGL.js → filter-bar.XonJn7ao.js} +1007 -992
- package/dist/chunks/{filter-bar.BvInaVGL.js.map → filter-bar.XonJn7ao.js.map} +1 -1
- package/dist/chunks/{footer-actions.vQ4flLqU.js → footer-actions.CdJLLWNR.js} +2 -2
- package/dist/chunks/{footer-actions.vQ4flLqU.js.map → footer-actions.CdJLLWNR.js.map} +1 -1
- package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
- package/dist/chunks/{header-with-views.De0oVJXS.js → header-with-views.CHbH1_1V.js} +680 -663
- package/dist/chunks/header-with-views.CHbH1_1V.js.map +1 -0
- package/dist/chunks/{header.Ckjp7n9t.js → header.CJJWPB5Z.js} +63 -62
- package/dist/chunks/{header.Ckjp7n9t.js.map → header.CJJWPB5Z.js.map} +1 -1
- package/dist/chunks/index.BrH1t1iu.js +407 -0
- package/dist/chunks/index.BrH1t1iu.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js → info-icon-with-popover.DVH46dPy.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js.map → info-icon-with-popover.DVH46dPy.js.map} +1 -1
- package/dist/chunks/info-icon.DprUQ9fj.js +36 -0
- package/dist/chunks/info-icon.DprUQ9fj.js.map +1 -0
- package/dist/chunks/input-field-password.DWZAf1Oh.js +370 -0
- package/dist/chunks/input-field-password.DWZAf1Oh.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.DVliTkE3.js → input-field-phone-number.CbpRItYf.js} +3 -3
- package/dist/chunks/{input-field-phone-number.DVliTkE3.js.map → input-field-phone-number.CbpRItYf.js.map} +1 -1
- package/dist/chunks/input-field.DExw_Cow.js +303 -0
- package/dist/chunks/input-field.DExw_Cow.js.map +1 -0
- package/dist/chunks/{menu.CiyYOoKd.js → menu.CeLJ1gIz.js} +2 -2
- package/dist/chunks/{menu.CiyYOoKd.js.map → menu.CeLJ1gIz.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuL9oSAq.js → modal-fullscreen.CZnLS-fQ.js} +2 -2
- package/dist/chunks/{modal-fullscreen.CuL9oSAq.js.map → modal-fullscreen.CZnLS-fQ.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js.map → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js.map} +1 -1
- package/dist/chunks/{pagination.D6A7TX6J.js → pagination.DL9LmFMJ.js} +168 -168
- package/dist/chunks/pagination.DL9LmFMJ.js.map +1 -0
- package/dist/chunks/{popover.maCMPyz8.js → popover.VI3TrUkL.js} +2 -2
- package/dist/chunks/{popover.maCMPyz8.js.map → popover.VI3TrUkL.js.map} +1 -1
- package/dist/chunks/promo-banner.CQp3z2CP.js.map +1 -1
- package/dist/chunks/{radio-group.435rdgzm.js → radio-group.H9A5QcNu.js} +3 -3
- package/dist/chunks/{radio-group.435rdgzm.js.map → radio-group.H9A5QcNu.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BDLncrV5.js → rich-text-editor.Dl9PsYbk.js} +6 -5
- package/dist/chunks/{rich-text-editor.BDLncrV5.js.map → rich-text-editor.Dl9PsYbk.js.map} +1 -1
- package/dist/chunks/{search-bar.Cngs3uYZ.js → search-bar.a-jzP1UA.js} +3 -3
- package/dist/chunks/{search-bar.Cngs3uYZ.js.map → search-bar.a-jzP1UA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.ByCa4wiA.js → secondary-nav.UrmIAVGD.js} +2 -2
- package/dist/chunks/{secondary-nav.ByCa4wiA.js.map → secondary-nav.UrmIAVGD.js.map} +1 -1
- package/dist/chunks/{selection-card-group.9wJy7FC2.js → selection-card-group.B4xpnd-z.js} +3 -3
- package/dist/chunks/{selection-card-group.9wJy7FC2.js.map → selection-card-group.B4xpnd-z.js.map} +1 -1
- package/dist/chunks/{sidepanel.CTIjklfG.js → sidepanel.BuNmgmpj.js} +2 -2
- package/dist/chunks/{sidepanel.CTIjklfG.js.map → sidepanel.BuNmgmpj.js.map} +1 -1
- package/dist/chunks/step.BtNhPZAf.js +268 -0
- package/dist/chunks/step.BtNhPZAf.js.map +1 -0
- package/dist/chunks/{structured-list-item.DQzxNb_M.js → structured-list-item.BQbEDKhg.js} +3 -3
- package/dist/chunks/{structured-list-item.DQzxNb_M.js.map → structured-list-item.BQbEDKhg.js.map} +1 -1
- package/dist/chunks/summary-grid.types.CoSCUI1V.js +490 -0
- package/dist/chunks/summary-grid.types.CoSCUI1V.js.map +1 -0
- package/dist/chunks/tab.CAt51ksU.js +252 -0
- package/dist/chunks/tab.CAt51ksU.js.map +1 -0
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
- package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
- package/dist/chunks/{textarea.CV1HjB0x.js → textarea.DXSe9MHH.js} +83 -80
- package/dist/chunks/textarea.DXSe9MHH.js.map +1 -0
- package/dist/chunks/{timeline-item.DUp8MmgZ.js → timeline-item.BRHwCA1F.js} +11 -12
- package/dist/chunks/timeline-item.BRHwCA1F.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.D7dOPJSO.js +1653 -0
- package/dist/chunks/use-cached-selected-values.D7dOPJSO.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +45 -45
- 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/internal.js +8 -8
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +1 -0
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.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 +1 -1
- package/package.json +6 -6
- package/dist/assets/tabs.css +0 -1
- package/dist/chunks/action-bar.BAfqAQjP.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.D50ABuSV.js +0 -174
- package/dist/chunks/button-actions-with-menu.D50ABuSV.js.map +0 -1
- package/dist/chunks/button-actions.D1pXI1AJ.js.map +0 -1
- package/dist/chunks/calendar.CLpwW_-k.js +0 -1290
- package/dist/chunks/calendar.CLpwW_-k.js.map +0 -1
- package/dist/chunks/copy.DqckFHHS.js +0 -156
- package/dist/chunks/copy.DqckFHHS.js.map +0 -1
- package/dist/chunks/data-grid-template.DzIpssxc.js +0 -143
- package/dist/chunks/data-grid-template.DzIpssxc.js.map +0 -1
- package/dist/chunks/data-grid.DroQMKSc.js.map +0 -1
- package/dist/chunks/date-range-picker.C2x1_xoz.js +0 -1209
- package/dist/chunks/date-range-picker.C2x1_xoz.js.map +0 -1
- package/dist/chunks/date.CKXySBQv.js +0 -995
- package/dist/chunks/date.CKXySBQv.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.B05elQig.js.map +0 -1
- package/dist/chunks/file-uploader.C8DwUCMp.js.map +0 -1
- package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
- package/dist/chunks/header-with-views.De0oVJXS.js.map +0 -1
- package/dist/chunks/index.BDuTpjD8.js +0 -40
- package/dist/chunks/index.BDuTpjD8.js.map +0 -1
- package/dist/chunks/index.DD7TppDb.js +0 -10
- package/dist/chunks/index.DD7TppDb.js.map +0 -1
- package/dist/chunks/info-icon.CpGwbhZQ.js +0 -45
- package/dist/chunks/info-icon.CpGwbhZQ.js.map +0 -1
- package/dist/chunks/input-field-password.CJOf1GlS.js +0 -369
- package/dist/chunks/input-field-password.CJOf1GlS.js.map +0 -1
- package/dist/chunks/input-field.xUQT0LXI.js +0 -298
- package/dist/chunks/input-field.xUQT0LXI.js.map +0 -1
- package/dist/chunks/pagination.D6A7TX6J.js.map +0 -1
- package/dist/chunks/step.CpSPMvdW.js +0 -264
- package/dist/chunks/step.CpSPMvdW.js.map +0 -1
- package/dist/chunks/summary-grid.types.BpS1z1-W.js +0 -466
- package/dist/chunks/summary-grid.types.BpS1z1-W.js.map +0 -1
- package/dist/chunks/tabs.Cq1fdzVh.js +0 -266
- package/dist/chunks/tabs.Cq1fdzVh.js.map +0 -1
- package/dist/chunks/textarea.CV1HjB0x.js.map +0 -1
- package/dist/chunks/timeline-item.DUp8MmgZ.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CEwKqYIe.js +0 -1600
- package/dist/chunks/use-cached-selected-values.CEwKqYIe.js.map +0 -1
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as x, openBlock as s, mergeProps as F, createCommentVNode as v, createElementVNode as m, toDisplayString as f, defineComponent as la, createBlock as y, unref as t, Transition as li, withCtx as w, renderSlot as Ca, TransitionGroup as si, ref as I, onUnmounted as ci, onMounted as Oa, computed as g, watch as ha, normalizeClass as q, createVNode as O, resolveDynamicComponent as di, withDirectives as Ha, createTextVNode as _, reactive as ba, toRef as xa, withKeys as $a, withModifiers as aa, Fragment as _a, renderList as ri, vShow as mi, nextTick as ui } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
4
|
import { W as qa } from "./warning-filled.AiUbXzzg.js";
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
5
|
+
import { B as vi } from "./alert.DvleqX0i.js";
|
|
6
|
+
import { B as R, d as fi } from "./typography.DN5eC5ch.js";
|
|
7
7
|
import { u as sa } from "./i18n.B6g5VX0q.js";
|
|
8
|
-
import { g as
|
|
8
|
+
import { g as S } from "./generate-uid.NJ8tVoha.js";
|
|
9
9
|
import { i as Ba } from "./index.CWuzEfiV.js";
|
|
10
|
-
import { B as
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
13
|
-
import { R as
|
|
10
|
+
import { B as xi } from "./bin.CiGG2V4b.js";
|
|
11
|
+
import { C as gi } from "./checkmark-circle-fill._6-d40ru.js";
|
|
12
|
+
import { C as hi } from "./cross.B92GxFTY.js";
|
|
13
|
+
import { R as bi } from "./refresh.BB4ouvz_.js";
|
|
14
14
|
import "./events.FNmSWp_P.js";
|
|
15
|
-
import { B as
|
|
15
|
+
import { B as wi } from "./tooltip.VYPUHERk.js";
|
|
16
16
|
import { B as ga } from "./button.AB0SOQMn.js";
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { F as
|
|
17
|
+
import { B as yi } from "./link.BBpxiclu.js";
|
|
18
|
+
import { B as ki } from "./loading-indicator.DEepb9Wl.js";
|
|
19
|
+
import { F as Ci, E as $i } from "./error-message.DHMHq9bR.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
21
|
let ja = 0;
|
|
22
|
-
const
|
|
22
|
+
const _i = {
|
|
23
23
|
beforeCreate() {
|
|
24
24
|
this.uuid = ja.toString(), ja += 1;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
function
|
|
28
|
-
return s(),
|
|
26
|
+
}, ji = { key: 0 };
|
|
27
|
+
function zi(a, i, o, p, n, d) {
|
|
28
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
29
29
|
class: "ui-assets-icons-16",
|
|
30
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
31
|
width: "16",
|
|
32
32
|
height: "16",
|
|
33
33
|
fill: "none"
|
|
34
34
|
}), [
|
|
35
|
-
a.$attrs["svg-title"] ? (s(),
|
|
36
|
-
i[0] || (i[0] =
|
|
35
|
+
a.$attrs["svg-title"] ? (s(), x("title", ji, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
36
|
+
i[0] || (i[0] = m("path", {
|
|
37
37
|
fill: "#001222",
|
|
38
38
|
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"
|
|
39
39
|
}, null, -1)),
|
|
40
|
-
i[1] || (i[1] =
|
|
40
|
+
i[1] || (i[1] = m("path", {
|
|
41
41
|
fill: "#001222",
|
|
42
42
|
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"
|
|
43
43
|
}, null, -1))
|
|
44
44
|
], 16);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const Ri = /* @__PURE__ */ L(_i, [["render", zi]]), Ei = /* @__PURE__ */ la({
|
|
47
47
|
__name: "file-uploader-file-card-animation",
|
|
48
48
|
props: {
|
|
49
49
|
name: {},
|
|
50
50
|
showFileIcon: { type: Boolean }
|
|
51
51
|
},
|
|
52
52
|
setup(a) {
|
|
53
|
-
return (i,
|
|
53
|
+
return (i, o) => t(Ba) ? (s(), y(li, {
|
|
54
54
|
key: 0,
|
|
55
55
|
name: i.name,
|
|
56
56
|
mode: "out-in",
|
|
57
57
|
css: i.showFileIcon
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
59
|
+
default: w(() => [
|
|
60
60
|
Ca(i.$slots, "default")
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
63
|
-
}, 8, ["name", "css"])) : (s(),
|
|
63
|
+
}, 8, ["name", "css"])) : (s(), y(si, {
|
|
64
64
|
key: 1,
|
|
65
65
|
name: i.name,
|
|
66
66
|
css: i.showFileIcon
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
68
|
+
default: w(() => [
|
|
69
69
|
Ca(i.$slots, "default")
|
|
70
70
|
]),
|
|
71
71
|
_: 3
|
|
72
72
|
}, 8, ["name", "css"]));
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
function
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
function
|
|
79
|
-
|
|
75
|
+
function Ii(a, i) {
|
|
76
|
+
const o = I(!1);
|
|
77
|
+
let p;
|
|
78
|
+
function n() {
|
|
79
|
+
p && p.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
82
|
-
|
|
81
|
+
return ci(() => {
|
|
82
|
+
n();
|
|
83
83
|
}), Oa(() => {
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
|
|
84
|
+
n(), p = new IntersectionObserver(
|
|
85
|
+
(d) => {
|
|
86
|
+
o.value = !d[0].isIntersecting;
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
root: i.value,
|
|
90
90
|
threshold: 1
|
|
91
91
|
}
|
|
92
|
-
),
|
|
93
|
-
}),
|
|
92
|
+
), p.observe(a.value.$el);
|
|
93
|
+
}), o;
|
|
94
94
|
}
|
|
95
95
|
const za = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
96
|
function Za(a, i) {
|
|
97
|
-
const
|
|
97
|
+
const o = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), za.length - 1));
|
|
98
98
|
return Intl.NumberFormat(a, {
|
|
99
99
|
style: "unit",
|
|
100
|
-
unit: za[
|
|
101
|
-
}).format(i / 1024 **
|
|
100
|
+
unit: za[o]
|
|
101
|
+
}).format(i / 1024 ** o);
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
const
|
|
103
|
+
var V = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(V || {}), E = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(E || {}), pa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(pa || {}), h = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(h || {});
|
|
104
|
+
const Li = [
|
|
105
105
|
"application/msword",
|
|
106
106
|
// .doc
|
|
107
107
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
108
108
|
// .docx
|
|
109
109
|
"application/rtf"
|
|
110
110
|
// .rtf
|
|
111
|
-
],
|
|
111
|
+
], Ti = [
|
|
112
112
|
"application/vnd.ms-excel",
|
|
113
113
|
// .xls
|
|
114
114
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -121,14 +121,14 @@ const Ii = [
|
|
|
121
121
|
// .numbers
|
|
122
122
|
"text/csv"
|
|
123
123
|
// .csv
|
|
124
|
-
],
|
|
124
|
+
], Mi = [
|
|
125
125
|
"application/vnd.ms-powerpoint",
|
|
126
126
|
// .ppt
|
|
127
127
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
128
128
|
// .pptx
|
|
129
129
|
"application/vnd.oasis.opendocument.presentation"
|
|
130
130
|
// .odp
|
|
131
|
-
],
|
|
131
|
+
], Si = [
|
|
132
132
|
"application/zip",
|
|
133
133
|
// .zip
|
|
134
134
|
"application/vnd.rar",
|
|
@@ -150,317 +150,317 @@ const Ii = [
|
|
|
150
150
|
"application/vnd.ms-cab-compressed"
|
|
151
151
|
// .cab
|
|
152
152
|
];
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Vi(a) {
|
|
154
|
+
return Ti.includes(a.type) ? h.TABLE : a.type.startsWith("text/") || Li.includes(a.type) ? h.TEXT : a.type.startsWith("image/") ? h.IMAGE : a.type.startsWith("video/") ? h.VIDEO : a.type.startsWith("audio/") ? h.AUDIO : a.type === "application/pdf" ? h.PDF : Mi.includes(a.type) ? h.SLIDES : Si.includes(a.type) ? h.COMPRESSED : h.GENERIC;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Fi(a, i) {
|
|
157
157
|
if (!i)
|
|
158
158
|
return !0;
|
|
159
|
-
const
|
|
160
|
-
for (const
|
|
161
|
-
if (
|
|
162
|
-
if (a.name.endsWith(
|
|
159
|
+
const o = i.split(",").map((p) => p.trim());
|
|
160
|
+
for (const p of o)
|
|
161
|
+
if (p.startsWith(".")) {
|
|
162
|
+
if (a.name.endsWith(p))
|
|
163
163
|
return !0;
|
|
164
|
-
} else if (
|
|
165
|
-
const
|
|
166
|
-
if (a.type.startsWith(
|
|
164
|
+
} else if (p.endsWith("/*")) {
|
|
165
|
+
const n = p.split("/")[0];
|
|
166
|
+
if (a.type.startsWith(n))
|
|
167
167
|
return !0;
|
|
168
|
-
} else if (a.type ===
|
|
168
|
+
} else if (a.type === p)
|
|
169
169
|
return !0;
|
|
170
170
|
return !1;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
const
|
|
174
|
-
if (!
|
|
175
|
-
|
|
172
|
+
function Di(a, i, o) {
|
|
173
|
+
const p = new FileReader(), n = a;
|
|
174
|
+
if (!Fi(n.data, i)) {
|
|
175
|
+
n.state = V.ERROR, n.errors.push(E.ERROR_TYPE);
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
|
|
179
|
-
if (
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
(
|
|
183
|
-
},
|
|
184
|
-
URL.revokeObjectURL(
|
|
185
|
-
},
|
|
178
|
+
p.onload = (d) => {
|
|
179
|
+
if (o && n.type === h.IMAGE) {
|
|
180
|
+
const l = new Blob([d.target.result], { type: n.data.type }), u = URL.createObjectURL(l), b = new Image();
|
|
181
|
+
b.onload = function() {
|
|
182
|
+
(b.width > o.width || b.height > o.height) && (n.state = V.ERROR, n.errors.push(E.ERROR_DIMENSIONS)), URL.revokeObjectURL(u);
|
|
183
|
+
}, b.onerror = function() {
|
|
184
|
+
URL.revokeObjectURL(u);
|
|
185
|
+
}, b.src = u;
|
|
186
186
|
}
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
},
|
|
187
|
+
}, p.onprogress = (d) => {
|
|
188
|
+
d.lengthComputable && (n.progress = d.loaded / d.total * 100);
|
|
189
|
+
}, p.onloadend = () => {
|
|
190
|
+
n.state !== V.ERROR && (n.state = V.SUCCESS), n.progress = null;
|
|
191
|
+
}, p.onerror = () => {
|
|
192
|
+
n.state = V.ERROR, n.errors.push(E.ERROR_LOAD), n.progress = null;
|
|
193
|
+
}, p.readAsArrayBuffer(n.data);
|
|
194
194
|
}
|
|
195
195
|
let Ra = 0;
|
|
196
|
-
const
|
|
196
|
+
const Oi = {
|
|
197
197
|
beforeCreate() {
|
|
198
198
|
this.uuid = Ra.toString(), Ra += 1;
|
|
199
199
|
}
|
|
200
|
-
},
|
|
201
|
-
function
|
|
202
|
-
return s(),
|
|
200
|
+
}, Hi = { key: 0 }, qi = ["clip-path"], Bi = ["id"];
|
|
201
|
+
function Zi(a, i, o, p, n, d) {
|
|
202
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
203
203
|
class: "ui-assets-icons-16",
|
|
204
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
205
|
width: "16",
|
|
206
206
|
height: "16",
|
|
207
207
|
fill: "none"
|
|
208
208
|
}), [
|
|
209
|
-
a.$attrs["svg-title"] ? (s(),
|
|
210
|
-
|
|
209
|
+
a.$attrs["svg-title"] ? (s(), x("title", Hi, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
210
|
+
m("g", {
|
|
211
211
|
"clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
|
|
212
212
|
}, i[0] || (i[0] = [
|
|
213
|
-
|
|
213
|
+
m("path", {
|
|
214
214
|
fill: "#001222",
|
|
215
215
|
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"
|
|
216
216
|
}, null, -1)
|
|
217
|
-
]), 8,
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
]), 8, qi),
|
|
218
|
+
m("defs", null, [
|
|
219
|
+
m("clipPath", {
|
|
220
220
|
id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
|
|
221
221
|
}, i[1] || (i[1] = [
|
|
222
|
-
|
|
222
|
+
m("rect", {
|
|
223
223
|
width: "16",
|
|
224
224
|
height: "16",
|
|
225
225
|
fill: "#fff"
|
|
226
226
|
}, null, -1)
|
|
227
|
-
]), 8,
|
|
227
|
+
]), 8, Bi)
|
|
228
228
|
])
|
|
229
229
|
], 16);
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const Ai = /* @__PURE__ */ L(Oi, [["render", Zi]]);
|
|
232
232
|
let Ea = 0;
|
|
233
|
-
const
|
|
233
|
+
const Ui = {
|
|
234
234
|
beforeCreate() {
|
|
235
235
|
this.uuid = Ea.toString(), Ea += 1;
|
|
236
236
|
}
|
|
237
|
-
},
|
|
238
|
-
function
|
|
239
|
-
return s(),
|
|
237
|
+
}, Ni = { key: 0 };
|
|
238
|
+
function Pi(a, i, o, p, n, d) {
|
|
239
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
240
240
|
class: "ui-assets-icons-16",
|
|
241
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
242
242
|
width: "16",
|
|
243
243
|
height: "16",
|
|
244
244
|
fill: "none"
|
|
245
245
|
}), [
|
|
246
|
-
a.$attrs["svg-title"] ? (s(),
|
|
247
|
-
i[0] || (i[0] =
|
|
246
|
+
a.$attrs["svg-title"] ? (s(), x("title", Ni, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
247
|
+
i[0] || (i[0] = m("path", {
|
|
248
248
|
fill: "#001222",
|
|
249
249
|
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"
|
|
250
250
|
}, null, -1))
|
|
251
251
|
], 16);
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const Gi = /* @__PURE__ */ L(Ui, [["render", Pi]]);
|
|
254
254
|
let Ia = 0;
|
|
255
|
-
const
|
|
255
|
+
const Wi = {
|
|
256
256
|
beforeCreate() {
|
|
257
257
|
this.uuid = Ia.toString(), Ia += 1;
|
|
258
258
|
}
|
|
259
|
-
},
|
|
260
|
-
function
|
|
261
|
-
return s(),
|
|
259
|
+
}, Yi = { key: 0 };
|
|
260
|
+
function Xi(a, i, o, p, n, d) {
|
|
261
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
262
262
|
class: "ui-assets-icons-16",
|
|
263
263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
264
|
width: "16",
|
|
265
265
|
height: "16",
|
|
266
266
|
fill: "none"
|
|
267
267
|
}), [
|
|
268
|
-
a.$attrs["svg-title"] ? (s(),
|
|
269
|
-
i[0] || (i[0] =
|
|
268
|
+
a.$attrs["svg-title"] ? (s(), x("title", Yi, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
269
|
+
i[0] || (i[0] = m("path", {
|
|
270
270
|
fill: "#001222",
|
|
271
271
|
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"
|
|
272
272
|
}, null, -1))
|
|
273
273
|
], 16);
|
|
274
274
|
}
|
|
275
|
-
const
|
|
275
|
+
const Ji = /* @__PURE__ */ L(Wi, [["render", Xi]]);
|
|
276
276
|
let La = 0;
|
|
277
|
-
const
|
|
277
|
+
const Ki = {
|
|
278
278
|
beforeCreate() {
|
|
279
279
|
this.uuid = La.toString(), La += 1;
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
function
|
|
283
|
-
return s(),
|
|
281
|
+
}, Qi = { key: 0 };
|
|
282
|
+
function ae(a, i, o, p, n, d) {
|
|
283
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
284
284
|
class: "ui-assets-icons-16",
|
|
285
285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
286
286
|
width: "16",
|
|
287
287
|
height: "16",
|
|
288
288
|
fill: "none"
|
|
289
289
|
}), [
|
|
290
|
-
a.$attrs["svg-title"] ? (s(),
|
|
291
|
-
i[0] || (i[0] =
|
|
290
|
+
a.$attrs["svg-title"] ? (s(), x("title", Qi, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
291
|
+
i[0] || (i[0] = m("path", {
|
|
292
292
|
fill: "#001222",
|
|
293
293
|
d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
|
|
294
294
|
}, null, -1)),
|
|
295
|
-
i[1] || (i[1] =
|
|
295
|
+
i[1] || (i[1] = m("path", {
|
|
296
296
|
fill: "#001222",
|
|
297
297
|
d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z"
|
|
298
298
|
}, null, -1)),
|
|
299
|
-
i[2] || (i[2] =
|
|
299
|
+
i[2] || (i[2] = m("path", {
|
|
300
300
|
fill: "#001222",
|
|
301
301
|
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"
|
|
302
302
|
}, null, -1))
|
|
303
303
|
], 16);
|
|
304
304
|
}
|
|
305
|
-
const
|
|
305
|
+
const ie = /* @__PURE__ */ L(Ki, [["render", ae]]);
|
|
306
306
|
let Ta = 0;
|
|
307
|
-
const
|
|
307
|
+
const ee = {
|
|
308
308
|
beforeCreate() {
|
|
309
309
|
this.uuid = Ta.toString(), Ta += 1;
|
|
310
310
|
}
|
|
311
|
-
},
|
|
312
|
-
function
|
|
313
|
-
return s(),
|
|
311
|
+
}, te = { key: 0 };
|
|
312
|
+
function ne(a, i, o, p, n, d) {
|
|
313
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
314
314
|
class: "ui-assets-icons-16",
|
|
315
315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
316
316
|
width: "16",
|
|
317
317
|
height: "16",
|
|
318
318
|
fill: "none"
|
|
319
319
|
}), [
|
|
320
|
-
a.$attrs["svg-title"] ? (s(),
|
|
321
|
-
i[0] || (i[0] =
|
|
320
|
+
a.$attrs["svg-title"] ? (s(), x("title", te, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
321
|
+
i[0] || (i[0] = m("path", {
|
|
322
322
|
fill: "#001222",
|
|
323
323
|
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"
|
|
324
324
|
}, null, -1))
|
|
325
325
|
], 16);
|
|
326
326
|
}
|
|
327
|
-
const
|
|
327
|
+
const oe = /* @__PURE__ */ L(ee, [["render", ne]]);
|
|
328
328
|
let Ma = 0;
|
|
329
|
-
const
|
|
329
|
+
const pe = {
|
|
330
330
|
beforeCreate() {
|
|
331
331
|
this.uuid = Ma.toString(), Ma += 1;
|
|
332
332
|
}
|
|
333
|
-
},
|
|
334
|
-
function
|
|
335
|
-
return s(),
|
|
333
|
+
}, le = { key: 0 };
|
|
334
|
+
function se(a, i, o, p, n, d) {
|
|
335
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
336
336
|
class: "ui-assets-icons-16",
|
|
337
337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
338
338
|
width: "16",
|
|
339
339
|
height: "16",
|
|
340
340
|
fill: "none"
|
|
341
341
|
}), [
|
|
342
|
-
a.$attrs["svg-title"] ? (s(),
|
|
343
|
-
i[0] || (i[0] =
|
|
342
|
+
a.$attrs["svg-title"] ? (s(), x("title", le, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
343
|
+
i[0] || (i[0] = m("path", {
|
|
344
344
|
fill: "#001222",
|
|
345
345
|
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"
|
|
346
346
|
}, null, -1)),
|
|
347
|
-
i[1] || (i[1] =
|
|
347
|
+
i[1] || (i[1] = m("path", {
|
|
348
348
|
fill: "#001222",
|
|
349
349
|
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"
|
|
350
350
|
}, null, -1))
|
|
351
351
|
], 16);
|
|
352
352
|
}
|
|
353
|
-
const
|
|
353
|
+
const ce = /* @__PURE__ */ L(pe, [["render", se]]);
|
|
354
354
|
let Sa = 0;
|
|
355
|
-
const
|
|
355
|
+
const de = {
|
|
356
356
|
beforeCreate() {
|
|
357
357
|
this.uuid = Sa.toString(), Sa += 1;
|
|
358
358
|
}
|
|
359
|
-
},
|
|
360
|
-
function
|
|
361
|
-
return s(),
|
|
359
|
+
}, re = { key: 0 }, me = ["clip-path"], ue = ["id"];
|
|
360
|
+
function ve(a, i, o, p, n, d) {
|
|
361
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
362
362
|
class: "ui-assets-icons-16",
|
|
363
363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
364
364
|
width: "16",
|
|
365
365
|
height: "16",
|
|
366
366
|
fill: "none"
|
|
367
367
|
}), [
|
|
368
|
-
a.$attrs["svg-title"] ? (s(),
|
|
369
|
-
|
|
368
|
+
a.$attrs["svg-title"] ? (s(), x("title", re, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
369
|
+
m("g", {
|
|
370
370
|
fill: "#001222",
|
|
371
371
|
"clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
|
|
372
372
|
}, i[0] || (i[0] = [
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
]), 8,
|
|
376
|
-
|
|
377
|
-
|
|
373
|
+
m("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
|
|
374
|
+
m("path", { 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" }, null, -1)
|
|
375
|
+
]), 8, me),
|
|
376
|
+
m("defs", null, [
|
|
377
|
+
m("clipPath", {
|
|
378
378
|
id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
|
|
379
379
|
}, i[1] || (i[1] = [
|
|
380
|
-
|
|
380
|
+
m("rect", {
|
|
381
381
|
width: "16",
|
|
382
382
|
height: "16",
|
|
383
383
|
fill: "#fff"
|
|
384
384
|
}, null, -1)
|
|
385
|
-
]), 8,
|
|
385
|
+
]), 8, ue)
|
|
386
386
|
])
|
|
387
387
|
], 16);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
389
|
+
const fe = /* @__PURE__ */ L(de, [["render", ve]]);
|
|
390
390
|
let Va = 0;
|
|
391
|
-
const
|
|
391
|
+
const xe = {
|
|
392
392
|
beforeCreate() {
|
|
393
393
|
this.uuid = Va.toString(), Va += 1;
|
|
394
394
|
}
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
-
return s(),
|
|
395
|
+
}, ge = { key: 0 };
|
|
396
|
+
function he(a, i, o, p, n, d) {
|
|
397
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
398
398
|
class: "ui-assets-icons-16",
|
|
399
399
|
xmlns: "http://www.w3.org/2000/svg",
|
|
400
400
|
width: "16",
|
|
401
401
|
height: "16",
|
|
402
402
|
fill: "none"
|
|
403
403
|
}), [
|
|
404
|
-
a.$attrs["svg-title"] ? (s(),
|
|
405
|
-
i[0] || (i[0] =
|
|
404
|
+
a.$attrs["svg-title"] ? (s(), x("title", ge, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
405
|
+
i[0] || (i[0] = m("path", {
|
|
406
406
|
fill: "#001222",
|
|
407
407
|
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"
|
|
408
408
|
}, null, -1)),
|
|
409
|
-
i[1] || (i[1] =
|
|
409
|
+
i[1] || (i[1] = m("path", {
|
|
410
410
|
fill: "#001222",
|
|
411
411
|
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"
|
|
412
412
|
}, null, -1)),
|
|
413
|
-
i[2] || (i[2] =
|
|
413
|
+
i[2] || (i[2] = m("path", {
|
|
414
414
|
fill: "#001222",
|
|
415
415
|
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"
|
|
416
416
|
}, null, -1))
|
|
417
417
|
], 16);
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const be = /* @__PURE__ */ L(xe, [["render", he]]);
|
|
420
420
|
let Fa = 0;
|
|
421
|
-
const
|
|
421
|
+
const we = {
|
|
422
422
|
beforeCreate() {
|
|
423
423
|
this.uuid = Fa.toString(), Fa += 1;
|
|
424
424
|
}
|
|
425
|
-
},
|
|
426
|
-
function
|
|
427
|
-
return s(),
|
|
425
|
+
}, ye = { key: 0 };
|
|
426
|
+
function ke(a, i, o, p, n, d) {
|
|
427
|
+
return s(), x("svg", F({ role: "img" }, a.$attrs, {
|
|
428
428
|
class: "ui-assets-icons-16",
|
|
429
429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
430
430
|
width: "16",
|
|
431
431
|
height: "16",
|
|
432
432
|
fill: "none"
|
|
433
433
|
}), [
|
|
434
|
-
a.$attrs["svg-title"] ? (s(),
|
|
435
|
-
i[0] || (i[0] =
|
|
434
|
+
a.$attrs["svg-title"] ? (s(), x("title", ye, f(a.$attrs["svg-title"]), 1)) : v("", !0),
|
|
435
|
+
i[0] || (i[0] = m("path", {
|
|
436
436
|
fill: "#001222",
|
|
437
437
|
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"
|
|
438
438
|
}, null, -1))
|
|
439
439
|
], 16);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
[
|
|
443
|
-
[
|
|
444
|
-
[
|
|
445
|
-
[
|
|
446
|
-
[
|
|
447
|
-
[
|
|
448
|
-
[
|
|
449
|
-
[
|
|
450
|
-
[
|
|
441
|
+
const Ce = /* @__PURE__ */ L(we, [["render", ke]]), $e = {
|
|
442
|
+
[h.AUDIO]: be,
|
|
443
|
+
[h.COMPRESSED]: oe,
|
|
444
|
+
[h.GENERIC]: Ai,
|
|
445
|
+
[h.IMAGE]: ce,
|
|
446
|
+
[h.PDF]: Ji,
|
|
447
|
+
[h.SLIDES]: Gi,
|
|
448
|
+
[h.TABLE]: Ce,
|
|
449
|
+
[h.TEXT]: ie,
|
|
450
|
+
[h.VIDEO]: fe
|
|
451
451
|
};
|
|
452
|
-
function $e(a) {
|
|
453
|
-
return Ce[a.type];
|
|
454
|
-
}
|
|
455
452
|
function _e(a) {
|
|
453
|
+
return $e[a.type];
|
|
454
|
+
}
|
|
455
|
+
function je(a) {
|
|
456
456
|
switch (a.type) {
|
|
457
|
-
case
|
|
458
|
-
case
|
|
457
|
+
case h.COMPRESSED:
|
|
458
|
+
case h.GENERIC:
|
|
459
459
|
return "grey";
|
|
460
|
-
case
|
|
461
|
-
case
|
|
460
|
+
case h.PDF:
|
|
461
|
+
case h.SLIDES:
|
|
462
462
|
return "orange";
|
|
463
|
-
case
|
|
463
|
+
case h.TEXT:
|
|
464
464
|
return "blue";
|
|
465
465
|
default:
|
|
466
466
|
return "green";
|
|
@@ -485,202 +485,202 @@ const Aa = {
|
|
|
485
485
|
remove: "Remover",
|
|
486
486
|
retry: "Tentar novamente"
|
|
487
487
|
}
|
|
488
|
-
},
|
|
488
|
+
}, ze = { class: "b-file-uploader-file-card__details" }, Re = { class: "b-file-uploader-file-card__info" }, Ee = ["id"], Ie = { class: "b-file-uploader-file-card__actions" }, Le = {
|
|
489
489
|
name: "file-uploader-file-card",
|
|
490
490
|
i18n: { messages: Aa }
|
|
491
|
-
},
|
|
492
|
-
...
|
|
491
|
+
}, Te = /* @__PURE__ */ la({
|
|
492
|
+
...Le,
|
|
493
493
|
props: {
|
|
494
494
|
file: {},
|
|
495
495
|
supportedFileTypes: { default: null }
|
|
496
496
|
},
|
|
497
497
|
emits: ["cancel", "remove", "retry"],
|
|
498
|
-
setup(a, { expose: i, emit:
|
|
499
|
-
const
|
|
500
|
-
"b-file-uploader-file-card--error":
|
|
501
|
-
})),
|
|
502
|
-
[`b-file-uploader-file-card__icon--${
|
|
503
|
-
"b-file-uploader-file-card__icon--error":
|
|
504
|
-
})),
|
|
498
|
+
setup(a, { expose: i, emit: o }) {
|
|
499
|
+
const n = a, d = o, { t: l, locale: u } = sa({ messages: Aa }), b = I(null), r = I(null), z = I(null), B = S("file-errors-section"), Z = S("cancel-file-button"), P = S("remove-file-button"), k = S("retry-file-button"), H = I(n.file.state === V.SUCCESS), D = g(() => URL.createObjectURL(n.file.data)), A = g(() => n.file.state === V.ERROR), ea = g(() => n.file.errors.includes(E.ERROR_LOAD)), ta = g(() => n.file.errors.includes(E.ERROR_SIZE)), na = g(() => n.file.errors.includes(E.ERROR_DIMENSIONS)), Y = g(() => n.file.errors.includes(E.ERROR_TYPE)), U = g(() => n.file.state === V.LOADING), X = g(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), ca = g(() => Za(u.value, n.file.data.size)), J = I(), G = I(), da = Ii(J, G), K = g(() => ({
|
|
500
|
+
"b-file-uploader-file-card--error": A.value
|
|
501
|
+
})), ra = g(() => ({
|
|
502
|
+
[`b-file-uploader-file-card__icon--${je(n.file)}`]: H.value,
|
|
503
|
+
"b-file-uploader-file-card__icon--error": A.value
|
|
504
|
+
})), oa = g(() => U.value ? ki : A.value ? qa : H.value ? _e(n.file) : gi);
|
|
505
505
|
ha(
|
|
506
|
-
() =>
|
|
507
|
-
(
|
|
508
|
-
if (
|
|
509
|
-
const
|
|
510
|
-
|
|
506
|
+
() => n.file.state,
|
|
507
|
+
(j) => {
|
|
508
|
+
if (j === V.SUCCESS && !H.value) {
|
|
509
|
+
const T = setTimeout(() => {
|
|
510
|
+
H.value = !0, clearTimeout(T);
|
|
511
511
|
}, 1200);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
);
|
|
515
|
-
function
|
|
516
|
-
if (
|
|
517
|
-
|
|
515
|
+
function ma() {
|
|
516
|
+
if (z.value) {
|
|
517
|
+
z.value.$el.focus();
|
|
518
518
|
return;
|
|
519
519
|
}
|
|
520
|
-
if (
|
|
521
|
-
|
|
520
|
+
if (b.value) {
|
|
521
|
+
b.value.$el.focus();
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
524
|
-
if (
|
|
525
|
-
|
|
524
|
+
if (r.value) {
|
|
525
|
+
r.value.$el.focus();
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
return i({
|
|
530
|
-
focus:
|
|
531
|
-
}), (
|
|
532
|
-
class: q(["b-file-uploader-file-card",
|
|
530
|
+
focus: ma
|
|
531
|
+
}), (j, T) => (s(), x("div", {
|
|
532
|
+
class: q(["b-file-uploader-file-card", K.value])
|
|
533
533
|
}, [
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
O(t(
|
|
534
|
+
m("div", ze, [
|
|
535
|
+
m("div", Re, [
|
|
536
|
+
O(t(Ei), {
|
|
537
537
|
name: t(Ba) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
538
|
-
"show-file-icon":
|
|
538
|
+
"show-file-icon": H.value
|
|
539
539
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
(s(),
|
|
542
|
-
key: JSON.stringify(
|
|
540
|
+
default: w(() => [
|
|
541
|
+
(s(), y(di(oa.value), {
|
|
542
|
+
key: JSON.stringify(oa.value),
|
|
543
543
|
small: "",
|
|
544
544
|
"aria-hidden": "true",
|
|
545
|
-
class: q(["b-file-uploader-file-card__icon",
|
|
545
|
+
class: q(["b-file-uploader-file-card__icon", ra.value]),
|
|
546
546
|
"data-testid": "file-uploader-item-icon"
|
|
547
547
|
}, null, 8, ["class"]))
|
|
548
548
|
]),
|
|
549
549
|
_: 1
|
|
550
550
|
}, 8, ["name", "show-file-icon"]),
|
|
551
|
-
|
|
551
|
+
m("div", {
|
|
552
552
|
ref_key: "fileNameContainerRef",
|
|
553
|
-
ref:
|
|
553
|
+
ref: G,
|
|
554
554
|
class: "b-file-uploader-file-card__file-name"
|
|
555
555
|
}, [
|
|
556
|
-
O(t(
|
|
556
|
+
O(t(yi), {
|
|
557
557
|
"aria-hidden": "true",
|
|
558
558
|
tabindex: "-1",
|
|
559
|
-
download:
|
|
560
|
-
to:
|
|
559
|
+
download: j.file.data.name,
|
|
560
|
+
to: D.value,
|
|
561
561
|
"disable-typography": "",
|
|
562
562
|
"is-not-routing": "",
|
|
563
563
|
variant: "quiet"
|
|
564
564
|
}, {
|
|
565
|
-
default:
|
|
566
|
-
Ha((s(),
|
|
565
|
+
default: w(() => [
|
|
566
|
+
Ha((s(), y(t(R), {
|
|
567
567
|
ref_key: "fileNameRef",
|
|
568
|
-
ref:
|
|
568
|
+
ref: J,
|
|
569
569
|
stronger: "",
|
|
570
570
|
el: "span"
|
|
571
571
|
}, {
|
|
572
|
-
default:
|
|
573
|
-
|
|
572
|
+
default: w(() => [
|
|
573
|
+
_(f(j.file.data.name), 1)
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
576
|
})), [
|
|
577
|
-
[t(
|
|
577
|
+
[t(wi), t(da) ? j.file.data.name : null]
|
|
578
578
|
])
|
|
579
579
|
]),
|
|
580
580
|
_: 1
|
|
581
581
|
}, 8, ["download", "to"])
|
|
582
582
|
], 512),
|
|
583
|
-
|
|
583
|
+
j.file.progress ? (s(), y(t(R), {
|
|
584
584
|
key: 0,
|
|
585
585
|
el: "span"
|
|
586
586
|
}, {
|
|
587
|
-
default:
|
|
588
|
-
|
|
587
|
+
default: w(() => [
|
|
588
|
+
_(f(X.value), 1)
|
|
589
589
|
]),
|
|
590
590
|
_: 1
|
|
591
|
-
})) :
|
|
591
|
+
})) : j.file.data.size ? (s(), y(t(R), {
|
|
592
592
|
key: 1,
|
|
593
593
|
class: "b-file-uploader-file-card__file-size",
|
|
594
594
|
"aria-hidden": "true",
|
|
595
595
|
el: "span"
|
|
596
596
|
}, {
|
|
597
|
-
default:
|
|
598
|
-
|
|
597
|
+
default: w(() => [
|
|
598
|
+
_(f(ca.value), 1)
|
|
599
599
|
]),
|
|
600
600
|
_: 1
|
|
601
|
-
})) :
|
|
601
|
+
})) : v("", !0)
|
|
602
602
|
]),
|
|
603
|
-
|
|
603
|
+
ta.value || na.value || Y.value && j.supportedFileTypes ? (s(), x("div", {
|
|
604
604
|
key: 0,
|
|
605
|
-
id: t(
|
|
605
|
+
id: t(B),
|
|
606
606
|
role: "alert"
|
|
607
607
|
}, [
|
|
608
|
-
|
|
608
|
+
ta.value ? (s(), y(t(R), {
|
|
609
609
|
key: 0,
|
|
610
610
|
class: "b-file-uploader-file-card__error-message"
|
|
611
611
|
}, {
|
|
612
|
-
default:
|
|
613
|
-
|
|
612
|
+
default: w(() => [
|
|
613
|
+
_(f(t(l)("fileExceedsSizeLimit")), 1)
|
|
614
614
|
]),
|
|
615
615
|
_: 1
|
|
616
|
-
})) :
|
|
617
|
-
|
|
616
|
+
})) : v("", !0),
|
|
617
|
+
na.value ? (s(), y(t(R), {
|
|
618
618
|
key: 1,
|
|
619
619
|
class: "b-file-uploader-file-card__error-message"
|
|
620
620
|
}, {
|
|
621
|
-
default:
|
|
622
|
-
|
|
621
|
+
default: w(() => [
|
|
622
|
+
_(f(t(l)("imageDimensionsExceedLimits")), 1)
|
|
623
623
|
]),
|
|
624
624
|
_: 1
|
|
625
|
-
})) :
|
|
626
|
-
|
|
625
|
+
})) : v("", !0),
|
|
626
|
+
Y.value && j.supportedFileTypes ? (s(), y(t(R), {
|
|
627
627
|
key: 2,
|
|
628
628
|
class: "b-file-uploader-file-card__error-message"
|
|
629
629
|
}, {
|
|
630
|
-
default:
|
|
631
|
-
|
|
630
|
+
default: w(() => [
|
|
631
|
+
_(f(t(l)("fileTypeMustBe", { list: j.supportedFileTypes })), 1)
|
|
632
632
|
]),
|
|
633
633
|
_: 1
|
|
634
|
-
})) :
|
|
635
|
-
], 8,
|
|
634
|
+
})) : v("", !0)
|
|
635
|
+
], 8, Ee)) : v("", !0)
|
|
636
636
|
]),
|
|
637
|
-
|
|
638
|
-
|
|
637
|
+
m("div", Ie, [
|
|
638
|
+
ea.value ? (s(), y(t(ga), {
|
|
639
639
|
key: 0,
|
|
640
640
|
ref_key: "retryFileButtonRef",
|
|
641
|
-
ref:
|
|
642
|
-
"aria-labelledby": `${t(
|
|
641
|
+
ref: z,
|
|
642
|
+
"aria-labelledby": `${t(B)} ${t(k)}`,
|
|
643
643
|
variant: "tertiary",
|
|
644
|
-
onClick:
|
|
644
|
+
onClick: T[0] || (T[0] = (Q) => d("retry"))
|
|
645
645
|
}, {
|
|
646
|
-
iconLeft:
|
|
647
|
-
O(t(
|
|
648
|
-
id: t(
|
|
649
|
-
"svg-title": `${t(
|
|
646
|
+
iconLeft: w(() => [
|
|
647
|
+
O(t(bi), {
|
|
648
|
+
id: t(k),
|
|
649
|
+
"svg-title": `${t(l)("retry")} - ${j.file.data.name} `
|
|
650
650
|
}, null, 8, ["id", "svg-title"])
|
|
651
651
|
]),
|
|
652
|
-
default:
|
|
653
|
-
|
|
652
|
+
default: w(() => [
|
|
653
|
+
_(" " + f(t(l)("retry")), 1)
|
|
654
654
|
]),
|
|
655
655
|
_: 1
|
|
656
|
-
}, 8, ["aria-labelledby"])) :
|
|
657
|
-
|
|
656
|
+
}, 8, ["aria-labelledby"])) : v("", !0),
|
|
657
|
+
U.value || A.value ? (s(), y(t(ga), {
|
|
658
658
|
key: 1,
|
|
659
659
|
ref_key: "cancelFileButtonRef",
|
|
660
|
-
ref:
|
|
661
|
-
"aria-labelledby": `${t(
|
|
660
|
+
ref: r,
|
|
661
|
+
"aria-labelledby": `${t(B)} ${t(Z)}`,
|
|
662
662
|
variant: "tertiary",
|
|
663
|
-
onClick:
|
|
663
|
+
onClick: T[1] || (T[1] = (Q) => d("cancel"))
|
|
664
664
|
}, {
|
|
665
|
-
iconLeft:
|
|
666
|
-
O(t(
|
|
667
|
-
id: t(
|
|
668
|
-
"svg-title": `${t(
|
|
665
|
+
iconLeft: w(() => [
|
|
666
|
+
O(t(hi), {
|
|
667
|
+
id: t(Z),
|
|
668
|
+
"svg-title": `${t(l)("cancel")} - ${j.file.data.name}`
|
|
669
669
|
}, null, 8, ["id", "svg-title"])
|
|
670
670
|
]),
|
|
671
671
|
_: 1
|
|
672
|
-
}, 8, ["aria-labelledby"])) : (s(),
|
|
672
|
+
}, 8, ["aria-labelledby"])) : (s(), y(t(ga), {
|
|
673
673
|
key: 2,
|
|
674
674
|
ref_key: "removeFileButtonRef",
|
|
675
|
-
ref:
|
|
676
|
-
"aria-labelledby": `${t(
|
|
675
|
+
ref: b,
|
|
676
|
+
"aria-labelledby": `${t(B)} ${t(P)}`,
|
|
677
677
|
variant: "tertiary",
|
|
678
|
-
onClick:
|
|
678
|
+
onClick: T[2] || (T[2] = (Q) => d("remove"))
|
|
679
679
|
}, {
|
|
680
|
-
iconLeft:
|
|
681
|
-
O(t(
|
|
682
|
-
id: t(
|
|
683
|
-
"svg-title": `${t(
|
|
680
|
+
iconLeft: w(() => [
|
|
681
|
+
O(t(xi), {
|
|
682
|
+
id: t(P),
|
|
683
|
+
"svg-title": `${t(l)("remove")} - ${j.file.data.name}`
|
|
684
684
|
}, null, 8, ["id", "svg-title"])
|
|
685
685
|
]),
|
|
686
686
|
_: 1
|
|
@@ -688,7 +688,7 @@ const Aa = {
|
|
|
688
688
|
])
|
|
689
689
|
], 2));
|
|
690
690
|
}
|
|
691
|
-
}),
|
|
691
|
+
}), Me = /* @__PURE__ */ L(Te, [["__scopeId", "data-v-389ff9bd"]]), Ua = {
|
|
692
692
|
"en-US": {
|
|
693
693
|
maxFileSize: "Max file size: {size}",
|
|
694
694
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
@@ -697,10 +697,10 @@ const Aa = {
|
|
|
697
697
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
698
698
|
supportedFileTypes: "Supported file types: {list}"
|
|
699
699
|
}
|
|
700
|
-
},
|
|
700
|
+
}, Se = {
|
|
701
701
|
i18n: { messages: Ua }
|
|
702
|
-
},
|
|
703
|
-
...
|
|
702
|
+
}, Ve = /* @__PURE__ */ la({
|
|
703
|
+
...Se,
|
|
704
704
|
__name: "file-uploader-restrictions",
|
|
705
705
|
props: {
|
|
706
706
|
condensed: { type: Boolean, default: null },
|
|
@@ -711,65 +711,65 @@ const Aa = {
|
|
|
711
711
|
supportedFileTypes: { default: null }
|
|
712
712
|
},
|
|
713
713
|
setup(a) {
|
|
714
|
-
const i = a, { t:
|
|
714
|
+
const i = a, { t: o, tc: p, n, locale: d } = sa({ messages: Ua }), l = g(() => ({
|
|
715
715
|
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
716
716
|
"b-file-uploader-restrictions--disabled": i.disabled
|
|
717
717
|
}));
|
|
718
|
-
function
|
|
718
|
+
function u(r) {
|
|
719
719
|
return {
|
|
720
|
-
"b-file-uploader-restrictions--error":
|
|
720
|
+
"b-file-uploader-restrictions--error": r
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
const
|
|
723
|
+
const b = g(() => {
|
|
724
724
|
if (!i.maxDimensions)
|
|
725
725
|
return null;
|
|
726
726
|
const {
|
|
727
|
-
value: { width:
|
|
727
|
+
value: { width: r, height: z }
|
|
728
728
|
} = i.maxDimensions;
|
|
729
|
-
return
|
|
729
|
+
return r && z ? o("maxImageDimensions", { width: n(r), height: n(z) }) : r ? o("maxImageWidth", { width: n(r) }) : z ? o("maxImageHeight", { height: n(z) }) : null;
|
|
730
730
|
});
|
|
731
|
-
return (
|
|
732
|
-
class: q(["b-file-uploader-restrictions",
|
|
731
|
+
return (r, z) => (s(), x("div", {
|
|
732
|
+
class: q(["b-file-uploader-restrictions", l.value])
|
|
733
733
|
}, [
|
|
734
|
-
|
|
734
|
+
r.supportedFileTypes ? (s(), y(t(R), {
|
|
735
735
|
key: 0,
|
|
736
|
-
class: q(
|
|
736
|
+
class: q(u(r.supportedFileTypes.error))
|
|
737
737
|
}, {
|
|
738
|
-
default:
|
|
739
|
-
|
|
738
|
+
default: w(() => [
|
|
739
|
+
_(f(t(o)("supportedFileTypes", { list: r.supportedFileTypes.value })), 1)
|
|
740
740
|
]),
|
|
741
741
|
_: 1
|
|
742
|
-
}, 8, ["class"])) :
|
|
743
|
-
|
|
742
|
+
}, 8, ["class"])) : v("", !0),
|
|
743
|
+
r.maxSize ? (s(), y(t(R), {
|
|
744
744
|
key: 1,
|
|
745
|
-
class: q(
|
|
745
|
+
class: q(u(r.maxSize.error))
|
|
746
746
|
}, {
|
|
747
|
-
default:
|
|
748
|
-
|
|
747
|
+
default: w(() => [
|
|
748
|
+
_(f(t(o)("maxFileSize", { size: t(Za)(t(d), r.maxSize.value) })), 1)
|
|
749
749
|
]),
|
|
750
750
|
_: 1
|
|
751
|
-
}, 8, ["class"])) :
|
|
752
|
-
|
|
751
|
+
}, 8, ["class"])) : v("", !0),
|
|
752
|
+
r.maxDimensions ? (s(), y(t(R), {
|
|
753
753
|
key: 2,
|
|
754
|
-
class: q(
|
|
754
|
+
class: q(u(r.maxDimensions.error))
|
|
755
755
|
}, {
|
|
756
|
-
default:
|
|
757
|
-
|
|
756
|
+
default: w(() => [
|
|
757
|
+
_(f(b.value), 1)
|
|
758
758
|
]),
|
|
759
759
|
_: 1
|
|
760
|
-
}, 8, ["class"])) :
|
|
761
|
-
|
|
760
|
+
}, 8, ["class"])) : v("", !0),
|
|
761
|
+
r.maxCount ? (s(), y(t(R), {
|
|
762
762
|
key: 3,
|
|
763
|
-
class: q(
|
|
763
|
+
class: q(u(r.maxCount.error))
|
|
764
764
|
}, {
|
|
765
|
-
default:
|
|
766
|
-
|
|
765
|
+
default: w(() => [
|
|
766
|
+
_(f(t(p)("maxUpload", r.maxCount.value, { count: t(n)(r.maxCount.value) })), 1)
|
|
767
767
|
]),
|
|
768
768
|
_: 1
|
|
769
|
-
}, 8, ["class"])) :
|
|
769
|
+
}, 8, ["class"])) : v("", !0)
|
|
770
770
|
], 2));
|
|
771
771
|
}
|
|
772
|
-
}), Da = /* @__PURE__ */ L(
|
|
772
|
+
}), Da = /* @__PURE__ */ L(Ve, [["__scopeId", "data-v-6ad327db"]]), Na = {
|
|
773
773
|
"application/prs.cww": ["cww"],
|
|
774
774
|
"application/prs.xsf+xml": ["xsf"],
|
|
775
775
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1822,30 +1822,30 @@ const Pa = {
|
|
|
1822
1822
|
"video/webm": ["webm"]
|
|
1823
1823
|
};
|
|
1824
1824
|
Object.freeze(Pa);
|
|
1825
|
-
var
|
|
1826
|
-
if (
|
|
1827
|
-
if (typeof i == "function" ? a !== i || !
|
|
1828
|
-
return
|
|
1829
|
-
},
|
|
1830
|
-
class
|
|
1825
|
+
var M = function(a, i, o, p) {
|
|
1826
|
+
if (o === "a" && !p) throw new TypeError("Private accessor was defined without a getter");
|
|
1827
|
+
if (typeof i == "function" ? a !== i || !p : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1828
|
+
return o === "m" ? p : o === "a" ? p.call(a) : p ? p.value : i.get(a);
|
|
1829
|
+
}, W, ia, N;
|
|
1830
|
+
class Fe {
|
|
1831
1831
|
constructor(...i) {
|
|
1832
|
-
|
|
1833
|
-
for (const
|
|
1834
|
-
this.define(
|
|
1832
|
+
W.set(this, /* @__PURE__ */ new Map()), ia.set(this, /* @__PURE__ */ new Map()), N.set(this, /* @__PURE__ */ new Map());
|
|
1833
|
+
for (const o of i)
|
|
1834
|
+
this.define(o);
|
|
1835
1835
|
}
|
|
1836
|
-
define(i,
|
|
1837
|
-
for (let [
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1840
|
-
let
|
|
1841
|
-
for (let
|
|
1842
|
-
const
|
|
1843
|
-
if (
|
|
1836
|
+
define(i, o = !1) {
|
|
1837
|
+
for (let [p, n] of Object.entries(i)) {
|
|
1838
|
+
p = p.toLowerCase(), n = n.map((u) => u.toLowerCase()), M(this, N, "f").has(p) || M(this, N, "f").set(p, /* @__PURE__ */ new Set());
|
|
1839
|
+
const d = M(this, N, "f").get(p);
|
|
1840
|
+
let l = !0;
|
|
1841
|
+
for (let u of n) {
|
|
1842
|
+
const b = u.startsWith("*");
|
|
1843
|
+
if (u = b ? u.slice(1) : u, d == null || d.add(u), l && M(this, ia, "f").set(p, u), l = !1, b)
|
|
1844
1844
|
continue;
|
|
1845
|
-
const
|
|
1846
|
-
if (
|
|
1847
|
-
throw new Error(`"${
|
|
1848
|
-
|
|
1845
|
+
const r = M(this, W, "f").get(u);
|
|
1846
|
+
if (r && r != p && !o)
|
|
1847
|
+
throw new Error(`"${p} -> ${u}" conflicts with "${r} -> ${u}". Pass \`force=true\` to override this definition.`);
|
|
1848
|
+
M(this, W, "f").set(u, p);
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
1851
|
return this;
|
|
@@ -1853,51 +1853,51 @@ class Ve {
|
|
|
1853
1853
|
getType(i) {
|
|
1854
1854
|
if (typeof i != "string")
|
|
1855
1855
|
return null;
|
|
1856
|
-
const
|
|
1857
|
-
return !(
|
|
1856
|
+
const o = i.replace(/^.*[/\\]/, "").toLowerCase(), p = o.replace(/^.*\./, "").toLowerCase(), n = o.length < i.length;
|
|
1857
|
+
return !(p.length < o.length - 1) && n ? null : M(this, W, "f").get(p) ?? null;
|
|
1858
1858
|
}
|
|
1859
1859
|
getExtension(i) {
|
|
1860
|
-
var
|
|
1861
|
-
return typeof i != "string" ? null : (i = (
|
|
1860
|
+
var o;
|
|
1861
|
+
return typeof i != "string" ? null : (i = (o = i == null ? void 0 : i.split) == null ? void 0 : o.call(i, ";")[0], (i && M(this, ia, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1862
1862
|
}
|
|
1863
1863
|
getAllExtensions(i) {
|
|
1864
|
-
return typeof i != "string" ? null :
|
|
1864
|
+
return typeof i != "string" ? null : M(this, N, "f").get(i.toLowerCase()) ?? null;
|
|
1865
1865
|
}
|
|
1866
1866
|
_freeze() {
|
|
1867
1867
|
this.define = () => {
|
|
1868
1868
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1869
1869
|
}, Object.freeze(this);
|
|
1870
|
-
for (const i of
|
|
1870
|
+
for (const i of M(this, N, "f").values())
|
|
1871
1871
|
Object.freeze(i);
|
|
1872
1872
|
return this;
|
|
1873
1873
|
}
|
|
1874
1874
|
_getTestState() {
|
|
1875
1875
|
return {
|
|
1876
|
-
types:
|
|
1877
|
-
extensions:
|
|
1876
|
+
types: M(this, W, "f"),
|
|
1877
|
+
extensions: M(this, ia, "f")
|
|
1878
1878
|
};
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
|
|
1882
|
-
const Ga = new
|
|
1883
|
-
function
|
|
1881
|
+
W = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
|
|
1882
|
+
const Ga = new Fe(Pa, Na)._freeze();
|
|
1883
|
+
function De(a) {
|
|
1884
1884
|
return a.includes("/") ? `.${Ga.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1887
|
-
const { locale: i, t:
|
|
1888
|
-
return { supportedFileTypeList:
|
|
1889
|
-
const
|
|
1890
|
-
return a != null && a.value ?
|
|
1891
|
-
a.value.split(",").map((
|
|
1892
|
-
switch (
|
|
1886
|
+
function Oe(a) {
|
|
1887
|
+
const { locale: i, t: o } = sa();
|
|
1888
|
+
return { supportedFileTypeList: g(() => {
|
|
1889
|
+
const n = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
1890
|
+
return a != null && a.value ? n.format(
|
|
1891
|
+
a.value.split(",").map((d) => {
|
|
1892
|
+
switch (d.trim()) {
|
|
1893
1893
|
case "audio/*":
|
|
1894
|
-
return
|
|
1894
|
+
return o("audioFiles");
|
|
1895
1895
|
case "image/*":
|
|
1896
|
-
return
|
|
1896
|
+
return o("imageFiles");
|
|
1897
1897
|
case "video/*":
|
|
1898
|
-
return
|
|
1898
|
+
return o("videoFiles");
|
|
1899
1899
|
default:
|
|
1900
|
-
return
|
|
1900
|
+
return De(d);
|
|
1901
1901
|
}
|
|
1902
1902
|
})
|
|
1903
1903
|
) : null;
|
|
@@ -1916,48 +1916,48 @@ const Wa = {
|
|
|
1916
1916
|
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1917
1917
|
}
|
|
1918
1918
|
};
|
|
1919
|
-
function
|
|
1919
|
+
function He(a) {
|
|
1920
1920
|
return Ga.getType(a) ?? a;
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
const
|
|
1922
|
+
function qe({ maxCount: a, accept: i }) {
|
|
1923
|
+
const o = ba({
|
|
1924
1924
|
invalidTypes: !1,
|
|
1925
1925
|
partiallyInvalidTypes: !1,
|
|
1926
1926
|
maxCountOverflow: !1
|
|
1927
|
-
}),
|
|
1927
|
+
}), p = ba({
|
|
1928
1928
|
dragging: !1,
|
|
1929
1929
|
error: !1
|
|
1930
|
-
}),
|
|
1931
|
-
function
|
|
1932
|
-
|
|
1930
|
+
}), n = g(() => i.value ? i.value.split(",").map((b) => He(b.trim().toLocaleLowerCase())) : void 0);
|
|
1931
|
+
function d() {
|
|
1932
|
+
p.dragging = !1, p.error = !1, o.invalidTypes = !1, o.partiallyInvalidTypes = !1, o.maxCountOverflow = !1;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1935
|
-
if (
|
|
1934
|
+
function l(u, b) {
|
|
1935
|
+
if (p.dragging = !0, (!b.dataTransfer.types.includes("Files") || u > a.value) && (o.maxCountOverflow = !0, p.error = !0), !n.value)
|
|
1936
1936
|
return;
|
|
1937
|
-
let
|
|
1938
|
-
for (const
|
|
1939
|
-
|
|
1940
|
-
if (
|
|
1941
|
-
|
|
1937
|
+
let r = 0;
|
|
1938
|
+
for (const z of b.dataTransfer.items)
|
|
1939
|
+
n.value.includes(z.type) && r++;
|
|
1940
|
+
if (r === 0) {
|
|
1941
|
+
p.error = !0, o.invalidTypes = !0;
|
|
1942
1942
|
return;
|
|
1943
1943
|
}
|
|
1944
|
-
!
|
|
1944
|
+
!o.invalidTypes && r !== b.dataTransfer.items.length && (p.error = !0, o.partiallyInvalidTypes = !0);
|
|
1945
1945
|
}
|
|
1946
1946
|
return {
|
|
1947
|
-
dragState:
|
|
1948
|
-
dragErrors:
|
|
1949
|
-
resetDragState:
|
|
1950
|
-
onDragEnterValidations:
|
|
1947
|
+
dragState: p,
|
|
1948
|
+
dragErrors: o,
|
|
1949
|
+
resetDragState: d,
|
|
1950
|
+
onDragEnterValidations: l
|
|
1951
1951
|
};
|
|
1952
1952
|
}
|
|
1953
|
-
const
|
|
1953
|
+
const Be = ["id", "accept", "disabled", "multiple"], Ze = ["id"], Ae = ["aria-labelledby", "tabindex"], Ue = {
|
|
1954
1954
|
class: "b-file-uploader__icon",
|
|
1955
1955
|
"aria-hidden": "true"
|
|
1956
|
-
},
|
|
1956
|
+
}, Ne = { class: "b-file-uploader__files" }, Pe = {
|
|
1957
1957
|
model: { prop: "modelValue" },
|
|
1958
1958
|
i18n: { messages: Wa }
|
|
1959
|
-
},
|
|
1960
|
-
...
|
|
1959
|
+
}, Ge = /* @__PURE__ */ la({
|
|
1960
|
+
...Pe,
|
|
1961
1961
|
__name: "file-uploader",
|
|
1962
1962
|
props: {
|
|
1963
1963
|
accept: { default: null },
|
|
@@ -1976,183 +1976,183 @@ const qe = ["id", "accept", "disabled", "multiple"], Be = ["id"], Ze = ["aria-la
|
|
|
1976
1976
|
},
|
|
1977
1977
|
emits: ["change", "input", "update:modelValue", "error:upload"],
|
|
1978
1978
|
setup(a, { emit: i }) {
|
|
1979
|
-
const { t:
|
|
1980
|
-
function
|
|
1979
|
+
const { t: o, tc: p, n } = sa({ messages: Wa }), d = i, l = a;
|
|
1980
|
+
function u(e) {
|
|
1981
1981
|
return !!e && typeof e.length == "number" && typeof e.item == "function";
|
|
1982
1982
|
}
|
|
1983
1983
|
Oa(() => {
|
|
1984
|
-
|
|
1984
|
+
u(l.modelValue) || fi(
|
|
1985
1985
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1986
1986
|
"Use FileList instead.",
|
|
1987
1987
|
"2.0.0"
|
|
1988
1988
|
);
|
|
1989
1989
|
});
|
|
1990
|
-
const { supportedFileTypeList:
|
|
1991
|
-
const e =
|
|
1992
|
-
return `${e} ${c} ${
|
|
1993
|
-
}), { dragState: Y, dragErrors:
|
|
1994
|
-
accept: xa(
|
|
1995
|
-
maxCount: xa(
|
|
1996
|
-
}),
|
|
1997
|
-
var e, c,
|
|
1990
|
+
const { supportedFileTypeList: b } = Oe(xa(l, "accept")), r = S("browse-button"), z = S("custom-text"), B = S("drop-files-text"), Z = S("comma-text"), P = S("file-uploader-restrictions"), k = I(null), H = I([]), D = I(null), A = I(null), ea = S("input"), ta = S("input-error"), na = g(() => {
|
|
1991
|
+
const e = l.condensed ? "" : `${B} ${Z}`, c = l.description ? `${z} ${Z}` : "", C = `${P} ${Z}`;
|
|
1992
|
+
return `${e} ${c} ${C} ${r}`;
|
|
1993
|
+
}), { dragState: Y, dragErrors: U, resetDragState: X, onDragEnterValidations: ca } = qe({
|
|
1994
|
+
accept: xa(l, "accept"),
|
|
1995
|
+
maxCount: xa(l, "maxCount")
|
|
1996
|
+
}), J = g(() => {
|
|
1997
|
+
var e, c, C;
|
|
1998
1998
|
return {
|
|
1999
|
-
condensed:
|
|
2000
|
-
disabled:
|
|
2001
|
-
maxCount:
|
|
2002
|
-
value:
|
|
2003
|
-
error:
|
|
1999
|
+
condensed: l.condensed,
|
|
2000
|
+
disabled: l.disabled,
|
|
2001
|
+
maxCount: K.value ? {
|
|
2002
|
+
value: l.maxCount,
|
|
2003
|
+
error: U.maxCountOverflow || Q.value
|
|
2004
2004
|
} : null,
|
|
2005
|
-
maxDimensions:
|
|
2006
|
-
value:
|
|
2007
|
-
error: (e =
|
|
2005
|
+
maxDimensions: l.maxDimensions ? {
|
|
2006
|
+
value: l.maxDimensions,
|
|
2007
|
+
error: (e = k.value) == null ? void 0 : e.some(($) => $.errors.includes(E.ERROR_DIMENSIONS))
|
|
2008
2008
|
} : null,
|
|
2009
|
-
maxSize:
|
|
2010
|
-
value:
|
|
2011
|
-
error: (c =
|
|
2009
|
+
maxSize: l.maxSize ? {
|
|
2010
|
+
value: l.maxSize,
|
|
2011
|
+
error: (c = k.value) == null ? void 0 : c.some(($) => $.errors.includes(E.ERROR_SIZE))
|
|
2012
2012
|
} : null,
|
|
2013
|
-
supportedFileTypes:
|
|
2014
|
-
value:
|
|
2015
|
-
error:
|
|
2013
|
+
supportedFileTypes: b.value ? {
|
|
2014
|
+
value: b.value,
|
|
2015
|
+
error: U.invalidTypes || U.partiallyInvalidTypes || ((C = k.value) == null ? void 0 : C.some(($) => $.errors.includes(E.ERROR_TYPE)))
|
|
2016
2016
|
} : null
|
|
2017
2017
|
};
|
|
2018
|
-
}),
|
|
2019
|
-
[`b-file-uploader--${pa.DISABLED}`]:
|
|
2018
|
+
}), G = I(), da = g(() => ({
|
|
2019
|
+
[`b-file-uploader--${pa.DISABLED}`]: l.disabled,
|
|
2020
2020
|
[`b-file-uploader--${pa.DRAG_OVER}`]: Y.dragging,
|
|
2021
|
-
[`b-file-uploader--${pa.ERROR}`]:
|
|
2022
|
-
"b-file-uploader--condensed":
|
|
2023
|
-
})),
|
|
2021
|
+
[`b-file-uploader--${pa.ERROR}`]: T.value,
|
|
2022
|
+
"b-file-uploader--condensed": l.condensed
|
|
2023
|
+
})), K = g(() => l.maxCount > 1), ra = g(() => {
|
|
2024
2024
|
var e;
|
|
2025
|
-
return
|
|
2026
|
-
}),
|
|
2025
|
+
return l.maxCount && ((e = k.value) == null ? void 0 : e.length) >= l.maxCount;
|
|
2026
|
+
}), oa = g(() => {
|
|
2027
2027
|
var e;
|
|
2028
|
-
return (e =
|
|
2029
|
-
}),
|
|
2030
|
-
|
|
2028
|
+
return (e = k.value) == null ? void 0 : e.some((c) => c.state === "loading");
|
|
2029
|
+
}), ma = (e) => (c) => {
|
|
2030
|
+
H.value[e] = c;
|
|
2031
2031
|
};
|
|
2032
|
-
function
|
|
2032
|
+
function j(e) {
|
|
2033
2033
|
if (e) {
|
|
2034
|
-
|
|
2035
|
-
const c =
|
|
2036
|
-
|
|
2034
|
+
ti(e), ni(e);
|
|
2035
|
+
const c = oi(e);
|
|
2036
|
+
d("change", c), d("update:modelValue", c), d("input", c);
|
|
2037
2037
|
} else
|
|
2038
|
-
|
|
2038
|
+
d("change"), d("update:modelValue"), d("input");
|
|
2039
2039
|
}
|
|
2040
|
-
const
|
|
2040
|
+
const T = g(() => !!l.errorMessage || Y.error), Q = g(() => {
|
|
2041
2041
|
var e;
|
|
2042
|
-
return ((e =
|
|
2043
|
-
}),
|
|
2042
|
+
return ((e = k.value) == null ? void 0 : e.length) > l.maxCount;
|
|
2043
|
+
}), Ya = I(!1), Xa = g(() => {
|
|
2044
2044
|
var e;
|
|
2045
|
-
return (e =
|
|
2045
|
+
return (e = k.value) == null ? void 0 : e.some((c) => c.state === "error");
|
|
2046
2046
|
});
|
|
2047
|
-
ha(
|
|
2048
|
-
|
|
2047
|
+
ha(Xa, (e) => {
|
|
2048
|
+
oa.value || d("error:upload", e);
|
|
2049
2049
|
});
|
|
2050
2050
|
async function ua() {
|
|
2051
2051
|
var e;
|
|
2052
|
-
if (await
|
|
2053
|
-
(e =
|
|
2052
|
+
if (await ui(), k.value.length === l.maxCount) {
|
|
2053
|
+
(e = H.value[0]) == null || e.focus();
|
|
2054
2054
|
return;
|
|
2055
2055
|
}
|
|
2056
|
-
|
|
2056
|
+
A.value.focus();
|
|
2057
2057
|
}
|
|
2058
2058
|
async function wa(e) {
|
|
2059
|
-
|
|
2059
|
+
k.value = k.value.filter(({ id: c }) => c !== e.id), await ua(), j(k.value);
|
|
2060
2060
|
}
|
|
2061
2061
|
function va(e) {
|
|
2062
2062
|
const c = ba({
|
|
2063
|
-
id:
|
|
2063
|
+
id: S("file"),
|
|
2064
2064
|
data: e,
|
|
2065
2065
|
errors: [],
|
|
2066
2066
|
progress: null,
|
|
2067
|
-
state:
|
|
2068
|
-
type:
|
|
2067
|
+
state: V.LOADING,
|
|
2068
|
+
type: Vi(e)
|
|
2069
2069
|
});
|
|
2070
|
-
return
|
|
2070
|
+
return Di(c, l.accept, l.maxDimensions), c;
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function Ja(e) {
|
|
2073
2073
|
var c;
|
|
2074
|
-
((c =
|
|
2074
|
+
((c = k.value) == null ? void 0 : c.length) === l.maxCount && e.preventDefault();
|
|
2075
2075
|
}
|
|
2076
2076
|
async function ya(e) {
|
|
2077
|
-
if (
|
|
2078
|
-
fa(),
|
|
2077
|
+
if (l.maxCount === 1 && e.length > l.maxCount) {
|
|
2078
|
+
fa(), X();
|
|
2079
2079
|
return;
|
|
2080
2080
|
}
|
|
2081
|
-
|
|
2081
|
+
K.value ? k.value = [...k.value || [], ...Array.from(e).map((c) => va(c))] : (k.value = [va(e[0])], await ua()), j(k.value);
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2084
|
-
var
|
|
2085
|
-
if (
|
|
2083
|
+
function Ka(e) {
|
|
2084
|
+
var C, $;
|
|
2085
|
+
if (l.disabled)
|
|
2086
2086
|
return;
|
|
2087
|
-
|
|
2088
|
-
const c = (((
|
|
2089
|
-
|
|
2087
|
+
G.value = e.target;
|
|
2088
|
+
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + ((($ = k.value) == null ? void 0 : $.length) ?? 0);
|
|
2089
|
+
ca(c, e);
|
|
2090
2090
|
}
|
|
2091
2091
|
function fa() {
|
|
2092
|
-
|
|
2093
|
-
}
|
|
2094
|
-
function Ka(e) {
|
|
2095
|
-
P.value === e.target && (fa(), N());
|
|
2092
|
+
G.value = null;
|
|
2096
2093
|
}
|
|
2097
2094
|
function Qa(e) {
|
|
2098
|
-
|
|
2095
|
+
G.value === e.target && (fa(), X());
|
|
2099
2096
|
}
|
|
2100
|
-
|
|
2097
|
+
function ai(e) {
|
|
2098
|
+
e.preventDefault(), l.disabled && (e.dataTransfer.dropEffect = "none");
|
|
2099
|
+
}
|
|
2100
|
+
async function ii(e) {
|
|
2101
2101
|
var c;
|
|
2102
|
-
|
|
2102
|
+
l.disabled || (!U.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && ya(e.dataTransfer.files), fa(), X());
|
|
2103
2103
|
}
|
|
2104
|
-
async function
|
|
2104
|
+
async function ei() {
|
|
2105
2105
|
var e;
|
|
2106
|
-
(e =
|
|
2106
|
+
(e = D.value.files) != null && e.length && ya(D.value.files), D.value.value = "", await ua();
|
|
2107
2107
|
}
|
|
2108
2108
|
ha(
|
|
2109
|
-
() =>
|
|
2109
|
+
() => l.modelValue,
|
|
2110
2110
|
(e) => {
|
|
2111
|
-
if (e &&
|
|
2112
|
-
const c = e,
|
|
2113
|
-
|
|
2111
|
+
if (e && u(e)) {
|
|
2112
|
+
const c = e, C = Array.from(c);
|
|
2113
|
+
k.value = C.map(($) => va($));
|
|
2114
2114
|
}
|
|
2115
2115
|
},
|
|
2116
2116
|
{ immediate: !0 }
|
|
2117
2117
|
);
|
|
2118
|
-
function ei(e) {
|
|
2119
|
-
const c = n.maxCount && e.length <= n.maxCount;
|
|
2120
|
-
oa.value = !c;
|
|
2121
|
-
}
|
|
2122
2118
|
function ti(e) {
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
k.data.size > n.maxSize && (k.state = S.ERROR, k.errors.push(R.ERROR_SIZE));
|
|
2126
|
-
});
|
|
2119
|
+
const c = l.maxCount && e.length <= l.maxCount;
|
|
2120
|
+
Ya.value = !c;
|
|
2127
2121
|
}
|
|
2128
2122
|
function ni(e) {
|
|
2123
|
+
l.maxSize && e.forEach((c) => {
|
|
2124
|
+
const C = c;
|
|
2125
|
+
C.data.size > l.maxSize && (C.state = V.ERROR, C.errors.push(E.ERROR_SIZE));
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2128
|
+
function oi(e) {
|
|
2129
2129
|
const c = e.filter(
|
|
2130
|
-
({ errors:
|
|
2130
|
+
({ errors: C }) => !C.includes(E.ERROR_LOAD) && !C.includes(E.ERROR_SIZE)
|
|
2131
2131
|
);
|
|
2132
2132
|
if (c.length) {
|
|
2133
|
-
const
|
|
2133
|
+
const C = new DataTransfer();
|
|
2134
2134
|
return c.forEach(({ data: $, id: ka }) => {
|
|
2135
|
-
|
|
2136
|
-
}),
|
|
2135
|
+
C.items.add($);
|
|
2136
|
+
}), C.files;
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
2139
|
return (e, c) => {
|
|
2140
|
-
var
|
|
2141
|
-
return s(),
|
|
2142
|
-
class: q(["b-file-uploader",
|
|
2140
|
+
var C;
|
|
2141
|
+
return s(), x("div", {
|
|
2142
|
+
class: q(["b-file-uploader", da.value])
|
|
2143
2143
|
}, [
|
|
2144
|
-
O(t(
|
|
2144
|
+
O(t(Ci), {
|
|
2145
2145
|
class: "b-file-uploader__label",
|
|
2146
|
-
for: t(
|
|
2146
|
+
for: t(ea),
|
|
2147
2147
|
label: e.label,
|
|
2148
2148
|
optional: e.optional,
|
|
2149
2149
|
required: e.required,
|
|
2150
2150
|
"tooltip-text": e.tooltipText
|
|
2151
2151
|
}, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
|
|
2152
|
-
|
|
2153
|
-
id: t(
|
|
2152
|
+
m("input", {
|
|
2153
|
+
id: t(ea),
|
|
2154
2154
|
ref_key: "inputRef",
|
|
2155
|
-
ref:
|
|
2155
|
+
ref: D,
|
|
2156
2156
|
"aria-hidden": "true",
|
|
2157
2157
|
type: "file",
|
|
2158
2158
|
tabindex: "-1",
|
|
@@ -2160,121 +2160,121 @@ const qe = ["id", "accept", "disabled", "multiple"], Be = ["id"], Ze = ["aria-la
|
|
|
2160
2160
|
class: "b-file-uploader__input",
|
|
2161
2161
|
accept: e.accept,
|
|
2162
2162
|
disabled: e.disabled,
|
|
2163
|
-
multiple:
|
|
2164
|
-
onChange:
|
|
2165
|
-
onClick:
|
|
2166
|
-
}, null, 40,
|
|
2167
|
-
|
|
2168
|
-
id: t(
|
|
2163
|
+
multiple: K.value,
|
|
2164
|
+
onChange: ei,
|
|
2165
|
+
onClick: Ja
|
|
2166
|
+
}, null, 40, Be),
|
|
2167
|
+
m("span", {
|
|
2168
|
+
id: t(Z),
|
|
2169
2169
|
"aria-hidden": "true",
|
|
2170
2170
|
class: "b-file-uploader__invisible-comma"
|
|
2171
|
-
}, " , ", 8,
|
|
2172
|
-
ra.value ?
|
|
2171
|
+
}, " , ", 8, Ze),
|
|
2172
|
+
ra.value ? v("", !0) : (s(), x("div", {
|
|
2173
2173
|
key: 0,
|
|
2174
2174
|
ref_key: "dropAreaRef",
|
|
2175
|
-
ref:
|
|
2176
|
-
"aria-labelledby":
|
|
2175
|
+
ref: A,
|
|
2176
|
+
"aria-labelledby": na.value,
|
|
2177
2177
|
class: "b-file-uploader__area",
|
|
2178
2178
|
role: "button",
|
|
2179
2179
|
tabindex: e.disabled ? -1 : 0,
|
|
2180
|
-
onClick: c[0] || (c[0] = ($) =>
|
|
2181
|
-
onDragenter:
|
|
2182
|
-
onDragleave:
|
|
2183
|
-
onDrop:
|
|
2184
|
-
onDragover:
|
|
2180
|
+
onClick: c[0] || (c[0] = ($) => D.value.click()),
|
|
2181
|
+
onDragenter: aa(Ka, ["stop", "prevent"]),
|
|
2182
|
+
onDragleave: aa(Qa, ["stop", "prevent"]),
|
|
2183
|
+
onDrop: aa(ii, ["stop", "prevent"]),
|
|
2184
|
+
onDragover: ai,
|
|
2185
2185
|
onKeydownCapture: [
|
|
2186
|
-
c[1] || (c[1] = $a(
|
|
2187
|
-
c[2] || (c[2] = $a(
|
|
2186
|
+
c[1] || (c[1] = $a(aa(($) => D.value.click(), ["prevent"]), ["enter"])),
|
|
2187
|
+
c[2] || (c[2] = $a(aa(($) => D.value.click(), ["prevent"]), ["space"]))
|
|
2188
2188
|
]
|
|
2189
2189
|
}, [
|
|
2190
|
-
|
|
2191
|
-
|
|
2190
|
+
m("div", Ue, [
|
|
2191
|
+
T.value ? (s(), y(t(qa), { key: 0 })) : (s(), y(t(Ri), { key: 1 }))
|
|
2192
2192
|
]),
|
|
2193
|
-
e.condensed ?
|
|
2194
|
-
O(t(
|
|
2195
|
-
id: t(
|
|
2193
|
+
e.condensed ? v("", !0) : (s(), x(_a, { key: 0 }, [
|
|
2194
|
+
O(t(R), {
|
|
2195
|
+
id: t(B),
|
|
2196
2196
|
el: "span",
|
|
2197
2197
|
strongest: "",
|
|
2198
2198
|
class: "b-file-uploader__title"
|
|
2199
2199
|
}, {
|
|
2200
|
-
default:
|
|
2201
|
-
|
|
2200
|
+
default: w(() => [
|
|
2201
|
+
_(f(t(p)("dropFiles", e.maxCount)), 1)
|
|
2202
2202
|
]),
|
|
2203
2203
|
_: 1
|
|
2204
2204
|
}, 8, ["id"]),
|
|
2205
|
-
e.description ? (s(),
|
|
2205
|
+
e.description ? (s(), y(t(R), {
|
|
2206
2206
|
key: 0,
|
|
2207
|
-
id: t(
|
|
2207
|
+
id: t(z),
|
|
2208
2208
|
el: "span",
|
|
2209
2209
|
class: "b-file-uploader__description"
|
|
2210
2210
|
}, {
|
|
2211
|
-
default:
|
|
2212
|
-
|
|
2211
|
+
default: w(() => [
|
|
2212
|
+
_(f(e.description), 1)
|
|
2213
2213
|
]),
|
|
2214
2214
|
_: 1
|
|
2215
|
-
}, 8, ["id"])) :
|
|
2216
|
-
O(t(Da),
|
|
2215
|
+
}, 8, ["id"])) : v("", !0),
|
|
2216
|
+
O(t(Da), F(J.value, { id: t(P) }), null, 16, ["id"])
|
|
2217
2217
|
], 64)),
|
|
2218
|
-
O(t(
|
|
2219
|
-
id: t(
|
|
2218
|
+
O(t(R), {
|
|
2219
|
+
id: t(r),
|
|
2220
2220
|
stronger: "",
|
|
2221
2221
|
class: "b-file-uploader__button"
|
|
2222
2222
|
}, {
|
|
2223
|
-
default:
|
|
2224
|
-
|
|
2223
|
+
default: w(() => [
|
|
2224
|
+
_(f(t(o)("browseFiles")), 1)
|
|
2225
2225
|
]),
|
|
2226
2226
|
_: 1
|
|
2227
2227
|
}, 8, ["id"])
|
|
2228
|
-
], 40,
|
|
2229
|
-
|
|
2228
|
+
], 40, Ae)),
|
|
2229
|
+
T.value && e.errorMessage ? (s(), y(t($i), {
|
|
2230
2230
|
key: 1,
|
|
2231
|
-
id: t(
|
|
2231
|
+
id: t(ta),
|
|
2232
2232
|
"error-message": e.errorMessage,
|
|
2233
2233
|
class: "b-file-uploader__error-message"
|
|
2234
|
-
}, null, 8, ["id", "error-message"])) :
|
|
2235
|
-
e.condensed && e.description ? (s(),
|
|
2234
|
+
}, null, 8, ["id", "error-message"])) : v("", !0),
|
|
2235
|
+
e.condensed && e.description ? (s(), y(t(R), {
|
|
2236
2236
|
key: 2,
|
|
2237
|
-
id: t(
|
|
2237
|
+
id: t(z),
|
|
2238
2238
|
"aria-hidden": "true",
|
|
2239
2239
|
el: "span",
|
|
2240
2240
|
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2241
2241
|
}, {
|
|
2242
|
-
default:
|
|
2243
|
-
|
|
2242
|
+
default: w(() => [
|
|
2243
|
+
_(f(e.description), 1)
|
|
2244
2244
|
]),
|
|
2245
2245
|
_: 1
|
|
2246
|
-
}, 8, ["id"])) :
|
|
2247
|
-
e.condensed ? (s(),
|
|
2248
|
-
|
|
2246
|
+
}, 8, ["id"])) : v("", !0),
|
|
2247
|
+
e.condensed ? (s(), y(t(Da), F({ key: 3 }, J.value, { id: t(P) }), null, 16, ["id"])) : v("", !0),
|
|
2248
|
+
Q.value ? (s(), y(t(vi), {
|
|
2249
2249
|
key: 4,
|
|
2250
2250
|
type: "critical"
|
|
2251
2251
|
}, {
|
|
2252
|
-
description:
|
|
2253
|
-
|
|
2252
|
+
description: w(() => [
|
|
2253
|
+
_(f(t(o)("youHaveExceededTheMaximum", { count: t(n)(l.maxCount) })), 1)
|
|
2254
2254
|
]),
|
|
2255
|
-
default:
|
|
2256
|
-
|
|
2255
|
+
default: w(() => [
|
|
2256
|
+
_(f(t(o)("tooManyFiles")) + " ", 1)
|
|
2257
2257
|
]),
|
|
2258
2258
|
_: 1
|
|
2259
|
-
})) :
|
|
2260
|
-
Ha(
|
|
2261
|
-
(s(!0),
|
|
2259
|
+
})) : v("", !0),
|
|
2260
|
+
Ha(m("div", Ne, [
|
|
2261
|
+
(s(!0), x(_a, null, ri(k.value, ($, ka) => (s(), y(t(Me), {
|
|
2262
2262
|
ref_for: !0,
|
|
2263
|
-
ref:
|
|
2263
|
+
ref: ma(ka),
|
|
2264
2264
|
key: $.id,
|
|
2265
2265
|
file: $,
|
|
2266
|
-
"supported-file-types": t(
|
|
2267
|
-
onCancel: (
|
|
2268
|
-
onRemove: (
|
|
2266
|
+
"supported-file-types": t(b),
|
|
2267
|
+
onCancel: (pi) => wa($),
|
|
2268
|
+
onRemove: (pi) => wa($)
|
|
2269
2269
|
}, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
|
|
2270
2270
|
], 512), [
|
|
2271
|
-
[
|
|
2271
|
+
[mi, (C = k.value) == null ? void 0 : C.length]
|
|
2272
2272
|
])
|
|
2273
2273
|
], 2);
|
|
2274
2274
|
};
|
|
2275
2275
|
}
|
|
2276
|
-
}),
|
|
2276
|
+
}), ut = /* @__PURE__ */ L(Ge, [["__scopeId", "data-v-18f82422"]]);
|
|
2277
2277
|
export {
|
|
2278
|
-
|
|
2278
|
+
ut as f
|
|
2279
2279
|
};
|
|
2280
|
-
//# sourceMappingURL=file-uploader.
|
|
2280
|
+
//# sourceMappingURL=file-uploader.B_EI2fAc.js.map
|