1import{aF as p,aD as m,bb as f,bj as g,bQ as _,aM as b,aN as h,bR as v,aY as y}from"./5Ti-0aih.js";const S=p({__name:"TrustedShopsBadge",props:{position:{default:"relative"}},setup(B){const{TRUSTED_SHOPS_ID:c}=m().public,s=f(null),n=[];let o=null;function u(e){return new Promise(t=>document.querySelector(e)?t(document.querySelector(e)):(o=new MutationObserver(()=>{document.querySelector(e)&&(t(document.querySelector(e)),o==null||o.disconnect())}),o.observe(document.body,{childList:!0,subtree:!0}),null))}function d(){var a;const e=document.createElement("script");e.type="text/javascript",e.innerHTML=` 2 _tsConfig = { 3 'yOffset': '0', /* offset from page bottom */ 4 'variant': 'reviews', /* default, reviews, custom, custom_reviews */ 5 'customElementId': '', /* required for variants custom and custom_reviews */ 6 'trustcardDirection': '', /* for custom variants: topRight, topLeft, bottomRight, bottomLeft */ 7 'customBadgeWidth': '', /* for custom variants: 40 - 90 (in pixels) */ 8 'customBadgeHeight': '', /* for custom variants: 40 - 90 (in pixels) */ 9 'disableResponsive': 'false', /* keep responsive behaviour so mobile gets the compact seal */ 10 'disableTrustbadge': 'false' /* deactivate trustbadge */ 11 }; 12 `,document.body.appendChild(e),n.push(e);const t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.src=`//widgets.trustedshops.com/js/${c}.js`;const r=document.getElementsByTagName("script")[0];(a=r.parentNode)==null||a.insertBefore(t,r),n.push(t),u("[id^='trustbadge-container-']").then(()=>{const i=document.querySelector("[id^='trustbadge-container-']");s.value&&i&&s.value.appendChild(i)})}function l(){o==null||o.disconnect(),o=null,n.forEach(e=>e.remove()),n.length=0,document.querySelectorAll("[id^='trustbadge-container-']").forEach(e=>e.remove())}return g(()=>{d()}),_(()=>{l()}),(e,t)=>(h(),b("div",{class:"badge-wrapper",ref_key:"badgeWrapper",ref:s,style:v({position:e.position})},null,4))}}),E=y(S,[["__scopeId","data-v-b5af5f38"]]);export{E as default};
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.