@adyen/bento-vue2 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 +198 -80
- 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 +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.D0WVCLec.js +145 -0
- package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
- package/dist/chunks/action-bar.B63qIiiH.js +334 -0
- package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.B63qIiiH.js.map} +1 -1
- package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
- package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
- package/dist/chunks/ai-tag.CCJCOdXu.js +110 -0
- package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.CCJCOdXu.js.map} +1 -1
- package/dist/chunks/alert.CXRb-Smf.js +160 -0
- package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
- package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.DpmeDmq-.js} +103 -66
- package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.DpmeDmq-.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.ChTUOsZl.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.ChTUOsZl.js.map} +1 -1
- package/dist/chunks/{button-actions.BLk114As.js → button-actions.BmU1DngD.js} +221 -147
- package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.BmU1DngD.js.map} +1 -1
- package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
- package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
- package/dist/chunks/{calendar.CXKhBF2f.js → calendar.uvIGF_jU.js} +283 -209
- package/dist/chunks/{calendar.CXKhBF2f.js.map → calendar.uvIGF_jU.js.map} +1 -1
- package/dist/chunks/card.WWUfBkqf.js +165 -0
- package/dist/chunks/{card.GjhsXOT0.js.map → card.WWUfBkqf.js.map} +1 -1
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.CI0xDnql.js} +4 -4
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.CI0xDnql.js.map} +1 -1
- package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.TsWA6O3Z.js} +93 -56
- package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.TsWA6O3Z.js.map} +1 -1
- package/dist/chunks/chip.BFY_-VCz.js +84 -0
- package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
- package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.4DX9iUV8.js} +133 -76
- package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.4DX9iUV8.js.map} +1 -1
- package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.D_KE99mg.js} +2 -2
- package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.D_KE99mg.js.map} +1 -1
- package/dist/chunks/copy.qqGYFbKJ.js +133 -0
- package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
- package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
- package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
- package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
- package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
- package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.TWlLdQHG.js} +3 -3
- package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.TWlLdQHG.js.map} +1 -1
- package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.CpDuQ3Fo.js} +3 -3
- package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.CpDuQ3Fo.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.DZaE-kOS.js} +4 -4
- package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.DZaE-kOS.js.map} +1 -1
- package/dist/chunks/data-grid.x6cEW0az.js +4069 -0
- package/dist/chunks/data-grid.x6cEW0az.js.map +1 -0
- package/dist/chunks/date-picker.Dln8ocL4.js +222 -0
- package/dist/chunks/{date-picker.CnazYcSX.js.map → date-picker.Dln8ocL4.js.map} +1 -1
- package/dist/chunks/date-range-picker.DPGy2h-9.js +1068 -0
- package/dist/chunks/date-range-picker.DPGy2h-9.js.map +1 -0
- package/dist/chunks/dialog-page.EdejG53a.js +143 -0
- package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.Dvzg0StF.js → dropdown-default-textbox.CjhLIxVq.js} +63 -36
- package/dist/chunks/{dropdown-default-textbox.Dvzg0StF.js.map → dropdown-default-textbox.CjhLIxVq.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.t3FlJUSy.js} +5 -5
- package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.t3FlJUSy.js.map} +1 -1
- package/dist/chunks/{dropdown.Ct7uhPr6.js → dropdown.CvNI2V33.js} +329 -235
- package/dist/chunks/{dropdown.Ct7uhPr6.js.map → dropdown.CvNI2V33.js.map} +1 -1
- package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
- package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
- package/dist/chunks/error-message.BUNKRa_w.js +160 -0
- package/dist/chunks/{error-message.RxdStT3S.js.map → error-message.BUNKRa_w.js.map} +1 -1
- package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.Cig5gDXT.js} +749 -468
- package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.Cig5gDXT.js.map} +1 -1
- package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.x445KK3y.js} +1301 -761
- package/dist/chunks/{filter-bar.zD_ctViU.js.map → filter-bar.x445KK3y.js.map} +1 -1
- package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
- package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
- package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CIkul1OD.js} +3 -3
- package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CIkul1OD.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Bw7VgOO5.js → form-layout-title.DR5M7GP3.js} +77 -48
- package/dist/chunks/{form-layout-title.Bw7VgOO5.js.map → form-layout-title.DR5M7GP3.js.map} +1 -1
- package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.BC5fdpD1.js} +127 -73
- package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.BC5fdpD1.js.map} +1 -1
- package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.-cvdi9-L.js} +1120 -679
- package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.-cvdi9-L.js.map} +1 -1
- package/dist/chunks/{header.DkC-KKWa.js → header.DtmZjxiU.js} +3 -3
- package/dist/chunks/{header.DkC-KKWa.js.map → header.DtmZjxiU.js.map} +1 -1
- package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
- package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
- package/dist/chunks/input-field-password.Bdlw4dzr.js +381 -0
- package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.Bdlw4dzr.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.DPuWxBBz.js} +98 -71
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.DPuWxBBz.js.map} +1 -1
- package/dist/chunks/input-field.DH25CU_G.js +207 -0
- package/dist/chunks/{input-field.m1PMwa4C.js.map → input-field.DH25CU_G.js.map} +1 -1
- package/dist/chunks/input-time.6eJ4-QdU.js +92 -0
- package/dist/chunks/input-time.6eJ4-QdU.js.map +1 -0
- package/dist/chunks/inspector.BzBPlz-5.js +172 -0
- package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
- package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
- package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
- package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
- package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.CaxuXW-H.js} +63 -36
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.CaxuXW-H.js.map} +1 -1
- package/dist/chunks/{modal.o0KddMiG.js → modal.Brif0vAy.js} +63 -36
- package/dist/chunks/{modal.o0KddMiG.js.map → modal.Brif0vAy.js.map} +1 -1
- package/dist/chunks/{pagination.ZISqB4M_.js → pagination.BmrU_sn_.js} +221 -99
- package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.BmrU_sn_.js.map} +1 -1
- package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
- package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
- package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.5oS-AeYN.js} +4 -4
- package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.5oS-AeYN.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.DSGTe8Zt.js} +1781 -1731
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.DSGTe8Zt.js.map} +1 -1
- package/dist/chunks/search-bar.CNfoeLLt.js +126 -0
- package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.CNfoeLLt.js.map} +1 -1
- package/dist/chunks/secondary-nav.IF5CgeIP.js +226 -0
- package/dist/chunks/secondary-nav.IF5CgeIP.js.map +1 -0
- package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
- package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
- package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.DZjFeQKR.js} +10 -10
- package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.DZjFeQKR.js.map} +1 -1
- package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.DZDXuyzg.js} +66 -39
- package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.DZDXuyzg.js.map} +1 -1
- package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
- package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
- package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.CrPNQbX0.js} +5 -5
- package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.CrPNQbX0.js.map} +1 -1
- package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
- package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
- package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
- package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
- package/dist/chunks/textarea.Bi53QF5Q.js +218 -0
- package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.Bi53QF5Q.js.map} +1 -1
- package/dist/chunks/timeline-item.C6Bi0eam.js +322 -0
- package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.C6Bi0eam.js.map} +1 -1
- package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
- package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
- package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
- package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
- package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.BCiZMLJE.js} +190 -103
- package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.BCiZMLJE.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.Bn3Y8Iuq.js} +490 -359
- package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js.map → use-cached-selected-values.Bn3Y8Iuq.js.map} +1 -1
- package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
- package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
- package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.DRMt9yR2.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.DRMt9yR2.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 +160 -73
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- 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 +215 -213
- 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/link.js +1 -1
- 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 +198 -1
- package/package.json +9 -9
- package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
- package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
- package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
- package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
- package/dist/chunks/card.GjhsXOT0.js +0 -128
- package/dist/chunks/chip.DTpENaGC.js +0 -57
- package/dist/chunks/copy.BVGQcf22.js +0 -86
- package/dist/chunks/country.types.DxKjyd0S.js +0 -20
- package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
- package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
- package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
- package/dist/chunks/date-picker.CnazYcSX.js +0 -155
- package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
- package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
- package/dist/chunks/dialog-page.oyG153fC.js +0 -116
- package/dist/chunks/error-message.RxdStT3S.js +0 -106
- package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
- package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
- package/dist/chunks/input-field.m1PMwa4C.js +0 -170
- package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
- package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
- package/dist/chunks/search-bar.DPjYDhja.js +0 -89
- package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
- package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
- package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
- package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
- package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
- package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
- package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import { defineComponent as G, ref as
|
|
1
|
+
import { defineComponent as G, ref as y, onUnmounted as Oi, onMounted as Fi, computed as d, watch as ni, reactive as oi, toRef as ti, nextTick as Ui } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { n as b } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
4
|
+
import { W as Ei } from "./warning-filled.CbJ1pcB2.js";
|
|
5
|
+
import { B as qi } from "./alert.CXRb-Smf.js";
|
|
6
|
+
import { B as si, d as Zi } from "./typography.C8lPlsbD.js";
|
|
7
7
|
import { u as Y } from "./index.B6WW_F-J.js";
|
|
8
8
|
import { g as _ } from "./generate-uid.NJ8tVoha.js";
|
|
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
|
|
9
|
+
import { u as Ni } from "./form-field.D_2g7vaP.js";
|
|
10
|
+
import { i as Ri } from "./index.Cl4_42j5.js";
|
|
11
|
+
import { B as Pi } from "./bin.Ddb69cr1.js";
|
|
12
|
+
import { C as Wi } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
13
|
+
import { C as Gi } from "./cross.CC_B-vG-.js";
|
|
14
|
+
import { R as Yi } from "./refresh.arF7jP-l.js";
|
|
15
|
+
import { B as Xi } from "./button.C9b2AC9w.js";
|
|
16
|
+
import { B as Ji } from "./link.DB5g6d48.js";
|
|
17
|
+
import { B as Ki } from "./loading-indicator.PxbRzshH.js";
|
|
18
|
+
import { b as Qi } from "./tooltip.BxtnF3is.js";
|
|
19
|
+
import { F as ie, E as ee } from "./error-message.BUNKRa_w.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
|
-
let
|
|
22
|
-
const
|
|
21
|
+
let fi = 0;
|
|
22
|
+
const ae = {
|
|
23
23
|
beforeCreate() {
|
|
24
|
-
this.uuid =
|
|
24
|
+
this.uuid = fi.toString(), fi += 1;
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
return
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
var te = function() {
|
|
28
|
+
var i = this, a = i._self._c;
|
|
29
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", 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" } }), a("path", { attrs: { fill: "#001222", d: "M12.0605 5L11 6.06055L8.75 3.81055V11.75H7.25V3.81055L5 6.06055L3.93945 5L8 0.939453L12.0605 5Z" } })]);
|
|
30
|
+
}, ne = [], oe = /* @__PURE__ */ b(
|
|
31
|
+
ae,
|
|
32
|
+
te,
|
|
33
|
+
ne,
|
|
34
34
|
!1,
|
|
35
35
|
null,
|
|
36
36
|
null
|
|
37
37
|
);
|
|
38
|
-
const
|
|
38
|
+
const le = oe.exports, se = /* @__PURE__ */ G({
|
|
39
39
|
__name: "file-uploader-file-card-animation",
|
|
40
40
|
props: {
|
|
41
41
|
name: null,
|
|
42
42
|
showFileIcon: { type: Boolean }
|
|
43
43
|
},
|
|
44
44
|
setup(t) {
|
|
45
|
-
return { __sfc: !0, isVue2:
|
|
45
|
+
return { __sfc: !0, isVue2: Ri };
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
return
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
var pe = function() {
|
|
49
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
50
|
+
return e.isVue2 ? a("Transition", { attrs: { name: i.name, mode: "out-in", css: i.showFileIcon } }, [i._t("default")], 2) : a("TransitionGroup", { attrs: { name: i.name, css: i.showFileIcon } }, [i._t("default")], 2);
|
|
51
|
+
}, re = [], ce = /* @__PURE__ */ b(
|
|
52
|
+
se,
|
|
53
|
+
pe,
|
|
54
|
+
re,
|
|
55
55
|
!1,
|
|
56
56
|
null,
|
|
57
57
|
null
|
|
58
58
|
);
|
|
59
|
-
const
|
|
60
|
-
function
|
|
61
|
-
const
|
|
62
|
-
let
|
|
59
|
+
const de = ce.exports;
|
|
60
|
+
function me(t, i) {
|
|
61
|
+
const a = y(!1);
|
|
62
|
+
let e;
|
|
63
63
|
function o() {
|
|
64
|
-
|
|
64
|
+
e && e.disconnect();
|
|
65
65
|
}
|
|
66
|
-
return
|
|
66
|
+
return Oi(() => {
|
|
67
67
|
o();
|
|
68
|
-
}),
|
|
69
|
-
o(),
|
|
68
|
+
}), Fi(() => {
|
|
69
|
+
o(), e = new IntersectionObserver(
|
|
70
70
|
(r) => {
|
|
71
|
-
|
|
71
|
+
a.value = !r[0].isIntersecting;
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
root:
|
|
74
|
+
root: i.value,
|
|
75
75
|
threshold: 1
|
|
76
76
|
}
|
|
77
|
-
),
|
|
78
|
-
}),
|
|
77
|
+
), e.observe(t.value.$el);
|
|
78
|
+
}), a;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
81
|
-
function
|
|
82
|
-
const
|
|
80
|
+
const xi = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
81
|
+
function li(t, i) {
|
|
82
|
+
const a = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), xi.length - 1));
|
|
83
83
|
return Intl.NumberFormat(t, {
|
|
84
84
|
style: "unit",
|
|
85
|
-
unit:
|
|
86
|
-
}).format(
|
|
85
|
+
unit: xi[a]
|
|
86
|
+
}).format(i / 1024 ** a);
|
|
87
87
|
}
|
|
88
|
-
var
|
|
89
|
-
const
|
|
88
|
+
var z = /* @__PURE__ */ ((t) => (t.LOADING = "loading", t.SUCCESS = "success", t.ERROR = "error", t))(z || {}), h = /* @__PURE__ */ ((t) => (t.ERROR_SIZE = "error-size", t.ERROR_LOAD = "error-load", t.ERROR_DIMENSIONS = "error-dimensions", t.ERROR_TYPE = "error-type", t))(h || {}), W = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t.DRAG_OVER = "drag-over", t.ERROR = "error", t.READONLY = "readonly", t))(W || {}), u = /* @__PURE__ */ ((t) => (t.TABLE = "table", t.IMAGE = "image", t.VIDEO = "video", t.AUDIO = "audio", t.TEXT = "text", t.PDF = "pdf", t.SLIDES = "slides", t.COMPRESSED = "compressed", t.GENERIC = "generic", t))(u || {});
|
|
89
|
+
const ue = [
|
|
90
90
|
"application/msword",
|
|
91
91
|
// .doc
|
|
92
92
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
93
93
|
// .docx
|
|
94
94
|
"application/rtf"
|
|
95
95
|
// .rtf
|
|
96
|
-
],
|
|
96
|
+
], ve = [
|
|
97
97
|
"application/vnd.ms-excel",
|
|
98
98
|
// .xls
|
|
99
99
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -106,14 +106,14 @@ const ui = [
|
|
|
106
106
|
// .numbers
|
|
107
107
|
"text/csv"
|
|
108
108
|
// .csv
|
|
109
|
-
],
|
|
109
|
+
], fe = [
|
|
110
110
|
"application/vnd.ms-powerpoint",
|
|
111
111
|
// .ppt
|
|
112
112
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
113
113
|
// .pptx
|
|
114
114
|
"application/vnd.oasis.opendocument.presentation"
|
|
115
115
|
// .odp
|
|
116
|
-
],
|
|
116
|
+
], xe = [
|
|
117
117
|
"application/zip",
|
|
118
118
|
// .zip
|
|
119
119
|
"application/vnd.rar",
|
|
@@ -135,227 +135,227 @@ const ui = [
|
|
|
135
135
|
"application/vnd.ms-cab-compressed"
|
|
136
136
|
// .cab
|
|
137
137
|
];
|
|
138
|
-
function
|
|
139
|
-
return
|
|
138
|
+
function ge(t) {
|
|
139
|
+
return ve.includes(t.type) ? u.TABLE : t.type.startsWith("text/") || ue.includes(t.type) ? u.TEXT : t.type.startsWith("image/") ? u.IMAGE : t.type.startsWith("video/") ? u.VIDEO : t.type.startsWith("audio/") ? u.AUDIO : t.type === "application/pdf" ? u.PDF : fe.includes(t.type) ? u.SLIDES : xe.includes(t.type) ? u.COMPRESSED : u.GENERIC;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
if (!
|
|
141
|
+
function Ti(t, i) {
|
|
142
|
+
if (!i)
|
|
143
143
|
return !0;
|
|
144
|
-
const
|
|
145
|
-
for (const
|
|
146
|
-
if (
|
|
147
|
-
if (t.name.endsWith(
|
|
144
|
+
const a = i.split(",").map((e) => e.trim());
|
|
145
|
+
for (const e of a)
|
|
146
|
+
if (e.startsWith(".")) {
|
|
147
|
+
if (t.name.endsWith(e))
|
|
148
148
|
return !0;
|
|
149
|
-
} else if (
|
|
150
|
-
const o =
|
|
149
|
+
} else if (e.endsWith("/*")) {
|
|
150
|
+
const o = e.split("/")[0];
|
|
151
151
|
if (t.type.startsWith(o))
|
|
152
152
|
return !0;
|
|
153
|
-
} else if (
|
|
154
|
-
if (t.type ===
|
|
153
|
+
} else if (e.includes("/")) {
|
|
154
|
+
if (t.type === e)
|
|
155
155
|
return !0;
|
|
156
|
-
} else if (t.name.endsWith(`.${
|
|
156
|
+
} else if (t.name.endsWith(`.${e}`))
|
|
157
157
|
return !0;
|
|
158
158
|
return !1;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
163
|
-
o.state =
|
|
160
|
+
function he(t, i, a) {
|
|
161
|
+
const e = new FileReader(), o = t;
|
|
162
|
+
if (!Ti(o.data, i)) {
|
|
163
|
+
o.state = z.ERROR, o.errors.push(h.ERROR_TYPE);
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
if (
|
|
168
|
-
const
|
|
166
|
+
e.onload = (r) => {
|
|
167
|
+
if (a && o.type === u.IMAGE) {
|
|
168
|
+
const l = new Blob([r.target.result], { type: o.data.type }), p = URL.createObjectURL(l), c = new Image();
|
|
169
169
|
c.onload = function() {
|
|
170
|
-
(c.width >
|
|
170
|
+
(c.width > a.width || c.height > a.height) && (o.state = z.ERROR, o.errors.push(h.ERROR_DIMENSIONS)), URL.revokeObjectURL(p);
|
|
171
171
|
}, c.onerror = function() {
|
|
172
|
-
URL.revokeObjectURL(
|
|
173
|
-
}, c.src =
|
|
172
|
+
URL.revokeObjectURL(p);
|
|
173
|
+
}, c.src = p;
|
|
174
174
|
}
|
|
175
|
-
},
|
|
175
|
+
}, e.onprogress = (r) => {
|
|
176
176
|
r.lengthComputable && (o.progress = r.loaded / r.total * 100);
|
|
177
|
-
},
|
|
178
|
-
o.state !==
|
|
179
|
-
},
|
|
180
|
-
o.state =
|
|
181
|
-
},
|
|
177
|
+
}, e.onloadend = () => {
|
|
178
|
+
o.state !== z.ERROR && (o.state = z.SUCCESS), o.progress = null;
|
|
179
|
+
}, e.onerror = () => {
|
|
180
|
+
o.state = z.ERROR, o.errors.push(h.ERROR_LOAD), o.progress = null;
|
|
181
|
+
}, e.readAsArrayBuffer(o.data);
|
|
182
182
|
}
|
|
183
|
-
let
|
|
184
|
-
const
|
|
183
|
+
let gi = 0;
|
|
184
|
+
const be = {
|
|
185
185
|
beforeCreate() {
|
|
186
|
-
this.uuid =
|
|
186
|
+
this.uuid = gi.toString(), gi += 1;
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
var
|
|
190
|
-
var
|
|
191
|
-
return
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
189
|
+
var _e = function() {
|
|
190
|
+
var i = this, a = i._self._c;
|
|
191
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("g", { attrs: { "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + i.uuid + ")" } }, [a("path", { attrs: { fill: "#001222", 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" } })]), a("defs", [a("clipPath", { attrs: { id: "uia-ui-assets/icons-16-attachment__a" + i.uuid } }, [a("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
192
|
+
}, ye = [], we = /* @__PURE__ */ b(
|
|
193
|
+
be,
|
|
194
|
+
_e,
|
|
195
|
+
ye,
|
|
196
196
|
!1,
|
|
197
197
|
null,
|
|
198
198
|
null
|
|
199
199
|
);
|
|
200
|
-
const
|
|
201
|
-
let
|
|
202
|
-
const
|
|
200
|
+
const Ce = we.exports;
|
|
201
|
+
let hi = 0;
|
|
202
|
+
const ze = {
|
|
203
203
|
beforeCreate() {
|
|
204
|
-
this.uuid =
|
|
204
|
+
this.uuid = hi.toString(), hi += 1;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
var
|
|
208
|
-
var
|
|
209
|
-
return
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
207
|
+
var ke = function() {
|
|
208
|
+
var i = this, a = i._self._c;
|
|
209
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", "fill-rule": "evenodd", 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", "clip-rule": "evenodd" } })]);
|
|
210
|
+
}, Fe = [], Ee = /* @__PURE__ */ b(
|
|
211
|
+
ze,
|
|
212
|
+
ke,
|
|
213
|
+
Fe,
|
|
214
214
|
!1,
|
|
215
215
|
null,
|
|
216
216
|
null
|
|
217
217
|
);
|
|
218
|
-
const
|
|
219
|
-
let
|
|
220
|
-
const
|
|
218
|
+
const Re = Ee.exports;
|
|
219
|
+
let bi = 0;
|
|
220
|
+
const Te = {
|
|
221
221
|
beforeCreate() {
|
|
222
|
-
this.uuid =
|
|
222
|
+
this.uuid = bi.toString(), bi += 1;
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
|
-
var
|
|
226
|
-
var
|
|
227
|
-
return
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
225
|
+
var Ie = function() {
|
|
226
|
+
var i = this, a = i._self._c;
|
|
227
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", 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" } })]);
|
|
228
|
+
}, Se = [], Le = /* @__PURE__ */ b(
|
|
229
|
+
Te,
|
|
230
|
+
Ie,
|
|
231
|
+
Se,
|
|
232
232
|
!1,
|
|
233
233
|
null,
|
|
234
234
|
null
|
|
235
235
|
);
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
const
|
|
236
|
+
const je = Le.exports;
|
|
237
|
+
let _i = 0;
|
|
238
|
+
const De = {
|
|
239
239
|
beforeCreate() {
|
|
240
|
-
this.uuid =
|
|
240
|
+
this.uuid = _i.toString(), _i += 1;
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
var
|
|
244
|
-
var
|
|
245
|
-
return
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
243
|
+
var Me = function() {
|
|
244
|
+
var i = this, a = i._self._c;
|
|
245
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z" } }), a("path", { attrs: { fill: "#001222", d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z" } }), a("path", { attrs: { fill: "#001222", 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" } })]);
|
|
246
|
+
}, $e = [], Be = /* @__PURE__ */ b(
|
|
247
|
+
De,
|
|
248
|
+
Me,
|
|
249
|
+
$e,
|
|
250
250
|
!1,
|
|
251
251
|
null,
|
|
252
252
|
null
|
|
253
253
|
);
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
const
|
|
254
|
+
const He = Be.exports;
|
|
255
|
+
let yi = 0;
|
|
256
|
+
const Ve = {
|
|
257
257
|
beforeCreate() {
|
|
258
|
-
this.uuid =
|
|
258
|
+
this.uuid = yi.toString(), yi += 1;
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
|
-
var
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
261
|
+
var Ae = function() {
|
|
262
|
+
var i = this, a = i._self._c;
|
|
263
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", 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" } })]);
|
|
264
|
+
}, Oe = [], Ue = /* @__PURE__ */ b(
|
|
265
|
+
Ve,
|
|
266
|
+
Ae,
|
|
267
|
+
Oe,
|
|
268
268
|
!1,
|
|
269
269
|
null,
|
|
270
270
|
null
|
|
271
271
|
);
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const
|
|
272
|
+
const qe = Ue.exports;
|
|
273
|
+
let wi = 0;
|
|
274
|
+
const Ze = {
|
|
275
275
|
beforeCreate() {
|
|
276
|
-
this.uuid =
|
|
276
|
+
this.uuid = wi.toString(), wi += 1;
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
var
|
|
280
|
-
var
|
|
281
|
-
return
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
var Ne = function() {
|
|
280
|
+
var i = this, a = i._self._c;
|
|
281
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", 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" } }), a("path", { attrs: { fill: "#001222", 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" } })]);
|
|
282
|
+
}, Pe = [], We = /* @__PURE__ */ b(
|
|
283
|
+
Ze,
|
|
284
|
+
Ne,
|
|
285
|
+
Pe,
|
|
286
286
|
!1,
|
|
287
287
|
null,
|
|
288
288
|
null
|
|
289
289
|
);
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
const
|
|
290
|
+
const Ge = We.exports;
|
|
291
|
+
let Ci = 0;
|
|
292
|
+
const Ye = {
|
|
293
293
|
beforeCreate() {
|
|
294
|
-
this.uuid =
|
|
294
|
+
this.uuid = Ci.toString(), Ci += 1;
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
var
|
|
298
|
-
var
|
|
299
|
-
return
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
var Xe = function() {
|
|
298
|
+
var i = this, a = i._self._c;
|
|
299
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("g", { attrs: { fill: "#001222", "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + i.uuid + ")" } }, [a("path", { attrs: { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" } }), a("path", { attrs: { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" } })]), a("defs", [a("clipPath", { attrs: { id: "uia-ui-assets/icons-16-play_circle__a" + i.uuid } }, [a("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
300
|
+
}, Je = [], Ke = /* @__PURE__ */ b(
|
|
301
|
+
Ye,
|
|
302
|
+
Xe,
|
|
303
|
+
Je,
|
|
304
304
|
!1,
|
|
305
305
|
null,
|
|
306
306
|
null
|
|
307
307
|
);
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
const
|
|
308
|
+
const Qe = Ke.exports;
|
|
309
|
+
let zi = 0;
|
|
310
|
+
const ia = {
|
|
311
311
|
beforeCreate() {
|
|
312
|
-
this.uuid =
|
|
312
|
+
this.uuid = zi.toString(), zi += 1;
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
|
-
var
|
|
316
|
-
var
|
|
317
|
-
return
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
315
|
+
var ea = function() {
|
|
316
|
+
var i = this, a = i._self._c;
|
|
317
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", 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" } }), a("path", { attrs: { fill: "#001222", 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" } }), a("path", { attrs: { fill: "#001222", 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" } })]);
|
|
318
|
+
}, aa = [], ta = /* @__PURE__ */ b(
|
|
319
|
+
ia,
|
|
320
|
+
ea,
|
|
321
|
+
aa,
|
|
322
322
|
!1,
|
|
323
323
|
null,
|
|
324
324
|
null
|
|
325
325
|
);
|
|
326
|
-
const
|
|
327
|
-
let
|
|
328
|
-
const
|
|
326
|
+
const na = ta.exports;
|
|
327
|
+
let ki = 0;
|
|
328
|
+
const oa = {
|
|
329
329
|
beforeCreate() {
|
|
330
|
-
this.uuid =
|
|
330
|
+
this.uuid = ki.toString(), ki += 1;
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
var
|
|
334
|
-
var
|
|
335
|
-
return
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
333
|
+
var la = function() {
|
|
334
|
+
var i = this, a = i._self._c;
|
|
335
|
+
return a("svg", i._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", i.$attrs, !1), [i.$attrs["svg-title"] ? a("title", [i._v(i._s(i.$attrs["svg-title"]))]) : i._e(), a("path", { attrs: { fill: "#001222", 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" } })]);
|
|
336
|
+
}, sa = [], pa = /* @__PURE__ */ b(
|
|
337
|
+
oa,
|
|
338
|
+
la,
|
|
339
|
+
sa,
|
|
340
340
|
!1,
|
|
341
341
|
null,
|
|
342
342
|
null
|
|
343
343
|
);
|
|
344
|
-
const
|
|
345
|
-
[u.AUDIO]:
|
|
346
|
-
[u.COMPRESSED]:
|
|
347
|
-
[u.GENERIC]:
|
|
348
|
-
[u.IMAGE]:
|
|
349
|
-
[u.PDF]:
|
|
350
|
-
[u.SLIDES]:
|
|
351
|
-
[u.TABLE]:
|
|
352
|
-
[u.TEXT]:
|
|
353
|
-
[u.VIDEO]:
|
|
344
|
+
const ra = pa.exports, ca = {
|
|
345
|
+
[u.AUDIO]: na,
|
|
346
|
+
[u.COMPRESSED]: qe,
|
|
347
|
+
[u.GENERIC]: Ce,
|
|
348
|
+
[u.IMAGE]: Ge,
|
|
349
|
+
[u.PDF]: je,
|
|
350
|
+
[u.SLIDES]: Re,
|
|
351
|
+
[u.TABLE]: ra,
|
|
352
|
+
[u.TEXT]: He,
|
|
353
|
+
[u.VIDEO]: Qe
|
|
354
354
|
};
|
|
355
|
-
function
|
|
356
|
-
return
|
|
355
|
+
function da(t) {
|
|
356
|
+
return ca[t.type];
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ma(t) {
|
|
359
359
|
switch (t.type) {
|
|
360
360
|
case u.COMPRESSED:
|
|
361
361
|
case u.GENERIC:
|
|
@@ -369,45 +369,122 @@ function me(t) {
|
|
|
369
369
|
return "green";
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
const
|
|
373
|
-
"
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
const ua = {
|
|
373
|
+
"de-DE": {
|
|
374
|
+
cancel: "Abbrechen",
|
|
375
|
+
fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung",
|
|
376
|
+
fileTypeMustBe: "Der Dateityp muss {list} sein.",
|
|
377
|
+
imageDimensionsExceedLimits: "Die Bildabmessungen überschreiten die zulässigen Grenzwerte",
|
|
378
|
+
remove: "Entfernen",
|
|
379
|
+
retry: "Wiederholen"
|
|
380
|
+
},
|
|
381
|
+
"en-GB": {
|
|
382
|
+
cancel: "Cancel",
|
|
383
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
384
|
+
fileTypeMustBe: "File type must be {list}",
|
|
385
|
+
imageDimensionsExceedLimits: "Image dimensions exceed limits",
|
|
386
|
+
remove: "Remove",
|
|
387
|
+
retry: "Retry"
|
|
388
|
+
},
|
|
389
|
+
"en-US": {
|
|
390
|
+
cancel: "Cancel",
|
|
391
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
392
|
+
fileTypeMustBe: "File type must be {list}",
|
|
393
|
+
imageDimensionsExceedLimits: "Image dimensions exceed limits",
|
|
394
|
+
remove: "Remove",
|
|
395
|
+
retry: "Retry"
|
|
396
|
+
},
|
|
397
|
+
"es-ES": {
|
|
398
|
+
cancel: "Cancelar",
|
|
399
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
400
|
+
fileTypeMustBe: "El tipo de archivo debe ser {list}",
|
|
401
|
+
imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites",
|
|
402
|
+
remove: "Eliminar",
|
|
403
|
+
retry: "Reintentar"
|
|
404
|
+
},
|
|
405
|
+
"es-MX": {
|
|
406
|
+
cancel: "Cancelar",
|
|
407
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
408
|
+
fileTypeMustBe: "El tipo de archivo debe ser {list}",
|
|
409
|
+
imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites",
|
|
410
|
+
remove: "Eliminar",
|
|
411
|
+
retry: "Reintentar"
|
|
412
|
+
},
|
|
413
|
+
"fr-FR": {
|
|
414
|
+
cancel: "Annuler",
|
|
415
|
+
fileExceedsSizeLimit: "Le fichier dépasse la limite de taille",
|
|
416
|
+
fileTypeMustBe: "Le type de fichier doit être {list}",
|
|
417
|
+
imageDimensionsExceedLimits: "Les dimensions de l'image dépassent les limites",
|
|
418
|
+
remove: "Supprimer",
|
|
419
|
+
retry: "Réessayer"
|
|
420
|
+
},
|
|
421
|
+
"it-IT": {
|
|
422
|
+
cancel: "Annulla",
|
|
423
|
+
fileExceedsSizeLimit: "Il file supera il limite di dimensione",
|
|
424
|
+
fileTypeMustBe: "Il tipo di file deve essere {list}",
|
|
425
|
+
imageDimensionsExceedLimits: "Le dimensioni dell'immagine superano i limiti",
|
|
426
|
+
remove: "Rimuovi",
|
|
427
|
+
retry: "Riprova"
|
|
428
|
+
},
|
|
429
|
+
"ja-JP": {
|
|
430
|
+
cancel: "キャンセル",
|
|
431
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
432
|
+
fileTypeMustBe: "ファイル形式は{list}でなければなりません",
|
|
433
|
+
imageDimensionsExceedLimits: "画像のサイズが制限を超えています",
|
|
434
|
+
remove: "削除",
|
|
435
|
+
retry: "再試行"
|
|
436
|
+
},
|
|
437
|
+
"pt-BR": {
|
|
438
|
+
cancel: "Cancelar",
|
|
439
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
440
|
+
fileTypeMustBe: "O tipo de arquivo deve ser {list}",
|
|
441
|
+
imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites",
|
|
442
|
+
remove: "Retirar",
|
|
443
|
+
retry: "Tentar de novo"
|
|
444
|
+
},
|
|
445
|
+
"zh-CN": {
|
|
446
|
+
cancel: "取消",
|
|
447
|
+
fileExceedsSizeLimit: "文件大小超过限制",
|
|
448
|
+
fileTypeMustBe: "文件类型必须为 {list}",
|
|
449
|
+
imageDimensionsExceedLimits: "图像尺寸超过限制",
|
|
450
|
+
remove: "移除",
|
|
451
|
+
retry: "重试"
|
|
452
|
+
}
|
|
453
|
+
}, va = {
|
|
377
454
|
name: "file-uploader-file-card",
|
|
378
|
-
i18n: { messages:
|
|
379
|
-
},
|
|
380
|
-
...
|
|
455
|
+
i18n: { messages: ua }
|
|
456
|
+
}, fa = /* @__PURE__ */ G({
|
|
457
|
+
...va,
|
|
381
458
|
props: {
|
|
382
459
|
file: null,
|
|
383
460
|
supportedFileTypes: { default: null },
|
|
384
461
|
readonly: { type: Boolean }
|
|
385
462
|
},
|
|
386
463
|
emits: ["cancel", "remove", "retry"],
|
|
387
|
-
setup(t, { expose:
|
|
388
|
-
const
|
|
464
|
+
setup(t, { expose: i, emit: a }) {
|
|
465
|
+
const e = t, o = 1200, { t: r, locale: l } = Y(), p = y(null), c = y(null), g = y(null), F = _("file-errors-section"), S = _("cancel-file-button"), x = _("remove-file-button"), w = _("retry-file-button"), k = y(e.file.state === z.SUCCESS), m = d(() => URL.createObjectURL(e.file.data)), E = d(() => e.file.state === z.ERROR), L = d(() => e.file.errors.includes(h.ERROR_LOAD)), V = d(() => e.file.errors.includes(h.ERROR_SIZE)), X = d(() => e.file.errors.includes(h.ERROR_DIMENSIONS)), J = d(() => e.file.errors.includes(h.ERROR_TYPE)), A = d(() => e.file.state === z.LOADING), M = d(() => e.file.progress && `(${e.file.progress.toFixed(0)}%)`), R = d(() => li(l.value, e.file.data.size)), T = y(), $ = y(), K = me(T, $), j = d(() => ({
|
|
389
466
|
"b-file-uploader-file-card--error": E.value
|
|
390
467
|
})), Q = d(() => ({
|
|
391
|
-
[`b-file-uploader-file-card__icon--${
|
|
468
|
+
[`b-file-uploader-file-card__icon--${ma(e.file)}`]: k.value,
|
|
392
469
|
"b-file-uploader-file-card__icon--error": E.value
|
|
393
|
-
})),
|
|
394
|
-
|
|
395
|
-
() =>
|
|
396
|
-
(
|
|
397
|
-
if (
|
|
398
|
-
const
|
|
399
|
-
|
|
470
|
+
})), B = d(() => A.value ? Ki : E.value ? Ei : k.value ? da(e.file) : Wi);
|
|
471
|
+
ni(
|
|
472
|
+
() => e.file.state,
|
|
473
|
+
(U) => {
|
|
474
|
+
if (U === z.SUCCESS && !k.value) {
|
|
475
|
+
const ii = setTimeout(() => {
|
|
476
|
+
k.value = !0, clearTimeout(ii);
|
|
400
477
|
}, o);
|
|
401
478
|
}
|
|
402
479
|
}
|
|
403
480
|
);
|
|
404
|
-
function
|
|
481
|
+
function O() {
|
|
405
482
|
if (g.value) {
|
|
406
483
|
g.value.$el.focus();
|
|
407
484
|
return;
|
|
408
485
|
}
|
|
409
|
-
if (
|
|
410
|
-
|
|
486
|
+
if (p.value) {
|
|
487
|
+
p.value.$el.focus();
|
|
411
488
|
return;
|
|
412
489
|
}
|
|
413
490
|
if (c.value) {
|
|
@@ -415,42 +492,129 @@ const ue = {
|
|
|
415
492
|
return;
|
|
416
493
|
}
|
|
417
494
|
}
|
|
418
|
-
return
|
|
419
|
-
focus:
|
|
420
|
-
}), { __sfc: !0, ICON_TIMER: o, props:
|
|
495
|
+
return i({
|
|
496
|
+
focus: O
|
|
497
|
+
}), { __sfc: !0, ICON_TIMER: o, props: e, emit: a, t: r, locale: l, removeFileButtonRef: p, cancelFileButtonRef: c, retryFileButtonRef: g, fileErrorsSectionId: F, cancelFileButtonId: S, removeFileButtonId: x, retryFileButtonId: w, showFileIcon: k, downloadUrl: m, hasError: E, hasLoadError: L, hasSizeError: V, hasDimensionsError: X, hasTypeError: J, isLoading: A, progressLabel: M, sizeLabel: R, fileNameRef: T, fileNameContainerRef: $, isFileNameTruncated: K, conditionalClasses: j, conditionalIconClasses: Q, fileUploaderIcon: B, focus: O, isVue2: Ri, FileUploaderFileCardAnimation: de, BinIcon: Pi, CrossIcon: Gi, RefreshIcon: Yi, vBentoTooltipDirective: Qi, BentoButton: Xi, BentoLink: Ji, BentoTypography: si };
|
|
421
498
|
}
|
|
422
499
|
});
|
|
423
|
-
var
|
|
424
|
-
var
|
|
425
|
-
return
|
|
426
|
-
return
|
|
427
|
-
} }, scopedSlots:
|
|
428
|
-
return [e
|
|
429
|
-
}, proxy: !0 }], null, !1, 4044719554) }, [
|
|
430
|
-
return
|
|
431
|
-
} }, scopedSlots:
|
|
432
|
-
return [e
|
|
433
|
-
}, proxy: !0 }], null, !1, 1610167681) }) : e
|
|
434
|
-
return
|
|
435
|
-
} }, scopedSlots:
|
|
436
|
-
return [e
|
|
500
|
+
var xa = function() {
|
|
501
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
502
|
+
return a("div", { staticClass: "b-file-uploader-file-card", class: e.conditionalClasses }, [a("div", { staticClass: "b-file-uploader-file-card__details" }, [a("div", { staticClass: "b-file-uploader-file-card__info" }, [a(e.FileUploaderFileCardAnimation, { attrs: { name: e.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": e.showFileIcon } }, [a(e.fileUploaderIcon, { key: JSON.stringify(e.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: e.conditionalIconClasses, attrs: { small: "", "aria-hidden": "true", "data-testid": "file-uploader-item-icon" } })], 1), a("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [a(e.BentoLink, { attrs: { "aria-hidden": "true", tabindex: "-1", download: i.file.data.name, to: e.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [a(e.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: e.isFileNameTruncated ? i.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [i._v(" " + i._s(i.file.data.name) + " ")])], 1)], 1), i.file.progress ? a(e.BentoTypography, { attrs: { el: "span" } }, [i._v(i._s(e.progressLabel))]) : i.file.data.size ? a(e.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { "aria-hidden": "true", el: "span" } }, [i._v(" " + i._s(e.sizeLabel) + " ")]) : i._e()], 1), e.hasSizeError || e.hasDimensionsError || e.hasTypeError && i.supportedFileTypes ? a("div", { attrs: { id: e.fileErrorsSectionId, role: "alert" } }, [e.hasSizeError ? a(e.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [i._v(" " + i._s(e.t("fileExceedsSizeLimit")) + " ")]) : i._e(), e.hasDimensionsError ? a(e.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [i._v(" " + i._s(e.t("imageDimensionsExceedLimits")) + " ")]) : i._e(), e.hasTypeError && i.supportedFileTypes ? a(e.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [i._v(" " + i._s(e.t("fileTypeMustBe", { list: i.supportedFileTypes })) + " ")]) : i._e()], 1) : i._e()]), i.readonly ? i._e() : a("div", { staticClass: "b-file-uploader-file-card__actions" }, [e.hasLoadError ? a(e.BentoButton, { ref: "retryFileButtonRef", attrs: { "aria-labelledby": `${e.fileErrorsSectionId} ${e.retryFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
|
|
503
|
+
return e.emit("retry");
|
|
504
|
+
} }, scopedSlots: i._u([{ key: "iconLeft", fn: function() {
|
|
505
|
+
return [a(e.RefreshIcon, { attrs: { id: e.retryFileButtonId, "svg-title": `${e.t("retry")} - ${i.file.data.name} ` } })];
|
|
506
|
+
}, proxy: !0 }], null, !1, 4044719554) }, [i._v(" " + i._s(e.t("retry")) + " ")]) : i._e(), e.isLoading || e.hasError ? a(e.BentoButton, { ref: "cancelFileButtonRef", attrs: { "aria-labelledby": `${e.fileErrorsSectionId} ${e.cancelFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
|
|
507
|
+
return e.emit("cancel");
|
|
508
|
+
} }, scopedSlots: i._u([{ key: "iconLeft", fn: function() {
|
|
509
|
+
return [a(e.CrossIcon, { attrs: { id: e.cancelFileButtonId, "svg-title": `${e.t("cancel")} - ${i.file.data.name}` } })];
|
|
510
|
+
}, proxy: !0 }], null, !1, 1610167681) }) : a(e.BentoButton, { ref: "removeFileButtonRef", attrs: { "aria-labelledby": `${e.fileErrorsSectionId} ${e.removeFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
|
|
511
|
+
return e.emit("remove");
|
|
512
|
+
} }, scopedSlots: i._u([{ key: "iconLeft", fn: function() {
|
|
513
|
+
return [a(e.BinIcon, { attrs: { id: e.removeFileButtonId, "svg-title": `${e.t("remove")} - ${i.file.data.name}` } })];
|
|
437
514
|
}, proxy: !0 }], null, !1, 3607204026) })], 1)]);
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
515
|
+
}, ga = [], ha = /* @__PURE__ */ b(
|
|
516
|
+
fa,
|
|
517
|
+
xa,
|
|
518
|
+
ga,
|
|
442
519
|
!1,
|
|
443
520
|
null,
|
|
444
521
|
"fbe82cf6"
|
|
445
522
|
);
|
|
446
|
-
const
|
|
447
|
-
"
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
|
|
523
|
+
const ba = ha.exports, _a = {
|
|
524
|
+
"de-DE": {
|
|
525
|
+
maxFileSize: "Maximale Dateigröße: {size}",
|
|
526
|
+
maxImageDimensions: "Maximale Bilddimensionen: {width} × {height}px",
|
|
527
|
+
maxImageHeight: "Maximale Bildhöhe: {height}px",
|
|
528
|
+
maxImageWidth: "Maximale Bildbreite: {width}px",
|
|
529
|
+
maxUpload: "Maximale Anzahl Uploads: {count} Datei | Maximale Anzahl Uploads: {count} Dateien",
|
|
530
|
+
supportedFileTypes: "Unterstützte Dateitypen: {list}",
|
|
531
|
+
upToSize: "(bis zu {size})"
|
|
532
|
+
},
|
|
533
|
+
"en-GB": {
|
|
534
|
+
maxFileSize: "Max. file size: {size}",
|
|
535
|
+
maxImageDimensions: "Max. image dimensions: {width} × {height}px",
|
|
536
|
+
maxImageHeight: "Max. image height: {height}px",
|
|
537
|
+
maxImageWidth: "Max. image width: {width}px",
|
|
538
|
+
maxUpload: "Max. upload: {count} file | Max. upload: {count} files",
|
|
539
|
+
supportedFileTypes: "Supported file types: {list}",
|
|
540
|
+
upToSize: "(up to {size})"
|
|
541
|
+
},
|
|
542
|
+
"en-US": {
|
|
543
|
+
maxFileSize: "Max file size: {size}",
|
|
544
|
+
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
545
|
+
maxImageHeight: "Max image height: {height}px",
|
|
546
|
+
maxImageWidth: "Max image width: {width}px",
|
|
547
|
+
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
548
|
+
supportedFileTypes: "Supported file types: {list}",
|
|
549
|
+
upToSize: "(up to {size})"
|
|
550
|
+
},
|
|
551
|
+
"es-ES": {
|
|
552
|
+
maxFileSize: "Tamaño máximo del archivo: {size}",
|
|
553
|
+
maxImageDimensions: "Dimensiones máximas de la imagen: {width} × {height} px",
|
|
554
|
+
maxImageHeight: "Altura máxima de la imagen: {height} px",
|
|
555
|
+
maxImageWidth: "Anchura máximo de la imagen: {width} px",
|
|
556
|
+
maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos",
|
|
557
|
+
supportedFileTypes: "Tipos de archivo compatibles: {list}",
|
|
558
|
+
upToSize: "(hasta {size})"
|
|
559
|
+
},
|
|
560
|
+
"es-MX": {
|
|
561
|
+
maxFileSize: "Tamaño máximo de archivo: {size}",
|
|
562
|
+
maxImageDimensions: "Dimensiones máximas de la imagen: {ancho} × {altura}px",
|
|
563
|
+
maxImageHeight: "Altura máxima de la imagen: {height}px",
|
|
564
|
+
maxImageWidth: "Ancho máximo de la imagen: {width}px",
|
|
565
|
+
maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos",
|
|
566
|
+
supportedFileTypes: "Tipos de archivo compatibles: {list}",
|
|
567
|
+
upToSize: "(hasta {size})"
|
|
568
|
+
},
|
|
569
|
+
"fr-FR": {
|
|
570
|
+
maxFileSize: "Taille maximale du fichier : {size}",
|
|
571
|
+
maxImageDimensions: "Dimensions maximales de l'image : {width} × {height} px",
|
|
572
|
+
maxImageHeight: "Hauteur maximale de l'image : {height} px",
|
|
573
|
+
maxImageWidth: "Largeur maximale de l'image : {width} px",
|
|
574
|
+
maxUpload: "Téléchargement maximal : {count} fichier | Téléchargement maximal : {count} fichiers",
|
|
575
|
+
supportedFileTypes: "Types de fichiers pris en charge : {list}",
|
|
576
|
+
upToSize: "(jusqu'à {size})"
|
|
577
|
+
},
|
|
578
|
+
"it-IT": {
|
|
579
|
+
maxFileSize: "Dimensione massima del file: {size}",
|
|
580
|
+
maxImageDimensions: "Dimensioni massime dell'immagine: {width} × {height}px",
|
|
581
|
+
maxImageHeight: "Altezza massima dell'immagine: {height} px",
|
|
582
|
+
maxImageWidth: "Larghezza massima dell'immagine: {width} px",
|
|
583
|
+
maxUpload: "Upload massimo: file {count} | Upload massimo: {count} file",
|
|
584
|
+
supportedFileTypes: "Tipi di file supportati: {list}",
|
|
585
|
+
upToSize: "(fino a {size})"
|
|
586
|
+
},
|
|
587
|
+
"ja-JP": {
|
|
588
|
+
maxFileSize: "最大ファイルサイズ:{size}",
|
|
589
|
+
maxImageDimensions: "最大画像サイズ: {width} × {height}px",
|
|
590
|
+
maxImageHeight: "最大画像高さ: {height}px",
|
|
591
|
+
maxImageWidth: "最大画像幅: {width}px",
|
|
592
|
+
maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル",
|
|
593
|
+
supportedFileTypes: "対応ファイル形式: {list}",
|
|
594
|
+
upToSize: "({size}まで)"
|
|
595
|
+
},
|
|
596
|
+
"pt-BR": {
|
|
597
|
+
maxFileSize: "Tamanho máx. do arquivo: {size}",
|
|
598
|
+
maxImageDimensions: "Dimensões máx. da imagem: {width} × {height}px",
|
|
599
|
+
maxImageHeight: "Altura máx. da imagem: {height}px",
|
|
600
|
+
maxImageWidth: "Largura máx. da imagem: {width}px",
|
|
601
|
+
maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos",
|
|
602
|
+
supportedFileTypes: "Tipos de arquivo aceitos: {list}",
|
|
603
|
+
upToSize: "(até {size})"
|
|
604
|
+
},
|
|
605
|
+
"zh-CN": {
|
|
606
|
+
maxFileSize: "最大文件大小:{size}",
|
|
607
|
+
maxImageDimensions: "最大图像尺寸:{width} × {height}px",
|
|
608
|
+
maxImageHeight: "最大图像高度:{height}px",
|
|
609
|
+
maxImageWidth: "最大图像宽度:{width}px",
|
|
610
|
+
maxUpload: "最多上传:{count} 个文件 | 最多上传:{count} 个文件",
|
|
611
|
+
supportedFileTypes: "支持的文件类型:{list}",
|
|
612
|
+
upToSize: "(最多 {size})"
|
|
613
|
+
}
|
|
614
|
+
}, ya = {
|
|
615
|
+
i18n: { messages: _a }
|
|
616
|
+
}, wa = /* @__PURE__ */ G({
|
|
617
|
+
...ya,
|
|
454
618
|
__name: "file-uploader-restrictions",
|
|
455
619
|
props: {
|
|
456
620
|
condensed: { default: null },
|
|
@@ -461,48 +625,48 @@ const be = he.exports, _e = {
|
|
|
461
625
|
supportedFileTypes: { default: null }
|
|
462
626
|
},
|
|
463
627
|
setup(t) {
|
|
464
|
-
const
|
|
465
|
-
"b-file-uploader-restrictions--condensed":
|
|
466
|
-
"b-file-uploader-restrictions--disabled":
|
|
628
|
+
const i = t, { t: a, tc: e, n: o, locale: r } = Y(), l = d(() => ({
|
|
629
|
+
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
630
|
+
"b-file-uploader-restrictions--disabled": i.disabled
|
|
467
631
|
}));
|
|
468
|
-
function
|
|
632
|
+
function p(x) {
|
|
469
633
|
return {
|
|
470
634
|
"b-file-uploader-restrictions--error": x
|
|
471
635
|
};
|
|
472
636
|
}
|
|
473
|
-
const c = d(() =>
|
|
474
|
-
if (!
|
|
637
|
+
const c = d(() => i.maxSize && Array.isArray(i.maxSize.value)), g = d(() => !i.maxSize || c.value ? null : a("maxFileSize", { size: li(r.value, i.maxSize.value) })), F = d(() => {
|
|
638
|
+
if (!i.supportedFileTypes)
|
|
475
639
|
return null;
|
|
476
640
|
if (!c.value)
|
|
477
|
-
return
|
|
478
|
-
let x =
|
|
479
|
-
return
|
|
480
|
-
const
|
|
481
|
-
x = x.replace(
|
|
641
|
+
return i.supportedFileTypes.value;
|
|
642
|
+
let x = i.supportedFileTypes.value;
|
|
643
|
+
return i.maxSize.value.forEach((w) => {
|
|
644
|
+
const k = w.fileType.toUpperCase(), m = a("upToSize", { size: li(r.value, w.maxSize) });
|
|
645
|
+
x = x.replace(k, `${k} ${m}`);
|
|
482
646
|
}), x;
|
|
483
|
-
}),
|
|
484
|
-
if (!
|
|
647
|
+
}), S = d(() => {
|
|
648
|
+
if (!i.maxDimensions)
|
|
485
649
|
return null;
|
|
486
650
|
const {
|
|
487
|
-
value: { width: x, height:
|
|
488
|
-
} =
|
|
489
|
-
return x &&
|
|
651
|
+
value: { width: x, height: w }
|
|
652
|
+
} = i.maxDimensions;
|
|
653
|
+
return x && w ? a("maxImageDimensions", { width: o(x), height: o(w) }) : x ? a("maxImageWidth", { width: o(x) }) : w ? a("maxImageHeight", { height: o(w) }) : null;
|
|
490
654
|
});
|
|
491
|
-
return { __sfc: !0, props:
|
|
655
|
+
return { __sfc: !0, props: i, t: a, tc: e, n: o, locale: r, conditionalClasses: l, setRestrictionErrorClass: p, isMaxSizeArray: c, maxFileSizeLabel: g, computedConditionalFiles: F, maxDimensionsLabel: S, BentoTypography: si };
|
|
492
656
|
}
|
|
493
657
|
});
|
|
494
|
-
var
|
|
495
|
-
var
|
|
496
|
-
return
|
|
497
|
-
},
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
658
|
+
var Ca = function() {
|
|
659
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
660
|
+
return a("div", { staticClass: "b-file-uploader-restrictions", class: e.conditionalClasses }, [i.supportedFileTypes ? a(e.BentoTypography, { class: e.setRestrictionErrorClass(i.supportedFileTypes.error || e.isMaxSizeArray && i.maxSize.error) }, [i._v(" " + i._s(e.t("supportedFileTypes", { list: e.computedConditionalFiles })) + " ")]) : i._e(), !e.isMaxSizeArray && i.maxSize ? a(e.BentoTypography, { class: e.setRestrictionErrorClass(i.maxSize.error) }, [i._v(" " + i._s(e.maxFileSizeLabel) + " ")]) : i._e(), i.maxDimensions ? a(e.BentoTypography, { class: e.setRestrictionErrorClass(i.maxDimensions.error) }, [i._v(" " + i._s(e.maxDimensionsLabel) + " ")]) : i._e(), i.maxCount ? a(e.BentoTypography, { class: e.setRestrictionErrorClass(i.maxCount.error) }, [i._v(" " + i._s(e.tc("maxUpload", i.maxCount.value, { count: e.n(i.maxCount.value) })) + " ")]) : i._e()], 1);
|
|
661
|
+
}, za = [], ka = /* @__PURE__ */ b(
|
|
662
|
+
wa,
|
|
663
|
+
Ca,
|
|
664
|
+
za,
|
|
501
665
|
!1,
|
|
502
666
|
null,
|
|
503
667
|
"b0498c01"
|
|
504
668
|
);
|
|
505
|
-
const
|
|
669
|
+
const Fa = ka.exports, Ii = {
|
|
506
670
|
"application/prs.cww": ["cww"],
|
|
507
671
|
"application/prs.xsf+xml": ["xsf"],
|
|
508
672
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1201,8 +1365,8 @@ const Re = ze.exports, Ia = {
|
|
|
1201
1365
|
"video/x-smv": ["smv"],
|
|
1202
1366
|
"x-conference/x-cooltalk": ["ice"]
|
|
1203
1367
|
};
|
|
1204
|
-
Object.freeze(
|
|
1205
|
-
const
|
|
1368
|
+
Object.freeze(Ii);
|
|
1369
|
+
const Si = {
|
|
1206
1370
|
"application/andrew-inset": ["ez"],
|
|
1207
1371
|
"application/appinstaller": ["appinstaller"],
|
|
1208
1372
|
"application/applixware": ["aw"],
|
|
@@ -1554,131 +1718,248 @@ const $a = {
|
|
|
1554
1718
|
"video/quicktime": ["qt", "mov"],
|
|
1555
1719
|
"video/webm": ["webm"]
|
|
1556
1720
|
};
|
|
1557
|
-
Object.freeze(
|
|
1558
|
-
var C = function(t, a, e
|
|
1559
|
-
if (
|
|
1560
|
-
if (typeof
|
|
1561
|
-
return
|
|
1562
|
-
},
|
|
1563
|
-
class
|
|
1564
|
-
constructor(...
|
|
1565
|
-
|
|
1566
|
-
for (const
|
|
1567
|
-
this.define(
|
|
1721
|
+
Object.freeze(Si);
|
|
1722
|
+
var C = function(t, i, a, e) {
|
|
1723
|
+
if (a === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
|
|
1724
|
+
if (typeof i == "function" ? t !== i || !e : !i.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1725
|
+
return a === "m" ? e : a === "a" ? e.call(t) : e ? e.value : i.get(t);
|
|
1726
|
+
}, D, H, I;
|
|
1727
|
+
class Ea {
|
|
1728
|
+
constructor(...i) {
|
|
1729
|
+
D.set(this, /* @__PURE__ */ new Map()), H.set(this, /* @__PURE__ */ new Map()), I.set(this, /* @__PURE__ */ new Map());
|
|
1730
|
+
for (const a of i)
|
|
1731
|
+
this.define(a);
|
|
1568
1732
|
}
|
|
1569
|
-
define(
|
|
1570
|
-
for (let [
|
|
1571
|
-
|
|
1572
|
-
const r = C(this, I, "f").get(
|
|
1573
|
-
let
|
|
1574
|
-
for (let
|
|
1575
|
-
const c =
|
|
1576
|
-
if (
|
|
1733
|
+
define(i, a = !1) {
|
|
1734
|
+
for (let [e, o] of Object.entries(i)) {
|
|
1735
|
+
e = e.toLowerCase(), o = o.map((p) => p.toLowerCase()), C(this, I, "f").has(e) || C(this, I, "f").set(e, /* @__PURE__ */ new Set());
|
|
1736
|
+
const r = C(this, I, "f").get(e);
|
|
1737
|
+
let l = !0;
|
|
1738
|
+
for (let p of o) {
|
|
1739
|
+
const c = p.startsWith("*");
|
|
1740
|
+
if (p = c ? p.slice(1) : p, r == null || r.add(p), l && C(this, H, "f").set(e, p), l = !1, c)
|
|
1577
1741
|
continue;
|
|
1578
|
-
const g = C(this,
|
|
1579
|
-
if (g && g !=
|
|
1580
|
-
throw new Error(`"${
|
|
1581
|
-
C(this,
|
|
1742
|
+
const g = C(this, D, "f").get(p);
|
|
1743
|
+
if (g && g != e && !a)
|
|
1744
|
+
throw new Error(`"${e} -> ${p}" conflicts with "${g} -> ${p}". Pass \`force=true\` to override this definition.`);
|
|
1745
|
+
C(this, D, "f").set(p, e);
|
|
1582
1746
|
}
|
|
1583
1747
|
}
|
|
1584
1748
|
return this;
|
|
1585
1749
|
}
|
|
1586
|
-
getType(
|
|
1587
|
-
if (typeof
|
|
1750
|
+
getType(i) {
|
|
1751
|
+
if (typeof i != "string")
|
|
1588
1752
|
return null;
|
|
1589
|
-
const
|
|
1590
|
-
return !(
|
|
1753
|
+
const a = i.replace(/^.*[/\\]/, "").toLowerCase(), e = a.replace(/^.*\./, "").toLowerCase(), o = a.length < i.length;
|
|
1754
|
+
return !(e.length < a.length - 1) && o ? null : C(this, D, "f").get(e) ?? null;
|
|
1591
1755
|
}
|
|
1592
|
-
getExtension(
|
|
1593
|
-
var
|
|
1594
|
-
return typeof
|
|
1756
|
+
getExtension(i) {
|
|
1757
|
+
var a;
|
|
1758
|
+
return typeof i != "string" ? null : (i = (a = i == null ? void 0 : i.split) == null ? void 0 : a.call(i, ";")[0], (i && C(this, H, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1595
1759
|
}
|
|
1596
|
-
getAllExtensions(
|
|
1597
|
-
return typeof
|
|
1760
|
+
getAllExtensions(i) {
|
|
1761
|
+
return typeof i != "string" ? null : C(this, I, "f").get(i.toLowerCase()) ?? null;
|
|
1598
1762
|
}
|
|
1599
1763
|
_freeze() {
|
|
1600
1764
|
this.define = () => {
|
|
1601
1765
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1602
1766
|
}, Object.freeze(this);
|
|
1603
|
-
for (const
|
|
1604
|
-
Object.freeze(
|
|
1767
|
+
for (const i of C(this, I, "f").values())
|
|
1768
|
+
Object.freeze(i);
|
|
1605
1769
|
return this;
|
|
1606
1770
|
}
|
|
1607
1771
|
_getTestState() {
|
|
1608
1772
|
return {
|
|
1609
|
-
types: C(this,
|
|
1610
|
-
extensions: C(this,
|
|
1773
|
+
types: C(this, D, "f"),
|
|
1774
|
+
extensions: C(this, H, "f")
|
|
1611
1775
|
};
|
|
1612
1776
|
}
|
|
1613
1777
|
}
|
|
1614
|
-
|
|
1615
|
-
const
|
|
1616
|
-
"
|
|
1617
|
-
|
|
1618
|
-
|
|
1778
|
+
D = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap();
|
|
1779
|
+
const Li = new Ea(Si, Ii)._freeze(), Ra = {
|
|
1780
|
+
"de-DE": {
|
|
1781
|
+
audioFiles: "Audiodateien",
|
|
1782
|
+
browseFiles: "Dateien durchsuchen",
|
|
1783
|
+
dropArea: "Ablagebereich",
|
|
1784
|
+
dropFiles: "Datei zum Hochladen ablegen | Dateien zum Hochladen ablegen",
|
|
1785
|
+
fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung",
|
|
1786
|
+
imageFiles: "Bilddateien",
|
|
1787
|
+
noFilesUploaded: "Keine Dateien hochgeladen",
|
|
1788
|
+
tooManyFiles: "Zu viele Dateien",
|
|
1789
|
+
videoFiles: "Videodateien",
|
|
1790
|
+
youHaveExceededTheMaximum: "Sie haben die maximale Anzahl von {count} Dateien überschritten. Bitte entfernen Sie einige Dateien, bevor Sie fortfahren."
|
|
1791
|
+
},
|
|
1792
|
+
"en-GB": {
|
|
1793
|
+
audioFiles: "audio files",
|
|
1794
|
+
browseFiles: "Browse files",
|
|
1795
|
+
dropArea: "Drop area",
|
|
1796
|
+
dropFiles: "Drop file to upload | Drop files to upload",
|
|
1797
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
1798
|
+
imageFiles: "image files",
|
|
1799
|
+
noFilesUploaded: "No files uploaded",
|
|
1800
|
+
tooManyFiles: "Too many files",
|
|
1801
|
+
videoFiles: "video files",
|
|
1802
|
+
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1803
|
+
},
|
|
1804
|
+
"en-US": {
|
|
1805
|
+
audioFiles: "audio files",
|
|
1806
|
+
browseFiles: "Browse files",
|
|
1807
|
+
dropArea: "Drop area",
|
|
1808
|
+
dropFiles: "Drop file to upload | Drop files to upload",
|
|
1809
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
1810
|
+
imageFiles: "image files",
|
|
1811
|
+
noFilesUploaded: "No files uploaded",
|
|
1812
|
+
tooManyFiles: "Too many files",
|
|
1813
|
+
videoFiles: "video files",
|
|
1814
|
+
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1815
|
+
},
|
|
1816
|
+
"es-ES": {
|
|
1817
|
+
audioFiles: "archivos de audio",
|
|
1818
|
+
browseFiles: "Explorar archivos",
|
|
1819
|
+
dropArea: "Zona de soltar",
|
|
1820
|
+
dropFiles: "Arrastrar archivo para cargar | Arrastrar archivos para cargar",
|
|
1821
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
1822
|
+
imageFiles: "archivos de imagen",
|
|
1823
|
+
noFilesUploaded: "No se han cargado archivos",
|
|
1824
|
+
tooManyFiles: "Demasiados archivos",
|
|
1825
|
+
videoFiles: "archivos de vídeo",
|
|
1826
|
+
youHaveExceededTheMaximum: "Has superado el límite máximo de {count} archivos. Elimina algunos antes de continuar."
|
|
1827
|
+
},
|
|
1828
|
+
"es-MX": {
|
|
1829
|
+
audioFiles: "archivos de audio",
|
|
1830
|
+
browseFiles: "Explorar archivos",
|
|
1831
|
+
dropArea: "Área de soltar",
|
|
1832
|
+
dropFiles: "Soltar archivo para cargar | Arrastrar archivos para cargar",
|
|
1833
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
1834
|
+
imageFiles: "archivos de imagen",
|
|
1835
|
+
noFilesUploaded: "No hay archivos cargados",
|
|
1836
|
+
tooManyFiles: "Demasiados archivos",
|
|
1837
|
+
videoFiles: "archivos de video",
|
|
1838
|
+
youHaveExceededTheMaximum: "Superaste el límite máximo de {count} archivos. Elimina algunos archivos antes de continuar."
|
|
1839
|
+
},
|
|
1840
|
+
"fr-FR": {
|
|
1841
|
+
audioFiles: "fichiers audio",
|
|
1842
|
+
browseFiles: "Parcourir les fichiers",
|
|
1843
|
+
dropArea: "Zone de dépôt",
|
|
1844
|
+
dropFiles: "Déposer un fichier à télécharger | Déposer des fichiers à télécharger",
|
|
1845
|
+
fileExceedsSizeLimit: "Le fichier dépasse la limite de taille",
|
|
1846
|
+
imageFiles: "fichiers image",
|
|
1847
|
+
noFilesUploaded: "Aucun fichier téléchargé",
|
|
1848
|
+
tooManyFiles: "Trop de fichiers",
|
|
1849
|
+
videoFiles: "fichiers vidéo",
|
|
1850
|
+
youHaveExceededTheMaximum: "Vous avez dépassé la limite maximale de {count} fichiers. Veuillez supprimer certains fichiers avant de continuer."
|
|
1851
|
+
},
|
|
1852
|
+
"it-IT": {
|
|
1853
|
+
audioFiles: "file audio",
|
|
1854
|
+
browseFiles: "Sfoglia i file",
|
|
1855
|
+
dropArea: "Area di scarico",
|
|
1856
|
+
dropFiles: "Trascina il file per caricarlo | Trascina i file per caricarli",
|
|
1857
|
+
fileExceedsSizeLimit: "Il file supera il limite di dimensione",
|
|
1858
|
+
imageFiles: "file di immagini",
|
|
1859
|
+
noFilesUploaded: "Nessun file caricato",
|
|
1860
|
+
tooManyFiles: "Troppi file",
|
|
1861
|
+
videoFiles: "file video",
|
|
1862
|
+
youHaveExceededTheMaximum: "Hai superato il limite massimo di {count} file. Rimuovi alcuni file prima di procedere."
|
|
1863
|
+
},
|
|
1864
|
+
"ja-JP": {
|
|
1865
|
+
audioFiles: "オーディオファイル",
|
|
1866
|
+
browseFiles: "ファイルを参照",
|
|
1867
|
+
dropArea: "ドロップエリア",
|
|
1868
|
+
dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード",
|
|
1869
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
1870
|
+
imageFiles: "画像ファイル",
|
|
1871
|
+
noFilesUploaded: "ファイルはアップロードされていません",
|
|
1872
|
+
tooManyFiles: "ファイルが多すぎます",
|
|
1873
|
+
videoFiles: "ビデオファイル",
|
|
1874
|
+
youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。"
|
|
1875
|
+
},
|
|
1876
|
+
"pt-BR": {
|
|
1877
|
+
audioFiles: "arquivos de áudio",
|
|
1878
|
+
browseFiles: "Procurar arquivos",
|
|
1879
|
+
dropArea: "Área de soltar",
|
|
1880
|
+
dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload",
|
|
1881
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
1882
|
+
imageFiles: "arquivos de imagem",
|
|
1883
|
+
noFilesUploaded: "Nenhum arquivo carregado",
|
|
1884
|
+
tooManyFiles: "Arquivos demais",
|
|
1885
|
+
videoFiles: "arquivos de vídeo",
|
|
1886
|
+
youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir."
|
|
1887
|
+
},
|
|
1888
|
+
"zh-CN": {
|
|
1889
|
+
audioFiles: "音频文件",
|
|
1890
|
+
browseFiles: "浏览文件",
|
|
1891
|
+
dropArea: "拖放区",
|
|
1892
|
+
dropFiles: "拖放文件以上传 | 拖放文件以上传",
|
|
1893
|
+
fileExceedsSizeLimit: "文件大小超过限制",
|
|
1894
|
+
imageFiles: "图像文件",
|
|
1895
|
+
noFilesUploaded: "未上传文件",
|
|
1896
|
+
tooManyFiles: "文件过多",
|
|
1897
|
+
videoFiles: "视频文件",
|
|
1898
|
+
youHaveExceededTheMaximum: "已超出 {count} 个文件的上限数量。请在继续之前移除一些文件。"
|
|
1899
|
+
}
|
|
1619
1900
|
};
|
|
1620
|
-
function
|
|
1621
|
-
return t.includes("/") ? `.${
|
|
1901
|
+
function Ta(t) {
|
|
1902
|
+
return t.includes("/") ? `.${Li.getExtension(t).toUpperCase()}` : t.toUpperCase();
|
|
1622
1903
|
}
|
|
1623
|
-
function
|
|
1624
|
-
const { locale:
|
|
1904
|
+
function Ia(t) {
|
|
1905
|
+
const { locale: i, t: a } = Y();
|
|
1625
1906
|
return { supportedFileTypeList: d(() => {
|
|
1626
|
-
const o = new Intl.ListFormat(
|
|
1907
|
+
const o = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
1627
1908
|
return t != null && t.value ? o.format(
|
|
1628
1909
|
t.value.split(",").map((r) => {
|
|
1629
1910
|
switch (r.trim()) {
|
|
1630
1911
|
case "audio/*":
|
|
1631
|
-
return
|
|
1912
|
+
return a("audioFiles");
|
|
1632
1913
|
case "image/*":
|
|
1633
|
-
return
|
|
1914
|
+
return a("imageFiles");
|
|
1634
1915
|
case "video/*":
|
|
1635
|
-
return
|
|
1916
|
+
return a("videoFiles");
|
|
1636
1917
|
default:
|
|
1637
|
-
return
|
|
1918
|
+
return Ta(r);
|
|
1638
1919
|
}
|
|
1639
1920
|
})
|
|
1640
1921
|
) : null;
|
|
1641
1922
|
}) };
|
|
1642
1923
|
}
|
|
1643
|
-
function
|
|
1644
|
-
return
|
|
1924
|
+
function Sa(t) {
|
|
1925
|
+
return Li.getType(t) ?? t;
|
|
1645
1926
|
}
|
|
1646
|
-
function
|
|
1647
|
-
const
|
|
1927
|
+
function La({ maxCount: t, accept: i }) {
|
|
1928
|
+
const a = oi({
|
|
1648
1929
|
invalidTypes: !1,
|
|
1649
1930
|
partiallyInvalidTypes: !1,
|
|
1650
1931
|
maxCountOverflow: !1
|
|
1651
|
-
}),
|
|
1932
|
+
}), e = oi({
|
|
1652
1933
|
dragging: !1,
|
|
1653
1934
|
error: !1
|
|
1654
|
-
}), o = d(() =>
|
|
1935
|
+
}), o = d(() => i.value ? i.value.split(",").map((c) => Sa(c.trim().toLocaleLowerCase())) : void 0);
|
|
1655
1936
|
function r() {
|
|
1656
|
-
|
|
1937
|
+
e.dragging = !1, e.error = !1, a.invalidTypes = !1, a.partiallyInvalidTypes = !1, a.maxCountOverflow = !1;
|
|
1657
1938
|
}
|
|
1658
|
-
function p
|
|
1659
|
-
if (
|
|
1939
|
+
function l(p, c) {
|
|
1940
|
+
if (e.dragging = !0, (!c.dataTransfer.types.includes("Files") || p > t.value) && (a.maxCountOverflow = !0, e.error = !0), !o.value)
|
|
1660
1941
|
return;
|
|
1661
1942
|
let g = 0;
|
|
1662
|
-
for (const
|
|
1663
|
-
o.value.includes(
|
|
1943
|
+
for (const F of c.dataTransfer.items)
|
|
1944
|
+
o.value.includes(F.type) && g++;
|
|
1664
1945
|
if (g === 0) {
|
|
1665
|
-
|
|
1946
|
+
e.error = !0, a.invalidTypes = !0;
|
|
1666
1947
|
return;
|
|
1667
1948
|
}
|
|
1668
|
-
!
|
|
1949
|
+
!a.invalidTypes && g !== c.dataTransfer.items.length && (e.error = !0, a.partiallyInvalidTypes = !0);
|
|
1669
1950
|
}
|
|
1670
1951
|
return {
|
|
1671
|
-
dragState:
|
|
1672
|
-
dragErrors:
|
|
1952
|
+
dragState: e,
|
|
1953
|
+
dragErrors: a,
|
|
1673
1954
|
resetDragState: r,
|
|
1674
|
-
onDragEnterValidations:
|
|
1955
|
+
onDragEnterValidations: l
|
|
1675
1956
|
};
|
|
1676
1957
|
}
|
|
1677
|
-
const
|
|
1958
|
+
const ja = {
|
|
1678
1959
|
model: { prop: "modelValue" },
|
|
1679
|
-
i18n: { messages:
|
|
1680
|
-
},
|
|
1681
|
-
...
|
|
1960
|
+
i18n: { messages: Ra }
|
|
1961
|
+
}, Da = /* @__PURE__ */ G({
|
|
1962
|
+
...ja,
|
|
1682
1963
|
__name: "file-uploader",
|
|
1683
1964
|
props: {
|
|
1684
1965
|
description: { default: null },
|
|
@@ -1698,214 +1979,214 @@ const Se = {
|
|
|
1698
1979
|
modelValue: { default: null }
|
|
1699
1980
|
},
|
|
1700
1981
|
emits: ["change", "input", "update:model-value", "error:upload"],
|
|
1701
|
-
setup(t, { emit:
|
|
1702
|
-
const
|
|
1703
|
-
function
|
|
1982
|
+
setup(t, { emit: i }) {
|
|
1983
|
+
const a = t, { t: e, tc: o, n: r } = Y(), { emitValue: l } = Ni(i);
|
|
1984
|
+
function p(n) {
|
|
1704
1985
|
return !!n && typeof n.length == "number" && typeof n.item == "function";
|
|
1705
1986
|
}
|
|
1706
|
-
|
|
1707
|
-
|
|
1987
|
+
Fi(() => {
|
|
1988
|
+
p(a.modelValue) || Zi(
|
|
1708
1989
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1709
1990
|
"Use FileList instead.",
|
|
1710
1991
|
"2.0.0"
|
|
1711
1992
|
);
|
|
1712
1993
|
});
|
|
1713
|
-
const { supportedFileTypeList: c } =
|
|
1714
|
-
const n =
|
|
1715
|
-
return `${n} ${
|
|
1716
|
-
}), { dragState: M, dragErrors:
|
|
1717
|
-
accept:
|
|
1718
|
-
maxCount:
|
|
1994
|
+
const { supportedFileTypeList: c } = Ia(ti(a, "accept")), g = _("browse-button"), F = _("custom-text"), S = _("drop-files-text"), x = _("comma-text"), w = _("file-uploader-restrictions"), k = _("field-label"), m = y(null), E = y([]), L = y(null), V = y(null), X = _("input"), J = _("input-error"), A = d(() => {
|
|
1995
|
+
const n = a.label ? `${k} ${x}` : "", s = a.condensed ? "" : `${S} ${x}`, v = a.description ? `${F} ${x}` : "", f = `${w} ${x}`;
|
|
1996
|
+
return `${n} ${s} ${v} ${f} ${g}`;
|
|
1997
|
+
}), { dragState: M, dragErrors: R, resetDragState: T, onDragEnterValidations: $ } = La({
|
|
1998
|
+
accept: ti(a, "accept"),
|
|
1999
|
+
maxCount: ti(a, "maxCount")
|
|
1719
2000
|
}), K = d(() => {
|
|
1720
|
-
var n,
|
|
2001
|
+
var n, s, v;
|
|
1721
2002
|
return {
|
|
1722
|
-
condensed:
|
|
1723
|
-
disabled:
|
|
1724
|
-
maxCount:
|
|
1725
|
-
value:
|
|
1726
|
-
error:
|
|
2003
|
+
condensed: a.condensed,
|
|
2004
|
+
disabled: a.disabled,
|
|
2005
|
+
maxCount: B.value ? {
|
|
2006
|
+
value: a.maxCount,
|
|
2007
|
+
error: R.maxCountOverflow || ri.value
|
|
1727
2008
|
} : null,
|
|
1728
|
-
maxDimensions:
|
|
1729
|
-
value:
|
|
2009
|
+
maxDimensions: a.maxDimensions ? {
|
|
2010
|
+
value: a.maxDimensions,
|
|
1730
2011
|
error: (n = m.value) == null ? void 0 : n.some((f) => f.errors.includes(h.ERROR_DIMENSIONS))
|
|
1731
2012
|
} : null,
|
|
1732
|
-
maxSize:
|
|
1733
|
-
value:
|
|
1734
|
-
error: (
|
|
2013
|
+
maxSize: a.maxSize ? {
|
|
2014
|
+
value: a.maxSize,
|
|
2015
|
+
error: (s = m.value) == null ? void 0 : s.some((f) => f.errors.includes(h.ERROR_SIZE))
|
|
1735
2016
|
} : null,
|
|
1736
2017
|
supportedFileTypes: c.value ? {
|
|
1737
2018
|
value: c.value,
|
|
1738
|
-
error:
|
|
2019
|
+
error: R.invalidTypes || R.partiallyInvalidTypes || ((v = m.value) == null ? void 0 : v.some((f) => f.errors.includes(h.ERROR_TYPE)))
|
|
1739
2020
|
} : null
|
|
1740
2021
|
};
|
|
1741
|
-
}),
|
|
1742
|
-
[`b-file-uploader--${W.DISABLED}`]:
|
|
2022
|
+
}), j = y(), Q = d(() => ({
|
|
2023
|
+
[`b-file-uploader--${W.DISABLED}`]: a.disabled,
|
|
1743
2024
|
[`b-file-uploader--${W.DRAG_OVER}`]: M.dragging,
|
|
1744
|
-
[`b-file-uploader--${W.ERROR}`]:
|
|
1745
|
-
"b-file-uploader--condensed":
|
|
1746
|
-
})),
|
|
2025
|
+
[`b-file-uploader--${W.ERROR}`]: pi.value,
|
|
2026
|
+
"b-file-uploader--condensed": a.condensed
|
|
2027
|
+
})), B = d(() => a.maxCount > 1), O = d(() => {
|
|
1747
2028
|
var n;
|
|
1748
|
-
return
|
|
1749
|
-
}),
|
|
2029
|
+
return a.maxCount && ((n = m.value) == null ? void 0 : n.length) >= a.maxCount || a.readonly;
|
|
2030
|
+
}), U = d(() => {
|
|
1750
2031
|
var n;
|
|
1751
|
-
return (n = m.value) == null ? void 0 : n.some((
|
|
1752
|
-
}),
|
|
1753
|
-
E.value[n] =
|
|
2032
|
+
return (n = m.value) == null ? void 0 : n.some((s) => s.state === "loading");
|
|
2033
|
+
}), ii = (n) => (s) => {
|
|
2034
|
+
E.value[n] = s;
|
|
1754
2035
|
};
|
|
1755
|
-
function
|
|
2036
|
+
function ei(n) {
|
|
1756
2037
|
if (n) {
|
|
1757
|
-
|
|
1758
|
-
const
|
|
1759
|
-
|
|
2038
|
+
mi(n), ui(n);
|
|
2039
|
+
const s = vi(n);
|
|
2040
|
+
i("change", s), l(s);
|
|
1760
2041
|
} else
|
|
1761
|
-
|
|
2042
|
+
i("change", void 0), l(void 0);
|
|
1762
2043
|
}
|
|
1763
|
-
const
|
|
2044
|
+
const pi = d(() => !!a.errorMessage || M.error), ri = d(() => {
|
|
1764
2045
|
var n;
|
|
1765
|
-
return ((n = m.value) == null ? void 0 : n.length) >
|
|
1766
|
-
}),
|
|
2046
|
+
return ((n = m.value) == null ? void 0 : n.length) > a.maxCount;
|
|
2047
|
+
}), ci = y(!1), di = d(() => {
|
|
1767
2048
|
var n;
|
|
1768
|
-
return (n = m.value) == null ? void 0 : n.some((
|
|
2049
|
+
return (n = m.value) == null ? void 0 : n.some((s) => s.state === "error");
|
|
1769
2050
|
});
|
|
1770
|
-
|
|
1771
|
-
|
|
2051
|
+
ni(di, (n) => {
|
|
2052
|
+
U.value || i("error:upload", n);
|
|
1772
2053
|
});
|
|
1773
|
-
async function
|
|
2054
|
+
async function q() {
|
|
1774
2055
|
var n;
|
|
1775
|
-
if (await
|
|
2056
|
+
if (await Ui(), m.value.length === a.maxCount) {
|
|
1776
2057
|
(n = E.value[0]) == null || n.focus();
|
|
1777
2058
|
return;
|
|
1778
2059
|
}
|
|
1779
|
-
|
|
2060
|
+
V.value.focus();
|
|
1780
2061
|
}
|
|
1781
|
-
async function
|
|
1782
|
-
m.value = m.value.filter(({ id:
|
|
2062
|
+
async function ji(n) {
|
|
2063
|
+
m.value = m.value.filter(({ id: s }) => s !== n.id), await q(), ei(m.value);
|
|
1783
2064
|
}
|
|
1784
2065
|
function Z(n) {
|
|
1785
|
-
const
|
|
2066
|
+
const s = oi({
|
|
1786
2067
|
id: _("file"),
|
|
1787
2068
|
data: n,
|
|
1788
2069
|
errors: [],
|
|
1789
2070
|
progress: null,
|
|
1790
|
-
state:
|
|
1791
|
-
type:
|
|
2071
|
+
state: z.LOADING,
|
|
2072
|
+
type: ge(n)
|
|
1792
2073
|
});
|
|
1793
|
-
return
|
|
2074
|
+
return he(s, a.accept, a.maxDimensions), s;
|
|
1794
2075
|
}
|
|
1795
|
-
function
|
|
1796
|
-
var
|
|
1797
|
-
((
|
|
2076
|
+
function Di(n) {
|
|
2077
|
+
var s;
|
|
2078
|
+
((s = m.value) == null ? void 0 : s.length) === a.maxCount && n.preventDefault();
|
|
1798
2079
|
}
|
|
1799
|
-
async function
|
|
1800
|
-
if (
|
|
1801
|
-
|
|
2080
|
+
async function ai(n) {
|
|
2081
|
+
if (a.maxCount === 1 && n.length > a.maxCount) {
|
|
2082
|
+
N(), T();
|
|
1802
2083
|
return;
|
|
1803
2084
|
}
|
|
1804
|
-
|
|
2085
|
+
B.value ? m.value = [...m.value || [], ...Array.from(n).map((s) => Z(s))] : (m.value = [Z(n[0])], await q()), ei(m.value);
|
|
1805
2086
|
}
|
|
1806
|
-
function
|
|
2087
|
+
function Mi(n) {
|
|
1807
2088
|
var v, f;
|
|
1808
|
-
if (
|
|
2089
|
+
if (a.disabled)
|
|
1809
2090
|
return;
|
|
1810
|
-
|
|
1811
|
-
const
|
|
1812
|
-
|
|
2091
|
+
j.value = n.target;
|
|
2092
|
+
const s = (((v = n.dataTransfer.items) == null ? void 0 : v.length) ?? 0) + (((f = m.value) == null ? void 0 : f.length) ?? 0);
|
|
2093
|
+
$(s, n);
|
|
1813
2094
|
}
|
|
1814
|
-
function
|
|
1815
|
-
|
|
2095
|
+
function N() {
|
|
2096
|
+
j.value = null;
|
|
1816
2097
|
}
|
|
1817
|
-
function
|
|
1818
|
-
|
|
2098
|
+
function $i(n) {
|
|
2099
|
+
j.value === n.target && (N(), T());
|
|
1819
2100
|
}
|
|
1820
|
-
function
|
|
1821
|
-
n.preventDefault(),
|
|
2101
|
+
function Bi(n) {
|
|
2102
|
+
n.preventDefault(), a.disabled && (n.dataTransfer.dropEffect = "none");
|
|
1822
2103
|
}
|
|
1823
|
-
async function
|
|
1824
|
-
var
|
|
1825
|
-
|
|
2104
|
+
async function Hi(n) {
|
|
2105
|
+
var s;
|
|
2106
|
+
a.disabled || (!R.invalidTypes && ((s = n.dataTransfer.files) != null && s.length) && ai(n.dataTransfer.files), N(), T());
|
|
1826
2107
|
}
|
|
1827
|
-
async function
|
|
2108
|
+
async function Vi() {
|
|
1828
2109
|
var n;
|
|
1829
|
-
(n =
|
|
2110
|
+
(n = L.value.files) != null && n.length && ai(L.value.files), L.value.value = "", await q();
|
|
1830
2111
|
}
|
|
1831
|
-
|
|
1832
|
-
() =>
|
|
2112
|
+
ni(
|
|
2113
|
+
() => a.modelValue,
|
|
1833
2114
|
(n) => {
|
|
1834
|
-
if (n &&
|
|
2115
|
+
if (n && p(n)) {
|
|
1835
2116
|
const v = Array.from(n);
|
|
1836
2117
|
m.value = v.map((f) => Z(f));
|
|
1837
2118
|
} else !n && m.value && (m.value = null);
|
|
1838
2119
|
},
|
|
1839
2120
|
{ immediate: !0 }
|
|
1840
2121
|
);
|
|
1841
|
-
function
|
|
1842
|
-
const
|
|
1843
|
-
|
|
2122
|
+
function mi(n) {
|
|
2123
|
+
const s = a.maxCount && n.length <= a.maxCount;
|
|
2124
|
+
ci.value = !s;
|
|
1844
2125
|
}
|
|
1845
|
-
function
|
|
1846
|
-
|
|
1847
|
-
const v =
|
|
2126
|
+
function ui(n) {
|
|
2127
|
+
a.maxSize && n.forEach((s) => {
|
|
2128
|
+
const v = s;
|
|
1848
2129
|
let f;
|
|
1849
|
-
if (Array.isArray(
|
|
1850
|
-
const
|
|
1851
|
-
(
|
|
2130
|
+
if (Array.isArray(a.maxSize)) {
|
|
2131
|
+
const P = a.maxSize.find(
|
|
2132
|
+
(Ai) => Ti(v.data, Ai.fileType)
|
|
1852
2133
|
);
|
|
1853
|
-
f =
|
|
2134
|
+
f = P == null ? void 0 : P.maxSize;
|
|
1854
2135
|
} else
|
|
1855
|
-
f =
|
|
1856
|
-
f && v.data.size > f && (v.state =
|
|
2136
|
+
f = a.maxSize;
|
|
2137
|
+
f && v.data.size > f && (v.state = z.ERROR, v.errors.includes(h.ERROR_SIZE) || v.errors.push(h.ERROR_SIZE));
|
|
1857
2138
|
});
|
|
1858
2139
|
}
|
|
1859
|
-
function
|
|
1860
|
-
const
|
|
2140
|
+
function vi(n) {
|
|
2141
|
+
const s = n.filter(
|
|
1861
2142
|
({ errors: v }) => !v.includes(h.ERROR_LOAD) && !v.includes(h.ERROR_SIZE)
|
|
1862
2143
|
);
|
|
1863
|
-
if (
|
|
2144
|
+
if (s.length) {
|
|
1864
2145
|
const v = new DataTransfer();
|
|
1865
|
-
return
|
|
2146
|
+
return s.forEach(({ data: f, id: P }) => {
|
|
1866
2147
|
v.items.add(f);
|
|
1867
2148
|
}), v.files;
|
|
1868
2149
|
}
|
|
1869
2150
|
}
|
|
1870
|
-
return { __sfc: !0, t:
|
|
2151
|
+
return { __sfc: !0, t: e, tc: o, n: r, emit: i, props: a, emitValue: l, isFileList: p, supportedFileTypeList: c, browseFilesButtonId: g, customTextId: F, dropFilesTextId: S, commaTextId: x, fileUploaderRestrictionsId: w, fieldLabelId: k, files: m, fileCardRefs: E, inputRef: L, dropAreaRef: V, inputFieldId: X, errorId: J, fileUploadAriaLabelledBy: A, dragState: M, dragErrors: R, resetDragState: T, onDragEnterValidations: $, fileUploadRestrictionsProps: K, enterTarget: j, conditionalClasses: Q, isMultiple: B, hideArea: O, loadingStateExists: U, registerFileCardRef: ii, emitUpdate: ei, hasError: pi, maxFileCountError: ri, maxFileError: ci, hasRestrictionError: di, resetFocus: q, removeFile: ji, processFile: Z, onInputClick: Di, onFileInput: ai, onDragEnter: Mi, resetEnterTarget: N, onDragLeave: $i, onDragOver: Bi, onDrop: Hi, onInputChange: Vi, verifyFileCount: mi, verifyFileSize: ui, convertToFileList: vi, UploadIcon: le, WarningFilledIcon: Ei, BentoAlert: qi, BentoTypography: si, ErrorMessage: ee, FieldLabel: ie, FileUploaderFileCard: ba, FileUploaderRestrictions: Fa };
|
|
1871
2152
|
}
|
|
1872
2153
|
});
|
|
1873
|
-
var
|
|
2154
|
+
var Ma = function() {
|
|
1874
2155
|
var o, r;
|
|
1875
|
-
var
|
|
1876
|
-
return
|
|
1877
|
-
|
|
1878
|
-
} } }),
|
|
1879
|
-
return
|
|
1880
|
-
}, dragenter: function(
|
|
1881
|
-
return
|
|
1882
|
-
}, dragleave: function(
|
|
1883
|
-
return
|
|
1884
|
-
}, drop: function(
|
|
1885
|
-
return
|
|
1886
|
-
}, dragover:
|
|
1887
|
-
return !
|
|
1888
|
-
}, function(
|
|
1889
|
-
return !
|
|
1890
|
-
}] } }, [
|
|
1891
|
-
return [
|
|
1892
|
-
}, proxy: !0 }], null, !1, 2252760379) }, [
|
|
1893
|
-
return e
|
|
1894
|
-
return
|
|
2156
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
2157
|
+
return a("div", { staticClass: "b-file-uploader", class: e.conditionalClasses }, [a(e.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { id: e.fieldLabelId, for: e.inputFieldId, label: i.label, optional: i.optional, required: i.required, "tooltip-text": i.tooltipText } }), a("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: e.inputFieldId, "aria-required": i.required, type: "file", tabindex: "-1", "data-testid": "input", accept: i.accept, disabled: i.disabled, multiple: e.isMultiple }, on: { change: e.onInputChange, click: e.onInputClick, invalid: function(l) {
|
|
2158
|
+
l.preventDefault();
|
|
2159
|
+
} } }), a("span", { staticClass: "b-file-uploader__invisible-comma", attrs: { id: e.commaTextId, "aria-hidden": "true" } }, [i._v(" , ")]), e.hideArea ? i._e() : a("div", { ref: "dropAreaRef", staticClass: "b-file-uploader__area", attrs: { "aria-labelledby": e.fileUploadAriaLabelledBy, role: "button", tabindex: i.disabled ? -1 : 0 }, on: { click: function(l) {
|
|
2160
|
+
return e.inputRef.click();
|
|
2161
|
+
}, dragenter: function(l) {
|
|
2162
|
+
return l.stopPropagation(), l.preventDefault(), e.onDragEnter.apply(null, arguments);
|
|
2163
|
+
}, dragleave: function(l) {
|
|
2164
|
+
return l.stopPropagation(), l.preventDefault(), e.onDragLeave.apply(null, arguments);
|
|
2165
|
+
}, drop: function(l) {
|
|
2166
|
+
return l.stopPropagation(), l.preventDefault(), e.onDrop.apply(null, arguments);
|
|
2167
|
+
}, dragover: e.onDragOver, "!keydown": [function(l) {
|
|
2168
|
+
return !l.type.indexOf("key") && i._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : (l.preventDefault(), e.inputRef.click());
|
|
2169
|
+
}, function(l) {
|
|
2170
|
+
return !l.type.indexOf("key") && i._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : (l.preventDefault(), e.inputRef.click());
|
|
2171
|
+
}] } }, [a("div", { staticClass: "b-file-uploader__icon", attrs: { "aria-hidden": "true" } }, [e.hasError ? a(e.WarningFilledIcon) : a(e.UploadIcon)], 1), i.condensed ? i._e() : [a(e.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { id: e.dropFilesTextId, el: "span", strongest: "" } }, [i._v(" " + i._s(e.tc("dropFiles", i.maxCount)) + " ")]), i.description ? a(e.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { id: e.customTextId, el: "span" } }, [i._v(" " + i._s(i.description) + " ")]) : i._e(), a(e.FileUploaderRestrictions, i._b({ attrs: { id: e.fileUploaderRestrictionsId } }, "file-uploader-restrictions", e.fileUploadRestrictionsProps, !1))], a(e.BentoTypography, { staticClass: "b-file-uploader__button", attrs: { id: e.browseFilesButtonId, stronger: "" } }, [i._v(" " + i._s(e.t("browseFiles")) + " ")])], 2), e.hasError && i.errorMessage ? a(e.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: e.errorId, "error-message": i.errorMessage } }) : i._e(), i.condensed && i.description ? a(e.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { id: e.customTextId, "aria-hidden": "true", el: "span" } }, [i._v(" " + i._s(i.description) + " ")]) : i._e(), i.condensed ? a(e.FileUploaderRestrictions, i._b({ attrs: { id: e.fileUploaderRestrictionsId } }, "file-uploader-restrictions", e.fileUploadRestrictionsProps, !1)) : i._e(), e.maxFileCountError ? a(e.BentoAlert, { attrs: { type: "critical" }, scopedSlots: i._u([{ key: "description", fn: function() {
|
|
2172
|
+
return [i._v(" " + i._s(e.t("youHaveExceededTheMaximum", { count: e.n(e.props.maxCount) })) + " ")];
|
|
2173
|
+
}, proxy: !0 }], null, !1, 2252760379) }, [i._v(" " + i._s(e.t("tooManyFiles")) + " ")]) : i._e(), a("div", { directives: [{ name: "show", rawName: "v-show", value: (o = e.files) == null ? void 0 : o.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, i._l(e.files, function(l, p) {
|
|
2174
|
+
return a(e.FileUploaderFileCard, { key: l.id, ref: e.registerFileCardRef(p), refInFor: !0, attrs: { file: l, "supported-file-types": e.supportedFileTypeList, readonly: i.readonly }, on: { cancel: function(c) {
|
|
2175
|
+
return e.removeFile(l);
|
|
1895
2176
|
}, remove: function(c) {
|
|
1896
|
-
return
|
|
2177
|
+
return e.removeFile(l);
|
|
1897
2178
|
} } });
|
|
1898
|
-
}), 1), !((r =
|
|
1899
|
-
},
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
2179
|
+
}), 1), !((r = e.files) != null && r.length) && i.readonly ? a(e.BentoTypography, { staticClass: "b-file-uploader__no-files", attrs: { wide: "" } }, [i._v(i._s(e.t("noFilesUploaded")))]) : i._e()], 1);
|
|
2180
|
+
}, $a = [], Ba = /* @__PURE__ */ b(
|
|
2181
|
+
Da,
|
|
2182
|
+
Ma,
|
|
2183
|
+
$a,
|
|
1903
2184
|
!1,
|
|
1904
2185
|
null,
|
|
1905
2186
|
"0c1b46a7"
|
|
1906
2187
|
);
|
|
1907
|
-
const tt =
|
|
2188
|
+
const tt = Ba.exports;
|
|
1908
2189
|
export {
|
|
1909
2190
|
tt as f
|
|
1910
2191
|
};
|
|
1911
|
-
//# sourceMappingURL=file-uploader.
|
|
2192
|
+
//# sourceMappingURL=file-uploader.Cig5gDXT.js.map
|