import{E as t}from"./vendor-element-DhixKrWD.js";function n(n,e){const o=String(n||"").trim();o&&(navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(o).then(()=>{t.success(e||`已复制: ${o}`)}).catch(()=>{i(o,e)}):i(o,e))}function e(t){const e=String(t||"").trim();e&&n(e,`已复制QQ号: ${e}`)}function o(t){const e=String(t||"").trim();e&&n(e,`已复制微信号: ${e}`)}function c(t){const e=String(t||"").trim();e&&n(e,"店铺链接已复制")}function i(n,e){const o=document.createElement("textarea");o.value=n,o.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0",document.body.appendChild(o),o.select();try{document.execCommand("copy"),t.success(e||`已复制: ${n}`)}catch(c){t.warning("复制失败，请手动复制: "+n)}document.body.removeChild(o)}export{o as a,c as b,e as c};
