@adyen/bento-vue3 1.88.1 → 1.89.2

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.
Files changed (366) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +722 -524
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/ai-button.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/data-grid-template.css +1 -1
  17. package/dist/assets/data-grid.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/list-item.css +1 -0
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/radio-input.css +1 -1
  26. package/dist/assets/selection-card-group.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/timeline-item.css +1 -1
  29. package/dist/assets/use-cached-selected-values.css +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
  35. package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
  36. package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
  37. package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
  38. package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
  39. package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
  41. package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
  42. package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
  43. package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
  45. package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
  46. package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
  47. package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
  48. package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
  49. package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
  50. package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
  51. package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
  52. package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
  53. package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
  54. package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
  55. package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
  56. package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
  57. package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
  58. package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
  59. package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
  61. package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
  62. package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
  63. package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
  64. package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
  65. package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
  66. package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
  67. package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
  68. package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
  69. package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
  70. package/dist/chunks/click-outside.BPylIosK.js +20 -0
  71. package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
  72. package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
  73. package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
  74. package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
  75. package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
  76. package/dist/chunks/constructNow.D9uRk678.js +8 -0
  77. package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
  78. package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
  79. package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
  80. package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
  81. package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
  82. package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
  83. package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
  84. package/dist/chunks/country.types.DjpMGz7a.js +19 -0
  85. package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
  86. package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
  87. package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
  88. package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
  89. package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
  90. package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
  91. package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
  92. package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
  93. package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
  94. package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
  95. package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
  96. package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
  97. package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
  98. package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
  99. package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
  100. package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
  101. package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
  102. package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
  103. package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
  104. package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
  105. package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
  106. package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
  107. package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
  108. package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
  109. package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
  110. package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
  111. package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
  112. package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
  113. package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
  114. package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
  115. package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
  116. package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
  117. package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
  118. package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
  119. package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
  120. package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
  121. package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
  122. package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
  123. package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
  124. package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
  125. package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
  126. package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
  127. package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
  128. package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
  129. package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
  130. package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
  131. package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
  132. package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
  133. package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
  134. package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
  135. package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
  137. package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
  138. package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
  139. package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
  140. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
  141. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
  142. package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
  143. package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
  144. package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
  145. package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
  146. package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
  147. package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
  148. package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
  149. package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
  150. package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
  151. package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
  152. package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
  153. package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
  154. package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
  155. package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
  156. package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
  157. package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
  158. package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
  159. package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
  160. package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
  161. package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
  162. package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
  163. package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
  164. package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
  165. package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
  166. package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
  167. package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
  168. package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
  169. package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
  170. package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
  171. package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
  172. package/dist/chunks/link.D6D6YGsN.js +113 -0
  173. package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
  174. package/dist/chunks/list-item.DO5uULke.js +128 -0
  175. package/dist/chunks/list-item.DO5uULke.js.map +1 -0
  176. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
  177. package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
  178. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
  179. package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
  180. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
  181. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
  182. package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
  183. package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
  184. package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
  185. package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
  186. package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
  187. package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
  188. package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
  189. package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
  190. package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
  191. package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
  192. package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
  193. package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
  194. package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
  195. package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
  196. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
  197. package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
  198. package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
  199. package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
  200. package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
  201. package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
  202. package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
  203. package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
  204. package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
  205. package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
  206. package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
  207. package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
  208. package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
  209. package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
  210. package/dist/chunks/status.H00BAmRx.js +42 -0
  211. package/dist/chunks/status.H00BAmRx.js.map +1 -0
  212. package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
  213. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
  214. package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
  215. package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
  216. package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
  217. package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
  218. package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
  219. package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
  220. package/dist/chunks/tab.mR5uUSdp.js +265 -0
  221. package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
  222. package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
  223. package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
  224. package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
  225. package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
  226. package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
  227. package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
  228. package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
  229. package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
  230. package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
  231. package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
  232. package/dist/chunks/tooltip.CbADa_4p.js +199 -0
  233. package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
  234. package/dist/chunks/truncate.DmCXQmeb.js +8 -0
  235. package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
  236. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
  237. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
  238. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
  239. package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
  240. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
  241. package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
  242. package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
  243. package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
  244. package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
  245. package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
  246. package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
  247. package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
  248. package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
  249. package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
  250. package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
  251. package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
  252. package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
  253. package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
  254. package/dist/chunks/utils.DWmc2mUI.js +19 -0
  255. package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
  256. package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
  257. package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
  258. package/dist/click-outside.js +1 -1
  259. package/dist/code-snippet.js +1 -1
  260. package/dist/country.js +3 -3
  261. package/dist/currency.js +1 -1
  262. package/dist/dashboard-template.js +1 -1
  263. package/dist/dashed-underline.js +1 -1
  264. package/dist/data-grid-template.js +1 -1
  265. package/dist/data-grid.js +1 -1
  266. package/dist/date-picker.js +2 -2
  267. package/dist/date-range-picker.js +2 -2
  268. package/dist/date.js +1 -1
  269. package/dist/draggable-handle.js +4 -28
  270. package/dist/draggable-handle.js.map +1 -1
  271. package/dist/dropdown.js +4 -4
  272. package/dist/empty-state.js +1 -1
  273. package/dist/file-uploader.js +1 -1
  274. package/dist/filter-bar.js +1 -1
  275. package/dist/focus-trap.js +1 -1
  276. package/dist/form-layout.js +1 -1
  277. package/dist/header-with-views.js +1 -1
  278. package/dist/header.js +1 -1
  279. package/dist/index.js +241 -241
  280. package/dist/index.js.map +1 -1
  281. package/dist/info-icon.js +1 -1
  282. package/dist/input-field-password.js +1 -1
  283. package/dist/input-field-phone-number.js +1 -1
  284. package/dist/input-field.js +1 -1
  285. package/dist/inspector.js +1 -1
  286. package/dist/internal.js +13 -13
  287. package/dist/layout.js +1 -1
  288. package/dist/link.js +1 -1
  289. package/dist/list.js +6 -0
  290. package/dist/list.js.map +1 -0
  291. package/dist/menu.js +1 -1
  292. package/dist/modal-fullscreen.js +1 -1
  293. package/dist/modal.js +2 -2
  294. package/dist/pagination.js +1 -1
  295. package/dist/popover.js +2 -2
  296. package/dist/popper-container.js +1 -1
  297. package/dist/promo-banner.js +1 -1
  298. package/dist/radio-group.js +1 -1
  299. package/dist/rich-text-editor.js +1 -1
  300. package/dist/search-bar.js +2 -2
  301. package/dist/secondary-nav.js +1 -1
  302. package/dist/segmented-control.js +1 -1
  303. package/dist/selection-card.js +1 -1
  304. package/dist/sidepanel.js +1 -1
  305. package/dist/status.js +4 -3
  306. package/dist/status.js.map +1 -1
  307. package/dist/stepper.js +1 -1
  308. package/dist/structured-list.js +1 -1
  309. package/dist/summary-grid.js +1 -1
  310. package/dist/tabs.js +1 -1
  311. package/dist/tag.js +1 -1
  312. package/dist/textarea.js +1 -1
  313. package/dist/timeline.js +1 -1
  314. package/dist/toast.js +1 -1
  315. package/dist/toggle.js +1 -1
  316. package/dist/tutorial.js +1 -1
  317. package/dist/use-form-v4.js +331 -341
  318. package/dist/use-form-v4.js.map +1 -1
  319. package/dist/web-types.json +1 -1
  320. package/package.json +7 -7
  321. package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
  322. package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
  323. package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
  324. package/dist/chunks/calendar.vM3abC8y.js +0 -1234
  325. package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
  326. package/dist/chunks/constructNow.CIc7d13I.js +0 -8
  327. package/dist/chunks/country.types.BBQbWkTY.js +0 -773
  328. package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
  329. package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
  330. package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
  331. package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
  332. package/dist/chunks/date-picker.D5B_SECc.js +0 -251
  333. package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
  334. package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
  335. package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
  336. package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
  337. package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
  338. package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
  339. package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
  340. package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
  341. package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
  342. package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
  343. package/dist/chunks/link.DTCn2EtX.js +0 -116
  344. package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
  345. package/dist/chunks/pagination.B32UgSoH.js +0 -488
  346. package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
  347. package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
  348. package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
  349. package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
  350. package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
  351. package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
  352. package/dist/chunks/tab.DRrnMCxe.js +0 -273
  353. package/dist/chunks/textarea.CvI2InIB.js +0 -255
  354. package/dist/chunks/timeline-item.BooD99hL.js +0 -427
  355. package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
  356. package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
  357. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  358. package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
  359. package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
  360. package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
  361. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
  362. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
  363. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  364. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  365. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  366. package/dist/chunks/utils.BzUwtTXc.js +0 -21
@@ -1,38 +1,38 @@
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";
1
+ import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as r, defineComponent as ca, unref as t, createBlock as y, Transition as di, withCtx as w, renderSlot as ja, TransitionGroup as ri, ref as F, onUnmounted as mi, onMounted as Aa, computed as f, watch as wa, normalizeClass as Z, createVNode as U, resolveDynamicComponent as ui, withDirectives as Ua, createTextVNode as $, reactive as ya, toRef as ha, withModifiers as J, withKeys as Ea, Fragment as Ra, renderList as vi, vShow as fi, nextTick as xi } from "vue";
2
2
  /* empty css */
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
- import { u as ra } from "./index.B875RXHM.js";
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";
3
+ import { _ as S } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import { W as Za } from "./warning-filled.BzyK_mMj.js";
5
+ import { B as gi } from "./alert.C_8-VNi_.js";
6
+ import { B as R, d as hi } from "./typography.B3J6_tYk.js";
7
+ import { u as da } from "./index.B875RXHM.js";
8
+ import { g as I } from "./generate-uid.DBWe4g6T.js";
9
+ import { u as bi } from "./form-field.D_2g7vaP.js";
10
+ import { i as Na } from "./index.CWuzEfiV.js";
11
+ import { B as wi } from "./bin.Cude0fiB.js";
12
+ import { C as yi } from "./checkmark-circle-fill.DugX5fbG.js";
13
+ import { C as ki } from "./cross.CCHdi6v3.js";
14
+ import { R as Ci } from "./refresh.C31KClfx.js";
15
+ import { b as $i } from "./tooltip.CbADa_4p.js";
16
+ import { B as ba } from "./button.DWF7FSIw.js";
17
+ import { B as zi } from "./link.D6D6YGsN.js";
18
+ import { B as _i } from "./loading-indicator.BPol9I84.js";
19
+ import { F as ji, E as Ei } from "./error-message.DCgo8q20.js";
20
20
  import "../assets/file-uploader.css";
21
- let Fa = 0;
22
- const Ii = {
21
+ let Ia = 0;
22
+ const Ri = {
23
23
  beforeCreate() {
24
- this.uuid = Fa.toString(), Fa += 1;
24
+ this.uuid = Ia.toString(), Ia += 1;
25
25
  }
26
- }, Fi = { key: 0 };
27
- function Si(a, i, n, o, p, d) {
28
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
26
+ }, Ii = { key: 0 };
27
+ function Fi(a, i, p, n, o, c) {
28
+ return s(), g("svg", D({ 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", Fi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
35
+ a.$attrs["svg-title"] ? (s(), g("title", Ii, x(a.$attrs["svg-title"]), 1)) : u("", !0),
36
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"
@@ -43,72 +43,72 @@ function Si(a, i, n, o, p, d) {
43
43
  }, null, -1))
44
44
  ], 16);
45
45
  }
