#pragma checksum "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3bb4f26ba79149027696e6f75485646805dbeb89"
// <auto-generated/>
#pragma warning disable 1591
namespace MultiSelect.Pages
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Components;
#nullable restore
#line 1 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using System.Net.Http;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using Microsoft.AspNetCore.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using Microsoft.AspNetCore.Components.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 4 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms;

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing;

#line default
#line hidden
#nullable disable
#nullable restore
#line 6 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using Microsoft.AspNetCore.Components.Web;

#line default
#line hidden
#nullable disable
#nullable restore
#line 7 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using Microsoft.AspNetCore.Components.Web.Virtualization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 8 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using Microsoft.JSInterop;

#line default
#line hidden
#nullable disable
#nullable restore
#line 9 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using MultiSelect;

#line default
#line hidden
#nullable disable
#nullable restore
#line 10 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\_Imports.razor"
using MultiSelect.Shared;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
using Syncfusion.Blazor.DropDowns;

#line default
#line hidden
#nullable disable
#nullable restore
#line 4 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
using Syncfusion.Blazor.Popups;

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
using Syncfusion.Blazor.Buttons;

#line default
#line hidden
#nullable disable
    [Microsoft.AspNetCore.Components.RouteAttribute("/")]
    public partial class Index : Microsoft.AspNetCore.Components.ComponentBase
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenComponent<Syncfusion.Blazor.Buttons.SfButton>(0);
            __builder.AddAttribute(1, "OnClick", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 
#nullable restore
#line 7 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                   OnClick

#line default
#line hidden
#nullable disable
            )));
            __builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddContent(3, "Popup");
            }
            ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(4, "\r\n\r\n");
            __builder.OpenComponent<Syncfusion.Blazor.Popups.SfDialog>(5);
            __builder.AddAttribute(6, "Visible", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Boolean>(
#nullable restore
#line 9 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                    popupMultiSelectVisible

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(7, "VisibleChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.Boolean>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.Boolean>(this, 
#nullable restore
#line 9 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                                             VisibleChanged

#line default
#line hidden
#nullable disable
            )));
            __builder.AddAttribute(8, "ZIndex", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Double>(
#nullable restore
#line 9 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                                                                     20000

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(9, "Width", "500px");
            __builder.AddAttribute(10, "MinHeight", "200px");
            __builder.AddAttribute(11, "Height", "200px");
            __builder.AddAttribute(12, "ShowCloseIcon", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Boolean>(
#nullable restore
#line 9 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                                                                                                                                          true

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(13, "IsModal", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Boolean>(
#nullable restore
#line 9 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                                                                                                                                                         true

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(14, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.OpenComponent<Syncfusion.Blazor.Popups.DialogTemplates>(15);
                __builder2.AddAttribute(16, "Header", (Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
                    __builder3.AddContent(17, "Test");
                }
                ));
                __builder2.AddAttribute(18, "Content", (Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
#nullable restore
#line 13 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
             if (popupMultiSelectVisible)
            {

#line default
#line hidden
#nullable disable
                    __builder3.OpenComponent<Syncfusion.Blazor.DropDowns.SfMultiSelect<List<string>, Item>>(19);
                    __builder3.AddAttribute(20, "Placeholder", "Select team");
                    __builder3.AddAttribute(21, "ShowSelectAll", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Boolean>(
#nullable restore
#line 15 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                                                                          true

#line default
#line hidden
#nullable disable
                    ));
                    __builder3.AddAttribute(22, "SelectAllText", "All Service");
                    __builder3.AddAttribute(23, "UnSelectAllText", "All Service");
                    __builder3.AddAttribute(24, "DataSource", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Collections.Generic.IEnumerable<Item>>(
#nullable restore
#line 16 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                           Items

#line default
#line hidden
#nullable disable
                    ));
                    __builder3.AddAttribute(25, "Mode", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Syncfusion.Blazor.DropDowns.VisualMode>(
#nullable restore
#line 18 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                     VisualMode.CheckBox

#line default
#line hidden
#nullable disable
                    ));
                    __builder3.AddAttribute(26, "Value", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<List<string>>(
#nullable restore
#line 17 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                             SelectedItems

#line default
#line hidden
#nullable disable
                    ));
                    __builder3.AddAttribute(27, "ValueChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<List<string>>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<List<string>>(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => SelectedItems = __value, SelectedItems))));
                    __builder3.AddAttribute(28, "ValueExpression", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Linq.Expressions.Expression<System.Func<List<string>>>>(() => SelectedItems));
                    __builder3.AddAttribute(29, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder4) => {
                        __builder4.OpenComponent<Syncfusion.Blazor.DropDowns.MultiSelectFieldSettings>(30);
                        __builder4.AddAttribute(31, "Value", "Id");
                        __builder4.AddAttribute(32, "Text", "DisplayName");
                        __builder4.CloseComponent();
                        __builder4.AddMarkupContent(33, "\r\n                    ");
                        __builder4.OpenComponent<Syncfusion.Blazor.DropDowns.MultiSelectEvents<List<string>, Item>>(34);
                        __builder4.AddAttribute(35, "Created", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.Object>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.Object>(this, 
#nullable restore
#line 22 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                                                                   OnCreated

#line default
#line hidden
#nullable disable
                        )));
                        __builder4.CloseComponent();
                    }
                    ));
                    __builder3.AddComponentReferenceCapture(36, (__value) => {
#nullable restore
#line 15 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
                                     multiSelect = (Syncfusion.Blazor.DropDowns.SfMultiSelect<List<string>, Item>)__value;

#line default
#line hidden
#nullable disable
                    }
                    );
                    __builder3.CloseComponent();
#nullable restore
#line 24 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
            }

#line default
#line hidden
#nullable disable
                }
                ));
                __builder2.CloseComponent();
            }
            ));
            __builder.CloseComponent();
        }
        #pragma warning restore 1998
#nullable restore
#line 30 "C:\Users\vital\source\repos\MultiSelect\MultiSelect\Pages\Index.razor"
      

    private bool popupMultiSelectVisible { get; set; }

    private SfMultiSelect<List<string>, Item> multiSelect;

    private List<Item> Items = new List<Item>();
    private List<string> SelectedItems = new List<string>();

    protected override void OnInitialized()
    {
        base.OnInitialized();

        for (int i = 0; i < 10; i++)
        {
            Items.Add(new Item { Id = i.ToString(), DisplayName = $"Item {i}" });
        }
    }

    private async Task OnCreated()
    {
        await multiSelect.SelectAllAsync(true);
    }

    private void VisibleChanged(bool value)
    {
        this.popupMultiSelectVisible = value;
    }

    private void OnClick()
    {
        this.popupMultiSelectVisible = true;
    }

    public class Item
    {
        public string Id { get; set; }

        public string DisplayName { get; set; }
    }

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