Skip to Content

JavaScript File

URL: https://www.diligent.com/-/media/Base-Themes/SearchTheme/Scripts/optimized-min.js?t=20210806T111240Z
HTTP Status: 200 OK
MIME Type: application/x-javascript
Last Modified: Fri, 06 Aug 2021 11:12:40 GMT
Download Time: Less than a second
Cookies: agcdn_geoinfo={"country_code"
Size: 80 KB
HTTP Headers:  19 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
  
OK Issues: No issues found

1XA.component.locationService=function(){"use strict";var u={}

2,f,e,o,n=!1,t=[],i=[],r;return f=function(u,f){var o;(t.push(f),i.push(u),n)||(n=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){for(o=0;o<i.length;o++)i[o]([t.coords.latitude,t.coords.longitude]);n=!1}

3,function(){r("Error while detecting user location");n=!1}

4,e()):(r("Your browser does not support geolocation"),n=!1))}

5,e=function(){var n=o();return n.indexOf("Chrome")!==-1?{enableHighAccuracy:!0,timeout:1e4,maximumAge:0}

6:{timeout:1e3,maximumAge:Infinity}

7}

8,o=function(){var i=navigator.userAgent,t,n=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+)/g.exec(i)||[],"IE "+(t[1]||"")):n[1]==="Chrome"&&(t=i.match(/\b(OPR|Edge)\/(\d+)/),t!=null)?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],(t=i.match(/version\/(\d+)/i))!=null&&n.splice(1,1,t[1]),n.join(" "))}

9,r=function(n){for(var i=0;i<t.length;i++)typeof t[i]=="function"&&t[i](n)}

10,u.detectLocation=function(n,t){f(n,t)}

11,u}

12(jQuery,document);XA.register("locationService",XA.component.locationService);XA.component.search={}

13;XA.component.search.facet={}

14;XA.component.search.results={}

15;XA.component.search.vent=_.extend({}

16,Backbone.Events);XA.component.search.ajax=function(){var n;return n=Backbone.Model.extend({getData:function(n){var t=this.getPrameterByName("sc_site"),i=typeof n.excludeSiteName!="undefined"&&n.excludeSiteName?n.url:XA.component.search.url.createSiteUrl(n.url,t);Backbone.ajax({dataType:"json",url:i,success:function(t){n.callback(t)}

17}

18)}

19,getPrameterByName:function(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}

20}

21),new n}

22(jQuery,document);XA.component.search.baseModel=function(){return Backbone.Model.extend({sortFacetArray:function(n,t){switch(n){case"SortByCount":t.sort(function(n,t){return t.Count-n.Count}

23)}

24}

25}

26)}

27(jQuery,document);XA.register("searchBaseModel",XA.component.search.baseModel);XA.component.search.baseView=function(n){return Backbone.View.extend({initialize:function(){}

28,translateSignatures:function(n,t){var i,r;if(t=t.toLowerCase(),typeof n=="undefined"||n===null)return[t];if(i=n.split(","),n==="")return[t];for(r=0;r<i.length;r++)i[r]=i[r]+"_"+t;return i}

29,updateSignaturesHash:function(n,t,i){for(var r=0;r<n.length;r++)i[n[r]]=t;return i}

30,manageVisibilityByData:function(t,i){_.size(i)===0||typeof i.Values!="undefined"&&i.Values.length==0?n(t).hide():n(t).show()}

31}

32)}

33(jQuery,document);XA.register("searchBaseView",XA.component.search.baseView);XA.component.search.box=function(n){var i={}

34,u=[],f=[],r,t,e,o=Backbone.Model.extend({defaults:{searchEngine:"",typeahead:"",dataProperties:{}

35,searchQuery:"",loadingInProgress:!1,sig:[]}

36,initSearchEngine:function(){var i=this,r=XA.component.search.ajax.getPrameterByName("sc_site"),u=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("name"),queryTokenizer:Bloodhound.tokenizers.whitespace,limit:i.get("dataProperties").p,remote:{url:t.createSiteUrl(i.createSuggestionsUrl(n.extend({l:i.getLanguage()}

37,i.get("dataProperties")),i.get("searchQuery")),r),filter:function(n){return _.map(n.Results,function(n){return{html:n.Html}

38}

39)}

40,replace:function(){var u=i.get("valueProvider"),f=u(),e=n.extend({l:i.getLanguage()}

...

</html>