Resistor Parallel to AC Live & Neutral
Component in white package is an X-capacitor for EMI suppression or C1 in the schematic above. This has the inadvertent effect of keeping your plug at voltage even after you unplug it, which will cause an electric shock if you touch it. To counter this, you are required to bring the voltage down below acceptable levels (40 V last time I checked in Europe) within a certain amount of time, normally one second. This is the reason for the resistor R1. They are often referred to as X-cap discharge resistors.

The two blue capacitor you see soldered between ground and L and N are the Y-capacitors C2 in the schematic.