PageSourceSearch

https://arcanes.be/assets/Referral-DjxcaRM-.js

js arcanes.be collected 2026-10-03 18:17:26 UTC 1,999 bytes, 1 lines download raw bytes

1import{a as I,u as A,j as e,c as _,r as a,Y as F,ac as S,s as n}from"./index-lHrFFjsB.js";import{R as C}from"./ReferralDashboardGamified-B3kYNnT0.js";import"./useTranslation-CYjJiPBB.js";import"./copy-GRgXQ0MO.js";import"./message-circle-TNU0lEwz.js";const E={fr:{meta:{title:"Programme de parrainage | Arcanes",description:"Rejoignez le Cercle des Initiés et gagnez des crédits gratuits en invitant vos amis à analyser leurs projets immobiliers."}},nl:{meta:{title:"Verwijzingsprogramma | Arcanes",description:"Word lid van de Cirkel der Ingewijden en verdien gratis credits door vrienden uit te nodigen om hun vastgoedprojecten te analyseren."}}};function q(){const i=I(),{language:d}=A(),o=E[d==="nl"?"nl":"fr"],l=e.jsx(_,{title:o.meta.title,description:o.meta.description,ogImage:"/og-image-n.png",canonical:"/referral"}),[m,u]=a.useState(!1),[g,p]=a.useState(),[x,f]=a.useState(0),[j,h]=a.useState(!1),[v,y]=a.useState(!0);return a.useEffect(()=>{(async()=>{try{const{data:{user:s}}=await n.auth.getUser();if(!s){i("/login");return}u(!0),p(s.id);const{data:r}=await n.from("profiles").select("account_type").eq("id",s.id).single(),{data:t}=await n.from("user_credits").select("credits_remaining, purchased_credits").eq("user_id",s.id).maybeSingle(),c=(t==null?void 0:t.purchased_credits)||0,b=((t==null?void 0:t.credits_remaining)||0)+c;f(b);const w=(r==null?void 0:r.account_type)==="client"||c>=10;h(w)}catch(s){console.error("Error loading user data:",s)}finally{y(!1)}})()},[i]),v?e.jsx("div",{className:"min-h-screen bg-[#FAFAFA] flex items-center justify-center",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-[#0E3639]"})}):e.jsxs("div",{className:"min-h-screen bg-[#FAFAFA]",children:[l,e.jsx(F,{isLoggedIn:m,totalCredits:x}),e.jsx("main",{className:"pt-28 pb-16",children:e.jsx("div",{className:"max-w-4xl lg:max-w-5xl xl:max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(C,{userId:g,isPremium:j})})}),e.jsx(S,{})]})}export{q as default};

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.