app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks

You can find a full list of flatpickr events and hooks in their documentation.

Use window.addEventListener("DOMContentLoaded", () => {}), not document.addEventListener("DOMContentLoaded", () => {}).