1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5018],{55018:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g});var i=r(47758),l=r(79069),n=r(38345),a=r(24366),s=r(35772),o=r(18782),d=r(86435),c=r(484),x=r.n(c),p=r(90989),h=r(20721),f=r.n(h),m=r(66805),u=r(3934);let g=e=>{let{product:t,availabilities:r,dispatchAvailabilities:c}=e,{t:h,currency:g,isoLocale:b,locale:j}=(0,d.A)(),y=(0,p.useRouter)(),A=(0,a._$)(t);if(!A)return(0,i.jsx)(i.Fragment,{});let w=async e=>{await Promise.all(e.map(async e=>{if((0,a.R0)(e))return await (0,a.YJ)(c,e.productNumber)}))};if((0,u.useEffect)(()=>{A.sellables&&w(A.sellables)},[A]),void 0!==t.sellables.find(e=>{if(!0===e.discontinued||!0===e.stopSelling)return!1;let t=r["".concat(e.productNumber,"--A1")];return!!t&&t.localCount>0&&!0===t.orderable&&e}))return(0,i.jsx)(i.Fragment,{});let S=null==A?void 0:A.sellables.filter(e=>{let t={availabilities:r,product:e.productNumber,orderableIfNoStock:e.orderableIfNoStock,itemForm:e.itemForm,hasAvailability:e.hasAvailability};return(0,a.Y)(t)});if((null==S?void 0:S.length)===0)return(0,i.jsx)(i.Fragment,{});let k="";A.page&&A.page.routes&&A.page.routes.length>0&&(k=f()(A.page.routes).identifier);let v=(e=>{if(!e)return{href:"#",as:""};if((0,a.mN)()){let t=e.shopId||y.query.shopId;t||(t=m.constants.SHOP_ID);let r="/"===k[0]?k:"/".concat(k);return{href:"/[lang]/r/[shopId]/[product]/[identifier]",as:"/".concat(j,"/r/").concat(t).concat(r)}}let t=(0,a.o9)(j,k);return{href:"/[lang]/[product]/[identifier]",as:"/".concat(t)}})(A),C=(0,a.Yt)(A.images,"card",!1),P=t.replacedBy?"The item you are looking for has been discontinued and replaced with the following item":"The item you are looking for has been updated to a newer version";return(0,i.jsx)(l.A,{sx:{display:"flex",mb:1,width:"100%",justifyContent:"center"},children:(0,i.jsxs)(l.A,{sx:{maxWidth:"400px",width:"400px",display:"flex",flexDirection:"column",backgroundColor:"#fff"},children:[(0,i.jsxs)(l.A,{sx:{width:"100%",display:"flex",backgroundColor:"primary.main",color:"primary.contrastText",lineHeight:1.2,alignItems:"center",p:1.5,mb:"15px",position:"relative","&::after":{content:'"some content"',width:0,height:0,borderLeft:"15px solid transparent",borderRight:"15px solid transparent",borderTop:"15px solid white",borderTopColor:"primary.main",position:"absolute",bottom:"-15px",left:"80px"}},children:[(0,i.jsx)(o.A,{sx:{fontSize:"4rem",mr:1}}),h(P)]}),(0,i.jsxs)(l.A,{sx:{display:"flex",width:"100%"},children:[(0,i.jsx)(l.A,{sx:{width:"50%"},children:(0,i.jsx)(s.default,{image:C,alt:A.name,variant:"card",noStyles:!0})}),(0,i.jsxs)(l.A,{sx:{width:"50%",lineHeight:1.2,p:1,pl:0},children:[(0,i.jsx)(l.A,{sx:{fontWeight:"bold",pb:.5},children:A.name}),(0,i.jsx)(l.A,{children:A.ingress}),(e=>{let t=e.find(e=>!0===e.primary)||(0,a.o8)(e),r=t.salesPrice;(0,a.l4)()&&(r=(0,a.c9)(t.salesPrice,t.vat));let n=t.salesPrice<t.normalPrice;return(0,i.jsxs)(l.A,{sx:{mt:1.5,fontSize:"1rem"},children:[n&&(0,i.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,i.jsxs)(l.A,{sx:{textDecoration:"line-through"},children:[(0,a.l4)()&&h("Normal price")," ",(0,a.EX)(b,t.normalPrice)," ",g]}),(0,i.jsxs)(l.A,{sx:{fontSize:{xs:"1.1em",sm:"1.35em"},fontWeight:"bold",letterSpacing:"-1px",color:"productCard.priceSalePrice.text",backgroundColor:"productCard.priceSalePrice.background",padding:"0 0.35em 0 0.15em",fontStyle:"italic"},children:[(0,a.EX)(b,r)," ",g]}),(0,a.l4)()&&t.vat&&(0,i.jsxs)(l.A,{children:["(",(0,a.EX)(b,t.salesPrice)," ",g," ",h("With VAT {1}%",[t.vat])," )"]})]}),!n&&(0,i.jsxs)(l.A,{sx:{fontSize:{xs:"1.1em",sm:"1.35em"},fontWeight:"bold",letterSpacing:"-1px",backgroundColor:"#fff",padding:"0 0.15em"},children:[(0,a.EX)(b,r),"\xa0",g]})]})})(A.sellables)]})]}),(0,i.jsx)(l.A,{sx:{p:1,mb:2,display:"flex",justifyContent:"center",textAlign:"center","& > a":{minWidth:"80%"}},children:(0,i.jsx)(x(),{href:v.href,as:v.as,title:A.name,children:(0,i.jsx)(n.A,{variant:"contained",color:"primary",size:"large",sx:{width:"100%",textTransform:"capitalize"},children:h("read more")})})})]})})}}}]);
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.