1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4746],{3473:(e,t,i)=>{i.d(t,{A:()=>m});var a=i(75213);i(60004);var n=i(44098),r=i(58229),l=i(97049),s=i(92436),o=i(63191),d=i.n(o);let c=e=>{let{url:t,title:i,description:l,rating:o,reviewer:c,postDate:u}=e,m=(0,n.u)(),h=(0,r.css)` 2 ${m.widgets.Cart?.trustContainer} 3 `;return(0,a.FD)("div",{css:h,className:"trust-container",children:[(0,a.Y)(d(),{src:t,alt:"reviewer-logo",width:64,height:64}),(0,a.Y)("h4",{className:"title",children:i}),(0,a.FD)("div",{className:"innerWrapper",children:[(0,a.Y)("span",{className:"reviewer",children:c}),(0,a.Y)("p",{className:"description",children:l}),(0,a.FD)("div",{className:"date-rating",children:[(0,a.Y)(s.GW,{rating:o}),(0,a.Y)("span",{className:"reviewDate",children:u})]})]})]})};var u=i(31956);let m=e=>{let{data:t}=e,i=(0,n.u)(),s=(0,u.M)(t),o=(0,r.css)` 4 ${i.widgets.Cart?.trustContainer} 5 `,d=(0,r.css)` 6 ${i.widgets.SlickSlider?.wrapper} 7 `;return 0===s.length?null:(0,a.Y)("div",{css:[d,o],className:"reassurance-carousel",children:(0,a.Y)(l.A,{...{className:"slick-slider-container slick-dots",infinite:!0,dots:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,autoplay:!0,autoplaySpeed:4e3,adaptiveHeight:!0},children:s.map(e=>(0,a.Y)("div",{"data-testid":"trust-slide",children:(0,a.Y)(c,{...e})},e.id))})})}},12476:(e,t,i)=>{i.d(t,{S:()=>p});var a=i(75213),n=i(60004),r=i(6290),l=i(35477),s=i(52642),o=i(21192),d=i(72076),c=i(53681),u=i(67652),m=i(24562);let h=(e,t)=>{let[i,a]=(0,n.useState)(!1),[r,l]=(0,n.useState)(!1);(0,n.useEffect)(()=>{t&&a(t.includes(e))},[e,t]);let s=async t=>{t.preventDefault(),l(!0);try{let t=`${d.z.atgApiPrefix}/user/favourites/${e}`;if(!(await fetch(t,{method:i?"DELETE":"PUT"})).ok)throw Error("Failed to update favorite status.");a(!i),i?(0,c.d)("unfavourite","unfavourite"):(0,c.d)("favourite","favourite")}catch(e){u.vF.error("Error occurred while toggling favorite:",e)}finally{l(!1)}};return{isFavorite:i,loading:r,handleToggle:s}},p=e=>{let{itemCode:t,favouriteItemCodes:i}
7=e,d=(0,l.kH)(s.JV),[c,u]=(0,n.useState)(""),p=(0,m.G)(void 0===i),{isFavorite:f,handleToggle:v}=h(t,i??p);(0,n.useEffect)(()=>{u((0,o.B)()?`/jsp/curity/signin.jsp?redirectionURL=${window.location.href}`:"/")},[]);let g=e=>{e.preventDefault(),window.location.href=c};return(0,a.Y)("div",{children:d?(0,a.Y)("span",{onClick:v,title:f?"Remove from favourites":"Add to favourites",role:"button","aria-label":f?"Remove from favourites":"Add to favourites",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&v(e)},style:{cursor:"pointer",display:"inline-block"},children:(0,a.Y)(r.A,{isFavorite:f})}):(0,a.Y)("span",{id:"user-not-logged-in",role:"button","aria-label":"Login to add this item to your favourites",title:"Login to add this item to your favourites",tabIndex:0,onClick:g,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&g(e)},style:{cursor:"pointer",display:"inline-block"},children:(0,a.Y)(r.A,{isFavorite:f})})})}},14048:(e,t,i)=>{i.d(t,{I:()=>S});var a=i(75213);i(60004);var n=i(93681),r=i(35263),l=i(70026),s=i(31073),o=i(22820),d=i(72076),c=i(91784),u=i(84796),m=i(44140),h=i(99033),p=i(92436),f=i(73520),v=i(16984),g=i(23214),y=i(75812),b=i(21150),Y=i(35477),w=i(52642),N=i(44098),k=i(58229),C=i(63191),D=i.n(C),x=i(79369),F=i(27964);let S=e=>{let t,{skus:i,hit:C,sendEvent:S,title:I="",position:$="left",size:A=""}=e,[z,{open:T,close:E}]=(0,n.j)(!1),P=(0,o.nv)(C?.itemCode),L=(0,Y.kH)(w.BP),M=(0,Y.kH)(w.hq),B=(0,N.u)(),R="wsj"===d.z.brandId,H=(0,k.css)` 8 ${B.widgets.Cart?.slider} 9 `;return t=C?.preSell&&C.skus?.[0]?.presellPayments?.length>0?(0,a.Y)("div",{className:"reserveTodayContainer","data-testid":"presell-container",children:"us"!==d.z.country&&(0,a.Y)(c.C,{presellPayments:C.skus[0].presellPayments})}):C?.enPrimeur?(0,a.Y)("div",{className:"reserveTodayContainer","data-testid":"enprimeur-container",children:(0,a.Y)(u.U,{hit:C})}):"",(0,a.FD)(a.FK,{children:[(0,a.FD)(r._,{css:H,opened:z,onClose:E,title:I,position:$,size:A,scrollAreaComponent:l.F.Autosize,children:[(0,a.Y)("div",{className:`image-bg ${C?.giftFlag?"gift-image":""}`,children:(0,a.Y)("div",{className:"image-container align-top",children:(0,a.Y)("div",{className:"image",children:(0,a.Y)("a",{href:`${(0,m.D)(C?.productSlug,C?.itemCode)}`,children:(0,a.Y)(D(),{src:P,alt:C?.productName,fill:!0,sizes:"100vw",unoptimized:!0})})})})}),(0,a.FD)("div",{className:"hit-content align-top",children:[(0,a.Y)(x.h,{hit:C}),(C?.avgRating||C?.enPrimeur||C?.preSell&&C?.skus?.[0]?.presellPayments?.length>0&&C?.avgRating)&&(0,a.FD)("div",{className:"inline-container",children:[(0,a.Y)(h.l,{hit:C}),t,C?.avgRating&&(0,a.FD)("div",{className:C.happyToWaitEnabled||C.enPrimeur||C.preSell&&C.skus?.[0]?.presellPayments?.length>0?"rating edgeCaseScenario":"rating",children:[C.avgRating&&(0,a.Y)("a",{href:`${(0,m.D)(C.productSlug,C.itemCode)}#product-reviews`,children:(0,a.Y)(p.GW,{rating:C.avgRating})}),C.numberOfReviews&&(0,a.Y)("a",{href:`${(0,m.D)(C.productSlug,C.itemCode)}#product-reviews`,children:(0,a.FD)("span",{className:"review-count",children:[C?.numberOfReviews," ",C?.numberOfReviews<=1?"review":"reviews"]})})]})]}),(0,a.Y)(f.D,{skus:C?.skus,hit:C,sendEvent:S,isLearnMore:!1,scrollToTarget:void 0})]}),!1===M&&L?(0,a.FD)("div",{className:"unlimited-banner",children:[R?(0,a.Y)(v.A,{}):(0,a.Y)(g.A,{}),(0,a.Y)("span",{className:"banner-description",children:"Unlock Free Delivery & Exclusive Discounts"}),(0,a.Y)(F.CartButton,{itemCode:String(d.z.unlimitedItemCode),hit:C,qty:"1",buttonText:R?"Join Advantage":"Join Unlimited"}),(0,a.Y)(y.A,{})]}):null]}),(0,a.Y)(s.Y,{position:"center",className:"cart-slider",children:(0,a.Y)(b.$,{onClick:T,children:i[0]?.presellPayments?.length>0||C?.enPrimeur?"RESERVE TODAY":"VIEW OFFER"})})]})}},17307:(e,t,i)=>{i.d(t,{A:()=>h});var a=i(75213),n=i(37324),r=i(60004),l=i(44098),s=i(58229),o=i(72076),d=i(7292),c=i(35477),u=i(52642),m=i(69168);let h=e=>{let{loginType:t}=(0,c.kH)((0,n.k)(u.Qn))??{},{deliveryDateToBeShown:i,isItemNotDeliverableNow:h,isOtherProductAvailble:p,pageLayout:f}=e,v=f?.fields?.sidebar?.[1],g=v?.fields?.dayRange||3,y=v?.fields?.headline,b=v?.fields?.endTime,Y=(0,l.u)(),w="";i&&b&&new Date<new Date(b)?w=(0,m.xP)(g):i&&(w=(0,m.xP)(3));let N=(0,s.css)` 10 ${Y.widgets?.Cart?.EDWrapper} 11 `,k=w||"2-3 Days",C="uk"===o.z.country?y||`${k} (Mainland UK Only)`:w,[D,x]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{x(!0)},[]),(0,a.FD)("div",{css:N,children:[(0,a.FD)("div",{className:"wrapper-container",children:[D&&p&&C&&(0,a.FD)("div",{className:"delivery-info",children:[(0,a.Y)(d.I,{kind:"truck",size:"s"}),(0,a.FD)("div",{className:"delivery-text",children:[(0,a.Y)("h4",{children:"Estimated Standard Delivery"}),(0,a.Y)("p",{className:h?"presell-item":"",children:C}),h&&"us"!==o.z.country&&(0,a.Y)("p",{className:"presell-item",children:"Estimate provided for in stock items only"})]})]}),(0,a.FD)("div",{className:"other-info",children:[(0,a.Y)(d.I,{kind:"information-circle",size:"s"}),(0,a.Y)("p",{className:"information-text",children:"Other delivery and collection options available at checkout"})]})]}),D&&"unidentified"===t&&(0,a.Y)("div",{id:"mmWrapper",className:"reffered"})]})}},18772:(e,t,i)=>{i.d(t,{h:()=>u});var a=i(75213),n=i(92436),r=i(44098),l=i(58229),s=i(12476),o=i(57962),d=i(22820),c=i(44140);let u=e=>{let{product:t,favouriteItemCodes:i}=e,u=(0,r.u)(),m=(0,l.css)` 12 ${u.widgets.Product?.caseComponentsMobile} 13 `;return(0,a.Y)("div",{css:m,children:(0,a.FD)("div",{className:"layout",children:[(0,a.Y)("div",{className:"case-compo-heart-icon",children:(0,a.Y)(s.S,{itemCo
13de:t.itemId,favouriteItemCodes:i})}),(0,a.Y)("div",{className:"product-image",children:(0,a.Y)(o.X,{src:(0,d.nv)(t?.expandedItem?.itemCode),productType:t?.expandedItem?.productType,alt:t.expandedItem.name,fill:!0})}),(0,a.FD)("div",{className:"quantity",children:["x ",t.quantity]}),(0,a.Y)("div",{className:"title",children:(0,a.FD)("a",{className:"title",href:(0,c.D)(t?.expandedItem?.productSlug,t?.expandedItem?.itemCode),children:[t?.expandedItem?.name," ",t?.expandedItem?.vintage]})}),!!t?.expandedItem?.averageOverallRating&&(0,a.FD)("div",{className:"rating-container",children:[(0,a.Y)(n.GW,{rating:t?.expandedItem?.averageOverallRating}),!!t?.expandedItem?.totalReviewCount&&(0,a.Y)("div",{className:"rating-count",children:(0,a.FD)("a",{href:`${(0,c.D)(t.expandedItem?.productSlug,t.expandedItem?.itemCode)}#product-reviews`,children:[t?.expandedItem?.totalReviewCount," ",t?.expandedItem?.totalReviewCount<=1?"review":"reviews"]})})]}),(0,a.Y)("span",{className:"description",children:t.expandedItem.webHeadline}),(0,a.Y)("div",{className:"redirect-link-container",children:(0,a.Y)("a",{className:"redirect-link",href:(0,c.D)(t.expandedItem.productSlug,t.expandedItem.itemCode),children:"See more"})})]})})}},21960:(e,t,i)=>{i.d(t,{A:()=>h});var a=i(75213),n=i(37324),r=i(44098),l=i(58229),s=i(60004),o=i(81600),d=i(7292),c=i(85331),u=i(35477),m=i(52642);let h=(0,s.memo)(e=>{let{fields:t,dlClickEventHandler:i}=e,{title:h,openAccordionByDefault:p,content:f}=t,[v,g]=s.useState(!1);(0,s.useEffect)(()=>{p&&g(!0)},[]);let y=e=>{g(e=>!e),i?.(`${v?"close":"open"}:${e}`,"accordionMenu")},b=(0,u.kH)((0,n.k)(m.Qn)),Y=new Set(u.HB.filter(e=>e!==b?.loginType)),w=(0,r.u)(),N=(0,l.css)` 14 ${w.widgets.Footer?.navItems} 15 `;return(0,a.FD)("div",{css:N,"data-testid":"navigation",className:`navItem-navigation ${v?"navItem-navigation-active":""}`,children:[(0,a.FD)(o.A,{align:"center",justify:"between","data-testid":"navigation-header",onClick:()=>y(h),onKeyDown:e=>{"Space"===e.code&&(e.preventDefault(),y(h))},children:[(0,a.Y)("p",{"data-testid":"navigation-title",children:h}),(0,a.Y)("div",{role:"navigation","aria-label":h,className:`tab-indicator ${v?"tab-expand":"tab-collapse"}`,children:(0,a.Y)(d.I,{kind:"chevron-down",size:"l"})})]}),(0,a.Y)("div",{className:`tab-panel ${v?"tab-expand":"tab-collapse"}`,"data-testid":"navigation-content",children:(0,a.Y)("ul",{children:f?.map(e=>Y.has(e?.fields?.targeting?.toLocaleLowerCase().replace(" ","_"))?null:(0,a.Y)("li",{children:(0,a.Y)(c.g,{contentItem:e,dlClickEventHandler:i})},e?.fields.title))})})]})})},24562:(e,t,i)=>{i.d(t,{G:()=>o});var a=i(60004),n=i(35477),r=i(52642),l=i(93570),s=i(67652);let o=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,i]=(0,a.useState)([]),o=(0,n.kH)(r.JV);return(0,a.useEffect)(()=>{if(!e||!o)return void i([]);(async()=>{try{let e=(0,l.wD)(),t=await e.User.getFavourites();if(t?.response?.userItems){let e=t.response.userItems.map(e=>e.product.itemCode);i(e)}else throw Error("Failed to load favourite API.")}catch(e){s.vF.error("Failed to fetch favorites:",e),i([])}})()},[e,o]),t}},28871:(e,t,i)=>{i.d(t,{T:()=>S});var a=i(75213),n=i(44098),r=i(58229),l=i(60004),s=i(20163),o=i(59922),d=i(81600),c=i(7292),u=i(21960),m=i(84273),h=i(63191),p=i.n(h),f=i(88282),v=i(53406),g=i(53681),y=i(72076),b=i(52110),Y=i(89034);let w=Y.env.NEXT_PUBLIC_BRAND_NAME||Y.env.REACT_APP_PUBLIC_BRAND_NAME||"Laithwaites Wine",N="uswsj";function k(e){switch(e){case"aus-vws":return"redemption.virginwines.com.au";case"auadc":return"theaustralianwine.com.au";case"aus-virgin":return"virginwines.com.au";case"aunewstf":return"news24wine.com.au";default:return"laithwaites.com.au"}}let C=[{id:"bender",title:"Responsible Service of Alcohol",content:"You must be 18 years of age or over to order wine from this site. It is against the law to sell or supply alcohol to, or obtain alcohol on behalf of, a person under the age of 18.",image:"drink-wise.png"},{id:"carol",title:"Self-exclusion",mailToBody:`mailto:customerservice@${k(N)}?subject=Voluntary%20Exclusion&body=I%20would%20like%20to%20voluntarily%20exclude%20m
15yself%20from%20all%20${w}%20purchases%0A%0AAccount%20Number%3A%0AFirst%20Name%3A%0ALast%20Name%3A%0AEmail%20Address%3A%0AMobile%20Number%3A`,mailToLabel:`customerservice@${k(N)}`,content:`${w} is dedicated to the safety and wellbeing of our customers and aims to promote the responsible consumption of alcohol. By excluding yourself from ${w} services you will no longer be able to place orders on the ${w} website. To voluntarily exclude yourself please email the following details to:`}];function D(e){let{image:t,alt:i}=e;return t?(0,a.Y)("div",{className:"logo",children:(0,a.Y)("img",{src:`/next/images/${t}`,alt:i,loading:"lazy"})}):null}function x(e){let{title:t}=e;return(0,a.Y)("div",{children:t})}function F(){let e=(0,n.u)(),t=(0,l.useMemo)(()=>C.map(e=>(0,a.FD)(b.n.Item,{value:e.id,children:[(0,a.Y)(b.n.Control,{children:(0,a.Y)(x,{title:e.title})}),(0,a.FD)(b.n.Panel,{children:[e.content," ",e.mailToBody&&(0,a.Y)("a",{href:e.mailToBody,children:e.mailToLabel}),e.image&&(0,a.Y)(D,{image:e.image,alt:"Drink Wise"})]})]},e.title)),[]);if(y.z?.locale!=="en-AU")return null;let i=(0,r.css)` 16 ${e.widgets.FooterDropDown?.main} 17 `;return(0,a.Y)("div",{css:i,children:(0,a.Y)(b.n,{chevronPosition:"right",variant:"contained",children:t})})}let S=(0,l.memo)(e=>{let t=(0,n.u)(),i=(0,r.css)` 18 ${t.widgets.Footer?.default} 19 `,{footerNavBar:l,copyright:h,guidelinePolicy:b,badgeImages:Y,socialLinks:w=[]}=e?.cmsSiteConfig?.fields||{},N=(e,t)=>{let i=t;"us"===y.z.country&&(/(?:\d-\d|\d)/.test(e)?i="phoneClick":e.toLowerCase().includes("live chat")?i="liveChatInteraction":e.toLowerCase().includes("email")&&(i="emailClick")),i&&(0,g.d)(e,i)};return(0,a.Y)("div",{css:i,"data-test":"footer",className:"no-print",children:(0,a.FD)(s.A,{children:[l&&(0,a.FD)("section",{className:"footer-nav-links","aria-label":"Footer links","data-test":"links-section",children:[(0,a.Y)(d.A,{className:"wrapper",justify:"between",children:l?.map(e=>{let{fields:t}=e;return(0,a.Y)(u.A,{fields:t,dlClickEventHandler:N},`nav-${t?.title}`)})}),(0,a.Y)("div",{className:"be-ix-link-block"})," "]}),b&&(0,a.Y)("section",{className:"guidelines-policies","data-test":"guidelines-section",children:(0,a.Y)(d.A,{className:"wrapper",align:"center",justify:"around",children:b.map(e=>{let{fields:t,sys:i}=e;return(0,a.FD)(d.A.Col,{children:[t?.image&&(0,a.Y)(p(),{src:t.image.fields?.file?.url||"",alt:t.image.fields?.description||"",width:t.image.fields?.file?.details?.image?.width,height:t.image.fields?.file?.details?.image?.height,loading:"lazy",fetchPriority:"low",...(0,f.H)(i.id,"image")}),(0,a.FD)("div",{...(0,f.H)(i.id,"title"),children:[(0,a.Y)("p",{className:"title",children:t?.title}),(0,a.Y)("p",{className:"desc",children:t?.description})]})]},`col-${i.id}`)})})}),w?.length>0&&(0,a.Y)("section",{className:"social-connections","data-test":"social-section",children:(0,a.FD)(d.A,{className:"wrapper",align:"center",justify:"center",noGutter:!0,children:[w?.length<3&&(0,a.Y)(d.A.Col,{xs:"auto",className:"social-connection-heading",children:(0,a.Y)("p",{children:"Follow Us"})}),w.map(e=>{let{fields:t}=e;return(0,a.Y)(d.A.Col,{xs:"auto",children:(0,a.Y)(v.N,{prefetch:!1,href:t?.url??"",onClick:()=>"us"===y.z.country&&(0,g.d)(t?.title,"socialShare"),children:(0,a.Y)(c.I,{kind:t?.title,size:"l","data-test":t?.title})})},`social-${t?.title}`)})]})}),(0,a.Y)(F,{}),(0,a.Y)("section",{className:"footer-bottom-section","data-test":"bottom-section",children:(0,a.FD)(d.A,{className:"wrapper",align:"center",justify:"between",noGutter:!0,children:[(0,a.Y)(d.A.Col,{lg:4,className:"copyrights",children:(0,a.Y)("div",{...(0,f.H)(e?.cmsSiteConfig?.sys?.id,"copyright"),children:(0,o.i)(h)})}),(0,a.Y)(d.A.Col,{lg:4,className:"brand",children:(0,a.Y)("a",{href:"/",className:"footer-logo",children:(0,a.Y)("picture",{children:(0,a.Y)(p(),{src:t.assets.footerLogoImgUrl||"",alt:"Brand Logo",sizes:"(min-width: 1230px) 10em, 13.5em",width:180,height:36,loading:"lazy",fetchPriority:"low",className:"brand-footer-img"})})})}),(0,a.Y)(d.A.Col,{lg:4,className:"bedrinkaware-group",children:Y?.map((e,t)=>{let{fields:i}
19=e,n=i?.icon&&(0,a.Y)(m.$,{contentItem:i?.icon,disableAutoSize:!1,isNextImg:!0,sizes:"120px",width:120,height:120,loading:"lazy",fetchPriority:"low"},`bedrinkaware-${i.title}-${t+1}`);return i.url?(0,a.Y)(v.N,{prefetch:!1,href:i?.url??"",children:n},`bedrinkaware-${i.url}`):n})})]})})]})})})},31043:(e,t,i)=>{i.d(t,{L:()=>D});var a=i(75213),n=i(60004),r=i(96356),l=i(52080),s=i(44098),o=i(58229),d=i(63191),c=i.n(d),u=i(92436),m=i(72076),h=i(44140),p=i(7292),f=i(96332),v=i(72538),g=i(31709),y=i(71392),b=i(28039),Y=i(83141);let w=e=>{let{product:t,count:i}=e,{imageSrc:n,handleImageError:l}=(0,v.j)(t?.largeImage,"/next/images/default_images/bottle.png");return(0,a.FD)(r.t.Panel,{value:`prod-item-${i+1}`,className:"wineDetailsSection",children:[(0,a.FD)("div",{className:"header-container",children:[(0,a.Y)("h2",{className:"main-title",children:(0,a.FD)("a",{href:(0,h.D)(t.productSlug,t.itemCode),children:[t.name," ",t.vintage]})}),t?.skus&&t.skus.length>0&&(0,a.FD)("div",{className:"price",children:["Regular price: ",(0,g.FY)(t?.skus[0]?.salePrice)," per bottle"]})]}),t?.averageOverallRating&&(0,a.FD)("div",{className:"rating-container",children:[(0,a.Y)(u.GW,{rating:t?.averageOverallRating}),t?.totalReviewCount&&(0,a.Y)("div",{className:"rating-cout",children:(0,a.FD)("a",{href:`${(0,h.D)(t.productSlug,t.itemCode)}#product-reviews`,children:[t?.totalReviewCount," ",t?.totalReviewCount<=1?"review":"reviews"]})})]}),(0,a.Y)("div",{className:"web-description",children:t?.webHeadline}),"au"===m.z.country&&(0,a.FD)(a.FK,{children:[(0,a.Y)(y.d,{product:t})," ",(0,a.Y)(b.k,{product:t})]}),(0,a.FD)("div",{className:"case-content-details-section",children:[(0,a.FD)("div",{className:"wine-details",children:[(0,a.Y)("h2",{className:"sub-title-with-border",children:"Wine Details"}),"us"===m.z.country&&t?.accolades?.length>0&&(0,a.Y)(b.k,{product:t}),(0,a.Y)(y.S,{product:t})]}),(0,a.Y)("div",{className:"case-image case-content-img",children:(0,a.Y)(c(),{src:n,alt:t.name,width:80,height:300,onError:l,loading:"lazy"})}),(0,a.Y)("div",{className:"case-details",children:(0,a.Y)("div",{className:"flavour-section",children:(0,a.Y)(Y.l,{product:t})})}),"us"===m.z.country?(0,a.Y)("div",{className:"share-print",children:(t?.productType!=="Sundry"||"us"!==m.z.country)&&(0,a.FD)("div",{className:"print-share-container no-print",children:[(0,a.Y)("span",{className:"label",children:"Share / Print:"}),(0,a.Y)("span",{role:"presentation",className:"cursor-pointer",onClick:e=>{e.preventDefault(),window.open(`http://www.facebook.com/sharer.php?u=${m.z.publicHost}${(0,h.D)(t?.productSlug,t?.itemCode)}`,"popup","width=800,height=600")},children:(0,a.Y)(p.I,{kind:"facebook",size:"m"})}),(0,a.Y)("span",{role:"presentation",className:"cursor-pointer",onClick:e=>{e.preventDefault(),window.open(`http://www.twitter.com/intent/tweet?url=${m.z.publicHost}${(0,h.D)(t?.productSlug,t?.itemCode)}`,"popup","width=800,height=600")},children:(0,a.Y)(p.I,{kind:"x-twitter",size:"xs"})}),(0,a.Y)("a",{href:`mailto:?subject=I thought you may be interested in this &body=${t.name} ${t.vintage} ${(0,h.D)(t?.productSlug,t?.itemCode)}`,children:(0,a.Y)(p.I,{kind:"envelope",size:"m"})}),(0,a.Y)(f.P,{product:t})]})}):null]})]})};var N=i(57962),k=i(22820);let C=e=>{let{product:t,count:i,quantity:n}=e;return(0,a.FD)(r.t.Tab,{value:`prod-item-${i+1}`,icon:(0,a.Y)(N.X,{src:(0,k.nv)(t.itemCode),productType:t?.productType,alt:t?.name,fill:!0}),children:["x",n]})},D=e=>{let{referencedSkus:t,view:i}=e,[d,c]=(0,n.useState)(1),u=(0,s.u)(),m=(0,o.css)` 20 ${u.widgets.SlickSlider?.wrapper} 21 `,h=t.filter(e=>"Literature"!==e.expandedItem.productType);return h.length>0&&"carousel"===i?(0,a.FD)(r.t,{css:m,className:"case-content-container",defaultValue:"prod-item-1",value:"carousel"===i?`prod-item-${d}`:null,children:[(0,a.Y)(l.F,{withIndicators:!0,withControls:!0,loop:!0,slidesToScroll:1,slideSize:"100%",align:"start",slideGap:"md",controlsOffset:"md",styles:u.widgets.CmsCarousel,onSlideChange:e=>{c(e+1)},children:h.map((e,t)=>(0,a.Y)(l.F.Slide,{children:(0,a.Y)(C,{product:e.expandedItem,quantity:e.quantity,count:t})},`case-tab-carousel-${e.expandedItem.itemCode}`))}),h.map((e,t)=>(0,a.Y)(w,{product:e.expandedItem,count:t},`case-tab-content-${e.expandedItem.itemCode}`))]}):(0,a.FD)(r.t,{css:m,className:"case-content-container",defaultValue:"prod-item-1",children:[(0,a.Y)(r.t.List,{position:"center",children:h.map((e,t)=>(0,a.Y)(C,{product:e.expandedItem,quantity:e.quantity,count:t},`case-tab-list-${e.expandedItem.itemCode}`))}),h.map((e,t)=>(0,a.Y)(w,{product:e.expandedItem,count:t},`case-tab-content-${e.expandedItem.itemCode}`))]})}},31654:(e,t,i)=>{i.d(t,{A:()=>l});var a=i(75213),n=i(7292),r=i(60004);let l=()=>{(0,r.useEffect)(()=>{let e=e=>{null===e.state&&(window.location.href="/")};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[]);let e=()=>{let{referrer:e}=document;e.includes("checkout.jsp")||e.includes("checkout/index.jsp")||window.history.length<=2?window.location.href="/":window.history.back()};return(0,a.FD)("div",{className:"continue-shopping",children:[(0,a.Y)(n.I,{kind:"arrow-left",size:"s"}),(0,a.Y)("span",{role:"button",tabIndex:0,onClick:e,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e())},"aria-label":"Continue shopping",className:"continue-shopping-link",children:"continue shopping"})]})}},38374:(e,t,i)=>{i.d(t,{G:()=>c});var a=i(75213),n=i(60004),r=i(44098),l=i(58229),s=i(25288),o=i(27964),d=i(72076);let c=()=>
21{let e=(0,r.u)(),[t,i]=(0,n.useState)(""),c=(0,l.css)` 22 ${e.widgets.Cart?.quickOrder} 23 `,u=(0,n.useCallback)(e=>{i(e.target.value||"")},[]);return(0,a.FD)("div",{css:c,className:"quickOrder","data-testid":"quick-order",children:[(0,a.Y)("label",{className:"label",htmlFor:"itemCodeInput",children:"Quick Order Catalogue"}),(0,a.Y)(s.A,{value:t,type:"text",placeholder:"Enter Item Number",onChange:e=>u(e),autoComplete:"off",id:"itemCodeInput",name:"itemCode",label:"Enter Item Number","data-testid":"text-input"}),(0,a.Y)("div",{className:"quickAddButton",children:(0,a.Y)(o.CartButton,{itemCode:t,qty:"1",buttonText:"us"===d.z.country||"au"===d.z.country?"ADD TO CART":"ADD TO BASKET",isMiniCart:!1,buttonStyle:"transparent",closeModal:()=>{i("")},showSuccessAlert:!0})})]})}},42623:(e,t,i)=>{i.d(t,{o:()=>d});var a=i(75213),n=i(60004),r=i(44098),l=i(58229),s=i(18398),o=i(65250);let d=(0,n.memo)(e=>{let{rootMargin:t="200px",skeletonCount:i=5,...d}=e,c=(0,n.useRef)(null),[u,m]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=c.current;if(!e)return;let i=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(m(!0),i.disconnect())},{rootMargin:t});return i.observe(e),()=>{i.disconnect()}},[t]);let h=(0,r.u)(),p=(0,l.css)` 24 ${h.widgets.Cart.productItemsTrending} 25 `,f=(0,l.css)` 26 display: flex; 27 gap: 16px; 28 overflow: hidden; 29 `;return u?(0,a.Y)(o.j,{...d}):(0,a.Y)("div",{ref:c,className:"trending-items-container","data-testid":"lazy-trending-items",css:p,style:{position:"relative"},children:(0,a.Y)("div",{css:f,children:Array.from({length:i},(e,t)=>(0,a.Y)(s.D,{},t))})})})},46088:(e,t,i)=>{i.d(t,{A:()=>R});var a=i(75213),n=i(60004),r=i(44098),l=i(58229),s=i(31630),o=i(21641),d=i(30397),c=i(7292),u=i(27964),m=i(72076);let h=e=>(0,l.css)` 30 .delivery-info-modal-header { 31 position: relative; 32 display: flex; 33 align-items: center; 34 justify-content: center; 35 min-height: 36px; 36 margin-bottom: 16px; 37 } 38 39 .delivery-info-modal-close { 40 position: absolute; 41 right: 0; 42 top: 50%; 43 transform: translateY(-50%); 44 } 45 46 .delivery-info-modal-close button { 47 border: 0; 48 background: transparent; 49 padding: 0; 50 cursor: pointer; 51 } 52 53 .delivery-info-modal-logo { 54 display: flex; 55 justify-content: center; 56 width: 140px; 57 height: 36px; 58 } 59 60 .delivery-info-modal-logo-icon { 61 color: ${e.colors?.green60||"#117b53"}; 62 } 63 64 .delivery-info-modal-heading { 65 font-family: ${e.fonts?.familyPrimary||"Oswald, sans-serif"}; 66 margin: 0 0 20px; 67 color: ${e.colors?.grey90||"#222222"}; 68 text-align: center; 69 font-size: ${e.fonts?.fontSize28}; 70 font-weight: ${e.fonts?.weightMedium}; 71 line-height: 110%; 72 letter-spacing: -0.6px; 73 text-transform: uppercase; 74 } 75 76 .delivery-info-modal-benefit { 77 display: flex; 78 align-items: stretch; 79 gap: 16px; 80 padding: 12px 0 0 0; 81 } 82 83 .delivery-info-modal-benefit + .delivery-info-modal-benefit .delivery-info-modal-text { 84 border-top: 1px solid ${e.colors?.grey30||"#d8d8d8"}; 85 padding-top: 12px; 86 } 87 88 .delivery-info-modal-icon { 89 width: 48px; 90 height: 48px; 91 min-width: 48px; 92 border-radius: 24px; 93 border: 1px solid ${e.colors?.grey40||"#bcbcbc"}; 94 background-color: ${e.colors?.grey10||"#ededed"}; 95 color: ${e.colors?.grey60||"#616161"}; 96 display: flex; 97 align-items: center; 98 justify-content: center; 99 } 100 101 .delivery-info-modal-text { 102 min-height: 48px; 103 display: flex; 104 flex-direction: column; 105 justify-content: center; 106 gap: 2px; 107 flex: 1 1 auto; 108 } 109 110 p.delivery-info-modal-title { 111 margin: 0 0 2px; 112 color: ${e.colors?.grey90||"#222222"}; 113 font-family: Roboto, sans-serif; 114 font-size: ${e.fonts?.fontSize16}; 115 font-weight: ${e.fonts?.weightBold}; 116 line-height: 140%; 117 } 118 119 p.delivery-info-modal-description { 120 margin: 0; 121 color: ${e.colors?.grey90||"#222222"}; 122 font-family: Roboto, sans-serif; 123 font-size: ${e.fonts?.fontSize14}; 124 font-weight: ${e.fonts?.weightNormal}; 125 line-height: 18.2px; 126 } 127 128 .delivery-info-modal-cta-box { 129 margin: 16px 0; 130 border: 1px solid #117b53; 131 border-radius: 10px; 132 padding: 16px; 133 background: ${e.colors?.white||"#ffffff"}; 134 } 135 136 .delivery-info-modal-price { 137 margin: 0 0 12px; 138 text-align: center; 139 } 140 141 .delivery-info-modal-price-unit { 142 color: #117b53; 143 font-family: 'Noto Serif', serif; 144 font-size: ${e.fonts?.fontSize26}; 145 font-weight: ${e.fonts?.weightMediumPlus||600}; 146 line-height: 120%; 147 letter-spacing: -0.26px; 148 } 149 150 .delivery-info-modal-price-value { 151 color: #117b53; 152 font-family: 'Noto Serif', serif; 153 font-size: ${e.fonts?.fontSize26}; 154 font-weight: ${e.fonts?.weightMediumPlus||600}; 155 line-height: 120%; 156 letter-spacing: -0.26px; 157 } 158 159 .delivery-info-modal-price-suffix { 160 color: ${e.colors?.grey90||"#222222"}; 161 font-family: Roboto, sans-serif; 162 font-size: ${e.fonts?.fontSize14}; 163 font-weight: ${e.fonts?.weightNormal||400}; 164 line-height: 130%; 165 } 166 167 .delivery-info-modal-cta-box .cart-button, 168 .delivery-info-modal-cta-box .grid-addto-cart-btn { 169 width: 100%; 170 } 171 172 .delivery-info-modal-cta-box .cart-button { 173 display: block; 174 } 175 176 .delivery-info-modal-cta-box .grid-addto-cart-btn { 177 min-height: 44px; 178 height: 44px; 179 display: flex; 180 align-items: center; 181 justify-content: center; 182 padding-top: 0; 183 padding-bottom: 0; 184 } 185 186 .delivery-info-modal-cta-box .grid-addto-cart-btn > span { 187 display: flex; 188 align-items: center; 189 justify-content: center; 190 width: 100%; 191 height: 100%; 192 } 193 194 .delivery-info-modal-cta-box .btn-text-full, 195 .delivery-info-modal-cta-box .btn-text-short { 196 font-size: ${e.fonts?.fontSize14}; 197 text-transform: uppercase; 198 } 199 200 p.delivery-info-modal-footer { 201 text-align: center; 202 color: ${e.colors?.grey90||"#222222"}; 203 font-family: Roboto, sans-serif; 204 font-size: ${e.fonts?.fontSize14}; 205 font-weight: 400; 206 line-height: 130%; 207 margin: 0; 208 } 209 210 a.delivery-info-modal-footer-link { 211 color: ${e.colors?.grey90||"#222222"}; 212 font-family: Roboto, sans-serif; 213 font-size: ${e.fonts?.fontSize14}; 214 font-weight: 700; 215 line-height: 130%; 216 text-decoration-line: underline; 217 text-decoration-style: solid; 218 text-decoration-skip-ink: none; 219 text-decoration-thickness: auto; 220 text-underline-offset: auto; 221 text-underline-position: from-font; 222 }
223`,p=[{icon:"truck",title:"Free standard, next-day and name-day delivery",description:"On every order. No minium spend."},{icon:"location",title:"Deliver to up to 20 addresses",description:"Send to friends, family or your favourite holiday home."},{icon:"sale",title:"Exclusive member offers",description:"Enjoy access to special offers and promotions, just for members."}],f=(e,t)=>e?{centered:!1,xOffset:0,yOffset:0,transitionProps:{transition:"slide-up",duration:200},size:"100%",styles:{inner:{padding:"0 !important",alignItems:"flex-end !important",justifyContent:"center !important"},content:{margin:0,width:"100%",maxWidth:"100%",alignSelf:"flex-end",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",borderBottomLeftRadius:0,borderBottomRightRadius:0,backgroundColor:t},body:{padding:"24px"}}}:{centered:!0,xOffset:void 0,yOffset:void 0,transitionProps:{transition:"fade",duration:200},size:"560px",styles:{content:{borderRadius:"16px",backgroundColor:t},body:{padding:"24px"}}},v=e=>{let{isOpen:t,onClose:i,isMobileView:n}=e,l=(0,r.u)(),s=f(n,l.colors.unlimitedModalBg);return(0,a.Y)(d.a,{opened:t,onClose:i,centered:s.centered,xOffset:s.xOffset,yOffset:s.yOffset,transitionProps:s.transitionProps,size:s.size,withCloseButton:!1,styles:s.styles,children:(0,a.FD)("div",{css:h(l),children:[(0,a.FD)("div",{className:"delivery-info-modal-header",children:[(0,a.Y)("div",{className:"delivery-info-modal-logo",children:(0,a.Y)("span",{className:"delivery-info-modal-logo-icon",children:(0,a.Y)(c.I,{kind:"unlimited",size:"36px"})})}),(0,a.Y)("div",{className:"delivery-info-modal-close",children:(0,a.Y)("button",{type:"button",onClick:i,"aria-label":"Close",children:(0,a.Y)(c.I,{kind:"close",size:"m"})})})]}),(0,a.Y)("h3",{className:"delivery-info-modal-heading",children:"Skip the delivery charges with an Unlimited membership"}),p.map(e=>(0,a.FD)("div",{className:"delivery-info-modal-benefit",children:[(0,a.Y)("div",{className:"delivery-info-modal-icon",children:(0,a.Y)(c.I,{kind:e.icon,size:"m"})}),(0,a.FD)("div",{className:"delivery-info-modal-text",children:[(0,a.Y)("p",{className:"delivery-info-modal-title",children:e.title}),(0,a.Y)("p",{className:"delivery-info-modal-description",children:e.description})]})]},e.title)),(0,a.FD)("div",{className:"delivery-info-modal-cta-box",children:[(0,a.FD)("p",{className:"delivery-info-modal-price",children:[(0,a.Y)("span",{className:"delivery-info-modal-price-unit",children:"\xa3"}),(0,a.Y)("span",{className:"delivery-info-modal-price-value",children:"29.99"}),(0,a.Y)("span",{className:"delivery-info-modal-price-suffix",children:"/ year"})]}),(0,a.Y)(u.CartButton,{itemCode:String(m.z.unlimitedItemCode),qty:"1",buttonText:"Join Unlimited",closeModal:i})]}),(0,a.FD)("p",{className:"delivery-info-modal-footer",children:["Unlimited renews annually for \xa329.99. Cancel online."," ",(0,a.Y)("a",{className:"delivery-info-modal-footer-link",href:"/customer-services/customer-terms-and-conditions-of-sale-and-use/terms-and-conditions#memberships",target:"_blank",rel:"noopener noreferrer",children:"T&Cs apply."})]})]})})};var g=i(31709);let y=e=>(0,l.css)` 224 display: flex; 225 justify-content: space-between; 226 align-items: center; 227 margin-bottom: 0.5rem; 228 229 .payable-today__label { 230 font-size: ${e.fonts?.fontSize16||"1rem"}; 231 font-weight: ${e.fonts?.weightBold||700}; 232 color: ${e.colors?.bodyText||"#333"}; 233 } 234 235 .payable-today__value { 236 font-size: ${e.fonts?.fontSize16||"1rem"}; 237 font-weight: ${e.fonts?.weightBold||700}; 238 color: ${e.colors?.bodyText||"#333"}; 239 } 240`,b=e=>{let{totalPrice:t,totalPriceDueToday:i,giftCardRedemptionsTotal:n=0,delivery:l=0,isUkMarket:s=!1}=e,o=(0,r.u)(),d=Math.max(0,(i??t)-n-(s||"number"!=typeof l?0:l));return void 0!==i&&i<t||n>0?(0,a.FD)("div",{css:y(o),children:[(0,a.Y)("span",{className:"payable-today__label",children:"Payable Today"}),(0,a.Y)("span",{className:"payable-today__value",children:(0,g.FY)(d)})]}):null};var Y=i(74850),w=i(33708),N=i(38374),k=i(37324),C=i(21150),D=i(35477),x=i(54445),F=i(69168);let S=e=>{let{redirectCheckoutRoute:t,loading:i,maxLimitCheck:n,inventoryLimitCheck:r,error:l}=e,{cartItems:s}
240=(0,D.x3)((0,k.k)(x.jE)),o=(s?.totalItemQuantity??0)>0,d="";if(o){let e=s?.totalItemQuantity??0,t=(0,F.td)("Item",e);d=`(${e} ${t})`}return(0,a.Y)("a",{href:t,className:"align-end ",children:(0,a.FD)(C.$,{as:"a",className:"cursor-pointer",disabled:i||(s?.totalItemQuantity??0)<=0||n||r||l,children:["Checkout ",d]})})};var I=i(27),$=i(42894),A=i(18852),z=i(25041),T=i(96870),E=i(94060),P=i(7626);let L=e=>{let{isCartEmpty:t}=e,i=(0,r.u)(),[s,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=window.navigator.userAgent.toLowerCase();o(/(macintosh|iphone|ipad)/.test(e)),c(/DWAPP/i.test(e))},[]);let u=(0,l.css)` 241 ${i.widgets.Cart?.EDWrapper} 242 `;return(0,a.FD)("div",{css:u,className:t?"deliveryWrapper deliveryWrapperEmptyBasket":"deliveryWrapper",children:[t&&(0,a.Y)("div",{children:(0,a.Y)("h2",{children:"Payment Methods Accepted"})}),(0,a.FD)("div",{className:`${m.z?.country==="au"&&!t?"left-aligned":"payment-options"} ${t?"mt-16":"mt_mb-16"}`,children:[s&&"uk"===m.z.country&&(0,a.Y)(I.A,{className:"apple-pay"}),!d&&"uk"===m.z.country&&(0,a.Y)($.A,{className:"google-pay"}),(0,a.Y)(A.A,{className:"paypal"}),(0,a.Y)(z.A,{className:"mastercard"}),(0,a.Y)(T.A,{className:"visa"}),(0,a.Y)(E.A,{className:"amex"}),m.z?.country==="us"&&(0,a.Y)(P.A,{className:"discover"})]})]})};var M=i(71858);let B=(e,t,i,a)=>t?i?"Standard Delivery":"Delivery":a[e]||"Delivery",R=e=>{let{lineItems:t,delivery:i,total:d,subTotal:u,emptyBasket:h,soldOutError:p,loading:f,totalPriceDueToday:y,giftCardRedemptionsTotal:k}=e,C=(0,r.u)(),D=(0,l.css)` 243 ${C.widgets.Cart.EDWrapper} 244 `,x="uk"===m.z.country,F=(0,o.U)("(max-width: 768px)"),I=x&&"number"==typeof i&&i>0,$="Calculated at checkout";"number"==typeof i&&(0===i?$="Free":x&&($=(0,g.FY)(i)));let A=x&&I?d+i:d,[z,T]=(0,n.useState)(!1),[E,P]=(0,n.useState)(!1),[R,H]=(0,n.useState)(!0),[O,W]=(0,n.useState)(!1),j=(0,n.useRef)(null),q=(0,Y.e2)(),{totalSavings:_,unlimitedSavings:U,upsellSavings:K}=(0,n.useMemo)(()=>(0,M.aD)(t),[t]),G=(0,n.useCallback)(()=>{j.current&&H(j.current.getBoundingClientRect().top-window.innerHeight+("au"===m.z.country?486:300)>0)},[]);(0,n.useEffect)(()=>{let e=()=>{requestAnimationFrame(G)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[G]),(0,n.useEffect)(()=>{P(!!(0,w.y)(t)),T(!!(0,w.W)(t))},[t,P,T]);let V=B(m.z.country,x,I,{au:"Shipping",us:"Shipping & Tax",uk:"Standard Delivery"}),Q=x&&I,J="order-summary-quickOrder";return"au"===m.z.country&&h&&(J="quick_order_bottom"),(0,a.FD)("div",{css:D,ref:j,className:J,children:["au"===m.z.country&&(0,a.Y)(N.G,{}),(0,a.FD)("div",{className:"wrapper-container",children:[!h&&(0,a.Y)("h2",{children:"Order Summary"}),!h&&(0,a.FD)(a.FK,{children:[(0,a.FD)("div",{className:"order-detail",children:[(0,a.Y)("span",{children:"Subtotal"}),(0,a.Y)("span",{className:"align-end",children:(0,g.FY)(u)})]}),_>0&&(0,a.FD)("div",{className:"save-on-order",children:[(0,a.Y)("span",{children:"Promotional Savings"}),(0,a.FD)("span",{className:"align-end",children:["-",(0,g.FY)(_)]})]}),U>0&&(0,a.FD)("div",{className:"unlimited-save",children:[(0,a.FD)("span",{children:[" ","wsj"===m.z.brandId?"Advantage":"Unlimited"," Member Savings"]}),(0,a.FD)("span",{className:"align-end",children:["-",(0,g.FY)(U)]})]}),K>0&&(0,a.FD)("div",{className:"subscribe-save",children:[(0,a.Y)("span",{children:"20% Subscribe & Save Discount"}),(0,a.FD)("span",{className:"align-end",children:["-",(0,g.FY)(K)]})]}),(0,a.FD)("div",{className:"order-detail",children:[(0,a.FD)("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[V,Q&&(0,a.Y)("span",{"data-testid":"uk-delivery-info-icon",children:(0,a.Y)(s.m,{label:(0,a.FD)(a.FK,{children:[(0,a.Y)("div",{style:{color:"#222222",fontFamily:"Roboto, sans-serif",fontSize:"12px",fontStyle:"normal",fontWeight:700,lineHeight:"16px"},children:"Delivery options"}),(0,a.Y)("div",{children:"Next Day & Named Day Delivery available - pricing confirmed at checkout."})]}),withArrow:!0,arrowSize:10,position:"bottom-start",offset:8,multiline:!0,events:{hover:!0,focus:!0,touch:!0},styles:{tooltip:{width:"240px",borderRadius:"10px",border:"0.552px solid #BCBCBC",backgroundColor:"#ffffff",boxShadow:"0 4px 16px 0 rgba(0, 0, 0, 0.14)",color:"#616161",fontFamily:"Roboto, sans-serif",fontSize:"12px",fontStyle:"normal",fontWeight:400,lineHeight:"17px",padding:"12px"},arrow:{backgroundColor:"#ffffff"}},children:(0,a.Y)("button",{type:"button","aria-label":"Delivery options information",style:{border:0,background:"transparent",padding:"4px",margin:0},children:(0,a.Y)(c.I,{kind:"information-circle",size:"xs","aria-hidden":"true"})})})})]}),(0,a.Y)("span",{className:"align-end",children:$})]}),Q&&(0,a.FD)("div",{className:"delivery-membership-container",children:[(0,a.FD)("div",{className:"delivery-membership-header",children:[(0,a.Y)("span",{className:"delivery-membership-title",children:"Unlimited membership"}),(0,a.Y)("button",{type:"button",className:"delivery-membership-link",onClick:()=>W(!0),children:"Learn more"})]}),(0,a.Y)("p",{className:"delivery-membership-copy",children:"Free delivery on every order. Cancel anytime."})]}),(0,a.Y)("hr",{}),(0,a.Y)(b,{totalPrice:A,totalPriceDueToday:y,giftCardRedemptionsTotal:k,delivery:"number"==typeof i?i:0,isUkMarket:x}),(0,a.FD)("div",{className:`${R?"sticky":""}`,children:[(0,a.FD)("h6",{className:"order-total",children:[(0,a.Y)("span",{children:"Order Total"}),(0,a.Y)("span",{className:"align-end",children:(0,g.FY)(A)})]}),(0,a.Y)("div",{className:"payment-checkout",children:!h&&(0,a.Y)(S,{redirectCheckoutRoute:q,loading:f,maxLimitCheck:z,inventoryLimitCheck:E,error:p})})]})]}),"au"===m.z.country&&!h&&(0,a.Y)("p",{className:"gst-text",children:"All prices are inclusive of GST"}),(0,a.Y)(L,{isCartEmpty:h}),!h&&(0,a.FD)("div",{className:"other-info",children:[(0,a.Y)(c.I,{kind:"coupons",size:"s"}),(0,a.FD)("div",{children:[(0,a.Y)("p",{className:"coupon-text",children:"Got a voucher co
244de or gift certificate?"}),(0,a.Y)("p",{className:"coupon-text sub",children:"Youâll be able to add it at checkout"})]})]})]}),(0,a.Y)(v,{isOpen:O,onClose:()=>W(!1),isMobileView:!!F})]})}},49252:(e,t,i)=>{i.d(t,{f:()=>m});var a=i(75213),n=i(63191),r=i.n(n),l=i(7292),s=i(44098),o=i(58229),d=i(72076),c=i(22820);let u={"Crisp Fresh Whites":"#87997E","Rich Round Whites":"#D0850B","Light Juicy Reds":"#A11349","Ripe Smooth Reds":"#44022A","Firm Structured Reds":"#741C4B","Pale Dry Ros\xe9":"#C56681","Bright Fruity Ros\xe9":"#EE4362","Champagne or Similar":"#B69044","Fruity Fresh Fizz":"#6D9F86"},m=e=>{let{hit:t}=e,i=(0,s.u)();if("sundry"===t.productType.toLowerCase())return null;let n=(0,o.css)` 245 ${i.widgets.Product?.countryNameGrapeVariety} 246 `;return(0,a.FD)(a.FK,{children:[(0,a.FD)("div",{css:n,className:t.happyToWaitEnabled||t.enPrimeur||t.preSell&&t.skus?.[0]?.presellPayments?.length>0?"country edgeCaseScenario":"country",children:[t.wineStyle&&"uk"===d.z.country?(0,a.FD)("span",{className:"wine-style",children:[(0,a.Y)("span",{"aria-hidden":"true",style:{backgroundColor:u[t.wineStyle]||"#cccccc"}}),t.wineStyle]}):"",t.country?(0,a.FD)("div",{className:"country-container country-grapeVariety",children:[(0,a.Y)(r(),{src:(0,c.ey)(t?.country),alt:"Country",width:24,height:16,className:"case"}),(0,a.Y)("span",{className:"country-title",children:t.country})]}):"",!("uk"===d.z.country&&t.wineStyle)&&t.grape?(0,a.FD)("div",{className:"grapeVariety-container country-grapeVariety",children:[(0,a.Y)(l.I,{kind:"blend-type",size:"m"}),(0,a.Y)("span",{className:"grapeVariety-title",children:t.grape})]}):""]}),(0,a.Y)("div",{css:n,children:t.grape&&t.wineStyle&&"uk"===d.z.country?(0,a.FD)("div",{className:"grapeVariety-container country-grapeVariety",children:[(0,a.Y)(l.I,{kind:"blend-type",size:"m"}),(0,a.Y)("span",{className:"grapeVariety-title",children:t.grape})]}):""})]})}},51112:(e,t,i)=>{i.d(t,{M:()=>l});var a=i(75213);i(60004);var n=i(86993);let r=e=>"Can"===e?"Can":"Bag in Box"===e||"Tetra Pack"===e?"Box":"Bottle",l=e=>{let t,{productType:i,bottleType:l="Wine",numberOfBottles:s}=e;if(!i||0===s||void 0===s||n.pR.map(e=>e.toLowerCase()).includes(i.toLowerCase()))return null;let o=r(l);return t=(s||0)>1?"Box"===o?"es":"s":"",(0,a.FD)("div",{className:"num-bottles",children:[s," ",o,t]})}},63941:(e,t,i)=>{i.d(t,{Z:()=>eP});var a=i(75213),n=i(60004),r=i(44098),l=i(58229),s=i(20163),o=i(35477),d=i(80733),c=i(30397),u=i(2327),m=i(21150),h=i(93681),p=i(7292),f=i(67652),v=i(72076),g=i(3406),y=i(93570),b=i(50964),Y=i(17698),w=i.n(Y),N=i(23778),k=i(62579),C=i(64924);let D=(0,n.memo)(e=>{let{view:t="desktop"}=e,i=(0,C.usePathname)(),s=(0,r.u)(),Y=(0,l.css)` 247 ${s.widgets.StateSelector?.default} 248 `,D=(0,l.css)` 249 ${s.widgets.StateSelector?.locationWrapper} 250 `,[x,F]=(0,n.useState)(""),[S,I]=(0,n.useState)(""),[$,A]=(0,n.useState)(!1),[z,{open:T,close:E}]=(0,h.j)(!1),P=(0,o.pk)(e=>e.selectedState),L=(0,o.pk)(e=>e.setSelectedState),{trackImpression:M,trackSelection:B}=(0,N.u)(),R=()=>!i.toLowerCase().includes("aarp"),H=e=>d.A.filter(t=>t.stateCode===e&&t?.shippableBrands.length>0&&(t.shippableBrands.includes(v.z?.brandId)||t.shippableBrands.includes("all"))),O=()=>{let e=window.location.pathname?.split("/").find(Boolean);e&&("wine"===e||"search"===e)&&window.location.reload()},W=async e=>{try{let t=(0,y.wD)(),i=await t.User.userSetLocation({stateCode:e});f.vF.info("Location :",i),O()}catch(e){f.vF.error("Location Context:",e)}},{screen:j}=(0,b._)(),q=()=>{E()},_=async()=>{await (0,k.B)(),M()};return(0,n.useEffect)(()=>{let e=(0,g.Ri)("shoppinglocation"),i=(0,g.Ri)("showEmbeddedStatePopup"),a=e?e?.split("-")?.[1]:null,n=e=>{L(e),F(e)},r=()=>{let e=["lg","xl","xxl"].includes(j);("desktop"===t&&e||"mobile"===t&&!e)&&(T(),(0,g.Ih)(),_())};a?(n(a),"true"===i&&R()&&(f.vF.info("Auto-opening StateSelector modal"),r())):((0,g.Ay)(n),R()?(f.vF.info("Auto-opening StateSelector modal after geolocation"),r()):f.vF.info("Auto-opening StateSelector modal prevented on AARP page"))},[i]),(0,a.FD)(a.FK,{children:[(0,a.FD)("div",{onClick:T,css:D,tabIndex:0,role:"button",onKeyDown:e=>"Enter"===e.key&&T(),children:[(0,a.Y)(p.I,{kind:"location",size:"m"}),(0,a.FD)("div",{className:"location",children:[(0,a.FD)("span",{className:"location-text",children:["Shipping to ",(0,a.Y)("strong",{children:P})]}),(0,a.Y)(p.I,{kind:"chevron-down",size:"xs"})]})]}),(0,a.Y)(c.a,{zIndex:10,className:"state-selector-modal vine-react-app",size:785,opened:z,onClose:E,centered:!0,withCloseButton:!1,css:Y,closeOnClickOutside:!1,children:(0,a.FD)("div",{className:"modal-body-inner text-center",children:[(0,a.Y)("div",{className:"selector-title",children:"Before your wine adventure begins..."}),(0,a.Y)("div",{className:"selector-subtitle",children:$?(0,a.FD)(a.FK,{children:[(0,a.FD)("span",{className:"error-text",children:["We're sorry. Due to regulations, we cannot ship wine to ",S,"."]}),(0,a.Y)("br",{})," ",(0,a.Y)("span",{children:"Please change your selection to proceed."})]}):"Tell us where to send your wine."}),(0,a.FD)("div",{className:"state-selection",children:[(0,a.Y)(u.l6,{"data-testid":"state-selector-field",maxDropdownHeight:250,placeholder:"Select your shipping state",data:d.A?.map(e=>({label:e.stateName,value:e.stateCode})),styles:{rightSection:{pointerEvents:"none"},dropdown:{"> div":{height:"250px"}}},rightSection:(0,a.Y)(p.I,{kind:"chevron-down",size:"m"}),dropdownPosition:"flip",withinPortal:!1,shadow:"md",zIndex:1e3,transitionProps:{transition:"scale-y",duration:80,timingFunction:"ease"},classNames:{item:"dropdown-item"},value:x,onChange:e=>{F(e),A(!1)}}),(0,a.Y)(m.$,{kind:"primary",disabled:!x,className:"cursor-pointer verify-state-btn",onClick:()=>{let e=H(x),t=d.A?.find(e=>e.stateCode===x),i=t?.stateName||"";I(i),e.length?(L(x),W(x),q(),B(i)):(A(!0),B(i,"unable to ship to selected state"))},"data-testid":"state-selector-verify-button",children:"Verify"})]}),(0,a.Y)("div",{className:"state-selector-terms",children:'By clicking "Verify," you acknowledge that you are at least 21 years old.'}),(0,a.FD)("div",{className:"state-selector-compliance",children:["All orders are accepted and fulfilled by a"," ",(0,a.Y)(w(),{href:(()=>{let e="/faq#/shipping-and-delivery/what-states-do-you-deliver-to";return["law","tcm"].includes(v.z?.brandId)?e+="-law":["osw","npr"].includes(v.z?.brandId)&&(e+=`-${v.z?.brandId}`),e})(),"data-testid":"faq-link",title:"What states do you deliver to?",target:"_blank",className:"text-center",prefetch:!1,children:"licensed retailer or winery"}
250)," ","in your selected delivery state."]})]})})]})});var x=i(81600),F=i(53681),S=i(53406);let I={desktop:{width:189,height:38},mobile:{width:104,height:22}},$={law:I,wpe:I,lwnz:I},A=(0,n.memo)(e=>{let{isSticky:t=!1,isDrawer:i=!1}=e,n=(0,r.u)(),s=(0,l.css)` 251 ${n.widgets.GlobalHeader?.headerLogo} 252 `,o=n.breakpoints.lg?n.breakpoints.lg.replace("@media",""):"",d=n.assets.headerLogoImgUrl,c=n.assets.headerLogoMobileImgUrl;t?(d=n.assets.stickyHeaderLogoImgUrl,c=n.assets.stickyHeaderLogoImgUrl):i&&(d=n.assets.drawerHeaderLogoImgUrl||n.assets.headerLogoImgUrl,c=n.assets.drawerHeaderLogoMobileImgUrl||n.assets.headerLogoMobileImgUrl);let{width:u,height:m}=$[v.z.brandId]?.desktop||{},{width:h,height:p}=$[v.z.brandId]?.mobile||{};return(0,a.Y)("div",{"data-test":"widget-HeaderLogo",css:s,id:"header-logo",children:(0,a.Y)(S.N,{href:"/","data-event":"headerLogoClick","data-section":"header:logo","data-action":"logo","data-name":"header logo","data-text":"logo",onClick:()=>{(0,F.d)(v.z.brandId,"topNavClick")},children:(0,a.FD)("picture",{children:[(0,a.Y)("source",{media:o,srcSet:d,width:u,height:m}),(0,a.Y)("img",{src:c,alt:"Logo",className:i?"drawer-header-logo-img":void 0,fetchPriority:t?"low":"high",loading:t?"lazy":"eager",width:h,height:p})]})})})});var z=i(13026),T=i.n(z);function E(e){let{title:t,tabUrl:i,content:a}=e.fields;return{title:t,url:i,children:function(e){let t=[];if(e)for(let i of e)i?.fields?.content?.forEach(e=>{e?.fields.content?.forEach(e=>{let i=T()(e,"sys.contentType.sys.id");if("navigation"===i){let{title:a,sectionLink:n,content:r}=e.fields;t.push({title:a,url:n?.fields?.url,children:r,id:e.sys?.id,contentItem:e,contentType:i})}else"menuBanner"===i?t.push({contentType:i,contentItem:e,id:e.sys?.id}):"richtext"===i&&t.push({contentType:i,contentItem:e,id:e.sys?.contentType?.sys})})});return t}(a),id:e.sys?.id}}var P=i(35263),L=i(85331);let M=(0,n.memo)(e=>{let{target:t,children:i,className:n,position:s="right",onClose:o,isAccessibleFor:d,stickyContent:c,keepMounted:u=!0}=e,m=(0,r.u)(),[f,{close:v,toggle:g}]=(0,h.j)(!1),y=(0,l.css)` 253 .mantine-Drawer-overlay, 254 .mantine-Drawer-inner { 255 ${m.breakpoints.lg} { 256 display: none; 257 } 258 } 259 } 260 `;function b(){v(),o&&o()}return(0,a.FD)("div",{children:[(0,a.Y)("div",{onClick:g,onKeyDown:g,role:"button",tabIndex:0,children:t}),(0,a.FD)(P._,{opened:f,onClose:b,withCloseButton:!1,css:[m.widgets.DrawerMenu?.drawerContainer,"notDesktop"===d&&y],position:s,className:n,keepMounted:u,children:[(0,a.FD)("div",{className:"drawer-header-logo-section",children:[(0,a.Y)(A,{isDrawer:!0}),(0,a.Y)("div",{onClick:b,onKeyDown:b,role:"button",tabIndex:0,"data-testid":"close-button",children:(0,a.Y)(p.I,{kind:"close",size:"xs"})})]}),(0,a.Y)("div",{"data-testid":"drawer-main",className:"drawer-main",children:i}),c&&(0,a.Y)("div",{className:"drawer-footer-sticky-button-section",children:c.map(e=>(0,a.Y)("div",{children:(0,a.Y)(L.g,{contentItem:e})},`sticky-button-${e.fields?.title}`))})]})]})});var B=i(2675),R=i(51538),H=i(88282);let O=(0,n.memo)(e=>{let{fields:t,setStickyContent:i,dlClickEventHandler:r,cb:l,expandedMenuId:s}=e;(0,n.useEffect)(()=>{if(i){let e=T()(t,"stickyContent");e&&i(e)}},[t]);let o=(e,t)=>{let i=e.fields.emphasizeTitle?"level1Link emphasize":"level1Link",n=E(e),o=e.fields.content&&e.fields.content.length>0,d=n.url&&"#"!==n.url&&""!==n.url;if(o){let o=s===n.id;return(0,a.Y)(R.k,{className:i,label:n.title,rightSection:(0,a.Y)("i",{className:"navMenuItemIcon"}),opened:o,onClick:()=>{r(n.title,void 0,o?"collapse":"expand"),l(n.id)},...(0,H.H)(e.sys.id,"title")},n.title+t)}return d?(0,a.Y)("a",{href:n.url,className:i,onClick:()=>r(n.title,void 0,"navigation"),...(0,H.H)(e.sys.id,"title"),children:(0,a.Y)("span",{children:n.title})},n.title+t):null};return t.tabPanes?.map((e,t)=>(0,a.Y)(B.R,{content:e,contentTypes:["tab"],fallback:e=>o(e,t),children:o(e,t)},`${e.fields.title}-tab-${t+1}`))});var W=i(37714);let j=e=>{let{url:t,level2MenuContentTitle:i,level3MenuContentTitle:n,linkContentTitle:r,linkContentId:l,dlClickEventHandler:s}=e;return(0,a.Y)("a",{href:t,className:"level3Link",onClick:()=>s(`${i}:${n}:${r}`),...(0,H.H)(l,"title"),children:r})},q=e=>{let{level3MenuContent:t,level2MenuContentTitle:i,dlClickEventHandler:n}=e;return t?(0,a.FD)("div",{children:[t?.children?.map(e=>(0,a.Y)(B.R,{content:e,contentTypes:["link"],children:(0,a.Y)(j,{url:e?.fields?.url,level2MenuContentTitle:i,level3MenuContentTitle:t.title,linkContentTitle:e?.fields?.title,linkContentId:e?.sys?.id,dlClickEventHandler:n})},e?.fields?.title)),t?.url&&(0,a.FD)("a",{href:t.url,className:"navMenuSectionLink",onClick:()=>n(`${i}:${t.title}:View all ${t.title}`),...(0,H.H)(t.id,"title"),children:["View all ",t.title]})]}):(0,a.Y)("div",{})},_=(e,t,i)=>i?e.filter(e=>e!==t):[...e,t],U=e=>{let{menuItems:t,onBack:i,dlClickEventHandler:r}
260=e,[l,s]=(0,n.useState)([]);if(!t)return null;let o=t?.children?.map(e=>{if("navigation"===e.contentType){let i=!!e.children?.length,n=e.url&&"#"!==e.url&&""!==e.url;if(i){let i=l.includes(e.id);return(0,a.Y)(R.k,{className:"level2Link",label:e.title,rightSection:(0,a.Y)(p.I,{kind:"chevron-down",size:"m"}),opened:i,onClick:()=>{r(`${t.title}:${e.title}`,void 0,i?"collapse":"expand"),s(_(l,e.id,i))},...(0,H.H)(e.id,"title"),children:(0,a.Y)(q,{level3MenuContent:e,level2MenuContentTitle:t.title,dlClickEventHandler:r})},e.id)}return n?(0,a.Y)(R.k,{component:"a",href:e.url,className:"level2Link",label:e.title,onClick:()=>{r(`${t.title}:${e.title}`,void 0,"navigation")},...(0,H.H)(e.id,"title")},e.id):null}return(0,a.Y)("div",{className:"navMenuContent",children:(0,a.Y)(W.a,{contentJsonList:[e.contentItem],dlClickEventHandler:e=>{r(`${t.title}:${e}`)}})},e.id)});return(0,a.FD)(a.FK,{children:[(0,a.FD)("div",{className:"navMenuBackLink",children:[(0,a.Y)("button",{type:"button",className:"navMenuBackButton",onClick:()=>{r(t.title,void 0,"collapse"),i()},"aria-label":"Go back to previous menu",children:(0,a.Y)(p.I,{kind:"back",size:"xs"})}),t?.url&&"uk"===v.z.country?(0,a.Y)("a",{href:t.url,className:"navMenuBackLinkTitle",onClick:e=>{e.stopPropagation(),r(`${t.title}`,void 0,"navigation")},children:t?.title}):(0,a.Y)("span",{className:"navMenuBackLinkTitle",children:t?.title})]}),o]})};var K=i(84273),G=i(21960);let V=(0,n.memo)(e=>{let{cmsMainNav:t=[],footerNavBar:i,socialLinks:s,badgeImages:o,dlClickEventHandler:d}
260=e,[c,u]=(0,n.useState)(!1),[m,h]=(0,n.useState)(),[f,v]=(0,n.useState)(),g=(0,r.u)(),y=(0,l.css)` 261 ${g.widgets.DrawerMenu?.mobileNavMenuContainer} 262 `,b=(0,l.css)` 263 left: ${c?"-100%":"0"}; 264 `,Y=(0,l.css)` 265 left: ${c?"0":"100%"}; 266 `,N=()=>{u(!1),h(void 0)},k=e=>(0,a.Y)(O,{fields:e,setStickyContent:v,dlClickEventHandler:d,cb:e=>{u(!0),h(e)},expandedMenuId:m}),C=e=>e?.fields?.content?.find(e=>e?.sys?.id===m),D=e=>e?.fields?.tabPanes?.find(e=>e?.sys?.id===m),x={tabs:function(e){for(let t of e.fields?.tabPanes??[]){if(t?.sys?.contentType?.sys?.id==="conditionalContainer"){let e=C(t);if(e)return e}if(t?.sys?.id===m)return t}return null},conditionalContainer:function(e){for(let t of e?.fields?.content||[]){if(t?.sys?.contentType?.sys?.id==="tabs"){let e=D(t);if(e)return e}if(t?.sys?.id===m)return t}return null}},F=(0,n.useMemo)(()=>t?.map(e=>{let{fields:{entryTitle:t}}=e;return(0,a.Y)(B.R,{content:e,contentTypes:["tabs"],fallback:e=>k(e?.fields),children:(0,a.Y)("div",{children:k(e?.fields)})},t)}),[t]);return(0,a.Y)("div",{"data-test":"widget-MainNavMobile",className:"header-mainnav-mobile",children:(0,a.Y)(M,{position:"left",target:(0,a.Y)(p.I,{kind:"hamburger-menu",size:"l"}),onClose:function(){u(!1),h(void 0)},className:"navigation-link",isAccessibleFor:"notDesktop",stickyContent:f,keepMounted:!1,children:(0,a.FD)("div",{css:y,children:[(0,a.FD)("div",{css:b,className:"level1MenuPane",children:[(0,a.Y)("div",{className:"menu-container",children:F}),(0,a.FD)("div",{children:[function(e){return e?.length?(0,a.Y)("div",{className:"mainnav-mobile-drawer-social-panel",children:e.map(e=>{let{fields:t}=e;return(0,a.Y)("div",{children:(0,a.Y)(w(),{style:{borderBottom:"none"},prefetch:!1,href:t?.url??"","data-testid":t?.title,children:(0,a.Y)(p.I,{kind:t?.title,size:"m","data-test":t?.title})})},`social-${t?.title}`)})}):null}(s?.filter(e=>!!e)),function(e){return e?.length?(0,a.Y)("div",{className:"mainnav-mobile-drawer-footer-links-panel",children:(0,a.Y)("div",{children:e?.map(e=>{let{fields:t}=e;return(0,a.Y)(G.A,{fields:t},`footer-${t.title}`)})})}):null}(i),function(e){return e?.length?(0,a.Y)("div",{className:"mainnav-mobile-drawer-badges-panel",children:e.map(e=>{let{fields:t}=e,i=t?.icon&&(0,a.Y)(K.$,{isNextImg:!0,contentItem:t?.icon,disableAutoSize:!0},`img-${t.icon.sys?.id}`);return t?.url?(0,a.Y)("div",{"data-testid":"badge-link",children:(0,a.Y)(w(),{prefetch:!1,href:t.url??"",children:i})},`badge-${t.url}`):i})}):null}(o?.filter(e=>!!e))]})]}),(0,a.Y)("div",{css:Y,className:"level2And3MenuPane",children:(0,a.Y)("div",{children:m&&function(){let e=function(e){for(let t of e){if(!t)continue;if(t.sys?.id===m)return t;let e=x[t.sys?.contentType?.sys?.id??""];if(e){let i=e(t);if(i)return i}}return null}(t);if(!e)return null;let i=E(e);return(0,a.Y)(U,{menuItems:i,onBack:N,dlClickEventHandler:d})}()})})]})})})});var Q=i(10865),J=i(70026),X=i(21192);let Z=e=>{let{menuContent:t,globalHeaderHeight:i,stickyContent:n,dlClickEventHandler:s}=e,o=(0,r.u)(),d=(0,l.css)` 267 ${o.widgets.GlobalHeader?.navStickyButton} 268 `,c=Math.max((0,X.B)()?window.innerHeight:0);return(0,a.FD)(J.F.Autosize,{mah:`${c-i-32}px`,children:[(0,a.Y)(W.a,{contentJsonList:t,dlClickEventHandler:s}),n&&(0,a.Y)("div",{css:d,children:n.map((e,t)=>(0,a.Y)(L.g,{contentItem:e,className:"desktop-sticky-content",dlClickEventHandler:s},`stickyContent${t+1}`))})]})};function ee(e){return e instanceof Object&&e?.sys&&e?.fields}let et=(0,n.memo)(e=>{let{cmsMainNav:t=[],id:i,globalHeaderHeight:s,dlClickEventHandler:o}=e,d=(0,r.u)(),c=d.widgets.GlobalHeader||{},u=(0,l.css)` 269 ${c.mainNavBarWrapper} 270 `,m=(0,l.css)` 271 ${c.mainNavBarMenuTabPane} 272 ${d.mixins.containerLayoutFixed} 273 `,h=(0,l.css)` 274 display: none; 275 `,[p,f]=(0,n.useState)([]);(0,n.useEffect)(()=>{let e=document.getElementsByTagName("html")?.[0];p?.length>0?e.style.overflow="hidden":e.style.overflow="visible"},[p]);let g=e=>{f(t=>[...t,e])},y=e=>{f(t=>t.filter(t=>t!==e))};function b(e,t){if(!e?.fields)return null;let{title:i,content:n,tabUrl:r="#",emphasizeTitle:l,stickyContent:d}=e.fields,c=T()(e,"sys.id"),u=l?"megaNavTab emphasize":"megaNavTab";return(0,a.Y)("div",{className:"topLevelLink",children:n&&n?.length>0?(0,a.FD)(Q.j,{width:"-webkit-fill-available",shadow:"md",openDelay:500,closeDelay:500,withinPortal:"newstf"===v.z.brandId,onOpen:()=>{g(t);let e=document.querySelector(".nav-overlay");e instanceof HTMLElement&&e.classList.add("active-nav-overlay")},onClose:()=>{y(t);let e=document.querySelector(".nav-overlay");e instanceof HTMLElement&&e.classList.remove("active-nav-overlay")},position:"bottom",children:[(0,a.Y)(Q.j.Target,{children:(0,a.Y)("div",{children:(0,a.Y)(S.N,{className:u,href:r,"data-event":"mainNavbarClick","data-section":`main navbar:${i}`,"data-action":"navigation","data-name":"main navbar","data-text":i,"data-nav-label":i,onClick:()=>o(i),...(0,H.H)(c,"title"),children:(0,a.Y)("span",{children:i})})})}),(0,a.Y)(Q.j.Dropdown,{css:m,children:(0,a.Y)("div",{className:"header-main-nav-layout",children:(0,a.Y)(Z,{globalHeaderHeight:s,menuContent:n,stickyContent:d,dlClickEventHandler:e=>{o(`${i}:${e}`)}})})})]}):(0,a.Y)("div",{children:(0,a.Y)(S.N,{className:u,href:r,"data-action":"navigation","data-section":`main navbar:${i}`,"data-name":"main navbar","data-text":i,"data-nav-label":i,onClick:()=>o(i),...(0,H.H)(c,"title"),children:(0,a.Y)("span",{children:i})})})},c)}let Y=e=>e?.map((e,t)=>(0,a.Y)(B.R,{content:e,contentTypes:["tab"],fallback:e=>b(e,t),enableLoader:!0,children:b(e,t)},`${e?.fields?.title||e?.fields?.entryTitle||t}`))||null;return(0,a.FD)("div",{className:"widget-MainNavBar","data-test":"widget-MainNavBar",css:u,id:i,children:[(0,a.Y)("div",{className:"topLevelLinks",children:t?.map(e=>(0,a.Y)(B.R,{content:e,contentTypes:["tabs"],fallback:e=>Y(e?.fields?.tabPanes),enableLoader:!0,children:(0,a.Y)("div",{children:Y(e?.fields?.tabPanes)})},`${e?.fields?.entryTitle}-mainNav`))}),(0,a.Y)("div",{css:h,children:t?.map(e=>{let t=T()(e,"sys.id"),i=[];return!function e(t,i,a){if(ee(t)){a(t,i);var n=e;if(t?.fields&&"object"==typeof t?.fields)for(let e of Object.keys(t.fields)){var r=t.fields[e];if(Array.isArray(r))for(let e of r)n(e,i+e?.sys?.id,a);else r instanceof Object&&n(r,i+r?.sys?.id,a)}}}(e,t,(e,t)=>{let n=e?.sys?.contentType?.sys?.id;ee(e)&&"link"===n&&i.push((0,a.Y)("a",{href:e?.fields?.url,children:e?.fields?.title},t))}),(0,a.Y)("div",{children:i},t)})})]})}),ei=(0,n.memo)(e=>{let{globalHeaderHeight:t,cmsMainNav:i,dlClickEventHandler:n}=e,s=(0,r.u)(),o=s.widgets.GlobalHeader||{},d=s.breakpoints.lg?s.breakpoints.lg.replace("@media",""):"",c=(0,l.css)` 276 ${o?.stickymainNavWrapper} 277 `,u=(0,l.css)` 278 display: none; 279 @media ${d} { 280 display: block; 281 } 282 `;return(0,a.FD)("div",{css:c,className:"sticky-nav-bar",children:[(0,a.Y)("div",{css:u,children:(0,a.Y)(A,{isSticky:!0})}),(0,a.Y)(et,{globalHeaderHeight:t,cmsMainNav:i,dlClickEventHandler:n})]})});var ea=i(41010);let en=(0,n.memo)(e=>{let{isSticky:t}=e,i=(0,o.pk)(e=>e.selectedState),s=(0,n.useRef)(null),d=(0,r.u)(),c=(0,l.css)` 283 ${d.widgets.GlobalHeader?.headerSearchInput} 284 `,{screen:u}=(0,b._)(),m=(0,n.useCallback)(()=>{let e,t=s.current,i=["lg","xl","xxl"].includes(u);if(!t)return 0;let a=t.closest("#search-nav-bar"),n=t.querySelector(".searchbar-grid-block-container");return i?Math.ceil(a?.getBoundingClientRect().bottom):Math.ceil(n?.getBoundingClientRect().bottom)},[u]),h=()=>{let e=m(),t=s.current?.querySelector(".search-overlay");return t?.style?.setProperty("top",`${e}px`),e},f=e=>{let t=s.current;if(!t)return;
284let i=t.closest(".navbar-center-container"),a=t.closest(".navbar-center-container")?.previousElementSibling,n=document.querySelector("#newHeaderReactApp"),r="input-on-focus",l="active-search-overlay";e?(i?.classList.add(r),a?.classList.add(r),n?.classList.add(l),document.getElementsByTagName("html")[0].style.overflow="hidden",h()):(i?.classList.remove(r),a?.classList.remove(r),n?.classList.remove(l),document.getElementsByTagName("html")[0].style.overflow="visible"),document.addEventListener("keydown",function(e){"Escape"===e.key&&(i?.classList.remove(r),a?.classList.remove(r),n?.classList.remove(l),document.getElementsByTagName("html")[0].style.overflow="visible",document.activeElement.blur())})};(0,n.useEffect)(()=>{let e=s.current?.querySelector(".aa-Input"),t=()=>f(!0);return e?.addEventListener("focus",t),()=>e?.removeEventListener("focus",t)},[s.current,i]);let g=()=>{f(!0);let e=s.current?.querySelector(".aa-Form");e?.reset()};return(0,a.FD)("div",{ref:s,css:c,className:"header-search-bar",children:[(0,a.Y)("span",{"data-testid":"search-icon",className:"search-icon",onClick:g,onKeyDown:e=>"Enter"===e.key&&g(),tabIndex:0,role:"button",children:(0,a.Y)(p.I,{kind:"search",size:"m"})}),(0,a.Y)("div",{className:"searchbar-grid-block-container",children:v.z?.algoliaIndexName?(0,a.Y)(ea.A,{isSticky:t,onCancelSearch:()=>f(!1),setSearchOverLay:h}):(0,a.Y)(x.A,{align:"center",className:"searchbar-grid",children:(0,a.Y)(x.A.Col,{className:"w-100",children:(0,a.FD)("div",{className:"searchbar-input-container",children:[(0,a.Y)("input",{type:"search",placeholder:"Search for products",name:"search",className:"temp",autoComplete:"off"}),(0,a.Y)("span",{className:"prefix-icon",children:(0,a.Y)(p.I,{kind:"search",size:"s"})})]})})})})]})}),er=(0,n.memo)(e=>{let{cmsFavourite:t}=e,[i,s]=(0,n.useState)(!1),o=(0,r.u)(),d=(0,l.css)` 285 ${o.widgets.GlobalHeader?.headerFavourites} 286 `;return(0,a.Y)("div",{"data-test":"widget-HeaderFavourites",css:d,id:"header-favourites",children:t?.fields?.url&&(0,a.FD)("a",{href:t?.fields?.url,className:`${i?"icon-hover":""} favourites-link`,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),"data-event":"headerFavouriteClick","data-section":"header:favourite","data-action":"favourite","data-name":"header favourite","data-text":"favourite",children:[(0,a.Y)(p.I,{kind:i?"heart-solid":"heart",size:"m"}),v.z?.country!=="us"&&(0,a.Y)("span",{children:"Favourites"})]})})});var el=i(37324),es=i(42390),eo=i(52642),ed=i(1845);let ec=(0,n.memo)(e=>{let t,{cmsAccountNav:i,enableCurityLogin:n}=e,s=(0,o.kH)(eo.JV),d=(0,o.kH)((0,el.k)(eo.Qn)),c=(0,r.u)(),u=(0,l.css)` 287 ${c.widgets.GlobalHeader?.headerSignIn} 288 `,m=d?.firstName?.charAt(0)+(d?.lastName?.charAt(0)||""),{screen:h}=(0,b._)(),f=(0,X.B)()?window.location.href:"/",g=["lg","xl","xxl"].includes(h),y=()=>(0,a.FD)("div",{className:"user-logged-in-label",children:[(0,a.Y)("span",{className:"sign-in-label",children:m}),(0,a.FD)("span",{className:"sign-in-name",children:["Hi, ",m]})]});return t="vws"===v.z.brandId?"/jsp/templates/page_elements/au/vws/velocityRedirectPage.jsp":n?`/jsp/curity/signin.jsp?redirectionURL=${f}`:"/jsp/registration/common/account_login.jsp",(0,a.Y)("div",{"data-test":"widget-HeaderSignIn",css:u,children:s?(0,a.Y)("div",{id:"user-logged-in",children:g?(0,a.Y)(es.T,{target:y(),targetContent:i?.fields?(0,a.FD)("div",{children:[i?.fields.navigations?.map(e=>(0,a.Y)(B.R,{content:e,contentTypes:["link"],children:(0,a.Y)(ed.W.Item,{component:"a",href:e?.fields?.url,"data-event":"accountNavClick","data-section":`account:${e?.fields?.title}`,"data-action":"navigation","data-name":"account navigation","data-text":e?.fields?.title,children:e?.fields?.title},e?.fields?.url)},e?.fields?.entryTitle)),(0,a.Y)(ed.W.Divider,{}),d?.loginType==="hard_logged"?(0,a.Y)(ed.W.Item,{component:"a",onClick:()=>{(0,F.d)("logout","logout"),(0,o.ri)("soft_logged")},"data-event":"accountNavClick","data-section":"account:Sign out","data-action":"navigation","data-name":"account navigation","data-text":"Sign out",className:"signout-button",children:"Sign out"}):(0,a.Y)(ed.W.Item,{component:"a",onClick:()=>{(0,F.d)("not you? sign out","notYou"),(0,o.ri)("hard_logged")},"data-event":"accountNavClick","data-section":"account:Not you? Sign out","data-action":"navigation","data-name":"account navigation","data-text":"Not you? Sign out",className:"signout-button",children:"Not you? Sign out"})]}):null,dropdownClassName:"account-navbar",hover:!0}):(0,a.Y)(M,{position:"left",target:y(),className:"account-navbar",children:i?.fields?(0,a.FD)(a.FK,{children:[(0,a.FD)("p",{className:"drawer-menu-heading",children:["Hi, ",d?.firstName]}),(0,a.FD)("div",{children:[i?.fields.navigations?.map(e=>(0,a.Y)(B.R,{content:e,contentTypes:["link"],children:(0,a.Y)(R.k,{component:"a",label:e?.fields?.title,href:e?.fields?.url,"data-event":"accountNavClick","data-section":`account:${e?.fields?.title}`,"data-action":"navigation","data-name":"account navigation","data-text":e?.fields?.title},e?.fields?.url)},e?.fields?.title)),d?.loginType==="hard_logged"?(0,a.Y)(R.k,{component:"a",label:"Sign out",onClick:()=>{(0,F.d)("logout","logout"),(0,o.ri)("soft_logged")},"data-event":"accountNavClick","data-section":"account:Sign out","data-action":"navigation","data-name":"account navigation","data-text":"Sign out",className:"signout-button highlighted-link"}):(0,a.Y)(R.k,{component:"a",label:"Not you? Sign out",onClick:()=>{(0,F.d)("not you? sign out","notYou"),(0,o.ri)("hard_logged")},"data-event":"accountNavClick","data-section":"account:Not you? Sign out","data-action":"navigation","data-name":"account navigation","data-text":"Not you? Sign out",className:"signout-button highlighted-link"})]})]}):null})}):(0,a.Y)("div",{id:"user-not-logged-in",children:(0,a.FD)("button",{type:"button",className:"sign-in-link",onClick:()=>{(0,F.d)("top navigation click","loginButton"),window.location.assign(t)},children:[(0,a.Y)(p.I,{kind:"user",size:"m"}),v.z?.country!=="us"&&(0,a.Y)("span",{children:"Sign in"})]})})})});var eu=i(89512),em=i(67730),eh=i(43264),ep=i(96255);let ef=e=>{let{itemsCount:t,total:i}=e,n=v.z?.country!=="us"&&"vws"!==v.z.brandId;return(0,a.FD)(a.FK,{children:[(0,a.FD)("div",{className:"header-cart-icon-container",children:[(0,a.Y)(p.I,{kind:"cart",size:"m"}),(0,a.Y)("span",{className:"cart-quantity",children:t})]}),n&&(0,a.Y)("div",{className:"header-cart-price-container",children:(0,a.Y)("span",{"data-testid":"header-cart-price",children:(0,eu.v)(i)})})]})},ev=(0,n.memo)(e=>
288{let t=(0,r.u)(),[i,s]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1),u=(0,n.useRef)(!1),m=(0,o.tS)(o.Oj),h=!!m,{toggledElemRef:f}=(0,em.i)("fadedown","fadeout",h&&!v.z.enableNewMiniCart),g=(0,o.tS)(e=>e.resetNotification),{itemsCount:y,hasQuantity:b,total:Y}=e,N=t.widgets.GlobalHeader||{},k=(0,l.css)` 289 ${N.headerCart} 290 `,C=()=>{s(!1)};(0,n.useEffect)(()=>{let e=document.getElementById("miniCartClose");if(c(!!e),e)return e.addEventListener("click",C),()=>{e.removeEventListener("click",C)}},[]);let D={className:"header-cart-link","data-event":"headerCartClick","data-section":"header:cart","data-action":"cart","data-name":"header cart","data-text":"cart",onClick:()=>{s(!0),(0,F.d)("cart","cartIcon")}},[x,S]=(0,n.useState)(!1),I=e=>{g([{type:ep._n.ADD_TO_CART,timeout:e,expires:Date.now()+e}])};return(0,n.useEffect)(()=>{if(!u.current){u.current=!0;return}m&&"/cart"!==window.location.pathname?S(!0):m&&"/cart"===window.location.pathname&&I(4e3)},[m&&m.type===ep._n?.ADD_TO_CART]),(0,a.FD)("div",{"data-test":"widget-HeaderCart",className:`header-cart-count-container ${b?"has-quantity":""}`,id:"cart",css:k,children:[v.z.useNewCartAPI?(0,a.Y)(w(),{href:"/cart",...D,prefetch:!0,children:(0,a.Y)(ef,{itemsCount:y,total:Y})}):(0,a.Y)("a",{href:"/jsp/checkout/common/shoppingcart.jsp",...D,children:(0,a.Y)(ef,{itemsCount:y,total:Y})}),i&&d&&!v.z?.enableNewMiniCart&&(0,a.Y)("div",{className:"minicart-overlay",onClick:C,onKeyDown:C,role:"button",tabIndex:0,"aria-label":"Close mini cart"}),m?.message&&(0,a.FD)("div",{className:"cart-confirmation-popup",ref:f,children:[(0,a.Y)(p.I,{kind:"check",size:"m"})," ",m?.message]}),x&&m?.miniCart&&v.z.enableNewMiniCart&&(0,a.Y)(eh.A,{show:x,onClose:()=>{S(!1),I(0)},selectedItemCode:m?.miniCart?.itemCode,qty:m?.miniCart?.quantity})]})}),eg=(0,n.memo)(e=>{let{cmsAccountNav:t,cmsMainNav:i,socialLinks:n,footerNavBar:d,cmsFavourite:c,badgeImages:u,sticky:m,enableCurityLogin:h,globalHeaderHeight:p,dlClickEventHandler:f}=e,{itemsCount:g,cartTotal:y,hasQuantity:b}=(0,o.O)(),Y=(0,r.u)(),w=(0,l.css)` 291 ${Y.widgets.GlobalHeader?.searchNavBar} 292 `;return(0,a.Y)("div",{"data-test":"widget-SearchNavBar",css:w,id:"search-nav-bar",children:(0,a.Y)(s.A,{className:"text-right",children:(0,a.Y)("div",{className:"search-navbar-container",children:(0,a.FD)(x.A,{justify:"between",align:"center",className:"grid-search-navbar-container",children:[(0,a.Y)(x.A.Col,{xs:4,className:"navbar-left-container",children:(0,a.Y)(A,{})}),(0,a.FD)(x.A.Col,{xs:m?"auto":4,className:"navbar-center-container",children:[(0,a.Y)(V,{cmsMainNav:i,footerNavBar:d,socialLinks:n,badgeImages:u,dlClickEventHandler:(e,t,i)=>{f(e,"mainNavClick",i)}}),(0,a.Y)(ei,{globalHeaderHeight:p,cmsMainNav:i,dlClickEventHandler:(e,t,i)=>{f(e,"mainNavClick",i)}}),"amx"!==v.z.brandId&&(0,a.Y)(en,{isSticky:m})]}),(0,a.Y)(x.A.Col,{xs:m?"auto":4,className:"navbar-right-container",children:(0,a.FD)(x.A,{align:"center",justify:"end",children:["us"===v.z.country&&(0,a.Y)(x.A.Col,{className:"py-0 state-selector",xs:"auto",children:(0,a.Y)(D,{view:"mobile"})}),c&&c?.fields?.url!==""&&(0,a.Y)(x.A.Col,{className:"py-0 favourites-col-container",xs:"auto",children:(0,a.Y)(er,{cmsFavourite:c})}),(0,a.Y)(x.A.Col,{className:"py-0",xs:"auto",children:(0,a.Y)(ec,{enableCurityLogin:h,cmsAccountNav:t})}),(0,a.Y)(x.A.Col,{className:"py-0",xs:"auto",children:(0,a.Y)(ev,{itemsCount:g,hasQuantity:b,total:y})})]})})]})})})})});var ey=i(69824),eb=i(50483),eY=i(46749),ew=i(28443),eN=i(28195),ek=i(34775);let eC=(0,n.lazy)(()=>i.e(2527).then(i.bind(i,72527))),eD={home:"home",cart:"cart",myaccount:"myaccount",membership:"myaccount","Search PLP":"plp",category:"plp",pdp:"pdp","wine-preferences":"myaccount"},ex=(e,t)=>{if(!e||!t)return!1;let i=eD[e]||e;return t.includes(i)},eF=e=>e?.sys?.contentType?.sys?.id==="richtext",eS=e=>e?.sys?.contentType?.sys?.id==="dynamicContentSlot",eI=(e,t)=>{if(e.length>1){let i=(0,l.css)` 293 ${t} 294 `;return(0,a.Y)(n.Suspense,{fallback:(0,a.Y)("div",{className:"strip-banner-slider-wrapper",children:"Loading..."}),children:(0,a.Y)(eC,{richTextItems:e,sliderWrapperCss:i})})}return 1===e.length?(0,a.Y)(ew.V,{contentItem:e[0]}):null},e$=(e,t)=>{let i=e.fields?.layout;return i&&0!==i.length?(0,a.Y)(eN.A,{contentItem:e,children:i.filter(
294Boolean).map((e,i)=>{let n=(e.fields?.content??[]).filter(e=>e?.sys?.contentType?.sys?.id==="richtext");return(0,a.Y)(ek.bR,{contentItem:e,children:eI(n,t)},e.sys?.id||i)})}):null},eA=(0,n.memo)(e=>{let{cmsStripBannerBg:t,cmsStripBanner:i,pageSlug:s,stripBannerDisabledPages:o}=e,d=i?.sys?.contentType?.sys?.id,c=(0,r.u)(),u=c.widgets.GlobalHeader||{},m=c.widgets.SlickSlider?.wrapper,h=(0,l.css)` 295 ${u.stripBanner} 296 ${t&&`background-color: ${t.value};`} 297 `,[p,f]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{{let{userAgent:e}=navigator,t=e.includes("DWAPP"),i=/Mobi|Android|iPhone|iPad|iPod|BlackBerry|Windows Phone|webOS|Opera Mini|IEMobile/.test(e);f(t&&i)}},[]),v.z.isEmbedded||p||!d||ex(s,o))return null;let g=eF(i)?(0,a.Y)(ew.V,{contentItem:i}):eS(i)?e$(i,m):null;return g?(0,a.Y)("div",{"data-test":"widget-StripBanner",css:h,...(0,H.H)(e.id,"stripBanner"),children:g}):null});var ez=i(31709);let eT=e=>(0,l.css)` 298 display: none; 299 background-color: #f3eef8; 300 text-align: center; 301 padding: 0.5em 1em; 302 font-family: ${e.fonts.familySecondary}; 303 font-size: ${e.fonts.fontSize14}; 304 color: ${e.colors.black}; 305 .points-banner-greeting { 306 font-weight: ${e.fonts.weightNormal}; 307 } 308 .points-banner-balance { 309 font-weight: ${e.fonts.weightBold}; 310 } 311 .sticky-header & { 312 display: none; 313 } 314 ${e.breakpoints.lg} { 315 display: block; 316 } 317`,eE=(0,n.memo)(()=>{let e=(0,o.kH)(eo.JV),t=(0,o.kH)((0,el.k)(eo.Qn)),i=(0,o.kH)(eo.Wi);if(!(0,ez.H8)()||!e||void 0===i)return null;let n=`${t?.firstName||""} ${t?.lastName||""}`.trim();return(0,a.Y)("div",{"data-testid":"points-banner",css:eT,className:"points-banner",children:(0,a.FD)(s.A,{className:"text-right",children:[(0,a.FD)("span",{className:"points-banner-greeting",children:["Hi ",n,","]})," ",(0,a.FD)("span",{className:"points-banner-balance",children:[(0,ez.Ui)(i)," Velocity Points"]})]})})}),eP=(0,n.memo)(e=>{let{accountNavbar:t,socialLinks:i,badgeImages:o,mainNavbar:d,stickyHeader:c,footerNavBar:u,favorites:m,stripBanner:h,stripBannerBackground:p,stripBannerDisabledPages:f}=e?.cmsSiteConfig?.fields||{},g=(0,n.useRef)(null),y=(0,n.useRef)(null),Y=(0,n.useRef)(null),[w,N]=(0,n.useState)(0),[k,C]=(0,n.useState)({global:0,main:0}),[x,S]=(0,n.useState)(!1),I=(0,r.u)().widgets.GlobalHeader||{},{screen:$}=(0,b._)(),A=(0,l.css)` 318 ${I.wrapper} 319 `,z=()=>{let e=g.current?.offsetHeight||0,t=x;x&&y.current?t=y.current?.getBoundingClientRect().top<=k?.main:!x&&g.current&&(t=g.current?.getBoundingClientRect().bottom<0,C({global:(Y.current?.offsetHeight||0)+24,main:-Math.ceil(g.current?.offsetHeight)})),N(Math.ceil((t?e:Y.current?.getBoundingClientRect().bottom)||0)),S(t)};(0,n.useEffect)(()=>{Y.current&&N(Y.current?.offsetHeight||0)},[]),(0,n.useEffect)(()=>{if(!g.current||!c)return;let e=new eb.default(z);return e.observe(g.current),window.addEventListener("scroll",z),()=>{window.removeEventListener("scroll",z),e?.disconnect()}},[$,c,x]);let T=(e,t,i)=>{(0,F.d)(e,t||"click",i)};return(0,n.useEffect)(()=>{"us"===v.z.country&&(0,eY.l0)()},[]),(0,a.FD)(a.FK,{children:[(0,a.FD)(ey.t,{id:"mainHeaderNavBar",className:"mainHeader","data-test":"widget-GlobalHeader",css:A,shadow:"sm",ref:Y,children:[(0,a.FD)("div",{ref:g,className:`${x?"sticky-header active":""} no-print`,children:[(0,a.Y)(eA,{cmsStripBanner:h,cmsStripBannerBg:p,id:e.cmsSiteConfig?.sys.id,pageSlug:e.pageSlug,stripBannerDisabledPages:f}),(0,ez.H8)()&&(0,a.Y)(eE,{}),"us"===v.z.country&&(0,a.Y)("div",{className:"state-selector-mobile",children:(0,a.Y)(D,{})}),(0,a.Y)(eg,{cmsAccountNav:t,cmsMainNav:d,cmsFavourite:m,footerNavBar:u,socialLinks:i,badgeImages:o,globalHeaderHeight:w,sticky:x,enableCurityLogin:e?.enableCurityLogin,dlClickEventHandler:T})]}),!x&&(0,a.Y)(s.A,{children:(0,a.Y)(et,{cmsMainNav:d,globalHeaderHeight:w,dlClickEventHandler:(e,t,i)=>{T(e,"mainNavClick",i)}})}),(0,a.Y)("div",{className:"nav-overlay"})]}),(0,a.Y)("div",{ref:y,style:{height:`${x?k?.global:0}px`},className:"no-print"})]})})},65250:(e,t,i)=>{i.d(t,{j:()=>v});var a=i(75213),n=i(44098),r=i(58229),l=i(52080),s=i(60004),o=i(58988),d=i(72076),c=i(35477),u=i(21641),m=i(9997);let h=s.memo(e=>
319{let{items:t,itemComponent:i,isMiniCart:r,cmsCarousel:o}=e,d=(0,n.u)(),c=(0,u.U)(`(max-width: ${d.breakpointWidths?.sm}px)`),m=(0,u.U)(`(max-width: ${d.breakpointWidths?.md}px)`),h=(0,u.U)(`(max-width: ${d.breakpointWidths?.lg}px)`),p=(0,u.U)(`(max-width: ${d.breakpointWidths?.xl}px)`),f=5;c?f=1:m?f=2:h?f=3:p&&(f=4);let v=[{maxWidth:d.breakpointWidths?.xl,slideSize:"25%"},{maxWidth:d.breakpointWidths?.lg,slideSize:"33.33333%"},{maxWidth:d.breakpointWidths?.md,slideSize:"50%",slideGap:"sm"},{maxWidth:d.breakpointWidths?.sm,slideSize:"100%",slideGap:0}],g=Array.isArray(t)&&t.length>(r?1:f);return t.length>0?(0,a.Y)(l.F,{withIndicators:g,withControls:g,loop:g,draggable:g,slidesToScroll:1,slideSize:r?"100%":"20%",align:"start",slideGap:"md",controlsOffset:"md",className:`trending-products-carousel ${r?"miniCart":""}`,styles:o,breakpoints:r?[]:v,children:t.map(e=>(0,a.Y)(l.F.Slide,{children:s.createElement(i,{item:e})},e.objectID))}):null}),p=s.memo(e=>{let{item:t,isMiniCart:i,showImageZoom:n}=e;return(0,a.Y)(o.I,{product:t,showRating:!i,showImageZoom:n})}),f=e=>{let{widgetTitle:t=""}=e;return(0,a.Y)("div",{className:"text-center",children:(0,a.Y)("h3",{className:"auc-Recommend-title",children:t})})},v=(0,s.memo)(e=>{let{isMiniCart:t=!1,showImageZoom:i=!0,wineType:l=null,grape:o=null,country:u=null,productType:v=null,awardWinner:g=!1,giftItems:y=!1,offerItems:b=!1,fineWine:Y=!1,widgetTitle:w="",maxRecommendations:N=5}=e,k=(0,s.useMemo)(()=>(0,m.Q)(),[]),C=d.z.algoliaIndexName,[D,x]=(0,s.useState)([]),F=(0,n.u)(),S=(0,s.useMemo)(()=>(0,r.css)` 320 ${F.widgets.Cart.productItemsTrending} 321 `,[F]),I=(e,t)=>{let i=t.map(t=>`${e}:'${t}'`).join(" OR "),a=t.length>1?`(${i})`:i;return` AND ${a}`},$=function(e){return null==e?"inStock:true":"us"===d.z.country?`inStock:true AND vineyardPartner:false AND (threeTierStates:${e} OR wineryDirectStates:${e})`:"au"===d.z.country?"inStock:true AND vineyardPartner:false":"inStock:true"}((0,c.pk)(e=>e.selectedState));if(l?.length&&($+=I("wineType",l)),u?.length&&($+=I("country",u)),o?.length&&($+=I("grape",o)),v?.length){let e=v.map(e=>e.replace("Cases","Case").replace("Single Bottles","Wine"));$+=I("productType",e)}return g&&($+=` AND awardWinner:${g}`),y&&($+=` AND giftFlag:${y}`),b&&($+=" AND offers:'On Offer'"),Y&&($+=` AND fineWine:${Y}`),(0,s.useEffect)(()=>{let e=!0;return k.getRecommendations({requests:[{indexName:C,model:"trending-items",maxRecommendations:N||5,threshold:0,queryParameters:{filters:$}}]}).then(t=>{e&&x(t.results[0]?.hits??[])}).catch(()=>{e&&x([])}),()=>{e=!1}},[k,C,$,N]),(0,a.FD)("div",{className:"trending-items-container","data-testid":"trending-items",css:S,style:{position:"relative"},children:[D.length>0&&(0,a.Y)(f,{widgetTitle:w}),(0,a.Y)(h,{items:D,itemComponent:e=>(0,a.Y)(p,{item:e.item,isMiniCart:t,showImageZoom:i}),isMiniCart:t,cmsCarousel:F.widgets.CmsCarousel})]})})},69920:(e,t,i)=>{i.d(t,{H:()=>s});var a=i(75213),n=i(52110),r=i(83141),l=i(72076);let s=e=>{let{product:t}=e,{shortTastingNotesTaste:i}=t;return i?(0,a.FD)(n.n.Item,{value:"flavour",children:[(0,a.FD)(n.n.Control,{children:["us"===l.z.country?"Flavor":"Flavour"," Profile"]}),(0,a.Y)(n.n.Panel,{children:(0,a.Y)(r.l,{product:t,displayHeading:!1})})]}):null}},74669:(e,t,i)=>{i.d(t,{A:()=>d});var a=i(75213);i(60004);var n=i(30397),r=i(93681),l=i(44098),s=i(58229),o=i(70441);let d=e=>{let{title:t,show:i,onClose:d,Body:c,size:u="xl",actionType:m,TextToShow:h,setTriggerAbandonModal:p,inline:f=!1}=e,v=(0,l.u)(),[g,{open:y,close:b}]=(0,r.j)(),{primaryText:Y}=h,w=()=>{p?.(!1),y()},N=(0,a.Y)("a",{href:"#learn-more",className:"clickable-link",onMouseDown:e=>e.stopPropagation(),onClick:e=>{e.preventDefault(),e.stopPropagation(),w()},children:"Learn more"}),k=(0,s.css)` 322 ${v.widgets.Cart?.quickViewWrapper} 323 `,C=(0,s.css)` 324 ${v.widgets.Cart?.abandonModalOverlay} 325 `;return(0,a.FD)(a.FK,{children:[(0,a.Y)(n.a,{css:"ExitOverLay"===m?[C,k]:k,opened:g||!!i,onClose:()=>{b(),d?.(),p?.(!0)},title:t,size:u,centered:!0,transitionProps:{transition:"fade",duration:200},children:"function"==typeof c?(0,a.Y)(c,{}):c}),(0,a.FD)("div",{className:`${"Enpremier"===m||"HappyToWait"===m?"normal-pad":""}`,"data-testid":m,style:f?{display:"inline-flex"}:void 0,children:["Enpremier"===m&&(0,a.FD)(a.FK,{children:[(0,a.Y)("div",{children:(0,a.Y)(o.A,{className:"info-outline",width:16,height:16})}),(0,a.FD)("div",{className:"info-text",children:[(0,a.Y)("p",{children:Y}),N]})]}),"ReservationItem"===m&&(0,a.Y)("div",{className:"info-text",children:N}),"HappyToWait"===m&&(0,a.FD)(a.FK,{children:[(0,a.Y)("div",{children:(0,a.Y)(o.A,{className:"info-outline",width:16,height:16})}),(0,a.FD)("div",{className:"info-text",children:[(0,a.Y)("p",{children:Y}),N]})]})]})]})}},76956:(e,t,i)=>{i.d(t,{A:()=>y});var a=i(75213),n=i(72076),r=i(7292),l=i(52110);let s=e=>{let{value:t,heading:i,panelContent:n}=e;return(0,a.FD)(l.n.Item,{value:t,children:[(0,a.Y)(l.n.Control,{children:(0,a.Y)("div",{className:"body1 bold accordion-body",children:i})}),(0,a.Y)(l.n.Panel,{className:"body1",children:n})]})};
325var o=i(27964),d=i(21641),c=i(30397),u=i(31630),m=i(44098),h=i(58229),p=i(63191),f=i.n(p),v=i(50068),g=i.n(v);let y=e=>{let{opened:t,onClose:i,subscribeAndSave:p,hideSignUpButton:v=!1,setTriggerAbandonModal:y,method:b,cartItems:Y}=e,w=(0,m.u)(),N=(0,d.U)("(max-width: 800px)"),k=p?.offer?.bom&&p?.offer?.bumpCode,C="au"===n.z.country,D=(0,h.css)` 326 ${w.widgets.Cart?.subscribeSavePopup} 327 `,x="uk"===n.z.country?"20%":"10%",F="uk"===n.z.country?"":"Today",S=()=>[{value:"details1",heading:`Subscribe and Save 20% ${F}`,panelContent:`Take out a subscription and youâll save 20% on your whole order today (up to \xa340 off). Plus ${x} on any future cases you choose to take.`},{value:"details2",heading:"Choose how often it is delivered",panelContent:"Your first 12 bottle subscription case will be due in 8 weeks, but you can take a case more or less often. Change online."},{value:"details3",heading:"Delay or cancel any time",panelContent:"Weâll send you a reminder confirming the wines and the price before each delivery."},{value:"details4",heading:"100% Money-back Guarantee",panelContent:"If you don't like a wine, for whatever reason, you'll be refunded in full. No problem."}];return(0,a.FD)(c.a,{opened:t,css:D,centered:!0,onClose:()=>{i(),y?.(!0)},zIndex:999,size:"725px",fullScreen:N,transitionProps:{transition:"fade",duration:200},title:(0,a.Y)(f(),{width:"188",height:"30",src:"/next/images/subscribe-save-logo.svg",alt:"Subscribe and Save"}),children:[k?(0,a.Y)("div",{dangerouslySetInnerHTML:{__html:(e=>"string"!=typeof e?"":g()(e,{allowedTags:g().defaults.allowedTags,allowedAttributes:{...g().defaults.allowedAttributes,"*":["class","id"]}}))(p?.productData?.longDescription||"")}}):(0,a.FD)(a.FK,{children:[p?.schemeDetails&&(0,a.FD)(a.FK,{children:[(0,a.FD)("h5",{children:["WE THINK YOUâLL LOVE: ",p?.schemeDetails?.displayName?.toUpperCase()||""]}),p?.schemeDetails?.webHeadline&&(0,a.Y)("div",{className:"body1 body-paragraph",children:(0,a.Y)("span",{children:p?.schemeDetails?.webHeadline})})]}),(0,a.Y)(l.n,{className:"accordion-wrapper",chevron:(0,a.Y)(r.I,{kind:"chevron-down",size:"m"}),multiple:!0,defaultValue:S().map(e=>e.value),children:S().map(e=>(0,a.Y)(s,{value:e.value,heading:e.heading,panelContent:e.panelContent},e.value))})]}),(0,a.FD)("div",{className:"button-container",children:[(0,a.FD)("div",{className:"terms-link",children:[(0,a.Y)("a",{className:"text-underline",href:`/customer-services/${C?"legal/terms":"customer-terms-and-conditions-of-sale-and-use/subscriptions"}`,target:"_blank",rel:"noreferrer",children:"Terms and conditions apply"}),k?(0,a.Y)(u.m,{label:p?.productData?.description||"",position:"right",arrowPosition:"center",arrowOffset:50,arrowSize:4,styles:{tooltip:{maxWidth:200,whiteSpace:"normal"}},events:{hover:!0,focus:!0,touch:!0},children:(0,a.Y)("span",{className:"varietals-offer-info","data-testid":"varietals-offer-info",children:(0,a.Y)(r.I,{kind:"information-circle",size:"s"})})}):null]}),p?.offer?.itemCode&&(0,a.Y)("div",{className:"add-to-cart-btn-container subscribe-add-to-cart",children:!v&&(0,a.Y)(o.CartButton,{itemCode:p?.offer?.itemCode,qty:"1",buttonText:k?`YES, CLAIM MY $12 OFF ${F?.toUpperCase()}`:`YES, SIGN ME UP FOR 20% OFF ${F?.toUpperCase()}`,closeModal:i,hit:p?.productData,method:b,cartItems:Y,isSubscribeAndSave:"overlay"})})]})]})}},83141:(e,t,i)=>{i.d(t,{l:()=>c});var a=i(75213),n=i(44098),r=i(58229),l=i(72076);let s=e=>{let{displayHeading:t}=e;return t?"us"===l.z.country?(0,a.Y)("h2",{className:"sub-title-with-border",children:"Flavor Profile"}):(0,a.Y)("h2",{className:"sub-title-with-border",children:"Flavour Profile"}):null},o=e=>{let{product:t,displayHeading:i}=e,{shortTastingNotesTaste:n,shortTastingNotesAroma:r}=t;return(0,a.FD)("div",{children:[(0,a.Y)(s,{displayHeading:i}),n&&(0,a.FD)("div",{className:"item",children:[(0,a.Y)("div",{className:"item-title",children:"Wine Flavor Profile"}),(0,a.Y)("div",{className:"item-sub-title",children:n})]}),r&&(0,a.FD)("div",{className:"item",children:[(0,a.Y)("div",{className:"item-title",children:"Wine Food Pairings"}),(0,a.Y)("div",{className:"item-sub-title",children:r})]})]})},d=e=>{let{product:t,displayHeading:i}=e,{shortTastingNotesTaste:n,shortTastingNotesAroma:r,allergens:o}=t;return(0,a.FD)(a.FK,{children:[(0,a.Y)(s,{displayHeading:i}),(0,a.FD)("div",{className:"flavour",children:[n&&(0,a.FD)("div",{className:"item",children:[(0,a.Y)("div",{className:"item-title",children:"Tasting notes"}),(0,a.Y)("div",{className:"item-sub-title",children:n})]}),l.z?.country!=="uk"&&r&&(0,a.FD)("div",{className:"item",children:[(0,a.Y)("div",{className:"item-title",children:"Aroma"}),(0,a.Y)("div",{className:"item-sub-title",children:r})]}),l.z?.country==="uk"&&o.length>0&&(0,a.FD)("div",{className:"item",children:[(0,a.Y)("div",{className:"item-title",children:"Allergy information"}),(0,a.FD)("div",{className:"item-sub-title",children:["Contains ",o.map(e=>
327e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(", ")]})]})]})]})},c=e=>{let{product:t,displayHeading:i=!0}=e,{shortTastingNotesTaste:s}=t;if(!s)return null;let c=(0,n.u)(),u=(0,r.css)` 328 ${c.widgets.Product?.flavourProfile||""} 329 `,m="us"===l.z.country?o:d;return(0,a.Y)("div",{className:"flavour box",css:u,children:(0,a.Y)(m,{product:t,displayHeading:i})})}},90050:(e,t,i)=>{i.d(t,{A:()=>p});var a=i(75213),n=i(60004),r=i(44098),l=i(58229),s=i(63191),o=i.n(s),d=i(95220),c=i(53681),u=i(76956),m=i(27964),h=i(35477);let p=(0,n.memo)(e=>{let{lineItems:t,opened:i,open:s,close:p,setTriggerAbandonModal:f}=e,v=(0,r.u)(),g=(0,l.css)` 330 ${v.widgets.Cart?.subscribeSaveContainer} 331 `,y=(0,d.G)("",t,!0),b=y?.offer?.bom&&y?.offer?.bumpCode,Y=(0,h.x3)(e=>e.subscribeSaveContentfulOffer),w=Y?.map(e=>e.bumpCode),N=b&&t?.some(e=>{let{product:t}=e;return t?.itemCode&&w?.includes(t.itemCode)});if((0,n.useEffect)(()=>{y?.offer?.itemCode&&!N&&(0,c.d)("Show Subscribe and Save","SubscribeSaveCart")},[y?.offer?.itemCode,N]),N)return null;let k=()=>{p(),f&&f(!0)},C={cartItems:[{itemCode:y?.offer?.itemCode,quantity:1,upsellOfferDetails:y?.offer?.type||y?.offer?.rule?{type:y?.offer?.type??void 0,rule:y?.offer?.rule??void 0}:void 0}]};return(0,a.FD)(a.FK,{children:[y?.offer?.itemCode&&(0,a.FD)("div",{"data-testid":b?"contentful-offer":"subscribe-save-offer",className:`subscribe-save-container${b?" varietals-offer":""}`,css:g,children:[(0,a.Y)(o(),{className:"subscribe-save-image",width:"220",height:"35",src:`/next/images/${b?"varietals-logo":"subscribe-save-logo"}.svg`,alt:"Subscribe and Save"}),b?(0,a.FD)(a.FK,{children:[(0,a.Y)("div",{className:"varietals-content",children:(0,a.Y)("strong",{children:"Save an extra $12 today"})}),(0,a.Y)("div",{className:"varietals-content",children:(0,a.Y)("span",{title:"Claim my $12 off",tabIndex:0,role:"button",onClick:e=>{e.stopPropagation(),s("Claim my $12 off")},onKeyDown:e=>{"Enter"===e.key&&(e.stopPropagation(),s("Claim my $12 off"))},children:"Claim my $12 off"})})]}):(0,a.FD)("div",{className:"subscribe-save-content",children:[(0,a.Y)("div",{children:"Add and save a further 20% on this order"}),(0,a.Y)("div",{className:"subscribe-save-link cursor-pointer",onClick:e=>{e.stopPropagation(),s("Find out more")},tabIndex:0,role:"button",onKeyDown:e=>{"Enter"===e.key&&(e.stopPropagation(),s("Find out more"))},children:"Find out more"})]}),(0,a.Y)(m.CartButton,{itemCode:y.offer.itemCode,qty:"1",buttonText:"ADD TO BASKET",closeModal:k,hit:y.productData,method:"batch",cartItems:C,isSubscribeAndSave:"page"})]}),(0,a.Y)(u.A,{opened:i,onClose:k,subscribeAndSave:y,method:"batch",cartItems:C})]})})},99090:(e,t,i)=>{i.d(t,{A:()=>eC});var a=i(75213),n=i(60004),r=i(44098),l=i(58229),s=i(27869),o=i(7292),d=i(35477),c=i(93681),u=i(99083);let m=e=>{let{onRemoveItem:t}=e;return(0,a.FD)("div",{className:"product-delete",onClick:t,tabIndex:0,role:"button",onKeyDown:e=>"Enter"===e.key&&t(),children:[(0,a.Y)(u.A,{}),(0,a.Y)("div",{className:"product-delete-text",children:"Remove"})]})};var h=i(55644),p=i(72076),f=i(71858),v=i(86993),g=i(31709),y=i(22820),b=i(1215);let Y=e=>{let t=e?.product?.skus?.some(e=>e?.preReleaseItem)||!1,i=e?.product?.skus?.[0]?.preSellItem||!1;return{isPreReleaseIProduct:t,isPresellProduct:i,isRegularProduct:!t&&!i,totalSavings:e?.savings&&(e.savings.totalCartDiscountSavings>0||e.savings.totalProductDiscountSavings>0)}},w=e=>{if(e?.unitPrice?.priceType==="mpp")return"member-price";let{isRegularProduct:t,totalSavings:i}=Y(e);return i&&t?"savings-price":""},N=e=>{let{isPresellProduct:t}=Y(e);return t},k=e=>{let{isPreReleaseIProduct:t}=Y(e);return t},C=e=>{let{isRegularProduct:t}=Y(e);return t},D=e=>{let{isRegularProduct:t}=Y(e);return t&&!e?.product?.inventoryInfo?.happyToWaitEnabled},x=e=>{let{isPreReleaseIProduct:t,isPresellProduct:i}=Y(e);return t||i||e?.product?.inventoryInfo?.happyToWaitEnabled||!1},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"service"===e.toLowerCase()},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"giftVoucher"===e},I=e=>e?.product?.schemeDetails?.subscriptionType?.toLowerCase()==="wineplan",$=e=>I(e)&&F(e.product?.productType||""),A=e=>"au"!==p.z.country&&I(e),z=e=>!F(e?.product?.productType)&&!S(e?.itemType),T=e=>"au"===p.z.country&&(0,f.Kv)(e,v.FD),E=e=>{let{totalSavings:t,isRegularProduct:i}=Y(e);return t&&i},P=e=>e?.unitPrice?.priceType!=="mpp"&&E(e)||!1,L=e=>{let{isRegularProduct:t}=Y(e);return e?.quantity>1&&t},M=e=>e<=v.as,B=e=>e>v.as,R=e=>(0,g.FY)(e?.discountedPricePerQuantity[0]?.discountedPrice?.value?.amount??e?.unitPrice?.value?.amount),H=e=>E(e)?(0,g.FY)(e?.unitPrice?.listPrice?.amount*e?.quantity):null,O=e=>e?.product?.skus?.[0]?.referencedSkus?.[0]?.expandedItem?.productType??e?.product?.productType??"",W=e=>e?.product?.inventoryInfo?.stockQuantity!==void 0&&(e?.product?.productType==="Wine"||e?.product?.productType==="NonWine"?e?.quantity*e?.sku?.numberOfBottles:e?.quantity)>e?.product?.inventoryInfo?.stockQuantity&&e?.product?.inventoryInfo?.stockQuantity>0&&e?.product?.productType!=="Case"&&C(e),j=e=>e?.product?.productType==="Case"?v.Lp:e?.product?.inventoryInfo?.stockQuantity||v.Lp,q=e=>{let t=(0,y.nv)(e?.product?.itemCode??"");return"au"===p.z.country&&(0,f.nx)([e])&&(t=`${p.z.publicHost}/images/au/common/logos/unlimited_logo.svg`),"voucher"===e?.product?.productType?.toLowerCase()&&(t=(0,b.c2)(p.z.brandId,"GIFT")),t},_=e=>e?.product?.inventoryInfo?.availabilityDate?`Expected in stock ${(0,h.A)(new Date(e?.product?.inventoryInfo?.availabilityDate?.replace(/-/g,"/")),"dd/MM/yy")} `:"",U=e=>{let{isRegularProduct:t}=Y(e);return e?.discountedPricePerQuantity[0]?.discountedPrice?.includedDiscounts[0]?.discount.typeId&&t||!1};var K=i(57962);let G=e=>{let{type:t,stockQuantity:i,isAbsolute:n=!1}=e,s=(0,r.u)(),o=(0,l.css)` 332 ${s.widgets.Cart?.Pill} 333 `;return"low_stock"===t?(0,a.FD)("div",{className:n?"absolute":"",css:o,children:["Only\xa0",(0,a.Y)("span",{children:i}),"\xa0left"]}):null},V=e=>{let{item:t,isFreeGift:i}
333=e,[r,l]=(0,n.useState)((0,y.rt)([t]));return(0,n.useEffect)(()=>{l(q(t))},[t]),(0,a.FD)("div",{className:"product-image",children:[(0,a.Y)(K.X,{src:r,productType:t?.product?.mixed?"Case":t?.product?.productType,alt:t?.sku?.productName[0]?.value||"",fill:!0}),!i&&(0,a.Y)(G,{type:t?.product?.inventoryInfo?.availabilityStatus,stockQuantity:j(t),isAbsolute:!0})]})};var Q=i(17698),J=i.n(Q),X=i(44140);let Z=e=>{let{item:t,subscribeSaveOpen:i,setTriggerAbandonModal:n}=e;if(!t)return null;let r=A(t),l=()=>{i(),n?.(!1)};return z(t)?(0,a.Y)(J(),{href:(0,X.D)(t.product?.productSlug,t.sku?.itemCode),children:(0,a.FD)("h5",{className:"product-link",children:[t.sku?.productName[0]?.value," ",t.product?.vintage||""]})}):(0,a.Y)("button",{className:`product-link button-link ${r?"cursor-pointer text-underline-hover":""}`,onClick:r?l:void 0,onKeyDown:r?e=>{"Enter"===e.key&&l()}:void 0,type:"button",tabIndex:0,children:(0,a.FD)("h5",{children:[r&&"Subscribe & Save:"," ",t.sku?.productName[0]?.value," ",t.product?.vintage??""]})})};var ee=i(37324),et=i(54445),ei=i(95220),ea=i(76956);let en=e=>{let{item:t,subscribeSaveModalOpened:i,subscribeSaveClose:n,setTriggerAbandonModal:r}=e,{cartItems:l}=(0,d.x3)((0,ee.k)(et.jE)),s=$(t)?t?.sku?.itemCode:"",o=(0,ei.G)(s,l?.lineItems,!!s);return i?(0,a.Y)(ea.A,{opened:i,onClose:n,subscribeAndSave:o,hideSignUpButton:!0,setTriggerAbandonModal:r}):null};var er=i(51112);let el=e=>{let{message:t,classes:i="cart-item-error"}=e;return(0,a.FD)("div",{className:`info-message ${i}`,children:[(0,a.Y)(o.I,{kind:"information-circle",size:"xs"}),t]})},es=e=>{let{item:t,cartError:i}=e;return t?(0,a.FD)(a.FK,{children:[(0,a.Y)(er.M,{productType:O(t),bottleType:t.product?.bottleType,numberOfBottles:t.sku?.numberOfBottles}),t.product?.inventoryInfo?.availabilityStatus==="out_of_stock"&&(0,a.Y)(el,{message:`Item sold out, please remove it from your ${"uk"===p.z.country?"basket":"cart"}`,classes:"out-of-stock-error"}),i?.error&&M(t.quantity)&&(0,a.Y)(el,{message:i?.errorMessage||v.fj}),B(t.quantity)&&(0,a.Y)(el,{message:v.fj}),W(t)&&(0,a.Y)(el,{message:"Item quantity exceeds available stock"})]}):null},eo=e=>{let{item:t,upsellDisqualifiedError:i,upsellDisqualifiedMessage:n,renderDeleteAction:r}=e;return t?(0,a.FD)(a.FK,{children:[P(t)&&(0,a.FD)("div",{className:"info-message mix-match",children:[(0,g.FY)(t.savings?.totalCartDiscountSavings+t.savings?.totalProductDiscountSavings)," ","SAVINGS"]}),"uk"===p.z.country&&I(t)&&F(t.product?.productType||"")&&(0,a.Y)("div",{className:"info-message mix-match",children:"YOUR 20% SUBSCRIBE & SAVE DISCOUNT IS CALCULATED IN YOUR ORDER SUMMARY"}),t.unitPrice?.priceType==="mpp"&&t.savings?.totalProductDiscountSavings>0&&(0,a.FD)("div",{className:"member-price-savings",children:[(0,g.FY)(t.savings.totalProductDiscountSavings)," ","wsj"===p.z.brandId?"ADVANTAGE":"UNLIMITED"," MEMBER SAVINGS"]}),t.unitPrice?.priceType==="vpp"&&(0,a.FD)("div",{className:"info-message mix-match",children:[(0,a.Y)(o.I,{kind:"tick-circle",size:"xs"}),"Mix & Match Saving"]}),U(t)&&(0,a.FD)("div",{className:"info-message mix-match",children:[(0,a.Y)(o.I,{kind:"tick-circle",size:"xs"}),"Discount applied"]}),i&&(0,a.FD)("div",{className:"body1 out-of-stock-error count-disqualified-error",children:[n,I(t)&&r]})]}):null},ed=()=>{let e=(0,r.u)(),t=(0,l.css)` 334 ${e.widgets.Cart?.responsiveTable} 335 .reservation-text { 336 font-family: ${e.fonts.roboto}; 337 font-size: 16px; 338 font-weight: 400; 339 line-height: 22.4px; 340 margin: 0; 341 // text-align: justify; 342 } 343 `;return(0,a.Y)("div",{css:t,"data-testid":"happy-to-wait-modal",children:(0,a.Y)("p",{className:"reservation-text",children:"This item will be shipped separately, and you will receive a notification upon dispatch."})})};var ec=i(60529),eu=i(74669);let em=e=>{let{presellData:t,installments:i}=e,n=(0,r.u)(),s=t?t.map(e=>({amount:e.paymentAmount,date:e.paymentDate})):(i??[]).map(e=>({amount:e.installmentPrice?.amount??0,date:e.installmentDate})),o=(0,l.css)` 344 ${n.widgets.Cart?.responsiveTable} 345 .reservation-text { 346 font-family: ${n.fonts.roboto}; 347 font-size: 16px; 348 font-weight: 400; 349 line-height: 22.4px; 350 margin: 0; 351 } 352 `;return(0,a.FD)("div",{css:o,children:["uk"===p.z.country?(0,a.FD)("p",{className:"reservation-text","data-testid":"presell-reservation-table",children:["You pay a fixed portion of the total cost of the wine (and any relevant shipping charge) when the order is placed. Your delivery details are captured and a schedule for future payments for this order is set up. Once the full amount has been paid the order will be automatically delivered to the address you have chosen. Please be aware that delivery dates may change if the stock
352is delayed. By reserving this case, you hereby authorise"," ","law"===p.z.brandId||"bbc"===p.z.brandId?"Laithwaites Wine":"stw"===p.z.brandId?`The ${p.z.brandName}`:p.z.brandName," to charge the card provided for all payments relating to this order. We are only able to accept card payments for any order that contains a reservation item."]}):(0,a.Y)("p",{className:"reservation-text","data-testid":"presell-reservation-table",children:"You pay a fixed portion of the total cost of the wine (plus delivery) when the order is placed. When the wine is ready for delivery, we will charge the balance to your nominated card (Unlimited members will pay no delivery charge). Once the full amount has been paid the order will be automatically delivered to the address you have chosen. Please be aware that delivery dates may change if the stock is delayed. Initial deposit is non-refundable. To ensure prompt delivery of your wine, please alert us to any changes in your contact or billing information before the final payment is due. Vouchers cannot be applied with this pre-sale offer."}),(0,a.Y)("div",{className:"table-responsive mt-32",children:(0,a.Y)("table",{className:"dltrc",children:(0,a.FD)("tbody",{children:[(0,a.FD)("tr",{className:"dlheader",children:[(0,a.Y)("td",{className:"dlheader",children:"Date"}),(0,a.Y)("td",{className:"dlheader",children:"Payment"})]}),s.map((e,t)=>(0,a.FD)("tr",{className:"dlinfo",children:[(0,a.Y)("td",{className:"dlinfo",children:0===t?"Today":function(e){if(!e)return"";let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let i=new Date;if(t.getDate()===i.getDate()&&t.getMonth()===i.getMonth()&&t.getFullYear()===i.getFullYear())return"Today";let a=t.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"});return a.replace(/(\d{1,3}) (\w+)/,"$1 $2,")}(e.date)}),(0,a.Y)("td",{className:"dlinfo",children:(0,g.FY)(e.amount)})]},`reservation-${e.amount}-${e.date}`))]})})})]})},eh=e=>{let{presellData:t,itemCode:i,setTriggerAbandonModal:n}=e,s=(0,r.u)(),o=(0,l.css)` 353 ${s.widgets?.Cart?.cartLayout.reservationItem} 354 `,d=t?.find(e=>e.itemCode===i);return d?.presellPayments.length?(0,a.FD)("div",{css:o,children:[(0,a.FD)("div",{className:"reservation-item-text",children:[(0,a.Y)(ec.A,{})," Presell item:"]}),(0,a.FD)("ul",{children:[(0,a.FD)("li",{children:["Initial deposit ",`${(0,g.FY)(d?.presellPayments[0]?.paymentAmount)} (Due today)`]}),(0,a.Y)("li",{children:`Total Price ${(0,g.FY)(d?.presellPayments?.reduce((e,t)=>e+t.paymentAmount,0))}`})]}),(0,a.Y)(eu.A,{title:p.z?.country==="uk"?"Reservation Items":"Presale Items",Body:(0,a.Y)(em,{presellData:d?.presellPayments}),actionType:"ReservationItem",TextToShow:{primaryText:p.z?.country==="uk"?"Reservation Items:":"Presale Items:"},setTriggerAbandonModal:n})]}):null};var ep=i(81600),ef=i(79726);let ev=e=>{let{fields:t,index:i,setActiveIndex:n,activeIndex:s}=e,{title:o,content:d}=t,c=e=>{n(e)},u=(0,r.u)(),m=(0,l.css)` 355 ${u.widgets.Footer?.navItems} 356 .navItem-navigation { 357 margin: 0 0 16px 0; 358 } 359 360 .tab-panel.tab-collapse { 361 display: none; 362 } 363 364 .tab-indicator { 365 width: 20px; 366 height: 20px; 367 } 368 369 [data-test='navigation-title'] { 370 margin: 8px 0; 371 text-transform: none; 372 font-size: 16px; 373 font-weight: 700; 374 line-height: 22.4px; 375 } 376 377 .tab-heading { 378 cursor: pointer; 379 } 380 `;return(0,a.FD)("div",{css:[m],"data-testid":"navigation",className:`navItem-navigation ${s===i?"navItem-navigation-active":""}`,children:[(0,a.FD)(ep.A,{className:"tab-heading",align:"center",justify:"between","data-testid":"navigation-header",onClick:()=>c(i),onKeyDown:e=>{"Space"===e.code&&(e.preventDefault(),c(i))},children:[(0,a.Y)("p",{"data-testid":"navigation-title",children:o}),(0,a.Y)("div",{role:"navigation","aria-label":o,className:`tab-indicator ${s===i?"tab-expand":"tab-collapse"}`,children:(0,a.Y)(ef.A,{className:"chevron-down"})})]}),(0,a.Y)("div",{className:`tab-panel ${s===i?"tab-expand":"tab-collapse"}`,"data-testid":"navigation-content","data-newtest":s,children:(0,a.Y)("p",{className:"regular",children:d})})]})}
380,eg=[{openAccordionByDefault:!0,title:"What is meant by En Primeur",content:"It means reserving the latest vintage before it is bottled. By paying an instalment 'up front', you reserve wine while it is still in the barrel, before the wines are shipped to the UK up to 18 months after being reserved, depending on the region."},{openAccordionByDefault:!0,title:"The advantages of 'En Primeur' buying",content:"Demand for fine wines is always high as there simply isnât enough to go around. En Primeur guarantees you an allocation of the finest wines â providing you are quick!"},{openAccordionByDefault:!0,title:"How does payment work?",content:`Now you need only pay the âcellar doorâ price. Prior to delivery, we will invoice you for the second instalment (duty â around \xa32.23 a bottle at todayâs prices) plus VAT on the total. Delivery (currently \xa37.99) is also applicable, unless you are a member of Unlimited. Alternatively, you can keep your case stored In Bond or Duty Paid in our state of the art temperature- and humidity-controlled customer storage facility (currently \xa312.60 per case per year).`},{openAccordionByDefault:!0,title:"Reservation certificates",content:`After placing your order we will sent you a Reservation Certificate to your billing address. If the wines you have chosen are sold out weâll contact you to advise which are still available.`}],ey=()=>{let[e,t]=n.useState(0);return(0,a.Y)(a.FK,{children:eg.map((i,n)=>{let{content:r}=i;return(0,a.Y)(ev,{index:n,activeIndex:e,setActiveIndex:t,fields:{...i,content:r}},`en-primier-${i.title}`)})})},eb=e=>{let{item:t,setTriggerAbandonModal:i}=e;return D(t)?null:(0,a.FD)(a.FK,{children:[N(t)&&(0,a.Y)(eh,{presellData:t?.product?.skus,itemCode:t?.sku?.itemCode,setTriggerAbandonModal:i}),t?.product?.inventoryInfo?.happyToWaitEnabled&&(0,a.Y)(eu.A,{title:"Expected In Stock",Body:(0,a.Y)(ed,{}),actionType:"HappyToWait",TextToShow:{primaryText:_(t)},setTriggerAbandonModal:i}),k(t)&&(0,a.Y)(eu.A,{title:"En Primeur",Body:(0,a.Y)(ey,{enPrimeurPrice:t?.product?.skus[0]?.enPrimeurPrice}),actionType:"Enpremier",TextToShow:{primaryText:"En Primeur"},setTriggerAbandonModal:i})]})},eY=e=>{let{item:t}=e;return T(t)?null:(0,a.FD)("div",{className:"gift",children:[(0,a.Y)(o.I,{kind:"gift",size:"24px"}),(0,a.FD)("h4",{children:["lwnz"===p.z.brandId?"":"FREE ","GIFT"]})]})},ew=e=>{let{count:t,updateQuantity:i,setCartError:s,inventoryInfo:d,productSku:c,isFutureItems:u=!1,productType:m}=e,[h,p]=(0,n.useState)(t),[f,g]=(0,n.useState)(null),y=Number(t),b=c[0]?.numberOfBottles||1,Y="Case"===m?99:d?.stockQuantity||99,w=Math.min(Y,99),N=u?y:y*b;(0,n.useEffect)(()=>{p(t)},[t]);let k=(0,r.u)(),C=(0,l.css)` 381 ${k.widgets.Cart?.CartCounter} 382 `;return(0,a.Y)("div",{css:C,children:(0,a.FD)("div",{className:"qty-counter",children:[(0,a.Y)("button",{onClick:e=>{y>1?(p(y-1),i(e,"decrement")):s({error:!0,errorMessage:v.LN})},className:`btn btn-outline-secondary btn-minus cursor-pointer ${1===y?"disabled":""}`,"data-testid":"minus-button",tabIndex:0,"aria-label":"minus-button",onKeyDown:()=>!1,children:(0,a.Y)(o.I,{kind:"minus",size:"xs"})}),(0,a.Y)("input",{className:"form-control quantity",type:"number",name:"quantity",value:h,maxLength:2,onKeyDown:e=>{["Backspace","Tab","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key)||/^\d$/.test(e.key)||e.preventDefault()},onBlur:e=>{let i=Number.parseInt(e.target.value),a="Wine"===m||m?.toLocaleLowerCase()==="nonwine"?i*b:i;(!i||d?.availabilityStatus&&!u&&a>Y)&&p(t)},onChange:e=>{let a=e.target.value.replace(/\D/g,"").substring(0,2);p(a),f&&clearTimeout(f);let n=Number.parseInt(a);if(!Number.isNaN(n)&&t!==n){if(0===n){p(t),s({error:!0,errorMessage:v.LN});return}if(n>(u?99:w)){s({error:!0,errorMessage:n>99?v.fj:v.Ou}),g(setTimeout(()=>p(t),1500));return}("Wine"===m||m?.toLocaleLowerCase()==="nonwine")&&n*b>Y&&!u||n>Y&&!u&&"Case"!==m?(s({error:!0,errorMessage:v.Ou}),g(setTimeout(()=>p(t),1500))):g(setTimeout(()=>i(e),1500))}},"aria-label":"Enter quantity"}),(0,a.Y)("button",{onClick:e=>{N+b>Y&&!u&&("Wine"===m||m?.toLocaleLowerCase()==="nonwine")?s({error:!0,errorMessage:v.Ou}):y<(u?99:w)?(p(y+1),i(e,"increment")):s({error:!0,errorMessage:!u&&w<99?v.Ou:v.fj})},className:`btn btn-outline-secondary btn-plus cursor-pointer ${99===y?"disabled":""}`,"data-testid":"plus-button",tabIndex:0,"aria-label":"plus-button",onKeyDown:()=>!1,children:(0,a.Y)(o.I,{kind:"add",size:"xs"})})]})})},eN=e=>{let{item:t,setLoading:i,setCartError:s}=e,o=(0,r.u)(),c=(0,l.css)`
383 ${o.widgets.Cart?.cartLayout?.cartCounterAndPrice} 384 `,[u,m]=(0,n.useState)(t?.quantity);(0,n.useEffect)(()=>{t?.quantity&&m(t.quantity)},[t]);let h=(0,d.hy)(),p=async(e,a)=>{let n;switch(e.preventDefault(),i(!0),a){case"increment":n=Math.min(u+1,99);break;case"decrement":n=Math.max(u-1,1);break;default:{let t=Number.parseInt(e.target.value,10);n=Number.isNaN(t)?1:Math.min(Math.max(t,1),99)}}m(n);try{let e={items:[{lineItemId:t.lineItemId,quantity:n}]};await h(e,u,a)}catch(e){m(t.quantity),s({error:!0,errorMessage:e?.response?.data?.message})}finally{i(!1)}};return t?.product?.inventoryInfo?.availabilityStatus==="out_of_stock"?null:(0,a.FD)("div",{css:c,children:[z(t)?(0,a.Y)(ew,{count:u,updateQuantity:p,setCartError:s,inventoryInfo:t?.product?.inventoryInfo,productSku:t?.product?.skus?.filter(e=>e?.itemCode===t?.sku?.itemCode)||[],isFutureItems:x(t),productType:t?.product?.productType}):(0,a.Y)("div",{"data-testid":"is-service-item"}),(0,a.FD)("div",{className:"price-savings",children:[L(t)&&(0,a.FD)("div",{className:"vpp-price",children:[R(t)," each"]}),(0,a.Y)("h6",{className:w(t),children:(0,g.FY)(t?.totalPrice?.amount)}),(0,a.Y)("div",{className:"full-price",children:H(t)})]})]})},ek=e=>{let{item:t,upsellDisqualifiedError:i,upsellDisqualifiedMessage:s,isFreeGift:o=!1,setLoading:u,setTriggerAbandonModal:h}=e,[p,f]=(0,n.useState)({error:!1,errorMessage:""}),[v,{open:g,close:y}]=(0,c.j)(!1),b=(0,d.uJ)(),Y=async e=>{if(e){u(!0);try{await b(e)}catch(e){f({error:!0,errorMessage:e?.response?.data?.message})}finally{u(!1)}}},w=(0,r.u)(),N=(0,l.css)` 385 ${w.widgets.Cart?.cartDetailSection} 386 `,k=(0,l.css)` 387 ${w.widgets.Cart?.cartLayout?.layout} 388 `,C=(0,l.css)` 389 ${w.widgets.Cart?.CartItemWrapper} 390 `;(0,n.useEffect)(()=>{let e=setTimeout(()=>{p.error&&f({error:!1,errorMessage:""})},3e3);return()=>{clearTimeout(e)}},[p]);let D=(0,a.Y)(m,{onRemoveItem:()=>Y(t?.lineItemId)});return(0,a.FD)("div",{css:C,className:o?"free-gift":"",children:[(0,a.Y)(V,{item:t,isFreeGift:o}),(0,a.FD)("div",{className:"product-details",children:[(0,a.FD)("div",{css:k,children:[(0,a.FD)("div",{css:N,children:[(0,a.Y)(Z,{item:t,subscribeSaveOpen:g,setTriggerAbandonModal:h}),!o&&(0,a.FD)(a.FK,{children:[(0,a.Y)(en,{item:t,subscribeSaveModalOpened:v,subscribeSaveClose:y,setTriggerAbandonModal:h}),(0,a.Y)(es,{item:t,cartError:p}),(0,a.Y)(eo,{item:t,upsellDisqualifiedError:i,upsellDisqualifiedMessage:s,renderDeleteAction:D}),(0,a.Y)(eb,{item:t,setTriggerAbandonModal:h})]})]}),o?(0,a.Y)(eY,{item:t}):(0,a.Y)(eN,{item:t,setLoading:u,setCartError:f})]}),!o&&D]})]})},eC=e=>{let{cartItems:t,loading:i,setLoading:c,soldOutError:u,setSoldOutError:m,setTriggerAbandonModal:h}=e,g=(0,r.u)(),y=(0,l.css)` 391 ${g.widgets.Cart?.cartError} 392 `,b=(0,l.css)` 393 ${g.widgets.Cart?.CartInfo} 394 `,[Y,w]=(0,n.useState)(!1),[N,k]=(0,n.useState)(""),C=(0,d.x3)(e=>e.subscribeSaveContentfulOffer),D=(0,n.useMemo)(()=>{let e=t?.lineItems?.some(e=>e?.product?.schemeDetails?.subscriptionType?.toLowerCase()==="wineplan"&&e?.product?.productType?.toLowerCase()==="service"),i=e&&t?.numberOfBottles<v.Vr;if(C){let a=C.map(e=>e.bumpCode),n=t?.lineItems.map(e=>{let{product:t}=e;return t?.itemCode})||[],r=t?.lineItems.some(e=>{let{product:t}=e;return t&&a.includes(t?.itemCode)}),l=C?.some(e=>{let{bumpCode:t,bom:i}=e;return n.includes(t)&&n.includes(i)});i=e&&r&&!l}return{disqualified:i,isCartContainsWinePlan:e}},[t?.lineItems,t?.numberOfBottles,C]);(0,n.useEffect)(()=>{D.disqualified?(k(D.isCartContainsWinePlan&&(t?.lineItems?.length===1||C)?v.Y0:v.ns),w(!0)):w(!1)},[D]);let x=(0,n.useMemo)(()=>t?.lineItems?.some(e=>(0,f.Kv)(e,v.FD))?(0,a.FD)("div",{css:b,children:[(0,a.Y)(o.I,{kind:"information-circle",size:"xs"}),v.P0]}):null,[t?.lineItems]);return(0,n.useEffect)(()=>{m(t?.lineItems?.some(e=>e?.product?.inventoryInfo?.availabilityStatus==="out_of_stock")||Y)},[t?.lineItems,Y]),(0,a.FD)("div",{style:{position:"relative"},children:[(0,a.Y)(s.p,{visible:i,loaderProps:{color:g.colors.primary1},zIndex:1}),(()=>{let e;return u?(e=Y?v.yf:"uk"===p.z.country?v.kr:v.F0,(0,a.FD)("div",{css:y,className:"body1",children:[(0,a.Y)(o.I,{kind:"information-circle",size:"xs"}),e]})):null})(),"au"===p.z.country&&x,t?.lineItems?.map(e=>{let t=e?.itemClassifications?.some(e=>e.toLowerCase().includes(v.Ec));return(0,a.Y)(ek,{setLoading:c,item:e,isFreeGift:t||!1,upsellDisqualifiedError:Y,upsellDisqualifiedMessage:N,setSoldOutError:m,setTriggerAbandonModal:h},e.lineItemId)})]})}}}]);
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.