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KlDvC,EAAAA,cAAA,UACE8C,KAAK,kBACLC,IAAI,wEACJC,OAAK,IAIPhD,EAAAA,cAAA,4JAUFA,EAAAA,cAACiD,EAAAA,GAAgB,CAAC/C,MAAM,SAAS1B,QAASA,IAGhD,GAGN,C","sources":["webpack://www-differentdog-com/./src/templates/builder/Recipe.tsx"],"sourcesContent":["import { BuilderComponent, BuilderContent } from '@builder.io/react'\nimport { getCognitoId, getVisitorId } from 'components/util/UserId'\nimport { graphql } from 'gatsby'\nimport React, { useEffect, useState } from 'react'\nimport { Helmet } from 'react-helmet'\nimport PageLayout from '../../components/ui-builder/layouts/PageLayout'\n\nimport '../../builder-settings'\n\nconst defaultDescription = 'Recipe Description'\n\nconst defaultTitle = 'Recipe Title'\n\nfunction RecipeTemplate({ data }: any) {\n const [_visitorId, setVisitorId] = useState('')\n const [_cognitoId, setCognitoId] = useState('')\n const content = data?.allBuilderModels.recipe[0]?.content\n const contentData = content.data\n const headerWrapperBackgroundColor = data?.allBuilderModels.recipe[0]?.data.headerWrapperBackgroundColor\n\n console.log('Recipe Page Template - recipes', data?.allBuilderModels.recipe)\n\n useEffect(() => {\n const callIdsForGtag = async () => {\n setVisitorId(await getVisitorId())\n setCognitoId(await getCognitoId())\n }\n callIdsForGtag()\n }, [])\n\n return (\n \n {recipe => {\n const recipeContent = recipe\n\n // console.log('RecipeTemplate:: Template on change data', recipeContent)\n return (\n \n \n {/* meta tags for page */}\n {recipeContent?.title || contentData?.ogTitle || defaultTitle}\n \n \n \n \n \n \n contentData?.ogImage &&\n \n {recipeContent.noIndex ? : ''}\n \n {/* meta tags ends for page */}\n {/* */}\n \n {/* */}\n {/* */}\n \n {/* */}\n {/* Plausible Analytics script */}\n {/* */}\n \n {/*

Recipe template

*/}\n {/** name of the model is landing page, change it if you decided to build*/}\n \n \n )\n }}\n
\n )\n}\n\nexport default RecipeTemplate\n\nexport const RecipeTemplateQuery = graphql`\n query ($path: String!) {\n allBuilderModels {\n recipe(target: { urlPath: $path }, options: { cachebust: true }) {\n content\n data {\n headerWrapperBackgroundColor\n }\n }\n }\n }\n`\n"],"names":["defaultDescription","defaultTitle","_ref","_data$allBuilderModel","_data$allBuilderModel2","data","_useState","useState","setVisitorId","_useState2","setCognitoId","content","allBuilderModels","recipe","contentData","headerWrapperBackgroundColor","useEffect","callIdsForGtag","_ref2","_asyncToGenerator","_regeneratorRuntime","_callee","_context","prev","next","t0","getVisitorId","t1","sent","t2","getCognitoId","t3","stop","apply","arguments","React","BuilderContent","model","_recipeContent$header","_contentData$header","_recipeContent$footer","_contentData$footer","_recipeContent$active","_contentData$activeBa","_ref3","_content$data","_content$data2","_content$data3","_ref4","_content$data4","_content$data5","recipeContent","PageLayout","headerIdentifier","header","id","footerIdentifier","footer","bannerEnable","enableTopBanner","activeBannerIdentifier","activeBanner","title","ogTitle","adultOnly","Helmet","property","ogDescription","description","name","siteName","ogType","ogUrl","canonical","url","substr","replace","ogImage","noIndex","rel","href","type","src","async","BuilderComponent"],"sourceRoot":""}