'use strict';
import { fillWorkspaceResourceProps } from '../../../fd-app-toolbox/server/base-resources/props/fill-workspace-resource-props.js';
import { scanWebsiteWrapper } from './scan-social-media-and-email.js';
import { baseHttpGetText } from '../../fd/fd-toolbox-web/http/base-http-client.js';
import { getWebsiteScanResultAnalyticsByHtml } from '../../../common/website-scan/analytics-scan.js';
import { getWebsiteScanResultPlatformByWebsiteHtml } from '../../../common/website-scan/website-platform-checking.js';

var __defProp=Object['defineProperty'],__name=(_0x36852a,_0x161bb7)=>__defProp(_0x36852a,'name',{'value':_0x161bb7,'configurable':!![]});async function initializeAndFillWebsiteScanResultConfig(_0x201fcb,_0x9d9cb5){const _0x597c17=await fillWorkspaceResourceProps(_0x201fcb),_0x80d777=await baseHttpGetText(_0x9d9cb5['websiteUrl']),_0xfcb3f2=await scanWebsiteWrapper(_0x9d9cb5['websiteUrl']);return _0x597c17['emails']=_0xfcb3f2['emails']['length']?_0xfcb3f2['emails']['join'](','):'',_0x597c17['platform']=getWebsiteScanResultPlatformByWebsiteHtml(_0x80d777),_0x597c17['analytics']=getWebsiteScanResultAnalyticsByHtml(_0x80d777)?.['join'](','),_0x597c17['socialMediaLinks']=_0xfcb3f2['socialLinks']['length']?_0xfcb3f2['socialLinks']['join'](','):'',_0x597c17;}__name(initializeAndFillWebsiteScanResultConfig,'initializeAndFillWebsiteScanResultConfig');

export { initializeAndFillWebsiteScanResultConfig };
