1import{a as t,c as d}from"./chunk-HXGZIRAA.js";import{a as C}from"./chunk-2RC6ZNPV.js";import{a as R}from"./chunk-BXLAYWUE.js";import{e as A}from"./chunk-YMZ7VPFJ.js";import{a as _}from"./chunk-6WYTOQUS.js";import"./chunk-SLQQGYBO.js";import{a as p}from"./chunk-EO6T3TXK.js";import"./chunk-W4MADX3M.js";import"./chunk-QESEO7NF.js";import"./chunk-QU34GP6I.js";import{a as o}from"./chunk-X6IOVEKU.js";import"./chunk-ZDLMJVT4.js";import{d as T}from"./chunk-6QKRXUVD.js";var l=434,h=427,u=16,w=l+u,D=61,k=195,H=n=>n*l+(n-1)*u,I=119.667,O=35.333,W=1768.354,L=1815.688,z=.6667,N=20,F=18,M=2,V=39,X=9,G=26,K=7,U="linear-gradient(180deg, rgba(102,102,102,0) 50.1171%, #5A3829 100%)",m=n=>n.title??n.label,E=({dir:n,left:f,onClick:r})=>o(C,{dir:n,onClick:r,style:{...d(f,I,O,O),borderWidth:t(z)},glifo:{width:t(8),height:t(13)}});function j({cards:n,perPage:f=4,listName:r="tend\xEAncias"}){let s=p(0),a=p(!1),i=n?.length??0;if(i===0)return null;let g=Math.max(1,Math.trunc(f)),x=H(g),b=3+Math.ceil(g/i),P=i,y=Array.from({length:b*i},(e,c)=>n[c%i]),S=(P+s.value)*w,v=e=>{a.value=!1,s.value+=e},$=()=>{s.value>=i?(a.value=!0,s.value-=i):s.value<=-i&&(a.value=!0,s.value+=i)};return o(T,{children:[o("div",{class:"overflow-hidden",style:{...d(D,k,x,h)},children:o("ul",{class:R("flex",!a.value&&"transition-transform duration-500 ease-out"),style:{gap:t(u),transform:`translateX(calc(-1 * ${t(S)}))`},onTransitionEnd:$,children:y.map((e,c)=>o("li",{class:"shrink-0",style:{width:t(l)},children:o("a",{href:e.href??"#",onClick:()=>_({name:"select_promotion",params:{promotion_name:m(e)??e.overline??r,creative_name:r,creative_slot:`Slot ${c%i+1}`,promotion_id:e.href??""}}),class:"group relative block overflow-hidden",style:{width:t(l),height:t(h)},children:[e.image&&o(A,{src:e.image,alt:e.alt??m(e)??"",width:l,height:h,class:"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}),o("div",{class:"pointer-events-none absolute inset-0",style:{backgroundImage:U}}),o("div",{class:"flex flex-col",style:{position:"absolute",left:0,bottom:0,width:t(l),padding:t(N)},children:[e.overline&&o("p",{class:"font-gotham uppercase text-redesign-cream/70",style:{minHeight:t(F),paddingTop:t(M),fontWeight:400,fontSize:`min(${t(12)}, 12px)`,lineHeight:`${13.5/12}`,letterSpacing:t(2.7)},children:e.overline}),m(e)&&o("h3",{class:"font-momento font-normal text-white",style:{minHeight:t(V),paddingTop:t(X),fontSize:`min(${t(32)}, 32px)`,lineHeight:`${25/32}`},children:m(e)}),e.description&&o("p",{class:"font-museo text-white/70",style:{minHeight:t(G),paddingTop:t(K),fontWeight:500,fontSize:`min(${t(15)}, 15px)`,lineHeight:`${15.125/15}`},children:e.description})]})]})},c))})}),o(E,{dir:"prev",left:W,onClick:()=>v(-1)}),o(E,{dir:"next",left:L,onClick:()=>v(1)})]})}export{j 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.