var _globals=new Globals,_userInfoCookie=_globals.getCookie("_loginInfo"),_userInfo=JSON.parse(_userInfoCookie);_userInfo=_globals.apiGetDataList("user/"+_userInfo.id);var reservesData=_globals.apiPostDataList("reserves/reserves_data"),_data=_globals.apiPostDataList("customers/data",{purposes:"purposes",cvdvs:"cvdvs",staffs:"staffs",carcompartments:"carcompartments"}),tabPanelItems=[{ID:1,tabname:_globals.language.reservation_calendar,class:"Calenda"},{ID:2,tabname:_globals.language.list,class:"TableList"}],groupItems=[{id:1,name:"CVDV"},{id:2,name:_globals.language.purpose},{id:3,name:_globals.language.carcompartment}],hoursList=[{id:1,name:"07:00"},{id:2,name:"07:30"},{id:3,name:"08:00"},{id:4,name:"08:30"},{id:5,name:"09:00"},{id:6,name:"09:30"},{id:7,name:"10:00"},{id:8,name:"10:30"},{id:9,name:"11:00"},{id:10,name:"11:30"},{id:11,name:"12:00"},{id:12,name:"12:30"},{id:13,name:"13:00"},{id:14,name:"13:30"},{id:15,name:"14:00"},{id:16,name:"14:30"},{id:17,name:"15:00"},{id:18,name:"15:30"},{id:19,name:"16:00"},{id:20,name:"16:30"},{id:21,name:"17:00"},{id:22,name:"17:30"},{id:23,name:"18:00"},{id:24,name:"18:30"},{id:25,name:"19:00"}];function hasRole(a){let e=$("#roleList").attr("data-role").split(","),n=e.find((function(e){return e===a}));return null!=n&&"undefined"!==n&&0!=n.length}