def find_first_text(blocks, default=""):
    """
    Find text of first text block in an iterable of blocks.
    Returns that text, or default, if there are no text blocks.
    """
    for block in blocks:
        if block.type == "text":
            return block.value
    return default