1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[466],{1179:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/endereco",function(){return t(8189)}])},8189:function(e,n,t){"use strict";t.r(n),t.d(n,{Endereco:function(){return A}});var o=t(4229),r=t(5001),a=t.n(r),i=t(4512),s=t(2735),u=t(5811),c=t(7608),d=t(5352),l=t(3665),f=t(6765),p=t(571),v=t(4754),h=v.Z.VALIDA_INFORMACOES,m=v.Z.ERRO_TECNICO;function A(){var e=(0,s.useContext)(u.tG).state,n=e.idPessoa,t=e.idSessao,r=(0,l.z$)().gtm,p=d.Vm.default.waitLoading;return(0,s.useEffect)((function(){(0,o.Z)(a().mark((function e(){var o,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,f.up)({idPessoa:n});case 3:return o=e.sent,i=(null===o||void 0===o?void 0:o.situacaoEndereco)||!1,e.next=7,r.businessRules({name:"validacao-endereco",option:"deve-informar-endereco:".concat(!i)});case 7:if(!i){e.next=11;break}return e.abrupt("return",(0,d.mZ)(h));case 11:return e.abrupt("return",(0,d.J8)("https://pbconsignado.com.br/endereco/",h,t));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),(0,d.mZ)(m);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))()}),[]),(0,i.jsx)(c.a_,{title:p})}n.default=(0,p.M)(A)},4754:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var o={TERM_OF_USE_PAGE:"/termos-de-uso",NAO_DISPONIVEL:"/nao-disponivel",NAO_DISPONIVEL_BENEFICIO:"/nao-disponivel-beneficio",ERRO_TECNICO:"/erro-tecnico",ENTRY_PAGE:"/cpf",TELEFONE:"/telefone",INSTRUCOES:"/instrucoes",WHATSAPP_PAGE:"/whatsapp",SALDO_DISPONIVEL:"/saldo-disponivel",AUTORIZAR_CONSULTA:"/instrucoes/autorizar-consulta",TUTORIAL:"/instrucoes/tutorial",DETALHES_SIMULACAO:"/detalhes-simulacao",BANCO:"/banco",ENDERECO:"/endereco",VALIDA_INFORMACOES:"/valida-informacoes",ALTERA_SALDO_DISPONIVEL:"/altera-saldo-disponivel",CODIGO_ACESSO:"/codigo-acesso",CANAL:"/canal",PROPOSTA:"/proposta",CADASTRO_SUCESSO:"/cadastro-sucesso",ERRO_DADOS_CADASTRAIS:"/erro-dados-cadastrais",CPF_TELEFONE:"/cpf-telefone",CODIGO_ACESSO_WHATSAPP:"/codigo-acesso-whatsapp",TIMEOUT:"/timeout"}},571:function(e,n,t){"use strict";t.d(n,{M:function(){return u}});var o=t(7939),r=t(4512),a=t(2735),i=t(5837),s=t(5811);function u(e){return function(n){var t=(0,i.useRouter)();return(0,a.useContext)(s.tG).state.cpf?(0,r.jsx)(e,(0,o.Z)({},n)):(t.replace("/"),null)}}},6765:function(e,n,t){"use strict";t.d(n,{uq:function(){return k},M1:function(){return j},up:function(){return V},Xc:function(){return N},YH:function(){return g},Bj:function(){return w},Ow:function(){return x},vQ:function(){return U},y9:function(){return M},Ve:function(){return G},PY:function(){return Z},C6:function(){return F},gL:function(){return y},Ml:function(){return L},Sw:function(){return R},_k:function(){return D}});var o=t(4229),r=t(7939),a=t(111),i=t(5001),s=t.n(i),u=t(3653),c=t.n(u),d=null,l=function(){return d||null},f=c().create({baseURL:"https://api.paranabanco.com.br/fgtsautoatendimento",headers:{"Content-Type":"application/json;charset=utf-8","Access-Control-Allow-Origin":"*","Ocp-Apim-Subscription-Key":"33d387a4-c9ad-391c-8e3a-3aa1415a766a",SidSistemaSolicitante:"138199CF-59AF-4CD2-A042-9F6F971F2FF4"}}),p=c().create({baseURL:"https://api.pbconsignado.com.br/prbhash/v1",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Ocp-Apim-Subscription-Key":"5c8aba88-6150-3034-a7fb-5daaf2c1b6fd"}}),v=function(e){return e.data},h=function(e){var n;if(500===(null===e||void 0===e||null===(n=e.response)||void 0===n?void 0:n.status))throw e;return Promise.reject(e)},m=function(e){var n=e.method,t=e.url,o=e.hash,r=e.retry,a=e.idSessao,i=e.idPessoa,s=l();if(!s)return{actionId:void 0,startedAt:0};var u=String(n||"GET").toUpperCase(),c="HTTP ".concat(u," ").concat(t||""),d=s.actionStart(c);return s.addActionProperties(d,{method:u,url:t||"",hash:o,retry:Number(r||0),sessionid:a||"",userid:i||""}),s.sendSessionProperties({sessionid:a||"",userid:i||""}),{actionId:d,startedAt:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()}},A=function(e,n,t){var o=l();if(o&&"undefined"!==typeof e){var r,a="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),i=Math.max(0,a-(t||a));o.addActionProperties(e,{ok:!0,status:null!==(r=null===n||void 0===n?void 0:n.status)&&void 0!==r?r:null,durationMs:i}),o.actionEnd(e)}},E=function(e,n,t,o){var r,a=l();if(a){var i=null===n||void 0===n||null===(r=n.response)||void 0===r?void 0:r.status,s=null===n||void 0===n?void 0:n.code,u=(null===n||void 0===n?void 0:n.message)||"Unknown error",c=((null===t||void 0===t?void 0:t.method)||"GET").toUpperCase(),d=(null===t||void 0===t?void 0:t.url)||"",f="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),p=Math.max(0,f-(o||f)),v="[HTTP] ".concat(c," ").concat(d," failed").concat(i?" (status ".concat(i,")"):"",": ").concat(u);a.logError(v),"undefined"!==typeof e&&(a.addActionProperties(e,{ok:!1,status:null!==i&&void 0!==i?i:null,code:s||null,method:c,url:d,durationms:p}),a.actionEnd(e))}},S=function(){var e=(0,o.Z)(s().mark((function e(n){var t,o,i,u,c,d,l,O,P,_,C,T,b,I,w,N,g=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=g.length>1&&void 0!==g[1]&&g[1],o=g.length>2&&void 0!==g[2]?g[2]:0,l=JSON.parse(sessionStorage.getItem("prb-fgtsautoatendimento-prop")),O=(l||"").idSessao,P="",""!==(null===(i=n.headers)||void 0===i?void 0:i.idSessao)&&void 0!==(null===(u=n.headers)||void 0===u?void 0:u.idSessao)&&(O=n.headers.idSessao),""!==(null===(c=n.headers)||void 0===c?void 0:c.idPessoa)&&void 0!==(null===(d=n.headers)||void 0===d?void 0:d.idPessoa)&&(P=n.headers.idPessoa),_=(null===n||void 0===n?void 0:n.method)||"GET",C=(null===n||void 0===n?void 0:n.url)||"",T=m({method:_,url:C,hash:t,retry:o,idSessao:O,idPessoa:P}),b=T.actionId,I=T.startedAt,e.prev=10,!t){e.next=17;break}return e.next=14,p(n);case 14:e.t0=e.sent,e.next=20;break;case 17:return e.next=19,f((0,a.Z)((0,r.Z)({},n),{headers:{idSessao:O,idPessoa:P}}));case 19:e.t0=e.sent;case 20:return w=e.t0,A(b,w,I),e.abrupt("return",v(w));case 25:if(e.prev=25,e.t1=e.catch(10),E(b,e.t1,{method:_,url:C},I),!(o<2&&(null===e.t1||void 0===e.t1||null===(N=e.t1.response)||void 0===N?void 0:N.status)>=500)){e.next=31;break}return e.abrupt("return",S(n,t,o+1));case 31:return e.abrupt("return",h(e.t1));case 32:case"end":return e.stop()}}),e,null,[[10,25]])})));return function(n){return e.apply(this,arguments)}}(),O="GET",P="POST",_="/clientes",C="/simulacao",T="/controleacesso",b="/propostas",I="/connect",w=function(e){return S({url:_,method:P,data:e})},N=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return S({url:"".concat(C,"/valor-liberado?IdPessoa=").concat(e,"&QuantidadeDeParcelas=").concat(n),method:O})},g=function(e){return S({url:"".concat("/Fgts","/saldos/assincrono"),method:P,data:e})},R=function(e){return S({url:"".concat(C),method:P,data:e})},D=function(e){return S({url:"".concat("/leads","/verificar-elegibilidade"),method:P,data:e})},L=function(e){return S({url:"".concat("/autenticacao","/reenviar-codigo"),method:P,data:e})},x=function(e){return S({url:"".concat(I,"/codigo"),method:"POST",data:e,withCredentials:!0},!0)},k=function(){return S({url:"".concat(I,"/token"),method:"GET",withCredentials:!0},!0)},F=function(e){return S({url:"".concat("/formalizacao"),method:P,data:e})},y=function(e){return S({url:"".concat(b),method:P,data:e})},U=function(e){return S({url:"".concat(T),method:P,headers:{idSessao:e}})},G=function(){return S({url:"".concat(T,"/termosdeuso"),method:P})},M=function(){return S({url:"".concat(T,"/instrucoes"),method:P})},Z=function(e){var n=e.idSessao,t=e.idPessoa;return S({url:"".concat("/jornada","/controle-jornada"),method:P,headers:{idSessao:n,idPessoa:t},data:e})},j=function(e){var n=e.idPessoa;return S({url:"".concat(b,"/prosseguimento?IdPessoa=").concat(n),method:O})},V=function(e){var n=e.idPessoa;return S({url:"".concat(_,"/situacao-endereco?IdPessoa=").concat(n),method:O})}}},function(e){e.O(0,[653,774,888,179],(function(){return n=1179,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.