PageSourceSearch

https://almetals.com/ScriptResource.axd?d=o6XggjptZxGENHwo_Pl0IzIb…vbbHsWSeZ_LeDQDyYD449yA1&t=ffffffffbe9e308d

js almetals.com collected 2026-09-26 14:14:07 UTC 3,895 bytes, 78 lines download raw bytes

1(function(c,b){var a="Telerik.OData.ItemsUrl",f="$callback",e="application/json",d={0:"json",1:"jsonp"};
2c.NavigationControlODataSettings=function(h){c.NavigationControlODataSettings.initializeBase(this,[h]);
3var g=h.ODataSettings;
4this._path=h.Path;
5this._odata=true;
6this._responseType=g.ResponseType;
7if(!this.get_isEmpty()){this._tree=new c.ODataBinderTree(g.InitialContainerName,g.Entities,g.EntityContainer);
8}};
9c.NavigationControlODataSettings.prototype={get_path:function(){return this._path;
10},get_responseType:function(){return this._responseType;
11},get_tree:function(){return this._tree;
12},get_isEmpty:function(){var g=this._odata;
13return this._path==""||(g.InitialContainerName==""||g.Entities>0);
14}};
15c.NavigationControlODataSettings.registerClass("Telerik.Web.UI.NavigationControlODataSettings",c.WebServiceSettings);
16c.ODataBinderTree=function(h,i,g){this._entities=i;
17this._map=g;
18this._loaded=false;
19this._tree=this._buildTree(h);
20};
21c.ODataBinderTree.prototype={get_settingsByDepth:function(g){function h(j,i){if(j==g){return i;
22}return h(++j,i.child);
23}return h(0,this._tree);
24},_buildTree:function(h){var g=!!h?this._getEntitySetByName(h):this._map[0];
25return this._buildNode(g,this._findChildCallback);
26},_findChildCallback:function(h){if(!h){return;
27}var g=this._getEntitySetByName(h);
28return this._buildNode(g,this._findChildCallback);
29},_buildNode:function(g,k){var j=this._getEntityByName(g.Name),h=this,i={name:g.Name,type:g.EntityType,entity:j,child:k.apply(h,[j.NavigationProperty])};
30return i;
31},_getByName:function(k,h){for(var j=0;
32j<k.length;
33j++){var g=k[j];
34if(g.Name===h){return g;
35}}},_getEntityByName:function(g){return this._getByName(this._entities,this._getEntitySetByName(g).EntityType);
36},_getEntitySetByName:function(g){return this._getByName(this._map,g);
37}};
38c.NavigationControlODataLoader=function(h,g){c.NavigationControlODataLoader.initializeBase(this,[h]);
39if(g){this._expandCallback=g;
40}else{this._expandCallback=function(){return -1;
41};
42}};
43c.NavigationControlODataLoader.prototype={_createRootUrl:function(h,g){if(h[h.length-1]=="/"){page=h.slice(0,h.length-1);
44}return h+"/"+g;
45},_getDefferedItemsUrl:function(h){var g=h.get_attributes();
46var i=g.getAttribute(a);
47g.removeAttribute(a);
48return i;
49},_appendQueryStringParameters:function(g){return g+"/?$format=json";
50},_getAjaxSettings:function(h){h=this._appendQueryStringParameters(h);
51var g=this.get_webServiceSettings();
52return{url:h,headers:{Accepts:e},dataType:d[g.get_responseType()],jsonp:f};
53},get_expandCallback:function(){return this._expandCallback;
54},loadData:function(k,m){var j=this.get_webServiceSettings(),h,i,g=false,l=j.get_tree();
55if(j.get_isEmpty()){return;
56}if(k.isRootLevel){h=l.get_settingsByDepth(0);
57i=this._getAjaxSettings(this._createRootUrl(j.get_path(),h.name));
58}else{i=this._getAjaxSettings(this._getDefferedItemsUrl(m)),level=m.get_level()+1,h=j.get_tree().get_settingsByDepth(level);
59g=true;
60}this._sendAjaxRequest(i,m,h.entity,this._onWebServiceSuccess);
61if(g){this._raiseEvent("loadingStarted",new Telerik.Web.UI.WebServiceLoaderEventArgs(m));
62}},_sendAjaxRequest:function(h,l,g,k){var i=this,j=b.ajax(h);
63j.fail(function(n){var m={get_message:function(){return n.statusText;
64}};
65i._onWebServiceError(m,l);
66}).done(function(o){var n=[],m=i._sanitize(o);
67b.each(m,function(q,p){n[n.length]={Text:p[g.DataTextField],Value:p[g.DataValueField],ExpandMode:i.get_expandCallback()(g.NavigationProperty),Attributes:(function(){if(g.NavigationProperty&&p[g.NavigationProperty]){return{"Telerik.OData.ItemsUrl":p[g.NavigationProperty].__deferred.uri};
68}else{return{};
69}})()};
70});
71k.apply(i,[n,l]);
72});
73},_sanitize:function(g){var h=g.d.results?g.d.results:g.d;
74if(!(h instanceof Array)){h=b.makeArray(h);
75}return h;
76}};
77c.NavigationControlODataLoader.registerClass("Telerik.Web.UI.NavigationControlODataLoader",c.WebServiceLoader);
78})(Telerik.Web.UI,$telerik.$);

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.