Appointments+ button not working. JavaScript error

When I click the appointment button it does nothing and I can see an error in the console:
https://cl.ly/3J2g3p2n2l0b
https://cl.ly/2s2i3s172b13

I tried deactivating all plugins and switching to 2017 theme, but same issue with ajax.