/* P.E.S.T — SVG icons (brand socials + UI) */ const Icon = { x: (p) => ( ), telegram: (p) => ( ), discord: (p) => ( ), website: (p) => ( ), close: (p) => ( ), arrow: (p) => ( ), link: (p) => ( ), magiceden: (p) => ( ), // ---- honorary badge glyphs ---- genius: (p) => ( ), supervisor: (p) => ( ), curator: (p) => ( ), eventhost: (p) => ( ), moderator: (p) => ( ), launch: (p) => ( ), shop: (p) => ( ), menu: (p) => ( ), }; const SOCIAL_META = { x: { label: "X", icon: Icon.x }, telegram: { label: "Telegram", icon: Icon.telegram }, discord: { label: "Discord", icon: Icon.discord }, website: { label: "Website", icon: Icon.website }, magiceden: { label: "Magic Eden", icon: Icon.magiceden }, }; // Honorary badges — additional to role; shown as medals on the avatar edge. const HBADGE_ORDER = ["genius", "supervisor", "curator", "eventhost", "moderator"]; const HBADGE = { genius: { label: "Genius", tip: "The brain behind every calculation", icon: Icon.genius, cls: "hb-genius" }, supervisor: { label: "Supervisor", tip: "Keeps watch over the hive", icon: Icon.supervisor, cls: "hb-supervisor" }, curator: { label: "Content Curator", tip: "Content Curator", icon: Icon.curator, cls: "hb-curator" }, eventhost: { label: "Event Host", tip: "Event Host", icon: Icon.eventhost, cls: "hb-eventhost" }, moderator: { label: "Moderator", tip: "Moderator", icon: Icon.moderator, cls: "hb-moderator" }, }; function honoraryBadges(m) { return HBADGE_ORDER.filter((k) => (m.badges || []).includes(k)); } function badgePriority(m) { const b = honoraryBadges(m); return b.length ? HBADGE_ORDER.indexOf(b[0]) : 99; } window.Icon = Icon; window.SOCIAL_META = SOCIAL_META; window.HBADGE = HBADGE; window.HBADGE_ORDER = HBADGE_ORDER; window.honoraryBadges = honoraryBadges; window.badgePriority = badgePriority;