{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Z81eJboRRAsJewfD9EHn/XkGyah1QRDEHSRkXEsWe/CallMeButton.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";// Script injection function\nconst loadRetellSDK=()=>{if(typeof window!==\"undefined\"&&!window.RetellSDK){const script=document.createElement(\"script\");script.src=\"https://cdn.zeitgewinn.ai/retell.bundle.js\";script.async=true;document.head.appendChild(script);}};// Load SDK on initial render\nloadRetellSDK();// Custom EventEmitter\nclass EventEmitter{on(event,listener){if(!this.events[event]){this.events[event]=[];}this.events[event].push(listener);return this;}emit(event,...args){if(this.events[event]){this.events[event].forEach(listener=>listener(...args));}return true;}constructor(){this.events={};}}// Custom RetellClient implementation as fallback\nclass CustomRetellClient extends EventEmitter{async startCall(options){console.log(\"CustomRetellClient: Starte simulierten Anruf mit Token\",options.accessToken);setTimeout(()=>{this.connected=true;this.emit(\"call_started\");// Simulate agent talking after 2 seconds\nthis.talkTimer=setTimeout(()=>{this.isAgentTalking=true;this.emit(\"agent_start_talking\");},2e3);},1e3);return true;}stopCall(){console.log(\"CustomRetellClient: Beende simulierten Anruf\");this.connected=false;if(this.callTimer){clearTimeout(this.callTimer);this.callTimer=null;}if(this.talkTimer){clearTimeout(this.talkTimer);this.talkTimer=null;}this.emit(\"call_ended\");return true;}mute(){console.log(\"CustomRetellClient: Mikrofon stumm geschaltet\");return true;}unmute(){console.log(\"CustomRetellClient: Mikrofon-Stummschaltung aufgehoben\");return true;}constructor(){super();this.connected=false;this.isAgentTalking=false;this.callTimer=null;this.talkTimer=null;console.log(\"CustomRetellClient initialisiert\");}}export function CallMeButton(props){// Destructure props with defaults\nconst{buttonText=\"MIT AMARA VON ZEITGEWINN REDEN\",buttonColor=\"#D4A344\",buttonHoverColor=\"#C99A3B\",activeButtonColor=\"#ef4444\",buttonTextColor=\"#FFFFFF\",iconColor=\"#FFFFFF\",iconSize=16,font=\"Inter\",fontWeight=\"Bold\",fontSize=14,borderColor=\"transparent\",borderRadius=54,borderWidth=0,paddingLeft=24,paddingRight=24,paddingTop=0,paddingBottom=0,waveSpacing=12,hoverScale=1.02,hoverRotate=0,activeWaveColor=\"#D4A344\",activeWaveHeight=15,activeWaveSpeed=.8,idleWaveColor=\"#D4A344\",idleWaveHeight=3,idleWaveSpeed=.4,webhookUrl=\"https://n8n.zeitgewinn.boris-nicolai.de/webhook/amara-von-zeitgewinn-access-token\",useCustomClient=false,showStatusText=true}=props;// Component state\nconst[isLoading,setIsLoading]=useState(false);const[isCallActive,setIsCallActive]=useState(false);const[statusMessage,setStatusMessage]=useState(\"\");const[isAgentSpeaking,setIsAgentSpeaking]=useState(false);const[buttonBgColor,setButtonBgColor]=useState(convertColor(buttonColor));// Refs to prevent unnecessary re-renders\nconst clientRef=useRef(null);const containerRef=useRef(null);// Initialize client only once\nuseEffect(()=>{if(clientRef.current)return;try{console.log(\"RetellWebClient wird initialisiert...\");let client;if(useCustomClient){client=new CustomRetellClient;}else if(window.RetellSDK&&window.RetellSDK.RetellWebClient){client=new window.RetellSDK.RetellWebClient;}else{client=new CustomRetellClient;}// Event listeners\nconst handleCallStarted=()=>{setIsLoading(false);setIsCallActive(true);displayStatus(\"Call active\");};const handleCallEnded=()=>{setIsLoading(false);setIsCallActive(false);setIsAgentSpeaking(false);displayStatus(\"Call ended\");};const handleAgentStartTalking=()=>{setIsAgentSpeaking(true);displayStatus(\"Agent is speaking\");};const handleAgentStopTalking=()=>{setIsAgentSpeaking(false);displayStatus(\"Call active\");};const handleError=error=>{console.error(\"Retell error:\",error);setIsLoading(false);displayStatus(`Error: ${error.message||\"Unknown error\"}`);setTimeout(()=>{setIsCallActive(false);setStatusMessage(\"\");},3e3);};// Register all event listeners\nclient.on(\"call_started\",handleCallStarted);client.on(\"call_ended\",handleCallEnded);client.on(\"agent_start_talking\",handleAgentStartTalking);client.on(\"agent_stop_talking\",handleAgentStopTalking);client.on(\"error\",handleError);// Disable update logs completely\nclient.on(\"update\",()=>{});// Store client in ref\nclientRef.current=client;console.log(\"RetellWebClient erfolgreich initialisiert\");// Cleanup function\nreturn()=>{try{client.stopCall();}catch(e){console.error(\"Error cleaning up client:\",e);}};}catch(err){console.error(\"Fehler bei der Initialisierung des RetellWebClient:\",err);}},[]);// Display status without console logging\nconst displayStatus=message=>{setStatusMessage(message);};// Handle call toggle\nconst toggleCall=async()=>{if(!clientRef.current){displayStatus(\"Error: Client nicht bereit\");return;}if(isCallActive){// Stop call\nsetIsLoading(true);try{clientRef.current.stopCall();}catch(error){console.error(\"Error stopping call:\",error);setIsLoading(false);setIsCallActive(false);displayStatus(\"Error stopping call\");}return;}// Start call\ntry{const stream=await navigator.mediaDevices.getUserMedia({audio:true});stream.getTracks().forEach(track=>track.stop());setIsLoading(true);displayStatus(\"Verbindung wird hergestellt...\");const endpointUrl=webhookUrl||\"/api/retell-token\";const response=await fetch(endpointUrl,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({})});if(!response.ok){throw new Error(`HTTP error! Status: ${response.status}`);}const data=await response.json();await clientRef.current.startCall({accessToken:data.access_token});}catch(error){console.error(\"Error starting call:\",error);setIsLoading(false);displayStatus(`Error: ${error.message||\"Failed to start call\"}`);setTimeout(()=>{setStatusMessage(\"\");},3e3);}};// Audio visualization component\nconst AudioWave=({active,color,maxHeight,speed,barCount=30})=>{const barsData=Array.from({length:barCount},(_,i)=>({id:i,height:Math.floor(Math.random()*maxHeight)+2,delay:i*(.5/barCount)*speed}));return /*#__PURE__*/_jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",height:\"20px\",width:\"100%\",padding:\"2px 0\",marginTop:active?waveSpacing:waveSpacing/2},children:barsData.map(bar=>/*#__PURE__*/_jsx(motion.div,{style:{width:\"2px\",marginLeft:\"1px\",marginRight:\"1px\",backgroundColor:color,borderRadius:\"2px\"},initial:{height:0},animate:{height:active?bar.height:Math.min(bar.height,idleWaveHeight)},transition:{duration:.2+bar.delay*speed,repeat:Infinity,repeatType:\"reverse\",ease:\"easeInOut\",delay:bar.delay}},bar.id))});};// Convert Framer color to CSS color\nfunction convertColor(color){if(typeof color===\"object\"&&color.hasOwnProperty(\"r\")){return`rgba(${color.r}, ${color.g}, ${color.b}, ${color.a||1})`;}return color;}// Spring transition for hover effect\nconst springTransition={type:\"spring\",stiffness:500,damping:60,mass:1};// Calculate which button color to use\nconst getButtonBackgroundColor=()=>{if(isCallActive){return convertColor(activeButtonColor);}return buttonBgColor;};// Map font weight to CSS value\nconst getFontWeight=()=>{const weightMap={Light:300,\"Light Italic\":300,Regular:400,Italic:400,Medium:500,\"Medium Italic\":500,Bold:700,\"Bold Italic\":700,Black:900,\"Black Italic\":900};return weightMap[fontWeight]||400;};// Check if italic style should be applied\nconst isItalic=fontWeight.includes(\"Italic\");return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{fontFamily:font,position:\"relative\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",width:\"auto\"},children:[/*#__PURE__*/_jsxs(motion.button,{onClick:toggleCall,disabled:isLoading,initial:{scale:1,rotate:0},whileHover:{scale:hoverScale,rotate:hoverRotate,transition:springTransition},onHoverStart:()=>{if(!isCallActive){setButtonBgColor(convertColor(buttonHoverColor));}},onHoverEnd:()=>{if(!isCallActive){setButtonBgColor(convertColor(buttonColor));}},style:{position:\"relative\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",width:\"100%\",minWidth:\"260px\",height:\"48px\",paddingLeft:`${paddingLeft}px`,paddingRight:`${paddingRight}px`,paddingTop:`${paddingTop}px`,paddingBottom:`${paddingBottom}px`,borderRadius,fontSize,fontWeight:getFontWeight(),fontStyle:isItalic?\"italic\":\"normal\",color:convertColor(buttonTextColor),backgroundColor:getButtonBackgroundColor(),border:`${borderWidth}px solid ${convertColor(borderColor)}`,boxShadow:\"0 2px 10px rgba(0,0,0,0.1)\",cursor:isLoading?\"not-allowed\":\"pointer\",transition:\"background-color 0.3s ease\",opacity:isLoading?.7:1,textTransform:\"uppercase\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1,textAlign:\"center\",marginRight:\"8px\"},children:isCallActive?\"Anruf beenden\":buttonText}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:convertColor(iconColor)},children:isCallActive?/*#__PURE__*/_jsxs(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"1\",y1:\"1\",x2:\"23\",y2:\"23\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"19\",x2:\"12\",y2:\"23\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"8\",y1:\"23\",x2:\"16\",y2:\"23\"})]}):/*#__PURE__*/_jsxs(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M19 10v2a7 7 0 0 1-14 0v-2\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"19\",x2:\"12\",y2:\"23\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"8\",y1:\"23\",x2:\"16\",y2:\"23\"})]})}),isLoading&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:\"rgba(0,0,0,0.3)\",borderRadius},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"20px\",height:\"20px\",border:\"2px solid white\",borderTopColor:\"transparent\",borderRadius:\"50%\",animation:\"spin 1s linear infinite\"}})})]}),showStatusText&&statusMessage&&/*#__PURE__*/_jsx(\"div\",{style:{marginTop:\"8px\",fontSize:\"12px\",color:\"#888888\",textAlign:\"center\"},children:statusMessage}),/*#__PURE__*/_jsx(AnimatePresence,{children:/*#__PURE__*/_jsx(AudioWave,{active:isCallActive,color:isCallActive?convertColor(activeWaveColor):convertColor(idleWaveColor),maxHeight:isCallActive?activeWaveHeight:idleWaveHeight,speed:isCallActive?activeWaveSpeed:idleWaveSpeed,barCount:30})}),/*#__PURE__*/_jsx(\"style\",{children:`\n          @keyframes spin {\n            0% { transform: rotate(0deg); }\n            100% { transform: rotate(360deg); }\n          }\n        `})]});}// Font options matching Framer's UI\nconst fontOptions=[\"Inter\",\"Arial\",\"Satoshi\",\"Helvetica\",\"Roboto\",\"Archivo\",\"Open Sans\",\"Montserrat\",\"Poppins\",\"Sora\",\"DM Sans\",\"Playfair Display\",\"Raleway\",\"Merriweather\",\"Lato\",\"Source Serif Pro\"];// Font weight options matching Framer's UI\nconst fontWeightOptions=[\"Light\",\"Light Italic\",\"Regular\",\"Italic\",\"Medium\",\"Medium Italic\",\"Bold\",\"Bold Italic\",\"Black\",\"Black Italic\"];// Add Framer property controls\naddPropertyControls(CallMeButton,{buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"MIT AMARA VON ZEITGEWINN REDEN\"},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#D4A344\"},buttonHoverColor:{type:ControlType.Color,title:\"Hover Color\",defaultValue:\"#C99A3B\"},activeButtonColor:{type:ControlType.Color,title:\"Active Call Color\",defaultValue:\"#ef4444\"},buttonTextColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#FFFFFF\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:16,min:8,max:32,step:1},font:{type:ControlType.Enum,title:\"Font\",options:fontOptions,defaultValue:\"Inter\",displaySegmentedControl:false},fontWeight:{type:ControlType.Enum,title:\"Weight\",options:fontWeightOptions,defaultValue:\"Bold\",displaySegmentedControl:false},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:14,min:10,max:24,step:1},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"transparent\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:54,min:0,max:100,step:1},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:10,step:1},paddingLeft:{type:ControlType.Number,title:\"Padding Left\",defaultValue:24,min:0,max:50,step:1},paddingRight:{type:ControlType.Number,title:\"Padding Right\",defaultValue:24,min:0,max:50,step:1},paddingTop:{type:ControlType.Number,title:\"Padding Top\",defaultValue:0,min:0,max:30,step:1},paddingBottom:{type:ControlType.Number,title:\"Padding Bottom\",defaultValue:0,min:0,max:30,step:1},waveSpacing:{type:ControlType.Number,title:\"Wave Spacing\",defaultValue:12,min:0,max:40,step:1},hoverScale:{type:ControlType.Number,title:\"Hover Scale\",defaultValue:1.02,min:1,max:1.2,step:.01},hoverRotate:{type:ControlType.Number,title:\"Hover Rotate (deg)\",defaultValue:0,min:-5,max:5,step:.5},activeWaveColor:{type:ControlType.Color,title:\"Active Wave Color\",defaultValue:\"#D4A344\"},activeWaveHeight:{type:ControlType.Number,title:\"Active Wave Height\",defaultValue:15,min:1,max:30,step:1},activeWaveSpeed:{type:ControlType.Number,title:\"Active Wave Speed\",defaultValue:.8,min:.1,max:2,step:.1},idleWaveColor:{type:ControlType.Color,title:\"Idle Wave Color\",defaultValue:\"#D4A344\"},idleWaveHeight:{type:ControlType.Number,title:\"Idle Wave Height\",defaultValue:3,min:0,max:10,step:1},idleWaveSpeed:{type:ControlType.Number,title:\"Idle Wave Speed\",defaultValue:.4,min:.1,max:1,step:.1},webhookUrl:{type:ControlType.String,title:\"Webhook URL\",defaultValue:\"https://n8n.zeitgewinn.boris-nicolai.de/webhook/amara-von-zeitgewinn-access-token\"},useCustomClient:{type:ControlType.Boolean,title:\"Use Custom Client\",defaultValue:false,description:\"Aktivieren f\\xfcr simulierten Modus ohne SDK (kein echter Anruf)\"},showStatusText:{type:ControlType.Boolean,title:\"Show Status Text\",defaultValue:true}});export default CallMeButton;\nexport const __FramerMetadata__ = {\"exports\":{\"CallMeButton\":{\"type\":\"reactComponent\",\"name\":\"CallMeButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"CallMeButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CallMeButton.map"],
  "mappings": "mLACA,IAAMA,GAAc,IAAI,CAAC,GAAG,OAAOC,EAAS,KAAa,CAACA,EAAO,UAAU,CAAC,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,IAAI,6CAA6CA,EAAO,MAAM,GAAK,SAAS,KAAK,YAAYA,CAAM,CAAE,CAAC,EACvOF,GAAc,EACd,IAAMG,EAAN,KAAkB,CAAC,GAAGC,EAAMC,EAAS,CAAC,OAAI,KAAK,OAAOD,CAAK,IAAG,KAAK,OAAOA,CAAK,EAAE,CAAC,GAAG,KAAK,OAAOA,CAAK,EAAE,KAAKC,CAAQ,EAAS,IAAK,CAAC,KAAKD,KAASE,EAAK,CAAC,OAAG,KAAK,OAAOF,CAAK,GAAG,KAAK,OAAOA,CAAK,EAAE,QAAQC,GAAUA,EAAS,GAAGC,CAAI,CAAC,EAAU,EAAK,CAAC,aAAa,CAAC,KAAK,OAAO,CAAC,CAAE,CAAC,EAC7QC,E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O,MAAM,eAAe,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,aAAa,KAAK,IAAI,EAAE,IAAI,IAAI,KAAK,GAAG,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,qBAAqB,aAAa,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,CAAC,KAAKA,EAAY,MAAM,MAAM,oBAAoB,aAAa,SAAS,EAAE,iBAAiB,CAAC,KAAKA,EAAY,OAAO,MAAM,qBAAqB,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,gBAAgB,CAAC,KAAKA,EAAY,OAAO,MAAM,oBAAoB,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,CAAC,KAAKA,EAAY,MAAM,MAAM,kBAAkB,aAAa,SAAS,EAAE,eAAe,CAAC,KAAKA,EAAY,OAAO,MAAM,mBAAmB,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,cAAc,CAAC,KAAKA,EAAY,OAAO,MAAM,kBAAkB,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,EAAE,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,aAAa,mFAAmF,EAAE,gBAAgB,CAAC,KAAKA,EAAY,QAAQ,MAAM,oBAAoB,aAAa,GAAM,YAAY,kEAAkE,EAAE,eAAe,CAAC,KAAKA,EAAY,QAAQ,MAAM,mBAAmB,aAAa,EAAI,CAAC,CAAC,EAAE,IAAOC,GAAQrF",
  "names": ["loadRetellSDK", "window", "script", "EventEmitter", "event", "listener", "args", "CustomRetellClient", "options", "CallMeButton", "props", "buttonText", "buttonColor", "buttonHoverColor", "activeButtonColor", "buttonTextColor", "iconColor", "iconSize", "font", "fontWeight", "fontSize", "borderColor", "borderRadius", "borderWidth", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "waveSpacing", "hoverScale", "hoverRotate", "activeWaveColor", "activeWaveHeight", "activeWaveSpeed", "idleWaveColor", "idleWaveHeight", "idleWaveSpeed", "webhookUrl", "useCustomClient", "showStatusText", "isLoading", "setIsLoading", "ye", "isCallActive", "setIsCallActive", "statusMessage", "setStatusMessage", "isAgentSpeaking", "setIsAgentSpeaking", "buttonBgColor", "setButtonBgColor", "convertColor", "clientRef", "pe", "containerRef", "ue", "client", "handleCallStarted", "displayStatus", "handleCallEnded", "handleAgentStartTalking", "handleAgentStopTalking", "handleError", "error", "e", "err", "message", "toggleCall", "navigator", "track", "response", "data", "AudioWave", "active", "color", "maxHeight", "speed", "barCount", "barsData", "_", "i", "p", "motion", "bar", "springTransition", "getButtonBackgroundColor", "getFontWeight", "isItalic", "u", "AnimatePresence", "fontOptions", "fontWeightOptions", "addPropertyControls", "ControlType", "CallMeButton_default"]
}
