/* * Isomorphic SmartClient * Version SNAPSHOT_v10.1d_2015-04-30 (2015-04-30) * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved. * "SmartClient" is a trademark of Isomorphic Software, Inc. * * licensing@smartclient.com * * http://smartclient.com/license */ if(window.isc&&window.isc.module_Core&&!window.isc.module_Containers){isc.module_Containers=1;isc._moduleStart=isc._Containers_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'Containers load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;if(window.isc&&isc.version!="SNAPSHOT_v10.1d_2015-04-30/LGPL Development Only"){isc.logWarn("SmartClient module version mismatch detected: This application is loading the core module from SmartClient version '"+isc.version+"' and additional modules from 'SNAPSHOT_v10.1d_2015-04-30/LGPL Development Only'. Mixing resources from different SmartClient packages is not supported and may lead to unpredictable behavior. If you are deploying resources from a single package you may need to clear your browser cache, or restart your browser."+(isc.Browser.isSGWT?" SmartGWT developers may also need to clear the gwt-unitCache and run a GWT Compile.":""))} isc.ClassFactory.defineClass("ImgTab","StretchImgButton");isc.A=isc.ImgTab.getPrototype();isc.A.capSize=2;isc.A.skinImgDir="images/Tab/";isc.A.labelSkinImgDir="images/";isc.A.baseStyle="tab";isc.A.src="[SKIN]tab.gif";isc.A.showRollOver=false;isc.A.showFocused=true;isc.A.actionType=isc.Button.RADIO;isc.A.mozOutlineOffset="0px";isc.A=isc.ImgTab.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.setPane=function isc_ImgTab_setPane(_1){this.parentElement.parentElement.updateTab(this,_1)},isc.A.selectTab=function isc_ImgTab_selectTab(){this.parentElement.parentElement.selectTab(this)},isc.A.initWidget=function isc_ImgTab_initWidget(_1,_2,_3,_4,_5,_6){if(this.vertical&&this.titleStyle)this.titleStyle="v"+this.titleStyle;return this.invokeSuper(isc.ImgTab,this.$oc,_1,_2,_3,_4,_5,_6)});isc.B._maxIndex=isc.C+3;isc.ClassFactory.defineClass("TabBar","Toolbar");isc.A=isc.TabBar.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.breadth=21;isc.A.buttonConstructor=isc.ImgTab;isc.A.tabWithinToolbar=false;isc.A.closeTabKeys=[{altKey:true,keyName:"Delete"},{ctrlKey:true,keyName:"W"}];isc.A.$1673={ctrlKey:true,keyName:"W"};isc.A.skinImgDir="images/Tab/";isc.A.moreTabCount=5;isc.A.baseLineThickness=1;isc.A.baseLineSrc="[SKIN]baseline.gif";isc.A.baseLineCapSize=2;isc.A.tabBarPosition=isc.Canvas.TOP;isc.A.selectedTab=0;isc.A.defaultTabSize=80;isc.B.push(isc.A.keyPress=function isc_TabBar_keyPress(){var _1=this.ns.EH,_2=_1.lastEvent,_3=_2.keyName;if((this.vertical&&_3=="Arrow_Up")||(!this.vertical&&_3=="Arrow_Left")) {this.$988(false)}else if((this.vertical&&_3=="Arrow_Down")||(!this.vertical&&_3=="Arrow_Right")) {this.$988(true)} var _4=false;var _5=this.closeTabKeys;if(isc.isAn.Array(_5)){for(var i=0,_7=_5.length;i<_7;++i){if(_1.$160v(_5[i],_2)){_4=true;break}}} if(_4){var _8=this.getButton(this.getSelectedTab()),_9=this.parentElement;if(_8!=null&&_9!=null){var _10=_9.canCloseTab(_8);if(_10){_9.closeClick(_8);return false}}} if(_1.$160v(this.$1673,_2)){return false}},isc.A.$988=function isc_TabBar__selectNextTab(_1,_2){if(_2==null)_2=this.getSelectedTab();var _3=_1?1:-1;var _4=_2;do{if(_4<0){_4=this.buttons.length}else if(_4>=this.buttons.length){_4=-1} _4+=_3}while(_4!=_2&&(this.getMember(_4)==null||this.getMember(_4).isDisabled()));if(_4!=_2&&this.getMember(_4)){this.selectTab(_4);if(this.getSelectedTab()==_4){var _5=this.getMember(_4);_5.focus()}}});isc.B._maxIndex=isc.C+2;isc.A=isc.TabBar.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.initWidget=function isc_TabBar_initWidget(){for(var i=0;i=0&&this.getMembers(this.$79t).isVisible&&this.getMembers(this.$79t).isVisible())},isc.A.$42k=function isc_TabBar__tabIconClickHandler(){return this.parentElement.tabIconClick(this)},isc.A.tabIconClick=function isc_TabBar_tabIconClick(_1){var _2=this.parentElement;return _2.$52a(_1)},isc.A.$1286=function isc_TabBar__clearSgwtTabReferences(){var _1=this.getMembers();for(var i=0;i<_1.length;i++){if(window.SmartGWT.isTab(_1[i].__ref)){_1[i].__ref=null;delete _1[i].__module}}},isc.A.setButtons=function isc_TabBar_setButtons(_1){this.Super("setButtons",arguments);if(isc.Browser.isSGWT)this.$1286();if(this.showMoreTab&&this.buttons.length-1>this.moreTabCount){for(var i=this.moreTabCount-1;ithis.moreTabCount){for(var i=this.moreTabCount-1;i<_3.length;i++){_3[i].hide()} this.$79t=_3.length-1;_3[this.$79t].show()}} if(this._baseLine!=null){this._baseLine.bringToFront();var _5=this.getButton(this.getSelectedTab());if(_5)_5.bringToFront()}},isc.A.removeTabs=function isc_TabBar_removeTabs(_1,_2){if(_1==null)return;if(!isc.isAn.Array(_1))_1=[_1];var _3=this.map("getButton",_1);this.removeButtons(_1);if(this.showMoreTab&&this.moreTab&&this.$79t>0){var _4=this.getMembers();var _5=this.moreTabCount-1;if(_4.length-1<=this.moreTabCount){_5++} for(var i=0;i<_4.length-1;i++){if(i<_5)_4[i].show();else _4[i].hide()} if(_4.length-1<=this.moreTabCount){this.$79t=null;_4[_4.length-1].hide()}else{this.$79t=_4.length-1}} if(!_2){for(var i=0;i<_3.length;i++){if(_3[i]!=null)_3[i].destroy()}}},isc.A.reorderTab=function isc_TabBar_reorderTab(_1,_2){var _3=this.getButton(_1);if(_3){this.removeTabs(_1,true);this.addTabs(_1,_2)}},isc.A.draw=function isc_TabBar_draw(_1,_2,_3,_4){arguments.$cw=this;this.fixLayout();this.invokeSuper(isc.TabBar,"draw",_1,_2,_3,_4);this.bringToFront();var _5=this.getButton(this.selectedTab);if(_5){_5.setSelected(true)}},isc.A.makeBaseLine=function isc_TabBar_makeBaseLine(){var _1=this.tabBarPosition,_2,_3,_4;if(_1===isc.Canvas.TOP){_2="BL";_3="100%";_4=this.baseLineThickness}else if(_1===isc.Canvas.RIGHT){_2="TL";_3=this.baseLineThickness;_4="100%"}else if(_1===isc.Canvas.BOTTOM){_2="TL";_3="100%";_4=this.baseLineThickness}else{_2="TR";_3=this.baseLineThickness;_4="100%"} this._baseLine=this.addAutoChild("baseLine",{width:_3,height:_4,vertical:(_1===isc.Canvas.LEFT||_1===isc.Canvas.RIGHT),skinImgDir:this.skinImgDir,src:this.baseLineSrc,capSize:this.baseLineCapSize,imageType:isc.Img.STRETCH,overflow:"hidden",addAsChild:true,snapTo:_2},isc.StretchImg);this.ignoreMemberZIndex(this._baseline)},isc.A.fixLayout=function isc_TabBar_fixLayout(){var _1=this._baseLine;if(_1==null)return;var _2=this.tabBarPosition;if(_2===isc.Canvas.TOP){_1.setWidth(this.getScrollWidth(true))}else if(_2===isc.Canvas.RIGHT){_1.setHeight(this.getScrollHeight(true))}else if(_2===isc.Canvas.BOTTOM){_1.setWidth(this.getScrollWidth(true))}else{_1.setHeight(this.getScrollHeight(true))}},isc.A.layoutChildren=function isc_TabBar_layoutChildren(_1,_2,_3,_4){this.invokeSuper(isc.TabBar,"layoutChildren",_1,_2,_3,_4);this.fixLayout()},isc.A.buttonSelected=function isc_TabBar_buttonSelected(_1){this.ignoreMemberZIndex(_1);_1.bringToFront();this.lastSelectedButton=_1;this.$6b(this.lastSelectedButton)},isc.A.buttonDeselected=function isc_TabBar_buttonDeselected(_1){_1.sendToBack();this.stopIgnoringMemberZIndex(_1)},isc.A.getSelectedTab=function isc_TabBar_getSelectedTab(){return this.getButtonNumber(this.getSelectedButton())},isc.A.selectTab=function isc_TabBar_selectTab(_1){this.selectedTab=_1;this.selectButton(_1)},isc.A.setupButtonFocusProperties=function isc_TabBar_setupButtonFocusProperties(){this.$6b(this.getButton(this.selectedTab));return this.Super("setupButtonFocusProperties",arguments)},isc.A.$7b=function isc_TabBar__scrollForward(_1,_2){if(this.overflow==isc.Canvas.VISIBLE||!this.members||this.members.length==0)return;var _3,_4;if(this.$7c!=null){_3=this.members[this.$7c+(_1?-1:1)];if(_3==null){return} _4=(_1?(this.vertical?_3.getTop():_3.getLeft()):(this.vertical?_3.getBottom():_3.getRight()))}else{var _5=(this.vertical?this.getScrollHeight():this.getScrollWidth());if(_5<=(this.vertical?this.getViewportHeight():this.getViewportWidth())) return;var _6=(this.vertical?this.getScrollTop():this.getScrollLeft()),_7=(this.vertical?this.getViewportHeight():this.getViewportWidth());var _8=5;for(var i=0;i(_6+_7));if(_11)break}} if(_2){this.$7c=this.members.indexOf(_3);this.scrollTabIntoView(_3,_1,true,"this.$7d("+this.$7c+")")}else this.scrollTabIntoView(_3,_1)},isc.A.$7d=function isc_TabBar__completeScroll(_1){if(this.$7c==_1)delete this.$7c},isc.A.scrollTabIntoView=function isc_TabBar_scrollTabIntoView(_1,_2,_3,_4){var _5;if(isc.isA.Number(_1)){_5=_1;_1=this.members[_1]}else{_5=this.members.indexOf(_1)} if(!_1)return;if(this.$3n||this.$2z){this.$67y=[_1,_2,_3,_4];return} var _6=_1.getRect(),_7,_8;var _9=this.vertical;if(_2==null){if(_5==0)_2=true;else if(_5==(this.members.getLength()-1))_2=false;else{if(_9){if(this.getScrollTop()>_6[1])_2=true;else _2=false}else{if(this.getScrollLeft()>_6[0])_2=true;else _2=false}}} if(_9){_8=(_2?"top":"bottom");_7="left";_6[2]=0}else{_7=(_2?"left":"right");_8="top";_6[3]=0} if(_5==0)_6[0]=_6[1]=this.isRTL()?this.getScrollWidth():0;this.scrollIntoView(_6[0],_6[1],_6[2],_6[3],_7,_8,_3,{target:this,methodName:"scrolledTabIntoView",args:[_1,_4]})},isc.A.scrolledTabIntoView=function isc_TabBar_scrolledTabIntoView(_1,_2){if(_2!=null){this.fireCallback(_2,"tab",[_1])}},isc.A.$3j=function isc_TabBar__layoutChildrenDone(_1,_2,_3,_4,_5){this.invokeSuper(isc.TabBar,"$3j",_1,_2,_3,_4,_5);if(this.$67y!=null){var _6=this.$67y;this.scrollTabIntoView(_6[0],_6[1],_6[2],_6[3]);delete this.$67y}},isc.A.scrollForward=function isc_TabBar_scrollForward(_1){this.$7b(false,_1)},isc.A.scrollBack=function isc_TabBar_scrollBack(_1){this.$7b(true,_1)});isc.B._maxIndex=isc.C+27;isc.ClassFactory.defineClass("Window","Layout");isc.A=isc.Window.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.styleName="windowBackground";isc.A.printStyleName="normal";isc.A.skinImgDir="images/Window/";isc.A.backgroundColor="#DDDDDD";isc.A.layoutMargin=2;isc.A.membersMargin=2;isc.A.orientation="vertical";isc.A.dragStartDistance=1;isc.A.canDragReposition=true;isc.A.dragAppearance=isc.EventHandler.OUTLINE;isc.A.canDragResize=false;isc.A.resizeFrom=["R","B","BR"];isc.A.minWidth=100;isc.A.minHeight=100;isc.A.useBackMask=isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&isc.Browser.version<9;isc.A.isModal=false;isc.A.modalMaskOpacity=50;isc.A.modalMaskStyle="modalMask";isc.A.modalMaskConstructor="ScreenSpan";isc.A.dismissOnOutsideClick=false;isc.A.showBody=true;isc.A.bodyStyle="windowBody";isc.A.printBodyStyle="printHeader";isc.A.bodyColor="#FFFFFF";isc.A.hiliteBodyColor="#EEEEEE";isc.A.contentsType="page";isc.A.bodyDefaults={layoutMargin:0,printStyleName:"printHeader"};isc.A.contentLayout="vertical";isc.A.autoSize=false;isc.A.showHeader=true;isc.A.headerConstructor="HLayout";isc.A.showHeaderBackground=!(isc.Browser.isIE&&!isc.Browser.isStrict&&isc.Browser.minorVersion>=5.5);isc.A.headerBackgroundConstructor="Img";isc.A.headerBackgroundDefaults={width:"100%",height:"100%",addAsChild:true,vertical:false,capSize:10,shouldPrint:false};isc.A.headerStyle="windowHeader";isc.A.printHeaderStyle="printHeader";isc.A.headerSrc=(!(isc.Browser.isIE&&!isc.Browser.isStrict&&isc.Browser.minorVersion>=5.5)?"[SKIN]Window/headerGradient.gif":null);isc.A.headerDefaults={height:18,layoutMargin:1,membersMargin:2,overflow:isc.Canvas.HIDDEN,printFillWidth:false,builtinHeaderControls:["minimizeButton","maximizeButton","closeButton"],handleClick:function(_1){if(this.ns.EH.$129k()&&!isc.Browser.isChrome){var _2=this.getOffsetX(),_3=this.getOffsetY(),_4=this.builtinHeaderControls,_5,_6,_7;for(var i=0,_9=_4.length;i<_9;++i){var _10=_4[i];if(!isc.isA.Canvas(_10))_10=this.creator[_10];if(_10==null||!isc.isA.Canvas(_10)||!_10.isDrawn()||!_10.isVisible()) {continue} var _11=_10.getOffsets(),_12=isc.Math.$101k(_11.left-_2,_11.top-_3);if(_5==null||_12<_6){_5=_10;_6=_12;_7=_11}} if(_5!=null&&Math.abs(_7.left-_2)<15){if(_5.click!=null)return _5.click(_1)}}}};isc.A.headerControls=["headerIcon","headerLabel","minimizeButton","maximizeButton","closeButton"];isc.A.hiliteHeaderStyle="windowHeaderHilite";isc.A.hiliteHeaderSrc=(!(isc.Browser.isIE&&isc.Browser.minorVersion>=5.5)?"[SKIN]Window/headerGradient_hilite.gif":null);isc.A.showTitle=true;isc.A.showTitleAsHeaderContents=true;isc.A.title="Untitled Window";isc.A.headerLabelConstructor="Label";isc.A.headerLabelParentDefaults={_constructor:"Canvas",overflow:"hidden",getContents:function(){return this.isPrinting?isc.nbsp:isc.Canvas.blankImgHTML(1000,100)}};isc.A.headerLabelDefaults={wrap:false,align:isc.Canvas.LEFT,styleName:"windowHeaderText",inherentWidth:true,layoutAlign:isc.Page.isRTL()?isc.Canvas.RIGHT:isc.Canvas.LEFT};isc.A.showHeaderIcon=true;isc.A.headerIconConstructor="Img";isc.A.headerIconDefaults={width:16,height:16,layoutAlign:"center",src:"[SKIN]/Window/headerIcon.gif"};isc.A.canFocusInHeaderButtons=false;isc.A.showCloseButton=true;isc.A.closeButtonConstructor="ImgButton";isc.A.closeButtonDefaults={width:16,height:14,layoutAlign:"center",src:"[SKIN]/Window/close.gif",click:function(){return this.creator.$7e()}};isc.A.showMinimizeButton=true;isc.A.minimizeButtonConstructor="ImgButton";isc.A.minimizeButtonDefaults={width:16,height:14,layoutAlign:"center",src:"[SKIN]/Window/minimize.gif",click:function(){if(!this.creator.onMinimizeClick||(this.creator.onMinimizeClick()!=false)){this.creator.minimize()} return false}};isc.A.minimized=false;isc.A.defaultMinimizeHeight=16;isc.A.restoreButtonDefaults={width:16,height:14,src:"[SKIN]/Window/restore.gif",layoutAlign:"center",click:function(){if(!this.creator.onRestoreClick||(this.creator.onRestoreClick()!=false)){this.creator.restore()} return false}};isc.A.minimized=false;isc.A.showMaximizeButton=false;isc.A.maximizeButtonConstructor="ImgButton";isc.A.maximizeButtonDefaults={width:16,height:14,src:"[SKIN]/Window/maximize.gif",layoutAlign:"center",click:function(){if(!this.creator.onMaximizeClick||(this.creator.onMaximizeClick()!=false)){this.creator.maximize()} return false}};isc.A.showFooter=true;isc.A.footerConstructor="HLayout";isc.A.footerHeight=18;isc.A.footerControls=["spacer","resizer"];isc.A.showStatusBar=true;isc.A.statusBarConstructor="Canvas";isc.A.statusBarDefaults={overflow:isc.Canvas.HIDDEN,styleName:"windowStatusBar",addAsChild:true,width:"100%",wrap:false,leftPadding:5};isc.A.showResizer=true;isc.A.resizerConstructor="Img";isc.A.resizerDefaults={canDragResize:true,getEventEdge:function(){if(this.creator.resizeFrom.contains("BR")){return"BR"}else if(this.creator.resizeFrom.contains("B")){return"B"}else if(this.creator.resizeFrom.contains("R")){return"R"}},src:"[SKIN]/Window/resizer.gif",width:16,height:16};isc.A.showToolbar=false;isc.A.toolbarConstructor="Toolbar";isc.A.toolbarDefaults={height:40,layoutMargin:10,membersMargin:5,overflow:"visible"};isc.A.customEdges=["T","B"];isc.A.overflow="hidden";isc.A.fillSpaceStyleName="windowBackgroundFill";isc.B.push(isc.A.setCanDragReposition=function isc_Window_setCanDragReposition(_1,_2){if(!this.headerLabelParent)return;this.canDragReposition=false;var _3=_1==null?true:_1;this.headerLabelParent.dragTarget=_2||this;this.headerLabelParent.canDragReposition=_3;this.canDragReposition=false},isc.A.getCanDragReposition=function isc_Window_getCanDragReposition(){if(this.headerLabelParent)return this.headerLabelParent.canDragReposition;return this.canDragReposition});isc.B._maxIndex=isc.C+2;isc.A=isc.Window.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.bringToFrontOnMouseUp=true;isc.A.autoChildParentMap={resizer:"footer",statusBar:"footer",headerBackground:"header",headerIcon:"header",headerLabel:"header",minimizeButton:"header",maximizeButton:"header",closeButton:"header",toolbar:"body"};isc.A.headerLabelLayoutDefaults={overflow:"hidden",width:"100%",height:"100%",getCurrentCursor:function(){if(this.parentElement) return this.parentElement.getCurrentCursor();return this.Super("getCurrentCursor",arguments)},$157h:function(){var _1=this.creator;_1.$157i();if(_1.$157j!=null){var _2=_1.headerLabel;if(this.getInnerContentWidth()<_1.$157j){_2.resizeTo("100%",null,null,null,"overflow");_2.setOverflow(isc.Canvas.HIDDEN)}else{_2.resizeTo(_2.$pn!=null?_2.$pn:1,null,null,null,"overflow");_2.setOverflow(isc.Canvas.VISIBLE)}}},onDraw:function(){this.$157h()},resized:function(){this.$157h()},visibilityChanged:function(_1){this.$157h()}};isc.B.push(isc.A.initWidget=function isc_Window_initWidget(){if(this.minimized&&this.maximized){this.logWarn("Window initialized with maximized and minimized both set to true. This is unsupported. The Window will be rendered minimized.");this.maximized=false} if(this.minimized){this.minimized=null;this.minimize()}else if(this.maximized){this.maximized=null;this.maximize()} if(this.autoSize){this.vPolicy="none";this.overflow="visible"} this.Super(this.$oc);if(!this.$7f&&this.items!=null){for(var i=0;i_20)){_17=_13-_20} if(_15){if(_16>0){if(_15.getHeight()!=_16){var _21=_15.getScrollTop()+_15.getViewportHeight();_15.resizeTo(null,_16);_15.scrollTo(null,_21-_15.getViewportHeight(),"animateMinimize")} if(!_15.isVisible())_15.show()}else if(_15.isVisible()){_15.hide()}} if(_14){if(_17>0){if(_14.getHeight()!=_17){var _21=_14.getScrollTop()+_14.getViewportHeight();_14.resizeTo(null,_17);_14.scrollTo(null,_21-_14.getViewportHeight(),"animateMinimize")} if(!_14.isVisible())_14.show()}else if(_14.isVisible()){_14.hide()}} if(_5||this.maximized){var _22=(_5?this.$42y:0),_23=(_5?this.$42z:0),_24=(_5?0:this.$42y),_25=(_5?0:this.$42z);this.moveTo(Math.round(_22+(_1*(_24-_22))),Math.round(_23+(_1*(_25-_23))),true)} this.resizeBy((_12-this.getWidth()),(_11-this.getHeight()),null,null,true);if(_1==1){delete this.$42u;this.$74();delete this.$7k if(_4)this.completeRestore(true);else if(_5)this.completeMaximize(true);else this.completeMinimize(this.$7v,true)}},isc.A.animateRestoreStep=function isc_Window_animateRestoreStep(_1,_2,_3){this.animateMinimizeStep(_1,_2,_3,true)},isc.A.animateMaximizeStep=function isc_Window_animateMaximizeStep(_1,_2,_3){this.animateMinimizeStep(_1,_2,_3,null,true)},isc.A.isAnimating=function isc_Window_isAnimating(_1,_2,_3,_4,_5){if(this.invokeSuper(isc.Window,"isAnimating",_1,_2,_3,_4,_5))return true;if(_1&&!isc.isAn.Array(_1))_1=[_1];if(this.$7k&&((_1==null)||(_1.contains("minimize"))||(_1.contains("rect"))))return true;return false},isc.A.completeMinimize=function isc_Window_completeMinimize(_1,_2){this.minimized=true;this.maximized=false;if(this.body&&this.body.isVisible())this.body.hide();if(this.footer&&this.footer.isVisible())this.footer.hide();this.$po=_1;if(this.$420!=null){if(!_2)this.setWidth(this.$420);this.$pn=this.$420} if(!_2){this.setHeight(_1);if(this.$42y!=null)this.setLeft(this.$42y);if(this.$42z!=null)this.setTop(this.$42z)} if(this.$421!=null)this.setShowShadow(this.$421);if(this.$422!=null&&this.headerLabel) this.headerLabel.parentElement.canDragReposition=this.$422;delete this.$422;delete this.$42z;delete this.$42y;delete this.$421;delete this.$420;if(this.minimizeButton)this.minimizeButton.enable()},isc.A.restore=function isc_Window_restore(){if(this.$7k){isc.Animation.finishAnimation(this.$7k)} if(!this.minimized&&!this.maximized)return;if(!this.$7r)this.$7r=this.getVisibleHeight();var _1=(this.minimized?this.minimizeButton:this.maximizeButton);if(_1){_1.addProperties(this.minimized?this.minimizeButtonDefaults:this.maximizeButtonDefaults);_1.markForRedraw()} if(this.animateMinimize&&this.isDrawn()&&this.isVisible()){if(_1){_1.disable();_1.redraw()} this.$7w();this.$7k=isc.Animation.registerAnimation(this.animateRestoreStep,(this.minimizeTime||this.animateTime),this.minimizeAcceleration||this.animateAcceleration,this)}else{this.completeRestore()}},isc.A.completeRestore=function isc_Window_completeRestore(_1){if(this.$7u!=null)this.setOverflow(this.$7u);if(this.$7q!=null)this.setHeight(this.$7q);if(this.$420!=null)this.setWidth(this.$420);if(!_1){if(this.$42y!=null)this.setLeft(this.$42y);if(this.$42z!=null)this.setTop(this.$42z)} if(this.$po!=null)this.$po=this.$7s;if(this.$pn!=null)this.$pn=this.$423;if(this.$421!=null)this.setShowShadow(this.$421);if(this.$7t!=null)this.canDragResize=this.$7t;if(this.$422!=null&&this.headerLabel) this.headerLabel.parentElement.canDragReposition=this.$422;var _2=this.minimized?this.minimizeButton:this.maximizeButton;this.minimized=false;this.maximized=false;this.$75();if(this.$424){this.reflowNow();this.setAutoSize(true)} delete this.$7q;delete this.$7s;delete this.$7r;delete this.$7t;delete this.$422;delete this.$7u;delete this.$420;delete this.$423;delete this.$421;delete this.$42y;delete this.$42z;delete this.$424;if(_2)_2.enable()});isc.evalBoundary;isc.B.push(isc.A.$75=function isc_Window__showComponents(){if(this.body&&!this.body.isVisible())this.body.show();if(this.footer&&!this.footer.isVisible())this.footer.show()},isc.A.maximize=function isc_Window_maximize(){if(this.$7k)isc.Animation.finishAnimation(this.$7k);if(this.maximized)return;if(!this.minimized){this.$7q=this.getHeight();this.$7r=this.getVisibleHeight();this.$7s=this.$po;this.$7t=this.canDragResize;this.canDragResize=false}else{if(this.minimizeButton){this.minimizeButton.addProperties(this.minimizeButtonDefaults);this.minimizeButton.redraw()}} this.$42y=this.getLeft();this.$42z=this.getTop();this.$420=this.getWidth();this.$42x=this.getVisibleWidth();this.$423=this.$pn;if(this.headerLabel){this.$422=this.headerLabel.parentElement.canDragReposition;this.headerLabel.parentElement.canDragReposition=false} this.$421=this.showShadow;this.setShowShadow(false);if(this.autoSize){this.$424=true;this.setAutoSize(false)} var _1=this.maximizeButton;if(_1){_1.addProperties(this.restoreButtonDefaults);_1.markForRedraw()} if(this.animateMinimize&&this.isDrawn()&&this.isVisible()){if(_1){_1.disable();_1.redraw()} this.$42v=(this.parentElement?this.parentElement.getInnerHeight():isc.Page.getHeight());this.$42w=(this.parentElement?this.parentElement.getInnerWidth():isc.Page.getWidth());this.$7w();this.$7k=isc.Animation.registerAnimation(this.animateMaximizeStep,(this.minimizeTime||this.animateTime),this.minimizeAcceleration||this.animateAcceleration,this)}else{this.completeMaximize()}},isc.A.completeMaximize=function isc_Window_completeMaximize(_1){if(!_1)this.moveTo(0,0);this.resizeTo("100%","100%");this.$75();this.minimized=false;this.maximized=true;if(this.maximizeButton)this.maximizeButton.enable()},isc.A.resizeTo=function isc_Window_resizeTo(_1,_2,_3,_4,_5){if(!_5&&this.$7k){isc.Animation.finishAnimation(this.$7k)} return this.invokeSuper(isc.Window,"resizeTo",_1,_2,_3,_4,_5)},isc.A.resizeBy=function isc_Window_resizeBy(_1,_2,_3,_4,_5){if(!_5&&this.$7k){isc.Animation.finishAnimation(this.$7k)} return this.invokeSuper(isc.Window,"resizeBy",_1,_2,_3,_4,_5)},isc.A.$7e=function isc_Window__closeButtonClick(){return this.handleCloseClick()},isc.A.handleCloseClick=function isc_Window_handleCloseClick(){if(this.onCloseClick&&this.onCloseClick()==false)return;return this.closeClick()},isc.A.closeClick=function isc_Window_closeClick(){this.close();return false},isc.A.close=function isc_Window_close(){this.returnValue(null);this.hide()});isc.B._maxIndex=isc.C+82;isc.Window.registerStringMethods({onMaximizeClick:"",onMinimizeClick:"",onRestoreClick:"",onCloseClick:""}) if(isc.definePrintWindow)isc.definePrintWindow();isc.Window.registerDupProperties("items");isc.defineClass("Portlet","Window");isc.A=isc.Portlet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.showShadow=false;isc.A.animateMinimize=true;isc.A.dragAppearance="outline";isc.A.dragType="Portlet";isc.A.canDrop=true;isc.A.overflow="hidden";isc.A.minHeight=60;isc.A.minWidth=70;isc.A.resizeFrom=["T","B","L","R"];isc.A.edgeCursorMap={"L":"col-resize","R":"col-resize","T":"row-resize","B":"row-resize"};isc.A.showMaximizeButton=true;isc.A.headerControls=["headerLabel","minimizeButton","maximizeButton","closeButton"];isc.A.dragOpacity=30;isc.A.showCloseConfirmationMessage=true;isc.A.closeConfirmationMessage="Close portlet?";isc.B.push(isc.A.setMinHeight=function isc_Portlet_setMinHeight(_1){this.minHeight=_1;if(this.portalRow)this.portalRow.$120j()},isc.A.setMinWidth=function isc_Portlet_setMinWidth(_1){if(this.minWidth==_1)return;this.minWidth=_1;if(this.portalRow)this.portalRow.reflow("Portlet minWidth changed")},isc.A.setRowHeight=function isc_Portlet_setRowHeight(_1){this.rowHeight=_1;if(this.portalRow)this.portalRow.setHeight(_1)},isc.A.getPortalLayout=function isc_Portlet_getPortalLayout(){if(this.portalRow){return this.portalRow.portalLayout}else{return null}},isc.A.getPortalPosition=function isc_Portlet_getPortalPosition(){var _1=this.getPortalLayout();if(_1){return _1.getPortalPosition(this)}else{return null}},isc.A.close=function isc_Portlet_close(){var _1=this.getPortalLayout();if(_1&&_1.willClosePortlet){var _2=_1.willClosePortlet(this);if(_2===false)return} if(this.showCloseConfirmationMessage){isc.confirm(this.closeConfirmationMessage,{target:this,methodName:"confirmedClosePortlet"},this.closeConfirmationDialogProperties)}else{this.confirmedClosePortlet(true)}},isc.A.confirmedClosePortlet=function isc_Portlet_confirmedClosePortlet(_1){if(!_1)return;if(this.editContext&&this.editNode){this.editContext.removeNode(this.editNode)}else{if(this.portalRow){this.portalRow.removePortlets(this)}else{this.clear()}} if(this.destroyOnClose)this.markForDestroy()},isc.A.onMaximizeClick=function isc_Portlet_onMaximizeClick(){var _1=this.getPortalLayout();if(_1&&_1.willMaximizePortlet){return _1.willMaximizePortlet(this)===false?false:true}else{return true}},isc.A.onMinimizeClick=function isc_Portlet_onMinimizeClick(){var _1=this.getPortalLayout();if(_1&&_1.willMinimizePortlet){return _1.willMinimizePortlet(this)===false?false:true}else{return true}},isc.A.onRestoreClick=function isc_Portlet_onRestoreClick(){var _1=this.getPortalLayout();if(_1&&_1.willRestorePortlet){return _1.willRestorePortlet(this)===false?false:true}else{return true}},isc.A.$123b=function isc_Portlet__createPlaceholder(){if(this.$55d)return;var _1=this.getVisibleWidth(),_2=this.getVisibleHeight(),_3=this.getPageLeft(),_4=this.getPageTop(),_5=this.$po,_6=this.$pn;this.$55d=isc.Canvas.create({width:_1,height:_2,minHeight:this.getMinHeight(),minWidth:this.getMinWidth(),minimized:this.minimized,$po:this.$po,$pn:this.$pn,$858:this});if(this.parentElement){this.masterLayout=this.parentElement;this.masterLayout.portletMaximizing=true;this.masterLayout.replaceMember(this,this.$55d,false);this.masterLayout.portletMaximizing=false} this.setWidth(_1);this.setHeight(_2);this.$po=_5;this.$pn=_6;this.moveTo(_3,_4);this.bringToFront();this.draw()},isc.A.$123c=function isc_Portlet__destroyPlaceholder(){if(!this.$55d)return;if(this.masterLayout&&this.masterLayout.hasMember(this.$55d)){this.masterLayout.portletMaximizing=true;this.masterLayout.replaceMember(this.$55d,this);this.masterLayout.portletMaximizing=false} this.$55d.$858=null;this.$55d.destroy();delete this.$55d;delete this.masterLayout},isc.A.maximize=function isc_Portlet_maximize(){this.$123b();this.delayCall("doMaximize")},isc.A.restore=function isc_Portlet_restore(){if(this.portalRow)this.portalRow.restore();this.Super("restore",arguments)},isc.A.completeRestore=function isc_Portlet_completeRestore(){this.Super("completeRestore",arguments);this.$123c();if(this.portalRow)this.portalRow.$120j();var _1=this.getPortalLayout();if(_1&&_1.portletRestored){_1.portletRestored(this)}},isc.A.doMaximize=function isc_Portlet_doMaximize(){this.Super("maximize",arguments)},isc.A.completeMaximize=function isc_Portlet_completeMaximize(){this.Super("completeMaximize",arguments);var _1=this.getPortalLayout();if(_1&&_1.portletMaximized){_1.portletMaximized(this)}},isc.A.completeMinimize=function isc_Portlet_completeMinimize(){this.Super("completeMinimize",arguments);this._percent_height=null;this._percent_width=null;this.$123c();if(this.portalRow)this.portalRow.$120j();var _1=this.getPortalLayout();if(_1&&_1.portletMinimized){_1.portletMinimized(this)}},isc.A.resized=function isc_Portlet_resized(_1,_2,_3){this.Super("resized",arguments);if(this.masterLayout)return;var _4=this.getPortalLayout();if(_4)_4.$118l()});isc.B._maxIndex=isc.C+19;isc.defineClass("PortalResizeBar",isc.Canvas);isc.A=isc.PortalResizeBar.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dragStartDistance=1;isc.A.isMouseTransparent=true;isc.A.overflow="hidden";isc.A.$jp=false;isc.A.$jo=false;isc.A.canDragResize=true;isc.A.edgeCursorMap={"R":"col-resize","B":"row-resize"};isc.B.push(isc.A.initWidget=function isc_PortalResizeBar_initWidget(){this.Super("initWidget",arguments);this.dragTarget=this.target},isc.A.getEventEdge=function isc_PortalResizeBar_getEventEdge(){return this.vertical?"R":"B"});isc.B._maxIndex=isc.C+2;isc.defineClass("PortalColumnHeader","HLayout");isc.A=isc.PortalColumnHeader.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.height=20;isc.A.noResizer=true;isc.A.border="1px solid #CCCCCC";isc.A.canDragReposition=true;isc.B.push(isc.A.initWidget=function isc_PortalColumnHeader_initWidget(){this.Super("initWidget",arguments);this.dragTarget=this.creator;this.addMember(isc.LayoutSpacer.create());this.menu=this.getMenuConstructor().create({width:150,portalColumn:this.creator,data:[{title:"Remove Column",click:"menu.portalColumn.removeSelf()",enableIf:function(_1,_2,_3){return _2.portalColumn.portalLayout.getMembers().length>1}},{title:"Add Column",click:"menu.portalColumn.addNewColumn()"}]});this.addMember(isc.MenuButton.create({title:"Column Properties",width:150,menu:this.menu}));this.addMember(isc.LayoutSpacer.create())});isc.B._maxIndex=isc.C+1;isc.defineClass("PortalRow","Layout");isc.A=isc.PortalRow.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.vertical=false;isc.A._generated=true;isc.A.respectSizeLimits=true;isc.A.overflow="auto";isc.A.resizeBarClass="PortalResizeBar";isc.A.resizeBarSize=3;isc.A.defaultResizeBars="middle";isc.A.canAcceptDrop=true;isc.A.dropLineThickness=2;isc.A.dropLineProperties={backgroundColor:"blue"};isc.A.edgeCursorMap={"T":"row-resize","B":"row-resize"};isc.A.hDropOffset=15;isc.B.push(isc.A.initWidget=function isc_PortalRow_initWidget(){this.Super("initWidget",arguments);if(this.portlets)this.addPortlets(this.portlets);this.portlets=null},isc.A.createResizeBar=function isc_PortalRow_createResizeBar(){var _1=this.Super("createResizeBar",arguments);_1.canDragResize=this.canResizePortlets;return _1},isc.A.setCanResizePortlets=function isc_PortalRow_setCanResizePortlets(_1){this.canResizePortlets=_1;if(this.$3f)this.$3f.canDragResize=_1;this.getPortlets().map(function(_2){_2.canDragResize=_1;if(_2.$3f)_2.$3f.canDragResize=_1})},isc.A.prepareForDragging=function isc_PortalRow_prepareForDragging(){var _1=this.ns.EH;if(!_1.dragTarget)this.Super("prepareForDragging",arguments);if(this.hasMember(_1.dragTarget)&&_1.dragOperation==_1.DRAG_RESIZE){switch(_1.resizeEdge){case"B":case"T":_1.dragTarget=this;break;case"L":var _2=this.getMemberNumber(_1.dragTarget);if(_2>0){_1.dragTarget=this.getMember(_2-1);_1.resizeEdge="R"}else{_1.dragTarget=this.portalColumn} break;case"R":var _2=this.getMemberNumber(_1.dragTarget);var _3=this.getMembers().length;if(_2==_3-1){_1.dragTarget=this.portalColumn} break}} if(_1.dragTarget==this&&_1.resizeEdge=="T"&&_1.dragOperation==_1.DRAG_RESIZE){var _2=this.parentElement.getMemberNumber(this);if(_2>0){_1.dragTarget=this.parentElement.getMember(_2-1);_1.resizeEdge="B"}else{_1.dragTarget=null}}},isc.A.$129h=function isc_PortalRow__updatePortletResizeFrom(){if(this.members.length==0||!this.parentElement||!this.portalLayout)return;var _1=this.parentElement.getMemberNumber(this);var _2=this.portalLayout.getPortalColumnNumber(this.portalColumn);this.resizeFrom=_1>0?["T","B"]:["B"];for(var _3=0;_30)_4.add("T");if(_3>0||(_2>0&&this.portalLayout.canResizeColumns)){_4.add("L")} if(_3!=this.members.length-1||this.portalLayout.canResizeColumns){_4.add("R")} var _5=this.getMember(_3);_5.resizeFrom=_4}},isc.A.isHDrop=function isc_PortalRow_isHDrop(){var _1=this.getDropPosition();var _2=this.getMember(_1==0?0:_1-1);if(!_2.containsEvent()&&_1_2.getVisibleWidth()-this.hDropOffset){return true}else{return false}},isc.A.isPortalColumnDrop=function isc_PortalRow_isPortalColumnDrop(){var _1=this.ns.EH.dragTarget;var _2=_1.getDragType();if(_2=="PortalColumn")return true;if(_1.isA("Palette")){var _3=_1.getDragData(),_4=(isc.isAn.Array(_3)?_3[0]:_3);if(_4.type=="PortalColumn"||_4.className=="PortalColumn")return true} return false},isc.A.willAcceptDrop=function isc_PortalRow_willAcceptDrop(){if(this.isPortalColumnDrop())return null;if(!this.isHDrop())return null;return this.portalLayout.willAcceptPortletDrop(this.ns.EH.dragTarget,this.portalLayout.getPortalColumnNumber(this.portalColumn),this.portalColumn.getPortalRowNumber(this),this.getDropPosition())},isc.A.dropMove=function isc_PortalRow_dropMove(){if(this.willAcceptDrop()){this.parentElement.hideDropLine();this.showDropLine();return false}else{this.hideDropLine();return true}},isc.A.dropOver=function isc_PortalRow_dropOver(){return this.dropMove()},isc.A.getDropComponent=function isc_PortalRow_getDropComponent(_1,_2){var _3=this.portalLayout.getDropPortlet(_1,this.portalLayout.getPortalColumnNumber(this.portalColumn),this.portalColumn.getPortalRowNumber(this),_2);if(this.handleDroppedEditNode)_3=this.handleDroppedEditNode(_3,_2);if(_3){if(!isc.isA.Portlet(_3)){_3=isc.Portlet.create({autoDraw:false,title:"",items:_3,destroyOnClose:true})}} return _3},isc.A.setMinHeight=function isc_PortalRow_setMinHeight(_1){if(this.minHeight==_1)return;this.minHeight=_1;if(this.portalColumn)this.portalColumn.rowLayout.reflow("PortalRow minHeight changed")},isc.A.shouldAlterBreadth=function isc_PortalRow_shouldAlterBreadth(_1){if(_1.minimized)return false;return this.Super("shouldAlterBreadth",arguments)},isc.A.$120j=function isc_PortalRow__checkPortletHeights(){if(this.members.map(function(_1){return _1.minimized}).and()){this.minimize()}else{this.setMinHeight(this.members.map("getMinHeight").max()+this.$2u()+this.getVMarginBorder());this.restore()}},isc.A.minimize=function isc_PortalRow_minimize(){if(this.minimized)return;this.setMinHeight(0);this.$7q=this.getHeight();this.$7s=this.$po;this.setHeight(this.members.map("getHeight").max()+this.$2u()+this.getVMarginBorder());this.minimized=true},isc.A.restore=function isc_PortalRow_restore(){if(!this.minimized)return;this.setHeight(this.$7q);this.$po=this.$7s;delete this.$7q;delete this.$7s;this.minimized=false},isc.A.reflow=function isc_PortalRow_reflow(){if(this.portalLayout)this.portalLayout.reflow("portalRow reflowed");this.Super("reflow",arguments)},isc.A.$87x=function isc_PortalRow__getDesiredMemberSpace(){return this.members.map(function(_1){if(isc.isA.Number(_1.$pn)){return Math.max(_1.$pn,_1.minWidth)}else{return _1.minWidth}}).sum()},isc.A.$122u=function isc_PortalRow__getWidthOverhead(){return this.getMarginSpace()+this.getHMarginBorder()},isc.A.getTotalMemberSpace=function isc_PortalRow_getTotalMemberSpace(){var _1=this.Super("getTotalMemberSpace",arguments);var _2=this.$87x();if(_1<_2){return _2}else{return _1}},isc.A.$122v=function isc_PortalRow__applyMaxWidth(_1){var _2=this.members.length;if(_2==0)return;var _3=this.$87x()+this.$122u()-_1;if(_3<=0)return;for(var i=_2-1;i>=0&&_3>0;i--){var _5=this.getMember(i);var _6=_5.getWidth();var _7=Math.min(_6-_5.minWidth,_3);if(_7>0){_5.setWidth(_6-_7);_3-=_7}}},isc.A.membersChanged=function isc_PortalRow_membersChanged(){if(this.portletMaximizing)return;if(this.members.length==0){if(this.editContext&&this.editNode)this.editContext.removeNode(this.editNode);this.destroy()}else{this.$120j();this.$129h()} if(this.portalLayout&&this.portalLayout.portletsChanged)this.portalLayout.portletsChanged()},isc.A.addMembers=function isc_PortalRow_addMembers(_1,_2){if(this.portletMaximizing)return this.Super("addMembers",arguments);if(!isc.isAn.Array(_1))_1=[_1];var _3=this;_1.map(function(_6){if(_6.$858)return;_6.canDragResize=_3.canResizePortlets;if(_6.$3f)_6.$3f.canDragResize=_3.canResizePortlets;var _4=_6.$po;if(_4&&!_6.minimized){_6.$po=null;_6._percent_height=null;if(!_6.rowHeight)_6.rowHeight=_4} if(_6.rowHeight){if(!_3.$po){_3.setHeight(_6.rowHeight);_3.$po=isc.NumberUtil.parseIfNumeric(_6.rowHeight)}}});this.Super("addMembers",arguments);_1.map(function(_6){_6.portalRow=_3;if(_3.minimized&&(_3.members.length==_1.length)){_3.$7q=_6.$168a;_3.$7s=_6.$168b;delete _6.$168a;delete _6.$168b}});if(this.editContext&&!this.$86r){for(var i=0;i<_1.length;i++){var _6=_1[i];if(_6.editNode){this.editContext.addNode(_6.editNode,this.editNode,_2+i,null,true)}}}},isc.A.addPortlets=function isc_PortalRow_addPortlets(_1,_2){this.$86r=true;this.addMembers(_1,_2);delete this.$86r},isc.A.addPortlet=function isc_PortalRow_addPortlet(_1,_2){this.addPortlets(_1,_2)},isc.A.removeMembers=function isc_PortalRow_removeMembers(_1){this.Super("removeMembers",arguments);if(!this.portletMaximizing){if(!isc.isAn.Array(_1))_1=[_1];var _2=this;_1.map(function(_3){if(_3.portalRow)_3.portalRow=null;if(_3.minimized){_3.$168a=_2.$7q;_3.$168b=_2.$7s} if(_2.editContext&&_3.editNode&&!_2.$86s){_2.editContext.removeNode(_3.editNode,true)}})}},isc.A.removePortlets=function isc_PortalRow_removePortlets(_1){if(!isc.isAn.Array(_1))_1=[_1];var _2=this;_1.map(function(_4){var _3=_4.$55d;if(_3){_2.removeMembers(_3);delete _3.$858;delete _4.$55d;_3.destroy();_4.deparent();_4.clear();_4.portalRow=null}else{_2.$86s=true;_2.removeMembers(_4);delete _2.$86s}})},isc.A.removePortlet=function isc_PortalRow_removePortlet(_1){this.removePortlets(_1)},isc.A.getPortlet=function isc_PortalRow_getPortlet(_1){return this.getMember(_1)},isc.A.getPortlets=function isc_PortalRow_getPortlets(){return this.getMembers().map(function(_1){if(_1.$858){return _1.$858}else{return _1}})},isc.A.getPortalPosition=function isc_PortalRow_getPortalPosition(_1){var _2=this.getPortlets().indexOf(_1);if(_2<0){return null}else{return{position:_2}}});isc.B._maxIndex=isc.C+31;isc.A=isc.PortalRow;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.applyStretchResizePolicy=function isc_c_PortalRow_applyStretchResizePolicy(_1,_2,_3,_4,_5){if(_5.portalLayout&&_5.portalLayout.preventRowUnderflow){if(_1&&_1.length>0){var _6=_1.map(function(_8){return isc.isA.Number(_8)}).and();if(_6){var _7=_1.sum();if(_7<_2){_1[_1.length-1]="*"}}}} return this.Super("applyStretchResizePolicy",arguments)});isc.B._maxIndex=isc.C+1;isc.defineClass("PortalColumnBody","Layout");isc.A=isc.PortalColumnBody.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.vertical=true;isc.A.layoutMargin=3;isc.A.resizeBarClass="PortalResizeBar";isc.A.resizeBarSize=3;isc.A.defaultResizeBars="middle";isc.A.canAcceptDrop=true;isc.A.canDrag=false;isc.A.dropLineThickness=2;isc.A.dropLineProperties={backgroundColor:"blue"};isc.A.width="100%";isc.A.canDragResize=true;isc.A.dragTarget="parent";isc.A.edgeCursorMap={"L":"col-resize","R":"col-resize"};isc.A.respectSizeLimits=true;isc.A.dropMove=isc.PortalRow.getInstanceProperty("dropMove");isc.A.dropOver=isc.PortalRow.getInstanceProperty("dropOver");isc.B.push(isc.A.createResizeBar=function isc_PortalColumnBody_createResizeBar(){var _1=this.Super("createResizeBar",arguments);_1.canDragResize=this.creator.canResizePortlets;return _1},isc.A.membersChanged=function isc_PortalColumnBody_membersChanged(){this.members.map(function(_1){_1.$129h()})},isc.A.getTotalMemberSpace=function isc_PortalColumnBody_getTotalMemberSpace(){var _1=this.Super("getTotalMemberSpace",arguments);var _2=this.members.map(function(_3){if(isc.isA.Number(_3.$po)){return Math.max(_3.$po,_3.minHeight)}else{return _3.minHeight}}).sum();return Math.max(_1,_2)},isc.A.isPortalColumnDrop=function isc_PortalColumnBody_isPortalColumnDrop(){var _1=this.ns.EH.dragTarget;var _2=_1.getDragType();if(_2=="PortalColumn")return true;if(_1.isA("Palette")){var _3=_1.getDragData(),_4=(isc.isAn.Array(_3)?_3[0]:_3);if(_4.type=="PortalColumn"||_4.className=="PortalColumn")return true} return false},isc.A.willAcceptDrop=function isc_PortalColumnBody_willAcceptDrop(){if(this.isPortalColumnDrop())return null;return this.creator.portalLayout.willAcceptPortletDrop(this.ns.EH.dragTarget,this.creator.portalLayout.getPortalColumnNumber(this.creator),this.getDropPosition(),null)},isc.A.getDropComponent=function isc_PortalColumnBody_getDropComponent(_1,_2){var _3=this.creator.portalLayout.getDropPortlet(_1,this.creator.portalLayout.getPortalColumnNumber(this.creator),_2,null);if(this.handleDroppedEditNode)_3=this.handleDroppedEditNode(_3,_2);if(_3){if(!isc.isA.Portlet(_3)){_3=isc.Portlet.create({autoDraw:false,title:"",items:_3,destroyOnClose:true})} var _4=_3.portalRow;if(_4&&_4.parentElement==this&&_4.getMembers().length==1){return _4}else{this.creator.addPortlet(_3,_2);return null}}});isc.B._maxIndex=isc.C+6;isc.A=isc.PortalColumnBody;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.applyStretchResizePolicy=function isc_c_PortalColumnBody_applyStretchResizePolicy(_1,_2,_3,_4,_5){var _6=_5.creator.portalLayout;if(_6&&_6.preventColumnUnderflow){if(_1&&_1.length>0){var _7=_1.map(function(_10){return isc.isA.Number(_10)}).and();if(_7){var _8=_1.sum();if(_8<_2){var _9=_5.members.findNextIndex(_1.length-1,function(_10){return!_10.minimized},true,0);if(_9!=-1){_1[_9]="*"}}}}} return this.Super("applyStretchResizePolicy",arguments)});isc.B._maxIndex=isc.C+1;isc.defineClass("PortalColumn","Layout");isc.A=isc.PortalColumn.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.vertical=true;isc.A.minWidth=80;isc.A._generated=true;isc.A.dragAppearance="outline";isc.A.canAcceptDrop=false;isc.A.canDrop=true;isc.A.dragType="PortalColumn";isc.A.canDrag=false;isc.A.canDragResize=true;isc.A.edgeCursorMap={"L":"col-resize","R":"col-resize"};isc.A.showColumnHeader=true;isc.A.columnHeaderConstructor="PortalColumnHeader";isc.A.columnHeaderDefaults={title:"Column"};isc.A.rowLayoutDefaults={_constructor:"PortalColumnBody"};isc.A.rowConstructor="PortalRow";isc.B.push(isc.A.setShowColumnHeader=function isc_PortalColumn_setShowColumnHeader(_1){if(_1){if(this.showColumnHeader)return;this.showColumnHeader=_1;this.addAutoChild("columnHeader",{autoParent:"none"});this.addMember(this.columnHeader,0)}else{if(!this.showColumnHeader)return;this.showColumnHeader=_1;this.removeMember(this.columnHeader)}},isc.A.initWidget=function isc_PortalColumn_initWidget(){this.Super("initWidget",arguments);this.addAutoChild("columnHeader");this.addAutoChild("rowLayout");if(this.portletDropTypes)this.rowLayout.dropTypes=this.portletDropTypes;if(this.portalRows)this.addPortalRows(this.portalRows);this.portalRows=null},isc.A.$87y=function isc_PortalColumn__getDesiredWidth(){var _1=this.getPortalRows();if(_1.length==0){return this.minWidth}else{var _2=_1.map(function(_3){return _3.$87x()+_3.$122u()}).max()+this.$122u();return Math.max(_2,this.minWidth)}},isc.A.$122u=function isc_PortalColumn__getWidthOverhead(){var _1=this.$2u()+this.getHMarginBorder()+this.rowLayout.$2u()+this.rowLayout.getHMarginBorder();if(this.rowLayout.vscrollOn)_1+=this.rowLayout.getScrollbarSize();return _1},isc.A.prepareForDragging=function isc_PortalColumn_prepareForDragging(){var _1=this.ns.EH;if(_1.dragTarget){if(_1.dragTarget!=this)return}else{this.Super("prepareForDragging",arguments)} if(_1.dragTarget==this&&_1.dragOperation==_1.DRAG_RESIZE&&_1.resizeEdge=="L"){var _2=this.portalLayout.getMemberNumber(this);if(_2>0){_1.dragTarget=this.portalLayout.getMember(_2-1);_1.resizeEdge="R"}else{_1.dragTarget=null}}},isc.A.dragResized=function isc_PortalColumn_dragResized(_1,_2){if(_1<0){var _3=this.getWidth()-this.$122u();this.getPortalRows().map(function(_4){_4.$122v(_3)})} this.Super("dragResized",arguments)},isc.A.resized=function isc_PortalColumn_resized(_1,_2,_3){this.Super("resized",arguments);if(!_1)return;if(this.portalLayout)this.portalLayout.$118l()},isc.A.addNewColumn=function isc_PortalColumn_addNewColumn(){this.portalLayout.addColumnAfter(this)},isc.A.removeSelf=function isc_PortalColumn_removeSelf(){this.portalLayout.removeColumn(this.portalLayout.getMemberNumber(this))},isc.A.makePortalRow=function isc_PortalColumn_makePortalRow(_1){if(_1==null)_1={};var _2={portalLayout:this.portalLayout,portalColumn:this,canResizePortlets:this.canResizePortlets};if(this.portletDropTypes)_2.dropTypes=this.portletDropTypes;var _3;if(isc.isA.PortalRow(_1)){_1.setProperties(_2);_3=_1}else{isc.addProperties(_1,_2);_3=this.createAutoChild("row",_1)} return _3},isc.A.setCanResizePortlets=function isc_PortalColumn_setCanResizePortlets(_1){this.canResizePortlets=_1;this.getPortalRows().map(function(_2){_2.setCanResizePortlets(_1)})},isc.A.setPortletDropTypes=function isc_PortalColumn_setPortletDropTypes(_1){this.portletDropTypes=_1;this.rowLayout.dropTypes=_1;this.getPortalRows().map(function(_2){_2.dropTypes=_1})},isc.A.addPortalRows=function isc_PortalColumn_addPortalRows(_1,_2){if(!isc.isAn.Array(_1))_1=[_1];var _3=this;_1=_1.map(function(_4){return _3.makePortalRow(_4)});this.rowLayout.addMembers(_1,_2)},isc.A.addPortalRow=function isc_PortalColumn_addPortalRow(_1,_2){this.addPortalRows(_1,_2)},isc.A.removePortalRows=function isc_PortalColumn_removePortalRows(_1){this.rowLayout.removeMembers(_1)},isc.A.removePortalRow=function isc_PortalColumn_removePortalRow(_1){this.removePortalRows(_1)},isc.A.getPortalRows=function isc_PortalColumn_getPortalRows(){return this.rowLayout.getMembers()},isc.A.getPortalRowNumber=function isc_PortalColumn_getPortalRowNumber(_1){return this.rowLayout.getMemberNumber(_1)},isc.A.getPortalRow=function isc_PortalColumn_getPortalRow(_1){return this.rowLayout.getMember(_1)},isc.A.getPortlets=function isc_PortalColumn_getPortlets(){var _1=[];this.getPortalRows().map(function(_2){_1.addList(_2.getPortlets())});return _1},isc.A.getPortletArray=function isc_PortalColumn_getPortletArray(){return this.getPortalRows().map(function(_1){return _1.getPortlets()})},isc.A.getPortalPosition=function isc_PortalColumn_getPortalPosition(_1){var _2=this.getPortalRows();for(var _3=0;_3<_2.length;_3++){var _4=_2[_3].getPortalPosition(_1);if(_4){_4.rowNum=_3;return _4}} return null},isc.A.getPortlet=function isc_PortalColumn_getPortlet(_1){var _2=this.getPortalRows();for(var x=0;x<_2.length;x++){var _4=_2[x].getPortlet(_1);if(_4)return _4} return null},isc.A.addPortlets=function isc_PortalColumn_addPortlets(_1,_2){if(!isc.isAn.Array(_1))_1=[_1];var _3=this;var _4=_1.map(function(_5){return _3.makePortalRow({portlets:_5})});this.addPortalRows(_4,_2)},isc.A.addPortlet=function isc_PortalColumn_addPortlet(_1,_2){this.addPortlets(_1,_2)},isc.A.addPortletToExistingRow=function isc_PortalColumn_addPortletToExistingRow(_1,_2,_3){var _4=this.rowLayout.getMembers();if(_4==null||_4.length<=_2){if(this.editContext&&this.editNode&&_1.editNode){this.editContext.addNode(_1.editNode,this.editNode,_4.length)}else{this.addPortlet(_1,_4.length)}}else{var _5=this.rowLayout.getMember(_2);if(_5.editContext&&_5.editNode&&_1.editNode){_5.editContext.addNode(_1.editNode,_5.editNode,_3)}else{_5.addPortlets(_1,_3)}}});isc.B._maxIndex=isc.C+26;isc.defineClass("PortalLayout","Layout");isc.A=isc.PortalLayout.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.vertical=false;isc.A.overflow=isc.Canvas.AUTO;isc.A.columnOverflow=isc.Canvas.AUTO;isc.A.canStretchColumnWidths=true;isc.A.canShrinkColumnWidths=true;isc.A.preventUnderflow=true;isc.A.preventColumnUnderflow=true;isc.A.preventRowUnderflow=true;isc.A.numColumns=2;isc.A.showColumnMenus=true;isc.A.columnBorder="1px solid gray";isc.A.canResizeColumns=true;isc.A.canAcceptDrop=true;isc.A.dropTypes=["PortalColumn"];isc.A.dropLineThickness=2;isc.A.dropLineProperties={backgroundColor:"blue"};isc.A.rowConstructor=isc.PortalColumn.getInstanceProperty("rowConstructor");isc.A.rowLayoutDefaults=isc.PortalColumn.getInstanceProperty("rowLayoutDefaults");isc.A.columnConstructor="PortalColumn";isc.B.push(isc.A.setColumnOverflow=function isc_PortalLayout_setColumnOverflow(_1){this.columnOverflow=_1;this.rowLayoutDefaults.overflow=_1;this.getPortalColumns().map(function(_2){_2.rowLayout.setOverflow(_1)})},isc.A.setCanStretchColumnWidths=function isc_PortalLayout_setCanStretchColumnWidths(_1){this.canStretchColumnWidths=_1;this.reflow("canStretchColumnWidths changed")},isc.A.setCanShrinkColumnWidths=function isc_PortalLayout_setCanShrinkColumnWidths(_1){this.canShrinkColumnWidths=_1;this.reflow("canShrinkColumnWidths changed")},isc.A.setStretchColumnWidthsProportionally=function isc_PortalLayout_setStretchColumnWidthsProportionally(_1){this.stretchColumnWidthsProportionally=_1;this.reflow("stretchColumnWidthsProportionally changed")},isc.A.setPreventUnderflow=function isc_PortalLayout_setPreventUnderflow(_1){if(this.preventUnderflow==_1)return;this.preventUnderflow=_1;this.reflow("preventUndeflow changed")},isc.A.setPreventColumnUnderflow=function isc_PortalLayout_setPreventColumnUnderflow(_1){if(this.preventColumnUnderflow==_1)return;this.preventColumnUnderflow=_1;this.getPortalColumns().map(function(_2){_2.rowLayout.reflow("preventColumnUnderflow changed")})},isc.A.setPreventRowUnderflow=function isc_PortalLayout_setPreventRowUnderflow(_1){if(this.preventRowUnderflow==_1)return;this.preventRowUnderflow=_1;this.getPortalColumns().map(function(_2){_2.getPortalRows().map(function(_3){_3.reflow("preventRowUnderflow changed")})})},isc.A.getNumColumns=function isc_PortalLayout_getNumColumns(){return this.getMembers().length},isc.A.setShowColumnMenus=function isc_PortalLayout_setShowColumnMenus(_1){if(this.showColumnMenus==_1)return;this.showColumnMenus=_1;this.getPortalColumns().map(function(_2){_2.setShowColumnHeader(_1)})},isc.A.setColumnBorder=function isc_PortalLayout_setColumnBorder(_1){this.columnBorder=_1;var _2=this.members||[];for(var i=0;i<_2.length;i++){_2[i].setBorder(_1)}},isc.A.setCanResizeColumns=function isc_PortalLayout_setCanResizeColumns(_1){this.canResizeColumns=_1;this.$129i()},isc.A.setCanResizeRows=function isc_PortalLayout_setCanResizeRows(_1){this.setCanResizePortlets(_1)},isc.A.setCanResizePortlets=function isc_PortalLayout_setCanResizePortlets(_1){this.canResizePortlets=_1;this.getPortalColumns().map(function(_2){_2.setCanResizePortlets(_1)})},isc.A.setPortletDropTypes=function isc_PortalLayout_setPortletDropTypes(_1){this.portletDropTypes=_1;this.getPortalColumns().map(function(_2){_2.setPortletDropTypes(_1)})},isc.A.willAcceptPortletDrop=function isc_PortalLayout_willAcceptPortletDrop(_1,_2,_3,_4){var _5=this.getPortalColumn(_2).rowLayout;if(_4!=null)_5=_5.getMember(_3);return _5.Super("willAcceptDrop",arguments)},isc.A.initWidget=function isc_PortalLayout_initWidget(){this.Super("initWidget",arguments);this.setCanResizeColumns(this.canResizeColumns);this.setColumnOverflow(this.columnOverflow);if(this.canResizeRows!=null)this.setCanResizePortlets(this.canResizeRows);if(this.portalColumns){this.addPortalColumns(this.portalColumns);delete this.portalColumns}else if(this.portlets){var _1=this;if(!isc.isAn.Array(this.portlets))this.portlets=[this.portlets];if(!isc.isAn.Array(this.portlets[0]))this.portlets=[this.portlets];this.portlets.map(function(_5){var _2=_1.makePortalColumn();_1.addPortalColumn(_2);if(!isc.isAn.Array(_5))_5=[_5];_5.map(function(_6){var _3=_2.makePortalRow();_2.addPortalRow(_3);_3.addPortlets(_6)})});delete this.portlets}else{if(this.numColumns){for(var x=0;x0){var _6=_1.map(function(_16){return isc.isA.Number(_16)}).and();if(_6){var _7=_1.sum();if(_7<_2){_1[_1.length-1]="*"}}}} var _8=this.Super("applyStretchResizePolicy",arguments);if(_4)_8=_1;var _9=_5.getPortalColumns().map("$87y");var _10=0;if(_5.canStretchColumnWidths){if(_5.stretchColumnWidthsProportionally){var _11=1;for(var i=0;i<_8.length;i++){var _13=(_9[i]/_8[i]);_11=Math.max(_11,_13)} if(_11>1){for(var i=0;i<_8.length;i++){_8[i]=_8[i]*_11}}}else{for(var i=0;i<_8.length;i++){if(_9[i]>_8[i]){_10+=_9[i]-_8[i];_8[i]=_9[i]}else if(_10&&_5.canShrinkColumnWidths){var _14=_8[i]-_9[i];var _15=Math.min(_10,_14);_8[i]-=_15;_10-=_15}} if(_10&&_5.canShrinkColumnWidths){for(var i=0;i<_8.length;i++){if(_9[i]<_8[i]){var _14=_8[i]-_9[i];var _15=Math.min(_10,_14);_8[i]-=_15;_10-=_15;if(_10==0)break}}}}} return _8});isc.B._maxIndex=isc.C+1;isc.ClassFactory.defineClass("Dialog","Window");isc.A=isc.Dialog;isc.A.$76=[];isc.A.OK_BUTTON_TITLE="OK";isc.A.APPLY_BUTTON_TITLE="Apply";isc.A.YES_BUTTON_TITLE="Yes";isc.A.NO_BUTTON_TITLE="No";isc.A.CANCEL_BUTTON_TITLE="Cancel";isc.A.DONE_BUTTON_TITLE="Done";isc.A.CONFIRM_TITLE="Confirm";isc.A.SAY_TITLE="Note";isc.A.WARN_TITLE="Warning";isc.A.ASK_TITLE="Question";isc.A.ASK_FOR_VALUE_TITLE="Please enter a value";isc.A.LOGIN_TITLE="Please log in";isc.A.USERNAME_TITLE="Username";isc.A.PASSWORD_TITLE="Password";isc.A.LOGIN_BUTTON_TITLE="Log in";isc.A.LOGIN_ERROR_MESSAGE="Invalid username or password";isc.A.OK={getTitle:function(){return isc.Dialog.OK_BUTTON_TITLE},width:75,click:function(){this.topElement.okClick()}};isc.A.APPLY={getTitle:function(){return isc.Dialog.APPLY_BUTTON_TITLE},width:75,click:function(){this.topElement.applyClick()}};isc.A.YES={getTitle:function(){return isc.Dialog.YES_BUTTON_TITLE},width:75,click:function(){this.topElement.yesClick()}};isc.A.NO={getTitle:function(){return isc.Dialog.NO_BUTTON_TITLE},width:75,click:function(){this.topElement.noClick()}};isc.A.CANCEL={getTitle:function(){return isc.Dialog.CANCEL_BUTTON_TITLE},width:75,click:function(){this.topElement.cancelClick()}};isc.A.DONE={getTitle:function(){return isc.Dialog.DONE_BUTTON_TITLE},width:75,click:function(){this.topElement.doneClick()}};isc.A=isc.Dialog.getPrototype();isc.A.defaultWidth=360;isc.A.title="Dialog";isc.A.styleName="dialogBackground";isc.A.skinImgDir="images/Dialog/";isc.A.canDragReposition=false;isc.A.canDragResize=false;isc.A.autoCenter=true;isc.A.bodyStyle="dialogBody";isc.A.bodyColor="#DDDDDD";isc.A.hiliteBodyColor="#FFFFFF";isc.A.bodyDefaults=isc.addProperties({},isc.Window.getInstanceProperty("bodyDefaults",true),{layoutTopMargin:15,layoutLeftMargin:15,layoutRightMargin:15,layoutBottomMargin:5});isc.A.messageStyle="normal";isc.A.messageLabelDefaults={width:"100%",canSelectText:true};isc.A.messageIconDefaults={width:32,height:32};isc.A.messageStackDefaults={height:1,layoutMargin:10,layoutBottomMargin:5,membersMargin:10};isc.A.autoChildParentMap=isc.addProperties({},isc.Window.getInstanceProperty("autoChildParentMap",true),{messageStack:"body",messageIcon:"messageStack",messageLabel:"messageStack"});isc.A.headerStyle="dialogHeader";isc.A.hiliteHeaderStyle="dialogHeaderHilite";isc.A.headerLabelDefaults=isc.addProperties({},isc.Window.getInstanceProperty("headerLabelDefaults",true),{styleName:"dialogHeaderText"});isc.A.showHeaderIcon=false;isc.A.showMinimizeButton=false;isc.A.showMaximizeButton=false;isc.A.showFooter=false;isc.A.showToolbar=null;isc.A.autoFocus=true;isc.A.askIcon="[SKIN]ask.png";isc.A.sayIcon="[SKIN]say.png";isc.A.warnIcon="[SKIN]warn.png";isc.A.confirmIcon="[SKIN]confirm.png";isc.A.notifyIcon="[SKIN]notify.png";isc.A.errorIcon="[SKIN]error.png";isc.A.stopIcon="[SKIN]stop.png";isc.A.toolbarDefaults=isc.addProperties({},isc.Window.getInstanceProperty("toolbarDefaults",true),{layoutAlign:"center",width:20,click:function(_1,_2){this.Super("click",arguments);var _3=isc.EH.getTarget(),_4=this.getMemberNumber(_3);if(_3!==this&&_4!==-1&&isc.isA.StatefulCanvas(_3)){this.topElement.buttonClick(_3,_4)}}});isc.A=isc.Dialog.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.namedLocatorChildren=["okButton","applyButton","yesButton","noButton","cancelButton","doneButton"];isc.B.push(isc.A.initWidget=function isc_Dialog_initWidget(){if(this.message!=null){this.autoSize=true} this.Super("initWidget",arguments);if(this.buttons){this.toolbarButtons=this.buttons}},isc.A.createChildren=function isc_Dialog_createChildren(){var _1=this.showToolbar;this.showToolbar=false;this.Super("createChildren");this.showToolbar=_1;if(this.message!=null){this.body.hPolicy="fill";this.addAutoChild("messageStack",null,isc.HLayout);if(this.icon!=null){var _2=isc.addProperties({src:this.getImgURL(this.icon)});if(this.iconSize&&this.iconSize!=0){isc.addProperties(_2,{width:this.iconSize,height:this.iconSize})} this.addAutoChild("messageIcon",_2,isc.Img)} var _3=this.message.evalDynamicString(this,{loadingImage:this.imgHTML(isc.Canvas.loadingImageSrc,isc.Canvas.loadingImageSize,isc.Canvas.loadingImageSize)});this.addAutoChild("messageLabel",{contents:_3,baseStyle:this.messageStyle},isc.Label)} if(this.showToolbar==null){this.showToolbar=this.toolbarButtons!=null&&this.toolbarButtons.length>0} if(this.showToolbar){this.makeToolbar()}},isc.A.draw=function isc_Dialog_draw(){if(!this.readyToDraw())return this;this.Super("draw",arguments);if(this.toolbar!=null&&this.autoFocus){var _1=this.toolbar.getMember(0);if(_1)_1.focus()} return this},isc.A.saveData=function isc_Dialog_saveData(){},isc.A.cancelClick=function isc_Dialog_cancelClick(){return this.closeClick()},isc.A.$7e=function isc_Dialog__closeButtonClick(){return this.cancelClick()},isc.A.okClick=function isc_Dialog_okClick(){this.saveData();this.clear();this.returnValue(true)},isc.A.applyClick=function isc_Dialog_applyClick(){this.saveData()},isc.A.yesClick=function isc_Dialog_yesClick(){this.returnValue(true)},isc.A.noClick=function isc_Dialog_noClick(){this.returnValue(false)},isc.A.doneClick=function isc_Dialog_doneClick(){this.clear();this.returnValue(true)},isc.A.buttonClick=function isc_Dialog_buttonClick(_1,_2){});isc.B._maxIndex=isc.C+12;isc.Dialog.changeDefaults("toolbarDefaults",{makeButton:function(_1){var _2=_1,_1=this.Super("makeButton",arguments);switch(_2) {case isc.Dialog.OK:this.creator.okButton=_1;_1.locatorParent=this.creator;break;case isc.Dialog.APPLY:this.creator.applyButton=_1;_1.locatorParent=this.creator;break;case isc.Dialog.YES:this.creator.yesButton=_1;_1.locatorParent=this.creator;break;case isc.Dialog.NO:this.creator.noButton=_1;_1.locatorParent=this.creator;break;case isc.Dialog.CANCEL:this.creator.cancelButton=_1;_1.locatorParent=this.creator;break;case isc.Dialog.DONE:this.creator.doneButton=_1;_1.locatorParent=this.creator;break} return _1}});isc.Dialog.Prompt={ID:"isc_globalPrompt",_generated:true,width:400,height:90,autoDraw:false,autoSize:true,isModal:true,showHeader:false,showFooter:false,showToolbar:false,dismissOnEscape:false,bodyStyle:"promptBody",bodyDefaults:isc.addProperties({},isc.Dialog.getInstanceProperty("bodyDefaults",true),{height:"100%"}),message:"Loading... ${loadingImage}",messageStackDefaults:isc.addProperties({},isc.Dialog.getInstanceProperty("messageStackDefaults",true),{height:"100%",width:"100%",layoutAlign:"center"}),messageLabelDefaults:isc.addProperties({},isc.Dialog.getInstanceProperty("messageLabelDefaults",true),{width:"100%",align:isc.Canvas.CENTER,valign:isc.Canvas.CENTER}),layoutMargin:0,showMessage:function(_1,_2){this.setProperties(_2);if(_1==null)_1=" " this.message=_1.evalDynamicString(this,{loadingImage:this.imgHTML(isc.Canvas.loadingImageSrc,isc.Canvas.loadingImageSize,isc.Canvas.loadingImageSize)});if(!this.$7f)this.createChildren();this.messageLabel.setContents(this.message==null?" ":this.message);this.show()},clearMessage:function(){if(this.pendingFade){isc.Timer.clearTimeout(this.pendingFade);delete this.pendingFade} if(this.isAnimating(this.$zb)){this.finishAnimation(this.$zb)} this.clear();if(this.$89e){this.fireCallback(this.$89e);delete this.$89e}},fadeDuration:2000,fadeMessage:function(){delete this.pendingFade;this.animateHide("fade",{target:this,methodName:"clearMessage"})},destroy:function(){isc.Dialog.Prompt=this.$77;return this.Super("destroy",arguments)}};isc.addGlobal("showPrompt",function(_1,_2){var _3=isc.Dialog.Prompt;if(!isc.isA.Dialog(_3)){var _4=_3;_3=isc.Dialog.Prompt=isc.Dialog.create(_3);_3.$77=_4} isc.Dialog.Prompt.showMessage(_1,_2)});isc.addGlobal("clearPrompt",function(){if(!isc.isA.Dialog(isc.Dialog.Prompt))return;isc.Dialog.Prompt.clearMessage()});isc.addGlobal("showFadingPrompt",function(_1,_2,_3,_4){if(isc.isA.Canvas(isc.Dialog.Prompt)&&isc.Dialog.Prompt.isDrawn()){isc.clearPrompt()} isc.showPrompt(_1,_4);var _5=isc.Dialog.Prompt;if(_2==null)_2=_5.fadeDuration;_5.$89e=_3;_5.pendingFade=_5.delayCall("fadeMessage",[],_2)});isc.Dialog.Warn={ID:"isc_globalWarn",_generated:true,width:360,height:138,isModal:true,canDragReposition:true,keepInParentRect:true,autoDraw:false,autoSize:true,autoCenter:true,buttons:[isc.Dialog.OK],message:"Your message here!",showMessage:function(_1,_2){if(_1==null)_1=" ";this.message=_1;if(!this.icon&&_2.icon)this.icon=_2.icon;var _3=_2.autoSize;if(_3&&!this.autoSize){delete _2.autoSize} this.setProperties(_2);if(_2.callback==null)delete this.callback;if(!this.$7f)this.createChildren();this.messageLabel.setContents(this.message==null?" ":this.message);if(this.icon){if(this.messageIcon){this.messageIcon.setSrc(this.getImgURL(this.icon));this.messageIcon.show()}}else if(this.messageIcon)this.messageIcon.hide();this.toolbar.layoutChildren();if(this.messageLabel.isDirty())this.messageLabel.redraw();if(this.isDrawn()){this.messageStack.layoutChildren();this.body.layoutChildren();this.layoutChildren()} this.show();if(_3&&!this.autoSize){this.setAutoSize(true)} if(this.toolbar!=null&&this.autoFocus){var _4=this.toolbar.getMember(0);_4.focus()}},destroy:function(){isc.Dialog.Warn=this.$77;return this.Super("destroy",arguments)}};isc.addGlobal("showMessage",function(_1,_2,_3,_4){if((isc.isA.String(_4)||isc.isA.Function(_4))||(_4==null&&isc.isAn.Object(_3)&&_3.methodName==null&&_3.action==null&&_3.method==null)) {var _5=_4;_4=_3;_3=_5} if(!isc.isA.Dialog(isc.Dialog.Warn)||(isc.isA.Function(isc.Dialog.Warn.initialized)&&!isc.Dialog.Warn.initialized())) {var _6=isc.addProperties({},isc.Dialog.Warn);isc.Dialog.Warn=isc.Dialog.create(isc.Dialog.Warn);isc.Dialog.Warn.$77=_6} if(!_4)_4={};if(_4.toolbarButtons!=null){_4.buttons=_4.toolbarButtons;delete _4.toolbarButtons} if(!_4.buttons){if(_2=="confirm"){_4.buttons=[isc.Dialog.OK,isc.Dialog.CANCEL]}else if(_2=="ask"){_4.buttons=[isc.Dialog.YES,isc.Dialog.NO]}else{_4.buttons=[isc.Dialog.OK]}} if(_4.width==null){_4.autoSize=isc.Dialog.Warn.$77.autoSize;_4.width=isc.Dialog.Warn.$77.width}else{_4.autoSize=false} if(!_4.title){if(_2=="confirm")_4.title=isc.Dialog.CONFIRM_TITLE;else if(_2=="ask")_4.title=isc.Dialog.ASK_TITLE;else if(_2=="warn")_4.title=isc.Dialog.WARN_TITLE;else _4.title=isc.Dialog.SAY_TITLE} isc.$78(_4);if(!_4.icon)_4.icon=isc.Dialog.getInstanceProperty(_2+"Icon");if(_3)_4.callback=_3;isc.Dialog.Warn.showMessage(_1,_4)});isc.addGlobal("getLastDialog",function(){return isc.Dialog.Warn});isc.$78=function(_1){var _2=this.$79=this.$79||["okClick","yesClick","noClick","cancelClick","closeClick","applyClick"];for(var i=0;i<_2.length;i++){var _4=_2[i];if(!_1[_4]){_1[_4]=isc.Dialog.getInstanceProperty(_4)}}} isc.addGlobal("warn",function(_1,_2,_3){isc.showMessage(_1,"warn",_2,_3)});isc.addGlobal("say",function(_1,_2,_3){isc.showMessage(_1,"say",_2,_3)});isc.addGlobal("ask",function(_1,_2,_3){isc.showMessage(_1,"ask",_2,_3)});isc.confirm=function(_1,_2,_3){isc.showMessage(_1,"confirm",_2,_3)};isc.askForValue=function(_1,_2,_3){_3=_3||isc.emptyObject;var _4=isc.Dialog.Ask;if(!_4){var _5=isc.DynamicForm.create({numCols:1,padding:3,items:[{name:"message",type:"blurb"},{name:"value",showTitle:false,width:"*"}],saveOnEnter:true,submit:function(){this.askDialog.okClick()}});_4=isc.Dialog.Ask=isc.Dialog.create({items:[_5],askForm:_5,canDragReposition:true,isModal:true,ariaRole:"alertdialog",bodyProperties:{overflow:"visible"},overflow:"visible"});_5.askDialog=_4;_4.$8a=function(){this.clear();this.returnValue(this.askForm.getValue("value"))}} var _6=_3.left!=null||_3.top!=null;if(_3.toolbarButtons!=null){_3.buttons=_3.toolbarButtons;delete _3.toolbarButtons} _3=isc.addProperties({callback:_2,title:_3.title||isc.Dialog.ASK_FOR_VALUE_TITLE,autoCenter:!_6,left:(_6?_3.left||"10%":null),top:(_6?_3.top||"20%":null),width:_3.width||"80%",height:_3.height||20,buttons:_3.buttons||[isc.Dialog.OK,isc.Dialog.CANCEL],okClick:_3.okClick||_4.$8a},_3);isc.$78(_3);_4.setProperties(_3);_4.askForm.setValues({message:_1||"Please enter a value:",value:_3.defaultValue||""});_4.show();_4.askForm.focusInItem("value")};isc.addGlobal("dismissCurrentDialog",function(){if(isc.Dialog.Warn&&isc.Dialog.Warn.hide){isc.Dialog.Warn.hide()} if(isc.Dialog.Ask&&isc.Dialog.Ask.hide){isc.Dialog.Ask.hide()}});isc.ClassFactory.defineClass("LoginDialog","Window");isc.LoginDialog.registerStringMethods({register:"values, form",lostPassword:"values, form"});isc.A=isc.LoginDialog;isc.A.firstTimeInit=true;isc.A=isc.LoginDialog.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.dismissable=false;isc.A.allowBlankPassword=false;isc.A.showLostPasswordLink=false;isc.A.showRegistrationLink=false;isc.A.errorStyle="formCellError";isc.A.lostPasswordItemTitle="Lost Password?";isc.A.registrationItemTitle="Register";isc.A.autoCenter=true;isc.A.autoSize=true;isc.A.isModal=true;isc.A.showMinimizeButton=false;isc.A.items=["autoChild:loginForm"];isc.A.loginFormConstructor="DynamicForm";isc.A.loginFormDefaults={numCols:2,padding:4,autoDraw:false,saveOnEnter:true,submit:function(){var _1=this,_2=[{username:this.getValue("usernameItem"),password:this.getValue("passwordItem")}];_2[1]=function(_3,_4){if(_3){_1.complete()}else{if(_4!=null) _1.setValue("loginFailureItem",_4) _1.showItem("loginFailureItem");_1.focusInItem("passwordItem")}};this.fireCallback(this.loginDialog.loginFunc,"credentials,dialogCallback",_2)},complete:function(_1){this.loginDialog.hide();this.setValue("loginFailureItem",this.loginDialog.errorMessage);this.setValue("usernameItem","");this.setValue("passwordItem","");this.hideItem("loginFailureItem");if(_1){this.fireCallback(this.loginFunc,"credentials,dialogCallback")}else{var _2=isc.Cookie.get("loginRedirect");if(_2)window.location.replace(_2)}}};isc.A.formDSDefaults={clientOnly:true,useAllDataSourceFields:true};isc.A.formDefaultFields=[{name:"loginFailureItem",type:"blurb",colSpan:2,visible:false},{name:"usernameItem",required:true,browserSpellCheck:false,browserAutoCorrect:false,browserAutoCapitalize:false,keyPress:function(_1,_2,_3){if(_3=="Enter"){_2.focusInItem("passwordItem");return false}}},{name:"passwordItem",type:"password",required:true},{name:"loginButton",type:"button",type:"submit"},{name:"lostPasswordItem",type:"link",target:"javascript",canEdit:false,endRow:true,numCols:2,colSpan:2,showTitle:false,click:"form.loginDialog.lostPassword(form.getValues(), form)"},{name:"registrationItem",type:"link",target:"javascript",canEdit:false,endRow:true,numCols:2,colSpan:2,showTitle:false,click:"form.loginDialog.register(form.getValues(), form)"}];isc.B.push(isc.A.getDynamicDefaults=function isc_LoginDialog_getDynamicDefaults(_1){switch(_1){case"loginForm":var _2={loginDialog:this,values:{usernameItem:this.username||"",passwordItem:this.password||"",loginFailureItem:this.errorMessage},fields:this.formFields};var _3=isc.clone(this.formDefaultFields);for(var j=0;j<_3.length;j++){var _5=_3[j],_6=_5.name;isc.addProperties(_5,this[_6+"Defaults"],this[_6+"Properties"]);if(null!=this[_6+"Title"]){_5.title=this[_6+"Title"];if(_5.type=='link'&&!_5.showTitle) _5.linkTitle=this[_6+"Title"]} var _7=this["show"+_6.substr(0,1).toUpperCase()+_6.substr(1)];if(null!=_7)_5.visible=_7;switch(_6){case"registrationItem":_5.visible=this.showRegistrationLink;break;case"lostPasswordItem":_5.visible=this.showLostPasswordLink;break;case"loginFailureItem":_5.cellStyle=this.errorStyle;break;case"passwordItem":_5.required=!this.allowBlankPassword;break} _3[j]=_5} _2.dataSource=isc.DataSource.create(this.formDSDefaults,{fields:_3});return _2} return null},isc.A.cancelClick=function isc_LoginDialog_cancelClick(){this.loginForm.complete(true)},isc.A.init=function isc_LoginDialog_init(){if(isc.LoginDialog.firstTimeInit){isc.LoginDialog.firstTimeInit=false;isc.LoginDialog.addProperties({title:isc.Dialog.LOGIN_TITLE,usernameItemTitle:isc.Dialog.USERNAME_TITLE,passwordItemTitle:isc.Dialog.PASSWORD_TITLE,loginButtonTitle:isc.Dialog.LOGIN_BUTTON_TITLE,errorMessage:isc.Dialog.LOGIN_ERROR_MESSAGE})} this.dismissOnEscape=this.showCloseButton=this.dismissable;this.Super("init",arguments);this.loginForm.focusInItem("usernameItem");if(this.username)this.loginForm.setValue("usernameItem",this.username);if(this.password)this.loginForm.setValue("passwordItem",this.password)});isc.B._maxIndex=isc.C+3;isc.showLoginDialog=function(_1,_2){return isc.LoginDialog.create(isc.addProperties({},_2,{autoDraw:true,loginFunc:_1}))} isc.defineClass("MultiSortPanel","Layout");isc.A=isc.MultiSortPanel.getPrototype();isc.A.vertical=true;isc.A.overflow="visible";isc.A.addLevelButtonTitle="Add Level";isc.A.deleteLevelButtonTitle="Delete Level";isc.A.copyLevelButtonTitle="Copy Level";isc.A.invalidListPrompt="Columns may only be used once: '${title}' is used multiple times.";isc.A.propertyFieldTitle="Column";isc.A.directionFieldTitle="Order";isc.A.ascendingTitle="Ascending";isc.A.descendingTitle="Descending";isc.A.firstSortLevelTitle="Sort by";isc.A.otherSortLevelTitle="Then by";isc.A.topLayoutDefaults={_constructor:"HLayout",overflow:"visible",height:22,align:"left",membersMargin:5,extraSpace:5};isc.A.addLevelButtonDefaults={_constructor:"IButton",icon:"[SKINIMG]actions/add.png",autoFit:true,height:22,showDisabled:false,autoParent:"topLayout",click:"this.creator.addLevel()"};isc.A.deleteLevelButtonDefaults={_constructor:"IButton",icon:"[SKINIMG]actions/remove.png",autoFit:true,height:22,showDisabled:false,autoParent:"topLayout",click:"this.creator.deleteSelectedLevel()"};isc.A.copyLevelButtonDefaults={_constructor:"IButton",icon:"[SKINIMG]RichTextEditor/copy.png",autoFit:true,height:22,showDisabled:false,autoParent:"topLayout",click:"this.creator.copySelectedLevel()"};isc.A.levelUpButtonTitle="Move Level Up";isc.A.levelUpButtonDefaults={_constructor:"ImgButton",src:"[SKINIMG]common/arrow_up.gif",height:22,width:20,imageType:"center",showDisabled:false,showRollOver:false,showDown:false,showFocused:false,autoParent:"topLayout",click:"this.creator.moveSelectedLevelUp()"};isc.A.levelDownButtonTitle="Move Level Down";isc.A.levelDownButtonDefaults={_constructor:"ImgButton",src:"[SKINIMG]common/arrow_down.gif",height:22,width:20,imageType:"center",showDisabled:false,showRollOver:false,showDown:false,showFocused:false,autoParent:"topLayout",click:"this.creator.moveSelectedLevelDown()"};isc.A.optionsGridDefaults={_constructor:"ListGrid",width:"100%",height:"*",canSort:false,canReorderFields:false,canResizeFields:false,canEdit:true,canEditNew:true,selectionType:"single",selectionProperty:"$73s",defaultFields:[{name:"sortSequence",title:" ",showTitle:false,canEdit:false,width:80,canHide:false,showDefaultContextMenu:false,formatCellValue:function(_1,_2,_3,_4,_5){return _3==0?_5.creator.firstSortLevelTitle:_5.creator.otherSortLevelTitle}},{name:"property",title:" ",type:"select",defaultToFirstOption:true,showDefaultContextMenu:false,changed:function(_1,_2,_3){_2.grid.getRecord(_2.rowNum).normalizer=null;_2.grid.creator.fireChangeEvent()}},{name:"direction",title:" ",type:"select",width:100,showDefaultContextMenu:false,defaultToFirstOption:true,changed:"item.grid.creator.fireChangeEvent()"}],selectionUpdated:function(_1,_2){this.creator.setButtonStates()},bodyKeyPress:function(_1){if(_1.keyName=="Delete"&&this.anySelected())this.removeSelectedData();else this.Super("bodyKeyPress",arguments)},extraSpace:5};isc.A.propertyFieldNum=1;isc.A.directionFieldNum=2;isc.A.topAutoChildren=["topLayout","addLevelButton","deleteLevelButton","copyLevelButton"];isc.A=isc.MultiSortPanel.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getNumLevels=function isc_MultiSortPanel_getNumLevels(){return this.optionsGrid.data.length},isc.A.getSortLevel=function isc_MultiSortPanel_getSortLevel(_1){return this.getSortSpecifier(this.data.get(_1))},isc.A.getSort=function isc_MultiSortPanel_getSort(){var _1=this.optionsGrid,_2=_1.data.duplicate(),_3=_1.getEditRow(),_4=isc.isA.Number(_3)?_1.getEditValues(_3):null;if(_4)_2[_3]=isc.addProperties(_2[_3],_4);return this.getSortSpecifiers(_2)},isc.A.setSort=function isc_MultiSortPanel_setSort(_1){this.setSortSpecifiers(_1)},isc.A.validate=function isc_MultiSortPanel_validate(){var _1=this.optionsGrid,_2=_1.data,_3=[];for(var i=0;i<_2.length;i++){var _5=_2.get(i);if(_3.contains(_5.property)){var _6=this,_7=this.optionsGrid.getField("property").valueMap[_5.property],_8=this.invalidListPrompt.evalDynamicString(this,{title:_7});isc.warn(_8,function(){_6.recordFailedValidation(_5,i)});return false} _3.add(_5.property)} return true},isc.A.recordFailedValidation=function isc_MultiSortPanel_recordFailedValidation(_1){var _2=this.optionsGrid,_3=(isc.isA.Number(_1)?_1:_2.getRecordIndex(_1)),_1=(!isc.isA.Number(_1)?_1:_2.data.get(_1));_2.selectSingleRecord(_1);_2.startEditing(_3,1)},isc.A.getSortSpecifier=function isc_MultiSortPanel_getSortSpecifier(_1){if(isc.isA.Number(_1))_1=this.optionsGrid.data.get(_1);return this.optionsGrid.removeSelectionMarkers(_1)},isc.A.getSortSpecifiers=function isc_MultiSortPanel_getSortSpecifiers(_1){return this.optionsGrid.removeSelectionMarkers(_1)},isc.A.setSortSpecifiers=function isc_MultiSortPanel_setSortSpecifiers(_1){if(_1&&_1.length>0){for(var i=0;i<_1.length;i++){if(_1[i].owningField){_1[i].property=_1[i].owningField}}} this.optionsGrid.setData(_1)},isc.A.initWidget=function isc_MultiSortPanel_initWidget(){this.Super("initWidget",arguments);this.$74x=this.maxLevels;this.addAutoChildren(this.topAutoChildren);this.addAutoChild("levelUpButton",{prompt:this.levelUpButtonTitle});this.addAutoChild("levelDownButton",{prompt:this.levelDownButtonTitle});this.addAutoChild("optionsGrid");this.setSortFields();this.setSortDirections();this.setButtonTitles();this.addMember(this.topLayout);this.addMember(this.optionsGrid);this.setButtonStates();if(this.initialSort)this.setSortSpecifiers(this.initialSort);else this.addLevel()},isc.A.setButtonTitles=function isc_MultiSortPanel_setButtonTitles(_1){if(this.addLevelButton)this.addLevelButton.setTitle(this.addLevelButtonTitle);if(this.deleteLevelButton)this.deleteLevelButton.setTitle(this.deleteLevelButtonTitle);if(this.copyLevelButton)this.copyLevelButton.setTitle(this.copyLevelButtonTitle)},isc.A.setButtonStates=function isc_MultiSortPanel_setButtonStates(){var _1=this.getNumLevels(),_2=this.maxLevels,_3=this.optionsGrid,_4=_3.anySelected(),_5=_3.getRecordIndex(_3.getSelectedRecord());if(this.addLevelButton)this.addLevelButton.setDisabled(_1>=_2);if(this.deleteLevelButton)this.deleteLevelButton.setDisabled(!_4);if(this.copyLevelButton)this.copyLevelButton.setDisabled(!_4||_1>=_2);if(this.levelUpButton)this.levelUpButton.setDisabled(!_4||_5==0);if(this.levelDownButton)this.levelDownButton.setDisabled(!_4||_5==_1-1)},isc.A.setFields=function isc_MultiSortPanel_setFields(_1){if(isc.DataSource&&isc.isA.DataSource(_1))_1=isc.getValues(_1.getFields());this.fields=isc.shallowClone(_1);this.setSortFields();this.optionsGrid.refreshFields();this.setButtonStates()},isc.A.setSortFields=function isc_MultiSortPanel_setSortFields(){var _1=[];this.optionsGrid.getField("property").title=this.propertyFieldTitle;if(!this.fields)return;for(var i=0;i_6)this.maxLevels=_6},isc.A.applyHeaderSpans=function isc_MultiSortPanel_applyHeaderSpans(_1,_2,_3){for(var i=0;i<_1.length;i++){var _5=_3;var _6=_1[i];_5+=_6.title+this.creator.spanTitleSeparator;if(_6.spans){this.applyHeaderSpans(_6.spans,_2,_5)}else{for(var j=0;j<_6.fields.length;j++){var _8=_6.fields[j];if(_2[_8]==null){}else{_2[_8]=_5+_2[_8]}}}}},isc.A.setSortDirections=function isc_MultiSortPanel_setSortDirections(){this.optionsGrid.getField("direction").title=this.directionFieldTitle;this.optionsGrid.getField("direction").valueMap={"ascending":this.ascendingTitle,"descending":this.descendingTitle}},isc.A.addLevel=function isc_MultiSortPanel_addLevel(){var _1=this.optionsGrid,_2=_1.getRecordIndex(_1.getSelectedRecord()),_3=_1.getField("property"),_4=_1.getField("direction"),_5=_2>=0?_2+1:_1.data.length,_6={property:isc.firstKey(_3.valueMap),direction:isc.firstKey(_4.valueMap)};_1.data.addAt(_6,_5);this.editRecord(_5);this.setButtonStates();this.fireChangeEvent()},isc.A.deleteSelectedLevel=function isc_MultiSortPanel_deleteSelectedLevel(){var _1=this.optionsGrid,_2=_1.getRecordIndex(_1.getSelectedRecord());if(_2>=0){_1.data.removeAt(_2);this.setButtonStates();this.fireChangeEvent()}},isc.A.copySelectedLevel=function isc_MultiSortPanel_copySelectedLevel(){var _1=this.optionsGrid,_2=_1.getRecordIndex(_1.getSelectedRecord()),_3=isc.shallowClone(_1.getRecord(_2));if(_2>=0){_1.data.addAt(_3,_2+1);this.editRecord(_2+1);this.setButtonStates();this.fireChangeEvent()}},isc.A.editRecord=function isc_MultiSortPanel_editRecord(_1){this.optionsGrid.selectSingleRecord(_1);this.optionsGrid.startEditing(_1,this.propertyFieldNum)},isc.A.moveSelectedLevelUp=function isc_MultiSortPanel_moveSelectedLevelUp(){var _1=this.optionsGrid,_2=_1.getRecordIndex(_1.getSelectedRecord());if(_2>0){_1.data.slide(_2,_2-1);this.fireChangeEvent();this.optionsGrid.selectSingleRecord(_2-1)}},isc.A.moveSelectedLevelDown=function isc_MultiSortPanel_moveSelectedLevelDown(){var _1=this.optionsGrid,_2=_1.getRecordIndex(_1.getSelectedRecord());if(_2>=0&&_2<_1.data.length-1){_1.data.slide(_2,_2+1);this.fireChangeEvent();this.optionsGrid.selectSingleRecord(_2+1)}},isc.A.fireChangeEvent=function isc_MultiSortPanel_fireChangeEvent(){this.sortChanged(isc.shallowClone(this.getSort()))},isc.A.sortChanged=function isc_MultiSortPanel_sortChanged(_1){});isc.B._maxIndex=isc.C+24;isc.defineClass("MultiSortDialog","Window");isc.A=isc.MultiSortDialog;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.askForSort=function isc_c_MultiSortDialog_askForSort(_1,_2,_3){var _4=isc.isAn.Array(_1)?_1:isc.DataSource&&isc.isA.DataSource(_1)?isc.getValues(_1.getFields()):isc.isA.DataBoundComponent(_1)?_1.getAllFields():null;if(!_4)return;var _5={autoDraw:true,fields:_4,initialSort:_2,callback:_3};if(isc.ListGrid&&isc.isA.ListGrid(_1)&&_1.headerSpans){_5.headerSpans=_1.headerSpans;_5.showHeaderSpanTitles=_1.showHeaderSpanTitlesInSortEditor;_5.spanTitleSeparator=_1.sortEditorSpanTitleSeparator} isc.MultiSortDialog.create(_5)});isc.B._maxIndex=isc.C+1;isc.A=isc.MultiSortDialog.getPrototype();isc.A.isModal=true;isc.A.width=500;isc.A.height=250;isc.A.vertical=true;isc.A.autoCenter=true;isc.A.showMinimizeButton=false;isc.A.mainLayoutDefaults={_constructor:"VLayout",width:"100%",height:"100%",layoutMargin:5};isc.A.multiSortPanelDefaults={_constructor:"MultiSortPanel",width:"100%",height:"*",autoParent:"mainLayout"};isc.A.title="Sort";isc.A.applyButtonTitle="Apply";isc.A.cancelButtonTitle="Cancel";isc.A.bottomLayoutDefaults={_constructor:"HLayout",width:"100%",height:22,align:"right",membersMargin:5,autoParent:"mainLayout"};isc.A.applyButtonDefaults={_constructor:"IButton",autoFit:true,height:22,autoParent:"bottomLayout",click:"this.creator.apply()"};isc.A.cancelButtonDefaults={_constructor:"IButton",autoFit:true,height:22,autoParent:"bottomLayout",click:"this.creator.cancel()"};isc.A.bottomAutoChildren=["bottomLayout","applyButton","cancelButton"];isc.A=isc.MultiSortDialog.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$783=["initialSort","maxLevels","invalidListPrompt","addLevelButtonTitle","addLevelButtonDefaults","addLevelButtonProperties","deleteLevelButtonTitle","deleteLevelButtonDefaults","deleteLevelButtonProperties","levelUpButtonTitle","levelDownButtonTitle","copyLevelButtonTitle","copyLevelButtonDefaults","copyLevelButtonProperties","optionsGridDefaults","optionsGridProperties","firstSortLevelTitle","propertyFieldTitle","directionFieldTitle","descendingTitle","ascendingTitle","otherSortLevelTitle"];isc.B.push(isc.A.initWidget=function isc_MultiSortDialog_initWidget(){this.Super("initWidget",arguments);this.addAutoChild("mainLayout");this.addAutoChild("multiSortPanel",this.getPassthroughProperties());this.addAutoChildren(this.bottomAutoChildren);this.addItem(this.mainLayout);this.optionsGrid=this.multiSortPanel.optionsGrid;this.setButtonStates()},isc.A.getPassthroughProperties=function isc_MultiSortDialog_getPassthroughProperties(){var _1=this.$783,_2={};for(var i=0;i<_1.length;i++){var _4=_1[i];if(this[_4]!=null)_2[_4]=this[_4]} if(this.fields)_2.fields=isc.shallowClone(this.fields);return _2},isc.A.setButtonStates=function isc_MultiSortDialog_setButtonStates(){this.multiSortPanel.setButtonStates();this.applyButton.setTitle(this.applyButtonTitle);this.cancelButton.setTitle(this.cancelButtonTitle)},isc.A.getNumLevels=function isc_MultiSortDialog_getNumLevels(){return this.multiSortPanel.getNumLevels()},isc.A.getSortLevel=function isc_MultiSortDialog_getSortLevel(_1){return this.multiSortPanel.getSortLevel(_1)},isc.A.getSort=function isc_MultiSortDialog_getSort(){return this.multiSortPanel.getSort()},isc.A.validate=function isc_MultiSortDialog_validate(){return this.multiSortPanel.validate()},isc.A.closeClick=function isc_MultiSortDialog_closeClick(){this.cancel();return false},isc.A.cancel=function isc_MultiSortDialog_cancel(){if(this.callback) this.fireCallback(this.callback,["sortLevels"],[null]);this.hide();this.markForDestroy()},isc.A.apply=function isc_MultiSortDialog_apply(){if(this.optionsGrid.getEditRow()!=null)this.optionsGrid.endEditing();if(!this.validate())return;if(this.callback){var _1=isc.shallowClone(this.getSort());this.fireCallback(this.callback,["sortLevels"],[_1])} this.hide();this.markForDestroy()});isc.B._maxIndex=isc.C+10;isc.ClassFactory.defineClass("TabSet","Canvas");isc.A=isc.TabSet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.overflow="hidden";isc.A.defaultTabIconSize=16;isc.A.tabProperties={};isc.A.simpleTabBaseStyle="tabButton";isc.A.tabBarPosition=isc.Canvas.TOP;isc.A.tabBarThickness=21;isc.A.selectedTab=0;isc.A.closeTabIcon="[SKIN]/TabSet/close.png";isc.A.closeTabIconSize=16;isc.A.ariaCloseableSuffix=", closeable";isc.A.moreTabCount=5;isc.A.moreTabTitle="More";isc.A.moreTabImage="[SKINIMG]/iOS/more.png";isc.A.moreTabDefaults={ariaRole:"tab"};isc.A.moreTabProperties={};isc.A.moreTabPaneProperties={};isc.A.moreTabPaneDefaults={_constructor:"VLayout",width:"100%",height:"100%",setData:function(_1){this.creator.moreTabPaneTable.setData(_1)}};isc.A.moreTabPaneNavBarDefaults={_constructor:"NavigationBar",controls:["titleLabel"],autoParent:"moreTabPane"};isc.A.moreTabPaneTableDefaults={_constructor:"TableView",width:"100%",height:"100%",recordNavigationClick:function(_1){this.creator.$8c(_1.button)},autoParent:"moreTabPane"};isc.A.tabBarControls=["tabScroller","tabPicker"];isc.A.showTabScroller=true;isc.A.showTabPicker=true;isc.A.tabBarControlLayoutConstructor="Layout";isc.A.tabBarControlLayoutDefaults={};isc.A.animateTabScrolling=true;isc.A.scrollerDefaults={_constructor:isc.StretchImgButton,noDoubleClicks:true,showRollOver:false,showDown:false,mouseMove:function(){if(!this.creator.showScrollerRollOver)return;var _1=this.inWhichPart();var _2=_1==this.backPartName?this.forwardPartName:this.backPartName;this.setState(isc.StatefulCanvas.STATE_UP,_2);this.setState(isc.StatefulCanvas.STATE_OVER,_1)},mouseOut:function(){if(!this.creator.showScrollerRollOver)return;this.setState(isc.StatefulCanvas.STATE_UP,this.forwardPartName);this.setState(isc.StatefulCanvas.STATE_UP,this.backPartName)},mouseDown:function(){this.clickPart=this.inWhichPart();this.setState(isc.StatefulCanvas.STATE_DOWN,this.clickPart)},mouseUp:function(){this.setState(isc.StatefulCanvas.STATE_UP,this.clickPart)},mouseStillDown:function(){this.click()},click:function(){var _1=this.clickPart==this.backPartName;if(this.isRTL())_1=!_1;if(_1)this.creator.scrollBack();else this.creator.scrollForward();return false}};isc.A.scrollerButtonSize=16;isc.A.tabPickerDefaults={_constructor:isc.ImgButton,showRollOver:false,click:function(){this.creator.showTabPickerMenu()}};isc.A.pickerButtonSize=16;isc.A.touchPickerButtonSize=16;isc.A.skinImgDir="images/TabSet/";isc.A.symmetricScroller=true;isc.A.scrollerSrc="[SKIN]/scroll.gif";isc.A.scrollerHSrc="[SKIN]hscroll.gif";isc.A.scrollerVSrc="[SKIN]vscroll.gif";isc.A.symmetricPickerButton=true;isc.A.pickerButtonSrc="[SKIN]/picker.gif";isc.A.pickerButtonHSrc="[SKIN]hpicker.gif";isc.A.pickerButtonVSrc="[SKIN]vpicker.gif";isc.A.paneContainerConstructor="PaneContainer";isc.A.paneContainerClassName="tabSetContainer";isc.A.paneContainerOverflow=isc.Canvas.AUTO;isc.A.symmetricEdges=true;isc.A.titleEditorDefaults={name:"title",type:"text",showTitle:false};isc.A.useIOSTabs=false;isc.A.addTabButtonIcon="[SKIN]actions/add.png";isc.B.push(isc.A.setPaneContainerOverflow=function isc_TabSet_setPaneContainerOverflow(_1){this.paneContainerOverflow=_1;if(this.paneContainer)this.paneContainer.setOverflow(_1)});isc.B._maxIndex=isc.C+1;isc.defineClass("SimpleTabButton","Button");isc.A=isc.SimpleTabButton.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.width=null;isc.A.height=null;isc.B.push(isc.A.setIcon=function isc_SimpleTabButton_setIcon(_1){var _2=this.parentElement?this.parentElement.parentElement:null;if(_2!=null&&_2.useIOSTabs&&!_2.canCloseTab(this)){this.iOSIcon=null} this.Super("setIcon",arguments)},isc.A.getTitle=function isc_SimpleTabButton_getTitle(){var _1=this.parentElement?this.parentElement.parentElement:null;if(_1!=null&&_1.useIOSTabs&&!_1.canCloseTab(this)){if(!this.iOSIcon&&this.icon){this.iOSIcon=this.icon;this.icon=null} var _2;if(this.iOSIcon==null){_2=" "}else{var _3={src:isc.Canvas.$wz,width:30,height:30,extraCSSText:"-webkit-mask-box-image:url("+this.getImgURL(this.iOSIcon)+");background-color:#000;"};_2=isc.Canvas.imgHTML(_3)} return _2+""+this.title+""} return this.Super("getTitle",arguments)},isc.A.setPane=function isc_SimpleTabButton_setPane(_1){this.parentElement.parentElement.updateTab(this,_1)},isc.A.selectTab=function isc_SimpleTabButton_selectTab(){this.parentElement.parentElement.selectTab(this)});isc.B._maxIndex=isc.C+4;isc.A=isc.TabSet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.simpleTabButtonConstructor=isc.SimpleTabButton;isc.A.tabBarConstructor=isc.TabBar;isc.A.disablePaneWithTab=true;isc.A.$537={top:"topEdgeSizes",bottom:"bottomEdgeSizes",left:"leftEdgeSizes",right:"rightEdgeSizes"};isc.A.$538={top:"topEdgeOffsets",bottom:"bottomEdgeOffsets",left:"leftEdgeOffsets",right:"rightEdgeOffsets"};isc.A.scrollerBackHMarginSize=0;isc.A.scrollerBackVMarginSize=0;isc.A.scrollerForwardHMarginSize=0;isc.A.scrollerForwardVMarginSize=0;isc.A.namedLocatorChildren=["tabBarControlLayout"];isc.B.push(isc.A.initWidget=function isc_TabSet_initWidget(){this.showEdges=false;this.Super("initWidget",arguments);if(!isc.Browser.$158n&&this.useIOSTabs){this.logWarn("useIOSTabs was enabled on this TabSet, but iOS tabs are not supported in the current browser. Setting useIOSTabs to false.");this.useIOSTabs=false} if(this.tabs==null)this.tabs=[];if(this.tabBarDefaults==null)this.tabBarDefaults={};this.tabProperties=this.tabProperties||this.tabInstanceDefaults||{};this.dynamicTabProperties={};var _1=this.tabBarPosition;var _2=(_1=="left")||(_1=="right");if(this.tabBarAlign==null){this.tabBarAlign=(_2?"top":(this.isRTL()?"right":"left"))} if(this.useSimpleTabs){this.tabBarDefaults.buttonConstructor=this.simpleTabButtonConstructor;this.dynamicTabProperties.baseStyle=this.simpleTabBaseStyle+_1.substring(0,1).toUpperCase()+_1.substring(1);this.dynamicTabProperties.ariaRole="tab"} if(this.defaultTabWidth&&!_2){this.dynamicTabProperties.width=this.defaultTabWidth} if(this.defaultTabHeight&&_2){this.dynamicTabProperties.height=this.defaultTabHeight} if(this.defaultTabIconSize){this.dynamicTabProperties.iconSize=this.defaultTabIconSize} if(this.$1399&&this.tabBarControls===isc.TabSet.getInstanceProperty("tabBarControls")) {this.tabBarControls=["tabPicker"]} this.makeTabBar();this.createAddTabButton();this.makePaneContainer();this.createPanes()},isc.A.makeTabBar=function isc_TabSet_makeTabBar(){if(this.tabs==null)return;var _1=this.tabBarPosition,_2=(_1==isc.Canvas.LEFT||_1==isc.Canvas.RIGHT),_3=this.tabBarAlign;var _4=this.tabs.duplicate(),_5;var _6=isc.addProperties({},this.tabProperties,this.dynamicTabProperties);for(var i=0;i<_4.length;i++){for(var j in _6){if(_4[i][j]===_5)_4[i][j]=_6[j]}} var _9=isc.addProperties({selectTabOnContextClick:this.selectTabOnContextClick,ID:this.getID()+"_tabBar",width:(_2?this.tabBarThickness:"100%"),height:(_2?"100%":this.tabBarThickness),accessKey:this.accessKey,tabIndex:this.tabIndex,tabs:_4,align:this.tabBarAlign,vertical:_2?true:false,selectedTab:this.selectedTab,showMoreTab:this.showMoreTab,moreTabCount:this.moreTabCount,moreTab:this.createMoreTab(),allowButtonReselect:this.showMoreTab?true:false,buttonSelected:function(_20){this.Super("buttonSelected",arguments);if(this.parentElement!=null){this.parentElement.$8c(_20)}},childResized:function(_20,_21,_22,_23){this.Super("childResized",arguments);if(_23=="Overflow on initial draw"){return} if(this.parentElement!=null){this.parentElement.$54m()}},showContextMenu:function(){var _10=isc.EH.getTarget();if(this.getButtons().contains(_10)){var _11=this.parentElement,_12=_11.getTabObject(_10);if(_11.showTabContextMenu(_11,_12)==false)return false} return this.Super("showContextMenu",arguments)},canReorderItems:this.canReorderTabs,reorderOnDrop:!this.canReorderTabs,itemDragReordered:function(_20,_21){if(this.parentElement!=null){this.parentElement.reorderTab(_20,_21)}},tabBarPosition:this.tabBarPosition,tabBarAlign:this.tabBarAlign,autoDraw:false},this.tabBarDefaults,this.tabBarProperties);if(this.$1399){_9.overflow="auto";_9.overflowStyle="none"} _9.creator=this;if(this.showTabBar==false)_9.visibility="hidden";var _13=this.tabBar=this._tabBar=isc.ClassFactory.newInstance(this.tabBarConstructor,_9);this.addChild(_13);var _14=(this.tabBarThickness-_13.baseLineThickness),_15,_16=0,_17=0,_18,_19;if(_1===isc.Canvas.TOP){_15="T";_18="100%";_19=_13.baseLineThickness;_17=_14}else if(_1===isc.Canvas.RIGHT){_15="R";_18=_13.baseLineThickness;_19="100%";_16=-_14}else if(_1===isc.Canvas.BOTTOM){_15="B";_18="100%";_19=_13.baseLineThickness;_17=-_14}else{_15="L";_18=_13.baseLineThickness;_19="100%";_16=_14} this.$8g=_13.createAutoChild("baseLine",{width:_18,height:_19,vertical:(_1===isc.Canvas.LEFT||_1===isc.Canvas.RIGHT),skinImgDir:_13.skinImgDir,src:_13.baseLineSrc,capSize:_13.baseLineCapSize,imageType:isc.Img.STRETCH,overflow:"hidden",snapTo:_15,snapOffsetLeft:_16,snapOffsetTop:_17},isc.StretchImg);this.addChild(this.$8g);this.$8g.moveBelow(_13)},isc.A.showTabContextMenu=function isc_TabSet_showTabContextMenu(){},isc.A.createMoreTab=function isc_TabSet_createMoreTab(){if(!this.showMoreTab)return null;this.moreTabPane=this.createAutoChild("moreTabPane",this.moreTabPaneProperties);this.addAutoChild("moreTabPaneNavBar",{title:this.moreTabTitle});this.moreTabPaneTable=this.addAutoChild("moreTabPaneTable");var _1=isc.addProperties({title:this.moreTabTitle,icon:this.moreTabImage,pane:this.moreTabPane,moreTab:true},this.moreTabDefaults,this.moreTabProperties);var _2;var _3=isc.addProperties({},this.tabProperties,this.dynamicTabProperties);for(var j in _3){if(_1[j]===_2)_1[j]=_3[j]} this.moreTab=_1;return _1},isc.A.createAddTabButton=function isc_TabSet_createAddTabButton(){if(!this.canAddTabs)return null;this.addTabButton=isc.Canvas.create();var _1=isc.ImgButton.create({src:this.addTabButtonIcon,position:"relative",left:8,top:-8,width:16,height:16,action:this.addTabClicked});this.addTabButton.addChild(_1);this.tabBar.addButtons(this.addTabButton)},isc.A.rebuildMorePane=function isc_TabSet_rebuildMorePane(){this.moreTabPane.setData(this.getMorePaneRecords())},isc.A.getMorePaneRecords=function isc_TabSet_getMorePaneRecords(){var _1=this,_2=[];for(var i=0;i0){var _5=this.getSelectedTabNumber();if(!isc.isA.Number(_5)||_5<0)_5=this.selectedTab=0;this._tabBar.selectTab(_5)} this.invokeSuper(isc.TabSet,"draw",_1,_2,_3,_4);this.fixLayout()},isc.A.setTabTitle=function isc_TabSet_setTabTitle(_1,_2){this.getTabObject(_1).title=_2;this.getTab(_1).setTitle(_2);this.resetTabPickerMenu()},isc.A.setTabIcon=function isc_TabSet_setTabIcon(_1,_2){this.setTabProperties(_1,{icon:_2})},isc.A.enableTab=function isc_TabSet_enableTab(_1){this.setTabDisabled(_1,false)},isc.A.disableTab=function isc_TabSet_disableTab(_1){this.setTabDisabled(_1,true)},isc.A.setTabProperties=function isc_TabSet_setTabProperties(_1,_2){if(!_2)return;if(_2.ID!=null){this.logWarn("setTabProperties(): Unable to modify ID for an existing tab - ignoring this property");delete _2.ID} if(_2.pane!=null){this.updateTab(_1,_2.pane);delete _2.pane} if(_2.disabled!=null){this.setTabDisabled(_1,_2.disabled);delete _2.disabled} var _3=this.getTabObject(_1),_1=this.getTab(_1);if(!_3)return;isc.addProperties(_3,_2);if(_1){_1.setProperties(_2)} this.resetTabPickerMenu()},isc.A.setTabDisabled=function isc_TabSet_setTabDisabled(_1,_2){var _3=this.getTabObject(_1);if(_3)_3.disabled=_2;var _1=this.getTab(_1);if(_1){_1.setDisabled(_2);var _4=_1.pane;if(_4&&this.disablePaneWithTab){if(isc.isA.Canvas(_4))_4.setDisabled(_2);else _4.disabled=_2}} this.resetTabPickerMenu()},isc.A.addTab=function isc_TabSet_addTab(_1,_2){return this.addTabs(_1,_2)},isc.A.addTabs=function isc_TabSet_addTabs(_1,_2){if(!isc.isAn.Array(_1))_1=[_1];var _3=this.getTabObject(this.getSelectedTabNumber()),_4=(this.getSelectedTabNumber()==-1);if(_2==null||_2>this.tabs.length)_2=this.tabs.length;for(var i=0;i<_1.length;i++){_1[i].pane=this.createPane(_1[i].pane,_1[i]);var _6;var _7=isc.addProperties({},this.tabProperties,this.dynamicTabProperties);for(var _8 in _7){if(_1[i][_8]===_6){_1[i][_8]=_7[_8]}} this.tabs.addAt(_1[i],(_2+i))} this._tabBar.addTabs(_1,_2);this.resetTabPickerMenu();this.delayCall("fixLayout");if(_4){this.selectTab(0)}else{this.selectedTab=this.getTabNumber(_3)} if(this.editProxy)this.editProxy.addTabsEditModeExtras(_1);return _2},isc.A.setTabPane=function isc_TabSet_setTabPane(_1,_2){return this.updateTab(_1,_2)},isc.A.removeTab=function isc_TabSet_removeTab(_1,_2){return this.removeTabs(_1,_2)},isc.A.removeTabs=function isc_TabSet_removeTabs(_1,_2){if(!isc.isAn.Array(_1))_1=[_1];_1=this.map("getTab",_1);var _3=false,_4=this.getSelectedTab(),_5=0;for(var i=0;i<_1.length;i++){var _7=_1[i],_8=this.getTabNumber(_7);if(_8==-1)continue;var _9=this.tabs[_8];if(_9==_4){_3=true;if(_8>0)_5=_8-1;else if(_80){if(_5>=this.tabs.length)_5=this.tabs.length-1;this.selectTab(_5)} this.resetTabPickerMenu();this.delayCall("fixLayout",0);if(this.editProxy)this.editProxy.removeTabsEditModeExtras()},isc.A.removeLastTab=function isc_TabSet_removeLastTab(){var _1=this.tabs.length-1;this.removeTab(this.tabs[_1])},isc.A.reorderTab=function isc_TabSet_reorderTab(_1,_2){if(_2==null||_2>this.tabs.length)_2=this.tabs.length;var _1=this.getTab(_1);if(_1){var _3=this.getTabNumber(_1);if(_3==_2)return;var _4=this.getTabObject(_1),_5=this.getSelectedTab();this._tabBar.reorderTab(_1,_2);this.tabs.removeAt(_3);this.tabs.addAt(_4,_2);if(this.selectedTab==_3){this.selectedTab=_2}else if(_3this.selectedTab&&this.selectedTab>=_2){this.selectedTab++} this.resetTabPickerMenu();this.delayCall("fixLayout");if(this.editProxy)this.editProxy.reorderTabsEditModeExtras(_3,_2);this.tabsReordered()}},isc.A.canCloseTab=function isc_TabSet_canCloseTab(_1){_1=this.getTabObject(_1);if(_1&&_1.canClose!=null)return _1.canClose;return!!this.canCloseTabs},isc.A.setCanCloseTab=function isc_TabSet_setCanCloseTab(_1,_2){_1=this.getTabObject(_1);var _3=this.getTab(_1);_1.canClose=_2;if(_3){_3.setProperties(this.getTabBar().getCloseIconProperties(_1,this.canCloseTab(_1)))}},isc.A.setCanCloseTabs=function isc_TabSet_setCanCloseTabs(_1){_1=!!_1;this.canCloseTabs=_1;var _2=this.tabs;if(!_2)return;var _3=this.getTabBar();for(var i=0,_5=_2.length;i<_5;++i){var _6=_2[i];if(_6.canClose!=null)continue;var _7=this.getTab(_6);if(_7){_7.setProperties(_3.getCloseIconProperties(_6,_1))}}},isc.A.setCanReorderTabs=function isc_TabSet_setCanReorderTabs(_1){this.canReorderTabs=_1;this.tabBar.canReorderItems=_1;this.tabBar.reorderOnDrop=!_1},isc.A.$52a=function isc_TabSet__tabIconClick(_1){var _2=this.canCloseTab(_1);if(_2){this.closeClick(_1);return false}else return this.tabIconClick(_1)},isc.A.closeClick=function isc_TabSet_closeClick(_1){if(this.onCloseClick&&(this.onCloseClick(_1)==false)){return} this.removeTab(_1)},isc.A.tabIconClick=function isc_TabSet_tabIconClick(_1){var _2=_1.icon;if(_2&&_2.click)return this.fireCallback(_2.click,'tab,tabSet',[_1,this])},isc.A.getTabObject=function isc_TabSet_getTabObject(_1){_1=this.getTabNumber(_1);if(_1>=this.tabs.length){var _2=this.tabBar.getButton(_1);if(_2&&_2.moreTab)return this.moreTab} return this.tabs[_1]},isc.A.getTab=function isc_TabSet_getTab(_1){if(isc.isAn.Canvas(_1))return _1;if(!this.tabs)return null;if(this.tabs.contains(_1))_1=this.tabs.indexOf(_1);_1=this.getTabBar().getButton(_1);return _1},isc.A.getTabPane=function isc_TabSet_getTabPane(_1){return this.getTabObject(_1).pane},isc.A.findTabObject=function isc_TabSet_findTabObject(_1,_2){return this.tabs.find(_1,_2)},isc.A.getTabNumber=function isc_TabSet_getTabNumber(_1){if(isc.isA.Number(_1))return _1;if(!this.tabs)return null;var _2=this.tabs.indexOf(_1);if(_2!=-1)return _2;if(isc.isA.String(_1)){var _2=this.tabs.findIndex("name",_1);if(_2==-1)_2=this.tabs.findIndex("ID",_1);return _2} return this.getTabBar().getButtonNumber(this.getTab(_1))},isc.A.updateTab=function isc_TabSet_updateTab(_1,_2){if(isc.isAn.Object(_1)&&!isc.isA.Canvas(_1)&&this.tabs.indexOf(_1)==-1) {if(_2!=null)_1.pane=_2;return this.addTabs(_1)} var _3=this.getTabNumber(_1);if(_3==-1){this.logWarn("no such tab: "+this.echo(_1));return} var _4=this.getTabObject(_3),_5=_4?_4.pane:null;if(_4!=null&&_4.pane===_2)return;if(_5!=null){_5.hide();_5.deparent()} var _6=this.getTab(_1);if(_2==null){if(_6!=null)_6.pane=null;return _4.pane=null} _2=_4.pane=this.createPane(_2,_4);if(_6!=null)_6.pane=_2;if(this.getSelectedTabNumber()==_3){if(!this.paneContainer.hasMember(_2)){this.paneContainer.addMember(_2)}else if(this.paneContainer.isIgnoringMember(_2)){this.paneContainer.stopIgnoringMember(_2)} _2.setVisibility(isc.Canvas.INHERIT)}},isc.A.fixLayout=function isc_TabSet_fixLayout(){var _1=this._tabBar,_2=this.$l0||this.paneContainer;if(_1==null||_2==null)return;if(_2.getZIndex(true)>=this.$8g.getZIndex(true))_2.moveBelow(this.$8g);var _3=this.$du(this.tabBarOverlap,_1.borderThickness,_1.baseLineThickness);var _4;switch(this.tabBarPosition){case isc.Canvas.TOP:_4=false;_2.setRect(0,_1.getHeight()-_3,this.getWidth(),this.getHeight()-_1.getHeight()+_3);break;case isc.Canvas.BOTTOM:_4=false;_1.setTop(this.getHeight()-_1.getHeight());_2.setRect(0,0,this.getWidth(),this.getHeight()-_1.getHeight()+_3);break;case isc.Canvas.LEFT:_4=true;_2.setRect(_1.getWidth()-_3,0,this.getWidth()-_1.getWidth()+_3,this.getHeight());break;case isc.Canvas.RIGHT:_4=true;_1.setLeft(this.getWidth()-_1.getWidth());_2.setRect(0,0,this.getWidth()-_1.getWidth()+_3,this.getHeight());break} var _5=this.showControls();if(_5){if(_4)_1.setHeight(this.getViewportHeight()-this.tabBarControlLayout.getHeight());else{_1.setWidth(this.getViewportWidth()-this.tabBarControlLayout.getWidth());if(this.isRTL())_1.setLeft(this.tabBarControlLayout.getWidth())} this.tabBarControlLayout.bringToFront()}else{_1.resizeTo(_4?null:"100%",_4?"100%":null);if(this.isRTL()&&!_4){_1.setLeft(0)}} var _6=this.$8f();if(_4){if(_1.getScrollTop()>0&&_6<=_1.getViewportHeight())_1.scrollTo(null,0,"descrollTabs")}else{if(_1.getScrollLeft()>0&&_6<=_1.getViewportWidth())_1.scrollTo(0,null,"descrollTabs")}},isc.A.shouldShowControl=function isc_TabSet_shouldShowControl(_1){if((_1=="tabScroller")||(_1=="tabPicker")){if(this.showMoreTab)return false;if(!this.showTabScroller&&_1=="tabScroller")return false;if(!this.showTabPicker&&_1=="tabPicker")return false;var _2=this.$8f();if(_2==0)return false;var _3=0;for(var i=0;i(_6?(this.getViewportHeight()-_3):(this.getViewportWidth()-_3)));return _7} var _1=this.getControl(_1);if(isc.isA.Canvas(_1)&&!this.tabBarControlLayout.$21(_1)) {return true} return false},isc.A.$8f=function isc_TabSet__getTabSizes(){if(!this._tabBar)return 0;var _1=this._tabBar.getMemberSizes(),_2=this._tabBar.vertical;if(_1==null||_1.length==0)return 0;_1=_1.sum();var _3=(_2?(this._tabBar.$td||0)+(this._tabBar.$te||0):(this._tabBar.$tb||0)+(this._tabBar.$tc||0));return _1+_3},isc.A.getScrollerBackImgName=function isc_TabSet_getScrollerBackImgName(){return this.symmetricScroller?"back":this.tabBarPosition+"_back"},isc.A.getScrollerForwardImgName=function isc_TabSet_getScrollerForwardImgName(){return this.symmetricScroller?"forward":this.tabBarPosition+"_forward"},isc.A.getTabPickerSrc=function isc_TabSet_getTabPickerSrc(){var _1=(this._tabBar.orientation==isc.Layout.VERTICAL);if(this.symmetricPickerButton){return _1?this.pickerButtonVSrc:this.pickerButtonHSrc}else{return this.pickerButtonSrc}},isc.A.getControl=function isc_TabSet_getControl(_1){if(isc.isA.Canvas(_1))return _1;var _2=(this._tabBar.orientation==isc.Layout.VERTICAL);if(_1=="tabScroller"){if(!this.scroller){var _3=this.scrollerButtonSize;var _4;if(this.symmetricScroller){_4=_2?this.scrollerVSrc:this.scrollerHSrc}else{_4=this.scrollerSrc} var _5=this.getScrollerBackImgName(),_6=this.getScrollerForwardImgName();this.scroller=this.createAutoChild("scroller",{vertical:_2,width:_2?(this.tabBarThickness-this._tabBar.baseLineThickness):(2*_3),height:_2?(2*_3):(this.tabBarThickness-this._tabBar.baseLineThickness),items:[isc.addProperties({name:this.getScrollerBackImgName(),width:_2?null:_3-this.scrollerForwardHMarginSize,height:_2?_3-this.scrollerForwardVMarginSize:null},this.scrollerBackImg),isc.addProperties({name:this.getScrollerForwardImgName(),width:_2?null:_3-this.scrollerBackHMarginSize,height:_2?_3-this.scrollerBackVMarginSize:null},this.scrollerForwardImg)],scrollerPosition:this.tabBarPosition,skinImgDir:this.skinImgDir,src:_4,backPartName:_5,forwardPartName:_6},this.scrollerProperties)} return this.scroller}else if(_1=="tabPicker"){var _7=(isc.Browser.isTouch?this.touchPickerButtonSize:this.pickerButtonSize);if(!this.tabPicker){var _8=this.getTabPickerSrc();this.tabPicker=this.createAutoChild("tabPicker",{customState:this.symmetricPickerButton?null:this.tabBarPosition,pickerPosition:this.tabBarPosition,skinImgDir:this.skinImgDir,src:_8,height:(_2?_7:(this.tabBarThickness-this._tabBar.baseLineThickness)),width:(_2?(this.tabBarThickness-this._tabBar.baseLineThickness):_7)})} return this.tabPicker} if(isc.isA.String(_1)&&isc.isA.Canvas(window[_1]))return window[_1];this.logWarn("Unable to resolve specified tabBarControl:"+isc.Log.echo(_1)+" to a valid control. Not displaying.");return null},isc.A.showControls=function isc_TabSet_showControls(){var _1=this.tabBarControls,_2=0,_3=this.tabBarPosition,_4=_3==isc.Canvas.RIGHT||_3==isc.Canvas.LEFT,_5=0;var _6=this.tabBarControlLayout;if(!_6){this.tabBarControlLayout=_6=this.createAutoChild("tabBarControlLayout",{styleName:this.tabBarControlLayoutDefaults.styleName||this.tabBar.styleName,$21:function(_8){if(this.Super("$21",arguments))return true;if(_8.showIf)return!_8.fireCallback(_8.showIf,[_8]);return false},childResized:function(){this.Super("childResized",arguments);this.creator.$510()},childVisibilityChanged:function(_11){this.Super("childVisibilityChanged",arguments);this.creator.$510()},vertical:_4,locatorParent:this})} for(var i=0;i<_1.length;i++){var _8=_1[i],_9=this.shouldShowControl(_8);_8=this.getControl(_8);if(!_8)continue;if(!_9&&(_8==this.scroller||_8==this.tabPicker)){continue} if(_6.getMemberNumber(_8)!=_5){_6.addMember(_8,_5)} _5++;if(_9){_2+=_4?_8.getVisibleHeight():_8.getVisibleWidth()}} var _10=[];for(var i=_5;i<_6.members.length;i++){_10.add(i)} _6.removeMembers(_10);if(_2==0){this.hideControls();return false} this.placeControlLayout(_2);if(!_6.isDrawn()){if(this.getDrawnState()!=isc.Canvas.UNDRAWN&&_6.getDrawnState()==isc.Canvas.UNDRAWN)_6.draw()}else if(!_6.isVisible())_6.show();return true},isc.A.placeControlLayout=function isc_TabSet_placeControlLayout(_1){var _2,_3,_4,_5,_6=this._tabBar,_7=_6.getBreadth()-_6.baseLineThickness,_8=this.tabBarPosition;if(_8==isc.Canvas.LEFT){_2=0;_3=this.getHeight()-_1;_4=_7;_5=_1}else if(_8==isc.Canvas.RIGHT){_2=this.getWidth()-_7;_3=this.getHeight()-_1;_4=_7;_5=_1}else if(_8==isc.Canvas.BOTTOM){_4=_1;_2=this.isRTL()?0:(this.getWidth()-_1);_3=this.getHeight()-_7;_5=_7}else{_4=_1;_2=this.isRTL()?0:this.getWidth()-_1;_3=0;_5=_7} this.tabBarControlLayout.setRect(_2,_3,_4,_5);if(!this.children.contains(this.tabBarControlLayout))this.addChild(this.tabBarControlLayout)},isc.A.$510=function isc_TabSet__controlLayoutChildResized(){var _1=this.tabBarControlLayout;if(!_1)return;this.showControls();var _2=this.tabBar;if(_2){var _3=(this.tabBarPosition==isc.Canvas.LEFT||this.tabBarPosition==isc.Canvas.RIGHT);if(_3){_2.setHeight(this.getViewportHeight()-this.tabBarControlLayout.getVisibleHeight())}else{_2.setWidth(this.getViewportWidth()-this.tabBarControlLayout.getVisibleWidth())}}},isc.A.hideControls=function isc_TabSet_hideControls(){if(this.tabBarControlLayout&&this.tabBarControlLayout.isVisible())this.tabBarControlLayout.hide()},isc.A.scrollForward=function isc_TabSet_scrollForward(){this._tabBar.scrollForward(this.animateTabScrolling)},isc.A.scrollBack=function isc_TabSet_scrollBack(){this._tabBar.scrollBack(this.animateTabScrolling)},isc.A.showTabPickerMenu=function isc_TabSet_showTabPickerMenu(){if(!this.$8d){var _1=this.tabs,_2=[];for(var i=0;i<_1.length;i++){_2[i]={index:i,enabled:!this.tabs[i].disabled,checkIf:"menu.tabSet.getSelectedTabNumber() == "+i,title:_1[i].pickerTitle||_1[i].title,icon:(this.canCloseTab(_1[i])?null:_1[i].icon),click:"menu.tabSet.selectTab(item.index)"}} this.$8d=this.getMenuConstructor().create({tabSet:this,data:_2})} this.$8d.$8h();this.$8d.placeNear(this.tabPicker.getPageLeft(),this.tabPicker.getPageBottom()) this.$8d.show()},isc.A.resetTabPickerMenu=function isc_TabSet_resetTabPickerMenu(){if(this.$8d){this.$8d.destroy();delete this.$8d}},isc.A.layoutChildren=function isc_TabSet_layoutChildren(_1,_2,_3,_4){this.invokeSuper(isc.TabSet,"layoutChildren",_1,_2,_3,_4);this.fixLayout()},isc.A.$54m=function isc_TabSet__tabResized(){this.fixLayout()},isc.A.$8i=function isc_TabSet__showTab(_1){if(_1==this.moreTab){this.rebuildMorePane()} this.paneContainer.scrollTo(0,0,"showTab");if(_1!=null&&_1.pane!=null){if(!this.paneContainer.hasMember(_1.pane))this.paneContainer.addMember(_1.pane);var _2=((_1.paneMargin!=null?_1.paneMargin:this.paneMargin)||0);this.paneContainer.setLayoutMargin(_2);_1.pane.show();this.paneContainer.stopIgnoringMember(_1.pane)} this.paneContainer.adjustOverflow()},isc.A.$8c=function isc_TabSet__tabSelected(_1){var _2;var _3=this.getSelectedTab(),_4=this.getSelectedTabNumber(),_5=this._tabBar.getButtonNumber(_1),_6=this.getTabObject(_5),_7=(_3!=null)&&(_6!=_3);var _8=this.showMoreTab&&this.tabBar.isShowingMoreTab()&&_6==this.moreTab;if(!_8){if(_6==this.$80n)return;this.$80n=_6} if(_7&&!this.$767){if(_3.tabDeselected!=null){if(this.fireCallback(_3.tabDeselected,"tabSet,tabNum, tabPane, ID, tab, newTab, name",[this,this.selectedTab,_3.pane,_3.ID,_3,_6,_3.name])==false) {_2=true}} if(!_2&&this.tabDeselected!=null){_2=(this.tabDeselected(this.selectedTab,_3.pane,_3.ID,_3,_6,_3.name)==false)} var _9=_3.pane;if(!_2&&_9!=null){_9.hide();this.paneContainer.ignoreMember(_9);_9.moveTo(this.isRTL()?9999:-9999,-9999)}} if(_2){this.$767=true;var _10=_6;var _1=this.getSelectedTab();this.selectTab(_1);var _11=this.getTab(this.getTabNumber(_1));if(isc.EH.mouseDownTarget()==this.getTab(_10)){if(isc.EH.clickMaskUp()&&isc.EH.targetIsMasked(_11)){var _12=isc.EH.clickMaskRegistry.last();isc.EH.setMaskedFocusCanvas(_11,_12)}else{_11.focus()}} delete this.$767;return} var _13=_6.pane;if(_13&&(_13.destroyed||_13.destroying||_13.isPendingDestroy())){_6.pane=null} this.selectedTab=_5;if(!this.$767){var _14;if(_6.tabSelected!=null){this.fireCallback(_6.tabSelected,"tabSet,tabNum,tabPane,ID,tab",[this,_5,_6.pane,_6.ID,_6]);if(this.getSelectedTabNumber()!=_5){return}} if(this.tabSelected){this.tabSelected(_5,_6.pane,_6.ID,_6,_6.name);if(this.getSelectedTabNumber()!=_5){return}}} this.$8i(_6);var _15=this._tabBar;var _16=this;_15.scrollTabIntoView(_5,null,this.animateTabScrolling)},isc.A.getSelectedTab=function isc_TabSet_getSelectedTab(){if(this.selectedTab>=this.tabs.length)return this.moreTab;return this.tabs[this.selectedTab]},isc.A.getSelectedTabNumber=function isc_TabSet_getSelectedTabNumber(){if(!isc.isA.Number(this.selectedTab))this.selectedTab=this.getTabNumber(this.selectedTab);if(!this.tabs||!this.tabs[this.selectedTab])return-1;return this.selectedTab},isc.A.selectTab=function isc_TabSet_selectTab(_1){var _2=this.getTabNumber(_1);if(_2!=-1){if(this._tabBar){this._tabBar.selectTab(_2)} if(this._tabBar==null||!this._tabBar.$6c){this.selectedTab=_2}}},isc.A.tabForPane=function isc_TabSet_tabForPane(_1){if(this.tabs){for(var i=0;i0)_5-=1;else _5=_4}else{if(_5<_4)_5+=1;else _5=0} _3.selectTab(_5);_3.getTabBar().getButton(_5).focus();return false} return this.Super("handleKeyPress",arguments)});isc.B._maxIndex=isc.C+1;isc.TabSet.registerDupProperties("tabs",["pane"]);isc._nonDebugModules=(isc._nonDebugModules!=null?isc._nonDebugModules:[]);isc._nonDebugModules.push('Containers');isc.checkForDebugAndNonDebugModules();isc._moduleEnd=isc._Containers_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Containers module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;if(isc.Page)isc.Page.handleEvent(null,"moduleLoaded",{moduleName:'Containers',loadTime:(isc._moduleEnd-isc._moduleStart)});}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Containers'.");} /* * Isomorphic SmartClient * Version SNAPSHOT_v10.1d_2015-04-30 (2015-04-30) * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved. * "SmartClient" is a trademark of Isomorphic Software, Inc. * * licensing@smartclient.com * * http://smartclient.com/license */