{"version":3,"file":"siteMetadata.Bk9KVLSl.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zC8FNcjFkilAw2fg153N/nNE0vhRgEY41K4oHvkHd/siteMetadata.js"],"sourcesContent":["// Generated by Framer (cbc36cd)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:'<!-- Usercentrics -->\\n<script src=\"https://web.cmp.usercentrics.eu/modules/autoblocker.js\"></script>\\n<script id=\"usercentrics-cmp\" src=\"https://web.cmp.usercentrics.eu/ui/loader.js\" data-settings-id=\"XoGaY9om2_-wtx\" async=\"\"></script>\\n',customHTMLBodyStart:'TOIMIVA WEBCHAT 26.11.2025\\n\\n<script>\\ndocument.addEventListener(\"DOMContentLoaded\", function () {\\n\\nif (!localStorage.moodySessionId) {\\n  localStorage.moodySessionId = \"sess_\" + Math.random().toString(36).substring(2);\\n}\\n\\nconst ENDPOINT = \"https://moodymediapalvelut.app.n8n.cloud/webhook/uuschat22\";\\n\\n/* CSS */\\nconst style = document.createElement(\"style\");\\nstyle.textContent = `\\n  #moody-chat-launcher {\\n    position: fixed;\\n    left: 24px;\\n    bottom: 24px;\\n    width: 80px;\\n    height: 80px;\\n    border-radius: 100%;\\n    cursor: pointer;\\n    z-index: 999999;\\n    background-image: url(\"https://throbbing-wind-23d2.moody-db4.workers.dev\");\\n    background-size: cover;\\n    background-position: center;\\n    background-repeat: no-repeat;\\n    background-color: transparent;\\n    box-shadow: 0 4px 12px rgba(0,0,0,0.15);\\n    overflow: hidden;\\n    border: none;\\n  }\\n\\n  #moody-chat-window {\\n    position: fixed;\\n    left: 24px;\\n    bottom: 120px;\\n    width: 360px;\\n    height: 70vh;\\n    max-height: 70vh;\\n    background: #ffffff;\\n    border-radius: 16px;\\n    box-shadow: 0 10px 30px rgba(0,0,0,0.20);\\n    display: none;\\n    flex-direction: column;\\n    overflow: hidden;\\n    z-index: 999999;\\n    font-family: sans-serif;\\n  }\\n\\n#chat-messages { flex-grow: 1; padding: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; /* iPhone smooth scroll */ overscroll-behavior: contain; /* est\\xe4\\xe4 scroll-bugit */ }\\n\\n\\n#chat-content {\\n  overflow: hidden;\\n  display: flex;\\n  flex-direction: column;\\n  height: 100%;\\n}\\n  .bubble {\\n    padding: 8px 12px;\\n    margin-bottom: 10px;\\n    max-width: 80%;\\n    border-radius: 12px;\\n    font-size: 14px;\\n    line-height: 1.35;\\n    white-space: pre-wrap;\\n  }\\n\\n  .bubble.user {\\n    background: #1877f2;\\n    margin-left: auto;\\n    color: #fff;\\n  }\\n\\n  .bubble.bot {\\n    background: #f8f8f8;\\n    border: 1px solid #ececec;\\n  }\\n\\n  .chat-input-area {\\n    padding: 10px;\\n    display: flex;\\n    border-top: 1px solid #efefef;\\n  }\\n\\n  .chat-input-area input {\\n    flex: 1;\\n    padding: 10px;\\n    border: 1px solid #ddd;\\n    border-radius: 6px;\\n    font-size: 16px !important;\\n    outline: none;\\n  }\\n\\n  .chat-input-area button {\\n    margin-left: 8px;\\n    background: black;\\n    color: white;\\n    border: none;\\n    padding: 10px 16px;\\n    border-radius: 6px;\\n    cursor: pointer;\\n    font-size: 16px !important;\\n    font-weight: bold;\\n  }\\n@supports (height: 100dvh) {\\n  #moody-chat-window {\\n    height: 70dvh;\\n    max-height: 70dvh;\\n  }\\n}\\n\\nhtml, body {\\n  height: 100%;\\n  overflow-x: hidden;\\n}\\n`;\\ndocument.head.appendChild(style);\\n\\n/* LAUNCHER */\\nconst launcher = document.createElement(\"div\");\\nlauncher.id = \"moody-chat-launcher\";\\ndocument.body.appendChild(launcher);\\n\\n/* CHAT WINDOW */\\nconst chatWindow = document.createElement(\"div\");\\nchatWindow.id = \"moody-chat-window\";\\nchatWindow.innerHTML = `\\n  <div style=\"padding:14px; border-bottom:1px solid #efefef; display:flex; align-items:center;\">\\n    <div class=\"avatar\" style=\"\\n      width:40px;height:40px;border-radius:100%;\\n      background-image:url(\\'https://throbbing-wind-23d2.moody-db4.workers.dev\\');\\n      background-size:cover;\"></div>\\n    <span style=\"margin-left:10px;\">Saara • Moody</span>\\n    <div id=\"chat-close\" style=\"margin-left:auto; cursor:pointer; font-size:32px;\">\\xd7</div>\\n  </div>\\n\\n  <div id=\"chat-messages\"></div>\\n\\n  <div class=\"chat-input-area\">\\n    <input id=\"chat-input\" placeholder=\"Kirjoita viesti…\" autocomplete=\"off\">\\n    <button id=\"chat-send\">L\\xe4het\\xe4</button>\\n  </div>\\n`;\\ndocument.body.appendChild(chatWindow);\\n\\n/* LOGIC */\\nconst closeBtn = document.getElementById(\"chat-close\");\\nconst input = document.getElementById(\"chat-input\");\\nconst sendBtn = document.getElementById(\"chat-send\");\\nconst messages = document.getElementById(\"chat-messages\");\\n\\nlauncher.onclick = function () {\\n  chatWindow.style.display = \"flex\";\\n  launcher.style.display = \"none\";\\n\\n  if (!messages.hasChildNodes()) {\\n    addMessage(\"bot\", \"Hei! Miten voin auttaa t\\xe4n\\xe4\\xe4n?\");\\n  }\\n};\\n\\ncloseBtn.onclick = function () {\\n  chatWindow.style.display = \"none\";\\n  launcher.style.display = \"block\";\\n};\\n\\n\\nfunction addMessage(sender, text) {\\n  const bubble = document.createElement(\"div\");\\n  bubble.className = \"bubble \" + sender;\\n  bubble.innerText = text;\\n  messages.appendChild(bubble);\\n  messages.scrollTop = messages.scrollHeight;\\n}\\n\\nfunction showTyping() {\\n  if (document.getElementById(\"typing-indicator\")) return;\\n  const el = document.createElement(\"div\");\\n  el.id = \"typing-indicator\";\\n  el.className = \"bubble bot\";\\n  el.innerText = \"Saara kirjoittaa…\";\\n  messages.appendChild(el);\\n  messages.scrollTop = messages.scrollHeight;\\n}\\n\\nfunction hideTyping() {\\n  const el = document.getElementById(\"typing-indicator\");\\n  if (el) el.remove();\\n}\\n\\nasync function sendMessage() {\\n  const text = input.value.trim();\\n  if (!text) return;\\n\\n  addMessage(\"user\", text);\\n  input.value = \"\";\\n\\n  showTyping();\\n\\n  try {\\n    const res = await fetch(ENDPOINT, {\\n      method: \"POST\",\\n      headers: {\"Content-Type\": \"application/json\"},\\n      body: JSON.stringify({\\n        message: text,\\n        sessionId: localStorage.moodySessionId\\n      })\\n    });\\n\\n    const data = await res.json();\\n    hideTyping();\\n    addMessage(\"bot\", data.output || data.reply || \"Odotatko ihan pikku hetken\");\\n  } catch {\\n    hideTyping();\\n    addMessage(\"bot\", \"Virhe yhteydess\\xe4.\");\\n  }\\n}\\n\\nsendBtn.onclick = sendMessage;\\ninput.addEventListener(\"keypress\", (e) => {\\n  if (e.key === \"Enter\") sendMessage();\\n});\\n\\n});\\n</script>\\n',customHTMLHeadStart:'<!-- ✅ Usercentrics CMP -->\\n<script id=\"usercentrics-cmp\" src=\"https://app.usercentrics.eu/browser-ui/latest/loader.js\" data-settings-id=\"XoGaY9om2_-wtx\" async=\"\"></script>\\n\\n<!-- ✅ Google Tag Manager (async) -->\\n<script async=\"\" src=\"https://www.googletagmanager.com/gtm.js?id=GTM-TF5VGPD\"></script>\\n<!-- ✅ End Google Tag Manager -->\\n\\n<!-- ✅ Proper Meta Viewport (fixes mobile-friendly issue) -->\\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\\n\\n<!-- ✅ Preload LCP image for faster Largest Contentful Paint -->\\n<link rel=\"preload\" as=\"image\" href=\"https://framerusercontent.com/images/xdaPXOEtPIASFiIeYk976HyJA.svg\" fetchpriority=\"high\">\\n\\n<!-- ✅ Preconnect Google Fonts for faster font loading -->\\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin=\"\">\\n\\n<style>\\n  /* ✅ Force Google Fonts to use display=swap */\\n  @font-face {\\n    font-display: swap;\\n  }\\n\\n  /* ✅ Optional: Blur effect for lazy-loaded images */\\n  .lazy-load {\\n    filter: blur(10px);\\n    transition: filter 0.3s ease-out;\\n  }\\n  .lazy-load.loaded {\\n    filter: blur(0);\\n  }\\n</style>\\n\\n<script>\\n  document.addEventListener(\"DOMContentLoaded\", () => {\\n    // ✅ Ensure LCP image is not lazy-loaded and prioritized\\n    const lcpImage = document.querySelector(\\'img[src*=\"xdaPXOEtPIASFiIeYk976HyJA.svg\"]\\');\\n    if (lcpImage) {\\n      lcpImage.removeAttribute(\"loading\"); // Remove lazy\\n      lcpImage.setAttribute(\"fetchpriority\", \"high\"); // Prioritize fetch\\n    }\\n\\n    // ✅ Intersection Observer for lazy loading other images\\n    const lazyImages = [\\n      \"https://framerusercontent.com/images/7zVZAj2zN652O2Rtq9jq2ZnagI.png\",\\n      \"https://framerusercontent.com/images/5z8PEjRwPBoLDtk0KmOSKIbZig.png\",\\n      \"https://framerusercontent.com/images/C8vAjy4MX8JoFYw7SwuFiLakV4.png\",\\n      \"https://framerusercontent.com/images/9BRmj5dq79jzjrXoFsS9dNoOzEo.png\",\\n      \"https://framerusercontent.com/images/ki5vagVXKUk2qmj2KbDDU2aIAig.png\",\\n      \"https://framerusercontent.com/images/2oUWmkR2e4FEu1ivEmxV0SIv5w.png\",\\n      \"https://framerusercontent.com/images/5e39BQLWuhvGzTF1gYA0yQPXlc.png\",\\n      \"https://framerusercontent.com/images/WemN4l7I2x5pGgs4ktD5lhdRY.png\",\\n      \"https://framerusercontent.com/images/9eTrec0tYGoRkDKqHHhhRlumMs.png\",\\n      \"https://framerusercontent.com/images/DNOET4WiPxCWa0azbqCi1ROzg.png\",\\n      \"https://framerusercontent.com/images/2yli42eDrpgPijRzF02wcM1ok.png\"\\n    ];\\n\\n    // Replace src with data-src to prevent immediate load\\n    document.querySelectorAll(\\'img\\').forEach(img => {\\n      if (lazyImages.includes(img.src)) {\\n        img.setAttribute(\\'data-src\\', img.src);\\n        img.removeAttribute(\\'src\\');\\n        img.classList.add(\\'lazy-load\\'); // Optional blur effect\\n      }\\n    });\\n\\n    // Intersection Observer\\n    const observer = new IntersectionObserver((entries, observer) => {\\n      entries.forEach(entry => {\\n        if (entry.isIntersecting) {\\n          const img = entry.target;\\n          const dataSrc = img.getAttribute(\\'data-src\\');\\n          if (dataSrc) {\\n            img.setAttribute(\\'src\\', dataSrc);\\n            img.onload = () => {\\n              img.classList.add(\\'loaded\\'); // Remove blur on load\\n            };\\n            img.removeAttribute(\\'data-src\\');\\n          }\\n          observer.unobserve(img);\\n        }\\n      });\\n    }, {\\n      rootMargin: \"200px 0px\", // Start loading slightly before visible\\n      threshold: 0.1\\n    });\\n\\n    // Observe all lazy images\\n    document.querySelectorAll(\\'img.lazy-load\\').forEach(img => {\\n      observer.observe(img);\\n    });\\n  });\\n</script>\\n<!-- Meta Pixel Code -->\\n<script>\\n!function(f,b,e,v,n,t,s)\\n{if(f.fbq)return;n=f.fbq=function(){n.callMethod?\\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};\\nif(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=\\'2.0\\';\\nn.queue=[];t=b.createElement(e);t.async=!0;\\nt.src=v;s=b.getElementsByTagName(e)[0];\\ns.parentNode.insertBefore(t,s)}(window, document,\\'script\\',\\n\\'https://connect.facebook.net/en_US/fbevents.js\\');\\nfbq(\\'init\\', \\'1551443715610719\\');\\nfbq(\\'track\\', \\'PageView\\');\\n</script>\\n\\n<noscript></noscript>',description:\"Ota k\\xe4ytt\\xf6\\xf6n tarkasti testattu toimintamalli, joka tuo yrityksellesi tarjouspyynt\\xf6j\\xe4 ja lis\\xe4\\xe4 myynti\\xe4. Lopeta arvailu ja tee uusien asiakkaiden hankkimisesta ennustettavaa. Katso lis\\xe4\\xe4!\",favicon:\"https://framerusercontent.com/assets/3QNifTGvlGQHDKoepqDDSM97A.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/qI6oR2ynOUvivtfzanqv8twB74.png\",title:\"Somemainontaa joka tuo asiakkaita | Moody\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"oDACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;EAAiP,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmkL,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA4pI,YAAY,4LAA0N,QAAQ,qEAAqE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,4CAA4C"}