{"version":3,"file":"UTM_Capture.BTOVnDcI.mjs","names":["React.useMemo","useState","React.useCallback","useState"],"sources":["https:/framerusercontent.com/modules/Bfbysj38qTBSxBs7EWfb/kZ58VaF0Tpx4VhBsEx4P/Multi_Select_Option.js","https:/framerusercontent.com/modules/tI6KOAyEjDj8R8voQ94k/EHN8cywR5sNpOm7juzkL/UTM_Capture.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function CustomCheckbox(props){const{children,name,initialChecked,onValueChange,appearance,animation,style}=props;// Create a unique ID for this checkbox instance\nconst instanceId=React.useMemo(()=>{return`checkbox-${Math.random().toString(36).substr(2,9)}`;},[]);// State to track the checkbox checked state\nconst[isChecked,setIsChecked]=useState(initialChecked);// Prevent double-clicks with a lock\nconst[isLocked,setIsLocked]=useState(false);// Update checked state when initialChecked prop changes\nuseEffect(()=>{console.log(`[${instanceId}] initialChecked changed to: ${initialChecked}`);setIsChecked(initialChecked);},[initialChecked,instanceId]);// Handle checkbox state change with proper locking\nconst handleClick=React.useCallback(()=>{// Only process click if not locked\nif(!isLocked){// Lock immediately to prevent double-clicks\nsetIsLocked(true);// Update state after a short delay\nconst newState=!isChecked;console.log(`[${instanceId}] Setting checked state: ${isChecked} -> ${newState}`);// Use setTimeout to ensure state updates properly\nsetTimeout(()=>{setIsChecked(newState);// Notify parent\nif(onValueChange){console.log(`[${instanceId}] Calling onValueChange with: ${newState}`);onValueChange(newState);}// Unlock after a reasonable delay to prevent rapid clicking\nsetTimeout(()=>{setIsLocked(false);},300);},10);}else{console.log(`[${instanceId}] Click ignored - component is locked`);}},[isChecked,isLocked,instanceId,onValueChange]);// Generate the HTML ID for the checkbox input\nconst inputId=`${name.replace(/\\s+/g,\"-\").toLowerCase()}-${instanceId}`;return /*#__PURE__*/_jsxs(motion.div,{style:{...style,position:\"relative\",cursor:isLocked?\"default\":\"pointer\",borderRadius:appearance.borderRadius,overflow:\"hidden\"},whileTap:isLocked?{}:{scale:animation.tapScale},transition:{duration:animation.transitionDuration},onClick:handleClick,\"data-checkbox-id\":instanceId,\"data-checkbox-name\":name,\"data-checkbox-checked\":isChecked,\"data-checkbox-locked\":isLocked,children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",id:inputId,name:name,checked:isChecked,readOnly:true,style:{position:\"absolute\",opacity:0,width:0,height:0,pointerEvents:\"none\"}}),children,isChecked&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,right:0,bottom:0,borderRadius:appearance.borderRadius,border:`${appearance.selectedBorderWidth}px solid ${appearance.selectedBorderColor}`,background:appearance.selectedBackgroundColor,opacity:appearance.selectedBackgroundOpacity,pointerEvents:\"none\",zIndex:999,boxSizing:\"border-box\"}})]});}// Default properties\nCustomCheckbox.defaultProps={name:\"defaultCheckbox\",initialChecked:false,appearance:{selectedBorderColor:\"#0099FF\",selectedBorderWidth:3,selectedBackgroundColor:\"rgba(0, 153, 255, 0.1)\",selectedBackgroundOpacity:.2,borderRadius:8},animation:{tapScale:.95,transitionDuration:.2}};// Property controls\naddPropertyControls(CustomCheckbox,{// Child elements\nchildren:{type:ControlType.ComponentInstance,title:\"Content\"},// Basic Properties\nname:{type:ControlType.String,title:\"Name\",description:\"Input name for form submission\",defaultValue:\"defaultCheckbox\"},initialChecked:{type:ControlType.Boolean,title:\"Initially Checked\",description:\"Whether this checkbox is initially checked\",defaultValue:false},// Appearance Group\nappearance:{type:ControlType.Object,title:\"Appearance\",controls:{selectedBorderColor:{type:ControlType.Color,title:\"Border Color\",description:\"Border color when selected\",defaultValue:\"#0099FF\"},selectedBorderWidth:{type:ControlType.Number,title:\"Border Width\",description:\"Border thickness when selected\",defaultValue:3,min:0,max:20,step:1,unit:\"px\",displayStepper:true},selectedBackgroundColor:{type:ControlType.Color,title:\"Background Color\",description:\"Background overlay color when selected\",defaultValue:\"rgba(0, 153, 255, 0.1)\"},selectedBackgroundOpacity:{type:ControlType.Number,title:\"Background Opacity\",description:\"Opacity of the background overlay when selected\",defaultValue:.2,min:0,max:1,step:.05,displayStepper:true},borderRadius:{type:ControlType.Number,title:\"Corner Radius\",description:\"Border radius for the wrapper\",defaultValue:8,min:0,max:100,step:1,unit:\"px\",displayStepper:true}}},// Animation Group\nanimation:{type:ControlType.Object,title:\"Animation\",controls:{tapScale:{type:ControlType.Number,title:\"Tap Scale\",description:\"Size scale when clicked/tapped\",defaultValue:.95,min:.5,max:1.5,step:.01,displayStepper:true},transitionDuration:{type:ControlType.Number,title:\"Transition Duration\",description:\"Duration of animations in seconds\",defaultValue:.2,min:0,max:2,step:.1,displayStepper:true}}},// Event handlers\nonValueChange:{type:ControlType.EventHandler,title:\"On Value Change\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomCheckbox\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Multi_Select_Option.map","/**\n * UTM Parameter Extraction Overrides for Framer\n * v2 - Now with Event ID generation for Meta Pixel deduplication\n *\n * These overrides extract UTM parameters from the URL and inject them\n * into hidden input fields. Apply each override to the corresponding\n * hidden input field in your form.\n *\n * Supported parameters:\n * - utm_source\n * - utm_medium\n * - utm_campaign\n * - utm_content\n * - utm_term\n * - utm_id\n * - fbclid (Facebook Click ID)\n * - gclid (Google Click ID)\n * - event_id (Generated unique ID for deduplication)\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";// ============================================\n// Helper Functions\n// ============================================\n// Extract a specific parameter from the URL\nfunction getURLParameter(paramName){if(typeof window===\"undefined\")return\"\";const urlParams=new URLSearchParams(window.location.search);return urlParams.get(paramName)||\"\";}// Generate a unique Event ID for deduplication\n// Format: timestamp + random string (ensures uniqueness)\nfunction generateEventId(){const timestamp=Date.now();const randomPart=Math.random().toString(36).substring(2,15);return`${timestamp}_${randomPart}`;}// Get or create Event ID (persists for the session)\nfunction getOrCreateEventId(){if(typeof window===\"undefined\")return\"\";// Check if we already have one for this page session\nlet eventId=window.sessionStorage.getItem(\"meta_event_id\");if(!eventId){eventId=generateEventId();window.sessionStorage.setItem(\"meta_event_id\",eventId);window.__meta_event_id=eventId;}return eventId;}// Generic override factory - keeps things DRY\nfunction createUTMOverride(paramName){return function UTMOverride(Component){return function WrappedComponent(props){const[paramValue,setParamValue]=useState(\"\");useEffect(()=>{const value=getURLParameter(paramName);setParamValue(value);},[]);return /*#__PURE__*/_jsx(Component,{...props,value:paramValue,defaultValue:paramValue});};};}// ============================================\n// Event ID Override (for deduplication)\n// ============================================\n/**\n * event_id Override\n * Generates and captures a unique Event ID for Meta Pixel deduplication.\n * This same ID is made available to the pixel via window.__meta_event_id\n */export function event_id(Component){return function WrappedComponent(props){const[eventId,setEventId]=useState(\"\");useEffect(()=>{const id=getOrCreateEventId();setEventId(id);},[]);return /*#__PURE__*/_jsx(Component,{...props,value:eventId,defaultValue:eventId});};}// ============================================\n// UTM Parameter Overrides\n// ============================================\n/**\n * utm_source Override\n * Captures the traffic source (e.g., \"meta\", \"google\", \"newsletter\")\n */export function utm_source(Component){return createUTMOverride(\"utm_source\")(Component);}/**\n * utm_medium Override\n * Captures the marketing medium (e.g., \"paid-social\", \"cpc\", \"email\")\n */export function utm_medium(Component){return createUTMOverride(\"utm_medium\")(Component);}/**\n * utm_campaign Override\n * Captures the campaign name\n */export function utm_campaign(Component){return createUTMOverride(\"utm_campaign\")(Component);}/**\n * utm_content Override\n * Captures the ad content identifier\n */export function utm_content(Component){return createUTMOverride(\"utm_content\")(Component);}/**\n * utm_term Override\n * Captures the keyword/targeting term\n */export function utm_term(Component){return createUTMOverride(\"utm_term\")(Component);}/**\n * utm_id Override\n * Captures the campaign ID\n */export function utm_id(Component){return createUTMOverride(\"utm_id\")(Component);}/**\n * fbclid Override\n * Captures Facebook Click ID for conversion tracking\n */export function fbclid(Component){return createUTMOverride(\"fbclid\")(Component);}/**\n * gclid Override\n * Captures Google Click ID for conversion tracking\n */export function gclid(Component){return createUTMOverride(\"gclid\")(Component);}// ============================================\n// Debug Override\n// ============================================\n/**\n * utm_debug Override\n * Apply this to a text element to see all captured parameters\n * Great for testing before you hide everything!\n */export function utm_debug(Component){return function WrappedComponent(props){const[debugInfo,setDebugInfo]=useState(\"Loading UTM data...\");useEffect(()=>{const params={utm_source:getURLParameter(\"utm_source\"),utm_medium:getURLParameter(\"utm_medium\"),utm_campaign:getURLParameter(\"utm_campaign\"),utm_content:getURLParameter(\"utm_content\"),utm_term:getURLParameter(\"utm_term\"),utm_id:getURLParameter(\"utm_id\"),fbclid:getURLParameter(\"fbclid\"),gclid:getURLParameter(\"gclid\"),event_id:getOrCreateEventId()};const formatted=Object.entries(params).map(([key,value])=>`${key}: ${value||\"(empty)\"}`).join(\"\\n\");setDebugInfo(formatted);},[]);return /*#__PURE__*/_jsx(Component,{...props,text:debugInfo});};}/**\n * li_fat_id Override (with persistence)\n */export function li_fat_id(Component){return function WrappedComponent(props){const[value,setValue]=useState(\"\");useEffect(()=>{const fromUrl=getURLParameter(\"li_fat_id\");if(fromUrl){try{localStorage.setItem(\"li_fat_id\",fromUrl);}catch(e){}setValue(fromUrl);}else{try{setValue(localStorage.getItem(\"li_fat_id\")||\"\");}catch(e){}}},[]);return /*#__PURE__*/_jsx(Component,{...props,value:value,defaultValue:value});};}\nexport const __FramerMetadata__ = {\"exports\":{\"utm_medium\":{\"type\":\"reactHoc\",\"name\":\"utm_medium\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"utm_id\":{\"type\":\"reactHoc\",\"name\":\"utm_id\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"utm_term\":{\"type\":\"reactHoc\",\"name\":\"utm_term\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"event_id\":{\"type\":\"reactHoc\",\"name\":\"event_id\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"utm_content\":{\"type\":\"reactHoc\",\"name\":\"utm_content\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"gclid\":{\"type\":\"reactHoc\",\"name\":\"gclid\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"utm_source\":{\"type\":\"reactHoc\",\"name\":\"utm_source\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"utm_campaign\":{\"type\":\"reactHoc\",\"name\":\"utm_campaign\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"li_fat_id\":{\"type\":\"reactHoc\",\"name\":\"li_fat_id\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fbclid\":{\"type\":\"reactHoc\",\"name\":\"fbclid\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"utm_debug\":{\"type\":\"reactHoc\",\"name\":\"utm_debug\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UTM_Capture.map"],"mappings":"sQAGG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,WAAS,OAAK,iBAAe,gBAAc,aAAW,YAAU,SAAO,EACxH,EAAWA,MAAyB,YAAY,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,IAAM,CAAC,CAAC,EAC9F,CAAC,EAAU,GAAcC,EAAS,CAAc,EAChD,CAAC,EAAS,GAAaA,EAAS,EAAK,EAC1C,MAAc,CAAC,QAAQ,IAAI,IAAI,EAAW,+BAA+B,GAAgB,EAAE,EAAa,CAAc,CAAE,EAAE,CAAC,EAAe,CAAU,CAAC,EACrJ,IAAM,EAAYC,MAAsB,CACxC,GAAI,EAKkD,QAAQ,IAAI,IAAI,EAAW,sCAAsC,MAL1G,CACb,EAAY,EAAI,EAChB,IAAM,EAAS,CAAC,EAAU,QAAQ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