{
  "version": 3,
  "sources": ["../src/keyboard-tabbar.js"],
  "sourcesContent": ["/**\n * Keyboard TabBar Hider \u2014 hides bottom tab bar when virtual keyboard opens on mobile\n * Prevents the iOS Safari bug where fixed bottom bar \"detaches\" from keyboard\n * Used in: templates/includes/bottom_tab_bar.html (via templates/base.html)\n */\n(function () {\n  // Only run on mobile (tab bar is md:hidden)\n  if (window.matchMedia('(min-width: 768px)').matches) return;\n\n  const tabBar = document.getElementById('bottom-tab-bar');\n  if (!tabBar) return;\n\n  // Use visualViewport API (iOS 13+, all modern browsers)\n  if (window.visualViewport) {\n    let ticking = false;\n    window.visualViewport.addEventListener('resize', function () {\n      if (ticking) return;\n      ticking = true;\n      requestAnimationFrame(function () {\n        // Keyboard is open when visual viewport is significantly smaller than layout viewport\n        const keyboardOpen = window.visualViewport.height < window.innerHeight * 0.85;\n        tabBar.classList.toggle('!hidden', keyboardOpen);\n        ticking = false;\n      });\n    });\n  } else {\n    // Fallback for older browsers: focusin/focusout\n    const INPUT_SELECTOR = 'input, textarea, select, [contenteditable]';\n\n    document.addEventListener('focusin', function (e) {\n      if (e.target.matches(INPUT_SELECTOR)) {\n        tabBar.classList.add('!hidden');\n      }\n    });\n\n    document.addEventListener('focusout', function () {\n      tabBar.classList.remove('!hidden');\n    });\n  }\n})();\n"],
  "mappings": "OAKC,UAAY,CAEX,GAAI,OAAO,WAAW,oBAAoB,EAAE,QAAS,OAErD,IAAMA,EAAS,SAAS,eAAe,gBAAgB,EACvD,GAAKA,EAGL,GAAI,OAAO,eAAgB,CACzB,IAAIC,EAAU,GACd,OAAO,eAAe,iBAAiB,SAAU,UAAY,CACvDA,IACJA,EAAU,GACV,sBAAsB,UAAY,CAEhC,IAAMC,EAAe,OAAO,eAAe,OAAS,OAAO,YAAc,IACzEF,EAAO,UAAU,OAAO,UAAWE,CAAY,EAC/CD,EAAU,EACZ,CAAC,EACH,CAAC,CACH,KAAO,CAEL,IAAME,EAAiB,6CAEvB,SAAS,iBAAiB,UAAW,SAAUC,EAAG,CAC5CA,EAAE,OAAO,QAAQD,CAAc,GACjCH,EAAO,UAAU,IAAI,SAAS,CAElC,CAAC,EAED,SAAS,iBAAiB,WAAY,UAAY,CAChDA,EAAO,UAAU,OAAO,SAAS,CACnC,CAAC,CACH,CACF,GAAG",
  "names": ["tabBar", "ticking", "keyboardOpen", "INPUT_SELECTOR", "e"]
}
