{"version":3,"sources":["jss-components/t02-layout/e01-templates/GeneralOneColumn/GeneralOneColumn.tsx"],"names":["PLACEHOLDER","PLACEHOLDER_NAMES","PAGE_LAYOUTS","ONE_COLUMN_MAIN","GeneralOneColumn","rendering","placeholder","hasNoMargin","props","Consumer","appBp","isMobile","resolveBp","LayoutPadding","style","margin","vr","React","Children","count","children","key","name"],"mappings":"kTAWMA,EAAcC,IAAkBC,aAAaC,gBAqDpCC,EAvCU,SAAC,GAAD,IACxBC,EADwB,EACxBA,UADwB,IAExBC,mBAFwB,MAEVN,EAFU,EAGxBO,EAHwB,EAGxBA,YACGC,EAJqB,wBAMxB,kBAAC,IAAcC,SAAf,MACE,SAACC,GACD,IAAMC,EAAWC,YArBF,MAqBuBF,GAEtC,OACC,kBAACG,EAAA,EAAD,KACC,yBACCC,MAAO,CACNC,OAAQR,EAAW,IAEhBI,EACAK,IACAA,MAGHC,IAAMC,SAASC,MAAMX,EAAMY,UAAY,EACvCZ,EAAMY,SAEN,kBAAC,IAAD,KACC,kBAAC,IAAD,CACCC,IAAKf,EACLgB,KAAMhB,EACND,UAAWA","file":"static/js/GeneralOneColumn.80df3b8a.chunk.js","sourcesContent":["import React from 'react';\n\nimport { AppBreakpoint } from 'src/_AppContainer';\nimport { resolveBp } from '@deloitte-digital-au/dd-breakpoint-container';\nimport Placeholder from 'core/sitecore/jss-proxy-components/JssPlaceholder';\nimport LayoutPadding from 'core/components/LayoutPadding';\nimport { NAMES as PLACEHOLDER_NAMES } from 'core/sitecore/definitions/placeholder-definitions';\nimport { Main } from 'src/_AppPlaceholders';\n\nimport * as vr from 'core/styles/variables';\n\nconst PLACEHOLDER = PLACEHOLDER_NAMES.PAGE_LAYOUTS.ONE_COLUMN_MAIN;\nconst MOBILE_BP = '0,s';\n\nexport interface IProps {\n\trendering?: object;\n\t/**\n\t * To enable proxy components to pass through their own\n\t * placeholder name definitions; e.g. `Dashboard` page template\n\t */\n\tplaceholder?: string;\n\thasNoMargin?: boolean;\n\tchildren: React.ReactNode;\n}\n\nconst GeneralOneColumn = ({\n\trendering,\n\tplaceholder = PLACEHOLDER,\n\thasNoMargin,\n\t...props\n}: IProps) => (\n\t\n\t\t{(appBp: string) => {\n\t\t\tconst isMobile = resolveBp(MOBILE_BP, appBp);\n\n\t\t\treturn (\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{React.Children.count(props.children) > 0 ? (\n\t\t\t\t\t\t\tprops.children\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t);\n\t\t}}\n\t
\n);\n\nexport default GeneralOneColumn;\n"],"sourceRoot":""}