{"version":3,"file":"BookDemoFormHandoff.BYeebALu.mjs","names":["ArrowSquareRight","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","sharedStyle.className","className","RichText","sharedStyle.css","sharedStyle.fonts","useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/2iSL7gjz9PWBw1IYOz59/i4iwjJcTXgy9USO9PJwF/PdCxDeGXV.js","https:/framerusercontent.com/modules/Tq1FwAaF52sn0qLSoslW/7cBP83at251mC2q4OBHh/BookDemoFormHandoff.js"],"sourcesContent":["// Generated by Framer (4d662f6)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFonts,getFontsFromSharedStyle,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import ArrowSquareRight from\"https://framerusercontent.com/modules/TgdovPTf12h5e9mf5mKX/ny0lQDjRQ5zoBlru0VHq/tL6Nru9eO.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/p2ZOo1sC670WMj9p4B0h/U3uJ1ArWGvpRdXIxBkdT/HMnsiUSc6.js\";const MotionDivWithFX=withFX(motion.div);const ArrowSquareRightFonts=getFonts(ArrowSquareRight);const enabledGestures={McqsZKhnD:{hover:true,pressed:true}};const cycleOrder=[\"McqsZKhnD\",\"EZpqUH54V\",\"DvhdlpGy_\",\"QjUlpcmWZ\",\"sNfGC_Fm0\"];const serializationHash=\"framer-NYmyL\";const variantClassNames={DvhdlpGy_:\"framer-v-hvvdkl\",EZpqUH54V:\"framer-v-1tnz27a\",McqsZKhnD:\"framer-v-rvc9nt\",QjUlpcmWZ:\"framer-v-2d8f4x\",sNfGC_Fm0:\"framer-v-7z3lx4\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};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 humanReadableVariantMap={Default:\"McqsZKhnD\",Disabled:\"DvhdlpGy_\",Error:\"sNfGC_Fm0\",Loading:\"EZpqUH54V\",Success:\"QjUlpcmWZ\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"McqsZKhnD\"};};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,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"McqsZKhnD\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"EZpqUH54V\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"EZpqUH54V\")return true;return false;};const isDisplayed2=()=>{if([\"EZpqUH54V\",\"QjUlpcmWZ\",\"sNfGC_Fm0\"].includes(baseVariant))return false;return true;};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-rvc9nt\",className,classNames),\"data-border\":true,\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"McqsZKhnD\",ref:refBinding,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-7f0bc834-bb88-4b8a-babd-275acb89f444)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-7f0bc834-bb88-4b8a-babd-275acb89f444)\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40,opacity:1,...style},variants:{\"McqsZKhnD-hover\":{opacity:.85},\"McqsZKhnD-pressed\":{opacity:1},DvhdlpGy_:{opacity:.5},QjUlpcmWZ:{opacity:1},sNfGC_Fm0:{backgroundColor:\"rgb(255, 222, 228)\",opacity:1}},...addPropertyOverrides({DvhdlpGy_:{\"data-framer-name\":\"Disabled\"},EZpqUH54V:{\"data-framer-name\":\"Loading\"},QjUlpcmWZ:{\"data-framer-name\":\"Success\"},sNfGC_Fm0:{\"data-framer-name\":\"Error\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1z11gm2\",\"data-styles-preset\":\"HMnsiUSc6\",dir:\"auto\",style:{\"--framer-text-alignment\":\"start\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-3231f815-59bd-4709-9984-27f462c2029e))\"},children:\"Choose a time\"})}),className:\"framer-1kmmyxs\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"nKB16XTT6\",style:{\"--extracted-r6o4lv\":\"var(--token-3231f815-59bd-4709-9984-27f462c2029e)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},variants:{sNfGC_Fm0:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({QjUlpcmWZ:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-1z11gm2\",\"data-styles-preset\":\"HMnsiUSc6\",dir:\"auto\",style:{\"--framer-text-alignment\":\"start\"},children:\"Opening calendar…\"})})},sNfGC_Fm0:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--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\"]}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-3kpokx\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"pyav4x11d\",style:{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-bpki1a\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"ZEVWpeOUR\",style:{background:\"conic-gradient(from 0deg at 50% 50%, var(--token-4f95a47b-73b4-4844-84d0-91caa1d28764, rgb(174, 174, 174)) 7.208614864864882deg, var(--token-e95ee726-ab1d-4458-99db-780c0ed005f8, rgb(230, 230, 230)) 360deg)\",mask:\"none\",WebkitMask:\"none\"},variants:{EZpqUH54V:{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-w80upr\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"Z9Bg70ebA\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})}),isDisplayed2()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-171puni\",\"data-framer-name\":\"Arrow\",layoutDependency:layoutDependency,layoutId:\"b_2CHKRqQ\",style:{backgroundColor:\"var(--token-3231f815-59bd-4709-9984-27f462c2029e)\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40},children:/*#__PURE__*/_jsx(ArrowSquareRight,{animated:true,className:\"framer-1uc7tdn\",layoutDependency:layoutDependency,layoutId:\"Ml0akpwLZ\",style:{\"--1m6trwb\":0,\"--21h8s6\":\"var(--token-7f0bc834-bb88-4b8a-babd-275acb89f444)\",\"--pgex8v\":1}})})]})})})});});const css=[\".framer-NYmyL.framer-1ro0fwq, .framer-NYmyL .framer-1ro0fwq { display: block; }\",\".framer-NYmyL.framer-rvc9nt { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; height: 44px; justify-content: center; overflow: visible; padding: 8px 8px 8px 16px; position: relative; width: min-content; }\",\".framer-NYmyL .framer-1kmmyxs { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-NYmyL .framer-3kpokx { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: auto; overflow: hidden; position: relative; width: 20px; }\",\".framer-NYmyL .framer-bpki1a { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-NYmyL .framer-w80upr { aspect-ratio: 1 / 1; flex: none; height: auto; left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-NYmyL .framer-171puni { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: flex-start; overflow: visible; padding: 0px; position: relative; width: min-content; }\",\".framer-NYmyL .framer-1uc7tdn { flex: none; height: auto; position: relative; width: 28px; }\",\".framer-NYmyL.framer-v-1tnz27a.framer-rvc9nt { cursor: unset; padding: 8px 16px 8px 16px; width: 114px; }\",\".framer-NYmyL.framer-v-1tnz27a .framer-bpki1a { overflow: hidden; }\",\".framer-NYmyL.framer-v-hvvdkl.framer-rvc9nt { cursor: unset; }\",\".framer-NYmyL.framer-v-2d8f4x.framer-rvc9nt, .framer-NYmyL.framer-v-7z3lx4.framer-rvc9nt { cursor: unset; padding: 8px 16px 8px 16px; }\",...sharedStyle.css,'.framer-NYmyL[data-border=\"true\"]::after, .framer-NYmyL [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 44\n * @framerIntrinsicWidth 114\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"fixed\"]},\"EZpqUH54V\":{\"layout\":[\"fixed\",\"fixed\"]},\"DvhdlpGy_\":{\"layout\":[\"auto\",\"fixed\"]},\"QjUlpcmWZ\":{\"layout\":[\"auto\",\"fixed\"]},\"sNfGC_Fm0\":{\"layout\":[\"auto\",\"fixed\"]},\"j_A3zLhQd\":{\"layout\":[\"auto\",\"fixed\"]},\"CIxrNGPTT\":{\"layout\":[\"auto\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerPdCxDeGXV=withCSS(Component,css,\"framer-NYmyL\");export default FramerPdCxDeGXV;FramerPdCxDeGXV.displayName=\"Book Demo Submit Button\";FramerPdCxDeGXV.defaultProps={height:44,width:114};addPropertyControls(FramerPdCxDeGXV,{variant:{options:[\"McqsZKhnD\",\"EZpqUH54V\",\"DvhdlpGy_\",\"QjUlpcmWZ\",\"sNfGC_Fm0\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerPdCxDeGXV,[{explicitInter:true,fonts:[{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/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{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/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{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/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{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/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{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/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"},{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\"}]},...ArrowSquareRightFonts,...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerPdCxDeGXV\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"114\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"EZpqUH54V\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"DvhdlpGy_\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"QjUlpcmWZ\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"sNfGC_Fm0\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"j_A3zLhQd\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]},\\\"CIxrNGPTT\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicHeight\":\"44\",\"framerDisplayContentsDiv\":\"false\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PdCxDeGXV.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useEffect,useRef}from\"react\";const BOOKING_PATH=\"/booking\";const EVENT_URL=\"https://cal.com/team/poppy-legal/poppy-demo\";const PREFILL_STORAGE_KEY=\"poppy-demo-prefill\";const WINDOW_NAME_PREFIX=\"poppy-demo-prefill:\";const SUCCESS_LABELS=[\"opening calendar\",\"next: choose a time\"];const SUCCESS_TIMEOUT_MS=3e4;function assignRef(ref,value){if(typeof ref===\"function\"){ref(value);return;}if(ref){ref.current=value;}}function fieldValue(data,name){return String(data.get(name)??\"\").trim();}function collectPrefill(form){const data=new FormData(form);return{name:fieldValue(data,\"Full Name\"),email:fieldValue(data,\"Work Email\"),company:fieldValue(data,\"Company\"),role:fieldValue(data,\"Role\"),eventUrl:EVENT_URL};}function persistPrefill(prefill){const serialized=JSON.stringify(prefill);try{window.sessionStorage.setItem(PREFILL_STORAGE_KEY,serialized);return;}catch{// Some privacy modes block Web Storage. window.name is a same-tab fallback.\n}try{window.name=`${WINDOW_NAME_PREFIX}${encodeURIComponent(serialized)}`;}catch{// Email submission should still complete if all browser storage is blocked.\n}}function normalizedText(value){return(value??\"\").replace(/\\s+/g,\" \").trim().toLowerCase();}function hasSuccessfulSubmitState(form){const buttons=Array.from(form.querySelectorAll(\"button\"));return buttons.some(button=>{const text=normalizedText(button.textContent);return SUCCESS_LABELS.some(label=>text.includes(label));});}function navigateToBooking(){// Use a direct, same-tab navigation instead of programmatically clicking\n// the hidden Framer link. Mobile Safari can ignore synthetic link clicks\n// that occur after an asynchronous form submission has completed.\nconst target=new URL(BOOKING_PATH,window.location.href);window.location.assign(target.href);}export function withBookingHandoff(Component){return /*#__PURE__*/forwardRef(function BookingHandoff(props,forwardedRef){const rootRef=useRef(null);const setRefs=useCallback(node=>{rootRef.current=node;assignRef(forwardedRef,node);},[forwardedRef]);useEffect(()=>{if(typeof window===\"undefined\")return;const root=rootRef.current;const form=root instanceof HTMLFormElement?root:root?.querySelector(\"form\");if(!form)return;const formElement=form;function currentFormElement(){const currentRoot=rootRef.current;return currentRoot instanceof HTMLFormElement?currentRoot:currentRoot?.querySelector(\"form\");}let waitingForSuccess=false;let hasNavigated=false;let pollId;let timeoutId;function clearTimers(){if(pollId!==undefined)window.clearInterval(pollId);if(timeoutId!==undefined)window.clearTimeout(timeoutId);pollId=undefined;timeoutId=undefined;}function navigateAfterSuccess(){const activeForm=currentFormElement();if(!waitingForSuccess||hasNavigated||!activeForm||!hasSuccessfulSubmitState(activeForm)){return;}hasNavigated=true;waitingForSuccess=false;clearTimers();navigateToBooking();}function handleNativeSubmit(){if(!formElement.checkValidity())return;persistPrefill(collectPrefill(formElement));waitingForSuccess=true;hasNavigated=false;clearTimers();pollId=window.setInterval(navigateAfterSuccess,80);timeoutId=window.setTimeout(()=>{waitingForSuccess=false;clearTimers();},SUCCESS_TIMEOUT_MS);}const observer=new window.MutationObserver(navigateAfterSuccess);observer.observe(formElement,{attributes:true,characterData:true,childList:true,subtree:true});// Capture the values before Framer handles the event, but deliberately do\n// not prevent or stop it: Framer must finish the native email submission.\nformElement.addEventListener(\"submit\",handleNativeSubmit,true);return()=>{formElement.removeEventListener(\"submit\",handleNativeSubmit,true);observer.disconnect();clearTimers();};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRefs});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withBookingHandoff\":{\"type\":\"reactHoc\",\"name\":\"withBookingHandoff\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BookDemoFormHandoff.map"],"mappings":"kdAC0gC,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,kDAAxoC,IAA4K,IAAkE,IAA4B,IAAqJ,IAAyH,EAAO,EAAgB,EAAO,EAAO,GAAG,EAAQ,EAAsB,EAASA,CAAgB,EAAQ,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,EAAI,CAAC,EAAQ,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,iBAAiB,EAA+L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,KAAK,OAAO,EAAQ,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,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