@adyen/bento-vue2 1.78.2 → 1.79.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/index.d.ts +77 -28
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/ai-button.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/checkbox-group.css +1 -1
  13. package/dist/assets/dashboard-section.css +1 -1
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/form-layout-title.css +1 -1
  20. package/dist/assets/header-with-views.css +1 -1
  21. package/dist/assets/index.css +1 -1
  22. package/dist/assets/input-field-password.css +1 -1
  23. package/dist/assets/input-field-phone-number.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/inspector.css +1 -1
  26. package/dist/assets/layout-row.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/search-bar.css +1 -1
  29. package/dist/assets/secondary-nav.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/step.css +1 -1
  32. package/dist/assets/structured-list-item.css +1 -1
  33. package/dist/assets/summary-grid.css +1 -1
  34. package/dist/assets/tab.css +1 -1
  35. package/dist/assets/teleport.css +1 -0
  36. package/dist/assets/toast.css +1 -1
  37. package/dist/assets/tooltip.css +1 -1
  38. package/dist/assets/tutorial.css +1 -1
  39. package/dist/assets/use-cached-selected-values.css +1 -1
  40. package/dist/button.js +1 -1
  41. package/dist/card.js +1 -1
  42. package/dist/checkbox.js +2 -2
  43. package/dist/chunks/{accordion-item.nQhXD2tV.js → accordion-item.G1q4zgBG.js} +2 -2
  44. package/dist/chunks/{accordion-item.nQhXD2tV.js.map → accordion-item.G1q4zgBG.js.map} +1 -1
  45. package/dist/chunks/{action-bar.MXZTIUNk.js → action-bar.DOaFj-A2.js} +3 -3
  46. package/dist/chunks/{action-bar.MXZTIUNk.js.map → action-bar.DOaFj-A2.js.map} +1 -1
  47. package/dist/chunks/{base-modal.BMdlCSd0.js → base-modal.BJ6315kP.js} +13 -13
  48. package/dist/chunks/{base-modal.BMdlCSd0.js.map → base-modal.BJ6315kP.js.map} +1 -1
  49. package/dist/chunks/{button-actions-with-menu.BFRkPi6g.js → button-actions-with-menu.DPKvfKJY.js} +2 -2
  50. package/dist/chunks/{button-actions-with-menu.BFRkPi6g.js.map → button-actions-with-menu.DPKvfKJY.js.map} +1 -1
  51. package/dist/chunks/{button-actions.B81vY51z.js → button-actions.C3cP-anb.js} +228 -347
  52. package/dist/chunks/button-actions.C3cP-anb.js.map +1 -0
  53. package/dist/chunks/{calendar.Fm_dfQC5.js → calendar.Bhj58zR3.js} +4 -43
  54. package/dist/chunks/{calendar.Fm_dfQC5.js.map → calendar.Bhj58zR3.js.map} +1 -1
  55. package/dist/chunks/{card.VOCKI7Ad.js → card.XfRuWGfC.js} +2 -2
  56. package/dist/chunks/{card.VOCKI7Ad.js.map → card.XfRuWGfC.js.map} +1 -1
  57. package/dist/chunks/{checkbox-group.tm9zLXkK.js → checkbox-group.CGxWh-no.js} +35 -34
  58. package/dist/chunks/checkbox-group.CGxWh-no.js.map +1 -0
  59. package/dist/chunks/{checkbox.itbBlXev.js → checkbox.C6NSiW_I.js} +18 -18
  60. package/dist/chunks/{checkbox.itbBlXev.js.map → checkbox.C6NSiW_I.js.map} +1 -1
  61. package/dist/chunks/{code-snippet.trioWquF.js → code-snippet.bzFOFUj4.js} +5 -5
  62. package/dist/chunks/{code-snippet.trioWquF.js.map → code-snippet.bzFOFUj4.js.map} +1 -1
  63. package/dist/chunks/{codemirror.Zv80n3Z2.js → codemirror.Cy7iSLbd.js} +12 -12
  64. package/dist/chunks/{codemirror.Zv80n3Z2.js.map → codemirror.Cy7iSLbd.js.map} +1 -1
  65. package/dist/chunks/constructNow.BhymNmy5.js +8 -0
  66. package/dist/chunks/{constructNow.CHWWeLPc.js.map → constructNow.BhymNmy5.js.map} +1 -1
  67. package/dist/chunks/{controls-group.82mB_GDw.js → controls-group.D62vSDSk.js} +2 -2
  68. package/dist/chunks/{controls-group.82mB_GDw.js.map → controls-group.D62vSDSk.js.map} +1 -1
  69. package/dist/chunks/{copy.WQDLcs_T.js → copy.Hu3DFJwv.js} +2 -2
  70. package/dist/chunks/{copy.WQDLcs_T.js.map → copy.Hu3DFJwv.js.map} +1 -1
  71. package/dist/chunks/{country.CGn5WjFx.js → country.B3z3-QRY.js} +2 -2
  72. package/dist/chunks/{country.CGn5WjFx.js.map → country.B3z3-QRY.js.map} +1 -1
  73. package/dist/chunks/{dashboard-section.D1l7wDX3.js → dashboard-section.BvGMr9Vl.js} +4 -4
  74. package/dist/chunks/{dashboard-section.D1l7wDX3.js.map → dashboard-section.BvGMr9Vl.js.map} +1 -1
  75. package/dist/chunks/{dashed-underline.K-l-7bDq.js → dashed-underline.D107w00E.js} +13 -12
  76. package/dist/chunks/{dashed-underline.K-l-7bDq.js.map → dashed-underline.D107w00E.js.map} +1 -1
  77. package/dist/chunks/{data-grid-template.DGUDqzjj.js → data-grid-template.DShJunDa.js} +4 -4
  78. package/dist/chunks/{data-grid-template.DGUDqzjj.js.map → data-grid-template.DShJunDa.js.map} +1 -1
  79. package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
  80. package/dist/chunks/{data-grid-template.keys.2_AkxuNT.js.map → data-grid-template.keys.VezYtHtM.js.map} +1 -1
  81. package/dist/chunks/{data-grid.CS7Q8EWs.js → data-grid.BzHb4GUA.js} +18 -18
  82. package/dist/chunks/{data-grid.CS7Q8EWs.js.map → data-grid.BzHb4GUA.js.map} +1 -1
  83. package/dist/chunks/{date-picker.DK-ndVN9.js → date-picker.Dvx50znw.js} +7 -7
  84. package/dist/chunks/{date-picker.DK-ndVN9.js.map → date-picker.Dvx50znw.js.map} +1 -1
  85. package/dist/chunks/{date-range-picker.BkZBhOfu.js → date-range-picker.DYYyE_e2.js} +313 -305
  86. package/dist/chunks/date-range-picker.DYYyE_e2.js.map +1 -0
  87. package/dist/chunks/{dialog-page.D23qNwKW.js → dialog-page.krM2wQpm.js} +2 -2
  88. package/dist/chunks/{dialog-page.D23qNwKW.js.map → dialog-page.krM2wQpm.js.map} +1 -1
  89. package/dist/chunks/{differenceInMonths.C8FyCrav.js → differenceInMonths.Cab3nOsb.js} +2 -2
  90. package/dist/chunks/{differenceInMonths.C8FyCrav.js.map → differenceInMonths.Cab3nOsb.js.map} +1 -1
  91. package/dist/chunks/{divider.CFbtmKeQ.js → divider.DX5gwN7p.js} +2 -2
  92. package/dist/chunks/{divider.CFbtmKeQ.js.map → divider.DX5gwN7p.js.map} +1 -1
  93. package/dist/chunks/{dropdown-default-textbox.BCOVaw-a.js → dropdown-default-textbox.uWZMxeI7.js} +2 -2
  94. package/dist/chunks/{dropdown-default-textbox.BCOVaw-a.js.map → dropdown-default-textbox.uWZMxeI7.js.map} +1 -1
  95. package/dist/chunks/{dropdown-tag.DUP4wYAW.js → dropdown-tag.Ctn5KMFU.js} +4 -4
  96. package/dist/chunks/{dropdown-tag.DUP4wYAW.js.map → dropdown-tag.Ctn5KMFU.js.map} +1 -1
  97. package/dist/chunks/{dropdown.BiA1YOYJ.js → dropdown.BpT6ct8O.js} +28 -28
  98. package/dist/chunks/{dropdown.BiA1YOYJ.js.map → dropdown.BpT6ct8O.js.map} +1 -1
  99. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  100. package/dist/chunks/{events.CMzGybJJ.js → events.BQOQSSb7.js} +2 -5
  101. package/dist/chunks/{events.CMzGybJJ.js.map → events.BQOQSSb7.js.map} +1 -1
  102. package/dist/chunks/{field-label.Auq-Pzho.js → field-label.C3h8Q8Xd.js} +2 -2
  103. package/dist/chunks/{field-label.Auq-Pzho.js.map → field-label.C3h8Q8Xd.js.map} +1 -1
  104. package/dist/chunks/{file-uploader.DsvADlNb.js → file-uploader.CK6dhx8T.js} +109 -106
  105. package/dist/chunks/file-uploader.CK6dhx8T.js.map +1 -0
  106. package/dist/chunks/{filter-bar.F5drAPol.js → filter-bar.DpjD5bZe.js} +111 -115
  107. package/dist/chunks/filter-bar.DpjD5bZe.js.map +1 -0
  108. package/dist/chunks/{footer-actions.CLq_kBwY.js → footer-actions.DPjWGWhJ.js} +2 -2
  109. package/dist/chunks/{footer-actions.CLq_kBwY.js.map → footer-actions.DPjWGWhJ.js.map} +1 -1
  110. package/dist/chunks/{form-layout-title.DoF6ovPB.js → form-layout-title.B_oVSX5b.js} +2 -2
  111. package/dist/chunks/{form-layout-title.DoF6ovPB.js.map → form-layout-title.B_oVSX5b.js.map} +1 -1
  112. package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
  113. package/dist/chunks/{form-layout.types.D3EKzbE7.js.map → form-layout.types.bZW9iR6_.js.map} +1 -1
  114. package/dist/chunks/get-slot-text.Bjb9dTSV.js.map +1 -1
  115. package/dist/chunks/{getTimezoneOffsetInMilliseconds.BW7U6PxE.js → getTimezoneOffsetInMilliseconds.B7sxiukN.js} +2 -2
  116. package/dist/chunks/{getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map → getTimezoneOffsetInMilliseconds.B7sxiukN.js.map} +1 -1
  117. package/dist/chunks/{header-meta.D-6dL1Vg.js → header-meta.qT3_T35I.js} +5 -5
  118. package/dist/chunks/{header-meta.D-6dL1Vg.js.map → header-meta.qT3_T35I.js.map} +1 -1
  119. package/dist/chunks/{header-with-views.CG5FKoC1.js → header-with-views.BSYbvDyP.js} +13 -13
  120. package/dist/chunks/{header-with-views.CG5FKoC1.js.map → header-with-views.BSYbvDyP.js.map} +1 -1
  121. package/dist/chunks/{header.DoWKsA15.js → header.CLDtv3Ir.js} +3 -3
  122. package/dist/chunks/{header.DoWKsA15.js.map → header.CLDtv3Ir.js.map} +1 -1
  123. package/dist/chunks/{info-icon.Bhka3oGh.js → info-icon.DGrrXpIY.js} +2 -2
  124. package/dist/chunks/{info-icon.Bhka3oGh.js.map → info-icon.DGrrXpIY.js.map} +1 -1
  125. package/dist/chunks/{input-field-password.FvLueqmb.js → input-field-password.uhQuUzyj.js} +103 -95
  126. package/dist/chunks/input-field-password.uhQuUzyj.js.map +1 -0
  127. package/dist/chunks/{input-field-phone-number.B-dlJc27.js → input-field-phone-number.BdbaTJwH.js} +1170 -1168
  128. package/dist/chunks/{input-field-phone-number.B-dlJc27.js.map → input-field-phone-number.BdbaTJwH.js.map} +1 -1
  129. package/dist/chunks/{input-field.B1MHu987.js → input-field.C4XJ53Cn.js} +87 -79
  130. package/dist/chunks/input-field.C4XJ53Cn.js.map +1 -0
  131. package/dist/chunks/{keyboard-navigation.pB8weElW.js → keyboard-navigation.DWmhelVv.js} +2 -2
  132. package/dist/chunks/{keyboard-navigation.pB8weElW.js.map → keyboard-navigation.DWmhelVv.js.map} +1 -1
  133. package/dist/chunks/{layout-row.BP3lZAOh.js → layout-row.DwdZbpVG.js} +2 -2
  134. package/dist/chunks/{layout-row.BP3lZAOh.js.map → layout-row.DwdZbpVG.js.map} +1 -1
  135. package/dist/chunks/{listbox-option-tag.DkPz3wPc.js → listbox-option-tag.B94BtpSU.js} +2 -2
  136. package/dist/chunks/{listbox-option-tag.DkPz3wPc.js.map → listbox-option-tag.B94BtpSU.js.map} +1 -1
  137. package/dist/chunks/{modal-fullscreen.BSKm6yn_.js → modal-fullscreen.B3Xx-Hoc.js} +33 -32
  138. package/dist/chunks/modal-fullscreen.B3Xx-Hoc.js.map +1 -0
  139. package/dist/chunks/{modal.Bp5twyjz.js → modal.D3OSxMF6.js} +4 -4
  140. package/dist/chunks/{modal.Bp5twyjz.js.map → modal.D3OSxMF6.js.map} +1 -1
  141. package/dist/chunks/{pagination.D1C0cURM.js → pagination.Bvhpu21H.js} +2 -2
  142. package/dist/chunks/{pagination.D1C0cURM.js.map → pagination.Bvhpu21H.js.map} +1 -1
  143. package/dist/chunks/{payment-method.CcASYR3B.js → payment-method.C8Ie97qE.js} +2 -2
  144. package/dist/chunks/{payment-method.CcASYR3B.js.map → payment-method.C8Ie97qE.js.map} +1 -1
  145. package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -1
  146. package/dist/chunks/{radio-group.DmKiTjS8.js → radio-group.BTu23ZgN.js} +5 -5
  147. package/dist/chunks/{radio-group.DmKiTjS8.js.map → radio-group.BTu23ZgN.js.map} +1 -1
  148. package/dist/chunks/{rich-text-editor.DzH-Z5oi.js → rich-text-editor.BtcSjFpF.js} +12 -12
  149. package/dist/chunks/{rich-text-editor.DzH-Z5oi.js.map → rich-text-editor.BtcSjFpF.js.map} +1 -1
  150. package/dist/chunks/{search-bar.Cvw_nY5M.js → search-bar.BcHoTrjP.js} +11 -11
  151. package/dist/chunks/search-bar.BcHoTrjP.js.map +1 -0
  152. package/dist/chunks/{secondary-nav.CUF6QWjI.js → secondary-nav.DEThy9WH.js} +3 -3
  153. package/dist/chunks/{secondary-nav.CUF6QWjI.js.map → secondary-nav.DEThy9WH.js.map} +1 -1
  154. package/dist/chunks/{segmented-control.Cma_nu0G.js → segmented-control.Dj_ZKhmU.js} +2 -2
  155. package/dist/chunks/{segmented-control.Cma_nu0G.js.map → segmented-control.Dj_ZKhmU.js.map} +1 -1
  156. package/dist/chunks/{selection-card-group.Ddli4Llk.js → selection-card-group.Rz_rTBRp.js} +11 -11
  157. package/dist/chunks/{selection-card-group.Ddli4Llk.js.map → selection-card-group.Rz_rTBRp.js.map} +1 -1
  158. package/dist/chunks/{sidepanel.A9yG4FP_.js → sidepanel.ClG3dhHf.js} +4 -4
  159. package/dist/chunks/{sidepanel.A9yG4FP_.js.map → sidepanel.ClG3dhHf.js.map} +1 -1
  160. package/dist/chunks/{step.TzzZSA9f.js → step.Cnqr8i4V.js} +3 -3
  161. package/dist/chunks/{step.TzzZSA9f.js.map → step.Cnqr8i4V.js.map} +1 -1
  162. package/dist/chunks/{structured-list-item.CMsVwwA6.js → structured-list-item.zoY-ATTu.js} +5 -5
  163. package/dist/chunks/{structured-list-item.CMsVwwA6.js.map → structured-list-item.zoY-ATTu.js.map} +1 -1
  164. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
  165. package/dist/chunks/{summary-grid.keys.CxTf_FOc.js.map → summary-grid.keys.Xx-W5a2w.js.map} +1 -1
  166. package/dist/chunks/{summary-grid.types.CaYrtyVO.js → summary-grid.types.BA0XCVKK.js} +21 -21
  167. package/dist/chunks/summary-grid.types.BA0XCVKK.js.map +1 -0
  168. package/dist/chunks/{tab.CTui3j3e.js → tab.DXE68qVf.js} +2 -2
  169. package/dist/chunks/{tab.CTui3j3e.js.map → tab.DXE68qVf.js.map} +1 -1
  170. package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
  171. package/dist/chunks/{tabs.keys.Cb4Vw5Jh.js.map → tabs.keys.B4qGhjp2.js.map} +1 -1
  172. package/dist/chunks/{tag.BltIbSh3.js → tag.BdCP2CN_.js} +2 -2
  173. package/dist/chunks/{tag.BltIbSh3.js.map → tag.BdCP2CN_.js.map} +1 -1
  174. package/dist/chunks/teleport.dQFcCuAw.js +128 -0
  175. package/dist/chunks/teleport.dQFcCuAw.js.map +1 -0
  176. package/dist/chunks/{textarea.CLWZRnAt.js → textarea.DaNiOOJ7.js} +3 -3
  177. package/dist/chunks/{textarea.CLWZRnAt.js.map → textarea.DaNiOOJ7.js.map} +1 -1
  178. package/dist/chunks/{timeline-item.HbtUj1j_.js → timeline-item.D2HsuNh-.js} +7 -7
  179. package/dist/chunks/{timeline-item.HbtUj1j_.js.map → timeline-item.D2HsuNh-.js.map} +1 -1
  180. package/dist/chunks/toast.CA5H8vr9.js +174 -0
  181. package/dist/chunks/toast.CA5H8vr9.js.map +1 -0
  182. package/dist/chunks/{tooltip.D3SDcRef.js → tooltip.Dt87KVh2.js} +2 -2
  183. package/dist/chunks/{tooltip.D3SDcRef.js.map → tooltip.Dt87KVh2.js.map} +1 -1
  184. package/dist/chunks/{tutorial.B32GMtIj.js → tutorial.C-q4mxUb.js} +4 -4
  185. package/dist/chunks/{tutorial.B32GMtIj.js.map → tutorial.C-q4mxUb.js.map} +1 -1
  186. package/dist/chunks/{use-bento-toast-controller.BKHU1qBv.js → use-bento-toast-controller.BhtohoS1.js} +2 -2
  187. package/dist/chunks/{use-bento-toast-controller.BKHU1qBv.js.map → use-bento-toast-controller.BhtohoS1.js.map} +1 -1
  188. package/dist/chunks/{use-cached-selected-values.BZd3CTeP.js → use-cached-selected-values.FoXcm49J.js} +3 -3
  189. package/dist/chunks/{use-cached-selected-values.BZd3CTeP.js.map → use-cached-selected-values.FoXcm49J.js.map} +1 -1
  190. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js → use-form-layout-loading.CWbjZiwP.js} +2 -2
  191. package/dist/chunks/{use-form-layout-loading.D3lALhtC.js.map → use-form-layout-loading.CWbjZiwP.js.map} +1 -1
  192. package/dist/code-snippet.js +1 -1
  193. package/dist/country.js +1 -1
  194. package/dist/dashboard-template.js +1 -1
  195. package/dist/dashed-underline.js +1 -1
  196. package/dist/data-grid-template.js +1 -1
  197. package/dist/data-grid.js +1 -1
  198. package/dist/date-picker.js +2 -2
  199. package/dist/date-range-picker.js +2 -2
  200. package/dist/divider.js +1 -1
  201. package/dist/dropdown.js +4 -4
  202. package/dist/file-uploader.js +1 -1
  203. package/dist/filter-bar.js +1 -1
  204. package/dist/form-layout.js +1 -1
  205. package/dist/header-with-views.js +1 -1
  206. package/dist/header.js +1 -1
  207. package/dist/index.js +289 -288
  208. package/dist/index.js.map +1 -1
  209. package/dist/info-icon.js +1 -1
  210. package/dist/input-field-password.js +1 -1
  211. package/dist/input-field-phone-number.js +1 -1
  212. package/dist/input-field.js +1 -1
  213. package/dist/internal.js +27 -26
  214. package/dist/internal.js.map +1 -1
  215. package/dist/layout.js +1 -1
  216. package/dist/menu.js +1 -1
  217. package/dist/modal-fullscreen.js +1 -1
  218. package/dist/modal.js +2 -2
  219. package/dist/pagination.js +1 -1
  220. package/dist/payment-method.js +1 -1
  221. package/dist/popover.js +1 -1
  222. package/dist/radio-group.js +1 -1
  223. package/dist/rich-text-editor.js +1 -1
  224. package/dist/search-bar.js +2 -2
  225. package/dist/secondary-nav.js +1 -1
  226. package/dist/segmented-control.js +1 -1
  227. package/dist/selection-card.js +1 -1
  228. package/dist/sidepanel.js +1 -1
  229. package/dist/stepper.js +1 -1
  230. package/dist/structured-list.js +1 -1
  231. package/dist/styles/bento-dark.css +4 -1
  232. package/dist/styles/bento-light.css +4 -1
  233. package/dist/styles/bento.css +4 -1
  234. package/dist/styles/legacy.css +4 -1
  235. package/dist/styles/styleguide.css +4 -1
  236. package/dist/summary-grid.js +1 -1
  237. package/dist/tabs.js +1 -1
  238. package/dist/tag.js +1 -1
  239. package/dist/textarea.js +1 -1
  240. package/dist/timeline.js +1 -1
  241. package/dist/toast.js +1 -1
  242. package/dist/tutorial.js +1 -1
  243. package/dist/use-form-v4.js +8 -8
  244. package/dist/use-form-v4.js.map +1 -1
  245. package/dist/web-types.json +105 -5
  246. package/package.json +8 -7
  247. package/dist/chunks/button-actions.B81vY51z.js.map +0 -1
  248. package/dist/chunks/checkbox-group.tm9zLXkK.js.map +0 -1
  249. package/dist/chunks/constructNow.CHWWeLPc.js +0 -8
  250. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
  251. package/dist/chunks/date-range-picker.BkZBhOfu.js.map +0 -1
  252. package/dist/chunks/file-uploader.DsvADlNb.js.map +0 -1
  253. package/dist/chunks/filter-bar.F5drAPol.js.map +0 -1
  254. package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
  255. package/dist/chunks/input-field-password.FvLueqmb.js.map +0 -1
  256. package/dist/chunks/input-field.B1MHu987.js.map +0 -1
  257. package/dist/chunks/modal-fullscreen.BSKm6yn_.js.map +0 -1
  258. package/dist/chunks/search-bar.Cvw_nY5M.js.map +0 -1
  259. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
  260. package/dist/chunks/summary-grid.types.CaYrtyVO.js.map +0 -1
  261. package/dist/chunks/tabs.keys.Cb4Vw5Jh.js +0 -7
  262. package/dist/chunks/toast.B4J4V6n-.js +0 -171
  263. package/dist/chunks/toast.B4J4V6n-.js.map +0 -1
