import a from"html2canvas";var o=function(o){return function(n){var t;n.origin===window.location.origin&&"CAPTURE_SCREENSHOT"===(null===(t=n.data)||void 0===t?void 0:t.type)&&a(document.body,{scale:2,useCORS:!0,backgroundColor:null}).then((function(a){var t=a.toDataURL("image/png");window.parent.postMessage({type:"SCREENSHOT_CAPTURED",payload:{appId:o,imageData:t}},n.origin)})).catch((function(a){console.error("[Capture] html2canvas failed in iframe:",a)}))}};export{o as getDashboardCapturingHandler};
//# sourceMappingURL=dashboardCapturing.js.map
