PageSourceSearch

https://assets.genius.com/javascripts/compiled/ArtistBadge-DiC9RCnj.js

js genius.com collected 2026-10-01 07:21:35 UTC 2,068 bytes, 2 lines download raw bytes

1import{j as s,R as b}from"./react-vendor-n58YcWca.js";import{u as w}from"./baseApi-BDNw6R0N.js";import{P as i}from"./useMixpanelEvent-CwzNdz1P.js";import{q as r,A as l}from"./styled-components.browser.esm-bLCX9LcF.js";import{R as _}from"./RoleIcon-Dpm9s0Ws.js";import{S as j}from"./entityCommentsSlice-CV5A085w.js";import{V as y}from"./VerifiedBadge-FPZAwb-9.js";const C="verifiedArtist",t=({artistId:e,avatarSize:n=40,nameFontSize:c,nameLineHeight:h,sizeUnit:f,gap:g="full",showVerified:p=!1,showVerifiedCheck:u=!1,link:o=!0,className:x})=>{const{url:A,name:I,imageUrl:a,isVerified:m}=w("artists",e),d=u&&m;return s.jsxs(t.Container,{gap:g,className:x,children:[s.jsx(t.Picture,{children:a&&s.jsx(j,{src:a,width:n,height:n,sizeUnit:f})}),s.jsxs(t.Info,{$size:c,$lineHeight:h,$inline:d,children:[s.jsx(t.ArtistName,{as:o?"a":"span",href:o?A:void 0,children:I}),d&&s.jsx(_,{role:C}),p&&m&&s.jsx(y,{small:!0})]})]})},E=b.memo(t);t.propTypes={artistId:i.number.isRequired,avatarSize:i.number,nameFontSize:i.string,nameLineHeight:i.string,sizeUnit:i.oneOf(["px","rem"]),gap:i.string,showVerified:i.bool,showVerifiedCheck:i.bool,link:i.bool,className:i.string};t.Container=r.div.withConfig({displayName:"ArtistBadge__Container",componentId:"sc-bc515440-0"})(["display:flex;align-items:center;column-gap:",";font-weight:",";min-width:0;"],e=>e.theme.space[e.gap],e=>e.theme.fontWeight.light);t.Picture=r.div.withConfig({displayName:"ArtistBadge__Picture",componentId:"sc-bc515440-1"})(["flex:0 0 auto;& > div{border-radius:100%;}"]);t.Info=r.div.withConfig({displayName:"ArtistBadge__Info",componentId:"sc-bc515440-2"})(["font-size:",";line-height:",";min-width:0;",""],e=>e.theme.fontSize[e.$size],e=>e.theme.lineHeight[e.$lineHeight],e=>e.$inline&&l(["display:flex;align-items:center;gap:",";"],e.theme.space.half));t.ArtistName=r.a.withConfig({displayName:"ArtistBadge__ArtistName",componentId:"sc-bc515440-3"})(["color:",";",""],e=>e.theme.color.background.on,e=>e.url&&l(["text-decoration:underline;"]));export{E as A};
2//# sourceMappingURL=ArtistBadge-DiC9RCnj.js.map

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.