@@ -28,10 +28,7 @@ function c(e, t, o, u) {
28
28
  }
29
29
  let r;
30
30
  const a = (s) => {
31
- try {
32
- o(s);
33
- } finally {
34
- }
31
+ o(s);
35
32
  }, i = () => {
36
33
  e.removeEventListener(t, a, r);
37
34
  };
@@ -44,4 +41,4 @@ export {
44
41
  c as l,
45
42
  p as s
46
43
  };
47
- //# sourceMappingURL=events.CMzGybJJ.js.map
44
+ //# sourceMappingURL=events.BQOQSSb7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.CMzGybJJ.js","sources":["../../src/utils/ts/events.ts"],"sourcesContent":["import { type ListenOptions } from '@/types/utils-events';\n\n/**\n * Browser event options object feature support\n * @type {object}\n * @property {boolean} capture\n * @property {boolean} passive\n * @property {boolean} once\n */\nconst optionsSupport = (() => {\n const support = {\n capture: false,\n passive: false,\n once: false,\n };\n\n try {\n // `addEventListener`/`removeEventListener` last argument can be boolean or Object.\n // Old browsers only support boolean, so passing an Object would make them evaluate are true.\n // To detect Object support and each feature, we provide an object with getters.\n // If the getter is invoked means that browser supports that specific feature.\n const options = {\n get capture() {\n support.capture = true;\n return false;\n },\n get passive() {\n support.passive = true;\n return false;\n },\n get once() {\n support.once = true;\n return false;\n },\n };\n // eslint-disable-next-line scanjs-rules/call_addEventListener\n document.addEventListener('test', null, options);\n document.removeEventListener('test', null, options);\n } catch {\n // ignored\n }\n\n return support;\n})();\n\n/**\n * Attach event listeners using options object (implementing browser fallbacks), easy cleanup\n *\n * @param {EventTarget} target - Target where the event will be attached\n * @param {string} type - Event type(s). Accepts multiple types separated by space\n * @param {EventHandler} listener - Handler function\n * @param {ListenOptions}[options] - Listener options\n * @param {boolean} [options.capture] - Capture event listener\n * @param {boolean} [options.passive] - Passive event listener\n * @param {boolean} [options.once] - Auto cleanup after event is fired for the first time\n * @param {boolean} [options.self] - Only trigger if the target of the event is itself\n * @param {Vue} [options.vm] - Auto cleanup when vue instance is destroyed\n * @param {Function} [options.onCleanup] - Callback function invoked after cleaning up\n * @return {Function} Cleanup function that removes the listener\n */\nexport function listen(target: EventTarget, type: string, listener: EventListener, options?: ListenOptions) {\n if (type.indexOf(' ') >= 0) {\n const cleanupBatch = type.split(' ').map(eventType => listen(target, eventType, listener, options));\n return () => cleanupBatch.forEach(cleanup => cleanup && cleanup());\n }\n\n let eventOptions: boolean | AddEventListenerOptions;\n let useNativeOnce = false;\n\n // Listener wrapper\n const eventListener = event => {\n if (options?.self && event.target !== target) {\n return;\n }\n try {\n listener(event);\n } finally {\n if (options?.once) {\n cleanup();\n }\n }\n };\n\n // Cleanup function\n const cleanup = () => {\n if (!useNativeOnce) {\n target.removeEventListener(type, eventListener, eventOptions);\n }\n options?.vm?.$off('hook:beforeDestroy', cleanup);\n options?.onCleanup?.();\n };\n\n // addEventListener options adjustments\n if (options?.capture) {\n eventOptions = optionsSupport.capture ? { capture: true } : true;\n }\n\n if (options?.passive && optionsSupport.passive) {\n eventOptions = { ...(eventOptions as AddEventListenerOptions), passive: true };\n }\n\n if (options?.once && optionsSupport.once) {\n // `self`, `vm` and `onCleanup` options forces to skip native `once`\n if (!options?.self && !options?.vm && !options?.onCleanup) {\n useNativeOnce = true;\n eventOptions = { ...(eventOptions as AddEventListenerOptions), once: true };\n }\n }\n\n // TODO: vue 3 uses old vue event emitter, do we need this?\n // https://v3-migration.vuejs.org/breaking-changes/events-api.html#event-bus\n // if (options?.vm) {\n // if (!(options.vm instanceof Vue)) {\n // throw new TypeError('options.vm is not a Vue component instance');\n // }\n // options.vm.$once('hook:beforeDestroy', cleanup);\n // }\n // eslint-disable-next-line scanjs-rules/call_addEventListener\n target.addEventListener(type, eventListener, eventOptions);\n return cleanup;\n}\n\n/**\n * Prevents the event from bubbling\n * @param {Event} event - Triggered event\n */\nexport const stopEventPropagation = (event: Event) => {\n if (event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n event.stopPropagation();\n }\n};\n"],"names":["support","options","listen","target","type","listener","cleanupBatch","eventType","cleanup","eventOptions","eventListener","event","stopEventPropagation"],"mappings":"CASwB,MAAM;AAC1B,QAAMA,IAAU;AAAA,IACZ,SAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAEI,MAAA;AAKA,UAAMC,IAAU;AAAA,MACZ,IAAI,UAAU;AACV,eAAAD,EAAQ,UAAU,IACX;AAAA,MACX;AAAA,MACA,IAAI,UAAU;AACV,eAAAA,EAAQ,UAAU,IACX;AAAA,MACX;AAAA,MACA,IAAI,OAAO;AACP,eAAAA,EAAQ,OAAO,IACR;AAAA,MAAA;AAAA,IAEf;AAES,aAAA,iBAAiB,QAAQ,MAAMC,CAAO,GACtC,SAAA,oBAAoB,QAAQ,MAAMA,CAAO;AAAA,EAAA,QAC9C;AAAA,EAAA;AAID,SAAAD;AACX,GAAG;AAiBI,SAASE,EAAOC,GAAqBC,GAAcC,GAAyBJ,GAAyB;AACxG,MAAIG,EAAK,QAAQ,GAAG,KAAK,GAAG;AACxB,UAAME,IAAeF,EAAK,MAAM,GAAG,EAAE,IAAI,CAAaG,MAAAL,EAAOC,GAAQI,GAAWF,CAAiB,CAAC;AAClG,WAAO,MAAMC,EAAa,QAAQ,CAAAE,MAAWA,KAAWA,GAAS;AAAA,EAAA;AAGjE,MAAAC;AAIJ,QAAMC,IAAgB,CAASC,MAAA;AAIvB,QAAA;AACA,MAAAN,EAASM,CAAK;AAAA,IAAA,UAChB;AAAA,IAGE;AAAA,EAER,GAGMH,IAAU,MAAM;AAEP,IAAAL,EAAA,oBAAoBC,GAAMM,GAAeD,CAAY;AAAA,EAIpE;AA4BO,SAAAN,EAAA,iBAAiBC,GAAMM,GAAeD,CAAY,GAClDD;AACX;AAMa,MAAAI,IAAuB,CAACD,MAAiB;AAClD,EAAIA,MACAA,EAAM,eAAe,GACrBA,EAAM,yBAAyB,GAC/BA,EAAM,gBAAgB;AAE9B;"}
1
+ {"version":3,"file":"events.BQOQSSb7.js","sources":["../../src/utils/ts/events.ts"],"sourcesContent":["import { type ListenOptions } from '@/types/utils-events';\n\n/**\n * Browser event options object feature support\n * @type {object}\n * @property {boolean} capture\n * @property {boolean} passive\n * @property {boolean} once\n */\nconst optionsSupport = (() => {\n const support = {\n capture: false,\n passive: false,\n once: false,\n };\n\n try {\n // `addEventListener`/`removeEventListener` last argument can be boolean or Object.\n // Old browsers only support boolean, so passing an Object would make them evaluate are true.\n // To detect Object support and each feature, we provide an object with getters.\n // If the getter is invoked means that browser supports that specific feature.\n const options = {\n get capture() {\n support.capture = true;\n return false;\n },\n get passive() {\n support.passive = true;\n return false;\n },\n get once() {\n support.once = true;\n return false;\n },\n };\n // eslint-disable-next-line scanjs-rules/call_addEventListener\n document.addEventListener('test', null, options);\n document.removeEventListener('test', null, options);\n } catch {\n // ignored\n }\n\n return support;\n})();\n\n/**\n * Attach event listeners using options object (implementing browser fallbacks), easy cleanup\n *\n * @param {EventTarget} target - Target where the event will be attached\n * @param {string} type - Event type(s). Accepts multiple types separated by space\n * @param {EventHandler} listener - Handler function\n * @param {ListenOptions}[options] - Listener options\n * @param {boolean} [options.capture] - Capture event listener\n * @param {boolean} [options.passive] - Passive event listener\n * @param {boolean} [options.once] - Auto cleanup after event is fired for the first time\n * @param {boolean} [options.self] - Only trigger if the target of the event is itself\n * @param {Vue} [options.vm] - Auto cleanup when vue instance is destroyed\n * @param {Function} [options.onCleanup] - Callback function invoked after cleaning up\n * @return {Function} Cleanup function that removes the listener\n */\nexport function listen(target: EventTarget, type: string, listener: EventListener, options?: ListenOptions) {\n if (type.indexOf(' ') >= 0) {\n const cleanupBatch = type.split(' ').map(eventType => listen(target, eventType, listener, options));\n return () => cleanupBatch.forEach(cleanup => cleanup && cleanup());\n }\n\n let eventOptions: boolean | AddEventListenerOptions;\n let useNativeOnce = false;\n\n // Listener wrapper\n const eventListener = event => {\n if (options?.self && event.target !== target) {\n return;\n }\n try {\n listener(event);\n } finally {\n if (options?.once) {\n cleanup();\n }\n }\n };\n\n // Cleanup function\n const cleanup = () => {\n if (!useNativeOnce) {\n target.removeEventListener(type, eventListener, eventOptions);\n }\n options?.vm?.$off('hook:beforeDestroy', cleanup);\n options?.onCleanup?.();\n };\n\n // addEventListener options adjustments\n if (options?.capture) {\n eventOptions = optionsSupport.capture ? { capture: true } : true;\n }\n\n if (options?.passive && optionsSupport.passive) {\n eventOptions = { ...(eventOptions as AddEventListenerOptions), passive: true };\n }\n\n if (options?.once && optionsSupport.once) {\n // `self`, `vm` and `onCleanup` options forces to skip native `once`\n if (!options?.self && !options?.vm && !options?.onCleanup) {\n useNativeOnce = true;\n eventOptions = { ...(eventOptions as AddEventListenerOptions), once: true };\n }\n }\n\n // TODO: vue 3 uses old vue event emitter, do we need this?\n // https://v3-migration.vuejs.org/breaking-changes/events-api.html#event-bus\n // if (options?.vm) {\n // if (!(options.vm instanceof Vue)) {\n // throw new TypeError('options.vm is not a Vue component instance');\n // }\n // options.vm.$once('hook:beforeDestroy', cleanup);\n // }\n // eslint-disable-next-line scanjs-rules/call_addEventListener\n target.addEventListener(type, eventListener, eventOptions);\n return cleanup;\n}\n\n/**\n * Prevents the event from bubbling\n * @param {Event} event - Triggered event\n */\nexport const stopEventPropagation = (event: Event) => {\n if (event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n event.stopPropagation();\n }\n};\n"],"names":["support","options","listen","target","type","listener","cleanupBatch","eventType","cleanup","eventOptions","eventListener","event","stopEventPropagation"],"mappings":"CASwB,MAAM;AAC1B,QAAMA,IAAU;AAAA,IACZ,SAAS;AAAA,IACT,SAAS;AAAA,IACT,MAAM;AAAA,EACV;AAEI,MAAA;AAKA,UAAMC,IAAU;AAAA,MACZ,IAAI,UAAU;AACV,eAAAD,EAAQ,UAAU,IACX;AAAA,MACX;AAAA,MACA,IAAI,UAAU;AACV,eAAAA,EAAQ,UAAU,IACX;AAAA,MACX;AAAA,MACA,IAAI,OAAO;AACP,eAAAA,EAAQ,OAAO,IACR;AAAA,MAAA;AAAA,IAEf;AAES,aAAA,iBAAiB,QAAQ,MAAMC,CAAO,GACtC,SAAA,oBAAoB,QAAQ,MAAMA,CAAO;AAAA,EAAA,QAC9C;AAAA,EAAA;AAID,SAAAD;AACX,GAAG;AAiBI,SAASE,EAAOC,GAAqBC,GAAcC,GAAyBJ,GAAyB;AACxG,MAAIG,EAAK,QAAQ,GAAG,KAAK,GAAG;AACxB,UAAME,IAAeF,EAAK,MAAM,GAAG,EAAE,IAAI,CAAaG,MAAAL,EAAOC,GAAQI,GAAWF,CAAiB,CAAC;AAClG,WAAO,MAAMC,EAAa,QAAQ,CAAAE,MAAWA,KAAWA,GAAS;AAAA,EAAA;AAGjE,MAAAC;AAIJ,QAAMC,IAAgB,CAASC,MAAA;AAKvB,IAAAN,EAASM,CAAK;AAAA,EAMtB,GAGMH,IAAU,MAAM;AAEP,IAAAL,EAAA,oBAAoBC,GAAMM,GAAeD,CAAY;AAAA,EAIpE;AA4BO,SAAAN,EAAA,iBAAiBC,GAAMM,GAAeD,CAAY,GAClDD;AACX;AAMa,MAAAI,IAAuB,CAACD,MAAiB;AAClD,EAAIA,MACAA,EAAM,eAAe,GACrBA,EAAM,yBAAyB,GAC/BA,EAAM,gBAAgB;AAE9B;"}
@@ -3,7 +3,7 @@ import { B as a } from "./typography.hlOAxsEn.js";
3
3
  import { C as p } from "./cross-circle-fill.DTDtgLMf.js";
