
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="917dc245-9f27-5166-a3f9-c6809d6c45a5")}catch(e){}}();
import{a as L}from"/catalogo/build/_shared/chunk-P6QH72AZ.js";import{f as T}from"/catalogo/build/_shared/chunk-JZ4M3CQA.js";import{a as y}from"/catalogo/build/_shared/chunk-XAQ7JAID.js";import{a as n}from"/catalogo/build/_shared/chunk-5GWQXANE.js";import{b as g}from"/catalogo/build/_shared/chunk-TP265FTV.js";import{G as b,S,ja as c,n as h,ua as P}from"/catalogo/build/_shared/chunk-AJNANOPC.js";import{a as C}from"/catalogo/build/_shared/chunk-NKGG5BBE.js";import{e as l}from"/catalogo/build/_shared/chunk-EMG2WQY5.js";var r={productsSlider:"B0zvL",title:"TLl7g",more:"gTT91",header:"MnuZ3",products:"OaNl7",slideItem:"lBRss"};b();var w=l(L()),e=l(C()),I=({id:v,products:N,config:t,log:f,theme:s,localConfig:o,storeMetadata:k})=>{let{t:m}=g(),{pathname:u}=h(),a=[...N||[]],p=({className:i,onClick:d})=>(0,e.jsx)(n,{appearance:"icon",className:i||"",leftIcon:(0,e.jsx)("span",{className:"icon-arrow-right"}),onClick:d,theme:s}),A={arrows:!0,className:`${a.length>=3?"productsSliderInfinite":""} ${a.length===1?"productsSlideCenter":""}`,dots:!1,infinite:a.length>=3,initialSlide:0,slidesToShow:3,slidesToScroll:3,speed:500,variableWidth:!1,prevArrow:(0,e.jsx)(p,{}),nextArrow:(0,e.jsx)(p,{}),responsive:[{breakpoint:768,settings:{arrows:!1,centerPadding:"0.5rem",slidesToShow:1,slidesToScroll:1,variableWidth:!0}},{breakpoint:425,settings:{arrows:!1,centerPadding:"0.5rem",infinite:a.length>=2,slidesToShow:1,slidesToScroll:1,variableWidth:!0}}]},_=t==null?void 0:t.highlight_background,$=()=>{switch(t.filter_type){case"category":return c(u,`categoria/${S((t==null?void 0:t.category)||"")}`);default:return c(u,"todos-los-productos")}};return(0,e.jsx)(y,{className:r.widgetContainer,containerClassName:r.widgetContainerContent,highlight:!!_,children:(0,e.jsxs)("article",{className:r.productsSlider,children:[(0,e.jsxs)("header",{className:r.header,children:[(0,e.jsx)("h2",{className:r.title,children:t.filter_type==="category"?`${t.category_name||t.category}`:t.display_name?t.display_name:m("productsCarousel.title")}),(0,e.jsx)(P,{onClick:f,to:$(),children:(0,e.jsx)(n,{isSecondary:!0,className:r.more,theme:s,children:m("productsCarousel.button")})})]}),(0,e.jsx)("div",{className:r.products,children:(0,e.jsx)(w.default,{...A,children:a==null?void 0:a.map((i,d)=>(0,e.jsx)("div",{className:`${r.slideItem} productsSlideItem`,children:(0,e.jsx)(T,{product:i,withTags:!1,theme:{...s,template:{...s.template,PRODUCT_CARD:"PRODUCT_CARD_3"}},cartProducts:o.cart.cartProducts,addProduct:o.cart.addProduct,manuallyChangeProduct:o.cart.manuallyChangeProduct,removeProduct:o.cart.removeProduct,locale:o.locale,currency:o.currency,storeMetadata:k,caller:"productCarousel"})},`${v}-productsSliderSkin1-${i.id}-${d}-${Math.random()}`))})})]})})},Q=I;export{Q as a};
//# sourceMappingURL=/catalogo/build/_shared/chunk-TZ4VUI3R.js.map

//# debugId=917dc245-9f27-5166-a3f9-c6809d6c45a5
