1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6284],{35011:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/redirect",function(){return n(53401)}])},53401:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return b}});var s=n(85893),r=n(67294),o=n(11163),a=n(9008),i=n.n(a),c=n(33299),l=n(14416),u=n(51615),f=n(98595),p=n(36955),d=n(17834),m=n(46727),g=n(67423),b=!0;t.default=(0,l.$j)(e=>({sessionData:e.sessionData}),{setSessionData:m.XG})(function(e){let{initialProps:t,setSessionData:n}=e,{dental:a}=t||{},l=(0,o.useRouter)(),{user:m,auth:b,token:O}=l.query,[j,h]=(0,r.useState)(!1),[y,N]=(0,r.useState)(!1),P={title:"Redirect - ".concat(null==a?void 0:a.name),image:"https://catalogomaisodonto.com.br/images/catalogo-mais-odonto.png"};return(0,r.useEffect)(()=>{l.isReady&&e();async function e(){(0,g.I)();let e=await (0,c.signIn)("credentials",{action:"loginAsCustomer",redirect:!1,user:m,auth:b,token:O});return(h(!0),e.error)?N(!0):(await n({userId:m,adminId:b}),l.push("/"))}},[l]),(0,s.jsxs)(u.Z,{initialProps:t,children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:P.title}),(0,s.jsx)("meta",{name:"title",content:P.title}),(0,s.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,s.jsxs)(f.Z,{className:"py-2 py-lg-5",children:[!j&&(0,s.jsx)(p.Z,{color:"success"}),y&&(0,s.jsx)(d.Z,{color:"danger",children:"N\xe3o foi poss\xedvel fazer login. Tente novamente."})]})]})})},17834:function(e,t,n){"use strict";var s=n(87462),r=n(63366),o=n(86656),a=n(67294),i=n(45697),c=n.n(i),l=n(93967),u=n.n(l),f=n(23663),p=n(69638),d=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,s)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b={children:c().node,className:c().string,closeClassName:c().string,closeAriaLabel:c().string,cssModule:c().object,color:c().string,fade:c().bool,isOpen:c().bool,toggle:c().func,tag:f.iC,transition:c().shape(p.Z.propTypes),innerRef:c().oneOfType([c().object,c().string,c().func])},O={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:g(g({},p.Z.defaultProps),{},{unmountOnExit:!0})};function j(e){var t=e.className,n=e.closeClassName,o=e.closeAriaLabel,i=e.cssModule,c=e.tag,l=e.color,m=e.isOpen,b=e.toggle,O=e.children,j=e.transition,h=e.fade,y=e.innerRef,N=(0,r.Z)(e,d),P=(0,f.mx)(u()(t,"alert","alert-"+l,{"alert-dismissible":b}),i),_=(0,f.mx)(u()("close",n),i),w=g(g(g({},p.Z.defaultProps),j),{},{baseClass:h?j.baseClass:"",timeout:h?j.timeout:0});return a.createElement(p.Z,(0,s.Z)({},N,w,{tag:c,className:P,in:m,role:"alert",innerRef:y}),b?a.createElement("button",{type:"button",className:_,"aria-label":o,onClick:b},a.createElement("span",{"aria-hidden":"true"},"\xd7")):null,O)}j.propTypes=b,j.defaultProps=O,t.Z=j}},function(e){e.O(0,[3714,3996,7795,9655,2923,4517,571,953,2888,9774,179],function(){return e(e.s=35011)}),_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.