'use strict';
import { apiPost } from '../../../../fd-toolbox/api/api-client.js';
import { getBlobUrl } from '../../../meta/core/resources/blob/blob-urls.js';
import { routes } from '../../../../fd-toolbox/routing/routes.js';

var __defProp=Object['defineProperty'],__name=(_0x7038ff,_0x475851)=>__defProp(_0x7038ff,'name',{'value':_0x475851,'configurable':!![]});async function onTakeScreenshot(_0x69f7a,_0x44f4e1){const _0x2f22f8=await apiPost(routes['screenshot'],{'websiteUrl':_0x69f7a});if(_0x2f22f8['data']){const _0x9c3dd0=getBlobUrl(_0x2f22f8['data']);_0x44f4e1(_0x9c3dd0);}}__name(onTakeScreenshot,'onTakeScreenshot');

export { onTakeScreenshot };
