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