@adyen/bento-vue2 1.84.2 → 1.86.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 (422) hide show
  1. package/dist/@types/components.d.ts +6 -0
  2. package/dist/@types/index.d.ts +480 -268
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +5 -0
  6. package/dist/ai-tag.js.map +1 -0
  7. package/dist/alert.js +1 -1
  8. package/dist/anchor-scroller.js +5 -0
  9. package/dist/anchor-scroller.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -1
  11. package/dist/assets/action-bar.css +1 -1
  12. package/dist/assets/ai-tag.css +1 -0
  13. package/dist/assets/anchor-scroller.css +1 -0
  14. package/dist/assets/base-modal.css +1 -1
  15. package/dist/assets/button-actions.css +1 -1
  16. package/dist/assets/card.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/draggable-handle.css +1 -0
  23. package/dist/assets/dropdown-default-textbox.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/error-message.css +1 -0
  26. package/dist/assets/file-uploader.css +1 -1
  27. package/dist/assets/filter-bar.css +1 -1
  28. package/dist/assets/fixed-scroller.css +1 -1
  29. package/dist/assets/form-layout-title.css +1 -1
  30. package/dist/assets/inspector.css +1 -1
  31. package/dist/assets/layout-row.css +1 -1
  32. package/dist/assets/modal-fullscreen.css +1 -1
  33. package/dist/assets/radio-group.css +1 -1
  34. package/dist/assets/secondary-nav.css +1 -1
  35. package/dist/assets/sidepanel.css +1 -1
  36. package/dist/assets/use-cached-selected-values.css +1 -1
  37. package/dist/avatar.js +1 -1
  38. package/dist/button.js +3 -3
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +6 -6
  41. package/dist/chip.js +1 -1
  42. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  43. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  44. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  45. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  46. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  47. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  48. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  49. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  50. package/dist/chunks/{accordion-item.DeV8s0oW.js → accordion-item.Cv6kG2N3.js} +2 -2
  51. package/dist/chunks/{accordion-item.DeV8s0oW.js.map → accordion-item.Cv6kG2N3.js.map} +1 -1
  52. package/dist/chunks/action-bar.Dnkt4yn7.js +163 -0
  53. package/dist/chunks/action-bar.Dnkt4yn7.js.map +1 -0
  54. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  55. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  56. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  57. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  58. package/dist/chunks/ai-button.BTi18ipD.js +50 -0
  59. package/dist/chunks/ai-button.BTi18ipD.js.map +1 -0
  60. package/dist/chunks/ai-tag.s8TECgn_.js +82 -0
  61. package/dist/chunks/ai-tag.s8TECgn_.js.map +1 -0
  62. package/dist/chunks/{alert.B3Pdp02a.js → alert.BESCd8iS.js} +5 -5
  63. package/dist/chunks/{alert.B3Pdp02a.js.map → alert.BESCd8iS.js.map} +1 -1
  64. package/dist/chunks/anchor-scroller.3_idPubO.js +178 -0
  65. package/dist/chunks/anchor-scroller.3_idPubO.js.map +1 -0
  66. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  67. package/dist/chunks/arrow-left.CRREfabP.js +24 -0
  68. package/dist/chunks/arrow-left.CRREfabP.js.map +1 -0
  69. package/dist/chunks/arrow-right.Dn3AYpUP.js +24 -0
  70. package/dist/chunks/arrow-right.Dn3AYpUP.js.map +1 -0
  71. package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js +24 -0
  72. package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js.map +1 -0
  73. package/dist/chunks/{avatar.CUCH3CTc.js → avatar.rwWPYJnt.js} +2 -2
  74. package/dist/chunks/{avatar.CUCH3CTc.js.map → avatar.rwWPYJnt.js.map} +1 -1
  75. package/dist/chunks/{base-button.IN4bpcds.js → base-button.BPRPrO0p.js} +2 -2
  76. package/dist/chunks/{base-button.IN4bpcds.js.map → base-button.BPRPrO0p.js.map} +1 -1
  77. package/dist/chunks/{base-modal.KYkLKswF.js → base-modal.09nAcnF_.js} +41 -41
  78. package/dist/chunks/{base-modal.KYkLKswF.js.map → base-modal.09nAcnF_.js.map} +1 -1
  79. package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js → button-actions-with-menu.C8tSTxrm.js} +3 -3
  80. package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js.map → button-actions-with-menu.C8tSTxrm.js.map} +1 -1
  81. package/dist/chunks/{button-actions.D9n7MxWe.js → button-actions.VSc47LLH.js} +8 -8
  82. package/dist/chunks/{button-actions.D9n7MxWe.js.map → button-actions.VSc47LLH.js.map} +1 -1
  83. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  84. package/dist/chunks/{button.DIU6m9wD.js → button.Ctj3rkxw.js} +5 -5
  85. package/dist/chunks/{button.DIU6m9wD.js.map → button.Ctj3rkxw.js.map} +1 -1
  86. package/dist/chunks/{calendar.C8DpZ4Sr.js → calendar.DiXkjQDP.js} +100 -94
  87. package/dist/chunks/{calendar.C8DpZ4Sr.js.map → calendar.DiXkjQDP.js.map} +1 -1
  88. package/dist/chunks/{card.CLX0RGG6.js → card.BdjdBN36.js} +3 -3
  89. package/dist/chunks/{card.CLX0RGG6.js.map → card.BdjdBN36.js.map} +1 -1
  90. package/dist/chunks/{checkbox-group.BCnhjQie.js → checkbox-group.d6VQvZL7.js} +5 -5
  91. package/dist/chunks/{checkbox-group.BCnhjQie.js.map → checkbox-group.d6VQvZL7.js.map} +1 -1
  92. package/dist/chunks/{checkbox.CU5ierOq.js → checkbox.ClFNfhNh.js} +4 -4
  93. package/dist/chunks/{checkbox.CU5ierOq.js.map → checkbox.ClFNfhNh.js.map} +1 -1
  94. package/dist/chunks/{chip.C6DRfdJ8.js → chip.D_XQ8ReC.js} +3 -3
  95. package/dist/chunks/{chip.C6DRfdJ8.js.map → chip.D_XQ8ReC.js.map} +1 -1
  96. package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
  97. package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
  98. package/dist/chunks/{code-snippet.9MwDHp50.js → code-snippet.DBNJgt1j.js} +11 -11
  99. package/dist/chunks/{code-snippet.9MwDHp50.js.map → code-snippet.DBNJgt1j.js.map} +1 -1
  100. package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
  101. package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
  102. package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
  103. package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
  104. package/dist/chunks/{controls-group.D4eW9DtP.js → controls-group.HUWlAOhG.js} +3 -3
  105. package/dist/chunks/{controls-group.D4eW9DtP.js.map → controls-group.HUWlAOhG.js.map} +1 -1
  106. package/dist/chunks/{copy.C0q7xgXs.js → copy.BXykYfg0.js} +7 -7
  107. package/dist/chunks/{copy.C0q7xgXs.js.map → copy.BXykYfg0.js.map} +1 -1
  108. package/dist/chunks/{country.DyrDj95W.js → country.BywHth0L.js} +3 -3
  109. package/dist/chunks/{country.DyrDj95W.js.map → country.BywHth0L.js.map} +1 -1
  110. package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
  111. package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
  112. package/dist/chunks/{currency.DYZr_RDk.js → currency.Ciyxfmg1.js} +2 -2
  113. package/dist/chunks/{currency.DYZr_RDk.js.map → currency.Ciyxfmg1.js.map} +1 -1
  114. package/dist/chunks/{dashboard-section.B83FdC0Z.js → dashboard-section.Cw2Ima3U.js} +6 -6
  115. package/dist/chunks/{dashboard-section.B83FdC0Z.js.map → dashboard-section.Cw2Ima3U.js.map} +1 -1
  116. package/dist/chunks/{dashed-underline.DQGVy5T2.js → dashed-underline.Dfw7cJ-9.js} +9 -9
  117. package/dist/chunks/{dashed-underline.DQGVy5T2.js.map → dashed-underline.Dfw7cJ-9.js.map} +1 -1
  118. package/dist/chunks/{data-grid-template.BTEFoEwf.js → data-grid-template.6LR2Jqka.js} +4 -4
  119. package/dist/chunks/{data-grid-template.BTEFoEwf.js.map → data-grid-template.6LR2Jqka.js.map} +1 -1
  120. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  121. package/dist/chunks/{data-grid.Bk7_6Z0F.js → data-grid.B_uZEPDW.js} +449 -442
  122. package/dist/chunks/data-grid.B_uZEPDW.js.map +1 -0
  123. package/dist/chunks/date-input.etw_pFpA.js +20 -0
  124. package/dist/chunks/date-input.etw_pFpA.js.map +1 -0
  125. package/dist/chunks/{date-picker.CnsC_UMG.js → date-picker.CITeN8WH.js} +56 -56
  126. package/dist/chunks/date-picker.CITeN8WH.js.map +1 -0
  127. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  128. package/dist/chunks/date-range-picker.DxVjXxap.js +897 -0
  129. package/dist/chunks/date-range-picker.DxVjXxap.js.map +1 -0
  130. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  131. package/dist/chunks/{date.DBWzp0So.js → date.B0m0sFP6.js} +2 -2
  132. package/dist/chunks/{date.DBWzp0So.js.map → date.B0m0sFP6.js.map} +1 -1
  133. package/dist/chunks/de.DvtL0g75.js.map +1 -1
  134. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  135. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  136. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  137. package/dist/chunks/dialog-page.DA6E6qma.js +122 -0
  138. package/dist/chunks/dialog-page.DA6E6qma.js.map +1 -0
  139. package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
  140. package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
  141. package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
  142. package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
  143. package/dist/chunks/divider.DX5gwN7p.js.map +1 -1
  144. package/dist/chunks/{dropdown-default-textbox.Cq68tN9F.js → dropdown-default-textbox.5WjhJWdh.js} +71 -80
  145. package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +1 -0
  146. package/dist/chunks/{dropdown-tag.HBM0wrEV.js → dropdown-tag.BnMuMIDk.js} +8 -8
  147. package/dist/chunks/{dropdown-tag.HBM0wrEV.js.map → dropdown-tag.BnMuMIDk.js.map} +1 -1
  148. package/dist/chunks/{dropdown.C2pXf8Li.js → dropdown.DDPfKc74.js} +227 -225
  149. package/dist/chunks/dropdown.DDPfKc74.js.map +1 -0
  150. package/dist/chunks/{empty-state.DpBnqAxu.js → empty-state.IiG1LXa2.js} +6 -6
  151. package/dist/chunks/{empty-state.DpBnqAxu.js.map → empty-state.IiG1LXa2.js.map} +1 -1
  152. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
  153. package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
  154. package/dist/chunks/{field-label.CEkJnsiL.js → error-message.VenUl2OK.js} +54 -54
  155. package/dist/chunks/error-message.VenUl2OK.js.map +1 -0
  156. package/dist/chunks/es.bz0mzkMq.js.map +1 -1
  157. package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
  158. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  159. package/dist/chunks/{file-uploader.CnOqfuI-.js → file-uploader.BU1V40qK.js} +10 -10
  160. package/dist/chunks/file-uploader.BU1V40qK.js.map +1 -0
  161. package/dist/chunks/filter-bar.UdXQf_RN.js +3321 -0
  162. package/dist/chunks/filter-bar.UdXQf_RN.js.map +1 -0
  163. package/dist/chunks/fixed-scroller.BueAsyGk.js +120 -0
  164. package/dist/chunks/{fixed-scroller.Bp4-iO80.js.map → fixed-scroller.BueAsyGk.js.map} +1 -1
  165. package/dist/chunks/{focus-trap.CNIU5jOz.js → focus-trap.DMc1wL3A.js} +312 -295
  166. package/dist/chunks/focus-trap.DMc1wL3A.js.map +1 -0
  167. package/dist/chunks/{footer-actions.BOiN47Xd.js → footer-actions.z-api8J_.js} +4 -4
  168. package/dist/chunks/{footer-actions.BOiN47Xd.js.map → footer-actions.z-api8J_.js.map} +1 -1
  169. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  170. package/dist/chunks/{form-layout-title.CdC1T4gs.js → form-layout-title.Bbq05nMT.js} +6 -6
  171. package/dist/chunks/{form-layout-title.CdC1T4gs.js.map → form-layout-title.Bbq05nMT.js.map} +1 -1
  172. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  173. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
  174. package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
  175. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  176. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  177. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
  178. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
  179. package/dist/chunks/grab.BxiVZ1RZ.js +24 -0
  180. package/dist/chunks/grab.BxiVZ1RZ.js.map +1 -0
  181. package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -1
  182. package/dist/chunks/{header-meta.D_oAu2S9.js → header-meta.CuMQSsOm.js} +11 -11
  183. package/dist/chunks/{header-meta.D_oAu2S9.js.map → header-meta.CuMQSsOm.js.map} +1 -1
  184. package/dist/chunks/{header-with-views.Dc9LUYNY.js → header-with-views.DX8EXLMJ.js} +383 -400
  185. package/dist/chunks/header-with-views.DX8EXLMJ.js.map +1 -0
  186. package/dist/chunks/{header.BmtlQmPs.js → header.YECm2GAh.js} +4 -4
  187. package/dist/chunks/{header.BmtlQmPs.js.map → header.YECm2GAh.js.map} +1 -1
  188. package/dist/chunks/image.C2D2hKat.js.map +1 -1
  189. package/dist/chunks/index.B6WW_F-J.js.map +1 -1
  190. package/dist/chunks/index.BkJqgYF1.js +692 -0
  191. package/dist/chunks/{index.BDK4hwK_.js.map → index.BkJqgYF1.js.map} +1 -1
  192. package/dist/chunks/{info-icon.BEyxQgD6.js → info-icon.DS9ax8ZD.js} +3 -3
  193. package/dist/chunks/{info-icon.BEyxQgD6.js.map → info-icon.DS9ax8ZD.js.map} +1 -1
  194. package/dist/chunks/{input-field-password.D23H_RvO.js → input-field-password.DrI6eF5u.js} +11 -11
  195. package/dist/chunks/{input-field-password.D23H_RvO.js.map → input-field-password.DrI6eF5u.js.map} +1 -1
  196. package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js → input-field-phone-number.Buh4x3pJ.js} +4 -4
  197. package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js.map → input-field-phone-number.Buh4x3pJ.js.map} +1 -1
  198. package/dist/chunks/{input-field.hf0_ALq0.js → input-field.NEKXqT4R.js} +7 -7
  199. package/dist/chunks/{input-field.hf0_ALq0.js.map → input-field.NEKXqT4R.js.map} +1 -1
  200. package/dist/chunks/{inspector.C0iAxxoz.js → inspector.BomNgVb-.js} +5 -5
  201. package/dist/chunks/{inspector.C0iAxxoz.js.map → inspector.BomNgVb-.js.map} +1 -1
  202. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  203. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  204. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  205. package/dist/chunks/isSameWeek.DjeUtLwI.js +14 -0
  206. package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
  207. package/dist/chunks/{it.Oaj6BklL.js → it.DIafuXtH.js} +2 -2
  208. package/dist/chunks/{it.Oaj6BklL.js.map → it.DIafuXtH.js.map} +1 -1
  209. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
  210. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  211. package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
  212. package/dist/chunks/{layout-row.BPX00mio.js → layout-row.BxuMJU4E.js} +4 -4
  213. package/dist/chunks/layout-row.BxuMJU4E.js.map +1 -0
  214. package/dist/chunks/{link.PsTSQjK3.js → link.DKimL08z.js} +2 -2
  215. package/dist/chunks/{link.PsTSQjK3.js.map → link.DKimL08z.js.map} +1 -1
  216. package/dist/chunks/{listbox-option-tag.BlDz7oXK.js → listbox-option-tag.Cv3y0TvQ.js} +3 -3
  217. package/dist/chunks/{listbox-option-tag.BlDz7oXK.js.map → listbox-option-tag.Cv3y0TvQ.js.map} +1 -1
  218. package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -1
  219. package/dist/chunks/match.CMBZxEs9.js.map +1 -1
  220. package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
  221. package/dist/chunks/{modal-fullscreen.B1gltlxA.js → modal-fullscreen.6bAjPENL.js} +73 -69
  222. package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +1 -0
  223. package/dist/chunks/{modal.e3EQ6Kex.js → modal.DOR8c0gy.js} +6 -6
  224. package/dist/chunks/{modal.e3EQ6Kex.js.map → modal.DOR8c0gy.js.map} +1 -1
  225. package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
  226. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  227. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  228. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  229. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  230. package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
  231. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
  232. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  233. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  234. package/dist/chunks/{pagination.BcFt2FqK.js → pagination.wuEIlDcq.js} +4 -4
  235. package/dist/chunks/{pagination.BcFt2FqK.js.map → pagination.wuEIlDcq.js.map} +1 -1
  236. package/dist/chunks/{payment-method.BKXLPDC9.js → payment-method.B3CkgsAY.js} +2 -2
  237. package/dist/chunks/{payment-method.BKXLPDC9.js.map → payment-method.B3CkgsAY.js.map} +1 -1
  238. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  239. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  240. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  241. package/dist/chunks/popover.types.DkiRUQ4Z.js +6 -0
  242. package/dist/chunks/{popover.types.WDh5ggr3.js.map → popover.types.DkiRUQ4Z.js.map} +1 -1
  243. package/dist/chunks/popper-container.D4dworD4.js +1423 -0
  244. package/dist/chunks/popper-container.D4dworD4.js.map +1 -0
  245. package/dist/chunks/{promo-banner.yfBorKj7.js → promo-banner.bjMDm76T.js} +4 -4
  246. package/dist/chunks/{promo-banner.yfBorKj7.js.map → promo-banner.bjMDm76T.js.map} +1 -1
  247. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
  248. package/dist/chunks/{radio-group.CtTnfkYg.js → radio-group.DKRxfGtE.js} +8 -8
  249. package/dist/chunks/{radio-group.CtTnfkYg.js.map → radio-group.DKRxfGtE.js.map} +1 -1
  250. package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -1
  251. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  252. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  253. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  254. package/dist/chunks/{rich-text-editor.Dq2CFGOu.js → rich-text-editor.DiuS9alD.js} +9 -13
  255. package/dist/chunks/rich-text-editor.DiuS9alD.js.map +1 -0
  256. package/dist/chunks/{search-bar.B0SdQBnY.js → search-bar.UVSaoX0h.js} +5 -5
  257. package/dist/chunks/{search-bar.B0SdQBnY.js.map → search-bar.UVSaoX0h.js.map} +1 -1
  258. package/dist/chunks/{secondary-nav.BPGpxd0p.js → secondary-nav.C6ldQMZ2.js} +18 -18
  259. package/dist/chunks/secondary-nav.C6ldQMZ2.js.map +1 -0
  260. package/dist/chunks/{segmented-control.BtWFda0P.js → segmented-control.BLnuxgnJ.js} +3 -3
  261. package/dist/chunks/{segmented-control.BtWFda0P.js.map → segmented-control.BLnuxgnJ.js.map} +1 -1
  262. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  263. package/dist/chunks/{selection-card-group.BryV14qP.js → selection-card-group.CqGYskmS.js} +5 -5
  264. package/dist/chunks/{selection-card-group.BryV14qP.js.map → selection-card-group.CqGYskmS.js.map} +1 -1
  265. package/dist/chunks/{sidepanel.NFyZGE57.js → sidepanel.BKE87Uef.js} +71 -67
  266. package/dist/chunks/sidepanel.BKE87Uef.js.map +1 -0
  267. package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.D8Yh4c0G.js} +3 -3
  268. package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
  269. package/dist/chunks/{status.types.Cv5XN4zL.js → status.types.BTsaLHQ6.js} +2 -2
  270. package/dist/chunks/{status.types.Cv5XN4zL.js.map → status.types.BTsaLHQ6.js.map} +1 -1
  271. package/dist/chunks/{step.BLFXvHL6.js → step.BEbWkprZ.js} +5 -5
  272. package/dist/chunks/{step.BLFXvHL6.js.map → step.BEbWkprZ.js.map} +1 -1
  273. package/dist/chunks/{structured-list-item.CptOCpHP.js → structured-list-item.DRFRap_S.js} +6 -6
  274. package/dist/chunks/{structured-list-item.CptOCpHP.js.map → structured-list-item.DRFRap_S.js.map} +1 -1
  275. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  276. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  277. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  278. package/dist/chunks/{summary-grid.types.B1T8_k1m.js → summary-grid.types.OldkhD7S.js} +10 -10
  279. package/dist/chunks/{summary-grid.types.B1T8_k1m.js.map → summary-grid.types.OldkhD7S.js.map} +1 -1
  280. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
  281. package/dist/chunks/{tab.FUMpPsBP.js → tab.BqSNoefU.js} +5 -5
  282. package/dist/chunks/{tab.FUMpPsBP.js.map → tab.BqSNoefU.js.map} +1 -1
  283. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  284. package/dist/chunks/{tag.B1Ywhgvc.js → tag.Cy3XkSDQ.js} +3 -3
  285. package/dist/chunks/{tag.B1Ywhgvc.js.map → tag.Cy3XkSDQ.js.map} +1 -1
  286. package/dist/chunks/{textarea.riUt0BiI.js → textarea.Bm9MZb_W.js} +4 -4
  287. package/dist/chunks/{textarea.riUt0BiI.js.map → textarea.Bm9MZb_W.js.map} +1 -1
  288. package/dist/chunks/{timeline-item.CFfW1DoD.js → timeline-item.Cpbm8IUw.js} +15 -15
  289. package/dist/chunks/{timeline-item.CFfW1DoD.js.map → timeline-item.Cpbm8IUw.js.map} +1 -1
  290. package/dist/chunks/{toast.Csv6tMyT.js → toast.Wuy6VuOT.js} +4 -4
  291. package/dist/chunks/{toast.Csv6tMyT.js.map → toast.Wuy6VuOT.js.map} +1 -1
  292. package/dist/chunks/{toggle.227XgEc7.js → toggle.B1z1YPe_.js} +4 -4
  293. package/dist/chunks/{toggle.227XgEc7.js.map → toggle.B1z1YPe_.js.map} +1 -1
  294. package/dist/chunks/{tooltip.C6YCavPw.js → tooltip.DF11J3k3.js} +50 -50
  295. package/dist/chunks/{tooltip.C6YCavPw.js.map → tooltip.DF11J3k3.js.map} +1 -1
  296. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  297. package/dist/chunks/{tutorial.D18LwXVy.js → tutorial.D5xtZ1Pt.js} +8 -8
  298. package/dist/chunks/{tutorial.D18LwXVy.js.map → tutorial.D5xtZ1Pt.js.map} +1 -1
  299. package/dist/chunks/{typography.Bq-EGj9y.js → typography.C8lPlsbD.js} +3 -3
  300. package/dist/chunks/{typography.Bq-EGj9y.js.map → typography.C8lPlsbD.js.map} +1 -1
  301. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  302. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  303. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js → use-bento-toast-controller.CB6Qbf3R.js} +2 -2
  304. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js.map → use-bento-toast-controller.CB6Qbf3R.js.map} +1 -1
  305. package/dist/chunks/{use-cached-selected-values.gDWGi5Nk.js → use-cached-selected-values.wn2xnwYG.js} +23 -23
  306. package/dist/chunks/use-cached-selected-values.wn2xnwYG.js.map +1 -0
  307. package/dist/chunks/{use-country-items.ClS_So5N.js → use-country-items.CQnldpqM.js} +11 -11
  308. package/dist/chunks/{use-country-items.ClS_So5N.js.map → use-country-items.CQnldpqM.js.map} +1 -1
  309. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  310. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
  311. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  312. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  313. package/dist/chunks/utils.BzUwtTXc.js +21 -0
  314. package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
  315. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  316. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  317. package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.Bw_6j9Cd.js} +2 -2
  318. package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
  319. package/dist/click-outside.js +1 -1
  320. package/dist/code-snippet.js +1 -1
  321. package/dist/country.js +2 -2
  322. package/dist/currency.js +1 -1
  323. package/dist/dashboard-template.js +1 -1
  324. package/dist/dashed-underline.js +1 -1
  325. package/dist/data-grid-template.js +1 -1
  326. package/dist/data-grid.js +6 -5
  327. package/dist/date-picker.js +2 -2
  328. package/dist/date-range-picker.js +2 -2
  329. package/dist/date.js +1 -1
  330. package/dist/draggable-handle.js +173 -0
  331. package/dist/draggable-handle.js.map +1 -0
  332. package/dist/dropdown.js +11 -11
  333. package/dist/empty-state.js +1 -1
  334. package/dist/file-uploader.js +1 -1
  335. package/dist/filter-bar.js +1 -1
  336. package/dist/focus-trap.js +1 -1
  337. package/dist/form-layout.js +1 -1
  338. package/dist/header-with-views.js +1 -1
  339. package/dist/header.js +1 -1
  340. package/dist/index.js +341 -335
  341. package/dist/index.js.map +1 -1
  342. package/dist/info-icon.js +1 -1
  343. package/dist/input-field-password.js +1 -1
  344. package/dist/input-field-phone-number.js +1 -1
  345. package/dist/input-field.js +1 -1
  346. package/dist/inspector.js +1 -1
  347. package/dist/internal.js +42 -42
  348. package/dist/layout.js +1 -1
  349. package/dist/link.js +1 -1
  350. package/dist/menu.js +1 -1
  351. package/dist/modal-fullscreen.js +1 -1
  352. package/dist/modal.js +2 -2
  353. package/dist/pagination.js +1 -1
  354. package/dist/payment-method.js +1 -1
  355. package/dist/popover.js +2 -2
  356. package/dist/popper-container.js +1 -1
  357. package/dist/promo-banner.js +1 -1
  358. package/dist/radio-group.js +1 -1
  359. package/dist/rich-text-editor.js +1 -1
  360. package/dist/search-bar.js +2 -2
  361. package/dist/secondary-nav.js +1 -1
  362. package/dist/segmented-control.js +1 -1
  363. package/dist/selection-card.js +1 -1
  364. package/dist/sidepanel.js +1 -1
  365. package/dist/status.js +1 -1
  366. package/dist/stepper.js +1 -1
  367. package/dist/structured-list.js +1 -1
  368. package/dist/styles/bento-dark.css +5 -0
  369. package/dist/styles/bento-light.css +5 -0
  370. package/dist/styles/bento.css +5 -0
  371. package/dist/styles/legacy.css +5 -0
  372. package/dist/styles/styleguide.css +5 -0
  373. package/dist/summary-grid.js +1 -1
  374. package/dist/tabs.js +1 -1
  375. package/dist/tag.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/toggle.js +1 -1
  380. package/dist/tutorial.js +1 -1
  381. package/dist/typography.js +1 -1
  382. package/dist/use-form-v4.js +756 -7787
  383. package/dist/use-form-v4.js.map +1 -1
  384. package/dist/web-types.json +339 -35
  385. package/package.json +9 -9
  386. package/dist/assets/field-label.css +0 -1
  387. package/dist/chunks/action-bar.y4tcdk7R.js +0 -162
  388. package/dist/chunks/action-bar.y4tcdk7R.js.map +0 -1
  389. package/dist/chunks/ai-button.BEy4Gly-.js +0 -67
  390. package/dist/chunks/ai-button.BEy4Gly-.js.map +0 -1
  391. package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
  392. package/dist/chunks/constructNow.DuaJst0D.js +0 -8
  393. package/dist/chunks/data-grid.Bk7_6Z0F.js.map +0 -1
  394. package/dist/chunks/date-input.BbZqj10S.js +0 -15
  395. package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
  396. package/dist/chunks/date-picker.CnsC_UMG.js.map +0 -1
  397. package/dist/chunks/date-range-picker.B6GSRjjK.js +0 -1693
  398. package/dist/chunks/date-range-picker.B6GSRjjK.js.map +0 -1
  399. package/dist/chunks/dialog-page.QpRiNPyx.js +0 -137
  400. package/dist/chunks/dialog-page.QpRiNPyx.js.map +0 -1
  401. package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +0 -1
  402. package/dist/chunks/dropdown.C2pXf8Li.js.map +0 -1
  403. package/dist/chunks/field-label.CEkJnsiL.js.map +0 -1
  404. package/dist/chunks/file-uploader.CnOqfuI-.js.map +0 -1
  405. package/dist/chunks/filter-bar.CnJAxz9B.js +0 -2559
  406. package/dist/chunks/filter-bar.CnJAxz9B.js.map +0 -1
  407. package/dist/chunks/fixed-scroller.Bp4-iO80.js +0 -114
  408. package/dist/chunks/focus-trap.CNIU5jOz.js.map +0 -1
  409. package/dist/chunks/header-with-views.Dc9LUYNY.js.map +0 -1
  410. package/dist/chunks/index.BDK4hwK_.js +0 -593
  411. package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
  412. package/dist/chunks/layout-row.BPX00mio.js.map +0 -1
  413. package/dist/chunks/modal-fullscreen.B1gltlxA.js.map +0 -1
  414. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  415. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  416. package/dist/chunks/popover.types.WDh5ggr3.js +0 -6
  417. package/dist/chunks/popper-container.Cdokz_NE.js +0 -1404
  418. package/dist/chunks/popper-container.Cdokz_NE.js.map +0 -1
  419. package/dist/chunks/rich-text-editor.Dq2CFGOu.js.map +0 -1
  420. package/dist/chunks/secondary-nav.BPGpxd0p.js.map +0 -1
  421. package/dist/chunks/sidepanel.NFyZGE57.js.map +0 -1
  422. package/dist/chunks/use-cached-selected-values.gDWGi5Nk.js.map +0 -1
