The firm under regret aversion