{
    "i18n": true,
    "type": "panel",
    "label": "Notifications",
    "items": {
        "_checkConfig": {
            // this component is not visible in the UI
            // it checks the configuration
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/CheckAllConfigInvisible"
        },
        "_header": {
            "type": "header",
            "size": 2,
            "text": "Notifications",
            "sm": 12,
        },
        "notificationsType": {
            "type": "select",
            "label": "Notifications type",
            "xs": 12,
            "sm": 12,
            "md": 8,
            "lg": 4,
            "noTranslations": true,
            "options": [
                {
                    "label": "E-Mail",
                    "value": "E-Mail"
                },
                {
                    "label": "Discord",
                    "value": "Discord"
                },
                {
                    "label": "Gotify",
                    "value": "Gotify"
                },
                {
                    "label": "Matrix",
                    "value": "Matrix"
                },
                {
                    "label": "Pushover",
                    "value": "Pushover"
                },
                {
                    "label": "Signal",
                    "value": "Signal"
                },
                {
                    "label": "Telegram",
                    "value": "Telegram"
                },
                {
                    "label": "WhatsApp",
                    "value": "WhatsApp"
                }
            ],
            "newLine": true
        },
        "_helpLine1": {
            "newLine": true,
            "type": "divider",
            "color": "primary"
        },
        "telegramInstance": {
            "hidden": "data.notificationsType !== 'Telegram'",
            "xs": 12,
            "sm": 12,
            "md": 8,
            "lg": 8,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "telegram",
            "label": "Telegram instance",
            "newLine": true
        },
        "telegramNoticeType": {
            "hidden": "data.notificationsType !== 'Telegram'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longTelegramNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortTelegramNotice"
                }
            ],
            "newLine": true
        },
        "telegramWaitToSend": {
            "hidden": "data.notificationsType !== 'Telegram'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds"
        },
        "telegramSilentNotice": {
            "hidden": "data.notificationsType !== 'Telegram'",
            "newLine": true,
            "type": "checkbox",
            "label": "Silent notice",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4
        },
        "telegramOnlyError": {
            "hidden": "data.notificationsType !== 'Telegram'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4
        },
        "whatsappInstance": {
            "hidden": "data.notificationsType !== 'WhatsApp'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "whatsapp-cmb",
            "label": "WhatsApp instance",
            "newLine": true
        },
        "whatsappNoticeType": {
            "hidden": "data.notificationsType !== 'WhatsApp'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longWhatsappNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortWhatsappNotice"
                }
            ],
        },
        "whatsappWaitToSend": {
            "hidden": "data.notificationsType !== 'WhatsApp'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds",
            "newLine": true
        },
        "whatsappOnlyError": {
            "hidden": "data.notificationsType !== 'WhatsApp'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "gotifyInstance": {
            "hidden": "data.notificationsType !== 'Gotify'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "gotify",
            "label": "Gotify instance",
            "newLine": true
        },
        "gotifyNoticeType": {
            "hidden": "data.notificationsType !== 'Gotify'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "help": "Notification style",
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longGotifyNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortGotifyNotice"
                }
            ],
        },
        "gotifyWaitToSend": {
            "hidden": "data.notificationsType !== 'Gotify'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds",
            "newLine": true
        },
        "gotifyOnlyError": {
            "hidden": "data.notificationsType !== 'Gotify'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "signalInstance": {
            "hidden": "data.notificationsType !== 'Signal'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "signal-cmb",
            "label": "Signal instance",
            "newLine": true
        },
        "signalNoticeType": {
            "hidden": "data.notificationsType !== 'Signal'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "help": "Notification style",
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longSignalNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortSignalNotice"
                }
            ],
        },
        "signalWaitToSend": {
            "hidden": "data.notificationsType !== 'Signal'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds",
            "newLine": true
        },
        "signalOnlyError": {
            "hidden": "data.notificationsType !== 'Signal'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "matrixInstance": {
            "hidden": "data.notificationsType !== 'Matrix'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "matrix-org",
            "label": "Matrix instance",
            "newLine": true
        },
        "matrixNoticeType": {
            "hidden": "data.notificationsType !== 'Matrix'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "help": "Notification style",
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longMatrixNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortMatrixNotice"
                }
            ],
        },
        "matrixWaitToSend": {
            "hidden": "data.notificationsType !== 'Matrix'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds",
            "newLine": true
        },
        "matrixOnlyError": {
            "hidden": "data.notificationsType !== 'Matrix'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "pushoverInstance": {
            "hidden": "data.notificationsType !== 'Pushover'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "pushover",
            "label": "Pushover instance",
            "newLine": true
        },
        "pushoverNoticeType": {
            "hidden": "data.notificationsType !== 'Pushover'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "help": "Notification style",
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longPushoverNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortPushoverNotice"
                }
            ],
        },
        "pushoverWaitToSend": {
            "hidden": "data.notificationsType !== 'Pushover'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds",
            "newLine": true
        },
        "pushoverDeviceID": {
            "hidden": "data.notificationsType !== 'Pushover'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Device ID",
            "help": "optional"
        },
        "pushoverSilentNotice": {
            "hidden": "data.notificationsType !== 'Pushover'",
            "type": "checkbox",
            "label": "Silent notice",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "pushoverOnlyError": {
            "hidden": "data.notificationsType !== 'Pushover'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
        },
        "emailReceiver": {
            "hidden": "data.notificationsType !== 'E-Mail'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Email receiver",
            "newLine": true
        },
        "emailSender": {
            "hidden": "data.notificationsType !== 'E-Mail'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Email sender",
        },
        "emailInstance": {
            "hidden": "data.notificationsType !== 'E-Mail'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "email",
            "label": "Email instance",
            "newLine": true
        },
        "emailNoticeType": {
            "hidden": "data.notificationsType !== 'E-Mail'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longEmailNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortEmailNotice"
                }
            ],
        },
        "emailWaitToSend": {
            "hidden": "data.notificationsType !== 'E-Mail'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds",
            "newLine": true
        },
        "emailOnlyError": {
            "hidden": "data.notificationsType !== 'E-Mail'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "discordInstance": {
            "hidden": "data.notificationsType !== 'Discord'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/Instance",
            "adapter": "discord",
            "label": "Discord instance",
            "newLine": true
        },
        "discordNoticeType": {
            "hidden": "data.notificationsType !== 'Discord'",
            "type": "select",
            "label": "Notification style",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "help": "Notification style",
            "options": [
                {
                    "label": "Long notifications",
                    "value": "longDiscordNotice"
                },
                {
                    "label": "Short notifications",
                    "value": "shortDiscordNotice"
                }
            ],
        },
        "discordWaitToSend": {
            "hidden": "data.notificationsType !== 'Discord'",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 0,
            "max": 20,
            "type": "number",
            "label": "Waiting for the send (seconds)",
            "help": "seconds",
            "newLine": true
        },
        "discordOnlyError": {
            "hidden": "data.notificationsType !== 'Discord'",
            "type": "checkbox",
            "label": "Notification only on errors",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
    }
}
