1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2357],{66490:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pdp.md",function(){return r(87919)}])},69036:(e,t,r)=>{"use strict";r.d(t,{Be:()=>d,Cu:()=>u,Ok:()=>o});var i=r(48077),n=r(43049),a=r(70761),l=r(21093),s=r(82564);let d=(e,t)=>{let r=[...e.mediaDetails.medias];r[0]={...r[0],preload:!0};let i=null==t?void 0:t.pictures;return{medias:i?[...i,...r]:r,newProduct:e.mediaDetails.newProduct}},o=async e=>{let{shopIdentifier:t,path:r,domain:d,language:o,variantId:u,isGoogleShoppingCustomer:c,cartV2:p,optimizelyAb:v}=e;try{let{data:e}=await n.Gt.getProductDetails(d,t,r,o,u,c,p,void 0,v,{headers:{optimizely_ab:v}});return e}catch(e){if((0,i.F0)(e)){var f,h;if((null==(f=e.response)?void 0:f.status)===301){let r=new URLSearchParams(e.response.headers.location).get("path");if(r)return{redirect:"".concat((0,l.ei)(d,o)).concat(r,"/").concat(t)}}else if((0,s.kE)(null==(h=e.response)?void 0:h.status))return{redirect:(0,l.ei)(d,o)+r}}throw(0,a.vV)({error:e,action:"getProductDetails from explore-bff-api"}),e}},u=async e=>{let{siteId:t,shopIdentifier:r,customerId:i,isGoogleShoppingCustomer:l}=e;try{let{data:e}=await n.Gt.getAbd(t,r,i,l);return e}catch(e){throw(0,a.vV)({error:e,action:"getABD from explore-bff-api"}),e}}},82564:(e,t,r)=>{"use strict";r.d(t,{DM:()=>a,Dl:()=>n,K0:()=>p,NP:()=>h,Rg:()=>v,Tm:()=>c,Xy:()=>f,aL:()=>s,ae:()=>d,kE:()=>o,vl:()=>u});var i=r(58588);let n=e=>({shopIdentifier:"string"==typeof e.shopIdentifier?parseInt(e.shopIdentifier,10):void 0,language:"string"==typeof e.language?e.language:void 0,variantId:(e=>"string"==typeof e.variantid?e.variantid:"string"==typeof e.variantId?e.variantId:"string"==typeof e["*variantid"]?e["*variantid"].split("*")[0]:void 0)(e),domain:"string"==typeof e.domain?e.domain:"zooplus.de",activeVariant:"string"==typeof e.activeVariant?e.activeVariant:void 0}),a=(e,t)=>{let r=parseInt(t.split(".")[1]);return e.find(e=>e.variantId==r)},l=(e,t)=>
1!!(null==t?void 0:t.find(t=>t.variantId.toString()===e.split(".")[1])),s=(e,t)=>{let r=t[0];return"".concat(e,".").concat(r.variantId)},d=e=>{let t,{variantIdFromUrl:r,shopIdentifier:i,variantIdStoredInCookie:n,articleVariants:a,activeVariantFromUrl:s}=e,d=a[0],o=(e=>e.find(e=>e.offers.some(e=>e.available))||e[0])(a);return r&&l(r,a)?r:n&&(t="".concat(i),n.split(".")[0]===t)&&l(n,a)?n:s&&l(s,a)?s:d.offers.some(e=>e.available)?"".concat(i,".").concat(d.variantId):"".concat(i,".").concat(o.variantId)},o=e=>void 0!==e&&[400,404].includes(e),u=e=>{var t;if(!e)return;let r=null==e?void 0:e.discounts;return(null==r||null==(t=r.find(e=>e.type===i.CF.Autoshipment))?void 0:t.discountedPriceLabel)||void 0},c=e=>{var t;if(!e)return;let r=null==e?void 0:e.discounts;return(null==r||null==(t=r.find(e=>e.type===i.CF.Abd))?void 0:t.discountedPriceLabel)||void 0},p=e=>{if(e&&/\d/.test(e))return e},v=e=>{if(!e)return;let t=parseFloat(e.replace("%","").replace("-","").trim());return isNaN(t)?void 0:t},f=e=>{var t;return!!(null==(t=e.successor)?void 0:t.articleId)},h=e=>e.filter(e=>!0===e.supplementArticle)},87919:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>h,default:()=>f}),r(77344);var i=r(41131),n=r(99553),a=r(15069),l=r(5358),s=r(58082),d=r(45379),o=r(18826),u=r(77361),c=r(31190);let p=e=>"strong"===e.type||"emphasis"===e.type,v=(e,t)=>{var r;let i="start"===t?0:e.children.length-1,n=e.children[i];if((null==n?void 0:n.type)!=="text")return"";let[a]=null!=(r=n.value.match("start"===t?/^\s+/:/\s+$/))?r:[];return a?(n.value="start"===t?n.value.slice(a.length):n.value.slice(0,-a.length),n.value||e.children.splice(i,1),a):""};(0,u.l)().use(n.A,{fragment:!0}).use(l.A,s.j).use(a.A,{handlers:{a(e,t){var r,n;return String(null!=(n=null==(r=t.properties)?void 0:r.href)?n:"").trim()?i.Y.a(e,t):e.all(t)}}}).use(()=>e=>{let t=e=>{for(let r of e.children)"children"in r&&t(r);for(let t=e.children.length-1;t>=0;t-=1){let r=e.children[t];if(!p(r))continue;let i=v(r,"start"),n=v(r,"end"),a=[...i?[{type:"text",value:i}]:[],...r.children.length?[r]:[],...n?[{type:"text",value:n}]:[]];(1!==a.length||a[0]!==r)&&e.children.splice(t,1,...a)}};t(e)}).use(()=>e=>{(0,c.YR)(e,e=>{if(!("children"in e))return;let{children:t}=e;for(let e=t.length-1;e>0;e-=1){let r=t[e],i=t[e-1];"strong"===r.type&&"strong"===i.type?(i.children.push(...r.children),t.splice(e,1)):"emphasis"===r.type&&"emphasis"===i.type&&(i.children.push(...r.children),t.splice(e,1))}})}).use(d.A).use(o.A,{bullet:"-",emphasis:"_",handlers:{break:()=>"\n"}}),r(21093),r(69036),r(82564);let f=()=>null;var h=!0}},e=>{e.O(0,[5028,2593,8317,636,6593,8792],()=>e(e.s=66490)),_N_E=e.O()}]); 2//# sourceMappingURL=pdp.md-41ca2a6039a0728e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.