{"version":3,"file":"siteMetadata.xvVqaygm.mjs","names":[],"sources":["https:/framerusercontent.com/modules/3vih5ZkKVRkkuScxXl91/DbJvLXMAIwYXwFpMVLA1/siteMetadata.js"],"sourcesContent":["// Generated by Framer (1b27997)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:'<script type=\"module\">\\n  import {\\n    initializeApp,\\n    getApps\\n  } from \"https://www.gstatic.com/firebasejs/11.9.1/firebase-app.js\";\\n  import { getAnalytics } from \"https://www.gstatic.com/firebasejs/11.9.1/firebase-analytics.js\";\\n  import {\\n    getAuth,\\n    onAuthStateChanged,\\n    signInWithEmailAndPassword,\\n    createUserWithEmailAndPassword,\\n    GoogleAuthProvider,\\n    signInWithPopup,\\n    updateProfile,\\n    updateEmail,\\n    sendPasswordResetEmail,\\n    signOut\\n  } from \"https://www.gstatic.com/firebasejs/11.9.1/firebase-auth.js\";\\n  import {\\n    getFirestore,\\n    doc,\\n    getDoc,\\n    setDoc,\\n    collection,\\n    addDoc\\n  } from \"https://www.gstatic.com/firebasejs/11.9.1/firebase-firestore.js\";\\n  import {\\n    getFunctions,\\n    httpsCallable\\n  } from \"https://www.gstatic.com/firebasejs/11.9.1/firebase-functions.js\";\\n\\n  // Firebase config\\n  const firebaseConfig = {\\n    apiKey: \"AIzaSyDzMuhx0ewunylgESH7IWGCCa7Ibi40XeI\",\\n    authDomain: \"savure-5371c.firebaseapp.com\",\\n    projectId: \"savure-5371c\",\\n    storageBucket: \"savure-5371c.appspot.com\",\\n    messagingSenderId: \"91162024652\",\\n    appId: \"1:91162024652:web:a5ab35276172d1a04b4069\",\\n    measurementId: \"G-V3VWC31QP0\",\\n  };\\n\\n  // Initialize Firebase only once\\n  let app;\\n  if (getApps().length === 0) {\\n    app = initializeApp(firebaseConfig);\\n  } else {\\n    app = getApps()[0];\\n  }\\n\\n  // Analytics (optional)\\n  getAnalytics(app);\\n\\n  // Initialize Auth, Firestore, and Functions\\n  const auth = getAuth(app);\\n  const firestore = getFirestore(app);\\n  const functions = getFunctions(app);\\n\\n  // Attach everything neatly under window.firebase\\n  window.firebase = {\\n    app,\\n    auth,\\n    firestore,\\n    functions,\\n    // Auth methods\\n    signInWithEmailAndPassword,\\n    createUserWithEmailAndPassword,\\n    GoogleAuthProvider,\\n    signInWithPopup,\\n    updateProfile,\\n    updateEmail,\\n    sendPasswordResetEmail,\\n    signOut,\\n    onAuthStateChanged,\\n    // Firestore helpers\\n    doc,\\n    getDoc,\\n    setDoc,\\n    collection,\\n    addDoc,\\n    // Functions helper\\n    httpsCallable\\n  };\\n\\n  // Optional dynamic header logic\\n  function waitForElement(selector, timeout = 5000) {\\n    return new Promise((resolve, reject) => {\\n      const intervalTime = 100;\\n      let timeElapsed = 0;\\n      const interval = setInterval(() => {\\n        const el = document.querySelector(selector);\\n        if (el) {\\n          clearInterval(interval);\\n          resolve(el);\\n        }\\n        timeElapsed += intervalTime;\\n        if (timeElapsed >= timeout) {\\n          clearInterval(interval);\\n          reject(`Timeout: Element \\'${selector}\\' not found.`);\\n        }\\n      }, intervalTime);\\n    });\\n  }\\n\\n  waitForElement(\\'[data-framer-name=\"Header Button\"]\\')\\n    .then((wrapper) => {\\n      const link = wrapper.querySelector(\"a\");\\n      if (!link) {\\n        console.error(\"❌ Aucun <a> trouv\\xe9 dans \\'Header Button\\'.\");\\n        return;\\n      }\\n\\n      window.firebase.onAuthStateChanged(auth, (user) => {\\n        if (user) {\\n          console.log(\"✅ User authenticated:\", user.uid);\\n          link.href = \"/dashboard\";\\n          link.title = \"Mon compte\";\\n        } else {\\n          console.log(\"ℹ️ No user authenticated\");\\n          link.href = \"/login\";\\n          link.title = \"Se connecter\";\\n        }\\n      });\\n    })\\n    .catch((err) => {\\n      console.error(err);\\n    });\\n</script>\\n\\n\\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\\', \\'729189003086971\\');\\nfbq(\\'track\\', \\'PageView\\');\\n</script>\\n<noscript></noscript>',description:\"Savure livre \\xe0 Gen\\xe8ve des plats faits maison, cuisin\\xe9s chaque semaine avec des produits frais. Commandez en ligne et savourez !\\n\",favicon:\"https://framerusercontent.com/assets/WiUJlQQWsE7mIu4A2sk0ujoJ7w.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/qnOervtIaGEaOCRta9ehCS8Faps.svg\",title:\"Livraison de plats frais \\xe0 Gen\\xe8ve | Savure\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAi6H,YAAY;EAA6I,QAAQ,sEAAsE,OAAO,0BAA0B,YAAY,uEAAuE,MAAM,4CAAmD,CAAE"}