1import{T as n}from"../cb-BRV-8fgY/tooltip.js";import"../cb-BosuxZz1/_commonjsHelpers.js";import"../cb-BB6CaFSU/component-functions.js";const m={overallData:null,comments:null,init:function(){shopData.trustedShopID!==null&&shopData.trustedShopID!=""&&(this.loadData("comment"),this.loadData(""))},loadData:function(s){s=="comment"?axios({method:"GET",url:"/Handler/TrustedShops.ashx?type=comment",dataType:"json"}).then(t=>{try{typeof t.data=="object"&&t.status!=404&&(this.comments=t.data.response.data.shop,this.displayComments())}catch(e){console.log("format error: "+e)}}).catch():axios({method:"GET",url:"/Handler/TrustedShops.ashx",dataType:"json"}).then(t=>{try{typeof t.data=="object"&&t.status!=404&&(this.overallData=t.data.response.data.shop,this.setTooltip())}catch(e){console.log("format error: "+e)}}).catch()},displayComments:function(){const s=document.querySelectorAll(".mcTrustedShopsComments");if(s.length>0&&this.comments!=null){let t="";for(let e of this.comments.reviews)e.markDescription=="EXCELLENT"&&e.comment!=""&&(t+='<div class="splide__slide small">',t+='<p class="text-center text-nowrap">'+this.getStars(e.mark)+"</p>",t+='<p class="text-center text-nowrap rating"><strong class="string">'+shopData.translations.TXT_trustedshops_verygood+"</strong><br>",t+="<strong>"+e.mark+"</strong> / 5.00</p>",t+="<p>"+e.comment+"</p>",t+="</div>");if(t!=""){let e='<div class="p-2 wrapper border">'+this.getHeader()+'<div class="splide" data-mc-slider="trustedshops"><div class="splide__track"><div class="splide__list">'+t+"</div></div></div></div>";[...s].map(a=>a.innerHTML=e);try{window.observerLozadSlider.observe()}catch(a){console.log(a)}}}},setTooltip:function(){var s=0,t,e;try{s=this.overallData.qualityIndicators.reviewIndicator.overallMark,t=this.overallData.qualityIndicators.reviewIndicator.reviewIndicatorPeriodSummary.reviewIndicatorPeriods[0].endDate,e=this.overallData.qualityIndicators.reviewIndicator.activeReviewCount}catch{e=null,s=0}const a=document.querySelector("[data-mc-trustedshops-tt]");if(a!=null&&s>1){let l="";if(this.comments!=null){let i=!1;for(let r of this.comments.reviews)i==!1&&r.markDescription=="EXCELLENT"&&r.comment!=""&&(l=r.comment,i=!0)}let o='<div class="tooltip opacity-100" role="tooltip">';o+='<div class="mcTrustedShopsTTContent bg-white p-1 mcTriangle">',o+=' <div class="wrapper border m-3 p-3">'+this.getHeader(),o+=' <p class="text-center text-nowrap">'+this.getStars(s)+"</p>",o+=' <p class="text-center text-nowrap rating"><strong class="text-uppercase">'+shopData.translations.TXT_trustedshops_verygood+"</strong><br><strong>"+s+"</strong> / 5.00</p>",l!=""&&(o+=' <p class="border-top pt-2 mt-2 mb-2">'+l+"</p>"),o+=' <div class="stats border-top pt-1 d-flex justify-content-between">',t&&(t=t.split("-"),o+='<div class="small me-2">
1Stand: '+t[2]+"."+t[1]+"."+t[0]+"</div>"),e&&(o+='<div class="small">'+e+" Bewert.</div>"),o+=" </div>",o+=" </div>",o+="</div>",o+="</div>",new n(a,{boundary:"window",sanitize:!1,html:!0,placement:"bottom",template:o})}},getHeader:function(){const s=document.querySelector("[data-mc-trustedshops-tt]>img");let t="";return t+='<div class="header d-flex align-items-end border-bottom mb-2 pb-2 mt-n3">',s!=null&&(t+='<div class="me-3 me-lg-2 logo">'+s.outerHTML+"</div>"),t+='<div class="text-truncate flex-grow-1"><strong class="text-uppercase">Trusted Shops</strong><br><small>'+shopData.translations.TXT_trustedshops_feedback+"</small></div>",t+="</div>",t},getStars:function(s){let t="";for(let e=1;e<=5;e++)e<=Math.ceil(s)?t+='<span class="mcIcon mci-star" style="width:18px;height:18px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1792 1792"><path d="M1728 647q0 22-26 48l-363 354 86 500q1 7 1 20 0 21-10.5 35.5T1385 1619q-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5T365 1569q0-6 2-20l86-500L89 695q-25-27-25-48 0-37 56-46l502-73L847 73q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="gold"></path></svg></span>':t+='<span class="mcIcon mci-star-o" style="width:18px;height:18px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1792 1792"><path d="m1201 1004 306-297-422-62-189-382-189 382-422 62 306 297-73 421 378-199 377 199zm527-357q0 22-26 48l-363 354 86 500q1 7 1 20 0 50-41 50-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5T365 1569q0-6 2-20l86-500L89 695q-25-27-25-48 0-37 56-46l502-73L847 73q19-41 49-41t49 41l225 455 502 73q56 9 56 46z" fill="gold"/></svg></span>';return t}};export{m as certTrustedshops};
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.