<?xml version="1.0" encoding="utf-8" ?>
<UserControl
    x:Class="BiliCopilot.UI.Controls.Components.SideBottomLoadingWidget"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:animations="using:CommunityToolkit.WinUI.Animations"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:BiliCopilot.UI.Extensions"
    xmlns:local="using:BiliCopilot.UI.Controls.Components"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Bottom"
    AutomationProperties.AccessibilityView="Raw"
    IsTabStop="False"
    mc:Ignorable="d">

    <StackPanel
        Padding="12,4"
        VerticalAlignment="Bottom"
        Orientation="Horizontal"
        Spacing="12">
        <ProgressBar
            Width="20"
            VerticalAlignment="Center"
            IsIndeterminate="True" />
        <TextBlock
            VerticalAlignment="Center"
            Foreground="{ThemeResource TextFillColorSecondaryBrush}"
            Style="{StaticResource CaptionTextBlockStyle}"
            Text="{x:Bind Text, Mode=OneWay}" />
        <animations:Implicit.ShowAnimations>
            <animations:OpacityAnimation
                From="0.0"
                To="1.0"
                Duration="0:0:0.5" />
        </animations:Implicit.ShowAnimations>
        <animations:Implicit.HideAnimations>
            <animations:OpacityAnimation
                From="1.0"
                To="0.0"
                Duration="0:0:0.4" />
        </animations:Implicit.HideAnimations>
    </StackPanel>
</UserControl>
