"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[50488],{15638:(e,t,r)=>{r.d(t,{ft:()=>b,Cw:()=>g,I6:()=>h});var n="@@FLASH_OFFER/GET_FLASH_OFFER_REQUEST",o="@@FLASH_OFFER/GET_FLASH_OFFER_SUCCESS",i="@@FLASH_OFFER/GET_FLASH_OFFER_FAILURE",a=r(63311);function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=function(e){return function(e){for(var t=1;t0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n:return m({},e);case o:return m({},e,t.payload);case i:return m({},e);default:return e}};var b=function(e){return e.flashOffer}},63311:(e,t,r)=>{r.d(t,{b:()=>s,h:()=>c});var n=r(62812);function o(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}var i,a,l=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{v:()=>n});var n={items:[{links:[{href:"https://www.pccomponentes.com/soporte/como-comprar-en-pccomponentes",rel:"obfuscated",text:"Cómo comprar"},{href:"https://www.pccomponentes.com/soporte/formas-de-pago",rel:"obfuscated",text:"Formas de pago"},{href:"https://www.pccomponentes.com/gastos-de-envio",rel:"obfuscated",text:"Gastos de envío"},{href:"https://www.pccomponentes.com/cupones-descuento-y-codigos-promocionales",text:"Cupones descuento"},{href:"https://www.pccomponentes.com/soporte",rel:"obfuscated",text:"Preguntas frecuentes"},{href:"https://www.pccomponentes.com/opiniones",rel:"obfuscated",text:"Opiniones de clientes"},{href:"https://www.pccomponentes.com/tarjetas-regalo",text:"Tarjetas regalo"}],title:"Por qué comprar"},{links:[{href:"https://www.pccomponentes.com/quienes-somos",rel:"nofollow",text:"Quiénes somos"},{href:"https://www.pccomponentes.com/compromisos",rel:"nofollow",text:"Compromisos"},{href:"https://www.pccomponentes.com/tiendas",rel:"nofollow",text:"Nuestras tiendas"},{href:"https://www.pccomponentes.com/nuestras-marcas",rel:"obfuscated",text:"Nuestras Marcas"},{href:"https://www.pccomponentes.com/condiciones-de-compra",rel:"obfuscated",text:"Condiciones de compra"},{href:"https://www.pccomponentes.com/fabricantes",rel:"obfuscated",text:"Todas las marcas"},{href:"https://www.pccomponentes.com/afiliados",text:"Afiliados"},{href:"https://www.pccomponentes.com/aviso-legal",rel:"obfuscated",text:"Aviso legal"},{href:"https://www.pccomponentes.com/privacidad",rel:"obfuscated",text:"Privacidad"}],title:"Quiénes somos"},{links:[{href:"https://www.pccomponentes.com/soporte",rel:"nofollow",text:"Centro de soporte"},{href:"https://www.pccomponentes.com/soporte/contacto",text:"Contacto"},{href:"https://www.pccomponentes.com/soporte/devoluciones-y-garantias",rel:"nofollow",text:"Devoluciones y Garantías"},{href:"https://www.pccomponentes.com/wiki",rel:"obfuscated",text:"Wiki PcComponentes"},{href:"https://www.pccomponentes.com/opina-y-gana",rel:"obfuscated",text:"Opina y Gana"},{href:"https://pcads.pccomponentes.com/",rel:"nofollow",text:"Publicidad"},{href:"https://jobs.pccomponentes.com/",rel:"nofollow",text:"Trabaja con nosotros"},{href:"https://www.pccomponentes.com/cookies",rel:"obfuscated",text:"Política de cookies"},{href:"https://www.pccomponentes.com/centros-educativos",rel:"nofollow",text:"Centros educativos"}],title:"Contactar"},{links:[{href:"https://www.pccomponentes.com/replay",text:"Replay"},{href:"https://www.pccomponentes.com/black-friday",text:"Black Friday"},{href:"https://www.pccomponentes.com/cyber-monday",text:"Cyber Monday"},{href:"https://www.pccomponentes.com/pcdays",text:"PcDays"},{href:"https://www.pccomponentes.com/marketplace/",text:"Marketplace"},{href:"https://www.pccomponentes.com/servicio-de-reparaciones",text:"Servicio de reparaciones"},{href:"https://www.pccomponentes.com/concursos-pccomponentes",rel:"nofollow",text:"Concursos"},{href:"https://soporteonline.pccomponentes.com/",text:"Cita asistencia técnica"},{href:"https://www.pccomponentes.com/blog/categoria-rsc",rel:"nofollow",text:"Responsabilidad Social"}],title:"Otros"},{links:[{href:"https://www.pccomponentes.com/blog",icon:"pcc_icon",id:"GTM-footerRRSS-blog",text:"Blog"},{href:"https://www.instagram.com/pccomponentes/",icon:"instagram",rel:"noopener",id:"GTM-footerRRSS-instagram",target:"_blank",text:"Instagram"},{href:"https://twitter.com/pccomponentes",icon:"twitter",rel:"noopener",id:"GTM-footerRRSS-twitter",target:"_blank",text:"Twitter"},{href:"https://www.facebook.com/pccomponentes",icon:"facebook",rel:"noopener",id:"GTM-footerRRSS-facebook",target:"_blank",text:"Facebook"},{href:"https://t.me/pccomponentesESP",icon:"telegram",rel:"noopener",id:"GTM-footerRRSS-telegram",target:"_blank",text:"Telegram"},{href:"https://www.youtube.com/user/PcComponentescom",icon:"youtube",rel:"noopener",id:"GTM-footerRRSS-youtube",target:"_blank",text:"Youtube"},{href:"https://www.tiktok.com/@pccomponentes.com",icon:"tiktok",rel:"noopener",id:"GTM-footerRRSS-tiktok",target:"_blank",text:"TikTok"},{href:"https://www.twitch.tv/pccomponenteses",icon:"twitch",rel:"noopener",id:"GTM-footerRRSS-twitch",target:"_blank",text:"Twitch"}],title:"Comunidad"}],language:"es_ES",legal:{links:[{text:"PC Componentes y Multimedia SLU CIF B73347494. AVDA Europa, Parcela 2-5 y 2-6. Polígono industrial Las Salinas, 30840, Alhama de Murcia, Murcia. ESPAÑA."}]},app:{android:{href:"http://app.app4less.es/app/pccomponentes?campaign=footer",icon:"android",rel:"noopener",id:"GTM-footerRRSS-appAndroid",target:"_blank",text:"Descarga app Google Play"},ios:{href:"http://app.app4less.es/app/pccomponentes?campaign=footer",icon:"ios",rel:"noopener",id:"GTM-footerRRSS-appIOS",target:"_blank",text:"Descarga app en App Store"},qr:{href:"http://app.app4less.es/app/pccomponentes?campaign=footer",image:"https://cdn.pccomponentes.com/img/repositorio/otros/qr-app-pcc-es.png",icon:["android","ios"],rel:"noopener",id:"GTM-footerRRSS-appQR",target:"_blank",text:"Disponible en"}}}},68414:(e,t,r)=>{r.d(t,{o:()=>n});var n={items:[{links:[{href:"https://www.pccomponentes.fr/assistance/comment-acheter-en-pccomponentes",rel:"obfuscated",text:"Comment acheter?"},{href:"https://www.pccomponentes.fr/assistance/modes-de-paiement",rel:"obfuscated",text:"Modes de paiement"},{href:"https://www.pccomponentes.fr/coupons-de-reduction-et-codes-promotionnels",text:"Bons de réduction"},{href:"https://www.pccomponentes.fr/assistance",rel:"obfuscated",text:"Foire aux questions (FAQ)"}],title:"Pourquoi acheter?"},{links:[{href:"https://www.pccomponentes.fr/qui-sommes-nous",rel:"nofollow",text:"Qui sommes nous?"},{href:"https://www.pccomponentes.fr/conditions-de-vente",rel:"obfuscated",text:"Conditions d'achat"},{href:"https://www.pccomponentes.fr/fabricantes",rel:"obfuscated",text:"Toutes les marques"},{href:"https://www.pccomponentes.fr/mentions-legales",rel:"obfuscated",text:"Mentions légales"},{href:"https://www.pccomponentes.fr/politique-de-confidentialite",rel:"obfuscated",text:"Confidentialité"}],title:"Qui sommes nous?"},{links:[{href:"https://www.pccomponentes.fr/assistance",rel:"nofollow",text:"Assistance"},{href:"https://www.pccomponentes.fr/assistance/retours-et-garanties",rel:"nofollow",text:"Retours et garanties"},{href:"https://www.pccomponentes.fr/wiki",rel:"obfuscated",text:"Wiki PcComponentes"},{href:"https://www.pccomponentes.fr/cookies",rel:"obfuscated",text:"Politique de cookies"}],title:"Contactez-nous"},{links:[{href:"https://www.pccomponentes.fr/remis-a-neuf",text:"Replay"}],title:"Autres"},{links:[{href:"https://www.pccomponentes.fr/blog",icon:"pcc_icon",id:"GTM-footerRRSS-blog",text:"Blog"}],title:"Communauté"}],language:"fr_FR",legal:{links:[{text:"PC Componentes y Multimedia SLU CIF B73347494AVDA Europa, Parcelle 2-5 et 2-6. Zone industrielle Las Salinas, 30840, Alhama de Murcia, Murcia. ESPAGNE."}]},app:{android:{href:"http://app.app4less.es/app/pccomponentespt?campaign=footer",icon:"android",rel:"noopener",id:"GTM-footerRRSS-appAndroid",target:"_blank",text:"Descarrega no Google Play"},ios:{href:"http://app.app4less.es/app/pccomponentespt?campaign=footer",icon:"ios",rel:"noopener",id:"GTM-footerRRSS-appIOS",target:"_blank",text:"Descarrega na App Store"},qr:{href:"http://app.app4less.es/app/pccomponentespt?campaign=footer",image:"https://cdn.pccomponentes.com/img/repositorio/otros/qr-app-pcc-pt.png",icon:["android","ios"],rel:"noopener",id:"GTM-footerRRSS-appQR",target:"_blank",text:"Descarrega para"}}}},9548:(e,t,r)=>{r.d(t,{H:()=>n});var n={items:[{links:[{href:"https://www.pccomponentes.pt/soporte/como-comprar-no-pccomponentes",rel:"obfuscated",text:"Como comprar"},{href:"https://www.pccomponentes.pt/soporte/formas-de-pagamento",rel:"obfuscated",text:"Formas de Pagamento"},{href:"https://www.pccomponentes.pt/gastos-de-envio",rel:"obfuscated",text:"Gastos de envio"},{href:"https://www.pccomponentes.pt/cupoes-de-desconto-e-codigos-promocionais",text:"Cupões desconto"},{href:"https://www.pccomponentes.pt/soporte",rel:"obfuscated",text:"Perguntas frequentes"},{href:"https://www.pccomponentes.pt/opiniones",rel:"obfuscated",text:"Opiniões de clientes"},{href:"https://www.pccomponentes.pt/cartoes-presente",text:"Cartoes Presente"}],title:"Porquê comprar"},{links:[{href:"https://www.pccomponentes.pt/quem-somos",rel:"nofollow",text:"Quem somos"},{href:"https://www.pccomponentes.pt/condicoes-de-compra",rel:"obfuscated",text:"Condições de compra"},{href:"https://www.pccomponentes.pt/fabricantes",rel:"obfuscated",text:"Marcas"},{href:"https://www.pccomponentes.pt/afiliados-pt",text:"Afiliados"},{href:"https://www.pccomponentes.pt/centros-educativos",rel:"nofollow",text:"Centros educativos"},{href:"https://www.pccomponentes.pt/aviso-legal-pt",rel:"obfuscated",text:"Aviso legal"},{href:"https://www.pccomponentes.pt/privacidade",rel:"obfuscated",text:"Privacidade"}],title:"Quem somos"},{links:[{href:"https://www.pccomponentes.pt/soporte/",rel:"nofollow",text:"Centro de suporte"},{href:"https://www.pccomponentes.pt/soporte/devolues-e-garantias",rel:"nofollow",text:"Devoluções e Garantias"},{href:"https://www.pccomponentes.pt/wiki",rel:"obfuscated",text:"Wiki PcComponentes"},{href:"https://www.livroreclamacoes.pt/INICIO/",rel:"nofollow",text:"Livro de Reclamações"},{href:"https://www.pccomponentes.pt/opina-y-gana",rel:"obfuscated",text:"Comenta e Ganha"},{href:"https://pcads.pccomponentes.com/en/",rel:"nofollow",text:"Publicidade"},{href:"https://jobs.pccomponentes.com/",rel:"nofollow",text:"Trabalha connosco"},{href:"https://www.pccomponentes.pt/cookies-pt",rel:"obfuscated",text:"Política de cookies"}],title:"Contactar"},{links:[{href:"https://www.pccomponentes.pt/replay",text:"Replay"},{href:"https://www.pccomponentes.pt/black-friday",text:"Black Friday"},{href:"https://www.pccomponentes.pt/cyber-monday",text:"Cyber Monday"},{href:"https://www.pccomponentes.pt/pcdays",text:"PcDays"}],title:"Outros"},{links:[{href:"https://www.pccomponentes.pt/blog",icon:"pcc_icon",id:"GTM-footerRRSS-blog",text:"Blog"},{href:"https://www.instagram.com/pccomponentes.pt/",icon:"instagram",rel:"noopener",id:"GTM-footerRRSS-instagram",target:"_blank",text:"Instagram"},{href:"https://twitter.com/PcComponentesPT",icon:"twitter",rel:"noopener",id:"GTM-footerRRSS-twitter",target:"_blank",text:"Twitter"},{href:"https://www.facebook.com/PcComponentes.pt/",icon:"facebook",rel:"noopener",id:"GTM-footerRRSS-facebook",target:"_blank",text:"Facebook"},{href:"https://www.tiktok.com/@pccomponentes.pt",icon:"tiktok",rel:"noopener",id:"GTM-footerRRSS-tiktok",target:"_blank",text:"TikTok"}],title:"Comunidade"}],language:"pt_PT",legal:{links:[{text:"PC Componentes y Multimedia SLU CIF B73347494. AVDA Europa, Lote 2-5 e 2-6. Complexo industrial Las Salinas, 30840, Alhama de Murcia, Murcia. ESPANHA."}]},app:{android:{href:"http://app.app4less.es/app/pccomponentespt?campaign=footer",icon:"android",rel:"noopener",id:"GTM-footerRRSS-appAndroid",target:"_blank",text:"Descarrega no Google Play"},ios:{href:"http://app.app4less.es/app/pccomponentespt?campaign=footer",icon:"ios",rel:"noopener",id:"GTM-footerRRSS-appIOS",target:"_blank",text:"Descarrega na App Store"},qr:{href:"http://app.app4less.es/app/pccomponentespt?campaign=footer",image:"https://cdn.pccomponentes.com/img/repositorio/otros/qr-app-pcc-pt.png",icon:["android","ios"],rel:"noopener",id:"GTM-footerRRSS-appQR",target:"_blank",text:"Descarrega para"}}}},96349:(e,t,r)=>{r.d(t,{mD:()=>E,PX:()=>g,bo:()=>f,mr:()=>v,w_:()=>S,O5:()=>O,I6:()=>b});var n,o="@@HEADER/GET_FOOTER_INFO_REQUEST",i="@@HEADER/GET_FOOTER_INFO_SUCCESS",a="@@HEADER/GET_FOOTER_INFO_FAILURE",l=r(95152),c=r(24115),s=r(68414),u=r(9548);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=(d(n={},l.Pp.COM,c.v),d(n,l.Pp.PT,u.H),d(n,l.Pp.FR,s.o),d(n,l.Pp.IT,c.v),n),f=function(e){return p[e]},g={request:function(){return{type:o}},success:function(e){return{type:i,payload:e}},error:function(e){return{type:a,payload:e}}},v=function(e){return function(t){t(g.request());try{var r=f(e);t(g.success(r))}catch(e){t(g.error(e))}}};function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o:return y({},e);case i:return y({},e,t.payload);case a:return y({},e);default:return e}},w=r(20573),P=function(e){return e.footer},O=(0,w.P1)(P,(function(e){return e.items})),S=(0,w.P1)(P,(function(e){return e.legal})),E=(0,w.P1)(P,(function(e){return e.app}))},5210:(e,t,r)=>{r.d(t,{Fz:()=>i,ST:()=>n,f4:()=>o,Pg:()=>a,Vy:()=>S,iy:()=>E,qF:()=>p,I6:()=>u});var n="@@HEADER/GET_HEADER_INFO_REQUEST",o="@@HEADER/GET_HEADER_INFO_SUCCESS",i="@@HEADER/GET_HEADER_INFO_FAILURE",a={request:function(){return{type:n}},success:function(e){return{type:o,payload:e}},error:function(e){return{type:i,payload:e}}};function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n:return c({},e);case o:return c({},e,t.payload);case i:return c({},e);default:return e}};var d,p=function(e){return e.header},f=r(62812),g=r(55285),v=r(95152);function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=(m(d={},v.Pp.COM,{top:{advice:{uuid:"",color:"",rel:"",target:"",dismissible:!0,content:{device:[],desktop:[]}}},main:{brand:{name:"pc-logo-1"}},bottom:{claim:"
Expertos en tecnología con un servicio 5 estrellas
",featured:{links:[]}}}),m(d,v.Pp.PT,{top:{advice:{uuid:"",color:"",rel:"",target:"",dismissible:!0,content:{device:[],desktop:[]}}},main:{brand:{name:"pc-logo-1"}},bottom:{claim:"
A tua loja online de tecnologia
",featured:{links:[]}}}),m(d,v.Pp.FR,{top:{advice:{uuid:"",color:"",rel:"",target:"",dismissible:!0,content:{device:[],desktop:[]}}},main:{brand:{name:"pc-logo-1"}},bottom:{claim:"
Experts en technologie avec un service 5 étoiles
",featured:{links:[]}}}),m(d,v.Pp.IT,{top:{advice:{uuid:"",color:"",rel:"",target:"",dismissible:!0,content:{device:[],desktop:[]}}},main:{brand:{name:"pc-logo-1"}},bottom:{claim:"
Esperti di tecnologia con un servizio a 5 stelle
",featured:{links:[]}}}),d),h=function(e){var t=e.recommendedPrice,r=e.promotionalPrice,n=e.isPCC,o=e.bestPrice;if(t&&r&&n)return t>=r&&o||void 0};function b(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}var w,P,O=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{QL:()=>m,M_:()=>U,E6:()=>M,Ec:()=>b,Dw:()=>N,vf:()=>S,es:()=>O,X$:()=>j,I6:()=>_,bY:()=>x,T_:()=>E,zL:()=>L,Ge:()=>I});var n="@@MENU/GET_MENU_ITEMS_REQUEST",o="@@MENU/GET_MENU_ITEMS_SUCCES",i="@@MENU/GET_MENU_ITEMS_FAILURE",a="@@MENU/SET_SELECTED_CATEGORY",l="@@MENU/TOGGLE_SHOW_MENU",c="@@MENU/GET_DIRECT_LINKS_REQUEST",s="@@MENU/GET_DIRECT_LINKS_SUCCESS",u="@@MENU/GET_DIRECT_LINKS_FAILURE",d=(r(49670),r(58846),r(68551)),p=r(54461);function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:C,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n:return D(R({},e),{loading:!0});case o:return D(R({},e),{categories:t.payload,loading:!1});case i:return D(R({},e),{loading:!1});case a:return D(R({},e),{selectedCategory:t.payload});case c:return D(R({},e),{loading:!0});case s:return D(R({},e),{directLinks:t.payload,loading:!1});case u:return D(R({},e),{loading:!1});case l:var r=R({},e),d=null===r.selectedCategory?t.payload:r.selectedCategory;return D(R({},e),{showMenu:!e.showMenu,selectedCategory:d});default:return e}};var k=r(20573),A=function(e){return e.menu},j=function(e){return e.menu.categories.byId},x=function(e){return e.menu.selectedCategory},L=function(e){return e.menu.showMenu},M=(0,k.P1)(A,(function(e){return e.categories.categoryList})),U=(0,k.P1)(A,j,(function(e,t){var r=e.selectedCategory;return r&&t[r]||void 0})),N=function(e){return e.menu.directLinks}},57372:(e,t,r)=>{r.d(t,{DH:()=>o,Hd:()=>n,bz:()=>i});var n="@@PRODUCT_DETAIL/GET_PRODUCT_DETAIL_REQUEST",o="@@PRODUCT_DETAIL/GET_PRODUCT_DETAIL_SUCCES",i="@@PRODUCT_DETAIL/GET_PRODUCT_DETAIL_FAILURE"},27585:(e,t,r)=>{r.d(t,{Et:()=>I,Sw:()=>F,kc:()=>P});var n=r(54461),o=r(78449),i=r(72845),a=r(90959),l=r(77699),c=r(12070),s=r(15588),u=r(84479),d=r(18627),p=r(29843),f=r(36609),g=r(7118),v=r(55285);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r]*?\s+)?href=(["'])(.*?)\1[^>]*?>(.*?)<\/a>/g;return e.reduce((function(e,r){var n=t.exec(r.text);if(n){var o=n[2],i=n[3];-1===e.findIndex((function(e){return e.url===o}))&&e.push({url:o,text:i,rel:"nofollow"})}return e}),[])},S=function(e){var t=new Date(e),r=new Date,n=(0,f.t)("productDetail.digital.releaseDate",{day:t.getUTCDate()+1,month:(0,u.xS)(t.getUTCMonth())});return{isAvailableImmediately:t{function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{$p:()=>y,Gx:()=>p,H_:()=>v,Oz:()=>g,SH:()=>u,Tu:()=>d,Ux:()=>m,WU:()=>f,gr:()=>i,nx:()=>h,wC:()=>a});var o,i=10818,a="-reacondicionado",l="reconditioned-a",c="reconditioned-b",s="reconditioned-c",u=(n(o={},"reaconditioned-a",l),n(o,"reaconditioned-b",c),n(o,"reaconditioned-c",s),o),d=[l,c,s],p="special-day",f="https://img.pccomponentes.com",g="//thumb.pccomponentes.com",v="new",m="tiendas",y="ofertas",h="offer"},7118:(e,t,r)=>{r.d(t,{CA:()=>a,N4:()=>c,NZ:()=>s,gu:()=>u,xq:()=>l});var n=r(54461);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=500,l=404,c="refurbished",s="null",u=(o(i={},n.lI.es_ES,"https://www.pccomponentes.com/soporte/condiciones-para-devoluciones-de-clientes-particulares"),o(i,n.lI.pt_PT,"https://www.pccomponentes.com/soporte/condiciones-para-devoluciones-de-clientes-particulares"),o(i,n.lI.fr_FR,"https://www.pccomponentes.fr/assistance/je-ai-un-colis-traite-ou-avec-un-coup"),o(i,n.lI.it_IT,"https://www.pccomponentes.com/soporte/condiciones-para-devoluciones-de-clientes-particulares"),i)},47107:(e,t,r)=>{r.d(t,{n:()=>s});var n=r(57372),o={deliveryDateStr:"",shippingCost:0,trademarkId:0,productId:0,offerId:"string",name:"",valoration:{totalComments:0,avg:0,rating:{1:0,2:0,3:0,4:0,5:0},totalValorationsWithText:0,recommend:0},images:{totalMedias:0,totalPages:0,medias:[]},questionAnswer:{items:[],totalItems:0},condition:"",slug:"",type:"",description:"",shortDescription:"",originalPrice:0,price:0,canonWithTaxes:0,recommendedPrice:null,discount:0,bestPrice:null,isNew:!1,isWinnerPCC:!1,badges:[],share:{facebook:"",twitter:"",email:"",whatsapp:"",googleplus:""},priorityCampaign:null,insurances:null,availabilityCode:0,freeReplacement:!1,reference:"",flags:[],unPurchasable:!1,hasOffer:!0,trademarkRef:"",mainImage:{thumb:"",large:"",cdn:""},secondaryImages:[],brandName:"",brandLink:"",stock:!1,superFamily:{id:0,name:"",slug:""},family:{id:0,name:"",slug:""},added_date:"",ean:"",storeAvailability:[],availabilityDateCollectInShop:[],isInLiquidation:!1,campaigns:[],marketplaces:[],notifyMe:!1,valorations:{product:void 0,items:[],pagination:{currentPage:0,totalItems:0,itemsPerPage:16},mostUsefulItem:void 0},metaInformation:{title:"",description:""},isTop:!1,seoLinks:[]},i=r(7118);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.Hd:return l({},e);case n.DH:return c(l({},e,t.payload||{}),{notFound:!1,serverError:!1});case n.bz:return c(l({},e),{notFound:t.payload===i.xq,serverError:t.payload===i.CA});default:return e}}},78449:(e,t,r)=>{var n,o,i;r.d(t,{Iq:()=>n,kv:()=>i,xv:()=>o}),function(e){e.NORMAL="normal",e.DIGITAL="digital",e.DROP_SHIPPING="drop-shipping",e.COMPOUND="compound",e.DEAL="deal",e.REACONDITIONED="reaconditioned",e.REFURBISHED="refurbished",e.RECERTIFIED="recertified",e.CPO="cpo",e.PCCOM="pccom",e.V2_PCCOM="pccom-variation",e.MARKET_PLACE="mirakl-offer"}(n||(n={})),function(e){e.CETELEM="cetelem",e.APLAZAME="aplazame",e.ONEY="oney"}(o||(o={})),function(e){e.DEAL="deal",e.NORMAL="normal",e.REFURBISHED="reaconditioned"}(i||(i={}))},82950:(e,t,r)=>{r.d(t,{G:()=>c,H:()=>s});var n=r(18627),o=r(42962);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var r,n,o,i,a=(null===t||void 0===t||null===(r=t.offer_promotional_price)||void 0===r?void 0:r.min)||(null===t||void 0===t||null===(n=t.price)||void 0===n?void 0:n.min),l=(null===t||void 0===t||null===(o=t.offer_promotional_price)||void 0===o?void 0:o.max)||(null===t||void 0===t||null===(i=t.price)||void 0===i?void 0:i.max);if(a&&e.originalPrice.pricel)return!1}return!0},c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c=[];return(e=(e=e.sort((function(e,t){return e.position-t.position}))).filter((function(e){if(!e.data)return!1;var t,n,o,i={image:e.data.image,name:e.data.name,currentSlug:null!==(n=null!==(t=e.data.slug)&&void 0!==t?t:e.data.currentSlug)&&void 0!==n?n:"",type:e.data.type,idArticle:e.data.idArticle,price:e.data.price,trademark:e.data.trademark,family:e.data.family,flags:e.data.flags,availability:e.data.availability,deliveryDate:{strDate:e.data.deliveryDate.strDate,minDate:e.data.deliveryDate.minDate,maxDate:e.data.deliveryDate.maxDate,releaseDate:null!==(o=e.data.deliveryDate.releaseDate)&&void 0!==o?o:"",availabilityCode:e.data.deliveryDate.availabilityCode},valoration:e.data.valoration,originalPrice:e.data.originalPrice,promotions:e.data.promotions,isInPriorityCampaign:e.data.isInPriorityCampaign};return l(i,r)}))).forEach((function(e){var r,l,s,u,d=e.adId,p=e.adType,f=e.adIdView,g=e.adIdLoad,v=e.adSlotView,m=e.adSlotLoad,y=e.adIdBasket,h=e.adHash,b=e.productId,w=e.data,P=w.price.price,O=w.originalPrice.price,S=w.discount,E=w.discountInCart,F=w.trademark,I=w.type,T=w.deliveryDate,R=w.family,D=w.flags,C=w.image,_=w.name,k=w.valoration,A=w.slug,j=w.currentSlug,x=w.isInPriorityCampaign,L=w.sellerName,M=w.topAttributes,U=w.bestPrice,N=w.recommendedPrice,G=w.isPCC,H=(0,o.x9)()||void 0,B=(0,o.K5)({image:w.image,name:w.name,currentSlug:null!==(l=null!==(r=w.slug)&&void 0!==r?r:w.currentSlug)&&void 0!==l?l:"",type:w.type,idArticle:w.idArticle,price:w.price,trademark:w.trademark,family:w.family,flags:w.flags,availability:w.availability,deliveryDate:{strDate:w.deliveryDate.strDate,minDate:w.deliveryDate.minDate,maxDate:w.deliveryDate.maxDate,releaseDate:null!==(s=w.deliveryDate.releaseDate)&&void 0!==s?s:"",availabilityCode:w.deliveryDate.availabilityCode},valoration:w.valoration,originalPrice:w.originalPrice,promotions:w.promotions,isInPriorityCampaign:w.isInPriorityCampaign});c.push({adType:p,adId:d,adIdLoad:g,adIdView:f,adSlotLoad:m,adSlotView:v,adIdBasket:y,adHash:h,adUnique:H,brandName:F.name,delivery:{type:I,availabilityCode:T.availabilityCode,minDeliveryDate:T.minDate,maxDeliveryDate:T.maxDate,releaseDate:T.releaseDate||void 0},discount:S||null,discountInCart:E,stock:B.stock,initialStock:B.initialStock,hideStockBar:B.hideStockBar,familyName:R.name,flags:a(i&&[n.WN.SPONSORED]||[]).concat(a(D)),id:b,images:"string"===typeof C?(0,o.Jx)(C):C,locale:t,name:_,objectId:b,originalPrice:O,promotionalPrice:P!==O?P:null,ratingAvg:Math.round(10*(k.avg/2+Number.EPSILON))/10,ratingCount:k.total,relevance:0,slug:null!==(u=null!==A&&void 0!==A?A:j)&&void 0!==u?u:"",isInPriorityCampaign:x,topAttributes:M,sellerName:L,recommendedPrice:null!==N&&void 0!==N?N:void 0,bestPrice:null!==U&&void 0!==U?U:void 0,isPCC:null!==G&&void 0!==G?G:void 0,attributes:{},recommendedAttributes:{},leadComment:null})})),c},s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.find((function(e){return"FLAGSHIP"===e.type}));if(!n)return[];var o=c(n.products,t,r,!1);return[{type:n.type,image:n.image,articles:o}]}},84572:(e,t,r)=>{r.d(t,{Fw:()=>u,M$:()=>c,w9:()=>s});var n=r(68572),o=r(42962);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){for(var t=1;tt.relevance?1:-1}))},s=function(e){var t={},r={};return e?(Object.keys(e).forEach((function(i){var a="";i.endsWith(n.dS.FROM)&&(a=i.slice(0,-5)),i.endsWith(n.dS.TO)&&(a=i.slice(0,-3)),!i.endsWith(n.dS.FROM)&&!i.endsWith(n.dS.TO)||t[a]||(t[a]={min:void 0,max:void 0}),i.endsWith(n.dS.FROM)&&"number"===typeof Number(e[i])?t[a].min=Number(e[i]):i.endsWith(n.dS.TO)&&"number"===typeof Number(e[i])?t[a].max=Number(e[i]):(0,o.gG)(e[i])&&(r[i]=e[i])})),{rangeFilters:t,enumFilters:r}):{rangeFilters:t,enumFilters:r}},u=function(e){if(!(null===e||void 0===e?void 0:e.filters))return{filters:{},relevantFilters:[]};var t=s(e.selectedFilters).enumFilters;return{filters:null===e||void 0===e?void 0:e.filters,relevantFilters:(null===e||void 0===e?void 0:e.relevantFilters)&&c(e.relevantFilters,t)||[]}}},83624:(e,t,r)=>{r.d(t,{m:()=>o});var n=r(84572),o=function(e){var t,r,o,i,a,l,c,s,u,d=(0,n.w9)(e.selectedFilters),p=d.rangeFilters,f=d.enumFilters;return{articles:e.articles,category:{name:null===(t=e.category)||void 0===t?void 0:t.name,slug:null===(r=e.category)||void 0===r?void 0:r.slug,id:null===(o=e.category)||void 0===o?void 0:o.id,legacyId:null===(i=e.category)||void 0===i?void 0:i.legacyId,hierarchicalLegacyIds:(null===(a=e.category)||void 0===a?void 0:a.hierarchicalLegacyIds)||[],searchAssistantBlock:null===(l=e.category)||void 0===l?void 0:l.buyAssistants,recommendedBlock:(null===(c=e.category)||void 0===c?void 0:c.recommender)&&(u=null===(s=e.category)||void 0===s?void 0:s.recommender,Array.isArray(u)||!u?null:{id:u.id,name:null===u||void 0===u?void 0:u.name,title:null===u||void 0===u?void 0:u.title,description:null===u||void 0===u?void 0:u.description,link:null===u||void 0===u?void 0:u.link,expert:null===u||void 0===u?void 0:u.expert,articles:u.articles,articlesData:u.articlesData})},pageSize:e.pageSize,totalPages:e.totalPages,totalProducts:e.total,sort:e.sort,sortingKeys:e.sortingKeys,filters:e.filters,relevantFilters:(null===e||void 0===e?void 0:e.relevantFilters)&&(0,n.M$)(e.relevantFilters,f)||[],selectedFilters:f,selectedRangeFilters:p,selectedFiltersSlugs:e.selectedFiltersSlugs,currentPage:e.page,queryId:e.queryId,variants:null===e||void 0===e?void 0:e.variants}}},29843:(e,t,r)=>{r.d(t,{$W:()=>f,$X:()=>d,BC:()=>I,Bx:()=>O,Ei:()=>U,I7:()=>T,N6:()=>N,On:()=>m,PP:()=>p,S_:()=>v,U5:()=>D,X8:()=>x,Xi:()=>C,ah:()=>F,cg:()=>A,d7:()=>b,eM:()=>h,ex:()=>g,ez:()=>k,gd:()=>y,iM:()=>j,ju:()=>L,md:()=>_,nQ:()=>w,sb:()=>P,uy:()=>M,wA:()=>E,wL:()=>S,x$:()=>R});var n=r(77862),o=r(54461),i=r(68572);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l,c,s,u,d=40,p=25,f=16,g=24,v=40,m=40,y=36,h=(a(l={},i.h2.SMALL.toString(),{width:140,height:140}),a(l,i.h2.MEDIUM.toString(),{width:300,height:300}),a(l,i.h2.LARGE.toString(),{width:530,height:530}),l),b=(a(c={},n.IL.CAMPAIGNS,[0,2,4,6]),a(c,n.IL.CATEGORY,[0,2,4,6]),a(c,n.IL.SEARCH,[0,2,4,6]),c),w="https://thumb.pccomponentes.com",P="all-categories",O="nuestra-seleccion-para-ti",S="ofertas-flash",E="price",F="offer_promotional_price",I=(a(s={},o.lI.es_ES,"api-listados-related-blog"),a(s,o.lI.pt_PT,"pt-api-listados-related-blog"),a(s,o.lI.fr_FR,"fr-api-listados-related-blog"),a(s,o.lI.it_IT,"it-api-listados-related-blog"),s),T="es-api-campaign-priority-listing",R="api-campaign-priority-listing-",D=12e4,C=5e3,_="relevance",k="unknown",A="brand",j="brand_id",x="brands",L="families",M="filter_group_",U=999999,N=(a(u={},i.WN.DIGITAL,i.WN.DIGITAL),a(u,i.WN.REFURBISHED,i.WN.REFURBISHED),u)},18627:(e,t,r)=>{r.d(t,{l6:()=>xt.l6,ws:()=>xt.ws,mk:()=>xt.mk,WN:()=>xt.WN,h2:()=>xt.h2,dS:()=>xt.dS,iv:()=>xt.iv,w1:()=>xt.w1,p:()=>kt,zT:()=>ut,Nn:()=>jt,uN:()=>rt,uT:()=>dt,gv:()=>le,kQ:()=>ce,PV:()=>ge,Ex:()=>vt,z9:()=>gt,zq:()=>mt,st:()=>Ct,wD:()=>et,rE:()=>It,pM:()=>xe,SZ:()=>_e,QW:()=>Ae,_Q:()=>Ee,dG:()=>ie,kd:()=>Ie,ML:()=>tt,Fk:()=>De,vk:()=>Tt,mC:()=>_t,GG:()=>Rt,G1:()=>Ye,Ur:()=>Qe,TB:()=>ot,D3:()=>ft,Cj:()=>it,C:()=>yt,_x:()=>lt,og:()=>st,Zu:()=>ct,eV:()=>Ze,Vl:()=>Ke,_w:()=>nt,I6:()=>Be,m2:()=>Te,Fi:()=>je,t7:()=>ke,vO:()=>Fe,Zw:()=>se,LP:()=>Re,aw:()=>me,ag:()=>ye,jg:()=>At,OU:()=>at,cQ:()=>ae,Sk:()=>be,A9:()=>Pe,$r:()=>Se,iR:()=>Je,tj:()=>Xe,ud:()=>Dt,pA:()=>Oe,iB:()=>he,c_:()=>pt,lb:()=>we});var n=r(18685),o=r(66904),i=r(8218),a=r(54461),l=r(61436),c=r(36027),s="@@PRODUCT/GET_PRODUCT_ITEMS_REQUEST",u="@@PRODUCT/GET_PRODUCT_ITEMS_SUCCES",d="@@PRODUCT/GET_PRODUCT_ITEMS_FAILURE",p="@@PRODUCTS/LOAD_MORE_PRODUCT_ITEMS",f="@@PRODUCTS/RESET_PRODUCTS_STATE",g="@@PRODUCTS/INIT_PRODUCTS_FILTERS",v="@@PRODUCTS/CHANGE_PRODUCTS_FILTERS",m="@@PRODUCTS/CHANGE_PRODUCTS_RANGE_FILTERS",y="@@PRODUCTS/REFRESH_PRODUCTS_FILTERS_REQUEST",h="@@PRODUCTS/REFRESH_PRODUCT_CATEGORYPROMOTION_REQUEST",b="@@PRODUCTS/SET_PRODUCTS_CATEGORY_PROMOTION_REQUEST",w="@@PRODUCTS/REFRESH_PRODUCTS_FILTERS_SUCCESS",P="@@PRODUCTS/GET_SEO_PRODUCTS_FILTERS",O="@@PRODUCTS/GET_SEO_CAMPAIGN_PRODUCTS_FILTERS",S="@@PRODUCTS/REFRESH_PRODUCTS_FILTERS_FAILURE",E="@@PRODUCTS/CHANGE_PRODUCTS_SORT",F="@@PRODUCTS/RESET_FILTERS",I="@@PRODUCTS/RESET_RANGE_FILTERS",T="@@PRODUCTS/TOGGLE_SHOW_FILTERS_NAV",R="@@PRODUCTS/SET_COMPARE_ITEMS",D="@@PRODUCTS/UPDATE_COMPARE_ITEMS",C="@@PRODUCTS/SET_COMPARE_POPOVER",_="@@PRODUCTS/TOGGLE_IS_APPLYING_FILTERS",k="@@PRODUCTS/UPDATE_LAST_URL_WITH_RESULTS",A="@@PRODUCTS/SET_VALORATION",j="@@PRODUCTS/SET_PRODUCT_VALORATION_MEDIA",x="@@PRODUCTS/SET_ADS",L="@@SET_PRODUCTS_SEARCH_SUGGESTIONS",M="@@PRODUCTS/SET_ASSISTANT_DATA_FROM_JSON",U=r(82950),N=r(58029),G=function(e,t){var r,n;if(e)return{selected:t,isHierarchyTypeA:!!e.find((function(e){return t===e.tag_id&&e.isHierarchyTypeA})),items:e.map((function(e){var t,o;return{tagId:e.tag_id,campaignId:e.campaign_id,imageUrl:e.image_url,slug:e.slug,name:e.name,isHierarchyTypeA:e.isHierarchyTypeA||!1,metas:{index:null!==(r=null===(t=e.metas)||void 0===t?void 0:t.index)&&void 0!==r&&r,follow:null!==(n=null===(o=e.metas)||void 0===o?void 0:o.follow)&&void 0!==n&&n}}}))}},H=r(84572);function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}var q=function(e,t){var r,n,o,i,a,l,c,s,u,d,p,f=(0,H.w9)(e.selectedFilters),g=f.rangeFilters,v=f.enumFilters;return{articles:null===e||void 0===e?void 0:e.articles.map((function(e){var t=(e.campaignPromotionExpirationDate&&(0,N.j)(e.campaignPromotionExpirationDate)||{isLessThan24Hours:!1}).isLessThan24Hours;return W(function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&(r((0,c.lk)(t)),r(ve(t))),r(ie.success(o))),[3,4];case 3:return i=a.sent(),r(ie.failure(i)),[3,4];case 4:return[2]}}))})),function(e){return r.apply(this,arguments)};var r},Fe=function(e){return t=X((function(t){var r,n,o,i,a,l,c;return oe(this,(function(s){switch(s.label){case 0:t(ue()),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,$.Bu)(ee(Z({},e),{pageSize:V.On}))];case 2:return r=s.sent(),(n=null===r||void 0===r?void 0:r.data)&&(o=(0,H.Fw)(n),i=o.filters,a=o.relevantFilters,l=(0,H.w9)(n.selectedFilters).enumFilters,t(de({filters:i,selectedFiltersSlugs:(null===n||void 0===n?void 0:n.selectedFiltersSlugs)||[],relevantFilters:a,selectedFilters:l}))),[3,4];case 3:return c=s.sent(),t(pe(c)),[3,4];case 4:return[2]}}))})),function(e){return t.apply(this,arguments)};var t},Ie=function(e,t,r){return n=X((function(n,o){var i,a,l,s,u,d,p,f,g,v;return oe(this,(function(m){switch(m.label){case 0:i=1===(null===e||void 0===e?void 0:e.page),n(ie.request()),m.label=1;case 1:return m.trys.push([1,3,,4]),[4,Promise.all([(0,$.n2)(ee(Z({},e),{pageSize:V.$X}))].concat(re(i&&!r?[(0,$.bW)(e,o().products.filters,o().products.CF_WORKER)]:[])))];case 2:return a=te.apply(void 0,[m.sent(),2]),l=a[0],s=l.data,u=a[1],s&&(d=(0,z.m)(s),t&&d.totalProducts>0&&(n(ve(t)),n((0,c.lk)(t)),1===e.page&&u&&(p=u.data,f=p&&(0,U.G)(null===p||void 0===p?void 0:p.articles,e.channel,e.rangeFilters)||[],g=p&&(0,U.H)((null===p||void 0===p?void 0:p.banners)||[],e.channel,e.rangeFilters)||[],n(ae({articles:f,banners:g})))),n(ie.success(d))),[3,4];case 3:return v=m.sent(),n(ie.failure(v)),[3,4];case 4:return[2]}}))})),function(e,t){return n.apply(this,arguments)};var n},Te=function(e){return t=X((function(t,r){var n,o,i,a;return oe(this,(function(l){switch(l.label){case 0:if(1!==(null===e||void 0===e?void 0:e.page))return[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,(0,$.bW)(e,r().products.filters,r().products.CF_WORKER)];case 2:return n=l.sent(),o=n.data,i=o&&(0,U.G)((null===o||void 0===o?void 0:o.articles)||[],e.channel,e.rangeFilters)||[],a=o&&(0,U.H)((null===o||void 0===o?void 0:o.banners)||[],e.channel,e.rangeFilters)||[],t(ae({articles:i,banners:a})),[3,4];case 3:return l.sent(),[2];case 4:return[2]}}))})),function(e,r){return t.apply(this,arguments)};var t},Re=function(e){return t=X((function(t,r){var n,o,i,a,l,c,s,u,d,p,f,g,v;return oe(this,(function(m){switch(m.label){case 0:n=1===(null===e||void 0===e?void 0:e.page),t(ue()),m.label=1;case 1:return m.trys.push([1,3,,4]),[4,Promise.all([(0,$.n2)(ee(Z({},e),{pageSize:40}))].concat(re(n?[(0,$.bW)(e,r().products.filters,r().products.CF_WORKER)]:[])))];case 2:return o=te.apply(void 0,[m.sent(),2]),i=o[0],a=o[1],(l=i.data)&&(c=(0,H.Fw)(l),s=c.filters,u=c.relevantFilters,d=(0,H.w9)(l.selectedFilters).enumFilters,t(de({filters:s,selectedFiltersSlugs:(null===l||void 0===l?void 0:l.selectedFiltersSlugs)||[],relevantFilters:u,selectedFilters:d}))),a&&(p=a.data,f=p&&(0,U.G)(null===p||void 0===p?void 0:p.articles,e.channel,e.rangeFilters)||[],g=p&&(0,U.H)((null===p||void 0===p?void 0:p.banners)||[],e.channel,e.rangeFilters)||[],t(ae({articles:f,banners:g}))),[3,4];case 3:return v=m.sent(),t(pe(v)),[3,4];case 4:return[2]}}))})),function(e,r){return t.apply(this,arguments)};var t},De=function(e,t,r){return i=X((function(i,l){var s,u,d,p,f,g,v,m,y,h,b,w,P,O,S;return oe(this,(function(E){switch(E.label){case 0:s=1===(null===e||void 0===e?void 0:e.page),i(ue()),E.label=1;case 1:return E.trys.push([1,6,,7]),u=e.rangeFilters,[4,Promise.all([(0,$.n2)(ee(Z({},e),{pageSize:V.$X}),r)].concat(re(s?[(0,$.bW)(e,l().products.filters,l().products.CF_WORKER)]:[])))];case 2:return d=te.apply(void 0,[E.sent(),2]),p=d[0],f=d[1],s&&f&&(g=null===f||void 0===f?void 0:f.data,v=g&&(0,U.G)(null===g||void 0===g?void 0:g.articles,e.channel,u)||[],m=g&&(0,U.H)((null===g||void 0===g?void 0:g.banners)||[],e.channel,e.rangeFilters)||[],i(ae({articles:v,banners:m}))),(null===p||void 0===p?void 0:p.data)?(null===(b=null===(y=p.data)||void 0===y||null===(h=y.category)||void 0===h?void 0:h.recommender)||void 0===b?void 0:b.articles)?[4,(0,n.S)(Object.keys(b.articles).map((function(e){return Number(e)})),(null===r||void 0===r?void 0:r.language)||a.lI.es_ES)]:[3,4]:[3,5];case 3:if(!(null===(P=E.sent())||void 0===P||null===(w=P.data)||void 0===w?void 0:w.articles))return[2];b.articlesData=(0,o.s)(P.data.articles,b.articles,b.id),E.label=4;case 4:O=(0,z.m)(p.data),i(fe(O)),(null===O||void 0===O?void 0:O.totalProducts)>0&&(i((0,c.lk)(t)),i(ve(t))),E.label=5;case 5:return[3,7];case 6:return S=E.sent(),i(pe(S)),[3,7];case 7:return[2]}}))})),function(e,t){return i.apply(this,arguments)};var i},Ce=function(e,t,r){return n=X((function(n){var o,i,a,l;return oe(this,(function(c){switch(c.label){case 0:if(c.trys.push([0,2,,3]),!e)throw new Error("campaignId mustn't be empty");return[4,(0,$.wA)(e,r)];case 1:return(null===(o=c.sent())||void 0===o?void 0:o.data)&&(a=G(null===(i=o.data)||void 0===i?void 0:i.tags,t),n(function(e){return{type:b,payload:{categoriesPromotion:e}}}(a))),[3,3];case 2:return l=c.sent(),n(pe(l)),[3,3];case 3:return[2]}}))})),function(e){return n.apply(this,arguments)};var n},_e=function(e){var t,r=e.body,n=e.url,o=e.headers,a=e.includeTags,s=void 0!==a&&a,u=e.isHierarchyTypeA,d=void 0!==u&&u,p=e.isPriorityCampaign;return t=X((function(e,t){var a,u,f,g,v,m,y,h,b,w,P,S,E,F;return oe(this,(function(I){switch(I.label){case 0:if(a=null===r||void 0===r?void 0:r.campaignId,u=(0,K.fD)(null===r||void 0===r?void 0:r.campaignTag),(0,i.y)()&&u)return[2,e(Ce(a,null===r||void 0===r?void 0:r.campaignTag,o))];f=!d&&!u&&1===(null===r||void 0===r?void 0:r.page),e(ie.request()),I.label=1;case 1:if(I.trys.push([1,5,,6]),!a)throw new Error("campaignId mustn't be empty");return g=!(0,K.VJ)({campaignTag:r.campaignTag,filters:r.filters,rangeFilters:r.rangeFilters,sort:r.sort})&&p,(m=g)?[4,(0,$.HB)(a)]:[3,3];case 2:m=I.sent(),I.label=3;case 3:return v=m||"",[4,Promise.all([(0,$.k9)({body:ee(Z({},r),{campaignId:a,sortedProductIds:v,includeTags:s,includeHighlights:!0,pageSize:!d&&V.PP||V.ex}),isHierarchyTypeA:d,isRecommendedTagSelected:u,headers:o})].concat(re(f?[(0,$.bW)(r,t().products.filters,t().products.CF_WORKER)]:[])))];case 4:return y=te.apply(void 0,[I.sent(),2]),h=y[0],b=y[1],e((0,l.NG)(!d)),w=null===b||void 0===b?void 0:b.data,P=w&&(0,U.G)(null===w||void 0===w?void 0:w.articles,r.channel,r.rangeFilters)||[],S=w&&(0,U.H)((null===w||void 0===w?void 0:w.banners)||[],r.channel,r.rangeFilters)||[],e(ae({articles:P,banners:S})),(null===h||void 0===h?void 0:h.data)&&(E=q(h.data,null===r||void 0===r?void 0:r.campaignTag),e({type:O,payload:E}),(null===E||void 0===E?void 0:E.totalProducts)>0&&(e((0,c.lk)(n)),e(ve(n)))),[3,6];case 5:return F=I.sent(),e(pe(F)),[3,6];case 6:return[2]}}))})),function(e,r){return t.apply(this,arguments)}},ke=function(e,t){return r=X((function(r){var n,o,i,a,l,c,s,u,d,p,f,g;return oe(this,(function(v){switch(v.label){case 0:n=null===e||void 0===e?void 0:e.campaignId,o=null===e||void 0===e?void 0:e.campaignLegacyId,r(ue()),v.label=1;case 1:if(v.trys.push([1,5,,6]),!o||!n)throw new Error("campaignId or campaignLegacyId mustn't be empty");return i=!(0,K.VJ)({campaignTag:e.campaignTag,filters:e.filters,rangeFilters:e.rangeFilters,sort:e.sort})&&t,(l=i)?[4,(0,$.HB)("".concat(o))]:[3,3];case 2:l=v.sent(),v.label=3;case 3:return a=l||"",[4,(0,$.k9)({body:ee(Z({},e),{campaignId:n,sortedProductIds:a,pageSize:V.PP})})];case 4:return c=v.sent(),(s=null===c||void 0===c?void 0:c.data)&&(u=(0,H.Fw)(s),d=u.filters,p=u.relevantFilters,f=(0,H.w9)(s.selectedFilters).enumFilters,r(de({filters:d,selectedFiltersSlugs:(null===s||void 0===s?void 0:s.selectedFiltersSlugs)||[],relevantFilters:p,selectedFilters:f}))),[3,6];case 5:return g=v.sent(),r(pe(g)),[3,6];case 6:return[2]}}))})),function(e){return r.apply(this,arguments)};var r},Ae=function(e,t){return r=X((function(r){var n,o,i;return oe(this,(function(a){switch(a.label){case 0:r(ue()),a.label=1;case 1:if(a.trys.push([1,3,,4]),!(null===e||void 0===e?void 0:e.brandId))throw new Error("brandId must not be empty.");return[4,(0,$.dS)(ee(Z({},e),{pageSize:V.S_}))];case 2:return(null===(n=a.sent())||void 0===n?void 0:n.data)&&(o=(0,z.m)(Z({},n.data)),r(fe(o)),o.totalProducts>0&&(r((0,c.lk)(t)),r(ve(t)))),[3,4];case 3:return i=a.sent(),r(pe(i)),[3,4];case 4:return[2]}}))})),function(e){return r.apply(this,arguments)};var r},je=function(e){return t=X((function(t){var r,n,o,i,a,l,c;return oe(this,(function(s){switch(s.label){case 0:t(ue()),s.label=1;case 1:if(s.trys.push([1,3,,4]),!(null===e||void 0===e?void 0:e.brandId))throw new Error("brandId must not be empty.");return[4,(0,$.dS)(ee(Z({},e),{pageSize:V.S_}))];case 2:return r=s.sent(),(n=null===r||void 0===r?void 0:r.data)&&(o=(0,H.Fw)(n),i=o.filters,a=o.relevantFilters,l=(0,H.w9)(n.selectedFilters).enumFilters,t(de({filters:i,selectedFiltersSlugs:(null===n||void 0===n?void 0:n.selectedFiltersSlugs)||[],relevantFilters:a,selectedFilters:l}))),[3,4];case 3:return c=s.sent(),t(pe(c)),[3,4];case 4:return[2]}}))})),function(e){return t.apply(this,arguments)};var t},xe=function(e,t){return r=X((function(r){var n,o,i;return oe(this,(function(a){switch(a.label){case 0:r(ie.request()),a.label=1;case 1:if(a.trys.push([1,3,,4]),!(null===e||void 0===e?void 0:e.brandId))throw new Error("brandId must not be empty.");return[4,(0,$.dS)(ee(Z({},e),{pageSize:V.S_}))];case 2:return(null===(n=a.sent())||void 0===n?void 0:n.data)&&((o=(0,z.m)(Z({},n.data))).totalProducts>0&&(r((0,c.lk)(t)),r(ve(t))),r(ie.success(o))),[3,4];case 3:return i=a.sent(),r(ie.failure(i)),[3,4];case 4:return[2]}}))})),function(e){return r.apply(this,arguments)};var r},Le={applyFiltersBtnDisabled:!0,appliedFilters:{},appliedRangeFilters:{},appliedRelevantFilters:[],articles:[],ads:{articles:[],banners:[]},flashArticles:{loading:!0,items:{articles:[],scheduled:[]}},highlights:{items:[],loading:!0},categoriesPromotion:{selected:"",items:[],loading:!0},category:{name:"",slug:"",id:"",legacyId:"",hierarchicalLegacyIds:[],recommendedBlock:null,searchAssistantBlock:null},compareItems:[],comparePopover:{active:!1,message:""},assistantData:null,currentPage:0,filters:{},relevantFilters:[],isApplyingFilters:!1,isSorting:!1,loading:!0,loadingFilters:!0,pageSize:40,selectedFilters:{},selectedRangeFilters:{},selectedFiltersSlugs:[],seoFilters:{},showFiltersNav:!1,sort:"relevance",sortingKeys:[],totalPages:1,totalProducts:0,lastURLWithResults:"",queryId:"",failed:!1,valoration:{sku:0,productId:"",addedDate:"",brand:"",category:"",categoryClean:"",categoryId:"",categoryMain:"",description:"",id:0,imageUrl:"",imageUrlThumb:"",isOnSale:"",marketplace:"",marketable:!1,otherVendors:"",parentId:0,price:0,originalPrice:0,ratingAvg:0,ratingCount:0,reconditioned:"",sinSo:"",stockShopMadrid:"",stockShopMurcia:"",stockWeb:"",totalDiscount:0,totalDiscountPercentage:0,type:"",yardSale:"",name:"",slug:"",image:"",ean:"",partNumber:"",deliveryDate:"",media:{totalMedias:0,totalPages:0,medias:[]},valoration:{totalValorationsWithText:0,totalComments:0,valorationAverage:0,rating:{1:0,2:0,3:0,4:0,5:0}},totalPages:0,valorations:[],offerId:""},scheduledArticles:[],articlesOutStock:[],search:{suggestions:[]}};function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:Le,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x:return Ge(Ne({},e),{ads:t.payload});case M:return Ge(Ne({},e),{assistantData:t.payload});case s:return Ge(Ne({},e),{loading:!0,loadingFilters:!0});case u:var r=Ne({},e),n=t.payload,o=n.articles,i=n.category,a=n.pageSize,l=n.totalPages,c=n.totalProducts,U=n.sort,N=n.sortingKeys,G=n.filters,H=n.relevantFilters,B=n.selectedFilters,W=n.selectedRangeFilters,q=n.selectedFiltersSlugs,z=n.currentPage,V=n.highlights,$=n.queryId;return Ne(Ge(Ne({},e),{articles:o,category:null!==i&&void 0!==i?i:r.category,isApplyingFilters:!1,isSorting:!1,pageSize:null!==a&&void 0!==a?a:r.pageSize,totalPages:null!==l&&void 0!==l?l:r.totalPages,totalProducts:null!==c&&void 0!==c?c:r.totalProducts,sort:null!==U&&void 0!==U?U:r.sort,sortingKeys:null!==N&&void 0!==N?N:r.sortingKeys,filters:null!==G&&void 0!==G?G:r.filters,relevantFilters:null!==H&&void 0!==H?H:r.relevantFilters,selectedFilters:null!==B&&void 0!==B?B:r.selectedFilters,selectedRangeFilters:null!==W&&void 0!==W?W:r.selectedRangeFilters,appliedFilters:null!==B&&void 0!==B?B:r.selectedFilters,appliedRelevantFilters:null!==H&&void 0!==H?H:r.relevantFilters,appliedRangeFilters:null!==W&&void 0!==W?W:r.selectedRangeFilters,selectedFiltersSlugs:null!==q&&void 0!==q?q:[],loading:!1,loadingFilters:!1,currentPage:z,queryId:$,failed:!1}),V&&{highlights:{items:V,loading:!1}});case p:return Ge(Ne({},e),{currentPage:++e.currentPage,articles:He(e.articles).concat(He(t.payload.articles)),loading:!1,loadingFilters:!1});case f:return Ge(Ne({},e),{currentPage:Le.currentPage});case F:return Ge(Ne({},e),{selectedFilters:{},selectedFiltersSlugs:[],selectedRangeFilters:{}});case I:return Ge(Ne({},e),{selectedRangeFilters:{}});case g:return Ge(Ne({},e),{selectedFilters:t.payload});case v:return Ge(Ne({},e),{selectedFilters:(0,K.h$)(t.payload.key,t.payload.value,e.selectedFilters),selectedFiltersSlugs:e.selectedFiltersSlugs.includes(t.payload.slug)?e.selectedFiltersSlugs.filter((function(e){return e!==t.payload.slug})):He(e.selectedFiltersSlugs).concat([t.payload.slug])});case m:return Ge(Ne({},e),{selectedRangeFilters:(0,K.hw)(t.payload.key,t.payload.selectedMax,t.payload.selectedMin,e.selectedRangeFilters)});case y:return Ge(Ne({},e),{applyFiltersBtnDisabled:!0,loadingFilters:!0});case h:var Q,Y=t.payload,X=Y.selectedTag,J=Y.isHierarchyTypeA;return Ge(Ne({},e),{categoriesPromotion:{selected:X,isHierarchyTypeA:J,items:null===(Q=e.categoriesPromotion)||void 0===Q?void 0:Q.items,loading:!1},highlights:{items:e.highlights.items,loading:!0},loading:!0});case w:return Ge(Ne({},e),{applyFiltersBtnDisabled:!1,filters:t.payload.filters,loadingFilters:!1,selectedFilters:t.payload.selectedFilters,selectedFiltersSlugs:t.payload.selectedFiltersSlugs,relevantFilters:t.payload.relevantFilters});case O:var Z,ee,te,re,ne,oe,ie=Ne({},e),ae=t.payload,le=ae.articles,ce=ae.flashArticles,se=ae.highlights,ue=ae.category,de=ae.pageSize,pe=ae.totalPages,fe=ae.totalProducts,ge=ae.sort,ve=ae.sortingKeys,me=ae.filters,ye=ae.relevantFilters,he=ae.selectedFilters,be=ae.selectedFiltersSlugs,we=ae.selectedRangeFilters,Pe=ae.currentPage,Oe=ae.queryId,Se=ae.categoriesPromotion,Ee=ae.scheduledArticles,Fe=ae.articlesOutStock;return Ge(Ne({},e),{articles:le,flashArticles:{items:null!==ce&&void 0!==ce?ce:ie.flashArticles.items,loading:!1},highlights:{items:null!==se&&void 0!==se?se:ie.highlights.items,loading:!1},categoriesPromotion:{selected:null!==(ne=null===Se||void 0===Se?void 0:Se.selected)&&void 0!==ne?ne:null===(Z=ie.categoriesPromotion)||void 0===Z?void 0:Z.selected,isHierarchyTypeA:null!==(oe=null===Se||void 0===Se?void 0:Se.isHierarchyTypeA)&&void 0!==oe?oe:null===(ee=ie.categoriesPromotion)||void 0===ee?void 0:ee.isHierarchyTypeA,items:(null===Se||void 0===Se?void 0:Se.items)&&!!(null===Se||void 0===Se||null===(te=Se.items)||void 0===te?void 0:te.length)&&Se.items||(null===(re=ie.categoriesPromotion)||void 0===re?void 0:re.items),loading:!1},scheduledArticles:null!==Ee&&void 0!==Ee?Ee:ie.scheduledArticles,articlesOutStock:null!==Fe&&void 0!==Fe?Fe:ie.articlesOutStock,queryId:Oe,category:null!==ue&&void 0!==ue?ue:ie.category,isApplyingFilters:!1,isSorting:!1,pageSize:null!==de&&void 0!==de?de:ie.pageSize,totalPages:null!==pe&&void 0!==pe?pe:ie.totalPages,totalProducts:null!==fe&&void 0!==fe?fe:ie.totalProducts,sort:null!==ge&&void 0!==ge?ge:ie.sort,sortingKeys:null!==ve&&void 0!==ve?ve:ie.sortingKeys,seoFilters:null!==me&&void 0!==me?me:ie.filters,filters:null!==me&&void 0!==me?me:ie.filters,relevantFilters:null!==ye&&void 0!==ye?ye:ie.relevantFilters,selectedFilters:null!==he&&void 0!==he?he:ie.selectedFilters,selectedRangeFilters:null!==we&&void 0!==we?we:ie.selectedRangeFilters,appliedFilters:null!==he&&void 0!==he?he:ie.selectedFilters,appliedRelevantFilters:null!==ye&&void 0!==ye?ye:ie.relevantFilters,appliedRangeFilters:null!==we&&void 0!==we?we:ie.selectedRangeFilters,selectedFiltersSlugs:null!==be&&void 0!==be?be:[],loading:!1,loadingFilters:!1,currentPage:Pe,failed:!1});case P:var Ie=Ne({},e),Te=t.payload,Re=Te.articles,De=Te.category,Ce=Te.pageSize,_e=Te.totalPages,ke=Te.totalProducts,Ae=Te.sort,je=Te.sortingKeys,xe=Te.filters,Me=Te.relevantFilters,Ue=Te.selectedFilters,Be=Te.selectedFiltersSlugs,We=Te.selectedRangeFilters,qe=Te.currentPage,ze=Te.queryId;return Ge(Ne({},e),{articles:Re,queryId:ze,category:null!==De&&void 0!==De?De:Ie.category,isApplyingFilters:!1,isSorting:!1,pageSize:null!==Ce&&void 0!==Ce?Ce:Ie.pageSize,totalPages:null!==_e&&void 0!==_e?_e:Ie.totalPages,totalProducts:null!==ke&&void 0!==ke?ke:Ie.totalProducts,sort:null!==Ae&&void 0!==Ae?Ae:Ie.sort,sortingKeys:null!==je&&void 0!==je?je:Ie.sortingKeys,seoFilters:null!==xe&&void 0!==xe?xe:Ie.filters,filters:null!==xe&&void 0!==xe?xe:Ie.filters,relevantFilters:null!==Me&&void 0!==Me?Me:Ie.relevantFilters,selectedFilters:null!==Ue&&void 0!==Ue?Ue:Ie.selectedFilters,selectedRangeFilters:null!==We&&void 0!==We?We:Ie.selectedRangeFilters,appliedFilters:null!==Ue&&void 0!==Ue?Ue:Ie.selectedFilters,appliedRelevantFilters:null!==Me&&void 0!==Me?Me:Ie.relevantFilters,appliedRangeFilters:null!==We&&void 0!==We?We:Ie.selectedRangeFilters,selectedFiltersSlugs:null!==Be&&void 0!==Be?Be:[],loading:!1,loadingFilters:!1,currentPage:qe,failed:!1});case E:return Ge(Ne({},e),{sort:t.payload,isSorting:!0});case T:return Ge(Ne({},e),{selectedFilters:e.showFiltersNav?e.appliedFilters:e.selectedFilters,selectedRangeFilters:e.showFiltersNav?e.appliedRangeFilters:e.selectedRangeFilters,showFiltersNav:!e.showFiltersNav,relevantFilters:e.showFiltersNav?e.appliedRelevantFilters:e.relevantFilters});case R:return Ge(Ne({},e),{compareItems:t.payload});case D:var Ve=t.payload,$e=Ve.checked,Ke=Ve.item,Qe=e.compareItems;return Ge(Ne({},e),{compareItems:$e?He(Qe).concat([Ke]):Qe.filter((function(e){return e.id!==Ke.id}))});case C:return Ge(Ne({},e),{comparePopover:t.payload});case _:return Ge(Ne({},e),{isApplyingFilters:!e.isApplyingFilters});case k:return Ge(Ne({},e),{lastURLWithResults:t.payload});case d:case S:return Ge(Ne({},e),{loading:!1,failed:!0});case A:return Ge(Ne({},e),{valoration:t.payload});case j:return Ge(Ne({},e),{valoration:Ge(Ne({},e.valoration),{media:t.payload})});case b:var Ye,Xe,Je,Ze,et,tt,rt=Ne({},e),nt=t.payload.categoriesPromotion;return Ge(Ne({},e),{categoriesPromotion:{selected:null!==(et=null===nt||void 0===nt?void 0:nt.selected)&&void 0!==et?et:null===(Ye=rt.categoriesPromotion)||void 0===Ye?void 0:Ye.selected,isHierarchyTypeA:null!==(tt=null===nt||void 0===nt?void 0:nt.isHierarchyTypeA)&&void 0!==tt?tt:null===(Xe=rt.categoriesPromotion)||void 0===Xe?void 0:Xe.isHierarchyTypeA,items:(null===nt||void 0===nt?void 0:nt.items)&&!!(null===nt||void 0===nt||null===(Je=nt.items)||void 0===Je?void 0:Je.length)&&nt.items||(null===(Ze=rt.categoriesPromotion)||void 0===Ze?void 0:Ze.items),loading:!1}});case L:return Ge(Ne({},e),{search:Ge(Ne({},e.search),{suggestions:t.payload})});default:return e}};var We=r(20573),qe=r(55285);function ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ve(e){for(var t=1;t0&&{filters:l}),{rangeFilters:a.appliedRangeFilters}),c&&{priorityCampaign:c})}))},Tt=(0,We.P1)(Ke,(function(e){return e.isApplyingFilters})),Rt=(0,We.P1)(Ke,(function(e){return e.isSorting})),Dt=(0,We.P1)(Ke,(function(e){return e.sort})),Ct=((0,We.P1)(Ke,(function(e){return e.currentPage})),(0,We.P1)(Ke,(function(e){return e.failed}))),_t=(0,We.P1)(Ke,(function(e){return e.showFiltersNav})),kt=((0,We.P1)(Ke,(function(e){return e.valoration})),(0,We.P1)(Ke,(function(e){return e.ads}))),At=(0,We.P1)(Ke,(function(e){return e.scheduledArticles})),jt=(0,We.P1)(Ke,(function(e){return e.articlesOutStock})),xt=((0,We.P1)(Ke,(function(e){return e.CF_WORKER})),r(68572))},50705:(e,t,r)=>{r.d(t,{Bu:()=>F,HB:()=>A,Mi:()=>D,bW:()=>S,dS:()=>O,hM:()=>R,k9:()=>P,n2:()=>b,q6:()=>E,rW:()=>I,vp:()=>T,vt:()=>C,wA:()=>w});var n=r(49670),o=r(62812),i=r(68572),a=r(28489),l=r(68551),c=r(42962),s=r(29843),u=r(48946),d=r(8218),p=r(55285);function f(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function g(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,l,"next",e)}function l(e){f(i,n,o,a,l,"throw",e)}a(void 0)}))}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){for(var t=1;t0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]2&&void 0!==p[2]?p[2]:"",a=(0,c.zA)({availableFilters:t,selectedFilters:e.filters||{},selectedRangeFilters:e.rangeFilters||{},hasSearchQuery:!!e.query}),l=[],(null===(n=e.hierarchicalLegacyIds)||void 0===n?void 0:n.length)&&(null===(i=e.hierarchicalLegacyIds)||void 0===i?void 0:i.length)>0&&l.push(e.hierarchicalLegacyIds),e.campaignLegacyId&&l.push([s.Ei,e.campaignLegacyId]),Array.isArray(e.campaignTagHierarchy)&&e.campaignTagHierarchy.length>1&&a.push({campaignCategory:e.campaignTagHierarchy}),e.campaignLegacyTagHierarchy&&e.campaignLegacyTagHierarchy.length>0&&a.push({campaignCategoryId:e.campaignLegacyTagHierarchy}),u=e.categoryName||Array.isArray(e.campaignTagHierarchy)&&e.campaignTagHierarchy[0]||"string"===typeof e.campaignTagHierarchy&&e.campaignTagHierarchy||void 0,d={order:e.sort||s.md,categoryName:u,categoriesHierarchy:l,filters:a||[],channel:e.channel,searchTerm:e.query||null,customerId:e.userId,visitorId:e.cartId},[2,o.V0.fetch("/article-promo/",o.w$.POST,d,{headers:{Accept:"application/json","Content-Type":"application/json"}},r)]}))})),function(e,t){return y.apply(this,arguments)}),E=function(){var e=g((function(e,t){return h(this,(function(r){try{return[2,o.V0.fetch("/api-v1/show/article-detail/".concat(e),o.w$.GET,{},{headers:m({},t&&{"content-language":t})})]}catch(e){throw new a.pY({error:0,message:JSON.stringify(e)})}return[2]}))}));return function(t,r){return e.apply(this,arguments)}}(),F=function(e){var t=function(t){e.filters[t].forEach((function(e){r+="&".concat(t,"[]=").concat(e)}))},r="";for(var n in r+="channel=".concat(e.channel,"&page=").concat(e.page,"&pageSize=").concat(e.pageSize),e.sort&&(r+="&sort=".concat(e.sort)),e.filters)t(n);for(var a in e.rangeFilters){var l,c;r+=e.rangeFilters[a].min?"&".concat(a).concat(i.dS.FROM,"=").concat((null===(l=e.rangeFilters[a])||void 0===l?void 0:l.min)||""):"",r+=e.rangeFilters[a].max?"&".concat(a).concat(i.dS.TO,"=").concat((null===(c=e.rangeFilters[a])||void 0===c?void 0:c.max)||""):""}return o.V0.fetch("/api-v1/products/outlet?".concat(r),o.w$.GET)},I=function(){var e=g((function(e){return h(this,(function(t){try{return[2,o.V0.fetch("/api-v1/products/basic-info/".concat(e),o.w$.GET)]}catch(e){throw new a.pY({error:0,message:JSON.stringify(e)})}return[2]}))}));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=g((function(e,t){var r;return h(this,(function(n){return r=(0,p.mr)(t),[2,o.V0.fetch("/api-v1/products/comparision/brands/".concat(e||""),o.w$.GET,{},{headers:m({},t&&{"content-language":r})})]}))}));return function(t,r){return e.apply(this,arguments)}}(),R=function(){var e=g((function(e,t,r){var n;return h(this,(function(i){return n=(0,p.mr)(r),[2,o.V0.fetch("/api-v1/products/comparision/models/".concat(e,"/").concat(t),o.w$.GET,{},{headers:m({},r&&{"content-language":n})})]}))}));return function(t,r,n){return e.apply(this,arguments)}}(),D=function(){var e=g((function(e,t,r){var n,i;return h(this,(function(a){return n=(0,p.mr)(r),i={ids:e,categoryId:t,channel:r&&n||l.Ee.es},[2,o.V0.fetch("/api-v1/products/products-comparation",o.w$.POST,i,{headers:m({Accept:"application/json","Content-Type":"application/json"},r&&{"content-language":n})})]}))}));return function(t,r,n){return e.apply(this,arguments)}}(),C=function(){var e=g((function(e,t,r){var n;return h(this,(function(i){return n=(0,p.mr)(r),[2,o.V0.fetch("/api-v1/products/comparision/suggestions/".concat(e||"","?limit=").concat(t||""),o.w$.GET,{},{headers:m({},r&&{"content-language":n})})]}))}));return function(t,r,n){return e.apply(this,arguments)}}(),_=function(){return new Promise((function(e){setTimeout((function(){e({data:""})}),s.Xi)}))},k=function(){var e=g((function(e,t){var r,o,i,a,l=arguments;return h(this,(function(s){switch(s.label){case 0:r=l.length>2&&void 0!==l[2]?l[2]:"0",o=l.length>3&&void 0!==l[3]?l[3]:null,i="276c066ee84f4ee1b6979a1033897e24",s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.race([_(),n.s.fetch("https://experience.pccomponentes.com/rest/v1/delivery","?client=pccomponentes&sessionId=".concat(i),n.w.POST,{context:{channel:"web",address:{url:"https://www.pccomponentes.com"}},property:{token:"06c0f25c-bbd7-1918-706c-76631b0ff45f"},id:void 0,execute:{mboxes:[{parameters:m({"entity.id":r},o&&{pageCategory:o},t&&{promotionId:t}),index:1,name:e}]}})])];case 2:return a=s.sent(),[2,(null===a||void 0===a?void 0:a.data)&&(0,c.E)(null===a||void 0===a?void 0:a.data)&&a.data.execute.mboxes[0].options[0].content||""];case 3:return s.sent(),[2,""];case 4:return[2]}}))}));return function(t,r){return e.apply(this,arguments)}}(),A=function(){var e=g((function(e){var t,r;return h(this,(function(n){switch(n.label){case 0:return"string"===typeof(t=!(0,d.y)()&&(0,u.Z)("".concat(s.x$).concat(e))||void 0)?[2,t]:[4,k(s.I7)];case 1:return r=n.sent(),!(0,d.y)()&&(0,u.z)("".concat(s.x$).concat(e),r,s.U5),[2,r]}}))}));return function(t){return e.apply(this,arguments)}}()},68572:(e,t,r)=>{var n,o,i,a,l,c,s;r.d(t,{WN:()=>o,dS:()=>l,h2:()=>a,iv:()=>i,l6:()=>c,mk:()=>n,w1:()=>s,ws:()=>u}),function(e){e.color="COLOR",e.text="TEXT"}(n||(n={})),function(e){e.NEW="isNew",e.FREE_SHIPPING="freeShipping",e.DISCOUNT_CART="discountInCart",e.SPONSORED="sponsored",e.DIGITAL="digital",e.REFURBISHED="refurbished",e.PROMO="promotion",e.PCCHOICE="pcChoice",e.REFURBISHED_FUNCTIONAL="refurbished-functional",e.REFURBISHED_LIKE_NEW="refurbished-like-new",e.REFURBISHED_SEMI_NEW="refurbished-semi-new",e.RECOMMENDATION="pcRecommended",e.CLEARANCE="clearance"}(o||(o={})),function(e){e[e.REFURBISHED=o.REFURBISHED]="REFURBISHED",e[e.REFURBISHED_FUNCTIONAL=o.REFURBISHED_FUNCTIONAL]="REFURBISHED_FUNCTIONAL",e[e.REFURBISHED_LIKE_NEW=o.REFURBISHED_LIKE_NEW]="REFURBISHED_LIKE_NEW",e[e.REFURBISHED_SEMI_NEW=o.REFURBISHED_SEMI_NEW]="REFURBISHED_SEMI_NEW"}(i||(i={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(a||(a={})),function(e){e.TO="_to",e.FROM="_from"}(l||(l={})),function(e){e.BRAND="brands",e.FAMILY="families",e.CATEGORY="categories",e.TAG="tag",e.SORT="sort",e.PAGE="page"}(c||(c={})),function(e){e.BRAND="tm-",e.SORT="or-",e.FAMILY="fm-",e.FILTER_GROUP="fg_",e.FILTER_GROUP_NAME="filter_group_",e.SELLER="seller-",e.SELLER_FILTER_NAME="seller_type",e.SELLER_VALUE="_seller"}(s||(s={}));var u="ad sponsored"},42962:(e,t,r)=>{r.d(t,{DA:()=>h,E:()=>T,Jx:()=>y,K5:()=>m,O7:()=>O,RU:()=>p,VJ:()=>I,Z8:()=>C,fD:()=>b,gG:()=>f,h$:()=>g,hw:()=>v,iD:()=>P,lB:()=>w,x9:()=>D,zA:()=>R});var n=r(68572),o=r(29843),i=r(16475),a=r(10034);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]&&arguments[1],r={};return Object.keys(e).forEach((function(o){if(!Array.isArray(e)){var i="";o.endsWith(n.dS.FROM)&&(i=o.slice(0,-5)),o.endsWith(n.dS.TO)&&(i=o.slice(0,-3)),(!t&&"price"===i||"price"===o)&&(i="offer_promotional_price"),!o.endsWith(n.dS.FROM)&&!o.endsWith(n.dS.TO)||r[i]||(r[i]={min:void 0,max:void 0}),o.endsWith(n.dS.FROM)?r[i].min=Number(e[o]):o.endsWith(n.dS.TO)&&(r[i].max=Number(e[o]))}})),r},f=function(e){return Array.isArray(e)&&e.every((function(e){return"string"===typeof e}))},g=function(e,t,r){var n=r[e]||[],o=n.some((function(e){return e===t})),i=u(s({},r),c({},e,o?n.filter((function(e){return e!==t})):d(n).concat([t])));return Object.keys(i).reduce((function(e,t){return s({},e,i[t].length>0&&c({},t,i[t]))}),{})},v=function(e,t,r,n,o){return n[e]={min:r,max:t,code:o},n},m=function(e){var t={initialStock:0,stock:0,hideStockBar:!0};if((null===e||void 0===e?void 0:e.price.price)!==(null===e||void 0===e?void 0:e.originalPrice.price)){var r=0,n=0;null===e||void 0===e||e.promotions.forEach((function(e){var t,o;"special-day"!==e.type&&"black-friday"!==e.type||(r=(null===(t=e.data)||void 0===t?void 0:t.stock)||0,n=(null===(o=e.data)||void 0===o?void 0:o.initialStock)||0)})),t.initialStock=n,t.stock=r,t.hideStockBar=!(n>0)&&t.hideStockBar}return t},y=function(e){return Object.keys(o.eM).reduce((function(t,r){return u(s({},t),c({},r,u(s({},o.eM[r]),{path:"".concat(o.nQ,"/w-").concat(o.eM[r].width,"-").concat(o.eM[r].height,"/").concat(e)})))}),{})},h=function(e,t){return[50*Math.floor(e/50),50*Math.ceil(t/50)].join("-")},b=function(e){return o.Bx===e},w=function(e){var t,r=e.campaignName,n=e.categoriesCampaign,o=r;if(!(null===n||void 0===n?void 0:n.selected))return o;var i=n.items.find((function(e){return e.tagId===n.selected}));return i&&""!==i.slug?[r,(null===(t=i.name)||void 0===t?void 0:t.trim())||""]:o},P=function(e){var t=e.campaignLegacyId,r=e.categoriesCampaign;if(t&&(null===r||void 0===r?void 0:r.selected)){var n=r.items.find((function(e){return e.tagId===r.selected}));if(n&&!(n&&n.slug&&[o.Bx,o.wL].includes(n.slug))&&""!==n.slug){var i=null,a=n.imageUrl.split("custom-tag/")||[];if(2===a.length&&(i=a[1].split("/")[0]),i)return["".concat(t),"".concat(i)]}}},O=function(e){var t=!e.campaignTag&&(!e.filters||e.filters&&!Object.keys(e.filters).length),r=o.sb!==(null===e||void 0===e?void 0:e.campaignTag)&&(null===e||void 0===e?void 0:e.campaignTag)||void 0;return(0,i.Z)(S("campaignTag",r),S("sort",null===e||void 0===e?void 0:e.sort),S("productIds",null===e||void 0===e?void 0:e.productIds),S("sortedProductIds",null===e||void 0===e?void 0:e.sortedProductIds),S("channel",null===e||void 0===e?void 0:e.channel),S("page",null===e||void 0===e?void 0:e.page.toString()),S("pageSize",null===e||void 0===e?void 0:e.pageSize.toString()),S("includeTags",Boolean(null===e||void 0===e?void 0:e.includeTags).toString()),S("includeFlash",t.toString()),S("includeHighlights",Boolean(null===e||void 0===e?void 0:e.includeHighlights).toString()),E(null===e||void 0===e?void 0:e.filters),F(null===e||void 0===e?void 0:e.rangeFilters))("")},S=function(e,t){return function(r){return t?"".concat(r,"&").concat(e,"=").concat(t):r}},E=function(e){return function(t){var r;return e&&Object.keys(e).length?"".concat(t).concat(null===(r=Object.keys(e))||void 0===r?void 0:r.reduce((function(t,r){return"".concat(t).concat(e[r].map((function(e){return"&".concat(r,"[]=").concat(e)})).join(""))}),"")):t}},F=function(e){return function(t){var r;return e&&Object.keys(e).length?"".concat(t).concat(null===(r=Object.keys(e))||void 0===r?void 0:r.reduce((function(t,r){var o=e[r].min?"&".concat(r).concat(n.dS.FROM,"=").concat(e[r].min||""):"",i=e[r].max?"&".concat(r).concat(n.dS.TO,"=").concat(e[r].max||""):"";return"".concat(t).concat(o).concat(i)}),"")):t}},I=function(e){var t=e.campaignTag,r=e.filters,n=e.rangeFilters,i=e.sort;return t||r&&Object.keys(r).length||n&&Object.keys(n).length||!!i&&o.md!==i},T=function(e){return"object"===typeof e&&!!(null===e||void 0===e?void 0:e.execute)},R=function(e){var t=e.availableFilters,r=e.selectedFilters,n=e.selectedRangeFilters,i=e.hasSearchQuery,a=Object.keys(r).reduce((function(e,n){var a,l,s,u,p;if(/^super_family_/.test(n)||/^family_id/.test(n)){var f,g,v;if(!t[n])return e;var m=((null===(g=t[n])||void 0===g||null===(v=g.values)||void 0===v?void 0:v.filter((function(e){return r[n].includes(e.id)})))||[]).reduce((function(e,t){return d(e).concat([{category:t.name},{categoryId:t.legacyId||o.ez}])}),[]);return(f=e).push.apply(f,d(m)),e}if(i){var y,h,b;if(n===o.ju)(h=e).push.apply(h,d(r[n].map((function(e){return{categoryId:e}}))));if(n.startsWith(o.uy))(b=e).push.apply(b,d(r[n].map((function(e){return c({},n.replace(o.uy,""),e)}))));if(n===o.X8&&(null===(y=t[n])||void 0===y?void 0:y.name)){var w,P,O=(null===(P=t[n].values)||void 0===P?void 0:P.filter((function(e){return r[n].find((function(t){return t===e.id}))})))||[],S=t[n].name;(w=e).push.apply(w,d(O.map((function(e){return c({},S,e.name)}))))}return e}var E=(null===(l=t[n])||void 0===l||null===(s=l.values)||void 0===s?void 0:s.filter((function(e){return r[n].find((function(t){return t===e.id}))})))||[],F=n===o.iM?o.cg:(null===(u=t[n])||void 0===u?void 0:u.name)||o.ez;(a=e).push.apply(a,d(E.map((function(e){return c({},F,e.name)}))));var I,T=n===o.iM?null:(null===(p=t[n])||void 0===p?void 0:p.legacyId)||o.ez;T&&(I=e).push.apply(I,d(E.map((function(e){return c({},T,e.legacyId||o.ez)}))));return e}),[]),l=Object.keys(r).reduce((function(e,n){var a,l;if(/^enum_attribute_/.test(n)&&(null===(a=t[n])||void 0===a?void 0:a.legacyId)){var s,u,p,f=t[n].legacyId||"",g=(null===(u=t[n])||void 0===u||null===(p=u.values)||void 0===p?void 0:p.filter((function(e){return r[n].find((function(t){return t===e.id}))})))||[];(s=e).push.apply(s,d(g.map((function(e){return c({},f,e.legacyId||o.ez)}))))}i&&n.startsWith(o.uy)&&(l=e).push.apply(l,d(r[n].map((function(e){return c({},n.replace(o.uy,""),e)}))));return e}),[]),s=Object.keys(n).reduce((function(e,r){var i,a=r===o.ah||r===o.wA?o.wA:null===(i=t[r])||void 0===i?void 0:i.name;return a?(e.push(c({},a,n[r])),e):e}),[]);return d(a).concat(d(l.length>0&&[{ftags:l}]||[]),d(s))},D=function(){if("undefined"===typeof window)return null;var e="ad_uniq_ses",t=window.localStorage.getItem(e);if(t)return t;var r=window.btoa((0,a.z)(32));return window.localStorage.setItem(e,r),r},C=function(e){return e.reduce((function(e,t){var r;return"normal"!==(null!==(r=o.N6[t])&&void 0!==r?r:"normal")?o.N6[t]:e}),"normal")}}}]); //# sourceMappingURL=main-2302b1e6.js.map