{"version":3,"file":"preload-helper-Bl0t1Iwl.js","names":[],"sources":["../../../app/javascript/config/runtime.js"],"sourcesContent":["// Build-time config shared by the web and native builds. See ADR-013.\n\n// Both Vite configs define VITE_NATIVE as a literal, so this folds at build time\n// and the bundler drops native-only branches from the web bundle.\nexport const IS_NATIVE = import.meta.env.VITE_NATIVE === \"true\";\n\n// Empty on web, so apiUrl(\"/graphql\") stays the same-origin \"/graphql\".\nexport const API_BASE_URL = IS_NATIVE ? import.meta.env.VITE_API_BASE_URL : \"\";\n\nexport const apiUrl = (path) => `${API_BASE_URL}${path}`;\n\n// URL scheme the OS hands back to the app. Declared here rather than buried in\n// the deep-link helper because it is app identity, not helper detail — and it has\n// to match ios/App/App/Info.plist (CFBundleURLSchemes) and\n// android/app/src/main/AndroidManifest.xml, which cannot read this file.\n// spec/native/deep_link_scheme_spec.rb fails if the three drift apart.\nexport const DEEP_LINK_SCHEME = \"schlaufuchs\";\n\n// Native-only notification refresh, since Action Cable is unused there (#7767).\n// Build-time constant so OTA can retune it without a store release.\n// `||` not `??`: a declared-but-empty CI variable defines \"\", and Number(\"\") is 0,\n// which would turn the poll into a zero-delay loop against /graphql.\nexport const NOTIFICATION_POLL_INTERVAL_MS =\n Number(import.meta.env.VITE_NOTIFICATION_POLL_INTERVAL_MS) || 60000;\n"],"mappings":"AASA,IAAa,EAAU,GAAS,GAAkB,IAOrC,EAAmB,cAMnB,EACmD"}