PageSourceSearch

https://m.wingu.se/packs/copy_button-C2UVynmn.js

js wingu.se collected 2026-09-29 15:11:40 UTC 1,261 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{s as n}from"./react-intl-DlKP8ATg.js";import{t as r}from"./jsx-runtime-BdxMnOeJ.js";import"./store-BKpYtGn4.js";import{o as i}from"./typed_functions-Whap35TF.js";import{Wn as a}from"./filters-Br4s8K7f.js";import{t as o}from"./classnames-CfLRLWYq.js";import{t as s}from"./icon_button-DfNtv8BJ.js";import{t as c}from"./button-BmF3DXsp.js";import{t as l}from"./content_copy-J1bl6DdF.js";var u=e(t()),d=e(o()),f=r(),p=n({copied:{id:`copy_icon_button.copied`,defaultMessage:`Copied to clipboard`}});function m({text:e}){let[t,n]=(0,u.useState)(!1),r=i();return{copyText:(0,u.useCallback)(()=>{navigator.clipboard.writeText(e),n(!0),r(a({message:p.copied})),setTimeout(()=>{n(!1)},700)},[n,e,r]),wasCopied:t}}var h=({value:e,children:t,...n})=>{let{copyText:r,wasCopied:i}=m({text:e}),a=typeof t==`function`?t(i):t;return(0,f.jsx)(c,{...n,onClick:r,children:a})},g=({title:e,value:t,className:n,"aria-describedby":r})=>{let{copyText:i,wasCopied:a}=m({text:t});return(0,f.jsx)(s,{className:(0,d.default)(n,a?`copied`:`copyable`),title:e,onClick:i,icon:`copy-icon`,iconComponent:l,"aria-describedby":r})};export{g as n,h as t};
2//# sourceMappingURL=copy_button-C2UVynmn.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.