1try{!function(){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]="ad1c93ac-f377-421b-8d62-8e93dd37b6e3",e._sentryDebugIdIdentifier="sentry-dbid-ad1c93ac-f377-421b-8d62-8e93dd37b6e3")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7214],{4589:(e,n,r)=>{"use strict";r.r(n),r.d(n,{__N_SSP:()=>R,default:()=>I});var t=r(37876),l=r(72341),s=r(82077),a=r(94211),i=r(28304),o=r(13677),d=r(87802),c=r(49535),u=r(71763),f=r(52244),p=r(90427),x=r(58677),h=r(61019),g=r(52200),j=r(34178),b=r(96427),v=r(27630),y=r(27250);function A(){let e=(0,b._)(["\n query ReferralStats($input: UserReferralStatsInput!) {\n viewer {\n id\n referralStats(input: $input) {\n pendingCount\n completedCount\n totalEarnedCents\n }\n }\n}\n "]);return A=function(){return e},e}let m={},w=(0,v.J1)(A()),_=e=>{let{label:n,value:r}=e;return(0,t.jsxs)(a.A,{column:!0,spacing:.5,align:"center",children:[(0,t.jsx)(c.A,{variant:"small",light:!0,bold:!0,children:n}),(0,t.jsx)(c.A,{variant:"xlarge",light:!0,children:r})]})},E=()=>{var e;let n=(0,u.A)(),{data:r}=function(e){let n={...m,...e};return y.IT(w,n)}({skip:!n,variables:{input:{orgId:n}}}),l=null==r||null==(e=r.viewer)?void 0:e.referralStats;return(0,t.jsxs)(a.A,{column:!0,spacing:4,children:[(0,t.jsx)(g.A,{light:!0}),(0,t.jsxs)(a.A,{spacing:2,justify:"space-around",wrap:[!0,!1],children:[(0,t.jsx)(_,{label:"Money Earned",value:l?(0,j.CM)(l.totalEarnedCents):"-"}),(0,t.jsx)(_,{label:"Completed Referrals",value:l?"".concat(l.completedCount):"-"}),(0,t.jsx)(_,{label:"Pending Referrals",value:l?"".concat(l.pendingCount):"-"})]})]})},k=()=>{var e,n;let r=(0,u.A)(),{data:l}=(0,p.qP)({fetchPolicy:"cache-first",skip:!r,variables:{input:{context:s.DxP.ReferAndEarn,orgId:r}}}),i=null==l||null==(n=l.viewer)||null==(e=n.activeReferralPrograms)?void 0:e[0];return(0,t.jsxs)(o.A,{column:!0,spacing:4,top:3,bottom:3,children:[(0,t.jsxs)(a.A,{column:!0,spacing:1,align:"center",children:[(0,t.jsx)(c.A,{variant:"xlarge",bold:!0,centered:[!0,!0,!1],children:"Love Ambrook? Earn $100 for everyone you refer."}),(0,t.jsxs)(c.A,{variant:"body",light:!0,centered:[!0,!0,!1],children:["Plus, when a contact uses your link to sign up,"," ",(0,t.jsx)(c.A,{variant:"body",bold:!0,as:"span",children:"they'll get"})," ","$100 too."]})]}),(0,t.jsxs)(a.A,{direction:["column","row"],spacing:3,align:["stretch","flex-start"],children:[(0,t.jsx)(a.A,{flex:[0,3],column:!0,children:(0,t.jsx)(h.A,{referral:i})}),(0,t.jsx)(a.A,{flex:[0,2],column:!0,children:(0,t.jsx)(x.A,{referral:i})})]}),(0,t.jsx)(E,{})]})},C=()=>"web"!==f.A.OS?(0,t.jsx)(i.A,{justify:"center",flex:1,gutter:"responsive",column:!0,children:(0,t.jsx)(k,{})}):(0,t.jsx)(i.A,{justify:"center",flex:1,gutter:"responsive",column:!0,children:(0,t.jsx)(d.o,{children:(0,t.jsx)(k,{})})});var P=r(62867),R=!0;let I=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P.bV,{title:"Refer and Earn",description:"Refer and earn rewards for referring your community to Ambrook",openGraph:{description:"Refer and earn rewards for referring your community to Ambrook"},noindex:!0}),(0,t.jsx)(l.A,{active:"refer",children:(0,t.jsx)(C,{})})]})},53317:(e,n,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/refer",function(){return r(4589)}])}},e=>{e.O(0,[8992,16,4337,3737,8798,6371,4285,8185,3600,815,2455,3246,9117,8681,9479,1792,3736,9973,551,1651,2260,2762,1144,404,4274,7588,9843,5519,9560,636,6593,8792],()=>e(e.s=53317)),_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.