1import{c as u}from"./createLucideIcon.js";import{r as t,j as o}from"./jsx-runtime.js";import{s as m,B as p}from"./index8.js";import{u as n}from"./index6.js";import{B as y}from"./button.js";import{u as x}from"./use-translation.js";/** 2 * @license lucide-react v0.562.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const d=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],L=u("share-2",d);function h({currentUrl:s}){const r=x(),[c,i]=t.useState(!1),e=t.useRef(null);t.useEffect(()=>()=>{e.current!==null&&window.clearTimeout(e.current)},[]);const a=async()=>{try{await navigator.clipboard.writeText(s),i(!0),e.current!==null&&window.clearTimeout(e.current),e.current=window.setTimeout(()=>{i(!1)},1500),n(r("URLãã¯ãªãããã¼ãã«ã³ãã¼ããã¾ããã","URL has been copied to clipboard."))}catch(l){n(r("URLã®ã³ãã¼ã«å¤±æãã¾ããã","Failed to copy URL.")),console.error(l)}};return o.jsxs(y,{className:"flex items-center gap-2",variant:"outline",onClick:a,"aria-live":"polite",children:[c?o.jsx(m,{}):o.jsx(p,{}),c?r("ã³ãã¼ãã¾ãã","Copied"):r("URLãã³ãã¼","Copy URL")]})}export{h as C,L as S};
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.