PageSourceSearch

https://tesana.com/assets/EarnLandingPage-DIargUrO.js

js tesana.com collected 2026-10-09 22:40:55 UTC 15,474 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-motion-hRg_q8lq.js";import{r as c}from"./vendor-react-E98sgxjj.js";import{u as v,a8 as E,b as L,v as u,E as g,H as _,L as T}from"./index-BKzE8EQ8.js";import{u as S}from"./useLocaleNavigate-BNriJdRU.js";import{du as m}from"./vendor-fa-Bn2dnpnC.js";import{P as A,L as I}from"./LandingFooter-DjCjfhwD.js";import{u as $}from"./vendor-query-bOUN_gKe.js";import{T as h}from"./Trans-CCKQbNuq.js";import"./UserAvatarMenu-BoKKInby.js";import"./Tooltip-C8AvPGtA.js";import"./Avatar-B60wpoS5.js";import"./MediaImage-DKgx-nW4.js";import"./tabBarStore-624ukDKJ.js";import"./socialLinks-DmmZmq5v.js";const j={tiktok:{icon:"tiktok",brand:!0},instagram:{icon:"instagram",brand:!0},youtube:{icon:"youtube",brand:!0},facebook:{icon:"facebook",brand:!0},x:{icon:"x-twitter",brand:!0},reddit:{icon:"reddit-alien",brand:!0},other:{icon:"link",brand:!1}};function K({limit:t=5}){const{t:a}=v("earnings"),{data:n,isLoading:o}=$({queryKey:["earnings-leaderboard"],queryFn:()=>E.getLeaderboard("30d"),staleTime:5*60*1e3});if(o||!n)return null;const d=n.top_creators.slice(0,t),l=n.top_clips.slice(0,t);return d.length===0&&l.length===0?null:e.jsx("section",{className:"bg-background py-16 md:py-24 border-t border-border",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[e.jsx("h2",{className:"text-h2-sm md:text-h2 text-foreground text-center mb-3",children:a("leaderboard.title")}),e.jsx("p",{className:"text-base text-muted-foreground text-center mb-10",children:a("leaderboard.subtitle")}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-card rounded-lg border border-border p-5",children:[e.jsx("h3",{className:"text-base font-semibold text-foreground mb-4",children:a("leaderboard.topCreators")}),d.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:a("leaderboard.noCreators")}):e.jsx("ul",{className:"space-y-2",children:d.map((s,i)=>e.jsxs("li",{className:"flex items-center justify-between gap-3 py-2 border-t border-border first:border-t-0 first:pt-0",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("span",{className:"w-7 h-7 rounded-full bg-foreground
1/8 text-xs text-muted-foreground flex items-center justify-center flex-shrink-0",children:i+1}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"text-sm text-foreground truncate",children:["@",s.username]}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:a("leaderboard.payoutEntries",{count:s.entry_count})})]})]}),e.jsxs("span",{className:"text-sm font-medium text-foreground tabular-nums",children:["$",parseFloat(s.total_earned).toFixed(0)]})]},s.username))})]}),e.jsxs("div",{className:"bg-card rounded-lg border border-border p-5",children:[e.jsx("h3",{className:"text-base font-semibold text-foreground mb-4",children:a("leaderboard.topClips")}),l.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:a("leaderboard.noClips")}):e.jsx("ul",{className:"space-y-2",children:l.map(s=>{const i=j[s.platform]||j.other;return e.jsxs("li",{className:"flex items-center gap-3 py-2 border-t border-border first:border-t-0 first:pt-0",children:[e.jsxs("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 flex-1 min-w-0 text-foreground hover:underline",children:[s.thumbnail_url?e.jsx("img",{src:s.thumbnail_url,alt:"",className:"w-9 h-9 rounded-sm object-cover bg-foreground
1/5 flex-shrink-0"}):e.jsx("span",{className:"w-9 h-9 rounded-sm bg-foreground/5 flex items-center justify-center flex-shrink-0",children:e.jsx(m,{icon:[i.brand?"fab":"far",i.icon],className:"text-sm text-muted-foreground"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm truncate",children:s.title||a("leaderboard.platformClip",{platform:s.platform})}),e.jsx("p",{className:"text-[10px] text-muted-foreground capitalize",children:a("leaderboard.platformAndViews",{platform:s.platform,views:s.view_count.toLocaleString()})})]})]}),e.jsxs("span",{className:"text-sm font-medium text-foreground tabular-nums",children:["$",parseFloat(s.earned).toFixed(0)]})]},s.id)})})]})]})]})})}const F=["tier1","tier2","tier3","tier4"],R={tier1:"$4.00",tier2:"$3.00",tier3:"$2.00",tier4:"$1.25"},P=["tier1","tier2","tier3"],q={tier1:"$0.08",tier2:"$0.05",tier3:"$0.03"};function N(t){const a=[[1e4,4],[1e5,3],[1e6,2],[1/0,1.25]];let n=0,o=0;for(const[d,l]of a){if(n>=t)break;const s=Math.min(t,d);s>n&&(o+=(s-n)*l,n=s)}return o/1e3}function y(t){const a=[[1e3,.08],[1e4,.05],[1/0,.03]];let n=0,o=0;for(const[d,l]of a){if(n>=t)break;const s=Math.min(t,d);s>n&&(o+=(s-n)*l,n=s)}return o}const V=[{views:5e4,plays:1e3,labelKey:"indieHit"},{views:8e4,plays:3e3,labelKey:"tikTokSuccess"},{views:5e5,plays:1e4,labelKey:"goingViral"},{views:1e6,plays:25e3,labelKey:"bigBreak"}],M=["q1","q2","q3","q4","q5","q6"];function te(){const{t}=v("earnings"),{isAuthenticated:a}=L(),n=S(),[o,d]=c.useState(8e4),[l,s]=c.useState(3e3),[i,w]=c.useState(!1);c.useEffect(()=>{u(g.EARN_LANDING_VIEWED)},[]);const p=c.useMemo(()=>N(o),[o]),b=c.useMemo(()=>y(l),[l]),k=p+b,x=r=>{u(g.CTA_CLICKED,{surface:"earn_landing",placement:r}),n(a?"/earnings":"/register?intent=earn")},f=r=>{r.views!==void 0&&d(r.views),r.plays!==void 0&&s(r.plays),i||(w(!0),u(g.EARN_CALCULATOR_INTERACTED))};return e.jsxs(e.Fragment,{children:[e.jsxs(_,{children:[e.jsx("title",{children:t("landing.pageTitle")}),e.jsx("meta",{name:"description",content:t("landing.metaDescription")})]}),e.jsx(A,{skipScrolled:!0}),e.jsx("section",{className:"bg-background pt-32 pb-20 md:pt-40 md:pb-28",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-success/10 text-success text-xs rounded-full mb-5",children:t("landing.hero.badge")}),e.jsxs("h1",{className:"text-h1-sm md:text-h1 text-foreground tracking-tight",children:[t("landing.hero.titleLine1"),e.jsx("br",{className:"hidden md:inline"})," ",t("landing.hero.titleLine2")]}),e.jsx("p",{className:"text-base md:text-lg text-muted-foreground mt-5 max-w-xl mx-auto",children:t("landing.hero.subtitle")}),e.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row items-center justify-center gap-3",children:[e.jsx("button",{onClick:()=>x("hero_primary"),className:"h-12 px-6 rounded-md bg-foreground text-background text-base font-medium hover:opacity-80 transition-all cursor-pointer",children:t("landing.hero.startCta")}),e.jsx("a",{href:"#calculator",className:"h-12 px-6 rounded-md border border-border text-foreground text-base hover:bg-foreground
1/4 transition-all flex items-center",children:t("landing.hero.estimateCta")})]})]})}),e.jsx("section",{className:"bg-background py-16 md:py-24 border-t border-border",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[e.jsx("h2",{className:"text-h2-sm md:text-h2 text-foreground text-center mb-3",children:t("landing.howItWorks.title")}),e.jsx("p",{className:"text-base text-muted-foreground text-center mb-12 max-w-xl mx-auto",children:t("landing.howItWorks.subtitle")}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{step:"1",icon:"wand-magic-sparkles",titleKey:"step1Title",bodyKey:"step1Body"},{step:"2",icon:"share-nodes",titleKey:"step2Title",bodyKey:"step2Body"},{step:"3",icon:"sack-dollar",titleKey:"step3Title",bodyKey:"step3Body"}].map(r=>e.jsxs("div",{className:"bg-card rounded-lg border border-border p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("span",{className:"w-8 h-8 rounded-md bg-foreground/8 text-foreground text-sm font-bold flex items-center justify-center",children:r.step}),e.jsx(m,{icon:["far",r.icon],className:"text-muted-foreground text-base"})]}),e.jsx("h3",{className:"text-base font-semibold text-foreground mb-2",children:t(`landing.howItWorks.${r.titleKey}`)}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t(`landing.howItWorks.${r.bodyKey}`)})]},r.step))})]})}),e.jsx("section",{id:"calculator",className:"bg-background py-16 md:py-24 border-t border-border",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4",children:[e.jsx("h2",{className:"text-h2-sm md:text-h2 text-foreground text-center mb-3",children:t("landing.calculator.title")}),e.jsx("p",{className:"text-base text-muted-foreground text-center mb-10",children:t("landing.calculator.subtitle")}),e.jsxs("div",{className:"bg-card rounded-lg border border-border p-6 md:p-8",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs uppercase tracking-wide text-muted-foreground mb-2",children:t("landing.calculator.viewsLabel")}),e.jsx("input",{type:"range",min:0,max:2e6,step:5e3,value:o,onChange:r=>f({views:Number(r.target.value)}),className:"w-full"}),e.jsx("p",{className:"text-xl font-bold text-foreground mt-2 tabular-nums",children:t("landing.calculator.viewsCount",{views:o.toLocaleString()})}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.jsx(h,{i18nKey:"landing.calculator.earns",ns:"earnings",values:{amount:p.toFixed(2)},components:{bold:e.jsx("span",{className:"text-foreground font-medium"})}})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs uppercase tracking-wide text-muted-foreground mb-2",children:t("landing.calculator.playsLabel")}),e.jsx("input",{type:"range",min:0,max:5e4,step:250,value:l,onChange:r=>f({plays:Number(r.target.value)}),className:"w-full"}),e.jsx("p",{className:"text-xl font-bold text-foreground mt-2 tabular-nums",children:t("landing.calculator.playsCount",{plays:l.toLocaleString()})}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.jsx(h,{i18nKey:"landing.calculator.earns",ns:"earnings",values:{amount:b.toFixed(2)},components:{bold:e.jsx("span",{className:"text-foreground font-medium"})}})})]})]}
1),e.jsxs("div",{className:"rounded-md bg-foreground/4 p-5 text-center",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:t("landing.calculator.estimatedLabel")}),e.jsxs("p",{className:"text-4xl md:text-5xl font-bold text-foreground mt-1 tabular-nums",children:["$",k.toFixed(2)]}),e.jsx("button",{onClick:()=>x("calculator"),className:"mt-4 h-10 px-5 rounded-md bg-foreground text-background text-sm font-medium hover:opacity-80 transition-all cursor-pointer",children:t("landing.calculator.makeFirstGame")})]})]})]})}),e.jsx("section",{className:"bg-background py-16 md:py-24 border-t border-border",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[e.jsx("h2",{className:"text-h2-sm md:text-h2 text-foreground text-center mb-3",children:t("landing.rates.title")}),e.jsx("p",{className:"text-base text-muted-foreground text-center mb-10",children:t("landing.rates.subtitle")}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-card rounded-lg border border-border p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(m,{icon:["far","eye"],className:"text-foreground"}),e.jsx("h3",{className:"text-base font-semibold text-foreground",children:t("landing.rates.viewCpm.title")})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:t("landing.rates.viewCpm.body")}),e.jsx("ul",{className:"space-y-2",children:F.map(r=>e.jsxs("li",{className:"flex items-center justify-between text-sm border-t border-border first:border-t-0 first:pt-0 pt-2",children:[e.jsx("span",{className:"text-muted-foreground",children:t(`landing.rates.viewCpm.${r}Range`)}),e.jsxs("span",{className:"text-foreground font-medium tabular-nums",children:[R[r]," ",e.jsx("span",{className:"text-muted-foreground text-xs",children:t("landing.rates.viewCpm.tierSub")})]})]},r))})]}),e.jsxs("div",{className:"bg-card rounded-lg border border-border p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(m,{icon:["far","gamepad-modern"],className:"text-foreground"}),e.jsx("h3",{className:"text-base font-semibold text-foreground",children:t("landing.rates.playCpm.title")})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-5",children:t("landing.rates.playCpm.body")}),e.jsx("ul",{className:"space-y-2",children:P.map(r=>e.jsxs("li",{className:"flex items-center justify-between text-sm border-t border-border first:border-t-0 first:pt-0 pt-2",children:[e.jsx("span",{className:"text-muted-foreground",children:t(`landing.rates.playCpm.${r}Range`)}),e.jsxs("span",{className:"text-foreground font-medium tabular-nums",children:[q[r]," ",e.jsx("span",{className:"text-muted-foreground text-xs",children:t("landing.rates.playCpm.tierSub")})]})]},r))})]})]})]})}),e.jsx("section",{className:"bg-background py-16 md:py-24 border-t border-border",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[e.jsx("h2",{className:"text-h2-sm md:text-h2 text-foreground text-center mb-10",children:t("landing.examples.title")}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-3",children:V.map(r=>{const C=N(r.views)+y(r.plays);return e.jsxs("div",{className:"bg-card rounded-lg border border-border p-5",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:t(`landing.examples.${r.labelKey}`)}),e.jsxs("p",{className:"text-2xl font-bold text-foreground mt-2 tabular-nums",children:["$",Math.round(C).toLocaleString()]}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:[t("landing.examples.viewsCount",{views:r.views.toLocaleString()}),e.jsx("br",{}),t("landing.examples.playsCount",{plays:r.plays.toLocaleString()})]})]},r.labelKey)})})]})}),e.jsx(K,{}),e.jsx("section",{className:"bg-background py-16 md:py-24 border-t border-border",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4",children:[e.jsx("h2",{className:"text-h2-sm md:text-h2 text-foreground text-center mb-10",children:t("landing.faq.title")}),e.jsx("div",{className:"space-y-3",children:M.map(r=>e.jsxs("details",{className:"bg-card rounded-md border border-border p-4 group",children:[e.jsxs("summary",{className:"cursor-pointer text-foreground font-medium flex items-center justify-between list-none",children:[t(`landing.faq.${r}.q`),e.jsx(m,{icon:["far","chevron-down"],className:"text-xs text-muted-foreground group-open:rotate-180 transition-transform"})]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:t(`landing.faq.${r}.a`)})]},r))})]})}),e.jsx(I,{overrideContent:e.jsxs("div",{className:"relative z-10 flex flex-col items-center justify-center pt-24 md:pt-32 px-4",children:[e.jsx("h2",{className:"text-h2-sm md:text-h2 text-foreground text-center max-w-[900px]",children:t("landing.footer.title")}),e.jsx("p",{className:"text-base md:text-lg text-muted-foreground text-center mt-4 max-w-[560px]",children:t("landing.footer.subtitle")}),e.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsx("button",{onClick:()=>x("footer_primary"),className:"h-12 px-6 rounded-md bg-foreground text-background text-base font-medium hover:opacity-80 transition-all cursor-pointer",children:t("landing.footer.startCta")}),e.jsx(T,{to:"/pricing",className:"h-12 px-6 rounded-md border border-border text-foreground text-base hover:bg-foreground
1/4 transition-all flex items-center",children:t("landing.footer.pricingCta")})]})]})})]})}export{te 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.