{"version":3,"file":"WithListSpacing.DYl4idUD.mjs","names":["useId","useMemo","_Fragment","__esmMin","init_npm_react_18_3_1","ie","pe","init_jsx_runtime","J","p","withBulletSpacing","scopeId","scopedCSS","scope","BULLET_SPACING_PX","mergedStyle","props","l","Component","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,SAAgBU,EAAkB,EAAU,CAAC,MAAoB,gBAAW,SAA2B,EAAM,EAAI,CAAC,IAAMC,EAAQX,EAAM,CAAC,CAAC,QAAQ,KAAK,EAAE,EAAQY,EAAUX,MAAY,CAAC,IAAMY,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,GAAGC,EAAM,KAAK,EAAE,MAAoB,gBAAMd,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASU,CAAS,CAAC,EAAe,gBAAKM,EAAU,CAAK,MAAI,GAAGF,EAAM,4BAA4BL,EAAQ,MAAMI,CAAW,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,C,4CAF/M,EAAkB,C"}