1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5495],{15744:e=>{e.exports=function(e,r){for(var a=-1,n=null==e?0:e.length;++a<n;)if(r(e[a],a,e))return!0;return!1}},19465:(e,r,a)=>{var n=a(2331),i=a(39004),t=a(66783);function o(e){var r=-1,a=null==e?0:e.length;for(this.__data__=new n;++r<a;)this.add(e[r])}o.prototype.add=o.prototype.push=i,o.prototype.has=t,e.exports=o},19887:e=>{e.exports=function(e){var r=-1,a=Array(e.size);return e.forEach(function(e,n){a[++r]=[n,e]}),a}},28375:(e,r,a)=>{var n=a(19465),i=a(15744),t=a(28389);e.exports=function(e,r,a,o,l,c){var s=1&a,d=e.length,u=r.length;if(d!=u&&!(s&&u>d))return!1;var h=c.get(e),p=c.get(r);if(h&&p)return h==r&&p==e;var y=-1,g=!0,m=2&a?new n:void 0;for(c.set(e,r),c.set(r,e);++y<d;){var v=e[y],x=r[y];if(o)var f=s?o(x,v,y,r,e,c):o(v,x,y,e,r,c);if(void 0!==f){if(f)continue;g=!1;break}if(m){if(!i(r,function(e,r){if(!t(m,r)&&(v===e||l(v,e,a,o,c)))return m.push(r)})){g=!1;break}}else if(!(v===x||l(v,x,a,o,c))){g=!1;break}}return c.delete(e),c.delete(r),g}},28389:e=>{e.exports=function(e,r){return e.has(r)}},30076:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/users/manageUsers",function(){return a(32725)}])},32725:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>q});var n=a(37876),i=a(78401),t=a(12164),o=a(25528),l=a(56085),c=a(58718),s=a(68803),d=a(80348),u=a(99875),h=a(34403),p=a(23902),y=a(41946),g=a.n(y),m=a(14232),v=a(5646),x=a(26239),f=a(69416),b=a(88602),C=a(86801),j=a(54587),B=a.n(j),I=a(89099),w=a(68039),z=a(76552);let G={fontSize:"16px"},N=e=>{switch(e){case 5:return(0,n.jsx)("b",{children:"Country: "});case 6:return(0,n.jsx)("b",{children:"State: "});case 7:return(0,n.jsx)("b",{children:"County: "});case 8:return(0,n.jsx)("b",{children:"City: "});case 10:return(0,n.jsx)("b",{children:"Neighborhood: "});default:return""}},k=e=>{var r,a,i;let{name:t,user:o,languageId:l}=e,c=z.n8[l];return(0,n.jsxs)(w.A,{sx:{display:"flex",flexDirection:"column",minWidth:"31vw",marginX:"16px",marginTop:"-50px"},children:[(0,n.jsxs)(w.A,{children:[(0,n.jsx)("span",{style:G,children:"Boundaries for "}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{style:G,children:(0,n.jsx)("b",{children:t})})]}),(0,n.jsx)("br",{}),(0,n.jsxs)(w.A,{children:[(0,n.jsx)("span",{style:{fontSize:"12px"},children:"Church Boundary"}),(0,n.jsx)("br",{}),(0,n.jsxs)("span",{style:G,children:[o.churchGeographyUserRole?(e=>{switch(e.churchGeography.typeId){case 0:return(0,n.jsx)("b",{children:"All: "});case 1:return(0,n.jsx)("b",{children:"Area: "});case 2:return(0,n.jsx)("b",{children:"Mission: "});case 3:return(0,n.jsx)("b",{children:"Coordinating Council: "});case 4:return(0,n.jsx)("b",{children:"Stake: "});case 11:return(0,n.jsx)("b",{children:"National: "});case 12:return(0,n.jsx)("b",{children:"None: "});default:return""}})(o.churchGeographyUserRole):""," ",o.churchGeographyUserRole?o.churchGeographyUserRole.churchGeography.name:""]})]}),(0,n.jsx)("br",{}),(0,n.jsxs)(w.A,{sx:{maxHeight:"200px",overflow:"auto"},children:[(0,n.jsx)("span",{style:{fontSize:"12px"},children:"Civic Boundaries"}),(0,n.jsx)("br",{}),(null==(a=o.churchGeographyUserRole)||null==(r=a.churchBoundaryCivics)?void 0:r.length)>0?o.churchGeographyUserRole.churchBoundaryCivics.map((e,r)=>(0,n.jsxs)(w.A,{style:{marginBottom:"8px"},children:[(0,n.jsx)("b",{children:N(e.civicGeography.typeId)}),e.civicGeography.translations[c-1].name.replace(/"/g,"")]},r)):"",(null==(i=o.organizationUserRoles)?void 0:i.length)>0&&o.organizationUserRoles.map((e,r)=>{var a;return(null==(a=e.civicGeographies)?void 0:a.length)>0?e.civicGeographies.map((e,a)=>(0,n.jsxs)(w.A,{style:{marginBottom:"8px"},children:[(0,n.jsx)("b",{children:N(e.typeId)}),e.translations[c-1].name.replace(/"/g,"")]},"".concat(r,"-").concat(a))):null})]})]})};var A=a(75862);let U=e=>{var r,a;let{user:i}=e;return(0,n.jsxs)(w.A,{"data-testid":"manageUserOrgModal",sx:{display:"flex",flexDirection:"column",minWidth:"31vw",marginX:"16px",marginTop:"-50px"},children:[(0,n.jsx)(A.A,{variant:"h4",gutterBottom:!0,children:"Organizations"}),(0,n.jsx)(w.A,{sx:{maxHeight:"200px",overflow:"auto"},children:(null==(r=i.representativeOrganizations)?void 0:r.length)>0?i.representativeOrganizations.map((e,r)=>(0,n.jsx)(w.A,{children:(0,n.jsx)("span",{children:e.name})},r)):(null==(a=i.organizationUserRoles)?void 0:a.length)>0?i.organizationUserRoles.map((e,r)=>(0,n.jsx)(w.A,{children:(0,n.jsx)("span",{children:e.organization.name})},r)):null})]})};var R=a(97978),L=a(25045);let S=JSON.parse('[{"label":"Admins within my Church Boundary","value":[{"key":"adminType","value":[1,2,3]},{"key":"churchBoundary","value":{"ldsGeographyId":"|boundaryId|","boundaryName":"|boundaryName|","showChildren":true}}]},{"label":"Leads within my Church Boundary","value":[{"key":"adminType","value":[1,2,100]},{"key":"churchBoundary","value":{"ldsGeographyId":"|boundaryId|","boundaryName":"|boundaryName|","showChildren":true}}]},{"label":"Org Admins within my Church Boundary","value":[{"key":"adminType","value":[1]},{"key":"churchBoundary","value":{"ldsGeographyId":"|boundaryId|","boundaryName":"|boundaryName|","showChildren":true}}]}]'),_="175px 175px 150px 175px 200px 175px 175px 175px",T=[17,18],O=[7,8,9,10,15,16],E=[6,8,10,16,18],M=(0,v.Ay)(h.Ay).withConfig({componentId:"sc-9fb0ad84-0"})(["overflow-x:auto;padding-top:32px;background-image:linear-gradient(to right,white,white),linear-gradient(to right,white,white),linear-gradient(to right,rgba(0,0,0,0.25),rgba(255,255,255,0)),linear-gradient(to left,rgba(0,0,0,0.25),rgba(255,255,255,0));background-position:left center,right center,left center,right center;background-repeat:no-repeat;background-color:white;background-size:20px 100%,20px 100%,10px 100%,10px 100%;background-attachment:local,local,scroll,scroll;"]),D=(0,v.Ay)(i.A).withConfig({componentId:"sc-9fb0ad84-1"})(["&:hover{cursor:pointer;}"]),F=v.Ay.div.withConfig({componentId:"sc-9fb0ad84-2"})(["margin-left:75px;width:calc(100% - 75px);"]),P=(0,v.Ay)(F).withConfig({componentId:"sc-9fb0ad84-3"})(["border-bottom:1px solid #dedede;padding-bottom:32px;@media (min-width:1200px){max-width:1200px;}"]),W=(0,v.Ay)(F).withConfig({componentId:"sc-9fb0ad84-4"})([""]);v.Ay.button.withConfig({componentId:"sc-9fb0ad84-5"})(["display:flex;align-items:center;font-size:19px;line-height:28px;color:#0081a0;font-weight:700;"]),v.Ay.div.withConfig({componentId:"sc-9fb0ad84-6"})(["display:flex;gap:20px;align-items:center;height:40px;"]),(0,v.Ay)(d.A).withConfig({componentId:"sc-9fb0ad84-7"}
1)([".MuiFormControlLabel-label{position:absolute;width:75px;top:-32px;color:#64686c;}"]);let J=v.Ay.div.withConfig({componentId:"sc-9fb0ad84-8"})(["display:flex;align-items:center;margin:32px 0;gap:24px;"]),Q=(0,v.Ay)(s.aT).withConfig({componentId:"sc-9fb0ad84-9"})(["padding-left:75px !important;margin-left:0 !important;position:relative;left:0;& > div{transform:none;position:relative;left:0;}"]);function X(){var e,r,a,s;let{query:d,replace:u}=(0,I.useRouter)(),[y,v]=(0,m.useState)(d),{store:j,resource:w,dispatch:G}=(0,p.P)(),N=w.pages.dashboard.users.manageUsers,A=w.pages.dashboard.users.manageUsers.userQuickSearch,{quickSearch:F}=w.pages.admin.manage,X=Object.values(x.zM).filter(e=>"string"==typeof e).map(e=>({label:N.userQuickSearch.adminType[e.toLowerCase()],value:x.zM[e]})),q=[{label:A.adminType.leadOnly,value:100}],H={...d,civicBoundary:d.civicBoundaryId&&d.civicBoundaryName?{civicBoundaryId:d.civicBoundaryId,civicBoundaryName:d.civicBoundaryName,civicBoundaryChildren:d.civicBoundaryChildren,civicBoundaryCountryId:d.civicBoundaryCountryId,civicBoundaryStateId:null!=(r=d.civicBoundaryStateId)?r:"",civicBoundaryCountyId:null!=(a=d.civicBoundaryCountyId)?a:"",civicBoundaryCityId:null!=(s=d.civicBoundaryCityId)?s:""}:null,churchBoundary:d.ldsGeographyId&&d.boundaryName?{ldsGeographyId:d.ldsGeographyId,boundaryName:d.boundaryName,showChildren:d.showChildren}:null,location:d.city||d.state||d.zip?{city:d.city,state:d.state,zip:d.zip}:null,adminType:d.isOrg||d.isSpecialist||d.isCommunity||d.isNonAdmin||d.isLeadOnly?[...d.isNonAdmin?[x.zM.None]:[],...d.isOrg?[x.zM.Organization]:[],...d.isSpecialist?[x.zM.Specialist]:[],...d.isCommunity?[x.zM.Community]:[],...d.isLeadOnly?[100]:[]]:null},[K,V]=(0,m.useState)(0),[$,Y]=(0,m.useState)([]),[Z,ee]=(0,m.useState)(0),[er,ea]=(0,m.useState)(!1),[en,ei]=(0,m.useState)(null),[et,eo]=(0,m.useState)(null),[el,ec]=(0,m.useState)({prop:"",dir:"asc"}),es=z.n8[null==(e=j.user)?void 0:e.language],ed=async e=>{ea(!0);let r=!g()(e,y);r&&v(e);let a=r?0:K,n=await (0,C.s2f)(a,20,e),i=n.data.data.users,t=n.data.data.usersCount;Y(e=>r?i:[...e,...i]),ee(t),V(a+1),ea(!1)},eu=$.length<Z,eh=e=>e&&0!==e.length?e.map(e=>null==e?void 0:e.name).filter(Boolean):[],ep=e=>{ec(r=>({prop:e,dir:r.prop===e&&"asc"===r.dir?"desc":"asc"}))};return(0,L.A)(()=>{Object.keys(y).length>0&&ed(y)}),(0,m.useEffect)(()=>{Y([...$].sort((e,r)=>{let a=e=>{var r,a,n,i,t,o,l,c,s,d,u,h,p,y;if("adminType"===el.prop){if(null!==e.churchGeographyUserRole){if(T.includes(e.churchGeographyUserRole.roleId))return"Global";else if(O.includes(e.churchGeographyUserRole.roleId))return"Specialist";else if(19===e.churchGeographyUserRole.roleId)return"Dev";else if(4===e.churchGeographyUserRole.roleId)return"Community Specialist"}else if((null==e?void 0:e.organizationUserRoles.length)>0)return"Organization";else return"";return}if("churchBoundary"===el.prop)return null!=(n=null==(a=e.churchGeographyUserRole)||null==(r=a.churchGeography)?void 0:r.name)?n:"";if("civicBoundary"===el.prop)return null!=(o=null==(t=e.churchGeographyUserRole)||null==(i=t.churchBoundaryCivics[0])?void 0:i.civicGeography.name)?o:"";if("organization"===el.prop)return null!==e.churchGeographyUserRole&&(null==(l=e.representativeOrganizations)?void 0:l.length)>0?(null==(s=e.representativeOrganizations[0])?void 0:s.name)||"":(null==(c=e.organizationUserRoles)?void 0:c.length)>0&&(null==(u=e.organizationUserRoles[0])||null==(d=u.organization)?void 0:d.name)||"";if("location"===el.prop){return{state:(null==(h=e.userLocation)?void 0:h.displayState)||"",city:(null==(p=e.userLocation)?void 0:p.displayCity)||""}}if("role"===el.prop){return e.userChurchGeographyAdminLabels.length>0?(null==(y=e.userChurchGeographyAdminLabels[0])?void 0:y.churchGeographyAdminLabelEnum.name)||"":""}return el.prop.split(".").reduce((e,r)=>e&&e[r]?e[r]:null,e)},n=a(e),i=a(r);if("location"===el.prop){let e="asc"===el.dir?n.state.localeCompare(i.state):i.state.localeCompare(n.state);return 0!==e?e:"asc"===el.dir?n.city.localeCompare(i.city):i.city.localeCompare(n.city)}return"string"==typeof n?"asc"===el.dir?n.localeCompare(i):i.localeCompare(n):"number"==typeof n?"asc"===el.dir?n-i:i-n:0}))},[el]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Ru,{title:N.title}),(0,n.jsx)(Q,{title:N.title}),(0,n.jsx)(P,{"data-testid":"searchChipsContainer",children:(0,n.jsx)(b.oK,{disableOnNoFilters:!0,quickSearchType:x.T4.AdminUser,predefinedQuickSearches:S,title:F.prompt,chips:[{label:A.name.label,type:b.Nx.Text,key:"name",value:H.name,input
1Label:A.name.inputLabel,description1:A.name.desc1,description2:A.name.desc2},{label:A.organization.label,type:b.Nx.Text,key:"organization",value:H.organization,inputLabel:A.organization.inputLabel,description1:A.organization.desc1,description2:A.organization.desc2},{label:A.email.label,type:b.Nx.Text,key:"email",value:H.email,inputLabel:A.email.inputLabel,description1:A.email.desc1},{label:A.civicBoundary.label,type:b.Nx.CivicBoundary,key:"civicBoundary",value:H.civicBoundary},{label:A.churchBoundary.label,type:b.Nx.ChurchBoundary,key:"churchBoundary",value:H.churchBoundary},{label:A.location.label,type:b.Nx.Location,key:"location",value:H.location,description:A.location.desc},{label:A.adminType.label,type:b.Nx.List,key:"adminType",value:H.adminType,description:A.adminType.desc,options:X,extraMultipleChoiceOptions:q,multipleChoice:!0}],chipsToSavedQuickSearchMapper:e=>{let r={page:K,size:20,name:e.name,org:e.organization,email:e.email,adminType:e.adminType,...e.civicBoundary&&{civicBoundaryId:e.civicBoundary.civicBoundaryId,civicBoundaryName:e.civicBoundary.civicBoundaryName,civicBoundaryChildren:e.civicBoundary.civicBoundaryChildren},...e.churchBoundary&&{ldsGeographyId:e.churchBoundary.ldsGeographyId,boundaryName:e.churchBoundary.boundaryName,showChildren:e.churchBoundary.showChildren},...e.location&&{...e.location.city&&{city:e.location.city},...e.location.state&&{state:e.location.state},...e.location.zip&&{zip:e.location.zip}}};return V(e.page),r},savedQuickSearchToChipsMapper:e=>{var r,a,n;let i=e.name?e.name:null,t=e.org?e.org:null,o=e.adminType?e.adminType:null,l=e.civicBoundaryId?{civicBoundaryId:e.civicBoundaryId,civicBoundaryName:e.civicBoundaryName,civicBoundaryChildren:e.civicBoundaryChildren,civicBoundaryCountryId:e.civicBoundaryCountryId,civicBoundaryStateId:null!=(r=e.civicBoundaryStateId)?r:"",civicBoundaryCountyId:null!=(a=e.civicBoundaryCountyId)?a:"",civicBoundaryCityId:null!=(n=e.civicBoundaryCityId)?n:""}:null,c=e.ldsGeographyId&&e.boundaryName?{ldsGeographyId:e.ldsGeographyId,boundaryName:e.boundaryName,showChildren:e.showChildren}:null,s=e.city||e.state||e.zip?{city:e.city,state:e.state,zip:e.zip}:null,d=[{key:"name",value:i},{key:"organization",value:t},{key:"email",value:e.email},{key:"civicBoundary",value:l},{key:"churchBoundary",value:c},{key:"location",value:s},{key:"adminType",value:o}];return V(e.page),d},onSearch:e=>{let{civicBoundary:r,churchBoundary:a,location:n,adminType:i,...t}=e,o={...t,...r&&{civicBoundaryId:r.civicBoundaryId,civicBoundaryName:r.civicBoundaryName,civicBoundaryChildren:r.civicBoundaryChildren},...a&&{ldsGeographyId:a.ldsGeographyId,boundaryName:a.boundaryName,showChildren:a.showChildren},...n&&{...n.city&&{city:n.city},...n.state&&{state:n.state},...n.zip&&{zip:n.zip}},...(null==i?void 0:i.length)>0&&{...i.includes(x.zM.None)&&{isNonAdmin:!0},...i.includes(x.zM.Organization)&&{isOrg:!0},...i.includes(x.zM.Specialist)&&{isSpecialist:!0},...i.includes(x.zM.Community)&&{isCommunity:!0},...i.includes(100)&&{isLeadOnly:!0}}};u({query:{...o}}),ed(o)}})}),$.length?(0,n.jsxs)(W,{"data-testid":"manageUsersResultsContainer",children:[(0,n.jsxs)("h2",{"data-testid":"manageUsersResultsCount",children:[(0,f.A)(F.results.singular,F.results.plural,Z)," "]}),(0,n.jsxs)(M,{dataQATag:"manageUsersTable",children:[(0,n.jsxs)(h.UX,{columns:_,children:[(0,n.jsx)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("lastName"),"data-testid":"name",children:"Name"}),(0,n.jsx)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("email"),"data-testid":"email",children:"Email"}),(0,n.jsx)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("location"),"data-testid":"location",children:"Location"}),(0,n.jsx)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("adminType"),"data-testid":"adminType",children:"Admin Type"}),(0,n.jsxs)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("churchBoundary"),"data-testid":"churchBoundary",children:[" ","Church Boundary"]}),(0,n.jsx)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("civicBoundary"),"data-testid":"civicBoundary",children:"Civic Boundary"}),(0,n.jsx)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("organization"),"data-testid":"organization",children:"Organization"}),(0,n.jsx)(h.C3,{style:{cursor:"pointer"},onClick:()=>ep("role"),"data-testid":"role",children:"Role"})]}),$.map(e=>{var r,a,o,s,d,u,p,y,g,m,v,x;let f,b,C;return(0,n.jsxs)(h.Qq,{columns:_,"data-testid":e.id,children:[(0,n.jsx)(h.C3,{children:(0,n.jsx)(t.A,{title:e.lastName+", "+e.firstName,placement:"top",arrow:!0,enterTouchDelay:0,leaveTouchDelay:3e3,children:(0,n.jsx)(i.A,{href:"/dashboard/users/userDetails?userid=".concat(e.id),target:"_blank",rel:"noopener noreferrer","data-testid":"userDetailsLink",children:(0,R.EJ)(e.lastName+", "+e.firstName,16)})})}),(0,n.jsx)(h.C3,{children:(0,n.jsx)(c.cW,{label:"",text:e.email,isEmail
1:!0,truncateNum:15})}),(0,n.jsx)(h.C3,{children:(0,n.jsx)(t.A,{enterTouchDelay:0,leaveTouchDelay:3e3,title:(null==e?void 0:e.userLocation)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:(null==(r=e.userLocation)?void 0:r.displayPostalCode)?"".concat(e.userLocation.displayPostalCode," "):""}),"(",(0,n.jsx)("span",{children:e.userLocation.displayCity}),",\xa0",(0,n.jsx)("span",{children:e.userLocation.displayState}),",\xa0",(0,n.jsx)("span",{children:e.userLocation.displayCountryCode.toUpperCase()}),")"]}):"",placement:"top",arrow:!0,disableFocusListener:!0,children:(0,n.jsx)("span",{className:"js-color-secondary",children:null!=(s=null==(a=e.userLocation)?void 0:a.displayState)?s:""})})}),(0,n.jsx)(h.C3,{children:(e=>{if(null!==e.churchGeographyUserRole){if(T.includes(e.churchGeographyUserRole.roleId))return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Global \xa0"}),E.includes(e.churchGeographyUserRole.roleId)&&(0,n.jsx)(B(),{src:"".concat(l.WL,"/ico_lead.svg"),alt:"Lead Icon",width:25,height:25})]});else if(O.includes(e.churchGeographyUserRole.roleId))return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Specialist \xa0"}),E.includes(e.churchGeographyUserRole.roleId)&&(0,n.jsx)(B(),{src:"".concat(l.WL,"/ico_lead.svg"),alt:"Lead Icon",width:25,height:25})]});else if(19===e.churchGeographyUserRole.roleId)return"Dev";else if(4===e.churchGeographyUserRole.roleId)return"Community Specialist"}else{if(!((null==e?void 0:e.organizationUserRoles.length)>0))return"";let r=5;return null==e||e.organizationUserRoles.forEach(e=>{e.roleId>r&&(r=e.roleId)}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"Organization"})," ",6==r&&(0,n.jsx)(B(),{src:"".concat(l.WL,"/ico_lead.svg"),alt:"Lead Icon",width:25,height:25})]})}})(e)}),(0,n.jsx)(h.C3,{children:(0,n.jsx)(D,{onClick:()=>{ei({name:"".concat(e.firstName," ").concat(e.lastName),user:e,languageId:j.user.language})},children:(0,R.EJ)(null!=(d=null==(o=e.churchGeographyUserRole)?void 0:o.churchGeography.name)?d:"",20)})}),(0,n.jsx)(h.C3,{children:(0,n.jsx)(D,{onClick:()=>{ei({name:"".concat(e.firstName," ").concat(e.lastName),user:e,languageId:j.user.language})},children:(f="",b=0,((null==(y=e.churchGeographyUserRole)||null==(p=y.churchBoundaryCivics)?void 0:p.length)>1&&(b=e.churchGeographyUserRole.churchBoundaryCivics.length),e.organizationUserRoles&&e.organizationUserRoles.forEach(e=>{e.civicGeographies&&(b+=e.civicGeographies.length)}),f=b>1?"(".concat(b,") "):"",e.churchGeographyUserRole)?(0,R.EJ)("".concat(f).concat(null!=(m=null==(g=e.churchGeographyUserRole)?void 0:g.churchBoundaryCivics.map(e=>e.civicGeography.translations[es-1].name).join(", "))?m:""),18):(0,R.EJ)("".concat(f).concat(null==(v=e.organizationUserRoles)?void 0:v.map(e=>{var r;return null!=(r=e.civicGeographies.map(e=>e.translations[es-1].name).join(", "))?r:""})),18))})}),(0,n.jsx)(h.C3,{children:(0,n.jsx)(D,{onClick:()=>{eo({user:e})},children:(e=>{let r=null!==e.churchGeographyUserRole,a=[],n=(a=r?eh(e.representativeOrganizations):eh(e.organizationUserRoles.map(e=>null==e?void 0:e.organization))).length>1?"(".concat(a.length,") "):"",i="".concat(n).concat(a.join(", "));return(0,R.EJ)(i,18)})(e)})}),(0,n.jsx)(h.C3,{children:(0,n.jsx)(t.A,{title:null!=(u=e.userChurchGeographyAdminLabels.map(e=>e.churchGeographyAdminLabelEnum.name).join(", "))?u:"",placement:"top",arrow:!0,enterTouchDelay:0,leaveTouchDelay:3e3,children:(0,n.jsx)("span",{children:(C="",e.userChurchGeographyAdminLabels.length>1&&(C="(".concat(e.userChurchGeographyAdminLabels.length,") ")),(0,R.EJ)("".concat(C).concat(null!=(x=e.userChurchGeographyAdminLabels.map(e=>e.churchGeographyAdminLabelEnum.name).join(", "))?x:""),18))})})})]},e.id)})]}),$.length&&(0,n.jsxs)(J,{children:[(0,n.jsxs)("span",{style:{fontSize:"14px"},children:["Showing ",$.length," of ",Z," ",F.results.plural]}),eu&&(0,n.jsx)(o.A,{variant:"outlined",onClick:()=>{ed(y)},disabled:er,children:F.showMore})]})]}):(0,n.jsx)(W,{"data-testid":"manageUsersNoResultsContainer",children:(0,n.jsx)("h2",{"data-testid":"manageUsersNoResultsCount",children:"".concat($.length," ").concat(F.results.plural)})}),null===en?null:(0,n.jsx)(c.d5,{active:!0,style:{width:"95%"},fullWidth:!1,onCloseGesture:()=>{ei(null)},children:(0,n.jsx)(k,{name:en.name,user:en.user,languageId:en.languageId})}),null===et?null:(0,n.jsx)(c.d5,{active:!0,style:{width:"95%"},fullWidth:!1,onCloseGesture:()=>{eo(null)},children:(0,n.jsx)(U,{user:et.user})}),(0,n.jsx)("div",{"data-testid":"manageUsersLoaded","data-loaded":!er})]})}X.PageLayout=u.A;let q=X},33872:(e,r,a)=>{var n=a(92441),i=a(28375),t=a(63700),o=a(78583),l=a(24015),c=a(93007),s=a(4756),d=a(82731),u="[object Arguments]",h="[object Array]",p="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(e,r,a,g,m,v){var x=c(e),f=c(r),b=x?h:l(e),C=f?h:l(r);b=b==u?p:b,C=C==u?p:C;var j=b==p,B=C==p,I=b==C;if(I&&s(e)){if(!s(r))return!1;x=!0,j=!1}if(I&&!j)return v||(v=new n),x||d(e)?i(e,r,a,g,m,v):t(e,r,b,a,g,m,v);if(!(1&a)){var w=j&&y.call(e,"__wrapped__"),z=B&&y.call(r,"__wrapped__");
1if(w||z){var G=w?e.value():e,N=z?r.value():r;return v||(v=new n),m(G,N,a,g,v)}}return!!I&&(v||(v=new n),o(e,r,a,g,m,v))}},39004:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},41946:(e,r,a)=>{var n=a(71266);e.exports=function(e,r){return n(e,r)}},44577:e=>{e.exports=function(e){var r=-1,a=Array(e.size);return e.forEach(function(e){a[++r]=e}),a}},63700:(e,r,a)=>{var n=a(64451),i=a(75082),t=a(79364),o=a(28375),l=a(19887),c=a(44577),s=n?n.prototype:void 0,d=s?s.valueOf:void 0;e.exports=function(e,r,a,n,s,u,h){switch(a){case"[object DataView]":if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)break;e=e.buffer,r=r.buffer;case"[object ArrayBuffer]":if(e.byteLength!=r.byteLength||!u(new i(e),new i(r)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return t(+e,+r);case"[object Error]":return e.name==r.name&&e.message==r.message;case"[object RegExp]":case"[object String]":return e==r+"";case"[object Map]":var p=l;case"[object Set]":var y=1&n;if(p||(p=c),e.size!=r.size&&!y)break;var g=h.get(e);if(g)return g==r;n|=2,h.set(e,r);var m=o(p(e),p(r),n,s,u,h);return h.delete(e),m;case"[object Symbol]":if(d)return d.call(e)==d.call(r)}return!1}},66783:e=>{e.exports=function(e){return this.__data__.has(e)}},69416:(e,r,a)=>{"use strict";a.d(r,{A:()=>n});let n=function(e,r,a){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=1===a||-1===a?e:r;return n?"".concat(a," ").concat(i):i}},71266:(e,r,a)=>{var n=a(33872),i=a(28654);e.exports=function e(r,a,t,o,l){return r===a||(null!=r&&null!=a&&(i(r)||i(a))?n(r,a,t,o,e,l):r!=r&&a!=a)}},76552:(e,r,a)=>{"use strict";a.d(r,{$G:()=>i,f8:()=>t,n8:()=>n});var n=function(e){return e[e["en-us"]=1]="en-us",e[e["en-gb"]=2]="en-gb",e[e["mx-es"]=3]="mx-es",e[e["fr-ca"]=4]="fr-ca",e[e["pt-pt"]=5]="pt-pt",e[e["hu-hu"]=6]="hu-hu",e[e["de-de"]=7]="de-de",e}({});let i={"en-us":1,"en-gb":2,"mx-es":3,"fr-ca":4,"pt-pt":5,"hu-hu":6,"de-de":7},t={"en-us":"EN","en-gb":"GB","es-mx":"ES","fr-ca":"FR","pt-pt":"PT","hu-hu":"HU","de-de":"DE"}},78583:(e,r,a)=>{var n=a(48872),i=Object.prototype.hasOwnProperty;e.exports=function(e,r,a,t,o,l){var c=1&a,s=n(e),d=s.length;if(d!=n(r).length&&!c)return!1;for(var u=d;u--;){var h=s[u];if(!(c?h in r:i.call(r,h)))return!1}var p=l.get(e),y=l.get(r);if(p&&y)return p==r&&y==e;var g=!0;l.set(e,r),l.set(r,e);for(var m=c;++u<d;){var v=e[h=s[u]],x=r[h];if(t)var f=c?t(x,v,h,r,e,l):t(v,x,h,e,r,l);if(!(void 0===f?v===x||o(v,x,a,t,l):f)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var b=e.constructor,C=r.constructor;b!=C&&"constructor"in e&&"constructor"in r&&!("function"==typeof b&&b instanceof b&&"function"==typeof C&&C instanceof C)&&(g=!1)}return l.delete(e),l.delete(r),g}},80348:(e,r,a)=>{"use strict";a.d(r,{A:()=>d});var n=a(37876),i=a(14232),t=a(47646),o=a(79334),l=a(38254),c=a(99760);let s=(0,i.forwardRef)((e,r)=>{let{id:a,value:s,errorMessage:d,label:u,onFocus:h,onBlur:p,onChange:y,disabled:g,dataQATag:m,isControlled:v,className:x,...f}=e,[b,C]=(0,i.useState)(s||!1),j=a||"js-checkbox-".concat(f.name),B=(0,i.useRef)(null);return(0,i.useEffect)(()=>{v&&C(s)},[s,v]),(0,n.jsxs)(t.A,{className:x,error:!!d,children:[(0,n.jsx)(o.A,{control:(0,n.jsx)(c.A,{id:j,value:b,ref:r||B,"data-testid":m,name:f.name,onFocus:e=>{null==h||h(e)},onBlur:e=>{null==p||p(e)},onChange:e=>{null==y||y(e,e.target.checked),v||C(e.target.checked)},disabled:g,checked:!0===b,sx:{...d?{"& svg":{border:"1px solid red"}}:null}}),label:u}),d&&(0,n.jsx)(l.A,{children:d})]})});s.displayName="Checkbox";let d=s}},e=>{e.O(0,[1120,7301,6049,5947,7818,1422,8014,6758,636,6593,8792],()=>e(e.s=30076)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.