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AAoCC,MAAO,CAACW,MAAM,OAAOC,OAAO,OAAOC,OAAO,OAAQC,IAAKnD,EAASD,KAAKqD,aAAapC,IAAKqC,IAAI,sCAC5L,gBAAC,KAAD,CAAWC,OAAQtD,EAASD,KAAKwD,KAAMC,WAAYA,EAAAA,EAAYC,QAAS3B","sources":["webpack://gatsby-multi-language-website/./src/templates/mainpage.js"],"sourcesContent":["import * as React from 'react'\nimport { graphql } from 'gatsby'\nimport { withPrismicPreview } from 'gatsby-plugin-prismic-previews'\nimport { SliceZone } from '@prismicio/react'\n\nimport { Layout } from '../components/Layout'\nimport { components } from '../slices'\n\nconst MainpageTemplate = ({ data }) => {\n // console.log('MainpageTemplate data: ', data)\n if (!data) return null\n\n const homepage = data.prismicMainpage || {}\n const seo = {\n title: homepage.data.seo_title,\n description: homepage.data.seo_description,\n keywords: homepage.data.seo_keywords,\n }\n console.log('seo: ', seo)\n\n const topMenu = data.prismicTopMenu || {}\n const footer = data.prismicFooter || {}\n\n const { lang, type, url } = homepage || {}\n const alternateLanguages = homepage.alternate_languages || []\n const activeDoc = {\n lang,\n type,\n url,\n alternateLanguages,\n }\n\n const allRestDetail = data.allPrismicRestaurantDetail || {}\n // console.log('allRestDetail: ', allRestDetail)\n const { totalCount, pageInfo, nodes } = allRestDetail\n const allEvents = data.allPrismicEvent\n // console.log('allPrismicEvent: ', allEvents)\n const allVideoblogs = data.allPrismicVbItem\n const allBlogs = data.allPrismicBlogItem\n // console.log('allPrismicEvent: ', allVideoblogs)\n const cntx = {rests: nodes, events: allEvents.nodes, videos: allVideoblogs.nodes, blogs:allBlogs.nodes}\n\n console.log(\"fixed_banner_link:\", homepage.data.fixed_banner_link)\n\n return (\n \n
\n
\n
\n
\n

{homepage.data.title.text}

\n

{homepage.data.desc.text}

\n
\n
\n
\n
\n \"Wochenkarte\n \n
\n )\n}\n\nexport const query = graphql`\n query mainpageQuery($lang: String) {\n prismicMainpage(lang: { eq: $lang }) {\n _previewable\n alternate_languages {\n uid\n type\n lang\n }\n lang\n url\n type\n data {\n seo_title\n seo_description\n seo_keywords\n\n title {\n text\n }\n desc {\n text\n }\n cover_image {\n url\n }\n fixed_banner {\n url\n }\n fixed_banner_link {\n url\n }\n body {\n ... on PrismicSliceType {\n id\n slice_type\n slice_label\n }\n ...MainpageMainCategory\n ...MainpageMainWeeklyCard\n ...MainpageMainRestourants\n ...MainpageMainEvents\n ...MainpageMainVideoblog\n ...MainpageMainBlog\n\t\t\t\t\t...MainpageMainAboutUs\n }\n }\n }\n prismicTopMenu(lang: { eq: $lang }) {\n ...TopMenuFragment\n }\n prismicFooter {\n ...FooterFragment\n }\n\n\n allPrismicRestaurantDetail(\n limit: 10\n skip: 0\n ){\n pageInfo {\n currentPage\n itemCount\n pageCount\n totalCount\n }\n totalCount\n nodes {\n _previewable\n id\n uid\n data {\n priority\n body {\n ... on PrismicRestaurantDetailDataBodyRestaurantDetail {\n id\n slice_type\n slice_label\n items {\n image {\n url\n dimensions {\n width\n height\n }\n fluid {\n sizes\n srcSet\n src\n }\n }\n }\n primary {\n rest_name\n phone\n email\n address\n description {\n text\n richText\n }\n logo {\n url\n }\n sunday_time\n monday_time\n tuesday_time\n wednesday_time\n thursday_time\n friday_time\n saturday_time\n #categories\n american\n asian\n bar\n german\n greek\n indian\n international\n italian\n portuguese\n street_food\n sushi\n turkish\n vegan\n }\n }\n }\n }\n }\n }\n # events\n allPrismicEvent(\n sort: {fields: data___start_time, order: DESC}\n skip: 0\n # filter: {\n\t\t# \tdata:{\n # finish_time:{gte: $now}\n # }\n # }\n ) {\n nodes {\n _previewable\n uid\n url\n data {\n title {\n text\n }\n start_time\n finish_time\n body {\n ... on PrismicEventDataBodyEventInfo {\n id\n slice_label\n slice_type\n items {\n ... on PrismicEventDataBodyEventInfoItem {\n image {\n url\n }\n }\n }\n primary {\n ... on PrismicEventDataBodyEventInfoPrimary {\n description {\n text\n }\n }\n }\n }\n }\n }\n }\n pageInfo {\n currentPage\n pageCount\n }\n }\n # videoblog\n allPrismicVbItem(\n sort: { fields: data___date, order: DESC }\n limit: 3\n skip: 0\n ) {\n nodes {\n uid\n url\n data {\n title {\n text\n }\n date\n body {\n ... on PrismicVbItemDataBodyVideoblogInfo {\n id\n slice_type\n primary {\n description {\n richText\n }\n video_url {\n thumbnail_url\n }\n }\n }\n }\n }\n }\n pageInfo {\n currentPage\n pageCount\n }\n }\n #blog\n allPrismicBlogItem(\n sort: { fields: data___date, order: DESC }\n limit: 3\n skip: 0\n ) {\n nodes {\n uid\n url\n data {\n seo_title\n seo_description\n seo_keywords\n no_robots\n type\n title\n date\n body {\n ... on PrismicBlogItemDataBodyBlogInfo {\n id\n slice_type\n primary {\n img {\n url\n }\n text {\n text\n richText\n }\n }\n }\n ... on PrismicBlogItemDataBodyRecipeInfo {\n id\n slice_type\n primary {\n img {\n url\n }\n desc {\n text\n richText\n }\n }\n }\n ... on PrismicBlogItemDataBodyVideoblogInfo {\n id\n slice_type\n primary {\n desc {\n richText\n text\n }\n video_url {\n embed_url\n thumbnail_url\n }\n }\n }\n }\n }\n }\n pageInfo {\n currentPage\n pageCount\n }\n }\n }\n`\n\nexport default withPrismicPreview(MainpageTemplate)\n"],"names":["withPrismicPreview","data","homepage","prismicMainpage","seo","title","seo_title","description","seo_description","keywords","seo_keywords","topMenu","prismicTopMenu","footer","prismicFooter","activeDoc","lang","type","url","alternateLanguages","alternate_languages","allRestDetail","allPrismicRestaurantDetail","nodes","totalCount","pageInfo","allEvents","allPrismicEvent","allVideoblogs","allPrismicVbItem","allBlogs","allPrismicBlogItem","cntx","rests","events","videos","blogs","activeDocMeta","className","style","backgroundImage","cover_image","backgroundPosition","backgroundRepeat","backgroundSize","backgroundColor","text","desc","href","fixed_banner_link","right","bottom","zIndex","src","fixed_banner","alt","slices","body","components","context"],"sourceRoot":""}