@namespace Connected.Components
@using Connected.Extensions;
@inherits UIComponent

<div @attributes="CustomAttributes" class="@DivClassname" role="progressbar" aria-valuenow="@_value.ToInvariantString()" aria-valuemin="@_min.ToInvariantString()" aria-valuemax="@_max.ToInvariantString()">
    <div class="progress-linear-bars">
        @if (Indeterminate)
        {
            <div class="progress-linear-bar"></div>
            <div class="progress-linear-bar"></div>
        }
        else if (Buffer)
        {
            <div class="progress-linear-bar"></div>
            <div class="progress-linear-bar" style="@GetStyledBar1Transform()"></div>
            <div class="progress-linear-bar last" style="@GetStyledBar2Transform()"></div>
        }
        else
        {
            <div class="progress-linear-bar" style="@GetStyledBar1Transform()"></div>
        }
    </div>
    @if(ChildContent != null)
    {
        <div class="progress-linear-content">
            @ChildContent
        </div>
    }
</div>
