{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/f3Ja2bWxGXwZQjIl6h11/Jl73gN0BVmlwUWXEcQ1r/withSectionVisibility.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const useIdentifierMatch=expectedIdentifier=>{const[isMatch,setIsMatch]=useState(false);useEffect(()=>{const checkIdentifierMatch=()=>{const params=new URLSearchParams(window.location.search);const urlIdentifier=params.get(\"identifier\");setIsMatch(urlIdentifier===expectedIdentifier);};checkIdentifierMatch();window.addEventListener(\"popstate\",checkIdentifierMatch);return()=>{window.removeEventListener(\"popstate\",checkIdentifierMatch);};},[expectedIdentifier]);return isMatch;};export function withSectionVisibility(Component){return props=>{const shouldBeVisible=useIdentifierMatch(props.id);if(!shouldBeVisible){return null;}return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSectionVisibility\":{\"type\":\"reactHoc\",\"name\":\"withSectionVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./withSectionVisibility.map"],
  "mappings": "gGAAiF,IAAMA,EAAmBC,GAAoB,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAK,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAqB,IAAI,CAA0D,IAAMC,EAAlD,IAAI,gBAAgBC,EAAO,SAAS,MAAM,EAA6B,IAAI,YAAY,EAAEL,EAAWI,IAAgBN,CAAkB,CAAE,EAAE,OAAAK,EAAqB,EAAEE,EAAO,iBAAiB,WAAWF,CAAoB,EAAQ,IAAI,CAACE,EAAO,oBAAoB,WAAWF,CAAoB,CAAE,CAAE,EAAE,CAACL,CAAkB,CAAC,EAASC,CAAQ,EAAS,SAASO,EAAsBC,EAAU,CAAC,OAAOC,GAA8BX,EAAmBW,EAAM,EAAE,EAAwDC,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAnD,IAAuD",
  "names": ["useIdentifierMatch", "expectedIdentifier", "isMatch", "setIsMatch", "ye", "ue", "checkIdentifierMatch", "urlIdentifier", "window", "withSectionVisibility", "Component", "props", "p"]
}
