1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2876],{7850:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/statics/[...slug]",function(){return s(8892)}])},9879:function(e,t,s){"use strict";s.d(t,{Z:function(){return Header_Header}});var l=s(5893),n=s(7294),a=s(1664),i=s.n(a),r=n.memo(()=>(0,l.jsx)("div",{className:"w-full flex text-center container mx-auto relative pt-2 print:hidden",children:(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("span",{className:"mr-2 text-xs",children:"Prefer the old site?"}),(0,l.jsx)(i(),{href:"https://v1.".concat("vinous.com"),className:"text-center text-red text-xs",children:"Launch â"})]})})),c=s(7295),o=s(2299),d=s(7243),h=s(1405),x=s(1163),AccountMenu_AccountMenu=e=>{let t="font-extralight text-base text-black hover:text-red capitalize",[s,a]=n.useState(!1),r=(0,x.useRouter)(),{state:{user:c},dispatch:u}=(0,h.aC)(),handleSignOutClick=async()=>{(0,h.kS)(u).then(()=>r.push("/"))};return(0,l.jsx)("nav",{className:"flex justify-end align-top z-40","aria-label":"Account Menu",children:c?(0,l.jsxs)("ul",{className:"space-y-2 2xl:space-x-6 bg-white justify-end absolute flex-col lg:flex lg:p-0 lg:flex lg:relative lg:top-0 lg:space-y-0 lg:space-x-4",style:{top:"0.25rem"},children:[(0,l.jsx)(o.Z,{className:"md:hidden print:hidden",onClick:e=>{a(!s)},children:s?(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"20",height:"20",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}):(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"20",height:"20",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})}),(0,l.jsxs)(d.Z,{path:"/",label:"".concat(c.first_name," ").concat(c.last_name),styleName:"md:block font-bold uppercase text-sm text-red z-40 ".concat(s?"flex-col":"hidden"),children:[(0,l.jsx)("div",{className:t,children:(0,l.jsx)(i(),{href:"/users/edit",children:(0,l.jsx)("button",{children:"Edit Account"})})}),(0,l.jsx)("div",{className:t,children:(0,l.jsx)("button",{onClick:()=>handleSignOutClick(),children:"Sign Out"})})]})]}):(0,l.jsxs)("ul",{className:"flex w-full justify-end align-top space-x-4 lg:pb-2",children:[(0,l.jsx)("li",{children:(0,l.jsx)(i(),{href:"/users/sign_in","aria-label":"Sign in",children:(0,l.jsxs)(o.Z,{className:"md:hidden",onClick:()=>{},children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"20",height:"20",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),(0,l.jsx)("span",{className:"sr-only",children:"Sign in"})]})})}),(0,l.jsx)(d.Z,{path:"/users/plan",label:"Subscribe",styleName:"hidden md:block font-bold uppercase text-sm"}),(0,l.jsx)(d.Z,{path:"/users/sign_in",label:"Sign In",styleName:"hidden md:block font-bold uppercase text-sm text-red"})]})})},MainMenu_MainMenu=e=>{let{isOpen:t,setIsOpen:s}=e,n="font-extralight text-2xl lg:text-lg xl:text-xl 2xl:text-2xl",a="font-extralight text-xl lg:text-base hover:text-red";return(0,l.jsxs)("nav",{className:"flex flex-col justify-end items-end",children:[(0,l.jsx)(o.Z,{className:"lg:hidden print:hidden",onClick:e=>{s(!t)},children:t?(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"20",height:"20",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}):(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:"20",height:"20",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})}),(0,l.jsxs)("ul",{className:"space-y-2 2xl:space-x-6 bg-white p-8 pt-0 w-full justify-end absolute top-24 left-0 ".concat(t?"flex-col":"hidden"," lg:flex lg:p-0 lg:flex lg:relative lg:top-0 lg:space-y-0 lg:space-x-4"),children:[(0,l.jsx)(d.Z,{styleName:n,path:"/",label:"Home"}),(0,l.jsx)(d.Z,{styleName:n,path:"/articles",label:"Articles"}),(0,l.jsx)(d.Z,{styleName:n,path:"/multimedia",label:"Videos"}),(0,l.jsx)(d.Z,{styleName:n,path:"/statics/maps",label:"Maps"}),(0,l.jsx)(d.Z,{styleName:n,path:"https://cellar-watch.com/",label:"Cellar Watch"}),(0,l.jsx)(d.Z,{styleName:n,path:"https://delectable.com/",label:"Delectable"}),(0,l.jsx)(d.Z,{styleName:n,path:"/events",label:"Events"}),(0,l.jsxs)(d.Z,{styleName:n,path:"/",label:"Tools",hideChildren:!t,children:[(0,l.jsx)("div",{className:a,children:(0,l.jsx)(i(),{href:"/vintages",children:"Vintage Chart"})}),(0,l.jsx)("div",{className:a,children:(0,l.jsx)(i(),{href:"/glossary",children:"Glossary"})}),(0,l.jsx)("div",{className:a,children:(0,l.jsx)(i(),{href:"/grape_guide",children:"Grape Guide"})})]}),(0,l.jsx)(d.Z,{styleName:n,path:"https://forum.vinous.com/",label:"Your Say",
1newTab:!0})]})]})},Header_Header=e=>{let[t,s]=n.useState(!1);return(0,l.jsxs)("div",{className:"w-full ".concat(t?"h-full":""," fixed left-0 right-0 top-0 z-50 bg-white"),children:[(0,l.jsx)(r,{}),(0,l.jsxs)("div",{className:"flex items-center container mx-auto pt-0 p-4 relative",children:[(0,l.jsx)(c.Z,{}),(0,l.jsxs)("div",{className:"flex-auto flex lg:block items-center justify-end space-x-2 md:space-x-4",children:[(0,l.jsx)(AccountMenu_AccountMenu,{user:e.user}),(0,l.jsx)(MainMenu_MainMenu,{isOpen:t,setIsOpen:s})]})]})]})}},8892:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return StaticsPage}});var l=s(5893),n=s(7294),a=s(7645);let getStaticBySlug=e=>(0,a.U2)("/api/v1/statics",{slug:e});var i=s(9694),r=s(1163),c=s(4580),o=s(9008),d=s.n(o),Statics_Static=()=>{let e=(0,r.useRouter)(),{slug:t}=e.query,[s,a]=(0,n.useState)({});return(0,n.useEffect)(()=>{s&&t&&s.slug!==t[0]&&getStaticBySlug(t[0]).then(e=>{a({...s,...e.data})}).catch(t=>e.push({pathname:"/users/sign_in",query:{from:e.asPath}}))},[t]),(0,l.jsxs)("div",{className:"container",children:[(0,l.jsx)(d(),{children:(null==s?void 0:s.name)&&(0,l.jsx)("title",{children:(0,i.Ui)(s.name)})}),(null==s?void 0:s.id)?(0,l.jsxs)(l.Fragment,{children:[s.show_title&&(0,l.jsx)("h1",{className:"font-medium mb-2 text-3xl",children:s.name}),(0,l.jsx)("div",{className:"article_content font-light",dangerouslySetInnerHTML:(0,i.KU)((null==s?void 0:s.body)||"")})]}):(0,l.jsx)(c.Z,{isLoading:!0})]})},h=s(9629),x=s(9879);function StaticsPage(){return(0,l.jsxs)(h.Z,{children:[(0,l.jsx)(x.Z,{}),(0,l.jsx)(Statics_Static,{})]})}},9694:function(e,t,s){"use strict";s.d(t,{KU:function(){return createMarkup},LD:function(){return removeHTML},Ui:function(){return formatTitle},jS:function(){return getParam},q2:function(){return parseUSA}});let removeHTML=e=>e.replace(/<\/?[^>]+(>|$)/g,""),createMarkup=e=>({__html:e}),getParam=(e,t)=>{let s=e;e.match(/\?/)&&(s=s.split(/\?/)[1]);let l=new Proxy(new URLSearchParams(s),{get:(e,t)=>e.get(t)}),n=l[t];return n?decodeURIComponent(n):""},parseUSA=e=>"usa"===e?e.toUpperCase():e,formatTitle=e=>"".concat(e)}},function(e){e.O(0,[7130,8806,9774,2888,179],function(){return e(e.s=7850)}),_N_E=e.O()}]); 2//# sourceMappingURL=[...slug]-ff879bfdd4441651.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.