1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{c as n,s as r}from"./react-intl-DlKP8ATg.js";import{t as i}from"./jsx-runtime-BdxMnOeJ.js";import{t as a}from"./classnames-CfLRLWYq.js";import{r as o,t as s}from"./html-CzpiK0AH.js";import{t as c}from"./skeleton-BO82ZgT5.js";var l=e(t()),u=e(a()),d=i(),f=({account:e,className:t,children:n,localDomain:r,...i})=>(0,d.jsxs)(o,{...i,as:`span`,className:(0,u.default)(`display-name`,t),children:[(0,d.jsx)(`bdi`,{children:e?(0,d.jsx)(s,{className:`display-name__html`,htmlString:e.display_name_html,as:`strong`,extraEmojis:e.emojis}):(0,d.jsx)(`strong`,{className:`display-name__html`,children:(0,d.jsx)(c,{width:`10ch`})})}),n]}),p=r({invalidHandle:{id:`account.hame.invalid_handle`,defaultMessage:`Handle unavailable`}});function m(e,t){let r=n();return(0,l.useMemo)(()=>{if(!e)return null;if(e.invalid_handle)return r.formatMessage(p.invalidHandle);let n=e.acct;return!n.includes(`@`)&&t&&(n=`${n}@${t}`),`@${n}`},[e,t,r])}var h=({account:e,localDomain:t,className:n,...r})=>{let i=m(e,t);return(0,d.jsxs)(f,{account:e,className:n,...r,children:[` `,(0,d.jsx)(`span`,{className:`display-name__account`,children:i??(0,d.jsx)(c,{width:`7ch`})})]})};export{m as n,f as r,h as t}; 2//# sourceMappingURL=default-BJghFIgN.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.