@adyen/bento-vue3 1.89.2 → 1.90.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.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +403 -298
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
- package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
- package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
- package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
- package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
- package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
- package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
- package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
- package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
- package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
- package/dist/chunks/card.BzCGCCzH.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
- package/dist/chunks/chip.DFldnqfz.js +72 -0
- package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
- package/dist/chunks/copy.CL893i9-.js +114 -0
- package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
- package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
- package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js +26 -0
- package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
- package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
- package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
- package/dist/chunks/date-picker.DPjCROIP.js +238 -0
- package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
- package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
- package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
- package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
- package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
- package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
- package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
- package/dist/chunks/error-message.849uzpkq.js +157 -0
- package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
- package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
- package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
- package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
- package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
- package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
- package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
- package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
- package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
- package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
- package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
- package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
- package/dist/chunks/input-time.DeJ8lDio.js +103 -0
- package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
- package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
- package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
- package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
- package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
- package/dist/chunks/pagination.DL-h8OLF.js +413 -0
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
- package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
- package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
- package/dist/chunks/search-bar.DfNwnjes.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
- package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
- package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
- package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
- package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
- package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
- package/dist/chunks/step.AsX2jAeL.js +268 -0
- package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
- package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
- package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
- package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
- package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
- package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
- package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
- package/dist/chunks/textarea.C-sBemuo.js +256 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
- package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
- package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
- package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
- package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
- package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
- package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +51 -44
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +205 -203
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
- package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
- package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
- package/dist/chunks/card.CoxQ_L0w.js +0 -216
- package/dist/chunks/chip.CdgpQyXN.js +0 -65
- package/dist/chunks/copy.C2kQ1PbI.js +0 -107
- package/dist/chunks/country.types.DjpMGz7a.js +0 -19
- package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
- package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
- package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
- package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
- package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
- package/dist/chunks/step.BlwoLfdw.js +0 -259
- package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
- package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
- package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
- package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import { h as
|
|
3
|
-
import { B as
|
|
4
|
-
import { p as
|
|
5
|
-
import { g as
|
|
1
|
+
import { shallowRef as L, watch as C, defineComponent as x, ref as I, openBlock as v, createElementBlock as S, createVNode as y, unref as c, createBlock as O, withCtx as _, renderSlot as E, toDisplayString as M, createCommentVNode as h, computed as j, useSlots as F, createTextVNode as B } from "vue";
|
|
2
|
+
import { h as $, a as A } from "./button-actions.Bh_PZ_fV.js";
|
|
3
|
+
import { B as Y } from "./popover.types.D8tHtFl3.js";
|
|
4
|
+
import { p as G, B as T } from "./typography.B3J6_tYk.js";
|
|
5
|
+
import { g as H } from "./generate-uid.DBWe4g6T.js";
|
|
6
6
|
import { u as X } from "./index.B875RXHM.js";
|
|
7
|
-
import { I as
|
|
7
|
+
import { I as V } from "./info.6Z6NxUst.js";
|
|
8
8
|
import { _ as N } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { c as
|
|
11
|
-
import { t as
|
|
9
|
+
import { u as W } from "./use-has-slot.CyMiImRQ.js";
|
|
10
|
+
import { c as J } from "./constructNow.D9uRk678.js";
|
|
11
|
+
import { t as P, d as q, n as K, k, j as Q, o as R, p as g, g as Z } from "./en-US.CCazFVNP.js";
|
|
12
12
|
import { d as ee } from "./differenceInMonths.s_znQQpw.js";
|
|
13
13
|
import { g as te } from "./getRoundingMethod.C3eaeGLR.js";
|
|
14
14
|
import { R as oe } from "./refresh.C31KClfx.js";
|
|
@@ -24,13 +24,13 @@ const D = /* @__PURE__ */ Object.assign({
|
|
|
24
24
|
"../../../node_modules/date-fns/locale/pt-BR.js": () => import("./pt-BR.DmhmCzxE.js"),
|
|
25
25
|
"../../../node_modules/date-fns/locale/zh-CN.js": () => import("./zh-CN.Ce34mXsX.js")
|
|
26
26
|
});
|
|
27
|
-
function
|
|
28
|
-
const
|
|
29
|
-
return
|
|
27
|
+
function ae(o) {
|
|
28
|
+
const n = L(void 0);
|
|
29
|
+
return C(
|
|
30
30
|
o,
|
|
31
31
|
async (s) => {
|
|
32
32
|
if (!s) {
|
|
33
|
-
|
|
33
|
+
n.value = void 0;
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
const r = (l) => `../../../node_modules/date-fns/locale/${l}.js`;
|
|
@@ -38,69 +38,76 @@ function ne(o) {
|
|
|
38
38
|
if (D[e] || (e = r(s.substring(0, 2))), D[e] || (e = r("en-US")), D[e])
|
|
39
39
|
try {
|
|
40
40
|
const l = await D[e]();
|
|
41
|
-
|
|
41
|
+
n.value = l.default;
|
|
42
42
|
} catch (l) {
|
|
43
|
-
|
|
43
|
+
G(`Failed to load date-fns locale: ${s}`, l);
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
{ immediate: !0 }
|
|
47
|
-
),
|
|
47
|
+
), n;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return +
|
|
49
|
+
function ne(o, n) {
|
|
50
|
+
return +P(o) - +P(n);
|
|
51
51
|
}
|
|
52
|
-
function se(o,
|
|
53
|
-
const r =
|
|
52
|
+
function se(o, n, s) {
|
|
53
|
+
const r = ne(o, n) / 1e3;
|
|
54
54
|
return te(s?.roundingMethod)(r);
|
|
55
55
|
}
|
|
56
|
-
function re(o,
|
|
57
|
-
const r = Z(), e = s?.locale ?? r.locale ?? Q, l = 2520,
|
|
58
|
-
if (isNaN(
|
|
56
|
+
function re(o, n, s) {
|
|
57
|
+
const r = Z(), e = s?.locale ?? r.locale ?? Q, l = 2520, d = q(o, n);
|
|
58
|
+
if (isNaN(d)) throw new RangeError("Invalid time value");
|
|
59
59
|
const t = Object.assign({}, s, {
|
|
60
60
|
addSuffix: s?.addSuffix,
|
|
61
|
-
comparison:
|
|
61
|
+
comparison: d
|
|
62
62
|
}), [f, i] = K(
|
|
63
63
|
s?.in,
|
|
64
|
-
...
|
|
65
|
-
), u = se(i, f),
|
|
64
|
+
...d > 0 ? [n, o] : [o, n]
|
|
65
|
+
), u = se(i, f), U = (k(i) - k(f)) / 1e3, a = Math.round((u - U) / 60);
|
|
66
66
|
let p;
|
|
67
|
-
if (
|
|
68
|
-
return s?.includeSeconds ? u < 5 ? e.formatDistance("lessThanXSeconds", 5, t) : u < 10 ? e.formatDistance("lessThanXSeconds", 10, t) : u < 20 ? e.formatDistance("lessThanXSeconds", 20, t) : u < 40 ? e.formatDistance("halfAMinute", 0, t) : u < 60 ? e.formatDistance("lessThanXMinutes", 1, t) : e.formatDistance("xMinutes", 1, t) :
|
|
69
|
-
if (
|
|
70
|
-
return e.formatDistance("xMinutes",
|
|
71
|
-
if (
|
|
67
|
+
if (a < 2)
|
|
68
|
+
return s?.includeSeconds ? u < 5 ? e.formatDistance("lessThanXSeconds", 5, t) : u < 10 ? e.formatDistance("lessThanXSeconds", 10, t) : u < 20 ? e.formatDistance("lessThanXSeconds", 20, t) : u < 40 ? e.formatDistance("halfAMinute", 0, t) : u < 60 ? e.formatDistance("lessThanXMinutes", 1, t) : e.formatDistance("xMinutes", 1, t) : a === 0 ? e.formatDistance("lessThanXMinutes", 1, t) : e.formatDistance("xMinutes", a, t);
|
|
69
|
+
if (a < 45)
|
|
70
|
+
return e.formatDistance("xMinutes", a, t);
|
|
71
|
+
if (a < 90)
|
|
72
72
|
return e.formatDistance("aboutXHours", 1, t);
|
|
73
|
-
if (
|
|
74
|
-
const m = Math.round(
|
|
73
|
+
if (a < R) {
|
|
74
|
+
const m = Math.round(a / 60);
|
|
75
75
|
return e.formatDistance("aboutXHours", m, t);
|
|
76
76
|
} else {
|
|
77
|
-
if (
|
|
77
|
+
if (a < l)
|
|
78
78
|
return e.formatDistance("xDays", 1, t);
|
|
79
|
-
if (
|
|
80
|
-
const m = Math.round(
|
|
79
|
+
if (a < g) {
|
|
80
|
+
const m = Math.round(a / R);
|
|
81
81
|
return e.formatDistance("xDays", m, t);
|
|
82
|
-
} else if (
|
|
83
|
-
return p = Math.round(
|
|
82
|
+
} else if (a < g * 2)
|
|
83
|
+
return p = Math.round(a / g), e.formatDistance("aboutXMonths", p, t);
|
|
84
84
|
}
|
|
85
85
|
if (p = ee(i, f), p < 12) {
|
|
86
|
-
const m = Math.round(
|
|
86
|
+
const m = Math.round(a / g);
|
|
87
87
|
return e.formatDistance("xMonths", m, t);
|
|
88
88
|
} else {
|
|
89
|
-
const m = p % 12,
|
|
90
|
-
return m < 3 ? e.formatDistance("aboutXYears",
|
|
89
|
+
const m = p % 12, b = Math.trunc(p / 12);
|
|
90
|
+
return m < 3 ? e.formatDistance("aboutXYears", b, t) : m < 9 ? e.formatDistance("overXYears", b, t) : e.formatDistance("almostXYears", b + 1, t);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function ie(o,
|
|
94
|
-
return re(o,
|
|
93
|
+
function ie(o, n) {
|
|
94
|
+
return re(o, J(o), n);
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const w = {
|
|
97
|
+
"de-DE": { moreInformation: "Weitere Informationen" },
|
|
98
|
+
"en-GB": { moreInformation: "More information" },
|
|
97
99
|
"en-US": { moreInformation: "More information" },
|
|
100
|
+
"es-ES": { moreInformation: "Más información" },
|
|
101
|
+
"es-MX": { moreInformation: "Más información" },
|
|
102
|
+
"fr-FR": { moreInformation: "Plus d'informations" },
|
|
103
|
+
"it-IT": { moreInformation: "Ulteriori informazioni" },
|
|
98
104
|
"ja-JP": { moreInformation: "詳細情報" },
|
|
99
|
-
"pt-BR": { moreInformation: "Mais informações" }
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
"pt-BR": { moreInformation: "Mais informações" },
|
|
106
|
+
"zh-CN": { moreInformation: "更多信息" }
|
|
107
|
+
}, le = { key: 0 }, de = {
|
|
108
|
+
i18n: { messages: w }
|
|
109
|
+
}, ce = /* @__PURE__ */ x({
|
|
110
|
+
...de,
|
|
104
111
|
__name: "info-icon-with-popover",
|
|
105
112
|
props: {
|
|
106
113
|
/**
|
|
@@ -113,23 +120,23 @@ const E = {
|
|
|
113
120
|
popoverPosition: {
|
|
114
121
|
type: String,
|
|
115
122
|
default: "bottom-start",
|
|
116
|
-
validator: (o) => Object.values(
|
|
123
|
+
validator: (o) => Object.values(Y).includes(o)
|
|
117
124
|
}
|
|
118
125
|
},
|
|
119
126
|
setup(o) {
|
|
120
|
-
const { t: s } = X({ messages:
|
|
121
|
-
|
|
127
|
+
const { t: s } = X({ messages: w }), r = I(), e = I(null), l = H("bento-info-icon-with-popover"), d = I(), t = I(), f = () => {
|
|
128
|
+
d.value = !0, t.value && clearTimeout(t.value);
|
|
122
129
|
}, i = () => {
|
|
123
|
-
const
|
|
124
|
-
|
|
130
|
+
const a = setTimeout(() => {
|
|
131
|
+
d.value = !1;
|
|
125
132
|
}, 200);
|
|
126
|
-
t.value =
|
|
133
|
+
t.value = a;
|
|
127
134
|
}, u = () => {
|
|
128
135
|
f();
|
|
129
|
-
},
|
|
130
|
-
(!r.value || !(
|
|
136
|
+
}, U = (a) => {
|
|
137
|
+
(!r.value || !(a?.relatedTarget instanceof Element) || !r.value.contains(a.relatedTarget)) && i();
|
|
131
138
|
};
|
|
132
|
-
return (
|
|
139
|
+
return (a, p) => (v(), S("div", {
|
|
133
140
|
ref_key: "infoIconRef",
|
|
134
141
|
ref: r,
|
|
135
142
|
class: "b-info-icon-with-popover",
|
|
@@ -138,19 +145,19 @@ const E = {
|
|
|
138
145
|
onMouseenter: f,
|
|
139
146
|
onMouseleave: i,
|
|
140
147
|
onFocus: u,
|
|
141
|
-
onFocusout:
|
|
148
|
+
onFocusout: U
|
|
142
149
|
}, [
|
|
143
|
-
y(
|
|
150
|
+
y(c(V), {
|
|
144
151
|
ref_key: "targetElement",
|
|
145
152
|
ref: e,
|
|
146
153
|
class: "b-info-icon-with-popover__svg",
|
|
147
|
-
"aria-expanded":
|
|
148
|
-
"aria-describedby":
|
|
149
|
-
"svg-title":
|
|
154
|
+
"aria-expanded": d.value,
|
|
155
|
+
"aria-describedby": c(l),
|
|
156
|
+
"svg-title": c(s)("moreInformation")
|
|
150
157
|
}, null, 8, ["aria-expanded", "aria-describedby", "svg-title"]),
|
|
151
|
-
e.value ? (v(),
|
|
158
|
+
e.value ? (v(), O(c($), {
|
|
152
159
|
key: 0,
|
|
153
|
-
open:
|
|
160
|
+
open: d.value,
|
|
154
161
|
"target-element": e.value,
|
|
155
162
|
position: o.popoverPosition,
|
|
156
163
|
role: "tooltip",
|
|
@@ -158,9 +165,9 @@ const E = {
|
|
|
158
165
|
"disable-focus-trap": ""
|
|
159
166
|
}, {
|
|
160
167
|
default: _(() => [
|
|
161
|
-
y(
|
|
168
|
+
y(c(T), null, {
|
|
162
169
|
default: _(() => [
|
|
163
|
-
|
|
170
|
+
E(a.$slots, "default", {}, () => [
|
|
164
171
|
o.popoverText ? (v(), S("div", le, M(o.popoverText), 1)) : h("", !0)
|
|
165
172
|
], !0)
|
|
166
173
|
]),
|
|
@@ -171,16 +178,23 @@ const E = {
|
|
|
171
178
|
}, 8, ["open", "target-element", "position"])) : h("", !0)
|
|
172
179
|
], 544));
|
|
173
180
|
}
|
|
174
|
-
}),
|
|
181
|
+
}), je = /* @__PURE__ */ N(ce, [["__scopeId", "data-v-7949c381"]]), z = {
|
|
182
|
+
"de-DE": { lastUpdated: "Letzte Aktualisierung: {date}" },
|
|
183
|
+
"en-GB": { lastUpdated: "Last updated: {date}" },
|
|
175
184
|
"en-US": { lastUpdated: "Last updated: {date}" },
|
|
185
|
+
"es-ES": { lastUpdated: "Última actualización: {date}" },
|
|
186
|
+
"es-MX": { lastUpdated: "Última actualización: {date}" },
|
|
187
|
+
"fr-FR": { lastUpdated: "Dernière mise à jour : le {date}" },
|
|
188
|
+
"it-IT": { lastUpdated: "Ultimo aggiornamento: {date}" },
|
|
176
189
|
"ja-JP": { lastUpdated: "最終更新日: {date}" },
|
|
177
|
-
"pt-BR": { lastUpdated: "Última atualização: {date}" }
|
|
190
|
+
"pt-BR": { lastUpdated: "Última atualização: {date}" },
|
|
191
|
+
"zh-CN": { lastUpdated: "最后更新时间:{date}" }
|
|
178
192
|
}, ue = { class: "b-header-meta__container" }, fe = {
|
|
179
193
|
key: 1,
|
|
180
194
|
class: "b-header-meta__timestamp-section"
|
|
181
195
|
}, me = {
|
|
182
|
-
i18n: { messages:
|
|
183
|
-
}, pe = /* @__PURE__ */
|
|
196
|
+
i18n: { messages: z }
|
|
197
|
+
}, pe = /* @__PURE__ */ x({
|
|
184
198
|
...me,
|
|
185
199
|
__name: "header-meta",
|
|
186
200
|
props: {
|
|
@@ -189,45 +203,45 @@ const E = {
|
|
|
189
203
|
reloadButton: { default: null }
|
|
190
204
|
},
|
|
191
205
|
setup(o) {
|
|
192
|
-
const { t:
|
|
193
|
-
() => r.lastUpdated ?
|
|
206
|
+
const { t: n, locale: s } = X({ messages: z }), r = o, e = j(() => r.lastUpdated ? s.value : ""), l = ae(e), d = j(
|
|
207
|
+
() => r.lastUpdated ? n("lastUpdated", {
|
|
194
208
|
date: ie(r.lastUpdated, {
|
|
195
209
|
locale: l.value,
|
|
196
210
|
addSuffix: !0
|
|
197
211
|
})
|
|
198
212
|
}) : null
|
|
199
|
-
), t =
|
|
213
|
+
), t = F(), f = W(t);
|
|
200
214
|
return (i, u) => (v(), S("div", ue, [
|
|
201
|
-
i.description ||
|
|
215
|
+
i.description || c(f)("description") ? (v(), O(c(T), {
|
|
202
216
|
key: 0,
|
|
203
217
|
class: "b-header-meta__description",
|
|
204
218
|
el: "div"
|
|
205
219
|
}, {
|
|
206
220
|
default: _(() => [
|
|
207
|
-
|
|
221
|
+
E(i.$slots, "description", {}, () => [
|
|
208
222
|
B(M(i.description), 1)
|
|
209
223
|
], !0)
|
|
210
224
|
]),
|
|
211
225
|
_: 3
|
|
212
226
|
})) : h("", !0),
|
|
213
227
|
i.lastUpdated ? (v(), S("div", fe, [
|
|
214
|
-
y(
|
|
228
|
+
y(c(T), {
|
|
215
229
|
class: "b-header-meta__timestamp",
|
|
216
230
|
el: "div"
|
|
217
231
|
}, {
|
|
218
232
|
default: _(() => [
|
|
219
|
-
B(M(
|
|
233
|
+
B(M(d.value), 1)
|
|
220
234
|
]),
|
|
221
235
|
_: 1
|
|
222
236
|
}),
|
|
223
|
-
i.reloadButton ? (v(),
|
|
237
|
+
i.reloadButton ? (v(), O(c(A), {
|
|
224
238
|
key: 0,
|
|
225
239
|
variant: "tertiary",
|
|
226
240
|
state: i.reloadButton.state,
|
|
227
241
|
onClick: i.reloadButton.event
|
|
228
242
|
}, {
|
|
229
243
|
iconLeft: _(() => [
|
|
230
|
-
y(
|
|
244
|
+
y(c(oe), { "aria-hidden": "true" })
|
|
231
245
|
]),
|
|
232
246
|
default: _(() => [
|
|
233
247
|
B(M(i.reloadButton.title), 1)
|
|
@@ -237,9 +251,9 @@ const E = {
|
|
|
237
251
|
])) : h("", !0)
|
|
238
252
|
]));
|
|
239
253
|
}
|
|
240
|
-
}),
|
|
254
|
+
}), Pe = /* @__PURE__ */ N(pe, [["__scopeId", "data-v-7ffeebd4"]]);
|
|
241
255
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
256
|
+
Pe as H,
|
|
257
|
+
je as I
|
|
244
258
|
};
|
|
245
|
-
//# sourceMappingURL=header-meta.
|
|
259
|
+
//# sourceMappingURL=header-meta.CmH6SnjE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-meta.Bym9AlQm.js","sources":["../../../vue2/src/composables/use-dynamic-date-fns-locale/use-dynamic-date-fns-locale.ts","../../../../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/info-icon-with-popover/info-icon-with-popover.vue","../../../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\n/*\n * IMPORTANT: Keep this list in sync with the locales in locales.ts\n */\nconst dateFnsLocales = import.meta.glob(\n '../../../node_modules/date-fns/locale/{de,en-GB,en-US,es,fr,it,ja,pt-BR,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","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\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","<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","n","useDynamicDateFnsLocale","i18nLocale","dateLocale","shallowRef","watch","newLocale","getPath","loc","path","dateFnsImport","error","printDevelopmentWarning","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__$1","messages$1","t","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","infoIconOnFocus","infoIconOnFocusOut","e","__default__","messages","props","__props","activeLocale","computed","timestamp","slots","useSlots","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;;;;;;AAOA,MAAAA,IAAA,uBAAA,OAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA,EA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AA;AAAA,MAAe,GAAA,GAAA;AAEnB,MAAAC,EAAA,QAAAG;AAAA,IAAyB,GAG7BC,IAAA,MAAA;AACI,MAAAH,EAAA;AAAA,IAAY,GAOhBI,IAAA,CAAAC,MAAA;AACI,OAAA,CAAAZ,EAAA,SAAA,EAAAY,GAAA,yBAAA,YAAA,CAAAZ,EAAA,MAAA,SAAAY,EAAA,aAAA,MAKIJ,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GC5BJK,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;AA9CA,UAAA,EAAA,GAAAhB,GAAA,QAAA3B,EAAA,IAAA4B,EAAA,EAAA,UAAAe,EAAA,CAAA,GAEAC,IAAAC,GAMAC,IAAAC,EAAA,MAAAH,EAAA,cAAA5C,EAAA,QAAA,EAAA,GACArB,IAAAF,GAAAqE,CAAA,GAEAE,IAAAD;AAAA,MAAkB,MAAAH,EAAA,cAAAjB,EAAA,eAAA;AAAA,QAES,MAAAL,GAAAsB,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":[1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"header-meta.CmH6SnjE.js","sources":["../../../vue2/src/composables/use-dynamic-date-fns-locale/use-dynamic-date-fns-locale.ts","../../../../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/info-icon-with-popover/info-icon-with-popover.vue","../../../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\n/*\n * IMPORTANT: Keep this list in sync with the locales in locales.ts\n */\nconst dateFnsLocales = import.meta.glob(\n '../../../node_modules/date-fns/locale/{de,en-GB,en-US,es,fr,it,ja,pt-BR,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","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\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","<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","n","useDynamicDateFnsLocale","i18nLocale","dateLocale","shallowRef","watch","newLocale","getPath","loc","path","dateFnsImport","error","printDevelopmentWarning","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__$1","messages$1","t","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","infoIconOnFocus","infoIconOnFocusOut","e","__default__","messages","props","__props","activeLocale","computed","timestamp","slots","useSlots","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;;;;;;AAOA,MAAAA,IAAA,uBAAA,OAAA;AAAA,EAAA,+CAAA,MAAA,OAAA,kBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,qBAAA;AAAA,EAAA,kDAAA,MAAA,OAAA,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