//#region src/backoffice/shared/copyWithExecCommand.ts
function e(e) {
	try {
		let t = document.createElement("textarea");
		t.value = e, t.setAttribute("readonly", "true"), t.style.position = "fixed", t.style.top = "-1000px", t.style.left = "-1000px", document.body.appendChild(t), t.select();
		let n = document.execCommand("copy");
		return document.body.removeChild(t), n;
	} catch {
		return !1;
	}
}
//#endregion
export { e as copyWithExecCommand };

//# sourceMappingURL=copyWithExecCommand.js.map