@adyen/bento-vue2 1.83.0 → 1.84.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 (408) hide show
  1. package/README.md +5 -5
  2. package/dist/@types/index.d.ts +1299 -1235
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/ai-button.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/avatar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions-with-menu.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/calendar.css +1 -1
  15. package/dist/assets/card.css +1 -1
  16. package/dist/assets/checkbox-group.css +1 -1
  17. package/dist/assets/checkbox-input.css +1 -1
  18. package/dist/assets/checkbox.css +1 -1
  19. package/dist/assets/chip.css +1 -1
  20. package/dist/assets/code-snippet.css +1 -1
  21. package/dist/assets/controls-group.css +1 -1
  22. package/dist/assets/country.css +1 -1
  23. package/dist/assets/currency.css +1 -1
  24. package/dist/assets/dashboard-section.css +1 -1
  25. package/dist/assets/dashed-underline.css +1 -1
  26. package/dist/assets/data-grid-template.css +1 -1
  27. package/dist/assets/data-grid.css +1 -1
  28. package/dist/assets/date-picker.css +1 -1
  29. package/dist/assets/date-range-picker.css +1 -1
  30. package/dist/assets/date.css +1 -1
  31. package/dist/assets/dialog-page.css +1 -1
  32. package/dist/assets/divider.css +1 -1
  33. package/dist/assets/dropdown-default-textbox.css +1 -1
  34. package/dist/assets/dropdown-tag.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/empty-state.css +1 -1
  37. package/dist/assets/field-label.css +1 -1
  38. package/dist/assets/file-uploader.css +1 -1
  39. package/dist/assets/filter-bar.css +1 -1
  40. package/dist/assets/fixed-scroller.css +1 -1
  41. package/dist/assets/footer-actions.css +1 -1
  42. package/dist/assets/form-layout-title.css +1 -1
  43. package/dist/assets/grid-layout.css +1 -1
  44. package/dist/assets/header-meta.css +1 -1
  45. package/dist/assets/header-with-views.css +1 -1
  46. package/dist/assets/header.css +1 -1
  47. package/dist/assets/index.css +1 -1
  48. package/dist/assets/info-icon.css +1 -1
  49. package/dist/assets/input-field-password.css +1 -1
  50. package/dist/assets/input-field.css +1 -1
  51. package/dist/assets/inspector.css +1 -1
  52. package/dist/assets/layout-row.css +1 -1
  53. package/dist/assets/link.css +1 -1
  54. package/dist/assets/listbox-option-tag.css +1 -1
  55. package/dist/assets/loading-indicator.css +1 -1
  56. package/dist/assets/modal-fullscreen.css +1 -1
  57. package/dist/assets/pagination.css +1 -1
  58. package/dist/assets/payment-method.css +1 -1
  59. package/dist/assets/popper-container.css +1 -1
  60. package/dist/assets/promo-banner.css +1 -1
  61. package/dist/assets/radio-group.css +1 -1
  62. package/dist/assets/radio-input.css +1 -1
  63. package/dist/assets/rich-text-editor.css +1 -1
  64. package/dist/assets/secondary-nav.css +1 -1
  65. package/dist/assets/segmented-control.css +1 -1
  66. package/dist/assets/selection-card-group.css +1 -1
  67. package/dist/assets/sidepanel.css +1 -1
  68. package/dist/assets/status.css +1 -1
  69. package/dist/assets/step.css +1 -1
  70. package/dist/assets/structured-list-item.css +1 -1
  71. package/dist/assets/summary-grid.css +1 -1
  72. package/dist/assets/tab.css +1 -1
  73. package/dist/assets/tag.css +1 -1
  74. package/dist/assets/textarea.css +1 -1
  75. package/dist/assets/timeline-item.css +1 -1
  76. package/dist/assets/toast.css +1 -1
  77. package/dist/assets/toggle.css +1 -1
  78. package/dist/assets/tooltip.css +1 -1
  79. package/dist/assets/tutorial.css +1 -1
  80. package/dist/assets/use-cached-selected-values.css +1 -1
  81. package/dist/button.js +3 -3
  82. package/dist/card.js +1 -1
  83. package/dist/checkbox.js +2 -2
  84. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  85. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  86. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  87. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  88. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  89. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  90. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  91. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  92. package/dist/chunks/accordion-item.DeV8s0oW.js.map +1 -1
  93. package/dist/chunks/{action-bar.C2GnRugW.js → action-bar.y4tcdk7R.js} +8 -6
  94. package/dist/chunks/{action-bar.C2GnRugW.js.map → action-bar.y4tcdk7R.js.map} +1 -1
  95. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  96. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  97. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  98. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  99. package/dist/chunks/{ai-button.C9Uc6vBY.js → ai-button.BEy4Gly-.js} +2 -2
  100. package/dist/chunks/{ai-button.C9Uc6vBY.js.map → ai-button.BEy4Gly-.js.map} +1 -1
  101. package/dist/chunks/{alert.BlJBrD8c.js → alert.B3Pdp02a.js} +29 -21
  102. package/dist/chunks/{alert.BlJBrD8c.js.map → alert.B3Pdp02a.js.map} +1 -1
  103. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  104. package/dist/chunks/avatar.CUCH3CTc.js.map +1 -1
  105. package/dist/chunks/base-button.IN4bpcds.js.map +1 -1
  106. package/dist/chunks/{base-modal.L39wmqVD.js → base-modal.KYkLKswF.js} +20 -18
  107. package/dist/chunks/{base-modal.L39wmqVD.js.map → base-modal.KYkLKswF.js.map} +1 -1
  108. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js → button-actions-with-menu.B5mKwc-F.js} +2 -2
  109. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js.map → button-actions-with-menu.B5mKwc-F.js.map} +1 -1
  110. package/dist/chunks/{button-actions.BWVq6OZQ.js → button-actions.D9n7MxWe.js} +270 -239
  111. package/dist/chunks/{button-actions.BWVq6OZQ.js.map → button-actions.D9n7MxWe.js.map} +1 -1
  112. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  113. package/dist/chunks/{button.C5GvPqe5.js → button.DIU6m9wD.js} +2 -2
  114. package/dist/chunks/{button.C5GvPqe5.js.map → button.DIU6m9wD.js.map} +1 -1
  115. package/dist/chunks/calendar.C8DpZ4Sr.js +1101 -0
  116. package/dist/chunks/calendar.C8DpZ4Sr.js.map +1 -0
  117. package/dist/chunks/{card.CktheSva.js → card.CLX0RGG6.js} +2 -2
  118. package/dist/chunks/{card.CktheSva.js.map → card.CLX0RGG6.js.map} +1 -1
  119. package/dist/chunks/{checkbox-group.DKkaWwMI.js → checkbox-group.BCnhjQie.js} +4 -4
  120. package/dist/chunks/{checkbox-group.DKkaWwMI.js.map → checkbox-group.BCnhjQie.js.map} +1 -1
  121. package/dist/chunks/{checkbox-input.B0NsfSNR.js → checkbox-input.08E9BNeF.js} +45 -40
  122. package/dist/chunks/checkbox-input.08E9BNeF.js.map +1 -0
  123. package/dist/chunks/{checkbox.B_W1TGP2.js → checkbox.CU5ierOq.js} +16 -16
  124. package/dist/chunks/{checkbox.B_W1TGP2.js.map → checkbox.CU5ierOq.js.map} +1 -1
  125. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
  126. package/dist/chunks/{code-snippet.1_edHDaZ.js → code-snippet.9MwDHp50.js} +62 -60
  127. package/dist/chunks/code-snippet.9MwDHp50.js.map +1 -0
  128. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
  129. package/dist/chunks/constructNow.DuaJst0D.js +8 -0
  130. package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
  131. package/dist/chunks/{controls-group.BqPxnEl3.js → controls-group.D4eW9DtP.js} +2 -2
  132. package/dist/chunks/{controls-group.BqPxnEl3.js.map → controls-group.D4eW9DtP.js.map} +1 -1
  133. package/dist/chunks/{copy.I2GvwCvt.js → copy.C0q7xgXs.js} +19 -17
  134. package/dist/chunks/{copy.I2GvwCvt.js.map → copy.C0q7xgXs.js.map} +1 -1
  135. package/dist/chunks/{country.BPrh4fXO.js → country.DyrDj95W.js} +2 -2
  136. package/dist/chunks/{country.BPrh4fXO.js.map → country.DyrDj95W.js.map} +1 -1
  137. package/dist/chunks/country.types.DaVCMxk-.js +773 -0
  138. package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
  139. package/dist/chunks/currency.DYZr_RDk.js.map +1 -1
  140. package/dist/chunks/{dashboard-section.B4bHrFIl.js → dashboard-section.B83FdC0Z.js} +3 -3
  141. package/dist/chunks/{dashboard-section.B4bHrFIl.js.map → dashboard-section.B83FdC0Z.js.map} +1 -1
  142. package/dist/chunks/{dashed-underline.ByK3QxFJ.js → dashed-underline.DQGVy5T2.js} +2 -2
  143. package/dist/chunks/{dashed-underline.ByK3QxFJ.js.map → dashed-underline.DQGVy5T2.js.map} +1 -1
  144. package/dist/chunks/{data-grid-template.CvZbOkih.js → data-grid-template.BTEFoEwf.js} +4 -4
  145. package/dist/chunks/{data-grid-template.CvZbOkih.js.map → data-grid-template.BTEFoEwf.js.map} +1 -1
  146. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  147. package/dist/chunks/{data-grid.CVjZ1tKw.js → data-grid.BPG1GPIl.js} +922 -838
  148. package/dist/chunks/{data-grid.CVjZ1tKw.js.map → data-grid.BPG1GPIl.js.map} +1 -1
  149. package/dist/chunks/date-input.BbZqj10S.js +15 -0
  150. package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
  151. package/dist/chunks/{date-picker.-a_TXwjx.js → date-picker.CnsC_UMG.js} +78 -74
  152. package/dist/chunks/date-picker.CnsC_UMG.js.map +1 -0
  153. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  154. package/dist/chunks/date-range-picker.B6GSRjjK.js +1693 -0
  155. package/dist/chunks/date-range-picker.B6GSRjjK.js.map +1 -0
  156. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  157. package/dist/chunks/date.DBWzp0So.js.map +1 -1
  158. package/dist/chunks/de.DvtL0g75.js +478 -0
  159. package/dist/chunks/de.DvtL0g75.js.map +1 -0
  160. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  161. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  162. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  163. package/dist/chunks/{dialog-page.Dn-WbcxU.js → dialog-page.QpRiNPyx.js} +29 -23
  164. package/dist/chunks/{dialog-page.Dn-WbcxU.js.map → dialog-page.QpRiNPyx.js.map} +1 -1
  165. package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
  166. package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
  167. package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
  168. package/dist/chunks/divider.DX5gwN7p.js.map +1 -1
  169. package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +1 -1
  170. package/dist/chunks/{dropdown-tag.AYIB0ec5.js → dropdown-tag.HBM0wrEV.js} +4 -4
  171. package/dist/chunks/{dropdown-tag.AYIB0ec5.js.map → dropdown-tag.HBM0wrEV.js.map} +1 -1
  172. package/dist/chunks/{dropdown.Dt0_ZUBn.js → dropdown.C2pXf8Li.js} +85 -81
  173. package/dist/chunks/{dropdown.Dt0_ZUBn.js.map → dropdown.C2pXf8Li.js.map} +1 -1
  174. package/dist/chunks/{empty-state.jVTWhJW7.js → empty-state.DpBnqAxu.js} +2 -2
  175. package/dist/chunks/{empty-state.jVTWhJW7.js.map → empty-state.DpBnqAxu.js.map} +1 -1
  176. package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
  177. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
  178. package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
  179. package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
  180. package/dist/chunks/es.bz0mzkMq.js +374 -0
  181. package/dist/chunks/es.bz0mzkMq.js.map +1 -0
  182. package/dist/chunks/es6.C1DXQV6f.js +12 -0
  183. package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
  184. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  185. package/dist/chunks/{field-label.BpeaR4Qc.js → field-label.CEkJnsiL.js} +5 -5
  186. package/dist/chunks/{field-label.BpeaR4Qc.js.map → field-label.CEkJnsiL.js.map} +1 -1
  187. package/dist/chunks/{file-uploader.G6mr6RuA.js → file-uploader.CnOqfuI-.js} +299 -253
  188. package/dist/chunks/{file-uploader.G6mr6RuA.js.map → file-uploader.CnOqfuI-.js.map} +1 -1
  189. package/dist/chunks/filter-bar.CnJAxz9B.js +2559 -0
  190. package/dist/chunks/filter-bar.CnJAxz9B.js.map +1 -0
  191. package/dist/chunks/fixed-scroller.Bp4-iO80.js +114 -0
  192. package/dist/chunks/{fixed-scroller.Ca1ujamx.js.map → fixed-scroller.Bp4-iO80.js.map} +1 -1
  193. package/dist/chunks/focus-trap.CNIU5jOz.js.map +1 -1
  194. package/dist/chunks/{footer-actions.3JdT8b0p.js → footer-actions.BOiN47Xd.js} +3 -3
  195. package/dist/chunks/{footer-actions.3JdT8b0p.js.map → footer-actions.BOiN47Xd.js.map} +1 -1
  196. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  197. package/dist/chunks/{form-layout-title.D9GJQfF9.js → form-layout-title.CdC1T4gs.js} +2 -2
  198. package/dist/chunks/{form-layout-title.D9GJQfF9.js.map → form-layout-title.CdC1T4gs.js.map} +1 -1
  199. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  200. package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
  201. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
  202. package/dist/chunks/fr.Dj7wEToe.js +47 -0
  203. package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
  204. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  205. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  206. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
  207. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
  208. package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -1
  209. package/dist/chunks/header-meta.D_oAu2S9.js +212 -0
  210. package/dist/chunks/header-meta.D_oAu2S9.js.map +1 -0
  211. package/dist/chunks/{header-with-views.3fF_V6F9.js → header-with-views.Dc9LUYNY.js} +379 -315
  212. package/dist/chunks/{header-with-views.3fF_V6F9.js.map → header-with-views.Dc9LUYNY.js.map} +1 -1
  213. package/dist/chunks/{header.D76MKCdS.js → header.BmtlQmPs.js} +3 -3
  214. package/dist/chunks/{header.D76MKCdS.js.map → header.BmtlQmPs.js.map} +1 -1
  215. package/dist/chunks/image.C2D2hKat.js.map +1 -1
  216. package/dist/chunks/index.B6WW_F-J.js.map +1 -1
  217. package/dist/chunks/index.BDK4hwK_.js.map +1 -1
  218. package/dist/chunks/{input-field-password.C7zjyp7f.js → input-field-password.D23H_RvO.js} +48 -42
  219. package/dist/chunks/{input-field-password.C7zjyp7f.js.map → input-field-password.D23H_RvO.js.map} +1 -1
  220. package/dist/chunks/{input-field-phone-number.DwuTziSU.js → input-field-phone-number.Bvk2Pvec.js} +9 -3
  221. package/dist/chunks/{input-field-phone-number.DwuTziSU.js.map → input-field-phone-number.Bvk2Pvec.js.map} +1 -1
  222. package/dist/chunks/{input-field.DsT4AWXC.js → input-field.hf0_ALq0.js} +37 -29
  223. package/dist/chunks/{input-field.DsT4AWXC.js.map → input-field.hf0_ALq0.js.map} +1 -1
  224. package/dist/chunks/{inspector.2A5vWUou.js → inspector.C0iAxxoz.js} +40 -34
  225. package/dist/chunks/{inspector.2A5vWUou.js.map → inspector.C0iAxxoz.js.map} +1 -1
  226. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  227. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  228. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  229. package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
  230. package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
  231. package/dist/chunks/it.Oaj6BklL.js +392 -0
  232. package/dist/chunks/it.Oaj6BklL.js.map +1 -0
  233. package/dist/chunks/ja.Cm9tJMi2.js +367 -0
  234. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
  235. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  236. package/dist/chunks/ko.Ceaof6EP.js +348 -0
  237. package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
  238. package/dist/chunks/layout-row.BPX00mio.js.map +1 -1
  239. package/dist/chunks/{link.BoDUCYmM.js → link.PsTSQjK3.js} +27 -21
  240. package/dist/chunks/{link.BoDUCYmM.js.map → link.PsTSQjK3.js.map} +1 -1
  241. package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -1
  242. package/dist/chunks/match.CMBZxEs9.js +302 -0
  243. package/dist/chunks/match.CMBZxEs9.js.map +1 -0
  244. package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
  245. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js → modal-fullscreen.B1gltlxA.js} +5 -5
  246. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js.map → modal-fullscreen.B1gltlxA.js.map} +1 -1
  247. package/dist/chunks/{modal.6hFEbnZM.js → modal.e3EQ6Kex.js} +5 -5
  248. package/dist/chunks/{modal.6hFEbnZM.js.map → modal.e3EQ6Kex.js.map} +1 -1
  249. package/dist/chunks/nl.B6vCf2B9.js +327 -0
  250. package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
  251. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  252. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  253. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  254. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  255. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  256. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  257. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  258. package/dist/chunks/{pagination.BSyshRGH.js → pagination.BcFt2FqK.js} +6 -6
  259. package/dist/chunks/{pagination.BSyshRGH.js.map → pagination.BcFt2FqK.js.map} +1 -1
  260. package/dist/chunks/payment-method.BKXLPDC9.js.map +1 -1
  261. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  262. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  263. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  264. package/dist/chunks/popover.types.WDh5ggr3.js.map +1 -1
  265. package/dist/chunks/popper-container.Cdokz_NE.js.map +1 -1
  266. package/dist/chunks/{promo-banner.D3aG5wnp.js → promo-banner.yfBorKj7.js} +2 -2
  267. package/dist/chunks/{promo-banner.D3aG5wnp.js.map → promo-banner.yfBorKj7.js.map} +1 -1
  268. package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
  269. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
  270. package/dist/chunks/{radio-group.DTZwsfwW.js → radio-group.CtTnfkYg.js} +3 -3
  271. package/dist/chunks/{radio-group.DTZwsfwW.js.map → radio-group.CtTnfkYg.js.map} +1 -1
  272. package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -1
  273. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  274. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  275. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  276. package/dist/chunks/{rich-text-editor.BbvfrqHl.js → rich-text-editor.Dq2CFGOu.js} +5 -5
  277. package/dist/chunks/{rich-text-editor.BbvfrqHl.js.map → rich-text-editor.Dq2CFGOu.js.map} +1 -1
  278. package/dist/chunks/{search-bar.Bpk-PuYT.js → search-bar.B0SdQBnY.js} +3 -3
  279. package/dist/chunks/{search-bar.Bpk-PuYT.js.map → search-bar.B0SdQBnY.js.map} +1 -1
  280. package/dist/chunks/{secondary-nav.BGOYJrsB.js → secondary-nav.BPGpxd0p.js} +35 -29
  281. package/dist/chunks/{secondary-nav.BGOYJrsB.js.map → secondary-nav.BPGpxd0p.js.map} +1 -1
  282. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  283. package/dist/chunks/{selection-card-group.BWLjFcea.js → selection-card-group.BryV14qP.js} +13 -13
  284. package/dist/chunks/{selection-card-group.BWLjFcea.js.map → selection-card-group.BryV14qP.js.map} +1 -1
  285. package/dist/chunks/{sidepanel.C5SvJNMR.js → sidepanel.NFyZGE57.js} +5 -5
  286. package/dist/chunks/{sidepanel.C5SvJNMR.js.map → sidepanel.NFyZGE57.js.map} +1 -1
  287. package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
  288. package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
  289. package/dist/chunks/status.types.Cv5XN4zL.js.map +1 -1
  290. package/dist/chunks/step.BLFXvHL6.js +223 -0
  291. package/dist/chunks/step.BLFXvHL6.js.map +1 -0
  292. package/dist/chunks/{structured-list-item.CbXDKwsF.js → structured-list-item.CptOCpHP.js} +3 -3
  293. package/dist/chunks/{structured-list-item.CbXDKwsF.js.map → structured-list-item.CptOCpHP.js.map} +1 -1
  294. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  295. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  296. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  297. package/dist/chunks/{summary-grid.types.haWi7oaf.js → summary-grid.types.B1T8_k1m.js} +3 -3
  298. package/dist/chunks/{summary-grid.types.haWi7oaf.js.map → summary-grid.types.B1T8_k1m.js.map} +1 -1
  299. package/dist/chunks/sv.f8EfZjMZ.js +377 -0
  300. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
  301. package/dist/chunks/{tab.ZQfGp_FP.js → tab.FUMpPsBP.js} +2 -2
  302. package/dist/chunks/{tab.ZQfGp_FP.js.map → tab.FUMpPsBP.js.map} +1 -1
  303. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  304. package/dist/chunks/tag.B1Ywhgvc.js.map +1 -1
  305. package/dist/chunks/{textarea.DfR2o1lz.js → textarea.riUt0BiI.js} +31 -31
  306. package/dist/chunks/textarea.riUt0BiI.js.map +1 -0
  307. package/dist/chunks/{timeline-item.rLqeBsyz.js → timeline-item.CFfW1DoD.js} +16 -15
  308. package/dist/chunks/{timeline-item.rLqeBsyz.js.map → timeline-item.CFfW1DoD.js.map} +1 -1
  309. package/dist/chunks/{toast.C7lu_NsX.js → toast.Csv6tMyT.js} +2 -2
  310. package/dist/chunks/{toast.C7lu_NsX.js.map → toast.Csv6tMyT.js.map} +1 -1
  311. package/dist/chunks/toggle.227XgEc7.js.map +1 -1
  312. package/dist/chunks/tooltip.C6YCavPw.js.map +1 -1
  313. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  314. package/dist/chunks/{tutorial.DdRGxTC5.js → tutorial.D18LwXVy.js} +5 -5
  315. package/dist/chunks/{tutorial.DdRGxTC5.js.map → tutorial.D18LwXVy.js.map} +1 -1
  316. package/dist/chunks/typography.Bq-EGj9y.js.map +1 -1
  317. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  318. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  319. package/dist/chunks/use-bento-toast-controller.MmyZXtME.js.map +1 -1
  320. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js → use-cached-selected-values.gDWGi5Nk.js} +240 -231
  321. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js.map → use-cached-selected-values.gDWGi5Nk.js.map} +1 -1
  322. package/dist/chunks/{use-country-items.B3Cd3Tdo.js → use-country-items.ClS_So5N.js} +2 -2
  323. package/dist/chunks/{use-country-items.B3Cd3Tdo.js.map → use-country-items.ClS_So5N.js.map} +1 -1
  324. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  325. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
  326. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  327. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  328. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  329. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  330. package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
  331. package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
  332. package/dist/code-snippet.js +1 -1
  333. package/dist/country.js +2 -2
  334. package/dist/dashboard-template.js +1 -1
  335. package/dist/dashed-underline.js +1 -1
  336. package/dist/data-grid-template.js +1 -1
  337. package/dist/data-grid.js +1 -1
  338. package/dist/date-picker.js +2 -2
  339. package/dist/date-range-picker.js +2 -2
  340. package/dist/dropdown.js +3 -3
  341. package/dist/empty-state.js +1 -1
  342. package/dist/file-uploader.js +1 -1
  343. package/dist/filter-bar.js +1 -1
  344. package/dist/form-layout.js +1 -1
  345. package/dist/header-with-views.js +1 -1
  346. package/dist/header.js +1 -1
  347. package/dist/index.js +250 -251
  348. package/dist/index.js.map +1 -1
  349. package/dist/input-field-password.js +1 -1
  350. package/dist/input-field-phone-number.js +1 -1
  351. package/dist/input-field.js +1 -1
  352. package/dist/inspector.js +1 -1
  353. package/dist/internal.js +10 -10
  354. package/dist/link.js +1 -1
  355. package/dist/menu.js +1 -1
  356. package/dist/modal-fullscreen.js +1 -1
  357. package/dist/modal.js +2 -2
  358. package/dist/pagination.js +1 -1
  359. package/dist/popover.js +1 -1
  360. package/dist/promo-banner.js +1 -1
  361. package/dist/radio-group.js +1 -1
  362. package/dist/rich-text-editor.js +1 -1
  363. package/dist/search-bar.js +2 -2
  364. package/dist/secondary-nav.js +1 -1
  365. package/dist/selection-card.js +1 -1
  366. package/dist/sidepanel.js +1 -1
  367. package/dist/stepper.js +1 -1
  368. package/dist/structured-list.js +1 -1
  369. package/dist/styles/bento-dark.css +0 -1829
  370. package/dist/styles/bento-light.css +0 -1829
  371. package/dist/styles/bento.css +0 -1829
  372. package/dist/styles/legacy.css +0 -1829
  373. package/dist/styles/styleguide.css +0 -1829
  374. package/dist/summary-grid.js +1 -1
  375. package/dist/tabs.js +1 -1
  376. package/dist/textarea.js +1 -1
  377. package/dist/timeline.js +1 -1
  378. package/dist/toast.js +1 -1
  379. package/dist/tutorial.js +1 -1
  380. package/dist/use-form-v4.js.map +1 -1
  381. package/package.json +15 -26
  382. package/dist/@types/components.d.ts +0 -196
  383. package/dist/@types/use-form-v4.d.ts +0 -86
  384. package/dist/chunks/calendar.DCLyThOl.js +0 -1832
  385. package/dist/chunks/calendar.DCLyThOl.js.map +0 -1
  386. package/dist/chunks/checkbox-input.B0NsfSNR.js.map +0 -1
  387. package/dist/chunks/code-snippet.1_edHDaZ.js.map +0 -1
  388. package/dist/chunks/constructNow.BhymNmy5.js +0 -8
  389. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  390. package/dist/chunks/date-format.B8RU7D42.js +0 -17
  391. package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
  392. package/dist/chunks/date-picker.-a_TXwjx.js.map +0 -1
  393. package/dist/chunks/date-range-picker.Bw1yPTu-.js +0 -906
  394. package/dist/chunks/date-range-picker.Bw1yPTu-.js.map +0 -1
  395. package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
  396. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
  397. package/dist/chunks/es6.MoTTyETW.js +0 -12
  398. package/dist/chunks/es6.MoTTyETW.js.map +0 -1
  399. package/dist/chunks/filter-bar.CgJA4tIt.js +0 -2472
  400. package/dist/chunks/filter-bar.CgJA4tIt.js.map +0 -1
  401. package/dist/chunks/fixed-scroller.Ca1ujamx.js +0 -106
  402. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
  403. package/dist/chunks/header-meta.C8_W0j_p.js +0 -170
  404. package/dist/chunks/header-meta.C8_W0j_p.js.map +0 -1
  405. package/dist/chunks/step.mqn8E6dm.js +0 -217
  406. package/dist/chunks/step.mqn8E6dm.js.map +0 -1
  407. package/dist/chunks/textarea.DfR2o1lz.js.map +0 -1
  408. package/dist/web-types.json +0 -17280
