1var module_198868061302=void document.getElementById("shopCheckerForm")?.addEventListener("submit",function(e){e.preventDefault();const shop_url=document.getElementById("shopUrl").value.toLowerCase().replace(/^(https?:\/\/)?(www\.)?/,"");var loadingIndicator=document.getElementById("loadingIndicator"),container=document.getElementById("container"),containerSuccess=document.getElementById("containerSuccess"),fakeShopPassed=!1;loadingIndicator.style.display="block",container.style.display="none",containerSuccess.style.display="none",container.innerHTML="",fetch("https://fake-shop-scanner-api.trustedshops.com/v1/check-shop?shop_url="+encodeURIComponent(shop_url)).then(response=>response.json()).then(data=>{loadingIndicator.style.display="none",function(data,fakeShopPassed){var container=document.getElementById("container"),containerSuccess=document.getElementById("containerSuccess"),containerWarning=document.getElementById("containerWarning"),containerDanger=document.getElementById("containerDanger"),resultContainerWarning=document.getElementById("resultContainerWarning");let howItWorksHeadline=document.getElementById("how-it-works-headline"),howItWorksContent=document.getElementById("how-it-works-content"),howFakeList=document.getElementById("how-fake-list");if(data&&data.result){if(console.log(data),!0===fakeShopPassed&&data.result.httpsCheck.passed&&data.result.reachableCheck.passed&&data.result.imprintCheck.passed)howItWorksHeadline.style.display="none",howItWorksContent.style.display="none",howFakeList.style.display="none",containerSuccess.style.display="flex",containerWarning.style.display="none",containerDanger.style.display="none";else{howItWorksHeadline.style.display="none",howItWorksContent.style.display="none",containerSuccess.style.display="none",!1===fakeShopPassed?(containerDanger.style.display="flex",containerWarning.style.display="none",resultContainerWarning.style.display="none",howFakeList.style.display="block"):(containerWarning.style.display="flex",containerDanger.style.display="none",resultContainerWarning.style.display="flex",howFakeList.style.display="none");var html="";!1===fakeShopPassed&&(html+='<div class="d-flex a-items-center gap-1">',html+='<div class="">'+(!1===fakeShopPassed?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" width="57" height="56"><rect width="56" height="56" fill="#D1FADF" rx="28"></rect><path fill="#249132" d="m20.3 27.3 5.3 3.7 11-11.6c.2-.2.7-.7 1.5-.2.5.3.5 1 .2 1.4L26.6 36.5c-.2.3-.6.5-1 .5-.5 0-.9-.2-1.1-.5l-5.8-7.9a1 1 0 0 1 .2-1.4c.6-.5 1.1 0 1.4.1Z"></path></svg>':'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 68.3 68.3"><rect width="60" height="60" x="4.2" y="4.2" fill="#FF7F0B" rx="30"></rect><path fill="#fff" d="M34.1 22.4a11.8 11.8 0 1 1 0 23.6 11.8 11.8 0 0 1 0-23.6zm-5 15.5a1 1 0 0 0 1.3 1.4l3.7-3.7 3.7 3.6a1 1 0 0 0 1.5-1.4l-3.6-3.6 3.6-3.8a1 1 0 0 0-1.3-1.3l-3.7 3.6-3.7-3.7a1 1 0 0 0-1.5 1.5l3.6 3.6-3.7 3.7z"></path><rect width="60" height="60" x="4.2" y="4.2" stroke="#FFECC9" stroke-width="8.3" rx="30"></rect></svg>')+"</div>",html+="<h4>Fake-Shop Ãberprüfung</h4>",data.result.fakeShopAPICheck.message&&(html+="<p>"+data.result.fakeShopAPICheck.message+"</p>"),html+="</div>"),data.result.imprintCheck&&!0===fakeShopPassed&&(html+='<div class="d-flex a-items-center gap-1">',html+='<div class="">'+(data.result.imprintCheck.passed?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" width="57" height="56"><rect width="56" height="56" fill="#D1FADF" rx="28"></rect><path fill="#249132" d="m20.3 27.3 5.3 3.7 11-11.6c.2-.2.7-.7 1.5-.2.5.3.5 1 .2 1.4L26.6 36.5c-.2.3-.6.5-1 .5-.5 0-.9-.2-1.1-.5l-5.8-7.9a1 1 0 0 1 .2-1.4c.6-.5 1.1 0 1.4.1Z"></path></svg>':'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" height="56" width="56"><rect width="56" height="56" fill="#FFBB89" rx="28"> </rect><path fill="#A84D0D" d="M37.7 36.3H18.3c-.5 0-1-.3-1.1-.7-.3-.4-.3-1 0-1.4L26.9 17c.2-.4.7-.6 1.1-.6.4 0 .9.2 1 .6l9.8 17.3c.3.4.3 1 0 1.4-.2.4-.6.7-1 .7ZM28 34.5c.7 0 1.3-.6 1.3-1.4 0-.7-.6-1.4-1.3-1.4-.7 0-1.3.7-1.3 1.4 0 .4.2.7.4 1 .2.2.6.4.9.4Zm.8-12.8h-1.6c-.2 0-.3 0-.3.2l-.2.3.4 7.7c0 .3.2.5.4.5h1c.2 0 .4-.2.4-.5l.4-7.7-.
11-.3-.4-.2Z"></path></svg>')+"</div>",html+="<h4>Impressum unvollständig</h4>",data.result.imprintCheck.message&&(html+="<p>"+data.result.imprintCheck.message+"</p>"),html+="</div>"),data.result.httpsCheck&&!0===fakeShopPassed&&(html+='<div class="d-flex a-items-center gap-1">',html+='<div class="">'+(data.result.httpsCheck.passed?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" width="57" height="56"><rect width="56" height="56" fill="#D1FADF" rx="28"></rect><path fill="#249132" d="m20.3 27.3 5.3 3.7 11-11.6c.2-.2.7-.7 1.5-.2.5.3.5 1 .2 1.4L26.6 36.5c-.2.3-.6.5-1 .5-.5 0-.9-.2-1.1-.5l-5.8-7.9a1 1 0 0 1 .2-1.4c.6-.5 1.1 0 1.4.1Z"></path></svg>':'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" height="56" width="56"><rect width="56" height="56" fill="#FFBB89" rx="28"> </rect><path fill="#A84D0D" d="M37.7 36.3H18.3c-.5 0-1-.3-1.1-.7-.3-.4-.3-1 0-1.4L26.9 17c.2-.4.7-.6 1.1-.6.4 0 .9.2 1 .6l9.8 17.3c.3.4.3 1 0 1.4-.2.4-.6.7-1 .7ZM28 34.5c.7 0 1.3-.6 1.3-1.4 0-.7-.6-1.4-1.3-1.4-.7 0-1.3.7-1.3 1.4 0 .4.2.7.4 1 .2.2.6.4.9.4Zm.8-12.8h-1.6c-.2 0-.3 0-.3.2l-.2.3.4 7.7c0 .3.2.5.4.5h1c.2 0 .4-.2.4-.5l.4-7.7-.1-.3-.4-.2Z"></path></svg>')+"</div>",html+="<h4>HTTPS-Verschlüsselung der Webseite</h4>",html+="</div>"),!1===data.result.reachableCheck.passed&&!0===fakeShopPassed&&(html+='<div class="d-flex a-items-center gap-1">',html+='<div class="">'+(data.result.reachableCheck.passed?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" width="57" height="56"><rect width="56" height="56" fill="#D1FADF" rx="28"></rect><path fill="#249132" d="m20.3 27.3 5.3 3.7 11-11.6c.2-.2.7-.7 1.5-.2.5.3.5 1 .2 1.4L26.6 36.5c-.2.3-.6.5-1 .5-.5 0-.9-.2-1.1-.5l-5.8-7.9a1 1 0 0 1 .2-1.4c.6-.5 1.1 0 1.4.1Z"></path></svg>':'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56" height="56" width="56"><rect width="56" height="56" fill="#FFBB89" rx="28"> </rect><path fill="#A84D0D" d="M37.7 36.3H18.3c-.5 0-1-.3-1.1-.7-.3-.4-.3-1 0-1.4L26.9 17c.2-.4.7-.6 1.1-.6.4 0 .9.2 1 .6l9.8 17.3c.3.4.3 1 0 1.4-.2.4-.6.7-1 .7ZM28 34.5c.7 0 1.3-.6 1.3-1.4 0-.7-.6-1.4-1.3-1.4-.7 0-1.3.7-1.3 1.4 0 .4.2.7.4 1 .2.2.6.4.9.4Zm.8-12.8h-1.6c-.2 0-.3 0-.3.2l-.2.3.4 7.7c0 .3.2.5.4.5h1c.2 0 .4-.2.4-.5l.4-7.7-.1-.3-.4-.2Z"></path></svg>')+"</div>",html+="<h4>Erreichbarkeit der Webseite</h4>",data.result.reachableCheck.message&&(html+="<p>"+data.result.reachableCheck.message+"</p>"),html+="</div>")}data.result.APICheck&&(html+="<h4>API-Check</h4>",html+="<p>Status: "+(data.result.APICheck.passed?"Bestanden":"Nicht bestanden")+"</p>",html+="<p>Nachricht: "+(data.result.APICheck.message||"Keine Nachricht verfügbar")+"</p>",data.result.APICheck.details&&(html+="<p>Shop-Name: "+(data.result.APICheck.details.shopName||"Nicht verfügbar")+"</p>",html+="<p>Shop-URL: "+(data.result.APICheck.details.shopUrl||"Nicht verfügbar")+"</p>",data.result.APICheck.details.shopCategories&&data.result.APICheck.details.shopCategories.length>0&&(html+="<h5>Kategorien:</h5><ul>",data.result.APICheck.details.shopCategories.forEach(function(category){html+="<li>"+(category.name||"Unbenannt")+" (ID: "+(category.id||"N/A")+")</li>"}),html+="</ul>")))}else html+="<p>Keine gültigen Daten von der API erhalten.</p>";container.innerHTML=html,resultContainerWarning.innerHTML=html}(data,fakeShopPassed)}).catch(error=>{loadingIndicator.style.display="none",container.style.display="block",containerSuccess.style.display="none",container.innerHTML='<p class="mb-2">Wir konnten keinen gültigen Link erkennen. Bitte gib die vollständige Shop-URL ein, z. B. www.shop-url.de. </p>\x3c!-- p class="mb-2">Fehler bei der Ãberprüfung: '+error.message+"</p--\x3e"}),async function(shop_url){const endpoint=`/_hcms/api/validateShop?shop_url=${encodeURIComponent(shop_url)}`;try{const response=await fetch(endpoint);if(!response.ok)throw new Error(`Serverless Function Error: ${response.status}`);return(await response.json()).passed}catch(error){return console.error("Validation Check failed:",error),!1}}(shop_url).then(isPassed=>{fakeShopPassed=!!isPassed})}); 2//# sourceURL=https://603347.fs1.hubspotusercontent-na1.net/hubfs/603347/hub_generated/module_assets/1/198868061302/1770715312954/module_content-result-fake-shop.js
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.