FR.tempPanel=new Ext.Panel({html:""});FR.feedback=function(text,type){if(!text){return false}if(Ext.util.Format.stripTags(text).length>100){new Ext.Window({title:type=="error"?"Problems":null,modal:true,width:350,height:160,layout:"fit",items:{bodyStyle:"padding:5px",html:text,autoScroll:true}}).show();return false}var delay=Math.max(text.length/15,2);if(!FR.UI.feedbackCt){FR.UI.feedbackCt=Ext.DomHelper.append(document.body,{style:"position:absolute;width:300px;z-index:9999999;"},true)}var m=Ext.DomHelper.append(FR.UI.feedbackCt,{html:'<div class="fr-feedback-msg '+(type||"")+'">'+text+"</div>"},true);FR.UI.feedbackCt.alignTo(Ext.getBody(),"b-b");m.on("click",function(e,node){node.remove()});m.slideIn("b").pause(delay).ghost("b",{remove:true})};FR.regionNorth={region:"north",height:0,items:FR.tempPanel};if(Ext.isSmallScreen){FR.regionNorth={region:"north",bodyStyle:"border-bottom:1px solid var(--hBCol)",height:1,tbar:[{iconCls:"fa-sidebar",style:"margin:5px;",toggleHandler:function(){Ext.getCmp("FR-cPanel-Tree").toggleCollapse()},enableToggle:true,pressed:true}],items:FR.tempPanel}}FR.initLayout=function(){FR.viewPort=new Ext.Viewport({id:"viewport",layout:"border",items:[FR.regionNorth,FR.tree.panel,{region:"center",layout:"card",id:"cardDisplayArea",activeItem:0,items:[{xtype:"tabpanel",id:"gridTabPanel",activeItem:0,enableTabStripOverflow:true,items:[FR.grid.panel],listeners:{tabchange:function(tp,tab){if(tab.form){FR.thisFormPanel=tab}}}},{id:"appTab",html:"",layout:"fit"}]}]})};