{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/JGJHLdRXhaKcj26AnwfP/DVCWYxG6NtfII3DpbmQY/AppendUTM.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";export function AppendUTM(){return{onClick:event=>{const button=event.currentTarget// General type first\n;// Find the anchor element inside the button (if any)\nconst anchor=button.tagName===\"A\"?button:button.querySelector(\"a\");if(!anchor||!(anchor instanceof HTMLAnchorElement))return;// Skip if no valid link\nlet checkoutURL=anchor.href;if(!checkoutURL)return;const urlParams=new URLSearchParams(window.location.search);if(urlParams.toString()){const separator=checkoutURL.includes(\"?\")?\"&\":\"?\";anchor.href=checkoutURL+separator+urlParams.toString();}}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withAppendUTM(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...AppendUTM(props)});};}withAppendUTM.displayName=\"AppendUTM\";\nexport const __FramerMetadata__ = {\"exports\":{\"AppendUTM\":{\"type\":\"override\",\"name\":\"AppendUTM\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withAppendUTM\":{\"type\":\"reactHoc\",\"name\":\"withAppendUTM\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppendUTM.map"],
  "mappings": "8IAAAA,IAAkD,SAASC,GAAW,CAAC,MAAM,CAAC,QAAQC,GAAO,CAAC,IAAMC,EAAOD,EAAM,cAE3GE,EAAOD,EAAO,UAAU,IAAIA,EAAOA,EAAO,cAAc,GAAG,EAAE,GAAG,CAACC,GAAQ,EAAEA,aAAkB,mBAAmB,OACtH,IAAIC,EAAYD,EAAO,KAAK,GAAG,CAACC,EAAY,OAAO,IAAMC,EAAU,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,GAAGA,EAAU,SAAS,EAAE,CAAC,IAAMC,EAAUF,EAAY,SAAS,GAAG,EAAE,IAAI,IAAID,EAAO,KAAKC,EAAYE,EAAUD,EAAU,SAAS,CAAE,CAAC,CAAC,CAAE,CAA2J,SAASE,EAAcC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGT,EAAUS,CAAK,CAAC,CAAC,EAAI,CAACF,EAAc,YAAY",
  "names": ["init_ssg_sandbox_shims", "AppendUTM", "event", "button", "anchor", "checkoutURL", "urlParams", "separator", "withAppendUTM", "C", "props", "re", "DataObserverContext", "p"]
}
