{"version":3,"file":"AddHeadingSpacing.DxO2FDIM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hNIdOCIwuI6dex8By6Qh/85Hd8pr7x8iaJ913nBkE/AddHeadingSpacing.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function HeadingSpacingBefore({containerId=\"blog-content\",h2Spacing=32,h3Spacing=24,h4Spacing=20}){const styleId=\"heading-spacing-before-style\";React.useEffect(()=>{let styleTag=document.getElementById(styleId);if(!styleTag){styleTag=document.createElement(\"style\");styleTag.id=styleId;document.head.appendChild(styleTag);}styleTag.innerHTML=`\n            #${containerId} h2:not(:first-child) { margin-top: ${h2Spacing}px; }\n            #${containerId} h3:not(:first-child) { margin-top: ${h3Spacing}px; }\n            #${containerId} h4:not(:first-child) { margin-top: ${h4Spacing}px; }\n        `;},[containerId,h2Spacing,h3Spacing,h4Spacing]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}/** Framer UI controls */addPropertyControls(HeadingSpacingBefore,{containerId:{type:ControlType.String,title:\"Container ID\",defaultValue:\"blog-content\"},h2Spacing:{type:ControlType.Number,title:\"H2 Before\",defaultValue:32,min:0,max:160,step:1},h3Spacing:{type:ControlType.Number,title:\"H3 Before\",defaultValue:24,min:0,max:160,step:1},h4Spacing:{type:ControlType.Number,title:\"H4 Before\",defaultValue:20,min:0,max:160,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"HeadingSpacingBefore\":{\"type\":\"reactComponent\",\"name\":\"HeadingSpacingBefore\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddHeadingSpacing.map"],"mappings":"qKAA2H,SAAgB,EAAqB,CAAC,cAAY,eAAe,YAAU,GAAG,YAAU,GAAG,YAAU,IAAI,CAAC,IAAM,EAAQ,+BAI1L,OAJyN,MAAoB,CAAC,IAAI,EAAS,SAAS,eAAe,EAAQ,CAAK,IAAU,EAAS,SAAS,cAAc,QAAQ,CAAC,EAAS,GAAG,EAAQ,SAAS,KAAK,YAAY,EAAS,EAAE,EAAS,UAAU;eACzc,EAAY,sCAAsC,EAAU;eAC5D,EAAY,sCAAsC,EAAU;eAC5D,EAAY,sCAAsC,EAAU;WAC/D,CAAC,EAAY,EAAU,EAAU,EAAU,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,CAAC,CAAC,kBAJtE,IAA4B,IAAoD,CAIiB,EAAoB,EAAqB,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,MAAM,eAAe,aAAa,eAAe,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC"}