{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/kDWPWJwu7LIW5SOyuO3e/qehPAL8HMo3BLb5ifJJz/siteMetadata.js"],
  "sourcesContent": ["// Generated by Framer (013b13c)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>\\n  console.log('Custom script loaded');\\n\\n  window.addEventListener(\\\"load\\\", function () {\\n    console.log('Page loaded'); \\n    setTimeout(() => {\\n      document.body.classList.add(\\\"loaded\\\");\\n    }, 300);\\n  });\\n\\n  // Function to update language toggle links\\n  function updateLinks() {\\n    const links = document.querySelectorAll('a[data-framer-page-link-current]');\\n    console.log('Found language links:', links);\\n\\n    if (links.length === 0) {\\n      console.log('No language links found');\\n      return;\\n    }\\n\\n    links.forEach(link => {\\n      const text = link.textContent.trim();\\n      console.log('Found language toggle link with text:', text);\\n\\n      if (text === 'EN') {\\n        link.setAttribute('href', '#');\\n        link.addEventListener('click', () => changeLanguage('en'));\\n      } else if (text === 'FR') {\\n        link.setAttribute('href', '#');\\n        link.addEventListener('click', () => changeLanguage('fr'));\\n      }\\n    });\\n  }\\n\\n  // Function to handle the language switching\\n  function changeLanguage(targetLang) {\\n    console.log('Language toggle clicked:', targetLang);\\n\\n    let currentPath = window.location.pathname;\\n    console.log('\uD83D\uDD0D Current Path Before Processing:', currentPath);\\n\\n    if (currentPath.startsWith('/en/')) {\\n      currentPath = currentPath.replace(/^\\\\/en\\\\//, '/');\\n    } else if (currentPath.startsWith('/fr/')) {\\n      currentPath = currentPath.replace(/^\\\\/fr\\\\//, '/');\\n    }\\n\\n    if (currentPath === '/' || currentPath === '/accueil') {\\n      currentPath = '';\\n    }\\n\\n    console.log('\uD83D\uDD04 Adjusted Path:', currentPath);\\n\\n    let newPath = targetLang === 'fr' \\n      ? '/fr' + (currentPath || '/accueil')  \\n      : '/en' + (currentPath || '/');       \\n\\n    const finalUrl = window.location.origin + newPath;\\n    console.log('\uD83D\uDE80 Redirecting to:', finalUrl);\\n    window.location.href = finalUrl;\\n  }\\n\\n  document.addEventListener('DOMContentLoaded', () => {\\n    console.log('DOM fully loaded');\\n\\n    const observer = new MutationObserver(() => {\\n      updateLinks();\\n    });\\n\\n    observer.observe(document.body, { childList: true, subtree: true });\\n\\n    updateLinks(); \\n\\n    setTimeout(() => {\\n      updateLinks();\\n    }, 1000);\\n    \\n    // \u2705 **Observe theme changes and persist them**\\n    const themeObserver = new MutationObserver(() => {\\n      const currentTheme = document.documentElement.getAttribute(\\\"data-theme\\\");\\n      if (currentTheme) {\\n        localStorage.setItem(\\\"theme\\\", currentTheme);\\n      }\\n    });\\n\\n    themeObserver.observe(document.documentElement, { attributes: true, attributeFilter: [\\\"data-theme\\\"] });\\n\\n    // \u2705 **Theme toggle logic**\\n    const themeToggle = document.querySelector(\\\"#theme-toggle\\\");\\n    if (themeToggle) {\\n      themeToggle.addEventListener(\\\"click\\\", () => {\\n        const newTheme = document.documentElement.getAttribute(\\\"data-theme\\\") === \\\"dark\\\" ? \\\"light\\\" : \\\"dark\\\";\\n        document.documentElement.setAttribute(\\\"data-theme\\\", newTheme);\\n        localStorage.setItem(\\\"theme\\\", newTheme);\\n      });\\n    }\\n  });\\n</script>\\n\",customHTMLHeadStart:'<style>\\n  /* Prevent flicker by hiding content until theme is applied */\\n  html {\\n    visibility: hidden;\\n    opacity: 0;\\n  }\\n\\n  \\n</style>\\n\\n\\n\\n  <style>\\n   * {\\n      text-wrap: balance;\\n      hyphens: auto;\\n      word-break: normal;\\n    }\\n  </style>\\n\\n\\n\\n\\n\\n\\n<script>\\n  (function() {\\n    const savedTheme = localStorage.getItem(\"theme\") || \"light\"; // Default to light mode\\n    document.documentElement.setAttribute(\"data-theme\", savedTheme);\\n    document.documentElement.style.visibility = \"visible\";\\n    document.documentElement.style.opacity = \"1\";\\n  })();\\n</script>\\n',description:\"Digital portfolio of Montreal-based designer, Dario Farina\",favicon:\"https://framerusercontent.com/assets/jzG8UIsTh5V3koNx71qVfRdhYGo.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/iH6luZ2ZID7qYB2YfbPzJiq70.jpg\",title:\"Dario Farina's Portfolio\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "AACe,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAkkG,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAA0lB,YAAY,6DAA6D,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,qEAAqE,MAAM,0BAA0B,CAAE",
  "names": ["metadata", "params", "activeLocale"]
}
