{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/4Wwo5oG5wpI6MLdnn2HX/OuaGeycdDpjVKcaGmprV/LNsyR88i_.js"],
  "sourcesContent": ["// Generated by Framer (5012657)\nimport siteMetadata from\"https://framerusercontent.com/modules/m4GjdZuMjdNzYV8auh1b/lIqH5Ope2aBjDcOvs61t/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1vws44c\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"rrq3t8\",mediaQuery:\"(min-width: 810px) and (max-width: 1199px)\"},{hash:\"1ehovqc\",mediaQuery:\"(max-width: 809px)\"}],customHTMLHeadEnd:\"<!-- page-protection.html (include in calc/library/admin pages) -->\\n<style>\\n  /* Smooth auth transitions */\\n  body {\\n    opacity: 0;\\n    transition: opacity 0.3s ease;\\n  }\\n  body.auth-ready {\\n    opacity: 1;\\n  }\\n</style>\\n\\n<script>\\n(async function() {\\n  // Get page access requirements\\n  const PAGE_ACCESS = {\\n    '/private/calculators': ['calculator', 'library', 'admin'],\\n    '/private/library': ['library', 'admin'],\\n    '/private/admin': ['admin']\\n  };\\n  \\n  // Determine current page\\n  const currentPath = window.location.pathname;\\n  const requiredLevels = Object.entries(PAGE_ACCESS)\\n    .find(([path]) => currentPath.includes(path))?.[1] || [];\\n  \\n  if (requiredLevels.length === 0) {\\n    // Not a protected page\\n    document.body.classList.add('auth-ready');\\n    return;\\n  }\\n  \\n  try {\\n  // Handle magic link if present\\n  await window.authManager.handleAuthParams();\\n  \\n  // Check authentication (use prefetched if available)\\n  const { session, profile } = window.authPromise \\n    ? await window.authPromise \\n    : await window.authManager.checkAuth();\\n  \\n  if (!session) {\\n    window.authManager.redirect('/login');\\n    return;\\n  }\\n    \\n    // Check access level\\n    if (!window.authManager.canAccess(requiredLevels)) {\\n      window.authManager.redirect('/login?error=insufficient_access');\\n      return;\\n    }\\n    \\n    // Success - show page\\n    document.body.classList.add('auth-ready');\\n    \\n  } catch (error) {\\n    console.error('Auth error:', error);\\n    window.authManager.redirect('/login?error=auth_error');\\n  }\\n})();\\n</script>\\n<script>\\n  window.PAGE_REQUIRES = ['admin'];\\n</script>\",description:siteMetadata(params,activeLocale).description,elements:{},framerSearch:{index:false},robots:\"noindex\",serializationId:\"framer-R6mIs\",title:\"Dashboard | Thermobreak\",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": "yCACyI,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,UAAU,WAAW,qBAAqB,EAAE,CAAC,KAAK,SAAS,WAAW,4CAA4C,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,YAA+nD,YAAYF,EAAaC,EAAOC,CAAY,EAAE,YAAY,SAAS,CAAC,EAAE,aAAa,CAAC,MAAM,EAAK,EAAE,OAAO,UAAU,gBAAgB,eAAe,MAAM,0BAA0B,SAAS,oBAAoB,CAAE,CAAQ,IAAMC,EAAgB,EACluEC,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__"]
}
