PageSourceSearch

https://btsearch.pl/assets/roleBadge-CaTI9Z8L.js

js btsearch.pl collected 2026-10-02 19:23:46 UTC 1,210 bytes, 1 lines download raw bytes

1import{i as e,r as t}from"./react-vendor-BSoWPUms.js";import{Ui as n,fi as r}from"./initial-vendor-pdObGdQk.js";import{n as i}from"./i18n-vendor-D_fRDply.js";import{P as a,v as o}from"./ui-vendor-RQaZgsxK.js";import{t as s}from"./badge-Cyo5j1eD.js";var c=e(),l={editor:{icon:o,badge:`bg-primary/12 text-primary`,wash:`from-primary/14 via-primary/6`},admin:{icon:a,badge:`bg-rose-500/12 text-rose-700 dark:text-rose-400`,wash:`from-rose-500/14 via-rose-500/5`}};function u(e){return e===`editor`||e===`admin`}function d(e){return r(`bg-linear-115 via-34% to-transparent to-70%`,u(e)?l[e].wash:`from-muted-foreground/12 via-muted-foreground/5`)}var f=t();function p(e){let t=(0,c.c)(12),{role:a,className:o}=e,{t:d}=i(`common`);if(!u(a))return null;let p=l[a],m;t[0]!==o||t[1]!==p.badge?(m=r(p.badge,o),t[0]=o,t[1]=p.badge,t[2]=m):m=t[2];let h;t[3]===p.icon?h=t[4]:(h=(0,f.jsx)(n,{icon:p.icon,"data-icon":`inline-start`,"aria-hidden":`true`}),t[3]=p.icon,t[4]=h);let g=`roles.${a}`,_;t[5]!==d||t[6]!==g?(_=d(g),t[5]=d,t[6]=g,t[7]=_):_=t[7];let v;return t[8]!==m||t[9]!==h||t[10]!==_?(v=(0,f.jsxs)(s,{variant:`secondary`,className:m,children:[h,_]}),t[8]=m,t[9]=h,t[10]=_,t[11]=v):v=t[11],v}export{d as n,p as t};

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.