PageSourceSearch

https://whotakescoin.com/assets/GlossaryTerm-tT4h1X96.js

js whotakescoin.com collected 2026-09-26 12:15:19 UTC 13,416 bytes, 1 lines download raw bytes

1import{c as N,r as m,j as e,L as l}from"./index-MMs8uNES.js";import{u as k}from"./useQuery-unwT2NKV.js";import{L as u}from"./Layout-B-HLhgsi.js";import{S as y}from"./SEO-C3VXpLBL.js";import{GLOSSARY_TERMS as x,generateSlug as f,CATEGORIES as j}from"./Glossary-_P7Tz5bZ.js";import"./useTranslation-D6MbF_l4.js";import"./index-DmWAuN3B.js";import"./globe-BybOCho1.js";import"./check-9wyDBs9m.js";const C="/api",L=["bitcoin","ethereum","altcoin","stablecoin"],b={basics:"📚",blockchain:"🔗",trading:"📊",defi:"🏦",mining:"⛏️",security:"🔒",nft:"🎨",tokenomics:"💎"},v={bitcoin:["A coffee shop accepting Bitcoin as payment for a $5 latte","An investor buying 0.1 BTC as a long-term store of value","A company holding Bitcoin on their balance sheet as treasury reserve"],ethereum:["Deploying a smart contract for a decentralized voting application","Minting an NFT collection on the Ethereum network","Using ETH to pay gas fees for a DeFi swap transaction"],blockchain:["A supply chain tracking system recording product origins on an immutable ledger","A voting system where each vote is a verifiable transaction on the blockchain","Medical records stored securely across a distributed network of hospitals"],"smart contract":["An escrow contract that automatically releases funds when conditions are met","A subscription service that charges users monthly without intermediaries","An insurance payout that executes automatically when flight delay is verified"],nft:["A digital artist selling unique artwork with verifiable ownership","A music album released as collectible tokens with royalty splits","Virtual real estate in a metaverse world"],defi:["Earning interest by lending USDC through a lending protocol","Swapping tokens on a decentralized exchange without an account","Providing liquidity to earn trading fees from a DEX pool"],staking:["Locking 32 ETH to become a validator on Ethereum","Delegating tokens to a staking pool to earn rewards","Staking governance tokens to participate in protocol voting"],wallet:["Using MetaMask browser extension to interact with dApps","Storing Bitcoin on a hardware wallet like Ledger or Trezor","Creating a mobile wallet to receive crypto payments"]};function T(r){var a;const t=r.toLowerCase();if(v[t])return v[t];switch((a=x.find(c=>c.term.toLowerCase()===t))==null?void 0:a.category){case"trading":return["Monitoring market trends to make informed investment decisions","Setting stop-loss orders to manage risk exposure","Analyzing candlestick patterns for entry and exit points"];case"security":return["Using hardware wallets to store large amounts of cryptocurrency","Enabling two-factor authentication on exchange accounts","Verifying smart contract code before interacting with it"];case"defi":return["Providing liquidity to decentralized exchanges","Borrowing against crypto collateral without credit checks","Earning yield through automated market making"];case"mining":return["Setting up ASIC miners in a facility with cheap electricity","Joining a mining pool to receive consistent rewards","Adjusting mining operations based on network difficulty"];case"blockchain":return["Running a full node to validate transactions independently","Submitting transactions to the network mempool","Verifying block confirmations for transaction finality"];default:return["Understanding basic cryptocurrency concepts for informed participation","Learning terminology to navigate the crypto ecosystem","Applying knowledge to make better investment decisions"]}}function E(r){return r>=1e3?"$"+r.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):r>=1?"$"+r.toFixed(2):r>=.01?"$"+r.toFixed(4):"$"+r.toFixed(8)}function U(){var p;const{slug:r}=N(),t=m.useMemo(()=>x.find(s=>f(s.term)===r),[r]),g=m.useMemo(()=>{if(!t)return!1;const s=t.term.toLowerCase();return L.some(i=>s.includes(i))},[t]),{data:a}=k({queryKey:["crypto-prices-glossary"],queryFn:async()=>{const s=await fetch(`${C}/crypto/prices`);if(!s.ok)throw new Error("Failed to fetch crypto prices");return s.json()},enabled:g,staleTime:6e4}),c=m.useMemo(()=>t?x.filter(s=>s.category===t.category&&s.term!==t.term).slice(0,6):[],[t]);if(!t)return e.jsxs(u,{children:[e.jsx(y,{title:"Term Not Found",noIndex:!0}),e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx("div",{className:"text-6xl mb-6",children:"🔍"}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Term Not Found"}),e.jsx("p",{className:"text-gray-600 mb-8",children:"The glossary term you're looking for doesn't exist."}),e.jsxs(l,{to:"/glossary",className:"inline-flex items-center gap-2 bg-sky-600 hover:bg-sky-700 text-white px-6 py-3 rounded-lg font-semibold transition",children:[e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),"Back to Glossary"]})]})]});const o=j[t.category]||j.basics,w=T(t.term),h=(a==null?void 0:a.data)||[],n=(s=>{const i=s.toLowerCase();return i==="bitcoin"?h.find(d=>d.id==="bitcoin")||null:i==="ethereum"&&h.find(d=>d.id==="ethereum")||null})(t.term);return e.jsxs(u,{children:[e.jsx(y,{title:`${t.term} - Crypto Glossary`,description:t.definition,url:`/glossary/${r}`,keywords:["crypto","blockchain",t.term.toLowerCase(),t.category,"definition","cryptocurrency"]}),e.jsx("div",{className:"bg-gradient-to-br from-purple-600 to-indigo-700 text-white py-12",children:e.jsxs("div",{className:"container mx-auto px-4 sm:px-6",children:[e.jsxs(l,{to:"/glossary",className:"inline-flex items-center gap-2 text-purple-200 hover:text-white transition mb-6",children:[e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})}),"Back to Glossary"]}),e.jsx("div",{className:"flex flex-wrap items-start justify-between gap-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-sm font-medium bg-white/20 text-white mb-4",children:[o.icon," ",o.name]}),e.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold mb-4",children:t.term}),e.jsx("p",{className:"text-purple-100 text-lg leading-relaxed",children:t.definition})]})})]})}),e.jsx("div",{className:"container mx-auto px-4 sm:px-6 py-8",children:e.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("span",{className:"text-3xl",children:b[t.category]||"📖"}),e.jsxs("h2",{className:"text-xl font-bold text-gray-900",children:["Understanding ",t.term]})]}),e.jsxs("div",{className:"prose prose-gray max-w-none",children:[e.jsx("p",{className:"text-gray-600 leading-relaxed text-lg",children:t.definition}),e.jsxs("div",{className:"mt-6 p-4 bg-purple-50 rounded-lg border border-purple-100",children:[e.jsxs("h3",{className:"text-sm font-semibold text-purple-800 mb-2 flex items-center gap-2",children:[e.jsx("span",{children:"💡"})," Key Takeaway"]}),e.jsxs("p",{className:"text-purple-700 text-sm",children:['Understanding "',t.term,'" is essential for navigating the cryptocurrency and blockchain ecosystem. This concept is particularly important in the ',o.name.toLowerCase()," category of crypto knowledge."]})]})]})]}),n&&e.jsxs("div",{className:"bg-gradient-to-r from-amber-50 to-orange-50 rounded-xl border border-amber-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("img",{src:n.image,alt:n.name,className:"w-10 h-10 rounded-full"}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900",children:[n.name," Live Price"]}),e.jsx("p",{className:"text-sm text-gray-600",children:"Real-time market data"})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm",children:[e.jsx("div",{className:"text-sm text-gray-500 mb-1",children:"Current Price"}),e.jsx("div",{className:"text-2xl font-bold text-gray-900",children:E(n.current_price)})]}),e.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm",children:[e.jsx("div",{className:"text-sm text-gray-500 mb-1",children:"24h Change"}),e.jsxs("div",{className:`text-2xl font-bold ${n.price_change_percentage_24h>=0?"text-green-600":"text-red-600"}`,children:[n.price_change_percentage_24h>=0?"+":"",(p=n.price_change_percentage_24h)==null?void 0:p.toFixed(2),"%"]})]}),e.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm col-span-2 sm:col-span-1",children:[e.jsx("div",{className:"text-sm text-gray-500 mb-1",children:"Market Cap"}),e.jsxs("div",{className:"text-xl font-bold text-gray-900",children:["$",(n.market_cap/1e9).toFixed(2),"B"]})]})]}),e.jsxs(l,{to:"/crypto-prices",className:"mt-4 inline-flex items-center gap-2 text-amber-700 hover:text-amber-800 font-medium text-sm",children:["View all crypto prices",e.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 5l7 7m0 0l-7 7m7-7H3"})})]})]}),e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("span",{className:"text-3xl",children:"🌍"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"Real-World Examples"})]}),e.jsx("ul",{className:"space-y-3",children:w.map((s,i)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-sky-100 text-sky-600 flex items-center justify-center text-sm font-semibold",children:i+1}),e.jsx("span",{className:"text-gray-600",children:s})]},i))})]}),e.jsxs("div",{className:"bg-gray-50 rounded-xl border border-gray-200 p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("span",{className:"text-3xl",children:"🔗"}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:"Related Terms"})]}),c.length>0?e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:c.map(s=>{const i=f(s.term);return e.jsxs(l,{to:`/glossary/${i}`,className:"flex items-center gap-3 p-3 bg-white rounded-lg border border-gray-200 hover:border-purple-300 hover:shadow-sm transition group",children:[e.jsx("span",{className:"text-xl",children:b[s.category]||"📖"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"font-medium text-gray-900 group-hover:text-purple-600 transition truncate",children:s.term}),e.jsxs("div",{className:"text-xs text-gray-500 truncate",children:[s.definition.slice(0,50),"..."]})]}),e.jsx("svg",{className:"w-4 h-4 text-gray-400 group-hover:text-purple-500 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]},s.term)})}):e.jsx("p",{className:"text-gray-500",children:"No related terms found in this category."})]})]}),e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-6 sticky top-24",children:[e.jsxs("h3",{className:"font-bold text-gray-900 mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"text-xl",children:"📊"}),"Quick Info"]}),e.jsxs("dl",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-500",children:"Category"}),e.jsxs("dd",{className:`px-2 py-0.5 rounded-full text-xs font-medium ${o.color}`,children:[o.icon," ",o.name]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-500",children:"Difficulty"}),e.jsx("dd",{className:"text-gray-900 font-medium",children:t.category==="basics"?"🟢 Beginner":t.category==="defi"||t.category==="blockchain"?"🟡 Intermediate":"🟠 Advanced"})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("dt",{className:"text-gray-500",children:"Related Count"}),e.jsxs("dd",{className:"text-gray-900 font-medium",children:[c.length," terms"]})]})]}),e.jsx("div",{className:"mt-6 pt-6 border-t border-gray-200",children:e.jsxs(l,{to:"/glossary",className:"flex items-center justify-center gap-2 w-full bg-purple-600 hover:bg-purple-700 text-white px-4 py-3 rounded-lg font-semibold transition",children:[e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})}),"Browse All Terms"]})}),e.jsx("div",{className:"mt-4",children:e.jsxs(l,{to:"/crypto-prices",className:"flex items-center justify-center gap-2 w-full bg-gray-100 hover:bg-gray-200 text-gray-700 px-4 py-3 rounded-lg font-medium transition",children:[e.jsx("span",{children:"📈"}),"Live Crypto Prices"]}
1)})]})})]})})]})}export{U as GlossaryTerm};

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.