#pragma checksum "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "df3b1b60aa92d71208f0921f9d214310bce9341b"
// <auto-generated/>
#pragma warning disable 1591
namespace SPWA.Pages
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Components;
#nullable restore
#line 2 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using System.Net.Http;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 4 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Authorization;

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Forms;

#line default
#line hidden
#nullable disable
#nullable restore
#line 6 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Routing;

#line default
#line hidden
#nullable disable
#nullable restore
#line 7 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.Components.Web;

#line default
#line hidden
#nullable disable
#nullable restore
#line 8 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.JSInterop;

#line default
#line hidden
#nullable disable
#nullable restore
#line 9 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using SPWA;

#line default
#line hidden
#nullable disable
#nullable restore
#line 10 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using SPWA.Shared;

#line default
#line hidden
#nullable disable
#nullable restore
#line 11 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using MatBlazor;

#line default
#line hidden
#nullable disable
#nullable restore
#line 12 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using BlazorInputFile;

#line default
#line hidden
#nullable disable
#nullable restore
#line 14 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using Microsoft.AspNetCore.DataProtection;

#line default
#line hidden
#nullable disable
#nullable restore
#line 15 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\_Imports.razor"
using SPWA.LoginFeatures.Account.Pages.GoogleLogin;

#line default
#line hidden
#nullable disable
#nullable restore
#line 3 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
using Project.Data;

#line default
#line hidden
#nullable disable
#nullable restore
#line 4 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
using Project.Data.Project;

#line default
#line hidden
#nullable disable
#nullable restore
#line 5 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
using Microsoft.AspNetCore.Identity;

#line default
#line hidden
#nullable disable
#nullable restore
#line 6 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
using SPWA.DataAccess.Data;

