@adyen/bento-vue3 1.89.2 → 1.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +403 -298
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
- package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
- package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
- package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
- package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
- package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
- package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
- package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
- package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
- package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
- package/dist/chunks/card.BzCGCCzH.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
- package/dist/chunks/chip.DFldnqfz.js +72 -0
- package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
- package/dist/chunks/copy.CL893i9-.js +114 -0
- package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
- package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
- package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js +26 -0
- package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
- package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
- package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
- package/dist/chunks/date-picker.DPjCROIP.js +238 -0
- package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
- package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
- package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
- package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
- package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
- package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
- package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
- package/dist/chunks/error-message.849uzpkq.js +157 -0
- package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
- package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
- package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
- package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
- package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
- package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
- package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
- package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
- package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
- package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
- package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
- package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
- package/dist/chunks/input-time.DeJ8lDio.js +103 -0
- package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
- package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
- package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
- package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
- package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
- package/dist/chunks/pagination.DL-h8OLF.js +413 -0
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
- package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
- package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
- package/dist/chunks/search-bar.DfNwnjes.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
- package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
- package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
- package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
- package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
- package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
- package/dist/chunks/step.AsX2jAeL.js +268 -0
- package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
- package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
- package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
- package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
- package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
- package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
- package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
- package/dist/chunks/textarea.C-sBemuo.js +256 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
- package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
- package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
- package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
- package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
- package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
- package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- 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/draggable-handle.js +51 -44
- package/dist/draggable-handle.js.map +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-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +205 -203
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.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/segmented-control.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/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
- package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
- package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
- package/dist/chunks/card.CoxQ_L0w.js +0 -216
- package/dist/chunks/chip.CdgpQyXN.js +0 -65
- package/dist/chunks/copy.C2kQ1PbI.js +0 -107
- package/dist/chunks/country.types.DjpMGz7a.js +0 -19
- package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
- package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
- package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
- package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
- package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
- package/dist/chunks/step.BlwoLfdw.js +0 -259
- package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
- package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
- package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
- package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as
|
|
1
|
+
import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as c, defineComponent as ri, unref as t, createBlock as w, Transition as de, withCtx as y, renderSlot as $i, TransitionGroup as ce, ref as S, onUnmounted as me, onMounted as Bi, computed as f, watch as yi, normalizeClass as Z, createVNode as U, resolveDynamicComponent as ue, withDirectives as Ui, createTextVNode as C, reactive as wi, toRef as hi, withModifiers as X, withKeys as Ti, Fragment as _i, renderList as ve, vShow as fe, nextTick as xe } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { _ as
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { i as
|
|
11
|
-
import { B as
|
|
12
|
-
import { C as
|
|
13
|
-
import { C as
|
|
14
|
-
import { R as
|
|
15
|
-
import { b as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { F as
|
|
3
|
+
import { _ as j } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import { W as Zi } from "./warning-filled.BzyK_mMj.js";
|
|
5
|
+
import { B as ge } from "./alert.CFWN2E0b.js";
|
|
6
|
+
import { B as _, d as he } from "./typography.B3J6_tYk.js";
|
|
7
|
+
import { u as di } from "./index.B875RXHM.js";
|
|
8
|
+
import { g as R } from "./generate-uid.DBWe4g6T.js";
|
|
9
|
+
import { u as be } from "./form-field.D_2g7vaP.js";
|
|
10
|
+
import { i as Ni } from "./index.CWuzEfiV.js";
|
|
11
|
+
import { B as ye } from "./bin.Cude0fiB.js";
|
|
12
|
+
import { C as we } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
13
|
+
import { C as ke } from "./cross.CCHdi6v3.js";
|
|
14
|
+
import { R as ze } from "./refresh.C31KClfx.js";
|
|
15
|
+
import { b as Ce } from "./tooltip.DHfG2aRt.js";
|
|
16
|
+
import { B as bi } from "./button.DWF7FSIw.js";
|
|
17
|
+
import { B as Ee } from "./link.D6D6YGsN.js";
|
|
18
|
+
import { B as Fe } from "./loading-indicator.BPol9I84.js";
|
|
19
|
+
import { F as $e, E as Te } from "./error-message.849uzpkq.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
|
-
let
|
|
22
|
-
const
|
|
21
|
+
let Ri = 0;
|
|
22
|
+
const _e = {
|
|
23
23
|
beforeCreate() {
|
|
24
|
-
this.uuid =
|
|
24
|
+
this.uuid = Ri.toString(), Ri += 1;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
function
|
|
28
|
-
return s(), g("svg", D({ role: "img" },
|
|
26
|
+
}, Re = { key: 0 };
|
|
27
|
+
function Se(i, e, l, o, n, r) {
|
|
28
|
+
return s(), g("svg", D({ role: "img" }, i.$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
|
-
|
|
36
|
-
|
|
35
|
+
i.$attrs["svg-title"] ? (s(), g("title", Re, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
36
|
+
e[0] || (e[0] = c("path", {
|
|
37
37
|
fill: "#001222",
|
|
38
38
|
d: "M2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.25H14.75V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V10.25H2.75V12Z"
|
|
39
39
|
}, null, -1)),
|
|
40
|
-
|
|
40
|
+
e[1] || (e[1] = c("path", {
|
|
41
41
|
fill: "#001222",
|
|
42
42
|
d: "M12.0605 5L11 6.06055L8.75 3.81055V11.75H7.25V3.81055L5 6.06055L3.93945 5L8 0.939453L12.0605 5Z"
|
|
43
43
|
}, null, -1))
|
|
44
44
|
], 16);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const je = /* @__PURE__ */ j(_e, [["render", Se]]), Ie = /* @__PURE__ */ ri({
|
|
47
47
|
__name: "file-uploader-file-card-animation",
|
|
48
48
|
props: {
|
|
49
49
|
name: {},
|
|
50
50
|
showFileIcon: { type: Boolean }
|
|
51
51
|
},
|
|
52
|
-
setup(
|
|
53
|
-
return (
|
|
52
|
+
setup(i) {
|
|
53
|
+
return (e, l) => t(Ni) ? (s(), w(de, {
|
|
54
54
|
key: 0,
|
|
55
|
-
name:
|
|
55
|
+
name: e.name,
|
|
56
56
|
mode: "out-in",
|
|
57
|
-
css:
|
|
57
|
+
css: e.showFileIcon
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
59
|
+
default: y(() => [
|
|
60
|
+
$i(e.$slots, "default")
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
63
|
-
}, 8, ["name", "css"])) : (s(),
|
|
63
|
+
}, 8, ["name", "css"])) : (s(), w(ce, {
|
|
64
64
|
key: 1,
|
|
65
|
-
name:
|
|
66
|
-
css:
|
|
65
|
+
name: e.name,
|
|
66
|
+
css: e.showFileIcon
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
68
|
+
default: y(() => [
|
|
69
|
+
$i(e.$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 Le(i, e) {
|
|
76
|
+
const l = S(!1);
|
|
77
|
+
let o;
|
|
78
|
+
function n() {
|
|
79
|
+
o && o.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
|
|
81
|
+
return me(() => {
|
|
82
|
+
n();
|
|
83
|
+
}), Bi(() => {
|
|
84
|
+
n(), o = new IntersectionObserver(
|
|
85
|
+
(r) => {
|
|
86
|
+
l.value = !r[0].isIntersecting;
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
root:
|
|
89
|
+
root: e.value,
|
|
90
90
|
threshold: 1
|
|
91
91
|
}
|
|
92
|
-
),
|
|
93
|
-
}),
|
|
92
|
+
), o.observe(i.value.$el);
|
|
93
|
+
}), l;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
const
|
|
98
|
-
return Intl.NumberFormat(
|
|
95
|
+
const Si = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function ki(i, e) {
|
|
97
|
+
const l = Math.max(0, Math.min(Math.floor(Math.log(e) / Math.log(1024)), Si.length - 1));
|
|
98
|
+
return Intl.NumberFormat(i, {
|
|
99
99
|
style: "unit",
|
|
100
|
-
unit:
|
|
101
|
-
}).format(
|
|
100
|
+
unit: Si[l]
|
|
101
|
+
}).format(e / 1024 ** l);
|
|
102
102
|
}
|
|
103
|
-
var M = /* @__PURE__ */ ((
|
|
104
|
-
const
|
|
103
|
+
var M = /* @__PURE__ */ ((i) => (i.LOADING = "loading", i.SUCCESS = "success", i.ERROR = "error", i))(M || {}), T = /* @__PURE__ */ ((i) => (i.ERROR_SIZE = "error-size", i.ERROR_LOAD = "error-load", i.ERROR_DIMENSIONS = "error-dimensions", i.ERROR_TYPE = "error-type", i))(T || {}), si = /* @__PURE__ */ ((i) => (i.DISABLED = "disabled", i.DRAG_OVER = "drag-over", i.ERROR = "error", i.READONLY = "readonly", i))(si || {}), k = /* @__PURE__ */ ((i) => (i.TABLE = "table", i.IMAGE = "image", i.VIDEO = "video", i.AUDIO = "audio", i.TEXT = "text", i.PDF = "pdf", i.SLIDES = "slides", i.COMPRESSED = "compressed", i.GENERIC = "generic", i))(k || {});
|
|
104
|
+
const Me = [
|
|
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
|
+
], De = [
|
|
112
112
|
"application/vnd.ms-excel",
|
|
113
113
|
// .xls
|
|
114
114
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -121,14 +121,14 @@ const Mi = [
|
|
|
121
121
|
// .numbers
|
|
122
122
|
"text/csv"
|
|
123
123
|
// .csv
|
|
124
|
-
],
|
|
124
|
+
], He = [
|
|
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
|
+
], Ve = [
|
|
132
132
|
"application/zip",
|
|
133
133
|
// .zip
|
|
134
134
|
"application/vnd.rar",
|
|
@@ -150,104 +150,104 @@ const Mi = [
|
|
|
150
150
|
"application/vnd.ms-cab-compressed"
|
|
151
151
|
// .cab
|
|
152
152
|
];
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function qe(i) {
|
|
154
|
+
return De.includes(i.type) ? k.TABLE : i.type.startsWith("text/") || Me.includes(i.type) ? k.TEXT : i.type.startsWith("image/") ? k.IMAGE : i.type.startsWith("video/") ? k.VIDEO : i.type.startsWith("audio/") ? k.AUDIO : i.type === "application/pdf" ? k.PDF : He.includes(i.type) ? k.SLIDES : Ve.includes(i.type) ? k.COMPRESSED : k.GENERIC;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
if (!
|
|
156
|
+
function Pi(i, e) {
|
|
157
|
+
if (!e)
|
|
158
158
|
return !0;
|
|
159
|
-
const
|
|
160
|
-
for (const
|
|
161
|
-
if (
|
|
162
|
-
if (
|
|
159
|
+
const l = e.split(",").map((o) => o.trim());
|
|
160
|
+
for (const o of l)
|
|
161
|
+
if (o.startsWith(".")) {
|
|
162
|
+
if (i.name.endsWith(o))
|
|
163
163
|
return !0;
|
|
164
|
-
} else if (
|
|
165
|
-
const
|
|
166
|
-
if (
|
|
164
|
+
} else if (o.endsWith("/*")) {
|
|
165
|
+
const n = o.split("/")[0];
|
|
166
|
+
if (i.type.startsWith(n))
|
|
167
167
|
return !0;
|
|
168
|
-
} else if (
|
|
169
|
-
if (
|
|
168
|
+
} else if (o.includes("/")) {
|
|
169
|
+
if (i.type === o)
|
|
170
170
|
return !0;
|
|
171
|
-
} else if (
|
|
171
|
+
} else if (i.name.endsWith(`.${o}`))
|
|
172
172
|
return !0;
|
|
173
173
|
return !1;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
const
|
|
177
|
-
if (!
|
|
178
|
-
|
|
175
|
+
function Ae(i, e, l) {
|
|
176
|
+
const o = new FileReader(), n = i;
|
|
177
|
+
if (!Pi(n.data, e)) {
|
|
178
|
+
n.state = M.ERROR, n.errors.push(T.ERROR_TYPE);
|
|
179
179
|
return;
|
|
180
180
|
}
|
|
181
|
-
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
181
|
+
o.onload = (r) => {
|
|
182
|
+
if (l && n.type === k.IMAGE) {
|
|
183
|
+
const p = new Blob([r.target.result], { type: n.data.type }), m = URL.createObjectURL(p), h = new Image();
|
|
184
184
|
h.onload = function() {
|
|
185
|
-
(h.width >
|
|
185
|
+
(h.width > l.width || h.height > l.height) && (n.state = M.ERROR, n.errors.push(T.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
|
|
186
186
|
}, h.onerror = function() {
|
|
187
187
|
URL.revokeObjectURL(m);
|
|
188
188
|
}, h.src = m;
|
|
189
189
|
}
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
},
|
|
190
|
+
}, o.onprogress = (r) => {
|
|
191
|
+
r.lengthComputable && (n.progress = r.loaded / r.total * 100);
|
|
192
|
+
}, o.onloadend = () => {
|
|
193
|
+
n.state !== M.ERROR && (n.state = M.SUCCESS), n.progress = null;
|
|
194
|
+
}, o.onerror = () => {
|
|
195
|
+
n.state = M.ERROR, n.errors.push(T.ERROR_LOAD), n.progress = null;
|
|
196
|
+
}, o.readAsArrayBuffer(n.data);
|
|
197
197
|
}
|
|
198
|
-
let
|
|
199
|
-
const
|
|
198
|
+
let ji = 0;
|
|
199
|
+
const Oe = {
|
|
200
200
|
beforeCreate() {
|
|
201
|
-
this.uuid =
|
|
201
|
+
this.uuid = ji.toString(), ji += 1;
|
|
202
202
|
}
|
|
203
|
-
},
|
|
204
|
-
function
|
|
205
|
-
return s(), g("svg", D({ role: "img" },
|
|
203
|
+
}, Be = { key: 0 }, Ue = ["clip-path"], Ze = ["id"];
|
|
204
|
+
function Ne(i, e, l, o, n, r) {
|
|
205
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
206
206
|
class: "ui-assets-icons-16",
|
|
207
207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
208
208
|
width: "16",
|
|
209
209
|
height: "16",
|
|
210
210
|
fill: "none"
|
|
211
211
|
}), [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"clip-path": "url(#uia-ui-assets/icons-16-attachment__a" +
|
|
215
|
-
},
|
|
216
|
-
|
|
212
|
+
i.$attrs["svg-title"] ? (s(), g("title", Be, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
213
|
+
c("g", {
|
|
214
|
+
"clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + i.uuid + ")"
|
|
215
|
+
}, e[0] || (e[0] = [
|
|
216
|
+
c("path", {
|
|
217
217
|
fill: "#001222",
|
|
218
218
|
d: "M7.10655 3.02949C8.98948 1.14706 12.0441 1.14675 13.9269 3.02949C15.8095 4.91225 15.8093 7.96692 13.9269 9.84981L11.1564 12.6203L10.0958 11.5598L12.8663 8.78926C14.1629 7.49216 14.1631 5.38701 12.8663 4.09004C11.5694 2.79309 9.46424 2.79339 8.1671 4.09004L2.72667 9.53047C1.95976 10.2976 1.95963 11.5427 2.72667 12.3098C3.49372 13.0766 4.7389 13.0766 5.50597 12.3098L10.9464 6.86934C11.183 6.63224 11.1832 6.24693 10.9464 6.00996C10.7094 5.77301 10.3242 5.77331 10.087 6.00996L4.4962 11.6008L3.43565 10.5402L9.02647 4.94942C9.8494 4.12698 11.1842 4.12668 12.0069 4.94942C12.8296 5.77217 12.8293 7.107 12.0069 7.92989L6.56651 13.3703C5.21366 14.723 3.01896 14.723 1.66612 13.3703C0.313294 12.0175 0.313425 9.82283 1.66612 8.46992L7.10655 3.02949Z"
|
|
219
219
|
}, null, -1)
|
|
220
|
-
]), 8,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
id: "uia-ui-assets/icons-16-attachment__a" +
|
|
224
|
-
},
|
|
225
|
-
|
|
220
|
+
]), 8, Ue),
|
|
221
|
+
c("defs", null, [
|
|
222
|
+
c("clipPath", {
|
|
223
|
+
id: "uia-ui-assets/icons-16-attachment__a" + i.uuid
|
|
224
|
+
}, e[1] || (e[1] = [
|
|
225
|
+
c("rect", {
|
|
226
226
|
width: "16",
|
|
227
227
|
height: "16",
|
|
228
228
|
fill: "#fff"
|
|
229
229
|
}, null, -1)
|
|
230
|
-
]), 8,
|
|
230
|
+
]), 8, Ze)
|
|
231
231
|
])
|
|
232
232
|
], 16);
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
let
|
|
236
|
-
const
|
|
234
|
+
const Pe = /* @__PURE__ */ j(Oe, [["render", Ne]]);
|
|
235
|
+
let Ii = 0;
|
|
236
|
+
const We = {
|
|
237
237
|
beforeCreate() {
|
|
238
|
-
this.uuid =
|
|
238
|
+
this.uuid = Ii.toString(), Ii += 1;
|
|
239
239
|
}
|
|
240
|
-
},
|
|
241
|
-
function
|
|
242
|
-
return s(), g("svg", D({ role: "img" },
|
|
240
|
+
}, Ge = { key: 0 };
|
|
241
|
+
function Ye(i, e, l, o, n, r) {
|
|
242
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
243
243
|
class: "ui-assets-icons-16",
|
|
244
244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
245
245
|
width: "16",
|
|
246
246
|
height: "16",
|
|
247
247
|
fill: "none"
|
|
248
248
|
}), [
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
i.$attrs["svg-title"] ? (s(), g("title", Ge, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
250
|
+
e[0] || (e[0] = c("path", {
|
|
251
251
|
fill: "#001222",
|
|
252
252
|
"fill-rule": "evenodd",
|
|
253
253
|
d: "M11 0.25C12.5188 0.25 13.75 1.48122 13.75 3V7C13.75 7.85389 13.3607 8.6167 12.75 9.12109V10C12.75 10.8539 12.3607 11.6167 11.75 12.1211V13C11.75 14.5188 10.5188 15.75 9 15.75H7C5.48122 15.75 4.25 14.5188 4.25 13V12.1211C3.63934 11.6167 3.25 10.8539 3.25 10V9.12109C2.63934 8.6167 2.25 7.85389 2.25 7V3C2.25 1.48122 3.48122 0.25 5 0.25H11ZM10 12.75H6C5.91565 12.75 5.83241 12.7438 5.75 12.7363V13C5.75 13.6904 6.30964 14.25 7 14.25H9C9.69036 14.25 10.25 13.6904 10.25 13V12.7363C10.1676 12.7438 10.0843 12.75 10 12.75ZM11 9.75H5C4.91565 9.75 4.83241 9.74376 4.75 9.73633V10C4.75 10.6904 5.30964 11.25 6 11.25H10C10.6904 11.25 11.25 10.6904 11.25 10V9.73633C11.1676 9.74376 11.0843 9.75 11 9.75ZM5 1.75C4.30964 1.75 3.75 2.30964 3.75 3V7C3.75 7.69036 4.30964 8.25 5 8.25H11C11.6904 8.25 12.25 7.69036 12.25 7V3C12.25 2.30964 11.6904 1.75 11 1.75H5Z",
|
|
@@ -255,210 +255,210 @@ function Yi(a, i, p, n, o, c) {
|
|
|
255
255
|
}, null, -1))
|
|
256
256
|
], 16);
|
|
257
257
|
}
|
|
258
|
-
const
|
|
259
|
-
let
|
|
260
|
-
const
|
|
258
|
+
const Xe = /* @__PURE__ */ j(We, [["render", Ye]]);
|
|
259
|
+
let Li = 0;
|
|
260
|
+
const Je = {
|
|
261
261
|
beforeCreate() {
|
|
262
|
-
this.uuid =
|
|
262
|
+
this.uuid = Li.toString(), Li += 1;
|
|
263
263
|
}
|
|
264
|
-
},
|
|
265
|
-
function
|
|
266
|
-
return s(), g("svg", D({ role: "img" },
|
|
264
|
+
}, Ke = { key: 0 };
|
|
265
|
+
function Qe(i, e, l, o, n, r) {
|
|
266
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
267
267
|
class: "ui-assets-icons-16",
|
|
268
268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
269
269
|
width: "16",
|
|
270
270
|
height: "16",
|
|
271
271
|
fill: "none"
|
|
272
272
|
}), [
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
i.$attrs["svg-title"] ? (s(), g("title", Ke, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
274
|
+
e[0] || (e[0] = c("path", {
|
|
275
275
|
fill: "#001222",
|
|
276
276
|
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"
|
|
277
277
|
}, null, -1))
|
|
278
278
|
], 16);
|
|
279
279
|
}
|
|
280
|
-
const
|
|
281
|
-
let
|
|
282
|
-
const
|
|
280
|
+
const ia = /* @__PURE__ */ j(Je, [["render", Qe]]);
|
|
281
|
+
let Mi = 0;
|
|
282
|
+
const ea = {
|
|
283
283
|
beforeCreate() {
|
|
284
|
-
this.uuid =
|
|
284
|
+
this.uuid = Mi.toString(), Mi += 1;
|
|
285
285
|
}
|
|
286
|
-
},
|
|
287
|
-
function
|
|
288
|
-
return s(), g("svg", D({ role: "img" },
|
|
286
|
+
}, aa = { key: 0 };
|
|
287
|
+
function ta(i, e, l, o, n, r) {
|
|
288
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
289
289
|
class: "ui-assets-icons-16",
|
|
290
290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
291
291
|
width: "16",
|
|
292
292
|
height: "16",
|
|
293
293
|
fill: "none"
|
|
294
294
|
}), [
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
i.$attrs["svg-title"] ? (s(), g("title", aa, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
296
|
+
e[0] || (e[0] = c("path", {
|
|
297
297
|
fill: "#001222",
|
|
298
298
|
d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
|
|
299
299
|
}, null, -1)),
|
|
300
|
-
|
|
300
|
+
e[1] || (e[1] = c("path", {
|
|
301
301
|
fill: "#001222",
|
|
302
302
|
d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z"
|
|
303
303
|
}, null, -1)),
|
|
304
|
-
|
|
304
|
+
e[2] || (e[2] = c("path", {
|
|
305
305
|
fill: "#001222",
|
|
306
306
|
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"
|
|
307
307
|
}, null, -1))
|
|
308
308
|
], 16);
|
|
309
309
|
}
|
|
310
|
-
const
|
|
311
|
-
let
|
|
312
|
-
const
|
|
310
|
+
const oa = /* @__PURE__ */ j(ea, [["render", ta]]);
|
|
311
|
+
let Di = 0;
|
|
312
|
+
const na = {
|
|
313
313
|
beforeCreate() {
|
|
314
|
-
this.uuid =
|
|
314
|
+
this.uuid = Di.toString(), Di += 1;
|
|
315
315
|
}
|
|
316
|
-
},
|
|
317
|
-
function
|
|
318
|
-
return s(), g("svg", D({ role: "img" },
|
|
316
|
+
}, la = { key: 0 };
|
|
317
|
+
function pa(i, e, l, o, n, r) {
|
|
318
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
319
319
|
class: "ui-assets-icons-16",
|
|
320
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
321
321
|
width: "16",
|
|
322
322
|
height: "16",
|
|
323
323
|
fill: "none"
|
|
324
324
|
}), [
|
|
325
|
-
|
|
326
|
-
|
|
325
|
+
i.$attrs["svg-title"] ? (s(), g("title", la, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
326
|
+
e[0] || (e[0] = c("path", {
|
|
327
327
|
fill: "#001222",
|
|
328
328
|
d: "M1.24609 12V5C1.24609 3.48579 2.48188 2.25 3.99609 2.25H7.30664L10.3066 5.25H11.9961C13.5103 5.25 14.7461 6.48579 14.7461 8V12C14.7461 13.5142 13.5103 14.75 11.9961 14.75H3.99609C2.48188 14.75 1.24609 13.5142 1.24609 12ZM2.74609 12C2.74609 12.6858 3.31031 13.25 3.99609 13.25H11.9961C12.6819 13.25 13.2461 12.6858 13.2461 12V8C13.2461 7.31421 12.6819 6.75 11.9961 6.75H9.68555L6.68555 3.75H3.99609C3.31031 3.75 2.74609 4.31421 2.74609 5V12Z"
|
|
329
329
|
}, null, -1))
|
|
330
330
|
], 16);
|
|
331
331
|
}
|
|
332
|
-
const
|
|
333
|
-
let
|
|
334
|
-
const
|
|
332
|
+
const sa = /* @__PURE__ */ j(na, [["render", pa]]);
|
|
333
|
+
let Hi = 0;
|
|
334
|
+
const ra = {
|
|
335
335
|
beforeCreate() {
|
|
336
|
-
this.uuid =
|
|
336
|
+
this.uuid = Hi.toString(), Hi += 1;
|
|
337
337
|
}
|
|
338
|
-
},
|
|
339
|
-
function
|
|
340
|
-
return s(), g("svg", D({ role: "img" },
|
|
338
|
+
}, da = { key: 0 };
|
|
339
|
+
function ca(i, e, l, o, n, r) {
|
|
340
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
341
341
|
class: "ui-assets-icons-16",
|
|
342
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
343
343
|
width: "16",
|
|
344
344
|
height: "16",
|
|
345
345
|
fill: "none"
|
|
346
346
|
}), [
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
i.$attrs["svg-title"] ? (s(), g("title", da, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
348
|
+
e[0] || (e[0] = c("path", {
|
|
349
349
|
fill: "#001222",
|
|
350
350
|
d: "M9.74609 3.74805C11.1268 3.74805 12.2461 4.86733 12.2461 6.24805C12.2461 7.62876 11.1268 8.74805 9.74609 8.74805C8.36538 8.74805 7.24609 7.62876 7.24609 6.24805C7.24609 4.86733 8.36538 3.74805 9.74609 3.74805ZM9.74609 5.24805C9.19381 5.24805 8.74609 5.69576 8.74609 6.24805C8.74609 6.80033 9.19381 7.24805 9.74609 7.24805C10.2984 7.24805 10.7461 6.80033 10.7461 6.24805C10.7461 5.69576 10.2984 5.24805 9.74609 5.24805Z"
|
|
351
351
|
}, null, -1)),
|
|
352
|
-
|
|
352
|
+
e[1] || (e[1] = c("path", {
|
|
353
353
|
fill: "#001222",
|
|
354
354
|
d: "M11.9961 1.24805C13.5149 1.24805 14.7461 2.47926 14.7461 3.99805V11.998C14.7461 13.5168 13.5149 14.748 11.9961 14.748H3.99609C2.47731 14.748 1.24609 13.5168 1.24609 11.998V3.99805C1.24609 2.47926 2.47731 1.24805 3.99609 1.24805H11.9961ZM2.74609 11.3105V11.998C2.74609 12.6884 3.30574 13.248 3.99609 13.248H9.18359L4.99609 9.06055L2.74609 11.3105ZM3.99609 2.74805C3.30574 2.74805 2.74609 3.30769 2.74609 3.99805V9.18945L4.99609 6.93945L11.3047 13.248H11.9961C12.6864 13.248 13.2461 12.6884 13.2461 11.998V3.99805C13.2461 3.30769 12.6865 2.74805 11.9961 2.74805H3.99609Z"
|
|
355
355
|
}, null, -1))
|
|
356
356
|
], 16);
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
let
|
|
360
|
-
const
|
|
358
|
+
const ma = /* @__PURE__ */ j(ra, [["render", ca]]);
|
|
359
|
+
let Vi = 0;
|
|
360
|
+
const ua = {
|
|
361
361
|
beforeCreate() {
|
|
362
|
-
this.uuid =
|
|
362
|
+
this.uuid = Vi.toString(), Vi += 1;
|
|
363
363
|
}
|
|
364
|
-
},
|
|
365
|
-
function
|
|
366
|
-
return s(), g("svg", D({ role: "img" },
|
|
364
|
+
}, va = { key: 0 }, fa = ["clip-path"], xa = ["id"];
|
|
365
|
+
function ga(i, e, l, o, n, r) {
|
|
366
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
367
367
|
class: "ui-assets-icons-16",
|
|
368
368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
369
369
|
width: "16",
|
|
370
370
|
height: "16",
|
|
371
371
|
fill: "none"
|
|
372
372
|
}), [
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
i.$attrs["svg-title"] ? (s(), g("title", va, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
374
|
+
c("g", {
|
|
375
375
|
fill: "#001222",
|
|
376
|
-
"clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" +
|
|
377
|
-
},
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
]), 8,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
id: "uia-ui-assets/icons-16-play_circle__a" +
|
|
384
|
-
},
|
|
385
|
-
|
|
376
|
+
"clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + i.uuid + ")"
|
|
377
|
+
}, e[0] || (e[0] = [
|
|
378
|
+
c("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
|
|
379
|
+
c("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)
|
|
380
|
+
]), 8, fa),
|
|
381
|
+
c("defs", null, [
|
|
382
|
+
c("clipPath", {
|
|
383
|
+
id: "uia-ui-assets/icons-16-play_circle__a" + i.uuid
|
|
384
|
+
}, e[1] || (e[1] = [
|
|
385
|
+
c("rect", {
|
|
386
386
|
width: "16",
|
|
387
387
|
height: "16",
|
|
388
388
|
fill: "#fff"
|
|
389
389
|
}, null, -1)
|
|
390
|
-
]), 8,
|
|
390
|
+
]), 8, xa)
|
|
391
391
|
])
|
|
392
392
|
], 16);
|
|
393
393
|
}
|
|
394
|
-
const
|
|
395
|
-
let
|
|
396
|
-
const
|
|
394
|
+
const ha = /* @__PURE__ */ j(ua, [["render", ga]]);
|
|
395
|
+
let qi = 0;
|
|
396
|
+
const ba = {
|
|
397
397
|
beforeCreate() {
|
|
398
|
-
this.uuid =
|
|
398
|
+
this.uuid = qi.toString(), qi += 1;
|
|
399
399
|
}
|
|
400
|
-
},
|
|
401
|
-
function
|
|
402
|
-
return s(), g("svg", D({ role: "img" },
|
|
400
|
+
}, ya = { key: 0 };
|
|
401
|
+
function wa(i, e, l, o, n, r) {
|
|
402
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
403
403
|
class: "ui-assets-icons-16",
|
|
404
404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
405
405
|
width: "16",
|
|
406
406
|
height: "16",
|
|
407
407
|
fill: "none"
|
|
408
408
|
}), [
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
i.$attrs["svg-title"] ? (s(), g("title", ya, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
410
|
+
e[0] || (e[0] = c("path", {
|
|
411
411
|
fill: "#001222",
|
|
412
412
|
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"
|
|
413
413
|
}, null, -1)),
|
|
414
|
-
|
|
414
|
+
e[1] || (e[1] = c("path", {
|
|
415
415
|
fill: "#001222",
|
|
416
416
|
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"
|
|
417
417
|
}, null, -1)),
|
|
418
|
-
|
|
418
|
+
e[2] || (e[2] = c("path", {
|
|
419
419
|
fill: "#001222",
|
|
420
420
|
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"
|
|
421
421
|
}, null, -1))
|
|
422
422
|
], 16);
|
|
423
423
|
}
|
|
424
|
-
const
|
|
425
|
-
let
|
|
426
|
-
const
|
|
424
|
+
const ka = /* @__PURE__ */ j(ba, [["render", wa]]);
|
|
425
|
+
let Ai = 0;
|
|
426
|
+
const za = {
|
|
427
427
|
beforeCreate() {
|
|
428
|
-
this.uuid =
|
|
428
|
+
this.uuid = Ai.toString(), Ai += 1;
|
|
429
429
|
}
|
|
430
|
-
},
|
|
431
|
-
function
|
|
432
|
-
return s(), g("svg", D({ role: "img" },
|
|
430
|
+
}, Ca = { key: 0 };
|
|
431
|
+
function Ea(i, e, l, o, n, r) {
|
|
432
|
+
return s(), g("svg", D({ role: "img" }, i.$attrs, {
|
|
433
433
|
class: "ui-assets-icons-16",
|
|
434
434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
435
435
|
width: "16",
|
|
436
436
|
height: "16",
|
|
437
437
|
fill: "none"
|
|
438
438
|
}), [
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
i.$attrs["svg-title"] ? (s(), g("title", Ca, x(i.$attrs["svg-title"]), 1)) : u("", !0),
|
|
440
|
+
e[0] || (e[0] = c("path", {
|
|
441
441
|
fill: "#001222",
|
|
442
442
|
d: "M12 1.25C13.5188 1.25 14.75 2.48122 14.75 4V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V4C1.25 2.48122 2.48122 1.25 4 1.25H12ZM6.75 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.75H6.75V13.25ZM2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H5.25V10.75H2.75V12ZM6.75 9.25H13.25V6.75H6.75V9.25ZM2.75 9.25H5.25V6.75H2.75V9.25ZM6.75 5.25H13.25V4C13.25 3.30964 12.6904 2.75 12 2.75H6.75V5.25ZM4 2.75C3.30964 2.75 2.75 3.30964 2.75 4V5.25H5.25V2.75H4Z"
|
|
443
443
|
}, null, -1))
|
|
444
444
|
], 16);
|
|
445
445
|
}
|
|
446
|
-
const
|
|
447
|
-
[k.AUDIO]:
|
|
448
|
-
[k.COMPRESSED]:
|
|
449
|
-
[k.GENERIC]:
|
|
450
|
-
[k.IMAGE]:
|
|
451
|
-
[k.PDF]:
|
|
452
|
-
[k.SLIDES]:
|
|
453
|
-
[k.TABLE]:
|
|
454
|
-
[k.TEXT]:
|
|
455
|
-
[k.VIDEO]:
|
|
446
|
+
const Fa = /* @__PURE__ */ j(za, [["render", Ea]]), $a = {
|
|
447
|
+
[k.AUDIO]: ka,
|
|
448
|
+
[k.COMPRESSED]: sa,
|
|
449
|
+
[k.GENERIC]: Pe,
|
|
450
|
+
[k.IMAGE]: ma,
|
|
451
|
+
[k.PDF]: ia,
|
|
452
|
+
[k.SLIDES]: Xe,
|
|
453
|
+
[k.TABLE]: Fa,
|
|
454
|
+
[k.TEXT]: oa,
|
|
455
|
+
[k.VIDEO]: ha
|
|
456
456
|
};
|
|
457
|
-
function
|
|
458
|
-
return
|
|
457
|
+
function Ta(i) {
|
|
458
|
+
return $a[i.type];
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
switch (
|
|
460
|
+
function _a(i) {
|
|
461
|
+
switch (i.type) {
|
|
462
462
|
case k.COMPRESSED:
|
|
463
463
|
case k.GENERIC:
|
|
464
464
|
return "grey";
|
|
@@ -471,210 +471,217 @@ function Re(a) {
|
|
|
471
471
|
return "green";
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
474
|
+
const Wi = {
|
|
475
|
+
"de-DE": { cancel: "Abbrechen", fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung", fileTypeMustBe: "Der Dateityp muss {list} sein.", imageDimensionsExceedLimits: "Die Bildabmessungen überschreiten die zulässigen Grenzwerte", remove: "Entfernen", retry: "Wiederholen" },
|
|
476
|
+
"en-GB": { cancel: "Cancel", fileExceedsSizeLimit: "File exceeds size limit", fileTypeMustBe: "File type must be {list}", imageDimensionsExceedLimits: "Image dimensions exceed limits", remove: "Remove", retry: "Retry" },
|
|
475
477
|
"en-US": { cancel: "Cancel", fileExceedsSizeLimit: "File exceeds size limit", fileTypeMustBe: "File type must be {list}", imageDimensionsExceedLimits: "Image dimensions exceed limits", remove: "Remove", retry: "Retry" },
|
|
478
|
+
"es-ES": { cancel: "Cancelar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", fileTypeMustBe: "El tipo de archivo debe ser {list}", imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites", remove: "Eliminar", retry: "Reintentar" },
|
|
479
|
+
"es-MX": { cancel: "Cancelar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", fileTypeMustBe: "El tipo de archivo debe ser {list}", imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites", remove: "Eliminar", retry: "Reintentar" },
|
|
480
|
+
"fr-FR": { cancel: "Annuler", fileExceedsSizeLimit: "Le fichier dépasse la limite de taille", fileTypeMustBe: "Le type de fichier doit être {list}", imageDimensionsExceedLimits: "Les dimensions de l'image dépassent les limites", remove: "Supprimer", retry: "Réessayer" },
|
|
481
|
+
"it-IT": { cancel: "Annulla", fileExceedsSizeLimit: "Il file supera il limite di dimensione", fileTypeMustBe: "Il tipo di file deve essere {list}", imageDimensionsExceedLimits: "Le dimensioni dell'immagine superano i limiti", remove: "Rimuovi", retry: "Riprova" },
|
|
476
482
|
"ja-JP": { cancel: "キャンセル", fileExceedsSizeLimit: "ファイルがサイズ制限を超えています", fileTypeMustBe: "ファイル形式は{list}でなければなりません", imageDimensionsExceedLimits: "画像のサイズが制限を超えています", remove: "削除", retry: "再試行" },
|
|
477
|
-
"pt-BR": { cancel: "Cancelar", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", fileTypeMustBe: "O tipo de arquivo deve ser {list}", imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites", remove: "
|
|
478
|
-
|
|
483
|
+
"pt-BR": { cancel: "Cancelar", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", fileTypeMustBe: "O tipo de arquivo deve ser {list}", imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites", remove: "Retirar", retry: "Tentar de novo" },
|
|
484
|
+
"zh-CN": { cancel: "取消", fileExceedsSizeLimit: "文件大小超过限制", fileTypeMustBe: "文件类型必须为 {list}", imageDimensionsExceedLimits: "图像尺寸超过限制", remove: "移除", retry: "重试" }
|
|
485
|
+
}, Ra = { class: "b-file-uploader-file-card__details" }, Sa = { class: "b-file-uploader-file-card__info" }, ja = ["id"], Ia = {
|
|
479
486
|
key: 0,
|
|
480
487
|
class: "b-file-uploader-file-card__actions"
|
|
481
|
-
},
|
|
488
|
+
}, La = {
|
|
482
489
|
name: "file-uploader-file-card",
|
|
483
|
-
i18n: { messages:
|
|
484
|
-
},
|
|
485
|
-
...
|
|
490
|
+
i18n: { messages: Wi }
|
|
491
|
+
}, Ma = /* @__PURE__ */ ri({
|
|
492
|
+
...La,
|
|
486
493
|
props: {
|
|
487
494
|
file: {},
|
|
488
495
|
supportedFileTypes: { default: null },
|
|
489
496
|
readonly: { type: Boolean }
|
|
490
497
|
},
|
|
491
498
|
emits: ["cancel", "remove", "retry"],
|
|
492
|
-
setup(
|
|
493
|
-
const
|
|
499
|
+
setup(i, { expose: e, emit: l }) {
|
|
500
|
+
const n = i, r = l, { t: p, locale: m } = di({ messages: Wi }), h = S(null), E = S(null), H = S(null), V = R("file-errors-section"), v = R("cancel-file-button"), F = R("remove-file-button"), O = R("retry-file-button"), q = S(n.file.state === M.SUCCESS), b = f(() => URL.createObjectURL(n.file.data)), N = f(() => n.file.state === M.ERROR), B = f(() => n.file.errors.includes(T.ERROR_LOAD)), K = f(() => n.file.errors.includes(T.ERROR_SIZE)), Q = f(() => n.file.errors.includes(T.ERROR_DIMENSIONS)), ti = f(() => n.file.errors.includes(T.ERROR_TYPE)), oi = f(() => n.file.state === M.LOADING), ni = f(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), W = f(() => ki(m.value, n.file.data.size)), G = S(), li = S(), pi = Le(G, li), ii = f(() => ({
|
|
494
501
|
"b-file-uploader-file-card--error": N.value
|
|
495
|
-
})),
|
|
496
|
-
[`b-file-uploader-file-card__icon--${
|
|
502
|
+
})), ci = f(() => ({
|
|
503
|
+
[`b-file-uploader-file-card__icon--${_a(n.file)}`]: q.value,
|
|
497
504
|
"b-file-uploader-file-card__icon--error": N.value
|
|
498
|
-
})), Y = f(() =>
|
|
499
|
-
|
|
500
|
-
() =>
|
|
501
|
-
(
|
|
502
|
-
if (
|
|
503
|
-
const
|
|
504
|
-
q.value = !0, clearTimeout(
|
|
505
|
+
})), Y = f(() => oi.value ? Fe : N.value ? Zi : q.value ? Ta(n.file) : we);
|
|
506
|
+
yi(
|
|
507
|
+
() => n.file.state,
|
|
508
|
+
($) => {
|
|
509
|
+
if ($ === M.SUCCESS && !q.value) {
|
|
510
|
+
const A = setTimeout(() => {
|
|
511
|
+
q.value = !0, clearTimeout(A);
|
|
505
512
|
}, 1200);
|
|
506
513
|
}
|
|
507
514
|
}
|
|
508
515
|
);
|
|
509
|
-
function
|
|
510
|
-
if (
|
|
511
|
-
|
|
516
|
+
function mi() {
|
|
517
|
+
if (H.value) {
|
|
518
|
+
H.value.$el.focus();
|
|
512
519
|
return;
|
|
513
520
|
}
|
|
514
521
|
if (h.value) {
|
|
515
522
|
h.value.$el.focus();
|
|
516
523
|
return;
|
|
517
524
|
}
|
|
518
|
-
if (
|
|
519
|
-
|
|
525
|
+
if (E.value) {
|
|
526
|
+
E.value.$el.focus();
|
|
520
527
|
return;
|
|
521
528
|
}
|
|
522
529
|
}
|
|
523
|
-
return
|
|
524
|
-
focus:
|
|
525
|
-
}), (
|
|
526
|
-
class: Z(["b-file-uploader-file-card",
|
|
530
|
+
return e({
|
|
531
|
+
focus: mi
|
|
532
|
+
}), ($, A) => (s(), g("div", {
|
|
533
|
+
class: Z(["b-file-uploader-file-card", ii.value])
|
|
527
534
|
}, [
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
U(t(
|
|
531
|
-
name: t(
|
|
535
|
+
c("div", Ra, [
|
|
536
|
+
c("div", Sa, [
|
|
537
|
+
U(t(Ie), {
|
|
538
|
+
name: t(Ni) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
532
539
|
"show-file-icon": q.value
|
|
533
540
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
(s(),
|
|
541
|
+
default: y(() => [
|
|
542
|
+
(s(), w(ue(Y.value), {
|
|
536
543
|
key: JSON.stringify(Y.value),
|
|
537
544
|
small: "",
|
|
538
545
|
"aria-hidden": "true",
|
|
539
|
-
class: Z(["b-file-uploader-file-card__icon",
|
|
546
|
+
class: Z(["b-file-uploader-file-card__icon", ci.value]),
|
|
540
547
|
"data-testid": "file-uploader-item-icon"
|
|
541
548
|
}, null, 8, ["class"]))
|
|
542
549
|
]),
|
|
543
550
|
_: 1
|
|
544
551
|
}, 8, ["name", "show-file-icon"]),
|
|
545
|
-
|
|
552
|
+
c("div", {
|
|
546
553
|
ref_key: "fileNameContainerRef",
|
|
547
|
-
ref:
|
|
554
|
+
ref: li,
|
|
548
555
|
class: "b-file-uploader-file-card__file-name"
|
|
549
556
|
}, [
|
|
550
|
-
U(t(
|
|
557
|
+
U(t(Ee), {
|
|
551
558
|
"aria-hidden": "true",
|
|
552
559
|
tabindex: "-1",
|
|
553
|
-
download:
|
|
560
|
+
download: $.file.data.name,
|
|
554
561
|
to: b.value,
|
|
555
562
|
"disable-typography": "",
|
|
556
563
|
"is-not-routing": "",
|
|
557
564
|
variant: "quiet"
|
|
558
565
|
}, {
|
|
559
|
-
default:
|
|
560
|
-
|
|
566
|
+
default: y(() => [
|
|
567
|
+
Ui((s(), w(t(_), {
|
|
561
568
|
ref_key: "fileNameRef",
|
|
562
569
|
ref: G,
|
|
563
570
|
stronger: "",
|
|
564
571
|
el: "span"
|
|
565
572
|
}, {
|
|
566
|
-
default:
|
|
567
|
-
|
|
573
|
+
default: y(() => [
|
|
574
|
+
C(x($.file.data.name), 1)
|
|
568
575
|
]),
|
|
569
576
|
_: 1
|
|
570
577
|
})), [
|
|
571
|
-
[t(
|
|
578
|
+
[t(Ce), t(pi) ? $.file.data.name : null]
|
|
572
579
|
])
|
|
573
580
|
]),
|
|
574
581
|
_: 1
|
|
575
582
|
}, 8, ["download", "to"])
|
|
576
583
|
], 512),
|
|
577
|
-
|
|
584
|
+
$.file.progress ? (s(), w(t(_), {
|
|
578
585
|
key: 0,
|
|
579
586
|
el: "span"
|
|
580
587
|
}, {
|
|
581
|
-
default:
|
|
582
|
-
|
|
588
|
+
default: y(() => [
|
|
589
|
+
C(x(ni.value), 1)
|
|
583
590
|
]),
|
|
584
591
|
_: 1
|
|
585
|
-
})) :
|
|
592
|
+
})) : $.file.data.size ? (s(), w(t(_), {
|
|
586
593
|
key: 1,
|
|
587
594
|
class: "b-file-uploader-file-card__file-size",
|
|
588
595
|
"aria-hidden": "true",
|
|
589
596
|
el: "span"
|
|
590
597
|
}, {
|
|
591
|
-
default:
|
|
592
|
-
|
|
598
|
+
default: y(() => [
|
|
599
|
+
C(x(W.value), 1)
|
|
593
600
|
]),
|
|
594
601
|
_: 1
|
|
595
602
|
})) : u("", !0)
|
|
596
603
|
]),
|
|
597
|
-
K.value || Q.value ||
|
|
604
|
+
K.value || Q.value || ti.value && $.supportedFileTypes ? (s(), g("div", {
|
|
598
605
|
key: 0,
|
|
599
|
-
id: t(
|
|
606
|
+
id: t(V),
|
|
600
607
|
role: "alert"
|
|
601
608
|
}, [
|
|
602
|
-
K.value ? (s(),
|
|
609
|
+
K.value ? (s(), w(t(_), {
|
|
603
610
|
key: 0,
|
|
604
611
|
class: "b-file-uploader-file-card__error-message"
|
|
605
612
|
}, {
|
|
606
|
-
default:
|
|
607
|
-
|
|
613
|
+
default: y(() => [
|
|
614
|
+
C(x(t(p)("fileExceedsSizeLimit")), 1)
|
|
608
615
|
]),
|
|
609
616
|
_: 1
|
|
610
617
|
})) : u("", !0),
|
|
611
|
-
Q.value ? (s(),
|
|
618
|
+
Q.value ? (s(), w(t(_), {
|
|
612
619
|
key: 1,
|
|
613
620
|
class: "b-file-uploader-file-card__error-message"
|
|
614
621
|
}, {
|
|
615
|
-
default:
|
|
616
|
-
|
|
622
|
+
default: y(() => [
|
|
623
|
+
C(x(t(p)("imageDimensionsExceedLimits")), 1)
|
|
617
624
|
]),
|
|
618
625
|
_: 1
|
|
619
626
|
})) : u("", !0),
|
|
620
|
-
|
|
627
|
+
ti.value && $.supportedFileTypes ? (s(), w(t(_), {
|
|
621
628
|
key: 2,
|
|
622
629
|
class: "b-file-uploader-file-card__error-message"
|
|
623
630
|
}, {
|
|
624
|
-
default:
|
|
625
|
-
|
|
631
|
+
default: y(() => [
|
|
632
|
+
C(x(t(p)("fileTypeMustBe", { list: $.supportedFileTypes })), 1)
|
|
626
633
|
]),
|
|
627
634
|
_: 1
|
|
628
635
|
})) : u("", !0)
|
|
629
|
-
], 8,
|
|
636
|
+
], 8, ja)) : u("", !0)
|
|
630
637
|
]),
|
|
631
|
-
|
|
632
|
-
|
|
638
|
+
$.readonly ? u("", !0) : (s(), g("div", Ia, [
|
|
639
|
+
B.value ? (s(), w(t(bi), {
|
|
633
640
|
key: 0,
|
|
634
641
|
ref_key: "retryFileButtonRef",
|
|
635
|
-
ref:
|
|
636
|
-
"aria-labelledby": `${t(
|
|
642
|
+
ref: H,
|
|
643
|
+
"aria-labelledby": `${t(V)} ${t(O)}`,
|
|
637
644
|
variant: "tertiary",
|
|
638
|
-
onClick:
|
|
645
|
+
onClick: A[0] || (A[0] = (ei) => r("retry"))
|
|
639
646
|
}, {
|
|
640
|
-
iconLeft:
|
|
641
|
-
U(t(
|
|
642
|
-
id: t(
|
|
643
|
-
"svg-title": `${t(
|
|
647
|
+
iconLeft: y(() => [
|
|
648
|
+
U(t(ze), {
|
|
649
|
+
id: t(O),
|
|
650
|
+
"svg-title": `${t(p)("retry")} - ${$.file.data.name} `
|
|
644
651
|
}, null, 8, ["id", "svg-title"])
|
|
645
652
|
]),
|
|
646
|
-
default:
|
|
647
|
-
|
|
653
|
+
default: y(() => [
|
|
654
|
+
C(" " + x(t(p)("retry")), 1)
|
|
648
655
|
]),
|
|
649
656
|
_: 1
|
|
650
657
|
}, 8, ["aria-labelledby"])) : u("", !0),
|
|
651
|
-
|
|
658
|
+
oi.value || N.value ? (s(), w(t(bi), {
|
|
652
659
|
key: 1,
|
|
653
660
|
ref_key: "cancelFileButtonRef",
|
|
654
|
-
ref:
|
|
655
|
-
"aria-labelledby": `${t(
|
|
661
|
+
ref: E,
|
|
662
|
+
"aria-labelledby": `${t(V)} ${t(v)}`,
|
|
656
663
|
variant: "tertiary",
|
|
657
|
-
onClick:
|
|
664
|
+
onClick: A[1] || (A[1] = (ei) => r("cancel"))
|
|
658
665
|
}, {
|
|
659
|
-
iconLeft:
|
|
660
|
-
U(t(
|
|
666
|
+
iconLeft: y(() => [
|
|
667
|
+
U(t(ke), {
|
|
661
668
|
id: t(v),
|
|
662
|
-
"svg-title": `${t(
|
|
669
|
+
"svg-title": `${t(p)("cancel")} - ${$.file.data.name}`
|
|
663
670
|
}, null, 8, ["id", "svg-title"])
|
|
664
671
|
]),
|
|
665
672
|
_: 1
|
|
666
|
-
}, 8, ["aria-labelledby"])) : (s(),
|
|
673
|
+
}, 8, ["aria-labelledby"])) : (s(), w(t(bi), {
|
|
667
674
|
key: 2,
|
|
668
675
|
ref_key: "removeFileButtonRef",
|
|
669
676
|
ref: h,
|
|
670
|
-
"aria-labelledby": `${t(
|
|
677
|
+
"aria-labelledby": `${t(V)} ${t(F)}`,
|
|
671
678
|
variant: "tertiary",
|
|
672
|
-
onClick:
|
|
679
|
+
onClick: A[2] || (A[2] = (ei) => r("remove"))
|
|
673
680
|
}, {
|
|
674
|
-
iconLeft:
|
|
675
|
-
U(t(
|
|
676
|
-
id: t(
|
|
677
|
-
"svg-title": `${t(
|
|
681
|
+
iconLeft: y(() => [
|
|
682
|
+
U(t(ye), {
|
|
683
|
+
id: t(F),
|
|
684
|
+
"svg-title": `${t(p)("remove")} - ${$.file.data.name}`
|
|
678
685
|
}, null, 8, ["id", "svg-title"])
|
|
679
686
|
]),
|
|
680
687
|
_: 1
|
|
@@ -682,14 +689,21 @@ const Wa = {
|
|
|
682
689
|
]))
|
|
683
690
|
], 2));
|
|
684
691
|
}
|
|
685
|
-
}),
|
|
692
|
+
}), Da = /* @__PURE__ */ j(Ma, [["__scopeId", "data-v-0051c431"]]), Gi = {
|
|
693
|
+
"de-DE": { maxFileSize: "Maximale Dateigröße: {size}", maxImageDimensions: "Maximale Bilddimensionen: {width} × {height}px", maxImageHeight: "Maximale Bildhöhe: {height}px", maxImageWidth: "Maximale Bildbreite: {width}px", maxUpload: "Maximale Anzahl Uploads: {count} Datei | Maximale Anzahl Uploads: {count} Dateien", supportedFileTypes: "Unterstützte Dateitypen: {list}", upToSize: "(bis zu {size})" },
|
|
694
|
+
"en-GB": { maxFileSize: "Max. file size: {size}", maxImageDimensions: "Max. image dimensions: {width} × {height}px", maxImageHeight: "Max. image height: {height}px", maxImageWidth: "Max. image width: {width}px", maxUpload: "Max. upload: {count} file | Max. upload: {count} files", supportedFileTypes: "Supported file types: {list}", upToSize: "(up to {size})" },
|
|
686
695
|
"en-US": { maxFileSize: "Max file size: {size}", maxImageDimensions: "Max image dimensions: {width} × {height}px", maxImageHeight: "Max image height: {height}px", maxImageWidth: "Max image width: {width}px", maxUpload: "Max upload: {count} file | Max upload: {count} files", supportedFileTypes: "Supported file types: {list}", upToSize: "(up to {size})" },
|
|
687
|
-
"
|
|
688
|
-
"
|
|
689
|
-
},
|
|
690
|
-
|
|
691
|
-
},
|
|
692
|
-
|
|
696
|
+
"es-ES": { maxFileSize: "Tamaño máximo del archivo: {size}", maxImageDimensions: "Dimensiones máximas de la imagen: {width} × {height} px", maxImageHeight: "Altura máxima de la imagen: {height} px", maxImageWidth: "Anchura máximo de la imagen: {width} px", maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos", supportedFileTypes: "Tipos de archivo compatibles: {list}", upToSize: "(hasta {size})" },
|
|
697
|
+
"es-MX": { maxFileSize: "Tamaño máximo de archivo: {size}", maxImageDimensions: "Dimensiones máximas de la imagen: {ancho} × {altura}px", maxImageHeight: "Altura máxima de la imagen: {height}px", maxImageWidth: "Ancho máximo de la imagen: {width}px", maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos", supportedFileTypes: "Tipos de archivo compatibles: {list}", upToSize: "(hasta {size})" },
|
|
698
|
+
"fr-FR": { maxFileSize: "Taille maximale du fichier : {size}", maxImageDimensions: "Dimensions maximales de l'image : {width} × {height} px", maxImageHeight: "Hauteur maximale de l'image : {height} px", maxImageWidth: "Largeur maximale de l'image : {width} px", maxUpload: "Téléchargement maximal : {count} fichier | Téléchargement maximal : {count} fichiers", supportedFileTypes: "Types de fichiers pris en charge : {list}", upToSize: "(jusqu'à {size})" },
|
|
699
|
+
"it-IT": { maxFileSize: "Dimensione massima del file: {size}", maxImageDimensions: "Dimensioni massime dell'immagine: {width} × {height}px", maxImageHeight: "Altezza massima dell'immagine: {height} px", maxImageWidth: "Larghezza massima dell'immagine: {width} px", maxUpload: "Upload massimo: file {count} | Upload massimo: {count} file", supportedFileTypes: "Tipi di file supportati: {list}", upToSize: "(fino a {size})" },
|
|
700
|
+
"ja-JP": { maxFileSize: "最大ファイルサイズ:{size}", maxImageDimensions: "最大画像サイズ: {width} × {height}px", maxImageHeight: "最大画像高さ: {height}px", maxImageWidth: "最大画像幅: {width}px", maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル", supportedFileTypes: "対応ファイル形式: {list}", upToSize: "({size}まで)" },
|
|
701
|
+
"pt-BR": { maxFileSize: "Tamanho máx. do arquivo: {size}", maxImageDimensions: "Dimensões máx. da imagem: {width} × {height}px", maxImageHeight: "Altura máx. da imagem: {height}px", maxImageWidth: "Largura máx. da imagem: {width}px", maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos", supportedFileTypes: "Tipos de arquivo aceitos: {list}", upToSize: "(até {size})" },
|
|
702
|
+
"zh-CN": { maxFileSize: "最大文件大小:{size}", maxImageDimensions: "最大图像尺寸:{width} × {height}px", maxImageHeight: "最大图像高度:{height}px", maxImageWidth: "最大图像宽度:{width}px", maxUpload: "最多上传:{count} 个文件 | 最多上传:{count} 个文件", supportedFileTypes: "支持的文件类型:{list}", upToSize: "(最多 {size})" }
|
|
703
|
+
}, Ha = {
|
|
704
|
+
i18n: { messages: Gi }
|
|
705
|
+
}, Va = /* @__PURE__ */ ri({
|
|
706
|
+
...Ha,
|
|
693
707
|
__name: "file-uploader-restrictions",
|
|
694
708
|
props: {
|
|
695
709
|
condensed: { type: Boolean, default: null },
|
|
@@ -699,76 +713,76 @@ const Wa = {
|
|
|
699
713
|
maxSize: { default: null },
|
|
700
714
|
supportedFileTypes: { default: null }
|
|
701
715
|
},
|
|
702
|
-
setup(
|
|
703
|
-
const
|
|
704
|
-
"b-file-uploader-restrictions--condensed":
|
|
705
|
-
"b-file-uploader-restrictions--disabled":
|
|
716
|
+
setup(i) {
|
|
717
|
+
const e = i, { t: l, tc: o, n, locale: r } = di({ messages: Gi }), p = f(() => ({
|
|
718
|
+
"b-file-uploader-restrictions--condensed": e.condensed,
|
|
719
|
+
"b-file-uploader-restrictions--disabled": e.disabled
|
|
706
720
|
}));
|
|
707
721
|
function m(v) {
|
|
708
722
|
return {
|
|
709
723
|
"b-file-uploader-restrictions--error": v
|
|
710
724
|
};
|
|
711
725
|
}
|
|
712
|
-
const h = f(() =>
|
|
713
|
-
if (!
|
|
726
|
+
const h = f(() => e.maxSize && Array.isArray(e.maxSize.value)), E = f(() => !e.maxSize || h.value ? null : l("maxFileSize", { size: ki(r.value, e.maxSize.value) })), H = f(() => {
|
|
727
|
+
if (!e.supportedFileTypes)
|
|
714
728
|
return null;
|
|
715
729
|
if (!h.value)
|
|
716
|
-
return
|
|
717
|
-
let v =
|
|
718
|
-
return
|
|
719
|
-
const
|
|
720
|
-
v = v.replace(
|
|
730
|
+
return e.supportedFileTypes.value;
|
|
731
|
+
let v = e.supportedFileTypes.value;
|
|
732
|
+
return e.maxSize.value.forEach((F) => {
|
|
733
|
+
const O = F.fileType.toUpperCase(), q = l("upToSize", { size: ki(r.value, F.maxSize) });
|
|
734
|
+
v = v.replace(O, `${O} ${q}`);
|
|
721
735
|
}), v;
|
|
722
|
-
}),
|
|
723
|
-
if (!
|
|
736
|
+
}), V = f(() => {
|
|
737
|
+
if (!e.maxDimensions)
|
|
724
738
|
return null;
|
|
725
739
|
const {
|
|
726
|
-
value: { width: v, height:
|
|
727
|
-
} =
|
|
728
|
-
return v &&
|
|
740
|
+
value: { width: v, height: F }
|
|
741
|
+
} = e.maxDimensions;
|
|
742
|
+
return v && F ? l("maxImageDimensions", { width: n(v), height: n(F) }) : v ? l("maxImageWidth", { width: n(v) }) : F ? l("maxImageHeight", { height: n(F) }) : null;
|
|
729
743
|
});
|
|
730
|
-
return (v,
|
|
731
|
-
class: Z(["b-file-uploader-restrictions",
|
|
744
|
+
return (v, F) => (s(), g("div", {
|
|
745
|
+
class: Z(["b-file-uploader-restrictions", p.value])
|
|
732
746
|
}, [
|
|
733
|
-
v.supportedFileTypes ? (s(),
|
|
747
|
+
v.supportedFileTypes ? (s(), w(t(_), {
|
|
734
748
|
key: 0,
|
|
735
749
|
class: Z(m(v.supportedFileTypes.error || h.value && v.maxSize.error))
|
|
736
750
|
}, {
|
|
737
|
-
default:
|
|
738
|
-
|
|
751
|
+
default: y(() => [
|
|
752
|
+
C(x(t(l)("supportedFileTypes", { list: H.value })), 1)
|
|
739
753
|
]),
|
|
740
754
|
_: 1
|
|
741
755
|
}, 8, ["class"])) : u("", !0),
|
|
742
|
-
!h.value && v.maxSize ? (s(),
|
|
756
|
+
!h.value && v.maxSize ? (s(), w(t(_), {
|
|
743
757
|
key: 1,
|
|
744
758
|
class: Z(m(v.maxSize.error))
|
|
745
759
|
}, {
|
|
746
|
-
default:
|
|
747
|
-
|
|
760
|
+
default: y(() => [
|
|
761
|
+
C(x(E.value), 1)
|
|
748
762
|
]),
|
|
749
763
|
_: 1
|
|
750
764
|
}, 8, ["class"])) : u("", !0),
|
|
751
|
-
v.maxDimensions ? (s(),
|
|
765
|
+
v.maxDimensions ? (s(), w(t(_), {
|
|
752
766
|
key: 2,
|
|
753
767
|
class: Z(m(v.maxDimensions.error))
|
|
754
768
|
}, {
|
|
755
|
-
default:
|
|
756
|
-
|
|
769
|
+
default: y(() => [
|
|
770
|
+
C(x(V.value), 1)
|
|
757
771
|
]),
|
|
758
772
|
_: 1
|
|
759
773
|
}, 8, ["class"])) : u("", !0),
|
|
760
|
-
v.maxCount ? (s(),
|
|
774
|
+
v.maxCount ? (s(), w(t(_), {
|
|
761
775
|
key: 3,
|
|
762
776
|
class: Z(m(v.maxCount.error))
|
|
763
777
|
}, {
|
|
764
|
-
default:
|
|
765
|
-
|
|
778
|
+
default: y(() => [
|
|
779
|
+
C(x(t(o)("maxUpload", v.maxCount.value, { count: t(n)(v.maxCount.value) })), 1)
|
|
766
780
|
]),
|
|
767
781
|
_: 1
|
|
768
782
|
}, 8, ["class"])) : u("", !0)
|
|
769
783
|
], 2));
|
|
770
784
|
}
|
|
771
|
-
}),
|
|
785
|
+
}), Oi = /* @__PURE__ */ j(Va, [["__scopeId", "data-v-e75ae2de"]]), Yi = {
|
|
772
786
|
"application/prs.cww": ["cww"],
|
|
773
787
|
"application/prs.xsf+xml": ["xsf"],
|
|
774
788
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1467,8 +1481,8 @@ const Wa = {
|
|
|
1467
1481
|
"video/x-smv": ["smv"],
|
|
1468
1482
|
"x-conference/x-cooltalk": ["ice"]
|
|
1469
1483
|
};
|
|
1470
|
-
Object.freeze(
|
|
1471
|
-
const
|
|
1484
|
+
Object.freeze(Yi);
|
|
1485
|
+
const Xi = {
|
|
1472
1486
|
"application/andrew-inset": ["ez"],
|
|
1473
1487
|
"application/appinstaller": ["appinstaller"],
|
|
1474
1488
|
"application/applixware": ["aw"],
|
|
@@ -1820,133 +1834,140 @@ const Ja = {
|
|
|
1820
1834
|
"video/quicktime": ["qt", "mov"],
|
|
1821
1835
|
"video/webm": ["webm"]
|
|
1822
1836
|
};
|
|
1823
|
-
Object.freeze(
|
|
1824
|
-
var
|
|
1825
|
-
if (
|
|
1826
|
-
if (typeof
|
|
1827
|
-
return
|
|
1828
|
-
},
|
|
1829
|
-
class
|
|
1830
|
-
constructor(...
|
|
1831
|
-
|
|
1832
|
-
for (const
|
|
1833
|
-
this.define(
|
|
1837
|
+
Object.freeze(Xi);
|
|
1838
|
+
var L = function(i, e, l, o) {
|
|
1839
|
+
if (l === "a" && !o) throw new TypeError("Private accessor was defined without a getter");
|
|
1840
|
+
if (typeof e == "function" ? i !== e || !o : !e.has(i)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1841
|
+
return l === "m" ? o : l === "a" ? o.call(i) : o ? o.value : e.get(i);
|
|
1842
|
+
}, J, ai, P;
|
|
1843
|
+
class qa {
|
|
1844
|
+
constructor(...e) {
|
|
1845
|
+
J.set(this, /* @__PURE__ */ new Map()), ai.set(this, /* @__PURE__ */ new Map()), P.set(this, /* @__PURE__ */ new Map());
|
|
1846
|
+
for (const l of e)
|
|
1847
|
+
this.define(l);
|
|
1834
1848
|
}
|
|
1835
|
-
define(
|
|
1836
|
-
for (let [
|
|
1837
|
-
|
|
1838
|
-
const
|
|
1839
|
-
let
|
|
1840
|
-
for (let m of
|
|
1849
|
+
define(e, l = !1) {
|
|
1850
|
+
for (let [o, n] of Object.entries(e)) {
|
|
1851
|
+
o = o.toLowerCase(), n = n.map((m) => m.toLowerCase()), L(this, P, "f").has(o) || L(this, P, "f").set(o, /* @__PURE__ */ new Set());
|
|
1852
|
+
const r = L(this, P, "f").get(o);
|
|
1853
|
+
let p = !0;
|
|
1854
|
+
for (let m of n) {
|
|
1841
1855
|
const h = m.startsWith("*");
|
|
1842
|
-
if (m = h ? m.slice(1) : m,
|
|
1856
|
+
if (m = h ? m.slice(1) : m, r?.add(m), p && L(this, ai, "f").set(o, m), p = !1, h)
|
|
1843
1857
|
continue;
|
|
1844
|
-
const
|
|
1845
|
-
if (
|
|
1846
|
-
throw new Error(`"${
|
|
1847
|
-
|
|
1858
|
+
const E = L(this, J, "f").get(m);
|
|
1859
|
+
if (E && E != o && !l)
|
|
1860
|
+
throw new Error(`"${o} -> ${m}" conflicts with "${E} -> ${m}". Pass \`force=true\` to override this definition.`);
|
|
1861
|
+
L(this, J, "f").set(m, o);
|
|
1848
1862
|
}
|
|
1849
1863
|
}
|
|
1850
1864
|
return this;
|
|
1851
1865
|
}
|
|
1852
|
-
getType(
|
|
1853
|
-
if (typeof
|
|
1866
|
+
getType(e) {
|
|
1867
|
+
if (typeof e != "string")
|
|
1854
1868
|
return null;
|
|
1855
|
-
const
|
|
1856
|
-
return !(
|
|
1869
|
+
const l = e.replace(/^.*[/\\]/, "").toLowerCase(), o = l.replace(/^.*\./, "").toLowerCase(), n = l.length < e.length;
|
|
1870
|
+
return !(o.length < l.length - 1) && n ? null : L(this, J, "f").get(o) ?? null;
|
|
1857
1871
|
}
|
|
1858
|
-
getExtension(
|
|
1859
|
-
return typeof
|
|
1872
|
+
getExtension(e) {
|
|
1873
|
+
return typeof e != "string" ? null : (e = e?.split?.(";")[0], (e && L(this, ai, "f").get(e.trim().toLowerCase())) ?? null);
|
|
1860
1874
|
}
|
|
1861
|
-
getAllExtensions(
|
|
1862
|
-
return typeof
|
|
1875
|
+
getAllExtensions(e) {
|
|
1876
|
+
return typeof e != "string" ? null : L(this, P, "f").get(e.toLowerCase()) ?? null;
|
|
1863
1877
|
}
|
|
1864
1878
|
_freeze() {
|
|
1865
1879
|
this.define = () => {
|
|
1866
1880
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1867
1881
|
}, Object.freeze(this);
|
|
1868
|
-
for (const
|
|
1869
|
-
Object.freeze(
|
|
1882
|
+
for (const e of L(this, P, "f").values())
|
|
1883
|
+
Object.freeze(e);
|
|
1870
1884
|
return this;
|
|
1871
1885
|
}
|
|
1872
1886
|
_getTestState() {
|
|
1873
1887
|
return {
|
|
1874
|
-
types:
|
|
1875
|
-
extensions:
|
|
1888
|
+
types: L(this, J, "f"),
|
|
1889
|
+
extensions: L(this, ai, "f")
|
|
1876
1890
|
};
|
|
1877
1891
|
}
|
|
1878
1892
|
}
|
|
1879
|
-
|
|
1880
|
-
const
|
|
1893
|
+
J = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap();
|
|
1894
|
+
const Ji = new qa(Xi, Yi)._freeze(), zi = {
|
|
1895
|
+
"de-DE": { audioFiles: "Audiodateien", browseFiles: "Dateien durchsuchen", dropArea: "Ablagebereich", dropFiles: "Datei zum Hochladen ablegen | Dateien zum Hochladen ablegen", fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung", imageFiles: "Bilddateien", noFilesUploaded: "Keine Dateien hochgeladen", tooManyFiles: "Zu viele Dateien", videoFiles: "Videodateien", youHaveExceededTheMaximum: "Sie haben die maximale Anzahl von {count} Dateien überschritten. Bitte entfernen Sie einige Dateien, bevor Sie fortfahren." },
|
|
1896
|
+
"en-GB": { audioFiles: "audio files", browseFiles: "Browse files", dropArea: "Drop area", dropFiles: "Drop file to upload | Drop files to upload", fileExceedsSizeLimit: "File exceeds size limit", imageFiles: "image files", noFilesUploaded: "No files uploaded", tooManyFiles: "Too many files", videoFiles: "video files", youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding." },
|
|
1881
1897
|
"en-US": { audioFiles: "audio files", browseFiles: "Browse files", dropArea: "Drop area", dropFiles: "Drop file to upload | Drop files to upload", fileExceedsSizeLimit: "File exceeds size limit", imageFiles: "image files", noFilesUploaded: "No files uploaded", tooManyFiles: "Too many files", videoFiles: "video files", youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding." },
|
|
1898
|
+
"es-ES": { audioFiles: "archivos de audio", browseFiles: "Explorar archivos", dropArea: "Zona de soltar", dropFiles: "Arrastrar archivo para cargar | Arrastrar archivos para cargar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", imageFiles: "archivos de imagen", noFilesUploaded: "No se han cargado archivos", tooManyFiles: "Demasiados archivos", videoFiles: "archivos de vídeo", youHaveExceededTheMaximum: "Has superado el límite máximo de {count} archivos. Elimina algunos antes de continuar." },
|
|
1899
|
+
"es-MX": { audioFiles: "archivos de audio", browseFiles: "Explorar archivos", dropArea: "Área de soltar", dropFiles: "Soltar archivo para cargar | Arrastrar archivos para cargar", fileExceedsSizeLimit: "El archivo supera el límite de tamaño", imageFiles: "archivos de imagen", noFilesUploaded: "No hay archivos cargados", tooManyFiles: "Demasiados archivos", videoFiles: "archivos de video", youHaveExceededTheMaximum: "Superaste el límite máximo de {count} archivos. Elimina algunos archivos antes de continuar." },
|
|
1900
|
+
"fr-FR": { audioFiles: "fichiers audio", browseFiles: "Parcourir les fichiers", dropArea: "Zone de dépôt", dropFiles: "Déposer un fichier à télécharger | Déposer des fichiers à télécharger", fileExceedsSizeLimit: "Le fichier dépasse la limite de taille", imageFiles: "fichiers image", noFilesUploaded: "Aucun fichier téléchargé", tooManyFiles: "Trop de fichiers", videoFiles: "fichiers vidéo", youHaveExceededTheMaximum: "Vous avez dépassé la limite maximale de {count} fichiers. Veuillez supprimer certains fichiers avant de continuer." },
|
|
1901
|
+
"it-IT": { audioFiles: "file audio", browseFiles: "Sfoglia i file", dropArea: "Area di scarico", dropFiles: "Trascina il file per caricarlo | Trascina i file per caricarli", fileExceedsSizeLimit: "Il file supera il limite di dimensione", imageFiles: "file di immagini", noFilesUploaded: "Nessun file caricato", tooManyFiles: "Troppi file", videoFiles: "file video", youHaveExceededTheMaximum: "Hai superato il limite massimo di {count} file. Rimuovi alcuni file prima di procedere." },
|
|
1882
1902
|
"ja-JP": { audioFiles: "オーディオファイル", browseFiles: "ファイルを参照", dropArea: "ドロップエリア", dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード", fileExceedsSizeLimit: "ファイルがサイズ制限を超えています", imageFiles: "画像ファイル", noFilesUploaded: "ファイルはアップロードされていません", tooManyFiles: "ファイルが多すぎます", videoFiles: "ビデオファイル", youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。" },
|
|
1883
|
-
"pt-BR": { audioFiles: "arquivos de áudio", browseFiles: "Procurar arquivos", dropArea: "Área de soltar", dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", imageFiles: "arquivos de imagem", noFilesUploaded: "Nenhum arquivo carregado", tooManyFiles: "
|
|
1903
|
+
"pt-BR": { audioFiles: "arquivos de áudio", browseFiles: "Procurar arquivos", dropArea: "Área de soltar", dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", imageFiles: "arquivos de imagem", noFilesUploaded: "Nenhum arquivo carregado", tooManyFiles: "Arquivos demais", videoFiles: "arquivos de vídeo", youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir." },
|
|
1904
|
+
"zh-CN": { audioFiles: "音频文件", browseFiles: "浏览文件", dropArea: "拖放区", dropFiles: "拖放文件以上传 | 拖放文件以上传", fileExceedsSizeLimit: "文件大小超过限制", imageFiles: "图像文件", noFilesUploaded: "未上传文件", tooManyFiles: "文件过多", videoFiles: "视频文件", youHaveExceededTheMaximum: "已超出 {count} 个文件的上限数量。请在继续之前移除一些文件。" }
|
|
1884
1905
|
};
|
|
1885
|
-
function
|
|
1886
|
-
return
|
|
1906
|
+
function Aa(i) {
|
|
1907
|
+
return i.includes("/") ? `.${Ji.getExtension(i).toUpperCase()}` : i.toUpperCase();
|
|
1887
1908
|
}
|
|
1888
|
-
function
|
|
1889
|
-
const { locale:
|
|
1909
|
+
function Oa(i) {
|
|
1910
|
+
const { locale: e, t: l } = di({ messages: zi });
|
|
1890
1911
|
return { supportedFileTypeList: f(() => {
|
|
1891
|
-
const
|
|
1892
|
-
return
|
|
1893
|
-
|
|
1894
|
-
switch (
|
|
1912
|
+
const n = new Intl.ListFormat(e.value, { style: "short", type: "unit" });
|
|
1913
|
+
return i?.value ? n.format(
|
|
1914
|
+
i.value.split(",").map((r) => {
|
|
1915
|
+
switch (r.trim()) {
|
|
1895
1916
|
case "audio/*":
|
|
1896
|
-
return
|
|
1917
|
+
return l("audioFiles");
|
|
1897
1918
|
case "image/*":
|
|
1898
|
-
return
|
|
1919
|
+
return l("imageFiles");
|
|
1899
1920
|
case "video/*":
|
|
1900
|
-
return
|
|
1921
|
+
return l("videoFiles");
|
|
1901
1922
|
default:
|
|
1902
|
-
return
|
|
1923
|
+
return Aa(r);
|
|
1903
1924
|
}
|
|
1904
1925
|
})
|
|
1905
1926
|
) : null;
|
|
1906
1927
|
}) };
|
|
1907
1928
|
}
|
|
1908
|
-
function
|
|
1909
|
-
return
|
|
1929
|
+
function Ba(i) {
|
|
1930
|
+
return Ji.getType(i) ?? i;
|
|
1910
1931
|
}
|
|
1911
|
-
function
|
|
1912
|
-
const
|
|
1932
|
+
function Ua({ maxCount: i, accept: e }) {
|
|
1933
|
+
const l = wi({
|
|
1913
1934
|
invalidTypes: !1,
|
|
1914
1935
|
partiallyInvalidTypes: !1,
|
|
1915
1936
|
maxCountOverflow: !1
|
|
1916
|
-
}),
|
|
1937
|
+
}), o = wi({
|
|
1917
1938
|
dragging: !1,
|
|
1918
1939
|
error: !1
|
|
1919
|
-
}),
|
|
1920
|
-
function
|
|
1921
|
-
|
|
1940
|
+
}), n = f(() => e.value ? e.value.split(",").map((h) => Ba(h.trim().toLocaleLowerCase())) : void 0);
|
|
1941
|
+
function r() {
|
|
1942
|
+
o.dragging = !1, o.error = !1, l.invalidTypes = !1, l.partiallyInvalidTypes = !1, l.maxCountOverflow = !1;
|
|
1922
1943
|
}
|
|
1923
|
-
function
|
|
1924
|
-
if (
|
|
1944
|
+
function p(m, h) {
|
|
1945
|
+
if (o.dragging = !0, (!h.dataTransfer.types.includes("Files") || m > i.value) && (l.maxCountOverflow = !0, o.error = !0), !n.value)
|
|
1925
1946
|
return;
|
|
1926
|
-
let
|
|
1927
|
-
for (const
|
|
1928
|
-
|
|
1929
|
-
if (
|
|
1930
|
-
|
|
1947
|
+
let E = 0;
|
|
1948
|
+
for (const H of h.dataTransfer.items)
|
|
1949
|
+
n.value.includes(H.type) && E++;
|
|
1950
|
+
if (E === 0) {
|
|
1951
|
+
o.error = !0, l.invalidTypes = !0;
|
|
1931
1952
|
return;
|
|
1932
1953
|
}
|
|
1933
|
-
!
|
|
1954
|
+
!l.invalidTypes && E !== h.dataTransfer.items.length && (o.error = !0, l.partiallyInvalidTypes = !0);
|
|
1934
1955
|
}
|
|
1935
1956
|
return {
|
|
1936
|
-
dragState:
|
|
1937
|
-
dragErrors:
|
|
1938
|
-
resetDragState:
|
|
1939
|
-
onDragEnterValidations:
|
|
1957
|
+
dragState: o,
|
|
1958
|
+
dragErrors: l,
|
|
1959
|
+
resetDragState: r,
|
|
1960
|
+
onDragEnterValidations: p
|
|
1940
1961
|
};
|
|
1941
1962
|
}
|
|
1942
|
-
const
|
|
1963
|
+
const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"], Pa = ["aria-labelledby", "tabindex"], Wa = {
|
|
1943
1964
|
class: "b-file-uploader__icon",
|
|
1944
1965
|
"aria-hidden": "true"
|
|
1945
|
-
},
|
|
1966
|
+
}, Ga = { class: "b-file-uploader__files" }, Ya = {
|
|
1946
1967
|
model: { prop: "modelValue" },
|
|
1947
|
-
i18n: { messages:
|
|
1948
|
-
},
|
|
1949
|
-
...
|
|
1968
|
+
i18n: { messages: zi }
|
|
1969
|
+
}, Xa = /* @__PURE__ */ ri({
|
|
1970
|
+
...Ya,
|
|
1950
1971
|
__name: "file-uploader",
|
|
1951
1972
|
props: {
|
|
1952
1973
|
accept: { default: null },
|
|
@@ -1966,300 +1987,300 @@ const Ze = ["id", "aria-required", "accept", "disabled", "multiple"], Ne = ["id"
|
|
|
1966
1987
|
tooltipText: { default: null }
|
|
1967
1988
|
},
|
|
1968
1989
|
emits: ["change", "input", "update:model-value", "error:upload"],
|
|
1969
|
-
setup(
|
|
1970
|
-
const { t:
|
|
1971
|
-
function h(
|
|
1972
|
-
return !!
|
|
1990
|
+
setup(i, { emit: e }) {
|
|
1991
|
+
const { t: l, tc: o, n } = di({ messages: zi }), r = e, p = i, { emitValue: m } = be(r);
|
|
1992
|
+
function h(a) {
|
|
1993
|
+
return !!a && typeof a.length == "number" && typeof a.item == "function";
|
|
1973
1994
|
}
|
|
1974
|
-
|
|
1975
|
-
h(
|
|
1995
|
+
Bi(() => {
|
|
1996
|
+
h(p.modelValue) || he(
|
|
1976
1997
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1977
1998
|
"Use FileList instead.",
|
|
1978
1999
|
"2.0.0"
|
|
1979
2000
|
);
|
|
1980
2001
|
});
|
|
1981
|
-
const { supportedFileTypeList:
|
|
1982
|
-
const
|
|
1983
|
-
return `${
|
|
1984
|
-
}), { dragState:
|
|
1985
|
-
accept:
|
|
1986
|
-
maxCount:
|
|
1987
|
-
}),
|
|
1988
|
-
condensed:
|
|
1989
|
-
disabled:
|
|
2002
|
+
const { supportedFileTypeList: E } = Oa(hi(p, "accept")), H = R("browse-button"), V = R("custom-text"), v = R("drop-files-text"), F = R("comma-text"), O = R("file-uploader-restrictions"), q = R("field-label"), b = S(null), N = S([]), B = S(null), K = S(null), Q = R("input"), ti = R("input-error"), oi = f(() => {
|
|
2003
|
+
const a = p.label ? `${q} ${F}` : "", d = p.condensed ? "" : `${v} ${F}`, z = p.description ? `${V} ${F}` : "", I = `${O} ${F}`;
|
|
2004
|
+
return `${a} ${d} ${z} ${I} ${H}`;
|
|
2005
|
+
}), { dragState: ni, dragErrors: W, resetDragState: G, onDragEnterValidations: li } = Ua({
|
|
2006
|
+
accept: hi(p, "accept"),
|
|
2007
|
+
maxCount: hi(p, "maxCount")
|
|
2008
|
+
}), pi = f(() => ({
|
|
2009
|
+
condensed: p.condensed,
|
|
2010
|
+
disabled: p.disabled,
|
|
1990
2011
|
maxCount: Y.value ? {
|
|
1991
|
-
value:
|
|
1992
|
-
error: W.maxCountOverflow ||
|
|
2012
|
+
value: p.maxCount,
|
|
2013
|
+
error: W.maxCountOverflow || Ci.value
|
|
1993
2014
|
} : null,
|
|
1994
|
-
maxDimensions:
|
|
1995
|
-
value:
|
|
1996
|
-
error: b.value?.some((
|
|
2015
|
+
maxDimensions: p.maxDimensions ? {
|
|
2016
|
+
value: p.maxDimensions,
|
|
2017
|
+
error: b.value?.some((a) => a.errors.includes(T.ERROR_DIMENSIONS))
|
|
1997
2018
|
} : null,
|
|
1998
|
-
maxSize:
|
|
1999
|
-
value:
|
|
2000
|
-
error: b.value?.some((
|
|
2019
|
+
maxSize: p.maxSize ? {
|
|
2020
|
+
value: p.maxSize,
|
|
2021
|
+
error: b.value?.some((a) => a.errors.includes(T.ERROR_SIZE))
|
|
2001
2022
|
} : null,
|
|
2002
|
-
supportedFileTypes:
|
|
2003
|
-
value:
|
|
2004
|
-
error: W.invalidTypes || W.partiallyInvalidTypes || b.value?.some((
|
|
2023
|
+
supportedFileTypes: E.value ? {
|
|
2024
|
+
value: E.value,
|
|
2025
|
+
error: W.invalidTypes || W.partiallyInvalidTypes || b.value?.some((a) => a.errors.includes(T.ERROR_TYPE))
|
|
2005
2026
|
} : null
|
|
2006
|
-
})),
|
|
2007
|
-
[`b-file-uploader--${
|
|
2008
|
-
[`b-file-uploader--${
|
|
2009
|
-
[`b-file-uploader--${
|
|
2010
|
-
"b-file-uploader--condensed":
|
|
2011
|
-
})), Y = f(() =>
|
|
2012
|
-
N.value[
|
|
2027
|
+
})), ii = S(), ci = f(() => ({
|
|
2028
|
+
[`b-file-uploader--${si.DISABLED}`]: p.disabled,
|
|
2029
|
+
[`b-file-uploader--${si.DRAG_OVER}`]: ni.dragging,
|
|
2030
|
+
[`b-file-uploader--${si.ERROR}`]: ui.value,
|
|
2031
|
+
"b-file-uploader--condensed": p.condensed
|
|
2032
|
+
})), Y = f(() => p.maxCount > 1), mi = f(() => p.maxCount && b.value?.length >= p.maxCount || p.readonly), $ = f(() => b.value?.some((a) => a.state === "loading")), A = (a) => (d) => {
|
|
2033
|
+
N.value[a] = d;
|
|
2013
2034
|
};
|
|
2014
|
-
function
|
|
2015
|
-
if (
|
|
2016
|
-
|
|
2017
|
-
const d =
|
|
2018
|
-
|
|
2035
|
+
function ei(a) {
|
|
2036
|
+
if (a) {
|
|
2037
|
+
le(a), pe(a);
|
|
2038
|
+
const d = se(a);
|
|
2039
|
+
r("change", d), m(d);
|
|
2019
2040
|
} else
|
|
2020
|
-
|
|
2041
|
+
r("change", void 0), m(void 0);
|
|
2021
2042
|
}
|
|
2022
|
-
const
|
|
2023
|
-
|
|
2024
|
-
|
|
2043
|
+
const ui = f(() => !!p.errorMessage || ni.error), Ci = f(() => b.value?.length > p.maxCount), Ki = S(!1), Qi = f(() => b.value?.some((a) => a.state === "error"));
|
|
2044
|
+
yi(Qi, (a) => {
|
|
2045
|
+
$.value || r("error:upload", a);
|
|
2025
2046
|
});
|
|
2026
|
-
async function
|
|
2027
|
-
if (await
|
|
2047
|
+
async function vi() {
|
|
2048
|
+
if (await xe(), b.value.length === p.maxCount) {
|
|
2028
2049
|
N.value[0]?.focus();
|
|
2029
2050
|
return;
|
|
2030
2051
|
}
|
|
2031
2052
|
K.value.focus();
|
|
2032
2053
|
}
|
|
2033
|
-
async function
|
|
2034
|
-
b.value = b.value.filter(({ id: d }) => d !==
|
|
2054
|
+
async function Ei(a) {
|
|
2055
|
+
b.value = b.value.filter(({ id: d }) => d !== a.id), await vi(), ei(b.value);
|
|
2035
2056
|
}
|
|
2036
|
-
function
|
|
2037
|
-
const d =
|
|
2038
|
-
id:
|
|
2039
|
-
data:
|
|
2057
|
+
function fi(a) {
|
|
2058
|
+
const d = wi({
|
|
2059
|
+
id: R("file"),
|
|
2060
|
+
data: a,
|
|
2040
2061
|
errors: [],
|
|
2041
2062
|
progress: null,
|
|
2042
2063
|
state: M.LOADING,
|
|
2043
|
-
type:
|
|
2064
|
+
type: qe(a)
|
|
2044
2065
|
});
|
|
2045
|
-
return
|
|
2066
|
+
return Ae(d, p.accept, p.maxDimensions), d;
|
|
2046
2067
|
}
|
|
2047
|
-
function
|
|
2048
|
-
b.value?.length ===
|
|
2068
|
+
function ie(a) {
|
|
2069
|
+
b.value?.length === p.maxCount && a.preventDefault();
|
|
2049
2070
|
}
|
|
2050
|
-
async function
|
|
2051
|
-
if (
|
|
2052
|
-
|
|
2071
|
+
async function Fi(a) {
|
|
2072
|
+
if (p.maxCount === 1 && a.length > p.maxCount) {
|
|
2073
|
+
xi(), G();
|
|
2053
2074
|
return;
|
|
2054
2075
|
}
|
|
2055
|
-
Y.value ? b.value = [...b.value || [], ...Array.from(
|
|
2076
|
+
Y.value ? b.value = [...b.value || [], ...Array.from(a).map((d) => fi(d))] : (b.value = [fi(a[0])], await vi()), ei(b.value);
|
|
2056
2077
|
}
|
|
2057
|
-
function
|
|
2058
|
-
if (
|
|
2078
|
+
function ee(a) {
|
|
2079
|
+
if (p.disabled)
|
|
2059
2080
|
return;
|
|
2060
|
-
|
|
2061
|
-
const d = (
|
|
2062
|
-
|
|
2081
|
+
ii.value = a.target;
|
|
2082
|
+
const d = (a.dataTransfer.items?.length ?? 0) + (b.value?.length ?? 0);
|
|
2083
|
+
li(d, a);
|
|
2063
2084
|
}
|
|
2064
|
-
function
|
|
2065
|
-
|
|
2085
|
+
function xi() {
|
|
2086
|
+
ii.value = null;
|
|
2066
2087
|
}
|
|
2067
|
-
function
|
|
2068
|
-
|
|
2088
|
+
function ae(a) {
|
|
2089
|
+
ii.value === a.target && (xi(), G());
|
|
2069
2090
|
}
|
|
2070
|
-
function
|
|
2071
|
-
|
|
2091
|
+
function te(a) {
|
|
2092
|
+
a.preventDefault(), p.disabled && (a.dataTransfer.dropEffect = "none");
|
|
2072
2093
|
}
|
|
2073
|
-
async function
|
|
2074
|
-
|
|
2094
|
+
async function oe(a) {
|
|
2095
|
+
p.disabled || (!W.invalidTypes && a.dataTransfer.files?.length && Fi(a.dataTransfer.files), xi(), G());
|
|
2075
2096
|
}
|
|
2076
|
-
async function
|
|
2077
|
-
|
|
2097
|
+
async function ne() {
|
|
2098
|
+
B.value.files?.length && Fi(B.value.files), B.value.value = "", await vi();
|
|
2078
2099
|
}
|
|
2079
|
-
|
|
2080
|
-
() =>
|
|
2081
|
-
(
|
|
2082
|
-
if (
|
|
2083
|
-
const
|
|
2084
|
-
b.value =
|
|
2085
|
-
} else !
|
|
2100
|
+
yi(
|
|
2101
|
+
() => p.modelValue,
|
|
2102
|
+
(a) => {
|
|
2103
|
+
if (a && h(a)) {
|
|
2104
|
+
const z = Array.from(a);
|
|
2105
|
+
b.value = z.map((I) => fi(I));
|
|
2106
|
+
} else !a && b.value && (b.value = null);
|
|
2086
2107
|
},
|
|
2087
2108
|
{ immediate: !0 }
|
|
2088
2109
|
);
|
|
2089
|
-
function
|
|
2090
|
-
const d =
|
|
2091
|
-
|
|
2110
|
+
function le(a) {
|
|
2111
|
+
const d = p.maxCount && a.length <= p.maxCount;
|
|
2112
|
+
Ki.value = !d;
|
|
2092
2113
|
}
|
|
2093
|
-
function
|
|
2094
|
-
|
|
2095
|
-
const
|
|
2096
|
-
let
|
|
2097
|
-
Array.isArray(
|
|
2098
|
-
(
|
|
2099
|
-
)?.maxSize :
|
|
2114
|
+
function pe(a) {
|
|
2115
|
+
p.maxSize && a.forEach((d) => {
|
|
2116
|
+
const z = d;
|
|
2117
|
+
let I;
|
|
2118
|
+
Array.isArray(p.maxSize) ? I = p.maxSize.find(
|
|
2119
|
+
(re) => Pi(z.data, re.fileType)
|
|
2120
|
+
)?.maxSize : I = p.maxSize, I && z.data.size > I && (z.state = M.ERROR, z.errors.includes(T.ERROR_SIZE) || z.errors.push(T.ERROR_SIZE));
|
|
2100
2121
|
});
|
|
2101
2122
|
}
|
|
2102
|
-
function
|
|
2103
|
-
const d =
|
|
2104
|
-
({ errors:
|
|
2123
|
+
function se(a) {
|
|
2124
|
+
const d = a.filter(
|
|
2125
|
+
({ errors: z }) => !z.includes(T.ERROR_LOAD) && !z.includes(T.ERROR_SIZE)
|
|
2105
2126
|
);
|
|
2106
2127
|
if (d.length) {
|
|
2107
|
-
const
|
|
2108
|
-
return d.forEach(({ data:
|
|
2109
|
-
|
|
2110
|
-
}),
|
|
2128
|
+
const z = new DataTransfer();
|
|
2129
|
+
return d.forEach(({ data: I, id: gi }) => {
|
|
2130
|
+
z.items.add(I);
|
|
2131
|
+
}), z.files;
|
|
2111
2132
|
}
|
|
2112
2133
|
}
|
|
2113
|
-
return (
|
|
2114
|
-
class: Z(["b-file-uploader",
|
|
2134
|
+
return (a, d) => (s(), g("div", {
|
|
2135
|
+
class: Z(["b-file-uploader", ci.value])
|
|
2115
2136
|
}, [
|
|
2116
|
-
U(t(
|
|
2137
|
+
U(t($e), {
|
|
2117
2138
|
id: t(q),
|
|
2118
2139
|
class: "b-file-uploader__label",
|
|
2119
2140
|
for: t(Q),
|
|
2120
|
-
label:
|
|
2121
|
-
optional:
|
|
2122
|
-
required:
|
|
2123
|
-
"tooltip-text":
|
|
2141
|
+
label: a.label,
|
|
2142
|
+
optional: a.optional,
|
|
2143
|
+
required: a.required,
|
|
2144
|
+
"tooltip-text": a.tooltipText
|
|
2124
2145
|
}, null, 8, ["id", "for", "label", "optional", "required", "tooltip-text"]),
|
|
2125
|
-
|
|
2146
|
+
c("input", {
|
|
2126
2147
|
id: t(Q),
|
|
2127
2148
|
ref_key: "inputRef",
|
|
2128
|
-
ref:
|
|
2129
|
-
"aria-required":
|
|
2149
|
+
ref: B,
|
|
2150
|
+
"aria-required": a.required,
|
|
2130
2151
|
type: "file",
|
|
2131
2152
|
tabindex: "-1",
|
|
2132
2153
|
"data-testid": "input",
|
|
2133
2154
|
class: "b-file-uploader__input",
|
|
2134
|
-
accept:
|
|
2135
|
-
disabled:
|
|
2155
|
+
accept: a.accept,
|
|
2156
|
+
disabled: a.disabled,
|
|
2136
2157
|
multiple: Y.value,
|
|
2137
|
-
onChange:
|
|
2138
|
-
onClick:
|
|
2139
|
-
onInvalid: d[0] || (d[0] =
|
|
2158
|
+
onChange: ne,
|
|
2159
|
+
onClick: ie,
|
|
2160
|
+
onInvalid: d[0] || (d[0] = X(() => {
|
|
2140
2161
|
}, ["prevent"]))
|
|
2141
|
-
}, null, 40,
|
|
2142
|
-
|
|
2143
|
-
id: t(
|
|
2162
|
+
}, null, 40, Za),
|
|
2163
|
+
c("span", {
|
|
2164
|
+
id: t(F),
|
|
2144
2165
|
"aria-hidden": "true",
|
|
2145
2166
|
class: "b-file-uploader__invisible-comma"
|
|
2146
|
-
}, " , ", 8,
|
|
2147
|
-
|
|
2167
|
+
}, " , ", 8, Na),
|
|
2168
|
+
mi.value ? u("", !0) : (s(), g("div", {
|
|
2148
2169
|
key: 0,
|
|
2149
2170
|
ref_key: "dropAreaRef",
|
|
2150
2171
|
ref: K,
|
|
2151
|
-
"aria-labelledby":
|
|
2172
|
+
"aria-labelledby": oi.value,
|
|
2152
2173
|
class: "b-file-uploader__area",
|
|
2153
2174
|
role: "button",
|
|
2154
|
-
tabindex:
|
|
2155
|
-
onClick: d[1] || (d[1] = (
|
|
2156
|
-
onDragenter:
|
|
2157
|
-
onDragleave:
|
|
2158
|
-
onDrop:
|
|
2159
|
-
onDragover:
|
|
2175
|
+
tabindex: a.disabled ? -1 : 0,
|
|
2176
|
+
onClick: d[1] || (d[1] = (z) => B.value.click()),
|
|
2177
|
+
onDragenter: X(ee, ["stop", "prevent"]),
|
|
2178
|
+
onDragleave: X(ae, ["stop", "prevent"]),
|
|
2179
|
+
onDrop: X(oe, ["stop", "prevent"]),
|
|
2180
|
+
onDragover: te,
|
|
2160
2181
|
onKeydownCapture: [
|
|
2161
|
-
d[2] || (d[2] =
|
|
2162
|
-
d[3] || (d[3] =
|
|
2182
|
+
d[2] || (d[2] = Ti(X((z) => B.value.click(), ["prevent"]), ["enter"])),
|
|
2183
|
+
d[3] || (d[3] = Ti(X((z) => B.value.click(), ["prevent"]), ["space"]))
|
|
2163
2184
|
]
|
|
2164
2185
|
}, [
|
|
2165
|
-
|
|
2166
|
-
|
|
2186
|
+
c("div", Wa, [
|
|
2187
|
+
ui.value ? (s(), w(t(Zi), { key: 0 })) : (s(), w(t(je), { key: 1 }))
|
|
2167
2188
|
]),
|
|
2168
|
-
|
|
2169
|
-
U(t(
|
|
2189
|
+
a.condensed ? u("", !0) : (s(), g(_i, { key: 0 }, [
|
|
2190
|
+
U(t(_), {
|
|
2170
2191
|
id: t(v),
|
|
2171
2192
|
el: "span",
|
|
2172
2193
|
strongest: "",
|
|
2173
2194
|
class: "b-file-uploader__title"
|
|
2174
2195
|
}, {
|
|
2175
|
-
default:
|
|
2176
|
-
|
|
2196
|
+
default: y(() => [
|
|
2197
|
+
C(x(t(o)("dropFiles", a.maxCount)), 1)
|
|
2177
2198
|
]),
|
|
2178
2199
|
_: 1
|
|
2179
2200
|
}, 8, ["id"]),
|
|
2180
|
-
|
|
2201
|
+
a.description ? (s(), w(t(_), {
|
|
2181
2202
|
key: 0,
|
|
2182
|
-
id: t(
|
|
2203
|
+
id: t(V),
|
|
2183
2204
|
el: "span",
|
|
2184
2205
|
class: "b-file-uploader__description"
|
|
2185
2206
|
}, {
|
|
2186
|
-
default:
|
|
2187
|
-
|
|
2207
|
+
default: y(() => [
|
|
2208
|
+
C(x(a.description), 1)
|
|
2188
2209
|
]),
|
|
2189
2210
|
_: 1
|
|
2190
2211
|
}, 8, ["id"])) : u("", !0),
|
|
2191
|
-
U(t(
|
|
2212
|
+
U(t(Oi), D(pi.value, { id: t(O) }), null, 16, ["id"])
|
|
2192
2213
|
], 64)),
|
|
2193
|
-
U(t(
|
|
2194
|
-
id: t(
|
|
2214
|
+
U(t(_), {
|
|
2215
|
+
id: t(H),
|
|
2195
2216
|
stronger: "",
|
|
2196
2217
|
class: "b-file-uploader__button"
|
|
2197
2218
|
}, {
|
|
2198
|
-
default:
|
|
2199
|
-
|
|
2219
|
+
default: y(() => [
|
|
2220
|
+
C(x(t(l)("browseFiles")), 1)
|
|
2200
2221
|
]),
|
|
2201
2222
|
_: 1
|
|
2202
2223
|
}, 8, ["id"])
|
|
2203
|
-
], 40,
|
|
2204
|
-
|
|
2224
|
+
], 40, Pa)),
|
|
2225
|
+
ui.value && a.errorMessage ? (s(), w(t(Te), {
|
|
2205
2226
|
key: 1,
|
|
2206
|
-
id: t(
|
|
2207
|
-
"error-message":
|
|
2227
|
+
id: t(ti),
|
|
2228
|
+
"error-message": a.errorMessage,
|
|
2208
2229
|
class: "b-file-uploader__error-message"
|
|
2209
2230
|
}, null, 8, ["id", "error-message"])) : u("", !0),
|
|
2210
|
-
|
|
2231
|
+
a.condensed && a.description ? (s(), w(t(_), {
|
|
2211
2232
|
key: 2,
|
|
2212
|
-
id: t(
|
|
2233
|
+
id: t(V),
|
|
2213
2234
|
"aria-hidden": "true",
|
|
2214
2235
|
el: "span",
|
|
2215
2236
|
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2216
2237
|
}, {
|
|
2217
|
-
default:
|
|
2218
|
-
|
|
2238
|
+
default: y(() => [
|
|
2239
|
+
C(x(a.description), 1)
|
|
2219
2240
|
]),
|
|
2220
2241
|
_: 1
|
|
2221
2242
|
}, 8, ["id"])) : u("", !0),
|
|
2222
|
-
|
|
2223
|
-
|
|
2243
|
+
a.condensed ? (s(), w(t(Oi), D({ key: 3 }, pi.value, { id: t(O) }), null, 16, ["id"])) : u("", !0),
|
|
2244
|
+
Ci.value ? (s(), w(t(ge), {
|
|
2224
2245
|
key: 4,
|
|
2225
2246
|
type: "critical"
|
|
2226
2247
|
}, {
|
|
2227
|
-
description:
|
|
2228
|
-
|
|
2248
|
+
description: y(() => [
|
|
2249
|
+
C(x(t(l)("youHaveExceededTheMaximum", { count: t(n)(p.maxCount) })), 1)
|
|
2229
2250
|
]),
|
|
2230
|
-
default:
|
|
2231
|
-
|
|
2251
|
+
default: y(() => [
|
|
2252
|
+
C(x(t(l)("tooManyFiles")) + " ", 1)
|
|
2232
2253
|
]),
|
|
2233
2254
|
_: 1
|
|
2234
2255
|
})) : u("", !0),
|
|
2235
|
-
|
|
2236
|
-
(s(!0), g(
|
|
2256
|
+
Ui(c("div", Ga, [
|
|
2257
|
+
(s(!0), g(_i, null, ve(b.value, (z, I) => (s(), w(t(Da), {
|
|
2237
2258
|
ref_for: !0,
|
|
2238
|
-
ref:
|
|
2239
|
-
key:
|
|
2240
|
-
file:
|
|
2241
|
-
"supported-file-types": t(
|
|
2242
|
-
readonly:
|
|
2243
|
-
onCancel: (
|
|
2244
|
-
onRemove: (
|
|
2259
|
+
ref: A(I),
|
|
2260
|
+
key: z.id,
|
|
2261
|
+
file: z,
|
|
2262
|
+
"supported-file-types": t(E),
|
|
2263
|
+
readonly: a.readonly,
|
|
2264
|
+
onCancel: (gi) => Ei(z),
|
|
2265
|
+
onRemove: (gi) => Ei(z)
|
|
2245
2266
|
}, null, 8, ["file", "supported-file-types", "readonly", "onCancel", "onRemove"]))), 128))
|
|
2246
2267
|
], 512), [
|
|
2247
|
-
[
|
|
2268
|
+
[fe, b.value?.length]
|
|
2248
2269
|
]),
|
|
2249
|
-
!b.value?.length &&
|
|
2270
|
+
!b.value?.length && a.readonly ? (s(), w(t(_), {
|
|
2250
2271
|
key: 5,
|
|
2251
2272
|
class: "b-file-uploader__no-files",
|
|
2252
2273
|
wide: ""
|
|
2253
2274
|
}, {
|
|
2254
|
-
default:
|
|
2255
|
-
|
|
2275
|
+
default: y(() => [
|
|
2276
|
+
C(x(t(l)("noFilesUploaded")), 1)
|
|
2256
2277
|
]),
|
|
2257
2278
|
_: 1
|
|
2258
2279
|
})) : u("", !0)
|
|
2259
2280
|
], 2));
|
|
2260
2281
|
}
|
|
2261
|
-
}), xt = /* @__PURE__ */
|
|
2282
|
+
}), xt = /* @__PURE__ */ j(Xa, [["__scopeId", "data-v-9e27903c"]]);
|
|
2262
2283
|
export {
|
|
2263
2284
|
xt as f
|
|
2264
2285
|
};
|
|
2265
|
-
//# sourceMappingURL=file-uploader.
|
|
2286
|
+
//# sourceMappingURL=file-uploader.BUvDU_cn.js.map
|