(this["webpackJsonpweb-voepay"]=this["webpackJsonpweb-voepay"]||[]).push([[0],{183:function(e,a,t){},274:function(e,a,t){},377:function(e,a,t){},416:function(e,a,t){},431:function(e,a,t){},432:function(e,a,t){},473:function(e,a,t){},474:function(e,a,t){},475:function(e,a,t){"use strict";t.r(a);var c=t(1),r=t.n(c),n=t(23),s=t.n(n),o=t(19),l=t(6),i=t.n(l),d=t(10),j=t(3),b=t(11),m=t(166),u=t(112),x=t.n(u),h=t(478),p=t(271),O=t(272),f=t(220),v=t.n(f);var g=function(e){var a=e.title,t=e.text,c=e.icon,r=e.action,n=void 0===r?function(){}:r;v.a.fire(a,t,c).then((function(){n()}))},N=x.a.create({baseURL:"https://api-devops.voepay.com.br/voepay/web"}),w=function(){g({text:"Obrigado pela sua visita!",icon:"success",action:function(){return localStorage.clear(),void(window.location="/login")}})};N.interceptors.request.use(function(){var e=Object(d.a)(i.a.mark((function e(a){var t,c,r,n,s,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=localStorage.getItem("dataExpiracaoSessao"),c=new Date,!(r=JSON.parse(localStorage.getItem("authTokenData")))||"/Usuario/Autenticar"===a.url){e.next=16;break}if(a.headers.Authorization="Bearer ".concat(r.accessToken),n=Object(h.default)(Object(m.default)(c,2),"yyyy-MM-dd HH:mm"),s=Object(h.default)(new Date(r.expiringAt),"yyyy-MM-dd HH:mm"),n!==s&&!Object(p.default)(new Date(n),new Date(s))){e.next=12;break}return e.next=10,S();case 10:o=e.sent,localStorage.setItem("authTokenData",JSON.stringify(o.data));case 12:if(!t){e.next=16;break}if(!Object(O.default)(new Date(t),c)){e.next=16;break}return w(),e.abrupt("return",Promise.reject());case 16:return e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}());var y=N,C=function(){var e=Object(d.a)(i.a.mark((function e(a,t){var c,r,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c={Cpf:a,Senha:t,TipoUsuarioId:1},e.next=3,y.post("/Usuario/Autenticar",c);case 3:return r=e.sent,n=r.data,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}(),S=function(){var e=Object(d.a)(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",x.a.post("https://sso-hml.b2esistemas.com.br/api/token/get",{user:"usr.svc.voepay",password:"othFY!:Cb+lOjX2"}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=Object(d.a)(i.a.mark((function e(a){var t,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.post("/Usuario/EnviarCodigoEsqueciMinhaSenha",{cpf:a,TipoUsuarioId:1});case 2:return t=e.sent,c=t.data,e.abrupt("return",c);case 5:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),A=function(){var e=Object(d.a)(i.a.mark((function e(a,t){var c,r,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c={Cpf:a,CodigoEsqueciMinhaSenha:t,TipoUsuarioId:1},e.next=3,y.post("/Usuario/ValidarCodigoEsqueciMinhaSenha",c);case 3:return r=e.sent,n=r.data,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}(),P=function(){var e=Object(d.a)(i.a.mark((function e(a,t){var c,r,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c={cpf:a,senha:t,TipoUsuarioId:1},e.next=3,y.post("/Usuario/TrocarSenha",c);case 3:return r=e.sent,n=r.data,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(a,t){return e.apply(this,arguments)}}(),D=function(){var e=Object(d.a)(i.a.mark((function e(){var a,t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.get("/configuracoesgerais/GetConfiguracoesGerais");case 2:return a=e.sent,t=a.data,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=Object(d.a)(i.a.mark((function e(a){var t,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.post("/configuracoesgerais/AtualizarConfiguracoesGerais",a);case 2:return t=e.sent,c=t.data,e.abrupt("return",c);case 5:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}();function M(){var e=Object(c.useState)(!1),a=Object(b.a)(e,2),t=a[0],r=a[1],n=Object(c.useState)(!0),s=Object(b.a)(n,2),o=s[0],l=s[1];function j(){return(j=Object(d.a)(i.a.mark((function e(a,t){var c,n,s,o,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(a,t);case 2:if(!(c=e.sent).sucesso||!c.data.autenticado||c.data.redirecionarTrocaDeSenha){e.next=17;break}return e.next=6,S();case 6:return n=e.sent,localStorage.setItem("userData",JSON.stringify(c)),localStorage.setItem("authTokenData",JSON.stringify(n.data)),e.next=11,D();case 11:s=e.sent,o=s.data.tempoSessaoAreaLogadaAdmin,l=Object(m.default)(new Date,o),localStorage.setItem("dataExpiracao",l),r(!0),window.location="/home";case 17:return e.abrupt("return",c);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(c.useEffect)((function(){localStorage.getItem("userData")&&r(!0),l(!1)}),[]),{authenticated:t,loading:o,handleLogin:function(e,a){return j.apply(this,arguments)},handleLogout:function(){r(!1),localStorage.removeItem("userData"),window.location="/login"},enviarCodigoSenha:k,validarCodigo:A,trocarSenha:P}}var F=t(0),E=Object(c.createContext)();function z(e){var a=e.children,t=M(),c=t.authenticated,r=t.loading,n=t.handleLogin,s=t.handleLogout,o=t.enviarCodigoSenha,l=t.validarCodigo,i=t.trocarSenha;return Object(F.jsx)(E.Provider,{value:{loading:r,authenticated:c,handleLogin:n,handleLogout:s,enviarCodigoSenha:o,validarCodigo:l,trocarSenha:i},children:a})}function T(e){return e.toString().replace(/\D/g,"").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})/,"$1-$2").replace(/(-\d{2})\d+?$/,"$1")}function L(e){return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL",minimumFractionDigits:2}).format(e)}var V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e){var a=e.replace(/\D/g,"");return 10===a.length?e.replace(/\D/g,"").replace(/([1-9]{2})/,"($1) ").replace(/(\d{4})/,"$1-").replace(/(\d{4})/,"$1"):e.replace(/\D/g,"").replace(/(\d{2})/,"($1) ").replace(/(\d{5})/,"$1-").replace(/(\d{4})/,"$1")}},R=function(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")},q=t(75);t(274);function U(e){var a=e.width,t=e.height;return Object(F.jsxs)("div",{className:"spinner-login",children:[Object(F.jsx)("div",{className:"bounce1",style:{width:a,height:t}}),Object(F.jsx)("div",{className:"bounce2",style:{width:a,height:t}}),Object(F.jsx)("div",{className:"bounce3",style:{width:a,height:t}})]})}var B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAAAaCAYAAADcx/BtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA2IDc5LmRhYmFjYmIsIDIwMjEvMDQvMTQtMDA6Mzk6NDQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0P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eaeqDANjSvMuCIq8+TEuJR6Cl76LHydjAdPkqagiGdjhh2fk9NZXV3tczpvaTucTvWXNbXGluZm1mRtYU1N1pqpUyevW/3Sz7xNzVYGJR/ypRFaXZ3gjUxYaQ95jDyPUsC/6dhHiUYuiO92YyfQz3WHQo3Ld6bhxhVRYuYrD14qvLc1I5wmnund6ZLYyZIS3T8/+VcxhP8UrInxe7EJ0EhaBiVc8ZVr17x7cvNYTU0NNB8e3B2rF56HCeETmsAIIUs30KaSjfMGTCZ/4j5Q3ofo/hok99e12BTmvJXen93P2IMcyeLCHruj4xM3YbDc2vXpXi9o61FJ0kxRuO1Qj8/P9u3bjy1zaAxl3Ve4e16gJJFNGizbNQo1F+leOlcKZdGHH6T/VVRZLL9PXW+VcPwcbVhlCruMSlbY2zTdIXE35D0ZxU17TFpd3d1s167d0NH14K5cvkLIoQeWolcbjUaZYPmlFwS9e42Kd94+5vRuK3c+kTwAo2kCdV/oCDu/7rZBGCvhWmhZLrCzWzKAqGgBnOiD/PY+SY4E0nLzPmPnKytDm+NgZcIkGK3STYWHO6m2bAvzUdhY/Jk7xmz/V+44gX44kO0j2jG7G1IrZF0MY1hGvqVwvpZ+iOhP3/MU9qYP8gea5cuW3faLQ1l5BTtScDRUgtGesJd+ZdAS2RZqXPrSyHrq79NIi7XU2uIG/PuANaSx4qS6SFKMwv1ruU6rP8P3ZdA899KesWsA486Sw42hCuEiSZ2Djuvomz5UmLuLWmz5FwR0sF9z9T5THdi37zYt3vzue5DIqpmwcX+3lkkJxE/k2/u5HyuQRygsrQqZ/35bOnWJ1YOoyVFWdnGqgJG6OKxm6XTakC7fI6sZ5P2dvAf8H6xOQRr7s0WC7B5iYbb7HtrgLVr4AcPNl24PSb43Nkuo/6toe2LQJc5D69vSqPrqoYT4B6V97/8KMAAfjHbfBDH8UQAAAABJRU5ErkJggg==";function Y(){return Object(F.jsx)("header",{className:"wrapper bg-soft-primary",children:Object(F.jsx)("nav",{className:"navbar classic transparent navbar-expand-lg navbar-light",children:Object(F.jsxs)("div",{className:"container flex-lg-row flex-nowrap align-items-center",children:[Object(F.jsx)("div",{className:"navbar-brand w-100",children:Object(F.jsx)("a",{href:"start.html",children:Object(F.jsx)("img",{src:B,srcSet:B,alt:"",style:{width:140}})})}),Object(F.jsxs)("div",{className:"navbar-collapse offcanvas-nav",children:[Object(F.jsxs)("div",{className:"offcanvas-header d-lg-none d-xl-none",children:[Object(F.jsx)("a",{href:"start.html",children:Object(F.jsx)("img",{src:"/img/logo-light.png",srcSet:"/img/logo-light@2x.png 2x",alt:"Voe Pay"})}),Object(F.jsx)("button",{type:"button",className:"btn-close btn-close-white offcanvas-close offcanvas-nav-close","aria-label":"Close"})]}),Object(F.jsxs)("ul",{className:"navbar-nav",children:[Object(F.jsx)("li",{className:"nav-item",children:Object(F.jsx)("a",{className:"nav-link",href:"#!",children:"Home"})}),Object(F.jsx)("li",{className:"nav-item",children:Object(F.jsx)("a",{className:"nav-link",href:"#!",children:"A VoePay"})}),Object(F.jsx)("li",{className:"nav-item",children:Object(F.jsx)("a",{className:"nav-link",href:"#!",children:"Condi\xe7\xf5es Exclusivas"})}),Object(F.jsx)("li",{className:"nav-item",children:Object(F.jsx)("a",{className:"nav-link",href:"#!",children:"FAQ"})}),Object(F.jsx)("li",{className:"nav-item",children:Object(F.jsx)("a",{className:"nav-link",href:"#!",children:"Fale Conosco"})})]})]}),Object(F.jsx)("div",{className:"navbar-other ms-lg-4",children:Object(F.jsxs)("ul",{className:"navbar-nav flex-row align-items-center ms-auto","data-sm-skip":"true",children:[Object(F.jsx)("li",{className:"nav-item d-none d-md-block",children:Object(F.jsx)("a",{href:"#",className:"btn btn-sm btn-dark rounded",children:"Quero ser Parceiro"})}),Object(F.jsx)("li",{className:"nav-item ms-lg-0",children:Object(F.jsx)("div",{className:"navbar-hamburger d-lg-none d-xl-none ms-auto",children:Object(F.jsx)("button",{className:"hamburger animate plain","data-toggle":"offcanvas-nav",children:Object(F.jsx)("span",{})})})})]})})]})})})}function J(){return Object(F.jsx)("footer",{className:"bg-dark text-inverse",children:Object(F.jsx)("div",{className:"container py-13 py-md-15",children:Object(F.jsxs)("div",{className:"row gy-6 gy-lg-0",children:[Object(F.jsx)("div",{className:"col-md-4 col-lg-4",children:Object(F.jsxs)("div",{className:"widget",children:[Object(F.jsx)("img",{className:"mb-4",src:B,srcSet:B,alt:"",style:{width:45}}),Object(F.jsxs)("p",{className:"mb-4",children:["\xa9 2021 VoePay. ",Object(F.jsx)("br",{className:"d-none d-lg-block"}),"Todos os direitos reservados.",Object(F.jsx)("br",{})," Powered by RZ8 Web"]})]})}),Object(F.jsx)("div",{className:"col-md-4 col-lg-4",children:Object(F.jsxs)("div",{className:"widget",children:[Object(F.jsx)("h4",{className:"widget-title text-white mb-3",children:"Fale Conosco"}),Object(F.jsx)("address",{className:"pe-xl-15 pe-xxl-17",children:"Moonshine St. 14/05 Light City, London, United Kingdom"}),Object(F.jsx)("a",{href:"mailto:#",children:"info@email.com"}),Object(F.jsx)("br",{})," +00 (123) 456 78 90"]})}),Object(F.jsx)("div",{className:"col-md-4 col-lg-4",children:Object(F.jsxs)("div",{className:"widget",children:[Object(F.jsx)("h4",{className:"widget-title text-white mb-3",children:"Menu"}),Object(F.jsxs)("ul",{className:"list-unstyled mb-0",children:[Object(F.jsx)("li",{children:Object(F.jsx)("a",{href:"#",children:"A Voe Pay"})}),Object(F.jsx)("li",{children:Object(F.jsx)("a",{href:"#",children:"Condi\xe7\xf5es Exclusivas"})}),Object(F.jsx)("li",{children:Object(F.jsx)("a",{href:"#",children:"FAQ"})}),Object(F.jsx)("li",{children:Object(F.jsx)("a",{href:"#",children:"Fale Conosco"})}),Object(F.jsx)("li",{children:Object(F.jsx)("a",{href:"#",children:"Pol\xedtica de Privacidade"})}),Object(F.jsx)("li",{children:Object(F.jsx)("a",{href:"#",children:"Termo de Uso"})})]})]})})]})})})}var G=t(487),Z=t(485);t(183);function H(e){var a=e.inputCpf,t=e.setInputCpf,r=e.modalVisible,n=e.modalToggle,s=e.etapaTrocaSenha,o=e.setEtapaTrocaSenha,l=Object(c.useState)({}),m=Object(b.a)(l,2),u=m[0],x=m[1],h=Object(c.useState)({}),p=Object(b.a)(h,2),O=p[0],f=p[1],v=Object(c.useState)(!1),g=Object(b.a)(v,2),N=g[0],w=g[1],y=Object(c.useState)(!1),C=Object(b.a)(y,2),S=C[0],k=C[1],A=Object(c.useState)(!1),P=Object(b.a)(A,2),D=P[0],I=P[1],M=Object(c.useState)(!1),z=Object(b.a)(M,2),L=z[0],V=z[1],R=Object(c.useState)(1),B=Object(b.a)(R,2),Y=B[0],J=B[1],H=Object(c.useState)(null),W=Object(b.a)(H,2),Q=W[0],X=W[1],K=Object(c.useState)(null),_=Object(b.a)(K,2),$=_[0],ee=_[1],ae=Object(c.useState)(null),te=Object(b.a)(ae,2),ce=te[0],re=te[1],ne=Object(c.useState)("Enviar"),se=Object(b.a)(ne,2),oe=se[0],le=se[1],ie=Object(c.useState)(!1),de=Object(b.a)(ie,2),je=de[0],be=de[1],me=Object(c.useState)(""),ue=Object(b.a)(me,2),xe=ue[0],he=ue[1],pe=Object(c.useContext)(E),Oe=pe.enviarCodigoSenha,fe=pe.validarCodigo,ve=pe.trocarSenha;function ge(e){w(!1);var a=e.target.value;x(Object(j.a)(Object(j.a)({},u),{},{cpf:"Digite seu CPF"})),t(T(a))}Object(c.useEffect)((function(){s&&J(s)}),[s]);var Ne=function(e){k(!1);var a=e.target.value;x(Object(j.a)(Object(j.a)({},u),{},{codigo:"Digite o c\xf3digo"})),X(a)},we=function(e){var a=e.target,t=a.id,c=a.value;switch(I(!1),t){case"senha":x(Object(j.a)(Object(j.a)({},u),{},{senha:"Digite a nova senha"})),ee(c);break;case"confirmarSenha":be($!==c),x(Object(j.a)(Object(j.a)({},u),{},{confirmarSenha:"Confirme a nova senha"})),re(c)}};function ye(e,a){return Ce.apply(this,arguments)}function Ce(){return(Ce=Object(d.a)(i.a.mark((function e(t,c){var s,l,d;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),e.t0=c||Y,e.next=0===e.t0?4:1===e.t0?8:2===e.t0?25:3===e.t0?37:57;break;case 4:return n(!r),le("Enviar"),J(1),e.abrupt("break",57);case 8:if(a){e.next=13;break}f(Object(j.a)(Object(j.a)({},O),{},{cpf:!0})),x(Object(j.a)(Object(j.a)({},u),{},{cpf:"Digite seu CPF"})),e.next=24;break;case 13:if(q.a.isValid(a)){e.next=19;break}f(Object(j.a)(Object(j.a)({},O),{},{cpf:!0})),x(Object(j.a)(Object(j.a)({},u),{},{cpf:"CPF Inv\xe1lido"})),w(!0),e.next=24;break;case 19:return V(!0),e.next=22,Oe(a).catch((function(){return V(!1)}));case 22:(null===(s=e.sent)||void 0===s?void 0:s.sucesso)&&(le("Validar C\xf3digo"),J(2),he(null===s||void 0===s?void 0:s.data));case 24:return e.abrupt("break",57);case 25:if(Q){e.next=30;break}f(Object(j.a)(Object(j.a)({},O),{},{codigo:!0})),x(Object(j.a)(Object(j.a)({},u),{},{codigo:"Digite o c\xf3digo"})),e.next=36;break;case 30:return V(!0),e.next=33,fe(a,Q).catch((function(){return V(!1)}));case 33:(null===(l=e.sent)||void 0===l?void 0:l.sucesso)?(le("Alterar Senha"),J(3)):(k(!0),x(Object(j.a)(Object(j.a)({},u),{},{codigo:"C\xf3digo Inv\xe1lido"}))),V(!1);case 36:return e.abrupt("break",57);case 37:if($&&ce){e.next=41;break}return f(Object(j.a)(Object(j.a)({},O),{},{senha:!0,confirmarSenha:!0})),x(Object(j.a)(Object(j.a)({},u),{},{senha:!$&&"Digite a nova senha",confirmarSenha:!ce&&"Confirme a nova senha"})),e.abrupt("return");case 41:if($.match(/^(?=.*\d)(?=.*[A-Z])([^\s]){8,}$/)){e.next=47;break}I(!0),f(Object(j.a)(Object(j.a)({},O),{},{senha:!0})),x(Object(j.a)(Object(j.a)({},u),{},{senha:"Importante: A senha deve conter pelo menos 1 letra mai\xfascula, 1 n\xfamero e 8 caracteres."})),e.next=56;break;case 47:if($===ce){e.next=51;break}be(!0),e.next=56;break;case 51:return V(!0),e.next=54,ve(a,$).catch((function(){return V(!1)}));case 54:(null===(d=e.sent)||void 0===d?void 0:d.sucesso)&&(le("Fechar"),o(null),J(0));case 56:return e.abrupt("break",57);case 57:V(!1);case 58:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(F.jsx)(G.a,{isOpen:r,toggle:n,className:"modal-dialog-centered modal-sm",children:Object(F.jsxs)(Z.a,{className:"modal-content text-center",children:[Object(F.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"}),s?Object(F.jsx)("h4",{className:"mb-4",children:"Para a sua seguran\xe7a crie sua senha personalizada."}):Object(F.jsx)("h4",{className:"mb-4",children:"Recuperar Senha"}),0===Y&&Object(F.jsx)("p",{children:"Senha alterada com sucesso! Fa\xe7a login com a nova senha."}),1===Y&&Object(F.jsx)("p",{children:"Ol\xe1! Informe seu CPF no campo abaixo que enviaremos um c\xf3digo de confirma\xe7\xe3o para seu celular cadastrado, digite o mesmo no campo abaixo e altere sua senha."}),2===Y&&Object(F.jsx)("p",{children:"Informe o c\xf3digo recebido no celular com o final: ".concat(xe)}),Object(F.jsxs)("form",{className:"text-start mb-3",children:[function(){switch(Y){case 1:return Object(F.jsx)(F.Fragment,{children:Object(F.jsxs)("div",{className:"form-label-group mb-4",children:[Object(F.jsx)("input",{type:"text",className:"form-control ".concat((!a||N)&&u.cpf&&O.cpf&&"required"),placeholder:"CPF",id:"cpfModal",value:a,onChange:ge,onFocus:function(){return f(Object(j.a)(Object(j.a)({},O),{},{cpf:!0}))}}),Object(F.jsx)("label",{htmlFor:"cpfModal",children:"Digite seu CPF"}),Object(F.jsx)("small",{children:(!a||N)&&O.cpf&&u.cpf})]})});case 2:return Object(F.jsxs)("div",{className:"form-label-group mb-4",children:[Object(F.jsx)("input",{type:"text",className:"form-control ".concat((!Q||S)&&u.codigo&&O.codigo&&"required"),placeholder:"Digite o c\xf3digo",id:"codigo",value:Q,onChange:Ne,onFocus:function(){return f(Object(j.a)(Object(j.a)({},O),{},{codigo:!0}))}}),Object(F.jsx)("label",{htmlFor:"codigo",children:"Digite o c\xf3digo"}),Object(F.jsx)("small",{children:(!Q||S)&&O.codigo&&u.codigo})]});case 3:return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsxs)("div",{className:"form-label-group mb-4",children:[Object(F.jsx)("input",{type:"password",className:"form-control ".concat((!$||D)&&u.senha&&O.senha&&"required"),placeholder:"Digite a nova senha",id:"senha",value:$,onChange:we,onFocus:function(){return f(Object(j.a)(Object(j.a)({},O),{},{senha:!0}))}}),Object(F.jsx)("label",{htmlFor:"senha",children:"Digite a nova senha"}),Object(F.jsx)("small",{children:(!$||D)&&O.senha&&u.senha})]}),Object(F.jsxs)("div",{className:"form-label-group mb-4",children:[Object(F.jsx)("input",{type:"password",className:"form-control ".concat(!ce&&u.confirmarSenha&&O.confirmarSenha&&"required"),placeholder:"Confirme a nova senha",id:"confirmarSenha",value:ce,onChange:we,onFocus:function(){return f(Object(j.a)(Object(j.a)({},O),{},{confirmarSenha:!0}))}}),Object(F.jsx)("label",{htmlFor:"confirmarSenha",children:"Confirme a nova senha"}),Object(F.jsx)("small",{children:!ce&&O.confirmarSenha&&u.confirmarSenha})]}),je&&Object(F.jsx)("small",{className:"erro-login mb-4",children:"As senhas n\xe3o coincidem"})]})}}(),Object(F.jsx)("button",{href:"#",onClick:function(e){return ye(e)},className:"btn btn-primary rounded-pill btn-login w-100 mb-2",alt:"Enviar",disabled:L,children:L?Object(F.jsx)(U,{}):oe})]}),2===Y&&Object(F.jsxs)("small",{className:"reennviar-codigo",children:["N\xe3o recebeu o c\xf3digo?"," ",Object(F.jsx)("a",{href:"#",onClick:function(e){return ye(e,1)},className:"hover",children:"Clique aqui para reenviar"})]})]})})}function W(){var e=Object(c.useContext)(E).handleLogin,a=Object(c.useState)(null),r=Object(b.a)(a,2),n=r[0],s=r[1],o=Object(c.useState)(null),l=Object(b.a)(o,2),m=l[0],u=l[1],x=Object(c.useState)(!1),h=Object(b.a)(x,2),p=h[0],O=h[1],f=Object(c.useState)(!1),v=Object(b.a)(f,2),g=v[0],N=v[1],w=Object(c.useState)(!1),y=Object(b.a)(w,2),C=y[0],S=y[1],k=Object(c.useState)(!1),A=Object(b.a)(k,2),P=A[0],D=A[1],I=Object(c.useState)({}),M=Object(b.a)(I,2),z=M[0],L=M[1],V=Object(c.useState)({}),R=Object(b.a)(V,2),B=R[0],G=R[1],Z=Object(c.useState)(!1),W=Object(b.a)(Z,2),Q=W[0],X=W[1],K=Object(c.useState)(!1),_=Object(b.a)(K,2),$=_[0],ee=_[1],ae=Object(c.useState)(null),te=Object(b.a)(ae,2),ce=te[0],re=te[1],ne=function(){return X(!Q)};function se(e){D(!1);var a=e.target,t=a.id,c=a.value;switch(N(!1),S(!1),t){case"cpf":L(Object(j.a)(Object(j.a)({},z),{},{cpf:"Digite seu CPF"})),s(T(c));break;case"password":L(Object(j.a)(Object(j.a)({},z),{},{senha:"Digite sua senha"})),u(c)}}var oe=function(e){switch(e.target.id){case"cpf":G(Object(j.a)(Object(j.a)({},B),{},{cpf:!0}));break;case"password":G(Object(j.a)(Object(j.a)({},B),{},{senha:!0}))}};function le(){return(le=Object(d.a)(i.a.mark((function a(t){var c,r;return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.preventDefault(),N(!1),S(!1),n||m){a.next=7;break}return G(Object(j.a)(Object(j.a)({},B),{},{cpf:!0,senha:!0})),L(Object(j.a)(Object(j.a)({},z),{},{cpf:"Digite seu CPF",senha:"Digite sua senha"})),a.abrupt("return");case 7:if(n){a.next=12;break}G(Object(j.a)(Object(j.a)({},B),{},{cpf:!0})),L(Object(j.a)(Object(j.a)({},z),{},{cpf:"Digite seu CPF"})),a.next=33;break;case 12:if(q.a.isValid(n)){a.next=18;break}G(Object(j.a)(Object(j.a)({},B),{},{cpf:!0})),L(Object(j.a)(Object(j.a)({},z),{},{cpf:"CPF Inv\xe1lido"})),D(!0),a.next=33;break;case 18:if(m){a.next=23;break}G(Object(j.a)(Object(j.a)({},B),{},{senha:!0})),L(Object(j.a)(Object(j.a)({},z),{},{senha:"Digite sua senha"})),a.next=33;break;case 23:return O(!0),a.next=26,e(n,m);case 26:if(null===(r=a.sent)||void 0===r?void 0:r.data){a.next=31;break}return N(!0),O(!1),a.abrupt("return");case 31:(null===r||void 0===r?void 0:r.data.autenticado)||(S(!0),O(!1)),(null===r||void 0===r||null===(c=r.data)||void 0===c?void 0:c.redirecionarTrocaDeSenha)&&(O(!1),re(3),ne());case 33:case"end":return a.stop()}}),a)})))).apply(this,arguments)}return Object(c.useEffect)((function(){localStorage.clear();var e=document.createElement("script"),a=document.createElement("script");function c(){return(c=Object(d.a)(i.a.mark((function c(){var r,n,s;return i.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:r=0,n=[function(){return new Promise((function(e){e(t.e(3).then(t.t.bind(null,488,7)))}))},function(){return new Promise((function(t){t(document.body.appendChild(e),document.body.appendChild(a))}))}];case 4:if(!(r=0||(r[t]=e[t]);return r}(e,a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function aa(e,a){var t=e.title,r=e.titleId,n=ea(e,_e);return c.createElement("svg",$e({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"20px",height:"20px",viewBox:"0 0 100 100",enableBackground:"new 0 0 100 100",xmlSpace:"preserve",ref:a,"aria-labelledby":r},n),t?c.createElement("title",{id:r},t):null,Ze||(Ze=c.createElement("path",{d:"M89.938,31.113c-0.638-3.626-6.058-5.703-12.096-4.635l-43.223,7.621L18.594,20l-8.206,1.445l5.631,15.931L10,38.438 l0.579,3.284c7.725,5.414,16.918,7.172,25.527,5.654l5.752-1.016l-2.936,14.057l9.847-1.738l19.349-16.947l12.038-2.122 C86.194,38.542,90.579,34.739,89.938,31.113z",fill:"currentColor"})),He||(He=c.createElement("rect",{x:10,y:73.333,width:80,height:6.667,fill:"currentColor"})))}var ta=c.forwardRef(aa);t.p,t(431);function ca(){var e=Object(c.useState)(!1),a=Object(b.a)(e,2),t=a[0],r=a[1],n=Object(c.useState)([]),s=Object(b.a)(n,2),o=s[0],l=s[1],j=Object(c.useState)([]),m=Object(b.a)(j,2),u=m[0],x=m[1];Object(c.useEffect)((function(){function e(){return(e=Object(d.a)(i.a.mark((function e(){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.next=3,We();case 3:a=e.sent,l(a.data||[]),x(a.data||[]),r(!1);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var h=function(){return Object(F.jsxs)("tr",{className:"text-uppercase",children:[Object(F.jsx)("th",{children:"Sigla"}),Object(F.jsx)("th",{style:{minWidth:200},children:"Descri\xe7\xe3o"}),Object(F.jsx)("th",{style:{minWidth:150},children:"Cidade"}),Object(F.jsx)("th",{children:"Estado"}),Object(F.jsx)("th",{children:"Pa\xeds"}),Object(F.jsx)("th",{className:"pr-0 text-right",style:{minWidth:160},children:"Detalhes"})]})},p=function(){return null===o||void 0===o?void 0:o.map((function(e){var a=e.aeroportoId,t=e.sigla,c=e.descricao,r=e.cidade,n=e.estado,s=e.pais;return Object(F.jsxs)("tr",{children:[Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:t})}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:c})}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:r})}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:n})}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:s})}),Object(F.jsx)("td",{className:"pr-0 text-right",children:Object(F.jsx)(ve.a,{to:"aeroporto/".concat(a),className:"btn btn-icon btn-outline-success btn-circle btn-sm mr-2",children:Object(F.jsx)("i",{className:"fas fa-search-plus"})})})]},a)}))};return Object(F.jsx)(de,{active:t,children:Object(F.jsxs)(oe,{children:[Object(F.jsxs)("div",{className:"card-header border-0 py-5",children:[Object(F.jsxs)("h3",{className:"card-title align-items-start flex-column",children:[Object(F.jsx)("span",{className:"card-label font-weight-bolder text-dark",children:"Aeroportos"}),Object(F.jsxs)("span",{className:"text-dark mt-3 font-weight-bold font-size-sm",children:["Voc\xea est\xe1 visualizando ",Object(F.jsxs)("b",{children:[null===o||void 0===o?void 0:o.length," aeroportos"]})]})]}),Object(F.jsxs)("div",{className:"d-flex col-lg-5",children:[Object(F.jsx)("input",{type:"text",placeholder:"Pesquisar na tabela",className:"form-control",onChange:function(e){return function(e){var a=u.filter((function(a){var t=a.sigla,c=a.descricao,r=a.cidade,n=a.estado,s=a.pais;return R(t).includes(R(e))||R(c).includes(R(e))||R(r).includes(R(e))||R(n).includes(R(e))||R(s).includes(R(e))}));l(a)}(e.target.value)}}),Object(F.jsxs)("button",{type:"button",className:"btn btn-success form-control col-lg-4 ml-2",onClick:function(){return Se.push("/aeroporto")},children:[Object(F.jsx)(ta,{})," Adicionar"]})]})]}),Object(F.jsx)("div",{className:"list-propostas",children:Object(F.jsx)("div",{className:"card-body py-0",children:Object(F.jsx)("div",{className:"table-responsive",children:Object(F.jsxs)("table",{className:"table table-head-custom table-vertical-center",id:"kt_advance_table_widget_2",children:[Object(F.jsx)("thead",{children:Object(F.jsx)(h,{})}),Object(F.jsx)("tbody",{children:Object(F.jsx)(p,{})})]})})})})]})})}function ra(){return Object(F.jsx)(se,{children:Object(F.jsx)(ca,{})})}var na,sa=Object(ce.c)().shape({sigla:Object(ce.e)().required("A sigla \xe9 obrigat\xf3ria").nullable(),descricao:Object(ce.e)().required("A descri\xe7\xe3o \xe9 obrigat\xf3ria").nullable(),cidade:Object(ce.e)().required("A cidade \xe9 obrigat\xf3ria").nullable(),estado:Object(ce.e)().required("O estado \xe9 obrigat\xf3rio").nullable(),pais:Object(ce.e)().required("O pa\xeds \xe9 obrigat\xf3rio").nullable()}),oa={sigla:"",descricao:"",cidade:"",estado:"",pais:""};function la(){var e=Object(o.g)(),a=Number(null===e||void 0===e?void 0:e.aeroportoId),t=Object(c.useState)(oa),r=Object(b.a)(t,2),n=r[0],s=r[1],l=Object(c.useState)(!1),m=Object(b.a)(l,2),u=m[0],x=m[1];return Object(c.useEffect)((function(){function e(){return e=Object(d.a)(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x(!0),e.next=3,Qe(a);case 3:t=e.sent,s((function(e){return Object(j.a)(Object(j.a)({},e),t.data||oa)})),x(!1);case 6:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}a&&function(){e.apply(this,arguments)}()}),[a]),Object(F.jsx)(se,{children:Object(F.jsx)(de,{active:u,marginTop:300,children:Object(F.jsx)(oe,{children:Object(F.jsx)("div",{className:"card-body p-0",children:Object(F.jsx)("div",{className:"row justify-content-center my-10 px-8 my-lg-15 px-lg-10",children:Object(F.jsx)("div",{className:"col-xl-12 col-xxl-7",children:Object(F.jsx)(X.d,{initialValues:n,validationSchema:sa,validateOnBlur:!0,enableReinitialize:!0,onSubmit:function(){var e=Object(d.a)(i.a.mark((function e(t){var c,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x(!0),a){e.next=8;break}return e.next=4,Xe(t).catch((function(){return x(!1)}));case 4:(null===(c=e.sent)||void 0===c?void 0:c.sucesso)&&(x(!1),g({text:"Aeroporto cadastrado com sucesso!",icon:"success"})),e.next=12;break;case 8:return e.next=10,Ke(t).catch((function(){return x(!1)}));case 10:(null===(r=e.sent)||void 0===r?void 0:r.sucesso)&&(x(!1),g({text:"Aeroporto atualizado com sucesso!",icon:"success"}));case 12:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),children:Object(F.jsxs)(X.c,{children:[Object(F.jsx)("h2",{className:"mb-10 font-weight-bolder",children:a?"Editar aeroporto":"Cadastrar aeroporto"}),Object(F.jsx)("div",{className:"form-group",children:Object(F.jsxs)("h4",{className:"mb-10 font-weight-bold text-primary",children:[Object(F.jsx)("i",{className:"far fa-edit text-primary"})," Dados do aeroporto"]})}),Object(F.jsxs)("div",{className:"form-group",children:[Object(F.jsx)("label",{children:"Sigla"}),Object(F.jsx)(X.b,{name:"sigla",className:"form-control form-control-solid form-control-lg",placeholder:"Digite a sigla do aeroporto"}),Object(F.jsx)("span",{className:"form-text text-muted",children:"Sigla do aeroporto"}),Object(F.jsx)(X.a,{name:"sigla",component:"small"})]}),Object(F.jsxs)("div",{className:"row",children:[Object(F.jsx)("div",{className:"col-xl-6",children:Object(F.jsxs)("div",{className:"form-group",children:[Object(F.jsx)("label",{children:"Descri\xe7\xe3o"}),Object(F.jsx)(X.b,{name:"descricao",className:"form-control form-control-solid form-control-lg",placeholder:"Digite a descri\xe7\xe3o do aeroporto"}),Object(F.jsx)("span",{className:"form-text text-muted",children:"Descri\xe7\xe3o do aeroporto"}),Object(F.jsx)(X.a,{name:"descricao",component:"small"})]})}),Object(F.jsx)("div",{className:"col-xl-6",children:Object(F.jsxs)("div",{className:"form-group",children:[Object(F.jsx)("label",{children:"Cidade"}),Object(F.jsx)(X.b,{name:"cidade",className:"form-control form-control-solid form-control-lg",placeholder:"Digite a cidade do aeroporto"}),Object(F.jsx)("span",{className:"form-text text-muted",children:"Cidade do aeroporto"}),Object(F.jsx)(X.a,{name:"cidade",component:"small"})]})})]}),Object(F.jsxs)("div",{className:"row",children:[Object(F.jsx)("div",{className:"col-xl-6",children:Object(F.jsxs)("div",{className:"form-group",children:[Object(F.jsx)("label",{children:"Estado"}),Object(F.jsx)(X.b,{name:"estado",className:"form-control form-control-solid form-control-lg",placeholder:"Digite o estado do aeroporto"}),Object(F.jsx)("span",{className:"form-text text-muted",children:"Estado do aeroporto"}),Object(F.jsx)(X.a,{name:"estado",component:"small"})]})}),Object(F.jsx)("div",{className:"col-xl-6",children:Object(F.jsxs)("div",{className:"form-group",children:[Object(F.jsx)("label",{children:"Pa\xeds"}),Object(F.jsx)(X.b,{name:"pais",className:"form-control form-control-solid form-control-lg",placeholder:"Digite o pa\xeds do aeroporto"}),Object(F.jsx)("span",{className:"form-text text-muted",children:"Pa\xeds do aeroporto"}),Object(F.jsx)(X.a,{name:"pais",component:"small"})]})})]}),Object(F.jsx)("div",{className:"d-flex justify-content-end border-top mt-5 pt-10",children:Object(F.jsx)("button",{type:"submit",className:"btn btn-success font-weight-bolder text-uppercase px-9 py-4",children:a?"Salvar":"Cadastrar"})})]})})})})})})})})}var ia=["title","titleId"];function da(){return da=Object.assign||function(e){for(var a=1;a=0||(r[t]=e[t]);return r}(e,a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function ba(e,a){var t=e.title,r=e.titleId,n=ja(e,ia);return c.createElement("svg",da({xmlns:"http://www.w3.org/2000/svg",width:"20px",height:"20px",viewBox:"0 0 28 28",fill:"currentColor",ref:a,"aria-labelledby":r},n),t?c.createElement("title",{id:r},t):null,na||(na=c.createElement("g",null,c.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),c.createElement("path",{d:"M2 20h20v2H2v-2zm2-8h2v7H4v-7zm5 0h2v7H9v-7zm4 0h2v7h-2v-7zm5 0h2v7h-2v-7zM2 7l10-5 10 5v4H2V7zm10 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"}))))}var ma=c.forwardRef(ba);t.p,t(432);function ua(){var e=Object(c.useState)(!1),a=Object(b.a)(e,2),t=a[0],r=a[1],n=Object(c.useState)([]),s=Object(b.a)(n,2),o=s[0],l=s[1],j=Object(c.useState)([]),m=Object(b.a)(j,2),u=m[0],x=m[1];Object(c.useEffect)((function(){function e(){return(e=Object(d.a)(i.a.mark((function e(){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.next=3,ke();case 3:a=e.sent,l(a.data||[]),x(a.data||[]),r(!1);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var h=function(){return Object(F.jsxs)("tr",{className:"text-uppercase",children:[Object(F.jsx)("th",{children:"C\xf3digo Febraban"}),Object(F.jsx)("th",{style:{minWidth:200},children:"Descri\xe7\xe3o"}),Object(F.jsx)("th",{className:"pr-0 text-right",style:{minWidth:160},children:"Detalhes"})]})},p=function(){return null===o||void 0===o?void 0:o.map((function(e){var a=e.bancoId,t=e.codigoFebraBan,c=e.descricao;return Object(F.jsxs)("tr",{children:[Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:t})}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:c})}),Object(F.jsx)("td",{className:"pr-0 text-right",children:Object(F.jsx)(ve.a,{to:"banco/".concat(a),className:"btn btn-icon btn-outline-success btn-circle btn-sm mr-2",children:Object(F.jsx)("i",{className:"fas fa-search-plus"})})})]},a)}))};return Object(F.jsx)(de,{active:t,children:Object(F.jsxs)(oe,{children:[Object(F.jsxs)("div",{className:"card-header border-0 py-5",children:[Object(F.jsxs)("h3",{className:"card-title align-items-start flex-column",children:[Object(F.jsx)("span",{className:"card-label font-weight-bolder text-dark",children:"Bancos"}),Object(F.jsxs)("span",{className:"text-dark mt-3 font-weight-bold font-size-sm",children:["Voc\xea est\xe1 visualizando ",Object(F.jsxs)("b",{children:[null===o||void 0===o?void 0:o.length," bancos"]})]})]}),Object(F.jsxs)("div",{className:"d-flex col-lg-5",children:[Object(F.jsx)("input",{type:"text",placeholder:"Pesquisar na tabela",className:"form-control",onChange:function(e){return function(e){var a=u.filter((function(a){var t=a.codigoFebraBan,c=a.descricao;return R(t).includes(R(e))||R(c).includes(R(e))}));l(a)}(e.target.value)}}),Object(F.jsxs)("button",{type:"button",className:"btn btn-success form-control col-lg-4 ml-2",onClick:function(){return Se.push("/banco")},children:[Object(F.jsx)(ma,{})," Adicionar"]})]})]}),Object(F.jsx)("div",{className:"list-propostas",children:Object(F.jsx)("div",{className:"card-body py-0",children:Object(F.jsx)("div",{className:"table-responsive",children:Object(F.jsxs)("table",{className:"table table-head-custom table-vertical-center",id:"kt_advance_table_widget_2",children:[Object(F.jsx)("thead",{children:Object(F.jsx)(h,{})}),Object(F.jsx)("tbody",{children:Object(F.jsx)(p,{})})]})})})})]})})}function xa(){return Object(F.jsx)(se,{children:Object(F.jsx)(ua,{})})}var ha=Object(ce.c)().shape({codigoFebraBan:Object(ce.e)().required("O c\xf3digo febraban \xe9 obrigat\xf3rio").nullable(),descricao:Object(ce.e)().required("A descri\xe7\xe3o \xe9 obrigat\xf3ria").nullable()}),pa={codigoFebraban:"",descricao:""};function Oa(){var e=Object(o.g)(),a=Number(null===e||void 0===e?void 0:e.bancoId),t=Object(c.useState)(pa),r=Object(b.a)(t,2),n=r[0],s=r[1],l=Object(c.useState)(!1),m=Object(b.a)(l,2),u=m[0],x=m[1];return Object(c.useEffect)((function(){function e(){return e=Object(d.a)(i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x(!0),e.next=3,Ae(a);case 3:t=e.sent,s((function(e){return Object(j.a)(Object(j.a)({},e),t.data||pa)})),x(!1);case 6:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}a&&function(){e.apply(this,arguments)}()}),[a]),Object(F.jsx)(se,{children:Object(F.jsx)(de,{active:u,marginTop:300,children:Object(F.jsx)(oe,{children:Object(F.jsx)("div",{className:"card-body p-0",children:Object(F.jsx)("div",{className:"row justify-content-center my-10 px-8 my-lg-15 px-lg-10",children:Object(F.jsx)("div",{className:"col-xl-12 col-xxl-7",children:Object(F.jsx)(X.d,{initialValues:n,validationSchema:ha,validateOnBlur:!0,enableReinitialize:!0,onSubmit:function(){var e=Object(d.a)(i.a.mark((function e(t){var c,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x(!0),a){e.next=8;break}return e.next=4,Pe(t).catch((function(){return x(!1)}));case 4:(null===(c=e.sent)||void 0===c?void 0:c.sucesso)&&(x(!1),g({text:"Banco cadastrado com sucesso!",icon:"success"})),e.next=12;break;case 8:return e.next=10,De(t).catch((function(){return x(!1)}));case 10:(null===(r=e.sent)||void 0===r?void 0:r.sucesso)&&(x(!1),g({text:"Banco atualizado com sucesso!",icon:"success"}));case 12:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),children:Object(F.jsxs)(X.c,{children:[Object(F.jsx)("h2",{className:"mb-10 font-weight-bolder",children:a?"Editar banco":"Cadastrar banco"}),Object(F.jsx)("div",{className:"form-group",children:Object(F.jsxs)("h4",{className:"mb-10 font-weight-bold text-primary",children:[Object(F.jsx)("i",{className:"far fa-edit text-primary"})," Dados do banco"]})}),Object(F.jsxs)("div",{className:"row",children:[Object(F.jsx)("div",{className:"col-xl-6",children:Object(F.jsxs)("div",{className:"form-group",children:[Object(F.jsx)("label",{children:"C\xf3digo febraban"}),Object(F.jsx)(X.b,{name:"codigoFebraBan",className:"form-control form-control-solid form-control-lg",placeholder:"Digite o c\xf3digo febraban"}),Object(F.jsx)("span",{className:"form-text text-muted",children:"C\xf3digo febraban"}),Object(F.jsx)(X.a,{name:"codigoFebraBan",component:"small"})]})}),Object(F.jsx)("div",{className:"col-xl-6",children:Object(F.jsxs)("div",{className:"form-group",children:[Object(F.jsx)("label",{children:"Descri\xe7\xe3o"}),Object(F.jsx)(X.b,{name:"descricao",className:"form-control form-control-solid form-control-lg",placeholder:"Digite a descri\xe7\xe3o do banco"}),Object(F.jsx)("span",{className:"form-text text-muted",children:"Descri\xe7\xe3o do banco"}),Object(F.jsx)(X.a,{name:"descricao",component:"small"})]})})]}),Object(F.jsx)("div",{className:"d-flex justify-content-end border-top mt-5 pt-10",children:Object(F.jsx)("button",{type:"submit",className:"btn btn-success font-weight-bolder text-uppercase px-9 py-4",children:a?"Salvar":"Cadastrar"})})]})})})})})})})})}var fa=function(){var e=Object(d.a)(i.a.mark((function e(a){var t,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.post("/proposta/ListPropostasAdmin",a);case 2:return t=e.sent,c=t.data,e.abrupt("return",c);case 5:case"end":return e.stop()}}),e)})));return function(a){return e.apply(this,arguments)}}(),va=function(){var e=Object(d.a)(i.a.mark((function e(a){var t,c;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.get("/proposta/GetProposta?propostaId=".concat(a));case 3:return t=e.sent,c=t.data,e.abrupt("return",c.data);case 8:return e.prev=8,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(a){return e.apply(this,arguments)}}(),ga=t(433),Na=Object(c.createContext)({loading:!1,propostas:[],setFilters:function(e){return e}});function wa(e){var a=e.children,t={parceiroId:JSON.parse(localStorage.getItem("userData")).data.parceiroId,nomeCliente:"",nomeFantasia:"",cpfCliente:"",email:"",celular:"",statusPropostaId:0,dataInicio:Object(ga.default)(new Date,30),dataFim:new Date},r=Object(c.useState)(!1),n=Object(b.a)(r,2),s=n[0],o=n[1],l=Object(c.useState)([]),j=Object(b.a)(l,2),m=j[0],u=j[1],x=Object(c.useState)(t),h=Object(b.a)(x,2),p=h[0],O=h[1],f=Object(c.useCallback)(Object(d.a)(i.a.mark((function e(){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),e.next=3,fa(p).catch((function(){return o(!1)}));case 3:a=e.sent,u((null===a||void 0===a?void 0:a.data)||[]),o(!1);case 6:case"end":return e.stop()}}),e)}))),[p]);return Object(c.useEffect)((function(){f()}),[f]),Object(F.jsx)(Na.Provider,{value:{loading:s,propostas:m,setFilters:O},children:a})}var ya=t(140),Ca=t.n(ya);t(434);Object(ce.a)(ce.e,"validateCPF",(function(e){return this.test("test-cpf",e,(function(a){var t=this.path,c=this.createError;return!a||(q.a.isValid(a)||c({path:t,message:e}))}))})),Object(ce.a)(ce.e,"validateCellphone",(function(e){return this.test("test-phone",e,(function(a){var t=this.path,c=this.createError;return!a||(!!("9"===(a=a.replace(/\D/g,"")).substr(2,1)&&!a.match(/^(\d)\1{9,10}$/)&&11===a.length)||c({path:t,message:e}))}))}));var Sa,ka=Object(ce.c)().shape({cpfCliente:Object(ce.e)().validateCPF("CPF inv\xe1lido").nullable(),email:Object(ce.e)().email("E-mail inv\xe1lido").nullable(),celular:Object(ce.e)().validateCellphone("Celular inv\xe1lido").nullable(),dataInicio:Object(ce.e)().required("Data obrigat\xf3ria").nullable(),dataFim:Object(ce.e)().required("Data obrigat\xf3ria").nullable()}),Aa=t(486),Pa=t(64),Da=t(233);function Ia(){var e=Object(c.useContext)(Na).setFilters,a=Object(c.useRef)(null);return Object(F.jsx)("div",{className:"modal fade",id:"modalFilter","data-backdrop":"static",tabIndex:"-1",role:"dialog","aria-labelledby":"staticBackdrop","aria-hidden":"true",children:Object(F.jsx)("div",{className:"modal-dialog",role:"document",children:Object(F.jsx)(X.d,{initialValues:{nomeCliente:"",nomeFantasiaParceiro:"",cpfCliente:"",email:"",celular:"",statusPropostaId:0,dataInicio:"",dataFim:""},validationSchema:ka,validateOnBlur:!1,validateOnChange:!0,onSubmit:function(){var t=Object(d.a)(i.a.mark((function t(c){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e((function(e){return Object(j.a)(Object(j.a)({},e),c)})),a.current.click();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:function(e){var t=e.setFieldValue,c=e.values;return Object(F.jsx)(X.c,{children:Object(F.jsxs)("div",{className:"modal-content",children:[Object(F.jsxs)("div",{className:"modal-header",children:[Object(F.jsx)("h5",{className:"modal-title",children:"Filtrar Propostas"}),Object(F.jsx)("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",children:Object(F.jsx)("i",{"aria-hidden":"true",className:"ki ki-close"})})]}),Object(F.jsx)("div",{className:"modal-body",children:Object(F.jsxs)("div",{className:"card-body",children:[Object(F.jsxs)("div",{className:"form-group row",children:[Object(F.jsx)("label",{className:"col-3 col-form-label",children:"Nome Fantasia Parceiro"}),Object(F.jsxs)("div",{className:"col-9",children:[Object(F.jsx)(X.b,{name:"nomeFantasiaParceiro",className:"form-control",placeholder:"Digite o nome fantasia"}),Object(F.jsx)(X.a,{name:"nomeFantasiaParceiro",component:"small"})]})]}),Object(F.jsxs)("div",{className:"form-group row",children:[Object(F.jsx)("label",{className:"col-3 col-form-label",children:"Nome"}),Object(F.jsxs)("div",{className:"col-9",children:[Object(F.jsx)(X.b,{name:"nomeCliente",className:"form-control",placeholder:"Digite o nome"}),Object(F.jsx)(X.a,{name:"nomeCliente",component:"small"})]})]}),Object(F.jsxs)("div",{className:"form-group row",children:[Object(F.jsx)("label",{className:"col-3 col-form-label",children:"CPF"}),Object(F.jsxs)("div",{className:"col-9",children:[Object(F.jsx)(X.b,{name:"cpfCliente",children:function(e){var a=e.field;return Object(F.jsx)(te.a,Object(j.a)(Object(j.a)({},a),{},{className:"form-control",mask:"999.999.999-99",placeholder:"Digite o CPF"}))}}),Object(F.jsx)(X.a,{name:"cpfCliente",component:"small"})]})]}),Object(F.jsxs)("div",{className:"form-group row",children:[Object(F.jsx)("label",{className:"col-3 col-form-label",children:"E-mail"}),Object(F.jsxs)("div",{className:"col-9",children:[Object(F.jsx)(X.b,{name:"email",className:"form-control",placeholder:"Digite o e-mail"}),Object(F.jsx)(X.a,{name:"email",component:"small"})]})]}),Object(F.jsxs)("div",{className:"form-group row",children:[Object(F.jsx)("label",{className:"col-3 col-form-label",children:"Celular"}),Object(F.jsxs)("div",{className:"col-9",children:[Object(F.jsx)(X.b,{name:"celular",children:function(e){var a=e.field;return Object(F.jsx)(te.a,Object(j.a)(Object(j.a)({},a),{},{className:"form-control",mask:"(99) 99999-9999",placeholder:"Digite o celular"}))}}),Object(F.jsx)(X.a,{name:"celular",component:"small"})]})]}),Object(F.jsxs)("div",{className:"form-group row",children:[Object(F.jsx)("label",{className:"col-3 col-form-label",children:"Data"}),Object(F.jsx)("div",{className:"col-9",children:Object(F.jsxs)("div",{className:"row",children:[Object(F.jsxs)("div",{className:"col",children:[Object(F.jsx)("div",{className:"input-group",children:Object(F.jsx)(Ca.a,{selected:c.dataInicio,onChange:function(e){t("dataInicio",e),t("dataFim","")},dateFormat:"dd/MM/yyyy",className:"form-control",selectsStart:!0,startDate:c.dataInicio,endDate:c.dataFim,placeholderText:"1\xba Data",locale:"pt-BR"})}),Object(F.jsx)(X.a,{name:"dataInicio",component:"small"})]}),Object(F.jsxs)("div",{className:"col",children:[Object(F.jsx)("div",{className:"input-group",children:Object(F.jsx)(Ca.a,{selected:c.dataFim,onChange:function(e){var a=Object(Aa.a)(new Date(e),{hours:23,minutes:59});t("dataFim",a)},dateFormat:"dd/MM/yyyy",className:"form-control",startDate:c.dataInicio,selectsEnd:!0,endDate:c.dataFim,minDate:c.dataInicio,maxDate:Object(Pa.default)(new Date(c.dataInicio),30),placeholderText:"2\xba Data",locale:"pt-BR",disabled:!c.dataInicio})}),Object(F.jsx)(X.a,{name:"dataFim",component:"small"})]})]})})]})]})}),Object(F.jsxs)("div",{className:"modal-footer",children:[Object(F.jsx)("button",{type:"button",className:"btn btn-light-muted font-weight-bold","data-dismiss":"modal",ref:a,children:"Fechar"}),Object(F.jsx)("button",{type:"submit",className:"btn btn-success font-weight-bold",children:"Filtrar"})]})]})})}})})})}Object(ya.registerLocale)("pt-BR",Da.a);var Ma=["title","titleId"];function Fa(){return Fa=Object.assign||function(e){for(var a=1;a=0||(r[t]=e[t]);return r}(e,a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function za(e,a){var t=e.title,r=e.titleId,n=Ea(e,Ma);return c.createElement("svg",Fa({width:"24px",height:"24px",viewBox:"0 0 24 24",ref:a,"aria-labelledby":r},n),t?c.createElement("title",{id:r},t):null,Sa||(Sa=c.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c.createElement("polygon",{points:"0 0 24 0 24 24 0 24"}),c.createElement("rect",{fill:"#000000",opacity:.3,x:11,y:4,width:2,height:10,rx:1}),c.createElement("path",{d:"M6.70710678,19.7071068 C6.31658249,20.0976311 5.68341751,20.0976311 5.29289322,19.7071068 C4.90236893,19.3165825 4.90236893,18.6834175 5.29289322,18.2928932 L11.2928932,12.2928932 C11.6714722,11.9143143 12.2810586,11.9010687 12.6757246,12.2628459 L18.6757246,17.7628459 C19.0828436,18.1360383 19.1103465,18.7686056 18.7371541,19.1757246 C18.3639617,19.5828436 17.7313944,19.6103465 17.3242754,19.2371541 L12.0300757,14.3841378 L6.70710678,19.7071068 Z",fill:"#000000",fillRule:"nonzero",transform:"translate(12.000003, 15.999999) scale(1, -1) translate(-12.000003, -15.999999)"}))))}var Ta=c.forwardRef(za);t.p;function La(){var e=Object(c.useContext)(Na),a=e.propostas,t=e.loading,r=function(e){switch(e){case"Aguardando cr\xe9dito":case"Em andamento":case"Aguardando assinatura":return"primary";case"Pendente":return"warning";case"Assinado":case"Cr\xe9dito efetuado":return"success";case"Recusado":case"Cancelado":return"danger"}},n=function(){return Object(F.jsxs)("tr",{className:"text-uppercase",children:[Object(F.jsx)("th",{className:"pl-0",style:{width:40},children:Object(F.jsxs)("label",{className:"checkbox checkbox-lg checkbox-inline mr-2",children:[Object(F.jsx)("input",{type:"checkbox",value:"1"}),Object(F.jsx)("span",{})]})}),Object(F.jsx)("th",{className:"pl-0",style:{minWidth:100},children:"ID"}),Object(F.jsx)("th",{children:"Parceiro"}),Object(F.jsx)("th",{style:{minWidth:300},children:"Dados"}),Object(F.jsxs)("th",{style:{minWidth:150},children:[Object(F.jsx)("span",{className:"text-primary",children:"Data & Prazo"}),Object(F.jsx)("span",{className:"svg-icon svg-icon-sm svg-icon-primary",children:Object(F.jsx)(Ta,{})})]}),Object(F.jsx)("th",{style:{minWidth:130},children:"Status"}),Object(F.jsx)("th",{className:"pr-0 text-right",style:{minWidth:160},children:"A\xe7\xe3o"})]})},s=function(){return null===a||void 0===a?void 0:a.map((function(e){var a=e.propostaId,t=e.codigoProposta,c=e.nomeFantasiaParceiro,n=e.nomeCliente,s=e.celularCliente,o=e.dataProposta,l=e.quantidadeParcelas,i=e.statusProposta;return Object(F.jsxs)("tr",{children:[Object(F.jsx)("td",{className:"pl-0 py-6",children:Object(F.jsxs)("label",{className:"checkbox checkbox-lg checkbox-inline",children:[Object(F.jsx)("input",{type:"checkbox",value:"1"}),Object(F.jsx)("span",{})]})}),Object(F.jsx)("td",{className:"text-dark-75 font-weight-bolder pl-0",children:t}),Object(F.jsx)("td",{className:"text-dark-75 font-weight-bolder pl-0",children:c}),Object(F.jsxs)("td",{children:[Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:n}),Object(F.jsx)("span",{className:"text-muted font-weight-bold",children:V(s)})]}),Object(F.jsxs)("td",{children:[Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-lg",children:Object(h.default)(new Date(o),"dd/MM/yyyy")}),Object(F.jsxs)("span",{className:"text-muted font-weight-bold",children:[l," meses"]})]}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"label label-lg label-light-".concat(r(i)," label-inline"),children:i})}),Object(F.jsx)("td",{className:"pr-0 text-right",children:Object(F.jsx)(ve.a,{to:"proposta/".concat(a),className:"btn btn-icon btn-outline-success btn-circle btn-sm mr-2",children:Object(F.jsx)("i",{className:"fas fa-search-plus"})})})]},t)}))};return Object(F.jsx)(de,{active:t,children:Object(F.jsxs)(oe,{children:[Object(F.jsxs)("div",{className:"card-header border-0 py-5",children:[Object(F.jsxs)("h3",{className:"card-title align-items-start flex-column",children:[Object(F.jsx)("span",{className:"card-label font-weight-bolder text-dark",children:"Propostas de Clientes"}),Object(F.jsxs)("span",{className:"text-dark mt-3 font-weight-bold font-size-sm",children:["Voc\xea est\xe1 visualizando ",Object(F.jsxs)("b",{children:[null===a||void 0===a?void 0:a.length," propostas"]})]})]}),Object(F.jsxs)("div",{className:"card-toolbar",children:[Object(F.jsx)("button",{type:"button",className:"btn btn-success","data-toggle":"modal","data-target":"#modalFilter",children:"Filtrar Propostas"}),Object(F.jsx)(Ia,{})]})]}),Object(F.jsx)("div",{className:"list-propostas",children:Object(F.jsx)("div",{className:"card-body py-0",children:Object(F.jsx)("div",{className:"table-responsive",children:Object(F.jsxs)("table",{className:"table table-head-custom table-vertical-center",id:"kt_advance_table_widget_2",children:[Object(F.jsx)("thead",{children:Object(F.jsx)(n,{})}),Object(F.jsx)("tbody",{children:Object(F.jsx)(s,{})})]})})})})]})})}function Va(){return Object(F.jsx)(se,{children:Object(F.jsx)(wa,{children:Object(F.jsx)(La,{})})})}function Ra(){var e,a,t,r,n,s,l=Object(o.g)(),j=null===l||void 0===l?void 0:l.propostaId,m=Object(c.useState)(null),u=Object(b.a)(m,2),x=u[0],p=u[1],O=Object(c.useState)(!1),f=Object(b.a)(O,2),v=f[0],g=f[1];Object(c.useEffect)((function(){function e(){return(e=Object(d.a)(i.a.mark((function e(){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),e.next=3,va(j);case 3:a=e.sent,p(a),g(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}j&&function(){e.apply(this,arguments)}()}),[j]);return Object(F.jsx)(se,{children:Object(F.jsx)(de,{active:v,children:Object(F.jsx)(oe,{children:Object(F.jsxs)("div",{className:"card-body p-0",children:[Object(F.jsx)("div",{className:"row justify-content-center py-8 px-8 py-md-15 px-md-0",children:Object(F.jsxs)("div",{className:"col-md-9",children:[Object(F.jsxs)("div",{className:"d-flex justify-content-between pb-10 pb-md-5 flex-column flex-md-row",children:[Object(F.jsx)("h1",{className:"display-4 font-weight-boldest mb-10",children:x&&"".concat(null===x||void 0===x?void 0:x.cliente.nome," ").concat(null===x||void 0===x?void 0:x.cliente.sobrenome)}),Object(F.jsx)("div",{className:"d-flex flex-column align-items-md-end px-0",children:Object(F.jsx)("span",{className:"d-flex flex-column align-items-md-end opacity-70",children:Object(F.jsx)("span",{children:x&&function(){var e,a,t=null===x||void 0===x||null===(e=x.cliente)||void 0===e||null===(a=e.endereco)||void 0===a?void 0:a[0],c=t.logradouro,r=t.numero,n=t.bairro,s=t.complemento,o=t.cep,l=t.cidade,i=t.estado;return Object(F.jsxs)(F.Fragment,{children:[c," ",r,", ",n," - ",s,Object(F.jsx)("br",{}),o," - ",l," - ",i]})}()})})})]}),Object(F.jsx)("div",{className:"border-bottom w-100"}),Object(F.jsxs)("div",{className:"d-flex justify-content-between pt-6",children:[Object(F.jsxs)("div",{className:"d-flex flex-column flex-root",children:[Object(F.jsx)("span",{className:"font-weight-bolder mb-2",children:"Data da contrata\xe7\xe3o"}),Object(F.jsx)("span",{className:"opacity-70",children:(null===x||void 0===x?void 0:x.dataProposta)&&Object(h.default)(new Date(null===x||void 0===x?void 0:x.dataProposta),"dd/MM/yyyy")})]}),Object(F.jsxs)("div",{className:"d-flex flex-column flex-root",children:[Object(F.jsx)("span",{className:"font-weight-bolder mb-2",children:"Cod. da Proposta"}),Object(F.jsx)("span",{className:"opacity-70",children:null===x||void 0===x?void 0:x.codigoProposta})]}),Object(F.jsxs)("div",{className:"d-flex flex-column flex-root",children:[Object(F.jsx)("span",{className:"font-weight-bolder mb-2",children:"Informa\xe7\xf5es da Viagem"}),Object(F.jsxs)("span",{className:"opacity-70",children:[(null===x||void 0===x||null===(e=x.viagemTrecho[0])||void 0===e?void 0:e.dataPartida)&&"Data Viagem: ".concat(Object(h.default)(new Date(null===x||void 0===x||null===(a=x.viagemTrecho[0])||void 0===a?void 0:a.dataPartida),"dd/MM/yyyy")),Object(F.jsx)("br",{}),(null===x||void 0===x||null===(t=x.pessoa)||void 0===t?void 0:t.length)&&"N\xba de Passageiros: ".concat(null===x||void 0===x||null===(r=x.pessoa)||void 0===r?void 0:r.length," "),Object(F.jsx)("br",{}),(null===x||void 0===x||null===(n=x.viagemTrecho[0])||void 0===n?void 0:n.destino)&&"Destino: ".concat(null===x||void 0===x||null===(s=x.viagemTrecho[0])||void 0===s?void 0:s.destino," ")]})]})]})]})}),Object(F.jsx)("div",{className:"row justify-content-center py-8 px-8 py-md-10 px-md-0",children:Object(F.jsx)("div",{className:"col-md-9",children:Object(F.jsx)("div",{className:"table-responsive",children:Object(F.jsxs)("table",{className:"table",children:[Object(F.jsx)("thead",{children:Object(F.jsxs)("tr",{children:[Object(F.jsx)("th",{className:"pl-0 font-weight-bold text-muted text-uppercase",children:"Plano Contratado"}),Object(F.jsx)("th",{className:"text-right font-weight-bold text-muted text-uppercase",children:"Valor da Viagem"}),Object(F.jsx)("th",{className:"text-right font-weight-bold text-muted text-uppercase",children:"Valor da Parcela"}),Object(F.jsx)("th",{className:"text-right pr-0 font-weight-bold text-muted text-uppercase",children:"Prazo Contratado"})]})}),Object(F.jsx)("tbody",{children:Object(F.jsxs)("tr",{className:"font-weight-boldest",children:[Object(F.jsx)("td",{className:"pl-0 pt-7",children:null===x||void 0===x?void 0:x.nomePlano}),Object(F.jsx)("td",{className:"text-right pt-7",children:(null===x||void 0===x?void 0:x.valorProposta)&&L(null===x||void 0===x?void 0:x.valorProposta)}),Object(F.jsx)("td",{className:"text-right pt-7",children:(null===x||void 0===x?void 0:x.valorParcela)&&L(null===x||void 0===x?void 0:x.valorParcela)}),Object(F.jsx)("td",{className:"text-right pr-0 pt-7 text-right",children:(null===x||void 0===x?void 0:x.quantidadeParcelas)&&"".concat(null===x||void 0===x?void 0:x.quantidadeParcelas," meses")})]})})]})})})}),Object(F.jsx)("div",{className:"row justify-content-center py-8 px-8 py-md-10 px-md-0",children:Object(F.jsx)("div",{className:"col-md-9",children:Object(F.jsx)("div",{className:"d-flex justify-content-end",children:Object(F.jsx)("button",{type:"button",className:"btn btn-primary font-weight-bold",onClick:function(){return window.print()},children:"Imprimir Proposta"})})})})]})})})})}var qa=function(){var e=Object(d.a)(i.a.mark((function e(){var a,t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.get("/log/ListLogs?limit=3000&where=");case 2:return a=e.sent,t=a.data,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ua=Object(c.createContext)({loading:!1,logs:[]});function Ba(e){var a=e.children,t=Object(c.useState)(!1),r=Object(b.a)(t,2),n=r[0],s=r[1],o=Object(c.useState)([]),l=Object(b.a)(o,2),j=l[0],m=l[1],u=Object(c.useCallback)(Object(d.a)(i.a.mark((function e(){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.next=3,qa().catch((function(){return s(!1)}));case 3:a=e.sent,m((null===a||void 0===a?void 0:a.data)||[]),s(!1);case 6:case"end":return e.stop()}}),e)}))),[]);return Object(c.useEffect)((function(){u()}),[u]),Object(F.jsx)(Ua.Provider,{value:{loading:n,logs:j},children:a})}t(473);function Ya(){var e=Object(c.useContext)(Ua),a=e.logs,t=e.loading,r=function(){return Object(F.jsxs)("tr",{className:"text-uppercase",children:[Object(F.jsx)("th",{children:"Data"}),Object(F.jsx)("th",{children:"Mensagem"}),Object(F.jsx)("th",{children:"Exception"})]})},n=function(){return null===a||void 0===a?void 0:a.map((function(e){var a=e.date,t=e.message,c=e.exception;return Object(F.jsxs)("tr",{children:[Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-sm",children:a})}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-sm",children:t})}),Object(F.jsx)("td",{children:Object(F.jsx)("span",{className:"text-dark-75 font-weight-bolder d-block font-size-sm",children:c})})]})}))};return Object(F.jsx)(de,{active:t,children:Object(F.jsxs)(oe,{children:[Object(F.jsx)("div",{className:"card-header border-0 py-5",children:Object(F.jsxs)("h3",{className:"card-title align-items-start flex-column",children:[Object(F.jsx)("span",{className:"card-label font-weight-bolder text-dark",children:"Logs"}),Object(F.jsxs)("span",{className:"text-dark mt-3 font-weight-bold font-size-sm",children:["Voc\xea est\xe1 visualizando ",Object(F.jsxs)("b",{children:[null===a||void 0===a?void 0:a.length," logs"]})]})]})}),Object(F.jsx)("div",{className:"list-propostas",children:Object(F.jsx)("div",{className:"card-body py-0",children:Object(F.jsx)("div",{className:"table-responsive",children:Object(F.jsxs)("table",{className:"table table-head-custom table-vertical-center",id:"kt_advance_table_widget_2",children:[Object(F.jsx)("thead",{children:Object(F.jsx)(r,{})}),Object(F.jsx)("tbody",{children:Object(F.jsx)(n,{})})]})})})})]})})}function Ja(){return Object(F.jsx)(se,{children:Object(F.jsx)(Ba,{children:Object(F.jsx)(Ya,{})})})}var Ga=t(234);function Za(){var e=JSON.parse(localStorage.getItem("userData")),a=Object(c.useState)(!1),t=Object(b.a)(a,2),r=t[0],n=t[1],s=Object(c.useContext)(E).handleLogout;function o(e){e.preventDefault(),n(!r)}return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)("div",{className:"topbar bg-dark",children:Object(F.jsx)("div",{className:"topbar-item",children:Object(F.jsxs)("div",{className:"btn btn-icon btn-hover-transparent-white w-sm-auto d-flex align-items-center btn-lg px-2",id:"kt_quick_user_toggle",onClick:o,children:[Object(F.jsx)("div",{className:"d-flex flex-column text-right pr-sm-3",children:Object(F.jsx)("span",{className:"text-white font-weight-bolder font-size-sm d-none d-sm-inline",children:e.data.nome})}),Object(F.jsx)("span",{className:"symbol symbol-35",children:Object(F.jsx)("span",{className:"symbol-label font-size-h5 font-weight-bold text-white bg-white-o-30",children:e.data.nome[0]})})]})})}),Object(F.jsxs)("div",{id:"kt_quick_user",className:r?"offcanvas offcanvas-right p-10 offcanvas-on":"offcanvas offcanvas-right p-10",children:[Object(F.jsxs)("div",{className:"offcanvas-header d-flex align-items-center justify-content-between pb-5",children:[Object(F.jsx)("h3",{className:"font-weight-bold m-0",children:"Seu Perfil"}),Object(F.jsx)("a",{href:"#",className:"btn btn-xs btn-icon btn-light btn-hover-primary",id:"kt_quick_user_close",onClick:o,children:Object(F.jsx)("i",{className:"ki ki-close icon-xs text-muted"})})]}),Object(F.jsx)("div",{className:"offcanvas-content pr-5 mr-n5",children:Object(F.jsxs)("div",{className:"d-flex align-items-center mt-5",children:[Object(F.jsx)("div",{className:"symbol symbol-100 mr-5",children:Object(F.jsx)("i",{className:"symbol-badge bg-success"})}),Object(F.jsxs)("div",{className:"d-flex flex-column",children:[Object(F.jsx)("a",{href:"#",className:"font-weight-bold font-size-h5 text-dark-75 text-hover-primary",children:e.data.nome}),Object(F.jsx)("div",{className:"text-muted mt-1",children:"VoePay"}),Object(F.jsxs)("div",{className:"navi mt-2",children:[Object(F.jsx)("a",{href:"#",className:"navi-item",children:Object(F.jsxs)("span",{className:"navi-link p-0 pb-2",children:[Object(F.jsx)("span",{className:"navi-icon mr-1",children:Object(F.jsx)("span",{className:"svg-icon svg-icon-lg svg-icon-primary",children:Object(F.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",children:Object(F.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Object(F.jsx)("rect",{x:"0",y:"0",width:"24",height:"24"}),Object(F.jsx)("path",{d:"M21,12.0829584 C20.6747915,12.0283988 20.3407122,12 20,12 C16.6862915,12 14,14.6862915 14,18 C14,18.3407122 14.0283988,18.6747915 14.0829584,19 L5,19 C3.8954305,19 3,18.1045695 3,17 L3,8 C3,6.8954305 3.8954305,6 5,6 L19,6 C20.1045695,6 21,6.8954305 21,8 L21,12.0829584 Z M18.1444251,7.83964668 L12,11.1481833 L5.85557487,7.83964668 C5.4908718,7.6432681 5.03602525,7.77972206 4.83964668,8.14442513 C4.6432681,8.5091282 4.77972206,8.96397475 5.14442513,9.16035332 L11.6444251,12.6603533 C11.8664074,12.7798822 12.1335926,12.7798822 12.3555749,12.6603533 L18.8555749,9.16035332 C19.2202779,8.96397475 19.3567319,8.5091282 19.1603533,8.14442513 C18.9639747,7.77972206 18.5091282,7.6432681 18.1444251,7.83964668 Z",fill:"#000000"}),Object(F.jsx)("circle",{fill:"#000000",opacity:"0.3",cx:"19.5",cy:"17.5",r:"2.5"})]})})})}),Object(F.jsx)("span",{className:"navi-text text-muted text-hover-primary",children:e.data.email})]})}),Object(F.jsx)("a",{href:"#",className:"btn btn-sm btn-light-primary font-weight-bolder py-2 px-5 mr-2",onClick:function(e){e.preventDefault(),o(e),Se.push("/perfil")},children:"Editar Perfil"}),Object(F.jsx)("a",{href:"#",className:"btn btn-sm btn-light-primary font-weight-bolder py-2 px-5",onClick:function(){return s()},children:"Deslogar"})]})]})]})})]})]})}t(474);function Ha(){return Object(F.jsx)("div",{className:"header-bottom",children:Object(F.jsx)("div",{className:"container",children:Object(F.jsx)("div",{className:"header-navs header-navs-left",id:"kt_header_navs",children:Object(F.jsx)("div",{className:"tab-content",children:Object(F.jsx)("div",{className:"tab-pane py-5 p-lg-0 show active",id:"kt_header_tab_1",children:Object(F.jsx)("div",{id:"kt_header_menu",className:"header-menu header-menu-mobile header-menu-layout-default",children:Object(F.jsxs)("ul",{className:"menu-nav",children:[Object(F.jsx)("li",{className:"menu-item",children:Object(F.jsx)(ve.b,{to:"/home",className:"menu-link","aria-haspopup":"true",activeClassName:"menu-active",children:Object(F.jsx)("span",{className:"menu-text",children:"Dashboard"})})}),Object(F.jsx)("li",{className:"menu-item",children:Object(F.jsx)(ve.b,{to:"/propostas",className:"menu-link","aria-haspopup":"true",activeClassName:"menu-active",children:Object(F.jsx)("span",{className:"menu-text",children:"Propostas"})})}),Object(F.jsx)("li",{className:"menu-item",children:Object(F.jsx)(ve.b,{to:"/parceiros",className:"menu-link","aria-haspopup":"true",activeClassName:"menu-active",children:Object(F.jsx)("span",{className:"menu-text",children:"Parceiros"})})}),Object(F.jsx)("li",{className:"menu-item",children:Object(F.jsx)(ve.b,{to:"/aeroportos",className:"menu-link","aria-haspopup":"true",activeClassName:"menu-active",children:Object(F.jsx)("span",{className:"menu-text",children:"Aeroportos"})})}),Object(F.jsx)("li",{className:"menu-item",children:Object(F.jsx)(ve.b,{to:"/bancos",className:"menu-link","aria-haspopup":"true",activeClassName:"menu-active",children:Object(F.jsx)("span",{className:"menu-text",children:"Bancos"})})}),Object(F.jsx)("li",{className:"menu-item",children:Object(F.jsx)(ve.b,{to:"/configuracoes",className:"menu-link","aria-haspopup":"true",activeClassName:"menu-active",children:Object(F.jsx)("span",{className:"menu-text",children:"Configura\xe7\xf5es Gerais"})})})]})})})})})})})}function Wa(){var e=M().authenticated;return Object(F.jsxs)(F.Fragment,{children:[Object(F.jsxs)("div",{id:"kt_header",className:"header flex-column header-fixed",children:[Object(F.jsx)("div",{className:"header-top bg-dark",children:Object(F.jsxs)("div",{className:"container bg-dark",children:[Object(F.jsxs)("div",{className:"d-none d-lg-flex align-items-center mr-3",children:[Object(F.jsx)(ve.a,{to:"/home",className:"mr-20",children:Object(F.jsx)("img",{alt:"Logo",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAAAaCAYAAADcx/BtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDA2IDc5LmRhYmFjYmIsIDIwMjEvMDQvMTQtMDA6Mzk6NDQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0c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JRU5ErkJggg==",className:"max-h-35px"})}),Object(F.jsx)("ul",{className:"header-tabs nav align-self-end font-size-lg",role:"tablist",children:Object(F.jsx)("li",{className:"nav-item",children:Object(F.jsx)("a",{href:"#",className:"nav-link py-4 px-6 active","data-toggle":"tab","data-target":"#kt_header_tab_1",role:"tab",children:"VoePay"})})})]}),e&&Object(F.jsx)(Za,{})]})}),e&&Object(F.jsx)(Ha,{})]}),Object(F.jsx)("div",{id:"kt_scrolltop",className:"scrolltop",children:Object(F.jsx)("span",{className:"svg-icon",children:Object(F.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",children:Object(F.jsxs)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Object(F.jsx)("polygon",{points:"0 0 24 0 24 24 0 24"}),Object(F.jsx)("rect",{fill:"#000000",opacity:"0.3",x:"11",y:"10",width:"2",height:"10",rx:"1"}),Object(F.jsx)("path",{d:"M6.70710678,12.7071068 C6.31658249,13.0976311 5.68341751,13.0976311 5.29289322,12.7071068 C4.90236893,12.3165825 4.90236893,11.6834175 5.29289322,11.2928932 L11.2928932,5.29289322 C11.6714722,4.91431428 12.2810586,4.90106866 12.6757246,5.26284586 L18.6757246,10.7628459 C19.0828436,11.1360383 19.1103465,11.7686056 18.7371541,12.1757246 C18.3639617,12.5828436 17.7313944,12.6103465 17.3242754,12.2371541 L12.0300757,7.38413782 L6.70710678,12.7071068 Z",fill:"#000000",fillRule:"nonzero"})]})})})})]})}function Qa(){return Object(F.jsx)(F.Fragment,{children:Object(F.jsx)("div",{className:"footer bg-white py-4 d-flex flex-lg-column",id:"kt_footer",children:Object(F.jsx)("div",{className:"container d-flex flex-column flex-md-row align-items-center justify-content-between",children:Object(F.jsxs)("div",{className:"text-dark order-2 order-md-1",children:[Object(F.jsx)("span",{className:"text-muted font-weight-bold mr-2",children:"2021\xa9"}),Object(F.jsx)("a",{href:"#non",target:"_blank",className:"text-dark-75 text-hover-primary",children:"VoePay"})]})})})})}var Xa=["isPrivate"];function Ka(e){e.isPrivate;var a=Object(Ga.a)(e,Xa),r=Object(c.useContext)(E),n=r.loading,s=r.authenticated,l=Object(c.useState)(!1),i=Object(b.a)(l,2),d=i[0],m=i[1];return Object(c.useEffect)((function(){new Promise((function(e){e(t.e(4).then(t.t.bind(null,489,7)),t.e(5).then(t.t.bind(null,490,7)))})).then((function(){m(!0)}))}),[]),n?Object(F.jsx)("div",{}):s?d&&Object(F.jsxs)(F.Fragment,{children:[Object(F.jsx)(Wa,{}),Object(F.jsx)(o.b,Object(j.a)({},a)),Object(F.jsx)(Qa,{})]}):Object(F.jsx)(o.a,{to:"/login"})}function _a(){return Object(F.jsxs)(o.d,{children:[Object(F.jsx)(o.b,{exact:!0,path:"/",component:W}),Object(F.jsx)(o.b,{exact:!0,path:"/login",component:W}),Object(F.jsx)(Ka,{exact:!0,path:"/home",component:Q}),Object(F.jsx)(Ka,{exact:!0,path:"/perfil",component:je}),Object(F.jsx)(Ka,{exact:!0,path:"/parceiros",component:Ne}),Object(F.jsx)(Ka,{exact:!0,path:"/parceiro/:parceiroId",component:Ee}),Object(F.jsx)(Ka,{exact:!0,path:"/configuracoes-parceiro/:parceiroId",component:Be}),Object(F.jsx)(Ka,{exact:!0,path:"/configuracoes",component:Ge}),Object(F.jsx)(Ka,{exact:!0,path:"/aeroportos",component:ra}),Object(F.jsx)(Ka,{path:"/aeroporto/:aeroportoId?",component:la}),Object(F.jsx)(Ka,{exact:!0,path:"/bancos",component:xa}),Object(F.jsx)(Ka,{path:"/banco/:bancoId?",component:Oa}),Object(F.jsx)(Ka,{path:"/propostas",component:Va}),Object(F.jsx)(Ka,{exact:!0,path:"/proposta/:propostaId",component:Ra}),Object(F.jsx)(Ka,{path:"/logs",component:Ja})]})}var $a=function(){return Object(F.jsx)(z,{children:Object(F.jsx)(o.c,{history:Se,children:Object(F.jsx)(_a,{})})})};s.a.render(Object(F.jsx)(r.a.StrictMode,{children:Object(F.jsx)($a,{})}),document.getElementById("root"))}},[[475,1,2]]]); //# sourceMappingURL=main.c1cecb21.chunk.js.map