const DS=window.GuiaDiabeteDesignSystem_9d1af3;
const { Button, IconButton, Icon, Input } = DS;
// resolves ShareBar at render time, so a not-yet-recompiled bundle degrades to nothing instead of crashing
function Share(props){ const C=DS.ShareBar; return C?:null; }
function useBreak(q){
const [on,setOn]=React.useState(()=>window.matchMedia(q).matches);
React.useEffect(()=>{const m=window.matchMedia(q),h=e=>setOn(e.matches);m.addEventListener('change',h);setOn(m.matches);return()=>m.removeEventListener('change',h)},[q]);
return on;
}
const SITE_FALLBACK='https://www.alemdoacucar.blog.br/';
// Builds the link to share from wherever this page is actually running.
// file:// and blob: URLs cannot be opened by anyone else, so those fall back to the example domain.
function shareUrl(path){
try{
const p=location.protocol;
if(p==='http:'||p==='https:'){
if(window.__PATH_MODE) return location.origin+'/'+(path?path.replace(/\/+$/,'')+'/':'');
const base=location.origin+location.pathname+location.search;
return base+(path?'#/'+path:'');
}
}catch(e){}
return SITE_FALLBACK+(path||'');
}
const useMobile=()=>useBreak('(max-width:1060px)');
const useNarrow=()=>useBreak('(max-width:600px)');
const SHELL_NAV=[["tipos","Tipos de diabete"],["socorros","Primeiros socorros"],["escola","Na escola"],["criancas","Para crianças"],["receitas","Receitas"],["projeto","O projeto"]];
function Header({route,go}){
const [open,setOpen]=React.useState(false);
const [menu,setMenu]=React.useState(false);
const mobile=useMobile(),narrow=useNarrow();
React.useEffect(()=>{setMenu(false);setOpen(false)},[route]);
return