{"version":3,"file":"Examples.BL75419P.mjs","names":["useCallback","useState","useMemo"],"sources":["https:/framerusercontent.com/modules/hVeIiR9KG2SqBFOFn42N/uB01SZ8coCcYdxxuqLm2/Examples.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useMemo,useRef,useState}from\"react\";import{useIsStaticRenderer}from\"framer\";import{AnimatePresence,motion}from\"framer-motion\";export function BookingSuccessConfirmationOverride(Component){return /*#__PURE__*/forwardRef(function BookingSuccessConfirmationOverrideWrapped(props,ref){const{email=\"will@alpinechauffeurclub.com\",whatsappLabel=\"+447792286722\",transitionDuration=.35,accentColor=\"#1E5A46\",textColor=\"#222222\",mutedTextColor=\"#6F6F6F\",surfaceColor=\"#FFFFFF\",fieldSurfaceColor=\"#F9F6F1\",borderColor=\"#E8E0D3\",radius=28,shadow=\"0 10px 30px rgba(35, 28, 18, 0.08)\",onSubmitCapture,...rest}=props;const[submitted,setSubmitted]=useState(false);const formRef=useRef(null);const containerRef=useRef(null);const isStatic=useIsStaticRenderer();const mergedCardStyle=useMemo(()=>{return{...props.style??{},position:\"relative\",overflow:\"hidden\",borderRadius:radius,background:surfaceColor,border:`1px solid ${borderColor}`,boxShadow:shadow};},[props.style,radius,surfaceColor,borderColor,shadow]);const handleSubmitCapture=useCallback(event=>{const target=event.target;if(target instanceof HTMLFormElement){formRef.current=target;}if(typeof onSubmitCapture===\"function\"){onSubmitCapture(event);}const showPanel=()=>{startTransition(()=>setSubmitted(true));};if(typeof window!==\"undefined\"){window.setTimeout(showPanel,80);}else{showPanel();}},[onSubmitCapture]);const handleSubmitAnother=useCallback(()=>{if(formRef.current){formRef.current.reset();}else if(typeof document!==\"undefined\"){const localForm=containerRef.current?.querySelector(\"form\");if(localForm instanceof HTMLFormElement){localForm.reset();}}startTransition(()=>setSubmitted(false));},[]);const transition=useMemo(()=>({duration:isStatic?0:Math.max(.15,transitionDuration),ease:[.22,1,.36,1]}),[isStatic,transitionDuration]);const handleReturnHome=useCallback(event=>{event.preventDefault();if(typeof window!==\"undefined\"){window.location.assign(\"/\");}},[]);return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(Component,{ref:ref,...rest,style:{...mergedCardStyle,opacity:submitted?0:1,transition:`opacity ${transition.duration}s ease`,pointerEvents:submitted?\"none\":\"auto\"},onSubmitCapture:handleSubmitCapture}),/*#__PURE__*/_jsx(AnimatePresence,{children:submitted&&/*#__PURE__*/_jsxs(motion.section,{\"aria-live\":\"polite\",role:\"status\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:transition,style:{position:\"absolute\",inset:0,boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",justifyContent:\"space-between\",gap:20,padding:28,borderRadius:radius,background:surfaceColor,border:`1px solid ${borderColor}`,boxShadow:shadow,color:textColor,fontFamily:'\"General Sans\",\"Inter\",\"SF Pro Text\",\"SF Pro Display\",system-ui,sans-serif'},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:14},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:40,height:40,borderRadius:999,background:fieldSurfaceColor,color:accentColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:20,lineHeight:1},\"aria-hidden\":\"true\",children:\"✓\"}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:28,lineHeight:1.15,letterSpacing:\"-0.02em\"},children:\"Thank you for your enquiry\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:mutedTextColor,fontSize:16,lineHeight:1.4},children:\"We’ve successfully received your membership request.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:15,lineHeight:1.5,color:textColor},children:\"We’ll now review your requested dates, accommodation and membership requirements before contacting you with availability and a personalised quotation.\"}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:mutedTextColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:textColor},children:\"Typical response time:\"}),\" \",\"Within 24 hours.\"]}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:mutedTextColor},children:\"If your enquiry is urgent, please contact us directly:\"}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:textColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:mutedTextColor},children:\"Email:\"}),\" \",/*#__PURE__*/_jsx(\"a\",{href:`mailto:${email}`,style:{color:accentColor,textDecoration:\"none\"},children:email})]}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:textColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:mutedTextColor},children:\"WhatsApp:\"}),\" \",/*#__PURE__*/_jsx(\"span\",{children:whatsappLabel})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:10},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",onClick:handleReturnHome,style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",height:44,padding:\"0 18px\",borderRadius:14,background:accentColor,color:\"#FFFFFF\",textDecoration:\"none\",fontSize:14,fontWeight:600,letterSpacing:\"-0.01em\"},children:\"Return to Homepage\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleSubmitAnother,style:{height:44,padding:\"0 18px\",borderRadius:14,border:`1px solid ${borderColor}`,background:fieldSurfaceColor,color:textColor,fontSize:14,fontWeight:600,letterSpacing:\"-0.01em\",cursor:\"pointer\"},children:\"Submit Another Enquiry\"})]})]},\"booking-confirmation\")})]});});}export function ContactSuccessConfirmationOverride(Component){return /*#__PURE__*/forwardRef(function ContactSuccessConfirmationOverrideWrapped(props,ref){const{email=\"will@alpinechauffeurclub.com\",whatsappLabel=\"+447792286722\",transitionDuration=.35,accentColor=\"#1E5A46\",textColor=\"#222222\",mutedTextColor=\"#6F6F6F\",surfaceColor=\"#FFFFFF\",fieldSurfaceColor=\"#F9F6F1\",borderColor=\"#E8E0D3\",radius=28,shadow=\"0 10px 30px rgba(35, 28, 18, 0.08)\",onSubmitCapture,...rest}=props;const[submitted,setSubmitted]=useState(false);const formRef=useRef(null);const containerRef=useRef(null);const isStatic=useIsStaticRenderer();const mergedCardStyle=useMemo(()=>{return{...props.style??{},position:\"relative\",overflow:\"hidden\",borderRadius:radius,background:surfaceColor,border:`1px solid ${borderColor}`,boxShadow:shadow};},[props.style,radius,surfaceColor,borderColor,shadow]);const handleSubmitCapture=useCallback(event=>{const target=event.target;if(target instanceof HTMLFormElement){formRef.current=target;}if(typeof onSubmitCapture===\"function\"){onSubmitCapture(event);}const showPanel=()=>{startTransition(()=>setSubmitted(true));};if(typeof window!==\"undefined\"){window.setTimeout(showPanel,80);}else{showPanel();}},[onSubmitCapture]);const handleSubmitAnother=useCallback(()=>{if(formRef.current){formRef.current.reset();}else if(typeof document!==\"undefined\"){const localForm=containerRef.current?.querySelector(\"form\");if(localForm instanceof HTMLFormElement){localForm.reset();}}startTransition(()=>setSubmitted(false));},[]);const transition=useMemo(()=>({duration:isStatic?0:Math.max(.15,transitionDuration),ease:[.22,1,.36,1]}),[isStatic,transitionDuration]);return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(Component,{ref:ref,...rest,style:{...mergedCardStyle,opacity:submitted?0:1,transition:`opacity ${transition.duration}s ease`,pointerEvents:submitted?\"none\":\"auto\"},onSubmitCapture:handleSubmitCapture}),/*#__PURE__*/_jsx(AnimatePresence,{children:submitted&&/*#__PURE__*/_jsxs(motion.section,{\"aria-live\":\"polite\",role:\"status\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:transition,style:{position:\"absolute\",inset:0,boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",justifyContent:\"space-between\",gap:20,padding:28,borderRadius:radius,background:surfaceColor,border:`1px solid ${borderColor}`,boxShadow:shadow,color:textColor,fontFamily:'\"General Sans\",\"Inter\",\"SF Pro Text\",\"SF Pro Display\",system-ui,sans-serif'},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:14},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:40,height:40,borderRadius:999,background:fieldSurfaceColor,color:accentColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:20,lineHeight:1},\"aria-hidden\":\"true\",children:\"✓\"}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:28,lineHeight:1.15,letterSpacing:\"-0.02em\"},children:\"Thank you for your enquiry\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:mutedTextColor,fontSize:16,lineHeight:1.4},children:\"We’ve successfully received your membership request.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:15,lineHeight:1.5,color:textColor},children:\"We’ll now review your requested dates, accommodation and membership requirements before contacting you with availability and a personalised quotation.\"}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:mutedTextColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:textColor},children:\"Typical response time:\"}),\" \",\"Within 24 hours.\"]}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:mutedTextColor},children:\"If your enquiry is urgent, please contact us directly:\"}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:textColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:mutedTextColor},children:\"Email:\"}),\" \",/*#__PURE__*/_jsx(\"a\",{href:`mailto:${email}`,style:{color:accentColor,textDecoration:\"none\"},children:email})]}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:textColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:mutedTextColor},children:\"WhatsApp:\"}),\" \",/*#__PURE__*/_jsx(\"span\",{children:whatsappLabel})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:10},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",height:44,padding:\"0 18px\",borderRadius:14,background:accentColor,color:\"#FFFFFF\",textDecoration:\"none\",fontSize:14,fontWeight:600,letterSpacing:\"-0.01em\"},children:\"Return to Homepage\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleSubmitAnother,style:{height:44,padding:\"0 18px\",borderRadius:14,border:`1px solid ${borderColor}`,background:fieldSurfaceColor,color:textColor,fontSize:14,fontWeight:600,letterSpacing:\"-0.01em\",cursor:\"pointer\"},children:\"Submit Another Enquiry\"})]})]},\"contact-confirmation\")})]});});}export function RedirectToThankYouAfterSubmitOverride(Component){return /*#__PURE__*/forwardRef(function RedirectToThankYouAfterSubmitOverrideWrapped(props,ref){const{onSubmitCapture,...rest}=props;const handleSubmitCapture=useCallback(event=>{if(typeof onSubmitCapture===\"function\"){onSubmitCapture(event);}if(typeof window!==\"undefined\"){window.setTimeout(()=>{window.location.assign(\"/thank-you\");},120);}},[onSubmitCapture]);return /*#__PURE__*/_jsx(Component,{ref:ref,...rest,onSubmitCapture:handleSubmitCapture});});}export function BookingSamePageSuccessMessageOverride(Component){return /*#__PURE__*/forwardRef(function BookingSamePageSuccessMessageOverrideWrapped(props,ref){const{transitionDuration=.35,accentColor=\"#1E5A46\",textColor=\"#222222\",mutedTextColor=\"#6F6F6F\",surfaceColor=\"#F9F6F1\",borderColor=\"#E8E0D3\",radius=28,shadow=\"0 10px 30px rgba(35, 28, 18, 0.08)\",onSubmitCapture,...rest}=props;const[submitted,setSubmitted]=useState(false);const isStatic=useIsStaticRenderer();const transition=useMemo(()=>({duration:isStatic?0:Math.max(.15,transitionDuration),ease:[.22,1,.36,1]}),[isStatic,transitionDuration]);const handleSubmitCapture=useCallback(event=>{if(typeof onSubmitCapture===\"function\"){onSubmitCapture(event);}const showPanel=()=>{startTransition(()=>setSubmitted(true));};if(typeof window!==\"undefined\"){window.setTimeout(showPanel,120);}else{showPanel();}},[onSubmitCapture]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(Component,{ref:ref,...rest,onSubmitCapture:handleSubmitCapture}),/*#__PURE__*/_jsx(AnimatePresence,{children:submitted&&/*#__PURE__*/_jsxs(motion.section,{\"aria-live\":\"polite\",role:\"status\",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:transition,style:{position:\"absolute\",inset:0,boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",gap:14,padding:28,borderRadius:radius,background:surfaceColor,border:`1px solid ${borderColor}`,boxShadow:shadow,color:textColor,fontFamily:'\"General Sans\",\"Inter\",\"SF Pro Text\",\"SF Pro Display\",system-ui,sans-serif'},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:40,height:40,borderRadius:999,background:\"rgba(30, 90, 70, 0.12)\",color:accentColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:20,lineHeight:1},children:\"✓\"}),/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:28,lineHeight:1.15,letterSpacing:\"-0.02em\"},children:\"Thank you for your enquiry.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:mutedTextColor,fontSize:16,lineHeight:1.45},children:\"We’ve received your membership request and will review your stay details shortly.\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:mutedTextColor,fontSize:16,lineHeight:1.45},children:\"We’ll contact you to confirm availability and provide a personalised quotation.\"}),/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.45,color:mutedTextColor},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:textColor},children:\"Typical response time:\"}),\" \",\"Within 24 hours.\"]})]},\"booking-same-page-success\")})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"RedirectToThankYouAfterSubmitOverride\":{\"type\":\"reactHoc\",\"name\":\"RedirectToThankYouAfterSubmitOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ContactSuccessConfirmationOverride\":{\"type\":\"reactHoc\",\"name\":\"ContactSuccessConfirmationOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BookingSamePageSuccessMessageOverride\":{\"type\":\"reactHoc\",\"name\":\"BookingSamePageSuccessMessageOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BookingSuccessConfirmationOverride\":{\"type\":\"reactHoc\",\"name\":\"BookingSuccessConfirmationOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"6QAAusU,SAAgB,EAAsC,EAAU,CAAC,OAAoB,EAAW,SAAsD,EAAM,EAAI,CAAC,GAAK,CAAC,kBAAgB,GAAG,GAAM,EAAY,EAAoBA,EAAY,GAAO,CAAI,OAAO,GAAkB,YAAY,EAAgB,CAAK,EAAa,IAAS,QAAa,EAAO,eAAe,CAAC,EAAO,SAAS,OAAO,YAAY,CAAE,EAAE,GAAG,CAAG,EAAE,CAAC,CAAe,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAK,gBAAgB,CAAmB,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgB,EAAsC,EAAU,CAAC,OAAoB,EAAW,SAAsD,EAAM,EAAI,CAAC,GAAK,CAAC,qBAAmB,IAAI,cAAY,UAAU,YAAU,UAAU,iBAAe,UAAU,eAAa,UAAU,cAAY,UAAU,SAAO,GAAG,SAAO,qCAAqC,kBAAgB,GAAG,GAAM,EAAW,CAAC,EAAU,GAAcC,EAAS,EAAK,EAAQ,EAAS,EAAoB,EAAQ,EAAWC,OAAa,CAAC,SAAS,EAAS,EAAE,KAAK,IAAI,IA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