1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-D3F0h15I.js";import{a as r}from"./react-intl-CZJDGRhA.js";import{n as i,t as a}from"./short_number-BgjDzBct.js";import{t as o}from"./classnames-CfLRLWYq.js";import{t as s}from"./skeleton-B7DUl0I_.js";import{t as c}from"./build-Rln7KbAf.js";var l=e(t()),u=e(o()),d=c(),f=n(),p=class extends l.Component{constructor(...e){super(...e),this.state={error:!1}}componentDidCatch(){this.setState({error:!0})}render(){return this.state.error?null:this.props.children}},m=(e,t)=>(0,f.jsx)(r,{id:`trends.counter_by_accounts`,defaultMessage:`{count, plural, one {{counter} person} other {{counter} people}} in the past {days, plural, one {day} other {# days}}`,values:{count:t,counter:(0,f.jsx)(`strong`,{children:e}),days:2}}),h=({hashtag:e})=>(0,f.jsx)(_,{name:e.get(`name`),to:`/tags/${e.get(`name`)}`,people:e.getIn([`history`,0,`accounts`])*1+e.getIn([`history`,1,`accounts`])*1,history:e.get(`history`).reverse().map(e=>e.get(`uses`)).toArray()}),g=({hashtag:e})=>(0,f.jsx)(_,{name:e.name,to:`/tags/${e.name}`,people:e.history[0].accounts*1+(e.history[1]?.accounts??0)*1,history:e.history.map(e=>e.uses*1).reverse()}),_=({name:e,to:t,people:n,uses:r,history:o,className:c,description:l,withGraph:h=!0,children:g})=>(0,f.jsxs)(`div`,{className:(0,u.default)(`trends__item`,c),children:[(0,f.jsxs)(`div`,{className:`trends__item__name`,children:[(0,f.jsx)(i,{to:t,children:e?(0,f.jsxs)(f.Fragment,{children:[`#`,(0,f.jsx)(`span`,{children:e})]}):(0,f.jsx)(s,{width:50})}),l?(0,f.jsx)(`span`,{children:l}):n===void 0?(0,f.jsx)(s,{width:100}):(0,f.jsx)(a,{value:n,renderer:m})]}),r!==void 0&&(0,f.jsx)(`div`,{className:`trends__item__current`,children:(0,f.jsx)(a,{value:r})}),h&&(0,f.jsx)(`div`,{className:`trends__item__sparkline`,children:(0,f.jsx)(p,{children:(0,f.jsx)(d.Sparklines,{width:50,height:28,data:o??Array.from(Array(7)).map(()=>0),children:(0,f.jsx)(d.SparklinesCurve,{style:{fill:`none`}})})})}),g&&(0,f.jsx)(`div`,{className:`trends__item__buttons`,children:g})]});export{_ as n,h as r,g as t}; 2//# sourceMappingURL=hashtag-COJNf9k1.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.