import{u as i,j as e,d as r,D as n,t as l,T as m,bW as d,v as u}from"./main-D6SjkSWq.js";import{A as c}from"./artist-context-dialog-BN3LwabY.js";import{S as x}from"./small-artist-image-gQ68My-z.js";import{g as p}from"./genre-link-DdPuED_F.js";import{M as f,a}from"./media-page-header-layout-CwMyNW7m.js";import{M as j,L as g}from"./comment-bar-new-comment-form-DwRWesDV.js";import{P as h,q as b}from"./share-media-button-DKcCMMvL.js";import{a as w}from"./profile-description-CMKyeu9Y.js";function T({artist:s}){var t;const{artistPage:o}=i();return e.jsx("div",{children:e.jsx(f,{centerItems:!0,image:e.jsx(x,{showVerifiedBadge:!0,artist:s,className:"rounded-full object-cover",wrapperClassName:"mx-auto"}),title:s.name,subtitle:(t=s.genres)!=null&&t.length?e.jsx(y,{genres:s.genres}):null,actionsBar:e.jsxs("div",{className:"flex flex-col items-center justify-center gap-24 md:flex-row md:justify-between",children:[e.jsx(v,{artist:s}),e.jsx(j,{item:s})]}),footer:o.showDescription&&e.jsx(w,{profile:s.profile,links:s.links})})})}function y({genres:s,className:o}){return e.jsx("ul",{className:r("flex max-w-620 items-center justify-start gap-14 overflow-hidden overflow-ellipsis whitespace-nowrap text-sm text-muted max-md:hidden",o),children:s==null?void 0:s.slice(0,5).map(t=>e.jsx("li",{children:e.jsx(u,{to:p(t),className:"block cursor-pointer rounded-button bg-fg-base/10 px-10 py-4 text-xs transition-colors hover:bg-fg-base/20",children:t.display_name||t.name})},t.id))})}function v({artist:s}){return e.jsxs("div",{children:[e.jsx(h,{queueId:b(s),buttonType:"text",className:a({isFirst:!0})}),e.jsx(g,{likeable:s,className:r(a(),"max-md:hidden")}),e.jsxs(n,{type:"popover",mobileType:"tray",children:[e.jsx(l,{variant:"outline",radius:"rounded-full",endIcon:e.jsx(d,{}),className:a(),children:e.jsx(m,{message:"More"})}),e.jsx(c,{artist:s})]})]})}export{T as A,y as G};
