import{c as V,r as o,j as e,S as B,R as I,L as E,A as q,T as Z}from"./index-XAQEFxR0.js";import{C as X}from"./CyberBackground-D4ChG426.js";import{P as J}from"./PublicNav-BtOZ2-Xr.js";import{F as Y}from"./Footer-BWuDGipe.js";import{S as Q}from"./SEO-BWgzAOui.js";import{B as ee}from"./SchemaMarkup-s2pJpehO.js";import{M as te,i as M,u as K,P as ae,a as re,b as se,L as oe,m as _}from"./proxy-C_GZZbVv.js";import{C as ie}from"./crosshair-B6tIAVGJ.js";import{S as ne}from"./search-BAkj-wLk.js";import{C as z}from"./chevron-right-3LV85XzN.js";import{G as F}from"./globe-ggO-5B8t.js";import{T as H}from"./target-DtlTPIrP.js";import{X as le}from"./x-BjlbuifP.js";import{I as ce}from"./info-Cc_BztP1.js";import{Z as de}from"./zap-CJLpCXio.js";import{A as me}from"./activity-DJNZk-yp.js";import{U as pe}from"./users-BLwJpXZu.js";import{R as he}from"./radio-ekzcXkGT.js";import{C as G}from"./cpu-DcQERwFD.js";import"./Particles-BRxp5v1w.js";import"./arrow-right-BBWeihko.js";import"./lock-riYib5_N.js";import"./mail-C4YbZpAk.js";/**
 * @license lucide-react v0.561.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xe=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],ue=V("flask-conical",xe);/**
 * @license lucide-react v0.561.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ge=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],R=V("landmark",ge);function D(a,d){if(typeof a=="function")return a(d);a!=null&&(a.current=d)}function fe(...a){return d=>{let i=!1;const c=a.map(m=>{const p=D(m,d);return!i&&typeof p=="function"&&(i=!0),p});if(i)return()=>{for(let m=0;m<c.length;m++){const p=c[m];typeof p=="function"?p():D(a[m],null)}}}}function be(...a){return o.useCallback(fe(...a),a)}class ye extends o.Component{getSnapshotBeforeUpdate(d){const i=this.props.childRef.current;if(i&&d.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const c=i.offsetParent,m=M(c)&&c.offsetWidth||0,p=M(c)&&c.offsetHeight||0,n=this.props.sizeRef.current;n.height=i.offsetHeight||0,n.width=i.offsetWidth||0,n.top=i.offsetTop,n.left=i.offsetLeft,n.right=m-n.width-n.left,n.bottom=p-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function we({children:a,isPresent:d,anchorX:i,anchorY:c,root:m,pop:p}){var x;const n=o.useId(),w=o.useRef(null),l=o.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:y}=o.useContext(te),f=((x=a.props)==null?void 0:x.ref)??(a==null?void 0:a.ref),v=be(w,f);return o.useInsertionEffect(()=>{const{width:b,height:t,top:s,left:r,right:h,bottom:g}=l.current;if(d||p===!1||!w.current||!b||!t)return;const N=i==="left"?`left: ${r}`:`right: ${h}`,k=c==="bottom"?`bottom: ${g}`:`top: ${s}`;w.current.dataset.motionPopId=n;const T=document.createElement("style");y&&(T.nonce=y);const C=m??document.head;return C.appendChild(T),T.sheet&&T.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${b}px !important;
            height: ${t}px !important;
            ${N}px !important;
            ${k}px !important;
          }
        `),()=>{C.contains(T)&&C.removeChild(T)}},[d]),e.jsx(ye,{isPresent:d,childRef:w,sizeRef:l,pop:p,children:p===!1?a:o.cloneElement(a,{ref:v})})}const ve=({children:a,initial:d,isPresent:i,onExitComplete:c,custom:m,presenceAffectsLayout:p,mode:n,anchorX:w,anchorY:l,root:y})=>{const f=K(je),v=o.useId();let x=!0,b=o.useMemo(()=>(x=!1,{id:v,initial:d,isPresent:i,custom:m,onExitComplete:t=>{f.set(t,!0);for(const s of f.values())if(!s)return;c&&c()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[i,f,c]);return p&&x&&(b={...b}),o.useMemo(()=>{f.forEach((t,s)=>f.set(s,!1))},[i]),o.useEffect(()=>{!i&&!f.size&&c&&c()},[i]),a=e.jsx(we,{pop:n==="popLayout",isPresent:i,anchorX:w,anchorY:l,root:y,children:a}),e.jsx(ae.Provider,{value:b,children:a})};function je(){return new Map}const A=a=>a.key||"";function U(a){const d=[];return o.Children.forEach(a,i=>{o.isValidElement(i)&&d.push(i)}),d}const O=({children:a,custom:d,initial:i=!0,onExitComplete:c,presenceAffectsLayout:m=!0,mode:p="sync",propagate:n=!1,anchorX:w="left",anchorY:l="top",root:y})=>{const[f,v]=re(n),x=o.useMemo(()=>U(a),[a]),b=n&&!f?[]:x.map(A),t=o.useRef(!0),s=o.useRef(x),r=K(()=>new Map),h=o.useRef(new Set),[g,N]=o.useState(x),[k,T]=o.useState(x);se(()=>{t.current=!1,s.current=x;for(let j=0;j<k.length;j++){const u=A(k[j]);b.includes(u)?(r.delete(u),h.current.delete(u)):r.get(u)!==!0&&r.set(u,!1)}},[k,b.length,b.join("-")]);const C=[];if(x!==g){let j=[...x];for(let u=0;u<k.length;u++){const S=k[u],L=A(S);b.includes(L)||(j.splice(u,0,S),C.push(S))}return p==="wait"&&C.length&&(j=C),T(U(j)),N(x),null}const{forceRender:P}=o.useContext(oe);return e.jsx(e.Fragment,{children:k.map(j=>{const u=A(j),S=n&&!f?!1:x===k||b.includes(u),L=()=>{if(h.current.has(u))return;if(h.current.add(u),r.has(u))r.set(u,!0);else return;let $=!0;r.forEach(W=>{W||($=!1)}),$&&(P==null||P(),T(s.current),n&&(v==null||v()),c&&c())};return e.jsx(ve,{isPresent:S,initial:!t.current||i?void 0:!1,custom:d,presenceAffectsLayout:m,mode:p,root:y,onExitComplete:S?void 0:L,anchorX:w,anchorY:l,children:j},u)})})},Ke=()=>{const[a,d]=o.useState([]),[i,c]=o.useState(!0),[m,p]=o.useState(""),[n,w]=o.useState("all"),[l,y]=o.useState(null),f={"Volt Typhoon":{aliases:["Vanguard Panda","BRONZE SILHOUETTE"],origin:"China",type:"Nation-State",sectors:["Critical Infrastructure","Communications","Utility"],icon:e.jsx(G,{className:"w-5 h-5"}),color:"from-orange-500/10 to-yellow-900/20",accent:"amber",flag:"🇨🇳",description:"A sophisticated Chinese state-sponsored actor known for targeting critical infrastructure and prioritizing stealth through living-off-the-land techniques.",ttps:["Living off the land (LotL)","Botnet proxies (KV-botnet)","Credential harvesting","Router/firewall exploitation"]},"Labyrinth Chollima":{aliases:["APT38","Lazarus Group subset"],origin:"North Korea",type:"Financial Theft",sectors:["Financial","Cryptocurrency"],icon:e.jsx(R,{className:"w-5 h-5"}),color:"from-pink-500/10 to-purple-900/20",accent:"rose",flag:"🇰🇵",description:"A dedicated subgroup of Lazarus focused on cyber heists and cryptocurrency theft.",ttps:["SWIFT system targeting","Watering hole attacks","Custom macOS malware"]},APT28:{aliases:["Fancy Bear","Sofacy"],origin:"Russia",type:"Nation-State",sectors:["Government","Military","Energy"],icon:e.jsx(B,{className:"w-5 h-5"}),color:"from-blue-500/10 to-indigo-900/20",accent:"blue",flag:"🇷🇺",description:"Linked to the Russian GRU (Military Intelligence), APT28 has been active since at least 2007. They primarily focus on high-stakes espionage against government, military, and diplomatic organizations worldwide.",ttps:["Spearphishing campaigns","Zero-day vulnerability exploitation","Custom malware (X-Agent, LAMEHUG)","Living-off-the-land (LotL) techniques"]},APT29:{aliases:["Cozy Bear","Nobelium"],origin:"Russia",type:"Nation-State",sectors:["Government","Think Tanks","IT"],icon:e.jsx(B,{className:"w-5 h-5"}),color:"from-red-500/10 to-orange-900/20",accent:"rose",flag:"🇷🇺",description:"Associated with the Russian SVR (Foreign Intelligence Service), APT29 is known for its extreme stealth and persistence. They gained global notoriety for the SolarWinds supply chain compromise.",ttps:["Supply chain compromises","Advanced spearphishing","Cloud-based identity system exploitation","Legitimate service abuse (Google Drive, Microsoft Graph)"]},APT41:{aliases:["Barium","Winnti"],origin:"China",type:"State-Sponsored",sectors:["Healthcare","Tech","Video Games"],icon:e.jsx(G,{className:"w-5 h-5"}),color:"from-orange-500/10 to-yellow-900/20",accent:"amber",flag:"🇨🇳",description:"A unique threat actor that balances state-sponsored espionage with financially motivated cybercrime. They are highly efficient, often weaponizing new vulnerabilities within hours of their public disclosure.",ttps:["Rapid vulnerability weaponization","Software supply chain attacks","In-memory malware execution","Digitally signed malicious drivers"]},APT10:{aliases:["Stone Panda"],origin:"China",type:"Nation-State",sectors:["IT Service Providers","Aerospace"],icon:e.jsx(G,{className:"w-5 h-5"}),color:"from-cyan-500/10 to-blue-900/20",accent:"cyan",flag:"🇨🇳",description:"Historical Chinese cyber espionage group famously associated with Operation Cloud Hopper, targeting Managed Service Providers (MSPs) to gain access to their clients' networks.",ttps:["MSP-centric compromises","Spearphishing with remote access trojans (RATs)","Stealing credentials from administrator consoles"]},APT38:{aliases:["Lazarus","BlueNoroff"],origin:"North Korea",type:"Financial Theft",sectors:["Banking","Crypto","Government"],icon:e.jsx(R,{className:"w-5 h-5"}),color:"from-purple-500/10 to-pink-900/20",accent:"violet",flag:"🇰🇵",description:"A North Korean operative group specializing in large-scale financial heists to fund the regime. They are responsible for some of the world's largest cryptocurrency and SWIFT network thefts.",ttps:["SWIFT system manipulation","Cryptocurrency exchange breaches","Social engineering via job offers","Custom-built cross-platform RATs"]},Lazarus:{aliases:["Hidden Cobra","APT38"],origin:"North Korea",type:"Financial Theft",sectors:["Banking","Crypto","Defense"],icon:e.jsx(R,{className:"w-5 h-5"}),color:"from-pink-500/10 to-purple-900/20",accent:"rose",flag:"🇰🇵",description:"The primary cyber warfare umbrella for North Korea. Lazarus conducts a mix of espionage, destructive attacks (like Sony Pictures), and massive financial theft.",ttps:["Destructive wiper malware","Fake LinkedIn/Tinder social engineering","Zero-day and N-day exploitation","Supply chain attacks on local software"]},APT33:{aliases:["Elfin"],origin:"Iran",type:"Nation-State",sectors:["Aviation","Energy","Chemical"],icon:e.jsx(ue,{className:"w-5 h-5"}),color:"from-green-500/10 to-emerald-900/20",accent:"emerald",flag:"🇮🇷",description:"An Iranian threat group targeting aerospace and petrochemical industries. They support Iranian industrial interests and have been linked to destructive wiper operations.",ttps:["Password spraying","Job-themed spearphishing","Destructive Shamoon-style wipers","PowerShell-based backdoors"]},APT34:{aliases:["OilRig"],origin:"Iran",type:"Nation-State",sectors:["Telecommunications","Government"],icon:e.jsx(he,{className:"w-5 h-5"}),color:"from-yellow-600/10 to-orange-900/20",accent:"amber",flag:"🇮🇷",description:"Iranian state-sponsored espionage group focused on long-term intelligence collection across the Middle East and critical sectors globally.",ttps:["DNS tunneling for data exfiltration","Credential harvesting","Web shells for persistence","Malicious macro-enabled documents"]},Sandworm:{aliases:["Voodoo Bear"],origin:"Russia",type:"Military Intelligence",sectors:["Energy Grid","Government"],icon:e.jsx(Z,{className:"w-5 h-5"}),color:"from-red-600/10 to-black/40",accent:"rose",flag:"🇷🇺",description:"A highly aggressive GRU unit known for cyber sabotage and attacking critical infrastructure, including the Ukrainian electrical grid and the global NotPetya campaign.",ttps:["Destructive malware (Industroyer, NotPetya)","SCADA/ICS-specific protocols","Edge device/VPN exploitation","Active Directory destruction"]},LockBit:{aliases:["LockBit 3.0"],origin:"Global",type:"Ransomware",sectors:["Corporate","Infrastructure"],icon:e.jsx(B,{className:"w-5 h-5 opacity-50"}),color:"from-gray-600/10 to-indigo-900/20",accent:"violet",flag:"🏴‍☠️",description:"One of the world's most successful Ransomware-as-a-Service (RaaS) operations. They operate as a criminal business enterprise, recruiting high-skill affiliates.",ttps:["Double extortion (Encryption + Exfiltration)","High-speed automated encryption","Credential stuffing","Public leak site operations"]}},v=t=>{switch(t){case"blue":return{cardGradient:"from-blue-500/10 to-indigo-900/20",cardBorder:"hover:border-blue-500/50",shadow:"hover:shadow-[0_20px_40px_-10px_rgba(59,130,246,0.2)]",badgeBg:"bg-blue-900/80",badgeText:"text-blue-300",badgeBorder:"border-blue-500/30",accentText:"text-blue-400",accentBg:"bg-blue-500/20",accentBorder:"border-blue-500/20",glow:"shadow-[0_0_8px_rgba(59,130,246,0.5)]",modalGradient:"from-blue-500/30 to-indigo-900/40"};case"rose":return{cardGradient:"from-rose-500/10 to-red-900/20",cardBorder:"hover:border-rose-500/50",shadow:"hover:shadow-[0_20px_40px_-10px_rgba(244,63,94,0.2)]",badgeBg:"bg-rose-900/80",badgeText:"text-rose-300",badgeBorder:"border-rose-500/30",accentText:"text-rose-400",accentBg:"bg-rose-500/20",accentBorder:"border-rose-500/20",glow:"shadow-[0_0_8px_rgba(244,63,94,0.5)]",modalGradient:"from-rose-500/30 to-red-900/40"};case"emerald":return{cardGradient:"from-emerald-500/10 to-green-900/20",cardBorder:"hover:border-emerald-500/50",shadow:"hover:shadow-[0_20px_40px_-10px_rgba(16,185,129,0.2)]",badgeBg:"bg-emerald-900/80",badgeText:"text-emerald-300",badgeBorder:"border-emerald-500/30",accentText:"text-emerald-400",accentBg:"bg-emerald-500/20",accentBorder:"border-emerald-500/20",glow:"shadow-[0_0_8px_rgba(16,185,129,0.5)]",modalGradient:"from-emerald-500/30 to-green-900/40"};case"amber":return{cardGradient:"from-amber-500/10 to-orange-900/20",cardBorder:"hover:border-amber-500/50",shadow:"hover:shadow-[0_20px_40px_-10px_rgba(245,158,11,0.2)]",badgeBg:"bg-amber-900/80",badgeText:"text-amber-300",badgeBorder:"border-amber-500/30",accentText:"text-amber-400",accentBg:"bg-amber-500/20",accentBorder:"border-amber-500/20",glow:"shadow-[0_0_8px_rgba(245,158,11,0.5)]",modalGradient:"from-amber-500/30 to-orange-900/40"};case"violet":return{cardGradient:"from-violet-500/10 to-purple-900/20",cardBorder:"hover:border-violet-500/50",shadow:"hover:shadow-[0_20px_40px_-10px_rgba(139,92,246,0.2)]",badgeBg:"bg-violet-900/80",badgeText:"text-violet-300",badgeBorder:"border-violet-500/30",accentText:"text-violet-400",accentBg:"bg-violet-500/20",accentBorder:"border-violet-500/20",glow:"shadow-[0_0_8px_rgba(139,92,246,0.5)]",modalGradient:"from-violet-500/30 to-purple-900/40"};case"cyan":return{cardGradient:"from-cyan-500/10 to-blue-900/20",cardBorder:"hover:border-cyan-500/50",shadow:"hover:shadow-[0_20px_40px_-10px_rgba(6,182,212,0.2)]",badgeBg:"bg-cyan-900/80",badgeText:"text-cyan-300",badgeBorder:"border-cyan-500/30",accentText:"text-cyan-400",accentBg:"bg-cyan-500/20",accentBorder:"border-cyan-500/20",glow:"shadow-[0_0_8px_rgba(6,182,212,0.5)]",modalGradient:"from-cyan-500/30 to-blue-900/40"};default:return{cardGradient:"from-gray-800/10 to-gray-900/20",cardBorder:"hover:border-gray-500/50",shadow:"hover:shadow-[0_20px_40px_-10px_rgba(156,163,175,0.2)]",badgeBg:"bg-gray-800/80",badgeText:"text-gray-300",badgeBorder:"border-gray-500/30",accentText:"text-gray-400",accentBg:"bg-gray-500/20",accentBorder:"border-gray-500/20",glow:"shadow-[0_0_8px_rgba(156,163,175,0.5)]",modalGradient:"from-gray-800/30 to-gray-900/40"}}},x=[{id:"all",name:"Global View",icon:e.jsx(F,{className:"w-4 h-4"})},{id:"russia",name:"Russia",icon:"🇷🇺"},{id:"china",name:"China",icon:"🇨🇳"},{id:"north korea",name:"North Korea",icon:"🇰🇵"},{id:"iran",name:"Iran",icon:"🇮🇷"},{id:"other",name:"Others",icon:"🏴‍☠️"}];o.useEffect(()=>{const t=s=>{s.key==="Escape"&&y(null)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[]),o.useEffect(()=>{(async()=>{try{const s=await fetch(`${q}/api/operations/public`);if(s.ok){const r=await s.json(),h=new Map;(r.operations||[]).forEach(g=>{if(g.apt_group){const N=g.apt_group.split("(")[0].trim();h.has(N)||h.set(N,{name:N,fullName:g.apt_group,missions:[],metadata:f[N]||{aliases:[],origin:"Unknown",type:"Unknown",sectors:[],icon:e.jsx(B,{className:"w-5 h-5"}),color:"from-gray-800/10 to-gray-900/20",accent:"gray",flag:"🏴‍☠️",description:"Operational data reflects a persistent threat actor with evolving TTPs. Investigation is ongoing.",ttps:["Classified indicators of compromise"]}}),h.get(N).missions.push({id:g.id,title:g.title,slug:g.slug,difficulty:g.difficulty_level,is_premium:g.is_premium})}}),d(Array.from(h.values()))}}catch(s){console.error("Failed to fetch APT groups:",s)}finally{c(!1)}})()},[]);const b=a.filter(t=>{const s=t.name.toLowerCase().includes(m.toLowerCase())||t.fullName.toLowerCase().includes(m.toLowerCase())||(t.metadata.aliases||[]).some(h=>h.toLowerCase().includes(m.toLowerCase())),r=n==="all"||(t.metadata.origin||"").toLowerCase().includes(n.toLowerCase())||n==="other"&&!["russia","china","north korea","iran"].includes((t.metadata.origin||"").toLowerCase());return s&&r});return e.jsxs("div",{className:"min-h-screen bg-[#0e0f11] text-white relative",children:[e.jsx(X,{}),e.jsx("div",{className:"absolute top-1/4 left-0 w-[500px] h-[500px] bg-red-500/5 rounded-full blur-[120px] pointer-events-none"}),e.jsx("div",{className:"absolute bottom-1/4 right-0 w-[600px] h-[600px] bg-blue-500/5 rounded-full blur-[150px] pointer-events-none"}),e.jsx(Q,{title:"APT Groups - Threat Actor Library | InfoSecLabs",description:"Explore nation-state Advanced Persistent Threat (APT) groups. Professional cyber threat intelligence for SOC analysts and defenders."}),e.jsx(ee,{items:[{name:"Home",url:"https://infoseclabs.io/"},{name:"APT Library",url:"https://infoseclabs.io/apt-groups"}]}),e.jsx(J,{}),e.jsx("div",{className:"pt-24 pb-16",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs(_.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.8,ease:"easeOut"},className:"text-center mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-red-500/10 border border-red-500/20 rounded-full mb-6",children:[e.jsx(ie,{className:"w-4 h-4 text-red-400"}),e.jsx("span",{className:"text-xs font-bold text-red-400 uppercase tracking-widest",children:"Threat Intelligence"})]}),e.jsxs("h1",{className:"text-5xl md:text-6xl font-black text-white mb-6 tracking-tight",children:["APT ",e.jsx("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-red-500 to-orange-500",children:"Groups"})]}),e.jsx("p",{className:"text-gray-400 text-lg max-w-3xl mx-auto leading-relaxed",children:"Analyze national threat patterns and track the world's most sophisticated Advanced Persistent Threat groups. Develop your defensive strategies against actual nation-state actor TTPs."}),e.jsxs("div",{className:"max-w-2xl mx-auto mt-10 relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-red-500/10 to-orange-500/10 rounded-2xl blur opacity-25 group-hover:opacity-40 transition duration-500"}),e.jsxs("div",{className:"relative bg-[#0f1115] border border-gray-800 rounded-2xl overflow-hidden shadow-2xl flex items-center p-2 focus-within:border-red-500/30 transition-all duration-300",children:[e.jsx(ne,{className:"w-5 h-5 ml-4 text-gray-500"}),e.jsx("input",{type:"text",placeholder:"Search by actor name, country, or alias...",value:m,onChange:t=>p(t.target.value),className:"w-full bg-transparent px-4 py-4 text-white placeholder-gray-600 focus:outline-none"})]})]})]}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2 mb-16",children:x.map(t=>e.jsxs("button",{onClick:()=>w(t.id),className:`relative px-6 py-2.5 rounded-xl text-sm font-bold transition-all duration-300 flex items-center gap-2 border ${n===t.id?"bg-red-500/10 border-red-500/40 text-white":"bg-white/5 border-white/5 text-gray-500 hover:text-gray-300 hover:border-white/10"}`,children:[e.jsx("span",{children:t.icon}),e.jsx("span",{children:t.name})]},t.id))}),e.jsx(O,{mode:"popLayout",children:i?e.jsx("div",{className:"flex justify-center items-center h-64",children:e.jsx("div",{className:"w-8 h-8 border-2 border-red-500 border-t-transparent rounded-full animate-spin"})}):b.length===0?e.jsxs("div",{className:"text-center py-16 bg-[#1a1b1e] rounded-2xl border border-gray-800",children:[e.jsx(B,{className:"w-16 h-16 text-gray-700 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-white",children:"No Groups Found"}),e.jsx("p",{className:"text-gray-500 mt-2",children:"Adjust your search parameters."})]}):e.jsx(_.div,{layout:!0,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:b.map((t,s)=>{const r=v(t.metadata.accent);return e.jsx(_.div,{layout:!0,initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,delay:s%3*.1},whileHover:{y:-5},onClick:()=>y(t),children:e.jsxs("div",{className:`group bg-[#0f1115] rounded-2xl border border-gray-800/60 overflow-hidden ${r.cardBorder} ${r.shadow} transition-all duration-300 flex flex-col h-full cursor-pointer relative`,children:[e.jsxs("div",{className:`h-32 relative bg-gradient-to-br ${r.cardGradient}`,children:[e.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0)",backgroundSize:"16px 16px"}}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:`p-4 rounded-2xl bg-white/5 backdrop-blur-md border border-white/10 group-hover:scale-110 group-hover:bg-white/10 transition-all duration-500 ${r.accentText}`,children:t.metadata.icon&&I.cloneElement(t.metadata.icon,{className:"w-6 h-6"})})}),e.jsxs("div",{className:"absolute top-4 right-4 flex items-center gap-2",children:[t.missions.some(h=>h.is_premium)&&e.jsx("span",{className:"bg-amber-500 text-black text-[9px] font-black tracking-wider uppercase px-2 py-0.5 rounded shadow-lg",children:"Premium"}),e.jsx("span",{className:"text-2xl filter drop-shadow-lg",children:t.metadata.flag})]}),e.jsx("div",{className:"absolute bottom-4 left-4",children:e.jsxs("span",{className:`${r.badgeBg} ${r.badgeText} text-[10px] font-bold uppercase tracking-widest px-3 py-1.5 rounded-full border ${r.badgeBorder} backdrop-blur-sm`,children:[t.missions.length," Missions"]})})]}),e.jsxs("div",{className:"p-6 flex flex-col flex-grow",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("h3",{className:`text-xl font-bold text-white group-hover:${r.accentText} transition-colors`,children:t.name}),e.jsx(z,{className:`w-4 h-4 text-gray-700 group-hover:${r.accentText} transition-all duration-300 transform group-hover:translate-x-1`})]}),e.jsxs("p",{className:"text-gray-500 text-xs mb-4 flex items-center gap-1.5 font-medium",children:[e.jsx(F,{className:"w-3 h-3 text-gray-600"}),t.metadata.origin," | ",t.metadata.type]}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-6",children:(t.metadata.sectors||[]).map((h,g)=>e.jsx("span",{className:"text-[10px] px-2 py-0.5 bg-white/5 border border-white/5 rounded text-gray-400 capitalize group-hover:border-white/10 transition-colors",children:h},g))}),e.jsxs("div",{className:"space-y-2 mt-auto",children:[e.jsx("div",{className:"text-[10px] text-gray-600 uppercase tracking-widest mb-1 font-bold",children:"Lab Simulations"}),t.missions.slice(0,2).map((h,g)=>e.jsxs("div",{className:"flex items-center gap-3 py-2 border-b border-white/5 text-gray-400",children:[e.jsx(H,{className:`w-3 h-3 ${r.accentText} opacity-60`}),e.jsx("span",{className:"text-[11px] font-medium line-clamp-1",children:h.title})]},g))]})]})]})},t.name)})})})]})}),e.jsx(O,{children:l&&(()=>{const t=v(l.metadata.accent);return e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 md:p-8",children:[e.jsx(_.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>y(null),className:"absolute inset-0 bg-black/80 backdrop-blur-md"}),e.jsxs(_.div,{initial:{opacity:0,scale:.9,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:20},className:`relative w-full max-w-4xl max-h-[90vh] bg-[#0f1115] border ${t.cardBorder} rounded-3xl overflow-hidden shadow-2xl flex flex-col md:flex-row`,children:[e.jsxs("div",{className:`md:w-1/3 p-8 bg-gradient-to-br ${t.cardGradient} flex flex-col items-center justify-center text-center border-r border-white/5`,children:[e.jsx("div",{className:"p-6 rounded-3xl bg-white/5 backdrop-blur-xl border border-white/10 mb-6 shadow-2xl",children:l.metadata.icon&&I.cloneElement(l.metadata.icon,{className:`w-12 h-12 ${t.accentText}`})}),e.jsx("h2",{className:"text-3xl font-black text-white mb-2",children:l.name}),e.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 bg-black/20 rounded-full border border-white/10 text-xs font-bold text-white/80 tracking-widest uppercase mb-4",children:[l.metadata.flag," ",l.metadata.origin]}),e.jsx("div",{className:"text-xs text-white/50 font-medium uppercase tracking-wider mb-8",children:l.metadata.type}),e.jsxs("div",{className:"mt-auto pt-8 border-t border-white/5 w-full",children:[e.jsx("div",{className:"text-[10px] text-white/40 uppercase tracking-widest mb-4",children:"Target Sectors"}),e.jsx("div",{className:"flex flex-wrap gap-2 justify-center",children:l.metadata.sectors.map((s,r)=>e.jsx("span",{className:"px-2.5 py-1 bg-white/5 border border-white/10 rounded-lg text-[10px] text-white/70",children:s},r))})]})]}),e.jsxs("div",{className:"flex-1 p-8 md:p-12 overflow-y-auto custom-scrollbar bg-[#0f1115]",children:[e.jsx("button",{onClick:()=>y(null),className:`absolute top-6 right-6 p-2 rounded-full bg-white/5 hover:bg-white/10 text-white/60 hover:${t.accentText} transition-all z-10`,children:e.jsx(le,{className:"w-5 h-5"})}),e.jsxs("div",{className:"space-y-10",children:[e.jsxs("section",{children:[e.jsxs("div",{className:`flex items-center gap-3 mb-4 ${t.accentText}`,children:[e.jsx(ce,{className:"w-5 h-5"}),e.jsx("h3",{className:"text-sm font-black uppercase tracking-widest",children:"Actor Intelligence"})]}),e.jsx("p",{className:"text-gray-400 leading-relaxed text-lg",children:l.metadata.description}),l.metadata.aliases.length>0&&e.jsxs("div",{className:"mt-4 flex items-center gap-3",children:[e.jsx("span",{className:"text-[10px] text-gray-600 font-black uppercase tracking-widest",children:"Aliases:"}),e.jsx("div",{className:`flex flex-wrap gap-2 text-sm ${t.accentText} opacity-80 font-bold italic`,children:l.metadata.aliases.map((s,r)=>e.jsxs("span",{children:['"',s,'"',r<l.metadata.aliases.length-1?",":""]},r))})]})]}),e.jsxs("section",{children:[e.jsxs("div",{className:`flex items-center gap-3 mb-6 ${t.accentText}`,children:[e.jsx(de,{className:"w-5 h-5"}),e.jsx("h3",{className:"text-sm font-black uppercase tracking-widest",children:"Tactics, Techniques & Procedures"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:l.metadata.ttps.map((s,r)=>e.jsxs("div",{className:"flex items-start gap-3 p-4 bg-white/5 border border-white/5 rounded-2xl group/ttp hover:border-white/10 transition-all",children:[e.jsx("div",{className:`mt-1 w-1.5 h-1.5 rounded-full ${t.accentBg} ${t.shadow} group-hover/ttp:scale-125 transition-transform`}),e.jsx("span",{className:"text-sm text-gray-300 font-medium",children:s})]},r))})]}),e.jsxs("section",{children:[e.jsxs("div",{className:`flex items-center gap-3 mb-6 ${t.accentText}`,children:[e.jsx(me,{className:"w-5 h-5"}),e.jsx("h3",{className:"text-sm font-black uppercase tracking-widest",children:"Operational Simulations"})]}),e.jsx("div",{className:"space-y-3",children:l.missions.map((s,r)=>e.jsxs(E,{to:`/missions/${s.slug||s.id}`,className:"flex items-center justify-between p-4 bg-white/5 border border-white/10 rounded-2xl hover:border-white/20 transition-all group/mission relative overflow-hidden",children:[e.jsx("div",{className:`absolute inset-y-0 left-0 w-1 ${t.accentBg} opacity-20`}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:`w-8 h-8 rounded-full ${t.badgeBg} flex items-center justify-center ${t.badgeText} group-hover:scale-110 transition-all`,children:e.jsx(H,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-sm font-bold text-white mb-0.5",children:s.title}),e.jsxs("span",{className:`text-[10px] ${t.accentText} opacity-60 uppercase tracking-widest font-black`,children:[s.difficulty," Level"]})]})]}),e.jsx(z,{className:`w-5 h-5 text-gray-700 group-hover:${t.accentText} transition-all`})]},r))})]})]})]})]})]})})()}),e.jsx(_.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.8},className:"pt-8 pb-20 text-center",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"bg-gradient-to-r from-red-900/20 to-orange-900/20 border border-red-500/20 rounded-2xl p-12 max-w-3xl mx-auto backdrop-blur-sm relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 bg-red-500/10 rounded-full blur-[80px] pointer-events-none"}),e.jsx("h2",{className:"text-3xl font-bold text-white mb-4 relative z-10",children:"Join the Vanguard"}),e.jsx("p",{className:"text-gray-400 mb-8 relative z-10",children:"Create a free account to investigate these threat actors and track your progress across all operations."}),e.jsxs(E,{to:"/register",className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-red-600 to-orange-600 hover:from-red-500 hover:to-orange-500 text-white font-bold rounded-xl shadow-[0_0_20px_rgba(220,38,38,0.3)] transition-all transform hover:scale-105 relative z-10",children:[e.jsx(pe,{className:"w-5 h-5"}),"Register Now"]})]})})}),e.jsx(Y,{})]})};export{Ke as default};
