{"version":3,"file":"WithListSpacing.9Y7vMami.mjs","names":["forwardRef","useId","useMemo","_jsxs","_Fragment","_jsx","__esmMin","init_npm_react_18_3_1","ie","pe","init_jsx_runtime","l","J","p","withBulletSpacing","Component","props","ref","scopeId","scopedCSS","scope","BULLET_SPACING_PX","mergedStyle","c","init_WithListSpacing"],"sources":["https:/framerusercontent.com/modules/YtRhBs9df2nBqNZdeK80/Q16cvgRfkd8A6jP7fV2w/WithListSpacing.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useId,useMemo}from\"react\";const BULLET_SPACING_PX=8;export function withBulletSpacing(Component){return /*#__PURE__*/forwardRef(function WithBulletSpacing(props,ref){const scopeId=useId().replace(/:/g,\"\");const scopedCSS=useMemo(()=>{const scope=`[data-bullet-spacing-scope=\"${scopeId}\"]`;return[`${scope} ul > li + li, ${scope} ol > li + li { margin-block-start: ${BULLET_SPACING_PX}px !important; }`,// A hidden embed (a Summary block set to not visible) leaves an empty first block.\n// Without this, the block after it keeps its top spacing and sits too low.\n`${scope} > :empty:first-child + * { margin-block-start: 0 !important; }`].join(\" \");},[scopeId]);const mergedStyle={...props.style};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:scopedCSS}),/*#__PURE__*/_jsx(Component,{ref:ref,...props,\"data-bullet-spacing-scope\":scopeId,style:mergedStyle})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withBulletSpacing\":{\"type\":\"reactHoc\",\"name\":\"withBulletSpacing\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WithListSpacing.map"],"mappings":"A,yIAAqJ,SAAgBc,EAAkBC,EAAU,CAAC,MAAoBf,gBAAW,SAA2BgB,EAAMC,EAAI,CAAC,IAAMC,EAAQjB,EAAM,CAAC,CAAC,QAAQ,KAAK,EAAE,EAAQkB,EAAUjB,MAAY,CAAC,IAAMkB,EAAM,+BAA+BF,EAAQ,IAAI,MAAM,CAAC,GAAGE,EAAM,iBAAiBA,EAAM,sCAAsCC,EAAkB,kBAEje,GAAGD,EAAM,gEAAgE,CAAC,CAAC,KAAK,GAAG,CAAE,EAAE,CAACF,CAAO,CAAC,EAAQI,EAAY,CAAC,GAAGN,EAAM,KAAK,EAAE,MAAoBb,gBAAMC,EAAU,CAAC,SAAS,CAAcC,gBAAK,QAAQ,CAAC,SAASc,CAAS,CAAC,EAAed,gBAAKU,EAAU,CAAKE,MAAI,GAAGD,EAAM,4BAA4BE,EAAQ,MAAMI,CAAW,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,C,4CAF/MD,EAAkB,C"}