1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{30177:function(e,n,r){r.r(n),r.d(n,{default:function(){return eo}});var i=r(18003),t=r(25883),a=r(14219),s=r.n(a),o=r(56168),c=r(80241),l=r.n(c),d=r(15641),p=r(52348),u=r(21260),g=r(80841),h=(0,g.Z)()(function(e){return{hide:{display:"none"},transparent:{backgroundColor:"transparent"},appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:180,width:"calc(100% - ".concat(180,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},grow:{flexGrow:1},menuButton:{marginRight:e.spacing(2)},homeButton:{color:e.palette.secondary.main,fontSize:11},title:(0,i.Z)({display:"none"},e.breakpoints.up("sm"),{display:"block"}),site_logo_mobile:(0,i.Z)({display:"block",paddingTop:5,width:"50px",height:"auto"},e.breakpoints.up("sm"),{marginLeft:e.spacing(1),display:"none"}),site_logo:(0,i.Z)({display:"none"},e.breakpoints.up("sm"),{marginLeft:5,display:"block",width:"70px",height:"auto"}),IconTop:{position:"relative",flexDirection:"column",color:"#fff",marginRight:e.spacing(1),height:50,justifyContent:"center",alignItems:"flex-end",paddingTop:10,marginTop:5,paddingLeft:5,paddingRight:10},IconTopSelected:{position:"relative",flexDirection:"column",color:"#fff",marginRight:e.spacing(1),height:50,justifyContent:"center",alignItems:"flex-end",paddingTop:10,marginTop:5,paddingLeft:5,paddingRight:10,borderBottom:"3px solid rgb(212, 212, 212)"},linksSelected:{position:"relative",flexDirection:"column",color:"#fff",marginRight:e.spacing(1),height:50,justifyContent:"center",alignItems:"flex-end",paddingTop:10,marginTop:5,paddingLeft:5,paddingRight:10,borderRight:"1px solid #4f5b62",borderBottom:"3px solid rgb(212, 212, 212)"},links:{position:"relative",flexDirection:"column",color:"#fff",marginRight:e.spacing(1),height:50,justifyContent:"center",alignItems:"flex-end",paddingTop:10,marginTop:5,paddingLeft:5,paddingRight:10,borderRight:"1px solid #4f5b62"},buttons_top:{position:"relative",flexDirection:"column",color:"#fff",marginRight:e.spacing(1),paddingTop:0,marginTop:2},Icon:{position:"relative",flexDirection:"row",marginRight:e.spacing(2),marginTop:5,paddingLeft:5,paddingRight:5},sectionDesktop:(0,i.Z)({display:"none"},e.breakpoints.up("md"),{display:"flex"}),sectionMobile:(0,i.Z)({display:"flex"},e.breakpoints.up("md"),{display:"none"})}}),x=r(45728),f=r(10810),m=r(28252),j=r(31074),_=r(75657),Z=r.n(_),y=r(62044),b=r(26553),v=r(78813),w=r(35689),k=r(50608),C=r(92870),I=r(8014),N=k.locales,P={0:x.KE,1:x.wP},S={pt:"Portugu\xeas",en:"English"},T=function(){var e=(0,y.Z)().lang,n=(0,o.useState)(null),r=n[0],i=n[1],t=(0,o.useState)(function(){return N.findIndex(function(n){return n===e})}),a=t[0],s=t[1];(0,o.useEffect)(function(){(0,b.Z)(N[a])},[a]);var c=function(e){i(e.currentTarget)},l=function(e){s(e),i(null)},d=function(){i(null)};return(0,I.jsxs)("div",{children:[(0,I.jsx)(u.Z,{"aria-haspopup":"true","aria-controls":"lock-menu","aria-label":"choose language",onClick:c,children:(0,I.jsx)(C.Z,{sx:{width:30,height:30},alt:"current language country flag",src:P[a]})}),(0,I.jsx)(v.Z,{id:"lock-menu",anchorEl:r,keepMounted:!0,open:Boolean(r),onClose:d,children:N.map(function(e,n){return(0,I.jsx)(w.Z,{selected:n===a,onClick:function(){return l(n)},children:S[e]},e)})})]})},R=r(11422),z=r(75332),H=r(89927),E=r(89914),L=r.n(E),B=r(14138),G=r(93583),A=r(27877),D=(0,g.Z)()(function(e){return{avatar:{width:25,height:25,margin:5,color:"#fafafa"},accountCircle:{width:25,height:25,margin:5,color:e.palette.primary.main},userGroup:{fontSize:8},name:{fontSize:11,lineHeight:1}}}),F=function(e){var n=e.currentUser,r=e.authenticated,i=e.is_mobil,t=e.set_drawer,a=e.notifications,s=e.show_user_text_color,o=L()(n,"name",""),c=L()(n,"user_group.label","users"),l=L()(n,"image_profile",""),d=o.slice(0,1),p=D().classes;return o.length<3&&(o="Novo Usu\xe1rio"),(0,I.jsxs)(B.ZP,{container:!0,alignItems:"flex-start",justifyContent:"flex-start",alignContent:"flex-start",children:[(0,I.jsx)(B.ZP,{item:!0,xs:i?12:4,children:(0,I.jsx)(u.Z,{color:"inherit",size:"small","aria-label":"open drawer",onClick:function(){return L()(t(!0))},edge:"end",children:(0,I.jsxs)(A.Z,{color:"secondary",anchorOrigin:{vertical:"top",horizontal:"right"},invisible:!(a>0),overlap:"circular",style:{bottom:"29%"},badgeContent:a,children:[r&&(0,I.jsx)(C.Z,{className:p.avatar,src:l,children:d}),!r&&(0,I.jsx)(H.Z,{className:p.accountCircle})]})})}),!i&&(0,I.jsxs)(B.ZP,{item:!0,xs:8,children:[(0,I.jsx)(G.Z,{variant:"caption",gutterBottom:!1,className:p.userGroup,color:s,children:c}),(0,I.jsx)(G.Z,{variant:"body1",className:p.name,color:s,children:function(e){try{return e.split(" ").slice(0,2).join(" ")}catch(n){return n}}(o)})]})]})},O=r(37612),U=(0,g.Z)()(function(e){return{root:{width:"100%","& > * + *":{marginTop:e.spacing(2)}}}});function M(){var e=U().classes;return(0,I.jsx)("div",{className:e.root,children:(0,I.jsxs)(O.Z,{variant:"filled",severity:"warning",children:["Voc\xea n\xe3o terminou de ca
1dastrar suas credenciais!"," ",(0,I.jsx)(Z(),{href:"/signin?new_account=false",children:"Clique aqui"})," para finalizar o cadastro."]})})}var K=r(87030),W=r(96458),q=r(81373),V=r(98960),J=r(32385),Q=r(51821),X=r(13512),Y=r(72550),$=r(21463),ee=r(40017),en=r(58930),er=r(25899),ei=r(85554),et=r(39720);function ea(e){var n=e.authenticated,r=e.is_organization_admin,i=e.logout,t=e.is_admin,a=e.new_user,s=e.app_version,c=e.drawer,l=e.set_drawer,d=e.currentUser||{},p=L()(d,"image_profile",""),g=L()(d,"image_profile",!1),h=L()(d,"user_group.label","-");return r&&(h="Admin/Organiza\xe7\xe3o"),t&&(h="Admin/Sistema"),(0,I.jsxs)(V.ZP,{style:{zIndex:99999},anchor:"right",variant:"temporary",escapeKeyDown:function(){return l(!1)},backdropClick:function(){return l(!1)},docked:"false",open:c,children:[(0,I.jsx)("div",{children:(0,I.jsx)(u.Z,{onClick:function(){return l(!1)},size:"large",children:c?(0,I.jsx)(Q.Z,{}):(0,I.jsx)(J.Z,{})})}),(0,I.jsx)(W.Z,{}),n&&(0,I.jsx)("div",{style:{width:240,backgroundColor:"#fafafa",justifyContent:"center"},children:(0,I.jsxs)(B.ZP,{container:!0,justifyContent:"center",spacing:1,children:[(0,I.jsxs)(B.ZP,{item:!0,xs:12,style:{backgroundColor:"#78909c"},children:[(0,I.jsx)(G.Z,{component:"p",variant:"caption",align:"center",color:"textPrimary",children:"Grupo"}),(0,I.jsx)(G.Z,{component:"p",variant:"caption",align:"center",style:{color:"#666"},children:h})]}),(0,I.jsx)(B.ZP,{item:!0,xs:12,style:{backgroundColor:"#78909c"},children:(0,I.jsxs)(B.ZP,{container:!0,justifyContent:"center",spacing:2,style:{paddingTop:15},children:[g&&(0,I.jsx)(C.Z,{style:{width:75,height:75},src:p}),!g&&(0,I.jsx)(H.Z,{style:{width:75,height:75}})]})}),(0,I.jsxs)(B.ZP,{item:!0,xs:12,style:{backgroundColor:"#78909c",justifyContent:"center"},children:[(0,I.jsx)(G.Z,{component:"p",variant:"caption",align:"center",color:"textPrimary",children:d.name}),(0,I.jsx)(G.Z,{component:"p",variant:"caption",align:"center",color:"textPrimary",children:d.email})]})]})}),!n&&(0,I.jsxs)("div",{style:{width:240,minHeight:150,backgroundColor:"#78909c",justifyContent:"center"},children:[(0,I.jsx)(B.ZP,{container:!0,justifyContent:"center",spacing:2,style:{paddingTop:15},children:(0,I.jsx)(H.Z,{style:{width:75,height:75}})}),(0,I.jsx)(B.ZP,{container:!0,justifyContent:"center",spacing:2,style:{paddingTop:15},children:(0,I.jsx)("div",{children:"Usu\xe1rio"})})]}),(0,I.jsxs)(q.Z,{children:[(0,I.jsx)(W.Z,{}),!n&&(0,I.jsxs)(o.Fragment,{children:[(0,I.jsx)(Z(),{href:"/",passHref:!0,children:(0,I.jsxs)(er.ZP,{button:!0,children:[(0,I.jsx)(ei.Z,{children:(0,I.jsx)(ee.Z,{})}),(0,I.jsx)(et.Z,{primary:"Home"})]})}),(0,I.jsx)(W.Z,{})]}),n&&(0,I.jsxs)(o.Fragment,{children:[(0,I.jsx)(Z(),{href:"/profile",passHref:!0,children:(0,I.jsxs)(er.ZP,{disabled:a,button:!0,children:[(0,I.jsx)(ei.Z,{children:(0,I.jsx)(Y.Z,{})}),(0,I.jsx)(et.Z,{primary:"Editar Perfil"})]})}),(0,I.jsx)(W.Z,{})]}),!n&&(0,I.jsxs)(o.Fragment,{children:[(0,I.jsx)(W.Z,{}),(0,I.jsx)(Z(),{href:"/signin?new_account=true",passHref:!0,children:(0,I.jsxs)(er.ZP,{button:!0,children:[(0,I.jsx)(ei.Z,{children:(0,I.jsx)($.Z,{})}),(0,I.jsx)(et.Z,{primary:"Criar Conta"})]})}),(0,I.jsx)(W.Z,{}),(0,I.jsx)(Z(),{href:"/signin?new_account=false",passHref:!0,children:(0,I.jsxs)(er.ZP,{button:!0,children:[(0,I.jsx)(ei.Z,{children:(0,I.jsx)(X.Z,{})}),(0,I.jsx)(et.Z,{primary:"Login"})]})}),(0,I.jsx)(W.Z,{})]}),n&&(0,I.jsxs)(o.Fragment,{children:[(0,I.jsxs)(er.ZP,{button:!0,onClick:function(){return i()},children:[(0,I.jsx)(ei.Z,{children:(0,I.jsx)(en.Z,{})}),(0,I.jsx)(et.Z,{primary:"Sair"})]}),(0,I.jsx)(W.Z,{})]}),(0,I.jsx)(W.Z,{}),(0,I.jsx)(er.ZP,{button:!0,children:(0,I.jsxs)(G.Z,{component:"p",variant:"caption",align:"center",color:"secondary",children:["vers\xe3o: ",s]})})]})]})}var es=(0,K.ZP)(d.Z,{shouldForwardProp:function(e){return"trigger"!==e&&"appbar_color"!==e&&"alternative_appbar"!==e}})(function(e){var n=e.trigger,r=e.appbar_color,i=e.alternative_appbar_color;return{backgroundColor:n?i:r}});function eo(e){var n=h(),r=n.classes,a=n.cx,c=(0,z.useRouter)(),d=x.xO,g=e.global_page,_=e.authenticated,y=e.currentUser,b=e.msgs_unread,v=e.drawer,w=e.left_drawer,k=e.set_drawer_action,C=e.set_left_drawer_action,N=e.set_signin_type,P=e.new_user,S=e.is_organization_admin,H=e.user_type,E=e.user_active,L=e.logout_profile_action,B=e.set_global_page_action,G=e.set_appbar_color_action,A=e.current_signature,D=e.user_recused,O=e.constants,U=e.is_mobil,K=e.is_admin,W=e.app_version,q=e.appbar_color,V=(0,R.Z)({threshold:50}),J=["HOME","SIGNIN","AFFILIATES"].filter(function(e){return e===g}).length>0,Q=["AFFILIATES","SIGNIN_AFFILIATES"].filter(function(e){return e===g}).length>0,X=(0,o.useRef)("secondary");(0,o.useEffect)(function(){J?V?(G("primary"),X.current="primary"):G("transparent !important"):(G("primary"),X.current="primary")},[g,_,J,V]);var Y=!0,$=!1,ee="secondary",en="primary";V&&($=!0),Q&&(Y=!1),("LOGIN"===g||"SIGNIN"===g)&&(Y=!1),("LOGIN"===g||"SIGNIN"===g)&&($=!0),("404"===g||"PAGE"===g)&&(Y=!0,$=!0,G("secondary")),("DASHBOARD"===g||"SIGNIN"===g)&&(G("primary"),ee="primary",en="secondary",d=x.yW,$=!0);var er,ei=function(e){B(e),ec(!1)},et=function(){"SIGNIN"===g?c.push("/","/",{shallow:!0}):ei("HOME")},eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";B(e),k(!1)},ec=function(e){k(e)},el=(er=(0,t.Z)(s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L(!1);case 2:ec(!1),c.push("/");case 4:case"end":return e.stop()}},e)})),function(){return er.apply(this,arguments)});return(0,I.jsxs)("div",{className:r.grow,children:[(0,I.jsxs)(es,{position:"fixed",elevation:V?5:0,className:a(r.appBar,(0,i.Z)({},r.appBarShift,w)),trigger:V,appbar_color:q,alternative_appbar_color:ee,children:[(0,I.jsxs)(p.Z,{children:["DASHBOARD"===g&&U&&(0,I.jsx)(u.Z,{color:"inherit","aria-label":"open drawer",onClick:function(){return C(!w)},edge:"start",className:a(r.menuButton,(0,i.Z)({},r.hide,w)),size:"large",children:(0,I.jsx)(m.Z,{})}),$&&(0,I.jsx)("div",{className:r.site_logo,children:(0,I.jsx)(Z(),{href:"/",passHref:!0,children:(0,I.jsx)("a",{children:(0,I.jsx)(l(),{src:d,alt:x.px})})})}),$&&(0,I.jsx)("div",{className:r.site_logo_mobile,children:(0,I.jsx)(Z(),{href:"/",passHref:!0,children:(0,I.jsx)("a",{children:(0,I.jsx)(l(),{src:d,alt:x.px,width:80,height:38})})})}),(0,I.jsx)("div",{className:r.grow}),_&&"HOME"===g&&x.KW&&(0,I.jsx)("div",{className:r.links,children:(0,I.jsx)(Z(),{href:"/",passHref:!0,children:(0,I.jsx)(f.Z,{size:"small",className:r.homeButton,variant:"outlined",children:"Home"})})}),_&&(0,I.jsx)("div",{style:{minWidth:"10%"},children:(0,I.jsx)(F,{is_mobil:U,currentUser:y,notifications:b,authenticated:_,set_drawer:k,show_user_text_color:en})}),!Y&&(0,I.jsx)(u.Z,{color:"inherit","aria-label":"open drawer",onClick:function(){return et()},edge:"end",size:"large",children:(0,I.jsx)(j.Z,{style:{color:"#fff"}})}),(0,I.jsx)(T,{})]}),P&&"SIGNIN"!==g&&(0,I.jsx)(M,{})]}),(0,I.jsx)(ea,{set_drawer:ec,set_signin_type:N,is_organization_admin:S,set_signin:eo,drawer:v,constants:O,is_admin:K,current_signature:A,msgs_unread:b,new_user:P,currentUser:y,set_global_page_action:ei,user_t
1ype:H,user_active:E,user_recused:D,setLeftOpen:k,logout:el,app_version:W,authenticated:_})]})}}}]);
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.