{"version":3,"file":"PostHogMultiStepTracker.Cf61Q_Fn.mjs","names":["useState","useRef","Image","useState","useRef","useRef","useState","p","useState","useRef","formInfo","state","pageElement","pageHistory","__legacyOverrideHOC_DataObserverContext","_jsx","useRef","useRef","useState","isVisible","label"],"sources":["https:/framerusercontent.com/modules/asydHDts5g0SLLYx4UPp/Qxph0FTG0p4K4zE70bGs/ButtonsInput.js","https:/framerusercontent.com/modules/fPSKMdnAZGIeyDfLV8KP/n9X07y9vIPbQSgbJ1CwN/MultiStepFormButton.js","https:/framerusercontent.com/modules/v1b335RPU7KtR6IJZaOk/KsHqejMn0YuzkmdNJsNz/FormProgressBar.js","https:/framerusercontent.com/modules/wV9SghwspjN8vk1MgoSi/tJEaS4WTqhEc4L6k0Sqo/MultiStepForm.js","https:/framerusercontent.com/modules/766cjfxmJr62AdgYMFS0/0BgtN8qtlkWTwXHAWzfW/CalNew.js","https:/framerusercontent.com/modules/SKmcgp5WQGpyThRtb19K/gOlz7A1CfhbvFSK8CRS7/PostHogMultiStepSubmitTracker.js","https:/framerusercontent.com/modules/EzzE640E5Cb8R1f5ctiX/eR0YXaguOvljpJtayBid/PostHogMultiStepTracker.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,Image}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{motion}from\"framer-motion\";import{Border,createBackground,fillProp,borderProp,shadowsProp,useInstanceId,HiddenInput,useMultiStepFormStore,getFormInfo}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerDisableUnlink\n */export default function ButtonsInput(props){const{clickAction,options,textOptions,imageOptions,layout,border,shadows,valueSeparator}=props;const id=useInstanceId();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const multiSelect=clickAction===\"nextPage\"?false:props.multiSelect;const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const[value,setValue]=useState([]);const[invalid,setInvalid]=useState(false);const[nextPageQueued,setNextPageQueued]=useState(false);const[formId,setFormId]=useState(null);const ref=useRef(null);const state=multiStepFormState[formId];useEffect(()=>{const newFormId=getFormInfo(ref.current).formId;if(!multiStepFormState[newFormId]){setMultiStepFormState({});}setFormId(newFormId);},[]);useEffect(()=>{if(invalid){props.invalidEvent?.();}},[invalid]);useEffect(()=>{if(nextPageQueued){state?.nextPage?.();setNextPageQueued(false);}},[nextPageQueued]);function onSetValueEvent(event){setValue(multiSelect?event.detail.split(valueSeparator):[event.detail]);}const imageStyle={position:\"relative\",width:\"100%\",height:\"auto\",aspectRatio:imageOptions.aspectRatioMode==\"fixed\"?imageOptions.aspectRatio:undefined,borderRadius:imageOptions.radius,pointerEvents:\"none\",userSelect:\"none\",objectFit:\"cover\"};const rows=[];for(let i=0;i<options.length;i++){const option=options[i];const selected=multiSelect?value.includes(option.value):value.length===1&&value[0]===option.value;if(i%layout.columns==0){rows.push([]);}let layoutProps={};if(options.length%layout.columns==0||options.length-i>=layout.columns){layoutProps={flex:1};}else{layoutProps={flexBasis:`calc(${100/layout.columns}% - ${layout.gapH*(1-1/layout.columns)}px)`};}const color=invalid&&textOptions?.colorInvalid||(selected?textOptions?.colorOn:textOptions?.colorOff);const boxShadow=invalid&&shadows?.invalid||(selected?shadows?.on:shadows?.off);const borderColor=invalid&&border?.colorInvalid||(selected?border?.colorOn:border?.colorOff);const onClick=()=>{if(multiSelect){setValue(selected?value.filter(v=>v!==option.value):[...value,option.value]);}else{setValue(selected?[]:[option.value]);}setInvalid(false);if(clickAction==\"nextPage\"){setNextPageQueued(true);}};rows[rows.length-1].push(/*#__PURE__*/_jsxs(motion.button,{type:\"button\",onClick:onClick,onKeyDown:event=>{if(event.key===\"Enter\"){onClick();}},onFocus:()=>{props.focusEvent?.();if(invalid){setInvalid(false);}},onBlur:props.blurEvent,whileFocus:{...createBackground(props.fill,null,true,invalid),color:textOptions?.colorFocus||color,boxShadow:shadows?.focus||boxShadow,borderColor:border?.colorFocus||borderColor},animate:{...createBackground(props.fill,selected,false,invalid),color,boxShadow,borderColor},style:{position:\"relative\",display:\"flex\",flexDirection:textOptions?.location==\"bottom\"?\"column-reverse\":\"column\",gap:textOptions?.gap??0,padding:props.padding,borderRadius:props.radius,cursor:\"pointer\",overflow:\"hidden\",outline:\"none\",border:\"none\",backdropFilter:props.bgBlur?`blur(${props.bgBlur}px)`:undefined,...textOptions.font,...layoutProps},initial:false,transition:props.transition,children:[textOptions&&/*#__PURE__*/_jsx(\"span\",{style:{minHeight:\"1lh\",width:\"100%\"},children:option.title}),option.image&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",flex:1,display:\"flex\",alignItems:imageOptions.alignV},children:isCanvas?/*#__PURE__*/_jsx(\"img\",{src:option.image.src,alt:option.image.alt||option.title||option.value,style:imageStyle}):/*#__PURE__*/_jsx(Image,{className:`${id}-image`,background:{fit:\"fill\",...option.image,alt:option.image.alt||option.title||option.value},style:imageStyle})}),border&&/*#__PURE__*/_jsx(Border,{...border,transition:props.transition})]},option.value));}return /*#__PURE__*/_jsxs(\"div\",{\"data-framerforms\":true,\"data-framerforms-type\":\"buttons\",ref:ref,style:{display:\"flex\",flexDirection:\"column\",gap:layout.gapV,flex:1,userSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",style:{display:\"none\"}}),/*#__PURE__*/_jsx(HiddenInput,{name:props.name,required:props.required,value:value.join(valueSeparator),setInvalid:setInvalid,onSetValueEvent:onSetValueEvent}),rows.map((items,index)=>/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"row\",gap:layout.gapH,width:\"100%\",alignItems:layout.height==\"fill\"?\"stretch\":layout.alignV,justifyContent:layout.alignH},children:items})),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`.${id}-image > div {\n                        position: relative !important;\n                        ${imageOptions.aspectRatioMode==\"fixed\"?\"height: 100%;\":\"\"}\n                    }`}})]});}ButtonsInput.displayName=\"Buttons Input\";addPropertyControls(ButtonsInput,{name:{type:ControlType.String,defaultValue:\"Buttons\",placeholder:\"Name\",preventLocalization:true},required:{type:ControlType.Boolean,defaultValue:false},clickAction:{type:ControlType.Enum,defaultValue:\"select\",options:[\"select\",\"nextPage\"],optionTitles:[\"Select\",\"Go To Next Page\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},multiSelect:{type:ControlType.Boolean,defaultValue:false,title:\"Multi-Select\",hidden:props=>props.clickAction!==\"select\"},valueSeparator:{type:ControlType.String,defaultValue:\", \",hidden:props=>!props.multiSelect||props.clickAction!==\"select\"},options:{type:ControlType.Array,defaultValue:[{value:\"Option1\",title:\"Option 1\"},{value:\"Option2\",title:\"Option 2\"},{value:\"Option3\",title:\"Option 3\"}],control:{type:ControlType.Object,controls:{value:{type:ControlType.String,defaultValue:\"\",preventLocalization:true},title:{type:ControlType.String,defaultValue:\"\"},image:{type:ControlType.ResponsiveImage}}}},layout:{type:ControlType.Object,controls:{columns:{type:ControlType.Number,defaultValue:3,min:1,step:1,displayStepper:true},height:{type:ControlType.Enum,defaultValue:\"fit\",options:[\"fit\",\"fill\"],optionTitles:[\"Fit\",\"Fill\"],displaySegmentedControl:true,hidden:props=>props.columns==1},alignH:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.columns==1},alignV:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],displaySegmentedControl:true,title:\" \",hidden:props=>props.columns==1||props.height==\"fill\"},gapH:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.columns==1},gapV:{type:ControlType.Number,defaultValue:10,min:0,step:1}}},textOptions:{type:ControlType.Object,optional:true,title:\"Text\",defaultValue:{location:\"top\",gap:10},controls:{location:{type:ControlType.Enum,defaultValue:\"top\",options:[\"top\",\"bottom\"],optionTitles:[\"Top\",\"Bottom\"],displaySegmentedControl:true},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:12,lineHeight:1,textAlign:\"center\"}},colorOn:{type:ControlType.Color,defaultValue:\"#0099FF\"},colorOff:{type:ControlType.Color,defaultValue:\"#999\"},colorFocus:{type:ControlType.Color,optional:true,title:\"Focus\"},colorInvalid:{type:ControlType.Color,optional:true,title:\"Invalid\"}}},imageOptions:{type:ControlType.Object,title:\"Images\",controls:{aspectRatioMode:{type:ControlType.Enum,defaultValue:\"auto\",options:[\"auto\",\"fixed\"],optionTitles:[\"Auto\",\"Fixed\"],displaySegmentedControl:true,title:\"Aspect Ratio\"},aspectRatio:{type:ControlType.String,defaultValue:\"1 / 1\",placeholder:\"Width / Height\",title:\" \",preventLocalization:true,hidden:props=>props.aspectRatioMode!=\"fixed\"},alignV:{type:ControlType.Enum,defaultValue:\"center\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Top\",\"Center\",\"Bottom\"],optionIcons:[\"align-top\",\"align-middle\",\"align-bottom\"],displaySegmentedControl:true,title:\"Align\",hidden:props=>props.aspectRatioMode!=\"auto\"},radius:{type:ControlType.BorderRadius,defaultValue:\"0px\"}}},fill:fillProp({onOff:true,invalid:true}),radius:{type:ControlType.BorderRadius,defaultValue:\"10px\"},padding:{type:ControlType.Padding,defaultValue:\"10px\"},border:borderProp({onOff:true,invalid:true}),shadows:shadowsProp(),bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"},transition:{type:ControlType.Transition,defaultValue:{type:\"spring\",stiffness:1500,damping:70}},focusEvent:{type:ControlType.EventHandler,title:\"Focus\"},blurEvent:{type:ControlType.EventHandler,title:\"Blur\"},invalidEvent:{type:ControlType.EventHandler,title:\"Invalid\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ButtonsInput\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonsInput.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState,useRef,cloneElement}from\"react\";import{motion}from\"framer-motion\";import{borderProp,fillProp,createBackground,Border,HideElement,useMultiStepFormStore,getFormInfo}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";const CANVAS_HIDDEN_CLASS_NAME=\"framerforms-canvas-hidden\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function MultiStepFormButton(props){const prev=props.page==\"previous\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;const isOptimizing=typeof window===\"undefined\";const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const[formId,setFormId]=useState(null);const ref=useRef(null);const state=multiStepFormState[formId];useEffect(()=>{const newFormId=getFormInfo(ref.current).formId;if(!multiStepFormState[newFormId]){setMultiStepFormState({});}setFormId(newFormId);},[]);let hidden=false;if(isOptimizing||!state){hidden=prev;}else if(state?.pageHistory){const page=state.pageHistory[state.pageHistory.length-1];if(prev){hidden=page===0;}else{hidden=state.isEndPage;}}if(hidden&&!isCanvas){return /*#__PURE__*/_jsx(HideElement,{ref:ref});}function onClick(){if(state){if(prev){state.previousPage();}else{state.nextPage();}}props.click?.();}if(props.appearance==\"custom\"){let layer=props.customLayer?.[0];const width=props.style?.width;const height=props.style?.height;if(layer&&props.style&&(width||height)){layer=/*#__PURE__*/cloneElement(layer,{style:{...layer.props.style,...width&&{width:width},...height&&{height:height}}});}return /*#__PURE__*/_jsx(\"button\",{ref:ref,type:\"button\",style:{display:\"contents\"},onClick:onClick,onMouseEnter:props.hover,children:layer});}return /*#__PURE__*/_jsxs(motion.button,{\"data-framerforms\":true,ref:ref,type:\"button\",onClick:onClick,onMouseEnter:props.hover,className:hidden&&isCanvas?CANVAS_HIDDEN_CLASS_NAME:\"\",whileFocus:{...createBackground(props.fill,null,true),borderColor:props.border?.colorFocus??props.border?.color},style:{position:\"relative\",display:\"flex\",justifyContent:props.font?.textAlign||\"center\",alignItems:\"center\",...createBackground(props.fill),border:\"none\",color:props.color,padding:props.padding,borderRadius:props.radius,userSelect:\"none\",cursor:\"pointer\",textWrap:props.style?.width==\"100%\"?undefined:\"nowrap\",boxShadow:props.shadows,borderColor:props.border?.color,backdropFilter:props.bgBlur?`blur(${props.bgBlur}px)`:undefined,...props.font,...props.style},transition:props.transition,children:[props.text,/*#__PURE__*/_jsx(Border,{...props.border}),hidden&&isCanvas&&/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                        [data-framer-component-container=\"true\"] div:has(> .${CANVAS_HIDDEN_CLASS_NAME}) {\n                            display: none !important;\n                        }`}})]});}MultiStepFormButton.displayName=\"Multi-Step Form Button\";addPropertyControls(MultiStepFormButton,{page:{type:ControlType.Enum,defaultValue:\"next\",options:[\"previous\",\"next\"],optionTitles:[\"Previous\",\"Next\"],displaySegmentedControl:true},autoHide:{type:ControlType.Boolean,defaultValue:true,title:\"Auto-Hide\",description:\"Hide on first/last page\"},appearance:{type:ControlType.Enum,defaultValue:\"default\",options:[\"default\",\"custom\"],optionTitles:[\"Default\",\"Custom\"],displaySegmentedControl:true},customLayer:{type:ControlType.ComponentInstance,title:\"Layer\",description:\"Connect a custom layer outside the breakpoint\",hidden:props=>props.appearance!==\"custom\"},text:{type:ControlType.String,defaultValue:\"Next\",hidden:props=>props.appearance!==\"default\"},fill:fillProp({focus:true,invalid:false,color:\"#333\",colorA:\"#8C8C8C\",colorB:\"#000\",hidden:props=>props.appearance!==\"default\"}),color:{type:ControlType.Color,defaultValue:\"#FFF\",hidden:props=>props.appearance!==\"default\"},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.2},hidden:props=>props.appearance!==\"default\"},padding:{type:ControlType.Padding,defaultValue:\"10px 16px 10px 16px\",hidden:props=>props.appearance!==\"default\"},radius:{type:ControlType.BorderRadius,defaultValue:\"10px\",hidden:props=>props.appearance!==\"default\"},border:borderProp({focus:true,color:\"#0099FF00\",hidden:props=>props.appearance!==\"default\"}),shadows:{type:ControlType.BoxShadow,hidden:props=>props.appearance!==\"default\"},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\",hidden:props=>props.appearance!==\"default\"},transition:{type:ControlType.Transition,defaultValue:{type:false},hidden:props=>props.appearance!==\"default\"},click:{type:ControlType.EventHandler},hover:{type:ControlType.EventHandler}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MultiStepFormButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MultiStepFormButton.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState,useRef}from\"react\";import{motion}from\"framer-motion\";import{useMultiStepFormStore,useCanvasState,getFormInfo}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 10\n * @framerDisableUnlink\n */export default function FormProgressBar(props){const{fill,align}=props;const isVertical=props.direction==\"vertical\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=useRef(null);const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const canvasState=useCanvasState(ref);const[formId,setFormId]=useState(null);const state=isCanvas?canvasState:multiStepFormState[formId];const[percent,setPercent]=useState(0);const prevPercentRef=useRef(0);useEffect(()=>{const newFormId=getFormInfo(ref.current).formId;setFormId(newFormId);if(!multiStepFormState[newFormId]){setMultiStepFormState({});}},[]);useEffect(()=>{if(state){setPercent(Math.max(state.pageHistory?.length,0)/state.totalPages);}},[state]);useEffect(()=>{prevPercentRef.current=percent;},[percent]);const p=isCanvas?props.previewPercent/100:percent;return /*#__PURE__*/_jsx(\"div\",{\"data-framerforms\":true,ref:ref,style:{display:\"flex\",flexDirection:props.direction==\"horizontal\"?\"row\":\"column\",justifyContent:align,borderRadius:props.radius,backgroundColor:props.background,boxShadow:props.shadows,backdropFilter:props.bgBlur?`blur(${props.bgBlur}px)`:undefined,overflow:\"hidden\",...props.style},children:/*#__PURE__*/_jsx(motion.div,{initial:false,transition:prevPercentRef.current===0?{type:false,duration:0}:props.transition,animate:{width:isVertical?\"100%\":`${p*100}%`,height:isVertical?`${p*100}%`:\"100%\",background:fill.type==\"color\"?fill.color:`linear-gradient(to ${isVertical?\"bottom\":\"right\"}, ${fill.colorA} ${props.fill.gradientScaled?0:align==\"center\"?50+-50/p:align==\"flex-end\"?-100/p+100:0}%, ${fill.colorB} ${props.fill.gradientScaled?100:align==\"center\"?50+50/p:align==\"flex-start\"?100/p:100}%)`},style:{borderRadius:props.innerRadius?props.radius:0}})});}FormProgressBar.displayName=\"Form Progress Bar\";addPropertyControls(FormProgressBar,{fill:{type:ControlType.Object,icon:\"color\",defaultValue:{type:\"color\",color:\"#0099FF\",colorA:\"#91C5FF\",colorB:\"#0099FF\"},controls:{type:{type:ControlType.Enum,options:[\"color\",\"linearGradient\"],optionTitles:[\"Color\",\"Gradient\"],displaySegmentedControl:true},color:{type:ControlType.Color,defaultValue:\"#0099FF\",hidden:props=>props.type!==\"color\"},colorA:{type:ControlType.Color,defaultValue:\"#91C5FF\",title:\"Colors\",hidden:props=>props.type!==\"linearGradient\"},colorB:{type:ControlType.Color,defaultValue:\"#0099FF\",title:\" \",hidden:props=>props.type!==\"linearGradient\"},gradientScaled:{type:ControlType.Boolean,defaultValue:false,title:\"Scaled\",hidden:props=>props.type!==\"linearGradient\"}}},background:{type:ControlType.Color,defaultValue:\"rgba(187, 187, 187, 0.15)\",optional:true},previewPercent:{type:ControlType.Number,defaultValue:75,min:0,max:100,step:1,unit:\"%\",title:\"Preview\"},direction:{type:ControlType.Enum,defaultValue:\"horizontal\",options:[\"horizontal\",\"vertical\"],displaySegmentedControl:true},align:{type:ControlType.Enum,defaultValue:\"flex-start\",options:[\"flex-start\",\"center\",\"flex-end\"],// @ts-ignore\noptionIcons:{direction:{horizontal:[\"align-left\",\"align-center\",\"align-right\"],vertical:[\"align-top\",\"align-middle\",\"align-bottom\"]}},displaySegmentedControl:true},radius:{type:ControlType.BorderRadius,defaultValue:\"5px\"},innerRadius:{type:ControlType.Boolean,defaultValue:true},shadows:{type:ControlType.BoxShadow},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"},transition:{type:ControlType.Transition,defaultValue:{type:\"spring\",damping:60,delay:0,duration:.3,mass:1,stiffness:800}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormProgressBar\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"10\",\"framerIntrinsicWidth\":\"400\",\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormProgressBar.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{useInstanceId,HiddenComponentLabel,useMultiStepFormStore,getFormInfo,isAncestor}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";const OPTIMIZATION_CLASS_NAME=\"framerforms-multi-step-form\";const SUBMIT_BUTTON_HIDDEN_ATTRIBUTE=\"framerforms-submit-button-hidden\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */function MultiStepFormComponent(props){const{scrollToTop}=props;const id=useInstanceId();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[multiStepFormState,setMultiStepFormState]=useMultiStepFormStore();const[formInfo,setFormInfo]=useState(null);const stateRef=useRef(multiStepFormState[formInfo?.formId]);const ref=useRef(null);const pageVideosRef=useRef({});const isFirstRenderRef=useRef(true);const[initialized,setInitialized]=useState(false);const state=multiStepFormState[formInfo?.formId];const pageHistory=state?.pageHistory;useEffect(()=>{const formInfo=getFormInfo(ref.current);setFormInfo(formInfo);const{formId,form,pages}=formInfo;function previousPage(){const pageHistory=stateRef.current?.pageHistory;if(pageHistory?.length>1){setMultiStepFormState(prev=>({[formId]:{...prev[formId],pageHistory:prev[formId].pageHistory.slice(0,-1),isEndPage:false}}));}}function nextPage(){const state=stateRef.current;if(state){const page=state.pageHistory[state.pageHistory.length-1];const{logicConfigs}=state;let newPage=null;if(logicConfigs.length&&pages){const pageElement=pages.children?.[page];for(const logic of logicConfigs){if(isAncestor(pageElement,logic.ref.current)){const nextPageName=logic.getNextPage();if(nextPageName){const nextPageIndex=getChildIndexByDataFramerName(pages,nextPageName);if(nextPageIndex!==-1){newPage=nextPageIndex;}break;}}}}if(newPage===null&&page<state.totalPages-1){newPage=page+1;}const pageElement=pages.children[page];if(pageElement&&!isFormValid(pageElement)){newPage=null;}if(newPage){setMultiStepFormState(prev=>{const prevState=prev[formId];return{[formId]:{...prevState,pageHistory:[...prevState.pageHistory,newPage],isEndPage:isPageAnEndPage(newPage,prevState,pages,props.endPage,props.endPageCustom)}};});}}}function setPageHistoryLength(newLength){setMultiStepFormState(prev=>{const pageHistory=prev[formId]?.pageHistory??[];return{[formId]:{...prev[formId],pageHistory:newLength>=pageHistory.length?pageHistory:pageHistory.slice(0,newLength),isEndPage:isPageAnEndPage(pageHistory[newLength-1],prev[formId],pages,props.endPage,props.endPageCustom)}};});}if(formId&&pages){setMultiStepFormState({[formId]:{totalPages:pages.children.length,pageHistory:[0],logicConfigs:[],isEndPage:pages.children.length==1,previousPage,nextPage,setPageHistoryLength}});}if(pages){const pageElements=pages.children;for(let i=0;i<pageElements.length;i++){const videos=pageElements[i].querySelectorAll(\"video\");if(!pageVideosRef.current[i]){pageVideosRef.current[i]=[];}for(const video of videos){pageVideosRef.current[i].push(video);if(video.hasAttribute(\"autoplay\")&&i!==0){const pauseVideo=()=>{if(!video.paused){setTimeout(()=>{if(!video.paused){video.pause();}},100)// 100 milliseconds = 0.1 seconds\n;}};if(!video.paused){// Video is already playing, pause it immediately\npauseVideo();}else{// Wait for the video to start playing, then pause it\nvideo.addEventListener(\"play\",pauseVideo,{once:true});}}}}}let unmountFunction=null;if(form){function onEnterPress(event){if(event.key!==\"Enter\"||event.target.tagName===\"TEXTAREA\"){return;}const currentInput=event.target;let previousElement=currentInput;let foundPage=false;while(previousElement&&!foundPage){const newElement=previousElement.parentElement;if(newElement==pages){foundPage=true;break;}previousElement=newElement;}const currentPage=previousElement;let stopEvent=true;if(currentPage){const inputs=getInputsOnPage(currentPage);const currentIndex=inputs.indexOf(currentInput);if(currentIndex<inputs.length-1){// Focus the next input on the current page\ninputs[currentIndex+1].focus();}else{const pageElements=Array.from(pages.children);const pageIndex=pageElements.indexOf(currentPage);if(pageIndex<pageElements.length-1){nextPage();}else{// Let the form submit if it's the last page\nstopEvent=false;}}}if(stopEvent){event.preventDefault();event.stopPropagation();}}// Override Enter key press event\nform.addEventListener(\"keydown\",onEnterPress,true);unmountFunction=()=>{form.removeEventListener(\"keydown\",onEnterPress,true);};}if(unmountFunction){return unmountFunction;}},[]);useEffect(()=>{stateRef.current=state;},[state]);useEffect(()=>{if(state&&(!isCanvas||ref.current?.closest('[data-framer-component-container=\"true\"]'))){const submitButton=formInfo.form?.querySelector('button[type=\"submit\"]')?.parentElement;if(submitButton){submitButton.setAttribute(SUBMIT_BUTTON_HIDDEN_ATTRIBUTE,state.isEndPage?\"false\":\"true\");}}},[state?.isEndPage]);useEffect(()=>{const pages=formInfo?.pages;if(pages&&pageHistory){// Enable/disable form inputs on pages that have not been visited for submit validation\nif(state?.logicConfigs?.length||props.endPage==\"customPages\"){for(let i=0;i<pages.children.length;i++){if(pageHistory.includes(i)){const inputs=pages.children[i]?.querySelectorAll(`input[name][disabled=\"FramerForms\"], select[name][disabled=\"FramerForms\"], textarea[name][disabled=\"FramerForms\"]`);for(const input of inputs){input.removeAttribute(\"disabled\");}}else{const inputs=pages.children[i]?.querySelectorAll(\"input[name]:not([disabled]), select[name]:not([disabled]), textarea[name]:not([disabled])\");for(const input of inputs){input.setAttribute(\"disabled\",\"FramerForms\");}}}}// Play/pause videos on form pages\nconst currentPage=pageHistory[pageHistory.length-1];if(pageVideosRef.current){for(const pageIndex of Object.keys(pageVideosRef.current)){const pageVideos=pageVideosRef.current[pageIndex];for(const video of pageVideos){if(pageIndex==currentPage){if(video.hasAttribute(\"autoplay\")){video.play();}}else if(!video.paused){video.pause();}}}}// Scroll to top of form\nif(scrollToTop&&formInfo.form&&!isFirstRenderRef.current){const rect=formInfo.form.getBoundingClientRect();const top=rect.top-scrollToTop.offset;const topIsInView=top>=0&&top<=window.innerHeight;if(!topIsInView){const windowScrollTop=window.pageYOffset||document.documentElement.scrollTop;window.scrollTo({top:windowScrollTop+top,behavior:scrollToTop.scrollStyle});}}if(!isFirstRenderRef.current){autoFocusInputOnPage(pages.children[currentPage]);}isFirstRenderRef.current=false;}fireAnalyticsEvent(props.analytics,pageHistory,formInfo?.pages);},[pageHistory]);useEffect(()=>{setInitialized(true);},[]);return /*#__PURE__*/_jsxs(HiddenComponentLabel,{text:\"Multi-Step Form\",children:[/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 452 60\",width:\"121\",height:\"16\",style:{marginBottom:5},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M 58.178 27.448 L 58.178 0.912 L 33.172 0.912 C 14.852 0.912 0 15.76 0 34.08 L 0 59.086 L 58.178 59.086 L 58.178 27.46 C 58.172 44.93 44.008 59.09 26.538 59.09 L 26.538 27.45 L 58.178 27.45 Z\",fill:\"#473DFE\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M 452.004 36.088 C 452.004 43.208 446.328 47.872 437.336 47.872 C 428.342 47.872 422.57 43.112 421.946 35.464 L 431.132 35.464 C 431.228 38.734 433.392 40.802 437.142 40.802 C 440.268 40.802 442.336 39.6 442.336 37.436 C 442.336 35.944 440.846 34.838 438.826 34.454 L 432.526 33.252 C 426.996 32.192 423.34 28.972 423.34 23.392 C 423.34 16.948 429.016 12.426 436.758 12.426 C 444.982 12.426 450.898 17.14 451.426 24.594 L 442.24 24.594 C 442 21.468 439.884 19.448 436.854 19.448 C 434.162 19.448 432.526 20.892 432.526 22.768 C 432.526 24.306 434.064 25.22 435.892 25.556 L 442.578 26.856 C 448.734 28.056 452.004 31.086 452.004 36.088 Z M 395.384 47.39 L 387.978 27.48 L 387.978 47.39 L 379.754 47.39 L 379.754 12.86 L 390.478 12.86 L 399.184 36.28 L 407.84 12.86 L 418.566 12.86 L 418.566 47.39 L 410.342 47.39 L 410.342 27.24 L 402.886 47.39 Z M 355.758 47.39 L 346.668 47.39 L 346.668 12.86 L 360.808 12.86 C 370.138 12.86 375.476 17.044 375.476 24.402 C 375.476 28.826 372.83 32.482 368.166 34.454 L 376.63 47.39 L 365.81 47.39 L 358.74 35.896 L 355.758 35.896 Z M 355.758 20.362 L 355.758 28.394 L 360.422 28.394 C 364.462 28.394 366.338 27.144 366.338 24.402 C 366.338 21.662 364.462 20.362 360.422 20.362 Z M 325.08 48.112 C 315.124 48.112 307.286 40.562 307.286 30.076 C 307.286 19.592 315.124 12.138 325.08 12.138 C 335.084 12.138 342.922 19.592 342.922 30.078 C 342.922 40.562 335.084 48.112 325.08 48.112 Z M 325.08 39.984 C 330.514 39.984 333.544 35.512 333.544 30.076 C 333.544 24.642 330.514 20.266 325.08 20.266 C 319.646 20.266 316.616 24.642 316.616 30.078 C 316.616 35.512 319.646 39.984 325.08 39.984 Z M 291.034 47.39 L 281.946 47.39 L 281.946 12.86 L 305.462 12.86 L 305.462 20.748 L 291.034 20.748 L 291.034 27.144 L 303.106 27.144 L 303.106 35.032 L 291.034 35.032 L 291.034 47.392 Z M 257.946 47.39 L 248.856 47.39 L 248.856 12.86 L 262.994 12.86 C 272.326 12.86 277.664 17.044 277.664 24.402 C 277.664 28.826 275.018 32.482 270.354 34.454 L 278.818 47.39 L 267.996 47.39 L 260.926 35.896 L 257.946 35.896 Z M 257.946 20.362 L 257.946 28.394 L 262.61 28.394 C 266.65 28.394 268.526 27.144 268.526 24.402 C 268.526 21.662 266.65 20.362 262.61 20.362 Z M 244.616 39.504 L 244.616 47.392 L 220.184 47.392 L 220.184 12.86 L 244.278 12.86 L 244.278 20.748 L 229.274 20.748 L 229.274 25.7 L 242.884 25.7 L 242.884 33.588 L 229.274 33.588 L 229.274 39.504 Z M 191.216 47.39 L 183.81 27.48 L 183.81 47.39 L 175.586 47.39 L 175.586 12.86 L 186.31 12.86 L 195.016 36.28 L 203.672 12.86 L 214.398 12.86 L 214.398 47.39 L 206.174 47.39 L 206.174 27.24 L 198.718 47.39 L 191.218 47.39 Z M 163.08 47.39 L 160.966 40.994 L 148.846 40.994 L 146.682 47.39 L 137.496 47.39 L 150.288 12.86 L 160.244 12.86 L 172.892 47.39 L 163.082 47.39 Z M 155.002 22.864 L 151.298 33.828 L 158.61 33.828 L 155 22.864 Z M 116.574 47.39 L 107.484 47.39 L 107.484 12.86 L 121.624 12.86 C 130.954 12.86 136.292 17.044 136.292 24.402 C 136.292 28.826 133.648 32.482 128.982 34.454 L 137.446 47.39 L 126.626 47.39 L 119.556 35.896 L 116.574 35.896 Z M 116.574 20.362 L 116.574 28.394 L 121.24 28.394 C 125.28 28.394 127.154 27.144 127.154 24.402 C 127.154 21.662 125.278 20.362 121.24 20.362 Z M 89.214 47.39 L 80.126 47.39 L 80.126 12.86 L 103.64 12.86 L 103.64 20.748 L 89.212 20.748 L 89.212 27.144 L 101.284 27.144 L 101.284 35.032 L 89.212 35.032 L 89.212 47.392 Z\",fill:\"#999\"})]}),/*#__PURE__*/_jsxs(\"div\",{ref:ref,id:id,\"data-framerforms-multi-step-form\":true,className:!initialized&&!isCanvas?OPTIMIZATION_CLASS_NAME:\"\",style:{display:\"none\"},children:[initialized&&!isCanvas&&/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`form[framerforms-id=\"${formInfo?.formId}\"] > [data-framer-name=\"Pages\" i] > *:not(:nth-child(${pageHistory?pageHistory[pageHistory.length-1]+1:1})) { display: none; }`}}),isCanvas&&/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`[data-framer-component-container=\"true\"] form[framerforms-id=\"${formInfo?.formId}\"] > [data-framer-name=\"Pages\" i] > *:not(:first-child) { display: none; }`}})]})]});}const MultiStepForm=withCSS(MultiStepFormComponent,[`form:has(.${OPTIMIZATION_CLASS_NAME}) > [data-framer-name=\"Pages\" i] > *:not(:first-child) { display: none; }`,`form:has(.${OPTIMIZATION_CLASS_NAME}) div:has(> button[type=\"submit\"]) { display: none; }`,`[${SUBMIT_BUTTON_HIDDEN_ATTRIBUTE}=\"true\"] { display: none; }`],OPTIMIZATION_CLASS_NAME);export default MultiStepForm;MultiStepForm.displayName=\"Multi-Step Form\";addPropertyControls(MultiStepForm,{endPage:{type:ControlType.Enum,defaultValue:\"lastPage\",options:[\"lastPage\",\"customPages\"],optionTitles:[\"Last Page\",\"Custom Pages\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},endPageCustom:{type:ControlType.Array,control:{type:ControlType.String,defaultValue:\"\",placeholder:\"Page Layer Name\",preventLocalization:true},title:\"Pages\",description:\"List of page names where the submit button is shown\",hidden:props=>props.endPage!==\"customPages\"},analytics:{type:ControlType.Object,optional:true,icon:\"interaction\",controls:{platform:{type:ControlType.Enum,options:[\"googleAnalytics\"],optionTitles:[\"Google Analytics 4\"]},googleAnalyticsEventName:{type:ControlType.String,placeholder:\"Event Name\",title:\"Event Name\",preventLocalization:true,hidden:props=>props.platform!==\"googleAnalytics\"},googleAnalyticsEventCategory:{type:ControlType.String,placeholder:\"Optional\",title:\"Category\",description:\"Make sure the Google Analytics 4 script is installed\",preventLocalization:true,hidden:props=>props.platform!==\"googleAnalytics\"}}},scrollToTop:{type:ControlType.Object,optional:true,title:\"Scroll to Top\",controls:{scrollStyle:{type:ControlType.Enum,defaultValue:\"smooth\",options:[\"smooth\",\"instant\"],optionTitles:[\"Smooth\",\"Instant\"],displaySegmentedControl:true,title:\"Scroll\"},offset:{type:ControlType.Number,defaultValue:32,step:1,description:\"When previous or next button is pressed, scroll to the top of the form with an offset\"}}}});//////////////////////////////////////////////////////////////\nfunction isFormValid(element){const inputs=element.querySelectorAll(\"input, select, textarea\");let invalidInputs=[];for(const input of inputs){if(isVisible(input)&&!input.reportValidity()){invalidInputs.push(input);}}// if (invalidInputs.length > 0) {\n//     console.log(\n//         \"Invalid inputs: \",\n//         invalidInputs.map((input) => input.name || input.type).join(\", \")\n//     )\n// }\nreturn invalidInputs.length===0;}function isVisible(element){return element.offsetParent!==null||element.type==\"hidden\";}function getChildIndexByDataFramerName(parentElement,name){const children=parentElement.children;for(let i=0;i<children.length;i++){if(children[i].getAttribute(\"data-framer-name\")===name){return i;}}return-1// Return -1 if no child with the specified attribute value is found\n;}function isPageAnEndPage(pageIndex,state,pages,endPageMode,customEndPages){let isEndPage=false;if(endPageMode===\"customPages\"&&pages){const step=pages.children[pageIndex];if(customEndPages.includes(step.getAttribute(\"data-framer-name\"))){isEndPage=true;}}else{isEndPage=pageIndex==state.totalPages-1;}return isEndPage;}function fireAnalyticsEvent(analytics,pageHistory,pages){if(!analytics||!pageHistory||!pages){return;}switch(analytics.platform){case\"googleAnalytics\":if(typeof window!==\"undefined\"){if(typeof window.gtag!==\"undefined\"){const pageIndex=pageHistory[pageHistory.length-1];const page=pages?.children[pageIndex];const params={page_name:page?.getAttribute(\"data-framer-name\")||page?.getAttribute(\"name\")||`Page ${pageIndex+1}`};if(analytics.googleAnalyticsEventCategory){params.event_category=analytics.googleAnalyticsEventCategory;}window.gtag(\"event\",analytics.googleAnalyticsEventName,params);}else{console.error(\"Google Analytics gtag.js script is not installed.\");}}break;}}function getInputsOnPage(page){return Array.from(page.querySelectorAll('input:not([type=\"hidden\"]):not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]):not([data-framerforms-set-value-event]), textarea:not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]), select:not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]), button:not([disabled]):not([tabindex=\"-1\"])')).filter(el=>window.getComputedStyle(el).display!==\"none\");}function autoFocusInputOnPage(pageElement){if(!pageElement){return;}// Get all potential autofocus elements\nconst autofocusElements=pageElement.querySelectorAll(\"input[autofocus], select[autofocus], textarea[autofocus]\");// Convert NodeList to Array for easier manipulation\nconst elements=Array.from(autofocusElements);// Filter out hidden elements\nconst visibleElements=elements.filter(el=>{const style=window.getComputedStyle(el);return style.display!==\"none\"&&style.visibility!==\"hidden\"&&!el.hidden&&!el.disabled&&el.offsetParent!==null// Check if the element is rendered\n;});// If there are visible autofocus elements, focus the first one\nif(visibleElements.length>0){visibleElements[0].focus();}}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MultiStepForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MultiStepForm.map","import{jsx as _jsx}from\"react/jsx-runtime\";const CAL_URL=\"https://cal.com/team/lawx/erstes-kennenlerngesprach-mit-lawx?overlayCalendar=true\";const SCOPE_NAME=\"Book Demo Form\";export function SubmitButtonOverride(){return{onTap:event=>{const btn=event?.target;const scope=btn.closest(`[data-framer-name=\"${SCOPE_NAME}\"]`);if(!scope){console.warn(\"⚠️ Book Demo Form scope not found — aborting submit\");return;}const fields=Array.from(scope.querySelectorAll(\"input, select, textarea\"));// Preserve existing landing-page URL params, e.g. referral\nconst params=new URLSearchParams(window.location.search);for(const el of fields){const name=el.getAttribute(\"name\")||el.getAttribute(\"data-name\")||\"\";if(!name)continue;// Let form values override any existing query param with same name\nparams.delete(name);if(el instanceof HTMLInputElement){if(el.type===\"checkbox\"){if(el.checked)params.append(name,el.value||\"on\");}else if(el.type===\"radio\"){if(el.checked)params.append(name,el.value);}else{const value=el.value?.trim();if(value)params.append(name,value);}}else if(el instanceof HTMLSelectElement){if(el.multiple){Array.from(el.selectedOptions).forEach(opt=>{if(opt.value)params.append(name,opt.value);});}else{const value=el.value?.trim();if(value)params.append(name,value);}}else{const value=el.value?.trim();if(value)params.append(name,value);}}const qs=params.toString();const separator=CAL_URL.includes(\"?\")?\"&\":\"?\";window.location.href=qs?`${CAL_URL}${separator}${qs}`:CAL_URL;}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withSubmitButtonOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...SubmitButtonOverride(props)});};}withSubmitButtonOverride.displayName=\"SubmitButtonOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"SubmitButtonOverride\":{\"type\":\"override\",\"name\":\"SubmitButtonOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSubmitButtonOverride\":{\"type\":\"reactHoc\",\"name\":\"withSubmitButtonOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CalNew.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function PosthogSubmitTracker({formName=\"Multi-Step Form\",buttonSelector=\"[data-framer-name='Default']\",formSelector=\"\",totalSteps,lastStepIndex,eventName=\"Form Submitted\",debug=false,showBadge=true}){const boundRef=useRef(false);const firedRef=useRef(false);const cleanupRef=useRef(null);useEffect(()=>{const log=(...a)=>debug&&console.log(\"[PH Submit]\",...a);const bind=()=>{if(boundRef.current)return;const btn=document.querySelector(buttonSelector);// Limit queries to the specific selector scope\nconst root=formSelector?document.querySelector(formSelector):btn?.closest(\"form\");if(!root)return;const form=root.tagName.toLowerCase()===\"form\"?root:root.querySelector(\"form\");if(!btn&&!form)return;// nothing to bind yet\nconst capture=reason=>{if(firedRef.current)return;firedRef.current=true;setTimeout(()=>firedRef.current=false,3e3)// simple dedupe window\n;const ph=window.posthog;if(!ph||typeof ph.capture!==\"function\"){return log(\"PostHog not loaded; skip submit capture (\",reason,\")\");}ph.capture(eventName,{form_name:formName,total_steps:totalSteps,step_index:lastStepIndex??totalSteps,$current_url:location.href});log(\"Captured\",eventName,{total_steps:totalSteps,step_index:lastStepIndex??totalSteps,reason});};// Prefer real form submit if available\nlet onSubmit=null;if(form){onSubmit=e=>{// Don’t prevent default — let the page navigate/thank-you happen naturally\ncapture(\"submit\");};form.addEventListener(\"submit\",onSubmit,{passive:true});log(\"Bound submit to\",form);}// Fallback to button click (covers non-form setups)\nconst onClick=()=>capture(\"click\");btn?.addEventListener(\"click\",onClick,{passive:true});if(btn)log(\"Bound click to\",btn);boundRef.current=true;cleanupRef.current=()=>{if(onSubmit&&form)form.removeEventListener(\"submit\",onSubmit);btn?.removeEventListener(\"click\",onClick);boundRef.current=false;cleanupRef.current=null;log(\"Unbound\");};};// Try immediately & observe in case elements mount later\nbind();const obs=new MutationObserver(()=>{if(!boundRef.current)bind();});obs.observe(document.body,{subtree:true,childList:true,attributes:true});return()=>{obs.disconnect();if(cleanupRef.current)cleanupRef.current();};},[formName,buttonSelector,formSelector,totalSteps,lastStepIndex,eventName,debug]);if(!showBadge)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",zIndex:999999,bottom:48,right:10,padding:\"8px 10px\",background:\"rgba(0,0,0,0.7)\",color:\"white\",fontSize:12,borderRadius:8,pointerEvents:\"none\",fontFamily:\"ui-sans-serif, system-ui, -apple-system\"},children:\"PH Submit Tracker\"});}export default PosthogSubmitTracker;addPropertyControls(PosthogSubmitTracker,{formName:{type:ControlType.String,title:\"Form Name\",defaultValue:\"Multi-Step Form\"},buttonSelector:{type:ControlType.String,title:\"Button Selector\",defaultValue:\"[data-framer-name='Submit']\"},formSelector:{type:ControlType.String,title:\"Form Selector (optional)\"},totalSteps:{type:ControlType.Number,title:\"Total Steps\",min:1,max:50,step:1},lastStepIndex:{type:ControlType.Number,title:\"Final Step Index\",min:1,max:50,step:1},eventName:{type:ControlType.String,title:\"Custom Event Name\",defaultValue:\"Form Submitted\"},debug:{type:ControlType.Boolean,title:\"Debug Logs\",defaultValue:false},showBadge:{type:ControlType.Boolean,title:\"Show Badge\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PosthogSubmitTracker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PostHogMultiStepSubmitTracker.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function PosthogMultiStepTracker({formName=\"Multi-Step Form\",stepPrefix=\"Page\",containerSelector=\"[data-framer-name='Pages']\",throttleMs=250,debug=false,showOverlay=true}){const lastKeyRef=useRef(null);const[status,setStatus]=useState({ph:false,root:\"…\"});useEffect(()=>{const log=(...args)=>debug&&console.log(\"[PH Tracker]\",...args);console.log(\"[PH Tracker] MOUNT\",{formName,stepPrefix,containerSelector})// always log once\n;let observer=null;let rafId=null;let lastEmitAt=0;let stopRootPoll=null;const stepPrefixLower=stepPrefix.toLowerCase();function isVisible(el){const h=el;if(!h)return false;if(h.closest('[aria-hidden=\"true\"]'))return false;const cs=window.getComputedStyle(h);if(cs.display===\"none\"||cs.visibility===\"hidden\")return false;if(Number(cs.opacity)===0)return false;const r=h.getBoundingClientRect();return r.width>0&&r.height>0;}function findCurrentStep(rootEl){const all=Array.from(rootEl.querySelectorAll(\"[data-framer-name]\"));const candidates=all.filter(el=>{const label=(el.getAttribute(\"data-framer-name\")||\"\").trim();if(!label)return false;const startsWithPrefix=label.toLowerCase().startsWith(stepPrefixLower);const hasNumber=/\\d+/.test(label);return startsWithPrefix&&hasNumber&&isVisible(el);});if(!candidates.length)return null;// prefer element on top (z-index), then by area\nlet chosen=null;let bestScore=-Infinity;for(const el of candidates){const r=el.getBoundingClientRect();const area=r.width*r.height;const z=parseInt(getComputedStyle(el).zIndex||\"0\",10)||0;const score=z*1e6+area;if(score>bestScore){bestScore=score;chosen=el;}}if(!chosen)return null;const label=(chosen.getAttribute(\"data-framer-name\")||\"\").trim();const numMatch=label.match(/(\\d+)/);const stepIndex=numMatch?Number(numMatch[1]):undefined;return{label,stepIndex};}function makeEmitter(rootEl){return function emitIfChanged(reason=\"unknown\"){const now=Date.now();if(now-lastEmitAt<throttleMs)return;lastEmitAt=now;const info=findCurrentStep(rootEl);if(!info){log(\"No visible step found (reason:\",reason,\") in root:\",rootEl);setStatus(s=>({...s,step:\"—\"}));return;}const key=info.label;if(lastKeyRef.current===key){log(\"Step unchanged:\",key,\"(reason:\",reason,\")\");return;}lastKeyRef.current=key;const phLoaded=!!window.posthog&&typeof window.posthog.capture===\"function\";setStatus(s=>({...s,step:key,ph:phLoaded}));if(phLoaded){window.posthog.capture(\"Form Step Viewed\",{form_name:formName,step_label:info.label,step_index:info.stepIndex,$current_url:location.href});log(\"Captured Form Step Viewed:\",{...info,reason});}else{log(\"PostHog not loaded yet; skip emit (reason:\",reason,\")\",info);}};}function attachObserver(rootEl){setStatus(s=>({...s,root:rootEl instanceof HTMLElement?rootEl.getAttribute(\"data-framer-name\")||rootEl.tagName.toLowerCase():\"node\"}));log(\"MutationObserver attaching to\",rootEl);const emitIfChanged=makeEmitter(rootEl);observer=new MutationObserver(()=>{if(rafId)cancelAnimationFrame(rafId);rafId=requestAnimationFrame(()=>emitIfChanged(\"mutation\"));});observer.observe(rootEl,{subtree:true,childList:true,attributes:true,attributeFilter:[\"style\",\"class\",\"data-framer-name\",\"aria-hidden\"]});// initial attempt\nemitIfChanged(\"initial\");// poll for PostHog becoming available via GTM/consent\nconst poll=setInterval(()=>{const phLoaded=!!window.posthog&&typeof window.posthog.capture===\"function\";if(phLoaded){log(\"PostHog detected via GTM; emitting\");emitIfChanged(\"posthog-ready\");clearInterval(poll);}else{log(\"Waiting for PostHog (consent/GTM)…\");}},800);return()=>clearInterval(poll);}// Wait for the container to exist (in case it mounts later)\nconst tryAttach=()=>{const found=document.querySelector(containerSelector)||document.body;if(!found)return;if(stopRootPoll){window.clearInterval(stopRootPoll);stopRootPoll=null;}const stopPH=attachObserver(found);return{root:found,stopPH};};let cleanPH;const first=tryAttach();if(!first){// Poll briefly for container to appear\nstopRootPoll=window.setInterval(()=>{const res=tryAttach();if(res){cleanPH=res.stopPH;}},300);}else{cleanPH=first.stopPH;}return()=>{observer?.disconnect();if(rafId)cancelAnimationFrame(rafId);if(stopRootPoll)window.clearInterval(stopRootPoll);if(cleanPH)cleanPH();log(\"UNMOUNT\");};},[formName,stepPrefix,containerSelector,throttleMs,debug,showOverlay]);return showOverlay?/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",zIndex:999999,bottom:10,right:10,padding:\"8px 10px\",background:\"rgba(0,0,0,0.7)\",color:\"white\",fontSize:12,borderRadius:8,pointerEvents:\"none\",fontFamily:\"ui-sans-serif, system-ui, -apple-system\"},children:[/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(\"strong\",{children:\"PH Tracker\"})}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Root: \",status.root]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"Step: \",status.step??\"…\"]}),/*#__PURE__*/_jsxs(\"div\",{children:[\"PostHog: \",status.ph?\"loaded\":\"waiting…\"]})]}):null;}/** ---- Property Controls (Framer UI) ---- */addPropertyControls(PosthogMultiStepTracker,{formName:{type:ControlType.String,title:\"Form Name\",defaultValue:\"Multi-Step Form\"},stepPrefix:{type:ControlType.String,title:\"Step Prefix\",defaultValue:\"Page\"},containerSelector:{type:ControlType.String,title:\"Container Selector\",defaultValue:\"[data-framer-name='Pages']\"},throttleMs:{type:ControlType.Number,title:\"Throttle (ms)\",defaultValue:250,min:0,max:2e3,step:50,displayStepper:true},debug:{type:ControlType.Boolean,title:\"Debug Logs\",defaultValue:false},showOverlay:{type:ControlType.Boolean,title:\"Show Overlay\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PosthogMultiStepTracker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PostHogMultiStepTracker.map"],"mappings":"4aAKG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,cAAY,UAAQ,cAAY,eAAa,SAAO,SAAO,UAAQ,kBAAgB,EAAY,EAAG,GAAe,CAAO,EAAS,EAAa,SAAS,GAAG,EAAa,OAAa,EAAY,IAAc,WAAW,GAAM,EAAM,YAAiB,CAAC,EAAmB,GAAuB,GAAuB,CAAM,CAAC,EAAM,GAAUA,EAAS,EAAE,CAAC,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAM,CAAC,EAAe,GAAmBA,EAAS,GAAM,CAAM,CAA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