import{_ as R,q as O,Y as M,b as Y,aD as q,c as l,a,h as n,l as e,w as u,t as i,F as f,p as v,k as J,af as Q,bJ as m,aL as K,bT as X,ah as e2,Q as a2,o as r,R as A,i as y,bS as G,dq as t2,N as j,g as w,dr as s2,dd as i2,n as o2,aT as n2,b2 as d2,s as r2,ds as l2,dt as c2,v as T}from"./Co0rzPff.js";import{A as U}from"./CCBW7oxg.js";import{u as u2}from"./mxhR-slD.js";import{c as h2}from"./DcFkmsmp.js";import{s as p2}from"./C0vv9eT9.js";import{P as g2,A as C2,_ as f2}from"./DOlkK8Ql.js";import{P as v2}from"./CNjYxwaV.js";import"./BNIq7RTg.js";import"./BXV9WDHh.js";import"./N3sMM75Y.js";import"./BEt1WLUe.js";import"./BB5xSxcZ.js";import"./z-xUYPp7.js";const m2={class:"landing-hero"},_2={class:"main-header"},b2={class:"animate-strong"},M2={class:"main-header-strong"},y2={class:"button-group"},w2={class:"users-section-outer"},L2={key:0,class:"projects-showcase"},D2={class:"project-info"},x2={class:"title"},T2={class:"description"},Z2={key:1,class:"relative z-[10] w-full text-center text-xl font-bold text-contrast"},k2={class:"users-section"},H2={class:"section-header"},P2={class:"section-label green"},B2={class:"section-tagline"},S2={class:"section-description"},V2={class:"feature-blob"},E2={class:"blob-text"},A2={class:"blob-demonstration gradient-border bigger"},G2={class:"demo-search"},j2={class:"search-controls"},U2={class:"iconified-input"},I2={class:"hidden",for:"search"},z2=["placeholder"],F2={class:"sort-by"},W2={class:"label"},$2={class:"results display-mode--list"},N2={class:"feature-blob reverse"},R2={class:"blob-text"},O2={class:"blob-demonstration gradient-border"},Y2={class:"notifs-demo"},q2={class:"notifications"},J2={class:"notif-desc"},Q2={class:"date"},K2={class:"feature-blob"},X2={class:"blob-text"},ee={class:"blob-demonstration gradient-border"},ae={class:"launcher-view"},te=["alt"],se=["alt"],ie={class:"launcher-graphics"},oe=["title","aria-label"],ne=["title","aria-label"],de={class:"creator-section"},re={class:"section-header"},le={class:"section-label blue"},ce={class:"section-tagline"},ue={class:"section-description"},he={class:"features"},pe={class:"feature gradient-border"},ge={class:"feature gradient-border"},Ce={class:"feature gradient-border"},fe={class:"feature gradient-border"},ve={class:"feature gradient-border"},me={class:"feature gradient-border"},_e={class:"bg-[var(--landing-raw-bg)]"},be=75e3,Me={__name:"index",async setup(ye){var S,V,E;let L,Z;const I=u2(),{formatMessage:t}=O(),D=M("leave"),x=M("relevance"),z=new Intl.NumberFormat().format,F=Y(()=>z(be)),W=([L,Z]=q(()=>K()),L=await L,Z(),L),g=(S=X)==null?void 0:S.slice(0,40),_=Math.ceil((g==null?void 0:g.length)/3),k=M(g.length>0?[g.slice(0,_),g.slice(_,_*2),g.slice(_*2,_*3)]:void 0),$=M(((V=l2)==null?void 0:V.hits)??[]),H=M(((E=c2)==null?void 0:E.hits)??[]);async function P(){const b=await e2(`search?limit=3&query=${D.value}&index=${x.value}`);H.value=(b==null?void 0:b.hits)??[]}const o=T({thePlaceForMinecraft:{id:"landing.heading.the-place-for-minecraft",defaultMessage:"The place for Minecraft {content}"},discoverHeading:{id:"landing.subheading",defaultMessage:"Discover, play, and share Minecraft content through our open-source platform built for the community."},discoverMods:{id:"landing.button.discover-mods",defaultMessage:"Discover mods"},goToDashboard:{id:"landing.button.go-to-dashboard",defaultMessage:"Go to dashboard"},failedToLoadRandomProjects:{id:"landing.error.failedToLoadRandomProjects",defaultMessage:"Failed to load random projects :("},forPlayersLabel:{id:"landing.section.for-players.label",defaultMessage:"For Players"},forCreatorsLabel:{id:"landing.section.for-creators.label",defaultMessage:"For Creators"},discoverCreationsTagline:{id:"landing.section.for-players.tagline",defaultMessage:"Discover over {count} creations"},shareContentTagline:{id:"landing.section.for-creators.tagline",defaultMessage:"Share your content with the world"},playersDescription:{id:"landing.section.for-players.description",defaultMessage:"From magical biomes to cursed dungeons, you can be sure to find content to bring your gameplay to the next level."},creatorsDescription:{id:"landing.section.for-creators.description",defaultMessage:"Give an online home to your creations and reach a massive audience of dedicated players."},findWhatYouWantHeading:{id:"landing.feature.search.heading",defaultMessage:"Find what you want, quickly and easily"},findWhatYouWantDescription:{id:"landing.feature.search.description",defaultMessage:"Modrinth's lightning-fast search and powerful filters let you find what you want as you type."},followProjectsHeading:{id:"landing.feature.follow.heading",defaultMessage:"Follow projects you love"},followProjectsDescription:{id:"landing.feature.follow.description",defaultMessage:"Get notified every time your favorite projects update and stay in the loop."},playWithLauncherHeading:{id:"landing.feature.launcher.heading",defaultMessage:"Play with your favorite launcher"},playWithLauncherDescription:{id:"landing.feature.launcher.description",defaultMessage:"Modrinth's open-source API lets launchers add deep integration with Modrinth. You can use Modrinth through our own app and some of the most popular launchers like ATLauncher, MultiMC, and Prism Launcher."},searchPlaceholder:{id:"landing.search.placeholder",defaultMessage:"Search..."},searchLabel:{id:"landing.search.label",defaultMessage:"Search"},sortByLabel:{id:"landing.search.sort-by.label",defaultMessage:"Sort by"},notificationsHeading:{id:"landing.notifications.heading",defaultMessage:"Notifications"},hasBeenUpdated:{id:"landing.notifications.has-been-updated",defaultMessage:"{title} has been updated!"},versionReleased:{id:"landing.notifications.version-released",defaultMessage:"Version {version} has been released for {gameVersion}"},receivedTime:{id:"landing.notifications.received-time",defaultMessage:"Received {time}"},launcherGraphicAlt:{id:"landing.launcher.graphic-alt",defaultMessage:"A simplified representation of a Minecraft window, with the Mojang Studios logo in Modrinth green."},prismLauncherLabel:{id:"landing.launcher.prism-launcher-label",defaultMessage:"Prism Launcher"},modrinthAppLabel:{id:"landing.launcher.modrinth-app-label",defaultMessage:"Modrinth App"},atlauncherLabel:{id:"landing.launcher.atlauncher-label",defaultMessage:"ATLauncher"}}),B=T({mods:{id:"landing.heading.the-place-for-minecraft.mods",defaultMessage:"mods"},resourcePacks:{id:"landing.heading.the-place-for-minecraft.resource-packs",defaultMessage:"resource packs"},dataPacks:{id:"landing.heading.the-place-for-minecraft.data-packs",defaultMessage:"data packs"},shaders:{id:"landing.heading.the-place-for-minecraft.shaders",defaultMessage:"shaders"},modpacks:{id:"landing.heading.the-place-for-minecraft.modpacks",defaultMessage:"modpacks"},plugins:{id:"landing.heading.the-place-for-minecraft.plugins",defaultMessage:"plugins"},servers:{id:"landing.heading.the-place-for-minecraft.servers",defaultMessage:"servers"}}),c=T({discoveryTitle:{id:"landing.creator.feature.discovery.title",defaultMessage:"Discovery"},discoveryDescription:{id:"landing.creator.feature.discovery.description",defaultMessage:"Get your project discovered by thousands of users through search, our home page, Discord server, and more ways to come in the future!"},teamManagementTitle:{id:"landing.creator.feature.team-management.title",defaultMessage:"Team Management"},teamManagementDescription:{id:"landing.creator.feature.team-management.description",defaultMessage:"Invite your teammates and manage roles and permissions with ease"},monetizationTitle:{id:"landing.creator.feature.monetization.title",defaultMessage:"Monetization"},monetizationDescription:{id:"landing.creator.feature.monetization.description",defaultMessage:"Get paid ad revenue from your project pages and withdraw your funds at any time"},diverseEcosystemTitle:{id:"landing.creator.feature.diverse-ecosystem.title",defaultMessage:"Diverse Ecosystem"},diverseEcosystemDescription:{id:"landing.creator.feature.diverse-ecosystem.description",defaultMessage:"Integrate with your build tools through Minotaur for automatic uploads right when you release a new version"},dataStatisticsTitle:{id:"landing.creator.feature.data-statistics.title",defaultMessage:"Data and Statistics"},dataStatisticsDescription:{id:"landing.creator.feature.data-statistics.description",defaultMessage:"Get detailed reports on page views, download counts, and revenue"},constantlyEvolvingTitle:{id:"landing.creator.feature.constantly-evolving.title",defaultMessage:"Constantly Evolving"},constantlyEvolvingDescription:{id:"landing.creator.feature.constantly-evolving.description",defaultMessage:"Get the best modding experience possible with constant updates from the Modrinth team"}});return(b,d)=>{const p=a2;return r(),l("div",null,[a("div",m2,[n(e(A),{class:"modrinth-icon text-brand"}),a("h1",_2,[n(e(G),{"message-id":e(o).thePlaceForMinecraft},{"~content":u(()=>[a("div",b2,[a("span",null,[(r(!0),l(f,null,v(Object.entries(e(B)),([s,C])=>(r(),l("strong",{key:`landing-content-type-${s}`,class:"main-header-strong"},[y(i(e(t)(C))+" ",1),d[2]||(d[2]=a("br",null,null,-1))]))),128)),a("strong",M2,i(e(t)(e(B).mods)),1)])])]),_:1},8,["message-id"])]),a("h2",null,i(e(t)(e(o).discoverHeading)),1),a("div",y2,[n(e(j),{color:"brand",size:"large"},{default:u(()=>[n(p,{to:"/mods"},{default:u(()=>[n(e(t2),{"aria-hidden":"true"}),y(" "+i(e(t)(e(o).discoverMods)),1)]),_:1})]),_:1}),n(e(j),{size:"large",type:"outlined"},{default:u(()=>[e(W).user?(r(),w(p,{key:1,to:"/dashboard/projects"},{default:u(()=>[n(e(i2),{"aria-hidden":"true"}),y(" "+i(e(t)(e(o).goToDashboard)),1)]),_:1})):(r(),w(p,{key:0,to:"/auth/sign-up",rel:"noopener nofollow"},{default:u(()=>[n(e(s2),{"aria-hidden":"true"}),y(" "+i(e(t)(e(h2).signUpButton)),1)]),_:1}))]),_:1})])]),a("div",w2,[k.value?(r(),l("div",L2,[(r(!0),l(f,null,v(k.value,(s,C)=>(r(),l("div",{key:C,class:"row"},[(r(),l(f,null,v(2,N=>a("div",{key:N,class:o2(["row__content",{offset:C%2}])},[(r(!0),l(f,null,v(s,h=>(r(),w(p,{key:h.id,class:"project button-animation",to:`/${h.project_type}/${h.slug?h.slug:h.id}`},{default:u(()=>[n(e(U),{src:h.icon_url,alt:h.title,size:"sm",loading:"lazy"},null,8,["src","alt"]),a("div",D2,[a("span",x2,i(h.title),1),a("span",T2,i(h.description),1)])]),_:2},1032,["to"]))),128))],2)),64))]))),128))])):(r(),l("div",Z2,i(e(t)(e(o).failedToLoadRandomProjects)),1)),d[3]||(d[3]=a("div",{class:"projects-transition"},null,-1)),a("div",k2,[a("div",H2,[a("div",P2,i(e(t)(e(o).forPlayersLabel)),1),a("h2",B2,i(e(t)(e(o).discoverCreationsTagline,{count:e(F)})),1),a("p",S2,i(e(t)(e(o).playersDescription)),1)]),a("div",V2,[a("div",E2,[a("h3",null,i(e(t)(e(o).findWhatYouWantHeading)),1),a("p",null,i(e(t)(e(o).findWhatYouWantDescription)),1)]),a("div",A2,[a("div",G2,[a("div",j2,[a("div",U2,[a("label",I2,i(e(t)(e(o).searchLabel)),1),n(e(n2),{"aria-hidden":"true"}),J(a("input",{id:"search","onUpdate:modelValue":d[0]||(d[0]=s=>D.value=s),type:"search",name:"search",placeholder:e(t)(e(o).searchPlaceholder),autocomplete:"off",onInput:P},null,40,z2),[[Q,D.value]])]),a("div",F2,[a("span",W2,i(e(t)(e(o).sortByLabel)),1),n(e(p2),{modelValue:x.value,"onUpdate:modelValue":[d[1]||(d[1]=s=>x.value=s),P],placeholder:"Select one",class:"selector","custom-label":s=>s.charAt(0).toUpperCase()+s.slice(1),options:["relevance","downloads","follows","updated","newest"],searchable:!1,"close-on-select":!0,"show-labels":!1,"allow-empty":!1},null,8,["modelValue","custom-label"])])]),a("div",$2,[(r(!0),l(f,null,v(H.value,s=>(r(),w(v2,{id:s.slug?s.slug:s.project_id,key:s.project_id,class:"small-mode gradient-border",type:s.project_type,author:s.author,name:s.title,description:s.description,"created-at":s.date_created,"updated-at":s.date_modified,downloads:s.downloads.toString(),follows:s.follows.toString(),"icon-url":s.icon_url,"client-side":s.client_side,"server-side":s.server_side,categories:s.display_categories.slice(0,3),search:!0,"show-updated-date":!0,color:s.color},null,8,["id","type","author","name","description","created-at","updated-at","downloads","follows","icon-url","client-side","server-side","categories","color"]))),128))])])])]),a("div",N2,[a("div",R2,[a("h3",null,i(e(t)(e(o).followProjectsHeading)),1),a("p",null,i(e(t)(e(o).followProjectsDescription)),1)]),a("div",O2,[a("div",Y2,[a("h3",null,i(e(t)(e(o).notificationsHeading)),1),a("div",q2,[(r(!0),l(f,null,v($.value,(s,C)=>(r(),l("div",{key:C,class:"notification gradient-border"},[n(p,{to:`${s.project_type}/${s.slug}`,title:s.title},{default:u(()=>[n(e(U),{size:"md",src:s.icon_url,alt:s.title},null,8,["src","alt"])]),_:2},1032,["to","title"]),a("div",null,[n(p,{to:`${s.project_type}/${s.slug}`,class:"notif-header"},{default:u(()=>[y(i(e(t)(e(o).hasBeenUpdated,{title:s.title})),1)]),_:2},1032,["to"]),a("p",J2,i(e(t)(e(o).versionReleased,{version:["1.1.2","1.0.3","15.1"][C],gameVersion:s.versions[s.versions.length-1]})),1),a("div",Q2,[n(e(d2),{"aria-hidden":"true"}),a("span",null,i(e(t)(e(o).receivedTime,{time:e(I)(s.date_modified)})),1)])])]))),128))])])])]),a("div",K2,[a("div",X2,[a("h3",null,i(e(t)(e(o).playWithLauncherHeading)),1),a("p",null,[n(e(G),{"message-id":e(o).playWithLauncherDescription},{link:u(({children:s})=>[n(p,{class:"title-link",to:"/app"},{default:u(()=>[(r(),w(r2(()=>s)))]),_:2},1024)]),_:1},8,["message-id"])])]),a("div",ee,[a("div",ae,[b.$theme.active==="light"?(r(),l("img",{key:0,src:"https://cdn.modrinth.com/landing-new/launcher-light.webp",alt:e(t)(e(o).launcherGraphicAlt),class:"minecraft-screen"},null,8,te)):(r(),l("img",{key:1,src:"https://cdn.modrinth.com/landing-new/launcher.webp",alt:e(t)(e(o).launcherGraphicAlt),class:"minecraft-screen"},null,8,se)),a("div",ie,[a("a",{rel:"noopener",href:"https://prismlauncher.org/",class:"graphic gradient-border",title:e(t)(e(o).prismLauncherLabel),"aria-label":e(t)(e(o).prismLauncherLabel)},[n(e(g2),{"aria-hidden":"true"})],8,oe),n(p,{to:"/app",class:"graphic gradient-border text-brand","aria-label":e(t)(e(o).modrinthAppLabel)},{default:u(()=>[n(e(A),{"aria-hidden":"true"})]),_:1},8,["aria-label"]),a("a",{rel:"noopener",href:"https://atlauncher.com/",class:"graphic gradient-border",title:e(t)(e(o).atlauncherLabel),"aria-label":e(t)(e(o).atlauncherLabel)},[n(e(C2),{"aria-hidden":"true"})],8,ne)])])])])])]),a("div",de,[a("div",re,[a("div",le,i(e(t)(e(o).forCreatorsLabel)),1),a("h2",ce,i(e(t)(e(o).shareContentTagline)),1),a("p",ue,i(e(t)(e(o).creatorsDescription)),1)]),a("div",he,[a("div",pe,[d[4]||(d[4]=m('
',1)),a("h3",null,i(e(t)(e(c).discoveryTitle)),1),a("p",null,i(e(t)(e(c).discoveryDescription)),1)]),a("div",ge,[d[5]||(d[5]=m('
',1)),a("h3",null,i(e(t)(e(c).teamManagementTitle)),1),a("p",null,i(e(t)(e(c).teamManagementDescription)),1)]),a("div",Ce,[d[6]||(d[6]=m('
',1)),a("h3",null,i(e(t)(e(c).monetizationTitle)),1),a("p",null,i(e(t)(e(c).monetizationDescription)),1)]),a("div",fe,[d[7]||(d[7]=m('
',1)),a("h3",null,i(e(t)(e(c).diverseEcosystemTitle)),1),a("p",null,i(e(t)(e(c).diverseEcosystemDescription)),1)]),a("div",ve,[d[8]||(d[8]=m('
',1)),a("h3",null,i(e(t)(e(c).dataStatisticsTitle)),1),a("p",null,i(e(t)(e(c).dataStatisticsDescription)),1)]),a("div",me,[d[9]||(d[9]=m('
',1)),a("h3",null,i(e(t)(e(c).constantlyEvolvingTitle)),1),a("p",null,i(e(t)(e(c).constantlyEvolvingDescription)),1)])])]),a("div",_e,[n(f2)])])}}},Ae=R(Me,[["__scopeId","data-v-48d6e828"]]);export{Ae as default};