PageSourceSearch

https://mastodon.thi.ng/packs/short_number-CLefuEED.js

js thi.ng collected 2026-10-03 19:29:32 UTC 1,044 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-CKeovgl0.js";import{a as r,r as i}from"./react-intl-C-SARy9S.js";import{a,n as o,t as s}from"./numbers-BEp7e788.js";var c=e(t()),l=n(),u=(0,c.memo)(({value:e,renderer:t,children:n})=>{let r=a(e),[,i]=r;n&&t&&console.warn(`Both renderer prop and renderer as a child provided. This is a mistake and you really should fix that. Only renderer passed as a child will be used.`);let s=n??t??null,c=(0,l.jsx)(d,{value:r});return s?.(c,o(e,i))??c}),d=({value:e})=>{let[t,n,a=0]=e,o=(0,l.jsx)(i,{value:t??0,maximumFractionDigits:a,roundingMode:`trunc`}),c={count:o,rawNumber:t};switch(n){case s.THOUSAND:return(0,l.jsx)(r,{id:`units.short.thousand`,defaultMessage:`{count}K`,values:c});case s.MILLION:return(0,l.jsx)(r,{id:`units.short.million`,defaultMessage:`{count}M`,values:c});case s.BILLION:return(0,l.jsx)(r,{id:`units.short.billion`,defaultMessage:`{count}B`,values:c});default:return o}};export{u as t};
2//# sourceMappingURL=short_number-CLefuEED.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.