{
    "version": 1,
    "rules": [
        {
            "regexp": "^(Address|Review|Amount|Fee|Fees|Confirm|The derivation|Derivation path|Reject if you're|The change path|Change path|external inputs|Register wallet|Policy map|Key|Path|Public key|Spend from|Wallet name|Wallet policy).*",
            "actions": [
                [ "button", 2, true ],
                [ "button", 2, false ]
            ]
        },
        {
            "regexp": "Asset name|Asset domain|The asset|Asset tag|Reissuance",
            "actions": [
                ["button", 2, true],
                ["button", 2, false]
            ]
        },
        {
            "regexp": "^(Accept|Approve|Continue|Sign).*",
            "actions": [
                [ "button", 1, true ],
                [ "button", 2, true ],
                [ "button", 1, false ],
                [ "button", 2, false ]
            ]
        },
        {
            "regexp": "^Message hash.*",
            "actions": [
                [ "button", 2, true ],
                [ "button", 2, false ],
                [ "setbool", "seen_msg_hash", true ]
            ]
        },
        {
            "regexp": "^Message content.*",
            "actions": [
                [ "button", 2, true ],
                [ "button", 2, false ],
                [ "setbool", "seen_msg_hash", true ]
            ]
        },
        {
            "text": "message",
            "conditions": [
                [ "seen_msg_hash", false ]
            ],
            "actions": [
                [ "button", 2, true ],
                [ "button", 2, false ],
                [ "setbool", "seen_msg_hash", true ]
            ]
        },
        {
            "text": "message",
            "conditions": [
                [ "seen_msg_hash", true ]
            ],
            "actions": [
                [ "button", 1, true ],
                [ "button", 2, true ],
                [ "button", 1, false ],
                [ "button", 2, false ],
                [ "setbool", "seen_msg_hash", false ]
            ]
        },
        {
            "regexp": "^(Cancel|Reject).*",
            "actions": [
                [ "button", 1, true ],
                [ "button", 1, false ]
            ]
        }
    ]
}
