#pragma checksum "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8d55ee6d3ed17fe6979f6dab1b52f838031939ed"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Shared_DisplayTemplates_LeilaoEmAndamento), @"mvc.1.0.view", @"/Views/Shared/DisplayTemplates/LeilaoEmAndamento.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@"/Views/Shared/DisplayTemplates/LeilaoEmAndamento.cshtml", typeof(AspNetCore.Views_Shared_DisplayTemplates_LeilaoEmAndamento))]
namespace AspNetCore
{
    #line hidden
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#line 1 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\_ViewImports.cshtml"
using System;

#line default
#line hidden
#line 2 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\_ViewImports.cshtml"
using System.Globalization;

#line default
#line hidden
#line 3 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\_ViewImports.cshtml"
using Alura.LeilaoOnline.Core;

#line default
#line hidden
#line 4 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\_ViewImports.cshtml"
using Alura.LeilaoOnline.WebApp.Models;

#line default
#line hidden
#line 5 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\_ViewImports.cshtml"
using Alura.LeilaoOnline.WebApp.Extensions;

#line default
#line hidden
#line 6 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\_ViewImports.cshtml"
using Humanizer;

#line default
#line hidden
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"8d55ee6d3ed17fe6979f6dab1b52f838031939ed", @"/Views/Shared/DisplayTemplates/LeilaoEmAndamento.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"e0561bac95bfd946575bd5868d8b531582dc7ff7", @"/Views/_ViewImports.cshtml")]
    public class Views_Shared_DisplayTemplates_LeilaoEmAndamento : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<EstadoLeilao>
    {
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("name", "_ModalLance", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        #line hidden
        #pragma warning disable 0169
        private string __tagHelperStringValueBuffer;
        #pragma warning restore 0169
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
        {
            get
            {
                if (__backed__tagHelperScopeManager == null)
                {
                    __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
                }
                return __backed__tagHelperScopeManager;
            }
        }
        private global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper;
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(20, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 3 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml"
  
    LeilaoViewModel leilao = ViewData["Leilao"] as LeilaoViewModel;
    Lance ultimoLance = leilao.Lances.OrderByDescending(l => l.Valor).FirstOrDefault();
    double valorUltimoLance = ultimoLance != null ? ultimoLance.Valor : 0.0;
    Usuario usuarioLogado = ViewData["UsuarioLogado"] as Usuario;
    TimeSpan terminaEm = DateTime.Now - leilao.InicioPregao;
    LanceViewModel lanceModel = null;
    if (usuarioLogado != null)
    {
        lanceModel = new LanceViewModel
        {
            LeilaoId = leilao.Id,
            UsuarioLogadoId = usuarioLogado.Id,
            Valor = valorUltimoLance
        };
    }

#line default
#line hidden
            BeginContext(647, 174, true);
            WriteLiteral("\n<div class=\"card estado\">\n    <div class=\"yellow darken-4 white-text center-align\">\n        <h4>\n            <i class=\"fas fa-hourglass-half\"></i>\n        </h4>\n        <h5>");
            EndContext();
            BeginContext(822, 17, false);
#line 26 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml"
       Write(Model.ParaTexto());

#line default
#line hidden
            EndContext();
            BeginContext(839, 28, true);
            WriteLiteral("</h5>\n        <p>Termina em ");
            EndContext();
            BeginContext(868, 20, false);
#line 27 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml"
                 Write(terminaEm.Humanize());

#line default
#line hidden
            EndContext();
            BeginContext(888, 144, true);
            WriteLiteral(".</p>\n    </div>\n    <div class=\"center-align yellow-text text-darken-4\">\n        <h6>Lance Atual</h6>\n        <h5 id=\"lanceAtual\">\n            ");
            EndContext();
            BeginContext(1033, 58, false);
#line 32 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml"
       Write(valorUltimoLance.ToString("C", CultureInfo.CurrentCulture));

#line default
#line hidden
            EndContext();
            BeginContext(1091, 6, true);
            WriteLiteral("</h5>\n");
            EndContext();
#line 33 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml"
         if (lanceModel != null)
        {

#line default
#line hidden
            BeginContext(1140, 12, true);
            WriteLiteral("            ");
            EndContext();
            BeginContext(1152, 49, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "8d55ee6d3ed17fe6979f6dab1b52f838031939ed7589", async() => {
            }
            );
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 35 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = lanceModel;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1201, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 36 "C:\Users\copacabana_alura\Documents\Visual Studio 2017\Projects\Selenium.Tests\Alura.LeilaoOnline.WebApp\Views\Shared\DisplayTemplates\LeilaoEmAndamento.cshtml"
        }

#line default
#line hidden
            BeginContext(1212, 17, true);
            WriteLiteral("    </div>\n</div>");
            EndContext();
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<EstadoLeilao> Html { get; private set; }
    }
}
#pragma warning restore 1591
