PageSourceSearch

https://cdn.buymeacoffee.com/static/prod/1052/build/assets/request-DiNf7PXB.js

js buymeacoffee.com collected 2026-09-24 06:03:31 UTC 4,064 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/paymentHelper-BzrjJRaH.js","assets/rolldown-runtime-DAXXjFlN.js","assets/preload-helper-DNtg2cGa.js","assets/helper-D5ziWoUd.js","assets/dist-DiEP1Qns.js","assets/runtime-core.esm-bundler-BKdLzFmX.js","assets/appVariables-if8fQ3xE.js","assets/posthogHelper-O8qxQuHt.js"])))=>i.map(i=>d[i]);
2import{a as e}from"./dist-DiEP1Qns.js";import{t}from"./preload-helper-DNtg2cGa.js";import{t as n}from"./appVariables-if8fQ3xE.js";import{t as r}from"./helper-D5ziWoUd.js";var i={getCsrfToken(){return axios.get(`/sanctum/csrf-cookie`)},setCsrfCookie(){if(!document.cookie.includes(`csrf-token`))try{this.getCsrfToken().then(()=>{let e=new Date(new Date().getTime()+6e5);document.cookie=`csrf-token=new-csrf; expires=${e.toUTCString()}`}).catch(e=>{throw e})}catch(e){console.error(e)}},loginPaymentRepo(e){return axios.post(`/auth/token/login`,{access_token:e}).then(()=>{})},loginOldRepo(e){let t=new FormData;return t.append(`access_token`,e),axios.post(`${n.mainUrl}/auth/login-with-token`,t)},getAccessTokenForBmcV2(e){return axios.post(`${n.appUrl}/auth/v2/login-with-token`,{access_token:e})},async getAmountToPay(e,n){await(await t(async()=>{let{default:e}=await import(`./paymentHelper-BzrjJRaH.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6]))).default.setDeviceFingerprint();let r={amount:n,payment_processor:`stripe`};return axios.post(`/api/payment/amount/${e}`,r)},async getAmountToPayMultiCurrency(n,i,a=``){await(await t(async()=>{let{default:e}=await import(`./paymentHelper-BzrjJRaH.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6]))).default.setDeviceFingerprint();let o={amount:i,currency:e().props.creator_data.data.currency_cookie?e().props.creator_data.data.currency_cookie:r.getCookieValue(`currency`),exchange_rate_id:e().props.meta.data.exchange_rate_id,payment_processor:`stripe`};return a==`onetime`&&(await t(async()=>{let{default:e}=await import(`./posthogHelper-O8qxQuHt.js`);return{default:e}},__vite__mapDeps([7,4,5,6]))).default.capturePayClicked(o),axios.post(`/api/payment/amount/convert/${n}`,o)},postLike(e){return axios.post(`/api/v1/posts/${e}/like`)},togglePostPin(e){return axios.patch(`/api/v1/posts/${e}/pin`)},startMessageWithProject(e){let t={to_project_id:e};return axios.post(`api/v1/conversations`,t)},loginUsingPassword(e){return axios.post(`auth/login`,e)},loginUsingOtp(e){return axios.post(`auth/otp/login`,e)},generateOtp(e){return axios.post(`auth/otp/generate`,e)},generate2faOtp(e){return axios.post(`api/v1/twofactor/email/send`,e)},loginOtherRepos(e,t){this.loginOldRepo(e).then(()=>{this.getAccessTokenForBmcV2(e).then(()=>{t()})})},logout(){window.location=`${n.mainUrl}/logout?redirect=${window.location.href}`},checkUsernameAvailable(e){return axios.post(`api/v1/check_availability`,e)},getSignedUrl(e){return axios.post(`api/v1/public/upload/generate-signed-url`,e)},cancelSubscription(e,t=`Cancelled without feedback`){return axios.post(`api/v1/subscriptions/cancel`,{subscription_id:e,feedback:t})},getRecoveryOptions(e){return axios.get(`/api/v1/subscriptions/${e}/recovery`)},applyRecoveryDiscount(e){return axios.post(`api/v1/subscriptions/${e}/recovery/discount/apply`)},postRecoveryRecovered(e,t){return axios.post(`api/v1/subscriptions/${e}/recovery/recovered`,{recovered_at:t})},getCreatorTimeline(e,t=!1,n=1,r=10){let i=t?`&filter_donation=true`:``;return axios.get(`api/v1/timeline/project/${e}?page=${n}&per_page=${r}${i}&web=true`)},getCreatorCoffees(e,t=1,n=10){return axios.get(`api/creators/slug/${e}/coffees?web=1&page=${t}&per_page=${n}`)},pauseSubscription(e,t){return axios.post(`api/v1/subscriptions/${e}/pause`,{duration:t})},unpauseSubscription(e){return axios.post(`api/v1/subscriptions/${e}/unpause`)},updateSubscription(e,t){return axios.post(`api/v1/subscriptions/${e}/update`,t)},previewSubscriptionUpdate(e,t){return axios.post(`api/v1/subscriptions/${e}/update/preview`,t)},recalculateCartAmounts(e){return axios.post(`api/v1/rewards/cart/${e}/recalculate`)}};export{i 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.