PageSourceSearch

https://www.grantthornton.global/dist/v2/js-v2/modules/GTIBCFinder.ec96c1e15735ad0c98142c301e4e3c42.js

js grantthornton.global collected 2026-10-02 03:28:22 UTC 5,629 bytes, 1 lines download raw bytes

1GT.GTIBCFinder=function(){let c="",r=document.querySelector(".ibc-suggested__section"),t,n=document.getElementById("countriesList"),l=document.getElementById("ibcFinderLatLongEndpoint"),d=document.getElementById("ibc_finder_searchbox"),a=document.querySelector(".ibc-finder__select--container");if(d&&a&&l&&r){c=d.getAttribute("placeholder");{t&&t.destroy(),t=new autoComplete({selector:"#ibc_finder_searchbox",minChars:0,cache:0,menuClass:"ibc-finder__autocomplete-suggestions",source:function(e,t){t(function(t){let e=n.getAttribute("data-value");if(e=JSON.parse(e),!t)return e;if(e&&0<e.length)return e.filter(function(e){return-1<e.value.toLowerCase().indexOf(t.toLowerCase())||-1<e.data.toLowerCase().indexOf(t.toLowerCase())})}(e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")))},renderItem:function(e,t){t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");t=new RegExp("("+t.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+e.value+'">'+e.value.replace(t,"<b>$1</b>")+"</div>"},onSelect:function(e,o,t){a.classList.remove("dropdown-expanded");let n=document.getElementById("countrySelected");n&&n.setAttribute("data-value",o);{var i=o;let e=document.getElementById("ibcFinderEndpoint").getAttribute("data-endpoint"),n=r.offsetHeight,t=new XMLHttpRequest;t.onreadystatechange=function(){if(4==this.readyState){let t=this.response;t&&200==this.status&&(a.classList.remove("dropdown-expanded"),r.style.opacity=0,GT.disableDetectScrollUpOrDown=!0,document.querySelector(".no-ibc__support")||(r.style.height=n+"px",r.style.overflow="hidden"),setTimeout(function(){r.innerHTML=t;let e=document.querySelector(".ibc-glide__container");e?e.querySelectorAll(".glide").forEach(function(e){GT.Glide(e)}):GT.clampText("ibcblock"),dataLayer.push({event:"ibcd",eventAction:"selected_country",eventLabel:i}),setTimeout(function(){r.style.removeProperty("height"),r.style.removeProperty("overflow"),r.style.opacity=1,GT.disableDetectScrollUpOrDown=!1,n=r.offsetHeight,u(),s()},e?800:100)},100))}},t,t.open("GET",e+"/?country="+encodeURIComponent(i),!0),t.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.send()}c=o}}),d&&d.addEventListener("click",function(){d.value="",d.setAttribute("placeholder",c),a.classList.contains("dropdown-expanded")?a.classList.remove("dropdown-expanded"):a.classList.add("dropdown-expanded")}),document.addEventListener("click",function(e){let t=e.target;if(d.value="",d.setAttribute("placeholder",c),!t.closest(".bc-finder__select--container")&&!t.closest(".ibc-finder__select--searchbox")){let e=document.querySelector(".ibc-finder__autocomplete-suggestions");if(e&&(e.style.display="none"),a&&a.classList.remove("dropdown-expanded"),!c){let e=document.getElementById("countrySelected");c=e.getAttribute("data-value")}d.setAttribute("placeholder",c),d.blur()}return!0});let e=document.getElementById("countrySelected");e&&(dataLayer.push({event:"ibcd",eventAction:"selected_country",eventLabel:e.getAttribute("data-value")}),dataLayer.push({event:"ibcd",eventAction:"locationdeteced",eventLabel:"by_maxmind"}),s())}{let e=document.querySelector(".ibc-current__location");e&&e.addEventListener("click",function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition(o,i),this.blur()})}}function s(){document.querySelectorAll(".ibc-contact").forEach(function(e){e.addEventListener("click",function(e){let t=e.target,n=t.closest(".contact-details").querySelector(".ibc-suggested__title"),o=(n=n?n.innerText:"Unknown People",t.closest(".ibc-glide__container").querySelector(".firm .glide__slide--active")||t.closest(".ibc-glide__container").querySelector(".firm .glide__slide"));o=o?o.querySelector(".ibc-suggested__title").innerText:"Unknown Firm",dataLayer.push({event:"ibcd",eventAction:"selected_member_firm",eventLabel:o+" / "+n})})})}function u(){let e=document.getElementById("countrySelected");var t=e.getAttribute("data-value");c=t,d.setAttribute("placeholder",c),d.blur();let n=document.querySelector(".ibc-finder__autocomplete-suggestions");n&&(n.style.display="none")}function o(t){{var o=t.coords.latitude,i=(t=t.coords.longitude,l.getAttribute("data-endpoint"));let n=r.offsetHeight,e=new XMLHttpRequest;e.onreadystatechange=function(){if(4==this.readyState){let t=this.response;t&&200==this.status&&(r.style.opacity=0,GT.disableDetectScrollUpOrDown=!0,document.querySelector(".no-ibc__support")||(r.style.height=n+"px",r.style.overflow="hidden"),setTimeout(function(){r.innerHTML=t,u();let e=document.querySelector(".ibc-glide__container");e?e.querySelectorAll(".glide").forEach(function(e){GT.Glide(e)}):GT.clampText("ibcblock"),setTimeout(function(){r.style.removeProperty("height"),r.style.removeProperty("overflow"),r.style.opacity=1,GT.disableDetectScrollUpOrDown=!1,n=r.offsetHeight;let e=document.getElementById("countrySelected");e&&(d.setAttribute("placeholder",e.getAttribute("data-value")),c=e.getAttribute("data-value"),dataLayer.push({event:"ibcd",eventAction:"selected_country",eventLabel:c}),dataLayer.push({event:"ibcd",eventAction:"locationdeteced",eventLabel:"by_googlemap"}),d.value="",d.blur(),s())},e?800:100)},100))}},e.open("GET",i+"?latitude="+o+"&longitude="+t,!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.send()}}function i(){var e=(e=document.getElementById("cannotAccessErrorMessage").getAttribute("data-value"))||"Access device location is required to use this feature.";r.innerHTML='<div class="no-ibc__support">'+e+"</div>"}},"undefined"==typeof isV1GT&&GT.domContentLoadedFncList.push(function(){new GT.GTIBCFinder});

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.