{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/wstFb6aEPBBkaGNZ4DRZ/qifL8H1AJFAAFaRKsG6e/ShareOnFacebook.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export default function ShareOnFacebook({slug}){const[currentUrl,setCurrentUrl]=useState(\"https://legedom.no/\");useEffect(()=>{if(typeof window!==\"undefined\"){setCurrentUrl(window.location.href);}},[]);const shareUrl=slug?`https://legedom.no/${slug}`:currentUrl;return /*#__PURE__*/_jsx(\"button\",{onClick:()=>{if(typeof window!==\"undefined\"){window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`,\"_blank\");}},style:{padding:\"10px 15px\",backgroundColor:\"#1877F2\",color:\"white\",border:\"none\",borderRadius:\"5px\",cursor:\"pointer\",fontWeight:\"bold\",fontSize:\"18px\"},children:\"Del p\\xe5 Facebook\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShareOnFacebook\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ShareOnFacebook.map"],
  "mappings": "gGAAgG,SAARA,EAAiC,CAAC,KAAAC,CAAI,EAAE,CAAC,GAAK,CAACC,EAAWC,CAAa,EAAEC,EAAS,qBAAqB,EAAEC,EAAU,IAAI,CAAI,OAAOC,EAAS,KAAaH,EAAcG,EAAO,SAAS,IAAI,CAAG,EAAE,CAAC,CAAC,EAAE,IAAMC,EAASN,EAAK,sBAAsBA,CAAI,GAAGC,EAAW,OAAoBM,EAAK,SAAS,CAAC,QAAQ,IAAI,CAAI,OAAOF,EAAS,KAAaA,EAAO,KAAK,gDAAgD,mBAAmBC,CAAQ,CAAC,GAAG,QAAQ,CAAG,EAAE,MAAM,CAAC,QAAQ,YAAY,gBAAgB,UAAU,MAAM,QAAQ,OAAO,OAAO,aAAa,MAAM,OAAO,UAAU,WAAW,OAAO,SAAS,MAAM,EAAE,SAAS,oBAAoB,CAAC,CAAE",
  "names": ["ShareOnFacebook", "slug", "currentUrl", "setCurrentUrl", "ye", "ue", "window", "shareUrl", "p"]
}
