PageSourceSearch

https://www.grantthornton.ie/dist/v2/js-v2/modules/GTContact.c6b04116f41eaac2819db83cfc4681f3.js

js grantthornton.ie collected 2026-09-24 21:37:51 UTC 5,729 bytes, 1 lines download raw bytes

1const GTContact=function(){const n=this,e=document.querySelector("#fileUpload .FormFileUpload__Input"),i=(e&&(e.addEventListener("change",e=>{e.preventDefault(),n.fileChangeAndDrop(this.files)}),e.addEventListener("dragover",e=>{e.preventDefault()}),e.addEventListener("dragenter",e=>{e.preventDefault()}),e.addEventListener("drop",e=>{e.preventDefault(),e.stopPropagation(),n.fileChangeAndDrop(e.dataTransfer.files),this.files=e.dataTransfer.files})),this.fileChangeAndDrop=function(e){const t=document.querySelector("#fileUpload .FormFileUpload__List");t&&(t.innerHTML="");for(const o of e)void 0!==o&&n.pushFileToArray(o)},this.pushFileToArray=function(e){let t=e.name;e=t;let o='<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAABc0lEQVQ4jc3TT0sVURgH4EcKd9YiSwsiSYJAECLcuBMiRAiiVLQiIyX6Bq76CEkRLtRWQguLcudecHUhUTQR3VTQDdQW0h9Ly1qcVxiCO3p14wvDDIdznjm/M+9w2OvIAdbW4TI28K3cxcfRFs+VGMHfuH6grxzsBKbxG7UYD2gUN1HAL9TvBavGDP7gId4E9jgzpyXGbu2GncRsYA/wOhYO/DfvUYw352GnMCfF7M1gT3Adq2hCO7YwiYpSWA3eBXYPrwJ7Kp3ZJpbjRZtYwpk8bD6DvQhsCJ0Z4L7ULh+k9ikZczEi3MZYYM/QHeOL6AnsPc6VwmBC+gAdGA5sEHdixwvownd8xPk8rCEDHMO21G89gc3jBr7iEy7kYXA3wKvS71iMWNtS61zDOj7jYh50NO5bca+K2K3ox4p0FC/xE1ekc9y1TseCghR5p1rwBWto3AuUrX4pdlHqvSkp8houlYvtVDfexm6LeI6z+8UOZ/0DwZRpt1eyc7oAAAAASUVORK5CYII=">';if(t.length){var c=t.match(/\..{1,5}$/gi);
1const n=c||"",i=(25<=t.replace(c,"").length&&(t=t.substring(0,25)+".."+n),n[0].toLowerCase()),a=(0<=i.indexOf(".pdf")?o='<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QA/wD/AP+gvaeTAAABBUlEQVQ4ja3Tuy6EQRgG4GfXoVIrVILeBRBR+BONRBQS4hDXodneDaiRSMQl6Bz67YSgp9hGIkKyCvMzZv2HFW/yZeabb+ad95z5Z/QSPIpLGOgYP4VzusQ36JbEi9YrEPURaug1gr1VyylxWYd9gTDOE3J/kKUk53EA7HZ43jAIQ4qiLawqfeyzONNudG/xRfyo81hEBl2fBqaYQVnaIc8K5LYTNonPOIa79jHLjoYw14VUY4OVjEd8lEMhf59UFaLaALbod/GjO8HuBDVCrGhf6N/mN2I2nUc4RIXFRvPBrU915+j7IvEaKWKUlR92jhu4oWptEmsYaRC0TOOcVdDfX/4ANRPU9USB4cEAAAAAElFTkSuQmCC">':0<=i.indexOf(".doc")||0<=i.indexOf(".xls")?o='<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QA/wD/AP+gvaeTAAAAnElEQVQ4jWNgoBJgROOrMDAwBDAwMDBjUfuEgYFhKbEG32ZgYPiPBzcQaxAuxQ5IhnVg08hErA1IoBybYeQYhNUwFiI1vmdgYNiDxFeCGlaBSwOxAdoAVQsH5HoNA+Dz2n8c4uhpj6BBnUQ7h4BBOAOSVIOGuNfQAaFMi4xvIWtE968yAwNDJAMDAw8BC78wMDAsZ2BguEuJq7ECAAklKSMnXojkAAAAAElFTkSuQmCC">':(0<=i.indexOf(".jp")||0<=i.indexOf(".png")||0<=i.indexOf(".gif"))&&(o='<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QA/wD/AP+gvaeTAAAA/0lEQVQ4jd3TTyvEURTG8c9oSPzWZmtlPbYUQsLGeAf+lFI2SnkBsrOQjaVXIDtSGnkDZpayEztNNrNTWMyZ+qk7YrLh2dzOuff5dp57u/xbFWItY7NLxjHqxSiGUcHJDyGruEC93aig9g3jEh5wGHUtvHo6GDKMJvrreMIWevMbKVAW495gPHr9WMMRBrGH17yp6LMynOMd+wFcxg7mI1I5FSEPGggILKKJN1zhFmM4jf3tr0AjeMZCQPowofUic2hgCtcpWB70GOM3te7kDEOYxkucuccMqhG/kAI1EpDZHKStu4BXUUqBStiNGJM4wIbOusRKu/i1L9Kl9y/oAw0OMeRN588pAAAAAElFTkSuQmCC">'),t='<div class="file-item" title="{1}">{0}</div>'.replace("{0}",o+" "+t).replace("{1}",e),document.querySelector("#fileUpload .FormFileUpload__List"));a&&(a.innerHTML+=t)}},this.contactForm=function(){const e=document.querySelector("#EnquiryType"),t=(e&&e.addEventListener("change",function(){n.updateFileUploadVisibility(this)}),document.querySelector("#EmailContact")),o=(t&&t.addEventListener("click",()=>{updateContactDetails(!1)}),document.querySelector("#PhoneContact")),c=(o&&o.addEventListener("click",()=>{updateContactDetails(!0)}),document.querySelector(".contact-form .message"));c&&c.classList.contains("success-msg")&&triggerGACall()},this.updateFileUploadVisibility=function(e){const t=e.options[e.selectedIndex];e=parseInt(t.getAttribute("data-showupload"),10);const o=document.querySelector("#fileUpload"),c=document.querySelector("#uploadTitle"),n=document.querySelector("#IsFileRequired"),i=document.querySelector("#EnquiryEmail");if(1===e){if(o&&(o.style.display="block"),c){c.textContent=t.getAttribute("data-uploadtitle");const a=document.createElement("span");a.className="alert",a.textContent="*",c.appendChild(a)}n&&(n.value=!0)}else o&&(o.style.display="none"),n&&(n.value=!1);i&&(i.value=t.getAttribute("data-email"))},this.methodOfContact=function(e){const t=e.querySelector('input[name="PreferredContactType"]');t&&t.addEventListener("click",function(){var e=this.getAttribute("data-placeholder");const t=this.closest("form");if(t){const o=t.querySelector("#ContactDetails");o&&o.setAttribute("placeholder",e)}})},this.privacyPolicyAccepted=function(e){const t=e.querySelector("#IsPrivacyPolicyAcceptedOn"),o=e.querySelector('[type="submit"]');t&&t.addEventListener("click",function(){this.checked?o&&o.removeAttribute("disabled"):o&&null===o.getAttribute("disabled")&&o.setAttribute("disabled","disabled")})},"gtContactFormSelectorReload");this.contactSelector=function(e){const t=e.querySelector(".form-select select");t&&t.addEventListener("change",e=>{try{sessionStorage.setItem(i,"1")}catch(e){}const t=e.currentTarget.closest("form");t&&t.submit()});try{if("1"===sessionStorage.getItem(i)){sessionStorage.removeItem(i);{var o=e;const c=o.querySelector(".form-select select");if(c)c.focus({preventScroll:!0});else{const n=o.closest(".form-col")?.querySelector("h1.main-heading");n&&(n.hasAttribute("tabindex")||n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0}))}}}}catch(e){}}};GT.domContentLoadedFncList.push(()=>{var e;GT.Contact=new GTContact,"undefined"==typeof isV1GT&&(GT.Contact.contactForm(),(e=document.querySelector("#EnquiryType"))&&GT.Contact.updateFileUploadVisibility(e),(e=document.querySelector(".event-register-form"))&&(GT.Contact.methodOfContact(e),GT.Contact.privacyPolicyAccepted(e)),(e=document.querySelector(".contact-selector"))&&GT.Contact.contactSelector(e))});

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.