PageSourceSearch

https://burlingtonbooks.es/wp-content/plugins/acf-bsp/lib/modules/…/script.js?ver=1789712605

js burlingtonbooks.es collected 2026-10-01 23:50:43 UTC 26,210 bytes, 1 lines download raw bytes

1(()=>{var e,t,n={},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return n[e](o,o.exports,r),o.exports}r.m=n,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"dist/scripts/chunks/"+{197:"f7bdd197b195b2af",641:"e349577c1af4f208"}[e]+".js?t=1789712593592",r.miniCssF=e=>{},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="acf-wpi:",r.l=(n,a,o,i)=>{if(e[n])e[n].push(a);else{var s,d;if(void 0!==o)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var u=c[l];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+o){s=u;break}}s||(d=!0,(s=document.createElement("script")).charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+o),s.src=n),e[n]=[a];var v=(t,a)=>{s.onerror=s.onload=null,clearTimeout(m);var r=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(a)),t)return t(a)},m=setTimeout(v.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=v.bind(null,s.onerror),s.onload=v.bind(null,s.onload),d&&document.head.appendChild(s)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/wp-content/plugins/acf-bsp/",(()=>{var e={804:0};r.f.j=(t,n)=>{var a=r.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var o=new Promise((n,r)=>a=e[t]=[n,r]);n.push(a[2]=o);var i=r.p+r.u(t),s=new Error;r.l(i,n=>{if(r.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,a[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var a,o,[i,s,d]=n,c=0;if(i.some(t=>0!==e[t])){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(d)d(r)}for(t&&t(n);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkacf_wpi=self.webpackChunkacf_wpi||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.e(197).then(r.bind(r,5197)),i=r.e(641).then(r.bind(r,1641));!function(){"use strict";var e=window.vtestConfig||{},t=e.nonce||"",n=e.apiBase||"",a=e.docsApiBase||"",r=e.textFieldsApiBase||"",o=e.snFileApiBase||"",i=e.resultsApiBase||"",s=e.candidatesApiBase||"",d=e.disableApiBase||"",c=e.enableApiBase||"",l=null,u=null,v=null,m=null,f=null,b=null,h=null,g=null,p=null,y=null,E=null,w=null,x=null,_=null,k=null,L=null,S=null,A=null,I=null,B=null,q=null,T=null,C=null,j=null,P=null,D=null,O=null,M=null,N=null,H=null,F=null,R=null,U=null,V=null,W=null,z=null,X=[],J={},G="",K=!1;function Q(e){var t=document.createElement("div");return t.appendChild(document.createTextNode(String(e))),t.innerHTML}function Y(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Z(e,t){return window.vtestI18n&&window.vtestI18n[e]?window.vtestI18n[e]:t}
1function $(e,t){y.removeAttribute("hidden"),y.classList.toggle("vtest-overlay--success",e),y.classList.toggle("vtest-overlay--error",!e),E.textContent=t}function ee(){y.setAttribute("hidden",""),y.classList.remove("vtest-overlay--success","vtest-overlay--error")}function te(e){if(D){var t=D.querySelector(".vtest-loading-overlay__message");t&&e&&(t.textContent=e),D.removeAttribute("hidden")}}function ne(){D&&D.setAttribute("hidden","")}function ae(e,n,a){var r={method:n,headers:{"Content-Type":"application/json","X-WP-Nonce":t},credentials:"same-origin"};return a&&(r.body=JSON.stringify(a)),fetch(e,r).then(function(e){return e.json().then(function(t){return t._httpStatus=e.status,t})})}function re(e,n,a){fetch(e,{method:"POST",headers:{"X-WP-Nonce":t},credentials:"same-origin",body:n}).then(function(e){return e.json().then(function(t){return t._httpStatus=e.status,t})}).then(function(e){e.success?a(e):$(!1,e.message||Z("genericError","Se ha producido un error."))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))})}function oe(e){for(var t={},n=e.elements,a=0;a<n.length;a++){var r=n[a];r.name&&!r.disabled&&(t[r.name]=r.value)}return t}function ie(e){for(var t=!0,n=e.querySelectorAll("[required]"),a=0;a<n.length;a++){var r=n[a];r.classList.remove("vtest-field--error"),r.value.trim()||(r.classList.add("vtest-field--error"),t=!1)}return t}function se(e,t){e.querySelectorAll(".vtest-field-error-msg").forEach(function(e){return e.remove()}),e.querySelectorAll(".vtest-field--error").forEach(function(e){return e.classList.remove("vtest-field--error")}),Object.keys(t).forEach(function(n){var a=e.querySelector('[name="'+n+'"]');if(a){a.classList.add("vtest-field--error");var r=document.createElement("span");r.className="vtest-field-error-msg",r.textContent=t[n],a.insertAdjacentElement("afterend",r)}})}function de(e,t){e.reset(),e.querySelectorAll(".vtest-field-error-msg").forEach(function(e){return e.remove()}),e.querySelectorAll(".vtest-field--error").forEach(function(e){return e.classList.remove("vtest-field--error")}),t.setAttribute("hidden","")}function ce(e){var t=e?e.filter(function(e){return!e.exam_archived}):[];if(0!==t.length){var n=t.map(function(e){var t,n=e.row_index;return'<tr data-row-index="'+n+'"><td>'+Q(e.exam_title)+"</td><td>"+Q(e.exam_date)+"</td><td>"+Q(e.exam_start_time)+"</td><td>"+Q(e.exam_end_time)+"</td><td>"+Q(String(e.exam_total_seats))+"</td><td>"+Q(String(e.exam_free_seats))+"</td><td>"+(t=e.exam_session_data,(void 0!==window.DOMPurify?window.DOMPurify.sanitize(t||"",{USE_PROFILES:{html:!0}}):(t||"").replace(/<script[\s\S]*?<\/script>/gi,""))+'</td><td class="vtest-exams-table__actions"><div class="vtest-exams-table__actions-row"><button type="button" class="vtest-btn vtest-btn--edit" data-row-index="')+n+'" data-exam="'+Y(JSON.stringify(e))+'">'+Q(Z("edit","Editar"))+'</button><button type="button" class="vtest-btn vtest-btn--archive" data-row-index="'+n+'">'+Q(Z("archive","Archivar"))+'</button></div><div class="vtest-exams-table__actions-row"><button type="button" class="vtest-btn vtest-btn--show-candidates" data-row-index="'+n+'">'+Q(Z("showCandidates","Mostrar candidatos"))+'</button></div><div class="vtest-exams-table__actions-row"><button type="button" class="vtest-btn vtest-btn--download-files" data-row-index="'+n+'">'+Q(Z("downloadFiles","Descargar archivos candidatos"))+"</button></div></td></tr>"}),a=l.querySelector("#vtest-exams-table");if(a){var r=document.createElement("tbody");r.id="vtest-exams-tbody",r.innerHTML=n.join(""),a.querySelector("tbody").replaceWith(r)}else l.innerHTML='<table class="vtest-exams-table" id="vtest-exams-table"><thead><tr><th>'+Q(Z("colTitle","Título"))+"</th><th>"+Q(Z("colDate","Fecha"))+"</th><th>"+Q(Z("colStart","Inicio"))+"</th><th>"+Q(Z("colEnd","Fin"))+"</th><th>"+Q(Z("colTotal","Plazas totales"))+"</th><th>"+Q(Z("colFree","Plazas libres"))+"</th><th>"+Q(Z("colSession","Datos de la sesión"))+"</th><th>"+Q(Z("colActions","Acciones"))+'</th></tr></thead><tbody id="vtest-exams-tbody">'+n.join("")+"</tbody></table>";_e()}else l.innerHTML='<p id="vtest-empty-state" class="vtest-exams-empty">'+Q(Z("noExams","Todavía no se han añadido sesiones de examen."))+"</p>"}function le(e){if(void 0!==window.tinymce){var t=window.tinymce.get(e);t&&t.remove()}}function ue(e){e.preventDefault();var t=e.currentTarget,n=t.getAttribute("data-field"),a=t.getAttribute("data-target"),o=t.querySelector("textarea"),i=t.querySelector('input[name="value"]'),s="";void 0!==window.tinymce&&o&&window.tinymce.get(o.id)?s=window.tinymce.get(o.id).getContent():o?s=o.value:i&&(s=i.value),ae(r,"PUT",{field:n,value:s}).then(function(e){if(e.success){var n=document.getElementById(a);n&&(n.innerHTML=e.html||'<p class="vtest-wysiwyg-empty">'+Q(Z("noIncomes","Sin contenido."))+"</p>");var r=t.closest(".vtest-form-wrap");if(r){var o=r.querySelector("textarea");o&&le(o.id),r.setAttribute("hidden","")}$(!0,e.message)}else $(!1,e.message||Z("genericError","Se ha producido un error."))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))})}function ve(e){e.preventDefault(),ie(I)&&re(o,new FormData(I),function(e){I.reset(),fe(e.file),$(!0,e.message)})}function me(){window.confirm(Z("specialNeedsFileConfirmDelete","¿Estás seguro de que quieres eliminar este archivo? Esta acción no se puede deshacer."))&&ae(o,"DELET
1E").then(function(e){e.success?(fe(null),$(!0,e.message)):$(!1,e.message||Z("genericError","Se ha producido un error."))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))})}function fe(e){if(A)if(e&&e.url){A.innerHTML='<a href="'+Y(e.url)+'" class="vtest-docs-list__link" target="_blank" rel="noopener noreferrer"><span class="vtest-docs-list__icon" aria-hidden="true">&#128196;</span>'+Q(e.filename||e.url)+'</a><button type="button" class="vtest-btn vtest-btn--delete" id="vtest-special-needs-file-delete">'+Q(Z("del","Eliminar"))+"</button>";var t=A.querySelector("#vtest-special-needs-file-delete");t&&t.addEventListener("click",me)}else A.innerHTML='<p class="vtest-docs-empty">'+Q(Z("noSpecialNeedsFile","No hay documento adjunto."))+"</p>"}function be(e){if(q)if(e&&0!==e.length){var t=e.map(function(e){return'<li class="vtest-docs-list__item"><a href="'+Y(e.url)+'" class="vtest-docs-list__link" target="_blank" rel="noopener noreferrer"><span class="vtest-docs-list__icon" aria-hidden="true">&#128196;</span>'+Q(e.title||e.filename)+'</a><button type="button" class="vtest-btn vtest-btn--delete vtest-result-delete-btn" data-row-index="'+Y(String(e.row_index))+'">'+Q(Z("del","Eliminar"))+"</button></li>"});q.innerHTML='<ul class="vtest-docs-list">'+t.join("")+"</ul>"}else q.innerHTML='<p class="vtest-docs-empty">'+Q(Z("noExamResults","Todavía no hay resultados disponibles."))+"</p>"}function he(e){e.preventDefault(),ie(j)&&re(i,new FormData(j),function(e){de(j,C),be(e.results),$(!0,e.message)})}function ge(e){if(x)if(e&&0!==e.length){var t=e.map(function(e){return'<li class="vtest-docs-list__item"><a href="'+Y(e.url)+'" class="vtest-docs-list__link" target="_blank" rel="noopener noreferrer"><span class="vtest-docs-list__icon" aria-hidden="true">&#128196;</span>'+Q(e.title||e.filename)+'</a><button type="button" class="vtest-btn vtest-btn--delete vtest-docs-delete-btn" data-row-index="'+Y(String(e.row_index))+'">'+Q(Z("del","Eliminar"))+"</button></li>"});x.innerHTML='<ul class="vtest-docs-list">'+t.join("")+"</ul>"}else x.innerHTML='<p class="vtest-docs-empty">'+Q(Z("noDocs","Todavía no hay documentos disponibles."))+"</p>"}function pe(e){e.preventDefault(),ie(L)&&re(a,new FormData(L),function(e){de(L,k),ge(e.docs),$(!0,e.message)})}function ye(e){e.preventDefault(),ie(m)&&ae(n,"POST",oe(m)).then(function(e){e.success?(de(m,v),ce(e.exams),$(!0,e.message)):(e.data&&e.data.errors&&se(m,e.data.errors),$(!1,e.message||Z("genericError","Se ha producido un error.")))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))})}function Ee(e){if(e.preventDefault(),ie(h)){var t=parseInt(p.value,10),a=oe(h);delete a.row_index,ae(n+"/"+t,"PUT",a).then(function(e){e.success?(de(h,b),ce(e.exams),u&&(u.disabled=!1),$(!0,e.message)):(e.data&&e.data.errors&&se(h,e.data.errors),$(!1,e.message||Z("genericError","Se ha producido un error.")))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))})}}function we(e){p.value=e.row_index;var t={exam_title:"vtest-edit-exam-title",exam_date:"vtest-edit-exam-date",exam_start_time:"vtest-edit-exam-start-time",exam_end_time:"vtest-edit-exam-end-time",exam_total_seats:"vtest-edit-exam-total-seats",exam_free_seats:"vtest-edit-exam-free-seats",exam_session_data:"vtest-edit-exam-session-data"};Object.keys(t).forEach(function(n){var a=h.querySelector("#"+t[n]);if(a)if("exam_date"===n&&e[n]){var r=e[n].split("-");3===r.length&&4===r[2].length?a.value=r[2]+"-"+r[1]+"-"+r[0].padStart(2,"0"):a.value=""}else a.value=void 0!==e[n]?function(e){if(!e)return e;var t=document.createElement("div");return t.innerHTML=String(e),void 0!==t.innerText?t.innerText:t.textContent}(e[n]):""})}function xe(e){var t=document.getElementById("vtest-exams-tbody");t&&t.querySelectorAll("button").forEach(function(t){t.disabled=e}),u&&(u.disabled=e)}function _e(){var e=document.getElementById("vtest-exams-tbody");e&&e.addEventListener("click",function(e){var a,r,o=e.target;if(o.classList.contains("vtest-btn--edit")){var i=JSON.parse(o.getAttribute("data-exam")||"{}");v.setAttribute("hidden",""),we(i),b.removeAttribute("hidden"),b.scrollIntoView({behavior:"smooth",block:"start"}),xe(!0)}o.classList.contains("vtest-btn--archive")&&(a=parseInt(o.getAttribute("data-row-index"),10),r=o,K||(K=!0,r&&(r.disabled=!0,r.setAttribute("aria-disabled","true")),te(Z("archiving","Archivando…")),ae(n+"/"+a+"/archive","POST").then(function(e){ne(),K=!1,e.success?(ce(e.exams),$(!0,e.message)):(r&&(r.disabled=!1,r.removeAttribute("aria-disabled")),$(!1,e.message||Z("genericError","Se ha producido un error.")))}).catch(function(){ne(),K=!1,r&&(r.disabled=!1,r.removeAttribute("aria-disabled")),$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))}))),o.classList.contains("vtest-btn--show-candidates")&&function(e){if(!O)return;X=[],J={},G="",H&&(H.textContent="");F&&(F.checked=!1,F.disabled=!0);M.innerHTML='<p class="vtest-candidates-loading">'+Q(Z("loadingCandidates","Cargando candidatos…"))+"</p>",Ae(),O.removeAttribute("hidden"),document.body.style.overflow="hidden";var n=s+"/"+e+"/candidates/list",a=-1===n.indexOf("?")?"?":"&";fetch(n+a+"_wpnonce="+encodeURIComponent(t),{method:"GET",headers:{"X-WP-Nonce":t},credentials:"same-origin"}).then(function(e){return e.json()}).then(function(e){if(!e.success)return M.innerHTML='<p class="vtest-candidates-error">'+Q(e.message||Z("genericError","Error al cargar candidatos."))+"</p>",void Ae();X=e.candidates||[],J=e.columns||{},e.exam&&(G=e.exam.title||"",H&&(H.textContent=" — "+G)),Le(X)}).catch(function(){M.innerHTML='<p class="vtest-candidates-error">'+Q(Z("networkError","Error de red."))+"</p>",Ae()})}(parseInt(o.getAttribute("data-row-index"),10)),o.classList.contains("vtest-btn--download-files")&&function(e,n){te(Z("downloading","Descargando…"));var a=-1===e.indexOf("?")?"?":"&",r=e+a+"_wpnonce="+encodeURIComponent(t);fetch(r,{method:"GET",headers:{"X-WP-Nonce":t},credentials:"same-origin"}).then(function(e){if(!e.ok){if(-1!==(e.headers.get("content-type")||"").indexOf("application/json"))return e.json().then(function(e){throw new Error(e&&e.message?e.message:"Error al descargar el archivo.")}
1);throw new Error("Error "+e.status+" al descargar el archivo.")}var t=e.headers.get("Content-Disposition"),a=n;if(t){var r=t.match(/filename="([^"]+)"/);r&&(a=r[1])}return e.blob().then(function(e){return{blob:e,filename:a}})}).then(function(e){var t=e.blob,n=e.filename,a=URL.createObjectURL(t),r=document.createElement("a");r.href=a,r.download=n,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(a)}).catch(function(e){$(!1,e.message||"Error al descargar el archivo.")}).then(function(){return ne()})}(s+"/"+parseInt(o.getAttribute("data-row-index"),10)+"/candidates/files","archivos_candidatos.zip")})}function ke(){O&&(O.setAttribute("hidden",""),document.body.style.overflow="",F&&(F.checked=!1))}function Le(e){if(0===e.length)return M.innerHTML='<p class="vtest-candidates-empty">'+Q(Z("noCandidates","No hay candidatos registrados para este examen."))+"</p>",F&&(F.disabled=!0),void Ae();var t=e.map(function(e){return'<tr class="vtest-candidate-row'+(e.disabled?" vtest-candidate-row--disabled":"")+'" data-submission-id="'+Y(String(e.submission_id))+'"><td><input type="checkbox" class="vtest-candidate-checkbox'+(e.disabled?" vtest-candidate-checkbox--disabled":"")+'" value="'+Y(String(e.submission_id))+'"></td><td>'+Q(e.name||"")+"</td><td>"+Q(e.apellidos||"")+"</td><td>"+Q(e.dni||"")+'</td><td><button type="button" class="vtest-btn vtest-btn--info vtest-candidate-info-btn" data-submission-id="'+Y(String(e.submission_id))+'" aria-label="'+Y(Z("candidateInfo","Ver datos del candidato"))+'">&#9432;</button></td>'+(e.disabled?'<td><div class="vtest-candidate-status"><span class="vtest-candidate-badge vtest-candidate-badge--disabled">'+Q(Z("disabled","Deshabilitado"))+'</span><button type="button" class="vtest-btn vtest-btn--enable vtest-candidate-enable-btn" data-submission-id="'+Y(String(e.submission_id))+'">'+Q(Z("enable","Habilitar"))+"</button></div></td>":"<td></td>")+"</tr>"});M.innerHTML='<table class="vtest-candidates-table"><thead><tr><th></th><th>
1'+Q(Z("candidateName","Nombre"))+"</th><th>"+Q(Z("candidateSurname","Apellidos"))+"</th><th>"+Q(Z("candidateDni","DNI"))+"</th><th></th><th>"+Q(Z("candidateStatus","Estado"))+"</th></tr></thead><tbody>"+t.join("")+"</tbody></table>",M.querySelectorAll(".vtest-candidate-info-btn").forEach(function(e){e.addEventListener("click",function(){var t=parseInt(e.getAttribute("data-submission-id"),10),n=X.find(function(e){return e.submission_id===t});n&&function(e){if(!V)return;var t=J,n=Object.keys(t).concat(["__fecha_envio"]),a=Object.assign({},t,{__fecha_envio:Z("submissionDate","Fecha de envío")}),r=n.map(function(t){return'<tr><th scope="row">'+Q(a[t]||t)+"</th><td>"+Q(e[t]||"—")+"</td></tr>"});W.innerHTML='<table class="vtest-candidate-detail-table"><tbody>'+r.join("")+"</tbody></table>",V.removeAttribute("hidden")}(n)})}),M.querySelectorAll(".vtest-candidate-enable-btn").forEach(function(e){e.addEventListener("click",function(){Be("enable",[parseInt(e.getAttribute("data-submission-id"),10)])})}),F&&(F.disabled=!1),Se(),Ae()}function Se(){if(F){var e=M.querySelectorAll(".vtest-candidate-checkbox"),t=M.querySelectorAll(".vtest-candidate-checkbox:checked");F.checked=e.length>0&&t.length===e.length,F.indeterminate=t.length>0&&t.length<e.length}}function Ae(){var e=X.filter(function(e){return!e.disabled}).length,t=M?M.querySelectorAll(".vtest-candidate-checkbox:not(.vtest-candidate-checkbox--disabled):checked").length:0,n=M?M.querySelectorAll(".vtest-candidate-checkbox--disabled:checked").length:0;document.querySelectorAll(".vtest-candidates-excel-btn").forEach(function(t){t.disabled=0===e}),R&&(R.disabled=0===t),U&&(U.disabled=0===n)}function Ie(){V&&V.setAttribute("hidden","")}function Be(e,t){var n="enable"===e,a=n?c:d,r=n?1===t.length?Z("enableCandidateConfirm","¿Seguro que quieres habilitar de nuevo a este candidato?"):Z("enableCandidatesConfirm","¿Seguro que quieres habilitar de nuevo a los candidatos seleccionados?"):Z("disableCandidatesConfirm","¿Seguro que quieres deshabilitar a los candidatos seleccionados? Sus datos se conservarán en la base de datos.");window.confirm(r)&&ae(a,"POST",{submission_ids:t}).then(function(e){e.success?(X.forEach(function(e){-1!==t.indexOf(e.submission_id)&&(e.disabled=!n)}),Le(X),F&&(F.checked=!1),$(!0,e.message)):$(!1,e.message||Z("genericError","Se ha producido un error."))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))})}function qe(){var e=M.querySelectorAll(".vtest-candidate-checkbox:not(.vtest-candidate-checkbox--disabled):checked");0!==e.length?Be("disable",Array.from(e).map(function(e){return parseInt(e.value,10)})):$(!1,Z("noCandidatesSelected","Por favor, selecciona al menos un candidato."))}function Te(){var e=M.querySelectorAll(".vtest-candidate-checkbox--disabled:checked");0!==e.length?Be("enable",Array.from(e).map(function(e){return parseInt(e.value,10)})):$(!1,Z("noDisabledSelected","Por favor, selecciona al menos un candidato deshabilitado."))}function Ce(){var e=X.filter(function(e){return!e.disabled});if(0!==e.length){var t=J,n=Object.keys(t),a=[[Z("submissionDate","Fecha de envío")].concat(n.map(function(e){return t[e]})).join(";")];e.forEach(function(e){var t=[e.__fecha_envio||""].concat(n.map(function(t){return(e[t]||"").toString().replace(/;/g,",")}));a.push(t.join(";"))});var r="\ufeff"+a.join("\r\n"),o=new Blob([r],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(o),s=document.createElement("a"),d=G?G.replace(/[^\w\s\-áéíóúüñÁÉÍÓÚÜÑ]/g,"").trim().replace(/\s+/g,"_"):"examen";s.href=i,s.download="candidatos_"+d+".csv",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)}}document.addEventListener("DOMContentLoaded",function(){l=document.getElementById("vtest-exams-table-wrap"),u=document.getElementById("vtest-add-btn"),v=document.getElementById("vtest-add-form-wrap"),m=document.getElementById("vtest-add-form"),f=document.getElementById("vtest-add-cancel"),b=document.getElementById("vtest-edit-form-wrap"),h=document.getElementById("vtest-edit-form"),g=document.getElementById("vtest-edit-cancel"),p=document.getElementById("vtest-edit-row-index"),y=document.getElementById("vtest-overlay"),E=document.getElementById("vtest-overlay-message"),w=document.getElementById("vtest-overlay-close"),D=document.getElementById("vtest-loading-overlay"),O=document.getElementById("vtest-candidates-modal"),M=document.getElementById("vtest-candidates-modal-body"),N=document.getElementById("vtest-candidates-modal-close"),H=document.getElementById("vtest-candidates-modal-exam-name"),F=document.getElementById("vtest-candidates-select-all"),R=document.getElementById("vtest-candidates-disable-btn"),U=document.getElementById("vtest-candidates-enable-btn"),V=document.getElementById("vtest-candidate-detail-modal"),W=document.getElementById("vtest-candidate-detail-body"),z=document.getElementById("vtest-candidate-detail-close"),x=document.getElementById("vtest-docs-list-wrap"),_=document.getElementById("vtest-doc-add-btn"),k=document.getElementById("vtest-doc-add-form-wrap"),L=document.getElementById("vtest-doc-add-form"),S=document.getElementById("vtest-doc-add-cancel"),A=document.getElementById("vtest-special-needs-file-wrap"),I=document.getElementById("vtest-special-needs-file-form"),B=document.getElementById("vtest-special-needs-file-delete"),q=document.getElementById("vtest-results-list-wrap"),T=document.getElementById("vtest-result-a
1dd-btn"),C=document.getElementById("vtest-result-add-form-wrap"),j=document.getElementById("vtest-result-add-form"),P=document.getElementById("vtest-result-add-cancel"),u&&u.addEventListener("click",function(){b.setAttribute("hidden",""),v.removeAttribute("hidden"),v.scrollIntoView({behavior:"smooth",block:"start"})}),f&&f.addEventListener("click",function(){return de(m,v)}),g&&g.addEventListener("click",function(){de(h,b),xe(!1)}),m&&m.addEventListener("submit",ye),h&&h.addEventListener("submit",Ee),w&&w.addEventListener("click",ee),_e(),_&&_.addEventListener("click",function(){k.removeAttribute("hidden"),k.scrollIntoView({behavior:"smooth",block:"start"})}),S&&S.addEventListener("click",function(){return de(L,k)}),L&&L.addEventListener("submit",pe),x&&x.addEventListener("click",function(e){var t;e.target.classList.contains("vtest-docs-delete-btn")&&(t=parseInt(e.target.getAttribute("data-row-index"),10),window.confirm(Z("docConfirmDelete","¿Estás seguro de que quieres eliminar este documento? Esta acción no se puede deshacer."))&&ae(a+"/"+t,"DELETE").then(function(e){e.success?(ge(e.docs),$(!0,e.message)):$(!1,e.message||Z("genericError","Se ha producido un error."))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))}))}),document.querySelectorAll(".vtest-wysiwyg-edit-btn").forEach(function(e){e.addEventListener("click",function(){var t,n=e.getAttribute("data-field"),a="vtest-"+n.replace(/_/g,"-")+"-editor-wrap",r=document.getElementById(a);r&&(r.removeAttribute("hidden"),r.scrollIntoView({behavior:"smooth",block:"start"}),t="vtest-"+n.replace(/_/g,"-")+"-textarea",void 0!==window.tinymce&&(window.tinymce.get(t)||window.tinymce.init({selector:"#"+t,menubar:!1,statusbar:!1,plugins:"lists link",toolbar:"bold italic underline | bullist numlist | link | removeformat",body_class:"vtest-tinymce-body"})))})}),document.querySelectorAll(".vtest-wysiwyg-cancel-btn").forEach(function(e){e.addEventListener("click",function(){var t=e.closest(".vtest-form-wrap");if(t){var n=t.querySelector("textarea");n&&le(n.id),t.setAttribute("hidden","")}})}),document.querySelectorAll(".vtest-form[data-field]").forEach(function(e){e.addEventListener("submit",ue)}),I&&I.addEventListener("submit",ve),B&&B.addEventListener("click",me),T&&T.addEventListener("click",function(){C.removeAttribute("hidden"),C.scrollIntoView({behavior:"smooth",block:"start"})}),P&&P.addEventListener("click",function(){return de(j,C)}),j&&j.addEventListener("submit",he),q&&q.addEventListener("click",function(e){var t;e.target.classList.contains("vtest-result-delete-btn")&&(t=parseInt(e.target.getAttribute("data-row-index"),10),window.confirm(Z("examResultConfirmDelete","¿Estás seguro de que quieres eliminar este resultado? Esta acción no se puede deshacer."))&&ae(i+"/"+t,"DELETE").then(function(e){e.success?(be(e.results),$(!0,e.message)):$(!1,e.message||Z("genericError","Se ha producido un error."))}).catch(function(){$(!1,Z("networkError","Error de red. Por favor, inténtalo de nuevo."))}))}),N&&N.addEventListener("click",ke),O&&O.querySelector(".vtest-modal__backdrop").addEventListener("click",ke),M&&M.addEventListener("change",function(e){e.target.classList.contains("vtest-candidate-checkbox")&&(Se(),Ae())}),F&&F.addEventListener("change",function(){var e=F.checked;M.querySelectorAll(".vtest-candidate-checkbox").forEach(function(t){t.checked=e}),Ae()}),R&&R.addEventListener("click",qe),U&&U.addEventListener("click",Te),document.querySelectorAll(".vtest-candidates-excel-btn").forEach(function(e){e.addEventListener("click",Ce)}),z&&z.addEventListener("click",Ie),V&&V.querySelector(".vtest-modal__backdrop").addEventListener("click",Ie)})}(),document.addEventListener("DOMContentLoaded",function(){document.getElementsByClassName("bsp_vtest_client_exams_list_wrapper").length&&o.then(function(e){return e.default()}),document.getElementsByClassName("form-matricula").length&&i.then(function(e){return e.default()})})})();

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.