The pictures are too blurry to really help. It does appear that it was a prolapse. If it stays in, then it may never happen again. It could have been a larger than usual egg, rough, or something else that made it harder for her to pass. Some birds will prolapse once and never again, some birds will do it repeatedly. I would keep an eye on her, make sure she lays normally and has no difficulties going forward. If it happens again, it's important that you keep that prolapsed tissue moist so that it does not dry out, until you can get it to stay in. If it dries out, it will become necrotic and that will be bad news for the bird. I will attach a link with more info on prolapse, and how to treat. Sometimes, it can take time to get a prolapse to stay in, sometimes days, and repeatedly putting it back in and holding it. It will often come back out every time the bird strains, either to poop or because the swelling makes them feel like they need to pass something. If a bird prolapses and it's not seen quickly then sometimes other birds will peck at it and cause a lot of damage, and that may not be recoverable from, so separating them from the flock until it's resolved is necessary.
When treating a prolapse I most commonly use hydrocortisone ointment and honey. The honey does a very good job of keeping it moist, and also helps with the swelling. I put them in a wire crate lined with puppy pads or clean bath towels in a warm, dark place (the darkness will help stop them laying for a while) so I can monitor and treat, reapply ointments, replace the prolapse as needed, and keep them clean.
https://the-chicken-chick.com/prolapse-vent-causes-treatment-graphic/
When treating a prolapse I most commonly use hydrocortisone ointment and honey. The honey does a very good job of keeping it moist, and also helps with the swelling. I put them in a wire crate lined with puppy pads or clean bath towels in a warm, dark place (the darkness will help stop them laying for a while) so I can monitor and treat, reapply ointments, replace the prolapse as needed, and keep them clean.
https://the-chicken-chick.com/prolapse-vent-causes-treatment-graphic/