"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[21105],{7218:(e,n,t)=>{t.d(n,{$G:()=>u,S1:()=>c,ff:()=>a});t(47941),t(82526),t(57327),t(38880),t(89554),t(54747),t(49337),t(33321),t(69070);var r=t(64572);t(83710),t(41539),t(39714),t(21249);function i(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 o(e){for(var n=1;n{t.d(n,{Z:()=>f});var r,i=t(63742),o=t(7730),c=t(30168),a=(t(92222),t(71893).ZP.div(r||(r=(0,c.Z)(["\n display: flex;\n align-items: center;\n border-radius: ",";\n padding: ",";\n background: ",";\n svg {\n fill: ",";\n width: ",";\n height: ",";\n }\n span {\n color: ",";\n }\n"])),(function(e){var n=e.theme;return"0 ".concat(n.spacing.spacing0025," ").concat(n.spacing.spacing0025," 0")}),(function(e){var n=e.theme;return"".concat(n.spacing.spacing0025," ").concat(n.spacing.spacing005)}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.danger.main}),(function(e){return e.theme.spacing.spacing02}),(function(e){return e.theme.spacing.spacing02}),(function(e){return e.theme.colors.danger.main}))),u=t(96707),l=t(89719),s=t(85893);const f=function(e){var n=e.expirationDate,t=(0,u.a)(n),r=t.hours,c=t.minutes,f=t.seconds;return(0,s.jsx)(s.Fragment,{children:r+c+f>0&&(0,s.jsxs)(a,{children:[(0,s.jsx)(i.J,{icon:"alarm_clock"}),(0,s.jsxs)(o.Z,{typo:"captionBold",children:[(0,l.V)(r),":",(0,l.V)(c),":",(0,l.V)(f)]})]})})}},1898:(e,n,t)=>{t.d(n,{Z:()=>v});var r=t(7730),i=t(71893);function o(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function c(){var e=o(["\n color: ",";\n"]);return c=function(){return e},e}function a(){var e=o(["\n text-decoration: line-through;\n"]);return a=function(){return e},e}function u(){var e=o(["\n display: flex;\n flex-direction: ",";\n "," {\n margin-right: ",";\n }\n flex-wrap: wrap;\n"]);return u=function(){return e},e}function l(){var e=o(["\n margin-left: ",";\n"]);return l=function(){return e},e}var s=(0,i.ZP)(r.Z)(c(),(function(e){var n=e.theme;return e.isHighlighted?n.colors.danger.main:n.colors.black})),f=(0,i.ZP)(r.Z)(a()),p=i.ZP.div(u(),(function(e){return"vertical"===e.direction?"column":"row"}),s,(function(e){return e.theme.spacing.spacing01})),d=i.ZP.div(l(),(function(e){return e.theme.spacing.spacing01})),b=t(64960),g=t(67294);const v=function(e){var n=e.price,t=e.crossedOutPrice,r=e.direction,i=void 0===r?"horizontal":r,o=e.size,c=void 0===o?"body1":o,a=e.numberFormatLocale,u=void 0===a?{locale:"de-DE",currency:"EUR"}:a,l=e.discountBadge,v=new Intl.NumberFormat(u.locale,{style:"currency",currency:u.currency}),h=v.format(n),y=t?v.format(t):null;return g.createElement(p,{direction:i},g.createElement(s,{typo:"".concat(c,"Bold"),isHighlighted:Boolean(t)},h),!!t&&g.createElement(f,{typo:"".concat(c,"Regular")},y),!!l&&!!t&&g.createElement(d,null,g.createElement(b.Z,{discount:l})))}},70397:(e,n,t)=>{var r;t.d(n,{M:()=>r}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.ALERT=1]="ALERT"}(r||(r={}))},47841:(e,n,t)=>{t.d(n,{Mi:()=>b,NZ:()=>f,gd:()=>d,he:()=>m,rZ:()=>p});var r=t(60159),i=t(70397),o=t(41713);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);tMath.round(n)||u?"PriceBox.click.info":void 0,notAvailable:!r,crossedOutPrice:t&&t>Math.round(n)?{amount:t,type:"PVPR"}:i>n&&{amount:i,type:"PVP"}||void 0,lowestIn30Days:!t&&i>n&&o||void 0,discountBadge:c||void 0,expirationDate:a||void 0}},b=function(e){var n=e.financing,t=e.promotions,o=e.extraServices,c=e.insurances,a=e.isWinnerPCC,f=e.shippingCost,p=e.stock,d=e.articleType,b=e.trademarkId,I=e.familyId,j=e.installationService,S=e.deliveryDate,D=e.digitalData,x=e.showShopAvailability,k=e.showStockText,C=e.t,E=(0,r.YR)(C),A=s(g(o)).concat(s(j&&v(j,C)||[])),_=s(y(a,d,b,I,C)).concat(s(h(c)));return s((!!(null===n||void 0===n?void 0:n.length)||!!(null===t||void 0===t?void 0:t.length))&&[{id:"financingPromotions-list",label:C("productDetail.buyBox.financingAndPromotionsList.title"),triggers:s(w(n)).concat(s(P(C,t)))}]||[]).concat(s(!!A.length&&[{label:C("productDetail.buyBox.servicesList.title"),triggers:A,maxTriggers:2}]||[]),s(!!_.length&&[{label:C("productDetail.buyBox.warrantiesList.title"),triggers:_,maxTriggers:2}]||[]),[l(u({id:"delivery-list",label:"".concat(C("productDetail.buyBox.availabilityList.title")).concat(k?": ":"")},k?{subLabel:{text:p&&E.inStock||E.noExactDeliveryDate,type:p?i.M.SUCCESS:i.M.ALERT}}:{}),{triggers:[m({isWinnerPCC:a,articleType:d,deliveryDate:S,shippingCost:f,digitalData:D,t:C})].concat(s(x?[O(C)]:[]))})])},g=function(e){return(null===e||void 0===e?void 0:e.map((function(e){return{id:e.extraServiceArticleId.toString(),content:e.name,labelIcon:"+".concat(e.price,"€"),triggerIcon:"interface_information",eventClickInfoName:"ExtraService.click.info",eventCheckboxChangeName:"ExtraService.CheckboxChange",triggerWithRightIconOnly:!0}})))||[]},v=function(e,n){return[{id:e.installationServiceId,content:n("productDetail.buyBox.installationService.content"),triggerIcon:"interface_information",labelIcon:"desde ".concat(e.price,"€"),eventCheckboxChangeName:"ExtraService.CheckboxChange",eventClickInfoName:"InstallationService.click.info",triggerWithRightIconOnly:!0}]||0},h=function(e){return(null===e||void 0===e?void 0:e.map((function(e){return{id:e.insuranceId.toString(),content:e.insuranceName,labelIcon:"+".concat(e.price,"€"),triggerIcon:"interface_information",eventClickInfoName:"Insurance.click.info",eventCheckboxChangeName:"Insurance.CheckboxChange",triggerWithRightIconOnly:!0}})))||[]},y=function(e,n,t,i,o){return e&&r.GW.includes(n)&&!r.H3.BRANDS.includes(t)&&!r.H3.FAMILIES.includes(i)&&[{id:"0",content:o("productDetail.buyBox.servicesList.freeReplacement"),triggerIcon:"interface_information",labelIcon:o("productDetail.availabilityPanel.free"),leftIcon:"highlight",eventClickInfoName:"FreeReplacement.click.info",triggerWithRightIconOnly:!0}]||[]},m=function(e){var n=e.shippingCost,t=e.isWinnerPCC,r=e.articleType,i=e.deliveryDate,c=e.digitalData,a=e.t,u=t?"| ".concat(a("productDetail.delivery.refund"),": ").concat(a("productDetail.delivery.free"),""):"",l="".concat(0===n?"".concat(a("productDetail.delivery.free"),""):"".concat(a("productDetail.delivery.from")," ").concat(n,"€")),s=r===o.Iq.DIGITAL?a("productDetail.delivery.download"):r===o.Iq.DROP_SHIPPING&&t?"".concat(a("productDetail.delivery.dropShipping"),": ").concat(l):"".concat(a("productDetail.delivery.shipment"),": ").concat(l),f=(null===c||void 0===c?void 0:c.isAvailableImmediately)?a("productDetail.delivery.immediateAvailability"):(null===c||void 0===c?void 0:c.releaseDate)||"",p=r===o.Iq.DIGITAL&&c?f:"".concat(a("productDetail.delivery.receive")," ").concat(i),d="".concat(p,"");return{id:"delivery-trigger",content:"

