1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9184],{18408:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner/dashboard",function(){return a(32764)}])},32764:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return PartnerDashboard}});var r=a(85893),s=a(4023),o=a(42746),n=a(67294),l=a(30727),i=a(33299),u=a(22920),c=a(25675),d=a.n(c),h=a(96245),p=a(11163);function PartnerDashboard(){let e;let t=(0,o.useTranslations)("tables"),a=(0,p.useRouter)(),{token:c,APIURL:m,setCompanyID:f,setPartnerName:g}=(0,s.qD)();c&&(e=(0,h.Z)(c).realm_access.roles.includes("partner"));let _=(0,n.useMemo)(()=>new l.Z(m,c),[c,m]),{data:w}=(0,i.useSession)(),[,N]=(0,n.useState)(),b=(0,n.useCallback)(()=>N({}),[]);return(0,n.useEffect)(()=>{var t;e&&a.push("/partner/register"),c&&_.getById(null==w?void 0:null===(t=w.user)||void 0===t?void 0:t.email,"accounts/by-email").then(e=>{localStorage.setItem("companyID",e.data.userGroup),localStorage.setItem("partnerName",e.data.name),f(e.data.userGroup),g(e.data.name)}).catch(e=>{f(""),console.log("errorDashboard",e),u.Am.error("Erro ao carregar Parceiro",{toastId:"notRegistered"})}).finally(()=>b())},[_]),(0,r.jsxs)("div",{className:"top-1/2 flex justify-center flex-col items-center",children:[(0,r.jsxs)("div",{className:"",style:{position:"relative"},children:[(0,r.jsx)(d(),{priority:!0,width:200,height:200,src:"/logo/loadingMiddle.svg",alt:"icon",style:{position:"absolute",top:0,left:0},className:"w-auto h-auto"}),(0,r.jsx)(d(),{priority:!0,width:200,height:200,src:"/logo/loadingRing.svg",alt:"icon",className:"w-auto h-auto CustomSpin"})]}),(0,r.jsx)("span",{className:"text-lg my-5",children:t("partner")})]})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=18408)}),_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.