{"version":3,"file":"AddInformationHiddenFieldForm.4AwWHuBA.mjs","names":["useState","value","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/Kuwa4LRQnmmppaTnEydr/OyCZglBxLZoJn5latIqw/DataInput.js","https:/framerusercontent.com/modules/Mw4tOp5Nz1bry55HybB2/wzzT63Vjb2NeAomkbwP0/A6adqp79S.js","https:/framerusercontent.com/modules/D38pcjqtV92PgchVtvPE/XIm7DG0CuPEZ0iSKPn8C/AddInformationHiddenFieldForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState}from\"react\";import{HiddenComponentLabel}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */export default function DataInput(props){const{type}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[value,setValue]=useState(\"\");let text=\"\";switch(type){case\"url\":text=\"Current URL\";break;case\"utmTags\":text=\"UTM Tags\";break;case\"urlParameter\":text=`${props.urlParameter} URL Parameter`;break;case\"referrerUrl\":text=\"Referrer URL\";break;}useEffect(()=>{switch(type){case\"url\":setValue(window.location.href);break;case\"utmTags\":const utms={};const queryParams=new URLSearchParams(window.location.search);queryParams.forEach((value,key)=>{// Check if the key starts with 'utm_' (indicating it's a UTM parameter)\nif(key.startsWith(\"utm_\")){utms[key]=value;}});setValue(utms);break;case\"urlParameter\":var _get;setValue((_get=new URLSearchParams(window.location.search).get(props.urlParameter))!==null&&_get!==void 0?_get:\"\");break;case\"referrerUrl\":setValue(document.referrer);break;}},[type,props.urlParameter]);return /*#__PURE__*/_jsx(HiddenComponentLabel,{text:text,subtext:\"Hidden Field\",children:!isCanvas&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"hidden\"},children:type==\"utmTags\"?value?Object.keys(value).map(key=>/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:key,value:value[key],\"data-framerforms-no-prefill\":true})):null:/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:props.name,value:value,\"data-framerforms-no-prefill\":true})})});}DataInput.displayName=\"URL Data Collector\";addPropertyControls(DataInput,{type:{type:ControlType.Enum,options:[\"url\",\"utmTags\",\"referrerUrl\",\"urlParameter\"],optionTitles:[\"Current URL\",\"UTM Tags\",\"Referrer URL\",\"URL Parameter\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},name:{type:ControlType.String,defaultValue:\"Data\",preventLocalization:true,hidden:props=>props.type==\"utmTags\"},urlParameter:{type:ControlType.String,defaultValue:\"\",placeholder:\"Parameter Name\",title:\"URL Param\",preventLocalization:true,hidden:props=>props.type!==\"urlParameter\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DataInput\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (6788454)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={ZezB17w9Y:{hover:true,pressed:true}};const cycleOrder=[\"ZezB17w9Y\",\"qAG70STZO\",\"osJdzTK2J\",\"lBbDW86gI\",\"kAv0x70wU\"];const serializationHash=\"framer-0kP6Q\";const variantClassNames={kAv0x70wU:\"framer-v-op9nv3\",lBbDW86gI:\"framer-v-17rlx3w\",osJdzTK2J:\"framer-v-1u97sfz\",qAG70STZO:\"framer-v-cxni6l\",ZezB17w9Y:\"framer-v-1gvpphi\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:0,delay:0,duration:.2,type:\"spring\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Default:\"ZezB17w9Y\",Disabled:\"osJdzTK2J\",Error:\"kAv0x70wU\",Loading:\"qAG70STZO\",Success:\"lBbDW86gI\"};const getProps=({buttonText,height,id,width,...props})=>{return{...props,mGLfvgcQo:buttonText??props.mGLfvgcQo??\"Submit\",variant:humanReadableVariantMap[props.variant]??props.variant??\"ZezB17w9Y\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,mGLfvgcQo,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"ZezB17w9Y\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapk77nlm=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});setVariant(\"ZezB17w9Y\");});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"qAG70STZO\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"qAG70STZO\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1gvpphi\",className,classNames),\"data-framer-name\":\"Default\",\"data-highlight\":true,\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"ZezB17w9Y\",onTap:onTapk77nlm,ref:refBinding,style:{backgroundColor:\"var(--token-f512b2c0-ccff-4c1c-81ef-5b1a68ff0d48, rgb(28, 28, 28))\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,opacity:1,...style},variants:{\"ZezB17w9Y-hover\":{opacity:1},\"ZezB17w9Y-pressed\":{opacity:1},kAv0x70wU:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1},lBbDW86gI:{opacity:1},osJdzTK2J:{opacity:.5}},...addPropertyOverrides({\"ZezB17w9Y-hover\":{\"data-framer-name\":undefined},\"ZezB17w9Y-pressed\":{\"data-framer-name\":undefined},kAv0x70wU:{\"data-framer-name\":\"Error\"},lBbDW86gI:{\"data-framer-name\":\"Success\"},osJdzTK2J:{\"data-framer-name\":\"Disabled\"},qAG70STZO:{\"data-framer-name\":\"Loading\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7T3V0Zml0LXNlbWlib2xk\",\"--framer-font-family\":'\"Outfit\", \"Outfit Placeholder\", sans-serif',\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Submit\"})}),className:\"framer-c2qoli\",fonts:[\"FS;Outfit-semibold\"],layoutDependency:layoutDependency,layoutId:\"sbyjTaK3b\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:mGLfvgcQo,variants:{kAv0x70wU:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({kAv0x70wU:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})}),fonts:[\"Inter-SemiBold\"],text:undefined},lBbDW86gI:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Thank you\"})}),fonts:[\"Inter-SemiBold\"],text:undefined}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-1draj3q\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"eNOpKSZTE\",style:{borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-17es8v6\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"hXZEEZFhr\",style:{background:\"conic-gradient(from 180deg at 50% 50%, var(--token-bf07c676-db0f-4b55-b722-79ddc73b04fc, rgb(99, 161, 156)) 0deg, var(--token-bf07c676-db0f-4b55-b722-79ddc73b04fc, rgb(99, 161, 156)) 360deg)\",backgroundColor:\"var(--token-bf07c676-db0f-4b55-b722-79ddc73b04fc, rgb(99, 161, 156))\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,mask:\"none\",WebkitMask:\"none\"},variants:{qAG70STZO:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-2n01a\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"uUheFX0S1\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-0kP6Q.framer-f1hfa2, .framer-0kP6Q .framer-f1hfa2 { display: block; }\",\".framer-0kP6Q.framer-1gvpphi { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 46px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 240px; }\",\".framer-0kP6Q .framer-c2qoli { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-0kP6Q .framer-1draj3q { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; will-change: var(--framer-will-change-override, transform); }\",\".framer-0kP6Q .framer-17es8v6 { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-0kP6Q .framer-2n01a { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-0kP6Q.framer-v-cxni6l .framer-17es8v6 { overflow: hidden; will-change: var(--framer-will-change-override, transform); }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 46\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"qAG70STZO\":{\"layout\":[\"fixed\",\"fixed\"]},\"osJdzTK2J\":{\"layout\":[\"fixed\",\"fixed\"]},\"lBbDW86gI\":{\"layout\":[\"fixed\",\"fixed\"]},\"kAv0x70wU\":{\"layout\":[\"fixed\",\"fixed\"]},\"JIFL4dfHK\":{\"layout\":[\"fixed\",\"fixed\"]},\"ruOMBTnLp\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"mGLfvgcQo\":\"buttonText\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerA6adqp79S=withCSS(Component,css,\"framer-0kP6Q\");export default FramerA6adqp79S;FramerA6adqp79S.displayName=\"Submit Button 2\";FramerA6adqp79S.defaultProps={height:46,width:240};addPropertyControls(FramerA6adqp79S,{variant:{options:[\"ZezB17w9Y\",\"qAG70STZO\",\"osJdzTK2J\",\"lBbDW86gI\",\"kAv0x70wU\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum},mGLfvgcQo:{defaultValue:\"Submit\",displayTextArea:false,title:\"Button Text\",type:ControlType.String}});addFonts(FramerA6adqp79S,[{explicitInter:true,fonts:[{cssFamilyName:\"Outfit\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Outfit\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/LLL2G3NRT7NQD2GKJUPGXM7TQ2DC6HXX/PW5PSBLUQB3EYD5A5UFT4XOSWCSQOKTH/P65L7VCWZE3ZYHD2XJZ2WDLQCATH7Y3R.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerA6adqp79S\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerColorSyntax\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"qAG70STZO\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"osJdzTK2J\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"lBbDW86gI\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"kAv0x70wU\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"JIFL4dfHK\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"ruOMBTnLp\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicHeight\":\"46\",\"framerIntrinsicWidth\":\"240\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"mGLfvgcQo\\\":\\\"buttonText\\\"}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./A6adqp79S.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";function getOrCreateCid(){let cid=(localStorage.getItem(\"cc_cid\")||\"\").trim();if(!cid){try{cid=crypto.randomUUID?crypto.randomUUID():\"cid_\"+Date.now()+\"_\"+Math.random().toString(36).slice(2,8);}catch{cid=\"cid_\"+Date.now()+\"_\"+Math.random().toString(36).slice(2,8);}localStorage.setItem(\"cc_cid\",cid);}return cid;}function setHidden(form,name,value){let el=form.querySelector(`input[name=\"${name}\"]`);if(!el){el=document.createElement(\"input\");el.type=\"hidden\";el.name=name;form.appendChild(el);}el.value=String(value);el.setAttribute(\"value\",String(value))// helps if React controls it\n;}/**\n * 1) Attach this override to the hidden input named \"client_id\".\n *    It writes cc_cid into that field (no other side effects).\n */export function HiddenClientId(){useEffect(()=>{try{const cid=getOrCreateCid();const nodes=document.querySelectorAll('input[name=\"client_id\"]');if(!nodes.length)return;nodes.forEach(el=>{const inp=el;inp.value=cid;inp.setAttribute(\"value\",cid);});}catch(e){console.warn(\"[cid] override error\",e);}},[]);return{};}/**\n * 2) Attach this override to the hidden input named \"event_id\".\n *    On submit it:\n *      - generates a fresh event_id (using client_id if available)\n *      - writes it into this field\n *      - pushes the same ID to dataLayer for GTM (cc_form_submit)\n *    It does NOT block or alter the submission.\n */export function HiddenEventId(){useEffect(()=>{const input=document.querySelector('input[name=\"event_id\"]');if(!input)return;const form=input.closest(\"form\");if(!form)return;const onSubmit=()=>{// read client_id from the form (fallback to localStorage, then anon)\nconst cidEl=form.querySelector('input[name=\"client_id\"]');let cid=(cidEl?.value||\"\").trim();if(!cid){try{cid=(localStorage.getItem(\"cc_cid\")||\"\").trim();}catch{}}if(!cid)cid=\"anon\";const eventName=(form.getAttribute(\"data-cc-event\")||\"Lead\").trim();const now=Math.floor(Date.now()/1e3);const eid=`${cid}:${eventName}:${now}`;// a) set this hidden field for the server (n8n/CAPI)\ninput.value=eid;input.setAttribute(\"value\",eid);// Optional helpers if you added these fields:\nconst en=form.querySelector('input[name=\"event_name\"]');if(en)en.value=eventName;const et=form.querySelector('input[name=\"event_time\"]');if(et)et.value=String(now);window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:\"cc_form_submit\",cc_event_name:eventName,cc_event_id:eid,cc_cid:cid});// Do NOT call preventDefault — submit proceeds normally\n};form.addEventListener(\"submit\",onSubmit);return()=>form.removeEventListener(\"submit\",onSubmit);},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withHiddenClientId(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...HiddenClientId(props)});};}withHiddenClientId.displayName=\"HiddenClientId\";export function withHiddenEventId(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...HiddenEventId(props)});};}withHiddenEventId.displayName=\"HiddenEventId\";\nexport const __FramerMetadata__ = {\"exports\":{\"HiddenClientId\":{\"type\":\"override\",\"name\":\"HiddenClientId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHiddenClientId\":{\"type\":\"reactHoc\",\"name\":\"withHiddenClientId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHiddenEventId\":{\"type\":\"reactHoc\",\"name\":\"withHiddenEventId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HiddenEventId\":{\"type\":\"override\",\"name\":\"HiddenEventId\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddInformationHiddenFieldForm.map"],"mappings":"uxBAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,EAAY,EAAS,EAAa,SAAS,GAAG,EAAa,OAAY,CAAC,EAAM,GAAUA,EAAS,GAAG,CAAK,EAAK,GAAG,OAAO,EAAP,CAAa,IAAI,MAAM,EAAK,cAAc,MAAM,IAAI,UAAU,EAAK,WAAW,MAAM,IAAI,eAAe,EAAK,GAAG,EAAM,aAAa,gBAAgB,MAAM,IAAI,cAAc,EAAK,eAAe,MAC5D,OADmE,MAAc,CAAC,OAAO,EAAP,CAAa,IAAI,MAAM,EAAS,EAAO,SAAS,KAAK,CAAC,MAAM,IAAI,UAAU,IAAM,EAAK,EAAE,CAAmB,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAa,SAAS,EAAM,IAAM,CACjjB,EAAI,WAAW,OAAO,GAAE,EAAK,GAAKC,IAAS,CAAC,EAAS,EAAK,CAAC,MAAM,IAAI,eAAwB,EAAe,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAC,IAAI,EAAM,aAAa,EAA6B,GAAG,CAAC,MAAM,IAAI,cAAc,EAAS,SAAS,SAAS,CAAC,QAAS,CAAC,EAAK,EAAM,aAAa,CAAC,CAAqB,EAAK,EAAqB,CAAM,OAAK,QAAQ,eAAe,SAAS,CAAC,GAAuB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,SAAS,CAAC,SAAS,GAAM,UAAU,EAAM,OAAO,KAAK,EAAM,CAAC,IAAI,GAAkB,EAAK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