"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[83338],{57436:(e,n,t)=>{t.d(n,{D:()=>a,EL:()=>o,F_:()=>c,P3:()=>i,ar:()=>r,tQ:()=>d});t(66992),t(41539),t(70189),t(78783),t(33948);var r="cross-sell: otros usuarios tambien compraron - adobe target",o={id:void 0,name:void 0,ean:void 0,part_number:void 0,brand:void 0,category:void 0,main_category:void 0,main_category_clean:void 0,variant:void 0,quantity:void 0,price:void 0,position:void 0,stock_web:void 0,parent_id:void 0,type:void 0,marketplace:void 0,main_category_id:void 0,promotion_ids:void 0,is_on_sale:void 0,stock_shop:[{murcia:"no"},{madrid:"no"}],financing:void 0,yard_sale:void 0,reconditioned:void 0,marketplaces:[{id:"0",name:"PcComponentes",offer:{id:"0",uuid:""},price:"0",delivery:""}],other_vendors:void 0,img_url:void 0,img_url_thumb:void 0,rating_avg:void 0,rating_count:void 0,super_family:void 0,super_family_id:void 0,description:void 0,original_price:void 0,added_date:void 0,url:void 0,total_discount:void 0,total_discount_percent:void 0,value:void 0},i={id:void 0,name:void 0,ean:void 0,part_number:void 0,brand:"PcComponentes.com",category:void 0,main_category:"Varios",main_category_clean:"Varios",variant:void 0,quantity:void 0,price:void 0,position:void 0,stock_web:"1",parent_id:void 0,type:"normal",marketplace:"PcComponentes",main_category_id:void 0,promotion_ids:void 0,is_on_sale:"no",stock_shop:[{murcia:"no"},{madrid:"no"}],financing:void 0,yard_sale:"no",reconditioned:"no",marketplaces:[{id:"0",name:"PcComponentes",offer:{id:"0",uuid:""},price:"0",delivery:""}],other_vendors:"no",img_url:void 0,img_url_thumb:void 0,rating_avg:void 0,rating_count:void 0,super_family:void 0,super_family_id:void 0,description:void 0,original_price:void 0,added_date:void 0,url:void 0,total_discount:void 0,total_discount_percent:void 0,value:void 0},a=["10642805","10642809","10642815"],c=new Set([19,1148]),d=new Set([632,5166])},60390:(e,n,t)=>{t.d(n,{M:()=>o,V:()=>i});t(68309);var r=t(57436),o=function(e,n,t){return{"data-product-list":String(t)||void 0,"data-product-stock-web":e.stock||void 0,"data-product-price":e.originalPrice||void 0,"data-product-category":e.familyName||void 0,"data-product-brand":e.brandName||void 0,"data-product-name":e.name||void 0,"data-product-id":e.id||void 0,"data-product-position":n,"data-product-total-discount":e.discount||void 0}},i=function(e,n){return{"data-product-list":r.ar,"data-product-stock-web":e.stock||void 0,"data-product-price":e.originalPrice||void 0,"data-product-category":e.familyName||void 0,"data-product-brand":e.brandName||void 0,"data-product-name":e.name||void 0,"data-product-position":n||void 0,"data-product-id":e.id||void 0,"data-product-quantity":1,"data-product-total-discount":e.discount||void 0,"data-product-origin":"cross-sell","data-eec-value":"cart-cross-selling","data-eec-action":"add_to_cart_v2"}}},29748:(e,n,t)=>{t.d(n,{Il:()=>g,M4:()=>p,im:()=>h,mn:()=>v,xv:()=>m});var r,o,i,a,c,d=t(30168),s=t(51062),l=t(71893),u=t(93601),p=l.ZP.span(r||(r=(0,d.Z)(["\n display: none;\n ",";\n margin-bottom: ",";\n"])),s.g.body2Regular,(function(e){return e.theme.spacing.spacing01})),m=l.ZP.div(o||(o=(0,d.Z)(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n letter-spacing: ",";\n color: ",";\n white-space: nowrap;\n text-decoration: none;\n text-overflow: ellipsis;\n overflow: hidden;\n ",";\n"])),(function(e){return e.theme.typography.captionBold.weight}),(function(e){return e.theme.typography.captionRegular.size}),(function(e){return e.theme.typography.captionRegular.lineHeight}),(function(e){return e.theme.typography.captionRegular.letter}),(function(e){return e.theme.colors.black}),(function(e){var n=e.theme;return e.$link&&"\n text-decoration: underline;\n &&&:hover {\n color: ".concat(n.colors.brand.main,";\n text-decoration: underline;\n }\n ")})),v=l.ZP.div(i||(i=(0,d.Z)(["\n display: flex;\n gap: 0.5rem;\n flex-wrap: wrap;\n margin-bottom: ",";\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n letter-spacing: ",";\n color: ",";\n .variant__axis {\n ",";\n display: none;\n }\n align-items: center;\n"])),(function(e){return e.theme.spacing.spacing01}),(function(e){return e.theme.typography.captionBold.weight}),(function(e){return e.theme.typography.captionRegular.size}),(function(e){return e.theme.typography.captionRegular.lineHeight}),(function(e){return e.theme.typography.captionRegular.letter}),(function(e){return e.theme.colors.black}),s.g.body2Regular),h=l.ZP.div(a||(a=(0,d.Z)(["\n display: flex;\n gap: 0.25rem;\n flex-direction: column;\n margin-bottom: ",";\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n letter-spacing: ",";\n color: ",";\n white-space: nowrap;\n"])),(function(e){return e.theme.spacing.spacing01}),(function(e){return e.theme.typography.captionBold.weight}),(function(e){return e.theme.typography.captionRegular.size}),(function(e){return e.theme.typography.captionRegular.lineHeight}),(function(e){return e.theme.typography.captionRegular.letter}),(function(e){return e.theme.colors.black})),g=l.ZP.div(c||(c=(0,d.Z)(["\n display: inline-block;\n position: relative;\n width: 1rem;\n height: 1rem;\n border-radius: 50%;\n &:hover {\n transform: scale(1.2);\n }\n ",";\n border: 1px solid ",";\n"])),(function(e){var n=e.$color,t=e.theme;return u.Z.MULTICOLOR===n?"background-image: conic-gradient(from 180deg at 50% 50%, #FF0606 0deg, #FF6E06 59.25deg, #FFD706 123deg, #00CC14 186.75deg, #1D41FF 244.87deg, #FF06B9 303deg, #FF0606 360deg)":u.Z.TRANSPARENT===n?'&::after {\n content: "";\n position: absolute;\n border-top: 1px solid '.concat(t.colors.environment.percent40,";\n width: 0.938rem;\n top: 0.438rem;\n transform: rotate(126.87deg);\n transform-origin: 50% 0%;\n }"):"background-color: ".concat(n||"")}),(function(e){return e.theme.colors.environment.percent40}))},83338:(e,n,t)=>{t.r(n),t.d(n,{default:()=>We});var r=t(47941),o=t.n(r),i=t(82526),a=t.n(i),c=t(57327),d=t.n(c),s=t(38880),l=t.n(s),u=t(49337),p=t.n(u),m=t(33321),v=t.n(m),h=t(69070),g=t.n(h),f=t(93433),y=t(15861),_=t(4942),b=t(29439),x=t(64687),j=t.n(x),k=t(66992),N=t.n(k),I=t(41539),P=t.n(I),w=t(88674),C=t.n(w),O=t(78783),S=t.n(O),R=t(33948),E=t.n(R),A=t(92087),D=t.n(A),T=t(68309),Z=t.n(T),L=t(37268),F=t.n(L),B=t(32564),U=t.n(B),z=t(9653),M=t.n(z),W=t(93299),H=t.n(W),q=t(5212),G=t.n(q),V=t(89554),$=t.n(V),J=t(54747),K=t.n(J),X=t(92222),Y=t.n(X),Q=t(69600),ee=t.n(Q),ne=t(21249),te=t.n(ne),re=t(73210),oe=t.n(re),ie=t(63742),ae=t(42347),ce=t(55975),de=t(67294),se=t(28225),le=t(86706),ue=t(40684),pe=t(13428),me=t(98084),ve=t(93601),he=t(644),ge=t(21914),fe=t(73542),ye=t(77862),_e=t(4897),be=t(29748),xe=t(60390),je=t(44777),ke=t(47100),Ne=t(69119),Ie=t(21055),Pe=t(25271),we=t(13496),Ce=t(78578),Oe=t(92546),Se=t(95703),Re=t(3234),Ee=t(54952),Ae=t(18129),De=t(12049),Te=t(13010),Ze=t(85893);function Le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Fe(e){for(var n=1;n0&&window.localStorage.setItem("lastFamily",JSON.stringify(ue[ue.length-1].lastFamily)))}),[ue,null===A||void 0===A?void 0:A.id]);var Le=(0,Re.eJ)({isNew:(0,Te.zF)(o),isWinnerPcc:!!E,bestPriceSummary:z,price:s||d,recommendedPrice:U,originalPrice:d}),Me=ue.some((function(e){return e.id===i})),We=w===ve.e.BOMBS||w===ve.e.CAROUSEL,He=function(e){var n,t=null,r=(n={},(0,_.Z)(n,pe.WN.DIGITAL,pe.WN.DIGITAL),(0,_.Z)(n,pe.WN.REFURBISHED,pe.WN.REFURBISHED),n);return e.forEach((function(e){t=r[e]||"normal"})),t},qe=function(){var e=(0,y.Z)(j().mark((function e(n){var t;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),!q){e.next=4;break}return q(),e.abrupt("return");case 4:if(!Q.idCart){e.next=21;break}return e.prev=5,oe((0,ke.tdJ)(!0)),e.next=9,(0,Pe.X)(Q.idCart,Fe({idArticle:i,qty:"1"},!E&&F?{idOffer:F}:{}));case 9:if(!(t=e.sent)||!(t.inserted.length>0||t.updated.length>0)){e.next=13;break}return window.location.href=Se.Z.CART_SHOPPING_BASKET,e.abrupt("return");case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),(0,Ne.ZT)();case 18:window.scrollTo({top:0,behavior:"smooth"}),oe((0,ke.tdJ)(!1)),oe((0,ke.bIw)({text:"".concat(J("checkout.errors.impossibleToAddToCart")),type:"danger",hasIcon:!0}));case 21:case"end":return e.stop()}}),e,null,[[5,15]])})));return function(n){return e.apply(this,arguments)}}(),Ge=["product-card"].concat((0,f.Z)((null===o||void 0===o?void 0:o.some((function(e){return e===pe.WN.PCCHOICE})))&&["product-trending"]||[]),(0,f.Z)(!E&&["is-marketplace"]||[]));return(0,Ze.jsxs)(me.UK,{className:Ge.join(" "),cardType:w,onClick:function(){(0,he.W)(i,N,I)},onContextMenu:function(){(0,he.W)(i,N,I)},children:[(0,Ze.jsxs)("div",{children:[(0,Ze.jsxs)(me.Ij,{cardType:w,className:"product-card__img-container",children:[(0,Ze.jsxs)(me.S0,{children:[(0,Ze.jsx)(me.sW,{children:!!Le.discount&&(0,Ze.jsx)(me.YA,{className:"product-card__img-container-discount-badge",discount:Le.discount,expirationDate:B||""})}),H&&(0,Ze.jsx)(me.dA,{secondary:!0,onClick:function(e){e.preventDefault(),H()},children:(0,Ze.jsx)(me.Q9,{icon:"bin"})})]}),(0,Ze.jsx)(me.si,{cardType:w,children:(0,Ze.jsx)(me.Ei,{title:h,alt:h,src:g?a.medium.path:a.small.path,loading:"lazy"})}),o.length||T?(0,Ze.jsx)(me.Rz,{className:"product-card__img-container-labels",children:(0,Ze.jsx)(Be,{campaignStyle:Y,isInPriorityCampaign:T,amountDiscountCart:S||0,flags:o,typeListing:O})}):(0,Ze.jsx)(Ze.Fragment,{})]}),(0,Ze.jsxs)(me.LZ,{className:"product-card__info-container",children:[G&&(0,Ze.jsxs)(me.ml,{children:[(0,Ze.jsx)(ie.J,{icon:"interface_information"}),O===ye.IL.CONFIGURATOR?(0,Ze.jsx)(me.gn,{onClick:function(){return G(i,F)},children:J("product.card.details")}):(0,Ze.jsx)(ae.r,{onClick:function(){return G(i,F)},text:J("product.card.details")})]}),O===ye.IL.CONFIGURATOR?(0,Ze.jsx)(ae.r,Fe(Fe({href:(0,De.K)(ee,F?"".concat(m,"?offer=").concat(F):m),target:"_blank"},te),{},{children:(0,Ze.jsx)(me.Dx,{className:"product-card__title",title:h,children:h})})):(0,Ze.jsx)(me.Dx,{className:"product-card__title",title:h,children:h}),(0,Ze.jsx)(me.Y8,{className:"product-card__price-container",children:(0,Ze.jsx)(we.Y,{crossedOutPrice:Le.crossedOutPrice,crossedOutPriceType:Le.crossedOutPriceType===Ee.Sf.PVPR&&Ee.Sf.PVPR||void 0,price:Le.price})}),Le.crossedOutPriceType&&Le.crossedOutPriceType!==Ee.Sf.PVPR&&(0,Ze.jsx)(me.SN,{typo:"captionRegular",children:J("product.card.".concat(Le.crossedOutPriceType))}),0!==l&&l&&(0,Ze.jsx)(me.gs,{className:"product-card__rating-container",opinionAmount:u,rating:2*l,type:2}),O===ye.IL.CART_RECOMMENDER&&(0,Ze.jsx)(me.Zu,{className:"product-card__financiation-block-cart-recommender",children:(0,Ze.jsx)(Oe.l,{sellerName:p,id:i,recommendedPrice:U,brandName:C,promotionalPrice:s,originalPrice:d})}),(0,Ze.jsx)(me.Xj,{className:"product-card__delivery-container",children:(0,Ze.jsx)(Ce.B,{deliveryDateText:K})}),!!M&&(0,Ze.jsx)("div",{className:"product-card__additional-delivery-container",children:(0,Ze.jsx)(me.oz,{children:(0,Ze.jsx)("strong",{children:(0,Ze.jsx)(je.o,{domString:J(M)})})})}),p&&(0,Ze.jsxs)(me.U_,{className:"card-seller-name",children:[J("product.card.soldBy")," ",(0,Ze.jsx)(me.Zk,{children:p})]}),Number(null===D||void 0===D?void 0:D.length)>2?(0,Ze.jsx)(be.im,{children:J("product.variants.otherOptions")}):Number(null===D||void 0===D?void 0:D.length)>0&&(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsx)(be.M4,{className:"variant__available-in",children:"Disponible en:"}),null===D||void 0===D?void 0:D.map((function(e){return(0,Ze.jsxs)(be.mn,{children:[(0,Ze.jsx)("span",{className:"variant__axis",children:e.axis}),e.values.map((function(n){var t=n.name,r=n.slug,o=n.displayValue;return pe.mk.color===e.displayPattern?(0,Ze.jsx)(be.Il,{onClick:function(e){e.preventDefault(),location.href="/".concat(r)},$color:null===o||void 0===o?void 0:o.color},null===t||void 0===t?void 0:t.trim()):(0,Ze.jsx)(be.xv,{$link:!0,onClick:function(e){e.preventDefault(),location.href="/".concat(r)},className:"variant__text",children:t},null===t||void 0===t?void 0:t.trim())})),e.totalValues>3&&(0,Ze.jsx)("span",{className:"variant__more",children:"+".concat(e.totalValues-3)})]},e.axis)}))]}),k&&O!==ye.IL.BUTTERFLY&&(0,Ze.jsx)(me.tp,{children:(0,Ze.jsx)(ce.j,{checked:Me,onChange:function(e){var n=e.target.checked;oe((0,pe.lb)(re,n)),n&&setTimeout((function(){return oe((0,pe.A9)({active:!0,color:"success",message:J("categories.action.bar.compare.popover.productAdded")}))}))},label:J("categories.action.bar.compare.text"),htmlCheckboxId:"compare.".concat(i)})})]})]}),(0,Ze.jsxs)(me.Cp,{className:"product-card__price-n-availability-container",children:[(0,Ze.jsx)(me.jW,{className:"product-card__extended-block",hasButton:Number(v)>0,$marginTop:O===ye.IL.CART_RECOMMENDER||O===ye.IL.EDITING_WISHLIST||O===ye.IL.PUBLIC_WISHLIST?"0":void 0,children:(0,Ze.jsxs)(me.q$,{children:[!R&&Number(d)!==Number(s)&&s&&O===ye.IL.CAMPAIGNS&&(0,Ze.jsx)(Ue,{textFewUnits:J("product.stockBar.fewUnits"),textUnitsLeft:J("product.stockBar.unitsLeft",{units:Number(v)}),textOutOfStock:J("product.stockBar.outOfStock"),thresholdPercentage:ze.thresholdPercentage,unitsLeft:Number(v),unitsInPromotion:Number(c)}),We&&0!==Number(v)&&(0,Ze.jsx)(me.EN,{children:(0,Ze.jsx)(me.lo,{onClick:function(){V.push({event:ge.yR.EEC,event_data:{category:"enhanced ecommerce",action:"add to cart",label:i,value:void 0,"non-interaction":!1},ecommerce:{add:{actionField:{},products:[{id:i,name:h,brand:C||void 0,category:void 0,main_category:(null===A||void 0===A?void 0:A.slug)||void 0,main_category_clean:(null===A||void 0===A?void 0:A.name)||void 0,main_category_id:void 0,variant:void 0,quantity:1,price:"".concat(s||""),position:void 0,stock_web:Number(v)>0?1:0,parent_id:i,type:He(o),marketplace:E?"PcComponentes":void 0,promotion_ids:void 0,is_on_sale:"yes",stock_shop:[{murcia:"no"},{madrid:"no"}],financing:void 0,yard_sale:void 0,reconditioned:void 0,other_vendors:void 0,image_url:a.large.path||void 0,image_url_thumb:a.large.path,rating_avg:l||void 0,rating_count:u||void 0,description:void 0,original_price:"".concat(d),added_date:void 0,url:m,total_discount:s&&Math.round(100*(d-s+Number.EPSILON))/100||0,total_discount_percent:t||0,ean:void 0,part_number:void 0}]}}})},template:X,children:J("user.panel.order.buy")})}),We&&0===Number(v)&&(0,Ze.jsx)(me.oo,{children:(0,Ze.jsx)("span",{children:J("product.stockBar.outOfStock")})}),(O===ye.IL.CART_RECOMMENDER||O===ye.IL.EDITING_WISHLIST)&&ne&&"number"===typeof L&&(0,Ze.jsx)(me.pI,{children:(0,Ze.jsx)(me.a4,Fe(Fe({secondary:!0,fluid:!0,onClick:qe},(0,xe.V)(ne,L)),{},{children:J("checkout.shoppingBasket.add")}))})]})}),(0,Ze.jsx)(me.Dh,{className:"product-card__details-button",children:"Ver detalles"}),O===ye.IL.CONFIGURATOR&&(0,Ze.jsx)(me.pI,{children:(0,Ze.jsx)(me.a4,{secondary:!0,fluid:!0,onClick:function(e){e.preventDefault(),W&&W()},children:J("configurator.socket.select")})})]})]})};const We=Me},92546:(e,n,t)=>{t.d(n,{l:()=>h});var r,o=t(29439),i=t(67294),a=t(86706),c=t(7730),d=t(28225),s=t(53027),l=t(96403),u=t(69221),p=t(30168),m=t(71893).ZP.div(r||(r=(0,p.Z)(["\n margin-bottom: ",";\n"])),(function(e){return e.theme.spacing.spacing01})),v=t(85893),h=function(e){var n=e.brandName,t=e.originalPrice,r=e.promotionalPrice,p=e.recommendedPrice,h=e.id,g=e.sellerName,f=(0,d.$G)(),y=(0,o.Z)(f,1)[0],_=(0,a.v9)(l.Fc),b=r&&(r=r)?r:t,x=(0,s.t)(),j=x.getAplazameInstalmentsInfo,k=x.aplazameInstalmentsInfo;return(0,i.useEffect)((function(){_===u.Pp.COM&&"PcComponentes"===g&&"Apple"===n&&j(h,100*b)}),[n,_,j,h,b,g]),(0,v.jsx)(m,{children:(null===k||void 0===k?void 0:k.bestInstalment)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(c.Z,{typo:"captionRegular",children:[y("checkout.pricebox.financiation")," "]}),(0,v.jsxs)(c.Z,{typo:"body1Bold",children:[" ",k.bestInstalment,"€"]}),(0,v.jsxs)(c.Z,{typo:"captionRegular",children:["/",y("words.month")," "]})]})})}},53027:(e,n,t)=>{t.d(n,{t:()=>l});var r=t(29439),o=t(15861),i=t(64687),a=t.n(i),c=(t(57327),t(74916),t(15306),t(83710),t(41539),t(39714),t(67294)),d=(t(88674),function(){var e=(0,o.Z)(a().mark((function e(n){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/checkout/payments/aplazame/installmentsSimulator",{method:"POST",body:JSON.stringify(n),headers:{"content-type":"application/json"}});case 2:return t=e.sent,e.next=5,t.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),s=function(){var e=(0,o.Z)(a().mark((function e(n,t){var r,o,i,c,s,l,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={order:{articles:[{id:n,price:t}],currency:"EUR",total_amount:t}},e.next=3,d(r);case 3:if(o=e.sent){e.next=6;break}throw new Error("undefined response");case 6:if("choices"in o){e.next=8;break}throw new Error("choices is not defined");case 8:if(o.choices.length){e.next=10;break}throw new Error("empty choices");case 10:if(i=o.choices,c=0===i[0].instalments[0].annual_equivalent,s=i[0].instalments.filter((function(e){return 0===e.nominal_interest_rate})),l=s.length>0?s.pop():i[0].instalments.pop()){e.next=16;break}throw new Error("there is no instalments");case 16:return u=(l.amount/100).toString().replace(".",","),e.abrupt("return",{bestInstalment:u,isZeroInterest:c});case 18:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),l=function(){var e=(0,c.useState)(void 0),n=(0,r.Z)(e,2),t=n[0],i=n[1],d=(0,c.useCallback)(function(){var e=(0,o.Z)(a().mark((function e(n,t){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(n,"".concat(t));case 2:(r=e.sent)&&i({bestInstalment:r.bestInstalment,isZeroInterest:r.isZeroInterest});case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[]);return{getAplazameInstalmentsInfo:d,aplazameInstalmentsInfo:t}}}}]); //# sourceMappingURL=83338.js.map