1"use strict";(self.webpackChunkprocesso_seletivo=self.webpackChunkprocesso_seletivo||[]).push([[2076],{54840:(f,m,r)=>{r.d(m,{A:()=>s});var d=r(54438),n=r(74710),h=r(96354),l=r(6688),c=r(45312),p=r(36671);class g extends p.F{}class u{fromJson(t){const o=new g;return typeof t.success<"u"?(o.success=t.success,o.data=this.toJson(t.data),o):this.toJson(t)}toJson(t){return"object"==typeof t?{place_type_id:t.place_type_id,system_domain:t.system_domain}:t}}var T=r(21626);let e=(()=>{class i extends l.Q{constructor(o){super(o,`${c.c.API}`,"applyment/validate-access",new u)}static{this.\u0275fac=function(a){return new(a||i)(d.KVO(T.Qq))}}static{this.\u0275prov=d.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();const s=(i,t)=>{const o=(0,d.WQX)(e),a=(0,d.WQX)(n.Ix),v=i.data.keyName,w=i.paramMap.get(i.data.paramName);if(!v||!w)return!0;const C={token:localStorage.getItem("token"),[v]:w};return o.create(C).pipe((0,h.T)(P=>{if(P.success)return!0;let k=P.system_domain;5===P.place_type_id&&(k+="/portal-inscrito");const I=new URL(k);return a.parseUrl(I.pathname)}))}},80016:(f,m,r)=>{r.d(m,{C:()=>h});var d=r(36671);class n extends d.F{}class h{fromJson(c){const p=new n;return typeof c.success<"u"&&typeof c.data<"u"?(p.success=c.success,p.data=c.data,p):(p.id=c.id,p.tbc=c.tbc,p.totvs_user=c.totvs_user,p.totvs_pass=c.totvs_pass,p.use_methods_without_license=c.use_methods_without_license,p.use_totvs_oracle=c.use_totvs_oracle,p.use_methods_rest=c.use_methods_rest,p)}toJson(c){return{id:c.id,tbc:c.tbc,totvs_user:c.totvs_user,totvs_pass:c.totvs_pass,use_methods_without_license:c.use_methods_without_license,use_totvs_oracle:c.use_totvs_oracle,use_methods_rest:c.use_methods_rest}}}},59812:(f,m,r)=>{r.d(m,{d:()=>g});var d=r(6688),n=r(80016),h=r(45312),l=r(54438),c=r(21626),p=r(74710);let g=(()=>{class u extends d.Q{constructor(e,s){super(e,`${h.c.API}`,{endpoint:"portal/totvs",router:s},new n.C)}getTbcDataByPortalId(e){return this.endpoint=`portal/totvs/${e}`,this.readBasic()}static{this.\u0275fac=function(s){return new(s||u)(l.KVO(c.Qq),l.KVO(p.Ix))}}static{this.\u0275prov=l.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},99491:(f,m,r)=>{r.d(m,{L:()=>g});var d=r(10467),n=r(54438),h=r(34006),l=r(99213),c=r(14823);let p=(()=>{class u{constructor(){this.recaptchaIntegrator=(0,n.WQX)(g),this.data=(0,n.WQX)(h.Vh),this.dialogRef=(0,n.WQX)(h.CP)}ngAfterViewInit(){const e=document.querySelector("#widget");if(e){const s={sitekey:this.data.sitekey,"error-callback":()=>this.errored(),callback:i=>this.resolved(i)};this.recaptchaIntegrator.setValues(this.data.sitekey,"checkbox"),this.recaptchaIntegrator.renderV2(e,s)}}resolved(e){this.dialogRef.close(e)}errored(){this.dialogRef.close()}static{this.\u0275fac=function(s){return new(s||u)}}static{this.\u0275cmp=n.VBU({type:u,selectors:[["app-captcha-challenge-popup"]],standalone:!0,features:[n.aNF],decls:6,vars:1,consts:[[1,"captcha-popup"],[2,"display","flex","align-items","center","gap","8px"],[1,"message"],["matTooltip","Essa valida\xe7\xe3o assegura a integridade da sua chave.","matTooltipPosition","above","svgIcon","help",2,"width","16px","cursor","pointer"],["id","widget",1,"widget"]],template:function(s,i){1&s&&(n.j41(0,"div",0)(1,"div",1)(2,"p",2),n.EFF(3),n.k0s(),n.nrm(4,"mat-icon",3),n.k0s(),n.nrm(5,"div",4),n.k0s()),2&s&&(n.R7$(3),n.JRh(i.data.message))},dependencies:[l.m_,l.An,c.uc,c.oV],styles:[".captcha-popup[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;padding:16px}.captcha-popup[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{margin-bottom:16px;font-size:16px;color:#333}.captcha-popup[_ngcontent-%COMP%] .widget[_ngcontent-%COMP%]{width:100%;max-width:300px}"]})}}return u})(),g=(()=>{class u{constructor(){this.dialog=(0,n.WQX)(h.bZ),this.withTimeout=(e,s)=>new Promise((i,t)=>{const o=setTimeout(()=>t(),s);e.then(a=>{clearTimeout(o),i(a)}).catch(()=>{clearTimeout(o),t()})})}setValues(e,s){this.sitekey=e,this.type=s}validate(){var e=this;return(0,d.A)(function*(){return"invisible"===e.type?(yield e.loadScript(),yield e.validateInvisible()):"checkbox"===e.type?(yield e.loadScript(),yield e.validateV2()):"v3"===e.type?yield e.validateV3():void 0})()}clear(){this.sitekey=null,this.type=null}removeScript(){document.querySelectorAll(".ps-recaptcha-script").forEach(o=>{o.parentNode&&o.parentNode.removeChild(o)});const s=document.getElementById("widgets");s&&s.remove(),document.querySelectorAll(".rc-anchor").forEach(o=>{o.parentNode&&o.parentNode.removeChild(o)}),document.querySelectorAll(".grecaptcha-badge").forEach(o=>{o.parentNode&&o.parentNode.removeChild(o)})}renderV2(e,s){e&&(s=s||{sitekey:this.sitekey,"expired-callback":()=>this.expired(),"error-callback":()=>this.errored([]),callback:i=>this.resolved(i)},window.grecaptcha.ready(()=>{window.grecaptcha.render(e,s)}))}validateInvisible(){return new Promise((e,s)=>{const i=this.createElement(!0);window.grecaptcha.render(i,{sitekey:this.sitekey,size:"invisible",callback:t=>{this.setToken(t),e(t)},"error-callback":t=>{this.reset(),s(t)}}),window.grecaptcha.execute().catch(t=>{this.reset(),s(t)})})}validateV2(){var e=this;return(0,d.A)(function*(){return new Promise((s,i)=>
1{e.dialog.open(p,{width:"364px",minHeight:"186px",autoFocus:!1,data:{message:"Clique para verificar as credenciais.",sitekey:e.sitekey},disableClose:!1}).afterClosed().subscribe(t=>{t?s(t):i()})})})()}validateV3(){var e=this;return(0,d.A)(function*(){return yield e.loadScript(),e.withTimeout(new Promise((s,i)=>{window.grecaptcha.ready(()=>{window.grecaptcha.execute(e.sitekey).then(t=>s(t)).catch(t=>i(t))})}),8e3)})()}renderV3(){var e=this;return(0,d.A)(function*(){return e.loadScript()})()}renderInvisible(e){e=e||this.createElement(!1),window.grecaptcha.render(e,{sitekey:this.sitekey,size:"invisible",callback:s=>this.setToken(s),"error-callback":s=>this.errored(s)})}generateToken(){var e=this;return(0,d.A)(function*(){return"invisible"==e.getType()?new Promise((s,i)=>{window.grecaptcha.ready(()=>{window.grecaptcha.execute()}),e.waitForToken().then(t=>{e.setToken(t),s(t)}).catch(()=>{i()})}):"v3"==e.getType()?new Promise((s,i)=>{window.grecaptcha.ready(()=>{window.grecaptcha.execute(e.sitekey).then(t=>{e.setToken(t),s(t)}
1).catch(()=>{i()})})}):void 0})()}waitForToken(){return new Promise((e,s)=>{const o=setInterval(()=>{this.token&&(clearInterval(o),clearTimeout(a),e(this.token))},100),a=setTimeout(()=>{clearInterval(o),s()},5e3)})}createElement(e=!1){const s=document.getElementById("widgets"),i=s.querySelector(".recaptcha-hidden-widget");i&&i.remove();const t=document.createElement("div");return s.appendChild(t),t.classList.add("recaptcha-hidden-widget"),e&&(t.style.visibility="hidden",t.style.position="absolute",t.style.top="-9999px"),t}resolved(e){this.setToken(e)}errored(e){window.err_login_captcha=!0,console.error("Error rendering captcha:",e)}getType(){return this.type}getToken(){return this.token}setToken(e){this.token=e}expired(){this.expiredToken=!0}getExpired(){return!!this.expiredToken}reset(){window.grecaptcha.reset()}usingCaptcha(e,s=""){return!(!(e&&e?.active&&e?.captcha_portal_active)||s&&e.type!=s)}waitForGrecaptchaReady(e,s){let t=0;const o=setInterval(()=>{window.grecaptcha&&"function"==typeof window.grecaptcha.ready?(clearInterval(o),e()):++t>=40&&(clearInterval(o),s())},100)}loadScript(){var e=this;return(0,d.A)(function*(){return new Promise((s,i)=>{const t="checkbox"===e.type||"invisible"===e.type?"https://www.google.com/recaptcha/api.js":`https://www.google.com/recaptcha/api.js?render=${e.sitekey}`,o=document.createElement("script");o.src=t,o.className="ps-recaptcha-script",o.async=!0,o.defer=!0,o.onload=()=>{e.waitForGrecaptchaReady(s,i)},o.onerror=a=>{console.error("Erro ao carregar o script do reCAPTCHA:",a),i(a)},document.head.appendChild(o)})})()}static{this.\u0275fac=function(s){return new(s||u)}}static{this.\u0275prov=n.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},4601:(f,m,r)=>{r.r(m),r.d(m,{ApplymentAccessModule:()=>i});var d=r(60177),n=r(74710),h=r(87247),l=r(54438);let c=(()=>{class t{constructor(a){this.clientMainBarService=a}ngOnInit(){this.clientMainBarService.setHeaderHideState(!0)}static{this.\u0275fac=function(v){return new(v||t)(l.rXU(h.l))}}static{this.\u0275cmp=l.VBU({type:t,selectors:[["app-applyment-access"]],decls:0,vars:0,template:function(v,y){},encapsulation:2})}}return t})();var p=r(70493),g=r(88335),u=r(40914);const e=[{path:":hash",component:c,resolve:{applymentAccessData:(()=>{class t extends g.K{constructor(a,v,y){super(),this.http=a,this.route=v,this.applymentModel=y,this.response=null}resolve(a,v){let y=localStorage.getItem("token");return this.url=`get-last-history-applyment/${a.params.hash}/${y}`,this.http.get(this).then(w=>this.response)}successAction(a){a.success&&this.redirectsAccordingToType(a)}errorAction(a){a.success||this.route.navigate([this.applymentModel.getSettings().domainParams],{queryParamsHandling:"preserve"})}redirectsAccordingToType(a){switch(a.data.place_type_id){case 1:this.redirectToStep(a.data);break;case 2:this.redirectToFeedback(a.data);break;case 4:this.redirectToPage(a.data);break;case 5:this.redirectToPortal();break;case 6:this.redirectPopup(a.data);break;default:this.redirectToSelectiveProcessSelection()}}redirectToPage(a){a.completed?this.redirectToPortal():this.redirectToSelectiveProcessSelection()}redirectToPortal(){window.psClosePopUp&&window.psClosePopUp(),this.route.navigate([this.applymentModel.getSettings().domainParams+"/portal-inscrito"],{queryParamsHandling:"preserve"})}redirectToStep(a){window.psClosePopUp&&window.psClosePopUp(),localStorage.setItem("last_place_id",a.place_id),localStorage.setItem("last_place_type_id","1"),this.route.navigate([this.applymentModel.getSettings().domainParams+"/passo",a.place_id],{queryParamsHandling:"preserve"})}redirectToFeedback(a){window.psClosePopUp&&window.psClosePopUp(),localStorage.setItem("last_place_id",a.place_id),localStorage.setItem("last_place_type_id","2"),this.route.navigate([this.applymentModel.getSettings().domainParams+"/feedback",a.place_id],{queryParamsHandling:"preserve"})}redirectToSelectiveProcessSelection(){this.route.navigate([this.applymentModel.getSettings().domainParams],{queryParamsHandling:"preserve"})}redirectPopup(a){a.completed?this.redirectToPortal():this.redirectToSelectiveProcessSelection()}static{this.\u0275fac=function(v){return new(v||t)(l.KVO(p.k),l.KVO(n.Ix),l.KVO(u.c))}}static{this.\u0275prov=l.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})()}}];let s=(()=>{class t{static{this.\u0275fac=function(v){return new(v||t)}}static{this.\u0275mod=l.$C({type:t})}static{this.\u0275inj=l.G2t({imports:[n.iI.forChild(e),n.iI]})}}return t})(),i=(()=>{class t{static{this.\u0275fac=function(v){return new(v||t)}}static{this.\u0275mod=l.$C({type:t})}static{this.\u0275inj=l.G2t({imports:[d.MD,s]})}}return t})()},77456:(f,m,r)=>{r.d(m,{O:()=>h});var d=r(21413),n=r(54438);let h=(()=>{class l{constructor(){this._afterClosed=new d.B,this.afterClosed=this._afterClosed.asObservable()}close(p){this._afterClosed.next(p)}static{this.\u0275fac=function(g){return new(g||l)}}static{this.\u0275prov=n.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},65935:(f,m,r)=>{r.d(m,{f:()=>n});var d=r(54438);let n=(()=>{class h{constructor(c){this.el=c.nativeElement}ngAfterViewInit(){this.el.style.backgroundImage="url("+this.data+")",this.el.style.backgroundSize="cover",this.el.style.backgroundRepeat="no-repeat",this.el.style.backgroundPosition="center"}static{this.\u0275fac=function(p){return new(p||h)(d.rXU(d.aKT))}}static{this.\u0275dir=d.FsC({type:h,selectors:[["","backgroundImage",""]],inputs:{data:[d.Mj6.None,"backgroundImage","data"]}})}}return h})()}}]);
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.