I divided the selector into two parts: the left part is the type (last week, month, custom), and the right part is the range.