#pragma checksum "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "96d9aa9bf898b2f067997f056c8a41858bc129aa"
// <auto-generated/>
#pragma warning disable 1591
namespace BookRegistry.Client.Pages
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using System.Net.Http;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using System.Net.Http.Json;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms;

#line default
#line hidden
#nullable disable
#nullable restore
#line 4 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing;

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using Microsoft.AspNetCore.Components.Web;

#line default
#line hidden
#nullable disable
#nullable restore
#line 6 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using Microsoft.AspNetCore.Components.WebAssembly.Http;

#line default
#line hidden
#nullable disable
#nullable restore
#line 7 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using Microsoft.AspNetCore.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 8 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using Microsoft.AspNetCore.Components.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 11 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using CommonHelpers.WASM;

#line default
#line hidden
#nullable disable
#nullable restore
#line 12 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using AFXUI;

#line default
#line hidden
#nullable disable
#nullable restore
#line 14 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using BookRegistry.Client;

#line default
#line hidden
#nullable disable
#nullable restore
#line 15 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using BookRegistry.Client.DB;

#line default
#line hidden
#nullable disable
#nullable restore
#line 16 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using BookRegistry.Client.Shared;

#line default
#line hidden
#nullable disable
#nullable restore
#line 17 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using BookRegistry.Client.Components;

#line default
#line hidden
#nullable disable
#nullable restore
#line 18 "D:\HANDICRAFT\BookRegistry\Client\_Imports.razor"
using BookRegistry.Client.Pages;

