@adyen/bento-vue3 1.45.0 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +128 -47
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/divider.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{accordion-item.DfOb4Pyx.js → accordion-item.LeB4jteX.js} +5 -5
- package/dist/chunks/{accordion-item.DfOb4Pyx.js.map → accordion-item.LeB4jteX.js.map} +1 -1
- package/dist/chunks/{action-bar.CmDQZkM2.js → action-bar.BN-AoRn0.js} +11 -11
- package/dist/chunks/{action-bar.CmDQZkM2.js.map → action-bar.BN-AoRn0.js.map} +1 -1
- package/dist/chunks/{alert.D1Ax6AnI.js → alert.DTX7XqPC.js} +7 -7
- package/dist/chunks/{alert.D1Ax6AnI.js.map → alert.DTX7XqPC.js.map} +1 -1
- package/dist/chunks/{base-modal.DbJYaHyG.js → base-modal.BsD3EOCY.js} +5 -5
- package/dist/chunks/{base-modal.DbJYaHyG.js.map → base-modal.BsD3EOCY.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BUyecZNi.js → button-actions-with-menu.CUL1q1Ca.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.BUyecZNi.js.map → button-actions-with-menu.CUL1q1Ca.js.map} +1 -1
- package/dist/chunks/{button-actions.CShVMUOC.js → button-actions.DBgK5Qwo.js} +5 -5
- package/dist/chunks/{button-actions.CShVMUOC.js.map → button-actions.DBgK5Qwo.js.map} +1 -1
- package/dist/chunks/{calendar.1qqtC8ba.js → calendar.CKY08nCx.js} +120 -107
- package/dist/chunks/{calendar.1qqtC8ba.js.map → calendar.CKY08nCx.js.map} +1 -1
- package/dist/chunks/{card.rkMUtirc.js → card.BUBXMpP5.js} +10 -10
- package/dist/chunks/{card.rkMUtirc.js.map → card.BUBXMpP5.js.map} +1 -1
- package/dist/chunks/{checkbox-group.PTNxE0kL.js → checkbox-group.DOAFzAX-.js} +4 -4
- package/dist/chunks/{checkbox-group.PTNxE0kL.js.map → checkbox-group.DOAFzAX-.js.map} +1 -1
- package/dist/chunks/{checkbox.D9FJcICR.js → checkbox.J51-tG4g.js} +22 -22
- package/dist/chunks/{checkbox.D9FJcICR.js.map → checkbox.J51-tG4g.js.map} +1 -1
- package/dist/chunks/code-snippet.CUzz3c-V.js +422 -0
- package/dist/chunks/code-snippet.CUzz3c-V.js.map +1 -0
- package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.0fz2cWJS.js} +4970 -4661
- package/dist/chunks/codemirror.0fz2cWJS.js.map +1 -0
- package/dist/chunks/{controls-group.BHxcGQ2A.js → controls-group.CjqybvY2.js} +2 -2
- package/dist/chunks/{controls-group.BHxcGQ2A.js.map → controls-group.CjqybvY2.js.map} +1 -1
- package/dist/chunks/{copy.DAMq-zRP.js → copy.VRsofU-g.js} +5 -5
- package/dist/chunks/{copy.DAMq-zRP.js.map → copy.VRsofU-g.js.map} +1 -1
- package/dist/chunks/{country.Cv_8NTmw.js → country.D2t_VEYd.js} +2 -2
- package/dist/chunks/{country.Cv_8NTmw.js.map → country.D2t_VEYd.js.map} +1 -1
- package/dist/chunks/{country.types.pilf5B3F.js → country.types.CLjbulKL.js} +4114 -4114
- package/dist/chunks/{country.types.pilf5B3F.js.map → country.types.CLjbulKL.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Buh9mb22.js → dashboard-section.BAJgkMXW.js} +3 -3
- package/dist/chunks/{dashboard-section.Buh9mb22.js.map → dashboard-section.BAJgkMXW.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DYVSwQtH.js → dashed-underline.B_eVv1aB.js} +2 -2
- package/dist/chunks/{dashed-underline.DYVSwQtH.js.map → dashed-underline.B_eVv1aB.js.map} +1 -1
- package/dist/chunks/{data-grid-template.B6xmEgaM.js → data-grid-template.DrwGj6Yq.js} +2 -2
- package/dist/chunks/{data-grid-template.B6xmEgaM.js.map → data-grid-template.DrwGj6Yq.js.map} +1 -1
- package/dist/chunks/{data-grid.DVc9qzLU.js → data-grid.V4b5UdXZ.js} +46 -46
- package/dist/chunks/{data-grid.DVc9qzLU.js.map → data-grid.V4b5UdXZ.js.map} +1 -1
- package/dist/chunks/{date-picker.Bt4fyPQ4.js → date-picker.DjuQyWzZ.js} +45 -36
- package/dist/chunks/date-picker.DjuQyWzZ.js.map +1 -0
- package/dist/chunks/{date-range-picker.Bna_2pBL.js → date-range-picker.CmxXWnBc.js} +328 -324
- package/dist/chunks/date-range-picker.CmxXWnBc.js.map +1 -0
- package/dist/chunks/divider.qUOSAbU6.js +33 -0
- package/dist/chunks/divider.qUOSAbU6.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js → dropdown-default-textbox.Dl8Jv2bS.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js.map → dropdown-default-textbox.Dl8Jv2bS.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DLyxItIS.js → dropdown-tag.D8hXRrMj.js} +4 -4
- package/dist/chunks/{dropdown-tag.DLyxItIS.js.map → dropdown-tag.D8hXRrMj.js.map} +1 -1
- package/dist/chunks/{dropdown.CZDXXpKe.js → dropdown.BWu3fV-K.js} +263 -256
- package/dist/chunks/dropdown.BWu3fV-K.js.map +1 -0
- package/dist/chunks/{error-message.BVE3JdTq.js → error-message.qsc0nOWT.js} +8 -8
- package/dist/chunks/{error-message.BVE3JdTq.js.map → error-message.qsc0nOWT.js.map} +1 -1
- package/dist/chunks/{es6.jIyAPBgt.js → es6.BtaxuP0b.js} +7 -7
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -0
- package/dist/chunks/file-uploader.BNGBBltW.js +2226 -0
- package/dist/chunks/file-uploader.BNGBBltW.js.map +1 -0
- package/dist/chunks/{filter-bar.oihCCt5N.js → filter-bar.Db-KfD-S.js} +53 -53
- package/dist/chunks/{filter-bar.oihCCt5N.js.map → filter-bar.Db-KfD-S.js.map} +1 -1
- package/dist/chunks/{footer-actions.n0JIXO4Q.js → footer-actions.BG8-pOU-.js} +2 -2
- package/dist/chunks/{footer-actions.n0JIXO4Q.js.map → footer-actions.BG8-pOU-.js.map} +1 -1
- package/dist/chunks/{form-layout-title.srkVLEUW.js → form-layout-title._25l9_Xm.js} +2 -2
- package/dist/chunks/{form-layout-title.srkVLEUW.js.map → form-layout-title._25l9_Xm.js.map} +1 -1
- package/dist/chunks/{header.CAHXObTT.js → header.vPx_0dwO.js} +4 -4
- package/dist/chunks/{header.CAHXObTT.js.map → header.vPx_0dwO.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js → info-icon-with-popover.CieLDo3g.js} +5 -5
- package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js.map → info-icon-with-popover.CieLDo3g.js.map} +1 -1
- package/dist/chunks/{input-field-password.DedPkZxg.js → input-field-password.CS7rxMCK.js} +80 -80
- package/dist/chunks/{input-field-password.DedPkZxg.js.map → input-field-password.CS7rxMCK.js.map} +1 -1
- package/dist/chunks/{input-field.3PUv6XC3.js → input-field.Cx4fMIb7.js} +126 -117
- package/dist/chunks/input-field.Cx4fMIb7.js.map +1 -0
- package/dist/chunks/{inspector.types.Dr0D250X.js → inspector.types.DQQN1eqF.js} +5 -5
- package/dist/chunks/{inspector.types.Dr0D250X.js.map → inspector.types.DQQN1eqF.js.map} +1 -1
- package/dist/chunks/{menu.Dmzh3Uat.js → menu.CihQsfY6.js} +5 -5
- package/dist/chunks/{menu.Dmzh3Uat.js.map → menu.CihQsfY6.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BazQAAU1.js → modal-fullscreen.D39_mhdY.js} +5 -5
- package/dist/chunks/{modal-fullscreen.BazQAAU1.js.map → modal-fullscreen.D39_mhdY.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js → modal.vue_vue_type_script_setup_true_lang.BHd_MGgH.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js.map → modal.vue_vue_type_script_setup_true_lang.BHd_MGgH.js.map} +1 -1
- package/dist/chunks/{pagination.BCC3GZV5.js → pagination.CbzgV2xT.js} +45 -45
- package/dist/chunks/{pagination.BCC3GZV5.js.map → pagination.CbzgV2xT.js.map} +1 -1
- package/dist/chunks/{popover.3KG1IoYE.js → popover.Bzb-pzfB.js} +2 -2
- package/dist/chunks/{popover.3KG1IoYE.js.map → popover.Bzb-pzfB.js.map} +1 -1
- package/dist/chunks/{radio-group.CeiSaH6M.js → radio-group.DkfCMh_u.js} +107 -94
- package/dist/chunks/radio-group.DkfCMh_u.js.map +1 -0
- package/dist/chunks/{radio-input.0TPahhZT.js → radio-input.DKfQGxtp.js} +27 -23
- package/dist/chunks/{radio-input.0TPahhZT.js.map → radio-input.DKfQGxtp.js.map} +1 -1
- package/dist/chunks/{search-bar.BZDJJtWB.js → search-bar.BTu1j3Ll.js} +7 -7
- package/dist/chunks/{search-bar.BZDJJtWB.js.map → search-bar.BTu1j3Ll.js.map} +1 -1
- package/dist/chunks/{secondary-nav.qm-rh-r6.js → secondary-nav.Bqvz5hjH.js} +8 -8
- package/dist/chunks/{secondary-nav.qm-rh-r6.js.map → secondary-nav.Bqvz5hjH.js.map} +1 -1
- package/dist/chunks/{selection-card-group.DPGh4nwl.js → selection-card-group.BHYvAL-T.js} +12 -12
- package/dist/chunks/{selection-card-group.DPGh4nwl.js.map → selection-card-group.BHYvAL-T.js.map} +1 -1
- package/dist/chunks/{sidepanel.DxSdFwm1.js → sidepanel.Bk35AAFF.js} +5 -5
- package/dist/chunks/{sidepanel.DxSdFwm1.js.map → sidepanel.Bk35AAFF.js.map} +1 -1
- package/dist/chunks/status.types.DsYAH3RM.js +45 -0
- package/dist/chunks/status.types.DsYAH3RM.js.map +1 -0
- package/dist/chunks/{structured-list-item.DpI6jzfM.js → structured-list-item.wpnBS69h.js} +5 -5
- package/dist/chunks/{structured-list-item.DpI6jzfM.js.map → structured-list-item.wpnBS69h.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js → summary-grid-item-custom.C8AD1NAh.js} +2 -2
- package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js.map → summary-grid-item-custom.C8AD1NAh.js.map} +1 -1
- package/dist/chunks/{textarea.CCr8inwI.js → textarea.C0k8by9A.js} +2 -2
- package/dist/chunks/{textarea.CCr8inwI.js.map → textarea.C0k8by9A.js.map} +1 -1
- package/dist/chunks/{timeline-item.DG9YaOiC.js → timeline-item.CYw68jQr.js} +13 -13
- package/dist/chunks/{timeline-item.DG9YaOiC.js.map → timeline-item.CYw68jQr.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js → tutorial.vue_vue_type_script_setup_true_lang.CjlNffBI.js} +10 -10
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js.map → tutorial.vue_vue_type_script_setup_true_lang.CjlNffBI.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js → use-cached-selected-values.YAg3m-Af.js} +10 -10
- package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js.map → use-cached-selected-values.YAg3m-Af.js.map} +1 -1
- package/dist/chunks/{use-country-items.DnPo3yxj.js → use-country-items.DJn6gU4P.js} +2 -2
- package/dist/chunks/{use-country-items.DnPo3yxj.js.map → use-country-items.DJn6gU4P.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +47 -47
- package/dist/input-field-password.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +2 -0
- package/dist/styles/bento-light.css +2 -0
- package/dist/styles/bento.css +2 -0
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +2 -0
- package/dist/summary-grid.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -4
- package/dist/chunks/code-snippet.volJxGqR.js +0 -392
- package/dist/chunks/code-snippet.volJxGqR.js.map +0 -1
- package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
- package/dist/chunks/date-picker.Bt4fyPQ4.js.map +0 -1
- package/dist/chunks/date-range-picker.Bna_2pBL.js.map +0 -1
- package/dist/chunks/divider.DwBC4bpr.js +0 -22
- package/dist/chunks/divider.DwBC4bpr.js.map +0 -1
- package/dist/chunks/dropdown.CZDXXpKe.js.map +0 -1
- package/dist/chunks/es6.jIyAPBgt.js.map +0 -1
- package/dist/chunks/file-uploader.BXHt0PWz.js +0 -1077
- package/dist/chunks/file-uploader.BXHt0PWz.js.map +0 -1
- package/dist/chunks/input-field.3PUv6XC3.js.map +0 -1
- package/dist/chunks/radio-group.CeiSaH6M.js.map +0 -1
- package/dist/chunks/status.types.Dil95sGx.js +0 -44
- package/dist/chunks/status.types.Dil95sGx.js.map +0 -1
|
@@ -1,1077 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as c, openBlock as l, mergeProps as M, createCommentVNode as m, createElementVNode as d, toDisplayString as f, defineComponent as Y, createBlock as v, unref as r, Transition as Oe, withCtx as g, renderSlot as se, TransitionGroup as Fe, ref as k, onUnmounted as Te, onMounted as ke, computed as h, watch as ye, normalizeClass as T, createVNode as O, resolveDynamicComponent as xe, withDirectives as _e, createTextVNode as y, reactive as ie, toRef as Ze, withKeys as re, withModifiers as P, Fragment as ne, normalizeProps as le, guardReactiveProps as ze, renderList as Be, vShow as Ae } from "vue";
|
|
2
|
-
import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
-
import { W as Re } from "./warning-filled.tTkVob0l.js";
|
|
4
|
-
import { B as Ne } from "./alert.D1Ax6AnI.js";
|
|
5
|
-
import { B as W } from "./button.Cneb6rPP.js";
|
|
6
|
-
import { B as V } from "./typography.DN5eC5ch.js";
|
|
7
|
-
import { u as q } from "./i18n.WMYWtwxB.js";
|
|
8
|
-
import { g as ee } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
-
import { i as be } from "./index.CWuzEfiV.js";
|
|
10
|
-
import { C as Ue } from "./checkmark-circle-fill.g_tcBhFJ.js";
|
|
11
|
-
import { C as Pe } from "./cross.BZYw4R3N.js";
|
|
12
|
-
import { R as Ge } from "./refresh.SzRxQ44W.js";
|
|
13
|
-
import "./events.FNmSWp_P.js";
|
|
14
|
-
import { B as We } from "./tooltip.2MOlGHD9.js";
|
|
15
|
-
import { B as je } from "./link.ClFi8uSm.js";
|
|
16
|
-
import { B as Ye } from "./loading-indicator.DEepb9Wl.js";
|
|
17
|
-
import { F as qe, E as Xe } from "./error-message.BVE3JdTq.js";
|
|
18
|
-
import "../assets/file-uploader.css";
|
|
19
|
-
let oe = 0;
|
|
20
|
-
const Je = {
|
|
21
|
-
beforeCreate() {
|
|
22
|
-
this.uuid = oe.toString(), oe += 1;
|
|
23
|
-
}
|
|
24
|
-
}, Ke = { key: 0 };
|
|
25
|
-
function Qe(e, t, s, n, o, p) {
|
|
26
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
27
|
-
class: "ui-assets-icons-16",
|
|
28
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
-
width: "16",
|
|
30
|
-
height: "16",
|
|
31
|
-
fill: "none"
|
|
32
|
-
}), [
|
|
33
|
-
e.$attrs["svg-title"] ? (l(), c("title", Ke, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
34
|
-
t[0] || (t[0] = d("path", {
|
|
35
|
-
fill: "#00112C",
|
|
36
|
-
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"
|
|
37
|
-
}, null, -1)),
|
|
38
|
-
t[1] || (t[1] = d("path", {
|
|
39
|
-
fill: "#00112C",
|
|
40
|
-
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"
|
|
41
|
-
}, null, -1))
|
|
42
|
-
], 16);
|
|
43
|
-
}
|
|
44
|
-
const e1 = /* @__PURE__ */ L(Je, [["render", Qe]]), t1 = /* @__PURE__ */ Y({
|
|
45
|
-
__name: "file-uploader-file-card-animation",
|
|
46
|
-
props: {
|
|
47
|
-
name: {},
|
|
48
|
-
showFileIcon: { type: Boolean }
|
|
49
|
-
},
|
|
50
|
-
setup(e) {
|
|
51
|
-
return (t, s) => r(be) ? (l(), v(Oe, {
|
|
52
|
-
key: 0,
|
|
53
|
-
name: t.name,
|
|
54
|
-
mode: "out-in",
|
|
55
|
-
css: t.showFileIcon
|
|
56
|
-
}, {
|
|
57
|
-
default: g(() => [
|
|
58
|
-
se(t.$slots, "default")
|
|
59
|
-
]),
|
|
60
|
-
_: 3
|
|
61
|
-
}, 8, ["name", "css"])) : (l(), v(Fe, {
|
|
62
|
-
key: 1,
|
|
63
|
-
name: t.name,
|
|
64
|
-
css: t.showFileIcon
|
|
65
|
-
}, {
|
|
66
|
-
default: g(() => [
|
|
67
|
-
se(t.$slots, "default")
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}, 8, ["name", "css"]));
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
let ae = 0;
|
|
74
|
-
const s1 = {
|
|
75
|
-
beforeCreate() {
|
|
76
|
-
this.uuid = ae.toString(), ae += 1;
|
|
77
|
-
}
|
|
78
|
-
}, i1 = { key: 0 };
|
|
79
|
-
function r1(e, t, s, n, o, p) {
|
|
80
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
81
|
-
class: "ui-assets-icons-16",
|
|
82
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
83
|
-
width: "16",
|
|
84
|
-
height: "16",
|
|
85
|
-
fill: "none"
|
|
86
|
-
}), [
|
|
87
|
-
e.$attrs["svg-title"] ? (l(), c("title", i1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
88
|
-
t[0] || (t[0] = d("path", {
|
|
89
|
-
fill: "#00112C",
|
|
90
|
-
d: "M7.25 6.25H5.75V12.75H7.25V6.25Z"
|
|
91
|
-
}, null, -1)),
|
|
92
|
-
t[1] || (t[1] = d("path", {
|
|
93
|
-
fill: "#00112C",
|
|
94
|
-
d: "M8.75 6.25H10.25V12.75H8.75V6.25Z"
|
|
95
|
-
}, null, -1)),
|
|
96
|
-
t[2] || (t[2] = d("path", {
|
|
97
|
-
fill: "#00112C",
|
|
98
|
-
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"
|
|
99
|
-
}, null, -1))
|
|
100
|
-
], 16);
|
|
101
|
-
}
|
|
102
|
-
const n1 = /* @__PURE__ */ L(s1, [["render", r1]]);
|
|
103
|
-
function l1(e, t) {
|
|
104
|
-
const s = k(!1);
|
|
105
|
-
let n;
|
|
106
|
-
function o() {
|
|
107
|
-
n && n.disconnect();
|
|
108
|
-
}
|
|
109
|
-
return Te(() => {
|
|
110
|
-
o();
|
|
111
|
-
}), ke(() => {
|
|
112
|
-
o(), n = new IntersectionObserver(
|
|
113
|
-
(p) => {
|
|
114
|
-
s.value = !p[0].isIntersecting;
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
root: t.value,
|
|
118
|
-
threshold: 1
|
|
119
|
-
}
|
|
120
|
-
), n.observe(e.value.$el);
|
|
121
|
-
}), s;
|
|
122
|
-
}
|
|
123
|
-
const ue = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
124
|
-
function Ee(e, t) {
|
|
125
|
-
let s = 0, n = t;
|
|
126
|
-
for (; n >= 1e3 && s < ue.length - 1; )
|
|
127
|
-
n /= 1e3, s++;
|
|
128
|
-
return new Intl.NumberFormat(e, {
|
|
129
|
-
style: "unit",
|
|
130
|
-
unit: ue[s],
|
|
131
|
-
unitDisplay: "short",
|
|
132
|
-
// Displays as "kB" instead of "kilobytes"
|
|
133
|
-
maximumFractionDigits: 2
|
|
134
|
-
// Limits to 2 decimal places
|
|
135
|
-
}).format(n);
|
|
136
|
-
}
|
|
137
|
-
var S = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(S || {}), w = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(w || {}), j = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(j || {}), C = /* @__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))(C || {});
|
|
138
|
-
const o1 = [
|
|
139
|
-
"application/msword",
|
|
140
|
-
// .doc
|
|
141
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
142
|
-
// .docx
|
|
143
|
-
"application/rtf"
|
|
144
|
-
// .rtf
|
|
145
|
-
], a1 = [
|
|
146
|
-
"application/vnd.ms-excel",
|
|
147
|
-
// .xls
|
|
148
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
149
|
-
// .xlsx
|
|
150
|
-
"application/vnd.oasis.opendocument.spreadsheet",
|
|
151
|
-
//.ods
|
|
152
|
-
"application/vnd.apple.numbers",
|
|
153
|
-
// .numbers
|
|
154
|
-
"application/x-iwork-numbers-sffnumbers",
|
|
155
|
-
// .numbers
|
|
156
|
-
"text/csv"
|
|
157
|
-
// .csv
|
|
158
|
-
], u1 = [
|
|
159
|
-
"application/vnd.ms-powerpoint",
|
|
160
|
-
// .ppt
|
|
161
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
162
|
-
// .pptx
|
|
163
|
-
"application/vnd.oasis.opendocument.presentation"
|
|
164
|
-
// .odp
|
|
165
|
-
], d1 = [
|
|
166
|
-
"application/zip",
|
|
167
|
-
// .zip
|
|
168
|
-
"application/vnd.rar",
|
|
169
|
-
// .rar
|
|
170
|
-
"application/x-7z-compressed",
|
|
171
|
-
// .7z
|
|
172
|
-
"application/gzip",
|
|
173
|
-
// .gz, .tar.gz, .tgz
|
|
174
|
-
"application/x-tar",
|
|
175
|
-
// .tar
|
|
176
|
-
"application/x-bzip2",
|
|
177
|
-
// .bz2
|
|
178
|
-
"application/x-xz",
|
|
179
|
-
// .xz
|
|
180
|
-
"application/x-lzma",
|
|
181
|
-
// .lzma
|
|
182
|
-
"application/x-compress",
|
|
183
|
-
// .Z
|
|
184
|
-
"application/vnd.ms-cab-compressed"
|
|
185
|
-
// .cab
|
|
186
|
-
];
|
|
187
|
-
function p1(e) {
|
|
188
|
-
return a1.includes(e.type) ? C.TABLE : e.type.startsWith("text/") || o1.includes(e.type) ? C.TEXT : e.type.startsWith("image/") ? C.IMAGE : e.type.startsWith("video/") ? C.VIDEO : e.type.startsWith("audio/") ? C.AUDIO : e.type === "application/pdf" ? C.PDF : u1.includes(e.type) ? C.SLIDES : d1.includes(e.type) ? C.COMPRESSED : C.GENERIC;
|
|
189
|
-
}
|
|
190
|
-
function f1(e, t) {
|
|
191
|
-
if (!t)
|
|
192
|
-
return !0;
|
|
193
|
-
const s = t.split(",").map((n) => n.trim());
|
|
194
|
-
for (const n of s)
|
|
195
|
-
if (n.startsWith(".")) {
|
|
196
|
-
if (e.name.endsWith(n))
|
|
197
|
-
return !0;
|
|
198
|
-
} else if (n.endsWith("/*")) {
|
|
199
|
-
const o = n.split("/")[0];
|
|
200
|
-
if (e.type.startsWith(o))
|
|
201
|
-
return !0;
|
|
202
|
-
} else if (e.type === n)
|
|
203
|
-
return !0;
|
|
204
|
-
return !1;
|
|
205
|
-
}
|
|
206
|
-
function c1(e, t, s) {
|
|
207
|
-
const n = new FileReader(), o = e;
|
|
208
|
-
if (!f1(o.data, t)) {
|
|
209
|
-
o.state = S.ERROR, o.errors.push(w.ERROR_TYPE);
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
n.onload = (p) => {
|
|
213
|
-
if (s && o.type === C.IMAGE) {
|
|
214
|
-
const R = new Blob([p.target.result], { type: o.data.type }), I = URL.createObjectURL(R), a = new Image();
|
|
215
|
-
a.onload = function() {
|
|
216
|
-
(a.width > s.width || a.height > s.height) && (o.state = S.ERROR, o.errors.push(w.ERROR_DIMENSIONS)), URL.revokeObjectURL(I);
|
|
217
|
-
}, a.onerror = function() {
|
|
218
|
-
URL.revokeObjectURL(I);
|
|
219
|
-
}, a.src = I;
|
|
220
|
-
}
|
|
221
|
-
}, n.onprogress = (p) => {
|
|
222
|
-
p.lengthComputable && (o.progress = p.loaded / p.total * 100);
|
|
223
|
-
}, n.onloadend = () => {
|
|
224
|
-
o.state !== S.ERROR && (o.state = S.SUCCESS), o.progress = null;
|
|
225
|
-
}, n.onerror = () => {
|
|
226
|
-
o.state = S.ERROR, o.errors.push(w.ERROR_LOAD), o.progress = null;
|
|
227
|
-
}, n.readAsArrayBuffer(o.data);
|
|
228
|
-
}
|
|
229
|
-
let de = 0;
|
|
230
|
-
const m1 = {
|
|
231
|
-
beforeCreate() {
|
|
232
|
-
this.uuid = de.toString(), de += 1;
|
|
233
|
-
}
|
|
234
|
-
}, C1 = { key: 0 }, g1 = ["clip-path"], v1 = ["id"];
|
|
235
|
-
function h1(e, t, s, n, o, p) {
|
|
236
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
237
|
-
class: "ui-assets-icons-16",
|
|
238
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
239
|
-
width: "16",
|
|
240
|
-
height: "16",
|
|
241
|
-
fill: "none"
|
|
242
|
-
}), [
|
|
243
|
-
e.$attrs["svg-title"] ? (l(), c("title", C1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
244
|
-
d("g", {
|
|
245
|
-
"clip-path": "url(#uia-icons-16-attachment__a" + e.uuid + ")"
|
|
246
|
-
}, t[0] || (t[0] = [
|
|
247
|
-
d("path", {
|
|
248
|
-
fill: "#00112C",
|
|
249
|
-
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"
|
|
250
|
-
}, null, -1)
|
|
251
|
-
]), 8, g1),
|
|
252
|
-
d("defs", null, [
|
|
253
|
-
d("clipPath", {
|
|
254
|
-
id: "uia-icons-16-attachment__a" + e.uuid
|
|
255
|
-
}, t[1] || (t[1] = [
|
|
256
|
-
d("rect", {
|
|
257
|
-
width: "16",
|
|
258
|
-
height: "16",
|
|
259
|
-
fill: "#fff"
|
|
260
|
-
}, null, -1)
|
|
261
|
-
]), 8, v1)
|
|
262
|
-
])
|
|
263
|
-
], 16);
|
|
264
|
-
}
|
|
265
|
-
const $1 = /* @__PURE__ */ L(m1, [["render", h1]]);
|
|
266
|
-
let pe = 0;
|
|
267
|
-
const y1 = {
|
|
268
|
-
beforeCreate() {
|
|
269
|
-
this.uuid = pe.toString(), pe += 1;
|
|
270
|
-
}
|
|
271
|
-
}, _1 = { key: 0 };
|
|
272
|
-
function R1(e, t, s, n, o, p) {
|
|
273
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
274
|
-
class: "ui-assets-icons-16",
|
|
275
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
276
|
-
width: "16",
|
|
277
|
-
height: "16",
|
|
278
|
-
fill: "none"
|
|
279
|
-
}), [
|
|
280
|
-
e.$attrs["svg-title"] ? (l(), c("title", _1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
281
|
-
t[0] || (t[0] = d("path", {
|
|
282
|
-
fill: "#00112C",
|
|
283
|
-
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"
|
|
284
|
-
}, null, -1))
|
|
285
|
-
], 16);
|
|
286
|
-
}
|
|
287
|
-
const b1 = /* @__PURE__ */ L(y1, [["render", R1]]);
|
|
288
|
-
let fe = 0;
|
|
289
|
-
const E1 = {
|
|
290
|
-
beforeCreate() {
|
|
291
|
-
this.uuid = fe.toString(), fe += 1;
|
|
292
|
-
}
|
|
293
|
-
}, w1 = { key: 0 };
|
|
294
|
-
function L1(e, t, s, n, o, p) {
|
|
295
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
296
|
-
class: "ui-assets-icons-16",
|
|
297
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
298
|
-
width: "16",
|
|
299
|
-
height: "16",
|
|
300
|
-
fill: "none"
|
|
301
|
-
}), [
|
|
302
|
-
e.$attrs["svg-title"] ? (l(), c("title", w1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
303
|
-
t[0] || (t[0] = d("path", {
|
|
304
|
-
fill: "#00112C",
|
|
305
|
-
d: "M13.75 13.5C13.75 14.7442 12.7442 15.75 11.5 15.75H4.5C3.25579 15.75 2.25 14.7442 2.25 13.5V2.5C2.25 1.25579 3.25579 0.25 4.5 0.25H9.31055L13.75 4.68728V13.5ZM3.75 2.5V13.5C3.75 13.9158 4.08421 14.25 4.5 14.25H11.5C11.9158 14.25 12.25 13.9158 12.25 13.5V6.75H9.5C8.25736 6.75 7.25 5.74264 7.25 4.5V1.75H4.5C4.08421 1.75 3.75 2.08421 3.75 2.5ZM8.75 1.81052V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H12.1912L8.75 1.81052Z"
|
|
306
|
-
}, null, -1))
|
|
307
|
-
], 16);
|
|
308
|
-
}
|
|
309
|
-
const I1 = /* @__PURE__ */ L(E1, [["render", L1]]);
|
|
310
|
-
let ce = 0;
|
|
311
|
-
const V1 = {
|
|
312
|
-
beforeCreate() {
|
|
313
|
-
this.uuid = ce.toString(), ce += 1;
|
|
314
|
-
}
|
|
315
|
-
}, H1 = { key: 0 };
|
|
316
|
-
function S1(e, t, s, n, o, p) {
|
|
317
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
318
|
-
class: "ui-assets-icons-16",
|
|
319
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
320
|
-
width: "16",
|
|
321
|
-
height: "16",
|
|
322
|
-
fill: "none"
|
|
323
|
-
}), [
|
|
324
|
-
e.$attrs["svg-title"] ? (l(), c("title", H1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
325
|
-
t[0] || (t[0] = d("path", {
|
|
326
|
-
fill: "#00112C",
|
|
327
|
-
d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z"
|
|
328
|
-
}, null, -1)),
|
|
329
|
-
t[1] || (t[1] = d("path", {
|
|
330
|
-
fill: "#00112C",
|
|
331
|
-
d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z"
|
|
332
|
-
}, null, -1)),
|
|
333
|
-
t[2] || (t[2] = d("path", {
|
|
334
|
-
fill: "#00112C",
|
|
335
|
-
d: "M13.7461 13.5C13.7461 14.7442 12.7403 15.75 11.4961 15.75H4.49609C3.25188 15.75 2.24609 14.7442 2.24609 13.5V2.5C2.24609 1.25579 3.25188 0.25 4.49609 0.25H9.30665L13.7461 4.68728V13.5ZM3.74609 2.5V13.5C3.74609 13.9158 4.08031 14.25 4.49609 14.25H11.4961C11.9119 14.25 12.2461 13.9158 12.2461 13.5V6.75H9.49609C8.25345 6.75 7.24609 5.74264 7.24609 4.5V1.75H4.49609C4.08031 1.75 3.74609 2.08421 3.74609 2.5ZM8.74609 1.81052V4.5C8.74609 4.91421 9.08188 5.25 9.49609 5.25H12.1873L8.74609 1.81052Z"
|
|
336
|
-
}, null, -1))
|
|
337
|
-
], 16);
|
|
338
|
-
}
|
|
339
|
-
const M1 = /* @__PURE__ */ L(V1, [["render", S1]]);
|
|
340
|
-
let me = 0;
|
|
341
|
-
const D1 = {
|
|
342
|
-
beforeCreate() {
|
|
343
|
-
this.uuid = me.toString(), me += 1;
|
|
344
|
-
}
|
|
345
|
-
}, O1 = { key: 0 };
|
|
346
|
-
function F1(e, t, s, n, o, p) {
|
|
347
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
348
|
-
class: "ui-assets-icons-16",
|
|
349
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
350
|
-
width: "16",
|
|
351
|
-
height: "16",
|
|
352
|
-
fill: "none"
|
|
353
|
-
}), [
|
|
354
|
-
e.$attrs["svg-title"] ? (l(), c("title", O1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
355
|
-
t[0] || (t[0] = d("path", {
|
|
356
|
-
fill: "#00112C",
|
|
357
|
-
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"
|
|
358
|
-
}, null, -1))
|
|
359
|
-
], 16);
|
|
360
|
-
}
|
|
361
|
-
const T1 = /* @__PURE__ */ L(D1, [["render", F1]]);
|
|
362
|
-
let Ce = 0;
|
|
363
|
-
const k1 = {
|
|
364
|
-
beforeCreate() {
|
|
365
|
-
this.uuid = Ce.toString(), Ce += 1;
|
|
366
|
-
}
|
|
367
|
-
}, x1 = { key: 0 };
|
|
368
|
-
function Z1(e, t, s, n, o, p) {
|
|
369
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
370
|
-
class: "ui-assets-icons-16",
|
|
371
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
372
|
-
width: "16",
|
|
373
|
-
height: "16",
|
|
374
|
-
fill: "none"
|
|
375
|
-
}), [
|
|
376
|
-
e.$attrs["svg-title"] ? (l(), c("title", x1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
377
|
-
t[0] || (t[0] = d("path", {
|
|
378
|
-
fill: "#00112C",
|
|
379
|
-
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"
|
|
380
|
-
}, null, -1)),
|
|
381
|
-
t[1] || (t[1] = d("path", {
|
|
382
|
-
fill: "#00112C",
|
|
383
|
-
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"
|
|
384
|
-
}, null, -1))
|
|
385
|
-
], 16);
|
|
386
|
-
}
|
|
387
|
-
const z1 = /* @__PURE__ */ L(k1, [["render", Z1]]);
|
|
388
|
-
let ge = 0;
|
|
389
|
-
const B1 = {
|
|
390
|
-
beforeCreate() {
|
|
391
|
-
this.uuid = ge.toString(), ge += 1;
|
|
392
|
-
}
|
|
393
|
-
}, A1 = { key: 0 }, N1 = ["clip-path"], U1 = ["id"];
|
|
394
|
-
function P1(e, t, s, n, o, p) {
|
|
395
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
396
|
-
class: "ui-assets-icons-16",
|
|
397
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
398
|
-
width: "16",
|
|
399
|
-
height: "16",
|
|
400
|
-
fill: "none"
|
|
401
|
-
}), [
|
|
402
|
-
e.$attrs["svg-title"] ? (l(), c("title", A1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
403
|
-
d("g", {
|
|
404
|
-
fill: "#00112C",
|
|
405
|
-
"clip-path": "url(#uia-icons-16-play_circle__a" + e.uuid + ")"
|
|
406
|
-
}, t[0] || (t[0] = [
|
|
407
|
-
d("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
|
|
408
|
-
d("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)
|
|
409
|
-
]), 8, N1),
|
|
410
|
-
d("defs", null, [
|
|
411
|
-
d("clipPath", {
|
|
412
|
-
id: "uia-icons-16-play_circle__a" + e.uuid
|
|
413
|
-
}, t[1] || (t[1] = [
|
|
414
|
-
d("rect", {
|
|
415
|
-
width: "16",
|
|
416
|
-
height: "16",
|
|
417
|
-
fill: "#fff"
|
|
418
|
-
}, null, -1)
|
|
419
|
-
]), 8, U1)
|
|
420
|
-
])
|
|
421
|
-
], 16);
|
|
422
|
-
}
|
|
423
|
-
const G1 = /* @__PURE__ */ L(B1, [["render", P1]]);
|
|
424
|
-
let ve = 0;
|
|
425
|
-
const W1 = {
|
|
426
|
-
beforeCreate() {
|
|
427
|
-
this.uuid = ve.toString(), ve += 1;
|
|
428
|
-
}
|
|
429
|
-
}, j1 = { key: 0 };
|
|
430
|
-
function Y1(e, t, s, n, o, p) {
|
|
431
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
432
|
-
class: "ui-assets-icons-16",
|
|
433
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
434
|
-
width: "16",
|
|
435
|
-
height: "16",
|
|
436
|
-
fill: "none"
|
|
437
|
-
}), [
|
|
438
|
-
e.$attrs["svg-title"] ? (l(), c("title", j1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
439
|
-
t[0] || (t[0] = d("path", {
|
|
440
|
-
fill: "#00112C",
|
|
441
|
-
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"
|
|
442
|
-
}, null, -1)),
|
|
443
|
-
t[1] || (t[1] = d("path", {
|
|
444
|
-
fill: "#00112C",
|
|
445
|
-
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"
|
|
446
|
-
}, null, -1)),
|
|
447
|
-
t[2] || (t[2] = d("path", {
|
|
448
|
-
fill: "#00112C",
|
|
449
|
-
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"
|
|
450
|
-
}, null, -1))
|
|
451
|
-
], 16);
|
|
452
|
-
}
|
|
453
|
-
const q1 = /* @__PURE__ */ L(W1, [["render", Y1]]);
|
|
454
|
-
let he = 0;
|
|
455
|
-
const X1 = {
|
|
456
|
-
beforeCreate() {
|
|
457
|
-
this.uuid = he.toString(), he += 1;
|
|
458
|
-
}
|
|
459
|
-
}, J1 = { key: 0 };
|
|
460
|
-
function K1(e, t, s, n, o, p) {
|
|
461
|
-
return l(), c("svg", M({ role: "img" }, e.$attrs, {
|
|
462
|
-
class: "ui-assets-icons-16",
|
|
463
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
464
|
-
width: "16",
|
|
465
|
-
height: "16",
|
|
466
|
-
fill: "none"
|
|
467
|
-
}), [
|
|
468
|
-
e.$attrs["svg-title"] ? (l(), c("title", J1, f(e.$attrs["svg-title"]), 1)) : m("", !0),
|
|
469
|
-
t[0] || (t[0] = d("path", {
|
|
470
|
-
fill: "#00112C",
|
|
471
|
-
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"
|
|
472
|
-
}, null, -1))
|
|
473
|
-
], 16);
|
|
474
|
-
}
|
|
475
|
-
const Q1 = /* @__PURE__ */ L(X1, [["render", K1]]), et = {
|
|
476
|
-
[C.AUDIO]: q1,
|
|
477
|
-
[C.COMPRESSED]: T1,
|
|
478
|
-
[C.GENERIC]: $1,
|
|
479
|
-
[C.IMAGE]: z1,
|
|
480
|
-
[C.PDF]: I1,
|
|
481
|
-
[C.SLIDES]: b1,
|
|
482
|
-
[C.TABLE]: Q1,
|
|
483
|
-
[C.TEXT]: M1,
|
|
484
|
-
[C.VIDEO]: G1
|
|
485
|
-
};
|
|
486
|
-
function tt(e) {
|
|
487
|
-
return et[e.type];
|
|
488
|
-
}
|
|
489
|
-
function st(e) {
|
|
490
|
-
switch (e.type) {
|
|
491
|
-
case C.COMPRESSED:
|
|
492
|
-
case C.GENERIC:
|
|
493
|
-
return "grey";
|
|
494
|
-
case C.PDF:
|
|
495
|
-
case C.SLIDES:
|
|
496
|
-
return "orange";
|
|
497
|
-
case C.TEXT:
|
|
498
|
-
return "blue";
|
|
499
|
-
default:
|
|
500
|
-
return "green";
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
const we = {
|
|
504
|
-
"en-US": {
|
|
505
|
-
cancel: "Cancel",
|
|
506
|
-
fileExceedsSizeLimit: "File exceeds size limit",
|
|
507
|
-
fileTypeMustBe: "File type must be {list}",
|
|
508
|
-
imageDimensionsExceedLimits: "Image dimensions exceed limits",
|
|
509
|
-
remove: "Remove",
|
|
510
|
-
retry: "Retry"
|
|
511
|
-
},
|
|
512
|
-
"pt-BR": {
|
|
513
|
-
cancel: "Cancelar",
|
|
514
|
-
remove: "Remover",
|
|
515
|
-
retry: "Tentar novamente"
|
|
516
|
-
},
|
|
517
|
-
"ja-JP": {
|
|
518
|
-
cancel: "キャンセル",
|
|
519
|
-
remove: "削除",
|
|
520
|
-
retry: "再試行"
|
|
521
|
-
}
|
|
522
|
-
}, it = { class: "b-file-uploader-file-card__details" }, rt = { class: "b-file-uploader-file-card__info" }, nt = { class: "b-file-uploader-file-card__actions" }, lt = {
|
|
523
|
-
name: "file-uploader-file-card",
|
|
524
|
-
i18n: { messages: we }
|
|
525
|
-
}, ot = /* @__PURE__ */ Y({
|
|
526
|
-
...lt,
|
|
527
|
-
props: {
|
|
528
|
-
file: {},
|
|
529
|
-
supportedFileTypes: { default: null }
|
|
530
|
-
},
|
|
531
|
-
emits: ["cancel", "remove", "retry"],
|
|
532
|
-
setup(e, { emit: t }) {
|
|
533
|
-
const n = e, o = t, { t: p, locale: R } = q({ messages: we }), I = k(n.file.state === S.SUCCESS), a = h(() => URL.createObjectURL(n.file.data)), b = h(() => n.file.state === S.ERROR), F = h(() => n.file.errors.includes(w.ERROR_LOAD)), E = h(() => n.file.errors.includes(w.ERROR_SIZE)), B = h(() => n.file.errors.includes(w.ERROR_DIMENSIONS)), A = h(() => n.file.errors.includes(w.ERROR_TYPE)), Z = h(() => n.file.state === S.LOADING), z = h(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), X = h(() => Ee(R.value, n.file.data.size)), G = k(), N = k(), J = l1(G, N), K = h(() => ({
|
|
534
|
-
"b-file-uploader-file-card--error": b.value
|
|
535
|
-
})), Q = h(() => ({
|
|
536
|
-
[`b-file-uploader-file-card__icon--${st(n.file)}`]: I.value,
|
|
537
|
-
"b-file-uploader-file-card__icon--error": b.value
|
|
538
|
-
})), U = h(() => Z.value ? Ye : b.value ? Re : I.value ? tt(n.file) : Ue);
|
|
539
|
-
return ye(
|
|
540
|
-
() => n.file.state,
|
|
541
|
-
(H) => {
|
|
542
|
-
if (H === S.SUCCESS && !I.value) {
|
|
543
|
-
const D = setTimeout(() => {
|
|
544
|
-
I.value = !0, clearTimeout(D);
|
|
545
|
-
}, 1200);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
), (H, D) => (l(), c("div", {
|
|
549
|
-
class: T(["b-file-uploader-file-card", K.value])
|
|
550
|
-
}, [
|
|
551
|
-
d("div", it, [
|
|
552
|
-
d("div", rt, [
|
|
553
|
-
O(r(t1), {
|
|
554
|
-
name: r(be) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
555
|
-
"show-file-icon": I.value
|
|
556
|
-
}, {
|
|
557
|
-
default: g(() => [
|
|
558
|
-
(l(), v(xe(U.value), {
|
|
559
|
-
key: JSON.stringify(U.value),
|
|
560
|
-
small: "",
|
|
561
|
-
class: T(["b-file-uploader-file-card__icon", Q.value]),
|
|
562
|
-
"data-testid": "file-uploader-item-icon"
|
|
563
|
-
}, null, 8, ["class"]))
|
|
564
|
-
]),
|
|
565
|
-
_: 1
|
|
566
|
-
}, 8, ["name", "show-file-icon"]),
|
|
567
|
-
d("div", {
|
|
568
|
-
ref_key: "fileNameContainerRef",
|
|
569
|
-
ref: N,
|
|
570
|
-
class: "b-file-uploader-file-card__file-name"
|
|
571
|
-
}, [
|
|
572
|
-
O(r(je), {
|
|
573
|
-
download: H.file.data.name,
|
|
574
|
-
to: a.value,
|
|
575
|
-
"disable-typography": "",
|
|
576
|
-
"is-not-routing": "",
|
|
577
|
-
variant: "quiet"
|
|
578
|
-
}, {
|
|
579
|
-
default: g(() => [
|
|
580
|
-
_e((l(), v(r(V), {
|
|
581
|
-
ref_key: "fileNameRef",
|
|
582
|
-
ref: G,
|
|
583
|
-
stronger: "",
|
|
584
|
-
el: "span"
|
|
585
|
-
}, {
|
|
586
|
-
default: g(() => [
|
|
587
|
-
y(f(H.file.data.name), 1)
|
|
588
|
-
]),
|
|
589
|
-
_: 1
|
|
590
|
-
})), [
|
|
591
|
-
[r(We), r(J) ? H.file.data.name : null]
|
|
592
|
-
])
|
|
593
|
-
]),
|
|
594
|
-
_: 1
|
|
595
|
-
}, 8, ["download", "to"])
|
|
596
|
-
], 512),
|
|
597
|
-
H.file.progress ? (l(), v(r(V), {
|
|
598
|
-
key: 0,
|
|
599
|
-
el: "span"
|
|
600
|
-
}, {
|
|
601
|
-
default: g(() => [
|
|
602
|
-
y(f(z.value), 1)
|
|
603
|
-
]),
|
|
604
|
-
_: 1
|
|
605
|
-
})) : H.file.data.size ? (l(), v(r(V), {
|
|
606
|
-
key: 1,
|
|
607
|
-
class: "b-file-uploader-file-card__file-size",
|
|
608
|
-
el: "span"
|
|
609
|
-
}, {
|
|
610
|
-
default: g(() => [
|
|
611
|
-
y(f(X.value), 1)
|
|
612
|
-
]),
|
|
613
|
-
_: 1
|
|
614
|
-
})) : m("", !0)
|
|
615
|
-
]),
|
|
616
|
-
E.value ? (l(), v(r(V), {
|
|
617
|
-
key: 0,
|
|
618
|
-
class: "b-file-uploader-file-card__error-message"
|
|
619
|
-
}, {
|
|
620
|
-
default: g(() => [
|
|
621
|
-
y(f(r(p)("fileExceedsSizeLimit")), 1)
|
|
622
|
-
]),
|
|
623
|
-
_: 1
|
|
624
|
-
})) : m("", !0),
|
|
625
|
-
B.value ? (l(), v(r(V), {
|
|
626
|
-
key: 1,
|
|
627
|
-
class: "b-file-uploader-file-card__error-message"
|
|
628
|
-
}, {
|
|
629
|
-
default: g(() => [
|
|
630
|
-
y(f(r(p)("imageDimensionsExceedLimits")), 1)
|
|
631
|
-
]),
|
|
632
|
-
_: 1
|
|
633
|
-
})) : m("", !0),
|
|
634
|
-
A.value && H.supportedFileTypes ? (l(), v(r(V), {
|
|
635
|
-
key: 2,
|
|
636
|
-
class: "b-file-uploader-file-card__error-message"
|
|
637
|
-
}, {
|
|
638
|
-
default: g(() => [
|
|
639
|
-
y(f(r(p)("fileTypeMustBe", { list: H.supportedFileTypes })), 1)
|
|
640
|
-
]),
|
|
641
|
-
_: 1
|
|
642
|
-
})) : m("", !0)
|
|
643
|
-
]),
|
|
644
|
-
d("div", nt, [
|
|
645
|
-
F.value ? (l(), v(r(W), {
|
|
646
|
-
key: 0,
|
|
647
|
-
variant: "tertiary",
|
|
648
|
-
onClick: D[0] || (D[0] = (x) => o("retry"))
|
|
649
|
-
}, {
|
|
650
|
-
iconLeft: g(() => [
|
|
651
|
-
O(r(Ge), {
|
|
652
|
-
"svg-title": r(p)("retry")
|
|
653
|
-
}, null, 8, ["svg-title"])
|
|
654
|
-
]),
|
|
655
|
-
default: g(() => [
|
|
656
|
-
y(" " + f(r(p)("retry")), 1)
|
|
657
|
-
]),
|
|
658
|
-
_: 1
|
|
659
|
-
})) : m("", !0),
|
|
660
|
-
Z.value || b.value ? (l(), v(r(W), {
|
|
661
|
-
key: 1,
|
|
662
|
-
variant: "tertiary",
|
|
663
|
-
onClick: D[1] || (D[1] = (x) => o("cancel"))
|
|
664
|
-
}, {
|
|
665
|
-
iconLeft: g(() => [
|
|
666
|
-
O(r(Pe), {
|
|
667
|
-
"svg-title": r(p)("cancel")
|
|
668
|
-
}, null, 8, ["svg-title"])
|
|
669
|
-
]),
|
|
670
|
-
_: 1
|
|
671
|
-
})) : (l(), v(r(W), {
|
|
672
|
-
key: 2,
|
|
673
|
-
variant: "tertiary",
|
|
674
|
-
onClick: D[2] || (D[2] = (x) => o("remove"))
|
|
675
|
-
}, {
|
|
676
|
-
iconLeft: g(() => [
|
|
677
|
-
O(r(n1), {
|
|
678
|
-
"svg-title": r(p)("remove")
|
|
679
|
-
}, null, 8, ["svg-title"])
|
|
680
|
-
]),
|
|
681
|
-
_: 1
|
|
682
|
-
}))
|
|
683
|
-
])
|
|
684
|
-
], 2));
|
|
685
|
-
}
|
|
686
|
-
}), at = /* @__PURE__ */ L(ot, [["__scopeId", "data-v-13fa0d5e"]]), Le = {
|
|
687
|
-
"en-US": {
|
|
688
|
-
maxFileSize: "Max file size: {size}",
|
|
689
|
-
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
690
|
-
maxImageHeight: "Max image height: {height}px",
|
|
691
|
-
maxImageWidth: "Max image width: {width}px",
|
|
692
|
-
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
693
|
-
supportedFileTypes: "Supported file types: {list}"
|
|
694
|
-
}
|
|
695
|
-
}, ut = {
|
|
696
|
-
i18n: { messages: Le }
|
|
697
|
-
}, dt = /* @__PURE__ */ Y({
|
|
698
|
-
...ut,
|
|
699
|
-
__name: "file-uploader-restrictions",
|
|
700
|
-
props: {
|
|
701
|
-
condensed: { type: Boolean, default: null },
|
|
702
|
-
disabled: { type: Boolean, default: null },
|
|
703
|
-
maxCount: { default: null },
|
|
704
|
-
maxDimensions: { default: null },
|
|
705
|
-
maxSize: { default: null },
|
|
706
|
-
supportedFileTypes: { default: null }
|
|
707
|
-
},
|
|
708
|
-
setup(e) {
|
|
709
|
-
const t = e, { t: s, tc: n, locale: o } = q({ messages: Le }), p = h(() => ({
|
|
710
|
-
"b-file-uploader-restrictions--condensed": t.condensed,
|
|
711
|
-
"b-file-uploader-restrictions--disabled": t.disabled
|
|
712
|
-
}));
|
|
713
|
-
function R(a) {
|
|
714
|
-
return {
|
|
715
|
-
"b-file-uploader-restrictions--error": a
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
const I = h(() => {
|
|
719
|
-
if (!t.maxDimensions)
|
|
720
|
-
return null;
|
|
721
|
-
const {
|
|
722
|
-
value: { width: a, height: b }
|
|
723
|
-
} = t.maxDimensions;
|
|
724
|
-
return a && b ? s("maxImageDimensions", { width: a, height: b }) : a ? s("maxImageWidth", { width: a }) : b ? s("maxImageHeight", { height: b }) : null;
|
|
725
|
-
});
|
|
726
|
-
return (a, b) => (l(), c("div", {
|
|
727
|
-
class: T(["b-file-uploader-restrictions", p.value])
|
|
728
|
-
}, [
|
|
729
|
-
a.supportedFileTypes ? (l(), v(r(V), {
|
|
730
|
-
key: 0,
|
|
731
|
-
class: T(R(a.supportedFileTypes.error))
|
|
732
|
-
}, {
|
|
733
|
-
default: g(() => [
|
|
734
|
-
y(f(r(s)("supportedFileTypes", { list: a.supportedFileTypes.value })), 1)
|
|
735
|
-
]),
|
|
736
|
-
_: 1
|
|
737
|
-
}, 8, ["class"])) : m("", !0),
|
|
738
|
-
a.maxSize ? (l(), v(r(V), {
|
|
739
|
-
key: 1,
|
|
740
|
-
class: T(R(a.maxSize.error))
|
|
741
|
-
}, {
|
|
742
|
-
default: g(() => [
|
|
743
|
-
y(f(r(s)("maxFileSize", { size: r(Ee)(r(o), a.maxSize.value) })), 1)
|
|
744
|
-
]),
|
|
745
|
-
_: 1
|
|
746
|
-
}, 8, ["class"])) : m("", !0),
|
|
747
|
-
a.maxDimensions ? (l(), v(r(V), {
|
|
748
|
-
key: 2,
|
|
749
|
-
class: T(R(a.maxDimensions.error))
|
|
750
|
-
}, {
|
|
751
|
-
default: g(() => [
|
|
752
|
-
y(f(I.value), 1)
|
|
753
|
-
]),
|
|
754
|
-
_: 1
|
|
755
|
-
}, 8, ["class"])) : m("", !0),
|
|
756
|
-
a.maxCount ? (l(), v(r(V), {
|
|
757
|
-
key: 3,
|
|
758
|
-
class: T(R(a.maxCount.error))
|
|
759
|
-
}, {
|
|
760
|
-
default: g(() => [
|
|
761
|
-
y(f(r(n)("maxUpload", a.maxCount.value)), 1)
|
|
762
|
-
]),
|
|
763
|
-
_: 1
|
|
764
|
-
}, 8, ["class"])) : m("", !0)
|
|
765
|
-
], 2));
|
|
766
|
-
}
|
|
767
|
-
}), $e = /* @__PURE__ */ L(dt, [["__scopeId", "data-v-d7c2e9cd"]]);
|
|
768
|
-
function pt(e) {
|
|
769
|
-
const { locale: t, t: s } = q();
|
|
770
|
-
return { supportedFileTypeList: h(() => {
|
|
771
|
-
const o = new Intl.ListFormat(t.value, { style: "short", type: "unit" });
|
|
772
|
-
return e != null && e.value ? o.format(
|
|
773
|
-
e.value.split(",").map((p) => {
|
|
774
|
-
const R = p.trim();
|
|
775
|
-
switch (R) {
|
|
776
|
-
case "audio/*":
|
|
777
|
-
return s("audioFiles");
|
|
778
|
-
case "image/*":
|
|
779
|
-
return s("imageFiles");
|
|
780
|
-
case "video/*":
|
|
781
|
-
return s("videoFiles");
|
|
782
|
-
default:
|
|
783
|
-
return R.toUpperCase();
|
|
784
|
-
}
|
|
785
|
-
})
|
|
786
|
-
) : null;
|
|
787
|
-
}) };
|
|
788
|
-
}
|
|
789
|
-
const Ie = {
|
|
790
|
-
"en-US": {
|
|
791
|
-
audioFiles: "audio files",
|
|
792
|
-
browseFiles: "Browse files",
|
|
793
|
-
dropArea: "Drop area",
|
|
794
|
-
dropFiles: "Drop file to upload | Drop files to upload",
|
|
795
|
-
fileExceedsSizeLimit: "File exceeds size limit",
|
|
796
|
-
imageFiles: "image files",
|
|
797
|
-
tooManyFiles: "Too many files",
|
|
798
|
-
upload: "Upload",
|
|
799
|
-
videoFiles: "video files",
|
|
800
|
-
warning: "Warning",
|
|
801
|
-
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
802
|
-
},
|
|
803
|
-
"pt-BR": {
|
|
804
|
-
upload: "Carregar",
|
|
805
|
-
warning: "Aviso"
|
|
806
|
-
},
|
|
807
|
-
"ja-JP": {
|
|
808
|
-
upload: "アップロード",
|
|
809
|
-
warning: "警告"
|
|
810
|
-
}
|
|
811
|
-
}, ft = ["id", "accept", "disabled", "multiple"], ct = ["aria-label", "tabindex"], mt = { class: "b-file-uploader__icon" }, Ct = { class: "b-file-uploader__files" }, gt = {
|
|
812
|
-
model: { prop: "modelValue" },
|
|
813
|
-
i18n: { messages: Ie }
|
|
814
|
-
}, vt = /* @__PURE__ */ Y({
|
|
815
|
-
...gt,
|
|
816
|
-
__name: "file-uploader",
|
|
817
|
-
props: {
|
|
818
|
-
accept: { default: null },
|
|
819
|
-
condensed: { type: Boolean },
|
|
820
|
-
description: { default: null },
|
|
821
|
-
disabled: { type: Boolean },
|
|
822
|
-
errorMessage: { default: null },
|
|
823
|
-
label: {},
|
|
824
|
-
maxCount: { default: 1 },
|
|
825
|
-
maxDimensions: { default: null },
|
|
826
|
-
maxSize: { default: null },
|
|
827
|
-
modelValue: { default: null },
|
|
828
|
-
optional: { type: Boolean },
|
|
829
|
-
required: { type: Boolean },
|
|
830
|
-
tooltipText: { default: null }
|
|
831
|
-
},
|
|
832
|
-
emits: ["change", "update:modelValue"],
|
|
833
|
-
setup(e, { emit: t }) {
|
|
834
|
-
const s = e, n = t, { t: o, tc: p } = q({ messages: Ie }), R = ee("input"), I = ee("input-error"), a = k(null), b = k(), F = ie({
|
|
835
|
-
dragging: !1,
|
|
836
|
-
error: !1
|
|
837
|
-
}), E = k(null), { supportedFileTypeList: B } = pt(Ze(s, "accept")), A = k(!1), Z = h(() => !!s.errorMessage || F.error), z = h(() => s.maxCount > 1), X = h(() => ({
|
|
838
|
-
[`b-file-uploader--${j.DISABLED}`]: s.disabled,
|
|
839
|
-
[`b-file-uploader--${j.DRAG_OVER}`]: F.dragging,
|
|
840
|
-
[`b-file-uploader--${j.ERROR}`]: Z.value,
|
|
841
|
-
"b-file-uploader--condensed": s.condensed
|
|
842
|
-
})), G = h(() => {
|
|
843
|
-
var i;
|
|
844
|
-
return s.maxCount && ((i = E.value) == null ? void 0 : i.length) >= s.maxCount;
|
|
845
|
-
}), N = h(() => {
|
|
846
|
-
var i, u, $;
|
|
847
|
-
return {
|
|
848
|
-
condensed: s.condensed,
|
|
849
|
-
disabled: s.disabled,
|
|
850
|
-
maxCount: z.value ? {
|
|
851
|
-
value: s.maxCount,
|
|
852
|
-
error: A.value
|
|
853
|
-
} : null,
|
|
854
|
-
maxDimensions: s.maxDimensions ? {
|
|
855
|
-
value: s.maxDimensions,
|
|
856
|
-
error: (i = E.value) == null ? void 0 : i.some((_) => _.errors.includes(w.ERROR_DIMENSIONS))
|
|
857
|
-
} : null,
|
|
858
|
-
maxSize: s.maxSize ? {
|
|
859
|
-
value: s.maxSize,
|
|
860
|
-
error: (u = E.value) == null ? void 0 : u.some((_) => _.errors.includes(w.ERROR_SIZE))
|
|
861
|
-
} : null,
|
|
862
|
-
supportedFileTypes: B.value ? {
|
|
863
|
-
value: B.value,
|
|
864
|
-
error: ($ = E.value) == null ? void 0 : $.some((_) => _.errors.includes(w.ERROR_TYPE))
|
|
865
|
-
} : null
|
|
866
|
-
};
|
|
867
|
-
});
|
|
868
|
-
function J(i) {
|
|
869
|
-
const u = s.maxCount && i.length <= s.maxCount;
|
|
870
|
-
A.value = !u;
|
|
871
|
-
}
|
|
872
|
-
function K(i) {
|
|
873
|
-
s.maxSize && i.forEach((u) => {
|
|
874
|
-
const $ = u;
|
|
875
|
-
$.data.size > s.maxSize && ($.state = S.ERROR, $.errors.push(w.ERROR_SIZE));
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
function Q(i) {
|
|
879
|
-
i.preventDefault(), s.disabled && (i.dataTransfer.dropEffect = "none");
|
|
880
|
-
}
|
|
881
|
-
function U(i) {
|
|
882
|
-
const u = ie({
|
|
883
|
-
id: ee("file"),
|
|
884
|
-
data: i,
|
|
885
|
-
errors: [],
|
|
886
|
-
state: S.LOADING,
|
|
887
|
-
type: p1(i),
|
|
888
|
-
progress: null
|
|
889
|
-
});
|
|
890
|
-
return c1(u, s.accept, s.maxDimensions), u;
|
|
891
|
-
}
|
|
892
|
-
function H(i) {
|
|
893
|
-
z.value ? E.value = [...E.value || [], ...Array.from(i).map((u) => U(u))] : E.value = [U(i[0])];
|
|
894
|
-
}
|
|
895
|
-
function D() {
|
|
896
|
-
var i, u;
|
|
897
|
-
if (s.maxCount === 1 && ((i = a.value.files) == null ? void 0 : i.length) > s.maxCount) {
|
|
898
|
-
x();
|
|
899
|
-
return;
|
|
900
|
-
}
|
|
901
|
-
(u = a.value.files) != null && u.length && H(a.value.files), a.value.value = "";
|
|
902
|
-
}
|
|
903
|
-
function x() {
|
|
904
|
-
b.value = null, !s.disabled && (F.dragging = !1, F.error = !1);
|
|
905
|
-
}
|
|
906
|
-
function Ve(i) {
|
|
907
|
-
var u;
|
|
908
|
-
b.value = i.target, !s.disabled && (F.dragging = !0, (!i.dataTransfer.types.includes("Files") || ((u = i.dataTransfer.items) == null ? void 0 : u.length) > s.maxCount) && (F.error = !0));
|
|
909
|
-
}
|
|
910
|
-
function He(i) {
|
|
911
|
-
b.value === i.target && x();
|
|
912
|
-
}
|
|
913
|
-
function Se(i) {
|
|
914
|
-
var u, $;
|
|
915
|
-
if (!s.disabled) {
|
|
916
|
-
if (s.maxCount === 1 && ((u = i.dataTransfer.files) == null ? void 0 : u.length) > s.maxCount) {
|
|
917
|
-
x();
|
|
918
|
-
return;
|
|
919
|
-
}
|
|
920
|
-
($ = i.dataTransfer.files) != null && $.length && H(i.dataTransfer.files), x();
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
function te(i) {
|
|
924
|
-
E.value = E.value.filter(({ id: u }) => u !== i.id);
|
|
925
|
-
}
|
|
926
|
-
function Me(i) {
|
|
927
|
-
const u = i.filter(
|
|
928
|
-
({ errors: $ }) => !$.includes(w.ERROR_LOAD) && !$.includes(w.ERROR_SIZE)
|
|
929
|
-
);
|
|
930
|
-
if (u.length) {
|
|
931
|
-
const $ = new DataTransfer();
|
|
932
|
-
return u.forEach(({ data: _ }) => $.items.add(_)), $.files;
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
return ye(E, (i) => {
|
|
936
|
-
if (i) {
|
|
937
|
-
J(i), K(i);
|
|
938
|
-
const u = Me(i);
|
|
939
|
-
n("change", u), n("update:modelValue", u);
|
|
940
|
-
} else
|
|
941
|
-
n("change"), n("update:modelValue");
|
|
942
|
-
}), (i, u) => {
|
|
943
|
-
var $;
|
|
944
|
-
return l(), c("div", {
|
|
945
|
-
class: T(["b-file-uploader", X.value])
|
|
946
|
-
}, [
|
|
947
|
-
O(r(qe), {
|
|
948
|
-
condensed: i.condensed,
|
|
949
|
-
for: r(R),
|
|
950
|
-
label: i.label,
|
|
951
|
-
optional: i.optional,
|
|
952
|
-
required: i.required,
|
|
953
|
-
"tooltip-text": i.tooltipText,
|
|
954
|
-
class: "b-file-uploader__label"
|
|
955
|
-
}, null, 8, ["condensed", "for", "label", "optional", "required", "tooltip-text"]),
|
|
956
|
-
d("input", {
|
|
957
|
-
id: r(R),
|
|
958
|
-
ref_key: "input",
|
|
959
|
-
ref: a,
|
|
960
|
-
type: "file",
|
|
961
|
-
tabindex: "-1",
|
|
962
|
-
"data-testid": "input",
|
|
963
|
-
class: "b-file-uploader__input",
|
|
964
|
-
accept: i.accept,
|
|
965
|
-
disabled: i.disabled,
|
|
966
|
-
multiple: z.value,
|
|
967
|
-
onChange: D
|
|
968
|
-
}, null, 40, ft),
|
|
969
|
-
G.value ? m("", !0) : (l(), c("div", {
|
|
970
|
-
key: 0,
|
|
971
|
-
class: "b-file-uploader__area",
|
|
972
|
-
"aria-label": r(o)("dropArea"),
|
|
973
|
-
tabindex: i.disabled ? -1 : 0,
|
|
974
|
-
onClick: u[0] || (u[0] = (_) => a.value.click()),
|
|
975
|
-
onDragenter: P(Ve, ["stop", "prevent"]),
|
|
976
|
-
onDragleave: P(He, ["stop", "prevent"]),
|
|
977
|
-
onDrop: P(Se, ["stop", "prevent"]),
|
|
978
|
-
onDragover: Q,
|
|
979
|
-
onKeydownCapture: [
|
|
980
|
-
u[1] || (u[1] = re(P((_) => a.value.click(), ["prevent"]), ["enter"])),
|
|
981
|
-
u[2] || (u[2] = re(P((_) => a.value.click(), ["prevent"]), ["space"]))
|
|
982
|
-
]
|
|
983
|
-
}, [
|
|
984
|
-
d("div", mt, [
|
|
985
|
-
Z.value ? (l(), v(r(Re), {
|
|
986
|
-
key: 0,
|
|
987
|
-
"svg-title": r(o)("warning")
|
|
988
|
-
}, null, 8, ["svg-title"])) : (l(), v(r(e1), {
|
|
989
|
-
key: 1,
|
|
990
|
-
"svg-title": r(o)("upload")
|
|
991
|
-
}, null, 8, ["svg-title"]))
|
|
992
|
-
]),
|
|
993
|
-
i.condensed ? m("", !0) : (l(), c(ne, { key: 0 }, [
|
|
994
|
-
O(r(V), {
|
|
995
|
-
el: "span",
|
|
996
|
-
strongest: "",
|
|
997
|
-
class: "b-file-uploader__title"
|
|
998
|
-
}, {
|
|
999
|
-
default: g(() => [
|
|
1000
|
-
y(f(r(p)("dropFiles", +!z.value)), 1)
|
|
1001
|
-
]),
|
|
1002
|
-
_: 1
|
|
1003
|
-
}),
|
|
1004
|
-
i.description ? (l(), v(r(V), {
|
|
1005
|
-
key: 0,
|
|
1006
|
-
el: "span",
|
|
1007
|
-
class: "b-file-uploader__description"
|
|
1008
|
-
}, {
|
|
1009
|
-
default: g(() => [
|
|
1010
|
-
y(f(i.description), 1)
|
|
1011
|
-
]),
|
|
1012
|
-
_: 1
|
|
1013
|
-
})) : m("", !0),
|
|
1014
|
-
O(r($e), le(ze(N.value)), null, 16)
|
|
1015
|
-
], 64)),
|
|
1016
|
-
O(r(W), {
|
|
1017
|
-
disabled: i.disabled,
|
|
1018
|
-
variant: i.condensed ? "tertiary" : "secondary",
|
|
1019
|
-
condensed: "",
|
|
1020
|
-
tabindex: "-1",
|
|
1021
|
-
class: "b-file-uploader__button"
|
|
1022
|
-
}, {
|
|
1023
|
-
default: g(() => [
|
|
1024
|
-
y(f(r(o)("browseFiles")), 1)
|
|
1025
|
-
]),
|
|
1026
|
-
_: 1
|
|
1027
|
-
}, 8, ["disabled", "variant"])
|
|
1028
|
-
], 40, ct)),
|
|
1029
|
-
Z.value && i.errorMessage ? (l(), v(r(Xe), {
|
|
1030
|
-
key: 1,
|
|
1031
|
-
id: r(I),
|
|
1032
|
-
"error-message": i.errorMessage,
|
|
1033
|
-
class: "b-file-uploader__error-message"
|
|
1034
|
-
}, null, 8, ["id", "error-message"])) : m("", !0),
|
|
1035
|
-
i.condensed && i.description ? (l(), v(r(V), {
|
|
1036
|
-
key: 2,
|
|
1037
|
-
el: "span",
|
|
1038
|
-
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
1039
|
-
}, {
|
|
1040
|
-
default: g(() => [
|
|
1041
|
-
y(f(i.description), 1)
|
|
1042
|
-
]),
|
|
1043
|
-
_: 1
|
|
1044
|
-
})) : m("", !0),
|
|
1045
|
-
i.condensed ? (l(), v(r($e), le(M({ key: 3 }, N.value)), null, 16)) : m("", !0),
|
|
1046
|
-
A.value ? (l(), v(r(Ne), {
|
|
1047
|
-
key: 4,
|
|
1048
|
-
type: "critical",
|
|
1049
|
-
class: "b-file-uploader__alert"
|
|
1050
|
-
}, {
|
|
1051
|
-
description: g(() => [
|
|
1052
|
-
y(f(r(o)("youHaveExceededTheMaximum", { count: s.maxCount })), 1)
|
|
1053
|
-
]),
|
|
1054
|
-
default: g(() => [
|
|
1055
|
-
y(f(r(o)("tooManyFiles")) + " ", 1)
|
|
1056
|
-
]),
|
|
1057
|
-
_: 1
|
|
1058
|
-
})) : m("", !0),
|
|
1059
|
-
_e(d("div", Ct, [
|
|
1060
|
-
(l(!0), c(ne, null, Be(E.value, (_) => (l(), v(r(at), {
|
|
1061
|
-
key: _.id,
|
|
1062
|
-
file: _,
|
|
1063
|
-
"supported-file-types": r(B),
|
|
1064
|
-
onCancel: (De) => te(_),
|
|
1065
|
-
onRemove: (De) => te(_)
|
|
1066
|
-
}, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
|
|
1067
|
-
], 512), [
|
|
1068
|
-
[Ae, ($ = E.value) == null ? void 0 : $.length]
|
|
1069
|
-
])
|
|
1070
|
-
], 2);
|
|
1071
|
-
};
|
|
1072
|
-
}
|
|
1073
|
-
}), Tt = /* @__PURE__ */ L(vt, [["__scopeId", "data-v-d1d1f946"]]);
|
|
1074
|
-
export {
|
|
1075
|
-
Tt as f
|
|
1076
|
-
};
|
|
1077
|
-
//# sourceMappingURL=file-uploader.BXHt0PWz.js.map
|