import{jsxs as a}from"react/jsx-runtime";import{c as n}from"./utils-CMbmcP35.js";import{B as o}from"./badge-CFi7bqqA.js";const l={0:{id:0,name:"No Cultivation",tier:"none"},1:{id:1,name:"Spiritual Adept",tier:"low"},2:{id:2,name:"Aware of Principle",tier:"low"},3:{id:3,name:"Aware of Harmony",tier:"low"},4:{id:4,name:"Aware of Discord",tier:"low"},5:{id:5,name:"Aware of Coalescence",tier:"mid"},6:{id:6,name:"Transcendent",tier:"mid"},7:{id:7,name:"Enlightened One",tier:"mid"},8:{id:8,name:"Aware of Vacuity",tier:"high"},20:{id:20,name:"Aware of the Myriad",tier:"master"},21:{id:21,name:"Master of Harmony",tier:"master"},22:{id:22,name:"Celestial Sage",tier:"celestial"},30:{id:30,name:"Aware of the Void",tier:"master"},31:{id:31,name:"Master of Discord",tier:"master"},32:{id:32,name:"Celestial Demon",tier:"celestial"}};function d(t){const e=t&255;return l[e]??{id:e,name:`Unknown (${e})`,tier:"none"}}const m={none:"bg-muted text-muted-foreground",low:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",mid:"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200",high:"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200",master:"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200",celestial:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 border-yellow-400"};function u({level2:t,showId:e=!1,className:i}){const r=d(t);return a(o,{variant:"outline",className:n(m[r.tier],i),children:[r.name,e&&a("span",{className:"ml-1 opacity-60",children:["(",t,")"]})]})}export{u as C};
