{"version":3,"sources":["webpack:///./src/pages/why-shipamax.tsx","webpack:///./src/util.tsx"],"names":["WhyShipamaxPage","_ref","_page$intro_content","_page$steps","_page$gains","data","page","unwrapFirst","allPrismicWhyShipamaxPage","Error","React","Layout","showDemoBanner","HelmetSeo","Section","PageMaxWidth","Gutter","size","SimpleHero","title","hero_title","description","hero_paragraph","contactButtonLabel","hero_contact_button_label","calculatorButtonLabel","hero_calculator_button_label","CurvedSectionDividerGlow","position","glowColor","backColor","background","tint","Grid","Column","MaxWidth","width","Img","fluid","fluidImage","intro_photo","Text","as","typeface","bold","intro_title","FormattedText","RichText","render","intro_content","raw","Line","color","steps_title","steps","map","step","i","key","StyledStep","className","step_icon","fixed","fixedImage","w","h","step_title","step_description","StyledStepSymbol","CurvedSectionDivider","frontColor","md","gains","gain","Gain","reverseColumns","preTitle","gain_pre_title","gain_title","content","gain_content","image","gain_photo","SectionQuotes","SectionUseCases","use_cases_title","styled","div","withConfig","displayName","componentId","Dimen","gutterWidth","breakpointDownMd","unwrapConnection","connection","edges","filter","Boolean","edge","node","first"],"mappings":"8FACA,4JA0Ge,SAASA,EAAeC,GAAkB,IAAAC,EAAAC,EAAAC,EAAA,IAAjB,KAAEC,GAAaJ,EACrD,MAAMK,EAAOC,YAAYF,EAAKG,2BAA2BH,KAEzD,IAAKC,EAAM,MAAM,IAAIG,MAAM,gBAE3B,OACEC,gBAACC,IAAM,CAACC,gBAAc,GACpBF,gBAACG,IAAcP,GAEfI,gBAACI,IAAO,KACNJ,gBAACK,IAAY,KACXL,gBAACM,IAAM,CAACC,KAAM,IACdP,gBAACQ,IAAU,CACTC,MAAOb,EAAKc,WACZC,YAAaf,EAAKgB,eAClBC,mBAAoBjB,EAAKkB,0BACzBC,sBAAuBnB,EAAKoB,+BAE9BhB,gBAACM,IAAM,CAACC,KAAM,MAIlBP,gBAACiB,IAAwB,CACvBC,SAAS,MACTC,UAAU,SACVC,UAAU,WAEZpB,gBAACI,IAAO,CAACiB,WAAW,OAAOC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MH,OAAOC,SAGzC,SAAS3F,EAAewF,GAC7B,MAAMM,EAAQP,EAAiBC,GAAY,GAC3C,IAAKM,EACH,MAAM,IAAI5F,MAAM,oDAElB,OAAO4F,EAVT","file":"component---src-pages-why-shipamax-tsx-7542e60b6c767da84b66.js","sourcesContent":["import { graphql } from \"gatsby\";\nimport { RichText } from \"prismic-reactjs\";\nimport * as React from \"react\";\nimport styled from \"styled-components\";\nimport {\n Column,\n CurvedSectionDivider,\n CurvedSectionDividerGlow,\n FormattedText,\n Gain,\n Grid,\n Gutter,\n HelmetSeo,\n Layout,\n Line,\n MaxWidth,\n PageMaxWidth,\n Section,\n SectionQuotes,\n SectionUseCases,\n SimpleHero,\n Text,\n} from \"../components\";\nimport { fixedImage, fluidImage } from \"../prismic-tools\";\nimport { unwrapFirst } from \"../util\";\nimport Img from \"gatsby-image\";\nimport { Dimen } from \"../constants\";\n\ntype Props = {\n data: GatsbyTypes.WhyShipamaxPageQuery;\n};\n\nexport const query = graphql`\n query WhyShipamaxPage {\n allPrismicWhyShipamaxPage {\n edges {\n node {\n data {\n hero_title\n hero_paragraph {\n raw\n }\n hero_contact_button_label\n hero_calculator_button_label\n\n intro_photo {\n alt\n dimensions {\n width\n height\n }\n url\n }\n intro_title\n intro_content {\n raw\n }\n\n steps_title\n steps {\n step_icon {\n alt\n dimensions {\n width\n height\n }\n url\n }\n step_title\n step_description\n }\n\n gains {\n gain_photo {\n alt\n dimensions {\n width\n height\n }\n url\n }\n gain_pre_title\n gain_title\n gain_content {\n raw\n }\n }\n\n use_cases_title\n\n seo_title\n seo_description\n share_image {\n alt\n dimensions {\n width\n height\n }\n url\n }\n }\n }\n }\n }\n }\n`;\n\nexport default function WhyShipamaxPage({ data }: Props) {\n const page = unwrapFirst(data.allPrismicWhyShipamaxPage).data;\n\n if (!page) throw new Error(\"page missing\");\n\n return (\n \n \n\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n {page.intro_title}\n \n \n \n \n \n \n \n \n \n \n \n {page.steps_title}\n \n \n \n {page.steps?.map((step, i) => {\n if (!step) return null;\n return (\n \n \n \n \n Step {i + 1}\n \n\n {step.step_icon && (\n \n )}\n \n\n \n \n {step.step_title}\n \n \n \n {step.step_description}\n \n \n {i < 3 && (\n \n \n {i === 2 ? \"=\" : \"+\"}\n \n \n )}\n \n \n );\n })}\n \n \n \n \n \n\n \n \n \n {page.gains?.map(\n (gain, i) =>\n gain && (\n <>\n \n \n >\n )\n )}\n \n \n\n \n \n \n\n \n \n \n \n );\n}\n\nconst StyledStep = styled.div`\n border: 1px rgba(255, 255, 255, 0.1) solid;\n border-radius: 8px;\n padding: ${Dimen.gutterWidth}px;\n min-height: 360px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n position: relative;\n\n .area-top {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n @media (max-width: ${Dimen.breakpointDownMd}px) {\n min-height: auto;\n }\n`;\n\nconst StyledStepSymbol = styled.div`\n position: absolute;\n top: 160px;\n right: -23px;\n\n @media (max-width: ${Dimen.breakpointDownMd}px) {\n top: auto;\n bottom: -29px;\n right: 49%;\n }\n`;\n","type Maybe = T | undefined;\n\ntype Connection = {\n edges: Maybe<\n ReadonlyArray<\n Maybe<{\n node: T;\n }>\n >\n >;\n};\n\nexport function unwrapConnection(connection: Connection): T[] {\n const edges = (connection?.edges || []).filter(Boolean);\n return edges.map((edge) => edge?.node).filter(Boolean) as T[];\n}\n\nexport function unwrapFirst(connection: Connection): T {\n const first = unwrapConnection(connection)[0];\n if (!first) {\n throw new Error(\"Called unwrapFirst on a connection with no edges\");\n }\n return first;\n}\n"],"sourceRoot":""}