{"version":3,"sources":["webpack:///./Avensia.Common/Features/Shared/BlockBase/index.tsx"],"names":["props","isRowLayout","height","isFullWidth","createElement","Content","id","css","Object","assign","marginBottom","children","div","isCompact"],"mappings":";0FAAA,2CAae,iBATIA,IACf,MAAM,YAAEC,GAAgB,qBAAW,MAC7B,OAAEC,EAAM,YAAEC,GAAgBH,EAChC,OAAQ,IAAMI,cAAcC,EAAS,CAAEC,GAAIN,EAAMM,GAAIC,IAAKC,OAAOC,OAAOD,OAAOC,OAAOD,OAAOC,OAAO,GAAKR,GAAe,CAChHS,aAAc,IACZR,GAAU,CACZA,WACEC,GAAeK,OAAOC,OAAOD,OAAOC,OAAO,GAAI,KAAyB,CAAEP,OAAQ,WAAeF,EAAMW,aAGrH,MAAMN,EAAU,IAAOO,IAAI,CACvBF,aAAc,EAAGG,eAAiBA,EAAY,GAAK","file":"assets/4.chunk.c7343968709fc0422637.js","sourcesContent":["import React, { useContext } from 'react';\r\nimport { styled } from '@glitz/react';\r\nimport { RowLayoutContext } from 'Shared/Blocks/RowLayout/RowLayoutContext';\r\nimport { fullViewportWidthBlock } from 'Shared/Style';\r\nconst BlockBase = (props) => {\r\n const { isRowLayout } = useContext(RowLayoutContext);\r\n const { height, isFullWidth } = props;\r\n return (React.createElement(Content, { id: props.id, css: Object.assign(Object.assign(Object.assign({}, (isRowLayout && {\r\n marginBottom: 0,\r\n })), (height && {\r\n height,\r\n })), (isFullWidth && Object.assign(Object.assign({}, fullViewportWidthBlock), { height: 'auto' }))) }, props.children));\r\n};\r\nexport default styled(BlockBase);\r\nconst Content = styled.div({\r\n marginBottom: ({ isCompact }) => (isCompact ? 40 : 60),\r\n});\r\n"],"sourceRoot":""}