PageSourceSearch

https://modrinth.com/_nuxt/X53l9CDC.js

js modrinth.com collected 2026-09-24 09:07:42 UTC 4,668 bytes, 1 lines download raw bytes

1import{V as $,aW as B,g as H,aX as R,e as V,Q as l,bQ as q,c as A,bR as F,a_ as T,a as U,v as r,k as t,b as s,j as _,m as c,n as m,F as j,b6 as z,o as d,bg as g,bS as D,bP as W,q as b,H as w,_ as Q,bT as E,bU as G,bV as K,bW as O}from"./DvgxvNL0.js";import{_ as X,c as J,g as L}from"./C2YHD9Vv.js";import{h as Y}from"./B31EOvq4.js";import{u as Z}from"./CnZsaRAz.js";import{u as ee}from"./CNUV96Ln.js";import"./B0nhbelq.js";import"./DG1csYqL.js";import"./C0jx6QEY.js";import"./BYO7PYqm.js";import"./DQoYOIvj.js";import"./CAEf2ok7.js";import"./BT-X2sQH.js";import"./CWgfPVMP.js";import"./D4OQamVJ.js";import"./BuVIxg8d.js";import"./DQSAL0As.js";import"./CykAW2yW.js";const te={class:"main-hero"},se={class:"flex max-w-screen-lg flex-col items-center gap-4 text-center"},oe={class:"m-0 text-[2rem] font-bold text-purple"},re={class:"m-0 mb-4 text-secondary"},ae={class:"perks-hero"},ne={class:"mt-8 grid max-w-screen-lg gap-8 lg:grid-cols-3"},ie={class:"flex flex-col gap-4 rounded-xl bg-bg-raised p-4"},le={class:"flex flex-col gap-4 roun
1ded-xl bg-bg-raised p-4"},de={class:"flex flex-col gap-4 rounded-xl bg-bg-raised p-4"},S="Subscribe to Modrinth Plus!",P="Subscribe to Modrinth Plus to go ad-free, support Modrinth's development, and get an exclusive profile badge! Half your subscription goes directly to Modrinth creators.",ue={__name:"plus",async setup(pe){let a,f;const{addNotification:k}=B(),C=ee();H({title:S,description:P,ogTitle:S,ogDescription:P}),R({script:[{src:"https://js.stripe.com/v3/",defer:!0,async:!0}]});const y=O(),u=([a,f]=V(()=>z()),a=await a,f(),a),p=l(),x=l(q.find(i=>i.metadata.type==="midas")),h=Z(),n=A(()=>x.value.prices.find(i=>i.currency_code===L(h.value))),v=l(),M=l([]);async function I(){[v.value,M.value]=await Promise.all([g("billing/customer",{internal:!0}),g("billing/payment_methods",{internal:!0})])}const N=F();return T(()=>{N.query.showModal&&p.value.show()}),(i,e)=>(d(),U(j,null,[r(t(X),{ref_key:"purchaseModal",ref:p,product:t(x),country:t(h),"publishable-key":t(y).public.stripePublishableKey,"send-billing-request":async o=>await t(g)("billing/payment",{internal:!0,method:"POST",body:o}),"fetch-payment-data":I,"on-error":o=>t(k)({title:"An error occurred",type:"error",text:o.message??(o.data?o.data.description:o)}),customer:t(v),"payment-methods":t(M),"return-url":`${t(y).public.siteUrl}/settings/billing`},null,8,["product","country","publishable-key","send-billing-request","on-error","customer","payment-methods","return-url"]),s("div",te,[s("div",se,[r(t(D),{class:"h-8 w-max text-contrast"}),e[4]||(e[4]=s("h1",{class:"m-0 text-[4rem]"},"Support creators and go ad-free",-1)),e[5]||(e[5]=s("p",{class:"m-0 mb-4 text-[18px] leading-relaxed"}," Subscribe to Modrinth Plus to go ad-free, support Modrinth's development, and get an exclusive profile badge! Half your subscription goes directly to Modrinth creators. Cancel anytime. ",-1)),s("p",oe,_(t(C)(t(n).prices.intervals.monthly,t(n).currency_code))+"/mo ",1),s("p",re," or save "+_(t(J)(t(n).prices.intervals.monthly,t(n).prices.intervals.yearly))+"% with annual billing! ",1),t(u).user&&t(Y)(t(u).user)?(d(),c(t(w),{key:0,type:"colored",color:"purple",size:"xl",to:"/settings/billing"},{default:m(()=>[r(t(W),{"aria-hidden":"true"}),e[1]||(e[1]=b(" Manage subscription ",-1))]),_:1})):t(u).user?(d(),c(t(Q),{key:1,type:"colored",color:"purple",size:"xl",onClick:e[0]||(e[0]=o=>t(p).show())},{default:m(()=>[...e[2]||(e[2]=[b("Subscribe",-1)])]),_:1})):(d(),c(t(w),{key:2,type:"colored",color:"purple",size:"xl",to:`/auth/sign-in?redirect=${encodeURIComponent("/plus?showModal=true")}`},{default:m(()=>[...e[3]||(e[3]=[b(" Subscribe ",-1)])]),_:1},8,["to"]))])]),s("div",ae,[e[12]||(e[12]=s("h2",null,"What you get with Modrinth Plus!",-1)),s("div",ne,[s("div",ie,[r(t(E),{class:"h-8 w-8 text-purple"}),e[6]||(e[6]=s("span",{class:"text-lg font-bold"},"Support Modrinth creators",-1)),e[7]||(e[7]=s("span",{class:"leading-5 text-secondary"}," 50% of your subscription goes directly to Modrinth creators. ",-1))]),s("div",le,[r(t(G),{class:"h-8 w-8 text-purple"}),e[8]||(e[8]=s("span",{class:"text-lg font-bold"},"Remove all ads",-1)),e[9]||(e[9]=s("span",{class:"leading-5 text-secondary"}," Never see an advertisement again on the Modrinth app. ",-1))]),s("div",de,[r(t(K),{class:"h-8 w-8 text-purple"}),e[10]||(e[10]=s("span",{class:"text-lg font-bold"},"Profile badge",-1)),e[11]||(e[11]=s("span",{class:"leading-5 text-secondary"},"Get an exclusive badge on your user page.",-1))])]),e[13]||(e[13]=s("span",{class:"mt-4 text-secondary"},"...and much more coming soon™!",-1))])],64))}},Ne=$(ue,[["__scopeId","data-v-7631c6f1"]]);export{Ne 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.