@@ -1,28 +1,36 @@
1
1
  import { defineComponent as ie, useAttrs as de, useSlots as se, ref as f, provide as le, inject as x, toRef as ue, computed as n, toRefs as pe } from "vue";
2
- import { a as ce, I as fe, b as _e, B as be } from "./dropdown.Dt0_ZUBn.js";
2
+ import { a as ce, I as fe, b as be, B as _e } from "./dropdown.C2pXf8Li.js";
3
3
  import { p as E, d as T, B as me } from "./typography.Bq-EGj9y.js";
4
4
  import { u as ye } from "./form-field.D_2g7vaP.js";
5
- import { g as _ } from "./generate-uid.NJ8tVoha.js";
5
+ import { g as b } from "./generate-uid.NJ8tVoha.js";
6
6
  import { g as $ } from "./get-slot-text.Bjb9dTSV.js";
7
7
  import { u as ve } from "./aria-label.CaUURpnB.js";
8
8
  import { u as he } from "./index.B6WW_F-J.js";
9
9
  import { u as we } from "./use-form-layout-loading.CWbjZiwP.js";
10
10
  import { u as De } from "./use-has-slot.C9lQZ6nz.js";
11
- import { F as Ee, E as Te } from "./field-label.BpeaR4Qc.js";
11
+ import { F as Ee, E as Te } from "./field-label.CEkJnsiL.js";
12
12
  import { n as Ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
13
  import "../assets/input-field.css";
14
- var s = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.PAYMENT_METHOD = "payment-method", o.STATIC_VALUE = "static-value", o.DROPDOWN = "dropdown", o))(s || {}), d = /* @__PURE__ */ ((o) => (o.START = "start", o.END = "end", o))(d || {}), b = /* @__PURE__ */ ((o) => (o.CONDENSED = "condensed", o.DISABLED = "disabled", o.READONLY = "readonly", o.ERROR = "error", o))(b || {}), A = /* @__PURE__ */ ((o) => (o.SEARCH = "search", o.TEXT = "text", o.NUMBER = "number", o))(A || {}), Ie = /* @__PURE__ */ ((o) => (o.INPUT = "input", o.ESCAPE_PRESSED = "escape-pressed", o.UPDATE_DROPDOWN = "update:dropdown", o.DROPDOWN_INPUT = "dropdown-input", o.FOCUS = "focus", o.CHANGE = "change", o.BLUR = "blur", o.KEYDOWN = "keydown", o))(Ie || {});
14
+ var s = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.PAYMENT_METHOD = "payment-method", o.STATIC_VALUE = "static-value", o.DROPDOWN = "dropdown", o))(s || {}), d = /* @__PURE__ */ ((o) => (o.START = "start", o.END = "end", o))(d || {}), _ = /* @__PURE__ */ ((o) => (o.CONDENSED = "condensed", o.DISABLED = "disabled", o.READONLY = "readonly", o.ERROR = "error", o))(_ || {}), A = /* @__PURE__ */ ((o) => (o.SEARCH = "search", o.TEXT = "text", o.NUMBER = "number", o))(A || {}), Ie = /* @__PURE__ */ ((o) => (o.INPUT = "input", o.ESCAPE_PRESSED = "escape-pressed", o.UPDATE_DROPDOWN = "update:dropdown", o.DROPDOWN_INPUT = "dropdown-input", o.FOCUS = "focus", o.CHANGE = "change", o.BLUR = "blur", o.KEYDOWN = "keydown", o))(Ie || {});
15
15
  const Se = {
16
16
  "en-US": {
17
17
  ariaLabelDropdownFallback: "{inputLabel} Dropdown",
18
18
  ariaLabelFallback: "Input field"
19
+ },
20
+ "ja-JP": {
21
+ ariaLabelDropdownFallback: "{inputLabel}ドロップダウン",
22
+ ariaLabelFallback: "入力フィールド"
23
+ },
24
+ "pt-BR": {
25
+ ariaLabelDropdownFallback: "Menu suspenso {inputLabel}",
26
+ ariaLabelFallback: "Campo de entrada"
19
27
  }
20
- }, ge = {
28
+ }, Le = {
21
29
  name: "bento-input-field",
22
30
  model: { prop: "modelValue" },
23
31
  i18n: { messages: Se }
24
- }, Ne = /* @__PURE__ */ ie({
25
- ...ge,
32
+ }, ge = /* @__PURE__ */ ie({
33
+ ...Le,
26
34
  props: {
27
35
  description: { default: "" },
28
36
  disabled: { type: Boolean, default: !1 },
@@ -49,20 +57,20 @@ const Se = {
49
57
  },
50
58
  emits: ["blur", "click", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input", "update:dropdown", "update:model-value"],
51
59
  setup(o, { expose: t, emit: a }) {
52
- const e = o, r = de(), l = se(), { emitValue: I } = ye(a), { t: m } = he(), S = De(l), g = f(null), N = f(null), H = _("input"), y = _("input-dropdown"), v = _("input-static-value"), O = _("input-description"), L = _("input-error"), h = f(!1);
60
+ const e = o, r = de(), l = se(), { emitValue: I } = ye(a), { t: m } = he(), S = De(l), L = f(null), g = f(null), H = b("input"), y = b("input-dropdown"), v = b("input-static-value"), N = b("input-description"), O = b("input-error"), h = f(!1);
53
61
  le(ce, !0);
54
62
  const Y = x(fe, f(void 0)), W = () => {
55
63
  h.value = !0, a("focus");
56
64
  }, q = () => {
57
65
  h.value = !1, a("blur");
58
- }, { isReadOnly: u } = we(ue(e, "readonly")), K = n(
66
+ }, { isReadOnly: u } = we(ue(e, "readonly")), J = n(
59
67
  () => {
60
68
  var i;
61
69
  return u.value || ((i = e.dropdown) == null ? void 0 : i.readonly);
62
70
  }
63
71
  ), p = n(
64
72
  () => e.variant === s.STATIC_VALUE && !!l.staticValue
65
- ), J = n(() => e.variant === s.DEFAULT), j = n(() => e.variant === s.PAYMENT_METHOD), z = n(
73
+ ), K = n(() => e.variant === s.DEFAULT), j = n(() => e.variant === s.PAYMENT_METHOD), z = n(
66
74
  () => p.value && e.staticValuePosition === d.START
67
75
  ), X = n(
68
76
  () => p.value && e.staticValuePosition === d.END
@@ -72,23 +80,23 @@ const Se = {
72
80
  () => c.value && e.dropdownPosition === d.END
73
81
  ), w = n(
74
82
  () => !e.disabled && !u.value && (!!e.errorMessage || e.error)
75
- ), C = n(() => $(l)("default") || e.label), P = n(() => $(l)("description") || e.description), Q = n(() => c.value === !0 && p.value === !0 ? `${v} ${y}` : c.value === !0 ? `${y}` : p.value === !0 ? `${v}` : null), B = n(() => m("ariaLabelFallback")), R = n(
83
+ ), C = n(() => $(l)("default") || e.label), P = n(() => $(l)("description") || e.description), Q = n(() => c.value === !0 && p.value === !0 ? `${v} ${y}` : c.value === !0 ? `${y}` : p.value === !0 ? `${v}` : null), F = n(() => m("ariaLabelFallback")), B = n(
76
84
  () => m("ariaLabelDropdownFallback", { inputLabel: V.value })
77
- ), F = f(r["aria-label"]), { ariaLabel: k } = pe(e), V = ve({
78
- ariaLabel: F.value,
85
+ ), R = f(r["aria-label"]), { ariaLabel: k } = pe(e), V = ve({
86
+ ariaLabel: R.value,
79
87
  // TODO: take this line away when the aria-label props is removed
80
88
  label: k,
81
- defaultFallback: C.value || B
89
+ defaultFallback: C.value || F
82
90
  }), ee = n(
83
- () => `${P.value ? O : ""} ${w.value && e.errorMessage ? L : ""}`
91
+ () => `${P.value ? N : ""} ${w.value && e.errorMessage ? O : ""}`
84
92
  ), te = n(() => ({
85
- [`b-input-field--${b.CONDENSED}`]: e.condensed,
86
- [`b-input-field--${b.DISABLED}`]: e.disabled,
87
- [`b-input-field--${b.READONLY}`]: u.value,
88
- [`b-input-field--${b.ERROR}`]: w.value,
93
+ [`b-input-field--${_.CONDENSED}`]: e.condensed,
94
+ [`b-input-field--${_.DISABLED}`]: e.disabled,
95
+ [`b-input-field--${_.READONLY}`]: u.value,
96
+ [`b-input-field--${_.ERROR}`]: w.value,
89
97
  "b-input-field--slashed-zero": e.slashedZero
90
98
  })), oe = n(() => ({
91
- "aria-label": R.value,
99
+ "aria-label": B.value,
92
100
  ...e.dropdown
93
101
  })), ae = (i) => {
94
102
  const re = i.target.value;
@@ -96,15 +104,15 @@ const Se = {
96
104
  }, ne = (i) => {
97
105
  a("dropdown-input", i), a("update:dropdown", { ...e == null ? void 0 : e.dropdown, value: i });
98
106
  }, D = () => {
99
- g.value.focus();
107
+ L.value.focus();
100
108
  }, M = () => {
101
- e.variant === "dropdown" ? N.value.focus() : D();
109
+ e.variant === "dropdown" ? g.value.focus() : D();
102
110
  };
103
111
  t({
104
112
  focusInput: D,
105
113
  focus: M
106
114
  });
107
- const U = x(_e, "");
115
+ const U = x(be, "");
108
116
  return !Object.values(A).includes(e.type) && !U && (e.type === "tel" ? E(
109
117
  `"bento-input-field" dropdown does not support the type '${e.type}', use "bento-input-field-phone-number" instead.`
110
118
  ) : e.type === "password" ? E(
@@ -129,10 +137,10 @@ const Se = {
129
137
  `The use of "value" prop in "BentoInputField" is no longer supported.
130
138
  Use the "v-model" or "model-value" property instead.`,
131
139
  "2.0.0"
132
- ), { __sfc: !0, attrs: r, slots: l, props: e, emit: a, emitValue: I, t: m, hasSlot: S, inputFieldElement: g, inputDropdownElement: N, inputFieldId: H, dropdownId: y, staticValueId: v, descriptionId: O, errorId: L, isFocused: h, hint: Y, onFocus: W, onBlur: q, isReadOnly: u, isDropdownReadOnly: K, shouldShowStaticValue: p, isDefaultVariant: J, isPaymentMethodVariant: j, shouldDisplayStaticValueAtStart: z, shouldDisplayStaticValueAtEnd: X, shouldShowDropdown: c, shouldDisplayDropdownAtStart: Z, shouldDisplayDropdownAtEnd: G, shouldShowError: w, computedLabel: C, computedDescription: P, computedAriaOwns: Q, computedAriaLabelFallbackMessage: B, computedAriaLabelDropdowFallback: R, ariaLabelAttribute: F, ariaLabel: k, computedAriaLabel: V, computedAriaDescribedBy: ee, inputFieldConditionalClasses: te, inputFieldDropdownProps: oe, onInput: ae, onDropdownInput: ne, focusInput: D, focus: M, inputFieldParentComponent: U, BentoDropdown: be, BentoTypography: me, ErrorMessage: Te, FieldLabel: Ee };
140
+ ), { __sfc: !0, attrs: r, slots: l, props: e, emit: a, emitValue: I, t: m, hasSlot: S, inputFieldElement: L, inputDropdownElement: g, inputFieldId: H, dropdownId: y, staticValueId: v, descriptionId: N, errorId: O, isFocused: h, hint: Y, onFocus: W, onBlur: q, isReadOnly: u, isDropdownReadOnly: J, shouldShowStaticValue: p, isDefaultVariant: K, isPaymentMethodVariant: j, shouldDisplayStaticValueAtStart: z, shouldDisplayStaticValueAtEnd: X, shouldShowDropdown: c, shouldDisplayDropdownAtStart: Z, shouldDisplayDropdownAtEnd: G, shouldShowError: w, computedLabel: C, computedDescription: P, computedAriaOwns: Q, computedAriaLabelFallbackMessage: F, computedAriaLabelDropdowFallback: B, ariaLabelAttribute: R, ariaLabel: k, computedAriaLabel: V, computedAriaDescribedBy: ee, inputFieldConditionalClasses: te, inputFieldDropdownProps: oe, onInput: ae, onDropdownInput: ne, focusInput: D, focus: M, inputFieldParentComponent: U, BentoDropdown: _e, BentoTypography: me, ErrorMessage: Te, FieldLabel: Ee };
133
141
  }
134
142
  });
135
- var Oe = function() {
143
+ var Ne = function() {
136
144
  var t = this, a = t._self._c, e = t._self._setupProxy;
137
145
  return a(e.BentoTypography, { staticClass: "b-input-field", class: e.inputFieldConditionalClasses, attrs: { "data-testid": "input-text-container", el: "div", variant: "body" } }, [e.hasSlot("default") || t.label ? a(e.FieldLabel, { attrs: { for: e.inputFieldId, "data-testid": "input-field-label", "tooltip-text": t.tooltipText, optional: t.optional, required: t.required, label: t.label }, on: { click: e.focusInput } }, [t._t("default")], 2) : t._e(), a("div", { staticClass: "b-input-field__input-box", attrs: { "data-testid": "input-box", "aria-disabled": t.disabled }, on: { click: e.focusInput } }, [e.isDefaultVariant && (e.hasSlot("defaultIconBefore") || e.hasSlot("iconBefore")) ? a("span", { staticClass: "b-input-field__icon-before", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [e.hasSlot("iconBefore") ? t._t("iconBefore") : t._e(), e.hasSlot("defaultIconBefore") && !e.hasSlot("iconBefore") ? t._t("defaultIconBefore") : t._e()], 2) : t._e(), e.isPaymentMethodVariant && e.hasSlot("paymentMethod") ? a("span", { staticClass: "b-input-field__payment-method", attrs: { "aria-hidden": t.ariaHidden ? "true" : void 0 } }, [t._t("paymentMethod")], 2) : t._e(), e.shouldDisplayDropdownAtStart ? a("div", { staticClass: "b-input-field__dropdown b-input-field__dropdown--start", attrs: { id: e.dropdownId }, on: { click: function(r) {
138
146
  r.stopPropagation();
@@ -151,10 +159,10 @@ var Oe = function() {
151
159
  } } }, [t.dropdown ? a(e.BentoDropdown, t._b({ ref: "inputDropdownElement", attrs: { id: e.dropdownId, disabled: t.disabled, readonly: e.isDropdownReadOnly }, on: { "update:model-value": e.onDropdownInput } }, "bento-dropdown", e.inputFieldDropdownProps, !1)) : t._e()], 1) : t._e()], 1), e.shouldShowError && t.errorMessage ? a(e.ErrorMessage, { staticClass: "b-input-field__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), e.hasSlot("description") || t.description ? a("span", { staticClass: "b-input-field__description", attrs: { id: e.descriptionId }, on: { click: e.focusInput } }, [a(e.BentoTypography, { attrs: { el: "span", variant: "body" } }, [t._t("description", function() {
152
160
  return [t._v(" " + t._s(t.description) + " ")];
153
161
  }, { id: "description" })], 2)], 1) : t._e()], 1);
154
- }, Le = [], Ce = /* @__PURE__ */ Ae(
162
+ }, Oe = [], Ce = /* @__PURE__ */ Ae(
163
+ ge,
155
164
  Ne,
156
165
  Oe,
157
- Le,
158
166
  !1,
159
167
  null,
160
168
  "4e1c1e2a"
@@ -164,8 +172,8 @@ export {
164
172
  We as B,
165
173
  s as a,
166
174
  d as b,
167
- b as c,
175
+ _ as c,
168
176
  A as d,
169
177
  Ie as e
170
178
  };
171
- //# sourceMappingURL=input-field.DsT4AWXC.js.map
179
+ //# sourceMappingURL=input-field.hf0_ALq0.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-field.DsT4AWXC.js","sources":["../../src/components/input-field/input-field.types.ts","../../src/components/input-field/input-field.vue"],"sourcesContent":["import { type BentoDropdownProps } from '../dropdown/dropdown.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = BentoDropdownProps;\nexport interface BentoInputDropdownProps {\n /**\n * Text that labels the dropdown element\n */\n 'aria-label'?: string;\n /**\n * Enables dynamic filtering\n */\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n /**\n * List of available items\n */\n items: DropdownProps['items'];\n /**\n * Sets the dropdown in read-only mode\n */\n readonly?: DropdownProps['readonly'];\n /**\n * Selected value of the dropdown\n * @deprecated Use `model-value` instead.\n */\n value?: DropdownProps['value'];\n /**\n * Selected value of the dropdown\n */\n modelValue?: DropdownProps['modelValue'];\n}\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n\nexport interface BentoInputFieldProps extends FormField {\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden?: boolean;\n\n /**\n * Text that labels an the input element\n *\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `aria-label`: Text that labels the dropdown element\n * - `dynamicFiltering`: Enables dynamic filtering\n * - `items`: List of available items\n * - `readonly`: Sets the dropdown in read-only mode\n * - `value`: Selected value of the dropdown\n */\n dropdown?: BentoInputDropdownProps;\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n\n /**\n * Text displayed as the value of the input-field\n */\n modelValue?: BentoInputFieldValue;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue?: string;\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type?: BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type'];\n\n /**\n * Text displayed as the value of the input-field\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoInputFieldValue;\n\n /**\n * Describes the different variants for the input element\n */\n variant?: BentoInputFieldVariant | `${BentoInputFieldVariant}`;\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default') || label\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n :label=\"label\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :required=\"required\"\n :type=\"type\"\n :value=\"modelValue ?? value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n @click=\"emit('click', $event)\"\n />\n\n <!-- Hint at the end -->\n <bento-typography\n v-if=\"hint && isFocused && (modelValue || value)\"\n el=\"span\"\n class=\"b-input-field__hint\"\n >\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span\n v-if=\"hasSlot('description') || description\"\n :id=\"descriptionId\"\n class=\"b-input-field__description\"\n @click=\"focusInput\"\n >\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, type Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n type BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n type BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n type BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n description: { default: '' },\n disabled: { type: Boolean, default: false },\n errorMessage: { default: null },\n label: { default: '' },\n optional: { type: Boolean, default: false },\n placeholder: { default: '' },\n readonly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n tooltipText: { default: null },\n ariaHidden: { type: Boolean, default: true },\n ariaLabel: { default: undefined },\n condensed: { type: Boolean, default: false },\n dropdown: { default: undefined },\n dropdownPosition: { default: BentoInputFieldElementPosition.START },\n error: { type: Boolean, default: false },\n modelValue: { default: undefined },\n slashedZero: { type: Boolean, default: false },\n staticValue: { default: '' },\n staticValuePosition: { default: BentoInputFieldElementPosition.START },\n type: { default: BentoInputFieldType.TEXT },\n value: { default: undefined },\n variant: { default: BentoInputFieldVariant.DEFAULT }\n});\n\n const emit = defineEmits([\"blur\", \"click\", \"change\", \"dropdown-input\", \"escape-pressed\", \"focus\", \"keydown\", \"keyup\", \"input\", \"update:dropdown\", \"update:model-value\"]);\n\n const { emitValue } = useFormFieldEmits<BentoInputFieldValue>(emit);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const isDropdownReadOnly = computed<BentoInputDropdownProps['readonly']>(\n () => isReadOnly.value || props.dropdown?.readonly\n );\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedLabel = computed(() => (getSlotText(slots)('default') as string) || props.label);\n const computedDescription = computed(() => (getSlotText(slots)('description') as string) || props.description);\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: computedLabel.value || computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${computedDescription.value ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n [`b-input-field--slashed-zero`]: props.slashedZero,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emitValue(inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n const inputFieldParentComponent = inject(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, '');\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType) && !inputFieldParentComponent) {\n if (props.type === 'tel') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-phone-number\" instead.`\n );\n } else if (props.type === 'password') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-password\" instead.`\n );\n } else {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type '${props.type}'`);\n }\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n\n if (props.value) {\n deprecate(\n 'BentoInputField \"value\" property',\n `The use of \"value\" prop in \"BentoInputField\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :model-value=\"inputValue\"\n * :@update:model-value=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n name: 'bento-input-field',\n model: { prop: 'modelValue' },\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","emitValue","useFormFieldEmits","emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","props","isDropdownReadOnly","computed","_a","shouldShowStaticValue","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedLabel","getSlotText","computedDescription","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","focus","expose","inputFieldParentComponent","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","printDevelopmentWarning","deprecate"],"mappings":";;;;;;;;;;;;;AAMO,IAAAA,IAAA,kBAAAC,OACHA,EAAA,UAAA,WACAA,EAAA,iBAAA,kBACAA,EAAA,eAAA,gBACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAKLE,IAAA,kBAAAC,OACHA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAJQA,IAAAD,KAAA,CAAA,CAAA,GAULE,IAAA,kBAAAC,OACHA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA,GA0CLE,KAAA,kBAAAC,OACHA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,kBAAA,mBACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,UAAA,WARQA,IAAAD,MAAA,CAAA,CAAA;;;;;;GCyXRE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAAA,EACsB,MAAA,EAAA,UAAAC,GAAA;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvPAC,IAAAC,GAAA,GACAC,IAAAC,GAAA,GA6BA,EAAA,WAAAC,EAAA,IAAAC,GAAAC,CAAA,GAEA,EAAA,GAAAC,EAAA,IAAAC,GAAA,GACAC,IAAAC,GAAAR,CAAA,GACAS,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAC,EA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f0_ALq0.js","sources":["../../src/components/input-field/input-field.types.ts","../../src/components/input-field/input-field.vue"],"sourcesContent":["import { type BentoDropdownProps } from '../dropdown/dropdown.types';\nimport { type FormField } from '../../types/form-field';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = BentoDropdownProps;\nexport interface BentoInputDropdownProps {\n /**\n * Text that labels the dropdown element\n */\n 'aria-label'?: string;\n /**\n * Enables dynamic filtering\n */\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n /**\n * List of available items\n */\n items: DropdownProps['items'];\n /**\n * Sets the dropdown in read-only mode\n */\n readonly?: DropdownProps['readonly'];\n /**\n * Selected value of the dropdown\n * @deprecated Use `model-value` instead.\n */\n value?: DropdownProps['value'];\n /**\n * Selected value of the dropdown\n */\n modelValue?: DropdownProps['modelValue'];\n}\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n\nexport interface BentoInputFieldProps extends FormField {\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden?: boolean;\n\n /**\n * Text that labels an the input element\n *\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n ariaLabel?: string;\n\n /**\n * Reduces height of the input\n */\n condensed?: boolean;\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `aria-label`: Text that labels the dropdown element\n * - `dynamicFiltering`: Enables dynamic filtering\n * - `items`: List of available items\n * - `readonly`: Sets the dropdown in read-only mode\n * - `value`: Selected value of the dropdown\n */\n dropdown?: BentoInputDropdownProps;\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n\n /**\n * Text displayed as the value of the input-field\n */\n modelValue?: BentoInputFieldValue;\n\n /**\n * Renders a font numeric style with slashed zeros instead of normal ones.\n */\n slashedZero?: boolean;\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue?: string;\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition?: BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`;\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type?: BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type'];\n\n /**\n * Text displayed as the value of the input-field\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoInputFieldValue;\n\n /**\n * Describes the different variants for the input element\n */\n variant?: BentoInputFieldVariant | `${BentoInputFieldVariant}`;\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default') || label\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n :label=\"label\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :required=\"required\"\n :type=\"type\"\n :value=\"modelValue ?? value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n @click=\"emit('click', $event)\"\n />\n\n <!-- Hint at the end -->\n <bento-typography\n v-if=\"hint && isFocused && (modelValue || value)\"\n el=\"span\"\n class=\"b-input-field__hint\"\n >\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n ref=\"inputDropdownElement\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isDropdownReadOnly\"\n @update:model-value=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span\n v-if=\"hasSlot('description') || description\"\n :id=\"descriptionId\"\n class=\"b-input-field__description\"\n @click=\"focusInput\"\n >\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, provide, type Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n import { type BentoListboxSelectedValue } from '@/types/listbox';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n type BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n type BentoInputFieldProps,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n type BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n description: { default: '' },\n disabled: { type: Boolean, default: false },\n errorMessage: { default: null },\n label: { default: '' },\n optional: { type: Boolean, default: false },\n placeholder: { default: '' },\n readonly: { type: Boolean, default: false },\n required: { type: Boolean, default: false },\n tooltipText: { default: null },\n ariaHidden: { type: Boolean, default: true },\n ariaLabel: { default: undefined },\n condensed: { type: Boolean, default: false },\n dropdown: { default: undefined },\n dropdownPosition: { default: BentoInputFieldElementPosition.START },\n error: { type: Boolean, default: false },\n modelValue: { default: undefined },\n slashedZero: { type: Boolean, default: false },\n staticValue: { default: '' },\n staticValuePosition: { default: BentoInputFieldElementPosition.START },\n type: { default: BentoInputFieldType.TEXT },\n value: { default: undefined },\n variant: { default: BentoInputFieldVariant.DEFAULT }\n});\n\n const emit = defineEmits([\"blur\", \"click\", \"change\", \"dropdown-input\", \"escape-pressed\", \"focus\", \"keydown\", \"keyup\", \"input\", \"update:dropdown\", \"update:model-value\"]);\n\n const { emitValue } = useFormFieldEmits<BentoInputFieldValue>(emit);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputDropdownElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const isDropdownReadOnly = computed<BentoInputDropdownProps['readonly']>(\n () => isReadOnly.value || props.dropdown?.readonly\n );\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedLabel = computed(() => (getSlotText(slots)('default') as string) || props.label);\n const computedDescription = computed(() => (getSlotText(slots)('description') as string) || props.description);\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: computedLabel.value || computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${computedDescription.value ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n [`b-input-field--slashed-zero`]: props.slashedZero,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emitValue(inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n const focus = () => {\n if (props.variant === 'dropdown') {\n inputDropdownElement.value.focus();\n } else {\n focusInput();\n }\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n focus,\n });\n\n const inputFieldParentComponent = inject(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, '');\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType) && !inputFieldParentComponent) {\n if (props.type === 'tel') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-phone-number\" instead.`\n );\n } else if (props.type === 'password') {\n printDevelopmentWarning(\n `\"bento-input-field\" dropdown does not support the type '${props.type}', use \"bento-input-field-password\" instead.`\n );\n } else {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type '${props.type}'`);\n }\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n\n if (props.value) {\n deprecate(\n 'BentoInputField \"value\" property',\n `The use of \"value\" prop in \"BentoInputField\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :model-value=\"inputValue\"\n * :@update:model-value=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n name: 'bento-input-field',\n model: { prop: 'modelValue' },\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","emitValue","useFormFieldEmits","emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputDropdownElement","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","props","isDropdownReadOnly","computed","_a","shouldShowStaticValue","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedLabel","getSlotText","computedDescription","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","focus","expose","inputFieldParentComponent","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","printDevelopmentWarning","deprecate"],"mappings":";;;;;;;;;;;;;AAMY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,iBAAA,kBACAA,EAAA,eAAA,gBACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAUAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,MAAA,OAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAJQA,IAAAD,KAAA,CAAA,CAAA,GAUAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA,GA0CAE,KAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,kBAAA,mBACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,UAAA,WARQA,IAAAD,MAAA,CAAA,CAAA;;;;;;;;;;;;;;GCyXRE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAAA,EACsB,MAAA,EAAA,UAAAC,GAAA;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAvPAC,IAAAC,GAAA,GACAC,IAAAC,GAAA,GA6BA,EA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AA;AAAA;AAAA,MACA;AAAA,IAMA,GAIRtC,EAAA,SACIsC;AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,24 +1,24 @@
1
- import { ref as l, watch as h, defineComponent as L, computed as v, nextTick as S } from "vue";
2
- import { d as x, B as k } from "./typography.Bq-EGj9y.js";
3
- import { B as A } from "./button.C5GvPqe5.js";
4
- import { B as M } from "./loading-indicator.PxbRzshH.js";
1
+ import { ref as p, watch as T, defineComponent as F, computed as v, nextTick as L } from "vue";
2
+ import { d as x, B as M } from "./typography.Bq-EGj9y.js";
3
+ import { B as k } from "./button.DIU6m9wD.js";
4
+ import { B as A } from "./loading-indicator.PxbRzshH.js";
5
5
  import { B as I, s as O, g as H, a as w, f as D } from "./focus-trap.CNIU5jOz.js";
6
6
  import { E as P } from "./expand.Bbielaja.js";
7
7
  import { C as R } from "./cross.CC_B-vG-.js";
8
8
  import { g as z } from "./generate-uid.NJ8tVoha.js";
9
9
  import { u as N } from "./index.B6WW_F-J.js";
10
- import { a as $, b as G } from "./index.BDK4hwK_.js";
11
- import { n as K } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
10
+ import { a as V, b as $ } from "./index.BDK4hwK_.js";
11
+ import { n as G } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
12
12
  import "../assets/inspector.css";
13
- function V(r) {
14
- const t = l([]), e = $();
15
- return h(e, (o) => {
16
- !r.value || !o || !r.value.contains(o) || (t.value.unshift(o), t.value.length > 3 && t.value.pop());
13
+ function K(r) {
14
+ const t = p([]), e = V();
15
+ return T(e, (a) => {
16
+ !r.value || !a || !r.value.contains(a) || (t.value.unshift(a), t.value.length > 3 && t.value.pop());
17
17
  }), {
18
18
  findValidFocusFallback: () => {
19
- for (const o of t.value)
20
- if (o && document.body.contains(o))
21
- return o;
19
+ for (const a of t.value)
20
+ if (a && document.body.contains(a))
21
+ return a;
22
22
  return null;
23
23
  }
24
24
  };
@@ -33,13 +33,19 @@ const Y = {
33
33
  },
34
34
  "ja-JP": {
35
35
  close: "閉じる",
36
- expand: "展開"
36
+ expand: "展開",
37
+ inspector: "インスペクター",
38
+ returnToMainContent: "メインコンテンツに戻る(Ctrl+Shift+S)",
39
+ returnToMainContentDescription: "Ctrl + Shift + S を使用して、インスペクターとページセクション間を移動できます。"
37
40
  },
38
41
  "pt-BR": {
39
42
  close: "Fechar",
40
- expand: "Expandir"
43
+ expand: "Expandir",
44
+ inspector: "Inspetor",
45
+ returnToMainContent: "Voltar ao conteúdo principal (Ctrl+Shift+S)",
46
+ returnToMainContentDescription: "Você pode usar Ctrl + Shift + S para navegar entre as seções do inspetor e da página."
41
47
  }
42
- }, U = { i18n: { messages: Y } }, X = /* @__PURE__ */ L({
48
+ }, U = { i18n: { messages: Y } }, X = /* @__PURE__ */ F({
43
49
  ...U,
44
50
  __name: "inspector",
45
51
  props: {
@@ -54,29 +60,29 @@ const Y = {
54
60
  },
55
61
  emits: ["update:is-open", "update:active-page", "expand"],
56
62
  setup(r, { emit: n }) {
57
- const t = r, { t: e } = N(), s = z("returnToMainContentDescription"), o = l(null), p = l(null), g = l(null), u = l(null), { width: m } = G(o), d = v(() => {
63
+ const t = r, { t: e } = N(), s = z("returnToMainContentDescription"), a = p(null), l = p(null), g = p(null), u = p(null), { width: m } = $(a), d = v(() => {
58
64
  const C = t.size === "small" ? 740 : 915;
59
65
  return m.value > 0 && m.value < C;
60
- }), c = v(() => t.pageFocusAnchor), T = v(() => ({
66
+ }), c = v(() => t.pageFocusAnchor), y = v(() => ({
61
67
  [`b-inspector--${t.size}`]: !0,
62
68
  [`b-inspector--${t.relativeLayout}`]: !0,
63
69
  "b-inspector--is-compact": d.value
64
- })), B = v(() => `${e("inspector")}, ${t.title}`), { findValidFocusFallback: f } = V(g), b = async () => {
65
- t.isOpen ? (await S(), O(p.value, c.value)) : i(c.value ?? f());
66
- }, E = (a) => {
70
+ })), S = v(() => `${e("inspector")}, ${t.title}`), { findValidFocusFallback: f } = K(g), b = async () => {
71
+ t.isOpen ? (await L(), O(l.value, c.value)) : i(c.value ?? f());
72
+ }, B = (o) => {
67
73
  if (d.value)
68
74
  return;
69
- const _ = a.shiftKey ? -1 : 1, C = H(_, p.value);
70
- w() === C && (a.preventDefault(), u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0));
71
- }, F = (a) => {
72
- const _ = a.shiftKey && a.ctrlKey && a.key === "S";
73
- t.isOpen && !d.value && _ && y();
74
- }, y = () => {
75
- D(p.value) ? (u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0)) : i(u.value);
76
- }, i = (a) => {
77
- a && (a == null || a.focus(), document.activeElement !== a && i(a.parentElement));
75
+ const _ = o.shiftKey ? -1 : 1, C = H(_, l.value);
76
+ w() === C && (o.preventDefault(), u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0));
77
+ }, E = (o) => {
78
+ const _ = o.shiftKey && o.ctrlKey && o.key === "S";
79
+ t.isOpen && !d.value && _ && h();
80
+ }, h = () => {
81
+ D(l.value) ? (u.value = document.activeElement, i(c.value ?? f()), n("update:active-page", void 0)) : i(u.value);
82
+ }, i = (o) => {
83
+ o && (o == null || o.focus(), document.activeElement !== o && i(o.parentElement));
78
84
  };
79
- return h(
85
+ return T(
80
86
  () => t.activePage,
81
87
  () => {
82
88
  t.activePage && b();
@@ -86,7 +92,7 @@ const Y = {
86
92
  `Make sure to set the "active-page" prop and keep it in sync with "update:active-page".
87
93
  "active-page" prop will be required in the next version`,
88
94
  "2.0.0"
89
- ), { __sfc: !0, props: t, emit: n, t: e, returnToMainContentDescriptionId: s, wrapper: o, inspector: p, page: g, inspectorLastFocusedElement: u, wrapperWidth: m, isCompact: d, computedPageLastFocusedElement: c, conditionalClass: T, inspectorAriaLabel: B, findValidFocusFallback: f, setFocus: b, handleTabNavigation: E, handleSectionFocus: F, moveFocusBetweenSections: y, focusElement: i, BentoTypography: k, BentoButton: A, BentoLoadingIndicator: M, BentoFocusTrap: I, ExpandIcon: P, CrossIcon: R };
95
+ ), { __sfc: !0, props: t, emit: n, t: e, returnToMainContentDescriptionId: s, wrapper: a, inspector: l, page: g, inspectorLastFocusedElement: u, wrapperWidth: m, isCompact: d, computedPageLastFocusedElement: c, conditionalClass: y, inspectorAriaLabel: S, findValidFocusFallback: f, setFocus: b, handleTabNavigation: B, handleSectionFocus: E, moveFocusBetweenSections: h, focusElement: i, BentoTypography: M, BentoButton: k, BentoLoadingIndicator: A, BentoFocusTrap: I, ExpandIcon: P, CrossIcon: R };
90
96
  }
91
97
  });
92
98
  var j = function() {
@@ -102,7 +108,7 @@ var j = function() {
102
108
  } }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
103
109
  return [t(e.CrossIcon, { attrs: { "svg-title": e.t("close") } })];
104
110
  }, proxy: !0 }], null, !1, 858730413) })], 1)], 2), t("div", { staticClass: "b-inspector__content" }, [n.loading ? t(e.BentoLoadingIndicator, { staticClass: "b-inspector__loading-indicator", attrs: { large: "" } }) : n._t("content")], 2)])])], 1) : n._e()])], 1);
