Here is my suggestion of what you can do.
Go to good old eBay and purchase a kit that looks like this:
![enter image description here](https://i.stack.imgur.com/9NlzM.jpg)
You can find these for very reasonable prices using a search string like "wireless remote control".
The fob is battery operated and activates a relay on the receiver board when the buttons are pressed. The particular model shown comes with a nice looking wall mountable plastic enclosure to cover the circuit board. (Do not mount the plastic box outside however).
Connecting into the existing doorbell is simple. Just access the wire pair between the door bell and the push button and splice in a new pair that will connect to the relay of the receiver box at the NO (normally open) and COM (common) contact points. This connection will allow the activated relay to act as a parallel button with the existing button with no modifications to the existing button.
The relay receiver box requires a 12VDC source to operate. This can be supplied from a surplus AC wall adapter that you could also purchase on eBay or visit your local GoodWill store where you can find a huge assortment of adapters. If you chose to mount the receiver in an attic or crawl space you could find an electrical junction box and mount an outlet cover plate on it to get a convenient place to plug in your 12V adapter.
You could mount the dongle out on the gate directly (the dongles I've used had a sealed inner liner inside the case that keeps moisture out of the inside electronics). What may be preferable is to modify the dongle with a wire pair soldered across one of the button contacts and then run those wires over to a more conventional style of doorbell button that you would mount on the gate. The hacked dongle could then be enclosed in a plastic hobby box that is sealed and then mounted to the exterior in an unobtrusive area while at the same time the plastic box letting the wireless RF signal come through the box and make its way to the relay receiver board. You will occasionally have to replace the dongle battery but they seem to last a year or more with moderate use.
I've used almost identical kits to replace my very old non-functional garage door openers with the relay module wired across the manual open/close buttons that are inside the garage. The dongle is then easily carried around or kept in the automobile.
The bare grounds are buried in the bottom of the box there
Since these are NM-type cables we're dealing with here, the ground wires in the box will be bare wires, and lo and behold, there's a whole bundle of them improperly spliced together in the bottom of the box. Take a suitably sized wirenut and nut the green wire on your transformer to that bundle of bare wires (this will also properly splice the bare grounds to each other).
As to the hots and neutrals
The black wires in this box are all hot, and the white wires are all neutral (otherwise, there'd be a white spliced to something that isn't white, that's a clue that shenanigans are afoot). So, in this case, it's black nutted to black, white nutted with whites (and you may wish to replace the splice of the existing neutrals with a proper one while you're at it), and grounds as above.
Best Answer
It's low-voltage. The wires you can see would never be rated for mains voltage. I doubt that anyone, anywhere has ever made a doorbell that runs directly on mains voltage. It would be far too dangerous.
The bell itself doesn't care about AC vs DC, so probably AC for simplicity.
As far as replacement, either get another one just like it, or build a small circuit that rectifies/filters the AC and apply the resulting DC to any electronic beeper or sound generator you like.