import e from "../PlIcon16/PlIcon16.js";
import "../PlMaskIcon16/index.js";
import { computed as t, createBlock as n, defineComponent as r, normalizeClass as i, onUnmounted as a, openBlock as o, ref as s, unref as c } from "vue";
var l = /* @__PURE__ */ r({
	name: "PlClipboard",
	props: { size: {} },
	emits: ["copy"],
	setup(r, { emit: l }) {
		let u = r, d = l, f = s(!1), p = t(() => f.value ? "clipboard-copied" : "clipboard"), m;
		function h() {
			clearTimeout(m), f.value = !0, d("copy"), m = window.setTimeout(() => {
				f.value = !1;
			}, 1e3);
		}
		return a(() => {
			clearTimeout(m);
		}), (t, r) => (o(), n(c(e), {
			name: p.value,
			size: u.size,
			class: i(t.$style.copy),
			onClick: h
		}, null, 8, [
			"name",
			"size",
			"class"
		]));
	}
});
export { l as default };

//# sourceMappingURL=PlClipboard.vue2.js.map