105
- }, q = [], J = /* @__PURE__ */ K(
111
+ }, q = [], J = /* @__PURE__ */ G(
106
112
  X,
107
113
  j,
108
114
  q,
@@ -114,4 +120,4 @@ const ct = J.exports;
114
120
  export {
115
121
  ct as B
116
122
  };
117
- //# sourceMappingURL=inspector.2A5vWUou.js.map
123
+ //# sourceMappingURL=inspector.C0iAxxoz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inspector.2A5vWUou.js","sources":["../../src/components/inspector/composables/use-focus-history/use-focus-history.ts","../../src/components/inspector/inspector.vue"],"sourcesContent":["import { ref, type Ref } from 'vue';\nimport { useActiveElement } from '@vueuse/core';\nimport { watch } from 'vue';\n\n/**\n * A composable to track the focus history within a target element.\n * @param targetEl The stable parent element to monitor for focus changes.\n */\nexport function useFocusHistory(targetEl: Ref<HTMLElement | null>) {\n const MAX_HISTORY_LENGTH = 3;\n\n const focusHistory = ref<Array<Element>>([]);\n\n const currentActiveElement = useActiveElement();\n\n // Edge case 1:\n // While the inspector is opened, if user tabs through the data-grid to the inspector, and closes it,\n // it returns to the last element on the data grid regardless if it is a data-grid-cell.\n //\n // Edge case 2:\n // Buttons or actions teleported out of the data-grid may have the focus shifted into a different context.\n watch(currentActiveElement, newlyFocusedElement => {\n // Check if the newly focused element is a child of our target container.\n if (!targetEl.value || !newlyFocusedElement || !targetEl.value.contains(newlyFocusedElement)) {\n return;\n }\n\n // Add the focused element to the history\n focusHistory.value.unshift(newlyFocusedElement);\n\n if (focusHistory.value.length > MAX_HISTORY_LENGTH) {\n focusHistory.value.pop();\n }\n });\n\n /**\n * Iterates through the focus history to find the first valid element\n * that is still present in the DOM.\n * @returns The first valid historical element, or null if none are found.\n */\n const findValidFocusFallback = (): HTMLElement | null => {\n for (const el of focusHistory.value) {\n if (el && document.body.contains(el as Node)) {\n return el as HTMLElement;\n }\n }\n\n return null; // No valid fallback found\n };\n\n return {\n findValidFocusFallback,\n };\n}\n","<template>\n <div ref=\"wrapper\" class=\"b-inspector\" :class=\"conditionalClass\" @keydown=\"handleSectionFocus\">\n <div ref=\"page\" class=\"b-inspector__page-wrapper\">\n <div class=\"b-inspector__page\">\n <slot name=\"page\" />\n </div>\n </div>\n <Transition name=\"b-inspector__animation\" mode=\"out-in\" @before-enter=\"setFocus\" @after-leave=\"setFocus\">\n <aside\n v-if=\"isOpen\"\n ref=\"inspector\"\n class=\"b-inspector__container-wrapper\"\n :aria-label=\"inspectorAriaLabel\"\n @keydown.tab=\"handleTabNavigation\"\n >\n <bento-focus-trap :disabled=\"!isCompact\">\n <div class=\"b-inspector__container\">\n <div class=\"b-inspector__header\">\n <template v-if=\"!isCompact\">\n <bento-button\n class=\"b-inspector__return-content\"\n variant=\"secondary\"\n condensed\n :aria-describedby=\"returnToMainContentDescriptionId\"\n @click=\"moveFocusBetweenSections\"\n >\n {{ t('returnToMainContent') }}\n </bento-button>\n <span\n :id=\"returnToMainContentDescriptionId\"\n class=\"b-inspector__return-content-description\"\n >{{ t('returnToMainContentDescription') }}</span\n >\n </template>\n <bento-typography el=\"h2\" variant=\"title\" class=\"b-inspector__title\">\n {{ title }}\n </bento-typography>\n <div class=\"b-inspector__icons\">\n <bento-button v-if=\"expandable\" variant=\"tertiary\" @click=\"emit('expand')\">\n <template #iconLeft><expand-icon :svg-title=\"t('expand')\"></expand-icon></template>\n </bento-button>\n <bento-button variant=\"tertiary\" @click=\"emit('update:is-open', false)\">\n <template #iconLeft><cross-icon :svg-title=\"t('close')\"></cross-icon></template>\n </bento-button>\n </div>\n </div>\n <div class=\"b-inspector__content\">\n <bento-loading-indicator v-if=\"loading\" large class=\"b-inspector__loading-indicator\" />\n <slot v-else name=\"content\" />\n </div>\n </div>\n </bento-focus-trap>\n </aside>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, ref, watch } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import ExpandIcon from '@adyen/ui-assets-icons-16/vue/expand';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { deprecate } from '@/utils/ts/deprecate';\n import { getNextFocusableElement } from '@/utils/ts/focus-trap.utils';\n import { useElementSize } from '@vueuse/core';\n import moveFocusInside, { focusInside, getActiveElement } from 'focus-lock';\n\n import { type BentoInspectorProps } from './inspector.types';\n import { useFocusHistory } from './composables/use-focus-history/use-focus-history';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n activePage: { default: '' },\n expandable: { type: Boolean, default: false },\n isOpen: { type: Boolean, default: false },\n loading: { type: Boolean, default: false },\n size: { default: 'small' },\n title: null,\n relativeLayout: { default: 'push-content' },\n pageFocusAnchor: { default: null }\n});\n\n const emit = defineEmits([\"update:is-open\", \"update:active-page\", \"expand\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const returnToMainContentDescriptionId = generateUid('returnToMainContentDescription');\n const wrapper = ref<HTMLElement>(null);\n const inspector = ref<HTMLElement>(null);\n const page = ref<HTMLElement>(null);\n const inspectorLastFocusedElement = ref<HTMLElement>(null);\n\n const { width: wrapperWidth } = useElementSize(wrapper);\n\n const isCompact = computed(() => {\n const COMPACT_THRESHOLD_SMALL = 740;\n const COMPACT_THRESHOLD_LARGE = 915;\n\n // small inspector to occupy full screen if < 740px\n // large inspector to occupy full screen if < 915px\n const threshold = props.size === 'small' ? COMPACT_THRESHOLD_SMALL : COMPACT_THRESHOLD_LARGE;\n\n return wrapperWidth.value > 0 && wrapperWidth.value < threshold;\n });\n\n const computedPageLastFocusedElement = computed(() => props.pageFocusAnchor);\n\n const conditionalClass = computed(() => ({\n [`b-inspector--${props.size}`]: true,\n [`b-inspector--${props.relativeLayout}`]: true,\n [`b-inspector--is-compact`]: isCompact.value,\n }));\n\n const inspectorAriaLabel = computed(() => `${t('inspector')}, ${props.title}`);\n\n const { findValidFocusFallback } = useFocusHistory(page);\n\n const setFocus = async () => {\n if (props.isOpen) {\n await nextTick();\n moveFocusInside(inspector.value, computedPageLastFocusedElement.value);\n } else {\n // This doesn't work with data grid cell actions, as the button gets destroyed once is not being hovered.\n // To be reviewed after LevelAccess revision\n focusElement(computedPageLastFocusedElement.value ?? findValidFocusFallback());\n }\n };\n\n const handleTabNavigation = event => {\n if (isCompact.value) {\n return;\n }\n const direction = event.shiftKey ? -1 : 1;\n const focusableEl = getNextFocusableElement(direction, inspector.value);\n // If the nextfocusableEl is the same as the activeElement that means it's the last focusable element\n // inside the inspector, so the focus is moved back to the last focused element on the page\n if (getActiveElement() === focusableEl) {\n event.preventDefault();\n inspectorLastFocusedElement.value = document.activeElement as HTMLElement;\n focusElement(computedPageLastFocusedElement.value ?? findValidFocusFallback());\n // Set active-page as undefined when focus is not on page\n emit('update:active-page', undefined);\n }\n };\n\n const handleSectionFocus = event => {\n const sectionShortcut = event.shiftKey && event.ctrlKey && event.key === 'S';\n if (props.isOpen && !isCompact.value && sectionShortcut) {\n moveFocusBetweenSections();\n }\n };\n\n const moveFocusBetweenSections = () => {\n if (focusInside(inspector.value)) {\n inspectorLastFocusedElement.value = document.activeElement as HTMLElement;\n focusElement(computedPageLastFocusedElement.value ?? findValidFocusFallback());\n // Set active-page as undefined when focus is not on page\n emit('update:active-page', undefined);\n } else {\n focusElement(inspectorLastFocusedElement.value);\n }\n };\n\n const focusElement = (element: HTMLElement) => {\n if (!element) {\n return;\n }\n element?.focus();\n if (document.activeElement !== element) {\n focusElement(element.parentElement);\n }\n };\n\n watch(\n () => props.activePage,\n () => {\n if (props.activePage) {\n setFocus();\n }\n }\n );\n\n if (!props.activePage) {\n deprecate(\n 'BentoInspector \"active-page\" as optional',\n `Make sure to set the \"active-page\" prop and keep it in sync with \"update:active-page\".\n \"active-page\" prop will be required in the next version`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Inspector allows users to access additional information or details of an object/item. The inspector opens adjacent to the main content, pushing it aside to maintain visibility and accessibility to both the main content and inspector.\n *\n * @example\n * import { BentoInspector } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInspector },\n * template: `\n * <bento-inspector\n * title=\"Inspector\"\n * size=\"large\"\n * :is-open=\"isOpen\"\n * :active-page=\"activePage\"\n * expandable\n * @update:is-open=\"isOpen = $event\"\n * @update:active-page=\"activePage = $event\"\n * >\n * <template #page>Content of the page</template>\n * <template #content>Content of the inspector</template>\n * </bento-inspector>\n * `\n * }\n */\n export default { i18n: { messages } };\n</script>\n\n<style lang=\"scss\" scoped src=\"./inspector.scss\" />\n"],"names":["useFocusHistory","targetEl","focusHistory","ref","currentActiveElement","useActiveElement","watch","newlyFocusedElement","el","__default__","messages","t","useI18n","returnToMainContentDescriptionId","generateUid","wrapper","inspector","page","inspectorLastFocusedElement","wrapperWidth","useElementSize","isCompact","computed","threshold","props","computedPageLastFocusedElement","conditionalClass","inspectorAriaLabel","findValidFocusFallback","setFocus$1","nextTick","setFocus","focusElement","handleTabNavigation","event","direction","focusableEl","getNextFocusableElement","getActiveElement","emit","handleSectionFocus","sectionShortcut","moveFocusBetweenSections","focusInside","element","deprecate"],"mappings":";;;;;;;;;;;;AAQO,SAAAA,EAAAC,GAAA;AAGH,QAAAC,IAAAC,EAAA,CAAA,CAAA,GAEAC,IAAAC,EAAA;AAQA,SAAAC,EAAAF,GAAA,CAAAG,MAAA;AAEI,IAAA,CAAAN,EAAA,SAAA,CAAAM,KAAA,CAAAN,EAAA,MAAA,SAAAM,CAAA,MAKAL,EAAA,MAAA,QAAAK,CAAA,GAEAL,EAAA,MAAA,SAAA,KACIA,EAAA,MAAA,IAAA;AAAA,EACJ,CAAA,GAkBJ;AAAA,IAAO,wBAVP,MAAA;AACI,iBAAAM,KAAAN,EAAA;AACI,YAAAM,KAAA,SAAA,KAAA,SAAAA,CAAA;AACI,iBAAAA;AAIR,aAAA;AAAA,IAAO;AAAA,EAIP;AAER;;;;;;;;;;;;;;;;;GC2KIC,IAAA,EAAA,MAAA,EAAA,UAAAC,EAAA,EAAA;;;;;;;;;;;;;;;iBApIA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,gCAAA,GACAC,IAAAZ,EAAA,IAAA,GACAa,IAAAb,EAAA,IAAA,GACAc,IAAAd,EAAA,IAAA,GACAe,IAAAf,EAAA,IAAA,GAEA,EAAA,OAAAgB,EAAA,IAAAC,EAAAL,CAAA,GAEAM,IAAAC,EAAA,MAAA;AAMI,YAAAC,IAAAC,EAAA,SAAA,UAAA,MAAA;AAEA,aAAAL,EAAA,QAAA,KAAAA,EAAA,QAAAI;AAAA,IAAsD,CAAA,GAG1DE,IAAAH,EAAA,MAAAE,EAAA,eAAA,GAEAE,IAAAJ,EAAA,OAAA;AAAA,MAAyC,CAAA,gBAAAE,EAAA,IAAA,EAAA,GAAA;A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AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"inspector.C0iAxxoz.js","sources":["../../src/components/inspector/composables/use-focus-history/use-focus-history.ts","../../src/components/inspector/inspector.vue"],"sourcesContent":["import { ref, type Ref } from 'vue';\nimport { useActiveElement } from '@vueuse/core';\nimport { watch } from 'vue';\n\n/**\n * A composable to track the focus history within a target element.\n * @param targetEl The stable parent element to monitor for focus changes.\n */\nexport function useFocusHistory(targetEl: Ref<HTMLElement | null>) {\n const MAX_HISTORY_LENGTH = 3;\n\n const focusHistory = ref<Array<Element>>([]);\n\n const currentActiveElement = useActiveElement();\n\n // Edge case 1:\n // While the inspector is opened, if user tabs through the data-grid to the inspector, and closes it,\n // it returns to the last element on the data grid regardless if it is a data-grid-cell.\n //\n // Edge case 2:\n // Buttons or actions teleported out of the data-grid may have the focus shifted into a different context.\n watch(currentActiveElement, newlyFocusedElement => {\n // Check if the newly focused element is a child of our target container.\n if (!targetEl.value || !newlyFocusedElement || !targetEl.value.contains(newlyFocusedElement)) {\n return;\n }\n\n // Add the focused element to the history\n focusHistory.value.unshift(newlyFocusedElement);\n\n if (focusHistory.value.length > MAX_HISTORY_LENGTH) {\n focusHistory.value.pop();\n }\n });\n\n /**\n * Iterates through the focus history to find the first valid element\n * that is still present in the DOM.\n * @returns The first valid historical element, or null if none are found.\n */\n const findValidFocusFallback = (): HTMLElement | null => {\n for (const el of focusHistory.value) {\n if (el && document.body.contains(el as Node)) {\n return el as HTMLElement;\n }\n }\n\n return null; // No valid fallback found\n };\n\n return {\n findValidFocusFallback,\n };\n}\n","<template>\n <div ref=\"wrapper\" class=\"b-inspector\" :class=\"conditionalClass\" @keydown=\"handleSectionFocus\">\n <div ref=\"page\" class=\"b-inspector__page-wrapper\">\n <div class=\"b-inspector__page\">\n <slot name=\"page\" />\n </div>\n </div>\n <Transition name=\"b-inspector__animation\" mode=\"out-in\" @before-enter=\"setFocus\" @after-leave=\"setFocus\">\n <aside\n v-if=\"isOpen\"\n ref=\"inspector\"\n class=\"b-inspector__container-wrapper\"\n :aria-label=\"inspectorAriaLabel\"\n @keydown.tab=\"handleTabNavigation\"\n >\n <bento-focus-trap :disabled=\"!isCompact\">\n <div class=\"b-inspector__container\">\n <div class=\"b-inspector__header\">\n <template v-if=\"!isCompact\">\n <bento-button\n class=\"b-inspector__return-content\"\n variant=\"secondary\"\n condensed\n :aria-describedby=\"returnToMainContentDescriptionId\"\n @click=\"moveFocusBetweenSections\"\n >\n {{ t('returnToMainContent') }}\n </bento-button>\n <span\n :id=\"returnToMainContentDescriptionId\"\n class=\"b-inspector__return-content-description\"\n >{{ t('returnToMainContentDescription') }}</span\n >\n </template>\n <bento-typography el=\"h2\" variant=\"title\" class=\"b-inspector__title\">\n {{ title }}\n </bento-typography>\n <div class=\"b-inspector__icons\">\n <bento-button v-if=\"expandable\" variant=\"tertiary\" @click=\"emit('expand')\">\n <template #iconLeft><expand-icon :svg-title=\"t('expand')\"></expand-icon></template>\n </bento-button>\n <bento-button variant=\"tertiary\" @click=\"emit('update:is-open', false)\">\n <template #iconLeft><cross-icon :svg-title=\"t('close')\"></cross-icon></template>\n </bento-button>\n </div>\n </div>\n <div class=\"b-inspector__content\">\n <bento-loading-indicator v-if=\"loading\" large class=\"b-inspector__loading-indicator\" />\n <slot v-else name=\"content\" />\n </div>\n </div>\n </bento-focus-trap>\n </aside>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, ref, watch } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoButton } from '@/components/button';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import ExpandIcon from '@adyen/ui-assets-icons-16/vue/expand';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { deprecate } from '@/utils/ts/deprecate';\n import { getNextFocusableElement } from '@/utils/ts/focus-trap.utils';\n import { useElementSize } from '@vueuse/core';\n import moveFocusInside, { focusInside, getActiveElement } from 'focus-lock';\n\n import { type BentoInspectorProps } from './inspector.types';\n import { useFocusHistory } from './composables/use-focus-history/use-focus-history';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n activePage: { default: '' },\n expandable: { type: Boolean, default: false },\n isOpen: { type: Boolean, default: false },\n loading: { type: Boolean, default: false },\n size: { default: 'small' },\n title: null,\n relativeLayout: { default: 'push-content' },\n pageFocusAnchor: { default: null }\n});\n\n const emit = defineEmits([\"update:is-open\", \"update:active-page\", \"expand\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const returnToMainContentDescriptionId = generateUid('returnToMainContentDescription');\n const wrapper = ref<HTMLElement>(null);\n const inspector = ref<HTMLElement>(null);\n const page = ref<HTMLElement>(null);\n const inspectorLastFocusedElement = ref<HTMLElement>(null);\n\n const { width: wrapperWidth } = useElementSize(wrapper);\n\n const isCompact = computed(() => {\n const COMPACT_THRESHOLD_SMALL = 740;\n const COMPACT_THRESHOLD_LARGE = 915;\n\n // small inspector to occupy full screen if < 740px\n // large inspector to occupy full screen if < 915px\n const threshold = props.size === 'small' ? COMPACT_THRESHOLD_SMALL : COMPACT_THRESHOLD_LARGE;\n\n return wrapperWidth.value > 0 && wrapperWidth.value < threshold;\n });\n\n const computedPageLastFocusedElement = computed(() => props.pageFocusAnchor);\n\n const conditionalClass = computed(() => ({\n [`b-inspector--${props.size}`]: true,\n [`b-inspector--${props.relativeLayout}`]: true,\n [`b-inspector--is-compact`]: isCompact.value,\n }));\n\n const inspectorAriaLabel = computed(() => `${t('inspector')}, ${props.title}`);\n\n const { findValidFocusFallback } = useFocusHistory(page);\n\n const setFocus = async () => {\n if (props.isOpen) {\n await nextTick();\n moveFocusInside(inspector.value, computedPageLastFocusedElement.value);\n } else {\n // This doesn't work with data grid cell actions, as the button gets destroyed once is not being hovered.\n // To be reviewed after LevelAccess revision\n focusElement(computedPageLastFocusedElement.value ?? findValidFocusFallback());\n }\n };\n\n const handleTabNavigation = event => {\n if (isCompact.value) {\n return;\n }\n const direction = event.shiftKey ? -1 : 1;\n const focusableEl = getNextFocusableElement(direction, inspector.value);\n // If the nextfocusableEl is the same as the activeElement that means it's the last focusable element\n // inside the inspector, so the focus is moved back to the last focused element on the page\n if (getActiveElement() === focusableEl) {\n event.preventDefault();\n inspectorLastFocusedElement.value = document.activeElement as HTMLElement;\n focusElement(computedPageLastFocusedElement.value ?? findValidFocusFallback());\n // Set active-page as undefined when focus is not on page\n emit('update:active-page', undefined);\n }\n };\n\n const handleSectionFocus = event => {\n const sectionShortcut = event.shiftKey && event.ctrlKey && event.key === 'S';\n if (props.isOpen && !isCompact.value && sectionShortcut) {\n moveFocusBetweenSections();\n }\n };\n\n const moveFocusBetweenSections = () => {\n if (focusInside(inspector.value)) {\n inspectorLastFocusedElement.value = document.activeElement as HTMLElement;\n focusElement(computedPageLastFocusedElement.value ?? findValidFocusFallback());\n // Set active-page as undefined when focus is not on page\n emit('update:active-page', undefined);\n } else {\n focusElement(inspectorLastFocusedElement.value);\n }\n };\n\n const focusElement = (element: HTMLElement) => {\n if (!element) {\n return;\n }\n element?.focus();\n if (document.activeElement !== element) {\n focusElement(element.parentElement);\n }\n };\n\n watch(\n () => props.activePage,\n () => {\n if (props.activePage) {\n setFocus();\n }\n }\n );\n\n if (!props.activePage) {\n deprecate(\n 'BentoInspector \"active-page\" as optional',\n `Make sure to set the \"active-page\" prop and keep it in sync with \"update:active-page\".\n \"active-page\" prop will be required in the next version`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Inspector allows users to access additional information or details of an object/item. The inspector opens adjacent to the main content, pushing it aside to maintain visibility and accessibility to both the main content and inspector.\n *\n * @example\n * import { BentoInspector } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInspector },\n * template: `\n * <bento-inspector\n * title=\"Inspector\"\n * size=\"large\"\n * :is-open=\"isOpen\"\n * :active-page=\"activePage\"\n * expandable\n * @update:is-open=\"isOpen = $event\"\n * @update:active-page=\"activePage = $event\"\n * >\n * <template #page>Content of the page</template>\n * <template #content>Content of the inspector</template>\n * </bento-inspector>\n * `\n * }\n */\n export default { i18n: { messages } };\n</script>\n\n<style lang=\"scss\" scoped src=\"./inspector.scss\" />\n"],"names":["useFocusHistory","targetEl","focusHistory","ref","currentActiveElement","useActiveElement","watch","newlyFocusedElement","el","__default__","messages","t","useI18n","returnToMainContentDescriptionId","generateUid","wrapper","inspector","page","inspectorLastFocusedElement","wrapperWidth","useElementSize","isCompact","computed","threshold","props","computedPageLastFocusedElement","conditionalClass","inspectorAriaLabel","findValidFocusFallback","setFocus$1","nextTick","setFocus","focusElement","handleTabNavigation","event","direction","focusableEl","getNextFocusableElement","getActiveElement","emit","handleSectionFocus","sectionShortcut","moveFocusBetweenSections","focusInside","element","deprecate"],"mappings":";;;;;;;;;;;;AAQO,SAAAA,EAAAC,GAAA;AAGH,QAAAC,IAAAC,EAAA,CAAA,CAAA,GAEAC,IAAAC,EAAA;AAQA,SAAAC,EAAAF,GAAA,CAAAG,MAAA;AAEI,IAAA,CAAAN,EAAA,SAAA,CAAAM,KAAA,CAAAN,EAAA,MAAA,SAAAM,CAAA,MAKAL,EAAA,MAAA,QAAAK,CAAA,GAEAL,EAAA,MAAA,SAAA,KACIA,EAAA,MAAA,IAAA;AAAA,EACJ,CAAA,GAkBJ;AAAA,IAAO,wBAVP,MAAA;AACI,iBAAAM,KAAAN,EAAA;AACI,YAAAM,KAAA,SAAA,KAAA,SAAAA,CAAA;AACI,iBAAAA;AAIR,aAAA;AAAA,IAAO;AAAA,EAIP;AAER;;;;;;;;;;;;;;;;;;;;;;;GC2KIC,IAAA,EAAA,MAAA,EAAA,UAAAC,EAAA,EAAA;;;;;;;;;;;;;;;iBApIA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,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A;AACI,MAAAC,EAAA3B,EAAA,KAAA,KACIE,EAAA,QAAA,SAAA,eACAc,EAAAP,EAAA,SAAAG,EAAA,CAAA,GAEAW,EAAA,sBAAA,MAAA,KAEAP,EAAAd,EAAA,KAAA;AAAA,IACJ,GAGJc,IAAA,CAAAY,MAAA;AACI,MAAAA,MAGAA,KAAA,QAAAA,EAAA,SACA,SAAA,kBAAAA,KACIZ,EAAAY,EAAA,aAAA;AAAA,IACJ;AAGJ,WAAAtC;AAAA,MAAA,MAAAkB,EAAA;AAAA,MACgB,MAAA;AAER,QAAAA,EAAA,cACIK,EAAA;AAAA,MACJ;AAAA,IACJ,GAGJL,EAAA,cACIqB;AAAA,MAAA;AAAA,MACI;AAAA;AAAA,MACA;AAAA,IAEA;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"inspector.types.DyHwE18g.js","sources":["../../src/components/inspector/inspector.types.ts"],"sourcesContent":["export const BentoInspectorSizeOptions = ['small', 'large'] as const;\n\nexport type BentoInspectorRelativeLayout = 'push-content' | 'overlay-content';\n\nexport type BentoInspectorSize = (typeof BentoInspectorSizeOptions)[number];\n\nexport interface BentoInspectorProps {\n /**\n * ID of the current active inspector page\n */\n activePage?: string;\n\n /**\n * Shows the Expand icon in the inspector\n */\n expandable?: boolean;\n\n /**\n * Opens and closes the inspector\n */\n isOpen?: boolean;\n\n /**\n * Shows loading indicator for the content\n */\n loading?: boolean;\n\n /**\n * Determines the size of the inspector\n */\n size?: BentoInspectorSize;\n\n /**\n * The title of the component\n */\n title: string;\n\n /**\n * The appearance of the inspector relative to the main content. Defaults to `push-content`.\n *\n * - `push-content`: The inspector pushes the main content to the side, resizing it to fit.\n * - `overlay-content`: The inspector opens on top of the main content, without affecting its layout.\n */\n relativeLayout?: BentoInspectorRelativeLayout;\n\n /**\n * An optional HTMLElement to focus on when returning focus from the inspector\n * to the main page content (e.g. via the `Ctrl+Shift+S` keyboard shortcut).\n *\n * By default, the inspector attempts to return focus to the element that was active before it opened.\n * However, if that trigger element is removed from the DOM (e.g., via a `v-if`), focus cannot be returned.\n *\n * Providing a `pageFocusAnchor` (e.g. role=\"gridcell\") ensures that the\n * focus context is preserved for accessibility.\n */\n pageFocusAnchor?: HTMLElement;\n}\n"],"names":["BentoInspectorSizeOptions"],"mappings":"AAAO,MAAMA,IAA4B,CAAC,SAAS,OAAO;"}
1
+ {"version":3,"file":"inspector.types.DyHwE18g.js","sources":["../../src/components/inspector/inspector.types.ts"],"sourcesContent":["export const BentoInspectorSizeOptions = ['small', 'large'] as const;\n\nexport type BentoInspectorRelativeLayout = 'push-content' | 'overlay-content';\n\nexport type BentoInspectorSize = (typeof BentoInspectorSizeOptions)[number];\n\nexport interface BentoInspectorProps {\n /**\n * ID of the current active inspector page\n */\n activePage?: string;\n\n /**\n * Shows the Expand icon in the inspector\n */\n expandable?: boolean;\n\n /**\n * Opens and closes the inspector\n */\n isOpen?: boolean;\n\n /**\n * Shows loading indicator for the content\n */\n loading?: boolean;\n\n /**\n * Determines the size of the inspector\n */\n size?: BentoInspectorSize;\n\n /**\n * The title of the component\n */\n title: string;\n\n /**\n * The appearance of the inspector relative to the main content. Defaults to `push-content`.\n *\n * - `push-content`: The inspector pushes the main content to the side, resizing it to fit.\n * - `overlay-content`: The inspector opens on top of the main content, without affecting its layout.\n */\n relativeLayout?: BentoInspectorRelativeLayout;\n\n /**\n * An optional HTMLElement to focus on when returning focus from the inspector\n * to the main page content (e.g. via the `Ctrl+Shift+S` keyboard shortcut).\n *\n * By default, the inspector attempts to return focus to the element that was active before it opened.\n * However, if that trigger element is removed from the DOM (e.g., via a `v-if`), focus cannot be returned.\n *\n * Providing a `pageFocusAnchor` (e.g. role=\"gridcell\") ensures that the\n * focus context is preserved for accessibility.\n */\n pageFocusAnchor?: HTMLElement;\n}\n"],"names":["BentoInspectorSizeOptions"],"mappings":"AAAa,MAAAA,IAA4B,CAAC,SAAS,OAAO;"}
@@ -1 +1 @@
1
- {"version":3,"file":"internal-error.BLZodVBE.js","sources":["../../src/components/empty-state/assets/large/internal-error.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M233.806%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H244.161C244.161%20213.243%20239.521%20217.894%20233.8%20217.894H233.806Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M171.648%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H182.009C182.009%20213.243%20177.369%20217.894%20171.648%20217.894Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M245.388%20207.516H121.084C115.363%20207.516%20111.544%20202.87%20112.551%20197.138L130.816%2093.3782C131.822%2087.6513%20137.279%2083%20143%2083H267.304C273.024%2083%20276.844%2087.6457%20275.837%2093.3782L257.572%20197.143C256.565%20202.87%20251.103%20207.522%20245.388%20207.522V207.516Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M240.212%20207.516H115.908C110.188%20207.516%20106.368%20202.87%20107.375%20197.138L125.634%2093.3782C126.641%2087.6513%20132.098%2083%20137.818%2083H262.122C267.843%2083%20271.663%2087.6457%20270.656%2093.3782L252.391%20197.143C251.384%20202.87%20245.922%20207.522%20240.207%20207.522L240.212%20207.516Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M241.119%20202.33C243.971%20202.33%20246.71%20200.004%20247.211%20197.143L265.476%2093.3781C265.982%2090.5175%20264.07%2088.1918%20261.206%2088.1918H136.902C134.05%2088.1918%20131.311%2090.5175%20130.81%2093.3781L112.546%20197.143C112.039%20200.004%20113.952%20202.33%20116.815%20202.33H241.119Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M182.009%20207.516H128.7C126.354%20207.516%20124.104%20208.445%20122.451%20210.112C120.797%20211.773%20118.541%20212.708%20116.201%20212.708H102.813C100.473%20212.708%2098.2175%20211.779%2096.5638%20210.112C94.91%20208.451%2092.6543%20207.516%2090.3142%20207.516H36.9824'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24%20217.894H276'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M201.743%20153.772C202.733%20148.169%20198.424%20143.022%20192.737%20143.022C186.623%20143.022%20181.397%20147.415%20180.334%20153.446L178.382%20164.517H210.743C205.056%20164.517%20200.747%20159.375%20201.737%20153.767L201.743%20153.772Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M159.869%20107.186C160.218%20105.198%20161.939%20103.756%20163.953%20103.756H228.304C230.234%20103.756%20231.702%20105.508%20231.364%20107.405L230.177%20114.129H158.637L159.863%20107.18L159.869%20107.186Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M230.183%20114.123L223.146%20154.093C222.088%20160.119%20216.857%20164.517%20210.742%20164.517C205.083%20164.517%20200.78%20159.409%20201.731%20153.829C202.687%20148.203%20198.564%20143.017%20192.866%20143.017H153.552L158.637%20114.118H230.183V114.123Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M170.951%20143.022H121.208C115.093%20143.022%20109.868%20147.415%20108.805%20153.446L104.333%20178.853L102.983%20186.523C101.824%20193.1%2098.1843%20198.979%2092.818%20202.944L86.6247%20207.516H160.258C166.372%20207.516%20171.592%20197.189%20172.661%20191.158L178.393%20164.522L180.345%20153.451C181.402%20147.426%20186.634%20143.028%20192.748%20143.028H170.957L170.951%20143.022Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M192.742%20142.465H122.754'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M122.107%20159.578L129.234%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M130.759%20159.578L120.583%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M145.857%20159.578L152.979%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M154.502%20159.578L144.332%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M115.054%20183.319L122.546%20176.939L127.823%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M127.834%20183.319L135.327%20176.939L140.603%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M140.608%20183.319L148.106%20176.939L153.383%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M165.877%20122.221L162.918%20124.738L164.994%20127.25'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M168.571%20124.738H174.854'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M177.998%20124.738H196.842'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M217.582%20136.062L220.541%20133.545L218.465%20131.034'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M160.735%20133.545H173.302'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M176.446%20133.545H185.874'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M222.167%20124.738H203.323'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M211.199%20133.545H201.771'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M198.289%20133.545H188.861'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M212.38%20136.062L216.194%20131.028'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M86.6243%20207.522H86.3093C81.3986%20207.522%2077.416%20203.535%2077.416%20198.619H149.789C149.789%20203.535%20153.771%20207.522%20158.682%20207.522H160.257H86.6243Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M98.1555%20128.359V135.319'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.3955%20135.984L88.3119%20140.905'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M75.7786%20150.76H82.7312'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["internalError"],"mappings":"AAAA,MAAAA,IAAe;"}
1
+ {"version":3,"file":"internal-error.BLZodVBE.js","sources":["../../src/components/empty-state/assets/large/internal-error.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M233.806%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H244.161C244.161%20213.243%20239.521%20217.894%20233.8%20217.894H233.806Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M171.648%20217.894H47.3439C41.6232%20217.894%2036.9824%20213.248%2036.9824%20207.516H182.009C182.009%20213.243%20177.369%20217.894%20171.648%20217.894Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M245.388%20207.516H121.084C115.363%20207.516%20111.544%20202.87%20112.551%20197.138L130.816%2093.3782C131.822%2087.6513%20137.279%2083%20143%2083H267.304C273.024%2083%20276.844%2087.6457%20275.837%2093.3782L257.572%20197.143C256.565%20202.87%20251.103%20207.522%20245.388%20207.522V207.516Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M240.212%20207.516H115.908C110.188%20207.516%20106.368%20202.87%20107.375%20197.138L125.634%2093.3782C126.641%2087.6513%20132.098%2083%20137.818%2083H262.122C267.843%2083%20271.663%2087.6457%20270.656%2093.3782L252.391%20197.143C251.384%20202.87%20245.922%20207.522%20240.207%20207.522L240.212%20207.516Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M241.119%20202.33C243.971%20202.33%20246.71%20200.004%20247.211%20197.143L265.476%2093.3781C265.982%2090.5175%20264.07%2088.1918%20261.206%2088.1918H136.902C134.05%2088.1918%20131.311%2090.5175%20130.81%2093.3781L112.546%20197.143C112.039%20200.004%20113.952%20202.33%20116.815%20202.33H241.119Z'%20fill='%23EEF0F3'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M182.009%20207.516H128.7C126.354%20207.516%20124.104%20208.445%20122.451%20210.112C120.797%20211.773%20118.541%20212.708%20116.201%20212.708H102.813C100.473%20212.708%2098.2175%20211.779%2096.5638%20210.112C94.91%20208.451%2092.6543%20207.516%2090.3142%20207.516H36.9824'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24%20217.894H276'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M201.743%20153.772C202.733%20148.169%20198.424%20143.022%20192.737%20143.022C186.623%20143.022%20181.397%20147.415%20180.334%20153.446L178.382%20164.517H210.743C205.056%20164.517%20200.747%20159.375%20201.737%20153.767L201.743%20153.772Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M159.869%20107.186C160.218%20105.198%20161.939%20103.756%20163.953%20103.756H228.304C230.234%20103.756%20231.702%20105.508%20231.364%20107.405L230.177%20114.129H158.637L159.863%20107.18L159.869%20107.186Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M230.183%20114.123L223.146%20154.093C222.088%20160.119%20216.857%20164.517%20210.742%20164.517C205.083%20164.517%20200.78%20159.409%20201.731%20153.829C202.687%20148.203%20198.564%20143.017%20192.866%20143.017H153.552L158.637%20114.118H230.183V114.123Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M170.951%20143.022H121.208C115.093%20143.022%20109.868%20147.415%20108.805%20153.446L104.333%20178.853L102.983%20186.523C101.824%20193.1%2098.1843%20198.979%2092.818%20202.944L86.6247%20207.516H160.258C166.372%20207.516%20171.592%20197.189%20172.661%20191.158L178.393%20164.522L180.345%20153.451C181.402%20147.426%20186.634%20143.028%20192.748%20143.028H170.957L170.951%20143.022Z'%20fill='%2300112C'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M192.742%20142.465H122.754'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M122.107%20159.578L129.234%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M130.759%20159.578L120.583%20168.239'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M145.857%20159.578L152.979%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M154.502%20159.578L144.332%20168.239'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M115.054%20183.319L122.546%20176.939L127.823%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M127.834%20183.319L135.327%20176.939L140.603%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M140.608%20183.319L148.106%20176.939L153.383%20183.358'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M165.877%20122.221L162.918%20124.738L164.994%20127.25'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M168.571%20124.738H174.854'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M177.998%20124.738H196.842'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M217.582%20136.062L220.541%20133.545L218.465%20131.034'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M160.735%20133.545H173.302'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M176.446%20133.545H185.874'%20stroke='%2385DFA9'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M222.167%20124.738H203.323'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M211.199%20133.545H201.771'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M198.289%20133.545H188.861'%20stroke='%230ABF53'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M212.38%20136.062L216.194%20131.028'%20stroke='%23EEF0F3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M86.6243%20207.522H86.3093C81.3986%20207.522%2077.416%20203.535%2077.416%20198.619H149.789C149.789%20203.535%20153.771%20207.522%20158.682%20207.522H160.257H86.6243Z'%20fill='%236F7987'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M98.1555%20128.359V135.319'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M83.3955%20135.984L88.3119%20140.905'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M75.7786%20150.76H82.7312'%20stroke='%2300112C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["internalError"],"mappings":"AAAA,MAAeA,IAAA;"}