1import{r as v,j as e}from"./react-core-DsYD4zsK.js";import{u,a as h,H as g,M as f,B as y,k as w,C as _,f as k,g as S,R as l,n as m,t as C}from"./index-I3rOSDxK.js";import D from"./Footer-BkyTMUc6.js";import{C as M}from"./CovilPageHero-DSBax2iA.js";import{u as R}from"./query-BdQQM0HX.js";import{m as d}from"./framer-DdVoo0CI.js";import{R as z,A as j,m as I,n as L,o as A,p as H,q as B,B as T}from"./lucide-Db2q8fbW.js";import{P as E}from"./PageAtmosphere-BOjQCKDm.js";import{R as W}from"./RouteSeo-dAWgcKSA.js";import"./react-router-B2U0pEva.js";import"./gsap-lm1_eoaE.js";import"./StructuredData-DgjRYr_H.js";import"./asSeenOnOutlets-i-grBu0v.js";const F="https://discord.com/api/v9/invites/gutty?with_counts=true";function O(t){return t.toLocaleString("pt-BR")}const b={onlineCount:0,totalMembers:"2.500",isLive:!1};async function P(){const t=await fetch(F);if(!t.ok)throw new Error("Failed to fetch Discord invite");const a=await t.json(),r=typeof a.approximate_member_count=="number"?a.approximate_member_count:0,n=typeof a.approximate_presence_count=="number"?a.approximate_presence_count:0;return{onlineCount:n,totalMembers:O(r),isLive:n>0}}function U(){return R({queryKey:["discord-stats"],queryFn:P,staleTime:30*1e3,refetchInterval:60*1e3,refetchIntervalInBackground:!1,retry:2,retryDelay:5e3,placeholderData:b})}const x=({className:t})=>e.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})}),p=({loading:t,children:a,accent:r})=>t?e.jsx("span",{className:"mb-3 inline-block h-10 w-24 animate-pulse rounded-sm bg-primary/20 shadow-[0_0_16px_rgba(255,51,51,0.15)]","aria-hidden":!0}):e.jsx("span",{className:`mb-2 text-4xl tracking-[0.08em] md:text-5xl ${r?"text-glow text-primary":"text-foreground"}`,style:{fontFamily:"'Bebas Neue', sans-serif"},children:a}),N=v.memo(()=>{const{t}=u(),{data:a,isLoading:r,isError:n}=U(),{shouldReduceMotion:s}=h(),i=w(s),c=a??b,o=r&&!a;return e.jsxs(d.div,{initial:i.fadeIn.initial,animate:i.fadeIn.animate,transition:i.fadeIn.transition,className:"mx-auto w-full max-w-5xl",children:[e.jsx("div",{className:"covil-panel overflow-visible rounded-2xl",children:e.jsxs(g,{className:"rounded-2xl",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-primary/20 bg-primary/5 px-5 py-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(z,{className:`h-3.5 w-3.5 text-primary ${s?"":"animate-pulse"}`,"aria-hidden":!0}),e.jsx("span",{className:"font-mono text-[10px] font-bold uppercase tracking-[0.35em] text-primary",children:t("discordWidget.liveNow")})]}),e.jsxs("span",{className:"hidden items-center gap-2 font-mono text-[10px] uppercase tracking-[0.28em] text-zinc-500 sm:flex",children:[e.jsx(x,{className:"h-3.5 w-3.5 text-primary/70"}),"UPLINK · discord.gg/gutty"]})]}),e.jsxs("div",{className:"grid grid-cols-1 divide-y divide-primary/15 sm:grid-cols-3 sm:divide-x sm:divide-y-0",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-8",children:[e.jsx(p,{loading:o,children:c.totalMembers}),e.jsx("span",{className:"text-center font-mono text-[10px] uppercase tracking-[0.32em] text-zinc-500",children:t("discordWidget.members")})]}),e.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-8",children:[e.jsx(p,{loading:o,accent:!0,children:n?"0":c.onlineCount}),e.jsxs("span",{className:"flex items-center gap-2 text-center font-mono text-[10px] uppercase tracking-[0.32em] text-zinc-500",children:[e.jsxs("span",{className:"relative flex h-2 w-2","aria-hidden":"true",children:[s?null:e.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-primary opacity-75"}),e.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-primary"})]}),t("discordWidget.enthusiastsOnline")]})]}),e.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-8",children:[e.jsx("span",{className:"mb-2 text-4xl tracking-[0.08em] text-primary md:text-5xl",style:{fontFamily:"'Bebas Neue', sans-serif"},children:"24/7"}),e.jsx("span",{className:"text-center font-mono text-[10px] uppercase tracking-[0.32em] text-zinc-500",children:t("discordWidget.support247")})]})]})]})}),e.jsx(d.div,{initial:i.fadeIn.initial,animate:i.fadeIn.animate,transition:i.fadeIn.transition,className:"mt-8 flex justify-center",children:e.jsx(f,{children:e.jsx(y,{asChild:!0,size:"lg",className:`bg-primary px-10 text-lg font-black text-black shadow-[0_0_24px_rgba(255,51,51,0.4)] hover:bg-primary/90 ${s?"":"animate-pulse-glow"}`,children:e.jsxs("a",{href:"https://discord.gg/gutty",target:"_blank",rel:"noopener noreferrer","aria-label":"Entrar no Discord da GuttyTECH (abre em nova aba)",children:[e.jsx(x,{className:"mr-2 h-5 w-5"}),t("discordWidget.joinDen"),e.jsx(j,{className:"ml-2 h-5 w-5","aria-hidden":"true"})]})})})})]})});N.displayName="DiscordLiveWidget";const se=()=>{const{t}=u(),{shouldReduceMotion:a}=h(),r=[{icon:I,title:t("community.directSupport"),description:t("community.directSupportDesc")},{icon:L,title:t("community.exclusiveTips"),description:t("community.exclusiveTipsDesc")},{icon:A,title:t("community.activeCommunity"),description:t("community.activeCommunityDesc")},{icon:H,title:t("community.arsenalVip"),description:t("community.arsenalVipDesc")}],n=a?0:50;return e.jsxs("div",{className:"relative min-h-screen bg-[#050505]",children:[e.jsx(W,{path:_}),e.jsx(E,{intensity:"medium"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx(k,{}),e.jsxs("main",{id:"main-content",children:[e.jsx(M,{eyebrow:e.jsxs(e.Fragment,{children:[e.jsx(B,{className:"h-3.5 w-3.5","aria-hidden":"true"}),t("community.badge")]}),title:String(t("community.welcomeTo")),titleHighlight:String(t("community.titleHighlight")),subtitle:String(t("community.subtitle")),decodeDisabled:a,align:"center",media:e.jsx(S,{animated:!0,src:"/banners/banner-comunidade",alt:String(t("banners.comunidade")),aspectRatio:"500/147",priority:!0,respectReducedMotion:!1,className:"rounded-xl"})}),e.jsx("div",{className:"container mx-auto -mt-4 px-4 pb-8",children:e.jsx(N,{})}),e.jsxs("section",{className:"relative py-24",children:[e.jsx("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute inset-0 bg-[linear-gradient(rgba(230,47,47,0.045)_1px,transparent_1px),linear-gradient(90deg,rgba(230,47,47,0.045)_1px,transparent_1px)] bg-[size:48px_48px] [mask-image:radial-gradient(ellipse_at_center,black_40%,transparent_75%)]"}),e.jsxs("div",{className:"container relative z-10 mx-auto px-4",children:[e.jsxs(l,{y:16,className:"mb-12 text-center",children:[e.jsx("p",{className:"mb-3 font-mono text-[10px] uppercase tracking-[0.4em] text-primary",children:"/// OPS CHANNELS"}),e.jsx("h2",{className:"mb-3 text-3xl font-black tracking-tight md:text-4xl",children:t("community.featuresTitle")}),e.jsx("p",{className:"mx-auto max-w-2xl text-muted-foreground",children:t("community.featuresSubtitle")})]}),e.jsx("div",{className:"mx-auto grid max-w-4xl grid-cols-1 gap-6 md:grid-cols-2",children:r.map((s,i)=>e.jsx(l,{y:20,delay:i*n,className:"covil-panel rounded-xl",children:e.jsxs(g,{className:"flex h-full flex-col rounded-xl p-6",children:[e.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-lg border border-primary/30 bg-primary/15",children:e.jsx(s.icon,{className:"h-6 w-6 text-primary","aria-hidden":"true"})}),e.jsx("h3",{className:"mb-2 text-xl font-bold",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.description})]})},String(s.title)))}),e.jsx("div",{className:"mx-auto mt-12 max-w-2xl",children:e.jsxs(l,{y:20,className:"covil-panel flex gap-4 rounded-xl p-6",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-lg border border-primary/40 bg-primary/15",children:e.jsx(T,{className:"h-6 w-6 text-primary","aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"mb-1 text-lg font-bold",children:t("community.noSpam")}),e.jsx("p",{className:"text-muted-foreground",children:t("community.noSpamDesc")})]})]})})]})]}),e.jsxs("section",{className:"relative overflow-visible py-24",children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-primary/15 via-transparent to-transparent"}),e.jsx("div",{className:"container relative z-10 mx-auto px-4",children:e.jsxs(l,{y:20,className:"covil-panel mx-auto max-w-3xl rounded-2xl px-8 py-12 text-center",children:[e.jsxs("h2",{className:"mb-6 text-3xl font-black md:text-5xl",children:[t("community.theAwaits")," ",e.jsx("span",{className:"text-glow text-primary",children:t("community.titleHighlight")})," ",t("community.awaitsYou")]}),e.jsx("p",{className:"mb-8 text-lg text-muted-foreground",children:t("community.finalCta")}),e.jsx(f,{className:"inline-block",children:e.jsx(y,{asChild:!0,size:"lg",className:"bg-primary px-10 text-lg font-black text-black shadow-[0_0_24px_rgba(255,51,51,0.4)] hover:bg-primary/90",children:e.jsxs("a",{href:m.discord,target:"_blank",rel:C(m.discord),"aria-label":String(t("community.joinNow")),children:[t("community.joinNow"),e.jsx(j,{className:"ml-2 h-5 w-5","aria-hidden":"true"})]})})})]})})]})]}),e.jsx(D,{})]})]})};export{se 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.