1import{aA as B,d2 as T,bH as z,c1 as m,b$ as D,aE as u,aU as g,bz as _,aH as o,aJ as s,aG as v,aW as a,c0 as O,aF as H,aI as b,aN as h,aO as S,aM as V,aK as $,a_ as y,aR as q}from"#entry";import{g as E,P as F}from"./BStaws9A.js";import{P as j}from"./BBhnkoC0.js";import{u as A}from"./BxaCydpo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8adc8134-8456-41f4-baf7-fa7a7fe0b892",e._sentryDebugIdIdentifier="sentry-dbid-8adc8134-8456-41f4-baf7-fa7a7fe0b892")}catch{}})();const K={class:"product__image-wrapper"},Q={class:"product__footer"},W={class:"product__name"},G={key:0,class:"product__subtitle"},J={class:"product__price-wrapper"},R=B({__name:"ProductCard",props:{product:{},isFirstOnList:{type:Boolean},listName:{},index:{}},setup(e){const t=e,d=T(),P=z(),k=A(),w=m("productPreview",()=>({})),i=m("launcherContext"),c=y(!1),l=y(!1),x=E(t.product),{imageMain:C,imageMainHover:p}=D(t.product?.images),I=()=>{c.value=!0,l.value||(d.prefetchQuery({queryKey:["product",t.product.slug],queryFn:()=>P.getProduct(t.product.slug,{showLoader:!1}),staleTime:1e3*60}),l.value=!0)},N=n=>{k.selectItem(t.product,t.index??1,t.listName??"All products"),w.value[n.slug]=n},L=()=>{c.value=!1};return(n,r)=>{const f=O,M=$;return u(),g("div",{class:_(["product",{"product--out-of-stock":e.product?.stock==="out_of_stock","larian-app":o(i)}]),onMouseover:I,onMouseleave:L},[s(M,{to:o(i)?`/larian-app/${e.product.slug}`:`/products/${e.product.slug}`,class:"product__card border-focus","prefetch-on":"interaction","aria-label":e.product.name,onClick:r[0]||(r[0]=U=>N(e.product))},{default:v(()=>[a("div",{class:_(["product__badges-wrapper",{"theme-light":!o(c)}])},[s(j,{product:e.product},null,8,["product"])],2),a("div",K,[s(f,{src:o(C),alt:"",class:"product__image",loading:"lazy"},null,8,["src"]),o(p)?(u(),H(f,{key:0,src:o(p),alt:"",class:"product__background",loading:"lazy"},null,8,["src"])):b("",!0),r[1]||(r[1]=a("div",{class:"product__arrow-button"},[a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M1 10h18m0 0-7.364-7M19 10l-7.364 7",stroke:"currentColor","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),a("div",Q,[a("div",W,[e.product.mainTaxon?(u(),g("h3",G,h(e.product.mainTaxon?.name),1)):b("",!0),s(o(S),{level:2,size:4,"is-decor":"",class:"theme-light"},{default:v(()=>[V(h(e.product.name),1)]),_:1})]),a("div",J,[s(F,{"product-prices":o(x)},null,8,["product-prices"])])])]),_:1},8,["to","aria-label"])],34)}}}),te=Object.assign(q(R,[["__scopeId","data-v-c51c8bbc"]]),{__name:"ProductsProductCard"});export{te as P};
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.