PageSourceSearch

https://www.justserve.org/_next/static/chunks/pages/dashboard/orga…/manageendorsements-06211c921103a3c0.js

js justserve.org collected 2026-09-24 09:18:26 UTC 20,646 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2618],{5674:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var a=t(29796),i=t(37876);let o=(0,a.A)((0,i.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},34403:(e,n,t)=>{"use strict";t.d(n,{Ay:()=>u,C3:()=>r,Qq:()=>s,UX:()=>d});var a=t(37876),i=t(14232),o=t(5646);let l=o.Ay.div.withConfig({componentId:"sc-1e97a093-0"})(["margin-bottom:40px;"]),r=o.Ay.div.withConfig({componentId:"sc-1e97a093-1"})(["padding:12px 16px;box-sizing:border-box;display:flex;align-items:center;border:1px solid white;&:last-child{border-right:none;}"]),s=(0,o.Ay)("div").withConfig({shouldForwardProp:e=>"columns"!==e}).withConfig({componentId:"sc-1e97a093-2"})(["display:grid;grid-template-columns:",";&:nth-of-type(even) ","{background-color:#eff0f0;}"],e=>{let{columns:n="1fr"}=e;return n},r),d=(0,o.Ay)(s).withConfig({componentId:"sc-1e97a093-3"})(["font-weight:700;font-size:19px;line-height:29px;","{border-right:none;border-top:none;border-left:none;border-bottom:2px solid #aaaaaa;}"],r),c=(0,i.forwardRef)((e,n)=>{let{children:t,className:i,dataQATag:o}=e;return(0,a.jsx)(l,{ref:n,className:i,"data-testid":o,children:t})});c.displayName="ProjectTable";let u=c},34892:(e,n,t)=>{"use strict";t.d(n,{AR:()=>i,Bd:()=>r,CU:()=>o,D$:()=>s,fw:()=>l,n8:()=>a});var a=function(e){return e.NONE_0="None",e.ORGANIZATION_1="Organization",e.VOLUNTEER_CENTER_2="Volunteer Center",e.DISASTER_RELIEF_3="Disaster Relief",e.NON_PROFIT_4="Nonprofit",e.GOV_CITY_5="Gov City",e.GOV_COUNTY_6="Gov County",e.GOV_STATE_7="Gov State",e.GOV_NATIONAL_8="Gov National",e.CORPORATION_9="Corporation",e.CLUB_AFFILIATED_10="Club Affiliated",e.CLUB_JUST_SERVE_11="Club JustServe",e.RELIGIOUS_12="Religious",e.SERVICE_13="Service",e.DISASTER_14="Disaster",e.CAMPAIGN_NATIONAL_15="Campaign National",e.CAMPAIGN_GLOBAL_16="Campaign Global",e}({});let i={0:"None",1:"Organization",2:"Volunteer Center",3:"Disaster Relief",4:"Nonprofit",5:"Gov City",6:"Gov County",7:"Gov State",8:"Gov National",9:"Corporation",10:"Club Affiliated",11:"Club JustServe",12:"Religious",13:"Service",14:"Disaster",15:"Campaign National",16:"Campaign Global"};var o=function(e){return e.NONE="None",e.CAMPAIGN_GLOBAL="Campaign Global",e.CAMPAIGN_NATIONAL="Campaign National",e.GOVERNMENT="Government",e.CORPORATION="Corporation",e.DISASTER="Disaster",e.SERVICE_CLUB="Service Club",e.DISASTER_RELIEF="Disaster Relief",e.NON_PROFIT="Non-Profit",e.ORGANIZATION="Organization",e.RELIGIOUS="Religious",e.SERVICE="Service",e.VOLUNTEER_CENTER="Volunteer Center",e}({}),l=function(e){return e.GOV_CITY="City / Local",e.GOV_COUNTY="County",e.GOV_STATE="State",e.GOV_NATIONAL="National",e}({}),r=function(e){return e.CLUB_AFFILIATED="Affiliated Club",e.CLUB_JUST_SERVE="JustServe Club",e}({});let s={Organization:"ORGANIZATION","Volunteer Center":"VOLUNTEER_CENTER","Disaster Relief":"DISASTER_RELIEF","Non-Profit":"NON_PROFIT","City / Local":"GOV_CITY",County:"GOV_COUNTY",State:"GOV_STATE",National:"GOV_NATIONAL",Corporation:"CORPORATION","Affiliated Club":"CLUB_AFFILIATED","JustServe Club":"CLUB_JUST_SERVE",Religious:"RELIGIOUS",Service:"SERVICE",Disaster:"DISASTER","Campaign National":"CAMPAIGN_NATIONAL","Campaign Global":"CAMPAIGN_GLOBAL"}},35545:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>Q});var a=t(37876),i=t(41422),o=t(7670),l=t(23902),r=t(94157),s=t(50454),d=t(42377),c=t(58718),u=t(68803),p=t(68173),m=t(5646),x=t(89099),g=t(14232),h=t(23158),C=t(68039),j=t(87717),y=t(7982),A=t(25528),v=t(76343),f=t(75862);let b=(0,m.Ay)(C.A).withConfig({componentId:"sc-39c0e0d-0"})(["border:1px solid #bbbdc0;max-height:","px;overflow-y:auto;scrollbar-width:thin;margin-top:4px;"],250),E=(0,m.Ay)(C.A).withConfig({componentId:"sc-39c0e0d-1"})(["display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;background-color:",";color:",";&:hover{background-color:",";}"],e=>{let{$selected:n}=e;return n?"#45A3C5":"inherit"},e=>{let{$selected:n}=e;return n?"white":"inherit"},e=>{let{$selected:n}=e;return n?"#45A3C5":"#E1F6FF"}),S=(0,m.Ay)(j.A).withConfig({componentId:"sc-39c0e0d-2"})(["margin-top:16px !important;"]),I=(0,m.Ay)(C.A).withConfig({componentId:"sc-39c0e0d-3"})(["display:flex;align-items:center;gap:24px;margin-top:16px;"]),O=e=>{let{open:n,onClose:t,onEndorse:o,heading:l,searchLabel:r,cancelLabel:s,endorseLabel:d}=e,[u,p]=(0,g.useState)(""),[m,x]=(0,g.useState)(null),[O,T]=(0,g.useState)(null),[_,N]=(0,g.useState)(!1),[R,w]=(0,g.useState)(!1),L=()=>{p(""),x(null),T(null),t()},P=async()=>
1{if(u.trim()){N(!0),T(null);try{let e=(await (0,h.Zr)(u,{activeOnly:!0,includeAll:!0})).data.data.adminOrganizationSearchByTitle;x(e)}catch(e){x([])}finally{N(!1)}}},G=async()=>{if(O){w(!0);try{await o(O),L()}finally{w(!1)}}};return(0,a.jsx)(c.d5,{active:n,heading:l,onCloseGesture:L,children:(0,a.jsxs)(C.A,{"data-testid":"addOrganizationEndorsementModal",children:[(0,a.jsxs)(C.A,{display:"flex",alignItems:"center",gap:2,mb:.5,children:[(0,a.jsx)(y.A,{label:r,variant:"outlined",size:"small",value:u,onChange:e=>p(e.target.value),onKeyDown:e=>"Enter"===e.key&&P(),sx:{flex:1},inputProps:{"data-testid":"endorsementOrgSearchInput"}}),(0,a.jsx)(A.A,{variant:"outlined",color:"primary",onClick:P,disabled:!u.trim()||_,"data-testid":"endorsementOrgSearchBtn",children:"Search"})]}),_&&(0,a.jsx)(C.A,{display:"flex",justifyContent:"center",mt:2,children:(0,a.jsx)(v.A,{size:24})}),!_&&null!==m&&(0,a.jsx)(b,{"data-testid":"endorsementOrgSearchResults",children:0===m.length?(0,a.jsx)(C.A,{p:1,children:(0,a.jsx)(f.A,{variant:"body2",children:"No Organizations Found"})}):m.map(e=>{var n,t;return(0,a.jsxs)(E,{$selected:(null==O?void 0:O.id)===e.id,onClick:()=>T(e),"data-testid":"endorsementOrgResultRow",children:[(0,a.jsx)(f.A,{variant:"body2",noWrap:!0,sx:{flex:7,fontSize:"16px"},children:e.name}),(0,a.jsxs)(f.A,{variant:"body2",sx:{flex:3,fontSize:"16px",textAlign:"right"},children:[null==e||null==(n=e.location)?void 0:n.displayCity,", ",null==e||null==(t=e.location)?void 0:t.displayState]})]},e.id)})}),O&&(0,a.jsxs)(S,{container:!0,spacing:1,"data-testid":"endorsementSelectedOrgDetail",children:[(0,a.jsx)(j.A,{size:3,children:(0,a.jsx)(i.VI,{sx:{width:100,height:100},children:(0,a.jsx)(c.es,{alt:O.name,url:O.logo,dataQATag:"endorsementOrgImage"})})}),(0,a.jsxs)(j.A,{size:9,sx:{padding:"0 !important"},children:[(0,a.jsx)(f.A,{variant:"h6",sx:{color:"#0081a0"},children:O.name}),(0,a.jsx)(f.A,{variant:"body2",sx:{fontSize:"14px",mt:.5},noWrap:!0,children:O.description}),(0,a.jsxs)(f.A,{variant:"body2",sx:{fontSize:"14px"},children:["Contact Name: ",O.contactName]}),(0,a.jsxs)(f.A,{variant:"body2",sx:{fontSize:"14px"},children:["Contact Phone: ",O.contactPhone]}),(0,a.jsxs)(f.A,{variant:"body2",sx:{fontSize:"14px"},children:["Contact email: ",O.contactEmail]})]})]}),(0,a.jsxs)(I,{children:[(0,a.jsx)(A.A,{variant:"text",onClick:L,"data-testid":"endorsementCancelBtn",children:s}),(0,a.jsx)(A.A,{variant:"contained",color:"primary",onClick:G,disabled:!O||R,"data-testid":"endorsementConfirmBtn",children:d})]})]})})};var T=t(10841),_=t.n(T),N=t(34403),R=t(76552),w=t(34892),L=t(85235),P=t(43212),G=t(93064),D=t(78401);let V=(0,m.Ay)(u.aT).withConfig({componentId:"sc-72d596a1-0"})(["padding-left:75px !important;margin-left:0 !important;position:relative;left:0;& > div{transform:none;position:relative;left:0;}"]),k=m.Ay.div.withConfig({componentId:"sc-72d596a1-1"})(["margin-left:75px;width:calc(100% - 75px);"]),F=(0,m.Ay)(P.A).withConfig({componentId:"sc-72d596a1-2"})(["margin-bottom:16px;"]),M=(0,m.Ay)(f.A).withConfig({componentId:"sc-72d596a1-3"})(["margin-bottom:16px;"]),z=(0,m.Ay)(f.A).withConfig({componentId:"sc-72d596a1-4"})(["font-weight:700 !important;margin-top:24px !important;margin-bottom:8px !important;"]),B="50px 250px 100px 150px 250px",U="50px 250px 150px 250px 130px",Y=e=>e.toSorted((e,n)=>{var t,a;return(null!=(t=e.name)?t:"").localeCompare(null!=(a=n.name)?a:"",void 0,{sensitivity:"base"})}),q=()=>{var e;let{dispatch:n,resource:t,store:i}=(0,l.P)(),o=(0,x.useRouter)(),r=t.pages.dashboard.manageEndorsement,u=Array.isArray(o.query.id)?o.query.id[0]:o.query.id,p=t.pages.dashboard.manageEndorsement,[m,C]=(0,g.useState)(0),[j,y]=(0,g.useState)(null),[v,b]=(0,g.useState)(""),[E,S]=(0,g.useState)([]),[I,T]=(0,g.useState)([]),[P,q]=(0,g.useState)([]),[J,Q]=(0,g.useState)(!1),[X,Z]=(0,g.useState)(null),[$,H]=(0,g.useState)(!1),[W,K]=(0,g.useState)([]),[ee,en]=(0,g.useState)(!1),[et,ea]=(0,g.useState)(!1);(0,g.useEffect)(()=>{u&&(async()=>{try{var e,n,t,a;Q(!0);let o=R.n8[i.lang],[l,r]=await Promise.all([(0,h.mI)(u,o),(0,h.wL)(u)]);b(null!=(t=null==(e=l.data.data.organization)?void 0:e.name)?t:"");
1let s=null!=(a=null==(n=r.data.data.organization)?void 0:n.endorsing)?a:[],d=s.filter(e=>2===e.statusId||3===e.statusId),c=s.filter(e=>1===e.statusId),p=async e=>{var n,t,a,i,l,r,s;let d=(await (0,h.mI)(e.organizationId,o)).data.data.organization;return{id:e.organizationId,name:null!=(a=d.name)?a:"-",type:null!=(i=w.AR[d.typeId])?i:"-",city:null!=(l=null==(n=d.location)?void 0:n.displayCity)?l:"",state:null!=(r=null==(t=d.location)?void 0:t.displayState)?r:"",activeProjects:null!=(s=d.projectsCount)?s:"-",endorsement:e}},[m,x]=await Promise.all([Promise.all(d.map(p)),Promise.all(c.map(p))]);S(Y(m)),T(Y(x))}finally{Q(!1)}})()},[u,i.lang]);let ei=async e=>{try{var t,a,o,l,c,p,m;await (0,h.ev)(e.id,u);let x=(await (0,h.mI)(e.id,R.n8[i.lang])).data.data.organization,g={id:e.id,name:null!=(o=x.name)?o:"-",type:null!=(l=w.AR[x.typeId])?l:"-",city:null!=(c=null==(t=x.location)?void 0:t.displayCity)?c:"",state:null!=(p=null==(a=x.location)?void 0:a.displayState)?p:"",activeProjects:null!=(m=x.projectsCount)?m:"-",endorsement:null};T(e=>Y([...e,g]));let C={message:r.toast.addSuccess,theme:s.nO.Success};n({type:d.y.AddSystemNotification,payload:C})}catch(t){let e={message:r.toast.addFailure,theme:s.nO.Danger};n({type:d.y.AddSystemNotification,payload:e})}},eo=async e=>{try{await (0,h.oT)(e.id,u),S(n=>n.filter(n=>n.id!==e.id)),T(n=>Y([...n,e]));let t={message:r.toast.approveSuccess,theme:s.nO.Success};n({type:d.y.AddSystemNotification,payload:t})}catch(t){let e={message:r.toast.approveFailure,theme:s.nO.Danger};n({type:d.y.AddSystemNotification,payload:e})}};(0,g.useEffect)(()=>{u&&(async()=>{try{H(!0);let e=(await (0,h.XI)(u)).filter(e=>1===e.statusId).map(e=>{var n,t,a,o,l,r,s,d,c,u,p,m,x;let g=null!=(u=null!=(c=null==(n=e.projectRecurring)?void 0:n.startDate)?c:null==(a=e.projectEvents)||null==(t=a[0])?void 0:t.start)?u:null,h=null!=(m=null!=(p=null==(o=e.projectRecurring)?void 0:o.endDate)?p:null==(r=e.projectEvents)||null==(l=r[0])?void 0:l.end)?m:null,C=[null==(s=e.projectEventLocation)?void 0:s.displayCity,null==(d=e.projectEventLocation)?void 0:d.displayState].filter(Boolean).join(", ")||"-";return{id:e.id,name:null!=(x=e.title)?x:"-",startDate:g?_()(g).locale(i.lang).format("MMM D, YYYY"):"-",endDate:h?_()(h).locale(i.lang).format("MMM D, YYYY"):"-",location:C}}).toSorted((e,n)=>{var t,a;return(null!=(t=e.name)?t:"").localeCompare(null!=(a=n.name)?a:"",void 0,{sensitivity:"base"})});q(e)}finally{H(!1)}})()},[u,i.lang]),(0,g.useEffect)(()=>{u&&(async()=>{try{var e,n;en(!0);let t=R.n8[i.lang],a=null!=(n=null==(e=(await (0,h.Q$)(u)).data.data.organization)?void 0:e.endorsedBy)?n:[],o=async e=>{var n,a,i,o,l,r,s;let d=(await (0,h.mI)(e.organizationEndorsedBy,t)).data.data.organization;return d?{id:e.organizationEndorsedBy,name:null!=(i=d.name)?i:"-",type:null!=(o=w.AR[d.typeId])?o:"-",city:null!=(l=null==(n=d.location)?void 0:n.displayCity)?l:"",state:null!=(r=null==(a=d.location)?void 0:a.displayState)?r:"",displayingProjects:null!=(s=d.projectsEnabled)&&s}:null},l=await Promise.all(a.map(o));K(Y(l))}finally{en(!1)}})()},[u,i.lang]);let el=(e,n)=>(0,a.jsxs)(N.Ay,{dataQATag:n?"pendingEndorsementsTable":"endorsedOrgsTable",children:[(0,a.jsxs)(N.UX,{columns:B,children:[(0,a.jsx)(N.C3,{}),(0,a.jsx)(N.C3,{children:r.columns.nameColumn}),(0,a.jsx)(N.C3,{style:{justifyContent:"center"},children:r.columns.projectsColumn}),(0,a.jsx)(N.C3,{children:r.columns.typeColumn}),(0,a.jsx)(N.C3,{children:r.columns.locationColumn})]}),e.map(e=>(0,a.jsxs)(N.Qq,{columns:B,"data-testid":n?"pendingOrgRow":"endorsedOrgRow",children:[(0,a.jsx)(N.C3,{style:{justifyContent:"center"},children:(0,a.jsx)(L.A,{items:n?[{title:r.popoverMenu.approve,testId:"pendingOrgApproveBtn",onClick:()=>eo(e)},{title:r.popoverMenu.reject,testId:"pendingOrgRejectBtn",onClick:()=>{setTimeout(()=>Z({id:e.id,action:"reject"}),0)}},{title:r.popoverMenu.details,testId:"pendingOrgViewDetailsBtn",onClick:()=>{window.open("/dashboard/orgs/org?id=".concat(e.id))}}]:[{title:r.popoverMenu.details,testId:"endorsedOrgViewDetailsBtn",onClick:()=>{window.open("/dashboard/orgs/org?id=".concat(e.id))}},{title:r.popoverMenu.remove,testId:"endorsedOrgRemoveEndorsementBtn",onClick:()=>{setTimeout(()=>Z({id:e.id,action:"remove"}),0)}}]})}),(0,a.jsx)(N.C3,{children:e.name}),(0,a.jsx)(N.C3,{style:{justifyContent:"center"},children:e.activeProjects}),(0,a.jsx)(N.C3,{children:e.type}
1),(0,a.jsx)(N.C3,{children:[e.city,e.state].filter(Boolean).join(", ")})]},e.id))]}),er="50px 250px 130px 130px 250px";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Ru,{title:p.title}),(0,a.jsx)(V,{title:p.title}),(0,a.jsxs)(k,{"data-testid":"manageEndorsementsPage",children:[(0,a.jsxs)(F,{value:m,onChange:(e,n)=>C(n),children:[(0,a.jsx)(G.A,{label:r.tabs.organizationEndorsed}),(0,a.jsx)(G.A,{label:r.tabs.projectEndorsed}),(0,a.jsx)(G.A,{label:r.tabs.endorsingOrganizations})]}),0===m&&(0,a.jsx)(a.Fragment,{children:J?(0,a.jsx)(f.A,{children:r.loading}):(0,a.jsxs)(a.Fragment,{children:[v&&(0,a.jsxs)(M,{variant:"body2",children:[v," ",r.description]}),(0,a.jsx)(A.A,{variant:"outlined",sx:{mb:3},onClick:()=>ea(!0),"data-testid":"addEndorsementBtn",children:r.button}),(0,a.jsx)(z,{variant:"h6",children:r.tables.pending}),el(E,!0),(0,a.jsx)(z,{variant:"h6",children:r.tables.endorsed}),el(I,!1)]})}),1===m&&(0,a.jsx)(a.Fragment,{children:$?(0,a.jsx)(f.A,{children:r.loading}):(0,a.jsxs)(a.Fragment,{children:[v&&(0,a.jsxs)(M,{variant:"body2",children:[v," ",r.projectsTab.description]}),(0,a.jsxs)(M,{variant:"body2",children:[r.projectsTab.additionalEndorsementText.split("{0}")[0],(0,a.jsx)(D.A,{href:"/dashboard/projects/active",target:"_blank",children:r.projectsTab.manageProjectsLinkText}),null!=(e=r.projectsTab.additionalEndorsementText.split("{0}")[1])?e:""]}),(0,a.jsx)(z,{variant:"h6",children:r.projectsTab.activeProjectsHeading}),(0,a.jsxs)(N.Ay,{dataQATag:"endorsedProjectsTable",children:[(0,a.jsxs)(N.UX,{columns:er,children:[(0,a.jsx)(N.C3,{}),(0,a.jsx)(N.C3,{children:r.projectsTab.columns.projectColumn}),(0,a.jsx)(N.C3,{children:r.projectsTab.columns.startDateColumn}),(0,a.jsx)(N.C3,{children:r.projectsTab.columns.endDateColumn}),(0,a.jsx)(N.C3,{children:r.projectsTab.columns.locationColumn})]}),P.map(e=>(0,a.jsxs)(N.Qq,{columns:er,"data-testid":"endorsedProjectRow",children:[(0,a.jsx)(N.C3,{style:{justifyContent:"center"},children:(0,a.jsx)(L.A,{items:[{title:r.popoverMenu.details,testId:"endorsedProjectViewDetailsBtn",onClick:()=>{window.open("/projects/".concat(e.id))}},{title:r.popoverMenu.remove,testId:"endorsedProjectRemoveEndorsementBtn",onClick:()=>{setTimeout(()=>y(e.id),0)}}]})}),(0,a.jsx)(N.C3,{children:e.name}),(0,a.jsx)(N.C3,{children:e.startDate}),(0,a.jsx)(N.C3,{children:e.endDate}),(0,a.jsx)(N.C3,{children:e.location})]},e.id))]})]})}),2===m&&(0,a.jsx)(a.Fragment,{children:ee?(0,a.jsx)(f.A,{children:r.loading}):(0,a.jsxs)(a.Fragment,{children:[v&&(0,a.jsx)(M,{variant:"body2",children:r.endorsingTab.description.replace("{0}",v)}),(0,a.jsx)(z,{variant:"h6",children:r.endorsingTab.heading}),(0,a.jsxs)(N.Ay,{dataQATag:"endorsingOrgsTable",children:[(0,a.jsxs)(N.UX,{columns:U,children:[(0,a.jsx)(N.C3,{}),(0,a.jsx)(N.C3,{children:r.columns.nameColumn}),(0,a.jsx)(N.C3,{children:r.columns.typeColumn}),(0,a.jsx)(N.C3,{children:r.columns.locationColumn}),(0,a.jsx)(N.C3,{children:r.endorsingTab.projectsColumn})]}),W.map(e=>(0,a.jsxs)(N.Qq,{columns:U,"data-testid":"endorsingOrgRow",children:[(0,a.jsx)(N.C3,{style:{justifyContent:"center"},children:(0,a.jsx)(L.A,{items:[{title:r.popoverMenu.details,testId:"endorsingOrgViewDetailsBtn",onClick:()=>{}},{title:r.popoverMenu.remove,testId:"endorsingOrgRemoveEndorsementBtn",onClick:()=>{}}]})}),(0,a.jsx)(N.C3,{children:e.name}),(0,a.jsx)(N.C3,{children:e.type}),(0,a.jsx)(N.C3,{children:[e.city,e.state].filter(Boolean).join(", ")}),(0,a.jsx)(N.C3,{children:e.displayingProjects?"Y":"N"})]},e.id))]})]})})]}),(0,a.jsx)(O,{open:et,onClose:()=>ea(!1),onEndorse:ei,heading:r.addEndorsementModal.heading,searchLabel:r.addEndorsementModal.searchLabel,cancelLabel:r.addEndorsementModal.cancelLabel,endorseLabel:r.addEndorsementModal.endorseLabel}),(0,a.jsx)(c.df,{active:!!X,contentTestId:"endorsementActionConfirmModalContent",handleCloseModal:()=>Z(null),handleConfirm:async()=>{"reject"===X.action?(await (0,h.sh)(X.id,u,"REJECTED"),S(e=>e.filter(e=>e.id!==X.id))):(await (0,h.Vf)(X.id,u),T(e=>e.filter(e=>e.id!==X.id))),Z(null)},handleCancel:()=>Z(null),confirmLabel:r.modal.confirm,cancelLabel:r.modal.cancel,children:r.modal.description})]})},J=()=>{var e,n,t,i,s,d,c,u,m,g,h,j;let{store:y}=(0,l.P)(),A=(0,x.useRouter)(),f=Array.isArray(A.query.id)?A.query.id[0]:A.query.id,b=[o.g.JUSTSRV_19058_Manage_Endorsement_Page_FF.name],E={location:null!=(c=null==(e=y.user)?void 0:e.city)?c:"unknown",areaName:null!=(u=null==(n=y.user)?void 0:n.areaName)?u:"unknown",areaUnitNumber:null!=(m=null==(t=y.user)?void 0:t.areaUnitNumber)?m:"unknown",isSuperAdmin:null!=(g=null==(i=y.user)?void 0:i.isSuperAdmin)&&g,isAdmin:null!=(h=null==(s=y.user)?void 0:s.isAdmin)&&h,permissionsText:null!=(j=null==(d=y.user)?void 0:d.permissionsText)?j:"unknown"},{treatments:S,isReady:I}=(0,r.l)({names:b,attributes:E,updateOnSdkUpdate:!1});return I?S[o.g.JUSTSRV_19058_Manage_Endorsement_Page_FF.name]===o.g.JUSTSRV_19058_Manage_Endorsement_Page_FF.treatments.on&&f?(0,a.jsx)(q,{}):(0,a.jsx)(p.A,{to:"/404"}):(0,a.jsx)(C.A,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:(0,a.jsx)(v.A,{})})};J.PageLayout=i.NI;let Q=J},68173:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var a=t(37876);t(14232);var i=t(77328),o=t.n(i);let l=e=>{let{to:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o(),{children:(0,a.jsx)("meta",{httpEquiv:"refresh",content:"0;url=".concat(n)})}),(0,a.jsx)("noscript",{children:(0,a.jsx)("a",{href:n,children:"Continue"})})]})}},76552:(e,n,t)=>{"use strict";t.d(n,{$G:()=>i,f8:()=>o,n8:()=>a});var a=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},o={"en-us":"EN","en-gb":"GB","es-mx":"ES","fr-ca":"FR","pt-pt":"PT","hu-hu":"HU","de-de":"DE"}},85235:(e,n,t)=>{"use strict";t.d(n,{A:()=>A});var a=t(28888),i=t(37876),o=t(5674),l=t(43913),r=t(18951),s=t(25528),d=t(70120),c=t(74650),u=t(59092),p=t(89726),m=t(14232);function x(){let e=(0,a._)(["\n  overflow: visible !important;\n"]);return x=function(){return e},e}function g(){let e=(0,a._)(["\n  padding: 0px !important;\n"]);return g=function(){return e},e}function h(){let e=(0,a._)(["\n  color: #000000;\n  :hover {\n    background-color: transparent !important;\n  }\n"]);return h=function(){return e},e}let C=(0,l.Ay)("div")(x()),j=(0,l.Ay)(r.A)(g()),y=(0,l.Ay)(s.A)(h()),A=e=>{let{items:n,moreElement:t=(0,i.jsx)(o.A,{}),onOpen:a,onClose:l,disabled:r=!1}=e,[s,x]=(0,m.useState)(null),[g,h]=(0,m.useState)(null),A=()=>{x(null),null==l||l()},v=!!s;return(0,i.jsxs)(C,{ref:h,children:[(0,i.jsx)(y,{onClick:()=>{r||(x(g),null==a||a())},disabled:r,children:t}),(0,i.jsx)(p.Ay,{id:v?"simple-popover":void 0,open:v,anchorEl:s,onClose:A,anchorOrigin:{vertical:"bottom",horizontal:"left"},hideBackdrop:!1,container:g,children:(0,i.jsx)(d.A,{component:"div",disablePadding:!0,sx:{backgroundColor:"#fff"},children:n.map(e=>{let{title:n,onClick:t,testId:a}=e;return(0,i.jsx)(c.A,{"data-testid":a,sx:{py:0,pl:1,cursor:"pointer"},onClick:()=>{t(),A()},children:(0,i.jsx)(u.A,{sx:{py:0,pl:1},primary:(0,i.jsx)(j,{children:n})})},n)})})})]})}},94788:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/organizations/manageendorsements",function(){return t(35545)}])}},e=>{e.O(0,[1120,7301,6049,7818,1422,636,6593,8792],()=>e(e.s=94788)),_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.