{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/JGJHLdRXhaKcj26AnwfP/2ln5c5Dw2kIka2WqBJqw/AppendUTM.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";export function withUTMParams(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=event=>{const button=event.currentTarget;// Find the anchor element inside the button (if any)\nconst anchor=button.tagName===\"A\"?button:button.querySelector(\"a\");if(!anchor||!(anchor instanceof HTMLAnchorElement))return;let 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();}props.onClick?.(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}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\":{\"withAppendUTM\":{\"type\":\"reactHoc\",\"name\":\"withAppendUTM\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AppendUTM\":{\"type\":\"override\",\"name\":\"AppendUTM\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUTMParams\":{\"type\":\"reactHoc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S,EAAUT,CAAK,CAAC,CAAC,EAAI,CAACU,EAAc,YAAY",
  "names": ["init_ssg_sandbox_shims", "withUTMParams", "Component", "Y", "props", "ref", "p", "event", "button", "anchor", "checkoutURL", "urlParams", "separator", "AppendUTM", "withAppendUTM", "C", "re", "DataObserverContext"]
}
