1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[968],{95477:function(e,r,t){"use strict";var a=t(22122),i=t(2949),n=t(67294),s=(t(45697),t(86010)),o=t(14670),c=t(93871),l=44,d=n.forwardRef((function(e,r){var t=e.classes,o=e.className,d=e.color,u=void 0===d?"primary":d,h=e.disableShrink,m=void 0!==h&&h,f=e.size,v=void 0===f?40:f,p=e.style,x=e.thickness,g=void 0===x?3.6:x,k=e.value,Z=void 0===k?0:k,y=e.variant,j=void 0===y?"indeterminate":y,b=(0,i.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),D={},N={},C={};if("determinate"===j||"static"===j){var S=2*Math.PI*((l-g)/2);D.strokeDasharray=S.toFixed(3),C["aria-valuenow"]=Math.round(Z),D.strokeDashoffset="".concat(((100-Z)/100*S).toFixed(3),"px"),N.transform="rotate(-90deg)"}return n.createElement("div",(0,a.Z)({className:(0,s.Z)(t.root,o,"inherit"!==u&&t["color".concat((0,c.Z)(u))],{determinate:t.determinate,indeterminate:t.indeterminate,static:t.static}[j]),style:(0,a.Z)({width:v,height:v},N,p),ref:r,role:"progressbar"},C,b),n.createElement("svg",{className:t.svg,viewBox:"".concat(22," ").concat(22," ").concat(l," ").concat(l)},n.createElement("circle",{className:(0,s.Z)(t.circle,m&&t.circleDisableShrink,{determinate:t.circleDeterminate,indeterminate:t.circleIndeterminate,static:t.circleStatic}[j]),style:D,cx:l,cy:l,r:(l-g)/2,fill:"none",strokeWidth:g})))}));r.Z=(0,o.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(d)},12300:function(e,r,t){"use strict";t.r(r);var a=t(85893),i=t(39227),n=t(67294),s=t(95477),o=t(43832),c=t(22318),l=t(41749),d=t(39803),u=t(64436),h=t(43700),m=t(26209),f=t(85639),v=t(282),p=t(41120),x=t(11163),g=t(88531),k=t(31238);var Z=(0,p.Z)((function(){return{progress:{position:"absolute",top:"50vh",bottom:"50vh",left:"47vw",right:"47vw"}}}));r.default=(0,k.HX)((function(){var e=Z(),r=(0,x.useRouter)(),t=(0,n.useState)(""),p=t[0],k=t[1],y=(0,n.useState)(5),j=y[0],b=y[1],D=(0,n.useState)(""),N=D[0],C=D[1],S=(0,n.useState)({code:"",message:""}),_=S[0],w=S[1],E=(0,g._x)({onCompleted:function(e){var t=e.addTipo,a=t.code,i=t.message;"success"!==a?w({code:a,message:i}):r.back()},onError:function(e){e.graphQLErrors.length>0&&w(e.graphQLErrors[0])}}),W=(0,i.Z)(E,2),L=W[0];return W[1].loading?(0,a.jsx)(s.Z,{className:e.progress}):(0,a.jsxs)(o.Z,{maxWidth:"sm",children:[(0,a.jsx)(c.Z,{variant:"h4",color:"primary",component:"h2",align:"justify",paragraph:!0,children:"Novo Tipo"}),(0,a.jsx)("form",{onSubmit:function(e){e&&e.preventDefault(),L({variables:{input:{nome:p,nivel:j,canonico:N}}})},children:(0,a.jsxs)(l.Z,{container:!0,spacing:1,children:[(0,a.jsx)(l.Z,{item:!0,xs:12,children:(0,a.jsx)(d.Z,{value:p,onChange:function(e){return k(e.target.value)},label:"Nome",variant:"outlined",size:"small",error:"nome"===_.code,helperText:"nome"===_.code?_.message:"",required:!0,fullWidth:!0})}),(0,a.jsx)(l.Z,{item:!0,xs:12,children:(0,a.jsxs)(u.Z,{variant:"outlined",size:"small",fullWidth:!0,children:[(0,a.jsx)(h.Z,{id:"nivel",children:"N\xedvel"}),(0,a.jsxs)(m.Z,{labelId:"nivel",label:"N\xedvel",value:j,onChange:function(e){return b(e.target.value)},error:"nivel"===_.code,children:[(0,a.jsx)(f.Z,{value:1,children:"Constitucional"}),(0,a.jsx)(f.Z,{value:2,children:"Leis e com for\xe7a de lei"}),(0,a.jsx)(f.Z,{value:3,children:"Decretos e equivalentes"}),(0,a.jsx)(f.Z,{value:4,children:"Legisla\xe7\xe3o inferior"}),(0,a.jsx)(f.Z,{value:5,children:"Documentos de arquivo"})]})]})}),(0,a.jsx)(l.Z,{item:!0,xs:12,children:(0,a.jsx)(d.Z,{value:N,onChange:function(e){return C(e.target.value)},label:"Can\xf4nico",variant:"outlined",size:"small",error:"canonico"===_.code,helperText:"canonico"===_.code?_.message:"",fullWidth:!0})}),(0,a.jsx)(l.Z,{item:!0,xs:12,children:(0,a.jsx)(v.Z,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,children:"SALVAR"})}),(0,a.jsx)(l.Z,{item:!0,xs:12,children:(0,a.jsx)(v.Z,{onClick:function(){return r.back()},variant:"outlined",color:"primary",fullWidth:!0,children:"CANCELAR"})})]})})]})}))},36168:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/painel/tipos/novo",function(){return t(12300)}])}},function(e){e.O(0,[774,888,179],(function(){return r=36168,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.