4
4
  import { u as n } from "./index.B6WW_F-J.js";
5
5
  import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
- import { B as _ } from "./info-icon.Bhka3oGh.js";
6
+ import { B as _ } from "./info-icon.DGrrXpIY.js";
7
7
  import "../assets/field-label.css";
8
8
  const c = {
9
9
  "en-US": {
@@ -118,4 +118,4 @@ export {
118
118
  S as E,
119
119
  E as F
120
120
  };
121
- //# sourceMappingURL=field-label.Auq-Pzho.js.map
121
+ //# sourceMappingURL=field-label.C3h8Q8Xd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-label.Auq-Pzho.js","sources":["../../src/components/internal/error-message/error-message.vue","../../src/components/internal/field-label/field-label.vue"],"sourcesContent":["<template>\n <bento-typography :id=\"$attrs.id\" class=\"b-error-message\" el=\"span\" aria-live=\"polite\">\n <div class=\"b-error-message__icon\">\n <cross-circle-icon :svg-title=\"t('error')\" />\n </div>\n {{ errorMessage }}\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import CrossCircleIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * An error message component should be used whenever it is necessary to add an error message to a component.\n * If adding to a form component, the proper accessibility measures should be taken when necessary\n * (ex. associating an element with this one using aria-describedby).\n\n * @example\n * import { ErrorMessage } from '@/components/internal/error-message';\n *\n * export default {\n * components: { ErrorMessage },\n * template: `\n * <error-message :error-message=\"errorMessage\" />\n * `\n * }\n */\n\n defineProps({\n /**\n * The rendered error message\n */\n errorMessage: {\n type: String,\n required: true,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n name: 'error-message',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./error-message.scss\" />\n","<template>\n <label class=\"b-field-label\" :class=\"conditionalClasses\">\n <bento-typography el=\"span\" stronger>\n <template v-if=\"label\">{{ label }}</template>\n <template v-else><slot></slot></template>\n </bento-typography>\n <bento-typography v-if=\"!!tooltipText\" el=\"span\" class=\"b-field-label__tooltip-wrapper\">\n <bento-info-icon :tooltip-text=\"tooltipText\" class=\"b-field-label__tooltip\" />\n </bento-typography>\n <bento-typography v-if=\"required\" class=\"b-field-label__requirement\" el=\"span\"\n >({{ t('required') }})</bento-typography\n >\n <bento-typography v-else-if=\"optional\" class=\"b-field-label__requirement\" el=\"span\"\n >({{ t('optional') }})</bento-typography\n >\n </label>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { computed } from 'vue';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n /**\n * Field label\n */\n label: {\n type: String,\n default: null,\n },\n /**\n * Sets the field as optional\n */\n optional: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the field as required\n */\n required: {\n type: Boolean,\n default: false,\n },\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: {\n type: String,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const conditionalClasses = computed(() => ({ 'b-field-label--condensed': props.condensed }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the labels for all field components\n\n * @example\n * import { FieldLabel } from '@/components/internal/field-label';\n *\n * export default {\n * components: { FieldLabel },\n * template: `\n * <field-label label=\"Label\" tooltip-text=\"Tooltip info\" required />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./field-label.scss\" />\n"],"names":["__default__$1","messages$1","t","useI18n","__default__","messages","conditionalClasses","computed","props"],"mappings":";;;;;;;;;;;;;;;;;GA+CIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;;;;AAPA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCwCAC,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBArBA,EAAA,GAAAH,EAAA,IAAAC,EAAA,GAEAG,IAAAC,EAAA,OAAA,EAAA,4BAAAC,EAAA,UAAA,EAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"field-label.C3h8Q8Xd.js","sources":["../../src/components/internal/error-message/error-message.vue","../../src/components/internal/field-label/field-label.vue"],"sourcesContent":["<template>\n <bento-typography :id=\"$attrs.id\" class=\"b-error-message\" el=\"span\" aria-live=\"polite\">\n <div class=\"b-error-message__icon\">\n <cross-circle-icon :svg-title=\"t('error')\" />\n </div>\n {{ errorMessage }}\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import CrossCircleIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * An error message component should be used whenever it is necessary to add an error message to a component.\n * If adding to a form component, the proper accessibility measures should be taken when necessary\n * (ex. associating an element with this one using aria-describedby).\n\n * @example\n * import { ErrorMessage } from '@/components/internal/error-message';\n *\n * export default {\n * components: { ErrorMessage },\n * template: `\n * <error-message :error-message=\"errorMessage\" />\n * `\n * }\n */\n\n defineProps({\n /**\n * The rendered error message\n */\n errorMessage: {\n type: String,\n required: true,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n name: 'error-message',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./error-message.scss\" />\n","<template>\n <label class=\"b-field-label\" :class=\"conditionalClasses\">\n <bento-typography el=\"span\" stronger>\n <template v-if=\"label\">{{ label }}</template>\n <template v-else><slot></slot></template>\n </bento-typography>\n <bento-typography v-if=\"!!tooltipText\" el=\"span\" class=\"b-field-label__tooltip-wrapper\">\n <bento-info-icon :tooltip-text=\"tooltipText\" class=\"b-field-label__tooltip\" />\n </bento-typography>\n <bento-typography v-if=\"required\" class=\"b-field-label__requirement\" el=\"span\"\n >({{ t('required') }})</bento-typography\n >\n <bento-typography v-else-if=\"optional\" class=\"b-field-label__requirement\" el=\"span\"\n >({{ t('optional') }})</bento-typography\n >\n </label>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { computed } from 'vue';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n /**\n * Field label\n */\n label: {\n type: String,\n default: null,\n },\n /**\n * Sets the field as optional\n */\n optional: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the field as required\n */\n required: {\n type: Boolean,\n default: false,\n },\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: {\n type: String,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const conditionalClasses = computed(() => ({ 'b-field-label--condensed': props.condensed }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the labels for all field components\n\n * @example\n * import { FieldLabel } from '@/components/internal/field-label';\n *\n * export default {\n * components: { FieldLabel },\n * template: `\n * <field-label label=\"Label\" tooltip-text=\"Tooltip info\" required />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./field-label.scss\" />\n"],"names":["__default__$1","messages$1","t","useI18n","__default__","messages","conditionalClasses","computed","props"],"mappings":";;;;;;;;;;;;;;;;;GA+CIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAErB;;;;;;;;;;;;AAPA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCwCAC,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBArBA,EAAA,GAAAH,EAAA,IAAAC,EAAA,GAEAG,IAAAC,EAAA,OAAA,EAAA,4BAAAC,EAAA,UAAA,EAAA;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, ref as h, onUnmounted as Va, onMounted as Ca, computed as r, watch as ta, reactive as ea, toRef as ia, nextTick as Ba } from "vue";
1
+ import { defineComponent as N, ref as h, onUnmounted as Va, onMounted as Ca, computed as m, watch as ta, reactive as ea, toRef as ia, nextTick as Ba } from "vue";
2
2
  /* empty css */
3
3
  import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
4
4
  import { W as ka } from "./warning-filled.CbJ1pcB2.js";
@@ -15,8 +15,8 @@ import { R as Pa } from "./refresh.arF7jP-l.js";
15
15
  import { B as Na } from "./button.CS_kdxYh.js";
16
16
  import { B as Wa } from "./link.D8qpqg3W.js";
17
17
  import { B as Ga } from "./loading-indicator.PxbRzshH.js";
18
- import { b as Ya } from "./tooltip.D3SDcRef.js";
19
- import { F as Xa, E as Ja } from "./field-label.Auq-Pzho.js";
18
+ import { b as Ya } from "./tooltip.Dt87KVh2.js";
19
+ import { F as Xa, E as Ja } from "./field-label.C3h8Q8Xd.js";
20
20
  import "../assets/file-uploader.css";
21
21
  let ma = 0;
22
22
  const Ka = {
@@ -67,8 +67,8 @@ function si(e, a) {
67
67
  o();
68
68
  }), Ca(() => {
69
69
  o(), i = new IntersectionObserver(
70
- (p) => {
71
- t.value = !p[0].isIntersecting;
70
+ (r) => {
71
+ t.value = !r[0].isIntersecting;
72
72
  },
73
73
  {
74
74
  root: a.value,
@@ -85,7 +85,7 @@ function Ea(e, a) {
85
85
  unit: ua[t]
86
86
  }).format(a / 1024 ** t);
87
87
  }
88
- var y = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(y || {}), x = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(x || {}), P = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(P || {}), d = /* @__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))(d || {});
88
+ var y = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(y || {}), x = /* @__PURE__ */ ((e) => (e.ERROR_SIZE = "error-size", e.ERROR_LOAD = "error-load", e.ERROR_DIMENSIONS = "error-dimensions", e.ERROR_TYPE = "error-type", e))(x || {}), P = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.DRAG_OVER = "drag-over", e.ERROR = "error", e.READONLY = "readonly", e))(P || {}), u = /* @__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))(u || {});
89
89
  const ci = [
90
90
  "application/msword",
91
91
  // .doc
@@ -136,7 +136,7 @@ const ci = [
136
136
  // .cab
137
137
  ];
138
138
  function ui(e) {
139
- return ri.includes(e.type) ? d.TABLE : e.type.startsWith("text/") || ci.includes(e.type) ? d.TEXT : e.type.startsWith("image/") ? d.IMAGE : e.type.startsWith("video/") ? d.VIDEO : e.type.startsWith("audio/") ? d.AUDIO : e.type === "application/pdf" ? d.PDF : di.includes(e.type) ? d.SLIDES : mi.includes(e.type) ? d.COMPRESSED : d.GENERIC;
139
+ return ri.includes(e.type) ? u.TABLE : e.type.startsWith("text/") || ci.includes(e.type) ? u.TEXT : e.type.startsWith("image/") ? u.IMAGE : e.type.startsWith("video/") ? u.VIDEO : e.type.startsWith("audio/") ? u.AUDIO : e.type === "application/pdf" ? u.PDF : di.includes(e.type) ? u.SLIDES : mi.includes(e.type) ? u.COMPRESSED : u.GENERIC;
140
140
  }
141
141
  function vi(e, a) {
142
142
  if (!a)
@@ -160,17 +160,17 @@ function fi(e, a, t) {
160
160
  o.state = y.ERROR, o.errors.push(x.ERROR_TYPE);
161
161
  return;
162
162
  }
163
- i.onload = (p) => {
164
- if (t && o.type === d.IMAGE) {
165
- const f = new Blob([p.target.result], { type: o.data.type }), s = URL.createObjectURL(f), m = new Image();
166
- m.onload = function() {
167
- (m.width > t.width || m.height > t.height) && (o.state = y.ERROR, o.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(s);
168
- }, m.onerror = function() {
163
+ i.onload = (r) => {
164
+ if (t && o.type === u.IMAGE) {
165
+ const p = new Blob([r.target.result], { type: o.data.type }), s = URL.createObjectURL(p), d = new Image();
166
+ d.onload = function() {
167
+ (d.width > t.width || d.height > t.height) && (o.state = y.ERROR, o.errors.push(x.ERROR_DIMENSIONS)), URL.revokeObjectURL(s);
168
+ }, d.onerror = function() {
169
169
  URL.revokeObjectURL(s);
170
- }, m.src = s;
170
+ }, d.src = s;
171
171
  }
172
- }, i.onprogress = (p) => {
173
- p.lengthComputable && (o.progress = p.loaded / p.total * 100);
172
+ }, i.onprogress = (r) => {
173
+ r.lengthComputable && (o.progress = r.loaded / r.total * 100);
174
174
  }, i.onloadend = () => {
175
175
  o.state !== y.ERROR && (o.state = y.SUCCESS), o.progress = null;
176
176
  }, i.onerror = () => {
@@ -339,28 +339,28 @@ var et = function() {
339
339
  null
340
340
  );
341
341
  const pt = ot.exports, lt = {
342
- [d.AUDIO]: it,
343
- [d.COMPRESSED]: Hi,
344
- [d.GENERIC]: _i,
345
- [d.IMAGE]: Pi,
346
- [d.PDF]: Fi,
347
- [d.SLIDES]: Ri,
348
- [d.TABLE]: pt,
349
- [d.TEXT]: Mi,
350
- [d.VIDEO]: Xi
342
+ [u.AUDIO]: it,
343
+ [u.COMPRESSED]: Hi,
344
+ [u.GENERIC]: _i,
345
+ [u.IMAGE]: Pi,
346
+ [u.PDF]: Fi,
347
+ [u.SLIDES]: Ri,
348
+ [u.TABLE]: pt,
349
+ [u.TEXT]: Mi,
350
+ [u.VIDEO]: Xi
351
351
  };
352
352
  function st(e) {
353
353
  return lt[e.type];
354
354
  }
355
355
  function ct(e) {
356
356
  switch (e.type) {
357
- case d.COMPRESSED:
358
- case d.GENERIC:
357
+ case u.COMPRESSED:
358
+ case u.GENERIC:
359
359
  return "grey";
360
- case d.PDF:
361
- case d.SLIDES:
360
+ case u.PDF:
361
+ case u.SLIDES:
362
362
  return "orange";
363
- case d.TEXT:
363
+ case u.TEXT:
364
364
  return "blue";
365
365
  default:
366
366
  return "green";
@@ -392,16 +392,17 @@ const rt = {
392
392
  ...dt,
393
393
  props: {
394
394
  file: null,
395
- supportedFileTypes: { default: null }
395
+ supportedFileTypes: { default: null },
396
+ readonly: { type: Boolean }
396
397
  },
397
398
  emits: ["cancel", "remove", "retry"],
398
399
  setup(e, { expose: a, emit: t }) {
399
- const i = e, o = 1200, { t: p, locale: f } = W(), s = h(null), m = h(null), u = h(null), C = w("file-errors-section"), B = w("cancel-file-button"), j = w("remove-file-button"), O = w("retry-file-button"), c = h(i.file.state === y.SUCCESS), T = r(() => URL.createObjectURL(i.file.data)), k = r(() => i.file.state === y.ERROR), H = r(() => i.file.errors.includes(x.ERROR_LOAD)), G = r(() => i.file.errors.includes(x.ERROR_SIZE)), Y = r(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), X = r(() => i.file.errors.includes(x.ERROR_TYPE)), z = r(() => i.file.state === y.LOADING), R = r(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), I = r(() => Ea(f.value, i.file.data.size)), L = h(), q = h(), F = si(L, q), J = r(() => ({
400
+ const i = e, o = 1200, { t: r, locale: p } = W(), s = h(null), d = h(null), v = h(null), C = w("file-errors-section"), B = w("cancel-file-button"), j = w("remove-file-button"), O = w("retry-file-button"), c = h(i.file.state === y.SUCCESS), T = m(() => URL.createObjectURL(i.file.data)), k = m(() => i.file.state === y.ERROR), H = m(() => i.file.errors.includes(x.ERROR_LOAD)), G = m(() => i.file.errors.includes(x.ERROR_SIZE)), Y = m(() => i.file.errors.includes(x.ERROR_DIMENSIONS)), X = m(() => i.file.errors.includes(x.ERROR_TYPE)), z = m(() => i.file.state === y.LOADING), R = m(() => i.file.progress && `(${i.file.progress.toFixed(0)}%)`), I = m(() => Ea(p.value, i.file.data.size)), L = h(), q = h(), F = si(L, q), J = m(() => ({
400
401
  "b-file-uploader-file-card--error": k.value
401
- })), S = r(() => ({
402
+ })), S = m(() => ({
402
403
  [`b-file-uploader-file-card__icon--${ct(i.file)}`]: c.value,
403
404
  "b-file-uploader-file-card__icon--error": k.value
404
- })), K = r(() => z.value ? Ga : k.value ? ka : c.value ? st(i.file) : Aa);
405
+ })), K = m(() => z.value ? Ga : k.value ? ka : c.value ? st(i.file) : Aa);
405
406
  ta(
406
407
  () => i.file.state,
407
408
  (Q) => {
@@ -413,27 +414,27 @@ const rt = {
413
414
  }
414
415
  );
415
416
  function M() {
416
- if (u.value) {
417
- u.value.$el.focus();
417
+ if (v.value) {
418
+ v.value.$el.focus();
418
419
  return;
419
420
  }
420
421
  if (s.value) {
421
422
  s.value.$el.focus();
422
423
  return;
423
424
  }
424
- if (m.value) {
425
- m.value.$el.focus();
425
+ if (d.value) {
426
+ d.value.$el.focus();
426
427
  return;
427
428
  }
428
429
  }
429
430
  return a({
430
431
  focus: M
431
- }), { __sfc: !0, ICON_TIMER: o, props: i, emit: t, t: p, locale: f, removeFileButtonRef: s, cancelFileButtonRef: m, retryFileButtonRef: u, fileErrorsSectionId: C, cancelFileButtonId: B, removeFileButtonId: j, retryFileButtonId: O, showFileIcon: c, downloadUrl: T, hasError: k, hasLoadError: H, hasSizeError: G, hasDimensionsError: Y, hasTypeError: X, isLoading: z, progressLabel: R, sizeLabel: I, fileNameRef: L, fileNameContainerRef: q, isFileNameTruncated: F, conditionalClasses: J, conditionalIconClasses: S, fileUploaderIcon: K, focus: M, isVue2: Ra, FileUploaderFileCardAnimation: li, BinIcon: Ua, CrossIcon: Za, RefreshIcon: Pa, vBentoTooltipDirective: Ya, BentoButton: Na, BentoLink: Wa, BentoTypography: na };
432
+ }), { __sfc: !0, ICON_TIMER: o, props: i, emit: t, t: r, locale: p, removeFileButtonRef: s, cancelFileButtonRef: d, retryFileButtonRef: v, fileErrorsSectionId: C, cancelFileButtonId: B, removeFileButtonId: j, retryFileButtonId: O, showFileIcon: c, downloadUrl: T, hasError: k, hasLoadError: H, hasSizeError: G, hasDimensionsError: Y, hasTypeError: X, isLoading: z, progressLabel: R, sizeLabel: I, fileNameRef: L, fileNameContainerRef: q, isFileNameTruncated: F, conditionalClasses: J, conditionalIconClasses: S, fileUploaderIcon: K, focus: M, isVue2: Ra, FileUploaderFileCardAnimation: li, BinIcon: Ua, CrossIcon: Za, RefreshIcon: Pa, vBentoTooltipDirective: Ya, BentoButton: Na, BentoLink: Wa, BentoTypography: na };
432
433
  }
433
434
  });
434
435
  var ut = function() {
435
436
  var a = this, t = a._self._c, i = a._self._setupProxy;
436
- return t("div", { staticClass: "b-file-uploader-file-card", class: i.conditionalClasses }, [t("div", { staticClass: "b-file-uploader-file-card__details" }, [t("div", { staticClass: "b-file-uploader-file-card__info" }, [t(i.FileUploaderFileCardAnimation, { attrs: { name: i.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": i.showFileIcon } }, [t(i.fileUploaderIcon, { key: JSON.stringify(i.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: i.conditionalIconClasses, attrs: { small: "", "aria-hidden": "true", "data-testid": "file-uploader-item-icon" } })], 1), t("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [t(i.BentoLink, { attrs: { "aria-hidden": "true", tabindex: "-1", download: a.file.data.name, to: i.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [t(i.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: i.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? t(i.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(i.progressLabel))]) : a.file.data.size ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(i.sizeLabel) + " ")]) : a._e()], 1), i.hasSizeError || i.hasDimensionsError || i.hasTypeError && a.supportedFileTypes ? t("div", { attrs: { id: i.fileErrorsSectionId, role: "alert" } }, [i.hasSizeError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileExceedsSizeLimit")) + " ")]) : a._e(), i.hasDimensionsError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), i.hasTypeError && a.supportedFileTypes ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1) : a._e()]), t("div", { staticClass: "b-file-uploader-file-card__actions" }, [i.hasLoadError ? t(i.BentoButton, { ref: "retryFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.retryFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
437
+ return t("div", { staticClass: "b-file-uploader-file-card", class: i.conditionalClasses }, [t("div", { staticClass: "b-file-uploader-file-card__details" }, [t("div", { staticClass: "b-file-uploader-file-card__info" }, [t(i.FileUploaderFileCardAnimation, { attrs: { name: i.isVue2 ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3", "show-file-icon": i.showFileIcon } }, [t(i.fileUploaderIcon, { key: JSON.stringify(i.fileUploaderIcon), tag: "component", staticClass: "b-file-uploader-file-card__icon", class: i.conditionalIconClasses, attrs: { small: "", "aria-hidden": "true", "data-testid": "file-uploader-item-icon" } })], 1), t("div", { ref: "fileNameContainerRef", staticClass: "b-file-uploader-file-card__file-name" }, [t(i.BentoLink, { attrs: { "aria-hidden": "true", tabindex: "-1", download: a.file.data.name, to: i.downloadUrl, "disable-typography": "", "is-not-routing": "", variant: "quiet" } }, [t(i.BentoTypography, { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive", value: i.isFileNameTruncated ? a.file.data.name : null, expression: "isFileNameTruncated ? file.data.name : null" }], ref: "fileNameRef", attrs: { stronger: "", el: "span" } }, [a._v(" " + a._s(a.file.data.name) + " ")])], 1)], 1), a.file.progress ? t(i.BentoTypography, { attrs: { el: "span" } }, [a._v(a._s(i.progressLabel))]) : a.file.data.size ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__file-size", attrs: { "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(i.sizeLabel) + " ")]) : a._e()], 1), i.hasSizeError || i.hasDimensionsError || i.hasTypeError && a.supportedFileTypes ? t("div", { attrs: { id: i.fileErrorsSectionId, role: "alert" } }, [i.hasSizeError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileExceedsSizeLimit")) + " ")]) : a._e(), i.hasDimensionsError ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("imageDimensionsExceedLimits")) + " ")]) : a._e(), i.hasTypeError && a.supportedFileTypes ? t(i.BentoTypography, { staticClass: "b-file-uploader-file-card__error-message" }, [a._v(" " + a._s(i.t("fileTypeMustBe", { list: a.supportedFileTypes })) + " ")]) : a._e()], 1) : a._e()]), a.readonly ? a._e() : t("div", { staticClass: "b-file-uploader-file-card__actions" }, [i.hasLoadError ? t(i.BentoButton, { ref: "retryFileButtonRef", attrs: { "aria-labelledby": `${i.fileErrorsSectionId} ${i.retryFileButtonId}`, variant: "tertiary" }, on: { click: function(o) {
437
438
  return i.emit("retry");
438
439
  } }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
439
440
  return [t(i.RefreshIcon, { attrs: { id: i.retryFileButtonId, "svg-title": `${i.t("retry")} - ${a.file.data.name} ` } })];
@@ -445,14 +446,14 @@ var ut = function() {
445
446
  return i.emit("remove");
446
447
  } }, scopedSlots: a._u([{ key: "iconLeft", fn: function() {
447
448
  return [t(i.BinIcon, { attrs: { id: i.removeFileButtonId, "svg-title": `${i.t("remove")} - ${a.file.data.name}` } })];
448
- }, proxy: !0 }]) })], 1)]);
449
+ }, proxy: !0 }], null, !1, 3607204026) })], 1)]);
449
450
  }, vt = [], ft = /* @__PURE__ */ g(
450
451
  mt,
451
452
  ut,
452
453
  vt,
453
454
  !1,
454
455
  null,
455
- "7ab6dd6d"
456
+ "d03f417e"
456
457
  );
457
458
  const xt = ft.exports, gt = {
458
459
  "en-US": {
@@ -477,24 +478,24 @@ const xt = ft.exports, gt = {
477
478
  supportedFileTypes: { default: null }
478
479
  },
479
480
  setup(e) {
480
- const a = e, { t, tc: i, n: o, locale: p } = W(), f = r(() => ({
481
+ const a = e, { t, tc: i, n: o, locale: r } = W(), p = m(() => ({
481
482
  "b-file-uploader-restrictions--condensed": a.condensed,
482
483
  "b-file-uploader-restrictions--disabled": a.disabled
483
484
  }));
484
- function s(u) {
485
+ function s(v) {
485
486
  return {
486
- "b-file-uploader-restrictions--error": u
487
+ "b-file-uploader-restrictions--error": v
487
488
  };
488
489
  }
489
- const m = r(() => {
490
+ const d = m(() => {
490
491
  if (!a.maxDimensions)
491
492
  return null;
492
493
  const {
493
- value: { width: u, height: C }
494
+ value: { width: v, height: C }
494
495
  } = a.maxDimensions;
495
- return u && C ? t("maxImageDimensions", { width: o(u), height: o(C) }) : u ? t("maxImageWidth", { width: o(u) }) : C ? t("maxImageHeight", { height: o(C) }) : null;
496
+ return v && C ? t("maxImageDimensions", { width: o(v), height: o(C) }) : v ? t("maxImageWidth", { width: o(v) }) : C ? t("maxImageHeight", { height: o(C) }) : null;
496
497
  });
497
- return { __sfc: !0, props: a, t, tc: i, n: o, locale: p, conditionalClasses: f, setRestrictionErrorClass: s, maxDimensionsLabel: m, BentoTypography: na, formatFileSize: Ea };
498
+ return { __sfc: !0, props: a, t, tc: i, n: o, locale: r, conditionalClasses: p, setRestrictionErrorClass: s, maxDimensionsLabel: d, BentoTypography: na, formatFileSize: Ea };
498
499
  }
499
500
  });
500
501
  var _t = function() {
@@ -1575,15 +1576,15 @@ class kt {
1575
1576
  define(a, t = !1) {
1576
1577
  for (let [i, o] of Object.entries(a)) {
1577
1578
  i = i.toLowerCase(), o = o.map((s) => s.toLowerCase()), _(this, E, "f").has(i) || _(this, E, "f").set(i, /* @__PURE__ */ new Set());
1578
- const p = _(this, E, "f").get(i);
1579
- let f = !0;
1579
+ const r = _(this, E, "f").get(i);
1580
+ let p = !0;
1580
1581
  for (let s of o) {
1581
- const m = s.startsWith("*");
1582
- if (s = m ? s.slice(1) : s, p == null || p.add(s), f && _(this, V, "f").set(i, s), f = !1, m)
1582
+ const d = s.startsWith("*");
1583
+ if (s = d ? s.slice(1) : s, r == null || r.add(s), p && _(this, V, "f").set(i, s), p = !1, d)
1583
1584
  continue;
1584
- const u = _(this, $, "f").get(s);
1585
- if (u && u != i && !t)
1586
- throw new Error(`"${i} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);
1585
+ const v = _(this, $, "f").get(s);
1586
+ if (v && v != i && !t)
1587
+ throw new Error(`"${i} -> ${s}" conflicts with "${v} -> ${s}". Pass \`force=true\` to override this definition.`);
1587
1588
  _(this, $, "f").set(s, i);
1588
1589
  }
1589
1590
  }
@@ -1626,6 +1627,7 @@ const Ia = new kt(za, ja)._freeze(), Rt = {
1626
1627
  dropFiles: "Drop file to upload | Drop files to upload",
1627
1628
  fileExceedsSizeLimit: "File exceeds size limit",
1628
1629
  imageFiles: "image files",
1630
+ noFilesUploaded: "No files uploaded",
1629
1631
  tooManyFiles: "Too many files",
1630
1632
  videoFiles: "video files",
1631
1633
  youHaveExceededTheMaximum: "You have exceeded the maximum limit of {count} files. Please remove some files before proceeding."
@@ -1636,11 +1638,11 @@ function Et(e) {
1636
1638
  }
1637
1639
  function jt(e) {
1638
1640
  const { locale: a, t } = W();
1639
- return { supportedFileTypeList: r(() => {
1641
+ return { supportedFileTypeList: m(() => {
1640
1642
  const o = new Intl.ListFormat(a.value, { style: "short", type: "unit" });
1641
1643
  return e != null && e.value ? o.format(
1642
- e.value.split(",").map((p) => {
1643
- switch (p.trim()) {
1644
+ e.value.split(",").map((r) => {
1645
+ switch (r.trim()) {
1644
1646
  case "audio/*":
1645
1647
  return t("audioFiles");
1646
1648
  case "image/*":
@@ -1648,7 +1650,7 @@ function jt(e) {
1648
1650
  case "video/*":
1649
1651
  return t("videoFiles");
1650
1652
  default:
1651
- return Et(p);
1653
+ return Et(r);
1652
1654
  }
1653
1655
  })
1654
1656
  ) : null;
@@ -1665,27 +1667,27 @@ function It({ maxCount: e, accept: a }) {
1665
1667
  }), i = ea({
1666
1668
  dragging: !1,
1667
1669
  error: !1
1668
- }), o = r(() => a.value ? a.value.split(",").map((m) => zt(m.trim().toLocaleLowerCase())) : void 0);
1669
- function p() {
1670
+ }), o = m(() => a.value ? a.value.split(",").map((d) => zt(d.trim().toLocaleLowerCase())) : void 0);
1671
+ function r() {
1670
1672
  i.dragging = !1, i.error = !1, t.invalidTypes = !1, t.partiallyInvalidTypes = !1, t.maxCountOverflow = !1;
1671
1673
  }
1672
- function f(s, m) {
1673
- if (i.dragging = !0, (!m.dataTransfer.types.includes("Files") || s > e.value) && (t.maxCountOverflow = !0, i.error = !0), !o.value)
1674
+ function p(s, d) {
1675
+ if (i.dragging = !0, (!d.dataTransfer.types.includes("Files") || s > e.value) && (t.maxCountOverflow = !0, i.error = !0), !o.value)
1674
1676
  return;
1675
- let u = 0;
1676
- for (const C of m.dataTransfer.items)
1677
- o.value.includes(C.type) && u++;
1678
- if (u === 0) {
1677
+ let v = 0;
1678
+ for (const C of d.dataTransfer.items)
1679
+ o.value.includes(C.type) && v++;
1680
+ if (v === 0) {
1679
1681
  i.error = !0, t.invalidTypes = !0;
1680
1682
  return;
1681
1683
  }
1682
- !t.invalidTypes && u !== m.dataTransfer.items.length && (i.error = !0, t.partiallyInvalidTypes = !0);
1684
+ !t.invalidTypes && v !== d.dataTransfer.items.length && (i.error = !0, t.partiallyInvalidTypes = !0);
1683
1685
  }
1684
1686
  return {
1685
1687
  dragState: i,
1686
1688
  dragErrors: t,
1687
- resetDragState: p,
1688
- onDragEnterValidations: f
1689
+ resetDragState: r,
1690
+ onDragEnterValidations: p
1689
1691
  };
1690
1692
  }
1691
1693
  const Ft = {
@@ -1699,6 +1701,7 @@ const Ft = {
1699
1701
  condensed: { type: Boolean },
1700
1702
  description: { default: null },
1701
1703
  disabled: { type: Boolean },
1704
+ readonly: { type: Boolean },
1702
1705
  errorMessage: { default: null },
1703
1706
  label: null,
1704
1707
  maxCount: { default: 1 },
@@ -1711,7 +1714,7 @@ const Ft = {
1711
1714
  },
1712
1715
  emits: ["change", "input", "update:model-value", "error:upload"],
1713
1716
  setup(e, { emit: a }) {
1714
- const t = e, { t: i, tc: o, n: p } = W(), { emitValue: f } = qa(a);
1717
+ const t = e, { t: i, tc: o, n: r } = W(), { emitValue: p } = qa(a);
1715
1718
  function s(n) {
1716
1719
  return !!n && typeof n.length == "number" && typeof n.item == "function";
1717
1720
  }
@@ -1722,14 +1725,14 @@ const Ft = {
1722
1725
  "2.0.0"
1723
1726
  );
1724
1727
  });
1725
- const { supportedFileTypeList: m } = jt(ia(t, "accept")), u = w("browse-button"), C = w("custom-text"), B = w("drop-files-text"), j = w("comma-text"), O = w("file-uploader-restrictions"), c = h(null), T = h([]), k = h(null), H = h(null), G = w("input"), Y = w("input-error"), X = r(() => {
1726
- const n = t.condensed ? "" : `${B} ${j}`, l = t.description ? `${C} ${j}` : "", v = `${O} ${j}`;
1727
- return `${n} ${l} ${v} ${u}`;
1728
+ const { supportedFileTypeList: d } = jt(ia(t, "accept")), v = w("browse-button"), C = w("custom-text"), B = w("drop-files-text"), j = w("comma-text"), O = w("file-uploader-restrictions"), c = h(null), T = h([]), k = h(null), H = h(null), G = w("input"), Y = w("input-error"), X = m(() => {
1729
+ const n = t.condensed ? "" : `${B} ${j}`, l = t.description ? `${C} ${j}` : "", f = `${O} ${j}`;
1730
+ return `${n} ${l} ${f} ${v}`;
1728
1731
  }), { dragState: z, dragErrors: R, resetDragState: I, onDragEnterValidations: L } = It({
1729
1732
  accept: ia(t, "accept"),
1730
1733
  maxCount: ia(t, "maxCount")
1731
- }), q = r(() => {
1732
- var n, l, v;
1734
+ }), q = m(() => {
1735
+ var n, l, f;
1733
1736
  return {
1734
1737
  condensed: t.condensed,
1735
1738
  disabled: t.disabled,
@@ -1745,20 +1748,20 @@ const Ft = {
1745
1748
  value: t.maxSize,
1746
1749
  error: (l = c.value) == null ? void 0 : l.some((b) => b.errors.includes(x.ERROR_SIZE))
1747
1750
  } : null,
1748
- supportedFileTypes: m.value ? {
1749
- value: m.value,
1750
- error: R.invalidTypes || R.partiallyInvalidTypes || ((v = c.value) == null ? void 0 : v.some((b) => b.errors.includes(x.ERROR_TYPE)))
1751
+ supportedFileTypes: d.value ? {
1752
+ value: d.value,
1753
+ error: R.invalidTypes || R.partiallyInvalidTypes || ((f = c.value) == null ? void 0 : f.some((b) => b.errors.includes(x.ERROR_TYPE)))
1751
1754
  } : null
1752
1755
  };
1753
- }), F = h(), J = r(() => ({
1756
+ }), F = h(), J = m(() => ({
1754
1757
  [`b-file-uploader--${P.DISABLED}`]: t.disabled,
1755
1758
  [`b-file-uploader--${P.DRAG_OVER}`]: z.dragging,
1756
1759
  [`b-file-uploader--${P.ERROR}`]: oa.value,
1757
1760
  "b-file-uploader--condensed": t.condensed
1758
- })), S = r(() => t.maxCount > 1), K = r(() => {
1761
+ })), S = m(() => t.maxCount > 1), K = m(() => {
1759
1762
  var n;
1760
- return t.maxCount && ((n = c.value) == null ? void 0 : n.length) >= t.maxCount;
1761
- }), M = r(() => {
1763
+ return t.maxCount && ((n = c.value) == null ? void 0 : n.length) >= t.maxCount || t.readonly;
1764
+ }), M = m(() => {
1762
1765
  var n;
1763
1766
  return (n = c.value) == null ? void 0 : n.some((l) => l.state === "loading");
1764
1767
  }), Q = (n) => (l) => {
@@ -1768,14 +1771,14 @@ const Ft = {
1768
1771
  if (n) {
1769
1772
  ca(n), ra(n);
1770
1773
  const l = da(n);
1771
- a("change", l), f(l);
1774
+ a("change", l), p(l);
1772
1775
  } else
1773
- a("change", void 0), f(void 0);
1776
+ a("change", void 0), p(void 0);
1774
1777
  }
1775
- const oa = r(() => !!t.errorMessage || z.error), pa = r(() => {
1778
+ const oa = m(() => !!t.errorMessage || z.error), pa = m(() => {
1776
1779
  var n;
1777
1780
  return ((n = c.value) == null ? void 0 : n.length) > t.maxCount;
1778
- }), la = h(!1), sa = r(() => {
1781
+ }), la = h(!1), sa = m(() => {
1779
1782
  var n;
1780
1783
  return (n = c.value) == null ? void 0 : n.some((l) => l.state === "error");
1781
1784
  });
@@ -1816,11 +1819,11 @@ const Ft = {
1816
1819
  S.value ? c.value = [...c.value || [], ...Array.from(n).map((l) => A(l))] : (c.value = [A(n[0])], await U()), D(c.value);
1817
1820
  }
1818
1821
  function Ta(n) {
1819
- var v, b;
1822
+ var f, b;
1820
1823
  if (t.disabled)
1821
1824
  return;
1822
1825
  F.value = n.target;
1823
- const l = (((v = n.dataTransfer.items) == null ? void 0 : v.length) ?? 0) + (((b = c.value) == null ? void 0 : b.length) ?? 0);
1826
+ const l = (((f = n.dataTransfer.items) == null ? void 0 : f.length) ?? 0) + (((b = c.value) == null ? void 0 : b.length) ?? 0);
1824
1827
  L(l, n);
1825
1828
  }
1826
1829
  function Z() {
@@ -1844,8 +1847,8 @@ const Ft = {
1844
1847
  () => t.modelValue,
1845
1848
  (n) => {
1846
1849
  if (n && s(n)) {
1847
- const l = n, v = Array.from(l);
1848
- c.value = v.map((b) => A(b));
1850
+ const f = Array.from(n);
1851
+ c.value = f.map((b) => A(b));
1849
1852
  } else !n && c.value && (c.value = null);
1850
1853
  },
1851
1854
  { immediate: !0 }
@@ -1856,26 +1859,26 @@ const Ft = {
1856
1859
  }
1857
1860
  function ra(n) {
1858
1861
  t.maxSize && n.forEach((l) => {
1859
- const v = l;
1860
- v.data.size > t.maxSize && (v.state = y.ERROR, v.errors.push(x.ERROR_SIZE));
1862
+ const f = l;
1863
+ f.data.size > t.maxSize && (f.state = y.ERROR, f.errors.push(x.ERROR_SIZE));
1861
1864
  });
1862
1865
  }
1863
1866
  function da(n) {
1864
1867
  const l = n.filter(
1865
- ({ errors: v }) => !v.includes(x.ERROR_LOAD) && !v.includes(x.ERROR_SIZE)
1868
+ ({ errors: f }) => !f.includes(x.ERROR_LOAD) && !f.includes(x.ERROR_SIZE)
1866
1869
  );
1867
1870
  if (l.length) {
1868
- const v = new DataTransfer();
1871
+ const f = new DataTransfer();
1869
1872
  return l.forEach(({ data: b, id: Mt }) => {
1870
- v.items.add(b);
1871
- }), v.files;
1873
+ f.items.add(b);
1874
+ }), f.files;
1872
1875
  }
1873
1876
  }
1874
- return { __sfc: !0, t: i, tc: o, n: p, emit: a, props: t, emitValue: f, isFileList: s, supportedFileTypeList: m, browseFilesButtonId: u, customTextId: C, dropFilesTextId: B, commaTextId: j, fileUploaderRestrictionsId: O, files: c, fileCardRefs: T, inputRef: k, dropAreaRef: H, inputFieldId: G, errorId: Y, fileUploadAriaLabelledBy: X, dragState: z, dragErrors: R, resetDragState: I, onDragEnterValidations: L, fileUploadRestrictionsProps: q, enterTarget: F, conditionalClasses: J, isMultiple: S, hideArea: K, loadingStateExists: M, registerFileCardRef: Q, emitUpdate: D, hasError: oa, maxFileCountError: pa, maxFileError: la, hasRestrictionError: sa, resetFocus: U, removeFile: Fa, processFile: A, onInputClick: $a, onFileInput: aa, onDragEnter: Ta, resetEnterTarget: Z, onDragLeave: La, onDragOver: Sa, onDrop: Ma, onInputChange: Da, verifyFileCount: ca, verifyFileSize: ra, convertToFileList: da, UploadIcon: ti, WarningFilledIcon: ka, BentoAlert: Oa, BentoTypography: na, ErrorMessage: Ja, FieldLabel: Xa, FileUploaderFileCard: xt, FileUploaderRestrictions: Ct };
1877
+ return { __sfc: !0, t: i, tc: o, n: r, emit: a, props: t, emitValue: p, isFileList: s, supportedFileTypeList: d, browseFilesButtonId: v, customTextId: C, dropFilesTextId: B, commaTextId: j, fileUploaderRestrictionsId: O, files: c, fileCardRefs: T, inputRef: k, dropAreaRef: H, inputFieldId: G, errorId: Y, fileUploadAriaLabelledBy: X, dragState: z, dragErrors: R, resetDragState: I, onDragEnterValidations: L, fileUploadRestrictionsProps: q, enterTarget: F, conditionalClasses: J, isMultiple: S, hideArea: K, loadingStateExists: M, registerFileCardRef: Q, emitUpdate: D, hasError: oa, maxFileCountError: pa, maxFileError: la, hasRestrictionError: sa, resetFocus: U, removeFile: Fa, processFile: A, onInputClick: $a, onFileInput: aa, onDragEnter: Ta, resetEnterTarget: Z, onDragLeave: La, onDragOver: Sa, onDrop: Ma, onInputChange: Da, verifyFileCount: ca, verifyFileSize: ra, convertToFileList: da, UploadIcon: ti, WarningFilledIcon: ka, BentoAlert: Oa, BentoTypography: na, ErrorMessage: Ja, FieldLabel: Xa, FileUploaderFileCard: xt, FileUploaderRestrictions: Ct };
1875
1878
  }
1876
1879
  });
1877
1880
  var Tt = function() {
1878
- var o;
1881
+ var o, r;
1879
1882
  var a = this, t = a._self._c, i = a._self._setupProxy;
1880
1883
  return t("div", { staticClass: "b-file-uploader", class: i.conditionalClasses }, [t(i.FieldLabel, { staticClass: "b-file-uploader__label", attrs: { for: i.inputFieldId, label: a.label, optional: a.optional, required: a.required, "tooltip-text": a.tooltipText } }), t("input", { ref: "inputRef", staticClass: "b-file-uploader__input", attrs: { id: i.inputFieldId, "aria-hidden": "true", type: "file", tabindex: "-1", "data-testid": "input", accept: a.accept, disabled: a.disabled, multiple: i.isMultiple }, on: { change: i.onInputChange, click: i.onInputClick } }), t("span", { staticClass: "b-file-uploader__invisible-comma", attrs: { id: i.commaTextId, "aria-hidden": "true" } }, [a._v(" , ")]), i.hideArea ? a._e() : t("div", { ref: "dropAreaRef", staticClass: "b-file-uploader__area", attrs: { "aria-labelledby": i.fileUploadAriaLabelledBy, role: "button", tabindex: a.disabled ? -1 : 0 }, on: { click: function(p) {
1881
1884
  return i.inputRef.click();
@@ -1891,23 +1894,23 @@ var Tt = function() {
1891
1894
  return !p.type.indexOf("key") && a._k(p.keyCode, "space", 32, p.key, [" ", "Spacebar"]) ? null : (p.preventDefault(), i.inputRef.click());
1892
1895
  }] } }, [t("div", { staticClass: "b-file-uploader__icon", attrs: { "aria-hidden": "true" } }, [i.hasError ? t(i.WarningFilledIcon) : t(i.UploadIcon)], 1), a.condensed ? a._e() : [t(i.BentoTypography, { staticClass: "b-file-uploader__title", attrs: { id: i.dropFilesTextId, el: "span", strongest: "" } }, [a._v(" " + a._s(i.tc("dropFiles", a.maxCount)) + " ")]), a.description ? t(i.BentoTypography, { staticClass: "b-file-uploader__description", attrs: { id: i.customTextId, el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), t(i.FileUploaderRestrictions, a._b({ attrs: { id: i.fileUploaderRestrictionsId } }, "file-uploader-restrictions", i.fileUploadRestrictionsProps, !1))], t(i.BentoTypography, { staticClass: "b-file-uploader__button", attrs: { id: i.browseFilesButtonId, stronger: "" } }, [a._v(" " + a._s(i.t("browseFiles")) + " ")])], 2), i.hasError && a.errorMessage ? t(i.ErrorMessage, { staticClass: "b-file-uploader__error-message", attrs: { id: i.errorId, "error-message": a.errorMessage } }) : a._e(), a.condensed && a.description ? t(i.BentoTypography, { staticClass: "b-file-uploader__description b-file-uploader__description--condensed", attrs: { id: i.customTextId, "aria-hidden": "true", el: "span" } }, [a._v(" " + a._s(a.description) + " ")]) : a._e(), a.condensed ? t(i.FileUploaderRestrictions, a._b({ attrs: { id: i.fileUploaderRestrictionsId } }, "file-uploader-restrictions", i.fileUploadRestrictionsProps, !1)) : a._e(), i.maxFileCountError ? t(i.BentoAlert, { attrs: { type: "critical" }, scopedSlots: a._u([{ key: "description", fn: function() {
1893
1896
  return [a._v(" " + a._s(i.t("youHaveExceededTheMaximum", { count: i.n(i.props.maxCount) })) + " ")];
1894
- }, proxy: !0 }], null, !1, 2252760379) }, [a._v(" " + a._s(i.t("tooManyFiles")) + " ")]) : a._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: (o = i.files) == null ? void 0 : o.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(i.files, function(p, f) {
1895
- return t(i.FileUploaderFileCard, { key: p.id, ref: i.registerFileCardRef(f), refInFor: !0, attrs: { file: p, "supported-file-types": i.supportedFileTypeList }, on: { cancel: function(s) {
1897
+ }, proxy: !0 }], null, !1, 2252760379) }, [a._v(" " + a._s(i.t("tooManyFiles")) + " ")]) : a._e(), t("div", { directives: [{ name: "show", rawName: "v-show", value: (o = i.files) == null ? void 0 : o.length, expression: "files?.length" }], staticClass: "b-file-uploader__files" }, a._l(i.files, function(p, s) {
1898
+ return t(i.FileUploaderFileCard, { key: p.id, ref: i.registerFileCardRef(s), refInFor: !0, attrs: { file: p, "supported-file-types": i.supportedFileTypeList, readonly: a.readonly }, on: { cancel: function(d) {
1896
1899
  return i.removeFile(p);
1897
- }, remove: function(s) {
1900
+ }, remove: function(d) {
1898
1901
  return i.removeFile(p);
1899
1902
  } } });
1900
- }), 1)], 1);
1903
+ }), 1), !((r = i.files) != null && r.length) && a.readonly ? t(i.BentoTypography, { staticClass: "b-file-uploader__no-files", attrs: { wide: "" } }, [a._v(a._s(i.t("noFilesUploaded")))]) : a._e()], 1);
1901
1904
  }, Lt = [], St = /* @__PURE__ */ g(
1902
1905
  $t,
1903
1906
  Tt,
1904
1907
  Lt,
1905
1908
  !1,
1906
1909
  null,
1907
- "a851453d"
1910
+ "346f6365"
1908
1911
  );
1909
1912
  const ie = St.exports;
1910
1913
  export {
1911
1914
  ie as f
1912
1915
  };
1913
- //# sourceMappingURL=file-uploader.DsvADlNb.js.map
1916
+ //# sourceMappingURL=file-uploader.CK6dhx8T.js.map