trang mạng:Biên môi giớiNội dung
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WLM872');AFPCapital|Lamejoropciónparatufuturowindow._vwo_code||(function(){varaccount_id=,version=2.1,settings_tolerance=2000,hide_element='body',hide_element_style='opacity:0!important;filter:alpha(opacity=0)!important;background:none!important;transition:none!important;',/*DONOTEDITBELOWTHISLINE*/f=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{varc=JSON.parse(localStore.getItem('_vwo_'+account_id+'_config'));cc=c&&typeofc==='object'?c:{}}catch(e){}varstT=cc.stT==='session'?w.sessionStore:w.localStore;code={use_existing_jquery:function(){returntypeofuse_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){returntypeoflibrary_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){returncc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){if(performance.getEntriesByName('first-contentful-paint')[0]){return''}returntypeofcc.hE==='string'?cc.hE:hide_element},getVersion:function(){returnversion},finish:function(e){if(!f){f=true;vart=d.getElementById('_vis_opt_path_hides');if(t)t.parentNode.removeChild(t);if(e)(newIme).src='dev.visualwebsiteoptimizer.com/ee.gif?a='+account_id+e}},finished:function(){returnf},addScript:function(e){vart=d.createElement('script');t.type='text/jascript';if(e.src){t.src=e.src}else{t.text=e.text}d.getElementsByTName('head')[0].appendChild(t)},load:function(e,t){vari=this.getSettings(),n=d.createElement('script'),r=this;t=t||{};if(i){n.textContent=i;d.getElementsByTName('head')[0].appendChild(n);if(!w.VWO||VWO.caE){stT.removeItem(cK);r.load(e)}}else{varo=newXML;o.open('GET',e,true);o.withCredentials=!t.dSC;o.responseType=t.responseType||'text';o.onload=function(){if(t.onloadCb){returnt.onloadCb(o,e)}if(o.status===200){_vwo_code.addScript({text:o.responseText})}else{_vwo_code.finish('&e=loading_failure:'+e)}};o.onerror=function(){if(t.onerrorCb){returnt.onerrorCb(e)}_vwo_code.finish('&e=loading_failure:'+e)};o.send()}},getSettings:function(){try{vare=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}returne.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;vare=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){_vwo_code.finish();stT.removeItem(cK)},e);vart;if(this.hide_element()!=='body'){t=d.createElement('style');vari=this.hide_element(),n=i?i+this.hide_element_style():'',r=d.getElementsByTName('head')[0];t.setAttribute('id','_vis_opt_path_hides');v&&t.setAttribute('nonce',v.nonce);t.setAttribute('type','text/css');if(t.styleSheet)t.styleSheet.cssText=n;elset.appendChild(d.createTextNode(n));r.appendChild(t)}else{t=d.getElementsByTName('head')[0];varn=d.createElement('div');n.style.cssText='z-index:47!important;position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;background:white!important;';n.setAttribute('id','_vis_opt_path_hides');n.classList.add('_vis_hide_layer');t.parentNode.insertBefore(n,t.nextSibling)}varo='dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&vn='+version;if(w.location.search.indexOf('_vwo_xhr')!==-1){this.addScript({src:o})}else{this.load(o+'&x=true')}}};w._vwo_code=code;code.init();})(); Tenemosinformaciónimportanteparati: Teinformamosqueel lunes11denoviembrenuestroCallCenteratenderápúblicohastalas17:00horas.Ellunes18denoviembre,lasucursaldeViñadelMarcambiarásuubicacióna 12Norte785,piso14,Oficina1402,EdificioPamplona,ViñadelMar. .afp-capital-alert-container{ box-shadow:0px2px4px0pxrgba(99,99,99,0.10); border-top:1pxsolidvar(--color-background-06); } .huincha-description-listul{ color:var(--color-black); font-size:var(--font-small); font-weight:var(--font-weight-light); line-height:var(--lh-font-small); margin-bottom:0; } .huincha-description-listul>li::marker{ color:var(--color-blue-500); } document.addEventListener('DOMContentLoaded',function(){ constcloseButton=document.getElementById('huincha-btn-close'); closeButton.addEventListener('click',function(){ constalertContainer=document.querySelector('.afp-capital-alert-container'); alertContainer.classList.add('d-none'); sessionStore.setItem('alert_closed','true'); }); }); constalertClosed=sessionStore.getItem('alert_closed')==='true';if(alertClosed){constalertContainer=document.querySelector('.afp-capital-alert-container');alertContainer.classList.add('d-none');} Saltaracontenido MENÚ Personas Empresas Ingresaunapalabra... ¿Noencuentrasloquenecesitas? Revisalaseccióndeayuda IniciaSesión HazteCliente functionopenNotification(id){ varelement=document.querySelector('#not_'+id); varbadge=document.querySelector('#badge_'+id); varurl=element.getAttribute("data-url"); if(element.classList.contains('new_not')){ fetch(url,{ method:'put', headers:newHeaders({ 'Authorization':'Bearer', }), }); } element.classList.remove('fw-bold'); element.classList.remove('new_not'); badge.classList.remove('badge-primary'); badge.classList.add('badge-light'); varbadge_new=document.getElementById("badge_new"); if(document.querySelector('.new_not')===null&&badge_new){ badge_new.parentNode.removeChild(badge_new); }} Inicio CámbiateaAFPCapital CámbiateaAFPCapital Conocecómoyporquécambiarteconnosotros Consultatodalainformación ¿Quénecesitas? CambiarmeenLínea ConsultarelComprobantedetraspaso Preguntasfrecuentes ¿PorquécambiarmeaAFPCapital? ¿Cuántodemoraelprocesodecambio? ServiciosyAsesorías ServiciosyAsesorías Realizatrámitesenlíneaosolicitanuestraasesoríaexperta Consultatodalainformación ¿Sobrequénecesitasinformación? PensiónGarantizadaUniversal Certificados Beneficiosestatales Cartolas TodoslosServiciosdigitales SolicituddeCuotaMortuoria Valorcuota Resultadodemultifondos CapitalPLAY Pensiónporenfermedadterminal Preguntasfrecuentes ¿Quétrámitespuedorealizarenlínea? ¿CómosabersisoybeneficiariodePGU? ¿Québeneficiosestatalesexisten? ¿QuéesCapitalPlay? ¿QuéeslaCuotaMortuoria? AhorroObligatorio AhorroObligatorio Todoloquenecesitassabercomoafiliado Consultatodalainformación ¿Quétipodetrabajorealizas? Trabajadoresdependientes Trabajadoresindependientes Trabajadoresdecasaparticular Trabajadoresnoremunerados Másinformación Comisiones Planillasdepo Preguntasfrecuentes ¿Cuálessonlosbeneficiosdecotizar? Biên môi giới ¿Puedocotizarsisoyindependiente? ¿Quésonlaslunasprevisionales? ¿Quétiposdetrabajadoresindependientesexisten? ¿PuedoretirarlosfondosdemicuentadeAhorrodeIndemnización? ¿Puedocotizarsinorecibosueldo? AhorroVoluntario AhorroVoluntario Comienzaaahorrarparacomplementartufuturapensión Consultatodalainformación ¿Cómoquieresahorrar? AhorroPrevisionalVoluntario-APV CuentadeAhorroVoluntario-Cuenta2 DepósitosConvenidos ModalidadesdeAhorro Másinformación Comisiones Planillasdepo Preguntasfrecuentes ¿Porquétenerunahorrovoluntario? ¿QuébeneficiostieneelAPV? ¿CuálessonlosbeneficiosdelaCuenta2? ¿Quésonlosdepósitosconvenidos? Pensiones Pensiones Aseguratujubilaciónytubienestarfuturo Consultatodalainformación ¿Quéinformaciónnecesitas? TiposdePensión ModalidadesdePensión Calendarioymodosdepo Beneficiosestatales Herencias PensiónAnticipadaporEnfermedadTerminal AccesoBeneficiarios Preguntasfrecuentes ¿Cuálespasoapasoparalapensión? ¿Cómosecalculanlaspensiones? ¿Puedopensionarmedesdeelextranjero? ¿Puedocambiarlamodalidaddepodepensión? ¿CómoaccederaLeydePensióndeAlimentos? ¿CómosabersimecorrespondelaPGU? CapitalPlay n#main-n-bar.n-link.active{ font-weight:var(--font-weight-extra-bold); } @media(min-width:992px){ n#main-n-bar{ box-shadow:0px2px10px0pxrgba(0,0,0,0.10); top:0; } n#main-n-bar.dropdown-menu{ --bs-dropdown-spacer:var(--numberscale-none); box-shadow:0px2px5px0px#A; border-radius:0016px16px; } n#main-n-bar.dropdown-menua{ line-height:18px; } n#main-n-bar.n-item{ width:100%; } n#main-n-bar:has(.megamenu.show){ z-index:10; } n#main-n-bar.sticky-scroll-top{ position:fixed; width:100%; z-index:3; } n#main-n-bar.info{ width:220px; } n#main-n-bar.container.has-separator:before{ content:''; width:0.0625rem;; height:100%; background-color:var(--strokecolor-dividers-gray,#DCDCDC); position:absolute; left:calc(-1*var(--spacingsystem-lg,2rem)); } } Cerrar Personas Empresas Inicio CámbiateaAFPCapital Consultatodalainformación ¿Quénecesitas? CambiarmeenLínea ConsultarelComprobantedetraspaso Preguntasfrecuentes ¿PorquécambiarmeaAFPCapital? ¿Cuántodemoraelprocesodecambio? ServiciosyAsesorías Consultatodalainformación ¿Sobrequénecesitasinformación? PensiónGarantizadaUniversal Certificados Beneficiosestatales Cartolas TodoslosServiciosdigitales SolicituddeCuotaMortuoria Valorcuota Resultadodemultifondos CapitalPLAY Pensiónporenfermedadterminal Preguntasfrecuentes ¿Quétrámitespuedorealizarenlínea? ¿CómosabersisoybeneficiariodePGU? ¿Québeneficiosestatalesexisten? ¿QuéesCapitalPlay? ¿QuéeslaCuotaMortuoria? AhorroObligatorio Consultatodalainformación ¿Quétipodetrabajorealizas? Trabajadoresdependientes Trabajadoresindependientes Trabajadoresdecasaparticular Trabajadoresnoremunerados Másinformación Comisiones Planillasdepo Preguntasfrecuentes ¿Cuálessonlosbeneficiosdecotizar? ¿Puedocotizarsisoyindependiente? ¿Quésonlaslunasprevisionales? ¿Quétiposdetrabajadoresindependientesexisten? ¿PuedoretirarlosfondosdemicuentadeAhorrodeIndemnización? ¿Puedocotizarsinorecibosueldo? AhorroVoluntario Consultatodalainformación ¿Cómoquieresahorrar? AhorroPrevisionalVoluntario-APV CuentadeAhorroVoluntario-Cuenta2 DepósitosConvenidos ModalidadesdeAhorro Másinformación Comisiones Planillasdepo Preguntasfrecuentes ¿Porquétenerunahorrovoluntario? ¿QuébeneficiostieneelAPV? ¿CuálessonlosbeneficiosdelaCuenta2? ¿Quésonlosdepósitosconvenidos? Pensiones Consultatodalainformación ¿Quéinformaciónnecesitas? TiposdePensión ModalidadesdePensión Calendarioymodosdepo Beneficiosestatales Herencias PensiónAnticipadaporEnfermedadTerminal AccesoBeneficiarios Preguntasfrecuentes ¿Cuálespasoapasoparalapensión? ¿Cómosecalculanlaspensiones? ¿Puedopensionarmedesdeelextranjero? ¿Puedocambiarlamodalidaddepodepensión? ¿CómoaccederaLeydePensióndeAlimentos? ¿CómosabersimecorrespondelaPGU? CapitalPlay Cerrar Saltaracontenido MENÚ Personas Empresas Ingresaunapalabra... ¿Noencuentrasloquenecesitas? Revisalaseccióndeayuda IniciaSesión HazteCliente #searchModal.modal-search-close{ height:100%; left:0; position:absolute; top:0; width:100%; z-index:0; } #searchModal.modal-dialog.modal-fullscreen{ transform:none; } #searchModaln{ background:transparent!important; border:none!important; } #searchModal.modal-header{ border-bottom:2pxsolidvar(--color-yellow-500); } #searchModal.modal-header-empresas{ border-bottom:2pxsolidvar(--color-blue-500); } .search-results.list-group-item.result-link{ color:var(--color-black); display:block; font-size:var(--font-sub); padding:var(--height-padding-xs)var(--height-padding-m)var(--height-padding-xs)var(--height-padding-m); text-decoration:none; } #searchModal.collapse:not(.show){ display:block; } #searchModal.container-search{ position:absolute; width:100%; background:var(--color-white); left:0; top:0; padding:0calc(var(--bs-gutter-x)*.5); } #search-modal-input,#search-form.form-control[type="search"]:focus{ border:2pxsolidvar(--color-blue-500)!important; box-shadow:none!important; } #search-modal-input:focus{ border:2pxsolidvar(--color-blue-500)!important; box-shadow:none!important; } @mediaonlyscreenand(min-width:992px){ #searchModal.modal-content{ background-color:var(--color-transparent); } #searchModal.container-search{ position:static; width:auto; background:var(--color-transparent); padding:0; } .container-search{ max-width:40rem; position:relative; z-index:2; } .modal.nbar-brand,.modal.collapse:nth-child(1){ visibility:hidden; } } constsearchModalInput=document.getElementById('search-modal-input') constsearchInput=document.getElementById('search-input') constactiveArea=document.getElementsByClassName('container-search'); constkeyIntroEvent=newKeyboardEvent('keypress',{'key':'Enter'}); constshowModal=()=>{ constcontainer=document.getElementById("searchModal"); constmodal=newbootstrap.Modal(container); if(!alertClosed&&window.innerWidth>=992){ constinputRect=searchInput.getBoundingClientRect(); container.style.top=`${(inputRect.top-23)}px`; } modal.show(); } searchInput.addEventListener('click',()=>{ showModal(); }) searchInput.addEventListener('keydown',(event)=>{ if(event.key==='Enter'){ event.preventDefault(); showModal(); searchModalInput.value=searchInput.value; searchModalInput.dispatchEvent(keyIntroEvent); } }) searchModal.addEventListener('hidden.bs.modal',()=>{ searchInput.value=''; //searchModalInput.value=''; constresults=searchModal.querySelectorAll('.list-group-item:not(.fixed,.text-search-default)') results.forEach(res=>res.remove()); consttextDefault=searchModal.querySelector('.search-results.text-search-default') textDefault.classList.remove('d-none') }) searchModal.addEventListener('shown.bs.modal',()=>{ searchModalInput.value=searchInput.value; searchModalInput.focus(); }) searchModalInput.addEventListener('keypress',(e)=>{ if(e.key==='Enter'){ e.preventDefault(); letsearchInputVal=sanitizeInput(e.target.value); constsearchResultList=searchModal.querySelector('.search-results'); window.dataLayer.push({ 'event':'search', 'searchTerm':searchInputVal }); searchResultList.querySelectorAll('[data-origin="search"]').forEach(el=>el.remove()); consttextDefault=searchModal.querySelector('.search-results.text-search-default'); textDefault.classList.add('d-none'); fetch(`/search.json?query=${searchInputVal}`) .then(r=>r.json()) .then(({results})=>{ results.map((result)=>{ constli=document.createElement('li') consta=document.createElement('a') a.innerHTML=boldSearch(result.title,searchInputVal); a.href=result.url; a.classList.add('result-link'); li.classList.add('list-group-item','p-0'); li.appendChild(a); li.dataset.origin='search'; searchResultList.prepend(li); }) }) } }) constsanitizeInput=(inputValue)=>{ constspecialChars=/["'&]/; if(specialChars.test(inputValue)){ returnnull; } returninputValue; } constboldSearch=(result,inputValue)=>{ constnormalizedQuery=inputValue.normalize('NFD').replace(/[\u0300-\u036f]/g,"").toLowerCase(); constnormalizedReply=result.normalize('NFD').replace(/[\u0300-\u036f]/g,"").toLowerCase(); result=result.normalize('NFC'); if(normalizedReply.includes(normalizedQuery)){ conststartIndex=normalizedReply.indexOf(normalizedQuery); constendIndex=startIndex+normalizedQuery.length; consthighlightedReply=`${result.substring(0,startIndex)}${result.substring(startIndex,endIndex)}${result.substring(endIndex)}`; returnhighlightedReply; } returnresult; } /*TFondo*/.-t{ padding:8px16px; border-radius:99px;}.-t.hight-risk{ background-color:var(--color-fondos-fondo-alight);}.-t.risky{ background-color:var(--color-fondos-fondo-blight);}.-t.intermediate{ background-color:var(--color-fondos-fondo-clight);}.-t.conservative{ background-color:var(--color-fondos-fondo-dlight);}.-t.more-conservative{ background-color:var(--color-fondos-fondo-elight);}#hero-round-banner{ width:100%; background-repeat:no-repeat; background-size:cover; background-position:bottom; position:relative; overflow:hidden; }.hero-round-banner__hero{ background-ime:url(afpcapital.cdn.modyo.com/uploads/4ad431fb-5a1b-47f9-a192-abace53/original/bg-banner-home.png);}.hero-round-banner__servicios{ background-ime:url(afpcapital.cdn.modyo.com/uploads/7f110ec7-43be-4a8a-8196-d139cfd1473e/original/bg-hero-servicios-mobile.png); padding-bottom:20px;}.hero-round-banner__subproductos{ background-ime:url(afpcapital.cdn.modyo.com/uploads/4ad431fb-5a1b-47f9-a192-abace53/original/bg-banner-home.png);}#hero-round-banner .ime-mask__hero{ clip-path:circle(66%at50%-11%); position:relative; width:100%; height:75vw; right:0; margin-left:0; }#hero-round-banner .ime-mask__servicios{ clip-path:circle(66%at50%-11%); position:relative; width:100%; height:75vw; right:0; margin-left:0;}#hero-round-banner.ime-mask__subproductos{ clip-path:circle(116%at50%-128%); position:relative; width:100%; height:42vw; right:0; margin-left:0; }#hero-round-banner.ime-maskimg{ width:100%; height:100%; object-fit:cover;}#hero-round-banner.btn{ width:100%;}#hero-round-banner.overlay__hero{ background:linear-gradient(270deg,rgba(28,58,135,0.50)0.13%,rgba(28,58,135,0.10)99.82%);}#hero-round-banner.overlay__servicios{ background:linear-gradient(330deg,rgba(0,0,0,0.50)18.18%,rgba(227,235,41,0.05)79.45%);}#hero-round-banner.overlay__subproductos{ background:linear-gradient(270deg,rgba(28,58,135,0.50)0.13%,rgba(28,58,135,0.10)99.82%);}.hero-round-banner__hero.hero-text{ margin-top:-31vw;}.hero-round-mask__servicios.hero-text{ margin-top:-31vw;}.hero-round-banner__subproductos.hero-text{ margin-top:-12vw;}/*responsive*/@mediaonlyscreenand(min-width:768px){ #hero-round-banner .ime-mask__hero{ clip-path:circle(66%at70%17%); transform:translateY(-4%); position:absolute; top:0; width:53%; height:46vw; } #hero-round-banner .ime-mask__servicios{ clip-path:circle(76%at72%13%); position:absolute; top:0; width:58%; height:46vw; } #hero-round-banner.ime-mask__subproductos{ clip-path:circle(71%at53%-33%); position:absolute; top:0; width:53%; height:24vw; } .hero-round-banner__hero.hero-text{ margin-top:0; padding-top:48px; } .hero-round-banner__servicios.hero-text{ margin-top:0; padding-top:48px; } .hero-round-banner__subproductos.hero-text{ margin-top:0; padding-top:25px; } .hero-round-banner__hero{ min-height:423px; }.hero-round-banner__servicios { min-height:520px; } .hero-round-banner__subproductos{ min-height:250px; } .hero-round-banner__hero{ background-ime:url(afpcapital.cdn.modyo.com/uploads/d0961c4f-54b6-4e70-939e-bfbf8/original/bg-hero-home.png); } .hero-round-banner__servicios{ background-ime:url(afpcapital.cdn.modyo.com/uploads/c-c144-479c-ac9b-91ac053/original/bg-hero-servicios.png); } .hero-round-banner__subproductos{ background-ime:url(afpcapital.cdn.modyo.com/uploads/d0961c4f-54b6-4e70-939e-bfbf8/original/bg-hero-home.png); } #hero-round-banner.title__servicios{ margin-top:40px; }}@mediaonlyscreenand(min-width:992px){ #hero-round-banner .ime-mask__hero{ clip-path:circle(56%at55%5%); } #hero-round-banner .ime-mask__servicios{ clip-path:circle(56%at55%5%); } #hero-round-banner.ime-mask__subproductos{ clip-path:circle(64%at55%-38%); } #hero-round-banner.hero__space{ margin-top:60px; }}@mediaonlyscreenand(min-width:1400px){ .hero-round-banner__hero{ min-height:0; } #hero-round-banner.ime-mask{ top:0; right:0; z-index:2; } #hero-round-banner.ime-mask__hero{ clip-path:circle(54%at50%25%); position:static; width:100%; height:33vw; } #hero-round-banner.ime-mask__servicios, .ime-mask__subproductos{ clip-path:circle(54%at50%25%); position:static; width:100%; height:auto; } #hero-round-banner.ime-mask__subproductos{ clip-path:circle(54%at50%-41%); position:static; width:100%; height:16vw; }} Contigoentupresenteyfuturo Porquesabemosloimportantequesontusahorros,contamosconvariadosserviciosparabrindarteasesoríaencadaetapadetuvida. CámbiateaAFPCapital (function(){ //Yourcode })(); (function(){varcss_url="/widget_maner/58f-be34-4032-b84f-0bc325d360de/4483c0188e0d4902d1684c4ea68c36a18aa692fab2df3e4d.css";varcss;css=document.createElement('link');css.rel='stylesheet';css.type='text/css';css.media="all";css.href=css_url;document.getElementsByTName("head")[0].appendChild(css);})();(function(){varcss_url="/widget_maner/ab61b467-671e-492c-a05f-337ccfbe5a24/bc8bea37b1636efc757f37e4178dc4a63fc7906b5d9e66bddcacd1aad09.css";varcss;css=document.createElement('link');css.rel='stylesheet';css.type='text/css';css.media="all";css.href=css_url;document.getElementsByTName("head")[0].appendChild(css);})(); #blog_cards{ padding-top:40px; padding-bottom:40px;}#blog_cards.card-primary{ position:relative; overflow:hidden; background-color:#ffffff; border-radius:16px; box-shadow:0px2px5px0pxrgba(0,0,0,0.10); background-ime:url(afpcapital.cdn.modyo.com/uploads/dc-3116-4204-a14d-61e807cbe648/original/bg-card-news.png); background-repeat:no-repeat; background-size:cover; background-position:center;} #blog_cards.card-primary.ime{ position:absolute; overflow:hidden; width:250px; height:265px; clip-path:circle(94.0%at106%1%); top:0; right:0;}#blog_cards.card-primary.mask{ width:100%; height:100%; background:linear-gradient(270deg,rgba(28,58,135,0.50)0.13%,rgba(28,58,135,0.10)99.82%); z-index:10; position:absolute; top:0; right:0;}#blog_cards.card-primary.imeimg{ width:100%; height:100%; object-fit:cover; transition:all0.4sease-out;}#blog_cards.card-primary.iconplayimg{ max-width:100px; width:100px; aspect-ratio:2;}#blog_cards.card-primary:hover.imeimg{ transform:scale(1.3); transform-origin:bottomright;}#blog_cards.card-primary.shape-right{height:200px;shape-outside:ellipse(167px153pxat94%26%);width:185px;}/*Cardsecondary*/#blog_cards.card-secondary{ height:auto; position:relative; overflow:hidden; background-color:#ffffff; padding:196px24px24px24px; border-radius:16px; box-shadow:0px2px5px0pxrgba(0,0,0,0.10);}#blog_cards.card-secondary.ime{ position:absolute; overflow:hidden; width:100%; height:172px; top:0; left:0; background:linear-gradient(270deg,rgba(28,58,135,0.50)0.13%,rgba(28,58,135,0.10)99.82%);}#blog_cards.card-secondary.imeimg{ width:100%; height:100%; object-fit:cover; transition:all0.4sease-out;}#blog_cards.card-secondary:hover.imeimg{ transform:scale(1.2); transform-origin:bottomright;}@mediaonlyscreenand(min-width:420px){ #blog_cards.card-primary.shape-right{ float:right; }}@mediaonlyscreenand(min-width:768px){ #blog_cards.card-secondary{ min-height:248px; padding:32px199px24px16px; } #blog_cards.card-secondary.ime{ width:183px; height:100%; left:auto; right:0; } }@mediaonlyscreenand(min-width:992px){ #blog_cards{ padding-top:72px; padding-bottom:72px; } #blog_cards.card-secondary{ padding:10px199px24px16px; } #blog_cards.card-primary.shape-right{ height:230px; shape-outside:ellipse(177px173pxat64%26%); width:226px; } #blog_cards.card-primary.iconplayimg{ max-width:140px; width:140px; }}@mediaonlyscreenand(min-width:1200px){ #blog_cards.card-primary.ime{ width:296px; clip-path:circle(88.0%at99%1%); } #blog_cards.card-secondary{ padding:32px199px24px16px; }} Actualidad Conocemás Streaming48:Analizamoslosmultifondosalcierrede2024 Conversamosconnuestrosexpertossobrelosresultadosdelosmultifondosenloquevadelaño2024. Octubre3,2024 | 47 mindevisualización IraCapitalPlay ¿Quépasóconlosfondosenseptiembre? Infórmatesobreeldesempeñoydistribucióndelainversiónencadaunodelosmultifondos. Octubre15,2024 | 15 mindelectura Conocemás ElmejortercertrimestreparaelFondoDyE:Tecontamosaquésedebenlosbuenosresultados DuranteeltercertrimestreelfondoDobtuvounarentabilidadde12,47%,mientrasqueelEcerrócon15,45.TodoslosdetallesteloscontamosenlaentrevistaconCarlosMilla. Octubre23,2024 | 5 mindelectura Conocemás Conocemás (function(){ //Yourcode })(); ¿PorquéelegirAFPCapital? Realizatustrámitesdesdedondeestésennuestrasplataformasdigitales Podráshacercambiosdefondo,girosrápidos,descargarcertificadosyestaraltantodeloquepasacontusahorros. TemantenemosaldíaconnuestrosStreamings Cadamesrealizamosstreamingsendondeteinformamossobretusahorrosycontextoprevisional. Solucionamostusconsultas ContamosconlacertificaciónISO9001Yquegarantizaestándaresenatenciónaclientesyresolucióndereclamos. Quierocambiarme .home-why-afpc.right-ime{ width:257px; height:519px; } .home-why-afpcvideo{ clip-path:inset(2px2px); } @media(max-width:767px){ .home-why-afpcvideo{ height:340px; } .home-why-afpc.btn{ width:100%; } } (function(){varcss_url="/widget_maner/0cab2bf3-8312-4cff-b9d1-89d384b/d32ed0eceb7e56abb8e53cd1ba61acdf9df210b8b5089.css";varcss;css=document.createElement('link');css.rel='stylesheet';css.type='text/css';css.media="all";css.href=css_url;document.getElementsByTName("head")[0].appendChild(css);})();(function(){varcss_url="/widget_maner/000bb9af-678b-4025-a91e-10e71aa6783c/8057edd8e7a88bb21c74abe3633c29dbde839fcb1f6a7195f5212ee173a.css";varcss;css=document.createElement('link');css.rel='stylesheet';css.type='text/css';css.media="all";css.href=css_url;document.getElementsByTName("head")[0].appendChild(css);})(); #cards-contact{ padding-top:35px; padding-bottom:35px;}.cards-contact-card{ display:flex; flex-direction:column; justify-content:space-between; border-radius:8px; background:var(--color-bg-01); box-shadow:0px2px5px0pxrgba(0,0,0,0.10); position:relative;}.cards-contact-cardfigure{background-color:var(--color-amarillo-500);border-radius:100%;width:40px;height:40px;display:flex;justify-content:center;align-items:center;}.cards-contact-cardfigurei{ color:var(--color-blue-500);}#cards-contactslider-cards-contact{ display:flex; align-items:stretch;}.cards-contact-link{ position:absolute;inset:0;z-index:10; cursor:pointer;}#cards-contactul{ list-style:none; padding-left:16px; padding:0;}#cards-contactulli{ position:relative; padding-left:20px; margin-bottom:16px; font-size:14px; line-height:21px; font-weight:300;}#cards-contactulli::before{ content:"•"; position:absolute; left:0; top:-3px; color:var(--color-blue-500); font-size:34px;}#cards-contacth2.afp-section{ padding-top:0;}@media(width>=700px){#cards-contact{ padding-top:50px; padding-bottom:50px; } #cards-contacth2.afp-section{ padding-top:40px; }} ¿Necesitascontactarnos? Asistentevirtual Sinimportareldíaolahora,Claraestálistapararespondertusdudasconrespuestasautomatizadas. HablarconClara Nuestrassucursales Encuentratusucursalmáscercana. Irasucursales Escríbenos Abretuaplicaciónyúsalaparacontactarnos. WhatsApp Llámanos Lunesajuevesde09:00a18:00Viernesde09:00a15:50ContáctanosenChile 6006600900Desdeelextranjero +56232934655 (function(){ constbtnClara=document.getElementById('btnClara');document.addEventListener("DOMContentLoaded",(event)=>{ btnClara.addEventListener('click',()=>{ window._webchat_callback.onMinimizar(); }); btnClara.addEventListener('keypress',(event)=>{ if(event.key==='Enter'){ window._webchat_callback.onMinimizar(); } });}); })(); (asyncfunctionregisterServiceWorker(){if('serviceWorker'innigator){if('false'!=='true'){awaitnigator.serviceWorker.getRegistration().then((registration)=>{if(!!registration)registration.unregister();});return;}constswRegistered=awaitnigator.serviceWorker.getRegistration().then((registration)=>!!registration);if(swRegistered)return;nigator.serviceWorker.register('/serviceworker.js',{scope:'/'}).catch((e)=>{console.error('Errorduringserviceworkerregistration:',e.messe);});}else{console.warn('ServiceWorkerisnotsupported');}}()); constrenderChat=()=>{ varinfo=nigator.userent; letstr=info.toLowerCase(); letsearch='mobile'; letisMatch=newRegExp('\\b'+search+'\\b','i').test(str); varparametros={}; parametros.token="5UMBWMwANgo.cwA.XOw.ztkya7wuj_TblIWL6nJfymBu9cRKoq4u3I98Bpj_PE8"; parametros.title="Clara,AsistenteVirtual"; parametros.webchat="afp-asistentevirtualclarapublica-cr-webchat-v1-pr-nqmaswbkfa-ue.a.run.app"; parametros.context={"channel":window.location.href.includes("empresas")?"empleador":"web","url":location.href}; parametros.negacion=isMatch; iniciar_chat(parametros,function(chat){ chat.onShow=function(){ console.log("elchatsemuestra"); }; chat.onHide=function(){ console.log("elchatseoculta"); }; }); if(isMatch){ console.log("entroamobile"); varbotDiv=document.querySelector('#botDiv'); botDiv.style.backgroundIme='url(afp-asistentevirtualclarapublica-cr-webchat-v1-pr-nqmaswbkfa-ue.a.run.app/img/logo-asistente-movil.jpg)'; botDiv.style.backgroundPosition='center'; botDiv.style.backgroundRepeat='no-repeat'; botDiv.style.backgroundSize='auto100%'; botDiv.style.height='50px'; botDiv.style.width='100%'; botDiv.style.backgroundColor='#00aec7'; }};document.onreadystatechange=function(){ if(document.readyState==="interactive"){ constchatUrl="afp-asistentevirtualclarapublica-cr-webchat-v1-pr-nqmaswbkfa-ue.a.run.app/asistente.js"; constnewStyle=document.createElement('link'); newStyle.setAttribute('rel','stylesheet'); newStyle.setAttribute('type','text/css'); newStyle.setAttribute('href','afp-asistentevirtualclarapublica-cr-webchat-v1-pr-nqmaswbkfa-ue.a.run.app/asistente.css'); constnewScript=document.createElement("script"); newScript.async=true; newScript.defer=true; // newScript.onerror=loadError; if(renderChat){ newScript.onload=renderChat; } newScript.src=chatUrl; setTimeout(()=>{ document.head.appendChild(newScript); document.head.appendChild(newStyle); },5000); }}; CasaMatrizApoquindo4820,LasCondes,Santio,RM. ContáctanosenChile6006600900 Desdeelextranjero+56232934655 Horariosdeatención Lunesajuevesde09:00a18:00hrsViernesde09:00a15:50hrs. Sucursales EscríbenosaWhatsApp Contáctanos Compañía Compañía ¿Quiénessomos? Saladeprensa TrabajaenAFPCapital Sostenibilidad Códigodeéticayconducta Líneaética Accesibilidad Proveedores Ayuda Informaciónfinanciera Informaciónfinanciera Estadosfinancieros Información,estatutosypolíticasdeinversión Informaciónparaaccionistas Sitiosexternos Sitiosexternos Superintendenciadepensiones Adm.defondosdecesantías(AFC) BolsaNacionaldeEmpleos Previred AsociaciónGremialdeAFP Beneficiarios EntregatuopiniónalaSUPERINTENDENCIADEPENSIONESsobrelacalidaddeserviciodetuAFP,comienzaaquí Términosycondiciones Políticasdeprivacidadyseguridad Protégetedelphishing IniciaSesiónBiên môi giới HazteCliente .accordion{ --bs-accordion-btn-active-icon:url("data:ime/svg+xml,%3Csvgxmlns='http/2000/svg'width='24'height='25'viewBox='002425'fill='none'%3E%3Cmaskid='mask0_4324_'style='mask-type:alpha'maskUnits='userSpaceOnUse'x='0'y='0'width='24'height='25'%3E%3Crecty='0.'width='24'height='24'fill='%23D9D9D9'/%3E%3C/mask%3E%3Cgmask='url(%23mask0_4324_)'%3E%3Cpathd='M1215.4367C11.866715.436711.737515.411711.612515.3617C11.487515.311711.383415.245111.315.1617L6.10.5617C6.10.37846.10.14516.9.C6.9.6.9.6.9.C6.8.7.8.7.8.C7.8.7.8.8.9.L1213.0617L15.99.C16.08348.16.31678.16.68.C16.88348.17.11678.17.39.C17.48349.17.5759.17.5759.C17.57510.145117.483410.378417.310.5617L12.715.1617C12.615.261712.491715.332612.37515.3742C12.258415.415912.133415.43671215.4367Z'fill='%A0'/%3E%3C/g%3E%3C/svg%3E"); --bs-accordion-btn-icon:url("data:ime/svg+xml,%3Csvgxmlns='http/2000/svg'width='24'height='25'viewBox='002425'fill='none'%3E%3Cmaskid='mask0_4324_'style='mask-type:alpha'maskUnits='userSpaceOnUse'x='0'y='0'width='24'height='25'%3E%3Crecty='0.'width='24'height='24'fill='%23D9D9D9'/%3E%3C/mask%3E%3Cgmask='url(%23mask0_4324_)'%3E%3Cpathd='M1215.4367C11.866715.436711.737515.411711.612515.3617C11.487515.311711.383415.245111.315.1617L6.10.5617C6.10.37846.10.14516.9.C6.9.6.9.6.9.C6.8.7.8.7.8.C7.8.7.8.8.9.L1213.0617L15.99.C16.08348.16.31678.16.68.C16.88348.17.11678.17.39.C17.48349.17.5759.17.5759.C17.57510.145117.483410.378417.310.5617L12.715.1617C12.615.261712.491715.332612.37515.3742C12.258415.415912.133415.43671215.4367Z'fill='%A0'/%3E%3C/g%3E%3C/svg%3E"); } .social:focus{ border:none; } .social:focuBiên môi giớissvg{ border:1pxsolidvar(--color-black); border-radius:8px; } .social:hoversvg{ fill:var(--color-blue-700); } .social:activesvg{ border:1pxsolidtransparent; fill:var(--color-blue-900); } .storesaimg{ border:1pxsolidtransparent; } .storesa:focus{ border:1pxsolidtransparent; } .storesa:focusimg{ border:1pxsolidvar(--color-black); border-radius:8px; background:#F3F4F7; } .storesa:hoverimg{ background:#F3F4F7; } .footer_container{ padding-top:80px; padding-bottom:50px; } .footer_containera{ text-decoration:none; } .footer_containerul{ list-style:none; } .footer_container-item{ line-height:var(--lh-font-sub); } .footer_container-itemspan{ width:212px; } .footer_term{ background-color:#efeeee; padding-top:32px; padding-bottom:32px; } .footer_term__legal{ color:#6c6d6d; } .footer_termimg{ margin-right:8px; max-height:32px; } .footer_termul{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; list-style:none; } .footer_container-accordion{ padding:16px12px; font-size:var(--font-btn-small); background-color:var(--color-bg-01); } .footer.accordion-button:focus{ border:none; outline:0; box-shadow:none; } .footer.accordion-button:not(.collapsed){ background:var(--color-secondary-50); box-shadow:none; } .footer-access{ position:fixed; bottom:0; z-index:11; background:var(--color-white); gap:32px; border-radius:16px16px0px0px; box-shadow:0px2px10px0pxrgba(0,0,0,0.10); padding-bottom:50px; } @media(max-width:767px){ .footer_container{ padding-top:56px; padding-bottom:24px; } .footer_term{ padding-top:32px; padding-bottom:150px; } .footer_container-item{ padding-left:12px; padding-right:12px; } .footer.collapse.accordion-collapse{ background:var(--color-white); } } Ayúdanosamejorar Ayúdanosamejorar ¿Cómocalificaríaslanuevaexperienciaweb? Enviar ¡Graciasporayudarnosamejorartuexperiencia! Haocurridounerrorynofueposibleenviartucalificación.Intentamástarde. Intentardenuevo /*REFERENCE:nikitahl.com/star-rating-with-css*/ .star-rating{ display:flex; flex-direction:row-reverse; justify-content:center; } .star-ratingi{ font-size:32px; } .radio-input{ position:fixed; opacity:0; pointer-events:none; } .radio-label{ cursor:pointer; font-size:0; color:rgba(0,0,0,0.2); transition:color0.1sease-in-out; } .radio-label:before{ font-family:'afp-icons'; content:"\e94a"; display:inline-block; font-size:32px; } .radio-input:checked~.radio-label:before, .radio-label:hover:before, .radio-label:hover~.radio-label:before{ content:"\e946"; } .radio-input:checked~.radio-label{ color:var(--color-azul-500); } .radio-label:hover, .radio-label:hover~.radio-label{ color:var(--color-azul-700); } .radio-input:checked+.radio-label:hover, .radio-input:checked+.radio-label:hover~.radio-label, .radio-input:checked~.radio-label:hover, .radio-input:checked~.radio-label:hover~.radio-label, .radio-label:hover~.radio-input:checked~.radio-label{ color:var(--color-azul-700); } #service-rating-deploy-btn,#form-service-rating{ z-index:1051; } #service-rating-deploy-btn{ transform:rotate(-90deg); right:-72px; top:50%; } @media(min-width:769px){ #service-rating-deploy-btn{ transform:none; bottom:0; right:initial; top:initial; left:5%; } #form-service-rating{ left:5%; } } #form-service-rating{ width:100%; transition:bottom125ms; box-shadow:0px2px10px0px#A; } #form-service-rating.modal-header{ padding:16px24px; } #form-service-rating.modal-headerbutton{ right:24px; font-size:var(--font-h3); line-height:0; padding:0; border:0; background:transparent; } .slide-in{ bottom:0; } .slide-out{ bottom:-600px; } #service-rating-loading,#service-rating-success,#service-rating-fail{ width:100%; height:346px; } #service-rating-loadingi,#service-rating-successi,#service-rating-faili{ font-size:32px; } #service-rating-loadingh6,#service-rating-successh6,#service-rating-failh6{ width:257px; } #service-rating-loadingimg{ display:block; margin:auto; } .textarea{ transition:opacity250msease-in; } .textarea--hidden{ opacity:0; height:0; visibility:hidden; } .textarea--show{ opacity:1; visibility:visible; } @media(min-width:769px){ #form-service-rating,#service-rating-loading,#service-rating-success,#service-rating-fail{ width:423px; } .slide-in{ bottom:15px; } } (()=>{ functionState(initialValue,option){ this.observers=option.observers||[]; if(option.initialRender){ this.set(initialValue); }else{ this.state=initialValue; } } State.prototype.set=functionset(newState){ this.state=newState; //Notifyobservers this.observers.forEach(observer=>observer(this.state)); } State.prototype.get=functionget(){ returnthis.state; } State.prototype.addObserver=functionaddObserver(observer){ this.observers.push(observer); } functionaddRadioClickListener(){ consttextAreisibility=document.getElementById('textarea-visibility'); radioButtons.forEach(radioButton=>{ radioButton.addEventListener("click",()=>{ submitButton.disabled=false; textAreisibility.classList.remove('textarea--hidden'); textAreisibility.classList.add('textarea--show'); }); }) } functionaddFormSubmitListener(){ form.addEventListener("submit",(e)=>{ e.preventDefault(); sendForm(); }); } functionaddDeployButtonClickListener(){ constbutton=document.getElementById('service-rating-deploy-btn'); button.addEventListener("click",()=>{ formVisibilityState.set(FORM_VISIBILITY_STATES.SHOW); }); } functionaddModalCloseBtnClickListener(){ constbutton=document.getElementById('service-rating-close-btn'); button.addEventListener("click",()=>{ if(formContentState.get().content==FORM_CONTENT_STATES.SUCCESS){ formVisibilityState.set(FORM_VISIBILITY_STATES.OFF); return; } formVisibilityState.set(FORM_VISIBILITY_STATES.HIDDEN); }); } functionaddRetryBtnClickListener(){ constbutton=document.getElementById('service-rating-retry-btn'); button.addEventListener("click",()=>{ formContentState.set(FORM_CONTENT_STATES.INPUT); }); } functionaddEscEventListener(){ returndocument.addEventListener("keyup",(e)=>{ if(e.key=="Escape"&&formVisibilityState.get()==FORM_VISIBILITY_STATES.SHOW){ formVisibilityState.set(FORM_VISIBILITY_STATES.HIDDEN); } }) } asyncfunctionsendForm(){ formContentState.set(FORM_CONTENT_STATES.LOADING); try{ constformData=newFormData(form); constrating=formData.get("star-input"); constcomment=formData.get("comment"); constmodyoForm=awaitmodyoFormPromise; constresult=awaitmodyoForm.send(rating,comment); formContentState.set(FORM_CONTENT_STATES.SUCCESS); }catch(e){ formContentState.set(FORM_CONTENT_STATES.ERROR); } } asyncfunctiongenerateNewEmailByTime(){ letnow=newDate() now=now.getMilliseconds(); return`anonimo-${now}@afpcapital.cl`; } functionsearchModyoForm(){ returnnewPromise((resolve)=>{ constinterval=setInterval(()=>{ constform=document.getElementById("modyo-efb-6fff-4d47-9089-07d6db2095da") .getElementsByTName("form")[0]; if(form){ clearInterval(interval); buildModyoFormHandler(form) .then((form)=>{ resolve(form); }); } },500); }) } functionsearchModyoFormH1(){ returnnewPromise((resolve)=>{ constinterval=setInterval(()=>{ consth1=document.getElementById("modyo-efb-6fff-4d47-9089-07d6db2095da") .querySelector("h1"); if(h1){ clearInterval(interval); resolve(h1); } },500); }) } asyncfunctionremoveElement(getAsyncElementCallback){ constelement=awaitgetAsyncElementCallback(); element.remove(); } asyncfunctionbuildModyoFormHandler(form){ asyncfunctionsendForm(rating,comment){ populateRemainingFields(rating,comment); consturl=form.action; constformData=newFormData(form); //POSTREQUESTVIAFETCHTOSENDFORMDATA constresponse=awaitfetch(url,{ method:"POST", mode:'no-cors', body:formData }); returnresponse; } functionpopulateRemainingFields(rating,comment){ radioButtons.forEach(radioButton=>radioButton.checked=false); radioButtons[rating-1].checked=true; textArea.value=comment; } constname=form[1]; constsurname=form[2]; constemail=form[3]; constemailConfirmation=form[4]; constradioButtons=[form[5],form[6],form[7],form[8],form[9]]; consttextArea=form[10]; constcurrentPeUrlField=form[11]; name.value="Anonimo"; surname.value="Anonimo"; email.value=awaitgenerateNewEmailByTime(); currentPeUrlField.value=window.location.href; return{ send:sendForm, fields:{ radioButtons, textArea } }; } functionblockScroll(){ constbody=document.getElementsByTName("body")[0]; body.style.overflow="hidden"; body.style.paddingRight=0; } functioninjectModalBackdrop(){ constbackdropElement=document.createElement("div"); backdropElement.className="modal-backdropfadeshow"; backdropElement.id="form-service-rating-backdrop"; backdropElement.addEventListener("click",()=>{ formVisibilityState.set(FORM_VISIBILITY_STATES.HIDDEN); }); constbody=document.getElementsByTName("body")[0]; body.appendChild(backdropElement); } functionremoveBlockScroll(){ constbody=document.getElementsByTName("body")[0]; body.style={}; } functionremoveModalBackdrop(){ constbackdrop=document.getElementById("form-service-rating-backdrop"); backdrop.remove(); } functionBackdropHandler(formVisibility,maxMobileViewPortSize){ functiondeactivate(){ if(!active)return; active=false; if(window.innerWidth>maxMobileViewPortSize)return; removeBlockScroll(); removeModalBackdrop(); } functionactivate(force){ if(active&&!force)return; active=true; if(window.innerWidth>maxMobileViewPortSize)return; blockScroll(); injectModalBackdrop(); } functiontoggle(){ if(active){ deactivate(); }else{ activate(); } } letactive=formVisibility==FORM_VISIBILITY_STATES.HIDDEN; if(active){ activate(true); } return{ toggle, activate, deactivate }; } functioninjectModyoFormScript(){ varscript=document.createElement("script"); script.src="maner.afpcapital.cl/realms/publico/widgets/modyo_form.js?form=efb-6fff-4d47-9089-07d6db2095da&site=e46ad73f-ae5f-4793-9fed-dc912f3f66bf"; script.async=true; varentry=document.getElementsByTName("script")[0]; entry.parentNode.insertBefore(script,entry); } asyncfunctiongetModyoForm(){ injectModyoFormScript(); returnawaitsearchModyoForm(); } functionshowFormSlideOut(){ constaside=document.getElementById("form-service-rating"); constdeployButton=document.getElementById('service-rating-deploy-btn'); aside.classList.remove('slide-in'); aside.classList.add('slide-out'); deployButton.classList.remove('d-none'); } functionshowFormSlideIn(){ constaside=document.getElementById("form-service-rating"); constdeployButton=document.getElementById('service-rating-deploy-btn'); aside.classList.remove('slide-out'); aside.classList.add('slide-in'); deployButton.classList.add('d-none'); } functionshowFormOffState(){ constaside=document.getElementById('form-service-rating'); constdeployButton=document.getElementById('service-rating-deploy-btn'); aside.classList.add('d-none'); deployButton.classList.add('d-none'); } functionshowFormInputState(){ constsuccessElement=document.getElementById("service-rating-success"); constloadingElement=document.getElementById("service-rating-loading"); consterrorElement=document.getElementById("service-rating-fail"); successElement.classList.add('d-none'); loadingElement.classList.add('d-none'); errorElement.classList.add('d-none'); form.classList.remove('d-none'); } functionshowFormSuccessState(){ constsuccessElement=document.getElementById("service-rating-success"); constloadingElement=document.getElementById("service-rating-loading"); consterrorElement=document.getElementById("service-rating-fail"); form.classList.add('d-none'); loadingElement.classList.add('d-none'); errorElement.classList.add('d-none'); successElement.className="d-flexflex-columnjustify-content-centeralign-items-center"; } functionshowFormLoadingState(){ constsuccessElement=document.getElementById("service-rating-success"); constloadingElement=document.getElementById("service-rating-loading"); consterrorElement=document.getElementById("service-rating-fail"); form.classList.add('d-none'); errorElement.classList.add('d-none'); successElement.classList.add('d-none'); loadingElement.className="d-flexflex-columnjustify-content-center" } functionshowFormErrorState(){ constsuccessElement=document.getElementById("service-rating-success"); constloadingElement=document.getElementById("service-rating-loading"); consterrorElement=document.getElementById("service-rating-fail"); form.classList.add('d-none'); successElement.classList.add('d-none'); loadingElement.classList.add('d-none'); errorElement.className="d-flexflex-columnjustify-content-centeralign-items-center"; } functioncloseModalAfterDelay(){ setTimeout(()=>{ formVisibilityState.set(FORM_VISIBILITY_STATES.OFF); },5000); } functionrenderFormContent(state){ constailableFormContentStates=Object.values(FORM_CONTENT_STATES); if(!ailableFormContentStates.includes(state)){ thrownewError("Invalidstate,mustbeinform{visibility:FORM_VISIBILITY_STATES,content:FORM_CONTENT_STATES}"); } if(state==FORM_CONTENT_STATES.LOADING){ showFormLoadingState(); } if(state==FORM_CONTENT_STATES.ERROR){ showFormErrorState(); } if(state==FORM_CONTENT_STATES.SUCCESS){ showFormSuccessState(); closeModalAfterDelay(); } if(state==FORM_CONTENT_STATES.INPUT){ showFormInputState(); } } functionrenderFormVisibility(state){ constailableFormVisibilityStates=Object.values(FORM_VISIBILITY_STATES); if(!ailableFormVisibilityStates.includes(state)){ thrownewError("Invalidstate,statemustbeFORM_VISIBILITY_STATESproperty"); } if(state==FORM_VISIBILITY_STATES.OFF){ showFormOffState(); backdropHandler.deactivate(); } elseif(state==FORM_VISIBILITY_STATES.HIDDEN){ showFormSlideOut(); backdropHandler.toggle(); } elseif(state==FORM_VISIBILITY_STATES.SHOW){ showFormSlideIn(); backdropHandler.toggle(); } } constFORM_CONTENT_STATES={ LOADING:Symbol('loading'), ERROR:Symbol('error'), SUCCESS:Symbol('success'), INPUT:Symbol('input'), }; constFORM_VISIBILITY_STATES={ HIDDEN:Symbol('hidden'), SHOW:Symbol('show'), OFF:Symbol('off') } constform=document.getElementById("form-service-rating") .getElementsByTName("form")[0]; constformContentState=newState( FORM_CONTENT_STATES.INPUT, { initialRender:true, observers:[renderFormContent] } ); constinitialVisibilityState=FORM_VISIBILITY_STATES.HIDDEN; constbackdropHandler=BackdropHandler(initialVisibilityState,768); constformVisibilityState=newState( initialVisibilityState, { initialRender:true, observers:[renderFormVisibility] } ); constradioButtons=[form[4],form[3],form[2],form[1],form[0]]; constsubmitButton=form[6]; constmodyoFormPromise=getModyoForm(); addRadioClickListener(); addFormSubmitListener(); addDeployButtonClickListener(); addModalCloseBtnClickListener(); addRetryBtnClickListener(); addEscEventListener(); removeElement(searchModyoFormH1); })();