1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3597],{31421:function(e,a,t){var o,r;r=function(e){var a=["N","E","A","D"];function t(e,a){e.super_=a,e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function o(e,a){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),a&&a.length&&Object.defineProperty(this,"path",{value:a,enumerable:!0})}function r(e,a,t){r.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:a,enumerable:!0}),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function n(e,a){n.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:a,enumerable:!0})}function i(e,a){i.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:a,enumerable:!0})}function l(e,a,t){l.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:a,enumerable:!0}),Object.defineProperty(this,"item",{value:t,enumerable:!0})}function s(e,a,t){var o=e.slice((t||a)+1||e.length);return e.length=a<0?e.length+a:a,e.push.apply(e,o),e}function u(e){var a=typeof e;if("object"!==a)return a;if(e===Math)return"math";if(null===e)return"null";if(Array.isArray(e))return"array";if("[object Date]"===Object.prototype.toString.call(e))return"date";if("function"==typeof e.toString&&/^\/.*\//.test(e.toString()))return"regexp";return"object"}function c(e){var a=0;if(0===e.length)return a;for(var t=0;t<e.length;t++)a=(a<<5)-a+e.charCodeAt(t),a&=a;return a}function d(e){var a=0,t=u(e);if("array"===t){e.forEach(function(e){a+=d(e)});var o="[type: array, hash: "+a+"]";return a+c(o)}if("object"===t){for(var r in e)if(e.hasOwnProperty(r)){var n="[ type: object, key: "+r+", value hash: "+d(e[r])+"]";a+=c(n)}return a}return a+c("[ type: "+t+" ; value: "+e+"]")}function p(e,a,t,o,s,c,f,h){t=t||[],f=f||[];var v,m,b,g,y=(s=s||[]).slice(0);if(null!=c){if(o){if("function"==typeof o&&o(y,c))return;else if("object"==typeof o){if(o.prefilter&&o.prefilter(y,c))return;if(o.normalize){var A=o.normalize(y,c,e,a);A&&(e=A[0],a=A[1])}}}y.push(c)}"regexp"===u(e)&&"regexp"===u(a)&&(e=e.toString(),a=a.toString());var E=typeof e,O=typeof a,D="undefined"!==E||f&&f.length>0&&f[f.length-1].lhs&&Object.getOwnPropertyDescriptor(f[f.length-1].lhs,c),P="undefined"!==O||f&&f.length>0&&f[f.length-1].rhs&&Object.getOwnPropertyDescriptor(f[f.length-1].rhs,c);if(!D&&P)t.push(new n(y,a));else if(!P&&D)t.push(new i(y,e));else if(u(e)!==u(a))t.push(new r(y,e,a));else if("date"===u(e)&&e-a!=0)t.push(new r(y,e,a));else if("object"===E&&null!==e&&null!==a){for(v=f.length-1;v>-1;--v)if(f[v].lhs===e){g=!0;break}if(g)e!==a&&t.push(new r(y,e,a));else{if(f.push({lhs:e,rhs:a}),Array.isArray(e)){for(h&&(e.sort(function(e,a){return d(e)-d(a)}),a.sort(function(e,a){return d(e)-d(a)})),v=a.length-1,m=e.length-1;v>m;)t.push(new l(y,v,new n(void 0,a[v--])));for(;m>v;)t.push(new l(y,m,new i(void 0,e[m--])));for(;v>=0;--v)p(e[v],a[v],t,o,y,v,f,h)}else{var C=Object.keys(e),j=Object.keys(a);for(v=0;v<C.length;++v)b=C[v],(g=j.indexOf(b))>=0?(p(e[b],a[b],t,o,y,b,f,h),j[g]=null):p(e[b],void 0,t,o,y,b,f,h);for(v=0;v<j.length;++v)(b=j[v])&&p(void 0,a[b],t,o,y,b,f,h)}f.length=f.length-1}}else e===a||"number"===E&&isNaN(e)&&isNaN(a)||t.push(new r(y,e,a))}function f(e,a,t,o,r){var n=[];if(p(e,a,n,o,null,null,null,r),t)for(var i=0;i<n.length;++i)t(n[i]);return n}function h(e,a,t,o){var r=f(e,a,o?function(e){e&&o.push(e)}:void 0,t);return o||(r.length?r:void 0)}function v(e,t,o){if(void 0===o&&t&&~a.indexOf(t.kind)&&(o=t),e&&o&&o.kind){for(var r=e,n=-1,i=o.path?o.path.length-1:0;++n<i;)void 0===r[o.path[n]]&&(r[o.path[n]]=void 0!==o.path[n+1]&&"number"==typeof o.path[n+1]?[]:{}),r=r[o.path[n]];switch(o.kind){case"A":o.path&&void 0===r[o.path[n]]&&(r[o.path[n]]=[]),function e(a,t,o){if(o.path&&o.path.length){var r,n=a[t],i=o.path.length-1;for(r=0;r<i;r++)n=n[o.path[r]];switch(o.kind){case"A":e(n[o.path[r]],o.index,o.item);break;case"D":delete n[o.path[r]];break;case"E":case"N":n[o.path[r]]=o.rhs}}else switch(o.kind){case"A":e(a[t],o.index,o.item);break;case"D":a=s(a,t);break;case"E":case"N":a[t]=o.rhs}return a}(o.path?r[o.path[n]]:r,o.index,o.item);break;case"D":delete r[o.path[n]];break;case"E":case"N":r[o.path[n]]=o.rhs}}}return t(r,o),t(n,o),t(i,o),t(l,o),Object.defineProperties(h,{diff:{value:h,enumerable:!0},orderIndependentDiff:{value:function(e,a,t,o){var r=f(e,a,o?function(e){e&&o.push(e)}:void 0,t,!0);return o||(r.length?r:void 0)},enumerable:!0},observableDiff:{value:f,enumerable:!0},orderIndependentObservableDiff:{value:function(e,a,t,o,r,n,i){return p(e,a,t,o,r,n,i,!0)},enumerable:!0},orderIndepHash:{value:d,enumerable:!0},applyDiff:{value:function(e,a,t){e&&a&&f(e,a,function(o){(!t||t(e,a,o))&&v(e,a,o)})},enumerable:!0},applyChange:{value:v,enumerable:!0},revertChange:{value:function(e,a,t){if(e&&a&&t&&t.kind){var o,r,n=e;for(o=0,r=t.path.length-1;o<r;o++)void 0===n[t.path[o]]&&(n[t.path[o]]={}),n=n[t.path[o]];switch(t.kind){case"A":!function e(a,t,o){if(o.path&&o.path.length){var r,n=a[t],i=o.path.length-1;for(r=0;r<i;r++)n=n[o.path[r]];switch(o.kind){case"A":e(n[o.path[r]],o.index,o.item);break;case"D":case"E":n[o.path[r]]=o.lhs;break;case"N":delete n[o.path[r]]}}else switch(o.kind){case"A":e(a[t],o.index,o.item);break;case"D":case"E":a[t]=o.lhs;break;case"N":a=s(a,t)}return a}(n[t.path[o]],t.index,t.item);break;case"D":case"E":n[t.path[o]]=t.lhs;break;case"N":delete n[t.path[o]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),h.DeepDiff=h,e&&(e.DeepDiff=h),h}(this),void 0===(o=(function(){return r}).call(a,t,a,e))||(e.exports=o)},31484:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/index.Cadastrar",function(){return t(69235)}])},69235:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>f,default:()=>h});
1var o=t(37876),r=t(81082),n=t(6755),i=t(44480),l=t(81601),s=t(74270),u=t(84937),c=t(83234),d=t(41738),p=t(30580),f=!0;let h=e=>{let{Propriedades:a,Cadastrar:t}=e,{Dados:f,AtualizarDados:h,Processamento:v,Processar:m}=(0,c.W)({Etapa:1,CPF:null,DataNascimento:null},!0),b=async e=>{var a;(0,r.Ay)({OcultarOutras:!0}),e.preventDefault(),m(!0);let o=await (0,p.sN)("/cadastrar/validar",{CPF:(0,d.ApenasNumeros)(null==f?void 0:f.CPF),DataNascimento:null==f?void 0:f.DataNascimento});return(m(!1),null==o?void 0:o.Erro)?(0,r.Ay)({...null==o?void 0:o.Erro,OcultarOutras:!0}):!(null==o?void 0:o.ParticipanteExiste)||(null==o?void 0:o.UsuarioExiste)?((null==o?void 0:o.UsuarioExiste)&&t(!1),(0,r.Ay)({Mensagem:(null==o?void 0:o.UsuarioExiste)?"Voc\xea j\xe1 possui uma conta conosco. Se precisar recuperar o acesso, basta clicar em 'Esqueceu a senha?' acima.":"N\xe3o encontramos o CPF e data de nascimento informados. Por favor, verifique se as informa\xe7\xf5es est\xe3o corretas. Se precisar de ajuda, entre em contato atrav\xe9s do link 'Fale conosco' no rodap\xe9 da p\xe1gina.",Tipo:r.lF.Advertencia,OcultarOutras:!0,AutoEsconder:!1})):void(h({...o,Email:null!=(a=null==o?void 0:o.Email)?a:"",Etapa:2}),(null==o?void 0:o.Email)?(0,r.Ay)({Mensagem:"Registro encontrado! Por favor, verifique seus dados e clique em 'Criar' para receber sua senha de acesso no e-mail cadastrado.",Tipo:r.lF.Sucesso,OcultarOutras:!0,AutoEsconder:!0}):(0,r.Ay)({Mensagem:"Identificamos que seus dados est\xe3o incompletos. Por favor, entre em contato conosco atrav\xe9s do link 'Fale conosco' no rodap\xe9 da p\xe1gina para que possamos resolver essa situa\xe7\xe3o.",Tipo:r.lF.Advertencia,OcultarOutras:!0,AutoEsconder:!0}))},g=async e=>{var a,o;(0,r.Ay)({OcultarOutras:!0}),e.preventDefault(),m(!0);let n=await (0,p.sN)("/cadastrar/criar",{CPF:(0,d.ApenasNumeros)(null==f?void 0:f.CPF),IdParticipante:null==f?void 0:f.Id});return(m(!1),null==(a=n[0])?void 0:a.Sucesso)?(t(!1),(0,r.Ay)({Mensagem:"Cadastro realizado com sucesso, verifique seu e-mail cadastrado.",Tipo:r.lF.Sucesso,OcultarOutras:!0,AutoEsconder:!1})):(0,r.Ay)({Mensagem:null==(o=n[0])?void 0:o.Mensagem,Tipo:r.lF.Erro,OcultarOutras:!0})};return(0,o.jsx)(s.A,{Local:u.kq.Acessar,Topo:{Icone:i.G.faPersonCirclePlus,Titulo:"Cadastrar Acesso"},SemDemarcacao:!0,Itens:[{Conteudo:(0,o.jsx)(n.Ay,{Nome:"CPFCadastrar",Desabilitado:v||(null==f?void 0:f.Etapa)==2,Acao:e=>h("CPF",e),Valor:(0,d.CPF)(null==f?void 0:f.CPF),IconeEsquerdo:i.G.Solido.faUserAlt,Placeholder:"Informe seu CPF",Requerido:!0,Focus:!0})},{Conteudo:(0,o.jsx)(n.Ay,{Tipo:u.vi.Data,Placeholder:"Informe seu nascimento",Nome:"DataNascimento",Desabilitado:v||(null==f?void 0:f.Etapa)==2,IconeEsquerdo:i.G.faBirthdayCake,Valor:null==f?void 0:f.DataNascimento,Acao:e=>h("DataNascimento",e),Requerido:!0})},{Oculto:(null==f?void 0:f.Etapa)==1,Conteudo:(0,o.jsx)(n.Ay,{Placeholder:"Seu nome",Nome:"Nome",IconeEsquerdo:i.G.Solido.faUser,Valor:(0,d.Capitalizar)(null==f?void 0:f.Nome),Requerido:!0,Desabilitado:!0})},{Oculto:(null==f?void 0:f.Etapa)==1,Conteudo:(0,o.jsx)(n.Ay,{Placeholder:"E-mail n\xe3o encontrado",Bloqueado:!(null==f?void 0:f.Email),Nome:"Email",IconeEsquerdo:i.G.Solido.faEnvelope,Valor:null==f?void 0:f.Email,Requerido:!0,Desabilitado:null==f?void 0:f.Email})}],Acoes:{Direcao:l.rt.Coluna,Itens:[(null==f?void 0:f.Etapa)==2?{Acao:e=>g(e),Desabilitado:!(null==f?void 0:f.Email),DesabilitadoTexto:"Seus dados est\xe3o incompletos, por favor, procure a Funda\xe7\xe3o.",Processamento:v,Icone:i.G.Solido.faCheck,Texto:"Criar"}:{Acao:e=>b(e),Desabilitado:!(null==f?void 0:f.CPF)||!(null==f?void 0:f.DataNascimento),Processamento:v,Icone:i.G.Solido.faCheck,Texto:"Validar"},{Texto:"Voltar",Variante:l.T_.Fantasma,Desabilitado:v,Acao:()=>(null==f?void 0:f.Etapa)==2?h("Etapa",1):t(!1)}]}})}},83234:(e,a,t)=>{"use strict";t.d(a,{F:()=>u,W:()=>c});var o=t(24836),r=t(44480),n=t(81082),i=t(31421),l=t(14232);let s=(e,a)=>{if(a.Limpar)return{};let{Campo:t,Valor:o,Grupo:r,Limpar:n}=a;return function(e,a,t){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=a.split("."),n=r.pop(),i={...e},l=i;for(let e of r)(!l[e]||o)&&(l[e]={}),l[e]={...l[e]},l=l[e];return o||null===t||"object"!=typeof t||Array.isArray(t)||t instanceof Blob||t instanceof File?l[n]=t:l[n]={...l[n],...t},i}(e,r?"".concat(r,".").concat(t):t,o,n)},u=function(e,a){let t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Salvar",[c,d]=(0,l.useReducer)(s,e),[p,f]=(0,l.useState)(t),[h,v]=(0,l.useState)(!1),m=()=>!!(0,i.diff)(c,e),b=async e=>{e.preventDefault();let t=Array.from(document.querySelectorAll("input[required]")).filter(e=>!e.disabled&&!e.value.trim());if(null==t?void 0:t.length){let e=t.map(e=>(null==e?void 0:e.id)||(null==e?void 0:e.Nome)).join(", ");(0,n.Ay)({Mensagem:"Campos obrigat\xf3rios ".concat(e?"(".concat(e,") "):"","est\xe3o vazios!"),Tipo:n.lF.Advertencia});return}if(!m())return;v(!0);let r=await a(c);if((0,n.Ay)(null==r?void 0:r.Notificacao),v(!1),o)return o(r)};return{Dados:c,AtualizarDados:function(e,a){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];
1e&&void 0!=e?"object"==typeof e?Object.entries(e).forEach(e=>{let[a,t]=e;d({Campo:a,Valor:t,Limpar:!1})}):"string"==typeof e&&d({Campo:e,Valor:a,Limpar:t}):d({Limpar:!0})},Processamento:h,Processar:v,Exibicao:p,Exibir:f,Alteracoes:m,Salvar:b,BotaoSalvar:()=>({Desabilitado:!m(),DesabilitadoTexto:"Realize mudan\xe7as em seus dados para salvar",Texto:u,Icone:r.G.faCheck,Acao:b})}},c=function(e){let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[t,r]=(0,l.useReducer)(s,e),{isOpen:n,onToggle:i}=(0,o.j)({defaultIsOpen:a}),{isOpen:u,onToggle:c}=(0,o.j)({defaultIsOpen:!1}),[d,p]=(0,l.useState)(!1),[f,h]=(0,l.useState)(null),[v,m]=(0,l.useState)(null),[b,g]=(0,l.useState)(null);return{Dados:t,AtualizarDados:function(e,a){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e&&void 0!=e?"object"==typeof e?Object.entries(e).forEach(e=>{let[a,t]=e;r({Campo:a,Valor:t,Limpar:!1})}):"string"==typeof e&&r({Campo:e,Valor:a,Limpar:t}):r({Limpar:!0})},Atualizar:e=>{(null==e?void 0:e.Tipo)!=void 0&&m(null==e?void 0:e.Tipo),(null==e?void 0:e.Exibir)!=void 0&&i(),(null==e?void 0:e.Dados)!==void 0&&((null==e?void 0:e.Dados)===null?r({Limpar:!0}):Object.entries(null==e?void 0:e.Dados).forEach(e=>{let[a,t]=e;r({Campo:a,Valor:t,Limpar:!1})}
1)),(null==e?void 0:e.Processar)!=void 0&&p(null==e?void 0:e.Processar),(null==e?void 0:e.Janela)!=void 0&&g(null==e?void 0:e.Janela)},Exibicao:n,Exibir:i,Janela:b,AtualizarJanela:g,Processamento:d,Processar:p,Selecionado:f,Selecionar:h,Tipo:v,SelecionarTipo:m,Verificacao:u,Verificar:c}}}},e=>{var a=a=>e(e.s=a);e.O(0,[636,6593,8792],()=>a(31484)),_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.