{"version":3,"file":"shared-lib.DPtpADkp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mcVLy5vYO0t5SWPFbfHm/Czq343d0SpC4jEpEwoBX/siteMetadata.js"],"sourcesContent":["// Generated by Framer (569b461)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<div id=\\\"chat-toggle\\\" role=\\\"button\\\" aria-label=\\\"Chat \\xf6ffnen\\\" style=\\\"position:fixed;bottom:20px;right:20px;z-index:1001;cursor:pointer;display:block;\\\" onclick=\\\"toggleChat()\\\">\\n  <div id=\\\"chat-icon\\\" style=\\\"width:60px;height:60px;background:#1E3A8A;border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;font-weight:bold;cursor:pointer;\\\">Chat</div>\\n  <div id=\\\"welcome-text\\\" style=\\\"position:absolute;bottom:90px;right:0;background:#1E3A8A;color:white;padding:8px 12px;border-radius:20px;opacity:0;transition:opacity 0.3s;font-size:14px;width:250px;max-width:400px;white-space:normal;text-align:left;word-break:break-word;\\\">Hallo! Ich bin Katja, Ihr hilfreicher Assistent 😊</div>\\n</div>\\n<div id=\\\"chat-container\\\" style=\\\"position:fixed;bottom:20px;right:20px;width:300px;height:400px;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,0.1);background:#fff;padding:0;z-index:1000;transform:scale(0.8);opacity:0;transition:transform 0.3s ease, opacity 0.3s ease;overflow:hidden;display:none;\\\">\\n  <div style=\\\"background:#1E3A8A;color:white;padding:15px;text-align:center;font-weight:bold;position:relative;overflow:hidden;\\\">\\n    Assistent\\n    <span onclick=\\\"toggleChat()\\\" style=\\\"position:absolute;top:10px;right:15px;cursor:pointer;color:white;font-size:24px;font-weight:bold;\\\" aria-label=\\\"Chat schlie\\xdfen\\\">\\xd7</span>\\n  </div>\\n  <div style=\\\"height:300px;display:flex;flex-direction:column;\\\">\\n    <div id=\\\"chat-log\\\" style=\\\"flex:1;overflow-y:scroll;padding:10px;background:#f8f9fa;word-break:break-word;\\\"></div>\\n    <div id=\\\"typing-indicator\\\" style=\\\"display:none;text-align:left;padding:10px;color:#1E3A8A;font-style:italic;flex-shrink:0;\\\">\\n      <strong>Katja:</strong> <span class=\\\"dots\\\"><span>.</span><span>.</span><span>.</span></span>\\n    </div>\\n  </div>\\n  <div style=\\\"padding:10px;display:flex;\\\">\\n    <input id=\\\"chat-input\\\" type=\\\"text\\\" placeholder=\\\"Ihre Nachricht...\\\" aria-label=\\\"Nachricht eingeben\\\" style=\\\"flex:1;padding:8px;border:1px solid #ddd;border-radius:20px;margin-right:5px;outline:none;word-break:break-word;font-size:16px;\\\">\\n    <button onclick=\\\"sendMessage()\\\" style=\\\"padding:8px 15px;background:#1E3A8A;color:white;border:none;border-radius:20px;cursor:pointer;\\\" aria-label=\\\"Nachricht senden\\\">Senden</button>\\n  </div>\\n</div>\\n<style>\\n.dots span { opacity: 0; animation: blink 1.5s infinite; }\\n.dots span:nth-child(1) { animation-delay: 0s; }\\n.dots span:nth-child(2) { animation-delay: 0.2s; }\\n.dots span:nth-child(3) { animation-delay: 0.4s; }\\n@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }\\n@media (max-width: 768px) {\\n  #welcome-text { right: 0; max-width: calc(100vw - 80px); text-align: left; }\\n  #chat-container { width: calc(100vw - 40px); height: 60vh; }\\n}\\n</style>\\n<script>\\nconst API_KEY = 'xai-fgFvgnnalKgmR59iw0UorpGw9tmCUVLrTYgnRO30lJ9qS2thTufAJfSXrJmvLO8d457RxsTPHV2Ycx3T';\\nlet chatVisible = false;\\nlet messages = [\\n  {\\n    role: 'system',\\n    content: 'Du bist Katja, Assistentin bei MLD-Solutions. Unternehmen: Deutscher Digitalisierungs-Partner f\\xfcr Effizienzsteigerung, Kostensenkung, Prozessoptimierung ohne gro\\xdfe Umstellungen. Fokus: Kontinuierliche Verbesserung, Kreativit\\xe4t, kundenorientierte L\\xf6sungen. Team: Berat K\\xf6le (Projektmanagement, Planung), Fynn Moore (Techniker, IT/Automatisierung von Konzept bis Umsetzung), Joshua Schmidt (Strategie, Neukunden, Abwicklung; Kontakt: +49 1512 9558529, joshua.schmidt@mld-solutions.de). Adresse: Altenkamp 1, 33758 Schlo\\xdf Holte-Stukenbrock. Dienstleistungen: Prozessoptimierung mit Branchenerfahrung (\\xc4nderungen, IT-/Sonderbau-L\\xf6sungen), Automatisierung von Maschinen/Anlagen (Sondermaschinenbau mit CE-Kennzeichen), IoT-Implementierung (Datenverkn\\xfcpfung, \\xdcberwachung, Steuerung), Individuelle KI-Modelle (Assistenzsysteme in Verwaltung), Hyperautomation f\\xfcr Kosteneinsparungen. Vorgehensweise: 1. Kostenloser Quick-Check (Optimierungspotenziale ermitteln), 2. Pilotprojekt (geringer Aufwand), 3. Langfristige Partnerschaft. Vorteile: Weniger Fehler, h\\xf6here Effizienz/Productivit\\xe4t; Transparente, skalierbare Prozesse mit Echtzeit-\\xdcberwachung; Kosteneinsparungen. Antworte kurz, knapp, menschlich in eigenen Worten, ohne Markdown. Siezen Sie den Nutzer. Hilf zielf\\xfchrend, schlage Beratungstermine vor. Bei Begriffen wie „Gespr\\xe4ch“, „Termin“, „Buch“, „Kontakt“, „Telefon“, „Info“, „Adresse“: Leite sofort zur Kontaktseite weiter, ohne eine Antwort im Chat anzuzeigen oder die API aufzurufen.'\\n  },\\n  {\\n    role: 'assistant',\\n    content: 'Hallo! Ich bin Katja von MLD Solutions. Was kann ich f\\xfcr Sie tun?'\\n  }\\n];\\n\\nfunction toggleChat() {\\n  const container = document.getElementById('chat-container');\\n  const toggle = document.getElementById('chat-toggle');\\n  chatVisible = !chatVisible;\\n  if (chatVisible) {\\n    container.style.display = 'block';\\n    toggle.style.display = 'none';\\n    setTimeout(() => {\\n      container.style.transform = 'scale(1)';\\n      container.style.opacity = '1';\\n    }, 10);\\n  } else {\\n    container.style.transform = 'scale(0.8)';\\n    container.style.opacity = '0';\\n    setTimeout(() => {\\n      container.style.display = 'none';\\n      toggle.style.display = 'block';\\n    }, 300);\\n  }\\n}\\n\\nfunction startTyping() {\\n  document.getElementById('typing-indicator').style.display = 'block';\\n}\\n\\nfunction stopTyping() {\\n  document.getElementById('typing-indicator').style.display = 'none';\\n}\\n\\nfunction addMessage(role, content) {\\n  const log = document.getElementById('chat-log');\\n  log.innerHTML += `<p style=\\\"margin:5px 0;\\\"><strong style=\\\"color:${role === 'Katja' ? '#1E3A8A' : '#333'}\\\">${role}:</strong> <span style=\\\"color:#555;\\\">${content}</span></p>`;\\n  log.scrollTop = log.scrollHeight;\\n}\\n\\nfunction sendMessage() {\\n  const input = document.getElementById('chat-input');\\n  const userMsg = input.value.trim();\\n  if (!userMsg) return;\\n  if (userMsg.length > 500) {\\n    addMessage('Katja', 'Ihre Nachricht ist zu lang. Bitte k\\xfcrzen Sie sie auf 500 Zeichen.');\\n    return;\\n  }\\n  addMessage('Nutzer', userMsg);\\n  input.value = '';\\n  messages.push({ role: 'user', content: userMsg });\\n  startTyping();\\n  const redirectKeywords = ['gespr\\xe4ch', 'termin', 'buch', 'kontakt', 'telefon', 'info', 'adresse'];\\n  if (redirectKeywords.some(keyword => userMsg.toLowerCase().includes(keyword))) {\\n    stopTyping();\\n    toggleChat(); // Chatbot schlie\\xdfen\\n    setTimeout(() => {\\n      window.location.href = 'https://www.mld-solutions.de/kontakt';\\n    }, 300); // Verz\\xf6gerung f\\xfcr Schlie\\xdfanimation\\n    return;\\n  }\\n\\n  fetch('https://api.x.ai/v1/chat/completions', {\\n    method: 'POST',\\n    headers: {\\n      'Content-Type': 'application/json',\\n      'Authorization': `Bearer ${API_KEY}`\\n    },\\n    body: JSON.stringify({\\n      model: 'grok-4-fast-non-reasoning',\\n      messages: messages,\\n      stream: false,\\n      temperature: 0,\\n      max_tokens: 150\\n    })\\n  })\\n  .then(response => {\\n    if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);\\n    return response.json();\\n  })\\n  .then(data => {\\n    stopTyping();\\n    const botResponse = data.choices[0].message.content;\\n    addMessage('Katja', botResponse);\\n    messages.push({ role: 'assistant', content: botResponse });\\n  })\\n  .catch(error => {\\n    stopTyping();\\n    addMessage('Katja', 'Entschuldigung, es gab ein Problem. Bitte versuchen Sie es erneut.');\\n    console.error('API Error Details:', error.message, error.stack);\\n  });\\n}\\n\\nif (typeof window !== 'undefined') {\\n  window.onload = () => {\\n    const welcomeText = document.getElementById('welcome-text');\\n    welcomeText.style.opacity = '1';\\n    setTimeout(() => { welcomeText.style.opacity = '0'; }, 5000);\\n    addMessage('Katja', messages[1].content);\\n\\n    // Entfernt: Automatisches \\xd6ffnen auf der Kontaktseite\\n    document.getElementById('chat-input').addEventListener('keypress', function(event) {\\n      if (event.key === 'Enter') {\\n        sendMessage();\\n      }\\n    });\\n  };\\n}\\n</script>\",description:\"Wir helfen Unternehmen bei der Digitalisierung, um Prozesse zu optimieren, Effizienz zu steigern und Kosten zu senken. \",favicon:\"https://framerusercontent.com/assets/AthKrFjraCuznKHWyJPnkUQxjN0.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/Q1sjKE8QqOiGqe3YP0YD5lq0E.png\",title:\"MLD-Solutions - Gemeinsam digitalisieren wir Ihre Zukunft\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA48P,YAAY,0HAA0H,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,qEAAqE,MAAM,4DAA4D"}