{"version":3,"file":"shared-lib.DtFymJWN.mjs","names":[],"sources":["https:/framerusercontent.com/modules/sMGV774wXR3EgZNSjATC/8BrF6LFtd6yNdEOsuqoJ/siteMetadata.js"],"sourcesContent":["// Generated by Framer (504870a)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:\"<script>\\n    !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(\\\".\\\");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement(\\\"script\\\")).type=\\\"text/javascript\\\",p.crossOrigin=\\\"anonymous\\\",p.async=!0,p.src=s.api_host.replace(\\\".i.posthog.com\\\",\\\"-assets.i.posthog.com\\\")+\\\"/static/array.js\\\",(r=t.getElementsByTagName(\\\"script\\\")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a=\\\"posthog\\\",u.people=u.people||[],u.toString=function(t){var e=\\\"posthog\\\";return\\\"posthog\\\"!==a&&(e+=\\\".\\\"+a),t||(e+=\\\" (stub)\\\"),e},u.people.toString=function(){return u.toString(1)+\\\".people (stub)\\\"},o=\\\"init Ie Ts Ms Ee Es Rs capture Ge calculateEventProperties Os register register_once register_for_session unregister unregister_for_session js getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey canRenderSurveyAsync identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty Ds Fs createPersonProfile Ls Ps opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing Cs debug I As getPageViewId captureTraceFeedback captureTraceMetric\\\".split(\\\" \\\"),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);\\n    posthog.init('phc_ObXMohLFobxUESE8QR6CyrLMpZtzYgyVSzAWAHR1mWf', {\\n        api_host: 'https://us.i.posthog.com',\\n        defaults: '2025-05-24',\\n        person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well\\n    })\\n</script>\\n\\n<!-- Google tag (gtag.js) -->\\n<script async=\\\"\\\" src=\\\"https://www.googletagmanager.com/gtag/js?id=G-HK213QXR4Z\\\"></script>\\n<script>\\n  window.dataLayer = window.dataLayer || [];\\n  function gtag(){dataLayer.push(arguments);}\\n  gtag('js', new Date());\\n\\n  gtag('config', 'G-HK213QXR4Z');\\n</script>\\n\\n<script>\\n// Global Authentication Handler for Supabase Magic Links\\n(function() {\\n  // Check if we're on a page with auth tokens in the URL\\n  if (window.location.hash && window.location.hash.includes('access_token')) {\\n    const hashParams = new URLSearchParams(window.location.hash.substring(1));\\n    const access_token = hashParams.get('access_token');\\n    const refresh_token = hashParams.get('refresh_token');\\n    \\n    if (access_token && refresh_token) {\\n      try {\\n        // Parse the JWT token to get user info\\n        const base64Url = access_token.split('.')[1];\\n        const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');\\n        const jsonPayload = decodeURIComponent(atob(base64).split('').map(function(c) {\\n          return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\\n        }).join(''));\\n        \\n        const tokenData = JSON.parse(jsonPayload);\\n        \\n        // Create session with 90-day expiry (or more)\\n        const ninetyDaysFromNow = new Date();\\n        ninetyDaysFromNow.setDate(ninetyDaysFromNow.getDate() + 90); // Change to any number of days\\n        \\n        const session = {\\n          access_token: access_token,\\n          refresh_token: refresh_token,\\n          expires_at: ninetyDaysFromNow.toISOString(),\\n          user: {\\n            email: tokenData.email,\\n            id: tokenData.sub\\n          }\\n        };\\n        \\n        // Store the session\\n        localStorage.setItem('supabase_session', JSON.stringify(session));\\n        \\n        // Clean the URL\\n        window.history.replaceState(null, '', window.location.pathname);\\n        \\n        // Check if we have a return URL stored\\n        const returnUrl = localStorage.getItem('auth_return_url');\\n        if (returnUrl && returnUrl !== window.location.href) {\\n          localStorage.removeItem('auth_return_url');\\n          // Redirect to the original protected page\\n          window.location.href = returnUrl;\\n        } else {\\n          // Reload the page to update auth state\\n          window.location.reload();\\n        }\\n      } catch (error) {\\n        console.error('Error processing auth token:', error);\\n      }\\n    }\\n  }\\n})();\\n</script>\",description:\"ECO-OS's sustainability software suite simplifies ESG reporting and empowers data-driven decisions to drive business growth.\",favicon:\"https://framerusercontent.com/assets/baDxbi3fdOSDQJQiTuTNOoHCeU.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/5zybJKShlH83LUX1ujrypnMVWUk.png\",title:\"ECO-OS | Intelligent Sustainability. Measureable Business Value.\"};}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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA0iJ,YAAY,+HAA+H,QAAQ,sEAAsE,OAAO,0BAA0B,YAAY,uEAAuE,MAAM,mEAAmE"}