@adyen/bento-vue3 1.45.0 → 1.46.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 (300) hide show
  1. package/dist/@types/index.d.ts +4 -2
  2. package/dist/accordion.js +1 -1
  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/base-modal.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/input-field.css +1 -1
  14. package/dist/assets/inspector.css +1 -1
  15. package/dist/assets/menu.css +1 -1
  16. package/dist/assets/modal-fullscreen.css +1 -1
  17. package/dist/assets/popover.css +1 -1
  18. package/dist/assets/sidepanel.css +1 -1
  19. package/dist/assets/step.css +1 -1
  20. package/dist/avatar.js +1 -1
  21. package/dist/button.js +3 -3
  22. package/dist/card.js +1 -1
  23. package/dist/checkbox.js +3 -3
  24. package/dist/chunks/{accordion-item.DfOb4Pyx.js → accordion-item.BOftQTUm.js} +8 -8
  25. package/dist/chunks/{accordion-item.DfOb4Pyx.js.map → accordion-item.BOftQTUm.js.map} +1 -1
  26. package/dist/chunks/{action-bar.CmDQZkM2.js → action-bar.DHa6nS5J.js} +10 -10
  27. package/dist/chunks/{action-bar.CmDQZkM2.js.map → action-bar.DHa6nS5J.js.map} +1 -1
  28. package/dist/chunks/{alert.D1Ax6AnI.js → alert.BffQNg4e.js} +9 -9
  29. package/dist/chunks/{alert.D1Ax6AnI.js.map → alert.BffQNg4e.js.map} +1 -1
  30. package/dist/chunks/{avatar.B0-9jC6H.js → avatar.DqdDHXay.js} +3 -3
  31. package/dist/chunks/{avatar.B0-9jC6H.js.map → avatar.DqdDHXay.js.map} +1 -1
  32. package/dist/chunks/{base-button.DdNFlbgH.js → base-button.DgHMejMF.js} +9 -9
  33. package/dist/chunks/{base-button.DdNFlbgH.js.map → base-button.DgHMejMF.js.map} +1 -1
  34. package/dist/chunks/{base-modal.DbJYaHyG.js → base-modal.BP7bUB84.js} +13 -13
  35. package/dist/chunks/{base-modal.DbJYaHyG.js.map → base-modal.BP7bUB84.js.map} +1 -1
  36. package/dist/chunks/{button-actions-with-menu.BUyecZNi.js → button-actions-with-menu.DzQQlXXK.js} +8 -8
  37. package/dist/chunks/{button-actions-with-menu.BUyecZNi.js.map → button-actions-with-menu.DzQQlXXK.js.map} +1 -1
  38. package/dist/chunks/{button-actions.CShVMUOC.js → button-actions.C8CJcXxS.js} +8 -8
  39. package/dist/chunks/{button-actions.CShVMUOC.js.map → button-actions.C8CJcXxS.js.map} +1 -1
  40. package/dist/chunks/{button.Cneb6rPP.js → button.DSnv5X7y.js} +10 -10
  41. package/dist/chunks/{button.Cneb6rPP.js.map → button.DSnv5X7y.js.map} +1 -1
  42. package/dist/chunks/{calendar.1qqtC8ba.js → calendar.DlvMzTO4.js} +10 -10
  43. package/dist/chunks/{calendar.1qqtC8ba.js.map → calendar.DlvMzTO4.js.map} +1 -1
  44. package/dist/chunks/{card.rkMUtirc.js → card.9fQrkeSH.js} +11 -11
  45. package/dist/chunks/{card.rkMUtirc.js.map → card.9fQrkeSH.js.map} +1 -1
  46. package/dist/chunks/{checkbox-group.PTNxE0kL.js → checkbox-group.Dq57AigF.js} +13 -13
  47. package/dist/chunks/{checkbox-group.PTNxE0kL.js.map → checkbox-group.Dq57AigF.js.map} +1 -1
  48. package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.D8ZUqd4m.js} +3 -3
  49. package/dist/chunks/{checkbox-input.CAYgiRHG.js.map → checkbox-input.D8ZUqd4m.js.map} +1 -1
  50. package/dist/chunks/{checkbox.D9FJcICR.js → checkbox.BphbrpUx.js} +32 -32
  51. package/dist/chunks/{checkbox.D9FJcICR.js.map → checkbox.BphbrpUx.js.map} +1 -1
  52. package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.ClIf1E3H.js} +4 -4
  53. package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js.map → checkmark-circle-fill.ClIf1E3H.js.map} +1 -1
  54. package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.DEc2T64_.js} +5 -5
  55. package/dist/chunks/{checkmark-small.BDqUF-Ni.js.map → checkmark-small.DEc2T64_.js.map} +1 -1
  56. package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.NvV5m76j.js} +8 -8
  57. package/dist/chunks/{chevron-left.CYEK2UTr.js.map → chevron-left.NvV5m76j.js.map} +1 -1
  58. package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.DQZG_BP3.js} +8 -8
  59. package/dist/chunks/{chevron-up.Cu9qXgBY.js.map → chevron-up.DQZG_BP3.js.map} +1 -1
  60. package/dist/chunks/code-snippet.BXMQTve4.js +422 -0
  61. package/dist/chunks/code-snippet.BXMQTve4.js.map +1 -0
  62. package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.OjJ-3ixa.js} +5180 -4862
  63. package/dist/chunks/codemirror.OjJ-3ixa.js.map +1 -0
  64. package/dist/chunks/{controls-group.BHxcGQ2A.js → controls-group.J99mAGhx.js} +11 -11
  65. package/dist/chunks/{controls-group.BHxcGQ2A.js.map → controls-group.J99mAGhx.js.map} +1 -1
  66. package/dist/chunks/{copy.DAMq-zRP.js → copy.CT8wuwho.js} +5 -5
  67. package/dist/chunks/{copy.DAMq-zRP.js.map → copy.CT8wuwho.js.map} +1 -1
  68. package/dist/chunks/{country.Cv_8NTmw.js → country.CcTaTBE0.js} +5 -5
  69. package/dist/chunks/{country.Cv_8NTmw.js.map → country.CcTaTBE0.js.map} +1 -1
  70. package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.BXO78Wde.js} +5 -5
  71. package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js.map → cross-circle-fill-small.BXO78Wde.js.map} +1 -1
  72. package/dist/chunks/{cross-circle-fill.BzSjakuO.js → cross-circle-fill.DN5b3_eL.js} +4 -4
  73. package/dist/chunks/{cross-circle-fill.BzSjakuO.js.map → cross-circle-fill.DN5b3_eL.js.map} +1 -1
  74. package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CXWTuKA_.js} +5 -5
  75. package/dist/chunks/{cross-small.Z5EKYRm0.js.map → cross-small.CXWTuKA_.js.map} +1 -1
  76. package/dist/chunks/{cross.BZYw4R3N.js → cross.OvPfvoqX.js} +5 -5
  77. package/dist/chunks/{cross.BZYw4R3N.js.map → cross.OvPfvoqX.js.map} +1 -1
  78. package/dist/chunks/{currency.DGX-aejv.js → currency.Dz2x17_Q.js} +3 -3
  79. package/dist/chunks/{currency.DGX-aejv.js.map → currency.Dz2x17_Q.js.map} +1 -1
  80. package/dist/chunks/{dashboard-section.Buh9mb22.js → dashboard-section.C90L1bhS.js} +6 -6
  81. package/dist/chunks/{dashboard-section.Buh9mb22.js.map → dashboard-section.C90L1bhS.js.map} +1 -1
  82. package/dist/chunks/{dashed-underline.DYVSwQtH.js → dashed-underline.BewlZNvL.js} +8 -8
  83. package/dist/chunks/{dashed-underline.DYVSwQtH.js.map → dashed-underline.BewlZNvL.js.map} +1 -1
  84. package/dist/chunks/{data-grid-template.B6xmEgaM.js → data-grid-template.DeAeq2Ij.js} +7 -7
  85. package/dist/chunks/{data-grid-template.B6xmEgaM.js.map → data-grid-template.DeAeq2Ij.js.map} +1 -1
  86. package/dist/chunks/{data-grid.DVc9qzLU.js → data-grid.DSPcFy6O.js} +31 -31
  87. package/dist/chunks/{data-grid.DVc9qzLU.js.map → data-grid.DSPcFy6O.js.map} +1 -1
  88. package/dist/chunks/{date-picker.Bt4fyPQ4.js → date-picker.wNOf4DoV.js} +24 -24
  89. package/dist/chunks/{date-picker.Bt4fyPQ4.js.map → date-picker.wNOf4DoV.js.map} +1 -1
  90. package/dist/chunks/{date-range-picker.Bna_2pBL.js → date-range-picker.C4l0Xe9R.js} +275 -275
  91. package/dist/chunks/{date-range-picker.Bna_2pBL.js.map → date-range-picker.C4l0Xe9R.js.map} +1 -1
  92. package/dist/chunks/{date.DeaBl297.js → date.DVGj7WKQ.js} +16 -14
  93. package/dist/chunks/{date.DeaBl297.js.map → date.DVGj7WKQ.js.map} +1 -1
  94. package/dist/chunks/{dialog-page.CJBSluwk.js → dialog-page.DNwtSB1o.js} +28 -29
  95. package/dist/chunks/{dialog-page.CJBSluwk.js.map → dialog-page.DNwtSB1o.js.map} +1 -1
  96. package/dist/chunks/{divider.DwBC4bpr.js → divider.ugNXYI-T.js} +3 -3
  97. package/dist/chunks/{divider.DwBC4bpr.js.map → divider.ugNXYI-T.js.map} +1 -1
  98. package/dist/chunks/{dot.cpdFEk6G.js → dot.pQfhaKda.js} +5 -5
  99. package/dist/chunks/{dot.cpdFEk6G.js.map → dot.pQfhaKda.js.map} +1 -1
  100. package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js → dropdown-default-textbox.3HzBUxC3.js} +14 -14
  101. package/dist/chunks/{dropdown-default-textbox.ipIFhyWZ.js.map → dropdown-default-textbox.3HzBUxC3.js.map} +1 -1
  102. package/dist/chunks/{dropdown-tag.DLyxItIS.js → dropdown-tag.BRNZ7KIi.js} +8 -8
  103. package/dist/chunks/{dropdown-tag.DLyxItIS.js.map → dropdown-tag.BRNZ7KIi.js.map} +1 -1
  104. package/dist/chunks/{dropdown.CZDXXpKe.js → dropdown.DhvCTlVl.js} +270 -263
  105. package/dist/chunks/dropdown.DhvCTlVl.js.map +1 -0
  106. package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DYfl7gnt.js} +12 -12
  107. package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DYfl7gnt.js.map} +1 -1
  108. package/dist/chunks/{error-message.BVE3JdTq.js → error-message.C6QpZ9ux.js} +16 -16
  109. package/dist/chunks/{error-message.BVE3JdTq.js.map → error-message.C6QpZ9ux.js.map} +1 -1
  110. package/dist/chunks/{es6.jIyAPBgt.js → es6.D11bE5vq.js} +6 -6
  111. package/dist/chunks/{es6.jIyAPBgt.js.map → es6.D11bE5vq.js.map} +1 -1
  112. package/dist/chunks/{expand.CJ162RaJ.js → expand.CgwNEbbz.js} +4 -4
  113. package/dist/chunks/{expand.CJ162RaJ.js.map → expand.CgwNEbbz.js.map} +1 -1
  114. package/dist/chunks/file-uploader.DiqPKVVt.js +2226 -0
  115. package/dist/chunks/file-uploader.DiqPKVVt.js.map +1 -0
  116. package/dist/chunks/{filter-bar.oihCCt5N.js → filter-bar.ChU2rr8r.js} +52 -52
  117. package/dist/chunks/{filter-bar.oihCCt5N.js.map → filter-bar.ChU2rr8r.js.map} +1 -1
  118. package/dist/chunks/{fixed-scroller.XaGPUsUO.js → fixed-scroller.C4zzWgje.js} +12 -12
  119. package/dist/chunks/{fixed-scroller.XaGPUsUO.js.map → fixed-scroller.C4zzWgje.js.map} +1 -1
  120. package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DOiVbmpZ.js} +8 -8
  121. package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DOiVbmpZ.js.map} +1 -1
  122. package/dist/chunks/{footer-actions.n0JIXO4Q.js → footer-actions.Cl2aupkj.js} +8 -8
  123. package/dist/chunks/{footer-actions.n0JIXO4Q.js.map → footer-actions.Cl2aupkj.js.map} +1 -1
  124. package/dist/chunks/{form-layout-title.srkVLEUW.js → form-layout-title.Du4aY15F.js} +4 -4
  125. package/dist/chunks/{form-layout-title.srkVLEUW.js.map → form-layout-title.Du4aY15F.js.map} +1 -1
  126. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.D-HFI38h.js} +2 -2
  127. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.D-HFI38h.js.map} +1 -1
  128. package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.CqLbbEzI.js} +21 -21
  129. package/dist/chunks/{grid-layout.BTLE3rac.js.map → grid-layout.CqLbbEzI.js.map} +1 -1
  130. package/dist/chunks/{header.CAHXObTT.js → header.CUyEq2ER.js} +65 -65
  131. package/dist/chunks/{header.CAHXObTT.js.map → header.CUyEq2ER.js.map} +1 -1
  132. package/dist/chunks/{i18n.WMYWtwxB.js → i18n.CPGoe9tN.js} +540 -540
  133. package/dist/chunks/{i18n.WMYWtwxB.js.map → i18n.CPGoe9tN.js.map} +1 -1
  134. package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js} +3 -3
  135. package/dist/chunks/{image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map → image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map} +1 -1
  136. package/dist/chunks/{index.BMkVmbZj.js → index.BHiMheJx.js} +5 -5
  137. package/dist/chunks/{index.BMkVmbZj.js.map → index.BHiMheJx.js.map} +1 -1
  138. package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js → info-icon-with-popover._ZiXaIcp.js} +11 -11
  139. package/dist/chunks/{info-icon-with-popover.DFv8U4sh.js.map → info-icon-with-popover._ZiXaIcp.js.map} +1 -1
  140. package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.B6QPdxPi.js} +5 -5
  141. package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.B6QPdxPi.js.map} +1 -1
  142. package/dist/chunks/{info.DYNe2WnZ.js → info.CIFBUqf-.js} +4 -4
  143. package/dist/chunks/{info.DYNe2WnZ.js.map → info.CIFBUqf-.js.map} +1 -1
  144. package/dist/chunks/{input-field-password.DedPkZxg.js → input-field-password.LVaJy8_K.js} +30 -30
  145. package/dist/chunks/{input-field-password.DedPkZxg.js.map → input-field-password.LVaJy8_K.js.map} +1 -1
  146. package/dist/chunks/{input-field.3PUv6XC3.js → input-field.BVewQng_.js} +124 -115
  147. package/dist/chunks/input-field.BVewQng_.js.map +1 -0
  148. package/dist/chunks/{inspector.types.Dr0D250X.js → inspector.types.DKL2_Mku.js} +14 -14
  149. package/dist/chunks/{inspector.types.Dr0D250X.js.map → inspector.types.DKL2_Mku.js.map} +1 -1
  150. package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.CwYDJeG_.js} +4 -4
  151. package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.CwYDJeG_.js.map} +1 -1
  152. package/dist/chunks/{link.ClFi8uSm.js → link.DHXLGTkn.js} +11 -11
  153. package/dist/chunks/{link.ClFi8uSm.js.map → link.DHXLGTkn.js.map} +1 -1
  154. package/dist/chunks/{listbox-option-tag.zYn_kSFz.js → listbox-option-tag.DsI3DdjJ.js} +9 -9
  155. package/dist/chunks/{listbox-option-tag.zYn_kSFz.js.map → listbox-option-tag.DsI3DdjJ.js.map} +1 -1
  156. package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.N_WV9Gwz.js} +3 -3
  157. package/dist/chunks/{loading-indicator.DEepb9Wl.js.map → loading-indicator.N_WV9Gwz.js.map} +1 -1
  158. package/dist/chunks/{menu.Dmzh3Uat.js → menu.C5Y5nSvX.js} +13 -13
  159. package/dist/chunks/{menu.Dmzh3Uat.js.map → menu.C5Y5nSvX.js.map} +1 -1
  160. package/dist/chunks/{modal-fullscreen.BazQAAU1.js → modal-fullscreen.Bw0CzdjS.js} +12 -12
  161. package/dist/chunks/{modal-fullscreen.BazQAAU1.js.map → modal-fullscreen.Bw0CzdjS.js.map} +1 -1
  162. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js → modal.vue_vue_type_script_setup_true_lang.B-_oGtsE.js} +13 -13
  163. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C8vZDtlE.js.map → modal.vue_vue_type_script_setup_true_lang.B-_oGtsE.js.map} +1 -1
  164. package/dist/chunks/{pagination.BCC3GZV5.js → pagination.OzqU46-J.js} +11 -11
  165. package/dist/chunks/{pagination.BCC3GZV5.js.map → pagination.OzqU46-J.js.map} +1 -1
  166. package/dist/chunks/{payment-method.2IeC7f4x.js → payment-method.Lwl-3chY.js} +3 -3
  167. package/dist/chunks/{payment-method.2IeC7f4x.js.map → payment-method.Lwl-3chY.js.map} +1 -1
  168. package/dist/chunks/{popover.3KG1IoYE.js → popover.BFZU1OKv.js} +7 -7
  169. package/dist/chunks/{popover.3KG1IoYE.js.map → popover.BFZU1OKv.js.map} +1 -1
  170. package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.CQblHdJf.js} +4 -4
  171. package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.CQblHdJf.js.map} +1 -1
  172. package/dist/chunks/{promo-banner.BjLfDhBq.js → promo-banner.DB6C9Tgr.js} +12 -12
  173. package/dist/chunks/{promo-banner.BjLfDhBq.js.map → promo-banner.DB6C9Tgr.js.map} +1 -1
  174. package/dist/chunks/{radio-group.CeiSaH6M.js → radio-group.DVPnBI92.js} +8 -8
  175. package/dist/chunks/{radio-group.CeiSaH6M.js.map → radio-group.DVPnBI92.js.map} +1 -1
  176. package/dist/chunks/{radio-input.0TPahhZT.js → radio-input.ButaAWTD.js} +5 -5
  177. package/dist/chunks/{radio-input.0TPahhZT.js.map → radio-input.ButaAWTD.js.map} +1 -1
  178. package/dist/chunks/{refresh.SzRxQ44W.js → refresh.DvQeGwUF.js} +5 -5
  179. package/dist/chunks/{refresh.SzRxQ44W.js.map → refresh.DvQeGwUF.js.map} +1 -1
  180. package/dist/chunks/{search-bar.BZDJJtWB.js → search-bar.CPOGuVqp.js} +8 -8
  181. package/dist/chunks/{search-bar.BZDJJtWB.js.map → search-bar.CPOGuVqp.js.map} +1 -1
  182. package/dist/chunks/{search.KgjmJMHa.js → search.EnLryD8V.js} +4 -4
  183. package/dist/chunks/{search.KgjmJMHa.js.map → search.EnLryD8V.js.map} +1 -1
  184. package/dist/chunks/{secondary-nav.qm-rh-r6.js → secondary-nav.B1zTf8Ls.js} +11 -11
  185. package/dist/chunks/{secondary-nav.qm-rh-r6.js.map → secondary-nav.B1zTf8Ls.js.map} +1 -1
  186. package/dist/chunks/{segmented-control.BIwBQ8i3.js → segmented-control.DV9mJM7g.js} +9 -9
  187. package/dist/chunks/{segmented-control.BIwBQ8i3.js.map → segmented-control.DV9mJM7g.js.map} +1 -1
  188. package/dist/chunks/{selection-card-group.DPGh4nwl.js → selection-card-group.z0SNFpjN.js} +17 -17
  189. package/dist/chunks/{selection-card-group.DPGh4nwl.js.map → selection-card-group.z0SNFpjN.js.map} +1 -1
  190. package/dist/chunks/{show.J9zXGWlK.js → show.ChPQTrAT.js} +6 -6
  191. package/dist/chunks/{show.J9zXGWlK.js.map → show.ChPQTrAT.js.map} +1 -1
  192. package/dist/chunks/{sidepanel.DxSdFwm1.js → sidepanel.B-YKxXQA.js} +12 -12
  193. package/dist/chunks/{sidepanel.DxSdFwm1.js.map → sidepanel.B-YKxXQA.js.map} +1 -1
  194. package/dist/chunks/{status.types.Dil95sGx.js → status.types.Bh_mGknA.js} +6 -6
  195. package/dist/chunks/{status.types.Dil95sGx.js.map → status.types.Bh_mGknA.js.map} +1 -1
  196. package/dist/chunks/{step.DAB8h_4u.js → step.CGHc2hFZ.js} +7 -7
  197. package/dist/chunks/{step.DAB8h_4u.js.map → step.CGHc2hFZ.js.map} +1 -1
  198. package/dist/chunks/{structured-list-item.DpI6jzfM.js → structured-list-item.DNP6fkCb.js} +9 -9
  199. package/dist/chunks/{structured-list-item.DpI6jzfM.js.map → structured-list-item.DNP6fkCb.js.map} +1 -1
  200. package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js → summary-grid-item-custom.Dm2rULoZ.js} +7 -7
  201. package/dist/chunks/{summary-grid-item-custom.DCNWMasy.js.map → summary-grid-item-custom.Dm2rULoZ.js.map} +1 -1
  202. package/dist/chunks/{tabs.B5-PZCxc.js → tabs.BXuDJsCU.js} +5 -5
  203. package/dist/chunks/{tabs.B5-PZCxc.js.map → tabs.BXuDJsCU.js.map} +1 -1
  204. package/dist/chunks/{tag.BuUbvgok.js → tag.bo9YuJ9f.js} +5 -5
  205. package/dist/chunks/{tag.BuUbvgok.js.map → tag.bo9YuJ9f.js.map} +1 -1
  206. package/dist/chunks/{teleport.B1NhF5-O.js → teleport.B255JhsV.js} +4 -4
  207. package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.B255JhsV.js.map} +1 -1
  208. package/dist/chunks/{textarea.CCr8inwI.js → textarea.FlyFaC5n.js} +8 -8
  209. package/dist/chunks/{textarea.CCr8inwI.js.map → textarea.FlyFaC5n.js.map} +1 -1
  210. package/dist/chunks/{timeline-item.DG9YaOiC.js → timeline-item.DYgnYAx0.js} +38 -38
  211. package/dist/chunks/{timeline-item.DG9YaOiC.js.map → timeline-item.DYgnYAx0.js.map} +1 -1
  212. package/dist/chunks/{toast.CVy2sf_5.js → toast.Cp-osZLV.js} +22 -22
  213. package/dist/chunks/{toast.CVy2sf_5.js.map → toast.Cp-osZLV.js.map} +1 -1
  214. package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.BABftVnA.js} +4 -4
  215. package/dist/chunks/{toggle-button.CCgvi7TQ.js.map → toggle-button.BABftVnA.js.map} +1 -1
  216. package/dist/chunks/{toggle.Dl82VpiQ.js → toggle.Bme9eaeR.js} +5 -5
  217. package/dist/chunks/{toggle.Dl82VpiQ.js.map → toggle.Bme9eaeR.js.map} +1 -1
  218. package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.Ch4_ew27.js} +9 -9
  219. package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.Ch4_ew27.js.map} +1 -1
  220. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js → tutorial.vue_vue_type_script_setup_true_lang.hNv57lCE.js} +33 -33
  221. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CQ0vEvB4.js.map → tutorial.vue_vue_type_script_setup_true_lang.hNv57lCE.js.map} +1 -1
  222. package/dist/chunks/{typography.DN5eC5ch.js → typography.DNzU41ah.js} +3 -4
  223. package/dist/chunks/{typography.DN5eC5ch.js.map → typography.DNzU41ah.js.map} +1 -1
  224. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.C2wUDcoc.js} +3 -3
  225. package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.C2wUDcoc.js.map} +1 -1
  226. package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js → use-cached-selected-values.CvdhdRHz.js} +15 -15
  227. package/dist/chunks/{use-cached-selected-values.BBD_AA1m.js.map → use-cached-selected-values.CvdhdRHz.js.map} +1 -1
  228. package/dist/chunks/{use-country-items.DnPo3yxj.js → use-country-items.D4T1eUtC.js} +2 -2
  229. package/dist/chunks/{use-country-items.DnPo3yxj.js.map → use-country-items.D4T1eUtC.js.map} +1 -1
  230. package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.OUOUbA6k.js} +5 -5
  231. package/dist/chunks/{warning-filled.tTkVob0l.js.map → warning-filled.OUOUbA6k.js.map} +1 -1
  232. package/dist/code-snippet.js +1 -1
  233. package/dist/country.js +1 -1
  234. package/dist/currency.js +1 -1
  235. package/dist/dashboard-template.js +1 -1
  236. package/dist/dashed-underline.js +1 -1
  237. package/dist/data-grid-template.js +1 -1
  238. package/dist/data-grid.js +1 -1
  239. package/dist/date-picker.js +2 -2
  240. package/dist/date-range-picker.js +2 -2
  241. package/dist/date.js +1 -1
  242. package/dist/divider.js +1 -1
  243. package/dist/dropdown.js +4 -4
  244. package/dist/empty-state.js +1 -1
  245. package/dist/file-uploader.js +1 -1
  246. package/dist/filter-bar.js +1 -1
  247. package/dist/focus-trap.js +1 -1
  248. package/dist/form-layout.js +1 -1
  249. package/dist/header.js +1 -1
  250. package/dist/image.js +1 -1
  251. package/dist/index.js +170 -170
  252. package/dist/index.js.map +1 -1
  253. package/dist/info-icon.js +1 -1
  254. package/dist/input-field-password.js +1 -1
  255. package/dist/input-field.js +1 -1
  256. package/dist/inspector.js +1 -1
  257. package/dist/internal.js +14 -14
  258. package/dist/layout.js +1 -1
  259. package/dist/link.js +1 -1
  260. package/dist/loading-indicator.js +1 -1
  261. package/dist/menu.js +1 -1
  262. package/dist/modal-fullscreen.js +1 -1
  263. package/dist/modal.js +2 -2
  264. package/dist/pagination.js +1 -1
  265. package/dist/payment-method.js +1 -1
  266. package/dist/popover.js +1 -1
  267. package/dist/popper-container.js +1 -1
  268. package/dist/promo-banner.js +1 -1
  269. package/dist/radio-group.js +2 -2
  270. package/dist/search-bar.js +2 -2
  271. package/dist/secondary-nav.js +1 -1
  272. package/dist/segmented-control.js +1 -1
  273. package/dist/selection-card.js +1 -1
  274. package/dist/sidepanel.js +1 -1
  275. package/dist/status.js +1 -1
  276. package/dist/stepper.js +1 -1
  277. package/dist/structured-list.js +1 -1
  278. package/dist/styles/bento-dark.css +1 -0
  279. package/dist/styles/bento-light.css +1 -0
  280. package/dist/styles/bento.css +1 -0
  281. package/dist/styles/legacy.css +6 -5
  282. package/dist/styles/styleguide.css +1 -0
  283. package/dist/summary-grid.js +1 -1
  284. package/dist/tabs.js +1 -1
  285. package/dist/tag.js +1 -1
  286. package/dist/textarea.js +1 -1
  287. package/dist/timeline.js +1 -1
  288. package/dist/toast.js +1 -1
  289. package/dist/toggle.js +1 -1
  290. package/dist/tutorial.js +1 -1
  291. package/dist/typography.js +1 -1
  292. package/dist/web-types.json +1 -1
  293. package/package.json +7 -4
  294. package/dist/chunks/code-snippet.volJxGqR.js +0 -392
  295. package/dist/chunks/code-snippet.volJxGqR.js.map +0 -1
  296. package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
  297. package/dist/chunks/dropdown.CZDXXpKe.js.map +0 -1
  298. package/dist/chunks/file-uploader.BXHt0PWz.js +0 -1077
  299. package/dist/chunks/file-uploader.BXHt0PWz.js.map +0 -1
  300. package/dist/chunks/input-field.3PUv6XC3.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout-title.srkVLEUW.js","sources":["../../../vue2/src/components/form-layout/form-layout.vue","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../../vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","props","__props","formLayoutElement","computed","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,IAAA,CAAA;;;;;;;;;;;;;;;AA1DA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAaAC,IAAAC,EAAA,MAAAH,EAAA,OAAA,SAAA,KAAA,GACAI,IAAAD,EAAA,MAAAL,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAO,EAAAC,GAAAC,EAAAP,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEC5CGQ,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAb,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;kEClBGc,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjEA,UAAAX,IAAAC,GAgCAW,IAAAT;AAAA,MAAuB,MAAAO,EAAA,SAAAV,EAAA,MAAA,IAAAA,EAAA,SAAA;AAAA,IACiD,GAGxEa,IAAAV,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAO,EAAA,SAAAV,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAY,EAAA,KAAA,EAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;kECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAvDA,UAAAlB,IAAAC,EAAA,GAEAG,IAAAC,GAuBAc,IAAAZ,EAAA,MAAA,CAAAH,EAAA,UAAA,GACAF,IAAAC,EAAAH,CAAA,GACAiB,IAAAV,EAAA,OAAA;AAAA,MAA2C,mCAAAH,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout-title.Du4aY15F.js","sources":["../../../vue2/src/components/form-layout/form-layout.vue","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../../vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","props","__props","formLayoutElement","computed","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,IAAA,CAAA;;;;;;;;;;;;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ypto.randomUUID && crypto.randomUUID.bind(crypto), o = { randomUUID: m };
