@adyen/bento-vue2 1.89.2 → 1.91.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 +4 -0
- package/dist/@types/index.d.ts +381 -118
- 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-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field.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/assets/use-cached-selected-values.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.Dj830k6L.js +334 -0
- package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.Dj830k6L.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.AyG2UWCB.js +110 -0
- package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.AyG2UWCB.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.C52VMtnd.js} +104 -67
- package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.C52VMtnd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
- package/dist/chunks/{button-actions.BLk114As.js → button-actions.Bdbu0bvt.js} +222 -148
- package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.Bdbu0bvt.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.CqsfThnC.js} +438 -346
- package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
- package/dist/chunks/card.8z7UQeVK.js +165 -0
- package/dist/chunks/{card.GjhsXOT0.js.map → card.8z7UQeVK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.Dur2Edtw.js} +4 -4
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
- package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.vNjt6QDJ.js} +93 -56
- package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.vNjt6QDJ.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/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
- package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.BVpFBhKq.js} +133 -76
- package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
- package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.DSm2Ujwt.js} +2 -2
- package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.DSm2Ujwt.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.DNxNVV44.js} +3 -3
- package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
- package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.DL2_sik5.js} +3 -3
- package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.BFv1zr6g.js} +4 -4
- package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
- package/dist/chunks/data-grid.ZHY5EzP3.js +4071 -0
- package/dist/chunks/data-grid.ZHY5EzP3.js.map +1 -0
- package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
- package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.js +1089 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.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/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
- package/dist/chunks/draggable-handle.Ba28eM8o.js +245 -0
- package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.B61hPq5n.js} +5 -5
- package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
- 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.CyERcfdt.js +72 -0
- package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
- package/dist/chunks/field-label.DjjjkcO6.js +97 -0
- package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
- package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.DeWmLpfp.js} +751 -469
- package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
- package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.Bd4ghW_B.js} +1596 -1039
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
- 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.CvUaoMzj.js} +3 -3
- package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
- package/dist/chunks/form-layout-title.DzGajv4U.js +248 -0
- package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
- package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.AXUGoqDd.js} +127 -73
- package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.AXUGoqDd.js.map} +1 -1
- package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.Ba4dswJF.js} +1121 -680
- package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
- package/dist/chunks/{header.DkC-KKWa.js → header.C7B7RBib.js} +3 -3
- package/dist/chunks/{header.DkC-KKWa.js.map → header.C7B7RBib.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.BNAtIn_D.js +381 -0
- package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.CEYx1s4b.js} +98 -71
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
- package/dist/chunks/input-field.Dh5W0Az-.js +211 -0
- package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
- package/dist/chunks/input-time.BLuMfakv.js +135 -0
- package/dist/chunks/input-time.BLuMfakv.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.DTvg2NLk.js} +63 -36
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
- package/dist/chunks/{modal.o0KddMiG.js → modal.D_TcWTkf.js} +63 -36
- package/dist/chunks/{modal.o0KddMiG.js.map → modal.D_TcWTkf.js.map} +1 -1
- package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
- package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
- package/dist/chunks/{pagination.ZISqB4M_.js → pagination.D6BxMw5L.js} +221 -99
- package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.D6BxMw5L.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.Bb-L-0io.js} +4 -4
- package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.Bb-L-0io.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.Dtdfh-0V.js} +1782 -1731
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
- package/dist/chunks/search-bar.MVJS9-Mh.js +126 -0
- package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
- package/dist/chunks/secondary-nav.C-nPZR-2.js +226 -0
- package/dist/chunks/secondary-nav.C-nPZR-2.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.CLJPaknG.js} +3 -3
- package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
- package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.BTRfwGiS.js} +66 -39
- package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.BTRfwGiS.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.DUIqCmwg.js} +5 -5
- package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.DUIqCmwg.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.CJS-1I41.js +219 -0
- package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.CJS-1I41.js.map} +1 -1
- package/dist/chunks/timeline-item.BOUWkLi1.js +322 -0
- package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.BOUWkLi1.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.CZt_mcuT.js} +190 -103
- package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.CZt_mcuT.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.BJbWbkEQ.js} +553 -417
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
- 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.Djf8AoLr.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.Djf8AoLr.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/click-outside.js +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.js +1396 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +11 -12
- package/dist/dropdown.js.map +1 -1
- 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 +280 -275
- 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 +26 -25
- package/dist/internal.js.map +1 -1
- 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 +297 -4
- package/package.json +10 -15
- package/dist/assets/dropdown-default-textbox.css +0 -1
- 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/calendar.CXKhBF2f.js.map +0 -1
- 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-picker.CnazYcSX.js.map +0 -1
- package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
- package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.oyG153fC.js +0 -116
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js +0 -337
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js.map +0 -1
- package/dist/chunks/dropdown.Ct7uhPr6.js +0 -696
- package/dist/chunks/dropdown.Ct7uhPr6.js.map +0 -1
- package/dist/chunks/error-message.RxdStT3S.js +0 -106
- package/dist/chunks/error-message.RxdStT3S.js.map +0 -1
- package/dist/chunks/filter-bar.zD_ctViU.js.map +0 -1
- package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
- package/dist/chunks/form-layout-title.Bw7VgOO5.js +0 -210
- package/dist/chunks/form-layout-title.Bw7VgOO5.js.map +0 -1
- package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
- package/dist/chunks/input-field.m1PMwa4C.js +0 -170
- package/dist/chunks/input-field.m1PMwa4C.js.map +0 -1
- package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
- 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-cached-selected-values.DqX2qsMC.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
- package/dist/draggable-handle.js +0 -149
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,99 +1,100 @@
|
|
|
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 } from "./field-label.DjjjkcO6.js";
|
|
20
|
+
import { E as ee } from "./error-message.CyERcfdt.js";
|
|
20
21
|
import "../assets/file-uploader.css";
|
|
21
|
-
let
|
|
22
|
-
const
|
|
22
|
+
let fi = 0;
|
|
23
|
+
const ae = {
|
|
23
24
|
beforeCreate() {
|
|
24
|
-
this.uuid =
|
|
25
|
+
this.uuid = fi.toString(), fi += 1;
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
return
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
var te = function() {
|
|
29
|
+
var i = this, a = i._self._c;
|
|
30
|
+
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" } })]);
|
|
31
|
+
}, ne = [], oe = /* @__PURE__ */ b(
|
|
32
|
+
ae,
|
|
33
|
+
te,
|
|
34
|
+
ne,
|
|
34
35
|
!1,
|
|
35
36
|
null,
|
|
36
37
|
null
|
|
37
38
|
);
|
|
38
|
-
const
|
|
39
|
+
const le = oe.exports, se = /* @__PURE__ */ G({
|
|
39
40
|
__name: "file-uploader-file-card-animation",
|
|
40
41
|
props: {
|
|
41
42
|
name: null,
|
|
42
43
|
showFileIcon: { type: Boolean }
|
|
43
44
|
},
|
|
44
45
|
setup(t) {
|
|
45
|
-
return { __sfc: !0, isVue2:
|
|
46
|
+
return { __sfc: !0, isVue2: Ri };
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
return
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
var pe = function() {
|
|
50
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
51
|
+
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);
|
|
52
|
+
}, re = [], ce = /* @__PURE__ */ b(
|
|
53
|
+
se,
|
|
54
|
+
pe,
|
|
55
|
+
re,
|
|
55
56
|
!1,
|
|
56
57
|
null,
|
|
57
58
|
null
|
|
58
59
|
);
|
|
59
|
-
const
|
|
60
|
-
function
|
|
61
|
-
const
|
|
62
|
-
let
|
|
60
|
+
const de = ce.exports;
|
|
61
|
+
function me(t, i) {
|
|
62
|
+
const a = y(!1);
|
|
63
|
+
let e;
|
|
63
64
|
function o() {
|
|
64
|
-
|
|
65
|
+
e && e.disconnect();
|
|
65
66
|
}
|
|
66
|
-
return
|
|
67
|
+
return Oi(() => {
|
|
67
68
|
o();
|
|
68
|
-
}),
|
|
69
|
-
o(),
|
|
69
|
+
}), Fi(() => {
|
|
70
|
+
o(), e = new IntersectionObserver(
|
|
70
71
|
(r) => {
|
|
71
|
-
|
|
72
|
+
a.value = !r[0].isIntersecting;
|
|
72
73
|
},
|
|
73
74
|
{
|
|
74
|
-
root:
|
|
75
|
+
root: i.value,
|
|
75
76
|
threshold: 1
|
|
76
77
|
}
|
|
77
|
-
),
|
|
78
|
-
}),
|
|
78
|
+
), e.observe(t.value.$el);
|
|
79
|
+
}), a;
|
|
79
80
|
}
|
|
80
|
-
const
|
|
81
|
-
function
|
|
82
|
-
const
|
|
81
|
+
const xi = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
82
|
+
function li(t, i) {
|
|
83
|
+
const a = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), xi.length - 1));
|
|
83
84
|
return Intl.NumberFormat(t, {
|
|
84
85
|
style: "unit",
|
|
85
|
-
unit:
|
|
86
|
-
}).format(
|
|
86
|
+
unit: xi[a]
|
|
87
|
+
}).format(i / 1024 ** a);
|
|
87
88
|
}
|
|
88
|
-
var
|
|
89
|
-
const
|
|
89
|
+
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 || {});
|
|
90
|
+
const ue = [
|
|
90
91
|
"application/msword",
|
|
91
92
|
// .doc
|
|
92
93
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
93
94
|
// .docx
|
|
94
95
|
"application/rtf"
|
|
95
96
|
// .rtf
|
|
96
|
-
],
|
|
97
|
+
], ve = [
|
|
97
98
|
"application/vnd.ms-excel",
|
|
98
99
|
// .xls
|
|
99
100
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -106,14 +107,14 @@ const ui = [
|
|
|
106
107
|
// .numbers
|
|
107
108
|
"text/csv"
|
|
108
109
|
// .csv
|
|
109
|
-
],
|
|
110
|
+
], fe = [
|
|
110
111
|
"application/vnd.ms-powerpoint",
|
|
111
112
|
// .ppt
|
|
112
113
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
113
114
|
// .pptx
|
|
114
115
|
"application/vnd.oasis.opendocument.presentation"
|
|
115
116
|
// .odp
|
|
116
|
-
],
|
|
117
|
+
], xe = [
|
|
117
118
|
"application/zip",
|
|
118
119
|
// .zip
|
|
119
120
|
"application/vnd.rar",
|
|
@@ -135,227 +136,227 @@ const ui = [
|
|
|
135
136
|
"application/vnd.ms-cab-compressed"
|
|
136
137
|
// .cab
|
|
137
138
|
];
|
|
138
|
-
function
|
|
139
|
-
return
|
|
139
|
+
function ge(t) {
|
|
140
|
+
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
141
|
}
|
|
141
|
-
function
|
|
142
|
-
if (!
|
|
142
|
+
function Ti(t, i) {
|
|
143
|
+
if (!i)
|
|
143
144
|
return !0;
|
|
144
|
-
const
|
|
145
|
-
for (const
|
|
146
|
-
if (
|
|
147
|
-
if (t.name.endsWith(
|
|
145
|
+
const a = i.split(",").map((e) => e.trim());
|
|
146
|
+
for (const e of a)
|
|
147
|
+
if (e.startsWith(".")) {
|
|
148
|
+
if (t.name.endsWith(e))
|
|
148
149
|
return !0;
|
|
149
|
-
} else if (
|
|
150
|
-
const o =
|
|
150
|
+
} else if (e.endsWith("/*")) {
|
|
151
|
+
const o = e.split("/")[0];
|
|
151
152
|
if (t.type.startsWith(o))
|
|
152
153
|
return !0;
|
|
153
|
-
} else if (
|
|
154
|
-
if (t.type ===
|
|
154
|
+
} else if (e.includes("/")) {
|
|
155
|
+
if (t.type === e)
|
|
155
156
|
return !0;
|
|
156
|
-
} else if (t.name.endsWith(`.${
|
|
157
|
+
} else if (t.name.endsWith(`.${e}`))
|
|
157
158
|
return !0;
|
|
158
159
|
return !1;
|
|
159
160
|
}
|
|
160
|
-
function
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
163
|
-
o.state =
|
|
161
|
+
function he(t, i, a) {
|
|
162
|
+
const e = new FileReader(), o = t;
|
|
163
|
+
if (!Ti(o.data, i)) {
|
|
164
|
+
o.state = z.ERROR, o.errors.push(h.ERROR_TYPE);
|
|
164
165
|
return;
|
|
165
166
|
}
|
|
166
|
-
|
|
167
|
-
if (
|
|
168
|
-
const
|
|
167
|
+
e.onload = (r) => {
|
|
168
|
+
if (a && o.type === u.IMAGE) {
|
|
169
|
+
const l = new Blob([r.target.result], { type: o.data.type }), p = URL.createObjectURL(l), c = new Image();
|
|
169
170
|
c.onload = function() {
|
|
170
|
-
(c.width >
|
|
171
|
+
(c.width > a.width || c.height > a.height) && (o.state = z.ERROR, o.errors.push(h.ERROR_DIMENSIONS)), URL.revokeObjectURL(p);
|
|
171
172
|
}, c.onerror = function() {
|
|
172
|
-
URL.revokeObjectURL(
|
|
173
|
-
}, c.src =
|
|
173
|
+
URL.revokeObjectURL(p);
|
|
174
|
+
}, c.src = p;
|
|
174
175
|
}
|
|
175
|
-
},
|
|
176
|
+
}, e.onprogress = (r) => {
|
|
176
177
|
r.lengthComputable && (o.progress = r.loaded / r.total * 100);
|
|
177
|
-
},
|
|
178
|
-
o.state !==
|
|
179
|
-
},
|
|
180
|
-
o.state =
|
|
181
|
-
},
|
|
178
|
+
}, e.onloadend = () => {
|
|
179
|
+
o.state !== z.ERROR && (o.state = z.SUCCESS), o.progress = null;
|
|
180
|
+
}, e.onerror = () => {
|
|
181
|
+
o.state = z.ERROR, o.errors.push(h.ERROR_LOAD), o.progress = null;
|
|
182
|
+
}, e.readAsArrayBuffer(o.data);
|
|
182
183
|
}
|
|
183
|
-
let
|
|
184
|
-
const
|
|
184
|
+
let gi = 0;
|
|
185
|
+
const be = {
|
|
185
186
|
beforeCreate() {
|
|
186
|
-
this.uuid =
|
|
187
|
+
this.uuid = gi.toString(), gi += 1;
|
|
187
188
|
}
|
|
188
189
|
};
|
|
189
|
-
var
|
|
190
|
-
var
|
|
191
|
-
return
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
190
|
+
var _e = function() {
|
|
191
|
+
var i = this, a = i._self._c;
|
|
192
|
+
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" } })])])]);
|
|
193
|
+
}, ye = [], we = /* @__PURE__ */ b(
|
|
194
|
+
be,
|
|
195
|
+
_e,
|
|
196
|
+
ye,
|
|
196
197
|
!1,
|
|
197
198
|
null,
|
|
198
199
|
null
|
|
199
200
|
);
|
|
200
|
-
const
|
|
201
|
-
let
|
|
202
|
-
const
|
|
201
|
+
const Ce = we.exports;
|
|
202
|
+
let hi = 0;
|
|
203
|
+
const ze = {
|
|
203
204
|
beforeCreate() {
|
|
204
|
-
this.uuid =
|
|
205
|
+
this.uuid = hi.toString(), hi += 1;
|
|
205
206
|
}
|
|
206
207
|
};
|
|
207
|
-
var
|
|
208
|
-
var
|
|
209
|
-
return
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
208
|
+
var ke = function() {
|
|
209
|
+
var i = this, a = i._self._c;
|
|
210
|
+
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" } })]);
|
|
211
|
+
}, Fe = [], Ee = /* @__PURE__ */ b(
|
|
212
|
+
ze,
|
|
213
|
+
ke,
|
|
214
|
+
Fe,
|
|
214
215
|
!1,
|
|
215
216
|
null,
|
|
216
217
|
null
|
|
217
218
|
);
|
|
218
|
-
const
|
|
219
|
-
let
|
|
220
|
-
const
|
|
219
|
+
const Re = Ee.exports;
|
|
220
|
+
let bi = 0;
|
|
221
|
+
const Te = {
|
|
221
222
|
beforeCreate() {
|
|
222
|
-
this.uuid =
|
|
223
|
+
this.uuid = bi.toString(), bi += 1;
|
|
223
224
|
}
|
|
224
225
|
};
|
|
225
|
-
var
|
|
226
|
-
var
|
|
227
|
-
return
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
226
|
+
var Ie = function() {
|
|
227
|
+
var i = this, a = i._self._c;
|
|
228
|
+
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" } })]);
|
|
229
|
+
}, Se = [], Le = /* @__PURE__ */ b(
|
|
230
|
+
Te,
|
|
231
|
+
Ie,
|
|
232
|
+
Se,
|
|
232
233
|
!1,
|
|
233
234
|
null,
|
|
234
235
|
null
|
|
235
236
|
);
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
const
|
|
237
|
+
const je = Le.exports;
|
|
238
|
+
let _i = 0;
|
|
239
|
+
const De = {
|
|
239
240
|
beforeCreate() {
|
|
240
|
-
this.uuid =
|
|
241
|
+
this.uuid = _i.toString(), _i += 1;
|
|
241
242
|
}
|
|
242
243
|
};
|
|
243
|
-
var
|
|
244
|
-
var
|
|
245
|
-
return
|
|
246
|
-
},
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
244
|
+
var Me = function() {
|
|
245
|
+
var i = this, a = i._self._c;
|
|
246
|
+
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" } })]);
|
|
247
|
+
}, $e = [], Be = /* @__PURE__ */ b(
|
|
248
|
+
De,
|
|
249
|
+
Me,
|
|
250
|
+
$e,
|
|
250
251
|
!1,
|
|
251
252
|
null,
|
|
252
253
|
null
|
|
253
254
|
);
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
const
|
|
255
|
+
const He = Be.exports;
|
|
256
|
+
let yi = 0;
|
|
257
|
+
const Ve = {
|
|
257
258
|
beforeCreate() {
|
|
258
|
-
this.uuid =
|
|
259
|
+
this.uuid = yi.toString(), yi += 1;
|
|
259
260
|
}
|
|
260
261
|
};
|
|
261
|
-
var
|
|
262
|
-
var
|
|
263
|
-
return
|
|
264
|
-
},
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
262
|
+
var Ae = function() {
|
|
263
|
+
var i = this, a = i._self._c;
|
|
264
|
+
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" } })]);
|
|
265
|
+
}, Oe = [], Ue = /* @__PURE__ */ b(
|
|
266
|
+
Ve,
|
|
267
|
+
Ae,
|
|
268
|
+
Oe,
|
|
268
269
|
!1,
|
|
269
270
|
null,
|
|
270
271
|
null
|
|
271
272
|
);
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const
|
|
273
|
+
const qe = Ue.exports;
|
|
274
|
+
let wi = 0;
|
|
275
|
+
const Ze = {
|
|
275
276
|
beforeCreate() {
|
|
276
|
-
this.uuid =
|
|
277
|
+
this.uuid = wi.toString(), wi += 1;
|
|
277
278
|
}
|
|
278
279
|
};
|
|
279
|
-
var
|
|
280
|
-
var
|
|
281
|
-
return
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
280
|
+
var Ne = function() {
|
|
281
|
+
var i = this, a = i._self._c;
|
|
282
|
+
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" } })]);
|
|
283
|
+
}, Pe = [], We = /* @__PURE__ */ b(
|
|
284
|
+
Ze,
|
|
285
|
+
Ne,
|
|
286
|
+
Pe,
|
|
286
287
|
!1,
|
|
287
288
|
null,
|
|
288
289
|
null
|
|
289
290
|
);
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
const
|
|
291
|
+
const Ge = We.exports;
|
|
292
|
+
let Ci = 0;
|
|
293
|
+
const Ye = {
|
|
293
294
|
beforeCreate() {
|
|
294
|
-
this.uuid =
|
|
295
|
+
this.uuid = Ci.toString(), Ci += 1;
|
|
295
296
|
}
|
|
296
297
|
};
|
|
297
|
-
var
|
|
298
|
-
var
|
|
299
|
-
return
|
|
300
|
-
},
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
var Xe = function() {
|
|
299
|
+
var i = this, a = i._self._c;
|
|
300
|
+
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" } })])])]);
|
|
301
|
+
}, Je = [], Ke = /* @__PURE__ */ b(
|
|
302
|
+
Ye,
|
|
303
|
+
Xe,
|
|
304
|
+
Je,
|
|
304
305
|
!1,
|
|
305
306
|
null,
|
|
306
307
|
null
|
|
307
308
|
);
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
const
|
|
309
|
+
const Qe = Ke.exports;
|
|
310
|
+
let zi = 0;
|
|
311
|
+
const ia = {
|
|
311
312
|
beforeCreate() {
|
|
312
|
-
this.uuid =
|
|
313
|
+
this.uuid = zi.toString(), zi += 1;
|
|
313
314
|
}
|
|
314
315
|
};
|
|
315
|
-
var
|
|
316
|
-
var
|
|
317
|
-
return
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
316
|
+
var ea = function() {
|
|
317
|
+
var i = this, a = i._self._c;
|
|
318
|
+
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" } })]);
|
|
319
|
+
}, aa = [], ta = /* @__PURE__ */ b(
|
|
320
|
+
ia,
|
|
321
|
+
ea,
|
|
322
|
+
aa,
|
|
322
323
|
!1,
|
|
323
324
|
null,
|
|
324
325
|
null
|
|
325
326
|
);
|
|
326
|
-
const
|
|
327
|
-
let
|
|
328
|
-
const
|
|
327
|
+
const na = ta.exports;
|
|
328
|
+
let ki = 0;
|
|
329
|
+
const oa = {
|
|
329
330
|
beforeCreate() {
|
|
330
|
-
this.uuid =
|
|
331
|
+
this.uuid = ki.toString(), ki += 1;
|
|
331
332
|
}
|
|
332
333
|
};
|
|
333
|
-
var
|
|
334
|
-
var
|
|
335
|
-
return
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
334
|
+
var la = function() {
|
|
335
|
+
var i = this, a = i._self._c;
|
|
336
|
+
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" } })]);
|
|
337
|
+
}, sa = [], pa = /* @__PURE__ */ b(
|
|
338
|
+
oa,
|
|
339
|
+
la,
|
|
340
|
+
sa,
|
|
340
341
|
!1,
|
|
341
342
|
null,
|
|
342
343
|
null
|
|
343
344
|
);
|
|
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]:
|
|
345
|
+
const ra = pa.exports, ca = {
|
|
346
|
+
[u.AUDIO]: na,
|
|
347
|
+
[u.COMPRESSED]: qe,
|
|
348
|
+
[u.GENERIC]: Ce,
|
|
349
|
+
[u.IMAGE]: Ge,
|
|
350
|
+
[u.PDF]: je,
|
|
351
|
+
[u.SLIDES]: Re,
|
|
352
|
+
[u.TABLE]: ra,
|
|
353
|
+
[u.TEXT]: He,
|
|
354
|
+
[u.VIDEO]: Qe
|
|
354
355
|
};
|
|
355
|
-
function
|
|
356
|
-
return
|
|
356
|
+
function da(t) {
|
|
357
|
+
return ca[t.type];
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
+
function ma(t) {
|
|
359
360
|
switch (t.type) {
|
|
360
361
|
case u.COMPRESSED:
|
|
361
362
|
case u.GENERIC:
|
|
@@ -369,45 +370,122 @@ function me(t) {
|
|
|
369
370
|
return "green";
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
|
-
const
|
|
373
|
-
"
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
373
|
+
const ua = {
|
|
374
|
+
"de-DE": {
|
|
375
|
+
cancel: "Abbrechen",
|
|
376
|
+
fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung",
|
|
377
|
+
fileTypeMustBe: "Der Dateityp muss {list} sein.",
|
|
378
|
+
imageDimensionsExceedLimits: "Die Bildabmessungen überschreiten die zulässigen Grenzwerte",
|
|
379
|
+
remove: "Entfernen",
|
|
380
|
+
retry: "Wiederholen"
|
|
381
|
+
},
|
|
382
|
+
"en-GB": {
|
|
383
|
+
cancel: "Cancel",
|
|
384
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
385
|
+
fileTypeMustBe: "File type must be {list}",
|
|
386
|
+
imageDimensionsExceedLimits: "Image dimensions exceed limits",
|
|
387
|
+
remove: "Remove",
|
|
388
|
+
retry: "Retry"
|
|
389
|
+
},
|
|
390
|
+
"en-US": {
|
|
391
|
+
cancel: "Cancel",
|
|
392
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
393
|
+
fileTypeMustBe: "File type must be {list}",
|
|
394
|
+
imageDimensionsExceedLimits: "Image dimensions exceed limits",
|
|
395
|
+
remove: "Remove",
|
|
396
|
+
retry: "Retry"
|
|
397
|
+
},
|
|
398
|
+
"es-ES": {
|
|
399
|
+
cancel: "Cancelar",
|
|
400
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
401
|
+
fileTypeMustBe: "El tipo de archivo debe ser {list}",
|
|
402
|
+
imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites",
|
|
403
|
+
remove: "Eliminar",
|
|
404
|
+
retry: "Reintentar"
|
|
405
|
+
},
|
|
406
|
+
"es-MX": {
|
|
407
|
+
cancel: "Cancelar",
|
|
408
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
409
|
+
fileTypeMustBe: "El tipo de archivo debe ser {list}",
|
|
410
|
+
imageDimensionsExceedLimits: "Las dimensiones de la imagen superan los límites",
|
|
411
|
+
remove: "Eliminar",
|
|
412
|
+
retry: "Reintentar"
|
|
413
|
+
},
|
|
414
|
+
"fr-FR": {
|
|
415
|
+
cancel: "Annuler",
|
|
416
|
+
fileExceedsSizeLimit: "Le fichier dépasse la limite de taille",
|
|
417
|
+
fileTypeMustBe: "Le type de fichier doit être {list}",
|
|
418
|
+
imageDimensionsExceedLimits: "Les dimensions de l'image dépassent les limites",
|
|
419
|
+
remove: "Supprimer",
|
|
420
|
+
retry: "Réessayer"
|
|
421
|
+
},
|
|
422
|
+
"it-IT": {
|
|
423
|
+
cancel: "Annulla",
|
|
424
|
+
fileExceedsSizeLimit: "Il file supera il limite di dimensione",
|
|
425
|
+
fileTypeMustBe: "Il tipo di file deve essere {list}",
|
|
426
|
+
imageDimensionsExceedLimits: "Le dimensioni dell'immagine superano i limiti",
|
|
427
|
+
remove: "Rimuovi",
|
|
428
|
+
retry: "Riprova"
|
|
429
|
+
},
|
|
430
|
+
"ja-JP": {
|
|
431
|
+
cancel: "キャンセル",
|
|
432
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
433
|
+
fileTypeMustBe: "ファイル形式は{list}でなければなりません",
|
|
434
|
+
imageDimensionsExceedLimits: "画像のサイズが制限を超えています",
|
|
435
|
+
remove: "削除",
|
|
436
|
+
retry: "再試行"
|
|
437
|
+
},
|
|
438
|
+
"pt-BR": {
|
|
439
|
+
cancel: "Cancelar",
|
|
440
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
441
|
+
fileTypeMustBe: "O tipo de arquivo deve ser {list}",
|
|
442
|
+
imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites",
|
|
443
|
+
remove: "Retirar",
|
|
444
|
+
retry: "Tentar de novo"
|
|
445
|
+
},
|
|
446
|
+
"zh-CN": {
|
|
447
|
+
cancel: "取消",
|
|
448
|
+
fileExceedsSizeLimit: "文件大小超过限制",
|
|
449
|
+
fileTypeMustBe: "文件类型必须为 {list}",
|
|
450
|
+
imageDimensionsExceedLimits: "图像尺寸超过限制",
|
|
451
|
+
remove: "移除",
|
|
452
|
+
retry: "重试"
|
|
453
|
+
}
|
|
454
|
+
}, va = {
|
|
377
455
|
name: "file-uploader-file-card",
|
|
378
|
-
i18n: { messages:
|
|
379
|
-
},
|
|
380
|
-
...
|
|
456
|
+
i18n: { messages: ua }
|
|
457
|
+
}, fa = /* @__PURE__ */ G({
|
|
458
|
+
...va,
|
|
381
459
|
props: {
|
|
382
460
|
file: null,
|
|
383
461
|
supportedFileTypes: { default: null },
|
|
384
462
|
readonly: { type: Boolean }
|
|
385
463
|
},
|
|
386
464
|
emits: ["cancel", "remove", "retry"],
|
|
387
|
-
setup(t, { expose:
|
|
388
|
-
const
|
|
465
|
+
setup(t, { expose: i, emit: a }) {
|
|
466
|
+
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
467
|
"b-file-uploader-file-card--error": E.value
|
|
390
468
|
})), Q = d(() => ({
|
|
391
|
-
[`b-file-uploader-file-card__icon--${
|
|
469
|
+
[`b-file-uploader-file-card__icon--${ma(e.file)}`]: k.value,
|
|
392
470
|
"b-file-uploader-file-card__icon--error": E.value
|
|
393
|
-
})),
|
|
394
|
-
|
|
395
|
-
() =>
|
|
396
|
-
(
|
|
397
|
-
if (
|
|
398
|
-
const
|
|
399
|
-
|
|
471
|
+
})), B = d(() => A.value ? Ki : E.value ? Ei : k.value ? da(e.file) : Wi);
|
|
472
|
+
ni(
|
|
473
|
+
() => e.file.state,
|
|
474
|
+
(U) => {
|
|
475
|
+
if (U === z.SUCCESS && !k.value) {
|
|
476
|
+
const ii = setTimeout(() => {
|
|
477
|
+
k.value = !0, clearTimeout(ii);
|
|
400
478
|
}, o);
|
|
401
479
|
}
|
|
402
480
|
}
|
|
403
481
|
);
|
|
404
|
-
function
|
|
482
|
+
function O() {
|
|
405
483
|
if (g.value) {
|
|
406
484
|
g.value.$el.focus();
|
|
407
485
|
return;
|
|
408
486
|
}
|
|
409
|
-
if (
|
|
410
|
-
|
|
487
|
+
if (p.value) {
|
|
488
|
+
p.value.$el.focus();
|
|
411
489
|
return;
|
|
412
490
|
}
|
|
413
491
|
if (c.value) {
|
|
@@ -415,42 +493,129 @@ const ue = {
|
|
|
415
493
|
return;
|
|
416
494
|
}
|
|
417
495
|
}
|
|
418
|
-
return
|
|
419
|
-
focus:
|
|
420
|
-
}), { __sfc: !0, ICON_TIMER: o, props:
|
|
496
|
+
return i({
|
|
497
|
+
focus: O
|
|
498
|
+
}), { __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
499
|
}
|
|
422
500
|
});
|
|
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
|
|
501
|
+
var xa = function() {
|
|
502
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
503
|
+
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) {
|
|
504
|
+
return e.emit("retry");
|
|
505
|
+
} }, scopedSlots: i._u([{ key: "iconLeft", fn: function() {
|
|
506
|
+
return [a(e.RefreshIcon, { attrs: { id: e.retryFileButtonId, "svg-title": `${e.t("retry")} - ${i.file.data.name} ` } })];
|
|
507
|
+
}, 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) {
|
|
508
|
+
return e.emit("cancel");
|
|
509
|
+
} }, scopedSlots: i._u([{ key: "iconLeft", fn: function() {
|
|
510
|
+
return [a(e.CrossIcon, { attrs: { id: e.cancelFileButtonId, "svg-title": `${e.t("cancel")} - ${i.file.data.name}` } })];
|
|
511
|
+
}, proxy: !0 }], null, !1, 1610167681) }) : a(e.BentoButton, { ref: "removeFileButtonRef", attrs: { "aria-labelledby": `${e.fileErrorsSectionId} ${e.removeFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
|
|
512
|
+
return e.emit("remove");
|
|
513
|
+
} }, scopedSlots: i._u([{ key: "iconLeft", fn: function() {
|
|
514
|
+
return [a(e.BinIcon, { attrs: { id: e.removeFileButtonId, "svg-title": `${e.t("remove")} - ${i.file.data.name}` } })];
|
|
437
515
|
}, proxy: !0 }], null, !1, 3607204026) })], 1)]);
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
516
|
+
}, ga = [], ha = /* @__PURE__ */ b(
|
|
517
|
+
fa,
|
|
518
|
+
xa,
|
|
519
|
+
ga,
|
|
442
520
|
!1,
|
|
443
521
|
null,
|
|
444
522
|
"fbe82cf6"
|
|
445
523
|
);
|
|
446
|
-
const
|
|
447
|
-
"
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}
|
|
453
|
-
|
|
524
|
+
const ba = ha.exports, _a = {
|
|
525
|
+
"de-DE": {
|
|
526
|
+
maxFileSize: "Maximale Dateigröße: {size}",
|
|
527
|
+
maxImageDimensions: "Maximale Bilddimensionen: {width} × {height}px",
|
|
528
|
+
maxImageHeight: "Maximale Bildhöhe: {height}px",
|
|
529
|
+
maxImageWidth: "Maximale Bildbreite: {width}px",
|
|
530
|
+
maxUpload: "Maximale Anzahl Uploads: {count} Datei | Maximale Anzahl Uploads: {count} Dateien",
|
|
531
|
+
supportedFileTypes: "Unterstützte Dateitypen: {list}",
|
|
532
|
+
upToSize: "(bis zu {size})"
|
|
533
|
+
},
|
|
534
|
+
"en-GB": {
|
|
535
|
+
maxFileSize: "Max. file size: {size}",
|
|
536
|
+
maxImageDimensions: "Max. image dimensions: {width} × {height}px",
|
|
537
|
+
maxImageHeight: "Max. image height: {height}px",
|
|
538
|
+
maxImageWidth: "Max. image width: {width}px",
|
|
539
|
+
maxUpload: "Max. upload: {count} file | Max. upload: {count} files",
|
|
540
|
+
supportedFileTypes: "Supported file types: {list}",
|
|
541
|
+
upToSize: "(up to {size})"
|
|
542
|
+
},
|
|
543
|
+
"en-US": {
|
|
544
|
+
maxFileSize: "Max file size: {size}",
|
|
545
|
+
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
546
|
+
maxImageHeight: "Max image height: {height}px",
|
|
547
|
+
maxImageWidth: "Max image width: {width}px",
|
|
548
|
+
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
549
|
+
supportedFileTypes: "Supported file types: {list}",
|
|
550
|
+
upToSize: "(up to {size})"
|
|
551
|
+
},
|
|
552
|
+
"es-ES": {
|
|
553
|
+
maxFileSize: "Tamaño máximo del archivo: {size}",
|
|
554
|
+
maxImageDimensions: "Dimensiones máximas de la imagen: {width} × {height} px",
|
|
555
|
+
maxImageHeight: "Altura máxima de la imagen: {height} px",
|
|
556
|
+
maxImageWidth: "Anchura máximo de la imagen: {width} px",
|
|
557
|
+
maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos",
|
|
558
|
+
supportedFileTypes: "Tipos de archivo compatibles: {list}",
|
|
559
|
+
upToSize: "(hasta {size})"
|
|
560
|
+
},
|
|
561
|
+
"es-MX": {
|
|
562
|
+
maxFileSize: "Tamaño máximo de archivo: {size}",
|
|
563
|
+
maxImageDimensions: "Dimensiones máximas de la imagen: {ancho} × {altura}px",
|
|
564
|
+
maxImageHeight: "Altura máxima de la imagen: {height}px",
|
|
565
|
+
maxImageWidth: "Ancho máximo de la imagen: {width}px",
|
|
566
|
+
maxUpload: "Carga máxima: {count} archivo | Carga máxima: {count} archivos",
|
|
567
|
+
supportedFileTypes: "Tipos de archivo compatibles: {list}",
|
|
568
|
+
upToSize: "(hasta {size})"
|
|
569
|
+
},
|
|
570
|
+
"fr-FR": {
|
|
571
|
+
maxFileSize: "Taille maximale du fichier : {size}",
|
|
572
|
+
maxImageDimensions: "Dimensions maximales de l'image : {width} × {height} px",
|
|
573
|
+
maxImageHeight: "Hauteur maximale de l'image : {height} px",
|
|
574
|
+
maxImageWidth: "Largeur maximale de l'image : {width} px",
|
|
575
|
+
maxUpload: "Téléchargement maximal : {count} fichier | Téléchargement maximal : {count} fichiers",
|
|
576
|
+
supportedFileTypes: "Types de fichiers pris en charge : {list}",
|
|
577
|
+
upToSize: "(jusqu'à {size})"
|
|
578
|
+
},
|
|
579
|
+
"it-IT": {
|
|
580
|
+
maxFileSize: "Dimensione massima del file: {size}",
|
|
581
|
+
maxImageDimensions: "Dimensioni massime dell'immagine: {width} × {height}px",
|
|
582
|
+
maxImageHeight: "Altezza massima dell'immagine: {height} px",
|
|
583
|
+
maxImageWidth: "Larghezza massima dell'immagine: {width} px",
|
|
584
|
+
maxUpload: "Upload massimo: file {count} | Upload massimo: {count} file",
|
|
585
|
+
supportedFileTypes: "Tipi di file supportati: {list}",
|
|
586
|
+
upToSize: "(fino a {size})"
|
|
587
|
+
},
|
|
588
|
+
"ja-JP": {
|
|
589
|
+
maxFileSize: "最大ファイルサイズ:{size}",
|
|
590
|
+
maxImageDimensions: "最大画像サイズ: {width} × {height}px",
|
|
591
|
+
maxImageHeight: "最大画像高さ: {height}px",
|
|
592
|
+
maxImageWidth: "最大画像幅: {width}px",
|
|
593
|
+
maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル",
|
|
594
|
+
supportedFileTypes: "対応ファイル形式: {list}",
|
|
595
|
+
upToSize: "({size}まで)"
|
|
596
|
+
},
|
|
597
|
+
"pt-BR": {
|
|
598
|
+
maxFileSize: "Tamanho máx. do arquivo: {size}",
|
|
599
|
+
maxImageDimensions: "Dimensões máx. da imagem: {width} × {height}px",
|
|
600
|
+
maxImageHeight: "Altura máx. da imagem: {height}px",
|
|
601
|
+
maxImageWidth: "Largura máx. da imagem: {width}px",
|
|
602
|
+
maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos",
|
|
603
|
+
supportedFileTypes: "Tipos de arquivo aceitos: {list}",
|
|
604
|
+
upToSize: "(até {size})"
|
|
605
|
+
},
|
|
606
|
+
"zh-CN": {
|
|
607
|
+
maxFileSize: "最大文件大小:{size}",
|
|
608
|
+
maxImageDimensions: "最大图像尺寸:{width} × {height}px",
|
|
609
|
+
maxImageHeight: "最大图像高度:{height}px",
|
|
610
|
+
maxImageWidth: "最大图像宽度:{width}px",
|
|
611
|
+
maxUpload: "最多上传:{count} 个文件 | 最多上传:{count} 个文件",
|
|
612
|
+
supportedFileTypes: "支持的文件类型:{list}",
|
|
613
|
+
upToSize: "(最多 {size})"
|
|
614
|
+
}
|
|
615
|
+
}, ya = {
|
|
616
|
+
i18n: { messages: _a }
|
|
617
|
+
}, wa = /* @__PURE__ */ G({
|
|
618
|
+
...ya,
|
|
454
619
|
__name: "file-uploader-restrictions",
|
|
455
620
|
props: {
|
|
456
621
|
condensed: { default: null },
|
|
@@ -461,48 +626,48 @@ const be = he.exports, _e = {
|
|
|
461
626
|
supportedFileTypes: { default: null }
|
|
462
627
|
},
|
|
463
628
|
setup(t) {
|
|
464
|
-
const
|
|
465
|
-
"b-file-uploader-restrictions--condensed":
|
|
466
|
-
"b-file-uploader-restrictions--disabled":
|
|
629
|
+
const i = t, { t: a, tc: e, n: o, locale: r } = Y(), l = d(() => ({
|
|
630
|
+
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
631
|
+
"b-file-uploader-restrictions--disabled": i.disabled
|
|
467
632
|
}));
|
|
468
|
-
function
|
|
633
|
+
function p(x) {
|
|
469
634
|
return {
|
|
470
635
|
"b-file-uploader-restrictions--error": x
|
|
471
636
|
};
|
|
472
637
|
}
|
|
473
|
-
const c = d(() =>
|
|
474
|
-
if (!
|
|
638
|
+
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(() => {
|
|
639
|
+
if (!i.supportedFileTypes)
|
|
475
640
|
return null;
|
|
476
641
|
if (!c.value)
|
|
477
|
-
return
|
|
478
|
-
let x =
|
|
479
|
-
return
|
|
480
|
-
const
|
|
481
|
-
x = x.replace(
|
|
642
|
+
return i.supportedFileTypes.value;
|
|
643
|
+
let x = i.supportedFileTypes.value;
|
|
644
|
+
return i.maxSize.value.forEach((w) => {
|
|
645
|
+
const k = w.fileType.toUpperCase(), m = a("upToSize", { size: li(r.value, w.maxSize) });
|
|
646
|
+
x = x.replace(k, `${k} ${m}`);
|
|
482
647
|
}), x;
|
|
483
|
-
}),
|
|
484
|
-
if (!
|
|
648
|
+
}), S = d(() => {
|
|
649
|
+
if (!i.maxDimensions)
|
|
485
650
|
return null;
|
|
486
651
|
const {
|
|
487
|
-
value: { width: x, height:
|
|
488
|
-
} =
|
|
489
|
-
return x &&
|
|
652
|
+
value: { width: x, height: w }
|
|
653
|
+
} = i.maxDimensions;
|
|
654
|
+
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
655
|
});
|
|
491
|
-
return { __sfc: !0, props:
|
|
656
|
+
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
657
|
}
|
|
493
658
|
});
|
|
494
|
-
var
|
|
495
|
-
var
|
|
496
|
-
return
|
|
497
|
-
},
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
659
|
+
var Ca = function() {
|
|
660
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
661
|
+
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);
|
|
662
|
+
}, za = [], ka = /* @__PURE__ */ b(
|
|
663
|
+
wa,
|
|
664
|
+
Ca,
|
|
665
|
+
za,
|
|
501
666
|
!1,
|
|
502
667
|
null,
|
|
503
668
|
"b0498c01"
|
|
504
669
|
);
|
|
505
|
-
const
|
|
670
|
+
const Fa = ka.exports, Ii = {
|
|
506
671
|
"application/prs.cww": ["cww"],
|
|
507
672
|
"application/prs.xsf+xml": ["xsf"],
|
|
508
673
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1201,8 +1366,8 @@ const Re = ze.exports, Ia = {
|
|
|
1201
1366
|
"video/x-smv": ["smv"],
|
|
1202
1367
|
"x-conference/x-cooltalk": ["ice"]
|
|
1203
1368
|
};
|
|
1204
|
-
Object.freeze(
|
|
1205
|
-
const
|
|
1369
|
+
Object.freeze(Ii);
|
|
1370
|
+
const Si = {
|
|
1206
1371
|
"application/andrew-inset": ["ez"],
|
|
1207
1372
|
"application/appinstaller": ["appinstaller"],
|
|
1208
1373
|
"application/applixware": ["aw"],
|
|
@@ -1554,131 +1719,248 @@ const $a = {
|
|
|
1554
1719
|
"video/quicktime": ["qt", "mov"],
|
|
1555
1720
|
"video/webm": ["webm"]
|
|
1556
1721
|
};
|
|
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(
|
|
1722
|
+
Object.freeze(Si);
|
|
1723
|
+
var C = function(t, i, a, e) {
|
|
1724
|
+
if (a === "a" && !e) throw new TypeError("Private accessor was defined without a getter");
|
|
1725
|
+
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");
|
|
1726
|
+
return a === "m" ? e : a === "a" ? e.call(t) : e ? e.value : i.get(t);
|
|
1727
|
+
}, D, H, I;
|
|
1728
|
+
class Ea {
|
|
1729
|
+
constructor(...i) {
|
|
1730
|
+
D.set(this, /* @__PURE__ */ new Map()), H.set(this, /* @__PURE__ */ new Map()), I.set(this, /* @__PURE__ */ new Map());
|
|
1731
|
+
for (const a of i)
|
|
1732
|
+
this.define(a);
|
|
1568
1733
|
}
|
|
1569
|
-
define(
|
|
1570
|
-
for (let [
|
|
1571
|
-
|
|
1572
|
-
const r = C(this, I, "f").get(
|
|
1573
|
-
let
|
|
1574
|
-
for (let
|
|
1575
|
-
const c =
|
|
1576
|
-
if (
|
|
1734
|
+
define(i, a = !1) {
|
|
1735
|
+
for (let [e, o] of Object.entries(i)) {
|
|
1736
|
+
e = e.toLowerCase(), o = o.map((p) => p.toLowerCase()), C(this, I, "f").has(e) || C(this, I, "f").set(e, /* @__PURE__ */ new Set());
|
|
1737
|
+
const r = C(this, I, "f").get(e);
|
|
1738
|
+
let l = !0;
|
|
1739
|
+
for (let p of o) {
|
|
1740
|
+
const c = p.startsWith("*");
|
|
1741
|
+
if (p = c ? p.slice(1) : p, r == null || r.add(p), l && C(this, H, "f").set(e, p), l = !1, c)
|
|
1577
1742
|
continue;
|
|
1578
|
-
const g = C(this,
|
|
1579
|
-
if (g && g !=
|
|
1580
|
-
throw new Error(`"${
|
|
1581
|
-
C(this,
|
|
1743
|
+
const g = C(this, D, "f").get(p);
|
|
1744
|
+
if (g && g != e && !a)
|
|
1745
|
+
throw new Error(`"${e} -> ${p}" conflicts with "${g} -> ${p}". Pass \`force=true\` to override this definition.`);
|
|
1746
|
+
C(this, D, "f").set(p, e);
|
|
1582
1747
|
}
|
|
1583
1748
|
}
|
|
1584
1749
|
return this;
|
|
1585
1750
|
}
|
|
1586
|
-
getType(
|
|
1587
|
-
if (typeof
|
|
1751
|
+
getType(i) {
|
|
1752
|
+
if (typeof i != "string")
|
|
1588
1753
|
return null;
|
|
1589
|
-
const
|
|
1590
|
-
return !(
|
|
1754
|
+
const a = i.replace(/^.*[/\\]/, "").toLowerCase(), e = a.replace(/^.*\./, "").toLowerCase(), o = a.length < i.length;
|
|
1755
|
+
return !(e.length < a.length - 1) && o ? null : C(this, D, "f").get(e) ?? null;
|
|
1591
1756
|
}
|
|
1592
|
-
getExtension(
|
|
1593
|
-
var
|
|
1594
|
-
return typeof
|
|
1757
|
+
getExtension(i) {
|
|
1758
|
+
var a;
|
|
1759
|
+
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
1760
|
}
|
|
1596
|
-
getAllExtensions(
|
|
1597
|
-
return typeof
|
|
1761
|
+
getAllExtensions(i) {
|
|
1762
|
+
return typeof i != "string" ? null : C(this, I, "f").get(i.toLowerCase()) ?? null;
|
|
1598
1763
|
}
|
|
1599
1764
|
_freeze() {
|
|
1600
1765
|
this.define = () => {
|
|
1601
1766
|
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
1767
|
}, Object.freeze(this);
|
|
1603
|
-
for (const
|
|
1604
|
-
Object.freeze(
|
|
1768
|
+
for (const i of C(this, I, "f").values())
|
|
1769
|
+
Object.freeze(i);
|
|
1605
1770
|
return this;
|
|
1606
1771
|
}
|
|
1607
1772
|
_getTestState() {
|
|
1608
1773
|
return {
|
|
1609
|
-
types: C(this,
|
|
1610
|
-
extensions: C(this,
|
|
1774
|
+
types: C(this, D, "f"),
|
|
1775
|
+
extensions: C(this, H, "f")
|
|
1611
1776
|
};
|
|
1612
1777
|
}
|
|
1613
1778
|
}
|
|
1614
|
-
|
|
1615
|
-
const
|
|
1616
|
-
"
|
|
1617
|
-
|
|
1618
|
-
|
|
1779
|
+
D = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap();
|
|
1780
|
+
const Li = new Ea(Si, Ii)._freeze(), Ra = {
|
|
1781
|
+
"de-DE": {
|
|
1782
|
+
audioFiles: "Audiodateien",
|
|
1783
|
+
browseFiles: "Dateien durchsuchen",
|
|
1784
|
+
dropArea: "Ablagebereich",
|
|
1785
|
+
dropFiles: "Datei zum Hochladen ablegen | Dateien zum Hochladen ablegen",
|
|
1786
|
+
fileExceedsSizeLimit: "Datei überschreitet die Größenbegrenzung",
|
|
1787
|
+
imageFiles: "Bilddateien",
|
|
1788
|
+
noFilesUploaded: "Keine Dateien hochgeladen",
|
|
1789
|
+
tooManyFiles: "Zu viele Dateien",
|
|
1790
|
+
videoFiles: "Videodateien",
|
|
1791
|
+
youHaveExceededTheMaximum: "Sie haben die maximale Anzahl von {count} Dateien überschritten. Bitte entfernen Sie einige Dateien, bevor Sie fortfahren."
|
|
1792
|
+
},
|
|
1793
|
+
"en-GB": {
|
|
1794
|
+
audioFiles: "audio files",
|
|
1795
|
+
browseFiles: "Browse files",
|
|
1796
|
+
dropArea: "Drop area",
|
|
1797
|
+
dropFiles: "Drop file to upload | Drop files to upload",
|
|
1798
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
1799
|
+
imageFiles: "image files",
|
|
1800
|
+
noFilesUploaded: "No files uploaded",
|
|
1801
|
+
tooManyFiles: "Too many files",
|
|
1802
|
+
videoFiles: "video files",
|
|
1803
|
+
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1804
|
+
},
|
|
1805
|
+
"en-US": {
|
|
1806
|
+
audioFiles: "audio files",
|
|
1807
|
+
browseFiles: "Browse files",
|
|
1808
|
+
dropArea: "Drop area",
|
|
1809
|
+
dropFiles: "Drop file to upload | Drop files to upload",
|
|
1810
|
+
fileExceedsSizeLimit: "File exceeds size limit",
|
|
1811
|
+
imageFiles: "image files",
|
|
1812
|
+
noFilesUploaded: "No files uploaded",
|
|
1813
|
+
tooManyFiles: "Too many files",
|
|
1814
|
+
videoFiles: "video files",
|
|
1815
|
+
youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
|
|
1816
|
+
},
|
|
1817
|
+
"es-ES": {
|
|
1818
|
+
audioFiles: "archivos de audio",
|
|
1819
|
+
browseFiles: "Explorar archivos",
|
|
1820
|
+
dropArea: "Zona de soltar",
|
|
1821
|
+
dropFiles: "Arrastrar archivo para cargar | Arrastrar archivos para cargar",
|
|
1822
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
1823
|
+
imageFiles: "archivos de imagen",
|
|
1824
|
+
noFilesUploaded: "No se han cargado archivos",
|
|
1825
|
+
tooManyFiles: "Demasiados archivos",
|
|
1826
|
+
videoFiles: "archivos de vídeo",
|
|
1827
|
+
youHaveExceededTheMaximum: "Has superado el límite máximo de {count} archivos. Elimina algunos antes de continuar."
|
|
1828
|
+
},
|
|
1829
|
+
"es-MX": {
|
|
1830
|
+
audioFiles: "archivos de audio",
|
|
1831
|
+
browseFiles: "Explorar archivos",
|
|
1832
|
+
dropArea: "Área de soltar",
|
|
1833
|
+
dropFiles: "Soltar archivo para cargar | Arrastrar archivos para cargar",
|
|
1834
|
+
fileExceedsSizeLimit: "El archivo supera el límite de tamaño",
|
|
1835
|
+
imageFiles: "archivos de imagen",
|
|
1836
|
+
noFilesUploaded: "No hay archivos cargados",
|
|
1837
|
+
tooManyFiles: "Demasiados archivos",
|
|
1838
|
+
videoFiles: "archivos de video",
|
|
1839
|
+
youHaveExceededTheMaximum: "Superaste el límite máximo de {count} archivos. Elimina algunos archivos antes de continuar."
|
|
1840
|
+
},
|
|
1841
|
+
"fr-FR": {
|
|
1842
|
+
audioFiles: "fichiers audio",
|
|
1843
|
+
browseFiles: "Parcourir les fichiers",
|
|
1844
|
+
dropArea: "Zone de dépôt",
|
|
1845
|
+
dropFiles: "Déposer un fichier à télécharger | Déposer des fichiers à télécharger",
|
|
1846
|
+
fileExceedsSizeLimit: "Le fichier dépasse la limite de taille",
|
|
1847
|
+
imageFiles: "fichiers image",
|
|
1848
|
+
noFilesUploaded: "Aucun fichier téléchargé",
|
|
1849
|
+
tooManyFiles: "Trop de fichiers",
|
|
1850
|
+
videoFiles: "fichiers vidéo",
|
|
1851
|
+
youHaveExceededTheMaximum: "Vous avez dépassé la limite maximale de {count} fichiers. Veuillez supprimer certains fichiers avant de continuer."
|
|
1852
|
+
},
|
|
1853
|
+
"it-IT": {
|
|
1854
|
+
audioFiles: "file audio",
|
|
1855
|
+
browseFiles: "Sfoglia i file",
|
|
1856
|
+
dropArea: "Area di scarico",
|
|
1857
|
+
dropFiles: "Trascina il file per caricarlo | Trascina i file per caricarli",
|
|
1858
|
+
fileExceedsSizeLimit: "Il file supera il limite di dimensione",
|
|
1859
|
+
imageFiles: "file di immagini",
|
|
1860
|
+
noFilesUploaded: "Nessun file caricato",
|
|
1861
|
+
tooManyFiles: "Troppi file",
|
|
1862
|
+
videoFiles: "file video",
|
|
1863
|
+
youHaveExceededTheMaximum: "Hai superato il limite massimo di {count} file. Rimuovi alcuni file prima di procedere."
|
|
1864
|
+
},
|
|
1865
|
+
"ja-JP": {
|
|
1866
|
+
audioFiles: "オーディオファイル",
|
|
1867
|
+
browseFiles: "ファイルを参照",
|
|
1868
|
+
dropArea: "ドロップエリア",
|
|
1869
|
+
dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード",
|
|
1870
|
+
fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
|
|
1871
|
+
imageFiles: "画像ファイル",
|
|
1872
|
+
noFilesUploaded: "ファイルはアップロードされていません",
|
|
1873
|
+
tooManyFiles: "ファイルが多すぎます",
|
|
1874
|
+
videoFiles: "ビデオファイル",
|
|
1875
|
+
youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。"
|
|
1876
|
+
},
|
|
1877
|
+
"pt-BR": {
|
|
1878
|
+
audioFiles: "arquivos de áudio",
|
|
1879
|
+
browseFiles: "Procurar arquivos",
|
|
1880
|
+
dropArea: "Área de soltar",
|
|
1881
|
+
dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload",
|
|
1882
|
+
fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
|
|
1883
|
+
imageFiles: "arquivos de imagem",
|
|
1884
|
+
noFilesUploaded: "Nenhum arquivo carregado",
|
|
1885
|
+
tooManyFiles: "Arquivos demais",
|
|
1886
|
+
videoFiles: "arquivos de vídeo",
|
|
1887
|
+
youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir."
|
|
1888
|
+
},
|
|
1889
|
+
"zh-CN": {
|
|
1890
|
+
audioFiles: "音频文件",
|
|
1891
|
+
browseFiles: "浏览文件",
|
|
1892
|
+
dropArea: "拖放区",
|
|
1893
|
+
dropFiles: "拖放文件以上传 | 拖放文件以上传",
|
|
1894
|
+
fileExceedsSizeLimit: "文件大小超过限制",
|
|
1895
|
+
imageFiles: "图像文件",
|
|
1896
|
+
noFilesUploaded: "未上传文件",
|
|
1897
|
+
tooManyFiles: "文件过多",
|
|
1898
|
+
videoFiles: "视频文件",
|
|
1899
|
+
youHaveExceededTheMaximum: "已超出 {count} 个文件的上限数量。请在继续之前移除一些文件。"
|
|
1900
|
+
}
|
|
1619
1901
|
};
|
|
1620
|
-
function
|
|
1621
|
-
return t.includes("/") ? `.${
|
|
1902
|
+
function Ta(t) {
|
|
1903
|
+
return t.includes("/") ? `.${Li.getExtension(t).toUpperCase()}` : t.toUpperCase();
|
|
1622
1904
|
}
|
|
1623
|
-
function
|
|
1624
|
-
const { locale:
|
|
1905
|
+
function Ia(t) {
|
|
1906
|
+
const { locale: i, t: a } = Y();
|
|
1625
1907
|
return { supportedFileTypeList: d(() => {
|
|
1626
|
-
const o = new Intl.ListFormat(
|
|
1908
|
+
const o = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
1627
1909
|
return t != null && t.value ? o.format(
|
|
1628
1910
|
t.value.split(",").map((r) => {
|
|
1629
1911
|
switch (r.trim()) {
|
|
1630
1912
|
case "audio/*":
|
|
1631
|
-
return
|
|
1913
|
+
return a("audioFiles");
|
|
1632
1914
|
case "image/*":
|
|
1633
|
-
return
|
|
1915
|
+
return a("imageFiles");
|
|
1634
1916
|
case "video/*":
|
|
1635
|
-
return
|
|
1917
|
+
return a("videoFiles");
|
|
1636
1918
|
default:
|
|
1637
|
-
return
|
|
1919
|
+
return Ta(r);
|
|
1638
1920
|
}
|
|
1639
1921
|
})
|
|
1640
1922
|
) : null;
|
|
1641
1923
|
}) };
|
|
1642
1924
|
}
|
|
1643
|
-
function
|
|
1644
|
-
return
|
|
1925
|
+
function Sa(t) {
|
|
1926
|
+
return Li.getType(t) ?? t;
|
|
1645
1927
|
}
|
|
1646
|
-
function
|
|
1647
|
-
const
|
|
1928
|
+
function La({ maxCount: t, accept: i }) {
|
|
1929
|
+
const a = oi({
|
|
1648
1930
|
invalidTypes: !1,
|
|
1649
1931
|
partiallyInvalidTypes: !1,
|
|
1650
1932
|
maxCountOverflow: !1
|
|
1651
|
-
}),
|
|
1933
|
+
}), e = oi({
|
|
1652
1934
|
dragging: !1,
|
|
1653
1935
|
error: !1
|
|
1654
|
-
}), o = d(() =>
|
|
1936
|
+
}), o = d(() => i.value ? i.value.split(",").map((c) => Sa(c.trim().toLocaleLowerCase())) : void 0);
|
|
1655
1937
|
function r() {
|
|
1656
|
-
|
|
1938
|
+
e.dragging = !1, e.error = !1, a.invalidTypes = !1, a.partiallyInvalidTypes = !1, a.maxCountOverflow = !1;
|
|
1657
1939
|
}
|
|
1658
|
-
function p
|
|
1659
|
-
if (
|
|
1940
|
+
function l(p, c) {
|
|
1941
|
+
if (e.dragging = !0, (!c.dataTransfer.types.includes("Files") || p > t.value) && (a.maxCountOverflow = !0, e.error = !0), !o.value)
|
|
1660
1942
|
return;
|
|
1661
1943
|
let g = 0;
|
|
1662
|
-
for (const
|
|
1663
|
-
o.value.includes(
|
|
1944
|
+
for (const F of c.dataTransfer.items)
|
|
1945
|
+
o.value.includes(F.type) && g++;
|
|
1664
1946
|
if (g === 0) {
|
|
1665
|
-
|
|
1947
|
+
e.error = !0, a.invalidTypes = !0;
|
|
1666
1948
|
return;
|
|
1667
1949
|
}
|
|
1668
|
-
!
|
|
1950
|
+
!a.invalidTypes && g !== c.dataTransfer.items.length && (e.error = !0, a.partiallyInvalidTypes = !0);
|
|
1669
1951
|
}
|
|
1670
1952
|
return {
|
|
1671
|
-
dragState:
|
|
1672
|
-
dragErrors:
|
|
1953
|
+
dragState: e,
|
|
1954
|
+
dragErrors: a,
|
|
1673
1955
|
resetDragState: r,
|
|
1674
|
-
onDragEnterValidations:
|
|
1956
|
+
onDragEnterValidations: l
|
|
1675
1957
|
};
|
|
1676
1958
|
}
|
|
1677
|
-
const
|
|
1959
|
+
const ja = {
|
|
1678
1960
|
model: { prop: "modelValue" },
|
|
1679
|
-
i18n: { messages:
|
|
1680
|
-
},
|
|
1681
|
-
...
|
|
1961
|
+
i18n: { messages: Ra }
|
|
1962
|
+
}, Da = /* @__PURE__ */ G({
|
|
1963
|
+
...ja,
|
|
1682
1964
|
__name: "file-uploader",
|
|
1683
1965
|
props: {
|
|
1684
1966
|
description: { default: null },
|
|
@@ -1698,214 +1980,214 @@ const Se = {
|
|
|
1698
1980
|
modelValue: { default: null }
|
|
1699
1981
|
},
|
|
1700
1982
|
emits: ["change", "input", "update:model-value", "error:upload"],
|
|
1701
|
-
setup(t, { emit:
|
|
1702
|
-
const
|
|
1703
|
-
function
|
|
1983
|
+
setup(t, { emit: i }) {
|
|
1984
|
+
const a = t, { t: e, tc: o, n: r } = Y(), { emitValue: l } = Ni(i);
|
|
1985
|
+
function p(n) {
|
|
1704
1986
|
return !!n && typeof n.length == "number" && typeof n.item == "function";
|
|
1705
1987
|
}
|
|
1706
|
-
|
|
1707
|
-
|
|
1988
|
+
Fi(() => {
|
|
1989
|
+
p(a.modelValue) || Zi(
|
|
1708
1990
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
1709
1991
|
"Use FileList instead.",
|
|
1710
1992
|
"2.0.0"
|
|
1711
1993
|
);
|
|
1712
1994
|
});
|
|
1713
|
-
const { supportedFileTypeList: c } =
|
|
1714
|
-
const n =
|
|
1715
|
-
return `${n} ${
|
|
1716
|
-
}), { dragState: M, dragErrors:
|
|
1717
|
-
accept:
|
|
1718
|
-
maxCount:
|
|
1995
|
+
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(() => {
|
|
1996
|
+
const n = a.label ? `${k} ${x}` : "", s = a.condensed ? "" : `${S} ${x}`, v = a.description ? `${F} ${x}` : "", f = `${w} ${x}`;
|
|
1997
|
+
return `${n} ${s} ${v} ${f} ${g}`;
|
|
1998
|
+
}), { dragState: M, dragErrors: R, resetDragState: T, onDragEnterValidations: $ } = La({
|
|
1999
|
+
accept: ti(a, "accept"),
|
|
2000
|
+
maxCount: ti(a, "maxCount")
|
|
1719
2001
|
}), K = d(() => {
|
|
1720
|
-
var n,
|
|
2002
|
+
var n, s, v;
|
|
1721
2003
|
return {
|
|
1722
|
-
condensed:
|
|
1723
|
-
disabled:
|
|
1724
|
-
maxCount:
|
|
1725
|
-
value:
|
|
1726
|
-
error:
|
|
2004
|
+
condensed: a.condensed,
|
|
2005
|
+
disabled: a.disabled,
|
|
2006
|
+
maxCount: B.value ? {
|
|
2007
|
+
value: a.maxCount,
|
|
2008
|
+
error: R.maxCountOverflow || ri.value
|
|
1727
2009
|
} : null,
|
|
1728
|
-
maxDimensions:
|
|
1729
|
-
value:
|
|
2010
|
+
maxDimensions: a.maxDimensions ? {
|
|
2011
|
+
value: a.maxDimensions,
|
|
1730
2012
|
error: (n = m.value) == null ? void 0 : n.some((f) => f.errors.includes(h.ERROR_DIMENSIONS))
|
|
1731
2013
|
} : null,
|
|
1732
|
-
maxSize:
|
|
1733
|
-
value:
|
|
1734
|
-
error: (
|
|
2014
|
+
maxSize: a.maxSize ? {
|
|
2015
|
+
value: a.maxSize,
|
|
2016
|
+
error: (s = m.value) == null ? void 0 : s.some((f) => f.errors.includes(h.ERROR_SIZE))
|
|
1735
2017
|
} : null,
|
|
1736
2018
|
supportedFileTypes: c.value ? {
|
|
1737
2019
|
value: c.value,
|
|
1738
|
-
error:
|
|
2020
|
+
error: R.invalidTypes || R.partiallyInvalidTypes || ((v = m.value) == null ? void 0 : v.some((f) => f.errors.includes(h.ERROR_TYPE)))
|
|
1739
2021
|
} : null
|
|
1740
2022
|
};
|
|
1741
|
-
}),
|
|
1742
|
-
[`b-file-uploader--${W.DISABLED}`]:
|
|
2023
|
+
}), j = y(), Q = d(() => ({
|
|
2024
|
+
[`b-file-uploader--${W.DISABLED}`]: a.disabled,
|
|
1743
2025
|
[`b-file-uploader--${W.DRAG_OVER}`]: M.dragging,
|
|
1744
|
-
[`b-file-uploader--${W.ERROR}`]:
|
|
1745
|
-
"b-file-uploader--condensed":
|
|
1746
|
-
})),
|
|
2026
|
+
[`b-file-uploader--${W.ERROR}`]: pi.value,
|
|
2027
|
+
"b-file-uploader--condensed": a.condensed
|
|
2028
|
+
})), B = d(() => a.maxCount > 1), O = d(() => {
|
|
1747
2029
|
var n;
|
|
1748
|
-
return
|
|
1749
|
-
}),
|
|
2030
|
+
return a.maxCount && ((n = m.value) == null ? void 0 : n.length) >= a.maxCount || a.readonly;
|
|
2031
|
+
}), U = d(() => {
|
|
1750
2032
|
var n;
|
|
1751
|
-
return (n = m.value) == null ? void 0 : n.some((
|
|
1752
|
-
}),
|
|
1753
|
-
E.value[n] =
|
|
2033
|
+
return (n = m.value) == null ? void 0 : n.some((s) => s.state === "loading");
|
|
2034
|
+
}), ii = (n) => (s) => {
|
|
2035
|
+
E.value[n] = s;
|
|
1754
2036
|
};
|
|
1755
|
-
function
|
|
2037
|
+
function ei(n) {
|
|
1756
2038
|
if (n) {
|
|
1757
|
-
|
|
1758
|
-
const
|
|
1759
|
-
|
|
2039
|
+
mi(n), ui(n);
|
|
2040
|
+
const s = vi(n);
|
|
2041
|
+
i("change", s), l(s);
|
|
1760
2042
|
} else
|
|
1761
|
-
|
|
2043
|
+
i("change", void 0), l(void 0);
|
|
1762
2044
|
}
|
|
1763
|
-
const
|
|
2045
|
+
const pi = d(() => !!a.errorMessage || M.error), ri = d(() => {
|
|
1764
2046
|
var n;
|
|
1765
|
-
return ((n = m.value) == null ? void 0 : n.length) >
|
|
1766
|
-
}),
|
|
2047
|
+
return ((n = m.value) == null ? void 0 : n.length) > a.maxCount;
|
|
2048
|
+
}), ci = y(!1), di = d(() => {
|
|
1767
2049
|
var n;
|
|
1768
|
-
return (n = m.value) == null ? void 0 : n.some((
|
|
2050
|
+
return (n = m.value) == null ? void 0 : n.some((s) => s.state === "error");
|
|
1769
2051
|
});
|
|
1770
|
-
|
|
1771
|
-
|
|
2052
|
+
ni(di, (n) => {
|
|
2053
|
+
U.value || i("error:upload", n);
|
|
1772
2054
|
});
|
|
1773
|
-
async function
|
|
2055
|
+
async function q() {
|
|
1774
2056
|
var n;
|
|
1775
|
-
if (await
|
|
2057
|
+
if (await Ui(), m.value.length === a.maxCount) {
|
|
1776
2058
|
(n = E.value[0]) == null || n.focus();
|
|
1777
2059
|
return;
|
|
1778
2060
|
}
|
|
1779
|
-
|
|
2061
|
+
V.value.focus();
|
|
1780
2062
|
}
|
|
1781
|
-
async function
|
|
1782
|
-
m.value = m.value.filter(({ id:
|
|
2063
|
+
async function ji(n) {
|
|
2064
|
+
m.value = m.value.filter(({ id: s }) => s !== n.id), await q(), ei(m.value);
|
|
1783
2065
|
}
|
|
1784
2066
|
function Z(n) {
|
|
1785
|
-
const
|
|
2067
|
+
const s = oi({
|
|
1786
2068
|
id: _("file"),
|
|
1787
2069
|
data: n,
|
|
1788
2070
|
errors: [],
|
|
1789
2071
|
progress: null,
|
|
1790
|
-
state:
|
|
1791
|
-
type:
|
|
2072
|
+
state: z.LOADING,
|
|
2073
|
+
type: ge(n)
|
|
1792
2074
|
});
|
|
1793
|
-
return
|
|
2075
|
+
return he(s, a.accept, a.maxDimensions), s;
|
|
1794
2076
|
}
|
|
1795
|
-
function
|
|
1796
|
-
var
|
|
1797
|
-
((
|
|
2077
|
+
function Di(n) {
|
|
2078
|
+
var s;
|
|
2079
|
+
((s = m.value) == null ? void 0 : s.length) === a.maxCount && n.preventDefault();
|
|
1798
2080
|
}
|
|
1799
|
-
async function
|
|
1800
|
-
if (
|
|
1801
|
-
|
|
2081
|
+
async function ai(n) {
|
|
2082
|
+
if (a.maxCount === 1 && n.length > a.maxCount) {
|
|
2083
|
+
N(), T();
|
|
1802
2084
|
return;
|
|
1803
2085
|
}
|
|
1804
|
-
|
|
2086
|
+
B.value ? m.value = [...m.value || [], ...Array.from(n).map((s) => Z(s))] : (m.value = [Z(n[0])], await q()), ei(m.value);
|
|
1805
2087
|
}
|
|
1806
|
-
function
|
|
2088
|
+
function Mi(n) {
|
|
1807
2089
|
var v, f;
|
|
1808
|
-
if (
|
|
2090
|
+
if (a.disabled)
|
|
1809
2091
|
return;
|
|
1810
|
-
|
|
1811
|
-
const
|
|
1812
|
-
|
|
2092
|
+
j.value = n.target;
|
|
2093
|
+
const s = (((v = n.dataTransfer.items) == null ? void 0 : v.length) ?? 0) + (((f = m.value) == null ? void 0 : f.length) ?? 0);
|
|
2094
|
+
$(s, n);
|
|
1813
2095
|
}
|
|
1814
|
-
function
|
|
1815
|
-
|
|
2096
|
+
function N() {
|
|
2097
|
+
j.value = null;
|
|
1816
2098
|
}
|
|
1817
|
-
function
|
|
1818
|
-
|
|
2099
|
+
function $i(n) {
|
|
2100
|
+
j.value === n.target && (N(), T());
|
|
1819
2101
|
}
|
|
1820
|
-
function
|
|
1821
|
-
n.preventDefault(),
|
|
2102
|
+
function Bi(n) {
|
|
2103
|
+
n.preventDefault(), a.disabled && (n.dataTransfer.dropEffect = "none");
|
|
1822
2104
|
}
|
|
1823
|
-
async function
|
|
1824
|
-
var
|
|
1825
|
-
|
|
2105
|
+
async function Hi(n) {
|
|
2106
|
+
var s;
|
|
2107
|
+
a.disabled || (!R.invalidTypes && ((s = n.dataTransfer.files) != null && s.length) && ai(n.dataTransfer.files), N(), T());
|
|
1826
2108
|
}
|
|
1827
|
-
async function
|
|
2109
|
+
async function Vi() {
|
|
1828
2110
|
var n;
|
|
1829
|
-
(n =
|
|
2111
|
+
(n = L.value.files) != null && n.length && ai(L.value.files), L.value.value = "", await q();
|
|
1830
2112
|
}
|
|
1831
|
-
|
|
1832
|
-
() =>
|
|
2113
|
+
ni(
|
|
2114
|
+
() => a.modelValue,
|
|
1833
2115
|
(n) => {
|
|
1834
|
-
if (n &&
|
|
2116
|
+
if (n && p(n)) {
|
|
1835
2117
|
const v = Array.from(n);
|
|
1836
2118
|
m.value = v.map((f) => Z(f));
|
|
1837
2119
|
} else !n && m.value && (m.value = null);
|
|
1838
2120
|
},
|
|
1839
2121
|
{ immediate: !0 }
|
|
1840
2122
|
);
|
|
1841
|
-
function
|
|
1842
|
-
const
|
|
1843
|
-
|
|
2123
|
+
function mi(n) {
|
|
2124
|
+
const s = a.maxCount && n.length <= a.maxCount;
|
|
2125
|
+
ci.value = !s;
|
|
1844
2126
|
}
|
|
1845
|
-
function
|
|
1846
|
-
|
|
1847
|
-
const v =
|
|
2127
|
+
function ui(n) {
|
|
2128
|
+
a.maxSize && n.forEach((s) => {
|
|
2129
|
+
const v = s;
|
|
1848
2130
|
let f;
|
|
1849
|
-
if (Array.isArray(
|
|
1850
|
-
const
|
|
1851
|
-
(
|
|
2131
|
+
if (Array.isArray(a.maxSize)) {
|
|
2132
|
+
const P = a.maxSize.find(
|
|
2133
|
+
(Ai) => Ti(v.data, Ai.fileType)
|
|
1852
2134
|
);
|
|
1853
|
-
f =
|
|
2135
|
+
f = P == null ? void 0 : P.maxSize;
|
|
1854
2136
|
} else
|
|
1855
|
-
f =
|
|
1856
|
-
f && v.data.size > f && (v.state =
|
|
2137
|
+
f = a.maxSize;
|
|
2138
|
+
f && v.data.size > f && (v.state = z.ERROR, v.errors.includes(h.ERROR_SIZE) || v.errors.push(h.ERROR_SIZE));
|
|
1857
2139
|
});
|
|
1858
2140
|
}
|
|
1859
|
-
function
|
|
1860
|
-
const
|
|
2141
|
+
function vi(n) {
|
|
2142
|
+
const s = n.filter(
|
|
1861
2143
|
({ errors: v }) => !v.includes(h.ERROR_LOAD) && !v.includes(h.ERROR_SIZE)
|
|
1862
2144
|
);
|
|
1863
|
-
if (
|
|
2145
|
+
if (s.length) {
|
|
1864
2146
|
const v = new DataTransfer();
|
|
1865
|
-
return
|
|
2147
|
+
return s.forEach(({ data: f, id: P }) => {
|
|
1866
2148
|
v.items.add(f);
|
|
1867
2149
|
}), v.files;
|
|
1868
2150
|
}
|
|
1869
2151
|
}
|
|
1870
|
-
return { __sfc: !0, t:
|
|
2152
|
+
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
2153
|
}
|
|
1872
2154
|
});
|
|
1873
|
-
var
|
|
2155
|
+
var Ma = function() {
|
|
1874
2156
|
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
|
|
2157
|
+
var i = this, a = i._self._c, e = i._self._setupProxy;
|
|
2158
|
+
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) {
|
|
2159
|
+
l.preventDefault();
|
|
2160
|
+
} } }), 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) {
|
|
2161
|
+
return e.inputRef.click();
|
|
2162
|
+
}, dragenter: function(l) {
|
|
2163
|
+
return l.stopPropagation(), l.preventDefault(), e.onDragEnter.apply(null, arguments);
|
|
2164
|
+
}, dragleave: function(l) {
|
|
2165
|
+
return l.stopPropagation(), l.preventDefault(), e.onDragLeave.apply(null, arguments);
|
|
2166
|
+
}, drop: function(l) {
|
|
2167
|
+
return l.stopPropagation(), l.preventDefault(), e.onDrop.apply(null, arguments);
|
|
2168
|
+
}, dragover: e.onDragOver, "!keydown": [function(l) {
|
|
2169
|
+
return !l.type.indexOf("key") && i._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : (l.preventDefault(), e.inputRef.click());
|
|
2170
|
+
}, function(l) {
|
|
2171
|
+
return !l.type.indexOf("key") && i._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : (l.preventDefault(), e.inputRef.click());
|
|
2172
|
+
}] } }, [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() {
|
|
2173
|
+
return [i._v(" " + i._s(e.t("youHaveExceededTheMaximum", { count: e.n(e.props.maxCount) })) + " ")];
|
|
2174
|
+
}, 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) {
|
|
2175
|
+
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) {
|
|
2176
|
+
return e.removeFile(l);
|
|
1895
2177
|
}, remove: function(c) {
|
|
1896
|
-
return
|
|
2178
|
+
return e.removeFile(l);
|
|
1897
2179
|
} } });
|
|
1898
|
-
}), 1), !((r =
|
|
1899
|
-
},
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
2180
|
+
}), 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);
|
|
2181
|
+
}, $a = [], Ba = /* @__PURE__ */ b(
|
|
2182
|
+
Da,
|
|
2183
|
+
Ma,
|
|
2184
|
+
$a,
|
|
1903
2185
|
!1,
|
|
1904
2186
|
null,
|
|
1905
2187
|
"0c1b46a7"
|
|
1906
2188
|
);
|
|
1907
|
-
const
|
|
2189
|
+
const nt = Ba.exports;
|
|
1908
2190
|
export {
|
|
1909
|
-
|
|
2191
|
+
nt as f
|
|
1910
2192
|
};
|
|
1911
|
-
//# sourceMappingURL=file-uploader.
|
|
2193
|
+
//# sourceMappingURL=file-uploader.DeWmLpfp.js.map
|