#line default
#line hidden
#nullable disable
    [Microsoft.AspNetCore.Components.RouteAttribute("/ProjectDetails/{projectId:int}")]
    public partial class ProjectDetails : OwningComponentBase<ProjectService>
    {
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#nullable restore
#line 20 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
 if (project == null)
{

#line default
#line hidden
#nullable disable
            __builder.AddMarkupContent(0, "    \r\n    ");
            __builder.AddMarkupContent(1, "<p><em>Loading...</em></p>\r\n");
#nullable restore
#line 24 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
}
else
{


#line default
#line hidden
#nullable disable
            __builder.AddContent(2, "    ");
            __builder.OpenElement(3, "h3");
            __builder.AddContent(4, "ProjectDetails Id = ");
            __builder.AddContent(5, 
#nullable restore
#line 28 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                             projectId

#line default
#line hidden
#nullable disable
            );
            __builder.AddContent(6, "! ");
            __builder.AddContent(7, 
#nullable restore
#line 28 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                         project.Title

#line default
#line hidden
#nullable disable
            );
            __builder.AddContent(8, " ");
            __builder.CloseElement();
            __builder.AddMarkupContent(9, "\r\n    ");
            __builder.OpenElement(10, "div");
            __builder.AddAttribute(11, "ui-view", true);
            __builder.AddAttribute(12, "class", "ng-scope");
            __builder.AddMarkupContent(13, "\r\n        ");
            __builder.OpenElement(14, "div");
            __builder.AddAttribute(15, "class", "row team-project ng-scope");
            __builder.AddMarkupContent(16, "\r\n\r\n            ");
            __builder.OpenElement(17, "div");
            __builder.AddAttribute(18, "class", "col-sm-9 project-second-section-middle");
            __builder.AddMarkupContent(19, "\r\n                ");
            __builder.OpenElement(20, "div");
            __builder.AddAttribute(21, "class", "col-sm-12 detailed-project-info");
            __builder.AddMarkupContent(22, "\r\n                    ");
            __builder.AddMarkupContent(23, @"<center>
                        <h2 class=""proj-status ng-hide"" ng-hide=""(vm.data.status == 'Active')"">

                            <strong>This Project is Currently Inactive</strong>
                        </h2>
                    </center>
                    <hr>
                    ");
            __builder.OpenElement(24, "h2");
            __builder.AddAttribute(25, "class", "proj-title-teams-detail");
            __builder.AddMarkupContent(26, "\r\n\r\n                        ");
            __builder.OpenElement(27, "strong");
            __builder.AddAttribute(28, "class", "ng-binding");
            __builder.AddContent(29, 
#nullable restore
#line 43 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                    project.Title

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.AddMarkupContent(30, "\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(31, "\r\n                    <hr>\r\n\r\n                    ");
            __builder.AddMarkupContent(32, "<h4>About this project</h4>\r\n\r\n                    ");
            __builder.OpenElement(33, "pre");
            __builder.AddAttribute(34, "class", "proj-description");
            __builder.AddAttribute(35, "style", "border:white;background-color:#FFFFFF;white-space:pre-line");
            __builder.AddMarkupContent(36, "                        \r\n\r\n                    ");
            __builder.OpenElement(37, "div");
            __builder.AddAttribute(38, "ng-bind-html", "vm.data.description");
            __builder.AddAttribute(39, "class", "ng-binding");
            __builder.AddMarkupContent(40, "\r\n                    ");
            __builder.OpenElement(41, "div");
            __builder.AddMarkupContent(42, "\r\n                    ");
            __builder.AddContent(43, 
#nullable restore
#line 53 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                 project.Details

#line default
#line hidden
#nullable disable
            );
            __builder.AddMarkupContent(44, "\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(45, "\r\n                    ");
            __builder.AddMarkupContent(46, "<div><br></div>\r\n                    <div></div>\r\n                    ");
            __builder.AddMarkupContent(47, "<div><br></div>\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(48, "\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(49, "\r\n                    \r\n                    ");
            __builder.OpenElement(50, "p");
            __builder.AddAttribute(51, "class", "ng-binding");
            __builder.AddMarkupContent(52, "\r\n                        ");
            __builder.AddMarkupContent(53, "<label>Skills required:</label>\r\n                        ");
            __builder.AddContent(54, 
#nullable restore
#line 63 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                         project.RequiredSkills

#line default
#line hidden
#nullable disable
            );
            __builder.AddMarkupContent(55, "\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(56, "\r\n                    ");
            __builder.OpenElement(57, "p");
            __builder.AddAttribute(58, "class", "ng-binding");
            __builder.AddMarkupContent(59, "\r\n                        ");
            __builder.AddMarkupContent(60, "<label>Semester:</label>\r\n                        ");
            __builder.AddContent(61, 
#nullable restore
#line 67 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                         project.Semester

#line default
#line hidden
#nullable disable
            );
            __builder.AddMarkupContent(62, "\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(63, "\r\n\r\n\r\n                    <p></p>\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(64, "\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(65, "\r\n\r\n            ");
            __builder.OpenElement(66, "div");
            __builder.AddAttribute(67, "class", "col-md-3 sidebar-container");
            __builder.AddMarkupContent(68, "\r\n                ");
            __builder.OpenElement(69, "div");
            __builder.AddAttribute(70, "class", "col-md-12");
            __builder.AddAttribute(71, "id", "discover_more");
            __builder.AddMarkupContent(72, "\r\n                    ");
            __builder.AddMarkupContent(73, "<h4>Discover More</h4>\r\n\r\n                    <hr>\r\n                    ");
            __builder.AddMarkupContent(74, "<h4>Project Owners</h4>\r\n                    ");
            __builder.OpenElement(75, "div");
            __builder.AddAttribute(76, "ng-init", "ownerLimit = 5");
            __builder.AddMarkupContent(77, "\r\n                        ");
            __builder.OpenElement(78, "table");
            __builder.AddAttribute(79, "class", "table student-list");
            __builder.AddMarkupContent(80, "\r\n                            ");
            __builder.OpenElement(81, "tbody");
            __builder.AddMarkupContent(82, "\r\n                                \r\n                                ");
            __builder.OpenElement(83, "tr");
            __builder.AddAttribute(84, "style", "padding:2px;");
            __builder.AddAttribute(85, "class", "ng-scope");
            __builder.AddMarkupContent(86, "\r\n                                    ");
            __builder.OpenElement(87, "td");
            __builder.AddAttribute(88, "style", "padding:2px; vertical-align: middle;");
            __builder.AddMarkupContent(89, "\r\n                                        ");
            __builder.OpenElement(90, "a");
            __builder.AddAttribute(91, "ng-click", "vm.redirect2(projowners[1])");
            __builder.AddAttribute(92, "class", "person_hover ng-binding");
            __builder.AddContent(93, 
#nullable restore
#line 87 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                                                                                   project.OwnerId

#line default
#line hidden
#nullable disable
            );
            __builder.CloseElement();
            __builder.AddMarkupContent(94, "\r\n                                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(95, "\r\n                                    ");
            __builder.AddMarkupContent(96, "<td style=\"width:50px;\">\r\n                                        <a href=\"/#/sendmessage/rishe@cs.fiu.edu/0/1\">\r\n                                        </a>\r\n                                    </td>\r\n                                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(97, "\r\n                            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(98, "\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(99, "\r\n\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(100, "\r\n                    ");
            __builder.AddMarkupContent(101, "<h4>Faculty</h4>\r\n                    ");
            __builder.AddMarkupContent(102, @"<div ng-init=""facultyLimit = 5"">
                        <table class=""table student-list"">
                            <tbody>
                                
                            </tbody>
                        </table>
                    </div>

                    ");
            __builder.AddMarkupContent(103, "<h4>Mentor</h4>\r\n                    ");
            __builder.AddMarkupContent(104, @"<div ng-init=""mentorLimit = 5"">
                        <table class=""table student-list"">
                            <tbody>
                                
                            </tbody>
                        </table>
                    </div>


                    ");
            __builder.AddMarkupContent(105, "<h4>Students</h4>\r\n                    ");
            __builder.AddMarkupContent(106, "<p class=\"ng-binding\">Currently enrolled: 5 student(s)</p>\r\n                    ");
            __builder.AddMarkupContent(107, "<p class=\"ng-binding\">Maximum capacity: 5 student(s)</p>\r\n\r\n                    ");
            __builder.AddMarkupContent(108, "<div ng-init=\"personLimit = 5\">\r\n                        <table class=\"table student-list\">\r\n                            <tbody>\r\n                                \r\n                                \r\n                                <tr ng-repeat=\"student in vm.data.members_detailed | limitTo: personLimit track by $index\" style=\"padding:2px;\" class=\"ng-scope\">\r\n                                    <td style=\"padding:2px; vertical-align: middle;\"><a ng-click=\"vm.redirect($index)\" class=\"person_hover ng-binding\">Joseph Medina</a></td>\r\n                                    <td style=\"width:50px;\">\r\n                                        <a href=\"/#/sendmessage/jmedi145@fiu.edu/0/1\">\r\n                                            <i class=\"fa fa-envelope-o fa-lg ng-hide\" ng-show=\" vm.profile.userType == \'Pi/CoPi\' || vm.profile.userType == \'Staff/Faculty\'\" aria-hidden=\"true\" style=\"display: inline;\"></i>\r\n                                        </a>\r\n                                    </td>\r\n                                </tr>\r\n                                <tr ng-repeat=\"student in vm.data.members_detailed | limitTo: personLimit track by $index\" style=\"padding:2px;\" class=\"ng-scope\">\r\n                                    <td style=\"padding:2px; vertical-align: middle;\"><a ng-click=\"vm.redirect($index)\" class=\"person_hover ng-binding\">Jason S Garcia</a></td>\r\n                                    <td style=\"width:50px;\">\r\n                                        <a href=\"/#/sendmessage/jgarc429@fiu.edu/0/1\">\r\n                                            <i class=\"fa fa-envelope-o fa-lg ng-hide\" ng-show=\" vm.profile.userType == \'Pi/CoPi\' || vm.profile.userType == \'Staff/Faculty\'\" aria-hidden=\"true\" style=\"display: inline;\"></i>\r\n                                        </a>\r\n                                    </td>\r\n                                </tr>\r\n                                <tr ng-repeat=\"student in vm.data.members_detailed | limitTo: personLimit track by $index\" style=\"padding:2px;\" class=\"ng-scope\">\r\n                                    <td style=\"padding:2px; vertical-align: middle;\"><a ng-click=\"vm.redirect($index)\" class=\"person_hover ng-binding\">Andy D Pujol Perez</a></td>\r\n                                    <td style=\"width:50px;\">\r\n                                        <a href=\"/#/sendmessage/apujo010@fiu.edu/0/1\">\r\n                                            <i class=\"fa fa-envelope-o fa-lg ng-hide\" ng-show=\" vm.profile.userType == \'Pi/CoPi\' || vm.profile.userType == \'Staff/Faculty\'\" aria-hidden=\"true\" style=\"display: inline;\"></i>\r\n                                        </a>\r\n                                    </td>\r\n                                </tr>\r\n                                <tr ng-repeat=\"student in vm.data.members_detailed | limitTo: personLimit track by $index\" style=\"padding:2px;\" class=\"ng-scope\">\r\n                                    <td style=\"padding:2px; vertical-align: middle;\"><a ng-click=\"vm.redirect($index)\" class=\"person_hover ng-binding\">Ciana L Rogers</a></td>\r\n                                    <td style=\"width:50px;\">\r\n                                        <a href=\"/#/sendmessage/croge041@fiu.edu/0/1\">\r\n                                            <i class=\"fa fa-envelope-o fa-lg ng-hide\" ng-show=\" vm.profile.userType == \'Pi/CoPi\' || vm.profile.userType == \'Staff/Faculty\'\" aria-hidden=\"true\" style=\"display: inline;\"></i>\r\n                                        </a>\r\n                                    </td>\r\n                                </tr>\r\n                                <tr ng-repeat=\"student in vm.data.members_detailed | limitTo: personLimit track by $index\" style=\"padding:2px;\" class=\"ng-scope\">\r\n                                    <td style=\"padding:2px; vertical-align: middle;\"><a ng-click=\"vm.redirect($index)\" class=\"person_hover ng-binding\">Lucio Salazar</a></td>\r\n                                    <td style=\"width:50px;\">\r\n                                        <a href=\"/#/sendmessage/lsala018@fiu.edu/0/1\">\r\n                                            <i class=\"fa fa-envelope-o fa-lg ng-hide\" ng-show=\" vm.profile.userType == \'Pi/CoPi\' || vm.profile.userType == \'Staff/Faculty\'\" aria-hidden=\"true\" style=\"display: inline;\"></i>\r\n                                        </a>\r\n                                    </td>\r\n                                </tr>\r\n                            </tbody>\r\n                        </table>\r\n                    </div>\r\n\r\n\r\n\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(109, "\r\n                ");
            __builder.OpenElement(110, "div");
            __builder.AddAttribute(111, "class", "sidebar-bottom-wrap");
            __builder.AddMarkupContent(112, "\r\n\r\n                    ");
            __builder.AddMarkupContent(113, "<div class=\"col-sm-12\">\r\n                        <hr>\r\n                        <h4>Options</h4>\r\n                    </div>\r\n\r\n                    ");
            __builder.OpenElement(114, "td");
            __builder.OpenComponent<MatBlazor.MatIconButton>(115);
            __builder.AddAttribute(116, "Icon", "edit");
            __builder.AddAttribute(117, "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 180 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                            (() => AddMemberPopupselect())

#line default
#line hidden
#nullable disable
            )));
            __builder.AddAttribute(118, "Style", "color:dodgerblue");
            __builder.CloseComponent();
            __builder.CloseElement();
            __builder.AddMarkupContent(119, "\r\n                    ");
            __builder.AddMarkupContent(120, @"<div class=""btn btn-primary ng-scope ng-hide"" ng-click=""vm.applyForProject()"" ng-hide=""!vm.applicable || vm.profile.userType == 'Pi/CoPi' || vm.profile.userType == 'Staff/Faculty'"" ng-if=""!vm.already_joined"">
                        <strong>Apply</strong>
                    </div>
                    ");
            __builder.AddMarkupContent(121, @"<div class=""btn btn-primary ng-scope ng-hide"" ng-click=""vm.applyForProject()"" ng-show="" vm.profile.userType == 'Pi/CoPi' || vm.profile.userType == 'Staff/Faculty'"" ng-if=""!vm.already_joined"">
                        <strong>Join</strong>
                    </div>
                    

                    ");
            __builder.AddMarkupContent(122, "<div class=\"btn btn-primary ng-hide\" ng-click=\"vm.editProject()\" ng-show=\" vm.profile.userType == \'Pi/CoPi\' || vm.profile.userType == \'Staff/Faculty\'\">\r\n                        <strong>Edit</strong>\r\n                    </div>\r\n\r\n                    ");
            __builder.AddMarkupContent(123, "<div class=\"btn btn-primary ng-hide\" ng-click=\"vm.deleteProject()\" ng-show=\" vm.profile.userType == \'Pi/CoPi\' || vm.profile.userType == \'Staff/Faculty\'\">\r\n                        <strong>Delete</strong>\r\n                    </div>\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(124, "\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(125, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(126, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(127, "\r\n");
#nullable restore
#line 203 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
     if (AddMemberPopup)
    {

#line default
#line hidden
#nullable disable
            __builder.AddMarkupContent(128, "        \r\n        ");
            __builder.OpenElement(129, "div");
            __builder.AddAttribute(130, "class", "modal");
            __builder.AddAttribute(131, "tabindex", "-1");
            __builder.AddAttribute(132, "style", "display:block");
            __builder.AddAttribute(133, "role", "dialog");
            __builder.AddMarkupContent(134, "\r\n            ");
            __builder.OpenElement(135, "div");
            __builder.AddAttribute(136, "class", "modal-dialog");
            __builder.AddMarkupContent(137, "\r\n                ");
            __builder.OpenElement(138, "div");
            __builder.AddAttribute(139, "class", "modal-content");
            __builder.AddMarkupContent(140, "\r\n                    ");
            __builder.OpenElement(141, "div");
            __builder.AddAttribute(142, "class", "modal-header");
            __builder.AddMarkupContent(143, "\r\n                        ");
            __builder.AddMarkupContent(144, "<h3 class=\"modal-title\">Edit Evaluation</h3>\r\n                        \r\n                        ");
            __builder.OpenElement(145, "button");
            __builder.AddAttribute(146, "type", "button");
            __builder.AddAttribute(147, "class", "close");
            __builder.AddAttribute(148, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 
#nullable restore
#line 213 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                          ClosePopup

#line default
#line hidden
#nullable disable
            ));
            __builder.AddMarkupContent(149, "\r\n                            ");
            __builder.AddMarkupContent(150, "<span aria-hidden=\"true\">X</span>\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(151, "\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(152, "\r\n                    \r\n                    ");
            __builder.OpenElement(153, "div");
            __builder.AddAttribute(154, "class", "modal-body");
            __builder.AddMarkupContent(155, "\r\n                        ");
            __builder.OpenComponent<MatBlazor.MatAutocomplete<ApplicationUser>>(156);
            __builder.AddAttribute(157, "Collection", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<System.Collections.Generic.IEnumerable<ApplicationUser>>(
#nullable restore
#line 219 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                      ColUsers

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(158, "Label", "Pick one");
            __builder.AddAttribute(159, "CustomStringSelector", new System.Func<ApplicationUser, System.String>(
#nullable restore
#line 219 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                                                                                                    i => i.Email

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(160, "Value", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<ApplicationUser>(
#nullable restore
#line 219 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                                                                                                                                 objUser

#line default
#line hidden
#nullable disable
            ));
            __builder.AddAttribute(161, "ValueChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<ApplicationUser>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<ApplicationUser>(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => objUser = __value, objUser))));
            __builder.AddAttribute(162, "ItemTemplate", (Microsoft.AspNetCore.Components.RenderFragment<ApplicationUser>)((context) => (__builder2) => {
                __builder2.AddMarkupContent(163, "\r\n                                ");
                __builder2.OpenElement(164, "div");
                __builder2.AddAttribute(165, "style", "display: flex; flex-direction: row; width: 100%;");
                __builder2.AddMarkupContent(166, "\r\n                                    ");
                __builder2.OpenElement(167, "div");
                __builder2.AddAttribute(168, "style", "flex: 1;");
                __builder2.AddContent(169, 
#nullable restore
#line 222 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                           context.Email

#line default
#line hidden
#nullable disable
                );
                __builder2.CloseElement();
                __builder2.AddMarkupContent(170, "\r\n                                    \r\n                                ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(171, "\r\n                            ");
            }
            ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(172, "\r\n                        <br>\r\n                        ");
            __builder.OpenElement(173, "p");
            __builder.AddMarkupContent(174, "\r\n                            Selected value: ");
            __builder.AddContent(175, 
#nullable restore
#line 229 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                              objUser?.Email

#line default
#line hidden
#nullable disable
            );
            __builder.AddMarkupContent(176, "\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(177, "\r\n                        <br>\r\n                        \r\n                        ");
            __builder.OpenElement(178, "button");
            __builder.AddAttribute(179, "class", "btn btn-primary");
            __builder.AddAttribute(180, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create<Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this, 
#nullable restore
#line 233 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
                                                                  (() => AddUserToProject(objUser))

#line default
#line hidden
#nullable disable
            ));
            __builder.AddMarkupContent(181, "\r\n                            Add User\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(182, "\r\n\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(183, "\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(184, "\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(185, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(186, "\r\n");
#nullable restore
#line 241 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
        

    }

#line default
#line hidden
#nullable disable
#nullable restore
#line 243 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
     
}

#line default
#line hidden
#nullable disable
        }
        #pragma warning restore 1998
#nullable restore
#line 246 "C:\Users\jayt7\Source\Repos\Senior-Project\SPWA\Pages\ProjectDetails.razor"
       

    [CascadingParameter]
    private Task<AuthenticationState> authenticationStateTask { get; set; }
    System.Security.Claims.ClaimsPrincipal CurrentUser;
    Project project;
    [Parameter]
    public int projectId { get; set; }
    ApplicationUser objUser = new ApplicationUser();
    ApplicationUser objUser2 = new ApplicationUser();
    List<ApplicationUser> ColUsers = new List<ApplicationUser>();
    bool AddMemberPopup = false;

    protected override async Task OnInitializedAsync()
    {
        await GetUsers();
        // Get the current user
        var user = (await authenticationStateTask).User;
        // Get the Projects for the current user
        // We access ProjectService using @Service
        project = await @Service.GetSelectProjectAsync(projectId);
        CurrentUser = (await authenticationStateTask).User;
    }

    void ClosePopup()
    {
        AddMemberPopup = false;
    }
    void AddMemberPopupselect()
    {
        AddMemberPopup = true;
    }
    void AddUserToProject(ApplicationUser userToAdd)
    {
        objUser2 = userToAdd;
       
        //project.Members.Add(objUser2);
        //var result = @Service.UpdateProjectAsync(project);
        AddMemberPopup = false;
    }




    public async Task GetUsers()
    {
        // Collection to hold users
        ColUsers = new List<ApplicationUser>();
        // get users from _UserManager
        var user = _UserManager.Users.Select(x => new ApplicationUser
        {
            Id = x.Id,
            UserName = x.UserName,
            Email = x.Email,
            PasswordHash = "*****"
        });
        foreach (var item in user)
        {
            var UserResult = await _UserManager.IsInRoleAsync(item, "Administrators");
            if (!UserResult)
            {
                ColUsers.Add(item);
            }
        }
    }


#line default
#line hidden
#nullable disable
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private AuthenticationStateProvider AuthenticationStateProvider { get; set; }
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private UserManager<ApplicationUser> _UserManager { get; set; }
        [global::Microsoft.AspNetCore.Components.InjectAttribute] private NavigationManager NavigationManager { get; set; }
    }
}
#pragma warning restore 1591
