1import{i as e,n as t}from"./DFKnjcOR.js";import{D as n,E as r,On as i,Zn as a,_ as o,b as s,g as c,k as l,mt as u,o as d,qt as f,tr as p,v as m,vn as h,y as g}from"./B4b-2GOK.js";import{t as _}from"./184eaqFL.js";import{t as v}from"./CgdQ4AwD.js";import{t as y}from"./GC5PPzQz.js";import{n as b,r as x}from"./Vx6h_CGt.js";import{t as S}from"./Czf742BW.js";import{t as C}from"./BVC2y7cb.js";import{t as w}from"./BDTCyVxR.js";import{t as T}from"./BOQBw29x.js";import{t as E}from"./Hd1Rk5dq2.js";import{t as D}from"./BxWDuHU82.js";import{t as O}from"./CONV7lxR2.js";import{t as k}from"./kfHpfDaT2.js";var A={class:`absolute bottom-0 left-0 flex w-full items-end justify-between p-4 lg:p-7`},j={class:`flex flex-col gap-2`},M={class:`flex flex-col-reverse md:flex-row md:items-center md:gap-2.5`},N={class:`flex flex-row items-baseline gap-2 overflow-hidden`},P={key:1,class:`h-6 w-14 animate-pulse rounded-sm bg-current opacity-20`},F=l({__name:`ProductSlideCard`,props:{card:{},topOffset:{}},setup(e){let l=e,{localeProperties:F}=t(),I=e=>w(e,F.value.displayLang,l.card.image.langAvailable,F.value.code)+`.png`,L=c(()=>I(l.card.image.src)),R=c(()=>I(l.card.image.mobileSrc??l.card.image.src+`-mobile`)),z=h(null);O(z,l.topOffset);let{product:B}=S(()=>l.card.handle),{getProductPrice:V,getCompareAtPrice:H}=y(B,()=>l.card.sku),U=c(()=>l.card.handle?B.value&&V.value||null:l.card.price??null),W=c(()=>l.card.handle?B.value?H.value:void 0:l.card.compareAtPrice),G=c(()=>!!(l.card.handle||l.card.price||l.card.compareAtPrice));return(t,c)=>{let l=v,h=_;return u(),s(`div`,{ref_key:`cardRef`,ref:z,class:a([`sticky overflow-hidden rounded-[20px]`,{"bg-linear-to-r from-bg-animal-health to-bg-animal-health-d1":e.card.background===`animal-gradiant`,"bg-black text-white":e.card.background===`black`,"bg-grey-300":e.card.background===`grey`}])},[n(l,{class:`hidden md:block`,src:i(L),alt:t.$t(e.card.image.alt),loading:`lazy`,height:`620`,width:`1280`,format:`webp`},null,8,[`src`,`alt`]),n(l,{class:`md:hidden`,src:i(R),alt:t.$t(e.card.image.alt),loading:`lazy`,height:`1000`,width:`1000`,format:`webp`},null,8,[`src`,`alt`]),o(`div`,A,[o(`div`,j,[e.card.tag?(u(),m(k,{key:0,tag:e.card.tag,class:`mr-auto hidden md:flex`},null,8,[`tag`])):g(``,!0),o(`div`,M,[n(D,{text:e.card.baseline,class:`hidden sm:block`},null,8,[`text`]),n(E,{text:e.card.baseline,class:`block sm:hidden`},null,8,[`text`]),i(G)?(u(),s(d,{key:0},[c[1]||=o(`span`,{class:`hidden h-6 border-l md:block`},null,-1),n(h,null,{fallback:f(()=>[...c[0]||=[o(`div`,{class:`h-6 w-14 rounded-sm bg-current opacity-10`},null,-1)]]),default:f(()=>[o(`div`,N,[i(U)===null?(u(),s(`div`,P)):(u(),m(D,{key:0,class:`font-semibold`},{default:f(()=>[r(p(t.$customCurrency(i(U),`currency`)),1)]),_:1})),i(W)?(u(),m(C,{key:2,class:`font-medium text-grey-500 line-through`},{default:f(()=>[r(p(t.$customCurrency(i(W),`currency`)),1)]),_:1})):g(``,!0)])]),_:1})],64)):g(``,!0)])]),n(T,{class:`hidden md:block`,size:i(b).MEDIUM,keypath:e.card.button.title,url:e.card.button.url,variant:i(x).PRIMARY},null,8,[`size`,`keypath`,`url`,`variant`]),n(T,{class:`block md:hidden`,size:i(b).SMALL,keypath:e.card.button.title,url:e.card.button.url,variant:i(x).PRIMARY},null,8,[`size`,`keypath`,`url`,`variant`])])],2)}}}),I=e({default:()=>L}),L=Object.assign(F,{__name:`CustomsProductSlideCard`});export{I as n,L as t};
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.