".concat(s," ").concat(u,"
").concat(d,"

"),leftIcon:r===o.Iq.DIGITAL?"24_data_download":"shipping_truck",triggerIcon:"chevron_right",eventClickInfoName:"DeliveryAndRefund.click.info",triggerWithRightIconOnly:!1,big:!0,infoClass:"GTM-desplegableFicha-disponibilidad"}},O=function(e){return{id:"",content:e("productDetail.buyBox.showStoresAvailability"),triggerIcon:"chevron_right",leftIcon:"store",eventClickInfoName:"shopAvailability.click.info",big:!0,infoClass:"GTM-desplegableFicha-disponibilidadTienda"}},w=function(e){return(null===e||void 0===e?void 0:e.length)?e.map((function(e){return u({id:e.name,leftIcon:{src:e.iconImage.src,alt:e.iconImage.alt},content:e.name,big:!0},e.name.toLocaleLowerCase()!==o.xv.ONEY&&{triggerIcon:"chevron_right",eventClickInfoName:"Financing.click.info"})})):[]},P=function(e,n){if(!(null===n||void 0===n?void 0:n.length))return[];if(1===n.length){var t=n[0];return[{id:t.idPromotion.toString(),content:t.title,leftIcon:"24_reward_gift",triggerIcon:"chevron_right",eventClickInfoName:"Promotions.click.info",big:!0,infoClass:"GTM-desplegableFicha-promocion"}]}return[{id:"",content:"(".concat(n.length,") ").concat(e("productDetail.promotions.actives")),leftIcon:"shipping_truck",triggerIcon:"chevron_right",eventClickInfoName:"Promotions.click.info",big:!0,infoClass:"GTM-desplegableFicha-promocion"}]}},97210:(e,n,t)=>{t.r(n),t.d(n,{Breadcrumb:()=>O});var r=t(71893),i=t(67724);function o(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function c(){var e=o(["\n max-width: ",";\n margin: 0 auto;\n padding: "," 0 ",";\n padding-top: ",";\n"]);return c=function(){return e},e}function a(){var e=o(["\n &&& a {\n color: ",";\n }\n &&& svg {\n fill: ",";\n }\n "]);return a=function(){return e},e}function u(){var e=o(["\n overflow: auto;\n white-space: nowrap;\n margin: 0;\n\n ",";\n"]);return u=function(){return e},e}var l=r.ZP.div(c(),(function(e){return e.theme.layout.grid.width}),(function(e){return e.theme.spacing.spacing09}),(function(e){return e.theme.spacing.spacing01}),(function(e){return e.theme.spacing.spacing02})),s=(0,r.ZP)(i.a)(u(),(function(e){var n=e.$fontColor;return n&&(0,r.iv)(a(),n,n)})),f=t(86706),p=t(36027),d=t(74657),b=t(12219),g=t(67294);function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function h(){return h=Object.assign||function(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var O=function(e){var n=e.fontColor,t=e.breadcrumbs,r=m(e,["fontColor","breadcrumbs"]),i=(0,f.v9)(p.Mb),o=t||i||[],c=(0,f.v9)(d.oz),a=o.map((function(e){return y(function(e){for(var n=1;n{t.d(n,{p:()=>d});var r=t(67294),i=t(17051);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&i[i.length-1])&&(6===o[0]||2===o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?e.children.map((function(e){return p(e)})):[];return[e.user].concat(l(n.flat()))},d=function(e,n,t){var o=u((0,r.useState)([]),2),c=o[0],s=o[1],d=(0,r.useMemo)((function(){return e.map((function(e){return p(e)})).flat().reduce((function(e,n){return(null===n||void 0===n?void 0:n.id)&&!e.includes(n.id)?l(e).concat([n.id]):e}),[])}),[e]),b=(0,r.useMemo)((function(){return d.filter((function(e){return!c.includes(e)}))}),[c,d]);(0,r.useEffect)((function(){var e,t=(e=a((function(){var e,t;return f(this,(function(r){switch(r.label){case 0:return[4,(0,i.r)()];case 1:return e=r.sent(),t=e.data,e.ok&&t&&n(t),[2]}}))})),function(){return e.apply(this,arguments)});t()}),[]),(0,r.useEffect)((function(){if(0!==b.length){var e,n=(e=a((function(){var e,n;return f(this,(function(r){switch(r.label){case 0:return[4,(0,i.G)({idsUsers:b})];case 1:return e=r.sent(),n=e.data,e.ok&&n&&t(n,l(c).concat(l(b))),[2]}}))})),function(){return e.apply(this,arguments)});s((function(e){return l(e).concat(l(b))})),n()}}),[b])}},64960:(e,n,t)=>{t.d(n,{Z:()=>l});var r=t(71893),i=t(41810),o=t(85664);function c(){var e,n,t=(e=["\n height: fit-content;\n display: flex;\n align-items: center;\n padding: 0;\n border: ",";\n > span {\n margin: ",";\n }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return c=function(){return t},t}var a=(0,r.ZP)(o.C)(c(),(function(e){var n=e.theme;return"".concat(n.spacing.spacing0025," solid ").concat(n.colors.danger.main)}),(function(e){var n=e.theme;return"".concat(n.spacing.spacing0025," ").concat(n.spacing.spacing005)})),u=t(67294);const l=function(e){var n=e.discount,t=e.expirationDate,o=(0,r.Fg)();return u.createElement(u.Fragment,null,!!n&&n>0&&u.createElement(a,{bold:!0,bgColor:o.colors.danger.main,textColor:o.colors.white,isolated:!0},u.createElement("span",null," -",n,"%"),t&&u.createElement(i.Z,{expirationDate:t})))}},17051:(e,n,t)=>{t.d(n,{G:()=>l,r:()=>s});var r=t(58846),i=t(49670);function o(e,n,t,r,i,o,c){try{var a=e[o](c),u=a.value}catch(e){return void t(e)}a.done?n(u):Promise.resolve(u).then(r,i)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var c=e.apply(n,t);function a(e){o(c,r,i,a,u,"next",e)}function u(e){o(c,r,i,a,u,"throw",e)}a(void 0)}))}}var a,u=function(e,n){var t,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{t.d(n,{Iq:()=>P.Iq,xv:()=>P.xv,mo:()=>y,lR:()=>w,qA:()=>O,$9:()=>m});var r=t(91017),i=t(24702),o=t(94883),c=t(33945),a=t(57372),u=t(27585),l=function(e){return e.map((function(e){return{name:e.name,iconImage:{src:"https://cdn.pccomponentes.com".concat(e.icon),alt:e.name}}}))},s=t(80005);function f(e,n,t,r,i,o,c){try{var a=e[o](c),u=a.value}catch(e){return void t(e)}a.done?n(u):Promise.resolve(u).then(r,i)}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(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}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}var b=function(e,n){var t,r,i,o,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){c=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{t.d(n,{V:()=>r});var r=function(e){return e<10?"0".concat(e):String(e)}}}]); //# sourceMappingURL=21105.js.map