This is an example of bargaining. Bargaining, during the death and dying, occurs when a deathly sick person wants to do one more thing before they die. They feel as if they want to accomplish something before they pass. For example, if a child has cancer and would want to see Lebron James before they die, that would be bargaining.
I’m pretty sure it’s the second one
Social environment, her friends helped her stick to it