@@ -1,593 +0,0 @@
1
- import "./index.Cl4_42j5.js";
2
- import { onMounted as k, nextTick as Z, watch as R, unref as ee, getCurrentScope as te, onScopeDispose as ne, getCurrentInstance as q, isRef as oe, ref as w, computed as E, reactive as U, watchEffect as re } from "vue";
3
- function C(e) {
4
- return te() ? (ne(e), !0) : !1;
5
- }
6
- function p(e) {
7
- return typeof e == "function" ? e() : ee(e);
8
- }
9
- const ie = typeof window < "u" && typeof document < "u";
10
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
11
- const K = (e) => e != null, se = Object.prototype.toString, le = (e) => se.call(e) === "[object Object]", _ = () => {
12
- };
13
- function V(e, t) {
14
- function n(...r) {
15
- return new Promise((l, s) => {
16
- Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(l).catch(s);
17
- });
18
- }
19
- return n;
20
- }
21
- const ue = (e) => e();
22
- function Q(e, t = {}) {
23
- let n, r, l = _;
24
- const s = (u) => {
25
- clearTimeout(u), l(), l = _;
26
- };
27
- return (u) => {
28
- const d = p(e), a = p(t.maxWait);
29
- return n && s(n), d <= 0 || a !== void 0 && a <= 0 ? (r && (s(r), r = null), Promise.resolve(u())) : new Promise((o, i) => {
30
- l = t.rejectOnCancel ? i : o, a && !r && (r = setTimeout(() => {
31
- n && s(n), r = null, o(u());
32
- }, a)), n = setTimeout(() => {
33
- r && s(r), r = null, o(u());
34
- }, d);
35
- });
36
- };
37
- }
38
- function ce(...e) {
39
- let t = 0, n, r = !0, l = _, s, c, u, d, a;
40
- !oe(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: u = !0, leading: d = !0, rejectOnCancel: a = !1 } = e[0] : [c, u = !0, d = !0, a = !1] = e;
41
- const o = () => {
42
- n && (clearTimeout(n), n = void 0, l(), l = _);
43
- };
44
- return (f) => {
45
- const m = p(c), h = Date.now() - t, S = () => s = f();
46
- return o(), m <= 0 ? (t = Date.now(), S()) : (h > m && (d || !r) ? (t = Date.now(), S()) : u && (s = new Promise((x, b) => {
47
- l = a ? b : x, n = setTimeout(() => {
48
- t = Date.now(), r = !0, x(S()), o();
49
- }, Math.max(0, m - h));
50
- })), !d && !n && (n = setTimeout(() => r = !0, m)), r = !1, s);
51
- };
52
- }
53
- function ae(e, t) {
54
- var n;
55
- if (typeof e == "number")
56
- return e + t;
57
- const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", l = e.slice(r.length), s = Number.parseFloat(r) + t;
58
- return Number.isNaN(s) ? e : s + l;
59
- }
60
- function fe(e) {
61
- return q();
62
- }
63
- function de(e, t = 200, n = {}) {
64
- return V(
65
- Q(t, n),
66
- e
67
- );
68
- }
69
- function ve(e, t = 200, n = !1, r = !0, l = !1) {
70
- return V(
71
- ce(t, n, r, l),
72
- e
73
- );
74
- }
75
- function me(e, t, n = {}) {
76
- const {
77
- eventFilter: r = ue,
78
- ...l
79
- } = n;
80
- return R(
81
- e,
82
- V(
83
- r,
84
- t
85
- ),
86
- l
87
- );
88
- }
89
- function F(e, t = !0, n) {
90
- fe() ? k(e, n) : t ? e() : Z(e);
91
- }
92
- function xe(e, t, n = {}) {
93
- const {
94
- debounce: r = 0,
95
- maxWait: l = void 0,
96
- ...s
97
- } = n;
98
- return me(
99
- e,
100
- t,
101
- {
102
- ...s,
103
- eventFilter: Q(r, { maxWait: l })
104
- }
105
- );
106
- }
107
- const g = ie ? window : void 0;
108
- function y(e) {
109
- var t;
110
- const n = p(e);
111
- return (t = n == null ? void 0 : n.$el) != null ? t : n;
112
- }
113
- function W(...e) {
114
- let t, n, r, l;
115
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, l] = e, t = g) : [t, n, r, l] = e, !t)
116
- return _;
117
- Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
118
- const s = [], c = () => {
119
- s.forEach((o) => o()), s.length = 0;
120
- }, u = (o, i, f, m) => (o.addEventListener(i, f, m), () => o.removeEventListener(i, f, m)), d = R(
121
- () => [y(t), p(l)],
122
- ([o, i]) => {
123
- if (c(), !o)
124
- return;
125
- const f = le(i) ? { ...i } : i;
126
- s.push(
127
- ...n.flatMap((m) => r.map((h) => u(o, m, h, f)))
128
- );
129
- },
130
- { immediate: !0, flush: "post" }
131
- ), a = () => {
132
- d(), c();
133
- };
134
- return C(a), a;
135
- }
136
- function he(e) {
137
- return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
138
- }
139
- function _e(...e) {
140
- let t, n, r = {};
141
- e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
142
- const {
143
- target: l = g,
144
- eventName: s = "keydown",
145
- passive: c = !1,
146
- dedupe: u = !1
147
- } = r, d = he(t);
148
- return W(l, s, (o) => {
149
- o.repeat && p(u) || d(o) && n(o);
150
- }, c);
151
- }
152
- function pe() {
153
- const e = w(!1);
154
- return q() && k(() => {
155
- e.value = !0;
156
- }, void 0), e;
157
- }
158
- function H(e) {
159
- const t = pe();
160
- return E(() => (t.value, !!e()));
161
- }
162
- function we(e, t, n = {}) {
163
- const { window: r = g, ...l } = n;
164
- let s;
165
- const c = H(() => r && "MutationObserver" in r), u = () => {
166
- s && (s.disconnect(), s = void 0);
167
- }, d = E(() => {
168
- const f = p(e), m = (Array.isArray(f) ? f : [f]).map(y).filter(K);
169
- return new Set(m);
170
- }), a = R(
171
- () => d.value,
172
- (f) => {
173
- u(), c.value && f.size && (s = new MutationObserver(t), f.forEach((m) => s.observe(m, l)));
174
- },
175
- { immediate: !0, flush: "post" }
176
- ), o = () => s == null ? void 0 : s.takeRecords(), i = () => {
177
- a(), u();
178
- };
179
- return C(i), {
180
- isSupported: c,
181
- stop: i,
182
- takeRecords: o
183
- };
184
- }
185
- function be(e = {}) {
186
- var t;
187
- const {
188
- window: n = g,
189
- deep: r = !0,
190
- triggerOnRemoval: l = !1
191
- } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, c = () => {
192
- var a;
193
- let o = s == null ? void 0 : s.activeElement;
194
- if (r)
195
- for (; o != null && o.shadowRoot; )
196
- o = (a = o == null ? void 0 : o.shadowRoot) == null ? void 0 : a.activeElement;
197
- return o;
198
- }, u = w(), d = () => {
199
- u.value = c();
200
- };
201
- return n && (W(n, "blur", (a) => {
202
- a.relatedTarget === null && d();
203
- }, !0), W(n, "focus", d, !0)), l && we(s, (a) => {
204
- a.filter((o) => o.removedNodes.length).map((o) => Array.from(o.removedNodes)).flat().forEach((o) => {
205
- o === u.value && d();
206
- });
207
- }, {
208
- childList: !0,
209
- subtree: !0
210
- }), d(), u;
211
- }
212
- function N(e, t = {}) {
213
- const { window: n = g } = t, r = H(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
214
- let l;
215
- const s = w(!1), c = (a) => {
216
- s.value = a.matches;
217
- }, u = () => {
218
- l && ("removeEventListener" in l ? l.removeEventListener("change", c) : l.removeListener(c));
219
- }, d = re(() => {
220
- r.value && (u(), l = n.matchMedia(p(e)), "addEventListener" in l ? l.addEventListener("change", c) : l.addListener(c), s.value = l.matches);
221
- });
222
- return C(() => {
223
- d(), u(), l = void 0;
224
- }), s;
225
- }
226
- function Ae(e, t = {}) {
227
- function n(o, i) {
228
- let f = p(e[p(o)]);
229
- return i != null && (f = ae(f, i)), typeof f == "number" && (f = `${f}px`), f;
230
- }
231
- const { window: r = g, strategy: l = "min-width" } = t;
232
- function s(o) {
233
- return r ? r.matchMedia(o).matches : !1;
234
- }
235
- const c = (o) => N(() => `(min-width: ${n(o)})`, t), u = (o) => N(() => `(max-width: ${n(o)})`, t), d = Object.keys(e).reduce((o, i) => (Object.defineProperty(o, i, {
236
- get: () => l === "min-width" ? c(i) : u(i),
237
- enumerable: !0,
238
- configurable: !0
239
- }), o), {});
240
- function a() {
241
- const o = Object.keys(e).map((i) => [i, c(i)]);
242
- return E(() => o.filter(([, i]) => i.value).map(([i]) => i));
243
- }
244
- return Object.assign(d, {
245
- greaterOrEqual: c,
246
- smallerOrEqual: u,
247
- greater(o) {
248
- return N(() => `(min-width: ${n(o, 0.1)})`, t);
249
- },
250
- smaller(o) {
251
- return N(() => `(max-width: ${n(o, -0.1)})`, t);
252
- },
253
- between(o, i) {
254
- return N(() => `(min-width: ${n(o)}) and (max-width: ${n(i, -0.1)})`, t);
255
- },
256
- isGreater(o) {
257
- return s(`(min-width: ${n(o, 0.1)})`);
258
- },
259
- isGreaterOrEqual(o) {
260
- return s(`(min-width: ${n(o)})`);
261
- },
262
- isSmaller(o) {
263
- return s(`(max-width: ${n(o, -0.1)})`);
264
- },
265
- isSmallerOrEqual(o) {
266
- return s(`(max-width: ${n(o)})`);
267
- },
268
- isInBetween(o, i) {
269
- return s(`(min-width: ${n(o)}) and (max-width: ${n(i, -0.1)})`);
270
- },
271
- current: a,
272
- active() {
273
- const o = a();
274
- return E(() => o.value.length === 0 ? "" : o.value.at(-1));
275
- }
276
- });
277
- }
278
- function ge(e, t, n = {}) {
279
- const { window: r = g, ...l } = n;
280
- let s;
281
- const c = H(() => r && "ResizeObserver" in r), u = () => {
282
- s && (s.disconnect(), s = void 0);
283
- }, d = E(() => {
284
- const i = p(e);
285
- return Array.isArray(i) ? i.map((f) => y(f)) : [y(i)];
286
- }), a = R(
287
- d,
288
- (i) => {
289
- if (u(), c.value && r) {
290
- s = new ResizeObserver(t);
291
- for (const f of i)
292
- f && s.observe(f, l);
293
- }
294
- },
295
- { immediate: !0, flush: "post" }
296
- ), o = () => {
297
- u(), a();
298
- };
299
- return C(o), {
300
- isSupported: c,
301
- stop: o
302
- };
303
- }
304
- function We(e, t = { width: 0, height: 0 }, n = {}) {
305
- const { window: r = g, box: l = "content-box" } = n, s = E(() => {
306
- var i, f;
307
- return (f = (i = y(e)) == null ? void 0 : i.namespaceURI) == null ? void 0 : f.includes("svg");
308
- }), c = w(t.width), u = w(t.height), { stop: d } = ge(
309
- e,
310
- ([i]) => {
311
- const f = l === "border-box" ? i.borderBoxSize : l === "content-box" ? i.contentBoxSize : i.devicePixelContentBoxSize;
312
- if (r && s.value) {
313
- const m = y(e);
314
- if (m) {
315
- const h = m.getBoundingClientRect();
316
- c.value = h.width, u.value = h.height;
317
- }
318
- } else if (f) {
319
- const m = Array.isArray(f) ? f : [f];
320
- c.value = m.reduce((h, { inlineSize: S }) => h + S, 0), u.value = m.reduce((h, { blockSize: S }) => h + S, 0);
321
- } else
322
- c.value = i.contentRect.width, u.value = i.contentRect.height;
323
- },
324
- n
325
- );
326
- F(() => {
327
- const i = y(e);
328
- i && (c.value = "offsetWidth" in i ? i.offsetWidth : t.width, u.value = "offsetHeight" in i ? i.offsetHeight : t.height);
329
- });
330
- const a = R(
331
- () => y(e),
332
- (i) => {
333
- c.value = i ? t.width : 0, u.value = i ? t.height : 0;
334
- }
335
- );
336
- function o() {
337
- d(), a();
338
- }
339
- return {
340
- width: c,
341
- height: u,
342
- stop: o
343
- };
344
- }
345
- function ye(e, t, n = {}) {
346
- const {
347
- root: r,
348
- rootMargin: l = "0px",
349
- threshold: s = 0,
350
- window: c = g,
351
- immediate: u = !0
352
- } = n, d = H(() => c && "IntersectionObserver" in c), a = E(() => {
353
- const h = p(e);
354
- return (Array.isArray(h) ? h : [h]).map(y).filter(K);
355
- });
356
- let o = _;
357
- const i = w(u), f = d.value ? R(
358
- () => [a.value, y(r), i.value],
359
- ([h, S]) => {
360
- if (o(), !i.value || !h.length)
361
- return;
362
- const x = new IntersectionObserver(
363
- t,
364
- {
365
- root: y(S),
366
- rootMargin: l,
367
- threshold: s
368
- }
369
- );
370
- h.forEach((b) => b && x.observe(b)), o = () => {
371
- x.disconnect(), o = _;
372
- };
373
- },
374
- { immediate: u, flush: "post" }
375
- ) : _, m = () => {
376
- o(), f(), i.value = !1;
377
- };
378
- return C(m), {
379
- isSupported: d,
380
- isActive: i,
381
- pause() {
382
- o(), i.value = !1;
383
- },
384
- resume() {
385
- i.value = !0;
386
- },
387
- stop: m
388
- };
389
- }
390
- function Ie(e, t = {}) {
391
- const { window: n = g, scrollTarget: r, threshold: l = 0 } = t, s = w(!1);
392
- return ye(
393
- e,
394
- (c) => {
395
- let u = s.value, d = 0;
396
- for (const a of c)
397
- a.time >= d && (d = a.time, u = a.isIntersecting);
398
- s.value = u;
399
- },
400
- {
401
- root: r,
402
- window: n,
403
- threshold: l
404
- }
405
- ), s;
406
- }
407
- const Ee = "focusin", Se = "focusout";
408
- function Me(e, t = {}) {
409
- const { window: n = g } = t, r = E(() => y(e)), l = w(!1), s = E(() => l.value), c = be(t);
410
- return !n || !c.value ? { focused: s } : (W(r, Ee, () => l.value = !0), W(r, Se, () => l.value = !1), { focused: s });
411
- }
412
- const X = 1;
413
- function Le(e, t = {}) {
414
- const {
415
- throttle: n = 0,
416
- idle: r = 200,
417
- onStop: l = _,
418
- onScroll: s = _,
419
- offset: c = {
420
- left: 0,
421
- right: 0,
422
- top: 0,
423
- bottom: 0
424
- },
425
- eventListenerOptions: u = {
426
- capture: !1,
427
- passive: !0
428
- },
429
- behavior: d = "auto",
430
- window: a = g,
431
- onError: o = (v) => {
432
- console.error(v);
433
- }
434
- } = t, i = w(0), f = w(0), m = E({
435
- get() {
436
- return i.value;
437
- },
438
- set(v) {
439
- S(v, void 0);
440
- }
441
- }), h = E({
442
- get() {
443
- return f.value;
444
- },
445
- set(v) {
446
- S(void 0, v);
447
- }
448
- });
449
- function S(v, M) {
450
- var O, j, D, I;
451
- if (!a)
452
- return;
453
- const T = p(e);
454
- if (!T)
455
- return;
456
- (D = T instanceof Document ? a.document.body : T) == null || D.scrollTo({
457
- top: (O = p(M)) != null ? O : h.value,
458
- left: (j = p(v)) != null ? j : m.value,
459
- behavior: p(d)
460
- });
461
- const $ = ((I = T == null ? void 0 : T.document) == null ? void 0 : I.documentElement) || (T == null ? void 0 : T.documentElement) || T;
462
- m != null && (i.value = $.scrollLeft), h != null && (f.value = $.scrollTop);
463
- }
464
- const x = w(!1), b = U({
465
- left: !0,
466
- right: !1,
467
- top: !0,
468
- bottom: !1
469
- }), A = U({
470
- left: !1,
471
- right: !1,
472
- top: !1,
473
- bottom: !1
474
- }), B = (v) => {
475
- x.value && (x.value = !1, A.left = !1, A.right = !1, A.top = !1, A.bottom = !1, l(v));
476
- }, J = de(B, n + r), P = (v) => {
477
- var M;
478
- if (!a)
479
- return;
480
- const O = ((M = v == null ? void 0 : v.document) == null ? void 0 : M.documentElement) || (v == null ? void 0 : v.documentElement) || y(v), { display: j, flexDirection: D } = getComputedStyle(O), I = O.scrollLeft;
481
- A.left = I < i.value, A.right = I > i.value;
482
- const T = Math.abs(I) <= (c.left || 0), $ = Math.abs(I) + O.clientWidth >= O.scrollWidth - (c.right || 0) - X;
483
- j === "flex" && D === "row-reverse" ? (b.left = $, b.right = T) : (b.left = T, b.right = $), i.value = I;
484
- let L = O.scrollTop;
485
- v === a.document && !L && (L = a.document.body.scrollTop), A.top = L < f.value, A.bottom = L > f.value;
486
- const Y = Math.abs(L) <= (c.top || 0), G = Math.abs(L) + O.clientHeight >= O.scrollHeight - (c.bottom || 0) - X;
487
- j === "flex" && D === "column-reverse" ? (b.top = G, b.bottom = Y) : (b.top = Y, b.bottom = G), f.value = L;
488
- }, z = (v) => {
489
- var M;
490
- if (!a)
491
- return;
492
- const O = (M = v.target.documentElement) != null ? M : v.target;
493
- P(O), x.value = !0, J(v), s(v);
494
- };
495
- return W(
496
- e,
497
- "scroll",
498
- n ? ve(z, n, !0, !1) : z,
499
- u
500
- ), F(() => {
501
- try {
502
- const v = p(e);
503
- if (!v)
504
- return;
505
- P(v);
506
- } catch (v) {
507
- o(v);
508
- }
509
- }), W(
510
- e,
511
- "scrollend",
512
- B,
513
- u
514
- ), {
515
- x: m,
516
- y: h,
517
- isScrolling: x,
518
- arrivedState: b,
519
- directions: A,
520
- measure() {
521
- const v = p(e);
522
- a && v && P(v);
523
- }
524
- };
525
- }
526
- function Re(e = {}) {
527
- const { window: t = g, behavior: n = "auto" } = e;
528
- if (!t)
529
- return {
530
- x: w(0),
531
- y: w(0)
532
- };
533
- const r = w(t.scrollX), l = w(t.scrollY), s = E({
534
- get() {
535
- return r.value;
536
- },
537
- set(u) {
538
- scrollTo({ left: u, behavior: n });
539
- }
540
- }), c = E({
541
- get() {
542
- return l.value;
543
- },
544
- set(u) {
545
- scrollTo({ top: u, behavior: n });
546
- }
547
- });
548
- return W(
549
- t,
550
- "scroll",
551
- () => {
552
- r.value = t.scrollX, l.value = t.scrollY;
553
- },
554
- {
555
- capture: !1,
556
- passive: !0
557
- }
558
- ), { x: s, y: c };
559
- }
560
- function Ne(e = {}) {
561
- const {
562
- window: t = g,
563
- initialWidth: n = Number.POSITIVE_INFINITY,
564
- initialHeight: r = Number.POSITIVE_INFINITY,
565
- listenOrientation: l = !0,
566
- includeScrollbar: s = !0,
567
- type: c = "inner"
568
- } = e, u = w(n), d = w(r), a = () => {
569
- t && (c === "outer" ? (u.value = t.outerWidth, d.value = t.outerHeight) : s ? (u.value = t.innerWidth, d.value = t.innerHeight) : (u.value = t.document.documentElement.clientWidth, d.value = t.document.documentElement.clientHeight));
570
- };
571
- if (a(), F(a), W("resize", a, { passive: !0 }), l) {
572
- const o = N("(orientation: portrait)");
573
- R(o, () => a());
574
- }
575
- return { width: u, height: d };
576
- }
577
- export {
578
- be as a,
579
- We as b,
580
- Re as c,
581
- Le as d,
582
- Me as e,
583
- N as f,
584
- Ae as g,
585
- we as h,
586
- Ie as i,
587
- y as j,
588
- ge as k,
589
- _e as o,
590
- Ne as u,
591
- xe as w
592
- };
593
- //# sourceMappingURL=index.BDK4hwK_.js.map
@@ -1,14 +0,0 @@
1
- import { n as l } from "./getTimezoneOffsetInMilliseconds.C-aIpRfB.js";
2
- import { s as r } from "./startOfWeek.Dxw2MhGp.js";
3
- function i(a, m, e) {
4
- const [t, f] = l(
5
- e == null ? void 0 : e.in,
6
- a,
7
- m
8
- );
9
- return +r(t, e) == +r(f, e);
10
- }
11
- export {
12
- i
13
- };
14
- //# sourceMappingURL=isSameWeek.CUD7czUN.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"layout-row.BPX00mio.js","sources":["../../src/components/layout/layout.keys.ts","../../src/components/layout/layout.vue","../../src/components/layout/layout.types.ts","../../src/components/layout/components/layout-row/layout-row.vue"],"sourcesContent":["export const LAYOUT_SIZE_INJECTION_KEY = Symbol('Layout size inject key');\n","<template>\n <component :is=\"wrapperElement\" class=\"b-layout\" :class=\"conditionalClasses\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef } from 'vue';\n import { type BentoLayoutProps } from './layout.types';\n import { LAYOUT_SIZE_INJECTION_KEY } from '@/components/layout/layout.keys';\n\n const props = defineProps({\n variant: { default: 'page' },\n size: { default: 'full-width' }\n});\n\n provide(LAYOUT_SIZE_INJECTION_KEY, toRef(props, 'size'));\n\n const conditionalClasses = computed(() => ({\n 'b-layout--component': props.variant === 'component',\n }));\n\n const wrapperElement = props.variant === 'page' ? 'main' : 'div';\n</script>\n\n<script lang=\"ts\">\n /**\n * Layout is a basic scaffolding of a page that defines spacing, some functionality and responsive behaviour of its top level sections.\n *\n * @example\n * import { BentoLayout, BentoLayoutRow } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLayout, BentoLayoutRow },\n * template: `\n * <bento-layout size=\"narrow\">\n * <bento-layout-row>\n * Row 1\n * </bento-layout-row>\n * <bento-layout-row>\n * Row 2\n * </bento-layout-row>\n * </bento-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./layout.scss\" />\n","/**\n * @private\n */\nexport const BentoLayoutVariantOptions = ['page', 'component'] as const;\nexport const BentoLayoutSizeOptions = ['full-width', 'narrow', 'half-width'] as const;\nexport const BentoLayoutRowColumnLayoutOptions = ['3-9', '9-3', '4-8', '8-4', '6-6'] as const;\n\n// Public\nexport type BentoLayoutVariant = (typeof BentoLayoutVariantOptions)[number];\nexport type BentoLayoutSize = (typeof BentoLayoutSizeOptions)[number];\nexport type BentoLayoutRowColumnLayout = (typeof BentoLayoutRowColumnLayoutOptions)[number];\n\nexport interface BentoLayoutProps {\n /** Defines if the layout is used in a page or only a section */\n variant?: BentoLayoutVariant;\n /** Defines the size of the page */\n size?: BentoLayoutSize;\n}\n\nexport interface BentoLayoutRowProps {\n /** Sets the layout of the columns when multiple columns are used */\n columnsLayout?: BentoLayoutRowColumnLayout;\n}\n","<template>\n <bento-typography el=\"div\" class=\"b-layout-row\" :class=\"conditionalRowClass\">\n <div v-if=\"hasSlot('default')\">\n <slot />\n </div>\n <div v-else-if=\"hasSlot('col-1') && hasSlot('col-2')\" ref=\"row\" :class=\"conditionalRowWithColumnsClass\">\n <div ref=\"col1\" :class=\"conditionalColumnClass.col1\">\n <slot name=\"col-1\"></slot>\n </div>\n <div ref=\"col2\" :class=\"conditionalColumnClass.col2\">\n <slot name=\"col-2\"></slot>\n </div>\n </div>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, nextTick, onMounted, ref, type Ref, useSlots, watch } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import {\n BentoLayoutRowColumnLayoutOptions,\n type BentoLayoutRowProps,\n type BentoLayoutSize,\n } from '../../layout.types';\n import { useMediaQuery } from '@vueuse/core';\n\n import { LAYOUT_SIZE_INJECTION_KEY } from '@/components/layout/layout.keys';\n\n const props = defineProps({\n columnsLayout: { default: '6-6' }\n});\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const size = inject<Ref<BentoLayoutSize>>(LAYOUT_SIZE_INJECTION_KEY, ref('full-width'));\n\n const row = ref<HTMLElement>(null);\n const col1 = ref<HTMLElement>(null);\n const col2 = ref<HTMLElement>(null);\n\n const isFullWidth = computed(() => size.value === 'full-width');\n const isValidColumnLayout = computed(() => BentoLayoutRowColumnLayoutOptions.includes(props.columnsLayout));\n\n const conditionalRowClass = computed(() => `b-layout-row--${size.value}`);\n\n const conditionalRowWithColumnsClass = computed(() => ({\n 'b-layout-row__column-wrapper': isFullWidth.value,\n }));\n\n const conditionalColumnClass = computed(() => {\n const columns = isValidColumnLayout.value ? props.columnsLayout.split('-') : [6, 6];\n const getColumnModifier = index => (isFullWidth.value ? columns[index] : size.value);\n\n return {\n col1: `b-layout-row__column--${getColumnModifier(0)}`,\n col2: `b-layout-row__column--${getColumnModifier(1)}`,\n };\n });\n\n watch(\n useMediaQuery('(min-width: 768px)'),\n async isLargeScreen => {\n await nextTick();\n const areColumnsInTheRightOrder = row.value?.firstChild === col1.value;\n if (isLargeScreen && !areColumnsInTheRightOrder) {\n row.value?.prepend(col1.value);\n } else if (!isLargeScreen && (props.columnsLayout === '3-9' || props.columnsLayout === '4-8')) {\n row.value?.prepend(col2.value);\n }\n },\n { immediate: true }\n );\n\n onMounted(() => {\n if (!isFullWidth.value && (hasSlot('col-1') || hasSlot('col-2'))) {\n throw new Error(\n 'Column slots can only be used with the `full-width` size. Please check documentation for more info.'\n );\n }\n\n if (!isValidColumnLayout.value) {\n throw new Error(\n `${props.columnsLayout} is not a valid column layout. Please refer to the documentation for the list of available column layouts.`\n );\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Page row is subcomponent of Layout meant to be used to generate the row layout.\n *\n * @example\n * import { BentoLayout, BentoLayoutRow } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLayout, BentoLayoutRow },\n * template: `\n * <bento-layout>\n * <bento-layout-row columns-layout=\"3-9\">\n * <template #col-1>Narrow 3-9</template>\n * <template #col-2>Wide 3-9</template>\n * </bento-layout-row>\n * <bento-layout-row>\n * <template #col-1>6-6</template>\n * <template #col-2>6-6</template>\n * </bento-layout-row>\n * </bento-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./layout-row.scss\" />\n"],"names":["LAYOUT_SIZE_INJECTION_KEY","__default__$1","provide","toRef","props","conditionalClasses","computed","wrapperElement","BentoLayoutRowColumnLayoutOptions","__default__","slots","useSlots","hasSlot","useHasSlot","size","inject","ref","row","col1","col2","isFullWidth","isValidColumnLayout","conditionalRowClass","conditionalRowWithColumnsClass","conditionalColumnClass","columns","getColumnModifier","index","watch","useMediaQuery","isLargeScreen","nextTick","areColumnsInTheRightOrder","_a","_b","_c","onMounted"],"mappings":";;;;;;AAAa,MAAAA,IAAA,uBAAA,wBAAA,GC8CTC,IAAA,CAAA;;;;;;;;;AA9BA,IAAAC,EAAAF,GAAAG,EAAAC,GAAA,MAAA,CAAA;AAEA,UAAAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,uBAAAF,EAAA,YAAA;AAAA,IACE,EAAA,GAG7CG,IAAAH,EAAA,YAAA,SAAA,SAAA;;;;;;;;;;;;;;;qBCjBGI,IAAA,CAAA,OAAA,OAAA,OAAA,OAAA,KAAA,GC2GHC,IAAA,CAAA;;;;;;;iBA/EAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACAI,IAAAC,EAAAf,GAAAgB,EAAA,YAAA,CAAA,GAEAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GACAG,IAAAH,EAAA,IAAA,GAEAI,IAAAd,EAAA,MAAAQ,EAAA,UAAA,YAAA,GACAO,IAAAf,EAAA,MAAAE,EAAA,SAAAJ,EAAA,aAAA,CAAA,GAEAkB,IAAAhB,EAAA,MAAA,iBAAAQ,EAAA,KAAA,EAAA,GAEAS,IAAAjB,EAAA,OAAA;AAAA,MAAuD,gCAAAc,EAAA;AAAA,IACP,EAAA,GAGhDI,IAAAlB,EAAA,MAAA;AACI,YAAAmB,IAAAJ,EAAA,QAAAjB,EAAA,cAAA,MAAA,GAAA,IAAA,CAAA,GAAA,CAAA,GACAsB,IAAA,CAAAC,MAAAP,EAAA,QAAAK,EAAAE,CAAA,IAAAb,EAAA;AAEA,aAAA;AAAA,QAAO,MAAA,yBAAAY,EAAA,CAAA,CAAA;AAAA,QACgD,MAAA,yBAAAA,EAAA,CAAA,CAAA;AAAA,MACA;AAAA,IACvD,CAAA;AAGJ,WAAAE;AAAA,MAAAC,EAAA,oBAAA;AAAA,MACsC,OAAAC,MAAA;;AAE9B,cAAAC,EAAA;AACA,cAAAC,MAAAC,IAAAhB,EAAA,UAAA,gBAAAgB,EAAA,gBAAAf,EAAA;AACA,QAAAY,KAAA,CAAAE,KACIE,IAAAjB,EAAA,UAAA,QAAAiB,EAAA,QAAAhB,EAAA,SAA6B,CAAAY,MAAA1B,EAAA,kBAAA,SAAAA,EAAA,kBAAA,YAE7B+B,IAAAlB,EAAA,UAAA,QAAAkB,EAAA,QAAAhB,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAGtBiB,EAAA,MAAA;AACI,UAAA,CAAAhB,EAAA,UAAAR,EAAA,OAAA,KAAAA,EAAA,OAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAIR,UAAA,CAAAS,EAAA;AACI,cAAA,IAAA;AAAA,UAAU,GAAAjB,EAAA,aAAA;AAAA,QACgB;AAAA,IAE9B,CAAA;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-fullscreen.B1gltlxA.js","sources":["../../src/components/modal-fullscreen/components/modal-fullscreen-page.vue","../../src/composables/use-listeners/use-listener.ts","../../src/components/modal-fullscreen/modal-fullscreen.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-modal-fullscreen-page\" :page-id=\"pageId\" :previous-page=\"previousPage\" always-show-border>\n <template #header>\n <div class=\"b-modal-fullscreen-page__header\">\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title\">\n <bento-typography\n v-if=\"title\"\n el=\"h2\"\n variant=\"title\"\n class=\"b-modal-fullscreen-page__title\"\n :title=\"title\"\n >{{ title }}</bento-typography\n >\n </div>\n <div\n v-if=\"hasSlot('header')\"\n class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot\"\n >\n <slot name=\"header\" />\n </div>\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--actions\">\n <bento-typography\n v-if=\"contextualLabel\"\n class=\"b-modal-fullscreen-page__contextual-label\"\n el=\"span\"\n :title=\"contextualLabel\"\n >{{ contextualLabel }}</bento-typography\n >\n <bento-button-actions v-if=\"actions\" class=\"b-modal-fullscreen-page__actions\" :actions=\"actions\" />\n <div class=\"b-modal-fullscreen-page__separator\"></div>\n </div>\n </div>\n </template>\n <template #content>\n <div class=\"b-modal-fullscreen-page__content\">\n <slot />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { onMounted, type PropType, useSlots } from 'vue';\n\n import { BentoButtonActions, type BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { DialogPage } from '@/internal';\n\n import { useHasSlot } from '@/composables';\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n onMounted(() => {\n if (props.actions && props.actions.length > 2) {\n throw new Error('Not more than 2 action buttons may be provided in Bento Modal Fullscreen');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * ModalFullscreenPage is used to render different pages of ModalFullscreen component\n *\n * @example\n * import { BentoModalFullscreen, BentoModalFullscreenPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen, BentoModalFullscreenPage },\n * template: `\n * <bento-modal-fullscreen active-page='page1' is-open='true'>\n * <bento-modal-fullscreen-page\n * title='Page 1'\n * pageId='page1'\n * contextual-label='Move to next page'\n * :actions=\"[\n * {\n * title: 'Next page',\n * event: () => {\n * activePage.value = 'page2';\n * },\n * }]\">\n * Page 1 info\n * </bento-modal-fullscreen-page>\n * <bento-modal-fullscreen-page\n * title='Page 2'\n * pageId='page2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Page 2 info\n * </bento-modal-fullscreen-page>\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen-page.scss\" />\n","import { getCurrentInstance, useListeners as vueUseListeners } from 'vue';\n\n/**\n * A composable that provides access to the Vue2 component's listeners (see Vue3 implementation in packages/vue3/composables).\n * The listeners are kebab-case and the colons are removed (e.g. \"click\", \"update-value\").\n *\n * In environments where the Composition API is not available (e.g. during testing),\n * it falls back to using the component's non-reactive `$listeners` object.\n *\n * @returns The component's listeners.\n */\nexport function useListeners() {\n // Return nothing so tests don't require a mock of this function\n if (!window || (!vueUseListeners && !getCurrentInstance)) {\n return {};\n }\n\n if (vueUseListeners) {\n return vueUseListeners() as any;\n }\n\n const instance = getCurrentInstance();\n return instance?.proxy?.$listeners || {};\n}\n","<template>\n <dialog\n :id=\"modalFullscreenId\"\n ref=\"modal\"\n class=\"b-modal-fullscreen\"\n :class=\"conditionalClasses\"\n data-dialog-element=\"modal-fullscreen\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc.prevent=\"closeModal\"\n >\n <bento-focus-trap v-if=\"internalIsOpen\" class=\"b-modal-fullscreen__wrapper\">\n <template v-if=\"props.activePage\">\n <slot />\n </template>\n <bento-modal-fullscreen-page v-else :actions=\"actions\" :contextual-label=\"contextualLabel\" :title=\"title\">\n <template v-if=\"hasSlot('default')\" #default>\n <slot name=\"default\"></slot>\n </template>\n <template v-if=\"hasSlot('header')\" #header>\n <slot name=\"header\"></slot>\n </template>\n </bento-modal-fullscreen-page>\n <div class=\"b-modal-fullscreen__close-button\">\n <bento-button variant=\"tertiary\" :aria-label=\"t('close')\" @click=\"closeModal\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n </bento-focus-trap>\n\n <!-- Enable the toast inside the fullscreen-modal -->\n <template v-if=\"isOpen\">\n <bento-toast />\n </template>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, type PropType, provide, ref, toRefs, useSlots, watch } from 'vue';\n import { isVue2 } from 'vue-demi';\n\n import { BentoToast } from '@/components/toast';\n import { BentoButton, type BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import BentoModalFullscreenPage from './components/modal-fullscreen-page.vue';\n\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import { useHasSlot } from '@/composables';\n import { useListeners } from '@/composables/use-listeners';\n import { MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY } from '@/components/modal-fullscreen/modal-fullscreen.keys';\n\n import messages from './messages.json';\n import {\n BentoDialogPageAnimation,\n type BentoDialogPageConfigData,\n type BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same as the pageId of the BentoModalFullscreenPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits([\"before-close\", \"update:active-page\", \"update:is-open\"]);\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const modal = ref(null);\n const isClosing = ref(false);\n const modalFullscreenId = generateUid('modal-fullscreen');\n const internalIsOpen = ref(false);\n\n const listeners = useListeners();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-modal-fullscreen--hide': isClosing.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n if (previousPages.value[0]) {\n emit('update:active-page', previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit('update:is-open', false);\n }\n };\n\n /**\n * Emits the `beforeClose` event, if it is being listened to,\n * before closing the modal and omits the closing animation.\n * The animation will be triggered by the change of the `isOpen` prop instead.\n *\n * If no listener for the `before-close`, then the animation will be triggered,\n * which will close the modal and emit the `update:is-open` event instead, after it was closed.\n */\n function closeModal() {\n /**\n * Vue3 appends the prefix \"on\" and changes to camelCase\n */\n const eventName = isVue2 ? 'before-close' : 'onBeforeClose';\n if (listeners[eventName]) {\n emit('before-close');\n return;\n }\n startCloseModalAnimation();\n }\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for modal ref to be created\n await nextTick();\n\n if (!modal.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n modal.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (modal.value.open) {\n startCloseModalAnimation();\n }\n },\n { immediate: true }\n );\n\n // lets children components know they are inside a Modal (dialog element)\n provide(MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY, modalFullscreenId);\n\n // Pages\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const pages = ref<Array<string>>([]);\n const previousPages = ref([]);\n const updatePage = page => emit('update:active-page', page);\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n if (pageId) {\n pages.value.push(pageId);\n }\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n</script>\n\n<script lang=\"ts\">\n /**\n * Fullscreen modal takes full available space (no content underneath is visible) and focuses the user's attention exclusively on one complex task or piece of complex information.\n *\n * @example\n * import { BentoModalFullscreen } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen },\n * template: `\n * <bento-modal-fullscreen\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * title='Fullscreen modal title'\n * contextual-label='Contextual label'\n * :actions=\"[{ title: 'Action', event: () => {}]\"\n * >\n * <template #header>{{ header slot }}</template>\n * {{ content }}\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen.scss\" />\n"],"names":["__default__$1","slots","useSlots","hasSlot","useHasSlot","onMounted","props","useListeners","useListeners$1","getCurrentInstance","instance","_a","__default__","messages","activePage","isOpen","toRefs","t","useI18n","modal","ref","isClosing","modalFullscreenId","generateUid","internalIsOpen","listeners","conditionalClasses","computed","closeModalAfterAnimation","previousPages","emit","closeModal","startCloseModalAnimation","watch","nextTick","provide","MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY","animation","BentoDialogPageAnimation","pages","updatePage","page","DIALOG_PAGE_CONFIG_INJECTION_KEY","unregisterPage","pageIdToRemove","pageId","registerPage","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY"],"mappings":";;;;;;;;;;;;;;AAqJI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhDAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;AAEA,WAAAI,EAAA,MAAA;AACI,UAAAC,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,0EAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;AChGD,SAAAC,KAAA;;AAEH,MAAA,CAAA,UAAA,CAAAC,KAAA,CAAAC;AACI,WAAA,CAAA;AAGJ,MAAAD;AACI,WAAAA,EAAA;AAGJ,QAAAE,IAAAD,EAAA;AACA,WAAAE,IAAAD,KAAA,gBAAAA,EAAA,UAAA,gBAAAC,EAAA,eAAA,CAAA;AACJ;;;;;;;;;;;GCuOIC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,GAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7IA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAV,CAAA,GACA,EAAA,GAAAW,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAC,EAAA,kBAAA,GACAC,IAAAJ,EAAA,EAAA,GAEAK,IAAAlB,GAAA,GACAN,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAGAyB,IAAAC,EAAA,OAAA;AAAA,MAA2C,4BAAAN,EAAA;AAAA,IACD,EAAA,GAI1CO,IAAA,MAAA;AACI,MAAAP,EAAA,UACIF,EAAA,MAAA,MAAA,GACAU,EAAA,MAAA,CAAA,KACIC,EAAA,sBAAAD,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAR,EAAA,QAAA,IACAG,EAAA,QAAA,IACAM,EAAA,kBAAA,EAAA;AAAA,IACJ;AAWJ,aAAAC,IAAA;AAKI,UAAAN,EADA,cACA,GAAA;AACI,QAAAK,EAAA,cAAA;AACA;AAAA,MAAA;AAEJ,MAAAE,EAAA;AAAA,IAAyB;AAG7B,UAAAA,IAAA,MAAA;AACI,MAAAb,EAAA,MAAA,SAGAE,EAAA,QAAA;AAAA,IAAkB;AAItB,IAAAY;AAAA,MAAA,MAAAlB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAmB,EAAA,GAEAf,EAAA,UAIAJ,EAAA,SACIS,EAAA,QAAA,IACAL,EAAA,MAAA,UAAA,GACAU,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAf,EAAA,KAAA,KACJK,EAAA,MAAA,QAEAa,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAItBG,EAAAC,GAAAd,CAAA;AAGA,UAAAe,IAAAjB,EAAAkB,EAAA,uBAAA,GACAC,IAAAnB,EAAA,CAAA,CAAA,GACAS,IAAAT,EAAA,CAAA,CAAA,GACAoB,IAAA,CAAAC,MAAAX,EAAA,sBAAAW,CAAA;AAEA,IAAAN,EAAAO,GAAA;AAAA,MAAqE,YAAA5B;AAAA,MACjE,WAAAuB;AAAA,MACA,QAAAb;AAAA,MACQ,OAAAe;AAAA,MACR,eAAAV;AAAA,MACA,YAAAW;AAAA,IACA,CAAA;AAIJ,UAAAG,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAAL,EAAA,SAAA5B,IAAA4B,EAAA,UAAA,gBAAA5B,EAAA,OAAA,CAAAkC,MAAAA,MAAAD;AAAA,IAAqE,GAIzEE,IAAA,CAAAD,OACIA,KACIN,EAAA,MAAA,KAAAM,CAAA,GAGJ,EAAA,gBAAAF,EAAAE,CAAA,EAAA;AAGJ,WAAAV,EAAAY,GAAAD,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}