@adyen/bento-vue3 1.41.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-row/data-grid-row.vue.d.ts +1 -350
  4. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector/use-selector.d.ts +3 -2
  7. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +33 -1
  9. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +7 -0
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +7 -0
  11. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/components/file-uploader-file-card-animation/file-uploader-file-card-animation.vue.d.ts +24 -0
  12. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/components/index.d.ts +1 -0
  13. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/composables/use-truncated-file-name.d.ts +10 -0
  14. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/file-uploader-file-card.types.d.ts +11 -0
  15. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/file-uploader-file-card.vue.d.ts +63 -0
  16. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/index.d.ts +1 -0
  17. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/get-file-icon/get-file-icon.d.ts +8 -0
  18. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/get-file-icon-color/get-file-icon-color.d.ts +8 -0
  19. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/index.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/file-uploader-restrictions.types.d.ts +39 -0
  21. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/file-uploader-restrictions.vue.d.ts +68 -0
  22. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/index.d.ts +1 -0
  23. package/dist/@types/packages/vue2/src/components/file-uploader/composables/index.d.ts +1 -0
  24. package/dist/@types/packages/vue2/src/components/file-uploader/composables/use-file-type-list/use-file-type-list.d.ts +11 -0
  25. package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.types.d.ts +99 -0
  26. package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.vue.d.ts +85 -0
  27. package/dist/@types/packages/vue2/src/components/file-uploader/index.d.ts +2 -0
  28. package/dist/@types/packages/vue2/src/components/file-uploader/utils/format-file-size/format-file-size.d.ts +9 -0
  29. package/dist/@types/packages/vue2/src/components/file-uploader/utils/get-file-type/get-file-type.d.ts +8 -0
  30. package/dist/@types/packages/vue2/src/components/file-uploader/utils/index.d.ts +3 -0
  31. package/dist/@types/packages/vue2/src/components/file-uploader/utils/read-file/read-file.d.ts +14 -0
  32. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +277 -37
  33. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
  34. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +21 -6
  35. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +30 -6
  37. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +30 -6
  38. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +44 -6
  39. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +5 -7
  40. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +37 -6
  41. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-with-dropdown-filter/input-with-dropdown-filter.vue.d.ts +8 -0
  42. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +37 -6
  43. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +15 -0
  44. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +15 -0
  45. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.props.d.ts +7 -0
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +9 -0
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +24 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +9 -0
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +24 -0
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +24 -0
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +24 -0
  52. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +4 -0
  53. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +274 -30
  54. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +3 -0
  55. package/dist/@types/packages/vue2/src/components/input-field-password/index.d.ts +3 -0
  56. package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.types.d.ts +77 -0
  57. package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.vue.d.ts +90 -0
  58. package/dist/@types/packages/vue2/src/components/input-field-password/utilities/input-field-password.validation.d.ts +37 -0
  59. package/dist/@types/packages/vue2/src/components/internal/tooltip/tooltip.vue.d.ts +43 -8
  60. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  61. package/dist/action-bar.js +1 -1
  62. package/dist/alert.js +1 -1
  63. package/dist/assets/accordion-item.css +1 -1
  64. package/dist/assets/action-bar.css +1 -1
  65. package/dist/assets/base-modal.css +1 -1
  66. package/dist/assets/card.css +1 -1
  67. package/dist/assets/data-grid.css +1 -1
  68. package/dist/assets/date-range-picker.css +1 -1
  69. package/dist/assets/dialog-page.css +1 -1
  70. package/dist/assets/file-uploader.css +1 -0
  71. package/dist/assets/filter-bar.css +1 -1
  72. package/dist/assets/input-field-password.css +1 -0
  73. package/dist/assets/input-field.css +1 -1
  74. package/dist/assets/inspector.css +1 -1
  75. package/dist/assets/menu.css +1 -1
  76. package/dist/assets/modal-fullscreen.css +1 -1
  77. package/dist/assets/popover.css +1 -1
  78. package/dist/assets/sidepanel.css +1 -1
  79. package/dist/assets/step.css +1 -1
  80. package/dist/assets/tooltip.css +1 -1
  81. package/dist/assets/typography.css +1 -1
  82. package/dist/button.js +2 -2
  83. package/dist/card.js +1 -1
  84. package/dist/checkbox.js +2 -2
  85. package/dist/chunks/{action-bar.BZIBGja0.js → action-bar.COQrEUYU.js} +5 -5
  86. package/dist/chunks/{action-bar.BZIBGja0.js.map → action-bar.COQrEUYU.js.map} +1 -1
  87. package/dist/chunks/{alert.CHddA_lK.js → alert.B9V6kUmo.js} +9 -9
  88. package/dist/chunks/{alert.CHddA_lK.js.map → alert.B9V6kUmo.js.map} +1 -1
  89. package/dist/chunks/{base-modal.6IqnDuvf.js → base-modal.ku0lyHOs.js} +2 -2
  90. package/dist/chunks/{base-modal.6IqnDuvf.js.map → base-modal.ku0lyHOs.js.map} +1 -1
  91. package/dist/chunks/{button-actions-with-menu.ByYlrFqZ.js → button-actions-with-menu.Bn7Kdx4v.js} +4 -4
  92. package/dist/chunks/{button-actions-with-menu.ByYlrFqZ.js.map → button-actions-with-menu.Bn7Kdx4v.js.map} +1 -1
  93. package/dist/chunks/{button-actions.ndsyVgzV.js → button-actions.Bjfo46Q_.js} +2 -2
  94. package/dist/chunks/{button-actions.ndsyVgzV.js.map → button-actions.Bjfo46Q_.js.map} +1 -1
  95. package/dist/chunks/{card.B6tMI3KP.js → card.D_XL2TWr.js} +2 -2
  96. package/dist/chunks/{card.B6tMI3KP.js.map → card.D_XL2TWr.js.map} +1 -1
  97. package/dist/chunks/{checkbox-group.Zf-GivDW.js → checkbox-group.BUmkYc2R.js} +4 -4
  98. package/dist/chunks/{checkbox-group.Zf-GivDW.js.map → checkbox-group.BUmkYc2R.js.map} +1 -1
  99. package/dist/chunks/{checkbox.DdMkyTo5.js → checkbox.L94hTcPY.js} +16 -16
  100. package/dist/chunks/{checkbox.DdMkyTo5.js.map → checkbox.L94hTcPY.js.map} +1 -1
  101. package/dist/chunks/{checkmark-circle-fill.ChV7Jy6r.js → checkmark-circle-fill.ClIf1E3H.js} +7 -7
  102. package/dist/chunks/{checkmark-circle-fill.ChV7Jy6r.js.map → checkmark-circle-fill.ClIf1E3H.js.map} +1 -1
  103. package/dist/chunks/{code-snippet.Dp_tDJ-S.js → code-snippet.DbUGxmYi.js} +5 -5
  104. package/dist/chunks/{code-snippet.Dp_tDJ-S.js.map → code-snippet.DbUGxmYi.js.map} +1 -1
  105. package/dist/chunks/{controls-group.RL8WrYdy.js → controls-group.Dg_YRS1e.js} +2 -2
  106. package/dist/chunks/{controls-group.RL8WrYdy.js.map → controls-group.Dg_YRS1e.js.map} +1 -1
  107. package/dist/chunks/{copy.dbbJppdL.js → copy.CnzLQyvJ.js} +2 -2
  108. package/dist/chunks/{copy.dbbJppdL.js.map → copy.CnzLQyvJ.js.map} +1 -1
  109. package/dist/chunks/{dashboard-section.BdRXcY4u.js → dashboard-section.YU5gKDEJ.js} +3 -3
  110. package/dist/chunks/{dashboard-section.BdRXcY4u.js.map → dashboard-section.YU5gKDEJ.js.map} +1 -1
  111. package/dist/chunks/{dashed-underline.D6ke20Vd.js → dashed-underline.BKfUevuM.js} +3 -3
  112. package/dist/chunks/{dashed-underline.D6ke20Vd.js.map → dashed-underline.BKfUevuM.js.map} +1 -1
  113. package/dist/chunks/{data-grid-template.CRxJLJsn.js → data-grid-template.DI27ou71.js} +2 -2
  114. package/dist/chunks/{data-grid-template.CRxJLJsn.js.map → data-grid-template.DI27ou71.js.map} +1 -1
  115. package/dist/chunks/data-grid.DgPWs1hH.js +3374 -0
  116. package/dist/chunks/data-grid.DgPWs1hH.js.map +1 -0
  117. package/dist/chunks/{date-picker.B6HK0sb2.js → date-picker.DDsfecHp.js} +3 -3
  118. package/dist/chunks/{date-picker.B6HK0sb2.js.map → date-picker.DDsfecHp.js.map} +1 -1
  119. package/dist/chunks/{date-range-picker.3iWt1Cd6.js → date-range-picker.DjPmRy0E.js} +205 -202
  120. package/dist/chunks/date-range-picker.DjPmRy0E.js.map +1 -0
  121. package/dist/chunks/dot.pQfhaKda.js +29 -0
  122. package/dist/chunks/dot.pQfhaKda.js.map +1 -0
  123. package/dist/chunks/{dropdown-tag.ChFJ9l5g.js → dropdown-tag.BKDmDRSv.js} +3 -3
  124. package/dist/chunks/{dropdown-tag.ChFJ9l5g.js.map → dropdown-tag.BKDmDRSv.js.map} +1 -1
  125. package/dist/chunks/{dropdown.CMKdLPHi.js → dropdown.DpjMobyf.js} +4 -4
  126. package/dist/chunks/{dropdown.CMKdLPHi.js.map → dropdown.DpjMobyf.js.map} +1 -1
  127. package/dist/chunks/{error-message.CmMyB-k9.js → error-message.BYXS0kUN.js} +2 -2
  128. package/dist/chunks/{error-message.CmMyB-k9.js.map → error-message.BYXS0kUN.js.map} +1 -1
  129. package/dist/chunks/es6.b4enG1py.js.map +1 -1
  130. package/dist/chunks/file-uploader.cRbwpcAw.js +1074 -0
  131. package/dist/chunks/file-uploader.cRbwpcAw.js.map +1 -0
  132. package/dist/chunks/filter-bar.BwJTrH5U.js +2867 -0
  133. package/dist/chunks/filter-bar.BwJTrH5U.js.map +1 -0
  134. package/dist/chunks/{footer-actions.DAlN9pd3.js → footer-actions.DvIVWqWv.js} +2 -2
  135. package/dist/chunks/{footer-actions.DAlN9pd3.js.map → footer-actions.DvIVWqWv.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.w0J-ymMW.js → form-layout-title.BqNDCnLk.js} +2 -2
  137. package/dist/chunks/{form-layout-title.w0J-ymMW.js.map → form-layout-title.BqNDCnLk.js.map} +1 -1
  138. package/dist/chunks/{header.DQmnYarZ.js → header.C0NBlBJv.js} +4 -4
  139. package/dist/chunks/{header.DQmnYarZ.js.map → header.C0NBlBJv.js.map} +1 -1
  140. package/dist/chunks/index.CWuzEfiV.js +6 -0
  141. package/dist/chunks/index.CWuzEfiV.js.map +1 -0
  142. package/dist/chunks/index.lHdwuJAx.js +366 -0
  143. package/dist/chunks/index.lHdwuJAx.js.map +1 -0
  144. package/dist/chunks/{info-icon.CNPSAUM6.js → info-icon.CUC0fwLb.js} +2 -2
  145. package/dist/chunks/{info-icon.CNPSAUM6.js.map → info-icon.CUC0fwLb.js.map} +1 -1
  146. package/dist/chunks/input-field-password.DxNS4MmO.js +306 -0
  147. package/dist/chunks/input-field-password.DxNS4MmO.js.map +1 -0
  148. package/dist/chunks/{input-field.Bk2p3kIb.js → input-field.BQKEQIZd.js} +84 -83
  149. package/dist/chunks/input-field.BQKEQIZd.js.map +1 -0
  150. package/dist/chunks/{layout-row.rzhGrBQ3.js → layout-row.DcyZ3DP3.js} +2 -2
  151. package/dist/chunks/{layout-row.rzhGrBQ3.js.map → layout-row.DcyZ3DP3.js.map} +1 -1
  152. package/dist/chunks/{listbox-option-tag.58u_cWFs.js → listbox-option-tag.DU_NVK_z.js} +2 -2
  153. package/dist/chunks/{listbox-option-tag.58u_cWFs.js.map → listbox-option-tag.DU_NVK_z.js.map} +1 -1
  154. package/dist/chunks/{loading-button.CHujR70I.js → loading-button.CNWhVIPK.js} +10 -10
  155. package/dist/chunks/{loading-button.CHujR70I.js.map → loading-button.CNWhVIPK.js.map} +1 -1
  156. package/dist/chunks/{menu.DXVN_WLr.js → menu.BpqOdkxR.js} +3 -3
  157. package/dist/chunks/{menu.DXVN_WLr.js.map → menu.BpqOdkxR.js.map} +1 -1
  158. package/dist/chunks/{modal-fullscreen.D96Avr2Q.js → modal-fullscreen.DtgTb1Xh.js} +2 -2
  159. package/dist/chunks/{modal-fullscreen.D96Avr2Q.js.map → modal-fullscreen.DtgTb1Xh.js.map} +1 -1
  160. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js → modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js} +4 -4
  161. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js.map → modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js.map} +1 -1
  162. package/dist/chunks/{pagination.D_4FRHE9.js → pagination.C34l_EYf.js} +2 -2
  163. package/dist/chunks/{pagination.D_4FRHE9.js.map → pagination.C34l_EYf.js.map} +1 -1
  164. package/dist/chunks/{popover.HArIkKve.js → popover.D9Zw4w9l.js} +2 -2
  165. package/dist/chunks/{popover.HArIkKve.js.map → popover.D9Zw4w9l.js.map} +1 -1
  166. package/dist/chunks/{promo-banner.BRn1iznD.js → promo-banner.CzR9ri5v.js} +2 -2
  167. package/dist/chunks/{promo-banner.BRn1iznD.js.map → promo-banner.CzR9ri5v.js.map} +1 -1
  168. package/dist/chunks/{radio-group.D94e5N12.js → radio-group.DIyCKfOQ.js} +4 -4
  169. package/dist/chunks/{radio-group.D94e5N12.js.map → radio-group.DIyCKfOQ.js.map} +1 -1
  170. package/dist/chunks/{search-bar.D_4u91te.js → search-bar.Dy0dBek2.js} +3 -3
  171. package/dist/chunks/{search-bar.D_4u91te.js.map → search-bar.Dy0dBek2.js.map} +1 -1
  172. package/dist/chunks/{secondary-nav.CQ3aLyrM.js → secondary-nav.DYFnrUIK.js} +3 -3
  173. package/dist/chunks/{secondary-nav.CQ3aLyrM.js.map → secondary-nav.DYFnrUIK.js.map} +1 -1
  174. package/dist/chunks/{segmented-control.CueLfseV.js → segmented-control.B5H5Wiyz.js} +2 -2
  175. package/dist/chunks/{segmented-control.CueLfseV.js.map → segmented-control.B5H5Wiyz.js.map} +1 -1
  176. package/dist/chunks/{selection-card-group.Du3Cwf47.js → selection-card-group.BY8o4PYF.js} +12 -12
  177. package/dist/chunks/{selection-card-group.Du3Cwf47.js.map → selection-card-group.BY8o4PYF.js.map} +1 -1
  178. package/dist/chunks/show.ChPQTrAT.js +64 -0
  179. package/dist/chunks/show.ChPQTrAT.js.map +1 -0
  180. package/dist/chunks/{sidepanel.CGbl5x5B.js → sidepanel.BywianGe.js} +2 -2
  181. package/dist/chunks/{sidepanel.CGbl5x5B.js.map → sidepanel.BywianGe.js.map} +1 -1
  182. package/dist/chunks/step.Db0UJ8mx.js +264 -0
  183. package/dist/chunks/step.Db0UJ8mx.js.map +1 -0
  184. package/dist/chunks/{structured-list-item.CujUEOTK.js → structured-list-item.C_6ju-IY.js} +4 -4
  185. package/dist/chunks/{structured-list-item.CujUEOTK.js.map → structured-list-item.C_6ju-IY.js.map} +1 -1
  186. package/dist/chunks/{summary-grid-item-custom.DF9waESp.js → summary-grid-item-custom.FxBnzHzb.js} +4 -4
  187. package/dist/chunks/{summary-grid-item-custom.DF9waESp.js.map → summary-grid-item-custom.FxBnzHzb.js.map} +1 -1
  188. package/dist/chunks/{tag.wfnhGWVG.js → tag.xvqrfTwk.js} +2 -2
  189. package/dist/chunks/{tag.wfnhGWVG.js.map → tag.xvqrfTwk.js.map} +1 -1
  190. package/dist/chunks/{teleport.L8qFCYpr.js → teleport.CI0k6eaC.js} +9 -9
  191. package/dist/chunks/teleport.CI0k6eaC.js.map +1 -0
  192. package/dist/chunks/{textarea.DlPNxnUQ.js → textarea.vAp6HFi9.js} +2 -2
  193. package/dist/chunks/{textarea.DlPNxnUQ.js.map → textarea.vAp6HFi9.js.map} +1 -1
  194. package/dist/chunks/{timeline-item.B8VvkDfR.js → timeline-item.ND_EMuwP.js} +5 -5
  195. package/dist/chunks/{timeline-item.B8VvkDfR.js.map → timeline-item.ND_EMuwP.js.map} +1 -1
  196. package/dist/chunks/tooltip.BvJoy09y.js +203 -0
  197. package/dist/chunks/tooltip.BvJoy09y.js.map +1 -0
  198. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js → tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js} +4 -4
  199. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js.map → tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js.map} +1 -1
  200. package/dist/chunks/{use-cached-selected-values.DaRzXFIt.js → use-cached-selected-values.BOZK76mN.js} +8 -5
  201. package/dist/chunks/{use-cached-selected-values.DaRzXFIt.js.map → use-cached-selected-values.BOZK76mN.js.map} +1 -1
  202. package/dist/chunks/{warning-filled.Dm_HhqzW.js → warning-filled.OUOUbA6k.js} +2 -2
  203. package/dist/chunks/{warning-filled.Dm_HhqzW.js.map → warning-filled.OUOUbA6k.js.map} +1 -1
  204. package/dist/code-snippet.js +1 -1
  205. package/dist/dashboard-template.js +1 -1
  206. package/dist/dashed-underline.js +1 -1
  207. package/dist/data-grid-template.js +1 -1
  208. package/dist/data-grid.js +1 -1
  209. package/dist/date-picker.js +1 -1
  210. package/dist/date-range-picker.js +1 -1
  211. package/dist/dropdown.js +3 -3
  212. package/dist/file-uploader.js +5 -0
  213. package/dist/file-uploader.js.map +1 -0
  214. package/dist/filter-bar.js +1 -1
  215. package/dist/form-layout.js +1 -1
  216. package/dist/header.js +1 -1
  217. package/dist/index.js +228 -219
  218. package/dist/index.js.map +1 -1
  219. package/dist/info-icon.js +1 -1
  220. package/dist/input-field-password.js +10 -0
  221. package/dist/input-field-password.js.map +1 -0
  222. package/dist/input-field.js +1 -1
  223. package/dist/internal.js +7 -7
  224. package/dist/layout.js +1 -1
  225. package/dist/menu.js +1 -1
  226. package/dist/modal-fullscreen.js +1 -1
  227. package/dist/modal.js +2 -2
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +1 -1
  230. package/dist/promo-banner.js +1 -1
  231. package/dist/radio-group.js +1 -1
  232. package/dist/search-bar.js +2 -2
  233. package/dist/secondary-nav.js +1 -1
  234. package/dist/segmented-control.js +1 -1
  235. package/dist/selection-card.js +1 -1
  236. package/dist/sidepanel.js +1 -1
  237. package/dist/stepper.js +1 -1
  238. package/dist/structured-list.js +1 -1
  239. package/dist/styles/bento-dark.css +98 -34
  240. package/dist/styles/bento-light.css +98 -34
  241. package/dist/styles/bento.css +98 -34
  242. package/dist/styles/legacy.css +106 -42
  243. package/dist/styles/styleguide.css +98 -34
  244. package/dist/summary-grid.js +1 -1
  245. package/dist/tag.js +1 -1
  246. package/dist/textarea.js +1 -1
  247. package/dist/timeline.js +1 -1
  248. package/dist/tutorial.js +1 -1
  249. package/dist/web-types.json +1 -1
  250. package/package.json +9 -8
  251. package/dist/chunks/data-grid.BC2tOBxm.js +0 -3229
  252. package/dist/chunks/data-grid.BC2tOBxm.js.map +0 -1
  253. package/dist/chunks/date-range-picker.3iWt1Cd6.js.map +0 -1
  254. package/dist/chunks/filter-bar.pKcJryD3.js +0 -2898
  255. package/dist/chunks/filter-bar.pKcJryD3.js.map +0 -1
  256. package/dist/chunks/index.ChdIlujs.js +0 -248
  257. package/dist/chunks/index.ChdIlujs.js.map +0 -1
  258. package/dist/chunks/input-field.Bk2p3kIb.js.map +0 -1
  259. package/dist/chunks/step.CwuThZ0G.js +0 -285
  260. package/dist/chunks/step.CwuThZ0G.js.map +0 -1
  261. package/dist/chunks/teleport.L8qFCYpr.js.map +0 -1
  262. package/dist/chunks/tooltip.BEl_LdFo.js +0 -188
  263. package/dist/chunks/tooltip.BEl_LdFo.js.map +0 -1