18
18
  function r(n, t, U) {
19
19
  var c;
20
- if (o.randomUUID && !n)
20
+ if (o.randomUUID && !t && !n)
21
21
  return o.randomUUID();
22
22
  n = n || {};
23
23
  const d = n.random ?? ((c = n.rng) == null ? void 0 : c.call(n)) ?? i();
@@ -29,4 +29,4 @@ const p = (n) => n ? `${n}-${r()}` : r();
29
29
  export {
30
30
  p as g
31
31
  };
32
- //# sourceMappingURL=generate-uid.NJ8tVoha.js.map
32
+ //# sourceMappingURL=generate-uid.D-HFI38h.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-uid.NJ8tVoha.js","sources":["../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/stringify.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/rng.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/native.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/v4.js","../../../core/src/utils/ts/generate-uid.ts"],"sourcesContent":["import validate from './validate.js';\nconst byteToHex = [];\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n return (byteToHex[arr[offset + 0]] +\n byteToHex[arr[offset + 1]] +\n byteToHex[arr[offset + 2]] +\n byteToHex[arr[offset + 3]] +\n '-' +\n byteToHex[arr[offset + 4]] +\n byteToHex[arr[offset + 5]] +\n '-' +\n byteToHex[arr[offset + 6]] +\n byteToHex[arr[offset + 7]] +\n '-' +\n byteToHex[arr[offset + 8]] +\n byteToHex[arr[offset + 9]] +\n '-' +\n byteToHex[arr[offset + 10]] +\n byteToHex[arr[offset + 11]] +\n byteToHex[arr[offset + 12]] +\n byteToHex[arr[offset + 13]] +\n byteToHex[arr[offset + 14]] +\n byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset);\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;\n","let getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n if (typeof crypto === 'undefined' || !crypto.getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n getRandomValues = crypto.getRandomValues.bind(crypto);\n }\n return getRandomValues(rnds8);\n}\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default { randomUUID };\n","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random ?? options.rng?.() ?? rng();\n if (rnds.length < 16) {\n throw new Error('Random bytes length must be >= 16');\n }\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n if (offset < 0 || offset + 16 > buf.length) {\n throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);\n }\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n","import { v4 } from 'uuid';\n\n/**\n * Returns a unique identifier optionally prefixed by a custom string\n * @param value - The string to be prepended to the unique identifier\n */\nexport const generateUid = (value: string): string => (value ? `${value}-${v4()}` : v4());\n"],"names":["byteToHex","i","unsafeStringify","arr","offset","getRandomValues","rnds8","rng","randomUUID","native","v4","options","buf","_a","rnds","generateUid","value"],"mappings":"AACA,MAAMA,IAAY,CAAE;AACpB,SAASC,IAAI,GAAGA,IAAI,KAAK,EAAEA;AACvB,EAAAD,EAAU,MAAMC,IAAI,KAAO,SAAS,EAAE,EAAE,MAAM,CAAC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O,WAAY;AAE9B,EAAAE,IAAUA,KAAW,CAAE;AACvB,QAAMG,IAAOH,EAAQ,YAAUE,IAAAF,EAAQ,QAAR,gBAAAE,EAAA,KAAAF,OAAmBJ,EAAK;AACvD,MAAIO,EAAK,SAAS;AACd,UAAM,IAAI,MAAM,mCAAmC;AAEvD,SAAAA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,IAC7BA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,KAWtBZ,EAAgBY,CAAI;AAC/B;ACnBa,MAAAC,IAAc,CAACC,MAA2BA,IAAQ,GAAGA,CAAK,IAAIN,GAAI,KAAKA,EAAG;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"generate-uid.D-HFI38h.js","sources":["../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/stringify.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/rng.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/native.js","../../../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm-browser/v4.js","../../../core/src/utils/ts/generate-uid.ts"],"sourcesContent":["import validate from './validate.js';\nconst byteToHex = [];\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n return (byteToHex[arr[offset + 0]] +\n byteToHex[arr[offset + 1]] +\n byteToHex[arr[offset + 2]] +\n byteToHex[arr[offset + 3]] +\n '-' +\n byteToHex[arr[offset + 4]] +\n byteToHex[arr[offset + 5]] +\n '-' +\n byteToHex[arr[offset + 6]] +\n byteToHex[arr[offset + 7]] +\n '-' +\n byteToHex[arr[offset + 8]] +\n byteToHex[arr[offset + 9]] +\n '-' +\n byteToHex[arr[offset + 10]] +\n byteToHex[arr[offset + 11]] +\n byteToHex[arr[offset + 12]] +\n byteToHex[arr[offset + 13]] +\n byteToHex[arr[offset + 14]] +\n byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset);\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;\n","let getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n if (typeof crypto === 'undefined' || !crypto.getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n getRandomValues = crypto.getRandomValues.bind(crypto);\n }\n return getRandomValues(rnds8);\n}\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default { randomUUID };\n","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random ?? options.rng?.() ?? rng();\n if (rnds.length < 16) {\n throw new Error('Random bytes length must be >= 16');\n }\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n if (offset < 0 || offset + 16 > buf.length) {\n throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);\n }\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n","import { v4 } from 'uuid';\n\n/**\n * Returns a unique identifier optionally prefixed by a custom string\n * @param value - The string to be prepended to the unique identifier\n */\nexport const generateUid = (value: string): string => (value ? `${value}-${v4()}` : v4());\n"],"names":["byteToHex","i","unsafeStringify","arr","offset","getRandomValues","rnds8","rng","randomUUID","native","v4","options","buf","_a","rnds","generateUid","value"],"mappings":"AACA,MAAMA,IAAY,CAAE;AACpB,SAASC,IAAI,GAAGA,IAAI,KAAK,EAAEA;AACv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FlC,MAAAS;AGGI,MAAIJ,EAAO,cAAc,CAACG,KAAO,CAACD;AAC9B,WAAOF,EAAO,WAAY;AAE9B,EAAAE,IAAUA,KAAW,CAAE;AACvB,QAAMG,IAAOH,EAAQ,YAAUE,IAAAF,EAAQ,QAAR,gBAAAE,EAAA,KAAAF,OAAmBJ,EAAK;AACvD,MAAIO,EAAK,SAAS;AACd,UAAM,IAAI,MAAM,mCAAmC;AAEvD,SAAAA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,IAC7BA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,KAWtBZ,EAAgBY,CAAI;AAC/B;ACnBa,MAAAC,IAAc,CAACC,MAA2BA,IAAQ,GAAGA,CAAK,IAAIN,GAAI,KAAKA,EAAG;","x_google_ignoreList":[0,1,2,3]}
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, computed as S, createElementBlock as l, openBlock as t, normalizeClass as e, createCommentVNode as u, renderSlot as i } from "vue";
1
+ import { defineComponent as p, computed as S, openBlock as l, createElementBlock as t, normalizeClass as e, renderSlot as u, createCommentVNode as i } from "vue";
2
2
  import { u as v } from "./use-has-slot.B7eQSabc.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
