"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var a=e(require("html2canvas"));exports.getDashboardCapturingHandler=function(e){return function(t){var n;t.origin===window.location.origin&&"CAPTURE_SCREENSHOT"===(null===(n=t.data)||void 0===n?void 0:n.type)&&a.default(document.body,{scale:2,useCORS:!0,backgroundColor:null}).then((function(a){var n=a.toDataURL("image/png");window.parent.postMessage({type:"SCREENSHOT_CAPTURED",payload:{appId:e,imageData:n}},t.origin)})).catch((function(e){console.error("[Capture] html2canvas failed in iframe:",e)}))}};
//# sourceMappingURL=dashboardCapturing.js.map
