PageSourceSearch

https://www.antislave.com/assets/premium-6UesuAT7.js

js antislave.com collected 2026-10-04 23:00:39 UTC 3,127 bytes, 1 lines download raw bytes

1import{i as e,n as t,t as n}from"./supabase-DltNv4GG.js";import{dr as r}from"./live-E9mSAatK.js";var i={premium:{name:`Premium`,short:`PREMIUM`,tagline:`For watching.`,perks:[{text:`Reserved and rare handles`},{text:`A Premium badge on your name`},{text:`Six extra name colors in chat`},{text:`1.5x daily chip bonus`},{text:`15 GB of clip storage, around 680 clips`},{text:`Import your clips straight from Kick`}]},plus:{name:`Premium+`,short:`PREMIUM+`,tagline:`For streaming and clipping.`,perks:[{text:`Everything in Premium`},{text:`2x daily chip bonus`},{text:`A gold Premium+ badge and an animated gradient name`},{text:`Every TTS voice for your chat`},{text:`A free TTS overlay for your stream`},{text:`Restream: go out to Kick, Twitch and YouTube from one upload`},{text:`30 GB of clip storage, around 1,360 clips`},{text:`New Kick clips imported automatically`},{text:`Avatars, an industry first`,soon:!0},{text:`Monetization tools`,soon:!0},{text:`Early access to everything new`}]}};function a(e,t=`usd`){let n=e/100;return new Intl.NumberFormat(void 0,{style:`currency`,currency:t.toUpperCase(),minimumFractionDigits:n%1==0?0:2}).format(n)}var o=()=>!0,s=()=>`pk_live_51UAAFz8iW0dsbSKnzaK0budcOcD8Xj5iD5YICqmWU3nQa5laICPDbAXdU6SDSN6W1YG8N8HeSSz5MB9UkirdGGAF00v7G1sur5`;async function c(){if(!e)return null;let{data:t,error:n}=await e.from(`premium_plans_public`).select(`tier, amount_cents, currency, interval`);if(n||!t?.length)return null;let r={};for(let e of t)r[e.tier]={tier:e.tier,amountCents:e.amount_cents,currency:e.currency??`usd`,interval:e.interval??`month`};return r}async function l(r,i){let a=n;try{let{data:t}=await e.auth.getSession();t.session?.access_token&&(a=t.session.access_token)}catch{}try{let e=await fetch(`${t}/functions/v1/${r}`,{method:`POST`,headers:{"Content-Type":`application/json`,apikey:n,Authorization:`Bearer ${a}`},body:JSON.stringify(i)}),o=await e.json().catch(()=>({}));return e.ok?o:{error:o.error??`something went wrong`}}catch{return{error:`could not reach the server`}}}function u(e){return!!e&&typeof e==`object`&&e.alreadyPaid===!0}function d(e,t,n){return l(`premium-checkout`,{email:e,username:t,tier:n})}function f(e){return l(`premium-claim`,{holdId:e})}async function p(){if(!e)return{ok:!1,reason:`no backend`};let{data:t,error:n}=await e.rpc(`claim_premium`);return n?{ok:!1,reason:n.message}:t??{ok:!1}}async function m(){if(!e)return{error:`no backend`};let{data:{session:r}}=await e.auth.getSession();if(!r)return{error:`sign in first`};try{let e=await fetch(`${t}/functions/v1/premium-portal`,{method:`POST`,headers:{"Content-Type":`application/json`,apikey:n,Authorization:`Bearer ${r.access_token}`},body:`{}`}),i=await e.json().catch(()=>({}));return e.ok?i:{error:i.error??`something went wrong`}}catch{return{error:`could not reach the server`}}}async function h(){if(!e)return null;let{data:t}=await e.from(`premium_subscriptions`).select(`tier, status`).maybeSingle();return t?{tier:t.tier,status:t.status}:null}var g=r(`my-premium`,()=>h(),12e4),_=()=>g.get();export{u as a,g as c,d,o as f,c as i,a as l,p as n,_ as o,f as r,m as s,i as t,s as u};

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.