@adyen/bento-vue3 1.85.0 → 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 (373) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +358 -260
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +5 -0
  8. package/dist/anchor-scroller.js.map +1 -0
  9. package/dist/assets/accordion-item.css +1 -1
  10. package/dist/assets/action-bar.css +1 -1
  11. package/dist/assets/anchor-scroller.css +1 -0
  12. package/dist/assets/base-modal.css +1 -1
  13. package/dist/assets/button-actions.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/data-grid.css +1 -1
  16. package/dist/assets/date-picker.css +1 -1
  17. package/dist/assets/date-range-picker.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/dropdown-default-textbox.css +1 -1
  20. package/dist/assets/dropdown.css +1 -1
  21. package/dist/assets/error-message.css +1 -0
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/fixed-scroller.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/modal-fullscreen.css +1 -1
  26. package/dist/assets/secondary-nav.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/use-cached-selected-values.css +1 -1
  29. package/dist/avatar.js +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +6 -6
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.yRlQj4VF.js → accordion-item.QQ06tTjt.js} +8 -8
  35. package/dist/chunks/{accordion-item.yRlQj4VF.js.map → accordion-item.QQ06tTjt.js.map} +1 -1
  36. package/dist/chunks/{action-bar.BlhZoFfL.js → action-bar.g7rM3wUc.js} +15 -15
  37. package/dist/chunks/{action-bar.BlhZoFfL.js.map → action-bar.g7rM3wUc.js.map} +1 -1
  38. package/dist/chunks/{ai-button.PAbhTT01.js → ai-button.XfeGC4-Q.js} +6 -6
  39. package/dist/chunks/{ai-button.PAbhTT01.js.map → ai-button.XfeGC4-Q.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.CqMBHSfn.js → ai-tag.UlRkq54l.js} +34 -26
  41. package/dist/chunks/{ai-tag.CqMBHSfn.js.map → ai-tag.UlRkq54l.js.map} +1 -1
  42. package/dist/chunks/{alert.BYcw-u3b.js → alert.CDWtu0Hu.js} +11 -11
  43. package/dist/chunks/{alert.BYcw-u3b.js.map → alert.CDWtu0Hu.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.CKIQu3NK.js +215 -0
  45. package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +1 -0
  46. package/dist/chunks/{arrow-left.DoP6zFsY.js → arrow-left.C6UiqO-c.js} +5 -5
  47. package/dist/chunks/{arrow-left.DoP6zFsY.js.map → arrow-left.C6UiqO-c.js.map} +1 -1
  48. package/dist/chunks/{arrow-right.BVd1Dgd8.js → arrow-right.fSdLV_ho.js} +5 -5
  49. package/dist/chunks/{arrow-right.BVd1Dgd8.js.map → arrow-right.fSdLV_ho.js.map} +1 -1
  50. package/dist/chunks/{artificial-intelligence-ai-filled.G_Yr_37U.js → artificial-intelligence-ai-filled.AhDHffzT.js} +4 -4
  51. package/dist/chunks/{artificial-intelligence-ai-filled.G_Yr_37U.js.map → artificial-intelligence-ai-filled.AhDHffzT.js.map} +1 -1
  52. package/dist/chunks/{avatar.CNGMjwg3.js → avatar.Caeba-pw.js} +3 -3
  53. package/dist/chunks/{avatar.CNGMjwg3.js.map → avatar.Caeba-pw.js.map} +1 -1
  54. package/dist/chunks/{base-button.CUd03aA2.js → base-button.CRYAiuzn.js} +9 -9
  55. package/dist/chunks/{base-button.CUd03aA2.js.map → base-button.CRYAiuzn.js.map} +1 -1
  56. package/dist/chunks/{base-modal.CNETR72d.js → base-modal.D5HrjwL1.js} +23 -23
  57. package/dist/chunks/{base-modal.CNETR72d.js.map → base-modal.D5HrjwL1.js.map} +1 -1
  58. package/dist/chunks/{bin.DuHlEQBO.js → bin.Cude0fiB.js} +4 -4
  59. package/dist/chunks/{bin.DuHlEQBO.js.map → bin.Cude0fiB.js.map} +1 -1
  60. package/dist/chunks/{button-actions-with-menu.DY0pTtk-.js → button-actions-with-menu.DBqA3Ws5.js} +7 -7
  61. package/dist/chunks/{button-actions-with-menu.DY0pTtk-.js.map → button-actions-with-menu.DBqA3Ws5.js.map} +1 -1
  62. package/dist/chunks/{button-actions.Dk8xU2cz.js → button-actions.BH-J7dux.js} +17 -17
  63. package/dist/chunks/{button-actions.Dk8xU2cz.js.map → button-actions.BH-J7dux.js.map} +1 -1
  64. package/dist/chunks/{button.CSp48LJt.js → button.C6t9_lzm.js} +12 -12
  65. package/dist/chunks/{button.CSp48LJt.js.map → button.C6t9_lzm.js.map} +1 -1
  66. package/dist/chunks/{calendar.Dbc0yjyg.js → calendar.DzeJoNc2.js} +11 -11
  67. package/dist/chunks/{calendar.Dbc0yjyg.js.map → calendar.DzeJoNc2.js.map} +1 -1
  68. package/dist/chunks/{card.C7LbwK7Q.js → card.DcXXdxWL.js} +7 -7
  69. package/dist/chunks/{card.C7LbwK7Q.js.map → card.DcXXdxWL.js.map} +1 -1
  70. package/dist/chunks/{checkbox-group.CCpe-S-E.js → checkbox-group.Bh_aqKoA.js} +11 -11
  71. package/dist/chunks/{checkbox-group.CCpe-S-E.js.map → checkbox-group.Bh_aqKoA.js.map} +1 -1
  72. package/dist/chunks/{checkbox-input.Dk9iFQQe.js → checkbox-input.BZjSoCQW.js} +4 -4
  73. package/dist/chunks/{checkbox-input.Dk9iFQQe.js.map → checkbox-input.BZjSoCQW.js.map} +1 -1
  74. package/dist/chunks/{checkbox.A35e7MsN.js → checkbox.7kpOXm-b.js} +22 -22
  75. package/dist/chunks/{checkbox.A35e7MsN.js.map → checkbox.7kpOXm-b.js.map} +1 -1
  76. package/dist/chunks/{checkmark-circle-fill._6-d40ru.js → checkmark-circle-fill.DugX5fbG.js} +4 -4
  77. package/dist/chunks/{checkmark-circle-fill._6-d40ru.js.map → checkmark-circle-fill.DugX5fbG.js.map} +1 -1
  78. package/dist/chunks/{checkmark-small.x-gmK2Dt.js → checkmark-small.CRuZauJc.js} +5 -5
  79. package/dist/chunks/{checkmark-small.x-gmK2Dt.js.map → checkmark-small.CRuZauJc.js.map} +1 -1
  80. package/dist/chunks/{chevron-down.DCQ6ZLaq.js → chevron-down.XeE-LBV_.js} +5 -5
  81. package/dist/chunks/{chevron-down.DCQ6ZLaq.js.map → chevron-down.XeE-LBV_.js.map} +1 -1
  82. package/dist/chunks/{chevron-left.Cfn1uGLH.js → chevron-left.C_vPW7OR.js} +8 -8
  83. package/dist/chunks/{chevron-left.Cfn1uGLH.js.map → chevron-left.C_vPW7OR.js.map} +1 -1
  84. package/dist/chunks/{chevron-up.kfuLRpZb.js → chevron-up.Cmgl2a3x.js} +5 -5
  85. package/dist/chunks/{chevron-up.kfuLRpZb.js.map → chevron-up.Cmgl2a3x.js.map} +1 -1
  86. package/dist/chunks/{chip.eefnwpgE.js → chip.CyW1V8RU.js} +7 -7
  87. package/dist/chunks/{chip.eefnwpgE.js.map → chip.CyW1V8RU.js.map} +1 -1
  88. package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
  89. package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
  90. package/dist/chunks/{code-snippet.DKkTjYdC.js → code-snippet.UIqVTv4U.js} +15 -15
  91. package/dist/chunks/{code-snippet.DKkTjYdC.js.map → code-snippet.UIqVTv4U.js.map} +1 -1
  92. package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
  93. package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
  94. package/dist/chunks/{controls-group.BHOKajou.js → controls-group.Dip3WAKV.js} +10 -10
  95. package/dist/chunks/{controls-group.BHOKajou.js.map → controls-group.Dip3WAKV.js.map} +1 -1
  96. package/dist/chunks/{copy.CgITv6wr.js → copy.ByyQlckP.js} +6 -6
  97. package/dist/chunks/{copy.CgITv6wr.js.map → copy.ByyQlckP.js.map} +1 -1
  98. package/dist/chunks/{country.vSfTQW51.js → country.DJts6kCv.js} +5 -5
  99. package/dist/chunks/{country.vSfTQW51.js.map → country.DJts6kCv.js.map} +1 -1
  100. package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
  101. package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
  102. package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js → cross-circle-fill-small.H1wH-vcZ.js} +5 -5
  103. package/dist/chunks/{cross-circle-fill-small.Dv5-PxwF.js.map → cross-circle-fill-small.H1wH-vcZ.js.map} +1 -1
  104. package/dist/chunks/{cross-circle-fill.CYLL7jfC.js → cross-circle-fill.BWCKKn0E.js} +4 -4
  105. package/dist/chunks/{cross-circle-fill.CYLL7jfC.js.map → cross-circle-fill.BWCKKn0E.js.map} +1 -1
  106. package/dist/chunks/{cross-small.n1UO5wNB.js → cross-small.Bjq2Gqvh.js} +5 -5
  107. package/dist/chunks/{cross-small.n1UO5wNB.js.map → cross-small.Bjq2Gqvh.js.map} +1 -1
  108. package/dist/chunks/{cross.B92GxFTY.js → cross.CCHdi6v3.js} +5 -5
  109. package/dist/chunks/{cross.B92GxFTY.js.map → cross.CCHdi6v3.js.map} +1 -1
  110. package/dist/chunks/{currency.DijmAkAB.js → currency.Afx8MVdY.js} +4 -4
  111. package/dist/chunks/{currency.DijmAkAB.js.map → currency.Afx8MVdY.js.map} +1 -1
  112. package/dist/chunks/{dashboard-section.CrXdP_MQ.js → dashboard-section.CIHtXoeW.js} +8 -8
  113. package/dist/chunks/{dashboard-section.CrXdP_MQ.js.map → dashboard-section.CIHtXoeW.js.map} +1 -1
  114. package/dist/chunks/{dashed-underline.BzppJBtk.js → dashed-underline.CLwPU-C2.js} +14 -14
  115. package/dist/chunks/{dashed-underline.BzppJBtk.js.map → dashed-underline.CLwPU-C2.js.map} +1 -1
  116. package/dist/chunks/{data-grid-template.DFjdgxwb.js → data-grid-template.BTpSfkQt.js} +8 -8
  117. package/dist/chunks/{data-grid-template.DFjdgxwb.js.map → data-grid-template.BTpSfkQt.js.map} +1 -1
  118. package/dist/chunks/{data-grid.KkCt0Bgm.js → data-grid.CXDdiHz8.js} +457 -453
  119. package/dist/chunks/data-grid.CXDdiHz8.js.map +1 -0
  120. package/dist/chunks/date-input.XSJuuCHe.js +20 -0
  121. package/dist/chunks/date-input.XSJuuCHe.js.map +1 -0
  122. package/dist/chunks/{date-picker.dQuj_OF_.js → date-picker.CvTSZhMI.js} +82 -81
  123. package/dist/chunks/date-picker.CvTSZhMI.js.map +1 -0
  124. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  125. package/dist/chunks/date-range-picker.BPCt7cwj.js +1100 -0
  126. package/dist/chunks/{date-range-picker.BAKR_gDf.js.map → date-range-picker.BPCt7cwj.js.map} +1 -1
  127. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  128. package/dist/chunks/{date.CL55prL0.js → date.BtB1HyWQ.js} +4 -4
  129. package/dist/chunks/{date.CL55prL0.js.map → date.BtB1HyWQ.js.map} +1 -1
  130. package/dist/chunks/dialog-page.B3ptLXXP.js +162 -0
  131. package/dist/chunks/dialog-page.B3ptLXXP.js.map +1 -0
  132. package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
  133. package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
  134. package/dist/chunks/{divider.Dho4_hQ7.js → divider.BIY84UH7.js} +5 -5
  135. package/dist/chunks/{divider.Dho4_hQ7.js.map → divider.BIY84UH7.js.map} +1 -1
  136. package/dist/chunks/{dot.ob6N-5Um.js → dot.DBmwmOUN.js} +5 -5
  137. package/dist/chunks/{dot.ob6N-5Um.js.map → dot.DBmwmOUN.js.map} +1 -1
  138. package/dist/chunks/{dropdown-default-textbox.DFtFMu5G.js → dropdown-default-textbox.B-_dTUVX.js} +107 -117
  139. package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +1 -0
  140. package/dist/chunks/{dropdown-tag.CBgns9Y3.js → dropdown-tag.DDNOZhEG.js} +20 -20
  141. package/dist/chunks/{dropdown-tag.CBgns9Y3.js.map → dropdown-tag.DDNOZhEG.js.map} +1 -1
  142. package/dist/chunks/dropdown.CU6nfq3V.js +836 -0
  143. package/dist/chunks/dropdown.CU6nfq3V.js.map +1 -0
  144. package/dist/chunks/{empty-state.D_ifpeU-.js → empty-state.DqdPzU-g.js} +15 -15
  145. package/dist/chunks/{empty-state.D_ifpeU-.js.map → empty-state.DqdPzU-g.js.map} +1 -1
  146. package/dist/chunks/{field-label.OurHuGZS.js → error-message.BYA2_fPV.js} +67 -67
  147. package/dist/chunks/error-message.BYA2_fPV.js.map +1 -0
  148. package/dist/chunks/{expand.C9IAqYYL.js → expand.BrywY9jl.js} +4 -4
  149. package/dist/chunks/{expand.C9IAqYYL.js.map → expand.BrywY9jl.js.map} +1 -1
  150. package/dist/chunks/{file-uploader.CQgu9YIY.js → file-uploader.Q2ufNRTY.js} +79 -79
  151. package/dist/chunks/{file-uploader.CQgu9YIY.js.map → file-uploader.Q2ufNRTY.js.map} +1 -1
  152. package/dist/chunks/{filter-bar.BJmaoSr2.js → filter-bar.BVj9YVv-.js} +213 -205
  153. package/dist/chunks/{filter-bar.BJmaoSr2.js.map → filter-bar.BVj9YVv-.js.map} +1 -1
  154. package/dist/chunks/fixed-scroller.i1tmEmst.js +161 -0
  155. package/dist/chunks/{fixed-scroller.e56yJp7Q.js.map → fixed-scroller.i1tmEmst.js.map} +1 -1
  156. package/dist/chunks/{focus-trap.DH57j-Ov.js → focus-trap.CBvh2H_m.js} +294 -277
  157. package/dist/chunks/focus-trap.CBvh2H_m.js.map +1 -0
  158. package/dist/chunks/{footer-actions.BMggOsip.js → footer-actions.DLzMOB7j.js} +8 -8
  159. package/dist/chunks/{footer-actions.BMggOsip.js.map → footer-actions.DLzMOB7j.js.map} +1 -1
  160. package/dist/chunks/{form-layout-title.wnvpIbOe.js → form-layout-title.DYmTc6M7.js} +6 -6
  161. package/dist/chunks/{form-layout-title.wnvpIbOe.js.map → form-layout-title.DYmTc6M7.js.map} +1 -1
  162. package/dist/chunks/{grab.B63hmf-_.js → grab.DJYL4kBq.js} +5 -5
  163. package/dist/chunks/{grab.B63hmf-_.js.map → grab.DJYL4kBq.js.map} +1 -1
  164. package/dist/chunks/{grid-layout.DDaRNz4-.js → grid-layout.Vhv1_zFs.js} +21 -21
  165. package/dist/chunks/{grid-layout.DDaRNz4-.js.map → grid-layout.Vhv1_zFs.js.map} +1 -1
  166. package/dist/chunks/{header-meta.CkLmuprc.js → header-meta.Bw8ZGwJW.js} +13 -13
  167. package/dist/chunks/{header-meta.CkLmuprc.js.map → header-meta.Bw8ZGwJW.js.map} +1 -1
  168. package/dist/chunks/{header-with-views.BXZmqtnz.js → header-with-views.CJDoE4hw.js} +20 -20
  169. package/dist/chunks/{header-with-views.BXZmqtnz.js.map → header-with-views.CJDoE4hw.js.map} +1 -1
  170. package/dist/chunks/{header.RiaBKasj.js → header.BeH8KH_l.js} +14 -14
  171. package/dist/chunks/{header.RiaBKasj.js.map → header.BeH8KH_l.js.map} +1 -1
  172. 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
  173. 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
  174. package/dist/chunks/{index.pdBj0KQU.js → index.B875RXHM.js} +3 -3
  175. package/dist/chunks/{index.pdBj0KQU.js.map → index.B875RXHM.js.map} +1 -1
  176. package/dist/chunks/index.CbxHJr39.js +691 -0
  177. package/dist/chunks/{index.CL07S4Wa.js.map → index.CbxHJr39.js.map} +1 -1
  178. package/dist/chunks/{info-icon.B6wfo65e.js → info-icon.BLtyJvY4.js} +9 -9
  179. package/dist/chunks/{info-icon.B6wfo65e.js.map → info-icon.BLtyJvY4.js.map} +1 -1
  180. package/dist/chunks/{info.BKwey1HA.js → info.6Z6NxUst.js} +4 -4
  181. package/dist/chunks/{info.BKwey1HA.js.map → info.6Z6NxUst.js.map} +1 -1
  182. package/dist/chunks/{input-field-password.ClyJRN6h.js → input-field-password.KeKQPIZv.js} +21 -21
  183. package/dist/chunks/{input-field-password.ClyJRN6h.js.map → input-field-password.KeKQPIZv.js.map} +1 -1
  184. package/dist/chunks/{input-field-phone-number.CUdzwXz0.js → input-field-phone-number.eaU9p15A.js} +10 -10
  185. package/dist/chunks/{input-field-phone-number.CUdzwXz0.js.map → input-field-phone-number.eaU9p15A.js.map} +1 -1
  186. package/dist/chunks/{input-field.CFNofr-W.js → input-field.CNdqlGw6.js} +9 -9
  187. package/dist/chunks/{input-field.CFNofr-W.js.map → input-field.CNdqlGw6.js.map} +1 -1
  188. package/dist/chunks/{inspector.I4-8J_fd.js → inspector.Bnf0g7QE.js} +16 -16
  189. package/dist/chunks/{inspector.I4-8J_fd.js.map → inspector.Bnf0g7QE.js.map} +1 -1
  190. package/dist/chunks/{isSameWeek.5sjhTHiU.js → isSameWeek.DjeUtLwI.js} +2 -2
  191. package/dist/chunks/{isSameWeek.5sjhTHiU.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
  192. package/dist/chunks/{it.DEniTaO2.js → it.DIafuXtH.js} +2 -2
  193. package/dist/chunks/{it.DEniTaO2.js.map → it.DIafuXtH.js.map} +1 -1
  194. package/dist/chunks/{layout-row.Ccw24NzW.js → layout-row.Bz-mRqAq.js} +4 -4
  195. package/dist/chunks/{layout-row.Ccw24NzW.js.map → layout-row.Bz-mRqAq.js.map} +1 -1
  196. package/dist/chunks/{link.BLCQlEZU.js → link.DTCn2EtX.js} +11 -11
  197. package/dist/chunks/{link.BLCQlEZU.js.map → link.DTCn2EtX.js.map} +1 -1
  198. package/dist/chunks/{listbox-option-tag.BHQiD5oC.js → listbox-option-tag.C3ihNg6_.js} +9 -9
  199. package/dist/chunks/{listbox-option-tag.BHQiD5oC.js.map → listbox-option-tag.C3ihNg6_.js.map} +1 -1
  200. package/dist/chunks/{loading-indicator.Db794TT5.js → loading-indicator.BPol9I84.js} +3 -3
  201. package/dist/chunks/{loading-indicator.Db794TT5.js.map → loading-indicator.BPol9I84.js.map} +1 -1
  202. package/dist/chunks/{minus-small.DYIyF5XW.js → minus-small.CnYLTuSv.js} +5 -5
  203. package/dist/chunks/{minus-small.DYIyF5XW.js.map → minus-small.CnYLTuSv.js.map} +1 -1
  204. package/dist/chunks/{modal-fullscreen.f445bZ94.js → modal-fullscreen.B3AGUJgl.js} +100 -96
  205. package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +1 -0
  206. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js} +13 -13
  207. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js.map → modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map} +1 -1
  208. package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
  209. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
  210. package/dist/chunks/{pagination.DuRU9Xg_.js → pagination.lu9nx8j8.js} +10 -10
  211. package/dist/chunks/{pagination.DuRU9Xg_.js.map → pagination.lu9nx8j8.js.map} +1 -1
  212. package/dist/chunks/{payment-method.BGEBaa4w.js → payment-method.AeKHZlAO.js} +3 -3
  213. package/dist/chunks/{payment-method.BGEBaa4w.js.map → payment-method.AeKHZlAO.js.map} +1 -1
  214. package/dist/chunks/popover.types.C_Z2JeVK.js +6 -0
  215. package/dist/chunks/{popover.types.BbYumG-N.js.map → popover.types.C_Z2JeVK.js.map} +1 -1
  216. package/dist/chunks/popper-container.BefZxTzP.js +1432 -0
  217. package/dist/chunks/popper-container.BefZxTzP.js.map +1 -0
  218. package/dist/chunks/{promo-banner.DzIYjBfG.js → promo-banner.BLie64oS.js} +11 -11
  219. package/dist/chunks/{promo-banner.DzIYjBfG.js.map → promo-banner.BLie64oS.js.map} +1 -1
  220. package/dist/chunks/{radio-group.EqsvAKt2.js → radio-group.C6nQRQDB.js} +20 -20
  221. package/dist/chunks/{radio-group.EqsvAKt2.js.map → radio-group.C6nQRQDB.js.map} +1 -1
  222. package/dist/chunks/{radio-input.CBNE-AkM.js → radio-input.DektLjN4.js} +3 -3
  223. package/dist/chunks/{radio-input.CBNE-AkM.js.map → radio-input.DektLjN4.js.map} +1 -1
  224. package/dist/chunks/{refresh.BB4ouvz_.js → refresh.C31KClfx.js} +5 -5
  225. package/dist/chunks/{refresh.BB4ouvz_.js.map → refresh.C31KClfx.js.map} +1 -1
  226. package/dist/chunks/{rich-text-editor.-JS_rIjs.js → rich-text-editor.C39NKgl0.js} +11 -15
  227. package/dist/chunks/rich-text-editor.C39NKgl0.js.map +1 -0
  228. package/dist/chunks/{search-bar.DPc0omnd.js → search-bar.CbTrg2Sk.js} +10 -10
  229. package/dist/chunks/{search-bar.DPc0omnd.js.map → search-bar.CbTrg2Sk.js.map} +1 -1
  230. package/dist/chunks/{search.PczW-onY.js → search.ClLmZAgC.js} +4 -4
  231. package/dist/chunks/{search.PczW-onY.js.map → search.ClLmZAgC.js.map} +1 -1
  232. package/dist/chunks/{secondary-nav.BGKR8l0u.js → secondary-nav.DTOZQewf.js} +25 -25
  233. package/dist/chunks/secondary-nav.DTOZQewf.js.map +1 -0
  234. package/dist/chunks/{segmented-control.CFPAl4HD.js → segmented-control.D9rHBysM.js} +9 -9
  235. package/dist/chunks/{segmented-control.CFPAl4HD.js.map → segmented-control.D9rHBysM.js.map} +1 -1
  236. package/dist/chunks/{selection-card-group.BL0LTYhI.js → selection-card-group.KEsG0D5V.js} +9 -9
  237. package/dist/chunks/{selection-card-group.BL0LTYhI.js.map → selection-card-group.KEsG0D5V.js.map} +1 -1
  238. package/dist/chunks/{show.CT4Augxb.js → show.BreRPkgL.js} +6 -6
  239. package/dist/chunks/{show.CT4Augxb.js.map → show.BreRPkgL.js.map} +1 -1
  240. package/dist/chunks/{sidepanel.sWMdYcUC.js → sidepanel.DJCagqzl.js} +73 -69
  241. package/dist/chunks/sidepanel.DJCagqzl.js.map +1 -0
  242. package/dist/chunks/{startOfWeek.CM1KIrNi.js → startOfWeek.D8Yh4c0G.js} +3 -3
  243. package/dist/chunks/{startOfWeek.CM1KIrNi.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
  244. package/dist/chunks/{status.types.ChOI6XGU.js → status.types.D3v3k-Q8.js} +6 -6
  245. package/dist/chunks/{status.types.ChOI6XGU.js.map → status.types.D3v3k-Q8.js.map} +1 -1
  246. package/dist/chunks/{step.DpgnDx29.js → step.BV7MsrRF.js} +9 -9
  247. package/dist/chunks/{step.DpgnDx29.js.map → step.BV7MsrRF.js.map} +1 -1
  248. package/dist/chunks/{structured-list-item.Uky_MJPp.js → structured-list-item.f1tmHSEN.js} +9 -9
  249. package/dist/chunks/{structured-list-item.Uky_MJPp.js.map → structured-list-item.f1tmHSEN.js.map} +1 -1
  250. package/dist/chunks/{summary-grid.types.R-TEtkgx.js → summary-grid.types.COcV-sOB.js} +13 -13
  251. package/dist/chunks/{summary-grid.types.R-TEtkgx.js.map → summary-grid.types.COcV-sOB.js.map} +1 -1
  252. package/dist/chunks/{tab.JPngc9oS.js → tab.DRrnMCxe.js} +6 -6
  253. package/dist/chunks/{tab.JPngc9oS.js.map → tab.DRrnMCxe.js.map} +1 -1
  254. package/dist/chunks/{tag.CNN_D55j.js → tag.Dr7MKe9q.js} +9 -9
  255. package/dist/chunks/{tag.CNN_D55j.js.map → tag.Dr7MKe9q.js.map} +1 -1
  256. package/dist/chunks/{textarea.BGcYYD8C.js → textarea.CtgbUCjH.js} +7 -7
  257. package/dist/chunks/{textarea.BGcYYD8C.js.map → textarea.CtgbUCjH.js.map} +1 -1
  258. package/dist/chunks/{timeline-item.Cbd_rb9J.js → timeline-item.D9nmCe6u.js} +41 -41
  259. package/dist/chunks/{timeline-item.Cbd_rb9J.js.map → timeline-item.D9nmCe6u.js.map} +1 -1
  260. package/dist/chunks/{toast.DiIIrX7h.js → toast.Bbtq3Icj.js} +22 -22
  261. package/dist/chunks/{toast.DiIIrX7h.js.map → toast.Bbtq3Icj.js.map} +1 -1
  262. package/dist/chunks/{toggle.vl0ZwLhN.js → toggle.BupEBkIG.js} +6 -6
  263. package/dist/chunks/{toggle.vl0ZwLhN.js.map → toggle.BupEBkIG.js.map} +1 -1
  264. package/dist/chunks/{tooltip.CqV3Okcs.js → tooltip.DYpJZ-99.js} +60 -60
  265. package/dist/chunks/tooltip.DYpJZ-99.js.map +1 -0
  266. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js} +9 -9
  267. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DkTE0rmi.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map} +1 -1
  268. package/dist/chunks/{typography.6Oo5TOMP.js → typography.B3J6_tYk.js} +5 -5
  269. package/dist/chunks/{typography.6Oo5TOMP.js.map → typography.B3J6_tYk.js.map} +1 -1
  270. package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js → use-bento-toast-controller.BFctDoMg.js} +2 -2
  271. package/dist/chunks/{use-bento-toast-controller.V61h7XzI.js.map → use-bento-toast-controller.BFctDoMg.js.map} +1 -1
  272. package/dist/chunks/{use-cached-selected-values.iGHt7ROs.js → use-cached-selected-values.BiSuG1eX.js} +20 -20
  273. package/dist/chunks/use-cached-selected-values.BiSuG1eX.js.map +1 -0
  274. package/dist/chunks/{use-country-items.JZCYNoW7.js → use-country-items.BTzByPdQ.js} +9 -9
  275. package/dist/chunks/{use-country-items.JZCYNoW7.js.map → use-country-items.BTzByPdQ.js.map} +1 -1
  276. package/dist/chunks/utils.BzUwtTXc.js +21 -0
  277. package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
  278. package/dist/chunks/{warning-filled.BMGD0G-_.js → warning-filled.BzyK_mMj.js} +5 -5
  279. package/dist/chunks/{warning-filled.BMGD0G-_.js.map → warning-filled.BzyK_mMj.js.map} +1 -1
  280. package/dist/chunks/{zh-CN.CgIooHto.js → zh-CN.Bw_6j9Cd.js} +2 -2
  281. package/dist/chunks/{zh-CN.CgIooHto.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
  282. package/dist/click-outside.js +1 -1
  283. package/dist/code-snippet.js +1 -1
  284. package/dist/country.js +2 -2
  285. package/dist/currency.js +1 -1
  286. package/dist/dashboard-template.js +1 -1
  287. package/dist/dashed-underline.js +1 -1
  288. package/dist/data-grid-template.js +1 -1
  289. package/dist/data-grid.js +1 -1
  290. package/dist/date-picker.js +2 -2
  291. package/dist/date-range-picker.js +2 -2
  292. package/dist/date.js +1 -1
  293. package/dist/divider.js +1 -1
  294. package/dist/draggable-handle.js +73 -57
  295. package/dist/draggable-handle.js.map +1 -1
  296. package/dist/dropdown.js +4 -4
  297. package/dist/empty-state.js +1 -1
  298. package/dist/file-uploader.js +1 -1
  299. package/dist/filter-bar.js +1 -1
  300. package/dist/focus-trap.js +1 -1
  301. package/dist/form-layout.js +1 -1
  302. package/dist/header-with-views.js +1 -1
  303. package/dist/header.js +1 -1
  304. package/dist/image.js +1 -1
  305. package/dist/index.js +278 -276
  306. package/dist/index.js.map +1 -1
  307. package/dist/info-icon.js +1 -1
  308. package/dist/input-field-password.js +1 -1
  309. package/dist/input-field-phone-number.js +1 -1
  310. package/dist/input-field.js +1 -1
  311. package/dist/inspector.js +1 -1
  312. package/dist/internal.js +42 -42
  313. package/dist/layout.js +1 -1
  314. package/dist/link.js +1 -1
  315. package/dist/loading-indicator.js +1 -1
  316. package/dist/menu.js +1 -1
  317. package/dist/modal-fullscreen.js +1 -1
  318. package/dist/modal.js +2 -2
  319. package/dist/pagination.js +1 -1
  320. package/dist/payment-method.js +1 -1
  321. package/dist/popover.js +2 -2
  322. package/dist/popper-container.js +1 -1
  323. package/dist/promo-banner.js +1 -1
  324. package/dist/radio-group.js +2 -2
  325. package/dist/rich-text-editor.js +1 -1
  326. package/dist/search-bar.js +2 -2
  327. package/dist/secondary-nav.js +1 -1
  328. package/dist/segmented-control.js +1 -1
  329. package/dist/selection-card.js +1 -1
  330. package/dist/sidepanel.js +1 -1
  331. package/dist/status.js +1 -1
  332. package/dist/stepper.js +1 -1
  333. package/dist/structured-list.js +1 -1
  334. package/dist/summary-grid.js +1 -1
  335. package/dist/tabs.js +1 -1
  336. package/dist/tag.js +1 -1
  337. package/dist/textarea.js +1 -1
  338. package/dist/timeline.js +1 -1
  339. package/dist/toast.js +1 -1
  340. package/dist/toggle.js +1 -1
  341. package/dist/tutorial.js +1 -1
  342. package/dist/typography.js +1 -1
  343. package/dist/use-form-v4.js +756 -7787
  344. package/dist/use-form-v4.js.map +1 -1
  345. package/dist/web-types.json +1 -1
  346. package/package.json +6 -6
  347. package/dist/assets/field-label.css +0 -1
  348. package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
  349. package/dist/chunks/data-grid.KkCt0Bgm.js.map +0 -1
  350. package/dist/chunks/date-input.BbZqj10S.js +0 -15
  351. package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
  352. package/dist/chunks/date-picker.dQuj_OF_.js.map +0 -1
  353. package/dist/chunks/date-range-picker.BAKR_gDf.js +0 -1100
  354. package/dist/chunks/dialog-page.CF10AQQ3.js +0 -158
  355. package/dist/chunks/dialog-page.CF10AQQ3.js.map +0 -1
  356. package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +0 -1
  357. package/dist/chunks/dropdown.DmzMGz30.js +0 -837
  358. package/dist/chunks/dropdown.DmzMGz30.js.map +0 -1
  359. package/dist/chunks/field-label.OurHuGZS.js.map +0 -1
  360. package/dist/chunks/fixed-scroller.e56yJp7Q.js +0 -155
  361. package/dist/chunks/focus-trap.DH57j-Ov.js.map +0 -1
  362. package/dist/chunks/index.CL07S4Wa.js +0 -592
  363. package/dist/chunks/modal-fullscreen.f445bZ94.js.map +0 -1
  364. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  365. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  366. package/dist/chunks/popover.types.BbYumG-N.js +0 -6
  367. package/dist/chunks/popper-container.DdG_YvVF.js +0 -1413
  368. package/dist/chunks/popper-container.DdG_YvVF.js.map +0 -1
  369. package/dist/chunks/rich-text-editor.-JS_rIjs.js.map +0 -1
  370. package/dist/chunks/secondary-nav.BGKR8l0u.js.map +0 -1
  371. package/dist/chunks/sidepanel.sWMdYcUC.js.map +0 -1
  372. package/dist/chunks/tooltip.CqV3Okcs.js.map +0 -1
  373. package/dist/chunks/use-cached-selected-values.iGHt7ROs.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout-title.wnvpIbOe.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\" @submit=\"emit('submit', $event)\">\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 emit = defineEmits<{\n /**\n * Emits the submit event from the form\n */\n (e: 'submit', event: SubmitEvent): void;\n }>();\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 { type 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')\" :id=\"id\" 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 { type PropType, useSlots } from 'vue';\n import {\n type BentoFormLayoutFieldTipTypeOption,\n BentoFormLayoutFieldTipTypeOptions,\n } 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 * Unique identifier to the form field. Used for accessibility.\n */\n id: {\n type: String,\n default: undefined,\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, type 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, organize 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","emit","__emit","props","__props","formLayoutElement","computed","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFA6FIA,IAAA,CAAA;;;;;;;;;;;;;;;;AAjEA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAOAC,IAAAC,GAaAC,IAAAC,EAAA,MAAAH,EAAA,OAAA,SAAA,KAAA,GACAI,IAAAD,EAAA,MAAAP,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAS,EAAAC,GAAAC,EAAAP,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kECnDGQ,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CC+DHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;AA3BA,UAAAf,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;mEC5BGgB,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;;;;;;;mECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAvDA,UAAApB,IAAAC,EAAA,GAEAK,IAAAC,GAuBAc,IAAAZ,EAAA,MAAA,CAAAH,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAmB,IAAAV,EAAA,OAAA;AAAA,MAA2C,mCAAAH,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout-title.DYmTc6M7.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\" @submit=\"emit('submit', $event)\">\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 emit = defineEmits<{\n /**\n * Emits the submit event from the form\n */\n (e: 'submit', event: SubmitEvent): void;\n }>();\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 { type 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')\" :id=\"id\" 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 { type PropType, useSlots } from 'vue';\n import {\n type BentoFormLayoutFieldTipTypeOption,\n BentoFormLayoutFieldTipTypeOptions,\n } 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 * Unique identifier to the form field. Used for accessibility.\n */\n id: {\n type: String,\n default: undefined,\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, type 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, organize 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","emit","__emit","props","__props","formLayoutElement","computed","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFA6FIA,IAAA,CAAA;;;;;;;;;;;;;;;;AAjEA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,GAOAC,IAAAC,GAaAC,IAAAC,EAAA,MAAAH,EAAA,OAAA,SAAA,KAAA,GACAI,IAAAD,EAAA,MAAAP,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAS,EAAAC,GAAAC,EAAAP,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kECnDGQ,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CC+DHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;AA3BA,UAAAf,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;mEC5BGgB,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;;;;;;;mECmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AAvDA,UAAApB,IAAAC,EAAA,GAEAK,IAAAC,GAuBAc,IAAAZ,EAAA,MAAA,CAAAH,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAmB,IAAAV,EAAA,OAAA;AAAA,MAA2C,mCAAAH,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import { createElementBlock as e, openBlock as o, mergeProps as i, createCommentVNode as s, createStaticVNode as a, toDisplayString as l } from "vue";
2
+ import { openBlock as e, createElementBlock as o, mergeProps as i, toDisplayString as s, createCommentVNode as a, createStaticVNode as l } from "vue";
3
3
  import { _ as p } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
4
  let r = 0;
5
5
  const n = {
@@ -8,19 +8,19 @@ const n = {
8
8
  }
9
9
  }, h = { key: 0 };
10
10
  function d(C, t, f, c, m, g) {
11
- return o(), e("svg", i({ role: "img" }, C.$attrs, {
11
+ return e(), o("svg", i({ role: "img" }, C.$attrs, {
12
12
  class: "ui-assets-icons-16",
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: "16",
15
15
  height: "16",
16
16
  fill: "none"
17
17
  }), [
18
- C.$attrs["svg-title"] ? (o(), e("title", h, l(C.$attrs["svg-title"]), 1)) : s("", !0),
19
- t[0] || (t[0] = a('<path fill="#001222" d="M5 4C5.29667 4 5.58668 3.91203 5.83335 3.74721C6.08003 3.58238 6.27229 3.34811 6.38582 3.07403C6.49935 2.79994 6.52906 2.49834 6.47118 2.20737C6.4133 1.91639 6.27044 1.64912 6.06066 1.43934C5.85088 1.22956 5.58361 1.0867 5.29263 1.02882C5.00166 0.970945 4.70006 1.00065 4.42598 1.11418C4.15189 1.22771 3.91762 1.41997 3.7528 1.66665C3.58797 1.91332 3.5 2.20333 3.5 2.5C3.5 2.89783 3.65804 3.27936 3.93934 3.56066C4.22065 3.84197 4.60218 4 5 4Z"></path><path fill="#001222" d="M5.83335 14.7472C5.58668 14.912 5.29667 15 5 15C4.60218 15 4.22065 14.842 3.93934 14.5607C3.65804 14.2794 3.5 13.8978 3.5 13.5C3.5 13.2033 3.58797 12.9133 3.7528 12.6666C3.91762 12.42 4.15189 12.2277 4.42598 12.1142C4.70006 12.0007 5.00166 11.9709 5.29263 12.0288C5.58361 12.0867 5.85088 12.2296 6.06066 12.4393C6.27044 12.6491 6.4133 12.9164 6.47118 13.2074C6.52906 13.4983 6.49935 13.7999 6.38582 14.074C6.27229 14.3481 6.08003 14.5824 5.83335 14.7472Z"></path><path fill="#001222" d="M11.8334 14.7472C11.5867 14.912 11.2967 15 11 15C10.6022 15 10.2206 14.842 9.93934 14.5607C9.65803 14.2794 9.5 13.8978 9.5 13.5C9.5 13.2033 9.58797 12.9133 9.7528 12.6666C9.91762 12.42 10.1519 12.2277 10.426 12.1142C10.7001 12.0007 11.0017 11.9709 11.2926 12.0288C11.5836 12.0867 11.8509 12.2296 12.0607 12.4393C12.2704 12.6491 12.4133 12.9164 12.4712 13.2074C12.5291 13.4983 12.4993 13.7999 12.3858 14.074C12.2723 14.3481 12.08 14.5824 11.8334 14.7472Z"></path><path fill="#001222" d="M11.8334 3.74721C11.5867 3.91203 11.2967 4 11 4C10.6022 4 10.2206 3.84197 9.93934 3.56066C9.65803 3.27936 9.5 2.89783 9.5 2.5C9.5 2.20333 9.58797 1.91332 9.7528 1.66665C9.91762 1.41997 10.1519 1.22771 10.426 1.11418C10.7001 1.00065 11.0017 0.970945 11.2926 1.02882C11.5836 1.0867 11.8509 1.22956 12.0607 1.43934C12.2704 1.64912 12.4133 1.91639 12.4712 2.20737C12.5291 2.49834 12.4993 2.79994 12.3858 3.07403C12.2723 3.34811 12.08 3.58238 11.8334 3.74721Z"></path><path fill="#001222" d="M5 9.5C5.29667 9.5 5.58668 9.41203 5.83335 9.24721C6.08003 9.08238 6.27229 8.84811 6.38582 8.57403C6.49935 8.29994 6.52906 7.99834 6.47118 7.70737C6.4133 7.41639 6.27044 7.14912 6.06066 6.93934C5.85088 6.72956 5.58361 6.5867 5.29263 6.52882C5.00166 6.47094 4.70006 6.50065 4.42598 6.61418C4.15189 6.72771 3.91762 6.91997 3.7528 7.16665C3.58797 7.41332 3.5 7.70333 3.5 8C3.5 8.39783 3.65804 8.77936 3.93934 9.06066C4.22065 9.34197 4.60218 9.5 5 9.5Z"></path><path fill="#001222" d="M11.8334 9.24721C11.5867 9.41203 11.2967 9.5 11 9.5C10.6022 9.5 10.2206 9.34197 9.93934 9.06066C9.65803 8.77936 9.5 8.39783 9.5 8C9.5 7.70333 9.58797 7.41332 9.7528 7.16665C9.91762 6.91997 10.1519 6.72771 10.426 6.61418C10.7001 6.50065 11.0017 6.47094 11.2926 6.52882C11.5836 6.5867 11.8509 6.72956 12.0607 6.93934C12.2704 7.14912 12.4133 7.41639 12.4712 7.70737C12.5291 7.99834 12.4993 8.29994 12.3858 8.57403C12.2723 8.84811 12.08 9.08238 11.8334 9.24721Z"></path>', 6))
18
+ C.$attrs["svg-title"] ? (e(), o("title", h, s(C.$attrs["svg-title"]), 1)) : a("", !0),
19
+ t[0] || (t[0] = l('<path fill="#001222" d="M5 4C5.29667 4 5.58668 3.91203 5.83335 3.74721C6.08003 3.58238 6.27229 3.34811 6.38582 3.07403C6.49935 2.79994 6.52906 2.49834 6.47118 2.20737C6.4133 1.91639 6.27044 1.64912 6.06066 1.43934C5.85088 1.22956 5.58361 1.0867 5.29263 1.02882C5.00166 0.970945 4.70006 1.00065 4.42598 1.11418C4.15189 1.22771 3.91762 1.41997 3.7528 1.66665C3.58797 1.91332 3.5 2.20333 3.5 2.5C3.5 2.89783 3.65804 3.27936 3.93934 3.56066C4.22065 3.84197 4.60218 4 5 4Z"></path><path fill="#001222" d="M5.83335 14.7472C5.58668 14.912 5.29667 15 5 15C4.60218 15 4.22065 14.842 3.93934 14.5607C3.65804 14.2794 3.5 13.8978 3.5 13.5C3.5 13.2033 3.58797 12.9133 3.7528 12.6666C3.91762 12.42 4.15189 12.2277 4.42598 12.1142C4.70006 12.0007 5.00166 11.9709 5.29263 12.0288C5.58361 12.0867 5.85088 12.2296 6.06066 12.4393C6.27044 12.6491 6.4133 12.9164 6.47118 13.2074C6.52906 13.4983 6.49935 13.7999 6.38582 14.074C6.27229 14.3481 6.08003 14.5824 5.83335 14.7472Z"></path><path fill="#001222" d="M11.8334 14.7472C11.5867 14.912 11.2967 15 11 15C10.6022 15 10.2206 14.842 9.93934 14.5607C9.65803 14.2794 9.5 13.8978 9.5 13.5C9.5 13.2033 9.58797 12.9133 9.7528 12.6666C9.91762 12.42 10.1519 12.2277 10.426 12.1142C10.7001 12.0007 11.0017 11.9709 11.2926 12.0288C11.5836 12.0867 11.8509 12.2296 12.0607 12.4393C12.2704 12.6491 12.4133 12.9164 12.4712 13.2074C12.5291 13.4983 12.4993 13.7999 12.3858 14.074C12.2723 14.3481 12.08 14.5824 11.8334 14.7472Z"></path><path fill="#001222" d="M11.8334 3.74721C11.5867 3.91203 11.2967 4 11 4C10.6022 4 10.2206 3.84197 9.93934 3.56066C9.65803 3.27936 9.5 2.89783 9.5 2.5C9.5 2.20333 9.58797 1.91332 9.7528 1.66665C9.91762 1.41997 10.1519 1.22771 10.426 1.11418C10.7001 1.00065 11.0017 0.970945 11.2926 1.02882C11.5836 1.0867 11.8509 1.22956 12.0607 1.43934C12.2704 1.64912 12.4133 1.91639 12.4712 2.20737C12.5291 2.49834 12.4993 2.79994 12.3858 3.07403C12.2723 3.34811 12.08 3.58238 11.8334 3.74721Z"></path><path fill="#001222" d="M5 9.5C5.29667 9.5 5.58668 9.41203 5.83335 9.24721C6.08003 9.08238 6.27229 8.84811 6.38582 8.57403C6.49935 8.29994 6.52906 7.99834 6.47118 7.70737C6.4133 7.41639 6.27044 7.14912 6.06066 6.93934C5.85088 6.72956 5.58361 6.5867 5.29263 6.52882C5.00166 6.47094 4.70006 6.50065 4.42598 6.61418C4.15189 6.72771 3.91762 6.91997 3.7528 7.16665C3.58797 7.41332 3.5 7.70333 3.5 8C3.5 8.39783 3.65804 8.77936 3.93934 9.06066C4.22065 9.34197 4.60218 9.5 5 9.5Z"></path><path fill="#001222" d="M11.8334 9.24721C11.5867 9.41203 11.2967 9.5 11 9.5C10.6022 9.5 10.2206 9.34197 9.93934 9.06066C9.65803 8.77936 9.5 8.39783 9.5 8C9.5 7.70333 9.58797 7.41332 9.7528 7.16665C9.91762 6.91997 10.1519 6.72771 10.426 6.61418C10.7001 6.50065 11.0017 6.47094 11.2926 6.52882C11.5836 6.5867 11.8509 6.72956 12.0607 6.93934C12.2704 7.14912 12.4133 7.41639 12.4712 7.70737C12.5291 7.99834 12.4993 8.29994 12.3858 8.57403C12.2723 8.84811 12.08 9.08238 11.8334 9.24721Z"></path>', 6))
20
20
  ], 16);
21
21
  }
22
22
  const Z = /* @__PURE__ */ p(n, [["render", d]]);
23
23
  export {
24
24
  Z as G
25
25
  };
26
- //# sourceMappingURL=grab.B63hmf-_.js.map
26
+ //# sourceMappingURL=grab.DJYL4kBq.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grab.B63hmf-_.js","sources":["../../../ui-assets/icons-16/dist/vue/grab.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M5 4C5.29667 4 5.58668 3.91203 5.83335 3.74721C6.08003 3.58238 6.27229 3.34811 6.38582 3.07403C6.49935 2.79994 6.52906 2.49834 6.47118 2.20737C6.4133 1.91639 6.27044 1.64912 6.06066 1.43934C5.85088 1.22956 5.58361 1.0867 5.29263 1.02882C5.00166 0.970945 4.70006 1.00065 4.42598 1.11418C4.15189 1.22771 3.91762 1.41997 3.7528 1.66665C3.58797 1.91332 3.5 2.20333 3.5 2.5C3.5 2.89783 3.65804 3.27936 3.93934 3.56066C4.22065 3.84197 4.60218 4 5 4Z\"/><path fill=\"#001222\" d=\"M5.83335 14.7472C5.58668 14.912 5.29667 15 5 15C4.60218 15 4.22065 14.842 3.93934 14.5607C3.65804 14.2794 3.5 13.8978 3.5 13.5C3.5 13.2033 3.58797 12.9133 3.7528 12.6666C3.91762 12.42 4.15189 12.2277 4.42598 12.1142C4.70006 12.0007 5.00166 11.9709 5.29263 12.0288C5.58361 12.0867 5.85088 12.2296 6.06066 12.4393C6.27044 12.6491 6.4133 12.9164 6.47118 13.2074C6.52906 13.4983 6.49935 13.7999 6.38582 14.074C6.27229 14.3481 6.08003 14.5824 5.83335 14.7472Z\"/><path fill=\"#001222\" d=\"M11.8334 14.7472C11.5867 14.912 11.2967 15 11 15C10.6022 15 10.2206 14.842 9.93934 14.5607C9.65803 14.2794 9.5 13.8978 9.5 13.5C9.5 13.2033 9.58797 12.9133 9.7528 12.6666C9.91762 12.42 10.1519 12.2277 10.426 12.1142C10.7001 12.0007 11.0017 11.9709 11.2926 12.0288C11.5836 12.0867 11.8509 12.2296 12.0607 12.4393C12.2704 12.6491 12.4133 12.9164 12.4712 13.2074C12.5291 13.4983 12.4993 13.7999 12.3858 14.074C12.2723 14.3481 12.08 14.5824 11.8334 14.7472Z\"/><path fill=\"#001222\" d=\"M11.8334 3.74721C11.5867 3.91203 11.2967 4 11 4C10.6022 4 10.2206 3.84197 9.93934 3.56066C9.65803 3.27936 9.5 2.89783 9.5 2.5C9.5 2.20333 9.58797 1.91332 9.7528 1.66665C9.91762 1.41997 10.1519 1.22771 10.426 1.11418C10.7001 1.00065 11.0017 0.970945 11.2926 1.02882C11.5836 1.0867 11.8509 1.22956 12.0607 1.43934C12.2704 1.64912 12.4133 1.91639 12.4712 2.20737C12.5291 2.49834 12.4993 2.79994 12.3858 3.07403C12.2723 3.34811 12.08 3.58238 11.8334 3.74721Z\"/><path fill=\"#001222\" d=\"M5 9.5C5.29667 9.5 5.58668 9.41203 5.83335 9.24721C6.08003 9.08238 6.27229 8.84811 6.38582 8.57403C6.49935 8.29994 6.52906 7.99834 6.47118 7.70737C6.4133 7.41639 6.27044 7.14912 6.06066 6.93934C5.85088 6.72956 5.58361 6.5867 5.29263 6.52882C5.00166 6.47094 4.70006 6.50065 4.42598 6.61418C4.15189 6.72771 3.91762 6.91997 3.7528 7.16665C3.58797 7.41332 3.5 7.70333 3.5 8C3.5 8.39783 3.65804 8.77936 3.93934 9.06066C4.22065 9.34197 4.60218 9.5 5 9.5Z\"/><path fill=\"#001222\" d=\"M11.8334 9.24721C11.5867 9.41203 11.2967 9.5 11 9.5C10.6022 9.5 10.2206 9.34197 9.93934 9.06066C9.65803 8.77936 9.5 8.39783 9.5 8C9.5 7.70333 9.58797 7.41332 9.7528 7.16665C9.91762 6.91997 10.1519 6.72771 10.426 6.61418C10.7001 6.50065 11.0017 6.47094 11.2926 6.52882C11.5836 6.5867 11.8509 6.72956 12.0607 6.93934C12.2704 7.14912 12.4133 7.41639 12.4712 7.70737C12.5291 7.99834 12.4993 8.29994 12.3858 8.57403C12.2723 8.84811 12.08 9.08238 11.8334 9.24721Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main","_openBlock","_createElementBlock","_mergeProps","_ctx","_hoisted_1","_createCommentVNode","_cache","_createStaticVNode"],"mappings":";;;AAOI,IAAIA,IAAO;AAEX,MAAKC,IAAU;AAAA,EACX,eAAe;AACX,SAAK,OAAOD,EAAK,SAAQ,GACzBA,KAAQ;AAAA,EACZ;SAbR,KAAA,EAAA;;AAEI,SAAAE,EAAA,GAAAC,EAAigG,OAAjgGC,EAAigG,EAA5/F,MAAK,MAAK,GAASC,EAAA,QAAM;AAAA,IAAE,OAAM;AAAA,IAAqB,OAAM;AAAA,IAA6B,OAAM;AAAA,IAAK,QAAO;AAAA,IAAK,MAAK;AAAA;IAAoBA,EAAA,OAAM,WAAA,UAAnBF,EAAmE,SAFxMG,KAE0KD,EAAA,OAAM,WAAA,CAAA,GAAA,CAAA,KAFhLE,EAAA,IAAA,EAAA;AAAA,IAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA,+1FAAA,CAAA;AAAA;;;"}
1
+ {"version":3,"file":"grab.DJYL4kBq.js","sources":["../../../ui-assets/icons-16/dist/vue/grab.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#001222\" d=\"M5 4C5.29667 4 5.58668 3.91203 5.83335 3.74721C6.08003 3.58238 6.27229 3.34811 6.38582 3.07403C6.49935 2.79994 6.52906 2.49834 6.47118 2.20737C6.4133 1.91639 6.27044 1.64912 6.06066 1.43934C5.85088 1.22956 5.58361 1.0867 5.29263 1.02882C5.00166 0.970945 4.70006 1.00065 4.42598 1.11418C4.15189 1.22771 3.91762 1.41997 3.7528 1.66665C3.58797 1.91332 3.5 2.20333 3.5 2.5C3.5 2.89783 3.65804 3.27936 3.93934 3.56066C4.22065 3.84197 4.60218 4 5 4Z\"/><path fill=\"#001222\" d=\"M5.83335 14.7472C5.58668 14.912 5.29667 15 5 15C4.60218 15 4.22065 14.842 3.93934 14.5607C3.65804 14.2794 3.5 13.8978 3.5 13.5C3.5 13.2033 3.58797 12.9133 3.7528 12.6666C3.91762 12.42 4.15189 12.2277 4.42598 12.1142C4.70006 12.0007 5.00166 11.9709 5.29263 12.0288C5.58361 12.0867 5.85088 12.2296 6.06066 12.4393C6.27044 12.6491 6.4133 12.9164 6.47118 13.2074C6.52906 13.4983 6.49935 13.7999 6.38582 14.074C6.27229 14.3481 6.08003 14.5824 5.83335 14.7472Z\"/><path fill=\"#001222\" d=\"M11.8334 14.7472C11.5867 14.912 11.2967 15 11 15C10.6022 15 10.2206 14.842 9.93934 14.5607C9.65803 14.2794 9.5 13.8978 9.5 13.5C9.5 13.2033 9.58797 12.9133 9.7528 12.6666C9.91762 12.42 10.1519 12.2277 10.426 12.1142C10.7001 12.0007 11.0017 11.9709 11.2926 12.0288C11.5836 12.0867 11.8509 12.2296 12.0607 12.4393C12.2704 12.6491 12.4133 12.9164 12.4712 13.2074C12.5291 13.4983 12.4993 13.7999 12.3858 14.074C12.2723 14.3481 12.08 14.5824 11.8334 14.7472Z\"/><path fill=\"#001222\" d=\"M11.8334 3.74721C11.5867 3.91203 11.2967 4 11 4C10.6022 4 10.2206 3.84197 9.93934 3.56066C9.65803 3.27936 9.5 2.89783 9.5 2.5C9.5 2.20333 9.58797 1.91332 9.7528 1.66665C9.91762 1.41997 10.1519 1.22771 10.426 1.11418C10.7001 1.00065 11.0017 0.970945 11.2926 1.02882C11.5836 1.0867 11.8509 1.22956 12.0607 1.43934C12.2704 1.64912 12.4133 1.91639 12.4712 2.20737C12.5291 2.49834 12.4993 2.79994 12.3858 3.07403C12.2723 3.34811 12.08 3.58238 11.8334 3.74721Z\"/><path fill=\"#001222\" d=\"M5 9.5C5.29667 9.5 5.58668 9.41203 5.83335 9.24721C6.08003 9.08238 6.27229 8.84811 6.38582 8.57403C6.49935 8.29994 6.52906 7.99834 6.47118 7.70737C6.4133 7.41639 6.27044 7.14912 6.06066 6.93934C5.85088 6.72956 5.58361 6.5867 5.29263 6.52882C5.00166 6.47094 4.70006 6.50065 4.42598 6.61418C4.15189 6.72771 3.91762 6.91997 3.7528 7.16665C3.58797 7.41332 3.5 7.70333 3.5 8C3.5 8.39783 3.65804 8.77936 3.93934 9.06066C4.22065 9.34197 4.60218 9.5 5 9.5Z\"/><path fill=\"#001222\" d=\"M11.8334 9.24721C11.5867 9.41203 11.2967 9.5 11 9.5C10.6022 9.5 10.2206 9.34197 9.93934 9.06066C9.65803 8.77936 9.5 8.39783 9.5 8C9.5 7.70333 9.58797 7.41332 9.7528 7.16665C9.91762 6.91997 10.1519 6.72771 10.426 6.61418C10.7001 6.50065 11.0017 6.47094 11.2926 6.52882C11.5836 6.5867 11.8509 6.72956 12.0607 6.93934C12.2704 7.14912 12.4133 7.41639 12.4712 7.70737C12.5291 7.99834 12.4993 8.29994 12.3858 8.57403C12.2723 8.84811 12.08 9.08238 11.8334 9.24721Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n"],"names":["uuid","_sfc_main","_openBlock","_createElementBlock","_mergeProps","_ctx","_hoisted_1","_createCommentVNode","_cache","_createStaticVNode"],"mappings":";;;AAOI,IAAIA,IAAO;AAEX,MAAKC,IAAU;AAAA,EACX,eAAe;AACX,SAAK,OAAOD,EAAK,SAAQ,GACzBA,KAAQ;AAAA,EACZ;SAbR,KAAA,EAAA;;AAEI,SAAAE,EAAA,GAAAC,EAAigG,OAAjgGC,EAAigG,EAA5/F,MAAK,MAAK,GAASC,EAAA,QAAM;AAAA,IAAE,OAAM;AAAA,IAAqB,OAAM;AAAA,IAA6B,OAAM;AAAA,IAAK,QAAO;AAAA,IAAK,MAAK;AAAA;IAAoBA,EAAA,OAAM,WAAA,UAAnBF,EAAmE,SAFxMG,KAE0KD,EAAA,OAAM,WAAA,CAAA,GAAA,CAAA,KAFhLE,EAAA,IAAA,EAAA;AAAA,IAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAA,+1FAAA,CAAA;AAAA;;;"}
@@ -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-7657a447"]]);
@@ -111,4 +111,4 @@ export {
111
111
  _ as G,
112
112
  d as a
113
113
  };
114
- //# sourceMappingURL=grid-layout.DDaRNz4-.js.map
114
+ //# sourceMappingURL=grid-layout.Vhv1_zFs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid-layout.DDaRNz4-.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, type PropType } from 'vue';\n import { useHasSlot } from '@/composables';\n import { type GridLayoutColumnWidth, type 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":";;;;AAAO,IAAAA,IAAA,kBAAAC,OACHA,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,EA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AAA,CAAA;AAAA;IAE0B,GAAA;AAAA,MAxBtCC,EAAAD,EAAA,QAAA,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.Vhv1_zFs.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, type PropType } from 'vue';\n import { useHasSlot } from '@/composables';\n import { type GridLayoutColumnWidth, type 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":";;;;AAAO,IAAAA,IAAA,kBAAAC,OACHA,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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,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,18 +1,18 @@
1
- import { shallowRef as L, watch as F, defineComponent as R, ref as g, createElementBlock as S, openBlock as _, createVNode as b, createBlock as B, createCommentVNode as h, unref as c, withCtx as v, renderSlot as w, toDisplayString as M, computed as P, useSlots as $, createTextVNode as O } from "vue";
2
- import { h as A, a as Y } from "./button-actions.Dk8xU2cz.js";
3
- import { B as z } from "./popover.types.BbYumG-N.js";
4
- import { p as H, B as T } from "./typography.6Oo5TOMP.js";
1
+ import { shallowRef as L, watch as F, defineComponent as R, ref as g, openBlock as _, createElementBlock as S, createVNode as b, unref as c, createBlock as B, withCtx as v, renderSlot as w, toDisplayString as M, createCommentVNode as h, computed as P, useSlots as $, createTextVNode as O } from "vue";
2
+ import { h as A, a as Y } from "./button-actions.BH-J7dux.js";
3
+ import { B as z } from "./popover.types.C_Z2JeVK.js";
4
+ import { p as H, B as T } from "./typography.B3J6_tYk.js";
5
5
  import { g as V } from "./generate-uid.NJ8tVoha.js";
6
- import { u as X } from "./index.pdBj0KQU.js";
7
- import { I as G } from "./info.BKwey1HA.js";
6
+ import { u as X } from "./index.B875RXHM.js";
7
+ import { I as G } from "./info.6Z6NxUst.js";
8
8
  import { _ as N } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
9
  import { u as J } from "./use-has-slot.B7eQSabc.js";
10
10
  import { c as W } from "./constructNow.B8T1ljs6.js";
11
- import { t as U, a as q, n as K, b as k, g as Q, m as x, d as I } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
11
+ import { t as U, a as q, n as K, b as k, m as x, d as I, g as Q } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
12
12
  import { d as Z } from "./differenceInMonths.BR4Z2HIa.js";
13
13
  import { g as ee } from "./getRoundingMethod.C3eaeGLR.js";
14
14
  import { g as te } from "./en-US.BZii9jNW.js";
15
- import { R as oe } from "./refresh.BB4ouvz_.js";
15
+ import { R as oe } from "./refresh.C31KClfx.js";
16
16
  import "../assets/header-meta.css";
17
17
  const D = /* @__PURE__ */ Object.assign({
18
18
  "../../../node_modules/date-fns/locale/de.js": () => import("./de.DvtL0g75.js"),
@@ -21,13 +21,13 @@ const D = /* @__PURE__ */ Object.assign({
21
21
  "../../../node_modules/date-fns/locale/es.js": () => import("./es.bz0mzkMq.js"),
22
22
  "../../../node_modules/date-fns/locale/fr-CA.js": () => import("./fr-CA.B1aPU8fp.js"),
23
23
  "../../../node_modules/date-fns/locale/fr.js": () => import("./fr.Dj7wEToe.js"),
24
- "../../../node_modules/date-fns/locale/it.js": () => import("./it.DEniTaO2.js"),
24
+ "../../../node_modules/date-fns/locale/it.js": () => import("./it.DIafuXtH.js"),
25
25
  "../../../node_modules/date-fns/locale/ja.js": () => import("./ja.Cm9tJMi2.js"),
26
26
  "../../../node_modules/date-fns/locale/ko.js": () => import("./ko.Ceaof6EP.js"),
27
27
  "../../../node_modules/date-fns/locale/nl.js": () => import("./nl.B6vCf2B9.js"),
28
28
  "../../../node_modules/date-fns/locale/pt-BR.js": () => import("./pt-BR.CiGdfP45.js"),
29
29
  "../../../node_modules/date-fns/locale/sv.js": () => import("./sv.f8EfZjMZ.js"),
30
- "../../../node_modules/date-fns/locale/zh-CN.js": () => import("./zh-CN.CgIooHto.js")
30
+ "../../../node_modules/date-fns/locale/zh-CN.js": () => import("./zh-CN.Bw_6j9Cd.js")
31
31
  });
32
32
  function ae(n) {
33
33
  const s = L(void 0);
@@ -188,10 +188,10 @@ const E = {
188
188
  lastUpdated: "Last updated: {date}"
189
189
  },
190
190
  "ja-JP": {
191
- lastUpdated: "最終更新日: {date}前"
191
+ lastUpdated: "最終更新日: {date}"
192
192
  },
193
193
  "pt-BR": {
194
- lastUpdated: "Última atualização: há {date}"
194
+ lastUpdated: "Última atualização: {date}"
195
195
  }
196
196
  }, ue = { class: "b-header-meta__container" }, fe = {
197
197
  key: 1,
@@ -260,4 +260,4 @@ export {
260
260
  ke as H,
261
261
  Ue as I
262
262
  };
263
- //# sourceMappingURL=header-meta.CkLmuprc.js.map
263
+ //# sourceMappingURL=header-meta.Bw8ZGwJW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"header-meta.CkLmuprc.js","sources":["../../../vue2/src/composables/use-dynamic-date-fns-locale/use-dynamic-date-fns-locale.ts","../../../vue2/src/components/internal/info-icon-with-popover/info-icon-with-popover.vue","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMilliseconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInSeconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistance.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNow.js","../../../vue2/src/components/internal/header-meta/header-meta.vue"],"sourcesContent":["import { type Ref, shallowRef, watch } from 'vue';\nimport type { Locale } from 'date-fns';\nimport { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n\nconst dateFnsLocales = import.meta.glob(\n '../../../node_modules/date-fns/locale/{de,en-GB,en-US,es,fr,fr-CA,it,ja,ko,nl,pt-BR,sv,zh-CN}.js'\n);\n\n/**\n * A composable that provides a reactive date-fns locale object based on the provided locale string.\n * @param i18nLocale - A Ref containing the current locale string (e.g., 'en-US', 'pt-BR').\n * @returns A shallowRef containing the current date-fns Locale object.\n */\nexport function useDynamicDateFnsLocale(i18nLocale: Ref<string>) {\n const dateLocale = shallowRef<Locale | undefined>(undefined);\n\n watch(\n i18nLocale,\n async newLocale => {\n if (!newLocale) {\n dateLocale.value = undefined;\n return;\n }\n\n const getPath = (loc: string) => `../../../node_modules/date-fns/locale/${loc}.js`;\n\n // Try the full locale first (e.g., 'pt-BR')\n let path = getPath(newLocale);\n\n // Fallback to 2-letter code if full locale not found (e.g., 'pt')\n if (!dateFnsLocales[path]) {\n path = getPath(newLocale.substring(0, 2));\n }\n\n // Default fallback to 'en-US'\n if (!dateFnsLocales[path]) {\n path = getPath('en-US');\n }\n\n if (dateFnsLocales[path]) {\n try {\n const dateFnsImport = (await dateFnsLocales[path]()) as { default: Locale };\n dateLocale.value = dateFnsImport.default;\n } catch (error) {\n printDevelopmentWarning(`Failed to load date-fns locale: ${newLocale}`, error);\n }\n }\n },\n { immediate: true }\n );\n\n return dateLocale;\n}\n","<template>\n <div\n ref=\"infoIconRef\"\n class=\"b-info-icon-with-popover\"\n tabindex=\"0\"\n data-testid=\"info-icon-with-popover\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <info-icon\n ref=\"targetElement\"\n class=\"b-info-icon-with-popover__svg\"\n :aria-expanded=\"isOpen\"\n :aria-describedby=\"popoverId\"\n :svg-title=\"t('moreInformation')\"\n />\n <bento-popover\n v-if=\"targetElement\"\n :open=\"isOpen\"\n :target-element=\"targetElement\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n fit-content\n disable-focus-trap\n >\n <bento-typography>\n <slot>\n <div v-if=\"popoverText\">\n {{ popoverText }}\n </div>\n </slot>\n </bento-typography>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n import { type PropType, ref } from 'vue';\n import type { BentoPopoverProps } from '../../popover/popover.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n defineProps({\n /**\n * Text showed in the popover on hover\n */\n popoverText: { type: String, default: null },\n\n /**\n * Position the popover should take if space is available\n */\n popoverPosition: {\n type: String as PropType<BentoPopoverProps['position']>,\n default: 'bottom-start',\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const infoIconRef = ref<HTMLDivElement>();\n const targetElement = ref(null);\n const popoverId = generateUid('bento-info-icon-with-popover');\n const isOpen = ref();\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (\n !infoIconRef.value ||\n !(e?.relatedTarget instanceof Element) ||\n !infoIconRef.value.contains(e.relatedTarget)\n ) {\n closePopover();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to be used whenever an info icon needs to be rendered with a popover instead of a tooltip.\n *\n * @example\n * import { BentoInfoIconWithPopover } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInfoIconWithPopover },\n * template: `\n * <info-icon-with-popover popover-text=\"Content can be passed as a string like\" :popover-position=\"position\">\n * Content can also be rendered as a slot\n * </info-icon-with-popover>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon-with-popover.scss\" />\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n *\n * @returns The number of milliseconds\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport function differenceInMilliseconds(laterDate, earlierDate) {\n return +toDate(laterDate) - +toDate(earlierDate);\n}\n\n// Fallback for modularized imports:\nexport default differenceInMilliseconds;\n","import { getRoundingMethod } from \"./_lib/getRoundingMethod.js\";\nimport { differenceInMilliseconds } from \"./differenceInMilliseconds.js\";\n\n/**\n * The {@link differenceInSeconds} function options.\n */\n\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options.\n *\n * @returns The number of seconds\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nexport function differenceInSeconds(laterDate, earlierDate, options) {\n const diff = differenceInMilliseconds(laterDate, earlierDate) / 1000;\n return getRoundingMethod(options?.roundingMethod)(diff);\n}\n\n// Fallback for modularized imports:\nexport default differenceInSeconds;\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { minutesInDay, minutesInMonth } from \"./constants.js\";\nimport { differenceInMonths } from \"./differenceInMonths.js\";\nimport { differenceInSeconds } from \"./differenceInSeconds.js\";\n\n/**\n * The {@link formatDistance} function options.\n */\n\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param laterDate - The date\n * @param earlierDate - The date to compare with\n * @param options - An object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `baseDate` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistance(laterDate, earlierDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n const minutesInAlmostTwoDays = 2520;\n\n const comparison = compareAsc(laterDate, earlierDate);\n\n if (isNaN(comparison)) throw new RangeError(\"Invalid time value\");\n\n const localizeOptions = Object.assign({}, options, {\n addSuffix: options?.addSuffix,\n comparison: comparison,\n });\n\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]),\n );\n\n const seconds = differenceInSeconds(earlierDate_, laterDate_);\n const offsetInSeconds =\n (getTimezoneOffsetInMilliseconds(earlierDate_) -\n getTimezoneOffsetInMilliseconds(laterDate_)) /\n 1000;\n const minutes = Math.round((seconds - offsetInSeconds) / 60);\n let months;\n\n // 0 up to 2 mins\n if (minutes < 2) {\n if (options?.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance(\"lessThanXSeconds\", 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance(\"lessThanXSeconds\", 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance(\"lessThanXSeconds\", 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance(\"halfAMinute\", 0, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n }\n }\n\n // 2 mins up to 0.75 hrs\n } else if (minutes < 45) {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n\n // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance(\"aboutXHours\", 1, localizeOptions);\n\n // 1.5 hrs up to 24 hrs\n } else if (minutes < minutesInDay) {\n const hours = Math.round(minutes / 60);\n return locale.formatDistance(\"aboutXHours\", hours, localizeOptions);\n\n // 1 day up to 1.75 days\n } else if (minutes < minutesInAlmostTwoDays) {\n return locale.formatDistance(\"xDays\", 1, localizeOptions);\n\n // 1.75 days up to 30 days\n } else if (minutes < minutesInMonth) {\n const days = Math.round(minutes / minutesInDay);\n return locale.formatDistance(\"xDays\", days, localizeOptions);\n\n // 1 month up to 2 months\n } else if (minutes < minutesInMonth * 2) {\n months = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"aboutXMonths\", months, localizeOptions);\n }\n\n months = differenceInMonths(earlierDate_, laterDate_);\n\n // 2 months up to 12 months\n if (months < 12) {\n const nearestMonth = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"xMonths\", nearestMonth, localizeOptions);\n\n // 1 year up to max Date\n } else {\n const monthsSinceStartOfYear = months % 12;\n const years = Math.trunc(months / 12);\n\n // N years up to 1 years 3 months\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance(\"aboutXYears\", years, localizeOptions);\n\n // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance(\"overXYears\", years, localizeOptions);\n\n // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance(\"almostXYears\", years + 1, localizeOptions);\n }\n }\n}\n\n// Fallback for modularized imports:\nexport default formatDistance;\n","import { constructNow } from \"./constructNow.js\";\n\nimport { formatDistance } from \"./formatDistance.js\";\n\n/**\n * The {@link formatDistanceToNow} function options.\n */\n\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now | Result |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param date - The given date\n * @param options - The object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNow(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNow(\n * new Date(2015, 0, 1, 0, 0, 15),\n * {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNow(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNow(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistanceToNow(date, options) {\n return formatDistance(date, constructNow(date), options);\n}\n\n// Fallback for modularized imports:\nexport default formatDistanceToNow;\n","<template>\n <div class=\"b-header-meta__container\">\n <bento-typography v-if=\"description || hasSlot('description')\" class=\"b-header-meta__description\" el=\"div\">\n <slot name=\"description\">{{ description }}</slot>\n </bento-typography>\n <div v-if=\"lastUpdated\" class=\"b-header-meta__timestamp-section\">\n <bento-typography class=\"b-header-meta__timestamp\" el=\"div\">\n {{ timestamp }}\n </bento-typography>\n <bento-loading-button\n v-if=\"reloadButton\"\n variant=\"tertiary\"\n :state=\"reloadButton.state\"\n @click=\"reloadButton.event\"\n ><template #iconLeft><reload-icon aria-hidden=\"true\" /></template\n >{{ reloadButton.title }}</bento-loading-button\n >\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { useDynamicDateFnsLocale, useHasSlot } from '@/composables';\n import { formatDistanceToNow } from 'date-fns/formatDistanceToNow';\n import { BentoTypography } from '@/components/typography';\n import { BentoLoadingButton } from '@/components/button';\n import ReloadIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import { useI18n } from '@/utils/ts/i18n';\n import type { HeaderMetaProps } from './header-meta.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = withDefaults(defineProps<HeaderMetaProps>(), {\n description: null,\n lastUpdated: null,\n reloadButton: null,\n });\n\n const activeLocale = computed(() => (props.lastUpdated ? locale.value : ''));\n const dateLocale = useDynamicDateFnsLocale(activeLocale);\n\n const timestamp = computed(() =>\n props.lastUpdated\n ? t('lastUpdated', {\n date: formatDistanceToNow(props.lastUpdated, {\n locale: dateLocale.value,\n addSuffix: true,\n }),\n })\n : null\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal component used by the BentoHeader and BentoHeaderWithViews components.\n *\n * @example\n * import { HeaderMeta } from '@/internal';\n *\n * export default {\n * components: { HeaderMeta },\n * template: `\n * <header-meta description=\"header description\" :last-updated=\"new Date()\" />\n * `\n * }\n * @slot description - The description content. Overrides the `description` prop.\n * @property description - Text showed under the title.\n * @property lastUpdated - JavaScript \"Date\" object for when the content was last updated.\n * @property reloadButton - Reload button which shows next to the header's timestamp.\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./header-meta.scss\" />\n"],"names":["dateFnsLocales","useDynamicDateFnsLocale","i18nLocale","dateLocale","shallowRef","watch","newLocale","getPath","loc","path","dateFnsImport","error","printDevelopmentWarning","__default__$1","messages$1","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","infoIconOnFocus","infoIconOnFocusOut","e","differenceInMilliseconds","laterDate","earlierDate","toDate","differenceInSeconds","options","diff","getRoundingMethod","formatDistance","defaultOptions","getDefaultOptions","locale","enUS","minutesInAlmostTwoDays","comparison","compareAsc","localizeOptions","laterDate_","earlierDate_","normalizeDates","seconds","offsetInSeconds","getTimezoneOffsetInMilliseconds","minutes","months","minutesInDay","hours","minutesInMonth","days","differenceInMonths","nearestMonth","monthsSinceStartOfYear","years","formatDistanceToNow","date","constructNow","__default__","messages","t","props","__props","activeLocale","computed","timestamp","slots","useSlots","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;;;;;;;AAIA,MAAAA,IAAA,uBAAA,OAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA,EAAA,KAAA,OAAA,EAAA,CAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAuB,CAAA;AAShB,SAAAC,GAAAC,GAAA;AACH,QAAAC,IAAAC,EAAA,MAAA;A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GAAA;AACP,SAAAG,GAAA0B,GAAAC,EAAAD,CAAA,GAAA7B,CAAA;AACA;;;;;;;;;;;;;;GCbI+B,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;AA9CA,UAAA,EAAA,GAAAC,GAAA,QAAA3B,EAAA,IAAAzB,EAAA,EAAA,UAAAmD,EAAA,CAAA,GAEAE,IAAAC,GAMAC,IAAAC,EAAA,MAAAH,EAAA,cAAA5B,EAAA,QAAA,EAAA,GACArC,IAAAF,GAAAqE,CAAA,GAEAE,IAAAD;AAAA,MAAkB,MAAAH,EAAA,cAAAD,EAAA,eAAA;AAAA,QAES,MAAAL,GAAAM,EAAA,aAAA;AAAA,UACgC,QAAAjE,EAAA;AAAA,UACtB,WAAA;AAAA,QACR,CAAA;AAAA,MACd,CAAA,IAAA;AAAA,IAEL,GAGVsE,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[2,3,4,5]}
1
+ {"version":3,"file":"header-meta.Bw8ZGwJW.js","sources":["../../../vue2/src/composables/use-dynamic-date-fns-locale/use-dynamic-date-fns-locale.ts","../../../vue2/src/components/internal/info-icon-with-popover/info-icon-with-popover.vue","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInMilliseconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInSeconds.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistance.js","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceToNow.js","../../../vue2/src/components/internal/header-meta/header-meta.vue"],"sourcesContent":["import { type Ref, shallowRef, watch } from 'vue';\nimport type { Locale } from 'date-fns';\nimport { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n\nconst dateFnsLocales = import.meta.glob(\n '../../../node_modules/date-fns/locale/{de,en-GB,en-US,es,fr,fr-CA,it,ja,ko,nl,pt-BR,sv,zh-CN}.js'\n);\n\n/**\n * A composable that provides a reactive date-fns locale object based on the provided locale string.\n * @param i18nLocale - A Ref containing the current locale string (e.g., 'en-US', 'pt-BR').\n * @returns A shallowRef containing the current date-fns Locale object.\n */\nexport function useDynamicDateFnsLocale(i18nLocale: Ref<string>) {\n const dateLocale = shallowRef<Locale | undefined>(undefined);\n\n watch(\n i18nLocale,\n async newLocale => {\n if (!newLocale) {\n dateLocale.value = undefined;\n return;\n }\n\n const getPath = (loc: string) => `../../../node_modules/date-fns/locale/${loc}.js`;\n\n // Try the full locale first (e.g., 'pt-BR')\n let path = getPath(newLocale);\n\n // Fallback to 2-letter code if full locale not found (e.g., 'pt')\n if (!dateFnsLocales[path]) {\n path = getPath(newLocale.substring(0, 2));\n }\n\n // Default fallback to 'en-US'\n if (!dateFnsLocales[path]) {\n path = getPath('en-US');\n }\n\n if (dateFnsLocales[path]) {\n try {\n const dateFnsImport = (await dateFnsLocales[path]()) as { default: Locale };\n dateLocale.value = dateFnsImport.default;\n } catch (error) {\n printDevelopmentWarning(`Failed to load date-fns locale: ${newLocale}`, error);\n }\n }\n },\n { immediate: true }\n );\n\n return dateLocale;\n}\n","<template>\n <div\n ref=\"infoIconRef\"\n class=\"b-info-icon-with-popover\"\n tabindex=\"0\"\n data-testid=\"info-icon-with-popover\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <info-icon\n ref=\"targetElement\"\n class=\"b-info-icon-with-popover__svg\"\n :aria-expanded=\"isOpen\"\n :aria-describedby=\"popoverId\"\n :svg-title=\"t('moreInformation')\"\n />\n <bento-popover\n v-if=\"targetElement\"\n :open=\"isOpen\"\n :target-element=\"targetElement\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n fit-content\n disable-focus-trap\n >\n <bento-typography>\n <slot>\n <div v-if=\"popoverText\">\n {{ popoverText }}\n </div>\n </slot>\n </bento-typography>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n import { type PropType, ref } from 'vue';\n import type { BentoPopoverProps } from '../../popover/popover.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n defineProps({\n /**\n * Text showed in the popover on hover\n */\n popoverText: { type: String, default: null },\n\n /**\n * Position the popover should take if space is available\n */\n popoverPosition: {\n type: String as PropType<BentoPopoverProps['position']>,\n default: 'bottom-start',\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const infoIconRef = ref<HTMLDivElement>();\n const targetElement = ref(null);\n const popoverId = generateUid('bento-info-icon-with-popover');\n const isOpen = ref();\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (\n !infoIconRef.value ||\n !(e?.relatedTarget instanceof Element) ||\n !infoIconRef.value.contains(e.relatedTarget)\n ) {\n closePopover();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to be used whenever an info icon needs to be rendered with a popover instead of a tooltip.\n *\n * @example\n * import { BentoInfoIconWithPopover } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInfoIconWithPopover },\n * template: `\n * <info-icon-with-popover popover-text=\"Content can be passed as a string like\" :popover-position=\"position\">\n * Content can also be rendered as a slot\n * </info-icon-with-popover>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon-with-popover.scss\" />\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n *\n * @returns The number of milliseconds\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\nexport function differenceInMilliseconds(laterDate, earlierDate) {\n return +toDate(laterDate) - +toDate(earlierDate);\n}\n\n// Fallback for modularized imports:\nexport default differenceInMilliseconds;\n","import { getRoundingMethod } from \"./_lib/getRoundingMethod.js\";\nimport { differenceInMilliseconds } from \"./differenceInMilliseconds.js\";\n\n/**\n * The {@link differenceInSeconds} function options.\n */\n\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - An object with options.\n *\n * @returns The number of seconds\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\nexport function differenceInSeconds(laterDate, earlierDate, options) {\n const diff = differenceInMilliseconds(laterDate, earlierDate) / 1000;\n return getRoundingMethod(options?.roundingMethod)(diff);\n}\n\n// Fallback for modularized imports:\nexport default differenceInSeconds;\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport { minutesInDay, minutesInMonth } from \"./constants.js\";\nimport { differenceInMonths } from \"./differenceInMonths.js\";\nimport { differenceInSeconds } from \"./differenceInSeconds.js\";\n\n/**\n * The {@link formatDistance} function options.\n */\n\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param laterDate - The date\n * @param earlierDate - The date to compare with\n * @param options - An object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `baseDate` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistance(laterDate, earlierDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n const minutesInAlmostTwoDays = 2520;\n\n const comparison = compareAsc(laterDate, earlierDate);\n\n if (isNaN(comparison)) throw new RangeError(\"Invalid time value\");\n\n const localizeOptions = Object.assign({}, options, {\n addSuffix: options?.addSuffix,\n comparison: comparison,\n });\n\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]),\n );\n\n const seconds = differenceInSeconds(earlierDate_, laterDate_);\n const offsetInSeconds =\n (getTimezoneOffsetInMilliseconds(earlierDate_) -\n getTimezoneOffsetInMilliseconds(laterDate_)) /\n 1000;\n const minutes = Math.round((seconds - offsetInSeconds) / 60);\n let months;\n\n // 0 up to 2 mins\n if (minutes < 2) {\n if (options?.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance(\"lessThanXSeconds\", 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance(\"lessThanXSeconds\", 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance(\"lessThanXSeconds\", 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance(\"halfAMinute\", 0, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance(\"lessThanXMinutes\", 1, localizeOptions);\n } else {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n }\n }\n\n // 2 mins up to 0.75 hrs\n } else if (minutes < 45) {\n return locale.formatDistance(\"xMinutes\", minutes, localizeOptions);\n\n // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance(\"aboutXHours\", 1, localizeOptions);\n\n // 1.5 hrs up to 24 hrs\n } else if (minutes < minutesInDay) {\n const hours = Math.round(minutes / 60);\n return locale.formatDistance(\"aboutXHours\", hours, localizeOptions);\n\n // 1 day up to 1.75 days\n } else if (minutes < minutesInAlmostTwoDays) {\n return locale.formatDistance(\"xDays\", 1, localizeOptions);\n\n // 1.75 days up to 30 days\n } else if (minutes < minutesInMonth) {\n const days = Math.round(minutes / minutesInDay);\n return locale.formatDistance(\"xDays\", days, localizeOptions);\n\n // 1 month up to 2 months\n } else if (minutes < minutesInMonth * 2) {\n months = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"aboutXMonths\", months, localizeOptions);\n }\n\n months = differenceInMonths(earlierDate_, laterDate_);\n\n // 2 months up to 12 months\n if (months < 12) {\n const nearestMonth = Math.round(minutes / minutesInMonth);\n return locale.formatDistance(\"xMonths\", nearestMonth, localizeOptions);\n\n // 1 year up to max Date\n } else {\n const monthsSinceStartOfYear = months % 12;\n const years = Math.trunc(months / 12);\n\n // N years up to 1 years 3 months\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance(\"aboutXYears\", years, localizeOptions);\n\n // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance(\"overXYears\", years, localizeOptions);\n\n // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance(\"almostXYears\", years + 1, localizeOptions);\n }\n }\n}\n\n// Fallback for modularized imports:\nexport default formatDistance;\n","import { constructNow } from \"./constructNow.js\";\n\nimport { formatDistance } from \"./formatDistance.js\";\n\n/**\n * The {@link formatDistanceToNow} function options.\n */\n\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now | Result |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * @param date - The given date\n * @param options - The object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNow(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNow(\n * new Date(2015, 0, 1, 0, 0, 15),\n * {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNow(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNow(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\nexport function formatDistanceToNow(date, options) {\n return formatDistance(date, constructNow(date), options);\n}\n\n// Fallback for modularized imports:\nexport default formatDistanceToNow;\n","<template>\n <div class=\"b-header-meta__container\">\n <bento-typography v-if=\"description || hasSlot('description')\" class=\"b-header-meta__description\" el=\"div\">\n <slot name=\"description\">{{ description }}</slot>\n </bento-typography>\n <div v-if=\"lastUpdated\" class=\"b-header-meta__timestamp-section\">\n <bento-typography class=\"b-header-meta__timestamp\" el=\"div\">\n {{ timestamp }}\n </bento-typography>\n <bento-loading-button\n v-if=\"reloadButton\"\n variant=\"tertiary\"\n :state=\"reloadButton.state\"\n @click=\"reloadButton.event\"\n ><template #iconLeft><reload-icon aria-hidden=\"true\" /></template\n >{{ reloadButton.title }}</bento-loading-button\n >\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { useDynamicDateFnsLocale, useHasSlot } from '@/composables';\n import { formatDistanceToNow } from 'date-fns/formatDistanceToNow';\n import { BentoTypography } from '@/components/typography';\n import { BentoLoadingButton } from '@/components/button';\n import ReloadIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import { useI18n } from '@/utils/ts/i18n';\n import type { HeaderMetaProps } from './header-meta.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = withDefaults(defineProps<HeaderMetaProps>(), {\n description: null,\n lastUpdated: null,\n reloadButton: null,\n });\n\n const activeLocale = computed(() => (props.lastUpdated ? locale.value : ''));\n const dateLocale = useDynamicDateFnsLocale(activeLocale);\n\n const timestamp = computed(() =>\n props.lastUpdated\n ? t('lastUpdated', {\n date: formatDistanceToNow(props.lastUpdated, {\n locale: dateLocale.value,\n addSuffix: true,\n }),\n })\n : null\n );\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal component used by the BentoHeader and BentoHeaderWithViews components.\n *\n * @example\n * import { HeaderMeta } from '@/internal';\n *\n * export default {\n * components: { HeaderMeta },\n * template: `\n * <header-meta description=\"header description\" :last-updated=\"new Date()\" />\n * `\n * }\n * @slot description - The description content. Overrides the `description` prop.\n * @property description - Text showed under the title.\n * @property lastUpdated - JavaScript \"Date\" object for when the content was last updated.\n * @property reloadButton - Reload button which shows next to the header's timestamp.\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./header-meta.scss\" />\n"],"names":["dateFnsLocales","useDynamicDateFnsLocale","i18nLocale","dateLocale","shallowRef","watch","newLocale","getPath","loc","path","dateFnsImport","error","printDevelopmentWarning","__default__$1","messages$1","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","infoIconOnFocus","infoIconOnFocusOut","e","differenceInMilliseconds","laterDate","earlierDate","toDate","differenceInSeconds","options","diff","getRoundingMethod","formatDistance","defaultOptions","getDefaultOptions","locale","enUS","minutesInAlmostTwoDays","comparison","compareAsc","localizeOptions","laterDate_","earlierDate_","normalizeDates","seconds","offsetInSeconds","getTimezoneOffsetInMilliseconds","minutes","months","minutesInDay","hours","minutesInMonth","days","differenceInMonths","nearestMonth","monthsSinceStartOfYear","years","formatDistanceToNow","date","constructNow","__default__","messages","t","props","__props","activeLocale","computed","timestamp","slots","useSlots","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;;;;;;;AAIA,MAAAA,IAAA,uBAAA,OAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA,EAAA,KAAA,OAAA,EAAA,CAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,+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;AAGA,WAAAO,IAAA,IACApB,EAAA,eAAA,eAAAqB,GAAAhB,CAAA,IAGAe,IAAA,IACApB,EAAA,eAAA,cAAAqB,GAAAhB,CAAA,IAIAL,EAAA,eAAA,gBAAAqB,IAAA,GAAAhB,CAAA;AAAA,EAEA;AACA;AC1GO,SAAAiB,GAAAC,GAAA7B,GAAA;AACP,SAAAG,GAAA0B,GAAAC,EAAAD,CAAA,GAAA7B,CAAA;AACA;;;;;;;;;;;;;;GCbI+B,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;AA9CA,UAAA,EAAA,GAAAC,GAAA,QAAA3B,EAAA,IAAAzB,EAAA,EAAA,UAAAmD,EAAA,CAAA,GAEAE,IAAAC,GAMAC,IAAAC,EAAA,MAAAH,EAAA,cAAA5B,EAAA,QAAA,EAAA,GACArC,IAAAF,GAAAqE,CAAA,GAEAE,IAAAD;AAAA,MAAkB,MAAAH,EAAA,cAAAD,EAAA,eAAA;AAAA,QAES,MAAAL,GAAAM,EAAA,aAAA;AAAA,UACgC,QAAAjE,EAAA;AAAA,UACtB,WAAA;AAAA,QACR,CAAA;AAAA,MACd,CAAA,IAAA;AAAA,IAEL,GAGVsE,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[2,3,4,5]}
@@ -1,27 +1,27 @@
1
- import { createElementBlock as n, openBlock as l, mergeProps as L, createCommentVNode as c, createElementVNode as s, toDisplayString as p, createStaticVNode as Be, ref as f, reactive as n5, computed as Y, watch as s1, nextTick as k1, defineComponent as P1, toRef as a5, withKeys as q, withModifiers as f1, createVNode as I, createBlock as F, unref as o, withCtx as Z, Fragment as m1, renderList as V1, normalizeClass as l1, createTextVNode as X, resolveDynamicComponent as b1, onMounted as Ge, useSlots as r5, createSlots as w1, renderSlot as te } from "vue";
2
- import { B as g1 } from "./button.CSp48LJt.js";
3
- import { B as Ye } from "./checkbox.A35e7MsN.js";
4
- import { u as L1, c as I1, h as _1, f as je, B as u5 } from "./button-actions.Dk8xU2cz.js";
5
- import { _ as se } from "./modal.vue_vue_type_script_setup_true_lang.KSBXRR2X.js";
6
- import { B as C1 } from "./typography.6Oo5TOMP.js";
1
+ import { openBlock as l, createElementBlock as n, mergeProps as L, toDisplayString as p, createCommentVNode as c, createElementVNode as s, createStaticVNode as Be, ref as f, reactive as n5, computed as Y, watch as s1, nextTick as k1, defineComponent as P1, toRef as a5, withKeys as q, withModifiers as f1, createVNode as I, unref as o, withCtx as Z, createBlock as F, Fragment as m1, renderList as V1, normalizeClass as l1, createTextVNode as X, resolveDynamicComponent as b1, onMounted as Ge, useSlots as r5, createSlots as w1, renderSlot as te } from "vue";
2
+ import { B as g1 } from "./button.C6t9_lzm.js";
3
+ import { B as Ye } from "./checkbox.7kpOXm-b.js";
4
+ import { u as L1, c as I1, h as _1, f as je, B as u5 } from "./button-actions.BH-J7dux.js";
5
+ import { _ as se } from "./modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js";
6
+ import { B as C1 } from "./typography.B3J6_tYk.js";
7
7
  import { u as d5 } from "./use-has-slot.B7eQSabc.js";
8
- import { u as v5 } from "./use-bento-toast-controller.V61h7XzI.js";
8
+ import { u as v5 } from "./use-bento-toast-controller.BFctDoMg.js";
9
9
  import { g as H1 } from "./generate-uid.NJ8tVoha.js";
10
- import { B as c5 } from "./button-actions-with-menu.DY0pTtk-.js";
11
- import { u as S1 } from "./index.pdBj0KQU.js";
12
- import { B as p5 } from "./bin.DuHlEQBO.js";
13
- import { D as C5 } from "./dot.ob6N-5Um.js";
10
+ import { B as c5 } from "./button-actions-with-menu.DBqA3Ws5.js";
11
+ import { u as S1 } from "./index.B875RXHM.js";
12
+ import { B as p5 } from "./bin.Cude0fiB.js";
13
+ import { D as C5 } from "./dot.DBmwmOUN.js";
14
14
  /* empty css */
15
15
  import { _ as $ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
16
- import { R as f5 } from "./refresh.BB4ouvz_.js";
17
- import { b as qe, o as g5 } from "./index.CL07S4Wa.js";
18
- import { I as h5, H as w5 } from "./header-meta.CkLmuprc.js";
19
- import { G as $5 } from "./grab.B63hmf-_.js";
20
- import { u as $1 } from "./on-click-outside.D9aY9g8G.js";
21
- import { B as m5 } from "./divider.Dho4_hQ7.js";
22
- import { B as V5 } from "./input-field.CFNofr-W.js";
16
+ import { R as f5 } from "./refresh.C31KClfx.js";
17
+ import { b as qe, o as g5 } from "./index.CbxHJr39.js";
18
+ import { I as h5, H as w5 } from "./header-meta.Bw8ZGwJW.js";
19
+ import { G as $5 } from "./grab.DJYL4kBq.js";
20
+ import { u as $1 } from "./on-click-outside.BW4rkhzG.js";
21
+ import { B as m5 } from "./divider.BIY84UH7.js";
22
+ import { B as V5 } from "./input-field.CNdqlGw6.js";
23
23
  import { d as b5 } from "./debounce.DUTu11PS.js";
24
- import { F as L5 } from "./field-label.OurHuGZS.js";
24
+ import { F as L5 } from "./error-message.BYA2_fPV.js";
25
25
  import "../assets/header-with-views.css";
26
26
  let ie = 0;
27
27
  const _5 = {
@@ -2469,4 +2469,4 @@ const We = {
2469
2469
  export {
2470
2470
  Gs as h
2471
2471
  };
2472
- //# sourceMappingURL=header-with-views.BXZmqtnz.js.map
2472
+ //# sourceMappingURL=header-with-views.CJDoE4hw.js.map