'use strict';
import { logWarningRaw } from '../../../fd-toolbox/logging/loggers.js';
import { websiteScanResultSocialMediaType } from './website-scan-result-social-media-type.js';
import { socialMediaLinks } from '../../common/website-scan/social-media-links.js';

var __defProp=Object['defineProperty'],__name=(_0x342039,_0x5e6c77)=>__defProp(_0x342039,'name',{'value':_0x5e6c77,'configurable':!![]});function getWebsiteResultScanSocialMediaTypeBySocialMediaLink(_0x4c4d7e){let _0x2e6ff5;if(isFacebookLink(_0x4c4d7e))_0x2e6ff5=websiteScanResultSocialMediaType['facebook'];else {if(isInstagramLink(_0x4c4d7e))_0x2e6ff5=websiteScanResultSocialMediaType['instagram'];else {if(isLinkedinLink(_0x4c4d7e))_0x2e6ff5=websiteScanResultSocialMediaType['linkedin'];else {if(isTiktokLink(_0x4c4d7e))_0x2e6ff5=websiteScanResultSocialMediaType['tiktok'];else isXComLink(_0x4c4d7e)?_0x2e6ff5=websiteScanResultSocialMediaType['xCom']:logWarningRaw('Unsupported\x20social\x20media\x20link');}}}return _0x2e6ff5;}__name(getWebsiteResultScanSocialMediaTypeBySocialMediaLink,'getWebsiteResultScanSocialMediaTypeBySocialMediaLink');function isFacebookLink(_0x35c437){return _0x35c437['includes'](socialMediaLinks['facebook']);}__name(isFacebookLink,'isFacebookLink');function isXComLink(_0x4f3569){return _0x4f3569['includes'](socialMediaLinks['x'])||_0x4f3569['includes'](socialMediaLinks['twitter']);}__name(isXComLink,'isXComLink');function isInstagramLink(_0x268a55){return _0x268a55['includes'](socialMediaLinks['instagram']);}__name(isInstagramLink,'isInstagramLink');function isLinkedinLink(_0xf8a2b){return _0xf8a2b['includes'](socialMediaLinks['linkedin']);}__name(isLinkedinLink,'isLinkedinLink');function isTiktokLink(_0x58f614){return _0x58f614['includes'](socialMediaLinks['tiktok']);}__name(isTiktokLink,'isTiktokLink');

export { getWebsiteResultScanSocialMediaTypeBySocialMediaLink };
