'use strict';
import * as _0x2a5cf2 from 'screenshotone-api-sdk';
import { getStringEnvSetting } from '../../../../../fd-toolbox/infra/env-functions.js';
import { envSettingKeys } from '../../../../common/infra/env-setting-keys.js';
import { screenshotConstants } from '../../../../common/fd/media/screenshot-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x352f34,_0x5cf516)=>__defProp(_0x352f34,'name',{'value':_0x5cf516,'configurable':!![]});async function screenshotOneTakeScreenshot(_0x345fe7){const _0x5ac2aa=getStringEnvSetting(envSettingKeys['screenshotOneAccessKey']),_0x4ee6a4=getStringEnvSetting(envSettingKeys['screenshotOneSecretKey']);if(!_0x5ac2aa||!_0x4ee6a4)return void(0x24df*-0x1+-0x1*-0x955+0x8d*0x32);const _0xacd0b1=new _0x2a5cf2['Client'](_0x5ac2aa,_0x4ee6a4),_0xff0524=_0x2a5cf2['TakeOptions']['url'](_0x345fe7)['delay'](screenshotConstants['screenshotTakeDelay'])['blockAds'](!![]),_0x495684=await _0xacd0b1['take'](_0xff0524);return _0x495684;}__name(screenshotOneTakeScreenshot,'screenshotOneTakeScreenshot');

export { screenshotOneTakeScreenshot };
