{"version":3,"file":"Lx6wDk_0n.g2O2lt0X.mjs","names":["useRef","useCallback","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","SVG"],"sources":["https:/framerusercontent.com/modules/GkEVsh54w2ruZUwXkYks/8w8HwI5lx3OhGyq49CBU/CalModalTrigger.js","https:/framerusercontent.com/modules/w9fK9NHjrORIzbXvbWQj/q8fp23qTvfsixWpp2O9z/Lx6wDk_0n.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useRef}from\"react\";import{RenderTarget}from\"framer\";// User request: Create a NEW override that dispatches new CustomEvent(\"vestris:open-cal-booking\") on tap/click while preserving wrapped props/style/behavior/accessibility and composing existing handlers without duplicate dispatch.\nexport function withCalModalTrigger(Component){return /*#__PURE__*/forwardRef(function WithCalModalTrigger(props,ref){const lastDispatchRef=useRef(-1);const dispatchOpenEvent=useCallback(event=>{if(typeof window===\"undefined\")return;if(RenderTarget.current()===RenderTarget.canvas)return;const stamp=typeof event?.timeStamp===\"number\"?event.timeStamp:Date.now();if(Math.abs(stamp-lastDispatchRef.current)<40)return;lastDispatchRef.current=stamp;window.dispatchEvent(new CustomEvent(\"vestris:open-cal-booking\"));},[]);const handleTap=useCallback(event=>{props.onTap?.(event);if(event?.defaultPrevented)return;dispatchOpenEvent(event);},[dispatchOpenEvent,props]);const handleClick=useCallback(event=>{props.onClick?.(event);if(event?.defaultPrevented)return;dispatchOpenEvent(event);},[dispatchOpenEvent,props]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style},onTap:handleTap,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withCalModalTrigger\":{\"type\":\"reactHoc\",\"name\":\"withCalModalTrigger\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CalModalTrigger.map","// Generated by Framer (65a4904)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,SVG,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const serializationHash=\"framer-jMHU9\";const variantClassNames={u5ifu05QY:\"framer-v-xj1ifu\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const in_vc1FsF=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};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 getProps=({click,height,id,width,...props})=>{return{...props,in_vc1FsF:click??props.in_vc1FsF};};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,in_vc1FsF,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"u5ifu05QY\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTaphww8a1=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(in_vc1FsF){const res=await in_vc1FsF(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-xj1ifu\",className,classNames),\"data-framer-name\":\"Variant 1\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"u5ifu05QY\",onTap:onTaphww8a1,ref:refBinding,style:{...style},children:/*#__PURE__*/_jsxs(SVG,{className:\"framer-j35u65\",layoutDependency:layoutDependency,layoutId:\"Z8wdWAw9u\",requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 36 36\" overflow=\"visible\"><g><path d=\"M 8 36 C 3.582 36 0 32.418 0 28 L 0 8 C 0 3.582 3.582 0 8 0 L 28 0 C 32.418 0 36 3.582 36 8 L 36 28 C 36 32.418 32.418 36 28 36 Z\" fill=\"rgb(98,101,78)\"></path><path d=\"M 12.845 12.844 C 12.962 12.727 13.121 12.661 13.287 12.661 C 13.453 12.661 13.612 12.727 13.729 12.844 L 23.157 22.272 C 23.401 22.516 23.401 22.912 23.157 23.156 C 22.913 23.4 22.517 23.4 22.273 23.156 L 12.845 13.728 C 12.728 13.611 12.662 13.452 12.662 13.286 C 12.662 13.12 12.728 12.961 12.845 12.844 Z\" fill=\"rgb(255,255,255)\"></path><path d=\"M 12.844 23.156 C 12.727 23.039 12.661 22.88 12.661 22.714 C 12.661 22.548 12.727 22.389 12.844 22.272 L 22.272 12.844 C 22.516 12.6 22.912 12.6 23.156 12.844 C 23.4 13.088 23.4 13.484 23.156 13.728 L 13.728 23.156 C 13.611 23.273 13.452 23.339 13.286 23.339 C 13.12 23.339 12.961 23.273 12.844 23.156 Z\" fill=\"rgb(255,255,255)\"></path></g></svg>',withExternalLayout:true,children:[/*#__PURE__*/_jsx(SVG,{className:\"framer-fu4423\",layoutDependency:layoutDependency,layoutId:\"r3PfIQjJc\",requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 36 36\" overflow=\"visible\"><path d=\"M 8 36 C 3.582 36 0 32.418 0 28 L 0 8 C 0 3.582 3.582 0 8 0 L 28 0 C 32.418 0 36 3.582 36 8 L 36 28 C 36 32.418 32.418 36 28 36 Z\" fill=\"rgb(98,101,78)\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-6k5on5\",layoutDependency:layoutDependency,layoutId:\"uWp8knCjW\",requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 10.678 10.678\" overflow=\"visible\"><path d=\"M 0.183 0.183 C 0.3 0.066 0.459 0 0.625 0 C 0.791 0 0.95 0.066 1.067 0.183 L 10.495 9.611 C 10.739 9.855 10.739 10.251 10.495 10.495 C 10.251 10.739 9.855 10.739 9.611 10.495 L 0.183 1.067 C 0.066 0.95 0 0.791 0 0.625 C 0 0.459 0.066 0.3 0.183 0.183 Z\" fill=\"rgb(255,255,255)\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-1jkvmhk\",layoutDependency:layoutDependency,layoutId:\"oieFLMhhx\",requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 10.678 10.678\" overflow=\"visible\"><path d=\"M 0.183 10.495 C 0.066 10.378 0 10.219 0 10.053 C 0 9.887 0.066 9.728 0.183 9.611 L 9.611 0.183 C 9.855 -0.061 10.251 -0.061 10.495 0.183 C 10.739 0.427 10.739 0.823 10.495 1.067 L 1.067 10.495 C 0.95 10.612 0.791 10.678 0.625 10.678 C 0.459 10.678 0.3 10.612 0.183 10.495 Z\" fill=\"rgb(255,255,255)\"></path></svg>',withExternalLayout:true})]})})})})});});const css=[\".framer-jMHU9.framer-h888mn, .framer-jMHU9 .framer-h888mn { display: block; }\",\".framer-jMHU9.framer-xj1ifu { cursor: pointer; height: 36px; overflow: visible; position: relative; width: 36px; }\",\".framer-jMHU9 .framer-j35u65, .framer-jMHU9 .framer-fu4423 { height: 36px; left: 0px; position: absolute; top: 0px; width: 36px; }\",\".framer-jMHU9 .framer-6k5on5, .framer-jMHU9 .framer-1jkvmhk { height: 11px; left: 13px; position: absolute; top: 13px; width: 11px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 36\n * @framerIntrinsicWidth 36\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"in_vc1FsF\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerLx6wDk_0n=withCSS(Component,css,\"framer-jMHU9\");export default FramerLx6wDk_0n;FramerLx6wDk_0n.displayName=\"close\";FramerLx6wDk_0n.defaultProps={height:36,width:36};addPropertyControls(FramerLx6wDk_0n,{in_vc1FsF:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerLx6wDk_0n,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerLx6wDk_0n\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"36\",\"framerColorSyntax\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"in_vc1FsF\\\":\\\"click\\\"}\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicWidth\":\"36\",\"framerImmut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