PageSourceSearch

https://www.snirh.gov.br/static/js/main.921f58aa.chunk.js

js snirh.gov.br collected 2026-10-02 02:58:39 UTC 9,532 bytes, 2 lines download raw bytes

1(this["webpackJsonph-portalsnirh-reconstruido"]=this["webpackJsonph-portalsnirh-reconstruido"]||[]).push([[0],{263:function(e,t,n){},282:function(e,t,n){},284:function(e,t,n){},285:function(e,t,n){},286:function(e,t,n){},287:function(e,t,n){},289:function(e,t,n){"use strict";n.r(t);n(155),n(178);var r=n(10),s=n(154),a=n.n(s),c=(n(263),n(21)),l=n(61),i=n.n(l),o=(n(282),n(0));function j(){return Object(o.jsxs)("ul",{className:"socialMedia",children:[Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:"https://www.youtube.com/channel/UCLLjIf0AjdwQAtp3hDmrhZQ",title:"YouTube",className:"yt",target:"_blank",rel:"noopener noreferrer",children:"YouTube"})}),Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:"https://instagram.com/anagovbr",title:"Instagram",className:"ig",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:"https://twitter.com/anagovbr",title:"Twitter",className:"tw",target:"_blank",rel:"noopener noreferrer",children:"Twitter"})}),Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:"https://facebook.com/anagovbr",title:"Facebook",className:"fb",target:"_blank",rel:"noopener noreferrer",children:"Facebook"})}),Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:"https://br.linkedin.com/company/anagovbr",title:"LinkedIn",className:"in",target:"_blank",rel:"noopener noreferrer",children:"LinkedIn"})}),Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:"#d",title:"WhatsApp",className:"wp",target:"_blank",rel:"noopener noreferrer",children:"WhatsApp"})}),Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:"mailto:[email protected]",title:"Email",className:"email",target:"_blank",rel:"noopener noreferrer",children:"Email"})})]})}n(284);var d=n.p+"static/media/logo-ana.fff05ad2.png",b=n.p+"static/media/logo-ana.208c356e.webp";function h(e){const t=Object(r.useState)(!1),n=Object(c.a)(t,2),s=n[0],a=n[1];return Object(o.jsxs)("section",{id:"sidebar",className:s&&"smartphone"===e.viewport?"show-about":"",children:["smartphone"===e.viewport&&Object(o.jsx)("button",{type:"button",className:s?"bt-close":"bt-open",onClick:e=>{a(!s)},title:s?"Fechar":"Sobre",children:s?"Fechar":"?"}),Object(o.jsx)("h1",{children:Object(o.jsxs)("a",{href:"http://www.snirh.gov.br/portal/",target:"_blank",rel:"noopener noreferrer",children:["Portal do ",Object(o.jsx)("strong",{children:"SNIRH"})]})}),Object(o.jsxs)("div",{className:"infos clear",children:[Object(o.jsx)("h2",{children:"Sistema Nacional de Informa\xe7\xf5es sobre Recursos H\xeddricos (SNIRH)"}),Object(o.jsx)("p",{children:"O SNIRH \xe9 a base para disponibiliza\xe7\xe3o das informa\xe7\xf5es sobre \xe1guas no Brasil, contribuindo para a difus\xe3o do conhecimento sobre recursos h\xeddricos."})]}),"smartphone"!==e.viewport&&Object(o.jsxs)("div",{className:"social clear",children:[Object(o.jsx)("a",{href:"https://www.ana.gov.br/",title:"Ag\xeancia Nacional de \xc1guas",className:"ana",target:"_blank",rel:"noopener noreferrer",children:Object(o.jsx)("img",{src:window.Modernizr.webp?b:d,alt:"Ag\xeancia Nacional de \xc1guas"})}),Object(o.jsx)(j,{})]})]})}var m=n(95),u=n.n(m);n(285);var O=function(e){const t=Object(r.useState)(!1),n=Object(c.a)(t,2),s=n[0],a=n[1],l=Object(r.useState)(""),i=Object(c.a)(l,2),j=i[0],d=i[1];function b(){return"smartphone"===e.viewport?[...e.items].reverse():e.items}return Object(r.useEffect)(()=>{},[]),"smartphone"===e.viewport?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("main",{id:"listItems",className:"smartphone clear",children:Object(o.jsx)("ul",{children:b().map((e,t)=>Object(o.jsx)("li",{onClick:t=>{d(e.slug),a(!0)},className:"item "+e.slug,children:Object(o.jsx)("h3",{dangerouslySetInnerHTML:{__html:e.title}})},t))})}),s&&""!==j?(u()("html").addClass("mobile-item-open"),b().map((e,t)=>e.slug===j&&Object(o.jsxs)("div",{className:"item mobo "+e.slug,children:[Object(o.jsx)("button",{type:"button",className:"bt-close",onClick:e=>{d(""),a(!1)},title:"Fechar",children:"Fechar"}),Object(o.jsx)("h3",{dangerouslySetInnerHTML:{__html:e.title}}),Object(o.jsx)("h4",{dangerouslySetInnerHTML:{__html:e.active.title}}
1),Object(o.jsx)("div",{className:"content",dangerouslySetInnerHTML:{__html:e.active.content}}),!!e.active.links.items.length&&Object(o.jsxs)("div",{className:"links",children:[Object(o.jsx)("h5",{dangerouslySetInnerHTML:{__html:e.active.links.title}}),Object(o.jsx)("ul",{children:e.active.links.items.map((e,t)=>Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:e.url,title:e.text,target:"_blank",rel:"noopener noreferrer",children:e.text})},t))})]}),Object(o.jsxs)("div",{className:"nav clear",children:[t>0&&Object(o.jsxs)("div",{className:"prev "+b()[t-1].slug,onClick:e=>{d(b()[t-1].slug),a(!0),window.scrollTo(0,0)},children:[Object(o.jsx)("p",{children:"Anterior"}),Object(o.jsx)("h6",{dangerouslySetInnerHTML:{__html:b()[t-1].title}})]}),!!b()[t+1]&&Object(o.jsxs)("div",{className:"next "+b()[t+1].slug,onClick:e=>{d(b()[t+1].slug),a(!0),window.scrollTo(0,0)},children:[Object(o.jsx)("p",{children:"Pr\xf3ximo"}),Object(o.jsx)("h6",{dangerouslySetInnerHTML:{__html:b()[t+1].title}})]})]})]},t)).filter(e=>e)):(u()("html").removeClass("mobile-item-open"),null)]}):Object(o.jsx)("main",{id:"listItems",className:"desktop clear"+(s?" no-hover":""),children:b().map((e,t)=>Object(o.jsxs)("div",{className:"item "+e.slug+(j===e.slug?" active":""),children:[Object(o.jsx)("div",{className:"init",children:Object(o.jsx)("h3",{dangerouslySetInnerHTML:{__html:e.title}})}),Object(o.jsxs)("div",{className:"hover",children:[Object(o.jsx)("h3",{dangerouslySetInnerHTML:{__html:e.title}}),Object(o.jsx)("div",{className:"summary",dangerouslySetInnerHTML:{__html:e.summary}}),Object(o.jsx)("button",{type:"button",onClick:t=>{d(e.slug),a(!0)},children:e.button})]}),Object(o.jsxs)("div",{className:"active",children:[Object(o.jsx)("button",{type:"button",className:"bt-close",onClick:e=>{d(""),a(!1)},title:"Fechar",children:"Fechar"}),Object(o.jsx)("h3",{dangerouslySetInnerHTML:{__html:e.active.title}}),Object(o.jsx)("div",{className:"content",dangerouslySetInnerHTML:{__html:e.active.content}}),!!e.active.links.items.length&&Object(o.jsxs)("div",{className:"links",children:[Object(o.jsx)("h4",{dangerouslySetInnerHTML:{__html:e.active.links.title}}),Object(o.jsx)("ul",{children:e.active.links.items.map((e,t)=>Object(o.jsx)("li",{children:Object(o.jsx)("a",{href:e.url,title:e.text,target:"_blank",rel:"noopener noreferrer",children:e.text})},t))})]})]})]},t))})};n(286);function p(){return Object(o.jsxs)("footer",{children:[Object(o.jsx)("a",{href:"https://www.ana.gov.br/",title:"Ag\xeancia Nacional de \xc1guas",className:"ana",target:"_blank",rel:"noopener noreferrer",children:Object(o.jsx)("img",{src:window.Modernizr.webp?b:d,alt:"Ag\xeancia Nacional de \xc1guas"})}),Object(o.jsx)(j,{})]})}n(287);function x(e){let t=e.config,n=e.onClose;if(Object(r.useEffect)(()=>(document.documentElement.classList.add("notice-modal-open"),document.body.classList.add("notice-modal-open"),()=>{document.documentElement.classList.remove("notice-modal-open"),document.body.classList.remove("notice-modal-open")}),[]),!t)return null;const s=t.button||{},a=s.target||"_blank",c="_blank"===a?"noopener noreferrer":void 0;return Object(o.jsx)("div",{className:"noticeModal",role:"dialog","aria-modal":"true","aria-labelledby":"notice-modal-title",onClick:n,children:Object(o.jsxs)("section",{className:"noticeModal__card",onClick:e=>e.stopPropagation(),children:[Object(o.jsx)("button",{type:"button",className:"noticeModal__close",onClick:n,title:"Fechar",children:"Fechar"}),Object(o.jsx)("h2",{id:"notice-modal-title",dangerouslySetInnerHTML:{__html:t.title}}),Object(o.jsx)("div",{className:"noticeModal__content",dangerouslySetInnerHTML:{__html:t.content}}),Object(o.jsx)("a",{className:"noticeModal__action",href:s.url,target:a,rel:c,title:s.label,children:s.label})]})})}const g=n(288).detect;async function f(){const e=await i.a.get("/static/items/index.json");return(await Promise.all(e.data.items.map(e=>i.a.get(e.file)))).map(e=>e.data)}async function v(){try{return(await i.a.get("/static/notice-modal.json")).data}catch(e){if(e.response&&404===e.response.status)return null;throw e}}function w(e){if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t}function _(){const e=Object(r.useState)([]),t=Object(c.a)(e,2),n=t[0],s=t[1],a=Object(r.useState)(null),l=Object(c.a)(a,2),i=l[0],j=l[1],d=Object(r.useState)(""),b=Object(c.a)(d,2),m=b[0],u=b[1];function _(){const e=window.innerWidth;u(e<1024?"smartphone":e>=1024&&e<=1279?"tablet":"desktop")}return Object(r.useEffect)(()=>{const e=g();
1document.documentElement.classList.add(e.name),_();let t=!0;return Promise.all([f(),v()]).then(e=>{let n=Object(c.a)(e,2),r=n[0],a=n[1];t&&(s(r),j(function(e){if(!e||!e.enabled)return!1;const t=w(e.startAt),n=w(e.endAt),r=new Date,s=e.button||{};return!(e.startAt&&!t)&&!(e.endAt&&!n)&&!(t&&r<t)&&!(n&&r>n)&&Boolean(e.title&&e.content&&s.label&&s.url)}(a)?a:null))}).catch(e=>{console.error("Erro ao carregar os conteudos do portal.",e)}),window.addEventListener("resize",_),()=>{t=!1,window.removeEventListener("resize",_)}},[]),Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)(h,{viewport:m}),Object(o.jsx)(O,{items:n,viewport:m}),"smartphone"===m&&Object(o.jsx)(p,{viewport:m}),i&&Object(o.jsx)(x,{config:i,onClose:()=>j(null)})]})}a.a.render(Object(o.jsx)(_,{}),document.getElementById("portal-do-snirh"))}},[[289,1,2]]]);
2//# sourceMappingURL=main.921f58aa.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.