(function(b,a){var c="Telerik.OData.ItemsUrl",e="$callback",d="application/json",f={0:"json",1:"jsonp"}; b.NavigationControlODataSettings=function(h){b.NavigationControlODataSettings.initializeBase(this,[h]); var g=h.ODataSettings; this._path=h.Path; this._odata=true; this._responseType=g.ResponseType; if(!this.get_isEmpty()){this._tree=new b.ODataBinderTree(g.InitialContainerName,g.Entities,g.EntityContainer); }}; b.NavigationControlODataSettings.prototype={get_path:function(){return this._path; },get_responseType:function(){return this._responseType; },get_tree:function(){return this._tree; },get_isEmpty:function(){var g=this._odata; return this._path==""||(g.InitialContainerName==""||g.Entities>0); }}; b.NavigationControlODataSettings.registerClass("Telerik.Web.UI.NavigationControlODataSettings",b.WebServiceSettings); b.ODataBinderTree=function(h,g,i){this._entities=g; this._map=i; this._loaded=false; this._tree=this._buildTree(h); }; b.ODataBinderTree.prototype={get_settingsByDepth:function(g){function h(i,j){if(i==g){return j; }return h(++i,j.child); }return h(0,this._tree); },_buildTree:function(g){var h=!!g?this._getEntitySetByName(g):this._map[0]; return this._buildNode(h,this._findChildCallback); },_findChildCallback:function(g){if(!g){return; }var h=this._getEntitySetByName(g); return this._buildNode(h,this._findChildCallback); },_buildNode:function(j,g){var h=this._getEntityByName(j.Name),i=this,k={name:j.Name,type:j.EntityType,entity:h,child:g.apply(i,[h.NavigationProperty])}; return k; },_getByName:function(g,k){for(var h=0; h