@retailrocketgroup/smart-search-68b0588bb1543cb96cbe1d55 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.umd.js +1 -1
- package/package.json +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -97,4 +97,4 @@
|
|
|
97
97
|
</svg>`,spinner:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" height="40" width="40">
|
|
98
98
|
<circle cx="50" cy="50" fill="none" r="40" stroke="currentColor" stroke-width="10" stroke-dasharray="0 0 163.36281798666926 251.32741228718345" stroke-linecap="round" stroke-dashoffset="1"></circle></svg>`,star:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26Z"></path></svg>
|
|
99
99
|
`,subtract:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 11V13H19V11H5Z"></path></svg>
|
|
100
|
-
`},Ty=["data-testid","viewBox","innerHTML"],Iy=ge({__name:"Icon",props:{name:{type:null},testId:{type:String}},setup(e){const t=e,r=me(()=>Eu[t.name].replace(/<svg[^>]*>/i,"").replace(/<\/svg>/i,"")||""),i=me(()=>{const s=Eu[t.name].match(/viewBox="[^"]*"/);return s&&s.length?s[0].split("=")[1].replace(/"/g,""):""});return(s,n)=>(F(),q("svg",{class:"rrg-icon","data-testid":s.testId,viewBox:i.value,xmlns:"http://www.w3.org/2000/svg",innerHTML:r.value},null,8,Ty))}}),Ay=".rrg-icon{fill:currentcolor;height:1em;min-height:1em;min-width:1em;width:1em}",xe=(e,t)=>{const r=e.__vccOpts||e;for(const[i,s]of t)r[i]=s;return r},Fe=xe(Iy,[["styles",[Ay]]]),Py=["data-testid"],Oy=["data-testid","href"],Ly={class:"rrg-product-card__image-wrapper"},$y={key:0,class:"rrg-product-card__preloader"},My=["alt","data-testid"],Ry={class:"rrg-product-card__info"},Fy={class:"rrg-product-card__block-rating"},Ny={key:0,class:"rrg-product-card__rating-wrapper"},Dy=["data-testid"],zy={class:"rrg-product-card__rating-count-star"},By=["data-testid"],Vy=["data-testid"],Hy={class:"rrg-product-card__complement-name"},Uy={class:"rrg-product-card__price-wrapper"},Wy=["data-testid"],Gy=["data-testid"],jy={key:0,class:"rrg-product-card__counter-colors"},Yy=["data-testid"],Ky={key:2,class:"rrg-product-card__spaser-mobile"},Xy=496,qy=496,Zo=xe(ge({__name:"ProductCard",props:{currencySymbol:{type:String},groupSizes:{type:Array},href:{type:String},id:{type:Number},image:{type:String},inWishlist:{type:Boolean},name:{type:String},oldPrice:{type:Number},price:{type:Number},productsParams:{type:Array},quantity:{type:Number},rating:{type:Number},reviewsCount:{type:Number},showRating:{type:Boolean},testId:{type:String}},emits:["clickOnProduct","addToCart","removeFromCart","addToWishlist","removeFromWishlist"],setup(e,{emit:t}){const r=e,i=t,s=De({isLoading:!0,showSizes:!1}),{t:n}=nt({messages:{en:{discount:"discount",size:"Select size"},es:{discount:"de descuento",size:"Seleccionar talla"}}}),o=`https://cdnimg.retailrocket.net/api/1.0/partner/68b0588bb1543cb96cbe1d55/item/${r.id}/picture/?format=jpg&width=${Xy}&height=${qy}&scale=both`,a=r.name.split("Talla")[0].trim(),l=Cu(r.productsParams),{getTestId:c}=Be(r.testId),{locale:d}=nt(),p=me(()=>r.oldPrice>r.price),u=me(()=>p.value?Math.round(100-r.price/r.oldPrice*100):0);function m(){i("clickOnProduct")}function f(){s.isLoading=!1}function b(g){return qo(g,r.currencySymbol,d.value)}function y(g){return new Intl.NumberFormat("en").format(g)}return(g,h)=>(F(),q("div",{class:"rrg-product-card","data-testid":g.testId},[z("a",{class:"rrg-product-card__link","data-testid":H(c)("link"),href:g.href,onPointerdown:m},[z("div",Ly,[s.isLoading?(F(),q("div",$y)):oe("",!0),h[0]||(h[0]=z("div",{class:"swiper-lazy-preloader"},null,-1)),z("img",{alt:H(a),class:Ne(["rrg-product-card__image",{"rrg-product-card__image--loading":s.isLoading}]),"data-testid":H(c)("image"),loading:"lazy",src:o,onLoad:f},null,42,My)]),z("div",Ry,[z("div",Fy,[g.showRating?(F(),q("div",Ny,[z("div",{class:"rrg-product-card__rating","data-testid":H(c)("rating")},[(F(!0),q(ve,null,He(Math.round(+g.rating),v=>(F(),de(Fe,{key:`filled-${v}`,class:"rrg-product-card__rating-icon",name:"star"}))),128)),(F(!0),q(ve,null,He(5-Math.round(+g.rating),v=>(F(),de(Fe,{key:`empty-${v}`,class:"rrg-product-card__rating-icon--grey",name:"star"}))),128)),z("span",zy,ne(Math.round(+g.rating))+".0 ",1)],8,Dy),g.reviewsCount?(F(),q("div",{key:0,class:"rrg-product-card__reviews-count","data-testid":H(c)("reviewsCount")}," ("+ne(y(g.reviewsCount))+") ",9,By)):oe("",!0)])):oe("",!0)]),z("div",{class:"rrg-product-card__name","data-testid":H(c)("name")},ne(H(a)),9,Vy),z("div",Hy,ne(H(l).complementName),1),z("div",Uy,[p.value?(F(),q("span",{key:0,class:"rrg-product-card__old-price","data-testid":H(c)("oldPrice")},ne(b(g.oldPrice)),9,Wy)):oe("",!0),z("span",{class:"rrg-product-card__price","data-testid":H(c)("price")},ne(b(g.price)),9,Gy)]),H(l).colors?(F(),q("div",jy,ne(H(l).colors)+" "+ne(+H(l).colors>1?"Colores":"Color"),1)):oe("",!0),u.value?(F(),q("div",{key:1,class:"rrg-product-card__discount-percentage","data-testid":H(c)("discountPercentage")},ne(u.value)+"% "+ne(H(n)("discount")),9,Yy)):(F(),q("div",Ky))])],40,Oy)],8,Py))}}),[["styles",["@-webkit-keyframes spin{0%{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0)}to{-webkit-transform:translate(-50%,-50%) rotate(360deg);transform:translate(-50%,-50%) rotate(360deg)}}@keyframes spin{0%{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0)}to{-webkit-transform:translate(-50%,-50%) rotate(360deg);transform:translate(-50%,-50%) rotate(360deg)}}.rrg-product-card{background:#fff;border-radius:5px 5px 0 0;display:grid;gap:12px;grid-template-rows:1fr;padding:6px 10px 0;position:relative;text-decoration:none;width:100%}.rrg-product-card:hover{-webkit-filter:drop-shadow(0 4px 30px rgb(0 0 0 / 20%));filter:drop-shadow(0 4px 30px rgb(0 0 0 / 20%));z-index:2}@media (width < 1026px){.rrg-product-card:hover{-webkit-filter:none;filter:none}}@media (width < 1026px){.rrg-product-card{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}}@media (width < 481px){.rrg-product-card{-webkit-box-shadow:0 2px 6px 0 rgb(0 0 0 / 8%);box-shadow:0 2px 6px #00000014;gap:0;padding:0}}.rrg-product-card .swiper-lazy-preloader{-webkit-animation:none!important;animation:none!important;background-color:#f5f5f5;border:none;border-radius:unset;display:none;height:100%;left:0;margin:0;position:absolute;top:0;width:100%;z-index:0}.rrg-product-card__link{color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;outline:none;text-decoration:none;width:100%}.rrg-product-card__image-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:50%;position:relative;width:100%}.rrg-product-card__image{aspect-ratio:1/1;height:100%;left:0;max-width:100%;-o-object-fit:contain;object-fit:contain;opacity:1;position:absolute;top:0;width:100%}@media (width <= 1025px){.rrg-product-card__image{left:50%;max-width:450px;-webkit-transform:translateX(-50%);transform:translate(-50%)}}.rrg-product-card__image--loading{opacity:0}.rrg-product-card__preloader{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.rrg-product-card__discount-percentage{color:#128a09;font-size:1rem;font-weight:600}@media (width < 481px){.rrg-product-card__discount-percentage{font-size:13px;height:15px}}@media (width < 481px){.rrg-product-card__spaser-mobile{height:15px}}.rrg-product-card__block-rating{height:20px}.rrg-product-card__rating-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;width:auto}.rrg-product-card__rating{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;color:#111;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;font-weight:500;gap:8px;line-height:1;width:auto}.rrg-product-card__rating-icon--grey{color:#ccc}.rrg-product-card__rating-count-star{font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:19.5px}.rrg-product-card__reviews-count{color:#111;font-size:14px;font-weight:400;line-height:1}.rrg-product-card__info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;gap:12px;padding-bottom:1.5rem}@media (width < 481px){.rrg-product-card__info{gap:4px;padding:0 0 0 10px}}.rrg-product-card__name{-webkit-box-orient:vertical;color:#111;display:-webkit-box;font-size:16px;font-weight:500;-webkit-line-clamp:1;line-clamp:1;line-height:1.15;overflow:hidden;text-overflow:ellipsis}@media (width < 481px){.rrg-product-card__name{font-size:14px;line-height:20px}}.rrg-product-card__complement-name{color:#757575;display:-webkit-box;font-size:1rem;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}@media (width < 481px){.rrg-product-card__complement-name{font-size:12px;line-height:14px}}.rrg-product-card__price-wrapper{-webkit-box-align:end;-ms-flex-align:end;align-items:end;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;gap:8px;line-height:1;margin-top:auto;width:auto}@media (width < 481px){.rrg-product-card__price-wrapper{font-size:14px;line-height:16px}}.rrg-product-card__price{font-weight:600}.rrg-product-card__old-price{-webkit-box-orient:vertical;color:#757575;display:-webkit-box;font-weight:500;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-decoration:line-through;text-overflow:ellipsis}.rrg-product-card__counter-colors{color:#757575;font-size:1rem}@media (width < 481px){.rrg-product-card__counter-colors{font-size:12px;line-height:14px}}"]]]);function Jo(e,t,r,i){return e.params.createElements&&Object.keys(i).forEach(s=>{if(!r[s]&&r.auto===!0){let n=qt(e.el,`.${i[s]}`)[0];n||(n=qi("div",i[s]),n.className=i[s],e.el.append(n)),r[s]=n,t[s]=n}}),r}function Zy(e){let{swiper:t,extendParams:r,on:i,emit:s}=e;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function n(f){let b;return f&&typeof f=="string"&&t.isElement&&(b=t.el.querySelector(f)||t.hostEl.querySelector(f),b)?b:(f&&(typeof f=="string"&&(b=[...document.querySelectorAll(f)]),t.params.uniqueNavElements&&typeof f=="string"&&b&&b.length>1&&t.el.querySelectorAll(f).length===1?b=t.el.querySelector(f):b&&b.length===1&&(b=b[0])),f&&!b?f:b)}function o(f,b){const y=t.params.navigation;f=Ze(f),f.forEach(g=>{g&&(g.classList[b?"add":"remove"](...y.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=b),t.params.watchOverflow&&t.enabled&&g.classList[t.isLocked?"add":"remove"](y.lockClass))})}function a(){const{nextEl:f,prevEl:b}=t.navigation;if(t.params.loop){o(b,!1),o(f,!1);return}o(b,t.isBeginning&&!t.params.rewind),o(f,t.isEnd&&!t.params.rewind)}function l(f){f.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(f){f.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function d(){const f=t.params.navigation;if(t.params.navigation=Jo(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let b=n(f.nextEl),y=n(f.prevEl);Object.assign(t.navigation,{nextEl:b,prevEl:y}),b=Ze(b),y=Ze(y);const g=(h,v)=>{h&&h.addEventListener("click",v==="next"?c:l),!t.enabled&&h&&h.classList.add(...f.lockClass.split(" "))};b.forEach(h=>g(h,"next")),y.forEach(h=>g(h,"prev"))}function p(){let{nextEl:f,prevEl:b}=t.navigation;f=Ze(f),b=Ze(b);const y=(g,h)=>{g.removeEventListener("click",h==="next"?c:l),g.classList.remove(...t.params.navigation.disabledClass.split(" "))};f.forEach(g=>y(g,"next")),b.forEach(g=>y(g,"prev"))}i("init",()=>{t.params.navigation.enabled===!1?m():(d(),a())}),i("toEdge fromEdge lock unlock",()=>{a()}),i("destroy",()=>{p()}),i("enable disable",()=>{let{nextEl:f,prevEl:b}=t.navigation;if(f=Ze(f),b=Ze(b),t.enabled){a();return}[...f,...b].filter(y=>!!y).forEach(y=>y.classList.add(t.params.navigation.lockClass))}),i("click",(f,b)=>{let{nextEl:y,prevEl:g}=t.navigation;y=Ze(y),g=Ze(g);const h=b.target;let v=g.includes(h)||y.includes(h);if(t.isElement&&!v){const w=b.path||b.composedPath&&b.composedPath();w&&(v=w.find(C=>y.includes(C)||g.includes(C)))}if(t.params.navigation.hideOnClick&&!v){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===h||t.pagination.el.contains(h)))return;let w;y.length?w=y[0].classList.contains(t.params.navigation.hiddenClass):g.length&&(w=g[0].classList.contains(t.params.navigation.hiddenClass)),s(w===!0?"navigationShow":"navigationHide"),[...y,...g].filter(C=>!!C).forEach(C=>C.classList.toggle(t.params.navigation.hiddenClass))}});const u=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},m=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:u,disable:m,update:a,init:d,destroy:p})}function fi(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function Jy(e){let{swiper:t,extendParams:r,on:i,emit:s}=e;const n="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:h=>h,formatFractionTotal:h=>h,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),t.pagination={el:null,bullets:[]};let o,a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(h,v){const{bulletActiveClass:w}=t.params.pagination;h&&(h=h[`${v==="prev"?"previous":"next"}ElementSibling`],h&&(h.classList.add(`${w}-${v}`),h=h[`${v==="prev"?"previous":"next"}ElementSibling`],h&&h.classList.add(`${w}-${v}-${v}`)))}function d(h,v,w){if(h=h%w,v=v%w,v===h+1)return"next";if(v===h-1)return"previous"}function p(h){const v=h.target.closest(fi(t.params.pagination.bulletClass));if(!v)return;h.preventDefault();const w=Zn(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===w)return;const C=d(t.realIndex,w,t.slides.length);C==="next"?t.slideNext():C==="previous"?t.slidePrev():t.slideToLoop(w)}else t.slideTo(w)}function u(){const h=t.rtl,v=t.params.pagination;if(l())return;let w=t.pagination.el;w=Ze(w);let C,k;const E=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,O=t.params.loop?Math.ceil(E/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(k=t.previousRealIndex||0,C=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(C=t.snapIndex,k=t.previousSnapIndex):(k=t.previousIndex||0,C=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const I=t.pagination.bullets;let M,U,$;if(v.dynamicBullets&&(o=Do(I[0],t.isHorizontal()?"width":"height"),w.forEach(G=>{G.style[t.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&k!==void 0&&(a+=C-(k||0),a>v.dynamicMainBullets-1?a=v.dynamicMainBullets-1:a<0&&(a=0)),M=Math.max(C-a,0),U=M+(Math.min(I.length,v.dynamicMainBullets)-1),$=(U+M)/2),I.forEach(G=>{const N=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(j=>`${v.bulletActiveClass}${j}`)].map(j=>typeof j=="string"&&j.includes(" ")?j.split(" "):j).flat();G.classList.remove(...N)}),w.length>1)I.forEach(G=>{const N=Zn(G);N===C?G.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&G.setAttribute("part","bullet"),v.dynamicBullets&&(N>=M&&N<=U&&G.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),N===M&&c(G,"prev"),N===U&&c(G,"next"))});else{const G=I[C];if(G&&G.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&I.forEach((N,j)=>{N.setAttribute("part",j===C?"bullet-active":"bullet")}),v.dynamicBullets){const N=I[M],j=I[U];for(let V=M;V<=U;V+=1)I[V]&&I[V].classList.add(...`${v.bulletActiveClass}-main`.split(" "));c(N,"prev"),c(j,"next")}}if(v.dynamicBullets){const G=Math.min(I.length,v.dynamicMainBullets+4),N=(o*G-o)/2-$*o,j=h?"right":"left";I.forEach(V=>{V.style[t.isHorizontal()?j:"top"]=`${N}px`})}}w.forEach((I,M)=>{if(v.type==="fraction"&&(I.querySelectorAll(fi(v.currentClass)).forEach(U=>{U.textContent=v.formatFractionCurrent(C+1)}),I.querySelectorAll(fi(v.totalClass)).forEach(U=>{U.textContent=v.formatFractionTotal(O)})),v.type==="progressbar"){let U;v.progressbarOpposite?U=t.isHorizontal()?"vertical":"horizontal":U=t.isHorizontal()?"horizontal":"vertical";const $=(C+1)/O;let G=1,N=1;U==="horizontal"?G=$:N=$,I.querySelectorAll(fi(v.progressbarFillClass)).forEach(j=>{j.style.transform=`translate3d(0,0,0) scaleX(${G}) scaleY(${N})`,j.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(Jn(I,v.renderCustom(t,C+1,O)),M===0&&s("paginationRender",I)):(M===0&&s("paginationRender",I),s("paginationUpdate",I)),t.params.watchOverflow&&t.enabled&&I.classList[t.isLocked?"add":"remove"](v.lockClass)})}function m(){const h=t.params.pagination;if(l())return;const v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let w=t.pagination.el;w=Ze(w);let C="";if(h.type==="bullets"){let k=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&k>v&&(k=v);for(let E=0;E<k;E+=1)h.renderBullet?C+=h.renderBullet.call(t,E,h.bulletClass):C+=`<${h.bulletElement} ${t.isElement?'part="bullet"':""} class="${h.bulletClass}"></${h.bulletElement}>`}h.type==="fraction"&&(h.renderFraction?C=h.renderFraction.call(t,h.currentClass,h.totalClass):C=`<span class="${h.currentClass}"></span> / <span class="${h.totalClass}"></span>`),h.type==="progressbar"&&(h.renderProgressbar?C=h.renderProgressbar.call(t,h.progressbarFillClass):C=`<span class="${h.progressbarFillClass}"></span>`),t.pagination.bullets=[],w.forEach(k=>{h.type!=="custom"&&Jn(k,C||""),h.type==="bullets"&&t.pagination.bullets.push(...k.querySelectorAll(fi(h.bulletClass)))}),h.type!=="custom"&&s("paginationRender",w[0])}function f(){t.params.pagination=Jo(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const h=t.params.pagination;if(!h.el)return;let v;typeof h.el=="string"&&t.isElement&&(v=t.el.querySelector(h.el)),!v&&typeof h.el=="string"&&(v=[...document.querySelectorAll(h.el)]),v||(v=h.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof h.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(h.el)],v.length>1&&(v=v.find(w=>lu(w,".swiper")[0]===t.el))),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=Ze(v),v.forEach(w=>{h.type==="bullets"&&h.clickable&&w.classList.add(...(h.clickableClass||"").split(" ")),w.classList.add(h.modifierClass+h.type),w.classList.add(t.isHorizontal()?h.horizontalClass:h.verticalClass),h.type==="bullets"&&h.dynamicBullets&&(w.classList.add(`${h.modifierClass}${h.type}-dynamic`),a=0,h.dynamicMainBullets<1&&(h.dynamicMainBullets=1)),h.type==="progressbar"&&h.progressbarOpposite&&w.classList.add(h.progressbarOppositeClass),h.clickable&&w.addEventListener("click",p),t.enabled||w.classList.add(h.lockClass)}))}function b(){const h=t.params.pagination;if(l())return;let v=t.pagination.el;v&&(v=Ze(v),v.forEach(w=>{w.classList.remove(h.hiddenClass),w.classList.remove(h.modifierClass+h.type),w.classList.remove(t.isHorizontal()?h.horizontalClass:h.verticalClass),h.clickable&&(w.classList.remove(...(h.clickableClass||"").split(" ")),w.removeEventListener("click",p))})),t.pagination.bullets&&t.pagination.bullets.forEach(w=>w.classList.remove(...h.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const h=t.params.pagination;let{el:v}=t.pagination;v=Ze(v),v.forEach(w=>{w.classList.remove(h.horizontalClass,h.verticalClass),w.classList.add(t.isHorizontal()?h.horizontalClass:h.verticalClass)})}),i("init",()=>{t.params.pagination.enabled===!1?g():(f(),m(),u())}),i("activeIndexChange",()=>{typeof t.snapIndex>"u"&&u()}),i("snapIndexChange",()=>{u()}),i("snapGridLengthChange",()=>{m(),u()}),i("destroy",()=>{b()}),i("enable disable",()=>{let{el:h}=t.pagination;h&&(h=Ze(h),h.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{u()}),i("click",(h,v)=>{const w=v.target,C=Ze(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&C&&C.length>0&&!w.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&w===t.navigation.nextEl||t.navigation.prevEl&&w===t.navigation.prevEl))return;const k=C[0].classList.contains(t.params.pagination.hiddenClass);s(k===!0?"paginationShow":"paginationHide"),C.forEach(E=>E.classList.toggle(t.params.pagination.hiddenClass))}});const y=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:h}=t.pagination;h&&(h=Ze(h),h.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),f(),m(),u()},g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:h}=t.pagination;h&&(h=Ze(h),h.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),b()};Object.assign(t.pagination,{enable:y,disable:g,render:m,update:u,init:f,destroy:b})}function Qy(e){let{swiper:t,extendParams:r,on:i,emit:s}=e;const n=Pt();let o=!1,a=null,l=null,c,d,p,u;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null};function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:$,rtlTranslate:G}=t,{dragEl:N,el:j}=$,V=t.params.scrollbar,te=t.params.loop?t.progressLoop:t.progress;let Z=d,re=(p-d)*te;G?(re=-re,re>0?(Z=d-re,re=0):-re+d>p&&(Z=p+re)):re<0?(Z=d+re,re=0):re+d>p&&(Z=p-re),t.isHorizontal()?(N.style.transform=`translate3d(${re}px, 0, 0)`,N.style.width=`${Z}px`):(N.style.transform=`translate3d(0px, ${re}px, 0)`,N.style.height=`${Z}px`),V.hide&&(clearTimeout(a),j.style.opacity=1,a=setTimeout(()=>{j.style.opacity=0,j.style.transitionDuration="400ms"},1e3))}function f($){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${$}ms`)}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:$}=t,{dragEl:G,el:N}=$;G.style.width="",G.style.height="",p=t.isHorizontal()?N.offsetWidth:N.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?d=p*u:d=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?G.style.width=`${d}px`:G.style.height=`${d}px`,u>=1?N.style.display="none":N.style.display="",t.params.scrollbar.hide&&(N.style.opacity=0),t.params.watchOverflow&&t.enabled&&$.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y($){return t.isHorizontal()?$.clientX:$.clientY}function g($){const{scrollbar:G,rtlTranslate:N}=t,{el:j}=G;let V;V=(y($)-a_(j)[t.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(p-d),V=Math.max(Math.min(V,1),0),N&&(V=1-V);const te=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*V;t.updateProgress(te),t.setTranslate(te),t.updateActiveIndex(),t.updateSlidesClasses()}function h($){const G=t.params.scrollbar,{scrollbar:N,wrapperEl:j}=t,{el:V,dragEl:te}=N;o=!0,c=$.target===te?y($)-$.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,$.preventDefault(),$.stopPropagation(),j.style.transitionDuration="100ms",te.style.transitionDuration="100ms",g($),clearTimeout(l),V.style.transitionDuration="0ms",G.hide&&(V.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",$)}function v($){const{scrollbar:G,wrapperEl:N}=t,{el:j,dragEl:V}=G;o&&($.preventDefault&&$.cancelable?$.preventDefault():$.returnValue=!1,g($),N.style.transitionDuration="0ms",j.style.transitionDuration="0ms",V.style.transitionDuration="0ms",s("scrollbarDragMove",$))}function w($){const G=t.params.scrollbar,{scrollbar:N,wrapperEl:j}=t,{el:V}=N;o&&(o=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",j.style.transitionDuration=""),G.hide&&(clearTimeout(l),l=No(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",$),G.snapOnRelease&&t.slideToClosest())}function C($){const{scrollbar:G,params:N}=t,j=G.el;if(!j)return;const V=j,te=N.passiveListeners?{passive:!1,capture:!1}:!1,Z=N.passiveListeners?{passive:!0,capture:!1}:!1;if(!V)return;const re=$==="on"?"addEventListener":"removeEventListener";V[re]("pointerdown",h,te),n[re]("pointermove",v,te),n[re]("pointerup",w,Z)}function k(){!t.params.scrollbar.el||!t.scrollbar.el||C("on")}function E(){!t.params.scrollbar.el||!t.scrollbar.el||C("off")}function O(){const{scrollbar:$,el:G}=t;t.params.scrollbar=Jo(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const N=t.params.scrollbar;if(!N.el)return;let j;if(typeof N.el=="string"&&t.isElement&&(j=t.el.querySelector(N.el)),!j&&typeof N.el=="string"){if(j=n.querySelectorAll(N.el),!j.length)return}else j||(j=N.el);t.params.uniqueNavElements&&typeof N.el=="string"&&j.length>1&&G.querySelectorAll(N.el).length===1&&(j=G.querySelector(N.el)),j.length>0&&(j=j[0]),j.classList.add(t.isHorizontal()?N.horizontalClass:N.verticalClass);let V;j&&(V=j.querySelector(fi(t.params.scrollbar.dragClass)),V||(V=qi("div",t.params.scrollbar.dragClass),j.append(V))),Object.assign($,{el:j,dragEl:V}),N.draggable&&k(),j&&j.classList[t.enabled?"remove":"add"](...$r(t.params.scrollbar.lockClass))}function I(){const $=t.params.scrollbar,G=t.scrollbar.el;G&&G.classList.remove(...$r(t.isHorizontal()?$.horizontalClass:$.verticalClass)),E()}i("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const $=t.params.scrollbar;let{el:G}=t.scrollbar;G=Ze(G),G.forEach(N=>{N.classList.remove($.horizontalClass,$.verticalClass),N.classList.add(t.isHorizontal()?$.horizontalClass:$.verticalClass)})}),i("init",()=>{t.params.scrollbar.enabled===!1?U():(O(),b(),m())}),i("update resize observerUpdate lock unlock changeDirection",()=>{b()}),i("setTranslate",()=>{m()}),i("setTransition",($,G)=>{f(G)}),i("enable disable",()=>{const{el:$}=t.scrollbar;$&&$.classList[t.enabled?"remove":"add"](...$r(t.params.scrollbar.lockClass))}),i("destroy",()=>{I()});const M=()=>{t.el.classList.remove(...$r(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...$r(t.params.scrollbar.scrollbarDisabledClass)),O(),b(),m()},U=()=>{t.el.classList.add(...$r(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...$r(t.params.scrollbar.scrollbarDisabledClass)),I()};Object.assign(t.scrollbar,{enable:M,disable:U,updateSize:b,setTranslate:m,init:O,destroy:I})}function e1(e){let{swiper:t,extendParams:r,on:i,emit:s,params:n}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=n&&n.autoplay?n.autoplay.delay:3e3,c=n&&n.autoplay?n.autoplay.delay:3e3,d,p=new Date().getTime(),u,m,f,b,y,g,h;function v(Z){!t||t.destroyed||!t.wrapperEl||Z.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!(h||Z.detail&&Z.detail.bySwiperTouchMove)&&M())}const w=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?u=!0:u&&(c=d,u=!1);const Z=t.autoplay.paused?d:p+c-new Date().getTime();t.autoplay.timeLeft=Z,s("autoplayTimeLeft",Z,Z/l),a=requestAnimationFrame(()=>{w()})},C=()=>{let Z;return t.virtual&&t.params.virtual.enabled?Z=t.slides.find(S=>S.classList.contains("swiper-slide-active")):Z=t.slides[t.activeIndex],Z?parseInt(Z.getAttribute("data-swiper-autoplay"),10):void 0},k=Z=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),w();let re=typeof Z>"u"?t.params.autoplay.delay:Z;l=t.params.autoplay.delay,c=t.params.autoplay.delay;const S=C();!Number.isNaN(S)&&S>0&&typeof Z>"u"&&(re=S,l=S,c=S),d=re;const Q=t.params.speed,ae=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(Q,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,Q,!0,!0),s("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(Q,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,Q,!0,!0),s("autoplay")),t.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return re>0?(clearTimeout(o),o=setTimeout(()=>{ae()},re)):requestAnimationFrame(()=>{ae()}),re},E=()=>{p=new Date().getTime(),t.autoplay.running=!0,k(),s("autoplayStart")},O=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),s("autoplayStop")},I=(Z,re)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),Z||(g=!0);const S=()=>{s("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):M()};if(t.autoplay.paused=!0,re){y&&(d=t.params.autoplay.delay),y=!1,S();return}d=(d||t.params.autoplay.delay)-(new Date().getTime()-p),!(t.isEnd&&d<0&&!t.params.loop)&&(d<0&&(d=0),S())},M=()=>{t.isEnd&&d<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(p=new Date().getTime(),g?(g=!1,k(d)):k(),t.autoplay.paused=!1,s("autoplayResume"))},U=()=>{if(t.destroyed||!t.autoplay.running)return;const Z=Pt();Z.visibilityState==="hidden"&&(g=!0,I(!0)),Z.visibilityState==="visible"&&M()},$=Z=>{Z.pointerType==="mouse"&&(g=!0,h=!0,!(t.animating||t.autoplay.paused)&&I(!0))},G=Z=>{Z.pointerType==="mouse"&&(h=!1,t.autoplay.paused&&M())},N=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",$),t.el.addEventListener("pointerleave",G))},j=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",$),t.el.removeEventListener("pointerleave",G))},V=()=>{Pt().addEventListener("visibilitychange",U)},te=()=>{Pt().removeEventListener("visibilitychange",U)};i("init",()=>{t.params.autoplay.enabled&&(N(),V(),E())}),i("destroy",()=>{j(),te(),t.autoplay.running&&O()}),i("_freeModeStaticRelease",()=>{(f||g)&&M()}),i("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?O():I(!0,!0)}),i("beforeTransitionStart",(Z,re,S)=>{t.destroyed||!t.autoplay.running||(S||!t.params.autoplay.disableOnInteraction?I(!0,!0):O())}),i("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){O();return}m=!0,f=!1,g=!1,b=setTimeout(()=>{g=!0,f=!0,I(!0)},200)}}),i("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!m)){if(clearTimeout(b),clearTimeout(o),t.params.autoplay.disableOnInteraction){f=!1,m=!1;return}f&&t.params.cssMode&&M(),f=!1,m=!1}}),i("slideChange",()=>{t.destroyed||!t.autoplay.running||(y=!0)}),Object.assign(t.autoplay,{start:E,stop:O,pause:I,resume:M})}const t1={class:"rrs-swiper"},r1={class:"rrs-swiper__wrap-swiper"},i1=["data-testid"],n1=["data-testid"],Tu=xe(ge({__name:"Swiper",props:{config:{type:Object},testId:{type:String}},setup(e){const t=e,{getTestId:r}=Be(t.testId),i=[Zy,e1,Jy,Qy],s=le(),n=le(null),o=le(null),a=le(null),l=le(null),c={nextEl:o.value,prevEl:n.value};function d(){}function p(m){s.value=m}Ke([n,o],([m,f])=>{m&&f&&s.value&&(c.nextEl=f,c.prevEl=m,s.value.navigation.update())});function u(){s.value?.update()}return Tt(()=>{window.addEventListener("resize",u)}),Gt(()=>{window.removeEventListener("resize",u)}),(m,f)=>(F(),q("div",t1,[z("div",r1,[se(H(Cy),Ol({class:"rrs-swiper__rrs-swiper","data-testid":H(r)("swiper"),modules:i,navigation:c,"observe-parents":!0,observer:!0,pagination:{el:a.value,clickable:!0},scrollbar:{el:l.value,draggable:!0},"touch-release-on-edges":!0,"update-on-window-resize":!0,"watch-overflow":!0,"watch-slides-progress":!0},m.config,{onSlideChange:d,onSwiper:p}),{default:Ve(()=>[sr(m.$slots,"default")]),_:3},16,["data-testid","pagination","scrollbar"]),z("div",{ref_key:"paginationRef",ref:a,class:"rrs-swiper-pagination"},null,512)]),z("div",{ref_key:"scrollbarRef",ref:l,class:"rrs-swiper-scrollbar"},null,512),z("div",{ref_key:"prev",ref:n,class:"rrs-swiper__arrow rrs-swiper__arrow-prev","data-testid":H(r)("arrow-prev")},[se(Fe,{name:"arrowLeft"})],8,i1),z("div",{ref_key:"next",ref:o,class:"rrs-swiper__arrow rrs-swiper__arrow-next","data-testid":H(r)("arrow-next")},[se(Fe,{name:"arrowRight"})],8,n1)]))}}),[["styles",['@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px,0,0);transform:translateZ(0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";-ms-flex-negative:0;flex-shrink:0;-webkit-box-ordinal-group:10000;-ms-flex-order:9999;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-webkit-transform-origin:center;transform-origin:center}.swiper-rtl .swiper-button-prev svg,.swiper-rtl .swiper-button-next svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-lock{display:none}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s opacity;transition:.3s opacity;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px,-50%,0);transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:.2s top,.2s -webkit-transform;transition:.2s top,.2s -webkit-transform;transition:.2s transform,.2s top;transition:.2s transform,.2s top,.2s -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s left,.2s -webkit-transform;transition:.2s left,.2s -webkit-transform;transition:.2s transform,.2s left;transition:.2s transform,.2s left,.2s -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s right,.2s -webkit-transform;transition:.2s right,.2s -webkit-transform;transition:.2s transform,.2s right;transition:.2s transform,.2s right,.2s -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move;-ms-touch-action:none;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{-webkit-transform-origin:100% 0;transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;inset:0;-webkit-filter:blur(50px);filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;-webkit-transition-property:opacity,height,-webkit-transform;transition-property:opacity,height,-webkit-transform;transition-property:transform,opacity,height;transition-property:transform,opacity,height,-webkit-transform}.swiper.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}',".rrs-swiper{position:relative;width:100%}.rrs-swiper__rrs-swiper{width:100%}.rrs-swiper__arrow{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#b7b7b7;border-radius:50%;bottom:calc(100% - 73px);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:28px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:40px;max-width:40px;min-height:40px;min-width:40px;position:absolute;top:153px;-webkit-transition:background .3s;transition:background .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}@media (width <= 1025px){.rrs-swiper__arrow{display:none}}.rrs-swiper__arrow .rrs-icon{fill:#000;-webkit-transition:fill .3s;transition:fill .3s}.rrs-swiper__arrow-prev{right:55px;-webkit-transform:translate(0,-50%);transform:translateY(-50%)}.rrs-swiper__arrow-next{right:0;-webkit-transform:translate(0,-50%);transform:translateY(-50%)}.rrs-swiper__arrow.swiper-button-disabled{opacity:.2}.rrs-swiper-pagination{display:none;gap:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:20px}.swiper-pagination-bullet{background-color:gray;border-radius:50%;cursor:pointer;height:12px;opacity:.5;-webkit-transition:opacity .3s;transition:opacity .3s;width:12px}.swiper-pagination-bullet-active{background-color:#000;opacity:1}.rrs-swiper-scrollbar{background-color:transparent;height:1px;margin-top:10px}.swiper-scrollbar-drag{background-color:#707072;border-radius:4px}"]]]);function es({itemSelector:e,observerOptions:t={root:null,threshold:.8},onIntersectBatch:r,targetContainer:i,unobserveOnIntersect:s=!0,watchSource:n}){let o=null;Ke(n,async()=>{if(await Dr(),!i.value)return;o&&o.disconnect(),o=new IntersectionObserver(c=>{const d=c.filter(p=>p.isIntersecting);d.length>0&&r(d),s&&d.forEach(p=>{o.unobserve(p.target)})},t),i.value.querySelectorAll(e).forEach(c=>o.observe(c))},{deep:!0,immediate:!0}),xn(()=>{o&&o.disconnect()})}const s1=["data-testid"],o1={class:"rrg-empty__wrap-info"},a1=["data-testid"],l1={class:"rrg-empty__text"},c1={class:"rrg-empty__wrap-categories"},d1={class:"rrg-empty__wrap-categories__title"},u1={class:"rrg-empty__wrap-categories__categories"},p1={class:"rrg-empty__wrap-categories__category",href:"https://www.nike.com.co/"},f1={class:"rrg-empty__wrap-categories__category",href:"https://www.nike.com.co/hombre"},g1={class:"rrg-empty__wrap-categories__category",href:"https://www.nike.com.co/mujer"},m1=["data-testid"],h1={class:"rrg-empty__title-swiper"},b1=["data-testid"],v1={class:"rrg-empty__title-swiper"},w1=xe(ge({__name:"EmptyResult",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},currencySymbol:{type:String},getEmptyProducts:{type:Function},phrase:{type:String},placementId:{type:Object},removeFromCart:{type:Function},removeFromWishlist:{type:Function},testId:{type:String},wishlist:{type:Object}},emits:["productsVisible"],setup(e,{emit:t}){const r=e,i=t,s=le(null),n=le(null),o=De({productsEmptyResult1:[],productsEmptyResult2:[],productsEmptyViewed1:new Set,productsEmptyViewed2:new Set}),a={breakpoints:{320:{slidesPerGroup:1,slidesPerView:"auto"}},loop:!1,observeParents:!0,observer:!0,spaceBetween:12,speed:800,updateOnWindowResize:!0,watchOverflow:!0};function l(u){return u.map((m,f)=>({...m,actualIndex:f+1}))}async function c(){o.productsEmptyResult1=[],o.productsEmptyResult2=[],await r.getEmptyProducts({placementId:r.placementId.placementIdEmpty1}).then(u=>{u.match({err:async m=>{m!=="AbortError"&&(o.productsEmptyResult1=[])},ok:async m=>{o.productsEmptyResult1=l(m.products)}})}),await r.getEmptyProducts({placementId:r.placementId.placementIdEmpty2}).then(u=>{u.match({err:async m=>{m!=="AbortError"&&(o.productsEmptyResult2=[])},ok:async m=>{o.productsEmptyResult2=l(m.products)}})})}const{getTestId:d}=Be(r.testId),{t:p}=nt({messages:{en:{categoriesOnEmptyResult:"Discover our featured categories",emptyResultOnPhrase:"Sorry, we did not find results for",goToHome:"Go to Home",GoToMan:"Go to Man",GoToWoman:"Go to Woman",nothingWasFound:" Check the text and try searching again using other words, make sure everything is spelled correctly for best results!",personalRecommendations:"Recommended for you",viewedRecommendations:"Your latest views"},es:{categoriesOnEmptyResult:"Descubre nuestras categorías destacadas",emptyResultOnPhrase:"Lo sentimos, no encontramos resultados para",goToHome:"Ir a la Home",GoToMan:"Ir a Hombre",GoToWoman:"Ir a Mujer",nothingWasFound:"Revisa el texto e intenta buscar nuevamente usando otras palabras. ¡Asegúrate de que todo esté bien escrito para mejores resultados!",personalRecommendations:"Los más vendidos",viewedRecommendations:"Últimos vistos"}}});return es({itemSelector:".rrg-empty__product-slide",onIntersectBatch:u=>{let m=!1;u.forEach(f=>{const b=f.target.dataset.productId,y=o.productsEmptyResult1.find(g=>g.id===Number(b));y&&!o.productsEmptyViewed1.has(y)&&(o.productsEmptyViewed1.add(y),m=!0)}),m&&i("productsVisible",Array.from(o.productsEmptyViewed1))},targetContainer:s,watchSource:()=>o.productsEmptyResult1}),es({itemSelector:".rrg-empty__product-slide",onIntersectBatch:u=>{let m=!1;u.forEach(f=>{const b=f.target.dataset.productId,y=o.productsEmptyResult2.find(g=>g.id===Number(b));y&&!o.productsEmptyViewed2.has(y)&&(o.productsEmptyViewed2.add(y),m=!0)}),m&&i("productsVisible",Array.from(o.productsEmptyViewed2))},targetContainer:n,watchSource:()=>o.productsEmptyResult2}),Tt(async()=>{await c()}),(u,m)=>(F(),q("div",{class:"rrg-empty","data-testid":u.testId},[z("div",o1,[z("h1",{class:"rrg-empty__title","data-testid":H(d)("phrase")},ne(H(p)("emptyResultOnPhrase"))+' "'+ne(u.phrase)+'" ',9,a1),z("div",l1,ne(H(p)("nothingWasFound")),1),z("div",c1,[z("div",d1,ne(H(p)("categoriesOnEmptyResult")),1),z("div",u1,[z("a",p1,ne(H(p)("goToHome")),1),m[0]||(m[0]=z("span",{class:"rrg-empty__wrap-categories__spaser"},null,-1)),z("a",f1,ne(H(p)("GoToMan")),1),z("a",g1,ne(H(p)("GoToWoman")),1)])])]),o.productsEmptyResult1.length?(F(),q("div",{key:0,ref_key:"productsEmptyResultFirst",ref:s,class:"rrg-empty__wrap-swiper","data-testid":H(d)("productsEmptyResultFirst")},[z("h2",h1,ne(H(p)("viewedRecommendations")),1),se(Tu,{class:"rrg-empty__swiper",config:a,"test-id":"empty-swiper"},{default:Ve(()=>[(F(!0),q(ve,null,He(o.productsEmptyResult1,f=>(F(),de(H(Su),{key:f.id,class:"rrg-empty__product-slide","data-product-id":f.id,"data-product-index":f.actualIndex},{default:Ve(()=>[se(Zo,{id:f.id,class:"rrg-empty__product","currency-symbol":u.currencySymbol,"group-sizes":f.groupSizes,href:f.href,image:f.image,"in-wishlist":u.wishlist[f.id]||!1,name:f.name,"old-price":f.oldPrice,price:f.price,"products-params":f.productsParams,quantity:u.cart[f.id]||0,rating:f.rating,"reviews-count":f.reviewsCount,"show-rating":!!f.rating,"test-id":H(d)(`product-card-${f.id}`),onAddToCart:b=>u.addToCart(f,f.id),onAddToWishlist:b=>u.addToWishlist(f),onClickOnProduct:b=>u.clickOnProduct(f),onRemoveFromCart:b=>u.removeFromCart(f),onRemoveFromWishlist:b=>u.removeFromWishlist(f)},null,8,["id","currency-symbol","group-sizes","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])]),_:2},1032,["data-product-id","data-product-index"]))),128))]),_:1})],8,m1)):oe("",!0),o.productsEmptyResult2.length?(F(),q("div",{key:1,ref_key:"productsEmptyResultSecond",ref:n,class:"rrg-empty__wrap-swiper","data-testid":H(d)("productsEmptyResultSecond")},[z("h2",v1,ne(H(p)("personalRecommendations")),1),se(Tu,{class:"rrg-empty__swiper",config:a,"test-id":"empty-swiper"},{default:Ve(()=>[(F(!0),q(ve,null,He(o.productsEmptyResult2,f=>(F(),de(H(Su),{key:f.id,class:"rrg-empty__product-slide","data-product-id":f.id,"data-product-index":f.actualIndex},{default:Ve(()=>[se(Zo,{id:f.id,class:"rrg-empty__product","currency-symbol":u.currencySymbol,"group-sizes":f.groupSizes,href:f.href,image:f.image,"in-wishlist":u.wishlist[f.id]||!1,name:f.name,"old-price":f.oldPrice,price:f.price,"products-params":f.productsParams,quantity:u.cart[f.id]||0,rating:f.rating,"reviews-count":f.reviewsCount,"show-rating":!!f.rating,"test-id":H(d)(`product-card-${f.id}`),onAddToCart:b=>u.addToCart(f,f.id),onAddToWishlist:b=>u.addToWishlist(f),onClickOnProduct:b=>u.clickOnProduct(f),onRemoveFromCart:b=>u.removeFromCart(f),onRemoveFromWishlist:b=>u.removeFromWishlist(f)},null,8,["id","currency-symbol","group-sizes","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])]),_:2},1032,["data-product-id","data-product-index"]))),128))]),_:1})],8,b1)):oe("",!0)],8,s1))}}),[["styles",[".rrg-empty{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:auto;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;max-width:1440px;padding-left:48px;width:100%}@media (width <= 1025px){.rrg-empty{padding:16px}}.rrg-empty .swiper-lazy-preloader{display:block}.rrg-empty__wrap-info{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#000;font-style:normal;margin:50px auto 65px;padding:15px 65px;text-align:center;width:100%}@media (width <= 1025px){.rrg-empty__wrap-info{margin:0;padding:0}}.rrg-empty__title{font-size:32px;font-weight:400;line-height:normal;margin:8px 0}@media (width <= 1025px){.rrg-empty__title{margin:12px 0;padding:0 7px;text-align:left}}.rrg-empty__text{font-size:16px;font-weight:400;margin-bottom:65px}@media (width <= 1025px){.rrg-empty__text{margin-bottom:35px;text-align:left}}.rrg-empty__wrap-categories{margin-bottom:40px;padding:0 20px}.rrg-empty__wrap-categories__title{font-size:24px;font-weight:500;line-height:normal;margin-bottom:24px}.rrg-empty__wrap-categories__categories{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media (width <= 1025px){.rrg-empty__wrap-categories__categories{row-gap:8px}}.rrg-empty__wrap-categories__category{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#000;border:none;border-radius:50px;color:#fff;display:inline-block;font-size:16px;font-weight:700;height:52px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:normal;margin:0 12px;padding:16px 0;text-decoration:none;width:160px}.rrg-empty__wrap-categories__spaser{background:#000;display:inline-block;height:30px;position:relative;top:10px;width:1px}@media (width <= 1025px){.rrg-empty__wrap-categories__spaser{display:none}}.rrg-empty__wrap-swiper{max-width:100%;overflow:hidden;position:relative}.rrg-empty__title-swiper{font-size:24px;font-weight:400;margin-bottom:24px}.rrg-empty__swiper{margin-bottom:130px}.rrg-empty__swiper:hover{z-index:3}.rrg-empty .rrg-empty__swiper .rrs-swiper__arrow{top:-35px;-webkit-transform:translate(-56px,-50%);transform:translate(-56px,-50%)}.rrg-empty__product-slide{max-width:290px}@media (width <= 1025px){.rrg-empty__product-slide{max-width:220px}}.rrg-empty__product-slide.swiper-slide{height:auto!important}.rrg-empty .rrg-empty__product{padding:0}.rrg-empty .rrg-empty__product .rrg-product-card__block-sizes{display:none}.rrg-empty .rrg-empty__product:hover{-webkit-filter:none;filter:none}.rrg-empty .rrg-empty__product:hover .rrg-product-card__block-sizes{display:none}.rrg-empty .rrs-swiper-scrollbar{background-color:#f5f5f5;height:4px}.rrg-empty .rrs-swiper-scrollbar .swiper-scrollbar-drag{background-color:#ccc}"]]]),_1=["data-checked","data-testid"],y1={class:"rrg-checkbox-img__checkmark"},x1=["alt","src"],k1={class:"rrg-checkbox-img__text"},S1=xe(ge({__name:"CheckboxImg",props:{disabled:{type:Boolean},src:{type:String},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t;function s(){i("update:value",!r.value)}return(n,o)=>(F(),q("div",{class:Ne(["rrg-checkbox-img",{"is-checked":n.value,"is-disabled":n.disabled}]),"data-checked":n.value,"data-testid":n.testId,onClick:s},[z("div",y1,[z("img",{alt:n.text,src:n.src},null,8,x1)]),z("div",k1,[sr(n.$slots,"default",{},()=>[It(ne(n.text),1)])])],10,_1))}}),[["styles",[".rrg-checkbox-img{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.rrg-checkbox-img__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:2px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-width:260px}.rrg-checkbox-img__checkmark img{max-width:100%}.rrg-checkbox-img__text{border:1px solid #e5e5e5;color:#000;display:block;font-size:16px;font-weight:500;line-height:21px;padding:16px;position:relative;text-transform:capitalize}.rrg-checkbox-img.is-checked .rrg-checkbox-img__checkmark{opacity:.5}.rrg-checkbox-img.is-disabled{pointer-events:none}.rrg-checkbox-img.is-disabled .rrg-checkbox-img__checkmark{background-color:var(--rrg-color-grey-200);border:2px solid #e3e4e6;color:#e3e4e6}.rrg-checkbox-img.is-disabled .rrg-checkbox-img__text{color:var(--rrg-color-grey-400)}.rrg-checkbox-img.is-checked.is-disabled .rrg-checkbox-img__checkmark{background-color:var(--rrg-color-grey-200);color:#e3e4e6}"]]]),C1={class:"rrg-filter-checkbox-img rrg-filter-checkbox-img--active"},E1={class:"rrg-filter-checkbox-img__items"},T1={class:"rrg-filter-checkbox-img__swiper"},I1={key:0,class:"rrg-filter-checkbox-img__product-slide"},A1=xe(ge({__name:"FilterCheckboxImg",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,s={hombre:"https://nikeclprod.vtexassets.com/arquivos/gender-men.jpg",mujer:"https://nikeclprod.vtexassets.com/arquivos/gender-women.jpg",niña:"https://nikeclprod.vtexassets.com/arquivos/gender-girl.jpg",niño:"https://nikeclprod.vtexassets.com/arquivos/gender-boy.jpg",unisex:"https://nikeclprod.vtexassets.com/arquivos/gender-unisex.jpg"},n=me(()=>{const l=r.data.filter(d=>r.value.includes(d.value)),c=r.data.filter(d=>!r.value.includes(d.value));return[...l,...c]}),{getTestId:o}=Be(r.testId);function a(l){const c=xt(r.value),d=c.findIndex(p=>ft(p,l.value));d!==-1?c.splice(d,1):c.push(l.value),i("update:value",c)}return(l,c)=>(F(),q("div",C1,[z("div",E1,[z("div",T1,[(F(!0),q(ve,null,He(n.value,(d,p)=>(F(),q(ve,{key:d.text+p},[s[d.text]?(F(),q("div",I1,[(F(),de(S1,{key:p,src:s[d.text],"test-id":H(o)(`item-${p}`),text:d.text,value:l.value.includes(d.value),"onUpdate:value":u=>a(d)},null,8,["src","test-id","text","value","onUpdate:value"]))])):oe("",!0)],64))),128))])])]))}}),[["styles",[".rrg-filter-checkbox-img{display:grid;margin-bottom:20px;width:100%}@media (width < 1026px){.rrg-filter-checkbox-img{margin-top:20px;padding:0 16px}}.rrg-filter-checkbox-img .rrs-swiper__wrap-swiper{height:182px;overflow:hidden}.rrg-filter-checkbox-img--active .rrs-swiper__wrap-swiper{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-name:slidein;animation-name:slidein}@-webkit-keyframes slidein{0%{height:0}to{height:182px}}@keyframes slidein{0%{height:0}to{height:182px}}.rrg-filter-checkbox-img__items{max-width:100%;overflow:hidden;overflow-x:auto;scroll-behavior:smooth;width:100%}.rrg-filter-checkbox-img__swiper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:23px}@media (width < 1024px){.rrg-filter-checkbox-img__swiper{gap:8px}}.rrg-filter-checkbox-img__product-slide{-webkit-box-flex:0;-ms-flex:0 0 250px;flex:0 0 250px}.rrg-filter-checkbox-img .rrs-swiper__arrow{display:none}"]]]),P1=["data-testid"],gi=xe(ge({__name:"ButtonDefault",props:{color:{type:String},icon:{type:null},iconRight:{type:Boolean},testId:{type:String},text:{type:String}},setup(e){return(t,r)=>(F(),q("button",{class:Ne(["rrg-button-default",{"is-icon-right":t.iconRight,"rrg-button-default--primary":t.color==="primary","rrg-button-default--secondary":t.color==="secondary","rrg-button-default--white":t.color==="white","rrg-button-default--yellow":t.color==="yellow"}]),"data-testid":t.testId},[t.icon?(F(),de(Fe,{key:0,class:"rrg-button-default__icon",name:t.icon},null,8,["name"])):oe("",!0),It(" "+ne(t.text)+" ",1),sr(t.$slots,"default")],10,P1))}}),[["styles",[".rrg-button-default{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:8px;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:14px;font-weight:500;gap:4px;height:36px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1;outline:none;padding:10px 20px;position:relative;width:auto}.rrg-button-default.is-icon-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.rrg-button-default__icon{font-size:16px}.rrg-button-default--primary{background-color:#111;border-radius:30px;color:#fff;font-size:16px;font-weight:500;height:auto;line-height:1;min-height:50px;padding:16px 24px}.rrg-button-default--secondary{background-color:#fff;border:1px solid #ececec;border-radius:30px;color:#111;font-size:16px;font-weight:500;height:auto;line-height:1;min-height:50px;padding:16px 24px}.rrg-button-default--white{background-color:var(--rrg-color-white);color:var(--rrg-color-brand-400)}.rrg-button-default--white:hover{background-color:var(--rrg-color-brand-100)}.rrg-button-default--white:active{background-color:var(--rrg-color-brand-200)}.rrg-button-default--yellow{background-color:var(--rrg-color-yellow);color:var(--rrg-color-black)}.rrg-button-default--yellow:hover{background-color:var(--rrg-color-yellow-400)}.rrg-button-default--yellow:active{background-color:var(--rrg-color-yellow-500)}"]]]);function ts(){function e(r,i,s,n,o){const a=performance.now();function l(c){const d=c-a,p=Math.min(d/n,1),u=t(p),m=i+(s-i)*u;r.style.height=`${Math.round(m)}px`,p<1?requestAnimationFrame(l):(r.style.height="auto",o&&o(r))}requestAnimationFrame(l)}function t(r){return r<.5?2*r*r:-1+(4-2*r)*r}return{animateHeight:e}}const O1=["data-testid"],L1=["data-testid"],$1={key:0,class:"rrg-filter-item__count-checked-filters"},M1={class:"rrg-filter-item__content"},R1=["data-testid"],hr=xe(ge({__name:"FiltersItem",props:{countCheckedFilters:{type:Number},horizontal:{type:Boolean},testId:{type:String},title:{type:String}},setup(e){const t=e,{getTestId:r}=Be(t.testId),{animateHeight:i}=ts(),s=le(),n=De({showContent:!0});function o(){const a=s.value;if(!a)return;const l=!n.showContent;n.showContent=!n.showContent,i(a,l?0:a.scrollHeight,l?a.scrollHeight:0,500,c=>{l?c.style.height="auto":c.style.height="0px"})}return(a,l)=>(F(),q("div",{class:Ne(["rrg-filter-item",{"is-horizontal":a.horizontal}]),"data-testid":a.testId},[z("div",{class:"rrg-filter-item__title","data-testid":H(r)("title"),onClick:o},[z("span",null,[It(ne(a.title)+" ",1),a.countCheckedFilters?(F(),q("span",$1," ("+ne(a.countCheckedFilters)+") ",1)):oe("",!0)]),z("i",null,[a.horizontal?oe("",!0):(F(),de(Fe,{key:0,class:"rrg-filter-item__title-icon",name:n.showContent?"arrowUp":"arrowDown","test-id":H(r)("icon")},null,8,["name","test-id"]))])],8,L1),z("div",M1,[z("div",{ref_key:"filterItemContentContainer",ref:s,class:"rrg-filter-item__content-inner","data-testid":H(r)("content")},[sr(a.$slots,"default")],8,R1)])],10,O1))}}),[["styles",[".rrg-filter-item{display:grid;gap:12px;width:100%}@media (width <= 1025px){.rrg-filter-item{gap:8px}}.rrg-filter-item__title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:grid;font-size:16px;font-weight:600;grid-template-columns:1fr auto;line-height:20px;padding:22px 0 10px;width:100%}.rrg-filter-item__title>span{color:#111;font-size:16px;font-weight:600;line-height:1.15;text-transform:capitalize}.rrg-filter-item__title>i{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;padding-left:16px;padding-right:16px}.rrg-filter-item__title .rrg-filter-item__title-icon{font-size:10px;width:10px}@media (width <= 1025px){.rrg-filter-item__title{padding:20px 0 10px}.rrg-filter-item__title>span{font-size:14px;line-height:22px}}.rrg-filter-item__count-checked-filters{display:none}@media (width <= 1025px){.rrg-filter-item__count-checked-filters{display:inline-block}}.rrg-filter-item__content{display:grid;width:100%}.rrg-filter-item__content-inner{overflow:hidden}.rrg-filter-item.is-horizontal{-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:auto 1fr}"]]]),F1={class:"rrg-filter-category-tree"},N1=["data-testid","onClick"],D1={class:"rrg-filter-category-tree__category-text"},z1={key:0,class:"rrg-filter-category-tree__category-description"},B1=["data-testid","onClick"],V1={class:"rrg-filter-category-tree__category-text"},H1={key:0,class:"rrg-filter-category-tree__category-description"},U1=xe(ge({__name:"FilterCategoryTree",props:{data:{type:Object},testId:{type:String},title:{type:String},value:{type:null}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId);function n(o){i("update:value",o.value)}return(o,a)=>(F(),de(hr,{horizontal:!1,"test-id":o.testId,title:o.title},{default:Ve(()=>[z("div",F1,[(F(!0),q(ve,null,He(r.data.parentCategories,(l,c)=>(F(),q("div",{key:c,class:Ne(["rrg-filter-category-tree__category",{"is-active":r.value===l.value}]),"data-testid":H(s)(`parent-item-${c}`),onClick:d=>n(l)},[se(Fe,{class:"rrg-filter-category-tree__category-arrow",name:"arrowLeft"}),z("div",D1,[It(ne(l.text)+" ",1),l.description?(F(),q("span",z1,ne(` ${l.description}`),1)):oe("",!0)])],10,N1))),128)),(F(!0),q(ve,null,He(r.data.peerCategories,(l,c)=>(F(),q("div",{key:c,class:Ne(["rrg-filter-category-tree__category rrg-filter-category-tree__category--peer",{"is-active":r.value===l.value,"is-root":!r.data.parentCategories.length}]),"data-testid":H(s)(`peer-item-${c}`),onClick:d=>n(l)},[z("div",V1,[It(ne(l.text)+" ",1),l.description?(F(),q("span",H1,ne(` ${l.description}`),1)):oe("",!0)])],10,B1))),128))])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-category-tree{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden auto;width:100%}.rrg-filter-category-tree__category--peer{padding-left:24px}.rrg-filter-category-tree__category--peer.is-root{padding-left:0}.rrg-filter-category-tree__category-arrow{font-size:16px}.rrg-filter-category-tree__category-text{color:var(--rrg-color-black);display:block;font-size:14px;font-weight:400;line-height:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:auto}.rrg-filter-category-tree__category-description{color:var(--rrg-color-grey-400);display:inline}.rrg-filter-category-tree__category{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;max-width:100%;outline:none;width:auto}.rrg-filter-category-tree__category:hover .rrg-filter-category-tree__category-arrow,.rrg-filter-category-tree__category:hover .rrg-filter-category-tree__category-text{color:var(--rrg-color-brand)}.rrg-filter-category-tree__category:active .rrg-filter-category-tree__category-arrow,.rrg-filter-category-tree__category:active .rrg-filter-category-tree__category-text{color:var(--rrg-color-brand-400)}.rrg-filter-category-tree__category.is-active .rrg-filter-category-tree__category-text{color:var(--rrg-color-brand);font-weight:500}"]]]),W1=["data-checked","data-testid"],G1={class:"rrg-checkbox__checkmark"},j1={class:"rrg-checkbox__text"},Y1={key:0,class:"rrg-checkbox__description"},Iu=xe(ge({__name:"Checkbox",props:{description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=le();function o(){s("update:value",!i.value)}return t({rootEl:n}),(a,l)=>(F(),q("div",{ref_key:"rootEl",ref:n,class:Ne(["rrg-checkbox",{"is-checked":a.value,"is-disabled":a.disabled}]),"data-checked":a.value,"data-testid":a.testId,onClick:o},[z("div",G1,[se(Fe,{class:"rrg-checkbox__icon",name:"checkmark"})]),z("div",j1,[sr(a.$slots,"default",{},()=>[It(ne(a.text),1)]),a.description?(F(),q("span",Y1,ne(` ${a.description}`),1)):oe("",!0)])],10,W1))}}),[["styles",[".rrg-checkbox{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;gap:5px;padding:4px 0}@media (width < 1024px){.rrg-checkbox{padding:7px 0}}.rrg-checkbox__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:2px solid #e3e4e6;border-radius:2px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;height:20px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:20px;max-width:20px;min-height:20px;min-width:20px;-webkit-transition:background 20ms,border .1s;transition:background 20ms,border .1s;width:20px}.rrg-checkbox__icon{min-height:unset!important;min-width:unset!important;opacity:0}.rrg-checkbox__text{font-size:16px;font-weight:400;line-height:normal;text-transform:capitalize}.rrg-checkbox__description{display:none}.rrg-checkbox.is-checked .rrg-checkbox__checkmark{background-color:#111;border-color:#111}.rrg-checkbox.is-checked .rrg-checkbox__checkmark .rrg-checkbox__icon{opacity:1}.rrg-checkbox.is-disabled{pointer-events:none}.rrg-checkbox.is-disabled .rrg-checkbox__checkmark{background-color:var(--rrg-color-grey-200);border:2px solid #e3e4e6;color:#e3e4e6}.rrg-checkbox.is-disabled .rrg-checkbox__text{color:var(--rrg-color-grey-400)}.rrg-checkbox.is-checked.is-disabled .rrg-checkbox__checkmark{background-color:var(--rrg-color-grey-200);color:#e3e4e6}"]]]),K1={class:"rrg-filter-checkbox"},X1={class:"rrg-filter-checkbox__items"},q1=xe(ge({__name:"FilterCheckbox",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",showAll:"+ Show"},es:{hide:"- Ver menos",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),{animateHeight:o}=ts(),a=le(),l=le([]),c=De({isShowAll:!1}),d=me(()=>{const f=r.data.filter(y=>r.value.includes(y.value)),b=r.data.filter(y=>!r.value.includes(y.value));return[...f,...b]}),p=me(()=>c.isShowAll?d.value:d.value.slice(0,r.visible));function u(){const f=a.value,b=l.value[0].rootEl.getBoundingClientRect().height;if(!f)return;const y=!c.isShowAll;c.isShowAll=!c.isShowAll;const g=f.scrollHeight,h=r.visible*b;o(f,y?h:g,p.value.length*b,300)}function m(f){const b=xt(r.value),y=b.findIndex(g=>ft(g,f.value));y!==-1?b.splice(y,1):b.push(f.value),i("update:value",b)}return(f,b)=>(F(),de(hr,{"count-checked-filters":f.value.length,horizontal:!1,"test-id":f.testId,title:f.title},{default:Ve(()=>[z("div",K1,[z("div",X1,[z("div",{ref_key:"itemsContainer",ref:a,class:"items-container"},[(F(!0),q(ve,null,He(p.value,(y,g)=>(F(),de(Iu,{key:g,ref_for:!0,ref_key:"checkboxes",ref:l,description:y.description,"test-id":H(n)(`item-${g}`),text:y.text,value:f.value.includes(y.value),"onUpdate:value":h=>m(y)},null,8,["description","test-id","text","value","onUpdate:value"]))),128))],512)]),f.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-checkbox__button",onClick:u},ne(c.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["count-checked-filters","test-id","title"]))}}),[["styles",[".rrg-filter-checkbox{padding-bottom:16px;padding-top:10px;width:100%}@media (width < 1024px){.rrg-filter-checkbox{padding-bottom:15px;padding-top:0}}.rrg-filter-checkbox__items{overflow:hidden;width:100%}.items-container{overflow:hidden}.rrg-filter-checkbox__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),Z1=["data-checked","data-testid"],J1=["title"],Q1={class:"rrg-checkbox-color__text"},ex=xe(ge({__name:"CheckboxColor",props:{color:{type:String},description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=le(),o=me(()=>i.text.includes("blanco")&&i.value&&i.color.length?"#000":i.color.length?i.color:"linear-gradient(90deg, #833ab4, #fd1d1d 50%, #fcb045)");function a(){s("update:value",!i.value)}return t({rootEl:n}),(l,c)=>(F(),q("div",{ref_key:"rootEl",ref:n,class:Ne(["rrg-checkbox-color",{"is-checked":l.value,"is-disabled":l.disabled}]),"data-checked":l.value,"data-testid":l.testId,onClick:a},[z("div",{class:"rrg-checkbox-color__checkmark",style:er({background:`${o.value}`}),title:l.text},[se(Fe,{class:"rrg-checkbox-color__icon",name:"checkmark"})],12,J1),z("div",Q1,[sr(l.$slots,"default",{},()=>[It(ne(l.text),1)])])],10,Z1))}}),[["styles",[".rrg-checkbox-color{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:5px;padding:4px 0}@media (width < 1024px){.rrg-checkbox-color{padding:7px 0}}.rrg-checkbox-color__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #e8e8e8;border-radius:50%;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:25px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:25px;max-width:25px;min-height:25px;min-width:25px;-webkit-transition:background 20ms,border .1s;transition:background 20ms,border .1s;width:25px}.rrg-checkbox-color__icon{min-height:unset!important;min-width:unset!important;opacity:0}.rrg-checkbox-color__text{color:#111;font-size:10px;font-weight:400;line-height:normal;text-transform:capitalize}.rrg-checkbox-color__description{display:none}.rrg-checkbox-color.is-checked .rrg-checkbox-color__checkmark .rrg-checkbox-color__icon{opacity:1}.rrg-checkbox-color.is-disabled{pointer-events:none}.rrg-checkbox-color.is-disabled .rrg-checkbox-color__checkmark{background-color:var(--rrg-color-grey-200);border:2px solid #e3e4e6;color:#e3e4e6}.rrg-checkbox-color.is-disabled .rrg-checkbox-color__text{color:var(--rrg-color-grey-400)}.rrg-checkbox-color.is-checked.is-disabled .rrg-checkbox-color__checkmark{background-color:var(--rrg-color-grey-200);color:#e3e4e6}"]]]),tx={class:"rrg-filter-checkbox-color"},rx={class:"rrg-filter-checkbox-color__items"},ix=xe(ge({__name:"FilterCheckboxColor",props:{data:{type:Array},isMobile:{type:Boolean},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",showAll:"+ Show"},es:{hide:"- Ver menos",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),{animateHeight:o}=ts(),a=le(),l=le([]),c=De({isShowAll:!1}),d=me(()=>{const f=r.data.filter(y=>r.value.includes(y.value)),b=r.data.filter(y=>!r.value.includes(y.value));return[...f,...b]}),p=me(()=>c.isShowAll?d.value:d.value.slice(0,r.visible));function u(){const f=a.value,b=l.value[0].rootEl.getBoundingClientRect().height;if(!f)return;const y=!c.isShowAll;c.isShowAll=!c.isShowAll;const g=r.isMobile?3:2,h=f.scrollHeight,v=Math.ceil(r.visible/g)*b;o(f,y?v:h,Math.ceil(p.value.length/g)*b,300)}function m(f){const b=xt(r.value),y=b.findIndex(g=>ft(g,f.value));y!==-1?b.splice(y,1):b.push(f.value),i("update:value",b)}return(f,b)=>(F(),de(hr,{"count-checked-filters":f.value.length,horizontal:!1,"test-id":f.testId,title:f.title},{default:Ve(()=>[z("div",tx,[z("div",rx,[z("div",{ref_key:"itemsContainer",ref:a,class:"rrg-filter-checkbox-color__items-container"},[(F(!0),q(ve,null,He(p.value,(y,g)=>(F(),de(ex,{key:g,ref_for:!0,ref_key:"checkboxes",ref:l,class:"rrg-filter-checkbox-color__item",color:y.color,description:y.description,"test-id":H(n)(`item-${g}`),text:y.text,value:f.value.includes(y.value),"onUpdate:value":h=>m(y)},null,8,["color","description","test-id","text","value","onUpdate:value"]))),128))],512)]),f.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-checkbox-color__button",onClick:u},ne(c.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["count-checked-filters","test-id","title"]))}}),[["styles",[".rrg-filter-checkbox-color{padding-bottom:16px;padding-top:10px;width:100%}@media (width <= 1025px){.rrg-filter-checkbox-color{padding-bottom:15px;padding-top:0}}.rrg-filter-checkbox-color__items{overflow:hidden;width:100%}.rrg-filter-checkbox-color__items-container{overflow:hidden}.rrg-filter-checkbox-color__item{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:50%}@media (width <= 1025px){.rrg-filter-checkbox-color__item{width:33%}}.rrg-filter-checkbox-color__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),nx=["data-checked","data-testid"],sx={class:"rrg-checkbox-size__text"},ox={key:0,class:"rrg-checkbox-size__description"},ax=xe(ge({__name:"CheckboxSize",props:{description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=le();function o(){s("update:value",!i.value)}return t({rootEl:n}),(a,l)=>(F(),q("div",{ref_key:"rootEl",ref:n,class:Ne(["rrg-checkbox-size",{"is-checked":a.value,"is-disabled":a.disabled}]),"data-checked":a.value,"data-testid":a.testId,onClick:o},[z("div",sx,[sr(a.$slots,"default",{},()=>[It(ne(a.text),1)]),a.description?(F(),q("span",ox,ne(` ${a.description}`),1)):oe("",!0)])],10,nx))}}),[["styles",[".rrg-checkbox-size{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex}.rrg-checkbox-size__text{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #e5e5e5;border-radius:5px;color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;height:32px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.5;padding-bottom:4px;padding-top:6px;text-transform:capitalize;white-space:nowrap;width:100%}.rrg-checkbox-size__description{display:none}.rrg-checkbox-size.is-checked .rrg-checkbox-size__text{border:1px solid #111}.rrg-checkbox-size.is-disabled{pointer-events:none}.rrg-checkbox-size.is-disabled .rrg-checkbox-size__text{color:var(--rrg-color-grey-400)}"]]]),lx={class:"rrg-filter-checkbox-size"},cx={class:"rrg-filter-checkbox-size__items"},dx=xe(ge({__name:"FilterCheckboxSize",props:{data:{type:Array},isMobile:{type:Boolean},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",showAll:"+ Show"},es:{hide:"- Ver menos",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),{animateHeight:o}=ts(),a=le(),l=le([]),c=De({isShowAll:!1}),d=me(()=>{const f=r.data.filter(y=>r.value.includes(y.value)),b=r.data.filter(y=>!r.value.includes(y.value));return[...f,...b]}),p=me(()=>c.isShowAll?d.value:d.value.slice(0,r.visible));function u(){const f=a.value,b=l.value[0].rootEl.getBoundingClientRect().height;if(!f)return;const y=!c.isShowAll;c.isShowAll=!c.isShowAll;const g=2,h=f.scrollHeight,v=Math.ceil(r.visible/g)*b;o(f,y?v:h,Math.ceil(p.value.length/g)*b,300)}function m(f){const b=xt(r.value),y=b.findIndex(g=>ft(g,f.value));y!==-1?b.splice(y,1):b.push(f.value),i("update:value",b)}return(f,b)=>(F(),de(hr,{"count-checked-filters":f.value.length,horizontal:!1,"test-id":f.testId,title:f.title},{default:Ve(()=>[z("div",lx,[z("div",cx,[z("div",{ref_key:"itemsContainer",ref:a,class:"rrg-filter-checkbox-size__items-container"},[z("div",null,[(F(!0),q(ve,null,He(p.value,(y,g)=>(F(),de(ax,{key:g,ref_for:!0,ref_key:"checkboxes",ref:l,class:"rrg-filter-checkbox-size__item",description:y.description,"test-id":H(n)(`item-${g}`),text:y.text,value:f.value.includes(y.value),"onUpdate:value":h=>m(y)},null,8,["description","test-id","text","value","onUpdate:value"]))),128))])],512)]),f.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-checkbox-size__button",onClick:u},ne(c.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["count-checked-filters","test-id","title"]))}}),[["styles",[".rrg-filter-checkbox-size{padding-bottom:16px;padding-top:10px;width:100%}@media (width <= 1025px){.rrg-filter-checkbox-size{padding-bottom:15px;padding-top:0}}.rrg-filter-checkbox-size__items{overflow:hidden;width:100%}.rrg-filter-checkbox-size__items-container{overflow:hidden}.rrg-filter-checkbox-size__items-container>div{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.rrg-filter-checkbox-size__item{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:calc(50% - 10px)}.rrg-filter-checkbox-size__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),ux=["data-checked","data-testid"],px={class:"rrg-radio__text"},fx={key:0,class:"rrg-radio__description"},Au=xe(ge({__name:"Radio",props:{description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t;function s(){r.value||i("update:value",!0)}return(n,o)=>(F(),q("div",{class:Ne(["rrg-radio",{"is-checked":n.value,"is-disabled":n.disabled}]),"data-checked":n.value,"data-testid":n.testId,onClick:s},[o[0]||(o[0]=z("div",{class:"rrg-radio__checkmark"},[z("div",{class:"rrg-radio__icon"})],-1)),z("div",px,[sr(n.$slots,"default",{},()=>[It(ne(n.text),1)]),n.description?(F(),q("span",fx,ne(` ${n.description}`),1)):oe("",!0)])],10,ux))}}),[["styles",[".rrg-radio__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--rrg-color-grey-200);border-radius:50%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:16px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.rrg-radio__icon{background-color:var(--rrg-color-white);border-radius:50%;height:50%;opacity:0;width:50%}.rrg-radio__text{font-size:16px;font-weight:400;line-height:normal;text-transform:capitalize}.rrg-radio__description{color:var(--rrg-color-grey-400);display:inline}.rrg-radio{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;gap:5px;max-width:100%;outline:none;padding:4px 0;width:auto}@media (hover: hover) and (pointer: fine){:is(.rrg-radio:hover,.rrg-radio:active) .rrg-radio__icon{opacity:1}}.rrg-radio.is-disabled{pointer-events:none}.rrg-radio.is-disabled .rrg-radio__checkmark{background-color:var(--rrg-color-grey-200)}.rrg-radio.is-disabled .rrg-radio__text{color:var(--rrg-color-grey-400)}.rrg-radio.is-checked .rrg-radio__checkmark{background-color:#111}.rrg-radio.is-checked .rrg-radio__icon{opacity:1}.rrg-radio.is-checked.is-disabled .rrg-radio__checkmark{background-color:var(--rrg-color-brand-300)}"]]]),gx={class:"rrg-filter-radio"},mx={class:"rrg-filter-radio__items-wrap"},hx=xe(ge({__name:"FilterRadio",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:null},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",noMatter:"No matter",showAll:"+ Show"},es:{hide:"- Ver menos",noMatter:"No importa",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),o=le(),a=De({isShowAll:!1}),l=me(()=>a.isShowAll?r.data:r.data.slice(0,r.visible));function c(p){i("update:value",p)}async function d(){const p=o.value;if(!p)return;const u=!a.isShowAll,m=p.scrollHeight;a.isShowAll=u,await Dr();const f=p.scrollHeight;p.style.height=`${m}px`,p.style.overflow="hidden",p.style.transition="height 300ms ease",p.offsetHeight,p.style.height=`${f}px`,setTimeout(()=>{p.style.height="",p.style.overflow="",p.style.transition=""},300)}return(p,u)=>(F(),de(hr,{horizontal:!1,"test-id":p.testId,title:p.title},{default:Ve(()=>[z("div",gx,[z("div",mx,[z("div",{ref_key:"itemsContainer",ref:o,class:"items-container"},[se(Au,{"test-id":H(n)("item-no-matter"),text:H(s)("noMatter"),value:H(ft)(p.value,void 0),"onUpdate:value":u[0]||(u[0]=m=>c(void 0))},null,8,["test-id","text","value"]),(F(!0),q(ve,null,He(l.value,(m,f)=>(F(),de(Au,{key:f,description:m.description,"test-id":H(n)(`item-${f}`),text:m.text,value:H(ft)(p.value,m.value),"onUpdate:value":b=>c(m.value)},null,8,["description","test-id","text","value","onUpdate:value"]))),128))],512)]),p.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-radio__button",onClick:d},ne(a.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-radio{padding-bottom:16px;padding-top:10px}.rrg-filter-radio__items-wrap{overflow:hidden;width:100%}.items-container{overflow:hidden}.rrg-filter-radio__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),bx={class:"rrg-input-text"},vx=["data-testid","inputmode","placeholder","value"],wx=xe(ge({__name:"InputText",props:{icon:{default:"",type:null},inputmode:{default:"text",type:String},placeholder:{default:"",type:String},testId:{type:String},value:{type:String}},emits:["blur","focus","keydown","update:value"],setup(e,{expose:t,emit:r}){const i=r,s=le();function n(){s.value&&s.value.blur()}function o(d){i("blur",d)}function a(d){d?.target?.focus({preventScroll:!0}),i("focus",d)}function l(d){i("update:value",d.target.value)}function c(d){i("keydown",d)}return t({blur:n}),(d,p)=>(F(),q("div",bx,[d.icon?(F(),de(Fe,{key:0,class:"rrg-input-text__icon",name:d.icon},null,8,["name"])):oe("",!0),z("input",{ref_key:"inputRef",ref:s,class:Ne(["rrg-input-text__input",{"is-icon":d.icon}]),"data-testid":d.testId,inputmode:d.inputmode,placeholder:d.placeholder,type:"text",value:d.value,onBlur:o,onFocus:a,onInput:l,onKeydown:c},null,42,vx)]))}}),[["styles",[".rrg-input-text{position:relative;width:100%}.rrg-input-text__icon{color:var(--rrg-color-grey-400);font-size:16px;left:12px;pointer-events:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.rrg-input-text__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--rrg-color-grey-50);border:1px solid var(--rrg-color-grey-200);border-radius:8px;font-family:inherit;font-size:14px;font-weight:400;height:36px;line-height:1;opacity:1;outline:none;padding:8px 12px;width:100%}.rrg-input-text__input::-webkit-input-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input::-moz-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input:-ms-input-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input::-ms-input-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input::placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input:hover,.rrg-input-text__input:focus,.rrg-input-text__input:focus-within{border-color:var(--rrg-color-brand-300)}.rrg-input-text__input:active{background-color:var(--rrg-color-grey-200)}.rrg-input-text__input.is-icon{padding:8px 12px 8px 36px}"]]]);function Pu(e){return e===void 0||e===1/0||e===-1/0?"":e.toString()}const Ou=ge({__name:"InputNumber",props:{placeholder:{default:"",type:String},testId:{type:String},value:{type:null}},emits:["blur","focus","update:value"],setup(e,{emit:t}){const r=e,i=t,s=De({focused:!1,userInput:""}),n=me(()=>s.focused?s.userInput:Pu(r.value));function o(c){s.focused=!1,s.userInput="",i("blur",c)}function a(c){s.focused=!0,s.userInput=Pu(r.value),i("focus",c)}function l(c){s.userInput=c;const d=Dn(s.userInput);r.value!==d&&i("update:value",d)}return(c,d)=>(F(),de(wx,{class:"rrg-input-number",inputmode:"numeric",placeholder:c.placeholder,"test-id":c.testId,value:n.value,onBlur:o,onFocus:a,"onUpdate:value":l},null,8,["placeholder","test-id","value"]))}}),_x={class:"rrg-filter-range"},yx=xe(ge({__name:"FilterRange",props:{max:{type:Number},min:{type:Number},testId:{type:String},title:{type:String},value:{type:Object}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId),n=De({value:{from:void 0,to:void 0}});function o(){ft(r.value,n.value)||i("update:value",xt(n.value))}function a(c){let d=c;d!==void 0&&(d=Math.max(r.min,Math.min(r.max,d))),d!==void 0&&d>(r.value.to??r.max)&&(d=r.value.to??r.max),n.value.from=d}function l(c){let d=c;d!==void 0&&(d=Math.max(r.min,Math.min(r.max,d))),d!==void 0&&d<(r.value.from??r.min)&&(d=r.value.from??r.min),n.value.to=d}return Ke(()=>r.value,()=>{ft(r.value,n.value)||(n.value=xt(r.value))},{deep:!0,immediate:!0}),(c,d)=>(F(),de(hr,{horizontal:!1,"test-id":c.testId,title:c.title},{default:Ve(()=>[z("div",_x,[se(Ou,{placeholder:String(r.min),"test-id":H(s)("from"),value:n.value.from,onBlur:o,"onUpdate:value":a},null,8,["placeholder","test-id","value"]),se(Ou,{placeholder:String(r.max),"test-id":H(s)("to"),value:n.value.to,onBlur:o,"onUpdate:value":l},null,8,["placeholder","test-id","value"])])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-range{display:grid;gap:16px 12px;grid-template-columns:repeat(2,1fr);width:100%}"]]]);function xx(e,t=1e11){return Math.round(e*t)/t}const kx=["data-testid"],Sx=["data-testid","onPointerdown"],Cx=xe(ge({__name:"Slider",props:{max:{type:Number},min:{type:Number},step:{type:Number},testId:{type:String},value:{type:Object}},emits:["pointerup","update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId),n=De({sliderResized:!1,value:{from:void 0,to:void 0}}),o=le(),a=le(void 0),l=new ResizeObserver(()=>{n.sliderResized=!0,n.sliderResized=!1}),c=me(()=>{if(o.value&&!n.sliderResized){const{left:g,width:h}=o.value.getBoundingClientRect();return{left:g,width:h}}return{left:0,width:0}}),d=me(()=>{const g=r.max-r.min,h=n.value.from!==void 0?n.value.from:r.min,v=n.value.to!==void 0?n.value.to:r.max;return{from:(h-r.min)/g*100,to:(v-r.min)/g*100}});function p(g){const v=(g.clientX-c.value.left)/c.value.width,w=v*(r.max-r.min)+r.min,C=Math.abs(v-d.value.from/100)<Math.abs(v-d.value.to/100)?"from":"to";y(w,C),f(C)}function u(g){if(g.preventDefault(),g.stopPropagation(),!a.value)return;const h=(g.clientX-c.value.left)/c.value.width;y(h*(r.max-r.min)+r.min,a.value)}function m(g){const h=xx(Math.round(g/r.step)*r.step);return Object.is(h,-0)?0:h}function f(g){a.value=g,window.addEventListener("pointermove",u,!1),window.addEventListener("pointerup",b)}function b(){a.value=void 0,i("pointerup"),window.removeEventListener("pointermove",u,!1),window.removeEventListener("pointerup",b)}function y(g,h){const v=Math.min(Math.max(g,r.min),r.max),w=m(v);h==="from"&&(n.value.from===void 0||w!==n.value.from)&&(w>(n.value.to??r.max)?(n.value={from:n.value.to,to:w},a.value="to"):n.value={...n.value,from:w}),h==="to"&&(n.value.to===void 0||w!==n.value.to)&&(w<(n.value.from??r.min)?(n.value={from:w,to:n.value.from},a.value="from"):n.value={...n.value,to:w})}return Tt(()=>{o.value&&l.observe(o.value)}),Gt(()=>{o.value&&l.unobserve(o.value)}),Ke(()=>n.value,()=>{ft(r.value,n.value)||i("update:value",xt(n.value))},{deep:!0}),Ke(()=>r.value,()=>{ft(r.value,n.value)||(n.value=xt(r.value))},{deep:!0,immediate:!0}),(g,h)=>(F(),q("div",{ref_key:"sliderEl",ref:o,class:"rrg-slider","data-testid":g.testId,onPointerdown:p},[z("div",{class:"rrg-slider__bar",style:er({left:`${d.value.from}%`,right:`${100-d.value.to}%`})},null,4),(F(),q(ve,null,He(["from","to"],v=>z("div",{key:v,class:Ne(["rrg-slider__thumb",{"rrg-slider__thumb--from":v==="from","rrg-slider__thumb--to":v==="to"}]),"data-testid":H(s)(v),style:er({left:`${d.value[v]}%`}),onPointerdown:Zs(w=>f(v),["stop"]),onTouchstart:h[0]||(h[0]=Zs(()=>{},["prevent"]))},null,46,Sx)),64))],40,kx))}}),[["styles",[".rrg-slider{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#e3e4e6;border-radius:8px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:4px;margin:0 8px;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:auto;z-index:0}.rrg-slider__bar{background-color:#111;border-radius:8px;height:100%;max-width:100%;position:absolute;width:auto}.rrg-slider__thumb{background-color:#111;border-radius:50%;cursor:pointer;height:16px;position:absolute;top:50%;-ms-touch-action:none;touch-action:none;width:16px;z-index:1}.rrg-slider__thumb--from,.rrg-slider__thumb--to{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}"]]]),Ex={class:"rrg-filter-range-with-slider"},Tx={class:"rrg-filter-range-with-slider__wrap-slider"},Ix={class:"rrg-filter-range-with-slider__wrap-price"},Ax={class:"rrg-filter-range-with-slider__min-price"},Px={class:"rrg-filter-range-with-slider__max-price"},Ox=xe(ge({__name:"FilterRangeWithSlider",props:{max:{type:Number},min:{type:Number},step:{type:Number},testId:{type:String},title:{type:String},value:{type:Object}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{locale:s}=nt(),{getTestId:n}=Be(r.testId),o=De({value:{from:void 0,to:void 0}});function a(c){return qo(c,void 0,s.value)}function l(){ft(r.value,o.value)||i("update:value",xt(o.value))}return Ke(()=>r.value,()=>{ft(r.value,o.value)||(o.value=xt(r.value))},{deep:!0,immediate:!0}),(c,d)=>(F(),de(hr,{horizontal:!1,"test-id":c.testId,title:c.title},{default:Ve(()=>[z("div",Ex,[z("div",Tx,[se(Cx,{value:o.value,"onUpdate:value":d[0]||(d[0]=p=>o.value=p),class:"rrg-filter-range-with-slider__slider",max:c.max,min:c.min,step:c.step,"test-id":H(n)("slider"),onPointerup:l},null,8,["value","max","min","step","test-id"])]),z("div",Ix,[z("span",Ax," $ "+ne(a(o.value.from||r.min)),1),d[1]||(d[1]=It(" - ")),z("span",Px," $ "+ne(a(o.value.to||r.max)),1)])])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-range-with-slider{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px 12px;margin-top:4px;padding-bottom:16px;width:100%}.rrg-filter-range-with-slider__wrap-slider{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:24px}.rrg-filter-range-with-slider__wrap-price{color:#727273;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;gap:4px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto}"]]]),Lx={class:"rrg-rating"},$x={key:0,class:"rrg-rating__star-container"},Mx=5,Rx=xe(ge({__name:"Rating",props:{testId:{type:String},value:{type:null}},setup(e){const t=e,{getTestId:r}=Be(t.testId),i=me(()=>Math.max(0,Math.min(5,t.value??0))),s=me(()=>i.value%1),n=me(()=>Math.floor(i.value)),o=me(()=>s.value!==0),a=me(()=>s.value*100),l=me(()=>Mx-n.value-(o.value?1:0));return(c,d)=>(F(),q("div",Lx,[(F(!0),q(ve,null,He(n.value,p=>(F(),de(Fe,{key:p,class:"rrg-rating__star is-full",name:"star"}))),128)),o.value?(F(),q("div",$x,[se(Fe,{class:"rrg-rating__star rrg-rating__star--partial-filled","data-testid":H(r)("partial-filled"),name:"star",style:er({maskImage:`linear-gradient(to right, black ${a.value}%, transparent ${a.value}%)`})},null,8,["data-testid","style"]),se(Fe,{class:"rrg-rating__star",name:"star"})])):oe("",!0),(F(!0),q(ve,null,He(l.value,p=>(F(),de(Fe,{key:p,class:"rrg-rating__star",name:"star"}))),128))]))}}),[["styles",[".rrg-rating{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;gap:4px;height:16px}.rrg-rating__star-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;gap:4px;height:16px;position:relative}.rrg-rating__star{color:var(--rrg-color-grey-300);font-size:16px}.rrg-rating__star.is-full{color:var(--rrg-color-yellow)}.rrg-rating__star--partial-filled{color:var(--rrg-color-yellow);left:0;position:absolute;z-index:1}"]]]),Fx={class:"rrg-filter-rating"},Nx=xe(ge({__name:"FilterRating",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:Array}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId);function n(o){const a=xt(r.value),l=a.findIndex(c=>ft(c,o.value));l!==-1?a.splice(l,1):a.push(o.value),i("update:value",a)}return(o,a)=>(F(),de(hr,{horizontal:!1,"test-id":o.testId,title:o.title},{default:Ve(()=>[z("div",Fx,[(F(!0),q(ve,null,He(o.data,(l,c)=>(F(),de(Iu,{key:c,class:"rrg-filter-rating__option","test-id":H(s)(`item-${c}`),text:String(l.value),value:o.value.includes(l.value),"onUpdate:value":d=>n(l)},{default:Ve(()=>[se(Rx,{"test-id":"",value:l.value},null,8,["value"])]),_:2},1032,["test-id","text","value","onUpdate:value"]))),128))])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-rating{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;width:100%}.rrg-filter-rating__option{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}"]]]),Dx=["data-testid"],zx=xe(ge({__name:"Switch",props:{testId:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t;function s(){i("update:value",!r.value)}return(n,o)=>(F(),q("div",{class:Ne(["rrg-switch",{"is-active":n.value}]),"data-testid":n.testId,onClick:s},[z("div",{class:Ne(["rrg-switch__bar",{"is-active":n.value}])},null,2)],10,Dx))}}),[["styles",[".rrg-switch__bar{background-color:var(--rrg-color-white);border-radius:50%;height:20px;left:2px;margin-right:auto;pointer-events:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition-duration:.1s;transition-duration:.1s;-webkit-transition-property:left,width,height;transition-property:left,width,height;width:20px}.rrg-switch__bar.is-active{left:calc(100% - 22px)}.rrg-switch{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--rrg-color-grey-300);border-radius:24px;cursor:pointer;display:inline-grid;height:24px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start;outline:none;position:relative;width:40px}@media (hover: hover) and (pointer: fine){.rrg-switch:active{background-color:var(--rrg-color-grey-500)}.rrg-switch:active .rrg-switch__bar{height:14px;left:calc(50% - 7px);width:14px}.rrg-switch:hover{background-color:var(--rrg-color-grey-400)}}.rrg-switch.is-active{background-color:var(--rrg-color-brand)}@media (hover: hover) and (pointer: fine){.rrg-switch.is-active:hover{background-color:var(--rrg-color-brand-400)}.rrg-switch.is-active:active{background-color:var(--rrg-color-brand-500)}}"]]]),Bx=xe(ge({__name:"FilterSwitch",props:{testId:{type:String},title:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId);function n(o){i("update:value",o)}return(o,a)=>(F(),de(hr,{horizontal:!0,"test-id":o.testId,title:o.title},{default:Ve(()=>[se(zx,{"test-id":H(s)("switch"),value:o.value,"onUpdate:value":n},null,8,["test-id","value"])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-switch{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:grid;grid-template-columns:1fr auto}.rrg-filter-switch__title{font-size:16px;font-weight:500;line-height:20px}"]]]),Vx={class:"rrg-filters-dialog"},Hx={class:"rrg-filters-dialog__header"},Ux={class:"rrg-filters-dialog__body"},Wx=["data-testid"],Gx={class:"rrg-filters-dialog__footer"},jx=xe(ge({__name:"Filters",props:{isMobile:{type:Boolean},modalContainer:{type:Object},show:{type:Boolean},testId:{type:String},value:{type:Array}},emits:["update:value","close","beforeEnterAnimation","afterLeaveAnimation"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{cancel:"Cancel",filters:"Filters",filtersMobile:"Filters",resetFilters:"Reset filters",save:"Save",showFilters:"Show Filters"},es:{cancel:"Eliminar",filters:"Filtros",filtersMobile:"Filtrar",resetFilters:"Limpiar todo",save:"Aplicar",showFilters:"Show filters"}}}),{getTestId:n}=Be(r.testId),o=De({show:!0,value:[]}),a=me(()=>{let u=0;for(const m of o.value)switch(m.type){case"CategoryTree":{m.value!==void 0&&(u+=1);break}case"Checkbox":{m.value.length>0&&(u+=1);break}case"Radio":{m.value!==void 0&&(u+=1);break}case"Range":{(m.value.from!==void 0||m.value.to!==void 0)&&(u+=1);break}case"RangeWithSlider":{(m.value.from!==void 0||m.value.to!==void 0)&&(u+=1);break}case"Rating":{m.value.length>0&&(u+=1);break}case"Switch":{m.value&&(u+=1);break}default:zn(m)}return u});function l(){r.isMobile&&(o.show=!1,i("close"))}function c(){for(const u of o.value)switch(u.type){case"CategoryTree":{u.value=void 0;break}case"Checkbox":{u.value=[];break}case"Radio":{u.value=void 0;break}case"Range":{u.value={from:void 0,to:void 0};break}case"RangeWithSlider":{u.value={from:void 0,to:void 0};break}case"Rating":{u.value=[];break}case"Switch":{u.value=!1;break}default:zn(u)}r.isMobile||p()}function d(){p(),l()}function p(){ft(r.value,o.value)||i("update:value",xt(o.value))}return Ke(()=>o.value,()=>{r.isMobile||p()},{deep:!0}),Ke([()=>r.value,()=>o.show],()=>{ft(r.value,o.value)||(o.value=xt(r.value))},{deep:!0,immediate:!0}),Ke([()=>r.show,()=>r.isMobile],()=>{r.isMobile?o.show=r.show:o.show=!0},{immediate:!0}),(u,m)=>(F(),de(zp,{defer:"",disabled:!u.isMobile,to:u.modalContainer},[se(Gs,{name:"slide"},{default:Ve(()=>[vt(z("div",{class:"rrg-filters-dialog-wrapper",onPointerdown:Zs(l,["self"])},[z("div",Vx,[z("div",Hx,[z("h5",null,ne(u.isMobile?H(s)("filtersMobile"):H(s)("filters")),1),u.isMobile?(F(),q("button",{key:0,class:"rrg-filters-dialog__header-close",onPointerdown:l},[se(Fe,{name:"cross"})],32)):oe("",!0),a.value&&!u.isMobile?(F(),de(gi,{key:1,class:"rrg-filters__reset-button",color:"secondary","test-id":H(n)("reset-filters"),text:`${H(s)("resetFilters")}`,onClick:c},null,8,["test-id","text"])):oe("",!0)]),z("div",Ux,[(F(!0),q(ve,null,He(o.value,(f,b)=>(F(),q("div",{key:f.id,class:"rrg-filters__item","data-testid":H(n)(`filter-${b}`)},[f.type==="CategoryTree"?(F(),de(U1,{key:0,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("category-tree"),title:f.title},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0),f.type==="Checkbox"&&f.id!=="color"&&f.id!=="size"?(F(),de(q1,{key:1,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("checkbox"),title:f.title,visible:4},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0),f.type==="Checkbox"&&f.id==="color"?(F(),de(ix,{key:2,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"is-mobile":u.isMobile,"test-id":H(n)("checkbox"),title:f.title,visible:u.isMobile?6:4},null,8,["value","onUpdate:value","data","is-mobile","test-id","title","visible"])):oe("",!0),f.type==="Checkbox"&&f.id==="size"?(F(),de(dx,{key:3,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"is-mobile":u.isMobile,"test-id":H(n)("checkbox"),title:f.title,visible:u.isMobile?6:4},null,8,["value","onUpdate:value","data","is-mobile","test-id","title","visible"])):oe("",!0),f.type==="Radio"?(F(),de(hx,{key:4,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("radio"),title:f.title,visible:1},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0),f.type==="Range"?(F(),de(yx,{key:5,value:f.value,"onUpdate:value":y=>f.value=y,max:f.max,min:f.min,"test-id":H(n)("range"),title:f.title},null,8,["value","onUpdate:value","max","min","test-id","title"])):oe("",!0),f.type==="RangeWithSlider"?(F(),de(Ox,{key:6,value:f.value,"onUpdate:value":y=>f.value=y,max:f.max,min:f.min,step:f.step,"test-id":H(n)("range-with-slider"),title:f.title},null,8,["value","onUpdate:value","max","min","step","test-id","title"])):oe("",!0),f.type==="Switch"?(F(),de(Bx,{key:7,value:f.value,"onUpdate:value":y=>f.value=y,"test-id":H(n)("switch"),title:f.title},null,8,["value","onUpdate:value","test-id","title"])):oe("",!0),f.type==="Rating"?(F(),de(Nx,{key:8,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("rating"),title:f.title},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0)],8,Wx))),128))]),z("div",Gx,[se(gi,{color:"secondary","test-id":H(n)("cancel"),text:H(s)("cancel"),onClick:c},null,8,["test-id","text"]),se(gi,{color:"primary","test-id":H(n)("save"),text:H(s)("save"),onClick:d},null,8,["test-id","text"])])])],544),[[_t,o.show]])]),_:1})],8,["disabled","to"]))}}),[["styles",['.rrg-filters__item{border-bottom:1px solid #e3e4e6}.rrg-filters__item:last-of-type{border-bottom:1px solid transparent}@media (width < 1024px){.rrg-filters__item{padding-bottom:0}}.rrg-filters-dialog-wrapper{display:grid;width:100%}@media (width <= 1024px){.rrg-filters-dialog-wrapper{display:grid;height:100vh;left:0;max-height:100%;outline:none;overflow:hidden;-ms-scroll-chaining:none;overscroll-behavior:none;position:fixed;top:0;width:100vw;z-index:3}.rrg-filters-dialog-wrapper:before{background-color:#111;content:"";height:100%;left:0;opacity:.4;pointer-events:none;position:absolute;top:0;width:100%}}.rrg-filters-dialog{background-color:var(--rrg-color-white);border-top-left-radius:8px;border-top-right-radius:8px;display:grid;grid-template-rows:1fr;height:auto;margin-top:auto;width:100%;z-index:1}@media (width <= 1024px){.rrg-filters-dialog{border-radius:0;-webkit-box-shadow:0 0 8px 2px rgb(0 0 0 / 20%);box-shadow:0 0 8px 2px #0003;grid-template-rows:50px 1fr 64px;height:100%;max-width:256px;position:absolute;right:0}}@media (width <= 640px){.rrg-filters-dialog{max-width:100%}}.rrg-filters-dialog__header{border-bottom:1px solid #e3e4e6;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding-bottom:16px;padding-top:16px;position:relative;width:100%}.rrg-filters-dialog__header h5{color:#111;font-family:Helvetica-Neue,sans-serif;font-size:18px;font-weight:400;letter-spacing:0;margin:0}.rrg-filters-dialog__header .rrg-filters-dialog__header-close{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent;border:none;border-radius:50%;color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;height:30px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;outline:none;padding:5px;position:absolute;right:15px;top:10px;width:30px;z-index:99}@media (width <= 1024px){.rrg-filters-dialog__header{padding:12px 16px}.rrg-filters-dialog__header h5{font-size:20px;font-weight:500;line-height:24px}}.rrg-filters-dialog__header .rrg-filters__reset-button{background:transparent;border:none;color:#111;font-size:14px;font-weight:400;height:auto;min-height:unset;padding:0;text-decoration:underline;text-transform:capitalize;width:auto}.rrg-filters-dialog__body{-ms-flex-line-pack:start;align-content:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden auto;-ms-scroll-chaining:none;overscroll-behavior:none}@media (width <= 1024px){.rrg-filters-dialog__body{padding:0 16px}}.rrg-filters-dialog__footer{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:none;display:none;gap:20px;padding:0 12px}@media (width <= 1024px){.rrg-filters-dialog__footer{display:-webkit-box;display:-ms-flexbox;display:flex}}.rrg-filters-dialog__footer :nth-child(1),.rrg-filters-dialog__footer :nth-child(2){-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:45px;padding:13px 24px}@media (width < 1024px){.slide-enter-active,.slide-leave-active{-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}:is(.slide-enter-active,.slide-leave-active) .rrg-filters-dialog{-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}}@media (width < 1024px){:is(.slide-enter-from,.slide-leave-to) .rrg-filters-dialog{-webkit-transform:translateX(100%)!important;transform:translate(100%)!important}}@media (width < 1024px){:is(.slide-enter-to,.slide-leave-from) .rrg-filters-dialog{-webkit-transform:translateX(0);transform:translate(0)}}']]]),Yx=["data-testid"],rs=xe(ge({__name:"Spinner",props:{testId:{type:String}},setup(e){return(t,r)=>(F(),q("div",{class:"rrg-spinner","data-testid":t.testId},[se(Fe,{class:"rrg-spinner__icon",name:"spinner"})],8,Yx))}}),[["styles",[".rrg-spinner{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.rrg-spinner__icon{-webkit-animation:rrg-spinner-rotate .5s linear infinite;animation:rrg-spinner-rotate .5s linear infinite;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}@-webkit-keyframes rrg-spinner-rotate{0%{-webkit-transform:translateZ(0) rotate(0deg);transform:translateZ(0) rotate(0)}to{-webkit-transform:translateZ(0) rotate(1turn);transform:translateZ(0) rotate(1turn)}}@keyframes rrg-spinner-rotate{0%{-webkit-transform:translateZ(0) rotate(0deg);transform:translateZ(0) rotate(0)}to{-webkit-transform:translateZ(0) rotate(1turn);transform:translateZ(0) rotate(1turn)}}"]]]),Kx=["data-testid"],Xx={key:1,class:"rr-listing__btn rr-listing__btn--spacer"},qx=xe(ge({__name:"Listing",props:{loading:{type:Boolean},page:{type:Number},pagesCount:{type:Number},resetPage:{type:Boolean},showButtons:{type:Boolean},testId:{type:String}},emits:["updatePage"],setup(e,{emit:t}){const r=e,i=t,s=De({nextPage:1,prevPage:1}),{getTestId:n}=Be(r.testId),o=me(()=>s.prevPage>1&&r.showButtons),a=le(null);let l=null;function c(u){l=new IntersectionObserver(([m])=>{m.isIntersecting&&(r.pagesCount>s.nextPage?(s.nextPage+=1,i("updatePage",s.nextPage)):d())},{threshold:0}),l.observe(u)}function d(){l?.disconnect(),l=null}function p(){s.prevPage>1&&(s.prevPage-=1,i("updatePage",s.prevPage))}return Tt(async()=>{s.nextPage=r.page,r.page>1&&(s.prevPage=r.page),await Dr(),r.showButtons&&a.value?.$el&&c(a.value.$el)}),Gt(d),Ke(()=>[r.showButtons,a.value],async([u,m])=>{d(),await Dr(),u&&m?.$el&&c(m.$el)}),Ke(()=>r.resetPage,u=>{u&&(s.prevPage=r.page,s.nextPage=r.page)}),(u,m)=>(F(),q("div",{class:"rr-listing","data-testid":u.testId},[o.value?(F(),de(gi,{key:0,class:"rr-listing__btn",color:"primary","test-id":H(n)("btn-prev"),text:"Mostrar anteriores",onClick:p},{default:Ve(()=>[u.loading?(F(),de(rs,{key:0,class:"rr-listing__btn__spinner","test-id":"rr-listing-spinner-prev"})):oe("",!0)]),_:1},8,["test-id"])):(F(),q("div",Xx)),sr(u.$slots,"default"),u.showButtons?(F(),de(gi,{key:2,ref_key:"nextBtn",ref:a,class:"rr-listing__btn rr-listing__btn--next",color:"primary","test-id":H(n)("btn-next"),text:"Mostrar más"},{default:Ve(()=>[u.loading?(F(),de(rs,{key:0,class:"rr-listing__btn__spinner","test-id":"rr-listing-spinner-next"})):oe("",!0)]),_:1},8,["test-id"])):oe("",!0)],8,Kx))}}),[["styles",[".rr-listing{display:block}.rr-listing .rr-listing__btn{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#111;border-radius:40px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:.875em;font-weight:500;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:40px;margin:1rem auto;min-height:auto;overflow:hidden;padding:.25em calc(1em + 28px) 0;text-transform:uppercase;-webkit-transition:opacity .2s;transition:opacity .2s}.rr-listing .rr-listing__btn:hover{opacity:.7}.rr-listing .rr-listing__btn--spacer{background-color:transparent;height:32px;margin:0}@media (width < 1026px){.rr-listing .rr-listing__btn--spacer{width:16px}}.rr-listing .rr-listing__btn__spinner{background:#878787;color:#464646;font-size:16px;height:100%;left:0;position:absolute;top:0;width:100%}.rr-listing .rr-listing__btn--next{margin:.5rem auto 2.5rem}"]]]),Zx=["data-product-id","data-product-index","data-testid"],Jx=xe(ge({__name:"Products",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},currencySymbol:{type:String},filterUpdated:{type:Boolean},products:{type:Array},removeFromCart:{type:Function},removeFromWishlist:{type:Function},testId:{type:String},wishlist:{type:Object}},emits:["productsVisible"],setup(e,{emit:t}){const r=e,i=t,s=De({productsVisible:new Set}),n=le(null),{getTestId:o}=Be(r.testId);return es({itemSelector:".rrg-products__product",onIntersectBatch:a=>{let l=!1;a.forEach(c=>{const d=c.target.dataset.productId,p=r.products.find(u=>u.id===Number(d));p&&!s.productsVisible.has(p)&&(s.productsVisible.add(p),l=!0)}),l&&i("productsVisible",Array.from(s.productsVisible))},targetContainer:n,watchSource:()=>r.products}),Ke(()=>r.filterUpdated,()=>{s.productsVisible.clear()}),(a,l)=>(F(),q("div",{ref_key:"productsContainer",ref:n,class:"rrg-products"},[(F(!0),q(ve,null,He(a.products,c=>(F(),q("div",{key:c.id,class:"rrg-products__product","data-product-id":c.id,"data-product-index":c.actualIndex,"data-testid":H(o)(`product-${c.id}`)},[se(Zo,{id:c.id,"currency-symbol":a.currencySymbol,"group-sizes":c.groupSizes,href:c.href,image:c.image,"in-wishlist":a.wishlist[c.id]||!1,name:c.name,"old-price":c.oldPrice,price:c.price,"products-params":c.productsParams,quantity:a.cart[c.id]||0,rating:c.rating,"reviews-count":c.reviewsCount,"show-rating":!!c.rating,"test-id":H(o)(`product-card-${c.id}`),onAddToCart:d=>a.addToCart(c,d),onAddToWishlist:d=>a.addToWishlist(c),onClickOnProduct:d=>a.clickOnProduct(c),onRemoveFromCart:d=>a.removeFromCart(c),onRemoveFromWishlist:d=>a.removeFromWishlist(c)},null,8,["id","currency-symbol","group-sizes","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])],8,Zx))),128))],512))}}),[["styles",[".rrg-products{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 20vh;row-gap:40px}@media (width < 1026px){.rrg-products{grid-template-columns:repeat(2,1fr);padding:0 8px;row-gap:16px}}.rrg-products__product{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;position:relative;width:100%}@media (width < 481px){.rrg-products__product{padding:0 5px}}"]]]);function Qx(e,t){return t.composedPath().filter(i=>i.nodeType===Node.ELEMENT_NODE).every(i=>e&&!e.contains(i))}const ek=["data-testid"],tk={class:"rrg-sortings__button-text"},rk=["data-testid"],ik=["data-testid","onClick"],nk=xe(ge({__name:"Sortings",props:{options:{type:Array},testId:{type:String},value:{type:null}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId),n=De({isShowOptions:!1}),o=le(),a=me(()=>r.options.find(u=>u.value===r.value));function l(){n.isShowOptions=!1}function c(u){n.isShowOptions&&o.value&&Qx(o.value,u)&&l()}function d(u){i("update:value",u.value),n.isShowOptions=!1}function p(){n.isShowOptions=!n.isShowOptions}return Tt(()=>{window.addEventListener("pointerup",c)}),Gt(()=>{window.removeEventListener("pointerup",c)}),(u,m)=>(F(),q("div",{ref_key:"rootEl",ref:o,class:"rrg-sortings"},[z("button",{class:"rrg-sortings__button","data-testid":u.testId,onClick:p},[z("span",tk,ne(a.value?.text),1),se(Fe,{class:"rrg-sortings__button-icon",name:n.isShowOptions?"arrowUp":"arrowDown"},null,8,["name"])],8,ek),n.isShowOptions?(F(),q("ul",{key:0,class:"rrg-sortings__options","data-testid":H(s)("options")},[(F(!0),q(ve,null,He(u.options,(f,b)=>(F(),q("li",{key:b,class:Ne(["rrg-sortings__option",{"rrg-sortings__option--active":a.value?.text===f.text}]),"data-testid":H(s)(`option-${b}`),onClick:y=>d(f)},ne(f.text),11,ik))),128))],8,rk)):oe("",!0)],512))}}),[["styles",[".rrg-sortings{display:inline-block;position:relative;width:auto}.rrg-sortings__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:14px;font-weight:400;gap:8px;line-height:1.15;outline:none;padding:8px 0 8px 5px;text-align:left;width:auto}.rrg-sortings__button:hover{border-color:var(--rrg-color-brand-300)}.rrg-sortings__button-text{color:#757575;font-size:1rem;font-weight:400}@media (width < 1026px){.rrg-sortings__button-text{display:none}}.rrg-sortings__button-icon{color:#111;font-size:10px;pointer-events:none}.rrg-sortings__options{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-radius:0 0 8px 8px;display:block;-webkit-filter:drop-shadow(0 8px 16px rgb(121 156 208 / 12%));filter:drop-shadow(0 8px 16px rgb(121 156 208 / 12%));font-size:1rem;font-weight:400;margin:0;max-width:180px;padding:0 0 10px;position:absolute;right:0;top:100%;-webkit-transform:translateY(4px);transform:translateY(4px);width:auto;z-index:2}.rrg-sortings__option{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:8px;color:#111;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:.8125rem;margin:0;outline:none;padding:5px 10px;-webkit-transition:.3s all;transition:.3s all;white-space:nowrap}.rrg-sortings__option:hover{color:#757575}.rrg-sortings__option:before{content:url(https://nikeclprod.vtexassets.com/assets/vtex/assets-builder/nikeclprod.store/3.0.75/icons/nike-no-check___4c55083….png);display:inline-block;height:20px;margin-right:6px;-webkit-transition:.3s all;transition:.3s all;width:20px}.rrg-sortings__option--active:before{content:url(https://nikeclprod.vtexassets.com/assets/vtex/assets-builder/nikeclprod.store/3.0.75/icons/nike-check___80ab120….png)}"]]]),sk={class:"rrg-app-container"},ok={key:0,class:"rrg-app__wrap-spinner"},ak={key:0,class:"rrg-app__phrase"},lk={class:"rrg-app__wrap-filters"},ck={class:"rrg-app__main-content"},dk={key:0},uk={key:1,class:"rrg-app__phrase-mobile"},pk={class:"rrg-app__block-sorting"},fk={key:0,class:"rrg-app__block-sorting__title-count-products"},gk={key:1,class:"rrg-app__wrap-btn-hide-filters"},mk={class:"rrg-app__title-btn-hide-filters"},hk={key:2,class:"rrg-app__sorting"},bk={class:"rrg-app__products"},vk={class:"rrg-app__progress-bar"},wk={key:2,class:"rrg-app__empty"},Qo=24,_k=xe(ge({__name:"WebCmpSearchResultPage",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},clickOnProductGA:{type:Function},currencySymbol:{type:String},deps:{type:Object},initialState:{type:Object},phrase:{type:String},placementId:{type:Object},productsVisible:{type:Function},recomAddToCart:{type:Function},recomMouseDown:{type:Function},recomMouseDownWishlistAdd:{type:Function},recomMouseDownWishlistRemove:{type:Function},removeFromCart:{type:Function},removeFromWishlist:{type:Function},resultGASearchEvent:{type:Function},wishlist:{type:Object}},setup(e){const t=e,r=le(),i=le(),s=le(),n=De({contentId:"",filters:null,filterUpdated:!0,isMobile:!1,loading:!1,page:1,pagesCount:1,products:[],productsCount:0,resetPageListing:!1,showFilters:!0,sorting:void 0,sortings:[],visiblePages:0});function o(){if(n.showFilters=!n.showFilters,s.value?.classList.remove("is-open","is-closed"),n.isMobile)return;const k=n.showFilters?"add":"remove";s.value?.classList[k]("is-open"),s.value?.classList[k==="add"?"remove":"add"]("is-closed")}const a=me(()=>{if(!n.filters)return null;const k=n.filters.find(E=>E.id==="gender");return k&&k.type==="Checkbox"&&"data"in k?k:null}),{t:l}=nt({messages:{en:{foundItems:"Найденные товары",items:"{n} товаров | {n} товар | {n} товара | {n} товаров",nothingWasFound:"Для вашего запроса ничего не найдено",products:"Products",showFiltersDesktop:"Show filters",showFiltersMobile:"Filters"},es:{foundItems:"Found items",items:"{n} items | {n} item | {n} items",nothingWasFound:"Nothing was found for your query",products:"Productos",showFiltersDesktop:"Ocultar Filtros",showFiltersMobile:"Fitros"}}}),c=me(()=>`${n.visiblePages/n.pagesCount*100}%`);function d(k){return k.charAt(0).toUpperCase()+k.slice(1)}const p=me(()=>{if(!n.filters||n.filters.length===0)return t.initialState.filtersValues;const k={};for(const E of n.filters)switch(E.type){case"CategoryTree":{E.value!==void 0&&(k[E.id]={type:E.type,value:E.value});break}case"Checkbox":{E.value.length>0&&(k[E.id]={type:E.type,value:E.value});break}case"Radio":{E.value!==void 0&&(k[E.id]={type:E.type,value:E.value});break}case"Range":{(E.value.from!==void 0||E.value.to!==void 0)&&(k[E.id]={type:E.type,value:E.value});break}case"RangeWithSlider":{(E.value.from!==void 0||E.value.to!==void 0)&&(k[E.id]={type:E.type,value:E.value});break}case"Rating":{E.value.length>0&&(k[E.id]={type:E.type,value:E.value});break}case"Switch":{E.value&&(k[E.id]={type:E.type,value:E.value});break}default:zn(E)}return k});function u(k,E,O){let I=(E-1)*Qo;if(!O&&n.products.length>0){const M=n.products.reduce((U,$)=>Math.max(U,$.actualIndex??0),0);I=M>0?M:n.products.length}return k.map((M,U)=>({...M,actualIndex:I+U+1}))}function m(){window.scrollTo({behavior:"instant",top:0})}async function f(k=!1){n.loading=!0,n.visiblePages+=1,await t.deps.searchProducts({filtersValues:p.value,page:n.page,pageSize:Qo,phrase:t.phrase,sorting:n.sorting}).then(E=>{E.match({err:async()=>{n.contentId="",n.filters=[],n.pagesCount=1,n.productsCount=0,n.products=[],n.sortings=[]},ok:async O=>{n.contentId=O.contentId,n.filters=O.filters,n.pagesCount=O.pagesCount,n.productsCount=O.productsCount;const I=u(O.products,n.page,k);n.products=k?[...I,...n.products]:[...n.products,...I],n.sortings=O.sortings}})}),n.productsCount&&t.resultGASearchEvent(t.phrase),n.loading=!1}async function b(){n.loading=!0,n.resetPageListing=!0,n.visiblePages=1,n.filterUpdated=!0,await t.deps.searchProducts({filtersValues:p.value,page:n.page,pageSize:Qo,phrase:t.phrase,sorting:n.sorting}).then(k=>{k.match({err:async()=>{n.filters=[],n.pagesCount=1,n.productsCount=0,n.products=[],n.sortings=[]},ok:async E=>{n.filters=E.filters,n.pagesCount=E.pagesCount,n.productsCount=E.productsCount,n.products=[],n.products=u(E.products,n.page,!1),n.sortings=E.sortings}})}),n.loading=!1,n.resetPageListing=!1,n.filterUpdated=!1,n.productsCount&&t.resultGASearchEvent(t.phrase)}async function y(k){n.page=1;for(const E of n.filters??[])E.type==="Checkbox"&&E.id==="gender"&&(E.value=k);await b(),h(),m()}async function g(k){n.page=1,n.filters=k,await b(),h(),m()}function h(){t.deps.onUpdateState({filtersValues:p.value,page:n.page,sorting:n.sorting})}async function v(k){if(n.loading)return;const E=n.page>k;n.page=k,await f(E),h()}async function w(k){n.sorting=k,await b(),h()}const C=Q0(()=>{n.isMobile=window.innerWidth<=1024,n.showFilters=!n.isMobile},16);return Tt(async()=>{C(),window.addEventListener("resize",C),t.phrase&&(n.filters=null,n.sorting=t.initialState.sorting||void 0,n.page=t.initialState.page||1,await f())}),Gt(()=>{window.removeEventListener("resize",C)}),Ke(()=>t.phrase,async()=>{t.phrase&&(n.filters=null,n.page=1,n.sorting=void 0,await b(),h())}),(k,E)=>(F(),q("div",{ref_key:"rootEl",ref:r,class:"rrg-app"},[z("div",sk,[n.loading?(F(),q("div",ok,[se(rs,{class:"rrg-app__spinner","test-id":"rrg-app__spinner"})])):oe("",!0),t.phrase&&(n.loading||n.filters?.length)?(F(),q("div",{key:1,class:Ne(["rrg-app__main",{"is-loading":n.loading}])},[k.phrase.length&&n.filters?.length?(F(),q("div",ak,ne(d(k.phrase)),1)):oe("",!0),z("div",lk,[vt(z("div",{ref_key:"filtersList",ref:s,class:"rrg-app__filters-list"},[n.filters?.length?(F(),de(jx,{key:0,"is-mobile":n.isMobile,"modal-container":i.value,show:n.showFilters,"test-id":"filters",value:n.filters,onClose:o,"onUpdate:value":g},null,8,["is-mobile","modal-container","show","value"])):oe("",!0)],512),[[_t,!n.isMobile]])]),z("div",ck,[a.value?.value?(F(),q("div",dk,[se(A1,{value:a.value.value,"onUpdate:value":[E[0]||(E[0]=O=>a.value.value=O),y],class:"rrg-app__filter-checkbox-img",data:a.value.data,"test-id":"checkbox",title:a.value.title,visible:a.value.data.length},null,8,["value","data","title","visible"])])):oe("",!0),k.phrase.length&&n.products.length?(F(),q("div",uk,ne(d(k.phrase)),1)):oe("",!0),z("div",pk,[n.productsCount?(F(),q("div",fk,[It(ne(n.productsCount)+" ",1),z("span",null,ne(H(l)("products")),1)])):oe("",!0),n.filters?.length?(F(),q("div",gk,[z("div",{class:"rrg-app__inner-wrap-btn-hide-filters",onPointerdown:o},[z("div",mk,[z("span",null,ne(n.isMobile?H(l)("showFiltersMobile"):H(l)("showFiltersDesktop")),1)]),se(Fe,{name:"filter"})],32)])):oe("",!0),n.sortings.length?(F(),q("div",hk,[E[3]||(E[3]=z("div",{class:"rrg-app__block-sorting__title-sorting"}," Ordenar por ",-1)),se(nk,{value:n.sorting,"onUpdate:value":[E[1]||(E[1]=O=>n.sorting=O),w],options:n.sortings,"test-id":"sorting"},null,8,["value","options"])])):oe("",!0)]),n.products.length?(F(),de(qx,{key:2,loading:n.loading,page:n.page,"pages-count":n.pagesCount,"reset-page":n.resetPageListing,"show-buttons":n.pagesCount>1,"test-id":"listing",onUpdatePage:v},{default:Ve(()=>[z("div",null,[z("div",bk,[se(Jx,{"add-to-cart":(O,I)=>{k.addToCart(I,n.contentId),k.clickOnProductGA({...O,id:I})},"add-to-wishlist":O=>{k.addToWishlist({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},cart:k.cart,"click-on-product":O=>{k.clickOnProduct(O.id,n.contentId),k.clickOnProductGA(O)},"currency-symbol":k.currencySymbol,"filter-updated":n.filterUpdated,products:n.products,"remove-from-cart":O=>{k.removeFromCart(O.id,n.contentId),k.clickOnProductGA(O)},"remove-from-wishlist":O=>{k.removeFromWishlist({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},"test-id":"products",wishlist:k.wishlist,onProductsVisible:k.productsVisible},null,8,["add-to-cart","add-to-wishlist","cart","click-on-product","currency-symbol","filter-updated","products","remove-from-cart","remove-from-wishlist","wishlist","onProductsVisible"])]),z("div",vk,[z("div",{class:"rrg-app__progress-bar__progress",style:er({width:c.value})},null,4)])])]),_:1},8,["loading","page","pages-count","reset-page","show-buttons"])):oe("",!0)])],2)):oe("",!0),t.phrase&&!n.loading&&n.filters?.length===0?(F(),q("div",wk,[se(w1,{"add-to-cart":(O,I)=>{k.recomAddToCart(I,n.contentId),k.clickOnProductGA({...O,id:I})},"add-to-wishlist":O=>{k.recomMouseDownWishlistAdd({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},cart:k.cart,"click-on-product":O=>{k.recomMouseDown(O.id,n.contentId),k.clickOnProductGA(O)},"currency-symbol":k.currencySymbol,"get-empty-products":k.deps.getProductsRecommendations,phrase:k.phrase,"placement-id":k.placementId,"remove-from-cart":O=>{k.recomAddToCart(O.id,n.contentId),k.clickOnProductGA(O)},"remove-from-wishlist":O=>{k.recomMouseDownWishlistRemove({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},"test-id":"empty",wishlist:k.wishlist,onProductsVisible:E[2]||(E[2]=O=>{k.productsVisible(O,"Sin resultados")})},null,8,["add-to-cart","add-to-wishlist","cart","click-on-product","currency-symbol","get-empty-products","phrase","placement-id","remove-from-cart","remove-from-wishlist","wishlist"])])):oe("",!0)]),z("div",{id:"rrg-app-modals",ref_key:"modalContainer",ref:i,style:{position:"relative"}},null,512)],512))}}),[["styles",[".rrg-app{margin-top:10px}.rrg-app-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;gap:24px;height:100%;position:relative;width:100%}@media (width > 112rem){.rrg-app-container{margin:0 auto;max-width:112rem;padding:0}}@media (width > 64.063rem) and (width < 112rem){.rrg-app-container{max-width:calc(112rem + 112px);padding:0 56px}}@media (width < 64.063rem){.rrg-app-container{padding:0}}#rrg-app-modals{position:relative;z-index:1000}.rrg-app__wrap-spinner{-webkit-box-align:start;-ms-flex-align:start;align-items:start;background:#fff9;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;padding-top:16rem;position:absolute;top:0;width:100%;z-index:999}.rrg-app__phrase{background:#fff;color:#111;font-size:24px;font-weight:500;grid-column:1 / 3;grid-row:1;height:55px;margin:0;max-width:calc(112rem + 112px);position:sticky;top:60px;width:100%;z-index:102}@media (width < 1026px){.rrg-app__phrase{display:none}}.rrg-app__wrap-filters{grid-row:2;width:auto}@media (width < 1026px){.rrg-app__wrap-filters{display:none}}.rrg-app__filters-list{height:80vh;margin-right:35px;max-width:500px;overflow-y:auto;padding-bottom:70px;padding-right:20px;position:sticky;top:160px;width:235px}.rrg-app__filters-list.is-open{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:filter-open;animation-name:filter-open}.rrg-app__filters-list.is-closed{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:filter-hide;animation-name:filter-hide}@-webkit-keyframes filter-open{0%{left:-250px;margin-left:-300px;opacity:0}to{left:0;margin-left:0}}@keyframes filter-open{0%{left:-250px;margin-left:-300px;opacity:0}to{left:0;margin-left:0}}@-webkit-keyframes filter-hide{0%{left:0;margin-left:0}to{left:-250px;margin-left:-300px;opacity:0}}@keyframes filter-hide{0%{left:0;margin-left:0}to{left:-250px;margin-left:-300px;opacity:0}}.rrg-app__main-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;grid-row:2 / 3;width:auto;z-index:101}@media (width < 1026px){.rrg-app__main-content{grid-row:1 / 2}}.rrg-app__phrase-mobile{color:#111;display:none;font-size:1.0625rem;font-weight:500;padding:.5rem 0 0 1rem;text-align:left;width:100%}@media (width < 1026px){.rrg-app__phrase-mobile{display:block}}.rrg-app__block-sorting{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1rem;padding-top:14px}@media (width < 1026px){.rrg-app__block-sorting{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;-webkit-box-shadow:0 2px 4px 0 rgb(0 0 0 / 8%);box-shadow:0 2px 4px #00000014;display:grid;gap:10px;grid-template-columns:1fr -webkit-max-content 1fr;grid-template-columns:1fr max-content 1fr;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1;padding:.7813rem 10px;position:sticky;top:0;z-index:10}}@media (width < 421px){.rrg-app__block-sorting{font-size:.875rem}}.rrg-app__block-sorting__title-count-products{color:#707072;font-size:16px;font-weight:500;line-height:28px;margin-right:auto}@media (width < 1026px){.rrg-app__block-sorting__title-count-products{font-weight:400;text-align:center;width:100%}}.rrg-app__block-sorting__title-sorting{line-height:1.15}@media (width < 1026px){.rrg-app__wrap-btn-hide-filters{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}.rrg-app__inner-wrap-btn-hide-filters{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;gap:20px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.15;margin-right:12px}.rrg-app__inner-wrap-btn-hide-filters svg{fill:transparent;font-size:24px}@media (width < 1026px){.rrg-app__inner-wrap-btn-hide-filters{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #111;border-radius:30px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;min-height:34px;padding:4px 20px;width:114px}}.rrg-app__sorting{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.rrg-app__main{display:grid;gap:0;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;width:100%}@media (width < 1026px){.rrg-app__main{gap:0;grid-template-columns:1fr;grid-template-rows:1fr}}.rrg-app__main.is-loading{pointer-events:none}.rrg-app__products{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:24px}.rrg-app__progress-bar{background-color:#eef3f7;border-radius:9999px;height:10px;margin:.75rem auto;overflow:hidden;width:30%}.rrg-app__progress-bar__progress{background-color:#111;height:inherit;width:0}.rrg-app__empty{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]]]);function yk(e){let t=new AbortController;return async()=>{t&&t.abort(),t=new AbortController;try{const r=await e.initialPreviewHttpClientDelegate({lang:e.lang,partnerId:e.partnerId,sessionId:e.sessionId,stock:e.stock},t.signal);let i=[];return r.status===200&&(i=r.body.popularSuggestions||[]),fr(i)}catch(r){return r.name==="AbortError"?Dt("AbortError"):Dt("NetworkError")}}}function xk(e){let t=new AbortController;return async r=>{t&&t.abort(),t=new AbortController;try{const i=await e.phrasePreviewHttpClientDelegate({lang:e.lang,partnerId:e.partnerId,phrase:encodeURIComponent(r.phrase),sessionId:e.sessionId,stock:e.stock},t.signal);let s="",n=[],o=[],a=[],l=[],c=0;if(i.status===200){if(i.body.products&&i.body.products.length){const p=i.body.products.filter(m=>m.isAvailable).map(m=>m.groupId).filter(m=>m!==void 0),u=await e.getGroupProductsByIdsHttpClient({itemsGroupIds:p,partnerId:e.partnerId});u.status===200&&u.body&&(l=u.body),s=i.body.contentId}a=i.body.suggestions||[],o=Sk(i.body.redirects),n=kk(i.body.products,l,e.emptyProductsUrls),c=i.body.resultsPageApproximateProductsCount||0}return fr({contentId:s,products:n,productsCount:c,redirects:o,suggestions:a})}catch(i){return i.name==="AbortError"?Dt("AbortError"):Dt("NetworkError")}}}function kk(e,t,r){if(e===void 0)return[];const i=[];for(const s of e){const n=[],o=[],a=s.productParams.find(c=>c.name==="rating"),l=a?.value?Dn(a?.value):0;t.length&&t.forEach(c=>{c.IsAvailable&&c.GroupId===s.groupId&&(c.Color&&!n.includes(c.Color)&&n.push(c.Color),c.Size&&o.push({productId:c.ItemId,size:c.Size}))}),i.push({categoryPaths:s.categoryPaths||[],groupColors:n,groupId:s.groupId||"",groupSizes:o,href:r?"javascript:void(0)":s.url,id:s.productId,image:s.pictureUrl,isAvailable:s.isAvailable||!1,model:s.model||"",name:s.name,oldPrice:s.oldPrice||0,price:s.price,productsParams:s.productParams,rating:l||0,reviewsCount:0,vendor:s.vendor||""})}return i}function Sk(e){if(e===void 0)return[];const t=[];for(const r of e)t.push({href:r.url,text:r.title});return t}const Ck={class:"rrg-input-text-preview__icon rrg-input-text-preview__icon-search"},Ek=["data-testid","placeholder","value"],Tk={class:"rrg-input-text-preview__icon rrg-input-text-preview__icon-clear"},Ik=xe(ge({__name:"InputTextPreview",props:{testId:{type:String},value:{type:String}},emits:["search","blur","focus","keydown","update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=De({focused:!1}),{getTestId:o}=Be(i.testId),{t:a}=nt({messages:{en:{placeholder:"Search"},es:{placeholder:"Buscar"}}}),l=le();function c(){l.value&&l.value.blur()}function d(){l.value&&s("update:value","")}function p(){l.value&&l.value.focus()}function u(g){n.focused=!1,s("blur",g)}function m(g){n.focused=!0,g?.target?.focus({preventScroll:!0}),s("focus",g)}function f(g){s("update:value",g.target.value)}function b(g){s("keydown",g)}function y(){l.value&&s("search")}return t({blur:c,focus:p}),(g,h)=>(F(),q("div",{class:Ne(["rrg-input-text-preview",{"rrg-input-text-preview--focused":n.focused,"rrg-input-text-preview--active":g.value}])},[z("div",Ck,[se(Fe,{name:"search","test-id":H(o)("search"),onPointerdown:y},null,8,["test-id"])]),z("input",{ref_key:"inputRef",ref:l,class:"rrg-input-text-preview__input","data-testid":g.testId,placeholder:H(a)("placeholder"),type:"text",value:g.value,onBlur:u,onFocus:m,onInput:f,onKeydown:b},null,40,Ek),vt(z("div",Tk,[se(Fe,{name:"inputCross","test-id":H(o)("clear"),onPointerdown:d},null,8,["test-id"])],512),[[_t,g.value]])],2))}}),[["styles",[".rrg-input-text-preview{background-color:#f5f5f5;border-radius:20px;position:relative;width:100%}.rrg-input-text-preview__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:20px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:42px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;width:42px}.rrg-input-text-preview__icon svg{color:#111;fill:transparent}.rrg-input-text-preview .rrg-input-text-preview__icon-search{font-size:18px;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.rrg-input-text-preview .rrg-input-text-preview__icon-clear{font-size:14px;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.rrg-input-text-preview__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:inherit;border:none;border-radius:30px;color:#111;font-family:inherit;font-size:16px;font-weight:500;height:42px;line-height:1;opacity:1;outline:none;padding:0 46px;width:100%}.rrg-input-text-preview__input::-webkit-input-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input::-moz-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input:-ms-input-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input::-ms-input-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input::placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview:hover{background-color:#e5e5e5}.rrg-input-text-preview:hover .rrg-input-text-preview__icon:hover{background-color:#cacacb}"]]]),Ak=["data-testid"],Pk=["data-testid","href"],Ok={class:"rrg-product-card-preview__image-wrapper"},Lk={key:0,class:"rrg-product-card-preview__image__preloader"},$k=["alt","data-testid"],Mk={class:"rrg-product-card-preview__info"},Rk={key:0,class:"rrg-product-card-preview__block-rating"},Fk={class:"rrg-product-card-preview__rating-wrapper"},Nk=["data-testid"],Dk={class:"rrg-product-card-preview__rating-count-star"},zk=["data-testid"],Bk=["data-testid"],Vk={class:"rrg-product-card-preview__complement-name"},Hk={key:1,class:"rrg-product-card-preview__counter-colors"},Uk={class:"rrg-product-card-preview__price-wrapper"},Wk=["data-testid"],Gk=["data-testid"],jk=["data-testid"],Yk=496,Kk=496,Xk=xe(ge({__name:"ProductCardPreview",props:{currencySymbol:{type:String},href:{type:String},id:{type:Number},image:{type:String},inWishlist:{type:Boolean},name:{type:String},oldPrice:{type:Number},price:{type:Number},productsParams:{type:Array},quantity:{type:Number},rating:{type:Number},reviewsCount:{type:Number},showRating:{type:Boolean},testId:{type:String}},emits:["clickOnProduct","addToCart","removeFromCart","addToWishlist","removeFromWishlist"],setup(e,{emit:t}){const r=e,i=t,s=De({isLoading:!0}),{t:n}=nt({messages:{en:{discount:"discount"},es:{discount:"de descuento"}}}),o=`https://cdnimg.retailrocket.net/api/1.0/partner/68b0588bb1543cb96cbe1d55/item/${r.id}/picture/?format=jpg&width=${Yk}&height=${Kk}&scale=both`,a=r.name.split("Talla")[0].trim(),l=Cu(r.productsParams),{getTestId:c}=Be(r.testId),{locale:d}=nt(),p=me(()=>r.oldPrice>r.price),u=me(()=>p.value?Math.round(100-r.price/r.oldPrice*100):0);function m(){i("clickOnProduct")}function f(){s.isLoading=!1}function b(g){return qo(g,r.currencySymbol,d.value)}function y(g){return new Intl.NumberFormat("en").format(g)}return(g,h)=>(F(),q("div",{class:"rrg-product-card-preview","data-testid":g.testId},[z("a",{class:"rrg-product-card-preview__link","data-testid":H(c)("link"),href:g.href,onPointerdown:m},[z("div",Ok,[s.isLoading?(F(),q("div",Lk)):oe("",!0),z("img",{alt:H(a),class:Ne(["rrg-product-card-preview__image",{"rrg-product-card-preview__image--loading":s.isLoading}]),"data-testid":H(c)("image"),src:o,onLoad:f},null,42,$k)]),z("div",Mk,[g.showRating&&g.rating?(F(),q("div",Rk,[z("div",Fk,[z("div",{class:"rrg-product-card-preview__rating","data-testid":H(c)("rating")},[(F(!0),q(ve,null,He(Math.round(+g.rating),v=>(F(),de(Fe,{key:`filled-${v}`,class:"rrg-product-card-preview__rating-icon",name:"star"}))),128)),(F(!0),q(ve,null,He(5-Math.round(+g.rating),v=>(F(),de(Fe,{key:`empty-${v}`,class:"rrg-product-card-preview__rating-icon--grey",name:"star"}))),128)),z("span",Dk,ne(Math.round(+g.rating))+".0 ",1)],8,Nk),g.reviewsCount?(F(),q("div",{key:0,class:"rrg-product-card-preview__reviews-count","data-testid":H(c)("reviewsCount")}," ("+ne(y(g.reviewsCount))+") ",9,zk)):oe("",!0)])])):oe("",!0),z("div",{class:"rrg-product-card-preview__name","data-testid":H(c)("name")},ne(H(a)),9,Bk),z("div",Vk,ne(H(l).complementName),1),H(l).colors?(F(),q("div",Hk,ne(H(l).colors)+" "+ne(+H(l).colors>1?"Colores":"Color"),1)):oe("",!0),z("div",Uk,[p.value?(F(),q("span",{key:0,class:"rrg-product-card-preview__old-price","data-testid":H(c)("oldPrice")},ne(b(g.oldPrice)),9,Wk)):oe("",!0),z("span",{class:"rrg-product-card-preview__price","data-testid":H(c)("price")},ne(b(g.price)),9,Gk)]),u.value?(F(),q("div",{key:2,class:"rrg-product-card-preview__discount-percentage","data-testid":H(c)("discountPercentage")},ne(u.value)+"% "+ne(H(n)("discount")),9,jk)):oe("",!0)])],40,Pk)],8,Ak))}}),[["styles",[".rrg-product-card-preview{background:#fff;border-radius:5px 5px 0 0;display:grid;gap:12px;grid-template-rows:1fr;padding:6px 6px 0;position:relative;text-decoration:none;width:100%}@media (width <= 1025px){.rrg-product-card-preview{padding:0}}.rrg-product-card-preview__link{color:#111;display:grid;grid-template-rows:1fr;outline:none;text-decoration:none;width:100%}.rrg-product-card-preview__image-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:8px;overflow:hidden;position:relative;width:100%}.rrg-product-card-preview__image{aspect-ratio:1/1;height:100%;-o-object-fit:contain;object-fit:contain;opacity:1;width:100%}.rrg-product-card-preview__image--loading{opacity:0}.rrg-product-card-preview__image__preloader{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.rrg-product-card-preview__discount-percentage{color:#128a09;font-size:clamp(14px,2vw,1rem);font-weight:600}.rrg-product-card-preview__block-rating{height:20px}.rrg-product-card-preview__rating-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;width:auto}.rrg-product-card-preview__rating{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;color:#111;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;font-weight:500;gap:8px;line-height:1;width:auto}@media (width <= 475px){.rrg-product-card-preview__rating{gap:4px}}.rrg-product-card-preview__rating-icon--grey{color:#ccc}.rrg-product-card-preview__rating-count-star{font-family:Arial,Helvetica,sans-serif;font-size:clamp(11px,3vw,14px);line-height:19px}.rrg-product-card-preview__reviews-count{color:#111;font-size:clamp(10px,2vw,14px);font-weight:400;line-height:1}@media (width <= 375px){.rrg-product-card-preview__reviews-count{display:none}}.rrg-product-card-preview__info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px}@media (width <= 1025px){.rrg-product-card-preview__info{gap:6px}}.rrg-product-card-preview__name{-webkit-box-orient:vertical;color:#111;display:-webkit-box;font-size:clamp(14px,3vw,16px);font-weight:500;-webkit-line-clamp:2;line-clamp:2;line-height:1.15;overflow:hidden;text-overflow:ellipsis}.rrg-product-card-preview__complement-name{color:#757575;font-size:16px;font-weight:500}@media (width <= 475px){.rrg-product-card-preview__complement-name{font-size:14px}}.rrg-product-card-preview__price-wrapper{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;width:auto}@media (width <= 475px){.rrg-product-card-preview__price-wrapper{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:10px}}.rrg-product-card-preview__price{color:#111;font-size:clamp(14px,3vw,16px);font-weight:500;line-height:1}.rrg-product-card-preview__old-price{-webkit-box-orient:vertical;color:#757575;display:-webkit-box;font-size:clamp(14px,3vw,16px);font-weight:500;-webkit-line-clamp:2;line-clamp:2;line-height:1.15;overflow:hidden;text-decoration:line-through;text-overflow:ellipsis}.rrg-product-card-preview__counter-colors{color:#757575;font-size:14px;font-weight:500}"]]]),qk=["data-testid"],Zk=["innerHTML"],Jk=xe(ge({__name:"Suggestions",props:{active:{type:Boolean},listNumber:{type:Number},suggestion:{type:Object},testId:{type:String},type:{type:String},userInput:{type:String}},emits:["remove","select"],setup(e){const t=e,r=me(()=>{if(!t.userInput)return i(t.suggestion.title);const n=i(t.suggestion.title),o=i(t.userInput),a=s(o),l=new RegExp(`(${a})`,"gi");return n.replace(l,"<b>$1</b>")});function i(n){return String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}return(n,o)=>(F(),q("li",{class:Ne(["rrg-suggestion",{"is-active":n.active,"is-hovered-highlight":n.type==="hovered-highlight-suggestion","is-popular":n.type==="popular-suggestion","is-recent-view":n.type==="recent-views-suggestion"}]),"data-testid":n.testId,onClick:o[1]||(o[1]=a=>n.$emit("select",n.suggestion))},[z("span",{class:"rrg-suggestion__list-text",innerHTML:r.value},null,8,Zk),n.type==="recent-views-suggestion"?(F(),de(Fe,{key:0,name:"recentViewCross",onClick:o[0]||(o[0]=a=>n.$emit("remove",n.suggestion))})):oe("",!0)],10,qk))}}),[["styles",[".rrg-suggestion{color:#999;cursor:pointer;font-family:inherit}.rrg-suggestion.is-active{background:#eee}.rrg-suggestion__list-text{color:#111;font-family:inherit;font-size:20px;font-weight:500;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rrg-suggestion.is-popular{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:20px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:8px 22px}.rrg-suggestion.is-popular .rrg-suggestion__list-text{font-size:16px;line-height:1.25}.rrg-suggestion.is-popular:hover{background:#eee}.rrg-suggestion.is-recent-view{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;text-overflow:ellipsis}.rrg-suggestion.is-recent-view svg{color:#111;cursor:pointer;font-size:14px}.rrg-suggestion.is-hovered-highlight{-webkit-line-clamp:1;line-clamp:1;overflow:hidden;text-overflow:ellipsis}.rrg-suggestion.is-hovered-highlight .rrg-suggestion__list-text{color:#707072;font-size:20px;font-weight:500;line-height:1}.rrg-suggestion.is-hovered-highlight .rrg-suggestion__list-text b{color:#111}"]]]),Qk=["data-testid"],ea=xe(ge({__name:"SuggestionLists",props:{activeSuggestionsIndex:{default:-1,type:Number},suggestions:{type:Array},testId:{type:String},title:{default:"",type:String},type:{type:String},userInput:{default:"",type:String}},emits:["select","remove"],setup(e){const t=e,{getTestId:r}=Be(t.testId);return(i,s)=>(F(),q(ve,null,[i.title.length&&i.suggestions.length?(F(),q("div",{key:0,class:Ne(["rrg-suggestion-list__title",{"is-hovered-highlight":i.type==="hovered-highlight-suggestion"}]),"data-testid":H(r)("title")},ne(i.title),11,Qk)):oe("",!0),z("ul",{class:Ne(["rrg-suggestion-list__list",{"is-popular":i.type==="popular-suggestion"}])},[(F(!0),q(ve,null,He(i.suggestions,(n,o)=>(F(),de(Jk,{key:o,active:n===i.suggestions[i.activeSuggestionsIndex],suggestion:n,"test-id":H(r)(`list-item-${o}`),type:i.type,"user-input":i.userInput,onRemove:a=>i.$emit("remove",n),onSelect:a=>i.$emit("select",n)},null,8,["active","suggestion","test-id","type","user-input","onRemove","onSelect"]))),128))],2)],64))}}),[["styles",[".rrg-suggestion-list__title{color:#777;font-family:inherit;font-size:14px;font-weight:500;line-height:1;margin-bottom:23px}.rrg-suggestion-list__title.is-hovered-highlight{margin-bottom:30px}.rrg-suggestion-list__list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:22px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;list-style:none;margin:0;padding:0}.rrg-suggestion-list__list.is-popular{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;gap:16px}"]]]),eS="key_cookie_nike_co";async function tS(e){const t=Uint8Array.from(atob(e),o=>o.charCodeAt(0)),r=t.slice(0,12),i=t.slice(12),s=await $u(),n=await crypto.subtle.decrypt({iv:r,name:"AES-GCM"},s,i);return new TextDecoder().decode(n)}async function Lu(e){const t=crypto.getRandomValues(new Uint8Array(12)),r=await $u(),i=new TextEncoder().encode(e),s=await crypto.subtle.encrypt({iv:t,name:"AES-GCM"},r,i),n=new Uint8Array(s),o=new Uint8Array(t.length+n.length);return o.set(t),o.set(n,t.length),btoa(String.fromCharCode(...o))}async function $u(){const t=new TextEncoder().encode(eS),r=await crypto.subtle.digest("SHA-256",t);return crypto.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt","decrypt"])}const rS="search_phrase_nike_co";async function ta(e=rS){const t=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));if(!t)return[];try{const r=await tS(decodeURIComponent(t[1]));return JSON.parse(r)}catch{return[]}}const iS="search_phrase_nike_co";async function nS(e){if(!e||e.trim()==="")return;const r=(await ta()).filter(o=>o.toLowerCase()!==e.toLowerCase()),i=JSON.stringify(r),s=await Lu(i),n=new Date(Date.now()+10*365*24*60*60*1e3).toUTCString();document.cookie=`${iS}=${encodeURIComponent(s)}; expires=${n}; path=/`}const sS="search_phrase_nike_co";async function oS(e){if(!e||e.trim()==="")return;const r=(await ta()).filter(a=>a.toLowerCase()!==e.toLowerCase()),i=[e,...r].slice(0,5),s=JSON.stringify(i),n=await Lu(s),o=new Date(Date.now()+10*365*24*60*60*1e3).toUTCString();document.cookie=`${sS}=${encodeURIComponent(n)}; expires=${o}; path=/`}const aS={class:"rrg-search-start"},lS={class:"rrg-search-start__button-icon"},cS={class:"rrg-search-start__button-text"},dS={class:"rrg-preview-top"},uS={class:"rrg-preview-content"},pS={class:"rrg-content-first","data-testid":"first-content"},fS={class:"rrg-content-first-suggestion"},gS={class:"rrg-content-first-view"},mS={class:"rrg-content-second","data-testid":"second-content"},hS={class:"rrg-content-second-suggestions"},bS={class:"rrg-content-second-recommendations"},vS=["data-product-id","data-product-index"],wS={class:"rrg-content-second-recommendations__button"},_S=50,yS=xe(ge({__name:"WebCpmSearchInputWithPreview",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},clickOnProductGA:{type:Function},currencySymbol:{type:String},deps:{type:Object},phrase:{type:String},placementIdPreview:{type:String},productsVisible:{type:Function},recomAddToCart:{type:Function},recomMouseDown:{type:Function},recomMouseDownWishlistAdd:{type:Function},recomMouseDownWishlistRemove:{type:Function},removeFromCart:{type:Function},removeFromWishlist:{type:Function},wishlist:{type:Object}},setup(e){const t=e,r=De({activeSuggestionsIndex:-1,contentId:"",isLoaded:!1,isShowContent:!1,isShowPreview:!1,moreProductsLength:0,popularSuggestions:[],products:[],productsVisible:new Set,recentViewsSuggestions:[],redirects:[],suggestions:[],userInput:""}),{t:i}=nt({messages:{en:{placeholder:"Search",popularSuggestions:"Popular suggestions",recentViewsSuggestions:"Recent views suggestions",search:"Search",showMore:"Show more {count} product | Show more {count} products",suggestions:"Suggestions"},es:{placeholder:"Buscar",popularSuggestions:"Términos de búsqueda populares",recentViewsSuggestions:"Búsquedas recientes",search:"Buscar",showMore:"Ver los {count} product | Ver los {count} productos",suggestions:"Sugerencias"}}}),s=le(),n=le(),o=le(),a=le(null),l=le(0),c=le(null),d=le(!1),p=me(()=>({"--test-var":`${l.value}px`,transform:`translateX(${l.value}px)`}));function u(){const N=l.value,j=200,V=performance.now();function te(Z){const re=Z-V,S=Math.min(re/j,1);l.value=N*(1-m(S)),S<1&&requestAnimationFrame(te)}requestAnimationFrame(te)}function m(N){return 1-(1-N)**3}function f(){d.value&&(d.value=!1,l.value>_S?r.isShowPreview=!1:u(),c.value=null)}function b(N){if(!d.value||c.value===null)return;const j=N.clientX-c.value;l.value=Math.max(0,j)}function y(N){r.isShowPreview&&(c.value=N.clientX,d.value=!0)}const g=me(()=>!r.userInput.length&&(r.popularSuggestions.length||r.recentViewsSuggestions.length));function h(N){return N.map((j,V)=>({...j,actualIndex:V+1}))}function v(){o.value&&o.value.focus()}function w(){r.isShowPreview=!1,r.isShowContent=!1}function C(N){r.isShowPreview&&(N.key==="ArrowDown"&&(N.preventDefault(),r.activeSuggestionsIndex=(r.activeSuggestionsIndex+1)%r.suggestions.length),N.key==="ArrowUp"&&(N.preventDefault(),r.activeSuggestionsIndex=(r.activeSuggestionsIndex-1+r.suggestions.length)%r.suggestions.length),N.key==="Escape"&&(N.preventDefault(),w(),o.value&&o.value.blur()),r.activeSuggestionsIndex>=0&&(r.userInput=r.suggestions[r.activeSuggestionsIndex].title))}function k(){o.value&&(o.value.blur(),I())}async function E(N){r.userInput=N,await M()}function O(N){r.recentViewsSuggestions=r.recentViewsSuggestions.filter(j=>(N.title===j.title&&nS(j.title),N.title!==j.title))}function I(){w(),r.userInput.length&&(oS(r.userInput),t.deps.onUpdatePhrase(r.userInput))}async function M(){if(r.isShowContent=!0,r.userInput.length)r.activeSuggestionsIndex=-1,r.isLoaded=!1,await t.deps.getPreviewProducts({phrase:r.userInput}).then(N=>{N.match({err:async j=>{j!=="AbortError"&&(r.contentId="",r.products=[],r.redirects=[],r.suggestions=[],r.isLoaded=!0)},ok:async j=>{r.contentId=j.contentId,r.products=h(j.products),r.productsVisible=new Set,r.redirects=j.redirects,r.suggestions=j.suggestions.slice(0,5),r.moreProductsLength=j.productsCount,r.isLoaded=!0}})});else{r.products=[],r.redirects=[],r.suggestions=[];const N=await ta();r.recentViewsSuggestions=N.map(j=>({suggestionPhrase:j,title:j})),r.isLoaded=!0}}async function U(){await t.deps.getPreviewInitial().then(N=>{N.match({err:async j=>{j!=="AbortError"&&(r.popularSuggestions=[])},ok:async j=>{r.popularSuggestions=j.slice(0,10)}})})}function $(N){r.userInput=N.suggestionPhrase,I()}async function G(){l.value=0,r.isShowPreview=!0,await M(),await U()}return es({itemSelector:".rrg-preview__product",onIntersectBatch:N=>{let j=!1;N.forEach(V=>{const te=V.target.dataset.productId,Z=r.products.find(re=>re.id===Number(te));Z&&!r.productsVisible.has(Z)&&(r.productsVisible.add(Z),j=!0)}),j&&t.productsVisible(Array.from(r.productsVisible))},targetContainer:a,watchSource:()=>r.products}),Gt(()=>{window.removeEventListener("keydown",C)}),Tt(async()=>{t.phrase&&(r.userInput=t.phrase),window.addEventListener("keydown",C)}),(N,j)=>(F(),q("div",{ref_key:"rootEl",ref:s,class:"rrg-search"},[z("div",aS,[z("div",{class:"rrg-search-start__button","data-testid":"show-preview",onPointerdown:G},[z("button",lS,[se(Fe,{name:"search"})]),z("span",cS,ne(H(i)("search")),1)],32)]),vt(z("div",{class:"rrg-backdrop","data-testid":"preview-backdrop",onPointerdown:w},null,544),[[_t,r.isShowPreview]]),se(Gs,{name:"slide-to-left",onAfterEnter:v},{default:Ve(()=>[vt(z("div",{ref_key:"previewEl",ref:n,class:"rrg-preview","data-testid":"preview-main",style:er(p.value),onPointercancel:f,onPointerdown:y,onPointermove:b,onPointerup:f},[z("div",dS,[se(Fe,{class:"rrg-preview-top__logo",name:"clientLogo",onPointerdown:w}),se(Ik,{ref_key:"inputRef",ref:o,class:"rrg-preview-top__input","test-id":"search-input",value:r.userInput,onKeydown:mg(k,["enter"]),onSearch:I,"onUpdate:value":E},null,8,["value"]),z("span",{class:"rrg-preview-top__cancel",onPointerdown:w}," Cancelar ",32)]),se(Gs,{name:"slide-to-bottom"},{default:Ve(()=>[vt(z("div",uS,[vt(z("div",pS,[vt(z("div",fS,[se(ea,{suggestions:r.popularSuggestions,"test-id":"popular-suggestion",title:H(i)("popularSuggestions"),type:"popular-suggestion",onSelect:$},null,8,["suggestions","title"])],512),[[_t,r.popularSuggestions.length]]),vt(z("div",gS,[se(ea,{suggestions:r.recentViewsSuggestions,"test-id":"recent-views-suggestion",title:H(i)("recentViewsSuggestions"),type:"recent-views-suggestion",onRemove:O,onSelect:$},null,8,["suggestions","title"])],512),[[_t,r.recentViewsSuggestions.length]])],512),[[_t,g.value]]),vt(se(rs,{class:"rrg-content-loader","test-id":"product-spinner"},null,512),[[_t,r.userInput.length&&!r.isLoaded]]),vt(z("div",mS,[z("div",hS,[se(ea,{"active-suggestions-index":r.activeSuggestionsIndex,suggestions:r.suggestions,"test-id":"default-suggestion",title:H(i)("suggestions"),type:"hovered-highlight-suggestion","user-input":r.userInput,onSelect:$},null,8,["active-suggestions-index","suggestions","title","user-input"])]),vt(z("div",bS,[z("div",{ref_key:"previewProducts",ref:a,class:"rrg-content-second-recommendations__products"},[(F(!0),q(ve,null,He(r.products,V=>(F(),q("div",{key:V.id,class:"rrg-preview__product","data-product-id":V.id,"data-product-index":V.actualIndex},[se(Xk,{id:V.id,"currency-symbol":N.currencySymbol,href:V.href,image:V.image,"in-wishlist":N.wishlist[V.id]||!1,name:V.name,"old-price":V.oldPrice,price:V.price,"products-params":V.productsParams,quantity:N.cart[V.id]||0,rating:V.rating,"reviews-count":V.reviewsCount,"show-rating":!!V.rating,"test-id":`product-card-preview-${V.id}`,onAddToCart:()=>{N.addToCart(V.id,r.contentId),N.clickOnProductGA(V)},onAddToWishlist:()=>{N.addToWishlist({groupId:V.groupId,id:V.id,name:V.name},r.contentId),N.clickOnProductGA(V)},onClickOnProduct:()=>{N.clickOnProduct(V.id,r.contentId),N.clickOnProductGA(V)},onRemoveFromCart:()=>{N.removeFromCart(V.id,r.contentId),N.clickOnProductGA(V)},onRemoveFromWishlist:()=>{N.removeFromWishlist({groupId:V.groupId,id:V.id,name:V.name},r.contentId),N.clickOnProductGA(V)}},null,8,["id","currency-symbol","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])],8,vS))),128))],512),z("div",wS,[vt(se(gi,{color:"primary","test-id":"show-more",text:H(i)("showMore",{count:r.moreProductsLength}),onPointerdown:I},null,8,["text"]),[[_t,r.moreProductsLength>0]])])],512),[[_t,r.products.length]])],512),[[_t,r.userInput.length&&r.isLoaded]])],512),[[_t,r.isShowContent]])]),_:1})],36),[[_t,r.isShowPreview]])]),_:1})],512))}}),[["styles",[".rrg-search{position:relative;z-index:1000}.rrg-search-start{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.rrg-search-start__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:30px;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:Helvetica-Neue,sans-serif;height:42px;width:185px}@media (width <= 1025px){.rrg-search-start__button{background:transparent;height:auto;width:auto}}.rrg-search-start__button-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:inherit;border:none;border-radius:30px;color:#111;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:12px}.rrg-search-start__button-icon svg{fill:transparent;font-size:18px}@media (width <= 1025px){.rrg-search-start__button-icon{padding:0}}.rrg-search-start__button-text{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#757575;cursor:text;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:14px;font-weight:400;height:100%;margin-left:2px;width:100%}@media (width <= 1025px){.rrg-search-start__button-text{display:none}}.rrg-search-start__button:hover{background-color:#e5e5e5}.rrg-search-start__button:hover .rrg-search-start__button-icon:hover{background-color:#cacacb}@media (width <= 1025px){.rrg-search-start__button:hover{background-color:transparent}.rrg-search-start__button:hover .rrg-search-start__button-icon:hover{background-color:transparent}}.slide-to-left-enter-active,.slide-to-left-leave-active{-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.slide-to-left-enter-from,.slide-to-left-leave-to{-webkit-transform:translateX(100%)!important;transform:translate(100%)!important}.slide-to-left-enter-to,.slide-to-left-leave-from{-webkit-transform:translateX(var(--test-var, 0))!important;transform:translate(var(--test-var, 0))!important}.rrg-backdrop{background-color:#111;inset:0;opacity:.5;position:fixed;z-index:9998}.rrg-preview{--test-var: 0;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;right:0;top:0;width:100%;z-index:9999}.rrg-preview-top{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;margin:12px 0;min-height:42px;padding:0 97px 0 60px;position:relative;width:100%}@media (width <= 1150px){.rrg-preview-top{padding:0 24px}}@media (width <= 1025px){.rrg-preview-top{gap:12px}}.rrg-preview-top__logo{cursor:pointer;font-size:65px;height:28px;left:60px;min-height:auto;min-width:auto;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:70px}@media (width <= 1025px){.rrg-preview-top__logo{display:none}}.rrg-preview-top__cancel{color:#111;cursor:pointer;font-family:inherit;font-size:16px;font-weight:500;line-height:1;position:absolute;right:60px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media (width <= 1025px){.rrg-preview-top__cancel{position:static;-webkit-transform:none;transform:none}}.rrg-preview-top__input{margin:0 auto;max-width:852px}@media (width <= 1120px){.rrg-preview-top__input{max-width:752px}}@media (width <= 1025px){.rrg-preview-top__input{margin:0!important;max-width:unset!important;width:100%!important}}.slide-to-bottom-enter-active,.slide-to-bottom-leave-active{-webkit-transition:opacity .15s ease-in .05s,max-height .3s ease-out,padding .3s ease-out;transition:opacity .15s ease-in .05s,max-height .3s ease-out,padding .3s ease-out}.slide-to-bottom-enter-from,.slide-to-bottom-leave-to{max-height:0!important;opacity:0;padding:0 97px 0 60px!important}@media (width <= 1025px){.slide-to-bottom-enter-from,.slide-to-bottom-leave-to{max-height:1000px!important;padding:0 24px!important}}.slide-to-bottom-enter-to,.slide-to-bottom-leave-from{max-height:502px;opacity:1;padding:32px 97px 83px 60px}@media (width <= 1025px){.slide-to-bottom-enter-to,.slide-to-bottom-leave-from{max-height:1000px!important;padding:32px 24px}}.rrg-preview-content{background-color:#fff;overflow-y:auto;padding:32px 97px 32px 60px;position:relative;z-index:9999}@media (width <= 1025px){.rrg-preview-content{max-height:80vh;padding:32px 24px}}.rrg-content-first{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:33px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:0 auto 51px;max-width:852px}.rrg-content-first-suggestion,.rrg-content-first-view{width:100%}.rrg-content-loader{margin:140px 0}.rrg-content-second{display:grid;gap:64px;grid-template-columns:100px 1fr}@media (width <= 1025px){.rrg-content-second{gap:16px;grid-template-columns:1fr;grid-template-rows:auto 1fr}}.rrg-content-second-suggestions{max-width:100px}@media (width <= 1025px){.rrg-content-second-suggestions{margin-bottom:32px;max-width:100%}}.rrg-content-second-recommendations .rrg-content-second-recommendations__products{display:grid;grid-auto-columns:minmax(150px,250px);grid-auto-flow:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:60px}.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product{display:none}@media (width >= 320px) and (width < 1025px){.rrg-content-second-recommendations .rrg-content-second-recommendations__products{gap:12px 16px;grid-auto-flow:unset;grid-template-columns:repeat(2,1fr);max-width:100%}.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product:nth-child(-n+8){display:block}}@media (width > 1025px) and (width < 1120px){.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product:nth-child(-n+4){display:block}}@media (width > 1120px){.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product:nth-child(-n+5){display:block}}.rrg-content-second-recommendations__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}"]]]),xS="rrg-smart-search-input-with-preview",kS="rrg-smart-search-result-page",SS="rrg-smart-search-settings",ra="smart-search",Mu=!1,Ru={'"':'"',"[":"]","{":"}"};function CS(e){const t=e.trim();if(t.length<1)return!1;const r=t[0];return!ES(r)||Ru[r]!==t[t.length-1]?!1:TS(t)}function ES(e){return Object.prototype.hasOwnProperty.call(Ru,e)}function TS(e){try{return JSON.parse(e)}catch{return!1}}function Fu(e){const t=e.productsParams.reduce((s,n)=>(s[n.name]=CS(n.value)?JSON.parse(n.value):n.value,s),{}),r=e.groupSizes.find(s=>s.productId===e.id)?.size,i=t?.color||"";return{dimension1:e.model||"",dimension2:t.referenceId||"",dimension3:`Size: ${r} - Color: ${i}`,dimension4:e.isAvailable?"available":"unavailable",index:e.actualIndex||0,item_brand:e.vendor,item_category:t.productType??"",item_category2:t.sizesGuide??"",item_category3:"",item_category4:"",item_id:e.id,item_name:e.name,item_variant:e.groupColors[0],price:e.price,quantity:1}}function ia(e,t){window.dataLayer=window.dataLayer||[],t&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push({...e,...t?{ecommerce:t}:{}})}function Nu(e,t=""){const r=[e].map(Fu),i={ab_testing:"buscador_loadstone",item_list_name:t.replace(" ","_"),items:r};ia({event:"select_item"},i)}function IS(e){const t={search_term:e.replace(" ","_")};ia({ab_testing:"buscador_loadstone",event:"search"},t)}function Du(e,t,r=""){const i=e.map(Fu),s={ab_testing:"buscador_loadstone",element_name:t??"Con resultados",item_list_name:r.replace(" ","_"),items:i};ia({event:"view_item_list"},s)}function zu(e,t){Object.entries(t).forEach(([r,i])=>{i==null||i===""?e.delete(r):typeof i=="object"?e.set(r,JSON.stringify(i)):e.set(r,String(i))})}function AS(e){const t=new URLSearchParams;return zu(t,e),t.toString()}function PS(e){try{const t={},r=e.startsWith("?")?e.slice(1):e,i=new URLSearchParams(r);for(const[s,n]of i.entries())try{t[s]=JSON.parse(n)}catch{t[s]=n}return t}catch(t){return console.error("Error parsing query parameters:",t),{}}}function Bu(e){const t=new URL(window.location.href);zu(t.searchParams,e),t.toString()!==window.location.href&&window.history.pushState({},"",t.toString())}const Zi=ah({fallbackLocale:"es",legacy:!1,locale:"es",pluralizationRules:{ru(e,t){if(e===0)return 0;const r=e>10&&e<20,i=e%10===1;return t<4?!r&&i?1:2:!r&&i?1:!r&&e%10>=2&&e%10<=4||t<4?2:3}}});function OS(e){const t=document.cookie.match(new RegExp(`(?:^|; )${e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")}=([^;]*)`));return t?decodeURIComponent(t[1]):null}function LS(){const e=OS("rcuid")||"";return{cart:{},currencySymbol:"$",getPartnerPageLocation:()=>({params:{},pathname:"/search"}),lang:"es",partnerId:"68b0588bb1543cb96cbe1d55",placementIdEmpty1:"empty_results_1",placementIdEmpty2:"empty_results_2",placementIdPreview:"preview_initial",sessionId:e,stock:"",wishlist:{}}}const lt=LS(),_e=De({cart:lt.cart,currencySymbol:lt.currencySymbol,lang:lt.lang,placementIdEmpty1:lt.placementIdEmpty1,placementIdEmpty2:lt.placementIdEmpty2,placementIdPreview:lt.placementIdPreview,sessionId:lt.sessionId,stock:lt.stock,wishlist:lt.wishlist}),is=PS(window.location.search)[ra]||{},Zt=le(is?.phrase||""),ns=De({filtersValues:is?.filtersValues||{},page:is?.page||1,sorting:is?.sorting||void 0});async function $S(e){const t=lt.getPartnerPageLocation(e),r=window.location.pathname===t.pathname,i={...t.params,[ra]:{phrase:e}};if(!r){window.location.href=`${t.pathname}?${AS(i)}`;return}e!==Zt.value&&(Bu(i),ns.filtersValues={},ns.page=1,ns.sorting=void 0,Zt.value=e)}async function MS(e){const t={};Object.keys(e.filtersValues).length>0&&(t.filtersValues=e.filtersValues),e.page&&(t.page=e.page),Zt.value&&(t.phrase=Zt.value),e.sorting&&(t.sorting=e.sorting),Bu({[ra]:t})}window.addEventListener("popstate",async()=>{location.reload()}),customElements.define(SS,Xs({props:{cart:{default:"",type:String},currencySymbol:{default:_e.currencySymbol,type:String},lang:{default:_e.lang,type:String},sessionId:{default:_e.sessionId,type:String},stock:{default:_e.stock,type:String},wishlist:{default:"",type:String}},render(e){_e.currencySymbol=e.currencySymbol,_e.lang=e.lang,_e.stock=e.stock,_e.sessionId=e.sessionId,_e.cart=e.cart?JSON.parse(e.cart):{},_e.wishlist=e.wishlist?JSON.parse(e.wishlist):{},Zi.global.locale.value=_e.lang},styles:[Th]})),customElements.define(xS,Xs({emits:{addToCart:e=>!!e,addToWishlist:e=>!!e.id,clickOnProduct:e=>!!e,removeFromCart:e=>!!e,removeFromWishlist:e=>!!e.id},render(){return it(yS,{addToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},addToWishlist:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},cart:_e.cart,clickOnProduct:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},clickOnProductGA:e=>{Nu(e,Zt.value)},currencySymbol:_e.currencySymbol,deps:{getPreviewInitial:yk({initialPreviewHttpClientDelegate:yh,lang:_e.lang,partnerId:lt.partnerId,sessionId:_e.sessionId,stock:_e.stock}),getPreviewProducts:xk({emptyProductsUrls:Mu,getGroupProductsByIdsHttpClient:dd,lang:_e.lang,partnerId:lt.partnerId,phrasePreviewHttpClientDelegate:xh,sessionId:_e.sessionId,stock:_e.stock}),onUpdatePhrase:$S},phrase:Zt.value,placementIdPreview:_e.placementIdPreview,productsVisible:(e,t)=>{Du(e,t,Zt.value)},recomAddToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.recomAddToCart(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDown:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.recomMouseDown(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistAdd:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistRemove:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},removeFromCart:(e,t)=>{this.$emit("removeFromCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},removeFromWishlist:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},wishlist:_e.wishlist})},styles:[fd]},{configureApp(e){e.use(Zi),e.provide(yo,Zi)}})),customElements.define(kS,Xs({emits:{addToCart:e=>!!e,addToWishlist:e=>!!e.id,clickOnProduct:e=>!!e,removeFromCart:e=>!!e,removeFromWishlist:e=>!!e.id},render(){return it(_k,{addToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},addToWishlist:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},cart:_e.cart,clickOnProduct:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},clickOnProductGA:e=>{Nu(e,Zt.value)},currencySymbol:_e.currencySymbol,deps:{getProductsRecommendations:Lh({partnerId:lt.partnerId,productsRecommendationsHttpClientDelegate:Ch,sessionId:_e.sessionId,stock:_e.stock}),onUpdateState:MS,searchProducts:Mh({emptyProductsUrls:Mu,getGroupProductsByIdsHttpClient:dd,lang:_e.lang,partnerId:lt.partnerId,searchProductsHttpClient:Eh,sessionId:_e.sessionId,stock:_e.stock})},initialState:ns,phrase:Zt.value,placementId:{placementIdEmpty1:lt.placementIdEmpty1,placementIdEmpty2:lt.placementIdEmpty2},productsVisible:(e,t)=>{Du(e,t,Zt.value)},recomAddToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.recomAddToCart(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDown:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.recomMouseDown(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistAdd:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistRemove:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},removeFromCart:(e,t)=>{this.$emit("removeFromCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},removeFromWishlist:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},resultGASearchEvent:e=>{IS(e)},wishlist:_e.wishlist})},styles:[fd]},{configureApp(e){e.use(Zi),e.provide(yo,Zi)}}));function RS(){(window.rrApiOnReady=window.rrApiOnReady||[]).push(function(){try{window.rrVisitorSessionId=window?.retailrocket?.api.getSessionId()||"";const e=document.querySelector("rrg-smart-search-settings");e&&e.setAttribute("session-id",window.rrVisitorSessionId)}catch(e){console.error(e)}})}typeof window<"u"&&RS()});
|
|
100
|
+
`},Ty=["data-testid","viewBox","innerHTML"],Iy=ge({__name:"Icon",props:{name:{type:null},testId:{type:String}},setup(e){const t=e,r=me(()=>Eu[t.name].replace(/<svg[^>]*>/i,"").replace(/<\/svg>/i,"")||""),i=me(()=>{const s=Eu[t.name].match(/viewBox="[^"]*"/);return s&&s.length?s[0].split("=")[1].replace(/"/g,""):""});return(s,n)=>(F(),q("svg",{class:"rrg-icon","data-testid":s.testId,viewBox:i.value,xmlns:"http://www.w3.org/2000/svg",innerHTML:r.value},null,8,Ty))}}),Ay=".rrg-icon{fill:currentcolor;height:1em;min-height:1em;min-width:1em;width:1em}",xe=(e,t)=>{const r=e.__vccOpts||e;for(const[i,s]of t)r[i]=s;return r},Fe=xe(Iy,[["styles",[Ay]]]),Py=["data-testid"],Oy=["data-testid","href"],Ly={class:"rrg-product-card__image-wrapper"},$y={key:0,class:"rrg-product-card__preloader"},My=["alt","data-testid"],Ry={class:"rrg-product-card__info"},Fy={class:"rrg-product-card__block-rating"},Ny={key:0,class:"rrg-product-card__rating-wrapper"},Dy=["data-testid"],zy={class:"rrg-product-card__rating-count-star"},By=["data-testid"],Vy=["data-testid"],Hy={class:"rrg-product-card__complement-name"},Uy={class:"rrg-product-card__price-wrapper"},Wy=["data-testid"],Gy=["data-testid"],jy={key:0,class:"rrg-product-card__counter-colors"},Yy=["data-testid"],Ky={key:2,class:"rrg-product-card__spaser-mobile"},Xy=496,qy=496,Zo=xe(ge({__name:"ProductCard",props:{currencySymbol:{type:String},groupSizes:{type:Array},href:{type:String},id:{type:Number},image:{type:String},inWishlist:{type:Boolean},name:{type:String},oldPrice:{type:Number},price:{type:Number},productsParams:{type:Array},quantity:{type:Number},rating:{type:Number},reviewsCount:{type:Number},showRating:{type:Boolean},testId:{type:String}},emits:["clickOnProduct","addToCart","removeFromCart","addToWishlist","removeFromWishlist"],setup(e,{emit:t}){const r=e,i=t,s=De({isLoading:!0,showSizes:!1}),{t:n}=nt({messages:{en:{discount:"discount",size:"Select size"},es:{discount:"de descuento",size:"Seleccionar talla"}}}),o=`https://cdnimg.retailrocket.net/api/1.0/partner/68b0588bb1543cb96cbe1d55/item/${r.id}/picture/?format=jpg&width=${Xy}&height=${qy}&scale=both`,a=r.name.split("Talla")[0].trim(),l=Cu(r.productsParams),{getTestId:c}=Be(r.testId),{locale:d}=nt(),p=me(()=>r.oldPrice>r.price),u=me(()=>p.value?Math.round(100-r.price/r.oldPrice*100):0);function m(){i("clickOnProduct")}function f(){s.isLoading=!1}function b(g){return qo(g,r.currencySymbol,d.value)}function y(g){return new Intl.NumberFormat("en").format(g)}return(g,h)=>(F(),q("div",{class:"rrg-product-card","data-testid":g.testId},[z("a",{class:"rrg-product-card__link","data-testid":H(c)("link"),href:g.href,onPointerdown:m},[z("div",Ly,[s.isLoading?(F(),q("div",$y)):oe("",!0),h[0]||(h[0]=z("div",{class:"swiper-lazy-preloader"},null,-1)),z("img",{alt:H(a),class:Ne(["rrg-product-card__image",{"rrg-product-card__image--loading":s.isLoading}]),"data-testid":H(c)("image"),loading:"lazy",src:o,onLoad:f},null,42,My)]),z("div",Ry,[z("div",Fy,[g.showRating?(F(),q("div",Ny,[z("div",{class:"rrg-product-card__rating","data-testid":H(c)("rating")},[(F(!0),q(ve,null,He(Math.round(+g.rating),v=>(F(),de(Fe,{key:`filled-${v}`,class:"rrg-product-card__rating-icon",name:"star"}))),128)),(F(!0),q(ve,null,He(5-Math.round(+g.rating),v=>(F(),de(Fe,{key:`empty-${v}`,class:"rrg-product-card__rating-icon--grey",name:"star"}))),128)),z("span",zy,ne(Math.round(+g.rating))+".0 ",1)],8,Dy),g.reviewsCount?(F(),q("div",{key:0,class:"rrg-product-card__reviews-count","data-testid":H(c)("reviewsCount")}," ("+ne(y(g.reviewsCount))+") ",9,By)):oe("",!0)])):oe("",!0)]),z("div",{class:"rrg-product-card__name","data-testid":H(c)("name")},ne(H(a)),9,Vy),z("div",Hy,ne(H(l).complementName),1),z("div",Uy,[p.value?(F(),q("span",{key:0,class:"rrg-product-card__old-price","data-testid":H(c)("oldPrice")},ne(b(g.oldPrice)),9,Wy)):oe("",!0),z("span",{class:"rrg-product-card__price","data-testid":H(c)("price")},ne(b(g.price)),9,Gy)]),H(l).colors?(F(),q("div",jy,ne(H(l).colors)+" "+ne(+H(l).colors>1?"Colores":"Color"),1)):oe("",!0),u.value?(F(),q("div",{key:1,class:"rrg-product-card__discount-percentage","data-testid":H(c)("discountPercentage")},ne(u.value)+"% "+ne(H(n)("discount")),9,Yy)):(F(),q("div",Ky))])],40,Oy)],8,Py))}}),[["styles",["@-webkit-keyframes spin{0%{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0)}to{-webkit-transform:translate(-50%,-50%) rotate(360deg);transform:translate(-50%,-50%) rotate(360deg)}}@keyframes spin{0%{-webkit-transform:translate(-50%,-50%) rotate(0deg);transform:translate(-50%,-50%) rotate(0)}to{-webkit-transform:translate(-50%,-50%) rotate(360deg);transform:translate(-50%,-50%) rotate(360deg)}}.rrg-product-card{background:#fff;border-radius:5px 5px 0 0;display:grid;gap:12px;grid-template-rows:1fr;padding:6px 10px 0;position:relative;text-decoration:none;width:100%}.rrg-product-card:hover{-webkit-filter:drop-shadow(0 4px 30px rgb(0 0 0 / 20%));filter:drop-shadow(0 4px 30px rgb(0 0 0 / 20%));z-index:2}@media (width < 1026px){.rrg-product-card:hover{-webkit-filter:none;filter:none}}@media (width < 1026px){.rrg-product-card{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}}@media (width < 481px){.rrg-product-card{-webkit-box-shadow:0 2px 6px 0 rgb(0 0 0 / 8%);box-shadow:0 2px 6px #00000014;gap:0;padding:0}}.rrg-product-card .swiper-lazy-preloader{-webkit-animation:none!important;animation:none!important;background-color:#f5f5f5;border:none;border-radius:unset;display:none;height:100%;left:0;margin:0;position:absolute;top:0;width:100%;z-index:0}.rrg-product-card__link{color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;outline:none;text-decoration:none;width:100%}.rrg-product-card__image-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:50%;position:relative;width:100%}.rrg-product-card__image{aspect-ratio:1/1;height:100%;left:0;max-width:100%;-o-object-fit:contain;object-fit:contain;opacity:1;position:absolute;top:0;width:100%}@media (width <= 1025px){.rrg-product-card__image{left:50%;max-width:450px;-webkit-transform:translateX(-50%);transform:translate(-50%)}}.rrg-product-card__image--loading{opacity:0}.rrg-product-card__preloader{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.rrg-product-card__discount-percentage{color:#128a09;font-size:1rem;font-weight:600}@media (width < 481px){.rrg-product-card__discount-percentage{font-size:13px;height:15px}}@media (width < 481px){.rrg-product-card__spaser-mobile{height:15px}}.rrg-product-card__block-rating{height:20px}.rrg-product-card__rating-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;width:auto}.rrg-product-card__rating{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;color:#111;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;font-weight:500;gap:8px;line-height:1;width:auto}.rrg-product-card__rating-icon--grey{color:#ccc}.rrg-product-card__rating-count-star{font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:19.5px}.rrg-product-card__reviews-count{color:#111;font-size:14px;font-weight:400;line-height:1}.rrg-product-card__info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;gap:12px;padding-bottom:1.5rem}@media (width < 481px){.rrg-product-card__info{gap:4px;padding:0 0 0 10px}}.rrg-product-card__name{-webkit-box-orient:vertical;color:#111;display:-webkit-box;font-size:16px;font-weight:500;-webkit-line-clamp:1;line-clamp:1;line-height:1.15;overflow:hidden;text-overflow:ellipsis}@media (width < 481px){.rrg-product-card__name{font-size:14px;line-height:20px}}.rrg-product-card__complement-name{color:#757575;display:-webkit-box;font-size:1rem;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis}@media (width < 481px){.rrg-product-card__complement-name{font-size:12px;line-height:14px}}.rrg-product-card__price-wrapper{-webkit-box-align:end;-ms-flex-align:end;align-items:end;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;gap:8px;line-height:1;margin-top:auto;width:auto}@media (width < 481px){.rrg-product-card__price-wrapper{font-size:14px;line-height:16px}}.rrg-product-card__price{font-weight:600}.rrg-product-card__old-price{-webkit-box-orient:vertical;color:#757575;display:-webkit-box;font-weight:500;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-decoration:line-through;text-overflow:ellipsis}.rrg-product-card__counter-colors{color:#757575;font-size:1rem}@media (width < 481px){.rrg-product-card__counter-colors{font-size:12px;line-height:14px}}"]]]);function Jo(e,t,r,i){return e.params.createElements&&Object.keys(i).forEach(s=>{if(!r[s]&&r.auto===!0){let n=qt(e.el,`.${i[s]}`)[0];n||(n=qi("div",i[s]),n.className=i[s],e.el.append(n)),r[s]=n,t[s]=n}}),r}function Zy(e){let{swiper:t,extendParams:r,on:i,emit:s}=e;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function n(f){let b;return f&&typeof f=="string"&&t.isElement&&(b=t.el.querySelector(f)||t.hostEl.querySelector(f),b)?b:(f&&(typeof f=="string"&&(b=[...document.querySelectorAll(f)]),t.params.uniqueNavElements&&typeof f=="string"&&b&&b.length>1&&t.el.querySelectorAll(f).length===1?b=t.el.querySelector(f):b&&b.length===1&&(b=b[0])),f&&!b?f:b)}function o(f,b){const y=t.params.navigation;f=Ze(f),f.forEach(g=>{g&&(g.classList[b?"add":"remove"](...y.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=b),t.params.watchOverflow&&t.enabled&&g.classList[t.isLocked?"add":"remove"](y.lockClass))})}function a(){const{nextEl:f,prevEl:b}=t.navigation;if(t.params.loop){o(b,!1),o(f,!1);return}o(b,t.isBeginning&&!t.params.rewind),o(f,t.isEnd&&!t.params.rewind)}function l(f){f.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(f){f.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function d(){const f=t.params.navigation;if(t.params.navigation=Jo(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let b=n(f.nextEl),y=n(f.prevEl);Object.assign(t.navigation,{nextEl:b,prevEl:y}),b=Ze(b),y=Ze(y);const g=(h,v)=>{h&&h.addEventListener("click",v==="next"?c:l),!t.enabled&&h&&h.classList.add(...f.lockClass.split(" "))};b.forEach(h=>g(h,"next")),y.forEach(h=>g(h,"prev"))}function p(){let{nextEl:f,prevEl:b}=t.navigation;f=Ze(f),b=Ze(b);const y=(g,h)=>{g.removeEventListener("click",h==="next"?c:l),g.classList.remove(...t.params.navigation.disabledClass.split(" "))};f.forEach(g=>y(g,"next")),b.forEach(g=>y(g,"prev"))}i("init",()=>{t.params.navigation.enabled===!1?m():(d(),a())}),i("toEdge fromEdge lock unlock",()=>{a()}),i("destroy",()=>{p()}),i("enable disable",()=>{let{nextEl:f,prevEl:b}=t.navigation;if(f=Ze(f),b=Ze(b),t.enabled){a();return}[...f,...b].filter(y=>!!y).forEach(y=>y.classList.add(t.params.navigation.lockClass))}),i("click",(f,b)=>{let{nextEl:y,prevEl:g}=t.navigation;y=Ze(y),g=Ze(g);const h=b.target;let v=g.includes(h)||y.includes(h);if(t.isElement&&!v){const w=b.path||b.composedPath&&b.composedPath();w&&(v=w.find(C=>y.includes(C)||g.includes(C)))}if(t.params.navigation.hideOnClick&&!v){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===h||t.pagination.el.contains(h)))return;let w;y.length?w=y[0].classList.contains(t.params.navigation.hiddenClass):g.length&&(w=g[0].classList.contains(t.params.navigation.hiddenClass)),s(w===!0?"navigationShow":"navigationHide"),[...y,...g].filter(C=>!!C).forEach(C=>C.classList.toggle(t.params.navigation.hiddenClass))}});const u=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},m=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:u,disable:m,update:a,init:d,destroy:p})}function fi(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function Jy(e){let{swiper:t,extendParams:r,on:i,emit:s}=e;const n="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:h=>h,formatFractionTotal:h=>h,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),t.pagination={el:null,bullets:[]};let o,a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(h,v){const{bulletActiveClass:w}=t.params.pagination;h&&(h=h[`${v==="prev"?"previous":"next"}ElementSibling`],h&&(h.classList.add(`${w}-${v}`),h=h[`${v==="prev"?"previous":"next"}ElementSibling`],h&&h.classList.add(`${w}-${v}-${v}`)))}function d(h,v,w){if(h=h%w,v=v%w,v===h+1)return"next";if(v===h-1)return"previous"}function p(h){const v=h.target.closest(fi(t.params.pagination.bulletClass));if(!v)return;h.preventDefault();const w=Zn(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===w)return;const C=d(t.realIndex,w,t.slides.length);C==="next"?t.slideNext():C==="previous"?t.slidePrev():t.slideToLoop(w)}else t.slideTo(w)}function u(){const h=t.rtl,v=t.params.pagination;if(l())return;let w=t.pagination.el;w=Ze(w);let C,k;const E=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,O=t.params.loop?Math.ceil(E/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(k=t.previousRealIndex||0,C=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(C=t.snapIndex,k=t.previousSnapIndex):(k=t.previousIndex||0,C=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const I=t.pagination.bullets;let M,U,$;if(v.dynamicBullets&&(o=Do(I[0],t.isHorizontal()?"width":"height"),w.forEach(G=>{G.style[t.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&k!==void 0&&(a+=C-(k||0),a>v.dynamicMainBullets-1?a=v.dynamicMainBullets-1:a<0&&(a=0)),M=Math.max(C-a,0),U=M+(Math.min(I.length,v.dynamicMainBullets)-1),$=(U+M)/2),I.forEach(G=>{const N=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(j=>`${v.bulletActiveClass}${j}`)].map(j=>typeof j=="string"&&j.includes(" ")?j.split(" "):j).flat();G.classList.remove(...N)}),w.length>1)I.forEach(G=>{const N=Zn(G);N===C?G.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&G.setAttribute("part","bullet"),v.dynamicBullets&&(N>=M&&N<=U&&G.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),N===M&&c(G,"prev"),N===U&&c(G,"next"))});else{const G=I[C];if(G&&G.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&I.forEach((N,j)=>{N.setAttribute("part",j===C?"bullet-active":"bullet")}),v.dynamicBullets){const N=I[M],j=I[U];for(let V=M;V<=U;V+=1)I[V]&&I[V].classList.add(...`${v.bulletActiveClass}-main`.split(" "));c(N,"prev"),c(j,"next")}}if(v.dynamicBullets){const G=Math.min(I.length,v.dynamicMainBullets+4),N=(o*G-o)/2-$*o,j=h?"right":"left";I.forEach(V=>{V.style[t.isHorizontal()?j:"top"]=`${N}px`})}}w.forEach((I,M)=>{if(v.type==="fraction"&&(I.querySelectorAll(fi(v.currentClass)).forEach(U=>{U.textContent=v.formatFractionCurrent(C+1)}),I.querySelectorAll(fi(v.totalClass)).forEach(U=>{U.textContent=v.formatFractionTotal(O)})),v.type==="progressbar"){let U;v.progressbarOpposite?U=t.isHorizontal()?"vertical":"horizontal":U=t.isHorizontal()?"horizontal":"vertical";const $=(C+1)/O;let G=1,N=1;U==="horizontal"?G=$:N=$,I.querySelectorAll(fi(v.progressbarFillClass)).forEach(j=>{j.style.transform=`translate3d(0,0,0) scaleX(${G}) scaleY(${N})`,j.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(Jn(I,v.renderCustom(t,C+1,O)),M===0&&s("paginationRender",I)):(M===0&&s("paginationRender",I),s("paginationUpdate",I)),t.params.watchOverflow&&t.enabled&&I.classList[t.isLocked?"add":"remove"](v.lockClass)})}function m(){const h=t.params.pagination;if(l())return;const v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let w=t.pagination.el;w=Ze(w);let C="";if(h.type==="bullets"){let k=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&k>v&&(k=v);for(let E=0;E<k;E+=1)h.renderBullet?C+=h.renderBullet.call(t,E,h.bulletClass):C+=`<${h.bulletElement} ${t.isElement?'part="bullet"':""} class="${h.bulletClass}"></${h.bulletElement}>`}h.type==="fraction"&&(h.renderFraction?C=h.renderFraction.call(t,h.currentClass,h.totalClass):C=`<span class="${h.currentClass}"></span> / <span class="${h.totalClass}"></span>`),h.type==="progressbar"&&(h.renderProgressbar?C=h.renderProgressbar.call(t,h.progressbarFillClass):C=`<span class="${h.progressbarFillClass}"></span>`),t.pagination.bullets=[],w.forEach(k=>{h.type!=="custom"&&Jn(k,C||""),h.type==="bullets"&&t.pagination.bullets.push(...k.querySelectorAll(fi(h.bulletClass)))}),h.type!=="custom"&&s("paginationRender",w[0])}function f(){t.params.pagination=Jo(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const h=t.params.pagination;if(!h.el)return;let v;typeof h.el=="string"&&t.isElement&&(v=t.el.querySelector(h.el)),!v&&typeof h.el=="string"&&(v=[...document.querySelectorAll(h.el)]),v||(v=h.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof h.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(h.el)],v.length>1&&(v=v.find(w=>lu(w,".swiper")[0]===t.el))),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=Ze(v),v.forEach(w=>{h.type==="bullets"&&h.clickable&&w.classList.add(...(h.clickableClass||"").split(" ")),w.classList.add(h.modifierClass+h.type),w.classList.add(t.isHorizontal()?h.horizontalClass:h.verticalClass),h.type==="bullets"&&h.dynamicBullets&&(w.classList.add(`${h.modifierClass}${h.type}-dynamic`),a=0,h.dynamicMainBullets<1&&(h.dynamicMainBullets=1)),h.type==="progressbar"&&h.progressbarOpposite&&w.classList.add(h.progressbarOppositeClass),h.clickable&&w.addEventListener("click",p),t.enabled||w.classList.add(h.lockClass)}))}function b(){const h=t.params.pagination;if(l())return;let v=t.pagination.el;v&&(v=Ze(v),v.forEach(w=>{w.classList.remove(h.hiddenClass),w.classList.remove(h.modifierClass+h.type),w.classList.remove(t.isHorizontal()?h.horizontalClass:h.verticalClass),h.clickable&&(w.classList.remove(...(h.clickableClass||"").split(" ")),w.removeEventListener("click",p))})),t.pagination.bullets&&t.pagination.bullets.forEach(w=>w.classList.remove(...h.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const h=t.params.pagination;let{el:v}=t.pagination;v=Ze(v),v.forEach(w=>{w.classList.remove(h.horizontalClass,h.verticalClass),w.classList.add(t.isHorizontal()?h.horizontalClass:h.verticalClass)})}),i("init",()=>{t.params.pagination.enabled===!1?g():(f(),m(),u())}),i("activeIndexChange",()=>{typeof t.snapIndex>"u"&&u()}),i("snapIndexChange",()=>{u()}),i("snapGridLengthChange",()=>{m(),u()}),i("destroy",()=>{b()}),i("enable disable",()=>{let{el:h}=t.pagination;h&&(h=Ze(h),h.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{u()}),i("click",(h,v)=>{const w=v.target,C=Ze(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&C&&C.length>0&&!w.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&w===t.navigation.nextEl||t.navigation.prevEl&&w===t.navigation.prevEl))return;const k=C[0].classList.contains(t.params.pagination.hiddenClass);s(k===!0?"paginationShow":"paginationHide"),C.forEach(E=>E.classList.toggle(t.params.pagination.hiddenClass))}});const y=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:h}=t.pagination;h&&(h=Ze(h),h.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),f(),m(),u()},g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:h}=t.pagination;h&&(h=Ze(h),h.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),b()};Object.assign(t.pagination,{enable:y,disable:g,render:m,update:u,init:f,destroy:b})}function Qy(e){let{swiper:t,extendParams:r,on:i,emit:s}=e;const n=Pt();let o=!1,a=null,l=null,c,d,p,u;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null};function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:$,rtlTranslate:G}=t,{dragEl:N,el:j}=$,V=t.params.scrollbar,te=t.params.loop?t.progressLoop:t.progress;let Z=d,re=(p-d)*te;G?(re=-re,re>0?(Z=d-re,re=0):-re+d>p&&(Z=p+re)):re<0?(Z=d+re,re=0):re+d>p&&(Z=p-re),t.isHorizontal()?(N.style.transform=`translate3d(${re}px, 0, 0)`,N.style.width=`${Z}px`):(N.style.transform=`translate3d(0px, ${re}px, 0)`,N.style.height=`${Z}px`),V.hide&&(clearTimeout(a),j.style.opacity=1,a=setTimeout(()=>{j.style.opacity=0,j.style.transitionDuration="400ms"},1e3))}function f($){!t.params.scrollbar.el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${$}ms`)}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:$}=t,{dragEl:G,el:N}=$;G.style.width="",G.style.height="",p=t.isHorizontal()?N.offsetWidth:N.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),t.params.scrollbar.dragSize==="auto"?d=p*u:d=parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?G.style.width=`${d}px`:G.style.height=`${d}px`,u>=1?N.style.display="none":N.style.display="",t.params.scrollbar.hide&&(N.style.opacity=0),t.params.watchOverflow&&t.enabled&&$.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y($){return t.isHorizontal()?$.clientX:$.clientY}function g($){const{scrollbar:G,rtlTranslate:N}=t,{el:j}=G;let V;V=(y($)-a_(j)[t.isHorizontal()?"left":"top"]-(c!==null?c:d/2))/(p-d),V=Math.max(Math.min(V,1),0),N&&(V=1-V);const te=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*V;t.updateProgress(te),t.setTranslate(te),t.updateActiveIndex(),t.updateSlidesClasses()}function h($){const G=t.params.scrollbar,{scrollbar:N,wrapperEl:j}=t,{el:V,dragEl:te}=N;o=!0,c=$.target===te?y($)-$.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,$.preventDefault(),$.stopPropagation(),j.style.transitionDuration="100ms",te.style.transitionDuration="100ms",g($),clearTimeout(l),V.style.transitionDuration="0ms",G.hide&&(V.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",$)}function v($){const{scrollbar:G,wrapperEl:N}=t,{el:j,dragEl:V}=G;o&&($.preventDefault&&$.cancelable?$.preventDefault():$.returnValue=!1,g($),N.style.transitionDuration="0ms",j.style.transitionDuration="0ms",V.style.transitionDuration="0ms",s("scrollbarDragMove",$))}function w($){const G=t.params.scrollbar,{scrollbar:N,wrapperEl:j}=t,{el:V}=N;o&&(o=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",j.style.transitionDuration=""),G.hide&&(clearTimeout(l),l=No(()=>{V.style.opacity=0,V.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",$),G.snapOnRelease&&t.slideToClosest())}function C($){const{scrollbar:G,params:N}=t,j=G.el;if(!j)return;const V=j,te=N.passiveListeners?{passive:!1,capture:!1}:!1,Z=N.passiveListeners?{passive:!0,capture:!1}:!1;if(!V)return;const re=$==="on"?"addEventListener":"removeEventListener";V[re]("pointerdown",h,te),n[re]("pointermove",v,te),n[re]("pointerup",w,Z)}function k(){!t.params.scrollbar.el||!t.scrollbar.el||C("on")}function E(){!t.params.scrollbar.el||!t.scrollbar.el||C("off")}function O(){const{scrollbar:$,el:G}=t;t.params.scrollbar=Jo(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const N=t.params.scrollbar;if(!N.el)return;let j;if(typeof N.el=="string"&&t.isElement&&(j=t.el.querySelector(N.el)),!j&&typeof N.el=="string"){if(j=n.querySelectorAll(N.el),!j.length)return}else j||(j=N.el);t.params.uniqueNavElements&&typeof N.el=="string"&&j.length>1&&G.querySelectorAll(N.el).length===1&&(j=G.querySelector(N.el)),j.length>0&&(j=j[0]),j.classList.add(t.isHorizontal()?N.horizontalClass:N.verticalClass);let V;j&&(V=j.querySelector(fi(t.params.scrollbar.dragClass)),V||(V=qi("div",t.params.scrollbar.dragClass),j.append(V))),Object.assign($,{el:j,dragEl:V}),N.draggable&&k(),j&&j.classList[t.enabled?"remove":"add"](...$r(t.params.scrollbar.lockClass))}function I(){const $=t.params.scrollbar,G=t.scrollbar.el;G&&G.classList.remove(...$r(t.isHorizontal()?$.horizontalClass:$.verticalClass)),E()}i("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const $=t.params.scrollbar;let{el:G}=t.scrollbar;G=Ze(G),G.forEach(N=>{N.classList.remove($.horizontalClass,$.verticalClass),N.classList.add(t.isHorizontal()?$.horizontalClass:$.verticalClass)})}),i("init",()=>{t.params.scrollbar.enabled===!1?U():(O(),b(),m())}),i("update resize observerUpdate lock unlock changeDirection",()=>{b()}),i("setTranslate",()=>{m()}),i("setTransition",($,G)=>{f(G)}),i("enable disable",()=>{const{el:$}=t.scrollbar;$&&$.classList[t.enabled?"remove":"add"](...$r(t.params.scrollbar.lockClass))}),i("destroy",()=>{I()});const M=()=>{t.el.classList.remove(...$r(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...$r(t.params.scrollbar.scrollbarDisabledClass)),O(),b(),m()},U=()=>{t.el.classList.add(...$r(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...$r(t.params.scrollbar.scrollbarDisabledClass)),I()};Object.assign(t.scrollbar,{enable:M,disable:U,updateSize:b,setTranslate:m,init:O,destroy:I})}function e1(e){let{swiper:t,extendParams:r,on:i,emit:s,params:n}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=n&&n.autoplay?n.autoplay.delay:3e3,c=n&&n.autoplay?n.autoplay.delay:3e3,d,p=new Date().getTime(),u,m,f,b,y,g,h;function v(Z){!t||t.destroyed||!t.wrapperEl||Z.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!(h||Z.detail&&Z.detail.bySwiperTouchMove)&&M())}const w=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?u=!0:u&&(c=d,u=!1);const Z=t.autoplay.paused?d:p+c-new Date().getTime();t.autoplay.timeLeft=Z,s("autoplayTimeLeft",Z,Z/l),a=requestAnimationFrame(()=>{w()})},C=()=>{let Z;return t.virtual&&t.params.virtual.enabled?Z=t.slides.find(S=>S.classList.contains("swiper-slide-active")):Z=t.slides[t.activeIndex],Z?parseInt(Z.getAttribute("data-swiper-autoplay"),10):void 0},k=Z=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),w();let re=typeof Z>"u"?t.params.autoplay.delay:Z;l=t.params.autoplay.delay,c=t.params.autoplay.delay;const S=C();!Number.isNaN(S)&&S>0&&typeof Z>"u"&&(re=S,l=S,c=S),d=re;const Q=t.params.speed,ae=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(Q,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,Q,!0,!0),s("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(Q,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,Q,!0,!0),s("autoplay")),t.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{k()})))};return re>0?(clearTimeout(o),o=setTimeout(()=>{ae()},re)):requestAnimationFrame(()=>{ae()}),re},E=()=>{p=new Date().getTime(),t.autoplay.running=!0,k(),s("autoplayStart")},O=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),s("autoplayStop")},I=(Z,re)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),Z||(g=!0);const S=()=>{s("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):M()};if(t.autoplay.paused=!0,re){y&&(d=t.params.autoplay.delay),y=!1,S();return}d=(d||t.params.autoplay.delay)-(new Date().getTime()-p),!(t.isEnd&&d<0&&!t.params.loop)&&(d<0&&(d=0),S())},M=()=>{t.isEnd&&d<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(p=new Date().getTime(),g?(g=!1,k(d)):k(),t.autoplay.paused=!1,s("autoplayResume"))},U=()=>{if(t.destroyed||!t.autoplay.running)return;const Z=Pt();Z.visibilityState==="hidden"&&(g=!0,I(!0)),Z.visibilityState==="visible"&&M()},$=Z=>{Z.pointerType==="mouse"&&(g=!0,h=!0,!(t.animating||t.autoplay.paused)&&I(!0))},G=Z=>{Z.pointerType==="mouse"&&(h=!1,t.autoplay.paused&&M())},N=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",$),t.el.addEventListener("pointerleave",G))},j=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",$),t.el.removeEventListener("pointerleave",G))},V=()=>{Pt().addEventListener("visibilitychange",U)},te=()=>{Pt().removeEventListener("visibilitychange",U)};i("init",()=>{t.params.autoplay.enabled&&(N(),V(),E())}),i("destroy",()=>{j(),te(),t.autoplay.running&&O()}),i("_freeModeStaticRelease",()=>{(f||g)&&M()}),i("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?O():I(!0,!0)}),i("beforeTransitionStart",(Z,re,S)=>{t.destroyed||!t.autoplay.running||(S||!t.params.autoplay.disableOnInteraction?I(!0,!0):O())}),i("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){O();return}m=!0,f=!1,g=!1,b=setTimeout(()=>{g=!0,f=!0,I(!0)},200)}}),i("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!m)){if(clearTimeout(b),clearTimeout(o),t.params.autoplay.disableOnInteraction){f=!1,m=!1;return}f&&t.params.cssMode&&M(),f=!1,m=!1}}),i("slideChange",()=>{t.destroyed||!t.autoplay.running||(y=!0)}),Object.assign(t.autoplay,{start:E,stop:O,pause:I,resume:M})}const t1={class:"rrs-swiper"},r1={class:"rrs-swiper__wrap-swiper"},i1=["data-testid"],n1=["data-testid"],Tu=xe(ge({__name:"Swiper",props:{config:{type:Object},testId:{type:String}},setup(e){const t=e,{getTestId:r}=Be(t.testId),i=[Zy,e1,Jy,Qy],s=le(),n=le(null),o=le(null),a=le(null),l=le(null),c={nextEl:o.value,prevEl:n.value};function d(){}function p(m){s.value=m}Ke([n,o],([m,f])=>{m&&f&&s.value&&(c.nextEl=f,c.prevEl=m,s.value.navigation.update())});function u(){s.value?.update()}return Tt(()=>{window.addEventListener("resize",u)}),Gt(()=>{window.removeEventListener("resize",u)}),(m,f)=>(F(),q("div",t1,[z("div",r1,[se(H(Cy),Ol({class:"rrs-swiper__rrs-swiper","data-testid":H(r)("swiper"),modules:i,navigation:c,"observe-parents":!0,observer:!0,pagination:{el:a.value,clickable:!0},scrollbar:{el:l.value,draggable:!0},"touch-release-on-edges":!0,"update-on-window-resize":!0,"watch-overflow":!0,"watch-slides-progress":!0},m.config,{onSlideChange:d,onSwiper:p}),{default:Ve(()=>[sr(m.$slots,"default")]),_:3},16,["data-testid","pagination","scrollbar"]),z("div",{ref_key:"paginationRef",ref:a,class:"rrs-swiper-pagination"},null,512)]),z("div",{ref_key:"scrollbarRef",ref:l,class:"rrs-swiper-scrollbar"},null,512),z("div",{ref_key:"prev",ref:n,class:"rrs-swiper__arrow rrs-swiper__arrow-prev","data-testid":H(r)("arrow-prev")},[se(Fe,{name:"arrowLeft"})],8,i1),z("div",{ref_key:"next",ref:o,class:"rrs-swiper__arrow rrs-swiper__arrow-next","data-testid":H(r)("arrow-next")},[se(Fe,{name:"arrowRight"})],8,n1)]))}}),[["styles",['@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px,0,0);transform:translateZ(0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";-ms-flex-negative:0;flex-shrink:0;-webkit-box-ordinal-group:10000;-ms-flex-order:9999;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(rgba(0,0,0,0)));background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-webkit-transform-origin:center;transform-origin:center}.swiper-rtl .swiper-button-prev svg,.swiper-rtl .swiper-button-next svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-lock{display:none}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s opacity;transition:.3s opacity;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px,-50%,0);transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:.2s top,.2s -webkit-transform;transition:.2s top,.2s -webkit-transform;transition:.2s transform,.2s top;transition:.2s transform,.2s top,.2s -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s left,.2s -webkit-transform;transition:.2s left,.2s -webkit-transform;transition:.2s transform,.2s left;transition:.2s transform,.2s left,.2s -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s right,.2s -webkit-transform;transition:.2s right,.2s -webkit-transform;transition:.2s transform,.2s right;transition:.2s transform,.2s right,.2s -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, .1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, .5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>img,.swiper-zoom-container>svg,.swiper-zoom-container>canvas{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move;-ms-touch-action:none;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.swiper-fade.swiper-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl .swiper-slide{-webkit-transform-origin:100% 0;transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:"";background:#000;position:absolute;inset:0;-webkit-filter:blur(50px);filter:blur(50px)}.swiper-cube .swiper-slide-next+.swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper.swiper-flip{overflow:visible}.swiper-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-top,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-flip.swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative .swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;-webkit-transition-property:opacity,height,-webkit-transform;transition-property:opacity,height,-webkit-transform;transition-property:transform,opacity,height;transition-property:transform,opacity,height,-webkit-transform}.swiper.swiper-cards{overflow:visible}.swiper-cards .swiper-slide{-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}',".rrs-swiper{position:relative;width:100%}.rrs-swiper__rrs-swiper{width:100%}.rrs-swiper__arrow{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#b7b7b7;border-radius:50%;bottom:calc(100% - 73px);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:28px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:40px;max-width:40px;min-height:40px;min-width:40px;position:absolute;top:153px;-webkit-transition:background .3s;transition:background .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}@media (width <= 1025px){.rrs-swiper__arrow{display:none}}.rrs-swiper__arrow .rrs-icon{fill:#000;-webkit-transition:fill .3s;transition:fill .3s}.rrs-swiper__arrow-prev{right:55px;-webkit-transform:translate(0,-50%);transform:translateY(-50%)}.rrs-swiper__arrow-next{right:0;-webkit-transform:translate(0,-50%);transform:translateY(-50%)}.rrs-swiper__arrow.swiper-button-disabled{opacity:.2}.rrs-swiper-pagination{display:none;gap:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:20px}.swiper-pagination-bullet{background-color:gray;border-radius:50%;cursor:pointer;height:12px;opacity:.5;-webkit-transition:opacity .3s;transition:opacity .3s;width:12px}.swiper-pagination-bullet-active{background-color:#000;opacity:1}.rrs-swiper-scrollbar{background-color:transparent;height:1px;margin-top:10px}.swiper-scrollbar-drag{background-color:#707072;border-radius:4px}"]]]);function es({itemSelector:e,observerOptions:t={root:null,threshold:.8},onIntersectBatch:r,targetContainer:i,unobserveOnIntersect:s=!0,watchSource:n}){let o=null;Ke(n,async()=>{if(await Dr(),!i.value)return;o&&o.disconnect(),o=new IntersectionObserver(c=>{const d=c.filter(p=>p.isIntersecting);d.length>0&&r(d),s&&d.forEach(p=>{o.unobserve(p.target)})},t),i.value.querySelectorAll(e).forEach(c=>o.observe(c))},{deep:!0,immediate:!0}),xn(()=>{o&&o.disconnect()})}const s1=["data-testid"],o1={class:"rrg-empty__wrap-info"},a1=["data-testid"],l1={class:"rrg-empty__text"},c1={class:"rrg-empty__wrap-categories"},d1={class:"rrg-empty__wrap-categories__title"},u1={class:"rrg-empty__wrap-categories__categories"},p1={class:"rrg-empty__wrap-categories__category",href:"https://www.nike.com.co/"},f1={class:"rrg-empty__wrap-categories__category",href:"https://www.nike.com.co/hombre"},g1={class:"rrg-empty__wrap-categories__category",href:"https://www.nike.com.co/mujer"},m1=["data-testid"],h1={class:"rrg-empty__title-swiper"},b1=["data-testid"],v1={class:"rrg-empty__title-swiper"},w1=xe(ge({__name:"EmptyResult",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},currencySymbol:{type:String},getEmptyProducts:{type:Function},phrase:{type:String},placementId:{type:Object},removeFromCart:{type:Function},removeFromWishlist:{type:Function},testId:{type:String},wishlist:{type:Object}},emits:["productsVisible"],setup(e,{emit:t}){const r=e,i=t,s=le(null),n=le(null),o=De({productsEmptyResult1:[],productsEmptyResult2:[],productsEmptyViewed1:new Set,productsEmptyViewed2:new Set}),a={breakpoints:{320:{slidesPerGroup:1,slidesPerView:"auto"}},loop:!1,observeParents:!0,observer:!0,spaceBetween:12,speed:800,updateOnWindowResize:!0,watchOverflow:!0};function l(u){return u.map((m,f)=>({...m,actualIndex:f+1}))}async function c(){o.productsEmptyResult1=[],o.productsEmptyResult2=[],await r.getEmptyProducts({placementId:r.placementId.placementIdEmpty1}).then(u=>{u.match({err:async m=>{m!=="AbortError"&&(o.productsEmptyResult1=[])},ok:async m=>{o.productsEmptyResult1=l(m.products)}})}),await r.getEmptyProducts({placementId:r.placementId.placementIdEmpty2}).then(u=>{u.match({err:async m=>{m!=="AbortError"&&(o.productsEmptyResult2=[])},ok:async m=>{o.productsEmptyResult2=l(m.products)}})})}const{getTestId:d}=Be(r.testId),{t:p}=nt({messages:{en:{categoriesOnEmptyResult:"Discover our featured categories",emptyResultOnPhrase:"Sorry, we did not find results for",goToHome:"Go to Home",GoToMan:"Go to Man",GoToWoman:"Go to Woman",nothingWasFound:" Check the text and try searching again using other words, make sure everything is spelled correctly for best results!",personalRecommendations:"Recommended for you",viewedRecommendations:"Your latest views"},es:{categoriesOnEmptyResult:"Descubre nuestras categorías destacadas",emptyResultOnPhrase:"Lo sentimos, no encontramos resultados para",goToHome:"Ir a la Home",GoToMan:"Ir a Hombre",GoToWoman:"Ir a Mujer",nothingWasFound:"Revisa el texto e intenta buscar nuevamente usando otras palabras. ¡Asegúrate de que todo esté bien escrito para mejores resultados!",personalRecommendations:"Los más vendidos",viewedRecommendations:"Últimos vistos"}}});return es({itemSelector:".rrg-empty__product-slide",onIntersectBatch:u=>{let m=!1;u.forEach(f=>{const b=f.target.dataset.productId,y=o.productsEmptyResult1.find(g=>g.id===Number(b));y&&!o.productsEmptyViewed1.has(y)&&(o.productsEmptyViewed1.add(y),m=!0)}),m&&i("productsVisible",Array.from(o.productsEmptyViewed1))},targetContainer:s,watchSource:()=>o.productsEmptyResult1}),es({itemSelector:".rrg-empty__product-slide",onIntersectBatch:u=>{let m=!1;u.forEach(f=>{const b=f.target.dataset.productId,y=o.productsEmptyResult2.find(g=>g.id===Number(b));y&&!o.productsEmptyViewed2.has(y)&&(o.productsEmptyViewed2.add(y),m=!0)}),m&&i("productsVisible",Array.from(o.productsEmptyViewed2))},targetContainer:n,watchSource:()=>o.productsEmptyResult2}),Tt(async()=>{await c()}),(u,m)=>(F(),q("div",{class:"rrg-empty","data-testid":u.testId},[z("div",o1,[z("h1",{class:"rrg-empty__title","data-testid":H(d)("phrase")},ne(H(p)("emptyResultOnPhrase"))+' "'+ne(u.phrase)+'" ',9,a1),z("div",l1,ne(H(p)("nothingWasFound")),1),z("div",c1,[z("div",d1,ne(H(p)("categoriesOnEmptyResult")),1),z("div",u1,[z("a",p1,ne(H(p)("goToHome")),1),m[0]||(m[0]=z("span",{class:"rrg-empty__wrap-categories__spaser"},null,-1)),z("a",f1,ne(H(p)("GoToMan")),1),z("a",g1,ne(H(p)("GoToWoman")),1)])])]),o.productsEmptyResult1.length?(F(),q("div",{key:0,ref_key:"productsEmptyResultFirst",ref:s,class:"rrg-empty__wrap-swiper","data-testid":H(d)("productsEmptyResultFirst")},[z("h2",h1,ne(H(p)("viewedRecommendations")),1),se(Tu,{class:"rrg-empty__swiper",config:a,"test-id":"empty-swiper"},{default:Ve(()=>[(F(!0),q(ve,null,He(o.productsEmptyResult1,f=>(F(),de(H(Su),{key:f.id,class:"rrg-empty__product-slide","data-product-id":f.id,"data-product-index":f.actualIndex},{default:Ve(()=>[se(Zo,{id:f.id,class:"rrg-empty__product","currency-symbol":u.currencySymbol,"group-sizes":f.groupSizes,href:f.href,image:f.image,"in-wishlist":u.wishlist[f.id]||!1,name:f.name,"old-price":f.oldPrice,price:f.price,"products-params":f.productsParams,quantity:u.cart[f.id]||0,rating:f.rating,"reviews-count":f.reviewsCount,"show-rating":!!f.rating,"test-id":H(d)(`product-card-${f.id}`),onAddToCart:b=>u.addToCart(f,f.id),onAddToWishlist:b=>u.addToWishlist(f),onClickOnProduct:b=>u.clickOnProduct(f),onRemoveFromCart:b=>u.removeFromCart(f),onRemoveFromWishlist:b=>u.removeFromWishlist(f)},null,8,["id","currency-symbol","group-sizes","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])]),_:2},1032,["data-product-id","data-product-index"]))),128))]),_:1})],8,m1)):oe("",!0),o.productsEmptyResult2.length?(F(),q("div",{key:1,ref_key:"productsEmptyResultSecond",ref:n,class:"rrg-empty__wrap-swiper","data-testid":H(d)("productsEmptyResultSecond")},[z("h2",v1,ne(H(p)("personalRecommendations")),1),se(Tu,{class:"rrg-empty__swiper",config:a,"test-id":"empty-swiper"},{default:Ve(()=>[(F(!0),q(ve,null,He(o.productsEmptyResult2,f=>(F(),de(H(Su),{key:f.id,class:"rrg-empty__product-slide","data-product-id":f.id,"data-product-index":f.actualIndex},{default:Ve(()=>[se(Zo,{id:f.id,class:"rrg-empty__product","currency-symbol":u.currencySymbol,"group-sizes":f.groupSizes,href:f.href,image:f.image,"in-wishlist":u.wishlist[f.id]||!1,name:f.name,"old-price":f.oldPrice,price:f.price,"products-params":f.productsParams,quantity:u.cart[f.id]||0,rating:f.rating,"reviews-count":f.reviewsCount,"show-rating":!!f.rating,"test-id":H(d)(`product-card-${f.id}`),onAddToCart:b=>u.addToCart(f,f.id),onAddToWishlist:b=>u.addToWishlist(f),onClickOnProduct:b=>u.clickOnProduct(f),onRemoveFromCart:b=>u.removeFromCart(f),onRemoveFromWishlist:b=>u.removeFromWishlist(f)},null,8,["id","currency-symbol","group-sizes","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])]),_:2},1032,["data-product-id","data-product-index"]))),128))]),_:1})],8,b1)):oe("",!0)],8,s1))}}),[["styles",[".rrg-empty{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:auto;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;max-width:1440px;padding-left:48px;width:100%}@media (width <= 1025px){.rrg-empty{padding:16px}}.rrg-empty .swiper-lazy-preloader{display:block}.rrg-empty__wrap-info{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#000;font-style:normal;margin:50px auto 65px;padding:15px 65px;text-align:center;width:100%}@media (width <= 1025px){.rrg-empty__wrap-info{margin:0;padding:0}}.rrg-empty__title{font-size:32px;font-weight:400;line-height:normal;margin:8px 0}@media (width <= 1025px){.rrg-empty__title{margin:12px 0;padding:0 7px;text-align:left}}.rrg-empty__text{font-size:16px;font-weight:400;margin-bottom:65px}@media (width <= 1025px){.rrg-empty__text{margin-bottom:35px;text-align:left}}.rrg-empty__wrap-categories{margin-bottom:40px;padding:0 20px}.rrg-empty__wrap-categories__title{font-size:24px;font-weight:500;line-height:normal;margin-bottom:24px}.rrg-empty__wrap-categories__categories{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media (width <= 1025px){.rrg-empty__wrap-categories__categories{row-gap:8px}}.rrg-empty__wrap-categories__category{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#000;border:none;border-radius:50px;color:#fff;display:inline-block;font-size:16px;font-weight:700;height:52px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:normal;margin:0 12px;padding:16px 0;text-decoration:none;width:160px}.rrg-empty__wrap-categories__spaser{background:#000;display:inline-block;height:30px;position:relative;top:10px;width:1px}@media (width <= 1025px){.rrg-empty__wrap-categories__spaser{display:none}}.rrg-empty__wrap-swiper{max-width:100%;overflow:hidden;position:relative}.rrg-empty__title-swiper{font-size:24px;font-weight:400;margin-bottom:24px}.rrg-empty__swiper{margin-bottom:130px}.rrg-empty__swiper:hover{z-index:3}.rrg-empty .rrg-empty__swiper .rrs-swiper__arrow{top:-35px;-webkit-transform:translate(-56px,-50%);transform:translate(-56px,-50%)}.rrg-empty__product-slide{max-width:290px}@media (width <= 1025px){.rrg-empty__product-slide{max-width:220px}}.rrg-empty__product-slide.swiper-slide{height:auto!important}.rrg-empty .rrg-empty__product{padding:0}.rrg-empty .rrg-empty__product .rrg-product-card__block-sizes{display:none}.rrg-empty .rrg-empty__product:hover{-webkit-filter:none;filter:none}.rrg-empty .rrg-empty__product:hover .rrg-product-card__block-sizes{display:none}.rrg-empty .rrs-swiper-scrollbar{background-color:#f5f5f5;height:4px}.rrg-empty .rrs-swiper-scrollbar .swiper-scrollbar-drag{background-color:#ccc}"]]]),_1=["data-checked","data-testid"],y1={class:"rrg-checkbox-img__checkmark"},x1=["alt","src"],k1={class:"rrg-checkbox-img__text"},S1=xe(ge({__name:"CheckboxImg",props:{disabled:{type:Boolean},src:{type:String},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t;function s(){i("update:value",!r.value)}return(n,o)=>(F(),q("div",{class:Ne(["rrg-checkbox-img",{"is-checked":n.value,"is-disabled":n.disabled}]),"data-checked":n.value,"data-testid":n.testId,onClick:s},[z("div",y1,[z("img",{alt:n.text,src:n.src},null,8,x1)]),z("div",k1,[sr(n.$slots,"default",{},()=>[It(ne(n.text),1)])])],10,_1))}}),[["styles",[".rrg-checkbox-img{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.rrg-checkbox-img__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:2px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-width:260px}.rrg-checkbox-img__checkmark img{max-width:100%}.rrg-checkbox-img__text{border:1px solid #e5e5e5;color:#000;display:block;font-size:16px;font-weight:500;line-height:21px;padding:16px;position:relative;text-transform:capitalize}.rrg-checkbox-img.is-checked .rrg-checkbox-img__checkmark{opacity:.5}.rrg-checkbox-img.is-disabled{pointer-events:none}.rrg-checkbox-img.is-disabled .rrg-checkbox-img__checkmark{background-color:var(--rrg-color-grey-200);border:2px solid #e3e4e6;color:#e3e4e6}.rrg-checkbox-img.is-disabled .rrg-checkbox-img__text{color:var(--rrg-color-grey-400)}.rrg-checkbox-img.is-checked.is-disabled .rrg-checkbox-img__checkmark{background-color:var(--rrg-color-grey-200);color:#e3e4e6}"]]]),C1={class:"rrg-filter-checkbox-img rrg-filter-checkbox-img--active"},E1={class:"rrg-filter-checkbox-img__items"},T1={class:"rrg-filter-checkbox-img__swiper"},I1={key:0,class:"rrg-filter-checkbox-img__product-slide"},A1=xe(ge({__name:"FilterCheckboxImg",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,s={hombre:"https://nikeclprod.vtexassets.com/arquivos/gender-men.jpg",mujer:"https://nikeclprod.vtexassets.com/arquivos/gender-women.jpg",niña:"https://nikeclprod.vtexassets.com/arquivos/gender-girl.jpg",niño:"https://nikeclprod.vtexassets.com/arquivos/gender-boy.jpg",unisex:"https://nikeclprod.vtexassets.com/arquivos/gender-unisex.jpg"},n=me(()=>{const l=r.data.filter(d=>r.value.includes(d.value)),c=r.data.filter(d=>!r.value.includes(d.value));return[...l,...c]}),{getTestId:o}=Be(r.testId);function a(l){const c=xt(r.value),d=c.findIndex(p=>ft(p,l.value));d!==-1?c.splice(d,1):c.push(l.value),i("update:value",c)}return(l,c)=>(F(),q("div",C1,[z("div",E1,[z("div",T1,[(F(!0),q(ve,null,He(n.value,(d,p)=>(F(),q(ve,{key:d.text+p},[s[d.text]?(F(),q("div",I1,[(F(),de(S1,{key:p,src:s[d.text],"test-id":H(o)(`item-${p}`),text:d.text,value:l.value.includes(d.value),"onUpdate:value":u=>a(d)},null,8,["src","test-id","text","value","onUpdate:value"]))])):oe("",!0)],64))),128))])])]))}}),[["styles",[".rrg-filter-checkbox-img{display:grid;margin-bottom:20px;width:100%}@media (width < 1026px){.rrg-filter-checkbox-img{margin-top:20px;padding:0 16px}}.rrg-filter-checkbox-img .rrs-swiper__wrap-swiper{height:182px;overflow:hidden}.rrg-filter-checkbox-img--active .rrs-swiper__wrap-swiper{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-name:slidein;animation-name:slidein}@-webkit-keyframes slidein{0%{height:0}to{height:182px}}@keyframes slidein{0%{height:0}to{height:182px}}.rrg-filter-checkbox-img__items{max-width:100%;overflow:hidden;overflow-x:auto;scroll-behavior:smooth;width:100%}.rrg-filter-checkbox-img__swiper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:23px}@media (width < 1024px){.rrg-filter-checkbox-img__swiper{gap:8px}}.rrg-filter-checkbox-img__product-slide{-webkit-box-flex:0;-ms-flex:0 0 250px;flex:0 0 250px}.rrg-filter-checkbox-img .rrs-swiper__arrow{display:none}"]]]),P1=["data-testid"],gi=xe(ge({__name:"ButtonDefault",props:{color:{type:String},icon:{type:null},iconRight:{type:Boolean},testId:{type:String},text:{type:String}},setup(e){return(t,r)=>(F(),q("button",{class:Ne(["rrg-button-default",{"is-icon-right":t.iconRight,"rrg-button-default--primary":t.color==="primary","rrg-button-default--secondary":t.color==="secondary","rrg-button-default--white":t.color==="white","rrg-button-default--yellow":t.color==="yellow"}]),"data-testid":t.testId},[t.icon?(F(),de(Fe,{key:0,class:"rrg-button-default__icon",name:t.icon},null,8,["name"])):oe("",!0),It(" "+ne(t.text)+" ",1),sr(t.$slots,"default")],10,P1))}}),[["styles",[".rrg-button-default{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:8px;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:14px;font-weight:500;gap:4px;height:36px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1;outline:none;padding:10px 20px;position:relative;width:auto}.rrg-button-default.is-icon-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.rrg-button-default__icon{font-size:16px}.rrg-button-default--primary{background-color:#111;border-radius:30px;color:#fff;font-size:16px;font-weight:500;height:auto;line-height:1;min-height:50px;padding:16px 24px}.rrg-button-default--secondary{background-color:#fff;border:1px solid #ececec;border-radius:30px;color:#111;font-size:16px;font-weight:500;height:auto;line-height:1;min-height:50px;padding:16px 24px}.rrg-button-default--white{background-color:var(--rrg-color-white);color:var(--rrg-color-brand-400)}.rrg-button-default--white:hover{background-color:var(--rrg-color-brand-100)}.rrg-button-default--white:active{background-color:var(--rrg-color-brand-200)}.rrg-button-default--yellow{background-color:var(--rrg-color-yellow);color:var(--rrg-color-black)}.rrg-button-default--yellow:hover{background-color:var(--rrg-color-yellow-400)}.rrg-button-default--yellow:active{background-color:var(--rrg-color-yellow-500)}"]]]);function ts(){function e(r,i,s,n,o){const a=performance.now();function l(c){const d=c-a,p=Math.min(d/n,1),u=t(p),m=i+(s-i)*u;r.style.height=`${Math.round(m)}px`,p<1?requestAnimationFrame(l):(r.style.height="auto",o&&o(r))}requestAnimationFrame(l)}function t(r){return r<.5?2*r*r:-1+(4-2*r)*r}return{animateHeight:e}}const O1=["data-testid"],L1=["data-testid"],$1={key:0,class:"rrg-filter-item__count-checked-filters"},M1={class:"rrg-filter-item__content"},R1=["data-testid"],hr=xe(ge({__name:"FiltersItem",props:{countCheckedFilters:{type:Number},horizontal:{type:Boolean},testId:{type:String},title:{type:String}},setup(e){const t=e,{getTestId:r}=Be(t.testId),{animateHeight:i}=ts(),s=le(),n=De({showContent:!0});function o(){const a=s.value;if(!a)return;const l=!n.showContent;n.showContent=!n.showContent,i(a,l?0:a.scrollHeight,l?a.scrollHeight:0,500,c=>{l?c.style.height="auto":c.style.height="0px"})}return(a,l)=>(F(),q("div",{class:Ne(["rrg-filter-item",{"is-horizontal":a.horizontal}]),"data-testid":a.testId},[z("div",{class:"rrg-filter-item__title","data-testid":H(r)("title"),onClick:o},[z("span",null,[It(ne(a.title)+" ",1),a.countCheckedFilters?(F(),q("span",$1," ("+ne(a.countCheckedFilters)+") ",1)):oe("",!0)]),z("i",null,[a.horizontal?oe("",!0):(F(),de(Fe,{key:0,class:"rrg-filter-item__title-icon",name:n.showContent?"arrowUp":"arrowDown","test-id":H(r)("icon")},null,8,["name","test-id"]))])],8,L1),z("div",M1,[z("div",{ref_key:"filterItemContentContainer",ref:s,class:"rrg-filter-item__content-inner","data-testid":H(r)("content")},[sr(a.$slots,"default")],8,R1)])],10,O1))}}),[["styles",[".rrg-filter-item{display:grid;gap:12px;width:100%}@media (width <= 1025px){.rrg-filter-item{gap:8px}}.rrg-filter-item__title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:grid;font-size:16px;font-weight:600;grid-template-columns:1fr auto;line-height:20px;padding:22px 0 10px;width:100%}.rrg-filter-item__title>span{color:#111;font-size:16px;font-weight:600;line-height:1.15;text-transform:capitalize}.rrg-filter-item__title>i{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;padding-left:16px;padding-right:16px}.rrg-filter-item__title .rrg-filter-item__title-icon{font-size:10px;width:10px}@media (width <= 1025px){.rrg-filter-item__title{padding:20px 0 10px}.rrg-filter-item__title>span{font-size:14px;line-height:22px}}.rrg-filter-item__count-checked-filters{display:none}@media (width <= 1025px){.rrg-filter-item__count-checked-filters{display:inline-block}}.rrg-filter-item__content{display:grid;width:100%}.rrg-filter-item__content-inner{overflow:hidden}.rrg-filter-item.is-horizontal{-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:auto 1fr}"]]]),F1={class:"rrg-filter-category-tree"},N1=["data-testid","onClick"],D1={class:"rrg-filter-category-tree__category-text"},z1={key:0,class:"rrg-filter-category-tree__category-description"},B1=["data-testid","onClick"],V1={class:"rrg-filter-category-tree__category-text"},H1={key:0,class:"rrg-filter-category-tree__category-description"},U1=xe(ge({__name:"FilterCategoryTree",props:{data:{type:Object},testId:{type:String},title:{type:String},value:{type:null}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId);function n(o){i("update:value",o.value)}return(o,a)=>(F(),de(hr,{horizontal:!1,"test-id":o.testId,title:o.title},{default:Ve(()=>[z("div",F1,[(F(!0),q(ve,null,He(r.data.parentCategories,(l,c)=>(F(),q("div",{key:c,class:Ne(["rrg-filter-category-tree__category",{"is-active":r.value===l.value}]),"data-testid":H(s)(`parent-item-${c}`),onClick:d=>n(l)},[se(Fe,{class:"rrg-filter-category-tree__category-arrow",name:"arrowLeft"}),z("div",D1,[It(ne(l.text)+" ",1),l.description?(F(),q("span",z1,ne(` ${l.description}`),1)):oe("",!0)])],10,N1))),128)),(F(!0),q(ve,null,He(r.data.peerCategories,(l,c)=>(F(),q("div",{key:c,class:Ne(["rrg-filter-category-tree__category rrg-filter-category-tree__category--peer",{"is-active":r.value===l.value,"is-root":!r.data.parentCategories.length}]),"data-testid":H(s)(`peer-item-${c}`),onClick:d=>n(l)},[z("div",V1,[It(ne(l.text)+" ",1),l.description?(F(),q("span",H1,ne(` ${l.description}`),1)):oe("",!0)])],10,B1))),128))])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-category-tree{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden auto;width:100%}.rrg-filter-category-tree__category--peer{padding-left:24px}.rrg-filter-category-tree__category--peer.is-root{padding-left:0}.rrg-filter-category-tree__category-arrow{font-size:16px}.rrg-filter-category-tree__category-text{color:var(--rrg-color-black);display:block;font-size:14px;font-weight:400;line-height:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:auto}.rrg-filter-category-tree__category-description{color:var(--rrg-color-grey-400);display:inline}.rrg-filter-category-tree__category{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;max-width:100%;outline:none;width:auto}.rrg-filter-category-tree__category:hover .rrg-filter-category-tree__category-arrow,.rrg-filter-category-tree__category:hover .rrg-filter-category-tree__category-text{color:var(--rrg-color-brand)}.rrg-filter-category-tree__category:active .rrg-filter-category-tree__category-arrow,.rrg-filter-category-tree__category:active .rrg-filter-category-tree__category-text{color:var(--rrg-color-brand-400)}.rrg-filter-category-tree__category.is-active .rrg-filter-category-tree__category-text{color:var(--rrg-color-brand);font-weight:500}"]]]),W1=["data-checked","data-testid"],G1={class:"rrg-checkbox__checkmark"},j1={class:"rrg-checkbox__text"},Y1={key:0,class:"rrg-checkbox__description"},Iu=xe(ge({__name:"Checkbox",props:{description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=le();function o(){s("update:value",!i.value)}return t({rootEl:n}),(a,l)=>(F(),q("div",{ref_key:"rootEl",ref:n,class:Ne(["rrg-checkbox",{"is-checked":a.value,"is-disabled":a.disabled}]),"data-checked":a.value,"data-testid":a.testId,onClick:o},[z("div",G1,[se(Fe,{class:"rrg-checkbox__icon",name:"checkmark"})]),z("div",j1,[sr(a.$slots,"default",{},()=>[It(ne(a.text),1)]),a.description?(F(),q("span",Y1,ne(` ${a.description}`),1)):oe("",!0)])],10,W1))}}),[["styles",[".rrg-checkbox{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;gap:5px;padding:4px 0}@media (width < 1024px){.rrg-checkbox{padding:7px 0}}.rrg-checkbox__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:2px solid #e3e4e6;border-radius:2px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;height:20px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:20px;max-width:20px;min-height:20px;min-width:20px;-webkit-transition:background 20ms,border .1s;transition:background 20ms,border .1s;width:20px}.rrg-checkbox__icon{min-height:unset!important;min-width:unset!important;opacity:0}.rrg-checkbox__text{font-size:16px;font-weight:400;line-height:normal;text-transform:capitalize}.rrg-checkbox__description{display:none}.rrg-checkbox.is-checked .rrg-checkbox__checkmark{background-color:#111;border-color:#111}.rrg-checkbox.is-checked .rrg-checkbox__checkmark .rrg-checkbox__icon{opacity:1}.rrg-checkbox.is-disabled{pointer-events:none}.rrg-checkbox.is-disabled .rrg-checkbox__checkmark{background-color:var(--rrg-color-grey-200);border:2px solid #e3e4e6;color:#e3e4e6}.rrg-checkbox.is-disabled .rrg-checkbox__text{color:var(--rrg-color-grey-400)}.rrg-checkbox.is-checked.is-disabled .rrg-checkbox__checkmark{background-color:var(--rrg-color-grey-200);color:#e3e4e6}"]]]),K1={class:"rrg-filter-checkbox"},X1={class:"rrg-filter-checkbox__items"},q1=xe(ge({__name:"FilterCheckbox",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",showAll:"+ Show"},es:{hide:"- Ver menos",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),{animateHeight:o}=ts(),a=le(),l=le([]),c=De({isShowAll:!1}),d=me(()=>{const f=r.data.filter(y=>r.value.includes(y.value)),b=r.data.filter(y=>!r.value.includes(y.value));return[...f,...b]}),p=me(()=>c.isShowAll?d.value:d.value.slice(0,r.visible));function u(){const f=a.value,b=l.value[0].rootEl.getBoundingClientRect().height;if(!f)return;const y=!c.isShowAll;c.isShowAll=!c.isShowAll;const g=f.scrollHeight,h=r.visible*b;o(f,y?h:g,p.value.length*b,300)}function m(f){const b=xt(r.value),y=b.findIndex(g=>ft(g,f.value));y!==-1?b.splice(y,1):b.push(f.value),i("update:value",b)}return(f,b)=>(F(),de(hr,{"count-checked-filters":f.value.length,horizontal:!1,"test-id":f.testId,title:f.title},{default:Ve(()=>[z("div",K1,[z("div",X1,[z("div",{ref_key:"itemsContainer",ref:a,class:"items-container"},[(F(!0),q(ve,null,He(p.value,(y,g)=>(F(),de(Iu,{key:g,ref_for:!0,ref_key:"checkboxes",ref:l,description:y.description,"test-id":H(n)(`item-${g}`),text:y.text,value:f.value.includes(y.value),"onUpdate:value":h=>m(y)},null,8,["description","test-id","text","value","onUpdate:value"]))),128))],512)]),f.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-checkbox__button",onClick:u},ne(c.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["count-checked-filters","test-id","title"]))}}),[["styles",[".rrg-filter-checkbox{padding-bottom:16px;padding-top:10px;width:100%}@media (width < 1024px){.rrg-filter-checkbox{padding-bottom:15px;padding-top:0}}.rrg-filter-checkbox__items{overflow:hidden;width:100%}.items-container{overflow:hidden}.rrg-filter-checkbox__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),Z1=["data-checked","data-testid"],J1=["title"],Q1={class:"rrg-checkbox-color__text"},ex=xe(ge({__name:"CheckboxColor",props:{color:{type:String},description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=le(),o={Amarillo:"#fed533",Azul:"#0040ff",Blanco:"transparent",Gris:"#a4a4a4",Marrón:"#b45f04",Morado:"#85007E",Multicolor:"linear-gradient(90deg, #833ab4, #fd1d1d 50%, #fcb045)",Naranja:"#ff9f00",Negro:"#000",Rojo:"#ff0000",Rosa:"#f5a9e1",Verde:"#4caf50"},a=me(()=>o[i.text]);function l(){s("update:value",!i.value)}return t({rootEl:n}),(c,d)=>(F(),q("div",{ref_key:"rootEl",ref:n,class:Ne(["rrg-checkbox-color",{"is-checked":c.value,"is-disabled":c.disabled}]),"data-checked":c.value,"data-testid":c.testId,onClick:l},[z("div",{class:"rrg-checkbox-color__checkmark",style:er({background:`${a.value}`}),title:c.text},[se(Fe,{class:"rrg-checkbox-color__icon",name:"checkmark"})],12,J1),z("div",Q1,[sr(c.$slots,"default",{},()=>[It(ne(c.text),1)])])],10,Z1))}}),[["styles",[".rrg-checkbox-color{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:5px;padding:4px 0}@media (width < 1024px){.rrg-checkbox-color{padding:7px 0}}.rrg-checkbox-color__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #e8e8e8;border-radius:50%;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:25px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:25px;max-width:25px;min-height:25px;min-width:25px;-webkit-transition:background 20ms,border .1s;transition:background 20ms,border .1s;width:25px}.rrg-checkbox-color__icon{min-height:unset!important;min-width:unset!important;opacity:0}.rrg-checkbox-color__text{color:#111;font-size:10px;font-weight:400;line-height:normal;text-transform:capitalize}.rrg-checkbox-color__description{display:none}.rrg-checkbox-color.is-checked .rrg-checkbox-color__checkmark .rrg-checkbox-color__icon{opacity:1}.rrg-checkbox-color.is-disabled{pointer-events:none}.rrg-checkbox-color.is-disabled .rrg-checkbox-color__checkmark{background-color:var(--rrg-color-grey-200);border:2px solid #e3e4e6;color:#e3e4e6}.rrg-checkbox-color.is-disabled .rrg-checkbox-color__text{color:var(--rrg-color-grey-400)}.rrg-checkbox-color.is-checked.is-disabled .rrg-checkbox-color__checkmark{background-color:var(--rrg-color-grey-200);color:#e3e4e6}"]]]),tx={class:"rrg-filter-checkbox-color"},rx={class:"rrg-filter-checkbox-color__items"},ix=xe(ge({__name:"FilterCheckboxColor",props:{data:{type:Array},isMobile:{type:Boolean},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",showAll:"+ Show"},es:{hide:"- Ver menos",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),{animateHeight:o}=ts(),a=le(),l=le([]),c=De({isShowAll:!1}),d=me(()=>{const f=r.data.filter(y=>r.value.includes(y.value)),b=r.data.filter(y=>!r.value.includes(y.value));return[...f,...b]}),p=me(()=>c.isShowAll?d.value:d.value.slice(0,r.visible));function u(){const f=a.value,b=l.value[0].rootEl.getBoundingClientRect().height;if(!f)return;const y=!c.isShowAll;c.isShowAll=!c.isShowAll;const g=r.isMobile?3:2,h=f.scrollHeight,v=Math.ceil(r.visible/g)*b;o(f,y?v:h,Math.ceil(p.value.length/g)*b,300)}function m(f){const b=xt(r.value),y=b.findIndex(g=>ft(g,f.value));y!==-1?b.splice(y,1):b.push(f.value),i("update:value",b)}return(f,b)=>(F(),de(hr,{"count-checked-filters":f.value.length,horizontal:!1,"test-id":f.testId,title:f.title},{default:Ve(()=>[z("div",tx,[z("div",rx,[z("div",{ref_key:"itemsContainer",ref:a,class:"rrg-filter-checkbox-color__items-container"},[(F(!0),q(ve,null,He(p.value,(y,g)=>(F(),de(ex,{key:g,ref_for:!0,ref_key:"checkboxes",ref:l,class:"rrg-filter-checkbox-color__item",color:y.color,description:y.description,"test-id":H(n)(`item-${g}`),text:y.text,value:f.value.includes(y.value),"onUpdate:value":h=>m(y)},null,8,["color","description","test-id","text","value","onUpdate:value"]))),128))],512)]),f.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-checkbox-color__button",onClick:u},ne(c.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["count-checked-filters","test-id","title"]))}}),[["styles",[".rrg-filter-checkbox-color{padding-bottom:16px;padding-top:10px;width:100%}@media (width <= 1025px){.rrg-filter-checkbox-color{padding-bottom:15px;padding-top:0}}.rrg-filter-checkbox-color__items{overflow:hidden;width:100%}.rrg-filter-checkbox-color__items-container{overflow:hidden}.rrg-filter-checkbox-color__item{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:50%}@media (width <= 1025px){.rrg-filter-checkbox-color__item{width:33%}}.rrg-filter-checkbox-color__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),nx=["data-checked","data-testid"],sx={class:"rrg-checkbox-size__text"},ox={key:0,class:"rrg-checkbox-size__description"},ax=xe(ge({__name:"CheckboxSize",props:{description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=le();function o(){s("update:value",!i.value)}return t({rootEl:n}),(a,l)=>(F(),q("div",{ref_key:"rootEl",ref:n,class:Ne(["rrg-checkbox-size",{"is-checked":a.value,"is-disabled":a.disabled}]),"data-checked":a.value,"data-testid":a.testId,onClick:o},[z("div",sx,[sr(a.$slots,"default",{},()=>[It(ne(a.text),1)]),a.description?(F(),q("span",ox,ne(` ${a.description}`),1)):oe("",!0)])],10,nx))}}),[["styles",[".rrg-checkbox-size{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex}.rrg-checkbox-size__text{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #e5e5e5;border-radius:5px;color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;height:32px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.5;padding-bottom:4px;padding-top:6px;text-transform:capitalize;white-space:nowrap;width:100%}.rrg-checkbox-size__description{display:none}.rrg-checkbox-size.is-checked .rrg-checkbox-size__text{border:1px solid #111}.rrg-checkbox-size.is-disabled{pointer-events:none}.rrg-checkbox-size.is-disabled .rrg-checkbox-size__text{color:var(--rrg-color-grey-400)}"]]]),lx={class:"rrg-filter-checkbox-size"},cx={class:"rrg-filter-checkbox-size__items"},dx=xe(ge({__name:"FilterCheckboxSize",props:{data:{type:Array},isMobile:{type:Boolean},testId:{type:String},title:{type:String},value:{type:Array},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",showAll:"+ Show"},es:{hide:"- Ver menos",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),{animateHeight:o}=ts(),a=le(),l=le([]),c=De({isShowAll:!1}),d=me(()=>{const f=r.data.filter(y=>r.value.includes(y.value)),b=r.data.filter(y=>!r.value.includes(y.value));return[...f,...b]}),p=me(()=>c.isShowAll?d.value:d.value.slice(0,r.visible));function u(){const f=a.value,b=l.value[0].rootEl.getBoundingClientRect().height;if(!f)return;const y=!c.isShowAll;c.isShowAll=!c.isShowAll;const g=2,h=f.scrollHeight,v=Math.ceil(r.visible/g)*b;o(f,y?v:h,Math.ceil(p.value.length/g)*b,300)}function m(f){const b=xt(r.value),y=b.findIndex(g=>ft(g,f.value));y!==-1?b.splice(y,1):b.push(f.value),i("update:value",b)}return(f,b)=>(F(),de(hr,{"count-checked-filters":f.value.length,horizontal:!1,"test-id":f.testId,title:f.title},{default:Ve(()=>[z("div",lx,[z("div",cx,[z("div",{ref_key:"itemsContainer",ref:a,class:"rrg-filter-checkbox-size__items-container"},[z("div",null,[(F(!0),q(ve,null,He(p.value,(y,g)=>(F(),de(ax,{key:g,ref_for:!0,ref_key:"checkboxes",ref:l,class:"rrg-filter-checkbox-size__item",description:y.description,"test-id":H(n)(`item-${g}`),text:y.text,value:f.value.includes(y.value),"onUpdate:value":h=>m(y)},null,8,["description","test-id","text","value","onUpdate:value"]))),128))])],512)]),f.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-checkbox-size__button",onClick:u},ne(c.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["count-checked-filters","test-id","title"]))}}),[["styles",[".rrg-filter-checkbox-size{padding-bottom:16px;padding-top:10px;width:100%}@media (width <= 1025px){.rrg-filter-checkbox-size{padding-bottom:15px;padding-top:0}}.rrg-filter-checkbox-size__items{overflow:hidden;width:100%}.rrg-filter-checkbox-size__items-container{overflow:hidden}.rrg-filter-checkbox-size__items-container>div{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.rrg-filter-checkbox-size__item{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:calc(50% - 10px)}.rrg-filter-checkbox-size__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),ux=["data-checked","data-testid"],px={class:"rrg-radio__text"},fx={key:0,class:"rrg-radio__description"},Au=xe(ge({__name:"Radio",props:{description:{type:String},disabled:{type:Boolean},testId:{type:String},text:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t;function s(){r.value||i("update:value",!0)}return(n,o)=>(F(),q("div",{class:Ne(["rrg-radio",{"is-checked":n.value,"is-disabled":n.disabled}]),"data-checked":n.value,"data-testid":n.testId,onClick:s},[o[0]||(o[0]=z("div",{class:"rrg-radio__checkmark"},[z("div",{class:"rrg-radio__icon"})],-1)),z("div",px,[sr(n.$slots,"default",{},()=>[It(ne(n.text),1)]),n.description?(F(),q("span",fx,ne(` ${n.description}`),1)):oe("",!0)])],10,ux))}}),[["styles",[".rrg-radio__checkmark{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--rrg-color-grey-200);border-radius:50%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:16px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.rrg-radio__icon{background-color:var(--rrg-color-white);border-radius:50%;height:50%;opacity:0;width:50%}.rrg-radio__text{font-size:16px;font-weight:400;line-height:normal;text-transform:capitalize}.rrg-radio__description{color:var(--rrg-color-grey-400);display:inline}.rrg-radio{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;gap:5px;max-width:100%;outline:none;padding:4px 0;width:auto}@media (hover: hover) and (pointer: fine){:is(.rrg-radio:hover,.rrg-radio:active) .rrg-radio__icon{opacity:1}}.rrg-radio.is-disabled{pointer-events:none}.rrg-radio.is-disabled .rrg-radio__checkmark{background-color:var(--rrg-color-grey-200)}.rrg-radio.is-disabled .rrg-radio__text{color:var(--rrg-color-grey-400)}.rrg-radio.is-checked .rrg-radio__checkmark{background-color:#111}.rrg-radio.is-checked .rrg-radio__icon{opacity:1}.rrg-radio.is-checked.is-disabled .rrg-radio__checkmark{background-color:var(--rrg-color-brand-300)}"]]]),gx={class:"rrg-filter-radio"},mx={class:"rrg-filter-radio__items-wrap"},hx=xe(ge({__name:"FilterRadio",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:null},visible:{type:Number}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{hide:"- Hide",noMatter:"No matter",showAll:"+ Show"},es:{hide:"- Ver menos",noMatter:"No importa",showAll:"+ Ver más"}}}),{getTestId:n}=Be(r.testId),o=le(),a=De({isShowAll:!1}),l=me(()=>a.isShowAll?r.data:r.data.slice(0,r.visible));function c(p){i("update:value",p)}async function d(){const p=o.value;if(!p)return;const u=!a.isShowAll,m=p.scrollHeight;a.isShowAll=u,await Dr();const f=p.scrollHeight;p.style.height=`${m}px`,p.style.overflow="hidden",p.style.transition="height 300ms ease",p.offsetHeight,p.style.height=`${f}px`,setTimeout(()=>{p.style.height="",p.style.overflow="",p.style.transition=""},300)}return(p,u)=>(F(),de(hr,{horizontal:!1,"test-id":p.testId,title:p.title},{default:Ve(()=>[z("div",gx,[z("div",mx,[z("div",{ref_key:"itemsContainer",ref:o,class:"items-container"},[se(Au,{"test-id":H(n)("item-no-matter"),text:H(s)("noMatter"),value:H(ft)(p.value,void 0),"onUpdate:value":u[0]||(u[0]=m=>c(void 0))},null,8,["test-id","text","value"]),(F(!0),q(ve,null,He(l.value,(m,f)=>(F(),de(Au,{key:f,description:m.description,"test-id":H(n)(`item-${f}`),text:m.text,value:H(ft)(p.value,m.value),"onUpdate:value":b=>c(m.value)},null,8,["description","test-id","text","value","onUpdate:value"]))),128))],512)]),p.data.length>r.visible?(F(),q("button",{key:0,class:"rrg-filter-radio__button",onClick:d},ne(a.isShowAll?H(s)("hide"):H(s)("showAll")),1)):oe("",!0)])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-radio{padding-bottom:16px;padding-top:10px}.rrg-filter-radio__items-wrap{overflow:hidden;width:100%}.items-container{overflow:hidden}.rrg-filter-radio__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#111;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:inherit;font-size:16px;font-style:normal;font-weight:400;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:20px;margin-top:20px;outline:none;padding:4px 0;text-align:left;width:auto}"]]]),bx={class:"rrg-input-text"},vx=["data-testid","inputmode","placeholder","value"],wx=xe(ge({__name:"InputText",props:{icon:{default:"",type:null},inputmode:{default:"text",type:String},placeholder:{default:"",type:String},testId:{type:String},value:{type:String}},emits:["blur","focus","keydown","update:value"],setup(e,{expose:t,emit:r}){const i=r,s=le();function n(){s.value&&s.value.blur()}function o(d){i("blur",d)}function a(d){d?.target?.focus({preventScroll:!0}),i("focus",d)}function l(d){i("update:value",d.target.value)}function c(d){i("keydown",d)}return t({blur:n}),(d,p)=>(F(),q("div",bx,[d.icon?(F(),de(Fe,{key:0,class:"rrg-input-text__icon",name:d.icon},null,8,["name"])):oe("",!0),z("input",{ref_key:"inputRef",ref:s,class:Ne(["rrg-input-text__input",{"is-icon":d.icon}]),"data-testid":d.testId,inputmode:d.inputmode,placeholder:d.placeholder,type:"text",value:d.value,onBlur:o,onFocus:a,onInput:l,onKeydown:c},null,42,vx)]))}}),[["styles",[".rrg-input-text{position:relative;width:100%}.rrg-input-text__icon{color:var(--rrg-color-grey-400);font-size:16px;left:12px;pointer-events:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.rrg-input-text__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--rrg-color-grey-50);border:1px solid var(--rrg-color-grey-200);border-radius:8px;font-family:inherit;font-size:14px;font-weight:400;height:36px;line-height:1;opacity:1;outline:none;padding:8px 12px;width:100%}.rrg-input-text__input::-webkit-input-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input::-moz-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input:-ms-input-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input::-ms-input-placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input::placeholder{color:var(--rrg-color-grey-400);font-family:inherit;font-size:inherit}.rrg-input-text__input:hover,.rrg-input-text__input:focus,.rrg-input-text__input:focus-within{border-color:var(--rrg-color-brand-300)}.rrg-input-text__input:active{background-color:var(--rrg-color-grey-200)}.rrg-input-text__input.is-icon{padding:8px 12px 8px 36px}"]]]);function Pu(e){return e===void 0||e===1/0||e===-1/0?"":e.toString()}const Ou=ge({__name:"InputNumber",props:{placeholder:{default:"",type:String},testId:{type:String},value:{type:null}},emits:["blur","focus","update:value"],setup(e,{emit:t}){const r=e,i=t,s=De({focused:!1,userInput:""}),n=me(()=>s.focused?s.userInput:Pu(r.value));function o(c){s.focused=!1,s.userInput="",i("blur",c)}function a(c){s.focused=!0,s.userInput=Pu(r.value),i("focus",c)}function l(c){s.userInput=c;const d=Dn(s.userInput);r.value!==d&&i("update:value",d)}return(c,d)=>(F(),de(wx,{class:"rrg-input-number",inputmode:"numeric",placeholder:c.placeholder,"test-id":c.testId,value:n.value,onBlur:o,onFocus:a,"onUpdate:value":l},null,8,["placeholder","test-id","value"]))}}),_x={class:"rrg-filter-range"},yx=xe(ge({__name:"FilterRange",props:{max:{type:Number},min:{type:Number},testId:{type:String},title:{type:String},value:{type:Object}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId),n=De({value:{from:void 0,to:void 0}});function o(){ft(r.value,n.value)||i("update:value",xt(n.value))}function a(c){let d=c;d!==void 0&&(d=Math.max(r.min,Math.min(r.max,d))),d!==void 0&&d>(r.value.to??r.max)&&(d=r.value.to??r.max),n.value.from=d}function l(c){let d=c;d!==void 0&&(d=Math.max(r.min,Math.min(r.max,d))),d!==void 0&&d<(r.value.from??r.min)&&(d=r.value.from??r.min),n.value.to=d}return Ke(()=>r.value,()=>{ft(r.value,n.value)||(n.value=xt(r.value))},{deep:!0,immediate:!0}),(c,d)=>(F(),de(hr,{horizontal:!1,"test-id":c.testId,title:c.title},{default:Ve(()=>[z("div",_x,[se(Ou,{placeholder:String(r.min),"test-id":H(s)("from"),value:n.value.from,onBlur:o,"onUpdate:value":a},null,8,["placeholder","test-id","value"]),se(Ou,{placeholder:String(r.max),"test-id":H(s)("to"),value:n.value.to,onBlur:o,"onUpdate:value":l},null,8,["placeholder","test-id","value"])])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-range{display:grid;gap:16px 12px;grid-template-columns:repeat(2,1fr);width:100%}"]]]);function xx(e,t=1e11){return Math.round(e*t)/t}const kx=["data-testid"],Sx=["data-testid","onPointerdown"],Cx=xe(ge({__name:"Slider",props:{max:{type:Number},min:{type:Number},step:{type:Number},testId:{type:String},value:{type:Object}},emits:["pointerup","update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId),n=De({sliderResized:!1,value:{from:void 0,to:void 0}}),o=le(),a=le(void 0),l=new ResizeObserver(()=>{n.sliderResized=!0,n.sliderResized=!1}),c=me(()=>{if(o.value&&!n.sliderResized){const{left:g,width:h}=o.value.getBoundingClientRect();return{left:g,width:h}}return{left:0,width:0}}),d=me(()=>{const g=r.max-r.min,h=n.value.from!==void 0?n.value.from:r.min,v=n.value.to!==void 0?n.value.to:r.max;return{from:(h-r.min)/g*100,to:(v-r.min)/g*100}});function p(g){const v=(g.clientX-c.value.left)/c.value.width,w=v*(r.max-r.min)+r.min,C=Math.abs(v-d.value.from/100)<Math.abs(v-d.value.to/100)?"from":"to";y(w,C),f(C)}function u(g){if(g.preventDefault(),g.stopPropagation(),!a.value)return;const h=(g.clientX-c.value.left)/c.value.width;y(h*(r.max-r.min)+r.min,a.value)}function m(g){const h=xx(Math.round(g/r.step)*r.step);return Object.is(h,-0)?0:h}function f(g){a.value=g,window.addEventListener("pointermove",u,!1),window.addEventListener("pointerup",b)}function b(){a.value=void 0,i("pointerup"),window.removeEventListener("pointermove",u,!1),window.removeEventListener("pointerup",b)}function y(g,h){const v=Math.min(Math.max(g,r.min),r.max),w=m(v);h==="from"&&(n.value.from===void 0||w!==n.value.from)&&(w>(n.value.to??r.max)?(n.value={from:n.value.to,to:w},a.value="to"):n.value={...n.value,from:w}),h==="to"&&(n.value.to===void 0||w!==n.value.to)&&(w<(n.value.from??r.min)?(n.value={from:w,to:n.value.from},a.value="from"):n.value={...n.value,to:w})}return Tt(()=>{o.value&&l.observe(o.value)}),Gt(()=>{o.value&&l.unobserve(o.value)}),Ke(()=>n.value,()=>{ft(r.value,n.value)||i("update:value",xt(n.value))},{deep:!0}),Ke(()=>r.value,()=>{ft(r.value,n.value)||(n.value=xt(r.value))},{deep:!0,immediate:!0}),(g,h)=>(F(),q("div",{ref_key:"sliderEl",ref:o,class:"rrg-slider","data-testid":g.testId,onPointerdown:p},[z("div",{class:"rrg-slider__bar",style:er({left:`${d.value.from}%`,right:`${100-d.value.to}%`})},null,4),(F(),q(ve,null,He(["from","to"],v=>z("div",{key:v,class:Ne(["rrg-slider__thumb",{"rrg-slider__thumb--from":v==="from","rrg-slider__thumb--to":v==="to"}]),"data-testid":H(s)(v),style:er({left:`${d.value[v]}%`}),onPointerdown:Zs(w=>f(v),["stop"]),onTouchstart:h[0]||(h[0]=Zs(()=>{},["prevent"]))},null,46,Sx)),64))],40,kx))}}),[["styles",[".rrg-slider{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#e3e4e6;border-radius:8px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:4px;margin:0 8px;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:auto;z-index:0}.rrg-slider__bar{background-color:#111;border-radius:8px;height:100%;max-width:100%;position:absolute;width:auto}.rrg-slider__thumb{background-color:#111;border-radius:50%;cursor:pointer;height:16px;position:absolute;top:50%;-ms-touch-action:none;touch-action:none;width:16px;z-index:1}.rrg-slider__thumb--from,.rrg-slider__thumb--to{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}"]]]),Ex={class:"rrg-filter-range-with-slider"},Tx={class:"rrg-filter-range-with-slider__wrap-slider"},Ix={class:"rrg-filter-range-with-slider__wrap-price"},Ax={class:"rrg-filter-range-with-slider__min-price"},Px={class:"rrg-filter-range-with-slider__max-price"},Ox=xe(ge({__name:"FilterRangeWithSlider",props:{max:{type:Number},min:{type:Number},step:{type:Number},testId:{type:String},title:{type:String},value:{type:Object}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{locale:s}=nt(),{getTestId:n}=Be(r.testId),o=De({value:{from:void 0,to:void 0}});function a(c){return qo(c,void 0,s.value)}function l(){ft(r.value,o.value)||i("update:value",xt(o.value))}return Ke(()=>r.value,()=>{ft(r.value,o.value)||(o.value=xt(r.value))},{deep:!0,immediate:!0}),(c,d)=>(F(),de(hr,{horizontal:!1,"test-id":c.testId,title:c.title},{default:Ve(()=>[z("div",Ex,[z("div",Tx,[se(Cx,{value:o.value,"onUpdate:value":d[0]||(d[0]=p=>o.value=p),class:"rrg-filter-range-with-slider__slider",max:c.max,min:c.min,step:c.step,"test-id":H(n)("slider"),onPointerup:l},null,8,["value","max","min","step","test-id"])]),z("div",Ix,[z("span",Ax," $ "+ne(a(o.value.from||r.min)),1),d[1]||(d[1]=It(" - ")),z("span",Px," $ "+ne(a(o.value.to||r.max)),1)])])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-range-with-slider{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px 12px;margin-top:4px;padding-bottom:16px;width:100%}.rrg-filter-range-with-slider__wrap-slider{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:24px}.rrg-filter-range-with-slider__wrap-price{color:#727273;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;gap:4px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto}"]]]),Lx={class:"rrg-rating"},$x={key:0,class:"rrg-rating__star-container"},Mx=5,Rx=xe(ge({__name:"Rating",props:{testId:{type:String},value:{type:null}},setup(e){const t=e,{getTestId:r}=Be(t.testId),i=me(()=>Math.max(0,Math.min(5,t.value??0))),s=me(()=>i.value%1),n=me(()=>Math.floor(i.value)),o=me(()=>s.value!==0),a=me(()=>s.value*100),l=me(()=>Mx-n.value-(o.value?1:0));return(c,d)=>(F(),q("div",Lx,[(F(!0),q(ve,null,He(n.value,p=>(F(),de(Fe,{key:p,class:"rrg-rating__star is-full",name:"star"}))),128)),o.value?(F(),q("div",$x,[se(Fe,{class:"rrg-rating__star rrg-rating__star--partial-filled","data-testid":H(r)("partial-filled"),name:"star",style:er({maskImage:`linear-gradient(to right, black ${a.value}%, transparent ${a.value}%)`})},null,8,["data-testid","style"]),se(Fe,{class:"rrg-rating__star",name:"star"})])):oe("",!0),(F(!0),q(ve,null,He(l.value,p=>(F(),de(Fe,{key:p,class:"rrg-rating__star",name:"star"}))),128))]))}}),[["styles",[".rrg-rating{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;gap:4px;height:16px}.rrg-rating__star-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;gap:4px;height:16px;position:relative}.rrg-rating__star{color:var(--rrg-color-grey-300);font-size:16px}.rrg-rating__star.is-full{color:var(--rrg-color-yellow)}.rrg-rating__star--partial-filled{color:var(--rrg-color-yellow);left:0;position:absolute;z-index:1}"]]]),Fx={class:"rrg-filter-rating"},Nx=xe(ge({__name:"FilterRating",props:{data:{type:Array},testId:{type:String},title:{type:String},value:{type:Array}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId);function n(o){const a=xt(r.value),l=a.findIndex(c=>ft(c,o.value));l!==-1?a.splice(l,1):a.push(o.value),i("update:value",a)}return(o,a)=>(F(),de(hr,{horizontal:!1,"test-id":o.testId,title:o.title},{default:Ve(()=>[z("div",Fx,[(F(!0),q(ve,null,He(o.data,(l,c)=>(F(),de(Iu,{key:c,class:"rrg-filter-rating__option","test-id":H(s)(`item-${c}`),text:String(l.value),value:o.value.includes(l.value),"onUpdate:value":d=>n(l)},{default:Ve(()=>[se(Rx,{"test-id":"",value:l.value},null,8,["value"])]),_:2},1032,["test-id","text","value","onUpdate:value"]))),128))])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-rating{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;width:100%}.rrg-filter-rating__option{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}"]]]),Dx=["data-testid"],zx=xe(ge({__name:"Switch",props:{testId:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t;function s(){i("update:value",!r.value)}return(n,o)=>(F(),q("div",{class:Ne(["rrg-switch",{"is-active":n.value}]),"data-testid":n.testId,onClick:s},[z("div",{class:Ne(["rrg-switch__bar",{"is-active":n.value}])},null,2)],10,Dx))}}),[["styles",[".rrg-switch__bar{background-color:var(--rrg-color-white);border-radius:50%;height:20px;left:2px;margin-right:auto;pointer-events:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition-duration:.1s;transition-duration:.1s;-webkit-transition-property:left,width,height;transition-property:left,width,height;width:20px}.rrg-switch__bar.is-active{left:calc(100% - 22px)}.rrg-switch{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--rrg-color-grey-300);border-radius:24px;cursor:pointer;display:inline-grid;height:24px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start;outline:none;position:relative;width:40px}@media (hover: hover) and (pointer: fine){.rrg-switch:active{background-color:var(--rrg-color-grey-500)}.rrg-switch:active .rrg-switch__bar{height:14px;left:calc(50% - 7px);width:14px}.rrg-switch:hover{background-color:var(--rrg-color-grey-400)}}.rrg-switch.is-active{background-color:var(--rrg-color-brand)}@media (hover: hover) and (pointer: fine){.rrg-switch.is-active:hover{background-color:var(--rrg-color-brand-400)}.rrg-switch.is-active:active{background-color:var(--rrg-color-brand-500)}}"]]]),Bx=xe(ge({__name:"FilterSwitch",props:{testId:{type:String},title:{type:String},value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId);function n(o){i("update:value",o)}return(o,a)=>(F(),de(hr,{horizontal:!0,"test-id":o.testId,title:o.title},{default:Ve(()=>[se(zx,{"test-id":H(s)("switch"),value:o.value,"onUpdate:value":n},null,8,["test-id","value"])]),_:1},8,["test-id","title"]))}}),[["styles",[".rrg-filter-switch{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:grid;grid-template-columns:1fr auto}.rrg-filter-switch__title{font-size:16px;font-weight:500;line-height:20px}"]]]),Vx={class:"rrg-filters-dialog"},Hx={class:"rrg-filters-dialog__header"},Ux={class:"rrg-filters-dialog__body"},Wx=["data-testid"],Gx={class:"rrg-filters-dialog__footer"},jx=xe(ge({__name:"Filters",props:{isMobile:{type:Boolean},modalContainer:{type:Object},show:{type:Boolean},testId:{type:String},value:{type:Array}},emits:["update:value","close","beforeEnterAnimation","afterLeaveAnimation"],setup(e,{emit:t}){const r=e,i=t,{t:s}=nt({messages:{en:{cancel:"Cancel",filters:"Filters",filtersMobile:"Filters",resetFilters:"Reset filters",save:"Save",showFilters:"Show Filters"},es:{cancel:"Eliminar",filters:"Filtros",filtersMobile:"Filtrar",resetFilters:"Limpiar todo",save:"Aplicar",showFilters:"Show filters"}}}),{getTestId:n}=Be(r.testId),o=De({show:!0,value:[]}),a=me(()=>{let u=0;for(const m of o.value)switch(m.type){case"CategoryTree":{m.value!==void 0&&(u+=1);break}case"Checkbox":{m.value.length>0&&(u+=1);break}case"Radio":{m.value!==void 0&&(u+=1);break}case"Range":{(m.value.from!==void 0||m.value.to!==void 0)&&(u+=1);break}case"RangeWithSlider":{(m.value.from!==void 0||m.value.to!==void 0)&&(u+=1);break}case"Rating":{m.value.length>0&&(u+=1);break}case"Switch":{m.value&&(u+=1);break}default:zn(m)}return u});function l(){r.isMobile&&(o.show=!1,i("close"))}function c(){for(const u of o.value)switch(u.type){case"CategoryTree":{u.value=void 0;break}case"Checkbox":{u.value=[];break}case"Radio":{u.value=void 0;break}case"Range":{u.value={from:void 0,to:void 0};break}case"RangeWithSlider":{u.value={from:void 0,to:void 0};break}case"Rating":{u.value=[];break}case"Switch":{u.value=!1;break}default:zn(u)}r.isMobile||p()}function d(){p(),l()}function p(){ft(r.value,o.value)||i("update:value",xt(o.value))}return Ke(()=>o.value,()=>{r.isMobile||p()},{deep:!0}),Ke([()=>r.value,()=>o.show],()=>{ft(r.value,o.value)||(o.value=xt(r.value))},{deep:!0,immediate:!0}),Ke([()=>r.show,()=>r.isMobile],()=>{r.isMobile?o.show=r.show:o.show=!0},{immediate:!0}),(u,m)=>(F(),de(zp,{defer:"",disabled:!u.isMobile,to:u.modalContainer},[se(Gs,{name:"slide"},{default:Ve(()=>[vt(z("div",{class:"rrg-filters-dialog-wrapper",onPointerdown:Zs(l,["self"])},[z("div",Vx,[z("div",Hx,[z("h5",null,ne(u.isMobile?H(s)("filtersMobile"):H(s)("filters")),1),u.isMobile?(F(),q("button",{key:0,class:"rrg-filters-dialog__header-close",onPointerdown:l},[se(Fe,{name:"cross"})],32)):oe("",!0),a.value&&!u.isMobile?(F(),de(gi,{key:1,class:"rrg-filters__reset-button",color:"secondary","test-id":H(n)("reset-filters"),text:`${H(s)("resetFilters")}`,onClick:c},null,8,["test-id","text"])):oe("",!0)]),z("div",Ux,[(F(!0),q(ve,null,He(o.value,(f,b)=>(F(),q("div",{key:f.id,class:"rrg-filters__item","data-testid":H(n)(`filter-${b}`)},[f.type==="CategoryTree"?(F(),de(U1,{key:0,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("category-tree"),title:f.title},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0),f.type==="Checkbox"&&f.id!=="color"&&f.id!=="size"?(F(),de(q1,{key:1,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("checkbox"),title:f.title,visible:4},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0),f.type==="Checkbox"&&f.id==="color"?(F(),de(ix,{key:2,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"is-mobile":u.isMobile,"test-id":H(n)("checkbox"),title:f.title,visible:u.isMobile?6:4},null,8,["value","onUpdate:value","data","is-mobile","test-id","title","visible"])):oe("",!0),f.type==="Checkbox"&&f.id==="size"?(F(),de(dx,{key:3,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"is-mobile":u.isMobile,"test-id":H(n)("checkbox"),title:f.title,visible:u.isMobile?6:4},null,8,["value","onUpdate:value","data","is-mobile","test-id","title","visible"])):oe("",!0),f.type==="Radio"?(F(),de(hx,{key:4,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("radio"),title:f.title,visible:1},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0),f.type==="Range"?(F(),de(yx,{key:5,value:f.value,"onUpdate:value":y=>f.value=y,max:f.max,min:f.min,"test-id":H(n)("range"),title:f.title},null,8,["value","onUpdate:value","max","min","test-id","title"])):oe("",!0),f.type==="RangeWithSlider"?(F(),de(Ox,{key:6,value:f.value,"onUpdate:value":y=>f.value=y,max:f.max,min:f.min,step:f.step,"test-id":H(n)("range-with-slider"),title:f.title},null,8,["value","onUpdate:value","max","min","step","test-id","title"])):oe("",!0),f.type==="Switch"?(F(),de(Bx,{key:7,value:f.value,"onUpdate:value":y=>f.value=y,"test-id":H(n)("switch"),title:f.title},null,8,["value","onUpdate:value","test-id","title"])):oe("",!0),f.type==="Rating"?(F(),de(Nx,{key:8,value:f.value,"onUpdate:value":y=>f.value=y,data:f.data,"test-id":H(n)("rating"),title:f.title},null,8,["value","onUpdate:value","data","test-id","title"])):oe("",!0)],8,Wx))),128))]),z("div",Gx,[se(gi,{color:"secondary","test-id":H(n)("cancel"),text:H(s)("cancel"),onClick:c},null,8,["test-id","text"]),se(gi,{color:"primary","test-id":H(n)("save"),text:H(s)("save"),onClick:d},null,8,["test-id","text"])])])],544),[[_t,o.show]])]),_:1})],8,["disabled","to"]))}}),[["styles",['.rrg-filters__item{border-bottom:1px solid #e3e4e6}.rrg-filters__item:last-of-type{border-bottom:1px solid transparent}@media (width < 1024px){.rrg-filters__item{padding-bottom:0}}.rrg-filters-dialog-wrapper{display:grid;width:100%}@media (width <= 1024px){.rrg-filters-dialog-wrapper{display:grid;height:100vh;left:0;max-height:100%;outline:none;overflow:hidden;-ms-scroll-chaining:none;overscroll-behavior:none;position:fixed;top:0;width:100vw;z-index:3}.rrg-filters-dialog-wrapper:before{background-color:#111;content:"";height:100%;left:0;opacity:.4;pointer-events:none;position:absolute;top:0;width:100%}}.rrg-filters-dialog{background-color:var(--rrg-color-white);border-top-left-radius:8px;border-top-right-radius:8px;display:grid;grid-template-rows:1fr;height:auto;margin-top:auto;width:100%;z-index:1}@media (width <= 1024px){.rrg-filters-dialog{border-radius:0;-webkit-box-shadow:0 0 8px 2px rgb(0 0 0 / 20%);box-shadow:0 0 8px 2px #0003;grid-template-rows:50px 1fr 64px;height:100%;max-width:256px;position:absolute;right:0}}@media (width <= 640px){.rrg-filters-dialog{max-width:100%}}.rrg-filters-dialog__header{border-bottom:1px solid #e3e4e6;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding-bottom:16px;padding-top:16px;position:relative;width:100%}.rrg-filters-dialog__header h5{color:#111;font-family:Helvetica-Neue,sans-serif;font-size:18px;font-weight:400;letter-spacing:0;margin:0}.rrg-filters-dialog__header .rrg-filters-dialog__header-close{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent;border:none;border-radius:50%;color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;height:30px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;outline:none;padding:5px;position:absolute;right:15px;top:10px;width:30px;z-index:99}@media (width <= 1024px){.rrg-filters-dialog__header{padding:12px 16px}.rrg-filters-dialog__header h5{font-size:20px;font-weight:500;line-height:24px}}.rrg-filters-dialog__header .rrg-filters__reset-button{background:transparent;border:none;color:#111;font-size:14px;font-weight:400;height:auto;min-height:unset;padding:0;text-decoration:underline;text-transform:capitalize;width:auto}.rrg-filters-dialog__body{-ms-flex-line-pack:start;align-content:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden auto}@media (width <= 1024px){.rrg-filters-dialog__body{padding:0 16px}}.rrg-filters-dialog__footer{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:none;display:none;gap:20px;padding:0 12px}@media (width <= 1024px){.rrg-filters-dialog__footer{display:-webkit-box;display:-ms-flexbox;display:flex}}.rrg-filters-dialog__footer :nth-child(1),.rrg-filters-dialog__footer :nth-child(2){-webkit-box-flex:1;-ms-flex:1;flex:1;min-height:45px;padding:13px 24px}@media (width < 1024px){.slide-enter-active,.slide-leave-active{-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}:is(.slide-enter-active,.slide-leave-active) .rrg-filters-dialog{-webkit-transition:-webkit-transform .5s ease-out;transition:-webkit-transform .5s ease-out;transition:transform .5s ease-out;transition:transform .5s ease-out,-webkit-transform .5s ease-out}}@media (width < 1024px){:is(.slide-enter-from,.slide-leave-to) .rrg-filters-dialog{-webkit-transform:translateX(100%)!important;transform:translate(100%)!important}}@media (width < 1024px){:is(.slide-enter-to,.slide-leave-from) .rrg-filters-dialog{-webkit-transform:translateX(0);transform:translate(0)}}']]]),Yx=["data-testid"],rs=xe(ge({__name:"Spinner",props:{testId:{type:String}},setup(e){return(t,r)=>(F(),q("div",{class:"rrg-spinner","data-testid":t.testId},[se(Fe,{class:"rrg-spinner__icon",name:"spinner"})],8,Yx))}}),[["styles",[".rrg-spinner{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.rrg-spinner__icon{-webkit-animation:rrg-spinner-rotate .5s linear infinite;animation:rrg-spinner-rotate .5s linear infinite;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}@-webkit-keyframes rrg-spinner-rotate{0%{-webkit-transform:translateZ(0) rotate(0deg);transform:translateZ(0) rotate(0)}to{-webkit-transform:translateZ(0) rotate(1turn);transform:translateZ(0) rotate(1turn)}}@keyframes rrg-spinner-rotate{0%{-webkit-transform:translateZ(0) rotate(0deg);transform:translateZ(0) rotate(0)}to{-webkit-transform:translateZ(0) rotate(1turn);transform:translateZ(0) rotate(1turn)}}"]]]),Kx=["data-testid"],Xx={key:1,class:"rr-listing__btn rr-listing__btn--spacer"},qx=xe(ge({__name:"Listing",props:{loading:{type:Boolean},page:{type:Number},pagesCount:{type:Number},resetPage:{type:Boolean},showButtons:{type:Boolean},testId:{type:String}},emits:["updatePage"],setup(e,{emit:t}){const r=e,i=t,s=De({nextPage:1,prevPage:1}),{getTestId:n}=Be(r.testId),o=me(()=>s.prevPage>1&&r.showButtons),a=le(null);let l=null;function c(u){l=new IntersectionObserver(([m])=>{m.isIntersecting&&(r.pagesCount>s.nextPage?(s.nextPage+=1,i("updatePage",s.nextPage)):d())},{threshold:0}),l.observe(u)}function d(){l?.disconnect(),l=null}function p(){s.prevPage>1&&(s.prevPage-=1,i("updatePage",s.prevPage))}return Tt(async()=>{s.nextPage=r.page,r.page>1&&(s.prevPage=r.page),await Dr(),r.showButtons&&a.value?.$el&&c(a.value.$el)}),Gt(d),Ke(()=>[r.showButtons,a.value],async([u,m])=>{d(),await Dr(),u&&m?.$el&&c(m.$el)}),Ke(()=>r.resetPage,u=>{u&&(s.prevPage=r.page,s.nextPage=r.page)}),(u,m)=>(F(),q("div",{class:"rr-listing","data-testid":u.testId},[o.value?(F(),de(gi,{key:0,class:"rr-listing__btn",color:"primary","test-id":H(n)("btn-prev"),text:"Mostrar anteriores",onClick:p},{default:Ve(()=>[u.loading?(F(),de(rs,{key:0,class:"rr-listing__btn__spinner","test-id":"rr-listing-spinner-prev"})):oe("",!0)]),_:1},8,["test-id"])):(F(),q("div",Xx)),sr(u.$slots,"default"),u.showButtons?(F(),de(gi,{key:2,ref_key:"nextBtn",ref:a,class:"rr-listing__btn rr-listing__btn--next",color:"primary","test-id":H(n)("btn-next"),text:"Mostrar más"},{default:Ve(()=>[u.loading?(F(),de(rs,{key:0,class:"rr-listing__btn__spinner","test-id":"rr-listing-spinner-next"})):oe("",!0)]),_:1},8,["test-id"])):oe("",!0)],8,Kx))}}),[["styles",[".rr-listing{display:block}.rr-listing .rr-listing__btn{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#111;border-radius:40px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:.875em;font-weight:500;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:40px;margin:1rem auto;min-height:auto;overflow:hidden;padding:.25em calc(1em + 28px) 0;text-transform:uppercase;-webkit-transition:opacity .2s;transition:opacity .2s}.rr-listing .rr-listing__btn:hover{opacity:.7}.rr-listing .rr-listing__btn--spacer{background-color:transparent;height:32px;margin:0}@media (width < 1026px){.rr-listing .rr-listing__btn--spacer{width:16px}}.rr-listing .rr-listing__btn__spinner{background:#878787;color:#464646;font-size:16px;height:100%;left:0;position:absolute;top:0;width:100%}.rr-listing .rr-listing__btn--next{margin:.5rem auto 2.5rem}"]]]),Zx=["data-product-id","data-product-index","data-testid"],Jx=xe(ge({__name:"Products",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},currencySymbol:{type:String},filterUpdated:{type:Boolean},products:{type:Array},removeFromCart:{type:Function},removeFromWishlist:{type:Function},testId:{type:String},wishlist:{type:Object}},emits:["productsVisible"],setup(e,{emit:t}){const r=e,i=t,s=De({productsVisible:new Set}),n=le(null),{getTestId:o}=Be(r.testId);return es({itemSelector:".rrg-products__product",onIntersectBatch:a=>{let l=!1;a.forEach(c=>{const d=c.target.dataset.productId,p=r.products.find(u=>u.id===Number(d));p&&!s.productsVisible.has(p)&&(s.productsVisible.add(p),l=!0)}),l&&i("productsVisible",Array.from(s.productsVisible))},targetContainer:n,watchSource:()=>r.products}),Ke(()=>r.filterUpdated,()=>{s.productsVisible.clear()}),(a,l)=>(F(),q("div",{ref_key:"productsContainer",ref:n,class:"rrg-products"},[(F(!0),q(ve,null,He(a.products,c=>(F(),q("div",{key:c.id,class:"rrg-products__product","data-product-id":c.id,"data-product-index":c.actualIndex,"data-testid":H(o)(`product-${c.id}`)},[se(Zo,{id:c.id,"currency-symbol":a.currencySymbol,"group-sizes":c.groupSizes,href:c.href,image:c.image,"in-wishlist":a.wishlist[c.id]||!1,name:c.name,"old-price":c.oldPrice,price:c.price,"products-params":c.productsParams,quantity:a.cart[c.id]||0,rating:c.rating,"reviews-count":c.reviewsCount,"show-rating":!!c.rating,"test-id":H(o)(`product-card-${c.id}`),onAddToCart:d=>a.addToCart(c,d),onAddToWishlist:d=>a.addToWishlist(c),onClickOnProduct:d=>a.clickOnProduct(c),onRemoveFromCart:d=>a.removeFromCart(c),onRemoveFromWishlist:d=>a.removeFromWishlist(c)},null,8,["id","currency-symbol","group-sizes","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])],8,Zx))),128))],512))}}),[["styles",[".rrg-products{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 20vh;row-gap:40px}@media (width < 1026px){.rrg-products{grid-template-columns:repeat(2,1fr);padding:0 8px;row-gap:16px}}.rrg-products__product{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px;position:relative;width:100%}@media (width < 481px){.rrg-products__product{padding:0 5px}}"]]]);function Qx(e,t){return t.composedPath().filter(i=>i.nodeType===Node.ELEMENT_NODE).every(i=>e&&!e.contains(i))}const ek=["data-testid"],tk={class:"rrg-sortings__button-text"},rk=["data-testid"],ik=["data-testid","onClick"],nk=xe(ge({__name:"Sortings",props:{options:{type:Array},testId:{type:String},value:{type:null}},emits:["update:value"],setup(e,{emit:t}){const r=e,i=t,{getTestId:s}=Be(r.testId),n=De({isShowOptions:!1}),o=le(),a=me(()=>r.options.find(u=>u.value===r.value));function l(){n.isShowOptions=!1}function c(u){n.isShowOptions&&o.value&&Qx(o.value,u)&&l()}function d(u){i("update:value",u.value),n.isShowOptions=!1}function p(){n.isShowOptions=!n.isShowOptions}return Tt(()=>{window.addEventListener("pointerup",c)}),Gt(()=>{window.removeEventListener("pointerup",c)}),(u,m)=>(F(),q("div",{ref_key:"rootEl",ref:o,class:"rrg-sortings"},[z("button",{class:"rrg-sortings__button","data-testid":u.testId,onClick:p},[z("span",tk,ne(a.value?.text),1),se(Fe,{class:"rrg-sortings__button-icon",name:n.isShowOptions?"arrowUp":"arrowDown"},null,8,["name"])],8,ek),n.isShowOptions?(F(),q("ul",{key:0,class:"rrg-sortings__options","data-testid":H(s)("options")},[(F(!0),q(ve,null,He(u.options,(f,b)=>(F(),q("li",{key:b,class:Ne(["rrg-sortings__option",{"rrg-sortings__option--active":a.value?.text===f.text}]),"data-testid":H(s)(`option-${b}`),onClick:y=>d(f)},ne(f.text),11,ik))),128))],8,rk)):oe("",!0)],512))}}),[["styles",[".rrg-sortings{display:inline-block;position:relative;width:auto}.rrg-sortings__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:14px;font-weight:400;gap:8px;line-height:1.15;outline:none;padding:8px 0 8px 5px;text-align:left;width:auto}.rrg-sortings__button:hover{border-color:var(--rrg-color-brand-300)}.rrg-sortings__button-text{color:#757575;font-size:1rem;font-weight:400}@media (width < 1026px){.rrg-sortings__button-text{display:none}}.rrg-sortings__button-icon{color:#111;font-size:10px;pointer-events:none}.rrg-sortings__options{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-radius:0 0 8px 8px;display:block;-webkit-filter:drop-shadow(0 8px 16px rgb(121 156 208 / 12%));filter:drop-shadow(0 8px 16px rgb(121 156 208 / 12%));font-size:1rem;font-weight:400;margin:0;max-width:180px;padding:0 0 10px;position:absolute;right:0;top:100%;-webkit-transform:translateY(4px);transform:translateY(4px);width:auto;z-index:2}.rrg-sortings__option{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:8px;color:#111;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:.8125rem;margin:0;outline:none;padding:5px 10px;-webkit-transition:.3s all;transition:.3s all;white-space:nowrap}.rrg-sortings__option:hover{color:#757575}.rrg-sortings__option:before{content:url(https://nikeclprod.vtexassets.com/assets/vtex/assets-builder/nikeclprod.store/3.0.75/icons/nike-no-check___4c55083….png);display:inline-block;height:20px;margin-right:6px;-webkit-transition:.3s all;transition:.3s all;width:20px}.rrg-sortings__option--active:before{content:url(https://nikeclprod.vtexassets.com/assets/vtex/assets-builder/nikeclprod.store/3.0.75/icons/nike-check___80ab120….png)}"]]]),sk={class:"rrg-app-container"},ok={key:0,class:"rrg-app__wrap-spinner"},ak={key:0,class:"rrg-app__phrase"},lk={class:"rrg-app__wrap-filters"},ck={class:"rrg-app__main-content"},dk={key:0},uk={key:1,class:"rrg-app__phrase-mobile"},pk={class:"rrg-app__block-sorting"},fk={key:0,class:"rrg-app__block-sorting__title-count-products"},gk={key:1,class:"rrg-app__wrap-btn-hide-filters"},mk={class:"rrg-app__title-btn-hide-filters"},hk={key:2,class:"rrg-app__sorting"},bk={class:"rrg-app__products"},vk={class:"rrg-app__progress-bar"},wk={key:2,class:"rrg-app__empty"},Qo=24,_k=xe(ge({__name:"WebCmpSearchResultPage",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},clickOnProductGA:{type:Function},currencySymbol:{type:String},deps:{type:Object},initialState:{type:Object},phrase:{type:String},placementId:{type:Object},productsVisible:{type:Function},recomAddToCart:{type:Function},recomMouseDown:{type:Function},recomMouseDownWishlistAdd:{type:Function},recomMouseDownWishlistRemove:{type:Function},removeFromCart:{type:Function},removeFromWishlist:{type:Function},resultGASearchEvent:{type:Function},wishlist:{type:Object}},setup(e){const t=e,r=le(),i=le(),s=le(),n=De({contentId:"",filters:null,filterUpdated:!0,isMobile:!1,loading:!1,page:1,pagesCount:1,products:[],productsCount:0,resetPageListing:!1,showFilters:!0,sorting:void 0,sortings:[],visiblePages:0});function o(){if(n.showFilters=!n.showFilters,s.value?.classList.remove("is-open","is-closed"),n.isMobile)return;const k=n.showFilters?"add":"remove";s.value?.classList[k]("is-open"),s.value?.classList[k==="add"?"remove":"add"]("is-closed")}const a=me(()=>{if(!n.filters)return null;const k=n.filters.find(E=>E.id==="gender");return k&&k.type==="Checkbox"&&"data"in k?k:null}),{t:l}=nt({messages:{en:{foundItems:"Найденные товары",items:"{n} товаров | {n} товар | {n} товара | {n} товаров",nothingWasFound:"Для вашего запроса ничего не найдено",products:"Products",showFiltersDesktop:"Show filters",showFiltersMobile:"Filters"},es:{foundItems:"Found items",items:"{n} items | {n} item | {n} items",nothingWasFound:"Nothing was found for your query",products:"Productos",showFiltersDesktop:"Ocultar Filtros",showFiltersMobile:"Fitros"}}}),c=me(()=>`${n.visiblePages/n.pagesCount*100}%`);function d(k){return k.charAt(0).toUpperCase()+k.slice(1)}const p=me(()=>{if(!n.filters||n.filters.length===0)return t.initialState.filtersValues;const k={};for(const E of n.filters)switch(E.type){case"CategoryTree":{E.value!==void 0&&(k[E.id]={type:E.type,value:E.value});break}case"Checkbox":{E.value.length>0&&(k[E.id]={type:E.type,value:E.value});break}case"Radio":{E.value!==void 0&&(k[E.id]={type:E.type,value:E.value});break}case"Range":{(E.value.from!==void 0||E.value.to!==void 0)&&(k[E.id]={type:E.type,value:E.value});break}case"RangeWithSlider":{(E.value.from!==void 0||E.value.to!==void 0)&&(k[E.id]={type:E.type,value:E.value});break}case"Rating":{E.value.length>0&&(k[E.id]={type:E.type,value:E.value});break}case"Switch":{E.value&&(k[E.id]={type:E.type,value:E.value});break}default:zn(E)}return k});function u(k,E,O){let I=(E-1)*Qo;if(!O&&n.products.length>0){const M=n.products.reduce((U,$)=>Math.max(U,$.actualIndex??0),0);I=M>0?M:n.products.length}return k.map((M,U)=>({...M,actualIndex:I+U+1}))}function m(){window.scrollTo({behavior:"instant",top:0})}async function f(k=!1){n.loading=!0,n.visiblePages+=1,await t.deps.searchProducts({filtersValues:p.value,page:n.page,pageSize:Qo,phrase:t.phrase,sorting:n.sorting}).then(E=>{E.match({err:async()=>{n.contentId="",n.filters=[],n.pagesCount=1,n.productsCount=0,n.products=[],n.sortings=[]},ok:async O=>{n.contentId=O.contentId,n.filters=O.filters,n.pagesCount=O.pagesCount,n.productsCount=O.productsCount;const I=u(O.products,n.page,k);n.products=k?[...I,...n.products]:[...n.products,...I],n.sortings=O.sortings}})}),n.productsCount&&t.resultGASearchEvent(t.phrase),n.loading=!1}async function b(){n.loading=!0,n.resetPageListing=!0,n.visiblePages=1,n.filterUpdated=!0,await t.deps.searchProducts({filtersValues:p.value,page:n.page,pageSize:Qo,phrase:t.phrase,sorting:n.sorting}).then(k=>{k.match({err:async()=>{n.filters=[],n.pagesCount=1,n.productsCount=0,n.products=[],n.sortings=[]},ok:async E=>{n.filters=E.filters,n.pagesCount=E.pagesCount,n.productsCount=E.productsCount,n.products=[],n.products=u(E.products,n.page,!1),n.sortings=E.sortings}})}),n.loading=!1,n.resetPageListing=!1,n.filterUpdated=!1,n.productsCount&&t.resultGASearchEvent(t.phrase)}async function y(k){n.page=1;for(const E of n.filters??[])E.type==="Checkbox"&&E.id==="gender"&&(E.value=k);await b(),h(),m()}async function g(k){n.page=1,n.filters=k,await b(),h(),m()}function h(){t.deps.onUpdateState({filtersValues:p.value,page:n.page,sorting:n.sorting})}async function v(k){if(n.loading)return;const E=n.page>k;n.page=k,await f(E),h()}async function w(k){n.sorting=k,await b(),h()}const C=Q0(()=>{n.isMobile=window.innerWidth<=1024,n.showFilters=!n.isMobile},16);return Tt(async()=>{C(),window.addEventListener("resize",C),t.phrase&&(n.filters=null,n.sorting=t.initialState.sorting||void 0,n.page=t.initialState.page||1,await f())}),Gt(()=>{window.removeEventListener("resize",C)}),Ke(()=>t.phrase,async()=>{t.phrase&&(n.filters=null,n.page=1,n.sorting=void 0,await b(),h())}),(k,E)=>(F(),q("div",{ref_key:"rootEl",ref:r,class:"rrg-app"},[z("div",sk,[n.loading?(F(),q("div",ok,[se(rs,{class:"rrg-app__spinner","test-id":"rrg-app__spinner"})])):oe("",!0),t.phrase&&(n.loading||n.filters?.length)?(F(),q("div",{key:1,class:Ne(["rrg-app__main",{"is-loading":n.loading}])},[k.phrase.length&&n.filters?.length?(F(),q("div",ak,ne(d(k.phrase)),1)):oe("",!0),z("div",lk,[vt(z("div",{ref_key:"filtersList",ref:s,class:"rrg-app__filters-list"},[n.filters?.length?(F(),de(jx,{key:0,"is-mobile":n.isMobile,"modal-container":i.value,show:n.showFilters,"test-id":"filters",value:n.filters,onClose:o,"onUpdate:value":g},null,8,["is-mobile","modal-container","show","value"])):oe("",!0)],512),[[_t,!n.isMobile]])]),z("div",ck,[a.value?.value?(F(),q("div",dk,[se(A1,{value:a.value.value,"onUpdate:value":[E[0]||(E[0]=O=>a.value.value=O),y],class:"rrg-app__filter-checkbox-img",data:a.value.data,"test-id":"checkbox",title:a.value.title,visible:a.value.data.length},null,8,["value","data","title","visible"])])):oe("",!0),k.phrase.length&&n.products.length?(F(),q("div",uk,ne(d(k.phrase)),1)):oe("",!0),z("div",pk,[n.productsCount?(F(),q("div",fk,[It(ne(n.productsCount)+" ",1),z("span",null,ne(H(l)("products")),1)])):oe("",!0),n.filters?.length?(F(),q("div",gk,[z("div",{class:"rrg-app__inner-wrap-btn-hide-filters",onPointerdown:o},[z("div",mk,[z("span",null,ne(n.isMobile?H(l)("showFiltersMobile"):H(l)("showFiltersDesktop")),1)]),se(Fe,{name:"filter"})],32)])):oe("",!0),n.sortings.length?(F(),q("div",hk,[E[3]||(E[3]=z("div",{class:"rrg-app__block-sorting__title-sorting"}," Ordenar por ",-1)),se(nk,{value:n.sorting,"onUpdate:value":[E[1]||(E[1]=O=>n.sorting=O),w],options:n.sortings,"test-id":"sorting"},null,8,["value","options"])])):oe("",!0)]),n.products.length?(F(),de(qx,{key:2,loading:n.loading,page:n.page,"pages-count":n.pagesCount,"reset-page":n.resetPageListing,"show-buttons":n.pagesCount>1,"test-id":"listing",onUpdatePage:v},{default:Ve(()=>[z("div",null,[z("div",bk,[se(Jx,{"add-to-cart":(O,I)=>{k.addToCart(I,n.contentId),k.clickOnProductGA({...O,id:I})},"add-to-wishlist":O=>{k.addToWishlist({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},cart:k.cart,"click-on-product":O=>{k.clickOnProduct(O.id,n.contentId),k.clickOnProductGA(O)},"currency-symbol":k.currencySymbol,"filter-updated":n.filterUpdated,products:n.products,"remove-from-cart":O=>{k.removeFromCart(O.id,n.contentId),k.clickOnProductGA(O)},"remove-from-wishlist":O=>{k.removeFromWishlist({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},"test-id":"products",wishlist:k.wishlist,onProductsVisible:k.productsVisible},null,8,["add-to-cart","add-to-wishlist","cart","click-on-product","currency-symbol","filter-updated","products","remove-from-cart","remove-from-wishlist","wishlist","onProductsVisible"])]),z("div",vk,[z("div",{class:"rrg-app__progress-bar__progress",style:er({width:c.value})},null,4)])])]),_:1},8,["loading","page","pages-count","reset-page","show-buttons"])):oe("",!0)])],2)):oe("",!0),t.phrase&&!n.loading&&n.filters?.length===0?(F(),q("div",wk,[se(w1,{"add-to-cart":(O,I)=>{k.recomAddToCart(I,n.contentId),k.clickOnProductGA({...O,id:I})},"add-to-wishlist":O=>{k.recomMouseDownWishlistAdd({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},cart:k.cart,"click-on-product":O=>{k.recomMouseDown(O.id,n.contentId),k.clickOnProductGA(O)},"currency-symbol":k.currencySymbol,"get-empty-products":k.deps.getProductsRecommendations,phrase:k.phrase,"placement-id":k.placementId,"remove-from-cart":O=>{k.recomAddToCart(O.id,n.contentId),k.clickOnProductGA(O)},"remove-from-wishlist":O=>{k.recomMouseDownWishlistRemove({groupId:O.groupId,id:O.id,name:O.name},n.contentId),k.clickOnProductGA(O)},"test-id":"empty",wishlist:k.wishlist,onProductsVisible:E[2]||(E[2]=O=>{k.productsVisible(O,"Sin resultados")})},null,8,["add-to-cart","add-to-wishlist","cart","click-on-product","currency-symbol","get-empty-products","phrase","placement-id","remove-from-cart","remove-from-wishlist","wishlist"])])):oe("",!0)]),z("div",{id:"rrg-app-modals",ref_key:"modalContainer",ref:i,style:{position:"relative"}},null,512)],512))}}),[["styles",[".rrg-app{margin-top:10px}.rrg-app-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;gap:24px;height:100%;position:relative;width:100%}@media (width > 112rem){.rrg-app-container{margin:0 auto;max-width:112rem;padding:0}}@media (width > 64.063rem) and (width < 112rem){.rrg-app-container{max-width:calc(112rem + 112px);padding:0 56px}}@media (width < 64.063rem){.rrg-app-container{padding:0}}#rrg-app-modals{position:relative;z-index:1000}.rrg-app__wrap-spinner{-webkit-box-align:start;-ms-flex-align:start;align-items:start;background:#fff9;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;padding-top:16rem;position:absolute;top:0;width:100%;z-index:999}.rrg-app__phrase{background:#fff;color:#111;font-size:24px;font-weight:500;grid-column:1 / 3;grid-row:1;height:55px;margin:0;max-width:calc(112rem + 112px);position:sticky;top:60px;width:100%;z-index:102}@media (width < 1026px){.rrg-app__phrase{display:none}}.rrg-app__wrap-filters{grid-row:2;width:auto}@media (width < 1026px){.rrg-app__wrap-filters{display:none}}.rrg-app__filters-list{height:80vh;margin-right:35px;max-width:500px;overflow-y:auto;overscroll-behavior:none;padding-bottom:70px;padding-right:20px;position:sticky;-ms-scroll-chaining:none;top:160px;width:235px}.rrg-app__filters-list.is-open{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:filter-open;animation-name:filter-open}.rrg-app__filters-list.is-closed{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:filter-hide;animation-name:filter-hide}@-webkit-keyframes filter-open{0%{left:-250px;margin-left:-300px;opacity:0}to{left:0;margin-left:0}}@keyframes filter-open{0%{left:-250px;margin-left:-300px;opacity:0}to{left:0;margin-left:0}}@-webkit-keyframes filter-hide{0%{left:0;margin-left:0}to{left:-250px;margin-left:-300px;opacity:0}}@keyframes filter-hide{0%{left:0;margin-left:0}to{left:-250px;margin-left:-300px;opacity:0}}.rrg-app__main-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;grid-row:2 / 3;width:auto;z-index:101}@media (width < 1026px){.rrg-app__main-content{grid-row:1 / 2}}.rrg-app__phrase-mobile{color:#111;display:none;font-size:1.0625rem;font-weight:500;padding:.5rem 0 0 1rem;text-align:left;width:100%}@media (width < 1026px){.rrg-app__phrase-mobile{display:block}}.rrg-app__block-sorting{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#111;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:1rem;padding-top:14px}@media (width < 1026px){.rrg-app__block-sorting{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;-webkit-box-shadow:0 2px 4px 0 rgb(0 0 0 / 8%);box-shadow:0 2px 4px #00000014;display:grid;gap:10px;grid-template-columns:1fr -webkit-max-content 1fr;grid-template-columns:1fr max-content 1fr;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1;padding:.7813rem 10px;position:sticky;top:0;z-index:10}}@media (width < 421px){.rrg-app__block-sorting{font-size:.875rem}}.rrg-app__block-sorting__title-count-products{color:#707072;font-size:16px;font-weight:500;line-height:28px;margin-right:auto}@media (width < 1026px){.rrg-app__block-sorting__title-count-products{font-weight:400;text-align:center;width:100%}}.rrg-app__block-sorting__title-sorting{line-height:1.15}@media (width < 1026px){.rrg-app__wrap-btn-hide-filters{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}.rrg-app__inner-wrap-btn-hide-filters{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;gap:20px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.15;margin-right:12px}.rrg-app__inner-wrap-btn-hide-filters svg{fill:transparent;font-size:24px}@media (width < 1026px){.rrg-app__inner-wrap-btn-hide-filters{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid #111;border-radius:30px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:12px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;min-height:34px;padding:4px 20px;width:114px}}.rrg-app__sorting{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.rrg-app__main{display:grid;gap:0;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;width:100%}@media (width < 1026px){.rrg-app__main{gap:0;grid-template-columns:1fr;grid-template-rows:1fr}}.rrg-app__main.is-loading{pointer-events:none}.rrg-app__products{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:24px}.rrg-app__progress-bar{background-color:#eef3f7;border-radius:9999px;height:10px;margin:.75rem auto;overflow:hidden;width:30%}.rrg-app__progress-bar__progress{background-color:#111;height:inherit;width:0}.rrg-app__empty{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]]]);function yk(e){let t=new AbortController;return async()=>{t&&t.abort(),t=new AbortController;try{const r=await e.initialPreviewHttpClientDelegate({lang:e.lang,partnerId:e.partnerId,sessionId:e.sessionId,stock:e.stock},t.signal);let i=[];return r.status===200&&(i=r.body.popularSuggestions||[]),fr(i)}catch(r){return r.name==="AbortError"?Dt("AbortError"):Dt("NetworkError")}}}function xk(e){let t=new AbortController;return async r=>{t&&t.abort(),t=new AbortController;try{const i=await e.phrasePreviewHttpClientDelegate({lang:e.lang,partnerId:e.partnerId,phrase:encodeURIComponent(r.phrase),sessionId:e.sessionId,stock:e.stock},t.signal);let s="",n=[],o=[],a=[],l=[],c=0;if(i.status===200){if(i.body.products&&i.body.products.length){const p=i.body.products.filter(m=>m.isAvailable).map(m=>m.groupId).filter(m=>m!==void 0),u=await e.getGroupProductsByIdsHttpClient({itemsGroupIds:p,partnerId:e.partnerId});u.status===200&&u.body&&(l=u.body),s=i.body.contentId}a=i.body.suggestions||[],o=Sk(i.body.redirects),n=kk(i.body.products,l,e.emptyProductsUrls),c=i.body.resultsPageApproximateProductsCount||0}return fr({contentId:s,products:n,productsCount:c,redirects:o,suggestions:a})}catch(i){return i.name==="AbortError"?Dt("AbortError"):Dt("NetworkError")}}}function kk(e,t,r){if(e===void 0)return[];const i=[];for(const s of e){const n=[],o=[],a=s.productParams.find(c=>c.name==="rating"),l=a?.value?Dn(a?.value):0;t.length&&t.forEach(c=>{c.IsAvailable&&c.GroupId===s.groupId&&(c.Color&&!n.includes(c.Color)&&n.push(c.Color),c.Size&&o.push({productId:c.ItemId,size:c.Size}))}),i.push({categoryPaths:s.categoryPaths||[],groupColors:n,groupId:s.groupId||"",groupSizes:o,href:r?"javascript:void(0)":s.url,id:s.productId,image:s.pictureUrl,isAvailable:s.isAvailable||!1,model:s.model||"",name:s.name,oldPrice:s.oldPrice||0,price:s.price,productsParams:s.productParams,rating:l||0,reviewsCount:0,vendor:s.vendor||""})}return i}function Sk(e){if(e===void 0)return[];const t=[];for(const r of e)t.push({href:r.url,text:r.title});return t}const Ck={class:"rrg-input-text-preview__icon rrg-input-text-preview__icon-search"},Ek=["data-testid","placeholder","value"],Tk={class:"rrg-input-text-preview__icon rrg-input-text-preview__icon-clear"},Ik=xe(ge({__name:"InputTextPreview",props:{testId:{type:String},value:{type:String}},emits:["search","blur","focus","keydown","update:value"],setup(e,{expose:t,emit:r}){const i=e,s=r,n=De({focused:!1}),{getTestId:o}=Be(i.testId),{t:a}=nt({messages:{en:{placeholder:"Search"},es:{placeholder:"Buscar"}}}),l=le();function c(){l.value&&l.value.blur()}function d(){l.value&&s("update:value","")}function p(){l.value&&l.value.focus()}function u(g){n.focused=!1,s("blur",g)}function m(g){n.focused=!0,g?.target?.focus({preventScroll:!0}),s("focus",g)}function f(g){s("update:value",g.target.value)}function b(g){s("keydown",g)}function y(){l.value&&s("search")}return t({blur:c,focus:p}),(g,h)=>(F(),q("div",{class:Ne(["rrg-input-text-preview",{"rrg-input-text-preview--focused":n.focused,"rrg-input-text-preview--active":g.value}])},[z("div",Ck,[se(Fe,{name:"search","test-id":H(o)("search"),onPointerdown:y},null,8,["test-id"])]),z("input",{ref_key:"inputRef",ref:l,class:"rrg-input-text-preview__input","data-testid":g.testId,placeholder:H(a)("placeholder"),type:"text",value:g.value,onBlur:u,onFocus:m,onInput:f,onKeydown:b},null,40,Ek),vt(z("div",Tk,[se(Fe,{name:"inputCross","test-id":H(o)("clear"),onPointerdown:d},null,8,["test-id"])],512),[[_t,g.value]])],2))}}),[["styles",[".rrg-input-text-preview{background-color:#f5f5f5;border-radius:20px;position:relative;width:100%}.rrg-input-text-preview__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:20px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:42px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;width:42px}.rrg-input-text-preview__icon svg{color:#111;fill:transparent}.rrg-input-text-preview .rrg-input-text-preview__icon-search{font-size:18px;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.rrg-input-text-preview .rrg-input-text-preview__icon-clear{font-size:14px;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.rrg-input-text-preview__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:inherit;border:none;border-radius:30px;color:#111;font-family:inherit;font-size:16px;font-weight:500;height:42px;line-height:1;opacity:1;outline:none;padding:0 46px;width:100%}.rrg-input-text-preview__input::-webkit-input-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input::-moz-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input:-ms-input-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input::-ms-input-placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview__input::placeholder{color:#757575;font-family:inherit;font-size:inherit}.rrg-input-text-preview:hover{background-color:#e5e5e5}.rrg-input-text-preview:hover .rrg-input-text-preview__icon:hover{background-color:#cacacb}"]]]),Ak=["data-testid"],Pk=["data-testid","href"],Ok={class:"rrg-product-card-preview__image-wrapper"},Lk={key:0,class:"rrg-product-card-preview__image__preloader"},$k=["alt","data-testid"],Mk={class:"rrg-product-card-preview__info"},Rk={key:0,class:"rrg-product-card-preview__block-rating"},Fk={class:"rrg-product-card-preview__rating-wrapper"},Nk=["data-testid"],Dk={class:"rrg-product-card-preview__rating-count-star"},zk=["data-testid"],Bk=["data-testid"],Vk={class:"rrg-product-card-preview__complement-name"},Hk={key:1,class:"rrg-product-card-preview__counter-colors"},Uk={class:"rrg-product-card-preview__price-wrapper"},Wk=["data-testid"],Gk=["data-testid"],jk=["data-testid"],Yk=496,Kk=496,Xk=xe(ge({__name:"ProductCardPreview",props:{currencySymbol:{type:String},href:{type:String},id:{type:Number},image:{type:String},inWishlist:{type:Boolean},name:{type:String},oldPrice:{type:Number},price:{type:Number},productsParams:{type:Array},quantity:{type:Number},rating:{type:Number},reviewsCount:{type:Number},showRating:{type:Boolean},testId:{type:String}},emits:["clickOnProduct","addToCart","removeFromCart","addToWishlist","removeFromWishlist"],setup(e,{emit:t}){const r=e,i=t,s=De({isLoading:!0}),{t:n}=nt({messages:{en:{discount:"discount"},es:{discount:"de descuento"}}}),o=`https://cdnimg.retailrocket.net/api/1.0/partner/68b0588bb1543cb96cbe1d55/item/${r.id}/picture/?format=jpg&width=${Yk}&height=${Kk}&scale=both`,a=r.name.split("Talla")[0].trim(),l=Cu(r.productsParams),{getTestId:c}=Be(r.testId),{locale:d}=nt(),p=me(()=>r.oldPrice>r.price),u=me(()=>p.value?Math.round(100-r.price/r.oldPrice*100):0);function m(){i("clickOnProduct")}function f(){s.isLoading=!1}function b(g){return qo(g,r.currencySymbol,d.value)}function y(g){return new Intl.NumberFormat("en").format(g)}return(g,h)=>(F(),q("div",{class:"rrg-product-card-preview","data-testid":g.testId},[z("a",{class:"rrg-product-card-preview__link","data-testid":H(c)("link"),href:g.href,onPointerdown:m},[z("div",Ok,[s.isLoading?(F(),q("div",Lk)):oe("",!0),z("img",{alt:H(a),class:Ne(["rrg-product-card-preview__image",{"rrg-product-card-preview__image--loading":s.isLoading}]),"data-testid":H(c)("image"),src:o,onLoad:f},null,42,$k)]),z("div",Mk,[g.showRating&&g.rating?(F(),q("div",Rk,[z("div",Fk,[z("div",{class:"rrg-product-card-preview__rating","data-testid":H(c)("rating")},[(F(!0),q(ve,null,He(Math.round(+g.rating),v=>(F(),de(Fe,{key:`filled-${v}`,class:"rrg-product-card-preview__rating-icon",name:"star"}))),128)),(F(!0),q(ve,null,He(5-Math.round(+g.rating),v=>(F(),de(Fe,{key:`empty-${v}`,class:"rrg-product-card-preview__rating-icon--grey",name:"star"}))),128)),z("span",Dk,ne(Math.round(+g.rating))+".0 ",1)],8,Nk),g.reviewsCount?(F(),q("div",{key:0,class:"rrg-product-card-preview__reviews-count","data-testid":H(c)("reviewsCount")}," ("+ne(y(g.reviewsCount))+") ",9,zk)):oe("",!0)])])):oe("",!0),z("div",{class:"rrg-product-card-preview__name","data-testid":H(c)("name")},ne(H(a)),9,Bk),z("div",Vk,ne(H(l).complementName),1),H(l).colors?(F(),q("div",Hk,ne(H(l).colors)+" "+ne(+H(l).colors>1?"Colores":"Color"),1)):oe("",!0),z("div",Uk,[p.value?(F(),q("span",{key:0,class:"rrg-product-card-preview__old-price","data-testid":H(c)("oldPrice")},ne(b(g.oldPrice)),9,Wk)):oe("",!0),z("span",{class:"rrg-product-card-preview__price","data-testid":H(c)("price")},ne(b(g.price)),9,Gk)]),u.value?(F(),q("div",{key:2,class:"rrg-product-card-preview__discount-percentage","data-testid":H(c)("discountPercentage")},ne(u.value)+"% "+ne(H(n)("discount")),9,jk)):oe("",!0)])],40,Pk)],8,Ak))}}),[["styles",[".rrg-product-card-preview{background:#fff;border-radius:5px 5px 0 0;display:grid;gap:12px;grid-template-rows:1fr;padding:6px 6px 0;position:relative;text-decoration:none;width:100%}@media (width <= 1025px){.rrg-product-card-preview{padding:0}}.rrg-product-card-preview__link{color:#111;display:grid;grid-template-rows:1fr;outline:none;text-decoration:none;width:100%}.rrg-product-card-preview__image-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:8px;overflow:hidden;position:relative;width:100%}.rrg-product-card-preview__image{aspect-ratio:1/1;height:100%;-o-object-fit:contain;object-fit:contain;opacity:1;width:100%}.rrg-product-card-preview__image--loading{opacity:0}.rrg-product-card-preview__image__preloader{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.rrg-product-card-preview__discount-percentage{color:#128a09;font-size:clamp(14px,2vw,1rem);font-weight:600}.rrg-product-card-preview__block-rating{height:20px}.rrg-product-card-preview__rating-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;width:auto}.rrg-product-card-preview__rating{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;color:#111;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;font-weight:500;gap:8px;line-height:1;width:auto}@media (width <= 475px){.rrg-product-card-preview__rating{gap:4px}}.rrg-product-card-preview__rating-icon--grey{color:#ccc}.rrg-product-card-preview__rating-count-star{font-family:Arial,Helvetica,sans-serif;font-size:clamp(11px,3vw,14px);line-height:19px}.rrg-product-card-preview__reviews-count{color:#111;font-size:clamp(10px,2vw,14px);font-weight:400;line-height:1}@media (width <= 375px){.rrg-product-card-preview__reviews-count{display:none}}.rrg-product-card-preview__info{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:12px}@media (width <= 1025px){.rrg-product-card-preview__info{gap:6px}}.rrg-product-card-preview__name{-webkit-box-orient:vertical;color:#111;display:-webkit-box;font-size:clamp(14px,3vw,16px);font-weight:500;-webkit-line-clamp:2;line-clamp:2;line-height:1.15;overflow:hidden;text-overflow:ellipsis}.rrg-product-card-preview__complement-name{color:#757575;font-size:16px;font-weight:500}@media (width <= 475px){.rrg-product-card-preview__complement-name{font-size:14px}}.rrg-product-card-preview__price-wrapper{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px;width:auto}@media (width <= 475px){.rrg-product-card-preview__price-wrapper{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:10px}}.rrg-product-card-preview__price{color:#111;font-size:clamp(14px,3vw,16px);font-weight:500;line-height:1}.rrg-product-card-preview__old-price{-webkit-box-orient:vertical;color:#757575;display:-webkit-box;font-size:clamp(14px,3vw,16px);font-weight:500;-webkit-line-clamp:2;line-clamp:2;line-height:1.15;overflow:hidden;text-decoration:line-through;text-overflow:ellipsis}.rrg-product-card-preview__counter-colors{color:#757575;font-size:14px;font-weight:500}"]]]),qk=["data-testid"],Zk=["innerHTML"],Jk=xe(ge({__name:"Suggestions",props:{active:{type:Boolean},listNumber:{type:Number},suggestion:{type:Object},testId:{type:String},type:{type:String},userInput:{type:String}},emits:["remove","select"],setup(e){const t=e,r=me(()=>{if(!t.userInput)return i(t.suggestion.title);const n=i(t.suggestion.title),o=i(t.userInput),a=s(o),l=new RegExp(`(${a})`,"gi");return n.replace(l,"<b>$1</b>")});function i(n){return String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}return(n,o)=>(F(),q("li",{class:Ne(["rrg-suggestion",{"is-active":n.active,"is-hovered-highlight":n.type==="hovered-highlight-suggestion","is-popular":n.type==="popular-suggestion","is-recent-view":n.type==="recent-views-suggestion"}]),"data-testid":n.testId,onClick:o[1]||(o[1]=a=>n.$emit("select",n.suggestion))},[z("span",{class:"rrg-suggestion__list-text",innerHTML:r.value},null,8,Zk),n.type==="recent-views-suggestion"?(F(),de(Fe,{key:0,name:"recentViewCross",onClick:o[0]||(o[0]=a=>n.$emit("remove",n.suggestion))})):oe("",!0)],10,qk))}}),[["styles",[".rrg-suggestion{color:#999;cursor:pointer;font-family:inherit}.rrg-suggestion.is-active{background:#eee}.rrg-suggestion__list-text{color:#111;font-family:inherit;font-size:20px;font-weight:500;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rrg-suggestion.is-popular{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:20px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:8px 22px}.rrg-suggestion.is-popular .rrg-suggestion__list-text{font-size:16px;line-height:1.25}.rrg-suggestion.is-popular:hover{background:#eee}.rrg-suggestion.is-recent-view{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;display:-webkit-box;display:-ms-flexbox;display:flex;gap:20px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-line-clamp:1;line-clamp:1;overflow:hidden;text-overflow:ellipsis}.rrg-suggestion.is-recent-view svg{color:#111;cursor:pointer;font-size:14px}.rrg-suggestion.is-hovered-highlight{-webkit-line-clamp:1;line-clamp:1;overflow:hidden;text-overflow:ellipsis}.rrg-suggestion.is-hovered-highlight .rrg-suggestion__list-text{color:#707072;font-size:20px;font-weight:500;line-height:1}.rrg-suggestion.is-hovered-highlight .rrg-suggestion__list-text b{color:#111}"]]]),Qk=["data-testid"],ea=xe(ge({__name:"SuggestionLists",props:{activeSuggestionsIndex:{default:-1,type:Number},suggestions:{type:Array},testId:{type:String},title:{default:"",type:String},type:{type:String},userInput:{default:"",type:String}},emits:["select","remove"],setup(e){const t=e,{getTestId:r}=Be(t.testId);return(i,s)=>(F(),q(ve,null,[i.title.length&&i.suggestions.length?(F(),q("div",{key:0,class:Ne(["rrg-suggestion-list__title",{"is-hovered-highlight":i.type==="hovered-highlight-suggestion"}]),"data-testid":H(r)("title")},ne(i.title),11,Qk)):oe("",!0),z("ul",{class:Ne(["rrg-suggestion-list__list",{"is-popular":i.type==="popular-suggestion"}])},[(F(!0),q(ve,null,He(i.suggestions,(n,o)=>(F(),de(Jk,{key:o,active:n===i.suggestions[i.activeSuggestionsIndex],suggestion:n,"test-id":H(r)(`list-item-${o}`),type:i.type,"user-input":i.userInput,onRemove:a=>i.$emit("remove",n),onSelect:a=>i.$emit("select",n)},null,8,["active","suggestion","test-id","type","user-input","onRemove","onSelect"]))),128))],2)],64))}}),[["styles",[".rrg-suggestion-list__title{color:#777;font-family:inherit;font-size:14px;font-weight:500;line-height:1;margin-bottom:23px}.rrg-suggestion-list__title.is-hovered-highlight{margin-bottom:30px}.rrg-suggestion-list__list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:22px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;list-style:none;margin:0;padding:0}.rrg-suggestion-list__list.is-popular{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;gap:16px}"]]]),eS="key_cookie_nike_co";async function tS(e){const t=Uint8Array.from(atob(e),o=>o.charCodeAt(0)),r=t.slice(0,12),i=t.slice(12),s=await $u(),n=await crypto.subtle.decrypt({iv:r,name:"AES-GCM"},s,i);return new TextDecoder().decode(n)}async function Lu(e){const t=crypto.getRandomValues(new Uint8Array(12)),r=await $u(),i=new TextEncoder().encode(e),s=await crypto.subtle.encrypt({iv:t,name:"AES-GCM"},r,i),n=new Uint8Array(s),o=new Uint8Array(t.length+n.length);return o.set(t),o.set(n,t.length),btoa(String.fromCharCode(...o))}async function $u(){const t=new TextEncoder().encode(eS),r=await crypto.subtle.digest("SHA-256",t);return crypto.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt","decrypt"])}const rS="search_phrase_nike_co";async function ta(e=rS){const t=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));if(!t)return[];try{const r=await tS(decodeURIComponent(t[1]));return JSON.parse(r)}catch{return[]}}const iS="search_phrase_nike_co";async function nS(e){if(!e||e.trim()==="")return;const r=(await ta()).filter(o=>o.toLowerCase()!==e.toLowerCase()),i=JSON.stringify(r),s=await Lu(i),n=new Date(Date.now()+10*365*24*60*60*1e3).toUTCString();document.cookie=`${iS}=${encodeURIComponent(s)}; expires=${n}; path=/`}const sS="search_phrase_nike_co";async function oS(e){if(!e||e.trim()==="")return;const r=(await ta()).filter(a=>a.toLowerCase()!==e.toLowerCase()),i=[e,...r].slice(0,5),s=JSON.stringify(i),n=await Lu(s),o=new Date(Date.now()+10*365*24*60*60*1e3).toUTCString();document.cookie=`${sS}=${encodeURIComponent(n)}; expires=${o}; path=/`}const aS={class:"rrg-search-start"},lS={class:"rrg-search-start__button-icon"},cS={class:"rrg-search-start__button-text"},dS={class:"rrg-preview-top"},uS={class:"rrg-preview-content"},pS={class:"rrg-content-first","data-testid":"first-content"},fS={class:"rrg-content-first-suggestion"},gS={class:"rrg-content-first-view"},mS={class:"rrg-content-second","data-testid":"second-content"},hS={class:"rrg-content-second-suggestions"},bS={class:"rrg-content-second-recommendations"},vS=["data-product-id","data-product-index"],wS={class:"rrg-content-second-recommendations__button"},_S=50,yS=xe(ge({__name:"WebCpmSearchInputWithPreview",props:{addToCart:{type:Function},addToWishlist:{type:Function},cart:{type:Object},clickOnProduct:{type:Function},clickOnProductGA:{type:Function},currencySymbol:{type:String},deps:{type:Object},phrase:{type:String},placementIdPreview:{type:String},productsVisible:{type:Function},recomAddToCart:{type:Function},recomMouseDown:{type:Function},recomMouseDownWishlistAdd:{type:Function},recomMouseDownWishlistRemove:{type:Function},removeFromCart:{type:Function},removeFromWishlist:{type:Function},wishlist:{type:Object}},setup(e){const t=e,r=De({activeSuggestionsIndex:-1,contentId:"",isLoaded:!1,isShowContent:!1,isShowPreview:!1,moreProductsLength:0,popularSuggestions:[],products:[],productsVisible:new Set,recentViewsSuggestions:[],redirects:[],suggestions:[],userInput:""}),{t:i}=nt({messages:{en:{placeholder:"Search",popularSuggestions:"Popular suggestions",recentViewsSuggestions:"Recent views suggestions",search:"Search",showMore:"Show more {count} product | Show more {count} products",suggestions:"Suggestions"},es:{placeholder:"Buscar",popularSuggestions:"Términos de búsqueda populares",recentViewsSuggestions:"Búsquedas recientes",search:"Buscar",showMore:"Ver los {count} product | Ver los {count} productos",suggestions:"Sugerencias"}}}),s=le(),n=le(),o=le(),a=le(null),l=le(0),c=le(null),d=le(!1),p=me(()=>({"--test-var":`${l.value}px`,transform:`translateX(${l.value}px)`}));function u(){const N=l.value,j=200,V=performance.now();function te(Z){const re=Z-V,S=Math.min(re/j,1);l.value=N*(1-m(S)),S<1&&requestAnimationFrame(te)}requestAnimationFrame(te)}function m(N){return 1-(1-N)**3}function f(){d.value&&(d.value=!1,l.value>_S?r.isShowPreview=!1:u(),c.value=null)}function b(N){if(!d.value||c.value===null)return;const j=N.clientX-c.value;l.value=Math.max(0,j)}function y(N){r.isShowPreview&&(c.value=N.clientX,d.value=!0)}const g=me(()=>!r.userInput.length&&(r.popularSuggestions.length||r.recentViewsSuggestions.length));function h(N){return N.map((j,V)=>({...j,actualIndex:V+1}))}function v(){o.value&&o.value.focus()}function w(){r.isShowPreview=!1,r.isShowContent=!1}function C(N){r.isShowPreview&&(N.key==="ArrowDown"&&(N.preventDefault(),r.activeSuggestionsIndex=(r.activeSuggestionsIndex+1)%r.suggestions.length),N.key==="ArrowUp"&&(N.preventDefault(),r.activeSuggestionsIndex=(r.activeSuggestionsIndex-1+r.suggestions.length)%r.suggestions.length),N.key==="Escape"&&(N.preventDefault(),w(),o.value&&o.value.blur()),r.activeSuggestionsIndex>=0&&(r.userInput=r.suggestions[r.activeSuggestionsIndex].title))}function k(){o.value&&(o.value.blur(),I())}async function E(N){r.userInput=N,await M()}function O(N){r.recentViewsSuggestions=r.recentViewsSuggestions.filter(j=>(N.title===j.title&&nS(j.title),N.title!==j.title))}function I(){w(),r.userInput.length&&(oS(r.userInput),t.deps.onUpdatePhrase(r.userInput))}async function M(){if(r.isShowContent=!0,r.userInput.length)r.activeSuggestionsIndex=-1,r.isLoaded=!1,await t.deps.getPreviewProducts({phrase:r.userInput}).then(N=>{N.match({err:async j=>{j!=="AbortError"&&(r.contentId="",r.products=[],r.redirects=[],r.suggestions=[],r.isLoaded=!0)},ok:async j=>{r.contentId=j.contentId,r.products=h(j.products),r.productsVisible=new Set,r.redirects=j.redirects,r.suggestions=j.suggestions.slice(0,5),r.moreProductsLength=j.productsCount,r.isLoaded=!0}})});else{r.products=[],r.redirects=[],r.suggestions=[];const N=await ta();r.recentViewsSuggestions=N.map(j=>({suggestionPhrase:j,title:j})),r.isLoaded=!0}}async function U(){await t.deps.getPreviewInitial().then(N=>{N.match({err:async j=>{j!=="AbortError"&&(r.popularSuggestions=[])},ok:async j=>{r.popularSuggestions=j.slice(0,10)}})})}function $(N){r.userInput=N.suggestionPhrase,I()}async function G(){l.value=0,r.isShowPreview=!0,await M(),await U()}return es({itemSelector:".rrg-preview__product",onIntersectBatch:N=>{let j=!1;N.forEach(V=>{const te=V.target.dataset.productId,Z=r.products.find(re=>re.id===Number(te));Z&&!r.productsVisible.has(Z)&&(r.productsVisible.add(Z),j=!0)}),j&&t.productsVisible(Array.from(r.productsVisible))},targetContainer:a,watchSource:()=>r.products}),Gt(()=>{window.removeEventListener("keydown",C)}),Tt(async()=>{t.phrase&&(r.userInput=t.phrase),window.addEventListener("keydown",C)}),(N,j)=>(F(),q("div",{ref_key:"rootEl",ref:s,class:"rrg-search"},[z("div",aS,[z("div",{class:"rrg-search-start__button","data-testid":"show-preview",onPointerdown:G},[z("button",lS,[se(Fe,{name:"search"})]),z("span",cS,ne(H(i)("search")),1)],32)]),vt(z("div",{class:"rrg-backdrop","data-testid":"preview-backdrop",onPointerdown:w},null,544),[[_t,r.isShowPreview]]),se(Gs,{name:"slide-to-left",onAfterEnter:v},{default:Ve(()=>[vt(z("div",{ref_key:"previewEl",ref:n,class:"rrg-preview","data-testid":"preview-main",style:er(p.value),onPointercancel:f,onPointerdown:y,onPointermove:b,onPointerup:f},[z("div",dS,[se(Fe,{class:"rrg-preview-top__logo",name:"clientLogo",onPointerdown:w}),se(Ik,{ref_key:"inputRef",ref:o,class:"rrg-preview-top__input","test-id":"search-input",value:r.userInput,onKeydown:mg(k,["enter"]),onSearch:I,"onUpdate:value":E},null,8,["value"]),z("span",{class:"rrg-preview-top__cancel",onPointerdown:w}," Cancelar ",32)]),se(Gs,{name:"slide-to-bottom"},{default:Ve(()=>[vt(z("div",uS,[vt(z("div",pS,[vt(z("div",fS,[se(ea,{suggestions:r.popularSuggestions,"test-id":"popular-suggestion",title:H(i)("popularSuggestions"),type:"popular-suggestion",onSelect:$},null,8,["suggestions","title"])],512),[[_t,r.popularSuggestions.length]]),vt(z("div",gS,[se(ea,{suggestions:r.recentViewsSuggestions,"test-id":"recent-views-suggestion",title:H(i)("recentViewsSuggestions"),type:"recent-views-suggestion",onRemove:O,onSelect:$},null,8,["suggestions","title"])],512),[[_t,r.recentViewsSuggestions.length]])],512),[[_t,g.value]]),vt(se(rs,{class:"rrg-content-loader","test-id":"product-spinner"},null,512),[[_t,r.userInput.length&&!r.isLoaded]]),vt(z("div",mS,[z("div",hS,[se(ea,{"active-suggestions-index":r.activeSuggestionsIndex,suggestions:r.suggestions,"test-id":"default-suggestion",title:H(i)("suggestions"),type:"hovered-highlight-suggestion","user-input":r.userInput,onSelect:$},null,8,["active-suggestions-index","suggestions","title","user-input"])]),vt(z("div",bS,[z("div",{ref_key:"previewProducts",ref:a,class:"rrg-content-second-recommendations__products"},[(F(!0),q(ve,null,He(r.products,V=>(F(),q("div",{key:V.id,class:"rrg-preview__product","data-product-id":V.id,"data-product-index":V.actualIndex},[se(Xk,{id:V.id,"currency-symbol":N.currencySymbol,href:V.href,image:V.image,"in-wishlist":N.wishlist[V.id]||!1,name:V.name,"old-price":V.oldPrice,price:V.price,"products-params":V.productsParams,quantity:N.cart[V.id]||0,rating:V.rating,"reviews-count":V.reviewsCount,"show-rating":!!V.rating,"test-id":`product-card-preview-${V.id}`,onAddToCart:()=>{N.addToCart(V.id,r.contentId),N.clickOnProductGA(V)},onAddToWishlist:()=>{N.addToWishlist({groupId:V.groupId,id:V.id,name:V.name},r.contentId),N.clickOnProductGA(V)},onClickOnProduct:()=>{N.clickOnProduct(V.id,r.contentId),N.clickOnProductGA(V)},onRemoveFromCart:()=>{N.removeFromCart(V.id,r.contentId),N.clickOnProductGA(V)},onRemoveFromWishlist:()=>{N.removeFromWishlist({groupId:V.groupId,id:V.id,name:V.name},r.contentId),N.clickOnProductGA(V)}},null,8,["id","currency-symbol","href","image","in-wishlist","name","old-price","price","products-params","quantity","rating","reviews-count","show-rating","test-id","onAddToCart","onAddToWishlist","onClickOnProduct","onRemoveFromCart","onRemoveFromWishlist"])],8,vS))),128))],512),z("div",wS,[vt(se(gi,{color:"primary","test-id":"show-more",text:H(i)("showMore",{count:r.moreProductsLength}),onPointerdown:I},null,8,["text"]),[[_t,r.moreProductsLength>0]])])],512),[[_t,r.products.length]])],512),[[_t,r.userInput.length&&r.isLoaded]])],512),[[_t,r.isShowContent]])]),_:1})],36),[[_t,r.isShowPreview]])]),_:1})],512))}}),[["styles",[".rrg-search{position:relative;z-index:1000}.rrg-search-start{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.rrg-search-start__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:30px;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:Helvetica-Neue,sans-serif;height:42px;width:185px}@media (width <= 1025px){.rrg-search-start__button{background:transparent;height:auto;width:auto}}.rrg-search-start__button-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:inherit;border:none;border-radius:30px;color:#111;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:12px}.rrg-search-start__button-icon svg{fill:transparent;font-size:18px}@media (width <= 1025px){.rrg-search-start__button-icon{padding:0}}.rrg-search-start__button-text{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#757575;cursor:text;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:inherit;font-size:14px;font-weight:400;height:100%;margin-left:2px;width:100%}@media (width <= 1025px){.rrg-search-start__button-text{display:none}}.rrg-search-start__button:hover{background-color:#e5e5e5}.rrg-search-start__button:hover .rrg-search-start__button-icon:hover{background-color:#cacacb}@media (width <= 1025px){.rrg-search-start__button:hover{background-color:transparent}.rrg-search-start__button:hover .rrg-search-start__button-icon:hover{background-color:transparent}}.slide-to-left-enter-active,.slide-to-left-leave-active{-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.slide-to-left-enter-from,.slide-to-left-leave-to{-webkit-transform:translateX(100%)!important;transform:translate(100%)!important}.slide-to-left-enter-to,.slide-to-left-leave-from{-webkit-transform:translateX(var(--test-var, 0))!important;transform:translate(var(--test-var, 0))!important}.rrg-backdrop{background-color:#111;inset:0;opacity:.5;position:fixed;z-index:9998}.rrg-preview{--test-var: 0;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:fixed;right:0;top:0;width:100%;z-index:9999}.rrg-preview-top{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;margin:12px 0;min-height:42px;padding:0 97px 0 60px;position:relative;width:100%}@media (width <= 1150px){.rrg-preview-top{padding:0 24px}}@media (width <= 1025px){.rrg-preview-top{gap:12px}}.rrg-preview-top__logo{cursor:pointer;font-size:65px;height:28px;left:60px;min-height:auto;min-width:auto;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:70px}@media (width <= 1025px){.rrg-preview-top__logo{display:none}}.rrg-preview-top__cancel{color:#111;cursor:pointer;font-family:inherit;font-size:16px;font-weight:500;line-height:1;position:absolute;right:60px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media (width <= 1025px){.rrg-preview-top__cancel{position:static;-webkit-transform:none;transform:none}}.rrg-preview-top__input{margin:0 auto;max-width:852px}@media (width <= 1120px){.rrg-preview-top__input{max-width:752px}}@media (width <= 1025px){.rrg-preview-top__input{margin:0!important;max-width:unset!important;width:100%!important}}.slide-to-bottom-enter-active,.slide-to-bottom-leave-active{-webkit-transition:opacity .15s ease-in .05s,max-height .3s ease-out,padding .3s ease-out;transition:opacity .15s ease-in .05s,max-height .3s ease-out,padding .3s ease-out}.slide-to-bottom-enter-from,.slide-to-bottom-leave-to{max-height:0!important;opacity:0;padding:0 97px 0 60px!important}@media (width <= 1025px){.slide-to-bottom-enter-from,.slide-to-bottom-leave-to{max-height:1000px!important;padding:0 24px!important}}.slide-to-bottom-enter-to,.slide-to-bottom-leave-from{max-height:502px;opacity:1;padding:32px 97px 83px 60px}@media (width <= 1025px){.slide-to-bottom-enter-to,.slide-to-bottom-leave-from{max-height:1000px!important;padding:32px 24px}}.rrg-preview-content{background-color:#fff;overflow-y:auto;padding:32px 97px 32px 60px;position:relative;z-index:9999}@media (width <= 1025px){.rrg-preview-content{max-height:80vh;padding:32px 24px}}.rrg-content-first{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:33px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:0 auto 51px;max-width:852px}.rrg-content-first-suggestion,.rrg-content-first-view{width:100%}.rrg-content-loader{margin:140px 0}.rrg-content-second{display:grid;gap:64px;grid-template-columns:100px 1fr}@media (width <= 1025px){.rrg-content-second{gap:16px;grid-template-columns:1fr;grid-template-rows:auto 1fr}}.rrg-content-second-suggestions{max-width:100px}@media (width <= 1025px){.rrg-content-second-suggestions{margin-bottom:32px;max-width:100%}}.rrg-content-second-recommendations .rrg-content-second-recommendations__products{display:grid;grid-auto-columns:minmax(150px,250px);grid-auto-flow:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:60px}.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product{display:none}@media (width >= 320px) and (width < 1025px){.rrg-content-second-recommendations .rrg-content-second-recommendations__products{gap:12px 16px;grid-auto-flow:unset;grid-template-columns:repeat(2,1fr);max-width:100%}.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product:nth-child(-n+8){display:block}}@media (width > 1025px) and (width < 1120px){.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product:nth-child(-n+4){display:block}}@media (width > 1120px){.rrg-content-second-recommendations .rrg-content-second-recommendations__products .rrg-preview__product:nth-child(-n+5){display:block}}.rrg-content-second-recommendations__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}"]]]),xS="rrg-smart-search-input-with-preview",kS="rrg-smart-search-result-page",SS="rrg-smart-search-settings",ra="smart-search",Mu=!1,Ru={'"':'"',"[":"]","{":"}"};function CS(e){const t=e.trim();if(t.length<1)return!1;const r=t[0];return!ES(r)||Ru[r]!==t[t.length-1]?!1:TS(t)}function ES(e){return Object.prototype.hasOwnProperty.call(Ru,e)}function TS(e){try{return JSON.parse(e)}catch{return!1}}function Fu(e){const t=e.productsParams.reduce((s,n)=>(s[n.name]=CS(n.value)?JSON.parse(n.value):n.value,s),{}),r=e.groupSizes.find(s=>s.productId===e.id)?.size,i=t?.color||"";return{dimension1:e.model||"",dimension2:t.referenceId||"",dimension3:`Size: ${r} - Color: ${i}`,dimension4:e.isAvailable?"available":"unavailable",index:e.actualIndex||0,item_brand:e.vendor,item_category:t.productType??"",item_category2:t.sizesGuide??"",item_category3:"",item_category4:"",item_id:e.id,item_name:e.name,item_variant:e.groupColors[0],price:e.price,quantity:1}}function ia(e,t){window.dataLayer=window.dataLayer||[],t&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push({...e,...t?{ecommerce:t}:{}})}function Nu(e,t=""){const r=[e].map(Fu),i={ab_testing:"buscador_loadstone",item_list_name:t.replace(" ","_"),items:r};ia({event:"select_item"},i)}function IS(e){const t={search_term:e.replace(" ","_")};ia({ab_testing:"buscador_loadstone",event:"search"},t)}function Du(e,t,r=""){const i=e.map(Fu),s={ab_testing:"buscador_loadstone",element_name:t??"Con resultados",item_list_name:r.replace(" ","_"),items:i};ia({event:"view_item_list"},s)}function zu(e,t){Object.entries(t).forEach(([r,i])=>{i==null||i===""?e.delete(r):typeof i=="object"?e.set(r,JSON.stringify(i)):e.set(r,String(i))})}function AS(e){const t=new URLSearchParams;return zu(t,e),t.toString()}function PS(e){try{const t={},r=e.startsWith("?")?e.slice(1):e,i=new URLSearchParams(r);for(const[s,n]of i.entries())try{t[s]=JSON.parse(n)}catch{t[s]=n}return t}catch(t){return console.error("Error parsing query parameters:",t),{}}}function Bu(e){const t=new URL(window.location.href);zu(t.searchParams,e),t.toString()!==window.location.href&&window.history.pushState({},"",t.toString())}const Zi=ah({fallbackLocale:"es",legacy:!1,locale:"es",pluralizationRules:{ru(e,t){if(e===0)return 0;const r=e>10&&e<20,i=e%10===1;return t<4?!r&&i?1:2:!r&&i?1:!r&&e%10>=2&&e%10<=4||t<4?2:3}}});function OS(e){const t=document.cookie.match(new RegExp(`(?:^|; )${e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")}=([^;]*)`));return t?decodeURIComponent(t[1]):null}function LS(){const e=OS("rcuid")||"";return{cart:{},currencySymbol:"$",getPartnerPageLocation:()=>({params:{},pathname:"/search"}),lang:"es",partnerId:"68b0588bb1543cb96cbe1d55",placementIdEmpty1:"empty_results_1",placementIdEmpty2:"empty_results_2",placementIdPreview:"preview_initial",sessionId:e,stock:"",wishlist:{}}}const lt=LS(),_e=De({cart:lt.cart,currencySymbol:lt.currencySymbol,lang:lt.lang,placementIdEmpty1:lt.placementIdEmpty1,placementIdEmpty2:lt.placementIdEmpty2,placementIdPreview:lt.placementIdPreview,sessionId:lt.sessionId,stock:lt.stock,wishlist:lt.wishlist}),is=PS(window.location.search)[ra]||{},Zt=le(is?.phrase||""),ns=De({filtersValues:is?.filtersValues||{},page:is?.page||1,sorting:is?.sorting||void 0});async function $S(e){const t=lt.getPartnerPageLocation(e),r=window.location.pathname===t.pathname,i={...t.params,[ra]:{phrase:e}};if(!r){window.location.href=`${t.pathname}?${AS(i)}`;return}e!==Zt.value&&(Bu(i),ns.filtersValues={},ns.page=1,ns.sorting=void 0,Zt.value=e)}async function MS(e){const t={};Object.keys(e.filtersValues).length>0&&(t.filtersValues=e.filtersValues),e.page&&(t.page=e.page),Zt.value&&(t.phrase=Zt.value),e.sorting&&(t.sorting=e.sorting),Bu({[ra]:t})}window.addEventListener("popstate",async()=>{location.reload()}),customElements.define(SS,Xs({props:{cart:{default:"",type:String},currencySymbol:{default:_e.currencySymbol,type:String},lang:{default:_e.lang,type:String},sessionId:{default:_e.sessionId,type:String},stock:{default:_e.stock,type:String},wishlist:{default:"",type:String}},render(e){_e.currencySymbol=e.currencySymbol,_e.lang=e.lang,_e.stock=e.stock,_e.sessionId=e.sessionId,_e.cart=e.cart?JSON.parse(e.cart):{},_e.wishlist=e.wishlist?JSON.parse(e.wishlist):{},Zi.global.locale.value=_e.lang},styles:[Th]})),customElements.define(xS,Xs({emits:{addToCart:e=>!!e,addToWishlist:e=>!!e.id,clickOnProduct:e=>!!e,removeFromCart:e=>!!e,removeFromWishlist:e=>!!e.id},render(){return it(yS,{addToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},addToWishlist:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},cart:_e.cart,clickOnProduct:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},clickOnProductGA:e=>{Nu(e,Zt.value)},currencySymbol:_e.currencySymbol,deps:{getPreviewInitial:yk({initialPreviewHttpClientDelegate:yh,lang:_e.lang,partnerId:lt.partnerId,sessionId:_e.sessionId,stock:_e.stock}),getPreviewProducts:xk({emptyProductsUrls:Mu,getGroupProductsByIdsHttpClient:dd,lang:_e.lang,partnerId:lt.partnerId,phrasePreviewHttpClientDelegate:xh,sessionId:_e.sessionId,stock:_e.stock}),onUpdatePhrase:$S},phrase:Zt.value,placementIdPreview:_e.placementIdPreview,productsVisible:(e,t)=>{Du(e,t,Zt.value)},recomAddToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.recomAddToCart(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDown:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.recomMouseDown(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistAdd:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistRemove:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},removeFromCart:(e,t)=>{this.$emit("removeFromCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},removeFromWishlist:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},wishlist:_e.wishlist})},styles:[fd]},{configureApp(e){e.use(Zi),e.provide(yo,Zi)}})),customElements.define(kS,Xs({emits:{addToCart:e=>!!e,addToWishlist:e=>!!e.id,clickOnProduct:e=>!!e,removeFromCart:e=>!!e,removeFromWishlist:e=>!!e.id},render(){return it(_k,{addToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},addToWishlist:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},cart:_e.cart,clickOnProduct:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},clickOnProductGA:e=>{Nu(e,Zt.value)},currencySymbol:_e.currencySymbol,deps:{getProductsRecommendations:Lh({partnerId:lt.partnerId,productsRecommendationsHttpClientDelegate:Ch,sessionId:_e.sessionId,stock:_e.stock}),onUpdateState:MS,searchProducts:Mh({emptyProductsUrls:Mu,getGroupProductsByIdsHttpClient:dd,lang:_e.lang,partnerId:lt.partnerId,searchProductsHttpClient:Eh,sessionId:_e.sessionId,stock:_e.stock})},initialState:ns,phrase:Zt.value,placementId:{placementIdEmpty1:lt.placementIdEmpty1,placementIdEmpty2:lt.placementIdEmpty2},productsVisible:(e,t)=>{Du(e,t,Zt.value)},recomAddToCart:(e,t)=>{this.$emit("addToCart",e),window?.rrApi?.recomAddToCart(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDown:(e,t)=>{this.$emit("clickOnProduct",e),window?.rrApi?.recomMouseDown(e,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistAdd:(e,t)=>{this.$emit("addToWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},recomMouseDownWishlistRemove:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.recomMouseDown(e.id,{methodName:t,suggester:_e.placementIdPreview})},removeFromCart:(e,t)=>{this.$emit("removeFromCart",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e})},removeFromWishlist:(e,t)=>{this.$emit("removeFromWishlist",e),window?.rrApi?.smartSearchProductClicked({contentId:t,isProductIdString:!1,productId:e.id})},resultGASearchEvent:e=>{IS(e)},wishlist:_e.wishlist})},styles:[fd]},{configureApp(e){e.use(Zi),e.provide(yo,Zi)}}));function RS(){(window.rrApiOnReady=window.rrApiOnReady||[]).push(function(){try{window.rrVisitorSessionId=window?.retailrocket?.api.getSessionId()||"";const e=document.querySelector("rrg-smart-search-settings");e&&e.setAttribute("session-id",window.rrVisitorSessionId)}catch(e){console.error(e)}})}typeof window<"u"&&RS()});
|