{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/18ty7zXlr5HjVR4AwnLw/MvfIEyEmwBI0AjEMR6mE/margins.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import React from\"react\";export function withNegativeMargin(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,marginTop:\"-100vh\"}});};}export function withFeatureNarrativePadding(Component){return props=>{const[padding,setPadding]=React.useState(\"0px\");React.useEffect(()=>{const lastImage=document.getElementById(\"create-event-image\")||document.getElementById(\"read-statuses-image\");if(!lastImage)return;const{height}=(lastImage===null||lastImage===void 0?void 0:lastImage.getBoundingClientRect())||{height:padding};setPadding(`calc((100vh - ${height}px) / 2)`);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,paddingBottom:padding}});};}export function withFeatureNarrativeMargin(Component){return props=>{const[margin,setMargin]=React.useState(\"0px\");React.useEffect(()=>{const lastImage=document.getElementById(\"create-event-image\")||document.getElementById(\"read-statuses-image\");const{height}=(lastImage===null||lastImage===void 0?void 0:lastImage.getBoundingClientRect())||{height:margin};setMargin(`calc((100vh - ${height}px) / -2)`);},[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,marginBottom:margin}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withNegativeMargin\":{\"type\":\"reactHoc\",\"name\":\"withNegativeMargin\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFeatureNarrativePadding\":{\"type\":\"reactHoc\",\"name\":\"withFeatureNarrativePadding\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFeatureNarrativeMargin\":{\"type\":\"reactHoc\",\"name\":\"withFeatureNarrativeMargin\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./margins.map"],
  "mappings": "gDAA2E,SAASA,EAAmBC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,UAAU,QAAQ,CAAC,CAAC,CAAI,CAAQ,SAASE,EAA4BH,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACG,EAAQC,CAAU,EAAEC,EAAM,SAAS,KAAK,EAAE,OAAAA,EAAM,UAAU,IAAI,CAAC,IAAMC,EAAU,SAAS,eAAe,oBAAoB,GAAG,SAAS,eAAe,qBAAqB,EAAE,GAAG,CAACA,EAAU,OAAO,GAAK,CAAC,OAAAC,CAAM,EAA+CD,GAAU,sBAAsB,GAAI,CAAC,OAAOH,CAAO,EAAEC,EAAW,iBAAiBG,CAAM,UAAU,CAAE,EAAE,CAAC,CAAC,EAAsBN,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,cAAcG,CAAO,CAAC,CAAC,CAAE,CAAE,CAAQ,SAASK,EAA2BT,EAAU,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACS,EAAOC,CAAS,EAAEL,EAAM,SAAS,KAAK,EAAE,OAAAA,EAAM,UAAU,IAAI,CAAC,IAAMC,EAAU,SAAS,eAAe,oBAAoB,GAAG,SAAS,eAAe,qBAAqB,EAAO,CAAC,OAAAC,CAAM,EAA+CD,GAAU,sBAAsB,GAAI,CAAC,OAAOG,CAAM,EAAEC,EAAU,iBAAiBH,CAAM,WAAW,CAAE,EAAE,CAAC,CAAC,EAAsBN,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,aAAaS,CAAM,CAAC,CAAC,CAAE,CAAE",
  "names": ["withNegativeMargin", "Component", "props", "p", "withFeatureNarrativePadding", "padding", "setPadding", "e", "lastImage", "height", "withFeatureNarrativeMargin", "margin", "setMargin"]
}
