PageSourceSearch

https://www.holocaustandhumanity.org/wp/wp-content/plugins/faz-coo…/frontend/js/faz-dsar.min.js?ver=1.31.0

js holocaustandhumanity.org collected 2026-09-24 18:08:30 UTC 3,612 bytes, 1 lines download raw bytes

1!function(){function e(e){e&&(e.className="faz-dsar-notice error",e.setAttribute("role","alert"),e.setAttribute("aria-live","assertive"))}function t(e,t){if(e){e.setAttribute("aria-invalid","true");var r=e.id?e.id+"-err":"faz-dsar-err-"+Math.random().toString(36).slice(2,9);e.id&&(r="faz-dsar-err-"+e.id);var a=document.getElementById(r);a&&a.parentNode&&a.parentNode.removeChild(a);var i=document.createElement("span");i.className="faz-field-error",i.id=r,i.textContent=t,e.parentNode&&e.parentNode.insertBefore(i,e.nextSibling);var n=e.getAttribute("aria-describedby"),s=n?n.split(/\s+/).filter(Boolean):[];-1===s.indexOf(r)&&s.push(r),e.setAttribute("aria-describedby",s.join(" "))}}function r(e){if(e){var t=e.querySelector('[aria-invalid="true"]');if(t){try{t.focus({preventScroll:!0})}catch(e){t.focus()}if("function"==typeof t.scrollIntoView)try{t.scrollIntoView({behavior:"smooth",block:"center"})}catch(e){t.scrollIntoView()}}}}function a(a){a.preventDefault();var i=a.currentTarget,n=i.parentElement,s=n?n.querySelector(".faz-dsar-notice"):null,o=window.fazDsarConfig||{},l=o.ajaxUrl||"",d=o.errMsg||"An error occurred. Please try again.",c=o.reqMsg||"Please fill in all required fields.",u=i.querySelector('[name="dsar_name"]'),f=i.querySelector('[name="dsar_email"]'),y=i.querySelector('[name="dsar_type"]'),b=u?u.value.trim():"",v=f?f.value.trim():"",m=y?y.value:"";!function(e){if(e){for(var t=e.querySelectorAll('[aria-invalid="true"]'),r=0;r<t.length;r++){t[r].removeAttribute("aria-invalid");var a=(t[r].getAttribute("aria-describedby")||"").split(/\s+/).filter(function(e){return e&&0!==e.indexOf("faz-dsar-err-")});a.length?t[r].setAttribute("aria-describedby",a.join(" ")):t[r].removeAttribute("aria-describedby")}for(var i=e.querySelectorAll(".faz-field-error"),n=0;n<i.length;n++)i[n].parentNode.removeChild(i[n])}}(i);var p=[],g=o.nameLabel||"Name",h=o.emailLabel||"Email",A=o.typeLabel||"Request type";if(b||(p.push(g),t(u,c)),v||(p.push(h),t(f,c)),m||(p.push(A),t(y,c)),p.length)return s&&(e(s),s.textContent=c+" Missing: "+p.join(", ")+".",s.style.display="block"),void r(i);if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)){var S=o.emailMsg||"Please enter a valid email address.";return t(f,S),s&&(e(s),s.textContent=S,s.style.display="block"),void r(i)}var q=i.querySelector("button");q&&(q.disabled=!0),s&&(s.style.display="none"),fetch(l,{method:"POST",credentials:"same-origin",body:new FormData(i)}).then(function(e){return e.json()}).then(function(t){var r=t&&void 0!==t.data?t.data:null,a="";r&&"object"==typeof r?a=r.message?String(r.message):JSON.stringify(r):"string"==typeof r&&(a=r),t.success?(i.style.display="none",s&&(!function(e){e&&(e.className="faz-dsar-notice success",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"))}(s),s.textContent=a||o.successMsg||"Request sent successfully.")):(s&&(e(s),s.textContent=a||d),q&&(q.disabled=!1)),s&&(s.style.display="block",s.focus())}).catch(function(){s&&(e(s),s.textContent=d,s.style.display="block",s.focus()),q&&(q.disabled=!1)})}function i(e){e._fazDsarAttached||(e._fazDsarAttached=!0,e.addEventListener("submit",a))}for(var n=document.querySelectorAll(".faz-dsar-form"),s=0;s<n.length;s++)i(n[s]);"undefined"!=typeof MutationObserver&&new MutationObserver(function(e){for(var t=0;t<e.length;t++)for(var r=e[t].addedNodes,a=0;a<r.length;a++){var n=r[a];if(1===n.nodeType){n.classList&&n.classList.contains("faz-dsar-form")&&i(n);for(var s=n.querySelectorAll?n.querySelectorAll(".faz-dsar-form"):[],o=0;o<s.length;o++)i(s[o])}}}).observe(document.body||document.documentElement,{childList:!0,subtree:!0})}();

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.