(function(){"use strict";page.using={types:["HierarchicalCatalogRecordTree"],texts:["dirty_message"]};page.onLoad=function(){var a=this.url,r=a.getUid(),t=a.get("headerGroupName",r.infoAreaId),d=a.get("headerName","HierarchicalCatalog"),i,n;i=new u8.Base.Widgets.Header($el("header"),{parent:this,infoAreaId:r.infoAreaId,headerName:d,headerGroupName:t,uid:r});n=new u8.Crm.Widgets.HierarchicalCatalogRecordTree($el("tree"),{parent:this,link:r,infoAreaId:a.get("linkInfoAreaId"),fieldId:a.get("fieldId")||a.get("childCatalog"),companyRelated:a.getBoolean("companyRelated",false),expandAll:a.getBoolean("expandAll"),numberOfColumns:a.getInt("columnCount",undefined),onSave:e});i.commandDelegates=[n]};page.confirmRequired=function(e){var a=$widget("tree");if(!a||!a.isModified()){return false}if(e){e.add($t("TXT_dirty_message_0"))}return true};function e(e,a){page.proceed(a)}})();