1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[838],{5783:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/saldo-disponivel",function(){return t(9054)}])},9054:function(e,n,t){"use strict";t.r(n),t.d(n,{SaldoDisponivel:function(){return I}});var r=t(4229),o=t(7939),a=t(111),i=t(8645),s=t(5001),u=t.n(s),c=t(4512),d=t(2735),l=t(5811),f=t(5352),p=t(1678),v=t(3665),m=t(7608),h=t(4671),S=t(6765),A=t(571),x=t(4754),g=t(6607);function O(){var e=(0,i.Z)(["\n padding: 40px 0px;\n display: block; \n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n"]);return O=function(){return e},e}function E(){var e=(0,i.Z)(["\n display: flex;\n padding: 10px 0px;\n"]);return E=function(){return e},e}function w(){var e=(0,i.Z)(["\n margin-right: 20px;\n"]);return w=function(){return e},e}function _(){var e=(0,i.Z)(["\n text-wrap-mode: nowrap;\n font-size: 27px;\n font-weight: 700;\n"]);return _=function(){return e},e}var P=x.Z.ALTERA_SALDO_DISPONIVEL,T=x.Z.BANCO,b=x.Z.ERRO_TECNICO,C=(0,f.LT)("/fgts/autoatendimento","/assets/icons/valor.svg");function I(){var e,n=(0,d.useContext)(l.tG),t=n.state,i=n.dispatch.setDataForm,s=null!==(e="false")?e:"false",A=(0,d.useState)(!1),x=A[0],g=A[1],O=t.idPessoa,E=t.idSessao,w=t.availableValue,_=t.numberInstallments,I=t.unidadeDetentora,N=(0,v.z$)().gtm,j=function(){var e=(0,r.Z)(u().mark((function e(n){var t,r,o,a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.evento,r=void 0===t?"Acessou a Tela":t,o=n.trigger,a=void 0===o?"Processo":o,e.prev=1,e.next=4,(0,S.PY)({idPessoa:O,idSessao:E,evento:r,trigger:a,tela:"fgts/autoatendimento/saldo-disponivel"});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.error("Error: ",e.t0);case 9:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){j({}),""!==I&&N.generateLead({name:"saldo-disponivel",businessUnit:I,stage:"sql",agreement:"FGTS"})}),[]),(0,d.useEffect)((function(){if(0===w){var e=function(){var e=(0,r.Z)(u().mark((function e(){var n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.Xc)(O);case 2:n=e.sent,i((0,a.Z)((0,o.Z)({},t),{availableValue:n.valorLiberado}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e().catch(console.error)}}),[w]);var k=function(){var e=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({evento:"Alterar Valor",trigger:"Botao"});case 2:return e.abrupt("return",(0,f.mZ)(P));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=(0,r.Z)(u().mark((function e(){var n,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({evento:"Continuar",trigger:"Botao"});case 2:return g(!0),window.google_tag_manager&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"valorFGTSLiberado",vlrSimulado:w,tipoProduto:"Fgts"})),i((0,a.Z)((0,o.Z)({},t),{selectedValue:w})),e.prev=5,n={idPessoa:O,valorSolicitado:w},_&&(n=(0,a.Z)((0,o.Z)({},n),{quantidadeDeParcelas:_})),e.next=10,(0,S.Sw)(n);case 10:r=e.sent,i((0,a.Z)((0,o.Z)({},t),{selectedValue:w,simulationCode:r.codigoDaSimulacao})),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(5),(0,f.mZ)(b);case 17:return e.abrupt("return",(0,f.mZ)(T));case 18:case"end":return e.stop()}}),e,null,[[5,14]])})));return function(){return e.apply(this,arguments)}}();return x?(0,c.jsx)(m.a_,{title:"Aguarde um instante"}):(0,c.jsxs)(h.d7,{title:"Autoatendimento Saque Anivers\xe1rio FGTS",arrowTitle:"Voltar",onClickArrow:function(){return(0,f.pO)()},composition:"arrow",children:[(0,c.jsx)(h.we,{children:(0,c.jsxs)(h.Zh,{size:"20px 26px 0 26px",children:[(0,c.jsx)("img",{src:C,alt:"Imagem que mostra o s\xedmbolo do d\xf3lar para representar o valor dispon\xedvel para adiantar"}),(0,c.jsx)("h2",{children:"Valor dispon\xedvel para empr\xe9stimos FGTS"}),(0,c.jsxs)(L,{bold:!0,children:["R$"," ",0===w?"--":(0,f.TI)(w.toFixed(2))]}),(0,c.jsxs)(y,{children:[(0,c.jsxs)(D,{children:[(0,c.jsx)(Z,{children:(0,c.jsx)(p.JO,{kind:"money-outline",size:32,color:"#004BD4"})}),'Para visualizar os detalhes do seu empr\xe9stimo e realizar a contrata\xe7\xe3o, clique em "continuar\u201d.']}),"true"===s?(0,c.jsxs)(D,{children:[(0,c.jsx)(Z,{children:(0,c.jsx)(p.JO,{kind:"edit-note-outline",size:32,color:"#004BD4"})}),'Para alterar o valor do empr\xe9stimo solicitado, clique em \u201dAjustar valor".']}):null]})]})}),(0,c.jsxs)(h.WA,{children:[(0,c.jsx)(p.zx,{id:"pb_button_continuar",variant:"contained",color:"primary",text:"Continuar",dataGoogleAnalytics:{event:"select_content",content_type:"saldo-disponivel",content_id:"continuar"},onClick:R}),"true"===s?(0,c.jsx)(p.zx,{id:"pb_button_alterar_valor",variant:"outline",color:"primary",text:"Ajustar valor",dataGoogleAnalytics:{event:"select_content",content_type:"saldo-disponivel",content_id:"alterar-valor-do-emprestimo"},onClick:function(){return k()}}):null]})]})}n.default=(0,A.M)(I);var y=g.default.div(O()),D=g.default.div(E()),Z=g.default.div(w()),L=(0,g.default)(h.vv)(_())},4754:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var r={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:"/instru
1coes",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 r=t(7939),o=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,o.jsx)(e,(0,r.Z)({},n)):(t.replace("/"),null)}}},6765:function(e,n,t){"use strict";t.d(n,{uq:function(){return N},M1:function(){return V},up:function(){return z},Xc:function(){return C},YH:function(){return I},Bj:function(){return b},Ow:function(){return L},vQ:function(){return R},y9:function(){return G},Ve:function(){return F},PY:function(){return U},C6:function(){return j},gL:function(){return k},Ml:function(){return Z},Sw:function(){return y},_k:function(){return D}});var r=t(4229),o=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},m=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)},h=function(e){var n=e.method,t=e.url,r=e.hash,o=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:r,retry:Number(o||0),sessionid:a||"",userid:i||""}),s.sendSessionProperties({sessionid:a||"",userid:i||""}),{actionId:d,startedAt:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()}},S=function(e,n,t){var r=l();if(r&&"undefined"!==typeof e){var o,a="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),i=Math.max(0,a-(t||a));r.addActionProperties(e,{ok:!0,status:null!==(o=null===n||void 0===n?void 0:n.status)&&void 0!==o?o:null,durationMs:i}),r.actionEnd(e)}},A=function(e,n,t,r){var o,a=l();if(a){var i=null===n||void 0===n||null===(o=n.response)||void 0===o?void 0:o.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-(r||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))}},x=function(){var e=(0,r.Z)(s().mark((function e(n){var t,r,i,u,c,d,l,g,O,E,w,_,P,T,b,C,I=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=I.length>1&&void 0!==I[1]&&I[1],r=I.length>2&&void 0!==I[2]?I[2]:0,l=JSON.parse(sessionStorage.getItem("prb-fgtsautoatendimento-prop")),g=(l||"").idSessao,O="",""!==(null===(i=n.headers)||void 0===i?void 0:i.idSessao)&&void 0!==(null===(u=n.headers)||void 0===u?void 0:u.idSessao)&&(g=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)&&(O=n.headers.idPessoa),E=(null===n||void 0===n?void 0:n.method)||"GET",w=(null===n||void 0===n?void 0:n.url)||"",_=h({method:E,url:w,hash:t,retry:r,idSessao:g,idPessoa:O}),P=_.actionId,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,o.Z)({},n),{headers:{idSessao:g,idPessoa:O}}));case 19:e.t0=e.sent;case 20:return b=e.t0,S(P,b,T),e.abrupt("return",v(b));case 25:if(e.prev=25,e.t1=e.catch(10),A(P,e.t1,{method:E,url:w},T),!(r<2&&(null===e.t1||void 0===e.t1||null===(C=e.t1.response)||void 0===C?void 0:C.status)>=500)){e.next=31;break}return e.abrupt("return",x(n,t,r+1));case 31:return e.abrupt("return",m(e.t1));case 32:case"end":return e.stop()}}),e,null,[[10,25]])})));return function(n){return e.apply(this,arguments)}}(),g="GET",O="POST",E="/clientes",w="/simulacao",_="/controleacesso",P="/propostas",T="/connect",b=function(e){return x({url:E,method:O,data:e})},C=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return x({url:"".concat(w,"/valor-liberado?IdPessoa=").concat(e,"&QuantidadeDeParcelas=").concat(n),method:g})},I=function(e){return x({url:"".concat("/Fgts","/saldos/assincrono"),method:O,data:e})},y=function(e){return x({url:"".concat(w),method:O,data:e})},D=function(e){return x({url:"".concat("/leads","/verificar-elegibilidade"),method:O,data:e})},Z=function(e){return x({url:"".concat("/autenticacao","/reenviar-codigo"),method:O,data:e})},L=function(e){return x({url:"".concat(T,"/codigo"),method:"POST",data:e,withCredentials:!0},!0)},N=function(){return x({url:"".concat(T,"/token"),method:"GET",withCredentials:!0},!0)},j=function(e){return x({url:"".concat("/formalizacao"),method:O,data:e})},k=function(e){return x({url:"".concat(P),method:O,data:e})},R=function(e){return x({url:"".concat(_),method:O,headers:{idSessao:e}})},F=function(){return x({url:"".concat(_,"/termosdeuso"),method:O})},G=function(){return x({url:"".concat(_,"/instrucoes"),method:O})},U=function(e){var n=e.idSessao,t=e.idPessoa;return x({url:"".concat("/jornada","/controle-jornada"),method:O,headers:{idSessao:n,idPessoa:t},data:e})},V=function(e){var n=e.idPessoa;return x({url:"".concat(P,"/prosseguimento?IdPessoa=").concat(n),method:g})},z=function(e){var n=e.idPessoa;return x({url:"".concat(E,"/situacao-endereco?IdPessoa=").concat(n),method:g})}}},function(e){e.O(0,[653,774,888,179],(function(){return n=5783,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.