"use strict";(self.webpackChunkLaTagliata=self.webpackChunkLaTagliata||[]).push([[705],{9876:function(e,t,a){var n=a(7294),r=a(8769),l=a(1419),s=a(3166);t.Z=e=>{let{children:t,pageData:a,SEOTitle:i,SEODescription:o,footerDisclaimer:c,darkThemeNav:m}=e;const{0:u,1:p}=(0,n.useState)(!1);(0,n.useEffect)((()=>{const e=sessionStorage.getItem("popup"),t=sessionStorage.getItem("secondaryPopup"),a=(new Date).getTime(),n=new Date("2024-02-29").getTime(),r=setTimeout((()=>{(!e||a-e>864e5)&&(!t||a-t>864e5)&&aclearTimeout(r)}),[]);return n.createElement(n.Fragment,null,n.createElement(r.Z,{title:i,description:o}),n.createElement(s.Z,null),u&&n.createElement("div",{className:"popup-container","uk-scrollspy":"cls: uk-animation-scale-up; target: .popup;"},n.createElement("div",{className:"popup"},n.createElement("div",{className:"popup-content"},n.createElement("p",null,"🍷 ",n.createElement("b",null,"29 February save the date! 🍷",n.createElement("br",null),"Cantine β€œBolgheri” wine testing experience")),n.createElement("p",null," Bolgheri's wines are generally a base blend of Cabernet (Sauvignon or Franc) and Merlot, often with additions of Syrah, Petit Verdot and, on rare occasions, Sangiovese. Over recent years, the number of wineries that produce monovarietal wines using one of the three main grape varieties has continued to increase and we would like to give the opportunity to our customer to discover those treasure that Italy territory provide. Discover ",n.createElement("a",{href:"/wine-tasting"},n.createElement("b",null,n.createElement("i",null,"our menu"))),"."),n.createElement("p",{className:"no-margin"},"πŸ’Œ To make the evening even more memorable, we recommend securing your table in advance."),n.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"center"},className:"widget"},n.createElement("iframe",{src:"https://www.opentable.co.uk/widget/reservation/canvas?rid=317766&type=button&theme=standard&overlay=false&domain=couk&lang=en&r3uid=MiUIESaB3&newtab=false&disablega=true&color=1",width:"210",height:"113",frameborder:"0",scrolling:"no",name:"opentable-make-reservation-widget",title:"Online Bookings | OpenTable, La Tagliata - New"})),n.createElement("p",{className:"no-margin",style:{paddingBottom:"20px"}}," An unforgettable sensory experience awaits. We look forward to hosting you!",n.createElement("br",null)),n.createElement("button",{onClick:()=>{p(!1),sessionStorage.setItem("secondaryPopup",(new Date).getTime())}},"Close")))),n.createElement("main",null,t),n.createElement(l.Z,null))}},2105:function(e,t,a){a.r(t),a.d(t,{default:function(){return o}});var n=a(5444),r=a(7294),l=a(9876),s=a(3529);var i=e=>{let{contents:t}=e;return r.createElement("div",{style:{minHeight:"500px"}},r.createElement("div",{className:"list-container uk-animation-fade"},null==t?void 0:t.map(((e,t)=>r.createElement("div",{className:"padding-top-bottom"},"EMPTY"==e.GroupTitle?r.createElement("b",{style:{display:"block",width:"1px",marginBottom:"20px"}}):null!==e.GroupTitle?r.createElement("h2",{className:"group-title"},e.GroupTitle):"",e.Products?r.createElement("div",null,r.createElement("div",{className:"list-content"},r.createElement("p",{className:"product-title"},e.Products.Title),r.createElement("p",{className:"product-price"},e.Products.Price)),r.createElement("div",{style:{display:"flex",flexWrap:"wrap"}},r.createElement(s.Z,{className:"product-description"},e.Products.Description),e.Products.Vegan?r.createElement("b",null,"β€…(VG)"):"",e.Products.Vegetarian?r.createElement("b",null,"β€…(V)"):"",e.Products.Nuts?r.createElement("b",null,"β€…(N)"):"",e.Products.Spicy?r.createElement("b",null,"β€…(S)"):"")):"")))))};var o=e=>{let{data:t}=e;const{Title:a,Slug:s,submenu_types:o}=t.strapiMenuTypes;o.sort((function(e,t){let a=t.created_at,n=e.created_at;return new Date(n)-new Date(a)}));const c=[];let m="";return"undefined"!=typeof window&&window.location.search.split("=").length>1&&(m=window.location.search.split("=")[1]),r.createElement(l.Z,{SEOTitle:"",SEODescription:""},r.createElement("div",{className:"categories-font"},r.createElement("div",{className:"page-content"},r.createElement("div",null,r.createElement("h1",{className:"page-title"},a),r.createElement("p",{className:"complementary-subtitle"},"...or see our",r.createElement("a",{href:"Drinks"==a?t.strapiSiteSettings.FoodURL:t.strapiSiteSettings.DrinksURL},"Drinks"==a?" β€Ž food β€Ž ":" β€Ž drinks β€Ž "),"menu 😊")),r.createElement("div",{className:"menu-list"},r.createElement("ul",{className:"categories-list"},o?o.map(((e,t)=>r.createElement("li",{key:t,className:"category"},r.createElement(n.Link,{to:"/menu/"+s+"/?type="+e.Slug,className:e.Slug==m?"category-link-selected":"category-link"},e.Title)))):""),r.createElement("p",{className:"complementary-subtitle"},"...or our set menu for groups of 8 or more people"),r.createElement("ul",{className:"categories-list"},r.createElement("li",{className:"category"}," ",r.createElement("a",{href:"/assets/classic-menu.pdf?t="+(new Date).getTime(),target:"_blank",rel:"noopener noreferrer",className:"category-link"},"Classic set menu")),r.createElement("li",{className:"category"}," ",r.createElement("a",{href:"/assets/gourmet-menu.pdf?t="+(new Date).getTime(),target:"_blank",rel:"noopener noreferrer",className:"category-link"},"Gourmet set menu")),r.createElement("li",{className:"category"}," ",r.createElement("a",{href:"/assets/indulgence-menu.pdf?t="+(new Date).getTime(),target:"_blank",rel:"noopener noreferrer",className:"category-link"},"Indulgence set menu")))),r.createElement("div",null,null==o?void 0:o.map(((e,a)=>{var n;return null===(n=t.allStrapiSubmenuTypes.edges)||void 0===n?void 0:n.map(((t,a)=>{var n;if(t.node.Slug==e.Slug&&t.node.Slug==m)return r.createElement(r.Fragment,null,null===(n=t.node.ProductList)||void 0===n?void 0:n.map(((e,t)=>{c.push({GroupTitle:e.GroupTitle?e.GroupTitle:null,Products:e.product?e.product:null})})))}))}))),c?r.createElement("div",{className:"products-listing"},r.createElement(i,{contents:c}),t.strapiSiteSettings.DisclaimerAllergies&&("Food"==a||"Dessert"==a)?r.createElement("div",{className:"disclaimer"},r.createElement("p",null,t.strapiSiteSettings.DisclaimerAllergies)):""):"")))}}}]); //# sourceMappingURL=component---src-templates-categories-js-7b0fffc14e666fcdc0db.js.map