PageSourceSearch

https://infosec.exchange/packs/badge-BxCdK05E.js

js infosec.exchange collected 2026-09-24 07:26:39 UTC 2,953 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./jsx-runtime-D3F0h15I.js";import{a as n,c as r}from"./react-intl-CZJDGRhA.js";import{o as i}from"./locales-DZmLvkbO.js";import{t as a}from"./classnames-CfLRLWYq.js";import{V as o,k as s}from"./poll-CiSbVnkU.js";import{a as c,i as l,n as u,r as d,t as f}from"./smart_toy-CSrWL6eJ.js";import{t as p}from"./block-BCpEPUNS.js";import{t as m}from"./group-C7vSDspn.js";import{t as h}from"./volume_off-C16iujHe.js";var g=e(a()),_={badge:`_comp_badge_redesign__badge`,badgeWithoutIcon:`_comp_badge_redesign__badgeWithoutIcon`},v={badge:`_comp_badge__badge`,badgeWithoutIcon:`_comp_badge__badgeWithoutIcon`,content:`_comp_badge__content`,domain:`_comp_badge__domain`,default:`_comp_badge__default`,subtle:`_comp_badge__subtle`,accent:`_comp_badge__accent`,feature:`_comp_badge__feature`,inverted:`_comp_badge__inverted`,success:`_comp_badge__success`,warning:`_comp_badge__warning`,danger:`_comp_badge__danger`},y=t(),b=({icon:e,variant:t=`default`,label:n,className:r,domain:a,roleId:o,...s})=>(0,y.jsxs)(`div`,{...s,className:(0,g.default)(v.badge,i()&&_.badge,!e&&[v.badgeWithoutIcon,_.badgeWithoutIcon],v[t],r),"data-account-role-id":o,children:[e,(0,y.jsxs)(`span`,{className:v.content,children:[n,a&&(0,y.jsxs)(`span`,{className:v.domain,children:[` `,a]})]})]}),x=({label:e,...t})=>(0,y.jsx)(b,{icon:(0,y.jsx)(c,{}),label:e??(0,y.jsx)(n,{id:`account.badges.admin`,defaultMessage:`Admin`}),...t}),S=({label:e,...t})=>(0,y.jsx)(b,{icon:(0,y.jsx)(m,{}),label:e??(0,y.jsx)(n,{id:`account.badges.group`,defaultMessage:`Group`}),...t}),C=e=>(0,y.jsx)(b,{icon:(0,y.jsx)(f,{}),label:(0,y.jsx)(n,{id:`account.badges.bot`,defaultMessage:`Automated`}),...e}),w=e=>(0,y.jsx)(b,{icon:(0,y.jsx)(d,{}),label:(0,y.jsx)(n,{id:`account.follows_you`,defaultMessage:`Follows you`}),...e}),T=e=>(0,y.jsx)(b,{variant:`warning`,icon:(0,y.jsx)(l,{}),label:(0,y.jsx)(n,{id:`account.pending`,defaultMessage:`Pending`}),...e}),E=({expiresAt:e,label:t,...i})=>{let a=r(),o=null;if(e){let t=new Date(e),n=t.getFullYear()===new Date().getFullYear();o=a.formatDate(t,{month:`short`,day:`numeric`,...n?{}:{year:`numeric`}})}return(0,y.jsx)(b,{icon:(0,y.jsx)(h,{}),variant:`inverted`,label:t??(o?(0,y.jsx)(n,{id:`account.badges.muted_until`,defaultMessage:`Muted until {until}`,values:{until:o}}):(0,y.jsx)(n,{id:`account.badges.muted`,defaultMessage:`Muted`})),...i})},D=({label:e,...t})=>(0,y.jsx)(b,{icon:(0,y.jsx)(p,{}),variant:`danger`,label:e??(0,y.jsx)(n,{id:`account.badges.blocked`,defaultMessage:`Blocked`}),...t}),O=(e,t,n)=>{if(e===`rel`&&n===`a`)return t===`me`?null:[e,t.split(` `).filter(e=>e!==`me`).join(` `)]},k=({link:e,className:t})=>(0,y.jsx)(b,{variant:`success`,icon:(0,y.jsx)(o,{id:`verified`,icon:u,noFill:!0}),label:(0,y.jsx)(s,{as:`span`,htmlString:e,onAttribute:O}),className:t});export{w as a,T as c,D as i,k as l,C as n,S as o,b as r,E as s,x as t};
2//# sourceMappingURL=badge-BxCdK05E.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.