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]="d4694e99-ced7-5a42-8737-7e18a90306aa")}catch(e){}}(); 3import{a as f}from"./chunk-PVICISUF.js";import{f as U}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 g}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 w,M as R}from"./chunk-746D4QTP.js";import{D as v,Ua as h,qa as p}from"./chunk-BZJI6Z2X.js";import"./chunk-CS7K6LXP.js";function C(t){let s=p(f),l=p(g),n=p(h);return new Promise(o=>{s.data?.id?s.data.urn!==t.params.urn?m(t.params.urn,o):o(s.data):m(t.params.urn,o)});function m(o,a){s.getGroup(o.trim()).subscribe(e=>{if(w(n)&&(e.urn!==o||e.kind==="community"))if(e.kind==="community")window.location.href=`${window.location.origin}/community/${e.urn}`;else{let r=u({host:"",urn:e.urn});window.location.pathname=r}else s.data=e,a(e)},e=>{if(w(n)){if(e.status===404){let r={redirectUrl:`/group/${o}`};l.navigate(["/404"],{queryParams:r})}else if(e.status===422&&e.error&&e.error.new_url)if(e.error.host){let r=u(e.error);window.location.href=r}else window.location.href=e.error.new_url;else if(e.status===302&&e.headers.get("location")){let i=e.headers.get("location").match(/^(https?:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/)[3];window.location.href=`https://${i}${window.location.pathname}${window.location.search}`}}else a({})})}function u(o){let a=`${o.host}/group/${o.urn}`,e=new RegExp("/group/([^/#?]+)((/[^/?#]+)*)?"),r=window.location.pathname.match(e);return r&&r[2]&&(a+=r[2]),window.location.search&&(a+=window.location.search),window.location.hash&&(a+=window.location.hash),a=a.replace("7000",window.location.port),a}}var G=t=>C(t);var c=(t,s)=>{let l=p(g),n=p(U),m=p(f),u=p(h);if(R(u))return!0;let o=t.parent.params.urn,a=l.parseUrl(`/group/${o}`),e=l.parseUrl("/login");return e.queryParams={redirectUrl:s.url},new Promise(i=>{m.dataRef.id&&n.currentUserResolved?n.currentUser?.id?r(i):i(e):v([n.getCurrentUser(),C(t.parent)]).subscribe(d=>{n.currentUser=d[0],m.data=d[1],n.currentUser?.id?r(i):i(e)})});function r(i){let d=m.dataRef;n.hasEditPermission(d.perm_urn,d.admin_user_ids).then(y=>{i(y?!0:a)})}};var F=[{path:"",loadComponent:()=>import("./chunk-6UFI3QT6.js").then(t=>t.GroupComponent),resolve:{group:G},runGuardsAndResolvers:"always",children:[{path:"",loadComponent:()=>import("./chunk-6X2EJDFS.js").then(t=>t.GroupPageComponent),data:{pageTitle:" "}},{path:"settings",canActivate:[c],runGuardsAndResolvers:"always",data:{pageTitle:"settings"},children:[{path:"",loadComponent:()=>import("./chunk-UQUTJYT3.js").then(t=>t.SettingsComponent),data:{pageTitle:"settings"}}]},{path:"reports",canActivate:[c],runGuardsAndResolvers:"always",data:{pageTitle:"reports"},children:[{path:"",redirectTo:"donations",pathMatch:"full"},{path:"donations",loadComponent:()=>import("./chunk-MQ7NFA3Z.js").then(t=>t.DonationsComponent),data:{parentPage:"reports",pageTitle:"donations"}},{path:"matching-grants",loadComponent:()=>import("./chunk-VPYZ3DYM.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"}}]}]},{path:"settings",loadComponent:()=>import("./chunk-UQUTJYT3.js").then(t=>t.SettingsComponent),canActivate:[c],runGuardsAndResolvers:"always"},{path:"matching-grants",loadComponent:()=>import("./chunk-VPYZ3DYM.js").then(t=>t.MatchingGrantsComponent),canActivate:[c],runGuardsAndResolvers:"always",data:{pageTitle:"matching grants",featureKey:"matching_grants"}},{path:"matching-grants",canActivate:[c],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-MQ7NFA3Z.js").then(t=>t.DonationsComponent),canActivate:[c],runGuardsAndResolvers:"always"}]}];export{F as groupRoutes}; 4 5//# debugId=d4694e99-ced7-5a42-8737-7e18a90306aa
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.