{"version":3,"file":"Negative_margin.DGcvrOft.mjs","names":["_jsxs","_jsx","__esmMin","init_jsx_runtime","c","p","NegativeGapVertical","Component","props","applyNegativeGap","isVertical","name","negativeGapPrefix","id","gap","init_Negative_margin"],"sources":["https:/framerusercontent.com/modules/Oxo6NJ6nMJfv8FyDh5VS/Kr3Ogmfr7qR97DvDWncJ/Negative_margin.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";const negativeGapPrefix=\"Gap:\"// Prefix the layer name with this to set the gap size\n;export function NegativeGapVertical(Component){return props=>applyNegativeGap(Component,props,true);}export function NegativeGapHorizontal(Component){return props=>applyNegativeGap(Component,props,false);}// Function for applying negative gap to an element.\nfunction applyNegativeGap(Component,props,isVertical){const name=props[\"data-framer-name\"];if(name===null||name===void 0?void 0:name.startsWith(negativeGapPrefix)){const id=props.id||\"a\"+Math.floor(Math.random()*1e7).toString();const gap=name.replace(new RegExp(\"^\"+negativeGapPrefix),\"\").trim();return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"contents\"},children:[/*#__PURE__*/_jsx(Component,{...props,id:id,style:{...props.style,gap:0}}),/*#__PURE__*/_jsx(\"style\",{children:`#${id} > *:not(:first-child) { margin-${isVertical?\"top\":\"left\"}: ${gap}px; }`})]});}return /*#__PURE__*/_jsx(Component,{...props});}\nexport const __FramerMetadata__ = {\"exports\":{\"NegativeGapHorizontal\":{\"type\":\"reactHoc\",\"name\":\"NegativeGapHorizontal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NegativeGapVertical\":{\"type\":\"reactHoc\",\"name\":\"NegativeGapVertical\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Negative_margin.map"],"mappings":"A,2GACC,SAAgBM,EAAoBC,EAAU,CAAC,MAAOC,IAAOC,EAAiBF,EAAUC,EAAM,EAAI,CAAE,CACrG,SAASC,EAAiBF,EAAUC,EAAME,EAAW,CAAC,IAAMC,EAAKH,EAAM,oBAAoB,GAAGG,GAAuC,WAAWC,CAAiB,EAAE,CAAC,IAAMC,EAAGL,EAAM,IAAI,IAAI,KAAK,MAAM,KAAK,OAAO,EAAE,GAAG,CAAC,CAAC,SAAS,EAAQM,EAAIH,EAAK,QAAQ,gBAAI,OAAO,OAAqB,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,MAAoBX,gBAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAS,CAAcC,gBAAKM,EAAU,CAAC,GAAGC,EAASK,KAAG,MAAM,CAAC,GAAGL,EAAM,MAAM,IAAI,CAAC,CAAC,CAAC,EAAeP,gBAAK,QAAQ,CAAC,SAAS,IAAIY,EAAG,kCAAkCH,EAAW,MAAM,OAAO,IAAII,EAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,MAAoBb,gBAAKM,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAE,C,wCAFniBI,EAAkB,M"}