1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="26c6f409-6e8b-5b69-905e-e0a98594a8a7")}catch(e){}}(); 3import{a as f}from"./chunk-B36LD7HJ.js";import{f as y}from"./chunk-Z5M2FKAZ.js";import"./chunk-5NDSS4DO.js";import"./chunk-TTUVP5SZ.js";import"./chunk-5CMUHLSG.js";import"./chunk-TNAGEFXD.js";import"./chunk-YH4N3M4B.js";import"./chunk-BHOSW24E.js";import"./chunk-56LBQIQP.js";import"./chunk-IKWIL4NU.js";import"./chunk-5K5PYV5V.js";import"./chunk-TDGVUJZJ.js";import"./chunk-MWF7JXGK.js";import"./chunk-UJXOZNZV.js";import"./chunk-KS3Q7H57.js";import"./chunk-DAOAKQM2.js";import"./chunk-MGCQ5S6F.js";import"./chunk-MJXNRHWH.js";import"./chunk-BUOPWRDV.js";import"./chunk-UQU3EU23.js";import"./chunk-346ISJSG.js";import"./chunk-CNRKNNWP.js";import"./chunk-L6Z7ZO7O.js";import"./chunk-TLCCWCNW.js";import"./chunk-5SJALNJN.js";import"./chunk-XEY266ER.js";import"./chunk-SEDEP525.js";import"./chunk-SECBI6OV.js";import"./chunk-LXBG4CPT.js";import"./chunk-56KVT3OQ.js";import"./chunk-MF7VZYLI.js";import"./chunk-NFMDOWTR.js";import"./chunk-QE6DXY66.js";import"./chunk-B5YZVWIB.js";import"./chunk-HCSN2NMS.js";import"./chunk-FDIRDMLL.js";import"./chunk-XQLUXGKM.js";import"./chunk-3JHJJCIF.js";import"./chunk-J4X36CU5.js";import"./chunk-X3ZU2Z3D.js";import"./chunk-QZXCI4ZV.js";import"./chunk-VO633UWN.js";import"./chunk-XIKGSSI2.js";import"./chunk-MNZQGPDO.js";import{j as u}from"./chunk-NK2KZLT6.js";import"./chunk-MU5APV2L.js";import"./chunk-KRFZY2QT.js";import"./chunk-DFSGG2NH.js";import"./chunk-MREDPIUE.js";import"./chunk-BWICLBYB.js";import"./chunk-TYTNPDEC.js";import"./chunk-WAPZ5LEW.js";import{L as C,M as T}from"./chunk-746D4QTP.js";import{D as v,Ua as g,qa as s}from"./chunk-BZJI6Z2X.js";import"./chunk-CS7K6LXP.js";function w(t){let m=s(f),l=s(u),i=s(g);return new Promise(r=>{m.data?.id?m.data.urn!==t.params.urn?d(t.params.urn,r,t):r(m.data):d(t.params.urn,r,t)});function d(r,o,p){m.getCampaign(r.trim()).subscribe({next:e=>{if(C(i)&&e.urn!==r){let a=h({host:"",urn:e.urn});window.location.pathname=a}else{if(e.kind==="event"){l.navigate(["/event",e.urn],{queryParams:p.queryParams,fragment:p.fragment});return}m.data=e,o(e)}},error:e=>{if(C(i)){if(e.status===404){let a={redirectUrl:`/team/${r}`};l.navigate(["/404"],{queryParams:a})}else if(e.status===422&&e.error?.length&&e.error[0]==="Unpublished campaign")l.navigate(["/404"],{skipLocationChange:!0});else if((e.status===422||e.status===301)&&e.error&&e.error.new_url)if(e.error.host){let a=h(e.error);window.location.href=a}else window.location.href=e.error.new_url;else if(e.status===302&&e.headers.get("location")){let c=e.headers.get("location").match(/^(https?:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/)[3];window.location.href=`https://${c}${window.location.pathname}${window.location.search}`}}else o({})}})}function h(r){let o=`${r.host}/team/${r.urn}`,p=new RegExp("/team/([^/#?]+)((/[^/?#]+)*)?"),e=window.location.pathname.match(p);return e&&e[2]&&(o+=e[2]),window.location.search&&(o+=window.location.search),window.location.hash&&(o+=window.location.hash),o=o.replace("7000",window.location.port),o}}var A=t=>w(t);var n=(t,m)=>{let l=s(u),i=s(y),d=s(f),h=s(g);if(T(h))return!0;let r=t.parent.params.urn,o=l.parseUrl(`/team/${r}`),p=l.parseUrl("/login");return p.queryParams={redirectUrl:m.url},new Promise(a=>{d.dataRef.id&&i.currentUserResolved?i.currentUser?.id?e(a):a(p):v([i.getCurrentUser(),w(t.parent)]).subscribe(c=>{i.currentUser=c[0],d.data=c[1],i.currentUser?.id?e(a):a(p)})});function e(a){let c=d.dataRef;i.hasEditPermission(c.perm_urn,c.admin_user_ids).then(R=>{a(R?!0:o)})}};var B=[{path:"",loadComponent:()=>import("./chunk-TACREGJY.js").then(t=>t.TeamComponent),resolve:{team:A},runGuardsAndResolvers:"always",children:[{path:"",loadComponent:()=>import("./chunk-E3A2EXHV.js").then(t=>t.TeamPageComponent),data:{pageTitle:" "}},{path:"participants",loadComponent:()=>import("./chunk-H4ZZPQSY.js").then(t=>t.ParticipantsComponent),canActivate:[n],runGuardsAndResolvers:"always",data:{pageTitle:"participants"}},{path:"campaigns",loadComponent:()=>import("./chunk-B5O3GMWP.js").then(t=>t.CampaignsComponent),canActivate:[n],runGuardsAndResolvers:"always",data:{pageTitle:"campaigns"}},{path:"settings",canActivate:[n],runGuardsAndResolvers:"always",data:{pageTitle:"settings"},children:[{path:"",loadComponent:()=>import("./chunk-3UBBAQ7S.js").then(t=>t.GeneralSettingsComponent),data:{pageTitle:"settings"}},{path:"template",loadComponent:()=>import("./chunk-R77JVSXD.js").then(t=>t.FundraiserTemplateComponent),canActivate:[n],runGuardsAndResolvers:"always",data:{parentPage:"settings",pageTitle:"fundraiser template"}},{path:"beneficiary",loadComponent:()=>import("./chunk-KFQW5MTF.js").then(t=>t.BeneficiarySettingsComponent),canActivate:[n],runGuardsAndResolvers:"always",data:{parentPage:"settings",pageTitle:"beneficiary settings"}}]},{path:"reports",canActivate:[n],runGuardsAndResolvers:"always",data:{pageTitle:"reports"},children:[{path:"",redirectTo:"donations",pathMatch:"full"},{path:"donations",loadComponent:()=>import("./chunk-DIYD7XPL.js").then(t=>t.DonationsComponent),data:{parentPage:"reports",pageTitle:"donations"}},{path:"matching-grants",loadComponent:()=>import("./chunk-ODA6NDFG.js").then(t=>t.MatchingGrantsComponent),data:{pageTitle:"matching grants",featureKey:"matching_grants"}},{path:"matching-grants",data:{pageTitle:"matching grants",featureKey:"matching_grants"},children:[{path:"create",loadComponent:()=>import("./chunk-KT27WZ4E.js").then(t=>t.CreateUpdateMatchesComponent),data:{pageTitle:"create"}},{path:":grantId/edit",loadComponent:()=>import("./chunk-KT27WZ4E.js").then(t=>t.CreateUpdateMatchesComponent),data:{pageTitle:"edit"}}]}]}
3,{path:"general-settings",loadComponent:()=>import("./chunk-3UBBAQ7S.js").then(t=>t.GeneralSettingsComponent),canActivate:[n],runGuardsAndResolvers:"always"},{path:"fundraiser-template",loadComponent:()=>import("./chunk-R77JVSXD.js").then(t=>t.FundraiserTemplateComponent),canActivate:[n],runGuardsAndResolvers:"always"},{path:"beneficiary-settings",loadComponent:()=>import("./chunk-KFQW5MTF.js").then(t=>t.BeneficiarySettingsComponent),canActivate:[n],runGuardsAndResolvers:"always"},{path:"matching-grants",loadComponent:()=>import("./chunk-ODA6NDFG.js").then(t=>t.MatchingGrantsComponent),canActivate:[n],runGuardsAndResolvers:"always",data:{pageTitle:"matching grants",featureKey:"matching_grants"}},{path:"matching-grants",canActivate:[n],runGuardsAndResolvers:"always",data:{pageTitle:"matching grants",featureKey:"matching_grants"},children:[{path:"create",loadComponent:()=>import("./chunk-KT27WZ4E.js").then(t=>t.CreateUpdateMatchesComponent),data:{pageTitle:"create"}},{path:":grantId/edit",loadComponent:()=>import("./chunk-KT27WZ4E.js").then(t=>t.CreateUpdateMatchesComponent),data:{pageTitle:"edit"}}]},{path:"donations",loadComponent:()=>import("./chunk-DIYD7XPL.js").then(t=>t.DonationsComponent),canActivate:[n],runGuardsAndResolvers:"always"}]}];export{B as teamRoutes}; 4 5//# debugId=26c6f409-6e8b-5b69-905e-e0a98594a8a7
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.