1import{a as Z}from"/build/_shared/chunk-GO7OFMF4.js";import{c as Y}from"/build/_shared/chunk-DSCYPPHT.js";import{a as o}from"/build/_shared/chunk-5QWNUWMG.js";import{b as X}from"/build/_shared/chunk-QRZPKHUZ.js";import{a as Q}from"/build/_shared/chunk-TGDXDXUC.js";import{a as O}from"/build/_shared/chunk-UDBCBQQO.js";import{a as s}from"/build/_shared/chunk-FD5H2VPE.js";import{a as r}from"/build/_shared/chunk-UXJUA2QE.js";import{a as K}from"/build/_shared/chunk-ZZB7OGT7.js";import{a as J}from"/build/_shared/chunk-RKA7QBAZ.js";import{a as V}from"/build/_shared/chunk-YUUKFOQM.js";import{a as W}from"/build/_shared/chunk-DEVQKMWM.js";import{a as q}from"/build/_shared/chunk-5OBEDPFR.js";import{a as it}from"/build/_shared/chunk-H6S7FWVP.js";import{d as n}from"/build/_shared/chunk-T36URGAI.js";var c=n(it());var a=n(q()),bt=({lineItem:t,containerClass:_})=>{var p,u,v,f,x,l,g,b,N,h,P,T,C,w,y,M,R,S,k,A,D,B,$,G,L,E,F,H;let{createResponsiveImageSrc:j}=Q(),e=(0,c.useContext)(W),{buildProductUrl:I}=J(),{translate:d}=V(),tt={mobile:[{width:100,breakpoint:s.sm}],desktop:[{width:150,breakpoint:s.md-1}]},at=(0,c.useMemo)(()=>{var U,z;return j({media:(z=(U=t==null?void 0:t.variant)==null?void 0:U.images)==null?void 0:z[0],widths:tt,breakpoints:s,aspectRatio:1.5})},[t.variant.images]);(p=t.channel)!=null||(t.channel={id:"DEBENHAMS",key:"DEBENHAMS"}),t.channel.name=Z(e.key,(u=t.variant.attributes)==null?void 0:u.collection,(v=t.channel)==null?void 0:v.name,e==null?void 0:e.defaultDeliveredBy);let i=((f=t.variant.attributes)==null?void 0:f.collection)||((x=t.variant.attributes)==null?void 0:x.brand),et=(l=t.variant.prices)!=null&&l.centAmount?{...t.variant.prices,wasPrice:t.variant.prices.wasPrice?{...t.variant.prices.wasPrice,centAmount:t.variant.prices.wasPrice.centAmount+(((g=t.customisationPrice)==null?void 0:g.centAmount)||0)}:void 0,centAmount:t.variant.prices.centAmount+(((b=t.customisationPrice)==null?void 0:b.centAmount)||0)}:void 0,rt=o(et||void 0,e==null?void 0:e.locale),m=t.pricePromise?o(t.pricePromise.price,e==null?void 0:e.locale).price:void 0;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:`${_||"flex flex-row gap-5 relative ml-10 pb-10"}`,children:[(0,a.jsx)("div",{className:"max-w-[100px] md:max-w-[200px]",children:(0,a.jsx)(K,{prefetch:"intent",to:`${I(t.productSlug)}?colour=${(N=t.variant.attributes)==null?void 0:N.colour}`,children:(0,a.jsx)("div",{className:"w-[100px] md:max-w-52 block",children:(0,a.jsx)(O,{alt:`Product Image: ${t.variant.sku}`,urlFormat:"product",src:at})})})}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"px-4 flex flex-col grow",children:[!((P=(h=e.theming)==null?void 0:h.global)!=null&&P.hideBrand)&&(0,a.jsx)(r,{className:`font-semibold text-l ${(w=(C=(T=e.theming)==null?void 0:T.global)==null?void 0:C.uppercase)!=null&&w.productTitles?"uppercase":""}`,children:i}),(0,a.jsxs)(r,{className:`test-l ${(R=(M=(y=e.theming)==null?void 0:y.global)==null?void 0:M.uppercase)!=null&&R.productTitles?"uppercase":""}`,children:[(A=(k=(S=e.theming)==null?void 0:S.global)==null?void 0:k.includeBrandInTitle)!=null&&A.enable&&i&&!((G=($=(B=(D=e.theming)==null?void 0:D.global)==null?void 0:B.includeBrandInTitle)==null?void 0:$.exceptions)!=null&&G.includes(i))?`${i} `:null,t.name]}),!t.isPremier&&!t.giftCard?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsx)(r,{className:"text-m",children:(L=t.variant.attributes)==null?void 0:L.size})," / ",(0,a.jsx)(r,{className:"text-m",children:(E=t.variant.attributes)==null?void 0:E.colourLabel})]})}):null,t.giftCard&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(r,{className:"text-sm font-bold",children:"Recipient Name "})}),(0,a.jsx)("div",{children:(0,a.jsx)(r,{className:"text-sm",children:t.giftCard.eGiftCardRecipientName})}),(0,a.jsx)("div",{children:(0,a.jsx)(r,{className:"text-sm font-bold",children:"Recipient email "})}),(0,a.jsx)("div",{children:(0,a.jsx)(r,{className:"text-sm",children:t.giftCard.eGiftCardRecipientEmail})}),(0,a.jsx)("div",{children:(0,a.jsx)(r,{className:"text-sm font-bold",children:"Message "})}),(0,a.jsx)("div",{children:(0,a.jsx)(r,{className:"text-sm",children:t.giftCard.eGiftCardMessage})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(r,{className:"text-sm",children:"Delivery Date: "}),(0,a.jsx)(r,{className:"text-sm font-semibold",children:t.giftCard.eGiftCardSendDate?Y(new Date(t.giftCard.eGiftCardSendDate),"do MMMM yyyy 'at' HH:mm"):"Now"})]})]}),(0,a.jsx)(X,{...rt,className:`text-xs md:text-m ${t.giftCard?"font-bold pt-3":""}
1`,priceSavingInline:!0,priceMatchPrice:m,priceMatchIconSize:m?{width:13,height:16}:void 0}),!!((F=t.customFields)!=null&&F.length)&&(0,a.jsx)(r,{className:"text-xs text-grey-4 font-light",children:(H=t.customisationPrice)!=null&&H.centAmount?d("cart.customisationInc",{price:o(t.customisationPrice,e==null?void 0:e.locale,d).price}):d("cart.customisationNoCost")})]})})]})})};export{bt as a};
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.