PageSourceSearch

https://rincao.sp.gov.br/_next/static/chunks/pages/ouvidoria-b2ff126928e92f45.js

js rincao.sp.gov.br collected 2026-09-25 08:55:33 UTC 6,801 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[554],{3943:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ouvidoria",function(){return a(1648)}])},1648:function(e,s,a){"use strict";a.r(s),a.d(s,{__N_SSG:function(){return h}});var n=a(7568),i=a(7582),r=a(5893),o=a(7294),c=a(1687),t=a(4615),l=a(2980),d=a(5121),m=function(e){var s=e.menu,a=e.data,m=(0,o.useState)(),h=m[0],x=m[1],u=(0,o.useState)(),j=u[0],p=u[1],f=(0,o.useState)(),v=f[0],N=f[1],b=(0,o.useState)(),g=b[0],_=b[1],w=(0,o.useState)(),S=w[0],E=w[1],k=(0,o.useState)(),T=k[0],C=k[1],y=(0,o.useState)(!1),F=y[0],A=y[1],P=(0,o.useState)(!1),q=P[0],D=P[1],O=(0,o.useState)(),Z=O[0],I=O[1];function M(){return(M=(0,n.Z)(function(){var e;return(0,i.__generator)(this,function(s){switch(s.label){case 0:return[4,d.Z.post("https://rincao.sp.gov.br:1338/api/ouvidorias",{data:{Anonimo:T,Solicitante:h,Email:j,Movimentacoes:[{De:"Solicitante",Texto:g,Data:new Date}],Tipo:S,Assunto:v}})];case 1:return 200==(e=s.sent()).status?(A(!0),console.log(e.data.data.attributes),I(e.data.data.attributes.Identificador)):D(!0),[2]}})})).apply(this,arguments)}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Z,{}),(0,r.jsx)(t.Z,{menu:s}),(0,r.jsx)("h2",{className:"text-center mt-4",children:"Ouvidoria"}),(0,r.jsx)("div",{className:"container mt-5 mb-5 min-vh-100",children:!1==F?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h5",{children:"Estat\xedsticas"}),(0,r.jsx)("div",{className:"controls mt-3",children:(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["Total: ",(0,r.jsx)("b",{children:a.total})]})}),(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["Atendidas: ",(0,r.jsx)("b",{children:a.atendidas})]})}),(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["An\xf4nimas: ",(0,r.jsx)("b",{children:a.atendidas})]})}),(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["Tipo Ouvidoria: ",(0,r.jsx)("b",{children:a.tipos.ouvidoria})]})}),(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["Tipo Den\xfancia: ",(0,r.jsx)("b",{children:a.tipos.denuncia})]})}),(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["Tipo Informa\xe7\xe3o: ",(0,r.jsx)("b",{children:a.tipos.informacao})]})}),(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["Tipo Sugest\xe3o: ",(0,r.jsx)("b",{children:a.tipos.sugestao})]})}),(0,r.jsx)("div",{className:"col-md-3",children:(0,r.jsxs)("p",{children:["Tipo Reclama\xe7\xe3o: ",(0,r.jsx)("b",{children:a.tipos.reclamacao})]})})]})}),(0,r.jsx)("hr",{}),(0,r.jsxs)("form",{method:"get",action:"/ouvidoria",children:[(0,r.jsx)("h5",{children:"Acompanhar Solicita\xe7\xe3o"}),(0,r.jsxs)("div",{className:"controls mt-3 row",children:[(0,r.jsx)("div",{className:"col-md-6",children:(0,r.jsx)("input",{id:"form_pesquisar",type:"text",name:"id",className:"form-control",placeholder:"Por favor, insira o identificador"})}),(0,r.jsx)("div",{className:"col-md-6 ",children:(0,r.jsx)("input",{type:"button",className:"btn btn-primary btn-send btn-block",value:"Pesquisar",onClick:function(){return window.location.href="/ouvidoria/"+document.getElementById("form_pesquisar").value}})})]})]}),(0,r.jsx)("hr",{}),(0,r.jsx)("h5",{children:"Nova Solicita\xe7\xe3o"}),(0,r.jsx)("form",{children:(0,r.jsxs)("div",{className:"controls ",children:[(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"col-md-2",children:(0,r.jsxs)("div",{className:"form-check form-switch pt-4",children:[(0,r.jsx)("input",{className:"form-check-input",type:"checkbox",role:"switch",id:"form_anonimo",onChange:function(e){return C(e.currentTarget.checked)},checked:T}),(0,r.jsx)("label",{className:"form-check-label",htmlFor:"form_anonimo",children:"An\xf4nimo"})]})}),(0,r.jsx)("div",{className:"col-md-5",children:(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{htmlFor:"form_name",children:"Nome"}),(0,r.jsx)("input",{id:"form_name",type:"text",name:"nome",className:"form-control",placeholder:"Por favor, insira seu nome",disabled:!!T,onChange:function(e){return x(e.target.value)},value:h})]})}),(0,r.jsx)("div",{className:"col-md-5",children:(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{htmlFor:"form_email",children:"E-mail"}),(0,r.jsx)("input",{id:"form_email",type:"email",name:"email",className:"form-control",placeholder:"Por favor, insira seu E-mail",disabled:!!T,onChange:function(e){return p(e.target.value)},value:j})]})})]}),(0,r.jsxs)("div",{className:"row mt-4",children:[(0,r.jsx)("div",{className:"col-md-6",children:(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{htmlFor:"form_message",children:"Tipo"}),(0,r.jsxs)("select",{id:"form_tipo",name:"tipo",className:"form-control",value:S,onChange:function(e){return E(e.target.value)},children:[(0,r.jsx)("option",{children:"Ouvidoria"}),(0,r.jsx)("option",{children:"Den\xfancia"}),(0,r.jsx)("option",{children:"Informa\xe7\xe3o"}),(0,r.jsx)("option",{children:"Sugest\xe3o"}),(0,r.jsx)("option",{children:"Reclama\xe7\xe3o"})]})]})}),(0,r.jsx)("div",{className:"col-md-6",children:(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{htmlFor:"form_message",children:"Assu
1nto"}),(0,r.jsx)("input",{id:"form_assunto",name:"assunto",className:"form-control",placeholder:"Escreva o assunto aqui",value:v,onChange:function(e){return N(e.target.value)}})]})})]}),(0,r.jsxs)("div",{className:"row mt-4",children:[(0,r.jsx)("div",{className:"col-md-12",children:(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{htmlFor:"form_message",children:"Mensagem"}),(0,r.jsx)("textarea",{id:"form_message",name:"message",className:"form-control",placeholder:"Escreva sua mensagem aqui",rows:10,"data-error":"Please, leave us a message.",onChange:function(e){return _(e.target.value)}})]})}),(0,r.jsxs)("div",{className:"col-md-12 mt-4 mb-4",children:[(0,r.jsx)("input",{type:"button",className:"btn btn-success btn-send pt-2 btn-block",value:"Enviar",onClick:function(){return function(){return M.apply(this,arguments)}()}}),q&&(0,r.jsx)("h5",{className:"mt-5 text-center text-danger mb-5",children:"Erro ao enviar"})]})]})]})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h5",{className:"mt-5 text-center text-success mb-5",children:"Enviado com sucesso"}),(0,r.jsxs)("h6",{className:"text-center",children:["Utilize o identificador ",(0,r.jsxs)("b",{children:[Z," "]})," para acompanhar o processo"]}),(0,r.jsx)("p",{className:"text-center",children:"Copie o identificador, ou tire um print para poder acompanhar"})]})}),(0,r.jsx)(l.Z,{})]})},h=!0;s.default=m}},function(e){e.O(0,[370,61,284,774,888,179],function(){return e(e.s=3943)}),_N_E=e.O()}]);

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.