46
- const Li = /* @__PURE__ */ L(Ii, [["render", Si]]), Ti = /* @__PURE__ */ da({
46
+ const Si = /* @__PURE__ */ S(Ri, [["render", Fi]]), Li = /* @__PURE__ */ ca({
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, n) => t(Pa) ? (s(), y(ri, {
53
+ return (i, p) => t(Na) ? (s(), y(di, {
54
54
  key: 0,
55
55
  name: i.name,
56
56
  mode: "out-in",
57
57
  css: i.showFileIcon
58
58
  }, {
59
59
  default: w(() => [
60
- Ra(i.$slots, "default")
60
+ ja(i.$slots, "default")
61
61
  ]),
62
62
  _: 3
63
- }, 8, ["name", "css"])) : (s(), y(mi, {
63
+ }, 8, ["name", "css"])) : (s(), y(ri, {
64
64
  key: 1,
65
65
  name: i.name,
66
66
  css: i.showFileIcon
67
67
  }, {
68
68
  default: w(() => [
69
- Ra(i.$slots, "default")
69
+ ja(i.$slots, "default")
70
70
  ]),
71
71
  _: 3
72
72
  }, 8, ["name", "css"]));
73
73
  }
74
74
  });
75
- function Mi(a, i) {
76
- const n = S(!1);
77
- let o;
78
- function p() {
79
- o && o.disconnect();
75
+ function Ti(a, i) {
76
+ const p = F(!1);
77
+ let n;
78
+ function o() {
79
+ n && n.disconnect();
80
80
  }
81
- return ui(() => {
82
- p();
83
- }), Ua(() => {
84
- p(), o = new IntersectionObserver(
85
- (d) => {
86
- n.value = !d[0].isIntersecting;
81
+ return mi(() => {
82
+ o();
83
+ }), Aa(() => {
84
+ o(), n = new IntersectionObserver(
85
+ (c) => {
86
+ p.value = !c[0].isIntersecting;
87
87
  },
88
88
  {
89
89
  root: i.value,
90
90
  threshold: 1
91
91
  }
92
- ), o.observe(a.value.$el);
93
- }), n;
92
+ ), n.observe(a.value.$el);
93
+ }), p;
94
94
  }
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));
95
+ const Fa = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
96
+ function ka(a, i) {
97
+ const p = Math.max(0, Math.min(Math.floor(Math.log(i) / Math.log(1024)), Fa.length - 1));
98
98
  return Intl.NumberFormat(a, {
99
99
  style: "unit",
100
- unit: Sa[n]
101
- }).format(i / 1024 ** n);
100
+ unit: Fa[p]
101
+ }).format(i / 1024 ** p);
102
102
  }
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 = [
103
+ var M = /* @__PURE__ */ ((a) => (a.LOADING = "loading", a.SUCCESS = "success", a.ERROR = "error", a))(M || {}), 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 || {}), sa = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.DRAG_OVER = "drag-over", a.ERROR = "error", a.READONLY = "readonly", a))(sa || {}), 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 Mi = [
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
- ], Vi = [
111
+ ], Di = [
112
112
  "application/vnd.ms-excel",
113
113
  // .xls
114
114
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -121,14 +121,14 @@ const Di = [
121
121
  // .numbers
122
122
  "text/csv"
123
123
  // .csv
124
- ], Oi = [
124
+ ], Vi = [
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
- ], qi = [
131
+ ], Oi = [
132
132
  "application/zip",
133
133
  // .zip
134
134
  "application/vnd.rar",
@@ -150,66 +150,66 @@ const Di = [
150
150
  "application/vnd.ms-cab-compressed"
151
151
  // .cab
152
152
  ];
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;
153
+ function qi(a) {
154
+ return Di.includes(a.type) ? k.TABLE : a.type.startsWith("text/") || Mi.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 : Vi.includes(a.type) ? k.SLIDES : Oi.includes(a.type) ? k.COMPRESSED : k.GENERIC;
155
155
  }
156
- function Wa(a, i) {
156
+ function Pa(a, i) {
157
157
  if (!i)
158
158
  return !0;
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))
159
+ const p = i.split(",").map((n) => n.trim());
160
+ for (const n of p)
161
+ if (n.startsWith(".")) {
162
+ if (a.name.endsWith(n))
163
163
  return !0;
164
- } else if (o.endsWith("/*")) {
165
- const p = o.split("/")[0];
166
- if (a.type.startsWith(p))
164
+ } else if (n.endsWith("/*")) {
165
+ const o = n.split("/")[0];
166
+ if (a.type.startsWith(o))
167
167
  return !0;
168
- } else if (o.includes("/")) {
169
- if (a.type === o)
168
+ } else if (n.includes("/")) {
169
+ if (a.type === n)
170
170
  return !0;
171
- } else if (a.name.endsWith(`.${o}`))
171
+ } else if (a.name.endsWith(`.${n}`))
172
172
  return !0;
173
173
  return !1;
174
174
  }
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);
175
+ function Hi(a, i, p) {
176
+ const n = new FileReader(), o = a;
177
+ if (!Pa(o.data, i)) {
178
+ o.state = M.ERROR, o.errors.push(E.ERROR_TYPE);
179
179
  return;
180
180
  }
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();
181
+ n.onload = (c) => {
182
+ if (p && o.type === k.IMAGE) {
183
+ const l = new Blob([c.target.result], { type: o.data.type }), m = URL.createObjectURL(l), h = new Image();
184
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);
185
+ (h.width > p.width || h.height > p.height) && (o.state = M.ERROR, o.errors.push(E.ERROR_DIMENSIONS)), URL.revokeObjectURL(m);
186
186
  }, h.onerror = function() {
187
187
  URL.revokeObjectURL(m);
188
188
  }, h.src = m;
189
189
  }
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);
190
+ }, n.onprogress = (c) => {
191
+ c.lengthComputable && (o.progress = c.loaded / c.total * 100);
192
+ }, n.onloadend = () => {
193
+ o.state !== M.ERROR && (o.state = M.SUCCESS), o.progress = null;
194
+ }, n.onerror = () => {
195
+ o.state = M.ERROR, o.errors.push(E.ERROR_LOAD), o.progress = null;
196
+ }, n.readAsArrayBuffer(o.data);
197
197
  }
198
- let La = 0;
199
- const Ai = {
198
+ let Sa = 0;
199
+ const Bi = {
200
200
  beforeCreate() {
201
- this.uuid = La.toString(), La += 1;
201
+ this.uuid = Sa.toString(), Sa += 1;
202
202
  }
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
+ }, Ai = { key: 0 }, Ui = ["clip-path"], Zi = ["id"];
204
+ function Ni(a, i, p, n, o, c) {
205
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
206
206
  class: "ui-assets-icons-16",
207
207
  xmlns: "http://www.w3.org/2000/svg",
208
208
  width: "16",
209
209
  height: "16",
210
210
  fill: "none"
211
211
  }), [
212
- a.$attrs["svg-title"] ? (s(), g("title", Ui, x(a.$attrs["svg-title"]), 1)) : u("", !0),
212
+ a.$attrs["svg-title"] ? (s(), g("title", Ai, x(a.$attrs["svg-title"]), 1)) : u("", !0),
213
213
  r("g", {
214
214
  "clip-path": "url(#uia-ui-assets/icons-16-attachment__a" + a.uuid + ")"
215
215
  }, i[0] || (i[0] = [
@@ -217,7 +217,7 @@ function Pi(a, i, n, o, p, d) {
217
217
  fill: "#001222",
218
218
  d: "M7.10655 3.02949C8.98948 1.14706 12.0441 1.14675 13.9269 3.02949C15.8095 4.91225 15.8093 7.96692 13.9269 9.84981L11.1564 12.6203L10.0958 11.5598L12.8663 8.78926C14.1629 7.49216 14.1631 5.38701 12.8663 4.09004C11.5694 2.79309 9.46424 2.79339 8.1671 4.09004L2.72667 9.53047C1.95976 10.2976 1.95963 11.5427 2.72667 12.3098C3.49372 13.0766 4.7389 13.0766 5.50597 12.3098L10.9464 6.86934C11.183 6.63224 11.1832 6.24693 10.9464 6.00996C10.7094 5.77301 10.3242 5.77331 10.087 6.00996L4.4962 11.6008L3.43565 10.5402L9.02647 4.94942C9.8494 4.12698 11.1842 4.12668 12.0069 4.94942C12.8296 5.77217 12.8293 7.107 12.0069 7.92989L6.56651 13.3703C5.21366 14.723 3.01896 14.723 1.66612 13.3703C0.313294 12.0175 0.313425 9.82283 1.66612 8.46992L7.10655 3.02949Z"
219
219
  }, null, -1)
220
- ]), 8, Zi),
220
+ ]), 8, Ui),
221
221
  r("defs", null, [
222
222
  r("clipPath", {
223
223
  id: "uia-ui-assets/icons-16-attachment__a" + a.uuid
@@ -227,26 +227,26 @@ function Pi(a, i, n, o, p, d) {
227
227
  height: "16",
228
228
  fill: "#fff"
229
229
  }, null, -1)
230
- ]), 8, Ni)
230
+ ]), 8, Zi)
231
231
  ])
232
232
  ], 16);
233
233
  }
234
- const Wi = /* @__PURE__ */ L(Ai, [["render", Pi]]);
235
- let Ta = 0;
236
- const Gi = {
234
+ const Pi = /* @__PURE__ */ S(Bi, [["render", Ni]]);
235
+ let La = 0;
236
+ const Wi = {
237
237
  beforeCreate() {
238
- this.uuid = Ta.toString(), Ta += 1;
238
+ this.uuid = La.toString(), La += 1;
239
239
  }
240
- }, Yi = { key: 0 };
241
- function Ji(a, i, n, o, p, d) {
242
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
240
+ }, Gi = { key: 0 };
241
+ function Yi(a, i, p, n, o, c) {
242
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
243
243
  class: "ui-assets-icons-16",
244
244
  xmlns: "http://www.w3.org/2000/svg",
245
245
  width: "16",
246
246
  height: "16",
247
247
  fill: "none"
248
248
  }), [
249
- a.$attrs["svg-title"] ? (s(), g("title", Yi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
249
+ a.$attrs["svg-title"] ? (s(), g("title", Gi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
250
250
  i[0] || (i[0] = r("path", {
251
251
  fill: "#001222",
252
252
  "fill-rule": "evenodd",
@@ -255,44 +255,44 @@ function Ji(a, i, n, o, p, d) {
255
255
  }, null, -1))
256
256
  ], 16);
257
257
  }
258
- const Xi = /* @__PURE__ */ L(Gi, [["render", Ji]]);
259
- let Ma = 0;
260
- const Ki = {
258
+ const Ji = /* @__PURE__ */ S(Wi, [["render", Yi]]);
259
+ let Ta = 0;
260
+ const Xi = {
261
261
  beforeCreate() {
262
- this.uuid = Ma.toString(), Ma += 1;
262
+ this.uuid = Ta.toString(), Ta += 1;
263
263
  }
264
- }, Qi = { key: 0 };
265
- function ae(a, i, n, o, p, d) {
266
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
264
+ }, Ki = { key: 0 };
265
+ function Qi(a, i, p, n, o, c) {
266
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
267
267
  class: "ui-assets-icons-16",
268
268
  xmlns: "http://www.w3.org/2000/svg",
269
269
  width: "16",
270
270
  height: "16",
271
271
  fill: "none"
272
272
  }), [
273
- a.$attrs["svg-title"] ? (s(), g("title", Qi, x(a.$attrs["svg-title"]), 1)) : u("", !0),
273
+ a.$attrs["svg-title"] ? (s(), g("title", Ki, x(a.$attrs["svg-title"]), 1)) : u("", !0),
274
274
  i[0] || (i[0] = r("path", {
275
275
  fill: "#001222",
276
276
  d: "M2.25 0.25V15.75H13.75V4.68934L9.31066 0.25H2.25ZM7.25 1.75V6.75H12.25V14.25H3.75V1.75H7.25ZM12.1893 5.25H8.75V1.81066L12.1893 5.25Z"
277
277
  }, null, -1))
278
278
  ], 16);
279
279
  }
280
- const ie = /* @__PURE__ */ L(Ki, [["render", ae]]);
281
- let Da = 0;
282
- const ee = {
280
+ const ae = /* @__PURE__ */ S(Xi, [["render", Qi]]);
281
+ let Ma = 0;
282
+ const ie = {
283
283
  beforeCreate() {
284
- this.uuid = Da.toString(), Da += 1;
284
+ this.uuid = Ma.toString(), Ma += 1;
285
285
  }
286
- }, te = { key: 0 };
287
- function ne(a, i, n, o, p, d) {
288
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
286
+ }, ee = { key: 0 };
287
+ function te(a, i, p, n, o, c) {
288
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
289
289
  class: "ui-assets-icons-16",
290
290
  xmlns: "http://www.w3.org/2000/svg",
291
291
  width: "16",
292
292
  height: "16",
293
293
  fill: "none"
294
294
  }), [
295
- a.$attrs["svg-title"] ? (s(), g("title", te, x(a.$attrs["svg-title"]), 1)) : u("", !0),
295
+ a.$attrs["svg-title"] ? (s(), g("title", ee, x(a.$attrs["svg-title"]), 1)) : u("", !0),
296
296
  i[0] || (i[0] = r("path", {
297
297
  fill: "#001222",
298
298
  d: "M5.24609 8.25H10.7461V9.75H5.24609V8.25Z"
@@ -307,44 +307,44 @@ function ne(a, i, n, o, p, d) {
307
307
  }, null, -1))
308
308
  ], 16);
309
309
  }
