PageSourceSearch

https://www.lewiscellars.com/_next/static/chunks/6972.510959f34ed910cc.js

js lewiscellars.com collected 2026-09-26 05:52:02 UTC 35,469 bytes, 2 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ed94fcb3-34b4-4dd7-840b-493b9bf92692",t._sentryDebugIdIdentifier="sentry-dbid-ed94fcb3-34b4-4dd7-840b-493b9bf92692")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6972],{163:(t,e,o)=>{o.d(e,{g:()=>u});var i=o(95155),n=o(44705),l=o(69691),r=o(97625),d={_getCss:function(){return a},builderEditingArea:"BuilderEditingHelper-module_builderEditingArea__ajyBP",body:"BuilderEditingHelper-module_body__o3f-6",helper:"BuilderEditingHelper-module_helper__fG820",warning:"BuilderEditingHelper-module_warning__CSD0q",error:"BuilderEditingHelper-module_error__XFS5w"},a=".BuilderEditingHelper-module_builderEditingArea__ajyBP{align-items:center;background:#17a6d2;color:#fff;display:flex;flex-wrap:wrap;justify-content:center;margin:1rem 0!important;padding:1rem 0;text-align:center;width:100%}.BuilderEditingHelper-module_builderEditingArea__ajyBP .BuilderEditingHelper-module_body__o3f-6{font-size:1.25rem;line-height:1.375rem;padding:0 .25rem;width:100%}.BuilderEditingHelper-module_builderEditingArea__ajyBP .BuilderEditingHelper-module_helper__fG820{font-size:.875rem;font-style:italic;line-height:1rem;margin-top:.25rem}.BuilderEditingHelper-module_builderEditingArea__ajyBP.BuilderEditingHelper-module_warning__CSD0q{background:#ffc105;color:#000}.BuilderEditingHelper-module_builderEditingArea__ajyBP.BuilderEditingHelper-module_error__XFS5w{background:#d52a23;color:#fff}";let u=(0,r.X)(function(t){let{componentName:e,helperText:o,visible:r,warning:a,error:u,className:s}=t;return(0,n.JN)()&&r?(0,i.jsxs)("div",{className:(0,l.$)(d.builderEditingArea,s&&s,a&&d.warning,u&&d.error),children:[e&&(0,i.jsxs)("p",{className:d.body,children:[e," Component"]}),(0,i.jsx)("br",{}),o?(0,i.jsxs)("span",{className:d.helper,children:["(",o,")"]}):null]}):null},d)},22299:(t,e,o)=>{o.d(e,{x:()=>l});var i=o(95155),n=o(69691);let l=t=>{let{seal:e,classNames:o,dataTestId:l}=t;return/^(none)$/i.test(e)?null:(0,i.jsx)("div",{className:(0,n.$)(o,"product-seal",`product-seal__${null==e?void 0:e.toLowerCase().replace(/ /g,"-")}`),"data-testid":l})}},37614:(t,e,o)=>{o.d(e,{K:()=>a});var i=o(12115),n=o(60609),l=o(17362),r=o(61162),d=o(98009);let a=(t,e,o,a)=>((0,i.useEffect)(()=>{let i=(0,d.iN)(t,e);a&&void 0!==i&&((0,d.X7)(o?r.Y.PRODUCT_DETAIL_IMPRESSION:r.Y.PRODUCT_IMPRESSION,i),o&&(0,n.W)({event:l.Z.VIEWED_PRODUCT,viewedProduct:{ProductName:i[0].name,ProductID:i[0].id,URL:window.location.href,Price:i[0].price,ImageURL:i[0].image}}))},[a]),null)},50478:(t,e,o)=>{o.r(e),o.d(e,{default:()=>tA});var i=o(95155),n=o(12115);let l=Math.min,r=Math.max,d=Math.round,a=t=>({x:t,y:t});function u(t,e){return"function"==typeof t?t(e):t}function s(t){return t.split("-")[0]}function c(t){return t.split("-")[1]}function p(t){return"x"===t?"y":"x"}let f=new Set(["top","bottom"]);function m(t){return f.has(s(t))?"y":"x"}function _(t){let{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function h(t,e,o){let i,{reference:n,floating:l}=t,r=m(e),d=p(m(e)),a="y"===d?"height":"width",u=s(e),f="y"===r,_=n.x+n.width/2-l.width/2,h=n.y+n.height/2-l.height/2,g=n[a]/2-l[a]/2;switch(u){case"top":i={x:_,y:n.y-l.height};break;case"bottom":i={x:_,y:n.y+n.height};break;case"right":i={x:n.x+n.width,y:h};break;case"left":i={x:n.x-l.width,y:h};break;default:i={x:n.x,y:n.y}}switch(c(e)){case"start":i[d]-=g*(o&&f?-1:1);break;case"end":i[d]+=g*(o&&f?-1:1)}return i}let g=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:l=[],platform:r}=o,d=l.filter(Boolean),a=await (null==r.isRTL?void 0:r.isRTL(e)),u=await r.getElementRects({reference:t,floating:e,strategy:n}),{x:s,y:c}=h(u,i,a),p=i,f={},m=0;for(let o=0;o<d.length;o++){let{name:l,fn:_}=d[o],{x:g,y:y,data:v,reset:w}=await _({x:s,y:c,initialPlacement:i,placement:p,strategy:n,middlewareData:f,re
1cts:u,platform:r,elements:{reference:t,floating:e}});s=null!=g?g:s,c=null!=y?y:c,f={...f,[l]:{...f[l],...v}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(u=!0===w.rects?await r.getElementRects({reference:t,floating:e,strategy:n}):w.rects),{x:s,y:c}=h(u,p,a)),o=-1)}return{x:s,y:c,placement:p,strategy:n,middlewareData:f}};async function y(t,e){var o,i;void 0===e&&(e={});let{x:n,y:l,platform:r,rects:d,elements:a,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=u(e,t),g="number"!=typeof(i=h)?{top:0,right:0,bottom:0,left:0,...i}:{top:i,right:i,bottom:i,left:i},y=a[m?"floating"===f?"reference":"floating":f],v=_(await r.getClippingRect({element:null==(o=await (null==r.isElement?void 0:r.isElement(y)))||o?y:y.contextElement||await (null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:s})),w="floating"===f?{x:n,y:l,width:d.floating.width,height:d.floating.height}:d.reference,x=await (null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),b=await (null==r.isElement?void 0:r.isElement(x))&&await (null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},T=_(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:s}):w);return{top:(v.top-T.top+g.top)/b.y,bottom:(T.bottom-v.bottom+g.bottom)/b.y,left:(v.left-T.left+g.left)/b.x,right:(T.right-v.right+g.right)/b.x}}let v=new Set(["left","top"]);async function w(t,e){let{placement:o,platform:i,elements:n}=t,l=await (null==i.isRTL?void 0:i.isRTL(n.floating)),r=s(o),d=c(o),a="y"===m(o),p=v.has(r)?-1:1,f=l&&a?-1:1,_=u(e,t),{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof _?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return d&&"number"==typeof y&&(g="end"===d?-1*y:y),a?{x:g*f,y:h*p}:{x:h*p,y:g*f}}function x(){return"undefined"!=typeof window}function b(t){return E(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function C(t){var e;return null==(e=(E(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function E(t){return!!x()&&(t instanceof Node||t instanceof T(t).Node)}function O(t){return!!x()&&(t instanceof Element||t instanceof T(t).Element)}function S(t){return!!x()&&(t instanceof HTMLElement||t instanceof T(t).HTMLElement)}function P(t){return!!x()&&"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof T(t).ShadowRoot)}let A=new Set(["inline","contents"]);function R(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!A.has(n)}let D=new Set(["table","td","th"]),k=[":popover-open",":modal"];function j(t){return k.some(e=>{try{return t.matches(e)}catch(t){return!1}})}let H=["transform","translate","scale","rotate","perspective"],L=["transform","translate","scale","rotate","perspective","filter"],N=["paint","layout","strict","content"];function I(t){let e=B(),o=O(t)?V(t):t;return H.some(t=>!!o[t]&&"none"!==o[t])||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||L.some(t=>(o.willChange||"").includes(t))||N.some(t=>(o.contain||"").includes(t))}function B(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let M=new Set(["html","body","#document"]);function $(t){return M.has(b(t))}function V(t){return T(t).getComputedStyle(t)}function U(t){return O(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function F(t){if("html"===b(t))return t;let e=t.assignedSlot||t.parentNode||P(t)&&t.host||C(t);return P(e)?e.host:e}function Z(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function K(t){let e=V(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=S(t),l=n?t.offsetWidth:o,r=n?t.offsetHeight:i,a=d(o)!==l||d(i)!==r;return a&&(o=l,i=r),{width:o,height:i,$:a}}function X(t){return O(t)?t:t.contextElement}function J(t){let e=X(t);if(!S(e))return a(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:l}=K(e),r=(l?d(o.width):o.width)/i,u=(l?d(o.height):o.height)/n;return r&&Number.isFinite(r)||(r=1),u&&Number.isFinite(u)||(u=1),{x:r,y:u}}let W=a(0);function q(t){let e=T(t);
1return B()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:W}function z(t,e,o,i){var n;void 0===e&&(e=!1),void 0===o&&(o=!1);let l=t.getBoundingClientRect(),r=X(t),d=a(1);e&&(i?O(i)&&(d=J(i)):d=J(t));let u=(void 0===(n=o)&&(n=!1),i&&(!n||i===T(r))&&n)?q(r):a(0),s=(l.left+u.x)/d.x,c=(l.top+u.y)/d.y,p=l.width/d.x,f=l.height/d.y;if(r){let t=T(r),e=i&&O(i)?T(i):i,o=t,n=Z(o);for(;n&&i&&e!==o;){let t=J(n),e=n.getBoundingClientRect(),i=V(n),l=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,r=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;s*=t.x,c*=t.y,p*=t.x,f*=t.y,s+=l,c+=r,n=Z(o=T(n))}}return _({width:p,height:f,x:s,y:c})}function Y(t,e){let o=U(t).scrollLeft;return e?e.left+o:z(C(t)).left+o}function G(t,e){let o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-Y(t,o),y:o.top+e.scrollTop}}let Q=new Set(["absolute","fixed"]);function tt(t,e,o){let i;if("viewport"===e)i=function(t,e){let o=T(t),i=C(t),n=o.visualViewport,l=i.clientWidth,r=i.clientHeight,d=0,a=0;if(n){l=n.width,r=n.height;let t=B();(!t||t&&"fixed"===e)&&(d=n.offsetLeft,a=n.offsetTop)}let u=Y(i);if(u<=0){let t=i.ownerDocument,e=t.body,o=getComputedStyle(e),n="CSS1Compat"===t.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,r=Math.abs(i.clientWidth-e.clientWidth-n);r<=25&&(l-=r)}else u<=25&&(l+=u);return{width:l,height:r,x:d,y:a}}(t,o);else if("document"===e)i=function(t){let e=C(t),o=U(t),i=t.ownerDocument.body,n=r(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=r(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),d=-o.scrollLeft+Y(t),a=-o.scrollTop;return"rtl"===V(i).direction&&(d+=r(e.clientWidth,i.clientWidth)-n),{width:n,height:l,x:d,y:a}}(C(t));else if(O(e))i=function(t,e){let o=z(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,l=S(t)?J(t):a(1),r=t.clientWidth*l.x,d=t.clientHeight*l.y;return{width:r,height:d,x:n*l.x,y:i*l.y}}(e,o);else{let o=q(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return _(i)}function te(t){return"static"===V(t).position}function to(t,e){if(!S(t)||"fixed"===V(t).position)return null;if(e)return e(t);let o=t.offsetParent;return C(t)===o&&(o=o.ownerDocument.body),o}function ti(t,e){var o;let i=T(t);if(j(t))return i;if(!S(t)){let e=F(t);for(;e&&!$(e);){if(O(e)&&!te(e))return e;e=F(e)}return i}let n=to(t,e);for(;n&&(o=n,D.has(b(o)))&&te(n);)n=to(n,e);return n&&$(n)&&te(n)&&!I(n)?i:n||function(t){let e=F(t);for(;S(e)&&!$(e);){if(I(e))return e;if(j(e))break;e=F(e)}return null}(t)||i}let tn=async function(t){let e=this.getOffsetParent||ti,o=this.getDimensions,i=await o(t.floating);return{reference:function(t,e,o){let i=S(e),n=C(e),l="fixed"===o,r=z(t,!0,l,e),d={scrollLeft:0,scrollTop:0},u=a(0);if(i||!i&&!l)if(("body"!==b(e)||R(n))&&(d=U(e)),i){let t=z(e,!0,l,e);u.x=t.x+e.clientLeft,u.y=t.y+e.clientTop}else n&&(u.x=Y(n));l&&!i&&n&&(u.x=Y(n));let s=!n||i||l?a(0):G(n,d);return{x:r.left+d.scrollLeft-u.x-s.x,y:r.top+d.scrollTop-u.y-s.y,width:r.width,height:r.height}}(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},tl={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t,l="fixed"===n,r=C(i),d=!!e&&j(e.floating);if(i===r||d&&l)return o;let u={scrollLeft:0,scrollTop:0},s=a(1),c=a(0),p=S(i);if((p||!p&&!l)&&(("body"!==b(i)||R(r))&&(u=U(i)),S(i))){let t=z(i);s=J(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}let f=!r||p||l?a(0):G(r,u);return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:o.y*s.y-u.scrollTop*s.y+c.y+f.y}},getDocumentElement:C,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,d=[..."clippingAncestors"===o?j(e)?[]:function(t,e){let o=e.get(t);if(o)return o;let i=(function t(e,o,i){var n;void 0===o&&(o=[]),void 0===i&&(i=!0);let l=function t(e){let o=F(e);return $(o)?e.ownerDocument?e.ownerDocument.body:e.body:S(o)&&R(o)?o:t(o)}(e),r=l===(null==(n=e.ownerDocument)?void 0:n.body),d=T(l);if(r){let e=Z(d);return o.concat(d,d.visualViewport||[],R(l)?l:[],e&&i?t(e):[])}return o.concat(l,t(l,[],i))})(t,[],!1).filter(t=>O(t)&&"body"!==b(t)),n=null,l="fixed"===V(t).position,r=l?F(t):t;for(;O(r)&&!$(r);){let e=V(r),o=I(r);o||"fixed"!==e.position||(n=null),(l?!o&&!n:!o&&"static"===e.position&&!!n&&Q.has(n.position)||R(r)&&!o&&function t(e,o){let i=F(e);return!(i===o||!O(i)||$(i))&&("fixed"===V(i).position||t(i,o))}(t,r))?i=i.filter(t=>t!==r):n=e,r=F(r)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=d[0],u=d.reduce((t,o)=>{let i=tt(e,o,n);return t.top=r(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=r(i.left,t.left),t},tt(e,a,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ti,getElementRects:tn,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:e,height:o}=K(t);return{width:e,height:o}},getScale:J,isElement:O,isRTL:function(t){return"rtl"===V(t).direction}};var tr=o(47650),td="undefined"!=typeof document?n.useLayoutEffect:function(){};function ta(t,e){let o,i,n;if(t===e)return!0;
1if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((o=t.length)!==e.length)return!1;for(i=o;0!=i--;)if(!ta(t[i],e[i]))return!1;return!0}if((o=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!({}).hasOwnProperty.call(e,n[i]))return!1;for(i=o;0!=i--;){let o=n[i];if(("_owner"!==o||!t.$$typeof)&&!ta(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}function tu(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function ts(t,e){let o=tu(t);return Math.round(e*o)/o}function tc(t){let e=n.useRef(t);return td(()=>{e.current=t}),e}var tp=o(69691),tf=o(97625),tm=o(87449),t_=o(80566),th=o(71450),tg=o(44705),ty=o(163),tv=o(97288),tw=o(37614),tx=o(79028),tb=o(11433),tT={_getCss:function(){return tC},container:"productDisplay-module_container__Otkxd",subHeader:"productDisplay-module_subHeader__VELHA",row:"productDisplay-module_row__BZvhH",isInViewport:"productDisplay-module_isInViewport__7nGZC",revealItem:"productDisplay-module_revealItem__PjK9p"},tC="@keyframes productDisplay-module_revealItem__PjK9p{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}section.productDisplay-module_container__Otkxd h2{margin-bottom:.75rem;text-align:center}section.productDisplay-module_container__Otkxd p.productDisplay-module_subHeader__VELHA{margin-bottom:1.5rem;text-align:center}section.productDisplay-module_container__Otkxd .productDisplay-module_row__BZvhH{justify-content:center}@media only screen and (min-width:1024px){section.productDisplay-module_container__Otkxd .productDisplay-module_row__BZvhH .row{display:flex;flex-direction:column;flex-wrap:wrap}}section.productDisplay-module_container__Otkxd .productDisplay-module_row__BZvhH .add-to-cart{margin-top:auto}@media (prefers-reduced-motion:no-preference){.productDisplay-module_container__Otkxd{opacity:0}
1.productDisplay-module_container__Otkxd.productDisplay-module_isInViewport__7nGZC{animation:productDisplay-module_revealItem__PjK9p .5s forwards}}";let tE=(0,n.createContext)({isTooltipTopAligned:!1});(0,tf.X)(function(t){let[e,o]=(0,n.useState)(t.products),{appConfig:l}=(0,t_.P)(),{header:r,subHeader:d,enableStackedCardLayout:a,cardType:u,showPrice:s,showAddToCart:c,showTeaser:p,addToCartButtonOutlined:f,showAllocation:m,hideMultiSelect:_,designVariants:h,tooltipPositionVariants:g,enableImageBackgroundColor:y,headingTag:v}=t,[w,x]=(0,n.useState)(!1),b=!!(g&&h&&g.includes(h));(0,n.useEffect)(()=>{(0,tg.Tz)()&&function(){(0,th.sH)(this,void 0,void 0,function*(){var e;let i=(null==(e=t.productsReference)?void 0:e.length)?t.productsReference:null,n=null;i&&l&&(n=yield(0,tx.d)(i,l)),n&&o(n)})}()},[l,t.productsReference]),(0,tw.K)(e,void 0,void 0,w);let T=(null==e?void 0:e.length)%4==0?"fourColumns":void 0;return(0,i.jsxs)(tv.default,{className:(0,tp.$)("container","product-display",tT.container,w&&[tT.isInViewport,"in-viewport"],h&&[h.toLowerCase().replace(/ +/g,"-"),y?"enable-background-color":""]),onEnterViewport:()=>{x(!0)},"data-testid":"product-display--".concat(u),children:[(0,i.jsx)(ty.g,{componentName:"Product Display",visible:!r&&(void 0===e||e.length<=0),helperText:"Please select Products to display them here."}),r&&(0,i.jsx)("h2",{"data-testid":"product-display__header",children:r}),d?(0,i.jsx)("p",{className:tT.subHeader,children:d}):null,(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:(0,tp.$)("col-xl-10 offset-xl-1"),children:(0,i.jsx)(tE.Provider,{value:{isTooltipTopAligned:b},children:(0,i.jsx)("ul",{className:(0,tp.$)(tT.row,"row",4===(null==e?void 0:e.length)?"fourColumns":""),children:null==e?void 0:e.map((t,e)=>{let o=t.builderProductPageSlug;return o?(0,i.jsx)(tb.ProductCard,{product:t,productLink:o,headingTag:v,showPrice:s,showAddToCart:c,columnSize:T,showTeaser:p,cardType:u,hideMultiSelect:_,addToCartButtonOutlined:f,showAllocation:m,layout:a?"stacked":""},"".concat(t.slug,"-").concat(e)):null})})})})})]})},tT);var tO={_getCss:function(){return tS},tooltipContainer:"Tooltip-module_tooltipContainer__Et2Oy",tooltipOverlay:"Tooltip-module_tooltipOverlay__v8OH6",topAlign:"Tooltip-module_topAlign__bKlI9",arrow:"Tooltip-module_arrow__JG8QV",tooltipActive:"Tooltip-module_tooltipActive__fww-k",tooltipClose:"Tooltip-module_tooltipClose__YhrZX",innerContainer:"Tooltip-module_innerContainer__EFrGj",cta:"Tooltip-module_cta__Cxvax",tooltipShow:"Tooltip-module_tooltipShow__i50J4",tooltipDialogContainer:"Tooltip-module_tooltipDialogContainer__nO-7U",tooltipContent:"Tooltip-module_tooltipContent__pZkBD"},tS='div.Tooltip-module_tooltipContainer__Et2Oy{margin-left:.3125rem;position:absolute;right:calc(-.875rem - 6px);text-align:left;top:0}@media only screen and (min-width:480px){div.Tooltip-module_tooltipContainer__Et2Oy{right:calc(-.875rem - 4px)}}@media (hover:hover){div.Tooltip-module_tooltipContainer__Et2Oy:hover{--shadow-y:4px;transform:translateZ(0);z-index:5}div.Tooltip-module_tooltipContainer__Et2Oy:hover .Tooltip-module_tooltipOverlay__v8OH6{box-shadow:0 var(--shadow-y) 8px 0 #37393c;visibility:visible;z-index:10}div.Tooltip-module_tooltipContainer__Et2Oy:hover .Tooltip-module_tooltipOverlay__v8OH6.Tooltip-module_topAlign__bKlI9{--shadow-y:0px}div.Tooltip-module_tooltipContainer__Et2Oy:hover .Tooltip-module_arrow__JG8QV{visibility:visible}}div.Tooltip-module_tooltipContainer__Et2Oy.Tooltip-module_tooltipActive__fww-k{--shadow-y:4px;transform:translateZ(0);z-index:5}div.Tooltip-module_tooltipContainer__Et2Oy.Tooltip-module_tooltipActive__fww-k .Tooltip-module_tooltipOverlay__v8OH6{box-shadow:0 var(--shadow-y) 8px 0 #37393c;visibility:visible;z-index:10}div.Tooltip-module_tooltipContainer__Et2Oy.Tooltip-module_tooltipActive__fww-k .Tooltip-module_tooltipOverlay__v8OH6.Tooltip-module_topAlign__bKlI9{--shadow-y:0px}div.Tooltip-module_tooltipContainer__Et2Oy.Tooltip-module_tooltipActive__fww-k .Tooltip-module_arrow__JG8QV{visibility:visible}div.Tooltip-module_tooltipContainer__Et2Oy.Tooltip-module_tooltipActive__fww-k button.Tooltip-module_tooltipClose__YhrZX{display:flex}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_innerContainer__EFrGj{display:inline-block;position:relative}div.Tooltip-module_tooltipContainer__Et2Oy button{background:transparent;border:0;padding:0}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_cta__Cxvax{margin:0;padding-left:0;padding-right:0;transition:initial}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_cta__Cxvax span{color:#fff}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_cta__Cxvax:after{background-color:#fff;transition:initial;width:100%}div.Tooltip-module_tooltipContainer__Et2Oy button.Tooltip-module_tooltipShow__i50J4{background:#37393c;border-radius:50%;color:#fff;cursor:help;display:inline-block;font-size:.75rem;height:.875rem;line-height:.875rem;padding:0;text-align:center;width:.875rem}div.Tooltip-module_tooltipContainer__Et2Oy button.Tooltip-module_tooltipShow__i50J4:hover{background:#83754e}div.Tooltip-module_tooltipContainer__Et2Oy button.Tooltip-module_tooltipClose__YhrZX{align-items:center;cursor:pointer;display:none;height:40px;justify-content:center;position:absolute;right:5px;top:5px;width:40px}div.Tooltip-module_tooltipContainer__Et2Oy button.Tooltip-module_tooltipClose__YhrZX svg{stroke:#fff;fill:transparent;stroke-width:2px;height:30px;width:30px}div.Tooltip-module_tooltipContainer__Et2Oy button.Tooltip-module_tooltipClose__YhrZX:hover svg{fill:#fff}div.Tooltip-module_tooltipContainer__Et2Oy button.Tooltip-module_tooltipClose__YhrZX:hover svg g{stroke:#fff}div.Tooltip-module_tooltipContainer__Et2Oy button.Tooltip-module_tooltipClose__YhrZX:hover svg line{stroke:#37393c}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_tooltipDialogContainer__nO-7U{max-height:0;padding-top:1rem;z-index:-1}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_tooltipDialogContainer__nO-7U:hover{max-height:none}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_arrow__JG8QV{border-bottom:1rem solid #37393c;border-left:1rem solid transparent;border-right:1rem solid transparent;content:"";height:2rem;left:50%;position:absolute;transform:translateX(-50%);visibility:hidden;width:2rem}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_arrow__JG8QV.Tooltip-module_topAlign__bKlI9{transform:translate(-50%,-50%) rotate(180deg)}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_tooltipOverlay__v8OH6{background:#37393c;padding:1rem 1rem 1.5rem;position:relative;visibility:hidden;width:320px;z-index:-1}@media only screen and (min-width:768px){div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_tooltipOverlay__v8OH6{width:350px}}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_tooltipOverlay__v8OH6 p.Tooltip-module_tooltipContent__pZkBD{color:#fff;font-size:.875rem;letter-spacing:.0625rem;line-height:1.25rem;margin:0}div.Tooltip-module_tooltipContainer__Et2Oy .Tooltip-module_tooltipOverlay__v8OH6 p.Tooltip-module_tooltipContent__pZkBD strong{display:inline-block;padding-bottom:.75rem;padding-right:1.5rem;text-transform:uppercase;width:100%}';let tP=()=>(0,i.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 40 40",xmlSpace:"preserve","aria-hidden":"true",focusable:"false",children:(0,i.jsxs)("g",{children:[(0,i.jsx)("title",{children:"Close Tooltip"}),(0,i.jsx)("ellipse",{cx:"20",cy:"20",rx:"19.5",ry:"19.5"}),(0,i.jsx)("line",{x1:"12",y1:"12",x2:"28",y2:"28"}),(0,i.jsx)("line",{x1:"12",y1:"28",x2:"28",y2:"12"})]})}),tA=(0,tf.X)(function(t){var e,o,d;let a,c,f,_,h,x,{title:b,description:T,url:C,urlTitle:E}
1=t,{appConfig:{defaultClubUrl:O}}=(0,t_.P)(),{isTooltipTopAligned:S}=(0,n.use)(tE),P=(0,n.useRef)(null),[A,R]=(0,n.useState)(!1),[D,k]=(0,n.useState)(!1),j=b||"Join the Wine Society",{x:H,y:L,refs:N,strategy:I,update:B}=function(t){void 0===t&&(t={});let{placement:e="bottom",strategy:o="absolute",middleware:i=[],platform:l,elements:{reference:r,floating:d}={},transform:a=!0,whileElementsMounted:u,open:s}=t,[c,p]=n.useState({x:0,y:0,strategy:o,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=n.useState(i);ta(f,i)||m(i);let[_,h]=n.useState(null),[y,v]=n.useState(null),w=n.useCallback(t=>{t!==C.current&&(C.current=t,h(t))},[]),x=n.useCallback(t=>{t!==E.current&&(E.current=t,v(t))},[]),b=r||_,T=d||y,C=n.useRef(null),E=n.useRef(null),O=n.useRef(c),S=null!=u,P=tc(u),A=tc(l),R=tc(s),D=n.useCallback(()=>{if(!C.current||!E.current)return;let t={placement:e,strategy:o,middleware:f};A.current&&(t.platform=A.current),((t,e,o)=>{let i=new Map,n={platform:tl,...o},l={...n.platform,_c:i};return g(t,e,{...n,platform:l})})(C.current,E.current,t).then(t=>{let e={...t,isPositioned:!1!==R.current};k.current&&!ta(O.current,e)&&(O.current=e,tr.flushSync(()=>{p(e)}))})},[f,e,o,A,R]);td(()=>{!1===s&&O.current.isPositioned&&(O.current.isPositioned=!1,p(t=>({...t,isPositioned:!1})))},[s]);let k=n.useRef(!1);td(()=>(k.current=!0,()=>{k.current=!1}),[]),td(()=>{if(b&&(C.current=b),T&&(E.current=T),b&&T){if(P.current)return P.current(b,T,D);D()}},[b,T,D,P,S]);let j=n.useMemo(()=>({reference:C,floating:E,setReference:w,setFloating:x}),[w,x]),H=n.useMemo(()=>({reference:b,floating:T}),[b,T]),L=n.useMemo(()=>{let t={position:o,left:0,top:0};if(!H.floating)return t;let e=ts(H.floating,c.x),i=ts(H.floating,c.y);return a?{...t,transform:"translate("+e+"px, "+i+"px)",...tu(H.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:e,top:i}},[o,a,H.floating,c.x,c.y]);return n.useMemo(()=>({...c,update:D,refs:j,elements:H,floatingStyles:L}),[c,D,j,H,L])}({placement:S?"top-start":"bottom-end",middleware:[S&&{...{name:"offset",options:e=a={mainAxis:197},async fn(t){var o,i;let{x:n,y:l,placement:r,middlewareData:d}=t,a=await w(t,e);return r===(null==(o=d.offset)?void 0:o.placement)&&null!=(i=d.arrow)&&i.alignmentOffset?{}:{x:n+a.x,y:l+a.y,data:{...a,placement:r}}}},options:[a,c]},{...{name:"shift",options:d=h={padding:10,limiter:{...{options:o=f={offset:S?36:24},fn(t){let{x:e,y:i,placement:n,rects:l,middlewareData:r}=t,{offset:d=0,mainAxis:a=!0,crossAxis:c=!0}=u(o,t),f={x:e,y:i},_=m(n),h=p(_),g=f[h],y=f[_],w=u(d,t),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){let t="y"===h?"height":"width",e=l.reference[h]-l.floating[t]+x.mainAxis,o=l.reference[h]+l.reference[t]-x.mainAxis;g<e?g=e:g>o&&(g=o)}if(c){var b,T;let t="y"===h?"width":"height",e=v.has(s(n)),o=l.reference[_]-l.floating[t]+(e&&(null==(b=r.offset)?void 0:b[_])||0)+(e?0:x.crossAxis),i=l.reference[_]+l.reference[t]+(e?0:(null==(T=r.offset)?void 0:T[_])||0)-(e?x.crossAxis:0);y<o?y=o:y>i&&(y=i)}return{[h]:g,[_]:y}}},options:[f,_]}},async fn(t){let{x:e,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...f}=u(d,t),_={x:e,y:o},h=await y(t,f),g=m(s(i)),v=p(g),w=_[v],x=_[g];if(n){let t="y"===v?"top":"left",e="y"===v?"bottom":"right",o=w+h[t],i=w-h[e];w=r(o,l(w,i))}if(a){let t="y"===g?"top":"left",e="y"===g?"bottom":"right",o=x+h[t],i=x-h[e];x=r(o,l(x,i))}let b=c.fn({...t,[v]:w,[g]:x});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[v]:n,[g]:a}}}}},options:[h,x]}]});return(0,n.useEffect)(()=>{S||B()},[B,D,S]),(0,n.useEffect)(()=>{var t;if(A&&!S){B(),null==(t=P.current)||t.focus();let e=t=>{var e;if(["Enter","Shift","Tab"].includes(t.key))return!1;"Escape"==t.key&&(null==(e=P.current)||e.focus(),R(!1))};return window.addEventListener("keyup",e),()=>{window.removeEventListener("keyup",e)}}},[A,P,B,S]),(0,i.jsx)("div",{className:(0,tp.$)(tO.tooltipContainer,"tooltipContainer",A&&[tO.tooltipActive,"tooltip-active"]),children:(0,i.jsxs)("div",{className:tO.innerContainer,"data-testid":"tooltip",children:[(0,i.jsxs)("button",{ref:N.setReference,className:tO.tooltipShow,"aria-label":"Show help tooltip","aria-haspopup":"true",onClick:t=>{t.preventDefault(),R(!0)},onMouseEnter:()=>{k(!0)},onMouseLeave:()=>{k(!1)},children:["i",(0,i.jsx)("span",{className:(0,tp.$)(tO.arrow,S&&tO.topAlign,"tooltip__arrow")})]}),(0,i.jsx)("div",{className:tO.tooltipDialogContainer,role:"dialog",title:j,ref:N.setFloating,style:{position:I,top:null!=L?L:0,left:null!=H?H:0},children:(0,i.jsxs)("div",{className:(0,tp.$)(tO.tooltipOverlay,S&&tO.topAlign,"tooltip-overlay"),"data-testid":"tooltip__overlay",children:[(0,i.jsx)("button",{className:tO.tooltipClose,"aria-label":"Remove help tooltip",ref:P,onClick:t=>{t.preventDefault(),R(!1)},children:A&&(0,i.jsx)(tP,{})}),(0,i.jsxs)("p",{className:tO.tooltipContent,children:[(0,i.jsx)("strong",{children:j}),(0,i.jsx)("br",{}),T||"Receive exclusive discounts, special event invitations, complimentary tastings and more when you sign up."]}),(0,i.jsx)("br",{}),(0,i.jsx)(tm.default,{className:tO.cta,as:"Link",size:"small",design:"underline",href:C||O||"/join",children:E||"Learn More"})]})})]})})},tO)},79028:(t,e,o)=>{o.d(e,{d:()=>y});var i=o(71450),n=o(27122),l=o(82785),r=o(49200),d=o(60342),a=o(82627);let u=(t,e,o)=>{(0,n.Cp)(t,{contexts:{api:Object.assign({redisApiUrl:e.redisApiUrl},o),product:{builderProductIds:e.builderProductIds}},tags:{section:"redis"}})};var s=o(65895),c=o(86846);function p(t){return(0,i.sH)(this,arguments,void 0,function*({model:t,apiKey:e,query:o,fields:i,cacheSeconds:n,staleCacheSeconds:l,limit:r,offset:d}){if(!t)throw Error("customFetchEntries: Model is required");let a=`https://cdn.builder.io/api/v3/content/${t}
1`,u=new URLSearchParams({apiKey:e});for(let[t,e]of Object.entries({limit:r,offset:d,fields:i,cacheSeconds:n,staleCacheSeconds:l}))null!=e&&u.set(t,String(e));o&&u.append("query",JSON.stringify(o));let s=`${a}?${u.toString()}`,c=yield fetch(s);if(!c.ok)throw Error(`customFetchEntries: Builder API request failed: ${c.status} ${c.statusText}`);return(yield c.json()).results})}function f(t,e){return(0,i.sH)(this,void 0,void 0,function*(){var o,l,r;if(!t)return[];let d=t.filter(t=>{var e;return!!(null==(e=null==t?void 0:t.product)?void 0:e.id)}),a=[...new Set(d.filter(t=>!t.product.value).map(t=>t.product.id))],u=new Map;if(a.length>0){let t=0,o=!0;for(;o;){let l=yield function(t,e){return(0,i.sH)(this,arguments,void 0,function*(t,e,o=100,l=0){if(!e||0===e.length)return null;let r=yield(0,s.b)(()=>(0,i.sH)(this,void 0,void 0,function*(){return yield p({model:c.Nu.C7_PRODUCT_DATA,apiKey:t.builderApiKey,fields:"data,name,id",query:{id:{$in:e}},limit:o,offset:l,cacheSeconds:t.cacheTTL,staleCacheSeconds:t.cacheTTL})}),(t,e)=>{if(!e)return(0,n.wd)("builderApi - getProductDataBatch - tryCatchRetry",{level:"error",contexts:{fetch:{error:t,model:c.Nu.C7_PRODUCT_DATA}}}),t},3,250);return r&&Array.isArray(r)?r:null})}(e,a,100,t);l&&0!==l.length?(l.forEach(t=>{t.id&&u.set(t.id,t)}),l.length<100?o=!1:t+=100):o=!1}}let f=[];for(let t of d){let{product:e}=t,n=(0,i.Tt)(t,["product"]);if(e.value){let t=(l=e.value,r=e.id,l?Object.assign(Object.assign(Object.assign({},l.data),{title:l.name,builderReferenceId:r}),n):null);t&&f.push(t)}else if(u.has(e.id)){let t=u.get(e.id),i=Object.assign(Object.assign(Object.assign({},t.data),{title:t.name||(null==(o=t.data)?void 0:o.title),builderReferenceId:e.id}),n);f.push(i)}}return f})}let m={getSelectedProductsData:f,getSelectedProductsPage:function(t,e){return(0,i.sH)(this,void 0,void 0,function*(){let o=0,l=[],r=!0,d=[...new Set(e.map(t=>{var e,o;return null==(o=null==(e=t.product)?void 0:e.value)?void 0:o.data.id}).filter(t=>"string"==typeof t))];if(e.length>0&&d.length<=0&&(d=(yield f(e,t)).map(t=>t.id)),0===d.length)return[];for(;r;){let e=yield function(t,e,o,l){return(0,i.sH)(this,void 0,void 0,function*(){if(!e||0===e.length)return null;let o=yield(0,s.b)(()=>(0,i.sH)(this,void 0,void 0,function*(){return yield p({model:c.Nu.PRODUCT,apiKey:t.builderApiKey,limit:100,offset:l,fields:"data",query:{"data.id":{$in:e}},cacheSeconds:t.cacheTTL,staleCacheSeconds:t.cacheTTL})}),(t,e)=>{if(!e)return t},3,250);return o&&Array.isArray(o)?o:((0,n.wd)("builderApi - getProductPagesBatch - Error returned",{level:"error",contexts:{fetch:{error:o,model:c.Nu.PRODUCT}}}),null)})}(t,d,0,o);e&&0!==e.length?(l=l.concat(e),e.length<100?r=!1:o+=100):r=!1}return l})}};var _=o(55262),h=o(86293),g=o(82539);let y=(t,e,o)=>(0,i.sH)(void 0,void 0,void 0,function*(){let s=yield m.getSelectedProductsData(t,e),p=s.filter(t=>(null==t?void 0:t.id)&&(null==t?void 0:t.slug)),f={},y=[],v=!1;if((null==o?void 0:o.isServerSideRequest)&&s){let t=s.filter(t=>(null==t?void 0:t.id)&&(null==t?void 0:t.slug)).map(t=>null==t?void 0:t.id),o=yield function(t,e){return(0,i.sH)(this,void 0,void 0,function*(){let o;if(!e.webServiceApiUrl||!e.redisApiKey||!e.redisBrand)return void u(Error("getProductsFromRedis is missing env variables"),{builderProductIds:t});let n=e.redisApiKey,s=t.filter(t=>(0,l.aJ)(t)),c=s.join("&p_id="),p=`${e.webServiceApiUrl}/get-products?brand=${e.redisBrand}&p_id=${c}`,f={redisApiUrl:p,builderProductIds:s},m=yield(0,d.J)(()=>(0,i.sH)(this,void 0,void 0,function*(){let t=yield(0,a.A)(p,{method:"GET",headers:{"X-API-KEY":n}});if(!t.ok&&t.status>=500)throw Error(`getProductsFromRedis - ${t.status} ${t.statusText}`);return t}));if(m instanceof Error)return void u(m,f,{error:(0,r.R)(m)});try{o=yield m.json()}catch(t){return void u(t,f,{error:(0,r.R)(t)})}if(null==o?void 0:o.response)return o.response;u(Error(`getProductsFromRedis Error - ${null==o?void 0:o.detail}`),f,{data:o})})}(t,e);if(o)for(let t in y=p.filter(t=>(null==t?void 0:t.id)&&o[t.id]&&o[t.id].type!==c.S6.NOTFOUND&&o[t.id].webStatus!==c.r8.RETIRED),o)o[t]&&(f[o[t].slug]=o[t]);else v=!0}if(!(null==o?void 0:o.isServerSideRequest)||v){let t=[];y=(function(t,e){return(0,i.sH)(this,void 0,void 0,function*(){let o=Symbol();return(yield Promise.all(t.map(t=>(0,i.sH)(this,void 0,void 0,function*(){return(yield e(t))?t:o}
1)))).filter(t=>t!==o)})})(p,l=>(0,i.sH)(void 0,void 0,void 0,function*(){try{let i=yield _.A.getProduct(l.slug,e,null==o?void 0:o.customerId),n=(0,g.s)(i);if(n)return f[n.slug]=n,n.type!==c.S6.NOTFOUND&&n.webStatus!==c.r8.RETIRED;return(!i||"object"!=typeof i||i instanceof Error||0!==Object.keys(i).length)&&t.push(l.slug),!1}catch(e){return t.push(l.slug),(0,n.Cp)(e,{contexts:{product:{builderSlug:l.slug,customerId:null==o?void 0:o.customerId}},tags:{section:"product"}}),!1}})).then(e=>(t.length&&(null==o?void 0:o.isServerSideRequest)&&(0,n.wd)("getMergedProductsData - collection page rendered with missing products",{level:"warning",contexts:{product:{droppedProductSlugs:t,droppedCount:t.length,totalRequested:p.length,shouldUseC7Api:v}},tags:{section:"product"}}),e))}let w=new Map,x=yield m.getSelectedProductsPage(e,t);return null==x||x.forEach(t=>{var e;(null==(e=t.data)?void 0:e.id)&&(w.has(t.data.id)||w.set(t.data.id,t))}),Promise.all((yield y).map(t=>(0,i.sH)(void 0,void 0,void 0,function*(){var i;let l=w.get(t.id);if(l&&(null==(i=l.data)?void 0:i.url)?t.builderProductPageSlug=l.data.url:(null==o?void 0:o.isServerSideRequest)&&(null==o?void 0:o.isSentryLoggingEnabled)&&(0,n.wd)("getMergedProductsData - unable to map ProductCard to the respective PDP Hero",{level:"warning",contexts:{product:{builderProductReferenceId:t.builderReferenceId,builderProductSlug:t.slug},apiData:{builderProductData:JSON.stringify(t,null,2),builderProductPages:JSON.stringify(null==x?void 0:x.map(t=>{var e,o;return{id:(null==(e=t.data)?void 0:e.id)||"null",slug:(null==(o=t.data)?void 0:o.slug)||"null"}}),null,2),cachedC7ProductsResponse:JSON.stringify(f[t.slug],null,2),shouldUseC7Api:!!v}},tags:{section:"product"}}),t&&t.slug){let i=f[t.slug];if(i){let n=(0,h.NM)(i,e.c7WineShippingLocation);return(0,h.O9)(n,t,null==o?void 0:o.heroBackgroundImages)}}return t})))})}}]);
2//# sourceMappingURL=6972.510959f34ed910cc.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.