{"version":3,"file":"Chatbotbutton.DCFtFdG6.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId"],"sources":["https:/framerusercontent.com/modules/PtaZeaw6EmsVSXiL9MKt/WMFFkkbUfV9FXh45xGKE/kcNucq17G.js","https:/framerusercontent.com/modules/b7700yObrt5l6v2zdi5P/VYQrRixZKqx4zeCIhk4k/Chatbotbutton.js"],"sourcesContent":["// Generated by Framer (0956b9b)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,cx,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const enabledGestures={nJ1Q_rZcJ:{hover:true}};const serializationHash=\"framer-Bz7D6\";const variantClassNames={nJ1Q_rZcJ:\"framer-v-17ifg99\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.6,ease:[.44,0,.56,1],type:\"tween\"};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=({height,id,width,...props})=>{return{...props};};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({defaultVariant:\"nJ1Q_rZcJ\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);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-17ifg99\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"nJ1Q_rZcJ\",ref:refBinding,style:{...style},...addPropertyOverrides({\"nJ1Q_rZcJ-hover\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(SVG,{className:\"framer-qnifxv\",layoutDependency:layoutDependency,layoutId:\"oPpY6m7de\",opacity:1,requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 20.889\" overflow=\"visible\"><path d=\"M 0 0 L 0 15.111 L 20.444 15.111 L 24 20.889 L 24 0 Z\" fill=\"transparent\" stroke-width=\"2\" stroke=\"var(--token-361a2337-829f-4fab-ba0b-4f11a6aa023b, rgb(255, 255, 255)) /* {&quot;name&quot;:&quot;ff White&quot;} */\" stroke-linejoin=\"round\"></path></svg>',withExternalLayout:true,...addPropertyOverrides({\"nJ1Q_rZcJ-hover\":{svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 20.889\" overflow=\"visible\"><path d=\"M 0 0 L 0 15.111 L 20.444 15.111 L 24 20.889 L 24 0 Z\" fill=\"transparent\" stroke-width=\"2\" stroke=\"var(--token-9610f3c7-f5b0-4b2f-8a33-d802f436e134, rgb(0, 255, 64)) /* {&quot;name&quot;:&quot;ff gr\\xfcn&quot;} */\" stroke-linejoin=\"round\"></path></svg>'}},baseVariant,gestureVariant)})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-Bz7D6.framer-t4rgtu, .framer-Bz7D6 .framer-t4rgtu { display: block; }\",\".framer-Bz7D6.framer-17ifg99 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: 60px; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 60px; }\",\".framer-Bz7D6 .framer-qnifxv { height: 21px; position: relative; width: 24px; }\",\".framer-Bz7D6.framer-v-17ifg99.hover.framer-17ifg99 { aspect-ratio: 1 / 1; height: var(--framer-aspect-ratio-supported, 60px); }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 60\n * @framerIntrinsicWidth 60\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"QdN1Bb59f\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerkcNucq17G=withCSS(Component,css,\"framer-Bz7D6\");export default FramerkcNucq17G;FramerkcNucq17G.displayName=\"Chatbot\";FramerkcNucq17G.defaultProps={height:60,width:60};addFonts(FramerkcNucq17G,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerkcNucq17G\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"QdN1Bb59f\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerIntrinsicWidth\":\"60\",\"framerIntrinsicHeight\":\"60\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./kcNucq17G.map","// Datei: elfsight.ts\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";function findElfsightBubble(){const selectors=['[class*=\"eapps-ai-chatbot\"] [class*=\"FloatingButtonContainer-sc\"] button','[class*=\"eapps-chat__button\"]','[class*=\"eapps-chat\"] button'];for(const s of selectors){const el=document.querySelector(s);if(el)return el;}return null;}export function withOpenElfsight(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const handleClick=async event=>{const click=()=>{const bubble=findElfsightBubble();if(bubble)bubble.dispatchEvent(new MouseEvent(\"click\",{bubbles:true}));return!!bubble;};if(!click())setTimeout(click,300)// falls das Widget minimal später rendert\n;if(typeof props?.onClick===\"function\")props.onClick(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withOpenElfsight\":{\"type\":\"reactHoc\",\"name\":\"withOpenElfsight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Chatbotbutton.map"],"mappings":"siBAC+Y,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAA5gB,IAA+F,IAAkE,IAA4B,CAAgC,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,CAA8L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK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