How do you fix broken spring hinges on frames

I work in an optical field I have patients that bring in frames that have broken spring hinge temples for repair and I’m not talking about the screw just being out. I’m talking about complete disassembly where the spring mechanism is detached from its housing

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0