1import{_ as t}from"./B_OLg8Ov.js";import{m as r,ah as e,aq as a,a4 as s,O as o,i as c,l,ay as d,a5 as i,h as p,f as u,B as n,aa as m,E as g,F as y,X as x,k as h,e as f}from"./QvumuJSn.js";import{u as b}from"./BGIaSxfl.js";import{_ as k,i as v}from"./XFEeac_W.js";const $={key:0,class:"product-card cursor-pointer teaser-flex-container w-100"},_={key:0,class:"text-font-primary text-small text-color-secondary p-s"},B={class:"product-card-header h-100"},j={class:"product-image-box"},z={class:"pl-s pr-s pt-s pb-0"},I={class:"text-font-primary text-tiny bold"},S={key:0,class:"text-font-primary text-small mt-3xs"},w={key:1,class:"mt-3xs product-goods-icons"},L={key:0,class:"d-inline text-color-error icon-gefahrengut"},G={key:1,class:"d-inline text-color-warning icon-sperrgut"},A={class:"product-card-bottom"},N={class:"pl-s pr-s pt-0 pb-s"},R={key:0},C={class:"text-font-primary text-xsmall bold"},E={key:0,class:"text-font-primary text-xsmall"},F={key:1,class:"text-font-primary text-xsmall mb-2xs"},O={key:1},P={class:"text-font-primary text-xsmall bold"},T={key:2,class:"mt-l mb-l"},U={class:"text-font-primary text-tiny bold"},q=r({__name:"SingleProduct",props:{product:{type:Object,default:()=>{}},type:{type:String,default:""},lazyImageLoading:{type:Boolean,required:!1,default:!1}},setup(r){const q=r,{searchOpen:V,closeSearch:D}=b(),{locale:X}=e(),H=a(),{taxIdentifier:J,showTaxes:K}=s(H),M=f(()=>!0===q.product.genetic),Q=f(()=>q.product.price?.currency.isoCode??"EUR");const W=f(()=>{const t={alt:`${q.product.name} Bild`,class:"grayscale",src:"@/assets/images/bull_default_image.jpg"};if(!q.product._images)return t;if(Array.isArray(q.product._images)&&q.product._images.length>0&&q.product._images[0]){const t=q.product._images[0];if(t.id)return{alt:""===t.alt&&t.meta?t.meta.alt:t.alt||`${q.product.name} Bild`,src:`/_assets/thumbnail?id=${t.id}&thumbnail=product_small`,title:""===t.title?t.meta?.title:t.title,width:t.width,height:t.height,loading:q.lazyImageLoading?"lazy":"eager"};if(t.url)return{alt:t.alt||`${q.product.name} Bild`,src:t.url,loading:q.lazyImageLoading?"lazy":"eager"}}return q.product._images&&"object"==typeof q.product._images&&"url"in q.product._images?{alt:`${q.product.name} Bild`,src:q.product._images.url,loading:q.lazyImageLoading?"lazy":"eager"}:t});return(e,a)=>{const s=t;return r.product?(o(),c("div",$,[l(s,{ref:"searchResult",to:r.product.firstVariantURL?r.product.firstVariantURL:r.product.url,class:"text-left h-100 w-100 p-0 d-flex flex-column"},{default:d(()=>{return[r.type?(o(),c("div",_,i(e.$t("mr.item.type."+r.type)),1)):p("",!0),u("div",B,[u("div",j,[u("img",n(m(W),{onError:a[0]||(a[0]=(...t)=>e.$setFallbackImage&&e.$setFallbackImage(...t))}),null,16),r.product.badge?(o(),c("div",{key:0,class:g("product-badge chip tag-"+r.product.badge.color)},i(r.product.badge.text),3)):p("",!0)]),u("div",z,[u("h3",I,i(r.product.name),1),r.product.erpArticleNumber&&!m(M)?(o(),c("div",S,i(e.$t("shop.product.articleNumber"))+": "+i(r.product.erpArticleNumber),1)):p("",!0),r.product.dangerousGoods||r.product.bulkyGoods?(o(),c("div",w,[r.product.dangerousGoods?(o(),c("i",L)):p("",!0),r.product.bulkyGoods?(o(),c("i",G)):p("",!0)])):p("",!0)])]),u("div",A,[u("div",N,[r.product.price&&r.product.price.rules?(o(),c("div",R,[u("div",C,i(e.$t("shop.product.priceTag"))+" "+i(e.$t("shop.product."+m(J))),1),l(k,{product:r.product},null,8,["product"]),!m(M)&&r.product.price.rules.unitDefinition?(o(),c("div",E,i(e.$t("shop.product.priceBase"))+": "+i(e.$currency((t="basePrice",v(q.product)?q.product.price?.rules[t+J.value]:q.product[t+J.value]),m(Q),m(X)))+" "+i(e.$t("shop.product.priceBase.per"))+" "+i(r.product.price.rules.unitSingle),1)):p("",!0),m(M)?p("",!0):(o(),c("div",F,[(o(!0),c(y,null,x(r.product.price.taxes,(t,r)=>(o(),c("div",{key:r,class:"text-font-primary text-small text-color-secondary"},[u("span",null,i(e.$t("shop.cart.taxShort."+(m(K)?"included":"excluded")))+" "+i(t.rate)+"% "+i(e.$t("shop.cart.taxShort")),1)]))),128)),h(" "+i(e.$t("shop.shippingCost.class.1")),1)]))])):r.product.priceNet&&r.product.priceGross?(o(),c("div",O,[u("div",P,i(e.$t("shop.product.priceTag"))+" "+i(e.$t("shop.product."+(m(K)?"gross":"net"))),1),l(k,{product:r.product,"use-item-price":!1},null,8,["product"])])):(o(),c("div",T,[u("h3",U,i(e.$t("shop.product.hidePrice")),1)]))])])];var t}),_:1},8,["to"]),m(V)?(o(),c("button",{key:0,class:"c-button c-button--filled d-none m-s mt-0",onClick:a[1]||(a[1]=t=>m(D)())},i(e.$t("mr.global.search.closeSearch")),1)):p("",!0)])):p("",!0)}}});
1export{q as _};
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.