{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/LA8IuKFeIGs7OO2wYCQK/WDSGdgTHriL1HVby7bTy/ParameterBasedVisibility.js"],
  "sourcesContent": ["// This module shows or hides elements based on specific UTM source and medium parameters.\n// Last updated by @joshua on 2025-07-18.\n//\n// Visibility is enabled if:\n// - utm_source=google\n// - OR utm_source=gp8fuyk\n// - OR utm_medium=cpc\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";function evaluateTrackingCondition(){if(typeof window===\"undefined\")return false;const params=new URLSearchParams(window.location.search);const utmSource=params.get(\"utm_source\")?.toLowerCase();const utmMedium=params.get(\"utm_medium\")?.toLowerCase();const isValidSource=utmSource===\"google\"||utmSource===\"gp8fuyk\";const isValidMedium=utmMedium===\"cpc\";const path=window.location.pathname.toLowerCase();const isValidPath=path.includes(\"/partners/\")||path.includes(\"/business-account/banking-features/integrations/\");return isValidSource||isValidMedium||isValidPath;}// \u2705 Show the component if the condition is matched\nexport function withShowOnTrackingMatch(WrappedComponent){return props=>{const[visible,setVisible]=useState(false);useEffect(()=>{setVisible(evaluateTrackingCondition());},[]);const componentStyle={...props.style,display:visible?\"block\":\"none\"};return /*#__PURE__*/_jsx(WrappedComponent,{...props,style:componentStyle});};}// \u274C Hide the component if the condition is matched\nexport function withHideOnTrackingMatch(WrappedComponent){return props=>{const[visible,setVisible]=useState(true);useEffect(()=>{setVisible(!evaluateTrackingCondition());},[]);const componentStyle={...props.style,display:visible?\"block\":\"none\"};return /*#__PURE__*/_jsx(WrappedComponent,{...props,style:componentStyle});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withShowOnTrackingMatch\":{\"type\":\"reactHoc\",\"name\":\"withShowOnTrackingMatch\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideOnTrackingMatch\":{\"type\":\"reactHoc\",\"name\":\"withHideOnTrackingMatch\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ParameterBasedVisibility.map"],
  "mappings": "4GAAAA,IAOiF,SAASC,GAA2B,CAAC,GAAG,OAAO,OAAS,IAAY,MAAO,GAAM,IAAMC,EAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAQC,EAAUD,EAAO,IAAI,YAAY,GAAG,YAAY,EAAQE,EAAUF,EAAO,IAAI,YAAY,GAAG,YAAY,EAAQG,EAAcF,IAAY,UAAUA,IAAY,UAAgBG,EAAcF,IAAY,MAAYG,EAAK,OAAO,SAAS,SAAS,YAAY,EAAQC,EAAYD,EAAK,SAAS,YAAY,GAAGA,EAAK,SAAS,kDAAkD,EAAE,OAAOF,GAAeC,GAAeE,CAAY,CAC9nB,SAASC,EAAwBC,EAAiB,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAK,EAAEC,EAAU,IAAI,CAACF,EAAWZ,EAA0B,CAAC,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMe,EAAe,CAAC,GAAGL,EAAM,MAAM,QAAQC,EAAQ,QAAQ,MAAM,EAAE,OAAoBK,EAAKP,EAAiB,CAAC,GAAGC,EAAM,MAAMK,CAAc,CAAC,CAAE,CAAE,CAC3T,SAASE,EAAwBR,EAAiB,CAAC,OAAOC,GAAO,CAAC,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAI,EAAEC,EAAU,IAAI,CAACF,EAAW,CAACZ,EAA0B,CAAC,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMe,EAAe,CAAC,GAAGL,EAAM,MAAM,QAAQC,EAAQ,QAAQ,MAAM,EAAE,OAAoBK,EAAKP,EAAiB,CAAC,GAAGC,EAAM,MAAMK,CAAc,CAAC,CAAE,CAAE",
  "names": ["init_ssg_sandbox_shims", "evaluateTrackingCondition", "params", "utmSource", "utmMedium", "isValidSource", "isValidMedium", "path", "isValidPath", "withShowOnTrackingMatch", "WrappedComponent", "props", "visible", "setVisible", "ye", "ue", "componentStyle", "p", "withHideOnTrackingMatch"]
}
