{"version":3,"file":"Chatbotbutton.Uayz547y.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","SVG"],"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":"uWAC+Y,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAC,EAAuF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,EAAQ,CAAC,EAAS,CAAc,qCAA3hB,IAA+F,IAAkE,IAA4B,EAAiC,EAAgB,CAAC,UAAU,CAAC,MAAM,EAAI,CAAC,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,EAA+L,EAAY,CAAC,MAAM,EAA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