PageSourceSearch

https://moep.social/packs/copy_button-CZux7TX7.js

js moep.social collected 2026-10-06 20:28:14 UTC 1,403 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-D3F0h15I.js";import{s as r}from"./react-intl-CZJDGRhA.js";import{za as i}from"./time-KXiROFCN.js";import{o as a}from"./typed_functions-C61D5Gin.js";import{Kt as o,Sn as s}from"./mood-Cw3vXYdp.js";import{t as c}from"./classnames-CfLRLWYq.js";import{X as l}from"./poll-BYWZg_XP.js";import{t as u}from"./Copy.es-CBCgVVpP.js";import{t as d}from"./content_copy-57Gyx5n4.js";var f=e(t()),p=e(c()),m=n(),h=r({copied:{id:`copy_icon_button.copied`,defaultMessage:`Copied to clipboard`}});function g({text:e}){let[t,n]=(0,f.useState)(!1),r=a();return{copyText:(0,f.useCallback)(()=>{navigator.clipboard.writeText(e),n(!0),r(i({message:h.copied})),setTimeout(()=>{n(!1)},700)},[n,e,r]),wasCopied:t}}var _=({value:e,children:t,...n})=>{let{copyText:r,wasCopied:i}=g({text:e}),a=typeof t==`function`?t(i):t;return(0,m.jsx)(o,{...n,onClick:r,children:a})},v=({title:e,value:t,className:n,"aria-describedby":r})=>{let{copyText:i,wasCopied:a}=g({text:t});return(0,m.jsx)(l,{className:(0,p.default)(n,a?`copied`:`copyable`),title:e,onClick:i,icon:`copy-icon`,iconComponent:d,"aria-describedby":r})},y=({title:e,value:t,...n})=>{let{copyText:r,wasCopied:i}=g({text:t});return(0,m.jsx)(s,{...n,onClick:r,icon:u,variant:i?`solid`:n.variant,children:e})};export{y as n,v as r,_ as t};
2//# sourceMappingURL=copy_button-CZux7TX7.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.