{"ast":null,"code":"export var copy = function copy(textToCopy) {\n  var el = document.createElement('textarea'); // Set value (string to be copied)\n\n  el.value = textToCopy; // Set non-editable to avoid focus and move outside of view\n\n  el.setAttribute('readonly', '');\n  el.style = {\n    display: 'none',\n    position: 'absolute',\n    left: '-9999px'\n  };\n  document.body.appendChild(el); // Select text inside element\n\n  el.select(); // Copy text to clipboard\n\n  document.execCommand('copy'); // Remove temporary element\n\n  document.body.removeChild(el);\n};","map":{"version":3,"names":["copy","textToCopy","el","document","createElement","value","setAttribute","style","display","position","left","body","appendChild","select","execCommand","removeChild"],"sources":["/Users/ausulliv/repos/temp/patternfly-react/node_modules/@patternfly/documentation-framework/helpers/copy.js"],"sourcesContent":["export const copy = textToCopy => {\n  let el = document.createElement('textarea');\n  // Set value (string to be copied)\n  el.value = textToCopy;\n  // Set non-editable to avoid focus and move outside of view\n  el.setAttribute('readonly', '');\n  el.style = {\n    display: 'none',\n    position: 'absolute',\n    left: '-9999px'\n  };\n  document.body.appendChild(el);\n  // Select text inside element\n  el.select();\n  // Copy text to clipboard\n  document.execCommand('copy');\n  // Remove temporary element\n  document.body.removeChild(el);\n};\n"],"mappings":"AAAA,OAAO,IAAMA,IAAI,GAAG,SAAPA,IAAO,CAAAC,UAAU,EAAI;EAChC,IAAIC,EAAE,GAAGC,QAAQ,CAACC,aAAT,CAAuB,UAAvB,CAAT,CADgC,CAEhC;;EACAF,EAAE,CAACG,KAAH,GAAWJ,UAAX,CAHgC,CAIhC;;EACAC,EAAE,CAACI,YAAH,CAAgB,UAAhB,EAA4B,EAA5B;EACAJ,EAAE,CAACK,KAAH,GAAW;IACTC,OAAO,EAAE,MADA;IAETC,QAAQ,EAAE,UAFD;IAGTC,IAAI,EAAE;EAHG,CAAX;EAKAP,QAAQ,CAACQ,IAAT,CAAcC,WAAd,CAA0BV,EAA1B,EAXgC,CAYhC;;EACAA,EAAE,CAACW,MAAH,GAbgC,CAchC;;EACAV,QAAQ,CAACW,WAAT,CAAqB,MAArB,EAfgC,CAgBhC;;EACAX,QAAQ,CAACQ,IAAT,CAAcI,WAAd,CAA0Bb,EAA1B;AACD,CAlBM"},"metadata":{},"sourceType":"module"}