310
- const oe = /* @__PURE__ */ L(ee, [["render", ne]]);
311
- let Va = 0;
312
- const pe = {
310
+ const ne = /* @__PURE__ */ S(ie, [["render", te]]);
311
+ let Da = 0;
312
+ const oe = {
313
313
  beforeCreate() {
314
- this.uuid = Va.toString(), Va += 1;
314
+ this.uuid = Da.toString(), Da += 1;
315
315
  }
316
- }, le = { key: 0 };
317
- function se(a, i, n, o, p, d) {
318
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
316
+ }, pe = { key: 0 };
317
+ function le(a, i, p, n, o, c) {
318
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
319
319
  class: "ui-assets-icons-16",
320
320
  xmlns: "http://www.w3.org/2000/svg",
321
321
  width: "16",
322
322
  height: "16",
323
323
  fill: "none"
324
324
  }), [
325
- a.$attrs["svg-title"] ? (s(), g("title", le, x(a.$attrs["svg-title"]), 1)) : u("", !0),
325
+ a.$attrs["svg-title"] ? (s(), g("title", pe, x(a.$attrs["svg-title"]), 1)) : u("", !0),
326
326
  i[0] || (i[0] = r("path", {
327
327
  fill: "#001222",
328
328
  d: "M1.24609 12V5C1.24609 3.48579 2.48188 2.25 3.99609 2.25H7.30664L10.3066 5.25H11.9961C13.5103 5.25 14.7461 6.48579 14.7461 8V12C14.7461 13.5142 13.5103 14.75 11.9961 14.75H3.99609C2.48188 14.75 1.24609 13.5142 1.24609 12ZM2.74609 12C2.74609 12.6858 3.31031 13.25 3.99609 13.25H11.9961C12.6819 13.25 13.2461 12.6858 13.2461 12V8C13.2461 7.31421 12.6819 6.75 11.9961 6.75H9.68555L6.68555 3.75H3.99609C3.31031 3.75 2.74609 4.31421 2.74609 5V12Z"
329
329
  }, null, -1))
330
330
  ], 16);
331
331
  }
332
- const ce = /* @__PURE__ */ L(pe, [["render", se]]);
333
- let Oa = 0;
334
- const de = {
332
+ const se = /* @__PURE__ */ S(oe, [["render", le]]);
333
+ let Va = 0;
334
+ const ce = {
335
335
  beforeCreate() {
336
- this.uuid = Oa.toString(), Oa += 1;
336
+ this.uuid = Va.toString(), Va += 1;
337
337
  }
338
- }, re = { key: 0 };
339
- function me(a, i, n, o, p, d) {
340
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
338
+ }, de = { key: 0 };
339
+ function re(a, i, p, n, o, c) {
340
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
341
341
  class: "ui-assets-icons-16",
342
342
  xmlns: "http://www.w3.org/2000/svg",
343
343
  width: "16",
344
344
  height: "16",
345
345
  fill: "none"
346
346
  }), [
347
- a.$attrs["svg-title"] ? (s(), g("title", re, x(a.$attrs["svg-title"]), 1)) : u("", !0),
347
+ a.$attrs["svg-title"] ? (s(), g("title", de, x(a.$attrs["svg-title"]), 1)) : u("", !0),
348
348
  i[0] || (i[0] = r("path", {
349
349
  fill: "#001222",
350
350
  d: "M9.74609 3.74805C11.1268 3.74805 12.2461 4.86733 12.2461 6.24805C12.2461 7.62876 11.1268 8.74805 9.74609 8.74805C8.36538 8.74805 7.24609 7.62876 7.24609 6.24805C7.24609 4.86733 8.36538 3.74805 9.74609 3.74805ZM9.74609 5.24805C9.19381 5.24805 8.74609 5.69576 8.74609 6.24805C8.74609 6.80033 9.19381 7.24805 9.74609 7.24805C10.2984 7.24805 10.7461 6.80033 10.7461 6.24805C10.7461 5.69576 10.2984 5.24805 9.74609 5.24805Z"
@@ -355,29 +355,29 @@ function me(a, i, n, o, p, d) {
355
355
  }, null, -1))
356
356
  ], 16);
357
357
  }
358
- const ue = /* @__PURE__ */ L(de, [["render", me]]);
359
- let qa = 0;
360
- const ve = {
358
+ const me = /* @__PURE__ */ S(ce, [["render", re]]);
359
+ let Oa = 0;
360
+ const ue = {
361
361
  beforeCreate() {
362
- this.uuid = qa.toString(), qa += 1;
362
+ this.uuid = Oa.toString(), Oa += 1;
363
363
  }
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
+ }, ve = { key: 0 }, fe = ["clip-path"], xe = ["id"];
365
+ function ge(a, i, p, n, o, c) {
366
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
367
367
  class: "ui-assets-icons-16",
368
368
  xmlns: "http://www.w3.org/2000/svg",
369
369
  width: "16",
370
370
  height: "16",
371
371
  fill: "none"
372
372
  }), [
373
- a.$attrs["svg-title"] ? (s(), g("title", fe, x(a.$attrs["svg-title"]), 1)) : u("", !0),
373
+ a.$attrs["svg-title"] ? (s(), g("title", ve, x(a.$attrs["svg-title"]), 1)) : u("", !0),
374
374
  r("g", {
375
375
  fill: "#001222",
376
376
  "clip-path": "url(#uia-ui-assets/icons-16-play_circle__a" + a.uuid + ")"
377
377
  }, i[0] || (i[0] = [
378
378
  r("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
379
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),
380
+ ]), 8, fe),
381
381
  r("defs", null, [
382
382
  r("clipPath", {
383
383
  id: "uia-ui-assets/icons-16-play_circle__a" + a.uuid
@@ -387,26 +387,26 @@ function he(a, i, n, o, p, d) {
387
387
  height: "16",
388
388
  fill: "#fff"
389
389
  }, null, -1)
390
- ]), 8, ge)
390
+ ]), 8, xe)
391
391
  ])
392
392
  ], 16);
393
393
  }
394
- const be = /* @__PURE__ */ L(ve, [["render", he]]);
395
- let Ha = 0;
396
- const we = {
394
+ const he = /* @__PURE__ */ S(ue, [["render", ge]]);
395
+ let qa = 0;
396
+ const be = {
397
397
  beforeCreate() {
398
- this.uuid = Ha.toString(), Ha += 1;
398
+ this.uuid = qa.toString(), qa += 1;
399
399
  }
400
- }, ye = { key: 0 };
401
- function ke(a, i, n, o, p, d) {
402
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
400
+ }, we = { key: 0 };
401
+ function ye(a, i, p, n, o, c) {
402
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
403
403
  class: "ui-assets-icons-16",
404
404
  xmlns: "http://www.w3.org/2000/svg",
405
405
  width: "16",
406
406
  height: "16",
407
407
  fill: "none"
408
408
  }), [
409
- a.$attrs["svg-title"] ? (s(), g("title", ye, x(a.$attrs["svg-title"]), 1)) : u("", !0),
409
+ a.$attrs["svg-title"] ? (s(), g("title", we, x(a.$attrs["svg-title"]), 1)) : u("", !0),
410
410
  i[0] || (i[0] = r("path", {
411
411
  fill: "#001222",
412
412
  d: "M5.68934 2.25H8.75V13.75H5.68934L2.68934 10.75H0.25V5.25H2.68934L5.68934 2.25ZM6.31066 3.75L3.31066 6.75H1.75V9.25H3.31066L6.31066 12.25H7.25V3.75H6.31066Z"
@@ -421,43 +421,43 @@ function ke(a, i, n, o, p, d) {
421
421
  }, null, -1))
422
422
  ], 16);
423
423
  }
