{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "Container",
                    "items": [
                        {
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "${AddTimerTitle}",
                                            "spacing": "Small",
                                            "weight": "Bolder"
                                        }
                                    ],
                                    "width": "stretch"
                                },
                                {
                                    "type": "Column",
                                    "items": [
                                        {
                                            "type": "Image",
                                            "url": "${if($host.hostTheme == \"light\" || $host.hostTheme == \"highcontrastlight\", $root.MoreButtonLight, $root.MoreButtonDark)}",
                                            "width": "18px",
                                            "size": "small",
                                            "selectAction": {
                                                "type": "Action.Execute",
                                                "verb": "TEMPEXITCUST",
                                                "associatedInputs": "None",
                                                "tooltip": "${$root.CloseTooltipMessage}"
                                            },
                                            "$when": "${CloseButtonVisibility}"
                                        }
                                    ],
                                    "width": "18px"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Container",
                    "items": [
                        {
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "stretch",
                                    "items": [
                                        {
                                            "type": "Input.Text",
                                            "placeholder": "${TimerNamePlaceholder}",
                                            "id": "TimerName",
                                            "height": "stretch",
                                            "isRequired": true,
                                            "errorMessage": "${TimerNameEmptyErrorMessage}"
                                        }
                                    ]
                                }
                            ],
                            "minHeight": "30px",
                            "spacing": "None"
                        },
                        {
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "76px",
                                    "items": [
                                        {
                                            "type": "Input.Number",
                                            "id": "TimerHour",
                                            "height": "stretch",
                                            "placeholder": "Hours",
                                            "min": 0,
                                            "max": 23,
                                            "value": 0
                                        }
                                    ],
                                    "spacing": "None"
                                },
                                {
                                    "type": "Column",
                                    "width": "8px",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": ":"
                                        }
                                    ],
                                    "spacing": "None",
                                    "verticalContentAlignment": "Center"
                                },
                                {
                                    "type": "Column",
                                    "width": "70px",
                                    "items": [
                                        {
                                            "type": "Input.Number",
                                            "id": "TimerMinute",
                                            "height": "stretch",
                                            "placeholder": "Mins",
                                            "min": 0,
                                            "max": 59,
                                            "value": 0
                                        }
                                    ],
                                    "spacing": "None"
                                },
                                {
                                    "type": "Column",
                                    "width": "8px",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": ":"
                                        }
                                    ],
                                    "spacing": "None",
                                    "verticalContentAlignment": "Center"
                                },
                                {
                                    "type": "Column",
                                    "width": "70px",
                                    "items": [
                                        {
                                            "type": "Input.Number",
                                            "id": "TimerSecond",
                                            "height": "stretch",
                                            "placeholder": "Secs",
                                            "min": 0,
                                            "max": 59,
                                            "value": 0
                                        }
                                    ],
                                    "spacing": "None"
                                },
                                {
                                    "type": "Column",
                                    "width": "30px",
                                    "items": [
                                        {
                                            "type": "Image",
                                            "url": "${if($host.hostTheme == \"light\" || $host.hostTheme == \"highcontrastlight\", $root.AddButtonLight, $root.AddButtonDark)}",
                                            "size":  "small",
                                            "selectAction": {
                                                "type": "Action.Execute",
                                                "verb": "AddTimer",
                                                "tooltip": "${TimerAddTooltipMessage}",
                                                "associatedInputs": "Auto"
                                            }
                                        }
                                    ],
                                    "spacing": "Small",
                                    "horizontalAlignment": "Left"
                                }
                            ],
                            "spacing": "Small",
                            "horizontalAlignment": "Center"
                        }
                    ],
                    "spacing": "Small"
                }
            ]
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "${YourTimersTitle}",
                    "spacing": "Small",
                    "weight": "Bolder",
                    "$when": "${Timers != []}"
                },
                {
                    "type": "Container",
                    "items": [
                        {
                            "$data": "${Timers}",
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "120px",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "${TimerName}"
                                        }
                                    ],
                                    "verticalContentAlignment": "Center"
                                },
                                {
                                    "type": "Column",
                                    "width": "80px",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "${Time}",
                                            "horizontalAlignment": "Right"
                                        }
                                    ],
                                    "verticalContentAlignment": "Center"
                                },
                                {
                                    "type": "Column",
                                    "items": [
                                        {
                                            "type": "Image",
                                            "url": "${if($host.hostTheme == \"light\" || $host.hostTheme == \"highcontrastlight\", $root.DeleteButtonLight, $root.DeleteButtonDark)}",
                                            "size": "small",
                                            "selectAction": {
                                                "type": "Action.Execute",
                                                "verb": "DeleteTimer",
                                                "data": {
                                                    "Delete": "${$index}"
                                                },
                                                "tooltip": "${$root.RemoveTooltipMessagePrefix} ${TimerName}",
                                                "associatedInputs": "None"
                                            }
                                        }
                                    ],
                                    "width": "stretch"
                                }
                            ],
                            "spacing": "None",
                            "separator": true
                        }
                    ],
                    "minHeight": "40px",
                    "spacing": "None"
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.6"
}
