Beispiel #1
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "main");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ul");
            __builder.AddAttribute(4, "class", "pizza-cards");
            __builder.AddMarkupContent(5, "\r\n");
#line 9 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
            if (specials != null)
            {
#line default
#line hidden
#line 11 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                foreach (var special in specials)
                {
#line default
#line hidden
                    __builder.AddContent(6, "                ");
                    __builder.OpenElement(7, "li");
                    __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 13 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                                                                                                                                                           () => OrderState.ShowConfigureDialog(special)

#line default
#line hidden
                                                                                                                                                                           ));
                    __builder.AddAttribute(9, "style", "background-image:" + " url(\'" + (
#line 13 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                               special.ImageUrl

#line default
#line hidden
                                               ) + "\')");
                    __builder.AddMarkupContent(10, "\r\n                    ");
                    __builder.OpenElement(11, "div");
                    __builder.AddAttribute(12, "class", "pizza-info");
                    __builder.AddMarkupContent(13, "\r\n                        ");
                    __builder.OpenElement(14, "span");
                    __builder.AddAttribute(15, "class", "title");
                    __builder.AddContent(16,
#line 15 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                         special.Name

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(17, "\r\n                        ");
                    __builder.AddContent(18,
#line 16 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                         special.Description

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(19, "\r\n                        ");
                    __builder.OpenElement(20, "span");
                    __builder.AddAttribute(21, "class", "price");
                    __builder.AddContent(22,
#line 17 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                         special.GetFormattedBasePrice()

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(23, "\r\n                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(24, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(25, "\r\n");
#line 20 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                }

#line default
#line hidden
#line 20 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
            }

#line default
#line hidden
            __builder.AddContent(26, "    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(27, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(28, "\r\n\r\n");
            __builder.OpenElement(29, "div");
            __builder.AddAttribute(30, "class", "sidebar");
            __builder.AddMarkupContent(31, "\r\n");
#line 26 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
            if (Order.Pizzas.Any())
            {
#line default
#line hidden
                __builder.AddContent(32, "        ");
                __builder.OpenElement(33, "div");
                __builder.AddAttribute(34, "class", "order-contents");
                __builder.AddMarkupContent(35, "\r\n            ");
                __builder.AddMarkupContent(36, "<h2>Your order</h2>\r\n\r\n");
#line 31 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                foreach (var configuredPizza in Order.Pizzas)
                {
#line default
#line hidden
                    __builder.AddContent(37, "                ");
                    __builder.OpenComponent <BlazingPizza.Client.Shared.ConfiguredPizzaItem>(38);
                    __builder.AddAttribute(39, "Pizza", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <BlazingPizza.Pizza>(
#line 33 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                               configuredPizza

#line default
#line hidden
                                               ));
                    __builder.AddAttribute(40, "OnRemoved", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 33 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                                                                                                                                                                                                                                   () => RemovePizza(configuredPizza)

#line default
#line hidden
                                                                                                                                                                                                                                                   )));
                    __builder.CloseComponent();
                    __builder.AddMarkupContent(41, "\r\n");
#line 34 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                }

#line default
#line hidden
                __builder.AddContent(42, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(43, "\r\n");
#line 36 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(44, "        ");
                __builder.AddMarkupContent(45, "<div class=\"empty-cart\">Choose a pizza<br>to get started</div>\r\n");
#line 40 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
            }

#line default
#line hidden
            __builder.AddMarkupContent(46, "\r\n    ");
            __builder.OpenElement(47, "div");
            __builder.AddAttribute(48, "class", "order-total" + " " + (
#line 42 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                       Order.Pizzas.Any() ? "" : "hidden"

#line default
#line hidden
                                       ));
            __builder.AddMarkupContent(49, "\r\n        Total:\r\n        ");
            __builder.OpenElement(50, "span");
            __builder.AddAttribute(51, "class", "total-price");
            __builder.AddContent(52,
#line 44 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                 Order.GetFormattedTotalPrice()

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(53, "\r\n        ");
            __builder.OpenElement(54, "a");
            __builder.AddAttribute(55, "href", "checkout");
            __builder.AddAttribute(56, "class",
#line 45 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                   Order.Pizzas.Count == 0 ? "btn btn-warning disabled" : "btn btn-warning"

#line default
#line hidden
                                   );
            __builder.AddMarkupContent(57, "\r\n            Order >\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(58, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(59, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(60, "\r\n\r\n");
#line 51 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
            if (OrderState.ShowingConfigureDialog)
            {
#line default
#line hidden
                __builder.AddContent(61, "    ");
                __builder.OpenComponent <BlazingPizza.Client.Shared.ConfigurePizzaDialog>(62);
                __builder.AddAttribute(63, "Pizza", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <BlazingPizza.Pizza>(
#line 53 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                           OrderState.ConfiguringPizza

#line default
#line hidden
                                           ));
                __builder.AddAttribute(64, "OnCancel", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 54 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                                                                                                                                                                                                                              OrderState.CancelConfigurePizzaDialog

#line default
#line hidden
                                                                                                                                                                                                                                              )));
                __builder.AddAttribute(65, "OnConfirm", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 55 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
                                                                                                                                                                                                                                               OrderState.ConfirmConfigurePizzaDialog

#line default
#line hidden
                                                                                                                                                                                                                                               )));
                __builder.CloseComponent();
                __builder.AddMarkupContent(66, "\r\n");
#line 56 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\Index.razor"
            }

#line default
#line hidden
        }