#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"

            //TODO - Pegar apenas* o primeiro* nome* do usuário e apresentar quando estiver logado.
            var pesquisa = Context.Request.Query["pesquisa"];


#line default
#line hidden
            BeginContext(249, 539, true);
            WriteLiteral(@"<nav class=""navbar navbar-expand-lg navbar-dark fixed-top bg-dark"">
    <a class=""navbar-brand"" href=""/""> LojaVirtual</a>
    <button class=""navbar-toggler"" type=""button"" data-toggle=""collapse"" data-target=""#navbarSupportedContent""
            aria-controls=""navbarSupportedContent"" aria-expanded=""false"" aria-label=""Toggle navigation"">
        <span class=""navbar-toggler-icon""></span>
    </button>
    <div class=""collapse navbar-collapse"" id=""navbarSupportedContent"">


        <ul class=""navbar-nav mr-auto"">
            <li");
            EndContext();
            BeginWriteAttribute("class", " class=\"", 788, "\"", 954, 2);
            WriteAttributeValue("", 796, "nav-item", 796, 8, true);
#line 18 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
            WriteAttributeValue(" ", 804, (ViewContext.RouteData.Values["controller"].ToString() == "Home" && ViewContext.RouteData.Values["action"].ToString() == "Index") ? "active" : "", 805, 149, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(955, 144, true);
            WriteLiteral(">\r\n                <a class=\"nav-link\" href=\"/\"><i class=\"fas fa-home\"></i> Home <span class=\"sr-only\">(current)</span></a>\r\n            </li>\r\n");
            EndContext();
#line 21 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"

            var TodasCategorias = Model.ToList();


#line default
#line hidden
            BeginContext(1185, 12, true);
            WriteLiteral("            ");
            EndContext();
#line 24 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
            if (TodasCategorias != null && TodasCategorias.Count > 0)
            {
#line default
#line hidden
                BeginContext(1272, 62, true);
                WriteLiteral("                <div class=\"dropdown\">\r\n                    <a");
                EndContext();
                BeginWriteAttribute("class", " class=\"", 1334, "\"", 1520, 3);
                WriteAttributeValue("", 1342, "nav-link", 1342, 8, true);
                WriteAttributeValue(" ", 1350, "dropdown-toggle", 1351, 16, true);
#line 27 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                WriteAttributeValue(" ", 1366, (ViewContext.RouteData.Values["controller"].ToString() == "Home" && ViewContext.RouteData.Values["action"].ToString() == "Categoria") ? "active" : "", 1367, 153, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1521, 332, true);
                WriteLiteral(@" href=""#"" id=""navbarDropdown"" role=""button"" data-toggle=""dropdown""
                       aria-haspopup=""true"" aria-expanded=""false"">
                        <i class=""fas fa-list-ul""></i> Categorias
                    </a>
                    <ul class=""dropdown-menu multi-level"" role=""menu"" aria-labelledby=""dropdownMenu"">
");
                EndContext();
#line 32 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"

                var CategoriasPrincipais = TodasCategorias.Where(a => a.CategoriaPaiId == null).ToList();
                ViewData["TodasCategorias"] = TodasCategorias;


#line default
#line hidden
                BeginContext(2103, 24, true);
                WriteLiteral("                        ");
                EndContext();
#line 36 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                foreach (var categoria in CategoriasPrincipais)
                {
#line default
#line hidden
                    BeginContext(2233, 141, false);
#line 38 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                    Write(await Html.PartialAsync("~/Views/Shared/Components/Menu/_Submenu.cshtml", new ViewDataDictionary(ViewData)
                    {
                        { "CategoriaPai", categoria }
                    }));

#line default
#line hidden
                    EndContext();
#line 38 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                }

#line default
#line hidden
                BeginContext(2403, 51, true);
                WriteLiteral("                    </ul>\r\n                </div>\r\n");
                EndContext();
#line 42 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
            }

#line default
#line hidden
            BeginContext(2469, 15, true);
            WriteLiteral("            <li");
            EndContext();
            BeginWriteAttribute("class", " class=\"", 2484, "\"", 2652, 2);
            WriteAttributeValue("", 2492, "nav-item", 2492, 8, true);
#line 43 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
            WriteAttributeValue(" ", 2500, (ViewContext.RouteData.Values["controller"].ToString() == "Home" && ViewContext.RouteData.Values["action"].ToString() == "Contato") ? "active" : "", 2501, 151, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(2653, 152, true);
            WriteLiteral(">\r\n                <a class=\"nav-link\" href=\"/Home/Contato\"><i class=\"far fa-address-book\"></i> Contato </a>\r\n            </li>\r\n        </ul>\r\n        ");
            EndContext();
            BeginContext(2805, 1659, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b9d13028a30bfc7645725acaa4046fcbc07d704514863", async() => {
                BeginContext(2857, 79, true);
                WriteLiteral("\r\n            <input class=\"form-control mr-sm-2\" type=\"search\" name=\"pesquisa\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 2936, "\"", 2953, 1);
#line 48 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                WriteAttributeValue("", 2944, pesquisa, 2944, 9, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2954, 169, true);
                WriteLiteral(" placeholder=\"palavra\" aria-label=\"Search\">\r\n            <button class=\"btn btn-outline-success my-2 my-sm-0\" style=\"margin-right:10px\" type=\"submit\">Pesquisa</button>\r\n");
                EndContext();
#line 50 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                if (_loginCliente.GetCliente() != null)
                {
#line default
#line hidden
                    BeginContext(3192, 272, true);
                    WriteLiteral(@"                <div class=""dropdown"">
                    <button class=""btn btn-secondary dropdown-toggle"" type=""button"" id=""dropdownMenuButton"" data-toggle=""dropdown"" aria-haspopup=""true"" aria-expanded=""false"">
                        <i class=""fas fa-user-alt""></i> ");
                    EndContext();
                    BeginContext(3465, 54, false);
#line 54 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                    Write(Mascara.PrimeiroNome(@_loginCliente.GetCliente().Nome));

#line default
#line hidden
                    EndContext();
                    BeginContext(3519, 143, true);
                    WriteLiteral("\r\n                    </button>\r\n                    <div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\r\n                        ");
                    EndContext();
                    BeginContext(3662, 149, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b9d13028a30bfc7645725acaa4046fcbc07d704517213", async() => {
                        BeginContext(3796, 11, true);
                        WriteLiteral("Minha conta");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_2.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_3.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                    if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                    {
                        throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                    }
                    BeginWriteTagHelperAttribute();
#line 57 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                    WriteLiteral(_loginCliente.GetCliente().Id);

#line default
#line hidden
                    __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer;
                    __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"], 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(3811, 26, true);
                    WriteLiteral("\r\n                        ");
                    EndContext();
                    BeginContext(3837, 103, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b9d13028a30bfc7645725acaa4046fcbc07d704520335", async() => {
                        BeginContext(3924, 12, true);
                        WriteLiteral("Meus pedidos");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_3.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(3940, 26, true);
                    WriteLiteral("\r\n                        ");
                    EndContext();
                    BeginContext(3966, 92, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b9d13028a30bfc7645725acaa4046fcbc07d704522337", async() => {
                        BeginContext(4050, 4, true);
                        WriteLiteral("Sair");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_6.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_3.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(4058, 54, true);
                    WriteLiteral("\r\n                    </div>\r\n                </div>\r\n");
                    EndContext();
#line 62 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(4160, 16, true);
                    WriteLiteral("                ");
                    EndContext();
                    BeginContext(4176, 122, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b9d13028a30bfc7645725acaa4046fcbc07d704524698", async() => {
                        BeginContext(4256, 38, true);
                        WriteLiteral("<i class=\"fas fa-user-alt\"></i> Entrar");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_6.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_8.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_3.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(4298, 2, true);
                    WriteLiteral("\r\n");
                    EndContext();
#line 66 "C:\Users\mateu\Desktop\AspNetCurso\LojaVirtual\LojaVirtual\LojaVirtual\Views\Shared\Components\Menu\Default.cshtml"
                }

#line default
#line hidden
                BeginContext(4315, 12, true);
                WriteLiteral("            ");
                EndContext();
                BeginContext(4327, 120, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b9d13028a30bfc7645725acaa4046fcbc07d704527002", async() => {
                    BeginContext(4398, 45, true);
                    WriteLiteral("<i class=\"fas fa-shopping-cart\"></i> Carrinho");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_9.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4447, 10, true);
                WriteLiteral("\r\n        ");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_10);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_11.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(4464, 20, true);
            WriteLiteral("\r\n    </div>\r\n</nav>");
            EndContext();
        }