1import{a as g,b as d}from"./chunk-B7255YRR.js";import{a as f}from"./chunk-4EWEQMSK.js";import{a as u}from"./chunk-EDO74B7O.js";import{f as l}from"./chunk-F2I26AL6.js";import"./chunk-2V7R246S.js";import{L as c,oa as m,r as s,ta as e,w as p}from"./chunk-RUH5ZQFX.js";import"./chunk-ZGVHDELW.js";var a="code",P="config";var v=(()=>{class r{#r=e(d);#e=e(l);getInviterInfo$(o){return this.#e.get(`${this.#r}/invitations/codes/${o}`)}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=r=>{let t=r.params[a],o=e(u),i=`${e(g)}?inviteCode=${t}`;return e(v).getInviterInfo$(t).pipe(p(n=>h(n,i)),c(n=>(o.reportError(n,"failed to get referral data"),s(C()))))};function h(r,t){return r?.firstName?{state:f.Success,inviter:r,invitationLink:t}:C()}function C(){return{state:f.Error}}var _=[{path:`:${a}`,pathMatch:"full",resolve:{[P]:R},loadComponent:async()=>import("./chunk-ZHPYQTKR.js").then(r=>r.SiteReferralsFeatureComponent)},{path:"**",redirectTo:"/"}];export{_ as referralsRoutes};
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.