"use strict";

exports.__esModule = true;
exports.copyToClipboard = void 0;

var copyToClipboard = function copyToClipboard(str) {
  var element = document.createElement('textarea');
  element.value = str;
  element.setAttribute('readonly', '');
  element.style.position = 'absolute';
  element.style.left = '-9999px';
  document.body.appendChild(element);
  element.select();
  document.execCommand('copy');
  document.body.removeChild(element);
};

exports.copyToClipboard = copyToClipboard;