import{_ as a}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as s,o,a as l,R as d,r as m,V as f,C as c}from"./index-CmCGXBst.js";import{_ as w}from"./IconCopy-JqCg6kwh.js";const v={},g={fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"};function h(t,e){return o(),s("svg",g,e[0]||(e[0]=[l("path",{"clip-rule":"evenodd",d:"M15.864 5.718c-5.504-2.135-11.696.597-13.83 6.101a.5.5 0 0 0 0 .362 10.69 10.69 0 0 0 6.102 6.102c5.504 2.134 11.696-.598 13.83-6.102a.5.5 0 0 0 0-.362 10.69 10.69 0 0 0-6.102-6.101ZM20.962 12c-2 4.868-7.536 7.261-12.465 5.35A9.69 9.69 0 0 1 3.038 12a9.69 9.69 0 0 1 17.923 0ZM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm3-4a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor","fill-rule":"evenodd"},null,-1)]))}const E=a(v,[["render",h]]),k={},x={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"};function y(t,e){return o(),s("svg",x,e[0]||(e[0]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"},null,-1)]))}const C=a(k,[["render",y]]),M=d({__name:"CopyToClipboard",props:{value:{}},setup(t){const e=t,n=m(!1),i=f();async function _(){try{await navigator.clipboard.writeText(e.value),n.value=!0,i.addEvent("Значение скопировано в буфер обмена"),setTimeout(()=>n.value=!1,1e3)}catch(r){console.error("Ошибка копирования:",r)}}return(r,B)=>{const p=w,u=C;return o(),s("button",{type:"button",class:"tw-items-center tw-justify-center hover:tw-text-orange-500",onClick:_},[n.value?(o(),c(u,{key:1,class:"tw-size-4"})):(o(),c(p,{key:0,class:"tw-size-4"}))])}}});export{M as _,E as a};
