1import{d as m,ay as _,c as f,g,n as x,M as p,v as n,f as c,N as b,p as h,i as e,j as y,$ as F,t as r,m as l,F as v}from"./index.16ba4ea0.js";const D=["href","data-ph-capture-attribute-product"],w={class:"aspect-square overflow-hidden bg-[#F6F5F3] shrink-0"},N={key:0,class:"p-2.5"},k={class:"line-clamp-2 h-12 text-zinc-200"},z={class:"text-sm text-zinc-400"},I={class:"font-bold text-blue-500 text-base"},S={class:"flex justify-between items-end mt-1.5"},B={class:"text-4xl lg:text-3xl font-bold text-blue-500"},P={class:"text-lg font-medium text-red-400 line-through"},j={key:1,class:"p-2.5"},C={class:"line-clamp-2 h-12 text-zinc-200"},U={class:"text-sm text-zinc-400"},$={class:"font-bold text-blue-500 text-base"},A={class:"flex justify-between items-end mt-1.5"},O={class:"text-4xl lg:text-3xl font-bold text-blue-500"},T={class:"text-lg font-medium text-red-400 line-through"},L=m({__name:"ProductScroller",props:{products:{},vertical:{type:Boolean},subId:{}},setup(o){const a=o;_();const u=f(()=>{let s=a.products.filter(t=>t.category!=="bundles");return[...a.products.filter(t=>t.category==="bundles"),...s]}),d=s=>{const i=s.discount_original_price?s.discount_original_price:s.price,t=s.price-s.price*.1;return Math.round((i-t)/i*100)};return(s,i)=>(n(),g(p,{gap:"gap-4"},{default:x(()=>[(n(!0),c(v,null,b(u.value,t=>(n(),c("a",{class:h(["bg-zinc-800 rounded-lg overflow-hidden group h-full flex",o.vertical?["flex-row","!h-32","w-80"]:["flex-col","w-52"]]),href:`${t.url}?ref=faptap&utm_source=faptap&utm_medium=affiliate&utm_campaign=The+Handy+Affiliate+program&tap_s=3539267-2a196b&tm_subid1=${o.subId}`,"data-ph-capture-attribute-product":t.name,target:"_blank"},[e("div",w,[y(F,{src:t.image,alt:t.name,class:"object-cover w-full h-full group-hover:scale-105 transition-transform"},null,8,["src","alt"])]),t.discount_original_price?(n(),c("div",N,[e("p",k,r(t.name),1),e("div",z,[i[0]||(i[0]=l("Get ",-1)),e("b",I,r(((1-t.price/t.discount_original_price)*100).toFixed(0))+"% OFF",1)]),e("div",S,[e("p",B,r(Intl.NumberFormat("en-US",{style:"currency",currency:t.currency,minimumFractionDigits:0,maximumFractionDigits:0}).format(t.price)),1),e("p",P,r(Intl.NumberFormat("en-US",{style:"currency",currency:t.currency,minimumFractionDigits:0,maximumFractionDigits:0}).format(t.discount_original_price?t.discount_original_price:t.price)),1)])])):(n(),c("div",j,[e("p",C,r(t.name),1),e("div",U,[e("b",$,r(d(t))+"% OFF",1),i[1]||(i[1]=l(" - Code ",-1)),i[2]||(i[2]=e("b",{class:"font-bold text-blue-500"},"FAPTAP",-1))]),e("div",A,[e("p",O,r(Intl.NumberFormat("en-US",{style:"currency",currency:t.currency,minimumFractionDigits:0,maximumFractionDigits:0}).format(t.price-t.price*.1)),1),e("p",T,r(Intl.NumberFormat("en-US",{style:"currency",currency:t.currency,minimumFractionDigits:0,maximumFractionDigits:0}).format(t.discount_original_price?t.discount_original_price:t.price)),1)])]))],10,D))),256))]),_:1}))}});export{L 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.