{"version":3,"file":"component---src-pages-events-prismic-event-uid-js-492b1d8b2cecfb47ac35.js","mappings":"sNAmCA,UA5BA,SAAeA,GAEb,IAAQC,EAAiBD,EAAME,KAAvBD,aACFE,EAAQF,EAAaC,KACrBE,EAAiBD,EAAME,KAAKC,MAAK,SAAAC,GAAI,MAAwB,eAApBA,EAAKC,cAC9CC,EAAM,CACVC,MAAOT,EAAaC,KAAKS,WAAaV,EAAaC,KAAKQ,MAAME,KAC9DC,YAAaZ,EAAaC,KAAKY,iBAAmBV,EAAeW,QAAQF,YAAYD,KAAKI,UAAU,EAAG,KAAO,MAC9GC,SAAUhB,EAAaC,KAAKgB,cAKvBR,EAAwCP,EAAxCO,MAAOS,EAAiChB,EAAjCgB,WAAYC,EAAqBjB,EAArBiB,YAAaf,EAAQF,EAARE,KACjCgB,EAAO,CAACX,MAAAA,EAAOS,WAAAA,EAAYC,YAAAA,EAAaE,SAASnB,EAAMoB,iBAIvDC,EAAUxB,EAAME,KAAKuB,gBAAkB,GACvCC,EAAS1B,EAAME,KAAKyB,eAAiB,GAE3C,OACE,gBAAC,IAAD,CAAQH,QAASA,EAAQtB,KAAMwB,OAAQA,EAAQjB,IAAKA,GAClD,gBAAC,KAAD,CAAWmB,OAAQvB,EAAMwB,WAAYA,EAAAA,EAAYC,QAAST","sources":["webpack://gatsby-multi-language-website/./src/pages/events/{prismicEvent.uid}.js"],"sourcesContent":["import React from \"react\"\nimport { graphql } from \"gatsby\"\nimport { Link } from \"gatsby\"\nimport { SliceZone } from '@prismicio/react'\nimport { Layout } from '../../components/Layout'\nimport { components } from '../../slices'\n\nfunction Event(props) {\n console.log('Product props: ', props)\n const { prismicEvent } = props.data\n const event = prismicEvent.data\n const eventInfoSlice = event.body.find(item => item.slice_type === 'event_info');\n const seo = {\n title: prismicEvent.data.seo_title || prismicEvent.data.title.text,\n description: prismicEvent.data.seo_description || eventInfoSlice.primary.description.text.substring(0, 297) + \"...\",\n keywords: prismicEvent.data.seo_keywords,\n }\n console.log('seo: ', seo)\n\n\n const {title, start_time, finish_time, body} = event\n const cntx = {title, start_time, finish_time, restLink:event.restaraunt_link}\n console.log('cntx: ', cntx)\n console.log('Link to rest: ', event.restaraunt_link)\n\n const topMenu = props.data.prismicTopMenu || {}\n const footer = props.data.prismicFooter || {}\n\n return (\n \n \n \n )\n}\n\nexport default Event\n\nexport const query = graphql`\n query($id: String!) {\n prismicEvent(id: { eq: $id }) {\n data {\n seo_title\n seo_description\n seo_keywords\n title {\n text\n }\n start_time\n finish_time\n body {\n ... on PrismicEventDataBodyJsonForm {\n primary {\n json_config\n }\n }\n ... on PrismicSliceType {\n slice_type\n }\n ... EventDataBodyEventInfo\n }\n restaraunt_link {\n id\n uid\n link_type\n type\n url\n document {\n ... on PrismicRestaurantDetail {\n id\n data {\n body {\n ... on PrismicRestaurantDetailDataBodyRestaurantDetail {\n id\n slice_type\n primary {\n address\n rest_name\n logo {\n url\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n prismicTopMenu {\n ...TopMenuFragment\n }\n prismicFooter {\n ...FooterFragment\n }\n }\n`"],"names":["props","prismicEvent","data","event","eventInfoSlice","body","find","item","slice_type","seo","title","seo_title","text","description","seo_description","primary","substring","keywords","seo_keywords","start_time","finish_time","cntx","restLink","restaraunt_link","topMenu","prismicTopMenu","footer","prismicFooter","slices","components","context"],"sourceRoot":""}