PageSourceSearch

https://www.averys.com/_next/static/chunks/pages/_app-105dacf3-45de23838907bfc5.js

js averys.com collected 2026-10-02 12:47:08 UTC 33,808 bytes, 322 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4528],{23670:(e,t,i)=>{i.d(t,{X:()=>o});var s=i(75213),n=i(60004),l=i(21192),a=i(58229);let r="53aa8912dec7e10d38f59f36",o=(0,n.memo)(e=>{let{tags:t="Adviser",locale:i,businessUnitId:o,dwDomain:c,showMiniCarousel:d}=e,p=n.useRef(null),[u,h]=(0,n.useState)(r),[m,f]=(0,n.useState)(140),y=(0,a.css)`
2      padding-top: 80px;
3      padding-bottom: 80px;
4    `;return(0,n.useEffect)(()=>{h(d?"539ad0ffdec7e10e686debd7":r),f(d?320:140)},[d]),(0,n.useEffect)(()=>{(0,l.B)()&&window.Trustpilot&&window.Trustpilot.loadFromElement(p.current,!0)},[m,u]),(0,s.Y)("div",{css:y,ref:p,className:"trustpilot-widget","data-locale":i,"data-template-id":u,"data-businessunit-id":o,"data-style-height":`${m}px`,"data-style-width":"100%","data-theme":"light","data-tags":t,"data-stars":"1,2,3,4,5","data-review-languages":"en",children:(0,s.Y)("a",{href:`https://uk.trustpilot.com/review/${c}`,target:"_blank",rel:"noopener noreferrer",children:"Trustpilot"})})})},25288:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(75213);i(60004);var n=i(77476),l=i(60234),a=i(48860),r=i(54744);let o=r.A.div`
5  ${e=>{let{theme:t,status:i,label:s,loading:n,message:l}=e,a=t.colors.grey40,r=t.colors.grey20;n||("error"===i?(a=t.colors.error,r=t.colors.error):"warning"===i&&(a=t.colors.warning,r=t.colors.warning));let o=l?`.feedback {
6      font-size: ${t.fonts.sizeSmall};
7      display: flex;
8      padding-top: 8px;
9      align-items: center;
10      gap: 4px;
11      margin-block: 0;
12      color: ${a};
13    }`:"",c=n?`.loader {
14      ::after {
15        ${t.mixins.loading}
16      }
17    }`:"",d=s?`label {
18        color: ${t.colors.black};
19        font-weight: normal;
20        font-size: ${t.fonts.sizeDefault};
21        position: absolute;
22        pointer-events: none;
23        padding: 0 2px;
24        left: 15px;
25        top: 50%;
26        transform: translateY(-50%);
27        transition: 0.2s ease all;
28        span{
29          color: red;
30        }
31      }
32      input:focus ~ label,
33      input:-webkit-autofill ~ label,
34      input:not(:placeholder-shown) ~ label {
35        font-size: ${t.fonts.sizeSmall};
36        background-image: linear-gradient(rgba(255,0,0,0) 70%, ${t.colors.white} 0%);
37        color: ${a};
38        top: -4px;
39        left: 9px;
40        padding: 0 3px;
41      }
42      input:disabled ~ label {
43        color:${t.colors.grey30};
44      }
45      `:"";return`
46    margin: 8px 0;
47  .field-container {
48    position: relative;
49    input {
50      background-color: ${t.colors.white};
51      border: 1px solid ${r};
52      font-size: ${t.fonts.sizeDefault};
53      width: 100%;
54      padding: 12px 18px;
55      text-overflow: ellipsis;
56      white-space: nowrap;
57      border-radius: 5px;
58      overflow: hidden;
59      &::placeholder {
60        opacity: 1;
61        transition: all 0.2s;
62      }
63      &:placeholder-shown:not(:focus)::placeholder {
64        opacity: 0;
65      }
66      &:focus {
67        outline: none;
68        border: 1px solid ${t.colors.black};
69      }
70      &:disabled {
71        cursor: default;
72      }
73    }
74    .suffix-icon {
75      position: absolute;
76      top: 50%;
77      transform: translateY(-50%);
78      right: 20px;
79    }
80    ${c}
81    ${d}
82  }
83  .help-info{
84    display: flex;
85    justify-content: flex-end;
86    flex-direction: row;
87    margin-bottom: 8px;
88  }
89  ${o}
90  `}}
91`,c=e=>{let{loading:t,label:i,status:r,message:c,name:d,required:p,disabled:u,value:h,...m}=e,f=u||t;return(0,s.FD)(o,{className:`${r&&!f?r:""}`,...e,children:[(0,s.FD)("div",{className:"field-container",children:[(0,s.Y)("input",{disabled:f,required:p,name:d,...m,value:t?"":h}),"success"===r&&!f&&(0,s.Y)("span",{className:"suffix-icon",children:(0,s.Y)(n.A,{})}),t&&(0,s.Y)("span",{className:"loader"}),!t&&(0,s.FD)("label",{htmlFor:d,children:[i," ",p&&(0,s.Y)("span",{children:"*"})]})]}),r&&!f&&c&&(0,s.FD)("p",{className:"feedback",children:["error"===r?(0,s.Y)(l.A,{}):(0,s.Y)(a.A,{})," ",c]})]})};c.defaultProps={type:"text",placeholder:" ",disabled:!1};let d=c},31412:(e,t,i)=>{i.d(t,{e:()=>k});var s=i(75213),n=i(60004),l=i(58229),a=i(44098),r=i(6556),o=i(74360);let c=e=>{let{activeTabIndex:t,tabsData:i,setActiveTabIndex:n}=e,r=(0,a.u)().widgets.Tabs||{},o=(0,l.css)`
92    ${r.tabButton}
93  `,c=(0,l.css)`
94    ${r.tabListStyles}
95  `;return(0,s.Y)("ul",{css:c,children:i.map((e,i)=>(0,s.Y)("li",{css:o,className:t===i?"active":"tabLine",children:(0,s.Y)("a",{href:"#tabs-home",onClick:e=>{e.preventDefault(),n(i)},role:"tab","aria-controls":`tabs-${i}`,"aria-selected":t===i,children:e.title})},e.title))})},d=e=>{let{activeTabIndex:t,tabsData:i}=e,n=(0,a.u)().widgets.Tabs||{},r=(0,l.css)`
96    ${n.tabcontainer}
97  `,o=(0,l.css)`
98    display: block;
99
100    ${n.tabcontent}
101  `;return(0,s.Y)("div",{css:r,children:i.map((e,i)=>(0,s.Y)("div",{css:[o,{display:t===i?"block":"none"}],role:"tabpanel","aria-labelledby":`tabs-${i}-tab`,children:e.body},e.title))})},p=e=>{let{tabsData:t,activeTabIndex:i,setActiveTabIndex:n}=e,r=(0,a.u)().widgets.Tabs||{},o=(0,l.css)`
102    ${r.tabselect}
103  `;return(0,s.FD)("select",{value:"",onChange:e=>{e.preventDefault(),n(Number(e.target.value))},css:o,children:[(0,s.Y)("option",{value:"",children:"Select Another Category"}),t.map((e,t)=>(0,s.Y)("option",{className:i===t?"active":"tabLine",value:t,children:e.title},e.title))]})},u=e=>{let{children:t,onSaveUserPreferences:i,currentUserPreferences:r,chooseTwo:o,setChooseTwo:u}=e,h=Number(localStorage.getItem("activeTabIndex"))||0,[f,y]=(0,n.use
103State)(h),b=(0,a.u)().widgets.Tabs||{},g=(0,l.css)`
104      ${b.wrapper}
105    `,v=(0,l.css)`
106      height: 40px;
107      font-family: Arial, sans-serif;
108
109      ${b.header}
110    `,w=(0,l.css)`
111      width: 90%;
112      ${b.selectChanges}
113    `,Y=(0,l.css)`
114      background-color: white;
115      border: 1px solid #ddd;
116
117      ${b.body}
118
119      .active {
120        display: block;
121      }
122    `,$=(0,l.css)`
123      ${b.mobileImage}
124    `,x=(0,l.css)`
125      ${b.savepreferences}
126    `,k=(0,l.css)`
127      ${b.notification}
128    `,N=(0,l.css)`
129      ${b.bottomTabSection}
130    `,F=m(t);return(0,n.useEffect)(()=>{localStorage.setItem("activeTabIndex",String(f)),u(!1)},[f]),(0,s.FD)("div",{"data-test":"Tabs",css:g,children:[(0,s.Y)("ul",{css:v,children:(0,s.Y)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.Y)(c,{tabsData:F,activeTabIndex:f,setActiveTabIndex:y})})}),(0,s.FD)("div",{css:$,children:[(0,s.Y)("div",{}),(0,s.FD)("p",{children:["Currently Viewing: ",(0,s.Y)("b",{style:{paddingLeft:5},children:F[f].title})]})]}),(0,s.Y)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.Y)("div",{css:w,children:(0,s.Y)(p,{tabsData:F,activeTabIndex:f,setActiveTabIndex:y})})}),(0,s.FD)("div",{css:Y,children:[o&&(0,s.Y)("div",{css:k,children:(0,s.Y)("p",{children:"Please select only two styles per column. If you enjoy each of the styles listed for reds or for whites, uncheck the individuals and select the 'Any Style' box."})}),(0,s.Y)("div",{children:(0,s.Y)(d,{tabsData:F,activeTabIndex:f})}),(0,s.Y)("div",{css:N,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:(0,s.Y)("div",{css:w,children:(0,s.Y)(p,{tabsData:F,activeTabIndex:f,setActiveTabIndex:y})})}),(0,s.FD)("div",{css:x,children:[(0,s.Y)("button",{onClick:()=>{let e=setTimeout(()=>{i(r,void 0).then(()=>{let e=F[f].title.replace(/\s/g,""),t=`/jsp/account/common/account_wine_preference.jsp?dw_preference=true&tab=${e}`;window.location.href=t})},1e3);return()=>clearTimeout(e)},children:"Save My Wine Preferences"}),(0,s.Y)("p",{children:"All done? Just click once after updating all desired tabs."})]})]})]})};u.Tab=e=>(0,s.Y)("div",{...e});var h=i(67652);let m=e=>{let t=[];for(let i of n.Children.toArray(e)){if(i.type!==f.Tab&&i.type!==u.Tab){h.vF.error("Unexpected child of Tabs. Only type Tabs.Tab or TabsCentral.Tab is allowed");continue}t.push({title:i.props.title,body:i.props.children})}return t},f=e=>{let{children:t}=e,[i,r]=(0,n.useState)(0),o=(0,a.u)(),u=o.widgets.Tabs||{},h=(0,l.css)`
131      ${u.wrapper}
132    `,f=(0,l.css)`
133      display: flex;
134      list-style: none;
135      margin: 0;
136      padding: 0;
137
138      ${u.header}
139
140      .active {
141        background-color: ${o.colors.primary1};
142        color: white;
143      }
144    `,y=(0,l.css)`
145      ${u.selectChanges}
146    `,b=(0,l.css)`
147      background-color: white;
148      border: 1px solid #ddd;
149      border: 0;
150
151      ${u.body}
152
153      .active {
154        display: block;
155      }
156    `,g=(0,l.css)`
157    overflow-x: auto;
158    overflow-y: hidden;
159    white-space: nowrap;
160  `,v=m(t);return(0,s.FD)("div",{"data-test":"Tabs",css:h,children:[(0,s.Y)("div",{css:g,children:(0,s.Y)("ul",{css:f,children:(0,s.Y)(c,{tabsData:v,activeTabIndex:i,setActiveTabIndex:r})})}),(0,s.Y)("div",{css:y,children:(0,s.Y)("div",{children:(0,s.Y)(p,{tabsData:v,activeTabIndex:i,setActiveTabIndex:r})})}),(0,s.Y)("div",{css:b,children:(0,s.Y)(d,{tabsData:v,activeTabIndex:i})})]})};f.Tab=e=>(0,s.Y)("div",{...e});var y=i(66752);let b=(e,t)=>"fr"===t&&e[1]?e[1].text:e[0].text,g=(e,t,i)=>{if(!e?.availableTypes)return[];let s=[],n=[],l={};for(let t of e.availableTypes)l[t.type]=t;for(let s of e.preferences){if(!1===s.webEnabled&&!i){h.vF.warn("Skipping pref",s.type,"as webEnabled flag = false");continue}let e=s.type,a={...s,displayName:b(s.displayName,t)},r=n.find(t=>t.type===e);if(!r){let i=l[e];r={type:e,items:[],typeData:{...i,displayName:b(i.displayName,t),options:i.options.map(e=>({...e,displayName:b(e.displayName,t)}))}},n.push(r)}r.items.push(a)}for(let e of n){let t=[...e.items].sort((e,t)=>e.sortOrder-t.sortOrder);e.items=t}
160for(let i of e.groups){let e={id:i.id,displayName:b(i.displayName,t),items:[]};for(let t of n)t.typeData.groupId===i.id&&e.items.push(t);s.push(e)}return s},v=e=>{let{typeData:t,items:i,type:n,widgetTheme:a,handleUpdate:r,isCallingOnce:o,selections:c={}}=e,d=(0,l.css)`
161    ${a.checkboxlabel}
162  `,p=(0,l.css)`
163    span:nth-child(2) {
164      display: none !important;
165    }
166    ${a.tablediv}
167  `,u=(0,l.css)`
168    ${a.checkavailable}
169  `,h=(0,l.css)`
170    ${a.hrstyle}
171  `,m=(0,l.css)`
172    ${a.circleRegular}
173  `,f=(0,l.css)`
174    ${a.circleRegularCheck}
175  `;return i.map(e=>{let i=2===c[e.id];return(0,s.FD)("label",{css:d,className:i?"":"unselected",style:{width:"100%"},children:[(0,s.FD)("div",{css:p,children:[(0,s.Y)("span",{id:`label-${t.type}-${e.id}`,children:e.displayName}),(0,s.Y)("input",{"data-test":`input-${t.type}-${e.id}`,type:"checkbox",name:n,checked:i,"aria-labelledby":`label-${t.type}-${e.id}`,onChange:()=>{o&&r(t.type,e.id,2*!i,!0)}}),(0,s.Y)("div",{css:u,children:2===c[e.id]?(0,s.Y)("div",{css:f}):(0,s.Y)("div",{css:m})}),(0,s.Y)("span",{children:e.displayName})]}),(0,s.Y)("hr",{css:h})]},e.id)})},w=e=>{let{brandPref:t,userPrefs:i,widgetTheme:n,doUpdateUserPreferences:a,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,handleUpdateMultiSelect:d,marketname:p,brand:u,brandMarket:h}=e,m=i[t.type];switch(t.typeData.choiceType){case"single":return function(e,t,i,n){let{items:a,type:r,typeData:o}=e,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d=0===Object.keys(c).length?"unselected":"",p=(0,l.css)`
176    label {
177      display: block;
178    }
179
180    ${t.singleChoiceList}
181  `,u=a.map(e=>(0,s.FD)("label",{children:[(0,s.Y)("input",{"data-test":`input-${r}-${e.id}`,type:"radio",name:r,value:e.id,checked:void 0!==c[e.id],onChange:()=>{n&&i(r,e.id,2,!1)}}),(0,s.Y)("span",{children:e.displayName})]},e.id));return(0,s.FD)("div",{css:p,"data-test":`preference-group-single-choice-list preference-${r}`,children:[(0,s.Y)("em",{children:o.displayName}),(0,s.Y)("div",{role:"group","aria-labelledby":"my-radio-group",className:d,children:u})]},r)}(t,n,a,o,m);case"array":return function(e){let{items:t,type:i,typeData:n,widgetTheme:a,doUpdateUserPreferences:r,shouldFallbackToDefaults:o,isCallingOnce:c,brandName:d,brandMarket:p,selections:u={}}=e,h=(0,l.css)`
182    width: 100%;
183    border-collapse: collapse;
184
185    ${a.singleChoiceTable};
186  `,m=(0,l.css)`
187    ${a.webViewStyles};
188  `,f=(0,l.css)`
189    ${a.choicepadding};
190  `,y=t.map(e=>(function(e){let{item:t,typeData:i,selections:n,doUpdateUserPreferences:a,shouldFallbackToDefaults:r,isCallingOnce:o,widgetTheme:c,brand:d="defaultBrand",brandMarket:p=""}=e,u=(0,l.css)`
191    height: 44px !important;
192
193    ${c.choiceRow}
194  `,h=(0,l.css)`
195    ${c.choiceclose}
196  `,m=(0,l.css)`
197    ${c.IconCheckYellow}
198  `,f=(0,l.css)`
199    ${c.IconCheckGreen}
200  `,y=(0,l.css)`
201    ${c.choicelabel}
202  `,b=(0,l.css)`
203    ${c.radioChecked}
204  `,g=(0,l.css)`
205    ${c.radioUnChecked}
206  `,v=(0,l.css)`
207    ${c.likeColorIcon}
208  `,w=(0,l.css)`
209    ${c.likeNoColorIcon}
210  `,Y=(0,l.css)`
211    ${c.disLikeColor}
212  `,$=(0,l.css)`
213    ${c.disNoLikeColor}
214  `,x=(0,l.css)`
215    ${c.wouldTryRadio}
216  `,k=(0,l.css)`
217    ${c.wouldTryCircle}
218  `,N=(0,l.css)`
219    ${c.questionCircle}
220  `,F=!1,D=i.options.map(e=>{let l=t.id+e.value,c=n[t.id]===e.value,u=void 0===n[t.id],D="defaultOption"in i&&i.defaultOption===e.value,I=c||r&&u&&D;u||(F=!0);let T=null;return("wsj"===d||"npr"===d||"osw"===d||"fox"===d||"bon"===d)&&(T=I&&0===e.value?(0,s.Y)("div",{css:h}):I&&1===e.value?(0,s.Y)("div",{css:m}):I&&2===e.value?(0,s.Y)("div",{css:f}):(0,s.Y)("div",{css:N})),("tcm"===d||"uslaw"===d&&"us"===p)&&(T=I&&(2===e.value||1===e.value||0===e.value)?(0,s.Y)("div",{css:b}):(0,s.Y)("div",{css:g})),("law"===d||"vir"===d||"adc"===d||"newstf"===d)&&("nz"===p||"au"===p)&&(I&&0===e.value?T=(0,s.Y)("div",{css:Y}):I&&1===e.value?T=(0,s.Y)("div",{css:x}):I&&2===e.value?T=(0,s.Y)("div",{css:v}):0===e.value?T=(0,s.Y)("div",{css:$}):1===e.value?T=(0,s.Y)("div",{css:k}):2===e.value&&(T=(0,s.Y)("div",{css:w}))),(0,s.Y)("td",{children:(0,s.FD)("label",{css:y,children:[(0,s.Y)("input",{"data-test":`input-${i.type}-${t.id}-${e.value}`,type:"radio",name:t.id,value:e.value,checked:I,onChange:()=>{o&&a(i.type,t.id,e.value,!0)}}),T]})},l)}),I=F?"":"unselected";return(0,s.FD)("tr",{css:u,className:I,children:[(0,s.Y)("th",{children:t.displayName}),D]},t.id)})({item:e,typeData:n,selections:u,doUpdateUserPreferences:r,shouldFallbackToDefaults:o,isCallingOnce:c,widgetTheme:a,brand:d,brandMarket:p}));return(0,s.Y)("div",{css:f,"data-test":`preference-group-single-choice-table preference-${n.type}`,children:(0,s.Y)("div",{css:m,children:(0,s.FD)("table",{css:h,children:[(0,s.Y)("thead",{children:function(e,t){let i=(0,l.css)`
221    ${t.choiceHeader}
222  `,n=(0,l.css)`
223    ${t.choiceName};
224  `,a=(0,l.css)`
225    ${t.chooseoption};
226  `,r=e.options.map(t=>{let i=e.type+t.value,n=t.displayName.split("/");return(0,s.Y)("th",{css:a,children:(0,s.Y)("span",{children:n.map((e,t)=>(0,s.FD)("span",{children:[t>0&&" / ",e]},e))})},i)});return(0,s.FD)("tr",{css:i,children:[(0,s.Y)("th",{children:"Name"}),(0,s.Y)("th",{css:n,children:(0,s.Y)("span",{style:{paddingLeft:4,display:"inline-block"},children:e.displayName})}),r]})}(n,a)}),(0,s.Y)("tbody",{className:"tablebody",children:y})]})})},i)}({items:t.items,type:t.type,typeData:t.typeData,widgetTheme:n,doUpdateUserPreferences:a,shouldFallbackToDefaults:r,isCallingOnce:o,brandName:u,brandMarket:h,selections:m});case"multi":return function(e){let{items:t,type:i,typeData:n,widgetTheme:a,handleUpdateMultiSelect:r,isCallingOnce:o,handleUpdate:c,marketname:d,selections:p={}}=e,u=(0,l.css)`
227    label {
228      display: block;
229    }
230    ${a.multiSelectList}
231  `,h=t.map(e=>{let t=2===p[e.id],i=r;return("US"===d||"AUS"===d||"NZL"===d)&&o&&(i=c),(0,s.FD)("label",{className:t?"":"unselected",children:[(0,s.Y)("input",{"data-test":`input-${n.type}-${e.id}`,type:"checkbox",name:n.type,checked:t,onChange:()=>
231{i(n.type,e.id,2*!t,!0)}}),(0,s.Y)("span",{children:e.displayName})]},e.id)});return(0,s.FD)("div",{css:u,"data-test":`preference-group-multi-choice-list preference-${n.type}`,children:[(0,s.Y)("em",{children:n.displayName}),(0,s.Y)("em",{children:("US"===d||"NZL"===d)&&"(please choose up to two)"}),h]},i)}({items:t.items,type:t.type,typeData:t.typeData,widgetTheme:n,handleUpdateMultiSelect:d,isCallingOnce:o,handleUpdate:c,marketname:p,selections:m})}},Y=e=>{let{brandPrefsList:t,userPrefs:i,widgetTheme:n,doUpdateUserPreferences:a,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,handleUpdateMultiSelect:d,marketname:p,brand:u,brandMarket:h}=e;return t.some(e=>"multi"===e.typeData.choiceType)?(e=>{let t=(0,l.css)`
232      flex: 1;
233      ${n.muiltidiv}
234    `,a=`
235    ${n.muiltidivFirst};
236    `,r=(0,l.css)`
237      ${n.multiChoiceTable};
238    `,d=(0,l.css)`
239      margin: 0;
240      ${n.tableBody};
241    `,p=(0,l.css)`
242      ${n.multiSelectContainer};
243    `,u=(0,l.css)`
244      ${n.thside};
245    `,h=(0,l.css)`
246      ${n.thtop};
247    `;return(0,s.Y)("div",{css:p,"data-test":"preference-group-multi-choice-list preference-",children:e.map((e,l)=>{let{typeData:p}=e,m=i[e.type];return(0,s.Y)("div",{css:[t,0===l&&a],children:(0,s.FD)("table",{css:r,children:[(0,s.Y)("thead",{children:(0,s.FD)("tr",{children:[(0,s.FD)("th",{css:h,children:[(0,s.Y)("em",{children:e.type.replace(/([a-z])([A-Z])/g,"$1 $2")}),(0,s.Y)("em",{className:"selectionLimitMsg",children:"(Please choose up to two.)"})]}),(0,s.Y)("th",{css:u,children:(0,s.FD)("em",{children:[p.displayName.replace(/([a-z])([A-Z])/g,"$1 $2").trim(),(0,s.Y)("span",{className:"selectionLimitMsg",children:" (Please choose up to two.)"})]})})]})}),(0,s.Y)("tbody",{css:d,children:v({typeData:e.typeData,items:e.items,type:e.type,widgetTheme:n,handleUpdate:c,isCallingOnce:o,selections:m})})]})},`choice-${e.typeData.groupId}-${e.typeData.displayName}`)})},"")})(t):t.map(e=>w({brandPref:e,userPrefs:i,widgetTheme:n,doUpdateUserPreferences:a,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,handleUpdateMultiSelect:d,marketname:p,brand:u,brandMarket:h}))},$=e=>{let{brandPrefsList:t,userPrefs:i,widgetTheme:s,doUpdateUserPreferences:n,handleUpdateMultiSelect:l,shouldFallbackToDefaults:a,isCallingOnce:r,handleUpdate:o,marketname:c,brand:d,brandMarket:p}=e;return t.map(e=>w({brandPref:e,userPrefs:i,widgetTheme:s,doUpdateUserPreferences:n,shouldFallbackToDefaults:a,isCallingOnce:r,handleUpdate:o,handleUpdateMultiSelect:l,marketname:c,brand:d,brandMarket:p}))},x=e=>{let{brandPrefGroupList:t,widgetTheme:i,doUpdateUserPreferences:n,groupType:a,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,handleUpdateMultiSelect:d,marketname:p,chooseTwo:h,setChooseTwo:m,onSaveUserPreferences:b,currentUserPreferences:g,brand:v,handleTabClick:w,activeTabs:x,brandMarket:k,userPrefs:N={}}=e,F=(0,l.css)`
248    ${i.minus}
249  `,D=(0,l.css)`
250    ${i.plus}
251  `,I=(0,l.css)`
252    ${i.deskImage}
253  `,T=(0,l.css)`
254    ${i.tabsindividual}
255  `,C=(0,l.css)`
256    ${i.divtabsindividual}
257  `;return"tabs"===a?(0,s.Y)(f,{children:t.map(e=>(0,s.Y)(f.Tab,{title:e.displayName,children:$({brandPrefsList:e.items,userPrefs:N,widgetTheme:i,doUpdateUserPreferences:n,handleUpdateMultiSelect:d,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,marketname:p,brand:v,brandMarket:k})},e.id))}):"tabscenter"===a?(0,s.FD)("div",{children:[(0,s.Y)("div",{css:I}),(0,s.Y)(u,{onSaveUserPreferences:b,currentUserPreferences:g,chooseTwo:h,setChooseTwo:m,children:t.map(e=>(0,s.Y)(u.Tab,{title:e.displayName,children:Y({brandPrefsList:e.items,userPrefs:N,widgetTheme:i,doUpdateUserPreferences:n,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,handleUpdateMultiSelect:d,marketname:p,brand:v,brandMarket:k})},e.id))})]}):"tabsindividual"===a?(0,s.Y)("div",{children:t.map(e=>(0,s.FD)("div",{css:C,children:[(0,s.FD)("div",{css:T,onClick:()=>w(e.id),onKeyDown:()=>w(e.id),tabIndex:0,role:"button",children:[e.displayName.toUpperCase(),x.includes(e.id)?(0,s.Y)("div",{css:F}):(0,s.Y)("div",{css:D})]}),x.includes(e.id)&&Y({brandPrefsList:e.items,userPrefs:N,widgetTheme:i,doUpdateUserPreferences:n,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,handleUpdateMultiSelect:d,marketname:p,brand:v,brandMarket:k})]},e.id))}):"tabnew"===a?(0,s.Y)("div",{children:(0,s.Y)(f,{children:t.map(e=>(0,s.Y)(f.Tab,{title:e.displayName,children:Y({brandPrefsList:e.items,userPrefs:N,widgetTheme:i,doUpdateUserPreferences:n,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,handleUpdateMultiSelect:d,marketname:p,brand:v,brandMarket:k})},e.id))})}):(0,s.Y)(s.FK,{children:t.map(e=>(0,s.Y)(y.J,{title:e.displayName,children:$({brandPrefsList:e.items,userPrefs:N,widgetTheme:i,doUpdateUserPreferences:n,handleUpdateMultiSelect:d,shouldFallbackToDefaults:r,isCallingOnce:o,handleUpdate:c,marketname:p,brand:v,brandMarket:k})},e.id))})},k=e=>{let t,{brandPreferences:i,userPreferences:c,onSaveUserPreferences:d,shouldIgnoreWebEnabledFlag:p=!1,shouldAutoSaveOnSelect:u=!0,shouldAllowFocusSelected:h=!1,shouldFallbackToDefaults:m
257=!1,groupType:f="tabs",brand:y,brandMarket:b}=e,v=(0,a.u)().widgets.WinePreferences??{},w=c?.value?.preferences??{},[Y,$]=(0,n.useState)(w),[k,N]=(0,n.useState)(!1),[F,D]=(0,n.useState)(!1),[I,T]=(0,n.useState)(!0),[C,L]=(0,n.useState)(!1),S=i.value?.market.toUpperCase(),[z,P]=(0,n.useState)("");(0,n.useEffect)(()=>{P(window.location.href)},[]);let[A,j]=(0,n.useState)([]),E=g(i.value,"en-GB",p);(0,n.useEffect)(()=>{$(w),"us"===b&&"uslaw"===y&&E.length>0&&j(e=>e.length>0?[...e,E[0].id]:[E[0].id])},[c]),(0,n.useEffect)(()=>{let e=setTimeout(()=>{T(!0)},1e3);return()=>clearTimeout(e)},[I]);let _=(0,l.css)`
258      padding: 5px 0;
259      ${v.wrapper}
260
261      .focusSelected .unselected {
262        opacity: 0.2;
263      }
264    `,U=(0,l.css)`
265      ${v.toolbar}
266    `;if(i.loading||c.loading)return(0,s.Y)(o.R,{});if(i.error||c.error){let{status:e,message:t}=function(e,t){function i(e){return e?.status&&e?.data?{status:e.status,message:e.data.message}:{status:500,message:"CORS"}}return e.error?i(e.error.response):t.error?i(t.error.response):{status:0,message:""}}(i,c);return 503===e?(0,s.Y)(r.F,{type:"warning",children:t}):(0,s.Y)(r.F,{type:"error",children:"A problem has occurred"})}let R=async function(e,t,i){let s,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];T(!1),s=n?{...Y[e],[t]:i}:{[t]:i};let l={...Y,[e]:s};z.includes("npr")||z.includes("wsj")||z.includes("omahasteakswine")||z.includes("fox")||z.includes("bon")?u?($(l),N(!0)):d(l,t):u?d(l,t):($(l),N(!0))},O=async function(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];T(!1);let n={...Y[e]},l=0;for(let e in n)2===n[e]&&l++;s?2===n[t]?(delete n[t],l--):l<2&&(n[t]=i):2===i?l<2&&(n[t]=i):n[t]=0;let a={...Y,[e]:n};z.includes("npr")||z.includes("wsj")||z.includes("omahasteakswine")||z.includes("fox")||z.includes("bon")?l<2?(L(!1),u?($(a),N(!0)):d(a,t)):L(!0):l<2?(L(!1),u?d(a,t):($(a),N(!0))):L(!0)},B=async function(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];T(!1);let n={...Y[e]};s&&(2===n[t]?delete n[t]:n[t]=i);let l={...Y,[e]:n};u?d(l,t):($(l),N(!0))};return(!u||h)&&(t=(0,s.FD)("div",{css:U,children:[!u&&(0,s.FD)(s.FK,{children:[(0,s.Y)("button",{className:"btn btn-primary",disabled:!k,onClick:()=>{d(Y,void 0),N(!1)},children:"Save"}),(0,s.Y)("button",{className:"btn",disabled:!k,onClick:()=>{$(w),N(!1)},children:"Undo"})]}),h&&(0,s.FD)("label",{children:[" ",(0,s.Y)("input",{type:"checkbox",checked:F,onClick:()=>D(!F)}),"Hide unselected"]})]})),(0,s.FD)("div",{"data-test":"contentful-wine-preferences",css:_,children:[(0,s.Y)("div",{className:F?"focusSelected":"",children:x({brandPrefGroupList:E,widgetTheme:v,doUpdateUserPreferences:R,groupType:f,shouldFallbackToDefaults:m,isCallingOnce:I,handleUpdate:O,handleUpdateMultiSelect:B,marketname:S,chooseTwo:C,setChooseTwo:L,onSaveUserPreferences:d,currentUserPreferences:Y,brand:y,handleTabClick:e=>{j(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},activeTabs:A,brandMarket:b,userPrefs:Y})}),t]})}},54519:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(75213),n=i(60004),l=i(50964),a=i(84273),r=i(3089),o=i.n(r);let c=(0,n.memo)(e=>{let{url:t,showThumbnail:i,image:n,onPlayPause:l,onReadyFn:r,className:c,testId:d,loop:p,width:u,height:h,controls:m,config:f}=e,y={config:{...f,vimeo:{...f?.vimeo,playerOptions:{...f?.vimeo?.playerOptions,dnt:!0}}},...l&&{onEnded:()=>l()},...r&&{onReady:e=>r(e)},...u&&{width:u},...h&&{height:h},...n&&{light:i&&(0,s.Y)(a.$,{contentItem:n})},...m&&{controls:m},...p&&{loop:p},...c&&{className:c},...d&&{"data-testid":d},...n&&{fallback:(0,s.Y)(a.$,{contentItem:n})}};return(0,s.Y)(o(),{url:t,playing:!0,...y})}),d=(e,t,i,s)=>{if(!e)return"";let n="";for(let t of[/youtube\.com\/(?:watch\?v=|embed\/)([\w-]{11})/,/youtu\.be\/([\w-]{11})/,/youtube-nocookie\.com\/embed\/([\w-]{11})/]){let i=t.exec(e);if(i){[,n]=i;break}}if(!n){let t=/[?&]v=([\w-]{11})/.exec(e);t&&([,n]=t)}if(n){let e=`https://www.youtube-nocookie.com/embed/${n}?rel=0`;return e+=t?"&controls=1":"&controls=0",s&&(e+="&autoplay=1"),i&&(e+=`&loop=1&playlist=${n}`),e}return null},p=(0,n.memo)(e=>{let{url:t,showThumbnail:i,image:l,onPlayPause:r,onReadyFn:o,className:c,testId:p,loop:u,width:h,height:m,controls:f=!0,lazy:y=!0}
266=e,[b,g]=(0,n.useState)(!1),v=(0,n.useRef)(null),w=d(t,f,!!u,b),Y=(0,n.useId)(),$=(0,n.useRef)(i),x={src:b&&w?w:void 0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,style:{width:h||"100%",height:m||"100%",aspectRatio:"16/9",maxWidth:"100%",border:"none",display:b?"block":"none"},title:`Video Player ${p||Y}`,loading:y?"lazy":void 0,sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",className:c,onLoad:()=>{o&&o(v.current)}};return(0,n.useEffect)(()=>{!0===$.current&&$.current!==i&&(g(!0),$.current=!1)},[i]),(0,s.FD)("div",{style:{width:h||"100%",maxWidth:"100%"},className:c,"data-testid":p,children:[i&&l&&!b&&(0,s.Y)("button",{type:"button","aria-label":"Play video",onClick:()=>{g(!0),r&&r()},style:{position:"relative",width:"100%",height:"100%",outline:"none",cursor:"pointer",background:"none",border:"none",padding:0},children:(0,s.Y)(a.$,{contentItem:l})}),b&&(0,s.Y)("iframe",{...x,title:`Video Player ${p||Y}`})]})});var u=i(72076);let h=(0,n.memo)(function(e){let{config:t,showThumbnail:i,image:n,onPlayPause:a,onReadyFn:r,videoLink:o,smallDeviceVideoLink:d,className:h,testId:m,loop:f,width:y,height:b,controls:g,lazy:v}=e,{isNotDesktop:w}=(0,l._)(),Y=w&&d||o;return/youtu(be\.com|\.be|be-nocookie\.com)/.test(Y)&&"uk"===u.z.country?(0,s.Y)(p,{url:Y,showThumbnail:i,image:n,onPlayPause:a,onReadyFn:r,className:h,testId:m,loop:f,width:y,height:b,controls:g,lazy:v}):(0,s.Y)(c,{url:Y,showThumbnail:i,image:n,onPlayPause:a,onReadyFn:r,className:h,testId:m,loop:f,width:y,height:b,controls:g,config:t})})},66938:(e,t,i)=>{i.d(t,{D:()=>o});var s=i(75213);i(60004);var n=i(58229),l=i(72076),a=i(89034);let r=e=>(0,n.css)`
267  background-color: #dcd4ea;
268  display: flex;
269  align-items: center;
270  justify-content: center;
271  min-height: 62px;
272  margin-bottom: 1rem;
273  font-family: ${e.fonts?.familyPrimary};
274  padding: 17px 19px;
275
276  .vws-not-enough-points-banner-message,
277  .vws-not-enough-points-banner-cta {
278    font-size: 14px;
279    line-height: 20px;
280  }
281  .vws-not-enough-points-banner-message {
282    color: #6a288a;
283    font-weight: 700;
284    letter-spacing: 0.15px;
285    margin-right: 30px;
286    margin-bottom: 0 !important;
287  }
288
289  .vws-not-enough-points-banner-cta {
290    background-color: #d6083b;
291    color: #ffffff;
292    text-decoration: none;
293    border-radius: 4px;
294    padding: 10px 10px;
295    font-weight: 500;
296    white-space: nowrap;
297    letter-spacing: 0.5px;
298    &:hover,
299    &:focus,
300    &:active {
301      color: #fff;
302      background: #a5062d;
303      box-shadow: none;
304      text-decoration: none;
305    }
306  }
307
308  ${e.breakpoints.sm} {
309    padding: 0;
310    .vws-not-enough-points-banner-message {
311      font-size: 20px;
312      line-height: 28px;
313    }
314    .vws-not-enough-points-banner-cta {
315      font-size: 14px;
316      line-height: 20px;
317      padding: 12px 20px;
318    }
319  }
320`,o=()=>{if("vws"!==l.z.brandId)return null;let e=l.z?.releaseFlags?.VWS_NOT_ENOUGH_POINTS_BANNER||!1,t=a.env.NEXT_PUBLIC_VIRGIN_WINES_URL;return e&&t?(0,s.FD)("div",{css:r,"data-testid":"vws-not-enough-points-banner",children:[(0,s.Y)("p",{className:"vws-not-enough-points-banner-message",children:"Not enough points? Head back to our Virgin Wines store"}),(0,s.Y)("a",{className:"vws-not-enough-points-banner-cta",href:t,target:"_blank",rel:"noopener noreferrer",children:"Virgin Wines"})]}):null}},71392:(e,t,i)=>{i.d(t,{S:()=>y,d:()=>m});var s=i(75213),n=i(17698),l=i.n(n),a=i(63191),r=i.n(a),o=i(7292),c=i(44098),d=i(58229),p=i(86993),u=i(22820),h=i(72076);let m=e=>{let{product:t}=e,i=t?.countryName||"wine",n=p.jc[i]?p.jc[i]:i.toLowerCase().split(" ").join("-");return(0,s.FD)("ul",{className:"wineStyle-country-au",children:[t.styleName&&(0,s.FD)("li",{className:"wineStyle",children:[(0,s.Y)(o.I,{kind:"wine-glass",size:"m"}),(0,s.Y)("span",{className:"wine-glass",children:t.styleName})]}),t.countryName&&(0,s.Y)("li",{className:"countryNameFlag",children:(0,s.FD)(l(),{prefetch:!1,href:"wine"===n?"/wine":`/wine/${n}-wine`,children:[(0,s.Y)("span",{className:"countryFlag",children:(0,s.Y)(r(),{src:(0,u.ey)(t?.countryName),alt:t?.countryName,width:24,height:24})}),(0,s.Y)("span",{className:"countryName",children:t.countryName})]})})]})},f=new Set(["wsj","law","osw","npr","tcm"]),y=e=>{let{product:t}=e,i=(0,c.u)(),n=(0,d.css)`
321    ${i.widgets.Product?.wineDetails}
322  `,a="us"===h.z.country&&f.has(h.z.brandId),m=t?.countryName||"wine",y=t?.grapeName||"wine",b=p.jc[m]?p.jc[m]:m.toLowerCase().split(" ").join("-"),g=p.jc[y]?p.jc[y]:y.toLowerCase().split(" ").join("-");return(0,s.Y)("div",{css:n,children:(0,s.FD)("ul",{children:[t.styleName&&"au"!==h.z.country&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"wine-glass",size:"m"})," ",t.styleName]}),t.fineWineFlag&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"diamond",size:"m"})," Fine wine"]}),t.countryName&&"au"!==h.z.country&&(0,s.Y)("li",{children:(0,s.FD)(l(),{prefetch:!1,href:"wine"===b?"/wine":`/wine/${b}-wine`,children:[(0,s.Y)(r(),{src:(0,u.ey)(t?.countryName),alt:t?.countryName,width:16,height:16}),(0,s.Y)("span",{children:t.countryName})]})}),a&&t.appellationName&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"location-dotted",size:"m"})," ",t.appellationName]}),t.shortTastingNotesColor&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"droplet",size:"m"}),t.shortTastingNotesColor.trim().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")]}),t.grapeName&&(0,s.Y)("li",{children:(0,s.FD)(l(),{prefetch:!1,href:"wine"===g?"/wine":`/wine/${g}-wine`,children:[(0,s.Y)(o.I,{kind:"grape",size:"m"})," ",(0,s.Y)("span",{children:t.grapeName})]})}),("uk"===h.z.country||"au"===h.z.country)&&t.alcoholUnits>0&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"units",size:"m"})," ",t.alcoholUnits," Units"]}),t.vegan&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"vegan",size:"m"})," Vegan"]}),t.alcoholPercent>0&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"alcohol",size:"m"})," ",t.alcoholPercent,"% ABV"]}),t.kosher&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"kosher",size:"m"})," Kosher"]}),t.skus?.[0]?.bottleVolume>0&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"bottle-glass",size:"m"})," ",t.skus?.[0]?.bottleVolume," ml"]}),t.vegetarian&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"vegetarian",size:"m"})," Vegetarian"]}),!a&&t.drinkByDate&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"calendar",size:"m"})," ",t.drinkByDate]}),t.biodynamic&&(0,s.FD)("li",{children:[(0,s.Y)(o.I,{kind:"biodynamic",size:"m"})," Biodynamic"]})]})})}},95192:(e,t,i)=>{i.d(t,{Y:()=>l});var s=i(75213),n=i(60004);let l=e=>{let{rating:t}=e,i=(0,n.useId)();if(!t||t<=0)return null;let l=Math.floor(t),a=t%1>=.5,r=(e,t)=>`yotpo_stars_gradient_${i}_${t}_${e}`,o=e=>{let t=r(e,"full");return(0,s.FD)("svg",{"aria-hidden":"true",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:{display:"flex",flexDirection:"row",marginInlineEnd:"3.5px"},children:[(0,s.Y)("defs",{children:(0,s.FD)("linearGradient",{id:t,children:[(0,s.Y)("stop",{offset:"100%",stopColor:"#000000"}),(0,s.Y)("stop",{stopOpacity:"1",offset:"100%",stopColor:"#FFFFFF"})]})}),(0,s.Y)("path",{style:{pointerEvents:"none"}
322,d:"M9 14.118L14.562 17.475L13.086 11.148L18 6.891L11.529 6.342L9 0.375L6.471 6.342L0 6.891L4.914 11.148L3.438 17.475L9 14.118Z",stroke:"#000000",fill:`url(#${t})`})]})},c=e=>{let t=r(e,"empty");return(0,s.FD)("svg",{"aria-hidden":"true",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:{display:"flex",flexDirection:"row",marginInlineEnd:"8px"},children:[(0,s.Y)("defs",{children:(0,s.FD)("linearGradient",{id:t,children:[(0,s.Y)("stop",{offset:"0%",stopColor:"#000000"}),(0,s.Y)("stop",{stopOpacity:"1",offset:"0%",stopColor:"#FFFFFF"})]})}),(0,s.Y)("path",{style:{pointerEvents:"none"},d:"M9 14.118L14.562 17.475L13.086 11.148L18 6.891L11.529 6.342L9 0.375L6.471 6.342L0 6.891L4.914 11.148L3.438 17.475L9 14.118Z",stroke:"#000000",fill:`url(#${t})`})]})};return(0,s.FD)("span",{className:"star-icons",style:{display:"flex",flexDirection:"row",alignItems:"center",height:"28px",cursor:"pointer"},children:[Array.from({length:l},(e,t)=>(0,s.Y)("span",{children:o(t)},`filled-${t}`)),a&&(0,s.Y)("span",{children:(()=>{let e=r(0,"full");return(0,s.FD)("svg",{"aria-hidden":"true",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",style:{display:"flex",flexDirection:"row",marginInlineEnd:"3.5px"},children:[(0,s.Y)("defs",{children:(0,s.FD)("linearGradient",{id:e,children:[(0,s.Y)("stop",{offset:"50%",stopColor:"#000000"}),(0,s.Y)("stop",{stopOpacity:"1",offset:"50%",stopColor:"#FFFFFF"})]})}),(0,s.Y)("path",{style:{pointerEvents:"none"},d:"M9 14.118L14.562 17.475L13.086 11.148L18 6.891L11.529 6.342L9 0.375L6.471 6.342L0 6.891L4.914 11.148L3.438 17.475L9 14.118Z",stroke:"#000000",fill:`url(#${e})`})]})})()},"half"),Array.from({length:5-l-!!a},(e,t)=>(0,s.Y)("span",{children:c(t)},`empty-${t}`))]})}}}]);

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.