(function(){"use strict";$.extend(page,{using:{texts:["button_text","net_tablerights_text"]},"Command.back":function(){history.back()},onLoad:function(){u8.request("SchemaChannel.GetInfoAreaRights",{},function(a,r){$("#grid").widget("Grid",{parent:page,header:{headerName:"Special",headerGroupName:"InfoAreaRights",isDefault:true},showPaging:true,model:{selectionMode:"single",pageSize:20,columns:[{label:$t("TXT_net_tablerights_text_1"),width:100,align:"center",dataKey:"infoAreaId"},{label:$t("TXT_net_tablerights_text_2"),dataKey:"infoAreaLabel"},{label:$t("TXT_net_tablerights_text_3"),width:100,align:"center",dataKey:"rights",cellFormatter:e.curry(u8.Crm.Schema.RightsMask.View),sortConverter:t.curry(u8.Crm.Schema.RightsMask.View)},{label:$t("TXT_net_tablerights_text_4"),width:100,align:"center",dataKey:"rights",cellFormatter:e.curry(u8.Crm.Schema.RightsMask.Update),sortConverter:t.curry(u8.Crm.Schema.RightsMask.Update)},{label:$t("TXT_net_tablerights_text_5"),width:100,align:"center",dataKey:"rights",cellFormatter:e.curry(u8.Crm.Schema.RightsMask.New),sortConverter:t.curry(u8.Crm.Schema.RightsMask.New)},{label:$t("TXT_net_tablerights_text_6"),width:100,align:"center",dataKey:"rights",cellFormatter:e.curry(u8.Crm.Schema.RightsMask.Delete),sortConverter:t.curry(u8.Crm.Schema.RightsMask.Delete)}],data:r.response&&r.response.infoAreaRights||[]}})});function e(e,t,a){var r=!!(a.cellData&e);var s=a.elCell;s.className=r?"u8-schema-allowed":"u8-schema-denied";return r?u8.session.localeSettings.booleanTrue:u8.session.localeSettings.booleanFalse}function t(e,t,a){return(t&e?u8.session.localeSettings.booleanTrue:u8.session.localeSettings.booleanFalse)+a.infoAreaLabel}}})})();