<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:linker="clr-namespace:NebulaAuth.ViewModel.Linker"
                    xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes">


    <DataTemplate DataType="{x:Type linker:LinkAccountAuthStepVM}">
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <materialDesign:PackIcon Kind="Login" VerticalAlignment="Center" />
                <TextBlock Margin="5,0,0,0" Text="{Tr LinkerDialog.Authorization}" />
            </StackPanel>
            <TextBox
                TabIndex="0"
                Padding="8"
                FontSize="14"
                Style="{StaticResource MaterialDesignOutlinedTextBox}"
                Text="{Binding Login, UpdateSourceTrigger=PropertyChanged}"
                materialDesign:HintAssist.Hint="{Tr LinkerDialog.Login}"
                materialDesign:HintAssist.IsFloating="False"
                materialDesign:TextFieldAssist.LeadingIcon="User"
                materialDesign:TextFieldAssist.HasLeadingIcon="True"
                Margin="0,10,0,0" />
            <TextBox
                Padding="8"
                TabIndex="1"
                FontSize="14"
                Style="{StaticResource MaterialDesignOutlinedTextBox}"
                Text="{Binding Password, UpdateSourceTrigger=PropertyChanged}"
                materialDesign:HintAssist.Hint="{Tr LinkerDialog.Password}"
                materialDesign:HintAssist.IsFloating="False"
                materialDesign:TextFieldAssist.LeadingIcon="Key"
                materialDesign:TextFieldAssist.HasLeadingIcon="True"
                Margin="0,10,0,0" />

            <ComboBox Padding="8" FontSize="14" Style="{StaticResource  MaterialDesignOutlinedComboBox}"
                      SelectedValue="{Binding SelectedProxy}" ItemsSource="{Binding Proxies}"
                      materialDesign:HintAssist.Hint="{Tr LinkerDialog.Proxy}"
                      materialDesign:TextFieldAssist.HasClearButton="True"
                      Margin="0,10,0,0">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock>
                            <Run Text="{Binding Key, Mode=OneWay}" /><Run Text=":" />
                            <Run Text="{Binding Value.Address, Mode=OneWay}" />
                        </TextBlock>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Command="{Binding NextCommand}"
                        Margin="0,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.ProceedButton}" />
            </StackPanel>
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type linker:LinkAccountEmailAuthStepVM}">
        <StackPanel Orientation="Vertical">
            <TextBox
                Padding="8"
                FontSize="14"
                Style="{StaticResource MaterialDesignOutlinedTextBox}"
                Text="{Binding EmailCode, UpdateSourceTrigger=PropertyChanged}"
                materialDesign:HintAssist.Hint="{Tr LinkerDialog.Code}"
                materialDesign:HintAssist.IsFloating="False"
                materialDesign:TextFieldAssist.LeadingIcon="TwoFactorAuthentication"
                materialDesign:TextFieldAssist.HasLeadingIcon="True"
                Margin="0,10,0,0" />

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Command="{Binding CancelCommand}"
                        Margin="0,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.CancelButton}" />
                <Button Command="{Binding NextCommand}"
                        Margin="10,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.ProceedButton}" />
            </StackPanel>
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type linker:LinkAccountPhoneStepVM}">
        <StackPanel Orientation="Vertical">
            <TextBox
                Padding="8"
                FontSize="14"
                Style="{StaticResource MaterialDesignOutlinedTextBox}"
                Text="{Binding PhoneNumber, UpdateSourceTrigger=PropertyChanged}"
                materialDesign:HintAssist.Hint="{Tr LinkerDialog.PhoneNumber}"
                materialDesign:HintAssist.IsFloating="False"
                materialDesign:TextFieldAssist.LeadingIcon="Phone"
                materialDesign:TextFieldAssist.HasLeadingIcon="True"
                Margin="0,10,0,0" />

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Command="{Binding CancelCommand}"
                        Margin="0,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.CancelButton}" />
                <Button Command="{Binding NextCommand}"
                        Margin="10,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.ProceedButton}" />
            </StackPanel>
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type linker:LinkAccountConfirmEmailStepVM}">
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Command="{Binding CancelCommand}"
                    Margin="0,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                    Content="{Tr LinkerDialog.CancelButton}" />
            <Button Command="{Binding NextCommand}"
                    Margin="10,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                    Content="{Tr LinkerDialog.ProceedButton}" />
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type linker:LinkAccountSmsStepVM}">
        <StackPanel Orientation="Vertical">
            <TextBox
                Padding="8"
                FontSize="14"
                Style="{StaticResource MaterialDesignOutlinedTextBox}"
                Text="{Binding SmsCode, UpdateSourceTrigger=PropertyChanged}"
                materialDesign:HintAssist.Hint="{Tr LinkerDialog.SmsCode}"
                materialDesign:HintAssist.IsFloating="False"
                materialDesign:TextFieldAssist.LeadingIcon="Sms"
                materialDesign:TextFieldAssist.HasLeadingIcon="True"
                Margin="0,10,0,0" />

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Command="{Binding CancelCommand}"
                        Margin="0,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.CancelButton}" />
                <Button Command="{Binding NextCommand}"
                        Margin="10,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.ProceedButton}" />
            </StackPanel>
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type linker:LinkAccountEmailCodeStepVM}">
        <StackPanel Orientation="Vertical">
            <TextBox
                Padding="8"
                FontSize="14"
                Style="{StaticResource MaterialDesignOutlinedTextBox}"
                Text="{Binding EmailCode, UpdateSourceTrigger=PropertyChanged}"
                materialDesign:HintAssist.Hint="{Tr LinkerDialog.EmailCode}"
                materialDesign:HintAssist.IsFloating="False"
                materialDesign:TextFieldAssist.LeadingIcon="Mailbox"
                materialDesign:TextFieldAssist.HasLeadingIcon="True"
                Margin="0,10,0,0" />

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Command="{Binding CancelCommand}"
                        Margin="0,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.CancelButton}" />
                <Button Command="{Binding NextCommand}"
                        Margin="10,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.ProceedButton}" />
            </StackPanel>
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type linker:LinkAccountDoneStepVM}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />

            </Grid.RowDefinitions>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <materialDesign:PackIcon VerticalAlignment="Center" FontSize="32" Kind="Done" />
                <TextBlock Margin="4,0,0,0" Text="{Tr LinkerDialog.MafileLinked}" />
            </StackPanel>
            <Border
                Grid.Row="1" Margin="10,10,10,10" Padding="5"
                BorderThickness="1"
                CornerRadius="12">
                <Border.BorderBrush>
                    <SolidColorBrush Color="{DynamicResource BaseShadowColor}" Opacity="0.5" />
                </Border.BorderBrush>
                <Border.Background>
                    <SolidColorBrush Color="{DynamicResource Base300Color}" Opacity="0.2" />
                </Border.Background>
                <StackPanel Orientation="Horizontal">
                    <materialDesign:PackIcon Kind="InfoCircleOutline" Foreground="{DynamicResource SuccessBrush}"
                                             Height="22" Width="22" VerticalAlignment="Center" Margin="5,0,0,0" />
                    <TextBlock VerticalAlignment="Center" MaxWidth="340" FontSize="14" TextWrapping="WrapWithOverflow"
                               Margin="10,10,10,10" Text="{Binding InnerTip}" />
                </StackPanel>
            </Border>
            <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Command="{Binding CopyCodeCommand}"
                        Margin="0,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}">
                    <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
                        <materialDesign:PackIcon VerticalAlignment="Center" Kind="ContentCopy" />
                        <TextBlock VerticalAlignment="Center" Text="{Tr LinkerDialog.CopyRCodeButton}" />
                    </StackPanel>
                </Button>
                <Button Command="{Binding NextCommand}"
                        Margin="10,10,0,0" Style="{StaticResource MaterialDesignFlatDarkBgButton}"
                        Content="{Tr LinkerDialog.FinishButton}" />
            </StackPanel>
        </Grid>
    </DataTemplate>
</ResourceDictionary>