{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/5Okxh9f20JhHAe17UuO5/6GEKoSfH4lc5O2lo9X3A/kCOx4b6R5.js"],
  "sourcesContent": ["// Generated by Framer (3eae0e1)\nimport siteMetadata from\"https://framerusercontent.com/modules/jitpyv5sDCSG2Ax0xS2N/FZ5EiMx6qqbf55MolLLB/siteMetadata.js\";import*as localizedValues from\"./kCOx4b6R5-0.js\";const valuesByLocaleId={yzBJ2hX3F:localizedValues};const getLocalizedValue=(key,locale)=>{while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value){return value;}}locale=locale.fallback;}};export default function metadata(params,activeLocale){return{bodyClassName:\"framer-body-kCOx4b6R5\",breakpoints:[{hash:\"1qupmyy\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1n19pls\",mediaQuery:\"(min-width: 799px) and (max-width: 1199px)\"},{hash:\"1ouoso2\",mediaQuery:\"(min-width: 390px) and (max-width: 798px)\"},{hash:\"1szgn3r\",mediaQuery:\"(max-width: 389px)\"}],customHTMLBodyEnd:'<script>\\n  document.addEventListener(\"DOMContentLoaded\", function () {\\n    // Helper function to detect the mobile OS\\n    function getMobileOperatingSystem() {\\n      const userAgent = navigator.userAgent || navigator.vendor || window.opera;\\n\\n      if (/android/i.test(userAgent)) {\\n        return \"Android\";\\n      }\\n\\n      if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {\\n        return \"iOS\";\\n      }\\n\\n      return \"unknown\";\\n    }\\n\\n    const mobileOperatingSystem = getMobileOperatingSystem();\\n\\n    // Function to check if the app is installed\\n    const checkIfAppIsInstalled = (schemeUrl, fallbackUrl) => {\\n      let appOpened = false;\\n\\n      // Try opening the app by setting location to the custom scheme URL\\n      window.location = schemeUrl;\\n\\n      // Delay before attempting to redirect\\n      const redirectTimeout = setTimeout(function () {\\n        if (!appOpened) {\\n          // If app does not open within the specified timeout, redirect to the store\\n          window.location.replace(fallbackUrl);\\n        }\\n      }, 2500);\\n\\n      // Listen for visibility change to detect if the app was opened\\n      document.addEventListener(\\'visibilitychange\\', function () {\\n        if (document.visibilityState === \\'hidden\\') {\\n          // If the document becomes hidden, the app was successfully opened\\n          appOpened = true;\\n          clearTimeout(redirectTimeout); // Cancel the redirect\\n        }\\n      });\\n    };\\n\\n    const redirect = () => {\\n      const urlParams = new URLSearchParams(window.location.search);\\n      const utmSource = urlParams.get(\"utm_source\") || \"SafelloWeb\";\\n      const utmMedium = urlParams.get(\"utm_medium\") || \"cpc\"; \\n      const utmCampaign = urlParams.get(\"utm_campaign\") || \"appredirect\"; \\n\\n      // Construct the fallback URL for app stores\\n      let fallbackUrl;\\n      let schemeUrl;\\n      if (mobileOperatingSystem === \"Android\") {\\n        fallbackUrl = `https://play.google.com/store/apps/details?id=com.safello.androidsapp&referrer=${encodeURIComponent(`utm_source=${utmSource}&utm_medium=${utmMedium}&utm_campaign=${utmCampaign}`)}`;\\n        schemeUrl = \\'intent://#Intent;scheme=safello;package=com.safello.androidsapp;end\\'; // Custom intent URL for Android\\n      } else if (mobileOperatingSystem === \"iOS\") {\\n        fallbackUrl = `https://apps.apple.com/app/apple-store/id1514429922?pt=121587178&ct=${encodeURIComponent(`utm_source=${utmSource}&utm_medium=${utmMedium}&utm_campaign=${utmCampaign}`)}&mt=8`;\\n        schemeUrl = \\'safello://\\';  // Custom URL scheme for Safello iOS app\\n      } else {\\n        fallbackUrl = `https://app.safello.com/?referrer=${utmSource}&utm_source=${utmSource}&utm_medium=${utmMedium}&utm_campaign=${utmCampaign}`;\\n        schemeUrl = fallbackUrl;  // Default to web app if not mobile\\n      }\\n\\n      checkIfAppIsInstalled(schemeUrl, fallbackUrl);\\n    };\\n\\n    // Wait for the page to fully load and then perform redirection if path matches\\n    window.addEventListener(\"load\", function () {\\n      const currentPath = window.location.pathname.replace(\\'/sv/\\', \\'/\\');\\n      if (currentPath === \"/appredirect\") {\\n        setTimeout(redirect, 300);\\n      }\\n    });\\n  });\\n</script>\\n',description:siteMetadata(params,activeLocale).description,elements:{},framerSearch:{index:true},robots:\"noindex\",serializationId:\"framer-cFUlD\",title:\"Open Safello App\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "yCACia,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,cAAc,wBAAwB,YAAY,CAAC,CAAC,KAAK,UAAU,WAAW,qBAAqB,EAAE,CAAC,KAAK,UAAU,WAAW,4CAA4C,EAAE,CAAC,KAAK,UAAU,WAAW,2CAA2C,EAAE,CAAC,KAAK,UAAU,WAAW,oBAAoB,CAAC,EAAE,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,EAAsrG,YAAYF,EAAaC,EAAOC,CAAY,EAAE,YAAY,SAAS,CAAC,EAAE,aAAa,CAAC,MAAM,EAAI,EAAE,OAAO,UAAU,gBAAgB,eAAe,MAAM,mBAAmB,SAAS,oBAAoB,CAAE,CAAQ,IAAMC,EAAgB,EACxpIC,EAAqB,CAAC,QAAU,CAAC,gBAAkB,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,GAAG,CAAC,EAAE,QAAU,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,GAAG,CAAC,EAAE,mBAAqB,CAAC,KAAO,UAAU,CAAC,CAAC",
  "names": ["metadata", "params", "activeLocale", "metadataVersion", "__FramerMetadata__"]
}