@@ -0,0 +1,1074 @@
1
+ import { openBlock as r, createElementBlock as c, mergeProps as S, toDisplayString as f, createCommentVNode as C, createElementVNode as d, defineComponent as j, unref as n, createBlock as v, Transition as De, withCtx as g, renderSlot as te, TransitionGroup as Te, ref as k, onUnmounted as Fe, onMounted as ke, computed as h, watch as $e, normalizeClass as F, createVNode as D, resolveDynamicComponent as Oe, withDirectives as ye, createTextVNode as _, reactive as se, toRef as xe, withModifiers as U, withKeys as ie, Fragment as ne, normalizeProps as le, guardReactiveProps as Ze, renderList as ze, vShow as Be } from "vue";
2
+ import { _ as L } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import { W as _e } from "./warning-filled.OUOUbA6k.js";
4
+ import { B as Ae } from "./alert.B9V6kUmo.js";
5
+ import { B as G } from "./button.pwNCxwPu.js";
6
+ import { B as V } from "./typography.DNzU41ah.js";
7
+ import { u as Y } from "./i18n.CPGoe9tN.js";
8
+ import { g as Q } from "./generate-uid.D-HFI38h.js";
9
+ import { i as be } from "./index.CWuzEfiV.js";
10
+ import { C as Ne } from "./checkmark-circle-fill.ClIf1E3H.js";
11
+ import { C as Ue } from "./cross.OvPfvoqX.js";
12
+ import { R as Pe } from "./refresh.DvQeGwUF.js";
13
+ import "./events.FNmSWp_P.js";
14
+ import { B as Ge } from "./tooltip.BvJoy09y.js";
15
+ import { B as We } from "./link.D7wA0jkY.js";
16
+ import { B as je } from "./loading-indicator.N_WV9Gwz.js";
17
+ import { F as Ye, E as qe } from "./error-message.BYXS0kUN.js";
18
+ import "../assets/file-uploader.css";
19
+ let re = 0;
20
+ const Xe = {
21
+ beforeCreate() {
22
+ this.uuid = re.toString(), re += 1;
23
+ }
24
+ }, Je = { key: 0 };
25
+ function Ke(e, t, s, l, o, p) {
26
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
27
+ class: "ui-assets-icons-16",
28
+ xmlns: "http://www.w3.org/2000/svg",
29
+ width: "16",
30
+ height: "16",
31
+ fill: "none"
32
+ }), [
33
+ e.$attrs["svg-title"] ? (r(), c("title", Je, f(e.$attrs["svg-title"]), 1)) : C("", !0),
34
+ t[0] || (t[0] = d("path", {
35
+ fill: "#00112C",
36
+ d: "M8.00011 0.939453L12.0608 5.00011L11.0001 6.06077L8.75 3.81066V11.75H7.25V3.81089L5.00011 6.06077L3.93945 5.00011L8.00011 0.939453Z"
37
+ }, null, -1)),
38
+ t[1] || (t[1] = d("path", {
39
+ fill: "#00112C",
40
+ d: "M2.75 12.5V10.25H1.25V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V10.25H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5Z"
41
+ }, null, -1))
42
+ ], 16);
43
+ }
44
+ const Qe = /* @__PURE__ */ L(Xe, [["render", Ke]]), e1 = /* @__PURE__ */ j({
45
+ __name: "file-uploader-file-card-animation",
46
+ props: {
47
+ name: {},
48
+ showFileIcon: { type: Boolean }
49
+ },
50
+ setup(e) {
51
+ return (t, s) => n(be) ? (r(), v(De, {
52
+ key: 0,
53
+ name: t.name,
54
+ mode: "out-in",
55
+ css: t.showFileIcon
56
+ }, {
57
+ default: g(() => [
58
+ te(t.$slots, "default")
59
+ ]),
60
+ _: 3
61
+ }, 8, ["name", "css"])) : (r(), v(Te, {
62
+ key: 1,
63
+ name: t.name,
64
+ css: t.showFileIcon
65
+ }, {
66
+ default: g(() => [
67
+ te(t.$slots, "default")
68
+ ]),
69
+ _: 3
70
+ }, 8, ["name", "css"]));
71
+ }
72
+ });
73
+ let oe = 0;
74
+ const t1 = {
75
+ beforeCreate() {
76
+ this.uuid = oe.toString(), oe += 1;
77
+ }
78
+ }, s1 = { key: 0 };
79
+ function i1(e, t, s, l, o, p) {
80
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
81
+ class: "ui-assets-icons-16",
82
+ xmlns: "http://www.w3.org/2000/svg",
83
+ width: "16",
84
+ height: "16",
85
+ fill: "none"
86
+ }), [
87
+ e.$attrs["svg-title"] ? (r(), c("title", s1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
88
+ t[0] || (t[0] = d("path", {
89
+ fill: "#00112C",
90
+ d: "M7.25 6.25H5.75V12.75H7.25V6.25Z"
91
+ }, null, -1)),
92
+ t[1] || (t[1] = d("path", {
93
+ fill: "#00112C",
94
+ d: "M8.75 6.25H10.25V12.75H8.75V6.25Z"
95
+ }, null, -1)),
96
+ t[2] || (t[2] = d("path", {
97
+ fill: "#00112C",
98
+ d: "M14.75 3.24999H12.54L12.05 1.74999C11.9 1.29999 11.61 0.92999 11.22 0.64999C10.83 0.37999 10.34 0.24999 9.92 0.23999H6.09C5.64 0.23999 5.17 0.37999 4.78 0.64999C4.39 0.91999 4.11 1.29999 3.95 1.75999L3.46 3.23999H1.25V4.73999H2.32L3.14 13.7C3.19 14.26 3.45 14.78 3.86 15.16C4.27 15.54 4.81 15.75 5.37 15.75H10.64C11.2 15.75 11.74 15.54 12.15 15.16C12.57 14.78 12.82 14.26 12.87 13.7L13.69 4.73999H14.76V3.23999L14.75 3.24999ZM5.37 2.24999C5.42 2.09999 5.52 1.97999 5.64 1.88999C5.77 1.79999 5.92 1.74999 6.08 1.75999H9.93C10.08 1.75999 10.23 1.80999 10.35 1.88999C10.48 1.97999 10.57 2.09999 10.62 2.23999L10.95 3.25999H5.02L5.35 2.25999L5.37 2.24999ZM11.37 13.58C11.35 13.77 11.27 13.94 11.13 14.06C10.99 14.19 10.81 14.25 10.63 14.25H5.36C5.17 14.25 5 14.18 4.86 14.06C4.72 13.93 4.64 13.76 4.62 13.57L3.81 4.74999H12.17L11.36 13.57L11.37 13.58Z"
99
+ }, null, -1))
100
+ ], 16);
101
+ }
102
+ const n1 = /* @__PURE__ */ L(t1, [["render", i1]]);
103
+ function l1(e, t) {
104
+ const s = k(!1);
105
+ let l;
106
+ function o() {
107
+ l && l.disconnect();
108
+ }
109
+ return Fe(() => {
110
+ o();
111
+ }), ke(() => {
112
+ o(), l = new IntersectionObserver(
113
+ (p) => {
114
+ s.value = !p[0].isIntersecting;
115
+ },
116
+ {
117
+ root: t.value,
118
+ threshold: 1
119
+ }
120
+ ), l.observe(e.value.$el);
121
+ }), s;
122
+ }
123
+ const ae = ["byte", "kilobyte", "megabyte", "gigabyte", "terabyte", "petabyte"];
124
+ function Ee(e, t) {
125
+ let s = 0, l = t;
126
+ for (; l >= 1e3 && s < ae.length - 1; )
127
+ l /= 1e3, s++;
128
+ return new Intl.NumberFormat(e, {
129
+ style: "unit",
130
+ unit: ae[s],
131
+ unitDisplay: "short",
132
+ // Displays as "kB" instead of "kilobytes"
133
+ maximumFractionDigits: 2
134
+ // Limits to 2 decimal places
135
+ }).format(l);
136
+ }
137
+ var $ = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e.SUCCESS = "success", e))($ || {}), W = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(W || {}), m = /* @__PURE__ */ ((e) => (e.TABLE = "table", e.IMAGE = "image", e.VIDEO = "video", e.AUDIO = "audio", e.TEXT = "text", e.PDF = "pdf", e.SLIDES = "slides", e.COMPRESSED = "compressed", e.GENERIC = "generic", e))(m || {});
138
+ const r1 = [
139
+ "application/msword",
140
+ // .doc
141
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
142
+ // .docx
143
+ "application/rtf"
144
+ // .rtf
145
+ ], o1 = [
146
+ "application/vnd.ms-excel",
147
+ // .xls
148
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
149
+ // .xlsx
150
+ "application/vnd.oasis.opendocument.spreadsheet",
151
+ //.ods
152
+ "application/vnd.apple.numbers",
153
+ // .numbers
154
+ "application/x-iwork-numbers-sffnumbers",
155
+ // .numbers
156
+ "text/csv"
157
+ // .csv
158
+ ], a1 = [
159
+ "application/vnd.ms-powerpoint",
160
+ // .ppt
161
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation",
162
+ // .pptx
163
+ "application/vnd.oasis.opendocument.presentation"
164
+ // .odp
165
+ ], u1 = [
166
+ "application/zip",
167
+ // .zip
168
+ "application/vnd.rar",
169
+ // .rar
170
+ "application/x-7z-compressed",
171
+ // .7z
172
+ "application/gzip",
173
+ // .gz, .tar.gz, .tgz
174
+ "application/x-tar",
175
+ // .tar
176
+ "application/x-bzip2",
177
+ // .bz2
178
+ "application/x-xz",
179
+ // .xz
180
+ "application/x-lzma",
181
+ // .lzma
182
+ "application/x-compress",
183
+ // .Z
184
+ "application/vnd.ms-cab-compressed"
185
+ // .cab
186
+ ];
187
+ function d1(e) {
188
+ return o1.includes(e.type) ? m.TABLE : e.type.startsWith("text/") || r1.includes(e.type) ? m.TEXT : e.type.startsWith("image/") ? m.IMAGE : e.type.startsWith("video/") ? m.VIDEO : e.type.startsWith("audio/") ? m.AUDIO : e.type === "application/pdf" ? m.PDF : a1.includes(e.type) ? m.SLIDES : u1.includes(e.type) ? m.COMPRESSED : m.GENERIC;
189
+ }
190
+ function p1(e, t) {
191
+ if (!t)
192
+ return !0;
193
+ const s = t.split(",").map((l) => l.trim());
194
+ for (const l of s)
195
+ if (l.startsWith(".")) {
196
+ if (e.name.endsWith(l))
197
+ return !0;
198
+ } else if (l.endsWith("/*")) {
199
+ const o = l.split("/")[0];
200
+ if (e.type.startsWith(o))
201
+ return !0;
202
+ } else if (e.type === l)
203
+ return !0;
204
+ return !1;
205
+ }
206
+ function f1(e, t, s) {
207
+ const l = new FileReader(), o = e;
208
+ if (!p1(o.data, t)) {
209
+ o.state = $.ERROR_TYPE;
210
+ return;
211
+ }
212
+ l.onload = (p) => {
213
+ if (s && o.type === m.IMAGE) {
214
+ const E = new Blob([p.target.result], { type: o.data.type }), I = URL.createObjectURL(E), a = new Image();
215
+ a.onload = function() {
216
+ (a.width > s.width || a.height > s.height) && (o.state = $.ERROR_DIMENSIONS), URL.revokeObjectURL(I);
217
+ }, a.onerror = function() {
218
+ URL.revokeObjectURL(I);
219
+ }, a.src = I;
220
+ }
221
+ }, l.onprogress = (p) => {
222
+ p.lengthComputable && (o.progress = p.loaded / p.total * 100);
223
+ }, l.onloadend = () => {
224
+ o.state !== $.ERROR_SIZE && (o.state = $.SUCCESS), o.progress = null;
225
+ }, l.onerror = () => {
226
+ o.state = $.ERROR_LOAD, o.progress = null;
227
+ }, l.readAsArrayBuffer(o.data);
228
+ }
229
+ let ue = 0;
230
+ const c1 = {
231
+ beforeCreate() {
232
+ this.uuid = ue.toString(), ue += 1;
233
+ }
234
+ }, m1 = { key: 0 }, C1 = ["clip-path"], g1 = ["id"];
235
+ function v1(e, t, s, l, o, p) {
236
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
237
+ class: "ui-assets-icons-16",
238
+ xmlns: "http://www.w3.org/2000/svg",
239
+ width: "16",
240
+ height: "16",
241
+ fill: "none"
242
+ }), [
243
+ e.$attrs["svg-title"] ? (r(), c("title", m1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
244
+ d("g", {
245
+ "clip-path": "url(#uia-icons-16-attachment__a" + e.uuid + ")"
246
+ }, t[0] || (t[0] = [
247
+ d("path", {
248
+ fill: "#00112C",
249
+ d: "M12.866 4.09026C11.5689 2.79315 9.4638 2.79315 8.1667 4.09026L2.7267 9.53026C1.95959 10.2974 1.95959 11.5425 2.7267 12.3096C3.49381 13.0767 4.73893 13.0767 5.50604 12.3096L10.946 6.8696C11.1831 6.63249 11.1831 6.24737 10.946 6.01026C10.7089 5.77316 10.3238 5.77316 10.0867 6.01026L4.75637 11.3406L3.69571 10.2799L9.02604 4.9496C9.84893 4.12671 11.1838 4.12671 12.0067 4.9496C12.8296 5.7725 12.8296 7.10737 12.0067 7.93026L6.5667 13.3703C5.2138 14.7232 3.01893 14.7232 1.66604 13.3703C0.313144 12.0174 0.313144 9.82249 1.66604 8.4696L7.10604 3.0296C8.98893 1.14671 12.0438 1.14671 13.9267 3.0296C15.8096 4.91249 15.8096 7.96737 13.9267 9.85026L11.1564 12.6206L10.0957 11.5599L12.866 8.7896C14.1631 7.49249 14.1631 5.38737 12.866 4.09026Z"
250
+ }, null, -1)
251
+ ]), 8, C1),
252
+ d("defs", null, [
253
+ d("clipPath", {
254
+ id: "uia-icons-16-attachment__a" + e.uuid
255
+ }, t[1] || (t[1] = [
256
+ d("rect", {
257
+ width: "16",
258
+ height: "16",
259
+ fill: "#fff"
260
+ }, null, -1)
261
+ ]), 8, g1)
262
+ ])
263
+ ], 16);
264
+ }
265
+ const h1 = /* @__PURE__ */ L(c1, [["render", v1]]);
266
+ let de = 0;
267
+ const $1 = {
268
+ beforeCreate() {
269
+ this.uuid = de.toString(), de += 1;
270
+ }
271
+ }, y1 = { key: 0 };
272
+ function _1(e, t, s, l, o, p) {
273
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
274
+ class: "ui-assets-icons-16",
275
+ xmlns: "http://www.w3.org/2000/svg",
276
+ width: "16",
277
+ height: "16",
278
+ fill: "none"
279
+ }), [
280
+ e.$attrs["svg-title"] ? (r(), c("title", y1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
281
+ t[0] || (t[0] = d("path", {
282
+ fill: "#00112C",
283
+ d: "M13.75 9.58159C14.3412 9.30073 14.75 8.6981 14.75 8V2C14.75 1.0335 13.9665 0.25 13 0.25H3C2.0335 0.25 1.25 1.0335 1.25 2V8C1.25 8.6981 1.65876 9.30073 2.25 9.58159V11C2.25 11.4641 2.43438 11.9092 2.76256 12.2374C2.90555 12.3804 3.07072 12.4961 3.25 12.5811V14C3.25 14.4641 3.43438 14.9092 3.76256 15.2374C4.09075 15.5656 4.53587 15.75 5 15.75H11C11.4641 15.75 11.9092 15.5656 12.2374 15.2374C12.5656 14.9092 12.75 14.4641 12.75 14V12.5811C12.9293 12.4961 13.0945 12.3804 13.2374 12.2374C13.5656 11.9092 13.75 11.4641 13.75 11V9.58159ZM3 1.75H13C13.1381 1.75 13.25 1.86193 13.25 2V8C13.25 8.13807 13.1381 8.25 13 8.25H3C2.86193 8.25 2.75 8.13807 2.75 8V2C2.75 1.86193 2.86193 1.75 3 1.75ZM12.25 9.75V11C12.25 11.0663 12.2237 11.1299 12.1768 11.1768C12.1299 11.2237 12.0663 11.25 12 11.25H4C3.9337 11.25 3.87011 11.2237 3.82322 11.1768C3.77634 11.1299 3.75 11.0663 3.75 11V9.75H12.25ZM11.25 12.75V14C11.25 14.0663 11.2237 14.1299 11.1768 14.1768C11.1299 14.2237 11.0663 14.25 11 14.25H5C4.9337 14.25 4.87011 14.2237 4.82322 14.1768C4.77634 14.1299 4.75 14.0663 4.75 14V12.75H11.25Z"
284
+ }, null, -1))
285
+ ], 16);
286
+ }
287
+ const b1 = /* @__PURE__ */ L($1, [["render", _1]]);
288
+ let pe = 0;
289
+ const E1 = {
290
+ beforeCreate() {
291
+ this.uuid = pe.toString(), pe += 1;
292
+ }
293
+ }, R1 = { key: 0 };
294
+ function w1(e, t, s, l, o, p) {
295
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
296
+ class: "ui-assets-icons-16",
297
+ xmlns: "http://www.w3.org/2000/svg",
298
+ width: "16",
299
+ height: "16",
300
+ fill: "none"
301
+ }), [
302
+ e.$attrs["svg-title"] ? (r(), c("title", R1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
303
+ t[0] || (t[0] = d("path", {
304
+ fill: "#00112C",
305
+ d: "M13.75 13.5C13.75 14.7442 12.7442 15.75 11.5 15.75H4.5C3.25579 15.75 2.25 14.7442 2.25 13.5V2.5C2.25 1.25579 3.25579 0.25 4.5 0.25H9.31055L13.75 4.68728V13.5ZM3.75 2.5V13.5C3.75 13.9158 4.08421 14.25 4.5 14.25H11.5C11.9158 14.25 12.25 13.9158 12.25 13.5V6.75H9.5C8.25736 6.75 7.25 5.74264 7.25 4.5V1.75H4.5C4.08421 1.75 3.75 2.08421 3.75 2.5ZM8.75 1.81052V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H12.1912L8.75 1.81052Z"
306
+ }, null, -1))
307
+ ], 16);
308
+ }
309
+ const L1 = /* @__PURE__ */ L(E1, [["render", w1]]);
310
+ let fe = 0;
311
+ const I1 = {
312
+ beforeCreate() {
313
+ this.uuid = fe.toString(), fe += 1;
314
+ }
315
+ }, V1 = { key: 0 };
316
+ function H1(e, t, s, l, o, p) {
317
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
318
+ class: "ui-assets-icons-16",
319
+ xmlns: "http://www.w3.org/2000/svg",
320
+ width: "16",
321
+ height: "16",
322
+ fill: "none"
323
+ }), [
324
+ e.$attrs["svg-title"] ? (r(), c("title", V1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
325
+ t[0] || (t[0] = d("path", {
326
+ fill: "#00112C",
327
+ d: "M10.7461 8.25V9.75H5.24609V8.25H10.7461Z"
328
+ }, null, -1)),
329
+ t[1] || (t[1] = d("path", {
330
+ fill: "#00112C",
331
+ d: "M5.24609 11.25H10.7461V12.75H5.24609V11.25Z"
332
+ }, null, -1)),
333
+ t[2] || (t[2] = d("path", {
334
+ fill: "#00112C",
335
+ d: "M13.7461 13.5C13.7461 14.7442 12.7403 15.75 11.4961 15.75H4.49609C3.25188 15.75 2.24609 14.7442 2.24609 13.5V2.5C2.24609 1.25579 3.25188 0.25 4.49609 0.25H9.30665L13.7461 4.68728V13.5ZM3.74609 2.5V13.5C3.74609 13.9158 4.08031 14.25 4.49609 14.25H11.4961C11.9119 14.25 12.2461 13.9158 12.2461 13.5V6.75H9.49609C8.25345 6.75 7.24609 5.74264 7.24609 4.5V1.75H4.49609C4.08031 1.75 3.74609 2.08421 3.74609 2.5ZM8.74609 1.81052V4.5C8.74609 4.91421 9.08188 5.25 9.49609 5.25H12.1873L8.74609 1.81052Z"
336
+ }, null, -1))
337
+ ], 16);
338
+ }
339
+ const S1 = /* @__PURE__ */ L(I1, [["render", H1]]);
340
+ let ce = 0;
341
+ const M1 = {
342
+ beforeCreate() {
343
+ this.uuid = ce.toString(), ce += 1;
344
+ }
345
+ }, D1 = { key: 0 };
346
+ function T1(e, t, s, l, o, p) {
347
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
348
+ class: "ui-assets-icons-16",
349
+ xmlns: "http://www.w3.org/2000/svg",
350
+ width: "16",
351
+ height: "16",
352
+ fill: "none"
353
+ }), [
354
+ e.$attrs["svg-title"] ? (r(), c("title", D1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
355
+ t[0] || (t[0] = d("path", {
356
+ fill: "#00112C",
357
+ d: "M1.24609 4.5C1.24609 3.25579 2.25188 2.25 3.49609 2.25H6.37609C6.97727 2.25 7.54738 2.49062 7.96642 2.90967L10.0864 5.02967C10.2274 5.17062 10.4173 5.25 10.6161 5.25H12.4961C13.7403 5.25 14.7461 6.25579 14.7461 7.5V12.5C14.7461 13.7442 13.7403 14.75 12.4961 14.75H3.49609C2.25188 14.75 1.24609 13.7442 1.24609 12.5V4.5ZM3.49609 3.75C3.08031 3.75 2.74609 4.08421 2.74609 4.5V12.5C2.74609 12.9158 3.08031 13.25 3.49609 13.25H12.4961C12.9119 13.25 13.2461 12.9158 13.2461 12.5V7.5C13.2461 7.08421 12.9119 6.75 12.4961 6.75H10.6161C10.0149 6.75 9.44481 6.50938 9.02576 6.09033L6.90576 3.97033C6.76481 3.82938 6.57492 3.75 6.37609 3.75H3.49609Z"
358
+ }, null, -1))
359
+ ], 16);
360
+ }
361
+ const F1 = /* @__PURE__ */ L(M1, [["render", T1]]);
362
+ let me = 0;
363
+ const k1 = {
364
+ beforeCreate() {
365
+ this.uuid = me.toString(), me += 1;
366
+ }
367
+ }, O1 = { key: 0 };
368
+ function x1(e, t, s, l, o, p) {
369
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
370
+ class: "ui-assets-icons-16",
371
+ xmlns: "http://www.w3.org/2000/svg",
372
+ width: "16",
373
+ height: "16",
374
+ fill: "none"
375
+ }), [
376
+ e.$attrs["svg-title"] ? (r(), c("title", O1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
377
+ t[0] || (t[0] = d("path", {
378
+ fill: "#00112C",
379
+ d: "M9.99609 3.24805C8.47731 3.24805 7.24609 4.47926 7.24609 5.99805C7.24609 7.51683 8.47731 8.74805 9.99609 8.74805C11.5149 8.74805 12.7461 7.51683 12.7461 5.99805C12.7461 4.47926 11.5149 3.24805 9.99609 3.24805ZM8.74609 5.99805C8.74609 5.30769 9.30574 4.74805 9.99609 4.74805C10.6865 4.74805 11.2461 5.30769 11.2461 5.99805C11.2461 6.6884 10.6865 7.24805 9.99609 7.24805C9.30574 7.24805 8.74609 6.6884 8.74609 5.99805Z"
380
+ }, null, -1)),
381
+ t[1] || (t[1] = d("path", {
382
+ fill: "#00112C",
383
+ d: "M1.24609 3.49805C1.24609 2.25541 2.25345 1.24805 3.49609 1.24805H12.4961C13.7387 1.24805 14.7461 2.25541 14.7461 3.49805V12.498C14.7461 13.7407 13.7387 14.748 12.4961 14.748H3.49609C2.25345 14.748 1.24609 13.7407 1.24609 12.498V3.49805ZM3.49609 2.74805C3.08188 2.74805 2.74609 3.08383 2.74609 3.49805V6.68756L3.99615 5.4375L11.8067 13.248H12.4961C12.9103 13.248 13.2461 12.9123 13.2461 12.498V3.49805C13.2461 3.08383 12.9103 2.74805 12.4961 2.74805H3.49609ZM2.74609 12.498C2.74609 12.9123 3.08188 13.248 3.49609 13.248H9.68538L3.99615 7.55882L2.74609 8.80888V12.498Z"
384
+ }, null, -1))
385
+ ], 16);
386
+ }
387
+ const Z1 = /* @__PURE__ */ L(k1, [["render", x1]]);
388
+ let Ce = 0;
389
+ const z1 = {
390
+ beforeCreate() {
391
+ this.uuid = Ce.toString(), Ce += 1;
392
+ }
393
+ }, B1 = { key: 0 }, A1 = ["clip-path"], N1 = ["id"];
394
+ function U1(e, t, s, l, o, p) {
395
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
396
+ class: "ui-assets-icons-16",
397
+ xmlns: "http://www.w3.org/2000/svg",
398
+ width: "16",
399
+ height: "16",
400
+ fill: "none"
401
+ }), [
402
+ e.$attrs["svg-title"] ? (r(), c("title", B1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
403
+ d("g", {
404
+ fill: "#00112C",
405
+ "clip-path": "url(#uia-icons-16-play_circle__a" + e.uuid + ")"
406
+ }, t[0] || (t[0] = [
407
+ d("path", { d: "M10.9722 8.00002L6.62012 5.09863V10.9014L10.9722 8.00002Z" }, null, -1),
408
+ d("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)
409
+ ]), 8, A1),
410
+ d("defs", null, [
411
+ d("clipPath", {
412
+ id: "uia-icons-16-play_circle__a" + e.uuid
413
+ }, t[1] || (t[1] = [
414
+ d("rect", {
415
+ width: "16",
416
+ height: "16",
417
+ fill: "#fff"
418
+ }, null, -1)
419
+ ]), 8, N1)
420
+ ])
421
+ ], 16);
422
+ }
423
+ const P1 = /* @__PURE__ */ L(z1, [["render", U1]]);
424
+ let ge = 0;
425
+ const G1 = {
426
+ beforeCreate() {
427
+ this.uuid = ge.toString(), ge += 1;
428
+ }
429
+ }, W1 = { key: 0 };
430
+ function j1(e, t, s, l, o, p) {
431
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
432
+ class: "ui-assets-icons-16",
433
+ xmlns: "http://www.w3.org/2000/svg",
434
+ width: "16",
435
+ height: "16",
436
+ fill: "none"
437
+ }), [
438
+ e.$attrs["svg-title"] ? (r(), c("title", W1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
439
+ t[0] || (t[0] = d("path", {
440
+ fill: "#00112C",
441
+ 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"
442
+ }, null, -1)),
443
+ t[1] || (t[1] = d("path", {
444
+ fill: "#00112C",
445
+ d: "M13.0111 4.99174C12.2099 4.19982 11.1294 3.75 10 3.75V2.25C11.53 2.25 12.9888 2.85964 14.0675 3.92684L14.0703 3.92966C15.1527 5.01199 15.75 6.47347 15.75 8C15.75 9.52995 15.1404 10.9888 14.0732 12.0675L14.0703 12.0703C12.988 13.1527 11.5265 13.75 10 13.75V12.25C11.1328 12.25 12.2107 11.8079 13.0082 11.0111C13.8002 10.21 14.25 9.1294 14.25 8C14.25 6.8672 13.8079 5.78927 13.0111 4.99174Z"
446
+ }, null, -1)),
447
+ t[2] || (t[2] = d("path", {
448
+ fill: "#00112C",
449
+ d: "M10 6.75V5.25C10.7257 5.25 11.4295 5.53694 11.9438 6.06319C12.4593 6.58041 12.75 7.26849 12.75 8C12.75 8.72573 12.4631 9.42951 11.9368 9.94383C11.4196 10.4593 10.7315 10.75 10 10.75V9.25C10.3268 9.25 10.6373 9.12206 10.8797 8.87967L10.8868 8.87265C11.1182 8.64727 11.25 8.33261 11.25 8C11.25 7.67317 11.1221 7.36272 10.8797 7.12033L10.8726 7.11321C10.6473 6.88175 10.3326 6.75 10 6.75Z"
450
+ }, null, -1))
451
+ ], 16);
452
+ }
453
+ const Y1 = /* @__PURE__ */ L(G1, [["render", j1]]);
454
+ let ve = 0;
455
+ const q1 = {
456
+ beforeCreate() {
457
+ this.uuid = ve.toString(), ve += 1;
458
+ }
459
+ }, X1 = { key: 0 };
460
+ function J1(e, t, s, l, o, p) {
461
+ return r(), c("svg", S({ role: "img" }, e.$attrs, {
462
+ class: "ui-assets-icons-16",
463
+ xmlns: "http://www.w3.org/2000/svg",
464
+ width: "16",
465
+ height: "16",
466
+ fill: "none"
467
+ }), [
468
+ e.$attrs["svg-title"] ? (r(), c("title", X1, f(e.$attrs["svg-title"]), 1)) : C("", !0),
469
+ t[0] || (t[0] = d("path", {
470
+ fill: "#00112C",
471
+ d: "M3.5 1.25L3.49505 1.25002C2.90084 1.25394 2.33208 1.49173 1.91191 1.91191C1.49173 2.33208 1.25392 2.90084 1.25 3.49505V12.5C1.25 13.0967 1.48705 13.669 1.90901 14.091C2.33097 14.5129 2.90326 14.75 3.5 14.75H12.5C13.0967 14.75 13.669 14.5129 14.091 14.091C14.5129 13.669 14.75 13.0967 14.75 12.5V3.5C14.75 2.90326 14.5129 2.33097 14.091 1.90901C13.669 1.48705 13.0967 1.25 12.5 1.25H3.5ZM5.25 2.75V5.25H2.75V3.5029C2.75185 3.30382 2.83175 3.11338 2.97257 2.97257C3.11338 2.83175 3.30382 2.75185 3.5029 2.75H5.25ZM5.25 6.75V9.25H2.75V6.75H5.25ZM6.75 9.25V6.75H13.25V9.25H6.75ZM5.25 10.75V13.25H3.5C3.30109 13.25 3.11032 13.171 2.96967 13.0303C2.82902 12.8897 2.75 12.6989 2.75 12.5V10.75H5.25ZM6.75 13.25V10.75H13.25V12.5C13.25 12.6989 13.171 12.8897 13.0303 13.0303C12.8897 13.171 12.6989 13.25 12.5 13.25H6.75ZM6.75 5.25V2.75H12.5C12.6989 2.75 12.8897 2.82902 13.0303 2.96967C13.171 3.11032 13.25 3.30109 13.25 3.5V5.25H6.75Z"
472
+ }, null, -1))
473
+ ], 16);
474
+ }
475
+ const K1 = /* @__PURE__ */ L(q1, [["render", J1]]), Q1 = {
476
+ [m.AUDIO]: Y1,
477
+ [m.COMPRESSED]: F1,
478
+ [m.GENERIC]: h1,
479
+ [m.IMAGE]: Z1,
480
+ [m.PDF]: L1,
481
+ [m.SLIDES]: b1,
482
+ [m.TABLE]: K1,
483
+ [m.TEXT]: S1,
484
+ [m.VIDEO]: P1
485
+ };
486
+ function et(e) {
487
+ return Q1[e.type];
488
+ }
489
+ function tt(e) {
490
+ switch (e.type) {
491
+ case m.COMPRESSED:
492
+ case m.GENERIC:
493
+ return "grey";
494
+ case m.PDF:
495
+ case m.SLIDES:
496
+ return "orange";
497
+ case m.TEXT:
498
+ return "blue";
499
+ default:
500
+ return "green";
501
+ }
502
+ }
503
+ const Re = {
504
+ "en-US": {
505
+ cancel: "Cancel",
506
+ fileExceedsSizeLimit: "File exceeds size limit",
507
+ fileTypeMustBe: "File type must be {list}",
508
+ imageDimensionsExceedLimits: "Image dimensions exceed limits",
509
+ remove: "Remove",
510
+ retry: "Retry"
511
+ },
512
+ "pt-BR": {
513
+ cancel: "Cancelar",
514
+ remove: "Remover",
515
+ retry: "Tentar novamente"
516
+ },
517
+ "ja-JP": {
518
+ cancel: "キャンセル",
519
+ remove: "削除",
520
+ retry: "再試行"
521
+ }
522
+ }, st = { class: "b-file-uploader-file-card__details" }, it = { class: "b-file-uploader-file-card__info" }, nt = { class: "b-file-uploader-file-card__actions" }, lt = {
523
+ name: "file-uploader-file-card",
524
+ i18n: { messages: Re }
525
+ }, rt = /* @__PURE__ */ j({
526
+ ...lt,
527
+ props: {
528
+ file: {},
529
+ supportedFileTypes: { default: null }
530
+ },
531
+ emits: ["cancel", "remove", "retry"],
532
+ setup(e, { emit: t }) {
533
+ const l = e, o = t, { t: p, locale: E } = Y({ messages: Re }), I = k(l.file.state === $.SUCCESS), a = h(() => URL.createObjectURL(l.file.data)), R = h(() => l.file.state.startsWith("error")), T = h(() => l.file.state === $.ERROR_LOAD), w = h(() => l.file.state === $.ERROR_SIZE), z = h(() => l.file.state === $.ERROR_DIMENSIONS), B = h(() => l.file.state === $.ERROR_TYPE), x = h(() => l.file.state === $.LOADING), Z = h(() => l.file.progress && `(${l.file.progress.toFixed(0)}%)`), q = h(() => Ee(E.value, l.file.data.size)), P = k(), A = k(), X = l1(P, A), J = h(() => ({
534
+ "b-file-uploader-file-card--error": R.value
535
+ })), K = h(() => ({
536
+ [`b-file-uploader-file-card__icon--${tt(l.file)}`]: I.value,
537
+ "b-file-uploader-file-card__icon--error": R.value
538
+ })), N = h(() => x.value ? je : R.value ? _e : I.value ? et(l.file) : Ne);
539
+ return $e(
540
+ () => l.file.state,
541
+ (H) => {
542
+ if (H === $.SUCCESS && !I.value) {
543
+ const M = setTimeout(() => {
544
+ I.value = !0, clearTimeout(M);
545
+ }, 1200);
546
+ }
547
+ }
548
+ ), (H, M) => (r(), c("div", {
549
+ class: F(["b-file-uploader-file-card", J.value])
550
+ }, [
551
+ d("div", st, [
552
+ d("div", it, [
553
+ D(n(e1), {
554
+ name: n(be) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
555
+ "show-file-icon": I.value
556
+ }, {
557
+ default: g(() => [
558
+ (r(), v(Oe(N.value), {
559
+ key: JSON.stringify(N.value),
560
+ small: "",
561
+ class: F(["b-file-uploader-file-card__icon", K.value]),
562
+ "data-testid": "file-uploader-item-icon"
563
+ }, null, 8, ["class"]))
564
+ ]),
565
+ _: 1
566
+ }, 8, ["name", "show-file-icon"]),
567
+ d("div", {
568
+ ref_key: "fileNameContainerRef",
569
+ ref: A,
570
+ class: "b-file-uploader-file-card__file-name"
571
+ }, [
572
+ D(n(We), {
573
+ download: H.file.data.name,
574
+ to: a.value,
575
+ "disable-typography": "",
576
+ "is-not-routing": "",
577
+ variant: "quiet"
578
+ }, {
579
+ default: g(() => [
580
+ ye((r(), v(n(V), {
581
+ ref_key: "fileNameRef",
582
+ ref: P,
583
+ stronger: "",
584
+ el: "span"
585
+ }, {
586
+ default: g(() => [
587
+ _(f(H.file.data.name), 1)
588
+ ]),
589
+ _: 1
590
+ })), [
591
+ [n(Ge), n(X) ? H.file.data.name : null]
592
+ ])
593
+ ]),
594
+ _: 1
595
+ }, 8, ["download", "to"])
596
+ ], 512),
597
+ H.file.progress ? (r(), v(n(V), {
598
+ key: 0,
599
+ el: "span"
600
+ }, {
601
+ default: g(() => [
602
+ _(f(Z.value), 1)
603
+ ]),
604
+ _: 1
605
+ })) : H.file.data.size ? (r(), v(n(V), {
606
+ key: 1,
607
+ class: "b-file-uploader-file-card__file-size",
608
+ el: "span"
609
+ }, {
610
+ default: g(() => [
611
+ _(f(q.value), 1)
612
+ ]),
613
+ _: 1
614
+ })) : C("", !0)
615
+ ]),
616
+ w.value ? (r(), v(n(V), {
617
+ key: 0,
618
+ class: "b-file-uploader-file-card__error-message"
619
+ }, {
620
+ default: g(() => [
621
+ _(f(n(p)("fileExceedsSizeLimit")), 1)
622
+ ]),
623
+ _: 1
624
+ })) : z.value ? (r(), v(n(V), {
625
+ key: 1,
626
+ class: "b-file-uploader-file-card__error-message"
627
+ }, {
628
+ default: g(() => [
629
+ _(f(n(p)("imageDimensionsExceedLimits")), 1)
630
+ ]),
631
+ _: 1
632
+ })) : B.value && H.supportedFileTypes ? (r(), v(n(V), {
633
+ key: 2,
634
+ class: "b-file-uploader-file-card__error-message"
635
+ }, {
636
+ default: g(() => [
637
+ _(f(n(p)("fileTypeMustBe", { list: H.supportedFileTypes })), 1)
638
+ ]),
639
+ _: 1
640
+ })) : C("", !0)
641
+ ]),
642
+ d("div", nt, [
643
+ T.value ? (r(), v(n(G), {
644
+ key: 0,
645
+ variant: "tertiary",
646
+ onClick: M[0] || (M[0] = (O) => o("retry"))
647
+ }, {
648
+ iconLeft: g(() => [
649
+ D(n(Pe), {
650
+ "svg-title": n(p)("retry")
651
+ }, null, 8, ["svg-title"])
652
+ ]),
653
+ default: g(() => [
654
+ _(" " + f(n(p)("retry")), 1)
655
+ ]),
656
+ _: 1
657
+ })) : C("", !0),
658
+ x.value || R.value ? (r(), v(n(G), {
659
+ key: 1,
660
+ variant: "tertiary",
661
+ onClick: M[1] || (M[1] = (O) => o("cancel"))
662
+ }, {
663
+ iconLeft: g(() => [
664
+ D(n(Ue), {
665
+ "svg-title": n(p)("cancel")
666
+ }, null, 8, ["svg-title"])
667
+ ]),
668
+ _: 1
669
+ })) : (r(), v(n(G), {
670
+ key: 2,
671
+ variant: "tertiary",
672
+ onClick: M[2] || (M[2] = (O) => o("remove"))
673
+ }, {
674
+ iconLeft: g(() => [
675
+ D(n(n1), {
676
+ "svg-title": n(p)("remove")
677
+ }, null, 8, ["svg-title"])
678
+ ]),
679
+ _: 1
680
+ }))
681
+ ])
682
+ ], 2));
683
+ }
684
+ }), ot = /* @__PURE__ */ L(rt, [["__scopeId", "data-v-d8942d74"]]), we = {
685
+ "en-US": {
686
+ maxFileSize: "Max file size: {size}",
687
+ maxImageDimensions: "Max image dimensions: {width} × {height}px",
688
+ maxImageHeight: "Max image height: {height}px",
689
+ maxImageWidth: "Max image width: {width}px",
690
+ maxUpload: "Max upload: {count} file | Max upload: {count} files",
691
+ supportedFileTypes: "Supported file types: {list}"
692
+ }
693
+ }, at = {
694
+ i18n: { messages: we }
695
+ }, ut = /* @__PURE__ */ j({
696
+ ...at,
697
+ __name: "file-uploader-restrictions",
698
+ props: {
699
+ condensed: { type: Boolean, default: null },
700
+ disabled: { type: Boolean, default: null },
701
+ maxCount: { default: null },
702
+ maxDimensions: { default: null },
703
+ maxSize: { default: null },
704
+ supportedFileTypes: { default: null }
705
+ },
706
+ setup(e) {
707
+ const t = e, { t: s, tc: l, locale: o } = Y({ messages: we }), p = h(() => ({
708
+ "b-file-uploader-restrictions--condensed": t.condensed,
709
+ "b-file-uploader-restrictions--disabled": t.disabled
710
+ }));
711
+ function E(a) {
712
+ return {
713
+ "b-file-uploader-restrictions--error": a
714
+ };
715
+ }
716
+ const I = h(() => {
717
+ if (!t.maxDimensions)
718
+ return null;
719
+ const {
720
+ value: { width: a, height: R }
721
+ } = t.maxDimensions;
722
+ return a && R ? s("maxImageDimensions", { width: a, height: R }) : a ? s("maxImageWidth", { width: a }) : R ? s("maxImageHeight", { height: R }) : null;
723
+ });
724
+ return (a, R) => (r(), c("div", {
725
+ class: F(["b-file-uploader-restrictions", p.value])
726
+ }, [
727
+ a.supportedFileTypes ? (r(), v(n(V), {
728
+ key: 0,
729
+ class: F(E(a.supportedFileTypes.error))
730
+ }, {
731
+ default: g(() => [
732
+ _(f(n(s)("supportedFileTypes", { list: a.supportedFileTypes.value })), 1)
733
+ ]),
734
+ _: 1
735
+ }, 8, ["class"])) : C("", !0),
736
+ a.maxSize ? (r(), v(n(V), {
737
+ key: 1,
738
+ class: F(E(a.maxSize.error))
739
+ }, {
740
+ default: g(() => [
741
+ _(f(n(s)("maxFileSize", { size: n(Ee)(n(o), a.maxSize.value) })), 1)
742
+ ]),
743
+ _: 1
744
+ }, 8, ["class"])) : C("", !0),
745
+ a.maxDimensions ? (r(), v(n(V), {
746
+ key: 2,
747
+ class: F(E(a.maxDimensions.error))
748
+ }, {
749
+ default: g(() => [
750
+ _(f(I.value), 1)
751
+ ]),
752
+ _: 1
753
+ }, 8, ["class"])) : C("", !0),
754
+ a.maxCount ? (r(), v(n(V), {
755
+ key: 3,
756
+ class: F(E(a.maxCount.error))
757
+ }, {
758
+ default: g(() => [
759
+ _(f(n(l)("maxUpload", a.maxCount.value)), 1)
760
+ ]),
761
+ _: 1
762
+ }, 8, ["class"])) : C("", !0)
763
+ ], 2));
764
+ }
765
+ }), he = /* @__PURE__ */ L(ut, [["__scopeId", "data-v-d7c2e9cd"]]);
766
+ function dt(e) {
767
+ const { locale: t, t: s } = Y();
768
+ return { supportedFileTypeList: h(() => {
769
+ const o = new Intl.ListFormat(t.value, { style: "short", type: "unit" });
770
+ return e != null && e.value ? o.format(
771
+ e.value.split(",").map((p) => {
772
+ const E = p.trim();
773
+ switch (E) {
774
+ case "audio/*":
775
+ return s("audioFiles");
776
+ case "image/*":
777
+ return s("imageFiles");
778
+ case "video/*":
779
+ return s("videoFiles");
780
+ default:
781
+ return E.toUpperCase();
782
+ }
783
+ })
784
+ ) : null;
785
+ }) };
786
+ }
787
+ const Le = {
788
+ "en-US": {
789
+ audioFiles: "audio files",
790
+ browseFiles: "Browse files",
791
+ dropArea: "Drop area",
792
+ dropFiles: "Drop file to upload | Drop files to upload",
793
+ fileExceedsSizeLimit: "File exceeds size limit",
794
+ imageFiles: "image files",
795
+ tooManyFiles: "Too many files",
796
+ upload: "Upload",
797
+ videoFiles: "video files",
798
+ warning: "Warning",
799
+ youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
800
+ },
801
+ "pt-BR": {
802
+ upload: "Carregar",
803
+ warning: "Aviso"
804
+ },
805
+ "ja-JP": {
806
+ upload: "アップロード",
807
+ warning: "警告"
808
+ }
809
+ }, pt = ["id", "accept", "disabled", "multiple"], ft = ["aria-label", "tabindex"], ct = { class: "b-file-uploader__icon" }, mt = { class: "b-file-uploader__files" }, Ct = {
810
+ model: { prop: "modelValue" },
811
+ i18n: { messages: Le }
812
+ }, gt = /* @__PURE__ */ j({
813
+ ...Ct,
814
+ __name: "file-uploader",
815
+ props: {
816
+ accept: { default: null },
817
+ condensed: { type: Boolean },
818
+ description: { default: null },
819
+ disabled: { type: Boolean },
820
+ errorMessage: { default: null },
821
+ label: {},
822
+ maxCount: { default: 1 },
823
+ maxDimensions: { default: null },
824
+ maxSize: { default: null },
825
+ modelValue: { default: null },
826
+ optional: { type: Boolean },
827
+ required: { type: Boolean },
828
+ tooltipText: { default: null }
829
+ },
830
+ emits: ["change", "update:modelValue"],
831
+ setup(e, { emit: t }) {
832
+ const s = e, l = t, { t: o, tc: p } = Y({ messages: Le }), E = Q("input"), I = Q("input-error"), a = k(null), R = k(), T = se({
833
+ dragging: !1,
834
+ error: !1
835
+ }), w = k(null), { supportedFileTypeList: z } = dt(xe(s, "accept")), B = k(!1), x = h(() => !!s.errorMessage || T.error), Z = h(() => s.maxCount > 1), q = h(() => ({
836
+ [`b-file-uploader--${W.DISABLED}`]: s.disabled,
837
+ [`b-file-uploader--${W.DRAG_OVER}`]: T.dragging,
838
+ [`b-file-uploader--${W.ERROR}`]: x.value,
839
+ "b-file-uploader--condensed": s.condensed
840
+ })), P = h(() => {
841
+ var i;
842
+ return s.maxCount && ((i = w.value) == null ? void 0 : i.length) >= s.maxCount;
843
+ }), A = h(() => {
844
+ var i, u, y;
845
+ return {
846
+ condensed: s.condensed,
847
+ disabled: s.disabled,
848
+ maxCount: Z.value ? {
849
+ value: s.maxCount,
850
+ error: B.value
851
+ } : null,
852
+ maxDimensions: s.maxDimensions ? {
853
+ value: s.maxDimensions,
854
+ error: (i = w.value) == null ? void 0 : i.some((b) => b.state === $.ERROR_DIMENSIONS)
855
+ } : null,
856
+ maxSize: s.maxSize ? {
857
+ value: s.maxSize,
858
+ error: (u = w.value) == null ? void 0 : u.some((b) => b.state === $.ERROR_SIZE)
859
+ } : null,
860
+ supportedFileTypes: z.value ? {
861
+ value: z.value,
862
+ error: (y = w.value) == null ? void 0 : y.some((b) => b.state === $.ERROR_TYPE)
863
+ } : null
864
+ };
865
+ });
866
+ function X(i) {
867
+ const u = s.maxCount && i.length <= s.maxCount;
868
+ B.value = !u;
869
+ }
870
+ function J(i) {
871
+ s.maxSize && i.forEach((u) => {
872
+ const y = u;
873
+ y.data.size > s.maxSize && (y.state = $.ERROR_SIZE);
874
+ });
875
+ }
876
+ function K(i) {
877
+ i.preventDefault(), s.disabled && (i.dataTransfer.dropEffect = "none");
878
+ }
879
+ function N(i) {
880
+ const u = se({
881
+ id: Q("file"),
882
+ data: i,
883
+ state: $.LOADING,
884
+ type: d1(i),
885
+ progress: null
886
+ });
887
+ return f1(u, s.accept, s.maxDimensions), u;
888
+ }
889
+ function H(i) {
890
+ Z.value ? w.value = [...w.value || [], ...Array.from(i).map((u) => N(u))] : w.value = [N(i[0])];
891
+ }
892
+ function M() {
893
+ var i, u;
894
+ if (s.maxCount === 1 && ((i = a.value.files) == null ? void 0 : i.length) > s.maxCount) {
895
+ O();
896
+ return;
897
+ }
898
+ (u = a.value.files) != null && u.length && H(a.value.files), a.value.value = "";
899
+ }
900
+ function O() {
901
+ R.value = null, !s.disabled && (T.dragging = !1, T.error = !1);
902
+ }
903
+ function Ie(i) {
904
+ var u;
905
+ R.value = i.target, !s.disabled && (T.dragging = !0, (!i.dataTransfer.types.includes("Files") || ((u = i.dataTransfer.items) == null ? void 0 : u.length) > s.maxCount) && (T.error = !0));
906
+ }
907
+ function Ve(i) {
908
+ R.value === i.target && O();
909
+ }
910
+ function He(i) {
911
+ var u, y;
912
+ if (!s.disabled) {
913
+ if (s.maxCount === 1 && ((u = i.dataTransfer.files) == null ? void 0 : u.length) > s.maxCount) {
914
+ O();
915
+ return;
916
+ }
917
+ (y = i.dataTransfer.files) != null && y.length && H(i.dataTransfer.files), O();
918
+ }
919
+ }
920
+ function ee(i) {
921
+ w.value = w.value.filter(({ id: u }) => u !== i.id);
922
+ }
923
+ function Se(i) {
924
+ const u = i.filter(
925
+ ({ state: y }) => y !== $.ERROR_LOAD && y !== $.ERROR_SIZE
926
+ );
927
+ if (u.length) {
928
+ const y = new DataTransfer();
929
+ return u.forEach(({ data: b }) => y.items.add(b)), y.files;
930
+ }
931
+ }
932
+ return $e(w, (i) => {
933
+ if (i) {
934
+ X(i), J(i);
935
+ const u = Se(i);
936
+ l("change", u), l("update:modelValue", u);
937
+ } else
938
+ l("change"), l("update:modelValue");
939
+ }), (i, u) => {
940
+ var y;
941
+ return r(), c("div", {
942
+ class: F(["b-file-uploader", q.value])
943
+ }, [
944
+ D(n(Ye), {
945
+ condensed: i.condensed,
946
+ for: n(E),
947
+ label: i.label,
948
+ optional: i.optional,
949
+ required: i.required,
950
+ "tooltip-text": i.tooltipText,
951
+ class: "b-file-uploader__label"
952
+ }, null, 8, ["condensed", "for", "label", "optional", "required", "tooltip-text"]),
953
+ d("input", {
954
+ id: n(E),
955
+ ref_key: "input",
956
+ ref: a,
957
+ type: "file",
958
+ tabindex: "-1",
959
+ "data-testid": "input",
960
+ class: "b-file-uploader__input",
961
+ accept: i.accept,
962
+ disabled: i.disabled,
963
+ multiple: Z.value,
964
+ onChange: M
965
+ }, null, 40, pt),
966
+ P.value ? C("", !0) : (r(), c("div", {
967
+ key: 0,
968
+ class: "b-file-uploader__area",
969
+ "aria-label": n(o)("dropArea"),
970
+ tabindex: i.disabled ? -1 : 0,
971
+ onClick: u[0] || (u[0] = (b) => a.value.click()),
972
+ onDragenter: U(Ie, ["stop", "prevent"]),
973
+ onDragleave: U(Ve, ["stop", "prevent"]),
974
+ onDrop: U(He, ["stop", "prevent"]),
975
+ onDragover: K,
976
+ onKeydownCapture: [
977
+ u[1] || (u[1] = ie(U((b) => a.value.click(), ["prevent"]), ["enter"])),
978
+ u[2] || (u[2] = ie(U((b) => a.value.click(), ["prevent"]), ["space"]))
979
+ ]
980
+ }, [
981
+ d("div", ct, [
982
+ x.value ? (r(), v(n(_e), {
983
+ key: 0,
984
+ "svg-title": n(o)("warning")
985
+ }, null, 8, ["svg-title"])) : (r(), v(n(Qe), {
986
+ key: 1,
987
+ "svg-title": n(o)("upload")
988
+ }, null, 8, ["svg-title"]))
989
+ ]),
990
+ i.condensed ? C("", !0) : (r(), c(ne, { key: 0 }, [
991
+ D(n(V), {
992
+ el: "span",
993
+ strongest: "",
994
+ class: "b-file-uploader__title"
995
+ }, {
996
+ default: g(() => [
997
+ _(f(n(p)("dropFiles", +!Z.value)), 1)
998
+ ]),
999
+ _: 1
1000
+ }),
1001
+ i.description ? (r(), v(n(V), {
1002
+ key: 0,
1003
+ el: "span",
1004
+ class: "b-file-uploader__description"
1005
+ }, {
1006
+ default: g(() => [
1007
+ _(f(i.description), 1)
1008
+ ]),
1009
+ _: 1
1010
+ })) : C("", !0),
1011
+ D(n(he), le(Ze(A.value)), null, 16)
1012
+ ], 64)),
1013
+ D(n(G), {
1014
+ disabled: i.disabled,
1015
+ variant: i.condensed ? "tertiary" : "secondary",
1016
+ condensed: "",
1017
+ tabindex: "-1",
1018
+ class: "b-file-uploader__button"
1019
+ }, {
1020
+ default: g(() => [
1021
+ _(f(n(o)("browseFiles")), 1)
1022
+ ]),
1023
+ _: 1
1024
+ }, 8, ["disabled", "variant"])
1025
+ ], 40, ft)),
1026
+ x.value && i.errorMessage ? (r(), v(n(qe), {
1027
+ key: 1,
1028
+ id: n(I),
1029
+ "error-message": i.errorMessage,
1030
+ class: "b-file-uploader__error-message"
1031
+ }, null, 8, ["id", "error-message"])) : C("", !0),
1032
+ i.condensed && i.description ? (r(), v(n(V), {
1033
+ key: 2,
1034
+ el: "span",
1035
+ class: "b-file-uploader__description b-file-uploader__description--condensed"
1036
+ }, {
1037
+ default: g(() => [
1038
+ _(f(i.description), 1)
1039
+ ]),
1040
+ _: 1
1041
+ })) : C("", !0),
1042
+ i.condensed ? (r(), v(n(he), le(S({ key: 3 }, A.value)), null, 16)) : C("", !0),
1043
+ B.value ? (r(), v(n(Ae), {
1044
+ key: 4,
1045
+ type: "critical",
1046
+ class: "b-file-uploader__alert"
1047
+ }, {
1048
+ description: g(() => [
1049
+ _(f(n(o)("youHaveExceededTheMaximum", { count: s.maxCount })), 1)
1050
+ ]),
1051
+ default: g(() => [
1052
+ _(f(n(o)("tooManyFiles")) + " ", 1)
1053
+ ]),
1054
+ _: 1
1055
+ })) : C("", !0),
1056
+ ye(d("div", mt, [
1057
+ (r(!0), c(ne, null, ze(w.value, (b) => (r(), v(n(ot), {
1058
+ key: b.id,
1059
+ file: b,
1060
+ "supported-file-types": n(z),
1061
+ onCancel: (Me) => ee(b),
1062
+ onRemove: (Me) => ee(b)
1063
+ }, null, 8, ["file", "supported-file-types", "onCancel", "onRemove"]))), 128))
1064
+ ], 512), [
1065
+ [Be, (y = w.value) == null ? void 0 : y.length]
1066
+ ])
1067
+ ], 2);
1068
+ };
1069
+ }
1070
+ }), Ft = /* @__PURE__ */ L(gt, [["__scopeId", "data-v-77272088"]]);
1071
+ export {
1072
+ Ft as f
1073
+ };
1074
+ //# sourceMappingURL=file-uploader.cRbwpcAw.js.map