@adyen/bento-vue3 1.86.0 → 1.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +12337 -12402
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.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/anchor-scroller.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/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.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/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- 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-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.g7rM3wUc.js → action-bar.Ho_fXeXK.js} +4 -4
- package/dist/chunks/{action-bar.g7rM3wUc.js.map → action-bar.Ho_fXeXK.js.map} +1 -1
- package/dist/chunks/{ai-tag.UlRkq54l.js → ai-tag.DVCW-_vD.js} +2 -2
- package/dist/chunks/{ai-tag.UlRkq54l.js.map → ai-tag.DVCW-_vD.js.map} +1 -1
- package/dist/chunks/anchor-scroller.BctgW0se.js +214 -0
- package/dist/chunks/anchor-scroller.BctgW0se.js.map +1 -0
- package/dist/chunks/{base-modal.D5HrjwL1.js → base-modal.gZAtk-xP.js} +17 -17
- package/dist/chunks/{base-modal.D5HrjwL1.js.map → base-modal.gZAtk-xP.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js → button-actions-with-menu.Tba1ME79.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js.map → button-actions-with-menu.Tba1ME79.js.map} +1 -1
- package/dist/chunks/{button-actions.BH-J7dux.js → button-actions.BYBpjNqy.js} +182 -180
- package/dist/chunks/button-actions.BYBpjNqy.js.map +1 -0
- package/dist/chunks/{calendar.DzeJoNc2.js → calendar.vM3abC8y.js} +401 -410
- package/dist/chunks/calendar.vM3abC8y.js.map +1 -0
- package/dist/chunks/{card.DcXXdxWL.js → card.Cw63i7Ul.js} +2 -2
- package/dist/chunks/{card.DcXXdxWL.js.map → card.Cw63i7Ul.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Bh_aqKoA.js → checkbox-group.ODQy-ICn.js} +42 -41
- package/dist/chunks/checkbox-group.ODQy-ICn.js.map +1 -0
- package/dist/chunks/{checkbox.7kpOXm-b.js → checkbox.C3Ewfygy.js} +79 -81
- package/dist/chunks/checkbox.C3Ewfygy.js.map +1 -0
- package/dist/chunks/{code-snippet.UIqVTv4U.js → code-snippet.Dl1MEedz.js} +4 -4
- package/dist/chunks/{code-snippet.UIqVTv4U.js.map → code-snippet.Dl1MEedz.js.map} +1 -1
- package/dist/chunks/constructNow.CIc7d13I.js +8 -0
- package/dist/chunks/{constructNow.B8T1ljs6.js.map → constructNow.CIc7d13I.js.map} +1 -1
- package/dist/chunks/{controls-group.Dip3WAKV.js → controls-group.Bu5lNTyH.js} +22 -28
- package/dist/chunks/controls-group.Bu5lNTyH.js.map +1 -0
- package/dist/chunks/{copy.ByyQlckP.js → copy.C_BCNHYQ.js} +3 -3
- package/dist/chunks/{copy.ByyQlckP.js.map → copy.C_BCNHYQ.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CIHtXoeW.js → dashboard-section.CgoLquLP.js} +3 -3
- package/dist/chunks/{dashboard-section.CIHtXoeW.js.map → dashboard-section.CgoLquLP.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CLwPU-C2.js → dashed-underline.wbRHATeE.js} +3 -3
- package/dist/chunks/{dashed-underline.CLwPU-C2.js.map → dashed-underline.wbRHATeE.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BTpSfkQt.js → data-grid-template.D40V1cmi.js} +3 -3
- package/dist/chunks/{data-grid-template.BTpSfkQt.js.map → data-grid-template.D40V1cmi.js.map} +1 -1
- package/dist/chunks/{data-grid.CXDdiHz8.js → data-grid.KudN-TcY.js} +870 -867
- package/dist/chunks/{data-grid.CXDdiHz8.js.map → data-grid.KudN-TcY.js.map} +1 -1
- package/dist/chunks/date-picker.D5B_SECc.js +251 -0
- package/dist/chunks/date-picker.D5B_SECc.js.map +1 -0
- package/dist/chunks/date-range-picker.CDDw_xl_.js +1104 -0
- package/dist/chunks/date-range-picker.CDDw_xl_.js.map +1 -0
- package/dist/chunks/{de.DvtL0g75.js → de.BJvo6njq.js} +2 -2
- package/dist/chunks/{de.DvtL0g75.js.map → de.BJvo6njq.js.map} +1 -1
- package/dist/chunks/{dialog-page.B3ptLXXP.js → dialog-page.C1KUI51V.js} +2 -2
- package/dist/chunks/{dialog-page.B3ptLXXP.js.map → dialog-page.C1KUI51V.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js → differenceInMonths.CIYECBxK.js} +7 -7
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js.map → differenceInMonths.CIYECBxK.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.B-_dTUVX.js → dropdown-default-textbox.CskseEho.js} +62 -60
- package/dist/chunks/dropdown-default-textbox.CskseEho.js.map +1 -0
- package/dist/chunks/{dropdown-tag.DDNOZhEG.js → dropdown-tag.CwSzUwa7.js} +3 -3
- package/dist/chunks/{dropdown-tag.DDNOZhEG.js.map → dropdown-tag.CwSzUwa7.js.map} +1 -1
- package/dist/chunks/{dropdown.CU6nfq3V.js → dropdown.Bdw2B-Cw.js} +9 -9
- package/dist/chunks/{dropdown.CU6nfq3V.js.map → dropdown.Bdw2B-Cw.js.map} +1 -1
- package/dist/chunks/{en-GB.DCGuCmAv.js → en-GB.C3-QUpva.js} +2 -2
- package/dist/chunks/{en-GB.DCGuCmAv.js.map → en-GB.C3-QUpva.js.map} +1 -1
- package/dist/chunks/{en-US.BZii9jNW.js → en-US.YeSsZuOc.js} +150 -100
- package/dist/chunks/en-US.YeSsZuOc.js.map +1 -0
- package/dist/chunks/error-message.oGiefI2-.js +155 -0
- package/dist/chunks/error-message.oGiefI2-.js.map +1 -0
- package/dist/chunks/{es.bz0mzkMq.js → es.DyUjjSL8.js} +2 -2
- package/dist/chunks/{es.bz0mzkMq.js.map → es.DyUjjSL8.js.map} +1 -1
- package/dist/chunks/{file-uploader.Q2ufNRTY.js → file-uploader.BnmNI1O7.js} +573 -548
- package/dist/chunks/file-uploader.BnmNI1O7.js.map +1 -0
- package/dist/chunks/{filter-bar.BVj9YVv-.js → filter-bar.xwfVuZw4.js} +1973 -2062
- package/dist/chunks/filter-bar.xwfVuZw4.js.map +1 -0
- package/dist/chunks/{focus-trap.CBvh2H_m.js → focus-trap.BxCwzLqN.js} +2 -2
- package/dist/chunks/{focus-trap.CBvh2H_m.js.map → focus-trap.BxCwzLqN.js.map} +1 -1
- package/dist/chunks/{footer-actions.DLzMOB7j.js → footer-actions.Ck6UztD8.js} +2 -2
- package/dist/chunks/{footer-actions.DLzMOB7j.js.map → footer-actions.Ck6UztD8.js.map} +1 -1
- package/dist/chunks/form-layout-title.CQfeGyVw.js +232 -0
- package/dist/chunks/{form-layout-title.DYmTc6M7.js.map → form-layout-title.CQfeGyVw.js.map} +1 -1
- package/dist/chunks/{match.CMBZxEs9.js → fr.JD_4GwS8.js} +98 -61
- package/dist/chunks/fr.JD_4GwS8.js.map +1 -0
- package/dist/chunks/{header-meta.Bw8ZGwJW.js → header-meta.lGt3HsyH.js} +108 -114
- package/dist/chunks/header-meta.lGt3HsyH.js.map +1 -0
- package/dist/chunks/{header-with-views.CJDoE4hw.js → header-with-views.BT6lbAby.js} +9 -9
- package/dist/chunks/{header-with-views.CJDoE4hw.js.map → header-with-views.BT6lbAby.js.map} +1 -1
- package/dist/chunks/{header.BeH8KH_l.js → header.oXqwf2xN.js} +3 -3
- package/dist/chunks/{header.BeH8KH_l.js.map → header.oXqwf2xN.js.map} +1 -1
- package/dist/chunks/{index.CbxHJr39.js → index.Dppy4qHk.js} +204 -197
- package/dist/chunks/{index.CbxHJr39.js.map → index.Dppy4qHk.js.map} +1 -1
- package/dist/chunks/{info-icon.BLtyJvY4.js → info-icon.DyPOv7Pi.js} +3 -3
- package/dist/chunks/{info-icon.BLtyJvY4.js.map → info-icon.DyPOv7Pi.js.map} +1 -1
- package/dist/chunks/{input-field-password.KeKQPIZv.js → input-field-password.CKhqGBVB.js} +6 -6
- package/dist/chunks/{input-field-password.KeKQPIZv.js.map → input-field-password.CKhqGBVB.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.eaU9p15A.js → input-field-phone-number.Cailj_71.js} +49 -49
- package/dist/chunks/{input-field-phone-number.eaU9p15A.js.map → input-field-phone-number.Cailj_71.js.map} +1 -1
- package/dist/chunks/{input-field.CNdqlGw6.js → input-field.DqXVoKpy.js} +15 -14
- package/dist/chunks/input-field.DqXVoKpy.js.map +1 -0
- package/dist/chunks/{inspector.Bnf0g7QE.js → inspector.BjLhY3bE.js} +3 -3
- package/dist/chunks/{inspector.Bnf0g7QE.js.map → inspector.BjLhY3bE.js.map} +1 -1
- package/dist/chunks/isSameWeek.CzBCmu7d.js +14 -0
- package/dist/chunks/{isSameWeek.DjeUtLwI.js.map → isSameWeek.CzBCmu7d.js.map} +1 -1
- package/dist/chunks/{it.DIafuXtH.js → it.BlUnV-yA.js} +3 -3
- package/dist/chunks/{it.DIafuXtH.js.map → it.BlUnV-yA.js.map} +1 -1
- package/dist/chunks/{ja.Cm9tJMi2.js → ja.nUwDmVf2.js} +8 -8
- package/dist/chunks/{ja.Cm9tJMi2.js.map → ja.nUwDmVf2.js.map} +1 -1
- package/dist/chunks/{layout-row.Bz-mRqAq.js → layout-row.Da8nkm9z.js} +2 -2
- package/dist/chunks/{layout-row.Bz-mRqAq.js.map → layout-row.Da8nkm9z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.C3ihNg6_.js → listbox-option-tag.CoBUYwFG.js} +2 -2
- package/dist/chunks/{listbox-option-tag.C3ihNg6_.js.map → listbox-option-tag.CoBUYwFG.js.map} +1 -1
- package/dist/chunks/modal-fullscreen.9ZDR_S29.js +301 -0
- package/dist/chunks/modal-fullscreen.9ZDR_S29.js.map +1 -0
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map} +1 -1
- package/dist/chunks/pagination.CqCd5JCe.js +488 -0
- package/dist/chunks/pagination.CqCd5JCe.js.map +1 -0
- package/dist/chunks/popover.types.DhALnOLQ.js +6 -0
- package/dist/chunks/{popover.types.C_Z2JeVK.js.map → popover.types.DhALnOLQ.js.map} +1 -1
- package/dist/chunks/{popper-container.BefZxTzP.js → popper-container.DAK7c9uS.js} +2 -2
- package/dist/chunks/{popper-container.BefZxTzP.js.map → popper-container.DAK7c9uS.js.map} +1 -1
- package/dist/chunks/{promo-banner.BLie64oS.js → promo-banner.aNwH6uQx.js} +2 -2
- package/dist/chunks/{promo-banner.BLie64oS.js.map → promo-banner.aNwH6uQx.js.map} +1 -1
- package/dist/chunks/{pt-BR.CiGdfP45.js → pt-BR.BCU2Hj36.js} +2 -2
- package/dist/chunks/{pt-BR.CiGdfP45.js.map → pt-BR.BCU2Hj36.js.map} +1 -1
- package/dist/chunks/{radio-group.C6nQRQDB.js → radio-group.v8mDVZ-o.js} +24 -23
- package/dist/chunks/{radio-group.C6nQRQDB.js.map → radio-group.v8mDVZ-o.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.C39NKgl0.js → rich-text-editor.DH1d5Zcp.js} +7 -6
- package/dist/chunks/{rich-text-editor.C39NKgl0.js.map → rich-text-editor.DH1d5Zcp.js.map} +1 -1
- package/dist/chunks/{search-bar.CbTrg2Sk.js → search-bar.DGpLNVng.js} +3 -3
- package/dist/chunks/{search-bar.CbTrg2Sk.js.map → search-bar.DGpLNVng.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DTOZQewf.js → secondary-nav.l_60nnXA.js} +3 -3
- package/dist/chunks/{secondary-nav.DTOZQewf.js.map → secondary-nav.l_60nnXA.js.map} +1 -1
- package/dist/chunks/{segmented-control.D9rHBysM.js → segmented-control.Aqquod8g.js} +2 -2
- package/dist/chunks/{segmented-control.D9rHBysM.js.map → segmented-control.Aqquod8g.js.map} +1 -1
- package/dist/chunks/{selection-card-group.KEsG0D5V.js → selection-card-group.KBl4fVSH.js} +107 -106
- package/dist/chunks/selection-card-group.KBl4fVSH.js.map +1 -0
- package/dist/chunks/{sidepanel.DJCagqzl.js → sidepanel.DaXPcTHm.js} +5 -5
- package/dist/chunks/{sidepanel.DJCagqzl.js.map → sidepanel.DaXPcTHm.js.map} +1 -1
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js → startOfWeek.CXhhX-R7.js} +2 -2
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js.map → startOfWeek.CXhhX-R7.js.map} +1 -1
- package/dist/chunks/{structured-list-item.f1tmHSEN.js → structured-list-item.DAIaUMCY.js} +4 -4
- package/dist/chunks/{structured-list-item.f1tmHSEN.js.map → structured-list-item.DAIaUMCY.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.COcV-sOB.js → summary-grid.types.BZcZS_dW.js} +5 -5
- package/dist/chunks/{summary-grid.types.COcV-sOB.js.map → summary-grid.types.BZcZS_dW.js.map} +1 -1
- package/dist/chunks/{tag.Dr7MKe9q.js → tag.CqWg6C3H.js} +2 -2
- package/dist/chunks/{tag.Dr7MKe9q.js.map → tag.CqWg6C3H.js.map} +1 -1
- package/dist/chunks/{textarea.CtgbUCjH.js → textarea.CvI2InIB.js} +18 -17
- package/dist/chunks/textarea.CvI2InIB.js.map +1 -0
- package/dist/chunks/{timeline-item.D9nmCe6u.js → timeline-item.BooD99hL.js} +93 -95
- package/dist/chunks/timeline-item.BooD99hL.js.map +1 -0
- package/dist/chunks/{tooltip.DYpJZ-99.js → tooltip.Lwtlhv3u.js} +2 -2
- package/dist/chunks/{tooltip.DYpJZ-99.js.map → tooltip.Lwtlhv3u.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js → use-cached-selected-values.C4_X3vVj.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js.map → use-cached-selected-values.C4_X3vVj.js.map} +1 -1
- package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +1732 -0
- package/dist/chunks/use-date-input-formatter.dtbK-CEy.js.map +1 -0
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js → zh-CN.ChYkuQAR.js} +3 -3
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js.map → zh-CN.ChYkuQAR.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.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 +50 -50
- 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/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.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 +2 -2
- package/dist/popper-container.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/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -16
- package/dist/chunks/anchor-scroller.CKIQu3NK.js +0 -215
- package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +0 -1
- package/dist/chunks/button-actions.BH-J7dux.js.map +0 -1
- package/dist/chunks/calendar.DzeJoNc2.js.map +0 -1
- package/dist/chunks/checkbox-group.Bh_aqKoA.js.map +0 -1
- package/dist/chunks/checkbox.7kpOXm-b.js.map +0 -1
- package/dist/chunks/constructNow.B8T1ljs6.js +0 -8
- package/dist/chunks/controls-group.Dip3WAKV.js.map +0 -1
- package/dist/chunks/date-input.XSJuuCHe.js +0 -20
- package/dist/chunks/date-input.XSJuuCHe.js.map +0 -1
- package/dist/chunks/date-picker.CvTSZhMI.js +0 -250
- package/dist/chunks/date-picker.CvTSZhMI.js.map +0 -1
- package/dist/chunks/date-range-picker.BPCt7cwj.js +0 -1100
- package/dist/chunks/date-range-picker.BPCt7cwj.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +0 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +0 -1
- package/dist/chunks/error-message.BYA2_fPV.js +0 -158
- package/dist/chunks/error-message.BYA2_fPV.js.map +0 -1
- package/dist/chunks/file-uploader.Q2ufNRTY.js.map +0 -1
- package/dist/chunks/filter-bar.BVj9YVv-.js.map +0 -1
- package/dist/chunks/form-layout-title.DYmTc6M7.js +0 -214
- package/dist/chunks/fr-CA.B1aPU8fp.js +0 -48
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +0 -1
- package/dist/chunks/fr.Dj7wEToe.js +0 -47
- package/dist/chunks/fr.Dj7wEToe.js.map +0 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js +0 -51
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map +0 -1
- package/dist/chunks/header-meta.Bw8ZGwJW.js.map +0 -1
- package/dist/chunks/input-field.CNdqlGw6.js.map +0 -1
- package/dist/chunks/isSameWeek.DjeUtLwI.js +0 -14
- package/dist/chunks/ko.Ceaof6EP.js +0 -348
- package/dist/chunks/ko.Ceaof6EP.js.map +0 -1
- package/dist/chunks/match.CMBZxEs9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.B3AGUJgl.js +0 -289
- package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +0 -1
- package/dist/chunks/nl.B6vCf2B9.js +0 -327
- package/dist/chunks/nl.B6vCf2B9.js.map +0 -1
- package/dist/chunks/pagination.lu9nx8j8.js +0 -461
- package/dist/chunks/pagination.lu9nx8j8.js.map +0 -1
- package/dist/chunks/popover.types.C_Z2JeVK.js +0 -6
- package/dist/chunks/selection-card-group.KEsG0D5V.js.map +0 -1
- package/dist/chunks/sv.f8EfZjMZ.js +0 -377
- package/dist/chunks/sv.f8EfZjMZ.js.map +0 -1
- package/dist/chunks/textarea.CtgbUCjH.js.map +0 -1
- package/dist/chunks/timeline-item.D9nmCe6u.js.map +0 -1
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
import { openBlock as s, createElementBlock as g, mergeProps as
|
|
1
|
+
import { openBlock as s, createElementBlock as g, mergeProps as V, toDisplayString as x, createCommentVNode as u, createElementVNode as r, defineComponent as da, unref as t, createBlock as y, Transition as ri, withCtx as w, renderSlot as Ra, TransitionGroup as mi, ref as S, onUnmounted as ui, onMounted as Ua, computed as f, watch as ya, normalizeClass as N, createVNode as Z, resolveDynamicComponent as vi, withDirectives as Za, createTextVNode as z, reactive as ka, toRef as ba, withModifiers as X, withKeys as Ea, Fragment as Ia, renderList as fi, vShow as xi, nextTick as gi } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { _ as
|
|
4
|
-
import { W as
|
|
5
|
-
import { B as
|
|
6
|
-
import { B as
|
|
3
|
+
import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import { W as Na } from "./warning-filled.BzyK_mMj.js";
|
|
5
|
+
import { B as hi } from "./alert.CDWtu0Hu.js";
|
|
6
|
+
import { B as I, d as bi } from "./typography.B3J6_tYk.js";
|
|
7
7
|
import { u as ra } from "./index.B875RXHM.js";
|
|
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
|
|
8
|
+
import { g as F } from "./generate-uid.NJ8tVoha.js";
|
|
9
|
+
import { u as wi } from "./form-field.D_2g7vaP.js";
|
|
10
|
+
import { i as Pa } from "./index.CWuzEfiV.js";
|
|
11
|
+
import { B as yi } from "./bin.Cude0fiB.js";
|
|
12
|
+
import { C as ki } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
13
|
+
import { C as Ci } from "./cross.CCHdi6v3.js";
|
|
14
|
+
import { R as $i } from "./refresh.C31KClfx.js";
|
|
15
|
+
import { b as zi } from "./tooltip.Lwtlhv3u.js";
|
|
16
|
+
import { B as wa } from "./button.C6t9_lzm.js";
|
|
17
|
+
import { B as _i } from "./link.DTCn2EtX.js";
|
|
18
|
+
import { B as ji } from "./loading-indicator.BPol9I84.js";
|
|
19
|
+
import { F as Ri, E as Ei } from "./error-message.oGiefI2-.js";
|
|
20
20
|
import "../assets/file-uploader.css";
|
|
21
|
-
let
|
|
22
|
-
const
|
|
21
|
+
let Fa = 0;
|
|
22
|
+
const Ii = {
|
|
23
23
|
beforeCreate() {
|
|
24
|
-
this.uuid =
|
|
24
|
+
this.uuid = Fa.toString(), Fa += 1;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
function
|
|
28
|
-
return s(), g("svg",
|
|
26
|
+
}, Fi = { key: 0 };
|
|
27
|
+
function Si(a, i, n, o, p, d) {
|
|
28
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
29
29
|
class: "ui-assets-icons-16",
|
|
30
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
31
|
width: "16",
|
|
32
32
|
height: "16",
|
|
33
33
|
fill: "none"
|
|
34
34
|
}), [
|
|
35
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
36
|
-
i[0] || (i[0] =
|
|
35
|
+
a.$attrs["svg-title"] ? (s(), g("title", Fi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
36
|
+
i[0] || (i[0] = r("path", {
|
|
37
37
|
fill: "#001222",
|
|
38
38
|
d: "M2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.25H14.75V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V10.25H2.75V12Z"
|
|
39
39
|
}, null, -1)),
|
|
40
|
-
i[1] || (i[1] =
|
|
40
|
+
i[1] || (i[1] = r("path", {
|
|
41
41
|
fill: "#001222",
|
|
42
42
|
d: "M12.0605 5L11 6.06055L8.75 3.81055V11.75H7.25V3.81055L5 6.06055L3.93945 5L8 0.939453L12.0605 5Z"
|
|
43
43
|
}, null, -1))
|
|
44
44
|
], 16);
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const Li = /* @__PURE__ */ L(Ii, [["render", Si]]), Ti = /* @__PURE__ */ da({
|
|
47
47
|
__name: "file-uploader-file-card-animation",
|
|
48
48
|
props: {
|
|
49
49
|
name: {},
|
|
50
50
|
showFileIcon: { type: Boolean }
|
|
51
51
|
},
|
|
52
52
|
setup(a) {
|
|
53
|
-
return (i,
|
|
53
|
+
return (i, n) => t(Pa) ? (s(), y(ri, {
|
|
54
54
|
key: 0,
|
|
55
55
|
name: i.name,
|
|
56
56
|
mode: "out-in",
|
|
57
57
|
css: i.showFileIcon
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
59
|
+
default: w(() => [
|
|
60
|
+
Ra(i.$slots, "default")
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
63
|
-
}, 8, ["name", "css"])) : (s(),
|
|
63
|
+
}, 8, ["name", "css"])) : (s(), y(mi, {
|
|
64
64
|
key: 1,
|
|
65
65
|
name: i.name,
|
|
66
66
|
css: i.showFileIcon
|
|
67
67
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
68
|
+
default: w(() => [
|
|
69
|
+
Ra(i.$slots, "default")
|
|
70
70
|
]),
|
|
71
71
|
_: 3
|
|
72
72
|
}, 8, ["name", "css"]));
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
function Mi(a, i) {
|
|
76
|
-
const
|
|
77
|
-
let
|
|
78
|
-
function
|
|
79
|
-
|
|
76
|
+
const n = S(!1);
|
|
77
|
+
let o;
|
|
78
|
+
function p() {
|
|
79
|
+
o && o.disconnect();
|
|
80
80
|
}
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
}),
|
|
84
|
-
|
|
81
|
+
return ui(() => {
|
|
82
|
+
p();
|
|
83
|
+
}), Ua(() => {
|
|
84
|
+
p(), o = new IntersectionObserver(
|
|
85
85
|
(d) => {
|
|
86
|
-
|
|
86
|
+
n.value = !d[0].isIntersecting;
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
root: i.value,
|
|
90
90
|
threshold: 1
|
|
91
91
|
}
|
|
92
|
-
),
|
|
93
|
-
}),
|
|
92
|
+
), o.observe(a.value.$el);
|
|
93
|
+
}), n;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
const
|
|
95
|
+
const Sa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
|
|
96
|
+
function Ca(a, i) {
|
|
97
|
+
const n = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), Sa.length - 1));
|
|
98
98
|
return Intl.NumberFormat(a, {
|
|
99
99
|
style: "unit",
|
|
100
|
-
unit:
|
|
101
|
-
}).format(i / 1024 **
|
|
100
|
+
unit: Sa[n]
|
|
101
|
+
}).format(i / 1024 ** n);
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
const
|
|
103
|
+
var D = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(D || {}), E = /* @__PURE__ */ ((a) => (a.ERROR_SIZE = "error-size", a.ERROR_LOAD = "error-load", a.ERROR_DIMENSIONS = "error-dimensions", a.ERROR_TYPE = "error-type", a))(E || {}), ca = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(ca || {}), k = /* @__PURE__ */ ((a) => (a.TABLE = "table", a.IMAGE = "image", a.VIDEO = "video", a.AUDIO = "audio", a.TEXT = "text", a.PDF = "pdf", a.SLIDES = "slides", a.COMPRESSED = "compressed", a.GENERIC = "generic", a))(k || {});
|
|
104
|
+
const Di = [
|
|
105
105
|
"application/msword",
|
|
106
106
|
// .doc
|
|
107
107
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
108
108
|
// .docx
|
|
109
109
|
"application/rtf"
|
|
110
110
|
// .rtf
|
|
111
|
-
],
|
|
111
|
+
], Vi = [
|
|
112
112
|
"application/vnd.ms-excel",
|
|
113
113
|
// .xls
|
|
114
114
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -121,14 +121,14 @@ const Ti = [
|
|
|
121
121
|
// .numbers
|
|
122
122
|
"text/csv"
|
|
123
123
|
// .csv
|
|
124
|
-
],
|
|
124
|
+
], Oi = [
|
|
125
125
|
"application/vnd.ms-powerpoint",
|
|
126
126
|
// .ppt
|
|
127
127
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
128
128
|
// .pptx
|
|
129
129
|
"application/vnd.oasis.opendocument.presentation"
|
|
130
130
|
// .odp
|
|
131
|
-
],
|
|
131
|
+
], qi = [
|
|
132
132
|
"application/zip",
|
|
133
133
|
// .zip
|
|
134
134
|
"application/vnd.rar",
|
|
@@ -150,101 +150,104 @@ const Ti = [
|
|
|
150
150
|
"application/vnd.ms-cab-compressed"
|
|
151
151
|
// .cab
|
|
152
152
|
];
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Hi(a) {
|
|
154
|
+
return Vi.includes(a.type) ? k.TABLE : a.type.startsWith("text/") || Di.includes(a.type) ? k.TEXT : a.type.startsWith("image/") ? k.IMAGE : a.type.startsWith("video/") ? k.VIDEO : a.type.startsWith("audio/") ? k.AUDIO : a.type === "application/pdf" ? k.PDF : Oi.includes(a.type) ? k.SLIDES : qi.includes(a.type) ? k.COMPRESSED : k.GENERIC;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Wa(a, i) {
|
|
157
157
|
if (!i)
|
|
158
158
|
return !0;
|
|
159
|
-
const
|
|
160
|
-
for (const
|
|
161
|
-
if (
|
|
162
|
-
if (a.name.endsWith(
|
|
159
|
+
const n = i.split(",").map((o) => o.trim());
|
|
160
|
+
for (const o of n)
|
|
161
|
+
if (o.startsWith(".")) {
|
|
162
|
+
if (a.name.endsWith(o))
|
|
163
163
|
return !0;
|
|
164
|
-
} else if (
|
|
165
|
-
const
|
|
166
|
-
if (a.type.startsWith(
|
|
164
|
+
} else if (o.endsWith("/*")) {
|
|
165
|
+
const p = o.split("/")[0];
|
|
166
|
+
if (a.type.startsWith(p))
|
|
167
167
|
return !0;
|
|
168
|
-
} else if (
|
|
168
|
+
} else if (o.includes("/")) {
|
|
169
|
+
if (a.type === o)
|
|
170
|
+
return !0;
|
|
171
|
+
} else if (a.name.endsWith(`.${o}`))
|
|
169
172
|
return !0;
|
|
170
173
|
return !1;
|
|
171
174
|
}
|
|
172
|
-
function
|
|
173
|
-
const
|
|
174
|
-
if (!
|
|
175
|
-
|
|
175
|
+
function Bi(a, i, n) {
|
|
176
|
+
const o = new FileReader(), p = a;
|
|
177
|
+
if (!Wa(p.data, i)) {
|
|
178
|
+
p.state = D.ERROR, p.errors.push(E.ERROR_TYPE);
|
|
176
179
|
return;
|
|
177
180
|
}
|
|
178
|
-
|
|
179
|
-
if (
|
|
180
|
-
const l = new Blob([d.target.result], { type:
|
|
181
|
-
|
|
182
|
-
(
|
|
183
|
-
},
|
|
184
|
-
URL.revokeObjectURL(
|
|
185
|
-
},
|
|
181
|
+
o.onload = (d) => {
|
|
182
|
+
if (n && p.type === k.IMAGE) {
|
|
183
|
+
const l = new Blob([d.target.result], { type: p.data.type }), m = URL.createObjectURL(l), h = new Image();
|
|
184
|
+
h.onload = function() {
|
|
185
|
+
(h.width > n.width || h.height > n.height) && (p.state = D.ERROR, p.errors.push(E.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
|
|
186
|
+
}, h.onerror = function() {
|
|
187
|
+
URL.revokeObjectURL(m);
|
|
188
|
+
}, h.src = m;
|
|
186
189
|
}
|
|
187
|
-
},
|
|
188
|
-
d.lengthComputable && (
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
},
|
|
190
|
+
}, o.onprogress = (d) => {
|
|
191
|
+
d.lengthComputable && (p.progress = d.loaded / d.total * 100);
|
|
192
|
+
}, o.onloadend = () => {
|
|
193
|
+
p.state !== D.ERROR && (p.state = D.SUCCESS), p.progress = null;
|
|
194
|
+
}, o.onerror = () => {
|
|
195
|
+
p.state = D.ERROR, p.errors.push(E.ERROR_LOAD), p.progress = null;
|
|
196
|
+
}, o.readAsArrayBuffer(p.data);
|
|
194
197
|
}
|
|
195
|
-
let
|
|
196
|
-
const
|
|
198
|
+
let La = 0;
|
|
199
|
+
const Ai = {
|
|
197
200
|
beforeCreate() {
|
|
198
|
-
this.uuid =
|
|
201
|
+
this.uuid = La.toString(), La += 1;
|
|
199
202
|
}
|
|
200
|
-
},
|
|
201
|
-
function
|
|
202
|
-
return s(), g("svg",
|
|
203
|
+
}, Ui = { key: 0 }, Zi = ["clip-path"], Ni = ["id"];
|
|
204
|
+
function Pi(a, i, n, o, p, d) {
|
|
205
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
203
206
|
class: "ui-assets-icons-16",
|
|
204
207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
205
208
|
width: "16",
|
|
206
209
|
height: "16",
|
|
207
210
|
fill: "none"
|
|
208
211
|
}), [
|
|
209
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
210
|
-
|
|
212
|
+
a.$attrs["svg-title"] ? (s(), g("title", Ui, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
213
|
+
r("g", {
|
|
211
214
|
"clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
|
|
212
215
|
}, i[0] || (i[0] = [
|
|
213
|
-
|
|
216
|
+
r("path", {
|
|
214
217
|
fill: "#001222",
|
|
215
218
|
d: "M7.10655 3.02949C8.98948 1.14706 12.0441 1.14675 13.9269 3.02949C15.8095 4.91225 15.8093 7.96692 13.9269 9.84981L11.1564 12.6203L10.0958 11.5598L12.8663 8.78926C14.1629 7.49216 14.1631 5.38701 12.8663 4.09004C11.5694 2.79309 9.46424 2.79339 8.1671 4.09004L2.72667 9.53047C1.95976 10.2976 1.95963 11.5427 2.72667 12.3098C3.49372 13.0766 4.7389 13.0766 5.50597 12.3098L10.9464 6.86934C11.183 6.63224 11.1832 6.24693 10.9464 6.00996C10.7094 5.77301 10.3242 5.77331 10.087 6.00996L4.4962 11.6008L3.43565 10.5402L9.02647 4.94942C9.8494 4.12698 11.1842 4.12668 12.0069 4.94942C12.8296 5.77217 12.8293 7.107 12.0069 7.92989L6.56651 13.3703C5.21366 14.723 3.01896 14.723 1.66612 13.3703C0.313294 12.0175 0.313425 9.82283 1.66612 8.46992L7.10655 3.02949Z"
|
|
216
219
|
}, null, -1)
|
|
217
220
|
]), 8, Zi),
|
|
218
|
-
|
|
219
|
-
|
|
221
|
+
r("defs", null, [
|
|
222
|
+
r("clipPath", {
|
|
220
223
|
id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
|
|
221
224
|
}, i[1] || (i[1] = [
|
|
222
|
-
|
|
225
|
+
r("rect", {
|
|
223
226
|
width: "16",
|
|
224
227
|
height: "16",
|
|
225
228
|
fill: "#fff"
|
|
226
229
|
}, null, -1)
|
|
227
|
-
]), 8,
|
|
230
|
+
]), 8, Ni)
|
|
228
231
|
])
|
|
229
232
|
], 16);
|
|
230
233
|
}
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
const
|
|
234
|
+
const Wi = /* @__PURE__ */ L(Ai, [["render", Pi]]);
|
|
235
|
+
let Ta = 0;
|
|
236
|
+
const Gi = {
|
|
234
237
|
beforeCreate() {
|
|
235
|
-
this.uuid =
|
|
238
|
+
this.uuid = Ta.toString(), Ta += 1;
|
|
236
239
|
}
|
|
237
|
-
},
|
|
238
|
-
function
|
|
239
|
-
return s(), g("svg",
|
|
240
|
+
}, Yi = { key: 0 };
|
|
241
|
+
function Ji(a, i, n, o, p, d) {
|
|
242
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
240
243
|
class: "ui-assets-icons-16",
|
|
241
244
|
xmlns: "http://www.w3.org/2000/svg",
|
|
242
245
|
width: "16",
|
|
243
246
|
height: "16",
|
|
244
247
|
fill: "none"
|
|
245
248
|
}), [
|
|
246
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
247
|
-
i[0] || (i[0] =
|
|
249
|
+
a.$attrs["svg-title"] ? (s(), g("title", Yi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
250
|
+
i[0] || (i[0] = r("path", {
|
|
248
251
|
fill: "#001222",
|
|
249
252
|
"fill-rule": "evenodd",
|
|
250
253
|
d: "M11 0.25C12.5188 0.25 13.75 1.48122 13.75 3V7C13.75 7.85389 13.3607 8.6167 12.75 9.12109V10C12.75 10.8539 12.3607 11.6167 11.75 12.1211V13C11.75 14.5188 10.5188 15.75 9 15.75H7C5.48122 15.75 4.25 14.5188 4.25 13V12.1211C3.63934 11.6167 3.25 10.8539 3.25 10V9.12109C2.63934 8.6167 2.25 7.85389 2.25 7V3C2.25 1.48122 3.48122 0.25 5 0.25H11ZM10 12.75H6C5.91565 12.75 5.83241 12.7438 5.75 12.7363V13C5.75 13.6904 6.30964 14.25 7 14.25H9C9.69036 14.25 10.25 13.6904 10.25 13V12.7363C10.1676 12.7438 10.0843 12.75 10 12.75ZM11 9.75H5C4.91565 9.75 4.83241 9.74376 4.75 9.73633V10C4.75 10.6904 5.30964 11.25 6 11.25H10C10.6904 11.25 11.25 10.6904 11.25 10V9.73633C11.1676 9.74376 11.0843 9.75 11 9.75ZM5 1.75C4.30964 1.75 3.75 2.30964 3.75 3V7C3.75 7.69036 4.30964 8.25 5 8.25H11C11.6904 8.25 12.25 7.69036 12.25 7V3C12.25 2.30964 11.6904 1.75 11 1.75H5Z",
|
|
@@ -252,223 +255,223 @@ function Yi(a, i, o, p, n, d) {
|
|
|
252
255
|
}, null, -1))
|
|
253
256
|
], 16);
|
|
254
257
|
}
|
|
255
|
-
const
|
|
256
|
-
let
|
|
257
|
-
const
|
|
258
|
+
const Xi = /* @__PURE__ */ L(Gi, [["render", Ji]]);
|
|
259
|
+
let Ma = 0;
|
|
260
|
+
const Ki = {
|
|
258
261
|
beforeCreate() {
|
|
259
|
-
this.uuid =
|
|
262
|
+
this.uuid = Ma.toString(), Ma += 1;
|
|
260
263
|
}
|
|
261
|
-
},
|
|
262
|
-
function
|
|
263
|
-
return s(), g("svg",
|
|
264
|
+
}, Qi = { key: 0 };
|
|
265
|
+
function ae(a, i, n, o, p, d) {
|
|
266
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
264
267
|
class: "ui-assets-icons-16",
|
|
265
268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
266
269
|
width: "16",
|
|
267
270
|
height: "16",
|
|
268
271
|
fill: "none"
|
|
269
272
|
}), [
|
|
270
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
271
|
-
i[0] || (i[0] =
|
|
273
|
+
a.$attrs["svg-title"] ? (s(), g("title", Qi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
274
|
+
i[0] || (i[0] = r("path", {
|
|
272
275
|
fill: "#001222",
|
|
273
276
|
d: "M2.25 0.25V15.75H13.75V4.68934L9.31066 0.25H2.25ZM7.25 1.75V6.75H12.25V14.25H3.75V1.75H7.25ZM12.1893 5.25H8.75V1.81066L12.1893 5.25Z"
|
|
274
277
|
}, null, -1))
|
|
275
278
|
], 16);
|
|
276
279
|
}
|
|
277
|
-
const
|
|
278
|
-
let
|
|
279
|
-
const
|
|
280
|
+
const ie = /* @__PURE__ */ L(Ki, [["render", ae]]);
|
|
281
|
+
let Da = 0;
|
|
282
|
+
const ee = {
|
|
280
283
|
beforeCreate() {
|
|
281
|
-
this.uuid =
|
|
284
|
+
this.uuid = Da.toString(), Da += 1;
|
|
282
285
|
}
|
|
283
|
-
},
|
|
284
|
-
function
|
|
285
|
-
return s(), g("svg",
|
|
286
|
+
}, te = { key: 0 };
|
|
287
|
+
function ne(a, i, n, o, p, d) {
|
|
288
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
286
289
|
class: "ui-assets-icons-16",
|
|
287
290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
288
291
|
width: "16",
|
|
289
292
|
height: "16",
|
|
290
293
|
fill: "none"
|
|
291
294
|
}), [
|
|
292
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
293
|
-
i[0] || (i[0] =
|
|
295
|
+
a.$attrs["svg-title"] ? (s(), g("title", te, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
296
|
+
i[0] || (i[0] = r("path", {
|
|
294
297
|
fill: "#001222",
|
|
295
298
|
d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
|
|
296
299
|
}, null, -1)),
|
|
297
|
-
i[1] || (i[1] =
|
|
300
|
+
i[1] || (i[1] = r("path", {
|
|
298
301
|
fill: "#001222",
|
|
299
302
|
d: "M10.7461 11.25H5.24609V12.75H10.7461V11.25Z"
|
|
300
303
|
}, null, -1)),
|
|
301
|
-
i[2] || (i[2] =
|
|
304
|
+
i[2] || (i[2] = r("path", {
|
|
302
305
|
fill: "#001222",
|
|
303
306
|
d: "M2.24609 0.25V15.75H13.7461V4.68934L9.30675 0.25H2.24609ZM7.24609 1.75V6.75H12.2461V14.25H3.74609V1.75H7.24609ZM12.1854 5.25H8.74609V1.81066L12.1854 5.25Z"
|
|
304
307
|
}, null, -1))
|
|
305
308
|
], 16);
|
|
306
309
|
}
|
|
307
|
-
const
|
|
308
|
-
let
|
|
309
|
-
const
|
|
310
|
+
const oe = /* @__PURE__ */ L(ee, [["render", ne]]);
|
|
311
|
+
let Va = 0;
|
|
312
|
+
const pe = {
|
|
310
313
|
beforeCreate() {
|
|
311
|
-
this.uuid =
|
|
314
|
+
this.uuid = Va.toString(), Va += 1;
|
|
312
315
|
}
|
|
313
|
-
},
|
|
314
|
-
function
|
|
315
|
-
return s(), g("svg",
|
|
316
|
+
}, le = { key: 0 };
|
|
317
|
+
function se(a, i, n, o, p, d) {
|
|
318
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
316
319
|
class: "ui-assets-icons-16",
|
|
317
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
318
321
|
width: "16",
|
|
319
322
|
height: "16",
|
|
320
323
|
fill: "none"
|
|
321
324
|
}), [
|
|
322
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
323
|
-
i[0] || (i[0] =
|
|
325
|
+
a.$attrs["svg-title"] ? (s(), g("title", le, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
326
|
+
i[0] || (i[0] = r("path", {
|
|
324
327
|
fill: "#001222",
|
|
325
328
|
d: "M1.24609 12V5C1.24609 3.48579 2.48188 2.25 3.99609 2.25H7.30664L10.3066 5.25H11.9961C13.5103 5.25 14.7461 6.48579 14.7461 8V12C14.7461 13.5142 13.5103 14.75 11.9961 14.75H3.99609C2.48188 14.75 1.24609 13.5142 1.24609 12ZM2.74609 12C2.74609 12.6858 3.31031 13.25 3.99609 13.25H11.9961C12.6819 13.25 13.2461 12.6858 13.2461 12V8C13.2461 7.31421 12.6819 6.75 11.9961 6.75H9.68555L6.68555 3.75H3.99609C3.31031 3.75 2.74609 4.31421 2.74609 5V12Z"
|
|
326
329
|
}, null, -1))
|
|
327
330
|
], 16);
|
|
328
331
|
}
|
|
329
|
-
const
|
|
330
|
-
let
|
|
331
|
-
const
|
|
332
|
+
const ce = /* @__PURE__ */ L(pe, [["render", se]]);
|
|
333
|
+
let Oa = 0;
|
|
334
|
+
const de = {
|
|
332
335
|
beforeCreate() {
|
|
333
|
-
this.uuid =
|
|
336
|
+
this.uuid = Oa.toString(), Oa += 1;
|
|
334
337
|
}
|
|
335
|
-
},
|
|
336
|
-
function
|
|
337
|
-
return s(), g("svg",
|
|
338
|
+
}, re = { key: 0 };
|
|
339
|
+
function me(a, i, n, o, p, d) {
|
|
340
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
338
341
|
class: "ui-assets-icons-16",
|
|
339
342
|
xmlns: "http://www.w3.org/2000/svg",
|
|
340
343
|
width: "16",
|
|
341
344
|
height: "16",
|
|
342
345
|
fill: "none"
|
|
343
346
|
}), [
|
|
344
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
345
|
-
i[0] || (i[0] =
|
|
347
|
+
a.$attrs["svg-title"] ? (s(), g("title", re, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
348
|
+
i[0] || (i[0] = r("path", {
|
|
346
349
|
fill: "#001222",
|
|
347
350
|
d: "M9.74609 3.74805C11.1268 3.74805 12.2461 4.86733 12.2461 6.24805C12.2461 7.62876 11.1268 8.74805 9.74609 8.74805C8.36538 8.74805 7.24609 7.62876 7.24609 6.24805C7.24609 4.86733 8.36538 3.74805 9.74609 3.74805ZM9.74609 5.24805C9.19381 5.24805 8.74609 5.69576 8.74609 6.24805C8.74609 6.80033 9.19381 7.24805 9.74609 7.24805C10.2984 7.24805 10.7461 6.80033 10.7461 6.24805C10.7461 5.69576 10.2984 5.24805 9.74609 5.24805Z"
|
|
348
351
|
}, null, -1)),
|
|
349
|
-
i[1] || (i[1] =
|
|
352
|
+
i[1] || (i[1] = r("path", {
|
|
350
353
|
fill: "#001222",
|
|
351
354
|
d: "M11.9961 1.24805C13.5149 1.24805 14.7461 2.47926 14.7461 3.99805V11.998C14.7461 13.5168 13.5149 14.748 11.9961 14.748H3.99609C2.47731 14.748 1.24609 13.5168 1.24609 11.998V3.99805C1.24609 2.47926 2.47731 1.24805 3.99609 1.24805H11.9961ZM2.74609 11.3105V11.998C2.74609 12.6884 3.30574 13.248 3.99609 13.248H9.18359L4.99609 9.06055L2.74609 11.3105ZM3.99609 2.74805C3.30574 2.74805 2.74609 3.30769 2.74609 3.99805V9.18945L4.99609 6.93945L11.3047 13.248H11.9961C12.6864 13.248 13.2461 12.6884 13.2461 11.998V3.99805C13.2461 3.30769 12.6865 2.74805 11.9961 2.74805H3.99609Z"
|
|
352
355
|
}, null, -1))
|
|
353
356
|
], 16);
|
|
354
357
|
}
|
|
355
|
-
const
|
|
356
|
-
let
|
|
357
|
-
const
|
|
358
|
+
const ue = /* @__PURE__ */ L(de, [["render", me]]);
|
|
359
|
+
let qa = 0;
|
|
360
|
+
const ve = {
|
|
358
361
|
beforeCreate() {
|
|
359
|
-
this.uuid =
|
|
362
|
+
this.uuid = qa.toString(), qa += 1;
|
|
360
363
|
}
|
|
361
|
-
},
|
|
362
|
-
function
|
|
363
|
-
return s(), g("svg",
|
|
364
|
+
}, fe = { key: 0 }, xe = ["clip-path"], ge = ["id"];
|
|
365
|
+
function he(a, i, n, o, p, d) {
|
|
366
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
364
367
|
class: "ui-assets-icons-16",
|
|
365
368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
366
369
|
width: "16",
|
|
367
370
|
height: "16",
|
|
368
371
|
fill: "none"
|
|
369
372
|
}), [
|
|
370
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
371
|
-
|
|
373
|
+
a.$attrs["svg-title"] ? (s(), g("title", fe, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
374
|
+
r("g", {
|
|
372
375
|
fill: "#001222",
|
|
373
376
|
"clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
|
|
374
377
|
}, i[0] || (i[0] = [
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
]), 8,
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
|
|
379
|
+
r("path", { d: "M5.0342 0.839937C6.45033 0.253358 8.0086 0.0998821 9.51195 0.398918C11.0153 0.697953 12.3962 1.43607 13.4801 2.51993C14.5639 3.60378 15.3021 4.9847 15.6011 6.48805C15.9001 7.99141 15.7466 9.54967 15.1601 10.9658C14.5735 12.3819 13.5801 13.5923 12.3057 14.4439C11.0312 15.2955 9.53281 15.75 8 15.75C5.94457 15.75 3.97333 14.9335 2.51992 13.4801C1.06652 12.0267 0.25 10.0554 0.25 8C0.25 6.4672 0.704529 4.96881 1.55611 3.69433C2.40769 2.41985 3.61808 1.42652 5.0342 0.839937ZM9.21931 1.8701C8.00693 1.62894 6.75027 1.75271 5.60823 2.22576C4.46619 2.6988 3.49007 3.49988 2.80331 4.52769C2.11656 5.5555 1.75 6.76387 1.75 8C1.75 9.65761 2.40848 11.2473 3.58058 12.4194C4.75268 13.5915 6.3424 14.25 8 14.25C9.23613 14.25 10.4445 13.8834 11.4723 13.1967C12.5001 12.5099 13.3012 11.5338 13.7742 10.3918C14.2473 9.24974 14.3711 7.99307 14.1299 6.78069C13.8887 5.56831 13.2935 4.45466 12.4194 3.58059C11.5453 2.70651 10.4317 2.11125 9.21931 1.8701Z" }, null, -1)
|
|
380
|
+
]), 8, xe),
|
|
381
|
+
r("defs", null, [
|
|
382
|
+
r("clipPath", {
|
|
380
383
|
id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
|
|
381
384
|
}, i[1] || (i[1] = [
|
|
382
|
-
|
|
385
|
+
r("rect", {
|
|
383
386
|
width: "16",
|
|
384
387
|
height: "16",
|
|
385
388
|
fill: "#fff"
|
|
386
389
|
}, null, -1)
|
|
387
|
-
]), 8,
|
|
390
|
+
]), 8, ge)
|
|
388
391
|
])
|
|
389
392
|
], 16);
|
|
390
393
|
}
|
|
391
|
-
const
|
|
392
|
-
let
|
|
393
|
-
const
|
|
394
|
+
const be = /* @__PURE__ */ L(ve, [["render", he]]);
|
|
395
|
+
let Ha = 0;
|
|
396
|
+
const we = {
|
|
394
397
|
beforeCreate() {
|
|
395
|
-
this.uuid =
|
|
398
|
+
this.uuid = Ha.toString(), Ha += 1;
|
|
396
399
|
}
|
|
397
|
-
},
|
|
398
|
-
function
|
|
399
|
-
return s(), g("svg",
|
|
400
|
+
}, ye = { key: 0 };
|
|
401
|
+
function ke(a, i, n, o, p, d) {
|
|
402
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
400
403
|
class: "ui-assets-icons-16",
|
|
401
404
|
xmlns: "http://www.w3.org/2000/svg",
|
|
402
405
|
width: "16",
|
|
403
406
|
height: "16",
|
|
404
407
|
fill: "none"
|
|
405
408
|
}), [
|
|
406
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
407
|
-
i[0] || (i[0] =
|
|
409
|
+
a.$attrs["svg-title"] ? (s(), g("title", ye, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
410
|
+
i[0] || (i[0] = r("path", {
|
|
408
411
|
fill: "#001222",
|
|
409
412
|
d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z"
|
|
410
413
|
}, null, -1)),
|
|
411
|
-
i[1] || (i[1] =
|
|
414
|
+
i[1] || (i[1] = r("path", {
|
|
412
415
|
fill: "#001222",
|
|
413
416
|
d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z"
|
|
414
417
|
}, null, -1)),
|
|
415
|
-
i[2] || (i[2] =
|
|
418
|
+
i[2] || (i[2] = r("path", {
|
|
416
419
|
fill: "#001222",
|
|
417
420
|
d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z"
|
|
418
421
|
}, null, -1))
|
|
419
422
|
], 16);
|
|
420
423
|
}
|
|
421
|
-
const
|
|
422
|
-
let
|
|
423
|
-
const
|
|
424
|
+
const Ce = /* @__PURE__ */ L(we, [["render", ke]]);
|
|
425
|
+
let Ba = 0;
|
|
426
|
+
const $e = {
|
|
424
427
|
beforeCreate() {
|
|
425
|
-
this.uuid =
|
|
428
|
+
this.uuid = Ba.toString(), Ba += 1;
|
|
426
429
|
}
|
|
427
|
-
},
|
|
428
|
-
function _e(a, i, o, p,
|
|
429
|
-
return s(), g("svg",
|
|
430
|
+
}, ze = { key: 0 };
|
|
431
|
+
function _e(a, i, n, o, p, d) {
|
|
432
|
+
return s(), g("svg", V({ role: "img" }, a.$attrs, {
|
|
430
433
|
class: "ui-assets-icons-16",
|
|
431
434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
432
435
|
width: "16",
|
|
433
436
|
height: "16",
|
|
434
437
|
fill: "none"
|
|
435
438
|
}), [
|
|
436
|
-
a.$attrs["svg-title"] ? (s(), g("title",
|
|
437
|
-
i[0] || (i[0] =
|
|
439
|
+
a.$attrs["svg-title"] ? (s(), g("title", ze, x(a.$attrs["svg-title"]), 1)) : u("", !0),
|
|
440
|
+
i[0] || (i[0] = r("path", {
|
|
438
441
|
fill: "#001222",
|
|
439
442
|
d: "M12 1.25C13.5188 1.25 14.75 2.48122 14.75 4V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V4C1.25 2.48122 2.48122 1.25 4 1.25H12ZM6.75 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.75H6.75V13.25ZM2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H5.25V10.75H2.75V12ZM6.75 9.25H13.25V6.75H6.75V9.25ZM2.75 9.25H5.25V6.75H2.75V9.25ZM6.75 5.25H13.25V4C13.25 3.30964 12.6904 2.75 12 2.75H6.75V5.25ZM4 2.75C3.30964 2.75 2.75 3.30964 2.75 4V5.25H5.25V2.75H4Z"
|
|
440
443
|
}, null, -1))
|
|
441
444
|
], 16);
|
|
442
445
|
}
|
|
443
|
-
const
|
|
444
|
-
[
|
|
445
|
-
[
|
|
446
|
-
[
|
|
447
|
-
[
|
|
448
|
-
[
|
|
449
|
-
[
|
|
450
|
-
[
|
|
451
|
-
[
|
|
452
|
-
[
|
|
446
|
+
const je = /* @__PURE__ */ L($e, [["render", _e]]), Re = {
|
|
447
|
+
[k.AUDIO]: Ce,
|
|
448
|
+
[k.COMPRESSED]: ce,
|
|
449
|
+
[k.GENERIC]: Wi,
|
|
450
|
+
[k.IMAGE]: ue,
|
|
451
|
+
[k.PDF]: ie,
|
|
452
|
+
[k.SLIDES]: Xi,
|
|
453
|
+
[k.TABLE]: je,
|
|
454
|
+
[k.TEXT]: oe,
|
|
455
|
+
[k.VIDEO]: be
|
|
453
456
|
};
|
|
454
|
-
function Re(a) {
|
|
455
|
-
return je[a.type];
|
|
456
|
-
}
|
|
457
457
|
function Ee(a) {
|
|
458
|
+
return Re[a.type];
|
|
459
|
+
}
|
|
460
|
+
function Ie(a) {
|
|
458
461
|
switch (a.type) {
|
|
459
|
-
case
|
|
460
|
-
case
|
|
462
|
+
case k.COMPRESSED:
|
|
463
|
+
case k.GENERIC:
|
|
461
464
|
return "grey";
|
|
462
|
-
case
|
|
463
|
-
case
|
|
465
|
+
case k.PDF:
|
|
466
|
+
case k.SLIDES:
|
|
464
467
|
return "orange";
|
|
465
|
-
case
|
|
468
|
+
case k.TEXT:
|
|
466
469
|
return "blue";
|
|
467
470
|
default:
|
|
468
471
|
return "green";
|
|
469
472
|
}
|
|
470
473
|
}
|
|
471
|
-
const
|
|
474
|
+
const Ga = {
|
|
472
475
|
"en-US": {
|
|
473
476
|
cancel: "Cancel",
|
|
474
477
|
fileExceedsSizeLimit: "File exceeds size limit",
|
|
@@ -493,206 +496,206 @@ const Na = {
|
|
|
493
496
|
remove: "Remover",
|
|
494
497
|
retry: "Tentar novamente"
|
|
495
498
|
}
|
|
496
|
-
},
|
|
499
|
+
}, Fe = { class: "b-file-uploader-file-card__details" }, Se = { class: "b-file-uploader-file-card__info" }, Le = ["id"], Te = {
|
|
497
500
|
key: 0,
|
|
498
501
|
class: "b-file-uploader-file-card__actions"
|
|
499
|
-
},
|
|
502
|
+
}, Me = {
|
|
500
503
|
name: "file-uploader-file-card",
|
|
501
|
-
i18n: { messages:
|
|
502
|
-
},
|
|
503
|
-
...
|
|
504
|
+
i18n: { messages: Ga }
|
|
505
|
+
}, De = /* @__PURE__ */ da({
|
|
506
|
+
...Me,
|
|
504
507
|
props: {
|
|
505
508
|
file: {},
|
|
506
509
|
supportedFileTypes: { default: null },
|
|
507
510
|
readonly: { type: Boolean }
|
|
508
511
|
},
|
|
509
512
|
emits: ["cancel", "remove", "retry"],
|
|
510
|
-
setup(a, { expose: i, emit:
|
|
511
|
-
const
|
|
512
|
-
"b-file-uploader-file-card--error":
|
|
513
|
-
})),
|
|
514
|
-
[`b-file-uploader-file-card__icon--${
|
|
515
|
-
"b-file-uploader-file-card__icon--error":
|
|
516
|
-
})),
|
|
517
|
-
|
|
518
|
-
() =>
|
|
519
|
-
(
|
|
520
|
-
if (
|
|
521
|
-
const
|
|
522
|
-
|
|
513
|
+
setup(a, { expose: i, emit: n }) {
|
|
514
|
+
const p = a, d = n, { t: l, locale: m } = ra({ messages: Ga }), h = S(null), _ = S(null), O = S(null), q = F("file-errors-section"), v = F("cancel-file-button"), j = F("remove-file-button"), A = F("retry-file-button"), H = S(p.file.state === D.SUCCESS), b = f(() => URL.createObjectURL(p.file.data)), P = f(() => p.file.state === D.ERROR), U = f(() => p.file.errors.includes(E.ERROR_LOAD)), Q = f(() => p.file.errors.includes(E.ERROR_SIZE)), aa = f(() => p.file.errors.includes(E.ERROR_DIMENSIONS)), na = f(() => p.file.errors.includes(E.ERROR_TYPE)), oa = f(() => p.file.state === D.LOADING), pa = f(() => p.file.progress && `(${p.file.progress.toFixed(0)}%)`), G = f(() => Ca(m.value, p.file.data.size)), Y = S(), la = S(), sa = Mi(Y, la), ia = f(() => ({
|
|
515
|
+
"b-file-uploader-file-card--error": P.value
|
|
516
|
+
})), ma = f(() => ({
|
|
517
|
+
[`b-file-uploader-file-card__icon--${Ie(p.file)}`]: H.value,
|
|
518
|
+
"b-file-uploader-file-card__icon--error": P.value
|
|
519
|
+
})), J = f(() => oa.value ? ji : P.value ? Na : H.value ? Ee(p.file) : ki);
|
|
520
|
+
ya(
|
|
521
|
+
() => p.file.state,
|
|
522
|
+
(R) => {
|
|
523
|
+
if (R === D.SUCCESS && !H.value) {
|
|
524
|
+
const B = setTimeout(() => {
|
|
525
|
+
H.value = !0, clearTimeout(B);
|
|
523
526
|
}, 1200);
|
|
524
527
|
}
|
|
525
528
|
}
|
|
526
529
|
);
|
|
527
530
|
function ua() {
|
|
528
|
-
if (
|
|
529
|
-
|
|
531
|
+
if (O.value) {
|
|
532
|
+
O.value.$el.focus();
|
|
530
533
|
return;
|
|
531
534
|
}
|
|
532
|
-
if (
|
|
533
|
-
|
|
535
|
+
if (h.value) {
|
|
536
|
+
h.value.$el.focus();
|
|
534
537
|
return;
|
|
535
538
|
}
|
|
536
|
-
if (
|
|
537
|
-
|
|
539
|
+
if (_.value) {
|
|
540
|
+
_.value.$el.focus();
|
|
538
541
|
return;
|
|
539
542
|
}
|
|
540
543
|
}
|
|
541
544
|
return i({
|
|
542
545
|
focus: ua
|
|
543
|
-
}), (
|
|
544
|
-
class:
|
|
546
|
+
}), (R, B) => (s(), g("div", {
|
|
547
|
+
class: N(["b-file-uploader-file-card", ia.value])
|
|
545
548
|
}, [
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
name: t(
|
|
550
|
-
"show-file-icon":
|
|
549
|
+
r("div", Fe, [
|
|
550
|
+
r("div", Se, [
|
|
551
|
+
Z(t(Ti), {
|
|
552
|
+
name: t(Pa) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
|
|
553
|
+
"show-file-icon": H.value
|
|
551
554
|
}, {
|
|
552
|
-
default:
|
|
553
|
-
(s(),
|
|
554
|
-
key: JSON.stringify(
|
|
555
|
+
default: w(() => [
|
|
556
|
+
(s(), y(vi(J.value), {
|
|
557
|
+
key: JSON.stringify(J.value),
|
|
555
558
|
small: "",
|
|
556
559
|
"aria-hidden": "true",
|
|
557
|
-
class:
|
|
560
|
+
class: N(["b-file-uploader-file-card__icon", ma.value]),
|
|
558
561
|
"data-testid": "file-uploader-item-icon"
|
|
559
562
|
}, null, 8, ["class"]))
|
|
560
563
|
]),
|
|
561
564
|
_: 1
|
|
562
565
|
}, 8, ["name", "show-file-icon"]),
|
|
563
|
-
|
|
566
|
+
r("div", {
|
|
564
567
|
ref_key: "fileNameContainerRef",
|
|
565
|
-
ref:
|
|
568
|
+
ref: la,
|
|
566
569
|
class: "b-file-uploader-file-card__file-name"
|
|
567
570
|
}, [
|
|
568
|
-
|
|
571
|
+
Z(t(_i), {
|
|
569
572
|
"aria-hidden": "true",
|
|
570
573
|
tabindex: "-1",
|
|
571
|
-
download:
|
|
572
|
-
to:
|
|
574
|
+
download: R.file.data.name,
|
|
575
|
+
to: b.value,
|
|
573
576
|
"disable-typography": "",
|
|
574
577
|
"is-not-routing": "",
|
|
575
578
|
variant: "quiet"
|
|
576
579
|
}, {
|
|
577
|
-
default:
|
|
578
|
-
|
|
580
|
+
default: w(() => [
|
|
581
|
+
Za((s(), y(t(I), {
|
|
579
582
|
ref_key: "fileNameRef",
|
|
580
|
-
ref:
|
|
583
|
+
ref: Y,
|
|
581
584
|
stronger: "",
|
|
582
585
|
el: "span"
|
|
583
586
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
|
|
587
|
+
default: w(() => [
|
|
588
|
+
z(x(R.file.data.name), 1)
|
|
586
589
|
]),
|
|
587
590
|
_: 1
|
|
588
591
|
})), [
|
|
589
|
-
[t(
|
|
592
|
+
[t(zi), t(sa) ? R.file.data.name : null]
|
|
590
593
|
])
|
|
591
594
|
]),
|
|
592
595
|
_: 1
|
|
593
596
|
}, 8, ["download", "to"])
|
|
594
597
|
], 512),
|
|
595
|
-
|
|
598
|
+
R.file.progress ? (s(), y(t(I), {
|
|
596
599
|
key: 0,
|
|
597
600
|
el: "span"
|
|
598
601
|
}, {
|
|
599
|
-
default:
|
|
600
|
-
|
|
602
|
+
default: w(() => [
|
|
603
|
+
z(x(pa.value), 1)
|
|
601
604
|
]),
|
|
602
605
|
_: 1
|
|
603
|
-
})) :
|
|
606
|
+
})) : R.file.data.size ? (s(), y(t(I), {
|
|
604
607
|
key: 1,
|
|
605
608
|
class: "b-file-uploader-file-card__file-size",
|
|
606
609
|
"aria-hidden": "true",
|
|
607
610
|
el: "span"
|
|
608
611
|
}, {
|
|
609
|
-
default:
|
|
610
|
-
|
|
612
|
+
default: w(() => [
|
|
613
|
+
z(x(G.value), 1)
|
|
611
614
|
]),
|
|
612
615
|
_: 1
|
|
613
|
-
})) :
|
|
616
|
+
})) : u("", !0)
|
|
614
617
|
]),
|
|
615
|
-
|
|
618
|
+
Q.value || aa.value || na.value && R.supportedFileTypes ? (s(), g("div", {
|
|
616
619
|
key: 0,
|
|
617
620
|
id: t(q),
|
|
618
621
|
role: "alert"
|
|
619
622
|
}, [
|
|
620
|
-
|
|
623
|
+
Q.value ? (s(), y(t(I), {
|
|
621
624
|
key: 0,
|
|
622
625
|
class: "b-file-uploader-file-card__error-message"
|
|
623
626
|
}, {
|
|
624
|
-
default:
|
|
625
|
-
|
|
627
|
+
default: w(() => [
|
|
628
|
+
z(x(t(l)("fileExceedsSizeLimit")), 1)
|
|
626
629
|
]),
|
|
627
630
|
_: 1
|
|
628
|
-
})) :
|
|
629
|
-
|
|
631
|
+
})) : u("", !0),
|
|
632
|
+
aa.value ? (s(), y(t(I), {
|
|
630
633
|
key: 1,
|
|
631
634
|
class: "b-file-uploader-file-card__error-message"
|
|
632
635
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
|
|
636
|
+
default: w(() => [
|
|
637
|
+
z(x(t(l)("imageDimensionsExceedLimits")), 1)
|
|
635
638
|
]),
|
|
636
639
|
_: 1
|
|
637
|
-
})) :
|
|
638
|
-
|
|
640
|
+
})) : u("", !0),
|
|
641
|
+
na.value && R.supportedFileTypes ? (s(), y(t(I), {
|
|
639
642
|
key: 2,
|
|
640
643
|
class: "b-file-uploader-file-card__error-message"
|
|
641
644
|
}, {
|
|
642
|
-
default:
|
|
643
|
-
|
|
645
|
+
default: w(() => [
|
|
646
|
+
z(x(t(l)("fileTypeMustBe", { list: R.supportedFileTypes })), 1)
|
|
644
647
|
]),
|
|
645
648
|
_: 1
|
|
646
|
-
})) :
|
|
647
|
-
], 8, Le)) :
|
|
649
|
+
})) : u("", !0)
|
|
650
|
+
], 8, Le)) : u("", !0)
|
|
648
651
|
]),
|
|
649
|
-
|
|
650
|
-
|
|
652
|
+
R.readonly ? u("", !0) : (s(), g("div", Te, [
|
|
653
|
+
U.value ? (s(), y(t(wa), {
|
|
651
654
|
key: 0,
|
|
652
655
|
ref_key: "retryFileButtonRef",
|
|
653
|
-
ref:
|
|
654
|
-
"aria-labelledby": `${t(q)} ${t(
|
|
656
|
+
ref: O,
|
|
657
|
+
"aria-labelledby": `${t(q)} ${t(A)}`,
|
|
655
658
|
variant: "tertiary",
|
|
656
|
-
onClick:
|
|
659
|
+
onClick: B[0] || (B[0] = (ea) => d("retry"))
|
|
657
660
|
}, {
|
|
658
|
-
iconLeft:
|
|
659
|
-
|
|
660
|
-
id: t(
|
|
661
|
-
"svg-title": `${t(l)("retry")} - ${
|
|
661
|
+
iconLeft: w(() => [
|
|
662
|
+
Z(t($i), {
|
|
663
|
+
id: t(A),
|
|
664
|
+
"svg-title": `${t(l)("retry")} - ${R.file.data.name} `
|
|
662
665
|
}, null, 8, ["id", "svg-title"])
|
|
663
666
|
]),
|
|
664
|
-
default:
|
|
665
|
-
|
|
667
|
+
default: w(() => [
|
|
668
|
+
z(" " + x(t(l)("retry")), 1)
|
|
666
669
|
]),
|
|
667
670
|
_: 1
|
|
668
|
-
}, 8, ["aria-labelledby"])) :
|
|
669
|
-
|
|
671
|
+
}, 8, ["aria-labelledby"])) : u("", !0),
|
|
672
|
+
oa.value || P.value ? (s(), y(t(wa), {
|
|
670
673
|
key: 1,
|
|
671
674
|
ref_key: "cancelFileButtonRef",
|
|
672
|
-
ref:
|
|
673
|
-
"aria-labelledby": `${t(q)} ${t(
|
|
675
|
+
ref: _,
|
|
676
|
+
"aria-labelledby": `${t(q)} ${t(v)}`,
|
|
674
677
|
variant: "tertiary",
|
|
675
|
-
onClick:
|
|
678
|
+
onClick: B[1] || (B[1] = (ea) => d("cancel"))
|
|
676
679
|
}, {
|
|
677
|
-
iconLeft:
|
|
678
|
-
|
|
679
|
-
id: t(
|
|
680
|
-
"svg-title": `${t(l)("cancel")} - ${
|
|
680
|
+
iconLeft: w(() => [
|
|
681
|
+
Z(t(Ci), {
|
|
682
|
+
id: t(v),
|
|
683
|
+
"svg-title": `${t(l)("cancel")} - ${R.file.data.name}`
|
|
681
684
|
}, null, 8, ["id", "svg-title"])
|
|
682
685
|
]),
|
|
683
686
|
_: 1
|
|
684
|
-
}, 8, ["aria-labelledby"])) : (s(),
|
|
687
|
+
}, 8, ["aria-labelledby"])) : (s(), y(t(wa), {
|
|
685
688
|
key: 2,
|
|
686
689
|
ref_key: "removeFileButtonRef",
|
|
687
|
-
ref:
|
|
688
|
-
"aria-labelledby": `${t(q)} ${t(
|
|
690
|
+
ref: h,
|
|
691
|
+
"aria-labelledby": `${t(q)} ${t(j)}`,
|
|
689
692
|
variant: "tertiary",
|
|
690
|
-
onClick:
|
|
693
|
+
onClick: B[2] || (B[2] = (ea) => d("remove"))
|
|
691
694
|
}, {
|
|
692
|
-
iconLeft:
|
|
693
|
-
|
|
694
|
-
id: t(
|
|
695
|
-
"svg-title": `${t(l)("remove")} - ${
|
|
695
|
+
iconLeft: w(() => [
|
|
696
|
+
Z(t(yi), {
|
|
697
|
+
id: t(j),
|
|
698
|
+
"svg-title": `${t(l)("remove")} - ${R.file.data.name}`
|
|
696
699
|
}, null, 8, ["id", "svg-title"])
|
|
697
700
|
]),
|
|
698
701
|
_: 1
|
|
@@ -700,14 +703,15 @@ const Na = {
|
|
|
700
703
|
]))
|
|
701
704
|
], 2));
|
|
702
705
|
}
|
|
703
|
-
}),
|
|
706
|
+
}), Ve = /* @__PURE__ */ L(De, [["__scopeId", "data-v-0051c431"]]), Ya = {
|
|
704
707
|
"en-US": {
|
|
705
708
|
maxFileSize: "Max file size: {size}",
|
|
706
709
|
maxImageDimensions: "Max image dimensions: {width} × {height}px",
|
|
707
710
|
maxImageHeight: "Max image height: {height}px",
|
|
708
711
|
maxImageWidth: "Max image width: {width}px",
|
|
709
712
|
maxUpload: "Max upload: {count} file | Max upload: {count} files",
|
|
710
|
-
supportedFileTypes: "Supported file types: {list}"
|
|
713
|
+
supportedFileTypes: "Supported file types: {list}",
|
|
714
|
+
upToSize: "(up to {size})"
|
|
711
715
|
},
|
|
712
716
|
"ja-JP": {
|
|
713
717
|
maxFileSize: "最大ファイルサイズ:{size}",
|
|
@@ -725,10 +729,10 @@ const Na = {
|
|
|
725
729
|
maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos",
|
|
726
730
|
supportedFileTypes: "Tipos de arquivo aceitos: {list}"
|
|
727
731
|
}
|
|
728
|
-
},
|
|
729
|
-
i18n: { messages:
|
|
730
|
-
},
|
|
731
|
-
...
|
|
732
|
+
}, Oe = {
|
|
733
|
+
i18n: { messages: Ya }
|
|
734
|
+
}, qe = /* @__PURE__ */ da({
|
|
735
|
+
...Oe,
|
|
732
736
|
__name: "file-uploader-restrictions",
|
|
733
737
|
props: {
|
|
734
738
|
condensed: { type: Boolean, default: null },
|
|
@@ -739,65 +743,75 @@ const Na = {
|
|
|
739
743
|
supportedFileTypes: { default: null }
|
|
740
744
|
},
|
|
741
745
|
setup(a) {
|
|
742
|
-
const i = a, { t:
|
|
746
|
+
const i = a, { t: n, tc: o, n: p, locale: d } = ra({ messages: Ya }), l = f(() => ({
|
|
743
747
|
"b-file-uploader-restrictions--condensed": i.condensed,
|
|
744
748
|
"b-file-uploader-restrictions--disabled": i.disabled
|
|
745
749
|
}));
|
|
746
|
-
function
|
|
750
|
+
function m(v) {
|
|
747
751
|
return {
|
|
748
|
-
"b-file-uploader-restrictions--error":
|
|
752
|
+
"b-file-uploader-restrictions--error": v
|
|
749
753
|
};
|
|
750
754
|
}
|
|
751
|
-
const
|
|
755
|
+
const h = f(() => i.maxSize && Array.isArray(i.maxSize.value)), _ = f(() => !i.maxSize || h.value ? null : n("maxFileSize", { size: Ca(d.value, i.maxSize.value) })), O = f(() => {
|
|
756
|
+
if (!i.supportedFileTypes)
|
|
757
|
+
return null;
|
|
758
|
+
if (!h.value)
|
|
759
|
+
return i.supportedFileTypes.value;
|
|
760
|
+
let v = i.supportedFileTypes.value;
|
|
761
|
+
return i.maxSize.value.forEach((j) => {
|
|
762
|
+
const A = j.fileType.toUpperCase(), H = n("upToSize", { size: Ca(d.value, j.maxSize) });
|
|
763
|
+
v = v.replace(A, `${A} ${H}`);
|
|
764
|
+
}), v;
|
|
765
|
+
}), q = f(() => {
|
|
752
766
|
if (!i.maxDimensions)
|
|
753
767
|
return null;
|
|
754
768
|
const {
|
|
755
|
-
value: { width:
|
|
769
|
+
value: { width: v, height: j }
|
|
756
770
|
} = i.maxDimensions;
|
|
757
|
-
return
|
|
771
|
+
return v && j ? n("maxImageDimensions", { width: p(v), height: p(j) }) : v ? n("maxImageWidth", { width: p(v) }) : j ? n("maxImageHeight", { height: p(j) }) : null;
|
|
758
772
|
});
|
|
759
|
-
return (
|
|
760
|
-
class:
|
|
773
|
+
return (v, j) => (s(), g("div", {
|
|
774
|
+
class: N(["b-file-uploader-restrictions", l.value])
|
|
761
775
|
}, [
|
|
762
|
-
|
|
776
|
+
v.supportedFileTypes ? (s(), y(t(I), {
|
|
763
777
|
key: 0,
|
|
764
|
-
class:
|
|
778
|
+
class: N(m(v.supportedFileTypes.error || h.value && v.maxSize.error))
|
|
765
779
|
}, {
|
|
766
|
-
default:
|
|
767
|
-
|
|
780
|
+
default: w(() => [
|
|
781
|
+
z(x(t(n)("supportedFileTypes", { list: O.value })), 1)
|
|
768
782
|
]),
|
|
769
783
|
_: 1
|
|
770
|
-
}, 8, ["class"])) :
|
|
771
|
-
|
|
784
|
+
}, 8, ["class"])) : u("", !0),
|
|
785
|
+
!h.value && v.maxSize ? (s(), y(t(I), {
|
|
772
786
|
key: 1,
|
|
773
|
-
class:
|
|
787
|
+
class: N(m(v.maxSize.error))
|
|
774
788
|
}, {
|
|
775
|
-
default:
|
|
776
|
-
|
|
789
|
+
default: w(() => [
|
|
790
|
+
z(x(_.value), 1)
|
|
777
791
|
]),
|
|
778
792
|
_: 1
|
|
779
|
-
}, 8, ["class"])) :
|
|
780
|
-
|
|
793
|
+
}, 8, ["class"])) : u("", !0),
|
|
794
|
+
v.maxDimensions ? (s(), y(t(I), {
|
|
781
795
|
key: 2,
|
|
782
|
-
class:
|
|
796
|
+
class: N(m(v.maxDimensions.error))
|
|
783
797
|
}, {
|
|
784
|
-
default:
|
|
785
|
-
|
|
798
|
+
default: w(() => [
|
|
799
|
+
z(x(q.value), 1)
|
|
786
800
|
]),
|
|
787
801
|
_: 1
|
|
788
|
-
}, 8, ["class"])) :
|
|
789
|
-
|
|
802
|
+
}, 8, ["class"])) : u("", !0),
|
|
803
|
+
v.maxCount ? (s(), y(t(I), {
|
|
790
804
|
key: 3,
|
|
791
|
-
class:
|
|
805
|
+
class: N(m(v.maxCount.error))
|
|
792
806
|
}, {
|
|
793
|
-
default:
|
|
794
|
-
|
|
807
|
+
default: w(() => [
|
|
808
|
+
z(x(t(o)("maxUpload", v.maxCount.value, { count: t(p)(v.maxCount.value) })), 1)
|
|
795
809
|
]),
|
|
796
810
|
_: 1
|
|
797
|
-
}, 8, ["class"])) :
|
|
811
|
+
}, 8, ["class"])) : u("", !0)
|
|
798
812
|
], 2));
|
|
799
813
|
}
|
|
800
|
-
}),
|
|
814
|
+
}), Aa = /* @__PURE__ */ L(qe, [["__scopeId", "data-v-e75ae2de"]]), Ja = {
|
|
801
815
|
"application/prs.cww": ["cww"],
|
|
802
816
|
"application/prs.xsf+xml": ["xsf"],
|
|
803
817
|
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
@@ -1496,8 +1510,8 @@ const Na = {
|
|
|
1496
1510
|
"video/x-smv": ["smv"],
|
|
1497
1511
|
"x-conference/x-cooltalk": ["ice"]
|
|
1498
1512
|
};
|
|
1499
|
-
Object.freeze(
|
|
1500
|
-
const
|
|
1513
|
+
Object.freeze(Ja);
|
|
1514
|
+
const Xa = {
|
|
1501
1515
|
"application/andrew-inset": ["ez"],
|
|
1502
1516
|
"application/appinstaller": ["appinstaller"],
|
|
1503
1517
|
"application/applixware": ["aw"],
|
|
@@ -1849,31 +1863,31 @@ const Ga = {
|
|
|
1849
1863
|
"video/quicktime": ["qt", "mov"],
|
|
1850
1864
|
"video/webm": ["webm"]
|
|
1851
1865
|
};
|
|
1852
|
-
Object.freeze(
|
|
1853
|
-
var M = function(a, i,
|
|
1854
|
-
if (
|
|
1855
|
-
if (typeof i == "function" ? a !== i || !
|
|
1856
|
-
return
|
|
1857
|
-
},
|
|
1858
|
-
class
|
|
1866
|
+
Object.freeze(Xa);
|
|
1867
|
+
var M = function(a, i, n, o) {
|
|
1868
|
+
if (n === "a" && !o) throw new TypeError("Private accessor was defined without a getter");
|
|
1869
|
+
if (typeof i == "function" ? a !== i || !o : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1870
|
+
return n === "m" ? o : n === "a" ? o.call(a) : o ? o.value : i.get(a);
|
|
1871
|
+
}, K, ta, W;
|
|
1872
|
+
class He {
|
|
1859
1873
|
constructor(...i) {
|
|
1860
|
-
|
|
1861
|
-
for (const
|
|
1862
|
-
this.define(
|
|
1874
|
+
K.set(this, /* @__PURE__ */ new Map()), ta.set(this, /* @__PURE__ */ new Map()), W.set(this, /* @__PURE__ */ new Map());
|
|
1875
|
+
for (const n of i)
|
|
1876
|
+
this.define(n);
|
|
1863
1877
|
}
|
|
1864
|
-
define(i,
|
|
1865
|
-
for (let [
|
|
1866
|
-
|
|
1867
|
-
const d = M(this,
|
|
1878
|
+
define(i, n = !1) {
|
|
1879
|
+
for (let [o, p] of Object.entries(i)) {
|
|
1880
|
+
o = o.toLowerCase(), p = p.map((m) => m.toLowerCase()), M(this, W, "f").has(o) || M(this, W, "f").set(o, /* @__PURE__ */ new Set());
|
|
1881
|
+
const d = M(this, W, "f").get(o);
|
|
1868
1882
|
let l = !0;
|
|
1869
|
-
for (let
|
|
1870
|
-
const
|
|
1871
|
-
if (
|
|
1883
|
+
for (let m of p) {
|
|
1884
|
+
const h = m.startsWith("*");
|
|
1885
|
+
if (m = h ? m.slice(1) : m, d == null || d.add(m), l && M(this, ta, "f").set(o, m), l = !1, h)
|
|
1872
1886
|
continue;
|
|
1873
|
-
const
|
|
1874
|
-
if (
|
|
1875
|
-
throw new Error(`"${
|
|
1876
|
-
M(this,
|
|
1887
|
+
const _ = M(this, K, "f").get(m);
|
|
1888
|
+
if (_ && _ != o && !n)
|
|
1889
|
+
throw new Error(`"${o} -> ${m}" conflicts with "${_} -> ${m}". Pass \`force=true\` to override this definition.`);
|
|
1890
|
+
M(this, K, "f").set(m, o);
|
|
1877
1891
|
}
|
|
1878
1892
|
}
|
|
1879
1893
|
return this;
|
|
@@ -1881,33 +1895,33 @@ class qe {
|
|
|
1881
1895
|
getType(i) {
|
|
1882
1896
|
if (typeof i != "string")
|
|
1883
1897
|
return null;
|
|
1884
|
-
const
|
|
1885
|
-
return !(
|
|
1898
|
+
const n = i.replace(/^.*[/\\]/, "").toLowerCase(), o = n.replace(/^.*\./, "").toLowerCase(), p = n.length < i.length;
|
|
1899
|
+
return !(o.length < n.length - 1) && p ? null : M(this, K, "f").get(o) ?? null;
|
|
1886
1900
|
}
|
|
1887
1901
|
getExtension(i) {
|
|
1888
|
-
var
|
|
1889
|
-
return typeof i != "string" ? null : (i = (
|
|
1902
|
+
var n;
|
|
1903
|
+
return typeof i != "string" ? null : (i = (n = i == null ? void 0 : i.split) == null ? void 0 : n.call(i, ";")[0], (i && M(this, ta, "f").get(i.trim().toLowerCase())) ?? null);
|
|
1890
1904
|
}
|
|
1891
1905
|
getAllExtensions(i) {
|
|
1892
|
-
return typeof i != "string" ? null : M(this,
|
|
1906
|
+
return typeof i != "string" ? null : M(this, W, "f").get(i.toLowerCase()) ?? null;
|
|
1893
1907
|
}
|
|
1894
1908
|
_freeze() {
|
|
1895
1909
|
this.define = () => {
|
|
1896
1910
|
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
1897
1911
|
}, Object.freeze(this);
|
|
1898
|
-
for (const i of M(this,
|
|
1912
|
+
for (const i of M(this, W, "f").values())
|
|
1899
1913
|
Object.freeze(i);
|
|
1900
1914
|
return this;
|
|
1901
1915
|
}
|
|
1902
1916
|
_getTestState() {
|
|
1903
1917
|
return {
|
|
1904
|
-
types: M(this,
|
|
1905
|
-
extensions: M(this,
|
|
1918
|
+
types: M(this, K, "f"),
|
|
1919
|
+
extensions: M(this, ta, "f")
|
|
1906
1920
|
};
|
|
1907
1921
|
}
|
|
1908
1922
|
}
|
|
1909
|
-
|
|
1910
|
-
const
|
|
1923
|
+
K = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap();
|
|
1924
|
+
const Ka = new He(Xa, Ja)._freeze(), $a = {
|
|
1911
1925
|
"en-US": {
|
|
1912
1926
|
audioFiles: "audio files",
|
|
1913
1927
|
browseFiles: "Browse files",
|
|
@@ -1945,71 +1959,71 @@ const Ya = new qe(Ga, Wa)._freeze(), ya = {
|
|
|
1945
1959
|
youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir."
|
|
1946
1960
|
}
|
|
1947
1961
|
};
|
|
1948
|
-
function He(a) {
|
|
1949
|
-
return a.includes("/") ? `.${Ya.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1950
|
-
}
|
|
1951
1962
|
function Be(a) {
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1963
|
+
return a.includes("/") ? `.${Ka.getExtension(a).toUpperCase()}` : a.toUpperCase();
|
|
1964
|
+
}
|
|
1965
|
+
function Ae(a) {
|
|
1966
|
+
const { locale: i, t: n } = ra({ messages: $a });
|
|
1967
|
+
return { supportedFileTypeList: f(() => {
|
|
1968
|
+
const p = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
|
|
1969
|
+
return a != null && a.value ? p.format(
|
|
1956
1970
|
a.value.split(",").map((d) => {
|
|
1957
1971
|
switch (d.trim()) {
|
|
1958
1972
|
case "audio/*":
|
|
1959
|
-
return
|
|
1973
|
+
return n("audioFiles");
|
|
1960
1974
|
case "image/*":
|
|
1961
|
-
return
|
|
1975
|
+
return n("imageFiles");
|
|
1962
1976
|
case "video/*":
|
|
1963
|
-
return
|
|
1977
|
+
return n("videoFiles");
|
|
1964
1978
|
default:
|
|
1965
|
-
return
|
|
1979
|
+
return Be(d);
|
|
1966
1980
|
}
|
|
1967
1981
|
})
|
|
1968
1982
|
) : null;
|
|
1969
1983
|
}) };
|
|
1970
1984
|
}
|
|
1971
|
-
function
|
|
1972
|
-
return
|
|
1985
|
+
function Ue(a) {
|
|
1986
|
+
return Ka.getType(a) ?? a;
|
|
1973
1987
|
}
|
|
1974
1988
|
function Ze({ maxCount: a, accept: i }) {
|
|
1975
|
-
const
|
|
1989
|
+
const n = ka({
|
|
1976
1990
|
invalidTypes: !1,
|
|
1977
1991
|
partiallyInvalidTypes: !1,
|
|
1978
1992
|
maxCountOverflow: !1
|
|
1979
|
-
}),
|
|
1993
|
+
}), o = ka({
|
|
1980
1994
|
dragging: !1,
|
|
1981
1995
|
error: !1
|
|
1982
|
-
}),
|
|
1996
|
+
}), p = f(() => i.value ? i.value.split(",").map((h) => Ue(h.trim().toLocaleLowerCase())) : void 0);
|
|
1983
1997
|
function d() {
|
|
1984
|
-
|
|
1998
|
+
o.dragging = !1, o.error = !1, n.invalidTypes = !1, n.partiallyInvalidTypes = !1, n.maxCountOverflow = !1;
|
|
1985
1999
|
}
|
|
1986
|
-
function l(
|
|
1987
|
-
if (
|
|
2000
|
+
function l(m, h) {
|
|
2001
|
+
if (o.dragging = !0, (!h.dataTransfer.types.includes("Files") || m > a.value) && (n.maxCountOverflow = !0, o.error = !0), !p.value)
|
|
1988
2002
|
return;
|
|
1989
|
-
let
|
|
1990
|
-
for (const
|
|
1991
|
-
|
|
1992
|
-
if (
|
|
1993
|
-
|
|
2003
|
+
let _ = 0;
|
|
2004
|
+
for (const O of h.dataTransfer.items)
|
|
2005
|
+
p.value.includes(O.type) && _++;
|
|
2006
|
+
if (_ === 0) {
|
|
2007
|
+
o.error = !0, n.invalidTypes = !0;
|
|
1994
2008
|
return;
|
|
1995
2009
|
}
|
|
1996
|
-
!
|
|
2010
|
+
!n.invalidTypes && _ !== h.dataTransfer.items.length && (o.error = !0, n.partiallyInvalidTypes = !0);
|
|
1997
2011
|
}
|
|
1998
2012
|
return {
|
|
1999
|
-
dragState:
|
|
2000
|
-
dragErrors:
|
|
2013
|
+
dragState: o,
|
|
2014
|
+
dragErrors: n,
|
|
2001
2015
|
resetDragState: d,
|
|
2002
2016
|
onDragEnterValidations: l
|
|
2003
2017
|
};
|
|
2004
2018
|
}
|
|
2005
|
-
const
|
|
2019
|
+
const Ne = ["id", "aria-required", "accept", "disabled", "multiple"], Pe = ["id"], We = ["aria-labelledby", "tabindex"], Ge = {
|
|
2006
2020
|
class: "b-file-uploader__icon",
|
|
2007
2021
|
"aria-hidden": "true"
|
|
2008
|
-
},
|
|
2022
|
+
}, Ye = { class: "b-file-uploader__files" }, Je = {
|
|
2009
2023
|
model: { prop: "modelValue" },
|
|
2010
|
-
i18n: { messages:
|
|
2011
|
-
},
|
|
2012
|
-
...
|
|
2024
|
+
i18n: { messages: $a }
|
|
2025
|
+
}, Xe = /* @__PURE__ */ da({
|
|
2026
|
+
...Je,
|
|
2013
2027
|
__name: "file-uploader",
|
|
2014
2028
|
props: {
|
|
2015
2029
|
accept: { default: null },
|
|
@@ -2030,316 +2044,327 @@ const Ue = ["id", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-la
|
|
|
2030
2044
|
},
|
|
2031
2045
|
emits: ["change", "input", "update:model-value", "error:upload"],
|
|
2032
2046
|
setup(a, { emit: i }) {
|
|
2033
|
-
const { t:
|
|
2034
|
-
function
|
|
2047
|
+
const { t: n, tc: o, n: p } = ra({ messages: $a }), d = i, l = a, { emitValue: m } = wi(d);
|
|
2048
|
+
function h(e) {
|
|
2035
2049
|
return !!e && typeof e.length == "number" && typeof e.item == "function";
|
|
2036
2050
|
}
|
|
2037
|
-
|
|
2038
|
-
|
|
2051
|
+
Ua(() => {
|
|
2052
|
+
h(l.modelValue) || bi(
|
|
2039
2053
|
"BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
|
|
2040
2054
|
"Use FileList instead.",
|
|
2041
2055
|
"2.0.0"
|
|
2042
2056
|
);
|
|
2043
2057
|
});
|
|
2044
|
-
const { supportedFileTypeList:
|
|
2045
|
-
const e = l.condensed ? "" : `${
|
|
2046
|
-
return `${e} ${c} ${C} ${
|
|
2047
|
-
}), { dragState:
|
|
2048
|
-
accept:
|
|
2049
|
-
maxCount:
|
|
2050
|
-
}),
|
|
2058
|
+
const { supportedFileTypeList: _ } = Ae(ba(l, "accept")), O = F("browse-button"), q = F("custom-text"), v = F("drop-files-text"), j = F("comma-text"), A = F("file-uploader-restrictions"), H = F("field-label"), b = S(null), P = S([]), U = S(null), Q = S(null), aa = F("input"), na = F("input-error"), oa = f(() => {
|
|
2059
|
+
const e = l.label ? `${H} ${j}` : "", c = l.condensed ? "" : `${v} ${j}`, C = l.description ? `${q} ${j}` : "", $ = `${A} ${j}`;
|
|
2060
|
+
return `${e} ${c} ${C} ${$} ${O}`;
|
|
2061
|
+
}), { dragState: pa, dragErrors: G, resetDragState: Y, onDragEnterValidations: la } = Ze({
|
|
2062
|
+
accept: ba(l, "accept"),
|
|
2063
|
+
maxCount: ba(l, "maxCount")
|
|
2064
|
+
}), sa = f(() => {
|
|
2051
2065
|
var e, c, C;
|
|
2052
2066
|
return {
|
|
2053
2067
|
condensed: l.condensed,
|
|
2054
2068
|
disabled: l.disabled,
|
|
2055
|
-
maxCount:
|
|
2069
|
+
maxCount: J.value ? {
|
|
2056
2070
|
value: l.maxCount,
|
|
2057
|
-
error:
|
|
2071
|
+
error: G.maxCountOverflow || za.value
|
|
2058
2072
|
} : null,
|
|
2059
2073
|
maxDimensions: l.maxDimensions ? {
|
|
2060
2074
|
value: l.maxDimensions,
|
|
2061
|
-
error: (e =
|
|
2075
|
+
error: (e = b.value) == null ? void 0 : e.some(($) => $.errors.includes(E.ERROR_DIMENSIONS))
|
|
2062
2076
|
} : null,
|
|
2063
2077
|
maxSize: l.maxSize ? {
|
|
2064
2078
|
value: l.maxSize,
|
|
2065
|
-
error: (c =
|
|
2079
|
+
error: (c = b.value) == null ? void 0 : c.some(($) => $.errors.includes(E.ERROR_SIZE))
|
|
2066
2080
|
} : null,
|
|
2067
|
-
supportedFileTypes:
|
|
2068
|
-
value:
|
|
2069
|
-
error:
|
|
2081
|
+
supportedFileTypes: _.value ? {
|
|
2082
|
+
value: _.value,
|
|
2083
|
+
error: G.invalidTypes || G.partiallyInvalidTypes || ((C = b.value) == null ? void 0 : C.some(($) => $.errors.includes(E.ERROR_TYPE)))
|
|
2070
2084
|
} : null
|
|
2071
2085
|
};
|
|
2072
|
-
}),
|
|
2086
|
+
}), ia = S(), ma = f(() => ({
|
|
2073
2087
|
[`b-file-uploader--${ca.DISABLED}`]: l.disabled,
|
|
2074
|
-
[`b-file-uploader--${ca.DRAG_OVER}`]:
|
|
2075
|
-
[`b-file-uploader--${ca.ERROR}`]:
|
|
2088
|
+
[`b-file-uploader--${ca.DRAG_OVER}`]: pa.dragging,
|
|
2089
|
+
[`b-file-uploader--${ca.ERROR}`]: va.value,
|
|
2076
2090
|
"b-file-uploader--condensed": l.condensed
|
|
2077
|
-
})),
|
|
2091
|
+
})), J = f(() => l.maxCount > 1), ua = f(() => {
|
|
2078
2092
|
var e;
|
|
2079
|
-
return l.maxCount && ((e =
|
|
2080
|
-
}),
|
|
2093
|
+
return l.maxCount && ((e = b.value) == null ? void 0 : e.length) >= l.maxCount || l.readonly;
|
|
2094
|
+
}), R = f(() => {
|
|
2081
2095
|
var e;
|
|
2082
|
-
return (e =
|
|
2083
|
-
}),
|
|
2084
|
-
|
|
2096
|
+
return (e = b.value) == null ? void 0 : e.some((c) => c.state === "loading");
|
|
2097
|
+
}), B = (e) => (c) => {
|
|
2098
|
+
P.value[e] = c;
|
|
2085
2099
|
};
|
|
2086
|
-
function
|
|
2100
|
+
function ea(e) {
|
|
2087
2101
|
if (e) {
|
|
2088
|
-
|
|
2089
|
-
const c =
|
|
2090
|
-
d("change", c),
|
|
2102
|
+
li(e), si(e);
|
|
2103
|
+
const c = ci(e);
|
|
2104
|
+
d("change", c), m(c);
|
|
2091
2105
|
} else
|
|
2092
|
-
d("change", void 0),
|
|
2106
|
+
d("change", void 0), m(void 0);
|
|
2093
2107
|
}
|
|
2094
|
-
const
|
|
2108
|
+
const va = f(() => !!l.errorMessage || pa.error), za = f(() => {
|
|
2095
2109
|
var e;
|
|
2096
|
-
return ((e =
|
|
2097
|
-
}),
|
|
2110
|
+
return ((e = b.value) == null ? void 0 : e.length) > l.maxCount;
|
|
2111
|
+
}), Qa = S(!1), ai = f(() => {
|
|
2098
2112
|
var e;
|
|
2099
|
-
return (e =
|
|
2113
|
+
return (e = b.value) == null ? void 0 : e.some((c) => c.state === "error");
|
|
2100
2114
|
});
|
|
2101
|
-
|
|
2102
|
-
|
|
2115
|
+
ya(ai, (e) => {
|
|
2116
|
+
R.value || d("error:upload", e);
|
|
2103
2117
|
});
|
|
2104
|
-
async function
|
|
2118
|
+
async function fa() {
|
|
2105
2119
|
var e;
|
|
2106
|
-
if (await
|
|
2107
|
-
(e =
|
|
2120
|
+
if (await gi(), b.value.length === l.maxCount) {
|
|
2121
|
+
(e = P.value[0]) == null || e.focus();
|
|
2108
2122
|
return;
|
|
2109
2123
|
}
|
|
2110
|
-
|
|
2124
|
+
Q.value.focus();
|
|
2111
2125
|
}
|
|
2112
|
-
async function
|
|
2113
|
-
|
|
2126
|
+
async function _a(e) {
|
|
2127
|
+
b.value = b.value.filter(({ id: c }) => c !== e.id), await fa(), ea(b.value);
|
|
2114
2128
|
}
|
|
2115
|
-
function
|
|
2116
|
-
const c =
|
|
2117
|
-
id:
|
|
2129
|
+
function xa(e) {
|
|
2130
|
+
const c = ka({
|
|
2131
|
+
id: F("file"),
|
|
2118
2132
|
data: e,
|
|
2119
2133
|
errors: [],
|
|
2120
2134
|
progress: null,
|
|
2121
|
-
state:
|
|
2122
|
-
type:
|
|
2135
|
+
state: D.LOADING,
|
|
2136
|
+
type: Hi(e)
|
|
2123
2137
|
});
|
|
2124
|
-
return
|
|
2138
|
+
return Bi(c, l.accept, l.maxDimensions), c;
|
|
2125
2139
|
}
|
|
2126
|
-
function
|
|
2140
|
+
function ii(e) {
|
|
2127
2141
|
var c;
|
|
2128
|
-
((c =
|
|
2142
|
+
((c = b.value) == null ? void 0 : c.length) === l.maxCount && e.preventDefault();
|
|
2129
2143
|
}
|
|
2130
|
-
async function
|
|
2144
|
+
async function ja(e) {
|
|
2131
2145
|
if (l.maxCount === 1 && e.length > l.maxCount) {
|
|
2132
|
-
|
|
2146
|
+
ga(), Y();
|
|
2133
2147
|
return;
|
|
2134
2148
|
}
|
|
2135
|
-
|
|
2149
|
+
J.value ? b.value = [...b.value || [], ...Array.from(e).map((c) => xa(c))] : (b.value = [xa(e[0])], await fa()), ea(b.value);
|
|
2136
2150
|
}
|
|
2137
|
-
function
|
|
2138
|
-
var C,
|
|
2151
|
+
function ei(e) {
|
|
2152
|
+
var C, $;
|
|
2139
2153
|
if (l.disabled)
|
|
2140
2154
|
return;
|
|
2141
|
-
|
|
2142
|
-
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + (((
|
|
2155
|
+
ia.value = e.target;
|
|
2156
|
+
const c = (((C = e.dataTransfer.items) == null ? void 0 : C.length) ?? 0) + ((($ = b.value) == null ? void 0 : $.length) ?? 0);
|
|
2143
2157
|
la(c, e);
|
|
2144
2158
|
}
|
|
2145
|
-
function
|
|
2146
|
-
|
|
2159
|
+
function ga() {
|
|
2160
|
+
ia.value = null;
|
|
2147
2161
|
}
|
|
2148
|
-
function
|
|
2149
|
-
|
|
2162
|
+
function ti(e) {
|
|
2163
|
+
ia.value === e.target && (ga(), Y());
|
|
2150
2164
|
}
|
|
2151
|
-
function
|
|
2165
|
+
function ni(e) {
|
|
2152
2166
|
e.preventDefault(), l.disabled && (e.dataTransfer.dropEffect = "none");
|
|
2153
2167
|
}
|
|
2154
|
-
async function
|
|
2168
|
+
async function oi(e) {
|
|
2155
2169
|
var c;
|
|
2156
|
-
l.disabled || (!
|
|
2170
|
+
l.disabled || (!G.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && ja(e.dataTransfer.files), ga(), Y());
|
|
2157
2171
|
}
|
|
2158
|
-
async function
|
|
2172
|
+
async function pi() {
|
|
2159
2173
|
var e;
|
|
2160
|
-
(e =
|
|
2174
|
+
(e = U.value.files) != null && e.length && ja(U.value.files), U.value.value = "", await fa();
|
|
2161
2175
|
}
|
|
2162
|
-
|
|
2176
|
+
ya(
|
|
2163
2177
|
() => l.modelValue,
|
|
2164
2178
|
(e) => {
|
|
2165
|
-
if (e &&
|
|
2179
|
+
if (e && h(e)) {
|
|
2166
2180
|
const C = Array.from(e);
|
|
2167
|
-
|
|
2168
|
-
} else !e &&
|
|
2181
|
+
b.value = C.map(($) => xa($));
|
|
2182
|
+
} else !e && b.value && (b.value = null);
|
|
2169
2183
|
},
|
|
2170
2184
|
{ immediate: !0 }
|
|
2171
2185
|
);
|
|
2172
|
-
function
|
|
2186
|
+
function li(e) {
|
|
2173
2187
|
const c = l.maxCount && e.length <= l.maxCount;
|
|
2174
|
-
|
|
2188
|
+
Qa.value = !c;
|
|
2175
2189
|
}
|
|
2176
|
-
function
|
|
2190
|
+
function si(e) {
|
|
2177
2191
|
l.maxSize && e.forEach((c) => {
|
|
2178
2192
|
const C = c;
|
|
2179
|
-
|
|
2193
|
+
let $;
|
|
2194
|
+
if (Array.isArray(l.maxSize)) {
|
|
2195
|
+
const T = l.maxSize.find(
|
|
2196
|
+
(ha) => Wa(C.data, ha.fileType)
|
|
2197
|
+
);
|
|
2198
|
+
$ = T == null ? void 0 : T.maxSize;
|
|
2199
|
+
} else
|
|
2200
|
+
$ = l.maxSize;
|
|
2201
|
+
$ && C.data.size > $ && (C.state = D.ERROR, C.errors.includes(E.ERROR_SIZE) || C.errors.push(E.ERROR_SIZE));
|
|
2180
2202
|
});
|
|
2181
2203
|
}
|
|
2182
|
-
function
|
|
2204
|
+
function ci(e) {
|
|
2183
2205
|
const c = e.filter(
|
|
2184
|
-
({ errors: C }) => !C.includes(
|
|
2206
|
+
({ errors: C }) => !C.includes(E.ERROR_LOAD) && !C.includes(E.ERROR_SIZE)
|
|
2185
2207
|
);
|
|
2186
2208
|
if (c.length) {
|
|
2187
2209
|
const C = new DataTransfer();
|
|
2188
|
-
return c.forEach(({ data:
|
|
2189
|
-
C.items.add(
|
|
2210
|
+
return c.forEach(({ data: $, id: T }) => {
|
|
2211
|
+
C.items.add($);
|
|
2190
2212
|
}), C.files;
|
|
2191
2213
|
}
|
|
2192
2214
|
}
|
|
2193
2215
|
return (e, c) => {
|
|
2194
|
-
var C,
|
|
2216
|
+
var C, $;
|
|
2195
2217
|
return s(), g("div", {
|
|
2196
|
-
class:
|
|
2218
|
+
class: N(["b-file-uploader", ma.value])
|
|
2197
2219
|
}, [
|
|
2198
|
-
|
|
2220
|
+
Z(t(Ri), {
|
|
2221
|
+
id: t(H),
|
|
2199
2222
|
class: "b-file-uploader__label",
|
|
2200
|
-
for: t(
|
|
2223
|
+
for: t(aa),
|
|
2201
2224
|
label: e.label,
|
|
2202
2225
|
optional: e.optional,
|
|
2203
2226
|
required: e.required,
|
|
2204
2227
|
"tooltip-text": e.tooltipText
|
|
2205
|
-
}, null, 8, ["for", "label", "optional", "required", "tooltip-text"]),
|
|
2206
|
-
|
|
2207
|
-
id: t(
|
|
2228
|
+
}, null, 8, ["id", "for", "label", "optional", "required", "tooltip-text"]),
|
|
2229
|
+
r("input", {
|
|
2230
|
+
id: t(aa),
|
|
2208
2231
|
ref_key: "inputRef",
|
|
2209
|
-
ref:
|
|
2210
|
-
"aria-
|
|
2232
|
+
ref: U,
|
|
2233
|
+
"aria-required": e.required,
|
|
2211
2234
|
type: "file",
|
|
2212
2235
|
tabindex: "-1",
|
|
2213
2236
|
"data-testid": "input",
|
|
2214
2237
|
class: "b-file-uploader__input",
|
|
2215
2238
|
accept: e.accept,
|
|
2216
2239
|
disabled: e.disabled,
|
|
2217
|
-
multiple:
|
|
2218
|
-
onChange:
|
|
2219
|
-
onClick:
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2240
|
+
multiple: J.value,
|
|
2241
|
+
onChange: pi,
|
|
2242
|
+
onClick: ii,
|
|
2243
|
+
onInvalid: c[0] || (c[0] = X(() => {
|
|
2244
|
+
}, ["prevent"]))
|
|
2245
|
+
}, null, 40, Ne),
|
|
2246
|
+
r("span", {
|
|
2247
|
+
id: t(j),
|
|
2223
2248
|
"aria-hidden": "true",
|
|
2224
2249
|
class: "b-file-uploader__invisible-comma"
|
|
2225
|
-
}, " , ", 8,
|
|
2226
|
-
|
|
2250
|
+
}, " , ", 8, Pe),
|
|
2251
|
+
ua.value ? u("", !0) : (s(), g("div", {
|
|
2227
2252
|
key: 0,
|
|
2228
2253
|
ref_key: "dropAreaRef",
|
|
2229
|
-
ref:
|
|
2230
|
-
"aria-labelledby":
|
|
2254
|
+
ref: Q,
|
|
2255
|
+
"aria-labelledby": oa.value,
|
|
2231
2256
|
class: "b-file-uploader__area",
|
|
2232
2257
|
role: "button",
|
|
2233
2258
|
tabindex: e.disabled ? -1 : 0,
|
|
2234
|
-
onClick: c[
|
|
2235
|
-
onDragenter:
|
|
2236
|
-
onDragleave:
|
|
2237
|
-
onDrop:
|
|
2238
|
-
onDragover:
|
|
2259
|
+
onClick: c[1] || (c[1] = (T) => U.value.click()),
|
|
2260
|
+
onDragenter: X(ei, ["stop", "prevent"]),
|
|
2261
|
+
onDragleave: X(ti, ["stop", "prevent"]),
|
|
2262
|
+
onDrop: X(oi, ["stop", "prevent"]),
|
|
2263
|
+
onDragover: ni,
|
|
2239
2264
|
onKeydownCapture: [
|
|
2240
|
-
c[
|
|
2241
|
-
c[
|
|
2265
|
+
c[2] || (c[2] = Ea(X((T) => U.value.click(), ["prevent"]), ["enter"])),
|
|
2266
|
+
c[3] || (c[3] = Ea(X((T) => U.value.click(), ["prevent"]), ["space"]))
|
|
2242
2267
|
]
|
|
2243
2268
|
}, [
|
|
2244
|
-
|
|
2245
|
-
|
|
2269
|
+
r("div", Ge, [
|
|
2270
|
+
va.value ? (s(), y(t(Na), { key: 0 })) : (s(), y(t(Li), { key: 1 }))
|
|
2246
2271
|
]),
|
|
2247
|
-
e.condensed ?
|
|
2248
|
-
|
|
2249
|
-
id: t(
|
|
2272
|
+
e.condensed ? u("", !0) : (s(), g(Ia, { key: 0 }, [
|
|
2273
|
+
Z(t(I), {
|
|
2274
|
+
id: t(v),
|
|
2250
2275
|
el: "span",
|
|
2251
2276
|
strongest: "",
|
|
2252
2277
|
class: "b-file-uploader__title"
|
|
2253
2278
|
}, {
|
|
2254
|
-
default:
|
|
2255
|
-
|
|
2279
|
+
default: w(() => [
|
|
2280
|
+
z(x(t(o)("dropFiles", e.maxCount)), 1)
|
|
2256
2281
|
]),
|
|
2257
2282
|
_: 1
|
|
2258
2283
|
}, 8, ["id"]),
|
|
2259
|
-
e.description ? (s(),
|
|
2284
|
+
e.description ? (s(), y(t(I), {
|
|
2260
2285
|
key: 0,
|
|
2261
2286
|
id: t(q),
|
|
2262
2287
|
el: "span",
|
|
2263
2288
|
class: "b-file-uploader__description"
|
|
2264
2289
|
}, {
|
|
2265
|
-
default:
|
|
2266
|
-
|
|
2290
|
+
default: w(() => [
|
|
2291
|
+
z(x(e.description), 1)
|
|
2267
2292
|
]),
|
|
2268
2293
|
_: 1
|
|
2269
|
-
}, 8, ["id"])) :
|
|
2270
|
-
|
|
2294
|
+
}, 8, ["id"])) : u("", !0),
|
|
2295
|
+
Z(t(Aa), V(sa.value, { id: t(A) }), null, 16, ["id"])
|
|
2271
2296
|
], 64)),
|
|
2272
|
-
|
|
2273
|
-
id: t(
|
|
2297
|
+
Z(t(I), {
|
|
2298
|
+
id: t(O),
|
|
2274
2299
|
stronger: "",
|
|
2275
2300
|
class: "b-file-uploader__button"
|
|
2276
2301
|
}, {
|
|
2277
|
-
default:
|
|
2278
|
-
|
|
2302
|
+
default: w(() => [
|
|
2303
|
+
z(x(t(n)("browseFiles")), 1)
|
|
2279
2304
|
]),
|
|
2280
2305
|
_: 1
|
|
2281
2306
|
}, 8, ["id"])
|
|
2282
|
-
], 40,
|
|
2283
|
-
|
|
2307
|
+
], 40, We)),
|
|
2308
|
+
va.value && e.errorMessage ? (s(), y(t(Ei), {
|
|
2284
2309
|
key: 1,
|
|
2285
|
-
id: t(
|
|
2310
|
+
id: t(na),
|
|
2286
2311
|
"error-message": e.errorMessage,
|
|
2287
2312
|
class: "b-file-uploader__error-message"
|
|
2288
|
-
}, null, 8, ["id", "error-message"])) :
|
|
2289
|
-
e.condensed && e.description ? (s(),
|
|
2313
|
+
}, null, 8, ["id", "error-message"])) : u("", !0),
|
|
2314
|
+
e.condensed && e.description ? (s(), y(t(I), {
|
|
2290
2315
|
key: 2,
|
|
2291
2316
|
id: t(q),
|
|
2292
2317
|
"aria-hidden": "true",
|
|
2293
2318
|
el: "span",
|
|
2294
2319
|
class: "b-file-uploader__description b-file-uploader__description--condensed"
|
|
2295
2320
|
}, {
|
|
2296
|
-
default:
|
|
2297
|
-
|
|
2321
|
+
default: w(() => [
|
|
2322
|
+
z(x(e.description), 1)
|
|
2298
2323
|
]),
|
|
2299
2324
|
_: 1
|
|
2300
|
-
}, 8, ["id"])) :
|
|
2301
|
-
e.condensed ? (s(),
|
|
2302
|
-
|
|
2325
|
+
}, 8, ["id"])) : u("", !0),
|
|
2326
|
+
e.condensed ? (s(), y(t(Aa), V({ key: 3 }, sa.value, { id: t(A) }), null, 16, ["id"])) : u("", !0),
|
|
2327
|
+
za.value ? (s(), y(t(hi), {
|
|
2303
2328
|
key: 4,
|
|
2304
2329
|
type: "critical"
|
|
2305
2330
|
}, {
|
|
2306
|
-
description:
|
|
2307
|
-
|
|
2331
|
+
description: w(() => [
|
|
2332
|
+
z(x(t(n)("youHaveExceededTheMaximum", { count: t(p)(l.maxCount) })), 1)
|
|
2308
2333
|
]),
|
|
2309
|
-
default:
|
|
2310
|
-
|
|
2334
|
+
default: w(() => [
|
|
2335
|
+
z(x(t(n)("tooManyFiles")) + " ", 1)
|
|
2311
2336
|
]),
|
|
2312
2337
|
_: 1
|
|
2313
|
-
})) :
|
|
2314
|
-
|
|
2315
|
-
(s(!0), g(
|
|
2338
|
+
})) : u("", !0),
|
|
2339
|
+
Za(r("div", Ye, [
|
|
2340
|
+
(s(!0), g(Ia, null, fi(b.value, (T, ha) => (s(), y(t(Ve), {
|
|
2316
2341
|
ref_for: !0,
|
|
2317
|
-
ref:
|
|
2318
|
-
key:
|
|
2319
|
-
file:
|
|
2320
|
-
"supported-file-types": t(
|
|
2342
|
+
ref: B(ha),
|
|
2343
|
+
key: T.id,
|
|
2344
|
+
file: T,
|
|
2345
|
+
"supported-file-types": t(_),
|
|
2321
2346
|
readonly: e.readonly,
|
|
2322
|
-
onCancel: (
|
|
2323
|
-
onRemove: (
|
|
2347
|
+
onCancel: (di) => _a(T),
|
|
2348
|
+
onRemove: (di) => _a(T)
|
|
2324
2349
|
}, null, 8, ["file", "supported-file-types", "readonly", "onCancel", "onRemove"]))), 128))
|
|
2325
2350
|
], 512), [
|
|
2326
|
-
[
|
|
2351
|
+
[xi, (C = b.value) == null ? void 0 : C.length]
|
|
2327
2352
|
]),
|
|
2328
|
-
!((
|
|
2353
|
+
!(($ = b.value) != null && $.length) && e.readonly ? (s(), y(t(I), {
|
|
2329
2354
|
key: 5,
|
|
2330
2355
|
class: "b-file-uploader__no-files",
|
|
2331
2356
|
wide: ""
|
|
2332
2357
|
}, {
|
|
2333
|
-
default:
|
|
2334
|
-
|
|
2358
|
+
default: w(() => [
|
|
2359
|
+
z(x(t(n)("noFilesUploaded")), 1)
|
|
2335
2360
|
]),
|
|
2336
2361
|
_: 1
|
|
2337
|
-
})) :
|
|
2362
|
+
})) : u("", !0)
|
|
2338
2363
|
], 2);
|
|
2339
2364
|
};
|
|
2340
2365
|
}
|
|
2341
|
-
}),
|
|
2366
|
+
}), gt = /* @__PURE__ */ L(Xe, [["__scopeId", "data-v-9e27903c"]]);
|
|
2342
2367
|
export {
|
|
2343
|
-
|
|
2368
|
+
gt as f
|
|
2344
2369
|
};
|
|
2345
|
-
//# sourceMappingURL=file-uploader.
|
|
2370
|
+
//# sourceMappingURL=file-uploader.BnmNI1O7.js.map
|