{"version":3,"file":"component---src-components-templates-default-page-tsx-21a1e82502b6479b17e7.js","mappings":"qLAuCA,UArBoBA,IAAgC,IAAAC,EAAAC,EAAA,IAA/B,KAAEC,GAAwBH,EAC7C,MAAMI,EACsD,QAD3CH,EACfE,EAAKE,uBAAuBC,SAASC,aAAaC,MAAM,UAAE,IAAAP,OAAA,EAA1DA,EAA4DQ,SACxDC,EAC8D,QAD5CR,EACtBC,EAAKE,uBAAuBC,SAASK,qBAAqBH,MAAM,UAAE,IAAAN,OAAA,EAAlEA,EACIO,SACAG,EAAkBT,EAAKE,uBAAuBC,SAASO,SAASL,MAQtE,OACEM,EAAAA,cAACC,EAAAA,GAAM,CAACX,YAAaA,EAAaM,mBAAoBA,GACnDE,EAAgBI,KARCC,CAACC,EAAuBC,KAC5C,MAAMC,EAAmBP,EAAAA,EAASK,EAAMG,OAAOC,MAC/C,OAAKF,EACEN,EAAAA,cAACM,EAAgBG,OAAAC,OAAA,GAAKN,EAAK,CAAEO,IAAKN,KADX,IACkB,IAMvC,EAMN,MAAMO,EAAOC,IAAkC,IAAjC,KAAExB,GAA0BwB,EAC/C,MAAMC,EAAWzB,EAAKE,uBAAuBC,SAC7C,OAAOQ,EAAAA,cAACe,EAAAA,GAAQD,EAAY,C","sources":["webpack://easymoney/./src/components/templates/default-page.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport { graphql } from \"gatsby\";\r\nimport { Layout, SEO } from \"@global\";\r\nimport { SeoDataTypeDefault } from \"@global/Seo\";\r\nimport { sections, KontentSection } from \"@sections\";\r\n\r\ninterface DefaultPageProps {\r\n data: {\r\n kontentItemDefaultPage: {\r\n elements: {\r\n navbar_style: { value: Array<{ codename: string }> };\r\n lead_form_controller: { value: Array<{ codename: string }> };\r\n sections: { value: KontentSection[] };\r\n };\r\n };\r\n };\r\n}\r\n\r\nconst DefaultPage = ({ data }: DefaultPageProps) => {\r\n const navbarStyle =\r\n data.kontentItemDefaultPage.elements.navbar_style.value[0]?.codename;\r\n const leadFormController =\r\n data.kontentItemDefaultPage.elements.lead_form_controller.value[0]\r\n ?.codename;\r\n const allSectionsData = data.kontentItemDefaultPage.elements.sections.value;\r\n\r\n const renderSection = (block: KontentSection, idx: number) => {\r\n const SectionComponent = sections[block.system.type];\r\n if (!SectionComponent) return null;\r\n return ;\r\n };\r\n\r\n return (\r\n \r\n {allSectionsData.map(renderSection)}\r\n \r\n );\r\n};\r\n\r\nexport default DefaultPage;\r\n\r\nexport const Head = ({ data }: SeoDataTypeDefault) => {\r\n const metaData = data.kontentItemDefaultPage.elements;\r\n return ;\r\n};\r\n\r\nexport const query = graphql`\r\n query defaultPageQuery($id: String) {\r\n kontentItemDefaultPage(id: { eq: $id }) {\r\n ...Seo\r\n ...NavbarStyle\r\n ...HeroImageSection\r\n ...CardsSection\r\n ...SmallAccordionSection\r\n ...LargeAccordionSection\r\n ...TextImageSection\r\n ...CtaSection\r\n ...SimpleHeroSection\r\n ...AccordionStackSection\r\n ...ContactSection\r\n ...StepsSection\r\n ...PrivacyPolicySection\r\n ...ToSSection\r\n ...DisclosureSection\r\n ...SimpleTextSection\r\n ...OnlineSchedulerSection\r\n }\r\n }\r\n`;\r\n"],"names":["_ref","_data$kontentItemDefa","_data$kontentItemDefa2","data","navbarStyle","kontentItemDefaultPage","elements","navbar_style","value","codename","leadFormController","lead_form_controller","allSectionsData","sections","React","Layout","map","renderSection","block","idx","SectionComponent","system","type","Object","assign","key","Head","_ref2","metaData","SEO"],"sourceRoot":""}