424
- const Ce = /* @__PURE__ */ L(we, [["render", ke]]);
425
- let Ba = 0;
426
- const $e = {
424
+ const ke = /* @__PURE__ */ S(be, [["render", ye]]);
425
+ let Ha = 0;
426
+ const Ce = {
427
427
  beforeCreate() {
428
- this.uuid = Ba.toString(), Ba += 1;
428
+ this.uuid = Ha.toString(), Ha += 1;
429
429
  }
430
- }, ze = { key: 0 };
431
- function _e(a, i, n, o, p, d) {
432
- return s(), g("svg", V({ role: "img" }, a.$attrs, {
430
+ }, $e = { key: 0 };
431
+ function ze(a, i, p, n, o, c) {
432
+ return s(), g("svg", D({ role: "img" }, a.$attrs, {
433
433
  class: "ui-assets-icons-16",
434
434
  xmlns: "http://www.w3.org/2000/svg",
435
435
  width: "16",
436
436
  height: "16",
437
437
  fill: "none"
438
438
  }), [
439
- a.$attrs["svg-title"] ? (s(), g("title", ze, x(a.$attrs["svg-title"]), 1)) : u("", !0),
439
+ a.$attrs["svg-title"] ? (s(), g("title", $e, x(a.$attrs["svg-title"]), 1)) : u("", !0),
440
440
  i[0] || (i[0] = r("path", {
441
441
  fill: "#001222",
442
442
  d: "M12 1.25C13.5188 1.25 14.75 2.48122 14.75 4V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V4C1.25 2.48122 2.48122 1.25 4 1.25H12ZM6.75 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.75H6.75V13.25ZM2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H5.25V10.75H2.75V12ZM6.75 9.25H13.25V6.75H6.75V9.25ZM2.75 9.25H5.25V6.75H2.75V9.25ZM6.75 5.25H13.25V4C13.25 3.30964 12.6904 2.75 12 2.75H6.75V5.25ZM4 2.75C3.30964 2.75 2.75 3.30964 2.75 4V5.25H5.25V2.75H4Z"
443
443
  }, null, -1))
444
444
  ], 16);
445
445
  }
446
- const 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
446
+ const _e = /* @__PURE__ */ S(Ce, [["render", ze]]), je = {
447
+ [k.AUDIO]: ke,
448
+ [k.COMPRESSED]: se,
449
+ [k.GENERIC]: Pi,
450
+ [k.IMAGE]: me,
451
+ [k.PDF]: ae,
452
+ [k.SLIDES]: Ji,
453
+ [k.TABLE]: _e,
454
+ [k.TEXT]: ne,
455
+ [k.VIDEO]: he
456
456
  };
457
457
  function Ee(a) {
458
- return Re[a.type];
458
+ return je[a.type];
459
459
  }
460
- function Ie(a) {
460
+ function Re(a) {
461
461
  switch (a.type) {
462
462
  case k.COMPRESSED:
463
463
  case k.GENERIC:
@@ -471,93 +471,72 @@ function Ie(a) {
471
471
  return "green";
472
472
  }
473
473
  }
474
- const Ga = {
475
- "en-US": {
476
- cancel: "Cancel",
477
- fileExceedsSizeLimit: "File exceeds size limit",
478
- fileTypeMustBe: "File type must be {list}",
479
- imageDimensionsExceedLimits: "Image dimensions exceed limits",
480
- remove: "Remove",
481
- retry: "Retry"
482
- },
483
- "ja-JP": {
484
- cancel: "キャンセル",
485
- fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
486
- fileTypeMustBe: "ファイル形式は{list}でなければなりません",
487
- imageDimensionsExceedLimits: "画像のサイズが制限を超えています",
488
- remove: "削除",
489
- retry: "再試行"
490
- },
491
- "pt-BR": {
492
- cancel: "Cancelar",
493
- fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
494
- fileTypeMustBe: "O tipo de arquivo deve ser {list}",
495
- imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites",
496
- remove: "Remover",
497
- retry: "Tentar novamente"
498
- }
499
- }, Fe = { class: "b-file-uploader-file-card__details" }, Se = { class: "b-file-uploader-file-card__info" }, Le = ["id"], Te = {
474
+ const Wa = {
475
+ "en-US": { cancel: "Cancel", fileExceedsSizeLimit: "File exceeds size limit", fileTypeMustBe: "File type must be {list}", imageDimensionsExceedLimits: "Image dimensions exceed limits", remove: "Remove", retry: "Retry" },
476
+ "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: "Remover", retry: "Tentar novamente" }
478
+ }, Ie = { class: "b-file-uploader-file-card__details" }, Fe = { class: "b-file-uploader-file-card__info" }, Se = ["id"], Le = {
500
479
  key: 0,
501
480
  class: "b-file-uploader-file-card__actions"
502
- }, Me = {
481
+ }, Te = {
503
482
  name: "file-uploader-file-card",
504
- i18n: { messages: Ga }
505
- }, De = /* @__PURE__ */ da({
506
- ...Me,
483
+ i18n: { messages: Wa }
484
+ }, Me = /* @__PURE__ */ ca({
485
+ ...Te,
507
486
  props: {
508
487
  file: {},
509
488
  supportedFileTypes: { default: null },
510
489
  readonly: { type: Boolean }
511
490
  },
512
491
  emits: ["cancel", "remove", "retry"],
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);
492
+ setup(a, { expose: i, emit: p }) {
493
+ const o = a, c = p, { t: l, locale: m } = da({ messages: Wa }), h = F(null), z = F(null), V = F(null), O = I("file-errors-section"), v = I("cancel-file-button"), _ = I("remove-file-button"), B = I("retry-file-button"), q = F(o.file.state === M.SUCCESS), b = f(() => URL.createObjectURL(o.file.data)), N = f(() => o.file.state === M.ERROR), A = f(() => o.file.errors.includes(E.ERROR_LOAD)), K = f(() => o.file.errors.includes(E.ERROR_SIZE)), Q = f(() => o.file.errors.includes(E.ERROR_DIMENSIONS)), ta = f(() => o.file.errors.includes(E.ERROR_TYPE)), na = f(() => o.file.state === M.LOADING), oa = f(() => o.file.progress && `(${o.file.progress.toFixed(0)}%)`), W = f(() => ka(m.value, o.file.data.size)), G = F(), pa = F(), la = Ti(G, pa), aa = f(() => ({
494
+ "b-file-uploader-file-card--error": N.value
495
+ })), ra = f(() => ({
496
+ [`b-file-uploader-file-card__icon--${Re(o.file)}`]: q.value,
497
+ "b-file-uploader-file-card__icon--error": N.value
498
+ })), Y = f(() => na.value ? _i : N.value ? Za : q.value ? Ee(o.file) : yi);
499
+ wa(
500
+ () => o.file.state,
501
+ (j) => {
502
+ if (j === M.SUCCESS && !q.value) {
503
+ const H = setTimeout(() => {
504
+ q.value = !0, clearTimeout(H);
526
505
  }, 1200);
527
506
  }
528
507
  }
529
508
  );
530
- function ua() {
531
- if (O.value) {
532
- O.value.$el.focus();
509
+ function ma() {
510
+ if (V.value) {
511
+ V.value.$el.focus();
533
512
  return;
534
513
  }
535
514
  if (h.value) {
536
515
  h.value.$el.focus();
537
516
  return;
538
517
  }
539
- if (_.value) {
540
- _.value.$el.focus();
518
+ if (z.value) {
519
+ z.value.$el.focus();
541
520
  return;
542
521
  }
543
522
  }
544
523
  return i({
545
- focus: ua
546
- }), (R, B) => (s(), g("div", {
547
- class: N(["b-file-uploader-file-card", ia.value])
524
+ focus: ma
525
+ }), (j, H) => (s(), g("div", {
526
+ class: Z(["b-file-uploader-file-card", aa.value])
548
527
  }, [
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
528
+ r("div", Ie, [
529
+ r("div", Fe, [
530
+ U(t(Li), {
531
+ name: t(Na) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
532
+ "show-file-icon": q.value
554
533
  }, {
555
534
  default: w(() => [
556
- (s(), y(vi(J.value), {
557
- key: JSON.stringify(J.value),
535
+ (s(), y(ui(Y.value), {
536
+ key: JSON.stringify(Y.value),
558
537
  small: "",
559
538
  "aria-hidden": "true",
560
- class: N(["b-file-uploader-file-card__icon", ma.value]),
539
+ class: Z(["b-file-uploader-file-card__icon", ra.value]),
561
540
  "data-testid": "file-uploader-item-icon"
562
541
  }, null, 8, ["class"]))
563
542
  ]),
@@ -565,137 +544,137 @@ const Ga = {
565
544
  }, 8, ["name", "show-file-icon"]),
566
545
  r("div", {
567
546
  ref_key: "fileNameContainerRef",
568
- ref: la,
547
+ ref: pa,
569
548
  class: "b-file-uploader-file-card__file-name"
570
549
  }, [
571
- Z(t(_i), {
550
+ U(t(zi), {
572
551
  "aria-hidden": "true",
573
552
  tabindex: "-1",
574
- download: R.file.data.name,
553
+ download: j.file.data.name,
575
554
  to: b.value,
576
555
  "disable-typography": "",
577
556
  "is-not-routing": "",
578
557
  variant: "quiet"
579
558
  }, {
580
559
  default: w(() => [
581
- Za((s(), y(t(I), {
560
+ Ua((s(), y(t(R), {
582
561
  ref_key: "fileNameRef",
583
- ref: Y,
562
+ ref: G,
584
563
  stronger: "",
585
564
  el: "span"
586
565
  }, {
587
566
  default: w(() => [
588
- z(x(R.file.data.name), 1)
567
+ $(x(j.file.data.name), 1)
589
568
  ]),
590
569
  _: 1
591
570
  })), [
592
- [t(zi), t(sa) ? R.file.data.name : null]
571
+ [t($i), t(la) ? j.file.data.name : null]
593
572
  ])
594
573
  ]),
595
574
  _: 1
596
575
  }, 8, ["download", "to"])
597
576
  ], 512),
598
- R.file.progress ? (s(), y(t(I), {
577
+ j.file.progress ? (s(), y(t(R), {
599
578
  key: 0,
600
579
  el: "span"
601
580
  }, {
602
581
  default: w(() => [
603
- z(x(pa.value), 1)
582
+ $(x(oa.value), 1)
604
583
  ]),
605
584
  _: 1
606
- })) : R.file.data.size ? (s(), y(t(I), {
585
+ })) : j.file.data.size ? (s(), y(t(R), {
607
586
  key: 1,
608
587
  class: "b-file-uploader-file-card__file-size",
609
588
  "aria-hidden": "true",
610
589
  el: "span"
611
590
  }, {
612
591
  default: w(() => [
613
- z(x(G.value), 1)
592
+ $(x(W.value), 1)
614
593
  ]),
615
594
  _: 1
616
595
  })) : u("", !0)
617
596
  ]),
618
- Q.value || aa.value || na.value && R.supportedFileTypes ? (s(), g("div", {
597
+ K.value || Q.value || ta.value && j.supportedFileTypes ? (s(), g("div", {
619
598
  key: 0,
620
- id: t(q),
599
+ id: t(O),
621
600
  role: "alert"
622
601
  }, [
623
- Q.value ? (s(), y(t(I), {
602
+ K.value ? (s(), y(t(R), {
624
603
  key: 0,
625
604
  class: "b-file-uploader-file-card__error-message"
626
605
  }, {
627
606
  default: w(() => [
628
- z(x(t(l)("fileExceedsSizeLimit")), 1)
607
+ $(x(t(l)("fileExceedsSizeLimit")), 1)
629
608
  ]),
630
609
  _: 1
631
610
  })) : u("", !0),
632
- aa.value ? (s(), y(t(I), {
611
+ Q.value ? (s(), y(t(R), {
633
612
  key: 1,
634
613
  class: "b-file-uploader-file-card__error-message"
635
614
  }, {
636
615
  default: w(() => [
637
- z(x(t(l)("imageDimensionsExceedLimits")), 1)
616
+ $(x(t(l)("imageDimensionsExceedLimits")), 1)
638
617
  ]),
639
618
  _: 1
640
619
  })) : u("", !0),
641
- na.value && R.supportedFileTypes ? (s(), y(t(I), {
620
+ ta.value && j.supportedFileTypes ? (s(), y(t(R), {
642
621
  key: 2,
643
622
  class: "b-file-uploader-file-card__error-message"
644
623
  }, {
645
624
  default: w(() => [
646
- z(x(t(l)("fileTypeMustBe", { list: R.supportedFileTypes })), 1)
625
+ $(x(t(l)("fileTypeMustBe", { list: j.supportedFileTypes })), 1)
647
626
  ]),
648
627
  _: 1
649
628
  })) : u("", !0)
650
- ], 8, Le)) : u("", !0)
629
+ ], 8, Se)) : u("", !0)
651
630
  ]),
652
- R.readonly ? u("", !0) : (s(), g("div", Te, [
653
- U.value ? (s(), y(t(wa), {
631
+ j.readonly ? u("", !0) : (s(), g("div", Le, [
632
+ A.value ? (s(), y(t(ba), {
654
633
  key: 0,
655
634
  ref_key: "retryFileButtonRef",
656
- ref: O,
657
- "aria-labelledby": `${t(q)} ${t(A)}`,
635
+ ref: V,
636
+ "aria-labelledby": `${t(O)} ${t(B)}`,
658
637
  variant: "tertiary",
659
- onClick: B[0] || (B[0] = (ea) => d("retry"))
638
+ onClick: H[0] || (H[0] = (ia) => c("retry"))
660
639
  }, {
661
640
  iconLeft: w(() => [
662
- Z(t($i), {
663
- id: t(A),
664
- "svg-title": `${t(l)("retry")} - ${R.file.data.name} `
641
+ U(t(Ci), {
642
+ id: t(B),
643
+ "svg-title": `${t(l)("retry")} - ${j.file.data.name} `
665
644
  }, null, 8, ["id", "svg-title"])
666
645
  ]),
667
646
  default: w(() => [
668
- z(" " + x(t(l)("retry")), 1)
647
+ $(" " + x(t(l)("retry")), 1)
669
648
  ]),
670
649
  _: 1
671
650
  }, 8, ["aria-labelledby"])) : u("", !0),
672
- oa.value || P.value ? (s(), y(t(wa), {
651
+ na.value || N.value ? (s(), y(t(ba), {
673
652
  key: 1,
674
653
  ref_key: "cancelFileButtonRef",
675
- ref: _,
676
- "aria-labelledby": `${t(q)} ${t(v)}`,
654
+ ref: z,
655
+ "aria-labelledby": `${t(O)} ${t(v)}`,
677
656
  variant: "tertiary",
678
- onClick: B[1] || (B[1] = (ea) => d("cancel"))
657
+ onClick: H[1] || (H[1] = (ia) => c("cancel"))
679
658
  }, {
680
659
  iconLeft: w(() => [
681
- Z(t(Ci), {
660
+ U(t(ki), {
682
661
  id: t(v),
683
- "svg-title": `${t(l)("cancel")} - ${R.file.data.name}`
662
+ "svg-title": `${t(l)("cancel")} - ${j.file.data.name}`
684
663
  }, null, 8, ["id", "svg-title"])
685
664
  ]),
686
665
  _: 1
687
- }, 8, ["aria-labelledby"])) : (s(), y(t(wa), {
666
+ }, 8, ["aria-labelledby"])) : (s(), y(t(ba), {
688
667
  key: 2,
689
668
  ref_key: "removeFileButtonRef",
690
669
  ref: h,
691
- "aria-labelledby": `${t(q)} ${t(j)}`,
670
+ "aria-labelledby": `${t(O)} ${t(_)}`,
692
671
  variant: "tertiary",
693
- onClick: B[2] || (B[2] = (ea) => d("remove"))
672
+ onClick: H[2] || (H[2] = (ia) => c("remove"))
694
673
  }, {
695
674
  iconLeft: w(() => [
696
- Z(t(yi), {
697
- id: t(j),
698
- "svg-title": `${t(l)("remove")} - ${R.file.data.name}`
675
+ U(t(wi), {
676
+ id: t(_),
677
+ "svg-title": `${t(l)("remove")} - ${j.file.data.name}`
699
678
  }, null, 8, ["id", "svg-title"])
700
679
  ]),
701
680
  _: 1
@@ -703,36 +682,14 @@ const Ga = {
703
682
  ]))
704
683
  ], 2));
705
684
  }
706
- }), Ve = /* @__PURE__ */ L(De, [["__scopeId", "data-v-0051c431"]]), Ya = {
707
- "en-US": {
708
- maxFileSize: "Max file size: {size}",
709
- maxImageDimensions: "Max image dimensions: {width} × {height}px",
710
- maxImageHeight: "Max image height: {height}px",
711
- maxImageWidth: "Max image width: {width}px",
712
- maxUpload: "Max upload: {count} file | Max upload: {count} files",
713
- supportedFileTypes: "Supported file types: {list}",
714
- upToSize: "(up to {size})"
715
- },
716
- "ja-JP": {
717
- maxFileSize: "最大ファイルサイズ:{size}",
718
- maxImageDimensions: "最大画像サイズ: {width} × {height}px",
719
- maxImageHeight: "最大画像高さ: {height}px",
720
- maxImageWidth: "最大画像幅: {width}px",
721
- maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル",
722
- supportedFileTypes: "対応ファイル形式: {list}"
723
- },
724
- "pt-BR": {
725
- maxFileSize: "Tamanho máx. do arquivo: {size}",
726
- maxImageDimensions: "Dimensões máximas da imagem: {width} × {height}px",
727
- maxImageHeight: "Altura máx. da imagem: {height}px",
728
- maxImageWidth: "Largura máxima da imagem: {width}px",
729
- maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos",
730
- supportedFileTypes: "Tipos de arquivo aceitos: {list}"
731
- }
732
- }, Oe = {
733
- i18n: { messages: Ya }
734
- }, qe = /* @__PURE__ */ da({
735
- ...Oe,
685
+ }), De = /* @__PURE__ */ S(Me, [["__scopeId", "data-v-0051c431"]]), Ga = {
686
+ "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
+ "ja-JP": { maxFileSize: "最大ファイルサイズ:{size}", maxImageDimensions: "最大画像サイズ: {width} × {height}px", maxImageHeight: "最大画像高さ: {height}px", maxImageWidth: "最大画像幅: {width}px", maxUpload: "最大アップロード: {count}件のファイル |最大アップロード: {count}件のファイル", supportedFileTypes: "対応ファイル形式: {list}" },
688
+ "pt-BR": { maxFileSize: "Tamanho máx. do arquivo: {size}", maxImageDimensions: "Dimensões máximas da imagem: {width} × {height}px", maxImageHeight: "Altura máx. da imagem: {height}px", maxImageWidth: "Largura máxima da imagem: {width}px", maxUpload: "Máximo de upload: {count} arquivo | Máximo de upload: {count} arquivos", supportedFileTypes: "Tipos de arquivo aceitos: {list}" }
689
+ }, Ve = {
690
+ i18n: { messages: Ga }
691
+ }, Oe = /* @__PURE__ */ ca({
692
+ ...Ve,
736
693
  __name: "file-uploader-restrictions",
737
694
  props: {
738
695
  condensed: { type: Boolean, default: null },
@@ -743,7 +700,7 @@ const Ga = {
743
700
  supportedFileTypes: { default: null }
744
701
  },
745
702
  setup(a) {
746
- const i = a, { t: n, tc: o, n: p, locale: d } = ra({ messages: Ya }), l = f(() => ({
703
+ const i = a, { t: p, tc: n, n: o, locale: c } = da({ messages: Ga }), l = f(() => ({
747
704
  "b-file-uploader-restrictions--condensed": i.condensed,
748
705
  "b-file-uploader-restrictions--disabled": i.disabled
749
706
  }));
@@ -752,66 +709,66 @@ const Ga = {
752
709
  "b-file-uploader-restrictions--error": v
753
710
  };
754
711
  }
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(() => {
712
+ const h = f(() => i.maxSize && Array.isArray(i.maxSize.value)), z = f(() => !i.maxSize || h.value ? null : p("maxFileSize", { size: ka(c.value, i.maxSize.value) })), V = f(() => {
756
713
  if (!i.supportedFileTypes)
757
714
  return null;
758
715
  if (!h.value)
759
716
  return i.supportedFileTypes.value;
760
717
  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}`);
718
+ return i.maxSize.value.forEach((_) => {
719
+ const B = _.fileType.toUpperCase(), q = p("upToSize", { size: ka(c.value, _.maxSize) });
720
+ v = v.replace(B, `${B} ${q}`);
764
721
  }), v;
765
- }), q = f(() => {
722
+ }), O = f(() => {
766
723
  if (!i.maxDimensions)
767
724
  return null;
768
725
  const {
769
- value: { width: v, height: j }
726
+ value: { width: v, height: _ }
770
727
  } = i.maxDimensions;
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;
728
+ return v && _ ? p("maxImageDimensions", { width: o(v), height: o(_) }) : v ? p("maxImageWidth", { width: o(v) }) : _ ? p("maxImageHeight", { height: o(_) }) : null;
772
729
  });
773
- return (v, j) => (s(), g("div", {
774
- class: N(["b-file-uploader-restrictions", l.value])
730
+ return (v, _) => (s(), g("div", {
731
+ class: Z(["b-file-uploader-restrictions", l.value])
775
732
  }, [
776
- v.supportedFileTypes ? (s(), y(t(I), {
733
+ v.supportedFileTypes ? (s(), y(t(R), {
777
734
  key: 0,
778
- class: N(m(v.supportedFileTypes.error || h.value && v.maxSize.error))
735
+ class: Z(m(v.supportedFileTypes.error || h.value && v.maxSize.error))
779
736
  }, {
780
737
  default: w(() => [
781
- z(x(t(n)("supportedFileTypes", { list: O.value })), 1)
738
+ $(x(t(p)("supportedFileTypes", { list: V.value })), 1)
782
739
  ]),
783
740
  _: 1
784
741
  }, 8, ["class"])) : u("", !0),
785
- !h.value && v.maxSize ? (s(), y(t(I), {
742
+ !h.value && v.maxSize ? (s(), y(t(R), {
786
743
  key: 1,
787
- class: N(m(v.maxSize.error))
744
+ class: Z(m(v.maxSize.error))
788
745
  }, {
789
746
  default: w(() => [
790
- z(x(_.value), 1)
747
+ $(x(z.value), 1)
791
748
  ]),
792
749
  _: 1
793
750
  }, 8, ["class"])) : u("", !0),
794
- v.maxDimensions ? (s(), y(t(I), {
751
+ v.maxDimensions ? (s(), y(t(R), {
795
752
  key: 2,
796
- class: N(m(v.maxDimensions.error))
753
+ class: Z(m(v.maxDimensions.error))
797
754
  }, {
798
755
  default: w(() => [
799
- z(x(q.value), 1)
756
+ $(x(O.value), 1)
800
757
  ]),
801
758
  _: 1
802
759
  }, 8, ["class"])) : u("", !0),
803
- v.maxCount ? (s(), y(t(I), {
760
+ v.maxCount ? (s(), y(t(R), {
804
761
  key: 3,
805
- class: N(m(v.maxCount.error))
762
+ class: Z(m(v.maxCount.error))
806
763
  }, {
807
764
  default: w(() => [
808
- z(x(t(o)("maxUpload", v.maxCount.value, { count: t(p)(v.maxCount.value) })), 1)
765
+ $(x(t(n)("maxUpload", v.maxCount.value, { count: t(o)(v.maxCount.value) })), 1)
809
766
  ]),
810
767
  _: 1
811
768
  }, 8, ["class"])) : u("", !0)
812
769
  ], 2));
813
770
  }
814
- }), Aa = /* @__PURE__ */ L(qe, [["__scopeId", "data-v-e75ae2de"]]), Ja = {
771
+ }), Ba = /* @__PURE__ */ S(Oe, [["__scopeId", "data-v-e75ae2de"]]), Ya = {
815
772
  "application/prs.cww": ["cww"],
816
773
  "application/prs.xsf+xml": ["xsf"],
817
774
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -1510,8 +1467,8 @@ const Ga = {
1510
1467
  "video/x-smv": ["smv"],
1511
1468
  "x-conference/x-cooltalk": ["ice"]
1512
1469
  };
1513
- Object.freeze(Ja);
1514
- const Xa = {
1470
+ Object.freeze(Ya);
1471
+ const Ja = {
1515
1472
  "application/andrew-inset": ["ez"],
1516
1473
  "application/appinstaller": ["appinstaller"],
1517
1474
  "application/applixware": ["aw"],
@@ -1863,31 +1820,31 @@ const Xa = {
1863
1820
  "video/quicktime": ["qt", "mov"],
1864
1821
  "video/webm": ["webm"]
1865
1822
  };
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 {
1823
+ Object.freeze(Ja);
1824
+ var T = function(a, i, p, n) {
1825
+ if (p === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
1826
+ if (typeof i == "function" ? a !== i || !n : !i.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1827
+ return p === "m" ? n : p === "a" ? n.call(a) : n ? n.value : i.get(a);
1828
+ }, X, ea, P;
1829
+ class qe {
1873
1830
  constructor(...i) {
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);
1831
+ X.set(this, /* @__PURE__ */ new Map()), ea.set(this, /* @__PURE__ */ new Map()), P.set(this, /* @__PURE__ */ new Map());
1832
+ for (const p of i)
1833
+ this.define(p);
1877
1834
  }
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);
1835
+ define(i, p = !1) {
1836
+ for (let [n, o] of Object.entries(i)) {
1837
+ n = n.toLowerCase(), o = o.map((m) => m.toLowerCase()), T(this, P, "f").has(n) || T(this, P, "f").set(n, /* @__PURE__ */ new Set());
1838
+ const c = T(this, P, "f").get(n);
1882
1839
  let l = !0;
1883
- for (let m of p) {
1840
+ for (let m of o) {
1884
1841
  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)
1842
+ if (m = h ? m.slice(1) : m, c?.add(m), l && T(this, ea, "f").set(n, m), l = !1, h)
1886
1843
  continue;
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);
1844
+ const z = T(this, X, "f").get(m);
1845
+ if (z && z != n && !p)
1846
+ throw new Error(`"${n} -> ${m}" conflicts with "${z} -> ${m}". Pass \`force=true\` to override this definition.`);
1847
+ T(this, X, "f").set(m, n);
1891
1848
  }
1892
1849
  }
1893
1850
  return this;
@@ -1895,135 +1852,101 @@ class He {
1895
1852
  getType(i) {
1896
1853
  if (typeof i != "string")
1897
1854
  return null;
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;
1855
+ const p = i.replace(/^.*[/\\]/, "").toLowerCase(), n = p.replace(/^.*\./, "").toLowerCase(), o = p.length < i.length;
1856
+ return !(n.length < p.length - 1) && o ? null : T(this, X, "f").get(n) ?? null;
1900
1857
  }
1901
1858
  getExtension(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);
1859
+ return typeof i != "string" ? null : (i = i?.split?.(";")[0], (i && T(this, ea, "f").get(i.trim().toLowerCase())) ?? null);
1904
1860
  }
1905
1861
  getAllExtensions(i) {
1906
- return typeof i != "string" ? null : M(this, W, "f").get(i.toLowerCase()) ?? null;
1862
+ return typeof i != "string" ? null : T(this, P, "f").get(i.toLowerCase()) ?? null;
1907
1863
  }
1908
1864
  _freeze() {
1909
1865
  this.define = () => {
1910
1866
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1911
1867
  }, Object.freeze(this);
1912
- for (const i of M(this, W, "f").values())
1868
+ for (const i of T(this, P, "f").values())
1913
1869
  Object.freeze(i);
1914
1870
  return this;
1915
1871
  }
1916
1872
  _getTestState() {
1917
1873
  return {
1918
- types: M(this, K, "f"),
1919
- extensions: M(this, ta, "f")
1874
+ types: T(this, X, "f"),
1875
+ extensions: T(this, ea, "f")
1920
1876
  };
1921
1877
  }
1922
1878
  }
1923
- K = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap();
1924
- const Ka = new He(Xa, Ja)._freeze(), $a = {
1925
- "en-US": {
1926
- audioFiles: "audio files",
1927
- browseFiles: "Browse files",
1928
- dropArea: "Drop area",
1929
- dropFiles: "Drop file to upload | Drop files to upload",
1930
- fileExceedsSizeLimit: "File exceeds size limit",
1931
- imageFiles: "image files",
1932
- noFilesUploaded: "No files uploaded",
1933
- tooManyFiles: "Too many files",
1934
- videoFiles: "video files",
1935
- youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
1936
- },
1937
- "ja-JP": {
1938
- audioFiles: "オーディオファイル",
1939
- browseFiles: "ファイルを参照",
1940
- dropArea: "ドロップエリア",
1941
- dropFiles: "ファイルをドロップしてアップロード | ファイルをドロップしてアップロード",
1942
- fileExceedsSizeLimit: "ファイルがサイズ制限を超えています",
1943
- imageFiles: "画像ファイル",
1944
- noFilesUploaded: "ファイルはアップロードされていません",
1945
- tooManyFiles: "ファイルが多すぎます",
1946
- videoFiles: "ビデオファイル",
1947
- youHaveExceededTheMaximum: "ファイル{count}件の最大制限を超えました。続行する前にいくつかのファイルを削除してください。"
1948
- },
1949
- "pt-BR": {
1950
- audioFiles: "arquivos de áudio",
1951
- browseFiles: "Procurar arquivos",
1952
- dropArea: "Área de soltar",
1953
- dropFiles: "Soltar arquivo para upload | Soltar arquivos para upload",
1954
- fileExceedsSizeLimit: "O arquivo excede o limite de tamanho",
1955
- imageFiles: "arquivos de imagem",
1956
- noFilesUploaded: "Nenhum arquivo carregado",
1957
- tooManyFiles: "Muitos arquivos",
1958
- videoFiles: "arquivos de vídeo",
1959
- youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir."
1960
- }
1879
+ X = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap();
1880
+ const Xa = new qe(Ja, Ya)._freeze(), Ca = {
1881
+ "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." },
1882
+ "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: "Muitos arquivos", videoFiles: "arquivos de vídeo", youHaveExceededTheMaximum: "Você excedeu o limite máximo de {count} arquivos. Retire alguns arquivos antes de prosseguir." }
1961
1884
  };
1962
- function Be(a) {
1963
- return a.includes("/") ? `.${Ka.getExtension(a).toUpperCase()}` : a.toUpperCase();
1885
+ function He(a) {
1886
+ return a.includes("/") ? `.${Xa.getExtension(a).toUpperCase()}` : a.toUpperCase();
1964
1887
  }
1965
- function Ae(a) {
1966
- const { locale: i, t: n } = ra({ messages: $a });
1888
+ function Be(a) {
1889
+ const { locale: i, t: p } = da({ messages: Ca });
1967
1890
  return { supportedFileTypeList: f(() => {
1968
- const p = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
1969
- return a != null && a.value ? p.format(
1970
- a.value.split(",").map((d) => {
1971
- switch (d.trim()) {
1891
+ const o = new Intl.ListFormat(i.value, { style: "short", type: "unit" });
1892
+ return a?.value ? o.format(
1893
+ a.value.split(",").map((c) => {
1894
+ switch (c.trim()) {
1972
1895
  case "audio/*":
1973
- return n("audioFiles");
1896
+ return p("audioFiles");
1974
1897
  case "image/*":
1975
- return n("imageFiles");
1898
+ return p("imageFiles");
1976
1899
  case "video/*":
1977
- return n("videoFiles");
1900
+ return p("videoFiles");
1978
1901
  default:
1979
- return Be(d);
1902
+ return He(c);
1980
1903
  }
1981
1904
  })
1982
1905
  ) : null;
1983
1906
  }) };
1984
1907
  }
1985
- function Ue(a) {
1986
- return Ka.getType(a) ?? a;
1908
+ function Ae(a) {
1909
+ return Xa.getType(a) ?? a;
1987
1910
  }
1988
- function Ze({ maxCount: a, accept: i }) {
1989
- const n = ka({
1911
+ function Ue({ maxCount: a, accept: i }) {
1912
+ const p = ya({
1990
1913
  invalidTypes: !1,
1991
1914
  partiallyInvalidTypes: !1,
1992
1915
  maxCountOverflow: !1
1993
- }), o = ka({
1916
+ }), n = ya({
1994
1917
  dragging: !1,
1995
1918
  error: !1
1996
- }), p = f(() => i.value ? i.value.split(",").map((h) => Ue(h.trim().toLocaleLowerCase())) : void 0);
1997
- function d() {
1998
- o.dragging = !1, o.error = !1, n.invalidTypes = !1, n.partiallyInvalidTypes = !1, n.maxCountOverflow = !1;
1919
+ }), o = f(() => i.value ? i.value.split(",").map((h) => Ae(h.trim().toLocaleLowerCase())) : void 0);
1920
+ function c() {
1921
+ n.dragging = !1, n.error = !1, p.invalidTypes = !1, p.partiallyInvalidTypes = !1, p.maxCountOverflow = !1;
1999
1922
  }
2000
1923
  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)
1924
+ if (n.dragging = !0, (!h.dataTransfer.types.includes("Files") || m > a.value) && (p.maxCountOverflow = !0, n.error = !0), !o.value)
2002
1925
  return;
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;
1926
+ let z = 0;
1927
+ for (const V of h.dataTransfer.items)
1928
+ o.value.includes(V.type) && z++;
1929
+ if (z === 0) {
1930
+ n.error = !0, p.invalidTypes = !0;
2008
1931
  return;
2009
1932
  }
2010
- !n.invalidTypes && _ !== h.dataTransfer.items.length && (o.error = !0, n.partiallyInvalidTypes = !0);
1933
+ !p.invalidTypes && z !== h.dataTransfer.items.length && (n.error = !0, p.partiallyInvalidTypes = !0);
2011
1934
  }
2012
1935
  return {
2013
- dragState: o,
2014
- dragErrors: n,
2015
- resetDragState: d,
1936
+ dragState: n,
1937
+ dragErrors: p,
1938
+ resetDragState: c,
2016
1939
  onDragEnterValidations: l
2017
1940
  };
2018
1941
  }
2019
- const Ne = ["id", "aria-required", "accept", "disabled", "multiple"], Pe = ["id"], We = ["aria-labelledby", "tabindex"], Ge = {
1942
+ const Ze = ["id", "aria-required", "accept", "disabled", "multiple"], Ne = ["id"], Pe = ["aria-labelledby", "tabindex"], We = {
2020
1943
  class: "b-file-uploader__icon",
2021
1944
  "aria-hidden": "true"
2022
- }, Ye = { class: "b-file-uploader__files" }, Je = {
1945
+ }, Ge = { class: "b-file-uploader__files" }, Ye = {
2023
1946
  model: { prop: "modelValue" },
2024
- i18n: { messages: $a }
2025
- }, Xe = /* @__PURE__ */ da({
2026
- ...Je,
1947
+ i18n: { messages: Ca }
1948
+ }, Je = /* @__PURE__ */ ca({
1949
+ ...Ye,
2027
1950
  __name: "file-uploader",
2028
1951
  props: {
2029
1952
  accept: { default: null },
@@ -2044,327 +1967,299 @@ const Ne = ["id", "aria-required", "accept", "disabled", "multiple"], Pe = ["id"
2044
1967
  },
2045
1968
  emits: ["change", "input", "update:model-value", "error:upload"],
2046
1969
  setup(a, { emit: i }) {
2047
- const { t: n, tc: o, n: p } = ra({ messages: $a }), d = i, l = a, { emitValue: m } = wi(d);
1970
+ const { t: p, tc: n, n: o } = da({ messages: Ca }), c = i, l = a, { emitValue: m } = bi(c);
2048
1971
  function h(e) {
2049
1972
  return !!e && typeof e.length == "number" && typeof e.item == "function";
2050
1973
  }
2051
- Ua(() => {
2052
- h(l.modelValue) || bi(
1974
+ Aa(() => {
1975
+ h(l.modelValue) || hi(
2053
1976
  "BentoFileUploaderValue types: string | Array<string> | File | Array<File>",
2054
1977
  "Use FileList instead.",
2055
1978
  "2.0.0"
2056
1979
  );
2057
1980
  });
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(() => {
2065
- var e, c, C;
2066
- return {
2067
- condensed: l.condensed,
2068
- disabled: l.disabled,
2069
- maxCount: J.value ? {
2070
- value: l.maxCount,
2071
- error: G.maxCountOverflow || za.value
2072
- } : null,
2073
- maxDimensions: l.maxDimensions ? {
2074
- value: l.maxDimensions,
2075
- error: (e = b.value) == null ? void 0 : e.some(($) => $.errors.includes(E.ERROR_DIMENSIONS))
2076
- } : null,
2077
- maxSize: l.maxSize ? {
2078
- value: l.maxSize,
2079
- error: (c = b.value) == null ? void 0 : c.some(($) => $.errors.includes(E.ERROR_SIZE))
2080
- } : null,
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)))
2084
- } : null
2085
- };
2086
- }), ia = S(), ma = f(() => ({
2087
- [`b-file-uploader--${ca.DISABLED}`]: l.disabled,
2088
- [`b-file-uploader--${ca.DRAG_OVER}`]: pa.dragging,
2089
- [`b-file-uploader--${ca.ERROR}`]: va.value,
1981
+ const { supportedFileTypeList: z } = Be(ha(l, "accept")), V = I("browse-button"), O = I("custom-text"), v = I("drop-files-text"), _ = I("comma-text"), B = I("file-uploader-restrictions"), q = I("field-label"), b = F(null), N = F([]), A = F(null), K = F(null), Q = I("input"), ta = I("input-error"), na = f(() => {
1982
+ const e = l.label ? `${q} ${_}` : "", d = l.condensed ? "" : `${v} ${_}`, C = l.description ? `${O} ${_}` : "", L = `${B} ${_}`;
1983
+ return `${e} ${d} ${C} ${L} ${V}`;
1984
+ }), { dragState: oa, dragErrors: W, resetDragState: G, onDragEnterValidations: pa } = Ue({
1985
+ accept: ha(l, "accept"),
1986
+ maxCount: ha(l, "maxCount")
1987
+ }), la = f(() => ({
1988
+ condensed: l.condensed,
1989
+ disabled: l.disabled,
1990
+ maxCount: Y.value ? {
1991
+ value: l.maxCount,
1992
+ error: W.maxCountOverflow || $a.value
1993
+ } : null,
1994
+ maxDimensions: l.maxDimensions ? {
1995
+ value: l.maxDimensions,
1996
+ error: b.value?.some((e) => e.errors.includes(E.ERROR_DIMENSIONS))
1997
+ } : null,
1998
+ maxSize: l.maxSize ? {
1999
+ value: l.maxSize,
2000
+ error: b.value?.some((e) => e.errors.includes(E.ERROR_SIZE))
2001
+ } : null,
2002
+ supportedFileTypes: z.value ? {
2003
+ value: z.value,
2004
+ error: W.invalidTypes || W.partiallyInvalidTypes || b.value?.some((e) => e.errors.includes(E.ERROR_TYPE))
2005
+ } : null
2006
+ })), aa = F(), ra = f(() => ({
2007
+ [`b-file-uploader--${sa.DISABLED}`]: l.disabled,
2008
+ [`b-file-uploader--${sa.DRAG_OVER}`]: oa.dragging,
2009
+ [`b-file-uploader--${sa.ERROR}`]: ua.value,
2090
2010
  "b-file-uploader--condensed": l.condensed
2091
- })), J = f(() => l.maxCount > 1), ua = f(() => {
2092
- var e;
2093
- return l.maxCount && ((e = b.value) == null ? void 0 : e.length) >= l.maxCount || l.readonly;
2094
- }), R = f(() => {
2095
- var e;
2096
- return (e = b.value) == null ? void 0 : e.some((c) => c.state === "loading");
2097
- }), B = (e) => (c) => {
2098
- P.value[e] = c;
2011
+ })), Y = f(() => l.maxCount > 1), ma = f(() => l.maxCount && b.value?.length >= l.maxCount || l.readonly), j = f(() => b.value?.some((e) => e.state === "loading")), H = (e) => (d) => {
2012
+ N.value[e] = d;
2099
2013
  };
2100
- function ea(e) {
2014
+ function ia(e) {
2101
2015
  if (e) {
2102
- li(e), si(e);
2103
- const c = ci(e);
2104
- d("change", c), m(c);
2016
+ pi(e), li(e);
2017
+ const d = si(e);
2018
+ c("change", d), m(d);
2105
2019
  } else
2106
- d("change", void 0), m(void 0);
2020
+ c("change", void 0), m(void 0);
2107
2021
  }
2108
- const va = f(() => !!l.errorMessage || pa.error), za = f(() => {
2109
- var e;
2110
- return ((e = b.value) == null ? void 0 : e.length) > l.maxCount;
2111
- }), Qa = S(!1), ai = f(() => {
2112
- var e;
2113
- return (e = b.value) == null ? void 0 : e.some((c) => c.state === "error");
2022
+ const ua = f(() => !!l.errorMessage || oa.error), $a = f(() => b.value?.length > l.maxCount), Ka = F(!1), Qa = f(() => b.value?.some((e) => e.state === "error"));
2023
+ wa(Qa, (e) => {
2024
+ j.value || c("error:upload", e);
2114
2025
  });
2115
- ya(ai, (e) => {
2116
- R.value || d("error:upload", e);
2117
- });
2118
- async function fa() {
2119
- var e;
2120
- if (await gi(), b.value.length === l.maxCount) {
2121
- (e = P.value[0]) == null || e.focus();
2026
+ async function va() {
2027
+ if (await xi(), b.value.length === l.maxCount) {
2028
+ N.value[0]?.focus();
2122
2029
  return;
2123
2030
  }
2124
- Q.value.focus();
2031
+ K.value.focus();
2125
2032
  }
2126
- async function _a(e) {
2127
- b.value = b.value.filter(({ id: c }) => c !== e.id), await fa(), ea(b.value);
2033
+ async function za(e) {
2034
+ b.value = b.value.filter(({ id: d }) => d !== e.id), await va(), ia(b.value);
2128
2035
  }
2129
- function xa(e) {
2130
- const c = ka({
2131
- id: F("file"),
2036
+ function fa(e) {
2037
+ const d = ya({
2038
+ id: I("file"),
2132
2039
  data: e,
2133
2040
  errors: [],
2134
2041
  progress: null,
2135
- state: D.LOADING,
2136
- type: Hi(e)
2042
+ state: M.LOADING,
2043
+ type: qi(e)
2137
2044
  });
2138
- return Bi(c, l.accept, l.maxDimensions), c;
2045
+ return Hi(d, l.accept, l.maxDimensions), d;
2139
2046
  }
2140
- function ii(e) {
2141
- var c;
2142
- ((c = b.value) == null ? void 0 : c.length) === l.maxCount && e.preventDefault();
2047
+ function ai(e) {
2048
+ b.value?.length === l.maxCount && e.preventDefault();
2143
2049
  }
2144
- async function ja(e) {
2050
+ async function _a(e) {
2145
2051
  if (l.maxCount === 1 && e.length > l.maxCount) {
2146
- ga(), Y();
2052
+ xa(), G();
2147
2053
  return;
2148
2054
  }
2149
- J.value ? b.value = [...b.value || [], ...Array.from(e).map((c) => xa(c))] : (b.value = [xa(e[0])], await fa()), ea(b.value);
2055
+ Y.value ? b.value = [...b.value || [], ...Array.from(e).map((d) => fa(d))] : (b.value = [fa(e[0])], await va()), ia(b.value);
2150
2056
  }
2151
- function ei(e) {
2152
- var C, $;
2057
+ function ii(e) {
2153
2058
  if (l.disabled)
2154
2059
  return;
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);
2157
- la(c, e);
2060
+ aa.value = e.target;
2061
+ const d = (e.dataTransfer.items?.length ?? 0) + (b.value?.length ?? 0);
2062
+ pa(d, e);
2158
2063
  }
2159
- function ga() {
2160
- ia.value = null;
2064
+ function xa() {
2065
+ aa.value = null;
2161
2066
  }
2162
- function ti(e) {
2163
- ia.value === e.target && (ga(), Y());
2067
+ function ei(e) {
2068
+ aa.value === e.target && (xa(), G());
2164
2069
  }
2165
- function ni(e) {
2070
+ function ti(e) {
2166
2071
  e.preventDefault(), l.disabled && (e.dataTransfer.dropEffect = "none");
2167
2072
  }
2168
- async function oi(e) {
2169
- var c;
2170
- l.disabled || (!G.invalidTypes && ((c = e.dataTransfer.files) != null && c.length) && ja(e.dataTransfer.files), ga(), Y());
2073
+ async function ni(e) {
2074
+ l.disabled || (!W.invalidTypes && e.dataTransfer.files?.length && _a(e.dataTransfer.files), xa(), G());
2171
2075
  }
2172
- async function pi() {
2173
- var e;
2174
- (e = U.value.files) != null && e.length && ja(U.value.files), U.value.value = "", await fa();
2076
+ async function oi() {
2077
+ A.value.files?.length && _a(A.value.files), A.value.value = "", await va();
2175
2078
  }
2176
- ya(
2079
+ wa(
2177
2080
  () => l.modelValue,
2178
2081
  (e) => {
2179
2082
  if (e && h(e)) {
2180
2083
  const C = Array.from(e);
2181
- b.value = C.map(($) => xa($));
2084
+ b.value = C.map((L) => fa(L));
2182
2085
  } else !e && b.value && (b.value = null);
2183
2086
  },
2184
2087
  { immediate: !0 }
2185
2088
  );
2186
- function li(e) {
2187
- const c = l.maxCount && e.length <= l.maxCount;
2188
- Qa.value = !c;
2089
+ function pi(e) {
2090
+ const d = l.maxCount && e.length <= l.maxCount;
2091
+ Ka.value = !d;
2189
2092
  }
2190
- function si(e) {
2191
- l.maxSize && e.forEach((c) => {
2192
- const C = c;
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));
2093
+ function li(e) {
2094
+ l.maxSize && e.forEach((d) => {
2095
+ const C = d;
2096
+ let L;
2097
+ Array.isArray(l.maxSize) ? L = l.maxSize.find(
2098
+ (ci) => Pa(C.data, ci.fileType)
2099
+ )?.maxSize : L = l.maxSize, L && C.data.size > L && (C.state = M.ERROR, C.errors.includes(E.ERROR_SIZE) || C.errors.push(E.ERROR_SIZE));
2202
2100
  });
2203
2101
  }
2204
- function ci(e) {
2205
- const c = e.filter(
2102
+ function si(e) {
2103
+ const d = e.filter(
2206
2104
  ({ errors: C }) => !C.includes(E.ERROR_LOAD) && !C.includes(E.ERROR_SIZE)
2207
2105
  );
2208
- if (c.length) {
2106
+ if (d.length) {
2209
2107
  const C = new DataTransfer();
2210
- return c.forEach(({ data: $, id: T }) => {
2211
- C.items.add($);
2108
+ return d.forEach(({ data: L, id: ga }) => {
2109
+ C.items.add(L);
2212
2110
  }), C.files;
2213
2111
  }
2214
2112
  }
2215
- return (e, c) => {
2216
- var C, $;
2217
- return s(), g("div", {
2218
- class: N(["b-file-uploader", ma.value])
2113
+ return (e, d) => (s(), g("div", {
2114
+ class: Z(["b-file-uploader", ra.value])
2115
+ }, [
2116
+ U(t(ji), {
2117
+ id: t(q),
2118
+ class: "b-file-uploader__label",
2119
+ for: t(Q),
2120
+ label: e.label,
2121
+ optional: e.optional,
2122
+ required: e.required,
2123
+ "tooltip-text": e.tooltipText
2124
+ }, null, 8, ["id", "for", "label", "optional", "required", "tooltip-text"]),
2125
+ r("input", {
2126
+ id: t(Q),
2127
+ ref_key: "inputRef",
2128
+ ref: A,
2129
+ "aria-required": e.required,
2130
+ type: "file",
2131
+ tabindex: "-1",
2132
+ "data-testid": "input",
2133
+ class: "b-file-uploader__input",
2134
+ accept: e.accept,
2135
+ disabled: e.disabled,
2136
+ multiple: Y.value,
2137
+ onChange: oi,
2138
+ onClick: ai,
2139
+ onInvalid: d[0] || (d[0] = J(() => {
2140
+ }, ["prevent"]))
2141
+ }, null, 40, Ze),
2142
+ r("span", {
2143
+ id: t(_),
2144
+ "aria-hidden": "true",
2145
+ class: "b-file-uploader__invisible-comma"
2146
+ }, " , ", 8, Ne),
2147
+ ma.value ? u("", !0) : (s(), g("div", {
2148
+ key: 0,
2149
+ ref_key: "dropAreaRef",
2150
+ ref: K,
2151
+ "aria-labelledby": na.value,
2152
+ class: "b-file-uploader__area",
2153
+ role: "button",
2154
+ tabindex: e.disabled ? -1 : 0,
2155
+ onClick: d[1] || (d[1] = (C) => A.value.click()),
2156
+ onDragenter: J(ii, ["stop", "prevent"]),
2157
+ onDragleave: J(ei, ["stop", "prevent"]),
2158
+ onDrop: J(ni, ["stop", "prevent"]),
2159
+ onDragover: ti,
2160
+ onKeydownCapture: [
2161
+ d[2] || (d[2] = Ea(J((C) => A.value.click(), ["prevent"]), ["enter"])),
2162
+ d[3] || (d[3] = Ea(J((C) => A.value.click(), ["prevent"]), ["space"]))
2163
+ ]
2219
2164
  }, [
2220
- Z(t(Ri), {
2221
- id: t(H),
2222
- class: "b-file-uploader__label",
2223
- for: t(aa),
2224
- label: e.label,
2225
- optional: e.optional,
2226
- required: e.required,
2227
- "tooltip-text": e.tooltipText
2228
- }, null, 8, ["id", "for", "label", "optional", "required", "tooltip-text"]),
2229
- r("input", {
2230
- id: t(aa),
2231
- ref_key: "inputRef",
2232
- ref: U,
2233
- "aria-required": e.required,
2234
- type: "file",
2235
- tabindex: "-1",
2236
- "data-testid": "input",
2237
- class: "b-file-uploader__input",
2238
- accept: e.accept,
2239
- disabled: e.disabled,
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),
2248
- "aria-hidden": "true",
2249
- class: "b-file-uploader__invisible-comma"
2250
- }, " , ", 8, Pe),
2251
- ua.value ? u("", !0) : (s(), g("div", {
2252
- key: 0,
2253
- ref_key: "dropAreaRef",
2254
- ref: Q,
2255
- "aria-labelledby": oa.value,
2256
- class: "b-file-uploader__area",
2257
- role: "button",
2258
- tabindex: e.disabled ? -1 : 0,
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,
2264
- onKeydownCapture: [
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"]))
2267
- ]
2268
- }, [
2269
- r("div", Ge, [
2270
- va.value ? (s(), y(t(Na), { key: 0 })) : (s(), y(t(Li), { key: 1 }))
2271
- ]),
2272
- e.condensed ? u("", !0) : (s(), g(Ia, { key: 0 }, [
2273
- Z(t(I), {
2274
- id: t(v),
2275
- el: "span",
2276
- strongest: "",
2277
- class: "b-file-uploader__title"
2278
- }, {
2279
- default: w(() => [
2280
- z(x(t(o)("dropFiles", e.maxCount)), 1)
2281
- ]),
2282
- _: 1
2283
- }, 8, ["id"]),
2284
- e.description ? (s(), y(t(I), {
2285
- key: 0,
2286
- id: t(q),
2287
- el: "span",
2288
- class: "b-file-uploader__description"
2289
- }, {
2290
- default: w(() => [
2291
- z(x(e.description), 1)
2292
- ]),
2293
- _: 1
2294
- }, 8, ["id"])) : u("", !0),
2295
- Z(t(Aa), V(sa.value, { id: t(A) }), null, 16, ["id"])
2296
- ], 64)),
2297
- Z(t(I), {
2165
+ r("div", We, [
2166
+ ua.value ? (s(), y(t(Za), { key: 0 })) : (s(), y(t(Si), { key: 1 }))
2167
+ ]),
2168
+ e.condensed ? u("", !0) : (s(), g(Ra, { key: 0 }, [
2169
+ U(t(R), {
2170
+ id: t(v),
2171
+ el: "span",
2172
+ strongest: "",
2173
+ class: "b-file-uploader__title"
2174
+ }, {
2175
+ default: w(() => [
2176
+ $(x(t(n)("dropFiles", e.maxCount)), 1)
2177
+ ]),
2178
+ _: 1
2179
+ }, 8, ["id"]),
2180
+ e.description ? (s(), y(t(R), {
2181
+ key: 0,
2298
2182
  id: t(O),
2299
- stronger: "",
2300
- class: "b-file-uploader__button"
2183
+ el: "span",
2184
+ class: "b-file-uploader__description"
2301
2185
  }, {
2302
2186
  default: w(() => [
2303
- z(x(t(n)("browseFiles")), 1)
2187
+ $(x(e.description), 1)
2304
2188
  ]),
2305
2189
  _: 1
2306
- }, 8, ["id"])
2307
- ], 40, We)),
2308
- va.value && e.errorMessage ? (s(), y(t(Ei), {
2309
- key: 1,
2310
- id: t(na),
2311
- "error-message": e.errorMessage,
2312
- class: "b-file-uploader__error-message"
2313
- }, null, 8, ["id", "error-message"])) : u("", !0),
2314
- e.condensed && e.description ? (s(), y(t(I), {
2315
- key: 2,
2316
- id: t(q),
2317
- "aria-hidden": "true",
2318
- el: "span",
2319
- class: "b-file-uploader__description b-file-uploader__description--condensed"
2320
- }, {
2321
- default: w(() => [
2322
- z(x(e.description), 1)
2323
- ]),
2324
- _: 1
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), {
2328
- key: 4,
2329
- type: "critical"
2190
+ }, 8, ["id"])) : u("", !0),
2191
+ U(t(Ba), D(la.value, { id: t(B) }), null, 16, ["id"])
2192
+ ], 64)),
2193
+ U(t(R), {
2194
+ id: t(V),
2195
+ stronger: "",
2196
+ class: "b-file-uploader__button"
2330
2197
  }, {
2331
- description: w(() => [
2332
- z(x(t(n)("youHaveExceededTheMaximum", { count: t(p)(l.maxCount) })), 1)
2333
- ]),
2334
2198
  default: w(() => [
2335
- z(x(t(n)("tooManyFiles")) + " ", 1)
2199
+ $(x(t(p)("browseFiles")), 1)
2336
2200
  ]),
2337
2201
  _: 1
2338
- })) : u("", !0),
2339
- Za(r("div", Ye, [
2340
- (s(!0), g(Ia, null, fi(b.value, (T, ha) => (s(), y(t(Ve), {
2341
- ref_for: !0,
2342
- ref: B(ha),
2343
- key: T.id,
2344
- file: T,
2345
- "supported-file-types": t(_),
2346
- readonly: e.readonly,
2347
- onCancel: (di) => _a(T),
2348
- onRemove: (di) => _a(T)
2349
- }, null, 8, ["file", "supported-file-types", "readonly", "onCancel", "onRemove"]))), 128))
2350
- ], 512), [
2351
- [xi, (C = b.value) == null ? void 0 : C.length]
2202
+ }, 8, ["id"])
2203
+ ], 40, Pe)),
2204
+ ua.value && e.errorMessage ? (s(), y(t(Ei), {
2205
+ key: 1,
2206
+ id: t(ta),
2207
+ "error-message": e.errorMessage,
2208
+ class: "b-file-uploader__error-message"
2209
+ }, null, 8, ["id", "error-message"])) : u("", !0),
2210
+ e.condensed && e.description ? (s(), y(t(R), {
2211
+ key: 2,
2212
+ id: t(O),
2213
+ "aria-hidden": "true",
2214
+ el: "span",
2215
+ class: "b-file-uploader__description b-file-uploader__description--condensed"
2216
+ }, {
2217
+ default: w(() => [
2218
+ $(x(e.description), 1)
2352
2219
  ]),
2353
- !(($ = b.value) != null && $.length) && e.readonly ? (s(), y(t(I), {
2354
- key: 5,
2355
- class: "b-file-uploader__no-files",
2356
- wide: ""
2357
- }, {
2358
- default: w(() => [
2359
- z(x(t(n)("noFilesUploaded")), 1)
2360
- ]),
2361
- _: 1
2362
- })) : u("", !0)
2363
- ], 2);
2364
- };
2220
+ _: 1
2221
+ }, 8, ["id"])) : u("", !0),
2222
+ e.condensed ? (s(), y(t(Ba), D({ key: 3 }, la.value, { id: t(B) }), null, 16, ["id"])) : u("", !0),
2223
+ $a.value ? (s(), y(t(gi), {
2224
+ key: 4,
2225
+ type: "critical"
2226
+ }, {
2227
+ description: w(() => [
2228
+ $(x(t(p)("youHaveExceededTheMaximum", { count: t(o)(l.maxCount) })), 1)
2229
+ ]),
2230
+ default: w(() => [
2231
+ $(x(t(p)("tooManyFiles")) + " ", 1)
2232
+ ]),
2233
+ _: 1
2234
+ })) : u("", !0),
2235
+ Ua(r("div", Ge, [
2236
+ (s(!0), g(Ra, null, vi(b.value, (C, L) => (s(), y(t(De), {
2237
+ ref_for: !0,
2238
+ ref: H(L),
2239
+ key: C.id,
2240
+ file: C,
2241
+ "supported-file-types": t(z),
2242
+ readonly: e.readonly,
2243
+ onCancel: (ga) => za(C),
2244
+ onRemove: (ga) => za(C)
2245
+ }, null, 8, ["file", "supported-file-types", "readonly", "onCancel", "onRemove"]))), 128))
2246
+ ], 512), [
2247
+ [fi, b.value?.length]
2248
+ ]),
2249
+ !b.value?.length && e.readonly ? (s(), y(t(R), {
2250
+ key: 5,
2251
+ class: "b-file-uploader__no-files",
2252
+ wide: ""
2253
+ }, {
2254
+ default: w(() => [
2255
+ $(x(t(p)("noFilesUploaded")), 1)
2256
+ ]),
2257
+ _: 1
2258
+ })) : u("", !0)
2259
+ ], 2));
2365
2260
  }
2366
- }), gt = /* @__PURE__ */ L(Xe, [["__scopeId", "data-v-9e27903c"]]);
2261
+ }), xt = /* @__PURE__ */ S(Je, [["__scopeId", "data-v-9e27903c"]]);
2367
2262
  export {
2368
- gt as f
2263
+ xt as f
2369
2264
  };
2370
- //# sourceMappingURL=file-uploader.BnmNI1O7.js.map
2265
+ //# sourceMappingURL=file-uploader.Bfd1uUMe.js.map