"],initFrame:function(){if(Ext.supports.CSS3BorderRadius){return false}var h=this,i=h.getFrameInfo(),f=i.width,g=h.getFrameTpl(i.table),j;if(h.frame){h.frameGenId=j=(h.frameGenId||0)+1;j=h.id+"-frame"+j;g.insertFirst(h.el,Ext.apply({},{fgid:j,ui:h.ui,uiCls:h.uiCls,frameCls:h.frameCls,baseCls:h.baseCls,frameWidth:f,top:!!i.top,left:!!i.left,right:!!i.right,bottom:!!i.bottom},h.getFramePositions(i)));h.frameBody=h.el.down("."+h.frameCls+"-mc");h.removeChildEls(function(a){return a.id&&h.frameIdRegex.test(a.id)});Ext.each(["TL","TC","TR","ML","MC","MR","BL","BC","BR"],function(a){h.childEls.push({name:"frame"+a,id:j+a})})}},updateFrame:function(){if(Ext.supports.CSS3BorderRadius){return false}var l=this,j=this.frameSize&&this.frameSize.table,k=this.frameTL,m=this.frameBL,n=this.frameML,i=this.frameMC,h;this.initFrame();if(i){if(l.frame){delete l.frameTL;delete l.frameTC;delete l.frameTR;delete l.frameML;delete l.frameMC;delete l.frameMR;delete l.frameBL;delete l.frameBC;delete l.frameBR;this.applyRenderSelectors();h=this.frameMC.dom.className;i.insertAfter(this.frameMC);this.frameMC.remove();this.frameBody=this.frameMC=i;i.dom.className=h;if(j){l.el.query("> table")[1].remove()}else{if(k){k.remove()}if(m){m.remove()}n.remove()}}else{}}else{if(l.frame){this.applyRenderSelectors()}}},getFrameInfo:function(){if(Ext.supports.CSS3BorderRadius){return false}var l=this,i=l.el.getStyle("background-position-x"),j=l.el.getStyle("background-position-y"),k,g=false,h;if(!i&&!j){k=l.el.getStyle("background-position").split(" ");i=k[0];j=k[1]}if(parseInt(i,10)>=1000000&&parseInt(j,10)>=1000000){h=Math.max;g={table:i.substr(0,3)=="110",vertical:j.substr(0,3)=="110",top:h(i.substr(3,2),i.substr(5,2)),right:h(i.substr(5,2),j.substr(3,2)),bottom:h(j.substr(3,2),j.substr(5,2)),left:h(j.substr(5,2),i.substr(3,2))};g.width=h(g.top,g.right,g.bottom,g.left);l.el.setStyle("background-image","none")}if(l.frame===true&&!g){Ext.Error.raise("You have set frame: true explicity on this component while it doesn't have any framing defined in the CSS template. In this case IE can't figure out what sizes to use and thus framing on this component will be disabled.")}l.frame=l.frame||!!g;l.frameSize=g||false;return g},getFramePositions:function(n){var l=this,k=n.width,j=l.dock,o,q,m,p,r;if(n.vertical){q="0 -"+(k*0)+"px";m="0 -"+(k*1)+"px";if(j&&j=="right"){q="right -"+(k*0)+"px";m="right -"+(k*1)+"px"}o={tl:"0 -"+(k*0)+"px",tr:"0 -"+(k*1)+"px",bl:"0 -"+(k*2)+"px",br:"0 -"+(k*3)+"px",ml:"-"+(k*1)+"px 0",mr:"right 0",tc:q,bc:m}}else{p="-"+(k*0)+"px 0";r="right 0";if(j&&j=="bottom"){p="left bottom";r="right bottom"}o={tl:"0 -"+(k*2)+"px",tr:"right -"+(k*3)+"px",bl:"0 -"+(k*4)+"px",br:"right -"+(k*5)+"px",ml:p,mr:r,tc:"0 -"+(k*0)+"px",bc:"0 -"+(k*1)+"px"}}return o},getFrameTpl:function(b){return b?this.getTpl("frameTableTpl"):this.getTpl("frameTpl")},initCls:function(){var c=this,d=[];d.push(c.baseCls);if(Ext.isDefined(c.cmpCls)){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn("Ext.Component: cmpCls has been deprecated. Please use componentCls.")}c.componentCls=c.cmpCls;delete c.cmpCls}if(c.componentCls){d.push(c.componentCls)}else{c.componentCls=c.baseCls}if(c.cls){d.push(c.cls);delete c.cls}return d.concat(c.additionalCls)},setUI:function(k){var l=this,h=Ext.Array.clone(l.uiCls),j=[],m=[],i,n;for(n=0;n=0;g--){if((h=j.getAt(g)).is(c)){return h}}}else{if(g){return j.getAt(--g)}}}}return null},previousNode:function(n,m){var j=this,h,k,i,l;if(m&&j.is(n)){return j}h=this.prev(n);if(h){return h}if(j.ownerCt){for(k=j.ownerCt.items.items,l=Ext.Array.indexOf(k,j)-1;l>-1;l--){if(k[l].query){h=k[l].query(n);h=h[h.length-1];if(h){return h}}}return j.ownerCt.previousNode(n,true)}},nextNode:function(n,m){var j=this,h,k,i,l;if(m&&j.is(n)){return j}h=this.next(n);if(h){return h}if(j.ownerCt){for(k=j.ownerCt.items,l=k.indexOf(j)+1,k=k.items,i=k.length;l','
',""],baseCls:Ext.baseCSSPrefix+"splitter",collapsedClsInternal:Ext.baseCSSPrefix+"splitter-collapsed",collapsible:false,collapseOnDblClick:true,defaultSplitMin:40,defaultSplitMax:1000,width:5,height:5,collapseTarget:"next",onRender:function(){var e=this,d=e.getCollapseTarget(),f=e.getCollapseDirection();Ext.applyIf(e.renderData,{collapseDir:f,collapsible:e.collapsible||d.collapsible});e.addChildEls("collapseEl");this.callParent(arguments);if(e.performCollapse!==false){if(e.renderData.collapsible){e.mon(e.collapseEl,"click",e.toggleTargetCmp,e)}if(e.collapseOnDblClick){e.mon(e.el,"dblclick",e.toggleTargetCmp,e)}}e.mon(d,"collapse",e.onTargetCollapse,e);e.mon(d,"expand",e.onTargetExpand,e);e.el.addCls(e.baseCls+"-"+e.orientation);e.el.unselectable();e.tracker=Ext.create("Ext.resizer.SplitterTracker",{el:e.el});e.relayEvents(e.tracker,["beforedragstart","dragstart","dragend"])},getCollapseDirection:function(){var f=this,e,d=f.ownerCt.layout.type;if(f.collapseTarget.isComponent){e=Number(f.ownerCt.items.indexOf(f.collapseTarget)==f.ownerCt.items.indexOf(f)-1)<<1|Number(d=="hbox")}else{e=Number(f.collapseTarget=="prev")<<1|Number(d=="hbox")}f.orientation=["horizontal","vertical"][e&1];return["bottom","right","top","left"][e]},getCollapseTarget:function(){var b=this;return b.collapseTarget.isComponent?b.collapseTarget:b.collapseTarget=="prev"?b.previousSibling():b.nextSibling()},onTargetCollapse:function(b){this.el.addCls([this.collapsedClsInternal,this.collapsedCls])},onTargetExpand:function(b){this.el.removeCls([this.collapsedClsInternal,this.collapsedCls])},toggleTargetCmp:function(f,e){var d=this.getCollapseTarget();if(d.isVisible()){if(d.collapsed){d.expand(d.animCollapse)}else{d.collapse(this.renderData.collapseDir,d.animCollapse)}}},setSize:function(){var b=this;b.callParent(arguments);if(Ext.isIE){b.el.repaint()}}});Ext.define("Ext.form.field.Base",{extend:"Ext.Component",mixins:{labelable:"Ext.form.Labelable",field:"Ext.form.field.Field"},alias:"widget.field",alternateClassName:["Ext.form.Field","Ext.form.BaseField"],requires:["Ext.util.DelayedTask","Ext.XTemplate","Ext.layout.component.field.Field"],fieldSubTpl:['name="{name}" ','size="{size}" ','tabIndex="{tabIdx}" ','class="{fieldCls} {typeCls}" autocomplete="off" />',{compiled:true,disableFormats:true}],inputType:"text",invalidText:"The value in this field is invalid",fieldCls:Ext.baseCSSPrefix+"form-field",focusCls:Ext.baseCSSPrefix+"form-focus",dirtyCls:Ext.baseCSSPrefix+"form-dirty",checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<9)?["change","propertychange"]:["change","input","textInput","keyup","dragdrop"],checkChangeBuffer:50,componentLayout:"field",readOnly:false,readOnlyCls:Ext.baseCSSPrefix+"form-readonly",validateOnBlur:true,hasFocus:false,baseCls:Ext.baseCSSPrefix+"field",maskOnDisable:false,initComponent:function(){var b=this;b.callParent();b.subTplData=b.subTplData||{};b.addEvents("focus","blur","specialkey");b.initLabelable();b.initField();if(!b.name){b.name=b.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=Ext.id())},getSubTplData:function(){var f=this,d=f.inputType,e=f.getInputId();return Ext.applyIf(f.subTplData,{id:e,cmpId:f.id,name:f.name||e,type:d,size:f.size||20,cls:f.cls,fieldCls:f.fieldCls,tabIdx:f.tabIndex,typeCls:Ext.baseCSSPrefix+"form-"+(d==="password"?"text":d)})},afterRender:function(){this.callParent();if(this.inputEl){this.inputEl.selectable()}},getSubTplMarkup:function(){return this.getTpl("fieldSubTpl").apply(this.getSubTplData())},initRenderTpl:function(){var b=this;if(!b.hasOwnProperty("renderTpl")){b.renderTpl=b.getTpl("labelableRenderTpl")}return b.callParent()},initRenderData:function(){return Ext.applyIf(this.callParent(),this.getLabelableRenderData())},setFieldStyle:function(e){var d=this,f=d.inputEl;if(f){f.applyStyles(e)}d.fieldStyle=e},onRender:function(){var c=this,d=c.fieldStyle;c.onLabelableRender();c.addChildEls({name:"inputEl",id:c.getInputId()});c.callParent(arguments);c.setRawValue(c.rawValue);if(c.readOnly){c.setReadOnly(true)}if(c.disabled){c.disable()}if(d){c.setFieldStyle(d)}c.renderActiveError()},initAria:function(){var b=this;b.callParent();b.getActionEl().dom.setAttribute("aria-describedby",Ext.id(b.errorEl))},getFocusEl:function(){return this.inputEl},isFileUpload:function(){return this.inputType==="file"},extractFileInput:function(){var d=this,e=d.isFileUpload()?d.inputEl.dom:null,f;if(e){f=e.cloneNode(true);e.parentNode.replaceChild(f,e);d.inputEl=Ext.get(f)}return e},getSubmitData:function(){var e=this,d=null,f;if(!e.disabled&&e.submitValue&&!e.isFileUpload()){f=e.getSubmitValue();if(f!==null){d={};d[e.getName()]=f}}return d},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var c=this,d=(c.inputEl?c.inputEl.getValue():Ext.value(c.rawValue,""));c.rawValue=d;return d},setRawValue:function(c){var d=this;c=Ext.value(c,"");d.rawValue=c;if(d.inputEl){d.inputEl.dom.value=c}return c},valueToRaw:function(b){return""+Ext.value(b,"")},rawToValue:function(b){return b},processRawValue:function(b){return b},getValue:function(){var d=this,c=d.rawToValue(d.processRawValue(d.getRawValue()));d.value=c;return c},setValue:function(c){var d=this;d.setRawValue(d.valueToRaw(c));return d.mixins.field.setValue.call(d,c)},onDisable:function(){var d=this,c=d.inputEl;d.callParent();if(c){c.dom.disabled=true}},onEnable:function(){var d=this,c=d.inputEl;d.callParent();if(c){c.dom.disabled=false}},setReadOnly:function(f){var e=this,d=e.inputEl;if(d){d.dom.readOnly=f;d.dom.setAttribute("aria-readonly",f)}e[f?"addCls":"removeCls"](e.readOnlyCls);e.readOnly=f},fireKey:function(b){if(b.isSpecialKey()){this.fireEvent("specialkey",this,Ext.create("Ext.EventObjectImpl",b))}},initEvents:function(){var e=this,h=e.inputEl,f,g;if(h){e.mon(h,Ext.EventManager.getKeyEvent(),e.fireKey,e);e.mon(h,"focus",e.onFocus,e);e.mon(h,"blur",e.onBlur,e,e.inEditor?{buffer:10}:null);f=Ext.create("Ext.util.DelayedTask",e.checkChange,e);e.onChangeEvent=g=function(){f.delay(e.checkChangeBuffer)};Ext.each(e.checkChangeEvents,function(a){if(a==="propertychange"){e.usesPropertychange=true}e.mon(h,a,g)},e)}e.callParent()},doComponentLayout:function(){var j=this,i=j.inputEl,g=j.usesPropertychange,f="propertychange",h=j.onChangeEvent;if(g){j.mun(i,f,h)}j.callParent(arguments);if(g){j.mon(i,f,h)}},preFocus:Ext.emptyFn,onFocus:function(){var d=this,e=d.focusCls,f=d.inputEl;d.preFocus();if(e&&f){f.addCls(e)}if(!d.hasFocus){d.hasFocus=true;d.componentLayout.onFocus();d.fireEvent("focus",d)}},beforeBlur:Ext.emptyFn,onBlur:function(){var d=this,e=d.focusCls,f=d.inputEl;if(d.destroying){return}d.beforeBlur();if(e&&f){f.removeCls(e)}if(d.validateOnBlur){d.validate()}d.hasFocus=false;d.fireEvent("blur",d);d.postBlur()},postBlur:Ext.emptyFn,onDirtyChange:function(b){this[b?"addCls":"removeCls"](this.dirtyCls)},isValid:function(){var b=this;return b.disabled||b.validateValue(b.processRawValue(b.getRawValue()))},validateValue:function(e){var f=this,g=f.getErrors(e),h=Ext.isEmpty(g);if(!f.preventMark){if(h){f.clearInvalid()}else{f.markInvalid(g)}}return h},markInvalid:function(f){var d=this,e=d.getActiveError();d.setActiveErrors(Ext.Array.from(f));if(e!==d.getActiveError()){d.doComponentLayout()}},clearInvalid:function(){var c=this,d=c.hasActiveError();c.unsetActiveError();if(d){c.doComponentLayout()}},renderActiveError:function(){var c=this,d=c.hasActiveError();if(c.inputEl){c.inputEl[d?"addCls":"removeCls"](c.invalidCls+"-field")}c.mixins.labelable.renderActiveError.call(c)},getActionEl:function(){return this.inputEl||this.el}});Ext.define("Ext.form.field.Text",{extend:"Ext.form.field.Base",alias:"widget.textfield",requires:["Ext.form.field.VTypes","Ext.layout.component.field.Text"],alternateClassName:["Ext.form.TextField","Ext.form.Text"],size:20,growMin:30,growMax:800,growAppend:"W",allowBlank:true,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:"The minimum length for this field is {0}",maxLengthText:"The maximum length for this field is {0}",blankText:"This field is required",regexText:"",emptyCls:Ext.baseCSSPrefix+"form-empty-field",ariaRole:"textbox",componentLayout:"textfield",initComponent:function(){this.callParent();this.addEvents("autosize","keydown","keyup","keypress")},initEvents:function(){var c=this,d=c.inputEl;c.callParent();if(c.selectOnFocus||c.emptyText){c.mon(d,"mousedown",c.onMouseDown,c)}if(c.maskRe||(c.vtype&&c.disableKeyFilter!==true&&(c.maskRe=Ext.form.field.VTypes[c.vtype+"Mask"]))){c.mon(d,"keypress",c.filterKeys,c)}if(c.enableKeyEvents){c.mon(d,{scope:c,keyup:c.onKeyUp,keydown:c.onKeyDown,keypress:c.onKeyPress})}},isEqual:function(c,d){return this.isEqualAsString(c,d)},onChange:function(){this.callParent();this.autoSize()},afterRender:function(){var b=this;if(b.enforceMaxLength){b.inputEl.dom.maxLength=b.maxLength}b.applyEmptyText();b.autoSize();b.callParent()},onMouseDown:function(c){var d=this;if(!d.hasFocus){d.mon(d.inputEl,"mouseup",Ext.emptyFn,d,{single:true,preventDefault:true})}},processRawValue:function(e){var f=this,g=f.stripCharsRe,h;if(g){h=e.replace(g,"");if(h!==e){f.setRawValue(h);e=h}}return e},onDisable:function(){this.callParent();if(Ext.isIE){this.inputEl.dom.unselectable="on"}},onEnable:function(){this.callParent();if(Ext.isIE){this.inputEl.dom.unselectable=""}},onKeyDown:function(b){this.fireEvent("keydown",this,b)},onKeyUp:function(b){this.fireEvent("keyup",this,b)},onKeyPress:function(b){this.fireEvent("keypress",this,b)},reset:function(){this.callParent();this.applyEmptyText()},applyEmptyText:function(){var d=this,e=d.emptyText,f;if(d.rendered&&e){f=d.getRawValue().length<1&&!d.hasFocus;if(Ext.supports.Placeholder){d.inputEl.dom.placeholder=e}else{if(f){d.setRawValue(e)}}if(f){d.inputEl.addCls(d.emptyCls)}d.autoSize()}},preFocus:function(){var e=this,h=e.inputEl,f=e.emptyText,g;if(f&&!Ext.supports.Placeholder&&h.dom.value===f){e.setRawValue("");g=true;h.removeCls(e.emptyCls)}else{if(Ext.supports.Placeholder){e.inputEl.removeCls(e.emptyCls)}}if(e.selectOnFocus||g){h.dom.select()}},onFocus:function(){var b=this;b.callParent(arguments);if(b.emptyText){b.autoSize()}},postBlur:function(){this.applyEmptyText()},filterKeys:function(f){if(f.ctrlKey&&!f.altKey){return}var d=f.getKey(),e=String.fromCharCode(f.getCharCode());if(Ext.isGecko&&(f.isNavKeyPress()||d===f.BACKSPACE||(d===f.DELETE&&f.button===-1))){return}if(!Ext.isGecko&&f.isSpecialKey()&&!e){return}if(!this.maskRe.test(e)){f.stopEvent()}},getRawValue:function(){var c=this,d=c.callParent();if(d===c.emptyText){d=""}return d},setValue:function(d){var e=this,f=e.inputEl;if(f&&e.emptyText&&!Ext.isEmpty(d)){f.removeCls(e.emptyCls)}e.callParent(arguments);e.applyEmptyText();return e},getErrors:function(l){var q=this,m=q.callParent(arguments),v=q.validator,s=q.emptyText,t=q.allowBlank,r=q.vtype,p=Ext.form.field.VTypes,o=q.regex,n=Ext.String.format,u;l=l||q.processRawValue(q.getRawValue());if(Ext.isFunction(v)){u=v.call(q,l);if(u!==true){m.push(u)}}if(l.length<1||l===s){if(!t){m.push(q.blankText)}return m}if(l.lengthq.maxLength){m.push(n(q.maxLengthText,q.maxLength))}if(r){if(!p[r](l,q)){m.push(q.vtypeText||p[r+"Text"])}}if(o&&!o.test(l)){m.push(q.regexText||q.invalidText)}return m},selectText:function(k,j){var l=this,p=l.getRawValue(),o=true,m=l.inputEl.dom,n,i;if(p.length>0){k=k===n?0:k;j=j===n?p.length:j;if(m.setSelectionRange){m.setSelectionRange(k,j)}else{if(m.createTextRange){i=m.createTextRange();i.moveStart("character",k);i.moveEnd("character",j-p.length);i.select()}}o=Ext.isGecko||Ext.isOpera}if(o){l.focus()}},autoSize:function(){var c=this,d;if(c.grow&&c.rendered){c.doComponentLayout();d=c.inputEl.getWidth();if(d!==c.lastInputWidth){c.fireEvent("autosize",d);c.lastInputWidth=d}}},initAria:function(){this.callParent();this.getActionEl().dom.setAttribute("aria-required",this.allowBlank===false)},getBodyNaturalWidth:function(){return Math.round(this.size*6.5)+20}});Ext.define("Ext.form.field.Trigger",{extend:"Ext.form.field.Text",alias:["widget.triggerfield","widget.trigger"],requires:["Ext.DomHelper","Ext.util.ClickRepeater","Ext.layout.component.field.Trigger"],alternateClassName:["Ext.form.TriggerField","Ext.form.TwinTriggerField","Ext.form.Trigger"],fieldSubTpl:['name="{name}" ','size="{size}" ','tabIndex="{tabIdx}" ','class="{fieldCls} {typeCls}" autocomplete="off" />','
'],initComponent:function(){var l=this,i,j,g,h,k;l.indicateDragCls=l.baseCls+"-draggable";l.title=l.title||" ";l.tools=l.tools||[];l.items=l.items||[];l.orientation=l.orientation||"horizontal";l.dock=(l.dock)?l.dock:(l.orientation=="horizontal")?"top":"left";l.addClsWithUI(l.orientation);l.addClsWithUI(l.dock);l.addChildEls("body");if(!Ext.isEmpty(l.iconCls)){l.initIconCmp();l.items.push(l.iconCmp)}if(l.orientation=="vertical"){if(Ext.isIE6||Ext.isIE7){l.width=this.width||24}else{if(Ext.isIEQuirks){l.width=this.width||25}}l.layout={type:"vbox",align:"center",clearInnerCtOnLayout:true,bindToOwnerCtContainer:false};l.textConfig={cls:l.baseCls+"-text",type:"text",text:l.title,rotate:{degrees:90}};k=l.ui;if(Ext.isArray(k)){k=k[0]}i="."+l.baseCls+"-text-"+k;if(Ext.scopeResetCSS){i="."+Ext.baseCSSPrefix+"reset "+i}j=Ext.util.CSS.getRule(i);if(j){g=j.style}if(g){Ext.apply(l.textConfig,{"font-family":g.fontFamily,"font-weight":g.fontWeight,"font-size":g.fontSize,fill:g.color})}l.titleCmp=Ext.create("Ext.draw.Component",{ariaRole:"heading",focusable:false,viewBox:false,flex:1,autoSize:true,margins:"5 0 0 0",items:[l.textConfig],renderSelectors:{textEl:"."+l.baseCls+"-text"}})}else{l.layout={type:"hbox",align:"middle",clearInnerCtOnLayout:true,bindToOwnerCtContainer:false};l.titleCmp=Ext.create("Ext.Component",{xtype:"component",ariaRole:"heading",focusable:false,flex:1,cls:l.baseCls+"-text-container",renderTpl:['{title}'],renderData:{title:l.title,cls:l.baseCls,ui:l.ui},childEls:["textEl"]})}l.items.push(l.titleCmp);l.items=l.items.concat(l.tools);this.callParent()},initIconCmp:function(){this.iconCmp=Ext.create("Ext.Component",{focusable:false,renderTpl:[''],renderData:{blank:Ext.BLANK_IMAGE_URL,cls:this.baseCls,iconCls:this.iconCls,orientation:this.orientation},childEls:["iconEl"],iconCls:this.iconCls})},afterRender:function(){var b=this;b.el.unselectable();if(b.indicateDrag){b.el.addCls(b.indicateDragCls)}b.mon(b.el,{click:b.onClick,scope:b});b.callParent()},afterLayout:function(){var b=this;b.callParent(arguments);if(Ext.isIE7){b.el.repaint()}},addUIClsToElement:function(h,k){var l=this,i=l.callParent(arguments),m=[l.baseCls+"-body-"+h,l.baseCls+"-body-"+l.ui+"-"+h],j,n;if(!k&&l.rendered){if(l.bodyCls){l.body.addCls(l.bodyCls)}else{l.body.addCls(m)}}else{if(l.bodyCls){j=l.bodyCls.split(" ");for(n=0;ngridcolumn:not([hidden])"),j,f,g;h.callParent(arguments);if(i.length){f=i[0].el;if(f!==h.pastFirstHeaderEl){if(h.pastFirstHeaderEl){h.pastFirstHeaderEl.removeCls(h.firstHeaderCls)}f.addCls(h.firstHeaderCls);h.pastFirstHeaderEl=f}g=i[i.length-1].el;if(g!==h.pastLastHeaderEl){if(h.pastLastHeaderEl){h.pastLastHeaderEl.removeCls(h.lastHeaderCls)}g.addCls(h.lastHeaderCls);h.pastLastHeaderEl=g}}}},onHeaderShow:function(p,u){var m=this,i=m.ownerCt,s=m.getMenu(),r,t,o,v,n,q;if(s){o=s.down("menucheckitem[headerId="+p.id+"]");if(o){o.setChecked(true,true)}r=s.query("#columnItem>menucheckitem[checked]");t=r.length;if((m.getVisibleGridColumns().length>1)&&m.disabledMenuItems&&m.disabledMenuItems.length){if(t==1){Ext.Array.remove(m.disabledMenuItems,r[0])}for(q=0,n=m.disabledMenuItems.length;qmenucheckitem[checked]");if((j.length===1)){if(!k.disabledMenuItems){k.disabledMenuItems=[]}if((k.getVisibleGridColumns().length===1)&&j[0].menu){j=j.concat(j[0].menu.query("menucheckitem[checked]"))}h=j.length;for(g=0;ggridcolumn[hideable]"),j=i.length,m;for(;h{text}',dataIndex:null,text:" ",sortable:true,hideable:true,menuDisabled:false,renderer:false,align:"left",draggable:true,initDraggable:Ext.emptyFn,isHeader:true,initComponent:function(){var g=this,e,f,h;if(Ext.isDefined(g.header)){g.text=g.header;delete g.header}if(g.flex){g.minWidth=g.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}else{g.minWidth=g.width}if(!g.triStateSort){g.possibleSortStates.length=2}if(Ext.isDefined(g.columns)){g.isGroupHeader=true;if(g.dataIndex){Ext.Error.raise("Ext.grid.column.Column: Group header may not accept a dataIndex")}if((g.width&&g.width!==Ext.grid.header.Container.prototype.defaultWidth)||g.flex){Ext.Error.raise("Ext.grid.column.Column: Group header does not support setting explicit widths or flexs. The group header width is calculated by the sum of its children.")}g.items=g.columns;delete g.columns;delete g.flex;g.width=0;for(e=0,f=g.items.length;e:not([hidden])");if(!n.length){k.ownerCt.hide()}else{for(m=0,i=n.length;m*");for(r=0,o=n.length;r:not([hidden])");for(r=0,o=n.length;r"}return b}},enableAction:function(d){var c=this;if(!d){d=0}else{if(!Ext.isNumber(d)){d=Ext.Array.indexOf(c.items,d)}}c.items[d].disabled=false;c.up("tablepanel").el.select("."+Ext.baseCSSPrefix+"action-col-"+d).removeCls(c.disabledCls)},disableAction:function(d){var c=this;if(!d){d=0}else{if(!Ext.isNumber(d)){d=Ext.Array.indexOf(c.items,d)}}c.items[d].disabled=true;c.up("tablepanel").el.select("."+Ext.baseCSSPrefix+"action-col-"+d).addCls(c.disabledCls)},destroy:function(){delete this.items;delete this.renderer;return this.callParent(arguments)},processEvent:function(p,m,l,t,o,r){var q=this,s=r.getTarget().className.match(q.actionIdRe),e,n;if(s){e=q.items[parseInt(s[1],10)];if(e){if(p=="click"){n=e.handler||q.handler;if(n&&!e.disabled){n.call(e.scope||q.scope||q,m,t,o,e,r)}}else{if(p=="mousedown"&&e.stopSelection!==false){return false}}}}return q.callParent(arguments)},cascade:function(c,d){c.call(d||this,this)},getRefItems:function(){return[]}});Ext.define("Ext.button.Button",{alias:"widget.button",extend:"Ext.Component",requires:["Ext.menu.Manager","Ext.util.ClickRepeater","Ext.layout.component.Button","Ext.util.TextMetrics","Ext.util.KeyMap"],alternateClassName:"Ext.Button",isButton:true,componentLayout:"button",hidden:false,disabled:false,pressed:false,enableToggle:false,menuAlign:"tl-bl?",textAlign:"center",type:"button",clickEvent:"click",preventDefault:true,handleMouseEvents:true,tooltipType:"qtip",baseCls:Ext.baseCSSPrefix+"btn",pressedCls:"pressed",overCls:"over",focusCls:"focus",menuActiveCls:"menu-active",ariaRole:"button",renderTpl:' tabIndex="{tabIndex}" role="link">{text}
',h.itemCls,g);h.tpl=Ext.create("Ext.XTemplate",g,e)}if(!f(h.tpl)||!f(h.itemSelector)){Ext.Error.raise({sourceClass:"Ext.view.View",tpl:h.tpl,itemSelector:h.itemSelector,msg:"DataView requires both tpl and itemSelector configurations to be defined."})}h.callParent();if(Ext.isString(h.tpl)||Ext.isArray(h.tpl)){h.tpl=Ext.create("Ext.XTemplate",h.tpl)}if(f(h.overCls)||f(h.overClass)){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn("Ext.view.View: Using the deprecated overCls or overClass configuration. Use overItemCls instead.")}h.overItemCls=h.overCls||h.overClass;delete h.overCls;delete h.overClass}if(h.overItemCls){h.trackOver=true}if(f(h.selectedCls)||f(h.selectedClass)){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn("Ext.view.View: Using the deprecated selectedCls or selectedClass configuration. Use selectedItemCls instead.")}h.selectedItemCls=h.selectedCls||h.selectedClass;delete h.selectedCls;delete h.selectedClass}h.addEvents("beforerefresh","refresh","viewready","itemupdate","itemadd","itemremove");h.addCmpEvents();h.store=Ext.data.StoreManager.lookup(h.store||"ext-empty-store");h.all=new Ext.CompositeElementLite()},onRender:function(){var f=this,d=f.loadMask,e={msg:f.loadingText,msgCls:f.loadingCls,useMsg:f.loadingUseMsg};f.callParent(arguments);if(d){if(Ext.isObject(d)){e=Ext.apply(e,d)}f.loadMask=Ext.create("Ext.LoadMask",f,e);f.loadMask.on({scope:f,beforeshow:f.onMaskBeforeShow,hide:f.onMaskHide})}},onMaskBeforeShow:function(){var b=this.loadingHeight;this.getSelectionModel().deselectAll();if(b){this.setCalculatedSize(undefined,b)}},onMaskHide:function(){var b=this;if(!b.destroying&&b.loadingHeight){b.setHeight(b.height)}},afterRender:function(){this.callParent(arguments);this.getSelectionModel().bindComponent(this)},getSelectionModel:function(){var d=this,c="SINGLE";if(!d.selModel){d.selModel={}}if(d.simpleSelect){c="SIMPLE"}else{if(d.multiSelect){c="MULTI"}}Ext.applyIf(d.selModel,{allowDeselect:d.allowDeselect,mode:c});if(!d.selModel.events){d.selModel=Ext.create("Ext.selection.DataViewModel",d.selModel)}if(!d.selModel.hasRelaySetup){d.relayEvents(d.selModel,["selectionchange","beforeselect","beforedeselect","select","deselect"]);d.selModel.hasRelaySetup=true}if(d.disableSelection){d.selModel.locked=true}return d.selModel},refresh:function(){var f=this,d,e;if(!f.rendered||f.isDestroyed){return}f.fireEvent("beforerefresh",f);d=f.getTargetEl();e=f.store.getRange();d.update("");if(e.length<1){if(!f.deferEmptyText||f.hasSkippedEmptyText){d.update(f.emptyText)}f.all.clear()}else{f.tpl.overwrite(d,f.collectData(e,0));f.all.fill(Ext.query(f.getItemSelector(),d.dom));f.updateIndexes(0)}f.selModel.refresh();f.hasSkippedEmptyText=true;f.fireEvent("refresh",f);if(!f.viewReady){f.viewReady=true;f.fireEvent("viewready",f)}},prepareData:function(f,d,e){if(e){Ext.apply(f,e.getAssociatedData())}return f},collectData:function(l,i){var j=[],k=0,h=l.length,g;for(;k-1){j=i.bufferRender([g],f)[0];if(i.getNode(g)){i.all.replaceElement(f,j,true);i.updateIndexes(f,f);i.selModel.refresh();i.fireEvent("itemupdate",g,f,j)}}},onAdd:function(h,f,j){var i=this,g;if(i.all.getCount()===0){i.refresh();return}g=i.bufferRender(f,j);i.doAdd(g,f,j);i.selModel.refresh();i.updateIndexes(j);i.fireEvent("itemadd",f,j,g)},doAdd:function(e,f,h){var g=this.all;if(h=g&&i[j];j--){f.push(i[j])}}return f},indexOf:function(b){b=this.getNode(b);if(Ext.isNumber(b.viewIndex)){return b.viewIndex}return this.all.indexOf(b)},onDestroy:function(){var b=this;b.all.clear();b.callParent();b.bindStore(null);b.selModel.destroy()},onItemSelect:function(d){var c=this.getNode(d);if(c){Ext.fly(c).addCls(this.selectedItemCls)}},onItemDeselect:function(d){var c=this.getNode(d);if(c){Ext.fly(c).removeCls(this.selectedItemCls)}},getItemSelector:function(){return this.itemSelector}},function(){Ext.deprecate("extjs","4.0",function(){Ext.view.AbstractView.override({getSelectionCount:function(){if(Ext.global.console){Ext.global.console.warn("DataView: getSelectionCount will be removed, please interact with the Ext.selection.DataViewModel")}return this.selModel.getSelection().length},getSelectedRecords:function(){if(Ext.global.console){Ext.global.console.warn("DataView: getSelectedRecords will be removed, please interact with the Ext.selection.DataViewModel")}return this.selModel.getSelection()},select:function(f,e,g){if(Ext.global.console){Ext.global.console.warn("DataView: select will be removed, please access select through a DataView's SelectionModel, ie: view.getSelectionModel().select()")}var h=this.getSelectionModel();return h.select.apply(h,arguments)},clearSelections:function(){if(Ext.global.console){Ext.global.console.warn("DataView: clearSelections will be removed, please access deselectAll through DataView's SelectionModel, ie: view.getSelectionModel().deselectAll()")}var b=this.getSelectionModel();return b.deselectAll()}})})});Ext.define("Ext.view.View",{extend:"Ext.view.AbstractView",alternateClassName:"Ext.DataView",alias:"widget.dataview",inheritableStatics:{EventMap:{mousedown:"MouseDown",mouseup:"MouseUp",click:"Click",dblclick:"DblClick",contextmenu:"ContextMenu",mouseover:"MouseOver",mouseout:"MouseOut",mouseenter:"MouseEnter",mouseleave:"MouseLeave",keydown:"KeyDown",focus:"Focus"}},addCmpEvents:function(){this.addEvents("beforeitemmousedown","beforeitemmouseup","beforeitemmouseenter","beforeitemmouseleave","beforeitemclick","beforeitemdblclick","beforeitemcontextmenu","beforeitemkeydown","itemmousedown","itemmouseup","itemmouseenter","itemmouseleave","itemclick","itemdblclick","itemcontextmenu","itemkeydown","beforecontainermousedown","beforecontainermouseup","beforecontainermouseover","beforecontainermouseout","beforecontainerclick","beforecontainerdblclick","beforecontainercontextmenu","beforecontainerkeydown","containermouseup","containermouseover","containermouseout","containerclick","containerdblclick","containercontextmenu","containerkeydown","selectionchange","beforeselect")},afterRender:function(){var c=this,d;c.callParent();d={scope:c,freezeEvent:true,click:c.handleEvent,mousedown:c.handleEvent,mouseup:c.handleEvent,dblclick:c.handleEvent,contextmenu:c.handleEvent,mouseover:c.handleEvent,mouseout:c.handleEvent,keydown:c.handleEvent};c.mon(c.getTargetEl(),d);if(c.store){c.bindStore(c.store,true)}},handleEvent:function(b){if(this.processUIEvent(b)!==false){this.processSpecialEvent(b)}},processItemEvent:Ext.emptyFn,processContainerEvent:Ext.emptyFn,processSpecialEvent:Ext.emptyFn,stillOverItem:function(d,e){var f;if(e&&typeof(e.offsetParent)==="object"){f=(d.type=="mouseout")?d.getRelatedTarget():d.getTarget();return Ext.fly(e).contains(f)}return false},processUIEvent:function(m){var l=this,e=m.getTarget(l.getItemSelector(),l.getTargetEl()),r=this.statics().EventMap,n,p,k=m.type,o=l.mouseOverItem,q;if(!e){if(k=="mouseover"&&l.stillOverItem(m,o)){e=o}if(k=="keydown"){p=l.getSelectionModel().getLastSelected();if(p){e=l.getNode(p)}}}if(e){n=l.indexOf(e);if(!p){p=l.getRecord(e)}if(l.processItemEvent(p,e,n,m)===false){return false}q=l.isNewItemEvent(e,m);if(q===false){return false}if((l["onBeforeItem"+r[q]](p,e,n,m)===false)||(l.fireEvent("beforeitem"+q,l,p,e,n,m)===false)||(l["onItem"+r[q]](p,e,n,m)===false)){return false}l.fireEvent("item"+q,l,p,e,n,m)}else{if((l.processContainerEvent(m)===false)||(l["onBeforeContainer"+r[k]](m)===false)||(l.fireEvent("beforecontainer"+k,l,m)===false)||(l["onContainer"+r[k]](m)===false)){return false}l.fireEvent("container"+k,l,m)}return true},isNewItemEvent:function(i,h){var j=this,g=j.mouseOverItem,e=h.type;switch(e){case"mouseover":if(i===g){return false}j.mouseOverItem=i;return"mouseenter";case"mouseout":if(j.stillOverItem(h,g)){return false}j.mouseOverItem=null;return"mouseleave"}return e},onItemMouseEnter:function(f,h,e,g){if(this.trackOver){this.highlightItem(h)}},onItemMouseLeave:function(f,h,e,g){if(this.trackOver){this.clearHighlight()}},onItemMouseDown:Ext.emptyFn,onItemMouseUp:Ext.emptyFn,onItemFocus:Ext.emptyFn,onItemClick:Ext.emptyFn,onItemDblClick:Ext.emptyFn,onItemContextMenu:Ext.emptyFn,onItemKeyDown:Ext.emptyFn,onBeforeItemMouseDown:Ext.emptyFn,onBeforeItemMouseUp:Ext.emptyFn,onBeforeItemFocus:Ext.emptyFn,onBeforeItemMouseEnter:Ext.emptyFn,onBeforeItemMouseLeave:Ext.emptyFn,onBeforeItemClick:Ext.emptyFn,onBeforeItemDblClick:Ext.emptyFn,onBeforeItemContextMenu:Ext.emptyFn,onBeforeItemKeyDown:Ext.emptyFn,onContainerMouseDown:Ext.emptyFn,onContainerMouseUp:Ext.emptyFn,onContainerMouseOver:Ext.emptyFn,onContainerMouseOut:Ext.emptyFn,onContainerClick:Ext.emptyFn,onContainerDblClick:Ext.emptyFn,onContainerContextMenu:Ext.emptyFn,onContainerKeyDown:Ext.emptyFn,onBeforeContainerMouseDown:Ext.emptyFn,onBeforeContainerMouseUp:Ext.emptyFn,onBeforeContainerMouseOver:Ext.emptyFn,onBeforeContainerMouseOut:Ext.emptyFn,onBeforeContainerClick:Ext.emptyFn,onBeforeContainerDblClick:Ext.emptyFn,onBeforeContainerContextMenu:Ext.emptyFn,onBeforeContainerKeyDown:Ext.emptyFn,highlightItem:function(c){var d=this;d.clearHighlight();d.highlightedItem=c;Ext.fly(c).addCls(d.overItemCls)},clearHighlight:function(){var c=this,d=c.highlightedItem;if(d){Ext.fly(d).removeCls(c.overItemCls);delete c.highlightedItem}},refresh:function(){var b=this;b.clearHighlight();b.callParent(arguments);if(!b.isFixedHeight()){b.doComponentLayout()}}});Ext.define("Docs.view.ThumbList",{extend:"Ext.view.View",alias:"widget.thumblist",cls:"demos",itemSelector:"dl",urlField:"url",itemTpl:[],initComponent:function(){this.addEvents("urlclick");Ext.Array.forEach(this.data,function(c,d){c.id="sample-"+d});this.store=Ext.create("Ext.data.JsonStore",{fields:["id","title","items"],data:this.data});this.tpl=new Ext.XTemplate(Ext.Array.flatten(['
Maybe it was renamed to something else? Or maybe it has passed away permanently to the 404 land? ","This would be sad. Hopefully it's just a bug in our side. ","Report it to Sencha Forum if you feel so.
","
Sorry for all this :(
");Ext.getCmp("failure").update(d.apply({msg:c}));Ext.getCmp("card-panel").layout.setActiveItem("failure")},isActive:function(){return !!this.getIndex().getTab()}});Ext.define("Docs.controller.Search",{extend:"Ext.app.Controller",views:["search.Dropdown"],stores:["Search"],refs:[{ref:"field",selector:"#search-field"}],pageIndex:0,pageSize:10,init:function(){this.control({"#search-dropdown":{itemclick:function(c,d){this.loadRecord(d)},changePage:function(c,d){this.pageIndex+=d;this.search(this.getField().getValue())},footerClick:function(c,d){clearTimeout(this.hideTimeout);this.getField().focus()}},"#search-field":{keyup:function(m,l){var j=this.getDropdown();m.setHideTrigger(m.getValue().length===0);if(l.keyCode===Ext.EventObject.ESC||!m.value){j.hide();m.setValue("");return}else{j.show()}var h=j.getSelectionModel();var i=h.getLastSelected();var n=j.store.indexOf(i);var k=j.store.getCount()-1;if(l.keyCode===Ext.EventObject.UP){if(n===undefined){h.select(0)}else{h.select(n===0?k:(n-1))}}else{if(l.keyCode===Ext.EventObject.DOWN){if(n===undefined){h.select(0)}else{h.select(n===k?0:n+1)}}else{if(l.keyCode===Ext.EventObject.ENTER){l.preventDefault();i&&this.loadRecord(i)}else{this.pageIndex=0;clearTimeout(this.searchTimeout);this.searchTimeout=Ext.Function.defer(function(){this.search(m.value)},50,this)}}}},focus:function(b){if(b.value&&this.getDropdown().store.getCount()>0){this.getDropdown().show()}},blur:function(){var b=this.getDropdown();this.hideTimeout=Ext.Function.defer(b.hide,500,b)}}})},getDropdown:function(){return this.dropdown||(this.dropdown=Ext.getCmp("search-dropdown"))},loadRecord:function(d){var c=d.get("cls");if(d.get("type")!=="cls"){c+="-"+d.get("id")}Docs.App.getController("Classes").loadClass("#!/api/"+c);this.getDropdown().hide()},search:function(h){var e=this.filterMembers(h);if(this.pageIndex<0){this.pageIndex=0}else{if(this.pageIndex>Math.floor(e.length/this.pageSize)){this.pageIndex=Math.floor(e.length/this.pageSize)}}var g=this.pageIndex*this.pageSize;var f=g+this.pageSize;this.getDropdown().setTotal(e.length);this.getDropdown().setStart(g);this.getDropdown().getStore().loadData(e.slice(g,f));this.getDropdown().alignTo("search-field","bl",[-12,-2]);if(e.length===0){this.getDropdown().hide()}else{this.getDropdown().getSelectionModel().select(0)}},filterMembers:function(p){var z=[[],[],[],[],[],[],[],[]];var w=0,r=1,A=2,y=3,s=4,C=5,q=6,B=7;var u=/\./.test(p);var t=Ext.escapeRe(p);var D=new RegExp("^"+t+"$","i");var x=new RegExp("^"+t,"i");var v=new RegExp(t,"i");Ext.Array.forEach(Docs.data.search,function(a){var b=u?a.cls+(a.type==="cls"?"":"."+a.member):a.member;if(a.xtypes&&this.matchXType(a.xtypes,D)){z[w].push(a)}else{if(D.test(b)){z[a.type==="cls"?r:A].push(a)}else{if(a.xtypes&&this.matchXType(a.xtypes,x)){z[y].push(a)}else{if(x.test(b)){z[a.type==="cls"?s:C].push(a)}else{if(v.test(b)){z[a.type==="cls"?q:B].push(a)}}}}}},this);return Ext.Array.flatten(z)},matchXType:function(f,d){for(var e in f){if(f.hasOwnProperty(e)){if(Ext.Array.some(f[e],function(a){return d.test(a)})){return true}}}return false}});Ext.define("Docs.controller.Examples",{extend:"Docs.controller.Content",baseUrl:"#!/example",title:"Examples",refs:[{ref:"viewport",selector:"#viewport"},{ref:"index",selector:"#exampleindex"},{ref:"tree",selector:"#exampletree"},{ref:"page",selector:"#example"}],init:function(){this.addEvents("showExample");this.control({"#exampletree":{urlclick:function(d,c){this.loadExample(d)}},"exampleindex > thumblist":{urlclick:function(b){this.loadExample(b)}},touchexamplecontainer:{afterrender:function(b){b.el.addListener("click",function(d,a){this.changeDevice("tablet")},this,{delegate:"button.tablet"});b.el.addListener("click",function(d,a){this.changeDevice("phone")},this,{delegate:"button.phone"});b.el.addListener("click",function(d,a){this.changeOrientation("portrait")},this,{delegate:"button.portrait"});b.el.addListener("click",function(d,a){this.changeOrientation("landscape")},this,{delegate:"button.landscape"});b.el.addListener("click",function(d,a){this.openInNewWindow()},this,{delegate:"button.new-window"})}}})},loadIndex:function(){Ext.getCmp("treecontainer").showTree("exampletree");this.callParent()},loadExample:function(d,f){var e=this.getExample(d);this.getViewport().setPageTitle(e.text);if(this.activeUrl!==d){this.getPage().clear();this.activateExampleCard();this.getPage().load(e)}else{this.activateExampleCard()}f||Docs.History.push(d);this.fireEvent("showExample",d);this.getTree().selectUrl(d);this.activeUrl=d},activateExampleCard:function(){Ext.getCmp("card-panel").layout.setActiveItem("example");Ext.getCmp("treecontainer").showTree("exampletree")},getExample:function(b){if(!this.map){this.map={};Ext.Array.forEach(Docs.data.examples,function(a){Ext.Array.forEach(a.items,function(d){this.map["#!/example/"+d.url]=d},this)},this)}return this.map[b]},changeOrientation:function(b){this.getPage().setOrientation(b)},changeDevice:function(b){this.getPage().setDevice(b)},openInNewWindow:function(){var b=this.getExample(this.activeUrl);window.open("touch/examples/"+b.url)}});Ext.define("Docs.controller.Guides",{extend:"Docs.controller.Content",baseUrl:"#!/guide",title:"Guides",refs:[{ref:"viewport",selector:"#viewport"},{ref:"index",selector:"#guideindex"},{ref:"tree",selector:"#guidetree"}],cache:{},init:function(){this.addEvents("showGuide");this.control({"#guidetree":{urlclick:function(d,c){this.handleUrlClick(d,c,this.getTree())}},"guideindex > thumblist":{urlclick:function(b){this.loadGuide(b)}},indexcontainer:{afterrender:function(b){b.el.addListener("click",function(d,a){this.handleUrlClick(a.href,d)},this,{preventDefault:true,delegate:".guide"})}},"#guide":{afterrender:function(b){b.el.addListener("scroll",function(d,a){this.setScrollState(this.activeUrl,a.scrollTop)},this)}}})},handleUrlClick:function(d,f,e){d=d.replace(/.*#!?/,"#!");if(this.opensNewWindow(f)){window.open(d);e&&e.selectUrl(this.activeUrl?this.activeUrl:"")}else{this.loadGuide(d)}},loadIndex:function(){Ext.getCmp("treecontainer").showTree("guidetree");this.callParent()},loadGuide:function(d,f){Ext.getCmp("card-panel").layout.setActiveItem("guide");Ext.getCmp("treecontainer").showTree("guidetree");var e=d.match(/^#!\/guide\/(.*)$/)[1];f||Docs.History.push(d);if(this.cache[e]){this.showGuide(this.cache[e],d,e)}else{this.cache[e]="in-progress";Ext.data.JsonP.request({url:this.getBaseUrl()+"/guides/"+e+"/README.js",callbackName:e,success:function(a){this.cache[e]=a;this.showGuide(a,d,e)},failure:function(b,a){this.getController("Index").showFailure("Guide "+e+" was not found.")},scope:this})}},showGuide:function(f,d,e){if(f==="in-progress"){return}this.getViewport().setPageTitle(f.title);if(this.activeUrl!==d){Ext.getCmp("guide").load({name:e,content:f.guide})}this.activeUrl=d;this.scrollContent();this.fireEvent("showGuide",e);this.getTree().selectUrl(d)},scrollContent:function(){Ext.get("guide").scrollTo("top",this.getScrollState(this.activeUrl))}});Ext.define("Docs.controller.Videos",{extend:"Docs.controller.Content",baseUrl:"#!/video",title:"Videos",refs:[{ref:"viewport",selector:"#viewport"},{ref:"index",selector:"#videoindex"},{ref:"tree",selector:"#videotree"}],init:function(){this.addEvents("showVideo");this.control({"#videotree":{urlclick:function(b){this.loadVideo(b)}},"videoindex > thumblist":{urlclick:function(b){this.loadVideo(b)}}})},loadIndex:function(){Ext.getCmp("treecontainer").showTree("videotree");this.callParent()},loadVideo:function(f,g){Ext.getCmp("card-panel").layout.setActiveItem("video");Ext.getCmp("treecontainer").showTree("videotree");var h=f.match(/[0-9]+$/)[0];var e=this.getVideo(h);this.getViewport().setPageTitle(e.title);if(this.activeUrl!==f){Ext.getCmp("video").load(e)}g||Docs.History.push(f);this.fireEvent("showVideo",f);this.getTree().selectUrl(f);this.activeUrl=f},getVideo:function(b){if(!this.map){this.map={};Ext.Array.forEach(Docs.data.videos,function(a){Ext.Array.forEach(a.items,function(d){this.map[d.id]=d},this)},this)}return this.map[b]}});Ext.define("Ext.data.proxy.WebStorage",{extend:"Ext.data.proxy.Client",alternateClassName:"Ext.data.WebStorageProxy",id:undefined,constructor:function(b){this.callParent(arguments);this.cache={};if(this.getStorageObject()===undefined){Ext.Error.raise("Local Storage is not supported in this browser, please use another type of data proxy")}this.id=this.id||(this.store?this.store.storeId:undefined);if(this.id===undefined){Ext.Error.raise("No unique id was provided to the local storage proxy. See Ext.data.proxy.LocalStorage documentation for details")}this.initialize()},create:function(n,k,i){var o=n.records,p=o.length,r=this.getIds(),q,l,m;n.setStarted();for(m=0;m
"+g+" was not found.")},scope:this})}},showClass:function(d,c){if(d==="in-progress"){return}this.getOverview().setLoading(false);this.getViewport().setPageTitle(d.name);if(this.currentCls!==d){this.getHeader().load(d);this.getOverview().load(d);this.applyExpanded(d)}this.currentCls=d;if(c){this.getOverview().scrollToEl("#"+c);this.fireEvent("showMember",d.name,c)}else{this.scrollContent()}this.getTree().selectUrl("#!/api/"+d.name);this.fireEvent("showClass",d.name)},scrollContent:function(){if(this.currentCls){var b="#!/api/"+this.currentCls.name;this.getOverview().getEl().down(".x-panel-body").scrollTo("top",this.getScrollState(b))}}});Ext.ns("Docs");Ext.Loader.setConfig({enabled:true,paths:{Docs:"app"}});Ext.require("Docs.view.Viewport");Ext.require("Ext.form.field.Trigger");Ext.require("Ext.tab.Panel");Ext.require("Ext.grid.column.Action");Ext.require("Ext.grid.plugin.DragDrop");Ext.require("Ext.layout.container.Border");Ext.require("Ext.data.TreeStore");Ext.require("Ext.toolbar.Spacer");Ext.require("Docs.Application");Ext.onReady(function(){Ext.create("Docs.Application")});
\ No newline at end of file