1(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{387:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(25),l=(n(20),n(60),n(24),n(94));function r(t){var title=t.title,e=t.description,image=t.image,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.$config,c=image?Object(l.b)(r,l.a.SMALL,image.hash,image.ext):null;return{title:title,meta:[{hid:"og:title",name:"og:title",content:title},{hid:"twitter:title",name:"twitter:title",content:title},{hid:"description",name:"description",content:e},{hid:"og:description",name:"og:description",content:e},{hid:"twitter:description",name:"twitter:description",content:e}].concat(Object(o.a)(c?[{hid:"og:image",name:"og:image",content:c},{hid:"twitter:image",name:"twitter:image",content:c}]:[]))}}},389:function(t,e,n){"use strict";var o=n(0),component=Object(o.a)({},(function(t,e){return(0,e._c)("path",{attrs:{d:"M15 19L8 12L15 5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})}),[],!0,null,null,null);e.a=component.exports},390:function(t,e,n){"use strict";var o={props:{title:{type:String,default:null},subtitle:{type:String,default:null}}},l=n(0),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex"},[n("div",{staticClass:"pt-10 md:pt-12 flex-grow"},[t.title?n("h1",{staticClass:"text-center px-4 text-25 sm:text-35 uppercase text-gray-dark tracking-500 sm:tracking-700 font-light"},[t._v("\n "+t._s(t.title)+"\n ")]):t._e(),t._v(" "),t.subtitle?n("div",{staticClass:"text-center px-4 text-15 sm:text-16 text-gray-dark tracking-150 sm:tracking-320 font-light"},[t._v("\n "+t._s(t.subtitle)+"\n ")]):t._e()])])}),[],!1,null,null,null);e.a=component.exports},396:function(t,e,n){"use strict";var o={components:{AppCollapseTransition:n(84).a},props:{value:{type:Boolean,default:null,mandatory:!1},disabled:{type:Boolean,default:!1,mandatory:!1},isButton:{type:Boolean,default:!0,mandatory:!1}},data:function(){return{internalValue:!1}},computed:{isOpen:function(){return null!==this.value?this.value:this.internalValue}},watch:{disabled:function(t,e){t&&!e&&this.isOpen&&this.close()}},methods:{onClick:function(){this.isButton&&this.toggle()},toggle:function(){this.isOpen?this.close():this.open()},open:function(){this.setValue(!0)},close:function(){this.setValue(!1)},setValue:function(t){null===this.value?this.internalValue=t:this.$emit("input",t)}}},l=n(0),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"w-full"},[n(t.isButton?"button":"div",{tag:"Component",staticClass:"w-full group",class:{"pointer-events-none opacity-60":t.disabled},attrs:{"button-expanded":t.isButton&&t.isOpen},on:{click:t.onClick}},[t._t("header",null,null,{isOpen:t.isOpen})],2),t._v(" "),n("AppCollapseTransition",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],attrs:{"aria-hidden":!t.isOpen}},[t._t("content",null,null,{isOpen:t.isOpen})],2)])],1)}),[],!1,null,null,null);e.a=component.exports},404:function(t,e,n){"use strict";var o,l=n(68),r=(n(38),n(36)),c=n.n(r),d={components:{AppButton:n(69).a},props:{type:{type:String,validate:function(t){return["food","drinks","wines"].includes(t)},default:void 0}},apollo:{productCatalog:{query:c()(o||(o=Object(l.a)(["\n query productCatalog {\n productCatalog {\n id\n food_catalog {\n id\n url\n }\n drinks_catalog {\n id\n url\n }\n wines_catalog {\n id\n url\n }\n }\n }\n "])))}},computed:{url:function(){switch(this.type){case"food":return this.productCatalog.food_catalog?this.productCatalog.food_catalog.url:void 0;case"drinks":return this.productCatalog.drinks_catalog?this.productCatalog.drinks_catalog.url:void 0;case"wines":return this.productCatalog.wines_catalog?this.productCatalog.wines_catalog.url:void 0;default:return}}}},h=n(0),component=Object(h.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.url?n("AppButton",{attrs:{size:"small",variant:"secondary",href:t.url,target:"_blank",rel:"noreferrer"}},[t._v(t._s(t.$t("components.catalogButton")))]):t._e()}),[],!1,null,null,null);e.a=component.exports},465:function(t,e,n){"use strict";n.r(e);var o,l,r=n(68),c=n(390),d=(n(81),n(442)),h=n(396),f=n(21),v=n(69),x=n(389),w={components:{AppIcon:f.a,AppButton:v.a,IconChevronLeft:x.a,AppCollapsible:h.a},props:{region:{type:Object,mandatory:!0,default:void 0},selectedRegion:{type:String,mandatory:!1,default:void 0},routeBuilder:{type:Function,mandatory:!1,default:void 0}},computed:{route:function(){if(this.routeBuilder)return this.routeBuilder(this.region)}}},m=n(0),y={components:{WinesRegionsListRegion:Object(m.a)(w,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("AppCollapsible",{attrs:{value:t.selectedRegion===t.region.id},on:{input:function(e){return t.$emit("select",t.region.id)}},scopedSlots:t._u([{key:"header",fn:function(e){var o=e.isOpen;return[n("div",{staticClass:"flex text-left items-center h-14 xl:h-12 cursor-pointer px-4 text-gray-dark hover:text-black group-focus:text-black transition-color space-x-2 border-b border-gray",class:o?"text-black":"text-gray-dark"},[n("h2",{staticClass:"flex-grow text-14 xl:text-12 tracking-125 transition-color duration-300"},[t._v("\n "+t._s(t.region.title)+"\n ")]),t._v(" "),n("div",{staticClass:"transform rotate-180"},[n("AppIcon",{staticClass:"w-4 h-4 xl:w-3 xl:h-3 transition-all duration-300 transform",class:o?"rotate-90":"rotate-0"},[n("IconChevronLeft")],1)],1)])]}},{key:"content",fn:function(){return[n("div",{staticClass:"p-4"},[n("div",{staticClass:"mb-4 text-12"},[t._v("\n "+t._s(t.region.description)+"\n ")]),t._v(" "),n("div",[n("AppButton",{attrs:{to:t.route,variant:"secondary",size:"small",arrow:""}}
1,[t._v(t._s(t.$t("sections.wines.seeRegionWines")))])],1)])]},proxy:!0}])})}),[],!1,null,null,null).exports},props:{value:{type:String,mandatory:!1,default:void 0},regions:{type:Array,mandatory:!0,default:void 0},routeBuilder:{type:Function,mandatory:!1,default:void 0}}},_=Object(m.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.regions?n("ul",t._l(t.regions,(function(e,o){return n("li",{key:o},[n("WinesRegionsListRegion",{attrs:{region:e,"selected-region":t.value,"route-builder":t.routeBuilder},on:{select:function(e){return t.$emit("input",e)}}})],1)})),0):t._e()}),[],!1,null,null,null).exports,C=n(83),k={components:{AppButton:v.a,AppMenu:C.a,WinesRegionsMap:d.a,WinesRegionsList:_},props:{regions:{type:Array,mandatory:!0,default:void 0}},data:function(){return{hoveredRegionId:null,selectedRegionId:null,showList:!1}},computed:{hoveredRegion:function(){return this.getRegionById(this.hoveredRegionId)},selectedRegion:function(){return this.getRegionById(this.hoveredRegionId)}},watch:{showList:function(){this.selectedRegionId=null}},methods:{getRegionById:function(t){return this.regions.find((function(e){return e.id===t}))},toggleShowList:function(){this.showList=!this.showList},getRegionPath:function(t){return this.localePath({name:"wines-region",params:{winesRegion:t.slug}})}}},R=Object(m.a)(k,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.regions?n("div",{staticClass:"w-full h-full flex flex-col"},[n("ClientOnly",[t.$screen.xl?t._e():n("AppMenu",{attrs:{title:t.$t("sections.wines.regions")},model:{value:t.showList,callback:function(e){t.showList=e},expression:"showList"}},[t.showList?n("WinesRegionsList",{staticClass:"border-t border-gray",attrs:{regions:t.regions,"route-builder":t.getRegionPath},model:{value:t.selectedRegionId,callback:function(e){t.selectedRegionId=e},expression:"selectedRegionId"}}):t._e()],1)],1),t._v(" "),n("div",{staticClass:"flex-grow relative"},[n("div",{staticClass:"xl:hidden absolute w-full h-full top-0 left-0 cursor-pointer z-20",on:{click:t.toggleShowList}}),t._v(" "),null!=t.hoveredRegion?n("div",{staticClass:"text-right absolute right-0 top-0 p-4 w-full flex flex-col items-end"},[n("div",{staticClass:"text-25 uppercase tracking-150 text-gray-dark"},[t._v("\n "+t._s(t.hoveredRegion.title)+"\n ")]),t._v(" "),n("div",{staticClass:"text-gray-dark text-14 w-1/3"},[t._v("\n "+t._s(t.hoveredRegion.description)+"\n ")])]):t._e(),t._v(" "),n("div",{staticClass:"absolute top-0 z-0 justify-end items-center flex w-full h-full p-4 xl:p-8"},[n("WinesRegionsMap",{staticClass:"transition-all duration-500 ease-in-out w-full h-full",class:t.showList?"xl:w-1/2 xl:h-1/2":"",attrs:{regions:t.regions,"route-builder":t.getRegionPath},on:{hover:function(e){t.hoveredRegionId=e}},model:{value:t.selectedRegionId,callback:function(e){t.selectedRegionId=e},expression:"selectedRegionId"}})],1),t._v(" "),n("Transition",{attrs:{"enter-active-class":"transition-opacity delay-200 duration-300","leave-active-class":"transition-opacity duration-300","enter-class":"opacity-0","leave-to-class":"opacity-0"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showList,expression:"showList"}],staticClass:"hidden xl:block absolute w-full h-full left-0 top-0 py-4 px-0 z-10"},[n("div",{staticClass:"w-1/2 h-full overflow-y-auto scrollbar scrollbar-thin scrollbar-track-gray-light scrollbar-thumb-gray pl-8 pr-4 flex flex-col"},[n("WinesRegionsList",{staticClass:"border-t border-gray",attrs:{regions:t.regions,"route-builder":t.getRegionPath},model:{value:t.selectedRegionId,callback:function(e){t.selectedRegionId=e},expression:"selectedRegionId"}})],1)])])],1),t._v(" "),n("div",{staticClass:"hidden xl:block p-8 text-center overflow-hidden flex-shrink-0"},[n("AppButton",{attrs:{variant:"secondary","button-expanded":t.showList},on:{click:t.toggleShowList}},[t._v(t._s(t.showList?t.$t("sections.wines.showMap"):t.$t("sections.wines.showList")))])],1)],1):t._e()}),[],!1,null,null,null).exports,O={components:{AppImage:n(37).a},props:{type:{type:Object,mandatory:!0,default:void 0}},computed:{typeRoute:function(){return this.localePath({name:"wines-type",params:{winesType:this.t
1ype.wines_type.slug}})}}},L={components:{TypeSelectorType:Object(m.a)(O,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("NuxtLink",{staticClass:"flex flex-col items-center group min-w-32",attrs:{to:t.typeRoute}},[n("div",{staticClass:"w-full aspect-w-1 aspect-h-2"},[n("div",{staticClass:"w-full h-full"},[n("AppImage",{attrs:{"strapi-image":t.type.image,alt:t.type.title,"strapi-size":"small","image-class":"ease-in-out transition transition-opacity group-hover:opacity-0 opacity-100 object-contain absolute top-0 left-0 w-full h-full"}}),t._v(" "),n("AppImage",{attrs:{"strapi-image":t.type.imageHover,alt:t.type.title,"strapi-size":"small","image-class":"ease-in-out transition transition-opacity group-hover:opacity-100 opacity-0 object-contain absolute top-0 left-0 w-full h-full"}})],1)]),t._v(" "),n("div",{staticClass:"text-center uppercase text-15 tracking-150 pt-4 pb-8 xl:pb-32 text-gray-dark group-hover:text-black transition-colors"},[t._v("\n "+t._s(t.type.title)+"\n ")])])}),[],!1,null,null,null).exports},props:{types:{type:Array,mandatory:!0,default:void 0}}},j=Object(m.a)(L,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"h-full flex items-center max-w-512 mx-auto"},t._l(t.types,(function(t){return n("li",{key:t.id,staticClass:"xl:w-1/3 px-4 text-center first:ml-auto last:mr-auto"},[n("TypeSelectorType",{staticClass:"mx-auto",attrs:{type:t}})],1)})),0)}),[],!1,null,null,null).exports,$=n(36),B=n.n($),I=n(61),A=n(387),S=(n(38),n(47),n(143),{LEFT:"left",RIGHT:"right"}),X={props:{side:{type:String,default:S.LEFT,validator:function(t){return Object.values(S).includes(t)}},xlSide:{type:String,default:S.LEFT,validator:function(t){return Object.values(S).includes(t)}}}},T=Object(m.a)(X,(function(t,e){var n=e._c;return n("div",{staticClass:"h-full border-gray-dark relative w-16 xl:w-24 flex-shrink-0",class:["right"===e.props.side?"border-l":"border-r","right"===e.props.xlSide?"xl:border-r-0 xl:border-l":"xl:border-l-0 xl:border-r"]},[n("div",{staticClass:"absolute w-0 h-0 top-1/2 left-1/2 flex items-center justify-center"},[n("h2",{staticClass:"uppercase transform text-gray-dark text-30 tracking-500",class:["right"===e.props.side?"rotate-90":"-rotate-90","right"===e.props.xlSide?"xl:rotate-90":"xl:-rotate-90"]},[e._t("default")],2)])])}),[],!0,null,null,null).exports,P=n(404),E={key:"wines",components:{TheSectionTitle:c.a,RegionsSelector:R,TypeSelector:j,WinesEdgeBar:T,CatalogButton:P.a},head:function(){if(this.winesPage)return Object(A.a)(this.winesPage.meta)},apollo:{winesRegions:{query:function(){return Object(I.a)(B()(o||(o=Object(r.a)(["\n query winesRegions($sortAttribute: String) {\n winesRegions(sort: $sortAttribute) {\n id\n title_XX\n description_XX\n slug_XX\n mapId\n }\n }\n "]))),this.$i18n.locale)},variables:function(){return{sortAttribute:"title_".concat(this.$i18n.locale,":asc")}},prefetch:!0,update:function(data){return Object(I.b)(data.winesRegions)}},winesPage:{query:function(){return Object(I.a)(B()(l||(l=Object(r.a)(["\n query {\n winesPage {\n id\n meta {\n title_XX\n description_XX\n }\n text1 {\n text_XX\n }\n text2 {\n text_XX\n }\n types {\n id\n title_XX\n image {\n id\n mime\n ext\n hash\n width\n height\n }\n imageHover {\n id\n mime\n ext\n hash\n width\n height\n }\n wines_type {\n id\n slug_XX\n title_XX\n }\n }\n product_category {\n id\n slug_XX\n title_XX\n }\n }\n }\n "]))),this.$i18n.locale)},prefetch:!0,update:function(data){return Object(I.b)(data.winesPage)}}}},W=Object(m.a)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.winesPage?n("div",[n("TheSectionTitle",{staticClass:"xl:absolute z-10 w-full mb-4",attrs:{title:t.$t("sections.wines.title"),subtitle:t.$t("sections.wines.subtitle")}}),t._v(" "),n("div",{staticClass:"text-center z-10 xl:absolute top-0 right-0 my-4 xl:mr-28"},[n("CatalogButton",{attrs:{type:"wines"}})],1),t._v(" "),n("div",{staticClass:"flex flex-col xl:flex-row w-full xl:h-screen-height-header"},[n("section",{staticClass:"h-96 xl:h-auto w-full xl:w-1/2 border-gray-dark border-t border-b xl:border-t-0 bg-gray-light"},[n("div",{staticClass:"flex flex-row h-full"},[n("WinesEdgeBar",{attrs:{side:"left"}},[t._v(t._s(t.$t("sections.wines.type")))]),t._v(" "),n("div",{staticClass:"flex-grow h-full xl:pt-32 overflow-y-hidden overflow-x-auto xl:overflow-x-hidden xl:bg-wines-background bg-contain bg-center bg-no-repeat"},[n("div",{staticClass:"h-full"},[n("TypeSelector",{attrs:{types:t.winesPage.types}})],1)])],1)]),t._v(" "),n("section",{staticClass:"h-96 xl:h-auto w-full xl:w-1/2 bg-white border-gray-dark border-b"},[n("div",{staticClass:"flex xl:flex-row-reverse h-full"},[n("WinesEdgeBar",{attrs:{side:"left","xl-side":"right"}},[t._v(t._s(t.$t("sections.wines.regions")))]),t._v(" "),n("div",{staticClass:"flex-grow h-full xl:pt-32"},[t.winesRegions?n("RegionsSelector",{attrs:{regions:t.winesRegions}}):t._e()],1)],1)])]),t._v(" "),n("section",{staticClass:"container py-4 md:py-8"},[n("div",{staticClass:"md:flex"},[n("div",{staticClass:"md:w-1/2 p-4 whitespace-pre-line",domProps:{textContent:t._s(t.winesPage.text1.text)}}),t._v(" "),n("div",{staticClass:"md:w-1/2 p-4 whitespace-pre-line",domProps:{textContent:t._s(t.winesPage.text2.text)}}
1)])])],1):t._e()}),[],!1,null,null,null);e.default=W.exports}}]);
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.