#line default
#line hidden
#nullable disable
    [Microsoft.AspNetCore.Components.RouteAttribute("/fetchdata")]
    public partial class FetchDataPage : APageComponent
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#nullable restore
#line 3 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
  try{

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
/*
// Rendering error test:
try {
   throw new ApplicationException( "Test error #1 has been thrown." );
}
catch (Exception e) {
   throw new ApplicationException( "Test error #2 has been thrown.", e );
}
*/

#line default
#line hidden
#nullable disable
            __builder.AddMarkupContent(0, "<p class=\"page_ImpressiveTitle\">\r\n   Weather forecast <i>FetchDataPage</i>-page (originated from Blazor-WASM app.template)\r\n</p>\r\n");
            __builder.OpenElement(1, "p");
            __builder.OpenComponent<BookRegistry.Client.Shared.AButton>(2);
            __builder.AddAttribute(3, "ID", "pg_fetchdata_GetDataBUTTON");
            __builder.AddAttribute(4, "Classes_0", "btn btn-primary");
            __builder.AddAttribute(5, "Title", "Perform server request");
            __builder.AddAttribute(6, "ON_Click_A", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, 
#nullable restore
#line 20 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                        GetDataButton_OnClick_A

#line default
#line hidden
#nullable disable
            )));
            __builder.AddAttribute(7, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddContent(8, "Obtain week forecast (fake data)");
            }
            ));
            __builder.AddComponentReferenceCapture(9, (__value) => {
#nullable restore
#line 18 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                  GetDataButton = (BookRegistry.Client.Shared.AButton)__value;

#line default
#line hidden
#nullable disable
            }
            );
            __builder.CloseComponent();
            __builder.AddMarkupContent(10, "\r\n   ");
            __builder.AddMarkupContent(11, "<span class=\"faint_text ml-1\"><b>F9</b></span>");
            __builder.CloseElement();
            __builder.AddMarkupContent(12, "\r\n");
            __builder.OpenElement(13, "div");
            __builder.OpenComponent<BookRegistry.Client.Shared.ACheckBox>(14);
            __builder.AddAttribute(15, "Title", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
#nullable restore
#line 25 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                     NonBlockingPauseTooltip

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(16, "AccessKey", "l");
            __builder.AddAttribute(17, "ON_Click", new System.Action(
#nullable restore
#line 26 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                        CheckBox_OnClick

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(18, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(19, "\r\n      Perform test de");
                __builder2.AddMarkupContent(20, "<u><b>l</b></u>ay at Web-server (3 sec.)\r\n   ");
            }
            ));
            __builder.AddComponentReferenceCapture(21, (__value) => {
#nullable restore
#line 24 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                    WithTestDelayCBox = (BookRegistry.Client.Shared.ACheckBox)__value;

#line default
#line hidden
#nullable disable
            }
            );
            __builder.CloseComponent();
            __builder.AddMarkupContent(22, "\r\n   <br>\r\n   ");
            __builder.OpenComponent<BookRegistry.Client.Shared.ACheckBox>(23);
            __builder.AddAttribute(24, "Title", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.String>(
#nullable restore
#line 31 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                     StoredProcBehaviourTooltip

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(25, "AccessKey", "s");
            __builder.AddAttribute(26, "ON_Click", new System.Action(
#nullable restore
#line 32 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                        CheckBox_OnClick

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(27, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(28, "<u>S</u>imulate error (with corresponding message from T-SQL stored proc.)\r\n   ");
            }
            ));
            __builder.AddComponentReferenceCapture(29, (__value) => {
#nullable restore
#line 30 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                    SimulateErrorCBox = (BookRegistry.Client.Shared.ACheckBox)__value;

#line default
#line hidden
#nullable disable
            }
            );
            __builder.CloseComponent();
            __builder.CloseElement();
            __builder.AddMarkupContent(30, "\r\n");
            __builder.AddMarkupContent(31, @"<div class=""mt-1""><span class=""faint_text line_height_1"" style=""margin-top: 5px"">
      // Query language (for C#-back-end and T-SQL) is specified in <b><i>wwwroot/appconfig.json</i></b>:<br>
      // { ""Query"": { ""Language"": ""<b>EN</b>""/""<b>RU</b>"" } }
   </span></div>
");
            __builder.OpenElement(32, "p");
            __builder.AddAttribute(33, "id", "pg_fetchdata_PageErrorMessageP");
            __builder.AddContent(34, 
#nullable restore
#line 42 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
                                        PageErrorMessage

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
#nullable restore
#line 43 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
 if (Summaries != null)
{

#line default
#line hidden
#nullable disable
            __builder.OpenElement(35, "table");
            __builder.AddAttribute(36, "class", "table");
            __builder.AddMarkupContent(37, "<thead><tr><th>Date</th>\r\n         <th>Temp. (C)</th>\r\n         <th>Temp. (F)</th>\r\n         <th>Summary</th></tr></thead>\r\n   ");
            __builder.OpenElement(38, "tbody");
#nullable restore
#line 55 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
       foreach (var forecast in Summaries)
      {

#line default
#line hidden
#nullable disable
            __builder.OpenElement(39, "tr");
            __builder.OpenElement(40, "td");
            __builder.AddContent(41, 
#nullable restore
#line 58 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
              forecast.Date.ToShortDateString()

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.AddMarkupContent(42, "\r\n         ");
            __builder.OpenElement(43, "td");
            __builder.AddContent(44, 
#nullable restore
#line 59 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
              forecast.TemperatureC

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.AddMarkupContent(45, "\r\n         ");
            __builder.OpenElement(46, "td");
            __builder.AddContent(47, 
#nullable restore
#line 60 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
              forecast.TemperatureF

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.AddMarkupContent(48, "\r\n         ");
            __builder.OpenElement(49, "td");
            __builder.AddContent(50, 
#nullable restore
#line 61 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
              forecast.Summary

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.CloseElement();
#nullable restore
#line 63 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
      }

#line default
#line hidden
#nullable disable
            __builder.CloseElement();
            __builder.CloseElement();
#nullable restore
#line 66 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
}

#line default
#line hidden
#nullable disable
#nullable restore
#line 68 "D:\HANDICRAFT\BookRegistry\Client\Pages\FetchDataPage.razor"
}catch(Exception e){ProcessRenderingError(GetType(),e);}

#line default
#line hidden
#nullable disable
        }
        #pragma warning restore 1998
    }
}
#pragma warning restore 1591
