{"version":3,"sources":["common/Breadcrumbs.tsx","common/PageHeader.tsx","common/PageDescription.tsx","pages/WebNode/index.tsx"],"names":["Arrow","_ref","className","_jsx","children","width","height","fill","xmlns","d","fillOpacity","useStyles","makeStyles","_ref3","breakpoints","palette","root","down","textAlign","item","display","delimiter","arrow","slash","color","rapunzel","black","up","list","dark","textDecoration","Breadcrumbs","_ref2","state","page","useStore","pageStore","parents","data","_parents","classes","classNames","map","link","index","_jsxs","LinkButton","variant","url","linkText","title","length","_Fragment","Typography","spacing","paddingTop","center","marginBottom","background","backgroundImage","menuBackground","backgroundColor","alignItems","justifyContent","overflowY","PageHeader","withBackground","propsInfo","rest","isMobile","useBreakpoint","Wrapper","editorAttributes","component","align","expanded","expansionSummeryRoot","minHeight","padding","expansionPanelDetailsRoot","expansionPanelRoot","margin","metaLineText","concat","expansionSummeryContent","paddingRight","date","textSecondary","metaLine","paddingBottom","flexGrow","border","PageDescription","description","preamble","readMore","hideDate","t","useTranslation","toLocaleDateString","replace","hasPropsInfo","Object","keys","narrow","HtmlContent","content","Accordion","AccordionSummary","AccordionDetails","FilterContainer","React","lazy","hasHeroContent","heroBlock","bigTitle","smallTitle","scrollHint","backgroundVideo","WebNode","sortSettings","facets","mainContentArea","footerContentArea","text","displayName","longText","pageInfo","route","_route","pageType","_type","HeroBlock","isHero","extractBlockPropsInfo","pageMap","blockMap","formMap","isEditMode","_id","DisplayOptionsContentArea","propInfo","SectionComponent","containWhen","block","DisplayOptions","childContainer","ChildContainer","container","ContainerWrapper","Suspense","fallback","isParent"],"mappings":"kHAAA,wEAaA,MAAMA,EAAwDC,IAAA,IAAC,UAC7DC,GACDD,EAAA,OACCE,cAAA,QAAMD,UAAWA,EAAUE,SACzBD,cAAA,OAAKE,MAAM,IAAIC,OAAO,IAAIC,KAAK,OAAOC,MAAM,6BAA4BJ,SACtED,cAAA,QACEM,EAAE,0CACFF,KAAK,OACLG,YAAY,WAGX,EAyCHC,EAAYC,aAAWC,IAAA,IAAC,YAAE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G,EAAe,CACdU,aAAcA,GAAgB,GAC9BQ,OAAqB,oBAAbE,EAAkC,QAAYF,IAAS,GAC/DwB,YAAUzB,GAAyC,IAA7BA,EAASxF,SAASY,QACxCsE,OAAQA,GAAU,OAGtBtH,cAACyI,IAAyB,CACxBlC,QAASiB,EACTkB,SAAU1E,EAAUwD,kBACpBlD,UAAWqE,IACXf,SAAUA,EACVgB,YAAaC,GAAyC,IAAhCC,IAAeD,EAAMb,OAC3Ce,eAAgBC,IAChBC,UAAWC,QAEZ,C","file":"static/js/WebNode.293b6869.chunk.js","sourcesContent":["import { makeStyles } from \"@material-ui/core/styles\"\nimport classNames from \"classnames\"\nimport Typography from \"common/Typography\"\nimport useStore from \"global-hook-store\"\nimport React from \"react\"\nimport pageStore from \"stores/pageStore\"\n\nimport LinkButton from \"./LinkButton\"\n\ntype Props = {\n className?: string\n}\n\nconst Arrow: React.FunctionComponent<{ className: string }> = ({\n className\n}) => (\n \n \n \n \n \n)\n\nconst Breadcrumbs: React.FC = ({ className }) => {\n const {\n state: { page }\n } = useStore(pageStore)\n\n const parents = (page.data && page.data._parents) || []\n\n const classes = useStyles()\n\n return parents ? (\n
\n {parents.map((link, index) => (\n
\n \n {index < parents.length - 1 && (\n <>\n \n\n \n /\n \n \n )}\n
\n ))}\n
\n ) : null\n}\n\nconst useStyles = makeStyles(({ breakpoints, palette }) => ({\n root: {\n [breakpoints.down(\"sm\")]: {\n textAlign: \"center\"\n }\n },\n item: {\n display: \"inline-block\"\n },\n delimiter: {\n display: \"inline-block\"\n },\n arrow: {\n [breakpoints.down(\"sm\")]: {\n display: \"none\"\n }\n },\n slash: {\n color: palette.rapunzel.black,\n [breakpoints.up(\"md\")]: {\n display: \"none\"\n }\n },\n list: {\n \"& span\": {\n color: palette.rapunzel.dark,\n textDecoration: \"none\"\n }\n }\n}))\n\nexport default Breadcrumbs\n","import { makeStyles } from \"@material-ui/core/styles\"\nimport { editorAttributes } from \"@starrepublic/epi/cms\"\nimport { PropertyInfo } from \"@starrepublic/epi/types/cms/content\"\nimport classNames from \"classnames\"\nimport { menuBackground } from \"common/backgrounds\"\nimport Breadcrumbs from \"common/Breadcrumbs\"\nimport Typography from \"common/Typography\"\nimport Wrapper from \"common/Wrapper\"\nimport useBreakpoint from \"hooks/useBreakpoint\"\nimport * as React from \"react\"\n\ntype Props = {\n title: string\n narrow?: boolean\n withBackground?: boolean\n propsInfo?: PropertyInfo\n}\n\nconst PageHeader: React.FunctionComponent = ({\n title,\n withBackground,\n propsInfo,\n\n ...rest\n}) => {\n const isMobile = useBreakpoint(\"md\")\n const classes = useStyles()\n return (\n <>\n \n \n \n\n \n {title}\n \n \n )\n}\n\nconst useStyles = makeStyles(({ spacing }) => ({\n root: {\n paddingTop: spacing(3)\n },\n center: {\n textAlign: \"center\",\n marginBottom: spacing(1)\n },\n background: {\n backgroundImage: menuBackground,\n backgroundColor: \"#F7F7F7\",\n width: \"100%\",\n height: 152,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n overflowY: \"auto\"\n }\n}))\n\nexport default PageHeader\n","import { Accordion } from \"@material-ui/core\"\nimport { AccordionSummary } from \"@material-ui/core\"\nimport { AccordionDetails } from \"@material-ui/core\"\nimport { makeStyles } from \"@material-ui/core/styles\"\nimport { editorAttributes } from \"@starrepublic/epi/cms\"\nimport { ContentPropertyInfo } from \"@starrepublic/epi/types/cms/content\"\nimport classNames from \"classnames\"\nimport Typography from \"common/Typography\"\nimport Wrapper from \"common/Wrapper\"\nimport React from \"react\"\nimport { useTranslation } from \"react-i18next\"\n\nimport HtmlContent from \"./HtmlContent\"\n\ntype OwnProps = {\n preamble?: string\n readMore?: string\n date?: Date\n description?: string\n hideDate?: boolean\n}\n\ntype Props = OwnProps & {\n propsInfo?: ContentPropertyInfo\n}\n\nconst PageDescription: React.FunctionComponent = ({\n date,\n description,\n preamble,\n readMore,\n hideDate,\n propsInfo\n}) => {\n const { t } = useTranslation()\n const classes = useStyles()\n\n const metaLine = (readMore || date) && (\n
\n
\n \n {(readMore && t(\"common.read_more\")) ||\n date?.toLocaleDateString().replace(/\\//g, \"-\")}\n \n
\n
\n )\n\n const hasPropsInfo = Object.keys(propsInfo || {}).length > 0\n\n return (\n \n {(preamble || hasPropsInfo) && (\n \n {preamble || \"\"}\n \n )}\n {(description || hasPropsInfo) && (\n \n )}\n {(readMore || hasPropsInfo) && (\n \n \n {metaLine}\n \n \n \n \n \n )}\n {!hideDate && date && metaLine}\n \n )\n}\n\nconst useStyles = makeStyles(({ spacing, breakpoints, palette }) => ({\n root: {\n marginBottom: spacing(4)\n },\n paddingTop: {\n paddingTop: spacing(2)\n },\n expanded: {},\n expansionSummeryRoot: {\n \"&$expanded\": {\n minHeight: spacing(6)\n },\n padding: 0\n },\n expansionPanelDetailsRoot: {\n padding: 0\n },\n expansionPanelRoot: {\n \"&:before\": {\n display: \"none\"\n },\n margin: 0\n },\n metaLineText: {\n margin: `0 ${spacing(2)}px`\n },\n expansionSummeryContent: {\n [breakpoints.up(\"sm\")]: {\n padding: `0 ${spacing(8)}px`\n },\n padding: `0 ${spacing(4)}px`,\n \"&$expanded\": {\n margin: 0\n },\n \"&>div:last-child\": {\n paddingRight: 0\n }\n },\n date: {\n color: palette.rapunzel.textSecondary,\n textDecoration: \"none\"\n },\n metaLine: {\n display: \"flex\",\n width: \"100%\",\n paddingTop: spacing(2),\n paddingBottom: spacing(2),\n \"& hr\": {\n flexGrow: 1,\n height: 1,\n backgroundColor: \"#ddd\",\n border: \"none\"\n }\n }\n}))\n\nexport default PageDescription\n","import { extractBlockPropsInfo } from \"@starrepublic/epi/cms\"\nimport DisplayOptionsContentArea from \"@starrepublic/epi/cms/components/DisplayOptionsContentArea\"\nimport { ContentProps } from \"@starrepublic/epi/types/cms/props\"\nimport HeroBlock from \"blocks/HeroBlock\"\nimport {\n ChildContainer,\n ContainerWrapper,\n SectionComponent\n} from \"common/contentAreaContainers\"\nimport PageDescription from \"common/PageDescription\"\nimport PageHeader from \"common/PageHeader\"\nimport React, { Suspense } from \"react\"\nimport DisplayOptions from \"utils/ui/DisplayOptions\"\n\nimport WebNodeContent from \"./types\"\n\ntype Props = ContentProps\n\nconst FilterContainer = React.lazy(\n () => import(/* webpackChunkName: \"productfilter\" */ \"./FilterContainer\")\n)\n\nconst hasHeroContent = (heroBlock: WebNodeContent[\"heroBlock\"]) =>\n heroBlock &&\n (heroBlock.bigTitle ||\n heroBlock.smallTitle ||\n heroBlock.link ||\n heroBlock.linkText ||\n heroBlock.scrollHint ||\n heroBlock.backgroundImage ||\n heroBlock.backgroundVideo)\n\nconst WebNode: React.FC = ({\n content: {\n heroBlock,\n sortSettings,\n facets,\n mainContentArea,\n footerContentArea,\n text,\n displayName,\n longText\n },\n propsInfo,\n pageInfo\n}) => {\n const route = pageInfo && pageInfo._route\n const pageType = pageInfo && pageInfo._type\n\n return (\n <>\n {heroBlock && hasHeroContent(heroBlock) && (\n \n )}\n \n \n\n DisplayOptions[block._type] !== 1}\n childContainer={ChildContainer}\n container={ContainerWrapper}\n />\n \n \n \n DisplayOptions[block._type] !== 1}\n childContainer={ChildContainer}\n container={ContainerWrapper}\n />\n \n )\n}\n\nexport default WebNode\n"],"sourceRoot":""}