{"version":3,"file":"AddListItemSpacing.BTi8aCKA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/YkI0NpvZsF8c1oBEY2dL/5OExE2UfQSJF1FKJAoH5/AddListItemSpacing.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function AddListItemSpacing({containerId=\"blog-content\",itemSpacing=12}){React.useEffect(()=>{const container=document.getElementById(containerId);if(!container)return;// Inject CSS once\nif(!document.getElementById(\"arrow-list-style\")){const style=document.createElement(\"style\");style.id=\"arrow-list-style\";style.innerHTML=`\n                #${containerId} ul,\n                #${containerId} ol {\n                    list-style: none;\n                    padding-left: 0;\n                }\n\n                #${containerId} li {\n                    position: relative;\n                    padding-left: 22px;\n                }\n\n                #${containerId} li::before {\n                    content: \"→\";\n                    position: absolute;\n                    left: 0;\n                    color: #5C44F5;\n                    font-weight: 600;\n                }\n            `;document.head.appendChild(style);}const lists=container.querySelectorAll(\"ul, ol\");lists.forEach(list=>{const items=Array.from(list.querySelectorAll(\":scope > li\"));items.forEach((li,index)=>{li.style.marginBottom=index===items.length-1?\"0px\":`${itemSpacing}px`;});});},[containerId,itemSpacing]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}addPropertyControls(AddListItemSpacing,{containerId:{type:ControlType.String,title:\"Container ID\",defaultValue:\"blog-content\"},itemSpacing:{type:ControlType.Number,title:\"LI Spacing (px)\",defaultValue:12,min:0,max:80,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"AddListItemSpacing\":{\"type\":\"reactComponent\",\"name\":\"AddListItemSpacing\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddListItemSpacing.map"],"mappings":"qKAA2H,SAAgB,EAAmB,CAAC,cAAY,eAAe,cAAY,IAAI,CAoB6G,OApB5G,MAAoB,CAAC,IAAM,EAAU,SAAS,eAAe,EAAY,CAAK,KACzR,IAAG,CAAC,SAAS,eAAe,mBAAmB,CAAC,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,mBAAmB,EAAM,UAAU;mBACtH,EAAY;mBACZ,EAAY;;;;;mBAKZ,EAAY;;;;;mBAKZ,EAAY;;;;;;;cAOjB,SAAS,KAAK,YAAY,EAAM,CAAc,EAAU,iBAAiB,SAAS,CAAO,QAAQ,GAAM,CAAC,IAAM,EAAM,MAAM,KAAK,EAAK,iBAAiB,cAAc,CAAC,CAAC,EAAM,SAAS,EAAG,IAAQ,CAAC,EAAG,MAAM,aAAa,IAAQ,EAAM,OAAO,EAAE,MAAM,GAAG,EAAY,KAAM,EAAG,GAAG,CAAC,EAAY,EAAY,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,CAAC,CAAC,kBApBpU,IAA4B,IAAoD,CAoBsP,EAAoB,EAAmB,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,MAAM,eAAe,aAAa,eAAe,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,MAAM,kBAAkB,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC"}