PageSourceSearch

https://rateup.app/assets/referrals.query-lNBnqycJ.js

js rateup.app collected 2026-10-02 05:01:02 UTC 1,736 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`738f9327306d258a296bbb03cea86d386e5f7c98`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b807eaf1-5df3-4adf-bcc9-7499bb4e436a`,e._sentryDebugIdIdentifier=`sentry-dbid-b807eaf1-5df3-4adf-bcc9-7499bb4e436a`)}catch{}})();import{n as e}from"./QueryClientProvider-CZhKaG8Y.js";import{t}from"./useQuery-CwA3rGNu.js";import{t as n}from"./useMutation-DSRptbX9.js";import{c as r,t as i}from"./apiClient-CDCYhAzN.js";import{t as a}from"./useTranslation-DpSztrGJ.js";import{n as o}from"./dist-CBOk-hHy.js";import{i as s}from"./campaign.keys-CJhwKq9P.js";async function c(e,t){return(await i.post(`/referrals`,{name:e,email:t})).data}async function l(){return(await i.get(`/referrals`)).data}async function u(e){await i.delete(`/referrals/${e}`)}async function d(e){await i.post(`/referrals/track-visit`,{code:e})}function f({onSuccess:e,onError:t}={}){let{t:i}=a();return n({mutationFn:({name:e,email:t})=>c(e,t),onSuccess:t=>{o.success(i(`Referral code created successfully!`)),e&&e(t)},onError:e=>{let n=r(e,`Failed to create referral code`);o.error(i(n)),t&&t(e)}})}function p({onSuccess:t,onError:i}={}){let{t:c}=a(),l=e();return n({mutationFn:e=>u(e),onSuccess:()=>{o.success(c(`Referral deleted successfully!`)),l.invalidateQueries({queryKey:s.all()}),t&&t()},onError:e=>{let t=r(e,`Failed to delete referral`);o.error(c(t)),i&&i(e)}})}function m(){return t({queryKey:s.all(),queryFn:()=>l()})}function h({onSuccess:e,onError:t}={}){return n({mutationFn:e=>d(e),onSuccess:()=>{e&&e()},onError:e=>{t&&t(e)}})}export{h as i,f as n,p as r,m as t};

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.