{"version":3,"file":"Negative_gap.BotfPzON.mjs","names":[],"sources":["https:/framerusercontent.com/modules/nc2Sr36eup2jLGYa7GRI/5fRcY1H652bzjntUwBYO/Negative_gap.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?.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\":{\"NegativeGapVertical\":{\"type\":\"reactHoc\",\"name\":\"NegativeGapVertical\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NegativeGapHorizontal\":{\"type\":\"reactHoc\",\"name\":\"NegativeGapHorizontal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Negative_gap.map"],"mappings":"2GACC,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,EAAiB,EAAU,EAAM,GAAK,CACpG,SAAS,EAAiB,EAAU,EAAM,EAAW,CAAC,IAAM,EAAK,EAAM,oBAAoB,GAAG,GAAM,WAAW,EAAkB,CAAC,CAAC,IAAM,EAAG,EAAM,IAAI,IAAI,KAAK,MAAM,KAAK,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAO,EAAI,EAAK,QAAY,OAAO,IAAI,EAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,WAAW,CAAC,SAAS,CAAc,EAAK,EAAU,CAAC,GAAG,EAAS,KAAG,MAAM,CAAC,GAAG,EAAM,MAAM,IAAI,EAAE,CAAC,CAAC,CAAc,EAAK,QAAQ,CAAC,SAAS,IAAI,EAAG,kCAAkC,EAAW,MAAM,OAAO,IAAI,EAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,oBAFvgB,CAAM,EAAkB"}