<!--
    Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
    the MIT License. See LICENSE in the project root for license information.
-->
<Page x:Class="Microsoft.Terminal.Settings.Editor.Profiles_Terminal"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="using:Microsoft.Terminal.Settings.Editor"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:model="using:Microsoft.Terminal.Settings.Model"
      xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
      mc:Ignorable="d">

    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="CommonResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock x:Uid="Profile_BaseLayerDisclaimer"
                   Style="{StaticResource DisclaimerStyle}"
                   Visibility="{x:Bind Profile.IsBaseLayer}" />
        <StackPanel Grid.Row="1"
                    Style="{StaticResource SettingsStackStyle}">

            <!--  Suppress Application Title  -->
            <local:SettingContainer x:Name="SuppressApplicationTitle"
                                    x:Uid="Profile_SuppressApplicationTitle"
                                    ClearSettingValue="{x:Bind Profile.ClearSuppressApplicationTitle}"
                                    HasSettingValue="{x:Bind Profile.HasSuppressApplicationTitle, Mode=OneWay}"
                                    SettingOverrideSource="{x:Bind Profile.SuppressApplicationTitleOverrideSource, Mode=OneWay}">
                <ToggleSwitch IsOn="{x:Bind Profile.SuppressApplicationTitle, Mode=TwoWay}"
                              Style="{StaticResource ToggleSwitchInExpanderStyle}" />
            </local:SettingContainer>

            <!--  Force VT Input  -->
            <local:SettingContainer x:Name="ForceVTInput"
                                    x:Uid="Profile_ForceVTInput"
                                    ClearSettingValue="{x:Bind Profile.ClearForceVTInput}"
                                    HasSettingValue="{x:Bind Profile.HasForceVTInput, Mode=OneWay}"
                                    SettingOverrideSource="{x:Bind Profile.ForceVTInputOverrideSource, Mode=OneWay}">
                <ToggleSwitch IsOn="{x:Bind Profile.ForceVTInput, Mode=TwoWay}"
                              Style="{StaticResource ToggleSwitchInExpanderStyle}" />
            </local:SettingContainer>

            <!--  Kitty Keyboard Mode  -->
            <local:SettingContainer x:Name="AllowKittyKeyboardMode"
                                    x:Uid="Profile_AllowKittyKeyboardMode"
                                    ClearSettingValue="{x:Bind Profile.ClearAllowKittyKeyboardMode}"
                                    HasSettingValue="{x:Bind Profile.HasAllowKittyKeyboardMode, Mode=OneWay}"
                                    SettingOverrideSource="{x:Bind Profile.AllowKittyKeyboardModeOverrideSource, Mode=OneWay}">
                <ToggleSwitch IsOn="{x:Bind Profile.AllowKittyKeyboardMode, Mode=TwoWay}"
                              Style="{StaticResource ToggleSwitchInExpanderStyle}" />
            </local:SettingContainer>

            <!--  Allow VT Checksum Report  -->
            <local:SettingContainer x:Name="AllowVtChecksumReport"
                                    x:Uid="Profile_AllowVtChecksumReport"
                                    ClearSettingValue="{x:Bind Profile.ClearAllowVtChecksumReport}"
                                    HasSettingValue="{x:Bind Profile.HasAllowVtChecksumReport, Mode=OneWay}"
                                    SettingOverrideSource="{x:Bind Profile.AllowVtChecksumReportOverrideSource, Mode=OneWay}">
                <ToggleSwitch IsOn="{x:Bind Profile.AllowVtChecksumReport, Mode=TwoWay}"
                              Style="{StaticResource ToggleSwitchInExpanderStyle}" />
            </local:SettingContainer>

            <!--  Allow VT Clipboard Writing  -->
            <local:SettingContainer x:Name="AllowVtClipboardWrite"
                                    x:Uid="Profile_AllowVtClipboardWrite"
                                    ClearSettingValue="{x:Bind Profile.ClearAllowVtClipboardWrite}"
                                    HasSettingValue="{x:Bind Profile.HasAllowVtClipboardWrite, Mode=OneWay}"
                                    SettingOverrideSource="{x:Bind Profile.AllowVtClipboardWriteOverrideSource, Mode=OneWay}">
                <ToggleSwitch IsOn="{x:Bind Profile.AllowVtClipboardWrite, Mode=TwoWay}"
                              Style="{StaticResource ToggleSwitchInExpanderStyle}" />
            </local:SettingContainer>

            <!--  Answerback Message  -->
            <local:SettingContainer x:Name="AnswerbackMessage"
                                    x:Uid="Profile_AnswerbackMessage"
                                    ClearSettingValue="{x:Bind Profile.ClearAnswerbackMessage}"
                                    CurrentValue="{x:Bind Profile.AnswerbackMessagePreview, Mode=OneWay}"
                                    HasSettingValue="{x:Bind Profile.HasAnswerbackMessage, Mode=OneWay}"
                                    SettingOverrideSource="{x:Bind Profile.AnswerbackMessageOverrideSource, Mode=OneWay}"
                                    Style="{StaticResource ExpanderSettingContainerStyle}">
                <TextBox Style="{StaticResource TextBoxSettingStyle}"
                         Text="{x:Bind Profile.AnswerbackMessage, Mode=TwoWay}" />
            </local:SettingContainer>
        </StackPanel>
    </Grid>
</Page>
