"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[96650],{1721:(n,e,t)=>{t.d(e,{Z:()=>k});var i,r,a,o=t(4942),s=t(93433),c=t(29439),l=(t(21249),t(47941),t(91058),t(82526),t(57327),t(38880),t(89554),t(54747),t(49337),t(33321),t(69070),t(67294)),p=t(63845),u=t(95186),d=t(52997),g=t(64519),h=t(24002),f=t(30168),m=t(71893),w=t(38770),b=t(30305),v=(0,m.ZP)(w.W)(i||(i=(0,f.Z)(["\n padding-right: 0;\n padding-left: 0;\n margin-bottom: 0;\n "," {\n padding-right: ",";\n padding-left: ",";\n }\n /* Pagination */\n .swiper-pagination-bullets-dynamic {\n font-size: 0;\n overflow: hidden;\n .swiper-pagination-bullet {\n position: relative;\n transform: scale(0.33);\n }\n .swiper-pagination-bullet-active {\n transform: scale(1);\n }\n .swiper-pagination-bullet-active-main {\n transform: scale(1);\n }\n .swiper-pagination-bullet-active-prev {\n transform: scale(0.66);\n }\n .swiper-pagination-bullet-active-prev-prev {\n transform: scale(0.33);\n }\n .swiper-pagination-bullet-active-next {\n transform: scale(0.66);\n }\n .swiper-pagination-bullet-active-next-next {\n transform: scale(0.33);\n }\n }\n .swiper-pagination-bullet {\n border: "," solid ",";\n border-radius: 50%;\n background: ",";\n display: inline-block;\n height: ",";\n width: ",";\n }\n button.swiper-pagination-bullet {\n border: none;\n box-shadow: none;\n margin: 0;\n padding: 0;\n -webkit-appearance: none;\n appearance: none;\n }\n .swiper-pagination-clickable .swiper-pagination-bullet {\n cursor: pointer;\n }\n .swiper-pagination-bullet:only-child {\n display: none !important;\n }\n .swiper-pagination-bullet-active {\n background: ",";\n }\n\n .swiper-container-horizontal > .swiper-pagination-bullets {\n bottom: 0;\n position: absolute;\n text-align: center;\n width: 100%;\n z-index: 1;\n }\n .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {\n margin: 0 ",";\n }\n .swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {\n left: 50%;\n transform: translateX(-50%);\n white-space: nowrap;\n }\n .swiper-container-horizontal\n > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic\n .swiper-pagination-bullet {\n transition: 200ms transform, 200ms left;\n }\n .swiper-container-horizontal.swiper-container-rtl\n > .swiper-pagination-bullets-dynamic\n .swiper-pagination-bullet {\n transition: 200ms transform, 200ms right;\n }\n .swiper-pagination-clickable .swiper-pagination-bullet {\n cursor: pointer;\n }\n"])),b.B.tabletLandscape,(function(n){return n.theme.spacing.spacing04}),(function(n){return n.theme.spacing.spacing04}),(function(n){return n.theme.spacing.spacing0025}),(function(n){return n.theme.colors.black}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.colors.black}),(function(n){return n.theme.spacing.spacing005})),x=m.ZP.h2(r||(r=(0,f.Z)(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n margin-bottom: ",";\n padding-left: ",";\n "," {\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n padding-left: ",";\n }\n "," {\n padding-left: 0;\n }\n"])),(function(n){return n.theme.typography.header.h3.weight}),(function(n){return n.theme.typography.header.h3.size}),(function(n){return n.theme.typography.header.h3.lineHeight}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing02}),b.B.tabletPortrait,(function(n){return n.theme.typography.header.h2.weight}),(function(n){return n.theme.typography.header.h2.size}),(function(n){return n.theme.typography.header.h2.lineHeight}),(function(n){return n.theme.spacing.spacing03}),b.B.tabletLandscape),y=m.ZP.div(a||(a=(0,f.Z)(["\n .swiper-container {\n margin-left: auto;\n margin-right: auto;\n position: relative;\n\n list-style: none;\n padding: 0;\n /* Fix of Webkit flickering */\n z-index: ",";\n overflow: hidden;\n }\n\n .swiper-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: ",";\n display: flex;\n transition-property: transform;\n box-sizing: content-box;\n }\n .swiper-container-android .swiper-slide,\n .swiper-wrapper {\n transform: translate3d(0px, 0, 0);\n }\n .swiper-container-multirow > .swiper-wrapper {\n flex-wrap: wrap;\n }\n\n .swiper-container-pointer-events {\n touch-action: pan-y;\n }\n .swiper-container-pointer-events.swiper-container-vertical {\n touch-action: pan-x;\n }\n .swiper-slide {\n flex-shrink: 0;\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n transition-property: transform;\n }\n .swiper-slide-invisible-blank {\n visibility: hidden;\n }\n /* Auto Height */\n .swiper-container-autoheight,\n .swiper-container-autoheight .swiper-slide {\n height: auto;\n }\n .swiper-container-autoheight .swiper-wrapper {\n align-items: flex-start;\n transition-property: transform, height;\n }\n\n .swiper-container-horizontal.swiper-container-css-mode > .swiper-wrapper {\n scroll-snap-type: x mandatory;\n }\n\n .swiper-button-prev,\n .swiper-button-next {\n background: ",";\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: ",";\n display: none;\n "," {\n display: block;\n }\n &:hover {\n cursor: pointer;\n }\n }\n\n .swiper-button-prev {\n left: 0;\n }\n .swiper-button-next {\n right: 0;\n }\n .swiper-button-prev:after,\n .swiper-button-next:after {\n content: '';\n display: inline-block;\n border-right: 2px solid ",";\n border-bottom: 2px solid ",";\n width: 14px;\n height: 14px;\n transform: rotate(-45deg);\n margin: 16px 13px 13px 13px;\n }\n .swiper-button-prev:after {\n content: '';\n transform: rotate(135deg);\n margin: 16px 16px 16px 18px;\n }\n .swiper-button-prev.swiper-button-disabled,\n .swiper-button-next.swiper-button-disabled {\n opacity: 0.2;\n &:hover {\n cursor: auto;\n }\n }\n\n /* Common Styles */\n .swiper-pagination-fraction,\n .swiper-pagination-custom,\n .swiper-slide a {\n height: 100%;\n &:hover {\n color: ",";\n }\n }\n\n &.not-hydrated {\n .swiper-button-next,\n .swiper-button-prev {\n display: none;\n }\n .swiper-wrapper {\n display: flex;\n flex-wrap: nowrap;\n }\n\n .swiper-slide {\n flex: 0 0 calc(100% / ",");\n margin-right: ",";\n "," {\n flex: 0 0 calc(100% / "," - 1rem);\n margin-right: 1rem;\n }\n "," {\n flex: 0 0 calc(100% / "," - 13px);\n margin-right: 1rem;\n }\n "," {\n flex: 0 0 calc(100% / "," - 20px);\n margin-right: ",";\n }\n &.swiper-slide-duplicate {\n flex: 0 0 0;\n width: 0;\n height: 0;\n margin: 0;\n overflow: hidden;\n }\n }\n }\n"])),(function(n){return n.theme.layout.zIndex.base}),(function(n){return n.theme.layout.zIndex.base}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.spacing.spacing06}),(function(n){return n.theme.spacing.spacing06}),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.layout.zIndex.default}),b.B.tabletLandscape,(function(n){return n.theme.colors.black}),(function(n){return n.theme.colors.black}),(function(n){return n.theme.colors.black}),(function(n){return n.breakpoints[0].slidesPerView}),(function(n){return n.theme.spacing.spacing02}),b.B.tabletPortrait,(function(n){return n.breakpoints[768].slidesPerView}),b.B.tabletLandscape,(function(n){return n.breakpoints[992].slidesPerView}),b.B.desktopLarge,(function(n){return n.breakpoints[1560].slidesPerView}),(function(n){return n.theme.spacing.spacing03})),P=t(85893);function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function j(n){for(var e=1;e=parseInt(e)?parseInt(e):0}));return e[Math.max.apply(Math,(0,s.Z)(t))].slidesPerView}(n,L))||1;k(e)}),[L]);return(0,l.useEffect)((function(){m(!0)}),[]),(0,l.useEffect)((function(){if(M){var n=function(){N()};return window.addEventListener("resize",n),function(){window.removeEventListener("resize",n)}}}),[N,M]),(0,l.useEffect)((function(){f&&M&&N()}),[N,f,M]),(0,P.jsxs)(v,{id:e,className:p,children:[r&&(0,P.jsx)(x,j(j({},a&&{className:a}),{},{children:r})),(0,P.jsx)(y,{className:f?"hydrated":"not-hydrated",breakpoints:L,children:(0,P.jsx)(g.t,{pagination:!!A&&{clickable:!0},navigation:z,loop:E,breakpoints:L,resizeObserver:!0,slidesPerGroup:O||1,children:t.map((function(n,e){return(0,P.jsx)(h.o,{children:n},n.key||e)}))})})]})}},96650:(n,e,t)=>{t.r(e),t.d(e,{CarouselPost:()=>tn});t(47941),t(82526),t(57327),t(38880),t(89554),t(54747),t(49337),t(33321),t(69070);var i,r,a,o,s,c,l,p,u=t(4942),d=t(67294),g=t(38770),h=t(15861),f=t(29439),m=t(64687),w=t.n(m),b=(t(21249),t(74916),t(23123),t(9653),t(15306),t(83710),t(41539),t(39714),t(92222),t(41817),t(63742)),v=t(45128),x=t(33807),y=t(76644),P=t(30168),O=t(91044),j=t(51062),Z=t(71893),k=Z.ZP.a(i||(i=(0,P.Z)(["\n color: ",";\n cursor: pointer;\n text-decoration: none;\n\n &:hover {\n text-decoration: none;\n color: ",";\n }\n"])),(function(n){return n.theme.colors.black}),(function(n){return n.theme.colors.black})),E=(0,Z.ZP)(O.X)(r||(r=(0,P.Z)(["\n width: 100%;\n ","\n"])),j.g.header.h4),S=Z.ZP.div(a||(a=(0,P.Z)(["\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n display: -webkit-box;\n height: ",";\n margin-bottom: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n ",";\n"])),(function(n){return n.theme.spacing.spacing05}),(function(n){return n.theme.spacing.spacing02}),j.g.body2Regular),z=Z.ZP.div(o||(o=(0,P.Z)(["\n display: flex;\n"]))),D=Z.ZP.div(s||(s=(0,P.Z)(["\n margin-right: ",";\n ",";\n"])),(function(n){return n.theme.spacing.spacing01}),j.g.body2Regular),L=t(28225),I=t(85893),A=function(n){var e=n.image,t=n.title,i=n.description,r=n.href,a=n.id,o=n.position,s=n.dataListProduct,c=t.replace(" ","-"),l=(0,L.$G)(),p=(0,f.Z)(l,1)[0];return(0,I.jsx)(v.Z,{link:{linkProperties:{"aria-label":e.alt,href:r,className:"post-card-class","data-eec-action":y.Z.IMPRESSION,"data-product-list":s||"","data-product-id":"post"+a.toString(),"data-product-name":t,"data-product-category":"CATEGORÍA","data-product-position":o,"data-product-brand":"PcComponentes","data-product-price":"0.00","data-product-total-discount":"0.00"},hasZoomEffect:!0},imageProperties:{src:e.src,alt:e.alt||c,title:e.title||c,size:x.A.MEDIUM},content:{data:(0,I.jsxs)(k,{href:r,children:[(0,I.jsx)(E,{as:"h3",children:t}),(0,I.jsx)(S,{children:i}),(0,I.jsxs)(z,{children:[(0,I.jsx)(D,{children:p("carousel.postCard.seeMore")}),(0,I.jsx)(b.J,{icon:"arrow_right"})]})]}),align:x.E.INSIDE}})},B=t(30305),M=t(24265),N=Z.ZP.div(c||(c=(0,P.Z)(["\n & > div {\n min-height: 27.5rem;\n padding-left: 0;\n padding-right: 0;\n width: auto;\n\n "," {\n min-height: 31.1rem;\n }\n }\n"])),B.B.tabletPortrait),G=(0,Z.ZP)(M.a)(l||(l=(0,P.Z)(["\n position: initial;\n z-index: 9;\n"]))),V=Z.ZP.div(p||(p=(0,P.Z)(["\n align-items: center;\n display: flex;\n height: 27.5rem;\n min-height: inherit;\n justify-content: center;\n\n "," {\n height: 31.75rem;\n }\n"])),B.B.tabletPortrait),T=t(83931),_=t(35522),H=t(2060),C=function(n){var e=n.slugs,t=n.language,i=n.platform,r=n.selectedLanguage,a=n.domainExtension;try{return _.w.serviceGWFetch("/api-v1/cms/carousel-post",H.w.GET,{slugs:e},{headers:{"X-Language":t,"x-platform":i,"x-selected-language":r,"x-domain-extension":a}})}catch(n){throw new T.pY({error:0,message:JSON.stringify(n)})}},R=function(n){var e=n.ids,t=n.platform,i=n.selectedLanguage,r=n.domainExtension;try{return _.w.serviceGWFetch("/api-v1/cms/carousel-postids",H.w.GET,{ids:e},{headers:{"x-platform":t,"x-selected-language":i,"x-domain-extension":r}})}catch(n){throw new T.pY({error:0,message:JSON.stringify(n)})}},F=function(n){var e=n.id,t=n.platform,i=n.selectedLanguage,r=n.domainExtension;try{return _.w.serviceGWFetch("/api-v1/cms/carousel-posts-by-category",H.w.GET,{category:e},{headers:{"x-platform":t,"x-selected-language":i,"x-domain-extension":r}})}catch(n){throw new T.pY({error:0,message:JSON.stringify(n)})}},U=t(1721),W=t(69315),J=t(28172),Y=t(86706),K=t(75826),X=t(12049);function $(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function q(n){for(var e=1;e0&&c)){n.next=6;break}return n.next=3,C({slugs:e,language:c,platform:j,selectedLanguage:k,domainExtension:E});case 3:a=n.sent,n.next=20;break;case 6:if(!t||!c||i){n.next=12;break}return n.next=9,F({id:t,platform:j,selectedLanguage:k,domainExtension:E});case 9:a=n.sent,n.next=20;break;case 12:if(!i||""===i){n.next=20;break}return n.next=15,P(i,r||"",t);case 15:if(!(o=n.sent)){n.next=20;break}return n.next=19,R({ids:o.split(",").map((function(n){return Number(n.replace("post",""))})),platform:j,selectedLanguage:k,domainExtension:E});case 19:a=n.sent;case 20:a&&a.ok&&a.data?(l=a.data.map((function(n){var e=n.slug&&s&&c?(0,X.K)(s,n.slug):n.slug;return q(q({},n),{},{href:e})})),y((function(n){return q(q({},n),{},{postList:l,loading:!1})}))):y((function(n){return q(q({},n),{},{loading:!1})}));case 21:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n()}),[s,E,c,j,k]);var S,z=(new Date).getTime().toString();return(0,J.Rl)(x.postList)||x.loading?x.loading?(0,I.jsx)(V,{children:(0,I.jsx)(G,{extra:(0,I.jsx)(b.J,{icon:"pcc_icon","data-testid":"loading-container",fill:O.colors.brand.main})})}):(0,I.jsx)(N,{children:(0,I.jsx)(U.Z,{title:null!==p&&void 0!==p?p:"",titleClassName:"carousel-post-title-class",items:x.postList.map((function(n,e){return(0,I.jsx)(A,q(q({},n),{},{position:e,dataListProduct:g||""}),"".concat(z).concat(e))})),settings:{loop:a,navigation:o,breakpoints:(S=x.postList.length,{0:{slidesPerView:1},768:{slidesPerView:S<2?S:1.4,spaceBetween:24},992:{slidesPerView:S<2?S:1.8,spaceBetween:24},1030:{slidesPerView:S<=2?S:2.2,spaceBetween:24},1300:{slidesPerView:S<=2?S:2.5,spaceBetween:24},1560:{slidesPerView:S<=2?S:3,spaceBetween:24}})}})}):(0,I.jsx)(I.Fragment,{})};function nn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function en(n){for(var e=1;e{t.d(e,{Z:()=>_});t(47941),t(82526),t(57327),t(38880),t(89554),t(54747),t(49337),t(33321),t(69070);var i,r,a,o,s,c,l,p,u,d,g,h,f,m,w,b,v,x,y,P,O,j=t(4942),Z=(t(29254),t(21249),t(68309),t(92222),t(83710),t(30168)),k=t(71893),E=t(30305),S=t(33807),z=k.ZP.div(i||(i=(0,Z.Z)(["\n overflow: hidden;\n\n ","\n\n ","\n"])),(function(n){var e=n.hasZoomEffect,t=n.imageSize;return e&&(0,k.iv)(r||(r=(0,Z.Z)(["\n &:hover {\n color: ",";\n img {\n transform: scale(1.05);\n transform-origin: center center;\n ","\n }\n }\n "])),(function(n){return n.theme.colors.black}),t===S.A.MEDIUM&&(0,k.iv)(a||(a=(0,Z.Z)(["\n transform: scale(1.1);};\n "]))))}),(function(n){var e=n.contentAlign;return e===S.E.INSIDE&&(0,k.iv)(o||(o=(0,Z.Z)(["\n display: block;\n "])))||e===S.E.BOTTOM&&(0,k.iv)(s||(s=(0,Z.Z)(["\n display: flex;\n flex-direction: column;\n "])))||e===S.E.RIGHT&&(0,k.iv)(c||(c=(0,Z.Z)(["\n display: flex;\n flex-direction: row;\n gap: ",";\n "])),(function(n){return n.theme.spacing.spacing02}))})),D=k.ZP.a(l||(l=(0,Z.Z)(["\n text-decoration: none;\n &:hover {\n color: ",";\n }\n\n ","\n"])),(function(n){return n.theme.colors.black}),(function(n){var e=n.contentAlign,t=n.imageSize;return e===S.E.RIGHT&&t===S.A.SMALL&&(0,k.iv)(p||(p=(0,Z.Z)(["\n flex-basis: 50%;\n "])))})),L=k.ZP.div(u||(u=(0,Z.Z)(["\n margin-bottom: ",";\n overflow: hidden;\n width: 100%;\n border-radius: ",";\n\n ","\n"])),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing02}),(function(n){var e=n.imageSize;return e===S.A.SMALL&&(0,k.iv)(d||(d=(0,Z.Z)(["\n height: 6.25rem;\n "])))||e===S.A.MEDIUM&&(0,k.iv)(g||(g=(0,Z.Z)(["\n height: 13.5rem;\n transition: all 0.8s ease;\n @media (min-width: 28.7rem) {\n height: 16.5rem;\n }\n\n @media (min-width: 35rem) {\n height: 23rem;\n }\n\n @media (min-width: 41rem) {\n height: 29rem;\n }\n\n "," {\n height: 20.5rem;\n }\n "])),E.B.tabletPortrait)||e===S.A.BIG&&(0,k.iv)(h||(h=(0,Z.Z)(["\n height: 13rem;\n "])))})),I=k.ZP.img(f||(f=(0,Z.Z)(["\n height: 100%;\n object-fit: cover;\n transition: all 2s ease;\n width: 100%;\n\n ","\n"])),(function(n){return n.size===S.A.MEDIUM&&(0,k.iv)(m||(m=(0,Z.Z)(["\n transition: all 0.8s ease;\n "])))})),A=k.ZP.div(w||(w=(0,Z.Z)(["\n display: flex;\n flex-direction: row;\n"]))),B=k.ZP.a(b||(b=(0,Z.Z)(["\n text-decoration: none;\n &:hover {\n color: ",";\n }\n"])),(function(n){return n.theme.colors.black})),M=k.ZP.div(v||(v=(0,Z.Z)(["\n background: ",";\n border: 0.063rem solid ",";\n border-radius: ",";\n margin: 0 "," "," 0;\n padding: "," ","\n ",";\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing005})),N=k.ZP.div(x||(x=(0,Z.Z)(["\n isolation: isolate;\n border-radius: ",";\n\n ","\n"])),(function(n){return n.theme.spacing.spacing02}),(function(n){var e=n.contentAlign,t=n.imageSize;return e===S.E.INSIDE&&(0,k.iv)(y||(y=(0,Z.Z)(["\n background-color: white;\n margin-left: ",";\n margin-right: ",";\n margin-top: -",";\n padding: ",";\n position: inherit;\n "])),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing11}),(function(n){return n.theme.spacing.spacing03}))||e===S.E.BOTTOM&&(0,k.iv)(P||(P=(0,Z.Z)(["\n padding-bottom: ",";\n "])),(function(n){return n.theme.spacing.spacing06}))||e===S.E.RIGHT&&(0,k.iv)(O||(O=(0,Z.Z)(["\n ","\n width: 100%;\n "])),t===S.A.SMALL&&"flex-basis: 50%;")})),G=t(85893);function V(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function T(n){for(var e=1;e{var i,r;t.d(e,{A:()=>r,E:()=>i}),function(n){n.INSIDE="inside",n.BOTTOM="bottom",n.RIGHT="right"}(i||(i={})),function(n){n.BIG="big",n.MEDIUM="medium",n.SMALL="small"}(r||(r={}))},76644:(n,e,t)=>{var i;t.d(e,{Z:()=>i}),function(n){n.IMPRESSION="impression"}(i||(i={}))}}]); //# sourceMappingURL=96650.js.map