{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "Container",
                    "items": [
                        {
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "stretch",
                                    "items": [
                                        {
                                            "type": "Input.Text",
                                            "placeholder": "${CountdownNamePlaceholder}",
                                            "id": "CountdownName",
                                            "height": "stretch",
                                            "isRequired": true,
                                            "errorMessage": "${CountdownNameEmptyErrorMessage}",
                                            "label": "${AddCountdownTitle}"
                                        }
                                    ]
                                },
                                {
                                    "type": "Column",
                                    "items": [
                                        {
                                            "type": "Image",
                                            "url": "${if($host.hostTheme == \"light\" || $host.hostTheme == \"highcontrastlight\", $root.MoreButtonLight, $root.MoreButtonDark)}",
                                            "width": "18px",
                                            "size": "small",
                                            "horizontalAlignment": "right",
                                            "$when": "${CloseButtonVisibility}",
                                            "selectAction": {
                                                "type": "Action.Execute",
                                                "verb": "TEMPEXITCUST",
                                                "associatedInputs": "None",
                                                "tooltip": "${$root.CloseTooltipMessage}"
                                            }
                                        }
                                    ],
                                    "width": "30px"
                                }
                            ],
                            "minHeight": "30px",
                            "spacing": "None"
                        },
                        {
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "stretch",
                                    "items": [
                                        {
                                            "type": "Input.Date",
                                            "id": "CountdownDate",
                                            "height": "stretch",
                                            "isRequired": true,
                                            "errorMessage": "${CountdownDateEmptyErrorMessage}",
                                            "placeholder": "${CountdownDatePickerPlaceholder}",
                                            "label": "${CountdownDatePickerLabel}"
                                        }
                                    ],
                                    "spacing": "None"
                                },
                                {
                                    "type": "Column",
                                    "width": "30px",
                                    "verticalContentAlignment": "center",
                                    "items": [
                                        {
                                            "type": "Container",
                                            "minHeight": "5px"
                                        },
                                        {
                                            "type": "Image",
                                            "url": "${if($host.hostTheme == \"light\" || $host.hostTheme == \"highcontrastlight\", $root.AddButtonLight, $root.AddButtonDark)}",
                                            "size": "small",
                                            "selectAction": {
                                                "type": "Action.Execute",
                                                "verb": "AddCountdown",
                                                "tooltip": "${CountdownAddTooltipMessage}",
                                                "associatedInputs": "Auto"
                                            }
                                        }
                                    ]
                                }
                            ],
                            "spacing": "small"
                        }
                    ],
                    "spacing": "Small"
                }
            ]
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "${YourCountdownsTitle}",
                    "spacing": "Small",
                    "weight": "Bolder",
                    "$when": "${Countdowns != []}"
                },
                {
                    "type": "Container",
                    "items": [
                        {
                            "$data": "${Countdowns}",
                            "type": "ColumnSet",
                            "columns": [
                                {
                                    "type": "Column",
                                    "width": "120px",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "${CountdownName}"
                                        }
                                    ],
                                    "verticalContentAlignment": "Center"
                                },
                                {
                                    "type": "Column",
                                    "width": "80px",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "${RemainingDays}",
                                            "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": "DeleteCountdown",
                                                "data": {
                                                    "Delete": "${$index}"
                                                },
                                                "tooltip": "${$root.RemoveTooltipMessagePrefix} ${CountdownName}",
                                                "associatedInputs": "None"
                                            }
                                        }
                                    ],
                                    "width": "stretch"
                                }
                            ],
                            "spacing": "None",
                            "separator": true
                        }
                    ],
                    "minHeight": "40px",
                    "spacing": "None"
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.6"
}