4
  import "../assets/grid-layout.css";
@@ -58,52 +58,52 @@ const b = p({
58
58
  }
59
59
  });
60
60
  function f(o, n, r, c, m, a) {
61
- return t(), l("div", {
61
+ return l(), t("div", {
62
62
  class: e(["b-grid-layout", o.computedClasses]),
63
63
  "data-testid": "grid-layout"
64
64
  }, [
65
- o.hasSlot("col-1") ? (t(), l("div", {
65
+ o.hasSlot("col-1") ? (l(), t("div", {
66
66
  key: 0,
67
67
  class: e(["b-grid-layout__column", o.computeColumnSize(0)]),
68
68
  "data-testid": "grid-layout-col-1"
69
69
  }, [
70
- i(o.$slots, "col-1", {}, void 0, !0)
71
- ], 2)) : u("", !0),
72
- o.hasSlot("col-2") ? (t(), l("div", {
70
+ u(o.$slots, "col-1", {}, void 0, !0)
71
+ ], 2)) : i("", !0),
72
+ o.hasSlot("col-2") ? (l(), t("div", {
73
73
  key: 1,
74
74
  class: e(["b-grid-layout__column", o.computeColumnSize(1)]),
75
75
  "data-testid": "grid-layout-col-2"
76
76
  }, [
77
- i(o.$slots, "col-2", {}, void 0, !0)
78
- ], 2)) : u("", !0),
79
- o.hasSlot("col-3") ? (t(), l("div", {
77
+ u(o.$slots, "col-2", {}, void 0, !0)
78
+ ], 2)) : i("", !0),
79
+ o.hasSlot("col-3") ? (l(), t("div", {
80
80
  key: 2,
81
81
  class: e(["b-grid-layout__column", o.computeColumnSize(2)]),
82
82
  "data-testid": "grid-layout-col-3"
83
83
  }, [
84
- i(o.$slots, "col-3", {}, void 0, !0)
85
- ], 2)) : u("", !0),
86
- o.hasSlot("col-4") ? (t(), l("div", {
84
+ u(o.$slots, "col-3", {}, void 0, !0)
85
+ ], 2)) : i("", !0),
86
+ o.hasSlot("col-4") ? (l(), t("div", {
87
87
  key: 3,
88
88
  class: e(["b-grid-layout__column", o.computeColumnSize(3)]),
89
89
  "data-testid": "grid-layout-col-4"
90
90
  }, [
91
- i(o.$slots, "col-4", {}, void 0, !0)
92
- ], 2)) : u("", !0),
93
- o.hasSlot("col-5") ? (t(), l("div", {
91
+ u(o.$slots, "col-4", {}, void 0, !0)
92
+ ], 2)) : i("", !0),
93
+ o.hasSlot("col-5") ? (l(), t("div", {
94
94
  key: 4,
95
95
  class: e(["b-grid-layout__column", o.computeColumnSize(4)]),
96
96
  "data-testid": "grid-layout-col-5"
97
97
  }, [
98
- i(o.$slots, "col-5", {}, void 0, !0)
99
- ], 2)) : u("", !0),
100
- o.hasSlot("col-6") ? (t(), l("div", {
98
+ u(o.$slots, "col-5", {}, void 0, !0)
99
+ ], 2)) : i("", !0),
100
+ o.hasSlot("col-6") ? (l(), t("div", {
101
101
  key: 5,
102
102
  class: e(["b-grid-layout__column", o.computeColumnSize(5)]),
103
103
  "data-testid": "grid-layout-col-6"
104
104
  }, [
105
- i(o.$slots, "col-6", {}, void 0, !0)
106
- ], 2)) : u("", !0)
105
+ u(o.$slots, "col-6", {}, void 0, !0)
106
+ ], 2)) : i("", !0)
107
107
  ], 2);
108
108
  }
109
109
  const _ = /* @__PURE__ */ h(b, [["render", f], ["__scopeId", "data-v-bfda2e12"]]);
@@ -111,4 +111,4 @@ export {
111
111
  _ as G,
112
112
  d as a
113
113
  };
114
- //# sourceMappingURL=grid-layout.BTLE3rac.js.map
114
+ //# sourceMappingURL=grid-layout.CqLbbEzI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid-layout.BTLE3rac.js","sources":["../../../vue2/src/components/internal/grid-layout/grid-layout.types.ts","../../../vue2/src/components/internal/grid-layout/grid-layout.vue"],"sourcesContent":["export enum GridLayoutContainerType {\n INLINE = 'inline-size',\n SIZE = 'size',\n NORMAL = 'normal',\n}\n\nexport interface GridLayoutColumnWidth {\n small: number | string;\n medium: number | string;\n large: number | string;\n}\n\nexport type GridLayoutColumnWidths = Array<'auto' | GridLayoutColumnWidth>;\n","<template>\n <div class=\"b-grid-layout\" :class=\"computedClasses\" data-testid=\"grid-layout\">\n <div\n v-if=\"hasSlot('col-1')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(0)\"\n data-testid=\"grid-layout-col-1\"\n >\n <slot name=\"col-1\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-2')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(1)\"\n data-testid=\"grid-layout-col-2\"\n >\n <slot name=\"col-2\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-3')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(2)\"\n data-testid=\"grid-layout-col-3\"\n >\n <slot name=\"col-3\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-4')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(3)\"\n data-testid=\"grid-layout-col-4\"\n >\n <slot name=\"col-4\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-5')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(4)\"\n data-testid=\"grid-layout-col-5\"\n >\n <slot name=\"col-5\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-6')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(5)\"\n data-testid=\"grid-layout-col-6\"\n >\n <slot name=\"col-6\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { useHasSlot } from '@/composables';\n import { GridLayoutColumnWidth, GridLayoutColumnWidths, GridLayoutContainerType } from './grid-layout.types';\n\n /**\n * Component used to render the grid layout in the bento-summary-grid. For internal use only\n */\n export default defineComponent({\n name: 'grid-layout',\n props: {\n /**\n * Sets the responsive columns widths for the grid.\n */\n columnWidth: {\n type: Array as PropType<GridLayoutColumnWidths>,\n default: null,\n validator: (array: GridLayoutColumnWidths) => array && array.length <= 6,\n },\n\n /**\n * Set the type of CSS container the grid layout has\n * @values inline-size, size, normal\n */\n containerType: {\n type: String as PropType<GridLayoutContainerType>,\n default: GridLayoutContainerType.INLINE,\n },\n\n /**\n * Sets the gap in the grid to 0.\n */\n noGap: {\n type: Boolean,\n default: false,\n },\n },\n setup(props, { slots }) {\n const hasSlot = useHasSlot(slots);\n\n // TODO: add a computedItems computed here that only returns the slots that are presents so as to be able to render the divs in the template via a v-for\n const computeColumnSize = index => {\n if (props.columnWidth?.[index] && props.columnWidth?.[index] !== 'auto') {\n const columnWidth = props.columnWidth[index] as GridLayoutColumnWidth;\n return [\n `b-grid-layout__column--${columnWidth.small}`,\n `b-grid-layout-m__column--${columnWidth.medium}`,\n `b-grid-layout-l__column--${columnWidth.large}`,\n ];\n }\n return null;\n };\n\n const computedClasses = computed(() => ({\n 'b-grid-layout--container-type-normal': props.containerType === GridLayoutContainerType.NORMAL,\n 'b-grid-layout--container-type-size': props.containerType === GridLayoutContainerType.SIZE,\n 'b-grid-layout--all-auto':\n props.columnWidth === null || props.columnWidth.every(width => width === 'auto'),\n 'b-grid-layout--no-gap': props.noGap,\n }));\n\n return {\n // Values\n computeColumnSize,\n computedClasses,\n\n // Methods\n hasSlot,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./grid-layout.scss\" />\n"],"names":["GridLayoutContainerType","GridLayoutContainerType2","_sfc_main","defineComponent","array","props","slots","hasSlot","useHasSlot","computeColumnSize","index","_a","_b","columnWidth","computedClasses","computed","width","openBlock","createElementBlock","normalizeClass","_ctx","renderSlot","createCommentVNode"],"mappings":";;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,SAAA,eACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA;AC6DR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,OAAA;AAAA;AAAA;AAAA;AAAA,IACC,aAAA;AAAA,MAIU,MAAA;AAAA,MACH,SAAA;AAAA,MACG,WAAA,CAAAC,MAAAA,KAAAA,EAAA,UAAA;AAAA,IAC8D;AAAA;AAAA;AAAA;AAAA;AAAA,IAC3E,eAAA;AAAA,MAMe,MAAA;AAAA,MACL,SAAAJ,EAAA;AAAA,IAC2B;AAAA;AAAA;AAAA;AAAA,IACrC,OAAA;AAAA,MAKO,MAAA;AAAA,MACG,SAAA;AAAA,IACG;AAAA,EACb;AAAA,EACJ,MAAAK,GAAA,EAAA,OAAAC,EAAA,GAAA;AAEI,UAAAC,IAAAC,EAAAF,CAAA,GAGAG,IAAA,CAAAC,MAAA;;AACI,WAAAC,IAAAN,EAAA,gBAAA,QAAAM,EAAAD,QAAAE,IAAAP,EAAA,gBAAA,gBAAAO,EAAAF,QAAA,QAAA;AACI,cAAAG,IAAAR,EAAA,YAAAK,CAAA;AACA,eAAA;AAAA,UAAO,0BAAAG,EAAA,KAAA;AAAA,UACwC,4BAAAA,EAAA,MAAA;AAAA,UACG,4BAAAA,EAAA,KAAA;AAAA,QACD;AAAA,MAC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AAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IA0BQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAhCtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IAkCQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAxCtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA,IA0CQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAhDtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"grid-layout.CqLbbEzI.js","sources":["../../../vue2/src/components/internal/grid-layout/grid-layout.types.ts","../../../vue2/src/components/internal/grid-layout/grid-layout.vue"],"sourcesContent":["export enum GridLayoutContainerType {\n INLINE = 'inline-size',\n SIZE = 'size',\n NORMAL = 'normal',\n}\n\nexport interface GridLayoutColumnWidth {\n small: number | string;\n medium: number | string;\n large: number | string;\n}\n\nexport type GridLayoutColumnWidths = Array<'auto' | GridLayoutColumnWidth>;\n","<template>\n <div class=\"b-grid-layout\" :class=\"computedClasses\" data-testid=\"grid-layout\">\n <div\n v-if=\"hasSlot('col-1')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(0)\"\n data-testid=\"grid-layout-col-1\"\n >\n <slot name=\"col-1\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-2')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(1)\"\n data-testid=\"grid-layout-col-2\"\n >\n <slot name=\"col-2\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-3')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(2)\"\n data-testid=\"grid-layout-col-3\"\n >\n <slot name=\"col-3\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-4')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(3)\"\n data-testid=\"grid-layout-col-4\"\n >\n <slot name=\"col-4\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-5')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(4)\"\n data-testid=\"grid-layout-col-5\"\n >\n <slot name=\"col-5\"></slot>\n </div>\n <div\n v-if=\"hasSlot('col-6')\"\n class=\"b-grid-layout__column\"\n :class=\"computeColumnSize(5)\"\n data-testid=\"grid-layout-col-6\"\n >\n <slot name=\"col-6\"></slot>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { useHasSlot } from '@/composables';\n import { GridLayoutColumnWidth, GridLayoutColumnWidths, GridLayoutContainerType } from './grid-layout.types';\n\n /**\n * Component used to render the grid layout in the bento-summary-grid. For internal use only\n */\n export default defineComponent({\n name: 'grid-layout',\n props: {\n /**\n * Sets the responsive columns widths for the grid.\n */\n columnWidth: {\n type: Array as PropType<GridLayoutColumnWidths>,\n default: null,\n validator: (array: GridLayoutColumnWidths) => array && array.length <= 6,\n },\n\n /**\n * Set the type of CSS container the grid layout has\n * @values inline-size, size, normal\n */\n containerType: {\n type: String as PropType<GridLayoutContainerType>,\n default: GridLayoutContainerType.INLINE,\n },\n\n /**\n * Sets the gap in the grid to 0.\n */\n noGap: {\n type: Boolean,\n default: false,\n },\n },\n setup(props, { slots }) {\n const hasSlot = useHasSlot(slots);\n\n // TODO: add a computedItems computed here that only returns the slots that are presents so as to be able to render the divs in the template via a v-for\n const computeColumnSize = index => {\n if (props.columnWidth?.[index] && props.columnWidth?.[index] !== 'auto') {\n const columnWidth = props.columnWidth[index] as GridLayoutColumnWidth;\n return [\n `b-grid-layout__column--${columnWidth.small}`,\n `b-grid-layout-m__column--${columnWidth.medium}`,\n `b-grid-layout-l__column--${columnWidth.large}`,\n ];\n }\n return null;\n };\n\n const computedClasses = computed(() => ({\n 'b-grid-layout--container-type-normal': props.containerType === GridLayoutContainerType.NORMAL,\n 'b-grid-layout--container-type-size': props.containerType === GridLayoutContainerType.SIZE,\n 'b-grid-layout--all-auto':\n props.columnWidth === null || props.columnWidth.every(width => width === 'auto'),\n 'b-grid-layout--no-gap': props.noGap,\n }));\n\n return {\n // Values\n computeColumnSize,\n computedClasses,\n\n // Methods\n hasSlot,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./grid-layout.scss\" />\n"],"names":["GridLayoutContainerType","GridLayoutContainerType2","_sfc_main","defineComponent","array","props","slots","hasSlot","useHasSlot","computeColumnSize","index","_a","_b","columnWidth","computedClasses","computed","width","openBlock","createElementBlock","normalizeClass","_ctx","renderSlot","createCommentVNode"],"mappings":";;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,SAAA,eACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UAHQA,IAAAD,KAAA,CAAA,CAAA;AC6DR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,OAAA;AAAA;AAAA;AAAA;AAAA,IACC,aAAA;AAAA,MAIU,MAAA;AAAA,MACH,SAAA;AAAA,MACG,WAAA,CAAAC,MAAAA,KAA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A,KAAAE,EAAA,IAAA,EAAA;AAAA,IA0CQF,EAAA,QAAA,OAAA,KAAAH,EAAA,GAAAC,EAAA,OAAA;AAAA,MAEU,KAAA;AAAA,MAEN,OAAAC,EAAA,CAAA,yBAAAC,EAAA,kBAAA,CAAA,CAAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAhDtCC,EAAAD,EAAA,QAAA,SAAA,CAAA,GAAA,QAAA,EAAA;AAAA,IAAA,GAAA,CAAA,KAAAE,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1,26 +1,26 @@
1
- import { defineComponent as H, computed as y, resolveComponent as p, createElementBlock as C, openBlock as h, normalizeClass as L, createElementVNode as I, createBlock as b, createCommentVNode as _, createVNode as N, mergeProps as Y, withCtx as v, createTextVNode as S, toDisplayString as O, createSlots as $, renderSlot as x } from "vue";
2
- import { R as G } from "./refresh.SzRxQ44W.js";
3
- import { u as V } from "./use-has-slot.B7eQSabc.js";
4
- import { B as W, a as j, c as P } from "./typography.DN5eC5ch.js";
5
- import { u as z } from "./i18n.WMYWtwxB.js";
6
- import { r as d, t as c, l as q, a as w, g as F } from "./get-date-locale.BN8xEjY0.js";
7
- import { B as J } from "./button-actions-with-menu.BUyecZNi.js";
8
- import { c as M, a as K } from "./index.DDnf1O9p.js";
9
- import { e as Q } from "./index.DPafeRJa.js";
10
- import { e as Z } from "./index.CrhTVr5J.js";
11
- import { I as g } from "./info-icon-with-popover.DFv8U4sh.js";
12
- import { d as ee } from "./button-actions.CShVMUOC.js";
13
- import { _ as te } from "./_plugin-vue_export-helper.CHgC5LLL.js";
1
+ import { defineComponent as L, computed as y, resolveComponent as p, openBlock as v, createElementBlock as C, normalizeClass as Y, createElementVNode as I, createVNode as b, mergeProps as $, withCtx as h, createTextVNode as N, toDisplayString as S, createBlock as O, createSlots as x, renderSlot as G, createCommentVNode as _ } from "vue";
2
+ import { R as V } from "./refresh.DvQeGwUF.js";
3
+ import { u as W } from "./use-has-slot.B7eQSabc.js";
4
+ import { B as j, c as P, a as z } from "./typography.DNzU41ah.js";
5
+ import { u as q } from "./i18n.CPGoe9tN.js";
6
+ import { r as d, t as c, l as F, a as w, g as J } from "./get-date-locale.BN8xEjY0.js";
7
+ import { B as K } from "./button-actions-with-menu.DzQQlXXK.js";
8
+ import { c as M, a as Q } from "./index.DDnf1O9p.js";
9
+ import { e as Z } from "./index.DPafeRJa.js";
10
+ import { e as ee } from "./index.CrhTVr5J.js";
11
+ import { I as g } from "./info-icon-with-popover._ZiXaIcp.js";
12
+ import { d as te } from "./button-actions.C8CJcXxS.js";
13
+ import { _ as oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
14
14
  import "../assets/header.css";
15
- function oe(e, a) {
15
+ function ne(e, a) {
16
16
  d(2, arguments);
17
17
  var n = c(e), t = c(a), i = n.getFullYear() - t.getFullYear(), o = n.getMonth() - t.getMonth();
18
18
  return i * 12 + o;
19
19
  }
20
- function ne(e, a) {
20
+ function ae(e, a) {
21
21
  return d(2, arguments), c(e).getTime() - c(a).getTime();
22
22
  }
23
- var ae = {
23
+ var A = {
24
24
  ceil: Math.ceil,
25
25
  round: Math.round,
26
26
  floor: Math.floor,
@@ -30,16 +30,16 @@ var ae = {
30
30
  // Math.trunc is not supported by IE
31
31
  }, re = "trunc";
32
32
  function se(e) {
33
- return ae[re];
33
+ return e ? A[e] : A[re];
34
34
  }
35
35
  function ie(e) {
36
36
  d(1, arguments);
37
37
  var a = c(e);
38
- return Q(a).getTime() === Z(a).getTime();
38
+ return Z(a).getTime() === ee(a).getTime();
39
39
  }
40
40
  function le(e, a) {
41
41
  d(2, arguments);
42
- var n = c(e), t = c(a), i = M(n, t), o = Math.abs(oe(n, t)), s;
42
+ var n = c(e), t = c(a), i = M(n, t), o = Math.abs(ne(n, t)), s;
43
43
  if (o < 1)
44
44
  s = 0;
45
45
  else {
@@ -51,20 +51,20 @@ function le(e, a) {
51
51
  }
52
52
  function ce(e, a, n) {
53
53
  d(2, arguments);
54
- var t = ne(e, a) / 1e3;
55
- return se()(t);
54
+ var t = ae(e, a) / 1e3;
55
+ return se(void 0)(t);
56
56
  }
57
- var A = 1440, ue = 2520, E = 43200, fe = 86400;
57
+ var U = 1440, ue = 2520, E = 43200, fe = 86400;
58
58
  function de(e, a) {
59
59
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
60
60
  d(2, arguments);
61
- var t = n.locale || q;
61
+ var t = n.locale || F;
62
62
  if (!t.formatDistance)
63
63
  throw new RangeError("locale must contain formatDistance property");
64
64
  var i = M(e, a);
65
65
  if (isNaN(i))
66
66
  throw new RangeError("Invalid time value");
67
- var o = K(n);
67
+ var o = Q(n);
68
68
  o.addSuffix = !!n.addSuffix, o.comparison = i;
69
69
  var s, l;
70
70
  i > 0 ? (s = c(a), l = c(e)) : (s = c(e), l = c(a));
@@ -75,21 +75,21 @@ function de(e, a) {
75
75
  return t.formatDistance("xMinutes", r, o);
76
76
  if (r < 90)
77
77
  return t.formatDistance("aboutXHours", 1, o);
78
- if (r < A) {
79
- var X = Math.round(r / 60);
80
- return t.formatDistance("aboutXHours", X, o);
78
+ if (r < U) {
79
+ var k = Math.round(r / 60);
80
+ return t.formatDistance("aboutXHours", k, o);
81
81
  } else {
82
82
  if (r < ue)
83
83
  return t.formatDistance("xDays", 1, o);
84
84
  if (r < E) {
85
- var k = Math.round(r / A);
86
- return t.formatDistance("xDays", k, o);
85
+ var R = Math.round(r / U);
86
+ return t.formatDistance("xDays", R, o);
87
87
  } else if (r < fe)
88
88
  return m = Math.round(r / E), t.formatDistance("aboutXMonths", m, o);
89
89
  }
90
90
  if (m = le(l, s), m < 12) {
91
- var R = Math.round(r / E);
92
- return t.formatDistance("xMonths", R, o);
91
+ var H = Math.round(r / E);
92
+ return t.formatDistance("xMonths", H, o);
93
93
  } else {
94
94
  var B = m % 12, D = Math.floor(m / 12);
95
95
  return B < 3 ? t.formatDistance("aboutXYears", D, o) : B < 9 ? t.formatDistance("overXYears", D, o) : t.formatDistance("almostXYears", D + 1, o);
@@ -99,19 +99,19 @@ function me(e, a) {
99
99
  return d(1, arguments), de(e, Date.now(), a);
100
100
  }
101
101
  var f = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(f || {});
102
- const U = {
102
+ const X = {
103
103
  "en-US": {
104
104
  lastUpdated: "Last updated: {date} ago"
105
105
  }
106
- }, pe = H({
107
- i18n: { messages: U },
106
+ }, pe = L({
107
+ i18n: { messages: X },
108
108
  name: "bento-header",
109
109
  components: {
110
- BentoTypography: W,
111
- ButtonActionsWithMenu: J,
112
- BentoLoadingButton: ee,
110
+ BentoTypography: j,
111
+ ButtonActionsWithMenu: K,
112
+ BentoLoadingButton: te,
113
113
  InfoIconWithPopover: g,
114
- ReloadIcon: G
114
+ ReloadIcon: V
115
115
  },
116
116
  props: {
117
117
  /**
@@ -161,11 +161,11 @@ const U = {
161
161
  },
162
162
  emits: ["reload"],
163
163
  setup(e, { slots: a }) {
164
- const { t: n, locale: t } = z({ messages: U }), i = F(), o = y(() => ({
164
+ const { t: n, locale: t } = q({ messages: X }), i = J(), o = y(() => ({
165
165
  "b-header--component": e.variant === f.COMPONENT
166
166
  })), s = y(() => ({
167
167
  el: e.variant === f.PAGE ? P.H1 : P.H2,
168
- variant: j.TITLE,
168
+ variant: z.TITLE,
169
169
  medium: e.variant === f.COMPONENT,
170
170
  large: e.variant === f.PAGE
171
171
  })), l = y(
@@ -176,71 +176,71 @@ const U = {
176
176
  }) : null
177
177
  );
178
178
  return {
179
- hasSlot: V(a),
179
+ hasSlot: W(a),
180
180
  conditionalClasses: o,
181
181
  timestamp: l,
182
182
  typography: s
183
183
  };
184
184
  }
185
- }), he = { class: "b-header__wrapper" }, ve = { class: "b-header__title" }, ge = {
185
+ }), ve = { class: "b-header__wrapper" }, he = { class: "b-header__title" }, ge = {
186
186
  key: 0,
187
187
  class: "b-header__timestamp-section"
188
188
  };
189
189
  function _e(e, a, n, t, i, o) {
190
190
  const s = p("bento-typography"), l = p("info-icon-with-popover"), u = p("reload-icon"), T = p("bento-loading-button"), r = p("button-actions-with-menu");
191
- return h(), C("div", {
192
- class: L(["b-header", e.conditionalClasses])
191
+ return v(), C("div", {
192
+ class: Y(["b-header", e.conditionalClasses])
193
193
  }, [
194
- I("div", he, [
195
- I("div", ve, [
194
+ I("div", ve, [
195
+ I("div", he, [
196
196
  I("div", null, [
197
- N(s, Y(e.typography, { class: "b-header__text" }), {
198
- default: v(() => [
199
- S(O(e.title), 1)
197
+ b(s, $(e.typography, { class: "b-header__text" }), {
198
+ default: h(() => [
199
+ N(S(e.title), 1)
200
200
  ]),
201
201
  _: 1
202
202
  }, 16),
203
- e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (h(), b(l, {
203
+ e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (v(), O(l, {
204
204
  key: 0,
205
205
  class: "b-header__tooltip",
206
206
  "popover-text": e.infoIconTooltipText
207
- }, $({ _: 2 }, [
207
+ }, x({ _: 2 }, [
208
208
  e.hasSlot("infoIconTooltipContent") ? {
209
209
  name: "default",
210
- fn: v(() => [
211
- x(e.$slots, "infoIconTooltipContent", {}, void 0, !0)
210
+ fn: h(() => [
211
+ G(e.$slots, "infoIconTooltipContent", {}, void 0, !0)
212
212
  ]),
213
213
  key: "0"
214
214
  } : void 0
215
215
  ]), 1032, ["popover-text"])) : _("", !0)
216
216
  ]),
217
- e.lastUpdated ? (h(), C("div", ge, [
218
- N(s, {
217
+ e.lastUpdated ? (v(), C("div", ge, [
218
+ b(s, {
219
219
  class: "b-header__timestamp",
220
220
  el: "div"
221
221
  }, {
222
- default: v(() => [
223
- S(O(e.timestamp), 1)
222
+ default: h(() => [
223
+ N(S(e.timestamp), 1)
224
224
  ]),
225
225
  _: 1
226
226
  }),
227
- e.reloadButton ? (h(), b(T, {
227
+ e.reloadButton ? (v(), O(T, {
228
228
  key: 0,
229
229
  variant: "tertiary",
230
230
  state: e.reloadButton.state,
231
231
  onClick: e.reloadButton.event
232
232
  }, {
233
- iconLeft: v(() => [
234
- N(u)
233
+ iconLeft: h(() => [
234
+ b(u)
235
235
  ]),
236
- default: v(() => [
237
- S(O(e.reloadButton.title), 1)
236
+ default: h(() => [
237
+ N(S(e.reloadButton.title), 1)
238
238
  ]),
239
239
  _: 1
240
240
  }, 8, ["state", "onClick"])) : _("", !0)
241
241
  ])) : _("", !0)
242
242
  ]),
243
- e.actions ? (h(), b(r, {
243
+ e.actions ? (v(), O(r, {
244
244
  key: 0,
245
245
  actions: e.actions,
246
246
  "displayed-actions": 2,
@@ -249,8 +249,8 @@ function _e(e, a, n, t, i, o) {
249
249
  ])
250
250
  ], 2);
251
251
  }
252
- const we = /* @__PURE__ */ te(pe, [["render", _e], ["__scopeId", "data-v-a770cf88"]]);
252
+ const we = /* @__PURE__ */ oe(pe, [["render", _e], ["__scopeId", "data-v-a770cf88"]]);
253
253
  export {
254
254
  we as B
255
255
  };
256
- //# sourceMappingURL=header.CAHXObTT.js.map
256
+ //# sourceMappingURL=header.CUyEq2ER.js.map